function zkpi(d,e){return zk.isLoaded(d)?null:{n:d,p:zk.$package(d,!1,e)}}function zkpb(d,e,q,p,n,f){zkx([0,d,zk.copy(f,{dt:e,cu:q,uu:p,ru:n}),{},[]])}zkpe=zk.$void;function zkver(d,e,q,p,n,f){zk.version=d;zk.build=e;zk.contextURI=q;zk.updateURI=p;for(var r in n)zk.setVersion(r,n[r]);zk.feature||(zk.feature={standard:!0});zkopt(f)}function zkmld(d,e){if(d.superclass){var q=d.molds={},p;for(p in e){var n=e[p];q[p]="function"==typeof n?n:n[0].molds[n[1]]}}else zk.afterLoad(function(){zkmld(d,e)})}
function zkamn(d,e){zk.load(d,function(){setTimeout(function(){zk.afterMount(e)},20)})}
(function(){function d(a){var c,b={};for(c=a.length;c--;){var A=a[c];A.pked||(A.pked=!0,e(b,A[0],A[1]))}for(var C in b)c=C.lastIndexOf("."),0<=c&&zk._load(C.substring(0,c),b[C])}function e(a,b,k){var c=k[0];0===c?c=k[2].wc:1===c&&(k[0]=c="zhtml.Widget");c&&(a[c]=b);k=k[4];for(c=k.length;c--;)e(a,b,k[c])}function q(){for(;;){if(zk.loading)return zk.afterLoad(q);var c=a.shift();if(!c)break;b.push([c[0],v(c[3]||c[0],c[1],!0),c[2],c[4]]);if(w(q))return}p()}function p(){for(;;){if(a.length)return;if(zk.loading)return zk.afterLoad(p);
if(11>zk.ie&&!jq.isReady)return jq(p);var c=b.shift();if(!c)break;var h=c[1];if(c[2])h.bind(c[0]);else{var k;zk.processing&&(k=jq("#zk_proc")).length&&k.hasClass("z-loading")&&k.parent().hasClass("z-temp")&&(k[0].id="zna",jq("#zk_proc").length||zUtl.progressbox("zk_proc",window.msgzk?msgzk.PLEASE_WAIT:"Processing...",!0));h.replaceHTML("#"+h.uuid,c[0])}y(c[3])}n()}function n(){if(!a.length&&!b.length&&(zk.booted=!0,zk.mounting=!1,l(n),g&&++g.s,zk.clientinfo||zk.endProcessing(),zk.bmk.onURLChange(),
zk.pfmeter)){var c=zk.Desktop.all,h;for(h in c)zAu._pfdone(c[h],h)}}function f(){for(;;){if(zk.loading)return zk.afterLoad(f);var a=t.shift(),b;if(!a)break;if(b=a[4][1])u.$=function(a,c){return b(x(a,c))};try{var k=v(null,a[1])}finally{b&&(u.$=x)}a[4][0](k);if(w(f))return}r()}function r(){zk.mounting=!1;l(r);zAu._doCmds();l(r)}function l(a){for(var c;c=z.shift();)if(c(),zk.loading)return zk.afterLoad(a),!0}function y(a){a&&a.length&&zk._apac(function(){for(var c=0;c<a.length;c+=2)zAu.process(a[c],
a[c+1])},"f0")}function v(a,b,k){var c,h,d=b[0],g=b[1],f=b[2]||{},t=b[3]||{};if(0===d){var m=(d=zk.cut(f,"wc"))?zk.$import(d):zk.Page;(h=new m({uuid:g},zk.cut(f,"ct"))).inServer=!0;a&&a.appendChild(h,k)}else{if((m="#stub"==d)||"#stubs"==d){if(!(h=x(g)||zAu._wgt$(g)))throw"Unknown stub "+g;d=new u;(h.desktop||9===h.z_rod)&&h.unbind();zk._wgtutl.replace(h,d,m)}else{m=zk.$import(d);if(!m)throw"Unknown widget: "+d;(h=new m(zkac)).inServer=!0;h.uuid=g;(c=b[5])&&h.setMold(c)}a&&a.appendChild(h,k);if(c=
zk.cut(f,"z$is"))h.z$is=!0,h._fellows={};(c=zk.cut(f,"z$al"))&&zk.afterLoad(function(){for(var a in c)h.set(a,c[a](),!0)});(c=zk.cut(t,"z$al"))&&zk.afterLoad(function(){for(var a=0,b=c.length;a<b;a++){var k=c[a],d;for(d in k)h.set(d,k[d](),!0)}})}for(var e in f)h.set(e,f[e],!0);for(e in t)for(c=t[e],k=0,a=c.length;k<a;k++)h.set(e,c[k],!0);a=0;b=b[4];for(t=b.length;a<t;++a)v(h,b[a]);return h}function w(a){var c=jq.now(),b=c-B;if(2500<b)return B=c,b>>=6,setTimeout(a,10>b?b:10),!0}var u=zk.Widget,x=
u.$,a=[],b=[],t=[],z=[],E=[],m={},g={s:0,e:-1,f0:[],f1:[]},B=jq.now();jq(function(){g.i=setInterval(function(){var a;if(!(a=zk.booted&&!zk.mounting)){a:{var b=zk.Desktop.all;for(d in b)if(b[d].stateless){var d=!0;break a}d=void 0}a=b=d}if(a)if(b||g.s==g.e)for(clearInterval(g.i),d=g.f0.concat(g.f1),g=null;b=d.shift();)b();else g.e=g.s},25)});zk._apac=function(a,b){if(g)return g[b||"f1"].push(a);zk.afterMount(a)};zk.afterMount=function(a,b){if(a)if(jq.isReady)if(zk.mounting)z.push(a);else if(zk.loading)zk.afterLoad(a);
else{if(0>b)return a(),!0;setTimeout(a,b)}else jq(function(){zk.afterMount(a)})};zk.afterResize=function(a){a&&E.push(a)};zk.doAfterResize=function(){for(var a;a=E.shift();)a()};zk.copy(window,{zkdt:function(a,b,d,f){var c=zk.Desktop.$(a);null==c?(c=new zk.Desktop(a,b,d,f),zk.pfmeter&&zAu._pfrecv(c,a)):(null!=d&&(c.updateURI=d),null!=b&&(c.contextURI=b),null!=f&&(c.requestPath=f));return m.curdt=c},zkx:function(b,h,k,g){zk.mounting=!0;try{g&&jq.globalEval(g);g=f;var c=t,e;if(!h||!h.length){var n=
h;b&&(h=k,k=null);g=q;c=a}if(b){if(0===b[0]){var l=b[2];zkdt(zk.cut(l,"dt"),zk.cut(l,"cu"),zk.cut(l,"uu"),zk.cut(l,"ru"));if(e=zk.cut(l,"ow"))e=u.$(e)}c.push([m.curdt||(m.curdt=zk.Desktop.$()),b,m.bindOnly,e,h]);d(c)}n?setTimeout(g,0):w(g)||g();y(k)}catch(D){zk.mounting=!1,zk.error("Failed to mount: "+(D.message||D)),setTimeout(function(){throw D;},0)}},zkx_:function(a,b,d){B=jq.now();a[1]=[b,d];zkx.apply(this,a)},zkac:function(){y(arguments)},zkmx:function(){zkmb();try{zkx.apply(window,arguments)}finally{zkme()}},
zkmb:function(a){m.bindOnly=a;a=390-(jq.now()-B);zk.startProcessing(0<a?a:0)},zkme:function(){m.curdt=null;m.bindOnly=!1},zkdh:function(a,b){zk.addDataHandler("data-"+a,b)}})})(window);
jq(function(){function d(a){var b=a.target;if(b&&!b.$weave){var d=a.name,f=y[d];f&&(!zk.ios||"doTooltipOver_"!=f&&"doTooltipOut_"!=f)&&b[f].call(b,a);a.stopped||a.originalEvent&&a.originalEvent.zkstopped||b["do"+d.substring(2)+"_"].call(b,a);a.domStopped&&a.domEvent.stop()}}function e(a,b,e){zk.clickPointer[0]=a.pageX;zk.clickPointer[1]=a.pageY;b||(b=a.target);var l=a.domEvent,t=document.body,m=zk.currentFocus;l.clientX<=t.clientWidth&&l.clientY<=t.clientHeight&&f.mimicMouseDown_(b,e,a.which);d(a);
if(m&&zk.ie){var g=jq(m)[0];g&&setTimeout(function(){try{var a=zk.currentFocus;a==m||g.offsetWidth||g.offsetHeight||(zk.focusBackFix=!0,a.focus())}catch(c){zk.debugLog(c.message||c)}finally{delete zk.focusBackFix}})}}function q(){if(l.time){var a=jq.now();if(zk.mounting||zk.loading||a<l.time||zk.animating())setTimeout(q,10);else{l.time=null;l.lastTime=a+1E3;zAu._onClientInfo();l.inResize=!0;try{zWatch.fire("beforeSize"),zWatch.fire("onFitSize",null,{reverse:!0}),zWatch.fire("onSize"),zWatch.fire("afterSize"),
l.lastTime=jq.now()+8}finally{l.inResize=!1}}}}function p(a,b){if(a.afterKeyDown_)return b.target=a,a.afterKeyDown_(b,!0)}function n(){var a=!zk.opera&&!zk.keepDesktop;if(a||zk.pfmeter){zk.rmDesktoping=!0;try{var b=zk.Desktop.all,d;for(d in b)zAu._rmDesktop(b[d],!a)}catch(z){zk.debugLog(z.message||z)}}}var f=zk.Widget,r=[],l={},y={onClick:"doSelect_",onRightClick:"doSelect_",onMouseOver:"doTooltipOver_",onMouseOut:"doTooltipOut_"};zk.copy(zk,{beforeUnload:function(a,b){b&&b.remove?r.$remove(a):r.push(a)}});
var v,w;jq(document).keydown(function(a){var b=f.$(a,{child:!0}),e=new zk.Event(b,"onKeyDown",a.keyData(),null,a);if(b)d(e),!e.stopped&&b.afterKeyDown_&&(b.afterKeyDown_(e),e.domStopped&&e.domEvent.stop());else if(zk.invokeFirstRootForAfterKeyDown)a:{b=zk.Desktop.all;var l=zk.Page,n;for(n in b)for(var m=b[n].firstChild;m;m=m.nextSibling)if(m.$instanceof(l))for(var g=m.firstChild;g;g=g.nextSibling){if(p(g,e))break a}else if(p(m,e))break a}if(27==a.keyCode&&(0<zk._noESC||zAu.shallIgnoreESC()))return!1}).keyup(function(a){var b=
zk.keyCapture;b?zk.keyCapture=null:b=f.$(a,{child:!0});d(new zk.Event(b,"onKeyUp",a.keyData(),null,a))}).keypress(function(a){var b=zk.keyCapture;b||(b=f.$(a,{child:!0}));d(new zk.Event(b,"onKeyPress",a.keyData(),null,a))}).bind("paste",function(a){var b=zk.keyCapture;b||(b=f.$(a,{child:!0}));d(new zk.Event(b,"onPaste",a.keyData(),null,a))}).bind("zcontextmenu",function(a){zk.clickPointer[0]=a.pageX;zk.clickPointer[1]=a.pageY;var b=f.$(a,{child:!0});return b&&(11>zk.ie&&(a.which=3),b=new zk.Event(b,
"onRightClick",a.mouseData(),{},a),d(b),b.domStopped)?!1:!(11>zk.ie)||a.returnValue}).bind("zmousedown",function(a){zk.mobile&&(zk.currentPointer[0]=a.pageX,zk.currentPointer[1]=a.pageY);var b=f.$(a,{child:!0});e(new zk.Event(b,"onMouseDown",a.mouseData(),null,a),b)}).bind("zmouseup",function(a){var b=zk.Draggable.ignoreMouseUp();!0!==b&&(null!=b&&e(b,null,!0),(b=zk.mouseCapture)?zk.mouseCapture=null:b=f.$(a,{child:!0}),d(new zk.Event(b,"onMouseUp",a.mouseData(),null,a)))}).bind("zmousemove",function(a){zk.currentPointer[0]=
a.pageX;zk.currentPointer[1]=a.pageY;var b=zk.mouseCapture;b||(b=f.$(a,{child:!0}));d(new zk.Event(b,"onMouseMove",a.mouseData(),null,a))}).mouseover(function(a){zk.mobile||(zk.currentPointer[0]=a.pageX,zk.currentPointer[1]=a.pageY,d(new zk.Event(f.$(a,{child:!0}),"onMouseOver",a.mouseData(),{ignorable:1},a)))}).mouseout(function(a){d(new zk.Event(f.$(a,{child:!0}),"onMouseOut",a.mouseData(),{ignorable:1},a))}).click(function(a){zk.Draggable.ignoreClick()||zk.android&&v&&v+400>a.timeStamp&&w&&w==
a.target||(v=a.timeStamp,w=a.target,zjq._fixClick(a),1==a.which&&d(new zk.Event(f.$(a,{child:!0}),"onClick",a.mouseData(),{},a)))}).bind("zdblclick",function(a){if(!zk.Draggable.ignoreClick()){var b=f.$(a,{child:!0});if(b&&1==a.which&&(a=new zk.Event(b,"onDoubleClick",a.mouseData(),{},a),d(a),a.domStopped))return!1}}).bind((void 0!==document.hidden?"":zk.vendor_)+"visibilitychange",function(a){zAu._onVisibilityChange()});var u=function(a){if(!(zk.mounting||(a=jq.now(),l.lastTime&&a<l.lastTime||l.inResize))){var b=
11>zk.ie||zk.android?250:50;l.time=a+b-1;setTimeout(q,b);zk.mobile&&zAu._cInfoReg&&(jq("#zk_proc").length||jq("#zk_showBusy").length||zUtl.progressbox("zk_proc",window.msgzk?msgzk.PLEASE_WAIT:"Processing...",!0))}};zk.mobile?(jq(window).bind("orientationchange",u),zk.ios&&jq(window).bind("pagehide",function(){zk.unloading=!0;zk.rmDesktoping||n()})):jq(window).resize(u);jq(window).scroll(function(){zWatch.fire("onScroll")}).unload(function(){zk.unloading=!0;!zk.ie&&zk.rmDesktoping||n()});var x=window.onbeforeunload;
window.onbeforeunload=function(){var a;if(!zk.skipBfUnload){if(zk.confirmClose)return setTimeout(function(){zAu.disabledRequest=!1},0),zk.confirmClose;for(var b=0;b<r.length;++b)if(a=r[b]())return a}if(x&&(a=x.apply(window,arguments)))return a;zk.unloading=!0;zk.ie||n()};zk.afterMount(function(){jq("script.z-runonce").remove()})});
