!function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.c=i,e.__strings=["<hours>:<minutes>","<hours>:<minutes> am","<hours>:<minutes> pm","Sorry, we are unavailable at the moment. Please leave us a message. 24/7 support is available for Premium customers.","Zendesk Support agent not found","Zendesk Chat requires cookies to function. Enable cookies?","Powered by Zendesk Chat","Please wait for an agent. There are <number> visitor(s) waiting to be served.","Online","Away","Offline","Complete this field","Enter a valid email address","Complete this field","Select an option","Select an option","Check this option to continue","Select at least one option","Select a department","This field is invalid","Phone number","Are you sure you want to end this chat?","Facebook","Twitter","Google+","<name> joined the chat","<name> left the chat","<old_name> is now known as <new_name>","Chat started","Chat ended","Comment submitted","Chat rated Good","Chat rated Bad","Chat rating removed","<name> is typing...","<name> are typing...","Agents are typing...","Type your message here","Send","<number> new message","<number> new messages","<number> new message","<number> new messages","Chat","Message","1 new attachment","Reconnecting","Click to reconnect","Reconnecting","Resuming session","Loading","Chat Disabled","Disabled","Zopim Live Chat requires cookies to function. Enable cookies?","Privacy policy","Zopim Live Chat","Unlink from <name>","Powered by Zopim Live Chat","Send Message","Start Chatting","Any Department","Choose a Department","Close","Closed","<start_time> to <end_time>","File size too large. Maximum total size is limited to <size>.","The file you are trying to send is not supported.","File sending is temporary disabled. Please try again later.","Failed to send. Please try again.","Failed to save assignee","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Weekdays","Weekends","Daily","All day","Chat With Us","Leave a Message","Chat with us","support","We're online.","We're away.","We're offline.","Live Support","Ask us anything","Hi, welcome to our website!","Questions?","Click here to chat with us","Choose a Department","Message","Phone","Sorry, we aren't online at the moment. Leave a message and we'll get back to you.","Sorry, we aren't online at the moment.","Thanks for the message! We'll get back to you as soon as we can.","Message","Phone","Nice chatting with you!","How would you rate the chat experience you just had?","Thanks for the good rating! Would you like to leave a comment?","What did you like about this chat?","Sorry that we disappointed you. We'd appreciate it if you could tell us how to improve.","What did you dislike about this chat?","File size too large. Maximum limit is <size>.","The file you are trying to send is not supported.","File sending is temporarily disabled. Please try again later.","Failed to send. Please try again.","Reply","Dismiss","Minimize","Send","Type your message here","Close","Submit","Cancel","Back to Chat","Back to Chat","Would you like to rate this chat?","Leave a Comment","(Optional)","Send","Cancel","Would you like to rate this chat?","Chat rated Good","Chat rated Bad","Chat rating removed","Cancel","Skip","Send Chat Transcript to","Email","This isn't a valid email.","Send","Cancel","End","Cancel","Email sent to @@@@<email>@@@@","Learn more about Premium plan","Our Operating Hours","Back","Choose a Department","Operating Hours","Back","Send Another","Introduce yourself","Hello there!","Name, Email","Edit","Sign out","Please update your profile","Name","Please provide your name","Email","Please provide a valid email","or sign in with","Phone Number","Please provide a valid phone","Name","Email","Drop files here","About","Cookies","Send a File","Sign In","Hi, <name>","Hi there!","Sound","Connect with","Use Name and Email","Edit Contact Details","Name","Enter your name","Email","Enter your email","Phone","Enter your phone","Save","Cancel","Email Transcript","End This Chat","Sign out","Edit","You objected to the use of cookies based on our @cookie policy@. Approve the use of cookies to enable chat functions.","You may disable the chat anytime.","Enable Cookies and Chat","Zendesk Chat requires cookies to function","If you do not agree with our @cookie policy@, you may disable the chat widget. Past information and cookies will be removed.","You may re-enable chat anytime.","Disable Chat","Cancel","Zendesk Chat requires cookies to function","Submit","Skip","This widget uses @cookies@.","Open in new window","Minimize","Options","Sign in","Hi, <name>","Hi there!","Reconnecting","Offline","Customer support","Good","Bad","Remove","Good","Bad","Remove","Leave a Comment","You","You — Please update your info","Message not sent","Resend","Rate This Chat",'Uploading "<file_name>"','"<file_name>" sent.',"Open image"],e.__languages={ar:"__$$__stringtable_lang_ar",az:"__$$__stringtable_lang_az",bg:"__$$__stringtable_lang_bg",ca:"__$$__stringtable_lang_ca",cs:"__$$__stringtable_lang_cs",da:"__$$__stringtable_lang_da",de:"__$$__stringtable_lang_de",el:"__$$__stringtable_lang_el",es:"__$$__stringtable_lang_es",et:"__$$__stringtable_lang_et",eu:"__$$__stringtable_lang_eu",fa:"__$$__stringtable_lang_fa",fi:"__$$__stringtable_lang_fi",fo:"__$$__stringtable_lang_fo",fr:"__$$__stringtable_lang_fr",he:"__$$__stringtable_lang_he",hi:"__$$__stringtable_lang_hi",hr:"__$$__stringtable_lang_hr",hu:"__$$__stringtable_lang_hu",id:"__$$__stringtable_lang_id",is:"__$$__stringtable_lang_is",it:"__$$__stringtable_lang_it",ja:"__$$__stringtable_lang_ja",ka:"__$$__stringtable_lang_ka",ko:"__$$__stringtable_lang_ko",ku:"__$$__stringtable_lang_ku",lt:"__$$__stringtable_lang_lt",lv:"__$$__stringtable_lang_lv",mk:"__$$__stringtable_lang_mk",ms:"__$$__stringtable_lang_ms",nb:"__$$__stringtable_lang_nb",nl:"__$$__stringtable_lang_nl",pl:"__$$__stringtable_lang_pl",pt:"__$$__stringtable_lang_pt",pt_BR:"__$$__stringtable_lang_pt_BR",ro:"__$$__stringtable_lang_ro",ru:"__$$__stringtable_lang_ru",sk:"__$$__stringtable_lang_sk",sl:"__$$__stringtable_lang_sl",sq:"__$$__stringtable_lang_sq",sr:"__$$__stringtable_lang_sr",sv:"__$$__stringtable_lang_sv",th:"__$$__stringtable_lang_th",tl:"__$$__stringtable_lang_tl",tr:"__$$__stringtable_lang_tr",uk:"__$$__stringtable_lang_uk",ur:"__$$__stringtable_lang_ur",vi:"__$$__stringtable_lang_vi",zh_CN:"__$$__stringtable_lang_zh_CN",zh_TW:"__$$__stringtable_lang_zh_TW"},e(0)}([function(t,e,i){(function(e,n,o,r,a){t.exports=function(){var t=i||{};e.strings=t.__strings||[],e.languages=t.__languages||{};var s=e.languages;for(var _ in s)if(s.hasOwnProperty(_)){var l=s[_];o[l]=new n(l)}var d="__$$__stringtable_lang_en";e.languages.en=d,o[d]=e.strings;var u=i(13);return r.runAfterFirstChildReady(function(){new u(document.body,(!1),"","",[])}),a(u,"widget"),u}()}).call(e,i(1),i(2),i(3),i(6),i(4))},function(t,e){var i={build_number:"20161115.033259",git_commit:"6c48c67d5382e55cfc23e2adabea1ab0ffb23efd"};t.exports=i},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t,i){var n=e[t];n.module_function=new Function("$Modules",i.toString().replace(d,"$1")),n.ready()}function r(t){var e,i,n,o;for(e=l.length-1;e>=0;e--){for(n=l[e],o=n.dependencies,i=o.length-1;i>=0;i--)if(o[i]==t){o.splice(i,1);break}n.ready()}}function a(){var t=Array.prototype.slice.call(arguments),e=t.shift();this.fqname=e,this.name=e.split(".").pop(),this.callbacks=[],this.dependencies=t,l.push(this)}function s(t){t()}var _=i(5),l=[],d=/^function *\( *\) *{ *([\s\S]*) *}$/;return a.ensureLoaded=function(t,e){t instanceof a?t.ensureLoaded(e):e()},a.prototype.ensureLoaded=function(t){this.ifLoaded(t),this.load()},a.prototype.ifLoaded=function(t){this.callbacks.push(t)},a.prototype.load=function(){function i(e){t(e[0],e[1])}var o,r,a=this.getDependencies();for(o=0;o<a.length;o++)r=a[o],r.loader||(r.loader=new _(n.baseURL+"/lib/"+n.build_number+"/"+r.fqname+".js",e,i))},a.prototype.getDependencies=function(){var t,i=this.dependencies,n=[this];for(t=0;t<i.length;t++){var o=e[i[t]];n=n.concat(o.getDependencies())}return n},a.prototype.ready=function(){if(!this.dependencies.length&&this.module_function){for(t=l.length-1;t>=0;t--)if(l[t]==this){l.splice(t,1);break}this.module_function(e);var t,i=e[this.fqname];for(i.ifLoaded=i.ensureLoaded=s,t=0;t<this.callbacks.length;t++)this.callbacks[t](i);r(this.fqname),delete this.callbacks,delete this.fqname,delete this.name,delete this.dependencies,delete this.loader}},o(a,"jx_core_Module"),a}()}).call(e,i(3),i(1),i(4))},function(t,e,i){(function(e,i){var n={};n.Module=e,n.$Data=i,t.exports=n}).call(e,i(2),i(1))},function(t,e){function i(t,e){"function"==typeof t&&t.prototype&&!t.__jx__no_fqname&&(t.prototype.__jx__fqname_chain=(t.prototype.__jx__fqname_chain||"")+" "+e,t.prototype.__jx__fqname=e)}t.exports=i},function(t,e,i){(function(e){t.exports=function(){function t(t,e,i){var r=this;n.extend(r);var a=new o;e=e||{},a.setScope(e),a.on("success",i),a.on("error",function(t){r.onError(t)}),a.load(t)}var n=i(6),o=i(11);return t.prototype.onError=function(t){},e(t,"jx_io_ScriptLoader"),t}()}).call(e,i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(t,i){var n={},o={},r=function(i){return!t.nodeType&&t!=window&&t!=document||("FORM"!=t.tagName||"submit"!=i)&&(!e.isCustomEvents&&(e.isFF&&e.isFF<9?!document.createEvent("event")[i.toUpperCase()]:"undefined"==typeof t["on"+i]))},a=function(e,i,o){if(!e&&"function"!=typeof i)throw"bad arguments to on / addEventListener";return e in n||(n[e]=[],r(e)||s(e)),n[e].push(i),t},s=function(i){i in o||(o[i]=function(o){o&&(o.stopPropagation||h(o));var r,a=n[i],s=a.length,_=!0;for(a._active=!0,r=0;r<s;r++)try{if(!a[r])continue;a[r].call(t,e.isCustomEvents&&o instanceof window.CustomEvent?o.detail:o)===!1&&(_=!1)}catch(l){u.fire("error",l)}if(a._active=!1,a._dirty){for(r=0;r<s;r++)a[r]||(r==s-1?a.pop():a[r--]=a.pop(),s--);a._dirty=!1}if(_===!1)return o&&(o.preventDefault(),o.returnValue=!1),!1},t.attachEvent?t.attachEvent("on"+i,o[i]):t.addEventListener&&t.addEventListener(i,o[i],!1))},_=function(e){var i=o[e];i&&(t.attachEvent?t.detachEvent("on"+e,i):t.addEventListener&&t.removeEventListener(e,i,!1),delete o[e],delete n[e])},l=function(e,i){var r=n[e];if(r){for(var a=0,s=r.length;a<s;a++)if(r[a]===i){1==r.length?o[e]?_(e):delete n[e]:r._active?(r[a]=null,r._dirty=!0):a==s-1?r.pop():r[a]=r.pop();break}return t}},d=function(){if(n&&o){for(var t in o)o.hasOwnProperty(t)&&_(t);n=o=null}},c=function(i,o){if(!e.isCustomEvents||r(i)){var a=n[i],s=!0;if(a&&a.length){a._active=!0;var _,l,d;for(_=0,l=a.length;_<l;_++)try{if(!a[_])continue;d=a[_].call(t,o),d===!1&&(s=!1)}catch(c){u.fire("error",c)}if(a._active=!1,a._dirty){for(_=0;_<l;_++)a[_]||(_==l-1?a.pop():a[_--]=a.pop(),l--);a._dirty=!1}}return s}return t.dispatchEvent(new window.CustomEvent(i,{bubbles:!1,cancelable:!0,detail:o}))},h=function(t){t.preventDefault=h.preventDefault,t.stopPropagation=h.stopPropagation,t.target=t.srcElement};h.preventDefault=function(){this.returnValue=!1},h.stopPropagation=function(){this.cancelBubble=!0};var p={fire:c,on:a,un:l,unextendEvents:d};if(i)return p;for(var g in p)p.hasOwnProperty(g)&&(t[g]=p[g]);return e.bugs.leaksMemory&&e.bugs.leaksMemory(function(){for(var e in p)p.hasOwnProperty(e)&&(t[e]=null)}),t}function n(t){a(0,t)}function o(t){a(1,t)}function r(t){a(2,t)}function a(t,e){t<=c?e():h[t].push(e)}function s(t){for(;c<t;){c++;for(var e=0;e<h[c].length;e++)h[c][e]();h[c]=null}}function _(){c>0||(document.body&&document.body.firstChild?s(1):window.setTimeout(_,200))}function l(){s(2)}function d(){var t;if(e.isSafari)t=window.setInterval(function(){/loaded|complete/i.test(document.readyState)&&(window.clearInterval(t),l())},20);else if(document.addEventListener)/loaded|complete/i.test(document.readyState)?l():document.addEventListener("DOMContentLoaded",l,!1);else if(e.isIE){window.attachEvent("onload",l);var i=document.createElement("document:ready");t=window.setInterval(function(){if(/loaded|complete/i.test(document.readyState))return i=null,window.clearInterval(t),void l();try{i.doScroll("left")}catch(e){return}i=null,window.clearInterval(t),l()},200)}}var u={extend:t,body:t(document.body,!0),window:t(window,!0),document:t(document,!0),runAfterScriptReady:n,runAfterFirstChildReady:o,runAfterDomReady:r};u.extend(u);var c=0,h=[[],[],[],[]];return _(),d(),i(u,"jx_core_Events"),u}()}).call(e,i(7),i(4))},function(module,exports,__webpack_require__){(function(Assert,isUndefined,$jxml_extends){module.exports=function(){function secureURL(t){return t.replace(/^http:/,isSecure?"https:":"http:")}function getWindowClientHeight(){return void 0!==window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.getElementsByTagName.body.length?document.getElementsByTagName.body[0].clientHeight:0}function getWindowClientWidth(){return void 0!==window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.getElementsByTagName.body.length?document.getElementsByTagName.body[0].clientWidth:0}function getFlashVersion(){var t,e=nav.plugins&&nav.plugins[FLASH];if(e)return t=nav.mimeTypes&&nav.mimeTypes[FLASH_MIME_TYPE],t&&!t.enabledPlugin?null:e.description;if(window.ActiveXObject)try{return e=new window.ActiveXObject(FLASH_AX),e.AllowScriptAccess="always",e.GetVariable("$version")}catch(i){}}function getJavaVersion(){var t=nav.mimeTypes;return isIE?!isWP7&&("javaEnabled"in nav&&nav.javaEnabled()):t&&(t=t[JAVA_MIME_TYPE])&&(t=t.enabledPlugin)?t.name:void 0}function getScrollbarSize(){if(!isUndefined(scrollbar_size))return scrollbar_size;var t=document.createElement("div"),e=document.createElement("div"),i=t.style,n=e.style;return i.overflow="auto",i.width=i.height="100px",i.position="absolute",i.top="-1000px",n.width="100%",n.height="200px",t.appendChild(e),document.body.appendChild(t),scrollbar_size=t.offsetWidth-t.clientWidth,document.body.removeChild(t),scrollbar_size}function detectCSP(){try{return eval("false")}catch(e){return!0}}function checkIE(){for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="<!--[if gt IE "+ ++t+"]><i></i><![endif]-->",i[0];);return t>4?t:document.documentMode}var nav=navigator,ua=nav.userAgent.toLowerCase(),isNewIE=+(/trident.*rv:? *([0-9]+)/.exec(ua)||[])[1]||!1,isIE=checkIE(),isIE8=8==isIE,isIE7=7==isIE,isIE6=6==isIE,isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),isChrome="Google Inc."==navigator.vendor,isSafari="Apple Computer, Inc."==navigator.vendor,isWebKit=!isIE&&!isOpera&&(isChrome||isSafari||/webkit|khtml/.test(ua)),isFF=+/\d+/.exec(/firefox\/\d+/i.exec(navigator.userAgent)||""),isFF2=ua.indexOf("firefox/2")>-1,isFF3=ua.indexOf("firefox/3")>-1,isIPhone=ua.indexOf("iphone")!=-1,isIPod=ua.indexOf("ipod")!=-1,isIPad=ua.indexOf("ipad")!=-1,isIOS=isIPhone||isIPad||isIPod,isAndroid=ua.indexOf("android")!=-1,isWP7=ua.indexOf("wp7")!=-1,isMobile=isIOS||isAndroid||isWP7,scrollbar_size,browser=isIE&&"msie"||isFF&&"firefox"||isOpera&&"opera"||isChrome&&"chrome"||isSafari&&"safari",version,isBorderBox=isIE&&!isStrict,isStrict="CSS1Compat"==document.compatMode,isQuirks=!isStrict,isIE5Quirks=isIE&&isQuirks&&document.documentElement&&!!document.documentElement.style.setExpression,engineIE=document.documentMode||isIE,isWindows=ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1,isMac=ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1,isSecure="https:"==document.location.protocol,language=nav.language||nav.browserLanguage||nav.userLanguage||nav.systemLanguage,bugs={noBoxSizing:engineIE<=7,ie:{cssBottomRight:isIE6,cssFixed:isIE6||isIE5Quirks,buggyCSS:isIE6||isIE5Quirks}},isTextContent="textContent"in document.createElement("div"),isCustomEvents=!1;try{window.CustomEvent&&/\[native code\]|\[object CustomEventConstructor\]/.test(window.CustomEvent.toString())&&(new window.CustomEvent("testevent",{bubbles:!1,cancelable:!0,detail:!0}),isCustomEvents=!0)}catch(e){}switch(browser){case"msie":case"firefox":case"chrome":version=+/\d+/.exec(new RegExp(browser+"[ /]\\d+").exec(ua)||"");break;default:version=+/\d+/.exec(/version[ \/]\d+/.exec(ua)||"")}if(isIE6){var cleanupCallbacks=[];bugs.leaksMemory=function(t){Assert.isFunction(t),cleanupCallbacks.push(t)};var cleanup=function(){for(var t=0;t<cleanupCallbacks.length;t++)cleanupCallbacks[t]()};bugs.leaksMemory.remove=function(t){for(var e=cleanupCallbacks.length-1;e>=0;e--)t==cleanupCallbacks[e]&&cleanupCallbacks.splice(e,1)},window.attachEvent("onunload",cleanup)}var FLASH="Shockwave Flash",FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",JAVA_MIME_TYPE="application/x-java-vm",Browser={browser:browser,version:version,isStrict:isStrict,isQuirks:isQuirks,isOpera:isOpera,isSafari:isSafari,isWebKit:isWebKit,isChrome:isChrome,isAndroid:isAndroid,isIPhone:isIPhone,isIPod:isIPod,isIPad:isIPad,isIOS:isIOS,isWP7:isWP7,isMobile:isMobile,isNewIE:isNewIE,isIE:isIE,isIE6:isIE6,isIE7:isIE7,isIE8:isIE8,isFF:isFF,isFF2:isFF2,isFF3:isFF3,isBorderBox:isBorderBox,isCustomEvents:isCustomEvents,engineIE:engineIE,bugs:bugs,isWindows:isWindows,isMac:isMac,isSecure:isSecure,secureURL:secureURL,hasFlash:getFlashVersion(),hasJava:getJavaVersion(),language:language,getScrollbarSize:getScrollbarSize,getWindowClientHeight:getWindowClientHeight,getWindowClientWidth:getWindowClientWidth,isTextContent:isTextContent,hasCSP:detectCSP()};return $jxml_extends(Browser,"jx_core_Browser"),Browser}()}).call(exports,__webpack_require__(8),__webpack_require__(10),__webpack_require__(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(t,e){t||n.log(e)}var n={ok:t,isFunction:function(i,n){t(e(i),n)}};return n.log=function(){},i(n,"jx_core_Assert"),n}()}).call(e,i(9),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return"function"==typeof t}return e(t,"jx_core_globals_isFunction"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t=function(t){return function(e,i){return i?null==e:e===t}}();return e(t,"jx_core_globals_isUndefined"),t}()}).call(e,i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(t){var n,o,r=e.extend(this);try{n=new window.ActiveXObject("htmlfile"),n.open(),n.write("<script>document.win = window</script>"),n.close(),o=n.win}catch(a){}if(!o){var s=this.iframe=document.createElement("iframe"),_=s.style;r.allowTransparency="true",r.frameBorder="0",_.backgroundColor="transparent",_.position="absolute",_.width=_.height="1px",_.left=_.top="-9999px",_.border=0,document.body.appendChild(s);try{o=s.contentWindow,n=o.document,n.open(),n.close()}catch(a){return r.fire("error"),void r.destroy()}}r.doc=n,r.win=o,r.$Loader={cleanup:function(){i(function(){r.$Loader.payload?r.fire("success",r.$Loader.payload):r.fire("error"),r.$Loader.payload=null,t||r.destroy()})}},r.reusable=t}function o(t){return t&&t.replace(r,function(t){return"&#"+t.charCodeAt(0)+";"})}t.prototype.setScope=function(t){this.scope=t};var r=/[&<>"']/g;return t.prototype.load=function(t){var e=/^(?:https?:)?\/\//i;if(e.test(t)){t=o(t);try{this.doc.open(),this.win.$Loader=this.$Loader,this.win.$Loader.scope=this.scope||{},this.doc.write('<html><head><script src="'+t+'"></script></head><body onload="try { $Loader.cleanup() } catch(e) {}"></body></html>'),this.doc.close()}catch(i){this.$Loader.cleanup()}}else this.$Loader.cleanup()},t.prototype.destroy=function(){try{this.iframe&&document.body.removeChild(this.iframe),this.doc=this.win=this.iframe=this.win.$Loader=null}catch(t){}},n(t,"jx_io_DataIFrame"),t}()}).call(e,i(6),i(12),i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(t,i,n){if(e.ok("function"==typeof t,"1st argument to nextTick must be a function"),n)for(var a=s.length;a-- >0;)if(s[a][0]===t&&s[a][1]===i)return;s.push([t,i]),r||(r=setTimeout(o,0))}function o(){var t=+new Date+a,e=s;s=[],r&&(r=clearTimeout(r));for(var n=0,_=e.length;n<_;n++){try{e[n][0].apply(e[n][1])}catch(l){i.fire("error",l)}if(+new Date>t){n<_-1&&(e.splice(0,n+1),s.length?s=e.concat(s):(s=e,r=setTimeout(o,0)));break}}}var r,a=100,s=[];return t.tick=o,n(t,"jx_core_globals_nextTick"),t}()}).call(e,i(8),i(6),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,M,V){function H(){if(!p&&f&&(h||g)){z(),j.fromRefTime("init_ui_components"+(g?"_cached":"_no_cached"),.25);var t=_.getValue(),e=d.getValue();if(t){var i=window.document.getElementById("loading");i&&(i.style.display="none"),q.setVisibility("").setWidth("100%").setHeight("100%").setTop("0").setLeft("0"),q.autobind(c,"value",function(t){document.title=t})}if(new w(q),p=!0,!t&&!e)try{q.parentNode.removeChild(q.dom)}catch(n){}}}function z(){!_.getValue()&&a.getValue()&&"overlay"===o.$("livechat").$("settings").$("chat_window").$("mobile_mode$string").getValue()&&v.isStyleSupported("flex-direction")&&o.$("livechat").$("ui").update({mobile_overlay$bool:!0,mobile_notifications$bool:!0})}if(!(this instanceof t))return new t(e,i,n,M,V);if(x.ACCOUNT_KEY&&!x.ACCOUNT_KEY.match(/^[\w.]{5,32}$/))return v.warnBadEmbed(),void k.handleInitError();j.send=A.send,j.setRefTime(+new Date),window.$zopim&&window.$zopim.t&&(j.start("start_exec",window.$zopim.t),j.end("start_exec",.25)),V||(V={}),m.assetsURL=x.ASSETS_LEGACY,m.call(this,e,i,n,M,V);var q=this;return I.init(V.datanode,V.mockup,A),I.livechat.isAccountError()?void k.handleInitError():(j.bindToConnectionStatus(I.root.$("connection").$("status$string")),F.init(A),o=I.root,r=o.$("connection").$("status$string"),a=o.$("livechat").$("ui").$("mobile$bool"),s=o.$("livechat").$("ui").$("mobile_whitelist$bool"),_=o.$("livechat").$("ui").$("popout$bool"),l=o.$("livechat").$("settings").$("cached$bool"),d=o.$("livechat").$("ui").$("mockup$bool"),u=o.$("livechat").$("features"),c=o.$("livechat").$("settings").$("chat_window").$("title_bar").$("title$string"),void((!a.getValue()||s.getValue()||_.getValue())&&(S.init(),k.init(),new R(e),E.init(),B.init(),A.init({root:I.root,isCookieDenied:S.isCookieDenied,overrideProxy:b.getHash("__zopim_widget_proxy"),source:"widget_v2"}),L.init(I.root,A),T.init(),D.init(o),P.init(),C.init(),N.init(),y.init(),O.init(),W.init(),new $(q,null,null,[".zopim { display: none !important }"],{media:"print"}),q.dom.className="zopim",q.autobind(l,"value",function(t){g=t,H()}),q.autobind(u,"value",function(t){f=!!t,H()}),q.autobind(r,"value",function(t){h="reattached"==t||"cookie_law"==t,H()}),V.mockup&&(q.setVisible(!0),q.setPosition("relative"),q.setWidth("auto"),q.setHeight("auto")))))}var o,r,a,s,_,l,d,u,c,h,p,g,f,m=i(15),$=i(26),b=i(27),w=i(28),x=i(32),v=i(38),y=i(333),j=i(49),C=i(79),A=i(48),S=i(192),I=i(30),k=i(334),B=i(101),N=i(347),T=i(266),D=i(348),E=i(103),P=i(349),O=i(352),W=i(353),L=i(39),R=i(289),F=i(51);return t.prototype=e(m.prototype),n(t,"widget"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){}function i(e){return t.prototype=e,new t}return e(i,"jx_core_globals_clone"),i}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(e,i,n,o,r){return this instanceof t?(r||(r={}),r.tagName||(r.tagName="div"),r.position||(r.position="absolute"),r.visible||(r.visible="hidden"),r.margin||(r.margin="0"),r.padding||(r.padding="0"),r.border||(r.border="0"),r.height||(r.height="0"),r.width||(r.width="0"),void s.call(this,e,i,n,o,r)):new t(e,i,n,o,r)}function a(t,e){var i=document.createElement("meta");return i.name=t,i.content=e,i}var s=i(17);return t.prototype=e(s.prototype),t.prototype.setDesktop=function(t){if(n(t)){var e=document.getElementsByTagName("head")[0];e.appendChild(a("viewport","user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1")),o.isIOS&&(e.appendChild(a("apple-mobile-web-app-capable","yes")),e.appendChild(a("apple-mobile-web-app-status-bar-style","black-translucent")))}},r(t,"jx_ui_Application"),t}()}).call(e,i(14),i(16),i(7),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return!!t&&"false"!=t}return e(t,"jx_core_globals_parseBoolean"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="div"),void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_Widget"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l,d,u,c,h,p){t.exports=function(){function t(t){return function(e){try{this.dom.style[t]=e}catch(i){}return this}}function g(t){return function(e){return this.dom.setAttribute(t,e),this}}function f(t){return n(t)&&"%"==t.substr(t.length-1)?parseInt(t,10)+"%":parseInt(t,10)}function m(){if(!m.alreadyHacked)if(m.alreadyHacked=1,e.isStrict)document.body.parentNode.style.background="#fff url(https://) fixed",document.body.className=document.body.className;else if("fixed"!=document.body.currentStyle.backgroundAttachment){if("none"!=document.body.currentStyle.backgroundImage){var t,i,n=document.createElement("div"),o=n.style,r=document.body.currentStyle,a=!1,s=0;o.backgroundAttachment=r.backgroundAttachment,o.backgroundColor=r.backgroundColor,o.backgroundImage=r.backgroundImage,o.backgroundPositionX=r.backgroundPositionX,o.backgroundPositionY=r.backgroundPositionY,o.backgroundRepeat=r.backgroundRepeat,o.position="absolute",o.zIndex=-1,o.top=o.left=0,o.width="100%",document.body.insertBefore(n,document.body.firstChild);var _=function(){!a&&s&&(t+=document.body.clientWidth-s,o.width=t+"px",s=document.body.clientWidth),i||(i=setTimeout(function(){o.width=0,document.body.className=document.body.className,t=Math.max(document.body.scrollWidth,document.body.clientWidth),o.width=t+"px",s=document.body.clientWidth,a=document.body.scrollWidth>document.body.clientWidth,i=null},0))};setTimeout(_,0),o.setExpression("height",'document.body.scrollHeight+"px"'),_()}document.body.style.backgroundImage="url(https://)",document.body.style.backgroundAttachment="fixed"}}function $(t){t=t.split(/[^a-zA-Z0-9]/);for(var e=1;e<t.length;e++)t[e].length&&(t[e]=t[e].substr(0,1).toUpperCase()+t[e].substr(1));return t.join("")}function b(t){for(;t.defaultPlacement;)t=t.defaultPlacement;return t}function w(t,e,i,n,r){return this instanceof w?void(t&&(r||(r={}),this.jx_id=e=e||o.generateID(),this._top=this._bottom=this._left=this._right=this._width=this._height=NaN,this._position=null,this.pos="",this.offsetx=0,this.offsety=0,this._snaps=[0,0,0,0],this.useDisplay=!1,this.doc=this.ownerDocument=t.ownerDocument,this.parentNode=t,this.attributes=r,this.tagName=r.tagName,this.isNew=!0,this.dom=this.doc.createElement(this.tagName),this.dom.jx_wrapper=this,this.style=this.dom.style,this.children=[],this._autobinds=[],x.call(this),n&&this.addChildren(n),t.appendChild(t instanceof w?this:this.dom),this.setStyle(i),this.setAttributes(r),this.__jx__fqname&&this.addClass(this.__jx__fqname),e&&o.set(e,this))):new w(t,e,i,n,r)}var x=i(25);e.isIE&&document.execCommand("BackgroundImageCache",!1,!0);var v="background background-position border border-color border-style border-width color border-top border-right border-bottom border-left clear padding margin margin-top margin-right margin-bottom margin-left display line-height letter-spacing visibility outline overflow overflow-x overflow-y font-family font-size font-weight font-style text-align text-decoration text-transform vertical-align z-index cursor min-height min-width max-height max-width".split(" "),y="title checked href media name src target dir".split(" "),j=e.bugs.ie.cssFixed;w.prototype=r(x.prototype),w.prototype.addChildren=function(t){var e=t&&t.length;if(t&&e)for(var i,n,o=b(this),r=o.ownerDocument,s=0;s<e;s++)i=t[s],a(i)?o.appendChild(i):(n=r.createTextNode(i),o.appendChild(n),"function"==typeof i.bind&&i.bind(n))},w.prototype.appendChild=function(t){return a(t)?t[0](this,t[1],t[2],t[3],t[4]):(s(t,this.children)==-1&&3!=t.nodeType&&this.children.push(t),t.parentNode&&t.parentNode!=this&&t.parentNode.removeChild(t.parentNode instanceof w?t:t.dom||t),t.dom&&(t.parentNode=this),this.dom.appendChild(t.dom||t),t)},w.prototype.removeChild=function(t){try{t.dom?(this.dom.removeChild(t.dom),t.parentNode=null):this.dom.removeChild(t);var e=s(t,this.children);if(e!=-1)return this.children.splice(e,1)}catch(i){}},w.prototype.insertBefore=function(t,e){var i=s(e,this.children);if(e&&i==-1&&(e=null),t.parentNode){var n=s(t,this.children);n!=-1?(this.children.splice(n,1),i>n&&i--):t.parentNode.removeChild(t)}t.dom&&(t.parentNode=this),e?this.children.splice(i,0,t):this.children.push(t),this.dom.insertBefore(t.dom||t,e?e.dom||e:null)},w.prototype.insertAfter=function(t,e){this.insertBefore(t,e&&e.getNextSibling())},w.prototype.prependTo=function(){},w.prototype.cloneNode=function(t){return this.dom.cloneNode(t)},w.prototype.getNextSibling=function(){return this.dom.nextSibling&&this.dom.nextSibling.jx_wrapper},w.prototype.getPreviousSibling=function(){return this.dom.previousSibling&&this.dom.previousSibling.jx_wrapper},w.prototype.getFirstChild=function(){return this.dom.firstChild&&this.dom.firstChild.jx_wrapper},w.prototype.getLastChild=function(){return this.dom.lastChild&&this.dom.lastChild.jx_wrapper};var C=e.isTextContent;w.prototype.getText=function(){return this.dom.textContent||this.dom.innerText||""},w.prototype.setText=function(t){if(this.dom)return _&&_.unbind&&_.unbind(this.dom),t&&"function"==typeof t.bind&&t.bind(this.dom),C?this.dom.textContent=t:this.dom.innerText=t,this},w.prototype.getHTML=function(){return this.dom.innerHTML},w.prototype.setHTML=function(t){return this.dom.innerHTML=t,this},w.prototype.destroy=function(){if(this._destructors)for(var t=this._destructors,e=t.length,i=0;i<e;i++)t[i].call(this);this._autobinds&&this.autounbind(),this.dom.jx_wrapper=null,"function"==typeof this.empty&&this.empty(),this.parentNode&&this.parentNode.removeChild(this.parentNode instanceof w?this:this.dom),this.parentNode=null,o.unset(this)},w.prototype.empty=function(){for(var t;this.children.length;)t=this.children.pop(),"function"==typeof t.destroy?t.destroy():1==t.nodeType&&o.proto.destroy.call(t)},w.prototype.onDestruction=function(t){(this._destructors||(this._destructors=[])).push(t)},w.prototype.getClassName=w.prototype.getClass=function(){return this.dom.className},w.prototype.setClassName=w.prototype.setClass=function(t,e){return this.dom.className=(e?t:this.__jx__fqname+" "+t)+(this._pseudo?" "+this._pseudo:""),this},w.prototype.setAddClass=w.prototype.addClass=function(t){return t?(this.dom.className?this.hasClass(t)||(this.dom.className+=" "+t):this.dom.className=t,this):this},w.prototype.removeClass=function(t){return t&&this.dom.className&&this.hasClass(t)?(this.dom.className=(" "+this.dom.className+" ").replace(" "+t+" "," ").slice(1,-1),this):this},w.prototype.hasClass=function(t){return!!t&&!!this.dom.className&&(" "+this.dom.className+" ").indexOf(" "+t+" ")!=-1},w.prototype.autobind=function(t,e,i){this._autobinds&&(this._autobinds.push([t,e,i]),t.on(e,i))},w.prototype.autounbind=function(t,e,i){if(this._autobinds){var n,o,r=this._autobinds;if(t&&e&&i){for(n=r.length-1;n>=0;n--)if(o=r[n],o[0]==t&&o[1]==e&&o[2]==i)return r.splice(n,1),void o[0].un(o[1],o[2])}else if(!t&&!e&&!i){if(!r)return;for(n=r.length-1;n>=0;n--)o=r[n],o[0].un(o[1],o[2]);return void delete this._autobinds}}},w.prototype.getAttribute=function(t){return this.dom.getAttribute(t)||this.dom[t]},w.prototype.setAttribute=function(t,e){return this.dom.setAttribute(t,e),this},w.prototype.removeAttribute=function(t){return this.dom.removeAttribute(t),this},w.prototype.setAttributes=function(t){var e,i;for(i in t)t.hasOwnProperty(i)&&(e="set"+i.substr(0,1).toUpperCase()+i.substr(1),"function"==typeof this[e]&&this[e](t[i]));return this},w.prototype.getStyle=function(t){return this.dom.style[$(t)]},w.prototype.getComputedStyle=function(t){
t=t&&$(t);var e;if(window.getComputedStyle)e=window.getComputedStyle(this.dom,null);else{if(!this.dom.currentStyle)return;e=this.dom.currentStyle}return t?e[t]:e},w.prototype.setStyle=function(t){var e,i;if(1==arguments.length&&n(t)){if(!t)return this;for(t=t.split(";"),e=0;e<t.length;e++)t[e].match(/^\s*$/)||(i=t[e].match(/\s*([^:]+):\s*(.*?)\s*$/),!i&&t[e].length||this.setOneStyle(i[1],i[2]))}else if(1==arguments.length&&"object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&this.setOneStyle(o,t[o]);else if(arguments.length>1)for(e=0;e<arguments.length;e+=2)this.setOneStyle(arguments[e],arguments[e+1]);return this},w.prototype.setOneStyle=function(t,e){var i=$("set-"+t);return"function"==typeof this[i]?this[i](e):this.setCSSStyle(t,e),this},w.prototype.setCSSStyle=function(t,e){try{this.dom.style[$(t)]=e}catch(i){}return this},w.prototype.getScrollWidth=function(){return this.dom.scrollWidth},w.prototype.getScrollHeight=function(){return this.dom.scrollHeight},w.prototype.getClientWidth=function(){return this.dom.clientWidth},w.prototype.getClientHeight=function(){return this.dom.clientHeight},w.prototype.getTop=function(){return this.dom.offsetTop},w.prototype.getLeft=function(){return this.dom.offsetLeft},w.prototype.getWidth=function(){return this.dom.offsetWidth},w.prototype.getHeight=function(){return this.dom.offsetHeight},w.prototype.setTop=function(t){return this._top=f(t),this.solveConstraints(),this},w.prototype.setLeft=function(t){return this._left=f(t),this.solveConstraints(),this},w.prototype.setBottom=function(t){return this._bottom=f(t),this.solveConstraints(),this},w.prototype.setRight=function(t){return this._right=f(t),this.solveConstraints(),this},w.prototype.setWidth=function(t){return this._width=f(t),this.solveConstraints(),this},w.prototype.setHeight=function(t){return this._height=f(t),this.solveConstraints(),this},w.prototype.getScrollLeft=function(){return this.dom.scrollLeft},w.prototype.setScrollLeft=function(t){return this.dom.scrollLeft=t,this},w.prototype.getScrollTop=function(){return this.dom.scrollTop},w.prototype.setScrollTop=function(t){return this.dom.scrollTop=t,this},w.prototype.setFloat=function(t){function i(){var i=_&&_.flip?_.flip(t):t;e.isIE?n.dom.style.styleFloat=i:n.dom.style.cssFloat=i}var n=this;return _&&_.onLanguage&&!this._onLanguageFloat&&(_.onLanguage&&_.onLanguage(i),this.onDestruction(function(){_.unLanguage&&_.unLanguage(i)}),this._onLanguageFloat=!0),i(),this},w.prototype.solveConstraints=function(){isNaN(this._top)||isNaN(this._height)||(this._bottom=NaN),isNaN(this._left)||isNaN(this._width)||(this._right=NaN),this._width<0&&(this._width=0),this._height<0&&(this._height=0),this.applyConstraints()},w.prototype.applyConstraints=function(){function t(){r.top=n(a._top)?a._top:isNaN(a._top)?"":a._top+"px",r.bottom=n(a._bottom)?a._bottom:isNaN(a._bottom)?"":a._bottom+"px",a._height!=a.__height&&(r.height=n(a._height)?a._height:isNaN(a._height)?"":a._height+"px",a.__height=a._height)}function i(){r.left=n(a._left)?a._left:isNaN(a._left)?"":a._left+"px",r.right=n(a._right)?a._right:isNaN(a._right)?"":a._right+"px",a._width!=a.__width&&(r.width=n(a._width)?a._width:isNaN(a._width)?"":a._width+"px",a.__width=a._width)}var r=this.dom.style,a=this;if(o.hasParentNode(this.dom)){if(e.bugs.ie.cssFixed&&"fixed"==this._position)return void l(function(){a.dom&&a.hackFixed()});if(e.bugs.ie.cssBottomRight&&(!isNaN(this._left)&&!isNaN(this._right)||!isNaN(this._top)&&!isNaN(this._bottom))){this.appendToParent&&this.appendToParent(!0),m();var s,_,d=isNaN(this._left)?"":this._left,u=isNaN(this._right)?"":this._right,c=isNaN(this._width)?"":this._width,h=isNaN(this._top)?"":this._top,p=isNaN(this._bottom)?"":this._bottom,g=isNaN(this._height)?"":this._height,f="BackCompat"==this.dom.ownerDocument.compatMode;"fixed"==this._position&&this.dom.ownerDocument==document?f?(_="document.body.clientHeight",s="document.body.clientWidth"):(_="document.documentElement.clientHeight",s="document.documentElement.clientWidth"):(_="this.offsetParent.clientHeight",s="this.offsetParent.clientWidth"),e.isIE6&&(isNaN(this._left)||isNaN(this._right)||(u="",c=[s,this._left,this._right].join("-")),isNaN(this._top)||isNaN(this._bottom)||(p="",g=[_,this._top,this._bottom].join(" - ")));var $=function(t,e){r[t]="",r.removeExpression(t),"number"==typeof e?r[t]=e+"px":n(e)&&"%"==e.substr(e.length-1)?r[t]=e:n(e)&&e.length&&r.setExpression(t,e)};$("left",d),$("right",u),$("width",c),$("top",h),$("bottom",p),$("height",g)}i(),t()}},w.prototype.hackFixed=function(){var t=this.dom.style;m(),this.appendToParent&&this.appendToParent(!0),this._bottom<0&&(this._bottom=0),this._right<0&&(this._right=0),d.ok(isNaN(this._left)!=isNaN(this._right),"One and only one of left/right must be set"),d.ok(isNaN(this._top)!=isNaN(this._bottom),"One and only one of top/bottom must be set"),d.ok(!isNaN(this._width),"Width must be set"),d.ok(!isNaN(this._height),"Height must be set"),d.ok(this.ownerDocument==document,"Fixed element must be top level element"),this._height!=this.__height&&(t.height=this._height+"px",this.__height=this._height),this._width!=this.__width&&(t.width=this._width+"px",this.__width=this._width);var i,o,r,a,s=this.getHeight(),_=this.getWidth();e.isQuirks?(a="document.body.clientHeight",r="document.body.clientWidth",i="(dummye34cf6=document.body.scrollLeft)+",o="(dummye34cf6=document.body.scrollTop )+"):(a="document.documentElement.clientHeight",r="document.documentElement.clientWidth",i="(dummye34cf6=document.documentElement.scrollLeft)+",o="(dummye34cf6=document.documentElement.scrollTop )+"),i+=isNaN(this._left)?n(this._left)?parseInt(this._left,10)/100*(e.isQuirks?document.body:document.documentElement).clientWidth:r+"-"+(_+this._right):this._left,o+=isNaN(this._top)?n(this._top)?parseInt(this._top,10)/100*(e.isQuirks?document.body:document.documentElement).clientHeight:a+"-"+(s+this._bottom):this._top,e.isIE6&&"rtl"==document.body.currentStyle.direction&&(i+=e.isQuirks?"-(document.body.scrollWidth-document.body.clientWidth)":"-(document.documentElement.scrollWidth-document.documentElement.clientWidth)"),t.setExpression("left",i+'+"px"'),t.setExpression("top",o+'+"px"')},w.prototype.dock=function(t,e,i){this.pos=t,u(e)&&(this.offsetx=e),u(i)&&(this.offsety=i),this.doDock(),this.on("jx:resize",this.doDock)},w.prototype.doDock=function(){var t,e,i,n,o,r,a,s=isNaN(this._width)?this.dom.offsetWidth:this._width,_=isNaN(this._height)?this.dom.offsetHeight:this._height;switch(t=e=i=n=NaN,o=r=a=0,this.pos.charAt(0)){case"t":t=0;break;case"m":t="50%";break;case"b":e=0}switch(this.pos.charAt(1)){case"l":i=0;break;case"c":i="50%";break;case"r":n=0}"50%"==t&&(o=-(_/2)),"50%"==i&&(r=-(s/2)),this.offsety>=0||!isNaN(t)||"string"==typeof t?o+=this.offsety:a=-this.offsety,r+=this.offsetx,this.setMargin([o+"px",0,a+"px",r+"px"].join(" ")).setTop(t).setBottom(e).setLeft(i).setRight(n)},w.prototype.setBounds=function(t){return a(t)||(t=t.split(" "),t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10),t[2]=parseInt(t[2],10),t[3]=parseInt(t[3],10)),j&&(t[1]=Math.max(0,t[1]),t[2]=Math.max(0,t[2])),this._bounds=t,this},w.prototype.setSnaps=function(t){return a(t)||(t=t.split(" "),t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10),t[2]=parseInt(t[2],10),t[3]=parseInt(t[3],10)),this._snaps=[Math.max(0,t[0]),Math.max(0,t[1]),Math.max(0,t[2]),Math.max(0,t[3])],this},w.prototype.applyBounds=function(){if(this._bounds){this._left<this._bounds[3]+this._snaps[3]&&(this._left=this._bounds[3]),this._right<this._bounds[1]+this._snaps[1]&&(this._right=this._bounds[1]),this._top<this._bounds[0]+this._snaps[0]&&(this._top=this._bounds[0]),this._bottom<this._bounds[2]+this._snaps[2]&&(this._bottom=this._bounds[2]);var t=e.isQuirks?document.body:document.documentElement,i=isNaN(this._width)?this.dom.offsetWidth:this._width,n=t.clientWidth-i,o=t.clientHeight-this.dom.offsetHeight;n-this._left<=this._bounds[1]+this._snaps[1]&&(this._left=n-this._bounds[1]),n-this._right<=this._bounds[3]+this._snaps[3]&&(this._right=n-this._bounds[3]),o-this._top<=this._bounds[2]+this._snaps[2]&&(this._top=o-this._bounds[2]),o-this._bottom<=this._bounds[0]+this._snaps[0]&&(this._bottom=o-this._bounds[0])}},w.prototype.moveTo=function(t,e){return this._bottom=this._right=NaN,this._top=e,this._left=t,this.applyBounds(),this.applyConstraints(),this},w.prototype.move=function(t,e){isNaN(this._left)&&isNaN(this._right)&&(this._left=0),isNaN(this._top)&&isNaN(this._bottom)&&(this._top=0),isNaN(this._left)||(this._left+=t),isNaN(this._right)||(this._right-=t),isNaN(this._top)||(this._top+=e),isNaN(this._bottom)||(this._bottom-=e),this.applyBounds(),this.applyConstraints()},w.prototype.resizeBy=function(t,e,i,n){return t&&(isNaN(this._width)&&(this._width=this.dom.offsetWidth),this._width=Math.max(i||0,this._width+t)),e&&(isNaN(this._height)&&(this._height=this.dom.offsetHeight),this._height=Math.max(n||0,this._height+e)),this.applyBounds(),this.applyConstraints(),this.fire("jx:resize"),this},w.prototype.setVisible=function(t){return"none"!=t&&"block"!=t||(this.useDisplay=!0),"none"!=t&&"hidden"!=t&&"false"!=t&&t?this.show():this.hide(),this},w.prototype.isVisible=function(){var t=this.dom.style;return this.useDisplay?"none"!=t.display:"visible"==t.visibility},w.prototype.show=function(){var t=this.dom.style;return this.useDisplay?t.display!=(this._initialDisplay||"block")&&(t.display=this._initialDisplay||"block",this.fire("show")):"visible"!=t.visibility&&(t.visibility="visible",this.fire("show")),this},w.prototype.hide=function(){var t=this.dom.style;return this.useDisplay?"none"!=t.display&&(this._initialDisplay="none"!=t.display&&t.display,t.display="none",this.fire("hide")):"hidden"!=t.visibility&&(t.visibility="hidden",this.fire("hide")),this},w.prototype.toggle=function(){return this.isVisible()?this.hide():this.show()},w.prototype.getXY=function(){var t,e,i=this.dom.offsetParent;for(t=this.dom.offsetLeft,e=this.dom.offsetTop;i;)t+=i.offsetLeft,e+=i.offsetTop,i=i.offsetParent;return[t,e]},w.prototype.getFixedXY=function(){var t,e,i=this.dom,n=this.dom.ownerDocument,o=n.documentElement,r=n.defaultView||i.parentWindow||!1,a={top:0,left:0},s=o.clientTop||0,_=o.clientLeft||0,l=r.pageYOffset||o.scrollTop,d=r.pageXOffset||o.scrollLeft;return"getBoundingClientRect"in i&&(a=i.getBoundingClientRect()),e=a.top+l-s,t=a.left+d-_,[t,e]},w.prototype.setOpacity=function(t){return t=Math.max(Math.min(t,1),0),e.isIE<9?this.dom.style.filter=(this.dom.style.filter||"").replace(/progid:DXImageTransform.Microsoft.Alpha\([^\)]*\),? ?/gi,"")+(t>=1?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+100*t+"), "):this.dom.style.opacity=t,this},w.prototype.setPosition=function(t){switch(t){case"static":case"relative":case"absolute":case"fixed":this._position=t}return null!==this._position&&this.setCSSStyle("position",j&&"fixed"==this._position?"absolute":this._position),this},w.prototype.setBackgroundImage=function(t){var i=t;return i&&e.isIE?this.dom.style.filter+='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+i+'",sizingMethod="scale"), ':this.dom.style.backgroundImage='url("'+t+'")',this},w.prototype.setRotation=function(t){if(e.isFF)this.dom.style.MozTransform=t?"rotate("+t+"deg)":"";else if(e.isSafari)this.dom.style.WebkitTransform=t?"rotate("+t+"deg)":"";else if(e.isIE&&(this.dom.style.filter=t?"progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.round(t/90)+")":"",e.isIE8&&t)){var i=this.parentNode.getElementsByTagName("iframe");e.isIE8&&i.length&&(i[0].style.filter=t?"progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.round(t/90)+")":"",this.dom.style.overflow="visible")}return this},w.prototype.appendToParent=function(t){o.hasParentNode(this.dom)||this.parentNode.appendChild(this.parentNode instanceof w?this:this.dom),this.parentNode!=document.body||"absolute"!=this.style.position&&"fixed"!=this.style.position||this.parentNode.insertBefore(this.dom,this.parentNode.firstChild),t&&!this.inDOM&&(this.parentNode.appendToParent&&this.parentNode.appendToParent(t),this.inDOM=!0)},w.prototype.focus=function(){try{this.dom.focus()}catch(t){}return this},w.prototype.blur=function(){try{this.dom.blur()}catch(t){}return this},w.prototype.click=function(){return this.dom.click&&this.dom.click(),this},w.prototype.validate=function(t){for(var e=!0,i=0,n=this.children.length;i<n;i++){var o=this.children[i];o instanceof w&&"function"==typeof o.validate&&(o.validate(!!t&&e)||(e=!1))}return e},w.prototype.getSelectable=function(){return this.selectable},w.prototype.setSelectable=function(t){function i(){return!1}return c(t)?(this.selectable=!0,this.setStyle("user-select","text"),e.isFF&&this.setStyle("-moz-user-select","text"),e.isWebKit&&this.setStyle("-webkit-user-select","text"),e.isIE>9&&this.setStyle("-ms-user-select","text"),(e.isIE<10||e.isOpera)&&this.un("selectstart",i)):(this.selectable=!1,this.setStyle("user-select","none"),e.isFF&&this.setStyle("-moz-user-select","none"),e.isWebKit&&this.setStyle("-webkit-user-select","none"),e.isIE>9&&this.setStyle("-ms-user-select","none"),(e.isIE<10||e.isOpera)&&this.on("selectstart",i)),this},w.prototype.getDisabled=function(){return this.dom.disabled},w.prototype.setDisabled=function(t){t=c(t);for(var e=0,i=this.children.length;e<i;e++)this.children[e]instanceof w&&this.children[e].setDisabled(t);return this[t?"addClass":"removeClass"]("disabled"),this.dom.disabled=t,this},w.prototype.getReadOnly=function(){return this.dom.readOnly},w.prototype.setReadOnly=function(t){t=c(t);for(var e=0,i=this.children.length;e<i;e++)this.children[e]instanceof w&&this.children[e].setReadOnly(t);return this.dom.readOnly=t,this},w.prototype.getValue=function(){return this.dom.value},w.prototype.setValue=function(t){return this.dom.value=h(t,"allowNull")?"":t,this},w.prototype.getType=function(){return this.getAttribute("type")},w.prototype.setType=function(t){try{this.dom.setAttribute("type",t)}catch(e){}return this},w.prototype.getName=function(){return this.getAttribute("name")},w.prototype.setName=function(t){return this.setAttribute("name",t)},w.prototype.getTabIndex=w.prototype.getTabindex=function(){try{return this.dom.tabIndex}catch(t){}},w.prototype.setTabIndex=w.prototype.setTabindex=function(t){try{this.dom.tabIndex=t}catch(e){}return this},w.prototype.setPlacement=function(t){if(t&&this.parentNode&&this.parentNode instanceof w){var e=this.parentNode.getContainer(t);if(e){if(c(this.attributes.discardPlacement)){for(;this.children.length;)e.appendChild(this.children[0]);return void this.destroy()}return e.appendChild(e instanceof w?this:this.dom),this}}},w.prototype.setContainer=function(t){return this.attributes.container=t,this},w.prototype.getContainer=function(t){if(t){if(this.attributes.container==t)return this;for(var e,i=this.children.length,n=0;n<i;n++)if("function"==typeof this.children[n].getContainer&&(e=this.children[n].getContainer(t)))return e}},w.prototype.getPseudo=function(){return this._pseudo},w.prototype.setPseudo=function(t){return this._pseudo&&this.removeClass(t),this._pseudo=t,this._pseudo&&this.addClass(t),this},w.prototype.setUseDisplay=function(t){return this.useDisplay=c(t),this},w.prototype.getElement=function(t){return o.get(this.jx_id+"__"+t)},w.prototype.setLabel=function(t){return this.label=t,this},w.prototype.getLabel=function(){return this.label||""};for(var A=0;A<v.length;A++)w.prototype[$("set-"+v[A])]=t($(v[A]));for(A=0;A<y.length;A++)w.prototype[$("set-"+y[A])]=g($(y[A]));return w.__jx__no_fqname=!0,p(w,"jx_ui_HTMLElement"),w}()}).call(e,i(7),i(19),i(20),i(14),i(21),i(24),i(22),i(12),i(8),i(23),i(16),i(10),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return"string"==typeof t}return e(t,"jx_core_globals_isString"),t}()}).call(e,i(4))},function(t,e,i){(function(e,i,n,o,r,a,s,_,l){t.exports=function(){function t(t,e,i){try{t.style[k(e)]=i}catch(n){console&&console.log("Failed to set style."+e+' to "'+i+'": '+n.description)}}function d(){}function u(){}function c(){return"___$_"+T++}function h(t,e){var i=e.getAttribute(D);i=i?i.split(" "):[],t||(t=c()),E[t]=e,i.push(t),e.setAttribute(D,i.join(" "))}function p(t){var e=t.getAttribute(D);if(e){e=e.split(" ");for(var i=0;i<e.length;i++)delete E[e[i]]}}function g(t){return E[t]}function f(t,e){for(var i,n=0;n<e.length;n++)i=e[n],"string"!=typeof i&&(i[1]&&(i[1]=t+"__"+i[1]),i[3]&&f(t,i[3]));return e}function m(t){var e=function(i,n,o,r,a){n=n||c();var s=i.ownerDocument,_=B.create(s,t,n);_.__jx__constructor=e,_.__jx__native=!0;var l=!1;return _.appendToParent=function(t){B.hasParentNode(_)||B.appendChild(i,_),t&&!l&&(i.appendToParent&&i.appendToParent(!0),l=!0)},_.setStyle(o),_.setAttributes(a),B.addChildren(_,r),_.appendToParent(),_};return e}function $(t){for(;t.defaultPlacement;)t=t.defaultPlacement;return t}function b(t){return t.createElement?t:$(t).ownerDocument}function w(t,n,o,r){var a=b(t).createElement(n);switch(e.isSafari&&"textarea"==n.toLowerCase()&&(a.style.resize="none"),n.toLowerCase()){case"textarea":case"input":a.style.outlineStyle="none"}return d(a),h(o,a),A(a),i.extend(a),a.setStyle(r),e.buggyCSS&&a.setOverflow("auto"),a}function x(t){return t.parentNode&&t.parentNode.nodeType&&11!=t.parentNode.nodeType}function v(t,e){if(t==document.body&&("absolute"==e.style.position||"fixed"==e.style.position))return t.insertBefore(e,t.firstChild),void e.applyConstraints();for(var i=t;i.defaultPlacement;)i=i.defaultPlacement;i.appendChild(e),e.applyConstraints()}function y(t,e){if(e&&e.length){t=$(t);for(var i,o,r,a=t.ownerDocument,s=0;s<e.length;s++)o=e[s],n(o)?i=o[0](t,o[1],o[2],o[3],o[4]):(r=a.createTextNode(o),t.appendChild(r),"function"==typeof o.bind&&o.bind(r));return i}}function j(t){var e=t.ownerDocument;return e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(t,null)||{}:t.currentStyle?t.currentStyle:{}}function C(t,e){return j(t)[e]}function A(t,i){function l(e){var i;for(var n in e)e.hasOwnProperty(n)&&(i="set"+n.substr(0,1).toUpperCase()+n.substr(1),"function"==typeof t[i]&&t[i](e[n]))}function d(){return t.textContent||t.innerText||""}function u(e){o&&o.unbind&&o.unbind(t),e&&"function"==typeof e.bind&&e.bind(t),P?t.textContent=e:t.innerText=e}function c(e){function i(e,i){var n=k("set-"+e);"function"==typeof t[n]?t[n](i):N(t,e,i)}var n,o;if(1==arguments.length&&r(e)){if(!e)return;for(e=e.split(";"),n=0;n<e.length;n++)e[n].match(/^\s*$/)||(o=e[n].match(/\s*([^:]+):\s*(.*?)\s*$/),o||!e[n].length?i(o[1],o[2]):console&&console.log('Bad style: "'+e[n]+'"'))}else if(1==arguments.length&&"object"==typeof e)for(var a in e)e.hasOwnProperty(a)&&i(a,e[a]);else if(arguments.length>1)for(n=0;n<arguments.length;n+=2)i(arguments[n],arguments[n+1])}function h(i){function n(){var t=o&&o.flip?o.flip(i):i;e.isIE?ot.styleFloat=t:ot.cssFloat=t}return o&&o.onLanguage&&o.onLanguage(n),n(),t}function p(e){return X=w(e),v(),t}function g(e){return Z=w(e),v(),t}function f(e){return K=w(e),v(),t}function m(e){return Q=w(e),v(),t}function $(e){return J=w(e),v(),t}function b(e){return tt=w(e),v(),t}function w(t){return r(t)&&"%"==t.substr(t.length-1)?parseInt(t,10)+"%":parseInt(t,10)}function x(e){switch(e){case"static":case"relative":case"absolute":case"fixed":et=e}return null!==et&&N(t,"position",_t&&"fixed"==et?"absolute":et),t}function v(){isNaN(X)||isNaN(tt)||(K=NaN),isNaN(Z)||isNaN(J)||(Q=NaN),J<0&&(J=0),tt<0&&(tt=0),y()}function y(){if(B.hasParentNode(t))return e.bugs.ie.cssFixed&&"fixed"==et?void a(S,t,!0):!e.bugs.ie.cssBottomRight||(isNaN(Z)||isNaN(Q))&&(isNaN(X)||isNaN(K))?void D():void T()}function S(){I(),t.appendToParent&&t.appendToParent(!0),K<0&&(K=0),Q<0&&(Q=0),s.ok(isNaN(Z)!=isNaN(Q),"One and only one of left/right must be set"),s.ok(isNaN(X)!=isNaN(K),"One and only one of top/bottom must be set"),s.ok(!isNaN(J),"Width must be set"),s.ok(!isNaN(tt),"Height must be set"),s.ok(t.ownerDocument==document,"Fixed element must be top level element"),tt!=nt&&(ot.height=tt+"px",nt=tt),J!=it&&(ot.width=J+"px",it=J);var i,n,o,a;e.isQuirks?(a="document.body.clientHeight",o="document.body.clientWidth",i="(dummye34cf6=document.body.scrollLeft)+",n="(dummye34cf6=document.body.scrollTop )+"):(a="document.documentElement.clientHeight",o="document.documentElement.clientWidth",i="(dummye34cf6=document.documentElement.scrollLeft)+",n="(dummye34cf6=document.documentElement.scrollTop )+"),i+=isNaN(Z)?r(Z)?parseInt(Z,10)/100*(e.isQuirks?document.body:document.documentElement).clientWidth:o+"-"+(J+Q):Z,n+=isNaN(X)?r(X)?parseInt(X,10)/100*(e.isQuirks?document.body:document.documentElement).clientHeight:a+"-"+(tt+K):X,e.isIE6&&"rtl"==document.body.currentStyle.direction&&(i+=e.isQuirks?"-(document.body.scrollWidth-document.body.clientWidth)":"-(document.documentElement.scrollWidth-document.documentElement.clientWidth)"),ot.setExpression("left",i+'+"px"'),ot.setExpression("top",n+'+"px"')}function I(){if(!I.alreadyHacked)if(I.alreadyHacked=1,e.isStrict)document.body.parentNode.style.background="#fff url(https://) fixed";else if("fixed"!=document.body.currentStyle.backgroundAttachment){if("none"!=document.body.currentStyle.backgroundImage){var t=document.createElement("div"),i=t.style,n=document.body.currentStyle;i.backgroundAttachment=n.backgroundAttachment,i.backgroundColor=n.backgroundColor,i.backgroundImage=n.backgroundImage,i.backgroundPositionX=n.backgroundPositionX,i.backgroundPositionY=n.backgroundPositionY,i.backgroundRepeat=n.backgroundRepeat,i.position="absolute",i.zIndex=-1,i.top=i.left=0,i.width="100%",document.body.insertBefore(t,document.body.firstChild);var o,r,a=!1,s=0,_=function(){!a&&s&&(o+=document.body.clientWidth-s,i.width=o+"px",s=document.body.clientWidth),r||(r=setTimeout(function(){i.width=0,document.body.className=document.body.className,o=Math.max(document.body.scrollWidth,document.body.clientWidth),i.width=o+"px",s=document.body.clientWidth,a=document.body.scrollWidth>document.body.clientWidth,r=null},0))};setTimeout(_,0),i.setExpression("height",'document.body.scrollHeight+"px"'),_()}document.body.style.backgroundImage="url(https://)",document.body.style.backgroundAttachment="fixed"}}function T(){function i(t,e){ot[t]="",ot.removeExpression(t),"number"==typeof e?ot[t]=e+"px":r(e)&&"%"==e.substr(e.length-1)?ot[t]=e:r(e)&&e.length&&ot.setExpression(t,e)}t.appendToParent&&t.appendToParent(!0),I();var n,o,a=isNaN(Z)?"":Z,s=isNaN(Q)?"":Q,_=isNaN(J)?"":J,l=isNaN(X)?"":X,d=isNaN(K)?"":K,u=isNaN(tt)?"":tt,c="BackCompat"==t.ownerDocument.compatMode;"fixed"==et&&t.ownerDocument==document?c?(o="document.body.clientHeight",n="document.body.clientWidth"):(o="document.documentElement.clientHeight",n="document.documentElement.clientWidth"):(o="this.offsetParent.clientHeight",n="this.offsetParent.clientWidth"),e.isIE6&&(isNaN(Z)||isNaN(Q)||(s="",_=[n,Z,Q].join("-")),isNaN(X)||isNaN(K)||(d="",u=[o,X,K].join(" - "))),"fixed"==et&&t.ownerDocument==document&&(c?(!isNaN(Z)||isNaN(Q)?a+="+(dummye34cf6=document.body.scrollLeft)":(a+="+(dummye34cf6=document.body.scrollLeft)+document.body.clientWidth-this.offsetWidth-"+Q,s=""),!isNaN(X)||isNaN(K)?l+="+(dummye34cf6=document.body.scrollTop)":(l+="+(dummye34cf6=document.body.scrollTop)+document.body.clientHeight-this.offsetHeight-"+K,d="")):(!isNaN(Z)||isNaN(Q)?a+="+(dummye34cf6=document.documentElement.scrollLeft)":e.isIE6?(a+="+(dummye34cf6=document.documentElement.scrollLeft)+document.documentElement.clientWidth-this.offsetWidth-"+Q,s=""):s+="+document.documentElement.scrollWidth-(dummye34cf6=document.documentElement.scrollLeft)-document.documentElement.clientWidth",!isNaN(X)||isNaN(K)?l+="+(dummye34cf6=document.documentElement.scrollTop)":e.isIE6?(l+="+(dummye34cf6=document.documentElement.scrollTop)+document.documentElement.clientHeight-this.offsetHeight-"+K,d=""):d+="+document.documentElement.scrollHeight - (dummye34cf6=document.documentElement.scrollTop) - document.documentElement.clientHeight")),i("left",a),i("right",s),i("width",_),i("top",l),i("bottom",d),i("height",u)}function D(){W(),E()}function E(){ot.top=r(X)?X:isNaN(X)?"":X+"px",ot.bottom=r(K)?K:isNaN(K)?"":K+"px",tt!=nt&&(ot.height=r(tt)?tt:isNaN(tt)?"":tt+"px",nt=tt)}function W(){ot.left=r(Z)?Z:isNaN(Z)?"":Z+"px",ot.right=r(Q)?Q:isNaN(Q)?"":Q+"px",J!=it&&(ot.width=r(J)?J:isNaN(J)?"":J+"px",it=J)}function L(){var e,i,n,o,r,a,s=isNaN(J)?t.offsetWidth:J,_=isNaN(tt)?t.offsetHeight:tt;switch(e=i=n=o=NaN,r=a=0,lt.charAt(0)){case"t":e=0;break;case"m":e="50%";break;case"b":i=0}switch(lt.charAt(1)){case"l":n=0;break;case"c":n="50%";break;case"r":o=0}"50%"==e&&(r=-(_/2)),"50%"==n&&(a=-(s/2));var l=0;ut>=0||!isNaN(e)||"string"==typeof e?r+=ut:l=-ut,a+=dt,t.setMargin([r+"px",0,l+"px",a+"px"].join(" ")).setTop(e).setBottom(i).setLeft(n).setRight(o)}function R(e){return n(e)||(e=e.split(" "),e[0]=parseInt(e[0],10),e[1]=parseInt(e[1],10),e[2]=parseInt(e[2],10),e[3]=parseInt(e[3],10)),_t&&(e[1]=Math.max(0,e[1]),e[2]=Math.max(0,e[2])),ct=e,t}function F(e){return n(e)||(e=e.split(" "),e[0]=parseInt(e[0],10),e[1]=parseInt(e[1],10),e[2]=parseInt(e[2],10),e[3]=parseInt(e[3],10)),ht=[Math.max(0,e[0]),Math.max(0,e[1]),Math.max(0,e[2]),Math.max(0,e[3])],t}function M(){if(ct){Z<ct[3]+ht[3]&&(Z=ct[3]),Q<ct[1]+ht[1]&&(Q=ct[1]),X<ct[0]+ht[0]&&(X=ct[0]),K<ct[2]+ht[2]&&(K=ct[2]);var i=e.isQuirks?document.body:document.documentElement,n=isNaN(J)?t.offsetWidth:J,o=i.clientWidth-n,r=i.clientHeight-t.offsetHeight;o-Z<=ct[1]+ht[1]&&(Z=o-ct[1]),o-Q<=ct[3]+ht[3]&&(Q=o-ct[3]),r-X<=ct[2]+ht[2]&&(X=r-ct[2]),r-K<=ct[0]+ht[0]&&(K=r-ct[0])}}function V(e,i){return K=Q=NaN,X=i,Z=e,M(),y(),t}function H(t,e){isNaN(Z)&&isNaN(Q)&&(Z=0),isNaN(X)&&isNaN(K)&&(X=0),isNaN(Z)||(Z+=t),isNaN(Q)||(Q-=t),isNaN(X)||(X+=e),isNaN(K)||(K-=e),M(),y()}function z(e,i,n,o){return e&&(isNaN(J)&&(J=t.offsetWidth),J=Math.max(n||0,J+e)),i&&(isNaN(tt)&&(tt=t.offsetHeight),tt=Math.max(o||0,tt+i)),M(),y(),t.fire("jx:resize"),t}function q(e){return"none"!=e&&"block"!=e||(pt=!0),"none"!=e&&"hidden"!=e&&"false"!=e&&e?Y():U(),t}function U(){return pt?"none"!=ot.display&&(ot.display="none",t.fire("hide")):"hidden"!=ot.visibility&&(ot.visibility="hidden",t.fire("hide")),t}function G(){return pt?"none"!=t.getStyle("display"):"visible"==t.getStyle("visibility")}function Y(){return pt?"block"!=ot.display&&(ot.display="block",t.fire("show")):"visible"!=ot.visibility&&(ot.visibility="visible",t.fire("show")),t}var X,K,Z,Q,J,tt,et,it,nt,ot=t.style,rt=t.ownerDocument,at="BackCompat"==rt.compatMode,st=!(!rt.documentElement||!rt.documentElement.style.setExpression),_t=e.isIE6||e.isIE&&at&&st;X=K=Z=Q=J=tt=NaN,et=null;var lt="",dt=0,ut=0;t.dock=function(e,i,n){lt=e,_(i)&&(dt=i),_(n)&&(ut=n),L(),t.on("jx:resize",L)};var ct,ht=[0,0,0,0],pt=!1;t.getStyles=function(){return j(t)},t.getStyle=function(e){return C(t,e)},t.setAttributes=l,t.getText=d,t.setText=u,t.setStyle=c,t.setFloat=h,t.setPosition=x,t.setTop=p,t.setBottom=f,t.setLeft=g,t.setRight=m,t.setHeight=b,t.setWidth=$,t.applyConstraints=y,t.setVisible=q,t.setBounds=R,t.setSnaps=F,t.move=H,t.moveTo=V,t.resizeBy=z,t.hide=U,t.show=Y,t.isVisible=G;for(var gt in O)O.hasOwnProperty(gt)&&(t[gt]=O[gt]);if(i)for(var ft=t.firstChild;ft;)A(ft,!0),ft=ft.nextSibling;return t}function S(t){return function(e){try{this.style[t]=e}catch(i){}return this}}function I(t){return function(e){return this.setAttribute(t,e),this}}function k(t){t=t.split(/[^a-zA-Z0-9]/);for(var e=1;e<t.length;e++)t[e].length&&(t[e]=t[e].substr(0,1).toUpperCase()+t[e].substr(1));return t.join("")}var B={create:w,extend:A,appendChild:v,addChildren:y,hasParentNode:x,id:c,get:g,set:h,unset:p,mangleIDs:f,generateID:c,nativeGenerator:m,getStyles:j,processDeferredStyles:u},N=t,T=1,D="__JX__ID",E={};e.bugs.leaksMemory&&e.bugs.leaksMemory(function(){for(var t,e=0,i=E.length;e<i;e++)t=E[e],t.plugLeakage&&t.plugLeakage()});var P=e.isTextContent,O=B.proto={$:function(t){return g(this.id+"__"+t)},destroy:function(){if(this._destructors)for(var t=this._destructors,i=t.length,n=0;n<i;n++)t[n].call(this);this.parentNode&&this.parentNode.removeChild(this),this._autobinds&&this.autounbind(),"function"==typeof this.empty&&this.empty(),"function"==typeof this.unextendEvents&&this.unextendEvents(),p(this),e.bugs.leaksMemory&&"function"==typeof this.plugLeakage&&this.plugLeakage()},empty:function(){for(var t;t=this.firstChild;)"function"==typeof t.destroy?t.destroy():t.jx_wrapper?t.jx_wrapper.destroy():1==t.nodeType?O.destroy.call(t):this.removeChild(t)},onDestruction:function(t){(this._destructors||(this._destructors=[])).push(t)},autobind:function(t,e,i){t.on(e,i),this._autobinds||(this._autobinds=[]),this._autobinds.push([t,e,i])},autounbind:function(t,e,i){var n,o,r=this._autobinds;if(t&&e&&i){for(n=r.length-1;n>=0;n--)if(o=r[n],o[0]==t&&o[1]==e&&o[2]==i)return r.splice(n,1),void o[0].un(o[1],o[2])}else if(t||e||i);else{if(!r)return;for(n=r.length-1;n>=0;n--)o=r[n],o[0].un(o[1],o[2])}},getXY:function(){var t,e,i=this.offsetParent;for(t=this.offsetLeft,e=this.offsetTop;i;)t+=i.offsetLeft,e+=i.offsetTop,i=i.offsetParent;return[t,e]},getFixedXY:function(){var t=0,e=0,i=this;if("getBoundingClientRect"in this){var n=this.ownerDocument,o=n.body,r=n.defaultView||i.parentWindow||!1,a=i.getBoundingClientRect(),s=n.clientTop||o.clientTop||0,_=n.clientLeft||o.clientLeft||0,l=r.pageYOffset||o.scrollTop,d=r.pageXOffset||o.scrollLeft;e=a.top+l-s,t=a.left+d-_}else for(e=i.offsetTop,t=i.offsetLeft;i=i.offsetParent;)e-=i.scrollTop,t-=i.scrollLeft,e+=i.offsetTop,t+=i.offsetLeft;return[t,e]},toggle:function(){return this.isVisible()?this.hide():this.show(),this},setOpacity:function(t){return t=Math.max(Math.min(t,1),0),e.isIE?this.style.filter=(this.style.filter||"").replace(/progid:DXImageTransform.Microsoft.Alpha\([^\)]*\),? ?/gi,"")+(t>=1?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+100*t+"), "):this.style.opacity=t,this},setBackgroundImage:function(t){var i=t;return i&&e.isIE?this.style.filter+='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+i+'",sizingMethod="scale"), ':this.style.backgroundImage='url("'+t+'")',this},setClass:function(t){return this.className=t,this},addClass:function(t){return this.removeClass(t),this.className+=" "+t,this},removeClass:function(t){for(var e=this.className.split(" "),i=0;i<e.length;i++)e[i]==t&&(e[i]="");return this.className=e.join(" "),this},setRotation:function(t){if(e.isFF)this.style.MozTransform=t?"rotate("+t+"deg)":"";else if(e.isSafari)this.style.WebkitTransform=t?"rotate("+t+"deg)":"";else if(e.isIE&&(this.style.filter=t?"progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.round(t/90)+")":"",e.isIE8&&t)){var i=this.getElementsByTagName("iframe");e.isIE8&&i.length&&(i[0].style.filter=t?"progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.round(t/90)+")":"",this.style.overflow="visible")}return this},setSelectable:function(t){function e(){return!1}return t&&"false"!=t?(this.unselectable="on","undefined"!=typeof this.style.MozUserSelect?this.style.MozUserSelect="none":"undefined"!=typeof this.style.WebkitUserSelect?this.style.WebkitUserSelect="none":"undefined"!=typeof this.onselectstart&&this.un("selectstart",e)):(this.unselectable="on","undefined"!=typeof this.style.MozUserSelect?this.style.MozUserSelect="none":"undefined"!=typeof this.style.WebkitUserSelect?this.style.WebkitUserSelect="none":"undefined"!=typeof this.onselectstart&&this.on("selectstart",e)),this},setScrollTop:function(t){return this.scrollTop=t,this}};e.leaksMemory&&(O.plugLeakage=function(){this.unextendEvents&&this.unextendEvents(),this.$=this.plugLeakage=this.destroy=this.empty=this.autobind=this.autounbind=this._autobinds=this._destructors=this.onDestruction=this.getXY=this.appendToParent=this.defaultPlacement=this.getStyles=this.getStyle=this.setAttributes=this.getText=this.setText=this.setStyle=this.setFloat=this.setPosition=this.setTop=this.setBottom=this.setLeft=this.setRight=this.setHeight=this.setWidth=this.applyConstraints=this.setVisible=this.setBounds=this.setSnaps=this.move=this.moveTo=this.resizeBy=this.hide=this.show=this.isVisible=this.toggle=this.setOpacity=this.setBackgroundImage=this.setClass=this.addClass=this.removeClass=this.setRotation=this.setSthisectable=this.setScrollTop=this.setBackground=this.setBackgroundPosition=this.setBorder=this.setBorderColor=this.setBorderStyle=this.setBorderWidth=this.setBorderTop=this.setBorderRight=this.setBorderBottom=this.setBorderLeft=this.setClear=this.setColor=this.setPadding=this.setMargin=this.setMarginTop=this.setMarginRight=this.setMarginBottom=this.setMarginLeft=this.setDisplay=this.setLineHeight=this.setLetterSpacing=this.setVisibility=this.setOutline=this.setOverflow=this.setOverflowX=this.setOverflowY=this.setFontFamily=this.setFontSize=this.setFontWeight=this.setFontStyle=this.setTextAlign=this.setTextDecoration=this.setTextTransform=this.setVerticalAlign=this.setZIndex=this.setCursor=this.setHref=this.setSrc=this.setChecked=this.setMedia=this.setName=this.setType=this.setValue=this.setDataNode=this.__jx__constructor=this.__jx__native=null;
});var W,L;for(W="background background-position border border-color border-style border-width color border-top border-right border-bottom border-left clear padding margin margin-top margin-right margin-bottom margin-left display line-height letter-spacing visibility outline overflow overflow-x overflow-y font-family font-size font-weight font-style text-align text-decoration text-transform vertical-align z-index cursor".split(" "),L=0;L<W.length;L++)O[k("set-"+W[L])]=S(k(W[L]));for(W="checked href media name src target type value".split(" "),L=0;L<W.length;L++)O[k("set-"+W[L])]=I(W[L]);return e.isIE&&document.execCommand("BackgroundImageCache",!1,!0),l(B,"jx_core_Element"),B}()}).call(e,i(7),i(6),i(21),i(22),i(19),i(12),i(8),i(23),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return"[object Array]"==Object.prototype.toString.call(t)}return e(t,"jx_core_globals_isArray"),t}()}).call(e,i(4))},function(t,e,i){(function(e,i,n,o,r){t.exports=function(){function t(t,e){if(isNaN(t))return t;t==-1&&(t=f.length);var i=f[t];if(i||(f[t]=i=new a),"string"==typeof e)i.add("_",e);else for(var n in e)e.hasOwnProperty(n)&&i.add(n,e[n]);return i}function a(){function t(t,e){d[t]=e}function e(t){s(t,c)}function i(t){u.push(t)}function n(){return o()}function o(t){return d[t||m]||d._}function r(t){var e,i=o(t);for(e=0;e<u.length;e++)u[e](i)}function _(t,e){var i,n=new a;f[d._]=n;for(var o in d)if(d.hasOwnProperty(o)){if(i=d[o],"string"!=typeof i)continue;i=i[t].apply(i,e),n.add(o,i)}return n}function l(t){return function(){return _(t,arguments)}}for(var d={},u=[],c={add:t,bind:e,onTranslate:i,toJSON:n,toString:o,update:r},h=["concat","replace","toLowerCase","toUpperCase"],p=0;p<h.length;p++)c[h[p]]=l(h[p]);return c}function s(t,e){for(var i=0;i<$.length;i++)if($[i]==t)return void(b[i]=e);$.push(t),b.push(e)}function _(t){for(var e=0;e<$.length;e++)if($[e]==t)return $.splice(e,1),void b.splice(e,1)}function l(t){t=t.split(/-|_/).slice(0,2);var e=t[0]=t[0].toLowerCase();return t[1]&&(t[1]=t[1].toUpperCase()),t=t.join("_"),i.languages?t in i.languages?t:e in i.languages?e:null:null}function d(e){var r,a,s,_,d,c;e=l(e),e&&(d=i.languages[e],d&&(c=n[i.languages[e]],c&&(t.language=m=e,o.ensureLoaded(c,function(t){if(t&&u(e),e==m){for(r=0,a=f.length;r<a;r++)f[r].update instanceof Function&&f[r].update(e);for(r=0,a=$.length;r<a;r++)if(s=$[r],_=b[r].toString(),x)s.textContent=_;else if("string"==typeof s.innerText)s.innerText=_;else if("string"==typeof s.nodeValue)try{s.data=_}catch(i){}for(w._active=!0,a=w.length,r=0;r<a;r++)try{w[r]&&w[r](e)}catch(i){}if(w._active=!1,w._dirty){for(r=0;r<a;r++)w[r]||(r==a-1?w.pop():w[r--]=w.pop(),a--);w._dirty=!1}}}))))}function u(t){var e,o=n[i.languages[t]];for(e=0;e<o.length;e++)0!==o[e]&&f[e].add(t,o[e])}function c(t){w.push(t)}function h(t){for(var e=0,i=w.length;e<i;e++)if(w[e]==t){w._active?(w[e]=null,w._dirty=!0):e==i-1?w.pop():w[e]=w.pop();break}}function p(){return!(m.search(v)==-1)}function g(t){return p()?t.replace(/left/,"%left%").replace(/right/,"left").replace(/%left%/,"right").replace(/ltr/,"%ltr%").replace(/rtl/,"ltr").replace(/%ltr%/,"rtl"):t}var f=[],m="_",$=[],b=[],w=[],x=e.isTextContent,v=/^ar|^fa|^he/,y=i.strings;if(y)for(var j=0;j<y.length;j++)t(j,y[j]);return t.bind=s,t.flip=g,t.onLanguage=c,t.unLanguage=h,t.update=d,t.unbind=_,t.rtl=p,t.findClosestLanguage=l,r(t,"jx_core__"),t}()}).call(e,i(7),i(1),i(3),i(2),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return"number"==typeof t}return e(t,"jx_core_globals_isNumber"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if(0===i)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!=n?n=0:0!=n&&n!=1/0&&n!=-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=i)return-1;for(var o=n>=0?n:Math.max(i-Math.abs(n),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1}function i(t,e,i){return n.call(e,t,i)}var n=Array.prototype.indexOf;return"function"==typeof n&&/\[native code\]/.test(n.toString())||(n=t),e(i,"jx_core_globals_indexOf"),i}()}).call(e,i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(e){e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation,e.target=e.srcElement}function o(){this.allCallbacks={},this.nativeHandlers={}}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},o.prototype.useCustomHandling=function(t){return!this.dom.nodeType&&this.dom!=window&&this.dom!=document||("form"!=this.tagName.toLowerCase()||"submit"!=t)&&(!e.isCustomEvents&&(e.isFF&&e.isFF<9?!document.createEvent("event")[t.toUpperCase()]:"undefined"==typeof this.dom["on"+t]))},o.prototype.addEventListener=function(t,e){if(!t&&"function"!=typeof e)throw"bad arguments to on / addEventListener";return t in this.allCallbacks||(this.allCallbacks[t]=[],this.useCustomHandling(t)||this.setupNativeEventListener(t)),this.allCallbacks[t].push(e),this},o.prototype.setupNativeEventListener=function(n){if(!(n in this.nativeHandlers)){var o=this;this.nativeHandlers[n]=function(r){r&&(r.stopPropagation||t(r));var a,s=o.allCallbacks[n],_=s.length,l=!0;for(s._active=!0,a=0;a<_;a++)try{if(!s[a])continue;s[a].call(o,e.isCustomEvents&&r instanceof window.CustomEvent?r.detail:r)===!1&&(l=!1)}catch(d){i.fire("error",d)}if(s._active=!1,s._dirty){for(a=0;a<_;a++)s[a]||(a==_-1?s.pop():s[a--]=s.pop(),_--);s._dirty=!1}if(l===!1)return r&&(r.preventDefault(),r.returnValue=!1),!1},this.dom.attachEvent?this.dom.attachEvent("on"+n,this.nativeHandlers[n]):this.dom.addEventListener&&this.dom.addEventListener(n,this.nativeHandlers[n],!1)}},o.prototype.teardownNativeEventListener=function(t){var e=this.nativeHandlers[t];e&&(this.dom.attachEvent?this.dom.detachEvent("on"+t,e):this.dom.addEventListener&&this.dom.removeEventListener(t,e,!1),delete this.nativeHandlers[t],delete this.allCallbacks[t])},o.prototype.removeEventListener=function(t,e){var i=this.allCallbacks[t];if(i){for(var n=0,o=i.length;n<o;n++)if(i[n]===e){1==i.length?this.nativeHandlers[t]?this.teardownNativeEventListener(t):delete this.allCallbacks[t]:i._active?(i[n]=null,i._dirty=!0):n==o-1?i.pop():i[n]=i.pop();break}return this}},o.prototype.unextendEvents=function(){if(this.allCallbacks&&this.nativeHandlers){for(var t in this.nativeHandlers)this.nativeHandlers.hasOwnProperty(t)&&this.teardownNativeEventListener(t);this.allCallbacks=this.nativeHandlers=null}},o.prototype.fireCustomEvent=function(t,n){if(!e.isCustomEvents||this.useCustomHandling(t)){var o=this.allCallbacks[t],r=!0;if(o&&o.length){o._active=!0;var a,s,_;for(a=0,s=o.length;a<s;a++)try{if(!o[a])continue;_=o[a].call(this,n),_===!1&&(r=!1)}catch(l){i.fire("error",l)}if(o._active=!1,o._dirty){for(a=0;a<s;a++)o[a]||(a==s-1?o.pop():o[a--]=o.pop(),s--);o._dirty=!1}}return r}return this.dom.dispatchEvent(new window.CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n}))},o.prototype.fire=o.prototype.fireCustomEvent,o.prototype.on=o.prototype.addEventListener,o.prototype.un=o.prototype.removeEventListener,o.__jx__no_fqname=!0,n(o,"jx_ui_HTMLEvent"),o}()}).call(e,i(7),i(6),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){if(!(this instanceof t))return new t(e,i,n,r,a);var s=e.ownerDocument;a||(a={}),a.tagName||(a.tagName="style"),o.call(this,s.getElementsByTagName("head")[0],i,n,null,a),this.dom.type="text/css",this.addChildren(r)}var o=i(17);return t.prototype=e(o.prototype),t.prototype.getText=function(){return this.dom.styleSheet?this.dom.styleSheet.cssText:o.prototype.getText.call(this)},t.prototype.addChildren=function(t){if(t&&t.length)if("styleSheet"in this.dom){if(!this.dom.styleSheet)return void this.destroy();this.dom.styleSheet.cssText+=t.join("")}else o.prototype.addChildren.call(this,[t.join("")])},n(t,"jx_ui_StyleSheet"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(e){return this instanceof t?e?t.parseQuery(e):void(this.store={}):(r||t._initSingleton(window),r)}function i(t,e,i){if(void 0===e&&void 0===i)return t;if(void 0===e&&(e="string"),!(e in o))throw"invalid type requested";return void 0===t?void 0!==i?i:o[e]:"boolean"===e?n.test(t):"integer"===e?parseInt(t,10):"float"===e?parseFloat(t):t}var n=/^(1|on|true)$/i,o={"boolean":!1,integer:0,"float":0,string:""},r=null;t._initSingleton=function(e){r=new t(e.location.search)},t.buildQuery=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(window.encodeURIComponent(i)+"="+window.encodeURIComponent(t[i]+""));return e.join("&")},t.parseQuery=function(e){var i=new t;e=e.replace(/^\?|\/+$/g,"");for(var n,o,r=e.split("&"),a=0,s=r.length;a<s;a++){var _=r[a];if(_.length){var l=_.indexOf("=");l<=-1?(n=_,o="1"):(n=_.slice(0,l),o=_.slice(l+1)),i.add(window.decodeURIComponent(n),window.decodeURIComponent(o))}}return i},t.getHash=function(e,i){var n=i||window.location.hash;return t.parseQuery(n.replace(/^#/,"")).get(e)};var a=t.prototype;return a.add=function(t,e){this.has(t)?this.store[t].push(e):this.store[t]=[e]},a.has=function(t){return t in this.store},a.getLast=function(t,e,n){if(!this.has(t))return i(void 0,e,n);var o=this.store[t];return i(o[o.length-1],e,n)},a.getFirst=function(t,e,i){return this.getAt(t,0,e,i)},a.getAt=function(t,e,n,o){return i(this.has(t)?this.store[t][e]:void 0,n,o)},a.getRaw=function(t){return this.has(t)?this.store[t].concat():void 0},a.get=a.getLast,a.toString=function(){return t.buildQuery(this.store)},e(t,"meshim_common_QueryString"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){function t(){n||(n=new h(N,null,null,null,{visibility:"hidden"}))}function i(){_||(_=new $(N,null,null,null,{visibility:"hidden"}))}function l(){s||(s=new b(N,null,null,null,{visibility:"hidden"}))}function x(){o||(o=new g(N,null,null,null,{visibility:"hidden"}))}function k(){o||(o=new f(N,null,null,null,{visibility:"hidden"}))}function B(){a||(a=new m(N,null,null,null,{visibility:"hidden"}))}u.init(),j.bindValue(function(t){t&&!e&&(e=!0,r(function(){c.fromRefTime("theme_loaded"+(v.getValue()?"_cached":"_no_cached"),.25),n&&n.setVisibility(""),o&&o.setVisibility(""),a&&a.setVisibility(""),s&&s.setVisibility(""),_&&_.setVisibility(""),w.refocusActiveElement()}))});var N=window.document.body;(I.getValue()||S.getValue())&&(N=p),S.getValue()?(t(),p.addClass("popout")):C.getValue()&&A.getValue()?(d.init(),i(),k(),B(),y.$("mobile_notifications$bool").getValue()&&l()):C.getValue()?(d.init(),k(),B()):(t(),x())}var e,n,o,a,s,_,l=i(30),d=i(43),u=i(46),c=i(49),h=i(74),g=i(292),f=i(309),m=i(319),$=i(321),b=i(331),w=i(38),x=l.root,v=x.$("livechat").$("settings").$("cached$bool"),y=x.$("livechat").$("ui"),j=y.$("theme_loaded$bool"),C=y.$("mobile$bool"),A=y.$("mobile_overlay$bool"),S=y.$("popout$bool"),I=y.$("mockup$bool");t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self, textarea, input, button":{fontFamily:["$$fontFamily","$$customFontFamily"],fontSize:"$$fontSize"},":lang(ja), :lang(ko), :lang(zh_CN), :lang(zh_TW)":{"*":{fontWeight:"normal !important",fontStyle:"normal !important"},"::placeholder":{fontStyle:"normal !important"}},"&.popout":{position:"absolute","top, left":0,"width, height":"100%"},"*":{WebkitTapHighlightColor:"transparent"},"input, select, textarea, button":{"&:focus":{outline:"none"}},img:{MsInterpolationMode:"bicubic"},"input, textarea":{"&:-moz-placeholder, &::-moz-placeholder":{opacity:1}},"input, button":{"&::-moz-focus-inner":{padding:0,border:0}},table:{fontSize:"100%",color:"inherit",borderCollapse:"collapse",borderSpacing:0}},s(t,"meshim_widget_Widget"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(12),i(14),i(4))},function(t,e,i){(function(e,i,n,o,r,a,s,_){t.exports=function(){function t(){D.setPalette({},k,B)}function l(t,e,i){for(;P[i]||a(P[i]);)i=P[i].toString().replace(v.removePrefix,"");return e?h(e,i):i||""}function d(t,e,i,n){t||(t=document);var o=u(t,e);if(o)if(n)o.styleSheet?o.styleSheet.cssText=i:o[E?"textContent":"innerText"]=i;else if(o.styleSheet)o.styleSheet.cssText=[o.styleSheet.cssText,i].join("");else{var r=document.createTextNode(i);o.appendChild(r)}else if(o=t.createElement("style"),t.getElementsByTagName("head")[0].appendChild(o),o.type="text/css",e&&o.setAttribute("__jx__stylesheet_id",e),void 0!==o.styleSheet){if(!o.styleSheet)return t.getElementsByTagName("head")[0].removeChild(o),void(o=null);o.styleSheet.cssText=i}else o[E?"textContent":"innerText"]=i}function u(t,e){if(e){t||(t=document);for(var i=0,n=t.styleSheets.length;i<n;i++)if((t.styleSheets[i].ownerNode&&t.styleSheets[i].ownerNode.getAttribute("__jx__stylesheet_id")||t.styleSheets[i].owningElement&&t.styleSheets[i].owningElement.getAttribute("__jx__stylesheet_id"))==e)return t.styleSheets[i].ownerNode&&t.styleSheets[i].ownerNode||t.styleSheets[i].owningElement&&t.styleSheets[i].owningElement}}function c(t,i,n,o,r){var a,_,l,d,u,p,g=[],f=[];for(a in t)if(t.hasOwnProperty(a)){if(_=t[a],l=void 0,"@keyframes"==a){p=[];for(var m in _)_.hasOwnProperty(m)&&(p=c(_[m]),f.push($(["@-webkit-keyframes ",m," { ",p.join(" ")," } "])),f.push($(["@-moz-keyframes ",m," { ",p.join(" ")," } "])),f.push($(["@-ms-keyframes ",m," { ",p.join(" ")," } "])),f.push($(["@-o-keyframes ",m," { ",p.join(" ")," } "])),f.push($(["@keyframes ",m," { ",p.join(" ")," } "])));continue}switch("@media"==a.slice(0,6)&&(a=[a,"@mediaend"].join("")),typeof _){case"boolean":case"number":case"string":for(l=a.split(","),d=0,u=l.length;d<u;d++)g.push(h(l[d],_));break;default:if(s(_)){for(d=0,u=_.length;d<u;d++)g.push(h(a,_[d]));break}if(v.placeholder.test(a))for(p=a.replace(v.placeholder,""),l=[],d=0,u=y.placeholder.length;d<u;d++)l.push($([p,y.placeholder[d]]));for(s(l)||(l=a.split(",")),d=0,u=l.length;d<u;d++)f=f.concat(c(_,l[d].trim()))}}if(g.length&&(r||(g.unshift("{"),g.push("}")),f.push(g.join(""))),i||n||o&&!(e.isIE<9))for(d=0,u=f.length;d<u;d++)i&&(f[d]=[i.replace(v.replacePseudo,".$1")," ",f[d]].join("")),n&&(f[d]=f[d].replace(v.prePrependFQName," ").replace(v.prependFQName,n)),o&&(f[d]=f[d].replace(v.replaceAppend,"")),o&&(f[d]=f[d].replace(v.replaceMedia,"$2 { $1 $3 }"));return f}function h(t,i){function n(t){a.push($([t,r?" !important;":";"]))}function o(e){a.push(e?t:t.replace(v.selectorCase,"-$1").replace(v.commaStart,"").toLowerCase()),n($([":",i]))}var r,a=[],s=i&&i.split&&i.split(" ");if(v.isVariable.test(i))return o(!0),a.join("");switch(s&&s.length&&"!important"==s[s.length-1]&&(r=!0,s.pop(),i=s.join(" ")),t){case"background":switch(a.push($([t,":"])),s[0]){case"linear-gradient":s.splice(0,1),i=s.join(" "),n($(["-webkit-linear-gradient",i])),n($(["background:-o-linear-gradient",i])),n($(["background:-moz-linear-gradient",i])),n($(["background:-ms-linear-gradient",i])),n($(["background:-linear-gradient",i]));break;case"gradient":var _,l;n(m(s[2],s[3])),"top"==s[1]&&(_="bottom"),"left"==s[1]&&(_="right"),"right"==s[1]&&(_="left"),"bottom"==s[1]&&(_="top"),l=$([s[1],",",s[2],",",s[3],")"]),n($(["background:-o-linear-gradient(",l])),n($(["background:-moz-linear-gradient(",l])),n($(["background:-ms-linear-gradient(",l])),n($(["background:linear-gradient(",l])),"left"==s[1]||"right"==s[1]?(n($(["background:-webkit-gradient(linear,",s[1]," center,",_," center,from(",s[2],"),to(",s[3],"))"])),n($(["filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=",p(s[2]),", endColorstr=",p(s[3]),", GradientType=1)"])),n($(["-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=",p(s[2]),", endColorstr=",p(s[3]),", GradientType=1)"]))):(n($(["background:-webkit-gradient(linear,center ",s[1],",center ",_,",from(",s[2],"),to(",s[3],"))"])),n($(["filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=",p(s[2]),", endColorstr=",p(s[3]),")"])),n($(["-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=",p(s[2]),", endColorstr=",p(s[3]),")"])));break;default:if("rgba"==i.slice(0,4)){if(n(g(i,!0)),e.bugs.noBoxSizing)break;a.push($([t,":"]))}n(i)}break;case"radius":case"borderRadius":switch(s.length){case 1:s[1]=s[0];case 2:s[2]=s[0];case 3:s[3]=s[1];default:n($(["-moz-border-radius-topleft:",s[0]])),n($(["-moz-border-radius-topright:",s[1]])),n($(["-moz-border-radius-bottomleft:",s[2]])),n($(["-moz-border-radius-bottomright:",s[3]])),n($(["border-top-left-radius:",s[0]])),n($(["border-top-right-radius:",s[1]])),n($(["border-bottom-left-radius:",s[2]])),n($(["border-bottom-right-radius:",s[3]])),n($(["-webkit-border-top-left-radius:",s[0]])),n($(["-webkit-border-top-right-radius:",s[1]])),n($(["-webkit-border-bottom-left-radius:",s[2]])),n($(["-webkit-border-bottom-right-radius:",s[3]]))}break;case"boxShadow":n($(["-moz-box-shadow:",i])),n($(["-webkit-box-shadow:",i])),n($(["box-shadow:",i]));break;case"userSelect":n($(["-moz-user-select:",i])),n($(["-webkit-user-select:",i])),n($(["-o-user-select:",i])),n($(["user-select:",i]));break;case"appearance":n($(["-webkit-appearance:",i])),n($(["-moz-appearance:",i])),n($(["appearance:",i]));break;case"animation":n($(["-webkit-animation:",i])),n($(["-moz-animation:",i])),n($(["-ms-animation:",i])),n($(["-o-animation:",i])),n($(["animation:",i]));break;case"transform":n($(["-webkit-transform:",i])),n($(["-moz-transform:",i])),n($(["-ms-transform:",i])),n($(["-o-transform:",i])),n($(["transform:",i]));break;case"transformOrigin":n($(["-webkit-transform-origin:",i])),n($(["-moz-transform-origin:",i])),n($(["-ms-transform-origin:",i])),n($(["-o-transform-origin:",i])),n($(["transform-origin:",i]));break;case"transition":n($(["-webkit-transition:",i])),n($(["-moz-transition:",i])),n($(["-o-transition:",i])),n($(["transition:",i]));break;case"rotate":n($(["-webkit-transform:rotate(",i,"deg)"])),n($(["-moz-transform:rotate(",i,"deg)"])),n($(["-ms-transform:rotate(",i,"deg)"])),n($(["-o-transform:rotate(",i,"deg)"]));break;case"opacity":n($(["opacity:",i])),n($(['-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=',100*i,')"'])),n($(["filter:alpha(opacity=",100*i,")"])),n($(["-moz-opacity:",i])),n($(["-webkit-opacity:",i])),n($(["-o-opacity:",i]));break;case"textOverflow":n($(["text-overflow:",i])),n($(["-o-text-overflow:",i])),n($(["-ms-text-overflow:",i]));break;case"display":e.bugs.noBoxSizing&&"inline-block"==i?(n("display:inline"),n("zoom:1")):n($(["display:",i]));break;case"backgroundImage":if(v.repeatingLinearGradient.test(i)){a.push("background-image:"),i=i.replace(v.repeatingLinearGradient,""),n(e.isChrome||e.isIOS||e.isSafari?$(["-webkit-repeating-linear-gradient",i]):e.isFF?$(["-moz-repeating-linear-gradient",i]):e.isOpera?$(["-o-repeating-linear-gradient",i]):e.isIE?$(["-ms-repeating-linear-gradient",i]):$(["repeating-linear-gradient",i]));break}default:o()}return a.join("")}function p(t){if("string"!=typeof t)return"";var e;return e="#"==t.charAt(0)?t.substring(1):t,"rgb"==e.slice(0,3)?g(e):(3==e.length&&(e=e.charAt(0)+e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2)),"#"+e)}function g(t,e){return t=t.slice(5,-1),t=t.split(","),3==t.length||e?"#"+f(t[0])+f(t[1])+f(t[2]):(t[3]=(255*parseFloat(t[3],10)).toFixed(),"#"+f(t[3])+f(t[0])+f(t[1])+f(t[2]))}function f(t){return t=parseInt(t,10).toString(16),1==t.length&&(t="0"+t),t}function m(t,e){function i(i){return(16*Math.round((parseInt(t.substring(i,i+2),16)+parseInt(e.substring(i,i+2),16))/32)).toString(16)}"rgb"==t.slice(0,3)&&(t=g(t,!0)),"rgb"==e.slice(0,3)&&(e=g(e,!0)),t=p(t).substring(1),e=p(e).substring(1);var n=i(0),o=i(2),r=i(4);return"#"+n+o+r}function $(t){return t.join("")}function b(t,e,i){if(t){e||(e={}),i?i+=".":i="";for(var n in t)t.hasOwnProperty(n)&&("object"==typeof t[n]?b(t[n],e,i+n):e[i+n]=t[n]);return e}}var w,x,v={space:/ /g,repeatingLinearGradient:/^\s*repeating-linear-gradient/,prependFQName:/^(\*\*self|)(?!.+?keyframes)/,prePrependFQName:/^(?!\*\*self)/g,replacePseudo:/\:\:\:([A-Za-z_\-.]+)/g,replaceAppend:/ +?&/g,placeholder:/::placeholder$/,replaceVariables:/(?:(?:([A-Za-z\-]+):)??(?:& *:)?\$\$([A-Za-z_\.]+))(?=;)/g,replaceLeftovers:/(?:(?:[A-Za-z\-]+:)??(?:& *:)?(\$\$[A-Za-z_\.]*?)??)(?=;)/g,replaceMedia:/(.*)(@media.*)@mediaend(.*)/,commaStart:/^,/,selectorCase:/([A-Z]+)/g,removePrefix:/^\$\$/,isVariable:/\$\$[A-Za-z_]+/},y={placeholder:["::-webkit-input-placeholder",":-moz-placeholder","::-moz-placeholder",":-ms-input-placeholder",".placeholder"]},j=[],C={},A={},S={},I={},k="__jcss__default",B=0,N={},T=[],D={},E=e.isTextContent;i.extend(D),D.setIFrameOnly=function(t){w=n(t)},D.generateAll=function(t){var e;for(var i in o)o.hasOwnProperty(i)&&(e=o[i],e&&e.prototype&&e.__jx__jcss&&!e.__jx__jcss_generated&&(D.generate(null,e.prototype.__jx__fqname,e.__jx__jcss,null,e),e.__jx__jcss_generated=!0));t||D.writeChanges()},D.generate=function(t,e,i,n,o,r){if(i&&(t||o)){e=e?"."+e.trim().replace(v.space,"."):"",i=i||{},n="_"+(n||"");var a=[];for(o=o||t.__jx__constructor;o&&o.prototype.__jx__super;)o=o.prototype.__jx__super,o.__jx__jcss&&a.unshift(c(o.__jx__jcss,null,e,!0).join("\n"));try{a.push(c(i,null,e,!0).join("\n"))}catch(s){}var _=a.join("");n in C&&!r?(C[n]=[C[n],_].join(""),n in S||(S[n]=""),S[n]=[S[n],_].join(""),I[n]=!1):(C[n]=_,S[n]=_,I[n]=!0),x||(x=window.setTimeout(D.writeChanges,0))}},D.setPalette=function(t,e,i){if(t=b(t)||{},e=e||k,i=parseInt(i,10),(N[e]||!isNaN(i))&&(isNaN(i)||!(i<0))&&(e!=k||isNaN(i)||i==B)&&(!T[i]||T[i]==e)){var n;for(var o in t)if(t.hasOwnProperty(o)){if(n=typeof t[o],"boolean"==n||"number"==n||"string"==n)continue;t[o]=c(t[o],null,null,null,!0).join("")}if(N[e]=t,!isNaN(i)){var a=r(e,T);a!=-1&&(T[a]=void 0),T[i]=e}}},D.delPalette=function(t){if(t){var e;if(a(t)){if(!T[t])return;delete N[T[t]],T[t]=void 0}else{if(!N[t])return;e=r(t,T),delete N[t],T[e]=void 0}}},D.delPalettes=function(){N={},T.length=0,t()},t(),D.appendPalette=function(){},D.getPalette=function(t){return t=t||k,N[t]||{}},D.getVariable=function(t){for(var e=T.length-1;e>=0;e--)if(T[e]&&N[T[e]]&&(N[T[e]][t]||a(N[T[e]][t])))return v.isVariable.test(N[T[e]][t])?D.getVariable(N[T[e]][t].toString().slice(2)):N[T[e]][t]},D.reload=function(){D.writeChanges(!0)};var P,O;return D.writeChanges=function(t){x&&window.clearTimeout(x),x=null;var e,i,n,o,s=t?C:S;P={},O={};for(n in N)if(N.hasOwnProperty(n)){o=r(n,T);for(i in N[n])N[n].hasOwnProperty(i)&&(isNaN(O[i])||o>O[i])&&(N[n][i]||a(N[n][i]))&&(P[i]=N[n][i],O[i]=o)}for(i in s)if(s.hasOwnProperty(i)){if(!s[i])continue;e=s[i].replace(v.replaceVariables,l),e=e.replace(v.replaceLeftovers,""),w||d(document,"jcss"+i,e,t||I[i]);for(var _=0;_<j.length;_++)d(j[_].idoc,"jcss"+i,e,t||I[i]);A[i]=e,t||(s[i]=""),I[i]=!1}D.fire("write",e)},D.bindIFrame=function(t){for(var e=0,i=j.length;e<i;e++)if(t===j[e])return;j.push(t);for(var n in C)C.hasOwnProperty(n)&&d(t.idoc,"jcss"+n,A[n])},D.unbindIFrame=function(t){for(var e=0,i=j.length;e<i;e++)t===j[e]&&j.splice(e,1)},D.transform2CSS=c,D.toStyle=h,_(D,"jx_core_JCSS"),D}()}).call(e,i(7),i(6),i(16),i(3),i(24),i(23),i(21),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){t.exports=function(){function t(t,i,n){if(O=!0,F.root=v=t instanceof C?t:new C("root"),j=n,A.ACCOUNT_KEY||i){i&&(y=i,v.$$("livechat.ui.mockup$bool").update(!0)),N.isMobileBrowser&&(v.$$("livechat.ui.mobile$bool").update(!0),N.isMobileWhitelist&&v.$$("livechat.ui.mobile_whitelist$bool").update(!0),N.isMobileTablet&&v.$$("livechat.ui.tablet$bool").update(!0)),window.$zopim_popout?v.$$("livechat.ui.popout$bool").update(!0):i||e.setIFrameOnly(!0);var a,s=x(S);if(!y)for(var _ in D)if(D.hasOwnProperty(_)){var l=I.DOM.getVariable(_);"log"==_&&l&&"object"==typeof l&&v.$("livechat").$("temp").update({prev_log:l}),"settings"==_&&l&&B.getKeys(l).length&&v.$("livechat").$("settings").update({cached$bool:!0}),"object"==typeof l?(a=B.getKeys(l),a&&a.length&&B.fullyExtend(B.descendsObj(s,D[_]),l)):B.insertObj(D[_],l,s)}if(v.update(s),!y&&!b()){var d=o.isIOS?"unload":"beforeunload";r.window.on(d,function(){try{w()}catch(t){}})}var u=I.getAllowCookieLaw();"boolean"==typeof u&&v.$$("livechat.profile").update({allow_cookies$bool:u}),v.$$("livechat.settings.package").on("value",function(t){t&&("color_customization_enabled$int"in t&&t.color_customization_enabled$int&&(P=1),"widget_customization_enabled$int"in t&&t.widget_customization_enabled$int&&(P=2))}),F.fire("init")}}function n(t){a(t)&&(O?t():F.on("init",t))}function l(t,e){k.sendChatMsg(t,e)}function d(t){var e=parseInt(j.getServerTime().toFixed(0),10),i=e+"";return v.$("livechat").$("channel").$("log").$(i).write({timestamp$int:e,nick$string:v.$("livechat").$("profile").$("nick$string").getValue()||"",display_name$string:v.$("livechat").$("profile").$("display_name$string").getValue()||"",type$string:"chat.file.upload",file_name$string:t.file_name||"",file_type$string:t.file_type||"",file_size$int:t.file_size||0,unverified$bool:!0,__client$bool:!0}),e}function u(t){if(t){var e={};return"name"in t&&(e.display_name$string=t.name+""),"email"in t&&(e.email$string=t.email+""),"phone"in t&&(e.phone$string=t.phone+""),"department_id"in t&&(e.department_id$int=t.department_id),v.$$("livechat.profile").write(e),!0}}function c(){I.clearAll(),v.$("livechat").$("ui").$("chat_button").$("unread_count$int").update(0),v.$$("livechat.channel").update(null),v.$$("profile").update(null)}function h(){var t=v.$$("livechat.settings.cookie_law.enabled$bool").getValue(),e=v.$$("livechat.profile.allow_cookies$bool").getValue();return!t||e!==!1}function p(){v.$$("connection").update({reconnect$bool:!0})}function g(t){if(!y){var e=v.$$("livechat.account.key$string").getValue(),i=v.$$("livechat.profile.mid$string").getValue();t&&e&&i&&window.open(A.AUTH_URL.replace("$NAME",t).replace("$KEY",e).replace("$MID",i),L+e,v.$$("livechat.ui.mobile$bool").getValue()?"":R)}}function f(){v.$$("livechat.profile.auth.type$string").getValue()?(v.$$("livechat.profile.auth").write({type$string:null}),v.$$("livechat.profile").update({display_name$string:"",email$string:""})):v.$$("livechat.profile").write({display_name$string:"",email$string:""})}function m(){v.$$("livechat.channel").write({chatting$bool:!1})}function $(){return v.$$("livechat.ui.mockup$bool").getValue()?100:P}function b(){var t=v.$("livechat").$("account").$("status$string").getValue();return s(t,T)>-1}function w(){if(W.canStoreCookie()){var t=new C("root");t.update(v.getValue());for(var e=0,i=E.length;e<i;e++)t.$$(E[e]).update(null);var n,o;for(n in D)if(D.hasOwnProperty(n)){switch(n){case"settings":o=j.getServerSettings("settings");break;case"log":o=t.$("livechat").$("channel").$("chatting$bool").getValue()?B.getLastLogEntries(v.$$(D[n]),A.CHAT_LOG_REMEMBER_COUNT):null;break;default:o=t.$$(D[n]).getValue()}I.DOM.saveVariable(n,o)}t=null}}function x(t){if("object"!=typeof t||!t)return t;var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=x(t[i]));return t.hasOwnProperty(M)&&(e[M]=x(t[M])),e}var v,y,j,C=i(31),A=i(32),S=i(33),I=i(34),k=i(39),B=i(38),N=i(41),T=["banned","invalid_account_key"],D={last_host:"connection.server$string",chatting:"livechat.channel.chatting$bool",account_status:"livechat.account.status$string",settings:"livechat.settings",ui:"livechat.ui",notification:"livechat.profile.notification",departments:"livechat.departments",log:"livechat.channel.log",read:"livechat.channel.read",features:"livechat.features"},E=["livechat.settings.cached$bool","livechat.ui.chat_window.menu_stack_name$string","livechat.ui.chat_window.pre_chat_form.submitted$bool","livechat.ui.post_chat_form.stack_index$int","livechat.ui.offline_form.stack_index$int","livechat.ui.theme_reload$bool","livechat.ui.theme_loaded$bool","livechat.ui.popout$bool","livechat.ui.mobile$bool","livechat.ui.mobile_overlay$bool","livechat.ui.mobile_notifications$bool","livechat.ui.chat_window.chat_panel.file_toast.error$string","livechat.ui.departments.filter_enabled$bool"],P=0,O=!1,W={sendChatMsg:l,sendFile:d,updateProfile:u,clearAll:c,reconnect:p,canStoreCookie:h,doExternalLogin:g,doExternalLogout:f,endChat:m,getLimit:$,isAccountError:b},L="zlivechatexternallogin_",R="width=500,height=500,menubar=no,toolbar=no,location=no,personalbar=no,status=no,resizable=yes,scrollbars=no",F=r.extend({init:t,root:v,livechat:W,afterInit:n}),M="toString";return _(F,"meshim_widget_controllers_DataController"),F}()}).call(e,i(29),i(14),i(7),i(6),i(9),i(24),i(4))},function(t,e,i){(function(i,n){t.exports=function(){function t(t,e){this.name=t,this.leaf=/\$[a-z]+$/.test(t),this.parentNode=e,this.listeners_value=[],this.listeners_write=[],this.leaf||(this.listeners_keys=[],this.childNodes={},this.keys={})}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t){for(var e="",i=0;i<t.length;i++)e+=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t[i])?"."+t[i]:"["+JSON.stringify(t[i])+"]";return e.substr(1)}return t.prototype.fqname=function(){return r(this.path())},t.prototype.path=function(){for(var t=this,e=[this.name];t=t.parentNode;)e.unshift(t.name);return e},t.prototype.descend=function(e){var i,n,r,a=this;for("string"==typeof e&&(e=e.split(".")),n=0,r=e.length;n<r;n++)i=e[n],o(a.childNodes,i)||(a.childNodes[i]=new t(i,a)),a=a.childNodes[i];return a},t.prototype.$$=t.prototype.descend,t.prototype.$=function(e){return o(this.childNodes,e)?this.childNodes[e]:this.childNodes[e]=new t(e,this)},t.prototype.update=function(t,e,i){var n,o;if(null!==t)for(delete this.deleted,o=this.parentNode;o&&o.deleted;)delete o.deleted,o=o.parentNode;if(this.leaf)this.value=t,this.notifyListeners(t,e,i);else{if(null==t){this.deleted=!0;for(n in this.childNodes)this.childNodes.hasOwnProperty(n)&&this.childNodes[n].update(null,!0,i)}else for(n in t)t.hasOwnProperty(n)&&this.$(n).update(t[n],!0,i);this.notifyListeners(t,e,i)}},t.prototype.write=function(t,e,i){"function"==typeof e&&(i=e,e=!1);var n={path:this.path(),value:t};"function"==typeof i&&(n.func=i),this.update(t,e||!1,n)},t.prototype.bindWrite=function(t){this.listeners_write.push(t)},t.prototype.bindValue=function(t){this.listeners_value.push(t);try{t.call(this,this.getValue())}catch(e){i.fire("error",e)}},t.prototype.bindKeys=function(t){if(!this.leaf){this.listeners_keys.push(t);try{t.call(this,this.getKeys(),[])}catch(e){i.fire("error",e)}}},t.prototype.unbindValue=function(t){for(var e=this.listeners_value.length;e--;)if(this.listeners_value[e]==t)return void this.listeners_value.splice(e,1)},t.prototype.unbindKeys=function(t){if(!this.leaf)for(var e=this.listeners_keys.length;e--;)if(this.listeners_keys[e]==t)return void this.listeners_keys.splice(e,1)},t.prototype.on=function(t,e){switch(t){case"value":this.bindValue(e);break;case"keys":this.bindKeys(e)}},t.prototype.un=function(t,e){switch(t){case"value":this.unbindValue(e);break;case"keys":this.unbindKeys(e)}},t.prototype.addListener=function(t,e){this.listeners[t].push(e)},t.prototype.removeListener=function(t,e){for(var i=this.listeners[t],n=i.length;n--;)i[n]==e&&i.splice(n,1)},t.prototype.notifyListeners=function(t,e,n){var r,a,s;if(!this.leaf)if(r=[],a=[],t)for(s in t)t.hasOwnProperty(s)&&(null!==t[s]?o(this.keys,s)||(this.keys[s]=1,r.push(s)):o(this.keys,s)&&(delete this.keys[s],a.push(s)));else for(s in this.keys)this.keys.hasOwnProperty(s)&&(delete this.keys[s],a.push(s));for(var _=0;_<this.listeners_value.length;_++)try{this.listeners_value[_].call(this,t);
}catch(l){i.fire("error",l)}if(n)for(_=0;_<this.listeners_write.length;_++)try{this.listeners_write[_].call(this,n)}catch(l){i.fire("error",l)}if(!this.leaf){for(_=0;_<this.listeners_keys.length;_++)try{this.listeners_keys[_].call(this,r,a)}catch(l){i.fire("error",l)}if(!e&&this.parentNode){var d={};d[this.name]=t,this.parentNode.notifyListeners(d,e,n)}}},t.prototype.getValue=function(t){if(t)return this.descend(t).getValue();if(this.leaf)return this.value;if(this.deleted)return null;var e,i,n={};for(var o in this.childNodes)this.childNodes.hasOwnProperty(o)&&null!=(i=this.childNodes[o].getValue())&&(n[o]=i,e=!0);return e?n:null},t.prototype.hasKey=function(t){return o(this.keys,t)},t.prototype.getKeys=function(){if(this.leaf)return null;var t=[];for(var e in this.keys)this.keys.hasOwnProperty(e)&&t.push(e);return t},t.prototype.gc=function(){var t=!0;for(var e in this.childNodes)if(this.childNodes.hasOwnProperty(e)){var i=this.childNodes[e];t=i.leaf?!i.listeners_value.length&&null==i.value&&(delete this.keys[e],delete this.childNodes[e])&&t:i.gc()&&(delete this.keys[e],delete this.childNodes[e])&&t}return t&&this.deleted&&!this.listeners_keys.length&&!this.listeners_value.length},e.DataNode=t,n(t,"jx_data_DataNode"),t}()}).call(e,i(6),i(4))},function(t,e,i){(function(e,i,n,o){t.exports=function(){function t(){for(var t=r(),e=[/\/?[?]/,/\/livechat\//],i=[],n=0;n<e.length&&(i=t.split(e[n]),!i.length);n++);var o=i[1],a=i[0],s=/^(https?:)?\/\/[^\/]+/.exec(a),_=a.replace(/^(https?:)?\/\//i,"").split("/")[0],l=_.replace(/(.+\.)(?=.+\..+)/,""),d=i[0].split("/");return d=d.pop()==_?i[0]:d.join("/"),s=s&&"zopim.com"!==_?s[0]:"https://v2.zopim.com",{accountKey:o,brandDomain:l,baseURL:d,rootURL:s}}function r(){if(window.$zopim&&window.$zopim.s)return window.$zopim.s.src;for(var t,e=document.getElementsByTagName("script"),i=/.*zopim.(com|net)\//,n=0,o=e.length;n<o;n++)if(t=e[n].src||"",i.test(t))return t;return""}function a(){var t='IN'.toUpperCase();return"<"==t.charAt(0)&&(t="geo"),t}var s=t(),_=document.location.protocol+"//v2.zopim.com/widget",l=_+"/images",d=_+"/sounds",u=_+"/fonts";e(i.baseURL,!0)&&(i.baseURL=n.secureURL(s.baseURL));var c={ASSETS_URL:_,IMAGES_URL:l,SOUNDS_URL:d,FONTS_URL:u,ASSETS_LEGACY:document.location.protocol+"//cdn.zopim.com/assets",BRANDING_URL:"https://www.zopim.com",AVATARS:{CONCIERGE:l+"/avatar_simple_agent.png",AGENT:l+"/avatar_simple_agent.png",VISITOR:l+"/avatar_simple_visitor.png",DEFAULT:l+"/avatar_simple_visitor.png"},ACCOUNT_KEY:s.accountKey,BRAND_DOMAIN:s.brandDomain,COUNTRY_CODE:a(),AUTH_URL:"https://www.zopim.com/auth/$NAME/$KEY-$MID",AUTH_LOGOUT_URL:"https://www.zopim.com/auth/logout/$KEY-$MID",IS_POPOUT:window.$zopim_popout,POPOUT_WINDOW_PREFIX:"zlivechatpopout_",POPOUT_URL:s.rootURL+"/widget/livechat.html",FILE_UPLOAD_PATH:"/client/widget/uploads",FILE_UPLOAD_MAX:5242880,RESEND_MSG_TIMEOUT:5e3,FILE_REPLACE_SOURCE:/^(\s*https?\:\/\/v2(?:assets|uploads)\.zopim\.)com(\/)/i,FILE_REPLACE_RESULT:"$1io$2",CHAT_LOG_REMEMBER_COUNT:10};return o(c,"meshim_widget_Config"),c}()}).call(e,i(10),i(1),i(7),i(4))},function(t,e,i){(function(e,i){t.exports=function(){var t={livechat:{timestamp$int:+new Date,settings:{behavior:{do_not_display$bool:!1},theme:{name$string:"simple",message_type$string:"bubble_avatar",colors:{placeholder$string:"_"},chat_button:{position$string:"br",position_mobile$string:"br"},chat_window:{position$string:"br",size$string:"medium",profile_card:{display_avatar$bool:!0,display_rating$bool:!0,display_title_name$bool:!0},use_banner$bool:!0,title_bar:{hide_minimize$bool:!1,hide_popout$bool:!1}},branding:{type$string:"icon_font_zopim"}},greetings:{online$string:e(81),offline$string:e(82)},banner:{enabled$bool:!0,layout$string:"image_right",text$string:e(83),image_path$string:"",image_data$string:""},chat_button:{hide_when_offline$bool:!1},chat_window:{mobile_mode$string:"popout",title_bar:{title$string:e(84),status_messages:{online$string:e(85),away$string:e(86),offline$string:e(87)}}},login:{allowed_types:{email$bool:!0,facebook$bool:!0,twitter$bool:!1,google$bool:!0},phone_display$bool:!1,restrict_profile$bool:!1},concierge:{display_name$string:e(88),title$string:e(89),avatar_path$string:"",avatar_data$string:"",greeting:{enabled$bool:!1,message$string:e(90)}},branding:{hide_branding$bool:!1,hide_favicon$bool:!1,custom_favicon_path$string:""},language:{language$string:"--"},cookie_law:{enabled$bool:!1},sound:{disabled$bool:!1},popout:{enabled$bool:!0},rating:{enabled$bool:!0},end_chat_menu:{enabled$bool:!0,message$string:""},emoticons:{enabled$bool:!1},bubble:{enabled$bool:!0,title$string:e(91),text$string:e(92)},forms:{pre_chat_form:{required$bool:!1,profile_required$bool:!1,message$string:"",form:{0:{name$string:"name",required$bool:0},1:{name$string:"email",required$bool:0},2:{label$string:e(93),name$string:"department",required$bool:0,type$string:"department"},3:{label$string:e(94),name$string:"message",required$bool:0,type$string:"textarea"},4:{label$string:e(95),name$string:"phone",required$bool:0,type$string:"text",hidden$bool:!0}}},offline_form:{message$string:e(96),message_disabled$string:e(97),post_submit_message$string:e(98),profile_required$bool:!0,form:{0:{name$string:"name",required$bool:1},1:{name$string:"email",required$bool:1},2:{label$string:e(99),name$string:"message",required$bool:1,type$string:"textarea"},3:{label$string:e(100),name$string:"phone",required$bool:0,type$string:"text",hidden$bool:!0}}},post_chat_form:{header$string:e(101),message$string:e(102),comments_enabled$bool:!0,comments_messages:{good:{message$string:e(103),placeholder$string:e(104)},bad:{message$string:e(105),placeholder$string:e(106)}}},card_form:{}}}}};return i(t,"meshim_widget_controllers_DefaultDataNode"),t}()}).call(e,i(22),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){A=b.ACCOUNT_KEY}function o(){if(b.IS_POPOUT)return h("mid");var t=d();return t?t:$.get(v)||""}function r(t){$.set(v,t,{path:"/",ttl:365,domain:f})}function a(){var t=u();if("boolean"==typeof t)return t;var e=$.get(y);return e=parseInt(e,10),0!==e&&(1===e||void 0)}function s(){$.remove(y,{path:"/",domain:f})}function _(t){t=e(t),t=t?1:0,$.set(y,t,{path:"/",ttl:365,domain:f})}function l(){$.remove(v,{path:"/",domain:f}),m.remove(x)}function d(){var t=$.getJSONCookie("__zlcid");if($.remove("__zlcid",{path:"/"}),t.mID)return t.mID;var e=c("__zlcstore");return $.remove("__zlcstore",{path:"/",domain:f}),e&&e.mID?e.mID:void 0}function u(){var t,e=c("__zlcprivacy");return"boolean"==typeof e&&(t=e,_(e)),t}function c(t){var e=$.getJSONCookie(t);return e[A]}function h(t){for(var e,i=window.location.search.slice(1).split("&"),n=0;n<i.length;n++)if(e=i[n].split("="),e[0]==t)try{return window.decodeURIComponent(e[1]||"")}catch(o){return""}return""}function p(t,e){var i=m.get(x)||{};i[A]||(i[A]={});var n=i[A];n[t]=e,n.timestamp=+new Date,m.set(x,i)}function g(t){var e=m.get(x)||{};if(!e[A])return{};var i=e[A];if(!i.timestamp)return i[t]||{};var n=+new Date;return n-i.timestamp>C?{}:i[t]}var f,m=i(35),$=i(37),b=i(32),w=i(38),x="__zlcstore",v="__zlcmid",y="__zlcprivacy",j=window.location.hostname;f=/\b(?:\d{1,3}\.){3}\d{1,3}/.test(j)?j:w.getEffectiveTLD(j);var C=48e4,A=b.ACCOUNT_KEY,S={init:t,DOM:{saveVariable:p,getVariable:g},Cookie:$,clearAll:l,setIdentity:r,getIdentity:o,clearAllowCookieLaw:s,getAllowCookieLaw:a,setAllowCookieLaw:_};return n(S,"meshim_widget_controllers_StorageController"),S}()}).call(e,i(16),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){try{return d in _&&_[d]}catch(t){return!1}}function n(t){return function(){try{var e=Array.prototype.slice.call(arguments,0);e.unshift(r),c.appendChild(r),r.addBehavior("#default#userData"),r.load(d);var i=t.apply(s,e);return c.removeChild(r),i}catch(n){}}}function o(t){return t.replace(g,"___")}var r,a=i(36),s={},_=window,l=_.document,d="localStorage",u="__storejs__";if(s.disabled=!1,s.set=function(){},s.get=function(){},s.remove=function(){},s.clear=function(){},s.transact=function(t,e,i){var n=s.get(t);null==i&&(i=e,e=null),"undefined"==typeof n&&(n=e||{}),i(n),s.set(t,n)},s.getAll=function(){},s.serialize=function(t){return a.stringify(t)},s.deserialize=function(t){if("string"==typeof t)try{return a.parse(t)}catch(e){return t||void 0}},t())r=_[d],s.set=function(t,e){return void 0===e?s.remove(t):(r.setItem(t,s.serialize(e)),e)},s.get=function(t){return s.deserialize(r.getItem(t))},s.remove=function(t){r.removeItem(t)},s.clear=function(){r.clear()},s.getAll=function(){for(var t={},e=0;e<r.length;++e){var i=r.key(e);t[i]=s.get(i)}return t};else if(l.documentElement.addBehavior){var c,h;try{h=new window.ActiveXObject("htmlfile"),h.open(),h.write('<script>document.w=window</script><iframe src="/favicon.ico"></frame>'),h.close(),c=h.w.frames[0].document,r=c.createElement("div")}catch(p){r=l.createElement("div"),c=l.body}var g=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");s.set=n(function(t,e,i){return e=o(e),void 0===i?s.remove(e):(t.setAttribute(e,s.serialize(i)),t.save(d),i)}),s.get=n(function(t,e){return e=o(e),s.deserialize(t.getAttribute(e))}),s.remove=n(function(t,e){e=o(e),t.removeAttribute(e),t.save(d)}),s.clear=n(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(d);for(var i,n=0;i=e[n];n++)t.removeAttribute(i.name);t.save(d)}),s.getAll=n(function(t){for(var e,i=t.XMLDocument.documentElement.attributes,n={},r=0;e=i[r];++r){var a=o(e.name);n[e.name]=s.deserialize(t.getAttribute(a))}return n})}try{s.set(u,u),s.get(u)!=u&&(s.disabled=!0),s.remove(u)}catch(p){s.disabled=!0}s.enabled=!s.disabled;var f=s;return e(f,"meshim_common_DOMStorage"),f}()}).call(e,i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(t){return'"'+t.replace(l,o)+'"'}function o(t){return d[t]||"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}function r(e){switch(typeof e){case"string":return t(e);case"number":return isFinite(e)?e.toString():"null";case"boolean":return String(e);case"object":if(!e)return"null";var n,o,a=[];if(i(e)){for(n=0,o=e.length;n<o;n++)a[n]=r(e[n])||"null";return"["+a.join(",")+"]"}var s,_,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),n=0,o=l.length;n<o;n++)s=l[n],_=r(e[s]),_&&a.push(t(s)+":"+_);if(a.length)return"{"+a.join(",")+"}"}}function a(t,e,i){return e?f[e]:String.fromCharCode(parseInt(i,16))}function s(t){var e,i,n,o,r,s=t.match(p),_=s.length,l=s[0];"{"==l?(e={},r=1):"["==l?(e=[],r=1):(e=[],r=0,i=!0);var d=[e];for(_=s.length;r<_;++r)switch(l=s[r],l.charCodeAt(0)){case 91:o=d[0],d.unshift(o[n||o.length]=[]),n=void 0;break;case 93:d.shift();break;case 123:o=d[0],d.unshift(o[n||o.length]={}),n=void 0;break;case 125:d.shift();break;case 102:o=d[0],o[n||o.length]=!1,n=void 0;break;case 110:o=d[0],o[n||o.length]=null,n=void 0;break;case 116:o=d[0],o[n||o.length]=!0,n=void 0;break;case 34:if(l=l.substring(1,l.length-1),l.indexOf($)!==-1&&(l=l.replace(g,a)),o=d[0],void 0==n){if(!(o instanceof Array)){n=l||m;break}n=o.length}o[n]=l,n=void 0;break;default:o=d[0],o[n||o.length]=+l,n=void 0}if(i){if(1==d.length)return e[0]}else if(!d.length)return e;throw"error"}var _=!e(window)&&window.JSON||{parse:s,stringify:r};_={parse:s,stringify:r};var l=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\\":"\\\\",'"':'\\"'},u="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",c='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',h='(?:"'+c+'*")',p=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+u+"|"+h+")","g"),g=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),f={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},m=new String(""),$="\\";return n(_,"jx_data_JSON"),_}()}).call(e,i(10),i(21),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return"string"==typeof t&&""!=t}function n(){var t,e,i,n,o=document.cookie,r={};if(!o||"string"!=typeof o)return{};for(o=o.split(/;\s/),t=o.length;t--;)try{if(e=o[t].match(/^([^=]+)(=(.*))?$/),!e)continue;i=c(e[1]),n=c(e[3]||""),r[i]=n}catch(a){}return r}function o(e){return t(e)?n()[e]||null:null}function r(t){var e=o(t),i={};try{i=l.parse(e)}catch(n){}return i&&"object"==typeof i?i:{}}function a(t,e,i){i=i||{};var n=u(t)+"="+u(e);if("ttl"in i){var o=new Date,r=24*i.ttl*60*60*1e3;o.setTime(o.getTime()+r),n+="; expires="+o.toGMTString()}"path"in i&&(n+="; path="+i.path),"domain"in i&&(n+="; domain="+i.domain),i.secure&&(n+="; secure"),document.cookie=n}function s(t,e,i){"object"!=typeof e&&(e={}),a(t,l.stringify(e),i)}function _(t,e){e=e||{},e.ttl=-1,a(t,"",e)}var l=i(36),d={set:a,get:o,getJSONCookie:r,setJSONCookie:s,remove:_},u=window.encodeURIComponent,c=window.decodeURIComponent;return e(d,"meshim_common_Cookie"),d}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(){var t=document.documentElement;return t.compareDocumentPosition?function(t,e){return t=t.dom||t,e=e.dom||e,!!(16&t.compareDocumentPosition(e))}:t.contains?function(t,e){t=t.dom||t,e=e.dom||e;var i=9===t.nodeType?t.documentElement:t,n=e.parentNode;return t===n||!!(n&&1===n.nodeType&&i.contains&&i.contains(n))}:function(t,e){for(t=t.dom||t,e=e.dom||e;e=e.parentNode;)if(e===t)return!0;return!1}}function a(t,e){for(var i,n=document.createElement("div"),o=0,r=P.length;o<r;o++)if(void 0!==n.style[P[o]]){i=e[o];break}return i?t?function(t,e,n){t.autobind(e,i,n)}:function(t,e,n){O&&t.autounbind(e,i,n)}:function(){}}function s(){function t(t){for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=(t+" "+E.join(e+" ")+e).split(" "),o=0;o<n.length;o++)if(void 0!==i[n[o]])return!0;return!1}var e=document.createElement("div"),i=e.style;return t}function _(){for(var t,e,i=arguments.length,n=1,o=arguments[0]||{};n<i;n++)if(null!=(t=arguments[n]))for(e in t)t.hasOwnProperty(e)&&o!==t[e]&&(o[e]=t[e]);return o}function l(t,e){for(var i in e)e.hasOwnProperty(i)&&(e[i]&&e[i].constructor&&e[i].constructor===Object?(t[i]=t[i]||{},l(t[i],e[i])):t[i]=e[i]);return t}function d(t,e){for(var i in e)if(e.hasOwnProperty(i)){if(!(i in t))continue;e[i]&&e[i].constructor&&e[i].constructor===Object?d(t[i],e[i]):delete t[i]}return t}function u(){if(void 0===B)try{B=c()}catch(t){}return B}function c(){if(!window.getComputedStyle)return!1;var t=document.createElement("div"),e="border-box";document.body.appendChild(t),t.style.height="10px",t.style.padding="5px",t.style.boxSizing=e,t.style.webkitBoxSizing=e,t.style.mozBoxSizing=e;var i=parseInt(window.getComputedStyle(t).height,10);return document.body.removeChild(t),10!=i}function h(t){var e=t.getComputedStyle();if("auto"==e.height)return t.getHeight();var i=parseInt(e.height,10)||0;return L.computedHeightBoxSizingBug()&&(i+=(parseInt(e.paddingTop,10)||0)+(parseInt(e.paddingBottom,10)||0)+(parseInt(e.borderTopWidth,10)||0)+(parseInt(e.borderBottomWidth,10)||0)),i+"px"}function p(t){function i(){this.addClass("hover")}function n(){this.removeClass("hover")}e.bugs.noBoxSizing&&(t.on("mouseover",i),t.on("mouseout",n))}function g(t,e){for(var i,o=e.split(".");o.length;)i=o.shift(),n(t[i],!0)&&(t[i]={}),t=t[i];return t}function f(t,e,i){t=t.split(".");var n=t.pop();if(n){for(var o=0,r=t.length;o<r;o++)t[o]in i||(i[t[o]]={}),i=i[t[o]];i[n]=e}}function m(t){for(var e="zte2095",i=t.split("."),n="."+i.splice(i.length-2,2).join(".");i.length;){var o={domain:n,path:"/"};if(N.set(e,"1",o),"1"==N.get(e)){N.remove(e,o);break}n="."+i.pop()+n}return n}function $(t){return F.test(t)}function b(t){return R.test(t)}function w(t){if(t&&"object"==typeof t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}}function x(t){if(!window.Image)return void t();try{var e=new window.Image;e.onload=e.onerror=function(){t(!(1!=this.width||1!=this.height))},e.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}catch(i){t()}}function v(){return e.isIE||/Trident\//.test(window.navigator.userAgent)}function y(t,e){t=parseInt(t,10),isNaN(t)&&(t=0);var i=t<0;t=Math.abs(t).toString().split("");for(var n=Math.max(e-t.length,0);n--;)t.unshift("0");return i&&t.unshift("-"),t.join("")}function j(t,e){function i(t,e,i){return i.replace("<hours>",t).replace("<minutes>",e)}function n(t,e){return t-Math[t>0?"floor":"ceil"](t/e)*e}var r=o(0),a=o(1),s=o(2),_="24"===e?24:12,l=n(Math[t>0?"floor":"ceil"](t/60),_),d=L.pad(Math.abs(t)%60,2);if(24===_)return i(L.pad(l,2),d,r);var u=0===l?12:l;return Math.abs(t/60)%24<12?i(u,d,a):i(u,d,s)}function C(t){return t&&t.replace(T.FILE_REPLACE_SOURCE,T.FILE_REPLACE_RESULT)}function A(t,e){if(e=parseInt(e,10),!e)return t.getValue();var i=t.getKeys(),n=i.length,o={};if(n<=e)return t.getValue()||o;for(var r=0;r<n;r++)i[r]=parseInt(i[r],10);i=i.sort().slice(-e);var a,s=t.getValue();if(!s)return o;for(r=0,n=i.length;r<n;r++)a=i[r],o[a]=s[a];return o}function S(t,e){var i;t.leaf&&t.parentNode?(i={},i[t.name]=e,t.parentNode.write(i)):t.write(e)}function I(){if(e.isNewIE)try{"body"!==document.activeElement.nodeName.toLowerCase()&&document.activeElement.focus()}catch(t){}}function k(){console&&console.warn&&console.warn("The Zopim widget embed code is invalid. Please email chat@zendesk.com with your account key: "+T.ACCOUNT_KEY)}var B,N=i(37),T=i(32),D="-webkit- -moz- -o- -ms- ".split(" "),E="webkit Moz O ms ".split(" "),P=["transition","MozTransition","OTransition","WebkitTransition"],O=["transitionend","transitionend","otransitionend","webkitTransitionEnd"],W=["animationend","animationend","oanimationend","webkitAnimationEnd"],L={contains:t(),onTransitionEnd:a(!0,O),unTransitionEnd:a(!1,O),onAnimationEnd:a(!0,W),unAnimationEnd:a(!1,W),css_prefixes:D,cssom_prefixes:E,isStyleSupported:s(),shallowExtend:_,fullyExtend:l,fullyDelete:d,computedHeightBoxSizingBug:u,getComputedHeight:h,hoverFix:p,getEffectiveTLD:m,descendsObj:g,insertObj:f,isDefaultName:b,getKeys:w,supportsDataURI:x,isIE:v(),pad:y,formatMinutesAsHours:j,replaceFileHostname:C,getLastLogEntries:A,writeNode:S,isAgentNick:$,refocusActiveElement:I,warnBadEmbed:k},R=/^Visitor [0-9]{3,}$/,F=/^agent:[0-9]+/i;return r(L,"meshim_widget_utils_Utils"),L}()}).call(e,i(7),i(10),i(22),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t,e){a=t,s=e,a.$("livechat").$("channel").$("department_id$int").on("value",function(t){t&&(_=t)})}function n(t,e,i){var n=parseInt(e,10)||parseInt(s.getServerTime().toFixed(0),10),o=n+"",r=a.$("livechat").$("profile"),l=_,d=(t.msg||"")+"";"department"in t&&(l=t.department),a.$("livechat").$("channel").$("log").$(o).write({timestamp$int:n,type$string:"chat.msg",msg$string:d,nick$string:r.$("nick$string").getValue()||"",display_name$string:r.$("display_name$string").getValue()||"",department_id$int:l,unverified$bool:!0,__client$bool:!0},i)}function o(t,e,i){var n=parseInt(e,10)||parseInt(s.getServerTime().toFixed(0),10),o=n+"";return a.$("livechat").$("channel").$("log").$(o).write({timestamp$int:n,nick$string:a.$("livechat").$("profile").$("nick$string").getValue()||"",display_name$string:a.$("livechat").$("profile").$("display_name$string").getValue()||"",type$string:"chat.file.upload",file_name$string:t.file_name||"",file_type$string:t.file_type||"",file_size$int:t.file_size||0,unverified$bool:!0,__client$bool:!0},i),n}function r(t,e,i){if(!window.FormData)return c.NOT_SUPPORTED;var n=a.$("livechat"),r=n.$("settings").$("file_sending"),_=n.$("settings").$("package"),h=r.$("enabled$bool").getValue(),p=void 0===h||h,g=r.$("allowed_extensions$string").getValue().trim().replace(/\s*,\s*/g,",").split(","),f=_.$("color_customization_enabled$int").getValue()||_.$("widget_customization_enabled$int").getValue(),m=n.$("profile").$("mid$string").getValue(),$=n.$("profile").$("uid$string").getValue(),b=s.getHost(),w=new window.FormData,x=[],v=[],y=0;if(!b)return c.NO_HOST;if(!f)return c.INVALID_PLAN;if(!p)return c.NOT_ALLOWED;for(var j=0,C=t.length;j<C;j++){if(!d.isValidType(t[j].name,g))return c.INVALID_EXTENSION;x.push(t[j].name),v.push(t[j].type),y+=t[j].size||0,w.append("file_"+t[j].name,t[j])}if(y>l.FILE_UPLOAD_MAX)return c.EXCEED_SIZE_LIMIT;x=x.join(", "),v=v.join(", ");var A=o({file_name:x,file_type:v,file_size:y},e,i),S=new window.XMLHttpRequest,I={ts:A},k="https://"+b+l.FILE_UPLOAD_PATH+"?"+u.buildQuery(I);S.upload&&(S.open("POST",k,!0),S.setRequestHeader("X-Zopim-MID",m),S.setRequestHeader("X-Zopim-UID",$),S.send(w))}var a,s,_,l=i(32),d=i(40),u=i(27),c={NOT_SUPPORTED:"File sending not supported on this browser",NOT_ALLOWED:"File sending not allowed",NO_HOST:"File sending failed due to connectivity issues",INVALID_EXTENSION:"File sending failed due to at least one file having an invalid extension",INVALID_PLAN:"File sending not allowed for account plan",EXCEED_SIZE_LIMIT:"File sending failed due to combined file size exceeding limit"},h={FILE_SENDING_ERRORS:c,init:t,sendChatMsg:n,sendFiles:r};return e(h,"meshim_widget_controllers_ChatUtils"),h}()}).call(e,i(4))},function(t,e,i){(function(e,i,n,o){t.exports=function(){var t=e(107),r=e(108),a=e(109),s={};s.ERR_SIZE="TOO_LARGE",s.ERR_FORMAT="ILLEGAL_TYPE",s.ERR_DISABLED="FILE_UPLOADS_TEMPORARILY_DISABLED";var _=/^(x-|vnd\.)/i,l=["png","jpg","jpeg","gif","txt","pdf"],d={},u=e(110);return d[s.ERR_SIZE]=t,d[s.ERR_FORMAT]=r,d[s.ERR_DISABLED]=a,s.prettySize=function(){var t=1e3,e=1024,i="B",n="iB",o=["","K","M","G","T","P"],r=[0,1,2,2,2,2];return function(a,s){a=Math.max(parseInt(a,10)||0,0),s=s||{};for(var _,l=s.base2?e:t,d=0,u=o.length;d<u;d++)if(_=Math.pow(l,d),a<_*l||void 0===o[d+1])return(a/_).toFixed(r[d])+" "+o[d]+(s.suffixBase2?n:i)}}(),s.prettyType=function(t,e,i){i=i||window.Infinity;var n=t.split("/")[1];return n=n&&n.replace(_,""),n&&n.length<i?n.toLowerCase():(n=e.split(".").pop(),(n||"").toLowerCase())},s.isValidType=function(t,e){if(t){e=e||l;var n=t.substr(t.lastIndexOf(".")+1).toLowerCase();return i(n,e)!==-1}},s.prettyError=function(t,e){var i=t in d?d[t]:u;return n(e)||(i=i.replace("<size>",s.prettySize(e||5e6))),i},s.blobToFile=function(t,e,i){return t.lastModifiedDate=new Date,t.name=e,new window.File([t],e,{type:i})},s.getExtension=function(t){var e=t.lastIndexOf(".");return e===-1?null:t.substr(e+1).toLowerCase()},o(s,"meshim_common_FileUtil"),s}()}).call(e,i(22),i(24),i(10),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(){for(var t,e=[/(android [2-9])|(iemobile\/(?![5-9]))|(ucbrowser)|(Webkit.+Chrome)|(ipod|iphone|ipad).+applewebkit.+(CriOS|Version\/[5-9]|Mobile)/i],i=0,n=e.length;i<n;i++)if(e[i].test(A)){t=!0;break}return/android.+ucbrowser/i.test(A)&&(t=!1),t}function r(){var t,e=window.document.documentElement.clientWidth;return t=a()?e>B:e>N}function a(){return window.document.documentElement.clientWidth>window.document.documentElement.clientHeight}function s(t){}function _(){return I&&w.test(S)}function l(){return I&&v.test(S)}function d(){return I&&/(iemobile|windows phone)/i.test(A)}function u(){return I&&w.test(S)&&x.test(A)}function c(){return I&&w.test(S)&&!x.test(A)}function h(){return I&&/ucbrowser/i.test(A)}function p(){return I&&/(opera|opr).*android|android.*(opera|opr)/i.test(A)}function g(){return I&&v.test(S)&&!y.test(A)}function f(){return I&&v.test(S)&&y.test(A)}function m(){var t=window.document.documentElement.clientWidth,i=window.document.documentElement.clientHeight,n=t/i>C,o=window.screen.width,r=window.screen.height,a=!1;n&&o<r&&(a=!0,o=window.screen.height,r=window.screen.width);var s=window.innerWidth,_=t/o;window.devicePixelRatio&&c()&&!e.isIOS?_*=window.devicePixelRatio:d()&&(_*=1.5);var l=t/s/_;return l=(l/k.MOBILE_ZOOM_ADDITIONAL).toFixed(2)}function $(){var t=window,e=t.document.documentElement,i=t.document.body,o=null,r={top:0,left:0};if(n(e.getBoundingClientRect)&&(n(t.getComputedStyle)?"relative"==t.getComputedStyle(i).position?o=i:"relative"==t.getComputedStyle(e).position&&(o=e):i.currentStyle?"relative"==i.currentStyle.position?o=i:"relative"==e.currentStyle.position&&(o=e):"relative"==i.style.position?o=i:"relative"==e.style.position&&(o=e)),o){var a=o.getBoundingClientRect();r.top=a.top+t.pageYOffset-e.clientTop,r.left=a.left+t.pageXOffset-e.clientLeft}return r}var b=i(42),w=/google inc\./i,x=/chrome/i,v=/apple computer, inc\./i,y=/crios/i,j=1.2,C=1.45,A=window.navigator.userAgent||"",S=window.navigator.vendor||"",I=b(),k={isMobileBrowser:I,isMobileWhitelist:t(),isMobileTablet:r(),isAndroid:_(),isIOS:l(),isWP:d(),isIEMobile:d(),isChromeIOSMobile:f(),isSafariIOSMobile:g(),isChromeAndroidMobile:u(),isOperaAndroidMobile:p(),isNativeAndroidMobile:c(),isUCBrowserMobile:h(),hideVirtualKeyboard:s,checkLandscape:a,getZoomLevel:m,getOffset:$,MOBILE_ZOOM_ADDITIONAL:j},B=640,N=320;return o(k,"meshim_widget_utils_Mobile"),k}()}).call(e,i(7),i(9),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){var t=window.navigator.userAgent||"",e=window.navigator.vendor||"",i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,o=t||e||window.opera,r=i.test(o)||n.test(o.substr(0,4));return r}return e(t,"meshim_widget_utils_isMobileBrowser"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(){u=I.root,c=u.$("livechat"),h=c.$("ui"),g=h.$("chat_notification").$("display$bool"),f=h.$("chat_window").$("display$bool"),m=h.$("chat_button").$("display$bool"),$=h.$("mobile_notifications$bool"),p=h.$("mobile_overlay$bool"),g.on("value",N),f.on("value",N),m.on("value",N),$.on("value",N)}function a(){return C===!0||(C=$.getValue()?w&&x&&b&&!e(f.getValue())&&!e(g.getValue())&&!e(m.getValue()):p.getValue()?w&&x&&!e(f.getValue())&&!e(m.getValue()):x&&!e(m.getValue()))}function s(){v===x&&y===w?(v=w,w.moveUp(B),x.moveDown(B)):v?v.moveDown(function(t){t||(y?(v=y,y.moveUp()):v=null)}):(v=y,y&&y.moveUp())}function _(t){w=t,N()}function l(t){b=t,N()}function d(t){x=t,N()}var u,c,h,p,g,f,m,$,b,w,x,v,y,j,C,A=i(44),S=i(45),I=i(30),k={init:t,registerChatButton:d,registerChatNotification:l,registerChatWindow:_},B=function(){},N=A.debounce(function(){if(a()){var t=f.getValue(),e=g.getValue(),i=m.getValue(),n=t&&w||e&&b||i&&x||null;if(!(t+e+i>1)&&y!==n){if(!j&&n==w)return void T();y=n,s()}}}),T=S.once(function(){n.generateAll("no_reload"),o(function(){j=!0,N()})});return r(k,"meshim_widget_controllers_MobileViewsController"),k}()}).call(e,i(10),i(29),i(12),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t,e){function i(){t.apply(o,n)}var n,o,r;return function(){r&&window.clearTimeout(r),n=Array.prototype.slice.call(arguments),o=this,r=window.setTimeout(i,e)}}function i(t,e){function i(){a=+new Date,r=null,t.apply(o,n)}var n,o,r,a=0;return function(){if(n=Array.prototype.slice.call(arguments),o=this,!r){var t=+new Date-a;t>=e?i():r=window.setTimeout(i,e-t)}}}function n(t,e){function i(){a=+new Date,n=o.length>1?window.setTimeout(i,e):null,t.apply(r.shift(),o.shift())}var n,o=[],r=[],a=0;return function(){if(o.push(Array.prototype.slice.call(arguments)),r.push(this),!n){var t=+new Date-a;t>=e?i():n=window.setTimeout(i,e-t)}}}var o={debounce:t,throttle:i,queue:n};return e(o,"meshim_common_AsyncUtils"),o}()}).call(e,i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(t,i){if(!e(t))throw new TypeError("FunctionUtils.bind - what is trying to be bound is not callable");if(e(t.bind)&&!("prototype"in t.bind))return t.bind.apply(t,r.call(arguments,1));var n=r.call(arguments,2),o=function(){},a=function(){return t.apply(this instanceof o&&i?this:i,n.concat(r.call(arguments)))};return o.prototype=a.prototype,a.prototype=new o,a}function n(t){var e;return function(){if(!e)return e=!0,t.apply(this,r.call(arguments))}}var o={bind:t,once:n},r=Array.prototype.slice;return i(o,"jx_core_FunctionUtils"),o}()}).call(e,i(9),i(4))},function(t,e,i){(function(e,n){t.exports=function(){var t,o=i(47),r=i(30),a=i(48),s=i(33),_=i(66),l=i(73),d=i(38),u={},c={},h="standard",p="popout",g="mobile",f=20,m=!1;return u.init=function(){function i(t){"fast_init"!=t||m||u()}function n(t){"reattached"!=t&&"cookie_law"!=t||m||(m=!0,u())}function u(){$(!0)}function $(i){var n=v.getValue();if(n&&n.name$string&&(w!=n.name$string||i)){var u=_[n.name$string];if(u&&u.generate){var m,$=f,x=[],y=[];do x.push(u.defaults||{}),y.push(u.overrides||{});while(u._super&&(u=u._super));for(var j,C=o.clone(s.livechat.settings.theme),A={};x.length;)j=x.pop(),d.fullyExtend(C,j),d.fullyExtend(A,j);var S=a.getServerSettings("settings");for(S=S&&S.theme,d.fullyExtend(C,S||n);y.length;)d.fullyExtend(C,y.pop());d.fullyExtend(C,t.getValue()),C.name$string=n.name$string,k&&d.fullyExtend(C,l.popout),B&&d.fullyExtend(C,l.mobile),T&&d.fullyExtend(C,l.mobile_overlay),r.livechat.getLimit()||(C.colors.banner$string=C.colors.primary$string,A.colors&&A.colors.bubble$string&&(C.colors.bubble$string=A.colors.bubble$string)),w=C.name$string;var I;if(o.equal(C,c)&&(I=!0),c=C,v.update(C),!I){u=_[w];var D=f;if(N){do e.delPalette(D);while(D--)}else e.delPalettes();do m=u.generate(C),B&&m[g]&&e.setPalette(m[g],"widget_mobile_"+$,$--),k&&m[p]&&e.setPalette(m[p],"widget_popout_"+$,$--),e.setPalette(m[h],"widget_"+$,$--);while(u._super&&(u=u._super));e.on("write",b),e.reload()}}}}function b(){A.update(!0),e.un("write",b)}var w,x=r.root,v=x.$("livechat").$("settings").$("theme"),y=v.$("name$string"),j=x.$("livechat").$("ui"),C=j.$("theme_reload$bool"),A=j.$("theme_loaded$bool"),S=x.$("connection").$("message$string"),I=x.$("connection").$("status$string"),k=j.$("popout$bool").getValue(),B=j.$("mobile$bool").getValue(),N=j.$("mockup$bool").getValue(),T=j.$("mobile_overlay$bool").getValue();t=x.$("tmp").$("api_settings").$("settings").$("theme"),B&&!k||e.generateAll("no_reload"),S.bindValue(i),I.bindValue(n),v.bindValue(function(){$()}),y.bindValue(function(){$()}),C.bindValue(function(t){t&&$(!0)})},n(u,"meshim_widget_controllers_ThemeController"),u}()}).call(e,i(29),i(4))},function(t,e,i){(function(e){t.exports=function(){var t=function(t,e){return t===e||t&&e&&"object"==typeof t&&"object"==typeof e&&i(t,e)},i=function(e,i){var n;for(n in e)if(!t(e[n],i[n]))return!1;for(n in i)if(!t(e[n],i[n]))return!1;return!0},n=function(t){
if("object"!=typeof t||!t)return t;var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=n(t[i]));return e},o=function(t){if(t)for(var e=1,i=arguments.length;e<i;e++){var n=arguments[e];if(n)for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])}return t},r={equal:t,clone:n,extend:o};return e(r,"jx_core_ObjectUtil"),r}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a){t.exports=function(){function t(t){function e(){"prerender"!=document.visibilityState&&(document.removeEventListener("visibilitychange",e),At.connect())}return tt=t.isCookieDenied,et=t.overrideProxy,it=t.source,nt=t.lastHost,ot=t.source_ver,V=t.root,U=V.$("tmp").$("api_settings"),G=V.$("tmp").$("server_settings"),Y=V.$("livechat").$("settings").$("cached$bool"),H=V.$("connection"),X=H.$("server_retired$bool"),Z=H.$("server_ready$bool"),Z.bindValue(d),X.bindValue(l),(q=V.$("livechat").$("ui").$("mockup$bool").getValue())?void H.$("status$string").update("reattached"):(V.$("livechat").$("profile").bindValue(_),H.$("status$string").bindValue(s),H.$("socket_status$string").bindValue(k),V.bindWrite(P),H.$("reconnect$bool").bindValue(m),window.__z_sdk?void(F=!0):(F=!1,"visibilityState"in document&&"prerender"==document.visibilityState?void document.addEventListener("visibilitychange",e):void At.connect()))}function s(t){if(bt="reattached"==t,bt&&P(),bt&&F===!1&&B(),"idle_disconnect"==t||"shutdown"==t||"error"==t){var e=V.$("livechat").$("account").$("status$string").getValue();"invalid_account_key"==e&&lt.warnBadEmbed(),p()}k()}function _(t){t&&(tt()||at.IS_POPOUT||t.mid$string&&st.setIdentity(t.mid$string))}function l(t){K=t===!0}function d(t){Q=t!==!1,Q&&(vt=!1,u())}function u(){for(var t=0,i=xt.length;t<i;t++){var n=xt[t];e(n)&&n()}xt=[]}function c(t){return Q&&!K?void t():(H.update({server_ready$bool:!1}),xt.push(t),vt||(vt=!0,z.reconnect()),void 0)}function h(t){z&&z.send(t)}function p(t){z&&z.close(),M=!t,z=null,$t=""}function g(){p(!0),At.connect()}function f(){H.update({status$string:"idle_disconnect"})}function m(t){t&&g()}function $(t){var e=rt||new dt(t,"W",null,pt);return e.on("open",function(){v(t,e)}),e}function b(){var t=w();try{J=ft.getGeoAccess(et,t,3,2)}catch(e){return void(window.console&&window.console.log("Unable to compute host list"))}x(gt)}function w(){return nt||H.$("server$string").getValue()||""}function x(t){function e(){clearTimeout(o),n.un("close",e),x(t)}if(!z&&!M){var i=J.getNextHost();if(i){yt++;var n=$(i);if(mt.push(n),J.hasNext()){var o=setTimeout(e,t);n.on("close",e)}}}}function v(t,e){if(!q){if(z)return void e.close();H.update({socket_status$string:null}),$t=t,_t.increment("conn",["tries:"+yt]),yt=0,_t.start("conn_open",e.starttime),_t.end("conn_open",.25,["proxy:"+t]),z=e,z.on("break",j),z.on("message",y),z.on("reopen",A),z.on("resume",C),z.on("error",function(){var t=this.connect_attempts,e=this.recv_messages;t>3&&0==e&&(p(!0),x(gt))}),S()}}function y(t){if(t){if(t.raw&&t.raw.__messageID in Ct){var e=Ct[t.raw.__messageID];delete Ct[t.raw.__messageID],e(t)}var i=V;if("update"in t){if(/^livechat.account/.test(t.path)){var n=t.path.split(".");n.splice(0,2),n=n.join("."),(n?G.$("account").descend(n):G.$("account")).update(t.update),lt.fullyExtend(t.update,U.getValue("account"))}if(/^livechat/.test(t.path)&&"account"in t.update&&(G.$("account").update(t.update.account),lt.fullyExtend(t.update.account,U.getValue("account"))),/^livechat.settings/.test(t.path)){var o=t.path.split(".");o.splice(0,2),o=o.join("."),(o?G.$("settings").descend(o):G.$("settings")).update(t.update),lt.fullyExtend(t.update,U.getValue("settings"))}t.path&&(i=i.descend(t.path)),i.update(t.update),At.fire("message",t)}}}function j(){H.update({socket_status$string:"break"})}function C(){H.update({socket_status$string:"resume"})}function A(){H.update({socket_status$string:"reconnect"}),bt=!1,S()}function S(){if(at.ACCOUNT_KEY){z||At.connect();var t=st.getIdentity(),e=tt(),i=V.$("livechat").$("ui").getValue("mobile$bool")?"mobile":"desktop",o=V.$("livechat").$("settings").$("theme").getValue("name$string"),r={__type:"register",accountKey:at.ACCOUNT_KEY,mID:t,ua:window.navigator.userAgent,dt:i,theme:o,cookie_law:e,rev:n.git_commit,source:it,source_ver:ot};V.$("livechat").$("ui").$("popout$bool").getValue()?r.popout=!0:(r.title=document.title,r.url=window.location.href,r.ref=window.document.referrer);var a=At._register;if(a)for(var s in a)a.hasOwnProperty(s)&&(r[s]=a[s]);z.send(r)}}function I(){return!!Y.getValue()}function k(){var t=H.getValue("status$string"),e=H.getValue("socket_status$string");if(window.clearTimeout(N.timer),"error"==t)return void(N.timer=window.setTimeout(N,5e3));if("break"==e)"idle_disconnect"==t?H.update({message$string:"idle_disconnect"}):(H.update({message$string:"reconnecting"}),N.timer=window.setTimeout(N,6e4));else if(null===e&&"registered"==t)H.update({message$string:"resuming"});else if(o(t)&&o(e)){var i=I()?"fast_init":"first_init";H.update({message$string:i})}else H.update({message$string:null})}function B(){z&&V.$("livechat").$("profile").write({disconnect_timeout$int:W(z.rtt)})}function N(){H.update({message$string:"disconnected"})}function T(){var t=z;return t?{connect_attempts:t.connect_attempts,connections:t.connections,disconnects:t.disconnects,timeout_server:t.timeout_server,timeout_response_soft:t.timeout_response_soft,timeout_response_hard:t.timeout_response_hard,sent_bytes:t.sent_bytes,recv_bytes:t.recv_bytes,sent_messages:t.sent_messages,recv_messages:t.recv_messages,sent_frames:t.sent_frames,recv_frames:t.recv_frames,lost_frames:t.lost_frames,ooo_frames:t.ooo_frames,bytes_at_connect:t.bytes_at_connect,rtt:t.rtt,clock_skew:t.clock_skew,reconnect_delay:t.reconnect_delay,quality:t.quality,host:t.host,status:t.status,zone:window.__$__GEO,last_frame_time:t.last_frame_time,local_time:+new Date}:{status:"not connected"}}function D(){return $t}function E(){return+new Date-(z?z.clock_skew:0)}function P(t){if(t){var i={};i.path=t.path,i.value=t.value,e(t.func)&&(jt+=1,i.__messageID=jt,Ct[jt]=t.func),wt.push(i)}if(z&&bt)for(;wt.length;)z.send(wt.shift())}function O(t){return t?G.getValue(t):G.getValue()}function W(t){function e(t){return t}var i,n,o=10*ht.SECOND,r=1*ht.SECOND,a=120*ht.SECOND,s=20*ht.SECOND;return t=Math.round(t)||0,t=Math.max(r,Math.min(t,o)),i=(t-r)/(o-r),n=s+e(i)*(a-s),Math.floor(n/1e3)}function L(t){rt=t}function R(){Z.unbindValue(d),X.unbindValue(l),V.$("livechat").$("profile").unbindValue(_),H.$("status$string").unbindValue(s),H.$("socket_status$string").unbindValue(k),H.$("reconnect$bool").unbindValue(m),p(),mt.forEach(function(t){t.close(),t.fire("close")}),N.timer=clearTimeout(N.timer),mt=[],$t="",bt=!1,wt=[],xt=[],vt=!1,yt=0,jt=0,Ct={},F=M=V=H=z=q=U=G=Y=X=K=Z=Q=J=tt=et=it=nt=ot=rt=null}var F,M,V,H,z,q,U,G,Y,X,K,Z,Q,J,tt,et,it,nt,ot,rt,at=i(32),st=i(34),_t=i(49),lt=i(38),dt=i(54),ut=i(60),ct=i(61),ht=i(65),pt={FLUSH_DELAY_MS:0,RECONNECT_DELAY_MS:1e4},gt=3e3,ft=new ct(ut,'{"CLUSTERS":{"US":["us08","us10","us12","us14","us16","us18","us20","us22","us24","us26","us28","us30","us32","us34","us36","us38","us40","us42","us44","us46"],"DE":["de04","de06","de08","de10","de12","ie02","ie04","ie06","ie08","ie10","ie12","ie14","ie16","de14","de16","de18","de20"],"SG":["sg06","sg08","sg10","sg12","sg14","sg16","sg18","sg20"],"JP":["jp02","jp04","jp06","jp08"],"AU":["au02","au04"],"BR":["br02","br04","br06","br08","br10","br12"]},"FALLBACKS":{"US":["DE"],"DE":["US"],"SG":["US"],"JP":["US"],"AU":["SG","US"],"BR":["US"]},"NEAR_MAP":{"AL":"DE","AD":"DE","AM":"DE","AT":"DE","BY":"DE","BE":"DE","BA":"DE","BG":"DE","CH":"DE","CY":"DE","CZ":"DE","DE":"DE","DK":"DE","EE":"DE","ES":"DE","EU":"DE","FO":"DE","FI":"DE","FR":"DE","GB":"DE","GE":"DE","GI":"DE","GR":"DE","HU":"DE","HR":"DE","IE":"DE","IM":"DE","IS":"DE","IT":"DE","LT":"DE","LU":"DE","LV":"DE","MC":"DE","MK":"DE","MT":"DE","NO":"DE","NL":"DE","PK":"DE","PO":"DE","PT":"DE","RO":"DE","SA":"DE","SE":"DE","SI":"DE","SK":"DE","SM":"DE","TR":"DE","UA":"DE","VA":"DE","ZA":"DE","NG":"DE","MA":"DE","AP":"SG","BD":"SG","BN":"SG","CN":"SG","ID":"SG","IN":"SG","LA":"SG","KH":"SG","LK":"SG","MM":"SG","MY":"SG","SG":"SG","TH":"SG","VN":"SG","AU":"AU","NZ":"AU","HK":"JP","KR":"JP","JP":"JP","PH":"US","RU":"JP","TW":"JP","AR":"BR","BO":"BR","BR":"BR","CL":"BR","PE":"BR","PY":"BR","UY":"BR","DEFAULT":"US"}}'),mt=[],$t="",bt=!1,wt=[],xt=[],vt=!1,yt=0,jt=0,Ct={},At=r.extend({init:t,send:h,connect:b,reconnect:g,disconnect:f,getConnectionStats:T,getHost:D,getServerTime:E,getServerSettings:O,reconnectIfServerRetired:c,getDCTimeoutValue:W,setSocket:L,reset:R});return a(At,"meshim_widget_controllers_ConnectionController"),At}()}).call(e,i(9),i(1),i(10),i(6),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(){d=new c,d.setTags(l()),d.bindToConnectionStatus=a,d.flush=_}function a(t){t.bindValue(s)}function s(t){"registered"==t||"reattached"==t||"cookie_law"==t?(u=!0,d.flush()):u=!1}function _(){if(u&&this.queue.length){if(!p.root.$("livechat").$("ui").$("mockup$bool").getValue()){e(d.send)&&d.send({__type:"instrumentation",metrics:this.queue});for(var t=f.length;t--;){var i=f[t];g.post(i.msg,i.data)}}f=[],this.queue=[]}}function l(){var t=[];t.push("browser:"+n.browser);var e,i;return h.isMobileBrowser?(e=h.isMobileTablet?"tablet":"mobile",i=h.isAndroid?"android":h.isIOS?"ios":h.isWP?"wp":"other"):(e="desktop",i=n.isWindows?"win":n.isMac?"mac":"other"),t.push("device:"+e),t.push("platform:"+i),t.push("rev:"+o.git_commit),t}var d,u,c=i(50),h=i(41),p=i(30),g=i(51),f=[];return t(),r(d,"meshim_widget_controllers_InstrumentationController"),d}()}).call(e,i(9),i(7),i(1),i(4))},function(t,e,i){(function(e,i,n,o){t.exports=function(){function t(){var t=+new Date,e=t-c,i=Math.abs(e-l);i>d&&a(),c=t}function r(){for(var t=p.length;t--;){for(var e=p[t],i=e.queue.length;i--;){var n=e.queue[i];"histogram"===n.method&&e.queue.splice(i,1)}e.start_ts={}}}function a(){h=clearInterval(h),u=!1,r()}function s(){this.ref_ts=null,this.from_ref_ts={},this.start_ts={},this.tags=[],this.queue=[],p.push(this)}function _(t){}var l=15e3,d=.2*l,u=!0,c=+new Date,h=setInterval(t,l),p=[],g=s.prototype;return g.flush=function(){},g.setTags=function(t){e(t)&&(this.tags=t.concat())},g.addTag=function(t){i(t)&&t&&this.tags.push(t)},g.setRefTime=function(t){return n(this.ref_ts)?void _("Global start time has already been set - ignoring"):n(t)?void(this.ref_ts=t):void _("Invalid ref time - ignoring")},g.fromRefTime=function(t,e,o){if(u){if(!n(this.ref_ts))return void _("Global start time has not been set - ignoring");if(!i(t)||!t)return void _("Event name is not provided or invalid");if(this.from_ref_ts[t])return void _(t+" has already been tracked - ignoring");this.from_ref_ts[t]=!0;var r=+new Date;return r<this.ref_ts?void a():void this._queueHistogram(t,(r-this.ref_ts)/1e3,e,o)}},g.start=function(t,e){if(u)return i(t)&&t?t in this.start_ts?void _("Start time of "+t+" has already been set - ignoring"):void(this.start_ts[t]=n(e)?e:+new Date):void _("Event name is not provided or invalid")},g.end=function(t,e,n){if(u){if(!i(t)||!t)return void _("Event name is not provided or invalid");if(!(t in this.start_ts))return void _("Start time of "+t+" has not been set - ignoring");var o=+new Date;if(o<this.start_ts[t])return void a();this._queueHistogram(t,(o-this.start_ts[t])/1e3,e,n),delete this.start_ts[t]}},g.restart=function(t,e){delete this.start_ts[t],this.start(t,e)},g.timing=function(t,e,i){this._queue({method:"timing",name:t,value:e,tags:this.tags.concat(i||[])})},g.increment=function(t,e){this._queue({method:"increment",name:t,value:1,tags:this.tags.concat(e||[])})},g._queueHistogram=function(t,i,o,r){e(o)&&(r=o,o=void 0);var a={method:"histogram",name:t,value:i,tags:this.tags.concat(r||[])};n(o)&&(a.sample_rate=o),this._queue(a)},g._queue=function(t){this.queue.push(t),this.flush()},o(s,"meshim_common_Instrumentation"),s}()}).call(e,i(21),i(19),i(23),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(t){c=g.root.$("livechat").$("account").$("key$string"),u=t,n.on("error",_),o(c.getValue(),y)!=-1&&(n.window.on("error",s),n.window.on("unload",function(){n.window.un("error",s)}))}function a(t){t&&(t.onerror=_)}function s(t,e,i){return l(t,e,i),!1}function _(t,e,i){return l(t,e,i),!0}function l(t,e,i){if(t&&!x&&!b.test(t)&&("string"!=typeof e||$.test(e))){var n=t.stack?[t.toString(),t.stack].join("\n"):t.toString(),o=[n,e,i].join(" ");C[o]||(C[o]=!0,d(t.toString(),{script:e+"",line:i+"",stack:t.stack}))}}function d(t,e){if(!(Math.random()>j)&&t&&u){var i=u.getHost();i&&(e=p.extend({},e,{error:t,system:f.stringify(h.info),connection:f.stringify(u.getConnectionStats())}),e.stack&&(e.stack=e.stack.toString()),m.post("https://"+i+"/client/widget/errors",{params:e}))}}var u,c,h=i(52),p=i(47),g=i(30),f=i(36),m=i(53),$=/^($|about:blank$|(https?:\/\/)?([\w_-]+\.)*zopim\.com)/i,b=/Script error/,w=/^en/i,x=(e.isIE||e.isNewIE)&&("language"in window.navigator&&!w.test(window.navigator.language)||"userLanguage"in window.navigator&&!w.test(window.navigator.userLanguage)||"browserLanguage"in window.navigator&&!w.test(window.navigator.browserLanguage)),v={init:t,post:d,bind:a},y=["zopim"],j=.1,C={};return r(v,"meshim_widget_controllers_ErrorHandler"),v}()}).call(e,i(7),i(6),i(24),i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){var t={info:{gitCommit:e.git_commit,buildNumber:e.build_number,userAgent:window.navigator.userAgent,platform:window.navigator.platform,language:i.language,browser:i.browser,version:i.version,javaVersion:i.hasJava,flashVersion:i.hasFlash,url:window.location.toString()}};return n(t,"meshim_common_System"),t}()}).call(e,i(1),i(7),i(4))},function(t,e,i){(function(e,i,n,o){t.exports=function(){function t(t,e,n){i(e)&&(n=e,e=null),e||(e={}),_("POST",t,e,n)}function r(t,e,n){i(e)&&(n=e,e=null),e||(e={}),_("GET",t,e,n)}function a(t,e,i,o){var r,a,s,_="form"+~~(1e5*Math.random()),l=i.timeout||1e4,d=document.createElement("form"),u=document.createElement("iframe");if(d.method=t,d.action=e,u.style.display="none",i.params)for(a in i.params)i.params.hasOwnProperty(a)&&(s=document.createElement("input"),s.name=a,s.value=i.params[a],d.appendChild(s));document.body.appendChild(d),document.body.appendChild(u),d.target=u.contentWindow.name=_,n(function(){d.submit(),document.body.removeChild(d),s=d=null,u.onload=function(){u.onload=null,u.contentWindow.location.href="about:blank",u.onload=function(){u.onload=null,clearTimeout(r),o&&o(null,u.contentWindow.name),document.body.removeChild(u),u=null}}}),r=setTimeout(function(){o&&o("timeout"),document.body.removeChild(u),u=null},l)}function s(t,e,i,n){function o(){return p.contentWindow.frames.length?(p.contentWindow.location.href="about:blank",clearTimeout(s),void setTimeout(function(){n&&n(null,p.contentWindow.name),r.body.removeChild(p),r=p=null},0)):void(_=setTimeout(o,100))}var r=document;if(window.ActiveXObject)try{r=new window.ActiveXObject("htmlfile"),r.open(),r.close()}catch(a){}var s,_,l,d,u="form"+~~(1e5*Math.random()),c=i.timeout||1e4,h=r.createElement('<form target="'+u+'"/>'),p=r.createElement('<iframe name="'+u+'"/>');if(h.method=t,h.action=e,p.style.display="none",i.params)for(l in i.params)i.params.hasOwnProperty(l)&&(d=r.createElement('<input name="'+l+'"/>'),d.value=i.params[l],h.appendChild(d));r.body.appendChild(h),r.body.appendChild(p),h.submit(),r.body.removeChild(h),d=h=null,_=setTimeout(o,100),s=setTimeout(function(){n&&n("timeout"),clearTimeout(_),r.body.removeChild(p),r=p=null},c)}var _=e.isIE6||e.isIE7||e.isIE8?s:a;return _.get=r,_.post=t,o(_,"jx_io_Form"),_}()}).call(e,i(7),i(9),i(12),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,r){if(!f)throw"No available transports";this.provider=f,this.options=r=r||{};for(var a in b)b.hasOwnProperty(a)&&(a in r||(r[a]=b[a]));e.extend(this),this.id=o||t.generateID(),this.host=i,this.ns=n,this.path="/"+["s",this.ns,this.provider.protocol,this.id].join("/"),this.url=this.host+this.path+"/",this.status="connecting",this.connected=!1,this.quality=0,this.rtt=r.INITIAL_RTT,this.clock_skew=0,this.connect_attempts=0,this.connections=0,this.disconnects=0,this.sent_bytes=0,this.recv_bytes=0,this.sent_messages=0,this.recv_messages=0,this.sent_frames=0,this.recv_frames=0,this.lost_frames=0,this.ooo_frames=0,this.remote_seq=0,this.local_seq=0,this.timeout_server=0,this.timeout_response_soft=0,this.timeout_response_hard=0,this.bytes_at_connect=-1,this.time_last_alive=-1,this.time_last_open=-1,this.starttime=+new Date,this.uptime=0,this.connected_time=new _,this.idle_time=new _,this.last_frame_time=0,this.raw_clock_skew=0,this.smooth_skewed_transit_time_in=0,this.remote_smooth_skewed_transit_time_out=0,this.cur_conn_recv_messages=0,this.drained=!0,this.buffer=[],this.glitch_timer=this.reconnect_timer=null,this.reconnect_delay=r.RECONNECT_DELAY_MS*(.2*Math.random()+.8),this.keep_alive_interval=15e3,this.data_packet_queue=new l(this),this.connect();var s=this;this.onoffline=function(){t.prototype.onoffline.call(s)},this.ononline=function(){t.prototype.ononline.call(s)},e.window.on("offline",this.onoffline),e.window.on("online",this.ononline)}function r(){var t=C,e=new Date,i=e.getUTCFullYear()-2e3,n=e.getUTCMonth()+1,o=e.getUTCDate(),r=e.getUTCHours(),a=e.getUTCMinutes(),s=e.getUTCSeconds(),_=e.getUTCMilliseconds();return t[i]+t[n]+t[o]+t[r]+t[a]+t[s]+t[_>>6]+t[63&_]}function a(t){for(var e="",i=C;t-- >0;)e+=i.charAt(Math.floor(Math.random()*i.length));return e}function s(t,e,i){return Math.min(i,Math.max(e,t))}function _(){this.count=0,this.sum=0,this.sq_sum=0,this.mean=0,this.stddev=0}function l(t){this.socket=t,this.queue=[],this.curFrame=null,this.curIdx=0,this.processing=!1}var d=i(36),u=i(55),c=i(56),h=i(57),p=i(58),g=i(59),f=p||u||c||h||g,m=g,$=45e3,b={INITIAL_RTT:1e3,RECONNECT_DELAY_MS:3e4,FAST_RECONNECT_MS:100,FLUSH_DELAY_MS:75,MAX_BLOCKING_TIME_MS:40};t.available=function(){return!!f},t.generateID=function(){return a(16)},t.prototype.connect=function(t){if(this.debug("connect("+(t&&"glitch"||"")+")"),!this.reconnect_timer){var e=this,i=this.options;this.connections&&this.cur_conn_recv_messages||(this.provider=1&this.connect_attempts?m:f),this.response_timer=clearTimeout(this.response_timer),this.timeout_timer=clearTimeout(this.timeout_timer),this.socket&&(this.socket.onclose=this.socket.ondrain=this.socket.onerror=this.socket.onmessage=this.socket.onopen=null,this.socket.abort("connect"),this.socket=null),this.connected=!1,this.cur_conn_recv_messages=0,t&&(this.reconnect_delay=i.RECONNECT_DELAY_MS*(.2*Math.random()+.9),this.glitch_timer=setTimeout(function(){e.quality=0,e.glitch_timer=setTimeout(function(){e.status="reconnecting",e.fire_break()},s(3*e.rtt,1e3,5e3))},s(3*this.rtt,1e3,5e3))),this.debug("reconnect_delay: "+this.reconnect_delay),clearTimeout(this.reconnect_timer),this.reconnect_timer=setTimeout(function(){e.reconnect_timer=null,e.reconnect_delay=Math.min(1.4*e.reconnect_delay+1e3,6e4),e.reconnect_delay*=.2*Math.random()+.9,e.connect()},this.reconnect_delay),this.path="/"+["s",this.ns,this.provider.protocol,this.id].join("/"),this.url=this.host+this.path+"/",this.debug("connecting: "+this.url),this.socket=new this.provider(this.url),this.transport=this.provider.protocol,this.connect_attempts++,this.socket.onopen=function(){e.status="connected",e.glitch_timer=clearTimeout(e.glitch_timer),e.reconnect_timer=clearTimeout(e.reconnect_timer),e.connections++,e.drained=!0,e.connected=!0,e.time_last_open=e.time_last_alive=+new Date,e.uptime>=0&&(e.uptime-=e.time_last_open),1==e.connections?e.fire("open"):e.fire_resume(),e.flush(),e.keep_alive(),e.debug("connected"),e.bytes_at_connect==-1&&setTimeout(function(){e.bytes_at_connect=e.recv_bytes},50)},this.socket.onmessage=function(t,i){e.onmessage(t,i)},this.socket.onclose=function(t){e._onclose(t)},this.socket.ondrain=function(t){e._ondrain(t)},this.socket.onerror=function(t){e._onerror(t)}}},t.prototype.reconnect=function(){this.reconnect_timer=clearTimeout(this.reconnect_timer),this.broken_reason="FORCED_RECONNECT",this.connect()},t.prototype.send=function(t,e){"disconnected"!=this.status&&("null"==this.buffer[0]&&(this.buffer=[]),this.buffer.push(d.stringify(t)),this.schedule_flush(),e&&this.response_timeout())},t.prototype.close=function(t){this.debug("close()"),this.flush_scheduled=clearTimeout(this.flush_scheduled),this.keep_alive_timer=clearTimeout(this.keep_alive_timer),this.reconnect_timer=clearTimeout(this.reconnect_timer),this.response_timer=clearTimeout(this.response_timer),this.timeout_timer=clearTimeout(this.timeout_timer),this.broken_reason||(this.broken_reason="CLOSE"),this.fire_break(),this.status=t?"reconnecting":"disconnected",this.connected=!1,this.quality=0,this.socket&&(this.socket.onclose=this.socket.ondrain=this.socket.onerror=this.socket.onmessage=this.socket.onopen=null,this.socket.abort("close"),this.socket=null,t||(e.window.un("offline",this.onoffline),e.window.un("online",this.ononline)))},t.prototype.hibernate=function(){},t.prototype.onoffline=function(){this.broken_reason="OFFLINE",this.debug("onoffline"),this.close(!0)},t.prototype.ononline=function(){this.debug("ononline"),"disconnected"!=this.status&&(this.connected||(this.reconnect_timer=clearTimeout(this.reconnect_timer),this.connect()))},t.prototype.schedule_flush=function(){if("disconnected"!=this.status&&!this.flush_scheduled&&this.drained&&this.connected){var t=this,e=this.options;this.flush_scheduled=setTimeout(function(){t.flush()},e.FLUSH_DELAY_MS)}},t.prototype.flush=function(){if("disconnected"!=this.status&&this.buffer.length&&this.drained&&this.connected){var t=this.buffer;this.sent_messages+=t.length,this.sent_frames++,t=this.generate_frame(t.join("\n")),this.drained=this.socket.send(t),this.sent_bytes+=t.length,this.flush_scheduled=clearTimeout(this.flush_scheduled),this.buffer=[],this.keep_alive(),this.time_last_alive=+new Date}},t.prototype.keep_alive=function(){if("disconnected"!=this.status){clearTimeout(this.keep_alive_timer);var t=this;this.keep_alive_timer=setTimeout(function(){t.debug("pong!"),t.send(null)},this.keep_alive_interval)}},t.prototype.response_timeout=function(){if(!this.response_timer){var t=this,e=s(4*this.rtt+this.options.FLUSH_DELAY_MS,2e3,2e4);this.response_timer=setTimeout(function(){t.timeout_response_soft++,t.debug("response timeout, "+e+"ms"),t.fire_break("SOFT_RESPONSE_TIMEOUT"),t.response_timer=setTimeout(function(){t.timeout_response_hard++,t.debug("response timeout - reconnecting"),t.broken_reason="HARD_RESPONSE_TIMEOUT",t.connect(!0)},2*e)},e)}},t.prototype.reset_server_timeout=function(){clearTimeout(this.timeout_timer);var t=this,e=4*this.keep_alive_interval+s(4*t.rtt,2e3,2e4);this.timeout_timer=setTimeout(function(){t.timeout_server++,t.debug("server "+e+"ms timeout, reconnecting"),t.broken_reason="SERVER_TIMEOUT",t.connect(!0)},e)},t.prototype.fire_break=function(t){this.broken||this.fire("break",t||this.broken_reason),this.broken=!0,this.broken_reason="",this.uptime<0&&(this.uptime+=+new Date)},t.prototype.fire_resume=function(){this.broken_reason="",this.broken&&this.fire("resume"),this.broken=!1,this.uptime>=0&&(this.uptime-=+new Date)},t.prototype.onmessage=function(t,e){if(this.recv_bytes+=t.length,t=t.split("\n"),t.length<6)return void this.debug("Bad data: "+t.join("\n"));var i=+new Date,n=+t[0],o=+t[1],r=+t[2],a=(+t[3],t[4]);switch(this.calculate_clocks(e||+new Date,n,o),this.reset_server_timeout(),a){case"a":this.broken_reason="ABORT",this.close();break;case"d":this.response_timer=clearTimeout(this.response_timer),this.fire_resume(),this.check_sequence(r),this.data_packet_queue.queueFrame(t,5,i);break;case"e":this.debug("server: Are you still there?"),this.send(null),this.flush();break;case"n":this.remote_seq=r,this.keep_alive_interval=+t[5]||15e3,this.debug("keep_alive is "+this.keep_alive_interval+"ms"),this.connections>1&&this.fire("reopen");break;case"p":this.debug("ping!")}},t.prototype._onclose=function(t){var e=this,i=this.options;0==this.connections&&0==this.disconnects&&this.fire("close"),this.debug("_onclose"),this.disconnects++,this.broken_reason="HANGUP",this.connected?this.reconnect_timer=setTimeout(function(){e.reconnect_timer=null,e.connect(!0)},i.FAST_RECONNECT_MS):this.connections||1!=this.connect_attempts||(clearTimeout(this.reconnect_timer),this.reconnect_timer=setTimeout(function(){e.reconnect_timer=null,e.connect()},0)),this.connected=!1,clearTimeout(this.keep_alive_timer),this.time_last_alive>0&&this.idle_time.add(+new Date-this.time_last_alive),this.time_last_open>0&&this.connected_time.add(+new Date-this.time_last_open),this.time_last_alive=this.time_last_open=-1,this.uptime<0&&(this.uptime+=+new Date)},t.prototype._ondrain=function(){this.drained=!0,this.flush()},t.prototype._onerror=function(t){this.debug("_error"),this.fire("error",t)},t.prototype.generate_frame=function(t,e){return[+new Date,this.smooth_skewed_transit_time_in,++this.local_seq,this.remote_seq,e||"d",t].join("\n")};var w=.1,x=50,v=1e3,y=Math.pow(x,w),j=Math.pow(v,w)-y;t.prototype.calculate_clocks=function(t,e,i){var n=t-e,o=t-this.last_frame_time,r=1/(o/$+1);this.smooth_skewed_transit_time_in?this.smooth_skewed_transit_time_in=r*this.smooth_skewed_transit_time_in+(1-r)*n:this.smooth_skewed_transit_time_in=n,this.remote_smooth_skewed_transit_time_out=i,this.smooth_skewed_transit_time_in&&this.remote_smooth_skewed_transit_time_out&&(this.rtt=this.smooth_skewed_transit_time_in+this.remote_smooth_skewed_transit_time_out,this.quality=~~(100*(1-(Math.pow(this.rtt,w)-y)/j)),this.quality=Math.min(100,Math.max(0,this.quality)),this.raw_clock_skew=n-this.rtt/2,this.clock_skew?this.clock_skew=.9*this.clock_skew+.1*this.raw_clock_skew:this.clock_skew=this.raw_clock_skew),this.time_last_alive=this.last_frame_time=t},t.prototype.check_sequence=function(t){if(this.remote_seq+1==t)this.remote_seq=t;else if(this.remote_seq<t){var e=t-this.remote_seq+1;this.lost_frames+=e,this.fire("lost",e),this.remote_seq=t}else this.ooo_frames++,this.fire("out_of_order")},f&&(t.prototype.transport=f.protocol),t.prototype.debug=function(){};var C="+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";t.genDate=r,t.genID=a,_.prototype.add=function(t){this.count++,this.sum+=t,this.sq_sum+=t*t,this.mean=this.sum/this.count,this.stddev=Math.sqrt(this.sq_sum/this.count-this.mean*this.mean)};var A=l.prototype;return A.queueFrame=function(t,e,i){this.queue.push({msgs:t,start_idx:e,receive_time:i}),this.process()},A.process=function(){this.processing||(this.processing=!0,this.work())},A.work=function(){for(var t,e,i,o=+new Date+this.socket.options.MAX_BLOCKING_TIME_MS,r=!1,a=this.socket.recv_frames,s=0;s<this.queue.length;s++){t=this.queue[s],"start_time"in t||(t.start_time=+new Date,t.ticks=0,t.idx=t.start_idx),t.ticks++,e=t.msgs,i=e.length;for(;t.idx<i;){var _,l=+new Date;if(l>o){r=!0;break}this.socket.dispatch_delay=l-t.receive_time;try{_=d.parse(e[t.idx]),t.idx++}catch(u){this.socket.debug("Invalid json message: "+e[t.idx]);continue}this.socket.fire("message",_),this.socket.recv_messages++,this.socket.cur_conn_recv_messages++}if(t.idx>=i&&this.socket.recv_frames++,r)break}this.queue.splice(0,this.socket.recv_frames-a),this.queue.length?n(this.work,this):this.processing=!1},o(t,"jx_io_Socket"),t}()}).call(e,i(6),i(12),i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(t){function i(t){a("extracting data"),!o&&_.onopen&&_.onopen(),o=t,l+=s.responseText.substr(d),d=s.responseText.length,l=l.split("\n\n");for(var e=0;e<l.length-1;e++)_.onmessage&&_.onmessage(l[e],o);l=l[l.length-1],(d>1048576&&!l.length||d>4194304)&&_.abort()}var o,s=this.xhr=new n,_=this,l="",d=0;this.url=r+t,s.open("GET",this.url+["c",+new Date].join("/"),!0),s.onerror=function(t){_.abort(t)},e.isIE?(s.onprogress=function(){i(+new Date)},s.onload=function(){_.abort("close")}):s.onreadystatechange=function(){switch(s.readyState){case 3:i(+new Date);break;case 4:_.abort("close")}},a("CXHR connecting to: "+this.url),s.send()}var n=e.isIE?window.XDomainRequest:!e.isOpera&&!e.isAndroid&&window.XMLHttpRequest,o=n?t:null,r=e.isIE?"//":"https://";t.protocol="cxhr",t.prototype.send=function(t){function i(){_.abort("send failed")}function o(){_.xhr_sender=null,clearTimeout(r),_.ondrain&&_.ondrain()}var r,a=this.url+["d",+new Date].join("/"),s=new n,_=this;return s.open("POST",a,!0),s.send(t),e.isIE?(s.onerror=i,s.onload=o):s.onreadystatechange=function(){4==s.readyState&&(200!=s.status&&i(),o())},r=setTimeout(i,5e3),this.xhr_sender=s,!1},t.prototype.abort=function(t){this._abort||(this._abort=!0,a(t),this.xhr&&this.xhr.abort(),this.xhr_sender&&this.xhr_sender.abort(),this.onclose&&this.onclose(t),this.onerror=this.onload=this.onprogress=this.onreadystatechange=this.xhr=this.xhr_sender=null)};var a=function(){};return i(o,"jx_io_socket_ChunkedXHR"),o}()}).call(e,i(7),i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(t){function e(t){!_&&a.onopen&&a.onopen(),_=+new Date,t.origin==o&&("event-stream"==t.data?s.onload=null:a.onmessage&&a.onmessage(t.data,_))}var i,o,a=this,s=this.iframe=n("iframe");this.url="https://"+t,s.src=this.src=i=this.url+["c",+new Date].join("/"),o=i.match(/https?:\/\/[^\/]+/)[0],s.onload=function(t){a.abort(t)},document.body.insertBefore(s,document.body.firstChild),r("SPM connecting to: "+this.url),window.addEventListener("message",e,!1),this.remove_listeners=function(){window.removeEventListener("message",e,!1)};var _}function n(t){var e=document.createElement(t),i=e.style;return i.position="absolute",i.width=i.height=0,i.overflow="hidden",e}var o=window.postMessage?!e.isAndroid&&t:null;t.protocol="spm",t.prototype.send=function(t){return this.iframe.contentWindow.postMessage(t,this.src),!0},t.prototype.abort=function(t){this._abort||(this._abort=!0,r(t),this.iframe&&document.body.removeChild(this.iframe),this.onclose&&this.onclose(t),this.remove_listeners(),this.iframe=this.remove_listeners=null)};var r=function(){};return i(o,"jx_io_socket_StreamingPostMessage"),o}()}).call(e,i(7),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t){var e,i,o=this,r=new a((!0));e=new window.ActiveXObject("htmlfile"),e.open(),e.close(),i=e.createElement("iframe"),e.body.appendChild(i),r.on("success",function(){o.ondrain&&o.ondrain()}),r.on("error",function(){o.abort()}),this.sender=r,this.htmlfile=e,this.remote_frame=i,this.url="https://"+t,n.window.on("unload",this.unload=function(){o.abort()}),this.connect()}var r=e.isIE&&t;t.protocol="shtmlf";var a=i(11);t.prototype.connect=function(){function t(){try{n=a.contentWindow.frames[0]}catch(o){return _.abort()}if(!n)return void(_.timer=setTimeout(t,Math.min(800,l*=1.3)));try{return n.name,void(_.timer=setTimeout(t,Math.min(800,l*=1.3)))}catch(o){}n.location.href="about:blank",e.isIE<7?_.timer=setTimeout(i,20):n.onload=i}function i(){try{o=n.name}catch(e){return d++%10||(n.location.href="about:blank"),void(_.timer=setTimeout(i,20))}if(d=0,o){o=o.split("\n\n"),!r&&_.onopen&&_.onopen(),r=+new Date;for(var a=0;a<o.length-1;a++){var s=o[a];if("abort"==s)return _.abort();_.onmessage&&_.onmessage(s,r)}try{n.name="",n.onload=null}catch(e){_.abort()}}_.timer=setTimeout(t,l=200)}var n,o,r,a=this.remote_frame,_=this,l=200;this.timer=setTimeout(t,250);var d=0;s("SHF connecting to: "+this.url),a.src=this.url+["c",+new Date].join("/")},t.prototype.send=function(t){var e=this.url+["d",+new Date,window.encodeURIComponent(t)].join("/");return this.sender.load(e),!1},t.prototype.abort=function(t){this._abort||(this._abort=!0,s(t),this.remote_frame.onload=this.remote_frame.onerror=null,this.htmlfile.open(),this.htmlfile.close(),this.sender.destroy(),n.window.un("unload",this.unload),this.sender=this.htmlfile=this.remote_frame=this.unload=null,clearTimeout(this.timer),this.onclose&&this.onclose(t),window.CollectGarbage())};var s=function(){};return o(r,"jx_io_socket_StreamingHTMLFile"),r}()}).call(e,i(7),i(6),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){var e=new i("wss://"+t+["c",+new Date].join("/")),n=this;e.onclose=function(t){n.onclose&&n.onclose(t)},e.onerror=function(t){n.onerror&&n.onerror(t)},e.onmessage=function(t){n.onmessage&&n.onmessage(t.data,+new Date)},e.onopen=function(t){n.onopen&&n.onopen(t)},this.ws=e}var i=window.WebSocket||window.MozWebSocket,n=i?t:null;return t.prototype.abort=function(){if(!this._aborted){this._aborted=!0;var t=this.ws;t.readyState==i.CONNECTING?t.onopen=function(){t.close()}:t.close()}},t.prototype.send=function(t){return this.ws.send(t),!0},t.protocol="ws",e(n,"jx_io_socket_WebSocket"),n}()}).call(e,i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(t){var i=this,n=this.longpoll=new r((!0)),o=this.sender=new r((!0));n.on("success",function(t){i.process_data(t)}),n.on("error",function(){i.abort("longpoll error")}),o.on("success",function(){i.ondrain&&i.ondrain()}),o.on("error",function(){i.abort("sender error")}),this.url="https://"+t,e.window.on("unload",this.unload=function(){i.abort("unload")}),this.longpoll.load(this.url+["c",+new Date].join("/"))}var o=t;t.protocol="xdds";var r=i(11);t.prototype.process_data=function(t){t&&!this._abort&&(!this.ts&&this.onopen&&this.onopen(),this.ts=+new Date,this.onmessage&&this.onmessage(t,this.ts),this.longpoll&&this.longpoll.load(this.url+["p",+new Date].join("/")));
},t.prototype.send=function(t){if(this._abort)return!1;var e=this.url+["d",+new Date,window.encodeURIComponent(t)].join("/");return this.sender&&this.sender.load(e),!1},t.prototype.abort=function(t){this._abort||(this._abort=!0,a("XDDS - abort: "+t),e.window.un("unload",this.unload),this.longpoll.destroy(),this.sender.destroy(),this.longpoll=this.sender=this.unload=null,this.onclose&&this.onclose(t),window.CollectGarbage&&window.CollectGarbage())};var a=function(){};return n(o,"jx_io_socket_XDomainDynScript"),o}()}).call(e,i(6),i(4))},function(t,e,i){(function(e){t.exports=function(){var t={CLUSTERS:{US:["us08","us10","us12","us14","us16","us18","us20","us22","us24","us26","us28","us30","us32","us34","us36","us38","us40","us42","us44","us46"],DE:["de04","de06","de08","de10","de12","ie02","ie04","ie06","ie08","ie10","ie12","ie14","ie16","de14","de16","de18","de20"],SG:["sg06","sg08","sg10","sg12","sg14","sg16","sg18","sg20"],JP:["jp02","jp04","jp06","jp08"],AU:["au02","au04"],BR:["br02","br04","br06","br08","br10","br12"]},FALLBACKS:{US:["DE"],DE:["US"],SG:["US"],JP:["US"],AU:["SG","US"],BR:["US"]},NEAR_MAP:{AL:"DE",AD:"DE",AM:"DE",AT:"DE",BY:"DE",BE:"DE",BA:"DE",BG:"DE",CH:"DE",CY:"DE",CZ:"DE",DE:"DE",DK:"DE",EE:"DE",ES:"DE",EU:"DE",FO:"DE",FI:"DE",FR:"DE",GB:"DE",GE:"DE",GI:"DE",GR:"DE",HU:"DE",HR:"DE",IE:"DE",IM:"DE",IS:"DE",IT:"DE",LT:"DE",LU:"DE",LV:"DE",MC:"DE",MK:"DE",MT:"DE",NO:"DE",NL:"DE",PK:"DE",PO:"DE",PT:"DE",RO:"DE",SA:"DE",SE:"DE",SI:"DE",SK:"DE",SM:"DE",TR:"DE",UA:"DE",VA:"DE",ZA:"DE",NG:"DE",MA:"DE",AP:"SG",BD:"SG",BN:"SG",CN:"SG",ID:"SG",IN:"SG",LA:"SG",KH:"SG",LK:"SG",MM:"SG",MY:"SG",SG:"SG",TH:"SG",VN:"SG",AU:"AU",NZ:"AU",HK:"JP",KR:"JP",JP:"JP",PH:"US",RU:"JP",TW:"JP",AR:"BR",BO:"BR",BR:"BR",CL:"BR",PE:"BR",PY:"BR",UY:"BR",DEFAULT:"US"}};return e(t,"meshim_config_geo_WidgetMediatorsAccessDefinition"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t,e){this.clusters_config=t,this.countryCode="geo"===o?r:o;try{if(e.length<=0)throw"SSI cluster definition not found";if("<"==e.charAt(0))throw"SSI not processed";this.clusters_config=JSON.parse(e)}catch(i){}}var n=i(62),o='IN'.toUpperCase(),r='geo'.toUpperCase(),a=".zopim.com",s=[".zopim.net",".zopim.org",".zdch.at"];"<"==o.charAt(0)&&(o="geo"),"<"==r.charAt(0)&&(r="geo"),t.countryCode="geo"===o?r:o;var _=t.prototype;return _.getGeoCode=function(){return this.countryCode},_.getGeoAccess=function(t,e,i,o,r,_){return new n(this.clusters_config,r||a,this.countryCode,t,e,i,o,_||s)},e(t,"meshim_common_GeoAccessFactory"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t,e,i,n,o,s,_,l){this.CLUSTERS=t.CLUSTERS,this.WEIGHTS=t.WEIGHTS,this.NEAR_MAP=t.NEAR_MAP,this.FALLBACKS=t.FALLBACKS,this.geo_code=i||"geo",this.default_domain=e,this.supported_domains=(l||[]).concat(this.default_domain);var d=r.map(this.supported_domains,a.escape);this.supported_proxy_re=new RegExp("^[a-z][a-z0-9_-]*(.[a-z][a-z0-9_-]*)*("+d.join("|")+")(:\\d+)?$","i"),this.cluster_hosts=[],this.host_list=[],this.host_index=0,this.last_connected_host=o&&this.getValidatedHost(o),this.override_proxy=n&&this.getValidatedHost(n),this.num_primary_hosts=s||0,this.num_fallback_hosts=_||0,this.init()}var r=i(63),a=i(64),s=/^([a-z][a-z0-9_-]*)(:\d+)?$/i,_=t.prototype;return _.init=function(){var t=this.geo_code&&this.geo_code in this.NEAR_MAP?this.NEAR_MAP[this.geo_code]:this.NEAR_MAP.DEFAULT;if(!t)throw"Error: no cluster code found for "+this.geo_code;if(t in this.CLUSTERS)this._growClusterHosts(t,this.num_primary_hosts);else if(!this.override_proxy&&!this.last_connected_host)throw"Error: "+t+" has no cluster definition";if(t in this.FALLBACKS)for(var e=this.FALLBACKS[t],i=0,n=e.length;i<n;i++){var o=e[i];o in this.CLUSTERS&&this._growClusterHosts(o,this.num_fallback_hosts)}this._makeHostList()},_._verifyHostInGeoConfig=function(t){var e=this;return Object.keys(e.CLUSTERS).some(function(i){return e.CLUSTERS[i].some(function(i){return t===e.getValidatedHost(i)})})},_._growClusterHosts=function(t,e){var i=this.CLUSTERS[t],n=this.getWeights(t);r.shuffle(i,n),e&&(i=i.slice(0,e)),this.cluster_hosts=this.cluster_hosts.concat(i)},_.getWeights=function(t){if(!(t in this.CLUSTERS))return[];var i,n=this.CLUSTERS[t],o=n.length,r=new Array(o);if(this.WEIGHTS&&this.WEIGHTS[t]){var a=this.WEIGHTS[t];for(i=o;i--;){var s=n[i];r[i]=e(a[s])?a[s]:1}}else for(i=o;i--;)r[i]=1;return r},_.getValidatedHost=function(t,e){if(t){if(!e&&s.test(t))return this._expandSimpleHost(t);if(this.supported_proxy_re.test(t))return t}return!1},_._expandSimpleHost=function(t){return t.replace(s,"$1"+this.default_domain+"$2")},_._makeHostList=function(){var t=this,e=r.map(this.cluster_hosts,function(e){return t._expandSimpleHost(e)}),i=[];this.override_proxy&&i.push(this.override_proxy),this.last_connected_host&&this.last_connected_host!==this.override_proxy&&this._verifyHostInGeoConfig(this.last_connected_host)&&i.push(this.last_connected_host),e=e.filter(function(t){return n(t,i)===-1}),this.host_list=i.concat(e),this.host_index=0},_.getHostList=function(){return this.host_list},_.getNextHost=function(){return this.host_index>=this.host_list.length?"":this.host_list[this.host_index++]},_.hasNext=function(){return this.host_index<this.host_list.length},_.rewind=function(){this.host_index=0},_.pushHostToLast=function(t){var e,i=this.getValidatedHost(t),o=n(i,this.host_list);o!==-1&&(e=this.host_list.splice(o,1),this.host_list=this.host_list.concat(e))},o(t,"meshim_common_GeoAccess"),t}()}).call(e,i(23),i(24),i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(t,e){return e?a(t,e):o(t)}function o(t){for(var e,i,n=t.length;n>1;)e=Math.floor(n--*Math.random()),i=t[e],t[e]=t[n],t[n]=i;return t}function r(t,e){if(!t||t.length<=0)return-1;if(!e)return Math.floor(Math.random()*t.length);e=s(t,e);var i,n=0;for(i=e.length;i--;)n+=e[i];var o=Math.random()*n,r=0,a=e.length;for(i=0;i<a-1;i++)if(r+=e[i],o<=r)return i;return i}function a(t,e){var i,n,o,r,a,_=t.concat();for(e=s(t,e),t.length=0,a=0,i=e.length;i--;)a+=e[i];for(o=Math.random()*a,r=0,i=0;_.length;)r+=e[i],o<=r?(a-=e[i],n=_.splice(i,1)[0],e.splice(i,1),t.push(n),o=Math.random()*a,r=0,i=0):i++;return t}function s(t,n){if(e(n)){if(n.length===t.length)return n.concat();throw new window.Error("Invalid weights array: length does not match")}if(i(n))return _(t,n);throw new window.Error("Invalid weights supplied")}function _(t,n,o){var r,a,s;if(!e(t))throw new TypeError(" arr is not an array");var _=Object(t),l=_.length>>>0;if(!i(n))throw new TypeError(n+" is not a function");for(arguments.length>2&&(r=o),a=new Array(l),s=0;s<l;){var d,u;s in _&&(d=_[s],u=n.call(r,d,s,_),a[s]=u),s++}return a}var l={shuffle:t,random_index:r,map:_};return n(l,"meshim_common_ArrayUtils"),l}()}).call(e,i(21),i(9),i(4))},function(t,e,i){(function(e){t.exports=function(){var t="[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+([a-z0-9][a-z0-9-]*[a-z0-9])",i="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)",n={email:new RegExp("^"+t+"$","i"),ip_token:new RegExp("^"+i+"$"),ip:new RegExp("^(?:"+i+"\\.){3}"+i+"$"),tld:/^(AERO|ARPA|ASIA|A[CDEFGILMNOQRSTUWXZ]|BIZ|B[ABDEFGHIJMNORSTVWYZ]|CAT|COM|COOP|C[ACDFGHIKLMNORUVXYZ]|D[EJKMOZ]|EDU|E[CEGRSTU]|F[IJKMOR]|GOV|G[ABDEFGHILMNPQRSTUWY]|H[KMNRTU]|INFO|INT|I[DELMNOQRST]|JOBS|J[EMOP]|K[EGHIMNPRWYZ]|L[ABCIKRSTUVY]||MIL|MOBI|MUSEUM|M[ACDEGHKLMNOPQRSTUVWXYZ]|NAME|NET|N[ACEFGILOPRUZ]|ORG|OM|PRO|P[AEFGHKLMNRSTWY]|QA|R[EOSUW]|S[ABCDEGHIJKLMNORTUVYZ]|TEL|TRAVEL|T[CDFGHJKLMNOPRTVWZ]|U[AGKSYZ]|V[ACEGINU]|W[FS]|XN|Y[ET]|Z[AMW])$/i,search:{email:new RegExp("(^|\\s+)"+t,"ig"),hurl:/(^|\s+)(?:(?:https?|ftps?):\/\/)(?:\S+)/gi,url:/(^|\s+)(?:[\w-]+\.)+(\w{2,})(?::[0-9]+)?(?:\/\S*)?/g,phone_number:/(?:^|\s+)(?:(?:\+?\d{1,3}|\(\d{1,3}\))([-.\s])?)?\d{3,10}(?:([-.\s])\d{3,10})?/gi},file_upload:/uploaded.+\n.+https?:\/\/v2uploads\.zopim\.(com|io)\//i,escape:function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}};return e(n,"meshim_common_Regex"),n}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t={};return t.SECOND=1e3,t.MINUTE=60*t.SECOND,t.HOUR=60*t.MINUTE,t.DAY=24*t.HOUR,t.WEEK=7*t.DAY,e(t,"meshim_common_Time"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t=i(67),n=i(70),o=i(71),r=i(72),a={base:t,simple:n,classic:o,zendesk:r};return e(a,"meshim_widget_Themes"),a}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t=i(32),n=i(68),o={};return o._super=null,o.defaults={colors:{primary$string:"#000000",banner$string:"#000000",bubble$string:"#000000"}},o.overrides={avatars:{concierge$string:t.IMAGES_URL+"/avatar_simple_agent.png",agent$string:t.IMAGES_URL+"/avatar_simple_agent.png",visitor$string:t.IMAGES_URL+"/avatar_simple_visitor.png"},chat_button:{display_status$bool:!1,use_bubble$bool:!1},chat_window:{profile_card:{display_avatar$bool:!0},use_banner$bool:!0}},o.generate=function(t){var e="Verdana, Geneva, sans-serif",i=t.custom_fonts&&t.custom_fonts.font_family$string||"",o={fontFamily:e,customFontFamily:i?i+", "+e:e,fontSizeXS:"10px",fontSizeS:"11px",fontSize:"12px",fontSizeL:"14px",fontSizeXL:"16px",fontSizeXXL:"18px",marginXS:"3px",marginS:"5px",margin:"10px",marginL:"15px",marginXL:"20px",paddingS:"3px",padding:"6px",paddingL:"8px",paddingXL:"10px",borderWidth:"1px",borderStyle:"solid",borderColor:n.black,radiusS:"3px",radius:"5px",headColor:n.white,headBg:n.black,headLowContrastColor:n.grey,contentColor:n.black,contentHeaderColor:n.black,contentBg:n.white,contentBlockBg:n.grey,contentBlockRadius:"$$radius",placeholderColor:n.grey,inputMenuBg:n.white,errorColor:"#CC0000",dividerColor:n.grey,inputColor:n.black,inputBg:"$$inputMenuBg",inputBorderWidth:"$$borderWidth",inputBorderStyle:"$$borderStyle",inputBorderColor:"$$borderColor",inputPadding:"$$padding",inputRadius:"$$radius",inputShadow:"",inputFocusColor:"",inputFocusBg:"",inputFocusBorderColor:"",inputFocusShadow:"",inputPlaceholderColor:"$$placeholderColor",inputPlaceholderFontStyle:"italic",inputInvalidColor:"",inputInvalidBg:"",inputInvalidBorderColor:"$$errorColor",inputInvalidShadow:"",buttonColor:n.white,buttonBg:n.black,buttonBorderWidth:"$$borderWidth",buttonBorderStyle:"$$borderStyle",buttonBorderColor:"",buttonPadding:"$$padding",buttonPaddingHorizontal:"$$paddingS",buttonRadius:"$$radiusS",buttonShadow:"",buttonFontWeight:"bold",buttonHoverColor:"",buttonHoverBg:"",buttonHoverBorderColor:"",buttonHoverShadow:"",buttonActiveColor:"",buttonActiveBg:"",buttonActiveBorderColor:"",buttonActiveShadow:"",buttonSecColor:n.white,buttonSecBg:n.grey,buttonSecBorderColor:"",buttonSecShadow:"",buttonSecHoverColor:"",buttonSecHoverBg:"",buttonSecHoverBorderColor:"",buttonSecHoverShadow:"",buttonSecActiveColor:"",buttonSecActiveBg:"",buttonSecActiveBorderColor:"",buttonSecActiveShadow:"",buttonShortPadding:"$$paddingS",formSubmittedBg:"$$contentBlockBg",formSubmittedRadius:"$$radius",formSubmittedBorderWidth:0,formSubmittedBorderStyle:"",formSubmittedBorderColor:"",errorMessageColor:"$$errorColor",errorMessageFontWeight:"bold",errorMessageFontStyle:"italic",scrollableFrameInnerPaddingSmall:"$$margin",scrollableFrameInnerPaddingMedium:"$$marginXL",scrollableFrameInnerPaddingLarge:"$$marginXL",scrollableFrameTopHeight:"",scrollableFrameTopBackground:"",scrollableFrameTopBackgroundColor:"",scrollableFrameBottomHeight:"",scrollableFrameBottomBackground:"",scrollableFrameBottomBackgroundColor:"",toastColor:n.white,toastBg:n.black,toastPadding:"$$paddingXL",toastBorderWidth:"$$borderWidth",toastBorderStyle:"$$borderStyle",toastBorderColor:"$$borderColor",toastRadius:"$$radius",toastShadow:"",avatarBorderWidth:0,avatarBorderStyle:"$$borderStyle",avatarBorderColor:"$$borderColor",avatarRadius:"$$radiusS",avatarShadow:"",profileCardAvatarBorderWidth:"",profileCardAvatarBorderStyle:"",profileCardAvatarBorderColor:"",profileCardAvatarRadius:"",profileCardAvatarShadow:"",profileCardNameColor:n.black,profileCardTitleColor:n.grey,bottomHeight:"40px",bottomHeightBottomPadding:"50px",bottomBorderWidth:"",bottomBorderStyle:"$$borderStyle",bottomBorderColor:"$$borderColor",bottomNoteBorderWidth:0,bottomNoteBorderStyle:"$$borderStyle",bottomNoteBorderColor:"$$borderColor",brandingLinkColor:"$$actionBarColor",chatMotifHill:"",chatMotifBubble:"",facebook:"#3B5998",facebookActive:"#637BAD",twitter:"#00ACEE",twitterActive:"#7EB2D4",google:"#DD4B39",googleActive:"#E0736F",externalIconColor:"$$placeholderColor",authButtonBg:"",authButtonBorderColor:"",authButtonShadow:"",chatRatingsEmoticonColor:"#999",chatRatingsEmoticonActive:"#DDD",chatRatingsEmoticonHover:"#EEE",chatRatingsThumbLight:"#999",chatRatingsThumbDark:"#666",chatRatingsThumbActive:"#EEE",chatRatingsThumbBGHover:"#DDD",chatButtonMinWidth:"180px",chatButtonMaxWidth:"300px",chatButtonHeight:"30px",chatButtonColor:"$$headColor",chatButtonBg:"$$headBg",chatButtonBorderWidth:"$$borderWidth",chatButtonBorderStyle:"$$borderStyle",chatButtonBorderColor:"$$dividerColor",chatButtonRadius:"$$radius",chatButtonShadow:"",chatButtonPadding:"$$paddingXL",chatButtonPaddingFavicon:"$$chatButtonPadding",chatButtonFontWeight:"bold",chatButtonStatusFontWeight:"bold",faviconWidth:"36px",faviconColor:"$$chatButtonColor",faviconOnlineColor:"",faviconOfflineColor:"",faviconBg:"$$chatButtonBg",faviconDotsColor:"",chatBubbleTitle:"",chatBubbleText:"",chatBubbleClose:"",windowMiniWidth:"240px",windowMiniHeight:"200px",windowSmallWidth:"240px",windowSmallHeight:"335px",windowMediumWidth:"290px",windowMediumHeight:"400px",windowLargeWidth:"350px",windowLargeHeight:"450px",windowColor:"$$contentColor",windowBg:"$$contentBg",windowPadding:"",windowRadius:"$$radius",windowShadow:"",windowContentBg:"$$contentBg",windowContentBorderWidth:"$$borderWidth",windowContentBorderStyle:"$$borderStyle",windowContentBorderColor:"$$dividerColor",menuColor:"$$contentColor",menuBg:"$$inputMenuBg",menuBorderWidth:"$$borderWidth",menuBorderStyle:"$$borderStyle",menuBorderColor:"$$dividerColor",menuRadius:"$$radius",menuShadow:"$$windowShadow",menuHeaderColor:"$$placeholderColor",menuItemPadding:"3px 20px",menuItemHoverBg:n.grey,titleBarHeight:"24px",titleBarPaddingBefore:"60px",titleBarPaddingAfter:"60px",titleBarFontSize:"$$fontSizeS",titleBarColor:"$$headLowContrastColor",titleBarBg:"$$headBg",titleBarBorderWidth:"",titleBarBorderStyle:"$$borderStyle",titleBarBorderColor:"$$borderColor",titleBarFontWeight:"bold",titleBarTextAlign:"center",actionBarWidth:"100%",actionBarHeight:"24px",actionBarColor:n.grey,actionBarColorDiabled:"#AAA",actionBarBg:"$$windowContentBg",actionBarBorderWidth:"",actionBarBorderStyle:"$$borderStyle",actionBarBorderColor:"$$borderColor",actionBarPadding:"10px",actionBarHoverColor:"",chatPanelProfileCardContainerHeight:"50px",chatPanelProfileCardContainerBackground:"",chatPanelProfileCardContainerBorderWidth:"",chatPanelProfileCardContainerBorderStyle:"$$borderStyle",chatPanelProfileCardContainerBorderColor:"$$borderColor",chatPanelProfileCardAvatarBorderWidth:"",chatPanelProfileCardAvatarBorderStyle:"",chatPanelProfileCardAvatarBorderColor:"",chatPanelProfileCardAvatarRadius:"",chatPanelProfileCardAvatarShadow:"",chatLogMargin:"$$margin",chatLogVisitorNameColor:"$$contentHeaderColor",chatLogVisitorBubbleBg:"",chatLogVisitorBubbleBorderWidth:"$$borderWidth",chatLogVisitorBubbleBorderStyle:"$$borderStyle",chatLogVisitorBubbleBorderColor:"$$borderColor",chatLogAgentNameColor:"$$contentHeaderColor",chatLogAgentBubbleBg:"",chatLogAgentBubbleBorderWidth:"$$borderWidth",chatLogAgentBubbleBorderStyle:"$$borderStyle",chatLogAgentBubbleBorderColor:"$$borderColor",chatLogAvatarBorderWidth:"",chatLogAvatarBorderStyle:"",chatLogAvatarBorderColor:"",chatLogAvatarRadius:"",chatLogAvatarShadow:"",chatLogSystemMsgColor:"$$placeholderColor",chatLogSystemMsgBg:"",chatLogSystemMsgBorderWidth:0,chatLogSystemMsgBorderStyle:"$$borderStyle",chatLogSystemMsgBorderColor:"$$borderColor",chatLogSystemMsgPadding:"",chatLogFileProgressBg:"$$headBg",chatTextAreaBorderWidth:"",chatTextAreaBorderStyle:"$$borderStyle",chatTextAreaBorderColor:"$$borderColor",chatTextAreaPadding:"10px 10px 0",chatTextAreaInputFontSize:"",chatTextAreaInputMinHeight:"42px",chatTextAreaInputMaxHeight:"64px",chatTextAreaInputLineHeight:"",chatTextAreaInputColor:"",chatTextAreaInputBg:"",chatTextAreaInputBorderWidth:"",chatTextAreaInputBorderStyle:"",chatTextAreaInputBorderColor:"",chatTextAreaInputPadding:"",chatTextAreaInputRadius:"",chatTextAreaInputShadow:"",chatTextAreaInputFocusColor:"",chatTextAreaInputFocusBg:"",chatTextAreaInputFocusBorderColor:"",chatTextAreaInputFocusShadow:"",chatTextAreaSubmitMargin:"6px",chatTextAreaSubmitPadding:"5px 10px",chatTextAreaDropColor:"",chatTextAreaDropBg:"",chatTextAreaDropBorderWidth:"",chatTextAreaDropBorderStyle:"",chatTextAreaDropBorderColor:"",agentBubbleBg:"",visitorBubbleBg:"",badgeBg:"",badgeBorderWidth:"",badgeBorderStyle:"$$borderStyle",badgeBorderColor:"$$borderColor",badgeContentColor:"$$headColor",badgeContentBg:"",badgeContentBorderWidth:"$$borderWidth",badgeContentBorderStyle:"$$borderStyle",badgeContentBorderColor:"$$borderColor",badgeFormHeight:"36px",badgeFormBg:"",badgeFormBorderWidth:"$$borderWidth",badgeFormBorderStyle:"$$borderStyle",badgeFormBorderColor:"$$borderColor",badgeInputColor:"",badgeInputBorderWidth:"",badgeInputBorderStyle:"",badgeInputBorderColor:"",badgeInputPadding:"$$paddingXL",badgeInputRadius:"$$radius",badgeInputShadow:"",badgeInputFocusColor:"",badgeInputFocusBg:"",badgeInputFocusBorderColor:"",badgeInputFocusShadow:"",badgeInputPlaceholderColor:"",badgeIconColor:""},r={windowRadius:0},a={fontSizeXS:"12px",fontSizeS:"13px",fontSize:"14px",fontSizeL:"16px",fontSizeXL:"18px",fontSizeXXL:"20px",mobileMaxWidthS:"360px",mobileMaxWidth:"480px",mobileMaxWidthL:"640px",inputPadding:"$$paddingXL",buttonPadding:"$$paddingXL",menuItemPadding:"14px",titleBarHeight:"44px",actionBarWidth:"$$titleBarHeight",actionBarHeight:"$$titleBarHeight",menuRadius:0,brandingLinkColor:n.grey};return{standard:o,popout:r,mobile:a}},e(o,"meshim_widget_themes_Base"),o}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t=i(69),n={white:"#FFF",black:"#000",grey:"#808080"};n.clampLuminance=function(t,e,i){if(t=n.getChromaObj(t)){e<0&&(e=0),i>1&&(i=1);var o=t.luminance(),r=o<e?e:o>i?i:o;return o===r?t:n.getColorAtLuminance(t,r)}},n.lighten=function(e,i,o){return t.interpolate(e,n.white,i,o||"rgb")},n.darken=function(e,i,o){return t.interpolate(e,n.black,i,o||"rgb")};var o=100;return n.getColorAtLuminance=function(t,e){if(!(e<0||e>1)&&(t=n.getChromaObj(t))){var i=0;if(t.luminance()>=e)for(;;){if(i++,t.luminance()<=e+.05||i>=o)return t;t=n.darken(t,.05)}else for(;;){if(i++,t.luminance()>=e-.05||i>=o)return t;t=n.lighten(t,.05)}}},n.getColorAtContrast=function(e,i,r){if(!(r<1)&&(e=n.getChromaObj(e),i=n.getChromaObj(i),e&&i)){var a=0;if(t.contrast(e,i)>=r)for(;;){if(a++,t.contrast(e,i)<=r+.5||a>=o)return i;i=i.luminance()>=e.luminance()?n.darken(i,.05):n.lighten(i,.05)}else for(var s=t.contrast(e,n.white),_=t.contrast(e,n.black);;){if(a++,t.contrast(e,i)>=r-.5||a>=o)return i;if(i.luminance()>=e.luminance())if(s>=r-.5)i=n.lighten(i,.05);else{if(!(_>=r-.5))return s>_?n.getChromaObj(n.white):n.getChromaObj(n.black);i=n.darken(i,.05)}else if(_>=r-.5)i=n.darken(i,.05);else{if(!(s>=r-.5))return s>_?n.getChromaObj(n.white):n.getChromaObj(n.black);i=n.lighten(i,.05)}}}},n.getContrastColor=function(t,e,i,o,r,a,s){if(t=n.getChromaObj(t),e=n.getChromaObj(e),i=n.getChromaObj(i),t&&e&&i){var _=t.luminance();return"bright"===r?_<o?e:n.getColorAtContrast(t,i,s?s:2.5):"dark"===r?_>o?i:n.getColorAtContrast(t,e,a?a:4.5):void 0}},n.isHexColor=function(t){return!("string"!=typeof t||!/^#[0-9A-F]{3}([0-9A-F]{3})?$/i.test(t))},n.getChromaObj=function(e){return n.isHexColor(e)?t.hex(e):e instanceof t.constructor&&e},n.rgbaColor=function(t,e){if(t=n.getChromaObj(t))return"undefined"==typeof e?e=1:(e=parseFloat(e),(isNaN(e)||e>1)&&(e=1),e<0&&(e=0)),"rgba("+n.toRGB(t).join(",")+","+e+")"},n.toRGB=function(t){if(t=n.getChromaObj(t)){var e=t.rgb();return e[0]=parseInt(e[0],10),e[1]=parseInt(e[1],10),e[2]=parseInt(e[2],10),e}},e(n,"meshim_widget_utils_Color"),n}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t={},i={};(function(){var e,n,o,r,a,s,_,l,d,u,c,h,p,g,f,m,$,b,w,x,v,y,j,C,A,S,I,k,B,N,T,D,E,P,O,W,L,R,F,M,V,H,z,q;P="undefined"!=typeof t&&null!==t?t:this,u=null!=(F=P.chroma)?F:P.chroma={},"undefined"!=typeof i&&null!==i&&(i.exports=u),e=function(){function t(t,e,i,n){var o,r,a;o=this,null==t&&null==e&&null==i&&null==n&&(t=[255,0,255]),"array"===O(t)&&3===t.length&&(null==n&&(n=e),a=t,t=a[0],e=a[1],i=a[2]),"string"===O(t)?n="hex":null==n&&(n="rgb"),"rgb"===n?o._rgb=[t,e,i]:"hsl"===n?o._rgb=$(t,e,i):"hsv"===n?o._rgb=b(t,e,i):"hex"===n?o._rgb=f(t):"lab"===n?o._rgb=x(t,e,i):"lch"===n?o._rgb=j(t,e,i):"hsi"===n&&(o._rgb=m(t,e,i)),r=c(o._rgb)}return t.prototype.rgb=function(){return this._rgb},t.prototype.hex=function(){return I(this._rgb)},t.prototype.toString=function(){return this.hex()},t.prototype.hsl=function(){return B(this._rgb)},t.prototype.hsv=function(){return N(this._rgb)},t.prototype.lab=function(){return T(this._rgb)},t.prototype.lch=function(){return D(this._rgb)},t.prototype.hsi=function(){return k(this._rgb)},t.prototype.luminance=function(){return A(this._rgb)},t.prototype.name=function(){var t,e;t=this.hex();for(e in u.colors)if(u.colors.hasOwnProperty(e)&&t===u.colors[e])return e;return t},t.prototype.interpolate=function(e,i,n){var o,r,a,s,_,l,d,u,c,h,p,g,f;if(u=this,null==n&&(n="rgb"),"string"===O(i)&&(i=new t(i)),"hsl"===n||"hsv"===n||"lch"===n||"hsi"===n)return"hsl"===n?(g=u.hsl(),f=i.hsl()):"hsv"===n?(g=u.hsv(),f=i.hsv()):"hsi"===n?(g=u.hsi(),f=i.hsi()):"lch"===n&&(g=u.lch(),f=i.lch()),"h"===n.substr(0,1)?(a=g[0],h=g[1],l=g[2],s=f[0],p=f[1],d=f[2]):(l=g[0],h=g[1],a=g[2],d=f[0],p=f[1],s=f[2]),isNaN(a)||isNaN(s)?isNaN(a)?isNaN(s)?r=void 0:(r=s,1!==l&&0!==l||(c=p)):(r=a,1!==d&&0!==d||(c=h)):(o=s>a&&s-a>180?s-(a+360):s<a&&a-s>180?s+360-a:s-a,r=a+e*o),null==c&&(c=h+e*(p-h)),_=l+e*(d-l),"h"===n.substr(0,1)?new t(r,c,_,n):new t(_,c,r,n);if("rgb"===n)return g=u._rgb,f=i._rgb,new t(g[0]+e*(f[0]-g[0]),g[1]+e*(f[1]-g[1]),g[2]+e*(f[2]-g[2]),n);if("lab"===n)return g=u.lab(),f=i.lab(),new t(g[0]+e*(f[0]-g[0]),g[1]+e*(f[1]-g[1]),g[2]+e*(f[2]-g[2]),n);throw"color mode "+n+" is not supported"},t.prototype.darken=function(t){var e,i;return null==t&&(t=20),i=this,e=i.lch(),e[0]-=t,u.lch(e)},t.prototype.darker=function(t){return this.darken(t)},t.prototype.brighten=function(t){return null==t&&(t=20),this.darken(-t)},t.prototype.brighter=function(t){return this.brighten(t)},t.prototype.saturate=function(t){var e,i;return null==t&&(t=20),i=this,e=i.lch(),e[1]+=t,u.lch(e)},t.prototype.desaturate=function(t){return null==t&&(t=20),this.saturate(-t)},t}(),f=function(t){var e,i,n,o,r;if(t.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==t.length&&7!==t.length||(t=t.substr(1)),3===t.length&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),r=parseInt(t,16),n=r>>16,i=r>>8&255,e=255&r,[n,i,e];if(o=g(t))return o;throw"unknown color: "+t},g=function(t){var e,i,n,o;if(null!=u.colors&&u.colors[t])return f(u.colors[t]);if(n=t.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/))return n.slice(1,4);if(n=t.match(/rgb\(\s*(\-?\d+)%,\s*(\-?\d+)%\s*,\s*(\-?\d+)%\s*\)/)){o=n.slice(1,4);for(i in o)o.hasOwnProperty(i)&&(o[i]=Math.round(2.55*o[i]));return o}return(n=t.match(/hsl\(\s*(\-?\d+),\s*(\-?\d+)%\s*,\s*(\-?\d+)%\s*\)/))?(e=n.slice(1,4),e[1]*=.01,e[2]*=.01,$(e)):void 0},I=function(){var t,e,i,n,o,r;return r=W(arguments),i=r[0],e=r[1],t=r[2],o=i<<16|e<<8|t,n="000000"+o.toString(16),"#"+n.substr(n.length-6)},b=function(){var t,e,i,n,o,r,a,s,_,l,d,u,c,h,p,g,f,m;if(u=W(arguments),n=u[0],_=u[1],d=u[2],d*=255,0===_)s=i=t=d;else switch(360===n&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60,o=Math.floor(n),e=n-o,r=d*(1-_),a=d*(1-_*e),l=d*(1-_*(1-e)),o){case 0:c=[d,l,r],s=c[0],i=c[1],t=c[2];break;case 1:h=[a,d,r],s=h[0],i=h[1],t=h[2];break;case 2:p=[r,d,l],s=p[0],i=p[1],t=p[2];break;case 3:g=[r,a,d],s=g[0],i=g[1],t=g[2];break;case 4:f=[l,r,d],s=f[0],i=f[1],t=f[2];break;case 5:m=[d,r,a],s=m[0],i=m[1],t=m[2]}return s=Math.round(s),i=Math.round(i),t=Math.round(t),[s,i,t]},N=function(){var t,e,i,n,o,r,a,s,_,l;return l=W(arguments),a=l[0],i=l[1],t=l[2],r=Math.min(a,i,t),o=Math.max(a,i,t),e=o-r,_=o/255,0===o?(n=void 0,s=0):(s=e/o,a===o&&(n=(i-t)/e),i===o&&(n=2+(t-a)/e),t===o&&(n=4+(a-i)/e),n*=60,n<0&&(n+=360)),[n,s,_]},$=function(){var t,e,i,n,o,r,a,s,_,l,d,u,c,h;if(c=W(arguments),n=c[0],s=c[1],r=c[2],0===s)a=i=t=255*r;else{for(d=[0,0,0],e=[0,0,0],l=r<.5?r*(1+s):r+s-r*s,_=2*r-l,n/=360,d[0]=n+1/3,d[1]=n,d[2]=n-1/3,o=u=0;u<=2;o=++u)d[o]<0&&(d[o]+=1),d[o]>1&&(d[o]-=1),6*d[o]<1?e[o]=_+6*(l-_)*d[o]:2*d[o]<1?e[o]=l:3*d[o]<2?e[o]=_+(l-_)*(2/3-d[o])*6:e[o]=_;h=[Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])],a=h[0],i=h[1],t=h[2]}return[a,i,t]},B=function(t,e,i){var n,o,r,a,s,_;return void 0!==t&&3===t.length&&(_=t,t=_[0],e=_[1],i=_[2]),t/=255,e/=255,i/=255,a=Math.min(t,e,i),r=Math.max(t,e,i),o=(r+a)/2,r===a?(s=0,n=void 0):s=o<.5?(r-a)/(r+a):(r-a)/(2-r-a),t===r?n=(e-i)/(r-a):e===r?n=2+(i-t)/(r-a):i===r&&(n=4+(t-e)/(r-a)),n*=60,n<0&&(n+=360),[n,s,o]},o=18,s=.95047,_=1,l=1.08883,x=function(t,e,i){var n,o,r,a,d,u,c;return void 0!==t&&3===t.length&&(u=t,t=u[0],e=u[1],i=u[2]),void 0!==t&&3===t.length&&(c=t,t=c[0],e=c[1],i=c[2]),a=(t+16)/116,r=a+e/500,d=a-i/200,r=v(r)*s,a=v(a)*_,d=v(d)*l,o=R(3.2404542*r-1.5371385*a-.4985314*d),n=R(-.969266*r+1.8760108*a+.041556*d),i=R(.0556434*r-.2040259*a+1.0572252*d),[C(o,0,255),C(n,0,255),C(i,0,255)]},T=function(){var t,e,i,n,o,r,a;return a=W(arguments),i=a[0],e=a[1],t=a[2],i=E(i),e=E(e),t=E(t),n=L((.4124564*i+.3575761*e+.1804375*t)/s),o=L((.2126729*i+.7151522*e+.072175*t)/_),r=L((.0193339*i+.119192*e+.9503041*t)/l),[116*o-16,500*(n-o),200*(o-r)]},y=function(){var t,e,i,n;return n=W(arguments),i=n[0],t=n[1],e=n[2],e=e*Math.PI/180,[i,Math.cos(e)*t,Math.sin(e)*t]},j=function(t,e,i){var n,o,r,a,s,_,l;return _=y(t,e,i),n=_[0],o=_[1],r=_[2],l=x(n,o,r),s=l[0],a=l[1],r=l[2],[C(s,0,255),C(a,0,255),C(r,0,255)]},v=function(t){return t>.206893034?t*t*t:(t-4/29)/7.787037},L=function(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29},R=function(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))},E=function(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},w=function(){var t,e,i,n,o,r;return r=W(arguments),o=r[0],t=r[1],e=r[2],i=Math.sqrt(t*t+e*e),n=Math.atan2(e,t)/Math.PI*180,[o,i,n]},D=function(){var t,e,i,n,o,r,a;return r=W(arguments),o=r[0],i=r[1],e=r[2],a=T(o,i,e),n=a[0],t=a[1],e=a[2],w(n,t,e)},k=function(){var t,e,i,n,o,r,a,s,_;return _=W(arguments),a=_[0],i=_[1],e=_[2],t=2*Math.PI,a/=255,i/=255,e/=255,r=Math.min(a,i,e),o=(a+i+e)/3,s=1-r/o,0===s?n=0:(n=(a-i+(a-e))/2,n/=Math.sqrt((a-i)*(a-i)+(a-e)*(i-e)),n=Math.acos(n),e>i&&(n=t-n),n/=t),[360*n,s,o]},m=function(t,e,i){var n,o,s,_;return _=W(arguments),t=_[0],e=_[1],i=_[2],t/=360,t<1/3?(n=(1-e)/3,s=(1+e*p(a*t)/p(r-a*t))/3,o=1-(n+s)):t<2/3?(t-=1/3,s=(1-e)/3,o=(1+e*p(a*t)/p(r-a*t))/3,n=1-(s+o)):(t-=2/3,o=(1-e)/3,n=(1+e*p(a*t)/p(r-a*t))/3,s=1-(o+n)),s=C(i*s*3),o=C(i*o*3),n=C(i*n*3),[255*s,255*o,255*n]},c=function(t){var e;for(e in t)t.hasOwnProperty(e)&&(t[e]<0&&(t[e]=0),t[e]>255&&(t[e]=255));return t},A=function(t,e,i){var n;return n=W(arguments),t=n[0],e=n[1],i=n[2],t=S(t),e=S(e),i=S(i),.2126*t+.7152*e+.0722*i},S=function(t){return t/=255,t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},u.Color=e,u.color=function(t,i,n,o){return new e(t,i,n,o)},u.hsl=function(t,i,n){return new e(t,i,n,"hsl")},u.hsv=function(t,i,n){return new e(t,i,n,"hsv")},u.rgb=function(t,i,n){return new e(t,i,n,"rgb")},u.hex=function(t){return new e(t)},u.css=function(t){return new e(t)},u.lab=function(t,i,n){return new e(t,i,n,"lab")},u.lch=function(t,i,n){return new e(t,i,n,"lch")},u.hsi=function(t,i,n){return new e(t,i,n,"hsi")},u.interpolate=function(t,i,n,o){return null==t||null==i?"#000":("string"===O(t)&&(t=new e(t)),"string"===O(i)&&(i=new e(i)),t.interpolate(n,i,o))},u.contrast=function(t,i){var n,o;return"string"===O(t)&&(t=new e(t)),"string"===O(i)&&(i=new e(i)),n=t.luminance(),o=i.luminance(),n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)},P="undefined"!=typeof t&&null!==t?t:this,u=null!=(M=P.chroma)?M:P.chroma={},e=u.Color,n=function(){function t(t){var e,i,n;null==t&&(t={}),e=this,e.range(t.colors,t.positions),e._mode=null!=(i=t.mode)?i:"rgb",e._nacol=u.hex(null!=(n=t.nacol)?n:u.hex("#ccc")),e._spread=0,e._fixed=!1,e.domain([0,1])}return t.prototype.range=function(t,i){var n,o,r,a,s,_,l,d;for(r=this,null==t&&(t=["#ddd","#222"]),null!=t&&"string"===O(t)&&null!=(null!=(_=u.brewer)?_[t]:void 0)&&(t=u.brewer[t].slice(0)),n=a=0,l=t.length-1;0<=l?a<=l:a>=l;n=0<=l?++a:--a)o=t[n],"string"===O(o)&&(t[n]=new e(o));if(r._colors=t,null!=i)r._pos=i;else for(r._pos=[],n=s=0,d=t.length-1;0<=d?s<=d:s>=d;n=0<=d?++s:--s)r._pos.push(n/(t.length-1));return r},t.prototype.domain=function(t){var e;return null==t&&(t=[]),e=this,e._domain=t,e._min=t[0],e._max=t[t.length-1],2===t.length?e._numClasses=0:e._numClasses=t.length-1,e},t.prototype.get=function(t){var e,i,n,o;return o=this,isNaN(t)?o._nacol:(o._domain.length>2?(e=o.getClass(t),i=e/(o._numClasses-1)):(i=n=(t-o._min)/(o._max-o._min),i=Math.min(1,Math.max(0,i))),o.fColor(i))},t.prototype.fColor=function(t){var e,i,n,o,r,a,s;for(o=this,i=o._colors,n=a=0,s=o._pos.length-1;0<=s?a<=s:a>=s;n=0<=s?++a:--a){if(r=o._pos[n],t<=r){e=i[n];break}if(t>=r&&n===o._pos.length-1){e=i[n];break}if(t>r&&t<o._pos[n+1]){t=(t-r)/(o._pos[n+1]-r),e=u.interpolate(i[n],i[n+1],t,o._mode);break}}return e},t.prototype.classifyValue=function(t){var e,i,n,o,r,a,s;return o=this,e=o._domain,s=t,e.length>2&&(a=e.length-1,i=o.getClass(t),r=e[0]+(e[1]-e[0])*(0+.5*o._spread),n=e[a-1]+(e[a]-e[a-1])*(1-.5*o._spread),s=o._min+(e[i]+.5*(e[i+1]-e[i])-r)/(n-r)*(o._max-o._min)),s},t.prototype.getClass=function(t){var e,i,n,o;if(o=this,e=o._domain,null!=e){for(n=e.length-1,i=0;i<n&&t>=e[i];)i++;return i-1}return 0},t.prototype.validValue=function(t){return!isNaN(t)},t}(),u.ColorScale=n,u.scale=function(t,e){var i,n,o;return i=new u.ColorScale,i.range(t,e),o=!1,n=function(t){var e;return e=i.get(t),o&&e[o]?e[o]():e},n.domain=function(t,e,o,r){var a;return null==o&&(o="e"),arguments.length?(null!=e&&(a=u.analyze(t,r),t=0===e?[a.min,a.max]:u.limits(a,o,e)),i.domain(t),n):i._domain},n.mode=function(t){return arguments.length?(i._mode=t,n):i._mode},n.range=function(t,e){return i.range(t,e),n},n.out=function(t){return o=t,n},n.getColor=function(t){return n(t)},n.spread=function(t){return arguments.length?(i._spread=t,n):i._spread},n},null==(V=u.scales)&&(u.scales={}),u.scales.cool=function(){return u.scale([u.hsl(180,1,.9),u.hsl(250,.7,.4)])},u.scales.hot=function(){return u.scale(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},u.analyze=function(t,e,i){var n,o,r,a,s,_,l;if(r={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0},null==i&&(i=function(){return!0}),n=function(t){null==t||isNaN(t)||(r.values.push(t),r.sum+=t,t<r.min&&(r.min=t),t>r.max&&(r.max=t),r.count+=1)},s=function(t,o){if(i(t,o))return n(null!=e&&"function"===O(e)?e(t):null!=e&&"string"===O(e)||"number"===O(e)?t[e]:t)},"array"===O(t))for(_=0,l=t.length;_<l;_++)a=t[_],s(a);else for(o in t)t.hasOwnProperty(o)&&(a=t[o],s(a,o));return r.domain=[r.min,r.max],r.limits=function(t,e){return u.limits(r,t,e)},r},u.limits=function(t,e,i){var n,o,r,a,s,_,l,d,c,h,p,g,f,m,$,b,w,x,v,y,j,C,A,S,I,k,B,N,T,D,E,P,O,W,L,R,F,M,V,H,z,q,U,G,Y,X,K,Z,Q,J,tt,et,it,nt,ot,rt;if(null==e&&(e="equal"),null==i&&(i=7),null==t.values&&(t=u.analyze(t)),f=t.min,p=t.max,A=t.sum,k=t.values.sort(function(t,e){return t-e}),h=[],"c"===e.substr(0,1)&&(h.push(f),h.push(p)),"e"===e.substr(0,1)){
for(h.push(f),l=B=1,Y=i-1;1<=Y?B<=Y:B>=Y;l=1<=Y?++B:--B)h.push(f+l/i*(p-f));h.push(p)}else if("l"===e.substr(0,1)){if(f<=0)throw"Logarithmic scales are only possible for values > 0";for(m=Math.LOG10E*Math.log(f),g=Math.LOG10E*Math.log(p),h.push(f),l=N=1,X=i-1;1<=X?N<=X:N>=X;l=1<=X?++N:--N)h.push(Math.pow(10,m+l/i*(g-m)));h.push(p)}else if("q"===e.substr(0,1)){for(h.push(f),l=T=1,K=i-1;1<=K?T<=K:T>=K;l=1<=K?++T:--T)v=k.length*l/i,y=Math.floor(v),y===v?h.push(k[y]):(j=v-y,h.push(k[y]*j+k[y+1]*(1-j)));h.push(p)}else if("k"===e.substr(0,1)){for(b=k.length,n=new Array(b),s=new Array(i),C=!0,w=0,r=null,r=[],r.push(f),l=D=1,Z=i-1;1<=Z?D<=Z:D>=Z;l=1<=Z?++D:--D)r.push(f+l/i*(p-f));for(r.push(p);C;){for(d=E=0,Q=i-1;0<=Q?E<=Q:E>=Q;d=0<=Q?++E:--E)s[d]=0;for(l=P=0,J=b-1;0<=J?P<=J:P>=J;l=0<=J?++P:--P){for(I=k[l],$=Number.MAX_VALUE,d=O=0,tt=i-1;0<=tt?O<=tt:O>=tt;d=0<=tt?++O:--O)_=Math.abs(r[d]-I),_<$&&($=_,o=d);s[o]++,n[l]=o}for(x=new Array(i),d=W=0,F=i-1;0<=F?W<=F:W>=F;d=0<=F?++W:--W)x[d]=null;for(l=L=0,M=b-1;0<=M?L<=M:L>=M;l=0<=M?++L:--L)a=n[l],null===x[a]?x[a]=k[l]:x[a]+=k[l];for(d=R=0,V=i-1;0<=V?R<=V:R>=V;d=0<=V?++R:--R)x[d]*=1/s[d];for(C=!1,d=et=0,H=i-1;0<=H?et<=H:et>=H;d=0<=H?++et:--et)if(x[d]!==r[l]){C=!0;break}r=x,w++,w>200&&(C=!1)}for(c={},d=it=0,z=i-1;0<=z?it<=z:it>=z;d=0<=z?++it:--it)c[d]=[];for(l=nt=0,q=b-1;0<=q?nt<=q:nt>=q;l=0<=q?++nt:--nt)a=n[l],c[a].push(k[l]);for(S=[],d=ot=0,U=i-1;0<=U?ot<=U:ot>=U;d=0<=U?++ot:--ot)S.push(c[d][0]),S.push(c[d][c[d].length-1]);for(S=S.sort(function(t,e){return t-e}),h.push(S[0]),l=rt=1,G=S.length-1;rt<=G;l=rt+=2)isNaN(S[l])||h.push(S[l])}return h},P="undefined"!=typeof t&&null!==t?t:this,O=function(){var t,e,i,n,o;for(t={},o="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),i=0,n=o.length;i<n;i++)e=o[i],t["[object "+e+"]"]=e.toLowerCase();return function(e){var i;return i=Object.prototype.toString.call(e),t[i]||"object"}}(),null==(H=P.type)&&(P.type=O),Array.max=function(t){return Math.max.apply(Math,t)},Array.min=function(t){return Math.min.apply(Math,t)},C=function(t,e,i){return null==e&&(e=0),null==i&&(i=1),t<e&&(t=e),t>i&&(t=i),t},W=function(t){return 3===t.length?t:t[0]},a=2*Math.PI,r=Math.PI/3,p=Math.cos,P="undefined"!=typeof t&&null!==t?t:this,u=null!=(z=P.chroma)?z:P.chroma={},u.brewer=d={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},P="undefined"!=typeof t&&null!==t?t:this,u=null!=(q=P.chroma)?q:P.chroma={},u.colors=h={indigo:"#4b0082",gold:"#ffd700",hotpink:"#ff69b4",firebrick:"#b22222",indianred:"#cd5c5c",yellow:"#ffff00",mistyrose:"#ffe4e1",darkolivegreen:"#556b2f",olive:"#808000",darkseagreen:"#8fbc8f",pink:"#ffc0cb",tomato:"#ff6347",lightcoral:"#f08080",orangered:"#ff4500",navajowhite:"#ffdead",lime:"#00ff00",palegreen:"#98fb98",darkslategrey:"#2f4f4f",greenyellow:"#adff2f",burlywood:"#deb887",seashell:"#fff5ee",mediumspringgreen:"#00fa9a",fuchsia:"#ff00ff",papayawhip:"#ffefd5",blanchedalmond:"#ffebcd",chartreuse:"#7fff00",dimgray:"#696969",black:"#000000",peachpuff:"#ffdab9",springgreen:"#00ff7f",aquamarine:"#7fffd4",white:"#ffffff",orange:"#ffa500",lightsalmon:"#ffa07a",darkslategray:"#2f4f4f",brown:"#a52a2a",ivory:"#fffff0",dodgerblue:"#1e90ff",peru:"#cd853f",lawngreen:"#7cfc00",chocolate:"#d2691e",crimson:"#dc143c",forestgreen:"#228b22",darkgrey:"#a9a9a9",lightseagreen:"#20b2aa",cyan:"#00ffff",mintcream:"#f5fffa",silver:"#c0c0c0",antiquewhite:"#faebd7",mediumorchid:"#ba55d3",skyblue:"#87ceeb",gray:"#808080",darkturquoise:"#00ced1",goldenrod:"#daa520",darkgreen:"#006400",floralwhite:"#fffaf0",darkviolet:"#9400d3",darkgray:"#a9a9a9",moccasin:"#ffe4b5",saddlebrown:"#8b4513",grey:"#808080",darkslateblue:"#483d8b",lightskyblue:"#87cefa",lightpink:"#ffb6c1",mediumvioletred:"#c71585",slategrey:"#708090",red:"#ff0000",deeppink:"#ff1493",limegreen:"#32cd32",darkmagenta:"#8b008b",palegoldenrod:"#eee8aa",plum:"#dda0dd",turquoise:"#40e0d0",lightgrey:"#d3d3d3",lightgoldenrodyellow:"#fafad2",darkgoldenrod:"#b8860b",lavender:"#e6e6fa",maroon:"#800000",yellowgreen:"#9acd32",sandybrown:"#f4a460",thistle:"#d8bfd8",violet:"#ee82ee",navy:"#000080",magenta:"#ff00ff",dimgrey:"#696969",tan:"#d2b48c",rosybrown:"#bc8f8f",olivedrab:"#6b8e23",blue:"#0000ff",lightblue:"#add8e6",ghostwhite:"#f8f8ff",honeydew:"#f0fff0",cornflowerblue:"#6495ed",slateblue:"#6a5acd",linen:"#faf0e6",darkblue:"#00008b",powderblue:"#b0e0e6",seagreen:"#2e8b57",darkkhaki:"#bdb76b",snow:"#fffafa",sienna:"#a0522d",mediumblue:"#0000cd",royalblue:"#4169e1",lightcyan:"#e0ffff",green:"#008000",mediumpurple:"#9370db",midnightblue:"#191970",cornsilk:"#fff8dc",paleturquoise:"#afeeee",bisque:"#ffe4c4",slategray:"#708090",darkcyan:"#008b8b",khaki:"#f0e68c",wheat:"#f5deb3",teal:"#008080",darkorchid:"#9932cc",deepskyblue:"#00bfff",salmon:"#fa8072",darkred:"#8b0000",steelblue:"#4682b4",palevioletred:"#db7093",lightslategray:"#778899",aliceblue:"#f0f8ff",lightslategrey:"#778899",lightgreen:"#90ee90",orchid:"#da70d6",gainsboro:"#dcdcdc",mediumseagreen:"#3cb371",lightgray:"#d3d3d3",mediumturquoise:"#48d1cc",lemonchiffon:"#fffacd",cadetblue:"#5f9ea0",lightyellow:"#ffffe0",lavenderblush:"#fff0f5",coral:"#ff7f50",purple:"#800080",aqua:"#00ffff",whitesmoke:"#f5f5f5",mediumslateblue:"#7b68ee",darkorange:"#ff8c00",mediumaquamarine:"#66cdaa",darksalmon:"#e9967a",beige:"#f5f5dc",blueviolet:"#8a2be2",azure:"#f0ffff",lightsteelblue:"#b0c4de",oldlace:"#fdf5e6"}}).call(this);var n=t.chroma;return n.Color.prototype.lighten=function(t){return this.brighten(t)},e(n,"meshim_common_Chroma"),n}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t=i(69),n=i(68),o=i(67),r={};return r._super=o,r.defaults={colors:{primary$string:"#555555",banner$string:"#EEEEEE",bubble$string:"#E59341"}},r.generate=function(e){function i(e){var i={},o=e.luminance(),r=e.darken(10),a=e.lighten(10),s=t.interpolate(e,n.black,.5,"rgb"),_=t.interpolate(e,n.black,.7,"rgb");return i.color=new t.ColorScale({colors:[n.white,n.white,s.darken(10),s,s],positions:[0,g-.001,g+.001,f,1],mode:"rgb"}).get(o).hex(),i.bg=new t.ColorScale({colors:[e,e,e.darken(10)],positions:[0,f,1],mode:"rgb"}).get(o).hex(),i.iconColor=new t.ColorScale({colors:[e,e,_,_.lighten(10)],positions:[0,g-.001,g+.001,1],mode:"rgb"}).get(o).hex(),i.borderColor=new t.ColorScale({colors:[r,r,e.darken(20)],positions:[0,f,1],mode:"rgb"}).get(o).hex(),i.hoverBg=new t.ColorScale({colors:[a,e,e.darken(5)],positions:[0,f,1],mode:"rgb"}).get(o).hex(),i}function o(e,i){var o={},r=e.luminance(),a=t.interpolate(e,n.black,i?.7:.5,"rgb"),s=i?t.color(n.white):t.interpolate(e,n.white,.5,"rgb");return o.color=new t.ColorScale({colors:[s,s.lighten(50),a,a.lighten(10)],positions:[0,w-.001,w+.001,1],mode:"rgb"}).get(r).hex(),o.bg=e.hex(),o}var r="#444",a="#666",s="#999",_="#AAA",l="#DDD",d="#EEE",u="#FBFBFB",c=t.hex(e.colors.primary$string),h=c.luminance(),p=t.hex(e.colors.banner$string||e.colors.primary$string),g=120/255,f=200/255,m=i(c),$=i(c.lighten(15)),b=i(p),w=120/255,x=220/255,v=o(c),y=o(p,!0),j={borderColor:l,headColor:v.color,headBg:c,contentColor:r,contentBlockBg:d,placeholderColor:_,inputColor:a,inputBorderColor:l,inputFocusBorderColor:n.clampLuminance(c,.2,.4).hex(),buttonColor:m.color,buttonBg:m.bg,buttonBorderColor:m.borderColor,buttonHoverBg:m.hoverBg,buttonShadow:"0px 1px 2px rgba(0,0,0,0.1), inset 0px 1px 0px rgba(255,255,255,0.25)",buttonSecColor:$.color,buttonSecBg:$.bg,buttonSecBorderColor:$.borderColor,buttonSecHoverBg:$.hoverBg,scrollableFrameTopHeight:"5px",scrollableFrameTopBackground:"gradient top rgba(0,0,0,0.05) rgba(0,0,0,0)",scrollableFrameTopBackgroundColor:"transparent",scrollableFrameBottomHeight:"5px",scrollableFrameBottomBackground:"gradient top rgba(0,0,0,0) rgba(0,0,0,0.05)",scrollableFrameBottomBackgroundColor:"transparent",toastColor:a,toastBg:"rgba(255, 255, 255, 0.9)",toastBorderColor:l,toastShadow:"$$windowShadow",avatarBorderColor:l,profileCardAvatarBorderWidth:0,profileCardAvatarShadow:"0px 1px 2px rgba(0,0,0,0.2)",profileCardNameColor:n.clampLuminance(c,0,.2).hex(),profileCardTitleColor:_,bottomBorderWidth:"1px 0 0",bottomBorderColor:d,chatMotifHill:d,chatMotifBubble:"#BBB",chatButtonColor:m.color,chatButtonBg:c.hex(),chatButtonBorderWidth:h>f?"":0,chatButtonBorderColor:h>f?l:"",faviconBg:new t.ColorScale({colors:[c.lighten(15),c.lighten(5),c.darken(5),c.darken(5)],positions:[0,.05,.0501,1],mode:"rgb"}).get(h).hex(),windowColor:a,windowPadding:"3px",windowShadow:"0px 0px 3px 2px rgba(0,0,0,0.1)",windowContentBorderWidth:"0 1px",windowContentBorderColor:l,menuBorderColor:l,menuItemHoverBg:d,titleBarColor:v.color,titleBarBg:v.bg,titleBarBorderWidth:h>x?"1px":0,titleBarBorderColor:h>x?l:"",titleBarIconsColor:"",actionBarColor:s,actionBarBorderWidth:"0 1px 1px 1px",actionBarBorderColor:l,actionBarHoverColor:a,chatPanelProfileCardContainerBorderWidth:"0 0 1px",chatPanelProfileCardContainerBorderColor:d,chatLogVisitorBubbleBg:u,chatLogVisitorBubbleBorderColor:d,chatLogAgentBubbleBg:t.interpolate(n.clampLuminance(c,.4,.8),n.white,.8,"rgb").hex(),chatLogAgentBubbleBorderColor:t.interpolate(n.clampLuminance(c,.4,.8),n.white,.4,"rgb").hex(),chatLogAvatarBorderWidth:"$$borderWidth",chatLogFileProgressBg:v.bg,chatTextAreaBorderWidth:"1px 0 0",chatTextAreaBorderColor:d,chatTextAreaInputShadow:"inset 0px 1px 3px rgba(0,0,0,0.1)",chatTextAreaInputFocusShadow:"inset 0px 1px 3px "+t.interpolate(n.clampLuminance(c,.2,.4),n.white,.5,"rgb").hex(),chatTextAreaDropColor:r,chatTextAreaDropBg:d,chatTextAreaDropBorderWidth:"1px",chatTextAreaDropBorderStyle:"dashed",chatTextAreaDropBorderColor:r,badgeBg:y.bg,badgeBorderWidth:0,badgeContentColor:y.color,badgeContentBg:y.bg,badgeContentBorderWidth:0,badgeFormBg:n.white,badgeFormBorderWidth:"1px 0",badgeFormBorderColor:l,badgeIconColor:b.iconColor},C={authButtonBg:"$$inputBg",authButtonBorderColor:"$$inputBorderColor",authButtonShadow:"none",bottomBorderWidth:0,menuBg:d,menuHeaderColor:s,menuItemHoverBg:l,menuRadius:"0 0 10px 10px",menuShadow:"none",actionBarColor:v.color,actionBarBg:c.darken(10).hex(),actionBarBorderWidth:0,actionBarHoverColor:v.color,chatPanelProfileCardContainerBorderColor:l,chatTextAreaBorderColor:l,chatTextAreaInputShadow:"none",chatTextAreaInputBorderWidth:0,chatTextAreaInputRadius:0,chatTextAreaInputFocusShadow:"none",brandingLinkColor:s};return{standard:j,mobile:C}},e(r,"meshim_widget_themes_Simple"),r}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t=i(69),n=i(68),o=i(70),r={};return r._super=o,r.defaults={colors:{bubble$string:"#e59341"}},r.overrides={chat_button:{display_status$bool:!0,use_bubble$bool:!0},chat_window:{profile_card:{display_avatar$bool:!1},use_banner$bool:!1},message_type$string:"basic"},r.generate=function(e){var i=n.clampLuminance(t.hex(e.colors.primary$string),0,.8),o=n.clampLuminance(t.hex(e.colors.bubble$string),0,.8),r=n.clampLuminance(n.darken(i,.2,"rgb"),0,.8),a=n.clampLuminance(n.lighten(i,.2,"rgb"),0,.8),s="gradient top "+n.rgbaColor(i,1)+" "+n.rgbaColor(r,1),_=n.clampLuminance(n.darken(o,.2,"rgb"),0,.8),l=n.clampLuminance(n.lighten(o,.2,"rgb"),0,.8),d=n.getColorAtContrast(i,n.white,5),u=n.getContrastColor(o,n.white,n.black,.7,"bright",3,5);i=i.hex(),o=o.hex(),r=r.hex(),a=a.hex(),_=_.hex(),l=l.hex(),d=d.hex(),u=u.hex();var c="#DDD",h="#666",p="#f7f7f7",g={contentBg:p,actionBarBg:p,actionBarBorderColor:c,titleBarBg:s,titleBarBorderWidth:0,inputRadius:0,inputBorderColor:c,inputFocusBorderColor:l,inputFocusShadow:"none",chatTextAreaInputFocusShadow:"none",windowContentBorderColor:c,menuRadius:0,menuBorderColor:c,buttonColor:u,buttonBg:o,buttonHoverBg:o,buttonBorderColor:_,buttonSecBg:l,buttonSecHoverBg:l,buttonSecBorderColor:o,formSubmittedBg:n.white,formSubmittedRadius:"0px",formSubmittedBorderWidth:"1px",chatLogVisitorNameColor:h,chatLogAgentNameColor:_,chatLogSystemMsgBg:n.white,chatLogSystemMsgBorderWidth:"1px",chatLogSystemMsgPadding:"5px 0",chatLogSystemMsgBorderColor:c,chatLogFileProgressBg:s,chatButtonMinWidth:"190px",chatButtonBg:s,chatButtonShadow:"inset 0 1px 0px 0 rgba(0,0,0,0.4), inset 0 2px 0px 0 rgba(255,255,255,0.7)",chatButtonFontWeight:"normal",chatButtonStatusFontWeight:"bold",chatButtonPaddingFavicon:0,chatButtonBorderWidth:0,faviconBg:"transparent",faviconColor:o.toUpperCase()==i.toUpperCase()?"$$chatButtonColor":o,faviconDotsColor:i,chatBubbleTitleColor:u,chatBubbleTextColor:u,chatBubbleCloseColor:u,chatBubbleCloseShadow:"0px -1px 0px #999",chatBubbleCloseHoverBg:"rgba(0, 0, 0, 0.1)"},f={actionBarColor:d,actionBarBg:"transparent",actionBarBorderColor:"transparent"};return{standard:g,mobile:f}},e(r,"meshim_widget_themes_Classic"),r}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t=i(70),n={};return n._super=t,n.defaults={colors:{primary$string:"#85ae19"},branding:{type$string:"icon_font_zendesk"}},n.overrides={chat_window:{use_banner$bool:!1,title_bar:{hide_popout$bool:!0}},branding:{type$string:"icon_font_zendesk"}},n.generate=function(){var t={fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif',fontSizeXS:"11px",fontSizeS:"12px",fontSize:"13px",buttonPadding:"5px"},e={};return{standard:t,mobile:e}},e(n,"meshim_widget_themes_Zendesk"),n}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t={popout:{name$string:"simple"},mobile:{name$string:"simple",chat_button:{display_status$bool:!1}},mobile_overlay:{chat_window:{use_banner$bool:!1,title_bar:{hide_popout$bool:!0}}}};return e(t,"meshim_widget_themes_Overrides"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a,s){t.exports=function(){function t(i,a,s,w,x){function v(){et.currentChild&&et.currentChild.hasClass("stack_child_no_menu")&&F.update("")}function y(){if(!q&&et){var t=et.currentChild;if(t){switch(Q.wrapper.setPosition("absolute"),B){case"bl":case"bm":case"br":Q.wrapper.setTop("").setBottom(0);break;case"tl":case"tm":case"tr":Q.wrapper.setTop(0).setBottom("")}switch(B){case"bl":case"tl":Q.wrapper.setLeft(0).setRight("");break;case"br":case"tr":Q.wrapper.setLeft("").setRight(0)}var i,n;t.hasClass("stack_child_mini")?(i=e.getVariable("windowMiniWidth"),n=e.getVariable("windowMiniHeight")):(i=e.getVariable("window"+Z.slice(0,1).toUpperCase()+Z.slice(1)+"Width"),n=e.getVariable("window"+Z.slice(0,1).toUpperCase()+Z.slice(1)+"Height")),i=parseInt(i,10),n=parseInt(n,10),Q.setWidth(i+"px"),Q.setHeight(n+"px")}}}function j(){if(!q){if(Y)return void Q.setTop("").setRight("").setBottom("").setLeft("");switch(B){case"br":Q.setTop("").setLeft("").setMarginLeft("").setRight(X).setBottom(K);break;case"bm":Q.setTop("").setRight("").setBottom(K).setLeft("50%").setMarginLeft(-Math.round(Q.__width/2)+"px");break;case"bl":Q.setTop("").setRight("").setMarginLeft("").setBottom(K).setLeft(X);break;case"tr":Q.setBottom("").setLeft("").setMarginLeft("").setTop(K).setRight(X);break;case"tm":Q.setRight("").setBottom("").setTop(K).setLeft("50%").setMarginLeft(-Math.round(Q.__width/2)+"px");break;case"tl":Q.setRight("").setBottom("").setMarginLeft("").setTop(K).setLeft(X)}}}function C(){et.currentChild&&(et.currentChild.hasClass("force_dock")?j():et.currentChild.getDraggableNode&&Q.setDraggableNode(et.currentChild.getDraggableNode()))}function A(){for(var t=e.getVariable("windowShadow"),i=0,n=m.cssom_prefixes.length;i<n;i++)Q.setStyle(m.cssom_prefixes[i]+(m.cssom_prefixes[i]?"B":"b")+"oxShadow",t||"none")}function S(){var t,i=e.getVariable("windowRadius"),n=["TopLeft","TopRight","BottomRight","BottomLeft"];switch(B){case"br":case"bm":case"bl":t=[!0,!0,!1,!1];break;case"tr":t=[!1,!1,!0,!0];break;default:t=[]}for(var o=0,r=m.cssom_prefixes.length;o<r;o++)for(var a=0,s=n.length;a<s;a++)Q.setStyle(m.cssom_prefixes[o]+(m.cssom_prefixes[o]?"B":"b")+"order"+n[a]+"Radius",t[a]&&i?i:"none")}function I(t){for(var e=t.target.jx_wrapper;e&&e.parentNode&&e.parentNode!=Q;){if(e==tt)return;e=e.parentNode}F.update("")}function k(){(Q.wrapper||Q.defaultPlacement)[r.rtl()?"addClass":"removeClass"]("rtl"),Q.wrapper||(Q.dom.dir=r.rtl()?"rtl":"ltr",Q.dom.lang=r.language)}if(!(this instanceof t))return new t(i,a,s,w,x);t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var B,N=c.root.$("livechat"),T=N.$("ui"),D=T.$("chat_window"),E=T.$("theme_loaded$bool"),P=N.$("settings").$("theme").$("chat_window").$("h_offset$int"),O=N.$("settings").$("theme").$("chat_window").$("v_offset$int"),W=D.$("display$bool"),L=D.$("force_resize$bool"),R=D.$("main_stack_name$string"),F=D.$("menu_stack_name$string"),M=T.$("popout$bool"),V=T.$("mobile$bool"),H=T.$("tablet$bool"),z=T.$("mockup$bool"),q=M.getValue(),U=V.getValue(),G=H.getValue(),Y=z.getValue(),X=10,K=0,Z="",Q=this;if(x||(x={}),q)d.call(this,i,a,s,w,x),$.popout(this),this.defaultPlacement=new l(this,null,null,null,{className:"meshim_widget_Widget"}),this.on=d.prototype.on,this.fire=d.prototype.fire,U&&this.defaultPlacement.setPosition("relative");else{_.call(this,i,a,s,w,x),Q.content.addClass("meshim_widget_Widget"),Q.wrapper.addClass(Q.__jx__fqname),Q.ibody.style.overflow="hidden",b.bind(this.iwin);var J=Q.setDraggableNode;Q.setDraggableNode=function(t){J.call(this,t),t&&(n.isFF&&(t.style.cursor="-moz-grab"),n.isWebKit&&(t.style.cursor="-webkit-grab"))},Q.on("startdrag",function(){var t=Q.getDraggableNode();t&&(n.isFF&&(t.style.cursor="-moz-grabbing"),n.isWebKit&&(t.style.cursor="-webkit-grabbing"))}),Q.on("enddrag",function(){var t=Q.getDraggableNode();t&&(n.isFF&&(t.style.cursor="-moz-grab"),n.isWebKit&&(t.style.cursor="-webkit-grab"))}),this.autobind(P,"value",function(t){t=parseInt(t,10),!isNaN(t)&&t>=0&&(X=t,j())}),this.autobind(O,"value",function(t){t=parseInt(t,10),!isNaN(t)&&t>=0&&(K=t,j())}),$.windowPosition(Q.wrapper,null,function(t){B=t,j(),S()}),$.windowSize(Q.wrapper,null,function(t){Z=t,y()})}q||(this.dom.className="zopim",this.iframe.setStyle("display","block")),Y&&Q.setPosition("relative"),U&&this.addClass("mobile"),G&&this.addClass("tablet"),(Q.content||Q).on("click",function(){u.resetUnreadCount()}),new g(this.defaultPlacement),new f(this.defaultPlacement);var tt=this.menu_stack=new p(this.defaultPlacement);this.autobind(F,"value",function(t){tt.setName(t)});var et=this.main_stack=new h(this.defaultPlacement);this.autobind(R,"value",function(){et.setName(R.getValue())}),et.on("indexChange",v),v(),this.autobind(W,"value",function(t){Q.setVisible(t?"block":"none"),y()}),Q.autobind(L,"value",y),Q.autobind(E,"value",y),et.on("indexChange",y),Q.on("show",y),Y?Q.setDraggableNode():q||(Q.setDraggableNode(),this.main_stack.on("indexChange",C),C()),Q.autobind(E,"value",function(t){t&&(A(),S())}),(Q.content||Q).allowGhostClick=!0,(Q.content||Q).on("click",I),q&&o.window.on("click",I),Q.onDestruction(function(){(Q.content||Q).un("click",I),q&&o.window.un("click",I)}),r&&r.onLanguage&&(r.onLanguage(k),k())}var _=i(75),l=i(78),d=i(17),u=i(79),c=i(30),h=i(80),p=i(257),g=i(287),f=i(289),m=i(38),$=i(89),b=i(51);return t.prototype=a(_.prototype),t.__jx__jcss={"**self":{position:"relative",color:"$$windowColor"},"&.br, &.bm, &.bl":{},"&.tr, &.tm, &.tl":{},"&.popout":{padding:0,margin:"0 auto","width, height":"100%",maxWidth:"650px",background:"$$windowBg"},"&.mobile":{maxWidth:"none",width:"100%",height:"auto",minHeight:"100%"},"&.tablet":{maxWidth:"$$mobileMaxWidthL"}},s(t,"meshim_widget_components_ChatWindow"),t}()}).call(e,i(29),i(7),i(6),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_FloatingFrame=i(76),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_FloatingFrame,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(t){return new u(t,null,null,null,{position:"absolute",top:0,left:0,width:"100%",height:"100%",margin:0,padding:0})}function e(e,i){if((!e||!e.button)&&(p.raise(e,2),C||(C=t(document.body)),C.style.zIndex=p.style.zIndex-1,C.style.display="block",I=!1,e||(e=h.event),e))return x=e.clientX,v=e.clientY,y=p.getWidth(),j=p.getHeight(),$=i,A=document.onmousemove,S=document.onmouseup,g.onmousemove=n,document.onmousemove=o,g.onmouseup=document.onmouseup=a,g.onselectstart=function(){return!1},e.preventDefault&&e.preventDefault(),p.fire("jx:activate"),!1}function n(t){return I||(p.fire("startdrag"),I=!0),t||(t=window.event),t||(t=h.event),d.isIE<9&&!t.button?void a():(b=t.clientX-x,w=t.clientY-v,$?(p.setWidth(s(y+b)),p.setHeight(s(j+w))):(p.move(b,w),p.fire("jx:drag"),r.tick()),!1)}function o(t){return I||(p.fire("startdrag"),I=!0),t||(t=window.event),t||(t=h.event),d.isIE<9&&!t.button?void a():(b=t.clientX-x,w=t.clientY-v,d.isIE&&(b-=_(document.body.currentStyle.borderLeftWidth),w-=_(document.body.currentStyle.borderTopWidth)),$?(p.setWidth(s(y+b-p.dom.offsetLeft)),p.setHeight(s(j+w-p.dom.offsetTop))):p.moveTo(b,w),p.fire("jx:drag"),!1)}function a(){C.style.display="none",document.onmousemove=A,document.onmouseup=S,g.onmousemove=null,g.onmouseup=null,g.onselectstart=null,I&&(p.fire("enddrag"),I=!1)}function s(t){return Math.max(Math.min(t,window.innerWidth),c)||c}function _(t){return parseInt(t,10)||0}var l,d=i(7),u=i(17),c=50,h=p.iwin,g=p.idoc;p.on("mousedown",p.raise),g.onmousedown=e;var f,m=0;p.setResizableNode=function(t){t&&t.dom&&(t=t.dom),f&&(f.onmousedown=null),t&&(t.onmousedown=function(t){0===m?(m=1,setTimeout(function(){m=0},300),e(t,!0)):p.fitToContents(p,1e3,1e3)},f=t)},p.getDraggableNode=function(){return l},p.setDraggableNode=function(t){t&&t.dom&&(t=t.dom),t?(p.setBounds([0,0,0,0]),l=t,g.onmousedown=null,t.onmousedown=e,t.style.cursor="move"):(l&&(l.onmousedown=null,l.style.cursor="default",l=null),g.onmousedown=null)};var $,b,w,x,v,y,j,C,A,S,I=!1}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_FloatingFrame.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_FloatingFrame,t.__jx__jcss={},s(t,"jx_ui_DraggableFrame"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){t.exports=function(){function t(i,n,o,r,a){if(!(this instanceof t))return new t(i,n,o,r,a);var s=this;this._onAutoResize=function(){s.onAutoResize()},_.call(this,i,n,o,null,a),_.prototype.setMargin.call(this,"0"),_.prototype.setPadding.call(this,"0"),_.prototype.setBorder.call(this,"0"),_.prototype.setBackground.call(this,"transparent"),_.prototype.setOverflow.call(this,"hidden"),_.prototype.setPosition.call(this,"fixed"),this.appendToParent(),this.iframe=new l(this,null,null,null,{tagName:"iframe",position:"relative",width:"100%",height:"100%",minWidth:"100%",minHeight:"100%",maxWidth:"100%",maxHeight:"100%",border:"0",margin:"0",padding:"0",background:"transparent",overflow:"hidden",display:"block"}),this.iwin=this.iframe.iwin,this.idoc=this.iframe.idoc,this.ibody=this.iframe.ibody,this.ihead=this.iframe.ihead,this.content=new d(this.iframe.defaultPlacement),this.content.setOverflow("hidden"),this.wrapper=new _(this.content,null,null,null,{display:"inline-block"}),this.wrapper.__jx__fqname=this.__jx__fqname,this.wrapper.__jx__fqname_chain=this.__jx__fqname_chain,e.bugs.noBoxSizing&&(this.wrapper.style.display="inline",this.wrapper.style.zoom="1"),this.setAttributes(a),this.defaultPlacement=this.wrapper,this.addChildren(r),e.isIE<9&&(this.on("hide",function(){s.iframe.setDisplay("none")}),this.on("show",function(){s.iframe.setDisplay("block")})),this.raise()}var s,_=i(17),l=i(77),d=i(78),u=16e6;!function(){for(var t=["","WebKit"],e="MutationObserver",i=0;i<t.length;i++)t[i]+e in window&&(s=window[t[i]+e])}(),t.prototype=n(_.prototype),t.prototype.fire=function(t,e){_.prototype.fire.call(this,t,e),this.iframe&&this.iframe.fire(t,e),this.wrapper&&this.wrapper.fire(t,e)},t.prototype.on=function(t,e){"init"==t?_.prototype.on.call(this,t,e):this.wrapper&&this.wrapper.on(t,e)},t.prototype.raise=function(t){t=parseInt(t,10)||1,this.setZIndex(u+=t)},t.prototype.normalize=function(){var t=this.getXY();this.moveTo(t[0],t[1]).setMargin(0)},t.prototype.getXY=function(){var t=this.dom.offsetLeft,i=this.dom.offsetTop;if(e.isIE)e.isStrict?e.isIE6&&(t-=document.documentElement.scrollLeft,i-=document.documentElement.scrollTop):(t-=document.body.scrollLeft,i-=document.body.scrollTop);else if(e.isSafari){var n=o.getStyles(this.iframe.offsetParent);t+=parseInt(n.borderLeftWidth,10),i+=parseInt(n.borderTopWidth,10)}return[t,i]},t.prototype.fitToContents=function(t,e,i){t=t||this;for(var n=0,o=0;t.defaultPlacement;)t=t.defaultPlacement;t.dom&&(t=t.dom),o=t.scrollWidth-t.clientWidth,n=t.scrollHeight-t.clientHeight,this.resizeBy(o,n,i||0,e||0)},t.prototype.destroy=function(){this.setAutoResize(!1),_.prototype.destroy.call(this),this.iframe=this.iwin=this.idoc=this.ibody=this.ihead=this.content=null},t.prototype.setBackground=function(t){return this.iframe&&this.iframe.setBackground(t)},t.prototype.setBackgroundImage=function(t){return this.iframe&&this.iframe.setBackgroundImage(t)},t.prototype.setBorder=function(t){return this.iframe&&this.iframe.setBorder(t)},t.prototype.setBorderColor=function(t){return this.iframe&&this.iframe.setBorderColor(t)},t.prototype.setBorderStyle=function(t){return this.iframe&&this.iframe.setBorderStyle(t)},t.prototype.setBorderWidth=function(t){return this.iframe&&this.iframe.setBorderWidth(t)},t.prototype.setCursor=function(t){return this.iframe&&this.iframe.setCursor(t)},t.prototype.setOpacity=function(t){return this.iframe&&this.iframe.setOpacity(t)},t.prototype.setSelectable=function(t){return this.iframe&&this.iframe.setSelectable(t)},t.prototype.setColor=function(t){return this.content&&this.content.setColor(t)},t.prototype.setPadding=function(t){return this.content&&this.content.setPadding(t)},t.prototype.setFontFamily=function(t){return this.content&&this.content.setFontFamily(t)},t.prototype.setFontSize=function(t){return this.content&&this.content.setFontSize(t)},t.prototype.setFontWeight=function(t){return this.content&&this.content.setFontWeight(t)},t.prototype.setTextAlign=function(t){return this.content&&this.content.setTextAlign(t)},t.prototype.setLetterSpacing=function(t){return this.content&&this.content.setLetterSpacing(t)},t.prototype.setLineHeight=function(t){return this.content&&this.content.setLineHeight(t)},t.prototype.setOverflow=function(t){return this.content&&this.content.setOverflow(t)};var c=200;return t.prototype.getAutoResize=function(){return this.autoResize},t.prototype.setAutoResize=function(t){if(t=r(t),this.autoResize=t,this.wrapper){var e=this;return this.autoResize?(s?(this._autoResizer=new s(function(){e.onAutoResize()}),this._autoResizer.observe(this.wrapper.dom,{childList:!0,attributes:!0,characterData:!0,subtree:!0})):(this._autoResizer&&window.clearInterval(this._autoResizer),this._autoResizer=window.setInterval(this._onAutoResize,c)),this.onAutoResize()):this._autoResizer&&(s?(this._autoResizer.disconnect(),this._autoResizer=null):(window.clearInterval(this._autoResizer),this._autoResizer=null)),this}},t.prototype.onAutoResize=function(){e.bugs.noBoxSizing&&(this.style.width="10px",this.style.height="10px");var t=this.wrapper.getWidth(),i=this.wrapper.getHeight();this.setWidth(t),this.setHeight(i),e.bugs.noBoxSizing&&(this.style.width=t+"px",this.style.height=i+"px",this.iframe.dom.className=this.iframe.dom.className)},a(t,"jx_ui_FloatingFrame"),t}()}).call(e,i(7),i(14),i(20),i(16),i(4))},function(t,e,i){(function(e,n,o,r,a,s){t.exports=function(){function t(i,a,s,c,h){function p(t){$.parentNode.setAttribute("lang",t),$.parentNode.setAttribute("dir",r.flip("ltr"))}if(!(this instanceof t))return new t(i,a,s,c,h);h||(h={}),h.tagName||(h.tagName="iframe"),this._top=this._bottom=this._left=this._right=this._width=this._height=NaN,this._position=null,this.pos="",this.offsetx=0,this.offsety=0,this._snaps=[0,0,0,0],this.useDisplay=!1,this.doc=this.ownerDocument=i.ownerDocument,this.parentNode=i,this.attributes=h,this.tagName=h.tagName,this.isNew=!0,this.dom=this.doc.createElement(this.tagName),this.dom.jx_wrapper=this,this.style=this.dom.style,this.children=[],this._autobinds=[],d.call(this),void 0!==this.dom.seamless&&(this.dom.seamless=!0),
this.dom.allowTransparency="true",this.dom.frameBorder="0",this.style.backgroundColor="transparent",this.style.verticalAlign="text-bottom",this.style.visibility="hidden",i.appendChild(i instanceof u?this:this.dom),a&&e.set(a,this);var g;g=n.bugs.noBoxSizing?"<html><head><style>html,body{height:100%;width:100%;background:none} *{border:0;padding:0;margin:0;}</style></head><body></body></html>":"<!DOCTYPE html><html><head><style>html,body{height:100%;width:100%;} *{border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}</style></head><body></body></html>",this.dom.src="about:blank",this.appendToParent(!0);var f=this.iwin=this.dom.contentWindow,m=this.idoc=o.extend(f.document);m.write(g),m.close(),this.ihead=m.getElementsByTagName("head")[0];var $=this.ibody=o.extend(m.body);r&&r.onLanguage&&r.onLanguage(p),r&&r.language&&p(r.language),$.style.position="relative",$.parentNode.style.overflowY=$.style.overflowY="hidden";var b,w;n.bugs.noBoxSizing?(b=new l($,null,null,null,{position:"relative",width:"100%",height:"100%",overflow:"hidden"}),b.applyConstraints(),b.setPadding=function(t){$.style.padding=t}):(b=new l($,null,null,null,{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden"}),b.applyConstraints());for(var x="Background BackgroundImage Border BorderColor BorderStyle BorderWidth Color Cursor FontFamily FontSize FontWeight LetterSpacing LineHeight Opacity Padding Selectable TextAlign".split(" ");w=x.pop();)this["set"+w]=function(t){return function(e){return b["set"+t](e),this}}(w);this.defaultPlacement=b,this.addChildren(c),this.style.visibility="",this.setStyle(s),this.setAttributes(h),_.bindIFrame(this)}var _=i(29),l=i(17),d=i(25),u=i(18);return t.prototype=a(l.prototype),t.prototype.destroy=function(){_.unbindIFrame(this),this.defaultPlacement&&this.defaultPlacement.destroy(),l.prototype.destroy.call(this)},s(t,"jx_ui_IFrame"),t}()}).call(e,i(20),i(7),i(6),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(i,o,r,s,_){if(!(this instanceof t))return new t(i,o,r,s,_);if(e.bugs.noBoxSizing){var l=this.table=new a(i,null,null,null,{tagName:"table"}),d=this.tbody=new a(l,null,null,null,{tagName:"tbody"}),u=this.tr=new a(d,null,null,null,{tagName:"tr"}),c=this.td=new a(u,null,null,null,{tagName:"td"}),h=this;this.table.destroy=function(){h.destroy()},this.table.empty=function(){h.empty()},this.setPadding=function(t){return this.td.setPadding(t),this},this.show=function(){return this.table&&this.table.show(),this},this.hide=function(){return this.table&&this.table.hide(),this},a.call(this,c,o,r,s,_),l.style.tableLayout="fixed",l.style.borderCollapse="collapse",d.style.height=d.style.width=this.style.height=this.style.width="100%",l.setTop(0).setLeft(0).setWidth("100%").setHeight("100%").setPosition("absolute").applyConstraints(),this.style.position="relative",this.style.overflow="auto",l.defaultPlacement=this}else this.setPadding=function(t){return n(t)?(t=t.split(" "),t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10),t[2]=parseInt(t[2],10),t[3]=parseInt(t[3],10),isNaN(t[0])?t[3]=t[2]=t[1]=t[0]=0:isNaN(t[3])&&(isNaN(t[1])?t[3]=t[2]=t[1]=t[0]:isNaN(t[2])?(t[3]=t[1],t[2]=t[0]):t[3]=t[1]),this.setTop(parseInt(t[0],10)).setRight(parseInt(t[1],10)).setBottom(parseInt(t[2],10)).setLeft(parseInt(t[3],10)),this):this},a.call(this,i,o,r,s,_),this.setStyle({top:0,bottom:0,left:0,right:0,overflow:"auto",position:"absolute"});this.setStyle(r),this.setAttributes(_)}var a=i(17);return t.prototype=o(a.prototype),t.prototype.destroy=function(){a.prototype.destroy.call(this),this.table&&(a.prototype.empty.call(this.table),this.table.empty=null,a.prototype.destroy.call(this.table),this.table=this.tbody=this.tr=this.td=null)},r(t,"jx_ui_FullFrame"),t}()}).call(e,i(7),i(19),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){m=P.throttle(r,2e3),$=P.debounce(a,100),b=O.root.$("livechat"),w=b.$("channel"),x=w.$("chatting$bool"),j=w.$("log"),y=w.$("rating$string"),v=w.$("last_read"),S=b.$("profile").$("nick$string"),A=b.$("ui").$("chat_button").$("unread_count$int"),k=0,T=0,B=0,N=[],w.on("value",function(t){null===t&&(E=D=void 0)}),S.on("value",function(t){t&&t!==I&&(I&&v.$(I).$("timestamp$int").un("value",l),I=t,v.$(t).$("timestamp$int").on("value",l))}),x.on("value",d),j.on("value",function(t){C=t}),j.on("keys",o)}function o(t){if(t&&t.length&&I){for(var e,i,n,o,r=0,a=t.length;r<a;r++)if(e=C[t[r]])switch(i=e.timestamp$int,n=e.type$string,o=e.nick$string,i>T&&(T=i),n){case"chat.comment":w.update({last_comment_ts$int:i});break;case"chat.rating":w.update({last_rating_ts$int:i});break;case"chat.memberjoin":case"chat.join":W.isAgentNick(o)&&u(i);break;case"chat.memberleave":W.isAgentNick(o)?c(i):p(i);break;case"chat.mention":case"chat.msg":o!=I&&N.indexOf(i)===-1&&N.push(i),_(i,o,t[r]);default:W.isAgentNick(o)&&0===k&&u(i)}$()}}function r(){x.getValue()&&b.$("ui").$("chat").write({read_ts$int:T})}function a(){for(;N[0]<=B;)N.shift();A.update(N.length)}function s(){A.update(0),N=[],m()}function _(t,e,i){e!=I?D||(D=t,w.update({first_account_msg_id$string:i,first_account_msg_ts$int:t})):E||(E=t,w.update({first_visitor_msg_ts$int:t}))}function l(t){e(t,!0)||(B=t,T>0&&$())}function d(t){t===!1&&(s(),w.getValue("served$bool")&&g())}function u(t){k++,h(t)}function c(t){k=Math.max(k-1,0),h(t)}function h(t){0===k?w.update({last_agent_leave_ts$int:t}):(1===k&&w.update({served$bool:!0}),w.getValue("last_agent_leave_ts$int")&&w.update({last_agent_leave_ts$int:null}))}function p(){g()}function g(){k=0,w.update({served$bool:!1,first_visitor_msg_ts$int:null,first_account_msg_ts$int:null,first_account_msg_id$string:null,last_agent_leave_ts$int:null,last_comment_ts$int:null,last_rating_ts$int:null}),E=D=void 0,T=B=0,N=[]}function f(){g(),I=void 0}var m,$,b,w,x,v,y,j,C,A,S,I,k,B,N,T,D,E,P=i(44),O=i(30),W=i(38),L={init:t,resetUnreadCount:s,updateUnreadCount:$,resetState:f};return n(L,"meshim_widget_controllers_ChatLogListener"),L}()}).call(e,i(10),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ViewStack=i(81),e.__$$__meshim_widget_components_chatWindow_NewChatForm=i(83),e.__$$__meshim_widget_components_chatWindow_PreChatOfflineForm=i(125),e.__$$__meshim_widget_components_chatWindow_ChatPanel=i(182),e.__$$__meshim_widget_components_chatWindow_PostChatForm=i(243),e.__$$__meshim_widget_components_chatWindow_CookieForm=i(248),e.__$$__meshim_widget_components_chatWindow_CardForm=i(252),e.__$$__meshim_widget_components_chatWindow_AgentList=i(253),e.__$$__meshim_widget_components_chatWindow_AboutPanel=i(255),e.__$$__meshim_widget_components_chatWindow_RatingPanel=i(256),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_ViewStack,"","",[[e.__$$__meshim_widget_components_chatWindow_NewChatForm,"","",[],{name:"new_chat_form",addClass:"stack_child_mini     stack_child_no_menu force_dock"}],[e.__$$__meshim_widget_components_chatWindow_PreChatOfflineForm,"","",[],{name:"pre_chat_offline_form",addClass:"stack_child_standard stack_child_no_menu"}],[e.__$$__meshim_widget_components_chatWindow_ChatPanel,"","",[],{name:"chat_panel",addClass:"stack_child_standard"}],[e.__$$__meshim_widget_components_chatWindow_PostChatForm,"","",[],{name:"post_chat_form",addClass:"stack_child_standard stack_child_no_menu"}],[e.__$$__meshim_widget_components_chatWindow_CookieForm,"","",[],{name:"cookie_form",addClass:"stack_child_standard stack_child_no_menu"}],[e.__$$__meshim_widget_components_chatWindow_CardForm,"","",[],{name:"card_form",addClass:"stack_child_standard stack_child_no_menu"}],[e.__$$__meshim_widget_components_chatWindow_AgentList,"","",[],{name:"agent_list",addClass:"stack_child_standard stack_child_no_menu"}],[e.__$$__meshim_widget_components_chatWindow_AboutPanel,"","",[],{name:"about_panel",addClass:"stack_child_standard stack_child_no_menu"}],[e.__$$__meshim_widget_components_chatWindow_RatingPanel,"","",[],{name:"rating_panel",addClass:"stack_child_standard stack_child_no_menu"}]],{"xmlns:ui":"jx.ui","xmlns:chatWindow":"meshim.widget.components.chatWindow","xmlns:widgets":"meshim.widget.widgets",addClass:"main_stack",onChildHide:"-1"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){var t=i(89);t.popout(h),t.mobile(h),t.windowPosition(h,"ms_")}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_ViewStack.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ViewStack,t.__jx__jcss={"**self":{overflow:"hidden",boxShadow:"$$windowShadow"},"&.ms_br, &.ms_bm, &.ms_bl":{"borderTopLeftRadius, borderTopRightRadius":"$$windowRadius"},"&.ms_tr, &.ms_tm, &.ms_tl":{"borderBottomLeftRadius, borderBottomRightRadius":"$$windowRadius"},"&.popout":{margin:"0 auto",maxWidth:"650px",minWidth:"240px",minHeight:"335px",height:"100%",borderRadius:"0"},"&.mobile":{"minWidth, minHeight":"0",maxWidth:"none"}},a(t,"meshim_widget_components_chatWindow_MainStack"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){var t=i(82),r=t;return t=function(i,n,o,a,s){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),s||(s={}),void r.call(this,i,n,o,a,s)):new t(i,n,o,a,s)},t.__jx__jcss={"**self":{"width, height":"100%"}},t.prototype=n(r.prototype),t.prototype.__jx__super=r,o(t,"meshim_widget_widgets_ViewStack"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){t.exports=function(){function t(e,i,n,o,r){if(!(this instanceof t))return new t(e,i,n,o,r);_.call(this,e,i,n,o,r),this.index=void 0,this.length=0,this.currentChild=null;var a=this;this._onChildHide=function(){switch(a.onChildHide){case"next":a.next(!0);break;case"prev":a.prev(!0);break;case"first":a.first(!0);break;case"last":a.last(!0);break;default:var t=parseInt(a.onChildHide,10);if(isNaN(t))break;a.setIndex(t,!0)}},this.onDestruction(function(){a.currentChild=null})}var _=i(17);return t.prototype=e(_.prototype),t.prototype.addChildren=function(t){var e=t&&t.length;if(t&&e)for(var i=0;i<e;i++)n(t[i])&&this.appendChild(t[i])},t.prototype.appendChild=function(t){var e=!1;return n(t)?(this.children.push(t),t[4]&&(e=o(t[4].forceInstantiate))):t.dom?(_.prototype.appendChild.call(this,t),t.setVisible("none")):this.dom.appendChild(t),e&&this.instantiateChild(t),t},t.prototype.removeChild=function(t){try{n(t)||(t.dom?(this.dom.removeChild(t.dom),t.parentNode=null):this.dom.removeChild(t));var e=r(t,this.children);e!=-1&&this.children.splice(e,1)}catch(i){}},t.prototype.setIndex=function(t,e){if(t=parseInt(t,10),this.validIndex(t)&&t!=this.index){var i,o=this.currentChild;return!(!e&&(o?o.fire("beforeIndexChange",t):1)+this.fire("beforeIndexChange",t)<2)&&(o&&(this.autounbind(o,"hide",this._onChildHide),o.setVisible("none")),this.fire("indexChanging",t),t==-1?(this.currentChild=null,this.index=t,this.fire("indexChange",t),!0):(o=this.children[t],n(o)&&(o=this.instantiateChild(o),i=!0),o.setVisible("block"),this.autobind(o,"hide",this._onChildHide),this.currentChild=o,this.index=t,i&&this.fire("instantiate",t),this.fire("indexChange",t),!0))}},t.prototype.instantiateChild=function(t){if(n(t)){var e=r(t,this.children);if(e!=-1)return t=new t[0](this,t[1],t[2],t[3],t[4]),this.children[e]=t,this.children.pop(),t}},t.prototype.validIndex=function(t){return null!=t&&t<this.getLength()&&t>=-1},t.prototype.next=function(t){return a(this.index,!0)?this.setIndex(0,t):this.setIndex(this.index+1,t)},t.prototype.prev=function(t){return a(this.index,!0)?this.setIndex(this.getLength()-1,t):this.setIndex(Math.max(this.index-1,0),t)},t.prototype.first=function(t){return this.setIndex(0,t)},t.prototype.last=function(t){return this.setIndex(this.getLength()-1,t)},t.prototype.getName=function(){return this.currentChild&&this.currentChild.getName()},t.prototype.setName=function(t){if(!t)return this.setIndex(-1);for(var e=0,i=this.children.length;e<i;e++)if(n(this.children[e])){if(this.children[e][4]&&this.children[e][4].name===t)return this.setIndex(e)}else if(this.children[e].getName&&this.children[e].getName()===t)return this.setIndex(e)},t.prototype.isFirst=function(){return this.index<=0},t.prototype.isLast=function(){return this.index>=this.getLength()-1},t.prototype.getLength=function(){return this.children.length},t.prototype.getChildren=function(){return this.children},t.prototype.getCurrentChild=function(){return this.currentChild},t.prototype.getIndex=function(){return this.index},t.prototype.getOnChildHide=function(){return this.onChildHide},t.prototype.setOnChildHide=function(t){return this.onChildHide=t,this},s(t,"jx_ui_ViewStack"),t}()}).call(e,i(14),i(21),i(16),i(24),i(10),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_AbsolutePaddingContainer=i(116),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatWindow_newChatForm_Banner=i(117),e.__$$__meshim_widget_components_chatWindow_newChatForm_Branding=i(119),e.__$$__meshim_widget_widgets_IconFont=i(90),e.__$$__jx_ui_Form=i(112),e.__$$__meshim_widget_components_chatWindow_newChatForm_TextField=i(120),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(113),h=o(114),p=o(115),g=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_AbsolutePaddingContainer,"","",[[e.__$$__jx_ui_Widget,"content","",[[e.__$$__meshim_widget_components_chatWindow_newChatForm_Banner,"banner","",[],{id:"banner",addClass:"banner"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_chatWindow_newChatForm_Branding,"","",[],{addClass:"branding"}]],{addClass:"branding_container"}],[e.__$$__meshim_widget_widgets_IconFont,"close","",[],{id:"close",addClass:"close",icon:"minimize",title:c}]],{id:"content",addClass:"content"}],[e.__$$__jx_ui_Form,"form","",[[e.__$$__meshim_widget_widgets_IconFont,"submit","",[],{id:"submit",icon:"send",addClass:"send",title:h}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_chatWindow_newChatForm_TextField,"input","",[],{id:"input",addClass:"input",autocomplete:"false",placeholder:p,tabIndex:"10"}]],{"class":"input_wrapper"}]],{id:"form",addClass:"form",noValidate:"true"}],[e.__$$__jx_ui_Widget,"disabled_overlay","",[],{id:"disabled_overlay","class":"disabled_overlay",visible:"none"}]],{absPaddingBottom:"badgeFormHeight"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:components":"meshim.widget.components","xmlns:widgets":"meshim.widget.widgets","xmlns:chatWindow":"meshim.widget.components.chatWindow","xmlns:newChatForm":"meshim.widget.components.chatWindow.newChatForm",miniSize:"true",titleBar:"none",actionBar:"none",addClass:"mini"}],f=g[0].call(this,a,s,null,n.mangleIDs(s,g[3]),g[4]),m=f||this;n.set(s,m);var $=n.get(s+"__content"),b=n.get(s+"__banner"),w=n.get(s+"__close"),x=n.get(s+"__form"),v=n.get(s+"__submit"),y=n.get(s+"__input"),j=n.get(s+"__disabled_overlay");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var C=function(){function t(){d.rtl(m),d.windowPosition(m),l.hoverFix(m),m.autobind(f,"value",function(t){r=t}),m.autobind(A,"value",function(t){a=t}),m.autobind(I,"value",function(t){b[t?"addClass":"removeClass"]("hide_branding")}),m.autobind(k,"value",function(t){"image_only"==t?b.addClass("image_only"):b.removeClass("image_only")}),x.on("submit",function(t){t.preventDefault(),e()}),v.on("click",function(){e()}),w.on("click",function(t){t.stopPropagation(),_.userHideBanner()}),$.on("click",n),j.on("click",n),m.autobind(B,"value",function(t){"idle_disconnect"===t?(x.setDisabled(!0),j.show()):(x.setDisabled(!1),j.hide())})}function e(){if(!x.getDisabled()){var t=y.getValue().trim();if(!t)return void y.focus();y.reset(),o(t)}}function n(){var t=y.getValue().trim();t&&p.update(t),y.reset(),g.write({button_clicked$bool:!0}),o()}function o(t){_.setBannerUserHidden(),r&&!a?(C.update(t||""),S.update(!0),h.update("pre_chat_offline_form")):(t&&s.livechat.sendChatMsg({msg:t}),h.update("chat_panel"))}var r,a,s=i(30),_=i(103),l=i(38),d=i(89),u=s.root,c=u.$("livechat"),h=c.$("ui").$("chat_window").$("main_stack_name$string"),p=c.$("ui").$("chat_window").$("chat_panel").$("textarea").$("value$string"),g=c.$("ui").$("chat_button"),f=c.$("settings").$("forms").$("pre_chat_form").$("required$bool"),C=c.$("settings").$("forms").$("pre_chat_form").$("form").$("3").$("value_user$string"),A=c.$("ui").$("chat_window").$("pre_chat_form").$("submitted$bool"),S=c.$("ui").$("chat_window").$("pre_chat_form").$("form_populate$bool"),I=c.$("settings").$("branding").$("hide_branding$bool"),k=c.$("settings").$("banner").$("layout$string"),B=u.$("connection").$("status$string");t()}();for(var A in C)C.hasOwnProperty(A)&&(m[A]=C[A]);return m.fire&&m.fire("init"),m.setStyle&&m.setStyle(l),m.setAttributes&&m.setAttributes(u),"function"==typeof m.addChildren?m.addChildren(d):n.addChildren(m,d),m!==this&&(m.__jx__constructor=_,m.__jx__native=!1),m}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={".container":{background:"$$badgeBg",borderWidth:"$$badgeBorderWidth",borderStyle:"$$badgeBorderStyle",borderColor:"$$badgeBorderColor"},".content":{width:"100%",height:"100%",overflow:"hidden",color:"$$badgeContentColor",background:"$$badgeContentBg",borderWidth:"$$badgeContentBorderWidth",borderStyle:"$$badgeContentBorderStyle",borderColor:"$$badgeContentBorderColor"},".banner":{width:"100%",height:"100%",position:"relative",cursor:"pointer",fontSize:"1.5em",padding:"20px 10px 10px","&.hide_branding":{paddingTop:"10px"},"&.image_only":{padding:"0"}},".branding_container":{position:"absolute",top:"6px",left:0,width:"100%",textAlign:"center",cursor:"pointer",".branding":{cursor:"pointer"}},".close":{position:"absolute",cursor:"pointer",opacity:0,transition:"opacity 0.2s","top, right":0,padding:"9px 10px 2px 2px"},"&.rtl .close":{left:"6px",right:"auto",padding:"3px 2px 2px 4px"},"&.hover, &:hover":{".close":{opacity:1}},".send":{"float":"right",fontSize:"$$fontSizeXXL",padding:"5px",margin:"5px",color:"$$badgeIconColor",opacity:"0.8",cursor:"pointer","&:hover":{opacity:"1"},"&.disabled":{cursor:"default","&:hover":{opacity:"0.8"}}},".form, .disabled_overlay":{position:"absolute","bottom, left":"0",width:"100%",height:"$$badgeFormHeight"},".disabled_overlay":{cursor:"pointer"},".form":{overflow:"hidden","*zoom":1,background:"$$badgeFormBg",borderWidth:"$$badgeFormBorderWidth",borderStyle:"$$badgeFormBorderStyle",borderColor:"$$badgeFormBorderColor","&.disabled":{opacity:"0.5"},".input_wrapper":{display:"block",overflow:"hidden","*width":"165px",".input":{width:"100%",height:"100%",position:"relative","*width":"165px","*overflow":"hidden"}},".button":{"*width":"60px"}},"&.ltr .form":{".input":{paddingRight:0},".button":{"float":"right"}},"&.rtl .form":{".input":{paddingLeft:0},".button":{"float":"left"}},"&.br, &.bm, &.bl":{".content":{"borderTopLeftRadius, borderTopRightRadius":"$$windowRadius"}},"&.tr, &.tm, &.tl":{}},s(t,"meshim_widget_components_chatWindow_NewChatForm"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Branding=i(85),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"container_and_brand_wrapper","",[[e.__$$__jx_ui_Widget,"$$defaultplacement$$","",[],{container:"default",addClass:"container",id:"$$defaultplacement$$"}],[e.__$$__meshim_widget_widgets_Branding,"branding","",[],{id:"branding",addClass:"chat_window_panel_branding",hideOnDesktop:"true"}]],{id:"container_and_brand_wrapper",addClass:"container_and_brand_wrapper"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],p=h[0].call(this,s,_,null,n.mangleIDs(_,h[3]),h[4]),g=p||this;n.set(_,g);var f=n.get(_+"__container_and_brand_wrapper"),m=n.get(_+"__$$defaultplacement$$"),$=n.get(_+"__branding");t.__jx__jcss_generated||(o.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),g.defaultPlacement=m;var b=function(){function t(){l.rtl(g),g.autobind(y,"value",o),e()}function e(){var t;v?(t="free_flow_with_fixed_titlebar_layout",d.isStyleSupported("overflow-scrolling")&&n()):t=w?"free_flow_layout":"full_frame_layout",t!==e.lastClassName&&(g.removeClass(e.lastClassName),g.addClass(t),e.lastClassName=t)}function n(){function t(){f.setCSSStyle("webkitOverflowScrolling","auto"),setTimeout(function(){f.setCSSStyle("webkitOverflowScrolling","touch")},50)}g.autobind(b.$("chat_window").$("display$bool"),"value",function(e){e&&t()})}function o(){var t;t=s?"cwp_mini":w||x?"cwp_full":"cwp_"+y.getValue(),t!==o.lastClassName&&(g.removeClass(o.lastClassName),g.addClass(t),o.lastClassName=t)}var s,_=i(30),l=i(89),d=i(38),u=i(93),c=i(106),h=i(107),p=i(108),m=_.root,b=m.$("livechat").$("ui"),w=b.getValue("mobile$bool"),x=b.getValue("popout$bool"),v=b.getValue("mobile_overlay$bool"),y=m.$("livechat").$("settings").$("theme").$("chat_window").$("size$string");g.setTitleBar=function(t){if(!g.titleBar){var e=t.split(",");if(r("none",e)!=-1)return g.titleBar=!0,void g.removeClass("has_title_bar");g.titleBar=new u(g),g.addClass("has_title_bar");for(var i=0,n=e.length;i<n;i++)switch(e[i]){case"hidePopout":g.titleBar.setHidePopout(!0)}}},g.getDraggableNode=function(){return g.titleBar instanceof u?g.titleBar:null},g.setActionBar=function(t){if(!g.actionBar){var e=t.split(",");return r("none",e)!=-1?(g.actionBar=!0,void g.removeClass("has_action_bar_at_bottom")):void(w?r("default",e)!=-1&&(g.actionBar=new h(g),g.actionBar.addClass("mobile_options_menu_icon")):(g.addClass("has_action_bar_at_bottom"),r("default",e)!=-1?g.actionBar=new p(g):g.actionBar=new c(g)))}},g.setMiniSize=function(t){s=a(t),o()},g.setHideBrandingMobile=function(t){t=a(t),w&&t?$.addClass("hidden"):$.removeClass("hidden")},t()}();for(var w in b)b.hasOwnProperty(w)&&(g[w]=b[w]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(d),g.setAttributes&&g.setAttributes(c),"function"==typeof g.addChildren?g.addChildren(u):n.addChildren(g,u),g!==this&&(g.__jx__constructor=l,g.__jx__native=!1),g}var l;return t.prototype=s(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative",margin:"$$chatWindowPanelMargin"},".container":{position:"relative",background:"$$windowContentBg",borderWidth:"$$windowContentBorderWidth",borderStyle:"$$windowContentBorderStyle",borderColor:"$$windowContentBorderColor"},".mobile_options_menu_icon":{position:"absolute",zIndex:"102"},".chat_window_panel_branding":{display:"block",padding:"5px",margin:"10px 0",textAlign:"center","&.hidden":{display:"none !important"}},".container_and_brand_wrapper":{"width, height":"100%"},"&.full_frame_layout":{overflow:"hidden","width, height":"100%",".container":{"width, height":"100%",overfow:"hidden"}},"&.free_flow_layout":{overflow:"auto","width, height":"auto",".container":{"width, height":"auto"}},"&.free_flow_with_fixed_titlebar_layout":{overflow:"hidden","width, height":"100%",".container_and_brand_wrapper":{overflow:"auto","-webkit-overflow-scrolling":"touch"},".container":{"width, height":"auto"}},"&.has_title_bar":{paddingTop:"$$titleBarHeight"},"&.has_action_bar_at_bottom":{paddingBottom:"$$actionBarHeight"},"&.cwp_small":{width:"$$windowSmallWidth",height:"$$windowSmallHeight"},"&.cwp_medium":{width:"$$windowMediumWidth",height:"$$windowMediumHeight"},"&.cwp_large":{width:"$$windowLargeWidth",height:"$$windowLargeHeight"},"&.cwp_full":{"width, height":"100%"},"&.cwp_mini":{width:"$$windowMiniWidth",height:"$$windowMiniHeight"},"&.ltr":{".mobile_options_menu_icon":{"top, left":0}},"&.rtl":{".mobile_options_menu_icon":{"top, right":0}}},_(t,"meshim_widget_widgets_ChatWindowPanel"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(24),i(16),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.autobind(f,"value",e),p.autobind(g,"value",n),p.autobind(m,"value",o)}function e(){var t=f.getValue(),e=c[t];!e||a instanceof e||(a&&a.destroy(),a=new e(p))}function n(){var t=g.getValue();return t&&s?void p.setDisplay("none"):!t&&_?void p.setDisplay("none"):void p.setDisplay("")}function o(t){p.setVisibility(t?"hidden":"")}var a,s,_,l=i(30),d=i(86),u=i(92),c={icon_font_zopim:d,icon_font_zendesk:u},h=l.root.$("livechat"),g=h.$("ui").$("mobile$bool"),f=h.$("settings").$("theme").$("branding").$("type$string"),m=h.$("settings").$("branding").$("hide_branding$bool");p.setHideOnMobile=function(t){s=r(t),n()},p.setHideOnDesktop=function(t){_=r(t),n()},t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{display:"inline-block",color:"$$brandingLinkColor"}},s(t,"meshim_widget_widgets_Branding"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(16),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_branding_Link=i(87),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_branding_Link,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"zendesk_2016"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.autobind(d,"value",n),p.autobind(u,"value",n),r&&r.onLanguage&&(r.onLanguage(e),p.onDestruction(function(){r.unLanguage(e)})),e()}function e(){n(),p.setTitle(_.branding.title_golion)}function n(){var t=d.getValue()?o().get("hostname"):window.location.hostname,e={utm_campaign:"Iref",utm_source:t,utm_medium:"widget",utm_term:"new-widget",utm_content:u.getValue(),iref:u.getValue(),lang:r.language},i=o.buildQuery(e);p.setHref([a.BRANDING_URL,"?",i].join(""))}var o=i(27),a=i(32),s=i(30),_=i(91),l=s.root.$("livechat"),d=l.$("ui").$("popout$bool"),u=l.$("account").$("key$string");t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_branding_Link.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_branding_Link,t.__jx__jcss={"**self":{fontSize:"10px"},"&.mobile":{fontSize:"11px"},".meshim_widget_widgets_IconFont":{lineHeight:"inherit",paddingTop:"2px",paddingRight:"1px"}},s(t,"meshim_widget_widgets_branding_ZopimGolion"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_a=i(88),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_a,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",target:"_blank"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){n.mobile(h),r.getValue()&&h.on("click",function(t){t.preventDefault(),window.open(h.getAttribute("href"))})}var e=i(30),n=i(89),o=e.root.$("livechat"),r=o.$("ui").$("mobile$bool");t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_a.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_a,t.__jx__jcss={"**self":{color:"inherit",textDecoration:"inherit"},"&.mobile":{}},a(t,"meshim_widget_widgets_branding_Link"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="a",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_a"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){var t=_.root,i=t.$("livechat").$("ui").$("mobile$bool"),n=t.$("livechat").$("ui").$("popout$bool"),r=t.$("livechat").$("ui").$("mockup$bool"),s=t.$("livechat").$("ui").$("tablet$bool");l.popout=a(n),l.mockup=a(r),l.tablet=a(s),l.mobile=function(t){var e=i.getValue();e?(t.addClass("mobile"),t.removeClass("desktop")):(t.addClass("desktop"),t.removeClass("mobile"))},l.rtl=function(t){function i(){e.unLanguage(n)}function n(){e.rtl()?(t.addClass("rtl"),t.removeClass("ltr")):(t.addClass("ltr"),t.removeClass("rtl"))}e&&e.onLanguage?(e.onLanguage(n),n(),t.onDestruction(i)):t.addClass("ltr")},l.windowPosition=o(t.$("livechat").$("settings").$("theme").$("chat_window").$("position$string")),l.windowPositionMobile=o(t.$("livechat").$("settings").$("theme").$("chat_window").$("position_mobile$string")),l.windowSize=o(t.$("livechat").$("settings").$("theme").$("chat_window").$("size$string")),l.buttonPosition=o(t.$("livechat").$("settings").$("theme").$("chat_button").$("position$string"))}function o(t,e){return e=e||"",function(i,n,o){n=n||"",i.autobind(t,"value",r(i,e+n,o))}}function r(t,e,i){var n;return function(o){n!=o&&(n&&t.removeClass(e+n),n=o,n&&t.addClass(e+n),"function"==typeof i&&i(n))}}function a(t,e){return e=e||t.name.split("$")[0],function(i,n){i.autobind(t,"value",s(i,e,n))}}function s(t,e,i){return function(n){t[n?"addClass":"removeClass"](e),"function"==typeof i&&i(n)}}var _=i(30),l={};return _.afterInit(t),n(l,"meshim_widget_utils_BindClass"),l}()}).call(e,i(22),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui",selectable:"false","class":"icon_font"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;
n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=function(){var t={zopim:"&#xe000;",message:"&#x1f4ac;",tick:"&#x2714;",cross:"&#x2716;",popout:"&#x2197;",popin:"&#x2199;",minimize:"&#x2212;",plus:"&#x002b;",smiley:"&#x263a;",happy:"&#xe001;",happier:"&#xe002;",sad:"&#xe003;",thumbsup:"&#x1f44d;",thumbsdown:"&#x1f44e;",sadder:"&#xe004;",brand:"&#xe005;",brand_suffix:"&#xe006;",brand_extended:"&#xe005;&#xe006;",avatar_placeholder:"&#xe007;",email:"&#x1f4e7;",facebook:"&#xe008;",twitter:"&#xe009;",google:"&#xe00a;",facebook_out:"&#xe00d;",twitter_out:"&#xe00c;",google_out:"&#xe00b;",badge_default:"&#xe00e;",warning_sign:"&#x26a0;",arrow_left:"&#x2190;",arrow_up:"&#x2191;",arrow_down:"&#x2193;",arrow_down_long:"&#x21e9;",arrow_right:"&#x2192;",pencil:"&#x270e;",dustbin:"&#xe00f;",sound_on:"&#x1f50a;",sound_off:"&#x1f507;",send:"&#x000BB;",upload:"&#x21e7;",exclamation:"&#x0021;",brand_zendesk:"&#xe010;",google_2016:"&#xe011;",google_2016_out:"&#xe012;",paperclip:"&#x1f4ce;",picture:"&#x1f5bc;",zendesk_2016:"&#xe013;",zendesk_chat_2016:"&#xe014;"};c.setIcon=function(e){c.setHTML(t[e]||e||"")},c.setFont=function(t){c.setFontFamily(t||"")}}();for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{fontFamily:'zopim, "Segoe UI Symbol", "Arial Unicode MS", "Lucida Sans Unicode", sans-serif',speak:"none",fontStyle:"normal",fontWeight:"normal",lineHeight:1,WebkitFontSmoothing:"antialiased"},"&:focus":{outline:"none"}},a(t,"meshim_widget_widgets_IconFont"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){var t,o=i(30),r=i(33),a=i(38),s=i(31),_=e(4),l=e(5),d="Zendesk Chat",u=e(6),c=e(7);return t={get:function(t){if(!t)return"";var e,i;return t instanceof s?(e=t.getValue(),i=a.descendsObj(r,t.path().slice(1).join("."))):(e=o.root.$$(t).getValue(),i=a.descendsObj(r,t)),(e&&e.toString(10))==(i&&i.toString(10))?i:e||""},status:{online:e(8),away:e(9),offline:e(10)},error_message:{text:e(11),email:e(12),textarea:e(13),select:e(14),radio:e(15),checkbox:e(16),checkbox_multiple:e(17),department:e(18),"default":e(19)},placeholder:{phone:e(20)},end_chat_menu_message:e(21),external_login:{facebook:e(22),twitter:e(23),google:e(24)},chat_log:{"chat.memberjoin":e(25),"chat.memberleave":e(26),"chat.changename":e(27),"chat.visitorjoin":e(28),"chat.visitorleave":e(29),"chat.comment":e(30),"chat.rating":{good:e(31),bad:e(32),cancel:e(33)}},chat_panel:{name_is_typing:e(34),names_are_typing:e(35),agents_are_typing:e(36),chattextarea_placeholder:e(37),sendbutton_text:e(38),new_message_below:e(39),new_messages_below:e(40)},chat_button:{unread_one:e(41),unread_many:e(42),mobile_greeting:{online:e(43),offline:e(44)}},chat_notification:{attachment:e(45)},connection_status:{reconnecting:e(46),idle_disconnect:e(47),disconnected:e(48),resuming:e(49),fast_init:e(50)},cookie_law:{disabled:e(51),disabled_mobile:e(52),request_use_cookies:e(53),privacy_policy:e(54),request_use_cookies_golion:l},popout_title:e(55),popout_title_golion:d,profile:{unlink:e(56)},system_msg:{queue:c},branding:{title:e(57),title_zendesk:"Zendesk",title_golion:u},pre_chat_offline_form:{button_message:e(58),button_chat:e(59),department_any:e(60),department_any_required:e(61),button_disabled:e(62),operating_hours:{closed:e(63),period:e(64)}},file_upload:{error:{size:e(65),type:e(66),disabled:e(67),"default":e(68)}},set_assignee:{error:{"default":e(69),zendesk_agent_not_found:_}},datetime:{days:[e(70),e(71),e(72),e(73),e(74),e(75),e(76)],weekday:e(77),weekend:e(78),everyday:e(79),all_day:e(80)}},n(t,"meshim_widget_utils_Strings"),t}()}).call(e,i(22),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_branding_Link=i(87),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_branding_Link,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"zendesk_2016"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){r&&r.onLanguage&&(r.onLanguage(e),p.onDestruction(function(){r.unLanguage(e)})),e()}function e(){n(),p.setTitle(o.branding.title_zendesk)}function n(){p.setHref("https://www.zendesk.com/embeddables/?utm_source=webwidgetchat&utm_medium=poweredbyzendesk&utm_campaign=image")}var o=i(91);t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_branding_Link.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_branding_Link,t.__jx__jcss={"**self":{fontSize:"10px"},"&.mobile":{fontSize:"11px"},".meshim_widget_widgets_IconFont":{lineHeight:"inherit",paddingTop:"2px",paddingRight:"1px"}},s(t,"meshim_widget_widgets_branding_ZendeskGolion"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_BorderOverlay=i(94),e.__$$__jx_ui_Label=i(95),e.__$$__meshim_widget_widgets_IconFont=i(90),e.__$$__meshim_widget_widgets_titleBar_MinimizeButton=i(96),t.exports=function(){function t(_,l,u,c,h){if(!(this instanceof t))return new t(_,l,u,c,h);l=l||n.generateID();var p=o(197),g=o(198),f=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_BorderOverlay,"","",[],{}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Label,"title_text","",[],{id:"title_text",addClass:"title_text"}],[e.__$$__jx_ui_Label,"status_text","",[],{id:"status_text",addClass:"status_text",display:"none"}]],{addClass:"title"}],[e.__$$__jx_ui_Widget,"icons","",[[e.__$$__jx_ui_Widget,"popout_container","",[[e.__$$__meshim_widget_widgets_IconFont,"popout_button","",[],{id:"popout_button",icon:"popout",title:p}]],{id:"popout_container",addClass:"button_container"}],[e.__$$__jx_ui_Widget,"minimize_container","",[[e.__$$__meshim_widget_widgets_titleBar_MinimizeButton,"minimize_button","",[],{id:"minimize_button"}]],{id:"minimize_container",addClass:"button_container last_child",title:g}]],{id:"icons",addClass:"icons"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:titleBar":"meshim.widget.widgets.titleBar","class":"title_bar",selectable:"false"}],m=f[0].call(this,_,l,null,n.mangleIDs(l,f[3]),f[4]),$=m||this;n.set(l,$);var b=n.get(l+"__title_text"),w=n.get(l+"__status_text"),x=n.get(l+"__icons"),v=n.get(l+"__popout_container"),y=n.get(l+"__popout_button"),j=n.get(l+"__minimize_container"),C=n.get(l+"__minimize_button");t.__jx__jcss_generated||(r.generate(_,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var A=function(){function t(){A.mobile($),A.rtl($),A.windowPosition($),$.autobind(T,"value",function(t){d=t,e(),n(),$[t?"addClass":"removeClass"]("title_bar_popout")}),$.autobind(I,"value",function(){b.setText(m.get(I))}),D&&$.autobind(k,"value",function(t){t&&C.setMobile(!0)}),$.autobind(B,"value",function(){r=B.getValue(),o()}),$.autobind(E,"value",function(t){u=t,o()}),$.autobind(N,"value",function(t){_=t,e()}),$.autobind(P,"value",function(t){c=t,n()}),$.autobind(O,"value",function(t){h=t,e()}),x.on("mousedown",function(t){t.stopPropagation()}),v.on("click",function(){g.openPopout(!0),f.userHideWindow()}),j.on("click",function(){f.userHideWindow()})}function e(){var t=_&&!l&&!d&&!h&&!s.bugs.noBoxSizing;y.setDisplay(t?"":"none")}function n(){var t=c||d;j.setDisplay(t?"none":""),t?v.addClass("last_child"):v.removeClass("last_child")}function o(){r&&w.setText(m.get(B.$$(u+"$string")))}var r,_,l,d,u,c,h,p=i(30),g=i(101),f=i(103),m=i(91),A=i(89),S=p.root.$("livechat"),I=S.$("settings").$("chat_window").$("title_bar").$("title$string"),k=S.$("ui").$("theme_loaded$bool"),B=S.$("settings").$("chat_window").$("title_bar").$("status_messages"),N=S.$("settings").$("popout").$("enabled$bool"),T=S.$("ui").$("popout$bool"),D=S.$("ui").$("mobile$bool").getValue(),E=S.$("account").$("status$string"),P=S.$("settings").$("theme").$("chat_window").$("title_bar").$("hide_minimize$bool"),O=S.$("settings").$("theme").$("chat_window").$("title_bar").$("hide_popout$bool");$.setHidePopout=function(t){l=a(t),e()},t()}();for(var S in A)A.hasOwnProperty(S)&&($[S]=A[S]);return $.fire&&$.fire("init"),$.setStyle&&$.setStyle(u),$.setAttributes&&$.setAttributes(h),"function"==typeof $.addChildren?$.addChildren(c):n.addChildren($,c),$!==this&&($.__jx__constructor=d,$.__jx__native=!1),$}var d;return t.prototype=_(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"absolute","top, left":0,width:"100%",overflow:"hidden",zIndex:10,height:"$$titleBarHeight",color:"$$titleBarColor",background:"$$titleBarBg","&.title_bar_popout":{cursor:"default"}},".border_overlay":{borderWidth:"$$titleBarBorderWidth",borderStyle:"$$titleBarBorderStyle",borderColor:"$$titleBarBorderColor"},".title":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"inherit",textAlign:"$$titleBarTextAlign",fontSize:"$$titleBarFontSize",lineHeight:"$$titleBarHeight",fontWeight:"$$titleBarFontWeight",".title_text, .status_text":{cursor:"inherit"},".title_text":{display:["inline","$$titleBarTitleDisplay"]},".status_text":{display:["none","$$titleBarStatusDisplay"]}},"&.ltr .title":{paddingLeft:"$$titleBarPaddingBefore",paddingRight:"$$titleBarPaddingAfter"},"&.rtl .title":{paddingLeft:"$$titleBarPaddingAfter",paddingRight:"$$titleBarPaddingBefore"},".icons":{position:"absolute",cursor:"default",color:"$$titleBarIconsColor",fontSize:"$$fontSizeXS",".icon_font":{display:"inline-block",textAlign:"center","paddingRight, paddingLeft":"6px",lineHeight:"$$titleBarHeight","&:hover":{"&":"$$titleBarItemHover"}},".button_container":{display:"inline-block",verticalAlign:"middle",cursor:"pointer",paddingTop:"2px"}},"&.ltr .icons":{"top, right":0,".button_container":{"&.last_child":{paddingRight:"3px"}}},"&.rtl .icons":{"top, left":0,".button_container":{"&.last_child":{paddingLeft:"3px"}}},"&.br, &.bm, &.bl":{"borderTopLeftRadius, borderTopRightRadius":"$$windowRadius"},"&.tr, &.tm, &.tl":{},"&.mobile":{zIndex:101,borderRadius:"0",".title":{fontSize:"$$fontSizeXL"},"&.ltr .icons, &.rtl .icons":{".button_container":{padding:0,"&.last_child":{padding:0}}}}},l(t,"meshim_widget_widgets_TitleBar"),d=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(16),i(7),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",addClass:"border_overlay"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"absolute","top, left":0,"width, height":"100%",borderRadius:"inherit"}},a(t,"meshim_widget_widgets_BorderOverlay"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="label"),o.call(this,e,i,n,r,a),void(null==a.selectable&&this.setSelectable(!1))):new t(e,i,n,r,a)}var o=i(17);return t.prototype=e(o.prototype),n(t,"jx_ui_Label"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_html_table=i(97),e.__$$__jx_ui_html_tbody=i(98),e.__$$__jx_ui_html_tr=i(99),e.__$$__jx_ui_html_td=i(100),t.exports=function(){function t(a,s,_,l,d){if(!(this instanceof t))return new t(a,s,_,l,d);s=s||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_html_table,"","",[[e.__$$__jx_ui_html_tbody,"","",[[e.__$$__jx_ui_html_tr,"","",[[e.__$$__jx_ui_html_td,"","",[[e.__$$__jx_ui_Widget,"bar","",[],{id:"bar",addClass:"bar"}]],{addClass:"td"}]],{}]],{}]],{addClass:"table"}],[e.__$$__jx_ui_Widget,"","",[],{addClass:"overlay"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",selectable:"false"}],c=u[0].call(this,a,s,null,n.mangleIDs(s,u[3]),u[4]),h=c||this;n.set(s,h);var p=n.get(s+"__bar");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){h.setColor=function(t){p.setBackground(t)},h.setBarWidth=function(t){p.setWidth(t)},h.setBarHeight=function(t){p.setHeight(t)},h.setMobile=function(t){if(r(t)){var e=parseInt(o.getVariable("titleBarHeight"),10),i=e/2.75,n=i/8;h.setWidth(e),h.setHeight(e),p.setWidth(i),p.setHeight(n)}}}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=i,h.__jx__native=!1),h}var i;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{width:"22px",height:"22px",position:"relative",overflow:"hidden"},".bar":{width:"10px",height:"2px",margin:"auto",backgroundColor:["$$titleBarColor","$$titleBarIconsColor"]},".table":{width:"100%",height:"100%",tableLayout:"fixed",borderSpacing:"0",borderCollapse:"collapse"},".td":{verticalAlign:"middle"},".overlay":{position:"absolute","top, left":"0","width, height":"100%",backgroundColor:"transparent"}},s(t,"meshim_widget_widgets_titleBar_MinimizeButton"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(16),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="table",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_table"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="tbody",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_tbody"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="tr",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_tr"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="td",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_td"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){var t=i(36),o=i(27),r=i(32),a=i(30),s=i(102),_=i(41),l={};return l.init=function(){var i,n=a.root,d=n.$("connection").$("status$string"),u=n.$("livechat").$("ui").$("popout$bool"),c=n.$("livechat").$("ui").$("mobile$bool"),h=n.$("livechat").$("ui").$("mockup$bool"),p=n.$("livechat").$("account").$("key$string"),g=n.$("livechat").$("profile").$("mid$string"),f=n.$("livechat").$("settings").$("language").$("language$string"),m=c.getValue()?"dialog=no,fullscreen=yes":"width=400,height=500,menubar=no,toolbar=no,location=no,personalbar=no,status=no,resizable=yes,scrollbars=no";l.openPopout=function(t){if(!e.bugs.noBoxSizing){var n=p.getValue()||r.ACCOUNT_KEY,o=c.getValue();if(!h.getValue()&&!u.getValue()&&n&&!_.isIEMobile){var a=l.getPopoutURL();if(i&&!i.closed&&i.focus){if(!o&&e.isChrome||_.isNativeAndroidMobile||_.isSafariIOSMobile)i.focus();else if(i.close(),i=window.open(a,r.POPOUT_WINDOW_PREFIX+n+new Date,m),!i||i.closed)return;return!0}if(o||t){try{i=window.open(a,r.POPOUT_WINDOW_PREFIX+n,m)}catch(s){}if(_.isChromeIOSMobile)return!0;if(!i||i.closed)return;try{i.focus()}catch(s){}return!0}}}},l.getPopoutURL=function(){var e={key:p.getValue()||r.ACCOUNT_KEY,mid:g.getValue(),lang:f.getValue(),hostname:window.location.hostname,api_calls:t.stringify(s.getPopoutAPICalls())},i=[r.POPOUT_URL,"?",o.buildQuery(e)],n=o.getHash("__zopim_widget_proxy");return n&&i.push("#",o.buildQuery({__zopim_widget_proxy:n})),i.join("")},l.isReady=function(){var t=d.getValue();return"registered"==t||"reattached"==t||"cookie_law"==t}},n(l,"meshim_widget_controllers_PopoutController"),l}()}).call(e,i(7),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(){C=A=S=!1,I=[],k=[],B=[],N=[],T=[],D=[],E=[],O={},j=R.root,j.$("connection").$("status$string").bindValue(r),j.$("connection").$("message$string").bindValue(a),P=j.$("tmp").$("api_settings"),W=j.$("tmp").$("server_settings")}function r(t){"reattached"==t?(S=!0,l()):"registered"!=t&&"cookie_law"!=t||(A=!0,_())}function a(t){"fast_init"==t&&(C=!0,s())}function s(){h(I),I.length=0,h(N)}function _(){h(k),k.length=0,h(T)}function l(){h(B),B.length=0,h(D)}function d(t,e){e&&N.push(t),C?p(t):e||I.push(t)}function u(t,e){e&&T.push(t),A?p(t):e||k.push(t)}function c(t,e){e&&D.push(t),S?p(t):e||B.push(t)}function h(t){if(t&&e(t))for(var i=0;i<t.length;i++)p(t[i])}function p(t){var e=z.call(arguments,1);try{t.apply(null,e)}catch(i){if(!window.console)return;if(!n(window.console.log))return;var o="Error in LiveChatAPI call",r=[];i.name&&r.push(i.name),i.message&&r.push(i.message),r.length&&(o+=": "+r.join(" - ")),window.console.log(o),n(window.console.dir)&&window.console.dir(i),window.console.log(t.toString())}}function g(t){return function(){var e=Array.prototype.slice.call(arguments);setTimeout(function(){t.apply(null,e)},0)}}function f(t){return q.test(t)}function m(t){F.fullyExtend(O,t),P&&P.update(O)}function $(t){F.fullyDelete(O,t),P&&(P.update(null),P.update(O))}function b(t){return t?W.getValue(t):W.getValue()}function w(t,e){E.push([t,e])}function x(){return E}function v(){var t;try{t=M.parse(L().get("api_calls"))}catch(i){}return e(t)?t:[]}function y(){return V}var j,C,A,S,I,k,B,N,T,D,E,P,O,W,L=i(27),R=i(30),F=i(38),M=i(36),V="Zendesk Chat",H={init:t,callNow:p,handleDelayed:h,callOnFastInit:d,callOnRegistered:u,callOnReattached:c,isHexColor:f,getCallbackCaller:g,saveAPISettings:m,resetAPISettings:$,getServerSettings:b,savePopoutAPICalls:w,getPopoutAPICalls:x,parseAPIFromQuery:v,getPrefix:y},z=Array.prototype.slice,q=/^#[0-9A-F]{6}$/i;return o(H,"meshim_widget_controllers_liveChatAPI_APIHelper"),H}()}).call(e,i(21),i(9),i(4))},function(t,e,i){(function(e,n,o,r,a,s){t.exports=function(){function t(){Y("UIController init"),se.mobile&&se.popout&&ie(),ee(),_(),le.userShowBadgeOrWindow=$,le.userShowWindow=b,le.userHideWindow=w,le.userHideBanner=x,le.userHideBubble=v,le.userDismissMobileNotification=de,le.userReplyMobileNotification=y,le.showWindow=j,le.hideWindow=C,le.toggleWindow=A,le.showBanner=S,le.hideBanner=I,le.showButton=k,le.hideButton=B,le.showMobileNotification=P,le.hideMobileNotification=O,le.disableMobileNotifications=W,le.hideAll=N,le.showBubble=T,le.hideBubble=D,le.resetBubble=E,le.setWindowUserHidden=R,le.setBannerUserHidden=F,le.setBubbleUserHidden=M,le.resetBubbleUserHidden=V,le.setHideWhenOffline=H,le.mobileNotificationsIgnoreChatButtonVisibility=L,le.showMenu=z,le.showProfileMenu=q,le.getAPIState=U,le.resetState=K}function _(){_t=!1,Z=Qt.root,Q=Z.$("livechat"),J=Q.$("settings"),tt=J.$("theme"),et=Q.$("ui"),it=et.$("chat_window"),nt=et.$("chat_button"),Ft=Q.$("profile").$("logged_in$bool"),Mt=Q.$("profile").$("auth").$("type$string"),Vt=J.$("login").$("allowed_types_count$int"),Ht=Q.$("settings").$("login").$("restrict_profile$bool"),Lt=it.$("menu_stack_name$string"),Rt=it.$("profile_menu").$("index$int"),ot=et.$("popout$bool"),rt=et.$("mobile$bool"),at=et.$("mockup$bool"),st=et.$("mobile_overlay$bool"),Xt=et.$("current_display$string"),Yt=et.$("previous_display$string"),G(ot,"popout",function(){p(),h()}),G(rt,"mobile",function(){p(),h()}),G(st,"mobile_overlay",h),G(at,"mockup"),bt=Z.$("connection").$("message$string"),G(bt,"connection_message",h),wt=Z.$("connection").$("status$string"),G(wt,"connection_status",function(){n(se.connection_status)&&se.connection_status&&(/disconnect|shutdown/.test(se.connection_status)||te.fromRefTime("conn_status_"+se.connection_status,.25)),l(),h()}),xt=Q.$("account").$("status$string"),G(xt,"account_status",function(){p(),h()}),vt=Q.$("channel").$("chatting$bool"),Et=et.$("chat_window").$("pre_chat_form").$("submitted$bool"),G(vt,"chatting",function(){l(),h()}),yt=Q.$("channel").$("served$bool"),G(yt,"chat_served",h),jt=J.$("behavior").$("do_not_display$bool"),Ct=J.$("banner").$("enabled$bool"),St=J.$("bubble").$("enabled$bool"),Bt=J.$("chat_button").$("hide_when_offline$bool"),Nt=it.$("user_hidden$bool"),Tt=it.$("user_hidden_banner$bool"),Dt=it.$("user_hidden_bubble$bool"),At=tt.$("chat_window").$("use_banner$bool"),kt=nt.$("bubble").$("display$bool"),It=tt.$("chat_button").$("use_bubble$bool"),G(jt,"do_not_display",h),G(Ct,"banner_enabled",h),G(St,"bubble_enabled",h),G(Bt,"hide_when_offline",h),G(Nt,"chat_window_user_hidden",h),G(Tt,"banner_user_hidden",h),G(Dt,"bubble_user_hidden",p),G(At,"use_banner",h),G(kt,"bubble_display",p),G(It,"use_bubble",p),Pt=Q.$("settings").$("forms").$("pre_chat_form").$("required$bool"),Pt.bindValue(d),Et.bindValue(d),zt=nt.$("display$bool"),qt=it.$("display$bool"),Ut=it.$("main_stack_name$string"),Gt=et.$("chat_notification").$("display$bool"),zt.bindValue(u),qt.bindValue(u),Ut.bindValue(u),Gt.bindValue(u),Wt=Q.$("agents"),Wt.bindKeys(c),_t=!0}function l(){se.chatting&&se.connection_status==re.REATTACHED&&(Y("UIController: setting pre_chat_form_submitted to true"),Et.update(!0))}function d(){var t=Pt.getValue(),e=Et.getValue(),i=t&&!e;i!=Ot&&(Ot=i,h())}function u(){var t,e,i=zt.getValue(),n=qt.getValue(),r=Ut.getValue(),a=Gt.getValue();t=o(i)&&o(n)&&o(a)?ne.UNDEFINED:n?r==oe.NEW_CHAT_FORM?ne.BANNER:ne.WINDOW:i?ne.BUTTON:a?ne.NOTIFICATION:ne.NONE,e=r,t==Kt&&e==Zt||(Kt=t,Zt=e,h())}function c(){if(!se.mockup){var t=xt.getValue(),e=Wt.getKeys().length,i=vt.getValue();i&&!e&&t==ae.OFFLINE&&Qt.livechat.endChat()}}function h(){function t(){Ot?(X(e,"pre_chat_form_required"),f([oe.PRE_CHAT_OFFLINE_FORM])):(X(e,"!pre_chat_form_required"),f([oe.CHAT_PANEL,oe.AGENT_LIST,oe.CARD_FORM,oe.POST_CHAT_FORM,oe.ABOUT_PANEL,oe.COOKIE_FORM]))}if(!_t)return void Y("UIController update: abort - binding not complete");if(ht)return void Y("UIController update: abort - display settings updating");if(ut)return void Y("UIController update: abort - api updating");if(ct)return void Y("UIController update: abort - user updating");if(lt)return void Y("UIController update: abort - updating loop");lt=!0;var e=[];if(se.account_status==ae.BANNED)X(e,ae.BANNED),se.popout?(X(e,"popout"),g(ne.WINDOW),f([oe.PRE_CHAT_OFFLINE_FORM])):(X(e,"!popout"),g(ne.UNDEFINED));else if(_e.api_display&&_e.api_stack)X(e,"api_display && api_stack");else if(!se.do_not_display||se.popout||_e.api_display||se.chatting||Kt!=ne.UNDEFINED)if(!se.mobile||se.mobile_overlay||se.popout){if(se.connection_status==re.COOKIE_LAW)X(e,"cookie_law"),_e.api_display?X(e,"api_display"):Kt==ne.NONE?X(e,"none"):se.popout?(X(e,"popout"),g(ne.WINDOW)):(X(e,"!popout"),Kt==ne.UNDEFINED?(X(e,"undefined"),g(ne.BUTTON)):X(e,"!undefined")),f([oe.COOKIE_FORM]);else if(se.connection_status==re.REGISTERED||se.connection_status==re.REATTACHED||se.connection_message==re.FAST_INIT)if(X(e,"registered/reattached/fast_init"),se.chatting)X(e,"chatting"),_e.api_display?(X(e,"api_display"),se.mobile_overlay&&(Kt===ne.BUTTON||_e.mobile_notifications_ignore_chat_button_visibility&&Kt!==ne.WINDOW)&&ft?(X(e,"overlay && (displaying button || ignoring chat button visibility && not displaying window) && has mobile notification"),g(ne.NOTIFICATION)):(X(e,"!overlay || !displaying button && !(ignoring chat button visibility && not displaying window) || !has mobile notification"),Kt!==ne.NOTIFICATION||ft?X(e,"!displaying notification || has mobile notification"):(X(e,"displaying notification && !has mobile notification"),g(_e.api_display)))):(X(e,"!api_display"),se.mobile_overlay?(X(e,"overlay"),se.chat_window_user_hidden?(X(e,"user hidden"),ft?(X(e,"has mobile notification"),g(ne.NOTIFICATION)):(X(e,"!has mobile notification"),g(ne.BUTTON))):(X(e,"!user hidden"),gt?(X(e,"user_shown_window_before"),g(ne.WINDOW)):(X(e,"!user_shown_window_before"),ft?(X(e,"has mobile notification"),g(ne.NOTIFICATION)):(X(e,"!has mobile notification"),g(ne.BUTTON))))):(X(e,"!overlay"),se.chat_window_user_hidden?(X(e,"user hidden"),se.popout?(X(e,"popout"),g(ne.WINDOW)):(X(e,"!popout"),Kt==ne.UNDEFINED?(X(e,"undefined"),g(ne.BUTTON)):X(e,"!undefined"))):(X(e,"!user hidden"),g(ne.WINDOW)))),f(se.chat_served?[oe.CHAT_PANEL,oe.AGENT_LIST,oe.CARD_FORM,oe.ABOUT_PANEL,oe.RATING_PANEL,oe.COOKIE_FORM]:[oe.CHAT_PANEL,oe.AGENT_LIST,oe.CARD_FORM,oe.ABOUT_PANEL,oe.COOKIE_FORM]);else if(se.account_status==ae.ONLINE||se.account_status==ae.AWAY)if(X(e,"online/away"),_e.api_display)X(e,"api_display"),t();else if(se.popout||Kt==ne.WINDOW)X(e,"popout/window"),se.popout?(X(e,"popout"),g(ne.WINDOW)):X(e,"window"),t();else if(Kt==ne.NONE)X(e,"none");else if(se.banner_enabled&&se.use_banner)switch(X(e,"show banner"),Kt){case ne.UNDEFINED:X(e,"none"),se.banner_user_hidden?(X(e,"user hidden"),g(ne.BUTTON)):(X(e,"!user hidden"),g(ne.BANNER));break;case ne.BUTTON:X(e,"button"),se.banner_user_hidden?X(e,"user hidden"):(X(e,"!user hidden"),g(ne.BANNER));break;case ne.BANNER:X(e,"banner")}else X(e,"!show banner"),Kt===ne.BUTTON?X(e,"button"):(X(e,Kt),g(ne.BUTTON));else se.account_status==ae.OFFLINE&&(X(e,ae.OFFLINE),_e.api_display?X(e,"api_display"):se.popout?(X(e,"popout"),g(ne.WINDOW)):Kt==ne.NONE?X(e,"none"):se.hide_when_offline?(X(e,"hide when offline"),g(ne.UNDEFINED)):(X(e,"!hide when offline"),Kt==ne.WINDOW?X(e,"window"):(X(e,"!window"),g(ne.BUTTON))),f([oe.PRE_CHAT_OFFLINE_FORM]))}else X(e,"mobile"),_e.api_display?X(e,"api_display"):(X(e,"!api_display"),Kt==ne.NONE?X(e,"none"):(X(e,"!none"),se.do_not_display||se.account_status==ae.OFFLINE&&se.hide_when_offline?(X(e,"do_not_display || (account_status == offline && hide_when_offline)"),se.chatting?(X(e,"chatting"),g(ne.BUTTON)):(X(e,"!chatting"),g(ne.UNDEFINED))):(X(e,"!(do_not_display || (account_status == offline && hide_when_offline))"),g(ne.BUTTON))));else X(e,"do not display, !popout, !api_display");Y("UIController update: "+(e.join(" > ")||"no path")),lt=!1}function p(){if(!_t)return void Y("UIController Bubble update: abort - binding not complete");if(pt)return void Y("UIController Bubble update: abort - bubble settings updating");if(ut)return void Y("UIController Bubble update: abort - api updating");if(ct)return void Y("UIController Bubble update: abort - user updating");if(dt)return void Y("UIController Bubble update: abort - updating loop");dt=!0;var t=[];se.mobile||se.popout?(X(t,"mobile || popout"),m(!1)):(X(t,"!mobile && !popout"),se.use_bubble?(X(t,"use_bubble"),_e.api_bubble?X(t,"bubble_api"):(X(t,"!bubble_api"),se.bubble_enabled?(X(t,"bubble_enabled"),se.account_status==ae.ONLINE||se.account_status==ae.AWAY?(X(t,"online || away"),se.bubble_user_hidden?(X(t,"user_hidden_bubble"),m(!1)):(X(t,"!user_hidden_bubble"),o(se.bubble_display)?(X(t,"undefined"),m(!0)):X(t,"!undefined"))):(X(t,ae.OFFLINE),m(void 0))):(X(t,"!bubble_enabled"),m(!1)))):(X(t,"!use_bubble"),m(void 0))),Y("UIController Bubble update: "+(t.join(" > ")||"no path")),dt=!1}function g(t){Y("UIController setDisplay: "+t),mt=qt.getValue(),ht=!0;var e=Xt.getValue();switch(e!==t&&(Yt.update(e),Xt.update(t)),t){case ne.UNDEFINED:zt.update(void 0),qt.update(void 0),Gt.update(void 0);break;case ne.NONE:zt.update(!1),qt.update(!1),Gt.update(!1);break;case ne.BUTTON:zt.update(!0),qt.update(!1),Gt.update(!1);break;case ne.BANNER:Ut.getValue()!=oe.NEW_CHAT_FORM&&($t=Ut.getValue(),Ut.update(oe.NEW_CHAT_FORM)),zt.update(!1),qt.update(!0),Gt.update(!1);break;case ne.NOTIFICATION:zt.update(!1),qt.update(!1),Gt.update(!0);break;case ne.WINDOW:Ut.getValue()==oe.NEW_CHAT_FORM&&(f($t?[$t]:[oe.PRE_CHAT_OFFLINE_FORM,oe.CHAT_PANEL,oe.POST_CHAT_FORM,oe.COOKIE_FORM,oe.CARD_FORM,oe.AGENT_LIST,oe.RATING_PANEL]),$t=null),zt.update(!1),Gt.update(!1),qt.update(!0)}ut||(mt&&t!=ne.WINDOW?le.fire("API:window:hide"):mt||t!=ne.WINDOW||le.fire("API:window:show")),ht=!1}function f(t){t&&t.length&&r(Zt,t)==-1&&Ut.update(t[0])}function m(t){Y("UIController setBubble: "+t),pt=!0,kt.update(t),pt=!1}function $(){if(!se.mobile){ct=!0;var t=Ut.getValue();g(se.banner_enabled&&t==oe.NEW_CHAT_FORM&&se.use_banner?ne.BANNER:ne.WINDOW),_e.api_display=!1,_e.api_stack=!1,ct=!1,h()}}function b(){se.mobile&&!se.mobile_overlay||Kt!=ne.WINDOW&&(ct=!0,Nt.update(!1),gt=!0,g(ne.WINDOW),_e.api_display=!1,_e.api_stack=!1,ct=!1,h())}function w(){se.mobile&&!se.mobile_overlay||Kt!=ne.BUTTON&&(ct=!0,le.setWindowUserHidden(),g(se.do_not_display?ne.NONE:ne.BUTTON),_e.api_display=!1,_e.api_stack=!1,ct=!1,h())}function x(){se.mobile||Kt==ne.BUTTON||(ct=!0,le.setBannerUserHidden(),g(se.do_not_display?ne.NONE:ne.BUTTON),_e.api_display=!1,_e.api_stack=!1,ct=!1,h())}function v(){se.mobile||(ct=!0,le.setBubbleUserHidden(),m(!1),_e.api_bubble=!1,ct=!1,p())}function y(){ft=!1,b()}function j(){Y("API update: showWindow"),se.mobile&&!se.mobile_overlay?Jt.openPopout(!0):(ut=!0,ft&&(ft=!1),g(ne.WINDOW),_e.api_display=ne.WINDOW,ut=!1,h())}function C(){se.mobile&&!se.mobile_overlay||(Y("API update: hideWindow"),ut=!0,se.do_not_display?(g(ne.NONE),_e.api_display=ne.NONE):(g(ne.BUTTON),_e.api_display=ne.BUTTON),ut=!1,h())}function A(){se.mobile&&!se.mobile_overlay||(Y("API update: toggleWindow"),Kt==ne.WINDOW?le.hideWindow():le.showWindow())}function S(){!se.mobile&&se.use_banner&&(Y("API update: showBanner"),ut=!0,g(ne.BANNER),_e.api_display=ne.BANNER,_e.api_stack=ne.BANNER,ut=!1,h())}function I(){se.mobile||(Y("API update: hideBanner"),ut=!0,se.do_not_display?(g(ne.NONE),_e.api_display=ne.NONE):(g(ne.BUTTON),_e.api_display=ne.BUTTON),_e.api_stack=!1,ut=!1,h())}function k(){Y("API update: showButton"),ut=!0,g(ne.BUTTON),_e.api_display=ne.BUTTON,ut=!1,h()}function B(){Y("API update: hideButton"),ut=!0,se.mobile?(ft&&(ft=!1),_e.api_display=ne.NONE,g(ne.NONE)):(_e.api_display=ne.WINDOW,g(ne.WINDOW)),ut=!1,h()}function N(){Y("API update: hideAll"),ut=!0,g(ne.NONE),_e.api_display=ne.NONE,ft&&(ft=!1),ut=!1,h()}function T(){se.mobile||(Y("API update: showBubble"),ut=!0,m(!0),_e.api_bubble=!0,ut=!1,p())}function D(){se.mobile||(Y("API update: hideBubble"),ut=!0,m(!1),_e.api_bubble=!0,ut=!1,p())}function E(){se.mobile||(Y("API update: resetBubble"),ut=!0,le.resetBubbleUserHidden(),m(!0),_e.api_bubble=!0,ut=!1,p())}function P(){(Kt===ne.BUTTON||_e.mobile_notifications_ignore_chat_button_visibility&&Kt!==ne.WINDOW)&&(_e.disable_mobile_notifications||(ft=!0,
h()))}function O(){ft=!1,h()}function W(t){o(t)&&(t=!0),_e.disable_mobile_notifications=t}function L(t){o(t)&&(t=!0),_e.mobile_notifications_ignore_chat_button_visibility=t}function R(){Nt.update(!0)}function F(){Tt.update(!0)}function M(){Dt.update(!0)}function V(){Dt.update(!1)}function H(t){Bt.update(t)}function z(t){Lt.update(t)}function q(){Ht.getValue()||(le.showMenu("profile_menu"),Rt.update(Ft.getValue()?Mt.getValue()?1:2:se.mobile?2:Vt.getValue()?0:2))}function U(){return _e}function G(t,e,i){t&&a(t.bindValue)&&t.bindValue(function(t){se[e]!=t&&(se[e]=t,a(i)&&i())})}function Y(t){}function X(t,e){}function K(){gt=void 0,ft=void 0,_e={api_display:!1,api_stack:!1,api_bubble:!1}}var Z,Q,J,tt,et,it,nt,ot,rt,at,st,_t,lt,dt,ut,ct,ht,pt,gt,ft,mt,$t,bt,wt,xt,vt,yt,jt,Ct,At,St,It,kt,Bt,Nt,Tt,Dt,Et,Pt,Ot,Wt,Lt,Rt,Ft,Mt,Vt,Ht,zt,qt,Ut,Gt,Yt,Xt,Kt,Zt,Qt=i(30),Jt=i(101),te=i(49),ee=i(104),ie=i(105),ne={UNDEFINED:"undefined",NONE:"none",BUTTON:"button",BANNER:"banner",WINDOW:"window",NOTIFICATION:"notification"},oe={NEW_CHAT_FORM:"new_chat_form",PRE_CHAT_OFFLINE_FORM:"pre_chat_offline_form",CHAT_PANEL:"chat_panel",POST_CHAT_FORM:"post_chat_form",COOKIE_FORM:"cookie_form",CARD_FORM:"card_form",AGENT_LIST:"agent_list",ABOUT_PANEL:"about_panel",RATING_PANEL:"rating_panel"},re={COOKIE_LAW:"cookie_law",REATTACHED:"reattached",REGISTERED:"registered",FAST_INIT:"fast_init"},ae={ONLINE:"online",AWAY:"away",OFFLINE:"offline",BANNED:"banned"},se={},_e={api_display:!1,api_stack:!1,api_bubble:!1},le=e.extend({init:t}),de=O;return s(le,"meshim_widget_controllers_UIController"),le}()}).call(e,i(6),i(19),i(10),i(24),i(9),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){r||(r=!0,e&&e.onLanguage&&(o.prototype.setTitle=function(t){function i(){o.setTitle(o._l10nTitleValue)}function n(){e.unLanguage(i)}var o=this;return e&&e.onLanguage&&!this._l10nTitleBound&&(this._l10nTitleBound=!0,e.onLanguage(i),this.onDestruction(n)),this._l10nTitleValue=t,this.dom.title=this._l10nTitleValue||"",this}))}var o=i(18),r=!1;return n(t,"meshim_widget_utils_HackTitleLocalization"),t}()}).call(e,i(22),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){function t(n){return this.jx_wrapper?t.call(this.jx_wrapper,n):(n.stopPropagation(),this.dom.addEventListener("touchend",i,!1),this.doc.body.addEventListener("touchmove",e,!1),this.startX=n.touches[0].clientX,void(this.startY=n.touches[0].clientY))}function e(t){return this.jx_wrapper?e.call(this.jx_wrapper,t):void((Math.abs(t.touches[0].clientX-this.startX)>10||Math.abs(t.touches[0].clientY-this.startY)>10)&&r.call(this))}function i(t){return this.jx_wrapper?i.call(this.jx_wrapper,t):(t.stopPropagation(),r.call(this),this.nativeHandlers.click(t),void("touchend"!=t.type||this.allowGhostClick||a(this.startX,this.startY)))}function r(){return this.jx_wrapper?r.call(this.jx_wrapper):(this.dom.removeEventListener("touchend",i,!1),void this.doc.body.removeEventListener("touchmove",e,!1))}function a(t,e){u.push(t,e),window.setTimeout(s,2500)}function s(){u.splice(0,2)}function _(t){for(var e=0;e<u.length;e+=2){var i=u[e],n=u[e+1];Math.abs(t.clientX-i)<25&&Math.abs(t.clientY-n)<25&&(t.stopPropagation(),t.preventDefault())}}if(!n){n=!0;var l=o.prototype.on,d=o.prototype.un;o.prototype.on=function(e){return"click"!=e||this.allCallbacks.click&&this.allCallbacks.click.length||(this.dom.addEventListener("touchstart",t,!1),this.dom.addEventListener("click",i,!1)),l.apply(this,arguments)},o.prototype.un=function(e){var n=d.apply(this,arguments);return"click"!=e||this.allCallbacks.click&&this.allCallbacks.click.length||(this.dom.removeEventListener("touchstart",t,!1),this.dom.removeEventListener("click",i,!1)),n},n=!0;var u=[];window.document.addEventListener("click",_,!0)}}var n,o=i(18);return e(t,"meshim_widget_utils_HackFastButtons"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_BorderOverlay=i(94),e.__$$__meshim_widget_widgets_Branding=i(85),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_BorderOverlay,"","",[],{}],[e.__$$__jx_ui_Widget,"$$defaultplacement$$","",[],{addClass:"actions",container:"default",id:"$$defaultplacement$$"}],[e.__$$__meshim_widget_widgets_Branding,"","",[],{addClass:"branding",hideOnMobile:"true"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","class":"action_bar",selectable:"false"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__$$defaultplacement$$");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),h.defaultPlacement=p;var g=function(){function t(){e.mobile(h),e.rtl(h)}var e=i(89);t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"absolute","bottom, left":0,overflow:"hidden",zIndex:10,width:"$$actionBarWidth",height:"$$actionBarHeight",color:"$$actionBarColor",background:"$$actionBarBg","paddingLeft, paddingRight":"$$actionBarPadding"},".border_overlay":{borderWidth:"$$actionBarBorderWidth",borderStyle:"$$actionBarBorderStyle",borderColor:"$$actionBarBorderColor"},".actions":{"float":"left"},".branding":{position:"relative","float":"right",color:"$$actionBarColor",lineHeight:"$$actionBarHeight",".meshim_widget_widgets_IconFont":{"*color":"$$actionBarColor","*lineHeight":"$$actionBarHeight","*textDecoration":"none"},"&:hover":{color:"$$actionBarHoverColor"}},"&.rtl":{".actions":{"float":"right"},".branding":{"float":"left"}}},a(t,"meshim_widget_widgets_ActionBar"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_Label=i(95),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Label,"","",[],{text:"≡"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.autobind(r,"value",e),h.on("click",n)}function e(t){t?h.addClass("isActive"):h.removeClass("isActive")}function n(t){t.stopPropagation(),r.update("settings_menu"===r.getValue()?"":"settings_menu")}var o=i(30),r=o.root.$("livechat").$("ui").$("chat_window").$("menu_stack_name$string");t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{"width, height":"$$titleBarHeight",lineHeight:"$$titleBarHeight",textAlign:"center",color:"$$actionBarColor",fontSize:"30px","&.isActive":{backgroundColor:"$$actionBarBg"}}},a(t,"meshim_widget_widgets_MobileOptionsMenuIcon"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ActionBar=i(106),e.__$$__jx_ui_html_span=i(109),e.__$$__jx_ui_Button=i(110),e.__$$__meshim_widget_widgets_CookieLawNotice=i(113),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(199),h=o(200),p=[e.__$$__meshim_widget_widgets_ActionBar,"","",[[e.__$$__jx_ui_html_span,"default_actions","",[[e.__$$__jx_ui_Button,"settings","backgroundColor:transparent;",[c],{id:"settings",addClass:"settings",tabIndex:"",type:"button",style:"backgroundColor:transparent;"}],[e.__$$__jx_ui_html_span,"divider","",[],{id:"divider","class":"divider",text:"•"}],[e.__$$__jx_ui_Button,"profile","backgroundColor:transparent;",[[e.__$$__jx_ui_html_span,"logged_out","",[h],{id:"logged_out"}],[e.__$$__jx_ui_html_span,"name","",[],{id:"name","class":"logged_in_name"}]],{id:"profile",addClass:"profile",tabIndex:"",type:"button",style:"backgroundColor:transparent;"}]],{id:"default_actions",display:"none"}],[e.__$$__meshim_widget_widgets_CookieLawNotice,"cookie_law","",[],{id:"cookie_law",addClass:"cookie_law"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets"}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__default_actions"),$=n.get(s+"__settings"),b=n.get(s+"__divider"),w=n.get(s+"__profile"),x=n.get(s+"__logged_out"),v=n.get(s+"__name"),y=n.get(s+"__cookie_law");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var j=function(){function t(){function t(){s?(_&&!j.isDefaultName(_)?v.setText(c.replace("<name>",_)):v.setText(h),x.setDisplay("none"),v.setDisplay("")):(x.setDisplay(""),v.setDisplay("none"))}f.autobind(O,"value",function(t){u=t,b.setDisplay(t?"none":""),w.setDisplay(t?"none":"")}),f.autobind(D,"value",function(t){l=t;for(var e in A)A.hasOwnProperty(e)&&A[e][(e==t?"add":"remove")+"Class"]("active")}),f.autobind(I,"value",function(e){s=e,t()}),f.autobind(k,"value",function(e){_=e||"",t()}),o&&o.onLanguage&&o.onLanguage(t),$.on("click",function(t){t.stopPropagation(),C.isIEMobile?D.update("settings_menu"):D.update("settings_menu"==l?"":"settings_menu"),P.getValue()&&p.resetUnreadCount()}),w.on("click",function(t){t.stopPropagation(),u||D.update("profile_menu"==l?"":"profile_menu")}),f.autobind(E,"value",function(t){d&&f.removeClass("action_bar_"+d),d=t,d&&f.addClass("action_bar_"+d)}),f.autobind(N,"value",e),f.autobind(T,"value",e),f.autobind(W,"value",a)}function e(){N.getValue()?T.getValue()?r():n():r()}function n(){"hidden"==B&&(y.setDisplay(""),m.setDisplay("none"),B="visible")}function r(){"visible"==B&&(y.setDisplay("none"),m.setDisplay(""),B="hidden")}function a(t){var e=!!t;w.setDisabled(e),e&&"profile_menu"==l&&D.update("")}var s,_,l,d,u,c=o(201),h=o(202),p=i(79),g=i(30),j=i(38),C=i(41),A={settings_menu:$,profile_menu:w},S=g.root.$("livechat"),I=S.$("profile").$("logged_in$bool"),k=S.$("profile").$("display_name$string"),B="visible",N=S.$("settings").$("cookie_law").$("enabled$bool"),T=S.$("profile").$("allow_cookies$bool"),D=g.root.$("livechat").$("ui").$("chat_window").$("menu_stack_name$string"),E=S.$("settings").$("theme").$("chat_window").$("size$string"),P=S.$$("ui.popout$bool"),O=S.$("settings").$("login").$("restrict_profile$bool"),W=g.root.$("connection").$("message$string");t()}();for(var C in j)j.hasOwnProperty(C)&&(f[C]=j[C]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ActionBar.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ActionBar,t.__jx__jcss={button:{position:"relative",verticalAlign:"top",textAlign:"left","background, backgroundColor":"transparent",border:"none",lineHeight:"$$actionBarHeight"},"button, button *":{cursor:"pointer","&.disabled":{cursor:"default",color:"$$actionBarColorDiabled"}},".logged_in_name":{display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","*height":"1em","*verticalAlign":"top"},".divider":{display:"inline-block",fontSize:"0.8em",lineHeight:"$$actionBarHeight",margin:"0 5px",cursor:"default",opacity:.5},"button, .divider":{color:"$$actionBarColor"},"button:hover":{color:"$$actionBarHoverColor"},".cookie_law":{position:"relative"},"&.action_bar_small  .logged_in_name":{"maxWidth, *width":"120px"},"&.action_bar_medium .logged_in_name":{"maxWidth, *width":"160px"},"&.action_bar_large  .logged_in_name":{"maxWidth, *width":"180px"}},s(t,"meshim_widget_widgets_actionBar_DefaultActionBar"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="span",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_span"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="button"),void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(111);return t.prototype=e(o.prototype),n(t,"jx_ui_Button"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){t.exports=function(){function t(i,n,o,r,a){if(!(this instanceof t))return new t(i,n,o,r,a);if(a||(a={}),a.tagName||(a.tagName="input"),_.call(this,i,n,o,r,a),e.engineIE<=8&&a.type&&a.tagName&&"input"==a.tagName.toLowerCase()){var s=this.parentNode;this.parentNode.removeChild(this.parentNode instanceof d?this:this.dom),this.dom=i.doc.createElement("<"+a.tagName+' type="'+a.type+'" name="'+(a.name||"")+'"/>'),this.dom.jx_wrapper=this,this.style=this.dom.style,s.appendChild(s instanceof d?this:this.dom),this.setStyle(o),this.setAttributes(a),this.addClass(this.__jx__fqname)}a.initialValue&&this.setValue(a.initialValue),this.setAttribute("id",this.jx_id),a.label&&this.setLabel(a.label),a.errorMessage&&this.setErrorMessage(a.errorMessage),this.on("blur",function(){this.onAutoValidate()})}var s=i(95),_=i(17),l=i(112),d=i(18),u=/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+([a-z0-9][a-z0-9-]*[a-z0-9])$/i,c=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/i,h={required:1,pattern:2,maxlength:4,min:8,max:16,step:32},p={button:1,checkbox:1,email:7,hidden:0,number:57,password:3,radio:1,range:25,reset:0,search:7,select:1,submit:0,tel:7,text:63,textarea:1,url:7};t.prototype=n(_.prototype),t.prototype.getLabel=function(){return this.label&&this.label.getText()},t.prototype.setLabel=function(t){return t&&this.createLabel(t),this.label&&this.label.setText(t),this},t.prototype.createLabel=function(t){return this.label instanceof d?this:this.dom.parentNode?(this.label=new s(this.parentNode,null,null,null,{tagName:"label"}),this.getNextSibling()!=this.label&&this.parentNode.insertBefore(this.label,this.getNextSibling()),this.label.setAttribute("for",this.jx_id||""),this.label.addClass("label"),this.label.addClass(this.attributes.type||this.getInputType()||""),this.label.setText(t||this.attributes.label||""),this.defaultLabel=!0,this):this},t.prototype.getLabelElement=function(){return this.label},t.prototype.setLabelElement=function(t){return t instanceof d?(this.defaultLabel&&this.label.destroy(),this.label=t,this.label.setAttribute("for",this.jx_id||""),this.defaultLabel=!1,this):this},t.prototype.getErrorMessage=function(){return this.errorMessage&&this.errorMessage.getText()},t.prototype.setErrorMessage=function(t){return t&&this.createErrorMessage(t),this.errorMessage&&this.errorMessage.setText(t),this},t.prototype.showErrorMessage=function(){return this.errorMessage&&this.errorMessage.setVisible(!0).setDisplay(""),this},t.prototype.hideErrorMessage=function(){return this.errorMessage&&this.errorMessage.setVisible(!1),this},t.prototype.createErrorMessage=function(t){return this.errorMessage instanceof d?this:this.dom.parentNode?(this.errorMessage=new s(this.parentNode,null,null,null,{tagName:"label"}),(this.label?this.label.getNextSibling():this.getNextSibling())!=this.errorMessage&&this.parentNode.insertBefore(this.errorMessage,this.label?this.label.getNextSibling():this.getNextSibling()),this.errorMessage.setAttribute("for",this.jx_id||""),this.errorMessage.addClass("error_message"),this.errorMessage.addClass(this.attributes.type||this.getInputType()||""),this.setErrorMessage(t||this.attributes.errorMessage||""),this.hideErrorMessage(),this.defaultErrorMessage=!0,this):this},t.prototype.getErrorMessageElement=function(){return this.errorMessage},t.prototype.setErrorMessageElement=function(t){return t instanceof d?(this.defaultErrorMessage&&this.errorMessage.destroy(),this.errorMessage=t,this.errorMessage.setAttribute("for",this.jx_id||""),this.defaultErrorMessage=!1,this):this},t.prototype.validate=function(t){var e=this.getInputType(),i=this.getValue(),n=p[e],o=this.dom,r=(!(n&h.required)||!o.required||""!==(i||"").trim()&&null!=i)&&(!(n&h.pattern)||!o.pattern||new RegExp(o.pattern).test(i))&&(!(n&h.maxlength)||!(o.maxLength&&o.maxLength>=0)||i.length<=o.maxLength)&&(!(n&h.min)||!o.min||parseFloat(i)>=parseFloat(o.min))&&(!(n&h.max)||!o.max||parseFloat(i)<=parseFloat(o.max))&&("email"!=e||(o.required?u.test(i):""===i||u.test(i)))&&("url"!=e||(o.required?c.test(i):""===i||c.test(i)));return!r&&t&&this.focus(),this.setValidity(r),r},t.prototype.getValidity=function(){return this.validity},t.prototype.setValidity=function(t){return this.validity=o(t),this.validity?(this.hideErrorMessage(),this.addClass("valid"),this.removeClass("invalid")):(this.showErrorMessage(),this.removeClass("valid"),this.addClass("invalid")),this},t.prototype.getAutoValidate=function(){return this.autoValidate},t.prototype.setAutoValidate=function(t){return this.autoValidate=o(t),this},t.prototype.onAutoValidate=function(){if(this.autoValidate&&!this.getDisabled()&&!this.getReadOnly())return this.validate()},t.prototype.reset=function(){var t=this.getType();return"submit"==t||"reset"==t?this:(this.setValue(this.getInitialValue()||"").setValidity(!0),this)};var g="textarea button select".split(" ");return t.prototype.getInputType=function(){return r(this.tagName,g)!=-1?this.tagName:this.getType()},t.prototype.getType=function(){return this.validationType||_.prototype.getType.call(this)},t.prototype.setType=function(t){this.validationType=t,_.prototype.setType.call(this,t)},t.prototype.getInitialValue=function(){return e.engineIE<=8?this._initialValue:this.dom.getAttribute("value")},t.prototype.setInitialValue=function(t){return e.engineIE<=8?this._initialValue=t&&(t.toString?t.toString():t):this.setAttribute("value",t),this},t.prototype.getRequired=function(){return this.dom.required},t.prototype.setRequired=function(t){return this.dom.required=o(t),this},t.prototype.getPattern=function(){return this.dom.pattern},t.prototype.setPattern=function(t){return this.dom.pattern=t,this},t.prototype.getMin=function(){return this.dom.min},t.prototype.setMin=function(t){return this.dom.min=t,this},t.prototype.getMax=function(){return this.dom.max},t.prototype.setMax=function(t){return this.dom.max=t,this},t.prototype.getMaxLength=function(){return this.dom.maxLength},t.prototype.setMaxLength=function(t){return this.dom.maxLength=parseInt(t,10),this},t.prototype.getStep=function(){return this.dom.step},t.prototype.setStep=function(t){return this.dom.step=t,this},t.prototype.getMultiple=function(){return this.dom.multiple},t.prototype.setMultiple=function(t){return this.dom.multiple=o(t),this},t.prototype.getAutocomplete=t.prototype.getAutoComplete=l.prototype.getAutocomplete,t.prototype.setAutocomplete=t.prototype.setAutoComplete=l.prototype.setAutocomplete,t.prototype.select=function(){return this.dom.select&&this.dom.select(),this},t.prototype.getForm=function(){return this.dom.form&&(this.dom.form.jx_wrapper||this.dom.form)},a(t,"jx_ui_Input"),t}()}).call(e,i(7),i(14),i(16),i(24),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(e,i,n,o,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="form"),a.method||(a.method="post"),r.call(this,e,i,n,o,a),this.on("submit",function(t){if(!this.validate())return void t.preventDefault()}),void this.on("reset",function(t){t.preventDefault(),this.reset()})):new t(e,i,n,o,a)}var r=i(17);return t.prototype=e(r.prototype),t.prototype.submit=function(){return this.dom.submit(),this},t.prototype.reset=function(){for(var t=this.getElements(),e=0;e<t.length;e++)t[e].reset&&t[e].reset();return this},t.prototype.getElements=function(){for(var t=[],e=0,i=this.dom.elements.length;e<i;e++)t.push(this.dom.elements[e].jx_wrapper||this.dom.elements[e]);return t},t.prototype.getAutocomplete=t.prototype.getAutoComplete=function(){return this.dom.autocomplete},t.prototype.setAutocomplete=t.prototype.setAutoComplete=function(t){return void 0===this.dom.autocomplete?this:"on"===t||"off"===t?(this.dom.autocomplete=t,this):(t=n(t),this.dom.autocomplete=t?"on":"off",this)},t.prototype.getNoValidate=function(){return this.dom.noValidate},t.prototype.setNoValidate=function(t){return this.dom.noValidate=n(t),this},t.prototype.getMethod=function(){return this.dom.method},t.prototype.setMethod=function(t){return this.dom.method=t,this},o(t,"jx_ui_Form"),t}()}).call(e,i(14),i(16),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_div=i(114),e.__$$__jx_ui_Localizer=i(115),e.__$$__jx_ui_html_a=i(88),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(196),h=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_Localizer,"localizer","",[[e.__$$__jx_ui_html_a,"","",[],{"class":"cookie_link"}]],{id:"localizer",content:c}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__localizer");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){f.on("click",function(t){t.target.jx_wrapper.hasClass("cookie_link")&&n.update({main_stack_name$string:"cookie_form"})})}var e=i(30),n=e.root.$$("livechat.ui.chat_window");t()}();for(var $ in m)m.hasOwnProperty($)&&(g[$]=m[$]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={".cookie_link":{textDecoration:"underline",cursor:"pointer"}},s(t,"meshim_widget_widgets_CookieLawNotice"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="div",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_div"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(i,n,o,r,a){if(!(this instanceof t))return new t(i,n,o,r,a);a||(a={}),this.childConstructors=[],this.childAttributes=[],this.delimiter="@",s.call(this,i,n,o,r,a);var _=this;this._updateContent=function(){_.updateContent()},e&&e.onLanguage&&e.onLanguage(this._updateContent),this.onDestruction(function(){e&&e.unLanguage&&e.unLanguage(_._updateContent)})}function a(t){return t.replace(/&#([0-9]{1,4});/g,function(t,e){return String.fromCharCode(e)})}var s=i(17);return t.prototype=n(s.prototype),t.prototype.appendChild=function(t){o(t)?(this.childConstructors.push(t[0]),this.childAttributes.push(t[4]),this._localizer_appendchild_override||this.updateContent()):s.prototype.appendChild.call(this,t)},t.prototype.updateContent=function(){this.setContent(this.getContent())},t.prototype.getContent=function(){return this.content},t.prototype.setContent=function(t){if(this.content=t,this.empty(),t){t.toString&&(t=t.toString());for(var e,i=t,n=i.length,o=0,r=this.delimiter,_=r.length,l=0;o<n&&o!=-1;)if(e=i.indexOf(r,o),e==-1&&(e=n),e>o&&(this._localizer_appendchild_override=!0,s.prototype.appendChild.call(this,[s,null,null,[a(i.slice(o,e))],{tagName:"label",display:"inline"}]),this._localizer_appendchild_override=!1,o=e),e==o&&e!=n){var d=i.indexOf(r,e+_);d==-1&&(d=n),this._localizer_appendchild_override=!0,s.prototype.appendChild.call(this,[this.childConstructors[l]||s,null,null,[a(i.slice(o+_,d))],this.childAttributes[l]||{tagName:"label",display:"inline"}]),this._localizer_appendchild_override=!1,o=d+_,l++}return this}},t.prototype.setChildProperties=function(t,e,i){this.childConstructors[t]=e,this.childAttributes[t]=i},t.prototype.clearChildProperties=function(){this.childConstructors.length=this.childAttributes.length=0},t.prototype.getDelimiter=function(){return this.delimiter},t.prototype.setDelimiter=function(t){return this.delimiter=t,this.updateContent(),this},r(t,"jx_ui_Localizer"),t}()}).call(e,i(22),i(14),i(21),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){var t=o.getVariable(r);h.setStyle("padding-top",r&&t||"")}function e(){var t=o.getVariable(a);h.setStyle("padding-bottom",a&&t||"")}function n(){h.autobind(_,"value",function(i){i&&(t(),e())}),h.updatePaddingTop=t,h.updatePaddingBottom=e}var r,a,s=i(30),_=s.root.$("livechat").$("ui").$("theme_loaded$bool");h.setAbsPaddingTop=function(e){r=e,t()},h.setAbsPaddingBottom=function(t){a=t,e()},n()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative","*overflow":"visible",width:"100%",height:"100%"}},a(t,"meshim_widget_widgets_AbsolutePaddingContainer"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_html_table=i(97),e.__$$__jx_ui_html_tbody=i(98),e.__$$__jx_ui_html_tr=i(99),e.__$$__jx_ui_html_td=i(100),e.__$$__jx_ui_html_img=i(118),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_html_table,"","",[[e.__$$__jx_ui_html_tbody,"","",[[e.__$$__jx_ui_html_tr,"tr","",[[e.__$$__jx_ui_html_td,"text_cell","",[[e.__$$__jx_ui_Widget,"text","",[],{id:"text"}]],{id:"text_cell","class":"text_cell"}],[e.__$$__jx_ui_html_td,"image_cell","",[[e.__$$__jx_ui_html_img,"image","",[],{id:"image",addClass:"banner_image"}],[e.__$$__meshim_widget_widgets_IconFont,"icon","",[],{id:"icon",icon:"badge_default",addClass:"banner_icon"}]],{id:"image_cell","class":"image_cell"}]],{id:"tr"}]],{}]],{"class":"banner_table"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:components":"meshim.widget.components","xmlns:widgets":"meshim.widget.widgets","xmlns:chatWindow":"meshim.widget.components.chatWindow","xmlns:newChatForm":"meshim.widget.components.chatWindow.newChatForm"}],p=h[0].call(this,s,_,null,n.mangleIDs(_,h[3]),h[4]),g=p||this;n.set(_,g);var f=n.get(_+"__tr"),m=n.get(_+"__text_cell"),$=n.get(_+"__text"),b=n.get(_+"__image_cell"),w=n.get(_+"__image"),x=n.get(_+"__icon");t.__jx__jcss_generated||(o.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var v=function(){function t(){function t(){_&&"new_chat_form"==l&&r.bugs.noBoxSizing&&(w.setWidth(""),w.setHeight(""),a(i,g,!0))}function i(){var t=parseInt(w.getWidth()||w.dom.width,10),e=parseInt(w.getHeight()||w.dom.height,10);if(t&&e){var i,n,o,r=t>e;i=r?t:e,n=r?e:t,i>k&&(o=i/k,i/=o,n/=o,w.setWidth(r?i:n),w.setHeight(r?n:i)),g.dom.className=g.dom.className}}r.bugs.noBoxSizing&&(w.dom.onload=t,g.autobind(S,"value",function(e){_=e,t()}),g.autobind(I,"value",function(e){l=e,t()})),g.autobind(v,"value",function(t){n&&g.removeClass(n),n=t,d.livechat.getLimit()||"image_only"!=n||(n="image_right"),n&&g.addClass(n),e()}),g.autobind(y,"value",function(){$.setText(c.get(y))}),g.autobind(j,"value",function(t){o=t,e()}),A&&u.supportsDataURI(function(t){t&&g.autobind(C,"value",function(t){s=t,e()})})}function e(){var t=u.replaceFileHostname(s||o||"");switch(r.isFF&&!t&&(t="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEAAAAALAAAAAABAAEAAAI="),n){case"image_right":w.setSrc(t),f.insertBefore(m,b);break;case"image_left":w.setSrc(t),f.insertBefore(b,m);break;case"image_only":w.setSrc(t);break;default:g.setStyle("background","")}t?(w.setDisplay(""),x.setDisplay("none")):(w.setDisplay("none"),x.setDisplay(""))}var n,o,s,_,l,d=i(30),u=i(38),c=i(91),h=d.root,p=h.$("livechat").$("settings").$("banner"),v=p.$("layout$string"),y=p.$("text$string"),j=p.$("image_path$string"),C=p.$("image_data$string"),A=h.$("livechat").$("ui").$("mockup$bool").getValue(),S=h.$("livechat").$("ui").$("chat_window").$("display$bool"),I=h.$("livechat").$("ui").$("chat_window").$("main_stack_name$string"),k=100;t()}();for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(d),g.setAttributes&&g.setAttributes(c),"function"==typeof g.addChildren?g.addChildren(u):n.addChildren(g,u),g!==this&&(g.__jx__constructor=l,g.__jx__native=!1),g}var l;return t.prototype=s(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{".banner_table":{width:"100%",height:"100%",tableLayout:"fixed",direction:"ltr",color:"$$badgeContentColor"},".text_cell, .image_cell":{verticalAlign:"middle"},".text_cell":{wordWrap:"break-word",whiteSpace:"pre-wrap"},".image_cell":{width:"100px",textAlign:"center"},".banner_image":{verticalAlign:"top",border:"none"},".banner_icon":{display:"inline-block",fontSize:"90px",marginTop:"10px"}},"&.image_right":{".text_cell":{paddingRight:"3px"},".image_cell":{},".banner_image":{maxWidth:"100px",maxHeight:"100px"}},"&.image_left":{".text_cell":{paddingLeft:"3px"},".image_cell":{},".banner_image":{maxWidth:"100px",maxHeight:"100px"}},"&.image_only":{".text_cell":{display:"none"},".image_cell":{},".banner_image":{maxWidth:"100%"}},"&.text_only":{".text_cell":{fontSize:"26px",textAlign:"center",width:"100%"},".image_cell":{display:"none"}}},_(t,"meshim_widget_components_chatWindow_newChatForm_Banner"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(7),i(12),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="img",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_img"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{
icon:"zendesk_chat_2016"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",selectable:"false"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.autobind(o,"value",e)}function e(){var t=o.getValue();h.setVisibility(t?"hidden":"")}var n=i(30),o=n.root.$("livechat").$("settings").$("branding").$("hide_branding$bool");t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{display:"inline-block",lineHeight:1.3,letterSpacing:"1px",fontSize:"9px","&:focus":{outline:"none"}}},a(t,"meshim_widget_components_chatWindow_newChatForm_Branding"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_TextField=i(121),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_TextField,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",addClass:"unstyled"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_TextField.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_TextField,t.__jx__jcss={"**self":{color:"$$badgeInputColor",padding:"$$badgeInputPadding",borderWidth:"$$badgeInputBorderWidth",borderStyle:"$$badgeInputBorderStyle",borderColor:"$$badgeInputBorderColor",borderRadius:"$$badgeInputRadius",boxShadow:"$$badgeInputShadow"},"&:focus, &.focus":{color:"$$badgeInputFocusColor",background:"$$badgeInputFocusBg",borderColor:"$$badgeInputFocusBorderColor",boxShadow:"$$badgeInputFocusShadow"},"&::placeholder":{color:"$$badgeInputPlaceholderColor"}},a(t,"meshim_widget_components_chatWindow_newChatForm_TextField"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){var t=i(122),r=t,a=i(123);return t=function(i,n,o,s,_){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),r.call(this,i,n,o,s,_),void a.__constructor.call(this)):new t(i,n,o,s,_)},t.__jx__jcss={},t.prototype=n(r.prototype),t.prototype.__jx__super=a,o(t,"meshim_widget_widgets_TextField"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){t.exports=function(){function t(i,n,o,r,a){if(!(this instanceof t))return new t(i,n,o,r,a);a=_.extend({},l,a),"input"!=a.tagName||a.type||(a.type="text"),s.call(this,i,n,o,r,a),this.getValue()||this.showPlaceholder(),this.on("blur",this.handlePlaceholderBlur),this.on("focus",this.handlePlaceholderFocus),this.on("click",this.handleAutoSelect);var d=this;this._handlePlaceholder=function(){d.setPlaceholder(d.getPlaceholder())},e&&e.onLanguage&&e.onLanguage(this._handlePlaceholder)}var s=i(111),_=i(47),l={tagName:"input",autoValidate:!0};return t.prototype=n(s.prototype),t.prototype.getPlaceholder=function(){return this.internalPlaceholder||""},t.prototype.setPlaceholder=function(t){return"placeholder"in this.dom||(this.emulatePlaceholder=!0),this.internalPlaceholder=t,this.emulatePlaceholder||(this.dom.placeholder=t),this.placeholderActive&&this.showPlaceholder(),this},t.prototype.handlePlaceholderFocus=function(){this.placeholderActive&&this.hidePlaceholder()},t.prototype.handlePlaceholderBlur=function(){this.getValue()||this.showPlaceholder()},t.prototype.showPlaceholder=function(){this.addClass("placeholder"),this.placeholderActive=!0;var t=this;if(this.emulatePlaceholder&&(this._setValueOverride=!0,this.setValue(this.getPlaceholder()),this._setValueOverride=!1,"password"==this.getType()))if(this.realTypePassword=!0,o.engineIE<9){if(!this.fakePlaceholderPasswordIE){var e={"class":this.getClass(),type:"text",visible:"none",value:this.getPlaceholder(),autoValidate:!1,tabIndex:this.attributes.tabIndex};this.fakePlaceholderPasswordIE=new s(this.parentNode,null,null,null,e),this.parentNode.insertAfter(this.fakePlaceholderPasswordIE,this),this.autobind(this.fakePlaceholderPasswordIE,"focus",function(){t.hidePlaceholder()})}"none"!=this.getComputedStyle("display")&&(this.originalDisplay=this.getComputedStyle("display")),this.fakePlaceholderPasswordIE.show().setOneStyle("display",this.originalDisplay).setClass(this.getClass()),this.setVisible("none")}else this.setType("text",!0)},t.prototype.hidePlaceholder=function(){this.removeClass("placeholder"),this.placeholderActive=!1,this.emulatePlaceholder&&(this._setValueOverride=!0,this.setValue(""),this._setValueOverride=!1,this.realTypePassword&&(this.realTypePassword=!1,o.engineIE<9?(this.fakePlaceholderPasswordIE instanceof s&&this.setVisible("block").setOneStyle("display",this.originalDisplay),this.fakePlaceholderPasswordIE.setVisible("none"),this.focus()):this.setType("password",!0)))},t.prototype.setValue=function(t){var e=0===t||!!t;if(this._setValueOverride||e&&this.hidePlaceholder(),s.prototype.setValue.call(this,t),!this._setValueOverride)try{this.doc.activeElement.jx_wrapper!=this&&(e||this.showPlaceholder())}catch(i){}return this},t.prototype.getValue=function(){return this.placeholderActive&&this.emulatePlaceholder?"":s.prototype.getValue.call(this)},t.prototype.setAutocomplete=t.prototype.setAutoComplete=function(t){return"autocomplete"in this.dom?"on"==t||"off"==t?(this.dom.autocomplete=t,this):(t=r(t),this.dom.autocomplete=t?"on":"off",this):this},t.prototype.getAutocomplete=t.prototype.getAutoComplete=function(){return this.dom.autocomplete},t.prototype.getAutoSelect=function(){return this.autoSelect},t.prototype.setAutoSelect=function(t){return this.autoSelect=r(t),this},t.prototype.handleAutoSelect=function(){this.autoSelect&&this.dom.select()},t.prototype.destroy=function(){e&&e.unLanguage&&e.unLanguage(this._updatePlaceholder),this.un("blur",this.handlePlaceholderBlur),this.un("focus",this.handlePlaceholderFocus),this.un("click",this.handleAutoSelect),this.fakePlaceholderPasswordIE instanceof s&&(this.fakePlaceholderPasswordIE.destroy(),this.fakePlaceholderPasswordIE=null),s.prototype.destroy.call(this)},t.prototype.reset=function(){return s.prototype.reset.call(this),this.handlePlaceholderBlur(),this},t.prototype.insertAtCaret=function(t){if(t)if(this.placeholderActive&&this.hidePlaceholder(),void 0!==this.dom.selectionStart&&9!=o.engineIE){var e=this.dom.selectionStart,i=this.dom.selectionEnd,n=this.getScrollTop(),r=this.getValue();this.setValue(r.substring(0,e)+t+r.substring(i,r.length)),this.focus(),this.dom.selectionStart=this.dom.selectionEnd=e+t.length,this.setScrollTop(n)}else if(document.selection){this.focus();var a=document.selection.createRange();a.text=t,this.focus()}else this.setValue(this.getValue()+t),this.focus()},t.prototype.getCaret=function(){var t=0;if(void 0!==this.dom.selectionStart)t=this.dom.selectionStart;else if(document.selection){this.focus();var e=document.selection.createRange();e.moveStart("character",-this.getValue().length),t=e.text.length}return t},t.prototype.setCaret=function(t){if(void 0!==this.dom.selectionStart)this.dom.selectionStart=t,this.dom.selectionEnd=t,this.focus();else if(document.selection){this.focus();var e=document.selection.createRange();e.moveStart("character",-this.getValue().length),e.moveEnd("character",-this.getValue().length),e.moveStart("character",t),e.moveEnd("character",0),e.select()}return this},a(t,"jx_ui_TextField"),t}()}).call(e,i(22),i(14),i(7),i(16),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){var t=i(111),r=t,a=i(17),s=i(30),_=i(124),l=i(89);return t=function(i,n,o,a,s){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),r.call(this,i,n,o,a,s),void t.__constructor.call(this)):new t(i,n,o,a,s)},t.__constructor=function(){l.mobile(this),l.rtl(this);var t=s.root.$("livechat").$("ui").$("mobile$bool").getValue();if(t&&this.hasClass("mobile_error_icon")){this.pContainer=new a(this.parentNode,null,null,null,{position:"relative"}),this.pContainer.appendChild(this);var e=new _(this.pContainer),i=this.showErrorMessage,n=this.hideErrorMessage,o=this;this.showErrorMessage=function(){return e.setDisplay(""),i.call(o)},this.hideErrorMessage=function(){return e.setDisplay("none"),n.call(o)}}},t.__jx__jcss={"**self":{display:"block",appearance:"none","*overflow":"visible",width:"100%",color:"$$inputColor",background:"$$inputBg",padding:"$$inputPadding",borderWidth:"$$inputBorderWidth",borderStyle:"$$inputBorderStyle",borderColor:"$$inputBorderColor",borderRadius:"$$inputRadius",boxShadow:"$$inputShadow"},"&:focus, &.focus":{color:"$$inputFocusColor",background:"$$inputFocusBg",borderColor:"$$inputFocusBorderColor",boxShadow:"$$inputFocusShadow",outline:"none"},"&::placeholder":{color:"$$inputPlaceholderColor",fontStyle:"$$inputPlaceholderFontStyle"},"&.invalid":{color:"$$inputInvalidColor",background:"$$inputInvalidBg",borderColor:"$$inputInvalidBorderColor",boxShadow:"$$inputInvalidShadow"},"&.invalid.mobile":{paddingRight:"30px"},"&.invalid.rtl.mobile":{paddingRight:"$$inputPadding",paddingLeft:"30px"},"&.unstyled":{border:"none",background:"transparent",boxShadow:"none"},"&.standalone":{marginTop:"10px",marginBottom:"5px"}},t.prototype=n(r.prototype),t.prototype.__jx__super=r,o(t,"meshim_widget_widgets_Input"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_IconFont,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",icon:"warning_sign"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){var t=i(89);t.rtl(h)}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_IconFont.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_IconFont,t.__jx__jcss={"**self":{position:"absolute",top:"12px",right:"10px",color:"red",fontSize:"$$fontSizeXL"},"&.rtl":{right:"auto",left:"10px"}},a(t,"meshim_widget_widgets_input_InvalidIcon"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast=i(126),e.__$$__meshim_widget_widgets_ViewStack=i(81),e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_Form=i(131),e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_PostSubmit=i(176),e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_OperatingHours=i(178),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast,"disconnected_toast","",[],{id:"disconnected_toast",addClass:"disconnected_toast hide"}],[e.__$$__meshim_widget_widgets_ViewStack,"vs","",[[e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_Form,"","",[],{name:"form"}],[e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_PostSubmit,"","",[],{name:"post_submit"}],[e.__$$__meshim_widget_components_chatWindow_preChatOfflineForm_OperatingHours,"","",[],{name:"operating_hours"}]],{id:"vs"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:preChatOfflineForm":"meshim.widget.components.chatWindow.preChatOfflineForm",titleBar:"hidePopout",actionBar:""}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__disconnected_toast"),g=n.get(a+"__vs");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){o.mobile(h),h.autobind(_,"value",function(t){g.setIndex(t||0),a.write({name$string:g.getName()})}),h.autobind(s,"value",e),setTimeout(function(){e(!0)},l)}function e(t){t&&p.removeClass("hide")}var n=i(30),o=i(89),r=n.root,a=r.$("livechat").$("ui").$("chat_window").$("pre_chat_offline_form"),s=r.$("connection").$("reattached_timestamp$int"),_=a.$("stack_index$int"),l=8e3;t()}();for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={".disconnected_toast.hide":{display:"none"}},a(t,"meshim_widget_components_chatWindow_PreChatOfflineForm"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_toast_Disconnected=i(127),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_toast_Disconnected,"","",[],{addClass:"toast"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){e.mobile(h)}var e=i(89);t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"absolute",zIndex:"1000",top:"40px",left:"0",width:"100%",height:"0",textAlign:"center",".toast":{display:"inline-block",maxWidth:"80%"}},"**self.mobile":{position:"fixed",top:"60px"}},a(t,"meshim_widget_widgets_ChatWindowDisconnectedToast"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_Toast=i(128),e.__$$__meshim_widget_widgets_toast_disconnected_Image=i(129),e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_Toast,"","",[[e.__$$__meshim_widget_widgets_toast_disconnected_Image,"img","",[],{id:"img",addClass:"reconnecting_toast_image"}],[e.__$$__jx_ui_Widget,"message","",[],{id:"message",addClass:"reconnecting_toast_text"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__img"),f=n.get(s+"__message");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){p.autobind(s,"value",function(t){return e=t,t?(l[t]?(g.stop().reset(),p.addClass("toast_disconnected")):(g.play(),p.removeClass("toast_disconnected")),f.setDisplay("fast_init"==t?"none":""),f.setText(_[t]||n),void p.setDisplay("")):(p.setDisplay("none"),void g.stop().reset())}),p.on("click",function(t){t.preventDefault(),l[e]&&o.livechat.reconnect()})}var e,n=r(203),o=i(30),a=i(91),s=o.root.$("connection").$("message$string"),_=a.connection_status,l={idle_disconnect:1};t()}();for(var $ in m)m.hasOwnProperty($)&&(p[$]=m[$]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_Toast.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Toast,t.__jx__jcss={"**self":{textAlign:"center","&.toast_disconnected":{cursor:"pointer"}},".reconnecting_toast_text":{display:"block",marginLeft:"34px",fontWeight:"bold",textAlign:"left"},".reconnecting_toast_image":{"float":"left",marginTop:"-2px"}},s(t,"meshim_widget_widgets_toast_Disconnected"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui",selectable:"false"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{color:"$$toastColor",background:"$$toastBg",padding:"$$toastPadding",borderWidth:"$$toastBorderWidth",borderStyle:"$$toastBorderStyle",borderColor:"$$toastBorderColor",borderRadius:"$$toastRadius",boxShadow:"$$toastShadow"}},a(t,"meshim_widget_widgets_Toast"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{"xmlns:ui":"jx.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){d[l]&&d[l].removeClass(r),l++,l>=a+_&&(l=s),d[l]&&d[l].addClass(r)}for(var e,n=i(130),o=100,r="dark",a=3,s=-1,_=2,l=s,d=[],u=0;u<a;u++)d[u]=new n(h),d[u].addClass("dot");h.play=function(){return e?h:(t(),e=window.setInterval(t,o),h)},h.stop=function(){return e?(window.clearInterval(e),e=null,h):h},h.reset=function(){return d[l]&&d[l].removeClass(r),l=s,h},h.reset()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{".dot":{marginRight:"3px"}}},a(t,"meshim_widget_widgets_toast_disconnected_Image"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[],{"xmlns:ui":"jx.ui"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative",display:"inline-block","width, height":"6px",background:"$$toastColor",borderRadius:"50%",opacity:"0.5",transition:"all 0.3s","&.dark":{opacity:"1"}}},a(t,"meshim_widget_widgets_toast_disconnected_image_Dot"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ConnAwareForm=i(133),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_html_a=i(88),e.__$$__meshim_widget_widgets_form_Profile=i(135),e.__$$__meshim_widget_widgets_Form=i(152),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__meshim_widget_widgets_ConnAwareSubmit=i(167),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=o(140),p=o(141),g=o(142),f=[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ConnAwareForm,"form_container","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__jx_ui_Widget,"pre_chat_message","",[],{id:"pre_chat_message",addClass:"greetings_message"}],[e.__$$__jx_ui_Widget,"offline_message","",[[e.__$$__jx_ui_Widget,"offline_message_msg","",[],{id:"offline_message_msg"}],[e.__$$__jx_ui_html_a,"upgrade_link","",[h],{id:"upgrade_link",href:"http://zop.im/prem-offline-form",target:"_blank",addClass:"link",visible:"none"}]],{id:"offline_message",addClass:"greetings_message"}],[e.__$$__jx_ui_Widget,"offline_message_disabled","",[],{id:"offline_message_disabled",addClass:"greetings_message"}],[e.__$$__jx_ui_Widget,"offline_operating_hours_link","",[p],{id:"offline_operating_hours_link",addClass:"link",visible:"none"}],[e.__$$__meshim_widget_widgets_form_Profile,"profile","",[],{id:"profile"}],[e.__$$__meshim_widget_widgets_Form,"form","",[],{id:"form"}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__meshim_widget_widgets_ConnAwareSubmit,"submit","",[],{id:"submit",addClass:"submit"}],[e.__$$__meshim_widget_widgets_Button,"back","",[g],{id:"back",addClass:"back secondary"}]],{}]],{id:"form_container",addClass:"form_container",noValidate:"true"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",absPaddingBottom:"bottomHeight"}],m=f[0].call(this,s,_,null,n.mangleIDs(_,f[3]),f[4]),$=m||this;n.set(_,$);var b=n.get(_+"__form_container"),w=n.get(_+"__pre_chat_message"),x=n.get(_+"__offline_message"),v=n.get(_+"__offline_message_msg"),y=n.get(_+"__upgrade_link"),j=n.get(_+"__offline_message_disabled"),C=n.get(_+"__offline_operating_hours_link"),A=n.get(_+"__profile"),S=n.get(_+"__form"),I=n.get(_+"__submit"),k=n.get(_+"__back");t.__jx__jcss_generated||(r.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var B=function(){function t(){function t(t,e,i){t.empty(),t.setText(""),"object"==typeof e&&e.onTranslate?t.setText(e):N.appendTo(t,e,i)}function i(){var t=H.$("2").$("name$string");t.getValue()!==O.DEPARTMENT&&t.update(O.DEPARTMENT)}function T(){var t=S.getField(O.DEPARTMENT);if(t){var e,i=t.input.getValue();if(i){var n=dt.$(i).$("status$string").getValue();e="offline"!=n}else e=!0;C.setDisplay(E()?"":"none"),e!=h&&(h=e,D())}}function D(){var t=R(),i=S.getField(O.DEPARTMENT),a=S.getField(O.MESSAGE);switch(t==P.OFFLINE_DISABLED?(j.setDisplay(r?"":"none"),A.setDisplay("none"),S.setDisplay("none")):(j.setDisplay("none"),A.setDisplay(""),S.setDisplay("")),t){case P.OFFLINE_DISABLED:w.setDisplay("none"),x.setDisplay("none"),I.setValue(B.pre_chat_offline_form.button_disabled),V(!1);break;case P.OFFLINE:w.setDisplay("none"),x.setDisplay(o||E()?"":"none"),A.setRequired(!0),A.setPhoneRequired(s),i&&(i.setRequired(!1),i.input&&i.input.setHide(!0)),a&&a.setRequired(!0),I.setValue(B.pre_chat_offline_form.button_message),V(!1);break;case P.ONLINE:w.setDisplay(e?"":"none"),x.setDisplay("none"),A.setRequired(q.getValue()),A.setPhoneRequired(n),i&&(i.setRequired(G.getValue()),i.input&&i.input.setHide(!1)),a&&a.setRequired(Y.getValue()),I.setValue(B.pre_chat_offline_form.button_chat),V(!1);break;case P.ONLINE_OFFLINE:w.setDisplay(e?"":"none"),x.setDisplay("none"),A.setRequired(!0),A.setPhoneRequired(s),i&&(i.setRequired(G.getValue()),i.input&&i.input.setHide(!1)),a&&a.setRequired(!0),I.setValue(B.pre_chat_offline_form.button_message),V(!1);break;case P.ONLINE_CHATTING:w.setDisplay("none"),x.setDisplay(o||E()?"":"none"),A.setRequired(!0),A.setPhoneRequired(s),i&&(i.setRequired(!1),i.input&&i.input.setHide(!0)),a&&a.setRequired(!0),I.setValue(B.pre_chat_offline_form.button_message),V(!0)}C.setDisplay(E()?"":"none"),d&&(A.setDisplay("none"),A.setRequired(!1))}function E(){var t,e=R();if((e==P.OFFLINE||e==P.ONLINE_CHATTING)&&_&&l)return!0;var i=dt.getValue();for(var n in i)if(i.hasOwnProperty(n)&&(t=i[n].status$string&&"offline"===i[n].status$string,_&&l&&t))return!0;return!1}function L(){nt.update({value_user$string:S.getInput("message").getValue()})}function R(){return"banned"==u?P.OFFLINE_DISABLED:"offline"==u?p?P.OFFLINE_DISABLED:P.OFFLINE:c?P.ONLINE_CHATTING:h?P.ONLINE:P.ONLINE_OFFLINE}function V(t){t?(I.removeClass("wide"),k.setDisplay("")):(I.addClass("wide"),k.setDisplay("none"))}$.autobind(H,"value",i),S.setDataNode(H),$.autobind(U,"value",function(i){e=i,t(w,B.get(U),W),D()}),$.autobind(tt,"value",function(e){o=e,t(v,B.get(tt),W),D()}),$.autobind(et,"value",function(e){r=e,t(j,B.get(et),W),D()}),$.autobind(F,"value",function(t){a(t)&&S.populateSelf()}),$.autobind(at,"value",function(t){a(t)&&S.populateSelf()}),$.autobind(ct,"value",function(t){t!=c&&(c=t,D())}),$.autobind(ut,"value",function(t){t!=u&&(u=t,D())}),$.autobind(pt,"value",function(t){t!=p&&(p=t,D())}),$.autobind(Z,"value",function(t){n=t,D()}),$.autobind(ot,"value",function(t){s=t,D()}),$.autobind(gt,"value",function(t){_=t,D()}),$.autobind(ft,"value",function(t){l=t,D()}),$.autobind(mt,"value",function(t){d=t,D()}),$.autobind(dt,"value",T),S.on("change",T),$.autobind($t,"value",T),b.onConnectedAndSubmit(function(t){t.preventDefault();var e,i,n=R();if(n==P.OFFLINE_DISABLED||$.validate(!0)){var o,r=S.getField(O.DEPARTMENT);switch(r.input&&(o=dt.$(r.input.getValue()).getValue("name$string")||""),A.submit(),n){case P.OFFLINE_DISABLED:bt?window.close():m.userHideWindow();break;case P.OFFLINE:f.trackEvent("Offline Message Sent"),S.submit(J,A,!1,"is_offline_form"),L(),lt.update(1);break;case P.ONLINE:f.trackEvent("Chat Request Form Submitted",o),S.submit(z,A),i={msg:K.getValue()||""},r.input&&!r.input.isHidden()&&(e=parseInt(X.getValue(),10)||0,$t.parentNode.write({department_id$int:e}),i.department=e),""!==i.msg.trim()&&g.livechat.sendChatMsg(i),M.update(!0),ht.update("chat_panel");break;case P.ONLINE_OFFLINE:f.trackEvent("Offline Message Sent",o),S.submit(J,A),L(),lt.update(1);break;case P.ONLINE_CHATTING:S.submit(J,A),ht.update("chat_panel")}S.reset(),T()}}),k.on("click",function(){ht.update("chat_panel")}),C.on("click",function(t){t&&t.target&&t.target.jx_wrapper&&t.target.jx_wrapper.hasClass("link")&&lt.update(2)}),$.autobind(st,"value",function(t){y.setDisplay(t?"":"none")})}var e,n,o,r,s,_,l,d,u,c,h,p,g=i(30),f=i(169),m=i(103),B=i(91),N=i(170),T=i(171),D=i(172),E=i(174),P={OFFLINE_DISABLED:"OFFLINE_DISABLED",OFFLINE:"OFFLINE",ONLINE:"ONLINE",ONLINE_OFFLINE:"ONLINE_OFFLINE",ONLINE_CHATTING:"ONLINE_CHATTING"},O={DEPARTMENT:"department_id",MESSAGE:"message"},W=[T,D,E],L=g.root.$("livechat"),R=L.$("ui").$("chat_window").$("pre_chat_form"),F=R.$("form_populate$bool"),M=R.$("submitted$bool"),V=L.$("settings").$("forms").$("pre_chat_form"),H=V.$("form"),z=V.$("form_submitted"),q=V.$("profile_required$bool"),U=V.$("message$string"),G=H.$("2").$("required$bool"),Y=H.$("3").$("required$bool"),X=z.$("2").$("value$string"),K=z.$("3").$("value$string"),Z=H.$("4").$("required$bool"),Q=L.$("settings").$("forms").$("offline_form"),J=Q.$("form_submitted"),tt=Q.$("message$string"),et=Q.$("message_disabled$string"),it=Q.$("form"),nt=it.$("2"),ot=it.$("3").$("required$bool"),rt=L.$("ui").$("chat_window").$("offline_form"),at=rt.$("form_populate$bool"),st=rt.$("upgrade_link_display$bool"),_t=L.$("ui").$("chat_window").$("pre_chat_offline_form"),lt=_t.$("stack_index$int"),dt=L.$("departments"),ut=L.$("account").$("status$string"),ct=L.$("channel").$("chatting$bool"),ht=L.$("ui").$("chat_window").$("main_stack_name$string"),pt=L.$("settings").$("chat_button").$("hide_when_offline$bool"),gt=L.$("settings").$("operating_hours").$("enabled$bool"),ft=L.$("settings").$("operating_hours").$("display_notice$bool"),mt=L.$("settings").$("login").$("restrict_profile$bool"),$t=L.$("profile").$("department_id$int"),bt=L.$("ui").$("popout$bool").getValue();t()}();for(var N in B)B.hasOwnProperty(N)&&($[N]=B[N]);return $.fire&&$.fire("init"),$.setStyle&&$.setStyle(d),$.setAttributes&&$.setAttributes(c),"function"==typeof $.addChildren?$.addChildren(u):n.addChildren($,u),$!==this&&($.__jx__constructor=l,$.__jx__native=!1),$}var l;return t.prototype=s(e.__$$__meshim_widget_widgets_ChatWindowContent.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowContent,t.__jx__jcss={".greetings_message":{whiteSpace:"pre-wrap",wordWrap:"break-word"},".greetings_message, .generated_form":{marginBottom:"$$marginL"},".form_container":{"width, height":"100%"},".link":{top:"-5px",cursor:"pointer",textDecoration:"underline",marginBottom:"15px"}},_(t,"meshim_widget_components_chatWindow_preChatOfflineForm_Form"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(16),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_AbsolutePaddingContainer=i(116),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_AbsolutePaddingContainer,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){n.mobile(h),n.tablet(h)}var e=i(30),n=i(89),o=e.root.$("livechat").$("ui").$("mobile$bool").getValue(),r=h.setAbsPaddingBottom;h.setAbsPaddingBottom=function(){o||r.apply(h,arguments)},t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_AbsolutePaddingContainer.prototype),
t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_AbsolutePaddingContainer,t.__jx__jcss={"**self":{},"&.mobile":{margin:"0 auto",height:"auto",border:"none",maxWidth:"$$mobileMaxWidthS"},"&.tablet":{maxWidth:"$$mobileMaxWidth"}},a(t,"meshim_widget_widgets_ChatWindowContent"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,s,_){if(!(this instanceof t))return new t(i,n,o,s,_);t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),r.call(this,i,n,o,s,_);var l=this;this.$connection_message=a.root.$("connection").$("message$string"),this.connected_submits=[],this.on("submit",function(t){l.handleSubmit(t)}),this.onDestruction(function(){l.connected_submits=null})}var r=i(112),a=i(30);return t.__jx__jcss={},t.prototype=n(r.prototype),t.prototype.__jx__super=r,t.prototype.onConnectedAndSubmit=function(t){this.connected_submits.push(t)},t.prototype.handleSubmit=function(t){var e=!!this.$connection_message.getValue();if(e)return void t.preventDefault();for(var i=0;i<this.connected_submits.length;i++)this.connected_submits[i](t)},o(t,"meshim_widget_widgets_ConnAwareForm"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"inner","",[[e.__$$__jx_ui_Widget,"inside","",[],{id:"inside",addClass:"scrollable_inside",container:"default"}]],{id:"inner",addClass:"scrollable_inner"}],[e.__$$__jx_ui_Widget,"","",[],{addClass:"scrollable_fixed_top"}],[e.__$$__jx_ui_Widget,"","",[],{addClass:"scrollable_fixed_bottom"}]],{"xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__inner"),f=n.get(s+"__inside");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),p.defaultPlacement=f;var m=function(){function t(){_&&window.clearTimeout(_),_=window.setTimeout(e,10)}function e(){_&&window.clearTimeout(_),_=null,p.dom&&(p[n()?"addClass":"removeClass"]("scroll_top"),p[o()?"addClass":"removeClass"]("scroll_bottom"),p[a()?"addClass":"removeClass"]("scrollable"))}function n(){return!g.getScrollTop()}function o(){return g.getScrollTop()+g.getHeight()>=g.getScrollHeight()}function a(){return g.getScrollHeight()>g.getHeight()}function s(){function e(){f.style.direction=r.rtl()?"rtl":"ltr"}function i(){r.unLanguage(e)}p.autobind(u,"value",t),t(),d.mobile(p),d.popout(p),d.windowSize(p,"sf_"),c.getValue()&&p.addClass("mobile"),r&&r.onLanguage&&(r.onLanguage(e),e(),p.onDestruction(i))}var _,l=i(30),d=i(89),u=l.root.$("livechat").$("ui").$("theme_loaded$bool"),c=l.root.$$("livechat.ui.mobile$bool");g.on("scroll",t),p.updateScrollStyles=t,p.getScrollHeight=function(){return g.getScrollHeight()},p.getScrollTop=function(){return g.getScrollTop()},p.getHeight=function(){return g.getHeight()},p.setScrollTop=function(t){return g.setScrollTop(t)},s()}();for(var $ in m)m.hasOwnProperty($)&&(p[$]=m[$]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self, .scrollable_inner":{position:"relative","width, height":"100%"},".scrollable_inner":{overflowX:"hidden",overflowY:"auto",paddingBottom:"0 !important",direction:"ltr"},".scrollable_fixed_top, .scrollable_fixed_bottom":{position:"absolute","left, right":0,pointerEvents:"none"},".scrollable_fixed_top":{top:0,height:"$$scrollableFrameTopHeight",background:"$$scrollableFrameTopBackground",backgroundColor:"$$scrollableFrameTopBackgroundColor"},".scrollable_fixed_bottom":{bottom:0,height:"$$scrollableFrameBottomHeight",background:"$$scrollableFrameBottomBackground",backgroundColor:"$$scrollableFrameBottomBackgroundColor"},"&.scroll_top .scrollable_fixed_top":{display:"none"},"&.scroll_bottom .scrollable_fixed_bottom":{display:"none"},"&.scroll .scrollable_inner":{},"&.sf_small":{padding:"$$scrollableFramePaddingSmall",".scrollable_inner":{padding:"$$scrollableFrameInnerPaddingSmall"}},"&.sf_medium":{padding:"$$scrollableFramePaddingMedium",".scrollable_inner":{padding:"$$scrollableFrameInnerPaddingMedium"}},"&.sf_large":{padding:"$$scrollableFramePaddingLarge",".scrollable_inner":{padding:"$$scrollableFrameInnerPaddingLarge"}},"&.popout":{"@media only screen and (max-width: 300px)":{padding:"$$scrollableFramePaddingSmall",".scrollable_inner":{padding:"$$scrollableFrameInnerPaddingSmall"}},"@media only screen and (min-width: 300px) and (max-width: 500px)":{padding:"$$scrollableFramePaddingMedium",".scrollable_inner":{padding:"$$scrollableFrameInnerPaddingMedium"}},"@media only screen and (min-width: 500px)":{padding:"$$scrollableFramePaddingLarge",".scrollable_inner":{padding:"$$scrollableFrameInnerPaddingLarge"}}},"&.mobile":{borderBottom:"none",".scrollable_inner":{padding:"10px"}}},s(t,"meshim_widget_widgets_ScrollableFrame"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_Label=i(95),e.__$$__meshim_widget_widgets_FakeInput=i(136),e.__$$__meshim_widget_widgets_Avatar=i(137),e.__$$__meshim_widget_widgets_iconFont_Button=i(144),e.__$$__meshim_widget_widgets_ErrorMessage=i(145),e.__$$__meshim_widget_widgets_TextField=i(121),e.__$$__meshim_widget_widgets_EmailField=i(146),e.__$$__meshim_widget_widgets_PhoneField=i(148),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=o(147),p=o(148),g=o(149),f=o(150),m=o(151),$=o(152),b=o(153),w=o(154),x=o(155),v=o(156),y=o(157),j=o(158),C=o(159),A=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"available_types_el","",[[e.__$$__jx_ui_Label,"label_logged_out","",[h,[e.__$$__jx_ui_Label,"label_logged_out_required","",[],{id:"label_logged_out_required"}]],{id:"label_logged_out",addClass:"label label_logged_out"}],[e.__$$__jx_ui_Label,"label_logged_in","",[p],{id:"label_logged_in",addClass:"label label_logged_in"}],[e.__$$__meshim_widget_widgets_FakeInput,"fake_input","",[[e.__$$__meshim_widget_widgets_Avatar,"avatar","",[],{id:"avatar",addClass:"avatar"}],[e.__$$__jx_ui_Label,"internal_placeholder","",[g],{id:"internal_placeholder",addClass:"internal_placeholder"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Label,"logged_in_name","",[],{id:"logged_in_name",addClass:"logged_in_name"}],[e.__$$__jx_ui_Label,"logged_in_email","",[],{id:"logged_in_email",addClass:"logged_in_email"}],[e.__$$__jx_ui_Label,"logged_in_phone","",[],{id:"logged_in_phone",addClass:"logged_in_phone"}],[e.__$$__jx_ui_Widget,"logged_in_actions","",[[e.__$$__meshim_widget_widgets_iconFont_Button,"logged_in_edit","",[],{id:"logged_in_edit",icon:"pencil",title:f}],[e.__$$__meshim_widget_widgets_iconFont_Button,"logged_in_clear","",[],{id:"logged_in_clear",icon:"dustbin",title:m}]],{id:"logged_in_actions",addClass:"logged_in_actions"}]],{addClass:"floater_inner_seriously"}]],{addClass:"floater_inner"}]],{addClass:"floater"}]],{id:"fake_input",addClass:"fake_input",tabIndex:"0"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"error_message","",[$],{id:"error_message",addClass:"error_message",useDisplay:"true"}]],{id:"available_types_el",addClass:"field profile_field"}],[e.__$$__jx_ui_Widget,"editing_el","",[[e.__$$__jx_ui_Label,"label_edit_internal","",[h,[e.__$$__jx_ui_Label,"label_edit_internal_required","",[],{id:"label_edit_internal_required"}]],{id:"label_edit_internal",addClass:"label label_edit_internal"}],[e.__$$__meshim_widget_widgets_TextField,"name","",[],{id:"name",placeholder:b,addClass:"input_name standalone mobile_error_icon"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"name_error","",[w],{id:"name_error",addClass:"error_message",useDisplay:"true"}],[e.__$$__meshim_widget_widgets_EmailField,"email","",[],{id:"email",placeholder:x,addClass:"input_email standalone mobile_error_icon"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"email_error","",[v],{id:"email_error",addClass:"error_message",useDisplay:"true"}]],{id:"editing_el",addClass:"editing field profile_field"}],[e.__$$__jx_ui_Widget,"edit_external","",[[e.__$$__jx_ui_Label,"","",[y],{addClass:"edit_external_label"}],[e.__$$__jx_ui_Widget,"edit_external_types","",[],{id:"edit_external_types",addClass:"edit_external_types"}]],{id:"edit_external",addClass:"edit_external"}],[e.__$$__jx_ui_Widget,"phone_field","",[[e.__$$__jx_ui_Label,"phone_label","",[j,[e.__$$__jx_ui_Label,"phone_required","",[],{id:"phone_required"}]],{id:"phone_label",addClass:"label"}],[e.__$$__meshim_widget_widgets_PhoneField,"phone","",[],{id:"phone",addClass:"input_phone mobile_error_icon"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"phone_error","",[C],{id:"phone_error",addClass:"error_message",useDisplay:"true"}]],{id:"phone_field",addClass:"field field_phone"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets","class":"profile_form"}],S=A[0].call(this,s,_,null,n.mangleIDs(_,A[3]),A[4]),I=S||this;n.set(_,I);var k=n.get(_+"__available_types_el"),B=n.get(_+"__label_logged_out"),N=n.get(_+"__label_logged_out_required"),T=n.get(_+"__label_logged_in"),D=n.get(_+"__fake_input"),E=n.get(_+"__avatar"),P=n.get(_+"__internal_placeholder"),O=n.get(_+"__logged_in_name"),W=n.get(_+"__logged_in_email"),L=n.get(_+"__logged_in_phone"),R=n.get(_+"__logged_in_actions"),F=n.get(_+"__logged_in_edit"),M=n.get(_+"__logged_in_clear"),V=n.get(_+"__error_message"),H=n.get(_+"__editing_el"),z=n.get(_+"__label_edit_internal"),q=n.get(_+"__label_edit_internal_required"),U=n.get(_+"__name"),G=n.get(_+"__name_error"),Y=n.get(_+"__email"),X=n.get(_+"__email_error"),K=n.get(_+"__edit_external"),Z=n.get(_+"__edit_external_types"),Q=n.get(_+"__phone_field"),J=n.get(_+"__phone_label"),tt=n.get(_+"__phone_required"),et=n.get(_+"__phone"),it=n.get(_+"__phone_error");t.__jx__jcss_generated||(r.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var nt=function(){function t(){var t,e,i,n=m.getValue();for(e in n)if(n.hasOwnProperty(e)){if(t=n[e],i=S[t.name$string],!i)continue;i.setRequired(!("required$bool"in t)||t.required$bool),i.setPlaceholder(t.placeholder$string||A[t.name$string])}}function e(){var t,e=ot.getValue();if(at=0,e){c=e.email$bool;for(var i in j)j.hasOwnProperty(i)&&(e[i+"$bool"]?(at++,t=i,j[i].setDisplay("")):j[i].setDisplay("none"));_()}}function n(t){p=t,_()}function r(t){g=t,_()}function s(t){t&&("display_name$string"in t&&(w.isDefaultName(t.display_name$string)?(O.setText(""),U.setValue("")):(O.setText(t.display_name$string||""),U.setValue(t.display_name$string||""))),"email$string"in t&&(W.setText(t.email$string||""),Y.setValue(t.email$string||"")),"phone$string"in t&&(L.setText(t.phone$string||""),et.setValue(t.phone$string||"")),_())}function _(){g&&(h=!1),B.setDisplay(p?"none":""),T.setDisplay(p?"":"none"),k.setDisplay(h?"none":""),E.setDisplay(p?"":"none"),P.setDisplay(!p&&c?"":"none"),H.setDisplay(h?"":"none"),K.setDisplay(!p&&at?"":"none"),!p&&at?h?H.addClass("zero_margin"):k.addClass("zero_margin"):(k.removeClass("zero_margin"),H.removeClass("zero_margin")),$&&(B.setDisplay("none"),T.setDisplay("none"),z.setDisplay("none")),O.setDisplay(p?"":"none"),W.setDisplay(p?"":"none"),L.setDisplay(p&&I.disabled?"":"none"),R.setDisplay(p&&!I.disabled?"":"none"),p&&!I.disabled?O.addClass("buttons_pad"):O.removeClass("buttons_pad"),F.setDisplay(g?"none":""),I.setClass("profile_form"),I.disabled&&I.addClass("disabled"),f&&I.addClass("mobile"),o&&o.onLanguage&&d(),I.addClass(p?"logged_in":"logged_out"),I.addClass(c?"internal_enabled":"internal_disabled"),I.addClass(h?"editing":"available_types"),at?1==at?I.addClass("external_one"):I.addClass("external_many"):I.addClass("external_none")}function l(){function t(t){if(t&&(!t.keyCode||13==t.keyCode)){var e=t.target.jx_wrapper;if(e!=Z){for(;e.parentNode!=Z;)e=e.parentNode;var i=e.getName&&e.getName();i&&b.livechat.doExternalLogin(i)}}}function i(t){t&&t.preventDefault(),U.setValidity(!0),Y.setValidity(!0),h=!0,_(),U.focus()}function a(t){t&&t.preventDefault(),b.livechat.doExternalLogout(),D.blur(),dt.getValue()&&i()}var l;f=dt.getValue(),f&&I.addClass("mobile"),E.setDataNode(st),V.setDisplay("none"),I.removeClass("editing").addClass("available_types");for(l in j)j.hasOwnProperty(l)&&(j[l]=new(f?y:v)(Z,null,null,null,f?{name:l,addClass:"float profile_form_edit_external "+l,icon:C[l]+"_out"}:{name:l,addClass:"profile_form_icon "+l,icon:C[l],title:x.external_login[l]||l,tabIndex:0}));Z.on("keyup",t),Z.on(f?"touchend":"click",t),D.on("focus",function(){p||I.disabled||c&&i()}),F.on("click",i),M.on("click",a),et.setLabelElement(J),U.setErrorMessageElement(G).hideErrorMessage(),Y.setErrorMessageElement(X).hideErrorMessage(),et.setErrorMessageElement(it).hideErrorMessage(),I.autobind(ot,"value",e),I.autobind(_t,"value",n),I.autobind(st,"value",s),I.autobind(lt,"value",r),o&&o.onLanguage&&(o.onLanguage(d),d())}function d(){I[o.rtl()?"addClass":"removeClass"]("rtl")}var u,c,h,p,g,f,m,$,b=i(30),w=i(38),x=i(91),v=i(149),y=i(150),j={facebook:void 0,twitter:void 0,google:void 0},C={facebook:"facebook",twitter:"twitter",google:"google_2016"},A={name:o(160),email:o(161)},S={name:U,email:Y,phone:et},nt=b.root.$("livechat").$("settings").$("login"),ot=nt.$("allowed_types"),rt=nt.$("phone_display$bool"),at=0,st=b.root.$("livechat").$("profile"),_t=st.$("logged_in$bool"),lt=st.$("auth").$("type$string"),dt=b.root.$("livechat").$("ui").$("mobile$bool");I.submit=function(){var t=U.getValue().trim(),e=Y.getValue().trim(),i=et.getValue().trim(),n={};(!p||t||e)&&(n.name=t,n.email=e),u&&(n.phone=i),b.livechat.updateProfile(n),h=!1,_()},I.setHideLabel=function(){$=!0,_()},I.setDisabled=function(t){t=a(t),I.disabled=t,I[t?"addClass":"removeClass"]("disabled"),U.setDisabled(t),Y.setDisabled(t),Q.setDisplay(t?"none":"")},I.validate=function(t){for(var e=!0,i=[U,Y],n=0,o=i.length;n<o;n++)i[n].validate(!!t&&e)||(e=!1);return e?k.removeClass("invalid"):k.addClass("invalid"),V.setDisplay(e?"none":""),et.validate(!!t&&e)||(e=!1),e},I.setDataNode=function(e){m!=e&&(m&&I.autounbind(m,"value",t),m=e,m&&I.autobind(m,"value",t))},I.getValue=function(){var t={},e=U.getValue();return w.isDefaultName(e)||(t.name=e),t.email=Y.getValue(),t.phone=et.getValue(),t},I.setRequired=function(t){if(t=a(t),U.setRequired(t),Y.setRequired(t),N.setText(t?" *":""),q.setText(t?" *":""),!t){var e=U.validate(!1);e=Y.validate(!1)&&e,V.setDisplay(e?"none":"")}},I.setPhoneRequired=function(t){t=a(t),et.setRequired(t),tt.setText(t?" *":""),t||et.validate(!1)},I.autobind(rt,"value",function(t){u=t,Q.setDisplay(t?"":"none")}),l()}();for(var ot in nt)nt.hasOwnProperty(ot)&&(I[ot]=nt[ot]);return I.fire&&I.fire("init"),I.setStyle&&I.setStyle(d),I.setAttributes&&I.setAttributes(c),"function"==typeof I.addChildren?I.addChildren(u):n.addChildren(I,u),I!==this&&(I.__jx__constructor=l,I.__jx__native=!1),I}var l;return t.prototype=s(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".label_logged_out":{},".label_logged_in":{},".fake_input":{position:"relative",overflow:"hidden",transform:"translateZ(0)","*zoom":1},".avatar":{"float":"left","width, height":"32px",marginRight:"5px","&":"$$profileFormLoggedIn"},"&.rtl .avatar":{"float":"right",marginRight:0,marginLeft:"5px"},".internal_placeholder":{"float":"left","vertical-align":"top",cursor:"pointer"},"&.rtl .internal_placeholder":{"float":"right"},".profile_divider":{"vertical-align":"top",marginRight:"5px"},"&.rtl .profile_divider":{marginRight:0,marginLeft:"5px"},".internal_placeholder, .profile_divider":{lineHeight:"18px","*lineHeight":"18px !important"},".editing":{".input_name":{},".input_email":{},".input_phone":{}},".edit_external":{marginTop:"5px",color:"$$menuHeaderColor",marginBottom:"15px",".edit_external_label":{verticalAlign:"middle"},".edit_external_types":{display:"inline-block",verticalAlign:"middle",".profile_form_edit_external":{display:"inline-block"}}},"&.rtl .edit_external":{".edit_external_types":{".profile_form_edit_external":{marginLeft:0,marginRight:"5px"}}},".logged_in_name":{fontWeight:"bold"},".logged_in_name.buttons_pad":{paddingRight:"40px"},".logged_in_name, .logged_in_email":{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"&.rtl .logged_in_name":{paddingRight:0},"&.rtl .logged_in_name.buttons_pad":{paddingLeft:"40px"},".logged_in_actions":{position:"absolute","top, right":0,color:"$$menuHeaderColor",marginTop:"5px",marginRight:"5px",button:{marginLeft:"5px","&:hover, &:focus":{color:"$$menuColor"}},".divider":{fontSize:"$$fontSizeXS",lineHeight:"1.5",margin:"0 5px",cursor:"default",opacity:.5}},"&.rtl .logged_in_actions":{right:"auto",left:0},".floater":{display:"block",overflow:"hidden","*position":"relative !important",".floater_inner":{display:"table",".floater_inner_seriously":{display:"table-cell",verticalAlign:"middle"}}},"&.internal_enabled":{".floater":{"float":"right","*float":"right !important"}},"&.rtl.internal_enabled":{".floater":{"float":"left"}},"&.logged_in, &.internal_disabled":{".floater":{".floater_inner":{tableLayout:"fixed",width:"100%",height:"32px"}}},"&.logged_in":{".fake_input":{background:"$$formSubmittedBg",borderRadius:"$$formSubmittedRadius",borderWidth:"$$formSubmittedBorderWidth",borderStyle:"$$formSubmittedBorderStyle",borderColor:"$$formSubmittedBorderColor"},".floater":{"float":"none !important"}},"&.logged_out.internal_disabled, &.logged_in":{".fake_input":{}},".profile_form_icon":{cursor:"pointer",display:"inline-block",marginLeft:"5px","height, fontSize":"17px",lineHeight:"21px","*padding":"0 !important","*marginLeft":"5px !important"},"&.rtl .profile_form_icon":{marginLeft:0,marginRight:"5px"},".field":{marginBottom:"15px","&.last-child":{marginBottom:0},"&.profile_field":{"*padding":"0 !important","&.invalid":{},"&.zero_margin":{marginBottom:"0"}}},".label":{display:"block",marginBottom:"5px",fontWeight:"bold"},"&.mobile":{".avatar":{"width, height":"36px"},"&.available_types":{".fake_input":{".internal_placeholder":{lineHeight:"25px"},".profile_divider":{lineHeight:"44px",marginRight:"10px"}},".floater":{position:"absolute",top:0,right:"-2px",height:"100%"},".profile_form_icon":{"marginLeft, marginRight":0,width:"auto",height:"46px",padding:"13px 12px 10px",borderWidth:"0 0 0 1px",borderRadius:"0",".icon_font":{textAlign:"center"},"&.google":{"paddingLeft, paddingRight":"8px"}},"&.logged_in":{".fake_input":{},".floater":{position:"relative","top, right, left":0}}},".logged_in_name, .logged_in_email":{paddingRight:"80px"},".logged_in_actions":{margin:"0px",height:"100%",button:{height:"100%",padding:"0 5px"}},".editing":{".name_container, .email_container":{position:"relative","input.invalid ~ .error_icon":{display:"block"}}},".edit_external":{marginBottom:"15px",".edit_external_types":{display:"block",marginTop:"10px"}}},"&.rtl.mobile":{".floater":{right:"auto",left:"-2px"},".profile_divider":{marginRight:0,marginLeft:"10px"},".logged_in_name, .logged_in_email":{paddingRight:0,paddingLeft:"80px"},"&.available_types":{".profile_form_icon":{borderWidth:"0 1px 0 0"}}},"&.disabled":{".field":{marginBottom:0},".fake_input":{border:"none",background:"transparent"},".field_phone":{display:"none"}}},_(t,"meshim_widget_widgets_form_Profile"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(16),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,s,_){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),_||(_={}),_.tagName||(_.tagName="div"),r.call(this,i,n,o,s,_),void a.__constructor.call(this)):new t(i,n,o,s,_)}var r=i(17),a=i(123);return t.__jx__jcss={},t.prototype=n(r.prototype),t.prototype.__jx__super=a,o(t,"meshim_widget_widgets_FakeInput"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_Gravatar=i(138),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_Gravatar,"","",[],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setMemberId=e}function e(t){return a.test(t)?h.setDataNode(n.root.$$("livechat.settings.concierge")):o.test(t)?h.setDataNode(n.root.$$("livechat.agents").$(t)):r.test(t)?h.setDataNode(n.root.$$("livechat.profile")):h.setDataNode(n.root.$$("livechat.settings.concierge")),h}var n=i(30),o=/^agent/gi,r=/^visitor/gi,a=/^agent:trigger$/;t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_Gravatar.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Gravatar,t.__jx__jcss={},a(t,"meshim_widget_widgets_Avatar"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.setImages=l,p.setDataNode=n,p.setMemberNode=o,p.setGroupNode=a,p.setHideAuthType=e}function e(t){return p[r(t)?"addClass":"removeClass"]("hide_auth_type"),p}function n(t){p.autounbind(),"agents"==t.name?a(t):o(t)}function o(t){var e=d([t]);e.setNodes([t])}function a(t){u&&p.autounbind(u,"keys",s),u=t,u&&p.autobind(u,"keys",s)}function s(){for(var t=u.getKeys(),e=[],i=0,n=Math.min(3,t.length);i<n;i++)e.push(u.$(t[i]));_(e)}function _(t){var e=d(t);e&&e.setNodes(t)}function l(t){var e=d(t);e&&e.setImages(t)}function d(t){if(t instanceof Array&&t.length){var e=Math.min(t.length,4),i=b[e-1];return e!==h&&(p.empty(),c=new i(p),h=e),c}}var u,c,h,g=i(139),f=i(141),m=i(142),$=i(143),b=[g,f,m,$];t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{width:"60px",height:"60px",position:"relative",overflow:"hidden",borderWidth:"$$avatarBorderWidth",borderStyle:"$$avatarBorderStyle",borderColor:"$$avatarBorderColor",borderRadius:"$$avatarRadius",boxShadow:"$$avatarShadow",".avatar":{background:"#FFF"},"&.hide_auth_type":{".auth_type":{display:"none !important"}}}},s(t,"meshim_widget_widgets_Gravatar"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(16),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_gravatar_GravatarImage=i(140),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image","",[],{id:"image",addClass:"avatar"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:gravatar":"meshim.widget.widgets.gravatar","class":"gravatarOne"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__image");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(t){t instanceof Array&&h.setSrc(t[0])}function e(t){t instanceof Array&&h.setDataNode(t[0])}c.setImages=t,c.setNodes=e}();for(var g in p)p.hasOwnProperty(g)&&(c[g]=p[g]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{position:"relative",width:"100%",height:"100%",".avatar":{width:"100%",height:"100%",border:"0px none"}}},a(t,"meshim_widget_widgets_gravatar_GravatarOne"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_html_img=i(118),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_html_img,"img","",[],{id:"img","class":"img"}],[e.__$$__meshim_widget_widgets_IconFont,"auth_type","",[],{id:"auth_type",addClass:"auth_type"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__img"),g=n.get(a+"__auth_type");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){h.autobind($,"value",function(t){d&&t!=d&&o()})}function e(t){n(),_&&h.autounbind(_,"value",o),_=t,u=!1,_&&h.autobind(_,"value",o)}function n(){x=v=y=j=""}function o(){if(_&&!u){switch(_.name){case"profile":l="visitor";break;case"concierge":l="concierge";break;default:l="agent"}var t=_.getValue();if(!t)return g.setDisplay("none"),y=c.AVATARS.AGENT,void a();t.nick$string&&(C=t.nick$string),t.display_name$string&&!m.isDefaultName(t.display_name$string)&&r(t.display_name$string),t.email$string&&(v=t.email$string),t.auth&&t.auth.avatar$string?y=t.auth.avatar$string:t.avatar_data$string?y=t.avatar_data$string:t.avatar_path$string?(y=t.avatar_path$string,"agent"==l&&(u=!0)):y="","agent"!=l||y||(y=b.getValue()),t.auth&&"type$string"in t.auth&&(A&&g.removeClass(A),A=t.auth.type$string||"",A&&g.addClass(A),g.setIcon(A)),g.setDisplay(A?"":"none"),a()}}function r(t){t&&t!=x&&(h.setTitle(t),x=t)}function a(){var t=y||s();t&&t!=j&&(p.setSrc(m.replaceFileHostname(t)),j=t)}function s(){var t=$.getValue(),e=w.getValue()||{};d=t;var i;switch(l){case"visitor":i=e.visitor$string||c.AVATARS.VISITOR;break;case"concierge":i=e.concierge$string||c.AVATARS.CONCIERGE;break;case"agent":i=b.getValue()||e.agent$string||c.AVATARS.AGENT}return i||c.AVATARS.DEFAULT}var _,l,d,u,c=i(32),f=i(30),m=i(38),$=f.root.$("livechat").$("settings").$("theme").$("name$string"),b=f.root.$("livechat").$("settings").$("concierge").$("avatar_path$string"),w=f.root.$("livechat").$("settings").$("theme").$("avatars$string"),x="",v="",y="",j="",C="",A="";h.setDataNode=e,t()}();for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative"},".img":{"width, height":"100%"},".auth_type":{position:"absolute","bottom, left":0,background:"#FFF","fontSize, width, height":"12px","line-height":"16px",overflow:"hidden",borderRadius:"2px","&.facebook":{color:"$$facebook"},"&.twitter":{color:"$$twitter"},"&.google":{color:"$$google"}}},a(t,"meshim_widget_widgets_gravatar_GravatarImage"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_gravatar_GravatarImage=i(140),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image2","",[],{id:"image2",addClass:"avatar avatar2"}],[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image1","",[],{id:"image1",addClass:"avatar avatar1"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:gravatar":"meshim.widget.widgets.gravatar","class":"gravatarTwo"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__image2"),p=n.get(a+"__image1");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(t){t instanceof Array&&(p.setSrc(t[0]),h.setSrc(t[1]))}function e(t){t instanceof Array&&(p.setDataNode(t[0]),h.setDataNode(t[1]))}c.setImages=t,c.setNodes=e}();for(var f in g)g.hasOwnProperty(f)&&(c[f]=g[f]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{position:"relative",width:"100%",height:"100%",overflow:"hidden",".avatar":{width:"100%",height:"100%"},".avatar1":{position:"absolute",top:"0",left:"-33%",borderTop:"0px none",borderLeft:"0px none",borderBottom:"0px none"},".avatar2":{position:"absolute",top:"0",left:"33%",border:"0px none"}}},a(t,"meshim_widget_widgets_gravatar_GravatarTwo"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_gravatar_GravatarImage=i(140),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image3","",[],{id:"image3",addClass:"avatar avatar3"}],[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image2","",[],{id:"image2",addClass:"avatar avatar2"}],[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image1","",[],{id:"image1",addClass:"avatar avatar1"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:gravatar":"meshim.widget.widgets.gravatar","class":"gravatarThree"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__image3"),p=n.get(a+"__image2"),g=n.get(a+"__image1");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(t){t instanceof Array&&(g.setSrc(t[0]),p.setSrc(t[1]),h.setSrc(t[2]))}function e(t){t instanceof Array&&(g.setDataNode(t[0]),p.setDataNode(t[1]),h.setDataNode(t[2]))}c.setImages=t,c.setNodes=e}();for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),
c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{position:"relative",width:"100%",height:"100%",overflow:"hidden",".avatar1":{position:"absolute",top:"0",left:"-33%",width:"100%",height:"100%",borderLeft:"0px none",borderTop:"0px none",borderBottom:"0px none"},".avatar2":{position:"absolute",top:"0",right:"-8%",width:"50%",height:"50%",borderLeft:"0px none",borderTop:"0px none",borderRight:"0px none"},".avatar3":{position:"absolute",bottom:"0",right:"-8%",width:"50%",height:"50%",border:"0px none"}}},a(t,"meshim_widget_widgets_gravatar_GravatarThree"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_gravatar_GravatarImage=i(140),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image4","",[],{id:"image4",addClass:"avatar avatar4"}],[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image3","",[],{id:"image3",addClass:"avatar avatar3"}],[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image2","",[],{id:"image2",addClass:"avatar avatar2"}],[e.__$$__meshim_widget_widgets_gravatar_GravatarImage,"image1","",[],{id:"image1",addClass:"avatar avatar1"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:gravatar":"meshim.widget.widgets.gravatar","class":"gravatarFour"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__image4"),p=n.get(a+"__image3"),g=n.get(a+"__image2"),f=n.get(a+"__image1");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(t){t instanceof Array&&(f.setSrc(t[0]),g.setSrc(t[1]),p.setSrc(t[2]),h.setSrc(t[3]))}function e(t){t instanceof Array&&(f.setDataNode(t[0]),g.setDataNode(t[1]),p.setDataNode(t[2]),h.setDataNode(t[3]))}c.setImages=t,c.setNodes=e}();for(var $ in m)m.hasOwnProperty($)&&(c[$]=m[$]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{position:"relative",width:"100%",height:"100%",overflow:"hidden",lineHeight:"0px",".avatar":{position:"absolute",width:"50%",height:"50%"},".avatar1":{top:0,left:0,borderTop:"0px none",borderLeft:"0px none"},".avatar2":{top:0,right:0,borderTop:"0px none",borderRight:"0px none",borderLeft:"0px none"},".avatar3":{bottom:0,left:0,borderTop:"0px none",borderBottom:"0px none",borderLeft:"0px none"},".avatar4":{bottom:0,right:0,border:"0px none"}}},a(t,"meshim_widget_widgets_gravatar_GravatarFour"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Button=i(110),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Button,"","",[[e.__$$__meshim_widget_widgets_IconFont,"i","",[],{id:"i"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__i");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){var t=i(89);t.mobile(h);var e;h.setIcon=function(t){return e&&p.removeClass(e),e=t,e&&p.addClass(e),p.setIcon.apply(p,arguments)}}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Button.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Button,t.__jx__jcss={"**self":{background:"transparent",border:"none",color:"inherit",".icon_font":{display:"inline",lineHeight:"inherit",verticalAlign:"middle",fontSize:"$$fontSizeL"}},"&.mobile":{".icon_font":{position:"relative",fontSize:"$$fontSizeXXL"}}},a(t,"meshim_widget_widgets_iconFont_Button"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,a,s){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),void r.call(this,i,n,o,a,s)):new t(i,n,o,a,s)}var r=i(17);return t.__jx__jcss={"**self":{marginTop:"$$marginS",marginBottom:"$$margin",color:"$$errorMessageColor",fontWeight:"$$errorMessageFontWeight",fontStyle:"$$errorMessageFontStyle"}},t.prototype=n(r.prototype),t.prototype.__jx__super=r,o(t,"meshim_widget_widgets_ErrorMessage"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){var t=i(147),r=t,a=i(123);return t=function(i,n,o,s,_){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),r.call(this,i,n,o,s,_),void a.__constructor.call(this)):new t(i,n,o,s,_)},t.__jx__jcss={},t.prototype=n(r.prototype),t.prototype.__jx__super=a,o(t,"meshim_widget_widgets_EmailField"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="input"),a.type||(a.type="email"),void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(122);t.prototype=e(o.prototype);var r=o.prototype.getValue;return t.prototype.getValue=function(){return(r.call(this)||"").trim()},n(t,"jx_ui_EmailField"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,s,_){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),_||(_={}),_.pattern||(_.pattern="(^$|[0-9]+)"),_.type||(_.type="tel"),r.call(this,i,n,o,s,_),void a.__constructor.call(this)):new t(i,n,o,s,_)}var r=i(122),a=i(123);return t.__jx__jcss={},t.prototype=n(r.prototype),t.prototype.__jx__super=a,o(t,"meshim_widget_widgets_PhoneField"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_IconFont,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_IconFont.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_IconFont,t.__jx__jcss={"&.facebook":{color:"$$facebook"},"&.twitter":{color:"$$twitter"},"&.google":{color:"$$google"},"&:hover, &:focus, &:active":{"&.facebook":{color:"$$facebookActive"},"&.twitter":{color:"$$twitterActive"},"&.google":{color:"$$googleActive"}}},a(t,"meshim_widget_widgets_iconFont_Auth"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_Button=i(151),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_Button,"","",[[e.__$$__meshim_widget_widgets_IconFont,"i","",[],{id:"i",addClass:"auth_icon_font"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__i");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){c.setIcon=function(){h.setIcon.apply(h,arguments)}}();for(var g in p)p.hasOwnProperty(g)&&(c[g]=p[g]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_Button.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Button,t.__jx__jcss={"**self":{overflow:"hidden",paddingTop:"10px",paddingBottom:"6px",background:"$$authButtonBg",borderColor:"$$authButtonBorderColor",boxShadow:"$$authButtonShadow","&.facebook":{color:"$$facebook"},"&.twitter":{color:"$$twitter"},"&.google":{color:"$$google"}},"&:hover, &:focus, &:active":{".auth_icon_font":{color:"#FFFFFF"},"&.facebook":{background:"$$facebook"},"&.twitter":{background:"$$twitter"},"&.google":{background:"$$google"}},"&.float":{width:"30%",margin:"0 3% 0 0"},"&.mobile":{".auth_icon_font":{textAlign:"center",fontSize:"22px"}}},a(t,"meshim_widget_widgets_iconFont_AuthButton"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){var t=i(110),a=t,s=i(17),_=i(30),l=i(89);t=function(i,o,r,s,d){function u(){c.fixOverflowTitle()}if(!(this instanceof t))return new t(i,o,r,s,d);t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),d||(d={}),d.type||(d.type="button"),a.call(this,i,o,r,s,d),l.mobile(this),l.rtl(this);var c=this;s&&1==s.length&&("string"==typeof s[0]||s[0].bind)&&(n&&n.onLanguage&&(n.onLanguage(u),this.onDestruction(function(){n.unLanguage(u)})),this.autobind(_.root.$("livechat").$("ui").$("theme_loaded$bool"),"value",function(t){t&&c.fixOverflowTitle()}))},t.__jx__jcss={"**self":{appearance:"none",width:"48%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"$$buttonColor",background:"$$buttonBg","paddingTop, paddingBottom":"$$buttonPadding","paddingLeft, paddingRight":"$$buttonPaddingHorizontal",borderWidth:"$$buttonBorderWidth",borderStyle:"$$buttonBorderStyle",borderColor:"$$buttonBorderColor",borderRadius:"$$buttonRadius",boxShadow:"$$buttonShadow",fontWeight:"$$buttonFontWeight",wordWrap:"normal","*overflow":"visible",cursor:"pointer","&:hover, &:focus":{color:"$$buttonHoverColor",background:"$$buttonHoverBg",borderColor:"$$buttonHoverBorderColor",boxShadow:"$$buttonHoverShadow"},"&:active":{color:"$$buttonActiveColor",background:"$$buttonActiveBg",borderColor:"$$buttonActiveBorderColor",boxShadow:"$$buttonActiveShadow"}},"&.secondary":{color:"$$buttonSecColor",background:"$$buttonSecBg",borderColor:"$$buttonSecBorderColor",boxShadow:"$$buttonSecShadow","&:hover, &:focus":{color:"$$buttonSecHoverColor",background:"$$buttonSecHoverBg",borderColor:"$$buttonSecHoverBorderColor",boxShadow:"$$buttonSecHoverShadow"},"&:active":{color:"$$buttonSecActiveColor",background:"$$buttonSecActiveBg",borderColor:"$$buttonSecActiveBorderColor",boxShadow:"$$buttonSecActiveShadow"}},"&.disabled":{opacity:"0.5",cursor:"default","&:hover, &:focus":{color:"$$buttonColor",background:"$$buttonBg",borderColor:"$$buttonBorderColor",boxShadow:"$$buttonShadow"}},"&.fit":{width:"auto","paddingLeft, paddingRight":"$$buttonPadding"},"&.wide":{width:"100%"},"&.short":{"paddingTop, paddingBottom":"$$buttonShortPadding"},"&.short.mobile":{"paddingTop, paddingBottom":"$$buttonPadding"},"&.short.mobile.short_mobile":{"paddingTop, paddingBottom":"$$buttonShortPadding"}},t.prototype=o(a.prototype);var d=["fontFamily","fontSize","fontWeight","fontStyle"];return t.prototype.fixOverflowTitle=function(){if("en"==n.language)return void this.setTitle("");t.dummy||(t.dummy=new s(this.doc.body,null,null,null,{position:"absolute",visibility:"hidden"}));var e=this.getText(),i=this.getComputedStyle();if(i){for(var o=0,r=d.length;o<r;o++)t.dummy.style[d[o]]=i[d[o]];t.dummy.setText(e);var a=t.dummy.getWidth(),_=parseInt(i.width,10)||0-(parseInt(i.paddingLeft,10)||0)-(parseInt(i.paddingRight,10)||0)-(parseInt(i.borderLeftWidth,10)||0)-(parseInt(i.borderRightWidth,10)||0);this.setTitle(a>0&&_>0&&a>_?e:"")}},t.prototype.__jx__super=a,r(t,"meshim_widget_widgets_Button"),t}()}).call(e,i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(_,l,u,c,h){if(!(this instanceof t))return new t(_,l,u,c,h);l=l||n.generateID();var p=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"container","",[],{id:"container"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets","class":"generated_form"}],g=p[0].call(this,_,l,null,n.mangleIDs(l,p[3]),p[4]),f=g||this;n.set(l,f);var m=n.get(l+"__container");t.__jx__jcss_generated||(o.generate(_,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){var t,i,a,l;if(t=e.getValue(),!w.equal(n,t)){m.empty(),A={},S={},n=t;var d,u,c,h,p;for(a in t)if(t.hasOwnProperty(a)){if(i=t[a],c=null,C[i.name$string])continue;if(!j[i.type$string])continue;if(!i.name$string)continue;if(!i.label$string)continue;if(o&&!i.value_user$string||"checkbox"==i.type$string&&!i.checked$bool)continue;switch(d=S[i.name$string]=new _(m,null,null,null,{className:"field field_"+i.type$string}),d.label=u=new v(d,null,null,null,{className:"label"}),d.label_name=new v(u,null,null,[b.get(e.$$(a+".label$string"))]),d.label_required=new v(u,null,null,[i.required$bool&&!o?" *":""]),d.input=A[i.name$string]=c=new j[i.type$string](d,null,null,null,{name:i.name$string,required:i.required$bool,autoValidate:!0,readOnly:o}),(c.container||c).addClass("input input_"+i.type$string),c&&c.setLabelElement(u),i.type$string){case"checkbox_multiple":case"radio":i.options&&c.setOptions(i.options);break;case"text":case"email":case"textarea":i.placeholder$string&&c.setPlaceholder(i.placeholder$string),o&&(r.isIE<=7?(c.style.overflow="visible",c.style.height=0):s(function(t){return function(){t.setMinHeight("0"),t.setHeight("0"),t.setHeight(t.getScrollHeight())}}(c)));break;case"checkbox":i.checked$bool&&c.setChecked(i.checked$bool).setInitialChecked(i.checked$bool),d.insertBefore(c.container||c,u),o&&c.setDisabled(!0);break;case"select":for(l in i.options)i.options.hasOwnProperty(l)&&(p=new y(c,null,null,[i.options[l].label$string||i.options[l].value$string],{value:i.options[l].value$string}),(i.value$string==i.options[l].value$string||i.options[l].checked$bool)&&p.setSelected(!0));o&&c.setDisabled(!0);break;case"department":c.setSelectedIndex(0)}o||(d.error_message=h=new $(d,null,null,[i.error_message$string||b.error_message[i.type$string]||b.error_message["default"]],{className:"error_message"}),h.setUseDisplay(!0),c&&c.setErrorMessageElement(h).hideErrorMessage(),h.setVisible("none")),o&&i.value_user$string?(c.setValue&&c.setValue(i.value_user$string||""),c.setInitialValue&&c.setInitialValue(i.value_user$string||"")):i.value$string&&(c.setValue&&c.setValue(i.value$string),c.setInitialValue&&c.setInitialValue(i.value$string)),i.hidden$bool&&(d.setDisplay("none"),d.setRequired(!1))}var g=m.getLastChild();g&&g.addClass("last-child")}}var e,n,o,_=i(153),l=i(154),d=i(157),u=i(159),c=i(121),h=i(164),p=i(146),g=i(160),$=i(145),b=i(91),w=i(47),x=i(155),v=i(95),y=i(163),j={text:c,email:p,textarea:r.isIE<9?c:h,checkbox:x,select:g,checkbox_multiple:l,radio:d,department:u},C={name:1,email:1,phone:1},A={},S={};f.submitSelf=function(){if(e){var t,i={};for(var o in n)if(n.hasOwnProperty(o)){if(n[o].hidden$bool)continue;if(t=A[n[o].name$string],!t)continue;i[o]={value_user$string:t.getValue()},t.getChecked&&(i[o].checked_user$bool=t.getChecked()),!t.getOptions||t instanceof u||(i[o].options=t.getOptions(!0))}e.update(i)}},f.submit=function(t,e,i,o){if(t){var r,a,s={};for(a in n)if(n.hasOwnProperty(a)){if(n[a].hidden$bool)continue;if(o&&"department_id"==n[a].name$string)continue;if(r=A[n[a].name$string],!r)continue;i?(s[a]={value_user$string:r.getValue()},r.getChecked&&(s[a].checked_user$bool=r.getChecked()),!r.getOptions||r instanceof u||(s[a].options=r.getOptions(!0))):(s[a]={name$string:n[a].name$string,value$string:r.getValue()},r.getChecked&&(s[a].checked$bool=r.getChecked()),!r.getOptions||r instanceof u||(s[a].options=r.getOptions()))}if(e){var _=e.getValue();for(a in _)if(_.hasOwnProperty(a)){if(!_[a]||!C[a])continue;s[a]={name$string:a,value$string:_[a]}}}t.write(s)}},f.setReadOnly=function(t){return o=a(t),f[o?"addClass":"removeClass"]("read_only"),f},f.setDataNode=function(i){e!=i&&(e&&f.autounbind(e,"value",t),e=i,e&&f.autobind(e,"value",t))},f.populateSelf=function(){if(e){var t,i=e.getValue();for(var o in i)if(i.hasOwnProperty(o)){if(t=A[n[o].name$string],!t)continue;t.setValue(i[o].value_user$string),t.setChecked&&t.setChecked(i[o].checked_user$bool),t.setOptions&&t.setOptions(i[o].options,!0)}}},f.reset=function(){if(e){var t,i=e.getValue();for(var o in i)if(i.hasOwnProperty(o)){if(t=A[n[o].name$string],!t)continue;t.reset&&t.reset()}}},f.getField=function(t){return S[t]},f.getInput=function(t){return A[t]}}();for(var b in $)$.hasOwnProperty(b)&&(f[b]=$[b]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(u),f.setAttributes&&f.setAttributes(h),"function"==typeof f.addChildren?f.addChildren(c):n.addChildren(f,c),f!==this&&(f.__jx__constructor=d,f.__jx__native=!1),f}var d;return t.prototype=_(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{"*zoom":1},".input_text, .input_email, textarea, select":{width:"100%"},".label, .error_message, .option_label":{display:"block"},".input_checkbox, .input_input_radio, .input_input_checkbox":{display:"inline-block","float":"left",clear:"both"},".field":{marginBottom:"15px","&.field_radio .input, &.field_department .input":{input:{"width, height":"16px"},label:{paddingLeft:"20px",lineHeight:"16px"},"label.disabled":{color:"#ccc","&":"$$inputDisabled"}},"&.field_checkbox, &.field_checkbox_multiple .input":{input:{"width, height":"16px"},label:{paddingLeft:"20px",lineHeight:"15px"}},"&.field_checkbox, &.field_checkbox_multiple, &.field_radio":{"&.invalid":{}}},".label":{marginBottom:"5px",fontWeight:"bold"},textarea:{"minHeight, *height":"70px",resize:"vertical"},".option_label":{marginBottom:"5px","&:last-child":{marginBottom:0}},".error_message":{paddingBottom:"5px"},"&.read_only":{".field_radio, .field_checkbox_multiple":{".input_input_radio, .input_input_checkbox":{display:"none"}},textarea:{overflow:"hidden"},".input_checkbox_multiple":{label:{display:"inline",marginRight:"0.5em","&:after":{content:"','"},"&.last-checked":{marginRight:0,"&:after":{content:"none"}}}},".field":{padding:"6px",marginBottom:0},".input_text, .input_email, textarea, .fake_input":{border:"none",padding:0,resize:"none",background:"transparent"},select:{padding:0,border:"none",height:"auto",background:"transparent"},".option_label":{marginBottom:0,paddingLeft:"0 !important"},".label":{display:"none"},button:{position:"relative",background:"transparent"}}},l(t,"meshim_widget_widgets_Form"),d=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(7),i(16),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(e,i,n,o,a){return this instanceof t?void r.call(this,e,i,n,o,a):new t(e,i,n,o,a)}var r=i(17);return t.prototype=e(r.prototype),t.prototype.validate=function(t){var e=r.prototype.validate.call(this,t);return e?this.removeClass("invalid"):this.addClass("invalid"),e},t.prototype.setRequired=function(t){return t=n(t),this.label_required&&this.label_required.setText(t?" *":""),this.input&&this.input.setRequired(t),!t&&this.input&&this.input.hideErrorMessage(),this},t.prototype.destroy=function(){return this.label=this.label_name=this.label_required=this.input=this.error_message=null,r.prototype.destroy.call(this)},o(t,"meshim_widget_widgets_form_Field"),t}()}).call(e,i(14),i(16),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(e,i,n,o,s){return this instanceof t?(this.optionConstructor=r,this.inputSuffix="checkbox",void a.call(this,e,i,n,o,s)):new t(e,i,n,o,s)}var r=i(155),a=i(156);return t.prototype=e(a.prototype),t.prototype.setValue=function(t){for(var e,i,o=n(t)?t:t.split(","),r=0,a=this.options.length;r<a;r++){e=!1;for(var s=0,_=o.length;s<_;s++)if(this.options[r].getValue()==o[s]){this.options[r].setChecked(!0),(this.options[r].container||this.options[r]).setDisplay(""),this.labels[r].setDisplay("").addClass("label_checked"),e=!0;break}e?i=r:((this.options[r].container||this.options[r]).removeClass("last-checked"),this.labels[r].removeClass("last-checked"),this.options[r].setChecked(!1),this.readOnly&&((this.options[r].container||this.options[r]).setDisplay("none"),this.labels[r].setDisplay("none").removeClass("label_checked")))}void 0!=i&&((this.options[i].container||this.options[i]).addClass("last-checked"),this.labels[i].addClass("last-checked"))},t.prototype.getValue=function(){for(var t=[],e=0,i=this.options.length;e<i;e++)this.options[e].getChecked()&&t.push(this.options[e].getValue());return t.join(",")},o(t,"meshim_widget_widgets_form_CheckBoxMultiple"),t}()}).call(e,i(14),i(21),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(i,n,o,r,s){return this instanceof t?(s||(s={}),s.tagName||(s.tagName="input"),s.type||(s.type="checkbox"),a.call(this,i,n,o,r,s),this.on("click",function(){this.onAutoValidate()}),void(e.engineIE<9&&this.on("click",function(){this.fire("change")}))):new t(i,n,o,r,s)}var a=i(111);return t.prototype=n(a.prototype),t.prototype.getChecked=function(){return this.dom.checked},t.prototype.setChecked=function(t){return this.dom.checked=o(t),this},t.prototype.toggleChecked=function(){return this.setChecked(!this.getChecked()),this},t.prototype.getInitialChecked=function(){return e.engineIE<=8?this._initialChecked:this.dom.getAttribute("checked")},t.prototype.setInitialChecked=function(t){return e.engineIE<=8?this._initialChecked=t:this.setAttribute("checked",t),this},t.prototype.reset=function(){this.setChecked(this.getInitialChecked()).setValidity(!0),a.prototype.reset.call(this)},t.prototype.validate=function(t){var e=!this.dom.required||this.getChecked();return!e&&t&&this.focus(),this.setValidity(e),e},r(t,"jx_ui_CheckBox"),t}()}).call(e,i(7),i(14),i(16),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(e,i,n,o,r){return this instanceof t?(r||(r={}),r.tagName="div",this.options=[],this.labels=[],a.call(this,e,i,n,o,r),void this.on("click",function(){this.validate()})):new t(e,i,n,o,r)}var r=i(95),a=i(111);return t.prototype=e(a.prototype),t.prototype.getRequired=function(){return this.required},t.prototype.setRequired=function(t){return this.required=n(t),this},t.prototype.setReadOnly=function(t){return this.readOnly=n(t),a.prototype.setReadOnly.call(this,t)},t.prototype.setOptions=function(t,e){this.empty(),this.options.length=this.labels.length=0;var i,n,o=this.getName();for(var a in t)t.hasOwnProperty(a)&&(i=new this.optionConstructor(this,null,null,null,{name:o,value:t[a].value$string,checked:t[a].checked$bool,initialChecked:t[a].checked$bool,disabled:this.readOnly,display:this.readOnly&&!t[a].checked$bool?"none":"",className:"input_input_"+this.inputSuffix}),(i.container||i).addClass("input"),n=new r(this,null,null,[t[a].label$string||t[a].value$string],{className:"option_label",display:this.readOnly&&!t[a].checked$bool?"none":""}),e&&i.setChecked(t[a].checked_user$bool),i.setLabelElement(n),this.options.push(i),this.labels.push(n));return this},t.prototype.getOptions=function(t){for(var e={},i=t?"checked_user$bool":"checked$bool",n=0,o=this.options.length;n<o;n++)e[n]={},e[n][i]=this.options[n].getChecked();return e},t.prototype.focus=function(){return this.options[0]&&this.options[0].focus(),this},t.prototype.validate=function(t){if(this.required){for(var e=0,i=this.options.length;e<i;e++)if(this.options[e].getChecked())return this.hideErrorMessage(),!0;return t&&this.options[0]&&this.options[0].focus(),this.showErrorMessage(),!1}return this.hideErrorMessage(),!0},t.prototype.reset=function(){for(var t=0,e=this.options.length;t<e;t++)this.options[t].reset()},o(t,"meshim_widget_widgets_form_InputMultiple"),t}()}).call(e,i(14),i(16),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,a,s){return this instanceof t?(this.optionConstructor=o,this.inputSuffix="radio",void r.call(this,e,i,n,a,s)):new t(e,i,n,a,s)}var o=i(158),r=i(156);return t.prototype=e(r.prototype),t.prototype.setValue=function(t){for(var e=0,i=this.options.length;e<i;e++)this.options[e].getValue()==t?(this.options[e].setChecked(!0),(this.options[e].container||this.options[e]).setDisplay(""),this.labels[e].setDisplay("").addClass("label_checked")):(this.options[e].setChecked(!1),this.readOnly&&((this.options[e].container||this.options[e]).setDisplay("none"),this.labels[e].setDisplay("none").removeClass("label_checked")))},t.prototype.getValue=function(){for(var t=0,e=this.options.length;t<e;t++)if(this.options[t].getChecked())return this.options[t].getValue()},n(t,"meshim_widget_widgets_form_RadioButtonMultiple"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,s,_){return this instanceof t?(_||(_={}),_.tagName||(_.tagName="input"),_.type||(_.type="radio"),r.call(this,i,n,o,s,_),void(e.bugs.noBoxSizing&&(this.parentNode.removeChild(i instanceof a?this:this.dom),this.dom=i.doc.createElement("<"+_.tagName+' type="'+_.type+'" name="'+(_.name||"")+'"/>'),this.dom.jx_wrapper=this,this.style=this.dom.style,this.parentNode.appendChild(i instanceof a?this:this.dom),this.setStyle(o),this.setAttributes(_),this.addClass(this.__jx__fqname)))):new t(i,n,o,s,_)}var r=i(155),a=i(18);return t.prototype=n(r.prototype),o(t,"jx_ui_RadioButton"),t}()}).call(e,i(7),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){t.exports=function(){function t(i,n,o,r,a){if(!(this instanceof t))return new t(i,n,o,r,a);this.inputSuffix="select",t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),u.call(this,i,n,o,r,a),this.departments_label_path="livechat.settings.forms.pre_chat_form.form.2.label$string",this.default_departments_label=c.descendsObj(d,this.departments_label_path),this.$departments=l.root.$("livechat").$("departments"),this.$profile_department_id=l.root.$("livechat").$("profile").$("department_id$int"),this.$departments_label=l.root.$$(this.departments_label_path),this.$filter_enabled=l.root.$("livechat").$("ui").$("departments").$("filter_enabled$bool"),this.$hide_when_offline=l.root.$("livechat").$("settings").$("chat_button").$("hide_when_offline$bool"),this.prev_value=null,this.avail_departments={};var _=this;this.autobind(this.$departments,"value",function(){_.setOptions()}),this.autobind(this.$filter_enabled,"value",function(){_.setOptions()}),this.autobind(this.$hide_when_offline,"value",function(){_.setOptions()}),this.autobind(this.$profile_department_id,"value",function(t){s.call(_,t)}),this.autobind(this.$departments_label,"value",function(){_.updateBlankOption()}),this.onDestruction(function(){_.blank_option&&(_.blank_option.destroy(),_.blank_option=null)}),this.on("change",function(){this.userSelected=!0}),this.reset()}function s(t){this.profile_department=t,this.updateSelectedDepartment()}function _(t){function e(t,e){return t.name$string<e.name$string?-1:t.name$string>e.name$string?1:0}var i=[],n=[];for(var o in t)t.hasOwnProperty(o)&&t.hasOwnProperty(o)&&("offline"==t[o].status$string?n.push({id$int:o,name$string:t[o].name$string,status$string:"offline"}):i.push({id$int:o,name$string:t[o].name$string,status$string:"online"}));return i.sort(e),n.sort(e),i.concat(n)}var l=i(30),d=i(33),u=i(160),c=i(38),h=i(91),p=i(163);return t.__jx__jcss={},t.prototype=n(u.prototype),t.prototype.__jx__super=u,t.prototype.validate=function(){return this.isBlank?(this.setValidity(!0),!0):u.prototype.validate.call(this)},t.prototype.reset=function(){var t=this.$profile_department_id.getValue();t&&this.avail_departments[t]?this.setValue(t):this.setSelectedIndex(0),this.userSelected=!1},t.prototype.setHide=function(t){this.isHide=o(t),this.setOptions()},t.prototype.setDisableWhenOffline=function(t){this.overrideDisable=!o(t),this.setOptions()},t.prototype.isHidden=function(){return this.isBlank||this.isHide},t.prototype.setRequired=function(){var t=u.prototype.setRequired.apply(this,arguments);return this.updateBlankOption(),t},t.prototype.updateBlankOption=function(){this.blank_option&&(this.getRequired()?this.children[0]==this.blank_option&&this.removeChild(this.blank_option):(this.blank_option.setText(h.get(this.$departments_label)==this.default_departments_label?h.pre_chat_offline_form.department_any:"—"),this.children[0]!==this.blank_option&&this.insertBefore(this.blank_option,this.children[0])))},t.prototype.setOptions=function(){if(this.$departments){var t=this.$departments.getValue(),e=this.$filter_enabled.getValue(),i=this.$hide_when_offline.getValue(),n={},o="";t?null!==this.prev_value?(o=this.prev_value,this.prev_value=null):o=this.getValue():this.prev_value=this.getValue(),this.isBlank=!0;for(var a in t)if(t.hasOwnProperty(a)){if(e&&!t[a].display$bool)continue;t[a]&&(this.isBlank=!1,n[a]=t[a])}if(this.isBlank||this.isHide)return void(this.container||this).parentNode.setDisplay("none");(this.container||this).parentNode.setDisplay(""),this.empty();var s,l=this.getName();this.blank_option=s=new p(this,null,null,null,{name:"",value:"",className:"input_input_"+this.inputSuffix}),(s.container||s).addClass("input"),this.avail_departments=n,n=_(n);for(var d=0,u=n.length;d<u;d++){var c="online"==n[d].status$string;s=new p(this,null,null,[n[d].name$string+(c?"":" ("+r(204)+")")],{name:l,value:n[d].id$int,disabled:!this.overrideDisable&&i&&!c,className:"input_input_"+this.inputSuffix}),(s.container||s).addClass("input"),o==s.getValue()&&this.setValue(o)}this.updateBlankOption(),this.updateSelectedDepartment()}},t.prototype.updateSelectedDepartment=function(){var t=this.profile_department;t&&parseInt(this.getValue(),10)!==t&&(this.userSelected||this.avail_departments[t]&&this.setValue(t))},a(t,"meshim_widget_widgets_form_DepartmentSelect"),t}()}).call(e,i(29),i(14),i(16),i(22),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(i,n,o,r,d){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),d||(d={}),d.tagName||(d.tagName="select"),a.call(this,i,n,o,r,d),this.container&&(this.container.addClass(this.__jx__fqname),this.iconFont=new _(this.container,null,null,null,{addClass:"select_icon",icon:"arrow_down"}),this.container.insertBefore(this.iconFont,this.container.getFirstChild()),l.mobile(this.container),l.rtl(this.container)),void s.__constructor.call(this)):new t(i,n,o,r,d)}var a=i(161),s=i(123),_=i(90),l=i(89);return t.__jx__jcss={"&.mobile.invalid, &.rtl.mobile.invalid":{"paddingRight, paddingLeft":"$$inputPadding"},".select_placeholder":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},".select_icon":{"float":"right",marginTop:"3px"},"&.rtl .select_icon":{"float":"left"
},"&.mobile":{".select_placeholder":{lineHeight:"26px"},".select_icon":{marginTop:"8px"}}},t.prototype=n(a.prototype),t.prototype.__jx__super=s,t.prototype.setValidity=function(t){return this.container&&(t=o(t),this.container[t?"removeClass":"addClass"]("invalid")),a.prototype.setValidity.apply(this,arguments)},r(t,"meshim_widget_widgets_Select"),t}()}).call(e,i(29),i(14),i(16),i(4))},function(t,e,i){(function(e,n,o,r,a,s){t.exports=function(){function t(i,r,a,s,d){if(!(this instanceof t))return new t(i,r,a,s,d);if(d||(d={}),d.tagName=null,d.position="relative",e.bugs.noBoxSizing)return _.call(this,i,r,a,s,d),void this.addClass("select_ie6");this.container=new l(i,null,null,null,d),this.container.addClass("select_container"),this.container.removeAttribute("tabindex");var u=this;this.container.destroy=function(){u.destroy()},this.container.empty=function(){u.empty()},this.button=new l(this.container,null,null,null,{}),this.button.addClass("select_button"),this.placeholder=new l(this.container,null,null,null,{}),this.placeholder.addClass("select_placeholder"),d.tagName="select",d.opacity="0",d.position="absolute",d.width="100%",d.height="100%",d.top="0",d.left="0",d.margin=d.marginLeft=d.marginRight=d.marginTop=d.marginBottom="0",e.engineIE<9&&(d.filter="alpha(opacity=0)"),_.call(this,this.container,r,a,s,d),e.isIE?n(function(){u.dom&&u.updatePlaceholder()}):this.updatePlaceholder(),this.on("change",function(){this.updatePlaceholder()}),this.on("keyup",function(){this.updatePlaceholder()}),this.on("focus",function(){this.container.addClass("focus")}),this.on("blur",function(){this.container.removeClass("focus")}),this._updatePlaceholder=function(){u.updatePlaceholder()},o&&o.onLanguage&&o.onLanguage(this._updatePlaceholder)}var _=i(162),l=i(17);t.prototype=r(_.prototype),t.prototype.appendChild=function(t){var e=!this.getOptions().length;if(_.prototype.appendChild.call(this,t),e&&this.getOptions().length){this.setSelectedIndex(0);var i=this;n(function(){i.dom&&i.updatePlaceholder()})}},t.prototype.getPrefix=function(){return this.prefix},t.prototype.setPrefix=function(t){return this.prefix=t,this};var d=" ";return t.prototype.getPrefixSeparator=function(){return this.prefixSeparator},t.prototype.setPrefixSeparator=function(t){return this.prefixSeparator=t,this},t.prototype.updatePlaceholder=function(){if(!this.container||!this.dom)return this;var t=this.getSelectedIndex();if(t<0&&this.prompt)return this.placeholder.setText(this.prompt),this;var e=this.getOptions()[t],i="";return this.prefix&&(i+=this.prefix+(this.prefixSeparator||""===this.prefixSeparator?this.prefixSeparator:d)),e&&(i+="function"==typeof e.getPlaceholder&&e.getPlaceholder()||"function"==typeof e.getLabel&&e.getLabel()||e.getText()),this.placeholder.setText(i),this},t.prototype.getPrompt=function(){return this.prompt},t.prototype.setPrompt=function(t){return this.prompt=t,this.setSelectedIndex(-1),this},t.prototype.setValue=function(t){return _.prototype.setValue.call(this,t),this.updatePlaceholder(),this},t.prototype.setSelectedIndex=function(t){return _.prototype.setSelectedIndex.call(this,t),this.updatePlaceholder(),this},t.prototype.show=function(){this.container?this.container.show():_.prototype.show.call(this)},t.prototype.hide=function(){this.container?this.container.hide():_.prototype.hide.call(this)},t.prototype.setDisabled=function(t){return this.container&&(a(t)?this.container.addClass("disabled"):this.container.removeClass("disabled")),_.prototype.setDisabled.call(this,t)},t.prototype.createLabel=function(t){this.container&&(this.parentNode=this.container.parentNode),_.prototype.createLabel.call(this,t),this.container&&(this.parentNode=this.container)},t.prototype.createErrorMessage=function(t){this.container&&(this.parentNode=this.container.parentNode),_.prototype.createErrorMessage.call(this,t),this.container&&(this.parentNode=this.container)},t.prototype.destroy=function(){o&&o.unLanguage&&o.unLanguage(this._updatePlaceholder),_.prototype.destroy.call(this),this.container&&(_.prototype.empty.call(this.container),this.container.empty=null,_.prototype.destroy.call(this.container),this.container=this.button=this.placeholder=null)},t.prototype.empty=function(){_.prototype.empty.call(this),this.updatePlaceholder()},t.prototype.reset=function(){if(!this.container)return _.prototype.reset.call(this);for(var t=this.getOptions(),e=0,i=t.length;e<i;e++)if(t[e].getSelected())return this.setSelectedIndex(e),this.updatePlaceholder(),this;return this.setSelectedIndex(-1),this.updatePlaceholder(),this},s(t,"jx_ui_PrettySelect"),t}()}).call(e,i(7),i(12),i(22),i(14),i(16),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(this.navStack=null,a||(a={}),a.tagName||(a.tagName="select"),o.call(this,e,i,n,r,a),this.addClass("select"),void this.onDestruction(function(){this.navStack=null})):new t(e,i,n,r,a)}var o=i(111);return t.prototype=e(o.prototype),t.prototype.getSelectedIndex=function(){return this.dom.selectedIndex},t.prototype.setSelectedIndex=function(t){return this.dom.selectedIndex=t,this},t.prototype.getOptions=function(){for(var t=[],e=this.dom.options.length,i=0;i<e;i++)t.push(this.dom.options[i].jx_wrapper);return t},t.prototype.setValue=function(t){return this.setSelectedIndex(-1),o.prototype.setValue.call(this,t)},t.prototype.reset=function(){for(var t=this.getOptions(),e=0,i=t.length;e<i;e++)if(t[e].getSelected())return this.setSelectedIndex(e),this;return this.setSelectedIndex(0),this},n(t,"jx_ui_Select"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(e,i,n,o,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="option"),void r.call(this,e,i,n,o,a)):new t(e,i,n,o,a)}var r=i(111);return t.prototype=e(r.prototype),t.prototype.getLabel=function(){return this.dom.label},t.prototype.setLabel=function(t){return this.dom.label=t,this},t.prototype.getSelected=function(){return this.dom.defaultSelected},t.prototype.setSelected=function(t){return this.dom.defaultSelected=n(t),this},t.prototype.getPlaceholder=function(){return this.placeholder},t.prototype.setPlaceholder=function(t){return this.placeholder=t,this},o(t,"jx_ui_Option"),t}()}).call(e,i(14),i(16),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){var t=i(165),r=t,a=i(123);return t=function(i,n,o,s,_){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),r.call(this,i,n,o,s,_),void a.__constructor.call(this)):new t(i,n,o,s,_)},t.__jx__jcss={},t.prototype=n(r.prototype),t.prototype.__jx__super=a,o(t,"meshim_widget_widgets_TextArea"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="textarea"),void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(122);return t.prototype=e(o.prototype),t.prototype.setCols=function(t){return this.dom.cols=t,this},t.prototype.getCols=function(){return this.dom.cols},t.prototype.setRows=function(t){return this.dom.rows=t,this},t.prototype.getRows=function(){return this.dom.rows},t.prototype.setResize=function(t){"resize"in this.style&&(this.style.resize=t)},t.prototype.getInitialValue=function(){return this._initialValue},t.prototype.setInitialValue=function(t){return this._initialValue=t&&(t.toString?t.toString():t),this},n(t,"jx_ui_TextArea"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui",addClass:"bottom"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){e.mobile(h),e.windowSize(h,"bottom_")}var e=i(89);t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"absolute","bottom, left":0,width:"100%",textAlign:"center","*overflow":"hidden",paddingTop:"$$margin",paddingBottom:0,height:"$$bottomHeight",borderWidth:"$$bottomBorderWidth",borderStyle:"$$bottomBorderStyle",borderColor:"$$bottomBorderColor","&.bottom_padding_bottom":{paddingBottom:"$$margin",height:"$$bottomHeightBottomPadding"},"&.bottom_small":{"paddingLeft, paddingRight":"10px"},"&.bottom_medium":{"paddingLeft, paddingRight":"20px"},"&.bottom_large":{"paddingLeft, paddingRight":"50px"}},"&.note":{height:"auto",fontSize:"$$fontSizeXS",padding:"$$margin",borderWidth:"$$bottomNoteBorderWidth",borderStyle:"$$bottomNoteBorderStyle",borderColor:"$$bottomNoteBorderColor"},"&.padding_bottom":{height:"$$bottomHeightBottomPadding"},"&.mobile":{position:"relative",padding:"$$margin",height:"auto"}},a(t,"meshim_widget_widgets_Bottom"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,s,_){if(!(this instanceof t))return new t(i,n,o,s,_);t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),r.call(this,i,n,o,s,_);var l=a.root.$("connection").$("message$string"),d=this;d.autobind(l,"value",function(t){d.setDisabled(!!t)})}var r=i(168),a=i(30);return t.__jx__jcss={},t.prototype=n(r.prototype),t.prototype.__jx__super=r,o(t,"meshim_widget_widgets_ConnAwareSubmit"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(i,o,r,s,_){if(!(this instanceof t))return new t(i,o,r,s,_);t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),_||(_={}),_.tagName||(_.tagName="input"),_.type||(_.type="submit"),a.call(this,i,o,r,s,_),this.setValue(this._value);var l=this;this._setValue=function(){l.setValue(l._value)},n&&n.onLanguage&&n.onLanguage(this._setValue)}var a=i(151);return t.__jx__jcss={"**self":{}},t.prototype=o(a.prototype),t.prototype.__jx__super=a,t.prototype.setValue=function(t){return this._value=t,a.prototype.setValue.call(this,t)},t.prototype.destroy=function(){n&&n.unLanguage&&n.unLanguage(this._setValue),a.prototype.destroy.call(this)},r(t,"meshim_widget_widgets_Submit"),t}()}).call(e,i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,i,n,o){t.exports=function(){var t=function(){function t(){if(l||d)return!0;var t,i=window[window.GoogleAnalyticsObject||"ga"];return e(i)&&(d=i,t=!0),window._gaq&&window._gat&&(l=window._gaq,u=window._gat,t=!0),t}function o(t){var n;return t==h.NEW&&d?e(d.getAll)&&(n=d.getAll()):t==h.OLD&&u&&(e(u._getTrackers)?n=u._getTrackers():e(u._getTrackerByName)&&(n=[u._getTrackerByName()])),i(n)?n:[]}function r(t,e,i,n){try{a(t,e,i,n)}catch(o){}}function a(e,i,n,o){t()&&e&&(d&&s(e,i,n,o),l&&_(e,i,n,o))}function s(t,i,r,a){c=o(h.NEW);var s={hitType:"event",eventCategory:r||p,eventAction:t};if(n(i,!0)||(s.eventLabel=i),n(a,!0)||(s.eventValue=a),c.length)for(var _=0,l=c.length;_<l;_++)e(c[_].send)&&c[_].send("event",s);else d("send",s)}function _(t,i,r,a){c=o(h.OLD),l.push(function(){for(var o=0,s=c.length;o<s;o++)e(c[o]._trackEvent)&&(n(i,!0)&&(i=void 0),n(a,!0)&&(a=void 0),c[o]._trackEvent(r||p,t,i,a))})}var l,d,u,c,h={OLD:"ga.js",NEW:"analytics.js"},p="Zopim Livechat",g={trackEvent:r};return g}();return o(t,"meshim_widget_controllers_GoogleAnalytics"),t}()}).call(e,i(9),i(21),i(10),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(t,e,i){var n=o(e,i);t.addChildren(n)}function o(t,i){t+="",e(i)||(i=[i]);var n,o,s=[],_=[t];for(n=0,o=i.length;n<o;n++)_=a(_,i[n]);for(n=0,o=_.length;n<o;n++)s[n]=r(_[n]);return s}function r(t){if("string"==typeof t)return t;var e,i=t.children,n=[];if(e=_.extend({},t.attributes,t.tagName?{tagName:t.tagName}:null),i)for(var o=0,a=i.length;o<a;o++)n[o]=r(i[o]);else n=null;return[t.jxmlConstructor||s,null,null,n,e]}function a(t,i){var n=[];t=t.slice();for(var o=0;o<t.length;o++){var r,s=t[o];"string"==typeof s?(r=i(s),e(r)?n=n.concat(r):n.push(r)):(s.children&&(s.children=a(s.children,i)),n.push(s))}return n}var s=i(17),_=i(47),l={appendTo:t,toJXMLElements:o,parseChildrenText:a};return n(l,"meshim_common_StringParser"),l}()}).call(e,i(21),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){for(var e,i=/\r?\n/g,n=0,o=[];null!==(e=i.exec(t));){var r=e[0],a=i.lastIndex-r.length;a>n&&o.push(t.substring(n,a)),o.push({tagName:"br"}),n=i.lastIndex}return n<t.length&&o.push(t.substring(n)),o}return e(t,"meshim_common_stringParser_BRParser"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){for(var e,i=n.search.hurl,r=0,a=[];null!==(e=i.exec(t));){var s=e[0].trim(),_=i.lastIndex-s.length;_>r&&a.push(t.substring(r,_)),a.push({jxmlConstructor:o,attributes:{href:s},children:[s]}),r=i.lastIndex}return r<t.length&&a.push(t.substring(r)),a}var n=i(64),o=i(173);return e(t,"meshim_common_stringParser_URLWithProtocolParser"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_a=i(88),t.exports=function(){function t(a,s,_,l,d){if(!(this instanceof t))return new t(a,s,_,l,d);s=s||n.generateID();var u=[e.__$$__jx_ui_html_a,"","",[],{xmlns:"jx.ui.html"}],c=u[0].call(this,a,s,null,n.mangleIDs(s,u[3]),u[4]),h=c||this;n.set(s,h),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setAttribute("rel","noreferrer"),h.setAttribute("target","_blank"),r.isIE&&h.on("click",e)}function e(t){t&&t.preventDefault();var e,i;e=h.getAttribute("href"),e&&(i=window.open(),i.opener=null,i.location.href=e)}t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=i,h.__jx__native=!1),h}var i;return t.prototype=a(e.__$$__jx_ui_html_a.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_a,t.__jx__jcss={},s(t,"meshim_common_stringParser_SafeAnchor"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(7),i(14),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){for(var e,i,_=n.search.url,l=0,d=[];null!==(i=_.exec(t));){var u=i[0].trim(),c=i[2],h=_.lastIndex-u.length;if(n.tld.test(c)){h>l&&d.push(t.substring(l,h));var p=o.parseURL("//"+u).hostname;e=p===a?s:"http://",d.push({jxmlConstructor:r,attributes:{href:e+u},children:[u]}),l=_.lastIndex}}return l<t.length&&d.push(t.substring(l)),d}var n=i(64),o=i(175),r=i(173),a=window.location.hostname,s=window.location.protocol+"//";return e(t,"meshim_common_stringParser_URLWithoutProtocolParser"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){var t={parseURL:function(t){var e=window.document.createElement("a");return e.href=t,{hostname:e.hostname,pathname:e.pathname,protocol:e.protocol,search:e.search,hash:e.hash,port:e.port}}};return e(t,"meshim_common_URLUtils"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__meshim_widget_widgets_Body=i(177),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_form_Profile=i(135),e.__$$__meshim_widget_widgets_Form=i(152),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=o(146),p=[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__meshim_widget_widgets_Body,"message","",[],{id:"message"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_form_Profile,"","",[],{hideLabel:"",disabled:"true"}],[e.__$$__meshim_widget_widgets_Form,"form","",[],{id:"form",readOnly:"true"}]],{addClass:"form_container"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Button,"another","",[h],{id:"another",addClass:"wide"}]],{addClass:"controls"}]],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],g=p[0].call(this,s,_,null,n.mangleIDs(_,p[3]),p[4]),f=g||this;n.set(_,f);var m=n.get(_+"__message"),$=n.get(_+"__form"),b=n.get(_+"__another");t.__jx__jcss_generated||(r.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var w=function(){function t(){$.setDataNode(s),f.autobind(l,"value",function(){m.setText(n.get(l))}),f.autobind(u,"value",function(t){1!=t||_.getValue()||a(function(){u.update(0)})}),b.on("click",function(){u.update(0)})}var e=i(30),n=i(91),o=e.root.$("livechat"),r=o.$("settings").$("forms").$("offline_form"),s=r.$("form"),_=r.$("form_submitted"),l=r.$("post_submit_message$string"),d=o.$("ui").$("chat_window").$("pre_chat_offline_form"),u=d.$("stack_index$int");t()}();for(var x in w)w.hasOwnProperty(x)&&(f[x]=w[x]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(d),f.setAttributes&&f.setAttributes(c),"function"==typeof f.addChildren?f.addChildren(u):n.addChildren(f,u),f!==this&&(f.__jx__constructor=l,f.__jx__native=!1),f}var l;return t.prototype=s(e.__$$__meshim_widget_widgets_ChatWindowContent.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowContent,t.__jx__jcss={".form_container":{background:"$$formSubmittedBg",borderRadius:"$$formSubmittedRadius",borderWidth:"$$formSubmittedBorderWidth",borderStyle:"$$formSubmittedBorderStyle",borderColor:"$$formSubmittedBorderColor"},".profile_form":{},".generated_form":{marginBottom:"5px"},".controls":{marginTop:"15px",marginBottom:"10px"}},_(t,"meshim_widget_components_chatWindow_preChatOfflineForm_PostSubmit"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,a,s){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),void r.call(this,i,n,o,a,s)):new t(i,n,o,a,s)}var r=i(17);return t.__jx__jcss={"**self":{lineHeight:"1.2",marginBottom:"$$marginL"},"&.short":{marginBottom:"0"}},t.prototype=n(r.prototype),t.prototype.__jx__super=r,o(t,"meshim_widget_widgets_Body"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Header=i(179),e.__$$__jx_ui_Label=i(95),e.__$$__meshim_widget_widgets_form_DepartmentSelect=i(159),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=o(143),p=o(144),g=o(145),f=[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__jx_ui_Widget,"department_picker","",[[e.__$$__meshim_widget_widgets_Header,"","",[[e.__$$__jx_ui_Label,"","",[h],{}]],{}],[e.__$$__meshim_widget_widgets_form_DepartmentSelect,"department","",[],{id:"department",addClass:"department",disableWhenOffline:"false"}]],{id:"department_picker"}],[e.__$$__meshim_widget_widgets_Header,"","",[[e.__$$__jx_ui_Label,"","",[p],{}],[e.__$$__jx_ui_Label,"","",[],{text:" "}],[e.__$$__jx_ui_Label,"timezone_container","",[],{id:"timezone_container",addClass:"timezone_container"}]],{}],[e.__$$__jx_ui_Widget,"days","",[],{id:"days"}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__meshim_widget_widgets_Button,"back","",[g],{id:"back",addClass:"wide"}]],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",absPaddingBottom:"bottomHeight"}],m=f[0].call(this,s,_,null,n.mangleIDs(_,f[3]),f[4]),$=m||this;n.set(_,$);var b=n.get(_+"__department_picker"),w=n.get(_+"__department"),x=n.get(_+"__timezone_container"),v=n.get(_+"__days"),y=n.get(_+"__back");t.__jx__jcss_generated||(r.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var j=function(){function t(){$.autobind(C,"value",function(t){s!=t&&(s=t,n())}),$.autobind(A,"value",function(t){_!=t&&(_=t,n())}),$.autobind(m,"value",function(t){t&&(t=r(t),x.setText("("+t+")"))}),$.autobind(S,"value",e),$.autobind(I,"value",e),$.autobind(k,"value",function(t){l=t,e()}),$.autobind(B,"value",function(t){d!=t&&(d=t,n())}),w.on("change",e),y.on("click",function(){g.update(0)})}function e(){if(l){var t=w.getValue();if("account"===l)u=S.getValue();else{var e=I.getValue();u=t?e&&e[t]&&e[t].schedule||S.getValue():e&&e.overall&&e.overall.schedule}n()}}function n(){if(s&&d&&u&&l){b.setDisplay("account"==l?"none":""),w.setHide("account"==l);var t,e=N[_]||N.daily,i=[];for(var n in e)if(e.hasOwnProperty(n))if(a(e[n]))i.push({enabled$bool:u[e[n][0]].enabled$bool,periods:u[e[n][0]].periods,days:[e[n][1]]});else{t=!1;for(var r=0,c=i.length;r<c;r++)if(o(i[r],u[e[n]])){i[r].days.push(e[n]),t=!0;break}t||i.push({enabled$bool:u[e[n]].enabled$bool,periods:u[e[n]].periods,days:[e[n]]})}v.empty();for(var h=0,g=i.length;h<g;h++)new p(v).setData(i[h])}}function o(t,e){if(!t.enabled$bool&&!e.enabled$bool)return!0;if(t.enabled$bool==e.enabled$bool){var i,n=t.periods,o=e.periods,r=0,a=0;for(i in n)if(n.hasOwnProperty(i)){if(n[i].start$int!==(o[i]&&o[i].start$int)||n[i].end$int!==(o[i]&&o[i].end$int))return;r++}for(i in o)o.hasOwnProperty(i)&&a++;if(r==a)return!0}}function r(t){return t.replace(/_/g," ")}var s,_,l,d,u,c=i(30),h=i(91),p=i(180),g=c.root.$("livechat").$("ui").$("chat_window").$("pre_chat_offline_form").$("stack_index$int"),f=c.root.$("livechat").$("settings"),m=f.$("timezone$string"),j=f.$("operating_hours"),C=j.$("enabled$bool"),A=j.$("mode$string"),S=j.$("schedule"),I=j.$("dept_schedules"),k=j.$("type$string"),B=j.$("display_notice$bool"),N={weekday_weekend:[[1,h.datetime.weekday],[0,h.datetime.weekend]],daily:[1,2,3,4,5,6,0]};t()}();for(var C in j)j.hasOwnProperty(C)&&($[C]=j[C]);return $.fire&&$.fire("init"),$.setStyle&&$.setStyle(d),$.setAttributes&&$.setAttributes(c),"function"==typeof $.addChildren?$.addChildren(u):n.addChildren($,u),$!==this&&($.__jx__constructor=l,$.__jx__native=!1),$}var l;return t.prototype=s(e.__$$__meshim_widget_widgets_ChatWindowContent.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowContent,t.__jx__jcss={".timezone_container":{fontWeight:"normal"},".department":{marginBottom:"20px"}},_(t,"meshim_widget_components_chatWindow_preChatOfflineForm_OperatingHours"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(21),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(i,n,o,a,s){return this instanceof t?(t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),void r.call(this,i,n,o,a,s)):new t(i,n,o,a,s)}var r=i(177);return t.__jx__jcss={"**self":{fontWeight:"bold"}},t.prototype=n(r.prototype),t.prototype.__jx__super=r,o(t,"meshim_widget_widgets_Header"),t}()}).call(e,i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Header=i(179),e.__$$__meshim_widget_widgets_Body=i(177),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Header,"days_el","",[],{id:"days_el",addClass:"short"}],[e.__$$__meshim_widget_widgets_Body,"periods_el","",[],{id:"periods_el"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__days_el"),f=n.get(s+"__periods_el");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(t){for(var e=0,i=t.length;e<i;e++)r(t[e])&&(t[e]=d[t[e]]);return t}function e(t){for(var e,i,n,o=[],r=0,a=t.length;r<a;r++){if("number"!=typeof t[r])return t;if(e=t[r],i=t[r-1],n=t[r+1],r>t[r]&&(e+=l),r-1>t[r-1]&&(i+=l),r+1>t[r+1]&&(n+=l),r&&i==e-1){if(r!=a-1&&n==e+1)continue;o.push(" — ",t[r])}else r&&o.push(", "),o.push(t[r])}return o}var n=i(38),o=i(91),a=i(181),s=i(95),_=i(17),l=7,d=o.datetime.days,u="12",c=0,h=1440;p.setData=function(i){if(i&&i.days){g.empty();var r=i.days;if(r.length==l)g.setText(o.datetime.everyday);else{r=t(e(r));for(var d=0,p=r.length;d<p;d++)new s(g,null,null,null,{text:r[d]})}f.empty();var m,$=i.periods;if(i.enabled$bool){if($)for(var b in $)$.hasOwnProperty(b)&&($[b].start$int===c&&$[b].end$int===h?(m=new _(f),m.setText(o.datetime.all_day)):(m=new a(f),m.setStart(n.formatMinutesAsHours($[b].start$int,u)),m.setEnd(n.formatMinutesAsHours($[b].end$int,u))))}else f.setText(o.pre_chat_offline_form.operating_hours.closed)}}}();for(var $ in m)m.hasOwnProperty($)&&(p[$]=m[$]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={},s(t,"meshim_widget_components_chatWindow_preChatOfflineForm_operatingHours_Group"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(23),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.setStart=e,p.setEnd=n,r&&r.onLanguage&&(r.onLanguage(o),p.onDestruction(function(){r.unLanguage(o)}))}function e(t){a=t,o()}function n(t){s=t,o()}function o(){var t=l.replace("<start_time>",a||"").replace("<end_time>",s||"");p.setText(t)}var a,s,_=i(91),l=_.pre_chat_offline_form.operating_hours.period;t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={},s(t,"meshim_widget_components_chatWindow_preChatOfflineForm_operatingHours_Period"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast=i(126),e.__$$__meshim_widget_components_chatWindow_chatPanel_File=i(183),e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader=i(184),e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatLogContainer=i(202),e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatTextArea=i(237),e.__$$__meshim_widget_widgets_Branding=i(85),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(_,l,u,c,h){if(!(this instanceof t))return new t(_,l,u,c,h);l=l||n.generateID();var p=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast,"","",[],{addClass:"disconnected_toast"}],[e.__$$__meshim_widget_components_chatWindow_chatPanel_File,"","",[],{}],[e.__$$__meshim_widget_widgets_ChatWindowContent,"chat_panel_container","",[[e.__$$__jx_ui_Widget,"served_by_container","",[[e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader,"","",[],{}]],{id:"served_by_container","class":"served_by_container"}],[e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatLogContainer,"chat_log","",[],{id:"chat_log",addClass:"chat_log"}],[e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatTextArea,"chat_text_area","",[],{id:"chat_text_area",addClass:"chat_text_area"}],[e.__$$__meshim_widget_widgets_Branding,"","",[],{addClass:"chat_panel_branding",hideOnDesktop:"true"}],[e.__$$__meshim_widget_widgets_Button,"scroll_top_btn","",[],{id:"scroll_top_btn","class":"scroll_top_btn"}]],{id:"chat_panel_container","class":"chat_panel_container",absPaddingTop:"chatPanelProfileCardContainerHeight"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:chatPanel":"meshim.widget.components.chatWindow.chatPanel",titleBar:"",actionBar:"default",hideBrandingMobile:"true"}],g=p[0].call(this,_,l,null,n.mangleIDs(l,p[3]),p[4]),f=g||this;n.set(l,f);var m=n.get(l+"__chat_panel_container"),$=n.get(l+"__served_by_container"),b=n.get(l+"__chat_log"),w=n.get(l+"__chat_text_area"),x=n.get(l+"__scroll_top_btn");t.__jx__jcss_generated||(o.generate(_,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var v=function(){function t(){q.mobile(f),q.rtl(f),f.autobind(et,"value",function(t){t&&(it=t,I())}),H.onAnimationEnd(f,f,function(){D?(j(!0),T=null,b.getScrollTop()&&y()?D=!1:setTimeout(function(){j(!0),D=!1},Y)):T&&(b.setScrollTop(T),b.getScrollTop()==T?T=null:setTimeout(function(){b.setScrollTop(T),T=null},Y)),nt&&ot||e()}),H.onTransitionEnd(f,m,function(t){t.target.jx_wrapper==m&&pt&&j(!0)}),f.autobind(at,"value",e),f.autobind(rt,"value",e),f.autobind(_t,"value",function(t){B=t,o(),l(),_()}),f.autobind(lt,"value",function(t){N=t,o(),l(),_()}),ut&&!ht&&r.window.on("focus",_),f.autobind(K,"value",function(){pt=y()}),f.autobind(K,"keys",function(t){t&&t.length&&(B&&N==f.getName()?ft():D=!0)}),f.autobind(J,"value",function(t){t&&B&&N==f.getName()?a(j):D=!0}),f.autobind(Q,"value",function(t){t&&pt&&a(j)}),f.on("show",d),H.onTransitionEnd(f,f,u),f.autobind(st,"value",c),ht&&(m.setAbsPaddingTop(),b.defaultPlacement.insertBefore($,b.defaultPlacement.getFirstChild()),new U(x,null,null,null,{className:"scroll_top_icon",icon:"arrow_up"}),x.on("click",function(){x.setDisplay("none"),window.scrollTo(0,0)}),r.window.on("resize",function(){h(),p()}),r.window.on("orientationchange",function(){h(),p()}),r.window.on("scroll",function(){h(),v(),p()}),f.on("show",function(){v()}),r.window.on("resize",gt),r.window.on("orientationchange",gt),f.autobind(K,"keys",gt),f.on("show",gt),w.on("click",function(){window.setTimeout(function(){j()},200)}),V.isChromeIOSMobile&&(f.style.paddingBottom="42px"))}function e(){k(!0),a(n,f,"once")}function n(){f.dom&&(w.updateStyles(),S(),b.updateScrollStyles())}function o(){B&&N==f.getName()&&e()}function _(){ht||z.testSafariFocusBug()||B&&N==f.getName()&&w.focus()}function l(){B&&N==f.getName()?D?(j(!0),b.getScrollTop()&&y()?D=!1:G&&!H.isIE||setTimeout(function(){j(!0),D=!1},Y),T=null):T&&(b.setScrollTop(T),b.getScrollTop()==T?T=null:G&&!H.isIE||setTimeout(function(){b.setScrollTop(T),T=null},Y)):T=b.getScrollTop()}function d(){a(j),f.un("show",d),S()}function u(){window.setTimeout(j,300),H.unTransitionEnd(f,f,u),S()}function c(t){$.setDisplay(t?"block":"none"),!t||ht?m.setAbsPaddingTop():m.setAbsPaddingTop("chatPanelProfileCardContainerHeight")}function h(){w.setStyle("width:"+(f.getWidth()-2)+"px")}function p(){O&&window.clearTimeout(O),
O=window.setTimeout(function(){window.innerHeight>=120&&window.scrollY>f.titleBar.getHeight()?x.setDisplay("block"):x.setDisplay("none")},100)}function g(){var t,e,i;b.setChatLogMarginTop("0px"),t=f.titleBar.getHeight()+$.getHeight()+w.getHeight(),e=b.getScrollHeight()-$.getHeight(),i=window.document.documentElement.clientHeight-t,e<i?(f.style.height="100%",e>0?b.setChatLogMarginTop(i-31-e+"px"):b.setChatLogMarginTop(i-e+"px")):(f.style.height="auto",b.setChatLogMarginTop("10px"))}function v(){P&&window.clearTimeout(P),P=window.setTimeout(function(){y()?w.setStyle("position:absolute; left: 0px;"):w.setStyle("position:fixed; left:"+Math.round((window.innerWidth-f.getWidth())/2+1)+"px;")},50)}function y(){return ht?window.scrollY+window.innerHeight>=f.getScrollHeight():b.getScrollTop()+b.getHeight()>=b.getScrollHeight()}function j(t){f.dom&&(ht?(t?window.scrollTo(0,f.getScrollHeight()):a(function(){window.scrollTo(0,f.getScrollHeight())}),window.setTimeout(function(){v()},100)):t?b.setScrollTop(b.getScrollHeight()):C())}function C(){if(!W&&!y())return L=+new Date,R=b.getScrollTop(),b.getScrollHeight()-b.getHeight()-R<=bt?void b.setScrollTop(b.getScrollHeight()):void(W=window.setInterval(A,$t))}function A(){if(y())return window.clearInterval(W),void(W=null);var t=+new Date;return t>=L+mt?(b.setScrollTop(b.getScrollHeight()),window.clearInterval(W),void(W=null)):void b.setScrollTop(R+(t-L)/mt*(b.getScrollHeight()-R))}function S(){var t=w.getComputedStyle();t&&(nt=(parseInt(t.paddingTop,10)||0)+(parseInt(t.paddingBottom,10)||0)+(parseInt(t.borderTopWidth,10)+(s.isWindows?1:0)||0)+(parseInt(t.borderBottomWidth,10)+(s.isWindows?1:0)||0),I())}function I(){E&&window.clearTimeout(E),k(E),E=window.setTimeout(k,500)}function k(t){E&&window.clearTimeout(E),E=null,f.dom&&"height$int"in it&&(ot=it.height$int,t||(pt=y()),m.setStyle("padding-bottom",it.height$int+nt+"px"),pt&&j(ht&&""===et.$("value$string").getValue()))}var B,N,T,D,E,P,O,W,L,R,F=i(44),M=i(30),V=i(41),H=i(38),z=i(242),q=i(89),U=i(90),G=H.isStyleSupported("animation"),Y=200,X=M.root.$("livechat"),K=X.$("channel").$("log"),Z=X.$("ui").$("chat_window"),Q=Z.$("typing_info").$("agent_typing$bool"),J=Z.$("file_upload_scroll$bool"),tt=Z.$("chat_panel"),et=tt.$("textarea"),it={},nt=0,ot=0,rt=X.$("ui").$("theme_loaded$bool"),at=X.$("settings").$("theme").$("chat_window").$("size$string"),st=X.$("ui").$("chat_window").$("display_profile_card$bool"),_t=Z.$("display$bool"),lt=Z.$("main_stack_name$string"),dt=X.$("ui").$("popout$bool"),ut=dt.getValue(),ct=X.$("ui").$("mobile$bool"),ht=ct.getValue(),pt=!0,gt=F.debounce(g,200),ft=F.debounce(j,100),mt=200,$t=16,bt=200;t()}();for(var y in v)v.hasOwnProperty(y)&&(f[y]=v[y]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(u),f.setAttributes&&f.setAttributes(h),"function"==typeof f.addChildren?f.addChildren(c):n.addChildren(f,c),f!==this&&(f.__jx__constructor=d,f.__jx__native=!1),f}var d;return t.prototype=_(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={".chat_panel_container":{position:"relative","width, height":"100%",zIndex:20,transition:"padding 0.1s ease-in-out","*overflow":"visible !important",".served_by_container":{position:"absolute","top, left":0,width:"100%",padding:"$$paddingXL",height:"$$chatPanelProfileCardContainerHeight",background:"$$chatPanelProfileCardContainerBackground",borderWidth:"$$chatPanelProfileCardContainerBorderWidth",borderStyle:"$$chatPanelProfileCardContainerBorderStyle",borderColor:"$$chatPanelProfileCardContainerBorderColor"},".chat_text_area":{position:"absolute",bottom:0,left:0,width:"100%"},".chat_log":{".scrollable_inner":{padding:0}}},".disconnected_toast":{top:"25%"},".scroll_top_btn":{position:"fixed",top:"20px",left:"50%",width:"60px",height:"40px",marginLeft:"-30px",padding:"0px",zIndex:"1000",display:"none",".scroll_top_icon":{lineHeight:"44px",textAlign:"center",fontSize:"16px"}},"&.mobile":{".served_by_container":{position:"relative",padding:"10px",height:"auto"},".chat_panel_container":{".chat_log":{marginBottom:"30px"}},".chat_panel_branding":{display:"block",position:"absolute",padding:"5px",bottom:"45px",margin:"0",zIndex:"30"},".disconnected_toast":{top:"60px"}},"&.mobile.ltr":{".chat_panel_branding":{left:"10px"}},"&.mobile.rtl":{".chat_panel_branding":{right:"10px"}}},l(t,"meshim_widget_components_chatWindow_ChatPanel"),d=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(6),i(12),i(7),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l){e.__$$__meshim_widget_widgets_Toast=i(128),e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(_,l,u,c,h){if(!(this instanceof t))return new t(_,l,u,c,h);l=l||n.generateID();var p=[e.__$$__meshim_widget_widgets_Toast,"","",[[e.__$$__jx_ui_html_div,"message","",[],{id:"message"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],g=p[0].call(this,_,l,null,n.mangleIDs(l,p[3]),p[4]),f=g||this;n.set(l,f);var m=n.get(l+"__message");t.__jx__jcss_generated||(o.generate(_,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){l.onTransitionEnd(f,f,e),b&&a.window.on("click",e),f.onDestruction(function(){b&&a.window.un("click",e)}),f.autobind($,"value",function(t){return t?("size"==t?m.setText(u[t].replace("<size>",c)):m.setText(u[t]||u["default"]),g&&window.clearTimeout(g),p&&f.removeClass("fade_out"),f.setDisplay(""),p&&f.dom.offsetHeight,p&&s(function(){f.addClass("fade_out")}),void(g=window.setTimeout(e,h))):void e()})}function e(){f.setDisplay("none")}var n=i(30),o=i(40),_=i(32),l=i(38),d=i(91),u=d.file_upload.error,c=o.prettySize(_.FILE_UPLOAD_MAX,{base2:!0}),h=3100,p=l.isStyleSupported("transition");r.isFF&&(p=!1);var g,$=n.root.$("livechat").$("ui").$("chat_window").$("chat_panel").$("file_toast").$("error$string"),b=n.root.$("livechat").$("ui").$("popout$bool");t()}();for(var b in $)$.hasOwnProperty(b)&&(f[b]=$[b]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(u),f.setAttributes&&f.setAttributes(h),"function"==typeof f.addChildren?f.addChildren(c):n.addChildren(f,c),f!==this&&(f.__jx__constructor=d,f.__jx__native=!1),f}var d;return t.prototype=_(e.__$$__meshim_widget_widgets_Toast.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Toast,t.__jx__jcss={"**self":{position:"absolute",zIndex:"1000",top:"50%",left:"50%",width:"160px",height:"auto",marginTop:"-32px",marginLeft:"-80px",padding:"10px",textAlign:"center",fontWeight:"bold",transition:"opacity 0.5s linear 2.5s",opacity:1,"&":"$$fileToast","&.fade_out":{opacity:0}}},l(t,"meshim_widget_components_chatWindow_chatPanel_File"),d=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(7),i(6),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_div=i(114),e.__$$__jx_ui_html_table=i(97),e.__$$__jx_ui_html_tbody=i(98),e.__$$__jx_ui_html_tr=i(99),e.__$$__jx_ui_html_td=i(100),e.__$$__jx_ui_ViewStack=i(82),e.__$$__meshim_widget_widgets_AgentProfileCard=i(185),e.__$$__meshim_widget_widgets_MultiProfilesCard=i(190),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_table,"","",[[e.__$$__jx_ui_html_tbody,"","",[[e.__$$__jx_ui_html_tr,"","",[[e.__$$__jx_ui_html_td,"","",[[e.__$$__jx_ui_ViewStack,"stack","",[[e.__$$__meshim_widget_widgets_AgentProfileCard,"agent_card","",[],{id:"agent_card",addClass:"card"}],[e.__$$__meshim_widget_widgets_MultiProfilesCard,"multi_agents_card","",[],{id:"multi_agents_card",addClass:"card cursor_pointer"}]],{id:"stack"}]],{pseudo:"served_by_cell"}],[e.__$$__jx_ui_html_td,"rating_cell","",[],{pseudo:"rating_cell",id:"rating_cell","class":"display_none"}]],{}]],{}]],{"class":"profile_table"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__stack"),f=n.get(s+"__agent_card"),m=n.get(s+"__multi_agents_card"),$=n.get(s+"__rating_cell");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var b=function(){function t(){g.on("instantiate",function(t){var e=g.children[t];e.onGravatarClick=n,e.onContentClick=n,0===t?f=e:m=e}),g.setIndex(0),p.autobind(y,"keys",e),p.autobind(S,"value",o),p.autobind(j,"value",o),p.autobind(I,"value",o),N&&p.addClass("mobile")}function e(){var t=y.getKeys().length;if(t>1){if(1===g.getIndex())return;g.setIndex(1),f.setDataNode(null),m.setDataNode(y)}else{0!==g.getIndex()&&(g.setIndex(0),m.setDataNode(null));var e;1===t?(e=y.$(y.getKeys()[0]),f.addClass("cursor_pointer")):(e=A,f.removeClass("cursor_pointer")),f.setDataNode(e)}}function n(){B.getValue()&&l.resetUnreadCount(),y.getKeys().length&&k.update("agent_list")}function o(){var t=r(S.getValue()),e=r(j.getValue()),i=r(I.getValue());a(t&&e&&i)}function a(t){t?(w||s(),$.removeClass("display_none")):$.addClass("display_none")}function s(){w=new b($).setPseudo("rating_bar"),w.setDataNode(C),w.setSize("small"),w.on("change",_)}function _(t){T&&d.scrollToBottom(),C&&h.writeNode(C,t);var e="chat_panel",i={good:"Good",bad:"Bad"};c.trackEvent("Chat_Rating_"+(i[t]||"Removed"),e)}var l=i(79),d=i(191),u=i(30),c=i(169),h=i(38),b=i(193),w=null,x=u.root.$("livechat"),v=x.$("channel"),y=x.$("agents"),j=v.$("served$bool"),C=v.$("rating$string"),A=x.$("settings").$("concierge"),S=x.$("settings").$("rating").$("enabled$bool"),I=x.$("settings").$("theme").$("chat_window").$("profile_card").$("display_rating$bool"),k=x.$("ui").$("chat_window").$("main_stack_name$string"),B=x.$("ui").$("popout$bool"),N=x.$("ui").$("mobile$bool").getValue(),T=x.$("ui").$("mobile_overlay$bool").getValue();t()}();for(var w in b)b.hasOwnProperty(w)&&(p[w]=b[w]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{height:"100%",".profile_table":{width:"100%"},".card":{".avatar_cell":{width:"50px",verticalAlign:"bottom",".profile_avatar":{position:"absolute",bottom:"0","width, height":"50px",borderWidth:"$$chatPanelProfileCardAvatarBorderWidth",borderStyle:"$$chatPanelProfileCardAvatarBorderStyle",borderColor:"$$chatPanelProfileCardAvatarBorderColor",borderRadius:"$$chatPanelProfileCardAvatarRadius",boxShadow:"$$chatPanelProfileCardAvatarShadow"}},".content_cell":{padding:"0 10px",verticalAlign:"bottom",width:"100%",".profile_name, .profile_title":{overflow:"hidden",width:"100%",whiteSpace:"nowrap"}}},".rating_cell":{width:"52px",verticalAlign:"middle"},".cursor_pointer":{cursor:"pointer"},".display_none":{display:"none"}},"&.mobile":{".card":{".avatar_cell":{width:"40px",verticalAlign:"middle",".profile_avatar":{position:"relative","width, height":"40px"}},".content_cell":{verticalAlign:"middle",".profile_name":{marginTop:"3px"}}},".rating_cell":{width:"88px"}}},s(t,"meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(16),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ProfileCard=i(186),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_ProfileCard,"","",[],{xmlns:"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(t){if(n.call(p,t),t&&t!==l){var e=t.$("title$string"),i=new s(e,d);p.setTitleNode(i)}}function e(){n=p.setDataNode||function(){},p.setDataNode=t}var n,o=r(205),a=i(30),s=i(189),_=i(31),l=a.root.$$("livechat.settings.concierge"),d=new _("title$string");d.update(o),e()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ProfileCard.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ProfileCard,t.__jx__jcss={},s(t,"meshim_widget_widgets_AgentProfileCard"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__jx_ui_html_table=i(97),e.__$$__jx_ui_html_tbody=i(98),e.__$$__jx_ui_html_tr=i(99),e.__$$__jx_ui_html_td=i(100),e.__$$__meshim_widget_widgets_Gravatar=i(138),e.__$$__meshim_widget_widgets_profileCard_MemberName=i(187),e.__$$__meshim_widget_widgets_profileCard_TitleHolder=i(188),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_table,"","",[[e.__$$__jx_ui_html_tbody,"","",[[e.__$$__jx_ui_html_tr,"","",[[e.__$$__jx_ui_html_td,"","",[[e.__$$__meshim_widget_widgets_Gravatar,"gravatar","",[],{id:"gravatar",addClass:"profile_avatar"}]],{"class":"avatar_cell"}],[e.__$$__jx_ui_html_td,"content_cell","",[[e.__$$__meshim_widget_widgets_profileCard_MemberName,"name_holder","",[],{id:"name_holder",addClass:"profile_name"}],[e.__$$__meshim_widget_widgets_profileCard_TitleHolder,"title_holder","",[],{id:"title_holder",addClass:"profile_title"}]],{pseudo:"content_cell",id:"content_cell"}]],{}]],{}]],{"class":"profile_table"}]],{xmlns:"jx.ui.html","xmlns:widget":"meshim.widget"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__gravatar"),g=n.get(a+"__content_cell"),f=n.get(a+"__name_holder"),m=n.get(a+"__title_holder");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){p.on("click",function(){h.onGravatarClick&&h.onGravatarClick()}),g.on("click",function(){h.onContentClick&&h.onContentClick()}),d.getValue()&&h.addClass("mobile"),h.autobind(_,"value",function(t){h[t?"removeClass":"addClass"]("no_avatar")}),h.autobind(l,"value",function(t){h[t?"removeClass":"addClass"]("no_title_name")}),h.setDataNode=e,h.setTitleNode=n}function e(t){p.setMemberNode(t),t?(o=t.$("display_name$string"),f.setDataNode(o),r=t.$("title$string"),n(r)):(f.setDataNode(null),n(null))}function n(t){r=t,m.setDataNode(r)}var o,r,a=i(30),s=a.root.$("livechat"),_=s.$("settings").$("theme").$("chat_window").$("profile_card").$("display_avatar$bool"),l=s.$("settings").$("theme").$("chat_window").$("profile_card").$("display_title_name$bool"),d=s.$("ui").$("mobile$bool");t()}();for(var b in $)$.hasOwnProperty(b)&&(h[b]=$[b]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{width:"100%",position:"relative",".profile_table":{width:"100%",tableLayout:"fixed",fontSize:"100%",borderSpacing:"0px",borderCollapse:"collapse",td:{padding:"0px"}},".profile_avatar":{width:"32px",height:"32px",borderWidth:"$$profileCardAvatarBorderWidth",borderStyle:"$$profileCardAvatarBorderStyle",borderColor:"$$profileCardAvatarBorderColor",borderRadius:"$$profileCardAvatarRadius",boxShadow:"$$profileCardAvatarShadow"},".profile_name":{fontWeight:"bold",color:"$$profileCardNameColor"},".profile_title":{color:"$$profileCardTitleColor"},".profile_name, .profile_title":{lineHeight:"1.2"}},"**self.no_avatar .profile_table":{".avatar_cell":{display:"none"},".content_cell":{paddingLeft:"0px"}},"**self.no_title_name .profile_table":{".content_cell":{visibility:"hidden"}},"**self.mobile":{".profile_table":{height:"100%"}}},a(t,"meshim_widget_widgets_ProfileCard"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html","xmlns:widget":"meshim.widget","xmlns:mui":"meshim.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setText(o.get(n))}function e(e){n!==e&&(n&&h.autounbind(n,"value",t),n=e,n&&h.autobind(n,"value",t))}var n,o=i(91);h.setDataNode=e}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{whiteSpace:"inherit",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold",lineHeight:"1.2",paddingBottom:"2px"}},a(t,"meshim_widget_widgets_profileCard_MemberName"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html","xmlns:widget":"meshim.widget","xmlns:mui":"meshim.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setText(o.get(n))}function e(e){n!==e&&(n&&h.autounbind(n,"value",t),n=e,n&&h.autobind(n,"value",t))}var n,o=i(91);h.setDataNode=e}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{whiteSpace:"inherit",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:"2px"}},a(t,"meshim_widget_widgets_profileCard_TitleHolder"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){var t=[].slice.call(arguments);if(t.length<1)throw"Invalid chain: <empty>";var e=null;"string"==typeof t[t.length-1]&&(e=t.pop()),r.call(this,"chained$value"),this._chain=t,this._default_primitive=e,this._leafNodeValueCheck=o(this._leafNodeValueCheck,this)}function o(t,e){return function(){t.apply(e,arguments)}}var r=i(31),a=t.prototype=e(r.prototype);return a.bindValue=function(){if(0===this.listeners_value.length)for(var t=this._chain.length;t--;)this._chain[t].bindValue(this._leafNodeValueCheck);r.prototype.bindValue.apply(this,arguments)},a.unbindValue=function(){if(r.prototype.unbindValue.apply(this,arguments),0===this.listeners_value.length)for(var t=this._chain.length;t--;)this._chain[t].unbindValue(this._leafNodeValueCheck)},a.getChainedValue=function(){for(var t=0,e=this._chain.length;t<e;t++){var i=this._chain[t].getValue();if(i)return i}return this._default_primitive},a._leafNodeValueCheck=function(){this.update(this.getChainedValue())},n(t,"meshim_common_ChainedValueDataNode"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__jx_ui_html_table=i(97),e.__$$__jx_ui_html_tbody=i(98),e.__$$__jx_ui_html_tr=i(99),e.__$$__jx_ui_html_td=i(100),e.__$$__meshim_widget_widgets_Gravatar=i(138),e.__$$__meshim_widget_widgets_profileCard_MemberName=i(187),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_table,"","",[[e.__$$__jx_ui_html_tbody,"","",[[e.__$$__jx_ui_html_tr,"","",[[e.__$$__jx_ui_html_td,"","",[[e.__$$__meshim_widget_widgets_Gravatar,"gravatar","",[],{id:"gravatar",pseudo:"profile_avatar"}]],{pseudo:"avatar_cell"}],[e.__$$__jx_ui_html_td,"content_cell","",[[e.__$$__meshim_widget_widgets_profileCard_MemberName,"agent0","",[],{id:"agent0",addClass:"profile_name"}],[e.__$$__meshim_widget_widgets_profileCard_MemberName,"agent1","",[],{id:"agent1",addClass:"profile_name"}]],{pseudo:"content_cell",id:"content_cell"}]],{}]],{}]],{"class":"profile_table"}]],{xmlns:"jx.ui.html","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__gravatar"),g=n.get(a+"__content_cell"),f=n.get(a+"__agent0"),m=n.get(a+"__agent1");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){h.setDataNode=e,p.on("click",function(){h.onGravatarClick&&h.onGravatarClick()}),g.on("click",function(){h.onContentClick&&h.onContentClick()}),l.getValue()&&h.addClass("mobile"),h.autobind(s,"value",function(t){h[t?"removeClass":"addClass"]("no_avatar")}),h.autobind(_,"value",function(t){h[t?"removeClass":"addClass"]("no_title_name")})}function e(t){if(o){if(o===t)return;h.autounbind(o,"keys",n)}o=t,o&&(p.setGroupNode(t),h.autobind(o,"keys",n))}function n(){var t=o.getKeys();f.setDataNode(t.length<=0?null:o.$(t[0]).$("display_name$string")),m.setDataNode(t.length<=1?null:o.$(t[1]).$("display_name$string"))}var o,r=i(30),a=r.root.$("livechat"),s=a.$("settings").$("theme").$("chat_window").$("profile_card").$("display_avatar$bool"),_=a.$("settings").$("theme").$("chat_window").$("profile_card").$("display_title_name$bool"),l=a.$("ui").$("mobile$bool");t()}();for(var b in $)$.hasOwnProperty(b)&&(h[b]=$[b]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{width:"100%",position:"relative",".profile_table":{width:"100%",tableLayout:"fixed",fontSize:"100%",borderSpacing:"0px",borderCollapse:"collapse",td:{padding:"0px"}},".profile_avatar":{width:"32px",height:"32px","&":"$$profileCardAvatar"}},"**self.mobile":{".profile_table":{height:"100%"}},"**self.no_avatar .profile_table":{".avatar_cell":{display:"none"},".content_cell":{paddingLeft:"0px"}},"**self.no_title_name .profile_table":{".content_cell":{visibility:"hidden"}}},a(t,"meshim_widget_widgets_MultiProfilesCard"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){w=V.root,x=w.$("livechat"),v=x.$("ui").$("chat_button"),y=x.$("ui").$("chat_window"),A=x.$("channel").$("typing"),I=x.$("channel").$("log"),j=y.$("chat_panel"),C=j.$("textarea"),S=j.$("scrollable"),k=x.$("ui").$("chat_button").$("button_clicked$bool"),B=y.$("display$bool"),N=y.$("main_stack_name$string"),e.window.on("resize",c),I.on("keys",u),k.on("value",g),E=0,W=!1,L=!1,P=!0}function o(t){C.update({value$string:t}),t?(T||_(),clearTimeout(D),D=setTimeout(l,H)):T!==!1&&(D=clearTimeout(D),l())}function r(){return E<=5}function a(t,e){if(P){t=t||z.SMOOTH;var i=S.$(t).getValue()||0,n={};n[t]=i+1,S.update(n),void 0===e&&(clearTimeout(O),O=setTimeout(function(){a(t,!0)},250))}}function s(t){r()&&a(t)}function _(){T=!0,A.write({typing$bool:!0}),M.setUserChoice(!0)}function l(){T=!1,A.write({typing$bool:!1})}function d(t){var e=t.trim();e&&(V.livechat.sendChatMsg({msg:e}),o(""),a(z.SMOOTH))}function u(){s(z.SMOOTH)}function c(){E=void 0,a(z.INSTANT)}function h(t){E=t,W&&(L=!0),P&&S.$("scrolled_to_bottom$bool").update(r()),L&&f(),q()}function p(){a(z.SMOOTH)}function g(){a(z.INSTANT)}function f(){P&&r()&&"chat_panel"===N.getValue()&&B.getValue()===!0&&0!==v.$("unread_count$int").getValue()&&F.resetUnreadCount()}function m(){W=!0,f()}function $(){W=!1}function b(){D=clearTimeout(D),O=clearTimeout(O),I.un("keys",u),k.un("value",g),w=x=v,y=j=C=A=S=I=k=B=N=T=E=P=W=L=void 0}var w,x,v,y,j,C,A,S,I,k,B,N,T,D,E,P,O,W,L,R=i(44),F=i(79),M=i(192),V=i(30),H=12e4,z={SMOOTH:"smooth_scroll_count$int",INSTANT:"instant_scroll_count$int"},q=R.debounce(function(){L=!1},80),U={TYPING_TIMEOUT:H,SCROLL_TYPES:z,init:t,scrollToBottom:a,userFocusTextArea:p,userInputValue:o,userChangeOrientation:c,userClickChatButton:g,userDistFromBottom:h,userSendMessage:d,userReceiveMessage:u,userTouchStart:m,userTouchEnd:$,resetState:b};return n(U,"meshim_widget_controllers_ChatPanelController"),U}()}).call(e,i(6),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){c=$.root,h=c.$("livechat").$("settings").$("cookie_law"),p=h.$("enabled$bool"),g=c.$("livechat").$("profile"),f=g.$("allow_cookies$bool");var t=m.getAllowCookieLaw();"boolean"==typeof t&&g.write({allow_cookies$bool:t})}function o(){var t="Zendesk Chat",e=c.$("connection").$("status$string").getValue();return e?void(window.console&&window.console.log&&window.console.log(t+": Cookie Law mode must be enabled immediately after embedding script")):void h.write({enabled$bool:!0})}function r(t){t=e(t);var i=s(),n=_();if(t!==i){m.setAllowCookieLaw(t),g.write({allow_cookies$bool:t});var o=a();o&&(t===!1&&$.livechat.clearAll(),t!==n&&$.livechat.reconnect())}}function a(){var t=p.getValue();return!!t}function s(){return f.getValue()}function _(){var t=s();return"boolean"!=typeof t||t}function l(){var t=a(),e=_();return t&&e===!1}function d(){var t=s();"boolean"!=typeof t&&r(!1)}function u(){if(w.isCookieDenied()){var t=b.cookie_law.request_use_cookies_golion+"\n\n"+b.cookie_law.privacy_policy+": https://www.zendesk.com/privacy";return!!window.confirm(t)&&(w.setUserChoice(!0),!0)}return!0}var c,h,p,g,f,m=i(34),$=i(30),b=i(91),w={init:t,enableCookieLaw:o,setUserChoice:r,isCookieDenied:l,setDefaultImplicitConsent:d,requestPermission:u};return n(w,"meshim_widget_controllers_CookieLaw"),w}()}).call(e,i(16),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_ratingBar_emoticon_Emoticon=i(194),e.__$$__meshim_widget_widgets_ratingBar_thumb_Thumb=i(200),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_ratingBar_emoticon_Emoticon,"emoticon_rating_options","",[],{id:"emoticon_rating_options",addClass:"button_bar",visible:"none"}],[e.__$$__meshim_widget_widgets_ratingBar_thumb_Thumb,"thumb_rating_options","",[],{id:"thumb_rating_options",addClass:"button_bar",visible:"none"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__emoticon_rating_options"),p=n.get(a+"__thumb_rating_options");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){c.setDataNode=e,c.getValue=i,c.setValue=n,c.setSize=s,a(),d.on("change",r)}function e(t){_&&c.autounbind(_,"value",o),_=t,_&&c.autobind(_,"value",o)}function i(){return u}function n(t){u=t,d.setValue(t),d.updateTitle(u)}function o(t){u!==t&&n(t)}function r(){var t=d.getValue();u===t&&(t=null),n(t),c.fire("change",t)}function a(){l="thumb","thumb"===l?(p.show(),h.hide(),d=p):"emoticon"===l?(p.hide(),h.show(),d=h):(p.hide(),h.hide(),d=null)}function s(t){d.addClass(t)}var _,l,d,u;t()}();for(var f in g)g.hasOwnProperty(f)&&(c[f]=g[f]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative",".button_bar":{width:"100%",textAlign:"center"}}},a(t,"meshim_widget_widgets_RatingBar"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ButtonBar=i(195),e.__$$__meshim_widget_widgets_ratingBar_emoticon_Good=i(197),e.__$$__meshim_widget_widgets_ratingBar_emoticon_Bad=i(199),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_ButtonBar,"","",[[e.__$$__meshim_widget_widgets_ratingBar_emoticon_Good,"good_option","",[],{id:"good_option",addClass:"rating_button"}],[e.__$$__meshim_widget_widgets_ratingBar_emoticon_Bad,"bad_option","",[],{id:"bad_option",addClass:"rating_button"}]],{noMangle:"true","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__good_option"),f=n.get(s+"__bad_option");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){p.updateTitle=e,g.setValue(a.GOOD),f.setValue(a.BAD),n(),o.mobile(p)}function e(t){t===a.GOOD?(g.setTitle(s.REMOVE),f.setTitle(s.BAD)):t===a.BAD?(f.setTitle(s.REMOVE),g.setTitle(s.GOOD)):n()}function n(){g.setTitle(s.GOOD),f.setTitle(s.BAD)}var o=i(89),a={GOOD:"good",BAD:"bad"},s={GOOD:r(209),BAD:r(210),REMOVE:r(211)};t()}();for(var $ in m)m.hasOwnProperty($)&&(p[$]=m[$]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ButtonBar.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ButtonBar,t.__jx__jcss={".rating_button":{borderRadius:"50%",".rating_icon":{display:"inline"},"&.active":{backgroundColor:"$$chatRatingsEmoticonActive",cursor:"pointer"}},"&.small":{".rating_button":{"width, height":"24px",border:"1px solid $$chatRatingsEmoticonColor",padding:"6px 3px 3px",".rating_icon":{lineHeight:1.1},"&:first-child":{marginRight:"3px"}}},"&.big":{".rating_button":{"width, height":"50px",border:"2px solid $$chatRatingsEmoticonColor",fontSize:"25px",paddingTop:"14px","&:first-child":{marginRight:"10px"}}},"&.desktop":{".rating_button.active:hover":{backgroundColor:"$$chatRatingsEmoticonHover"}},"&.mobile":{"&.small .rating_button":{"width, height":"40px",fontSize:"18px",padding:"12px 3px 3px","&:first-child":{marginRight:"5px"}},"&.big":{".rating_button":{"width, height":"62px",fontSize:"26px",paddingTop:"20px"}}}},s(t,"meshim_widget_widgets_ratingBar_emoticon_Emoticon"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_ButtonBar=i(196),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_ButtonBar,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",selectable:"false"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),
t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_ButtonBar.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_ButtonBar,t.__jx__jcss={".option":{cursor:"pointer",display:"inline-block",textAlign:"center","&:first-child":{},"&:last-child":{},"&.active":{cursor:"default"},"&:hover":{},"&.disabled":{cursor:"default","&.active":{cursor:"default"},"&:hover":{cursor:"default"}}}},a(t,"meshim_widget_widgets_ButtonBar"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){t.exports=function(){function t(e,i,n,o,r){return this instanceof t?(this.navStack=null,_.call(this,e,i,n,o,r),this.addClass("button_bar"),r.initialValue&&this.setValue(r.initialValue),this.on("click",function(t){var e=t&&t.target&&t.target.jx_wrapper;if(e&&e!==this){for(;e.parentNode&&e.parentNode!=this;)e=e.parentNode;if(!this.getDisabled()&&!e.getDisabled()){var i=e.getValue();""!==i&&null!=i&&(this.setValue(i),this.fire("change"))}}}),void this.onDestruction(function(){this.navStack=null})):new t(e,i,n,o,r)}var s=i(110),_=i(17),l=i(18);return t.prototype=e(_.prototype),t.prototype.appendChild=function(t){var e=this.children.length;n(t)&&this.attributes&&!o(this.attributes.noMangle)&&(t[0]=s),l.prototype.appendChild.call(this,t),n(t)&&(this.children[e].addClass("option"),r(this.tabIndex)&&this.children[e].setTabIndex(this.tabIndex+e))},t.prototype.setNoMangle=function(t){this.attributes.noMangle=o(t)},t.prototype.setValue=function(t){for(var e=0,i=this.children.length;e<i;e++)this.children[e].getValue()==t?(this.dom.value=this.children[e].getValue(),this.children[e].addClass("active")):this.children[e].removeClass("active")},t.prototype.getInitialValue=function(){return this._initialValue},t.prototype.setInitialValue=function(t){this._initialValue=t},t.prototype.reset=function(){this.setValue(this.getInitialValue())},t.prototype.setLabel=function(t,e){for(var i=0,n=this.children.length;i<n;i++)this.children[i].getValue()==t&&this.children[i].setText(e)},t.prototype.getTabIndex=function(){return this.tabIndex},t.prototype.setTabIndex=function(t){this.tabIndex=parseInt(t,10)||0;for(var e=0,i=this.children.length;e<i;e++)this.children[e].setTabIndex(this.tabIndex+e);return this},a(t,"jx_ui_ButtonBar"),t}()}).call(e,i(14),i(21),i(16),i(23),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button=i(198),e.__$$__jx_ui_html_span=i(109),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button,"","",[[e.__$$__jx_ui_html_span,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"happy",addClass:"rating_icon"}]],{placement:"default_value",discardPlacement:"true"}],[e.__$$__jx_ui_html_span,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"happier",addClass:"rating_icon"}]],{placement:"selected_value",discardPlacement:"true"}]],{xmlns:"jx.ui.html","xmlns:widgets":"meshim.widget.widgets"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button,t.__jx__jcss={},a(t,"meshim_widget_widgets_ratingBar_emoticon_Good"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_span=i(109),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_span,"","",[[e.__$$__jx_ui_html_span,"","",[],{"class":"default_value",container:"default_value"}],[e.__$$__jx_ui_html_span,"","",[],{"class":"selected_value",container:"selected_value"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){var t=n.root.$("livechat").$("ui").$("mobile$bool");h.autobind(t,"value",function(t){t||h.addClass("desktop")})}var e=i(38),n=i(30);e.hoverFix(h),t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_span.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_span,t.__jx__jcss={"**self":{width:"50%",display:"inline-block",".default_value":{display:"inline"},".selected_value":{display:"none"},"&.desktop.hover, &.desktop:hover, &.active":{".default_value":{display:"none"},".selected_value":{display:"inline"}}}},a(t,"meshim_widget_widgets_ratingBar_emoticon_Button"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button=i(198),e.__$$__jx_ui_html_span=i(109),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button,"","",[[e.__$$__jx_ui_html_span,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"sad",addClass:"rating_icon"}]],{placement:"default_value",discardPlacement:"true"}],[e.__$$__jx_ui_html_span,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"sadder",addClass:"rating_icon"}]],{placement:"selected_value",discardPlacement:"true"}]],{xmlns:"jx.ui.html","xmlns:widgets":"meshim.widget.widgets"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ratingBar_emoticon_Button,t.__jx__jcss={},a(t,"meshim_widget_widgets_ratingBar_emoticon_Bad"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ButtonBar=i(195),e.__$$__meshim_widget_widgets_ratingBar_thumb_Button=i(201),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_ButtonBar,"","",[[e.__$$__meshim_widget_widgets_ratingBar_thumb_Button,"good_option","",[],{id:"good_option",type:"thumbs_up",addClass:"rating_button"}],[e.__$$__meshim_widget_widgets_ratingBar_thumb_Button,"bad_option","",[],{id:"bad_option",type:"thumbs_down",addClass:"rating_button"}]],{noMangle:"true","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__good_option"),f=n.get(s+"__bad_option");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){p.updateTitle=e,g.setValue(a.GOOD),f.setValue(a.BAD),n(),o.mobile(p)}function e(t){t===a.GOOD?(g.setTitle(s.REMOVE),f.setTitle(s.BAD)):t===a.BAD?(f.setTitle(s.REMOVE),g.setTitle(s.GOOD)):n()}function n(){g.setTitle(s.GOOD),f.setTitle(s.BAD)}var o=i(89),a={GOOD:"good",BAD:"bad"},s={GOOD:r(206),BAD:r(207),REMOVE:r(208)};t()}();for(var $ in m)m.hasOwnProperty($)&&(p[$]=m[$]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ButtonBar.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ButtonBar,t.__jx__jcss={".rating_button":{".rating_icon":{display:"inline-block",verticalAlign:"middle"},color:"$$chatRatingsThumbLight","&.active":{backgroundColor:"$$chatRatingsThumbActive",border:"1px solid $$chatRatingsThumbBGHover",borderRadius:"5px",color:"$$chatRatingsThumbDark",cursor:"pointer"}},"&.small":{".rating_button":{"width, height":"24px",fontSize:"18px",".rating_icon":{lineHeight:"22px",paddingLeft:"1px"},"&:first-child":{marginRight:"3px"}}},"&.big":{".rating_button":{"width, height":"50px",fontSize:"40px",".rating_icon":{lineHeight:"48px"},"&:first-child":{marginRight:"10px"}}},"&.desktop":{".rating_button.active:hover":{color:"$$chatRatingsThumbLight"}},"&.mobile":{"&.small .rating_button":{"width, height":"40px",fontSize:"25px",padding:"6px 3px 3px","&:first-child":{marginRight:"5px"}},"&.big":{".rating_button":{"width, height":"62px",fontSize:"40px",paddingTop:"12px"}}}},s(t,"meshim_widget_widgets_ratingBar_thumb_Thumb"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_span=i(109),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_span,"","",[[e.__$$__meshim_widget_widgets_IconFont,"thumbs","",[],{id:"thumbs",addClass:"rating_icon"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__thumbs");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){var t=n.root.$("livechat").$("ui").$("mobile$bool");h.autobind(t,"value",function(t){t||h.addClass("desktop")})}var e=i(38),n=i(30);h.setType=function(t){switch(t){case"thumbs_up":p.setIcon("thumbsup");break;case"thumbs_down":p.setIcon("thumbsdown");break;default:p.setDisplay("none")}},e.hoverFix(h),t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_span.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_span,t.__jx__jcss={"**self":{width:"50%",display:"inline-block",border:"1px solid transparent",".default_value":{display:"inline"},"&.desktop.hover, &.desktop:hover":{color:"$$chatRatingsThumbDark"}}},a(t,"meshim_widget_widgets_ratingBar_thumb_Button"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatWindow_chatPanel_FastInitChatLog=i(203),e.__$$__meshim_widget_widgets_chatLogRenderer_TypingRenderer=i(236),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__jx_ui_Widget,"chat_log_wrapper","",[[e.__$$__meshim_widget_components_chatWindow_chatPanel_FastInitChatLog,"","",[],{}],[e.__$$__meshim_widget_widgets_chatLogRenderer_TypingRenderer,"","",[],{addClass:"group_head"}]],{id:"chat_log_wrapper","class":"chat_log_wrapper"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:jx":"jx.controls","xmlns:widgets":"meshim.widget.widgets","xmlns:chatPanel":"meshim.widget.components.chatWindow.chatPanel"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__chat_log_wrapper");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){c.setChatLogMarginTop=e}function e(t){h.setStyle("marginTop",t)}t()}();for(var g in p)p.hasOwnProperty(g)&&(c[g]=p[g]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_ScrollableFrame.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ScrollableFrame,t.__jx__jcss={".group_head":{marginTop:"$$margin"},".chat_log_wrapper":{margin:"$$chatLogMargin"}},a(t,"meshim_widget_components_chatWindow_chatPanel_ChatLogContainer"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:jx":"jx.controls"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.autobind(g,"value",function(t){o!=t&&(o=t,e())}),h.autobind(f,"value",function(t){r!=t&&(r=t,e())})}function e(){"fast_init"==o?a||(a=new l(h),a.setDataNode(c),h.autobind(u,"value",n),h.fire("fast_log_appended")):"registered"!=r&&"reattached"!=r||(a instanceof l&&(h.autounbind(u,"value",n),a.destroy()),a=!0,s||(s=new l(h),s.setDataNode(u),h.fire("chat_log_appended")))}function n(t){if(t){var e;for(var i in t)if(t.hasOwnProperty(i)){if(e=t[i],!e)continue;e.unverified$bool&&!e.nick$string&&(e.nick$string="visitor:local",c.$(i).update(e))}}}var o,r,a,s,_=i(30),l=i(204),d=_.root.$("livechat"),u=d.$("channel").$("log"),c=d.$("temp").$("prev_log"),p=_.root.$("connection"),g=p.$("message$string"),f=p.$("status$string");t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={},a(t,"meshim_widget_components_chatWindow_chatPanel_FastInitChatLog"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_controls_List=i(205),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_controls_List,"list","",[],{id:"list"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:jx":"jx.controls","xmlns:widgets":"meshim.widget.widgets","xmlns:renderer":"meshim.widget.widgets.chatLogRenderer"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__list");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){h.autobind(_,"value",function(t){n&&h.removeClass("chat_log_"+n),n=t,n&&h.addClass("chat_log_"+n)}),h.autobind(l,"value",function(t){t&&o!=t&&(o=t,h.setDataNode(e))}),p.setRenderer(a)}var e,n,o,r=i(30),a=i(208),s=r.root.$("livechat"),_=s.$("settings").$("theme").$("chat_window").$("size$string"),l=s.$("settings").$("theme").$("message_type$string");h.setDataNode=function(t){t&&(e=t,p.setDataNode(e))},t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative"},".visitor .chat_bubble":{background:"$$chatLogVisitorBubbleBg",borderWidth:"$$chatLogVisitorBubbleBorderWidth",borderStyle:"$$chatLogVisitorBubbleBorderStyle",borderColor:"$$chatLogVisitorBubbleBorderColor",".arrow_border":{borderColor:"$$chatLogVisitorBubbleBorderColor"},".arrow_background":{borderColor:"$$chatLogVisitorBubbleBg"},".image_file_border":{borderColor:"$$chatLogVisitorBubbleBorderColor"},".generic_file_border":{borderColor:"$$chatLogVisitorBubbleBorderColor"}},".agent .chat_bubble":{background:"$$chatLogAgentBubbleBg",borderWidth:"$$chatLogAgentBubbleBorderWidth",borderStyle:"$$chatLogAgentBubbleBorderStyle",borderColor:"$$chatLogAgentBubbleBorderColor",".arrow_border":{borderColor:"$$chatLogAgentBubbleBorderColor"},".arrow_background":{borderColor:"$$chatLogAgentBubbleBg"},".image_file_border":{borderColor:"$$chatLogAgentBubbleBorderColor"},".generic_file_border":{borderColor:"$$chatLogAgentBubbleBorderColor"}},".log_avatar":{borderWidth:"$$chatLogAvatarBorderWidth",borderStyle:"$$chatLogAvatarBorderStyle",borderColor:"$$chatLogAvatarBorderColor",borderRadius:"$$chatLogAvatarRadius",boxShadow:"$$chatLogAvatarShadow"},".group_head, .card, .group_children.bubble_avatar, .group_children.bubble":{marginTop:"$$margin"},a:{color:"inherit"},".card":{"marginLeft, marginRight":"auto"},"&.chat_log_small":{".card":{}},"&.chat_log_medium":{".card":{maxWidth:"220px"}},"&.chat_log_large":{".card":{maxWidth:"260px"}}},a(t,"meshim_widget_components_chatWindow_chatPanel_ChatLog"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__div=i(206),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__div,"","",[[e.__$$__div,"template","",[[e.__$$__div,"","",[],{}]],{id:"template",container:"default",display:"none"}],[e.__$$__div,"content","",[],{id:"content"}]],{}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__template"),f=n.get(s+"__content");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),p.defaultPlacement=g;var m=function(){function t(t){C&&p.autounbind(C,"keys",o),C=t,e(),p.autobind(C,"keys",o)}function e(){f.empty(),I={},N=[],T&&(T=0,p.fire("jx:list:length",T))}function o(t,e){var i=t.length+e.length>2;i&&p.removeChild(f);var n,o,r,s,_=T;for(o=0;o<t.length;o++)if(n=t[o],!(n in I)){var l=E(f),d=C.$(n);I[n]=l,T++,j.applySetDataNode(l),r=A?b(n):n,s=v(r,l),l.setAttribute("jx:list:rowID",n),l.setDataNode(d),a(s)}for(o=0;o<e.length;o++)n=e[o],n in I&&(r=A?b(n,!0):n,s=x(r),delete k[r],I[n]===P&&(P=null),I[n].destroy(),delete I[n],a(s),T--);i&&p.appendChild(f),_!=T&&p.fire("jx:list:length",T),t.length&&p.fire("jx:list:added",t)}function a(t){if(!(t<0)&&N[t]){var e,i,n=N[t],o=I[n];o&&(N[t+1]?(o.setAttribute("jx:list:nextID",N[t+1]),e=I[N[t+1]],e.setAttribute("jx:list:prevID",n),o.fire("update.neighbour",{next:N[t+1]}),e.fire("update.neighbour",{prev:n})):(o.removeAttribute("jx:list:nextID"),o.fire("update.neighbour",{next:null})),N[t-1]?(o.setAttribute("jx:list:prevID",N[t-1]),i=I[N[t-1]],i.setAttribute("jx:list:nextID",n),o.fire("update.neighbour",{prev:N[t-1]}),i.fire("update.neighbour",{next:n})):(o.removeAttribute("jx:list:prevID"),o.fire("update.neighbour",{prev:null})))}}function s(t){for(;t.parentNode&&t!=p;){var e=t.getAttribute("jx:list:nextID");if(e)return e;t=t.parentNode}}function _(t){for(;t.parentNode&&t!=p;){var e=t.getAttribute("jx:list:prevID");if(e)return e;t=t.parentNode}}function l(t){for(;t.parentNode&&t!=p;){var e=t.getAttribute("jx:list:rowID");if(e)return e;t=t.parentNode}}function d(){var t,e,i=[];for(t in I)I.hasOwnProperty(t)&&(e=I[t].getAttribute("jx:list:rowID"),e&&i.push(e));return i}function u(t){c(t.target)}function c(t){var e,i;if(r(t))i=t,e=I[i];else if("number"==typeof t)e=f.childNodes[t],e&&(i=e.getAttribute("jx:list:rowID"));else for(e=t;e.parentNode&&e!=f;){if(i=e.getAttribute("jx:list:rowID")){e.jx_wrapper&&(e=e.jx_wrapper);break}e=e.parentNode}e&&e!=P&&(h(),P=e.jx_wrapper||e,P.addClass("active"),P.fire("jx:list:selected"),p.fire("jx:list:select",i))}function h(){P&&P.removeClass("active"),P&&P.fire("jx:list:deselected"),P=null}function m(t,e){A==t&&S==e||(S=e,A=t,A?D||(p.autobind(C,"value",w),D=!0):(D&&(p.autounbind(C,"value",w),D=!1),S=!1),k={},B={},T>1&&$())}function $(){var t,e,i;f.innerHTML="",N=[];for(e in I)I.hasOwnProperty(e)&&(t=A?b(e):e,i=v(t,I[e]),B[e]=t,k[t]=e,a(i))}function b(t,e){return e?B[t]:(C.$(t).getValue(A)+"\0"+t).replace(/ /g,"").toLowerCase()}function w(t){if(A){var e,i,n,o,r,s;for(n in t)t.hasOwnProperty(n)&&(i=t[n],B[n]&&i&&i[A]&&(e=I[n],f.removeChild(e),r=B[n],o=b(n),delete k[r],s=x(r),a(s),k[o]=n,B[n]=o,s=v(o,e,i[A]),a(s)))}}function x(t){var e=y(N,t);return e<0?(console.log("Could not find "+t+" in List"),e):(N.splice(e,1),e)}function v(t,e){var i=(-y(N,t)>>0)-1;return i<0&&"undefined"!=typeof console&&"log"in console&&console.log(t+" is already in List"),N.splice(i,0,t),S&&(i=N.length-i-1),f.insertBefore(e.dom||e,f.childNodes[i]||null),i}function y(t,e){for(var i,n,o=t.length,r=0,a=o-1;r<=a;)if(i=(r+a)/2>>0,n=t[i],n<e)r=i+1;else{if(!(n>e))return i;a=i-1}return-(r+1)}var j=i(207);p.setDataNode=t,p.setRenderer=function(t){E=t},p.getID=l,p.getNextID=s,p.getPrevID=_,p.getRowIDs=d,p.clearList=e,p.select=c,p.deselect=h,p.setSort=m;var C,A,S,I={},k={},B={},N=[],T=0,D=!1,E=function(t){if(g.lastChild.__jx__native){var e=g.lastChild.cloneNode(!0);return n.extend(e,!0),e}return g.lastChild.__jx__constructor(t)},P=null;f.on("click",u)}();for(var $ in m)m.hasOwnProperty($)&&(p[$]=m[$]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__div,t.__jx__jcss={},s(t,"jx_controls_List"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(19),i(14),i(4))},function(t,e,i){(function(e,i){t.exports=function(){var t=e.nativeGenerator("div");return i(t,"div"),t}()}).call(e,i(20),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){var e,i;if(t.leaf)e=this,e.autobind(t,"value",function(t){"value"in e?e.value=t:e.setText(t)});else for(e=this.firstChild;e;)e.getAttribute&&(i=e.getAttribute("name"),i?e.setDataNode(t.descend(i)):e.setDataNode(t)),e=e.nextSibling}function i(e){if(!e.setDataNode){e.setDataNode=t;for(var n=e.firstChild;n;)i(n),n=n.nextSibling}}var n={applySetDataNode:i};return e(n,"jx_data_SetDataNode"),n}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","class":"chat_log_renderer"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setDataNode=n,h.onDestruction(function(){clearTimeout(v)})}function e(){return j.root.$$("livechat.settings.theme.message_type$string").getValue()||"bubble_avatar"}function n(t){m&&h.autounbind(m,"value",o),m=t,h.autobind(m,"value",o),h.on("update.neighbour",s)}function o(t){t&&(t.nick$string&&(b=t.nick$string,a(b)),t.type$string&&r(t.type$string),t.failed$bool&&g(),"unverified$bool"in t&&(clearTimeout(v),t.unverified$bool&&(v=setTimeout(f,y.RESEND_MSG_TIMEOUT))))}function r(t){if(t&&t!==w){switch(x&&(h.empty(),x=null),w=t,t){case"chat.mention":case"chat.msg":case"chat.file.update":case"chat.file.upload":u();break;case"chat.request.rating":c();break;case"chat.join":break;default:p()}b&&a(b)}}function a(t){if(x){for(var e=t.substring(0,t.indexOf(":")),i=0,n=0,o=t.length;n<o;)i+=t.charCodeAt(n),n++;i=i%8+1,x.addClass(e),x.addClass(e+"_"+i),a.assigned=!0}}function s(t){"prev"in t&&$!=t.prev&&($=t.prev,_())}function _(){if(m){if(!$)return void l();var t=m.parentNode.$($),e=t.getValue("nick$string"),i=t.getValue("type$string");T.test(i)&&w===i&&e===b?d():l()}}function l(){x&&(x.removeClass("group_children"),x.addClass("group_head"))}function d(){x&&(x.addClass("group_children"),x.removeClass("group_head"))}function u(){var t,i=e();switch(x&&h.empty(),i){case"bubble":t=S;break;case"basic_avatar":t=I;break;case"bubble_avatar":t=k;break;default:t=A}x=new t(h),x.setDataNode(m),x.addClass(i)}function c(){x=new B(h),x.setDataNode(m)}function p(){x=new N(h),x.setDataNode(m),x.setPseudo("system_msg")}function g(){C.increment("user_msg_send_failed")}function f(){C.increment("user_msg_send_timeout")}var m,$,b,w,x,v,y=i(32),j=i(30),C=i(49),A=i(209),S=i(221),I=i(224),k=i(225),B=i(226),N=i(229),T=/chat\.(msg|memberjoin|changename)/;$=b=w="",t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{position:"relative",clear:"both",width:"100%"}},a(t,"meshim_widget_widgets_ChatLogRenderer"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_chatLogRenderer_ChatName=i(210),e.__$$__meshim_widget_widgets_chatLogRenderer_ChatMessage=i(211),e.__$$__meshim_widget_widgets_chatLogRenderer_ResendChatMessage=i(214),e.__$$__meshim_widget_widgets_chatLogRenderer_ChatOption=i(215),e.__$$__meshim_widget_widgets_chatLogRenderer_ChatFile=i(217),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_chatLogRenderer_ChatName,"chat_name","",[],{id:"chat_name",addClass:"chat_name"}],[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_chatLogRenderer_ChatMessage,"chat_msg","",[],{id:"chat_msg",addClass:"chat_msg"}],[e.__$$__meshim_widget_widgets_chatLogRenderer_ResendChatMessage,"resend","",[],{id:"resend",addClass:"resend_chat_msg"}]],{"class":"chat_msg_holder"}],[e.__$$__meshim_widget_widgets_chatLogRenderer_ChatOption,"chat_option","",[],{id:"chat_option",addClass:"chat_option"}],[e.__$$__meshim_widget_widgets_chatLogRenderer_ChatFile,"chat_file","",[],{id:"chat_file",addClass:"chat_file"}]],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui","xmlns:logRenderer":"meshim.widget.widgets.chatLogRenderer"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__chat_name"),p=n.get(a+"__chat_msg"),g=n.get(a+"__resend"),f=n.get(a+"__chat_option"),m=n.get(a+"__chat_file");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){c.setDataNode=e}function e(t){h.setDataNode(t),p.setDataNode(t),g.setDataNode(t),f.setDataNode(t),m.setDataNode(t)}t()}();for(var b in $)$.hasOwnProperty(b)&&(c[b]=$[b]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{marginTop:"10px",".chat_name":{fontWeight:"bold","&":"$$chatLogName"},"&.visitor .chat_name":{color:"$$chatLogVisitorNameColor"},"&.agent .chat_name":{color:"$$chatLogAgentNameColor"},".chat_msg_holder":{whiteSpace:"pre-wrap",wordWrap:"break-word",".chat_msg":{"&":"$$chatLogMsg"},".resend_chat_msg":{marginLeft:"6px"}},".chat_option":{input:{margin:"2px 5px"}},".chat_file":{"marginTop, marginBottom":"5px","&":"$$chatLogFile"}},"**self.group_children":{marginTop:"0px",".chat_name":{display:"none"}}},a(t,"meshim_widget_widgets_chatLogRenderer_BasicRenderer"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(213),h=o(214),p=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_div,"text","",[],{id:"text",addClass:"text_name"}],[e.__$$__jx_ui_html_div,"change_name","",[h],{id:"change_name"}]],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui"}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__text"),$=n.get(s+"__change_name");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var b=function(){function t(){f.setDataNode=e,f.autobind(b,"value",a),f.autobind(v,"value",function(t){f.setStyle("cursor",t?"auto":""),$.setText(t?c:h)})}function e(t){_&&f.autounbind(_,"value",n),_=t,f.autobind(_,"value",n)}function n(t){t&&t.type$string!=y&&(t.nick$string&&o(t.nick$string,t.timestamp$int),t.display_name$string&&r(t.display_name$string))}function o(t,e){t&&(p=t.split(":")[0],"visitor"==p&&g&&r(g),"agent"==p&&w.getValue()&&e>w.getValue()&&l.root.$$("livechat.ui.sounds").update({new_message$int:+new Date}),"visitor"!=p||s.bounded||(f.addClass("cursor_pointer"),f.on("click",s),s.bounded=!0))}function r(t){"visitor"==p?(t=b.getValue(),g||(u.isDefaultName(t)?(t="",$.setDisplay("")):$.setDisplay("none"),g=t),m.setText(g)):(m.setText(t),$.setDisplay("none"))}function a(t){!t||"string"!=typeof t||p&&"visitor"!=p||(u.isDefaultName(t)?(t="",$.setDisplay("")):$.setDisplay("none"),g=t,m.setText(g))}function s(t){if(x.getValue()){if(!u.isDefaultName(b.getValue()))return;window.scrollTo(0,0)}t.stopPropagation(),d.showProfileMenu()}var _,l=i(30),d=i(103),u=i(38),p="",g="",b=l.root.$$("livechat.profile.display_name$string"),w=l.root.$$("connection.reattached_timestamp$int"),x=l.root.$$("livechat.ui.mobile$bool"),v=l.root.$("livechat").$("settings").$("login").$("restrict_profile$bool"),y="chat.file.update";t()}();for(var w in b)b.hasOwnProperty(w)&&(f[w]=b[w]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{display:"inline-block"},"&.cursor_pointer":{cursor:"pointer"},".text_name":{"*display":"inline",wordWrap:"break-word"
}},s(t,"meshim_widget_widgets_chatLogRenderer_ChatName"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setDataNode=e}function e(t){r&&h.autounbind(r,"value",n),r=t.$("msg$string"),h.autobind(r,"value",n)}function n(t){if(t=t||"",!a.file_upload.test(t)){var e=s.toJXMLElements(t,p);o(e)}}function o(t){h.empty(),h.setText(""),h.addChildren(t)}var r,a=i(64),s=i(170),_=i(171),l=i(212),d=i(174),u=i(172),c=i(213),p=[_,d,u,l,c];t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{display:"inline"}},a(t,"meshim_widget_widgets_chatLogRenderer_ChatMessage"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){for(var e,i=n.search.email,o=0,r=[];null!==(e=i.exec(t));){var a=e[0].trim(),s=e[2],_=i.lastIndex-a.length;n.tld.test(s)&&(_>o&&r.push(t.substring(o,_)),r.push({tagName:"a",attributes:{href:"mailto:"+a},children:[a]}),o=i.lastIndex)}return o<t.length&&r.push(t.substring(o)),r}var n=i(64);return e(t,"meshim_common_stringParser_EmailParser"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){for(var e,i=n.search.phone_number,o=0,r=[];null!==(e=i.exec(t));){var a=e[0].trim(),s=e[1],_=e[2],l=i.lastIndex-a.length,d=a.replace(s,"").replace(_,"");l>o&&r.push(t.substring(o,l)),r.push({tagName:"a",attributes:{href:"tel:"+d},children:[a]}),o=i.lastIndex}return o<t.length&&r.push(t.substring(o)),r}var n=i(64);return e(t,"meshim_common_stringParser_PhoneNumberParser"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=o(215),p=o(216),g=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"exclamation",title:h}],[e.__$$__jx_ui_Widget,"","",[p],{"class":"resend"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",display:"none"}],f=g[0].call(this,s,_,null,n.mangleIDs(_,g[3]),g[4]),m=f||this;n.set(_,m),t.__jx__jcss_generated||(r.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){m.setDataNode=e,m.on("click",o)}function e(t){t!=s&&(s&&m.autounbind(s,"value",n),s=t,s&&m.autobind(s,"value",n))}function n(t){t&&(t.failed$bool&&r(),"unverified$bool"in t&&(window.clearTimeout(_),t.unverified$bool&&(_=window.setTimeout(r,l.RESEND_MSG_TIMEOUT))))}function o(t){t&&a(t.stopPropagation)&&t.stopPropagation(),d.livechat.sendChatMsg({msg:s.getValue("msg$string")},s.name),m.setDisplay("none")}function r(){m.setDisplay("")}var s,_,l=i(32),d=i(30);t()}();for(var b in $)$.hasOwnProperty(b)&&(m[b]=$[b]);return m.fire&&m.fire("init"),m.setStyle&&m.setStyle(d),m.setAttributes&&m.setAttributes(c),"function"==typeof m.addChildren?m.addChildren(u):n.addChildren(m,u),m!==this&&(m.__jx__constructor=l,m.__jx__native=!1),m}var l;return t.prototype=s(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{".resend":{textDecoration:"underline"},".icon_font":{position:"relative",top:"2px",marginRight:"3px"}},"**self, .icon_font, .resend":{color:"$$errorColor",display:"inline-block","*display":"inline","*zoom":"1",cursor:"pointer"}},_(t,"meshim_widget_widgets_chatLogRenderer_ResendChatMessage"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(9),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setDataNode=e}function e(t){s&&h.autounbind(s,"value",n),s=t.$("options$string"),h.autobind(s,"value",n)}function n(t){t=t||"",t=o(t),t&&(h.setHTML(t),r())}function o(t){if(!t)return"";for(var e,i=t.split("/"),n="<form>",o=0,r=i.length;o<r;o++)e=l.html(i[o]),n+='<label><input type="radio" name="option" value="'+e+'">'+e+"</label></br>";return n+="</form>"}function r(){for(var t=h.dom.getElementsByTagName("input"),e=0,i=t.length;e<i;e++)t[e].onclick=function(){this.value!==_&&a(this.value)}}function a(t){t&&(d.livechat.sendChatMsg({msg:t}),_=t)}var s,_,l=i(216),d=i(30);t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={},a(t,"meshim_widget_widgets_chatLogRenderer_ChatOption"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return"&#"+t.charCodeAt(0)+";"}var i=/[&<>"']/g,n={html:function(e){return e&&e.replace(i,t)}};return e(n,"meshim_common_Sanitize"),n}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_html_div=i(114),e.__$$__jx_ui_html_p=i(218),e.__$$__jx_ui_html_img=i(118),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_html_div,"file_progress_container","",[[e.__$$__jx_ui_html_p,"progress_text","",[],{id:"progress_text","class":"progress_text"}],[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_img,"progress_bar","",[],{id:"progress_bar","class":"progress_bar"}]],{"class":"progress_container"}]],{id:"file_progress_container"}],[e.__$$__jx_ui_html_div,"file_details_container","",[],{id:"file_details_container","class":"file_details_container",visible:"none"}],[e.__$$__jx_ui_html_div,"file_status","",[],{id:"file_status","class":"file_status"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__file_progress_container"),f=n.get(s+"__progress_text"),m=n.get(s+"__progress_bar"),$=n.get(s+"__file_details_container"),b=n.get(s+"__file_status");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var w=function(){function t(){p.setDisplay("none"),m.setSrc(d.IMAGES_URL+"/loadingbar.gif")}function e(t){if(t){var e;if(S in t){D.lastIndex=0;var i=D.exec(t[S]);if(!i)return;t[x]=i[1],t[y]=i[2],t[v]=i[3],t[A]=i[4],t[j]=i[6],t[I]="ok",t[C]=100,n(t)&&o(t)&&a(t),e=!0,w.update({file_upload_scroll$bool:!0})}(x in t||k in t)&&p.setDisplay(""),e||(n()&&o()&&a(),w.update({file_upload_scroll$bool:!0}))}}function n(t){if(t=t||s.getValue(),I in t){var e="ok"==t[I].toLowerCase();return g.setDisplay("none"),e?($.setDisplay(""),b.removeClass("fail"),!0):($.setDisplay("none"),b.addClass("fail"),!(k in t)||(b.setText(l.prettyError(t[k])).setDisplay(""),!1))}return!0}function o(t){if(t=t||s.getValue(),!(C in t&&x in t))return!1;var e=t[C]<E,i=t[x].length>15?t[x].substring(0,12)+"...":t[x];return f.setText((e?B:N).replace("<file_name>",i)),g.setDisplay(e?"":"none"),$.setDisplay(e?"none":""),b.setDisplay(e?"none":""),!e}function a(t){if(t=t||s.getValue(),!(y in t&&v in t))return!1;var e;_&&$.empty(),e=T.test(t[v])?c:h,_=new e($),_.setDataNode(s.$("attachment"))}var s,_,l=i(40),d=i(32),u=i(30),c=i(219),h=i(220),w=u.root.$$("livechat.ui.chat_window"),x="file_name$string",v="file_type$string",y="file_url$string",j="thumbnail_url$string",C="s3_progress$int",A="file_size$int",S="msg$string",I="status$string",k="error$string",B=r(218),N=r(219),T=/image/i,D=/uploaded: (.+)\nURL: (.+)\nType: (.+)\nSize: (.+)(\nThumb: (.+))?/i,E=100;p.setDataNode=function(t){s&&p.autounbind(s,"value",e),s=t,s&&p.autobind(s,"value",e)},t()}();for(var x in w)w.hasOwnProperty(x)&&(p[x]=w[x]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{width:"100%"},".progress_text":{fontSize:"$$fontSizeS",color:"$$chatLogSystemMsgColor",fontStyle:"italic"},".progress_container":{position:"relative",height:"8px",marginTop:"3px",borderRadius:"5px",background:"$$chatLogFileProgressBg",overflow:"hidden",".progress_bar":{position:"absolute",top:"0px",left:"0px",height:"100%"}},".file_details_container":{overflow:"hidden",marginTop:"5px"},".file_status":{marginTop:"5px",textAlign:"center",fontSize:"$$fontSizeS",color:"$$chatLogSystemMsgColor","&.fail":{color:"$$errorMessageColor"}}},s(t,"meshim_widget_widgets_chatLogRenderer_ChatFile"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="p",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_p"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_html_a=i(88),e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(220),h=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_html_a,"a_full","",[[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_div,"file_image","",[],{id:"file_image","class":"file_image"}],[e.__$$__jx_ui_html_div,"reload_container","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"picture","class":"reload_icon",addClass:"icon"}],[e.__$$__jx_ui_html_div,"","",[c],{"class":"reload_message"}]],{id:"reload_container","class":"reload_container",display:"none"}]],{"class":"file_image_container image_file_border"}]],{id:"a_full","class":"anchor",target:"_blank"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__a_full"),m=n.get(s+"__file_image"),$=n.get(s+"__reload_container");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var b=function(){function t(t){t&&_ in t&&(t[_]=s.replaceFileHostname(t[_]),f.setHref(t[_]),a&&(a.onload=a.onerror=a.onabort=e),a=new window.Image,a.onload=n,a.onerror=o,a.onabort=o,a.src=t[_])}function e(){}function n(){m.setBackgroundImage(a.src),$.setDisplay("none"),m.setOpacity(1)}function o(){m.setDisplay("none"),$.setDisplay("")}var r,a,s=i(38),_="url$string";g.setDataNode=function(e){r&&g.autounbind(r,"value",t),r=e,r&&g.autobind(r,"value",t)}}();for(var w in b)b.hasOwnProperty(w)&&(g[w]=b[w]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".anchor":{textDecoration:"none"},".file_image_container":{display:"table",width:"120px",height:"80px",backgroundColor:"#FFFFFF",borderCollapse:"separate",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"$$borderColor",textAlign:"center",overflow:"hidden",".file_image":{display:"table-cell",width:"100%",height:"100%",backgroundPosition:"center",backgroundSize:"cover",opacity:"0",transition:"opacity 0.5s"},".reload_container":{display:"table-cell",verticalAlign:"middle",".reload_icon":{fontSize:"24px"},".reload_message":{fontSize:"$$fontSizeS",color:"$$chatLogSystemMsgColor"}}}},s(t,"meshim_widget_widgets_chatLogRenderer_ImageFileRenderer"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_html_div=i(114),e.__$$__jx_ui_html_a=i(88),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_html_div,"icon_wrapper","",[[e.__$$__jx_ui_html_a,"a_full","",[[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"paperclip","class":"generic_icon",addClass:"icon"}]],{"class":"generic_icon_container generic_file_border"}]],{id:"a_full","class":"anchor",target:"_blank"}]],{"class":"icon_wrapper",id:"icon_wrapper"}],[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_a,"file_name","",[],{id:"file_name","class":"file_name",target:"_blank"}],[e.__$$__jx_ui_html_div,"file_size","",[],{id:"file_size","class":"file_size"}]],{"class":"file_info_container"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__icon_wrapper"),g=n.get(a+"__a_full"),f=n.get(a+"__file_name"),m=n.get(a+"__file_size");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){o.rtl(p)}function e(t){t&&(s in t&&(t[s]=a.replaceFileHostname(t[s]),g.setHref(t[s]),f.setHref(t[s])),_ in t&&f.setText(t[_]),l in t&&m.setText(r.prettySize(t[l],{base2:!0})))}var n,o=i(89),r=i(40),a=i(38),s="url$string",_="name$string",l="size$int";h.setDataNode=function(t){n&&h.autounbind(n,"value",e),n=t,n&&h.autobind(n,"value",e)},t()}();for(var b in $)$.hasOwnProperty(b)&&(h[b]=$[b]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{display:"table",width:"100%"},".icon_wrapper":{display:"table-cell",width:"1px","&.rtl":{paddingLeft:"$$paddingL"},"&.ltr":{paddingRight:"$$paddingL"}},".anchor":{textDecoration:"none"},".generic_icon_container":{display:"table",width:"44px",height:"44px",backgroundColor:"#FFFFFF",borderCollapse:"separate",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"$$borderColor",textAlign:"center",".generic_icon":{display:"table-cell",paddingTop:"12px",paddingLeft:"4px",fontSize:"24px"}},".file_info_container":{display:"table-cell",verticalAlign:"top",padding:"0px",".file_name":{fontSize:"$$fontSizeS",wordBreak:"break-all",textDecoration:"none"},".file_size":{marginTop:"2px",fontSize:"$$fontSizeS"}}},a(t,"meshim_widget_widgets_chatLogRenderer_GenericFileRenderer"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_chatLogRenderer_ChatBubble=i(222),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_chatLogRenderer_ChatBubble,"bubble","",[],{id:"bubble",addClass:"chat_bubble"}],[e.__$$__jx_ui_html_div,"","",[],{"class":"clear_both"}]],{xmlns:"jx.ui.html","xmlns:widgets":"meshim.widget.widgets","xmlns:logRenderer":"meshim.widget.widgets.chatLogRenderer"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__bubble");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){c.setDataNode=function(t){h.setDataNode(t)}}t()}();for(var g in p)p.hasOwnProperty(g)&&(c[g]=p[g]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{".clear_both":{clear:"both",height:"0px",overflow:"hidden",lineHeight:"0px",fontSize:"0px"}},"**self.group_children":{".chat_name":{display:"none"}}},a(t,"meshim_widget_widgets_chatLogRenderer_BubbleLogRenderer"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble=i(223),e.__$$__meshim_widget_widgets_chatLogRenderer_BasicRenderer=i(209),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble,"","",[[e.__$$__meshim_widget_widgets_chatLogRenderer_BasicRenderer,"content","",[],{id:"content","class":"content"}]],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:logRenderer":"meshim.widget.widgets.chatLogRenderer",addClass:"chat_bubble"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__content");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){c.setDataNode=e}function e(t){n||h.setDataNode(t),n&&c.autounbind(n,"value",i),n=t.$("nick$string"),c.autobind(n,"value",i)}function i(t){t&&(o.test(t)?(c.setArrowPointing("left"),c.setFloat("left")):r.test(t)&&(c.setArrowPointing("right"),c.setFloat("right")))}var n,o=/^agent/,r=/^visitor:/;t()}();for(var g in p)p.hasOwnProperty(g)&&(c[g]=p[g]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_chatLogRenderer_ArrowBubble,t.__jx__jcss={"**self":{maxWidth:"90%",clear:"both",padding:"5px 10px",margin:"0px 5px",borderRadius:"4px",".arrow_border":{},".arrow_background":{},".arrow_border":{top:"auto !important",bottom:"5px",marginTop:"0px",borderWidth:"6px"},".arrow_background":{top:"auto !important",bottom:"6px",marginTop:"0px",borderWidth:"5px"},".content":{marginTop:"0px"}}},a(t,"meshim_widget_widgets_chatLogRenderer_ChatBubble"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_div,"$$defaultplacement$$","",[],{"class":"arrow_content",container:"default",position:"relative",id:"$$defaultplacement$$"}],[e.__$$__jx_ui_html_div,"","",[],{"class":"arrow arrow_border"}],[e.__$$__jx_ui_html_div,"","",[],{"class":"arrow arrow_background"}]],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__$$defaultplacement$$");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),h.defaultPlacement=p;var g=function(){function t(){h.setArrowPointing=function(t){h.removeClass("left").removeClass("right"),h.addClass(t)},e.rtl(h)}var e=i(89);t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{position:"relative",border:"1px solid #000000",background:"#ffffff",".arrow":{position:"absolute",border:"0px solid transparent",height:0,width:0,fontSize:0,lineHeight:0,pointerEvents:"none"},".arrow_border":{borderWidth:"8px",marginTop:"8px"},".arrow_background":{borderWidth:"7px",marginTop:"9px"},"&.ltr.left, &.rtl.right":{".arrow":{right:"100%",top:0,borderLeftColor:"transparent !important",borderTopColor:"transparent !important",borderBottomColor:"transparent !important"}},"&.rtl.left, &.ltr.right":{".arrow":{left:"100%",top:0,borderRightColor:"transparent !important",borderTopColor:"transparent !important",borderBottomColor:"transparent !important"}}}},a(t,"meshim_widget_widgets_chatLogRenderer_ArrowBubble"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_table=i(97),e.__$$__jx_ui_html_tbody=i(98),e.__$$__jx_ui_html_tr=i(99),e.__$$__jx_ui_html_td=i(100),e.__$$__meshim_widget_widgets_Avatar=i(137),e.__$$__meshim_widget_widgets_chatLogRenderer_BasicRenderer=i(209),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_table,"","",[[e.__$$__jx_ui_html_tbody,"","",[[e.__$$__jx_ui_html_tr,"","",[[e.__$$__jx_ui_html_td,"","",[[e.__$$__meshim_widget_widgets_Avatar,"avatar","",[],{id:"avatar",addClass:"log_avatar",hideAuthType:"true"}]],{"class":"avatar_cell"}],[e.__$$__jx_ui_html_td,"","",[[e.__$$__meshim_widget_widgets_chatLogRenderer_BasicRenderer,"content","",[],{id:"content",addClass:"content"}]],{}]],{}]],{}]],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets","class":"basicAvatarRenderer"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__avatar"),g=n.get(a+"__content");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){r.rtl(h),h.setDataNode=e}function e(t){o&&h.autounbind(o,"value",n),g.setDataNode(t),o=t.$("nick$string"),h.autobind(o,"value",n)}function n(t){t&&p.setMemberId(t)}var o,r=i(89);t()}();for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_table.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_table,t.__jx__jcss={"**self":{position:"relative",width:"100%",tableLayout:"fixed",borderSpacing:"0px",borderCollapse:"collapse",fontSize:"100%",td:{verticalAlign:"top",padding:"0px"},".log_avatar":{width:"24px",height:"24px"},".avatar_cell":{width:"24px"},".content":{marginTop:"0px",marginLeft:"8px"}},"&.rtl":{".content":{marginLeft:"0px",marginRight:"8px"}},"**self.group_children":{".log_avatar":{display:"none"},".chat_name":{display:"none"}}},a(t,"meshim_widget_widgets_chatLogRenderer_BasicAvatarRenderer"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_table=i(97),e.__$$__jx_ui_html_tbody=i(98),e.__$$__jx_ui_html_tr=i(99),e.__$$__jx_ui_html_td=i(100),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_table,"","",[[e.__$$__jx_ui_html_tbody,"","",[[e.__$$__jx_ui_html_tr,"","",[[e.__$$__jx_ui_html_td,"left_cell","",[],{id:"left_cell"}],[e.__$$__jx_ui_html_td,"right_cell","",[],{id:"right_cell"}]],{}]],{}]],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__left_cell"),g=n.get(a+"__right_cell");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){h.setDataNode=e}function e(t){o&&h.autounbind(o,"value",n),r=t,o=t.$("nick$string"),h.autobind(o,"value",n)}function n(t){t&&(p.empty(),g.empty(),p.removeClass("avatar_cell"),g.removeClass("avatar_cell"),_.test(t)?(new a(p).setHideAuthType(!0).setMemberId(t).addClass("log_avatar"),new s(g).setDataNode(r),p.addClass("avatar_cell")):(new a(g).setHideAuthType(!0).setMemberId(t).addClass("log_avatar"),new s(p).setDataNode(r),g.addClass("avatar_cell")))}var o,r,a=i(137),s=i(222),_=/^agent/;t()}();for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_table.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_table,t.__jx__jcss={"**self":{position:"relative",width:"100%",fontSize:"100%",tableLayout:"fixed",borderSpacing:"0px",borderCollapse:"collapse",td:{verticalAlign:"bottom",padding:"0px"},".chat_bubble":{display:"inline",margin:"0 8px"},".log_avatar":{width:"32px",height:"32px"},".avatar_cell":{width:"32px"}},"**self.group_children":{".chat_name":{display:"none"}}},a(t,"meshim_widget_widgets_chatLogRenderer_BubbleAvatarRenderer"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt=i(227),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:chatLogRenderer":"meshim.widget.widgets.chatLogRenderer"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setDataNode=e,h.autobind(s,"value",n),h.autobind(l,"value",n),h.autobind(d,"value",n)}function e(t){var e=t.$("timestamp$int");o!==e&&(o&&h.autounbind(o,"value",n),o=e,o&&h.autobind(o,"value",n))}function n(){if(!o)return void h.setDisplay("none");var t=s.getValue(),e=o.getValue(),i=l.getValue(),n=d.getValue();t&&i&&n&&n<=e?h.setDisplay(""):h.setDisplay("none")}var o,r=i(30),a=r.root.$("livechat"),s=a.$("settings").$("rating").$("enabled$bool"),_=a.$("channel"),l=_.$("chatting$bool"),d=_.$("start$time");t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt,t.__jx__jcss={"**self":{fontSize:"$$fontSizeS",color:"$$chatLogSystemMsgColor",background:"$$chatLogSystemMsgBg",borderWidth:"$$chatLogSystemMsgBorderWidth",borderStyle:"$$chatLogSystemMsgBorderStyle",borderColor:"$$chatLogSystemMsgBorderColor",padding:"$$chatLogSystemMsgPadding",textAlign:"center"}},a(t,"meshim_widget_widgets_chatLogRenderer_RequestRatingPrompt"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_chatLogRenderer_Button=i(228),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(217),h=[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_chatLogRenderer_Button,"rate_this_chat","",[c],{id:"rate_this_chat"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__rate_this_chat");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function e(){t.last_instance&&t.last_instance.destroy(),t.last_instance=g,g.autobind(f,"click",n)}function n(){r.update("rating_panel")}var o=i(30),r=o.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string");e()}();for(var $ in m)m.hasOwnProperty($)&&(g[$]=m[$]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{marginTop:"5px",marginBottom:"5px"}},s(t,"meshim_widget_widgets_chatLogRenderer_RatingPrompt"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_Button,"","",[],{xmlns:"jx.ui.html","xmlns:widgets":"meshim.widget.widgets",addClass:"secondary chat_log_button"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_Button.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Button,t.__jx__jcss={"**self.chat_log_button":{width:"auto",maxWidth:"100%",padding:"6px"}},a(t,"meshim_widget_widgets_chatLogRenderer_Button"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.setDataNode=e,p.onDestruction(a),r.onLanguage&&r.onLanguage(o)}function e(t){s&&p.autounbind(s,"value",n),_=t,s=_.$("type$string"),p.autobind(s,"value",n);
}function n(t){if(t&&!l){switch(t){case"chat.memberjoin":l=new u(p);break;case"chat.memberleave":l=new u(p),d=new m(p),d.setDataNode(_);break;case"chat.changename":l=new c(p);break;case"chat.rating":l=new h(p);break;case"chat.comment":l=new g(p);break;case"chat.event":l=new f(p)}o()}}function o(){_&&(l&&l.setDataNode(_),d&&d.setDataNode(_))}function a(){r.unLanguage&&r.unLanguage(o)}var s,_,l,d,u=i(230),c=i(231),h=i(232),g=i(233),f=i(234),m=i(235);t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{fontSize:"$$fontSizeS",color:"$$chatLogSystemMsgColor",background:"$$chatLogSystemMsgBg",borderWidth:"$$chatLogSystemMsgBorderWidth",borderStyle:"$$chatLogSystemMsgBorderStyle",borderColor:"$$chatLogSystemMsgBorderColor",padding:"$$chatLogSystemMsgPadding",textAlign:"center"}},s(t,"meshim_widget_widgets_chatLogRenderer_SystemLogRenderer"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_div,"log_message","",[],{id:"log_message"}]],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__log_message");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){h.setDataNode=e,d.on("value",function(t){r=t})}function e(t){o&&h.autounbind(o,"value",n),o=t.$("display_name$string"),h.autobind(o,"value",n)}function n(t){var e=o.parentNode.getValue("nick$string")||"";e=e.split(":")[0];var i=o.parentNode.getValue("type$string");if(!(e&&t||"chat.memberleave"===i&&"visitor"===e))return void h.parentNode.setDisplay("none");h.parentNode.setDisplay("");var n=o.parentNode.getValue("timestamp$int"),a=l[i]||"";a=a.replace("<name>",t),"visitor"==e&&("chat.memberleave"!=i?(a=s.chat_log["chat.visitorjoin"],h.parentNode.addClass("visitor_join")):(a=s.chat_log["chat.visitorleave"],h.parentNode.addClass("visitor_leave"))),"agent"==e&&"chat.memberjoin"==i&&r&&n>r&&_.trackEvent("Served by Operator",t),p.setText(a)}var o,r,a=i(30),s=i(91),_=i(169),l=s.chat_log,d=a.root.$$("connection.reattached_timestamp$int");t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={},a(t,"meshim_widget_widgets_chatLogRenderer_MemberChange"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_div=i(114),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_div,"","",[],{xmlns:"jx.ui.html","xmlns:mui":"meshim.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setDataNode=e}function e(t){o&&h.autounbind(o,"value",n),o=t,o&&h.autobind(o,"value",n)}function n(){var t=o.getValue();if(t){var e=t.display_name$string,i=t.new_display_name$string,n="";e&&i&&(n=a.replace("<old_name>",e).replace("<new_name>",i)),h.parentNode.setDisplay(n?"":"none"),h.setText(n)}}var o,r=i(91),a=r.chat_log["chat.changename"];t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={},a(t,"meshim_widget_widgets_chatLogRenderer_NameChange"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_chatLogRenderer_Button=i(228),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(212),h=[e.__$$__jx_ui_html_div,"","",[[e.__$$__jx_ui_html_div,"rating_msg","",[],{id:"rating_msg"}],[e.__$$__meshim_widget_widgets_chatLogRenderer_Button,"leave_a_comment","",[c],{id:"leave_a_comment",addClass:"leave_a_comment"}]],{xmlns:"jx.ui.html","xmlns:widgets":"meshim.widget.widgets"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__rating_msg"),m=n.get(s+"__leave_a_comment");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function e(){g.setDataNode=s,g.disableLeaveComment=a,g.autobind($,"value",o),g.autobind(b,"value",r),g.autobind(w,"value",r),g.autobind(x,"value",r),t.last_instance&&t.last_instance.disableLeaveComment(),t.last_instance=g,m.on("click",n)}function n(){v.update("rating_panel")}function o(){var t=$.getValue();g.setDisplay(t?"":"none")}function r(){if(m&&d){var t=b.getValue(),e=w.getValue(),i=d.getValue("timestamp$int"),n=e&&i>t,o=x.getValue(),r=o&&i<=o;n&&!r||a()}}function a(){m&&(g.autounbind(x,"value",r),m.un("click",n),m.destroy(),m=null)}function s(t){d!==t&&(d&&g.autounbind(d,"value",_),d=t,t&&g.autobind(d,"value",_))}function _(){var t=d.getValue();if(t){var e=t.new_rating$string;f.setText(l(e)),r()}}function l(t){return t?h[t]:h.cancel}var d,u=i(91),c=i(30),h=u.chat_log["chat.rating"],p=c.root.$("livechat"),$=p.$("settings").$("rating").$("enabled$bool"),b=p.$("channel").$("start$time"),w=p.$("channel").$("chatting$bool"),x=p.$("channel").$("last_comment_ts$int"),v=p.$("ui").$("chat_window").$("main_stack_name$string");e()}();for(var b in $)$.hasOwnProperty(b)&&(g[b]=$[b]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__jx_ui_html_div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_div,t.__jx__jcss={"**self":{padding:"0px 10px",".leave_a_comment":{margin:"5px 0px"}}},s(t,"meshim_widget_widgets_chatLogRenderer_Rating"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__div=i(206),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__div,"","",[],{}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setText(r),h.autobind(s,"value",e)}function e(){s.getValue()?h.setDisplay(""):h.setDisplay("none")}var n=i(91),o=i(30),r=n.chat_log["chat.comment"],a=o.root.$("livechat"),s=a.$("settings").$("rating").$("enabled$bool");h.setDataNode=function(){},t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__div.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__div,t.__jx__jcss={},a(t,"meshim_widget_widgets_chatLogRenderer_Comment"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(t){if(t&&"msg$string"in t){var e=t.msg$string,i=e.match(/There are currently ([0-9]+) visitor/);i&&(e=o.system_msg.queue.replace("<number>",i[1])),h.setText(e||"")}}function e(){}var n,o=i(91);h.setDataNode=function(e){e!=n&&(n&&h.autounbind(n,"value",t),n=e,n&&h.autobind(n,"value",t))},e()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={},a(t,"meshim_widget_widgets_chatLogRenderer_GenericSystemMsg"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt=i(227),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:chatLogRenderer":"meshim.widget.widgets.chatLogRenderer"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.setDataNode=e,h.autobind(s,"value",n),h.autobind(u,"value",n),h.autobind(l,"value",n),h.autobind(d,"value",n)}function e(t){var e=t.$("timestamp$int");o!==e&&(o&&h.autounbind(o,"value",n),o=e,o&&h.autobind(o,"value",n))}function n(){if(!o)return void h.setDisplay("none");var t=s.getValue(),e=o.getValue(),i=d.getValue(),n=c.getValue(),r=l.getValue()&&i&&i<=e;t&&r&&n===e&&!u.getValue()?h.setDisplay(""):h.setDisplay("none")}var o,r=i(30),a=r.root.$("livechat"),s=a.$("settings").$("rating").$("enabled$bool"),_=a.$("channel"),l=_.$("chatting$bool"),d=_.$("start$time"),u=_.$("rating$string"),c=_.$("last_agent_leave_ts$int");t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_chatLogRenderer_RatingPrompt,t.__jx__jcss={},a(t,"meshim_widget_widgets_chatLogRenderer_MemberLeaveRatingPrompt"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_chatLogRenderer_SystemLogRenderer=i(229),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_chatLogRenderer_SystemLogRenderer,"","",[],{"xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.autobind(s.$("num_typing_agents$int"),"value",e),r&&r.onLanguage&&(r.onLanguage(e),p.onDestruction(function(){r.unLanguage(e)}))}function e(){var t=s.$("num_typing_agents$int").getValue();t>=1?(p.setText((1==t?o.chat_panel.name_is_typing:o.chat_panel.names_are_typing).replace("<name>",s.$("agent_names$string").getValue())),p.setDisplay("")):p.setDisplay("none")}var n=i(30),o=i(91),a=n.root.$("livechat"),s=a.$("ui").$("chat_window").$("typing_info");t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_chatLogRenderer_SystemLogRenderer.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_chatLogRenderer_SystemLogRenderer,t.__jx__jcss={"**self":{width:"100%"}},s(t,"meshim_widget_widgets_chatLogRenderer_TypingRenderer"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l,d){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_FakeInput=i(136),e.__$$__meshim_widget_widgets_Button=i(151),e.__$$__meshim_widget_widgets_AutoResizeTextArea=i(238),e.__$$__meshim_widget_widgets_IconFont=i(90),e.__$$__meshim_widget_widgets_EmoticonPicker=i(239),e.__$$__jx_ui_Label=i(95),e.__$$__jx_ui_Frame=i(241),t.exports=function(){function t(l,d,c,h,p){if(!(this instanceof t))return new t(l,d,c,h,p);d=d||n.generateID();var g=o(162),f=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_FakeInput,"fake_input","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Button,"send","",[],{id:"send",addClass:"send primary fit"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_AutoResizeTextArea,"textarea","",[],{id:"textarea",addClass:"textarea unstyled"}]],{addClass:"textarea_wrapper"}]],{addClass:"float_wrapper"}],[e.__$$__meshim_widget_widgets_IconFont,"toggle_picker","",[],{id:"toggle_picker",addClass:"toggle_picker",icon:"smiley",tabIndex:"0",tagName:"button"}],[e.__$$__meshim_widget_widgets_EmoticonPicker,"picker","",[],{id:"picker",addClass:"picker"}],[e.__$$__jx_ui_Label,"","",[[e.__$$__jx_ui_Frame,"","",[g],{}]],{addClass:"drop_label",tabIndex:"0"}]],{id:"fake_input",addClass:"fake_input"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets"}],m=f[0].call(this,l,d,null,n.mangleIDs(d,f[3]),f[4]),$=m||this;n.set(d,$);var b=n.get(d+"__fake_input"),w=n.get(d+"__send"),x=n.get(d+"__textarea"),v=n.get(d+"__toggle_picker"),y=n.get(d+"__picker");t.__jx__jcss_generated||(r.generate(l,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var j=function(){function t(t){function e(){$.dom&&(I||$.removeClass("dragover"))}t.stopPropagation(),t.preventDefault(),n()&&(a.isWebKit?"dragover"==t.type?(I=!0,k&&window.clearTimeout(k),$.addClass("dragover")):(I=!1,k=window.setTimeout(e,200)):"dragover"==t.type?$.addClass("dragover"):$.removeClass("dragover"))}function e(e,i){if(n()){t(e);var r;if(i){if(r=e&&e.dataTransfer&&e.dataTransfer.files,!r||!r.length)return;O.reconnectIfServerRetired(function(){o(r)})}}}function n(){return S&&!$.getDisabled()}function o(t){if(S&&window.FormData){var e=new window.FormData,i=[],n=[],o=0,r=O.getHost();if(r){for(var a=0,s=t.length;a<s;a++){if(!D.isValidType(t[a].name,A))return void it.update("type");i.push(t[a].name),n.push(t[a].type),o+=t[a].size||0,e.append("file_"+t[a].name,t[a])}if(o>T.FILE_UPLOAD_MAX)return void it.update("size");i=i.join(", "),n=n.join(", ");var _=W.livechat.sendFile({file_name:i,file_type:n,file_size:o}),l=new window.XMLHttpRequest,d={ts:_};B="https://"+r+T.FILE_UPLOAD_PATH+"?"+E.buildQuery(d),l.upload&&(l.open("POST",B,!0),l.setRequestHeader("X-Zopim-MID",tt.getValue()),l.setRequestHeader("X-Zopim-UID",et.getValue()),l.send(e),R.increment("file_upload"))}}}function r(){N=!0,X.write({typing$bool:N}),L.setUserChoice(!0)}function l(){N=!1,X.write({typing$bool:N})}function d(){w.setText(M.chat_panel.sendbutton_text),x.setPlaceholder(M.chat_panel.chattextarea_placeholder),j=Q.getValue(),C=J.getValue(),F.mobile($),F.rtl($),x.setDataNode(Y),y.setDataNode(q,U),x.on("focus",function(){f(),g(),b.addClass("focus"),Z.update(!0)}),x.on("blur",function(){b.removeClass("focus"),Z.update(!1)}),$.autobind(K,"value",function(){s(function(){$.dom&&x.updateStyles()})}),$.autobind(Y,"value",function(t){t&&"overflow$bool"in t&&(t.overflow$bool?$.addClass("overflow"):$.removeClass("overflow"))});var i=12e4,n=0;$.autobind(Y.$("value$string"),"value",function(t){t?(N||r(),window.clearTimeout(n),n=window.setTimeout(l,i)):N&&(window.clearTimeout(n),l())}),$.autobind(q,"value",function(t){t?v.addClass("active"):v.removeClass("active"),m=t}),$.autobind(G,"value",function(t){v.setDisplay(t?"":"none"),t?$.addClass("emoticons_enabled"):$.removeClass("emoticons_enabled")}),$.autobind(U,"value",function(t){t&&x.insertAtCaret(t)}),y.on("click",function(){$.focus()}),v.on("click",function(t){t.stopPropagation(),q.update(!m),$.focus()});for(var o=$;o&&o.parentNode&&"body"!=o.parentNode.tagName.toLowerCase();)o=o.parentNode;o&&o.on("click",p),j&&_.window.on("click",p),$.onDestruction(function(){o&&o.un("click",p),j&&_.window.un("click",p)}),$.autobind(nt,"value",u),$.autobind(rt,"value",u),$.autobind(st,"value",u),$.autobind(at,"value",c),window.File&&window.FileList&&window.FileReader&&($.on("dragover",t),$.on("dragleave",t),$.on("drop",function(t){e(t,!0)})),x.on("keydown",function(t){13!=t.keyCode||t.shiftKey||t.ctrlKey||t.altKey||(t.preventDefault(),h())}),w.on("click",function(){f(),g(),h()}),$.autobind(_t,"value",function(t){$.setDisabled("idle_disconnect"===t)})}function u(){var t=nt.getValue(),e=rt.getValue(),i=st.getValue("color_customization_enabled$int")||st.getValue("widget_customization_enabled$int");S=!!i&&(!t||e!==!1)}function c(){var t=at.getValue()||"";A=t.trim().replace(/\s*,\s*/g,",").split(",")}function h(){var t=x.getValue().trim();t&&(W.livechat.sendChatMsg({msg:t}),x.setValue(""))}function p(t){for(var e=t.target.jx_wrapper;e&&e.parentNode&&e.parentNode!=$;){if(e==y)return;e=e.parentNode}q.update(!1)}function g(){W.root.$("livechat").$("ui").$("chat_window").update({menu_stack_name$string:""})}function f(){j&&P.resetUnreadCount()}var m,j,C,A,S,I,k,B,N,T=i(32),D=i(40),E=i(27),P=i(79),O=i(48),W=i(30),L=i(192),R=i(49),F=i(89),M=i(91),V=W.root,H=V.$("livechat"),z=H.$("ui").$("chat_window").$("chat_panel"),q=z.$("emoticon_picker").$("display$bool"),U=z.$("emoticon_picker").$("value$string"),G=H.$("settings").$("emoticons").$("enabled$bool"),Y=z.$("textarea"),X=H.$("channel").$("typing"),K=H.$("ui").$("theme_loaded$bool"),Z=H.$("ui").$("hide_branding$bool"),Q=H.$("ui").$("popout$bool"),J=H.$("ui").$("mockup$bool"),tt=H.$("profile").$("mid$string"),et=H.$("profile").$("uid$string"),it=H.$("ui").$("chat_window").$("chat_panel").$("file_toast").$("error$string"),nt=H.$("features").$("file_sending_settings$bool"),ot=H.$("settings").$("file_sending"),rt=ot.$("enabled$bool"),at=ot.$("allowed_extensions$string"),st=H.$("settings").$("package"),_t=V.$("connection").$("status$string");$.focus=function(){C||(x.updateHeight(),x.focus())},$.blur=function(){x.updateHeight(),x.blur()},$.updateStyles=function(){x.updateStyles()},d()}();for(var C in j)j.hasOwnProperty(C)&&($[C]=j[C]);return $.fire&&$.fire("init"),$.setStyle&&$.setStyle(c),$.setAttributes&&$.setAttributes(p),"function"==typeof $.addChildren?$.addChildren(h):n.addChildren($,h),$!==this&&($.__jx__constructor=u,$.__jx__native=!1),$}var u;return t.prototype=l(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative",width:"100%",padding:"10px",height:"auto","*zoom":1,padding:"$$chatTextAreaPadding",borderWidth:"$$chatTextAreaBorderWidth",borderStyle:"$$chatTextAreaBorderStyle",borderColor:"$$chatTextAreaBorderColor","&.emoticons_enabled.overflow":{".toggle_picker":{}},"&.emoticons_enabled":{".textarea":{}},"&.dragover":{".fake_input":{boxShadow:"none",border:"none"},".drop_label":{display:"block"}},"&.disabled":{opacity:"0.5"}},".fake_input":{position:"relative",overflow:"visible","*zoom":1,padding:0,color:"$$chatTextAreaInputColor",background:"$$chatTextAreaInputBg",borderWidth:"$$chatTextAreaInputBorderWidth",borderStyle:"$$chatTextAreaInputBorderStyle",borderColor:"$$chatTextAreaInputBorderColor",borderRadius:"$$chatTextAreaInputRadius",boxShadow:"$$chatTextAreaInputShadow"},".fake_input.focus":{color:"$$chatTextAreaInputFocusColor",background:"$$chatTextAreaInputFocusBg",borderColor:"$$chatTextAreaInputFocusBorderColor",boxShadow:"$$chatTextAreaInputFocusShadow"},".drop_label, .file_input":{display:"none",position:"absolute","top, left":0,"width, height":"100%"},".drop_label":{textAlign:"center",color:"$$chatTextAreaDropColor",background:"$$chatTextAreaDropBg",borderWidth:"$$chatTextAreaDropBorderWidth",borderStyle:"$$chatTextAreaDropBorderStyle",borderColor:"$$chatTextAreaDropBorderColor",".container":{border:"none",background:"transparent"}},".file_input":{opacity:0},".toggle_picker":{position:"absolute","top, right":0,cursor:"pointer",fontSize:"18px",lineHeight:"24px","&:hover":{},"&:focus":{outline:"none"}},".picker":{position:"absolute",bottom:"100%"},".textarea":{display:"block","width, height":"100%",resize:"none",transition:"height 0.1s ease-in-out",fontSize:"$$chatTextAreaInputFontSize",minHeight:"$$chatTextAreaInputMinHeight",maxHeight:"$$chatTextAreaInputMaxHeight",padding:"$$chatTextAreaInputPadding",lineHeight:"$$chatTextAreaInputLineHeight"},".send":{display:"none"},".float_wrapper":{overflow:"hidden"},".textarea_wrapper":{display:"block",overflow:"hidden"},"&.mobile":{position:"fixed",zIndex:"1000",padding:0,".fake_input":{},".textarea":{padding:"10px"},".send":{display:"block","float":"right",margin:"$$chatTextAreaSubmitMargin",padding:"$$chatTextAreaSubmitPadding"},".toggle_picker":{display:"none"}},"&.rtl.mobile":{".send":{"float":"left"}}},d(t,"meshim_widget_components_chatWindow_chatPanel_ChatTextArea"),u=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(7),i(12),i(6),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){t.exports=function(){function t(i,r,a,_,l){if(!(this instanceof t))return new t(i,r,a,_,l);if(this.$node,t.__jx__jcss_generated||(e.generate(this,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0),this.minHeight=0,this.maxHeight=window.Infinity,this.vBoxOffset=0,this.hBoxOffset=0,l||(l={}),l.overflow||(l.overflow="hidden"),l.overflowY||(l.overflowY="hidden"),s.call(this,i,r,a,_,l),this.style.wordWrap="break-word",this.style.resize="none",this.compatMode=n.bugs.noBoxSizing&&"CSS1Compat"!=this.doc.compatMode&&this.doc!=document,!this.compatMode){this.fakeTextArea=new s(this.doc.body,null,null,null,{className:this.getClassName(),tabIndex:"-1"});try{this.fakeTextArea.setStyle("position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; word-wrap:break-word; height:0 !important; overflow:hidden; min-height:0 !important; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box;")}catch(d){}this.onDestruction(function(){this.fakeTextArea.destroy()})}var u=this;o(function(){u.dom&&u.updateStyles()}),this._updateValueNode=function(){this.updateValueNode()},this._readValueNode=function(t){u.readValueNode(t)},this.on("input",this._updateValueNode),this.on("change",this._updateValueNode),this.on("keyup",this._updateValueNode),this._updateHeight=function(){this.updateHeight()},"onpropertychange"in this.dom?"oninput"in this.dom?(this.on("input",this._updateHeight),this.on("keyup",this._updateHeight)):this.on("propertychange",this._updateHeight):this.on("input",this._updateHeight)}var s=i(164);t.__jx__jcss={"**self":{}},t.prototype=r(s.prototype),t.prototype.__jx__super=s,t.prototype.updateValueNode=function(){this.$node&&(this._updatingValueNode=!0,this.$node.$("value$string").update(this.getValue()),this._updatingValueNode=!1)},t.prototype.readValueNode=function(t){this.$node&&(this._updatingValueNode||null!=t&&this.setValue(t))},t.prototype.updateHeight=function(){if((this.compatMode||this.fakeTextArea)&&!this.active){var t,e,i;this.active=!0,this.compatMode?(this.style.height=0,t=this.dom.offsetHeight-this.vBoxOffset):(this.fakeTextArea.setValue(this.getValue()),this.fakeTextArea.style.overflowY=this.style.overflowY,i=parseInt(this.style.height,10),this.fakeTextArea.style.width=Math.max(Math.max(this.dom.offsetWidth,0)-this.hBoxOffset,0)+"px",this.fakeTextArea.dom.scrollTop=0,this.fakeTextArea.dom.scrollTop=9e4,t=this.fakeTextArea.dom.scrollTop);var n=this.maxHeight-this.vBoxOffset,r=this.minHeight-this.vBoxOffset;t>n?(t=n,e="scroll"):t<r&&(t=r),t+=this.vBoxOffset,t=Math.max(t,0),this.style.overflowY=e||"hidden",this.style.height=t+"px",this.$node&&this.$node.update({height$int:t,overflow$bool:!!e});var a=this;o(function(){a.active=!1})}};var _=["Top","Bottom"],l=["Left","Right"];return t.prototype.updateBoxOffset=function(){var t=this.getComputedStyle();if(t){this.vBoxOffset=0,this.hBoxOffset=0;var e;if("border-box"===t.boxSizing||"border-box"===t.MozBoxSizing||"border-box"===t.webkitBoxSizing||n.isIE<=7&&"CSS1Compat"!=this.doc.compatMode){for(e=0;e<2;e++)this.vBoxOffset+=(parseInt(t["padding"+_[e]],10)||0)+(parseInt(t["border"+_[e]+"Width"],10)||0);for(e=0;e<2;e++)this.hBoxOffset+=(parseInt(t["padding"+l[e]],10)||0)+(parseInt(t["border"+l[e]+"Width"],10)||0)}return this}},t.prototype.setDataNode=function(t){return this.$node&&this.autounbind(this.$node.$("value$string"),"value",this._readValueNode),this.$node=t,this.$node&&(this.autobind(this.$node.$("value$string"),"value",this._readValueNode),this.updateValueNode(),this.updateHeight()),this},t.prototype.setValue=function(t){return s.prototype.setValue.call(this,t),this.updateValueNode(),this.updateHeight(),this},t.prototype.updateMinMaxHeight=function(){var t=this.getComputedStyle();if(t)return this.minHeight=parseInt(t.minHeight,10),this.maxHeight=parseInt(t.maxHeight,10),!this.minHeight&&isNaN(this.maxHeight)&&(this.style.height="",this.minHeight=this.maxHeight=this.dom.offsetHeight),isNaN(this.maxHeight)&&(this.maxHeight=this.minHeight),this.$node&&this.$node.update({min_height$string:this.minHeight,max_height$string:this.maxHeight}),this},t.prototype.updateClonedStyles=function(){if(this.fakeTextArea){var t=["fontFamily","fontSize","fontWeight","letterSpacing","textTransform","wordSpacing","textIndent"];this.fakeTextArea.style.lineHeight="99px","99px"===this.fakeTextArea.style.lineHeight&&t.push("lineHeight"),this.fakeTextArea.style.lineHeight="";var e=this.getComputedStyle();if(e)for(var i=0,n=t.length;i<n;i++)this.fakeTextArea.style[t[i]]=e[t[i]]}},t.prototype.updateStyles=function(){n.isIE8&&(this.style.minHeight=""),this.updateMinMaxHeight(),this.updateClonedStyles(),this.updateBoxOffset(),n.isIE8&&(this.style.minHeight=this.minHeight-this.vBoxOffset+"px"),this.updateHeight();var t=this;return n.isIE8&&o(function(){t.updateHeight()}),this},a(t,"meshim_widget_widgets_AutoResizeTextArea"),t}()}).call(e,i(29),i(7),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:components":"meshim.widget.components"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(t){h.setDisplay(t?"":"none")}function e(){var t,e=0;for(var i in s)s.hasOwnProperty(i)&&(t=new r(h,null,null,null,{className:"meshim_widget_widgets_Emoticon "+i,title:i,value:s[i],tabIndex:0}),t.setAttribute("data-index",e),l.push(t),++e%_==0&&new a(h,null,null,null,{tagName:"br"}));h.on("click",function(t){var e=t.target.jx_wrapper;if(e!=h){for(;e.parentNode!==h;)e=e.parentNode;var i=e.getValue();i&&(o&&o.update(e.getValue()),n&&n.update(!1))}}),h.on("keydown",function(t){var e;switch(t.target.jx_wrapper,t.keyCode){case 13:e=t.target.jx_wrapper.getValue(),e&&(o&&o.update(t.target.jx_wrapper.getValue()),n&&n.update(!1));break;case 27:n&&n.update(!1);break;case 9:return;case 38:e=l[parseInt(t.target.jx_wrapper.getAttribute("data-index"),10)-_],e&&e.focus();break;case 40:e=l[parseInt(t.target.jx_wrapper.getAttribute("data-index"),10)+_],e&&e.focus();break;case 37:e=l[parseInt(t.target.jx_wrapper.getAttribute("data-index"),10)-1],e&&e.focus();break;case 39:e=l[parseInt(t.target.jx_wrapper.getAttribute("data-index"),10)+1],e&&e.focus();break;default:return}t.preventDefault()})}var n,o,r=i(240),a=i(17),s={ambivalent:":|",angry:":(",blush:":?",confused:":?",crazy:":?",crying:":?",frown:":?",gasp:":?"},_=6,l=[];h.setDataNode=function(e,i){n&&h.autounbind(n,"value",t),n=e,o=i,n&&h.autobind(n,"value",t)},e()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".meshim_widget_widgets_Emoticon":{"&:focus":{outline:"none"}}},a(t,"meshim_widget_widgets_EmoticonPicker"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(o.call(this,e,i,n,r,a),this.on("focus",function(){this.addClass("focus")}),void this.on("blur",function(){this.removeClass("focus")})):new t(e,i,n,r,a)}var o=i(17);return t.prototype=e(o.prototype),n(t,"meshim_widget_widgets_Emoticon"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(e,i,n,o,_){if(!(this instanceof t))return new t(e,i,n,o,_);_||(_={}),this.iframe_quirks=e.ownerDocument!=document,this.container=new r(e,null,null,null,{}),this.container.addClass("container");var l=this;this.container.destroy=function(){l.destroy()},this.container.empty=function(){l.empty()},this.container_middle=new r(this.container,null,null,null,{}),this.container_middle.addClass("container_middle"),r.call(this,this.container_middle,i,n,o,_),this.useDisplay=!0,s?(this.container.setStyle("position","relative"),this.container_middle.setStyle("position","absolute"),this.setStyle("position","relative"),(a||this.iframe_quirks)&&this.container_middle.setStyle("width","100%").setStyle("left",0)):(_.visible||this.container.setStyle("display","table"),this.container_middle.setStyle("display","table-cell").setStyle("width","100%"),this.setStyle("display","table")),this.container.setStyle("overflow","hidden").setStyle("width","100%").setStyle("height","100%"),_.hAlign||this.setHAlign(),_.vAlign||this.setVAlign()}var r=i(17),a=e.isQuirks,s=e.bugs.noBoxSizing,_=s?"block":"table";return t.prototype=n(r.prototype),t.prototype.show=function(){return this.container&&this.container.dom.style.display!=_&&(this.container.setVisible(_),this.fire("show")),this},t.prototype.hide=function(){return this.container&&"none"!=this.container.dom.style.display&&(this.container.setVisible("none"),this.fire("hide")),this},t.prototype.isVisible=function(){return this.container&&this.container.dom.style.display==_},t.prototype.setZIndex=function(t){return this.container&&this.container.setZIndex(t),this},t.prototype.destroy=function(){r.prototype.destroy.call(this),this.container&&(r.prototype.empty.call(this.container),
this.container.empty=null,r.prototype.destroy.call(this.container),this.container=this.container_middle=null)},t.prototype.getHAlign=function(){return this.hAlign},t.prototype.setHAlign=function(t){switch(t){case"left":a||this.iframe_quirks?this.container_middle.setStyle("text-align","left"):s?this.setStyle("margin-left","0").setStyle("margin-right","auto"):this.container_middle.setStyle("left","0%").setStyle("right",""),this.hAlign=t;break;case"right":a||this.iframe_quirks?this.container_middle.setStyle("text-align","right"):s?this.setStyle("margin-left","auto").setStyle("margin-right","0"):this.container_middle.setStyle("left","").setStyle("right","0%"),this.hAlign=t;break;default:a||this.iframe_quirks?this.container_middle.setStyle("text-align","center"):s&&this.container_middle.setStyle("left","").setStyle("right",""),this.setStyle("margin-left","auto").setStyle("margin-right","auto"),this.hAlign="center"}},t.prototype.getVAlign=function(){return this.vAlign},t.prototype.setVAlign=function(t){switch(t){case"top":s?(this.container_middle.setStyle("top","0%").setStyle("bottom",""),this.setStyle("top","")):this.container_middle.setStyle("vertical-align","top"),this.vAlign=t;break;case"bottom":s?(this.container_middle.setStyle("top","").setStyle("bottom","0%"),this.setStyle("top","")):this.container_middle.setStyle("vertical-align","bottom"),this.vAlign=t;break;default:s?(this.container_middle.setStyle("top","50%").setStyle("bottom",""),this.setStyle("top","-50%")):this.container_middle.setStyle("vertical-align","middle"),this.vAlign="middle"}return this},t.prototype.getAlign=function(){return this.hAlign+" "+this.vAlign},t.prototype.setAlign=function(t){"string"==typeof t&&(t=t.replace(/^\s*|\s*$/,"").replace(/\s+/g," ").split(" "),this.setHAlign(t[0]),this.setVAlign(t[1]))},o(t,"jx_ui_Frame"),t}()}).call(e,i(7),i(14),i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(){if(!e.isWebKit||e.isChrome)return!1;var t=document.activeElement;return t&&"select"===t.tagName.toLowerCase()}function n(){if(e.isIE&&document.documentMode&&!(e.isStrict&&document.documentMode>7))for(var t=document.getElementsByTagName("select"),i=t.length;i--;){var n=t[i].style,o=n.display;n.display="none",n.display=o}}function o(){n()}var r={testSafariFocusBug:t,ieQuirksModeFix:o};return i(r,"meshim_widget_utils_BrowserQuirks"),r}()}).call(e,i(7),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_ViewStack=i(81),e.__$$__meshim_widget_components_chatWindow_postChatForm_RatingForm=i(244),e.__$$__meshim_widget_components_chatWindow_postChatForm_CommentsForm=i(247),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_ViewStack,"vs","",[[e.__$$__meshim_widget_components_chatWindow_postChatForm_RatingForm,"","",[],{}],[e.__$$__meshim_widget_components_chatWindow_postChatForm_CommentsForm,"","",[],{}]],{id:"vs"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:postChatForm":"meshim.widget.components.chatWindow.postChatForm",titleBar:"hidePopout",actionBar:"none"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__vs");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){h.autobind(o,"value",function(t){return 0==t&&e?void o.update(1):1!=t||e?void p.setIndex(t||0):void o.update(0)}),h.autobind(r,"value",function(t){e=t})}var e,n=i(30),o=n.root.$("livechat").$("ui").$("chat_window").$("post_chat_form").$("stack_index$int"),r=n.root.$$("livechat.channel.rating$string");t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={},a(t,"meshim_widget_components_chatWindow_PostChatForm"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__meshim_widget_widgets_Header=i(179),e.__$$__meshim_widget_widgets_Body=i(177),e.__$$__meshim_widget_widgets_RatingBar=i(193),e.__$$__meshim_widget_widgets_motif_Chat=i(245),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__meshim_widget_widgets_Header,"header","",[],{id:"header"}],[e.__$$__meshim_widget_widgets_Body,"message","",[],{id:"message"}],[e.__$$__meshim_widget_widgets_RatingBar,"rating_bar","",[],{id:"rating_bar",addClass:"rating_bar",description:"true"}],[e.__$$__meshim_widget_widgets_motif_Chat,"","",[],{addClass:"chat_motif"}]],{addClass:"scrollable_frame"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:components":"meshim.widget.components","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__header"),g=n.get(a+"__message"),f=n.get(a+"__rating_bar");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){o.mobile(h),f.setDataNode(l),h.autobind(a,"value",function(){p.setText(n.get(a))}),h.autobind(s,"value",function(){g.setText(n.get(s))})}var e=i(30),n=i(91),o=i(89),r=e.root.$("livechat").$("settings").$("forms").$("post_chat_form"),a=r.$("header$string"),s=r.$("message$string"),_=e.root.$("livechat").$("channel"),l=_.$("rating$string");t()}();for(var $ in m)m.hasOwnProperty($)&&(h[$]=m[$]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_ChatWindowContent.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowContent,t.__jx__jcss={"**self":{textAlign:"center"},".rating_bar":{display:"inline-block",width:"150px"},".chat_motif":{position:"absolute","bottom, left":0},".scrollable_frame":{paddingBottom:"0 !important"},"&.mobile":{".chat_motif":{position:"relative"}}},a(t,"meshim_widget_components_chatWindow_postChatForm_RatingForm"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_Motif=i(246),t.exports=function(){function t(a,s,_,l,d){if(!(this instanceof t))return new t(a,s,_,l,d);s=s||n.generateID();var u=[e.__$$__meshim_widget_widgets_Motif,"","",[],{"xmlns:widgets":"meshim.widget.widgets",items:"hill, bubble b1, bubble b2, bubble b3, bubble b4, bubble b5"}],c=u[0].call(this,a,s,null,n.mangleIDs(s,u[3]),u[4]),h=c||this;n.set(s,h),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(t){var e=h.dom.getElementsByClassName(t)[0];e&&(e.style.OTransform="none",e.style.transform="none")}r.isOpera&&(t("b3"),t("b4"),t("b5")),r.isIE8&&h.setDisplay("none")}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=i,h.__jx__native=!1),h}var i;return t.prototype=a(e.__$$__meshim_widget_widgets_Motif.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Motif,t.__jx__jcss={"**self":{width:"100%",height:"50px",fontFamily:'zopim, "Segoe UI Symbol", "Arial Unicode MS", "Lucida Sans Unicode", sans-serif',"*display":"none"},"*":{position:"absolute"},".hill":{width:"95%",height:"20px",bottom:0,left:"2.5%",borderTopLeftRadius:"50% 100%",borderTopRightRadius:"50% 100%",background:"$$chatMotifHill"},".bubble":{top:0,color:"$$chatMotifBubble","&:before":{content:"'\\1f4ac'"}},".b1":{fontSize:"24px",top:"12px",left:"10%",opacity:.4},".b2":{fontSize:"16px",top:"16px",left:"21%"},".b3":{fontSize:"16px",top:"13px",right:"33.5%",opacity:.4},".b4":{fontSize:"16px",top:"14px",right:"26%"},".b5":{fontSize:"35px",top:0,right:"11%",opacity:.2},".b3, .b4, .b5":{transform:"scale(-1, 1)"}},s(t,"meshim_widget_widgets_motif_Chat"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(7),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){var t=i(17);h.setItems=function(e){e=e.split(",");for(var i=0,n=e.length;i<n;i++)new t(h,null,null,null,{className:e[i]})}}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative"}},a(t,"meshim_widget_widgets_Motif"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__jx_ui_Form=i(112),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__meshim_widget_widgets_Body=i(177),e.__$$__jx_ui_TextArea=i(165),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__meshim_widget_widgets_Submit=i(168),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(194),h=o(195),p=[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__jx_ui_Form,"form","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__meshim_widget_widgets_Body,"message","",[],{id:"message"}],[e.__$$__jx_ui_TextArea,"comments","",[],{id:"comments",addClass:"comments"}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__meshim_widget_widgets_Submit,"","",[],{value:c}],[e.__$$__meshim_widget_widgets_Button,"skip","",[h],{id:"skip",addClass:"secondary"}]],{addClass:"padding_bottom"}]],{id:"form"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:components":"meshim.widget.components","xmlns:widgets":"meshim.widget.widgets",absPaddingBottom:"bottomHeight"}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__form"),$=n.get(s+"__message"),b=n.get(s+"__comments"),w=n.get(s+"__skip");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var x=function(){function t(){b.setLabelElement($),f.autobind(d,"value",function(){e()}),f.autobind(_,"value",function(t){n=t,e()}),m.on("submit",function(t){t.preventDefault(),f.validate()&&(s.write({comments_user$string:b.getValue().trim()}),l.update("chat_panel"))}),w.on("click",function(){l.update("chat_panel")})}function e(){$.setText(r.get(d.$$(n+".message$string"))),b.setPlaceholder(r.get(d.$$(n+".placeholder$string")))}var n,o=i(30),r=i(91),a=o.root.$("livechat"),s=a.$("settings").$("forms").$("post_chat_form"),_=a.$("channel").$("rating$string"),l=o.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string"),d=s.$("comments_messages");t()}();for(var v in x)x.hasOwnProperty(v)&&(f[v]=x[v]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ChatWindowContent.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowContent,t.__jx__jcss={".comments":{width:"100%",height:"25%"}},s(t,"meshim_widget_components_chatWindow_postChatForm_CommentsForm"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_ViewStack=i(81),e.__$$__meshim_widget_components_chatWindow_cookieForm_Accept=i(249),e.__$$__meshim_widget_components_chatWindow_cookieForm_Decline=i(250),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_ViewStack,"vs","",[[e.__$$__meshim_widget_components_chatWindow_cookieForm_Accept,"","",[],{}],[e.__$$__meshim_widget_components_chatWindow_cookieForm_Decline,"","",[],{}]],{id:"vs"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:cookieForm":"meshim.widget.components.chatWindow.cookieForm",titleBar:"hidePopout",actionBar:""}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__vs");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){h.autobind(n,"value",function(t){p.setIndex(t===!1?0:1)})}var e=i(30),n=e.root.$("livechat").$("profile").$("allow_cookies$bool");t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={a:{color:"inherit"}},a(t,"meshim_widget_components_chatWindow_CookieForm"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__meshim_widget_widgets_Header=i(179),e.__$$__meshim_widget_widgets_Body=i(177),e.__$$__jx_ui_Localizer=i(115),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__jx_ui_Form=i(112),e.__$$__meshim_widget_widgets_Submit=i(168),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(185),h=o(186),p=o(187),g=o(188),f=[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__meshim_widget_widgets_Header,"","",[g],{}],[e.__$$__meshim_widget_widgets_Body,"","",[[e.__$$__jx_ui_Localizer,"","",[[e.__$$__jx_ui_Widget,"","",[],{tagName:"a",href:"https://www.zopim.com/privacy#cookie",target:"_blank"}]],{content:c}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[h],{addClass:"note"}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__jx_ui_Form,"form","",[[e.__$$__meshim_widget_widgets_Submit,"","",[],{addClass:"wide",value:p}]],{id:"form"}]],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",absPaddingBottom:"bottomHeight"}],m=f[0].call(this,a,s,null,n.mangleIDs(s,f[3]),f[4]),$=m||this;n.set(s,$);var b=n.get(s+"__form");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var w=function(){function t(){b.on("submit",function(t){t.preventDefault(),o.update("chat_panel"),n.setUserChoice(!0)})}var e=i(30),n=i(192),o=e.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string");t()}();for(var x in w)w.hasOwnProperty(x)&&($[x]=w[x]);return $.fire&&$.fire("init"),$.setStyle&&$.setStyle(l),$.setAttributes&&$.setAttributes(u),"function"==typeof $.addChildren?$.addChildren(d):n.addChildren($,d),$!==this&&($.__jx__constructor=_,$.__jx__native=!1),$}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ChatWindowContent.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowContent,t.__jx__jcss={},s(t,"meshim_widget_components_chatWindow_cookieForm_Accept"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__meshim_widget_widgets_Header=i(179),e.__$$__meshim_widget_widgets_Body=i(177),e.__$$__jx_ui_Localizer=i(115),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__jx_ui_Form=i(112),e.__$$__meshim_widget_widgets_Controls=i(251),e.__$$__meshim_widget_widgets_Submit=i(168),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(189),h=o(190),p=o(191),g=o(192),f=o(193),m=[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__meshim_widget_widgets_Header,"","",[f],{}],[e.__$$__meshim_widget_widgets_Body,"","",[[e.__$$__jx_ui_Localizer,"","",[[e.__$$__jx_ui_Widget,"","",[],{tagName:"a",href:"https://www.zopim.com/privacy#cookie",target:"_blank"}]],{content:c}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[h],{addClass:"note"}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__jx_ui_Form,"form","",[[e.__$$__meshim_widget_widgets_Controls,"","",[[e.__$$__meshim_widget_widgets_Submit,"","",[],{placement:"primary",addClass:"wide",value:p}],[e.__$$__meshim_widget_widgets_Button,"cancel","",[g],{placement:"secondary",id:"cancel",addClass:"wide secondary"}]],{}]],{id:"form"}]],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",absPaddingBottom:"bottomHeight"}],$=m[0].call(this,a,s,null,n.mangleIDs(s,m[3]),m[4]),b=$||this;n.set(s,b);var w=n.get(s+"__form"),x=n.get(s+"__cancel");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var v=function(){function t(){w.on("submit",function(t){t.preventDefault(),n.setUserChoice(!1)}),x.on("click",function(){o.update("chat_panel")})}var e=i(30),n=i(192),o=e.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string");t()}();for(var y in v)v.hasOwnProperty(y)&&(b[y]=v[y]);return b.fire&&b.fire("init"),b.setStyle&&b.setStyle(l),b.setAttributes&&b.setAttributes(u),"function"==typeof b.addChildren?b.addChildren(d):n.addChildren(b,d),b!==this&&(b.__jx__constructor=_,b.__jx__native=!1),b}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ChatWindowContent.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowContent,t.__jx__jcss={},s(t,"meshim_widget_components_chatWindow_cookieForm_Decline"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"primary","",[],{id:"primary",addClass:"button_container left",container:"primary"}],[e.__$$__jx_ui_Widget,"secondary","",[],{id:"secondary",addClass:"button_container right",container:"secondary"}],[e.__$$__jx_ui_Widget,"","",[],{addClass:"clear_both"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__primary"),f=n.get(s+"__secondary");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){e(),r&&r.onLanguage&&(r.onLanguage(e),p.onDestruction(function(){r.unLanguage(e)}))}function e(){var t=!!(r&&r.rtl&&r.rtl()),e=o!=t;g.addClass(e?"right":"left"),g.removeClass(e?"left":"right"),f.addClass(e?"left":"right"),f.removeClass(e?"right":"left")}var n=i(30),o=n.root.$("livechat").$("ui").$("mobile$bool").getValue()||!1;t()}();for(var $ in m)m.hasOwnProperty($)&&(p[$]=m[$]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".button_container":{width:"48%"},".left":{"float":"left"},".right":{"float":"right"},".clear_both":{clear:"both"}},s(t,"meshim_widget_widgets_Controls"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__jx_ui_Form=i(112),e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__meshim_widget_widgets_Body=i(177),e.__$$__meshim_widget_widgets_form_Profile=i(135),e.__$$__meshim_widget_widgets_Form=i(152),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__meshim_widget_widgets_Controls=i(251),e.__$$__meshim_widget_widgets_Submit=i(168),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(117),h=o(118),p=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__jx_ui_Form,"form","",[[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__meshim_widget_widgets_Body,"message","",[],{id:"message"}],[e.__$$__meshim_widget_widgets_form_Profile,"profile","",[],{id:"profile"}],[e.__$$__meshim_widget_widgets_Form,"form_generator","",[],{id:"form_generator"}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__meshim_widget_widgets_Controls,"","",[[e.__$$__meshim_widget_widgets_Submit,"","",[],{placement:"primary",addClass:"wide",value:c}],[e.__$$__meshim_widget_widgets_Button,"cancel","",[h],{placement:"secondary",id:"cancel",addClass:"secondary wide"}]],{}]],{}]],{absPaddingBottom:"bottomHeight"}]],{id:"form",noValidate:"true"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:components":"meshim.widget.components","xmlns:widgets":"meshim.widget.widgets","xmlns:chatWindow":"meshim.widget.components.chatWindow",titleBar:"hidePopout",actionBar:""}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__form"),$=n.get(s+"__message"),b=n.get(s+"__profile"),w=n.get(s+"__form_generator"),x=n.get(s+"__cancel");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var v=function(){function t(){w.setDataNode(a),b.setDataNode(a),f.autobind(r,"value",function(t){$.setText(t||"")}),f.autobind(_,"value",function(t){e=t,b.setDisplay(t?"":"none"),b.setDisabled(t)}),m.on("submit",function(t){t.preventDefault(),m.validate(!0)&&(b.submit(),w.submit(s,b),l.update("chat_panel"))}),x.on("click",function(){l.update("chat_panel")})}var e,n=i(30),o=n.root.$("livechat").$("settings").$("forms").$("card_form"),r=o.$("message$string"),a=o.$("form"),s=o.$("form_submitted"),_=o.$("profile_required$bool"),l=n.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string");t()}();for(var y in v)v.hasOwnProperty(y)&&(f[y]=v[y]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={},s(t,"meshim_widget_components_chatWindow_CardForm"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__jx_controls_List=i(205),e.__$$__meshim_widget_widgets_motif_Chat=i(245),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=o(119),p=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"scrollable_frame","",[[e.__$$__jx_controls_List,"list","",[],{id:"list",addClass:"list"}],[e.__$$__meshim_widget_widgets_motif_Chat,"chat_motif","",[],{id:"chat_motif",addClass:"chat_motif"}]],{id:"scrollable_frame"}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__meshim_widget_widgets_Button,"back","",[h],{id:"back",addClass:"back wide"}]],{addClass:"padding_bottom"}]],{absPaddingBottom:"bottomHeightBottomPadding"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:jx":"jx.controls","xmlns:widgets":"meshim.widget.widgets","xmlns:chatWindow":"meshim.widget.components.chatWindow",titleBar:"hidePopout",actionBar:"none"}],g=p[0].call(this,s,_,null,n.mangleIDs(_,p[3]),p[4]),f=g||this;n.set(_,f);var m=n.get(_+"__scrollable_frame"),$=n.get(_+"__list"),b=n.get(_+"__chat_motif"),w=n.get(_+"__back");t.__jx__jcss_generated||(r.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var x=function(){function t(){$.setRenderer(n),$.setDataNode(o),f.autobind(o,"keys",function(){a(function(){if(f.dom){var t=$.offsetHeight,e=m.getHeight(),i=b.getHeight();t<=e&&e-t>i?f.removeClass("many_agents"):f.addClass("many_agents")}})}),w.on("click",function(){r.update("chat_panel")})}var e=i(30),n=i(254),o=e.root.$("livechat").$("agents"),r=e.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string");t()}();for(var v in x)x.hasOwnProperty(v)&&(f[v]=x[v]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(d),f.setAttributes&&f.setAttributes(c),"function"==typeof f.addChildren?f.addChildren(u):n.addChildren(f,u),f!==this&&(f.__jx__constructor=l,f.__jx__native=!1),f}var l;return t.prototype=s(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={"**self":{},".list":{position:"relative","width, height":"100%"},".chat_motif":{position:"absolute","bottom, left":0,transition:"opacity 0.5s",opacity:1},"&.many_agents .chat_motif":{opacity:0}},_(t,"meshim_widget_components_chatWindow_AgentList"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_AgentProfileCard=i(185),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_AgentProfileCard,"","",[],{xmlns:"meshim.widget.widgets",addClass:"profile_card"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_AgentProfileCard.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_AgentProfileCard,t.__jx__jcss={"**self":{marginBottom:"10px",".avatar_cell":{verticalAlign:"top",width:"32px",".profile_avatar":{"width, height":"32px",bottom:"auto"}},".profile_table .content_cell":{padding:"0 10px",verticalAlign:"middle"}}},a(t,"meshim_widget_components_chatWindow_agentList_AgentProfileCard"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Header=i(179),e.__$$__meshim_widget_widgets_Body=i(177),e.__$$__meshim_widget_widgets_Button=i(151),e.__$$__meshim_widget_widgets_Bottom=i(166),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(120),h=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Header,"","",[],{text:"Zendesk Chat"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Copyright © 2016 Zendesk, Inc. All Rights Reserved."}],[e.__$$__meshim_widget_widgets_Button,"back_top","",[c],{id:"back_top",addClass:"back_top wide"}],[e.__$$__meshim_widget_widgets_Header,"","",[],{text:"Open Source Licenses"}]],{}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Header,"","",[],{text:"chroma.js - JavaScript library for color conversions"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Copyright © 2011-2013, Gregor Aisch. All rights reserved."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"3. The name Gregor Aisch may not be used to endorse or promote products derived from this software without specific prior written permission."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.'}]],{"class":"break_top"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Header,"","",[],{text:"store.js"
}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Copyright © 2010-2013 Marcus Westin"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:'Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:'}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.'}]],{"class":"break_top"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Header,"","",[],{text:"d3-timer, d3-interpolate"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Copyright 2010-2015 Mike Bostock"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"All rights reserved."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"* Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.'}]],{"class":"break_top"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Header,"","",[],{text:"d3-ease"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Copyright 2010-2015 Mike Bostock"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Copyright 2001 Robert Penner"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"All rights reserved."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:"}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:"* Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission."}],[e.__$$__meshim_widget_widgets_Body,"","",[],{text:'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.'}]],{"class":"break_top"}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__meshim_widget_widgets_Button,"back","",[c],{id:"back",addClass:"back wide"}]],{}]],{absPaddingBottom:"bottomHeight"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",titleBar:"hidePopout",actionBar:""}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__back_top"),m=n.get(s+"__back");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){n.mobile(g),m.on("click",function(){o.update("chat_panel")}),f.on("click",function(){o.update("chat_panel")})}var e=i(30),n=i(89),o=e.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string");t()}();for(var b in $)$.hasOwnProperty(b)&&(g[b]=$[b]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={".break_top":{padding:"10px 0",borderTop:"1px solid",borderColor:"$$inputColor",fontSize:"$$fontSizeXS",".meshim_widget_widgets_Body":{color:"$$inputColor",marginBottom:"$$marginS"}},".back_top":{display:"none","&.mobile":{marginBottom:"18px",display:"block"}}},s(t,"meshim_widget_components_chatWindow_AboutPanel"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ChatWindowPanel=i(84),e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast=i(126),e.__$$__meshim_widget_widgets_ChatWindowContent=i(132),e.__$$__meshim_widget_widgets_ScrollableFrame=i(134),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_RatingBar=i(193),e.__$$__meshim_widget_widgets_TextArea=i(164),e.__$$__meshim_widget_widgets_Bottom=i(166),e.__$$__meshim_widget_widgets_Controls=i(251),e.__$$__meshim_widget_widgets_ConnAwareSubmit=i(167),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(121),h=o(122),p=o(123),g=o(124),f=o(125),m=[e.__$$__meshim_widget_widgets_ChatWindowPanel,"","",[[e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast,"","",[],{}],[e.__$$__meshim_widget_widgets_ChatWindowContent,"","",[[e.__$$__meshim_widget_widgets_ScrollableFrame,"","",[[e.__$$__jx_ui_Widget,"rating_desc","",[c],{id:"rating_desc",addClass:"rating_desc"}],[e.__$$__meshim_widget_widgets_RatingBar,"rating_bar","",[],{id:"rating_bar",addClass:"rating_bar"}],[e.__$$__jx_ui_Widget,"","",[h],{addClass:"comment_intro"}],[e.__$$__meshim_widget_widgets_TextArea,"comment_area","",[],{id:"comment_area",addClass:"comment_area",rows:"4",placeholder:p}]],{}],[e.__$$__meshim_widget_widgets_Bottom,"","",[[e.__$$__meshim_widget_widgets_Controls,"","",[[e.__$$__meshim_widget_widgets_ConnAwareSubmit,"send","",[],{placement:"primary",id:"send",addClass:"send wide",value:g}],[e.__$$__meshim_widget_widgets_Button,"cancel","",[f],{placement:"secondary",id:"cancel",addClass:"cancel secondary wide"}]],{}]],{}]],{absPaddingBottom:"bottomHeight"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",titleBar:"hidePopout",actionBar:""}],$=m[0].call(this,a,s,null,n.mangleIDs(s,m[3]),m[4]),b=$||this;n.set(s,b);var w=n.get(s+"__rating_desc"),x=n.get(s+"__rating_bar"),v=n.get(s+"__comment_area"),y=n.get(s+"__send"),j=n.get(s+"__cancel");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var C=function(){function t(){b.autobind(S,"value",e),x.setDataNode($),x.setSize("big"),y.on("click",s),j.on("click",function(){_(!0)}),b.on("show",l),b.autobind($,"value",n),x.on("change",r)}function e(t){d=t,j.setText(t?g.END_CHAT:g.DURING_CHAT)}function n(t){t?a(t):w.setText(p.NOT_RATED)}function r(){var t=x.getValue();t?a(t):w.setText(p.UNRATED)}function a(t){w.setText("good"==t?p.RATED_GOOD:p.RATED_BAD)}function s(){var t,e={good:"Good",bad:"Bad"},i="rating_panel"+(d?"_end_chat":"_during_chat"),n=x.getValue(),o=$&&$.getValue();n!==o&&($&&h.writeNode($,n),c.trackEvent("Chat_Rating_"+(e[n]||"Removed"),i),t=!0);var r=v.getValue().trim();r&&(m.write({comment$string:r}),c.trackEvent("Chat_Comment_Submitted",i),t=!0),_(!t)}function _(t){A.update("chat_panel"),window.setTimeout(function(){d&&(u.livechat.endChat(),S.update(null))},t?0:2e3)}function l(){x.setValue($.getValue()),n($.getValue()),v.setValue(C.getValue()||"").focus()}var d,u=i(30),c=i(169),h=i(38),p={NOT_RATED:o(126),RATED_GOOD:o(127),RATED_BAD:o(128),UNRATED:o(129)},g={DURING_CHAT:o(130),END_CHAT:o(131)},f=u.root.$("livechat"),m=f.$("channel"),$=m.$("rating$string"),C=m.$("comment$string"),A=f.$("ui").$("chat_window").$("main_stack_name$string"),S=f.$("ui").$("chat_window").$("rating_panel").$("end_chat$bool");t()}();for(var A in C)C.hasOwnProperty(A)&&(b[A]=C[A]);return b.fire&&b.fire("init"),b.setStyle&&b.setStyle(l),b.setAttributes&&b.setAttributes(u),"function"==typeof b.addChildren?b.addChildren(d):n.addChildren(b,d),b!==this&&(b.__jx__constructor=_,b.__jx__native=!1),b}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ChatWindowPanel.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ChatWindowPanel,t.__jx__jcss={".rating_desc":{textAlign:"center",marginBottom:"15px"},".rating_bar":{marginBottom:"25px"},".comment_intro":{fontWeight:"700"},".comment_area":{overflow:"auto",marginTop:"15px"}},s(t,"meshim_widget_components_chatWindow_RatingPanel"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ViewStack=i(81),e.__$$__meshim_widget_components_chatWindow_SettingsMenu=i(258),e.__$$__meshim_widget_components_chatWindow_ProfileMenu=i(278),e.__$$__meshim_widget_components_chatWindow_EndChatMenu=i(284),e.__$$__meshim_widget_components_chatWindow_EmailTranscriptMenu=i(285),e.__$$__meshim_widget_components_chatWindow_EmailTranscriptNotification=i(286),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_ViewStack,"","",[[e.__$$__meshim_widget_components_chatWindow_SettingsMenu,"","",[],{name:"settings_menu"}],[e.__$$__meshim_widget_components_chatWindow_ProfileMenu,"","",[],{name:"profile_menu"}],[e.__$$__meshim_widget_components_chatWindow_EndChatMenu,"","",[],{name:"end_chat_menu"}],[e.__$$__meshim_widget_components_chatWindow_EmailTranscriptMenu,"","",[],{name:"email_transcript_menu"}],[e.__$$__meshim_widget_components_chatWindow_EmailTranscriptNotification,"","",[],{name:"email_transcript_notification"}]],{"xmlns:ui":"jx.ui","xmlns:chatWindow":"meshim.widget.components.chatWindow","xmlns:widgets":"meshim.widget.widgets",onChildHide:"-1"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){var t=i(89);t.popout(h)}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_ViewStack.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ViewStack,t.__jx__jcss={"**self":{overflow:"visible"},"&.popout":{position:"absolute"},"&.mobile":{}},a(t,"meshim_widget_components_chatWindow_MenuStack"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_Menu=i(259),e.__$$__meshim_widget_widgets_menu_Section=i(260),e.__$$__meshim_widget_components_chatWindow_settingsMenu_Profile=i(261),e.__$$__meshim_widget_components_chatWindow_settingsMenu_Sound=i(264),e.__$$__meshim_widget_components_chatWindow_settingsMenu_Cookies=i(271),e.__$$__meshim_widget_components_chatWindow_settingsMenu_About=i(272),e.__$$__meshim_widget_components_chatWindow_settingsMenu_SendFile=i(273),e.__$$__meshim_widget_components_chatWindow_settingsMenu_EmailTranscript=i(276),e.__$$__meshim_widget_components_chatWindow_settingsMenu_EndChat=i(277),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_Menu,"","",[[e.__$$__meshim_widget_widgets_menu_Section,"","",[[e.__$$__meshim_widget_components_chatWindow_settingsMenu_Profile,"","",[],{}],[e.__$$__meshim_widget_components_chatWindow_settingsMenu_Sound,"","",[],{}],[e.__$$__meshim_widget_components_chatWindow_settingsMenu_Cookies,"","",[],{}],[e.__$$__meshim_widget_components_chatWindow_settingsMenu_About,"","",[],{}]],{}],[e.__$$__meshim_widget_widgets_menu_Section,"chat_actions","",[[e.__$$__meshim_widget_components_chatWindow_settingsMenu_SendFile,"send_file","",[],{id:"send_file"}],[e.__$$__meshim_widget_components_chatWindow_settingsMenu_EmailTranscript,"","",[],{}],[e.__$$__meshim_widget_components_chatWindow_settingsMenu_EndChat,"end_chat","",[],{id:"end_chat"}]],{id:"chat_actions"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu","xmlns:settingsMenu":"meshim.widget.components.chatWindow.settingsMenu"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__chat_actions"),g=n.get(a+"__send_file"),f=n.get(a+"__end_chat");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){p.setDisplay("none"),h.autobind(o,"value",function(t){g.setDisplay(t?"":"none"),f.setDisplay(t?"":"none"),t&&p.setDisplay("")})}var e=i(30),n=e.root.$("livechat"),o=n.$("channel").$("chatting$bool");t()}();for(var $ in m)m.hasOwnProperty($)&&(h[$]=m[$]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_Menu.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Menu,t.__jx__jcss={},a(t,"meshim_widget_components_chatWindow_SettingsMenu"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){e.mobile(h),e.tablet(h),e.rtl(h)}var e=i(89);t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"absolute",minWidth:"180px",maxWidth:"360px",zIndex:"100",bottom:"$$actionBarHeight",marginBottom:"-2px","left, right":"10px",color:"$$menuColor",background:"$$menuBg",borderWidth:"$$menuBorderWidth",borderStyle:"$$menuBorderStyle",borderColor:"$$menuBorderColor",borderRadius:"$$menuRadius",boxShadow:"$$menuShadow"},"&.rtl":{"left, right":"10px"},"&.mobile":{left:"0",top:"$$titleBarHeight",bottom:"auto",width:"100%",maxWidth:"$$mobileMaxWidth",borderTop:"0 none"},"&.mobile.rtl":{right:0}},a(t,"meshim_widget_widgets_Menu"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){e.mobile(h)}var e=i(89);t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{padding:"5px 0",borderTopWidth:"$$menuBorderWidth",borderTopStyle:"$$menuBorderStyle",borderTopColor:"$$menuBorderColor","*borderTop":"none","*zoom":1,"*position":"relative"},"&:first-child":{borderTop:"none"},"&.flow":{padding:"0",margin:"10px"},"&.mobile":{padding:"0",borderTop:"0 none"},"&.border_top":{borderTopWidth:"$$menuBorderWidth",borderTopStyle:"$$menuBorderStyle",borderTopColor:"$$menuBorderColor"}},a(t,"meshim_widget_widgets_menu_Section"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_menu_Item=i(262),e.__$$__meshim_widget_widgets_menu_ButtonLabel=i(263),e.__$$__jx_ui_Label=i(95),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(166),h=[e.__$$__meshim_widget_widgets_menu_Item,"","",[[e.__$$__meshim_widget_widgets_menu_ButtonLabel,"logged_out","",[c],{id:"logged_out"}],[e.__$$__jx_ui_Label,"name","",[],{id:"name",addClass:"logged_in_name"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__logged_out"),m=n.get(s+"__name");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){g.on("click",function(t){t.stopPropagation(),p.update("profile_menu")}),g.autobind(c,"value",function(t){n=t,e()}),g.autobind(h,"value",function(t){r=t||"",e()}),g.autobind($,"value",function(t){g.setDisplay(t?"none":"")}),o&&o.onLanguage&&o.onLanguage(e)}function e(){n?(r&&!l.isDefaultName(r)?m.setText(a.replace("<name>",r)):m.setText(s),f.setDisplay("none"),m.setDisplay("")):(f.setDisplay(""),m.setDisplay("none"))}var n,r,a=o(167),s=o(168),_=i(30),l=i(38),d=_.root.$("livechat"),u=d.$("profile"),c=u.$("logged_in$bool"),h=u.$("display_name$string"),p=d.$("ui").$("chat_window").$("menu_stack_name$string"),$=d.$("settings").$("login").$("restrict_profile$bool");t()}();for(var b in $)$.hasOwnProperty(b)&&(g[b]=$[b]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_menu_Item.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_menu_Item,t.__jx__jcss={"**self":{display:"none"},"&.mobile":{display:"block"}},s(t,"meshim_widget_components_chatWindow_settingsMenu_Profile"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",type:"button"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){e.mobile(h),e.rtl(h)}var e=i(89);t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{background:"transparent",border:"none",position:"relative",width:"100%",overflow:"hidden",cursor:"pointer","*zoom":1,textAlign:"left",padding:"$$menuItemPadding","*":{cursor:"pointer"}},"&.rtl":{textAlign:"right"},"&:hover":{background:"$$menuItemHoverBg"},"&.mobile":{borderTopWidth:"$$menuBorderWidth",borderTopStyle:"$$menuBorderStyle",borderTopColor:"$$menuBorderColor"}},a(t,"meshim_widget_widgets_menu_Item"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Button=i(110),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Button,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Button.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Button,t.__jx__jcss={"**self":{background:"transparent",border:"0px none",color:"$$menuColor",textAlign:"inherit"}},a(t,"meshim_widget_widgets_menu_ButtonLabel"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_menu_Item=i(262),e.__$$__meshim_widget_widgets_menu_IconFont=i(265),e.__$$__meshim_widget_widgets_menu_ButtonLabel=i(263),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(169),h=[e.__$$__meshim_widget_widgets_menu_Item,"","",[[e.__$$__meshim_widget_widgets_menu_IconFont,"icon_sound","",[],{id:"icon_sound"}],[e.__$$__meshim_widget_widgets_menu_ButtonLabel,"","",[c],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__icon_sound");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){g.on("click",function(){r.update(!n.isSoundEnabled())}),g.autobind(r,"value",function(){f.setIcon(n.isSoundEnabled()?"sound_on":"sound_off",!0)})}var e=i(30),n=i(266),o=e.root.$("livechat").$("profile"),r=o.$("notification").$("sound$bool");t()}();for(var $ in m)m.hasOwnProperty($)&&(g[$]=m[$]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_menu_Item.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_menu_Item,t.__jx__jcss={"**self":{},"&.mobile":{display:"none"}},s(t,"meshim_widget_components_chatWindow_settingsMenu_Sound"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_IconFont,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){e.rtl(p)}var e=i(89),n={"true":"tick","false":"cross"},o=p.setIcon;p.setIcon=function(t,e){return e||(t=r(t).toString()),o.call(p,n[t]||t)},t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_IconFont.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_IconFont,t.__jx__jcss={"**self":{"float":"right",lineHeight:1,position:"relative",top:"3px",verticalAlign:"middle","&.rtl":{"float":"left"}},"&.left":{"float":"left","&.rtl":{"float":"right"}}},s(t,"meshim_widget_widgets_menu_IconFont"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(16),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){a=p.root.$$("livechat.settings.sound.disabled$bool"),s=p.root.$$("livechat.profile.notification.sound$bool"),_=p.root.$$("connection.reattached_timestamp$int"),d=p.root.$$("livechat.ui.sounds"),c=p.root.$("livechat").$("ui").$("mobile$bool"),c.getValue()&&s.update(!1),e.runAfterFirstChildReady(function(){u||(u=new g(f),d.bindValue(o))})}function o(t){if(t&&r()&&(l=_.getValue()||0,0!==l))for(var e in t)if(t.hasOwnProperty(e)){if(!t[e]||t[e]<l)continue;e=e.substring(0,e.indexOf("$")),u.hasSound(e)||u.create(e,m[e]),u.play(e,1)}}function r(){var t=a.getValue(),e=s.getValue();return"boolean"==typeof e?e:"boolean"!=typeof t||!t}var a,s,_,l,d,u,c,h=i(32),p=i(30),g=i(267),f=h.SOUNDS_URL,m={new_message:"triad_gbd"},$={init:t,isSoundEnabled:r,play:function(){}};return n($,"meshim_widget_controllers_SoundController"),$}()}).call(e,i(6),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){var e;return this.url=t,e=new r(t),e.dom?e:(e=new a(t),e.dom?e:(e=new s(t),e.dom?e:void 0))}function n(){return this}function o(t){/\/$/.test(t)||(t+="/"),this.repo_url=t||_,this.repo={}}var r=i(268),a=i(269),s=i(270);t.prototype.load=t.prototype.play=t.prototype.stop=t.prototype.setVolume=t.prototype.setLoop=n;var _="dashboard/sounds/";return o.prototype.create=function(e,i,n,o){var r=new t(this.repo_url+i);return n&&r.setVolume(n),o&&r.setLoop(o),r.title=i,this.repo[e]=r,this},o.prototype.getSound=function(t){var e=this.repo[t];if(e)return e;throw new window.Error("you have not created "+t+" sound yet")},o.prototype.hasSound=function(t){try{return this.getSound(t),!0}catch(e){return!1}},o.prototype.setSrc=function(t,e){return this.getSound(t).load(_+e),this},o.prototype.getTitle=function(t){this.getSound(t).title},o.prototype.play=function(t,e){return this.getSound(t).play(parseInt(e,10)||0),this},o.prototype.stop=function(t){return this.getSound(t).stop(),this},o.prototype.setVolume=function(t,e){return this.getSound(t).setVolume(e),this},o.prototype.setLoop=function(t,e){return this.getSound(t).setLoop(e),this},o.prototype.getLoop=function(t){this.getSound(t).loop},e(o,"meshim_common_Sounds"),o}()}).call(e,i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(t){var e=document.createElement("audio"),i=this,n=function(){o.call(i)};if(e.canPlayType){var r=/^(probably|maybe)$/i;try{if(e.canPlayType("audio/mpeg").match(r))this.type="mp3";else if(e.canPlayType('audio/ogg; codecs="vorbis"').match(r))this.type="ogg";else{if(!e.canPlayType("audio/wav").match(r))return;this.type="wav"}}catch(a){return}e.setAttribute("autobuffer","true"),e.setAttribute("preload",""),this.dom=e,this.remainingLoop=1,this.loop=1,this.play_count=0,this.load(t),this.dom.addEventListener("ended",n,!1)}}function o(){this.play_count++,e.isSafari&&this.play_count>=50&&(this.play_count=0,this.dom.load()),this.remainingLoop>0&&(this.remainingLoop--,r.call(this),this.dom.play())}function r(){this.dom&&this.dom.currentTime&&(this.dom.currentTime=0)}var a=10;return t.prototype.load=function(t){this.dom.setAttribute("src",t+"."+this.type),this.remainingLoop=0},t.prototype.play=function(t){this.remainingLoop+=t?t:this.loop,o.call(this)},t.prototype.stop=function(){this.dom.pause(),r.call(this)},t.prototype.setVolume=function(t){t=parseInt(t,10),isNaN(t)||(t>a&&(t=a),t<0&&(t=0),this.dom.volume=t/a)},t.prototype.setLoop=function(t){t=parseInt(t,10),this.loop=i(t)?t:1},n(t,"meshim_common_sounds_AudioTag"),t}()}).call(e,i(7),i(23),i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(t){var n,o=+new Date+Math.round(1e4*Math.random()),r=t.substring(0,t.lastIndexOf("/")+1)+"JSMP3.swf";if(e.isIE){try{new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(a){return}n=document.createElement("div"),document.body.insertBefore(n,document.body.firstChild);var s='<object id="__zopimSoundPlayer'+o+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1" height="1"><param name="movie" value="'+r+'" /><param name="allowScriptAccess" value="always" /></object>';n.innerHTML=s,n=n.firstChild;var _=document.title.split("#")[0];i(function(){document.title!==_&&(document.title=_)})}else{if(!navigator.mimeTypes["application/x-shockwave-flash"])return;n=document.createElement("embed"),n.id="__zopimSoundPlayer"+o,n.src="dashboard/sounds/JSMP3.swf",n.setAttribute("allowScriptAccess","always"),document.body.insertBefore(n,document.body.firstChild)}n.style.left=n.style.top="-9999px",n.style.position="absolute",this.dom=n,this.loop=1,this.load(t)}var o=10;return t.prototype.load=function(t){if(this.dom.loadSound)this.dom.loadSound(t+".mp3"),this.loaded=!0;else{var e=this;setTimeout(function(){e.load(t)},1e3)}},t.prototype.play=function(t){if(this.loaded)try{this.dom.playSound(t||this.loop);
}catch(e){}else{var i=this;setTimeout(function(){i.play(t)},1e3)}},t.prototype.stop=function(){if(this.loaded)try{this.dom.stopSound()}catch(t){}},t.prototype.setVolume=function(t){if(t=parseInt(t,10),!isNaN(t))if(t>o&&(t=o),t<0&&(t=0),this.loaded)try{this.dom.setVolume(t/o)}catch(e){}else{var i=this;setTimeout(function(){i.setVolume(t)},500)}},t.prototype.setLoop=function(t){if(this.loop=t,this.loaded)try{this.dom.setLoop(t)}catch(e){}else{var i=this;setTimeout(function(){i.setLoop(t)},500)}},n(t,"meshim_common_sounds_FlashSound"),t}()}).call(e,i(7),i(12),i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(t){if(e.isIE&&!(e.isIE>=9)){var i=document.createElement("bgsound");document.body?document.body.insertBefore(i,document.body.firstChild):document.documentElement.appendChild(i),this.dom=i,this.loop=0,this.load(t)}}return t.prototype.load=function(t){this.src=t+".wav"},t.prototype.play=function(t){this.dom.src=this.src,this.dom.loop=t?t:this.loop},t.prototype.stop=function(){this.dom.src=""},t.prototype.setVolume=function(){},t.prototype.setLoop=function(t){this.loop=parseInt(t,10)},i(t,"meshim_common_sounds_BGSoundTag"),t}()}).call(e,i(7),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_menu_Item=i(262),e.__$$__meshim_widget_widgets_menu_IconFont=i(265),e.__$$__jx_ui_Label=i(95),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(164),h=[e.__$$__meshim_widget_widgets_menu_Item,"","",[[e.__$$__meshim_widget_widgets_menu_IconFont,"icon","",[],{id:"icon"}],[e.__$$__jx_ui_Label,"","",[c],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__icon");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){g.on("click",function(){a.getValue()&&_.update("cookie_form")}),g.autobind(a,"value",function(t){f.setIcon(t),e()}),g.autobind(s,"value",e)}function e(){s.getValue()&&a.getValue()?g.setDisplay(""):g.setDisplay("none")}var n=i(30),o=n.root.$("livechat"),r=o.$("profile"),a=r.$("allow_cookies$bool"),s=o.$("settings").$("cookie_law").$("enabled$bool"),_=o.$("ui").$("chat_window").$("main_stack_name$string");t()}();for(var $ in m)m.hasOwnProperty($)&&(g[$]=m[$]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_menu_Item.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_menu_Item,t.__jx__jcss={"**self":{}},s(t,"meshim_widget_components_chatWindow_settingsMenu_Cookies"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_menu_Item=i(262),e.__$$__meshim_widget_widgets_menu_ButtonLabel=i(263),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(163),h=[e.__$$__meshim_widget_widgets_menu_Item,"","",[[e.__$$__meshim_widget_widgets_menu_ButtonLabel,"","",[c],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g),t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){g.on("click",function(){n.update("about_panel")})}var e=i(30),n=e.root.$("livechat").$("ui").$("chat_window").$("main_stack_name$string");t()}();for(var m in f)f.hasOwnProperty(m)&&(g[m]=f[m]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_menu_Item.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_menu_Item,t.__jx__jcss={},s(t,"meshim_widget_components_chatWindow_settingsMenu_About"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_menu_Item=i(262),e.__$$__jx_ui_Label=i(95),e.__$$__meshim_widget_widgets_SendFile=i(274),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(165),h=[e.__$$__meshim_widget_widgets_menu_Item,"","",[[e.__$$__jx_ui_Label,"","",[c],{}],[e.__$$__meshim_widget_widgets_SendFile,"send_file","",[],{id:"send_file",addClass:"send_file"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g);var f=n.get(s+"__send_file");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){f.on("before_submit",function(){r.update("")}),g.autobind(a,"value",e),g.autobind(_,"value",e),g.autobind(l,"value",e)}function e(){var t=a.getValue(),e=_.getValue(),i=l.getValue("color_customization_enabled$int")||l.getValue("widget_customization_enabled$int"),n=!0;i?t&&e===!1&&(n=!1):n=!1,g.setDisplay(n?"":"none")}var n=i(30),o=n.root.$("livechat"),r=o.$("ui").$("chat_window").$("menu_stack_name$string"),a=o.$("features").$("file_sending_settings$bool"),s=o.$("settings").$("file_sending"),_=s.$("enabled$bool"),l=o.$("settings").$("package");t()}();for(var $ in m)m.hasOwnProperty($)&&(g[$]=m[$]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_menu_Item.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_menu_Item,t.__jx__jcss={".send_file":{position:"absolute","bottom, right":0}},s(t,"meshim_widget_components_chatWindow_settingsMenu_SendFile"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_FileUploader=i(275),e.__$$__jx_ui_Input=i(111),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_FileUploader,"file_form","",[[e.__$$__jx_ui_Input,"file_input","",[],{id:"file_input",name:"file[]",type:"file",multiple:"true",addClass:"file_input"}]],{id:"file_form"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__file_form"),g=n.get(a+"__file_input");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){g.on("change",function(){_||(_=!0,c.reconnectIfServerRetired(function(){_=!1,e()}))}),h.autobind(v,"value",o),h.autobind(j,"value",o),h.autobind(I,"value",o),h.autobind(C,"value",r)}function e(){if(s&&g.getValue()){var t=[],e=[],i=0,o=g.dom.files,r=c.getHost();if(r){if(o){for(var _=0,$=o.length;_<$;_++){if(!d.isValidType(o[_].name,a))return S.update({error$string:"type"}),void g.setValue("");t.push(o[_].name),e.push(o[_].type),i+=o[_].size||0}if(i>l.FILE_UPLOAD_MAX)return S.update({error$string:"size"}),void g.setValue("");t=t.join(", "),e=e.join(", ")}else{if(o=g.dom.value||"",!o)return;if(t=o.substr(o.lastIndexOf("\\")+1),e=t.substr(t.lastIndexOf(".")+1),!d.isValidType(t,a))return S.update({error$string:"type"}),void g.setValue("")}var b=f.livechat.sendFile({file_name:t,file_type:e,file_size:i}),v={ts:b,mid:w.getValue(),uid:x.getValue()},y="https://"+r+l.FILE_UPLOAD_PATH+"?"+u.buildQuery(v);p.setPath(y),h.fire("before_submit"),o&&"FormData"in window?n(r,b,o):p.submit(),m.increment("file_upload"),g.setValue("")}}}function n(t,e,i){for(var n=new window.XMLHttpRequest,o=new window.FormData,r={ts:e},a="https://"+t+l.FILE_UPLOAD_PATH+"?"+u.buildQuery(r),s=0,_=i.length;s<_;s++)o.append("file_"+i[s].name,i[s]);n.open("POST",a,!0),n.setRequestHeader("X-Zopim-MID",w.getValue()),n.setRequestHeader("X-Zopim-UID",x.getValue()),n.send(o)}function o(){var t=v.getValue(),e=j.getValue(),i=I.getValue("color_customization_enabled$int")||I.getValue("widget_customization_enabled$int");s=!!i&&(!t||e!==!1)}function r(){var t=C.getValue()||"";a=t.trim().replace(/\s*,\s*/g,",").split(",")}var a,s,_,l=i(32),d=i(40),u=i(27),c=i(48),f=i(30),m=i(49),$=f.root,b=$.$("livechat"),w=b.$("profile").$("mid$string"),x=b.$("profile").$("uid$string"),v=b.$("features").$("file_sending_settings$bool"),y=b.$("settings").$("file_sending"),j=y.$("enabled$bool"),C=y.$("allowed_extensions$string"),A=b.$("ui").$("chat_window"),S=A.$("chat_panel").$("file_toast"),I=b.$("settings").$("package");t()}();for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".file_input":{fontSize:"1000px",outline:"none",opacity:"0"}},a(t,"meshim_widget_widgets_SendFile"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(e,i,n,o,a){return this instanceof t?(a||(a={}),r.call(this,e,i,n,o,a),this.setAttribute("method","post"),void this.setAttribute("enctype","multipart/form-data")):new t(e,i,n,o,a)}var r=i(112);return t.prototype=e(r.prototype),t.prototype.submit=function(){if(this.path){this.setAttribute("action",this.path);var t,e="_widget_fileuploader_"+ +new Date;n.bugs.noBoxSizing?t=this.doc.createElement('<iframe name="'+e+'">'):(t=this.doc.createElement("iframe"),t.setAttribute("name",e)),t.setAttribute("id",e),t.style.display="none",this.dom.target=e,this.appendChild(t),r.prototype.submit.call(this)}},t.prototype.setPath=function(t){return this.path=t,this},o(t,"meshim_widget_widgets_FileUploader"),t}()}).call(e,i(14),i(7),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_menu_Item=i(262),e.__$$__meshim_widget_widgets_menu_ButtonLabel=i(263),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(181),h=[e.__$$__meshim_widget_widgets_menu_Item,"","",[[e.__$$__meshim_widget_widgets_menu_ButtonLabel,"","",[c],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g),t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){g.on("click",function(){n.update("email_transcript_menu")})}var e=i(30),n=e.root.$("livechat").$("ui").$("chat_window").$("menu_stack_name$string");t()}();for(var m in f)f.hasOwnProperty(m)&&(g[m]=f[m]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_menu_Item.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_menu_Item,t.__jx__jcss={"**self":{}},s(t,"meshim_widget_components_chatWindow_settingsMenu_EmailTranscript"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_menu_Item=i(262),e.__$$__meshim_widget_widgets_Button=i(151),e.__$$__jx_ui_Label=i(95),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(182),h=[e.__$$__meshim_widget_widgets_menu_Item,"","",[[e.__$$__meshim_widget_widgets_Button,"","",[c],{addClass:"end_chat wide short"}],[e.__$$__jx_ui_Label,"","",[c],{addClass:"end_chat_mobile"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],p=h[0].call(this,a,s,null,n.mangleIDs(s,h[3]),h[4]),g=p||this;n.set(s,g),t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){g.on("click",function(){r.update("end_chat_menu")}),g.autobind(o,"value",function(t){g.setDisplay(t?"":"none")}),g.autobind(a,"value",function(t){var e=!!t;g.setDisabled(e)})}var e=i(30),n=e.root.$("livechat"),o=n.$("settings").$("end_chat_menu").$("enabled$bool"),r=n.$("ui").$("chat_window").$("menu_stack_name$string"),a=e.root.$("connection").$("message$string");t()}();for(var m in f)f.hasOwnProperty(m)&&(g[m]=f[m]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(l),g.setAttributes&&g.setAttributes(u),"function"==typeof g.addChildren?g.addChildren(d):n.addChildren(g,d),g!==this&&(g.__jx__constructor=_,g.__jx__native=!1),g}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_menu_Item.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_menu_Item,t.__jx__jcss={"**self":{cursor:"default","&:hover":{background:"transparent !important"},".end_chat":{display:"block",textAlign:"center",cursor:"pointer","&.disabled":{cursor:"default"}},".end_chat_mobile":{display:"none"}},"&.mobile":{".end_chat":{display:"none"},".end_chat_mobile":{display:"block"}}},s(t,"meshim_widget_components_chatWindow_settingsMenu_EndChat"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_Menu=i(259),e.__$$__meshim_widget_widgets_ViewStack=i(81),e.__$$__meshim_widget_components_chatWindow_profileMenu_Login=i(279),e.__$$__meshim_widget_components_chatWindow_profileMenu_Status=i(281),e.__$$__meshim_widget_components_chatWindow_profileMenu_Edit=i(283),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_Menu,"","",[[e.__$$__meshim_widget_widgets_ViewStack,"vs","",[[e.__$$__meshim_widget_components_chatWindow_profileMenu_Login,"","",[],{addClass:"login"}],[e.__$$__meshim_widget_components_chatWindow_profileMenu_Status,"","",[],{addClass:"status"}],[e.__$$__meshim_widget_components_chatWindow_profileMenu_Edit,"","",[],{addClass:"edit"}]],{id:"vs"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu","xmlns:profileMenu":"meshim.widget.components.chatWindow.profileMenu"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__vs");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){h.autobind(l,"value",function(){var t=l.getValue();o=0;for(var e in t)if(t.hasOwnProperty(e)){if("email$bool"==e)continue;t[e]&&o++}}),h.autobind(s,"value",function(t){r||p.setIndex(isNaN(t)?e():t)}),p.on("indexChange",function(t){r=!0,s.update(t),r=!1}),h.autobind(_,"value",function(t){n=t,e()}),h.on("hide",e)}function e(){p.setIndex(n?1:o?0:2)}var n,o,r,a=i(30),s=a.root.$("livechat").$("ui").$("chat_window").$("profile_menu").$("index$int"),_=a.root.$("livechat").$("profile").$("logged_in$bool"),l=a.root.$("livechat").$("settings").$("login").$("allowed_types");t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_Menu.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Menu,t.__jx__jcss={},a(t,"meshim_widget_components_chatWindow_ProfileMenu"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_menu_Section=i(260),e.__$$__meshim_widget_widgets_menu_Header=i(280),e.__$$__meshim_widget_widgets_menu_Item=i(262),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(170),h=o(171),p=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_menu_Section,"external_section","",[[e.__$$__meshim_widget_widgets_menu_Header,"","",[c],{addClass:"item"}],[e.__$$__jx_ui_Widget,"types","",[],{id:"types",addClass:"external_types"}]],{id:"external_section"}],[e.__$$__meshim_widget_widgets_menu_Section,"email","",[[e.__$$__meshim_widget_widgets_menu_Item,"","",[h],{}]],{id:"email",addClass:"border_top"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__external_section"),$=n.get(s+"__types"),b=n.get(s+"__email");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var w=function(){function t(){l.mobile(f),n=h.getValue();for(var t in p)p.hasOwnProperty(t)&&(n?p[t]=new a($,null,null,null,{name:t,addClass:"float "+t,icon:g[t]+"_out"}):(p[t]=new s($,null,null,null,{name:t}),new r(p[t],null,null,null,{addClass:"menu_icon "+t,icon:g[t]}),new d(p[t],null,null,[_.external_login[t]||t],{addClass:"label"})));f.autobind(u,"value",e),$.on("click",function(t){var e=t.target.jx_wrapper;if(e!=$){for(;e.parentNode!=$;)e=e.parentNode;var i=e.getName&&e.getName();i&&o.livechat.doExternalLogin(i)}}),b.on("click",function(){c.update(2)})}function e(){var t=u.getValue();if(t){n=h.getValue(),b.setDisplay(t.email$bool?"":"none");var e,i;for(var o in p)p.hasOwnProperty(o)&&(i=t[o+"$bool"],p[o].setDisplay(i?"":"none"),n&&i&&p[o].setDisplay("inline-block"),i&&(e=!0));m.setDisplay(e?"":"none")}}var n,o=i(30),r=i(149),a=i(150),s=i(262),_=i(91),l=i(89),d=i(95),u=o.root.$("livechat").$("settings").$("login").$("allowed_types"),c=o.root.$("livechat").$("ui").$("chat_window").$("profile_menu").$("index$int"),h=o.root.$$("livechat.ui.mobile$bool"),p={facebook:null,twitter:null,google:null},g={facebook:"facebook",twitter:"twitter",google:"google_2016"};t()}();for(var x in w)w.hasOwnProperty(x)&&(f[x]=w[x]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".meshim_widget_widgets_menu_Item":{".label":{marginLeft:"10px"},"&[name=facebook] .menu_icon":{top:"1px"},"&[name=google]   .menu_icon":{top:"2px"}},".menu_icon":{position:"relative","float":"left",fontSize:"$$fontSizeXL"},"&.mobile":{".external_types":{margin:"$$menuItemPadding"}}},s(t,"meshim_widget_components_chatWindow_profileMenu_Login"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=void 0;for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{marginBottom:"$$margin",color:"$$menuHeaderColor"},"&.item":{margin:"$$menuItemPadding"}},a(t,"meshim_widget_widgets_menu_Header"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_menu_Section=i(260),e.__$$__meshim_widget_widgets_VisitorProfileCard=i(282),e.__$$__meshim_widget_widgets_iconFont_Button=i(144),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(183),h=o(184),p=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_menu_Section,"","",[[e.__$$__jx_ui_Widget,"external","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_VisitorProfileCard,"profile_card","",[],{id:"profile_card",addClass:"profile_card"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_iconFont_Button,"sign_out","",[],{id:"sign_out",icon:"dustbin",title:c}]],{addClass:"controls"}]],{addClass:"positioned"}],[e.__$$__jx_ui_Widget,"phone_container_external","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"phone_text_external","",[],{id:"phone_text_external",addClass:"phone_text_external break_word"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_iconFont_Button,"edit_external_phone","",[],{id:"edit_external_phone",icon:"pencil",title:h}]],{addClass:"controls"}]],{addClass:"positioned"}]],{id:"phone_container_external",addClass:"phone_container_external"}]],{id:"external"}],[e.__$$__jx_ui_Widget,"name_email","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"name","",[],{id:"name",addClass:"name break_word"}],[e.__$$__jx_ui_Widget,"email","",[],{id:"email",addClass:"email break_word"}],[e.__$$__jx_ui_Widget,"phone_text","",[],{id:"phone_text",addClass:"phone break_word"}]],{addClass:"name_email"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_iconFont_Button,"edit","",[],{id:"edit",icon:"pencil",title:h}],[e.__$$__meshim_widget_widgets_iconFont_Button,"sign_out_name_email","",[],{id:"sign_out_name_email",icon:"dustbin",title:c}]],{addClass:"controls"}]],{id:"name_email",addClass:"positioned"}]],{addClass:"flow"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__external"),$=n.get(s+"__profile_card"),b=n.get(s+"__sign_out"),w=n.get(s+"__phone_container_external"),x=n.get(s+"__phone_text_external"),v=n.get(s+"__edit_external_phone"),y=n.get(s+"__name_email"),j=n.get(s+"__name"),C=n.get(s+"__email"),A=n.get(s+"__phone_text"),S=n.get(s+"__edit"),I=n.get(s+"__sign_out_name_email");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var k=function(){function t(){function t(){e?(w.setDisplay(o?"":"none"),x.setText(n||_.placeholder.phone),x[n?"removeClass":"addClass"]("placeholder")):o&&n?(A.setText(n),A.setDisplay("")):A.setDisplay("none")}function i(){B.update(2)}$.setDataNode(d),s.mobile(f),s.rtl(f),f.autobind(h,"value",function(t){a.isDefaultName(t)&&(t=""),j.setText(t||""),j.setDisplay(t?"":"none")}),f.autobind(p,"value",function(t){C.setText(t||""),C.setDisplay(t?"":"none")}),f.autobind(g,"value",function(e){n=e,t()}),f.autobind(k,"value",function(e){o=e,t()}),f.autobind(c,"value",function(i){e=i,i?(m.setDisplay(""),y.setDisplay("none")):(m.setDisplay("none"),y.setDisplay("")),t()}),S.on("click",i),v.on("click",i),x.on("click",function(){n||i()}),b.on("click",function(){r.livechat.doExternalLogout()}),I.on("click",function(){d.write({display_name$string:"",email$string:"",phone$string:""}),N.update("")})}var e,n,o,r=i(30),a=i(38),s=i(89),_=i(91),l=r.root.$("livechat"),d=l.$("profile"),u=l.$("ui"),c=d.$("auth").$("type$string"),h=d.$("display_name$string"),p=d.$("email$string"),g=d.$("phone$string"),k=l.$("settings").$("login").$("phone_display$bool"),B=u.$("chat_window").$("profile_menu").$("index$int"),N=u.$("chat_window").$("menu_stack_name$string");t()}();for(var B in k)k.hasOwnProperty(B)&&(f[B]=k[B]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative"},".name_email":{".name":{paddingRight:"40px"}},"&.rtl .name_email":{".name":{paddingRight:0,paddingLeft:"40px"}},".controls":{position:"absolute","top, right":0,".meshim_widget_widgets_iconFont_Button":{display:"inline-block",cursor:"pointer",height:"100%",paddingLeft:"5px",color:"$$menuHeaderColor","&:hover, &:focus":{color:"$$menuColor"}}},"&.rtl .controls":{right:"auto",left:0,".meshim_widget_widgets_iconFont_Button":{paddingLeft:0,paddingRight:"5px"}},".break_word":{wordWrap:"break-word"},".name, .email, .phone":{lineHeight:1.5},".phone_text_external":{paddingRight:"40px","&.placeholder":{cursor:"pointer",color:"$$inputPlaceholderColor",fontStyle:"$$inputPlaceholderFontStyle"}},"&.rtl .phone_text_external":{paddingRight:0,paddingLeft:"40px"},".profile_card":{cursor:"default",".avatar_cell":{width:"32px"},".content_cell":{paddingLeft:"10px"},".profile_name":{whiteSpace:"nowrap",paddingRight:"20px"}},"&.rtl .profile_card":{".content_cell":{paddingLeft:0,paddingRight:"10px"},".profile_name, .profile_email, .profile_title":{paddingRight:0,paddingLeft:"20px"}},".name":{fontWeight:"bold"},".positioned":{position:"relative"},".phone_container_external":{"marginTop, paddingTop":"10px",borderTopWidth:"$$menuBorderWidth",borderTopStyle:"$$menuBorderStyle",borderTopColor:"$$menuBorderColor"},"&.mobile":{".controls":{height:"100%",".meshim_widget_widgets_iconFont_Button":{"paddingRight, paddingLeft":"10px"}},".name_email":{".name, .email":{paddingRight:"80px"}},".profile_card":{".profile_name, .profile_email, .profile_title":{paddingRight:"40px"}},".phone_text_external":{lineHeight:"32px"}},"&.mobile.rtl":{".name_email":{".name, .email":{paddingRight:0,paddingLeft:"80px"}},".profile_card":{".profile_name, .profile_email, .profile_title":{paddingRight:0,paddingLeft:"40px"}}}},s(t,"meshim_widget_components_chatWindow_profileMenu_Status"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_ProfileCard=i(186),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__meshim_widget_widgets_ProfileCard,"","",[],{xmlns:"meshim.widget.widgets"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var h=function(){function t(t){i.call(c,t),t&&c.setTitleNode(t.$("email$string"))}function e(){i=c.setDataNode||function(){},c.setDataNode=t}var i;e()}();for(var p in h)h.hasOwnProperty(p)&&(c[p]=h[p]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__meshim_widget_widgets_ProfileCard.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ProfileCard,t.__jx__jcss={},a(t,"meshim_widget_widgets_VisitorProfileCard"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_ConnAwareForm=i(133),e.__$$__meshim_widget_widgets_menu_Section=i(260),e.__$$__meshim_widget_widgets_menu_Header=i(280),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_TextField=i(121),e.__$$__meshim_widget_widgets_ErrorMessage=i(145),e.__$$__meshim_widget_widgets_EmailField=i(146),e.__$$__meshim_widget_widgets_PhoneField=i(148),e.__$$__meshim_widget_widgets_Controls=i(251),e.__$$__meshim_widget_widgets_ConnAwareSubmit=i(167),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(172),h=o(173),p=o(174),g=o(175),f=o(176),m=o(177),$=o(178),b=o(179),w=o(180),x=[e.__$$__meshim_widget_widgets_ConnAwareForm,"","",[[e.__$$__meshim_widget_widgets_menu_Section,"internal_section","",[[e.__$$__meshim_widget_widgets_menu_Header,"label","",[c],{id:"label",addClass:"label",selectable:"false"}],[e.__$$__jx_ui_Widget,"name_email_container","",[[e.__$$__meshim_widget_widgets_TextField,"name","",[],{id:"name",placeholder:h,required:"true",addClass:"standalone mobile_error_icon"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"name_error","",[p],{id:"name_error",useDisplay:"true"}],[e.__$$__meshim_widget_widgets_EmailField,"email","",[],{id:"email",placeholder:g,required:"true",addClass:"standalone mobile_error_icon"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"email_error","",[f],{id:"email_error",useDisplay:"true"}]],{id:"name_email_container"}],[e.__$$__jx_ui_Widget,"phone_container","",[[e.__$$__meshim_widget_widgets_PhoneField,"phone","",[],{id:"phone",placeholder:m,addClass:"standalone mobile_error_icon"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"phone_error","",[$],{id:"phone_error",useDisplay:"true"}]],{id:"phone_container"}],[e.__$$__meshim_widget_widgets_Controls,"","",[[e.__$$__meshim_widget_widgets_ConnAwareSubmit,"","",[],{placement:"primary",value:b,addClass:"save short wide"}],[e.__$$__meshim_widget_widgets_Button,"cancel","",[w],{placement:"secondary",id:"cancel",addClass:"cancel secondary wide"}]],{addClass:"controls_margin"}]],{id:"internal_section",addClass:"flow"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu",noValidate:"true"}],v=x[0].call(this,a,s,null,n.mangleIDs(s,x[3]),x[4]),y=v||this;n.set(s,y);var j=n.get(s+"__internal_section"),C=n.get(s+"__label"),A=n.get(s+"__name_email_container"),S=n.get(s+"__name"),I=n.get(s+"__name_error"),k=n.get(s+"__email"),B=n.get(s+"__email_error"),N=n.get(s+"__phone_container"),T=n.get(s+"__phone"),D=n.get(s+"__phone_error"),E=n.get(s+"__cancel");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var P=function(){function t(){l.mobile(y),S.setLabelElement(C).setErrorMessageElement(I).setValidity(!0),k.setErrorMessageElement(B).setValidity(!0),T.setErrorMessageElement(D).setValidity(!0),y.autobind(g,"value",function(t){r=t}),y.autobind(h,"value",function(t){o=t,A.setDisplay(t?"none":"")}),y.autobind(f,"value",function(t){_.isDefaultName(t)&&(t=""),t=t||"",S.setValue(t),S.setInitialValue(t),t&&S.hidePlaceholder()}),y.autobind(m,"value",function(t){t=t||"",k.setValue(t),k.setInitialValue(t),t&&k.hidePlaceholder()}),y.autobind($,"value",function(t){t=t||"",T.setValue(t),T.setInitialValue(t),t&&T.hidePlaceholder()}),y.autobind(P,"value",function(t){a=t,N.setDisplay(t?"":"none")}),y.autobind(b,"value",function(t){"profile_menu"==t&&e()}),y.autobind(w,"value",function(t){2==t&&e();
}),E.on("click",function(t){t.preventDefault(),b.update("")}),y.onConnectedAndSubmit(function(t){if(t.preventDefault(),y.validate(!0)){var e={};o||(e.name=S.getValue().trim(),e.email=k.getValue().trim()),a&&(e.phone=T.getValue().trim()),s.livechat.updateProfile(e),b.update("")}}),y.autobind(v,"value",n),y.autobind(O,"value",function(){var t=O.getValue("profile_required$bool"),e=O.$("form").$("4").getValue("required$bool");S.setRequired(t),k.setRequired(t),T.setRequired(e)})}function e(){S.reset(),k.reset(),T.reset()}function n(){var t=v.getValue();t&&j.setDisplay(t.email$bool?"":"none")}var o,r,a,s=i(30),_=i(38),l=i(89),d=s.root.$("livechat"),u=d.$("profile"),c=d.$("ui"),h=u.$("auth").$("type$string"),p=c.$("chat_window"),g=u.$("logged_in$bool"),f=u.$("display_name$string"),m=u.$("email$string"),$=u.$("phone$string"),b=p.$("menu_stack_name$string"),w=p.$("profile_menu").$("index$int"),x=d.$("settings").$("login"),v=x.$("allowed_types"),P=x.$("phone_display$bool"),O=d.$("settings").$("forms").$("pre_chat_form");t()}();for(var O in P)P.hasOwnProperty(O)&&(y[O]=P[O]);return y.fire&&y.fire("init"),y.setStyle&&y.setStyle(l),y.setAttributes&&y.setAttributes(u),"function"==typeof y.addChildren?y.addChildren(d):n.addChildren(y,d),y!==this&&(y.__jx__constructor=_,y.__jx__native=!1),y}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_ConnAwareForm.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_ConnAwareForm,t.__jx__jcss={".cancel":{display:"none"},".controls_margin":{marginTop:"10px"},"&.mobile":{".cancel":{display:"inline-block"},".external":{marginBottom:"20px",".header":{padding:"10px 0",borderTop:"none"}}}},s(t,"meshim_widget_components_chatWindow_profileMenu_Edit"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_Menu=i(259),e.__$$__meshim_widget_widgets_menu_Section=i(260),e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Controls=i(251),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(137),h=o(138),p=[e.__$$__meshim_widget_widgets_Menu,"","",[[e.__$$__meshim_widget_widgets_menu_Section,"","",[[e.__$$__jx_ui_Widget,"message","",[],{id:"message",addClass:"message"}],[e.__$$__meshim_widget_widgets_Controls,"","",[[e.__$$__meshim_widget_widgets_Button,"end_chat","",[c],{placement:"primary",id:"end_chat",addClass:"wide short"}],[e.__$$__meshim_widget_widgets_Button,"cancel","",[h],{placement:"secondary",id:"cancel",addClass:"wide secondary short"}]],{}]],{addClass:"flow"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__message"),$=n.get(s+"__end_chat"),b=n.get(s+"__cancel");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var w=function(){function t(){f.autobind(s,"value",function(t){m.setText(t||n.end_chat_menu_message||"")}),$.on("click",function(){_.getValue()&&d.getValue()&&!u.getValue()?(c.update(!0),a.update("rating_panel")):e.livechat.endChat(),r.update("")}),b.on("click",function(){r.update("")})}var e=i(30),n=i(91),o=e.root.$("livechat"),r=o.$("ui").$("chat_window").$("menu_stack_name$string"),a=o.$("ui").$("chat_window").$("main_stack_name$string"),s=o.$("settings").$("end_chat_menu").$("message$string"),_=o.$("settings").$("rating").$("enabled$bool"),l=o.$("channel"),d=l.$("served$bool"),u=l.$("rating$string"),c=o.$("ui").$("chat_window").$("rating_panel").$("end_chat$bool");t()}();for(var x in w)w.hasOwnProperty(x)&&(f[x]=w[x]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_Menu.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Menu,t.__jx__jcss={".message":{marginBottom:"10px"}},s(t,"meshim_widget_components_chatWindow_EndChatMenu"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_Menu=i(259),e.__$$__meshim_widget_widgets_menu_Section=i(260),e.__$$__meshim_widget_widgets_ConnAwareForm=i(133),e.__$$__meshim_widget_widgets_menu_Header=i(280),e.__$$__meshim_widget_widgets_EmailField=i(146),e.__$$__meshim_widget_widgets_ErrorMessage=i(145),e.__$$__meshim_widget_widgets_Controls=i(251),e.__$$__meshim_widget_widgets_ConnAwareSubmit=i(167),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(132),h=o(133),p=o(134),g=o(135),f=o(136),m=[e.__$$__meshim_widget_widgets_Menu,"","",[[e.__$$__meshim_widget_widgets_menu_Section,"","",[[e.__$$__meshim_widget_widgets_ConnAwareForm,"form","",[[e.__$$__meshim_widget_widgets_menu_Header,"label","",[c],{id:"label",addClass:"label",selectable:"false"}],[e.__$$__meshim_widget_widgets_EmailField,"email","",[],{id:"email",addClass:"email mobile_error_icon",placeholder:h,required:"true"}],[e.__$$__meshim_widget_widgets_ErrorMessage,"error_message","",[p],{id:"error_message",useDisplay:"true"}],[e.__$$__meshim_widget_widgets_Controls,"","",[[e.__$$__meshim_widget_widgets_ConnAwareSubmit,"","",[],{placement:"primary",value:g,addClass:"short wide"}],[e.__$$__meshim_widget_widgets_Button,"cancel","",[f],{placement:"secondary",id:"cancel",addClass:"secondary short wide"}]],{addClass:"controls_margin"}]],{id:"form",noValidate:"true"}]],{addClass:"flow"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],$=m[0].call(this,a,s,null,n.mangleIDs(s,m[3]),m[4]),b=$||this;n.set(s,b);var w=n.get(s+"__form"),x=n.get(s+"__label"),v=n.get(s+"__email"),y=n.get(s+"__error_message"),j=n.get(s+"__cancel");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var C=function(){function t(){v.setLabelElement(x).setErrorMessageElement(y).setValidity(!0),w.onConnectedAndSubmit(function(t){if(t.preventDefault(),v.validate(!0)){var e=v.getValue();l.getValue()?r.write({email_transcript$string:e}):r.write({email_last_transcript$string:e}),s.update(e),a.update("email_transcript_notification"),v.reset()}}),j.on("click",function(){a.update("")}),b.autobind(a,"value",function(t){t==b.getName()&&(v.setValidity(!0),v.focus())}),b.autobind(_,"value",function(t){d.activeElement!==v.dom&&v.setValue(t||"")})}var e=i(30),n=e.root.$("livechat"),o=n.$("ui").$("chat_window"),r=n.$("channel"),a=o.$("menu_stack_name$string"),s=o.$("email_transcript_notification").$("last_sent_email$string"),_=n.$("profile").$("email$string"),l=r.$("chatting$bool"),d=b.dom.ownerDocument;t()}();for(var A in C)C.hasOwnProperty(A)&&(b[A]=C[A]);return b.fire&&b.fire("init"),b.setStyle&&b.setStyle(l),b.setAttributes&&b.setAttributes(u),"function"==typeof b.addChildren?b.addChildren(d):n.addChildren(b,d),b!==this&&(b.__jx__constructor=_,b.__jx__native=!1),b}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_Menu.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Menu,t.__jx__jcss={".controls_margin":{marginTop:"10px"}},s(t,"meshim_widget_components_chatWindow_EmailTranscriptMenu"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l){e.__$$__meshim_widget_widgets_Menu=i(259),e.__$$__meshim_widget_widgets_menu_Section=i(260),e.__$$__jx_ui_Localizer=i(115),e.__$$__jx_ui_Label=i(95),t.exports=function(){function t(_,l,u,c,h){if(!(this instanceof t))return new t(_,l,u,c,h);l=l||n.generateID();var p=[e.__$$__meshim_widget_widgets_Menu,"","",[[e.__$$__meshim_widget_widgets_menu_Section,"","",[[e.__$$__jx_ui_Localizer,"localizer","",[[e.__$$__jx_ui_Label,"","",[],{addClass:"email"}]],{id:"localizer",delimiter:"@@@@"}]],{addClass:"flow"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:menu":"meshim.widget.widgets.menu"}],g=p[0].call(this,_,l,null,n.mangleIDs(l,p[3]),p[4]),f=g||this;n.set(l,f);var m=n.get(l+"__localizer");t.__jx__jcss_generated||(o.generate(_,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){f.autobind(h,"value",function(t){u=t,c&&window.clearTimeout(c),t==f.getName()?(d&&s(function(){f.addClass("fade_out")}),c=window.setTimeout(e,l)):d&&s(function(){f.removeClass("fade_out")})}),f.autobind(p,"value",function(t){m.setContent(n.replace("<email>",t))}),_.onTransitionEnd(f,f,e)}function e(){"email_transcript_notification"==u&&h.update("")}var n=r(139),o=i(30),_=i(38),l=3100,d=_.isStyleSupported("transition");a.isFF&&(d=!1);var u,c,h=o.root.$("livechat").$("ui").$("chat_window").$("menu_stack_name$string"),p=o.root.$("livechat").$("ui").$("chat_window").$("email_transcript_notification").$("last_sent_email$string");t()}();for(var b in $)$.hasOwnProperty(b)&&(f[b]=$[b]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(u),f.setAttributes&&f.setAttributes(h),"function"==typeof f.addChildren?f.addChildren(c):n.addChildren(f,c),f!==this&&(f.__jx__constructor=d,f.__jx__native=!1),f}var d;return t.prototype=_(e.__$$__meshim_widget_widgets_Menu.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Menu,t.__jx__jcss={"**self":{transition:"opacity 0.5s linear 2.5s",opacity:1,"&.fade_out":{opacity:0}},".email":{fontWeight:"bold"}},l(t,"meshim_widget_components_chatWindow_EmailTranscriptNotification"),d=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(7),i(12),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,a,s){return this instanceof t?(r.call(this,e,i,n,a,s),this.setBase64(o),void this.setFont("zopim")):new t(e,i,n,a,s)}var o={eot:"aykAAKsoAAACAAIABAAAAAIABQMAAAAAAAABAJABAAAEAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAN1f+DwAAAAAAAAAAAAAAAAAAAAAAAAoAegBvAHAAaQBtAAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAaAHoAbwBwAGkAbQAgAFIAZQBnAHUAbABhAHIAAAAAAEJTR1AAAAAAAAAAAAAAAAAAAAAAAwBH5AAgIgAgJgAV8hLN6YrIYNhXyWhLcUp/eCJVOnIsL5Y0XJvcFQ4MbGnS29PxiMqaDwadQMdMRk20HbaAFMMrFDPqK4wOstzMEitySzAK14NfkGZann0EllN/ZsUz0jK+qhwe3GMbQ7QbhY0mN+OrwNB6ocb9l0JLEX6oAe1yt6eo1VBg9DtiCAQRAx4qCdtyuVhA+EL5vRbTeqxWTvnbjTmReVXAS2fSV1pueeVYROkh4NY1H3GBp+rdf9vfsmOmo2fAsDfv7aPIs+iODh6AFtCuwBqM3PqZgSa3cZUUXgPxmRVRW4Ek0SoQbxOezVlMeQIv3nyivUZnQXemSPvwhEyCCuyuU8E+KWuob4d5Jwwm6aHCh+yJozeki0ARyby7ckRFhEPA6eO7jVzzmEr2b1OyschkFay5GHovpwfFcukp5Tw3PasonwJfM1hCcBpQ/oYNmfz5xYHaYdmEWHZw7NIN3bt1CISFFMoPBU/XCuSomFArSKZg8pRWo9hntAjX0cqPdUFqB8N+SURLPlblgICX9FMNTpJ/Y/FQ9iQk/j+fVaU5BexEKOcJP+1pA2TtOY0AB6YJLChngZENiOzQA5DABuSBKACj3Ft/MinTDCD4IBkTtgLxIXcdl+mNDGna9LTALoLtiNKTANY/CUmHLxlnKTDQQIjsxNtIk/MDiUbBWPTJICKgr2fAYdGbPlwDNusDqGzpG0Dh3Gu3ABN1hfIuAC39T6gmARFhZ8zQnXNMYmxkhFKZuWlekzDioxbeZVF7qNWg3ELVXNpG5RH8rP0mskFOBa1L0u+KqedDf9ltrGL6i2e+WD0l2HwamtTCWLVQfGItWq7cnJ9fpsHUnjzsCfWAgN8SS8VPS3NyKJXGO8FNwEHlys7aDBJLnYGH7Udi5AdKHMSrwx9vih1D6LG2LDreJccOkJkiDcWHKMmG68SJiiCJHxGIK+1aQ6IWDC4kgBK38doImqRUjQFfRuhAsZVLfX70Hu8iM1+5xWJEYLS7lP7bTKZ2xkmIpNH5Q+ct6LzaII/kL9gwwJjARJ5mQA/wnnQw5GTRCV3mK3XaS6RGTixeOCh8YxuPo5d3hnUwsB4SINlkeqGvUmnDaMDBQODD08ReJNeCRRvSkiLt+2Nq5PnswXW5YSDVDt1AnFZl4/+ZJIgHtktxPGlhFg5Q6iLDRIKOK5ReHHNZo42ubVE1ebGoYLV2WAUtA5leK8/48RAWbAgH16oWy7mkpBn2rg+KTUmaGjWKEuDRgYmx84WahIW46e64ZXa8OxseoFzUgPYWBBXQRLau7FjZMGDcWTUMQd6MKFZuG0ehlhuWcJD0kvohJaWIl285aW7DJBbSgdZf5cgNNIqwMw2g4CjtZRFFOdJ4dny3XRYngLqGwxwi1ZMLtpARvtNvqVbLFC8MdKhobhYS7129DYlfbadqw2V2CpfkK6Ik2wsa0nHAaCmmesG+9xLIN2vNtiea6zpRhM3hanox6mizd3q2VFkUq8JVUXVTmPGykCcrzaJK9Yt0Qaiaq6zomzq+sNuGORqlLHGrbyLoKIM1EFWpAN9POoVGCFmDAotQ3jNH9wpMmiBim/Cz07pv8QCzLMcLEpewysiyKMI8I0UGs2T3HYTCuQEHYzU4qWSgTakYRpQcN1Bc6F5hmWgeWJqqX6WJxzjIFNlk6MEWQv0b/zP9BMFgKaUMf9POc+eRtDkI3L9nHshBrA+6UHId04A2RPoBo1HZMIqx0gzwwRSL6eJQMenj8thgtfcAvEGFGnf09rDhNO4He1W16iBz9mK4xkMHn9gTUWxbC557j362iKagb1KBglS4nfQzWjaRAGjKMxCc9Cb9INherBFYlyaAaTOBT5jfQn+pPCKYeuT4kyQCLFWyhby7NltEx9Wn6yBlYmO4mAvTxjIQU8ogiMywgZT41jTa6XnYea3B3CvTLHHXvNS/Y7bzLami75NMxxEKxqc40Bo/qCmCKPAe1PDqoGSDcd6dTF4DPaPRw1KaZmDbHUifUN8WhAC9vCpjFkiikqpNlAkckSBgCoHyW4kFJGR5bWeyXPp4oOBJPduQWfNKD4ZYlhNy837aHochqxduW1aShnzLl6ZZjcMeNTsZpJkOXDUT8Y/MDBSnUJgwyBAoFXoAHb5AoOsqMgkNMj7PXTCSKudVJCw0ah5L73SolPyYtkDJHKRtCRxNuFt6IiRKdlDojpCFwUNnCgzFOfnyUFhKbEhdaPApbAEhKhyMBOCrh4tDhhQNh1SZ6wYK0aTAplCP3KUcKYm+k8QdLYdwIVFtGnD0SUIIAJPv8SGXUDLPbhM0wuKpnCRorsYbioF/j8JH9mFsEqOZ4uyNtTCpCXoNu4MsGCxJ0SGkGLuWAkjExijWUKBnkwl+XZdRiZtWBgBVEDYY5aqMe3LMBzmPl6ed+NRGpc8056lGRG/szK+jS2a/aKSoHMPilDOioscR41AXs2zsjMOfrrEn2hNKMEKwe7+VcTq4JnLyQ3Tj2fEJ8Q9kn/ISnN24iTMzm1NmzFutkQRoSAr1oWI2kd5cZOvutN++Va0lWyvz9sJP1lrX2QZq4YLy5hO2iSZ37Sq7wgX9UHYjbWexcrpxt9n53oIsT3PcEYymxKYiIOn+aIW7TtBCjBkhYN+B5TZaj4vOzkDrOJeDVgS+BMxyI6+Ty02MJesTzsXFcaI7oKQoYNpccyAo69jPH6esPJHlHySRcFdjjASEOKGOGZDahSKrEyJF50d7wqkYBO0RCigoJpHqV86ZfidMsGWGA+WQXrK9dN61ynVf8CV6Acck3dMC6sYMkgLmyvM2a/Th5nUbMNIlGzuFuQSpEW+BMcYcWxMQelZGcJokAtSXx4URBV6ayf0d5hk0eqPklbvxhCdFbsXGBOB37nXnvvAoSW0zWJpsynD5NQ0lkzTbIoPZt4WNz0BUuD/I0L0glCDPHHdMfGZ+qJBRpCca9UST3MIEaPHQWLcHJnCSq4fF0AkcAEnp8Dz2Bl4TS/dn0AM6hSNBhSDQ59MPKSrsnR2i7bTWB/qSMOKy5hxGF4rZyDpUjzKemKOHdBN9fBwhxjOoCsanMCVYau+VAtnjQcdIpIUGYxAK/3B5Ixxti7Hx9fmBaeGWhY1KRWiw8GYTagC1LanvK/HNRBdNHAZ1lI4Ys89ip9eAUsqdMTWTw2ANWlusjB9BWQ2j5qrryIjFDCk+fe8K2erFS0mI9rIFg5yyYZaJvMRgvpkw0bCneCTZMHAmT4sYMeRLeB5ilayc5rjEqUjozWXgp0wZjQJzUaEMPHlSyw8vxhc+t+bQt/Mu54bFv6s45vjwJcaBdYiHRRq4ZVYTCy3OIw1m+I1NAdpp6ZMM2ZNI6ctk6ExHBaeDPDOYVmKa4cvRTbkvSOLg0gn+rpTVOB8LnwaTiOfkbMygOeTZNZqqiE6wDXbAPIkljRNGsvNznqART69rvHB9JJAqrKC0MIZRJ6QGSscUhpbk32zDFlyTMdK6hw8AHFMHDLmskWt2TVC4JBrEC7P34WR5CMLle5agqn57vhAAc567cYskYU4ywiEf49youzW5aU4/+PTbNLydiopKO04zGdF7iuRAaJB4ULXedzAtRJpAWoo5eTAR0ZCTF0ApvGkGXrUyYCoq4OWR1OkTnKQESOjVtRItDm1Vib/xXwHQreqUtz1Hbkg2hSKYD7q4SdcoE0Dwj4GC7F+aTWC+Gb5GL1P44SS+Lvt2/J9320mbGnDhVInhsnBOpWkZQTurqm2gZkEkjIL5CEEZ5LDtiEnhEJJhDKTWsk63wRsGPUgFlgNS74JVlHAtKpGd9HHlXfnnl9W2Q51UEisCxmSuq4aUGSb120u+y2SBuF+BB44Y7e1s3XJMXi/iKUwtChxpZOzYCIo16CL7HbVmrGHQMVTMidL4YPhQUE74EHiegAGfRjkRYEEbWYDHHwIQ9y4087M/yaDrCHcTiH/DAz2HMucX4640xdG+l12p6xSEzAW1G6Wa2mEC9/Kd4w8tLytAB30bor5OUNoZ1O4DMyr3yREzPzFVBaMCihU2I3gtR24/FQ78XC2yx3DosDCbvEJOHUdOOCfc/vHzWW6feJCyyIed0lY4DcnYAF3sqekSZWJx045nAWeEuTAGZqGob/faoTZTyAO2cGHFnQr5ut9AY8BQR25PB7tucWjgTnY8oGlsZcHBMTccjtBFsmA48Qbu+6OVd5NJ0amqSUlirgSzA7EBy+cavw4LwjkOUWCAiR0W2Gw4c9k3cbinNP5R6996s/23fASkKEGLVRUkgqDnmeUKfdthlCqnloYMKI0vWARxRp7xQJwDAcgH4RTyh7ps/Dlu8Ne8HcMWFvTUOVGqDlMAD86bnclYGEM/0oZjBOQ1kI3nQ9IEJ9SaZWVIIuKOsKZCzi0Y5nm2Vd3GvGSLMXttQASIUVxLBq8YKHMafdmV2i1m/KPhhsT0qxpSUa0zpBLisbsSblSiDr7/Z0jJ0bls/E/DJJNim1rRewSOki2knnLrm6rvn8hk0vhQBq68kD5I9iA0dEHQrcLD3FgRbDA7I2l3Z5zKKwN59jXjNhoYYA5OFWlzEY3C6ycipnqtsJixqovD4LCNBqh5sHo1mI8cMWPBYQ7RVcmk//jXBh+VO+FLSQM1f8lmvw8pTMD4LLkiQd9TLFdB6siXZWV1xdsc/747QMKEtblK4r+wQ90VmDOS2TVKNtRyRCU3v8+YGMZdozNp9xo0w0Mk9E6avuWZ6TBOgSJUZkfcgMCVt2XPrRENihNlv1YVhBck8IenhMSBqYpzgYHzW1B7Bxg9aLqSRVkxc8xsXaOKbXSQEnCMEmyaWstZAfgBp6yAWGU26itQD1s0wR6IcG/feCLswrmpD7jpmmVILgbrsFwqcV7NCpOpw6oBGSoCPjZTABQeA4RBxcqVKhioMMcirOKd8fdDjKyRXDK1CkPCxjsOP7J6eqSnBKQxQF3dZWphTZdHVYEHQbUEdK0njDwKmkgpQPETrJO4ACJkmiXnevddaxj1HaRF/+dOwVl0KxYjgerNYKBafZg+se59CXLG4mTIyNtDHsYAfOhGs+yiHWK4nSfo60AR7XEnm55oX1RrXYDs+Wp7HAhCPwSjBW266SzwwNxCpl3PMjBw9GhLiZAbGQu4TDirEiK8d5kKX8G6tbXxBNve+DOgWF/d8cOUILpQ0650fhQbxvlYWFFKihGbojjM4z5G2y/Z+wLx3HLwngIsDP2+2gazVJ+BIFJr5c6nzDAAJQp92Im8UeF+DZlEBa7iYSjC1I1PkrpRWJcnsTB5VnbL147kxcTePe0CkNzAJmaOTIZR64wRtich/Af1ppKhQLnfbiCMWDqAZhABsKWgZ9M5rCqFbx6ZXRcCpTcqt4fcUDcEtw/SEjqje6BvMWzVJFBJA0re0XtmCWK+zs2BjHOwRVAaygEry3DfnLwhMGiKB5Wv5YArq6s3lCf45GNMSgkW6GvYixGnzqsaRH34wiCGEI//nJaQAP4hcGtvkZ0zChGviCJQIP4wSbPF5eRfIJB5zjCB2LToFldCDrrQxQxrRVRAK3jJsmM46sYL4WhACS0cKpTdSYMBE0TGY0MiIEKkA1RqpShJtk43gXKJfC6aRtzdY+OPLOeSG058UMBlUWHK2rD9UovRbFlnoFR9+6lUKlj8LDfI5zfiaGaSqEN6GM+NcVNmzeAzsR9Qcb+TDAYgEN+FAyKdq5CDq31RWStsEIa8GKWJdgC8ntyvcwrKQh6GmpbT5wVVk7XeP0EBcVebco5DvTmJC8GxIAmRSD4h6B1wcvWvMMPBQR3WrJDrDiSEaCjJJTA+miw67hciMUbzWBeB/BKCuUrvsCQf0wK7VJks4oF1pNKGujMWDyAVqiECxOGWMg712moJA7vsc3MJJGrY/9X8NdFUDBfR1gNx9mrhWyX3IKSKE+hK2AdrGxclZXQAmeUJ54Xwbi+tUSm6U/EXNW2WeleGnzASq1Po9l6VqMqIFpZTdAvGYavObJA+65o20eELpV4ZGan+yaH4AuQaq/MTQV439bxtTefZztqUaZRhEunWnHnn7voivHOjhIFZOeoCB0gm/uQEJ/wRkHTjtrkQdE3EwJJ0QdCIYGRNmsKcjJFsKmNfayh4dasCJNmc53oVsWIHUFiWyzACvLAYsRi05cq66uRC5Qjp9obqixfmES8OV4TfU2imZeghPxih8PZVZRen5HM+2UePnCLNcSP8MujZOrOhnDBLeQzRO/C7NfB2jH2RLGuTXyyZMR9hxS/o2aYbZHHmQDwoWEoMdQI4FODP8RZjhe1Ju/MZCE5tiWj5gRAFzHCndTTWb4Y2SRyjDWDapDQCUMCyKT1Q/QELmLVXWy/GwedXHomXCMPUmEKTClLmm9JySuG6lklkjcJHAJoxdPckrxXeTZCc+Be27JhoJJVbyEcaakCcj5sEG8wEaL/wBgEtghmrNh7vNR2O98zAabuuA4m5CD1TiumRS4uLmHLBZIUTBqw5xgbaSM5CNClIEz5iLBZLD68lHzJTjc0LN5Mh5UufUR+XXF9fyFTgtWDptCdw1AXDEhDXowIBVv4cT6eo86gzQvMsF3qzlYWDuCqUN/EZR+Mco7a6ARaDYkHLCRxWkiQJIlabaLDdshCwsgdntXFP4tg8LJxkCiEWVrqUxaChQiZGYqh06fi+tTPwqYKxPG5LZ9EOMsuWwCA0GpyTL24WaGkp9mYGP1AYcUxKNaYJV1CsbLDQxchTtA5QSnWu7kyYvmkfDxdRruFV6IlLDHtKMS1xmSWgKjeGqPirBjO3NIHJ0IPikMSVshZ0wv/mb4u7P1zLewNDNeGALwUIHHtM4aQhFD4K0E0kO1jtu9qLGk999hvikEqS2CujcbnF/O79tJwn0ymaZV0GeLF4mBsA9oueHwjXmFYvddoR5SiVRyh6UUOzGmRmRrtuWEX4k2dqkY/0K29XmCOknmxlX5LU20fgvaPwJOywFWII0DrPZkJ8u9sH+XVPJVIl9hEAL/og3sar+AdxDeNeJoVOXojdFkMxgDgBgiC9LMR1u6lcx+sG3MZbAc94liRd5FGXvscxj2UwDIEpKV2ff/C6tj2KL0/vAZWCjAcWJicjOFIs3gWPjmchJ6OIEKQ8Jh2UVpuO+HU7rCxjwT3o/CsZUbxibHYoFLuCJqSOQYyi2KE5tH8F8GF0P5x+4wQQN6AY6kwAPoF/HJaeUrbsR7Dp3VsE2hpcWU+RTy82lSlx7hlxif/hYNVdJDwylKkXWg/7vWY4VnlmbnHclAEABn2cpCM71BWVoqHAqysL92YdOf5HfBP/8FyQKFXwoQbyCIe6bJX8kg7niecU+dZ5Nw5iuzA3w4rzTOTnMJ+OPwc+OeY0bo23/u9ZTIgPs/nobh5gObExH5oLgJJ4jLJYHQ5Go/mjBTBKM2jJ4EjwAj0aqbSwzelEBAQNHzCJYqh70MlHvBEyFlcGRKR7RCN2FZJ0QUrZHXAVb6NeC/AGTJH2xK5M8iSntB0SydDjXLZy7lpKGyq4Qg8OR2SxHXRFQkEcSZG4pnceTpHCFD3jbQvmI5i/2CKX9cb1ixUVh6bKkp8LCfUZCGayTLu83gTi+sfCbOUrDCy3GObGWx8l1ORzW1XmvRKK6ZnqVujXOH25cL0PRuBwCm8utLBeEAYoGy3IDiW3hBrlxZ8IQdAoDAGTxD+w6lVBM791pQWR+NLUQwASwDnIcwhssdYPAQHxUhELa0rYuZE8DDDiFz2OSzF7hsJumRonfIvNghQSrVzWdYczbT5GplQGjuYpzhoOcANMhun/dHBp4NwaWbg4GQQI/PKgckMNhFKVxANhFmFg4VCJ2REkDpxKKsIIteBYHYX0dE4sDZAA1Fek+DDiSEtlxWdya7oPrlnFa/13DDnbmZrqQwVNvcegecjgRybZT10nvRD3+U3sIVAK2y1KW7YlOZj4t9BEONhfbjwqQo/CYuRV7OQB9xfyS2KjfBk6V3cFM01Il7xYoPCUYvJoMNNZYMxHRDqBGoFGCY837QKhrQ+3hgvBmoJdPQIKiSY+gIBjBL8HvcvxH/swgC5F+0QQEgW5EIr1GiEIJ7FohO726Px2HpXhOs4Es7aHxZ/TlZRqwI5W0HTTF94UNdTQl7iy5N/uQ5JgkSZYiL38Ltu5fVHkvSm7uhehGfwgDFFdAG+N7g+PryxYXVASmqZqmjK5oC2ghwTC80fUNIBWo4YYJPTRrZqhu5T8W4IlmTJXKzWRaDhZjlobOvv8YshTdlxCLssQquGLQSSegsAFwWrQOqnBsWapv9uKBPTGsl+hUa2BxqonGDTjajw/iB/FSqKBydHyEhvcLQyrqwjKH1EyGouB+a894nDdAiuf7EhHew3RFPPeI5h2wasQJUNNpPHEdJfdI4XDvKrKRD0mFyaXjKv1QGVAwolAwRdYaCc6j2As5CgI34kW9TyiCcMxgo+TnRUF3aEYAZA1vj067TdRVEbVXGLv16UxsHeEUhP/eyDAt84vwPja4GWCBAZIQaNGo5+rP+Y4I9IfOLeE7zuljYm4ZcXqwiycmyrd1Mgss8LIjItDSG4tRFU+jSliEGtmPhDOYdt02VhcwL+IwLrmyRXEUP9JgoIYB/fnq/kOJMFch2EA1IlYXgvSHoICyLIXfaRB8YziupG59kbmiHvIDjnMzcVpyXNK8cQ12wqMYn1OfvhCGaqGnd8MSwq8kUB59lbJJiqkfkDoa7gcbfG/OZEma7d1IqYd2DmhwHIlRqoairevabhVxLph0uN7eDA0pKPhOPBh/PPw62A0zBCYlF/ysYw0c9m7QAqjnj7m0FZI/EoAp5y2GmLO5FmFLIJ4Gnj2c47DK2hw5B3jKl9ZuVm9MqbB886F43z/guddzkPV4/2GSXcSVggW7MgSzbSCXfADpsTIRQh6C4/yHxtzhwIitjUjTZ5HJPgaSohKnktG4HOMNGLsC3endqH86VxKREMs7eCf8wMJ2Xch+KVGxTU8Cf94gzsY1qgmU2IunBevYpIRtezaxgs6jObrqcNFZXQpep4wheA0exGAGY6FMHOSYZKh40m4OuxZCnH/1h/1CRqSJRK26mVIuZ7RO4JSKfmTvIBkUHfAEEmDSp2lasuhGrCZ+2wKNw2CBZpwuh7r8egIguBplY+PU2IlaQfFFc/k/dm5RtEYlhCFIbqzyE0JUx+qYdI+m7IuUb8N4gE1nAqqsD5bsS46IcVIWSRg7AzMuIT55H4RDp9lhC7jxNSgOJ3af8jvNoRXGUjgvHFl3L7BANAhVWetITYViiCAJRL79wUnJyo+OLa+BfGGBkVW4How3ttOhCl0fzEIUT2gA3WeK3apPKGZCEpO6PiH9kbTIaWxC4dpGGrjtP0ryJGkyNXmnWFqjCY21e+lW4Bd2EMNR8KSj1VtyqWnlLnUdBmuyp0M0udTos6/Al6gRleuesc5OYQrMTI8cgZ/NwXFBwCBSVOF2kEVtTXkePd6iDDTal2M9kdToc0YaHugnJbpcpqJ3KXIhSGPA1csd+/ONX4LZR9P10nFG0XDe3OXfUytHBkRxnG1WT2desVg/kDyWKuXAnMs0Q4WQ2A4ONFeA3J1aLJWDDl5uPi88MI9CdSSJ8C2JGXiBIlcIjaE1sJxS48b14YKK+YNGZ6blRzCblEgVndTAKOsZJCJkmSQiWD/ZShMQhlfurc/A3W/eLYuRLS40nNeCZ6kbvynQ9bqGX4h6lgzERWHAG02sZer+g4Lin0aYlX3kzOfmtYc/x5YT7bgyxTEq3Ad0zVli66+H7NbXKC6KARym7pJbAwEayg67JJzGrVSSBy5wD7eczzFTwdld8T8oFedQOoYyeI+FwEsO7UgFTYBXbrDgYJcJWq6I2lVIjkHs2EOQqYsKeCrMd2BzDIGI64DKexeqTR5agLpM3NpKtFhcW96LOd+beinNZsoAZ1/zfyfXs8wnATUyFEPRSamTlpQNIlxgGzG5wYBLV/J66wh4NhA0sGDbWx0IjsbLABKi9VBm8ZY3QYIvM7ZYY8C8QSnaVgIxRa8c5+Vb6mIhbqCWYBMhVUy4VvtUCZdNp+7ZzcEKwtcJ6hRzW/g8j10csLsZMckd1egTdGgkguqLBRIKIIZe/BlQkm9N0cKORv2/R7BA1sG75LUqfjm0GOyoPMQgLwUWaEcgZ3wiXJbO3bg1LTTZKsJHVWG3ilwO8+Eajb4tpk0j5zb5oJTlyB068TBl3MpJQ7g6mGwqAzigR+wyXYrrORTTCEaEytYOJR5gurziCvMpWiEMhJX4lbKcSZB0fCHgCakxg5lAkboUSSuDFx1toiMXNQqVxNEhMPOi7o0SQPjo6XpYawaqkIKbhy3fhpIi7ORuoWEETGLZnS5xOEN30Q/zcn/Q1aDEqFbyQdRwupsgpApZKE5VHr+Bl9oTUqDXMlDLRuovJshNI6B6AICDJHYqkIikcaCsXELd+iAVSfuf28hH5JcofwisotIg9QWslfeg8ytKFJDdIk8xOYkeIEhh1RBYkxjiB0XlEVwG2KI2affYQZpfviAiCklOT5FiIg0Yb9y1JBe3gDYpjEDr9D7sygVY21UIEMl28a3FoGdHFA5csS3F5AtkTEO5UVwDaRR49RvU3DdIpvHkxHaGug+xkRDrDnYlJ8ZVbCZLWh+KjgBLdKscsLxunt8JZ3AQvEdbrhyg22Ve9cEiOtgarAZS90R5lvHQ2QA1dvqvVIgBOChcAknUCal4MUk1bYmF8jhg/pHShubjch2SV2xD8yxPrDlapuKpbIPbZiyersLH31jUgUULCcyHg0CoKWledxtNSg7tlCd2WddkYVWbRtZttaIC8Pq9x293AkuX9SVfV5K1HcdjfEM9GlzKgGKfkyZTow4Jct9TiXtpfK0kvWXaRpJK+0nMTaSZ5SelzhpzYK42QbFqWgB7UtcaA7pXmjYbiU4AP5Xx9evi2neldJhxkoNh+CFC8NQyeZnYoyyUalY+goQvZEAAAAAAAAGHwj0xGpGiN4EUtEcKBqJEEw/S/5JOkI5VPgj6hdPD8qMKIk8DRGI6dKWJUvKEDSWZM6aE6SGLJKjAULsbLkQWZGLRYqLZdVYZIxW4t5ggItIO5iSzZ8aKFhtpsFjZjixhtOErZdItiEGheLk9zSoNU4pqKofSGx+RZBCx84ymyGuGA5AdU1cIo0zi6yxNvrpPIVcaXCDapfmweKq/gofXnjuPPLwLIukv/R7qmDxPZVSrpjBRFjqKI8E1k6stsdgUT6ATU7ojgZBAV0CU/oIYHeC/GzIyZrnY0hwjOHngOKws2qhchxNjPTWA48w6SQqaQXBRR6drr61wgPPBa4lRrGoP0kyoBKpGm0gPJa9PqXwPLL0yUnahYhOAYQSzh1kwR4Wl6I0U6swVju/PGWs/jRXBzmC48BdtzWECgKjFtvj8ZsEFwA8DCewj7UHyQcbRT6c0LgZ9H8h4HcJ9xJ0+FMRTgfFGX0Za2QFIgc40PfsQLxfzpQ+DotEVUIH30VCSEYCShNABDDweNHUiSSyCrTh/lenYxxlw+9NNL0Uegw2ictZplJm4m1l5+aoV8spvxSNdsCYctSSWEzsNTUZgoyVvHM2OUnMxRHbRYVkylCyZlXWdYlkhcSXJQ1SammfSlJHR8oKIXZ/MChqUkFix0RbFCLqmFjrYjkXQnbfa9UDp42texXWggmiY8hF77sjbvXMJUa4/SKHElkUcBMY/QrmSJ/UNq7ZT1YaVATvAZIbsFa/edKLjjEXHwsLt+4Qo56SAaNikvxe2hHymA8eyMtcSWyw76wrhfMI7zNSt77aDy2vGZ7GkjVzHJreszARTa5aVCg1U26RRACbCpMFESSzU9CLRGEtGjpsY0wvcAb5c+YYFmr9zb42yI4WgWHCZDejywz8+ge+RNoYJ6xycF9UuIiG/ZhgoBD7QnR/mw9wA5zYNMPqjT52DwN/5AzNGxb0aRlqZG7xtEI6RqqK2TScmKp/bFp41VAiHBvrV86nJFlVWG16NAXol93T3CPZDw4eM+K8FAB5rqhpspfKBIzI8bv8m6nLvN0IOLdfSa85BPgLU24CES0IYR9450kWvBElkxPZrjmcZHTAeXlsX2awnkxrbhNWgfk0kn5Ew69erTemrJZNLcnT6g9DanHJwTwhDo+IDTQC8z65g93MbQ6nephyVYALYpeESJ0U5aVlweF9Z2EqGkvWHcZkcPl8SSHtd6uFOEqO+9moknEkFCqomwHyQvE4OKIF/MFvKR0kmRiu+oIeB0FlEX+mh+Cl6WeqR1qDhkc2F7dXIA/gfKIbAA89zzggSU7ms3oTTTvSfWNTdEaE/M1m5qonnhab/eWhbY+yqGj0x4ahxSlsN9RXTsBwhMgiAhML8mVPTG0CYt4/GSWoNd579+K0k+bMej//9yvRHHmYJzwkuXnr3FjtYaT1Z06/eNFmjnZMTwpeIpjU6zHpTiisRZXZ8PGTPJhKL0sLYtUE/X0pIpCsq1QgA4OigM6j7eEfIX1SgckG3G7QaFxy4mb+N+54gmselFHkkzAiKkVsaziIPpwD0o0ZmWegQboBRxAn4g0oH/jPULyJmAsKJY2ySRWCIjGkdgxJOmzm1oZyBhSBAWAD2upOsXySXsKyZrYBWFnUIMiYQcIccsklNG8Roqrp4JOceNNlqiwWzhuh1A5xUksqoMkxqJ82ePkD3uBnR26EQ4uNWzG1ECAF4L20Qb+c/COsmz1UvUwBYzVAbEv2cLoSFj6r+9R88gyvJhR5tvLbORsR0zOHFRuiiAHXPGppnRO+l6bwaH6zGFoyPYwknoASG3J4xLYrHYpb1dJQWKAgHwjwUcggKHYrrSq/Vkkpd0hIfyZhTl8M/5GLR2FC9y5Md7xHyNWwrgNG8SGFLetuV93ZdCubagYDMXS9XtJGEnOXuL18fJagEC2QTFST9SAeISaNmbXeJoEePI/Xqa7pvBKCskO5/TrIOUR2s9nNCQ31qoIQCm6g7OUz+Bq4L6yAKuTi3dpVx4SGCkjRhxlpn67ZyA6zfoLk7PwGem0S50r7KgZJ5MLTIkyBypJLPNuiScRmjTvjIiycQuWIbmKdJSSHYMtcMvexH/sIwss+ArStA8+H/3/3NnSZWyB9XgNhohSQ10ZoXNjVr8mRM6w+MMKhv4kPnG49xYSrbqbNvhAh5XGUIyFcnkEjAd8POhy7VN9tYcTMAgYgeHRhhs4jh0bkLY6N2WgQsQdPRpYqnD4NfyM2AWuBcv1K9pg1toagp4mdgKdvdbmmVX5TZkxpp1VgZ2SiIi7QWJhanQJ/QBg6Uq7RUfkw/XKZi+2wa9RIv64T7PrgXiK4O0BAHc4Ruw9qOByxWra/7fmgHRuVmKprJe/eBiOJtky3L9Kjv7K5QKasi6FaWsk93ds5gjiY0lSfh1KHU+9NVC+gRdutQRkMiNIq5KvoZW9S93CgGyUvwE8fJ2AYPOJx9TBCNMPbqdxKEyIgprWoqtNDjIu394JfmKV5UJ9RShDQ26QqIF0S64uY3g8M1IuL0xppWgPYlcAJAbdHxmR7Ak4jKcBD4Ot/S6L7YIUkujpUKhUaYPq4rRWIuS557MlC2g9d1p2r+P62NuLwnQ8AFwo/rHRoXmk6Oo+NoiE3zxo/IZDxaOWR+H/zXssnGAOdlaYDOjVKvu7NqPFuLV4zUXkDRnPvB8WsQEi1MRaIlk9TurO22FJSCDwlFvIKQQFCstXBRBGZ1zjw7LrCTK+6AQIkraRTsjV2eQYB5PfBvHr44952l+Kzett6DFhQiHoD5fEKMsJBJI3PkzVdMxBJAJO5JWqYEpKiMxNmAxZKMb01XlJ5eNZDql/y2ZAtP2D7odN0kl2soY2mVf2MAV3IDVjxsT+j4De1CmWEYU7u/tuJN1DwxoMZsnBCOA==",woff:"d09GRgABAAAAAC58ABEAAAAAQhgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABgAAAABwAAAAcdHVF6kdERUYAAAGcAAAAHQAAACAAXwAET1MvMgAAAbwAAABAAAAAVldBZGhjbWFwAAAB/AAAASUAAALul/GZhGN2dCAAAAMkAAAADAAAAAwApgDFZnBnbQAAAzAAAAGxAAACZVO0L6dnYXNwAAAE5AAAAAgAAAAIAAAAEGdseWYAAATsAAAmCAAANNioiGG3aGVhZAAAKvQAAAAvAAAANibR5fxoaGVhAAArJAAAAB4AAAAkI2keimhtdHgAACtEAAAAawAAALrrUwaSbG9jYQAAK7AAAABmAAAAZvDW4qJtYXhwAAAsGAAAACAAAAAgAV8DYm5hbWUAACw4AAABLgAAAigGlVyLcG9zdAAALWgAAADbAAACI3lz8xxwcmVwAAAuRAAAAC4AAAAusPIrFHdlYmYAAC50AAAABgAAAAYgfFf2AAAAAQAAAADMPaLPAAAAANQb0iAAAAAA1BvQ+njaY2BkYGDgA2IJBhBgYmAEQkMgZgHzGAAGZQBkAAAAeNpjYGQtZ5zAwMrAwtTJdIaBgaEfQjO+ZjBi5GBgYGJgZWbACgLSXFMYHBgU//9nAfNZGBi5gRQjiA0A2JsJXXjazdHNSsNAFAXgM2mqUDVqG+u2U5oMWH+3fQRB30UFn6PQRe2uD+Ab1KVrl9IIhtBN7L7uguPJ3LgRRHDlwJczM0zI3BsAdQA1OqQGPULxCfXGXeX2a9W+jztmFx3OPGj0MdMjPdYTnetltxkV8SCemsCEpp2F1vKsnBn+cAbW2oVN7Hl6m96k12mU9l6Ll1bynFwl/tzOPzp7cpdfxqa7b69a7bvvirKufsWnWYU16yGNOF9jjkVZp54IbDBzUX5BLwW22IKmQABEhcA2EA8EdphTgV3ABAJ8x4QCLWZbgOuMkZX7rHl1QZecHzDvnfI/qNWTAxwxcwc4hnpfd4ATZsMBTpkPDnDG/rDOr2Yqjw/vWxdV1S8ZPv7xqP/xvU+fillZAAAAAAAAPQBbAFAASwA4eNpdUbtOW0EQ3Q0PA4HE2CA52hSzmZDGe6EFCcTVjWJkO4XlCGk3cpGLcQEfQIFEDdqvGaChpEibBiEXSHxCPiESM2uIojQ7O7NzzpkzS8qRqnfpa89T5ySQwt0GzTb9Tki1swD3pOvrjYy0gwdabGb0ynX7/gsGm9GUO2oA5T1vKQ8ZTTuBWrSn/tH8Cob7/B/zOxi0NNP01DoJ6SEE5ptxS4PvGc26yw/6gtXhYjAwpJim4i4/plL+tzTnasuwtZHRvIMzEfnJNEBTa20Emv7UIdXzcRRLkMumsTaYmLL+JBPBhcl0VVO1zPjawV2ys+hggyrNgQfYw1Z5DB4ODyYU0rckyiwNEfZiq8QIEZMcCjnl3Mn+pED5SBLGvElKO+OGtQbGkdfAoDZPs/88m01tbx3C+FkcwXe/GUs6+MiG2hgRYjtiKYAJREJGVfmGGs+9LAbkUvvPQJSA5fGPf50ItO7YRDyXtXUOMVYIen7b3PLLirtWuc6LQndvqmqo0inN+17OvscDnh4Lw0FjwZvP+/5Kgfo8LK40aA4EQ3o3ev+iteqIq7wXPrIn07+xWgAAAAABAAH//wAPeNqNewl0HMd5Zlf3zPScPd099425egZzY66ewQ0QgIibJECQBMBTvG+J1LUiRSmiFFI+JNlybEvykTxFPuRNasBIycrJhs5LYmuTeUqes9zkJbIdO7EVO3a0sSJZXqG5f3UDEKXYScCZnuq6uur/v/+sJoUo+GNe18GForqiQpR5/V2vemel/My3mX+mHFSQ6qAKFNYVcaCNPUUcaiMcLWLqBpSws4xDfKsDZbG3jE3tVgxlqVKX7AyjSrTcj2pCtYDi0RiHXFS1XnY7DfEYI1QEa7QRo1+LNqPwWY3HGlF0tbGl2UynG197KtqIwof+lva7ehLqtzSQiD6unKJgvTcV5nXm+5SFooQozBStRYW4EEVPfAM9oZz9hnIWfRS+2h0F/RnKy/wV80+UnqJkE3LYEMP85bvFX0efVQ540ffQT5TFzRXS7+swbwzmdVCU6PQgd7leTZkQXGD9BhZ9PYQ+FprvCSsvobFQyJ5ypkPKOTo8H1JOh3rmwmgCqudDdjuCaiApunmTeo35AdOgBIqiqzKql2FOsnuY1BBDYfQR6A5T9nRmYE7l5dA8CkLFR8Jh5Ux4rieEJpWXw2RdfwzrisC6YB65CjuQqtpULEwj/bHWrxcW8OG1kbdnQmQxZA7lXHiOVPaQeSjq20C3bjIPr+4P1lSV4jEWpoz9guXQP4ex50K3bpvsi7qHOsecZe6kzBTVj2SUigopxKFzpii69AY98nfKR6IzeCGKjn139bfeVB6O6smYe6nzzB3aGFnwoH7kBop67v07dC46M2CMKQ+9cZ7e9ia6GNX1L8SUT/49kAyelYb1fp4yUh6K0ngsxJ2iwd2DgOuVcl0CSjKvn3337TNfNIQjz3/rC+GIwa28orySRpeVHyHXH6FjcafyQyBV3I1k5RVYR/DmD5g/Z16FGUUKYW8R629ga7vlUzErSv0oggSCUpcg18MI1sihFIqaSjORv5dn5O9FZoqWDuVJ73RE+QiSZ/rMPkyfTslyavXpL3ssA9Ne5cdhkxclVDpR6KPM6/QC4E+kMFXEDEiNrtjSq88iqCWShj76DY03G39dFCA1Bzz/fZDCACVTg9Q4tY36JoWtRZxv45EiHm/j6SIeqOCtbdxdxrEi9sDcc6pEBts4yLeaII59bdzHtyahNNvGs3wrBSWx3ZqHn7r/5QH8zm9RrqyZwzoeM9dbZfQOrlynrjG6cqUAf2ijhAf9qNUMCiI2NnGf8JInai4VhzYlPE08Ka7krSPNZhPPCivu2BiUqFbeCl3NTTwitEo1aBoXW3UBfqeFa8EUNUTGbRWx2Cx1OZxuD2MIo/IAclfKcl0GYZNSUow1sAZPldyXPW6P2+UkFSA4kh3JdRDHusoipyHGwti6HI3F604irgDmXCnvRyZONP7PiekLx4/0Dgz0Hjn+M1Loq1cXl28sL1brpHBi4ja77RMuZMzkX0uUE4my0bTtxDaT8k808yfk3uejGxMf7VF+buRNhl8NwCwn3j5+pK+/v+/I8QsnNmY5sbyrVg8azMdetZprD9xXicf9vsSZ2uho9euVRKISBz168ybw8gfMXRQHqAtQfmoF+JoFjmGR6FOEg8VWSMWEtKYyU6hAoKdT1SVriDEVJq5j+8oMU+5lfcol38gmv3IJfTncCNvtcvicsPXcRDY7kaWfzUYi2dWDrBwM1ew8+hflz1StfnOV+QfmNZAoA+WjKFcSgRJJyR5CXyAnEJxVKc6iI8pbFWRC//hG5ic23sIbjGZLrNIXCLndPMcsI1OX8g76+U/SP7Y7nKFgIirFKshi5MxWSsU7oj7HfJ/ZC3uk6H7aHUFEzD2qFNmJHElFGkmMSWr0AFqf9/R1O11Wp0dJWPRC3pfw6hjlJx5aakgml9rutDpdPb3QbjLyFr3Oq2eQ4CXPOQm65ALzGAXErUv1AQSAUB9H0AJPsyP1mYZYEbEcks5xnPNv/9Zps6VrNSiEF8JOrQaucAOFWu15tQkKaZuN9Ak71yuc4bA6mNqwO98BDkaoFR/hoaO94vCZs9cGHYwpi3Cg2Apqwl2lOmD7BLvv/ZNhTR0USqNnn9IpbxhYMwdaOBCOJTvzXTXHxaeU25W/QT/8PyjyhE75Fmsy2ax2m91iZY2INj5/3+MoQniZohLMN5h/A3ucoxrUQxQ2ENnHiSKuV3CmjUtlhJtreuBaNEgZs1hSFUIepL7aviZU81AFGq8bZVtRCgQ10sRBAYebWBJb8QyIaR4k2WMgMi2Ira46/FYFbG9iq4g5kO6ERxCvUVYuDHJMJJhsTZPdWlWKGTRZjRFUqfcOIph9SG3S1wiiQwgEV0oN9R87deHiqWN9gwEpUCnP7/jGjvly1Z8KVOtTdfjQv1IjvzWaeuDsicFNQwPHTz/oDAScR3YuVKq16o7Fww6vF2WlWk1aVi/L60VCpyUqyXyceYuyA6+yoD+xm3gtmCnizgpsH8eBTjmVTnwZs23Mah5Mqk0I1WIJYUJN3CG0XG4gQEpsBYKg2lSN1YO0DWURbEnbv7b9VLTEolu2uFRPIrImlKwzjfruvd/atyw36Hf/AtEPwL5gd8yAVK9Ly8l6Pal03rFvj9xsynv2n7Xq0Dm1chmaYS8S7OXrzNvA8xLVS52msEX1w4Dn3RViEKqwlz51L3rguZ7wPN3Ger7VBTtqtK/xjS6ocrVb/es8p5tYL2Cm2epKC+KK2RIg3OaFVq0bfhtEN2OXgB1N1Y8D/tVu1cXqPeFvXNUaH6TIrUyWgJ2VrvkdrxDWApsHB4DnD5w81j9QBbKotJFq64yedwQCjiO71rh7xOH1iZfOnhwcBs6foU+qlLqVz0AaoM0iJQGf3wZfMACyAXy2qfIAfE5WwBnFEaBNWqWNtQzkIVQBEcXxdqsTiKEnxLARAWi5PbD1uNgS+HU+b8DW4YmWavJ7lulWHi+ucRIxXYjw+Nt7d9cbhL8EwszgBjrf/aRNb9xgMf2Z98BqpHbeNFlPMQplopyg06rUMLUA+7qIjNQK6NXstfTSsfMJT4XAdLC8IhLF42vj+4ordPN0pVLB+9ot3cFyGZfauFLG+3hs67ghtPbuh6ZoG48V8XYwMg8UsfkGdrexmyfWBtvb2M63ElBKtlvlGgxP8q1euM21cY5vLUHpYhvvLuOLfOsuuDnfxuf51nEoHWu3LgHtQm6Ajs0qAnRavUlQFekSlJZyoB02je/YCdqhdddFIO++Jj4v4ANNfFzEB0F/UCJU7mhin7CCpJ1k9H2sIL5ktrvcoVwvGbYvCveG8q7F5T0HVCXjqSHwllwo6nJU6x3E8MdjUt2p6R2CRUAiqgi33tbiDuBSpaz6DtAbOVUhNRAmFhHYDKKaZCEOnqQLunnIF5y+uEB8CODxRtEl7ERe5U30l8qPkXfkOYSe+9yjV595IpSYPxWwBJLzkyn07tXl0XvH+icm79nVuHp1OTkxXyhsicyjLx37eDXPJiI+l91i9EzQ1Y8fO3XlChIeXdi/NLR04vDwxJUBuXPMbrrS16xvY25HR+47oDx9P4o++MILDz76/HP/+9ls73K8Npvtk1dPoWhu38LF+7bMbt+ufOTx2Mj85LZCvpv+2PjhSrZHb9BbTGaTb4auHH730Dh6e/U6PTg629so1g8qD6PNjYlc0mlTvkhKEw3l94i91gPu/q+xn/GAXumlDoBeuYr+hFp5iCDOHy3uIYh7sN3yHC+XV/ZB5Upwx2WCtsNtvFDGRnBCK9hCgFYfg1odCNQs9NRZiDnUxUxZbOHxGWhfMW2+m4w7214xTJ8vQ5+zZ0ifs+eIyXxM08FtzPMtlqgnAFgvUc+4l2+V4KbYxkW+NUHcWZgMH2y3TkC34ZMA2Lk2nuNbV6DpjjK+t43PlVfuvUKmvvduU3blyr2keOWMKdv6kOrxYgncWCNbeIVqscbCK8QHfueh69uJD6zHRh6brnNgBrD+utpxfIJ0nBjXOuq/fX1U6zjB4+nreJzHm6+/bOi6Pk1qdXi4wOGh67rWSd07HD51XQ965ppBzzqyDHVtaPjkKdWhftFgGto8rZZVp7oV5UGEdL4gEYJSL4hFZ7N14iCI0uw+UEZzAl5q4itia2EH8aoPPwQNviVoeBCs0kX4NYq/S/Henr5t8weJ2Jy1wAwJYpOr/ahSjiA2tYZlJzhEFfCxPaoopCQ9hE9EoYN4rIGehLig2+xISIKqHwANB0Pt4CRqvVxCGAYTo6454iB8qrBBR9aQrFVqFVfFFX//cwoQ+e8sHp6PD/fqu2R/3xBntdiGBv1yF9M7Ett50O2iuWP+jnBnx9Q2wX7UaMznggl/yIP+IZ9ZejabL22f0kvFTHd6eYkOBPRdkVggGI+XsrPbTiSlYDoY8T2RRc9MHnvuOZ0u1OFIJ/SZondgJIyCh+9vmkxLen28Mzk2k8oldfplk6l3eAAzPmXVaDGYmv2Nw8prKDoa60yyOiOrjPzGXDrB2juLWQO7hTXq2cU9ys88XmabyeS12IyWxYfmi0a9kX2O0/3V3i98Ye9PZU/YQzNLLJvcuQ1ZNnzDt6jLVFDT2uCFIfxIsfUoOIStJrEzm4A1LkLQAaQ63jIEz1qh3lUt0sCXVIFOSZ6UJNc90JiSquvtcdK1IhMDHCaDyus+ZUrVb24P0V7gY9N24vjaaUMIAdfDuvVuEaReENKzNofNIjh94fjOsI+3GnQI0TTvtLstooOldTRD63R2vd5AI1rHexIx1gZONGOyb+btBofNbrTqrYLTagJfnEaMjtbrdSKrhymMVovX4uAgTABTaBZDmWAuHvE5BSsn2swGHUPH06FOq5MzcxabyWKzWXir3WwxOkJ+Cy8GwqzNZgqYAxFHANZjtkSWnZFwBiwtQkbEWG06J0fT8EDGbnNyrhDypgu8xYz8znDAbDOx9nDQJdiCIRb0IMuLAm/TGywmmwWe5rR2htJxou/ojbyRAzxCiMgDRcy1iRdIXD4w+bVfkLFCgO0qEQEiTSAgIVRh4yAwsWaM/glc4LMqwgW9dDGZX45F/cx8zGp+wnD14v1a63ovZfLinRO5Ks1cQLw1cuCCchXd8/41TVL5tchwoo1lbW1TRey4Ac4KzpZb06D24g7QAU636qH8ouU6QCrrcgGliHQWUB8i3ikIYlUmMACHnCgGtwfsIEu+zvXA+oPb+VvOlh6PSD0Wi9lpT3UJnOAN27N9A2NMpBbxZflUnEvGOjwxKX3bzKF9H9jq6l8jnxflY7TOOJChDTod4iuhqK8WiTKctaMWcQpGZ6dHZ094jezsxEyhQlG6DTp4gQonQYq+t0aLrRU1yNKpQdaiKfs72Yhu0ZbFWVD3RZyv4EttXCvjShHvreCjbSJy+NQNfF8b54ltogpgeZLgLPHE+cXLbbzMt7ZAaaGND5SJcLZO5UE2S02cFFrZS6BV7xMHTbwjKnRuGh0/R3IV/cJL+pqpPjwxSe6WRby12VrYAm5OdXEJrCSoZocO7kyCb5Z0iAgtfhLmyYorydEJ4lifE1qdw/B7SfzdQql/x+49+zW3RuMgSLrmToPoa/4lW1sT+4oaRBG3JR5LCaoOiLLxNZnWeMcanGvi7XE7WQ0OcVe8FteUcm0DGp73BWqa+84hiNQAvAsMQ3O2gDO9ZLfm43JqJOKJBZO+ZI51s5yONnZwi2O0kT72JKps22V2uFk7a0r4mg4jZzMKtSonObw2NAwzfXXgq/BZR1FTdCaz3cMdosXodEv5RrARY/UELEaDxRDwurxCcNBC61ibr3POYTbpGIRCXCAk2PVOpgfdTtvQzgHBF7J4PaHYuCzlHVZXRjTbO3NcIpbdEyKQK5PnffWiBryn69XeeGfCHfKKzd7hVDGQibgBWzdv3lwFbB2n6iBjO6mD1OPUip5ga7yNe4q40iaBIOAhUsSzFRxr4/0QMxwq4tQN1QER21jkSYKwdRi+pRSwOic3pgmrReF39IVy3zgp+8SXuEhH/8DonAqJnnEw7YiyENOeq0CZE0sECwsCLgBGxBddqaW9+25XcSBpdnMthNYi5/otfKrIUc2Mawwk9pwYazeRZtUGrMMBDDNJYYYZjuREkoT/FUAC4AGlkpem5ga6o5FM3eP2OzviTrfZ4nAFdvQqb/Se7ohXi6U+E88li+ODPQF5qRrv6GZ9NrtelysfrW4Trd7a6GDO6q3G44Po2hObH3988xOvHkgmUqFAIVfunZUET1Bwh/2BZCqTSKQ8/kQ9X6zKi/4A8nvTiVDg16aHJWRO60W76OK4oXhnik4vTmbowtTSZBahwtHHHx9//HEtj2QGfn2HCVADJM/SSzhFt1foXqICaIk4jYPF1pB2yKABel3h0ZrC06TmAxoPsE5U3obYkGyi2e8eG+qvDR11OBwd/sJt6Yg/1Onz+6eOn75fX1+Ws1PBkV5LoaO30dmLJGnz1JE7HpnfMr2T8bg70UyfzmhqzJcYC8uiYC5faeZ215sGr1terkfDtni86WB9/VnOcvjg0a07SlWvh+ztrZsK/QbzV6DnytSKh+yNKmJnBSNAWZkkeCHIMwP+fBDG3sB0mURsQrnlV7freJ81Mrxnjt56qtp7TyYfpw+FgjrmK8bnXkbfeepX9zSHGeazSBCtwTufUsLou5RtTc8epgogDf3UbdQ8dZa6m3qYeoL6DPVl6k+pVylKIDjrQR43eHIQAgNhAXMD8NuPSECcWtMorEtzLkF/9SAo0xBuRV3RmFSt94A+AvqSAjnvyaKYJKuQBnsVRiRwZqGSrakZgwIi23Kx6ng1qwvTv29sL7qlxa21uNSmugSTwmo3WFpAql+Vkoh4rOWIM4lkbtP/0Fl0adZqtuk4eveeA+WFSrMYHIsrX+/aUUWN6p5gZHNgLNE4XGZNBnRU+ZTBZDJ8ycb/Kfk9vHb5XiGVLqJGbjQtRROFw8+LBmdhtrjsFhkziwTWbGaVfyHXwxuXjdrPm9kjpHiExXqDIVazO3mj28HqrAzD6mlLwGFg+QJrtfAWC48m89u8/k8zTFjPnmEs9PhEbbf8ZM+SR3Rmx/O5VCxZXHJ5PMqLnDl2iDM7uZMGs9lmNmefzEx5vLnJwpPZabfv0hFWKEwrW8+hYwL6GgfPZs0nYQlQWuIsgFnLFq1yu83GWM3uYIDjbaIFMTbW77TxJg/P/Casxmi0qLFiL8jkV5hvUyWqj5qhlqij1D3UipXgd1cbHy5rRQjc5op4pt0KFCA8m+Gxq73C1PZBzIdHi1gC63xMPXDpAutcxl3aKUV/ee14YkEz0FNlYqMPwk2wjJ1tknKgWjNz4PggbxO0pUjyTYJmAwEWmkNNToMImmqaIc3SqiG1IxcbcwhaHkAg6RqHlsmSK+rwEIoza6c9akpBvrVrb8SNEGMw2gQvfd4r2IwGhkbucNh9lmZYE3hE3/i6V+RMBh191v1o3O2MpTojZ4CeRvPbJggyjM/LsUws5nLFXiOXRGeU/m4+tvolM2DQaDYbbVCgdyTy4Ss23uYwc5zZAYUraPUB9D13MOhWQu5kgn56zG4yEsPIgLKxj60+hP7B1dHhUoKuaFTY6BgOA49cJJ4Xvgtek0glIKKfobZQ26g56hDI94fA5n0RpLtN/QjpkYi6UAPdjT5FUQ6I68CvqEHIIW/k81Qro9ogKUVcBIcaJ3qIFq1p8h+DeldJy32S8aCACd0NHrlLdshuFwsyCjNrBiweY+qqol6zUURIVT+1rqruInLBQ6DN4YmlgLnAU5WVDmIMQeANhN9MgvhK5fpGfkcNZKMkE1lAMQOsAZYY068l7dRUZQit3ZH1EkW1PoWWwRTU1J6gNro1K6HllW59khYV/5JHaUZ7w3sjbjYJwzZWqXlYLo1IYbS2eXXxawuVSTRHJiii9Y1BBK4ubKexlo3MF1AkkBue9PrqxVzTNHBbLGYO+Br24oyv4y5z47AUDYQFIVLKp/aVjXRc+hWvJ50slSbd1RlXIAQBmAgR02dHkSAwsV5H2uWM624fG6tLXRPDHabhzbFofccDoljYKWWDfmN4e5fZEPMzA2ak+6pPQGXB6xW++aY54FK+Kfh8wjf/Fb04cHKwdjjKGW1Ou6lnUp7SoX67u+fopRM548ihUfYBJIey4WD4eDgUzoSaB7q79wfD6J3uQ0PFGRfUhDJhx2xp+HA+1pfuGx+HC/oyTFk/3GE3soKJN3VPyZM61AdzHnnweM646dCo8RLqsFkSi6nefKaQj20p2byOnT3drNHm0jPBREeqWN5SiEU2dXtC7mgwO9xnsrjNOvSDUGeo8mXWYRb9lt980mHlnZztBtTRn6ssRTM1k6kuxSySzhwKKoeSUtyUlPLzid4BcVOhH/1ZRqIFsSPBmXpOp+NxJO2vrX6nt1YBZDgnulyzXZwj1NH7exD0dv/F+F28DkVDw9NypUtaHZNK9kTfWCIeN9oGP0+HQ7FSvpqSQcl3jgd5fjsCFbLaGQ34Yj4UsfKOgDfmU75z46GTA5k457BaBFNzpOrgho/3DVwu9w2UvusKhVyvyrF4PCa/Ssrf7Dkgy6VyT+bRE32dSS+pohfJVXk7ke27sWVTatvgwFzqK+qMdtFqMZo+MOUfWlysy+sQ+6V6zO/n9SYHnw8ydqvR4LOJRlO4mSx2hD0uk9XFB+zWhMFjiZP570l/jTUh5BdF2x/caXdxdsH8m+ikKxx2kfNF8v4I8zrEsHVqmPo0tcITY+BvY6lI3OmoempdBs0PBmCTmu9ztbGLb2VAx0N7jG+FoSRD1MuTYyliESxtkj4Ee9JbbI2A2x3LgNvtl/Jl4mqHhVa8RFJiMQkca1ezmzjWUWHQFO7MyI2evn71iDkvXnMWBwZJsSxAgAfxlkDknLggoOE54sUUkLgWFqliHHVVoBpqVX3gWdOI+lv86A45Sv8sKnfA76oRfm9LSUObprddHNEr//qsaX6gMFuAz3B+65az05uGJLq5uHnXrs2L975vUIeMXv+1of6kNHr/bCh0sjxQmFmcKWRmNkvJ/t9eWBhbWNDyFUBG/YeYL1CdVI3aTq0YCFWBcuEiRLQI14sY3SBU9vMtO1DN0m7JQCm7HyhlcIWTZOMWiEWjhFJhlyC+BOGIrSOnkjAp4KhqS9eCwrXtR4m6VzW06q0REqwd86BbiMAP9h8/demRI4fOmpTN1E3zSK0xMjU0ODk5ODR1fPLh/umty5dOHe9nfuNjd30MPvScAneDPd2vPlIuvSQveH1p6eFPPSylb3u4J9Ix0H9c+RvS7WOwZzPZuONB5vcpE9iwLDUI+z5AXaQuU39I/RlF9aH1c4B6VVZZFEZslOzAXZc9a069I0rOaQyosmbZK2vZTWIC9Nowtwdq4zXCa+hbB4Wv8p+od91/PrEMSru8ruJT78VrHpKVYzWTsab13e9/e4HkXVGFAa+DdaFHlMt0SbkffWgun/v07mPT45N6hbWVK/Pl3fGdpZ7Rnce3zQ6j/ebO3FP76KMf3vHM7Iczqavb5q6mMvSfF3Kf2D54PnH1avL84NwncsXH6nvO7a7X99y5hz6azz69+9jUxKRBYbmu6nx5OUGm23XslulGL/p2VRsg6GKK79uUlkPRfrlnYtfIUOq8e7JUiwQdQsLdMyI1Q/FAWB7Ycfv4GH3PYyjxhVWke/aVU5ZL6EMXLil3XfjHP5yZ3FXpwndsTneieHxfly+cy6Ku0VR2VulDR2cXd21RPoXuWxgaGBntH1qoH5ydmKvl0MV3t+4qyvPjWz57fl+jsb/Z3NeQ/99/MNWfDuYqyO9J+OycWWe18554pr+66A+iWEfPYDzlcXd4OJvFYLPz7nhmoFSohIDYg8xvr34SDSo/Uh5HkXu+SNkJtiJHmT8AbCWpPGiqHeAbPURdpf6Y+gvqp8iMIiiPxm5FmeMWMKxF6J6NOCOqisZ/EWcGDWe0vI4z/X9lalk7Wv53SKv8h0hLGT6AtKr8vjEccn7wiaS72oeoRu3gCzwXAa1vo/aBbZBdqMJAcv8yyf0LmiZxxbWTfwFdVh4BeF9Ajy3kc0/vPj41OQF4NB/a3t3VGdlZ6h3ZBfDe8Ul0uyWdn9q8nz6+DvA5AHgnADz7iR0D56THHkueG5z/RL54Vd5zrlSoqQg/SWY8Nq0iXJsxvLPYqwqMOmNnbmp8H735QrAzd6YjBBi3DY0AxmOA8UmC8XPuqUItHHTwSXFwON0IJ4KA8YVDE4Dxq0jSMH6GOVnITc0sH5/bIl3w7u9vLNfquxuD5YLnUuf0ttN7Zqd20W8+Fq3U+rbePfDh2enCRIYeKGSfWhi8M6EuettTueKH5d137K5WC8U7d9MjZz589UMmcyjQ7zxYa3jdGzKEbts7M7WzUmqdndjmEiN7u/yhXPbTnxyTsluUfnRMlaFPonsXhvtHRvqHF+qHZie2VfPogXe3LpbqaG5i9nPn9ssoGNjf3dzfkJ/55ZP9yVDe61uXIs4muBOdRIpCsY6+gXh6TYj0dk4Vry4iRAiBRQIx+gQaUn6sfBSF7/kCGt49O5XNy7XFamO4sfeOvY1ErFHdXWsWcs/8kFlRHsn6/Jsu7VSuoBNzS/k5WXkGjWornl+9f2PB+xpI3t/dvS8YlDMXPj39/QvKzX5/yGx62Ovtlo8gnepSwHcb+BVfpqrUCHUfMlDkVJ+v4OE2PqMeQI628d4iiT/HyMlgDuLQIg63yesvEGBuKeI4WMn/pvobtTauaRlgtt3KjUI8yvItCW6nIN7kW9uhBAPD2vm2r926X3tFrv9Hb45p53tSgcPp67rWlP4dDk9cf7mff2O/1nIcWk5cb3n172DPdep3PV4pPTF1/ERh7Q/9jsebnjhR2HiPTmIhkrXdAx7LlIDvbuLt4kp8aS/xYMICPgSmepgRRGxtYqPaPCrie5qt8GEYtP1QU00ar71usSH1cAuy7JBBr2SRFkUYtITIWobF4CIxsJo1EbSMSlKorx8tVdRQiXTm0EYaUvYQqWfUNE1sXfWUEy/EyyGf4LGxok8M/rSe6rCNI2kw2bL5Ros9etpi94Yz5fgLiXJTsL5gEQTLC1YBhcaLUcGMaLMt1GE2Gqyiz2KBsMSk03UGRYuu1dGFxo0Ob+QHPqvDoreE3ckvJsrlBK3jzE6rntPrMvEqirGp4dTnS8FyOZ8p9Weq1n3xSiW+epNGVkGwrt6E62aUsc02theiTgjOOemP7JzLyLgsJiuyRl0+1BVT/j7mDSLaqLP4rS4NX1vX8LWHOk29TWFzkaQifEV8so31xZZhvlLBS208TBwu3F3Et1fIOxbRMsJnboHV+MbbFG7wv5LDgK69gEy+dRQaQu3W2TUwMW/kNMjUADL1662qnrxw+fJA/1sF7WjZAPXsdX1rnoBs7jr1Ilup1upza0B6yQC39bn5QuE9MI3XyOs7xR0EPnYB9zexW2xlBojH55uFJt4+ThLQw0sAH9empur3DTRxt0i6lgTcCYBaS/exTs0PTGm4cGkwI2EyQRC7YYBYgi7G44BOPaiuQVBQ0faen5OS1XSM6mDrPwi9cDT1v3ygiqNWGw2gcAWSKmQAXbEyCvp4j521ebjkv3VNcuMNQIan462CxQqwyIxkI3YTzRjsUb/dgQIQQfFW5TV3wkM/qUJNBR1tSmx2eX+9Z1PSFrUWqiOlHsdD8XI5TtPxcimu480um95C02hTU/muGfljLj9irQGbW6e86dg5uKeWpPWsgbfYpecFjxDMfoamCZBXFbiuvwP4Q+avqQhFkTNxIJJL3jhUWYv6o2oexcVM9Q9NRL9/DVzjpERLSfCOlc3qDfrZxIV48p//Wa0T+M+oleoNyX+DpjPRrzNtqos6r75zz6mRVKhN3mErgE4rq+AT2ljgycv2ONLGEZ6kiHFnG3fyLbOm5yokbhJAmZADB2GFczEEJn7xmhuiXRIEdAotm45gxR0i51fGjqh6HJFc84fBEYAoST3Hh3hIi5oMMUmtX+tBXBlySmoYOn359NBwccu+LcVQpacc9if8w+Fybzlc2rJ3a/Hnw6eHhk4Po58pxtKWYnFLiU6EKiH4KFXR7xfR55V94XIYPujPi1uL8Fk7r6WugHzeDXGln5zX8kVsaN/ykqUP3BP1JXb3e+Gcw4QI/T3oRaEgoBc9lYXy6uOVhcp59CB6MJZcfVxCI+ieXFb5NbsdHc/mlKvQWFmgdyhfQwOc+swnmX9kTgPtp0kmXDs8V32n9VM2Nd2oSoKaYVShn0WawnXpnCRr7iHvIpOcTlUiL1GAn+SMAMrMvNVuHfO5HbzFXCqGBJ6zmY0sazTbOF4IFUtmC+9w+8agE2+20rlI1n75YT4btl++bA9n+Ycv2wH/ly+j/x4UOaMBIaMBwvtaJenU61id2Ui/YDTpDYzemaxWzSw5lKD1Rs4R+P6/m8GuzrxuY58AGp+B/e6lnoWIC+HPFPGOG3iwjQf51scASefarc8CkgZ3COKLzx586MrVp8kBF9Ebv4w45V9CHLVLed3wrHu1xbXmjUNM7Q0GVbHI9Vv/3eIGk2GG+K3j1kaqY38JpRH/iymdZ+xiHHEO0efw2nie8zr9opPneKugN1o4we602O0Wp13gdLpHGU6ImTnO6fC6fE4PL5rhT+Q9Tp/L63BynJllBauoZy1On6fDFxacTiHs6/D4nDrdL+eb8IvYpvybaOGQycq7vKAxM5l0NOJz221mRme0CK4Qa+YcntBoyOviLEab/VPQmdaxZLlOr199p/hAvlOKhgMep2izGg16RLMm3hk2c6IvlMx0na5kpLDfwVlsHKWev1MXAQcnIEpyUF4qSu1X36Tk1f/dEyyS9wgdRawD8Yvd8sKWf0P5CFAytVtxAIqfB5XjJCoHe9VXiF0eomOCUN3yeNVMDXZr2RjtWEdQz3UkOSpEHVHEpCRiiYjoZELMYiiTCb37fChzG7P47vMJRlR++pd7TtSSQKyJr9GHg+l0cPVpcqUPrz6NXlNe+vwzt5XLt5Up6v8D0sqMJ3jaY2BkYGAAYq8ZVuvj+W2+MsizMIDAFekLv2H0////OeUzwOIcDEwgCgBU9wyfAHjaY2BkYGBh+PeVgUE+8/9/IJnBABRBAdoAgOQFMgAAeNpjYYAAxlAGBhYGBh4gBtHMQHycheH/fyB9BCpWDsQVULYMiGb8AmbrQMVAmBGIc6BsdSCOBmI1II7iyWWI4LBjiEBSC8VgO7iA+BtUzEbwEUQdaw+DgHADA4N8JkQt2J1sUAYDALliD8kAAAAADAAMAAwAWABwAIQArADQAPQBGAEyAUwBdgGsAcIBygKwAvADJANYA5QD1gRqBNAFXgXABvwIogl0Cb4KQgtwDEgMtgz2DhIO5BEgEcwSRhN0FUwWfBeWF8gYTBiGGP4aAhpsAAAAAQAAADIBmQAVAAAAAAACAAEAAgAWAAABAAHFAAAAAHjaZY/NSsNAFIVPTBWsUFyIi65mIW6ENEZa1KUUXQpV6saFqcYaqbWmrahLH8jn8OcF9GXEL5NpEGWY4bvnnvszkmp6kS+vsiipzi3YU5Wo4Dk8a459LStyXMGx53heqzp1vIAnc1xVV8+Ol7SuT8ev+L8dvyn0Vhy/q+a1HX/AnYK/fNW9M6W6Uay+EjU01j20oQe0gZ50q5HNd8j2NUWL2eISfaiJtrTJ3f7lM3+cXaKMrqmtMPgDhf/qD3ANrTNGTXSBs6dH3mKfCHVCleFm1OZz9l2PhEkD2LBBnrtGOUcPdGWrRtrlX41y5swf4Mo7naD0yuxsw2Oqp0SHtpfhtLihmnRraoc3YnPDG1LRYuOEHrH9dz6z+HVCPC43NTrSHUpKLsv3+AGe2082AAB42m2QyU4DMRBE5w3LhLCFfSch7Hvc7glwRuJXAAkhLhz4e5Bw9QFhyXK5XFVdclVXv6tb/b/sZ1PV1EwwyRTTNHSYocssc8yzwCI9llhmhVXWWGeDTbbYZodd9tinz4ADhhxyxDEnnHLGORdccsU1N9wy6jy/fX28DHLbFCDCCzAxFkwrMC6mJELAA1iRWPP5/mrt02O53/+15FF5eShEUrekDC+numr8nYSyWlhVPql8Uvk0llh2i06RYyoXLeXK0rhmuZI9NErOSk5iPIrpKcfPa6j7N9QJgZwAuAH/hbABjQBLsAhQWLEBAY5ZsUYGK1ghsBBZS7AUUlghsIBZHbAGK1xYWbAUKwAAAAFX9iB7AAA="
},r=i(288);return t.prototype=e(r.prototype),n(t,"meshim_widget_widgets_fontLoader_ZopimFont"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(e,i,n,o,r){return this instanceof t?void a.call(this,e,i,n,o,r):new t(e,i,n,o,r)}var a=i(26),s=i(32),_=["eot","woff","ttf","svg"],l=["eot","svg","woff","ttf"],d={eot:"src:url(@@DATA@@);src:url(@@DATA_SPECIAL@@)format('embedded-opentype')",woff:"url(@@DATA@@)format('woff')",ttf:"url(@@DATA@@)format('truetype')",svg:"url(@@DATA@@)format('svg')"},u={eot:"application/vnd.ms-fontobject",woff:"application/font-woff",ttf:"font/ttf",svg:"font/svg"},c="@font-face{font-family:'@@NAME@@';@@FORMATS@@;font-weight:normal;font-style:normal;}",h="data:@@MIME@@;base64,@@B64DATA@@ ",p="'@@FONTS_URL@@/@@NAME@@.@@FORMAT@@'",g="'@@FONTS_URL@@/@@NAME@@.@@FORMAT@@?#iefix'";return t.prototype=e(a.prototype),t.prototype.setFont=function(t){var e,i,r,a=[],f=_,m=this.getBase64();(n.isIE<=8||n.isQuirks||window.document.documentMode&&window.document.documentMode<=8)&&(m={}),n.isChrome&&n.isWindows&&(f=l);for(var $=0,b=f.length;$<b;$++){r=f[$],i=d[r];try{a.push(i.replace(/@@DATA@@/g,m[r]?h:p).replace(/@@DATA_SPECIAL@@/g,m[r]?h:g).replace(/@@FONTS_URL@@/g,s.FONTS_URL).replace(/@@FORMAT@@/g,r).replace(/@@MIME@@/g,u[r]).replace(/@@B64DATA@@/g,m[r]))}catch(w){}}e=c.replace(/@@FORMATS@@/g,a.join(",")).replace(/@@NAME@@/g,t);var x=this;return o(function(){x.dom&&x.addChildren([e])}),this},t.prototype.getBase64=function(){return this.base64||{}},t.prototype.setBase64=function(t){this.base64=t},r(t,"meshim_widget_widgets_FontLoader"),t}()}).call(e,i(14),i(7),i(12),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(e,i,n,o,r){function a(t){if(t)for(var i in t)t.hasOwnProperty(i)&&i in c&&c[i](t[i],e)}if(!(this instanceof t))return new t(e,i,n,o,r);var s=u.root.$("tmp").$("api_settings").$("settings").$("theme").$("custom_fonts").$("config$json");s.on("value",a)}function n(t,e){for(var i=0,n=t.urls.length;i<n;i++)l(e,null,null,null,{href:t.urls[i]})}function o(t,e){l(e,null,null,null,{href:_(t.families,t.text)})}function r(t,e){var i=t.projectId,n=t.version,o="//fast.fonts.net/jsapi/"+i+".js"+(n?"?v="+n:"");new d(e,null,null,null,{src:o})}function a(t,e){var i=e.ownerDocument;0===i.documentElement.getElementsByTagName("script").length&&new d(e);var n=t.api||"https://use.typekit.net";!function(e){var i,o={kitId:t.id,scriptTimeout:3e3},r=e.documentElement,a=setTimeout(function(){r.className=r.className.replace(/\bwf-loading\b/g,"")+" wf-inactive"},o.scriptTimeout),s=e.createElement("script"),_=!1,l=e.getElementsByTagName("script")[0];r.className+=" wf-loading",s.src=n+"/"+o.kitId+".js",s.async=!0,s.onload=s.onreadystatechange=function(){if(i=this.readyState,!(_||i&&"complete"!=i&&"loaded"!=i)){_=!0,clearTimeout(a);try{var t=e.defaultView?e.defaultView:e.parentWindow;t.Typekit.load(o)}catch(n){}}},l.parentNode.insertBefore(s,l)}(i)}function s(t,e){var i=window.location.hostname,n=t.id,o="//f.fontdeck.com/s/css/js/"+i+"/"+n+".js";new d(e,null,null,null,{src:o})}function _(t,e){for(var i="//fonts.googleapis.com/css?family=",n=[],o=[],r=0,a=t.length;r<a;r++){var s=t[r].split(":");3===s.length&&o.push(s.pop().replace(/ /g,"+"));var _=2==s.length&&""!=s[1]?":":"";n.push(s.join(_).replace(/ /g,"+"))}return i+=n.join("%7C"),o.length>0&&(i+="&subset="+o.join(",")),e&&e.length>0&&(i+="&text="+window.encodeURIComponent(e)),i}var l=i(290),d=i(291),u=i(30),c={custom:n,google:o,monotype:r,typekit:a,fontdeck:s};return e(t,"meshim_widget_widgets_fontLoader_CustomFonts"),t}()}).call(e,i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){if(!(this instanceof t))return new t(e,i,n,r,a);var s=e.ownerDocument;a||(a={}),a.tagName||(a.tagName="link"),o.call(this,s.getElementsByTagName("head")[0],i,n,null,a),this.dom.rel="stylesheet",this.dom.type="text/css"}var o=i(17);return t.prototype=e(o.prototype),n(t,"jx_ui_ExternalStyleSheet"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName="script",void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(18);return t.prototype=e(o.prototype),n(t,"jx_ui_html_script"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_FloatingFrame=i(76),e.__$$__meshim_widget_widgets_fontLoader_ZopimFont=i(287),e.__$$__meshim_widget_components_chatButton_Bubble=i(293),e.__$$__meshim_widget_components_chatButton_Button=i(305),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=[e.__$$__jx_ui_FloatingFrame,"","",[[e.__$$__meshim_widget_widgets_fontLoader_ZopimFont,"","",[],{}],[e.__$$__meshim_widget_components_chatButton_Bubble,"","",[],{addClass:"bubble"}],[e.__$$__meshim_widget_components_chatButton_Button,"","",[],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:chatButton":"meshim.widget.components.chatButton",cursor:"pointer"}],p=h[0].call(this,s,_,null,n.mangleIDs(_,h[3]),h[4]),g=p||this;n.set(_,g),t.__jx__jcss_generated||(o.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){f.bind(g.iwin),g.dom.className="zopim",g.iframe.setStyle("display","block"),g.content.addClass("meshim_widget_Widget"),g.wrapper.addClass(g.__jx__fqname),g.ibody.style.overflow="hidden",p(g.ibody),N&&g.setPosition("relative"),g.autobind(y,"value",function(t){j!=t&&(j=t,s())}),g.autobind(k,"value",function(t){t=parseInt(t,10),!isNaN(t)&&t>=0&&(D=t,n())}),g.autobind(B,"value",function(t){t=parseInt(t,10),!isNaN(t)&&t>=0&&(T=t,n())}),g.autobind(S,"value",function(t){t&&s()}),g.autobind(I,"value",function(t){l&&g.wrapper.removeClass(l),l=t,l&&g.wrapper.addClass(l),n()}),g.autobind(C,"value",function(t){t&&s()}),g.autobind(A,"value",function(t){t&&s()}),g.autobind(x,"value",function(t){v!=t&&(v=t,e())}),g.on("click",function(){c.trackEvent("Button Clicked"),d.resetUnreadCount(),w.write({button_clicked$bool:!0}),h.userShowBadgeOrWindow()})}function e(){var t=v;g.setDisplay(t?"":"none"),s()}function n(){o(),r.bugs.noBoxSizing&&window.setTimeout(function(){g.dom.className=g.dom.className},100)}function o(){if(N)return void g.setTop("").setRight("").setBottom("").setLeft("");switch(l){case"br":g.setTop("").setLeft("").setMarginLeft("").setRight(D).setBottom(T);break;case"bm":g.setTop("").setRight("").setBottom(T).setLeft("50%").setMarginLeft(-Math.round(g.__width/2)+"px");break;case"bl":g.setTop("").setRight("").setMarginLeft("").setBottom(T).setLeft(D);break;case"tr":g.setBottom("").setLeft("").setMarginLeft("").setTop(T).setRight(D);break;case"tm":g.setRight("").setBottom("").setTop(T).setLeft("50%").setMarginLeft(-Math.round(g.__width/2)+"px");break;case"tl":g.setRight("").setBottom("").setMarginLeft("").setTop(T).setLeft(D)}}function s(){_(),a(_,g,"once")}function _(){var t=C.getValue()||10;t!==g.getWidth()&&g.setWidth(t+"px");var e=A.getValue()||10;j&&(e+=S.getValue()||0),e!==g.getHeight()&&g.setHeight(e+"px")}var l,d=i(79),u=i(30),c=i(169),h=i(103),p=i(289),f=i(51),m=u.root.$("livechat"),$=m.$("settings"),b=m.$("ui"),w=b.$("chat_button"),x=w.$("display$bool"),v=-1,y=w.$("bubble").$("display$bool"),j=-1,C=w.$("button_width$int"),A=w.$("button_height$int"),S=w.$("bubble_height$int"),I=$.$("theme").$("chat_button").$("position$string"),k=$.$$("theme.chat_button.h_offset$int"),B=$.$$("theme.chat_button.v_offset$int"),N=b.$("mockup$bool").getValue(),T=0,D=10;t()}();for(var m in f)f.hasOwnProperty(m)&&(g[m]=f[m]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(d),g.setAttributes&&g.setAttributes(c),"function"==typeof g.addChildren?g.addChildren(u):n.addChildren(g,u),g!==this&&(g.__jx__constructor=l,g.__jx__native=!1),g}var l;return t.prototype=s(e.__$$__jx_ui_FloatingFrame.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_FloatingFrame,t.__jx__jcss={"**self":{"*width":"100%"},"&.bm, &.tm":{margin:"0 auto"},"&.br, &.bm, &.bl":{".button_bar":{"borderTopLeftRadius, borderTopRightRadius":"$$chatButtonRadius"},".favicon":{borderTopLeftRadius:"$$chatButtonRadius"},".rtl .favicon":{borderTopLeftRadius:0,borderTopRightRadius:"$$chatButtonRadius"}},"&.tr, &.tm, &.tl":{".button_bar":{"borderBottomLeftRadius, borderBottomRightRadius":"$$chatButtonRadius"},".favicon":{borderBottomLeftRadius:"$$chatButtonRadius"},".rtl .favicon":{borderBottomLeftRadius:0,borderBottomRightRadius:"$$chatButtonRadius"}}},_(t,"meshim_widget_components_ChatButton"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(7),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatButton_BubbleRenderer=i(294),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_chatButton_BubbleRenderer,"","",[],{addClass:"bubble_renderer"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:button":"meshim.widget.components.chatButton","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.autobind(o,"value",function(t){r!=t&&(r=t,h.setDisplay(r?"":"none"))})}var e=i(30),n=e.root.$("livechat").$("ui").$("chat_button"),o=n.$("bubble").$("display$bool"),r=-1;t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"absolute",width:"100%","top, left":0,cursor:"pointer"}},a(t,"meshim_widget_components_chatButton_Bubble"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatButton_BubbleVector=i(295),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=o(116),p=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_chatButton_BubbleVector,"bubble_vector","",[],{id:"bubble_vector",position:"absolute"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_IconFont,"close","",[],{id:"close",icon:"cross",addClass:"close",title:h}],[e.__$$__jx_ui_Widget,"bubble_title_container","",[],{id:"bubble_title_container","class":"bubble_title"}],[e.__$$__jx_ui_Widget,"bubble_text_container","",[],{id:"bubble_text_container","class":"bubble_text"}]],{"class":"bubble_text_wrapper"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:button":"meshim.widget.components.chatButton","xmlns:widgets":"meshim.widget.widgets",visibility:"hidden"}],g=p[0].call(this,s,_,null,n.mangleIDs(_,p[3]),p[4]),f=g||this;n.set(_,f);var m=n.get(_+"__bubble_vector"),$=n.get(_+"__close"),b=n.get(_+"__bubble_title_container"),w=n.get(_+"__bubble_text_container");t.__jx__jcss_generated||(r.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var x=function(){function t(){g.rtl(f),f.autobind(S,"value",function(t){o!=t&&(o=t,e())}),f.autobind(I,"value",function(t){r!=t&&(r=t,e())}),f.autobind(N,"value",function(t){s!=t&&(s=t,b.setText(x.get(N)),e())}),f.autobind(T,"value",function(t){_!=t&&(_=t,w.setText(x.get(T)),w.setDisplay(t?"":"none"),e())}),f.autobind(D,"value",function(t){t&&l!=t&&(l=t)}),f.autobind(k,"value",function(t){if(t){if(d!=l){d=l;var i=new v(d);m.setFill("linear top from("+i.lighten(.1).toRGB()+") to("+i.darken(.2).toRGB()+") ")}e()}}),f.autobind(E,"value",function(t){t&&e()}),$.on("click",function(t){t.stopPropagation(),p.userHideBubble()})}function e(){u||(u=window.setTimeout(n,0),8==a.isIE&&f.setVisibility(""))}function n(){if(u=null,o&&r){var t=E.getValue();if(t){var e=f.getHeight();e&&(m.setDimension(t,e),P.update(f.getHeight()),c||(f.setVisibility(""),c=!0))}}}var o,r,s,_,l,d,u,c,h=i(30),p=i(103),g=i(89),x=i(91),v=i(299),y=h.root.$("livechat"),j=y.$("settings"),C=y.$("ui"),A=C.$("chat_button"),S=A.$("display$bool"),I=A.$("bubble").$("display$bool"),k=C.$("theme_loaded$bool"),B=j.$("bubble"),N=B.$("title$string"),T=B.$("text$string"),D=j.$("theme").$("colors").$("bubble$string"),E=A.$("button_width$int"),P=A.$("bubble_height$int");t()}();for(var v in x)x.hasOwnProperty(v)&&(f[v]=x[v]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(d),f.setAttributes&&f.setAttributes(c),"function"==typeof f.addChildren?f.addChildren(u):n.addChildren(f,u),f!==this&&(f.__jx__constructor=l,f.__jx__native=!1),f}var l;return t.prototype=s(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative"},".bubble_text_wrapper":{position:"relative",padding:"10px 12px 26px"},".bubble_title":{position:"relative",zIndex:"1",fontSize:"$$fontSizeL",fontWeight:"bold",color:"$$chatBubbleTitleColor",whiteSpace:"pre-wrap"},".bubble_text":{position:"relative",zIndex:"1",marginTop:"5px",fontSize:"12px",fontStyle:"italic",color:"$$chatBubbleTextColor",whiteSpace:"pre-wrap"},".close":{"float":"right",position:"relative",top:"-1px",left:"5px",padding:"6px 4px 2px",zIndex:"2",color:"$$chatBubbleCloseColor",textShadow:"$$chatBubbleCloseShadow",borderRadius:"$$radius","&:hover":{background:"$$chatBubbleCloseHoverBg"}},"&.rtl .close":{"float":"left",left:"auto",right:"5px"}},_(t,"meshim_widget_components_chatButton_BubbleRenderer"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(7),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_common_GCanvas=i(296),e.__$$__meshim_common_GShape=i(302),t.exports=function(){function t(a,s,_,l,d){if(!(this instanceof t))return new t(a,s,_,l,d);s=s||n.generateID();var u=[e.__$$__meshim_common_GCanvas,"","",[[e.__$$__meshim_common_GShape,"content","",[],{id:"content",fill:"linear, top, from(#E0741B), to(#E0981B)",stroke:"#c2c2c2"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:common":"meshim.common"}],c=u[0].call(this,a,s,null,n.mangleIDs(s,u[3]),u[4]),h=c||this;n.set(s,h);var p=n.get(s+"__content");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.setStrokeWidth(c),h.setDimension=a,h.setFill=function(t){p.setFill(t)}}function e(t,e){var n={tl:[t.x,t.y],tr:[t.x+t.width,t.y],br:[t.x+t.width,t.y+t.height],bl:[t.x,t.y+t.height]};e=e.slice();for(var o=0;o<e.length;o++){var r=e[o],a=r[0];n[a]&&(e[o]=i(n[a],r))}return e}function i(t,e){var i=t[0],n=t[1],o=[];for(e=e.slice(),e.shift(),o.push(e.shift());e.length>1;){var r=e.splice(0,2);o.push(i+r[0]),o.push(n+r[1])}return o}function n(t){for(var e="",i={cs:o},n=0,r=t.length;n<r;n++){var a=t[n],s=a[0];i[s]&&(a=i[s].apply(null,a.slice(1))),e+=" "+a.join(" ")}return e}function o(t,e,i){var n=t,o=e,r=Math.round(.5522848*n),a=Math.round(.5522848*o),s=i?-n*o:n*o;return s>0?["c",r,0,n,o-a,n,o]:["c",0,a,n-r,o,n,o]}function a(t,i){if(!r(t)||!r(i)||isNaN(t)||isNaN(i))throw new window.Error("BubbleVector.setDimension(): invalid arguments");var o={x:c-1,y:c-1,width:t-2*c+2,height:i-2*c-3},a=n(e(o,g));return h.setWidth(t+"px").setHeight(i+"px").setViewBox("0 0 "+t+" "+i),p.setPath(a),h}var s=8,_=8,l=8,d=12,u=19,c=2,g=[["tl","M",0,_],["cs",s,-_,0],["tr","L",-s,0],["cs",s,_,0],["br","L",0,-_-l],["cs",-s,_,0],["bl","L",s+u+d,-l],["bl","L",s+u+d/2,0],["bl","L",s+u,-l],["bl","L",s,-l],["cs",-s,-_,0],["z"]];t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=i,h.__jx__native=!1),h}var i;return t.prototype=a(e.__$$__meshim_common_GCanvas.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_common_GCanvas,t.__jx__jcss={},s(t,"meshim_widget_components_chatButton_BubbleVector"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(23),i(14),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t,i,o,r,a){i=i||e.generateID();var s,_=t.ownerDocument;s=_.createElement("div"),e.extend(s),n.extend(s),e.set(i,s);var l=!1;return s.appendToParent=function(i){e.hasParentNode(s)||e.appendChild(t,s),i&&!l&&(t.appendToParent&&t.appendToParent(!0),l=!0)},s.setViewBox=function(){},s.setStyle(o),s.setAttributes(a),e.addChildren(s,r),s.appendToParent(),s}var r,a=i(297),s=i(300),_=i(301),l=i(298),d=l.detectedGraphicType;switch(d){case"canvas":r=_;break;case"vml":r=a;break;case"svg":r=s;break;case"div":r=t}return o(r,"meshim_common_GCanvas"),r}()}).call(e,i(20),i(6),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t,o,r,a,s){var _=i(298);o=o||e.generateID();var l,d,u,c,h,p=t.ownerDocument;l=p.createElement("span"),l.style.display="inline-block",l.style.overflow="hidden",l.style.position="relative",l.vectorType="vml",d=_.createVMLNode(p,"group"),d.className="vml",d.style.width="100px",d.style.height="100px",d.style.border="0px none",d.style.padding="0px",d.style.margin="0px",d.style.position="absolute",d.style.top="0px",d.style.left="0px",l.groupshape=d,u=_.createVMLNode(p,"shape"),u.className="vml",u.stroked=!1,u.fill=!1,u.style.width="1px",u.style.height="1px",d.appendChild(u),l.appendChild(d),l.graphicType="vml",l.defaultPlacement=d,e.extend(l),n.extend(l),e.set(o,l);var g=!1;l.appendToParent=function(i){e.hasParentNode(l)||e.appendChild(t,l),i&&!g&&(t.appendToParent&&t.appendToParent(!0),g=!0)},l.setCanvasScale=function(t){return t=parseFloat(t),c=t,h&&l.setViewBox(h),l},l.setViewBox=function(t){h=t,t=_.parseViewBox(t);var e=l.getElementsByTagName("*"),i=t.x+", "+t.y,n="1, 1";c&&(n=1/c+","+1/c),d.coordorigin=i;for(var o=0,r=e.length;o<r;o++){var a=e[o].tagName;"shape"!==a&&"group"!==a||(e[o].coordsize=n)}return u.style.left=t.x+"px",u.style.right=t.y+"px",l};var f=l.setWidth,m=l.setHeight;return l.setWidth=function(t){return"function"==typeof f&&f.call(l,t),d.style.width="1px",l},l.setHeight=function(t){return"function"==typeof m&&m.call(l,t),d.style.height="1px",l},l.setStyle(r),l.setAttributes(s),e.addChildren(l,a),l.appendToParent(),l}return o(t,"meshim_common_VmlCanvas"),t}()}).call(e,i(20),i(6),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(t,e){if(!t._vmlstyled){var i=t.createElement("style");i.setAttribute("type","text/css"),i.styleSheet.cssText="v\\:*{behavior:url(#default#VML); display: inline-block;} .vml{behavior:url(#default#VML); display: inline-block;}",t.getElementsByTagName("head")[0].appendChild(i),i=null,t._vmlstyled=!0}return t.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml">')}function a(t){var e=t.split(/\s+/);if(4!==e.length)throw"bad viewBox: "+t;for(var i=0;i<4;i++)if(e[i]=parseInt(e[i],10),isNaN(e[i]))throw"bad viewBox: "+t;return{x:e[0],y:e[1],width:e[2],height:e[3]}}function s(t){var e=t.split(" ");return{offsetX:parseInt(e[0],10),offsetY:parseInt(e[1],10),blurRadius:parseInt(e[2],10),color:e[3],opacity:parseFloat(e[4]),rgba:"rgba("+C(e[3]).toArray().join(",")+","+e[4]+")"}}function _(){var t=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),i=document.createElement("canvas").getContext;return i?"canvas":document.createElementNS&&t?"svg":e.isIE?"vml":"none"}function l(t){var e=/from\(([^)]+\){0,1})\)/.exec(t),i=/to\(([^)]+\){0,1})\)/.exec(t),n=[];return e&&n.push({stop:"0%",color:new C(e[1])}),t.replace(/color-stop\(([^)]+\){0,1})\)/g,function(t,e){e=d(e),n.push({stop:e.substring(0,e.indexOf(" ")),color:new C(e.substring(e.indexOf(" ")))})}),i&&n.push({stop:"100%",color:new C(i[1])}),n}function d(t){return t.replace(/[,\s]+/g," ").trim()}function u(t,e){function i(t,e,i,n){for(var o=0;o<arguments.length;o++)arguments[o]=parseFloat(arguments[o]);var r=(n-e)/(i-t);return Math.round(270-180*Math.atan(r)/Math.PI)}e=d(e);var n,o,r,a,s=e.split(" "),_=[];switch(n=s.shift(),s[0]){case"left":s.shift(),o="270";break;case"top":s.shift(),o="180";break;case"right":s.shift(),o="90";break;case"bottom":s.shift(),o="0";break;default:o=i.apply(null,s.splice(0,4))}r=l(e);for(var u=0,c=r.length;u<c;u++)a=r[u],_.push(a.stop+" "+a.color.toStrRGB());var h=j.createVMLNode(t,"fill");return h.className="vml",h.setAttribute("on","true"),h.setAttribute("type","gradient"),h.setAttribute("angle",o),h.setAttribute("colors",_.join(",")),h.setAttribute("method","sigma"),a&&1!==a.color.alpha&&h.setAttribute("opacity",a.color.alpha),h}function c(t,e){e=d(e);var i,n,o=e.split(" ");switch(i=o.shift(),o[0]){case"left":o.shift(),n="0% 0% 100% 0%".split(" ");break;case"top":o.shift(),n="0% 0% 0% 100%".split(" ");break;case"right":o.shift(),n="100% 0% 0% 0%".split(" ");break;case"bottom":o.shift(),n="0% 100% 0% 0%".split(" ");break;default:n=o.splice(0,4)}var r=t.createElementNS("http://www.w3.org/2000/svg","linearGradient"),a="grad_"+(new Date).getTime()+Math.round(1001*Math.random());r.setAttribute("id",a),r.setAttribute("x1",n[0]),r.setAttribute("y1",n[1]),r.setAttribute("x2",n[2]),r.setAttribute("y2",n[3]),r.setAttribute("gradientUnits","objectBoundingBox");for(var s,_,u=l(e),c=0;c<u.length;c++)_=u[c],_.stop.indexOf("%")>-1?_.stop=parseFloat(_.stop)/100:_.stop=parseFloat(_.stop),s=t.createElementNS("http://www.w3.org/2000/svg","stop"),s.setAttribute("offset",_.stop),s.setAttribute("stop-color",_.color.toStrRGB()),s.setAttribute("stop-opacity",_.color.alpha),r.appendChild(s);return r}function h(t){function e(t){for(var e=t.length;e--;)t[e]+=s[e%2];return n(t),t}function i(t,e){_.push({command:A[t],coords:e})}function n(t){if(2==t.length)h.x.push(t[0]),h.y.push(t[1]);else{if(6!=t.length)throw"problem with updateBBox";var e=o(s.concat(t));h.x.push(e.minX,e.maxX),h.y.push(e.minY,e.maxY)}}function o(t){var e=t[0],i=t[1],n=t[2],o=t[3],a=t[4],s=t[5],_=t[6],l=t[7],d=[e,_].concat(r(e,n,a,_)),u=[i,l].concat(r(i,o,s,l));return{minX:Math.min.apply(null,d),minY:Math.min.apply(null,u),maxX:Math.max.apply(null,d),maxY:Math.max.apply(null,u)}}function r(t,e,i,n){var o,r,a,s=[],_=[];t-3*e+3*i-n!==0?(r=(Math.sqrt(-t*i+t*n+e*e-e*i-e*n+i*i)-t+2*e-i)/(-t+3*e-3*i+n),a=(-Math.sqrt(-t*i+t*n+e*e-e*i-e*n+i*i)-t+2*e-i)/(-t+3*e-3*i+n),s.push(r,a)):t-3*e+3*i-n===0&&t-2*e+i!==0&&(o=(t-e)/(2*(t-2*e+i)),s.push(o));for(var l=0;l<s.length;l++)o=s[l],o<0||o>1||_.push(Math.pow(1-o,3)*t+3*(1-o)*(1-o)*o*e+3*(1-o)*o*o*i+o*o*o*n);return _}t=t.replace(/[A-Za-z]/g," $& ").replace(/,/g," ").replace(/-/g," -").replace(/\s+/g," ").trim();for(var a=t.split(" "),s=[0,0],_=[{command:"beginPath"}],l=0,d=a.length;l<d;l++)if(!/^[A-Za-z]/.test(a[l])&&(a[l]=parseFloat(a[l]),isNaN(a[l])))throw new window.Error("Bad path after "+a.slice(0,l).join(" "));for(var u,c=[],h={x:[],y:[]};a.length;)switch(/^[a-z]$/i.test(a[0])&&(u=a.shift()),u){case"M":c=a.splice(0,2),n(c),i("M",c),s=c;break;case"m":c=e(a.splice(0,2)),i("M",c),s=c;break;case"Z":case"z":i("Z",[]);break;case"l":c=e(a.splice(0,2)),i("L",c),s=c;break;case"L":c=a.splice(0,2),n(c),i("L",c),s=c;break;case"c":c=e(a.splice(0,6)),i("C",c),s=[c[4],c[5]];break;default:throw new window.Error("Unknown canvas command: "+u)}var p=function(t){for(var e=0,i=_.length;e<i;e++){var n=_[e];t[n.command].apply(t,n.coords)}};return p.bBox={minX:Math.min.apply(null,h.x),minY:Math.min.apply(null,h.y),maxX:Math.max.apply(null,h.x),maxY:Math.max.apply(null,h.y)},p}function p(t){function e(t,n){if(t=new t.constructor(t,i),t.id&&!n&&o.set(t.id,t),t.attributes&&t.setAttributes(t.attributes),t.childrens)for(var r=0,a=t.childrens.length;r<a;r++)t.childrens[r]=e(t.childrens[r]);return t}var i=new g(t);return n.extend(i),e(i,"ignore-id"),i}function g(t,e){t||(t={}),this.id=t.id,e&&(this.root=e),this.attributes=t.attributes,this.childrens=t.childrens}function f(t){return t.replace(/^\w/,function(t){return t.toUpperCase()})}function m(t,e){switch(t){case"viewBox":return a(e);case"path":return h(e);case"fill":return $(e);case"shadow":return s(e);default:return e}}function $(t){return t=d(t),/linear/.test(t)?function(e,i){return b(t,e,i)}:function(){return t}}function b(t,e,i){t=t.replace(/,/g," ").replace(/\s+/g," ");var n,o,r=t.split(" ");switch(o=r.shift(),r.shift()){case"left":n=e.createLinearGradient(i.minX,i.minY,i.maxX,i.minY);break;case"top":n=e.createLinearGradient(i.minX,i.minY,i.minX,i.maxY);break;case"right":n=e.createLinearGradient(i.maxX,i.minY,i.minX,i.minY);break;case"bottom":n=e.createLinearGradient(i.minX,i.maxY,i.minX,i.minY)}for(var a,s=l(t),_=0;_<s.length;_++)a=s[_],a.stop.indexOf("%")>-1?a.stop=parseFloat(a.stop)/100:a.stop=parseFloat(a.stop),n.addColorStop(a.stop,a.color.toStrRGBA());return n}function w(t){var e=x(t);if(t.border){var i={},n=t.border;for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.x+=n,i.y+=n,i.width-=2*n,i.height-=2*n,i.rx&&(i.rx=Math.max(i.rx-n,1)),i.ry&&(i.ry=Math.max(i.ry-n,1)),e+=x(i,"CCW")}return e}function x(t,e){var i=t.rx,n=t.ry,o=t.width,r=t.height,a=t.x,s=t.y,_=Math.round(s+r/2),l="";if(i||n){var d=.5522848*i,u=.5522848*n,c=o-2*i,h=r-2*n;l=e?y("M",a+o,s+n)+(t.corner2?v(-i,-n,d,u,1):y("l",0,-n,-i,0))+y("l",-c,0)+(t.corner1?v(-i,n,d,u,1):y("l",-i,0,0,n))+y("l",0,h)+(t.corner4?v(i,n,d,u,1):y("l",0,n,i,0))+y("l",c,0)+(t.corner3?v(i,-n,d,u,1):y("l",i,0,0,-n))+"z":y("M",a,s+n)+(t.corner1?v(i,-n,d,u):y("l",0,-n,i,0))+y("l",c,0)+(t.corner2?v(i,n,d,u):y("l",i,0,0,n))+y("l",0,h)+(t.corner3?v(-i,n,d,u):y("l",0,n,-i,0))+y("l",-c,0)+(t.corner4?v(-i,-n,d,u):y("l",-i,0,0,-n))+"z"}else e&&(r=-r),l=y("M",a,_)+y("l",0,e?s-r-_:s-_)+y("l",o,0)+y("l",0,r)+y("l",-o,0)+"z";return l}function v(t,e,i,n,o){var r=t>0?1:-1,a=e>0?1:-1,s=o?-r*a:r*a,_=1==s?r*i:0,l=1==s?0:a*n,d=1==s?t:t-r*i,u=1==s?e-a*n:e;return y("c",_,l,d,u,t,e)}function y(t){var e=" ",i=Array.prototype.slice.apply(arguments);"string"==typeof i[0]&&/^[A-Za-z]$/.test(i[0])&&(e+=t,i.shift());for(var n=0,o=i.length;n<o;n++)e+=Math.round(i[n])+" ";return e}var j={parseViewBox:a,parseShadow:s,detectedGraphicType:_(),getGradColors:l,parseCanvasData:p,CanvasData:g,generateVmlLinearGradient:u,generateSvgLinearGradient:c,generateCanvasGradient:b,generate_drawing_function:h,generateRectPath:w,createVMLNode:t},C=i(299),A={M:"moveTo",L:"lineTo",C:"bezierCurveTo",Z:"closePath"};g.prototype.setAttribute=function(t,e){return this.attributes[t]=m(t,e),this.refresh(),this},g.prototype.setAttributes=function(t){for(var e in t)if(t.hasOwnProperty(e)){var i="set"+f(e);"function"==typeof this[i]&&this[i](t[e])}},g.prototype.refresh=function(){return this.root?this.root.fire("update"):this.fire("update"),this},g.prototype.getAttribute=function(t){return this.attributes[t]},g.prototype.destroy=function(){this.id&&o.unset(this),this.root=null;var t=this.childrens;if(t)for(var e=0,i=t.length;e<i;e++)t[e]instanceof g&&t[e].destroy()};for(var S="opacity fill stroke strokeWidth d path shadow viewBox".split(" "),I=0;I<S.length;I++){var k=S[I];g.prototype["set"+f(k)]=function(t){return function(e){return this.setAttribute(t,e)}}(k)}return r(j,"meshim_common_Graphic"),j}()}).call(e,i(7),i(6),i(20),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(e){if(!(this instanceof t))return new t(e);var r="";switch("object"==typeof e?r="object":/#/.test(e)?r="hex":/hsl\(.+\)/.test(e)?r="hsl":/hsv\(.+\)/.test(e)?r="hsv":/rgba\(.+\)/.test(e)&&(r="rgba"),r){case"object":n.call(this,e);break;case"hex":i.call(this,e);break;case"hsl":o.call(this,e);break;case"hsv":s.call(this,e);break;case"rgba":a.call(this,e)}"number"!=typeof this.alpha&&(this.alpha=1)}function i(t){t=t.replace(/#/g,"").replace(/\s+/g," ").replace(/^\s|\s$/g,""),/^\w{3}/.test(t)&&(t=t.replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3")),this.red=parseInt(t.substr(0,2),16),this.green=parseInt(t.substr(2,2),16),this.blue=parseInt(t.substr(4,2),16)}function n(t){"red"in t&&"green"in t&&"blue"in t?(this.red=t.red,this.green=t.green,this.blue=t.blue,this.alpha=t.alpha):"h"in t&&"s"in t&&"l"in t?r.call(this,t):"h"in t&&"s"in t&&"v"in t&&_.call(this,t)}function o(t){t=t.replace(/[A-Za-z]+|\(|\)/g,"").replace(/,/g," ").replace(/\s+/g," ").replace(/^\s|\s$/g,"");var e=t.split(" "),i={h:parseFloat(e[0])<0?360+parseFloat(e[0])%360:parseFloat(e[0])%360,s:e[1].indexOf("%")<0?parseFloat(e[1]):parseInt(e[1],10)/100,l:e[2].indexOf("%")<0?parseFloat(e[2]):parseInt(e[2],10)/100};r.call(this,i)}function r(t){var e,i=t.h,n=t.s,o=t.l,r=(1-Math.abs(2*o-1))*n,a=i/60,s=r*(1-Math.abs(a%2-1)),_=o-.5*r;switch(Math.floor(a)){case 0:e=[r,s,0];break;case 1:e=[s,r,0];break;case 2:e=[0,r,s];break;case 3:e=[0,s,r];break;case 4:e=[s,0,r];break;case 5:e=[r,0,s]}this.red=Math.round(255*(e[0]+_)),this.green=Math.round(255*(e[1]+_)),this.blue=Math.round(255*(e[2]+_))}function a(t){t=t.replace(/[A-Za-z(,]+/g," ").replace(/\s+/g," ").replace(/^\s|\s$/g,"");var e=t.split(" ");this.red=parseInt(e[0],10),this.green=parseInt(e[1],10),this.blue=parseInt(e[2],10),this.alpha=parseFloat(e[3])}function s(t){t=t.replace(/[A-Za-z%]+|\(|\)/g,"").replace(/,/g," ").replace(/\s+/g," ").replace(/^\s|\s$/g,"");var e=t.split(" "),i={h:parseFloat(e[0])<0?(360+parseFloat(e[0]))%360:parseFloat(e[0])%360,s:e[1].indexOf("%")<0?parseFloat(e[1]):parseInt(e[1],10)/100,v:e[2].indexOf("%")<0?parseFloat(e[2]):parseInt(e[2],10)/100};_.call(this,i)}function _(t){var e,i=t.h,n=t.s,o=t.v,r=o*n,a=i/60,s=r*(1-Math.abs(a%2-1)),_=o-r;switch(Math.floor(a)){case 0:e=[r,s,0];break;case 1:e=[s,r,0];break;case 2:e=[0,r,s];break;case 3:e=[0,s,r];break;case 4:e=[s,0,r];break;case 5:e=[r,0,s]}this.red=Math.round(255*(e[0]+_)),this.green=Math.round(255*(e[1]+_)),this.blue=Math.round(255*(e[2]+_))}var l=["red","green","blue"];return t.prototype.lighten=function(e){var i=this.toHSL();return i.l=i.l+(1-i.l)*e,new t(i)},t.prototype.darken=function(e){var i=this.toHSL();return i.l=i.l-i.l*e,new t(i)},t.prototype.blend=function(e,i){e instanceof t||(e=new t(e));for(var n={},o=0;o<3;o++){var r=this[l[o]],a=e[l[o]];n[l[o]]=Math.round(r+(a-r)*i)}return new t(n)},t.prototype.complement=function(){var e=this.red,i=this.blue,n=this.green,o=Math.max(e,i,n),r=Math.min(e,i,n),a={};return a.red=o+r-e,a.green=o+r-n,a.blue=o+r-i,new t(a)},t.prototype.toStrRGB=t.prototype.toRGB=function(){for(var t=[],e=0;e<3;e++){var i=this[l[e]].toString(16);t[e]=i.length<2?"0"+i:i}return"#"+t.join("")},t.prototype.toStrRGBA=function(){return"rgba("+[this.red,this.green,this.blue,this.alpha].join(",")+")"},t.prototype.toHSL=function(){var t,e,i,n,o=this.red/255,r=this.green/255,a=this.blue/255,s=Math.max(o,r,a),_=Math.min(o,r,a),l=s-_;return 0===l?n=0:s==o?n=(r-a)/l%6:s==r?n=(a-o)/l+2:s==a&&(n=(o-r)/l+4),t=60*n,t=t<0?360+t%360:t%360,i=.5*(s+_),e=0===l?0:l/(1-Math.abs(2*i-1)),{h:t,s:e,l:i}},t.prototype.toHSV=function(){var t,e,i,n,o=this.red/255,r=this.green/255,a=this.blue/255,s=Math.max(o,r,a),_=Math.min(o,r,a),l=s-_;return 0===l?n=0:s==o?n=(r-a)/l%6:s==r?n=(a-o)/l+2:s==a&&(n=(o-r)/l+4),t=60*n,t=t<0?360+t%360:t%360,i=s,e=0===l?0:l/i,{h:t,s:e,v:i}},t.prototype.toArray=function(){return[this.red,this.green,this.blue]},t.prototype.clone=function(){return new t(this)},t.prototype.validate=function(){for(var t=0;t<3;t++){var e=this[l[t]];if(!("number"==typeof e&&e>=0&&e<=255))return!1}return"number"==typeof this.alpha&&this.alpha>=0&&this.alpha<=1},e(t,"meshim_common_Color"),t}()}).call(e,i(4))},function(t,e,i){(function(e,i,n){t.exports=function(){function t(t,n,o,r,a){n=n||e.generateID();var s,_=t.ownerDocument;s=_.createElementNS("http://www.w3.org/2000/svg","svg"),s.vectorType="svg",e.extend(s),i.extend(s),e.set(n,s);var l=!1;return s.appendToParent=function(i){e.hasParentNode(s)||e.appendChild(t,s),i&&!l&&(t.appendToParent&&t.appendToParent(!0),
l=!0)},s.setClass=function(t){return s.setAttribute("class",t),s},s.addClass=function(t){return s.setAttribute("class",s.getAttribute("class")+" "+t),s},s.removeClass=function(t){var e=s.getAttribute("class"),i=new RegExp("\\b"+t+"\\b","g");return e.replace(i,""),s.setAttribute("class",e),s},s.setViewBox=function(t){return s.setAttribute("viewBox",t),s},s.setStyle(o),s.setAttributes(a),e.addChildren(s,r),s.appendToParent(),s}return n(t,"meshim_common_SvgCanvas"),t}()}).call(e,i(20),i(6),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(t,r,a,s,_){function l(){w&&window.clearInterval(w);var t=Math.floor(201*Math.random())-100;w=window.setTimeout(u,1e3+t)}function d(){w&&window.clearTimeout(w)}function u(){j&&j.attributes.viewBox&&(m(),c(),h(j.childrens))}function c(){var t=j.attributes.viewBox,e=j.attributes.canvasScale?parseFloat(j.attributes.canvasScale):1;x.width!=t.width&&(x.width=t.width*e),x.height!=t.height&&(x.height=t.height*e),v.scale(e,e),v.transform(1,0,0,1,-t.x*e,-t.y*e),o.isWebKit&&t.width*t.height>4e4?l():d(),p(j)}function h(t){for(var e=0,i=t.length;e<i;e++){var n=t[e];v.save(),n.childrens&&h(n.childrens),p(n),v.restore()}}function p(t){var e=t.attributes;if(g(),e.left&&"function"==typeof t.translateX&&t.translateX(v,e.left),e.top&&"function"==typeof t.translateY&&t.translateY(v,e.right),"opacity"in e&&(v.globalAlpha=e.opacity*v.globalAlpha),e.path){if(e.stroke&&(v.strokeStyle=e.stroke),e.strokeWidth&&(v.lineWidth=e.strokeWidth),e.fill&&(v.fillStyle=e.fill(v,e.path.bBox)),e.shadow&&!o.isOpera){var i=e.shadow;v.shadowOffsetX=i.offsetX,v.shadowOffsetY=i.offsetY,v.shadowBlur=i.blurRadius,v.shadowColor=i.rgba}e.path(v),v.fill(),e.shadow&&f(),v.stroke()}}function g(){v.strokeStyle="rgba(0, 0, 0, 0)",v.fillStyle="rgba(0, 0, 0, 1)",v.lineWidth=0}function f(){v.shadowOffsetX=0,v.shadowOffsetY=0,v.shadowBlur=0,v.shadowColor="#000"}function m(){v.setTransform(1,0,0,1,0,0),v.clearRect(0,0,x.width,x.height)}function $(t){for(var e=[],i=0,n=t.length;i<n;i++){var o=t[i];e.push({constructor:o[0],id:o[1],attributes:o[4],childrens:$(o[3])})}return e}var b=i(298);r=r||e.generateID();var w,x,v,y=t.ownerDocument,j=new b.parseCanvasData({type:"canvas",attributes:{},childrens:[]});x=y.createElement("canvas"),x.width=0,x.height=0,x.vectorType="canvas",x.getContext&&(v=x.getContext("2d")),e.extend(x),n.extend(x),e.set(r,x);var C=!1;return x.appendToParent=function(i){e.hasParentNode(x)||e.appendChild(t,x),i&&!C&&(t.appendToParent&&t.appendToParent(!0),C=!0)},x.setData=function(t){"function"==typeof j.destroy&&j.destroy(),j=new b.parseCanvasData(t),d(),u(),j.on("update",u)},x.onDestruction(function(){d(),"function"==typeof j.destroy&&j.destroy()}),x.setViewBox=function(t){return j.setAttribute("viewBox",t),x},x.setStyle(a),x.setAttributes(_),j={type:"canvas",attributes:_,childrens:$(s)},x.setData(j),x.appendToParent(),x}return r(t,"meshim_common_Canvas"),t}()}).call(e,i(20),i(6),i(7),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){return null}var n,o=i(303),r=i(304),a=i(298),s=a.detectedGraphicType;switch(s){case"canvas":n=a.CanvasData;break;case"vml":n=o;break;case"svg":n=r;break;case"div":n=t}return e(n,"meshim_common_GShape"),n}()}).call(e,i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t,o,r,a,s){var _=i(298);o=o||e.generateID();var l,d=t.ownerDocument;l=_.createVMLNode(d,"shape"),l.className="vml",l.style.width="100%",l.style.height="100%",l.stroked=!1,l.filled=!0,l.fillColor="#000000",l.vectorType="vml";var u=_.createVMLNode(d,"skew");u.className="vml",u.setAttribute("on","true"),u.setAttribute("matrix","1,0,0,1,0,0"),u.setAttribute("offset","-0.5,-0.5"),l.appendChild(u),e.extend(l),n.extend(l),e.set(o,l);var c=!1;l.appendToParent=function(i){e.hasParentNode(l)||e.appendChild(t,l),i&&!c&&(t.appendToParent&&t.appendToParent(!0),c=!0),"vml"==l.vectorType&&(l.style.width="100%",l.style.height="100%")},l.moveRight=function(t){var e=parseInt(t,10);if(isNaN(e))return l;l.style.left=(parseInt(l.style.left,10)||0)+e;var i=l.style.display;l.style.display="none",l.style.display=i},l.setLeft=l.moveRight,l.moveDown=function(t){var e=parseInt(t,10);if(isNaN(e))return l;l.style.top=(parseInt(l.style.top,10)||0)+e;var i=l.style.display;l.style.display="none",l.style.display=i},l.setTop=l.moveDown,l.setPath=function(t){var e,i;return t=t.replace(/c/g,"v").replace(/z/g,"x").replace(/m/g,"t").replace(/l/g,"r").replace(/L/g,"l")+"e",i=l.getElementsByTagName("v:path")[0],e=i?i:_.createVMLNode(d,"path"),e.className="vml",e.setAttribute("v",t),l.appendChild(e),l},l.setOpacity=function(t){var e=parseFloat(t),i=_.createVMLNode(d,"fill");return i.className="vml",i.setAttribute("opacity",e),i.setAttribute("o:opacity2",e),l.appendChild(i),l},l.setFill=function(t){var e=_.createVMLNode(d,"fill");return e.className="vml",/linear/.test(t)?e=_.generateVmlLinearGradient(d,t):(e=_.createVMLNode(d,"fill"),e.className="vml","none"==t?e.setAttribute("on","false"):e.setAttribute("on","true"),e.setAttribute("color",t)),l.appendChild(e),l},l.setStroke=function(t){var e=_.createVMLNode(d,"stroke");return e.className="vml","none"==t?e.setAttribute("on","false"):e.setAttribute("on","true"),e.setAttribute("color",t),l.appendChild(e),l},l.setStrokeWidth=function(t){var e=_.createVMLNode(d,"stroke");return e.className="vml",t=parseInt(t,10),e.setAttribute("on","true"),e.setAttribute("weight",t),l.appendChild(e),l};var h=1,p=1;return l.resetTransform=function(){return h=p=1,l.style.left=l.style.top=NaN,l},l.flipAlong=function(t){t=t.split("");for(var e=0;e<t.length;e++)switch(t[e]){case"x":h=-h;break;case"y":p=-p}var i="";return h==-1&&(i+="x"),p==-1&&(i+="y"),l.style.flip=i,l},l.setShadow=function(t){var e=_.createVMLNode(d,"shadow");return e.className="vml",t=_.parseShadow(t),e.setAttribute("on","true"),e.setAttribute("opacity",t.opacity),e.setAttribute("color",t.color),e.setAttribute("offset",t.offsetX+"px,"+t.offsetY+"px"),l.appendChild(e),l},e.addChildren(l,a),l.appendToParent(),l.setStyle(r),l.setAttributes(s),l}return o(t,"meshim_common_VmlShape"),t}()}).call(e,i(20),i(6),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){function t(t,r,a,s,_){function l(t,e){return[[t,0,0],[0,e,0],[0,0,1]]}function d(t,e){return[[1,0,t],[0,1,e],[0,0,1]]}function u(t){return[t[0][0],t[1][0],t[0][1],t[1][1],t[0][2],t[1][2]].join(" ")}function c(t){var e=g.generateSvgLinearGradient(m,t),i=m.createElementNS("http://www.w3.org/2000/svg","defs");return i.appendChild(e),f.parentNode.appendChild(i),f.setAttribute("fill","url(#"+e.id+")"),f}function h(t,e){var i,n,o=[];for(var r in t)if(t.hasOwnProperty(r)){i=e?m.createElementNS(e,r):m.createElement(r),n=t[r];for(var a in n)n.hasOwnProperty(a)&&i.setAttribute(a,n[a]);o.push(i)}return o}function p(){for(var t=[[1,0,0],[0,1,0],[0,0,1]],e=0;e<arguments.length;e++){for(var i=[],n=arguments[e],o=0;o<3;o++){i[o]=[];for(var r=0;r<3;r++){for(var a=0,s=0;s<3;s++)a+=t[o][s]*n[s][r];i[o][r]=a}}t=i}return t}var g=i(298);r=r||e.generateID();var f,m=t.ownerDocument;f=m.createElementNS("http://www.w3.org/2000/svg","path"),f.vectorType="svg",e.extend(f),n.extend(f),e.set(r,f);var $=!1;f.appendToParent=function(i){e.hasParentNode(f)||e.appendChild(t,f),i&&!$&&(t.appendToParent&&t.appendToParent(!0),$=!0)},f.setClass=function(t){return f.setAttribute("class",t),f},f.addClass=function(t){return f.setAttribute("class",f.getAttribute("class")+" "+t),f},f.removeClass=function(t){var e=f.getAttribute("class"),i=new RegExp("\\b"+t+"\\b","g");return e.replace(i,""),f.setAttribute("class",e),f},f.setPath=function(t){return f.setAttribute("d",t),f},f.setOpacity=function(t){return f.style.opacity=parseFloat(t),f},f.setFill=function(t){return/linear/.test(t)?c(t):f.setAttribute("fill",t),f},f.setStroke=function(t){return f.setAttribute("stroke",t),f},f.setStrokeWidth=function(t){return f.setAttribute("stroke-width",t),f};var b=[[1,0,0],[0,1,0],[0,0,1]];return f.resetTransform=function(){return f.setAttribute("transform",""),b=[[1,0,0],[0,1,0],[0,0,1]],f},f.moveRight=function(t){var e=parseInt(t,10);return isNaN(e)?f:(b=p(b,d(e,0)),f.setAttribute("transform","matrix("+u(b)+")"),f)},f.setLeft=f.moveRight,f.moveDown=function(t){var e=parseInt(t,10);return isNaN(e)?f:(b=p(b,d(0,e)),f.setAttribute("transform","matrix("+u(b)+")"),f)},f.setTop=f.moveDown,f.flipAlong=function(t){t=t.split("");for(var e=0;e<t.length;e++){var i=f.getBBox();switch(t[e]){case"x":b=p(b,l(-1,1),d(-(2*i.x+i.width),0)),f.setAttribute("transform","matrix("+u(b)+")");break;case"y":b=p(b,l(1,-1),d(0,-(2*i.y+i.height))),f.setAttribute("transform","matrix("+u(b)+")")}}if(o.isWebkit){var n=f.getAttribute("filter");f.setAttribute("filter",""),f.setAttribute("filter",n)}return f},f.setShadow=function(t){t=g.parseShadow(t);var e,i;if(!o.isOpera){var n={feOffset:{result:"offset-out","in":"SourceGraphic",dx:t.offsetX,dy:t.offsetY},feColorMatrix:{result:"matrix-out","in":"offset-out",type:"matrix",values:"0.2 0 0 0 0 0 0.2 0 0 0 0 0 0.2 0 0 0 0 0 1 0"},feGaussianBlur:{result:"blur-out","in":"matrix-out",stdDeviation:t.blurRadius/2},feBlend:{"in":"SourceGraphic",in2:"blur-out",mode:"normal"}};e=m.createElementNS("http://www.w3.org/2000/svg","filter"),i="sha_"+(new Date).getTime(),e.setAttribute("id",i);for(var r=h(n,"http://www.w3.org/2000/svg"),a=0;a<r.length;a++)e.appendChild(r[a]);var s=m.createElementNS("http://www.w3.org/2000/svg","defs");return s.appendChild(e),f.parentNode.appendChild(s),f.setAttribute("filter","url(#"+i+")"),f}},e.addChildren(f,s),f.appendToParent(),f.setStyle(a),f.setAttributes(_),f}return r(t,"meshim_common_SvgShape"),t}()}).call(e,i(20),i(6),i(7),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatButton_ButtonBar=i(306),t.exports=function(){function t(_,l,u,c,h){if(!(this instanceof t))return new t(_,l,u,c,h);l=l||n.generateID();var p=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_chatButton_ButtonBar,"button_bar","",[],{id:"button_bar",addClass:"button_bar"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:chatButton":"meshim.widget.components.chatButton",visibility:"hidden"}],g=p[0].call(this,_,l,null,n.mangleIDs(l,p[3]),p[4]),f=g||this;n.set(l,f);var m=n.get(l+"__button_bar");t.__jx__jcss_generated||(o.generate(_,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){function t(){var t;t=c&&"undefined"!=typeof h&&!h?v.cookie_law.disabled:"offline"!=l||g?v.get(E):v.get(P),$!=t&&($=t,m.updateGreeting(t))}function i(){var e="offline"==l&&g?v.status.online:v.status[l||"offline"];m.setStatusText(e),b(t)}function n(){m.updateUnread(k)}function o(){b(n,t)}function b(){for(var t=0,i=arguments.length;t<i;t++)a(arguments[t])&&arguments[t]();e()}x.rtl(f),f.autobind(S,"value",function(t){_!==t&&(_=t,b())}),f.autobind(I,"value",function(t){k=t,b(n)}),f.autobind(E,"value",function(e){d=e,b(t)}),f.autobind(P,"value",function(e){u=e,b(t)}),f.autobind(W,"value",function(e){h=e,b(t)}),f.autobind(V,"value",function(t){g!==t&&(g=t,m.setIsChatting(t),b(i))}),f.autobind(O,"value",function(e){c=e,b(t)}),f.autobind(F,"value",e),r&&r.onLanguage&&(r.onLanguage(o),f.onDestruction(function(){r.unLanguage(o)})),f.autobind(N,"value",function(t){T!==t&&(T=t,m.setStatusDisplay(t),b())}),f.autobind(B,"value",function(t){l!==t&&(l=t,b(i))}),f.autobind(M,"value",function(t){void 0!==t&&p!==t&&(p=t,m.setLanguageDirection(t))}),s(y.ieQuirksModeFix)}function e(){s(n,f,!0)}function n(){L.update(parseInt(f.getWidth(),10)||parseInt(o.getVariable("chatButtonMinWidth"),10)),R.update(parseInt(o.getVariable("chatButtonHeight"),10)),!b&&$&&(f.setVisibility(""),b=!0)}var _,l,d,u,c,h,p,g,$,b,w=i(30),x=i(89),v=i(91),y=i(242),j=w.root.$("livechat"),C=j.$("ui"),A=C.$("chat_button"),S=A.$("display$bool"),I=A.$("unread_count$int"),k=0,B=j.$("account").$("status$string"),N=j.$("settings").$("theme").$("chat_button").$("display_status$bool"),T=-1,D=j.$("settings").$("greetings"),E=D.$("online$string"),P=D.$("offline$string"),O=j.$("settings").$("cookie_law").$("enabled$bool"),W=j.$("profile").$("allow_cookies$bool"),L=A.$("button_width$int"),R=A.$("button_height$int"),F=C.$("theme_loaded$bool"),M=C.$("lang_dir$string"),V=j.$("channel").$("chatting$bool");t()}();for(var b in $)$.hasOwnProperty(b)&&(f[b]=$[b]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(u),f.setAttributes&&f.setAttributes(h),"function"==typeof f.addChildren?f.addChildren(c):n.addChildren(f,c),f!==this&&(f.__jx__constructor=d,f.__jx__native=!1),f}var d;return t.prototype=_(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{margin:"0 auto",position:"absolute","bottom, left":0},".button_bar":{"minWidth, *width":"$$chatButtonMinWidth",maxWidth:"$$chatButtonMaxWidth",height:"$$chatButtonHeight",color:"$$chatButtonColor",background:"$$chatButtonBg",boxShadow:"$$chatButtonShadow"},"**self, **self *":{cursor:"pointer"}},l(t,"meshim_widget_components_chatButton_Button"),d=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(9),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Favicon=i(307),e.__$$__jx_ui_Label=i(95),e.__$$__meshim_widget_widgets_BorderOverlay=i(94),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Favicon,"","",[],{addClass:"favicon"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Label,"status_text_wrapper","",[[e.__$$__jx_ui_Label,"status_text","",[],{id:"status_text"}],[e.__$$__jx_ui_Label,"","",[],{text:" - "}]],{addClass:"status",id:"status_text_wrapper"}],[e.__$$__jx_ui_Label,"greeting","",[],{id:"greeting",addClass:"greeting"}]],{addClass:"blinds blinds_top"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Label,"unread","",[],{id:"unread",text:"XX new messages"}]],{addClass:"blinds blinds_bottom"}]],{addClass:"button_text"}],[e.__$$__meshim_widget_widgets_BorderOverlay,"","",[],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],p=h[0].call(this,s,_,null,n.mangleIDs(_,h[3]),h[4]),g=p||this;n.set(_,g);var f=n.get(_+"__status_text_wrapper"),m=n.get(_+"__status_text"),$=n.get(_+"__greeting"),b=n.get(_+"__unread");t.__jx__jcss_generated||(o.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var w=function(){function t(){r&&r.onLanguage&&(r.onLanguage(e),g.onDestruction(function(){r.unLanguage(e)}))}function e(){s&&o>0?g.addClass("unread"):g.removeClass("unread"),b.setText(n.chat_button[1==o?"unread_one":"unread_many"].replace("<number>",o))}var n=i(91),o=0,s=!1;g.setIsChatting=function(t){var i=a(t);s!==i&&(s=i,e())},g.setLanguageDirection=function(t){"rtl"==t?g.addClass("is-rtl"):g.removeClass("is-rtl")},g.setStatusDisplay=function(t){f.setDisplay(t?"":"none")},g.setStatusText=function(t){m.setText(t)},g.updateUnread=function(t){o!==t&&(o=parseInt(t,10)||0,e())},g.updateGreeting=function(t){$.setText(t)},t()}();for(var x in w)w.hasOwnProperty(x)&&(g[x]=w[x]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(d),g.setAttributes&&g.setAttributes(c),"function"==typeof g.addChildren?g.addChildren(u):n.addChildren(g,u),g!==this&&(g.__jx__constructor=l,g.__jx__native=!1),g}var l;return t.prototype=s(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative",paddingLeft:"$$faviconWidth",overflow:"hidden"},"&.is-rtl":{paddingLeft:0,paddingRight:"$$faviconWidth"},"&.unread .button_text ":{bottom:"100%"},".blinds":{"width, height":"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},".favicon":{position:"absolute",height:"100%",left:0,verticalAlign:"text-top",textAlign:"center",paddingTop:"8px",width:"$$faviconWidth",background:"$$faviconBg",color:"$$faviconColor"},"&.is-rtl .favicon":{left:"auto",right:0},".button_text":{position:"relative",overflow:"hidden",verticalAlign:"text-top",width:"100%",bottom:"0",transition:"bottom 0.3s ease-in-out",fontWeight:"$$chatButtonFontWeight",lineHeight:"$$chatButtonHeight",paddingLeft:"$$chatButtonPaddingFavicon",paddingRight:"$$chatButtonPadding",".status":{fontWeight:"$$chatButtonStatusFontWeight"}},".border_overlay":{borderWidth:"$$chatButtonBorderWidth",borderStyle:"$$chatButtonBorderStyle",borderColor:"$$chatButtonBorderColor"},"&.is-rtl .button_text":{paddingLeft:"$$chatButtonPadding",paddingRight:"$$chatButtonPaddingFavicon"}},_(t,"meshim_widget_components_chatButton_ButtonBar"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(16),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_Image=i(308),e.__$$__meshim_widget_widgets_IconFont=i(90),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Image,"image","",[],{id:"image",addClass:"custom_icon"}],[e.__$$__meshim_widget_widgets_IconFont,"icon","",[],{id:"icon",addClass:"default_icon"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"dots","",[],{id:"dots",addClass:"dots",selectable:"false"}]],{addClass:"dots_container"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__image"),g=n.get(a+"__icon"),f=n.get(a+"__dots");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var m=function(){function t(){function t(t){u=!t,t?(p.setDisplay("none"),g.setDisplay("")):(p.setDisplay(""),g.setDisplay("none")),n()}function e(){for(var t=window.document.getElementsByTagName("head")[0],e=t.getElementsByTagName("link"),i=0,n=e.length;i<n;i++)if("icon"==e[i].rel||"shortcut icon"==e[i].rel)return e[i].href}function i(t){var e,i=window.location.protocol+"//"+window.location.host+"/favicon.ico";try{window.ActiveXObject&&(e=new window.ActiveXObject("Msxml2.XMLHTTP"),e||(e=new window.ActiveXObject("Microsoft.XMLHTTP")))}catch(n){}return e||"undefined"==typeof window.XMLHttpRequest||(e=new window.XMLHttpRequest),e&&(e.onreadystatechange=function(){4===e.readyState&&(200===e.status||e.status>=300&&e.status<400?t(i):t())},e.open("HEAD",i,!0),e.send(null)),e}if(d)try{d.abort()}catch(o){}if(d=null,s){if(_)return p.setSrc(_),void t(!1);var r=e();if(r)return p.setSrc(r),void t(!1);d=i(function(e){e?(p.setSrc(e),t(!1)):t(!0)})}else t(!0)}function e(){h.autobind(j,"value",function(e){s=e,t()}),h.autobind(C,"value",function(e){_=e,t()}),h.autobind(y,"value",function(t){a!==t&&(a=t,n())}),h.autobind(v,"value",function(t){t!=r&&(r=t,n())}),h.autobind(A,"value",function(t){t!=l&&(l=t,n())})}function n(){a||"offline"!=r?(g.setIcon("message"),g.removeClass("default_icon_offline"),g.addClass("default_icon_online")):(g.setIcon("email"),g.removeClass("default_icon_online"),g.addClass("default_icon_offline")),l&&a&&!u?(c||(o(),c=window.setInterval(o,$)),f.setDisplay("")):(c&&(window.clearInterval(c),c=null),f.setDisplay("none"))}function o(){var t=f.getText();f.setText(t.length==b?"":t+".")}var r,a,s,_,l,d,u,c,m=i(30),$=1e3,b=3,w=m.root.$("livechat").$("account"),x=m.root.$("livechat").$("settings").$("branding"),v=w.$("status$string"),y=m.root.$("livechat").$("channel").$("chatting$bool"),j=x.$("hide_favicon$bool"),C=x.$("custom_favicon_path$string"),A=m.root.$("livechat").$("ui").$("chat_button").$("unread_count$int");e()}();for(var $ in m)m.hasOwnProperty($)&&(h[$]=m[$]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".custom_icon":{"width, height":"16px"},".default_icon":{fontSize:"16px",width:"16px",display:"inline-block","&.default_icon_online":{lineHeight:"20px",verticalAlign:"top",color:"$$faviconOnlineColor"},"&.default_icon_offline":{lineHeight:"18px",verticalAlign:"top",color:"$$faviconOfflineColor"}},".dots_container":{fontFamily:"Arial",position:"absolute",width:"100%",textAlign:"center",fontSize:"20px",letterSpacing:"-2px",top:"-3px",left:"-1px",lineHeight:"24px"},".dots":{display:"inline-block",width:"12px",lineHeight:"22px",textAlign:"left",color:["$$chatButtonBg","$$faviconBg","$$faviconDotsColor"],background:"transparent"}},a(t,"meshim_widget_widgets_Favicon"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(e,i,n,r,a){return this instanceof t?(a||(a={}),a.tagName||(a.tagName="img"),void o.call(this,e,i,n,r,a)):new t(e,i,n,r,a)}var o=i(17);return t.prototype=e(o.prototype),t.prototype.getAlt=function(){return this.dom.alt},t.prototype.setAlt=function(t){return this.dom.alt=t,this},n(t,"jx_ui_Image"),t}()}).call(e,i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){e.__$$__jx_ui_FloatingFrame=i(76),e.__$$__meshim_widget_widgets_fontLoader_ZopimFont=i(287),e.__$$__meshim_widget_components_mobileChatButton_Button=i(310),t.exports=function(){function t(s,_,d,u,c){if(!(this instanceof t))return new t(s,_,d,u,c);_=_||n.generateID();var h=[e.__$$__jx_ui_FloatingFrame,"","",[[e.__$$__meshim_widget_widgets_fontLoader_ZopimFont,"","",[],{}],[e.__$$__meshim_widget_components_mobileChatButton_Button,"","",[],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:mobileChatButton":"meshim.widget.components.mobileChatButton",useDisplay:"true",visible:"false"}],p=h[0].call(this,s,_,null,n.mangleIDs(_,h[3]),h[4]),g=p||this;n.set(_,g),t.__jx__jcss_generated||(o.generate(s,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){b.bind(g.iwin),_=new h(g,j),g.dom.className="zopim",g.iframe.setStyle("display","block"),g.content.addClass("meshim_widget_Widget"),g.wrapper.addClass(g.__jx__fqname),g.ibody.style.overflow="hidden",$(g.ibody),g.wrapper.addClass("mobile").setStyle({position:"absolute",top:0,left:0}),g.content.setStyle("textAlign","left"),g.iframe.style.verticalAlign="top",new m(g),g.autobind(P,"value",function(t){t=parseInt(t,10),L!=t&&!isNaN(t)&&t>=0&&(L=t,F())}),g.autobind(O,"value",function(t){t=parseInt(t,10),W!=t&&!isNaN(t)&&t>=0&&(W=t,F())}),g.autobind(E,"value",function(t){t&&s!=t&&("bl"!=t&&"br"!=t&&(t="br"),s&&g.wrapper.removeClass(s),s=t,s&&g.wrapper.addClass(s),F())}),r.window.on("orientationchange",F),r.window.on("resize",F),r.window.on("scroll",F),g.autobind(T,"value",function(t){t&&F()}),g.autobind(D,"value",function(t){t&&F()}),g.autobind(B,"value",F),g.moveUp=e,g.moveDown=n}function e(t){g.setVisible(!0),_.animate({endStyle:y,duration:R?200:0},function(e){e||N.update(!0),t&&t(e)}),R=!0}function n(t){N.update(!1),_.animate({endStyle:j,duration:200},function(e){e||g.setVisible(!1),t&&t(e)})}function o(){for(var t=f.getZoomLevel(),e=(1/t).toFixed(2),i=window.pageXOffset,n=window.pageYOffset,o=window.innerWidth,r=window.innerHeight,_=g.wrapper.getWidth(),l=g.wrapper.getHeight(),d=0,u=p.cssom_prefixes.length;d<u;d++)g.wrapper.setStyle(p.cssom_prefixes[d]+"Transform","scale("+e+")"),g.wrapper.setStyle(p.cssom_prefixes[d]+"TransformOrigin","0 0");var c,h,m,$,b=_/t,v=l/t,y=f.getOffset(),j=a.isIOS&&t>=1?"absolute":"fixed";g.setStyle({position:j,width:b+"px",height:v+"px",top:"",right:"",bottom:"",left:""});var C=L,A=W;"br"===s&&(void 0===O.getValue()&&(A+=w),void 0===P.getValue()&&(C+=x)),"fixed"===j?(c="auto",h="bl"===s?"auto":C/t+"px",m=A/t+"px",$="bl"===s?C/t+"px":"auto"):(c=Math.ceil(n+r-v-A/t-y.top)+"px",h="auto",m="auto",$="bl"===s?Math.ceil(i+C/t-y.left)+"px":Math.floor(i+o-b-C/t-y.left)+"px"),k.update({height$string:v,width$string:b,zoom$string:t,scale$string:e,position$string:j,top$string:c,right$string:h,bottom$string:m,left$string:$}),g.setStyle({top:c,right:h,bottom:m,left:$}),M()}var s,_,l=i(44),d=i(45),u=i(30),c=i(43),h=i(312),p=i(38),f=i(41),m=i(318),$=i(289),b=i(51),w=5,x=5,v=300,y={opacity:1,translateY:"0%"},j={opacity:0,translateY:"50%"},C=u.root.$("livechat"),A=C.$("settings"),S=C.$("ui"),I=S.$("chat_button"),k=I.$("mobile").$("calculated_styles"),B=I.$("display$bool"),N=I.$("fully_visible$bool"),T=I.$("button_width$int"),D=I.$("button_height$int"),E=A.$("theme").$("chat_button").$("position_mobile$string"),P=A.$$("theme.chat_button.h_offset_mobile$int"),O=A.$$("theme.chat_button.v_offset_mobile$int"),W=10,L=10,R=!1,F=l.debounce(o,v),M=d.once(function(){c.registerChatButton(g)});t()}();for(var m in f)f.hasOwnProperty(m)&&(g[m]=f[m]);return g.fire&&g.fire("init"),g.setStyle&&g.setStyle(d),g.setAttributes&&g.setAttributes(c),"function"==typeof g.addChildren?g.addChildren(u):n.addChildren(g,u),g!==this&&(g.__jx__constructor=l,g.__jx__native=!1),g}var l;return t.prototype=s(e.__$$__jx_ui_FloatingFrame.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_FloatingFrame,t.__jx__jcss={},_(t,"meshim_widget_components_MobileChatButton"),l=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(6),i(7),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s,_,l){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_mobileChatButton_ButtonBar=i(311),t.exports=function(){function t(_,l,u,c,h){if(!(this instanceof t))return new t(_,l,u,c,h);l=l||n.generateID();var p=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_mobileChatButton_ButtonBar,"button_bar","",[],{id:"button_bar",addClass:"button_bar"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mobileChatButton":"meshim.widget.components.mobileChatButton",visibility:"hidden"}],g=p[0].call(this,_,l,null,n.mangleIDs(l,p[3]),p[4]),f=g||this;n.set(l,f);var m=n.get(l+"__button_bar");t.__jx__jcss_generated||(o.generate(_,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){function t(){var t;t=c&&"undefined"!=typeof h&&!h?v.cookie_law.disabled_mobile:"offline"!=l||g?v.chat_button.mobile_greeting.online:v.chat_button.mobile_greeting.offline,$!=t&&($=t,m.updateGreeting(t))}function i(){var e="offline"==l&&g?v.status.online:v.status[l||"offline"];m.setStatusText(e),o(t)}function n(){o(t)}function o(){for(var t=0,i=arguments.length;t<i;t++)a(arguments[t])&&arguments[t]();e()}x.rtl(f),f.autobind(S,"value",function(t){_!==t&&(_=t,o())}),f.autobind(T,"value",function(e){d=e,o(t)}),f.autobind(D,"value",function(e){u=e,o(t)}),f.autobind(P,"value",function(e){h=e,o(t)}),f.autobind(F,"value",function(t){g!==t&&(g=t,o(i))}),f.autobind(E,"value",function(e){c=e,o(t)}),f.autobind(L,"value",e),r&&r.onLanguage&&(r.onLanguage(n),f.onDestruction(function(){r.unLanguage(n)})),f.autobind(k,"value",function(t){B!==t&&(B=t,m.setStatusDisplay(t),o())}),f.autobind(I,"value",function(t){l!==t&&(l=t,o(i))}),f.autobind(R,"value",function(t){void 0!==t&&p!==t&&(p=t,m.setLanguageDirection(t))}),s(y.ieQuirksModeFix)}function e(){s(n,f,!0)}function n(){O.update(parseInt(f.getWidth(),10)||parseInt(o.getVariable("chatButtonMinWidth"),10)),W.update(parseInt(o.getVariable("chatButtonHeight"),10)),!b&&$&&(f.setVisibility(""),b=!0)}var _,l,d,u,c,h,p,g,$,b,w=i(30),x=i(89),v=i(91),y=i(242),j=w.root.$("livechat"),C=j.$("ui"),A=C.$("chat_button"),S=A.$("display$bool"),I=j.$("account").$("status$string"),k=j.$("settings").$("theme").$("chat_button").$("display_status$bool"),B=-1,N=j.$("settings").$("greetings"),T=N.$("online$string"),D=N.$("offline$string"),E=j.$("settings").$("cookie_law").$("enabled$bool"),P=j.$("profile").$("allow_cookies$bool"),O=A.$("button_width$int"),W=A.$("button_height$int"),L=C.$("theme_loaded$bool"),R=C.$("lang_dir$string"),F=j.$("channel").$("chatting$bool");t()}();for(var b in $)$.hasOwnProperty(b)&&(f[b]=$[b]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(u),f.setAttributes&&f.setAttributes(h),"function"==typeof f.addChildren?f.addChildren(c):n.addChildren(f,c),f!==this&&(f.__jx__constructor=d,f.__jx__native=!1),f}var d;return t.prototype=_(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{margin:"0 auto",position:"relative","bottom, left":"auto",paddingRight:"0px",paddingTop:"0px"},".button_bar":{minWidth:"0",maxWidth:"$$chatButtonMaxWidth",height:"$$chatButtonHeight",color:"$$chatButtonColor",background:"$$chatButtonBg",boxShadow:"$$chatButtonShadow",borderRadius:"$$chatButtonRadius"}},l(t,"meshim_widget_components_mobileChatButton_Button"),d=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(9),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Favicon=i(307),e.__$$__jx_ui_Label=i(95),e.__$$__meshim_widget_widgets_BorderOverlay=i(94),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Favicon,"","",[],{addClass:"favicon"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Label,"status_text_wrapper","",[[e.__$$__jx_ui_Label,"status_text","",[],{id:"status_text"}],[e.__$$__jx_ui_Label,"","",[],{text:" - "}]],{addClass:"status",id:"status_text_wrapper"}],[e.__$$__jx_ui_Label,"greeting","",[],{id:"greeting"}]],{addClass:"button_text"}],[e.__$$__meshim_widget_widgets_BorderOverlay,"","",[],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__status_text_wrapper"),p=n.get(a+"__status_text"),g=n.get(a+"__greeting");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){c.setLanguageDirection=function(t){"rtl"==t?c.addClass("is-rtl"):c.removeClass("is-rtl")},c.setStatusDisplay=function(t){h.setDisplay(t?"":"none")},c.setStatusText=function(t){p.setText(t)},c.updateGreeting=function(t){g.setText(t)}}();for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative",paddingLeft:"$$faviconWidth",overflow:"hidden"},"&.is-rtl":{paddingLeft:0,paddingRight:"$$faviconWidth"},".favicon":{position:"absolute",height:"100%",left:0,verticalAlign:"text-top",textAlign:"center",paddingTop:"8px",width:"$$faviconWidth",background:"$$faviconBg",color:"$$faviconColor","borderTopLeftRadius, borderBottomLeftRadius":"$$chatButtonRadius"},"&.is-rtl .favicon":{left:"auto",right:0,"borderTopLeftRadius, borderBottomLeftRadius":0,"borderTopRightRadius, borderBottomRightRadius":"$$chatButtonRadius"},".button_text":{position:"relative",overflow:"hidden",verticalAlign:"text-top",width:"100%",bottom:"0",whiteSpace:"nowrap",fontWeight:"$$chatButtonFontWeight",lineHeight:"$$chatButtonHeight",paddingLeft:"$$chatButtonPaddingFavicon",paddingRight:"$$chatButtonPadding",".status":{fontWeight:"$$chatButtonStatusFontWeight"}},".border_overlay":{borderWidth:"$$chatButtonBorderWidth",borderStyle:"$$chatButtonBorderStyle",borderColor:"$$chatButtonBorderColor"},"&.is-rtl .button_text":{paddingLeft:"$$chatButtonPadding",paddingRight:"$$chatButtonPaddingFavicon"}},a(t,"meshim_widget_components_mobileChatButton_ButtonBar"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n){t.exports=function(){
function t(e,i){if(!(this instanceof t))return new t(e,i);this.elm=e,this.currStyle=l({},i),this.applyStyle(this.currStyle);var n=this;this.elm.onDestruction(function(){n.destroy()})}var o=i(313),r=i(314),a=i(315),s=i(38),_=i(317),l=s.shallowExtend,d=function(){};return t.prototype.animate=function(t,i){var n=l({},t.endStyle),o=e(t.duration)?t.duration:300,r=e(t.delay)?t.delay:0,a=t.easeType||"easeQuadInOut",s=e(t.startTime)?t.startTime:+new Date,_=0;i=i||d,e(window.animateDebug)&&(o*=window.animateDebug,r*=window.animateDebug),r<0?_=-r:s+=r,this.stop(),this.cb=i||d,this._animate({startStyle:this.currStyle,endStyle:n,duration:o,startTime:s,elapsedOffset:_,easeType:a})},t.prototype.stop=function(){this.timer&&(this.timer.stop(),this.timer=null,this.cb.call(this.elm,"stopped"))},t.prototype.destroy=function(){this.stop(),this.elm=this.currStyle=this.cb=this.timer=null},t.prototype.isAnimating=function(){return!!this.timer},t.prototype._animate=function(t){function e(t){if(t+=_,t>=s)h.stop(),p.timer=null,p.currStyle=n,p.applyStyle(n),p.cb.call(p.elm,null);else{var e=c(t/s),i=u(e);p.currStyle=i,p.applyStyle(i)}}var i=t.startStyle,n=t.endStyle,s=t.duration,_=t.elapsedOffset,l=t.startTime,d=t.easeType,u=a.interpolateObject(i,n),c=r[d],h=o.timer(e,0,l),p=this;p.timer=h},t.prototype.applyStyle=function(t){t=_(t);for(var e in t)t.hasOwnProperty(e)&&this.elm.setCSSStyle(e,t[e])},n(t,"meshim_widget_utils_Animate"),t}()}).call(e,i(23),i(4))},function(t,e,i){!function(t,i){i(e)}(this,function(t){"use strict";function e(t,e,i){this.id=++d,this.restart(t,e,i)}function i(t,i,n){return new e(t,i,n)}function n(t){t=null==t?Date.now():+t,++_;try{for(var e,i=a;i;)t>=i.time&&(e=i.callback)(t-i.time,t),i=i.next}finally{--_}}function o(){_=l=0;try{n()}finally{for(var t,e=a,i=1/0;e;)e.callback?(i>e.time&&(i=e.time),e=(t=e).next):e=t?t.next=e.next:a=e.next;s=t,r(i)}}function r(t){if(!_){l&&(l=clearTimeout(l));var e=t-Date.now();e>24?t<1/0&&(l=setTimeout(o,e)):(_=1,c(o))}}var a,s,_=0,l=0,d=0,u={},c="undefined"!=typeof window&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame)||function(t){return setTimeout(t,17)};e.prototype=i.prototype={restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?Date.now():+i)+(null==e?0:+e);var n=this.id,o=u[n];o?(o.callback=t,o.time=i):(o={next:null,callback:t,time:i},s?s.next=o:a=o,u[n]=s=o),r()},stop:function(){var t=this.id,e=u[t];e&&(e.callback=null,e.time=1/0,delete u[t],r())}};var h="0.1.0";t.version=h,t.timer=i,t.timerFlush=n})},function(t,e,i){!function(t,i){i(e)}(this,function(t){"use strict";function e(t,e){return function(i){return t(i,e)}}function i(t,e,i){return function(n){return t(n,e,i)}}function n(t,e){return e=D.call(e),e[0]=null,function(i){return e[0]=i,t.apply(null,e)}}function o(t,o,r){switch(arguments.length){case 1:return t;case 2:return e(t,o);case 3:return i(t,o,r);default:return n(t,arguments)}}function r(t){return+t}function a(t){return t*t}function s(t){return t*(2-t)}function _(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function l(t){return t*t*t}function d(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function c(t,e){return null==e&&(e=3),Math.pow(t,e)}function h(t,e){return null==e&&(e=3),1-Math.pow(1-t,e)}function p(t,e){return null==e&&(e=3),((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}function g(t){return 1-Math.cos(t*P)}function f(t){return Math.sin(t*P)}function m(t){return(1-Math.cos(E*t))/2}function $(t){return Math.pow(2,10*t-10)}function b(t){return 1-Math.pow(2,-10*t)}function w(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function x(t){return 1-Math.sqrt(1-t*t)}function v(t){return Math.sqrt(1- --t*t)}function y(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function j(t){return 1-C(1-t)}function C(t){return t<O?q*t*t:t<L?q*(t-=W)*t+R:t<M?q*(t-=F)*t+V:q*(t-=H)*t+z}function A(t){return((t*=2)<=1?1-C(1-t):C(t-1)+1)/2}function S(t,e){return e=null==e?1.70158:+e,t*t*((e+1)*t-e)}function I(t,e){return e=null==e?1.70158:+e,--t*t*((e+1)*t+e)+1}function k(t,e){return e=null==e?1.70158:+e,((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}function B(t,e,i){return e=null==e?1:Math.max(1,e),i=(null==i?.3:i)/U,e*Math.pow(2,10*--t)*Math.sin((i*Math.asin(1/e)-t)/i)}function N(t,e,i){return e=null==e?1:Math.max(1,e),i=(null==i?.3:i)/U,1-e*Math.pow(2,-10*t)*Math.sin((+t+i*Math.asin(1/e))/i)}function T(t,e,i){e=null==e?1:Math.max(1,e),i=(null==i?.3:i)/U;var n=i*Math.asin(1/e);return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((n-t)/i):2-e*Math.pow(2,-10*t)*Math.sin((n+t)/i))/2}var D=Array.prototype.slice,E=Math.PI,P=E/2,O=4/11,W=6/11,L=8/11,R=.75,F=9/11,M=10/11,V=.9375,H=21/22,z=63/64,q=1/O/O,U=2*Math.PI,G="0.5.1";t.version=G,t.easeBind=o,t.easeLinearIn=r,t.easeLinearOut=r,t.easeLinearInOut=r,t.easeQuadIn=a,t.easeQuadOut=s,t.easeQuadInOut=_,t.easeCubicIn=l,t.easeCubicOut=d,t.easeCubicInOut=u,t.easePolyIn=c,t.easePolyOut=h,t.easePolyInOut=p,t.easeSinIn=g,t.easeSinOut=f,t.easeSinInOut=m,t.easeExpIn=$,t.easeExpOut=b,t.easeExpInOut=w,t.easeCircleIn=x,t.easeCircleOut=v,t.easeCircleInOut=y,t.easeBounceIn=j,t.easeBounceOut=C,t.easeBounceInOut=A,t.easeBackIn=S,t.easeBackOut=I,t.easeBackInOut=k,t.easeElasticIn=B,t.easeElasticOut=N,t.easeElasticInOut=T})},function(t,e,i){!function(t,n){n(e,i(316))}(this,function(t,e){"use strict";function i(t,i){t=e.rgb(t),i=e.rgb(i);var n=t.r,o=t.g,r=t.b,a=i.r-n,s=i.g-o,_=i.b-r;return function(e){return t.r=n+a*e,t.g=o+s*e,t.b=r+_*e,t+""}}function n(t,e){var i,n=[],o=[],r=t?t.length:0,a=e?e.length:0,s=Math.min(r,a);for(i=0;i<s;++i)n.push(l(t[i],e[i]));for(;i<r;++i)o[i]=t[i];for(;i<a;++i)o[i]=e[i];return function(t){for(i=0;i<s;++i)o[i]=n[i](t);return o}}function o(t,e){return t=+t,e-=t,function(i){return t+e*i}}function r(t,e){var i,n={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(i in t)i in e?n[i]=l(t[i],e[i]):o[i]=t[i];for(i in e)i in t||(o[i]=e[i]);return function(t){for(i in n)o[i]=n[i](t);return o}}function a(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}function _(t,e){var i,n,r,_=O.lastIndex=W.lastIndex=0,l=-1,d=[],u=[];for(t+="",e+="";(i=O.exec(t))&&(n=W.exec(e));)(r=n.index)>_&&(r=e.slice(_,r),d[l]?d[l]+=r:d[++l]=r),(i=i[0])===(n=n[0])?d[l]?d[l]+=n:d[++l]=n:(d[++l]=null,u.push({i:l,x:o(i,n)})),_=W.lastIndex;return _<e.length&&(r=e.slice(_),d[l]?d[l]+=r:d[++l]=r),d.length<2?u[0]?s(u[0].x):a(e):(e=u.length,function(t){for(var i,n=0;n<e;++n)d[(i=u[n]).i]=i.x(t);return d.join("")})}function l(t,e){for(var i,n=L.length;--n>=0&&!(i=L[n](t,e)););return i}function d(t,e){return t=+t,e-=t,function(i){return Math.round(t+e*i)}}function u(t){P||(P=document.createElementNS("http://www.w3.org/2000/svg","g")),t&&(P.setAttribute("transform",t),e=P.transform.baseVal.consolidate());var e,i=e?e.matrix:F,n=[i.a,i.b],o=[i.c,i.d],r=h(n),a=c(n,o),s=h(p(o,n,-a))||0;n[0]*o[1]<o[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,a*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-o[0],o[1]))*R,this.translate=[i.e,i.f],this.scale=[r,s],this.skew=s?Math.atan2(a,s)*R:0}function c(t,e){return t[0]*e[0]+t[1]*e[1]}function h(t){var e=Math.sqrt(c(t,t));return e&&(t[0]/=e,t[1]/=e),e}function p(t,e,i){return t[0]+=i*e[0],t[1]+=i*e[1],t}function g(t){return t.length?t.pop()+",":""}function f(t,e,i,n){if(t[0]!==e[0]||t[1]!==e[1]){var r=i.push("translate(",null,",",null,")");n.push({i:r-4,x:o(t[0],e[0])},{i:r-2,x:o(t[1],e[1])})}else(e[0]||e[1])&&i.push("translate("+e+")")}function m(t,e,i,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:i.push(g(i)+"rotate(",null,")")-2,x:o(t,e)})):e&&i.push(g(i)+"rotate("+e+")")}function $(t,e,i,n){t!==e?n.push({i:i.push(g(i)+"skewX(",null,")")-2,x:o(t,e)}):e&&i.push(g(i)+"skewX("+e+")")}function b(t,e,i,n){if(t[0]!==e[0]||t[1]!==e[1]){var r=i.push(g(i)+"scale(",null,",",null,")");n.push({i:r-4,x:o(t[0],e[0])},{i:r-2,x:o(t[1],e[1])})}else 1===e[0]&&1===e[1]||i.push(g(i)+"scale("+e+")")}function w(t,e){var i=[],n=[];return t=new u(t),e=new u(e),f(t.translate,e.translate,i,n),m(t.rotate,e.rotate,i,n),$(t.skew,e.skew,i,n),b(t.scale,e.scale,i,n),t=e=null,function(t){for(var e,o=-1,r=n.length;++o<r;)i[(e=n[o]).i]=e.x(t);return i.join("")}}function x(t){return((t=Math.exp(t))+1/t)/2}function v(t){return((t=Math.exp(t))-1/t)/2}function y(t){return((t=Math.exp(2*t))-1)/(t+1)}function j(t,e){var i,n,o=t[0],r=t[1],a=t[2],s=e[0],_=e[1],l=e[2],d=s-o,u=_-r,c=d*d+u*u;if(c<z)n=Math.log(l/a)/M,i=function(t){return[o+t*d,r+t*u,a*Math.exp(M*t*n)]};else{var h=Math.sqrt(c),p=(l*l-a*a+H*c)/(2*a*V*h),g=(l*l-a*a-H*c)/(2*l*V*h),f=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(g*g+1)-g);n=(m-f)/M,i=function(t){var e=t*n,i=x(f),s=a/(V*h)*(i*y(M*e+f)-v(f));return[o+s*d,r+s*u,a*i/x(M*e+f)]}}return i.duration=1e3*n,i}function C(t,e){var i=t-e;return i>180||i<-180?i-360*Math.round(i/360):i}function A(t,i){t=e.hsl(t),i=e.hsl(i);var n=isNaN(t.h)?i.h:t.h,o=isNaN(t.s)?i.s:t.s,r=t.l,a=isNaN(i.h)?0:C(i.h,n),s=isNaN(i.s)?0:i.s-o,_=i.l-r;return function(e){return t.h=n+a*e,t.s=o+s*e,t.l=r+_*e,t+""}}function S(t,i){t=e.hsl(t),i=e.hsl(i);var n=isNaN(t.h)?i.h:t.h,o=isNaN(t.s)?i.s:t.s,r=t.l,a=isNaN(i.h)?0:i.h-n,s=isNaN(i.s)?0:i.s-o,_=i.l-r;return function(e){return t.h=n+a*e,t.s=o+s*e,t.l=r+_*e,t+""}}function I(t,i){t=e.lab(t),i=e.lab(i);var n=t.l,o=t.a,r=t.b,a=i.l-n,s=i.a-o,_=i.b-r;return function(e){return t.l=n+a*e,t.a=o+s*e,t.b=r+_*e,t+""}}function k(t,i){t=e.hcl(t),i=e.hcl(i);var n=isNaN(t.h)?i.h:t.h,o=isNaN(t.c)?i.c:t.c,r=t.l,a=isNaN(i.h)?0:C(i.h,n),s=isNaN(i.c)?0:i.c-o,_=i.l-r;return function(e){return t.h=n+a*e,t.c=o+s*e,t.l=r+_*e,t+""}}function B(t,i){t=e.hcl(t),i=e.hcl(i);var n=isNaN(t.h)?i.h:t.h,o=isNaN(t.c)?i.c:t.c,r=t.l,a=isNaN(i.h)?0:i.h-n,s=isNaN(i.c)?0:i.c-o,_=i.l-r;return function(e){return t.h=n+a*e,t.c=o+s*e,t.l=r+_*e,t+""}}function N(t,i,n){arguments.length<3&&(n=1),t=e.cubehelix(t),i=e.cubehelix(i);var o=isNaN(t.h)?i.h:t.h,r=isNaN(t.s)?i.s:t.s,a=t.l,s=isNaN(i.h)?0:C(i.h,o),_=isNaN(i.s)?0:i.s-r,l=i.l-a;return function(e){return t.h=o+s*e,t.s=r+_*e,t.l=a+l*Math.pow(e,n),t+""}}function T(t,i,n){arguments.length<3&&(n=1),t=e.cubehelix(t),i=e.cubehelix(i);var o=isNaN(t.h)?i.h:t.h,r=isNaN(t.s)?i.s:t.s,a=t.l,s=isNaN(i.h)?0:i.h-o,_=isNaN(i.s)?0:i.s-r,l=i.l-a;return function(e){return t.h=o+s*e,t.s=r+_*e,t.l=a+l*Math.pow(e,n),t+""}}function D(t,e){return e=q.call(e),e[0]=null,e.unshift(null),function(i,n){return e[0]=i,e[1]=n,t.apply(null,e)}}function E(t){return 1===arguments.length?t:D(t,arguments)}var P,O=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,W=new RegExp(O.source,"g"),L=[function(t,a){var s,l=typeof a;return("string"===l?(s=e.color(a))?(a=s,i):_:a instanceof e.color?i:Array.isArray(a)?n:"object"===l&&isNaN(a)?r:o)(t,a)}],R=180/Math.PI,F={a:1,b:0,c:0,d:1,e:0,f:0},M=Math.SQRT2,V=2,H=4,z=1e-12,q=Array.prototype.slice,U="0.4.0";t.version=U,t.interpolate=l,t.interpolators=L,t.interpolateArray=n,t.interpolateNumber=o,t.interpolateObject=r,t.interpolateRound=d,t.interpolateString=_,t.interpolateTransform=w,t.interpolateZoom=j,t.interpolateRgb=i,t.interpolateHsl=A,t.interpolateHslLong=S,t.interpolateLab=I,t.interpolateHcl=k,t.interpolateHclLong=B,t.interpolateCubehelix=N,t.interpolateCubehelixLong=T,t.interpolateBind=E})},function(t,e,i){!function(t,i){i(e)}(this,function(t){"use strict";function e(){}function i(t){var e;return t=(t+"").trim().toLowerCase(),(e=x.exec(t))?(e=parseInt(e[1],16),new r(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e)):(e=v.exec(t))?n(parseInt(e[1],16)):(e=y.exec(t))?new r(e[1],e[2],e[3]):(e=j.exec(t))?new r(255*e[1]/100,255*e[2]/100,255*e[3]/100):(e=C.exec(t))?new s(e[1],e[2]/100,e[3]/100):A.hasOwnProperty(t)?n(A[t]):null}function n(t){return new r(t>>16&255,t>>8&255,255&t)}function o(t,n,o){return 1===arguments.length&&(t instanceof e||(t=i(t)),t?(t=t.rgb(),o=t.b,n=t.g,t=t.r):t=n=o=NaN),new r(t,n,o)}function r(t,e,i){this.r=+t,this.g=+e,this.b=+i}function a(t,n,o){if(1===arguments.length)if(t instanceof s)o=t.l,n=t.s,t=t.h;else if(t instanceof e||(t=i(t)),t){if(t instanceof s)return t;t=t.rgb();var r=t.r/255,a=t.g/255,_=t.b/255,l=Math.min(r,a,_),d=Math.max(r,a,_),u=d-l;o=(d+l)/2,u?(n=o<.5?u/(d+l):u/(2-d-l),t=r===d?(a-_)/u+6*(a<_):a===d?(_-r)/u+2:(r-a)/u+4,t*=60):(t=NaN,n=o>0&&o<1?0:t)}else t=n=o=NaN;return new s(t,n,o)}function s(t,e,i){this.h=+t,this.s=+e,this.l=+i}function _(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function l(t,e,i){if(1===arguments.length)if(t instanceof d)i=t.b,e=t.a,t=t.l;else if(t instanceof f){var n=t.h*k;i=Math.sin(n)*t.c,e=Math.cos(n)*t.c,t=t.l}else{t instanceof r||(t=o(t)),i=p(t.r),e=p(t.g),t=p(t.b);var a=u((.4124564*i+.3575761*e+.1804375*t)/T),s=u((.2126729*i+.7151522*e+.072175*t)/D),_=u((.0193339*i+.119192*e+.9503041*t)/E);i=200*(s-_),e=500*(a-s),t=116*s-16}return new d(t,e,i)}function d(t,e,i){this.l=+t,this.a=+e,this.b=+i}function u(t){return t>L?Math.pow(t,1/3):t/W+P}function c(t){return t>O?t*t*t:W*(t-P)}function h(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function p(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t,e,i){return 1===arguments.length&&(t instanceof f?(i=t.l,e=t.c,t=t.h):(t instanceof d||(t=l(t)),i=t.l,e=Math.sqrt(t.a*t.a+t.b*t.b),t=Math.atan2(t.b,t.a)*B,t<0&&(t+=360))),new f(t,e,i)}function f(t,e,i){this.h=+t,this.c=+e,this.l=+i}function m(t,e,i){if(1===arguments.length)if(t instanceof $)i=t.l,e=t.s,t=t.h;else{t instanceof r||(t=o(t));var n=t.r/255,a=t.g/255,s=t.b/255;i=(Y*s+U*n-G*a)/(Y+U-G);var _=s-i,l=(q*(a-i)-H*_)/z;e=Math.sqrt(l*l+_*_)/(q*i*(1-i)),t=e?Math.atan2(l,_)*B-120:NaN,t<0&&(t+=360)}return new $(t,e,i)}function $(t,e,i){this.h=+t,this.s=+e,this.l=+i}var b=.7,w=1/b,x=/^#([0-9a-f]{3})$/,v=/^#([0-9a-f]{6})$/,y=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,j=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,C=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,A={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};i.prototype=e.prototype={displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}};var S=o.prototype=r.prototype=new e;S.brighter=function(t){return t=null==t?w:Math.pow(w,t),new r(this.r*t,this.g*t,this.b*t)},S.darker=function(t){return t=null==t?b:Math.pow(b,t),new r(this.r*t,this.g*t,this.b*t)},S.rgb=function(){return this},S.displayable=function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255},S.toString=function(){var t=Math.round(this.r),e=Math.round(this.g),i=Math.round(this.b);return"#"+(isNaN(t)||t<=0?"00":t<16?"0"+t.toString(16):t>=255?"ff":t.toString(16))+(isNaN(e)||e<=0?"00":e<16?"0"+e.toString(16):e>=255?"ff":e.toString(16))+(isNaN(i)||i<=0?"00":i<16?"0"+i.toString(16):i>=255?"ff":i.toString(16))};var I=a.prototype=s.prototype=new e;I.brighter=function(t){return t=null==t?w:Math.pow(w,t),new s(this.h,this.s,this.l*t)},I.darker=function(t){return t=null==t?b:Math.pow(b,t),new s(this.h,this.s,this.l*t)},I.rgb=function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,o=2*i-n;return new r(_(t>=240?t-240:t+120,o,n),_(t,o,n),_(t<120?t+240:t-120,o,n))},I.displayable=function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1};var k=Math.PI/180,B=180/Math.PI,N=18,T=.95047,D=1,E=1.08883,P=4/29,O=6/29,W=3*O*O,L=O*O*O,R=l.prototype=d.prototype=new e;R.brighter=function(t){return new d(this.l+N*(null==t?1:t),this.a,this.b)},R.darker=function(t){return new d(this.l-N*(null==t?1:t),this.a,this.b)},R.rgb=function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return t=D*c(t),e=T*c(e),i=E*c(i),new r(h(3.2404542*e-1.5371385*t-.4985314*i),h(-.969266*e+1.8760108*t+.041556*i),h(.0556434*e-.2040259*t+1.0572252*i))};var F=g.prototype=f.prototype=new e;F.brighter=function(t){return new f(this.h,this.c,this.l+N*(null==t?1:t))},F.darker=function(t){return new f(this.h,this.c,this.l-N*(null==t?1:t))},F.rgb=function(){return l(this).rgb()};var M=-.14861,V=1.78277,H=-.29227,z=-.90649,q=1.97294,U=q*z,G=q*V,Y=V*H-z*M,X=m.prototype=$.prototype=new e;X.brighter=function(t){return t=null==t?w:Math.pow(w,t),new $(this.h,this.s,this.l*t)},X.darker=function(t){return t=null==t?b:Math.pow(b,t),new $(this.h,this.s,this.l*t)},X.rgb=function(){var t=isNaN(this.h)?0:(this.h+120)*k,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),o=Math.sin(t);return new r(255*(e+i*(M*n+V*o)),255*(e+i*(H*n+z*o)),255*(e+i*(q*n)))};var K="0.3.4";t.version=K,t.color=i,t.rgb=o,t.hsl=a,t.lab=l,t.hcl=g,t.cubehelix=m})},function(t,e,i){(function(e,n){t.exports=function(){function t(t){t=r.shallowExtend({},t);for(var i in t)if(t.hasOwnProperty(i)&&e(i,o)>-1){for(var n="",a=0,s=o.length;a<s;a++){var _=o[a];_ in t&&(n+=_+"("+t[_]+")",delete t[_])}t.transform=n,t.webkitTransform=n}return t}var o=["matrix","translate","translateX","translateY","scale","scaleX","scaleY","rotate","skew","skewX","skewY","matrix3d","translate3d","translateZ","scale3d","scaleZ","rotate3d","rotateX","rotateY","rotateZ","perspective"],r=i(38);return n(t,"meshim_widget_utils_propsToCSSStyle"),t}()}).call(e,i(24),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_html_a=i(88),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_html_a,"","",[],{xmlns:"jx.ui.html",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.on("click",e)}function e(){return r.trackEvent("Button Clicked"),c.write({button_clicked$bool:!0}),p.getValue()?void a.userShowWindow():void(l.requestPermission()&&(d.isIEMobile?(h.setAttribute("href",_.getPopoutURL()),h.setAttribute("target",n.POPOUT_WINDOW_PREFIX+g.getValue())):(s.resetUnreadCount(),_.openPopout(!0))))}var n=i(32),o=i(30),r=i(169),a=i(103),s=i(79),_=i(101),l=i(192),d=i(41),u=o.root.$("livechat").$("ui"),c=u.$("chat_button"),p=u.$("mobile_overlay$bool"),g=o.root.$("livechat").$("account").$("key$string");t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_html_a.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_html_a,t.__jx__jcss={},a(t,"meshim_widget_components_mobileChatButton_TappingScreen"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_FloatingFrame=i(76),e.__$$__meshim_widget_components_mobileChatUnreadCountBadge_UnreadCount=i(320),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_FloatingFrame,"","",[[e.__$$__meshim_widget_components_mobileChatUnreadCountBadge_UnreadCount,"mobile_unread","",[],{id:"mobile_unread",opacity:"0"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:components":"meshim.widget.components","xmlns:widgets":"meshim.widget.widgets","xmlns:mobileChatUnreadCountBadge":"meshim.widget.components.mobileChatUnreadCountBadge",useDisplay:"true",visible:"false",cursor:"pointer"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__mobile_unread");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){y&&(a=new _(h,u),h.dom.className="zopim",new d(h),h.content.setStyle("textAlign","left"),h.content.addClass("meshim_widget_Widget"),h.wrapper.addClass(h.__jx__fqname),h.iframe.style.verticalAlign="top",h.autobind(m,"value",n),h.autobind($,"value",n),h.autobind(b,"value",function(t){o!==t&&(o=t,e())}),h.autobind(w,"value",function(t){x!==t&&(x=t,e(),p.updateUnread(x))}),h.autobind(v,"value",function(t){r!==t&&(r=t,e())}))}function e(){y&&o&&x>0&&r?(h.setDisplay(""),a.animate({endStyle:c,duration:200})):a.animate({endStyle:u,duration:200},function(t){t||h.setDisplay("none")})}function n(){var t=m.getValue();if(t){for(var e,i,n,o,r=11,a=3,s=r+a,_=t.zoom$string,d=t.scale$string,u=0,c=l.cssom_prefixes.length;u<c;u++)h.wrapper.setStyle(l.cssom_prefixes[u]+"Transform","scale("+d+")"),h.wrapper.setStyle(l.cssom_prefixes[u]+"TransformOrigin","0 0");"auto"===t.left$string?(e="auto",i=parseFloat(t.right$string)-s*d):(i="auto",e=parseFloat(t.left$string)+parseFloat(t.width$string)-s*d),"auto"===t.bottom$string?(o="auto",n=parseFloat(t.top$string)-s*d):(n="auto",o=parseFloat(t.bottom$string)+parseFloat(t.height$string)-s*d),h.setStyle({top:"",right:"",bottom:"",left:""}),h.setStyle({position:t.position$string,top:n,right:i,left:e,bottom:o,height:h.wrapper.getHeight()/_,width:h.wrapper.getWidth()/_})}}var o,r,a,s=i(30),_=i(312),l=i(38),d=i(318),u={opacity:0},c={opacity:1},g=s.root.$("livechat"),f=g.$("ui").$("chat_button"),m=f.$("mobile").$("calculated_styles"),$=g.$("settings").$("theme").$("chat_button").$("position_mobile$string"),b=f.$("fully_visible$bool"),w=f.$("unread_count$int"),x=0,v=g.$("channel").$("chatting$bool"),y=g.$("ui").$("mobile$bool").getValue();t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_FloatingFrame.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_FloatingFrame,t.__jx__jcss={"**self":{padding:"3px"}},a(t,"meshim_widget_components_MobileChatUnreadCountBadge"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__jx_ui_Label=i(95),t.exports=function(){function t(r,a,s,_,l){if(!(this instanceof t))return new t(r,a,s,_,l);a=a||n.generateID();var d=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[],{addClass:"unread_badge"}],[e.__$$__jx_ui_Label,"unread_badge_text","",[],{id:"unread_badge_text",addClass:"unread_badge_text"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui"}],u=d[0].call(this,r,a,null,n.mangleIDs(a,d[3]),d[4]),c=u||this;n.set(a,c);var h=n.get(a+"__unread_badge_text");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){var t=0;c.updateUnread=function(e){var i=Math.min(e,99);i!==t&&(t=i,t?(h.setText(t),c.setOpacity(1)):c.setOpacity(0))}}();for(var g in p)p.hasOwnProperty(g)&&(c[g]=p[g]);return c.fire&&c.fire("init"),c.setStyle&&c.setStyle(s),c.setAttributes&&c.setAttributes(l),"function"==typeof c.addChildren?c.addChildren(_):n.addChildren(c,_),c!==this&&(c.__jx__constructor=i,c.__jx__native=!1),c}var i;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{position:"relative",width:"22px",height:"22px"},".unread_badge":{position:"absolute",top:"0",left:"0",height:"100%",width:"100%",background:"#EF4444",border:"1px solid #AF1E1E",boxShadow:"0px 0px 3px 0px rgba(0,0,0,0.6)",borderRadius:"50%"},".unread_badge_text":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",fontWeight:"700",fontSize:"12px",color:"#FFF",lineHeight:"22px",textAlign:"center"}},a(t,"meshim_widget_components_mobileChatUnreadCountBadge_UnreadCount"),i=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_IFrame=i(77),e.__$$__meshim_widget_components_mobileChatWindow_MainScreen=i(322),e.__$$__meshim_widget_widgets_fontLoader_ZopimFont=i(287),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_IFrame,"","",[[e.__$$__meshim_widget_components_mobileChatWindow_MainScreen,"","",[],{}],[e.__$$__meshim_widget_widgets_fontLoader_ZopimFont,"","",[],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:mobileWindow":"meshim.widget.components.mobileChatWindow",top:"0",left:"0",width:"100%",height:"100%",position:"fixed",zIndex:"16000003",minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",useDisplay:"true",visible:"false"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h),t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var p=function(){function t(){h.defaultPlacement.addClass(h.__jx__fqname),h.defaultPlacement.addClass("meshim_widget_Widget"),c(h.ibody),a.init(),o(),r=new u(h,p),h.moveDown=n,h.moveUp=e,s.registerChatWindow(h)}function e(t){h.setVisible(!0),d.store(),_(!0),r.animate({endStyle:g,duration:500},function(e){e||l(!0),t&&t(e)})}function n(t){l(!1),_(!1),d.restore(),r.animate({endStyle:p,duration:300},function(e){e||h.setVisible(!1),t&&t(e)})}function o(){var t=h.idoc.createElement("meta");t.setAttribute("name","viewport"),t.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"),h.idoc.head.appendChild(t)}var r,a=i(191),s=i(43),_=i(328),l=i(329),d=i(330),u=i(312),c=i(289),p={opacity:0,translateY:"100%"},g={opacity:1,translateY:"0%"};t()}();for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_IFrame.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_IFrame,t.__jx__jcss={},a(t,"meshim_widget_components_MobileChatWindow"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatWindow_MenuStack=i(257),e.__$$__meshim_widget_widgets_ViewStack=i(81),e.__$$__meshim_widget_components_chatWindow_NewChatForm=i(83),e.__$$__meshim_widget_components_chatWindow_PreChatOfflineForm=i(125),e.__$$__meshim_widget_components_mobileChatWindow_ChatPanel=i(323),e.__$$__meshim_widget_components_chatWindow_PostChatForm=i(243),e.__$$__meshim_widget_components_chatWindow_CookieForm=i(248),e.__$$__meshim_widget_components_chatWindow_CardForm=i(252),e.__$$__meshim_widget_components_chatWindow_AgentList=i(253),e.__$$__meshim_widget_components_chatWindow_AboutPanel=i(255),e.__$$__meshim_widget_components_chatWindow_RatingPanel=i(256),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_chatWindow_MenuStack,"menu_stack","",[],{id:"menu_stack",addClass:"popout"}],[e.__$$__meshim_widget_widgets_ViewStack,"main_stack","",[[e.__$$__meshim_widget_components_chatWindow_NewChatForm,"","",[],{name:"new_chat_form"}],[e.__$$__meshim_widget_components_chatWindow_PreChatOfflineForm,"","",[],{name:"pre_chat_offline_form"}],[e.__$$__meshim_widget_components_mobileChatWindow_ChatPanel,"","",[],{name:"chat_panel"}],[e.__$$__meshim_widget_components_chatWindow_PostChatForm,"","",[],{name:"post_chat_form"}],[e.__$$__meshim_widget_components_chatWindow_CookieForm,"","",[],{name:"cookie_form"}],[e.__$$__meshim_widget_components_chatWindow_CardForm,"","",[],{name:"card_form"}],[e.__$$__meshim_widget_components_chatWindow_AgentList,"","",[],{name:"agent_list"}],[e.__$$__meshim_widget_components_chatWindow_AboutPanel,"","",[],{name:"about_panel"}],[e.__$$__meshim_widget_components_chatWindow_RatingPanel,"","",[],{name:"rating_panel"}]],{id:"main_stack",onChildHide:"-1"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:chatWindow":"meshim.widget.components.chatWindow","xmlns:mobileChatWindow":"meshim.widget.components.mobileChatWindow","xmlns:widgets":"meshim.widget.widgets"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__menu_stack"),g=n.get(a+"__main_stack");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){e(),g.on("click",e),g.on("indexChange",e),h.autobind(a,"value",function(){g.setName(a.getValue())}),h.autobind(s,"value",function(){p.setName(s.getValue())})}function e(){s.update("")}var n=i(30),o=n.root.$("livechat"),r=o.$("ui").$("chat_window"),a=r.$("main_stack_name$string"),s=r.$("menu_stack_name$string");t()}();for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,
t.__jx__jcss={"**self":{position:"absolute","top, left, right, bottom":0,backgroundColor:"$$windowBg",boxShadow:"$$windowShadow","-webkit-text-size-adjust, -moz-text-size-adjust, -ms-text-size-adjust, text-size-adjust":"100%"}},a(t,"meshim_widget_components_mobileChatWindow_MainScreen"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader=i(184),e.__$$__meshim_widget_components_chatWindow_chatPanel_FastInitChatLog=i(203),e.__$$__meshim_widget_widgets_Branding=i(85),e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AgentTypingStatus=i(324),e.__$$__meshim_widget_widgets_CookieLawNotice=i(113),e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_ChatTextArea=i(325),e.__$$__meshim_widget_widgets_TitleBar=i(93),e.__$$__meshim_widget_widgets_MobileOptionsMenuIcon=i(107),e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast=i(126),e.__$$__meshim_widget_components_chatWindow_chatPanel_File=i(183),e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_NewMessagesToast=i(327),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"scrollable","",[[e.__$$__jx_ui_Widget,"served_by_container","",[[e.__$$__meshim_widget_components_chatWindow_chatPanel_ChatPanelHeader,"","",[],{}]],{id:"served_by_container",addClass:"served_by_container"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_chatWindow_chatPanel_FastInitChatLog,"","",[],{}]],{addClass:"chat_log_wrapper"}]],{addClass:"chatlog_container"}],[e.__$$__jx_ui_Widget,"branding_and_agent_typing_container","",[[e.__$$__meshim_widget_widgets_Branding,"chatpanel_branding","",[],{id:"chatpanel_branding",addClass:"chatpanel_branding"}],[e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AgentTypingStatus,"","",[],{"class":"agent_typing"}]],{id:"branding_and_agent_typing_container",addClass:"branding_and_agent_typing_container"}],[e.__$$__meshim_widget_widgets_CookieLawNotice,"cookie_law_notice","",[],{id:"cookie_law_notice",addClass:"cookie_law_notice"}]],{id:"scrollable",addClass:"scrollable"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_ChatTextArea,"","",[],{}]],{addClass:"textarea_container"}]],{addClass:"main_flexbox"}],[e.__$$__meshim_widget_widgets_TitleBar,"","",[],{}],[e.__$$__meshim_widget_widgets_MobileOptionsMenuIcon,"","",[],{addClass:"mobile_options_menu_icon"}],[e.__$$__meshim_widget_widgets_ChatWindowDisconnectedToast,"","",[],{}],[e.__$$__meshim_widget_components_chatWindow_chatPanel_File,"","",[],{}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_NewMessagesToast,"","",[],{addClass:"new_messages_toast"}]],{addClass:"new_messages_toast_parent"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:chatPanel":"meshim.widget.components.chatWindow.chatPanel","xmlns:mobileChatPanel":"meshim.widget.components.mobileChatWindow.chatPanel"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__scrollable"),f=n.get(s+"__served_by_container"),m=n.get(s+"__branding_and_agent_typing_container"),$=n.get(s+"__chatpanel_branding"),b=n.get(s+"__cookie_law_notice");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var w=function(){function t(){h.rtl(p),g.on("scroll",_),p.on("touchstart",u.userTouchStart),p.on("touchend",u.userTouchEnd),p.autobind(I,"value",n),p.autobind(S.$("smooth_scroll_count$int"),"value",o),p.autobind(S.$("instant_scroll_count$int"),"value",a),p.autobind(E,"value",e),p.autobind(D,"value",e),d=w.isStyleSupported("overflow-scrolling"),d&&l(),p.autobind(T,"value",function(t){f.setDisplay(t?"block":"none")})}function e(){E.getValue()&&!D.getValue()?(m.setDisplay("none"),b.setDisplay("")):(m.setDisplay(""),b.setDisplay("none"))}function n(t){$[t?"addClass":"removeClass"]("hide")}function o(t){if(!O||t===!0){var e=_();if(e<=C)return void(O=!1);var i=Math.floor(Math.max(e*v,y));P.scrollTop=P.scrollTop+i,e-i>0?(O=!0,W(function(){o(!0)})):O=!1}}function a(){P.scrollTop=99999999999,u.userDistFromBottom(0)}function s(){return P.scrollHeight-P.offsetHeight-P.scrollTop}function _(){var t=s();return u.userDistFromBottom(t),d&&L(t),t}function l(){function t(){var t=N.getValue(),i=B.getValue();"chat_panel"===t&&i===!0&&e()}function e(){g.setCSSStyle("webkitOverflowScrolling","auto"),setTimeout(function(){g.setCSSStyle("webkitOverflowScrolling","touch")},50)}p.autobind(B,"value",t),p.autobind(N,"value",t)}var d,u=i(191),c=i(30),h=i(89),w=i(38),x=i(44),v=.25,y=5,j=50,C=1,A=c.root.$("livechat"),S=A.$("ui").$("chat_window").$("chat_panel").$("scrollable"),I=A.$("ui").$("chat_window").$("typing_info").$("agent_typing$bool"),k=A.$("ui").$("chat_window"),B=k.$("display$bool"),N=k.$("main_stack_name$string"),T=k.$("display_profile_card$bool"),D=A.$("profile").$("allow_cookies$bool"),E=A.$("settings").$("cookie_law").$("enabled$bool"),P=g.dom,O=!1,W=window.requestAnimationFrame||r,L=x.debounce(function(t){P.scrollHeight-P.offsetHeight!==1&&(0===t?P.scrollTop=P.scrollHeight-P.offsetHeight-C:0===P.scrollTop&&(P.scrollTop=C))},j);t()}();for(var x in w)w.hasOwnProperty(x)&&(p[x]=w[x]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{height:"100%"},".mobile_options_menu_icon":{position:"absolute",zIndex:"102"},"&.ltr":{".mobile_options_menu_icon":{"top, left":0}},"&.rtl":{".mobile_options_menu_icon":{"top, right":0}},".main_flexbox":{paddingTop:"$$titleBarHeight",position:"relative",height:"100%",display:["flex","-webkit-flex"],"flexDirection, -webkit-flex-direction":"column"},".scrollable":{overflowY:"auto","-webkit-overflow-scrolling":"touch","flexGrow, -webkit-flex-grow":"1",display:["flex","-webkit-flex"],"flexDirection, -webkit-flex-direction":"column"},".served_by_container":{"flexShrink, -webkit-flex-shrink":"0",position:"relative",width:"100%",padding:"10px",background:"$$chatPanelProfileCardContainerBackground",borderWidth:"$$chatPanelProfileCardContainerBorderWidth",borderStyle:"$$chatPanelProfileCardContainerBorderStyle",borderColor:"$$chatPanelProfileCardContainerBorderColor"},".chatlog_container":{position:"relative",marginTop:"auto","flexShrink, -webkit-flex-shrink":"0"},".chat_log_wrapper":{margin:"$$chatLogMargin"},".branding_and_agent_typing_container":{position:"relative","flexShrink, -webkit-flex-shrink":"0",height:"1.5em",width:"100%"},".chatpanel_branding":{position:"absolute",transition:"opacity 2.5s 0.5s",padding:"0px 15px 5px"},".chatpanel_branding.hide":{visibility:"hidden",transition:"none",opacity:0},".agent_typing":{paddingTop:"2px",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},".cookie_law_notice":{"flexShrink, -webkit-flex-shrink":"0",fontSize:"$$fontSizeS",color:"$$chatLogSystemMsgColor",textAlign:"center",height:"21px"},".textarea_container":{position:"relative","flexShrink, -webkit-flex-shrink":"0"},".new_messages_toast_parent":{position:"absolute",bottom:"115px",width:"100%",height:"0px",textAlign:"center"},".new_messages_toast":{maxWidth:"80%"}},s(t,"meshim_widget_components_mobileChatWindow_ChatPanel"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(12),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[],{"xmlns:ui":"jx.ui"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.autobind(s.$("num_typing_agents$int"),"value",e),r&&r.onLanguage&&(r.onLanguage(e),p.onDestruction(function(){r.unLanguage(e)}))}function e(){var t=s.$("num_typing_agents$int").getValue();t>=1?(p.setText((1==t?o.chat_panel.name_is_typing:o.chat_panel.agents_are_typing).replace("<name>",s.$("agent_names$string").getValue())),p.setDisplay("")):p.setDisplay("none")}var n=i(30),o=i(91),a=n.root.$("livechat"),s=a.$("ui").$("chat_window").$("typing_info");t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{fontSize:"$$fontSizeS",color:"$$chatLogSystemMsgColor",background:"$$chatLogSystemMsgBg",textAlign:"center"}},s(t,"meshim_widget_components_mobileChatWindow_chatPanel_AgentTypingStatus"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(22),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Button=i(151),e.__$$__meshim_widget_widgets_IconFont=i(90),e.__$$__meshim_widget_widgets_SendFile=i(274),e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AutoResizeTextArea=i(326),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Button,"send","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"send",addClass:"send"}]],{id:"send",addClass:"send_button primary fit"}],[e.__$$__meshim_widget_widgets_Button,"upload","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"upload",addClass:"upload"}],[e.__$$__meshim_widget_widgets_SendFile,"","",[],{addClass:"send_file"}]],{id:"upload",addClass:"upload_button primary fit"}]],{addClass:"send_wrapper"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_components_mobileChatWindow_chatPanel_AutoResizeTextArea,"textarea","",[],{id:"textarea",addClass:"textarea"}]],{addClass:"textarea_wrapper"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:mui":"meshim.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:mobileChatWindow":"meshim.widget.components.mobileChatWindow"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p);var g=n.get(s+"__send"),f=n.get(s+"__upload"),m=n.get(s+"__textarea");t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var $=function(){function t(){x.$("chat_window").update({menu_stack_name$string:""})}function e(){d.resetUnreadCount()}function n(){u.userInputValue(m.getValue())}function o(t,e){_===t&&l===e||(_=t,l=e,l&&_===I.FILE?(g.setDisplay("none"),f.setDisplay("")):(g.setDisplay(""),f.setDisplay("none")))}function a(){var t=j.getValue(),e=A.getValue(),i=y.getValue("color_customization_enabled$int")||y.getValue("widget_customization_enabled$int"),n=!0;i?t&&e===!1&&(n=!1):n=!1,o(_,n)}function s(){m.setPlaceholder(h.chat_panel.chattextarea_placeholder),p.autobind(v,"value",function(t){m.setValue(t),o(t?I.TEXT:I.FILE,l)}),p.autobind(j,"value",a),p.autobind(A,"value",a),p.autobind(y,"value",a),m.on("input",n),m.on("focus",function(){e(),t(),u.userFocusTextArea()}),m.on("keydown",function(t){13!==t.keyCode||t.shiftKey||t.ctrlKey||t.altKey||(t.preventDefault(),u.userSendMessage(m.getValue()))}),g.on("mousedown",function(i){$.isChromeIOSMobile||i.preventDefault(),r.isAndroid&&m.dom.setSelectionRange&&m.dom.setSelectionRange(0,1),u.userSendMessage(m.getValue()),e(),t()}),p.autobind(S,"value",function(t){p.setDisabled("idle_disconnect"===t)})}var _,l,d=i(79),u=i(191),c=i(30),h=i(91),$=i(41),b=c.root,w=b.$("livechat"),x=w.$("ui"),v=x.$("chat_window").$("chat_panel").$("textarea").$("value$string"),y=w.$("settings").$("package"),j=w.$("features").$("file_sending_settings$bool"),C=w.$("settings").$("file_sending"),A=C.$("enabled$bool"),S=b.$("connection").$("status$string"),I={TEXT:0,FILE:1};s()}();for(var b in $)$.hasOwnProperty(b)&&(p[b]=$[b]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={"**self":{width:"100%",display:["flex","-webkit-flex"],borderWidth:"$$chatTextAreaBorderWidth",borderStyle:"$$chatTextAreaBorderStyle",borderColor:"$$chatTextAreaBorderColor","&.disabled":{opacity:"0.5"}},".textarea":{width:"100%",lineHeight:"1.3em",maxHeight:"3.9em",minHeight:"2em",padding:"10px",paddingBottom:"0px",resize:"none"},".textarea_wrapper":{"flexGrow, -webkit-flex-grow":"1","order, -webkit-order":"1"},".send_button, .upload_button":{fontSize:"$$fontSizeXXL",margin:"$$chatTextAreaSubmitMargin",padding:"$$chatTextAreaSubmitPadding",width:"44px",height:"32px",boxShadow:"inset 0px 2px 0px 0px rgba(255,255,255,0.30)",borderRadius:"4px",".send":{paddingLeft:"3px",paddingTop:"4px"},".upload":{paddingTop:"3px"}},".send_button.rtl .send":{direction:"ltr"},".upload_button":{position:"relative"},".send_file":{position:"absolute","top, left":0},".send_wrapper":{"flexShrink, -webkit-flex-shrink":"0","order, -webkit-order":"2",marginTop:"auto"}},s(t,"meshim_widget_components_mobileChatWindow_chatPanel_ChatTextArea"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(7),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__meshim_widget_widgets_TextArea=i(164),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=[e.__$$__meshim_widget_widgets_TextArea,"","",[],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",addClass:"unstyled"}],h=c[0].call(this,a,s,null,n.mangleIDs(s,c[3]),c[4]),p=h||this;n.set(s,p),t.__jx__jcss_generated||(o.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){p.setValue=e,p.autobind(a,"value",function(t){t&&n()}),p.on("input",n)}function e(t){t=r(t,"checkNull")?"":t,t!==p.getValue()&&s.call(p,t),n()}function n(){p.setHeight(0).setHeight(p.getScrollHeight())}var o=i(30),a=o.root.$("livechat").$("ui").$("theme_loaded$bool"),s=p.setValue;t()}();for(var f in g)g.hasOwnProperty(f)&&(p[f]=g[f]);return p.fire&&p.fire("init"),p.setStyle&&p.setStyle(l),p.setAttributes&&p.setAttributes(u),"function"==typeof p.addChildren?p.addChildren(d):n.addChildren(p,d),p!==this&&(p.__jx__constructor=_,p.__jx__native=!1),p}var _;return t.prototype=a(e.__$$__meshim_widget_widgets_TextArea.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_TextArea,t.__jx__jcss={"**self":{overflowX:"hidden"}},s(t,"meshim_widget_components_mobileChatWindow_chatPanel_AutoResizeTextArea"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(10),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__meshim_widget_widgets_Toast=i(128),e.__$$__jx_ui_html_div=i(114),e.__$$__meshim_widget_widgets_IconFont=i(90),e.__$$__jx_ui_html_span=i(109),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__meshim_widget_widgets_Toast,"","",[[e.__$$__jx_ui_html_div,"","",[[e.__$$__meshim_widget_widgets_IconFont,"","",[],{icon:"arrow_down_long",addClass:"arrow_down_long"}]],{addClass:"arrow_container"}],[e.__$$__jx_ui_html_span,"message","",[],{id:"message"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets",display:"inline-block",useDisplay:"true",visible:"false"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__message");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var g=function(){function t(){r=new d(h,c),h.autobind(b,"value",e),h.autobind(w,"value",e),h.autobind(m,"value",function(t){t>0?(n(),p.setText(u.chat_panel[1==t?"new_message_below":"new_messages_below"].replace("<number>",t))):o()}),h.on("click",function(){s.resetUnreadCount(),_.scrollToBottom()})}function e(t){t&&o()}function n(){a=!0,h.setVisible(!0),r.animate({endStyle:g,duration:300,delay:500})}function o(){a&&(a=!1,r.animate({endStyle:c,duration:100},function(t){t||h.setVisible(!1)}))}var r,a,s=i(79),_=i(191),l=i(30),d=i(312),u=i(91),c={opacity:0},g={opacity:1},f=l.root.$("livechat").$("ui"),m=f.$("chat_button").$("unread_count$int"),$=f.$("chat_window").$("chat_panel").$("scrollable"),b=$.$("scrolled_to_bottom$bool"),w=$.$("smooth_scroll_count$int");t()}();for(var f in g)g.hasOwnProperty(f)&&(h[f]=g[f]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__meshim_widget_widgets_Toast.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__meshim_widget_widgets_Toast,t.__jx__jcss={"**self":{fontWeight:"bold"},".arrow_container":{display:"inline-block",paddingRight:"4px",verticalAlign:"bottom"}},a(t,"meshim_widget_components_mobileChatWindow_chatPanel_NewMessagesToast"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){var e;t&&!a?(e=i(),o=e.getAttribute("content")||"",e.setAttribute("content",s),a=!0):!t&&a&&(e=i(),e.setAttribute("content",o),a=!1)}function i(){if(r)return r;var t=document.head.querySelectorAll("meta[name=viewport]");return r=t[t.length-1]||n()}function n(){var t=document.createElement("meta");return t.setAttribute("name","viewport"),document.head.appendChild(t),t}var o,r,a,s="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no";return t.resetState=function(){r&&r.parentNode.removeChild(r),o=r=a=void 0},e(t,"meshim_widget_components_mobileChatWindow_utils_disablePageZooming"),t}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){var e,a,s;if(document.body&&document.body.style)if(i=document.body.style,t=!!t,t&&!n){for(e=0,a=o.length;e<a;e++)s=o[e],r[s]=i[s];i.position="fixed",i.overflowY="hidden",i.webkitTextSizeAdjust="100%",i.width="100%",i.minHeight="100%",i.margin="0px",n=!0}else if(!t&&n){for(e=0,a=o.length;e<a;e++)s=o[e],i[s]=r[s];n=!1}}var i,n,o=["position","overflowY","webkitTextSizeAdjust","width","minHeight","margin"],r={};return t.resetState=function(){n=void 0,r={}},e(t,"meshim_widget_components_mobileChatWindow_utils_disablePageScrolling"),t}()}).call(e,i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(){var t=l.getDocumentScrollElement();s=t.scrollTop,_=t.scrollLeft}function n(){if("undefined"!=typeof s){var t=l.getDocumentScrollElement();t.scrollTop=s,t.scrollLeft=_}}function o(){return a?a:a=document.scrollingElement?document.scrollingElement:!e.isWebKit&&e.isStrict?document.documentElement:document.body||document.documentElement}function r(){s=_=a=void 0}var a,s,_,l={store:t,restore:n,resetState:r,getDocumentScrollElement:o};return i(l,"meshim_widget_components_mobileChatWindow_utils_storePageScrolling"),l}()}).call(e,i(7),i(4))},function(t,e,i){(function(e,n,o,r,a){e.__$$__jx_ui_FloatingFrame=i(76),e.__$$__jx_ui_FullFrame=i(78),e.__$$__meshim_widget_components_mobileChatNotification_NotificationCard=i(332),e.__$$__meshim_widget_widgets_fontLoader_ZopimFont=i(287),t.exports=function(){function t(r,a,_,l,d){if(!(this instanceof t))return new t(r,a,_,l,d);a=a||n.generateID();var u=[e.__$$__jx_ui_FloatingFrame,"","",[[e.__$$__jx_ui_FullFrame,"notification_card_container","",[[e.__$$__meshim_widget_components_mobileChatNotification_NotificationCard,"notification_card","",[],{id:"notification_card",addClass:"notification_card"}]],{id:"notification_card_container",addClass:"notification_card_container",overflow:"hidden"}],[e.__$$__meshim_widget_widgets_fontLoader_ZopimFont,"","",[],{}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:mobileChatNotification":"meshim.widget.components.mobileChatNotification",position:"fixed",bottom:"0",left:"0",right:"0",width:"100%",height:"132px",minWidth:"220px",maxWidth:"350px",marginLeft:"auto",marginRight:"auto",zIndex:"16000004",useDisplay:"true",visible:"false",addClass:"zopim"}],c=u[0].call(this,r,a,null,n.mangleIDs(a,u[3]),u[4]),h=c||this;n.set(a,h);var p=n.get(a+"__notification_card_container"),g=n.get(a+"__notification_card");t.__jx__jcss_generated||(o.generate(r,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var f=function(){function t(){h.defaultPlacement.addClass(h.__jx__fqname),h.defaultPlacement.addClass("meshim_widget_Widget"),h.setCSSStyle("willChange","transform"),f(h.ibody),s=new u(h,x),h.autobind(k,"value",n),h.moveDown=r,h.moveUp=o,l.registerChatNotification(h)}function e(){var t=window.innerWidth;if(!(t<w)){var e=parseFloat(T.getValue()),i=e*c.MOBILE_ZOOM_ADDITIONAL;b/i>t&&(i=(b+4)/t),h.setStyle({maxWidth:b/i+"px",height:$/i+"px"}),p.setStyle({transform:"scale("+1/i+")","-webkit-transform":"scale("+1/i+")",transformOrigin:"top left","-webkit-transform-origin":"top left",width:b+"px",height:$+"px"})}}function n(t){if(t&&!(parseFloat(T.getValue())>1)){var i=S.getValue();if(!(i>t||void 0===i)&&(t<I.getValue()||!I.getValue())){var n=B.getValue(),o=C.$("log").$(n),r=o.getValue(),a=r.nick$string,s=j.$("agents").$(a);null===s.getValue()&&(s=j.$("settings").$("concierge")),e(),g.setAgentDataNode(s),g.setLogDataNode(o),d.showMobileNotification()}}}function o(t){h.setVisible(!0),a=clearTimeout(a),s.animate({endStyle:v,duration:200},function(e){e||(N.write({shown$bool:!0}),a=setTimeout(d.hideMobileNotification,m)),t&&t(e)})}function r(t){a=clearTimeout(a),s.animate({endStyle:x,duration:200},function(e){e||h.setVisible(!1),t&&t(e)})}var a,s,_=i(30),l=i(43),d=i(103),u=i(312),c=i(41),f=i(289),m=7200,$=132,b=350,w=980,x={opacity:0,translateY:"100%"},v={opacity:1,translateY:"0%"},y=_.root,j=y.$("livechat"),C=j.$("channel"),A=j.$("ui"),S=y.$("connection").$("reattached_timestamp$int"),I=C.$("first_visitor_msg_ts$int"),k=C.$("first_account_msg_ts$int"),B=C.$("first_account_msg_id$string"),N=A.$("chat_notification"),T=A.$("chat_button").$("mobile").$("calculated_styles").$("zoom$string");t()}();for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m]);return h.fire&&h.fire("init"),h.setStyle&&h.setStyle(_),h.setAttributes&&h.setAttributes(d),"function"==typeof h.addChildren?h.addChildren(l):n.addChildren(h,l),h!==this&&(h.__jx__constructor=s,h.__jx__native=!1),h}var s;return t.prototype=r(e.__$$__jx_ui_FloatingFrame.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_FloatingFrame,t.__jx__jcss={".notification_card":{position:"relative",height:"122px",width:"100%"},".notification_card_container":{paddingLeft:"5px",paddingRight:"5px"}},a(t,"meshim_widget_components_MobileChatNotification"),s=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(29),i(14),i(4))},function(t,e,i){(function(e,n,o,r,a,s){e.__$$__jx_ui_Widget=i(17),e.__$$__meshim_widget_widgets_Gravatar=i(138),e.__$$__meshim_widget_widgets_Controls=i(251),e.__$$__meshim_widget_widgets_Button=i(151),t.exports=function(){function t(a,s,l,d,u){if(!(this instanceof t))return new t(a,s,l,d,u);s=s||n.generateID();var c=o(111),h=o(112),p=[e.__$$__jx_ui_Widget,"","",[[e.__$$__jx_ui_Widget,"","",[],{addClass:"paper"}],[e.__$$__jx_ui_Widget,"","",[[e.__$$__meshim_widget_widgets_Gravatar,"gravatar","",[],{id:"gravatar",addClass:"rounded_avatar"}],[e.__$$__jx_ui_Widget,"","",[],{addClass:"agent_profile_spacer"}],[e.__$$__jx_ui_Widget,"agent_name","",[],{id:"agent_name",addClass:"agent_name"}]],{addClass:"agent_profile"}],[e.__$$__jx_ui_Widget,"chat_msg","",[],{id:"chat_msg",addClass:"text_container"}],[e.__$$__meshim_widget_widgets_Controls,"","",[[e.__$$__meshim_widget_widgets_Button,"reply_btn","",[c],{placement:"primary",id:"reply_btn",addClass:"wide"}],[e.__$$__meshim_widget_widgets_Button,"dismiss_btn","",[h],{placement:"secondary",id:"dismiss_btn",addClass:"wide secondary"}]],{addClass:"controls_container"}]],{xmlns:"jx.ui.html","xmlns:ui":"jx.ui","xmlns:widgets":"meshim.widget.widgets","xmlns:mobileChatNotification":"meshim.widget.components.mobileChatNotification"}],g=p[0].call(this,a,s,null,n.mangleIDs(s,p[3]),p[4]),f=g||this;n.set(s,f);var m=n.get(s+"__gravatar"),$=n.get(s+"__agent_name"),b=n.get(s+"__chat_msg"),w=n.get(s+"__reply_btn"),x=n.get(s+"__dismiss_btn");t.__jx__jcss_generated||(r.generate(a,t.prototype.__jx__fqname,t.__jx__jcss,null,t),t.__jx__jcss_generated=!0);var v=function(){function t(){x.on("click",function(){l.userDismissMobileNotification(),d.write({dismiss_clicked$bool:!0})}),w.on("click",function(){l.userReplyMobileNotification(),d.write({reply_clicked$bool:!0})})}function e(t){m.setMemberNode(t)}function n(t){r&&f.autounbind(r,"value",o),r=t,r&&f.autobind(r,"value",o)}function o(t){t&&("msg$string"in t&&(a.file_upload.test(t.msg$string)?b.setText(s.chat_notification.attachment):b.setText(t.msg$string)),"display_name$string"in t&&$.setText(t.display_name$string))}var r,a=i(64),s=i(91),_=i(30),l=i(103),d=_.root.$("livechat").$("ui").$("chat_notification");f.setAgentDataNode=e,f.setLogDataNode=n,t()}();for(var y in v)v.hasOwnProperty(y)&&(f[y]=v[y]);return f.fire&&f.fire("init"),f.setStyle&&f.setStyle(l),f.setAttributes&&f.setAttributes(u),"function"==typeof f.addChildren?f.addChildren(d):n.addChildren(f,d),f!==this&&(f.__jx__constructor=_,f.__jx__native=!1),f}var _;return t.prototype=a(e.__$$__jx_ui_Widget.prototype),t.prototype.__jx__native=!1,t.prototype.__jx__super=e.__$$__jx_ui_Widget,t.__jx__jcss={".paper":{position:"absolute",top:"14px","bottom, left, right":0,backgroundColor:"white",opacity:"0.9",zIndex:"-1",boxShadow:"0 0 2px rgba(0, 0, 0, 0.5);",borderRadius:"5px",margin:"0 2px 2px"},".agent_profile":{width:"100%",display:["flex","-webkit-flex"],"alignItems, -webkit-align-items":"flex-end",position:"relative",padding:"0 14px"},".rounded_avatar":{"flexShrink, -webkit-flex-shrink":"0",borderRadius:"50%","width, height":"40px",border:"1px solid #ddd"},".agent_profile_spacer":{"flexShrink, -webkit-flex-shrink":"0",width:"8px"},".agent_name":{"flexGrow, -webkit-flex-grow":"1",position:"relative",bottom:"4px",color:"$$profileCardNameColor",fontWeight:"bold",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},".controls_container":{position:"absolute","bottom, left, right":0,padding:"10px"},".text_container":{width:"100%",padding:"10px",paddingTop:"6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},s(t,"meshim_widget_components_mobileChatNotification_NotificationCard"),_=t,t.prototype.__jx__constructor=t,t}()}).call(e,i(3),i(20),i(22),i(29),i(14),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){r=l.root.$("livechat"),a=r.$("agents"),s=r.$("triggers").$("agents"),_=r.$("ui").$("chat_window").$("typing_info"),a.on("value",n),s.on("value",n)}function n(){var t,e=a.getValue(),i=s.getValue(),n=[];if(e)for(t in e)e.hasOwnProperty(t)&&e[t].typing$bool&&n.push(e[t].display_name$string);if(i)for(t in i)i.hasOwnProperty(t)&&i[t].typing$bool&&n.push(t);_.update({agent_typing$bool:n.length>0,agent_names$string:n.join(d),num_typing_agents$int:n.length})}function o(){s.un("value",n),a.un("value",n),r=a=s=_=void 0}var r,a,s,_,l=i(30),d=", ",u={SEPARATOR:d,init:t,resetState:o};return e(u,"meshim_widget_controllers_AgentTypingController"),u}()}).call(e,i(4))},function(t,e,i){(function(e,n,o,r,a,s,_){t.exports=function(){function t(){if(U=K.root,!U.$("livechat").$("ui").$("mockup$bool").getValue()){var t=this;Q.init(t),J.init(t),tt.init(t),et.init(t),it.init(t),nt.init(t),ot.init(t),rt.init(t),at.init(t),st.init(t),_t.init(t),lt.init(t),L(),U.$("livechat").$("ui").$("popout$bool").getValue()&&F()}}function l(){return U.getValue("livechat.profile.display_name$string")||""}function d(){return U.getValue("livechat.profile.email$string")||""}function u(){return U.getValue("livechat.profile.phone$string")||""}function c(){return U.getValue("livechat.channel.chatting$bool")||!1}function h(t){if("object"==typeof t){var i,n,o=this;for(n in t)t.hasOwnProperty(n)&&(i="set"+z(n),e(o[i])&&o[i](t[n]));return o}}function p(t){function e(){K.livechat.updateProfile({name:t})}t=t&&t.toString(),Q.callOnFastInit(e),Q.callOnReattached(e)}function g(t){function e(){K.livechat.updateProfile({email:t})}return t=t&&t.toString().trim(),X.email.test(t)?(Q.callOnFastInit(e),void Q.callOnReattached(e)):void(window.console&&window.console.log(Q.getPrefix()+": setEmail(): the email provided is not valid: ["+t+"]"))}function f(t){function e(){K.livechat.updateProfile({phone:t})}t=t&&t.toString(),Q.callOnFastInit(e),Q.callOnReattached(e)}function m(){function t(){U.$("livechat").$("channel").$("tags").write({added$string:n.join(",")})}if(arguments.length){for(var e,i=arguments,n=[],o=0,r=i.length;o<r;o++)e=(i[o]+"").trim(),e&&n.push(e);Q.callOnFastInit(t),Q.callOnReattached(t)}}function $(t){function e(){U.$("livechat").$("session").$("page_path").write({url$string:i,title$string:o})}var i,o;if("object"==typeof t&&t&&(i=q(t.url)))o=t.title||ct.title||"";else{if(!n(t))return void(window.console&&window.console.log(Q.getPrefix()+": sendVisitorPath(): the parameters provided are not valid. Please refer to the api doc."));i=ht+"",o=ct.title||""}Q.callOnReattached(e)}function b(){function t(){U.$("livechat").$("channel").$("tags").write({removed$string:n.join(",")})}if(!arguments.length)return void(window.console&&window.console.log(Q.getPrefix()+": removeTags(): Please provide at least one tag"));for(var e,i=arguments,n=[],o=0,r=i.length;o<r;o++)e=(i[o]+"").trim(),e&&n.push(e);Q.callOnFastInit(t),Q.callOnReattached(t)}function w(t){function e(){U.$("livechat").$("profile").$("notification").update({sound$bool:!t})}return"boolean"!=typeof t?void(window.console&&window.console.log(Q.getPrefix()+": setDisableSound() expects passed argument to be true/false")):(Q.callOnFastInit(e),void Q.callOnRegistered(e))}function x(t){function e(){Q.saveAPISettings({settings:{language:{language$string:t}}}),U.$("livechat").$("settings").$("language").update({language$string:t})}return o(t)&&t?(Q.callOnFastInit(e),void Q.callOnRegistered(e)):void(window.console&&window.console.log(Q.getPrefix()+": setLanguage() expects passed argument to be a non-empty string"))}function v(t){function e(t){if(a[t]&&o(a[t])){var e={};e[t+"$string"]=a[t],Q.saveAPISettings({settings:{greetings:e}}),U.$("livechat").$("settings").$("greetings").update(e)}else window.console&&window.console.log(Q.getPrefix()+': setGreetings() expects a non-empty string to be provided for "'+t+'"')}function i(t){var e={};e[t+"$string"]=null,Q.resetAPISettings({settings:{greetings:e}});var i=Q.getServerSettings("settings.greetings."+t+"$string");i&&(e[t+"$string"]=i,U.$("livechat").$("settings").$("greetings").update(e))}function n(t,e){if(e in t)return r(t[e])?t[e][0]:t[e]}if(t&&"object"==typeof t){var a={online:n(t,"online"),offline:n(t,"offline")},s=function(){(null===a.online?i:e)("online"),(null===a.offline?i:e)("offline")};Q.callOnFastInit(s,!0),Q.callOnReattached(s,!0)}}function y(){function t(){K.livechat.clearAll(),K.livechat.reconnect()}Q.callOnRegistered(t)}function j(){function t(){Z.hideAll()}var e=Y.once(t);Q.callOnFastInit(e),
Q.callOnRegistered(e)}function C(t){return t&&"string"==typeof t?void Q.callOnReattached(function(){var e=U.$("livechat").$("profile").$("department_id$int").getValue(),i={msg:t};e&&(i.department=e),K.livechat.sendChatMsg(i),ut.window.show()}):void(window.console&&window.console.log(Q.getPrefix()+": say() expects a non-empty string to be provided as an argument"))}function A(t){return e(t)?void Q.callOnReattached(Q.getCallbackCaller(t),!0):void(window.console&&window.console.log(Q.getPrefix()+": setOnConnected() expects a callback function to be provided"))}function S(t){var e=gt.last_chatting_state,i=a(t);i!==gt.last_chatting_state&&(gt.last_chatting_state=i,i?gt.start_ready&&gt.fire("chat_start"):e&&gt.fire("chat_end"))}function I(){gt.listening||(gt.listening=!0,U.$("livechat").$("channel").$("chatting$bool").bindValue(S))}function k(t){return e(t)?(gt.on("chat_start",Q.getCallbackCaller(t)),I(),void(gt.start_settled||(gt.start_settled=!0,Q.callOnReattached(function(){gt.last_chatting_state=a(U.$("livechat").$("channel").$("chatting$bool").getValue()),gt.start_ready=!0})))):void(window.console&&window.console.log(Q.getPrefix()+": setOnChatStart() expects a callback function to be provided"))}function B(t){return e(t)?(gt.on("chat_end",Q.getCallbackCaller(t)),void I()):void(window.console&&window.console.log(Q.getPrefix()+": setOnChatEnd() expects a callback function to be provided"))}function N(t){return e(t)?void Q.callOnRegistered(Q.getCallbackCaller(t),!0):void(window.console&&window.console.log(Q.getPrefix()+": setOnFlashReady() expects a callback function to be provided"))}function T(t){return e(t)?void U.$("livechat").$("account").$("status$string").bindValue(Q.getCallbackCaller(t)):void(window.console&&window.console.log(Q.getPrefix()+": setOnStatus() expects a callback function to be provided"))}function D(t){if(!e(t))return void(window.console&&window.console.log(Q.getPrefix()+": setOnUnreadMsgs() expects a callback function to be provided"));var i;t=Q.getCallbackCaller(t),U.$("livechat").$("ui").$("chat_button").$("unread_count$int").bindValue(function(e){s(e)&&i!=e&&(i=e,Q.callNow(t,i))})}function E(){K.livechat.endChat()}function P(t){function e(){return o(t)&&t?(t=t.toLowerCase(),"online"!==t&&"offline"!==t?void(window.console&&window.console.log(Q.getPrefix()+': setStatus() only accepts "online" or "offline" as a valid status')):(Q.saveAPISettings({account:{status$string:t}}),void U.$("livechat").$("account").update({status$string:t}))):void(window.console&&window.console.log(Q.getPrefix()+": setStatus() expects passed argument to be a non-empty string"))}function i(){Q.resetAPISettings({account:{status$string:null}});var t=Q.getServerSettings("account.status$string");t&&U.$("livechat").$("account").update({status$string:t})}var n=null===t?i:e;Q.savePopoutAPICalls("setStatus",[t]),Q.callOnFastInit(n),Q.callOnReattached(n)}function O(t){function e(){U.$("livechat").$("profile").write({notes$string:t})}return o(t)?(Q.callOnFastInit(e),void Q.callOnReattached(e)):void(window.console&&window.console.log(Q.getPrefix()+": setNotes() expects passed argument to be a string"))}function W(t){function e(){U.$("livechat").$("profile").write({notes_append$string:t})}return o(t)?void Q.callOnReattached(e):void(window.console&&window.console.log(Q.getPrefix()+": appendNotes() expects passed argument to be a string"))}function L(){var t=window.$zopim;window.$zopim=Q.callNow,window.$zopim.livechat=ut,Q.handleDelayed(t&&t._)}function R(){var t=window.$zopim,e=t&&t.onError;"function"==typeof e&&(e=Q.getCallbackCaller(e),Q.callNow(e))}function F(){pt={"departments.filter":ot.filter,"departments.setLabel":ot.setLabel,"prechatForm.setGreetings":_t.setGreetings,"offlineForm.setGreetings":lt.setGreetings,"theme.setColors":rt.setColors,"theme.reload":rt.reload,"theme.setTheme":rt.setTheme,"theme.setProfileCardConfig":rt.setProfileCardConfig,"concierge.setName":it.setName,"concierge.setTitle":it.setTitle,"concierge.setAvatar":it.setAvatar,"window.setTitle":at.setTitle,setStatus:ut.setStatus};for(var t=Q.parseAPIFromQuery(),e=this,i=0,n=t.length;i<n;i++){var o=t[i][0],r=t[i][1];o in pt&&pt[o].apply(e,r)}}function M(t){return function(){window.console&&window.console.log(Q.getPrefix()+': LiveChatAPI call "'+t+'" is obsolete. Refer to http://api.zopim.com/ for the latest API documentation.')}}function V(t,e,i){return function(){return window.console&&window.console.log(Q.getPrefix()+': LiveChatAPI call "'+t+'" is deprecated and may be removed in the future. '+(e?'Use "'+e+'" instead.':"Refer to http://api.zopim.com/ for the latest API documentation.")),i.apply(this,arguments)}}function H(t,e,i){return function(){var t=Array.prototype.slice.call(arguments,0);return i.apply(this,t)}}function z(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}function q(t){if("string"!=typeof t)return"";var e,i=X.search.hurl;return i.lastIndex=0,e=i.exec(t),i.lastIndex=0,e?e[0].trim():""}var U,G=i(6),Y=i(45),X=i(64),K=i(30),Z=i(103),Q=i(102),J=i(335),tt=i(336),et=i(337),it=i(339),nt=i(340),ot=i(341),rt=i(338),at=i(342),st=i(343),_t=i(344),lt=i(345),dt=i(346),ut={badge:J,bubble:tt,button:et,concierge:it,cookieLaw:nt,departments:ot,theme:rt,window:at,debug:st,prechatForm:_t,offlineForm:lt,mobileNotifications:dt,generateDeprecatedFunction:V,generateLimitedFunction:H,init:t,handleInitError:R,isChatting:c,set:h,getName:l,getEmail:d,getPhone:u,setName:p,setEmail:g,setPhone:f,addTags:m,sendVisitorPath:$,removeTags:b,setDisableSound:w,setLanguage:x,setGreetings:v,clearAll:y,hideAll:j,say:C,setOnConnected:A,setOnChatStart:k,setOnChatEnd:B,setOnFlashReady:N,setOnStatus:T,setOnUnreadMsgs:D,endChat:E,setStatus:P,setNotes:O,appendNotes:W},ct=document,ht=window.location,pt={},gt={listening:!1,last_chatting_state:null,start_settled:!1,start_ready:!1};G.extend(gt);var ft={global:"fire freeze setOnGreeting".split(" "),bubble:"setImage".split(" "),button:"setImage setTheme useFavicon".split(" "),window:"getSettings setBg".split(" "),cookieLaw:"showPrivacyPanel".split(" "),unreadflag:"disable enable".split(" ")};for(var mt in ft)if(ft.hasOwnProperty(mt)){var $t,bt=ft[mt];"global"==mt?$t=ut:(ut[mt]||(ut[mt]={}),$t=ut[mt]);for(var wt=0;wt<bt.length;wt++){var xt=bt[wt];$t[xt]=M(xt)}}return _(ut,"meshim_widget_controllers_LiveChatAPI"),ut}()}).call(e,i(9),i(10),i(19),i(21),i(16),i(23),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t){function e(){l.saveAPISettings({settings:{banner:t}}),a.$("livechat").$("settings").$("banner").update(t)}l.callOnFastInit(e,!0),l.callOnRegistered(e,!0)}var r,a,s=i(30),_=i(103),l=i(102),d={};return d.init=function(i){function o(e){function i(){return e=e||"",n(e)?void t({text$string:e}):void(window.console&&window.console.log(l.getPrefix()+": badge.setText() expects passed argument to be a string"))}l.callOnFastInit(i,!0),l.callOnRegistered(i,!0)}function u(){function t(){_.showBanner()}l.callOnFastInit(t),l.callOnRegistered(t)}function c(){function t(){_.hideBanner()}l.callOnFastInit(t),l.callOnRegistered(t)}r=i,a=s.root,d.setLayout=function(){var i=["image_right","image_left","text_only","image_only"],n=i.join(", ");return r.generateLimitedFunction("badge.setLayout",1,function(o){function r(){return o&&e(o,i)!=-1?void t({layout$string:o}):void(window.console&&window.console.log("Invalid layout. Valid layouts: "+n))}l.callOnFastInit(r,!0),l.callOnRegistered(r,!0)})}(),d.setImage=r.generateLimitedFunction("badge.setImage",1,function(e){function i(){return e=e||"",n(e)?void t({image_path$string:e}):void(window.console&&window.console.log(l.getPrefix()+": badge.setImage() expects passed argument to be a string"))}l.callOnFastInit(i,!0),l.callOnRegistered(i,!0)}),d.setColor=r.generateLimitedFunction("badge.setColor",1,function(t){return r.theme.setColor(t,"badge")}),d.setText=o,d.show=u,d.hide=r.generateLimitedFunction("badge.hide",1,c)},o(d,"meshim_widget_controllers_liveChatAPI_Badge"),d}()}).call(e,i(24),i(19),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){function t(){u.showBubble()}c.callOnFastInit(t),c.callOnRegistered(t)}function o(){function t(){u.hideBubble()}c.callOnFastInit(t),c.callOnRegistered(t)}function r(){function t(){u.resetBubble()}c.callOnFastInit(t),c.callOnRegistered(t)}function a(t){function i(){c.saveAPISettings({settings:{bubble:{title$string:t}}}),l.$("livechat").$("settings").$("bubble").update({title$string:t})}return t&&e(t)?(c.callOnFastInit(i,!0),void c.callOnRegistered(i,!0)):void(window.console&&window.console.log(c.getPrefix()+": bubble.setTitle() expects passed argument to be a non-empty string"))}function s(t){function i(){c.saveAPISettings({settings:{bubble:{text$string:t}}}),l.$("livechat").$("settings").$("bubble").update({text$string:t})}return t&&e(t)?(c.callOnFastInit(i,!0),void c.callOnRegistered(i,!0)):void(window.console&&window.console.log(c.getPrefix()+": bubble.setText() expects passed argument to be a non-empty string"))}var _,l,d=i(30),u=i(103),c=i(102),h={};return h.init=function(t){_=t,l=d.root,h.setColor=_.generateLimitedFunction("bubble.setColor",1,function(t){return _.theme.setColor(t,"bubble")})},h.show=t,h.hide=o,h.reset=r,h.setTitle=a,h.setText=s,n(h,"meshim_widget_controllers_liveChatAPI_Bubble"),h}()}).call(e,i(19),i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(){function t(){m.hideButton()}var e=g.once(t);b.callOnFastInit(e),b.callOnRegistered(e)}function r(){function t(){m.showButton()}var e=g.once(t);b.callOnFastInit(e),b.callOnRegistered(e)}function a(t){function e(){b.saveAPISettings({settings:{theme:{chat_button:{v_offset$int:t}}}}),h.$("livechat").$("settings").$("theme").$("chat_button").update({v_offset$int:t})}return t=parseInt(t,10),isNaN(t)||t<0?void(window.console&&window.console.log(b.getPrefix()+': button.setOffsetVertical() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0')):(b.callOnFastInit(e,!0),void b.callOnRegistered(e,!0))}function s(t){function e(){b.saveAPISettings({settings:{theme:{chat_button:{v_offset_mobile$int:t}}}}),h.$("livechat").$("settings").$("theme").$("chat_button").update({v_offset_mobile$int:t})}return t=parseInt(t,10),isNaN(t)||t<0?void(window.console&&window.console.log(b.getPrefix()+': button.setOffsetVerticalMobile() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0')):(b.callOnFastInit(e,!0),void b.callOnRegistered(e,!0))}function _(t){function e(){b.saveAPISettings({settings:{theme:{chat_button:{h_offset$int:t}}}}),h.$("livechat").$("settings").$("theme").$("chat_button").update({h_offset$int:t})}return t=parseInt(t,10),isNaN(t)||t<0?void(window.console&&window.console.log(b.getPrefix()+': button.setOffsetHorizontal() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0')):(b.callOnFastInit(e,!0),void b.callOnRegistered(e,!0))}function l(t){function e(){b.saveAPISettings({settings:{theme:{chat_button:{h_offset_mobile$int:t}}}}),h.$("livechat").$("settings").$("theme").$("chat_button").update({h_offset_mobile$int:t})}return t=parseInt(t,10),isNaN(t)||t<0?void(window.console&&window.console.log(b.getPrefix()+': button.setOffsetHorizontalMobile() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0')):(b.callOnFastInit(e,!0),void b.callOnRegistered(e,!0))}function d(t){function e(){b.saveAPISettings({settings:{theme:{chat_button:{position$string:t}}}}),h.$("livechat").$("settings").$("theme").$("chat_button").update({position$string:t})}if(!p){if(!n(t))return void(window.console&&window.console.log(b.getPrefix()+": button.setPosition() expects passed argument to be a string"));b.callOnFastInit(e,!0),b.callOnRegistered(e,!0)}}function u(t){function e(){b.saveAPISettings({settings:{theme:{chat_button:{position_mobile$string:t}}}}),h.$("livechat").$("settings").$("theme").$("chat_button").update({position_mobile$string:t})}return n(t)?(b.callOnFastInit(e,!0),void b.callOnRegistered(e,!0)):void(window.console&&window.console.log(b.getPrefix()+": button.setPositionMobile() expects passed argument to be a string"))}var c,h,p,g=i(45),f=i(30),m=i(103),$=i(338),b=i(102),w={};return w.init=function(t){function i(t){function i(){m.setHideWhenOffline(t)}t=e(t),b.callOnFastInit(i,!0),b.callOnRegistered(i,!0)}c=t,h=f.root,p=h.$("livechat").$("ui").$("mobile$bool").getValue(),w.setColor=c.generateDeprecatedFunction("button.setColor","$zopim.livechat.theme.setColor",function(){return $.setColor.apply(this,arguments)}),w.setHideWhenOffline=c.generateLimitedFunction("button.setHideWhenOffline",1,i)},w.hide=t,w.show=r,w.setOffsetBottom=w.setOffsetVertical=a,w.setOffsetVerticalMobile=s,w.setOffsetHorizontal=_,w.setOffsetHorizontalMobile=l,w.setPosition=d,w.setPositionMobile=u,o(w,"meshim_widget_controllers_liveChatAPI_Button"),w}()}).call(e,i(16),i(19),i(4))},function(t,e,i){(function(e,n,o,r){t.exports=function(){var t,a,s,_,l=i(30),d=i(102),u={};return u.init=function(i){function r(t,e){if(!t||!d.isHexColor(t))return void(window.console&&window.console.log(d.getPrefix()+': theme.setColor() Invalid color argument. Color must be in hexadecimal format ("#AABBCC")'));e=e||"";var i={};i[e]=t,u.setColors(i)}function c(t){function i(){var i,n={};for(var o in t)if(t.hasOwnProperty(o)){if(i=o||"primary",!l.livechat.getLimit()&&"primary"!=i)continue;"badge"==i&&(i="banner"),i+="$string",t[o]&&e(t[o])&&d.isHexColor(t[o])&&(n[i]=t[o])}d.saveAPISettings({settings:{theme:{colors:n}}}),a.$("livechat").$("settings").$("theme").update({colors:n})}return t&&"object"==typeof t?(d.savePopoutAPICalls("theme.setColors",[t]),d.callOnFastInit(i,!0),void d.callOnRegistered(i,!0)):void(window.console&&window.console.log(d.getPrefix()+": theme.setColors() Invalid argument. Argument must be an object containing the desired colors in hexadecimal format (#AABBCC)"))}function h(t,e){function i(t){for(var e,i=[],n=0,o=t.length;n<o;n++)e=t.charAt(n),"'"!==e&&'"'!==e||(i[0]===e?i.shift():i.unshift(e));return 0===i.length}function n(){return _.getValue()?void d.saveAPISettings({settings:{theme:{custom_fonts:{config$json:t,font_family$string:e}}}}):void r(d.getPrefix()+": theme.setFontConfig() API requires your account to be on the Advanced or Premium plan. Please upgrade your account.")}var o=a.$("connection.status$string").getValue(),r=window.console&&window.console.log&&window.console.log.bind&&window.console.log.bind(window.console)||window.console&&window.console.log||function(){};return o?void r(d.getPrefix()+": theme.setFontConfig() must be called immediately after embedding script"):p(t)&&"string"==typeof e?/[^A-Za-z0-9\'\"\-_, ]/.test(e)?void r(d.getPrefix()+": theme.setFontConfig() error: Invalid characters in font-family."):i(e)?(d.callOnFastInit(n),void d.callOnRegistered(n)):void r(d.getPrefix()+": theme.setFontConfig() error: Malformed font-family string."):void r(d.getPrefix()+": theme.setFontConfig() error: Invalid arguments.")}function p(t){function e(t){if(n(t))return null;if(!o(t)||0===t.length)return"is of invalid type";for(var e=0,i=t.length;e<i;e++)if("string"!=typeof t[e])return"is of invalid type";return null}function i(t){return n(t)?"is required":null}function r(t,e,i,n){for(var o='attribute "'+e+'" of provider "'+t+'" ',r=0,a=n.length;r<a;r++){var s=n[r];if("string"==typeof s){if(void 0!==i&&typeof i!==s)return o+"is of invalid type"}else{var _=s(i);if(_)return o+_}}return null}var a={custom:{urls:[i,e]},fontdeck:{id:[i,"string"]},monotype:{projectId:[i,"string"]},google:{families:[i,e],text:["string"]},typekit:{id:[i,"string"],api:["string"]}},s=[],_=window.console&&window.console.log&&window.console.log.bind&&window.console.log.bind(window.console)||window.console&&window.console.log||function(){};for(var l in t)if(t.hasOwnProperty(l)){if(!a[l])return _(d.getPrefix()+': theme.setFontConfig() error: unknown font provider "'+l+'"'),!1;var u,c=a[l],h=t[l];for(u in c)if(c.hasOwnProperty(u)){var p=c[u],g=r(l,u,h[u],p);if(g)return _(d.getPrefix()+": theme.setFontConfig() error: "+g),!1}for(u in h)h.hasOwnProperty(u)&&(c[u]||s.push(l+"."+u))}return s.length>0&&_(d.getPrefix()+": theme.setFontConfig() warning: unused paths in web_font_config: "+s.join(", ")),!0}function g(){function t(){d.savePopoutAPICalls("theme.reload",[]),a.$("livechat").$("ui").update({theme_reload$bool:!0})}d.callOnFastInit(t),d.callOnRegistered(t)}function f(t){m(t)?$(t):window.console&&window.console.log(d.getPrefix()+": setProfileCardConfig() Invalid argument. Please refer to api docs.")}function m(t){if(!t||"object"!=typeof t)return!1;for(var e in t)if(t.hasOwnProperty(e)&&"boolean"!=typeof t[e])return!1;return!0}function $(t){var e={};"avatar"in t&&(e.display_avatar$bool=t.avatar),"title"in t&&(e.display_title_name$bool=t.title),"rating"in t&&(e.display_rating$bool=t.rating),b(e),d.savePopoutAPICalls("theme.setProfileCardConfig",[t])}function b(t){function e(){d.saveAPISettings({settings:{theme:{chat_window:{profile_card:t}}}}),s.update(t)}d.callOnFastInit(e),d.callOnRegistered(e)}t=i,a=l.root,s=a.$("livechat").$("settings").$("theme").$("chat_window").$("profile_card"),_=a.$("livechat").$("features").$("set_font_config$bool"),u.setTheme=t.generateLimitedFunction("theme.setTheme",2,function(t){function e(){d.saveAPISettings({settings:{theme:{name$string:t.toString()}}}),a.$("livechat").$("settings").$("theme").update({name$string:t.toString()})}d.savePopoutAPICalls("theme.setTheme",[t.toString()]),d.callOnFastInit(e,!0),d.callOnRegistered(e,!0)}),u.setColor=r,u.setColors=t.generateLimitedFunction("theme.setColors",1,c),u.setFontConfig=h,u.validateConfig=p,u.reload=g,u.setProfileCardConfig=f},r(u,"meshim_widget_controllers_liveChatAPI_Theme"),u}()}).call(e,i(19),i(10),i(21),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(t){function e(){s.saveAPISettings({settings:{concierge:t}}),r.$("livechat").$("settings").$("concierge").update(t)}s.callOnFastInit(e,!0),s.callOnRegistered(e,!0)}var o,r,a=i(30),s=i(102),_={};return _.init=function(i){function n(i){return i=i||"",e(i)?(t({display_name$string:i}),void s.savePopoutAPICalls("concierge.setName",[i])):void(window.console&&window.console.log(s.getPrefix()+": concierge.setName() expects passed argument to be a string"))}function l(i){return i=i||"",e(i)?(t({title$string:i}),void s.savePopoutAPICalls("concierge.setTitle",[i])):void(window.console&&window.console.log(s.getPrefix()+": concierge.setTitle() expects passed argument to be a string"))}o=i,r=a.root,_.setAvatar=o.generateLimitedFunction("concierge.setAvatar",1,function(i){return i=i||"",e(i)?(t({avatar_path$string:i}),void s.savePopoutAPICalls("concierge.setAvatar",[i])):void(window.console&&window.console.log(s.getPrefix()+": concierge.setAvatar() expects passed argument to be a string"))}),_.setName=n,_.setTitle=l},n(_,"meshim_widget_controllers_liveChatAPI_Concierge"),_}()}).call(e,i(19),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){a.enableCookieLaw()}function n(){a.setDefaultImplicitConsent()}var o,r=i(30),a=i(192),s={};return s.init=function(){o=r.root},s.comply=t,s.setDefaultImplicitConsent=n,e(s,"meshim_widget_controllers_liveChatAPI_CookieLawAPI"),s}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){var t=Array.prototype.slice.call(arguments);return w.savePopoutAPICalls("departments.filter",t),arguments.length?(m=t,v?void o():(f.update(!0),p.bindValue(o),void(v=!0))):(f.update(!1),p.unbindValue(o),void(v=!1))}function n(t){var e,i={},n=p.getValue();if(!n)return i;for(var o=t.length;o--;)e=t[o],"number"!=typeof e&&(e=u(e)),n[e]&&(i[e]=!0);return i}function o(){if(!$&&m){var t={},e=p.getValue(),i=n(m);if(e){for(var o in e)e.hasOwnProperty(o)&&(t[o]={display$bool:o in i});$=!0,p.update(t),$=!1}}}function r(t){function e(){a(t)}w.callOnFastInit(e),w.callOnRegistered(e,!0)}function a(t){"number"!=typeof t&&(t=u(t)),t&&g.parentNode.write({department_id$int:t})}function s(){w.callOnFastInit(_),w.callOnRegistered(_,!0)}function _(){g.parentNode.write({department_id$int:null})}function l(t){if("number"!=typeof t&&(t=u(t)),t){var e=p.$(t).getValue();if(e)return{id:t,name:e.name$string,status:e.status$string}}}function d(){var t=p.getValue(),e=[];for(var i in t)t.hasOwnProperty(i)&&e.push({id:parseInt(i,10),name:t[i].name$string,status:t[i].status$string});return e}function u(t){if(t=t&&t.toString()){var e=p.getValue();for(var i in e)if(e.hasOwnProperty(i)&&e[i].name$string==t)return parseInt(i,10)}}function c(t){function e(){w.saveAPISettings({settings:{forms:{pre_chat_form:{form:{2:{label$string:t}}}}}}),h.$("livechat").$("settings").$("forms").$("pre_chat_form").$("form").$("2").update({label$string:t})}return t&&"string"==typeof t?(w.savePopoutAPICalls("departments.setLabel",[t]),w.callOnFastInit(e,!0),void w.callOnRegistered(e,!0)):void(window.console&&window.console.log(w.getPrefix()+": departments.setLabel() expects passed argument to be a non-empty string"))}var h,p,g,f,m,$,b=i(30),w=i(102),x={};x.init=function(){h=b.root,p=h.$("livechat").$("departments"),g=h.$("livechat").$("profile").$("department_id$int"),f=h.$("livechat").$("ui").$("departments").$("filter_enabled$bool")};var v;return x.filter=t,x.setVisitorDepartment=r,x.clearVisitorDepartment=s,x.getDepartment=l,x.getAllDepartments=d,x.setLabel=c,e(x,"meshim_widget_controllers_liveChatAPI_Departments"),x}()}).call(e,i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(t){if(!n(t))return void(window.console&&window.console.log(w.getPrefix()+": window.onShow() expects a callback function to be provided"));var e=w.getCallbackCaller(t);$.on("API:window:show",e)}function r(t){if(!n(t))return void(window.console&&window.console.log(w.getPrefix()+": window.onHide() expects a callback function to be provided"));var e=w.getCallbackCaller(t);$.on("API:window:hide",e)}function a(t){function i(){w.saveAPISettings({settings:{chat_window:{title_bar:{title$string:t}}}}),p.$("livechat").$("settings").$("chat_window").$("title_bar").update({title$string:t})}return t=t&&t.toString(),e(t)?(w.savePopoutAPICalls("window.setTitle",[t]),w.callOnFastInit(i),void w.callOnRegistered(i)):void(window.console&&window.console.log(w.getPrefix()+": window.setTitle expects passed argument to be a string"))}function s(){w.callOnRegistered(function(){$.toggleWindow()})}function _(){return p.$("livechat").$("ui").$("chat_window").$("display$bool").getValue()}function l(t){function e(){w.saveAPISettings({settings:{theme:{chat_window:{v_offset$int:t}}}}),p.$("livechat").$("settings").$("theme").$("chat_window").update({v_offset$int:t})}return t=parseInt(t,10),isNaN(t)||t<0?void(window.console&&window.console.log(w.getPrefix()+': window.setOffsetVertical() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0')):(w.callOnFastInit(e,!0),void w.callOnRegistered(e,!0))}function d(t){function e(){w.saveAPISettings({settings:{theme:{chat_window:{h_offset$int:t}}}}),p.$("livechat").$("settings").$("theme").$("chat_window").update({h_offset$int:t})}return t=parseInt(t,10),isNaN(t)||t<0?void(window.console&&window.console.log(w.getPrefix()+': window.setOffsetHorizontal() Invalid argument. Argument must be a number (20) or in pixels ("20px") and not smaller than 0')):(w.callOnFastInit(e,!0),void w.callOnRegistered(e,!0))}function u(t){function i(){w.saveAPISettings({settings:{theme:{chat_window:{position$string:t}}}}),p.$("livechat").$("settings").$("theme").$("chat_window").update({position$string:t})}return e(t)?(w.callOnFastInit(i,!0),void w.callOnRegistered(i,!0)):void(window.console&&window.console.log(w.getPrefix()+": window.setPosition() expects passed argument to be a string"))}function c(){return!!(n(b.isReady)&&b.isReady()&&f.requestPermission())&&b.openPopout(!0)}var h,p,g=i(45),f=i(192),m=i(30),$=i(103),b=i(101),w=i(102),x={};return x.init=function(t){function i(){function t(){$.showWindow()}var e=g.once(t);w.callOnFastInit(e),w.callOnRegistered(e)}function n(){function t(){$.hideWindow()}var e=g.once(t);w.callOnFastInit(e),w.callOnRegistered(e)}h=t,p=m.root,x.setColor=h.generateDeprecatedFunction("window.setColor","$zopim.livechat.theme.setColor",function(){return h.theme.setColor.apply(this,arguments)}),x.setSize=h.generateLimitedFunction("window.setSize",1,function(t){function i(){w.saveAPISettings({settings:{theme:{chat_window:{size$string:t}}}}),p.$("livechat").$("settings").$("theme").$("chat_window").update({size$string:t})}return e(t)&&t?(w.callOnFastInit(i),void w.callOnRegistered(i)):void(window.console&&window.console.log(w.getPrefix()+": window.setSize expects passed argument to be a non-empty string"))}),x.show=i,x.hide=n},x.onShow=t,x.onHide=r,x.setTitle=a,x.toggle=s,x.getDisplay=_,x.setOffsetBottom=x.setOffsetVertical=l,x.setOffsetHorizontal=d,x.setPosition=u,x.openPopout=c,o(x,"meshim_widget_controllers_liveChatAPI_Window"),x}()}).call(e,i(19),i(9),i(4))},function(t,e,i){(function(e,n){t.exports=function(){var t=i(36),o=i(30),r={};return r.init=function(){function i(e){window.console&&window.console.log(a?t.stringify(e):e)}var n=o.root,a=e.isIE||e.isNewIE;r.connection=function(){i(n.$("connection").getValue())},r.livechat=function(){i(n.$("livechat").getValue())},r.all=function(){i(n.getValue())}},n(r,"meshim_widget_controllers_liveChatAPI_Debug"),r}()}).call(e,i(7),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(t){function i(){a.saveAPISettings({settings:{forms:{pre_chat_form:{message$string:t}}}}),o.$("livechat").$("settings").$("forms").$("pre_chat_form").update({message$string:t})}return e(t)?(a.savePopoutAPICalls("prechatForm.setGreetings",[t]),a.callOnFastInit(i,!0),void a.callOnRegistered(i,!0)):void(window.console&&window.console.log(a.getPrefix()+": prechatForm.setGreetings() expects passed argument to be a string"))}var o,r=i(30),a=i(102),s={};return s.init=function(){o=r.root},s.setGreetings=t,n(s,"meshim_widget_controllers_liveChatAPI_PreChatForm"),s}()}).call(e,i(19),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(t){function i(){return e(t)?(a.saveAPISettings({settings:{forms:{offline_form:{message$string:t}}}}),void o.$("livechat").$("settings").$("forms").$("offline_form").update({message$string:t})):void(window.console&&window.console.log(a.getPrefix()+": offlineForm.setGreetings() expects passed argument to be a string"))}function n(){a.resetAPISettings({settings:{forms:{offline_form:{message$string:null}}}});var t=a.getServerSettings("settings.forms.offline_form.message$string");t&&o.$("livechat").$("settings").$("forms").$("offline_form").update({message$string:t})}var r=null===t?n:i;a.savePopoutAPICalls("offlineForm.setGreetings",[t]),a.callOnFastInit(r,!0),a.callOnRegistered(r,!0)}var o,r=i(30),a=i(102),s={};return s.init=function(){o=r.root},s.setGreetings=t,n(s,"meshim_widget_controllers_liveChatAPI_OfflineForm"),s}()}).call(e,i(19),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){function e(){r.disableMobileNotifications(t)}return"boolean"!=typeof t?void(window.console&&window.console.log(o.getPrefix()+": mobileNotifications.setDisabled() expects argument passed to be a boolean")):(o.callOnFastInit(e),void o.callOnRegistered(e))}function n(t){function e(){r.mobileNotificationsIgnoreChatButtonVisibility(t)}return"boolean"!=typeof t?void(window.console&&window.console.log(o.getPrefix()+": mobileNotifications.setIgnoreChatButtonVisibility() expects argument passed to be a boolean")):(o.callOnFastInit(e),void o.callOnRegistered(e))}var o=i(102),r=i(103),a={};return a.setDisabled=t,a.setIgnoreChatButtonVisibility=n,e(a,"meshim_widget_controllers_liveChatAPI_MobileNotifications"),a}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(){r=f.root.$("livechat").$("profile"),a=r.$("display_name$string"),_=r.$("email$string"),d=r.$("auth").$("type$string"),c=r.$("logged_in$bool"),a.on("value",function(t){s=t,n()}),_.on("value",function(t){l=t,n()}),d.on("value",function(t){u=t,n()}),h=f.root.$("livechat").$("settings"),p=h.$("login").$("allowed_types"),g=h.$("login").$("allowed_types_count$int"),p.on("value",function(){var t=p.getValue(),e=0;for(var i in t)if(t.hasOwnProperty(i)){if("email$bool"==i)continue;t[i]&&e++}e!=g.getValue()&&g.update(e)})}function n(){c.update(o())}function o(){return!!u||(!(!l||!(l+"").trim())||(!(!s||!(s+"").trim()||m.isDefaultName(s))||void 0))}var r,a,s,_,l,d,u,c,h,p,g,f=i(30),m=i(38),$={init:t};return e($,"meshim_widget_controllers_ProfileListener"),$}()}).call(e,i(4))},function(t,e,i){(function(e,i){t.exports=function(){function t(t){r=t.$("livechat").$("profile"),e.document.on("mousemove",n),e.window.on("click",n),e.window.on("scroll",n),e.window.on("keypress",n),o()}function n(){s++}function o(){s&&r.write({active$int:+new Date}),s=0,window.setTimeout(o,_)}var r,a={init:t},s=1,_=2e4;return i(a,"meshim_widget_controllers_Tracker"),a}()}).call(e,i(6),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(t){return"--"!==t&&t||(t=s.guess()),a.zendeskToZopim(t)}var o=i(30),r=i(27),a=i(350),s=i(351),_={};return _.init=function(){var i,n=o.root.$("livechat").$("ui").$("mockup$bool"),a=o.root.$("livechat").$("ui").$("popout$bool"),s=o.root.$("livechat").$("ui").$("lang_dir$string"),_=o.root.$("livechat").$("settings").$("language").$("language$string");if(!n.getValue())return a.getValue()?(i=r().get("lang"),i=t(i),_.update(i),e&&e.update&&e.update(i),void(e&&e.rtl&&s.update(e.rtl()?"rtl":"ltr"))):void _.bindValue(function(i){return"--"!==i&&i?(i=t(i),e&&e.update&&e.update(i),void(e&&e.rtl&&s.update(e.rtl()?"rtl":"ltr"))):(i=t(i),void _.update(i))})},n(_,"meshim_widget_controllers_LanguageController"),_}()}).call(e,i(22),i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t){return"string"!=typeof t&&(t=""),t.replace(/^[A-Za-z]{4}$/,function(t){return t.slice(0,2).toLowerCase()+"_"+t.slice(2).toUpperCase()})}var i={fil:"tl",cz:"cs",no:"nb"},n={};return n.zendeskToZopim=function(e){var n=i[e];return n?n:t(e)},e(n,"meshim_common_LocaleMapper"),n}()}).call(e,i(4))},function(t,e,i){(function(e){t.exports=function(){function t(t,e){var i=e.match(t);return i?i.length:0}function i(e,i,n,o){return Math.pow(t(e,i)/n,1/o)}function n(t){var e,i=1-t[0];for(e=1;e<t.length;e++)i*=1-t[e];return 1-i}function o(e,o,r){r||(r=t(/ /g,o));for(var a,s,l,d,u=o.length,c=[],h=0;h<_[e].length;h+=2)a=_[e][h],s=_[e][h+1],l="\\\\b"==a.toString().substr(1,2)?r:u,d=i(a,o,l,s),c.push(d);return"en"==e&&c.push(.6/o.length),n(c)}function r(e,i){var n=document.body.getAttribute("lang")||document.documentElement.getAttribute("lang");if(n)return n;e||(e=s),i||(i=document.body.innerHTML.replace(/\s+/g," ").replace(/<script[^>]*?>.*?<\/script>/gi," ").replace(/<style[^>]*?>.*?<\/style>/gi," ").replace(/<!--.*?-->/g," ").replace(/<\/?[^>]+?>/g," ").replace(/[-_a-z0-9.@]+[.@][-_a-z0-9.@]+/gi,"").replace(/[\s\d!'#$%&'()*+,-.\/:;<=>?@^_{|}~\[\]\/]+/g," ")),i=i.replace(/\s+/g," ");var r,a,_=t(/ +/g,i),l=[];for(r=0;r<e.length;r++)l.push([e[r],o(e[r],i,_)]);return l.sort(function(t,e){return e[1]-t[1]}),a=l[0][0],a.scores=l,window.__$z_results=_+" "+i.length+" "+i.length/_+"\n"+l.join("\n"),window.__$z_innerText=i,a}var a={guess:r},s=[],_={en:[/\b(up|me|submit|offers?|about|rights?|more|contact|all|downloads?|how|search|to|do|i[nst]?|your?|that|was|one?|are|with|[bw]e|have|this|f?or|had|by|[hn]ot?|[bo]ut|so|some|what|can|[tw]here|why|other|over|die|ten)\b/gi,4,/\b(inn|set|end|about|pro|the|of|from|and|a|as|at)\b/gi,6],cs:[/[\u00e1\u010d\u010f\u00e9\u011b\u00ed\u0148\u00f3\u0159\u0161\u0165\u00fa\u016f\u00fd\u017e]/gi,5,/\b(by|do|to|[aikosvz])\b/gi,3,/\b(na|za|se|je|\u017ee|ve|jako|jsem|pro|tak|po|u\u017e|jsou|byl)\b/gi,6],de:[/[\u00df]/g,10,/[\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc]/g,7,/\b(de[mrs]|vo[nm]|zu[mr]?|da[s\u00df]?|eine[mnrs]?|a[lu]s|wir|[sw]ie|n[ao]ch|vor[ms]?|(\u00fcb|od|ab)er|und|im|mit|sich|auf|f\u00fcr|nicht|auch|es|bei|nur|bis|mehr|durch)\b/gi,6],
es:[/[\u00f1]/g,10,/[\xE1\xE9\xED\xF3\xFA]/gi,6,/\b(que|nuestro|ingresar|inicio|qu[e\u00e9]|[dt]e|ser?|[ms]i|l?a|e[lns]|y|tu|los?|una?|por|con|para|est(\u00e1|ar))\b/gi,6],fr:[/[\u0153]/gi,15,/[\u00e0\u00e2\u00e7\u00e9\u00e8\u00ea\u00eb\u00ee\u00ef\u00f4\u00fb\u00f9\u00fc\u00ff]/gi,7,/\b(son)\b/gi,4,/\b(en)\b/gi,5,/\b([ado]u|aux?|[do]u|la|[cdls]es|es?t|une?|ne|qu[ei]|sur|dans|pa[rs]|il|sont|avec|voir)\b/gi,6],hr:[/[\u010d\u0107\u0111\u0161\u017e]/gi,10,/d\u017e|lj|nj/gi,3,/\b(ali|ja|je|mene|na|ne|od|ovo|se|sve|ti|u|za|znati)\b/gi,6],ms:[/\b(and)\b/gi,4,/\b((se)?(biji|buah|orang)|ada|anda|atau|boleh|bukan|dalam|dan|dari|di|ini|kami|ke|lagi|sila|tidak|tinggi|telah|untuk)\b/gi,6],da:[/[\u00c6\u00e6\u00d8\u00f8\u00c5\u00e5]/g,10,/\b(de)\b/gi,5,/\b(ind|l\u00e6s|nyheder|[vt]il|s?om|og|[mv]ed|kan|har|var|tager|af|d?et|de[tn]{2}e|skal|den|set|noget|nogle|mange|hadde|eller|efter|end|blive|er|sekund|viser|ud|(a|vi|sku)lle)\b/gi,6],nb:[/[\u00c6\u00e6\u00d8\u00f8\u00c5\u00e5]/g,10,/\b(de)\b/gi,5,/\b(passord|nyheter|inn|[vt]il|s?om|og|[mv]ed|kan|[htv]ar|av|d?et|de[tn]{2}e|skal|se(g|tt)|noen?|mange|hadde|e[lt]{2}er|enn|blir?|ble|andre|viser|ut|(a|vi|sku)lle)\b/gi,6],nl:[/\b(in|die)\b/gi,4,/\b(de|en)\b/gi,5,/\b(het|dat|van|ik|te|een|hij|niet|zijn)\b/gi,6],pt:[/[\u00e1\u00e2\u00e3\u00e0\u00e7\u00e9\u00ea\u00ed\u00f3\u00f4\u00f5\u00fa]/gi,7,/\b(gr\u00e1fico|ao|como|das?|de|dos|ele|em?|mai?s|na|n\u00e3o|os?|para|por|que|se|uma?)\b/gi,6],sk:[/\u00e1\u00e4\u010d\u010f\u00e9\u00ed\u013e\u013a\u0148\u00f3\u00f4\u0155\u0161\u0165\u00fa\u00fd\u017e/gi,10,/dz|d\u017e/gi,5,/\b(ten|to|do|so)\b/gi,4,/\b(ja|na|za|c\u030co|t\u00e1|po|vo|zo|n\u00e1[s\u030cs])\b/gi,6],tr:[/[\u00c7\u011e\u0130\u00d6\u015e\u00dc\u00e7\u011f\u0131\u00f6\u015f\u00fc]/g,7,/\b(son)\b/gi,4,/\b(formu|bir|ve|ne|bu|i\u00e7in|o|b?en|\u00e7ok|(al|\u00e7\u0131k|ol|yap)mak|(de|gel|git|g\u00f6r|iste|ver)mek|gibi|daha|kendi|ile|ama|sonra|kadar|yer|insan|de\u011fil|y\u0131l|g\u00fcn|biz)\b/gi,6],vi:[/[\u00e0\u1ea3\u00e3\u00e1\u1ea1\u0103\u1eb1\u1eb3\u1eb5\u1eaf\u1eb7\u00e2\u1ea7\u1ea9\u1eab\u1ea5\u1ead\u0111\u00e8\u1ebb\u1ebd\u00e9\u1eb9\u00ea\u1ec1\u1ec3\u1ec5\u1ebf\u1ec7\u00ec\u1ec9\u0129\u00ed\u1ecb\u00f2\u1ecf\u00f5\u00f3\u1ecd\u00f4\u1ed3\u1ed5\u1ed7\u1ed1\u1ed9\u01a1\u1edd\u1edf\u1ee1\u1edb\u1ee3\u00f9\u1ee7\u0169\u00fa\u1ee5\u01b0\u1eeb\u1eed\u1eef\u1ee9\u1ef1\u1ef3\u1ef7\u1ef9\u00fd\u1ef5]/gi,8,/\b(v\u00e0|c\u00e1c|c\u1ee7a|c\u00f3|\u0111\u0103ng|\u0111\u00e2y|ho\u1eb7c|kh\u1ea9u|k\u00fd|m\u1ed9t|ng\u00e0y|l\u00e0|trong|cho)\b/gi,6],ja:[/[\u3041-\u30ff]/g,10],ko:[/[\uAC00-\uD7A3\u1100-\u11FF\u3131-\u318E\uFFA1-\uFFDC]/g,10],th:[/[\u0E00-\u0E7F]/g,10],zh_CN:[/[\u4e00-\u9fb4]/g,1,/[\u7684\u662f\u8fd9\u6709\u5728\u4e0d\u4e86\u6765\u4e2a\u5230\u4e3a\u548c\u9053\u4e5f\u65f6\u5f97\u5c31\u90a3\u8981\u4ee5\u7740\u53bb\u4e4b\u8fc7\u5bb6\u5bf9\u53ef\u91cc\u540e\u4e48\u591a\u800c\u80fd\u90fd\u7136\u6ca1\u8d77\u8fd8]/g,7],ru:[/[\u0410-\u042f\u0430-\u044f\u0401\u0451]/g,3],ar:[/[\u0600-\u06FF\u0750-\u077F\uFB50-\uFDFF\uFE70-\uFEFF]/g,1]};for(var l in _)_.hasOwnProperty(l)&&s.push(l);return e(a,"jx_language_Detect"),a}()}).call(e,i(4))},function(t,e,i){(function(e,n,o){t.exports=function(){function t(){h=I.root,p=h.$("livechat").$("features").$("premium_support"),f=h.$("livechat").$("profile").$("package_name$string"),$=h.$("livechat").$("ui").$("chat_window").$("offline_form"),b=h.$("livechat").$("ui").$("mockup$bool"),b.getValue()||(w=h.$("livechat").$("settings").$("forms").$("offline_form"),x=h.$("tmp").$("api_settings").$("settings").$("forms").$("offline_form").$("message$string"),v=h.$("tmp").$("server_settings").$("settings").$("forms").$("offline_form").$("message$string"),p.bindValue(a),f.bindValue(r))}function r(){m=f.getValue(),l()}function a(){return(g=p.getValue())?(y=s(g.period.start$string),j=s(g.period.end$string),C=_(g.plans),void l()):void u()}function s(t){if(n(t)&&t){t=t.toUpperCase().split(" ");var e=t[0].split(":"),i=parseInt(e[0],10),o=parseInt(e[1],10),r=parseInt(e[2],10),a=T[t[1]];return a*S.DAY+i*S.HOUR+o*S.MINUTE+r*S.SECOND}}function _(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i.split("$")[0]]=!0);return e}function l(){if(g){var t=C[m];if(t)return u(),void c(null);var e,i,n=new Date(k.getServerTime()),o=n.getUTCDay()*S.DAY+n.getUTCHours()*S.HOUR+n.getUTCMinutes()*S.MINUTE+n.getUTCSeconds()*S.SECOND,r=Math.min(y,j),a=Math.max(y,j);e=y<=j?y<=o&&o<=j:y<=o||o<=j,c(e?"offline":null),i=o<=r?r-o:o<=a?a-o:7*S.DAY-(o-r),d(i+S.SECOND)}}function d(t){u(),A=window.setTimeout(l,t)}function u(){A&&(A=window.clearTimeout(A))}function c(t){B.setStatus(t);var e=x.getValue()||("offline"===t?N.toString():v.getValue());w.update({message$string:e}),$.update({upgrade_link_display$bool:"offline"===t})}var h,p,g,f,m,$,b,w,x,v,y,j,C,A,S=i(65),I=i(30),k=i(48),B=i(334),N=e(3),T={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6},D={init:t};return o(D,"meshim_widget_controllers_PremiumSupportController"),D}()}).call(e,i(22),i(19),i(4))},function(t,e,i){(function(e,n){t.exports=function(){function t(){d||(a=u.root.$("livechat"),s=a.$("settings").$("theme").$("chat_window").$("profile_card"),_=a.$("ui").$("chat_window").$("display_profile_card$bool"),l=a.$("settings").$("rating").$("enabled$bool"),s.bindValue(o),l.bindValue(o),d=!0)}function o(){var t=e(s.getValue("display_avatar$bool")),i=e(s.getValue("display_title_name$bool")),n=e(s.getValue("display_rating$bool"))&&e(l.getValue()),o=t||n||i;_.update(o)}function r(){d=!1}var a,s,_,l,d,u=i(30),c={init:t,resetState:r};return n(c,"meshim_widget_controllers_ChatPanelProfileCardController"),c}()}).call(e,i(16),i(4))}]);