1function _getVendorPropertyName(e){var t,n,i=["Moz","Webkit","O","ms"],r=document.createElement("div"),o=e.charAt(0).toUpperCase()+e.substr(1);if(e in r.style)return e;for(n=0;n<i.length;++n)if((t=i[n]+o)in r.style)return t;this.div=null}function _css(e,t){for(prop in t)t.hasOwnProperty(prop)&&(e.style[_getVendorPropertyName(prop)]=t[prop])}function _toVacuum(e){}function _merge(e){for(var t in defaults)e.hasOwnProperty(t)||(e[t]=defaults[t])}function menuVisibilityHandler(e){var t=$D.get("[data-zp-theme-menu] > ul");t&&0!==e.length&&(hideMenus(t,e),removePermissionDeniedMenus(t))}function hideMenus(e,t){for(var n=e.childElementCount,i=0;i<n;i++)hideMenu(e.children[i],t)}function hideMenu(e,t){"1"==t[INDEXFORDATA]&&e.childElementCount>0&&e.children[0].setAttribute("class","remove"),INDEXFORDATA+=1,e.childElementCount>1&&hideMenus(e.children[1],t)}function removePermissionDeniedMenus(e,t){for(var n=0,i=e.childElementCount,r=0;r<i;r++)n=removePermissionDeniedMenu(e.children[r-n],t,n)}function removePermissionDeniedMenu(e,t,n){if(e.childElementCount>1&&removePermissionDeniedMenus(e.children[1],t),e.childElementCount>0&&"remove"==e.children[0].getAttribute("class")){1===e.parentElement.childElementCount?(spanResponsive=$D.get(".theme-responsive-menu",e.parentElement.previousSibling),spanNonResponsive=$D.get(".theme-non-responsive-menu",e.parentElement.previousSibling),$D.remove(e.parentElement),spanResponsive&&spanNonResponsive&&($D.remove(spanResponsive),$D.remove(spanNonResponsive))):$D.remove(e),n++;var i=$D.get("[data-zp-more-menu]");null!==i&&1===i.childElementCount&&$D.remove(i)}return n}function getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function user_accept_consent(){if(setCookies("zcglobal_cookie_optOut",0,180),"Europe"===window.zs_data_center){var e={url:window.location.href};$X.post({url:"/siteapps/set-cookies",params:e})}}function user_decline_consent(){setCookies("zcglobal_cookie_optOut",1,180)}function setCookies(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var r="expires="+i.toUTCString();document.cookie=e+"="+t+";"+r+";path=/; domain="+document.domain+";"}var hbMessageFormat=function(){"use strict";function e(e){this.index=0,this.tokens=e,this.nodes=[],this.openString=!1,this.openCode=!1,this.isSubformat=!1}function t(e,t){this.input=t,this.str=[],this.nodes=e,this.formatters={}}e.prototype.codeOpen=function(e,t,n){e[n-1];this.openString?this.nodes.push({data:"{"}):this.openCode?this.isSubformat=!0:this.openCode=!0},e.prototype.codeClose=function(e,t,n){"'"===e[n-1].char||this.openString?this.nodes.push({data:"}"}):(this.openCode&&(this.isSubformat?this.isSubformat=!1:this.openCode=!1),this.openString=!1)},e.prototype.string=function(e,t,n){e[n-1];var i=e[n+1];this.openString?i&&"'"===i.char?(this.index++,this.nodes.push({data:"'"}),this.openString=!1):this.openString=!1:i&&"'"===i.char?(this.index++,this.nodes.push({data:"'"})):this.openString=!0},e.prototype.data=function(e,t,n){var i;this.openCode?(i={code:t.data},this.isSubformat&&(i.sub=!0),this.nodes.push(i)):this.nodes.push({data:t.data})};var n=t.prototype;n.add=function(e,t){this.formatters[e]=t},n.getFormatter=function(e,n){for(var r,o,a,s,l=[];;){if(e.sub){for(s=[];s.push(e),e.sub=!1,void 0!==(e=this.nodes[++this.index])&&e.hasOwnProperty("sub")&&!0===e.sub;);a=new t(s,this.input),l.push({code:a.get()})}if(l.push(e),void 0===(e=this.nodes[++this.index])||!e.hasOwnProperty("code")){--this.index;break}}if(0===l.length)return!1;if(/^[\d]+$/.test(l[0].code))r=i.placeholder;else{if(!(o=l[0].code.match(/^\s*[\d]+\s*,\s*([\w]+).*$/)))return!1;r=i[o[1]]}var u=l.map(function(e){return e.code}).join("");return{method:r.method,currNodes:u}},n.get=function(){return this.walk(),this.str.join("")},n.walk=function(){var e,t,n=this.nodes;this.index=0;for(var i=n.length;this.index<i;){if((e=n[this.index]).hasOwnProperty("code")){if(!(t=this.getFormatter(e,this.index)))return this.input;this.str.push(t.method(t.currNodes,this.input))}else this.str.push(e.data);this.index++}};var i={placeholder:{method:function(e,t){return t[e]}},choice:{method:function(e,t){var n,i,r,o=/^(-?\d*(?:\.\d+)?)([#<>=]{1})([\s\S]+?)$/,a=e.match(/^\s*([\d]+)\s*,\s*([\w]+)\s*,\s*([\s\S]*?)$/),s=a[3];s=s.split("|");for(var l,u=a[1],c=0,d=s.length;c<d;c++)switch(n=s[c],i=n.match(o),r=i[2],l=i[1],isNaN(Number(l))||(l=Number(l)),r){case"#":if(Number(t[u])===l)return i[3];break;case"<":if(l<Number(t[u]))return i[3].replace("{0,number,integer}",t[u]);break;case">":if(l>Number(t[u]))return i[3].replace("{0,number,integer}",t[u])}}},time:{method:function(e,t){return"time"===e.match(/(\d+)\s*,\s*(time|date)\s*,?\s*[\w]*
1/)[2]?t[1].getHours()+":"+t[1].getMinutes():t[1].getDate()+"/"+t[1].getMonth()+"1/"+t[1].getFullYear()}},date:{method:function(e,t){return"time"===e.match(this.test)[2]?t[1].getHours()+":"+t[1].getMinutes():t[1].getDate()+"/"+t[1].getMonth()+"1/"+t[1].getFullYear()}},number:{method:function(e,t){return t[e.match(/([\d]+)/)[1]]}}};return function(){function n(e,t){r[e]=t}var r={};return n("choice",i.choice),n("placeholder",i.placeholder),n("dateTime",i.dateTime),{formatters:r,add:n,format:function(n){var i=function(t){for(var n,i=new e(t),r=t.length;i.index<r;)(n=t[i.index]).hasOwnProperty("type")?i[n.type](t,n,i.index):i.data(t,n,i.index),i.index++;return i.nodes}(function(e){function t(e){for(var t=0,n=l.length;t<n;t++)if(e===l[t].char)return l[t];return!1}for(var n,i,r,o=0,a=e.length,s=[],l=[{type:"codeOpen",char:"{"},{type:"codeClose",char:"}"},{type:"string",char:"'"}],u=l.map(function(e){return e.char});e[o];){if(i="",n=e[o],r=t(n))s.push({char:n,type:r.type});else{for(n&&(i=n);-1===u.indexOf(e[o+1])&&o+1<a;)i+=e[++o];s.push({data:i})}o++}return s}(n)),r=Array.prototype.slice.call(arguments);return new t(i,r=r.splice(1)).get()}}}()}();"undefined"!=typeof module&&(module.exports=hbMessageFormat);var i18n={};i18n.get=function(){var e=Array.prototype.slice.call(arguments);if(0===e.length)return"";if("undefined"==typeof langObj)return"";var t=langObj[e[0]];return t?(e.splice(0,1),e.splice(0,0,t),hbMessageFormat.format.apply(hbMessageFormat.format,e)):""};var cms_i18n=i18n.get;!function(){"use strict";var t,n="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),i=n&&navigator.userAgent.indexOf("MSIE")>-1,r=n?document:null,o=n?window:global,a=Object.prototype.toString;n&&(t=r.body,a=Object.prototype.toString);var s={};s.core={};var l=/^[a-z-_]$/i;if(s.is={array:function(e){return"[object Array]"===a.call(e)},date:function(e){return"[object Date]"===a.call(e)},function:function(e){return"[object Function]"===a.call(e)},regex:function(e){return"[object RegExp]"===a.call(e)},object:function(e){return"[object Object]"===a.call(e)},url:function(e){return/^https?:\/\/[\-A-Za-z0-9+&@#\/%?=~_|!:,.;]*[\-A-Za-z0-9+&@#\/%=~_|]/.test(e)}},s.dom={isNode:function(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},selector:function(e,t){var n=e[0];return-1!==e.indexOf(" ")||-1!==e.indexOf(":")?this.getAll(e,t):"#"===n&&0===e.lastIndexOf("#")?this.getById(e.substr(1),t):"."===n&&0===e.lastIndexOf(".")?this.getByClass(e.substr(1),t):l.test(e)?this.getByTag(e,t):this.getAll(e,t)},get:function(e,t){return t||(t=r),t.querySelector(e)},getAll:function(e,t){return t||(t=r),t.querySelectorAll(e)},getByClass:function(e,t){return t||(t=r),t.getElementsByClassName(e)},getByTag:function(e,t){return t||(t=r),t.getElementsByTagName(e)},getById:function(e,t){return t||(t=r),t.getElementById(e)},getByDataId:function(e,t){return t||(t=r),t.querySelector('[data-element-id="'+e+'"]')},getClasses:function(e){var t=e.className.match(/[\w-]+/g),n=[];if(null===t)return[];for(var i=t.length-1;i>=0;i--)n.push(t[i]);return n},hasClass:function(e,t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)},addClass:function(e,t){this.hasClass(e,t)||(e.className+=" "+t)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");n.test(e.className)&&(e.className=e.className.replace(n," "))},innerDimension:function(e){return this._getBox(e,"client")},outerDimension:function(e){return this._getBox(e,"offset")},scrollDimension:function(e){return this._getBox(e,"scroll")},offset:function(e){var t=0,n=0;if(e.offsetParent)for(t=e.offsetLeft,n=e.offsetTop;e=e.offsetParent;)t+=e.offsetLeft,n+=e.offsetTop;return{left:t,top:n}},css:function(){var e=function(e,t){return t.toUpperCase()},t=function(t){return t.replace(/\-(\w)/g,e)};return function(e,n,i){if(void 0===i&&"string"==typeof n)return i="",r.defaultView&&r.defaultView.getComputedStyle?i=r.defaultView.getComputedStyle(e,"").getPropertyValue(n):e.currentStyle&&("float"==n&&(n="styleFloat"),i=e.currentStyle[t(n)]),i;if("object"==typeof n)for(var o in n){var a=n[o];"float"==o&&(o=e.currentStyle?"styleFloat":"cssFloat"),e.style[t(o)]=a}else"float"==n&&(n=e.currentStyle?"styleFloat":"cssFloat"),e.style[t(n)]=i}}(),parents:function(e){var t=[];for(e=e.parentNode;e;)t.push(e),e=e.parentNode;return t},isAncestor:function(e,t){return!(!s.dom.isNode(e)||!s.dom.isNode(t))&&("contains"in e?e.contains(t):e.compareDocumentPosition(t)%16)},findParent:function(e,t){for(e=e.parentNode;e;){if(this.hasClass(e,t))return e;e=e.parentNode}return!1},findParentByTag:function(e,t){for(e=e.parentNode;e;){if(e.tagName&&e.tagName.toUpperCase()===t.toUpperCase())return e;e=e.parentNode}return!1},append:function(e,t){e.appendChild(t)},prepend:function(e,t){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},insertAfter:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},insertBefore:function(e,t){e.parentNode.insertBefore(t,e)},remove:function(e){return e.parentNode.removeChild(e)},text:function(e,t){e.appendChild(e.ownerDocument.createTextNode(t))},_getBox:function(e,t){var n={width:e[t+"Width"],height:e[t+"Height"]};if(0===n.width&&0===n.height){var i,r,o=this.parents(e),a=[];for(i=0,r=o.length;i<r;i++){var s=o[i];s.style&&"none"==s.style.display&&a.push(s)}a.push(e);var l=[];for(i=0,r=a.length;i<r;i++){var u=a[i];l.push({position:u.style.position,display:u.style.display}),u.style.display="block"}for(n.width=e[t+"Width"],n.height=e[t+"Height"],i=0,r=a.length;i<r;
1i++){(u=a[i]).style.display=l[i].display}}return n},getChildConts:function(e,t){for(var n=[].slice.call(this.getAll(e,t)),i=[];n.length!=i.length;){for(var r=n.pop(),o=!1,a=n.length-1;a>=0;a--){var s=n[a];if(this.isAncestor(s,r)){o=!0;break}}o||(i.push(r),n.unshift(r))}return i},childrenByCont:function(e,t,n){for(var i=this.getChildConts(e,n),r=[],o=0;o<i.length;o++)i[o].childNodes.forEach(function(e){e.matches&&e.matches(t)&&r.push(e)});return r}},n){s.event={listeners:[],unloadListeners:[],domreadyListeners:[],bind:function(e,t,n,i){if(e&&t&&n){var r={element:e,type:t,etype:t,handler:n,options:i=i||{}},o=i.scope||e,a=i.args;r.fn=function(e){n.call(o,e,a)};var s=t.indexOf(".");-1!=s&&(r.etype=t=t.substring(s+1)),"unload"===t&&this.unloadListener?this.unloadListeners.push(r):(e.addEventListener?e.addEventListener(t,r.fn,!1):e.attachEvent&&e.attachEvent("on"+t,r.fn),this.listeners.push(r),"unload"===t&&i.scope==this&&(this.unloadListener=r))}},unbind:function(e,t,n){if(e&&"string"==typeof t)if(n){var i="unload"===t?this.unloadListeners:this.listeners,r=this._getListenerIndex(i,e,t,n);r>-1&&this._removeListener(r,i)}else this._removeListeners(e,t)},purge:function(e){for(var t=this.listeners.length;t--;){var n=this.listeners[t];n&&(n.element===e||s.dom.isAncestor(e,n.element))&&this._removeListener(t,this.listeners)}},target:function(e){return this._getHTMLNode(e.target||e.srcElement)},relatedTarget:function(e){var t=e.relatedTarget;return t||("mouseout"==e.type?t=e.toElement:"mouseover"==e.type&&(t=e.fromElement)),this._getHTMLNode(t)},_getHTMLNode:function(e){for(;e&&3==e.nodeType;)e=e.parentNode;return e},dispatch:function(e,n,i,o){"string"==typeof e&&(o=i,i=n,n=e,e=t);var a=function(e){var t=null;return"function"==typeof CustomEvent?t=new CustomEvent(n,{detail:e,bubbles:!0,capture:!!o}):(t=r.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,e),t}(i);e.dispatchEvent(a)},fireEvent:function(e,t){if(document.createEventObject){var n=document.createEventObject();return e.fireEvent("on"+t,n)}return(n=document.createEvent("HTMLEvents")).initEvent(t,!0,!0),e.dispatchEvent(n)},pageOffset:function(){if(r){var e=!r.compatMode||"CSS1Compat"==r.compatMode?r.documentElement:t;return function(t){return t.type.match(/(click|mouse|menu|drag)/i)?{x:t.pageX||t.clientX+e.scrollLeft,y:t.pageY||t.clientY+e.scrollTop}:null}}}(),clientOffset:function(){if(r){(!r.compatMode||"CSS1Compat"==r.compatMode)&&r.documentElement;return function(e){return e.type.match(/(click|mouse|menu)/i)?{x:e.pageX?e.pageX-o.pageXOffset:e.clientX,y:e.pageY?e.pageY-o.pageYOffset:e.clientY}:null}}}(),isRightClick:function(e){return e.button&&2==e.button||e.which&&3==e.which},mousescroll:function(e){},wheelDelta:function(){return type.match(/(dommousescroll|mousewheel)/i)?e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3:null},isDOMLoaded:function(e){e||(e=r);return(i&&-1!=navigator.userAgent.indexOf("MSIE 10")?/complete/:/interactive|loaded|complete/).test(e.readyState)},callOnLoad:function(e,t){t||(t=r),this.isDOMLoaded(t)?e():this.bind(t,"DOMContentLoaded",e)},checkDOMReady:function(){var e,t,n=function(t){if(!t||"DOMContentLoaded"!=t.type&&"load"!=t.type){if(r.readyState)if(/loaded|complete/.test(r.readyState))i();else if("function"==typeof r.documentElement.doScroll){try{e||r.documentElement.doScroll("left")}catch(t){return}i()}}else i()},i=function(){e||(e=!0,r.removeEventListener&&r.removeEventListener("DOMContentLoaded",n,!1),r.onreadystatechange=null,"undefined"!==t&&clearInterval(t),t=null,s.event._domready())};r&&(r.addEventListener?r.addEventListener("DOMContentLoaded",n,!1):(r.onreadystatechange=n,o.onload=n,t=setInterval(n,5)))},ready:function(e,t){this.domreadyListeners.push(function(){e.call(t||d)})},_domready:function(){for(var e=0,t=this.domreadyListeners.length;e<t;e++)try{this.domreadyListeners[e]()}catch(e){}},_getListenerIndex:function(e,t,n,i){for(var r=e.length;r--;){var o=e[r];if(o&&o.element===t&&n===o.type&&o.handler===i)return r}return-1},_removeListeners:function(e,t){for(var n=this.listeners.length;n--;){var i=this.listeners[n];i&&i.element===e&&("function"==typeof t&&i.handler===t||"string"==typeof t&&t===i.type)&&this._removeListener(n,this.listeners)}},_removeListener:function(e,t){var n=t[e];if(t.splice(e,1),"unload"!=n.etype){var i=n.element;i.removeEventListener?i.removeEventListener(n.etype,n.fn,!1):i.detachEvent&&i.detachEvent("on"+n.etype,n.fn)}n.fn=null,n.handler=null,n=null},_unload:function(e){e=e||o.event;var t,n;for(t=0,n=this.unloadListeners.length;t<n;t++){var i=this.unloadListeners[t];if(i)try{i.fn(e)}catch(e){}i.fn=null,i.handler=null}for(t=this.listeners.length;t--;)this._removeListener(t,this.listeners)}};s.dcAjax={get:function(e){e.url=u(e.url),s.ajax.get(e)},post:function(e){e.url=u(e.url),s.ajax.post(e)}};function u(e){return e.startsWith("/dcapp/")||(e="/dcapp"+e),stand_alone_path+"/siteapps"+e}s.ajax={error:function(e){s.ajax.errorOptions=e},setDynamicHeaderModifier:function(e){s.ajax.dynamicHeaderModifier=e},errorTest:null,post:function(e){return e.method="POST",this.request(e)},get:function(e){return e.method="GET",this.request(e)},put:function(e){return e.method="PUT",this.request(e)},del:function(e){return e.method="DELETE",this.request(e)},request:function(e){var t=e.url;if(t){var n=e.method||"GET",i=e.sync||!1,r=e.params||{},o=e.headers=e.headers||{},a=e.dynamicHeaderModifier||s.ajax.dynamicHeaderModifier;0!=e.dynamicHeaderModifier&&a&&a(e);var l=e.handler,u=e.error,c=e.errorHandler,d=u&&u.condition,f=e.args,h=this.listener,p=this._getTransport();i||(p.onreadystatechange=function(){if(4==p.readyState){var e=!0;if(h&&(e=h.call(p)),e&&l)try{!function(e,t){var n=s.ajax.errorOptions;
1return t||(t=n&&n.condition&&n.condition),!(!t||!t.call(e))}(p,d)?l.call(p,f):c?c.call(p,f):s.ajax.errorOptions&&s.ajax.errorOptions.handler?s.ajax.errorOptions.handler.call(p,f):l.call(p,f)}catch(e){}p=null}});var m;if("object"==typeof r){var g=[];for(var v in r)g.push(encodeURIComponent(v)+"="+encodeURIComponent(r[v]));g.length>0&&(m=g.join("&"))}else"string"==typeof r&&(m=r);"GET"===n&&m&&(t+=(t.indexOf("?")+1?"&":"?")+m),p.open(n,t,!i);for(var y in o)p.setRequestHeader(y,o[y]);return"GET"!==n&&(e.bodyJSON?(p.setRequestHeader("Content-Type","application/json;charset=UTF-8"),m=JSON.stringify(e.bodyJSON)):e.formData instanceof FormData?m=e.formData:p.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8")),e.credential&&(p.withCredentials=!0),p.send(m),i?p:void 0}},_getTransport:function(){if(o.XMLHttpRequest)return new XMLHttpRequest;if(o.ActiveXObject)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){throw new Exception("Browser not supported")}}}},s.event.bind(o,"unload",s.event._unload,{scope:s.event}),s.event.checkDOMReady(),s.CX=function(e,t){function n(e){return"String"===o(e)?e:JSON.stringify(e)}function i(e){var t=null;try{t=JSON.parse(e)}catch(t){return e}return t}function r(e){var t=o(e);if("HTMLIFrameElement"===t)return e.contentWindow;if("global"===t||"Window"===t||"Object"===t)return e;throw new Error("Provide a valid target !!")}function o(e){return Object.prototype.toString.call(e).match(/^\[object (\w+)\]$/)[1]}function a(t){this.ctx=t.ctx||e,this.origin=t.targetOrigin,this.target=t.target,this.winHandler=t.winHandler,this.handlers={},this.targetReady=-1!==s.indexOf(t.targetOrigin),this.queuedMsgs=[],this.initialise(),l.push(this)}var s=[],l=[];return e.addEventListener("load",function n(){var i=t.getElementsByTagName("iframe");parent&&parent!==e&&parent.postMessage("CX_load__"+this.location.origin,"*");for(var r=i.length-1;r>=0;r--)i[r].contentWindow.postMessage("CX_load__"+this.location.origin,"*");t.removeEventListener("DOMContentLoaded",n)}),e.addEventListener("message",function(e){if(a.defaultHandlers){var t=i(e.data);if($IS.object(t)){if(!a.defaultHandlers[t.requestId])return;if(!a.defaultHandlers[t.requestId].handler)return;!function(e,t){var n;return!(!(n=t&&t.condition?t.condition:a.errorOptions&&a.errorOptions.condition)||!n.call(e))}(t,a.defaultHandlers[t.requestId].error)?a.defaultHandlers[t.requestId].handler.call(t,a.defaultHandlers[t.requestId].args):a.defaultHandlers[t.requestId].errorHandler?a.defaultHandlers[t.requestId].errorHandler.call(t,a.defaultHandlers[t.requestId].args):a.errorOptions&&a.errorOptions.handler?a.errorOptions.handler.call(t,a.defaultHandlers[t.requestId].args):$E.dispatch(document,"lib:xhrError",{responseText:t.responseText})}else if(/^CX_load__/.test(e.data)){s.push(e.origin);for(var n=l.length-1;n>=0;n--)l[n].origin===e.origin&&(l[n].targetReady=!0,l[n].dispatchQueuedMsg(),l.splice(n,1))}}}),a.prototype._={},a.prototype.initialise=function(){this.ctx.addEventListener("message",function(e){var t=null;this.origin===e.origin&&(t=this._.unserialize(e.data),this.winHandler&&this.winHandler.call(this,e,t.data),"Object"===this._.getType(t)&&t.msgType&&this.handlers[t.msgType]&&this.handlers[t.msgType].forEach(function(n){n.call(this,e,t.data)}))}.bind(this))},a.prototype._.getType=o,a.prototype._.serialize=n,a.prototype._.unserialize=i,a.prototype._.getTargetWindow=function(e){var t=this.getType(e);if("HTMLIFrameElement"===t)return e.contentWindow;if("global"===t)return e;throw new Error("Provide a valid target !!")},a.prototype.dispatchQueuedMsg=function(){for(var e=0,t=this.queuedMsgs.length;e<t;e++)this.dispatchMessage(this.queuedMsgs[e].msgType,this.queuedMsgs[e].data);this.queuedMsgs=null},a.prototype.dispatchMessage=function(e,t){var n={msgType:e,data:t};this.targetReady?this._.getTargetWindow(this.target).postMessage(this._.serialize(n),this.origin):this.queuedMsgs.push(n)},a.prototype.bind=function(e,t){this.handlers[e]||(this.handlers[e]=[]),this.handlers[e].push(t)},a.prototype.unbind=function(e,t){if(this.handlers[e]){for(var n=this.handlers[e].length-1;n>=0;n--)this.handlers[e][n]===t&&this.handlers[e].splice(n,1);0===this.handlers.messageType.length&&delete this.handlers.messageType}},a.initDefaultChannel=function(t,n,r){a.defaultChannel={target:t,targetOrigin:n,defaultHandler:r},a.defaultHandlers={},e.addEventListener("message",function(e){var t=i(e.data);-1!==a.defaultChannel.targetOrigin.indexOf(e.origin)&&"default-channel"===t.msgType&&a.defaultChannel.defaultHandler({method:t.cxType,data:t.data,requestId:t.requestId})}.bind(a.defaultChannel))},a.error=function(e){a.errorOptions=e},a.post=function(e){this.request(e,"post")},a.get=function(e){this.request(e,"get")},a.put=function(e){this.request(e,"put")},a.delete=function(e){this.request(e,"delete")},a.window_open=function(e){this.request(e,"window_open")},a.request=function(e,t){var i=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}();a.defaultHandlers[i]={handler:e.handler,error:e.error,errorHandler:e.error&&e.errorHandler,args:e.args};var o={cxType:t,requestId:i,msgType:"default-channel",data:e};r(a.defaultChannel.target).postMessage(n(o),a.defaultChannel.targetOrigin)},a.dispatch=function(e){r(a.defaultChannel.target).postMessage(n(e),a.defaultChannel.targetOrigin)},a}(o,document),null===o.$||void 0===o.$?o.$=s.dom.selector.bind(s.dom):s.dollar=o.$,window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)}),s.dom.matches=function(e,t){if(void 0!==e&&1===e.nodeType){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].slice.call(document.querySelectorAll(e)).indexOf(this)}).call(e,t)}},s.noConflict=function(){o.$=s.dollar},s.util={getQueryParams:function(e){var t=e||o.location.search;t=decodeURIComponent(t.replace(/\+/g," "));var n={};if(URLSearchParams){new URLSearchParams(t).forEach(function(e,t){n[t]=e})}else for(var i=/([^?=&]+?)=([^&]+)/g;null!==(param=i.exec(t));)n[param[1]]=param[2];return n}},o.$U=s.util,o.$D=s.dom,o.$E=s.event,o.$X=s.ajax,o.$CX=s.CX,o.$DX=s.dcAjax,o.$IS=s.is}else o.$IS=s.is,o.$D=s.dom}();var requirejs,require,define;!function(ba){function G(e){return"[object Function]"===K.call(e)}function H(e){return"[object Array]"===K.call(e)}function v(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function T(e,t){if(e){var n;for(n=e.length-1;-1<n&&(!e[n]||!t(e[n],n,e));n-=1);}}function t(e,t){return fa.call(e,t)}function m(e,n){return t(e,n)&&e[n]}function B(e,n){for(var i in e)if(t(e,i)&&n(e[i],i))break}function U(e,n,i,r){return n&&B(n,function(n,o){!i&&t(e,o)||(!r||"object"!=typeof n||!n||H(n)||G(n)||n instanceof RegExp?e[o]=n:(e[o]||(e[o]={}),U(e[o],n,i,r)))}),e}function u(e,t){return function(){return t.apply(e,arguments)}}function ca(e){throw e}function da(e){if(!e)return e;var t=ba;return v(e.split("."),function(e){t=t[e]}),t}function C(e,t,n,i){return t=Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e),t.requireType=e,t.requireModules=i,n&&(t.originalError=n),t}function ga(e){function n(e,t,n){t=t&&t.split("/");var i,r,o,a,s,l,u,c,d=A.map,f=d&&d["*"];if(e){for(r=(e=e.split("/")).length-1,A.nodeIdCompat&&Q.test(e[r])&&(e[r]=e[r].replace(Q,"")),"."===e[0].charAt(0)&&t&&(r=t.slice(0,t.length-1),e=r.concat(e)),r=e,o=0;o<r.length;o++)"."===(a=r[o])?(r.splice(o,1),o-=1):".."===a&&0!==o&&(1!=o||".."!==r[2])&&".."!==r[o-1]&&0<o&&(r.splice(o-1,2),o-=2);e=e.join("/")}if(n&&d&&(t||f)){o=(r=e.split("/")).length;e:for(;0<o;o-=1){if(s=r.slice(0,o).join("/"),t)for(a=t.length;0<a;a-=1)if((n=m(d,t.slice(0,a).join("/")))&&(n=m(n,s))){i=n,l=o;break e}!u&&f&&m(f,s)&&(u=m(f,s),c=o)}!i&&u&&(i=u,l=c),i&&(r.splice(0,l,i),e=r.join("/"))}return(i=m(A.pkgs,e))?i:e}function i(e){z&&v(document.getElementsByTagName("script"),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===D.c
1ontextName)return t.parentNode.removeChild(t),!0})}function r(e){var t=m(A.paths,e);if(t&&H(t)&&1<t.length)return t.shift(),D.require.undef(e),D.makeRequire(null,{skipMap:!0})([e]),!0}function o(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function a(e,t,i,r){var a,s,l=null,u=t?t.name:null,c=e,d=!0,f="";return e||(d=!1,e="_@r"+(P+=1)),e=o(e),l=e[0],e=e[1],l&&(l=n(l,u,r),s=m(j,l)),e&&(l?f=s&&s.normalize?s.normalize(e,function(e){return n(e,u,r)}):-1===e.indexOf("!")?n(e,u,r):e:(f=n(e,u,r),e=o(f),l=e[0],f=e[1],i=!0,a=D.nameToUrl(f))),i=!l||s||i?"":"_unnormalized"+(F+=1),{prefix:l,name:f,parentMap:t,unnormalized:!!i,url:a,originalName:c,isDefine:d,id:(l?l+"!"+f:f)+i}}function s(e){var t=e.id,n=m(S,t);return n||(n=S[t]=new D.Module(e)),n}function l(e,n,i){var r=e.id,o=m(S,r);!t(j,r)||o&&!o.defineEmitComplete?(o=s(e)).error&&"error"===n?i(o.error):o.on(n,i):"defined"===n&&i(j[r])}function c(e,t){var n=e.requireModules,i=!1;t?t(e):(v(n,function(t){(t=m(S,t))&&(t.error=e,t.events.error&&(i=!0,t.emit("error",e)))}),i||g.onError(e))}function d(){R.length&&(ha.apply(k,[k.length,0].concat(R)),R=[])}function f(e){delete S[e],delete O[e]}function h(e,t,n){var i=e.map.id;e.error?e.emit("error",e.error):(t[i]=!0,v(e.depMaps,function(i,r){var o=i.id,a=m(S,o);a&&!e.depMatched[r]&&!n[o]&&(m(t,o)?(e.defineDep(r,j[o]),e.check()):h(a,t,n))}),n[i]=!0)}function p(){var e,t,n=(e=1e3*A.waitSeconds)&&D.startTime+e<(new Date).getTime(),o=[],a=[],s=!1,l=!0;if(!w){if(w=!0,B(O,function(e){var u=e.map,c=u.id;if(e.enabled&&(u.isDefine||a.push(e),!e.error))if(!e.inited&&n)r(c)?s=t=!0:(o.push(c),i(c));else if(!e.inited&&e.fetched&&u.isDefine&&(s=!0,!u.prefix))return l=!1}),n&&o.length)return e=C("timeout","Load timeout for modules: "+o,null,o),e.contextName=D.contextName,c(e);l&&v(a,function(e){h(e,{},{})}),n&&!t||!s||!z&&!ea||_||(_=setTimeout(function(){_=0,p()},50)),w=!1}}function y(e){t(j,e[0])||s(a(e[0],null,!0)).init(e[1],e[2])}function b(e){e=e.currentTarget||e.srcElement;var t=D.onScriptLoad;return e.detachEvent&&!Y?e.detachEvent("onreadystatechange",t):e.removeEventListener("load",t,!1),t=D.onScriptError,(!e.detachEvent||Y)&&e.removeEventListener("error",t,!1),{node:e,id:e&&e.getAttribute("data-requiremodule")}}function E(){var e;for(d();k.length;){if(null===(e=k.shift())[0])return c(C("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));y(e)}}var w,x,D,$,_,A={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},S={},O={},q={},k=[],j={},L={},I={},P=1,F=1;return $={require:function(e){return e.require?e.require:e.require=D.makeRequire(e.map)},exports:function(e){if(e.usingExports=!0,e.map.isDefine)return e.exports?j[e.map.id]=e.exports:e.exports=j[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return m(A.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},x=function(e){this.events=m(q,e.id)||{},this.map=e,this.shim=m(A.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},x.prototype={init:function(e,t,n,i){i=i||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=u(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=i.ignore,i.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,D.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();D.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;L[e]||(L[e]=!0,D.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id;t=this.depExports;var i=this.exports,r=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,1>this.depCount&&!this.defined){if(G(r)){if(this.events.error&&this.map.isDefine||g.onError!==ca)try{i=D.execCb(n,r,t,i)}catch(t){e=t}else i=D.execCb(n,r,t,i);if(this.map.isDefine&&void 0===i&&((t=this.module)?i=t.exports:this.usingExports&&(i=this.exports
1)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else i=r;this.exports=i,this.map.isDefine&&!this.ignore&&(j[n]=i,g.onResourceLoad)&&g.onResourceLoad(D,this.map,this.depMaps),f(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,i=e.id,r=a(e.prefix);this.depMaps.push(r),l(r,"defined",u(this,function(r){var o,d;d=m(I,this.map.id);var h=this.map.name,p=this.map.parentMap?this.map.parentMap.name:null,v=D.makeRequire(e.parentMap,{enableBuildCallback:!0});this.map.unnormalized?(r.normalize&&(h=r.normalize(h,function(e){return n(e,p,!0)})||""),l(r=a(e.prefix+"!"+h,this.map.parentMap),"defined",u(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),(d=m(S,r.id))&&(this.depMaps.push(r),this.events.error&&d.on("error",u(this,function(e){this.emit("error",e)})),d.enable())):d?(this.map.url=D.nameToUrl(d),this.load()):(o=u(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),o.error=u(this,function(e){this.inited=!0,this.error=e,e.requireModules=[i],B(S,function(e){0===e.map.id.indexOf(i+"_unnormalized")&&f(e.map.id)}),c(e)}),o.fromText=u(this,function(n,r){var l=e.name,u=a(l),d=M;r&&(n=r),d&&(M=!1),s(u),t(A.config,i)&&(A.config[l]=A.config[i]);try{g.exec(n)}catch(e){return c(C("fromtexteval","fromText eval for "+i+" failed: "+e,e,[i]))}d&&(M=!0),this.depMaps.push(u),D.completeLoad(l),v([l],o)}),r.load(e.name,v,o,A))})),D.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){O[this.map.id]=this,this.enabling=this.enabled=!0,v(this.depMaps,u(this,function(e,n){var i,r;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[n]=e,i=m($,e.id))return void(this.depExports[n]=i(this));this.depCount+=1,l(e,"defined",u(this,function(e){this.defineDep(n,e),this.check()})),this.errback&&l(e,"error",u(this,this.errback))}i=e.id,r=S[i],!t($,i)&&r&&!r.enabled&&D.enable(e,this)})),B(this.pluginMaps,u(this,function(e){var t=m(S,e.id);t&&!t.enabled&&D.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){v(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},D={config:A,contextName:e,registry:S,defined:j,urlFetched:L,defQueue:k,Module:x,makeModuleMap:a,nextTick:g.nextTick,onError:c,configure:function(e){e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/");var t=A.shim,n={paths:!0,bundles:!0,config:!0,map:!0};B(e,function(e,t){n[t]?(A[t]||(A[t]={}),U(A[t],e,!0,!0)):A[t]=e}),e.bundles&&B(e.bundles,function(e,t){v(e,function(e){e!==t&&(I[e]=t)})}),e.shim&&(B(e.shim,function(e,n){H(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=D.makeShimExports(e)),t[n]=e}),A.shim=t),e.packages&&v(e.packages,function(e){var t;t=(e="string"==typeof e?{name:e}:e).name,e.location&&(A.paths[t]=e.location),A.pkgs[t]=e.name+"/"+(e.main||"main").replace(ia,"").replace(Q,"")}),B(S,function(e,t){!e.inited&&!e.map.unnormalized&&(e.map=a(t))}),(e.deps||e.callback)&&D.require(e.deps||[],e.callback)},makeShimExports:function(e){return function(){var t;return e.init&&(t=e.init.apply(ba,arguments)),t||e.exports&&da(e.exports)}},makeRequire:function(r,o){function l(n,i,u){var d,f;return o.enableBuildCallback&&i&&G(i)&&(i.__requireJsBuild=!0),"string"==typeof n?G(i)?c(C("requireargs","Invalid require call"),u):r&&t($,n)?$[n](S[r.id]):g.get?g.get(D,n,r,l):(d=a(n,r,!1,!0),d=d.id,t(j,d)?j[d]:c(C("notloaded",'Module name "'+d+'" has not been loaded yet for context: '+e+(r?"":". Use require([])")))):(E(),D.nextTick(function(){E(),(f=s(a(null,r))).skipMap=o.skipMap,f.init(n,i,u,{enabled:!0}),p()}),l)}return o=o||{},U(l,{isBrowser:z,toUrl:function(e){var t,i=e.lastIndexOf("."),o=e.split("/")[0];return-1!==i&&("."!==o&&".."!==o||1<i)&&(t=e.substring(i,e.length),e=e.substring(0,i)),D.nameToUrl(n(e,r&&r.id,!0),t,!0)},defined:function(e){return t(j,a(e,r,!1,!0).id)},specified:function(e){return e=a(e,r,!1,!0).id,t(j,e)||t(S,e)}}),r||(l.undef=function(e){d();var t=a(e,r,!0),n=m(S,e);i(e),delete j[e],delete L[t.url],delete q[e],T(k,function(t,n){t[0]===e&&k.splice(n,1)}),n&&(n.events.defined&&(q[e]=n.events),f(e))}),l},enable:function(e){m(S,e.id)&&s(e).enable()},completeLoad:function(e){var n,i,o=m(A.shim,e)||{},a=o.exports;for(d();k.length;
1){if(null===(i=k.shift())[0]){if(i[0]=e,n)break;n=!0}else i[0]===e&&(n=!0);y(i)}if(i=m(S,e),!n&&!t(j,e)&&i&&!i.inited){if(A.enforceDefine&&(!a||!da(a)))return r(e)?void 0:c(C("nodefine","No define call for "+e,null,[e]));y([e,o.deps||[],o.exportsFn])}p()},nameToUrl:function(e,t,n){var i,r,o;if((i=m(A.pkgs,e))&&(e=i),i=m(I,e))return D.nameToUrl(i,t,n);if(g.jsExtRegExp.test(e))i=e+(t||"");else{for(i=A.paths,r=(e=e.split("/")).length;0<r;r-=1)if(o=e.slice(0,r).join("/"),o=m(i,o)){H(o)&&(o=o[0]),e.splice(0,r,o);break}i=e.join("/"),i=("/"===(i+=t||(/^data\:|\?/.test(i)||n?"":".js")).charAt(0)||i.match(/^[\w\+\.\-]+:/)?"":A.baseUrl)+i}return A.urlArgs?i+(-1===i.indexOf("?")?"?":"&")+A.urlArgs:i},load:function(e,t){g.load(D,e,t)},execCb:function(e,t,n,i){return t.apply(i,n)},onScriptLoad:function(e){("load"===e.type||ja.test((e.currentTarget||e.srcElement).readyState))&&(N=null,e=b(e),D.completeLoad(e.id))},onScriptError:function(e){var t=b(e);if(!r(t.id))return c(C("scripterror","Script error for: "+t.id,e,[t.id]))}},D.require=D.makeRequire(),D}var g,x,y,D,I,E,N,J,s,O,ka=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,la=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,Q=/\.js$/,ia=/^\.\//;x=Object.prototype;var K=x.toString,fa=x.hasOwnProperty,ha=Array.prototype.splice,z=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),ea=!z&&"undefined"!=typeof importScripts,ja=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Y="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),F={},q={},R=[],M=!1;if(void 0===define){if(void 0!==requirejs){if(G(requirejs))return;q=requirejs,requirejs=void 0}void 0!==require&&!G(require)&&(q=require,require=void 0),g=requirejs=function(e,t,n,i){var r,o="_";return!H(e)&&"string"!=typeof e&&(r=e,H(t)?(e=t,t=n,n=i):e=[]),r&&r.context&&(o=r.context),(i=m(F,o))||(i=F[o]=g.s.newContext(o)),r&&i.configure(r),i.require(e,t,n)},g.config=function(e){return g(e)},g.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=g),g.version="2.1.15",g.jsExtRegExp=/^\/|:|\?|\.js$/,g.isBrowser=z,x=g.s={contexts:F,newContext:ga},g({}),v(["toUrl","undef","defined","specified"],function(e){g[e]=function(){var t=F._;return t.require[e].apply(t,arguments)}}),z&&(y=x.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0])&&(y=x.head=D.parentNode),g.onError=ca,g.createNode=function(e){var t=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return t.type=e.scriptType||"text/javascript",t.charset="utf-8",t.async=!0,t},g.load=function(e,t,n){var i=e&&e.config||{};if(z)return(i=g.createNode(i,t,n)).setAttribute("data-requirecontext",e.contextName),i.setAttribute("data-requiremodule",t),!i.attachEvent||i.attachEvent.toString&&0>i.attachEvent.toString().indexOf("[native code")||Y?(i.addEventListener("load",e.onScriptLoad,!1),i.addEventListener("error",e.onScriptError,!1)):(M=!0,i.attachEvent("onreadystatechange",e.onScriptLoad)),i.src=n,J=i,D?y.insertBefore(i,D):y.appendChild(i),J=null,i;if(ea)try{importScripts(n),e.completeLoad(t)}catch(i){e.onError(C("importscripts","importScripts failed for "+t+" at "+n,i,[t]))}},z&&!q.skipDataMain&&T(document.getElementsByTagName("script"),function(e){if(y||(y=e.parentNode),I=e.getAttribute("data-main"))return s=I,q.baseUrl||(E=s.split("/"),s=E.pop(),O=E.length?E.join("/")+"/":"./",q.baseUrl=O),s=s.replace(Q,""),g.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):[s],!0}),define=function(e,t,n){var i,r;"string"!=typeof e&&(n=t,t=e,e=null),H(t)||(n=t,t=null),!t&&G(n)&&(t=[],n.length&&(n.toString().replace(ka,"").replace(la,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),M&&((i=J)||(N&&"interactive"===N.readyState||T(document.getElementsByTagName("script"),function(e){if("interactive"===e.readyState)return N=e}),i=N),i&&(e||(e=i.getAttribute("data-requiremodule")),r=F[i.getAttribute("data-requirecontext")])),(r?r.defQueue:R).push([e,t,n])},define.amd={jQuery:!0},g.exec=function(b){return eval(b)},g(q)}}(this);var zsTools=function(){"use strict";function e(e){var n=e.split(":"),i=t(n[0]);e&&i&&(this[i]=n.length>2?function(e){return e.splice(1).join(":").trim()}(n):t(n[1]))}function t(e){return e&&e.trim()||""}function n(e,t,n){function i(e){return c.test(e)}function r(){var e;return 1==p.length?e=f:(g&&p.pop(),e=Array.prototype.concat.apply([],p)),e.join("")}function o(n){return t.p+(n||0)<e.length}var a,s,d,f=[],h=f,p=[f],m=!1,g=!1,v=!1;for(++t.p;o();t.p++){if("\\"!=d||o(1)||t.p++,(d=e[t.p])===n)return r();if(v){if(d!=n&&!i(d))throw"Character(s) after string consumption"}else{if(i(d)){if(!a&&!m)continue;g||(h=[],p.push(h)),g=!0}else{if(a){if(m&&d===s){v=!0;continue}}else{if(!(m||d!==l&&d!==u)){m=!0,s=d;continue}a=d}g=!1}h.push(d)}}return r()}function i(){var e=window.console;e.log.apply(e,arguments)}function r(){this.map={},this.key={},this.rev={}}function o(e){return e.__zsuid||e.__zsUniqueId}var a=";",s=":",l="'",u='"',c=/\s/;r.prototype={get length(){return Object.keys(this.map).length},add:function(e,t){if("object"!=typeof e)throw new TypeError("Only Objects Supp
1orted");var n=o(e),i=t&&o(t);this.map[n]=e,t&&(this.key[i]=n,this.rev[n]=i)},remove:function(e){if(e){var t=o(e),n=this.rev[t];delete this.map[t],n&&(delete this.key[n],delete this.rev[t]),this.dispatch&&0==this.length&&this.dispatch()}},get:function(e){var t=this.key[o(e)];return t&&this.map[t]},removeByKey:function(e){this.remove(this.get(e))},has:function(e){return this.map.hasOwnProperty(o(e))},clear:function(){var e=this;Object.keys(this.map).forEach(function(t){e.remove(e.map[t])})},onEmpty:function(e,t){this.dispatch=e.bind(t)},isEmpty:function(){return 0===this.length},forEach:function(e,t){var n=this;Object.keys(this.map).forEach(function(i){e.call(t||null,n.map[i])})}},function(){if(void 0===Object.prototype.__zsUniqueId){var e=0;Object.defineProperty(Object.prototype,"__zsUniqueId",{get:function(){return void 0===this.__zsuid&&Object.defineProperty(this,"__zsuid",{value:++e}),this.__zsuid}})}}(),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),i=this;do{for(t=n.length;--t>=0&&n.item(t)!==i;);}while(t<0&&(i=i.parentElement));return i}),Element.prototype.isSameNode||(Element.prototype.isSameNode=function(e,t){return $D.isNode(e)&&e===t}),Array.prototype.filter||(Array.prototype.filter=function(e,t){if("function"!=typeof e||!this)throw new TypeError;var n=this.length>>>0,i=new Array(n),r=0,o=-1;if(void 0===t)for(;++o!==n;)o in this&&e(this[o],o,this)&&(i[r++]=this[o]);else for(;++o!==n;)o in this&&e.call(t,this[o],o,this)&&(i[r++]=this[o]);return i.length=r,i});return{oldParser:{parse:function(t){if(!t)return null;var n={};return t.split(";").forEach(e,n),n}},attrParser:{parse:function(e){if("string"!=typeof e)return null;try{for(var t,r,o={},l={p:-1};l.p<e.length-1&&""!=(t=n(e,l,s));)r=n(e,l,a),o[t]=r;return o}catch(e){i("Syntax Error while parsing input : ",e)}}},ZSHashSet:r,log:i}}(),zsUtils=function(){function e(e){function t(){i=!0,$E.unbind(document,"contentWindow:initted",t),e()}"canvas"===window.zs_rendering_mode&&!i&&window.frameElement&&"pagecanvas"==window.frameElement.id?$E.bind(document,"contentWindow:initted",t):$E.callOnLoad(e)}function t(e){var t=new RegExp(e+"=[^;]*"),n=document.cookie,i=t.exec(n);if(i){var r=i[0].split("=");return unescape(r[1])}return null}function n(e){var t,i;Object.freeze(e);for(i in e)t=e[i],e.hasOwnProperty(i)&&"object"==typeof t&&!Object.isFrozen(t)&&n(t)}var i=!1;return e(function(){return!0}),{onDocumentReady:e,debounce:function(e,t,n){var i;return function(){var r=this,o=arguments,a=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(r,o)},t),a&&e.apply(r,o)}},deepFreeze:n,onImageLoad:function(e,t){function n(e){s++,e.complete?i():($E.bind(e,"load",i),$E.bind(e,"error",i),/MSIE|Trident/.test(navigator.userAgent)&&(e.src=e.src))}function i(){s--,$E.unbind(this,"load",i),$E.unbind(this,"error",i),r()}function r(){a||o&&0===s&&(a=!0,t())}if(!e||!t)throw new TypeError("Element and callback both are necessary");var o,a,s=0;e&&"IMG"==e.tagName&&n(e);for(var l=e.getElementsByTagName("IMG"),u=0;u<l.length;u++)n(l[u]);o=!0,r()},getCookie:t,getCSRFHeader:function(){return{"X-ZCSRF-TOKEN":"csrfp="+t("csrfc")}}}}(),transitionEnd=function(){var e,t=document.createElement("div"),n={transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(n.hasOwnProperty(e)&&void 0!==t.style[e])return n[e]}(),animationEnd=function(){var e,t=document.createElement("div"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in n)if(n.hasOwnProperty(e)&&void 0!==t.style[e])return n[e]}(),defaults={remove:!0,callback:function(){}},distType={short:100,medium:200,long:350},animation={do:function(e,t,n){e.style.removeProperty("transition"),_merge(n=n||{}),_css(e,t),n.remove&&e.addEventListener(transitionEnd,function(t,i,r,o){for(var a in i)i.hasOwnProperty(a)&&t.style.removeProperty(_getVendorPropertyName(a));r.callback&&r.callback(e,i,n,o)}.bind(null,e,t,n))},animateUsingName:function(e,t,n,i){var r;e.style.removeProperty("animation"),i&&e.addEventListener("animationstart",i),_merge(n=n||{}),_css(e,t),n.remove&&(r=function(t,o,a,s){for(var l in o)o.hasOwnProperty(l)&&t.style.removeProperty(_getVendorPropertyName(l));a.callback&&a.callback(e,o,n,s),t.removeEventListener(animationEnd,r),i&&t.removeEventListener("animationstart",i)}.bind(null,e,t,n),e.addEventListener(animationEnd,r))},setFadeFinal:function(e,t){this.forceRepaint(e),this.do(e,{transition:"transform "+t,opacity:1}
1,{remove:!0,callback:function(e,t,n){e.style.opacity=1}})},fadeIn:function(e,t){this.do(e,{opacity:0}),this.setFadeFinal(e,t)},fade_in:function(e,t){this.fadeIn(e,t)},forceRepaint:function(e){e.offsetHeight},setFinalState:function(e,t){this.forceRepaint(e),this.do(e,{transition:"all "+t,opacity:1,transform:"translate3d(0, 0, 0)"},{remove:!0,callback:function(e,t,n){e.style.opacity=1}})},slide_from_top:function(e,t,n){this.do(e,{transform:"translate3d(0, -"+distType[t]+"px, 0)"}),this.setFinalState(e,n)},slide_from_bottom:function(e,t,n){this.do(e,{transform:"translate3d(0, "+distType[t]+"px, 0)"}),this.setFinalState(e,n)},slide_from_right:function(e,t,n){this.do(e,{transform:"translate3d("+distType[t]+"px, 0, 0)"}),this.setFinalState(e,n)},slide_from_left:function(e,t,n){this.do(e,{transform:"translate3d(-"+distType[t]+"px, 0, 0)"}),this.setFinalState(e,n)},appear_from_top:function(e,t){this.do(e,{transform:"translate3d(0, -"+e.clientHeight+"px, 0)"}),this.setFinalState(e,t)},appear_from_bottom:function(e,t){this.do(e,{transform:"translate3d(0, "+e.clientHeight+"px, 0)"}),this.setFinalState(e,t)},appear_from_right:function(e,t){this.do(e,{transform:"translate3d("+e.clientWidth+"px, 0, 0)"}),this.setFinalState(e,t)},appear_from_left:function(e,t){this.do(e,{transform:"translate3d(-"+e.clientWidth+"px, 0, 0)"}),this.setFinalState(e,t)},setExpandFinal:function(e,t){this.forceRepaint(e),this.do(e,{transition:"transform "+t,opacity:1,transform:"scale3d(1, 1, 1)"},{remove:!0,callback:function(e,t,n){e.style.opacity=1}})},expandOut:function(e,t){this.forceRepaint(e),this.do(e,{transition:"transform "+t,opacity:1,transform:"scale3d(1, 1, 1)"},{remove:!0,callback:function(e,t,n){e.style.opacity=1}})},expandOutDown:function(e,t){this.forceRepaint(e),this.do(e,{transition:"transform "+t+" ease",transform:"scale3d(1, 1, 1) translate3d(0, 0, 0)"},{remove:!0,callback:function(e,t,n){e.style.opacity=1}})},setFinalPerspective:function(e){this.forceRepaint(e),this.do(e,{transform:"rotateX(0deg)"})},perspective:function(e,t){e.style.perspective="600px",this.do(e.querySelector("img"),{transform:"rotateX(90deg)","transform-origin":"bottom"}),this.setFinalPerspective(e.querySelector("img"),t)}},INDEXFORDATA=0;"live"===window.zs_rendering_mode&&menuVisibilityHandler(getCookie("serializedPermissionData").split(":")[0]);var zsTools=function(){"use strict";function e(e){var n=e.split(":"),i=t(n[0]);e&&i&&(this[i]=n.length>2?function(e){return e.splice(1).join(":").trim()}(n):t(n[1]))}function t(e){return e&&e.trim()||""}function n(e,t,n){function i(e){return c.test(e)}function r(){var e;return 1==p.length?e=f:(g&&p.pop(),e=Array.prototype.concat.apply([],p)),e.join("")}function o(n){return t.p+(n||0)<e.length}var a,s,d,f=[],h=f,p=[f],m=!1,g=!1,v=!1;for(++t.p;o();t.p++){if("\\"!=d||o(1)||t.p++,(d=e[t.p])===n)return r();if(v){if(d!=n&&!i(d))throw"Character(s) after string consumption"}else{if(i(d)){if(!a&&!m)continue;g||(h=[],p.push(h)),g=!0}else{if(a){if(m&&d===s){v=!0;continue}}else{if(!(m||d!==l&&d!==u)){m=!0,s=d;continue}a=d}g=!1}h.push(d)}}return r()}function i(){var e=window.console;e.log.apply(e,arguments)}function r(){this.map={},this.key={},this.rev={}}function o(e){return e.__zsuid||e.__zsUniqueId}var a=";",s=":",l="'",u='"',c=/\s/;r.prototype={get length(){return Object.keys(this.map).length},add:function(e,t){if("object"!=typeof e)throw new TypeError("Only Objects Supported");var n=o(e),i=t&&o(t);this.map[n]=e,t&&(this.key[i]=n,this.rev[n]=i)},remove:function(e){if(e){var t=o(e),n=this.rev[t];delete this.map[t],n&&(delete this.key[n],delete this.rev[t]),this.dispatch&&0==this.length&&this.dispatch()}},get:function(e){var t=this.key[o(e)];return t&&this.map[t]},removeByKey:function(e){this.remove(this.get(e))},has:function(e){return this.map.hasOwnProperty(o(e))},clear:function(){var e=this;Object.keys(this.map).forEach(function(t){e.remove(e.map[t])})},onEmpty:function(e,t){this.dispatch=e.bind(t)},isEmpty:function(){return 0===this.length}
1,forEach:function(e,t){var n=this;Object.keys(this.map).forEach(function(i){e.call(t||null,n.map[i])})}},function(){if(void 0===Object.prototype.__zsUniqueId){var e=0;Object.defineProperty(Object.prototype,"__zsUniqueId",{get:function(){return void 0===this.__zsuid&&Object.defineProperty(this,"__zsuid",{value:++e}),this.__zsuid}})}}(),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),i=this;do{for(t=n.length;--t>=0&&n.item(t)!==i;);}while(t<0&&(i=i.parentElement));return i}),Element.prototype.isSameNode||(Element.prototype.isSameNode=function(e,t){return $D.isNode(e)&&e===t}),Array.prototype.filter||(Array.prototype.filter=function(e,t){if("function"!=typeof e||!this)throw new TypeError;var n=this.length>>>0,i=new Array(n),r=0,o=-1;if(void 0===t)for(;++o!==n;)o in this&&e(this[o],o,this)&&(i[r++]=this[o]);else for(;++o!==n;)o in this&&e.call(t,this[o],o,this)&&(i[r++]=this[o]);return i.length=r,i});return{oldParser:{parse:function(t){if(!t)return null;var n={};return t.split(";").forEach(e,n),n}},attrParser:{parse:function(e){if("string"!=typeof e)return null;try{for(var t,r,o={},l={p:-1};l.p<e.length-1&&""!=(t=n(e,l,s));)r=n(e,l,a),o[t]=r;return o}catch(e){i("Syntax Error while parsing input : ",e)}}},ZSHashSet:r,log:i}}(),zpThemeSocialIcon=function(){"use strict";function e(){var e,i;(a=document.querySelector("[data-theme-topbar]"))&&(i=(a=a.children[0]).querySelector("[data-socialicon-parent]")),i?(e=(s=i).querySelector("[data-socialicon-inner-parent]"))&&e.children.length&&function(){var e,i=0,r=a.children;for(e=0;e<r.length;e++)i+=r[e].offsetWidth;a.offsetWidth&&i>a.offsetWidth-40&&(t(),n(i,a.offsetWidth-100))}():(s=document.querySelector("[data-socialicon-parent]"))&&(e=s.querySelector("[data-socialicon-inner-parent]"))&&e.children.length&&s.offsetHeight>window.innerHeight&&(t(),n(s.offsetHeight,window.innerHeight-100))}function t(){(r=i("div")).setAttribute("data-more-socialicon-parent","");var e=i("span");$D.append(r,e),(o=i("ul")).setAttribute("data-more-socialicon-inner-parent",""),$D.append(r,o)}function n(e,t){for(var n=s.querySelector("[data-socialicon-inner-parent]");e>t;){var i=n.lastChild;e-=i.offsetWidth,o.prepend(i)}$D.append(s,r)}function i(e){return document.createElement(e)}var r,o,a,s;window.innerWidth>992&&e(),$E.bind(window,"resize",function(t){var n=document.querySelector("[data-more-socialicon-parent]");if(window.innerWidth<=992){if(n){for(var i=document.querySelector("[data-socialicon-inner-parent]"),r=o.children;r.length;)$D.append(i,r[0]);n.remove()}}else if(n){for(i=s.querySelector("[data-socialicon-inner-parent]"),r=o.children;r.length;)$D.append(i,r[0]);n.remove(),e()}else e()})}(),zpThemeMenu=function(){"use strict";function e(e,t){return t&&e&&e.isSameNode(t)}function t(e,t,n,i,r,o){this.p1x=e,this.p1y=t,this.p2x=n,this.p2y=i,this.p3x=r,this.p3y=o,this.ul=null,this.over=null,this.watching=null}function n(e){return e<P}function i(e,t){return e==t?null:ke[e>=P?t<P?"d2m":"d2d":t>=P?"m2d":"m2m"]}function r(e,t){var n="["+e;return t&&(n+='="'+t+'"'),n+="]"}function o(e){var t=0,n=$D.getAll("[data-header]",Se);n&&n.length>0&&"none"!=n[0].getAttribute("data-header")&&(t=n[0].clientHeight),window.IntersectionObserver?function(){for(var e=$D.getAll("."+ye,document),t={root:null,rootMargin:"0px",threshold:[0,.2,.4,.5,.6,.8,1]},n=0;n<e.length;n++)if(e[n].id&&""!=e[n].id){var i=e[n],r=new IntersectionObserver(b,t);r.observe(i)}(r=new IntersectionObserver(b,t)).observe(document.body.firstElementChild)}():$E.bind(Te,"scroll",E),$E.bind(Te,"hashchange",function(e){var n=Te.location.hash,i=document.getElementById(n.replace(/^#/,""));if(i){$D.getAll(qe,document).forEach(function(e){R(null,e,!0)}),Te.scrollTo(0,$D.offset(i).top-t)}}),function(){for(var e,t=$D.getAll("[data-zp-theme-menu]",document.body),n=0;e=t[n];n++)!function(e){var t=$D.getAll("ul[data-zs-menu-container] >li >a .theme-menu-icon svg",e),n=$D.getAll("ul[data-zs-submenu-container] svg",e);t.forEach(function(t){t.setAttribute("height",e.getAttribute(Ee)),t.setAttribute("width",e.getAttribute(be))}
1),n.forEach(function(t){t.setAttribute("height",e.getAttribute(xe)),t.setAttribute("width",e.getAttribute(we))})}(e);$D.getAll("[data-megamenu-content] span[data-theme-megamenu-icon] svg",document.body).forEach(function(e){e.setAttribute("height",t[0].getAttribute($e)),e.setAttribute("width",t[0].getAttribute(De))})}()}function a(t,n){var i,r,o=this,a=$D.get("ul",o),l=a&&a.firstElementChild,u=(a&&a.lastElementChild,$D.get("ul",n));U.init(u);var c=!1,d=function(e,t,n){var i,r=!1;return function(){function o(){clearTimeout(i)}function a(){r||(r=!0,o(),e.apply(s,l))}var s=this,l=arguments,u=n&&!i;return o(),i=setTimeout(function(){i=null,n||a()},t),u&&a(),{cancel:o,now:a}}}(function(){if(c=!0,F.forEach(function(t){clearTimeout(t.val);var n=t.el;n.contains(o)||e(n,o)||s.call(n,t)}),F.clear(),l){i=k(n);var r=N(),d=h(l),f=(function(e){(e=e||Te).document.documentElement.clientHeight}(),$D.findParentByTag(o,"ul"));(f&&$D.hasClass(f,i[G])||d.right+_e>r||d.left+_e<0)&&$D.addClass(a,i[G]),U.bound(a,i[G],o),U.vertex(t),U.watch(u)}},je,!0);r=d(),U.bounce=null,l&&$E.bind(o,"mouseleave",function e(t){c||(i=k(n),r.cancel());var l={el:o,ul:a,watch:u,data:i};l.val=setTimeout(s.bind(o,l),Ne),F.add(l,o),$E.unbind(o,"mouseleave",e)})}function s(e){clearTimeout(e.val);var t=e.ul;$D.removeClass(t,e.data[G]),F.remove(e)}function l(){for(var e=0,t=0;t<arguments.length;t++)e+=function(e){return Number(e.replace("px",""))}(arguments[t]);return e}function u(t,n,i,r){if(e(t.lastElementChild,n)){var o=n&&window.getComputedStyle(n),a=n&&window.getComputedStyle(t.firstElementChild),s=i.firstElementChild.cloneNode(!0);s.style.visibility="hidden","none"==s.style.display&&(s.style.display=""),O(s,"."+r[K],r,!1),$D.insertAfter(s,n);try{if(M(t.firstElementChild,s))return!0;if(1===i.childElementCount){var u=function(e){var t=window.getComputedStyle(e);return l(t.marginLeft,t.marginRight,t.paddingLeft,t.paddingRight,c(t.borderRight),c(t.borderLeft))+h(e).width}(s),d=h(t),f=d.right-(h(n).left-l(o.marginLeft,o.paddingLeft,c(o.borderLeft))),p=h(t.firstElementChild).left-l(a.marginLeft,a.paddingLeft,c(a.borderLeft))-d.left+f>=u;return M(t.firstElementChild,n)&&p}return!1}finally{$D.remove(s)}}}function c(e){return Ce.test(e)?Ce.exec(e)[0]:""}function d(e,t){var n=t.lastElementChild,i=$D.get("a",n);return i.textContent.trim()===e[Q]&&le.test(i.protocol)?(n.setAttribute(de,e[ee]),n):null}function f(e){return document.createElement(e)}function h(e){return e.getBoundingClientRect()}function p(e){var t;try{t=k(e)}catch(e){return}var i=N(Te),r=$D.get("ul",e);if(r&&0!=r.childElementCount){r.setAttribute(ve,"");n(i=N(Te))?(d(t,r)&&q(r,t),y(e,t),g(e,r,t)):(S(r,t),m(e,r,t)),$E.bind(e,"zsMenu:rewrap",j.bind(null,e));var o,a,s=Te[ge];s&&(o=function(e,t){var n='li > a[href="'+t+'"]',i="ul["+ve+"] > "+n;return $D.get(i,e)||$D.get(n,e)}(e,s))&&(a=$D.findParentByTag(o,"li"))&&t.active&&$D.addClass(a,t.active)}else if(n(i)){var l=$D.get("[data-zs-mobile-header-slide-open]"),u=A(ue,t);(u||l)&&y(e,t),u&&$E.bind(u,"click",R,{args:e})}}function m(e,t,n){$D.getAll("li",t).forEach(function(t){$E.bind(t,"mouseenter",a,{args:e})})}function g(e,t,n){var i=A(ue,n);i&&$E.bind(i,"click",R,{args:e});$D.getAll("."+n[Z],t).forEach(function(t){$E.bind(t,"click",B,{args:e});var n=t.parentElement;"javascript:;"==n.getAttribute("href")&&$E.bind(n,"click",B,{args:e})}),$E.bind(t,"click",v,{args:e})}function v(e,t){var n=e.target;if(n.matches("a")){var i=window.location;i.origin===n.origin&&i.hash===n.hash&&i.pathname===n.pathname&&R(e,t,!0)}}function y(e,t){var n=r(fe,t[ee]),i=$D.get(n);i&&$D.append(i,e)}function b(e,t){e.forEach(function(e){var t=parseFloat(e.intersectionRatio.toFixed(1));if(e.isIntersecting){-1!=(n=He.indexOf(e.target.id))&&(Ie.splice(n,1),He.splice(n,1)),Ie.push(e),He.push(e.target.id)}else if(0==t&&!e.isIntersecting){var n;-1!=(n=He.indexOf(e.target.id))&&(Ie.splice(n,1),He.splice(n,1))}for(var i,r,o=0;o<Ie.length;o++)$(Ie[o].target)&&(!r||r>Ie[o].target.offsetTop)&&(i=Ie[o].target,r=Ie[o].target.offsetTop);if(!i&&Ie.length>0){parseFloat(Ie[0].intersectionRatio.toFixed(1))>.5&&(i=Ie[0].target,r=Ie[0].target.offsetTop)}i&&w(i)})}function E(e){e.preventDefault();for(var t,n=$D.getAll("."+ye,document),i=0;i<n.length;i++)if(n[i].id&&""!=n[i].id&&$(n[i],e)){t=n[i];break}t&&w(t)}function w(e){X&&clearTimeout(X),X=setTimeout(function(){var t=$D.getAll(qe,document);e?t.forEach(function(e,t,n,i){var r=e.id;$D.hasClass(e,ye)||(r="");D(r,t)}.bind(null,e)):t.forEach(x)},50)}function x(e,t,n){D("",e)}function D(e,t){var n;try{n=k(t)}catch(e){return}var i=$D.get("li."+n.active,t);i&&$D.removeClass(i,n.active),e=""!=e?"#"+e:"";var r=Te[ge],o=$D.get('li > a[href="'+r+e+'"]',t);if(o=o||$D.get('li > a[href="'+r+'"]',t)){var a=$D.findParentByTag(o,"li");a&&n.active&&$D.addClass(a,n.active);-1!=parent.window.location.href.indexOf("/zcms/"+window.zs_site_resource_id+"/visualeditor")||(""==e?window.history.replaceState("","",window.location.pathname+window.location.search):window.location.hash!=e&&window.history.replaceState("","",e),"canvas"===window.zs_rendering_mode&&window.frameElement&&!window.frameElement.hasAttribute("data-hidden-frame")&&(""==e?parent.window.history.replaceState("","",parent.window.location.pathname+parent.window.location.search):parent.window.location.hash!=e&&parent.window.history.replaceState("","",e)))}}function $(e,t){return document.documentElement.scrollTop>e.offsetTop-window.innerHeight/2&&document.documentElement.scrollTop<e.offsetTop+e.clientHeight-window.innerHeight/2}function C(e){var t=N(Te),r=i(Oe,t);if(null==r)return n(N(Te))||$D.getAll(qe).forEach(j),!1;var o=$D.getAll(qe);
1switch(r){case ke.d2m:o.forEach(H);break;case ke.m2d:o.forEach(I);break;case ke.d2d:o.forEach(j);break;case ke.m2m:o.forEach(_)}Oe=t}function _(e){var t=k(e),n=A(pe,t),i=t[te];$D.hasClass(n,i)&&$E.dispatch(e,"zsMenu:orientationchange",{menu:e})}function A(e,t,n){return n=n||Se,$D.get(r(e,t[ee]),n)}function S(e,t){var n=A(de,t,e)||d(t,e),i=n&&$D.get("ul",n),r=t[K],o=t[Y]==Me.VER?t[W]:2;if(i){for(;n&&i&&i.firstElementChild&&(t[Y]===Me.HOR?100:o)>e.childElementCount&&(t[Y]===Me.VER||u(e,n,i,t));)$D.insertBefore(n,O(i.firstElementChild,"."+r,t,!1));i&&null==i.firstElementChild&&($E.purge(n),$D.remove(n))}for(;t[Y]===Me.VER&&e.childElementCount>o||t[Y]===Me.HOR&&!M(e.firstElementChild,e.lastElementChild);){if(null==n){var a=T(t);n=a.moreMenu,i=a.moreUl}if(i.firstElementChild?$D.insertBefore(i.firstElementChild,O(n.previousElementSibling,"."+r,t,!0)):($D.append(i,O(e.lastElementChild,"."+r,t,!0)),$D.append(e,n)),e.childElementCount<=o)break}}function T(e){var t=function(e,t){var n=f("a"),i=f("li"),r=f("ul");e[J]&&$D.addClass(r,e[J]),n.innerHTML=e[Q];for(var o=A(ce,e).children,a=0;o&&a<o.length;a++)$D.append(n,o[a].cloneNode());return $D.append(i,n),$D.append(i,r),t&&i.setAttribute(de,e[ee]),i}(e,!0),n=$D.get("ul",t),i=e[K];if(n&&i){var r=$D.get("."+i,t);r&&e[ae]&&$D.addClass(r,e[ae])}return{moreMenu:t,moreUl:n}}function O(e,t,n,i){var r;return e&&t&&(r=$D.get(t,e))&&(i?($D.removeClass(r,n[ae]),$D.addClass(r,n[se])):($D.removeClass(r,n[se]),$D.addClass(r,n[ae]))),e}function q(e,t){var n=A(de,t,e),i=n&&$D.get("ul",n),r=A(ce,t)&&t[K];if(n&&i){for(;i.firstElementChild;)$D.insertBefore(n,O(i.firstElementChild,"."+r,t,!1));$E.purge(n),$D.remove(n)}}function M(e,t){return h(e).top===h(t).top}function k(e){var t=function(e){return zsTools.oldParser.parse(z(e,me))}(e);return t?(Ae.forEach(function(e){t[e.key]=t[e.key]||e.val||""}),t):t}function z(e,t){var n=e.getAttribute(t);return n&&n.trim()}function N(e){return(e=e||Te).document.documentElement.clientWidth}function j(e){var t=k(e),i=$D.get("ul",e);if(i&&0!=i.childElementCount){n(N(Te))||S(i,t)}}function L(e){q($D.get("ul",e),k(e))}function I(e){var t=$D.get("ul",e),n=k(e);!function(e,t,n){var i=A(ue,n);i&&$E.unbind(i,"click",R),$D.getAll("."+n[Z],t).forEach(function(e){$E.unbind(e,"click",B);var t=e.parentElement;"javascript:;"==t.getAttribute("href")&&$E.unbind(t,"click",B)}),$E.unbind(t,"click",v)}(0,t,n),function(e,t){var n=r(he,t[ee]),i=$D.get(n);i&&$D.append(i,e)}(e,n),function(e,t){if(t.childElementCount>Le){for(var n=T(e),i=n.moreMenu,r=n.moreUl;t.children[Le-1];)$D.append(r,O(t.children[Le-1],"."+e[K],e,!0));$D.append(t,i)}}(n,t),setTimeout(function(){S(t,n),m(e,t)},ze)}function H(e){var t=$D.get("ul",e),n=k(e);!function(e,t,n){$D.getAll("li",t).forEach(function(e){$E.unbind(e,"mouseenter",a)})}(0,t),q(t,n),y(e,n),g(e,t,n)}function R(e,t,n){var i=k(t),r=A(pe,i),o=i[te],a=i[ne],s=i[ie],l="zsMenu:burgerIcon:";if($D.hasClass(r,o)){$D.removeClass(r,o),$D.removeClass(t,a),$D.addClass(t,s);for(var u,c=$D.get("ul",t).children,d=i[Z],f=i[oe],h=0;h<c.length;h++)(u=$D.get("."+d,c[h]))&&$D.hasClass(u,f)&&B.call(u,null,t);l+="close"}else n||($D.addClass(r,o),$D.removeClass(t,s),$D.addClass(t,a),l+="open");$E.dispatch(t,l,{menu:t,burgerIcon:r})}function B(e,t){function n(e,t){e&&(e.style.display=t?"block":"none")}if(!e||!e.__actionDone){var i=this;"SPAN"!=i.tagName&&(i=i.children[1]);var r=k(t),o=r[oe],a=r[re],s=$D.findParentByTag(i,"li");if($D.hasClass(i,a)){$D.removeClass(i,a),$D.addClass(i,o);n($D.get("ul",s),!0)}else for(var l=$D.getAll('ul[style="display: block;"]',s),u=$D.getAll("."+o,s),c=0;c<l.length;c++)$D.removeClass(u[c],o),$D.addClass(u[c],a),n(l[c],!1);e&&e.preventDefault(),e&&(e.__actionDone=!0)}}var P,F,U,X,V,W="maxitem",G="position",Y="orientation",J="submenu",Q="moretext",K="nonresponsive-icon-el",Z="responsive-icon-el",ee="id",te="burger-close-icon",ne="animate-open",ie="animate-close",re="open-icon",oe="close-icon",ae="root-icon",se="subtree-icon",le=/^(javascript:|:)?$/,ue="data-zp-burger-clickable-area",ce="data-zp-submenu-icon",de="data-zp-more-menu",fe="data-zp-responsive-container",he="data-zp-nonresponsive-container",pe="data-zp-theme-burger-icon",me="data-zp-theme-menu",ge="zs_resource_url",ve="data-zp-menu-top",ye="zpsection",be="data-nav-menu-icon-width",Ee="data-nav-menu-icon-height",we="data-sub-menu-icon-width",xe="data-sub-menu-icon-height",De="data-mega-menu-icon-width",$e="data-mega-menu-icon-height",Ce=/(\d+(\.\d+)?)px/,_e=15,Ae=[{key:Q,val:"More"}],Se=document,Te=window,Oe=N(Te),qe=r(me),Me=Object.freeze({HOR:"horizontal",VER:"vertical"}),ke=(Object.freeze({mobile:"mobile",desktop:"desktop"}
1),Object.freeze({d2m:"d2m",m2d:"m2d",m2m:"m2m",d2d:"d2d"})),ze=300,Ne=0,je=0,Le=5,Ie=[],He=[],Re=[],Be=!1;t.prototype={init:function(t){function n(){$E.unbind(i.ul,"mouseleave",n),i.ul=null,i.ulClear=setTimeout(function(){F.forEach(s)},Ne)}var i=this;e(t,i.ul)||(clearTimeout(i.ulClear),$E.bind(t,"mouseleave",n),i.ul=t)},has:function(e,t){return function(e,t,n,i,r,o,a,s){var l=[a-n,s-i],u=[r-n,o-i],c=[e-n,t-i],d=l[0]*l[0]+l[1]*l[1],f=l[0]*u[0]+l[1]*u[1],h=l[0]*c[0]+l[1]*c[1],p=u[0]*u[0]+u[1]*u[1],m=u[0]*c[0]+u[1]*c[1],g=1/(d*p-f*f),v=(p*h-f*m)*g,y=(d*m-f*h)*g;return v>=0&&y>=0&&v+y<1}(e,t,this.p1x,this.p1y,this.p2x,this.p2y,this.p3x,this.p3y)},mouseMoved:function(t){var n=!t.target.matches("[data-zp-theme-menu] > ul")&&t.target.closest("li"),i=!1;if(!this.bounce&&n&&!e(n,this.over)){var r=F.get(this.over);r&&s.call(s,r),this.bound($D.get("ul",n),this.pos,n),i=!0}var o=!1;if((i||this.has(t.clientX,t.clientY))&&(o=!0),this.p1x=t.clientX,this.p1y=t.clientY,Be){var a=this.p1x+","+this.p1y+" "+this.p2x+","+this.p2y+" "+this.p3x+","+this.p3y;$D.getById("svg-polygon").setAttribute("points",a)}return o||this.bounce&&(this.bounce.ctrl.now(),this.bounce=null),o},vertex:function(e){this.mouseMoved(e)},bound:function(e,t,n){if(e&&e.firstElementChild){var i=h(e.firstElementChild),r=h(e.lastElementChild),o=!$D.hasClass(e,t);this.p2x=o?i.left:i.right,this.p2y=i.top,this.p3x=o?i.left:i.right,this.p3y=r.bottom,this.over=n,this.pos=t}},watch:function(t){e(t,this.watching)||(this.unwatch(),this.watching=t,this.boundFn=function(e,t,n){var i=(new Date).getTime();return function(){var r=(new Date).getTime();r-i>=e&&(i=r,t.apply(n||null,arguments))}}(0,this.mouseMoved,this),$E.bind(t,"mousemove",this.boundFn),Be&&($D.getById("SVG-DEBUG").style.display=null))},unwatch:function(){var e=this.watching;$E.unbind(e,"mousemove",this.boundFn),this.watching=null,this.boundFn=null,Be&&($D.getById("SVG-DEBUG").style.display="none")},entered:function(t){!this.watching||e(t.closest("ul"),this.over)&&$D.get("ul",t)||this.unwatch()},trace:function(){function e(e){return Se.createElementNS(t,e)}if(Be){var t="http://www.w3.org/2000/svg";if(!$D.getById("SVG-DEBUG")){var n=e("svg");n.id="SVG-DEBUG",n.setAttribute("class","svgelement");var i=e("polygon");i.id="svg-polygon",i.setAttribute("points","200,10 250,190 160,210"),n.append(i),$D.getById("svg-placeholder").append(n)}}}};var Pe=!1;if("undefined"!=typeof zsApp&&zsApp.checkAppStatus())"scrollingElement"in document&&(document.scrollingElement.style.scrollBehavior="smooth"),$E.callOnLoad(function(e){var t=0,n=document.body,i=$D.getAll("[data-header]",n);if(i&&i.length>0&&"none"!=i[0].getAttribute("data-header")&&(t=i[0].clientHeight),window.location.hash&&0!=t){var r=document.getElementById(Te.location.hash.replace(/^#/,""));if(r){function a(){if(V&&clearTimeout(V),t=$D.getAll("[data-header]",n)[0].clientHeight,Re.push($D.offset(r).top),Re.length<10){var e=Re.slice(Re.length-3<0?0:Re.length-3,Re.length).filter(function(e,t,n){return n.indexOf(e)===t});Re.length>4&&1==e.length?(Te.scrollTo(0,$D.offset(r).top-t),clearTimeout(V),V=null,o()):V=setTimeout(a,100)}else V=null,o()}V=setTimeout(a,100)}else o()}else o()});else{"scrollingElement"in document&&(document.scrollingElement.style.scrollBehavior="smooth");var Fe=Te.location.hash.replace(/^#/,"");""!=Fe?($E.bind(document.body,"zsapps:loaded",function(){!function(e){var t=document.getElementById(e),n=0,i=document.body,r=$D.getAll("[data-header]",i);r&&r.length>0&&"none"!=r[0].getAttribute("data-header")&&(n=r[0].clientHeight),t&&Te.scrollTo(0,$D.offset(t).top-n),Pe||(o(),Pe=!0)}(Fe)}),setTimeout(function(){Pe||(o(),Pe=!0)},7e3)):$E.callOnLoad(o)}return zsUtils.onDocumentReady(function(){P=Number(z(Se.body,"data-zp-theme-responive-width"))||992;var e=$D.getAll(qe,Se),t=$D.get(".theme-header",Se);e.length>0&&(e.forEach(p),t&&zsUtils.onImageLoad(t,C),$E.bind(Te,"load",C))}
1),$E.bind(Te,"resize",C),$E.callOnLoad(function(e,n){n=n||Se,$D.getAll(qe,n).length>0&&(F=new zsTools.ZSHashSet,U=new t,Be&&U.trace())}),{init:p,rewrap:j,rewrapAll:function(){for(var e,t=$D.getAll("[data-zp-theme-menu]",document.body),n=0;e=t[n];n++)j(e)},destruct:L,destroy:function(e){L(e),$E.purge(e)}}}(),zpAnimation=function(){"use strict";function e(e){i=new IntersectionObserver(t,{root:null,threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});for(var n=0;n<e.length;n++)i.observe(e[n])}function t(e){e.forEach(function(e){var t=parseFloat(e.intersectionRatio),a=e.target;a.isVisible=function(e,t){return t.height>0}(e.boundingClientRect,e.intersectionRect);var s=a.getAttribute("data-animation-repeat")||"false",l=r.indexOf(e.target),u=o.indexOf(a),c=!1,d=.1;e.rootBounds&&e.boundingClientRect.height/10>e.rootBounds.height&&(d=0),0!=t||e.isIntersecting||a.isVisible?t>=d&&-1==u&&(o.push(a),c=!0):("true"==s&&-1!=l&&r.splice(l,1),-1!=u&&o.splice(u,1)),t>=d&&e.isIntersecting&&c&&-1==l&&(r.push(e.target),a.isVisible&&n(a,function(e){if("canvas"===window.zs_rendering_mode)return;var t=r.indexOf(e),n=e.getAttribute("data-animation-repeat")||"false";"true"==n&&-1!=t&&r.splice(t,1);"true"!=n&&i.unobserve(e)}.bind(null,a)))})}function n(e,t){if("canvas"===window.zs_rendering_mode)for(var n=document.querySelectorAll("[data-animation-name]"),i=0;i<n.length;i++)n[i].style.opacity=1;else e.style.opacity=1;var r=e.getAttribute("data-animation-name");if(r&&""!=r){var o=e.getAttribute("data-animation-duration")||"1s",a={};a["animation-name"]=r,a["animation-duration"]=o;var s={};s.remove=!0,t&&(s.callback=t),animation.animateUsingName(e,a,s)}}var i,r=[],o=[],a=document.querySelectorAll("[data-animation-name]");
1return $E.callOnLoad(function(){if("canvas"!==window.zs_rendering_mode)window.IntersectionObserver&&e(a);else for(var t=0;t<a.length;t++)a[t].style.opacity=1}),{bindAnimationObserver:e,animateElement:n}}(),grid_animate=function(){function e(e){if(e)for(var n,r=function(){i||(i=new IntersectionObserver(t,{threshold:[0,.5,.75,1]}));return i}(),s=0;n=e[s];s++)if(-1==a.indexOf(n)){a.push(n);var l=n.getAttribute("data-grid-animation-name"),u=o[l]?o[l].preAnimateClass:null;if(""!=l&&"none"!=l)for(var c=0,d=n.children.length;c<d;c++)r.observe(n.children[c]),u&&$D.addClass(n.children[c],u)}}function t(e){var t=0;e.forEach(function(e){var n=e.intersectionRatio,r=e.target;r.isVisible=function(e,t){return t.height>0}(e.boundingClientRect,e.intersectionRect);var a=r.parentElement.getAttribute("data-grid-animation-repeat")||"false",u=s.indexOf(r),c=!1;if("true"==a&&0==n){-1!=u&&s.splice(u,1);var d=r.parentElement.getAttribute("data-grid-animation-name"),f=o[d]&&o[d].preAnimateClass||null;f&&$D.addClass(r,f)}else n>=.5&&e.isIntersecting&&-1==u&&r.isVisible&&(c=!0,s.push(r));c&&(t++,l(r,function(e){if("canvas"!==window.zs_rendering_mode){var t=s.indexOf(e),n=e.parentElement.getAttribute("data-grid-animation-repeat")||"false";"true"==n&&-1!=t&&s.splice(t,1),"true"!=n&&i.unobserve(e)}}.bind(null,r),t))})}var n,i,r={row_gallery:'[data-layout-type="row"]',square_gallery:'[data-layout-type="square"]'},o={zoomIn:{preAnimateClass:"gridHide"},rollIn:{preAnimateClass:"gridHide"},flipInY:{preAnimateClass:"gridHide"},flipInX:{preAnimateClass:"gridHide"},bounceIn:{preAnimateClass:"gridHide"},fadeIn:{preAnimateClass:"gridHide"},rotateIn:{preAnimateClass:"gridHide"},lightSpeedIn:{preAnimateClass:"gridHide"}},a=[],s=[],l=function(e,t,n){var i=e.parentElement.getAttribute("data-grid-animation-name");if(i&&""!=i){var r=o[i]&&o[i].preAnimateClass||null,a=e.parentElement.getAttribute("data-grid-animation-duration")||"1s",s=e.parentElement.getAttribute("data-grid-animation-timing"),l={};"same"==s&&(n=0),l["animation-delay"]="random"==s?function(e,t){return Math.floor(Math.random()*(t-e+1))+e+"ms"}(100,1500):function(e){return e?200*e+"ms":"100ms"}(n),l["animation-name"]=i,l["animation-duration"]=a;var u={};u.remove=!0,t&&(u.callback=t);var c=r&&""!=r&&function(e){$D.removeClass(e,r)}.bind(null,e);animation.animateUsingName(e,l,u,c)}};return{bindAnimation:function(t){var i=(r[t]||"")+"[data-grid-animation-name]";"canvas"!==window.zs_rendering_mode&&window.IntersectionObserver&&e(n=document.querySelectorAll(i))},previewGridAnimate:function(e,t){if(e)for(var n,i=[],r=function(e,t){var n=i.indexOf(e);-1!=n&&(i.splice(n,1),0==i.length&&t())},o=e.hasAttribute("data-grid-animation-name")?e:$D.get("[data-grid-animation-name]",e),a=0;n=o.children[a];a++)t?(i.push(n),l(n,r.bind(null,n,t),a)):l(n,null,a)}}}(),portal_user=function(){function e(){var e=JSON.parse(this.responseText).current_user,t=e.user,i=e.site_visibility,r=e.is_zsadmin;if(-1==t.indexOf("null")){document.querySelector("[data-portal-loggedout]").style.display="none",document.querySelector("[data-portal-loggedin]").style.display="block";var o=document.querySelector("[data-portal-loggedin]").querySelector("[data-portal-profile]");o.querySelector("[data-portal-user-name]").innerText=i18n.get("portal.welcome",t);var a=document.querySelector("[data-portal-loggedin]").querySelector("[data-portal-logout]");(0!=i&&4!=i||r)&&(o.target="_blank"),e.is_store_enabled||(o.href=e.profile_url),a.href=e.logout_url}else{var s=document.querySelector("[data-portal-loggedout]");s.style.display="block",document.querySelector("[data-portal-loggedin]").style.display="none";var l="";"/checkout"!=window.location.pathname&&"/cart"!=window.location.pathname||""==window.location.search||(l="?uri="+encodeURIComponent(window.location.pathname+window.location.search)),s.querySelector("[data-portal-signin]").href="/signin"+l,s.querySelector("[data-portal-signup]").href="/signup"+l;var u=window.location.pathname;if(window.zs_resource_type&&parseInt(window.zs_resource_type)==n){l="?uri="+encodeURIComponent(u);var c=document.querySelector("[data-portal-blog-signin]"),d=document.querySelector("[data-portal-blog-signup]");c&&(c.href="/signin"+l,d.href="/signup"+l)}}var f=[10,15,20],h=$D.get("[data-zs-portal-user-dropdown]");if(h)for(var p=0;p<h.children.length;p++)h.children[p].setAttribute("data-index",f[p]);$E.dispatch(document,"portal:loaded")}function t(){window.is_portal_site&&$X.get({url:"/portaluser/getCurrentPortalUser",handler:e}),$E.unbind(window,"DOMContentLoaded",t)}var n=7;
1return $E.callOnLoad(t),{addTab:function(e){if(e){Array.isArray(e)||(e=[e]);var t=$D.get("[data-zs-portal-user-dropdown]");if(t){for(var n=Array.prototype.slice.call(t.children),i=0;i<e.length;i++){var r=e[i];if(!r.tab_url||!r.tab_name)return;var o,a=r.tab_index?r.tab_index:parseInt(t.lastElementChild.getAttribute("data-index"))+1;"link"==r.tab_type?(o='<li data-index="'+a+'"><a href="'+r.tab_url+'"',r.target&&(o+='target="'+r.target+'"'),o+='">'+r.tab_name+"</a></li>"):(o='<li data-tab="'+r.tab_name+'" data-index="'+a+'"><a href="/account/customtabs/'+r.tab_name+'" "',o+='">'+r.tab_name+"</a></li>");var s=document.createElement("div");s.innerHTML=o;var l=s.firstElementChild;n.push(l)}for(n.sort(function(e,t){return parseInt(e.getAttribute("data-index"))-parseInt(t.getAttribute("data-index"))}),t.innerHTML="",i=0;i<n.length;i++)t.appendChild(n[i])}}}}}(),lang_switcher=function(){function e(e){e.preventDefault();var i=this,r=i.getAttribute("data-theme-lang-code"),o=i.closest("[data-theme-lang-container]");if($D.get("[data-theme-lang-label]",o).getAttribute("data-theme-lang-code")!=r){for(var a,s=n.querySelectorAll("[hreflang]"),l=0;l<s.length;l++){var u=s[l],c=r.replace("_","-");if(u.hreflang==c){a=u.getAttribute("href");break}"x-default"==u.hreflang&&"true"==i.getAttribute("data-theme-lang-status")&&s.length>1&&(a=u.getAttribute("href"))}a?t(a):"canvas"===window.zs_rendering_mode?parent.requireFn(["root"],function(e){e.showSubsitePageNotFoundDialogByPath(i.getAttribute("data-theme-lang-path"))}):t(i.getAttribute("data-theme-lang-path"))}else"canvas"===window.zs_rendering_mode&&parent.app.navigate(parent.window.location.pathname)}function t(e){"canvas"===window.zs_rendering_mode?parent.app.navigate(parent.app.data.builder_url+e):window.location.href=e||"/"}var n;return{init:function(t){for(var i=(n=t||document).querySelectorAll("[data-theme-lang-list]"),r=0;r<i.length;r++)i[r].onclick=e}}}();$E.callOnLoad(lang_switcher.init); 2var tabs=function(){function t(t){n($D.getByClass("zptab",t))}function n(t,n){for(var o=0;o<t.length;o++)$E.unbind(t[o],"click",e),$E.bind(t[o],"click",e);t.length>0&&!n&&a(t[0])}function e(t){a(this)}function a(t){t.classList.contains("zptab-active")?window.innerWidth<=992&&(o(t),$D.removeClass(t,"zptab-active")):(o(t),function(t){var n=t.getAttribute("data-content-id"),e=$D.getByDataId(n,document);$D.hasClass(e,"zptab-active-content")||($D.addClass(e,"zptab-active-content"),window.innerWidth<=992&&c(t))}(t))}function o(t){for(var n=$D.findParent(t,"zptabelem-inner-container"),e=$D.getByClass("zptab",n),a=0;a<e.length;a++){var o=e[a];i(t)!=i(o)||$D.hasClass(o,f)?i(t)!=i(o)&&$D.hasClass(o,"zptab-active")&&$D.removeClass(o,"zptab-active"):$D.addClass(o,f)}var c=$D.getByClass("zptab-content",n);for(a=0;a<c.length;a++){var r=c[a];$D.hasClass(r,"zptab-active-content")&&$D.removeClass(r,"zptab-active-content")}}function c(t){var n,e,a;"accordionheader"==t.getAttribute("data-element-type")?(e=(n=t.closest(".zpaccordion-container"))&&n.querySelectorAll(".zpaccordion-content"),a="zpaccordion-active"):(e=(n=t.closest(".zptabs-content-container"))&&n.querySelectorAll(".zptab-content"),a="zptab-active"),e&&e.forEach(function(n){n&&n.addEventListener("transitionend",function(){if($D.hasClass(t,a)&&t.getBoundingClientRect().top<0){var n=document.documentElement.scrollTop||window.scrollY||window.pageYOffset||document.scrollingElement.scrollTop,e=function(t){var n=0;for(;t&&!isNaN(t.offsetTop);)n+=t.offsetTop-t.scrollTop,t=t.offsetParent;return n}(t)-n,o=0,c=document.querySelector("[data-headercontainer]"),i=document.querySelector("[data-megamenu-content-container]");window.innerWidth<=768&&c?o=c.offsetHeight:window.innerWidth>=992&&i&&(o=i.offsetHeight),window.scrollTo(0,n+e-o)}})})}function i(t){return t.getAttribute("data-element-id")}function r(t){s($D.getByClass("zpaccordion",t));var n=t.getAttribute("data-tabs-inactive");null===n&&(n=$D.findParent(t,"zpelem-accordion").getAttribute("data-tabs-inactive")),"true"===n&&u(t)}function s(t,n){for(var e=0;e<t.length;e++)$E.bind(t[e],"click",l);t.length>0&&!n&&d(t[0])}function l(t){this.classList.contains("zpaccordion-active")?u($D.findParent(this,"zpaccordion-container")):(d(this),c(this))}function d(t){!function(t){for(var n,e=$D.findParent(t,"zpaccordion-container").children,a=0;a<e.length;a+=2)(n=e[a]).isSameNode(t)?($D.addClass(n,"zpaccordion-active"),$D.addClass(n.nextElementSibling,"zpaccordion-active-content")):($D.removeClass(n,"zpaccordion-active"),$D.removeClass(n.nextElementSibling,"zpaccordion-active-content"))}(t)}function u(t){t.getElementsByClassName("zpaccordion-active")[0].classList.remove("zpaccordion-active"),t.getElementsByClassName("zpaccordion-active-content")[0].classList.remove("zpaccordion-active-content")}function v(){!function(){for(var n=document.body.querySelectorAll(".zpelement.zpelem-tabs"),e=0;e<n.length;e++)t($D.getByClass("zptabelem-inner-container",n[e])[0])}(),function(){for(var t=document.body.querySelectorAll(".zpelement.zpelem-accordion"),n=0;n<t.length;n++)r($D.getByClass("zpaccordion-container",t[n])[0])}(),$E.unbind(window,"DOMContentLoaded",v)}var f="zptab-active";
2return $E.callOnLoad(v),{changeTab:e,changeAccordion:l,bindTabs:t,bindTabHeaders:n,setTabActive:a,setAccordionActive:d,bindAccordion:r,bindAccordionHeaders:s}}();function startSliders(t){var i=[];$D.getAll("[data-zs-slider]",document.body).forEach(function(e){i.push(t.init(e))}),console.log(i),window.heroInstances=i}function initNewSlider(t){heroInstances.push(zsSlider.init(t))}function initiateSliders(){startSliders(window.zsSlider),window.removeEventListener("DOMContentLoaded",initiateSliders)}function _cs(t,i){return window.getComputedStyle(t)[i]}function round(t){return t}function toNum(t){return parseFloat(t.replace("px",""))}function toVw(t){return 100/document.documentElement.clientWidth*t+"vw"}function _hasClass(t,i){return new RegExp("(\\s|^)"+i+"(\\s|$)").test(t.className)}function refreshZSSlider(t,i){zsSlider.reInitSlider(t,i)}!function(t,i){t.zsSlider=function(){"use strict";function t(t,i){return i||(i=j),i.querySelector(t)}function i(t,i){return i||(i=j),i.querySelectorAll(t)}function e(t,i){return i||(i=j),i.getElementsByClassName(t)}function n(t,i){var e=new RegExp("(\\s|^)"+i+"(\\s|$)");return e.test(t.className)}function s(t,i){n(t,i)||(t.className+=" "+i)}function r(t,i){var e=new RegExp("(\\s|^)"+i+"(\\s|$)");e.test(t.className)&&(t.className=t.className.replace(e," "))}function a(t,i,e){return e===J?t.getAttribute(i):t.setAttribute(i,e)}function o(t,i,e){i.addEventListener(t,e)}function l(t,i,e){i.removeEventListener(t,e)}function d(t,i){return t.hasOwnProperty(i)}function h(t,i){for(var e=t.length-1;e>=0;e--)for(var n in i)d(i,n)&&r(t[e],i[n])}function u(t,i){function e(t){o++,t.complete?n():($E.bind(t,"load",n),$E.bind(t,"error",n),/MSIE|Trident/.test(navigator.userAgent)&&(t.src=t.src))}function n(){o--,$E.unbind(this,"load",n),$E.unbind(this,"error",n),s()}function s(){a||r&&0===o&&(a=!0,i())}if(!t||!i)throw new TypeError("Element and callback both are necessary");var r,a,o=0;t&&"IMG"==t.tagName&&e(t);for(var l=t.getElementsByTagName("IMG"),d=0;d<l.length;d++)e(l[d]);r=!0,s()}function c(t,i){return Number(t)||i}function f(t){}function m(t){}function v(i){var e=i.container;this.sliderCont=e;var n=this.hero=$D.matches(e,A)?e:t(A,e);this._parse(),this.slides=null,this.animateId=null,this.curSlideIndex=0,this.nextSlideIndex=1,this.transitionName=null,this.autoslide=this.hero.hasAttribute(R)&&"true"==this.hero.getAttribute(R).trim(),this.transitionCounter=0,this.slidesCount=null,this.minHeightEl=this[L]?$D.get("."+this[L],e):e,this.sliderInterval=c(a(n,"data-slider-interval"),5e3),this.transitionDuration=c(a(n,"data-transition-time"),1),this.fnRefs={anim:[],links:[],tabs:[],trans:J},this.type==B&&p.call(this,e)}function p(t){var i={controls:"false",controlsPosition:"bottom",gutter:parseInt(a(t,"data-filmstrip_gutter")),itemsCount:parseInt(a(t,"data-filmstrip-itemcount")),responsiveItemsCount:a(t,"data-filmstrip-responsiveitemcount").split(","),itemsSlideBy:"1",loop:"false"};this.filmstripOptions=i;t.querySelector(".zpfilmstrip-outter");var e=t.querySelector(".zpfilmstrip-inner");e||(e=t.querySelector(".zprow"));var n=t.querySelectorAll(".zpfilmstrip-item");n.length<=0&&(n=t.querySelectorAll(".theme-prod-box"));var o,l=t.querySelector(".zpcarousel-arrows-container"),d=(t.querySelector(".zpfilmstrip-title-container"),n.length),h=t.parentNode.querySelector(".filmstrip_loading");if(t&&h){t&&h&&(h.innerHTML=i18n.get("gallery.common.loadingGallery"));var u=t.querySelector(".zpfilmstrip-item img"),c=new Image;c.onload=function(){t&&h&&(h.style.display="none"),I()},c.src=u.src}if(o=window.innerWidth>=992?d>i.itemsCount?i.responsiveItemsCount[0]:d:window.innerWidth>425?d>i.responsiveItemsCount[1]+1?i.responsiveItemsCount[1]:d:d>i.responsiveItemsCount[2]+1?i.responsiveItemsCount[2]:d,i.itemsCount>=d?s(l,"arrow-inactive"):r(l,"arrow-inactive"),"true"==i.loop&&window.innerWidth>=992){if(d>o)var f=o;else f=0;for(var m=j.createDocumentFragment(),v=j.createDocumentFragment(),p=f;p--;){var g=p%f,S=n[g].cloneNode(!0);s(S,"slide-cloned"),v.insertBefore(S,v.firstChild);var C=n[d-1-g].cloneNode(!0);s(C,"slide-cloned"),m.appendChild(C)}e.insertBefore(m,e.firstChild),e.appendChild(v),n=e.children,d=n.length}e.style.width=100/o*d+"%";for(var p=0;p<d;p++)n[p].style.width=100/d+"%"}function I(){for(var t=0;t<V.length;t++)S(V[t].instance);V.length>0&&$E.dispatch(document.body,"slider:orientationchange")}function g(t,i){var e,n=Number(t.style.minHeight.slice(0,-2)),s=$D.hasClass(i.sliderCont,"zpelem-carousel"),r=s&&i.sliderCont.querySelector(".zpcarousel-controller-container");if(r){var a=Number(r.clientHeight),o=Number(window.getComputedStyle(r).marginTop.slice(0,-2)),l=Number(window.getComputedStyle(r).marginBottom.slice(0,-2));e=a+o+l,t.parentElement.style.minHeight=n+e+"px"}else t.parentElement.style.minHeight=n+"px"}function S(t,i,e){if("false"!=!t.resize)if("filmstrip"!=t.type){var n=t.minHeightEl;g(n,t),u(n,function(){var s=e&&{ctx:e,top:e.scrollTop};n.style.minHeight=null,$D.removeClass(n,k),0==K?w(t,0,0,i,s):setTimeout(w.bind(null,t,0,0,i),K,s)})}else i&&i()}function C(t){for(var i=0;i<V.length;i++)if(V[i].container==t)return V[i].instance}function y(t){var i=window.getComputedStyle(t);return function(){for(var t=0,i=0;i<arguments.length;i++)t+=function(t){return Number(t.replace("px",""))}(arguments[i]);return t}(i.marginTop,i.marginBottom,x(i.borderBottom),x(i.borderTop))}function x(t){return Z.test(t)?Z.exec(t)[0]:""}function w(t,i,e,n,s){i=i||0,e=e>0?e:15;var r=t.minHeightEl,a=window.getComputedStyle(r),o=a.minHeight?parseFloat(a.minHeight):0;if(i>e)return $D.addClass(r,k),void b(n);r.style.minHeight=null;var l=function(t,i){var e=null;window.getComputedStyle(i);for(var n=0;n<t.length;n++)e<t[n].scrollHeight&&(e=t[n].scrollHeight+y(t[n]));return e}(t.slides,r);if(""==r.style.minHeight||parseFloat(r.style.minHeight)<l){var d=l+1;
2if(r.style.minHeight=(o>d?o:d)+"px",o+"px"==r.style.minHeight)return $D.addClass(r,k),void b(n);0==K?w(t,i+1,e,n,s):setTimeout(w.bind(this,t,i+1,e,n,s),K)}else $D.addClass(r,k),b(n);return g(r,t),!1}function b(t){t&&t()}var A="[data-zs-slider]",z="data-zs-slides-cont",R="data-zs-autoslide",k="zpapply-height",E="arrow-cont",N="left-arrow",D="right-arrow",F="active-controller",q="controller-cont",O="controller",T="slides-cont",$="active-slide",H="content-cont",L="min-height-el",_="background",B="filmstrip",M=[E,N,D,F,q,O,"slide",$,T,H,_,"type"],U=[L],W={};W[E]="zsslider-arrows-container",W[N]="zsslider-arrow-left",W[D]="zsslider-arrow-right",W[F]="zsslider-controller-active",W[q]="zsslider-controller-container",W[O]="zsslider-controller",W.slide="",W[T]="",W[H]="",W[_]="true",W.type="normal",W[$]="curslide";var G={},P=window,V=[],Z=/(\d+(\.\d+)?)px/,j=document,J=void 0,K=0,Q={slide_right:{in:"slideInLeft",out:"slideOutRight",revIn:"slideInRight",revOut:"slideOutLeft"},slide_left:{in:"slideInRight",out:"slideOutLeft",revIn:"slideInLeft",revOut:"slideOutRight"},slide_down:{in:"slideInDown",out:"slideOutDown",revIn:"slideInUp",revOut:"slideOutUp"},slide_up:{in:"slideInUp",out:"slideOutUp",revIn:"slideInDown",revOut:"slideOutDown"},diffuse:{in:"fadeIn",out:"fadeOut",revIn:"fadeIn",revOut:"fadeOut"},diffuse_left:{in:"fadeInLeft",out:"fadeOutLeft",revIn:"fadeInLeft",revOut:"fadeOutLeft"},diffuse_right:{in:"fadeInRight",out:"fadeOutRight",revIn:"fadeInRight",revOut:"fadeOutRight"}};var X=P.requestAnimationFrame||function(){var t=0;return P.webkitRequestAnimationFrame||P.mozRequestAnimationFrame||function(i){var e,n=(new Date).getTime();return e=Math.max(0,16-(n-t)),t=n+e,setTimeout(function(){i(n+e)},e)}}(),Y=!!(P.requestAnimationFrame||P.webkitRequestAnimationFrame||P.mozRequestAnimationFrame&&P.mozCancelRequestAnimationFrame||P.oRequestAnimationFrame||P.msRequestAnimationFrame),tt=function(t){null!==t&&void 0!==t.value&&(P.cancelAnimationFrame?P.cancelAnimationFrame(t.value):P.webkitCancelAnimationFrame?P.webkitCancelAnimationFrame(t.value):P.webkitCancelRequestAnimationFrame?P.webkitCancelRequestAnimationFrame(t.value):P.mozCancelRequestAnimationFrame?P.mozCancelRequestAnimationFrame(t.value):P.oCancelRequestAnimationFrame?P.oCancelRequestAnimationFrame(t.value):P.msCancelRequestAnimationFrame?P.msCancelRequestAnimationFrame(t.value):clearInterval(t))},it=(function(){var t,i=document.createElement("div"),e={transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in e)if(d(e,t)&&i.style[t]!==J)return e[t]}(),function(){var t,i=document.createElement("div"),e={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in e)if(d(e,t)&&i.style[t]!==J)return e[t]}());v.prototype={start:function(t){var i,n,s,r,l,d=this,t=t||{},h=d[$];try{this.transitionName=a(this.hero,"data-transition")||"slide_left",this.slides=Array.prototype.slice.call(e(this.slide,this.sliderCont)),this.slidesCount=this.slides.length,void 0!==t.slideIndex&&(this.curSlideIndex=t.slideIndex),this.curSlideIndex>=this.slidesCount&&(this.curSlideIndex=this.slidesCount-1);var u=this.curSlideIndex;for(this.initiateSliderNav(),r=0;r<this.slidesCount;r++)this.hookAnimation(this.slides[r],r);this.slidesCount>1&&(this.autoslide&&(this.animateId=this.slideFn()),i=$D.getChildConts("."+this[E],this.sliderCont)[0],n=e(this[D],i)[0],s=e(this[N],i)[0],l=this.nextSlide.bind(this),this.fnRefs.next=l,n&&o("click",n,l),l=this.prevSlide.bind(this),this.fnRefs.prev=l,s&&o("click",s,l)),this.slides&&this.slides.forEach(function(t,i){i==u?($D.addClass(t,h),t.style.visibility="",m(t)):($D.removeClass(t,h),t.style.visibility=d.type==B?"":"hidden",f(t),$D.addClass(t,Q[d.transitionName].out))}),this.setCurSlideNav(),S(this,function(){$E.dispatch(d.hero,"sliderActive:changed",{index:d.curSlideIndex,slide:d.slides[d.curSlideIndex],hero:d.hero})})}catch(t){}},pause:function(t){tt(this.animateId)},hookAnimation:function(t,e){var s=function(t,e,s){var r,o,l,d;if(n(e,s.animationName))for(r=i("[data-animation]",e),l=0,d=r.length;l<d;l++)""!==(o=a(r[l],"data-animation").trim())&&((o=o.split("-"))[1]?animation[o[0]](r[l],o[1],"2s"):animation[o[0]](r[l],"2s"))}.bind(this,e,t);this.fnRefs.anim[e]=s,o(it,t,s)},unHookAnimation:function(t,i){l(it,t,this.fnRefs.anim[i]),this.fnRefs.anim[i]=J}
2,changeTransition:function(t){for(var i=Q[this.transitionName],e=Q[t],n=this.slides,o=n.length-1;o>=0;o--)for(var l in i)d(i,l)&&(this.curSlideIndex===o?(r(n[o],i.in),r(n[o],i.out),r(n[o],i.revIn),r(n[o],i.revOut),s(n[o],e.in)):r(n[o],i[l]));this.transitionName=t,a(this.hero,"data-transition",t)},_parse:function(){function t(t){if(e[t]=i[t]||W[t],1==this.val&&!e[t])throw TypeError("slider option "+t+" is must")}var i=zsTools.oldParser.parse(this.hero.getAttribute("data-zs-slider"))||{},e=this;M.forEach(t,{val:1}),U.forEach(t,{val:0})},restart:function(){tt(this.animateId),this.animateId=this.slideFn()},nextSlide:function(t){if(tt(this.animateId),this.animateId=null,this.type==B){var i=0,e=this.filmstripOptions,n=this.curSlideIndex;n<this.slidesCount-parseInt(e.itemsCount)?i=parseInt(n)+parseInt(e.itemsSlideBy):n==this.slidesCount-parseInt(e.itemsCount)&&(i=0),this.transitionSlide(!1,i)}else this.transitionSlide();t&&t.preventDefault()},prevSlide:function(){if(tt(this.animateId),this.animateId=null,this.type==B){var t=0,i=this.filmstripOptions,e=this.curSlideIndex;e>0?t=parseInt(e)-parseInt(i.itemsSlideBy):0==e&&(t=this.slidesCount-parseInt(i.itemsCount)),this.transitionSlide(!1,t)}else this.transitionSlide(!0)},goToSlide:function(t,i){tt(this.animateId),this.animateId=null,this.transitionSlide(!1,t,i)},slideFn:function(){var t=this.transitionSlide.bind(this);return this.fnRefs.trans=t,function(t,i){function e(){if("undefined"==typeof zs||zs.state.animation){var r=(new Date).getTime(),a=r-n;a>=i&&(t.call(),n=(new Date).getTime()),s.value=X(e)}}if(!Y)return P.setInterval(t,i);var n=(new Date).getTime(),s={};return s.value=X(e),s}(t,this.sliderInterval)},curIndex:function(){return this.curSlideIndex},getNextIndex:function(t){var i=t||this.curSlideIndex;return i===this.slidesCount-1?0:i+1},prevIndex:function(){return 0===this.curSlideIndex?this.slidesCount-1:this.curSlideIndex-1},hookSliderLink:function(t,i){var e=this.showSlide.bind(this,i);this.fnRefs.links[i]=e,o("click",t,e)},hookSliderTab:function(t,i){var e=this.showSlide.bind(this,i);this.fnRefs.tabs[i]=e,o("click",t,e)},unHookSliderLink:function(t,i){l("click",t,this.fnRefs.links[i]),this.fnRefs.links[i]=J},unHookSliderTab:function(t,i){l("click",t,this.fnRefs.tabs[i]),this.fnRefs.tabs[i]=J},setSliderAttrs:function(){var t,i,n=e(this[T],this.sliderCont)[0];if(n.setAttribute(z,""),this.slides.length>0)for(var s=(t=e(this[H],this.sliderCont)).length-1;s>=0;s--)t[s].setAttribute("data-zs-content-cont","");(i=$D.getChildConts("."+this[E],this.sliderCont)[0]).setAttribute("data-zs-slider-arrow-cont",""),e(this[N],i)[0].setAttribute("data-zs-slider-left-arrow",""),e(this[D],i)[0].setAttribute("data-zs-slider-right-arrow",""),"false"!==this[_]&&this.hero.setAttribute("data-zs-slider-bg","")},initiateSliderNav:function(){var t,e,n=i("."+this[O],this.sliderCont),s=i(".zs-slider-tab",this.sliderCont);for(t=0,e=n.length;t<e;t++)this.hookSliderLink(n[t],t);for(t=0,e=s.length;t<e;t++)this.hookSliderTab(s[t],t)},unbindSliderNav:function(){var t=i("."+this[O],this.sliderCont),e=i(".zs-slider-tab",this.sliderCont);t.forEach(this.unHookSliderLink.bind(this)),e.forEach(this.unHookSliderTab.bind(this))},setCurSlideNav:function(){for(var e=i("."+this[O],this.sliderCont),n=t("."+this[q],this.sliderCont),o=t("."+this[E],this.sliderCont),l=this[F],d=i(".zs-slider-tab",this.sliderCont),h=e.length-1;h>=0;h--)h===this.curSlideIndex?(s(e[h],l),d[h]&&s(d[h],l),a(this.hero,"data-currentslide-index",h)):(r(e[h],l),d[h]&&r(d[h],l));n&&(e.length<2?(n.style.display="none",o.style.display="none"):(n.style.display=null,o.style.display=null))},showSlide:function(t){if(this.curSlideIndex!==t){var i=this.curSlideIndex>t;tt(this.animateId),this.animateId=null,this.transitionSlide(i,t)}},transitionSlide:function(t,n,r){var a,o=[this.slides[this.curSlideIndex]],l=this[$],d=Q[this.transitionName];try{r===J&&(r=!0),t?(a=n!==J?n:this.prevIndex(),o.push(this.slides[a])):(this.nextSlideIndex=n!==J?n:this.getNextIndex(this.curSlideIndex),o.push(this.slides[this.nextSlideIndex])),h(o,d),$D.removeClass(this.slides[this.curSlideIndex],l),f(this.slides[this.curSlideIndex]),t?(s(this.slides[this.curSlideIndex],d.revOut),s(this.slides[a],d.revIn),this.curSlideIndex=a,$D.addClass(this.slides[a],l),this.slides[a].style.visibility="",m(this.slides[a])):(s(this.slides[this.curSlideIndex],d.out),s(this.slides[this.nextSlideIndex],d.in),this.curSlideIndex=this.nextSlideIndex,$D.addClass(this.slides[this.nextSlideIndex],l),this.slides[this.nextSlideIndex].style.visibility="",m(this.slides[this.nextSlideIndex])),function(t){var e,n,s=i("[data-animation]",t);for(e=0,n=s.length;e<n;e++)s[e].style.opacity=0}(this.slides[this.curSlideIndex]),!this.animateId&&r&&this.autoslide&&(this.animateId=this.slideFn()),this.setCurSlideNav(),this.type==B&&(e(this[T],this.sliderCont)[0].style.transform="translate3d("+-100/this.slidesCount*n+"%,0,0)"),$E.dispatch(this.hero,"sliderActive:changed",{index:this.curSlideIndex,slide:this.slides[this.curSlideIndex],hero:this.hero})}catch(t){}},changeTransitionDuration:function(t){for(var i=this.slides.length-1;i>=0;i--)this.slides[i].style.animationDuration=t;this.transitionDuration=Number(t.replace("s",""),10)},changeTimingFn:function(t){for(var i=this.slides.length-1;i>=0;i--)this.slides[i].style.animationTimingFunction=t},changeSlideInterval:function(t){this.sliderInterval=1e3*(parseInt(t,10)+this.transitionDuration),this.restart()},refresh:function(t){this.unbindEvents(),this.type==B&&p.call(this,this.sliderCont),this._parse(),this.start(t)},unbindEvents:function(){var t=$D.getChildConts("."+this[E],this.sliderCont)[0],i=e(this[D],t)[0],n=e(this[N],t)[0];i&&l("click",i,this.fnRefs.next),this.fnRefs.next=J,n&&l("click",n,this.fnRefs.prev),this.fnRefs.prev=J,this.slides.forEac
2h(this.unHookAnimation.bind(this)),this.unbindSliderNav(),h(this.slides,Q[this.transitionName])}},o("orientationchange",P,I),o("resize",P,zsUtils.debounce(I,1e3));G.init=function(t){try{var i=new v({container:t}),e={container:t,instance:i};return V.push(e),i.start(),i}catch(t){}};G.pauseSlider=function(t){tt(t.animateId)},G.clearRequestInterval=tt,G.logHeights=function(t){};G.reInitSlider=function(t,i){var e=C(t);e?e.refresh(i):initNewSlider(t)},G.resize=function(t,i,e){var n=C(t);n&&S(n,i,e)};return G.dispatchActive=function(t){var i=C(t);$E.dispatch(i.hero,"sliderActive:changed",{index:i.curSlideIndex,slide:i.slides[i.curSlideIndex],hero:i.hero})},G.showSlide=function(t,i){C(t).showSlide(i)},G.getInstance=C,G}(document)}(this),zsUtils.onDocumentReady(initiateSliders);function _get(e,t){return t||(t=doc),t.querySelector(e)}function _getAll(e,t){return t||(t=doc),t.querySelectorAll(e)}function _getByClass(e,t){return t||(t=doc),t.getElementsByClassName(e)}function _hasClass(e,t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)}function _addClass(e,t){_hasClass(e,t)||(e.className+=" "+t)}function _removeClass(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");n.test(e.className)&&(e.className=e.className.replace(n," "))}function _attr(e,t,n){return void 0===n?e.getAttribute(t):e.setAttribute(t,n)}function _bind(e,t,n){e.addEventListener(t,n,!1),listeners.push({element:e,type:t,listener:n})}function _unbind(e,t,n){e&&e.removeEventListener(t,n,!1);for(var r=listeners.length-1;r>=0;r--)if(listeners[r].element===e&&listeners[r].type===t&&listeners[r].listener===n){listeners.splice(r,1);break}}function _purge(e){for(var t=listeners.length-1;t>=0;t--)(listeners[t].element.nodeType&&e.contains(listeners[t].element)||e===listeners[t].element)&&_unbind(listeners[t].element,listeners[t].type,listeners[t].listener)}function _hasOwn(e,t){return e.hasOwnProperty(t)}function getRandomArbitrary(e,t){return Math.random()*(t-e)+e}function getRandomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function _getCSS(e,t){return window.getComputedStyle(e)[t]}function _scrollX(e){return(e=e||window).pageXOffset||e.document.documentElement.scrollLeft}function _scrollY(e){return(e=e||window).pageYOffset||e.document.documentElement.scrollTop}function _getOffset(e,t){var n=!1;if(!e)throw new Error("Element to _find offset doesnot exists.");t=t||window;var r=e.getBoundingClientRect();return{top:"true"===n?r.top:r.top+_scrollY(t),left:"true"===n?r.left:r.left+_scrollX(t),width:r.width,height:r.height}}function _box(e){return e.getBoundingClientRect()}var doc=document,listeners=[],createElement=document.createElement.bind(document);var lightbox=function(){"use strict";function t(t){var i=n(this),s=_get('[data-action="fullscreen"] use',i.controlsCont);document.fullScreenElement&&null!==document.fullScreenElement||!document.mozFullScreen&&!document.webkitIsFullScreen?(document.documentElement.requestFullScreen?document.documentElement.requestFullScreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullScreen&&document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT),s.setAttribute("xlink:href","#focus")):e(i)}function e(t){t=t||this;var e=_get('[data-action="fullscreen"] use',t.controlsCont);document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen(),e.setAttribute("xlink:href","#expand")}function i(t){var e=n(this),i=_get('[data-action="zoom"] use',e.controlsCont),s=(e.imageCont,e.items),o=e.curImageIndex;_hasClass(s[o],"hb-zoom_in")?(_removeClass(s[o],"hb-zoom_in"),_addClass(s[o],"hb-zoom_out"),i.setAttribute("xlink:href","#zoom-in")):(_removeClass(s[o],"hb-zoom_out"),_addClass(s[o],"hb-zoom_in"),i.setAttribute("xlink:href","#zoom-out"))}function n(t){for(var e=c.length-1;e>=0;e--)if(c[e].cont&&c[e].cont.contains(t))return c[e]}function s(t){if(this.container=t.cont,this._parseOptions(),this.type=this.options.type,this.remainingAni=2,this.state="closed","fullscreen"===this.type){this.gridItems=[];for(var e,i=[].slice.call(this.container.children),n=0;(e=i[n])&&l(i[n]);n++)_hasClass(e,"hb-grid-hide")||this.gridItems.push(e);this.gridContainer=t.cont,this.bindGridEvents()}else this.cont=t.cont,this.items=_getAll(".hb-lightbox__img-wrapper",this.cont),_addClass(this.cont,"hb-inplace"),this._start(0)}function o(t){n(this).closeLightBox()}function a(t){var e=n(this),i=e.curImageIndex,s=l(e.items[i]);_get('[data-action="download"] a',e.controlsCont).href=s.getAttribute("data-src")}function l(t){return t?"IMG"==t.tagName?t:_get("img",t):null}var h=".hb-lightbox",r="slideOutRight",c=[],d=void 0!==document.createElement("a").download,u=document.documentElement.requestFullScreen||document.documentElement.mozRequestFullScreen||document.documentElement.webkitRequestFullScreen,m=!(window.innerWidth<=768),g=function(){var t,e=document.createElement("div"),i={transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(_hasOwn(i,t)&&void 0!==e.style[t])return i[t]}(),b=function(){var t,e=document.createElement("div"),i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in i)if(_hasOwn(i,t)&&void 0!==e.style[t])return i[t]}();return s.prototype.bindGridEvents=function(){if("false"!=this.options.gridclick)for(var t=this.gridItems,e=0,i=t.length;e<i;e++)_bind(t[e],"click",function(t,e){if(e.preventDefault(),("undefined"==typeof zs||zs.state.animation)&&"opened"!=this.state){this.state="opened";var i=l(this.gridItems[t]),n=i.getAttribute("data-src")||i.src,s=new Image,o=this;s.onload=function(){o._start(t)},s.src=n}}.bind(this,e))},s.prototype._parseOptions=function(){var t={escClose:"true",thumbs:"false",caption:"false",type:"fullscreen","inplace-height":"600px","thumbs-height":"100px","caption-height":"100px",gridclick:"true","thumbs-img-format":".src_t.jpg"};this.container.getAttribute("data-lightbox-options").split(",").forEach(function(e){(e=e.split(":"))[0]=e[0].trim(),e[1]=e[1].trim(),t[e[0]]=e[1]}),this.options=t},s.prototype._start=function(t){var e;"fullscreen"===this.type&&((e=document.createElement("div")).innerHTML='<div class="hb-lightbox__cont"><div class="hb-lightbox__controls"><div class="hb-lightbox__counter"></div><div class="hb-lightbox__buttons"><ul><li data-action="zoom"><svg class="icon"><use xlink:href="#zoom-in" /></svg></li><li data-action="download"><a href="" download><svg class="icon"><use xlink:href="#download" /></svg></a></li><li data-action="fullscreen"><svg class="icon"><use xlink:href="#expand" /></svg></li><li data-action="close"><svg class="icon"><use xlink:href="#cross-out" /></svg></li></ul></div></div><div class="hb-lightbox__images"></div><div class="hb-lightbox__caption"></div><div class="hb-lightbox__thumbs-cont"><div class="hb-lightbox__thumbs"><picture></picture></div></div><div class="hb-lightbox__arrow-nav nav-left hb-lightbox__arrow-1"><svg class="icon"><use xlink:href="#back" /></svg></div><div class="hb-lightbox__arrow-nav nav-right hb-lightbox__arrow-1"><svg class="icon"><use xlink:href="#next" /></svg></div><div class="loader" style="display: none"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"width="24px" height="30px" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;" xml:space="preserve"><rect x="0" y="0" width="4" height="10" fill="#333"><animateTransform attributeType="xml"attributeName="transform" type="translate"values="0 0; 0 20;
2 0 0"begin="0" dur="0.6s" repeatCount="indefinite" /></rect><rect x="10" y="0" width="4" height="10" fill="#333"><animateTransform attributeType="xml"attributeName="transform" type="translate"values="0 0; 0 20; 0 0"begin="0.2s" dur="0.6s" repeatCount="indefinite" /></rect><rect x="20" y="0" width="4" height="10" fill="#333"><animateTransform attributeType="xml"attributeName="transform" type="translate"values="0 0; 0 20; 0 0"begin="0.4s" dur="0.6s" repeatCount="indefinite" /></rect></svg></div><svg xmlns="http://www.w3.org/2000/svg"><symbol viewBox="0 0 18 18" id="cross-out"><title>cross-out</title><path d="M16 3.41L14.59 2 9 7.59 3.41 2 2 3.41 7.59 9 2 14.59 3.41 16 9 10.41 14.59 16 16 14.59 10.41 9"></path></symbol><symbol viewBox="0 0 18 18" id="download"><title>download</title> <path d="M13 9l-4 4-4-4h3V2h2v7h3zM1 12h.86l.112 4.05h14.025l.15-4.05H17v5H1v-5z" fill-rule="nonzero"></path> </symbol><symbol viewBox="0 0 18 18" id="expand"><title>expand</title><path d="M6.16 6.98L1.57 2.39c-.22-.22-.41-.148-.41.173v2.663c0 .318-.26.58-.58.58-.322 0-.58-.258-.58-.578V.578C0 .265.26 0 .578 0h4.65c.314 0 .578.26.578.58 0 .324-.26.58-.58.58H2.563c-.318 0-.398.184-.173.41l4.59 4.59-.82.82zm0 4.02l.82.82-4.59 4.592c-.225.226-.145.408.173.408h2.663c.32 0 .58.258.58.58 0 .32-.264.58-.578.58H.578c-.32 0-.578-.263-.578-.577v-4.65c0-.32.258-.578.58-.578.32 0 .58.263.58.58v2.663c0 .32.19.393.41.173L6.16 11zm5.66-4.02L11 6.16l4.59-4.59c.226-.226.146-.41-.172-.41h-2.662c-.32 0-.58-.256-.58-.58 0-.32.263-.58.577-.58h4.65c.32 0 .578.265.578.578v4.65c0 .32-.256.578-.58.578-.32 0-.58-.262-.58-.58V2.563c0-.32-.188-.393-.408-.173l-4.59 4.59zm0 4.02l4.592 4.59c.22.22.408.15.408-.172v-2.662c0-.318.26-.58.58-.58.324 0 .58.258.58.577v4.65c0 .314-.257.578-.577.578h-4.65c-.314 0-.578-.26-.578-.58 0-.322.26-.58.58-.58h2.663c.318 0 .398-.182.173-.408L11 11.822l.82-.822z" fill-rule="nonzero"></path></symbol><symbol viewBox="0 0 18 18" id="focus"><title>focus</title><path d="M.82 0l4.592 4.59c.22.22.408.15.408-.172V1.756c0-.318.26-.58.58-.58.324 0 .58.258.58.577v4.65c0 .314-.257.578-.577.578h-4.65c-.314 0-.578-.26-.578-.58 0-.322.26-.58.58-.58H4.42c.318 0 .398-.182.173-.408L0 .822.82 0zm0 17.98L0 17.16l4.59-4.59c.226-.226.146-.41-.172-.41H1.756c-.32 0-.58-.256-.58-.58 0-.32.263-.58.577-.58h4.65c.32 0 .578.265.578.578v4.65c0 .32-.256.578-.58.578-.32 0-.58-.262-.58-.58v-2.663c0-.32-.188-.393-.408-.173l-4.59 4.59zM17.16 0l.82.82-4.59 4.592c-.225.226-.145.408.173.408h2.663c.32 0 .58.258.58.58 0 .32-.264.58-.578.58h-4.65c-.32 0-.578-.263-.578-.577v-4.65c0-.32.258-.578.58-.578.32 0 .58.263.58.58V4.42c0 .32.19.393.41.173L17.16 0zm0 17.98l-4.59-4.59c-.22-.22-.41-.148-.41.173v2.663c0 .318-.26.58-.58.58-.322 0-.58-.258-.58-.578v-4.65c0-.313.26-.578.578-.578h4.65c.314 0 .578.26.578.58 0 .324-.26.58-.58.58h-2.663c-.318 0-.398.184-.173.41l4.59 4.59-.82.82z" fill-rule="nonzero"></path></symbol><symbol viewBox="0 0 18 18" id="next"><title>next</title><path d="M0 8h14.105l-5.59-5.59L9.935 1l8 8-8 8-1.41-1.41 5.58-5.59H0" fill-rule="nonzero"></path></symbol><symbol viewBox="0 0 18 18" id="back"><title>prev</title><path d="M17.942 8H3.83l5.59-5.59L8 1 0 9l8 8 1.41-1.41L3.83 10h14.112" fill-rule="nonzero"></path></symbol><symbol viewBox="0 0 18 18" id="zoom-in"><title>zoom-in</title> <path d="M17.604 16.896l-5.173-5.173C13.407 10.586 14 9.113 14 7.5 14 3.916 11.084 1 7.5 1c-1.737 0-3.37.676-4.597 1.904C1.675 4.13 1 5.764 1 7.5 1 11.084 3.916 14 7.5 14c1.612 0 3.086-.594 4.224-1.57l5.173 5.174.707-.708zM7.5 13C4.467 13 2 10.533 2 7.5c0-1.47.57-2.85 1.61-3.89C4.65 2.572 6.03 2 7.5 2 10.533 2 13 4.467 13 7.5S10.533 13 7.5 13zM8 7h2v1H8v2H7V8H5V7h2V5h1v2z" fill-rule="nonzero"></path> </symbol><symbol viewBox="0 0 18 18" id="zoom-out"><title>zoom-out</title> <path d="M17.604 16.896l-5.173-5.173C13.407 10.586 14 9.113 14 7.5 14 3.916 11.084 1 7.5 1c-1.736 0-3.37.676-4.598 1.903C1.675 4.13 1 5.763 1 7.5 1 11.084 3.916 14 7.5 14c1.612 0 3.087-.594 4.224-1.57l5.173 5.174.707-.708zM7.5 13C4.468 13 2 10.533 2 7.5c0-1.47.57-2.85 1.61-3.89C4.648 2.573 6.03 2 7.5 2 10.532 2 13 4.467 13 7.5c0 3.032-2.468 5.5-5.5 5.5zM5 7h5v1H5V7z" fill-rule="nonzero"></path> </symbol></svg></div>',document.body.appendChild(e),document.body.style.overflow="hidden",this.cont=_get(".hb-lightbox__cont",e));var i=this.cont;this.arrowNav=_getAll(".hb-lightbox__arrow-nav",i),this.imageCont=_get(".hb-lightbox__images",i),this.thumbsCont=_get(".hb-lightbox__thumbs",i),this.controlsCont=_get(".hb-lightbox__controls",i),this.captionCont=_get(".hb-lightbox__caption",i),this.counterCont=_get(".hb-lightbox__counter",i),this.curImageIndex=t;var n=0;if("inplace"===this.type?this.controlsCont.style.display="none":"fullscreen"===this.type&&(this.createImageWrappers(t),this.items=_getAll(".hb-lightbox__img-wrapper",this.cont)),this.items.length<2){for(var s=this.arrowNav.length-1;s>=0;s--)this.arrowNav[s].style.display="none";this.counterCont.style.display="none"}var o=this.options;"true"===o.escClose&&(this.boundOnKeyUp=function(t){(t=t||window.event).stopPropagation();var e,i=t.keyCode;27===i?this.closeLightBox():39===i?(e=this.curImageIndex===this.items.length-1?0:this.curImageIndex+1,this.handleNav(null,e,1)
2):37===i&&(e=0===this.curImageIndex?this.items.length-1:this.curImageIndex-1,this.handleNav(null,e,-1))}.bind(this)),"true"!==o.caption&&(this.captionCont.style.display="none"),o.theme&&_addClass(i,o.theme+"_theme"),"fullscreen"===o.type&&(_addClass(i,"hb-lightbox__fullscreen"),_addClass(document.body,"hb-lightbox__fixed-active")),this._bindLightboxEvents(),_addClass(i,"isVisible"),this.items[t].setAttribute("data-hb-current",""),this.changeCaption(t);n=0;"inplace"!==o.type&&(n=_box(this.controlsCont).height),"true"===o.caption&&(o["caption-height"]?n+=Number(o["caption-height"].replace("px","").replace("%","")):"inplace"===o.type&&("inplace"===this.type?n+=_box(this.captionCont).height:n+=100));var a,l=_get(".hb-lightbox__thumbs-cont",this.cont);o.thumbs&&"true"==o.thumbs?(o["thumbs-height"]?n+=a=Number(o["thumbs-height"].replace("px","").replace("%","")):"inplace"===this.type?(a=70,n+=70):(a=100,n+=100),l.style.height=a+"px"):l.style.display="none";var h;if("fullscreen"===this.type?this.imageCont.style.height="calc(100% - "+(n+10)+"px)":this.options["inplace-height"]?this.imageCont.style.height=this.options["inplace-height"]:((h=_box(this.cont.parentElement).width)>670&&(h=670),this.imageCont.style.height=h-n+"px"),"fullscreen"===this.options.type)this.getReady(this.items[t]),o.thumbs&&"true"==o.thumbs&&this.populateThumbs(t,l,a);else{_addClass(this.items[t],"hb-current"),l.style.bottom="-15px",l.style.height=_box(l).height+25+"px";var r=_getAll("img",this.thumbsCont),c=0;this.thumbImgsLenth=r.length;var d=this;for(s=d.thumbImgsLenth-1;s>=0;s--)r[s].complete?(d.options["thumbs-height"]&&(r[s].style.height=d.options["thumbs-height"]),c+=_box(r[s]).width+10,--d.thumbImgsLenth<=0&&(this.thumbsCont.style.width=c+"px")):_bind(r[s],"load",function(){d.options["thumbs-height"]&&(this.style.height=d.options["thumbs-height"]),c+=_box(this).width+10,0==--d.thumbImgsLenth&&(d.thumbsCont.style.width=c+"px")})}this.options.thumbs&&"true"===this.options.thumbs&&this.highlightActiveThumb(t)},s.prototype._bindLightboxEvents=function(){for(var e=this.arrowNav.length-1;e>=0;e--)_bind(this.arrowNav[e],"click",this.handleNav);var n=_get(".hb-lightbox__buttons",this.cont);if("inplace"!==this.type){var s=_get('[data-action="zoom"]',n),l=_get('[data-action="fullscreen"]',n),h=_get('[data-action="download"]',n),r=_get('[data-action="close"]',n);m&&(d||u)?_bind(s,"click",i):s.style.display="none",m&&d?_bind(h,"click",a):h.style.display="none",m&&u?_bind(l,"click",t):l.style.display="none",_bind(r,"click",o),_bind(window,"keyup",this.boundOnKeyUp)}_bind(this.thumbsCont,"click",this.handleThumbsClick),_bind(this.thumbsCont.parentElement,"mousewheel",function(t){var e=this.scrollWidth-this.offsetWidth;this.scrollHeight,this.offsetHeight;(this.scrollLeft+t.deltaX<0||this.scrollLeft+t.deltaX>e)&&(t.preventDefault(),this.scrollLeft=Math.max(0,Math.min(e,this.scrollLeft+t.deltaX)),window.scrollTop=window.scrollTop+t.deltaY)},!1)},s.prototype.go=function(t,e,i){this.positionThumbsCont(t),this.changeCaption(t),this.loadImage(t),this.curImageIndex=t,_bind(e,b,this.handleAnimationEnd.bind(e,this)),_bind(i,b,this.handleAnimationEnd.bind(i,this)),_addClass(e,this.entryAnimation),_addClass(i,this.exitAnimation);_get('[data-action="zoom"] use',this.controlsCont).setAttribute("xlink:href","#zoom-in");var n=_get(".hb-active",this.cont);n&&_removeClass(n,"hb-active");var s=_get('[data-index="'+this.curImageIndex+'"]',this.cont);s&&_addClass(s,"hb-active")},s.prototype.handleNav=function(t,e,i){var o;this instanceof s?o=this:this instanceof s||(t=this,o=n(this));var a;if(a=t&&_hasClass(t,"hb-lightbox__thumbs")?"thumb":i?"key":"arrNav",!(2!==o.remainingAni||e===o.curImageIndex||o.items.length<2)){--o.remainingAni;var l,h,c,d;"key"===a?(d=1===i,l=e):d="thumb"===a?!(o.curImageIndex>e):_hasClass(t,"nav-right"),i?d?(h="slideInRight",c="slideOutLeft"):(h="slideInLeft",c=r):d?(l=isNaN(e)?o.curImageIndex===o.items.length-1?0:o.curImageIndex+1:e,h="slideInRight",c="slideOutLeft"):(l=isNaN(e)?0===o.curImageIndex?o.items.length-1:o.curImageIndex-1:e,h="slideInLeft",c=r);var u=_get('[data-pos="'+l+'"]',o.cont),m=_get('[data-pos="'+o.curImageIndex+'"]',o.cont);o.entryAnimation=h,o.exitAnimation=c,_hasClass(m,"hb-zoom_in")?(_bind(m,b,function t(){_removeClass(this,"hb-zoom_out"),_unbind(this,b,t),o.go(l,u,m)}),_removeClass(m,"hb-zoom_in"),_addClass(m,"hb-zoom_out")):(_removeClass(m,"hb-zoom_out"),_removeClass(m,"hb-zoom_in"),o.go(l,u,m))}},s.prototype.closeLightBox=function(){this.state="closed",document.body.style.removeProperty("overflow");var t=_get(".hb-current img",this.cont);
2if(_removeClass(document.body,"hb-lightbox__fixed-active"),t){var i=t.cloneNode(!0);document.body.appendChild(i),i.className="",i.removeAttribute("style");var n=_getOffset(t);i.style.position="fixed",i.style.left=n.left+"px",i.style.top=n.top-_scrollY()+"px",i.style.width=n.width+"px",i.style.height=n.height+"px",i.offsetHeight;var s,o;"square"===this.gridContainer.getAttribute("data-layout-type")?(s=this.gridItems[this.curImageIndex],o=!0):s=l(this.gridItems[this.curImageIndex]),s=_getOffset(s),i.style.transition="all .3s",i.style.position="fixed",i.style.left=s.left+"px",i.style.top=s.top-_scrollY()+"px",i.style.width=s.width+"px",i.style.height=s.height+"px",o&&(i.style.opacity=0),_bind(i,g,function e(){t=null,_unbind(this,g,e),document.body.removeChild(this)}),"inplace"!==this.type&&(_unbind(window,"keyup",this.boundOnKeyUp),this.boundOnKeyUp=null),_removeClass(this.cont,"isVisible"),_removeClass(document.body,"hb-lightbox__active"),_removeClass(document.body,"hb-lightbox__fixed-active"),_purge(this.cont),this.cont.parentNode.removeChild(this.cont),this.cont=null,e.call(this)}},s.prototype.getReady=function(t){var e=this.gridItems[this.curImageIndex];e=l(e),_addClass(t,"hb-current");var i=_getOffset(e);e.offsetHeight;var n=e.cloneNode(!0);document.body.appendChild(n),n.style.transition="all .4s",n.style.zIndex="9999999999",n.style.position="fixed",n.style.top=i.top-_scrollY()+"px",n.style.left=i.left+"px",n.style.width=i.width+"px",n.style.height=i.height+"px";var s=_getOffset(l(t));t.offsetHeight,_removeClass(t,"hb-current"),n.style.top=s.top-_scrollY()+"px",n.style.left=s.left+"px",n.style.width=s.width+"px",n.style.height=s.height+"px",n.clientHeight,_bind(n,g,function e(){_addClass(t,"hb-current"),_unbind(n,g,e),n.parentNode.removeChild(n)})},s.prototype.populateThumbs=function(t,e,i){function n(){s.options["thumbs-height"]&&(this.style.height=s.options["thumbs-height"]),h+=_box(this).width+10,0==--o&&(h>_box(e).width&&(e.style.bottom="-15px",e.style.height=i+15+"px"),a.style.width=h+"px",s.positionThumbsCont(t))}var s=this,o=this.gridItems.length,a=this.thumbsCont,h=0,r=this.options;this.gridItems.forEach(function(t,e){var i=l(t),s=document.createElement("picture",e),o=document.createElement("img",e);o.setAttribute("data-index",e),o.className="",s.appendChild(o),a.appendChild(s),_bind(o,"load",n);var h=(i.getAttribute("data-src")||i.src).split("/"),c=h.pop(),d=-1!=r["thumbs-img-format"].indexOf("src")?r["thumbs-img-format"].replace("src",c):r["thumbs-img-format"];h.push(d);var u=h.join("/");o.src=u})},s.prototype.createImageWrappers=function(t){for(var e,i,n,s=this.gridItems,o=0,a=s.length;o<a;o++){n='<div class="hb-lightbox__img-wrapper hb-center" data-pos="{pos}"><picture> <img data-src="{link}" src="{src}" alt="{alt}"></picture></div>';var h=l(s[o]),r=h.getAttribute("alt");e=h.getAttribute("data-src")||h.src,i=o==t?h.getAttribute("data-src")||h.src:"",n=n.replace(/{pos}/g,o).replace(/{link}/,e).replace(/{src}/,i).replace(/{caption}/,"").replace(/{alt}/,r),this.imageCont.insertAdjacentHTML("beforeend",n)}this.items=_getAll(".hb-lightbox__img-wrapper",this.imageCont)},s.prototype.loadImage=function(t,e){var i=this.items[t],n=l(i),s=new Image;s.onload=function(){n.src=this.src},s.src=n.getAttribute("data-src"),_addClass(i,"hb-current")},s.prototype.openLightbox=function(t){if((!t||t>=this.gridItems.length)&&(t=0),("undefined"==typeof zs||zs.state.animation)&&"opened"!=this.state){this.state="opened";var e=l(this.gridItems[t]),i=e.getAttribute("data-src")||e.src,n=new Image,s=this;n.onload=function(){s._start(t)},n.src=i}},s.prototype.positionThumbsCont=function(t){if(this.options.thumbs&&"false"!=this.options.thumbs){var e,i=this.thumbsCont,n=_box(i),s=_box(this.cont),o=_get('[data-index="'+t+'"]',i),a=_box(o),l=_get(".hb-lightbox__thumbs-cont",this.cont),h=(_box(l),this.items.length,Math.abs(o.offsetLeft-s.left)/n.width*100),r=s.width*h/100;if(r+a.width>s.width&&(r=s.width-a.width),t<1)e=0;else{var c=a.left-s.left-r;e=l.scrollLeft+c}var d=l.scrollLeft,u=Math.abs(e-d)/10,m=e>d?1:-1,g=0;if(d!=e)var b=setInterval(function(){++g,d=Number((d+m*u).toFixed(4)),g>10?clearInterval(b):l.scrollLeft=d},10)}},s.prototype.changeCaption=function(t){var e;(e="fullscreen"===this.type?_get("figcaption",this.gridItems[t]):_get("figcaption",this.items[t]))&&(this.captionCont.innerHTML=e.innerHTML),this.counterCont.innerHTML=t+1+"/"+this.items.length},s.prototype.handleAnimationEnd=function(t){_purge(this);this.getAttribute("data-pos")===t.curImageIndex+""?(_addClass(this,"hb-current"),_removeClass(this,t.entryAnimation)):(_removeClass(this,"hb-current"),_removeClass(this,t.exitAnimation)),--t.remainingAni<0&&(t.remainingAni=2)},s.prototype.handleActions=function(e){for(var s,o=n(this),l=e.target;!_hasClass(l,"hb-lightbox__buttons");){if(l.hasAttribute("data-action")){s=l.getAttribute("data-action");break}l=l.parentElement}
2switch(s){case"close":o.closeLightBox();break;case"fullscreen":t();break;case"zoom":i();break;case"download":a()}},s.prototype.highlightActiveThumb=function(t,e){var i=_get(".hb-active",this.thumbsCont);i&&_removeClass(i,"hb-active"),e||(e=_get('[data-index="'+t+'"]',this.thumbsCont)),_addClass(e,"hb-active")},s.prototype.handleThumbsClick=function(t){var e=t.target,i=n(e);"IMG"===e.tagName&&i.handleNav(this,Number(e.getAttribute("data-index").trim()))},{getInstance:function(t){for(var e=c.length-1;e>=0;e--)if(c[e].container&&c[e].container.contains(t))return c[e]},init:function(t){for(var e=_getAll(h,t),i=e.length-1;i>=0;i--)c.push(new s({cont:e[i]}))},destroy:function(t){var e=function(t){for(var e=c.length-1;e>=0;e--)if(c[e].container&&c[e].container===t)return e}(t);void 0!==e&&(c[e]=null,c.splice(e,1),_purge(t))}}}();function start(){layout(),lightbox.init(),set_dimension()}function set_dimension(t,e){function i(){for(var t=$D.getAll('[data-element-type="gallery"]'),e=$D.getAll('[data-app-type="socialfeed"]'),i=0;i<t.length;i++)$E.dispatch(t[i],"element:resized");for(i=0;i<e.length;i++)$E.dispatch(e[i],"element:resized")}function n(e){(t||document).querySelectorAll("div.hb-grid-gallery[data-layout-type='"+e+"']").forEach(function(t){t&&t.nextElementSibling&&(t.nextElementSibling.innerHTML=i18n.get("gallery.common.loadingGallery"))})}function o(i){(t||document).querySelectorAll("div.hb-grid-gallery[data-layout-type='"+i+"']").forEach(function(t){t&&t.nextElementSibling&&(t.nextElementSibling.style.display="none")}),t&&e&&e()}n("square"),n("row");var a=(t||document).querySelectorAll('[data-layout-type="square"] img'),r=a.length;a.forEach(function(t,e){var n=new Image;!function(t,e,n){e.onload=function(){var n=e.height,a=e.width;n===a||n>a?(t.style.maxWidth="100%",t.style.height="auto"):(t.style.maxHeight="100%",t.style.width="auto"),0==--r&&(o("square"),i())}}(t,n),n.src=t.src}),grid_animate.bindAnimation("square_gallery");var s=[],l=(a=(t||document).querySelectorAll('[data-layout-type="row"] img')).length;a.forEach(function(t,e){var n=new Image;!function(t,e,n){e.onload=function(){var t=e.height,r=e.width;s[n]={width:r,height:t},0==--l&&(o("row"),function(t){a.forEach(function(e,i){var n=t[i],o=200*n.width/n.height,a=document.createElement("i"),r=e.parentElement.parentElement.parentElement.parentElement;a.style.paddingBottom=n.height/n.width*100+"%",r.style.width=o+"px",r.style.flexGrow=o,e.parentElement.insertBefore(a,e)})}(s),i(),grid_animate.bindAnimation("row_gallery"))},e.onerror=function(){0==--l&&(o("row"),i(),grid_animate.bindAnimation("row_gallery"))}}(0,n,e),n.src=t.src})}var layout=function(){"use strict";function t(t){return window.getComputedStyle(t)}function e(t){return void 0===t}function i(t){return Number(t.replace("px",""))}function n(t,i,n,o){var a,r,s=!1;for(a=0;a<n&&!s;a++)for(r=0;r<o;r++)if(r!==o-1&&a+1!==n&&e(t[a][r])&&e(t[a][r+1])&&e(t[a+1][r])&&e(t[a+1][r+1])){t[a][r]=i,t[a][r+1]=i,t[a+1][r]=i,t[a+1][r+1]=i,s=!0;break}}function o(t,e,i,n,o){var a,r,s=!1;for(a=0;a<i&&!s;a++)for(r=0;r<n;r++)if(o){if(void 0===t[a][r]&&void 0===t[a][r+1]){t[a][r]=e,t[a][r+1]=e,s=!0;break}}else if(void 0===t[a][r]){t[a][r]=e,s=!0;break}}function a(t,e,i,n){var o,a,r=!1;for(o=0;o<i&&!r;o++)for(a=0;a<n;a++)if(void 0===t[o][a]&&o+1<i&&void 0===t[o+1][a]){t[o+1][a]=e,t[o][a]=e,r=!0;break}}function r(t){var e={album_name:_attr(t,"data-album_name")||"",columns:parseInt(_attr(t,"data-columns")),rows:parseInt(_attr(t,"data-rows")),crop_type:_attr(t,"data-crop_type"),enable_caption:_attr(t,"data-enable_caption"),collage_type:_attr(t,"data-collage_type"),style:_attr(t,"data-style")};return isNaN(e.columns)&&(e.columns=5),isNaN(e.rows)&&(e.rows=""),"false"===e.enable_caption?e.enable_caption=!1:"true"===e.enable_caption?e.enable_caption=!0:e.enable_caption=!1,e.collage_type||(e.collage_type="gallery"),e}function s(t,e){this.id=getRandomInt(1e4,999999),this.options=e,this.container=t,this.items=_getByClass("hb-grid-item",t),this.itemsRemaining=this.items.length,this.rCount,this.cCount,this.init()}function l(){d++;var t=JSON.parse(JSON.stringify(c)),e=0;for(var i in t)t.hasOwnProperty(i)&&(t[i].isLikeSquare?e+=4:t[i].isLandScape?getRandomInt(1,2)%2==0?(e+=2,t[i].isTwoCell=!0):e+=1:t[i].isPortrait&&(e+=2));var n=this.options.columns;if(n*Math.ceil(e/n)===e){this.createGrid(t,e);
2for(var o in t)t[o].isLikeSquare?0:t[o].isPortrait?0:t[o].isLandScape&&0}else l.call(this,t)}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var i=0;i<this.length;i++)t.call(e,this[i],i,this)});var h=[];s.prototype.init=function(){function e(){o.checkIfLoadDone()}var n=i(t(document.body).width),o=this;n<=320?this.options.columns=1:n<=480&&(this.options.columns=2);for(var a=this.items.length-1;a>=0;a--)this.items[a].style.display="none",_get("img",this.items[a]).complete?o.checkIfLoadDone():_bind(_get("img",this.items[a]),"load",e)},s.prototype.checkIfLoadDone=function(){this.itemsRemaining--,0===this.itemsRemaining&&this.onLayoutLoad()},s.prototype.onLayoutLoad=function(){this.getDimensions();for(var t=this.items.length-1;t>=0;t--){var e=this.items[t];e.style.display="block",_addClass(e,"zoomIn")}};var c,d=0;return s.prototype.getDimensions=function(){function t(t){var e=100*this.width/this.height;o[t]={w:this.width,h:this.height,isLikeSquare:e>80&&e<140,isLandScape:e>100,isPortrait:e<100},0===--n&&(c=JSON.parse(JSON.stringify(o)),l.call(a))}d=0;for(var e=null,i=null,n=this.items.length,o={},a=this,r=0,s=this.items.length;r<s;r++)e=_get("img",this.items[r]),i=new Image,_bind(i,"load",t.bind(i,r,this)),i.src=e.src},s.prototype.createGrid=function(t,e){var i=this.items;this.imgDimensions=t;var r=this.options.columns,s=Math.ceil(e/r);this.rCount=s,this.cCount=r;for(var h,c=i.length,d=new function(t,e){for(var i=new Array(t),n=0;n<t;n++)i[n]=new Array(e);return i}(s,r),u=0,m=0,f=c;m<f;m++)t[m].isLikeSquare?n(d,m,s,r):t[m].isLandScape?o(d,m,s,r,t[m].isTwoCell):t[m].isPortrait&&a(d,m,s,r);this.matrix=d;for(var g=new Array(c),p=0;p<s;p++)for(h=0;h<r;h++)void 0===g[u=d[p][h]]||null===g[u]?(g[u]={},g[u].startCol=h,g[u].startRow=p,g[u].endCol=h,g[u].endRow=p):(g[u].endCol=h,g[u].endRow=p);this.hasEmptyCell(g).length>0?l.call(this,t):(this.grid=g,this.positionImages(t,e))},s.prototype.positionImages=function(e,n){var o,a=this.grid,r=this.items,s=0,h=0,c=this.options.columns,d=i(t(this.container).width)/i(t(document.documentElement).width)*100/c,u=r.length,m=d/1.3;for(s=0;s<u;s++){if(o=1,!a[s]){l.call(this,e);break}a[s].endCol===c-1&&(o=0),r[s].style.position="absolute",h=a[s].endRow-a[s].startRow+1,r[s].style.height=h*m-1+"vw",h=a[s].endCol-a[s].startCol+1,r[s].style.width=h*d-o+"vw",r[s].style.top=a[s].startRow*m+"vw",r[s].style.left=a[s].startCol*d+"vw"}this.container.style.height=this.rCount*m+"vw"},s.prototype.hasEmptyCell=function(){for(var t=[],e=0;e<this.rCount;e++)for(var i=0;i<this.cCount;i++)void 0!==this.matrix[e]&&void 0!==this.matrix[e][i]||t.push([e,i]);return t},s.prototype.destroy=function(){},function(){for(var t=_getByClass("hb-layout"),e=null,i=null,n=t.length-1;n>=0;n--)"collage"===t[n].getAttribute("data-layout-type")&&(e=r(t[n]),i=new s(t[n],e),h.push(i))}}();$E.callOnLoad(start);var zsApp=function(){"use strict";function e(){document.removeEventListener("DOMContentLoaded",e,!0),p=!0,o(!1)}function n(e){Object.freeze(e)}function t(e,t){var o=(t=t||document).querySelectorAll(l);o=Array.prototype.slice.call(o),t.matches&&t.matches(l)&&o.push(t);var s,a,c;"canvas"!==window.zs_rendering_mode&&"live"!==window.zs_rendering_mode||(h=o.length,d=h);for(var p={},m=o.length-1;m>=0;m--){if(c=o[m],s=c.getAttribute("data-zs-app"),!(a=f[s]))throw"Module not defined in manifest!";if(a.module,!e&&a.containerApp){var g={name:s,app:c,info:{el:c,type:{category:"",label:"App",subType:s,type:"app",containerApp:!0}}};n(g.info),n(g),u.push(g)}p.hasOwnProperty(s)||(p[s]=[]),p[s].push(c)}for(s in p)!function(e,n,t){setTimeout(function(){window[t]?r(n,t):i(e,r.bind(null,n,t))},0)}(s,p[s],f[s].module);0==o.length&&(v=!0)}function r(e,n){for(var t=0;t<e.length;t++)!function(e,n){setTimeout(function(){window[n]&&window[n].init(e,function(e,n){return e.util={hasClass:function(e){return $D.hasClass(e,this)}.bind(n),getData:function(e){return this.getAttribute("data-"+e)}.bind(n)},e.el=n,e.loaded=a.bind(null,e),e}({},e))},0)}(e[t],n)}function o(e,n){var r=t.bind(null,e,n);if(null==f)try{parent&&parent.appManifest&&(f=parent.appManifest,r())}catch(e){}finally{if(null==f){var o="undefined"!=typeof zs_rendering_mode&&"live"==zs_rendering_mode;$X.get({url:o?"/site-conf.json":"/zs-site/assets/v1/json/manifest/app-manifest.json",handler:function(){var e=JSON.parse(this.responseText);f=o?e.apps:e,r()}})}}else{if(!$IS.object(f))throw TypeError("Unexpected AppManifest Value : "+f);r()}}function i(e,n){var t,r,o,i,a="undefined"!=typeof zs_rendering_mode&&"live"==zs_rendering_mode,d=f[e],l=d.module;if(window[d.module])n();else if(o=d.assets.js.site,i=function(e,n,t,r,o){try{if(t){var i=(window||{}).is_rtl_page;"string"==typeof t&&(t=[t]),i&&r&&"string"==typeof r&&t.push(r),i&&r&&"[object Array]"==Object.prototype.toString.call(r)&&t.concat(r);for(var a,d,l,p={count:t.length},u=0;a=t[u];u++)(d=document.createElement("link")).rel="stylesheet",d.type="text/css",l=s.bind(d,e,!0,p),d.addEventListener("load",l),d.href=o?a:c+a.replace(/\.scss$/,".css"),d.onerror=l,document.head.appendChild(d),d=l=a=null}else e()}catch(n){e()}}.bind(null,n,l,d.assets.css,d.assets.css_rtl,a),o){"string"==typeof o&&(o=[o]);for(var p={count:o.length},u=0;o[u];u++)t=document.createElement("script"),r=s.bind(t,i,!1,p),t.addEventListener("load",r),t.src=a?o[u]:c+o[u],t.onerror=r,document.head.appendChild(t),t=r=null}}function s(e,n,t,r){this.removeEventListener("load",this.onerror),t.count--,this.onerror=null,n||"error"!=r.type||(t.error=!0,m.error("Error while loading the app asset",this)),t.error||0!=t.count||e()}function a(e,n){var t=e.el.closest("[data-zs-slider]");t?zsSlider.resize(t,n):n&&n(),"canvas"!==window.zs_rendering_mode&&"live"!==window.zs_rendering_mode||0==--h&&(v=!0,$E.dispatch(document.body,"zsapps:loaded"));$E.dispatch(e.el,"app:loaded",{isLoaded:!0})}var d,l="[data-zs-app]",c="/zs-app/",p=!1,u=[],f=null,h=0,m=window.console,v=!1;return/interactive|complete|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!0),$E.bind(document.body,"element:resized",function(e){a({el:e.target,isLoaded:!0})}),{init:o.bind(null,!1),reinit:o.bind(null,!0),afterLoad:a,loadResources:i,containerApps:u,checkAppStatus:function(){return void 0!==d&&(0==d||v)}}}();!function(e,r){"function"==typeof define&&define.amd?define("hbDateFormatter",[],r):"object"==typeof module?module.exports=r():e.formatDate=r()}(this,function(){"use strict";function e(e){return(e<0||e>9?"":"0")+e}
2function r(e){for(var r="",t=0,n=(e+="").length;t<n;t++)r+=a.numbersArr[Number(e[t])];return r}function t(e,r){for(var t=e,n=0,a=(e=e.split("")).length;n<a;n++)":"===e[n]||" "===e[n]?(e.splice(n,1),n--):-1!==r.indexOf(e[n])&&(e.splice(n,1),n--);return e=e.join(""),{index:t.indexOf(e),ampm:e}}var n={},a={},o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"];n.isInteger=function(e){return!!e.match(/^(\d+)$/)},n.getInt=function(e,r,t,a){for(var o=a;o>=t;o--){var h=e.substring(r,r+o);if(h.length<t)return null;if(n.isInteger(h))return h}return null},n.format=function(t,n){"object"!=typeof t&&(t=new Date(t)),n+="";var o="",h=0,u="",l="",f=t.getYear()+"",i=t.getMonth()+1,m=t.getDate(),s=t.getDay(),g=t.getHours(),y=t.getMinutes(),c=t.getSeconds(),d=!1;f.length<4&&(f=""+(f-0+1900));var N={y:r(""+f),yyyy:r(f),yy:r(f.substring(2,4)),M:r(i),MM:r(e(i)),MMM:a.monthsAll[i-1],NNN:a.monthsAll[i+11],d:r(m),dd:r(e(m)),E:a.weekdaysLong[s+7],EE:a.weekdaysLong[s],H:r(g),HH:r(e(g))};for(a.yearChar&&("after"===a.yearChar.pos?(N.y+=a.yearChar.char,N.yyyy+=a.yearChar.char):(N.y=a.yearChar.char+N.y,N.yyyy=a.yearChar.char+N.yyyy)),a.dayChar&&("after"===a.dayChar.pos?(N.d+=a.dayChar.char,N.dd+=a.dayChar.char):(N.d=a.dayChar.char+N.d,N.dd=a.dayChar.char+N.dd)),a.monthChar&&("after"===a.monthChar.pos?(N.M+=a.monthChar.char,N.MM+=a.monthChar.char):(N.M=a.monthChar.char+N.d,N.MM=a.monthChar.char+N.dd)),N.h=0==g?12:g>12?g-12:g,N.hh=r(e(N.h)),N.h=r(N.h),N.K=g>11?g-12:g,N.k=g+1,N.KK=r(e(N.K)),N.kk=r(e(N.k)),N.a=g>11?a.pmChars:a.amChars,N.m=r(y),N.mm=r(e(y)),N.s=r(c),N.ss=r(e(c));h<n.length;){for(u=n.charAt(h),l="";n.charAt(h)==u&&h<n.length;)l+=n.charAt(h++);"HH"===l&&(d=!0),"a"===l&&d||(null!=N[l]?o+=N[l]:o+=l)}return o.trim()},n.parse=function(e,r){e+="",r+="";for(var t,a,h=0,u=0,l="",f="",i=new Date,m=i.getYear(),s=i.getMonth()+1,g=1,y=0,c=0,d=0,N="";u<r.length;){for(l=r.charAt(u),f="";r.charAt(u)===l&&u<r.length;)f+=r.charAt(u++);if("yyyy"===f||"yy"===f||"y"===f){if("yyyy"===f&&(t=4,a=4),"yy"===f&&(t=2,a=2),"y"===f&&(t=2,a=4),null===(m=n.getInt(e,h,t,a)))return NaN;h+=m.length,2===m.length&&(m=m>70?m-0+1900:m-0+2e3)}else if("MMM"===f||"NNN"===f){s=-1;for(var w,p,C,M=0;M<24;M++){for(w=o[M],p=0,C="";/^[a-zA-Z]+$/.test(e[h+p]);)C+=e[h+p],p++;if(C.toLowerCase()===w.toLowerCase()&&("MMM"===f||"NNN"===f)){(s=M+1)>12&&(s-=12),h+=w.length;break}}if(s<1||s>12)return NaN}else if("EE"===f||"E"===f)for(var D=0;D<daysAll.length;D++){var b=daysAll[D];if(e.substring(h,h+b.length).toLowerCase()===b.toLowerCase()){h+=b.length;break}}else if("MM"===f||"M"===f){if(null===(s=n.getInt(e,h,f.length,2))||s<1||s>12)return NaN;h+=s.length}else if("dd"===f||"d"===f){if(null===(g=n.getInt(e,h,f.length,2))||g<1||g>31)return NaN;h+=g.length}else if("hh"===f||"h"===f){if(null===(y=n.getInt(e,h,f.length,2))||y<0||y>12)return NaN;h+=y.length}else if("HH"===f||"H"===f){if(null===(y=n.getInt(e,h,f.length,2))||y<0||y>23)return NaN;h+=y.length}else if("KK"===f||"K"===f){if(null===(y=n.getInt(e,h,f.length,2))||y<0||y>11)return NaN;h+=y.length}else if("kk"===f||"k"===f){if(null===(y=n.getInt(e,h,f.length,2))||y<1||y>24)return NaN;h+=y.length,y--}else if("mm"===f||"m"===f){if(null===(c=n.getInt(e,h,f.length,2))||c<0||c>59)return NaN;h+=c.length}else if("ss"===f||"s"===f){if(null===(d=n.getInt(e,h,f.length,2))||d<0||d>59)return NaN;h+=d.length}else if("a"===f){if("am"===e.substring(h,h+2).toLowerCase())N="AM";else{if("pm"!==e.substring(h,h+2).toLowerCase())return NaN;N="PM"}h+=2}else{if(e.substring(h,h+f.length)!==f)return NaN;h+=f.length}}if(h!==e.length)return NaN;if(2===s)if(m%4==0&&m%100!=0||m%400==0){if(g>29)return NaN}else if(g>28)return NaN;if((4===s||6===s||9===s||11===s)&&g>30)return NaN;y<12&&"PM"===N?y=y-0+12:y>11&&"AM"===N&&(y-=12);return new Date(m,s-1,g,y,c,d).getTime()};var h=function(e){var r,t=!1;void 0===e.value?(r=this.value,t=!0):r=e.value,"object"!=typeof r&&(r=n.parse(r,e.from));var a=n.format(r,e.to);return t?(this.value=a,this):a};return h.parse=n.parse,h.format=n.format,h.setLocale=function(e){e||(e="en"),a={},h.lang=e;var r,n,o=new Array(7);for(r=18;r<25;r++)o[(n=new Date(Date.UTC(2012,2,r))).getDay()]=n;var u,l=new Array(12);for(r=0;r<12;r++)l[(u=new Date(Date.UTC(2012,r,1))).getMonth()]=u;for(a.weekdaysLong=o.map(function(r){return new Intl.DateTimeFormat(e,{weekday:"long"}).format(r)}),a.weekdaysShort=o.map(function(r){return new Intl.DateTimeFormat(e,{weekday:"short"}).format(r)}),a.weekdaysNarrow=o.map(function(r){return new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(r)}),a.monthsLong=l.map(function(r){return new Intl.DateTimeFormat(e,{month:"long"}).format(r)}),a.monthsShort=l.map(function(r){return new Intl.DateTimeFormat(e,{month:"short"}).format(r)}),a.monthsAll=a.monthsShort.concat(a.monthsLong),a.numbersArr=[],r=0;r<60;
2r++)a.numbersArr.push(new Intl.DateTimeFormat(e,{second:"numeric"}).format(new Date(Date.UTC(2012,0,12,0,0,r))));var f=new Intl.DateTimeFormat(h.lang,{year:"numeric"}).format(new Date("05 June 1988"));f=f.split("").forEach(function(e){var r=a.numbersArr.indexOf(e);-1===r&&(a.yearChar={char:e,pos:0===r?"before":"after"})});var i=new Intl.DateTimeFormat(h.lang,{month:"numeric"}).format(new Date("05 June 1988"));i=i.split("").forEach(function(e){var r=a.numbersArr.indexOf(e);-1===r&&(a.monthChar={char:e,pos:0===r?"before":"after"})});var m=new Intl.DateTimeFormat(h.lang,{day:"numeric"}).format(new Date("05 June 1988"));m=m.split("").forEach(function(e){var r=a.numbersArr.indexOf(e);-1===r&&(a.dayChar={char:e,pos:0===r?"before":"after"})});var s=new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",hour12:!0}).format(new Date("05 June 1988 06:00")),g=new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",hour12:!0}).format(new Date("05 June 1988 18:00")),y=t(s,a.numbersArr),c=t(g,a.numbersArr);a.amChars=y.ampm,a.pmChars=c.ampm,a.ampmPos=0===y.index?"before":"after",h.locale=a},h});!function(e,t){"function"==typeof define&&define.amd?define("hbDatepicker",["hbDateFormatter"],t):e.hbDatepicker=t(formatDate)}(this,function(e){"use strict";function t(e){return Number(e)+1+""}function a(e){return Number(e)-1+""}function n(e,t){var a=e[0];return t=t||Y,"#"===a&&0===e.lastIndexOf("#")?Y.getElementById(e.substr(1)):"."===a&&0===e.lastIndexOf(".")?t.getElementsByClassName(e.substr(1)):$.test(e)?t.getElementsByTagName(e):t.querySelectorAll(e)}function r(e){return Y.querySelector(e)}function i(e,t){return-1!==l(e.className.trim()).indexOf(t)}function s(e,t){var a=l(e.className.trim());-1===a.indexOf(t)&&a.push(t),e.className=a.join(" ")}function d(e,t){var a=l(e.className.trim()),n=a.indexOf(t);-1!==n&&a.splice(n,1),e.className=a.join(" ")}function u(e){return e.hasAttribute("data-start")&&e.hasAttribute("data-end")?2:e.hasAttribute("data-start")||e.hasAttribute("data-end")}function o(e,t){if(!e)throw new Error("Element to find offset doesnot exists.");t=t||F;var a=e.getBoundingClientRect();return{top:a.top+function(e){return(e=e||F).pageYOffset||e.document.documentElement.scrollTop}(t),left:a.left+function(e){return(e=e||F).pageXOffset||e.document.documentElement.scrollLeft}(t)}}function c(e){var t=e.target,a=t.id,n=t.className;i(t,"day")?a="day":i(t,"yr-list")?a="yr-select":i(t,"month-list")&&(a="month-select"),a&&function(e,t){switch(e){case"dis-yr-back":Q.prevYear();break;case"dis-yr-next":Q.nextYear();break;case"dis-mon-back":Q.prevMon();break;case"dis-mon-next":Q.nextMon();break;case"cur-dis-year":Q.showyears();break;case"cur-dis-month":Q.showMonths();break;case"day":Q.selectDay(t);break;case"hb_clock":case"hb_calendar":Q.togglePick(t);break;case"hb_today":Q.selectDate(new Date);case"hb-hr-down":Q.changeHrVal("down");break;case"hb-min-down":Q.changeMinVal("down");break;case"hb-hr-up":Q.changeHrVal("up");break;case"hb-min-up":Q.changeMinVal("up");break;case"hb-time-format":Q.changeFmVal();break;case"hb-dp-cancel":case"hb-dp-mask":Q.close();break;case"hb-dp-ok":Q.ok();break;case"yr-select":Q.selectYr(t);break;case"month-select":Q.selectMonth(t)}}(a||n,t)}function l(e){return e.replace(/ {2,}/g," ").split(" ")}function m(e){return e.replace(" ","").split(",")}function h(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function v(e){var t=e.target.getAttribute("data-hb-period");if("custom"!==t){var a,r,i=(t=t.split(","))[0],s=t[1],d="-"===i[0],u=Q.getNow();switch(u=Date.parse(u.getMonth()+1+" "+u.getDate()+" "+u.getFullYear()),u=new Date(u),a=new Date(u),s){case"D":a.setDate(a.getDate()+Number(i)),d?u.setDate(u.getDate()-1):a.setDate(a.getDate()-1);break;case"W":"0"===i?(a.setDate(u.getDate()-u.getDay()),u.setDate(u.getDate()+(7-u.getDay())-1)):d?(u.setDate(u.getDate()-u.getDay()-1),a.setDate(u.getDate()+7*Number(i)+1)):(u.setDate(u.getDate()+(7-u.getDay())),a.setDate(u.getDate()+7*Number(i)-1));break;case"M":"0"===i?(u.setDate(u.getDate()-u.getDate()+1),(a=new Date(u)).setDate(u.getDate()+h(u)-u.getDate())):d?(u.setDate(u.getDate()-u.getDate()),(a=new Date(u)).setMonth(a.getMonth()+(Number(i)+2)),a.setDate(a.getDate()-a.getDate()+1),a.setMonth(a.getMonth()-1)):(u.setDate(u.getDate()+h(u)-u.getDate()+1),(a=new Date(u)).setMonth(a.getMonth()-1+Number(i)),a.setDate(u.getDate()+h(a)-1))}u.getTime()<a.getTime()?(u,r=a):(r=u,a),r.setHours(23),r.setMinutes(59);X.currentProxyInput,n('[data-group="'+g(X.currentInput,"data-group")+'"]')}else X.show({periods:!1,ctx:X.currentProxyInput})}function p(e){var t=function(e){return"which"in e?e.which:e.keyCode}(e);B.indexOf(t)>-1&&k.call(this,e)}function b(e,t,a){g(e,"min",t),g(e,"max",a)}function y(e){g(this,"data-value",this.value)}function f(e){return!0===e||"true"===e}function g(e,t,a){if(null===a||void 0===a)return e.getAttribute(t);e.setAttribute(t,a)}function D(e){var t,a,n="which"in e?e.which:e.keyCode,r=e.target.id;if(-1==W.indexOf(n)&&e.preventDefault(),g(this,"data-value"),a=this.value,0===Number(a))return this.setAttribute("data-value",Number(a)),void(a.length>2?this.value=a.substring(0,2):this.value=a);t=function(e,t,a,n){var r=Number(e);return t=Number(t),a=Number(a),n=Number(n),""===e.trim()?n:r<=t?t:r>=a?a:r||n}(a,this.getAttribute("min"),this.getAttribute("max"),this.getAttribute("data-def")),r=this.id,(t+"").length<=2&&("hb-min-val"==r&&(t=_(t,z.minutes_step)),t<10&&(t="0"+t),g(this,"data-value",Number(t)),this.value=t)}function M(e){var t=e.keyCode,a=e.target.id;8==t||46==t||37==t||39==t||t>47&&t<58||t>95&&t<106||e.preventDefault(),38===t?"hb-hr-val"===a?Q.changeHrVal("up"):Q.changeMinVal("up"):40===t&&("hb-hr-val"===a?Q.changeHrVal("down"):Q.changeMinVal("down"))}function k(e){e.preventDefault(),X.show({periods:!1,ctx:this})}
2function x(e){27===e.keyCode&&(e.stopPropagation(),e.preventDefault(),Q.close())}function w(e,t,a,n,r){if("prev"==r){var i=0==a.month?11:a.month-1,s=0==a.month?a.year-1:a.year;e=Date.parse(i+1+" "+n+" "+s)}else if("next"==r){var d=11==a.month?0:a.month+1,u=11==a.month?a.year+1:a.year;e=Date.parse(d+1+" "+n+" "+u)}return-1!==t.disabled_days.indexOf(new Date(e).getDay())||e-Date.parse(t.min_date)<0||Date.parse(t.max_date)-e<0}function _(e,t){return t>1&&(e=Math.floor(e/t)*t),e}function T(e){for(var t="",a=0,n=(e+="").length;a<n;a++)t+=I[parseInt(e[a])];return t}var L,N,H,E,A,I,C,O,S,F=window,Y=document,P=["S","M","T","W","T","F","S"],U=[31,28,31,30,31,30,31,31,30,31,30,31],V="Ok",j="Cancel",R="START",Z="END",B=[8,46],W=[8,9,46,27,37,38,39,40],$=/^[a-z-_]$/i,q={mode:"landscape",format:"dd-MM-yyyy HH:mm",start_date:"",min_date:"01 01 1800",max_date:"12 31 2100",start_day:0,allowed_days:"",disabled_days:"",disable_old_dates:!1,disable_new_dates:!1,time_picker:!1,time_format:"12h",start_time:"",minutes_step:1,show_today_button:!0,mask:!0,data_start:!1,data_end:!1,data_group:!1,hb_theme:"",locale:"en"},z={},G=Date.parse,K={},X={};X.utils=K,K.getDaysCount=function(e,t){return void 0!==e?1===e&&(t%4==0&&t%100!=0||t%400==0)?29:U[e]:1===curMonth&&(curYear%4==0&&curYear%100!=0||curYear%400==0)?29:U[curMonth]},X.parse=function(e,t){if(t)return this.utils.getDateFromFormat(e,t);var a,n=G(e),r=0;return isNaN(n)&&(a=/^(\d{4}|[+\-]\d{6})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?))?/.exec(e))&&("Z"!==a[8]&&(r=60*+a[10]+ +a[11],"+"===a[9]&&(r=0-r)),a[7]=a[7]||"000",n=Date.UTC(+a[1],+a[2]-1,+a[3],+a[4],+a[5]+r,+a[6],+a[7].substr(0,3))),n},X.datediff=function(e,t){if(!e)throw new Error("From Date should be specified");var a=new Date(1970,0,1,0).getTime(),n=new Date,r=(t=t&&t instanceof Date?t:n)-e,i=new Date(a+r),s=i.getFullYear()-1970,d=i.getMonth(),u=i.getDate()-1,o=i.getHours(),c=i.getMinutes(),l=i.getSeconds(),m={years:0,months:0,days:0,hours:0,minutes:0,seconds:0};return s<0?m:(m.years=s>0?s:0,m.months=d>0?d:0,m.days=u>0?u:0,m.hours=o>0?o:0,m.minutes=c>0?c:0,m.seconds=l>0?l:0,m)};X.init=function(t){t=t||{};var a,r,i=n("#hbUI-datepicker");t.locale||I||X.setLocale("en"),i&&(a=i.parentNode).parentNode.removeChild(a),Y.body.insertAdjacentHTML("beforeend",ee),i=n("#hbUI-datepicker");for(var u in t)q[u]=t[u];t.okText&&(V=t.okText),t.cancelText&&(j=t.cancelText),t.startText&&(R=t.startText),t.endText&&(Z=t.endText),t.ctx||(t.ctx=document.body);var o;if(i)for(var c=n(".hbui-datepicker",t.ctx),l=c.length-1;l>=0;l--)c[l].hasAttribute("initted")&&"true"==c[l].getAttribute("initted")||(d(r=c[l].cloneNode(),"hbui-datepicker"),s(r,"datepicker__proxy-el"),g(r,"data-value",c[l].value),c[l].value&&(o=e.format(new Date(c[l].value),g(r,"format")),r.value=o),c[l].parentNode.insertBefore(r,c[l]),c[l].className+=" hide",c[l].setAttribute("initted","true"),r.removeEventListener("click",X.show),r.addEventListener("click",X.show),r.removeEventListener("keypress",k),r.addEventListener("keypress",k),r.setAttribute("onpaste","return false"),r.setAttribute("onCut","return false"),r.removeEventListener("keydown",p),r.addEventListener("keydown",p));var m=n(".hb-time-c");m&&2===m.length&&("before"===S?(m[1].parentNode.removeChild(m[1]),n("#time-picker-cont").className="fm-before"):(n("#time-picker-cont").className="fm-after",m[0].parentNode.removeChild(m[0])))},X.show=function(e){var t,a=n("#hbUI-datepicker"),r=n("#hb-dp-mask"),i=null,d=null,u=null,l=null,h=this;if(0!==Object.keys(z).length&&Q.reset(),e&&e.hasOwnProperty("periods")&&(h=e.ctx),e&&!e.hasOwnProperty("periods")&&h.hasAttribute("data-period")&&(s(a,"hb-dp-period"),(t=h.getAttribute("data-period"))&&(t=t.split(",").map(function(e){var t=(e=e.trim().split(":"))[0].trim(),a=e[1].trim();return'<div data-hb-period="'+t.match(/(-?[\d]+)/)[1]+","+t.match(/([A-Z]+)/)[1]+'">'+a+"</div>"}),n("#hb-dp__period-cont").innerHTML=t.join("")+'<div data-hb-period="custom">Custom Range</div>',n("#hb-dp__period-cont").addEventListener("click",v))),h.hasAttribute("minutes-step")){"SELECT"===(w=n("#hb-min-val")).tagName&&w.removeEventListener("input",y),(l=document.createElement("select")).id="hb-min-val",b(l,0,59),g(l,"data-def",0);for(var p,k=0;k<60;k+=Number(h.getAttribute("minutes-step")))k<10&&(k="0"+k),(p=document.createElement("option")).text=T(k),p.value=k,l.appendChild(p),k=Number(k);w.removeEventListener("input",D),w.parentNode.replaceChild(l,w),l.addEventListener("input",y)}else{var w;if("INPUT"!==(w=n("#hb-min-val")).tagName){var _=document.createElement("input");
2_.id="hb-min-val",w.parentNode.replaceChild(_,w),w.setAttribute("data-def","00"),b(w,0,59)}}X.currentInput=h.nextElementSibling,X.currentProxyInput=h,function(e){var t="",a=null,n=null;if(Object.keys(q).forEach(function(n,r){t=n.replace(/_/g,"-"),(a=e.getAttribute(t))&&(z[n]=a.trim())}),function(e,t){for(var a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=t[a])}(z,q),z.allowed_days){for(var r=m(z.allowed_days),i=[],s=0;s<=6;s++)r.includes(s.toString())||i.push(s);i.length>0&&(z.disabled_days=i.toString())}z.disabled_days=m(z.disabled_days),z.disabled_days.forEach(function(e,t){z.disabled_days[t]=parseInt(e,10)}),z.minutes_step=parseInt(z.minutes_step,10),z.time_picker=f(z.time_picker),z.show_today_button=f(z.show_today_button),z.mask=f(z.mask),n=Q.getNow(),f(z.disable_old_dates)&&(z.min_date=n.getMonth()+1+" "+n.getDate()+" "+n.getFullYear()),f(z.disable_new_dates)&&(z.max_date=n.getMonth()+1+" "+n.getDate()+" "+n.getFullYear()),X.setLocale(z.locale)}(h),z.time_picker?(n("#time-picker-cont").style.display="",n("#cur-sel-month").removeAttribute("style"),n("#cur-sel-year").removeAttribute("style")):n("#time-picker-cont").style.display="none",null==(u=X.currentInput.getAttribute("data-value"))&&(u=X.currentInput.value),u=u?new Date(u):Q.getNow(),X.curDateVal=u,z.mask?(r.style.display="block",r.addEventListener("click",c),s(Y.body,"no-scroll")):(Y.body.appendChild(a),a.addEventListener("click",c),i=o(X.currentInput.previousElementSibling),a.style.cssText="position:absolute; inset-block-start:"+i.top+"px; inset-inline-start:"+i.left+"px; margin-block-start:"+X.currentInput.clientHeight+"px;",s(a,"border")),z.time_picker&&s(a,"hb-time"),"portrait"===z.mode&&s(a,"portrait"),function(){var e="";"0"==z.start_day?P.forEach(function(t){e+='<span class="day-txt">'+t+"</span>"}):"1"===z.start_day&&(P.forEach(function(t,a){0!==a&&(e+='<span class="day-txt">'+t+"</span>")}),e+='<span class="day-txt">'+P[0]+"</span>
2"),n("#hb-day-short").innerHTML=e}();var L=n("#hb-hr-val");"24h"===z.time_format?(s(n("#time-picker-cont"),"hr24"),b(L,0,23)):b(L,1,12),Q.renderDates(),""!==z.start_date?(d=z.start_date.match(/^([a-zA-Z]+) ([\d]+), ([\d]{4}|[\d]{2})$/),Q.setCurDate(d[2],d[1],d[3],"cur"),n("#cur-dis-year").innerHTML=d[3],g(n("#cur-dis-year"),"data-val",d[3]),n("#cur-dis-month").innerHTML=d[1],g(n("#cur-dis-month"),"data-val",d[1]),d=new Date(d[1]+" "+d[2]+" "+d[3]),n("#cur-sel-day-text").innerHTML=E[d.getDay()],Q.renderDates()):Q.selectDate(u),""!==z.hb_theme&&s(a,z.hb_theme);var N=n("#hb-dp-ok");N.innerHTML=V,n("#hb-dp-cancel").innerHTML=j,n("#hb-min-val").addEventListener("input",D),n("#hb-min-val").addEventListener("keydown",M),n("#hb-hr-val").addEventListener("input",D),n("#hb-hr-val").addEventListener("keydown",M),N.focus(),a.addEventListener("keydown",x)};var J={t:null,inUp:function(e){s(e,"slideInUp"),s(e,"animated"),this.clear(),this.t=setTimeout(function(){d(e,"slideInUp"),d(e,"animated"),clearTimeout(J.t),J.t=null},205)},inDown:function(e){s(e,"slideInDown"),s(e,"animated"),this.clear(),this.t=setTimeout(function(){d(e,"slideInDown"),d(e,"animated"),clearTimeout(J.t)},205)},clear:function(){this.t&&clearTimeout(this.t)}},Q={nextYear:function(){var e=n("#cur-dis-year"),t=parseInt(g(e,"data-val").trim(),10);n("#cur-dis-year-0").innerHTML=T(t),g(n("#cur-dis-year-0"),"data-val",t),e.innerHTML=T(t+1),g(e,"data-val",t+1),n("#cur-dis-year-1").innerHTML=T(t+2),g(n("#cur-dis-year-1"),"data-val",t+2),J.inUp(n("#pick-year-cont")),this.renderDates()},prevYear:function(){var e=n("#cur-dis-year"),t=parseInt(g(e,"data-val").trim());n("#cur-dis-year-0").innerHTML=T(t),g(n("#cur-dis-year-0"),"data-val",t),e.innerHTML=T(t-1),g(e,"data-val",t-1),n("#cur-dis-year-1").innerHTML=T(t-2),g(n("#cur-dis-year-1"),"data-val",t-2),J.inDown(n("#pick-year-cont")),this.renderDates()},nextMon:function(){var e,t=n("#cur-dis-month"),a=n("#pick-mon-cont"),r=t.innerHTML.trim(),i=N.indexOf(r),s=11===i?0:i+1,d=11===s?0:s+1;0===s&&(e=parseInt(g(n("#cur-dis-year"),"data-val").trim(),10)+1,n("#cur-dis-year").innerHTML=T(e),g(n("#cur-dis-year"),"data-val",e)),t.innerHTML=N[s],g(t,"data-val",s),n("#cur-dis-month-0").innerHTML=r,n("#cur-dis-month-1").innerHTML=N[d],J.inUp(a),this.renderDates()},prevMon:function(){var e,t=n("#cur-dis-month"),a=n("#pick-mon-cont"),r=Number(g(t,"data-val")),i=0===r?11:r-1,s=11===i?0:i+1;11===i&&(e=parseInt(g(n("#cur-dis-year"),"data-val").trim(),10)-1,n("#cur-dis-year").innerHTML=T(e),g(n("#cur-dis-year"),"data-val",e)),t.innerHTML=N[i],g(t,"data-val",i),n("#cur-dis-month-0").innerHTML=N[r],n("#cur-dis-month-1").innerHTML=N[s],J.inDown(a),this.renderDates()},showyears:function(){var e,t=g(n("#cur-dis-year"),"data-val"),a=10-Number(t[3]),r="",i="";t=Number(t);for(var s=10-a+1;s>=0;s--)e=t-s,0===s&&(i="curr-yr"),r+='<span data-value="'+e+'" class="yr-list '+i+'">'+T(e)+"</span>";for(s=1;s<=a;s++)r+='<span data-value="'+(e=t+s)+'" class="yr-list">'+T(e)+"</span>";
2n("#hb-day-short").style.display="none",n("#dates-cont").innerHTML=r},showMonths:function(){var e=Number(g(n("#cur-sel-month"),"data-val")),t=L.map(function(t,a){var n="";return e===a&&(n="curr-yr"),'<span class="month-list '+n+'" data-val="'+a+'">'+t+"</span>"});n("#hb-day-short").style.display="none",n("#dates-cont").innerHTML=t.join("")},selectYr:function(e){var t=Number(g(e,"data-value"));n("#cur-dis-year").innerHTML=T(t),g(n("#cur-dis-year"),"data-val",t),n("#cur-dis-year-0").innerHTML=T(t),g(n("#cur-dis-year-0"),"data-val",t-1),n("#cur-dis-year-1").innerHTML=T(t),g(n("#cur-dis-year-1"),"data-val",t+1),this.renderDates()},selectMonth:function(e){var t=Number(g(e,"data-val")),a=e.innerHTML;n("#cur-dis-month").innerHTML=a,g(n("#cur-dis-month"),"data-val",t),this.renderDates()},selectDay:function(e){var s=null,d=g(n("#cur-dis-year"),"data-val"),o=g(n("#cur-dis-month"),"data-val"),c=(Number(o),g(e,"data-nu")),l=X.currentInput;this.getCurDateInfo();i(e,"disabled")||(i(e,"next-month-days")?(c=g(e,"data-nun"),Q.nextMon(),"11"==o?(o="0",d=t(d)):o=t(o),e=r('[data-nu="'+c+'"]')):i(e,"prev-month-days")&&(c=g(e,"data-nup"),Q.prevMon(),"0"==o?(o="11",d=a(d)):o=a(o),e=r('[data-nu="'+c+'"]')),(s=r(".day.active"))&&(s.className="day"),this.setCurDate(c,o,d,"cur"),e.className="day active",s&&(s.className="day"),u(l)&&Q.fixDateDisplay({day:c,month:o,year:d},e))},fixDateDisplay:function(e,t){var a,r,d=n(".hb-picker-cont .day"),o=X.currentInput,c=new Date(e.year,Number(e.month),e.day),l={min:null,max:null},m=n('[data-group="'+o.getAttribute("data-group")+'"][data-start]'),h=n('[data-group="'+o.getAttribute("data-group")+'"][data-end]'),v=o.hasAttribute("data-start");u(o);v?(l.max=g(m[0],"max-date"),l.max=l.max&&new Date(l.max),l.min=c):(l.min=g(h[0],"min-date"),l.min=l.min&&new Date(l.min),l.max=c),c=c.getTime();for(var p=0,b=d.length;p<b;p++)i(d[p],"disabled")||i(d[p],"next-month-days")||i(d[p],"prev-month-days")||(r=!1,a=new Date(e.year,Number(e.month),Number(g(d[p],"data-nu"))),r=this.isWithinRangeFn(l.min,l.max,a),(a=a.getTime())===c?v?(d[p
2].className="day active2",l.max&&s(d[p],"hb-start")):d[p].className="day hb-end active2":d[p].className=1===r?"day hb-start active2":2===r?"day hb-end active2":!0===r?"day hb-bet":"day")},setCurDate:function(e,t,a,r){e&&(n("#"+r+"-sel-day").innerHTML=T(e),g(n("#"+r+"-sel-day"),"data-val",e)),t&&N&&(n("#"+r+"-sel-month").innerHTML=N[t],g(n("#"+r+"-sel-month"),"data-val",t)),a&&(n("#"+r+"-sel-year").innerHTML=T(a),g(n("#"+r+"-sel-year"),"data-val",a));var i=new Date(Number(a),Number(t),Number(e,10)).getDay();"cur"===r&&(n("#"+r+"-sel-day-text").innerHTML=E[i])},getNow:function(){var e=new Intl.DateTimeFormat("en",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:z.timeZone}).format(new Date),t=e.match(/^([\d]{1,2})\/([\d]{1,2})\/([\d]{2}|[\d]{4}),\s([\d]{1,2}):([\d]{1,2}):([\d]{1,2})\s([\w]{2})$/);return"PM"==t[7]&&12!=t[4]&&(t[4]=Number(t[4])+12),e=new Date(t[3],Number(t[1])-1,t[2],t[4],t[5],t[6])},getCurDateInfo:function(){var e={};return e.month=Number(g(n("#cur-sel-month"),"data-val")),e.year=Number(g(n("#cur-sel-year"),"data-val")),e.day=Number(g(n("#cur-sel-day"),"data-val")),e.hr=Number(g(n("#hb-hr-val"),"data-value")),e.min=Number(g(n("#hb-min-val"),"data-value")),e.fm=Number(g(n("#hb-time-format"),"data-value")),e},renderDates:function(e){var t=this.monthDetails(),a="",r=0,i=null,s=-1,d=0,o=-1,c=!1,l=null,m=null,h=null,v=!1,p="",b="",y="",f=X.currentInput,D=u(f);if(D){var M={min:null,max:null},k=n('[data-group="'+f.getAttribute("data-group")+'"][data-start]'),x=n('[data-group="'+f.getAttribute("data-group")+'"][data-end]'),_=f.hasAttribute("data-start");_?z.max_date=g(k[0],"max-date"):z.min_date=g(x[0],"min-date"),_?(z.max_date&&(z.max_date=new Date(z.max_date),M.max=z.max_date),M.min=new Date(X.currentProxyInput.value)):(z.min_date&&(z.min_date=new Date(z.min_date),M.min=z.min_date),M.max=new Date(X.currentProxyInput.value))}for(e||(e=this.getSelectDate(t)),h=this.getCurDateInfo(),r=0,i=t.prevMonthDates.length;r<i;r++)a+='<span class="day prev-month-days'+(w("",z,t,t.prevMonthDates[r],"prev")?" disabled ":"")+'" data-nup="'+I[t.prevMonthDates[r]]+'">'+I[t.prevMonthDates[r]]+"</span>",d++;for(r=0,i=t.daysCount;r<i;r++)p="",b="",y="",s=r+1,o="1"===z.start_day?(d+1)%7:d%7,l=!!z.min_date&&Date.parse(t.month+1+" "+s+" "+t.year)-Date.parse(z.min_date)<0,m=!!z.max_date&&Date.parse(z.max_date)-Date.parse(t.month+1+" "+s+" "+t.year)<0,c=-1!==z.disabled_days.indexOf(o)||l||m,D&&(v=this.isWithinRangeFn(M.min,M.max,new Date(t.year,t.month,s))),c?y="disabled":D&&v?1===v?(p="active2",b="hb-start"):2===v?(p="active2",b="hb-end"):b="hb-bet":this.shouldSelectDate(e,s)&&h.year===t.year&&h.month===t.month&&(p="active"),a+='<span class="day '+y+" "+b+" "+p+'" data-nu="'+s+'">'+I[s]+"</span>",d++;for(i=d%7==0?0:7-d%7,r=1;r<=i;r++)a+='<span class="day next-month-days'+(w("",z,t,I[r],"next")?" disabled ":"")+'" data-nun="'+I[r]+'">'+I[r]+"</span>";
2n("#dates-cont").innerHTML=a,n("#hb-day-short").style.display="block"},isWithinRangeFn:function(e,t,a){var n=!1;return null!==e&&null!==t&&(e=e.getTime(),t=t.getTime(),(a=a.getTime())===e?n=1:a===t?n=2:a>e&&a<t&&(n=!0),n)},getSelectDate:function(e){var t=this.getCurDateInfo(),a=null;return z.data_group||t.year===e.year&&t.month===e.month&&(a=t.day),a},shouldSelectDate:function(e,t){if("[object Array]"===Object.prototype.toString.call(e)){if(-1!==e.indexOf(t))return!0}else if(e===t)return!0;return!1},monthDetails:function(){for(var e=Number(g(n("#cur-dis-year"),"data-val")),t=Number(g(n("#cur-dis-month"),"data-val")),a=t-1>-1?t-1:11,r=t-1>-1?e:e-1,i=K.getDaysCount(t,e),s=K.getDaysCount(a,r),d=new Date(e,Number(t),1).getDay(),u=(new Date(e,Number(t),i).getDay(),[]),o="1"===z.start_day?0===d?s-5:s-d+2:s-d+1;o<=s;o++)u.push(o);return{firstOfMonth:d,daysCount:i,prevDaysCount:s,prevMonthDates:u,month:t,year:e}},togglePick:function(){var e=n("#hb-pick-toggle");"date"===e.getAttribute("data-state")?(e.setAttribute("data-state","clock"),s(n("#time-picker-cont"),"active")):(e.setAttribute("data-state","date"),d(n("#time-picker-cont"),"active"))},changeHrVal:function(e){var t=n("#hb-hr-val"),a=Number(g(t,"data-value")),r=-1,i="12h"===z.time_format,s=i?12:23;"up"===e?r=a===s?i?1:0:a+1:"down"===e&&(r=1===a?i?s:0:0===a?s:a-1),r=r<10?"0"+r:r,t.value=T(r),g(t,"data-value",r)},changeMinVal:function(e){var t=n("#hb-min-val"),a=Number(g(t,"data-value")),r=-1;"up"===e?r=a+z.minutes_step>59?z.minutes_step-(60-a):a+z.minutes_step:"down"===e&&(r=a-z.minutes_step<0?a-z.minutes_step+60:a-z.minutes_step),r=r<10?"0"+r:r,t.value=T(r),g(t,"data-value",r)},changeFmVal:function(e){var t=n("#hb-time-format");"12h"===z.time_format&&("AM"===g(t,"data-value")?(t.innerHTML=O,g(t,"data-value","PM")):(t.innerHTML=C,g(t,"data-value","AM")))},close:function(){d(Y.body,"no-scroll"),n("#hb-dp-mask").style.display="none",n("#hb-min-val").removeEventListener("input",D),n("#hb-hr-val").removeEventListener("input",D),n("#hbUI-datepicker").removeEventListener("keydown",x),this.reset(),X.currentProxyInput.focus()},ok:function(){var t,a,r=g(n("#cur-sel-day"),"data-val"),i=g(n("#cur-sel-month"),"data-val"),s=g(n("#cur-sel-year"),"data-val"),d=g(n("#hb-hr-val"),"data-value"),o=g(n("#hb-min-val"),"data-value"),c=g(n("#hb-time-format"),"data-value"),l=X.currentInput,m=l.hasAttribute("data-start"),h=u(l),v="24h"===z.time_format,p=parseInt(d);v&&(c=""),z.time_picker||(d=0,o=0);var b=new Date(s,i,r,function(e,t){var a=e;return"PM"!=t&&"AM"!=t||(e>0&&e<12?"PM"==t&&(a+=12):"AM"==t&&(a=0)),a}(p,c),o),y=e.format(b,z.format);X.currentInput.value=X.currentInput.hasAttribute("data-iso")?b.toISOString():y,X.currentInput.setAttribute("data-value",b.toISOString()),X.currentProxyInput.value=y,t=n('[data-group="'+l.getAttribute("data-group")+'"][data-start]'),a=n('[data-group="'+l.getAttribute("data-group")+'"][data-end]'),h&&(m?(a[0].setAttribute("min-date",b),a[1].setAttribute("min-date",b)):(t[0].setAttribute("max-date",b),t[1].setAttribute("max-date",b))),function(e,t){if(document.createEventObject){var a=document.createEventObject();return e.fireEvent("on"+t,a)}(a=document.createEvent("HTMLEvents")).initEvent(t,!0,!0),e.dispatchEvent(a)}(X.currentInput,"change"),this.close(),h&&m&&a[0].click()},reset:function(){d(n("#time-picker-cont"),"hr24");var e=n("#hb-dp-mask"),t=n("#hbUI-datepicker"),a=n("#hb-dp__period-cont");a&&(a.innerHTML=""),e.contains(t)?e.removeEventListener("click",c):(e.appendChild(t),t.removeEventListener("click",c)),t.style.cssText="",t.className="hb-dp-cont",z={},X.currentInput=null},selectToday:function(){var e=this.getNow();n("#cur-sel-day-text").innerHTML=E[e.getDay()],n("#cur-sel-month").innerHTML=N[e.getMonth()],g(n("#cur-sel-month"),"data-val",e.getMonth()),n("#cur-sel-year").innerHTML=T(e.getFullYear()),g(n("#cur-sel-year"),"data-val",e.getFullYear()),n("#cur-sel-day").innerHTML=T(e.getDate()),g(n("#cur-sel-day"),"data-val",e.getDate()),n("#cur-dis-year").innerHTML=T(e.getFullYear()),g(n("#cur-dis-year"),"data-val",e.getFullYear()),n("#cur-dis-month").innerHTML=N[e.getMonth()],g(n("#cur-dis-month"),"data-val",e.getMonth()),this.renderDates(e.getDate())},selectDate:function(e){if(n("#cur-sel-day-text").innerHTML=E[e.getDay()],n("#cur-sel-month").innerHTML=N[e.getMonth()],g(n("#cur-sel-month"),"data-val",e.getMonth()),n("#cur-sel-year").innerHTML=T(e.getFullYear()),g(n("#cur-sel-year"),"data-val",e.getFullYear()),n("#cur-sel-day").innerHTML=T(e.getDate()),g(n("#cur-sel-day"),"data-val",e.getDate()),n("#cur-dis-year").innerHTML=T(e.getFullYear()),g(n("#cur-dis-year"),"data-val",e.getFullYear()),n("#cur-dis-month").innerHTML=N[e.getMonth()],g(n("#cur-dis-month"),"data-val",e.getMonth()),z.time_picker){var t=e.getHours(),a=e.getMinutes(),r="",i=!0;"12h"===z.time_format&&(t>11?(12!==t&&(t-=12),r=O,i=!1):(r=C,0==t&&(t=12))),(t+="").length<2&&(t="0"+t),(a=_(a,z.minutes_step)+"").length<2&&(a="0"+a),g(n("#hb-hr-val"),"data-value",t),n("#hb-hr-val").value=T(t),g(n("#hb-min-val"),"data-value",a),n("#hb-min-val").value=T(a),g(n("#hb-time-format"),"data-value",i?"AM":"PM"),n("#hb-time-format").innerHTML=r}this.renderDates(e.getDate())},setRange:function(e){Q.range=e,s(n("#hb-range-"+e),"active")}};
2X.setLocale=function(t){q.locale=t,e.setLocale(t);var a=e.locale;L=a.monthsShort,N=a.monthsLong,P=a.weekdaysNarrow,H=a.weekdaysShort,E=a.weekdaysLong,A=a.monthsShort.concat(a.monthsLong),I=a.numbersArr,C=a.amChars,O=a.pmChars,S=a.ampmPos};var ee='<div id="hb-dp-mask" style="display:none" ><div class="hb-dp-cont" id="hbUI-datepicker" tabindex="0"><div class="hb-dp-left">\x3c!-- START: SINGLE DATE SELECT CONT --\x3e<div class="cur-dt-cont"><div class="hb-date"><div class="hb-only-date"><div class="hb-year" id="cur-sel-year"></div><div class="hb-display-flex"><div class="hb-day" id="cur-sel-day"></div><div class="hb-month" id="cur-sel-month"></div></div><div class="hb-mon-day-text"><div class="hb-day-text" id="cur-sel-day-text"></div></div></div><div id="time-picker-cont" class="fm-after"><div class="hb-btns-up"><i class="arrow top" id="hb-hr-up"></i><i class="arrow top" id="hb-min-up"></i></div><div class="hb-time-c hb-input-cont 111"><span id="hb-time-format" class="hb-time-format" data-value=""></span><input type="text" data-value="12" value="12" id="hb-hr-val" min="1" max="12" data-def="12"/><input type="text" data-value="12" value="12" id="hb-min-val"/ min="0" max="59" data-def="00"></div><div class="hb-time-c hb-input-cont 222"><input type="number" pattern="\\d*" data-value="12" value="12" id="hb-hr-val" min="1" max="12" data-def="12"/><input type="number" pattern="\\d*" data-value="12" value="12" id="hb-min-val" min="0" max="59" data-def="00"/><span id="hb-time-format" class="hb-time-format" data-value=""></span></div><div class="hb-btns-down"><i class="arrow bottom" id="hb-hr-down"></i><i class="arrow bottom" id="hb-min-down"></i></div></div></div></div>\x3c!-- END: SINGLE DATE SELECT CONT --\x3e</div>\x3c!-- END : left --\x3e<div class="hb-picker-cont"><div class="dt-picker-cont"><div class="hb-year-sel"><i class="arrow left fl-lt" id="dis-yr-back"></i><span id="pick-year-cont"><span id="cur-dis-year-0" > a </span><span id="cur-dis-year"> b </span><span id="cur-dis-year-1" > c </span> </span><i class="arrow fl-rt" id="dis-yr-next"></i></div><div class="hb-month-sel"><i class="arrow left fl-lt" id="dis-mon-back"></i><span id="pick-mon-cont"><span id="cur-dis-month-0" >a</span><span id="cur-dis-month" >b</span> <span id="cur-dis-month-1" >c</span></span><i class="arrow fl-rt" id="dis-mon-next"></i></div><div class="hb-day-sel" id="hb-day-short"></div><div class="hb-day-sel" id="dates-cont"></div><div class="hb-btns-cont"><button type="button" class="hb-btns hb-ok" id="hb-dp-ok">OK</button><button type="button" class="hb-btns hb-cancel" id="hb-dp-cancel">CANCEL</button></div></div></div><div class="period-picker" id="hb-dp__period-cont"></div></div></div>';return X});var ZPLPForm=function(){function e(e,a){var t=document.createDocumentFragment();return e.forEach(function(e){var a=document.createElement("option");a.value=e,a.innerText=e,t.appendChild(a)}),t}function a(e){$X.get({url:"/siteapps/zsforms/captcha",args:e.id,handler:function(e){var a=JSON.parse(this.responseText),t=a.captcha.DIGEST;$D.getById(e).setAttribute("data-captcha-digest",t);$D.getById(e.replace("_captchatext","_captchaimage")).src=a.captcha.CAPTCHAURL}})}function t(e){if(e.preventDefault(),e.stopPropagation(),n=e.target,"live"!=window.zs_rendering_mode)return n.querySelector("[id=zsform_submit]").disabled=!1,void alert("Subscribers cannot be added in the preview mode.");n.querySelector("[id=zsform_submit]").disabled=!0,function(e){for(var a=e.querySelectorAll(".zpform-errormsg"),t=0;t<a.length;t++){var r=a[t];r.parentNode.removeChild(r)}}(n);for(var a,t,o="/siteapps/zsforms/"+n.getAttribute("data-form-link-name")+"/addrecord",s=n.elements,l=$D.findParent(n,"zpelem-lpform").getAttribute("data-element-id"),d=[],u={},c=new FormData,m={},f=0,p=[],g=0;g<s.length;g++){var h=s[g],v=h.getAttribute("data-field-type"),b=h.getAttribute("data-field-predefined-type");if(!("hidden"==h.type&&"hidden"!=v||"submit"==h.type||"reset"==h.type||$D.hasClass(h,"datepicker__proxy-el")||null==v||""==h.name))if("captcha_verify"!=v){if(!u[h.name]){var y={};y.field_type=b||v,u[h.name]=y}var _=u[h.name];if("radio"==v||"checkbox"==v)"radio"==h.type&&h.checked&&(_.field_value=h.value),"checkbox"==h.type&&h.checked&&_&&(_.hasOwnProperty("field_value")||(_.field_value=[]),_.field_value.push(h.value));else if("date"==v||"datetime"==v)_.field_value=h.getAttribute("data-value");else if("terms_conditions"==v)_.field_value=h.checked?h.value:"";else if("file"==v){var S=h.getAttribute("data-field-id");$D.getById(S);if(void 0!=h.files[0]){var z=/^[^<>]*$/.test(h.files[0].name),A=document.createElement("div");A.className="zpform-errormsg";var C=n.querySelector("[data-form-field-container="+S+"]");if(h.files[0].name.length>100)return A.innerText=i18n.get("zsforms.formdata.filename.maxlen"),C.appendChild(A),void i(n,i18n.get("forms.error.msg"),"error");
2if(!z)return A.innerText=i18n.get("zsforms.formdata.filename.invalid"),C.appendChild(A),void i(n,i18n.get("forms.error.msg"),"error");var I={};I.file=h.files[0],I.field_id=S,p.push(I),m.file=p,f+=1,m.file_length=f}}else"submit"!=h.type&&"reset"!=h.type&&(_.field_value=h.value);d.includes(h.name)||d.push(h.name)}else t=h.value,a=h.getAttribute("data-captcha-digest")}var T={};if(T.form_data=u,T.zs_resource_id=window.zs_resource_id,T.form_id=l,m.file)for(g=0;g<m.file_length;g++)c.append(m.file[g].field_id,m.file[g].file);var k=["zfpABEnabled","zfpBucket","zfpNewVisitor","zfpVisitId","zfpVisitorId","zabUserId","zabVisitId","zfpPZBucket","zfpType"],w={captcha_text:t,captcha_digest:a};T.captcha_obj=w;var B={};B.lpageportal=window.lpageportal;for(var M=0;M<k.length;M++){var N=k[M];B[N]=function(e){var a=new RegExp(e+"=[^;]*"),t=document.cookie,r=a.exec(t);{if(r){var i=r[0].split("=");return unescape(i[1])}return null}}(N)}T.lp_data=B,c.append("record",JSON.stringify(T)),$X.post({url:o,headers:zsUtils.getCSRFHeader(),formData:c,handler:r,error:{condition:function(){return 200!=this.status}},errorHandler:function(){var e=JSON.parse(this.responseText),a=i18n.get("product.message.error.update_to_cart");"This file exceeds the size limit."==e.developer_message&&(a=i18n.get("zsforms.error.file.size",2048)),i(n,a,"error")},args:n})}function r(e){var a=e.getAttribute("data-success-msg-text")||i18n.get("forms.placeholder.successmessage");if(200==this.status){var t=JSON.parse(this.responseText);if("57004"==t.status_code){var r=t.submit_response,n=Object.keys(r),o=!1;if(n.forEach(function(a){if("CAPTCHA"==a){var t=r[a],s=e.querySelector("[data-form-field-container='CAPTCHA']"),l=$D.getByClass("captcha_text",s)[0];if(l){if(1==n.length){(c=document.createElement("div")).className="zpform-errormsg",c.innerText=i18n.get("portal.signup.captcha.incorrect"),s.appendChild(c),l.focus(),e.querySelector("[id=zsform_submit]").disabled=!1}l.setAttribute("data-captcha-digest",t.DIGEST);$D.getByClass("captcha_img",s)[0].src=t.CAPTCHAURL,l.value=""}}else{var d=r[a].code,u="";if("RECORD_COUNT"==a||"SUBMIT_NOT_ALLOWED"==a)"57005"==d&&(u=i18n.get("zsforms.record.countexceeded")),"57009"==d&&(u=i18n.get("zsforms.formdata.submitnotallowed")),i(e,""!=u?u:r[u],"error");else{"57000"==d?u=i18n.get("zsforms.error.field.required"):"10038"==d?u=i18n.get("portal.signup.entervalidemail"):"10040"==d?u=i18n.get("zsforms.formerror.minvalue",r[a].args.min):"10039"==d?u=i18n.get("zsforms.formerror.maxvalue",r[a].args.max):"57018"==d?u=cms_i18n("zsforms.formerror.custompastdate",r[a].args["past_date_"+a]):"57015"==d?u=cms_i18n("zsforms.formerror.customfuturedate",r[a].args["future_date_"+a]):"57014"==d?u=i18n.get("zsforms.formerror.customfromdate",r[a].args.start_date):"57021"==d?u=i18n.get("zsforms.formerror.customtodate",r[a].args.end_date):"57020"==d&&(u=i18n.get("zsforms.formerror.customfromtodate",r[a].args.start_date,r[a].args.end_date));var c;(c=document.createElement("div")).className="zpform-errormsg",c.innerText=""!=u?u:r[a];var m=e.querySelector("[data-form-field-container="+a+"]");m.hasAttribute("data-form-field-label-inside")?$D.insertAfter(c,m):m.appendChild(c),o=!0}}}),o){i(e,i18n.get("forms.error.msg"),"error");var s=$D.get(".zpform-errormsg",e);s&&s.parentElement.scrollIntoView()}return}if("0"==t.status_code)i(e,a,"success");else{if("57012"!=t.status_code)return void i(e,t.status_message,"error");i(e,i18n.get("zsforms.error.oneentryperip"),"error")}var l=e.getAttribute("data-submit-action-type"),d=e.getAttribute("data-submit-link-url"),u={action_type:l,url:d,popup_link:e.getAttribute("data-popup-name"),elm_id:e.getAttribute("id")};$E.dispatch("lpform:submit",{status:"success",success_msg_text:a,submit_action:u}),e.reset(),l&&d&&("externalLink"===l||d.startsWith("//")?(d.startsWith("http://")||d.startsWith("https://")||d.startsWith("//")||(d="http://"+d),window.open(d,"_self")):"fileLink"===l?function(e){var a=document.createElement("a");a.setAttribute("href",e),a.setAttribute("download",""),document.body.appendChild(a),a.click()}(d):(d=window.location.origin+d,window.open(d,"_self")))}}function i(e,t,r){var i=e.getAttribute("data-form-link-name"),n=e.querySelector("[data-element-id=formMsg_"+i+"]");n.style.color="success"==r?"green":"red",n.innerText=t,n.parentNode.style.display="",setTimeout(function(){n.parentNode.style.display="none"},5e3);var o=$D.get("[data-field-type='captcha_verify']",e);o&&a(o),e.querySelector("[id=zsform_submit]").disabled=!1}$E.callOnLoad(function(){var r=["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antigua & Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bonaire","Bosnia & Herzegovina","Botswana","Brazil","British Indian Ocean Ter","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Canary Islands","Cape Verde","Cayman Islands","Central African Republic","Chad","Channel Islands","Chile","China","Christmas Island","Cocos Island","Colombia","Comoros","Congo","Cook Islands","Costa Rica","Cote D'Ivoire","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Ter","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Great Britain","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guinea","Guyana","Haiti","Hawaii","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea North","Korea South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia","Madagascar","Malaysia","Malawi","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Midway Islands","Moldova","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Myanmar","Nambia","Nauru","Nepal","Netherland Antilles","Netherlands (Holland, Europe)","Nevis","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Norway","Oman","Pakistan","Palau Island","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn Island","Poland","Portugal","Puerto Rico","Qatar","Republic of Montenegro","Republic of Serb
2ia","Reunion","Romania","Russia","Rwanda","St Barthelemy","St Eustatius","St Helena","St Kitts-Nevis","St Lucia","St Maarten","St Pierre & Miquelon","St Vincent & Grenadines","Saipan","Samoa","Samoa American","San Marino","Sao Tome & Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Tahiti","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tokelau","Tonga","Trinidad & Tobago","Tunisia","Turkey","Turkmenistan","Turks & Caicos Is","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Vatican City State","Venezuela","Vietnam","Virgin Islands (Brit)","Virgin Islands (USA)","Wake Island","Wallis & Futana Is","Yemen","Zaire","Zambia","Zimbabwe"],i=["Male","Female"],n=document.querySelectorAll("[data-element-type='lpform']");require(["hbDatepicker"],function(e){e.init()});var o={};new URL(window.location.href).searchParams.forEach(function(e,a){a.startsWith("zsf_")&&(a=a.replace("zsf_","").split("."),o[a[0]]||(o[a[0]]={}),o[a[0]][a[1]]=e)});for(var s=0;s<n.length;s++){var l=$D.getByTag("form",n[s])[0];if(l){$E.bind(l,"submit",t);for(var d=$D.getAll("[data-field-predefined-type='country']",l),u=0;u<d.length;u++)d[u].appendChild(e(r));for(var c=$D.getAll("[data-field-predefined-type='gender']",l),m=0;m<c.length;m++)c[m].appendChild(e(i));var f=$D.get("[data-field-type='captcha_verify']",l);f&&a(f);try{var p=l.getAttribute("data-form-link-name"),g=o[p];if(g)for(var h=Object.keys(g),v=0;v<h.length;v++){var b=h[v],y=g[b];$D.get("[data-field-link-name='"+b+"']",l).value=y}}catch(e){}}}});var n;return{lpFormSubmit:t}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.