(function(){function t(a,c){a.push(c);c=c.frames;for(var b=0,e=c.length;b<e;++b)t(a,c[b])}function v(a){for(var c=a,b=c,e=-1;b&&"min"==b._hflex&&(delete b._hflexsz,c=b,++e,!b.ignoreFlexSize_("w"));b=b.parent);for(var d=b=a,f=-1;d&&"min"==d._vflex&&(delete d._vflexsz,b=d,++f,!d.ignoreFlexSize_("h"));d=d.parent);return 0<e||0<f?e>f?c:b:a}function w(a){var c=new Image;c.onerror=c.onload=function(){delete n[a]};c.src=a}var q={lt:"<",gt:">",amp:"&",quot:'"'},u={},r;for(r in q)u[q[r]]=r;zUtl={isChar:function(a,
c){return c.digit&&"0"<=a&&"9">=a||c.upper&&"A"<=a&&"Z">=a||c.lower&&"a"<=a&&"z">=a||c.whitespace&&(" "==a||"\t"==a||"\n"==a||"\r"==a)||c[a]},parseMap:function(a,c,b){var e={};if(a){a=a.split(c||",");if(b){var d=[],f=new RegExp(b,"g");b="";for(var g,h;void 0!==(g=a.shift());)(h=(b+=g).match(f))&&1!=h.length?(b&&d.push(b),b=""):b+=c;a=d}for(c=a.length;c--;)b=a[c].trim(),h=b.indexOf("="),-1!=h&&(e[b.substring(0,h)]=b.substring(h+1,b.length).trim())}return e},encodeXMLAttribute:function(){var a={'"':"&quot;",
"'":"&#x27;","`":"&#x60;"},c=function(b){return a[b]},b=/(?:"|'|`)/,e=/(?:"|'|`)/g;return function(a){a=null!=a?String(a):"";return b.test(a)?a.replace(e,c):a}}(),encodeXML:function(){function a(a){return e.test(a)?a.replace(d,b):a}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},b=function(a){return c[a]},e=/(?:&|<|>|"|'|`)/,d=/(?:&|<|>|"|'|`)/g;return function(b,c){b=null!=b?String(b):"";if(!c)return a(b);var d=b.length,e=c&&c.pre,f=e||c&&c.multiline;var k=c?c.maxlength:
0;if(!f&&k&&d>k){for(;0<k&&" "==b.charAt(k-1);)--k;c.maxlength=0;return zUtl.encodeXML(b.substring(0,k)+"...",c)}c="";var g=0,n;if(f||e)for(k=0;k<d;++k){var p=b.charAt(k);(n=u[p])?(c+=b.substring(g,k)+"&"+n+";",g=k+1):f&&"\n"==p?(c+=b.substring(g,k)+"<br/>\n",g=k+1):!e||" "!=p&&"\t"!=p||(c+=b.substring(g,k)+"&nbsp;","\t"==p&&(c+="&nbsp;&nbsp;&nbsp;"),g=k+1)}else return a(b);if(!g)return b;g<d&&(c+=b.substring(g));return c}}(),decodeXML:function(a){var c="";if(!a)return c;for(var b=0,e=a.length,d=
0;d<e;++d)if("&"==a.charAt(d)){var f=a.indexOf(";",d+1);if(0<=f){var g="#"==a.charAt(d+1)?String.fromCharCode("x"==a.charAt(d+2).toLowerCase()?parseInt(a.substring(d+3,f),16):parseInt(a.substring(d+2,f),10)):q[a.substring(d+1,f)];g&&(c+=a.substring(b,d)+g,b=(d=f)+1)}}return b?b<e?c+a.substring(b):c:a},cellps0:' cellpadding="0" cellspacing="0" border="0"',img0:'<img style="height:0;width:0"/>',i0:'<i style="height:0;width:0"/>',now:jq.now,today:function(a,c){var b=Dates.newInstance().tz(c),e=0,d=0,
f=0,g=0;if("string"==typeof a){var h=a.toLowerCase();if(0<=h.indexOf("h")||0<=h.indexOf("k"))e=b.getHours();0<=a.indexOf("m")&&(d=b.getMinutes());0<=a.indexOf("s")&&(f=b.getSeconds());0<=a.indexOf("S")&&(g=b.getMilliseconds())}else if(a)return b;return Dates.newInstance([b.getFullYear(),b.getMonth(),b.getDate(),e,d,f,g],c)},isAncestor:function(a,c){if(!a)return!0;for(;c;c=c.getParent?c.getParent():c.parent)if(a==c)return!0;return!1},progressbox:function(a,c,b,e,d){if(b&&zk.Page.contained.length){d=
zk.Page.contained.length;for(var f=zk.Page.contained[--d];f;f=zk.Page.contained[--d])f._applyMask||(f._applyMask=new zk.eff.Mask({id:f.uuid+"-mask",message:c,anchor:f.$n()}))}else{d&&d.busy&&(zk.busy++,jq.focusOut());d=jq.innerX();f=jq.innerY();var g=' style="left:'+d+"px;top:"+f+'px"',h=a+"-t",l=a+"-m",m='<div id="'+a+'"';b&&(m+='><div id="'+l+'" class="z-modal-mask"'+g+"></div");m+='><div id="'+h+'" class="z-loading"'+g+'><div class="z-loading-indicator"><span class="z-loading-icon"></span> '+c+
"</div></div>";e&&(m+='<div class="'+e+'"></div>');jq(document.body).append(m+"</div>");c=jq(a,zk);e=c[0];g=jq(h,zk);a=g[0];h=a.style;b&&(m=g.css("z-index"),"auto"==m&&(m=1),e.z_mask=new zk.eff.FullMask({mask:jq(l,zk)[0],zIndex:m-1}));if(b&&g.length)h.left=jq.px((jq.innerWidth()-a.offsetWidth)/2+d),h.top=jq.px((jq.innerHeight()-a.offsetHeight)/2+f);else if(b=zk.progPos)e=jq.innerWidth(),l=jq.innerHeight(),e-=zk(a).offsetWidth(),a=l-zk(a).offsetHeight(),0<=b.indexOf("mouse")?(d=zk.currentPointer,l=
d[0]+10,b=d[1]+10):(l=0<=b.indexOf("left")?d:0<=b.indexOf("right")?d+e-1:0<=b.indexOf("center")?d+e/2:0,b=0<=b.indexOf("top")?f:0<=b.indexOf("bottom")?f+a-1:0<=b.indexOf("center")?f+a/2:0,l=l<d?d:l,b=b<f?f:b),h.left=jq.px(l),h.top=jq.px(b);c.zk.cleanVisibility()}},destroyProgressbox:function(a,c){c&&c.busy&&0>--zk.busy&&(zk.busy=0);a=jq(a,zk);var b;a.length&&((b=a[0].z_mask)&&b.destroy(),a.remove());b=zk.Page.contained.length;for(a=zk.Page.contained[--b];a;a=zk.Page.contained[--b])a._applyMask&&(a._applyMask.destroy(),
a._applyMask=null)},go:function(a,c){c=c||{};if(c.target)open(a,c.target);else if(c.overwrite)location.replace(a?a:location.href);else{if(a){location.href=a;c=a.indexOf("#");if(0>c)return;a=0<=c?a.substring(0,c):a;a:{c=location.href;var b=c.indexOf("//");if(0<b&&(b=c.indexOf("/",b+2),0<b)){b=c.substring(b);break a}b=void 0}c=b.indexOf("#");0<=c&&(b=b.substring(0,c));if(b!=a)return}location.reload()}},frames:function(a){var c=[];t(c,a);return c},intsToString:function(a){if(!a)return"";for(var c=[],
b=0,e=a.length;b<e;++b)c.push(a[b]);return c.join()},stringToInts:function(a,c){if(null==a)return null;for(var b=[],e=0;;){var d=a.indexOf(",",e);e=(0<=d?a.substring(e,d):a.substring(e)).trim();if(0==e.length){if(0>d)break;b.push(c)}else b.push(zk.parseInt(e));if(0>d)break;e=d+1}return b},mapToString:function(a,c,b){c=c||"=";b=b||" ";var e=[],d;for(d in a)e.push(b,d,c,a[d]);e[0]="";return e.join("")},appendAttr:function(a,c,b){return c||b?" "+a+'="'+c+'"':""},fireSized:function(a,c){if(a.desktop)if(zUtl.isImageLoading()||
zk.clientinfo){var b=arguments.callee;setTimeout(function(){return b(a,c)},20)}else a=v(a),0>c||zWatch.fireDown("beforeSize",a,null,0<c),zWatch.fireDown("onFitSize",a,{reverse:!0}),zWatch.fireDown("onSize",a),zWatch.fireDown("afterSize",a)},fireShown:function(a,c){zWatch.fireDown("onShow",a);zUtl.fireSized(a,c)},loadImage:function(a){n[a]||(n[a]=!0,w(a))},isImageLoading:function(){for(var a in n)return!0;return!1},getWeekOfYear:function(a,c,b,e,d){a=Dates.newInstance([a,c,b,0,0,0,0],"UTC");c=a.getDay();
a.setDate(b-d+e-(e>c?c:c-7));b=Dates.newInstance([a.getFullYear(),0,1],"UTC");return Math.ceil(((a-b)/864E5+1)/7)},convertDataURLtoBlob:function(a){var c=window.atob(a.split(",")[1]);a=a.split(",")[0].split(":")[1].split(";")[0];for(var b=c.length,e=new ArrayBuffer(b),d=new Uint8Array(e),f=0;f<b;f++)d[f]=c.charCodeAt(f);return new Blob([e],{type:a})},getDevicePixelRatio:function(){return window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI}};var n={}})();
