// CAS: "1.0.0"
// This software uses the following Open Source software:
// - a simplified (and thus modified) version of stringencoding
//	* Licensed under Apache License 2.0 (can be found here: http://www.apache.org/licenses/)
//	* Source: http://code.google.com/p/stringencoding/
// - requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
//	* MIT license
//	* Source: https://gist.github.com/paulirish/1579671
var l,aa,ba;
(function(){function a(x){var y=0;this.get=function(){return y>=x.length?-1:Number(x[y])};this.offset=function(A){y+=A;if(0>y)throw Error("Seeking past start of the buffer");if(y>x.length)throw Error("Seeking past EOF");}}function b(x){var y=0;this.get=function(){return y>=x.length?-1:x[y]};this.offset=function(A){y+=A;if(0>y)throw Error("Seeking past start of the buffer");if(y>x.length)throw Error("Seeking past EOF");}}function c(x){var y=0;this.h=function(A){var D=-1,N;for(N=0;N<arguments.length;++N)D=Number(arguments[N]),
x[y++]=D;return D}}function d(x){var y=0,A=function(){for(var D=[],N=0,va=x.length;N<x.length;){var ca=x.charCodeAt(N);if(55296<=ca&&57343>=ca)if(56320<=ca&&57343>=ca)D.push(65533);else if(N===va-1)D.push(65533);else{var S=x.charCodeAt(N+1);56320<=S&&57343>=S?(ca&=1023,S&=1023,N+=1,D.push(65536+(ca<<10)+S)):D.push(65533)}else D.push(ca);N+=1}return D}();this.offset=function(D){y+=D;if(0>y)throw Error("Seeking past start of the buffer");if(y>A.length)throw Error("Seeking past EOF");};this.get=function(){return y>=
A.length?-1:A[y]}}function e(){var x="";this.m=function(){return x};this.h=function(y){65535>=y?x+=String.fromCharCode(y):(y-=65536,x+=String.fromCharCode(55296+(y>>10&1023)),x+=String.fromCharCode(56320+(y&1023)))}}function f(x,y){if(x)throw Error("EncodingError");return y||65533}function g(){throw Error("EncodingError");}function h(x){x=String(x).trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(J,x))return J[x];throw Error("EncodingError: Unknown encoding: "+x);}function k(x){var y=
x.fatal,A=0,D=0,N=0,va=0;this.decode=function(ca){var S=ca.get();if(-1===S)return 0!==D?f(y):-1;ca.offset(1);if(0===D){if(0<=S&&127>=S)return S;if(194<=S&&223>=S)D=1,va=128,A=S-192;else if(224<=S&&239>=S)D=2,va=2048,A=S-224;else if(240<=S&&244>=S)D=3,va=65536,A=S-240;else return f(y);A*=Math.pow(64,D);return null}if(!(128<=S&&191>=S))return va=N=D=A=0,ca.offset(-1),f(y);N+=1;A+=(S-128)*Math.pow(64,D-N);if(N!==D)return null;ca=A;S=va;va=N=D=A=0;return S<=ca&&1114111>=ca&&!(55296<=ca&&57343>=ca)?ca:
f(y)}}function q(){this.encode=function(x,y){var A=y.get();if(-1===A)return-1;y.offset(1);if(55296<=A&&57343>=A)return g(A);if(0<=A&&127>=A)return x.h(A);if(128<=A&&2047>=A){var D=1;var N=192}else 2048<=A&&65535>=A?(D=2,N=224):65536<=A&&1114111>=A&&(D=3,N=240);for(y=x.h(Math.floor(A/Math.pow(64,D))+N);0<D;)y=x.h(128+Math.floor(A/Math.pow(64,D-1))%64),--D;return y}}function n(x,y){var A=y.fatal;this.decode=function(D){var N=D.get();if(-1===N)return-1;D.offset(1);if(0<=N&&127>=N)return N;D=x[N-128];
return null===D?f(A):D}}function B(x){this.encode=function(y,A){var D=A.get();if(-1===D)return-1;A.offset(1);if(0<=D&&127>=D)return y.h(D);A=x.indexOf(D);A=-1===A?null:A;null===A&&g(D);return y.h(A+128)}}var z={},J={};[{encodings:[{labels:"csisolatin2 iso-8859-2 iso-ir-101 iso8859-2 iso_8859-2 l2 latin2".split(" "),name:"iso-8859-2"},{labels:"csisolatin3 iso-8859-3 iso_8859-3 iso-ir-109 l3 latin3".split(" "),name:"iso-8859-3"},{labels:"csisolatin4 iso-8859-4 iso_8859-4 iso-ir-110 l4 latin4".split(" "),
name:"iso-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso_8859-5","iso-ir-144"],name:"iso-8859-5"},{labels:"arabic csisolatinarabic ecma-114 iso-8859-6 iso_8859-6 iso-ir-127".split(" "),name:"iso-8859-6"},{labels:"csisolatingreek ecma-118 elot_928 greek greek8 iso-8859-7 iso_8859-7 iso-ir-126".split(" "),name:"iso-8859-7"},{labels:"csisolatinhebrew hebrew iso-8859-8 iso-8859-8-i iso-ir-138 iso_8859-8 visual".split(" "),name:"iso-8859-8"},{labels:"csisolatin6 iso-8859-10 iso-ir-157 iso8859-10 l6 latin6".split(" "),
name:"iso-8859-10"},{labels:["iso-8859-13"],name:"iso-8859-13"},{labels:["iso-8859-14","iso8859-14"],name:"iso-8859-14"},{labels:["iso-8859-15","iso_8859-15"],name:"iso-8859-15"},{labels:["iso-8859-16"],name:"iso-8859-16"},{labels:"ascii ansi_x3.4-1968 csisolatin1 iso-8859-1 iso8859-1 iso_8859-1 l1 latin1 us-ascii windows-1252".split(" "),name:"windows-1252"},{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"utf-8"}],heading:"Legacy single-byte encodings"}].forEach(function(x){x.encodings.forEach(function(y){z[y.name]=
y;y.labels.forEach(function(A){J[A]=y})})});var ja={"iso-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,
237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"iso-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,
267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729],"iso-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,
223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729],"iso-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,
1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119],"iso-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,
null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null],"iso-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,
159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"iso-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,
151,152,153,154,155,156,157,158,159,160,null,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"iso-8859-10":[128,
129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,
254,312],"iso-8859-13":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,
247,371,322,347,363,252,380,382,8217],"iso-8859-14":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,
235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255],"iso-8859-15":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,
228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"iso-8859-16":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,
280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255],"windows-1252":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,
210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]};z["utf-8"].Bz=function(x){return new q(x)};z["utf-8"].Az=function(x){return new k(x)};(function(){"iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-10 iso-8859-13 iso-8859-14 iso-8859-15 iso-8859-16 windows-1252".split(" ").forEach(function(x){var y=z[x],A=ja[x];y.Az=function(D){return new n(A,
D)};y.Bz=function(D){return new B(A,D)}})})();ba=function(x){x=x?String(x):"utf-8";var y=Object(y);this.Cj=h(x);this.vr=!1;this.Qh=null;this.Rq={fatal:!!y.fatal};Object.defineProperty&&Object.defineProperty(this,"encoding",{get:function(){return this.Cj.name}});return this};ba.prototype={encode:function(x,y){x=x?String(x):"";y=Object(y);this.vr||(this.Qh=this.Cj.Bz(this.Rq));this.vr=!!y.stream;y=[];var A=new c(y);for(x=new d(x);-1!==x.get();)this.Qh.encode(A,x);if(!this.vr){do var D=this.Qh.encode(A,
x);while(-1!==D);this.Qh=null}return new Uint8Array(y)}};aa=function(x){x=x?String(x):"utf-8";var y=Object(y);this.Cj=h(x);this.Rq={fatal:!!y.fatal};this.tb=this.Cj.Az(this.Rq);Object.defineProperty&&Object.defineProperty(this,"encoding",{get:function(){return this.Cj.name}});return this};aa.prototype={decode:function(x){if(x&&!("buffer"in x&&"byteOffset"in x&&"byteLength"in x))throw new TypeError("Expected ArrayBufferView");x=new Uint8Array(x.buffer,x.byteOffset,x.byteLength);return this.sv(new a(x))},
aL:function(x){if(!x)throw new TypeError("Expected array of bytes");return this.sv(new b(x))},sv:function(x){for(var y=new e,A;-1!==x.get();)A=this.tb.decode(x),null!==A&&-1!==A&&y.h(A);return y.m()}}})();
(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(d){var e=(new Date).getTime(),f=Math.max(0,16-(e-a)),g=window.setTimeout(function(){d(e+f)},f);a=e+f;return g});window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(d){clearTimeout(d)})})();var da;da={Io:1,ng:2,QP:3,SP:4,RP:5,Qt:5};var ea;ea=function(a){this.g=a};ea.prototype={az:function(a){var b=this;return function(c,d,e,f,g,h){c=b.NE(e,b.g.v.la,c,d,f,a,g);return h?c:b.g.dd(c)}},NE:function(a,b,c,d,e,f,g){var h,k=1;f=new fa(f);for(var q;h=e.pop();)q=new fa(h.id),q.Fo(k),f.Rt(q),k+=this.fE(h.fA);a=new m(a,b,c,d);a.Kd(f);(g instanceof p||g instanceof ha)&&a.Fb(g);return a},fE:function(a){var b=0;do++b,a>>>=1;while(0!==a);return b}};var r;r=function(){};
r.lj=function(){return r.ly};r.HB=function(){return r.eF};r.vh=function(a){var b=new t(a.offsetX,a.offsetY);null!==a.currentTarget&&(b=u.rM(a.currentTarget,b));return b};r.Yv=function(a){var b=new t(a.offsetLeft,a.offsetTop);a.offsetParent&&(a=r.Yv(a.offsetParent),b.X+=a.X,b.Y+=a.Y);return b};r.py=!1;r.Oo=function(a){var b=this.AD(a);null!==b&&(a=r.Yv(a.target),b.X-=a.X,b.Y-=a.Y);return b};
r.AD=function(a){return a.pageX&&a.target?new t(a.pageX,a.pageY):(r.py||(r.py=!0,v.error("Evaluation of Touch events not supported because the browser uses an unexpected interface")),null)};r.lH=navigator.userAgent.match(/OS 6(_\d)+ like Mac OS X/i);r.TL=function(){return r.lH};r.aC=function(){var a=void 0!==window.TouchEvent&&"ontouchstart"in window&&"ontouchend"in document;return void 0!==window.PointerEvent&&void 0!==navigator.maxTouchPoints&&0<navigator.maxTouchPoints||a};
r.$B=function(a){return u.Xo(a.RuntimeVersion,16)};r.YB=function(a,b){return u.Xo(a.RuntimeVersion,18)&&2147527629!=b.mh};r.WB=function(a){return u.Xo(a.RuntimeVersion,18,10)};r.Lt=function(){return void 0!==document.scrollingElement};r.XB=function(){return void 0!==window.atob&&void 0!==window.crypto&&void 0!==window.crypto.subtle};
r.ow=function(a,b){a.style.cssText+="outline: none; -webkit-tap-highlight-color: rgba(0,0,0,0);";b&&(a.style.cssText+="display:block;");a.addEventListener("MSHoldVisual",function(c){c.preventDefault()})};r.Ce=function(){return window.devicePixelRatio?window.devicePixelRatio:1};r.Co=function(){return void 0!==window.visualViewport};r.wC=function(a,b){r.ow(a,2E3);r.ow(b,1E3)};r.wx=function(a){if(void 0!==a&&null!==a&&!(0<=a.indexOf("%")))return parseFloat(a)};
r.yx=function(a){if(void 0===a)return null;a=a.split(/[\s,]/);return 4>a.length?null:new w(parseFloat(a[2]),parseFloat(a[3]))};r.NJ=function(a){var b=new XMLHttpRequest;b.open("GET",a.src,!1);b.send();return b.responseXML&&b.responseXML.documentElement?b.responseXML&&b.responseXML.documentElement:null};
r.YD=function(a,b){var c=new XMLHttpRequest;c.open("GET",a.src);c.onreadystatechange=function(){4===c.readyState&&(200===c.status?c.responseXML&&c.responseXML.documentElement?b(c.responseXML.documentElement):b(null):b(null))};c.send()};
r.XI=function(a){try{if(0<=a.src.toLowerCase().indexOf(".svg")){v.h("Derivation of SVG size for '"+a.src+"' failed. Parsing manually");var b=r.NJ(a);if(null!==b){var c=r.wx(b.getAttribute("width"));var d=r.wx(b.getAttribute("height"));if(c&&d)return new w(c,d);var e=r.yx(b.getAttribute("viewBox"));if(null!==e)return e}}}catch(f){v.error("Exception during manual parsing of SVG size.")}return null};
r.It=function(a){if(a.naturalWidth&&a.naturalHeight)return new w(a.naturalWidth,a.naturalHeight);if(a.width&&a.height)return new w(a.width,a.height);a=r.XI(a);return null!==a?a:new w(0,0)};r.So=function(){return r.aJ};r.kG="undefined"!==typeof InstallTrigger;r.yC=function(a,b,c){return!r.kG&&!c.WorkaroundForceSVGEmptySizeWorkaround||c.WorkaroundDisableSVGEmptySizeWorkaround?!1:u.ap(b)&&void 0!==a.naturalWidth&&0===a.naturalWidth&&void 0!==a.naturalHeight&&0===a.naturalHeight};
r.KB=function(a,b,c){try{r.YD(a,function(d){if(null===d)c("DoZeroWidthHeightWorkaround: svg xml not available");else{var e=r.yx(d.getAttribute("viewBox"));null===e?c("DoZeroWidthHeightWorkaround: no view box available"):(d.setAttribute("width",e.L),d.setAttribute("height",e.$),d=(new XMLSerializer).serializeToString(d),b("data:image/svg+xml;base64,"+btoa(d)))}})}catch(d){c(d.toString())}};
r.Hb=function(){return"onpointerdown"in window&&"PointerEvent"in window&&!C.UB("CFG_WorkaroundDisablePointerEvents",!1)};r.Ht=function(){var a=C.VB("CFG_WorkaroundFileTransferTimeout");return null!==a?a:r.So()?400:0};r.aJ=-1!==navigator.userAgent.indexOf("Safari")&&0>navigator.userAgent.indexOf("Chrome");var ia="undefined"===typeof ArrayBuffer||"undefined"===typeof Uint8Array||"undefined"===typeof Int8Array,ka,la;ia||(ka=new ArrayBuffer(4),la=new Int8Array(ka,1,2),ia=2!==la.byteLength);r.ly=ia;
r.eF=function(){if(r.ly)return!1;var a="undefined"!==typeof DataView,b;if(/opera [56789]|opera\/[56789]/i.test(navigator.userAgent)||/MSIE (\d+\.\d+);/.test(navigator.userAgent))return!1;try{if(a){var c=new ArrayBuffer(8);var d=new Int8Array(c);for(b=0;8>b;++b)d[b]=b;var e=new DataView(c);if(a="function"===typeof e.getFloat64&&"function"===typeof e.getFloat32&&"function"===typeof e.getInt32&&"function"===typeof e.getUint32&&"function"===typeof e.getInt16&&"function"===typeof e.getUint16&&"function"===
typeof e.getInt8&&"function"===typeof e.getInt8)e.getFloat64(0),e.getFloat32(0),e.getInt32(0),e.getUint32(0),e.getInt16(0),e.getUint16(0),e.getInt8(0),e.getInt8(0)}}catch(f){return!1}return a}();r.sb=function(a,b){return void 0!==a.includes?a.includes(b):0<=a.indexOf(b)};r.iD=function(a,b){return void 0!==a.startsWith?a.startsWith(b):0===a.lastIndexOf(b,0)};r.RB=function(){try{return void 0!==navigator.languages?navigator.languages.length?navigator.languages[0]:navigator.language:navigator.language}catch(a){return""}};
r.oh=function(){return window.WindowZoomFactor?1E-4<=Math.abs(parseFloat(window.WindowZoomFactor)-1):!1};r.hj=function(a){var b=r.Ao();b&&a.$k(1/b);return a};r.Ao=function(){return parseFloat(window.WindowZoomFactor)};var Configuration;
Configuration=function(){this.PlcAddress="0101";this.UseLocalHost=!0;this.CommBufferSize=5E4;this.ErrorReconnectTime=1E4;this.Application="Application";this.UpdateRate=200;this.BestFitForDialogs=this.BestFit=!1;this.StartVisu="Visualization";this.StartVisuDefaultEncodingBase64="";this.XhrSendTimeout=0;this.LoginVisuDefLang=this.LoginVisuNamespace=this.LoginVisuErrorTexts=this.LoginVisuTexts=this.LoginVisu="";this.PollingRegistrationInterval=100;this.TimeMeasurements="";this.LogLevel="INFO";this.MaxUnusedImageAge=
2E4;this.MaxUndrawnImageAge=1E4;this.NumCachedImages=15;this.ChangeWindowTitle=!0;this.TooltipFont="";this.DefaultKeyActions=!0;this.KeysForWebVisu="Backspace,Tab";this.ANSIStringEncoding="iso-8859-1";this.CommitEditcontrolOnClickOut=!0;this.HandleTouchEvents=!1;this.FuzzyTransparencyColorEvaluation=!0;this.TouchHandlingActive=this.Benchmarking=this.HasKeyboard=this.LoadImagesById=!1;this.ClientName="";this.ScaleTypeIsotropic=this.IecSupportsCommonMiterLimit=this.SemiTransparencyActive=!1;this.GesturesFlickPanThresholdPxPerSecond=
1E3;this.GesturesPanFlickTimeThresholdMs=40;this.GesturesPanClickThresholdDistSquare=10;this.PostDataInHeader=0;this.su=this.AutoFontReductionActive=!1;this.ProgrammingSystemModeWaitingText="The online visualization is waiting for a connection. Please start the application.";this.ProgrammingSystemModeErrorText="Some sort of error occurred during the Visualisation.";this.ConnectionInfoValidTimeMsForLeaveAfterError=1E3;this.WorkaroundDisableMouseUpDownAfterActiveTouch=!0;this.WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch=
500;this.WorkaroundForceSVGEmptySizeWorkaround=this.WorkaroundDisableSVGEmptySizeWorkaround=this.WorkaroundDisableSVGAspectRatioWorkaround=this.WorkaroundDisableResizeHandling=!1;this.ContentSecurityPolicyIncludeTrustedOrigins=this.RuntimeVersion=this.CasFactoryName="";this.DefaultConfigurationOnError=!1;this.MaxResizePixel=30;this.FillBackground=!1;this.$o=5E3;this.DebugHTML5=this.DebugOnlyInputReactionExplCoord=this.DebugOnlyInputReactionOnUp=this.DebugOnlyDiagnosisDisplay=this.DebugOnlyPrintTouchRectangles=
this.DebugOnlyPrintGestures=this.DebugOnlyPrintRawTouches=this.DebugOnlyPrintPaintCommands=!1};
Configuration.prototype={validate:function(){if("string"!==typeof this.PlcAddress)throw Error("Plc address must be of type string");if("boolean"!==typeof this.UseLocalHost)throw Error("UseLocalHost must be of type boolean");if("number"!==typeof this.CommBufferSize)throw Error("CommBufferSize must be of type number");if("number"!==typeof this.ErrorReconnectTime)throw Error("ErrorReconnectTime must be of type number");if("string"!==typeof this.Application)throw Error("Application must be of type string");
if("number"!==typeof this.UpdateRate)throw Error("UpdateRate must be of type number");if("number"!==typeof this.MaxResizePixel)throw Error("MaxResizePixel must be of type number");void 0!==this.LoginMaxResizePixel&&30===this.MaxResizePixel&&(this.MaxResizePixel=this.LoginMaxResizePixel);if("boolean"!==typeof this.BestFit)throw Error("BestFit must be of type boolean");if("boolean"!==typeof this.BestFitForDialogs)throw Error("BestFitForDialogs must be of type boolean");if("string"!==typeof this.StartVisu)throw Error("StartVisu must be of type string");
if("string"!==typeof this.LoginVisu)throw Error("LoginVisu must be of type string");if("string"!==typeof this.LoginVisuTexts)throw Error("LoginVisuTexts must be of type string");if("string"!==typeof this.LoginVisuErrorTexts)throw Error("LoginVisuErrorTexts must be of type string");if("string"!==typeof this.LoginVisuNamespace)throw Error("LoginVisuNamespace must be of type string");if("string"!==typeof this.LoginVisuDefLang)throw Error("LoginVisuDefLang must be of type string");if("number"!==typeof this.PollingRegistrationInterval)throw Error("PollingRegistrationInterval must be of type number");
if("string"!==typeof this.TimeMeasurements)throw Error("TimeMeasurements must be of type string");if("string"!==typeof this.TooltipFont)throw Error("TooltipFont must be of type string");if("boolean"!==typeof this.DefaultKeyActions)throw Error("DefaultKeyActions must be of type boolean");if("string"!==typeof this.ANSIStringEncoding)throw Error("ANSIStringEncoding must be of type string");if("boolean"!==typeof this.FuzzyTransparencyColorEvaluation)throw Error("FuzzyTransparencyColorEvaluation must be of type boolean");
if("boolean"!==typeof this.LoadImagesById)throw Error("LoadImagesById must be of type boolean");if("boolean"!==typeof this.Benchmarking)throw Error("Benchmarking must be of type boolean");if("boolean"!==typeof this.TouchHandlingActive)throw Error("TouchHandlingActive must be of type boolean");if("boolean"!==typeof this.HasKeyboard)throw Error("HasKeyboard must be of type boolean");if("boolean"!==typeof this.SemiTransparencyActive)throw Error("SemiTransparencyActive must be of type boolean");if("boolean"!==
typeof this.ScaleTypeIsotropic)throw Error("ScaleTypeIsotropic must be of type boolean");if("number"!==typeof this.GesturesFlickPanThresholdPxPerSecond||0>this.GesturesFlickPanThresholdPxPerSecond)throw Error("GesturesFlickPanThresholdPxPerSecond must be of type nonnegative number");if("number"!==typeof this.GesturesPanFlickTimeThresholdMs||0>this.GesturesPanFlickTimeThresholdMs)throw Error("GesturesPanFlickTimeThresholdMs must be of type nonnegative number");if("number"!==typeof this.GesturesPanClickThresholdDistSquare||
0>this.GesturesPanClickThresholdDistSquare)throw Error("GesturesPanClickThresholdDistSquare must be of type nonnegative number");if("number"!==typeof this.PostDataInHeader||0>this.PostDataInHeader||2<this.PostDataInHeader)throw Error("PostDataInHeader must be a number in the range 0..2");if("boolean"!==typeof this.AutoFontReductionActive)throw Error("AutoFontReductionActive must be of type boolean");if("boolean"!==typeof this.su)throw Error("UseUTF8Encoding must be of type boolean");if("string"!==
typeof this.ProgrammingSystemModeWaitingText)throw Error("ProgrammingSystemModeWaitingText must be of type string");if("string"!==typeof this.ProgrammingSystemModeErrorText)throw Error("ProgrammingSystemModeErrorText must be of type string");if("number"!==typeof this.ConnectionInfoValidTimeMsForLeaveAfterError)throw Error("ConnectionInfoValidTimeMsForLeaveAfterError must be of type number");if("boolean"!==typeof this.FillBackground)throw Error("FillBackground must be of type boolean");if("boolean"!==
typeof this.DebugOnlyPrintPaintCommands)throw Error("DebugOnlyPrintPaintCommands must be of type boolean");if("boolean"!==typeof this.DebugOnlyPrintRawTouches)throw Error("DebugOnlyPrintRawTouches must be of type boolean");if("boolean"!==typeof this.DebugOnlyPrintGestures)throw Error("DebugOnlyPrintGestures must be of type boolean");if("boolean"!==typeof this.DebugOnlyPrintTouchRectangles)throw Error("DebugOnlyPrintTouchRectangles must be of type boolean");if("boolean"!==typeof this.DebugOnlyDiagnosisDisplay)throw Error("DebugOnlyDiagnosisDisplay must be of type boolean");
if("boolean"!==typeof this.DebugOnlyInputReactionOnUp)throw Error("DebugOnlyInputReactionOnUp must be of type boolean");if("boolean"!==typeof this.DebugOnlyInputReactionExplCoord)throw Error("DebugOnlyInputReactionExplCoord must be of type boolean");if("boolean"!==typeof this.WorkaroundDisableMouseUpDownAfterActiveTouch)throw Error("WorkaroundDisableMouseUpDownAfterActiveTouch must be of type boolean");if("boolean"!==typeof this.WorkaroundDisableResizeHandling)throw Error("WorkaroundDisableResizeHandling must be of type boolean");
if("number"!==typeof this.WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch||0>this.WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch)throw Error("WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch must be of type nonnegative number");if("string"!==typeof this.CasFactoryName)throw Error("CasFactoryName must be of type string");if("string"!==typeof this.RuntimeVersion)throw Error("RuntimeVersion must be of type string");if("string"!==typeof this.ContentSecurityPolicyIncludeTrustedOrigins)throw Error("ContentSecurityPolicyIncludeTrustedOrigins must be of type string");
if("number"!==typeof this.$o)throw Error("TouchSanityInterval must be of type number");this.$f()},Nz:function(){try{return new ma(this.TooltipFont)}catch(a){return this.TooltipFont=""}},$f:function(){return new aa(this.ANSIStringEncoding)},Hd:function(){return new ba(this.ANSIStringEncoding)}};var na;na=function(a,b,c,d,e){this.CommBufferSize=a;this.Fa=b;this.Ee=c;this.Go=d;this.mh=E.wa;this.la=E.m;this.Ko="";this.eD=e;this.to=!1;this.zc=""};na.prototype={WN:function(a){this.zc=a}};var F;F=function(){};
F.wo="";F.zC="";F.xo="2";F.kt="3";F.IC="4";F.vD="5";F.dD="6";var G;G=function(){};G.h="NOSP";G.wa="---";G.m=1E3;G.J=1100;var H;H=function(){};H.ProgrammingSystemModeErrorText="Some sort of error occurred during the Visualisation.";H.ProgrammingSystemModeWaitingText="The online visualization is waiting for a connection. Please start the application.";H.h=1;H.$a=H.h;H.Gb=H.h+1;H.J=H.h+2;H.m=H.h+3;H.wa=H.h+4;H.jd=H.h+5;var oa;
oa=function(a,b,c,d,e,f,g,h,k){this.bq=a;this.gb=d%360;this.sE=e;this.tE=f;this.Zp=g;(0===this.Zp||2===this.Zp)&&180<this.gb?(this.gb-=180,this.Ml=h?c:k,this.vj=b):(this.Ml=b,this.vj=h?c:k)};
oa.prototype={EL:function(a,b){if(0===b.C()||0===b.B())return"#ffffff";switch(this.Zp){case 0:return this.Mu(a,b,!1);case 1:return this.gE(a,b);case 2:return this.Mu(a,b,!0);default:return"#ffffff"}},Mu:function(a,b,c){var d=b.Nk();var e=90<this.gb?I.gl(180-this.gb):I.gl(this.gb);var f=d.X-Math.max(b.B(),b.C())*Math.cos(e);var g=d.Y-Math.max(b.B(),b.C())*Math.sin(e);if(this.Tw(d.X,d.Y,f,g,b.s,b.u,b.s,b.ca)){d=e;e=b.C()/2*Math.tan(d);e=b.B()/2-e;d=Math.PI/2-d;d=e*Math.cos(d);f=d*d/e;g=e-f;var h=Math.sqrt(Math.max(0,
g*f));e=b.s-h;d=b.u+g;f=b.T+h;g=b.ca-g}else this.Tw(d.X,d.Y,f,g,b.s,b.u,b.T,b.u)?(d=e,e=b.B()/2/Math.tan(d),e=b.C()/2-e,d=Math.PI/2-d,d=Math.cos(d)*e,f=d*d/e,h=Math.sqrt(Math.max(0,(e-f)*f)),e=b.s+f,d=b.u-h,f=b.T-f,g=b.ca+h):(e=b.s,d=b.u,f=b.T,g=b.ca);90<this.gb&&(e=b.T-(e-b.s),f=b.T-(f-b.s));a=a.createLinearGradient(e,d,f,g);a.addColorStop(0,this.Ml);c?(a.addColorStop(.45,this.vj),a.addColorStop(.55,this.vj),a.addColorStop(1,this.Ml)):a.addColorStop(1,this.vj);return a},gE:function(a,b){var c=new t(b.s+
b.C()*this.sE,b.u+b.B()*this.tE);b=this.GG(b,c);a=a.createRadialGradient(c.X,c.Y,0,c.X,c.Y,b);a.addColorStop(0,this.Ml);a.addColorStop(1,this.vj);return a},Tw:function(a,b,c,d,e,f,g,h){var k=(h-f)*(c-a)-(g-e)*(d-b);g=(g-e)*(b-f)-(h-f)*(a-e);a=(c-a)*(b-f)-(d-b)*(a-e);if(0===k)return g===a;b=g/k;k=a/k;return 0<=b&&1>=b&&0<=k&&1>=k},GG:function(a,b){var c=[];c[0]=this.Tl(new t(a.s,a.u),b);c[1]=this.Tl(new t(a.T,a.u),b);c[2]=this.Tl(new t(a.T,a.ca),b);c[3]=this.Tl(new t(a.s,a.ca),b);for(a=b=0;4>a;++a)b=
Math.max(b,c[a]);return Math.sqrt(b)},Tl:function(a,b){return(a.X-b.X)*(a.X-b.X)+(a.Y-b.Y)*(a.Y-b.Y)}};var pa;pa=function(a){this.g=a;this.jq()};
pa.prototype={jq:function(){var a=this;window.document.addEventListener("keydown",function(b){a.$H(b)},!1);window.document.addEventListener("keypress",function(b){a.aI(b)},!1);window.document.addEventListener("keyup",function(b){a.bI(b)},!1)},aI:function(a){if(a.repeat)a.preventDefault();else{var b=this.g.v;a=this.om(a);null!==b&&null!==a&&this.g.dd(m.$a(b.la,a))}},$H:function(a){if(a.repeat)a.preventDefault();else{var b=this.aw(a),c=this.g.v;this.nx("onKeyDown",b)||(this.Pu(a),null!==c&&null!==b&&
void 0!==b.key&&this.g.dd(m.J(128,c.la,b.key,b.flags)))}},bI:function(a){var b=this.aw(a),c=this.g.v;this.nx("onKeyUp",b)||(this.Pu(a),null!==c&&null!==b&&void 0!==b.key&&this.g.dd(m.J(256,c.la,b.key,b.flags)))},nx:function(a,b){return this.g.Hc&&window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess[a]&&window.ProgrammingSystemAccess[a](b.key,b.flags)?!0:!1},aw:function(a){var b=a.keyCode,c=0;if(16<=b&&18>=b)return null;a.shiftKey&&(c|=1);a.altKey&&(c|=2);a.ctrlKey&&(c|=4);return{key:b,flags:c}},
om:function(a){var b=0;a.charCode?b=a.charCode:a.which&&(b=a.which);if(0===b||void 0!==a.altKey&&!0===a.altKey&&48<=b&&57>=b)return null;if(void 0!==a.ctrlKey&&a.ctrlKey||void 0!==a.altKey&&a.altKey)if(void 0===a.ctrlKey||!a.ctrlKey||void 0===a.altKey||!a.altKey)return null;return String.fromCharCode(b)},AI:function(a){var b;if(void 0===this.g.getConfiguration().KeysForWebVisu||""===this.g.getConfiguration().KeysForWebVisu)return!1;var c=this.g.getConfiguration().KeysForWebVisu.split(",");for(b=0;b<
c.length;b++)if(c[b]==a.key)return!0;return!1},Pu:function(a){u.J(this.g)||null===this.g.getConfiguration()||this.g.getConfiguration().DefaultKeyActions&&!this.AI(a)||a.preventDefault&&a.preventDefault()}};var qa;qa=function(a){this.g=a;this.tm=!1;this.hq=0;this.FH=[];this.h()};
qa.prototype={RA:function(a){this.tm=a},uO:function(a){this.hq=a},lP:function(a){this.Yp().style.touchAction=a?"none":"auto"},h:function(){var a=this;if(r.Hb()){var b=!this.g.oa;v.h("Mouse-Handling using PointerEvents");this.Rd("pointerup",function(c){a.hk(c)},b);this.Rd("pointerdown",function(c){a.Om(c)},b);this.Rd("pointermove",function(c){a.gk(c)},b);this.Rd("pointerout",function(c){a.iI(c)},b)}else v.h("Mouse-Handling using MouseEvents"),this.Rd("mouseup",function(c){a.Nm(c)},!1),this.Rd("mousedown",
function(c){a.Lm(c)},!1),this.Rd("mousemove",function(c){a.Mm(c)},!1),this.Rd("mouseout",function(c){a.eI(c)},!1),this.Rd("touchstart",function(c){a.Qf(c)},!0),this.Rd("touchmove",function(c){a.Qf(c)},!0),this.Rd("touchend",function(c){a.Qf(c)},!0)},Yp:function(){return this.g.oa?this.g.fb():this.g.V().Zf().canvas},Rd:function(a,b,c){this.Yp().addEventListener(a,b,c,{passive:!1});this.FH.push({type:a,callback:b,eQ:c})},am:function(a,b){if(null!==this.g.v){var c=r.vh(a);this.g.oa&&(a=u.aj(a.target,
this.Yp()),c=c.offset(a));b=m.h(b,this.g.v.la,c);this.g.dd(b)}},ym:function(a){return null!==this.g.getConfiguration()&&this.g.getConfiguration().TouchHandlingActive?"touch"!==a.pointerType:a.isPrimary},Om:function(a){!u.J(this.g)&&this.ym(a)&&(a.preventDefault(),this.ci(a))},hk:function(a){!u.J(this.g)&&this.ym(a)&&(a.preventDefault(),this.di(a))},gk:function(a){!u.J(this.g)&&this.ym(a)&&(a.preventDefault(),this.fw(a))},iI:function(a){!u.J(this.g)&&this.ym(a)&&(a.preventDefault(),this.gw(a))},di:function(a){u.Ro(a)&&
(this.g.ob.iA(a),this.am(a,K.h))},ci:function(a){u.Ro(a)&&(this.g.Qd.Cn(a),this.g.ob.hA(a),this.am(a,K.J))},fw:function(a){this.tm||this.am(a,K.m)},gw:function(a){null!==a.relatedTarget&&void 0!==a.relatedTarget&&"string"===typeof a.relatedTarget.nodeName&&"html"!==a.relatedTarget.nodeName.toLowerCase()||this.am(a,4096)},Nm:function(a){u.J(this.g)||(u.m()<this.hq?v.h("Dropping mouse up due to required delay!"):this.di(a))},Lm:function(a){u.J(this.g)||(u.m()<this.hq?v.h("Dropping mouse down due to required delay!"):
this.ci(a))},Mm:function(a){u.J(this.g)||this.fw(a)},eI:function(a){u.J(this.g)||this.gw(a)},Qf:function(a){if(!u.J(this.g)&&null!==this.g.getConfiguration()&&this.g.getConfiguration().HandleTouchEvents&&!this.g.getConfiguration().TouchHandlingActive){var b=null;switch(a.type){case "touchstart":var c=K.J;this.tm=!0;break;case "touchmove":c=K.m;break;case "touchend":c=K.h;this.tm=!1;break;default:return}a.touches&&1<=a.touches.length?b=r.Oo(a.touches[0]):a.changedTouches&&1<=a.changedTouches.length&&
(b=r.Oo(a.changedTouches[0]));null!==b&&(null!==this.g.v&&(c===K.J?this.g.ob.AP(b,a):c==K.h&&this.g.ob.zP(b,a),c=m.h(c,this.g.v.la,b),this.g.dd(c)),a.preventDefault())}}};var ra;ra=function(a,b,c){this.zg=a;this.dF=b;this.yp=c;this.ox=p.D(1E3)};ra.prototype={xM:function(){return this.dF-this.ox.size()},Fd:function(){return this.ox},finish:function(){this.yp=0},bg:function(){return 0===this.yp}};var sa;
sa=function(a){this.zm=0!==(a&65536);this.qx=0!==(a&131072);this.sx=0!==(a&262144);this.tx=0!==(a&524288);this.px=0!==(a&1048576);this.xw=0!==(a&2097152);this.yw=0!==(a&4194304);this.zm=this.zm||this.xw||this.yw;this.sH=!(this.qx||this.sx||this.tx||this.px)};
sa.prototype={ts:function(){return this.left()||this.right()||this.ct()},cA:function(){return this.top()||this.bottom()||this.dt()},bA:function(){return this.left()||this.top()},aA:function(){return this.right()||this.bottom()},gd:function(){return this.sH},left:function(){return this.qx},right:function(){return this.sx},top:function(){return this.tx},bottom:function(){return this.px},cl:function(){return this.gd()&&this.zm},dt:function(){return this.gd()&&this.yw},ct:function(){return this.gd()&&
this.xw}};var ta;ta=function(a,b){this.g=a;this.Ih=b};ta.prototype={zN:function(){var a=this.g.Za();r.YB(this.g.getConfiguration(),this.Ih)||this.mJ(a);this.jJ(a)},Pb:function(){},S:function(){},jJ:function(a){var b=this.g.kb(this.Ih);b.fL();a.rb(b.mb(),this,!0)},mJ:function(a){var b=this.g.kb(this.Ih);b.ht(this.Ih.la);a.rb(b.mb(),this,!0)}};var ua;
ua=function(a,b,c,d,e){this.g=a;this.Hh=null;b=this.h(b);e?c=b:(this.Yd=new wa,c=this.h(c));if(b.width!==c.width||b.height!==c.height)throw Error("Expected two canvasses of the same size");r.wC(b,c);this.Ka=this.Jj(b);this.Jb=this.Jj(c);this.kK=C.dj(this.g.Wf,"WorkaroundDisableDPRBasedZoom",!1);this.jK=C.dj(this.g.Wf,"WorkaroundAnisoAddWidthPixel",!1);this.iK=C.dj(this.g.Wf,"WorkaroundAnisoAddHeightPixel",!1);d&&(this.rs()||this.m(),this.gs(1));this.km=new xa;this.Fp=r.Ce();this.lm=new ya(this.Jb);
this.tf=new ya(this.Ka);this.Gh=new L;this.cr=this.dr=null;this.Sg=!1;this.Hf=new za;this.Pj=new Aa(this.g);this.jn=new Ba(this);this.zr=new Ca(this);this.vp=!1;this.qF=new Da(a);this.Bg=0;this.ti=this.bn=1;this.tk=null;this.um=!1};
ua.prototype={lf:function(){return new M(0,0,this.Ka.canvas.width,this.Ka.canvas.height)},Ok:function(){return null!==this.Hh?this.Hh:this.Jb},Zf:function(){return this.g.oa?this.Ka:this.Jb},Jd:function(){return 0!==this.Bg},$z:function(){return 2===this.Bg},lO:function(){this.Bg=0},jO:function(){this.Bg=1},kO:function(){this.Bg=2},bP:function(a){this.bn=a},cP:function(a){this.ti=a},aP:function(a){this.tk=a},yh:function(a){return new M(this.ul(a.s),this.vl(a.u),this.ul(a.T),this.vl(a.ca))},cD:function(a){var b;
for(b=0;b<a.length;++b)a[b].X=this.ul(a[b].X),a[b].Y=this.vl(a[b].Y);return a},ul:function(a){a*=this.bn;2==this.Bg&&null!==this.tk&&(a+=this.tk.s);return Math.round(a)},vl:function(a){a*=this.ti;2==this.Bg&&null!==this.tk&&(a+=this.tk.u);return Math.round(a)},clear:function(){this.g.Sc&&this.g.Sc.Es();this.g.Ll&&this.g.Ll.Es();this.Jb.clearRect(0,0,this.Jb.canvas.width,this.Jb.canvas.height);this.Ka.fillStyle="#ffffff";this.Ka.fillRect(0,0,this.Ka.canvas.width,this.Ka.canvas.height)},Mk:function(){var a=
u.cp(this.Ka.canvas);return new t(a.s,a.u)},getContext:function(){if(null!==this.Hh)return this.Hh;if(this.g.oa){var a=this.g.aa().va();var b=this.Sg?null!==a?a.V():this.Ka:null!==a?a.V():this.Jb;a=this.getState();this.Gh.gd()?a.hh(b):b=a.Ba;return b}a=null;b=this.Yd.Mr();-1!==b&&(a=this.Yd.eo(b));return this.Sg?null!==a?a.Ka:this.Ka:null!==a?a.Ql:this.Jb},hh:function(a){this.Hh=a.getContext("2d");this.tf=new ya(this.Hh)},Vr:function(){if(this.g.oa){var a=this.g.aa().va();if(null!==a){a.Vr();return}}a=
this.getContext();a.clearRect(0,0,a.canvas.width,a.canvas.height)},getState:function(){if(this.g.oa)return this.Gh.before()&&this.dr?this.dr:this.Gh.after()&&this.cr?this.cr:this.tf;var a=null;var b=this.Yd.Mr();-1!==b&&(a=this.Yd.eo(b));return this.Sg?null!==a?a.tf:this.tf:null!==a?a.$D:this.lm},zA:function(){this.Sg=!0;this.g.oa&&(this.tf.hh(this.Ka),this.tf.apply())},mN:function(){this.Sg=!1;this.g.oa&&(this.lm.hh(this.Jb),this.lm.apply())},Vy:function(){this.vp=!0},Gn:function(a,b,c){this.g.ob.qP(da.Io);
this.km.clear();this.Jb.save();this.lm.hh(this.Jb);this.tf.hh(this.Ka);var d=this.FI(a,c);c=!1;var e=this;this.um=!1;for(a=0;a<d.length;++a)d[a]instanceof Ea&&!d[a].Vz(this.Pj,this.Hf)&&(c=!0),d[a]instanceof Fa&&!this.g.oa&&d[a].j(this);this.pE()?(c?(v.m("Waiting for image(s) to load"),this.Pj.BK(function(){v.m("Loading image(s) finished so continue with drawing");e.um=!0;e.yv(d,b)})):(this.um=!0,this.yv(d,b)),null!==this.g.pa&&this.g.pa.g.N.fi&&this.xF()):b()},EM:function(){this.Fp=r.Ce();(new Ga).Ey("DevicePixelRatioChanged",
"true")},rs:function(){return(new Ga).Rz("DevicePixelRatioChanged")},m:function(){var a=r.Ce();(new Ga).Ey("OriginalDevicePixelRatio",a)},KL:function(){var a=new Ga;return parseFloat(a.Tn("OriginalDevicePixelRatio"))},mp:function(a){this.Ka.canvas.width=this.Jb.canvas.width=a.L;this.Ka.canvas.height=this.Jb.canvas.height=a.$;var b=this.g.fb();null!==b&&(b.style.height=a.$+"px",b.style.width=a.L+"px",this.g.Hc||(b.style.overflow="hidden"))},tv:function(){return new w(document.documentElement.clientWidth,
document.documentElement.clientHeight)},FG:function(a,b,c){return 0<a.L-b.L?a.L-b.L:0<c.L-b.L?c.L-b.L:0},LG:function(a,b,c){return 0<a.$-b.$?a.$-b.$:0<c.$-b.$?c.$-b.$:0},KD:function(a,b){var c=!1;var d=new w(window.innerWidth,window.innerHeight);var e=this.FG(a,b,d);a=this.LG(a,b,d);if(r.Co()){var f=window.visualViewport;b.L=Math.floor(f.width);b.$=Math.floor(f.height)}0<e&&(b.L=r.Co()?Math.floor(f.width)+e:b.L-.5+e,this.jK&&(b.L+=1),c=!0);0<a&&(b.$=r.Co()?Math.floor(f.height)+a:b.$-.5+a,this.iK&&
(b.$+=1),c=!0);return c},gs:function(a){this.kK?a=1:this.rs()&&(a=this.UF());try{var b=this.tv();this.mp(b.scale(a));var c=this.tv();(this.KD(b,c)||c.L>b.L||c.$>b.$)&&this.mp(c.scale(a))}catch(d){v.warn("Exception during resizing canvasses: "+d),this.mp((new w(window.innerWidth,window.innerHeight)).scale(a))}},oO:function(a,b,c){c?(this.Gh.SO(),this.dr=this.by(a,"cdsClip_before_canvas",b)):(this.Gh.RO(),this.cr=this.by(a,"cdsClip_after_canvas",b))},by:function(a,b,c){a=u.wa(a.O(),b);if(null===a)return null;
a=this.Jj(a);a=new ya(a);a.PP=c;a.UO();return a},BA:function(){this.Gh.qN()},yv:function(a,b){this.vp&&(this.g.Uy(),this.vp=!1);var c,d=this;if(this.g.Mb.yo){for(c=0;c<a.length;++c){var e=a[c];(e instanceof Ha||e instanceof Ia||e instanceof Ja)&&e.j(this)}for(c=0;c<a.length;++c)e=a[c];this.Jb.restore()}else if(this.g.oa){for(c=0;c<a.length;++c)a[c]instanceof Ka&&a[c].j(this);this.km.Ly(this.Jb);for(c=0;c<a.length;++c)e=a[c],e instanceof Ka||a[c].j(this);this.Jb.restore()}else{var f=[];for(c=0;c<a.length;++c)e=
a[c],e instanceof Ka?e.j(this):e instanceof La&&f.push(e);this.km.Ly(this.Jb);for(c=0;c<a.length;++c)e=a[c],e instanceof Ka||e instanceof La||e instanceof Fa||a[c].j(this);this.Jb.restore();for(c=0;c<f.length;++c)f[c].j(this)}this.qF.Di();this.g.Hk(function(){d.XF()});this.WF();this.g.ob.nL(0===a.length,da.Io);b()},XF:function(){var a=this.g.DL();0!==a.length&&setTimeout(function(){window.requestAnimationFrame(function(){a.forEach(function(b){b()})})})},WF:function(){var a=this.g.zL();0!==a.length&&
window.requestAnimationFrame(function(){a.forEach(function(b){b()})})},pE:function(){return null===this.g.pa||this.g.pa.g.N.fi||!this.g.pa.g.N.Xn()},FI:function(a,b){var c=[],d;if(0<a.zg){var e=O.D(a.Fd().Fd(),this.g.v.Fa,this.g.getConfiguration().$f());e=new Ma(e);for(d=0;d<a.zg;++d)if(e.ga()<e.size()-4){var f=e.ga(),g=e.getUint32(),h=e.getUint32();var k=Na.tB(h,e,g,this);if(void 0!==b&&null!==b)if(h=b(k),void 0!==h&&null!==h)for(k=0;k<h.length;k++)c.push(h[k]);else c.push(k);else c.push(k);e.seek(f+
g)}}else c=[];return c},h:function(a){var b=window.document.getElementById(a);if(null===b)throw Error("Canvas "+a+" does not exist");return b},Jj:function(a){a=a.getContext("2d");if(null===a)throw Error("Creating graphics context failed");return a},xF:function(){var a,b=this.g.pa;if(null!==b)for(a=0;a<b.xa.R.length;++a){var c=b.xa.oc(a);if(null!==c.info().Gs(0)){var d=b.yd;if(null!==d){var e=this.Zf();e.save();d.ao(this,c);e.restore()}}}},UF:function(){return(new Ga).Rz("OriginalDevicePixelRatio")?
r.Ce()/this.KL():r.Ce()}};var Oa;Oa=function(a,b,c){this.gi=!1;this.Ql=a;this.Ka=b;this.$D=new ya(this.Ql);this.tf=new ya(this.Ka);this.ui=c};Oa.prototype={xO:function(a){this.gi=a},size:function(){return this.ui}};var ya;ya=function(a){this.ai=null;this.fm="#ffffff";this.iw=!1;this.Fm="#000000";this.ei=!1;this.se=.5;this.ny="#000000";this.ne="12px Arial";this.Wh=12;a.font=this.ne;this.Ba=a;this.lw=this.kw=-1;this.$q=new t(0,0);this.Wq=new t(0,0)};
ya.prototype={UO:function(){this.hh(this.Ba)},hh:function(a){null!==a&&void 0!==a&&(this.Ba=a,this.apply(),this.Eu())},Os:function(a,b){this.fm=a;this.iw=b;this.Ba.fillStyle=this.fm},Rs:function(a,b,c,d,e,f){this.se=a;this.Fm=b;this.Xe=c;this.He=d;this.Ie=e;this.qf=f;this.Ba.strokeStyle=this.Fm;this.Ba.lineWidth=Math.max(1,this.se);this.Ba.lineCap=this.He;this.Ba.lineJoin=this.Ie;this.Ba.miterLimit=this.qf;"function"===typeof this.Ba.setLineDash?(this.ei=!1,this.Eu()):this.ei=5===this.Xe},$O:function(a,
b){if("number"!==typeof a)throw new TypeError("Expected numeric value");if("number"!==typeof b)throw new TypeError("Expected numeric value");this.kw=a;this.lw=b},aB:function(a,b,c){this.ne=a;this.Wh=b;this.ny=c},apply:function(){this.Ba.fillStyle!==this.fm&&(this.Ba.fillStyle=this.fm);this.Ba.strokeStyle!==this.Fm&&(this.Ba.strokeStyle=this.Fm);this.Ba.lineWidth!==this.se&&(this.Ba.lineWidth=this.se);this.Ba.lineCap!==this.He&&(this.Ba.lineCap=this.He);this.Ba.lineJoin!==this.Ie&&(this.Ba.lineJoin=
this.Ie);this.Ba.miterLimit!==this.qf&&(this.Ba.miterLimit=this.qf)},Ii:function(){return this.ne},ss:function(){return null===this.ai?this.iw:this.ai.bq},ag:function(){return null!==this.ai},rO:function(a){this.ai=a},Yk:function(){this.ai=null;this.apply()},yn:function(a){this.Ba.fillStyle=this.ai.EL(this.Ba,a)},PA:function(a){this.Wh=a},jg:function(a){this.ne=a},Eu:function(){"function"===typeof this.Ba.setLineDash&&(0===this.Xe&&this.Ba.setLineDash([]),1===this.Xe&&this.Ba.setLineDash([8,3]),2===
this.Xe&&this.Ba.setLineDash([3,3]),3===this.Xe&&this.Ba.setLineDash([8,3,3,3]),4===this.Xe&&this.Ba.setLineDash([8,3,3,3,3,3]),5===this.Xe&&(this.ei=!0,this.Ba.setLineDash([0,0])))}};var wa;wa=function(){this.vk=[];this.nj=[]};wa.prototype={eo:function(a){return this.vk.length>a?this.vk[a]:null},tK:function(a,b){this.vk[a]=b},lN:function(a){this.vk.length>a&&(this.vk[a]=null)},Mr:function(){return 0<this.nj.length?this.nj[this.nj.length-1]:-1},PM:function(a){this.nj.push(a)},NM:function(){return this.nj.pop()}};
var Pa;Pa=function(a,b,c,d,e,f){try{this.h(a,b,c,d,e,f)}catch(g){throw Error("Could not initialize the tooltip style. Error: "+g);}};Pa.prototype={h:function(a,b,c,d,e,f){this.Font=new ma(b+"px "+a);this.Et=I.ab(c);this.Zi=d;this.lt=I.ab(e);this.Ct=I.ab(f)}};var Qa;Qa=function(){};Qa.h="4.6.0.0";Qa.m=Qa.h;var Webvisu;
Webvisu=function(a,b,c,d,e){this.Wf=C.aD();this.gH();v.info("Webvisualization starting");v.info("Version: "+Qa.m);this.BE();this.Zl=this.Uf=this.oe=this.N=this.pa=this.ic=null;this.oa=d;this.qh=!1;void 0!==e&&e?(this.hb=new Configuration,this.Hc=this.qh=this.hb.SemiTransparencyActive=!0):this.jH(a,b,c,d)};window.Webvisu=Webvisu;
Webvisu.prototype={aa:function(){return this.Sc.isActive()?this.Sc:this.Ll},openDialog:function(a,b){this.Sc.qK(a,b)},nc:function(){return this.tG},fb:function(){return this.rc},OK:function(a){this.Sc.gN(a)},pP:function(a){this.Sc.QM(a)},lL:function(){return this.Sc.OM()},JA:function(a){this.Tv=a},BO:function(a){this.Fw=a},jH:function(a,b,c,d){this.Tp=[];this.Hp=[];this.rc=u.fb();this.Qd=new Ra(this);this.fr();this.ln=new Sa;this.cb=new ua(this,a,b,c,d);this.jq();this.Uu=new ea(this);new pa(this);
this.Jm=new qa(this);this.Sh=new Ta(this);this.tG=new Ua;this.Ll=Va.DB(this.Uu.az(Wa.zD));this.Sc=Va.vB(this.Uu.az(Wa.GB));this.Yb=new Xa(this);this.ob=new Ya(this);this.hH(this.cb.Zf().canvas.id);this.Bo=new H;this.Mb=new Za;this.Th=new $a(this);this.Ov=new ab(this);a=this.yL();this.vi=null;this.ub=new bb(new Configuration);this.Hc||(0<a?this.xk("Loading Webvisualization (delayed)"):this.xk("Loading Webvisualization"));this.$l=null;this.Tv=!0;this.Fw="";this.jb=-1;this.Iu=new cb;0<a&&null!==this.vi?
this.I(new db(this),a):(this.Qe=new db(this),this.Mv())},Mv:function(){var a=this.Qe;null!==this.$l&&(null!==this.wb&&this.wb.push(this.$l),this.$l=null);this.Qe=null;try{a.j()}catch(b){this.error("Unexpected Exception: "+b)}},fr:function(){this.wb=this.hb=this.i=this.v=null;this.Bx=!1;null!==this.pa&&(this.pa.lb(),this.pa=null);this.Qd.us()&&this.Qd.close();null!==this.ic&&this.ic.detach();WebvisuExtensionMgr.bL()},jq:function(){var a=this;window.addEventListener("unload",function(b){a.cI(b)},!1)},
hH:function(a){window.WebvisuAutotestInst=new WebvisuAutotest(this,a);window.WebvisuAutotest_raiseMouse=window.WebvisuAutotestInst.raiseMouse;window.WebvisuAutotest_raiseKey=window.WebvisuAutotestInst.raiseKey;window.WebvisuExtensionMgr=WebvisuExtensionMgr;WebvisuExtensionMgr.MO(this.oa);window.WebvisuExtensionMgr_register=window.WebvisuExtensionMgr.register;window.WebvisuExtensionMgr_openControlRelative=window.WebvisuExtensionMgr.openControlRelative;window.WebvisuInst=this},Hk:function(a){this.Hp.push(a)},
zL:function(){var a=this.Hp;this.Hp=[];return a},sn:function(a){this.Tp.push(a)},DL:function(){var a=this.Tp;this.Tp=[];return a},gH:function(){var a=C.pl(this.Wf,"CFG_LogLevel");"TRACE"===a?v.J(eb.Yo):"DEBUG"===a?v.J(eb.vo):v.J(eb.ll)},xk:function(a,b){var c=0,d=!1;null!==this.vi&&this.Uy();"boolean"===typeof b&&(d=b);if(d||!this.JL()){""!==this.Lz()&&(c=5E3);b=this.Hc;if("The maximum number of visualization clients is already connected. Please try again later."===a||"Not enough memory in the PLC to create the client."===
a)b=!0;this.vi=new fb(a,this.cb,b,c)}},Uy:function(){null!==this.vi&&this.vi.close();this.vi=null},Za:function(){return new gb(this)},kb:function(a){a=void 0!==a?a:this.v;var b=null;"utf-8"===this.getConfiguration().ANSIStringEncoding&&(b=this.getConfiguration().Hd());return null===a?new hb(!0,E.wa,5E4,b):new hb(a.Fa,a.mh,a.CommBufferSize,b)},setConfiguration:function(a){this.qh||("TRACE"===a.LogLevel?v.J(eb.Yo):"DEBUG"===a.LogLevel?v.J(eb.vo):"INFO"===a.LogLevel?v.J(eb.ll):"WARNING"===a.LogLevel?
v.J(eb.tu):"ERROR"===a.LogLevel?v.J(eb.At):"FATAL"===a.LogLevel?v.J(eb.OB):v.warn("Unexpected loglevel: "+a.LogLevel),this.hb=a,this.ub=new bb(a),this.hb.TouchHandlingActive&&(this.Uf=new ib,this.oe=new jb(this.getConfiguration()),this.pa=new kb(this,new lb(this)),this.N=new mb),this.Jm.lP(this.hb.HandleTouchEvents||this.hb.TouchHandlingActive),(this.hb.BestFit||this.hb.HandleTouchEvents||this.hb.TouchHandlingActive)&&!this.hb.WorkaroundDisableResizeHandling&&(null===this.ic&&(this.ic=new nb(this)),
this.ic.fP(this.hb.HandleTouchEvents||this.hb.TouchHandlingActive),this.ic.Jk()),this.oa&&this.hb.BestFit&&(this.fb().style.overflow="hidden"),this.Hc&&(this.Bo.ProgrammingSystemModeErrorText=a.ProgrammingSystemModeErrorText,this.Bo.ProgrammingSystemModeWaitingText=a.ProgrammingSystemModeWaitingText,this.xk(this.hb.ProgrammingSystemModeWaitingText)))},De:function(){null!==this.ic&&this.ic.De()},getConfiguration:function(){return this.hb},YA:function(a){!window.btoa&&a&&(v.warn("POST data in header should be done but is not supported by the browser"),
a=!1);this.Bx=a},UN:function(a){this.v=a},Wi:function(a){null===a?this.i=null:this.i=a},Lz:function(){var a=location.hash;var b="";""!==a&&(b=a.split("CKT=").pop().split("#")[0]);return b},JL:function(){var a=location.search;return""!==a&&r.sb(a,G.h)?!0:!1},yL:function(){var a=location.search;var b=0;""!==a&&(a=a.split("CFG_DelayedStart=").pop().split("?")[0],b=parseInt(a,10));return b},os:function(){var a=location.search;var b="";""!==a&&(b=a.split("CFG_Lang=").pop().split("?")[0],b=b.split("&")[0]);
return b},Ez:function(){var a=location.search;return""!==a&&r.sb(a,"BRLG")?!0:!1},FL:function(){var a=location.search;return""!==a&&r.sb(a,"RLLG")?!0:!1},xA:function(){var a=location.href;if(!r.sb(a,G.h)){var b=r.sb(a,"?")?"&":"?";a+=b+G.h}location.assign(a)},wA:function(a,b,c){var d=location.href,e,f="";if(r.sb(d,"CFG_Lang")){for(b=e=d.indexOf("CFG_Lang");"&"!==d.charAt(e)&&e<d.length;)e++;b=d.substring(b,e);""!==a&&(f="CFG_Lang="+a);d=d.replace(b,f);r.sb(d,G.h)||""===a||(d+="&"+G.h)}else""!==a&&
(f=r.sb(d,"?")?"&":"?",d+=f+"CFG_Lang="+a,b&&(d+="&BRLG"),r.sb(d,G.h)||(d+="&"+G.h));c&&(f="&BRLG",r.sb(d,f)&&(d=d.replace(f,"")));r.sb(d,"RLLG")||(d+="&RLLG");location.assign(d)},Yn:function(){return this.Qe instanceof ob},I:function(a,b){this.Qe=a;0>=b&&(b=0);this.pr(b)},eO:function(a){this.$l=a},tJ:function(a){this.Qe=a},V:function(){return this.cb},error:function(a,b){if(!this.qh){this.Hc||v.error(a);var c=null!==this.hb?this.hb.ErrorReconnectTime:1E4;v.info("Will restart in "+c+"ms");null!==
this.v&&(this.Zl=new pb(this.v,this.hb));this.fr();this.TI();if(this.Hc){var d=this.Bo.ProgrammingSystemModeErrorText;window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess.errorOccurred(d,a)}else d="An error happened; will automatically restart";if("The maximum number of visualization clients is already connected. Please try again later."===a||"Not enough memory in the PLC to create the client."===a)d=a;this.xk(d,b);this.I(new qb(this),c)}},uM:function(){this.bt("The webvisualization license expired.",
"License Expired")},bt:function(a,b){this.qh||(v.warn(a+" Webvisualization is stopped"),this.xk(b),this.fr(),this.tJ(new qb(this)))},dO:function(a){this.wb=a},pr:function(a){var b=this;this.jb=window.setTimeout(function(){b.Mv()},a)},dd:function(a){null!==this.wb&&(this.wb.push(a),null!==this.Qe&&this.Qe.Qr()&&(clearTimeout(this.jb),this.pr(0)))},ZB:function(){return""!==this.getConfiguration().LoginVisu.toLowerCase()},cI:function(){if(!this.Hc){var a=this.v;null===a&&null!==this.Zl&&this.Zl.tP()&&
(a=this.Zl.Ih);null!==a&&a.la!==E.m&&a.mh!==E.wa&&(new ta(this,a)).zN()}},TI:function(){var a=this.cb.Ok(),b;for(b=0;20>b;++b)a.restore()},BE:function(){C.dj(this.Wf,"ProgrammingSystemMode",!1)?(this.Hc=!0,C.dj(this.Wf,"ProgrammingSystemModeCefSharp",!1)&&CefSharp.BindObjectAsync("ProgrammingSystemAccess")):this.Hc=!1},changeUpdateRate:function(a){null!==this.hb&&(a<this.hb.UpdateRate&&null!==this.Qe&&(clearTimeout(this.jb),this.pr(0)),this.hb.UpdateRate=a)}};var WebvisuAutotest;
WebvisuAutotest=function(a,b){this.g=a;this.rE=b;this.zq=this.yq=0};
WebvisuAutotest.prototype={raiseMouse:function(a,b,c){var d=window.document.elementFromPoint(b,c);this.yq=b;this.zq=c;var e={bubbles:!0,cancelable:"mousemove"!==a,view:window,detail:0,screenX:b,screenY:c,clientX:b,clientY:c,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:d};if(r.Hb()){a=this.fB(a);var f={};this.Wz(f,e,d);f.pointerType="mouse";f=new PointerEvent(a,f)}else f=window.document.createEvent("MouseEvents"),f.initMouseEvent(a,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,
e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,d);this.jz(f,b,c,d);!u.J(this.g)||"mouseup"!==a&&"pointerup"!==a||(a=new MouseEvent("click"),d.dispatchEvent(a))},raiseTouch:function(a,b,c,d){var e=window.document.elementFromPoint(b,c);d={bubbles:!0,cancelable:"touchmove"!==a,view:window,detail:0,screenX:b,screenY:c,clientX:b,clientY:c,pointerId:d,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:e};a=this.fB(a);var f={};this.Wz(f,d,e);f.pointerId=d.pointerId;
f.pointerType="touch";a=new PointerEvent(a,f);this.jz(a,b,c,e)},Wz:function(a,b,c){a.isPrimary=!0;a.bubbles=b.bubbles;a.cancelable=b.cancelable;a.view=b.view;a.detail=b.detail;a.screenX=b.screenX;a.clientX=b.clientX;a.screenY=b.screenY;a.clientY=b.clientY;a.ctrlKey=b.ctrlKey;a.altKey=b.altKey;a.shiftKey=b.shiftKey;a.metaKey=b.metaKey;a.button=b.button;a.relatedTarget=c},jz:function(a,b,c,d){Object.defineProperty(a,"layerX",{value:b});Object.defineProperty(a,"layerY",{value:c});a.button=1;a.which=
1;d.dispatchEvent(a)},fB:function(a){switch(a){case "touchmove":case "mousemove":return"pointermove";case "touchup":case "mouseup":return"pointerup";case "touchdown":case "mousedown":return"pointerdown"}},raiseKey:function(a,b,c,d,e){var f=this.g.Qd.xc();null===f&&u.J(this.g)&&(f=window.document.elementFromPoint(this.yq,this.zq));if(u.J(this.g)&&9===b&&"keydown"===a){var g=f.tabIndex,h=c?-1:1,k=this;document.querySelectorAll("input, button").forEach(function(q){if(q.tabIndex===g+h){var n=q.getBoundingClientRect();
k.yq=n.x+n.width/2;k.zq=n.y+n.height/2;q.focus()}})}else null!==f?this.pq(b)?this.Kx(f,a,b,c,d,e,!0):this.CI(f,b,a,c):this.Kx(window.document.getElementById(this.rE),a,b,c,d,e,!1)},pq:function(a){return 13===a||27===a||37===a||38===a||39===a||40===a},CI:function(a,b,c,d){if("keypress"===c){c=a.selectionStart;var e=a.selectionEnd;b=String.fromCharCode(b);d||(b=b.toLowerCase());void 0===a.value&&(a.value="");a.value=a.value.substr(0,c)+b+a.value.substr(e);c===e&&this.vG(a);this.pJ(a,c+1)}},pJ:function(a,
b){a.setSelectionRange?(a.focus(),a.setSelectionRange(b,b)):a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",b),a.moveStart("character",b),a.select())},vG:function(a){var b=0;if(document.selection)a.focus(),b=document.selection.createRange(),b.moveStart("character",-a.value.length),b=b.text.length;else if(a.selectionStart||"0"===a.selectionStart)b=a.selectionStart;return b},AH:function(a,b){return b||this.pq(a)?a:String.fromCharCode(a).toLowerCase().charCodeAt(0)&255},
Kx:function(a,b,c,d,e,f,g){var h,k,q=c;"keypress"===b&&(q=this.AH(c,d));if(void 0!==window.document.createEventObject)c=document.createEvent("Events"),c.initEvent(b,!0,!0),c.which=q,c.keyCode=q,c.shiftKey=d,c.ctrlKey=f,c.altKey=e,c.metaKey=!1;else{var n=k=h=q;c=window.document.createEvent("KeyboardEvent");void 0===c.initKeyboardEvent?c.initKeyEvent(b,!0,!0,null,f,e,d,!1,h,k,n,a):c.initKeyboardEvent(b,!0,!0,null,f,e,d,!1,h,k,n,a);delete c.keyCode;Object.defineProperty(c,"keyCode",{value:q});delete c.charCode;
Object.defineProperty(c,"charCode",{value:0});delete c.shiftKey;Object.defineProperty(c,"shiftKey",{value:d});delete c.ctrlKey;Object.defineProperty(c,"ctrlKey",{value:f});delete c.altKey;Object.defineProperty(c,"altKey",{value:e});delete c.metaKey;Object.defineProperty(c,"metaKey",{value:!1});delete c.which;d=q;if("keypress"===b&&this.pq(q)&&13!==q||g)d=0;Object.defineProperty(c,"which",{value:d});delete c.target;Object.defineProperty(c,"target",{value:a})}a.dispatchEvent(c)}};var WebvisuExtensionMgr;
(function(){var a=function(){this.Np=[];this.Ch={}};a.prototype={register:function(b){if(null===b)throw Error("null value not expected");if("function"!==typeof b.instantiateIf)throw Error("function instantiateIf of extensionFactory expected");this.Np.push(b)},MO:function(b){this.oa=b},openControlRelative:function(b,c,d,e,f,g){if(null===b)throw Error("null value not expected");if("number"!==typeof c)throw new TypeError("Expected numeric value");if("number"!==typeof d)throw new TypeError("Expected numeric value");
if("number"!==typeof e)throw new TypeError("Expected numeric value");if("number"!==typeof f)throw new TypeError("Expected numeric value");if(null===g)throw Error("null value not expected");c=new M(c,d,c+e,d+f);d=u.cp(g);c=c.Ob(d.s,d.u);this.oa?g.appendChild(b):(u.jd(b,c),b.style.zIndex=300,g.parentNode.appendChild(b));g.Bt=b},BP:function(b){var c;for(c=0;c<this.Np.length;++c){var d=this.Np[c].instantiateIf(b);if(null!==d&&void 0!==d){if(this.fK(d))return d;break}}return null},bL:function(){var b;
for(b=0;b<this.Ch.length;++b)this.Ch[b]&&this.ds(b);this.Ch=[]},TK:function(b,c,d,e){b.create(d.s,d.u,d.C(),d.B(),e);this.Ch[c]=b},ds:function(b){var c=this.qm(b);null!==c&&(c.destroy(),delete this.Ch[b])},SK:function(b,c){b=this.qm(b);null!==b&&b.setVisibility(c)},RK:function(b,c){b=this.qm(b);null!==b&&b.move(c.s,c.u,c.C(),c.B())},QK:function(b,c,d){b=this.qm(b);return null===b?null:b.invoke(c,d)},qm:function(b){var c=this.Ch[b];return c?c:(v.warn("Not existing extension with id "+b+" accessed; ignored"),
null)},fK:function(b){return this.sj(b,"create")&&this.sj(b,"setVisibility")&&this.sj(b,"move")&&this.sj(b,"invoke")&&this.sj(b,"destroy")?!0:!1},sj:function(b,c){return"function"!==typeof b[c]?(v.warn("Extension object is missing an implementation of '"+c+"'"),!1):!0}};WebvisuExtensionMgr=new a})();var p;p=function(a){void 0===a&&(a=10);this.ma=new ArrayBuffer(a);this.pd=new Uint8Array(this.ma);this.Ya=0};p.D=function(a){return r.lj()?new ha:new p(a)};
p.prototype={UI:function(){this.Rx(this.RH(this.ma.byteLength))},Rx:function(a){var b=this.pd;this.ma=new ArrayBuffer(a);this.pd=new Uint8Array(this.ma);for(a=0;a<this.Ya;++a)this.pd[a]=b[a]},RH:function(a){return 500>a?2*a:Math.floor(1.3*a)},dn:function(a,b){this.pd[a]=b},AA:function(a){a>this.ma.byteLength&&this.Rx(a)},un:function(a){this.Ya>=this.ma.byteLength&&this.UI();var b=this.Ya;this.Ya++;this.dn(b,a)},xn:function(a,b,c){var d=new Uint8Array(a);this.AA(this.size()+c);if(200<c&&0===b%4&&0===
this.Ya%4&&!r.So()){var e=Math.floor(c/4);var f=Math.floor(this.Ya/4);a=new Uint32Array(a,4*Math.floor(b/4),e);var g=new Uint32Array(this.ma,4*f,e),h=c-4*e;for(f=0;f<e;++f)g[f]=a[f];for(f=0;f<h;++f)this.pd[this.Ya+f+4*e]=d[b+f+4*e]}else if(d.slice)this.pd.set(d.slice(b,b+c),this.Ya);else for(f=0;f<c;++f)this.pd[this.Ya+f]=d[b+f];this.Ya+=c},Ls:function(a,b){this.dn(a,b)},xz:function(a){return this.pd[a]},size:function(){return this.Ya},Fd:function(){var a=new ArrayBuffer(this.Ya),b=new Uint8Array(this.ma),
c=new Uint8Array(a);if(b.slice)c.set(b.slice(0,this.Ya),0);else{var d;for(d=0;d<this.Ya;++d)c[d]=b[d]}return a}};var ha;
(function(){function a(b){return String.fromCharCode((b>>4)+65)+String.fromCharCode((b&15)+65)}ha=function(){this.ma="";this.Ya=0};ha.prototype={dn:function(b,c){var d=null,e=null;0<b&&(d=this.ma.substr(0,2*b));b<this.Ya-1&&(e=this.ma.substr(2*b+2,this.ma.length-2*b-2));b="";null!==d&&(b=d);b=b.concat(a(c));null!==e&&(b=b.concat(e));this.ma=b},AA:function(){},un:function(b){this.ma=this.ma.concat(a(b));this.Ya++},zK:function(b){var c="",d;for(d=0;d<b.length;++d)c=c.concat(a(b.charCodeAt(d)));this.ma=
this.ma.concat(c);this.Ya+=c.length/2},xn:function(b,c,d){this.ma=this.ma.concat(b.substr(2*c,2*d));this.Ya+=d},Ls:function(b,c){this.dn(b,c)},xz:function(b){return this.ma.charCodeAt(2*b)-65<<4|this.ma.charCodeAt(2*b+1)-65},size:function(){return this.Ya},Fd:function(){return this.ma}}})();var O;
(function(){function a(g,h,k){return function(){if(0===this.o%k&&(1===k||this.ha))try{return(new g[h+"Array"](this.ma,this.o,1))[0]}catch(q){}return null}}function b(g,h,k){return function(){var q=this["getOptimized"+h]();null===q&&(q=this["_get"+h]());this.o+=k;return q}}function c(g,h,k){O.prototype["getOptimized"+h]=a(this,h,k);O.prototype["get"+h]=b(this,h,k)}O=function(g,h,k,q,n){if(!(g instanceof ArrayBuffer))throw new TypeError("BinaryReader requires an ArrayBuffer");if(void 0===h)throw Error("Byteorder must be explicitly assigned");
void 0===k&&(k=(new Configuration).$f());void 0===q&&(q=0);void 0===n&&(n=g.byteLength);if(!(k instanceof aa))throw new TypeError("BinaryReader requires a WebVisuTextDecoder");if(0>q)throw Error("Invalid start offset");if(0===n||q+n>g.byteLength)throw Error("Valid data range exceeded");this.ha=h;this.vf=n;this.ma=g;this.o=q;this.pd=new Uint8Array(this.ma);this.Xd=k;this.M=new rb(this,this.ha)};O.D=function(g,h,k,q,n){return r.HB()?new sb(g,h,k,q,n):r.lj()?new tb(g,h,k,q,n):new O(g,h,k,q,n)};O.prototype=
{Oi:function(){return this.ha},Xi:function(){return this.Xd},bl:function(g){this.Xd=new aa(g)},ja:function(g,h){var k=g*(h?2:1);if(0>g||this.o+k>this.ma.byteLength)throw Error("INDEX_SIZE_ERR: DOM Exception 1");g=this.M.tA(this.ma,this.o,g,k,h,this.Xd);this.o+=k;return g},ze:function(g){return this.M.ze(g)},Gi:function(){return String.fromCharCode(this.getUint8())},kf:function(){return this.o>=this.vf},ga:function(){return this.o},seek:function(g){this.o=g},size:function(){return this.vf},m:function(){return this.M.fz()},
h:function(){return this.M.ez()},wa:function(){return this.M.hz()},nf:function(){return this.M.cs()},J:function(){return this.M.gz()},jd:function(){return this.M.bs()},Gb:function(){return this.M.iz()},$a:function(){return this.M.Gd()},pf:function(){return this.M.Id()},Da:function(g){return this.pd[g]},getUint8:function(){var g=this.Da(this.o);this.o++;return g},Fi:function(){return this.ma}};var d={Int8:1,Int16:2,Int32:4,Uint16:2,Uint32:4,Float32:4,Float64:8},e;for(e in d)if(d.hasOwnProperty(e)){c(this,
e,d[e]);var f="_getFloat64";O.prototype[f]=O.prototype.m;f="_getFloat32";O.prototype[f]=O.prototype.h;f="_getInt64";O.prototype[f]=O.prototype.$a;f="_getUint64";O.prototype[f]=O.prototype.pf;f="_getInt32";O.prototype[f]=O.prototype.wa;f="_getUint32";O.prototype[f]=O.prototype.nf;f="_getInt16";O.prototype[f]=O.prototype.J;f="_getUint16";O.prototype[f]=O.prototype.jd;f="_getInt8";O.prototype[f]=O.prototype.Gb}})();var Ma;Ma=function(a){this.M=a};
Ma.prototype={Oi:function(){return this.M.Oi()},Xi:function(){return this.M.Xi()},bl:function(a){this.M.bl(a)},ja:function(a,b){return this.M.ja(a,b)},ze:function(a){return this.M.ze(a)},Gi:function(){return this.M.Gi()},kf:function(){return this.M.kf()},ga:function(){return this.M.ga()},seek:function(a){this.M.seek(a)},size:function(){return this.M.size()},getFloat64:function(){this.md(8);return this.M.getFloat64()},getFloat32:function(){this.md(4);return this.M.getFloat32()},getInt32:function(){this.md(4);
return this.M.getInt32()},getUint32:function(){this.md(4);return this.M.getUint32()},getInt16:function(){this.md(2);return this.M.getInt16()},getUint16:function(){this.md(2);return this.M.getUint16()},Id:function(){this.md(8);return this.M.Id()},Gd:function(){this.md(8);return this.M.Gd()},getInt8:function(){return this.M.getInt8()},getUint8:function(){return this.M.getUint8()},Da:function(a){return this.M.Da(a)},Fi:function(){return this.M.Fi()},md:function(a){if(8===a||4===a||2===a){var b=this.M.ga();
0!==b%a&&this.M.seek(b+a-b%a)}}};var sb;
sb=function(a,b,c,d,e){if(!(a instanceof ArrayBuffer))throw new TypeError("BinaryReader_DataView requires an ArrayBuffer");if(void 0===b)throw Error("Byteorder must be explicitly assigned");void 0===c&&(c=(new Configuration).$f());void 0===d&&(d=0);void 0===e&&(e=a.byteLength);if(!(c instanceof aa))throw new TypeError("BinaryReader_DataView requires a WebVisuTextDecoder");if(0>d)throw Error("Invalid start offset");if(0===e||d+e>a.byteLength)throw Error("Valid data range exceeded");this.ha=b;this.zd=
new DataView(a,0,e+d);this.vf=e;this.ma=a;this.o=d;this.Xd=c;this.M=new rb(this,this.ha)};
sb.prototype={Oi:function(){return this.ha},Xi:function(){return this.Xd},bl:function(a){this.Xd=new aa(a)},ja:function(a,b){var c=a*(b?2:1);if(0>a||2*(this.o+c)>this.ma.length)throw Error("INDEX_SIZE_ERR: DOM Exception 1");a=this.M.tA(this.ma,this.o,a,c,b,this.Xd);this.o+=c;return a},ze:function(a){return this.M.ze(a)},Gi:function(){return String.fromCharCode(this.getUint8())},kf:function(){return this.o>=this.vf},ga:function(){return this.o},seek:function(a){this.o=a},size:function(){return this.vf},
getFloat64:function(){var a=this.zd.getFloat64(this.o,this.ha);this.o+=8;return a},getFloat32:function(){var a=this.zd.getFloat32(this.o,this.ha);this.o+=4;return a},Gd:function(){if("function"===typeof this.zd.Gd){var a=this.zd.Gd(this.o,this.ha);this.o+=8}else a=this.M.Gd();return a},Id:function(){if("function"===typeof this.zd.Id){var a=this.zd.Id(this.o,this.ha);this.o+=8}else a=this.M.Id();return a},getInt32:function(){var a=this.zd.getInt32(this.o,this.ha);this.o+=4;return a},getUint32:function(){var a=
this.zd.getUint32(this.o,this.ha);this.o+=4;return a},getInt16:function(){var a=this.zd.getInt16(this.o,this.ha);this.o+=2;return a},getUint16:function(){var a=this.zd.getUint16(this.o,this.ha);this.o+=2;return a},getInt8:function(){var a=this.zd.getInt8(this.o);this.o++;return a},getUint8:function(){var a=this.Da(this.o);this.o++;return a},Da:function(a){return this.zd.getUint8(a)},Fi:function(){return this.ma}};var tb;
tb=function(a,b,c,d,e){if("string"!==typeof a)throw new TypeError("BinaryReader_StringBased expects a string");if(void 0===b)throw Error("Byteorder must be explicitly assigned");void 0===c&&(c=(new Configuration).$f());void 0===d&&(d=0);void 0===e&&(e=a.length/2);if(!(c instanceof aa))throw new TypeError("BinaryReader requires a WebVisuTextDecoder");if(0>d)throw Error("Invalid start offset");if(0===e||d+e>a.length/2)throw Error("Valid data range exceeded");this.ha=b;this.vf=e;this.ma=a;this.o=d;this.Xd=
c;this.M=new rb(this,b)};
tb.prototype={Oi:function(){return this.ha},Xi:function(){return this.Xd},bl:function(a){this.Xd=new aa(a)},ja:function(a,b){var c=a*(b?2:1);if(0>a||2*(this.o+c)>this.ma.length)throw Error("INDEX_SIZE_ERR: DOM Exception 1");var d=Array(a);if(b){if(this.ha)for(b=0;b<a;++b){var e=2*b+this.o;d[b]=(this.Da(e+1)<<8)+this.Da(e)}else for(b=0;b<a;++b)e=2*b+this.o,d[b]=this.Da(e+1)+(this.Da(e)<<8);a=String.fromCharCode.apply(null,d)}else{for(b=this.o;b<this.o+a;++b)d[b-this.o]=this.Da(b);a=this.Xd.aL(d)}this.o+=
c;return a},ze:function(a){return this.M.ze(a)},Gi:function(){return String.fromCharCode(this.getUint8())},kf:function(){return this.o>=this.vf},ga:function(){return this.o},seek:function(a){this.o=a},size:function(){return this.vf},getFloat64:function(){var a=this.M.fz();this.o+=8;return a},getFloat32:function(){var a=this.M.ez();this.o+=4;return a},Gd:function(){return this.M.Gd()},Id:function(){return this.M.Id()},getInt32:function(){var a=this.M.hz();this.o+=4;return a},getUint32:function(){var a=
this.M.cs();this.o+=4;return a},getInt16:function(){var a=this.M.gz();this.o+=2;return a},getUint16:function(){var a=this.M.bs();this.o+=2;return a},getInt8:function(){var a=this.M.iz();this.o++;return a},getUint8:function(){var a=this.Da(this.o);this.o++;return a},Da:function(a){return this.ma.charCodeAt(2*a)-65<<4|this.ma.charCodeAt(2*a+1)-65},Fi:function(){return this.ma}};var rb;rb=function(a,b){this.ua=a;this.ha=b};
rb.prototype={ze:function(a){var b=this.ua.ga(),c=0;if(a)for(;0!==this.ua.getUint16();)c++;else for(;0!==this.ua.getUint8();)c++;this.ua.seek(b);b=this.ua.ja(c,a);a?this.ua.getUint16():this.ua.getUint8();return b},fz:function(){var a=this.ua.ga(),b=this.ua.Da(this.Kb(a,0,8)),c=this.ua.Da(this.Kb(a,1,8)),d=this.ua.Da(this.Kb(a,2,8)),e=this.ua.Da(this.Kb(a,3,8)),f=this.ua.Da(this.Kb(a,4,8)),g=this.ua.Da(this.Kb(a,5,8)),h=this.ua.Da(this.Kb(a,6,8)),k=this.ua.Da(this.Kb(a,7,8));a=1-2*(b>>7);b=((b<<1&
255)<<3|c>>4)-(Math.pow(2,10)-1);c=(c&15)*Math.pow(2,48)+d*Math.pow(2,40)+e*Math.pow(2,32)+f*Math.pow(2,24)+g*Math.pow(2,16)+h*Math.pow(2,8)+k;return 1024===b?0!==c?NaN:Infinity*a:-1023===b?a*c*Math.pow(2,-1074):a*(1+c*Math.pow(2,-52))*Math.pow(2,b)},ez:function(){var a=this.ua.ga(),b=this.ua.Da(this.Kb(a,0,4)),c=this.ua.Da(this.Kb(a,1,4)),d=this.ua.Da(this.Kb(a,2,4)),e=this.ua.Da(this.Kb(a,3,4));a=1-2*(b>>7);b=(b<<1&255|c>>7)-127;c=(c&127)<<16|d<<8|e;return 128===b?0!==c?NaN:Infinity*a:-127===b?
a*c*Math.pow(2,-149):a*(1+c*Math.pow(2,-23))*Math.pow(2,b)},hz:function(){var a=this.cs();return a>Math.pow(2,31)-1?a-Math.pow(2,32):a},cs:function(){var a=this.ua.ga(),b=this.ua.Da(this.Kb(a,0,4)),c=this.ua.Da(this.Kb(a,1,4)),d=this.ua.Da(this.Kb(a,2,4));a=this.ua.Da(this.Kb(a,3,4));return b*Math.pow(2,24)+(c<<16)+(d<<8)+a},gz:function(){var a=this.bs();return a>Math.pow(2,15)-1?a-Math.pow(2,16):a},bs:function(){var a=this.ua.ga(),b=this.ua.Da(this.Kb(a,0,2));a=this.ua.Da(this.Kb(a,1,2));return(b<<
8)+a},iz:function(){var a=this.ua.Da(this.ua.ga());return a>Math.pow(2,7)-1?a-Math.pow(2,8):a},tA:function(a,b,c,d,e,f){var g=null;if(e){if(this.ha&&0===b%2)try{g=new Int16Array(a,b,c)}catch(h){}if(null===g)if(g=new Int16Array(Array(c)),b=new Uint8Array(a,b,d),this.ha)for(a=0;a<c;++a)g[a]=(b[2*a+1]<<8)+b[2*a];else for(a=0;a<c;++a)g[a]=b[2*a+1]+(b[2*a]<<8);b=[];for(a=0;a<c;++a)b[a]=g[a];return String.fromCharCode.apply(null,b)}g=new Int8Array(a,b,c);return f.decode(g)},Id:function(){var a=this.ua.getUint32(),
b=this.ua.getUint32();return this.ha?a+b*Math.pow(2,32):a*Math.pow(2,32)+b},Gd:function(){var a=this.ua.ga(),b=this.ua.getUint32(),c=this.ua.getUint32();if(this.ha){var d=b;b=c}else d=c;if(0===(b&2147483648))return this.ua.seek(a),this.Id();a=(~d>>>0)+1;d=~b;4294967296<=a&&(a-=4294967296,d+=1);return-1*(a+Math.pow(2,32)*d)},Kb:function(a,b,c){return a+(this.ha?c-b-1:b)}};var P;
P=function(a,b,c){if(!(a instanceof p))throw new TypeError("BinaryWriter expects a BinaryBuffer");if(void 0===b)throw Error("Byteorder must be explicitly assigned");this.Ag=a;this.ha=b;this.Uc=-1;this.wr=c};P.D=function(a,b,c){null===c|void 0===c&&(c=(new Configuration).Hd());return r.lj()?new ub(a,b,c):new P(a,b,c)};
P.prototype={LJ:function(a){var b=a.length/2,c;if(1!==b&&2!==b&&4!==b)throw Error("Unexpected size for swapping");for(c=0;c<b;++c){var d=a[c];a[c]=a[a.length-c-1];a[a.length-c-1]=d}},ug:function(a,b,c){var d=new ArrayBuffer(c);b=new b(d);d=new Uint8Array(d);b[0]=a;this.jp(d,c)},jp:function(a,b){var c;1<b&&!this.ha&&this.LJ(a,b);for(c=0;c<b;++c)this.Cu(a[c])},Cu:function(a){-1!==this.Uc?(this.Ag.Ls(this.Uc,a),this.Uc++):this.Ag.un(a)},seek:function(a){this.Uc=a},ga:function(){return-1!==this.Uc?this.Uc:
this.Ag.size()},vn:function(a){var b=[204,221],c;for(c=0;c<a;++c)this.Na(b[c%2])},Na:function(a){this.Cu(a)},Iy:function(a){this.ug(a,Int8Array,1)},Db:function(a){this.ug(a,Uint16Array,2)},wc:function(a){this.ug(a,Int16Array,2)},K:function(a){this.ug(a,Uint32Array,4)},Cd:function(a){this.ug(a,Int32Array,4)},wn:function(a){this.ug(a,Float32Array,4)},Pr:function(a){this.ug(a,Float64Array,8)},Jy:function(a){var b=new ArrayBuffer(8);var c=new Uint8Array(b);b=new Uint32Array(b);b[0]=a&4294967295;b[1]=
a/4294967296;this.jp(c,8)},Hy:function(a){var b=new ArrayBuffer(8);var c=new Uint8Array(b);b=new Uint32Array(b);0<a&&(b[0]=a&4294967295|0,b[1]=a/4294967296|0);if(0>a){var d=~(-a&4294967295|0)+1|0;b[0]=d;b[1]=~(-a/4294967296|0)+!d|0}this.jp(c,8)},Yf:function(a){this.oj(a,!1)},Zb:function(a){this.oj(a,!0)},eb:function(a,b){return new vb(a,b,this.wr)},oj:function(a,b){for(var c,d=a.data(),e=0;e<a.length();++e)c=d[e],a.unicode()?this.Db(c):this.Na(c);b&&(a.unicode()?this.Db(0):this.Na(0))}};var ub;
ub=function(a,b,c){if(!(a instanceof ha))throw new TypeError("BinaryWriter expects a BinaryBuffer_StringBased");if(void 0===b)throw Error("Byteorder must be explicitly assigned");this.Ag=a;this.ha=b;this.Uc=-1;this.wr=c};
ub.prototype={nd:function(a){if(-1!==this.Uc)for(var b=0;b<a.length;++b)this.Ag.Ls(this.Uc,a.charCodeAt(b)&255),this.Uc++;else this.Ag.zK(a)},seek:function(a){this.Uc=a},ga:function(){return-1!==this.Uc?this.Uc:this.Ag.size()},vn:function(a){var b=[204,221],c;for(c=0;c<a;++c)this.Na(b[c%2])},Na:function(a){this.nd(this.me(a,8,!1))},Iy:function(a){this.nd(this.me(a,8,!0))},Db:function(a){this.nd(this.me(a,16,!1))},wc:function(a){this.nd(this.me(a,16,!0))},K:function(a){this.nd(this.me(a,32,!1))},Cd:function(a){this.nd(this.me(a,
32,!0))},Jy:function(a){var b=a/4294967296;this.nd(this.me(a&4294967295,32,!1));this.nd(this.me(b,32,!1))},Hy:function(a){if(0<a){var b=a&4294967295|0;var c=a/4294967296|0}0>a&&(b=c=~(-a&4294967295|0)+1|0,c=~(-a/4294967296|0)+!c|0);this.nd(this.me(b,32,!1));this.nd(this.me(c,32,!1))},wn:function(a){this.nd(this.Iv(a,23,8))},Pr:function(a){this.nd(this.Iv(a,52,11))},Yf:function(a){this.oj(a,!1)},Zb:function(a){this.oj(a,!0)},eb:function(a,b){return new vb(a,b,this.wr)},oj:function(a,b){for(var c,d=
a.data(),e=0;e<a.length();++e)c=d[e],a.unicode()?this.Db(c):this.Na(c);b&&(a.unicode()?this.Db(0):this.Na(0))},Iv:function(a,b,c){var d=Math.pow(2,c-1)-1,e=-d+1,f=e-b,g=parseFloat(a),h=isNaN(g)||-Infinity===g||Infinity===g?g:0,k=0,q=2*d+1+b+3,n=Array(q),B=0>(g=0!==h?0:g),z=Math.floor(g=Math.abs(g)),J=g-z,ja;for(a=q;a;n[--a]=0);for(a=d+2;z&&a;n[--a]=z%2,z=Math.floor(z/2));for(a=d+1;0<J&&a;(n[++a]=(1<=(J*=2))-0)&&--J);for(a=-1;++a<q&&!n[a];);if(n[(g=b-1+(a=(k=d+1-a)>=e&&k<=d?a+1:d+1-(k=e-1)))+1]){if(!(ja=
n[g]))for(J=g+2;!ja&&J<q;ja=n[J++]);for(J=g+1;ja&&0<=--J;(n[J]=!n[J]-0)&&(ja=0));}for(a=0>a-2?-1:a-3;++a<q&&!n[a];);(k=d+1-a)>=e&&k<=d?++a:k<e&&(k!==d+1-q&&k<f&&this.warn("encodeFloat::float underflow"),a=d+1-(k=e-1));if(z||0!==h)this.warn(z?"encodeFloat::float overflow":"encodeFloat::"+h),k=d+1,a=d+2,-Infinity===h?B=1:isNaN(h)&&(n[a]=1);g=Math.abs(k+d);J=c+1;for(c="";--J;c=g%2+c,g=g>>=1);J=g=0;a=(c=(B?"1":"0")+c+n.slice(a,a+b).join("")).length;for(b=[];a;J=(J+1)%8)g+=(1<<J)*c.charAt(--a),7===J&&
(b[b.length]=String.fromCharCode(g),g=0);b[b.length]=g?String.fromCharCode(g):"";return(this.ha?b:b.reverse()).join("")},me:function(a,b,c){var d=[],e=Math.pow(2,b);if(c){if(c=-Math.pow(2,b-1),a>-c-1||a<c)this.zy("encodeInt::overflow"),a=0}else if(a>e||0>a)this.zy("encodeInt::overflow"),a=0;for(0>a&&(a+=e);a;a=Math.floor(a/256))d[d.length]=String.fromCharCode(a%256);for(b=-(-b>>3)-d.length;b;b--)d[d.length]=String.fromCharCode(0);return(this.ha?d:d.reverse()).join("")},zy:function(a){throw Error(a);
}};var wb;wb=function(a,b,c){this.M=O.D(a,b,c,void 0,void 0)};wb.prototype={Ki:function(){var a=0,b=0;do{var c=this.M.getUint8();a|=(c&127)<<b;b+=7}while(0!==(c&128));return a}};var xb;xb=function(a,b,c){this.Le=P.D(a,b,c)};
xb.prototype={G:function(a,b){var c;b=void 0!==b?b:this.Gz(a);if(0===b)throw Error("Expected value for MBui greater then zero");var d=a;for(c=0;c<b-1;c++)this.Le.Na(d&127|128),d>>=7;this.Le.Na(d&127);if(0!==d>>7)throw Error("Value "+a+" cannot be written as an MBUI with "+b+" bytes");},Gz:function(a){var b=0;do a>>=7,b++;while(0<a);return b}};var yb;yb=function(a){16<=a&&(a=0);this.Dh=a};
yb.prototype={OA:function(a){16<=a&&(a=0);this.Dh=a},gd:function(){return 0===this.Dh},right:function(){return 0!==(this.Dh&1)},left:function(){return 0!==(this.Dh&2)},top:function(){return 0!==(this.Dh&4)},bottom:function(){return 0!==(this.Dh&8)}};var Va;Va=function(){};
Va.BB=function(a,b,c,d,e,f,g,h){var k=window.document.createElement("div");k.id="cdsClientObject";k.style.position="absolute";if(b)return new zb(k,new Ab,h,a);if(c)return new Bb(k,new Ab,h,a);var q=c=b=null;e&&(c=new Cb(g));d&&(b=this.Ap());return f?(e&&(q=window.document.createElement("div"),q.id="cdsTouchScrollable",q.style.position="absolute",q.style.cssText+="outline: none; -webkit-tap-highlight-color: transparent;"),new Db(k,new Ab,h,b,c,new Eb,q,a)):new Q(k,new Ab,h,b,c,a)};
Va.uB=function(a,b,c,d){var e=window.document.createElement("div");a=a?window.document.createElement("div"):null;var f=this.Ap(),g=new Cb(!1);e.id="cdsDialog";e.style.position="absolute";e.style.overflow="hidden";e.style.zIndex=F.xo;a&&(a.id="cdsModal",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",b&&(a.style.backgroundColor="rgb(0,0,0)",a.style.backgroundColor="rgba(0,0,0,0.4)"),a.style.zIndex=F.xo,a.style.position="fixed");return new Fb(e,new Ab,f,g,a,b,c,d)};
Va.DB=function(a){var b=new Cb(!1);b.Ld(u.fb());b.ig(a);return b};Va.vB=function(a){var b=new Gb;b.Ld(u.fb());b.ig(a);return b};Va.yt=function(a,b,c){var d=this.Ap(a?F.dD:F.zC),e;a&&(d.canvas.id="cdsSelectionCanvas",d.canvas.style.pointerEvents="none");b?e=this.OE():e=null;return new Hb(d,e,c)};
Va.OE=function(){var a=window.document.createElement("div");a.id="cdsClip";a.style.overflow="hidden";a.style.position="absolute";a.style.top="0 px";a.style.left="0 px";a.style.width="-1 px";a.style.height="-1 px";a.style.touchAction="none";a.style.zIndex=F.wo;return a};
Va.Ap=function(a){var b=window.document.createElement("canvas").getContext("2d");b.canvas.id="cdsCanvas";b.canvas.style.position="absolute";b.canvas.style.width="100%";b.canvas.style.height="100%";b.canvas.style.zIndex=void 0!==a?a:F.wo;return b};Va.zB=function(a,b){return new Ib(a,b)};var Ab;Ab=function(){this.ve=null};Ab.prototype={OA:function(a){this.ve=a},Zz:function(){return 0!==(this.ve&1)},tL:function(){return 0!==(this.ve&2)}};var Ib;Ib=function(a,b){this.xa=[];this.pa=null;this.g=b;this.Vs(a)};
Ib.prototype={lb:function(a){var b=this.g.pa;null!==this.xa&&null!==b&&b.Fs(a);null!==this.pa&&this.pa.lb()},handleEvent:function(a,b){return null!==this.pa?this.pa.handleEvent(a,b):!1},Gk:function(){null!==this.pa&&this.pa.Gk()},initialize:function(a,b,c){this.pa=new kb(a,new Jb(a,c,b));a=a.pa;null!==a&&(this.pa.g.N.QA(a.g.N.fq),this.pa.g.N.ko(a.g.N.fi));this.Vs(this.xa)},Vs:function(a){this.xa=a;if(null!==this.pa){this.pa.Ty();for(a=0;a<this.xa.length;++a)this.pa.tn(this.xa[a]);this.pa.vb instanceof
Jb&&(a=this.pa.vb.En(),null!==a&&void 0!==a&&a instanceof Eb&&a.iB(this))}},IP:function(a,b,c,d){var e=this.pa.xa.R.length,f,g=this.g.pa,h=null;for(f=0;f<e;++f){var k=this.pa.xa.oc(f);h=k.da;var q=k.info().scroll().Pa();var n=k.info().zoom().Pa();q.jh(new t(c,d));q.ih(new t(a,b));n.Ts(1);n.Ss(1);k.Z(R.zh)||k.Bi(R.zh)}e=g.xa.R.length;for(f=0;f<e;++f)k=g.xa.oc(f),null!==h&&k.da===h&&(q=k.info().scroll().Pa(),n=k.info().zoom().Pa(),q.jh(new t(c,d)),q.ih(new t(a,b)),n.Ts(1),n.Ss(1),k.Z(R.zh)||k.Bi(R.zh))}};
var T;T=function(){};T.mg=function(a,b){var c=new Kb;c.promiseId=a;c.error=b;return c};T.AB=function(a,b){var c=new MethodCallMessage;c.methodName=a;c.params=b;return c};T.sB=function(a,b,c){var d=new CheckSimpleValueResultMessage;d.promiseId=a;d.result=b;d.value=c;return d};T.rB=function(a,b,c,d,e,f,g){var h=new CheckComplexValueResultMessage;h.promiseId=a;h.result=b;h.value=c;h.indexCount=d;h.index0=e;h.index1=f;h.index2=g;return h};
T.CB=function(a,b){var c=new ResizeMessage;c.width=a;c.height=b;return c};T.yB=function(a,b,c){var d=new GetTypeDescResultMessage;d.promiseId=a;d.result=b;d.typeDesc=c;return d};T.wB=function(a,b,c,d){var e=new GetAdditionalFileNameResultMessage;e.promiseId=a;e.result=b;e.originalAdditionalFileName=c;e.resultingAdditionalFileName=d;return e};T.xB=function(a,b,c,d){var e=new GetImagePoolFileNameResultMessage;e.promiseId=a;e.result=b;e.imageId=c;e.resultingFileName=d;return e};
T.FB=function(a,b,c){var d=new SetSimpleValueResultMessage;d.promiseId=a;d.result=b;d.value=c;return d};T.EB=function(a,b,c,d,e,f,g){var h=new SetComplexValueResultMessage;h.promiseId=a;h.result=b;h.value=c;h.indexCount=d;h.index0=e;h.index1=f;h.index2=g;return h};var L;L=function(){this.Xc=0};L.ph=0;L.s=1;L.T=2;L.u=3;L.ca=4;
L.prototype={pO:function(a){this.Xc=L.ph;null!==a&&void 0!==a&&(a.left()?this.Xc=L.s:a.right()?this.Xc=L.T:a.top()?this.Xc=L.u:a.bottom()&&(this.Xc=L.ca))},SO:function(){this.Xc=L.s},RO:function(){this.Xc=L.T},qN:function(){this.Xc=0},gd:function(){return this.Xc===L.ph},left:function(){return this.Xc===L.s},right:function(){return this.Xc===L.T},top:function(){return this.Xc===L.u},bottom:function(){return this.Xc===L.ca},before:function(){return this.left()||this.top()},after:function(){return this.right()||
this.bottom()}};var Eb;Eb=function(){this.Ek=null;this.Dm=this.Cm=this.Oe=this.Ne=this.Zj=this.Yj=this.bk=this.ak=0};
Eb.prototype={initialize:function(a){this.Ek=a},update:function(a,b,c,d,e,f){this.ak=a;this.bk=b;this.Yj=c;this.Zj=d;this.Ne=e;this.Oe=f;this.Ek(this.Ne,this.Oe)},iB:function(a){null!==a&&a.IP(this.Ne-this.ak,this.Oe-this.bk,this.Ne-this.Yj,this.Oe-this.Zj)},DA:function(){return this.Yj-this.ak},EA:function(){return this.Zj-this.bk},bh:function(a,b){this.SG(b.info().scroll())},ao:function(){},Sr:function(){},SG:function(a){var b=this.Dm-a.Wa.Y;this.Ne+=this.Cm-a.Wa.X;this.Oe+=b;this.Cm=a.Wa.X;this.Dm=
a.Wa.Y;this.Ek(this.Ne,this.Oe)},Js:function(){this.Dm=this.Cm=0},Qi:function(a){this.Dm=this.Cm=0;return a.info().scroll().Mh.Ob(a.info().scroll().Wa)}};var Sa;Sa=function(){this.Tx=u.fb();this.wi=this.nn=this.mn=this.hf=null};
Sa.prototype={JM:function(a,b,c,d){this.hf=this.aF(a,b,c,d);this.Tx.appendChild(this.hf)},Wy:function(){null!==this.hf&&this.Tx.removeChild(this.hf);this.hf=null},FK:function(a,b,c){this.hf.innerHTML!=a&&(this.hf.innerHTML=a,this.vE(b,c))},kP:function(a){this.wi=a},vE:function(a,b,c){this.mn+a.L>b&&(this.mn=b-a.L,this.hf.style.left=this.mn+"px");this.nn+a.$>c&&(this.nn=c-a.$,this.hf.style.top=this.nn+"px")},aF:function(a,b,c,d){var e=document.createElement("div");e.id="cdsTooltip";e.style.msUserSelect=
"none";e.style.WebkitUserSelect="none";e.style.MozUserSelect="none";e.style.userSelect="none";e.style.position="absolute";e.style.left=a+"px";e.style.top=b+"px";this.mn=a;this.nn=b;e.innerHTML=c;e.style.borderStyle="solid";e.style.font=d;e.style.color=this.wi.Et;e.style.borderColor=this.wi.lt;e.style.borderWidth=this.wi.Zi+"px";e.style.padding="2px 3px 2px 3px";e.style.backgroundColor=this.wi.Ct;e.style.zIndex=F.vD;return e}};var U;
U=function(a,b,c,d){this.ba=null;this.Cg=this.gb=this.Vg=this.Ug=this.Bd=this.Ad=this.qa=this.na=this.cd=this.bd=0;this.Yh="solid";this.Xh="";this.ec=null;this.ho=this.fo=1;this.Ma=new sa(0);this.Ub=a;c?(this.U=window.document.createElement("div"),this.U.id="cdsClip",this.U.style.overflow="hidden",this.U.style.position="relative",this.Ub.appendChild(this.U)):this.U=this.Ub;this.fa=b;this.Kf=null;this.za="";this.Dp=F.wo;this.Nb=d};
U.prototype={initialize:function(){},Sy:function(){},lb:function(){this.ba&&this.O().parentNode===this.ba?this.ba.removeChild(this.O()):v.warn("Error when removing a client object. This node doesn't have a parent:"+this.O().id)},update:function(a,b,c,d,e,f,g,h,k,q,n){this.bd=a;this.cd=b;this.na=c;this.qa=d;this.Ad=e;this.Bd=f;this.Ug=g;this.Vg=h;this.gb=k;this.fa.OA(q);this.ZJ(a,b,c,d,e,f,g,h,k,n)},ov:function(){},pv:function(a){var b=window.document.createElement("div");b.style.overflow="hidden";
b.style.position="absolute";b.style.margin="";b.style.padding="";b.id=a;b.style.left="0px";b.style.top="0px";b.style.width=this.na+"px";b.style.height=this.qa+"px";a=u.wM(a+"_canvas",this.na,this.qa);b.appendChild(a);return b},VO:function(a){a?this.YO():this.WO()},nP:function(a,b){this.fo=a;this.ho=b},O:function(){return this.Ub},ZJ:function(a,b,c,d,e,f,g,h,k,q){var n=this;e=void 0===this.Fk;void 0!==this.Fk&&this.Fk!==this.fa.Zz()?window.WebvisuInst.Hk(function(){n.Nh(a,b,c,d,g,h,k,q)}):(this.Fk=
!this.fa.Zz())?(null!==this.Kf&&(this.O().removeEventListener("transitionend",this.Kf,!1),this.Kf=null),e?(window.WebvisuInst.Hk(function(){n.Nh(a,b,c,d,g,h,k,q,100)}),window.WebvisuInst.sn(function(){n.oi()})):(this.oi(),window.WebvisuInst.sn(function(){n.Nh(a,b,c,d,g,h,k,q,100)}))):(e||""===q?window.WebvisuInst.sn(function(){n.oi()}):(this.Kf=function(){n.oi()},this.O().addEventListener("transitionend",this.Kf,!1)),window.WebvisuInst.Hk(function(){n.Nh(a,b,c,d,g,h,k,q,0)}))},Nh:function(a,b,c,d,
e,f,g,h,k){c=this.O();d=this.U;g=1/this.fo;var q=1/this.ho;this.ye()&&this.ov();c.style.left=a+"px";c.style.top=b+"px";c.style.width=this.Ef()+"px";c.style.height=this.Df()+"px";d.style.width=this.Ef()+"px";d.style.height=this.Df()+"px";0<this.Cg&&(d.style.border=this.Cg+"px "+this.Yh+" "+this.Xh);c.style.transformOrigin=e+.5+"px "+(f+.5)+"px";c.style.transform="";0!==this.gb&&(c.style.transform=1!==(this.fo||this.ho)?c.style.transform+("scale("+this.fo+","+this.ho+") rotate("+this.gb+"deg) scale("+
g+","+q+")"):c.style.transform+(" rotate("+this.gb+"deg)"));void 0!==k&&(c.style.opacity=k);c.style.zIndex=this.fa.tL()?F.kt:this.Dp;delete c.tabIndex;c.style.transition=h},V:function(){return null},Xg:function(){},XO:function(a,b,c){this.ba=a;void 0===c?b.appendChild(this.O()):b.insertBefore(this.O(),b.children[c])},Ld:function(a,b){this.ba=a;void 0===b?this.ba.appendChild(this.O()):this.ba.insertBefore(this.O(),this.ba.children[b])},va:function(){return this},dh:function(){return-1},ig:function(a){this.ec=
a},OL:function(){var a=u.aj(this.U,u.fb());return new M(a.X,a.Y,a.X+this.na,a.Y+this.qa)},oc:function(){return new M(this.bd,this.cd,this.bd+this.Ef(),this.cd+this.Df())},getParent:function(){return this.ba},eg:function(a){this.Ub.id+="_"+a;this.za+="_"+a;this.U!==this.Ub&&(this.U.id+="_"+a)},dg:function(){void 0!==this.Nb&&null!==this.Nb&&this.Nb.Ov.JB(this)},oi:function(){this.O().style.display=this.Fk?"":"none";this.Kf&&(this.O().removeEventListener("transitionend",this.Kf,!1),this.Kf=null)},nO:function(a){this.Ma=
a},ye:function(){return!1},Ef:function(){return Math.max(0,this.na-2*this.Cg)},Df:function(){return Math.max(0,this.qa-2*this.Cg)},Qs:function(){},Pi:function(){return!1},Qz:function(){return!1},Zn:function(){return!1}};var Q;Q=function(a,b,c,d,e,f){U.call(this,a,b,c,f);this.cb=d;this.ta=e;this.kq();this.Xl=this.Qj=this.sd=null;this.ii=[];this.Mg=[];this.Sf=null;this.If=-1;this.rj=!1;this.Vc=null;this.ri=!1;this.wm=this.ta&&this.ta.Hg?!0:!1;this.je=[];this.Oc=[];this.Hu=this.Gl=0};Q.prototype=Object.create(U.prototype);
l=Q.prototype;l.constructor=Q;l.initialize=function(){this.wm||this.GD(this.U);this.ri&&this.HD()};l.XA=function(a){this.ri=a};l.IA=function(a){this.rj=a};l.ye=function(){return this.Ma.cl()};l.oi=function(){this.Eh(this.cb,this.Te(),this.Se());U.prototype.oi.call(this)};l.Xg=function(a){this.ta&&this.ta.Xg(a);this.cb.clearRect(a.s,a.u,a.C(),a.B())};l.dg=function(){this.Nb.Sh.hN(this);this.ta&&this.ta.dg();U.prototype.dg.call(this)};
l.lb=function(){this.ar();this.ta&&this.ta.Ds();this.Vc&&this.Vc.lb(this);this.Rk()&&this.cB();U.prototype.lb.call(this)};l.Sy=function(){for(var a in this.Mg)this.U.removeChild(this.Mg[a].O());this.If=-1;this.Mg=[]};l.MK=function(){var a,b=!1,c=this.U;for(d in this.je)c.removeChild(this.je[d].O());for(a in this.Oc)c.removeChild(this.Oc[a]),b=!0;this.je=[];this.Oc=[];this.If=-1;if(0===c.childElementCount){b&&null!==this.sd&&c.appendChild(this.sd);var d=this.V();c.appendChild(d.canvas)}};
l.V=function(){var a=this.Vp();if(a){var b=a.Ga;this.Eh(b,-1===b.width?this.Ef():b.width,-1===b.height?this.Df():b.height);a.qw&&b.setTransform(1,0,0,1,this.Ad,this.Bd)}else b=this.cb,this.Eh(b,this.Te(),this.Se()),b.setTransform(1,0,0,1,this.Ad,this.Bd);return b};
l.Vr=function(){var a;(a=this.Vp())?(a=a.Ga,this.Eh(a,-1===a.width?this.Ef():a.width,-1===a.height?this.Df():a.height),a.clearRect(0,0,a.canvas.width,a.canvas.height)):(a=this.cb,this.Eh(a,this.Te(),this.Se()),a.clearRect(-this.Ad,-this.Bd,a.canvas.width,a.canvas.height))};l.va=function(){if(this.ta){var a=this.ta.va();if(null!==a)return a}this.Eh(this.cb,this.Te(),this.Se());return this};l.aa=function(){return this.ta};l.Tk=function(a){this.ta.Tk(a)};l.dh=function(){return this.ta?this.ta.dh():U.prototype.dh.call(this)};
l.oK=function(a,b){this.ye()&&(this.ta.Ma=this.Ma);this.ta.By(a,b)};l.fN=function(){this.ta&&(-1===this.ta.La&&this.ye()&&(this.Ta.style.left="0px",this.Ta.style.top="0px",this.sN()),this.ta.Ds())};l.ig=function(a){U.prototype.ig.call(this,a);this.ta&&this.ta.ig(this.ec)};l.mO=function(a,b,c){this.Cg=a;this.Yh=b;this.Xh=c};l.update=function(a,b,c,d,e,f,g,h,k,q,n){this.vy();U.prototype.update.call(this,a,b,c,d,e,f,g,h,k,q,n)};
l.vO=function(a,b){var c=this,d=b.oc(),e=!1,f,g=this.Hu;c.Rk()&&this.Hu++;this.wm&&null!==this.sd&&this.sd.src===a.src||(a.onerror=function(){c.Rk()||(c.sd&&c.U.removeChild(c.sd),c.sd=null,c.Qj=null)},a.onload=function(){b.im&&b.Ej&&(a.width=Math.round(b.cm*a.width),a.height=Math.round(b.dm*a.height),e=!0,f=new w(a.width,a.height),d=u.Lo(d,f,b));if(b.Cl&&!e)a.width=d.C(),a.height=d.B();else if(b.qq&&!e){if(d.C()/a.width<d.B()/a.height){var h=Math.round(d.C()*a.height/a.width);var k=d.C()}else h=d.B(),
k=Math.round(d.B()*a.width/a.height);a.width=k;a.height=h;k=new M(d.s,d.u,d.s+k,d.u+h);d=u.Ay(k,d,b)}c.Rk()?c.DD(a,g):c.FD(a);c.Qj=d.qc().clone();c.vy()})};l.FD=function(a){this.sd?this.U.replaceChild(a,this.sd):this.U.insertBefore(a,this.cb.canvas);this.sd=a};l.DD=function(a,b){for(var c in this.Oc)if(a.src==this.Oc[c].src)return;b%=2;void 0===this.Oc[b]&&(this.U.appendChild(a),this.Oc[b]=a)};l.yO=function(a,b){null!==this.Vc&&this.Vc.lb();this.Vc=b;this.Vc.initialize(a,this.U,this.jc)};
l.yA=function(){null!==this.Sf&&(this.O().removeChild(this.Sf.O()),this.Sf=null)};l.uK=function(a){null!==this.Sf&&this.yA();this.Sf=a;this.Sf.Ks();this.O().appendChild(this.Sf.O())};l.Cy=function(a,b){32767===a?this.uK(b):b.qw?this.pw(b,a,this.je):this.pw(b,a,this.Mg)};
l.pw=function(a,b,c){var d;if(void 0===c[b])if(a.Ks(),a.sO(this.za,b),c[b]=a,b===c.length-1){var e=this.cb.nextSibling;if(1<c.length)for(d in c)b>d&&(e=c[d].O().nextSibling);null===e||void 0===e?this.U.append(a.O()):this.U.insertBefore(a.O(),e)}else for(d in c){if(b<d){this.U.insertBefore(a.O(),c[d].O());break}}else a=c[b].Ga,a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,a.canvas.width,a.canvas.height),a.restore(),c[b].Ks()};
l.hw=function(a,b){void 0!==this.je[a]?this.je[a].Ga.canvas.hidden=b:void 0!==this.Oc[a]&&(this.Oc[a].hidden=b)};l.HP=function(a,b,c,d,e,f,g,h,k,q,n){var B=this.Vp();null!==B&&(g=new yb(g),B.EP(a,b,c,d,e,f,g,h,k,q,n))};l.bB=function(a){this.If=a};l.mL=function(){this.If=-1};l.vy=function(){if(null!==this.Qj){null!==this.sd&&this.Bv(this.sd);for(var a in this.Oc)null!==this.Oc[a]&&this.Bv(this.Oc[a])}};
l.Bv=function(a){var b=this.Qj.Y+this.Bd,c=this.Qj.X+this.Ad;0!==b&&(a.style.top=b+"px");0!==c&&(a.style.left=c+"px")};l.GD=function(a){var b=this,c=r.Hb();this.Yc(a,c?"pointerdown":"mousedown",function(d){b.Lm(d)});this.Yc(a,c?"pointermove":"mousemove",function(d){b.Mm(d)});this.Yc(a,c?"pointerup":"mouseup",function(d){b.Nm(d)});!c&&window.ontouchstart&&(this.Yc(a,"touchstart",function(d){b.Lm(d)}),this.Yc(a,"touchmove",function(d){b.Mm(d)}),this.Yc(a,"touchend",function(d){b.Nm(d)}))};
l.HD=function(){var a=this.Nb.Sc,b=null,c=null;this instanceof Fb?(c=this,b=this.cb.canvas):a===this.Nb.aa()&&(c=a.wL(),b=this.U);null!==c&&null!==b&&(r.Hb()?(b.addEventListener("pointerup",function(d){c.$n(d)},!1),b.addEventListener("pointerdown",function(d){c.$n(d)},!1),b.addEventListener("pointermove",function(d){c.$n(d)},!1),b.addEventListener("pointerout",function(d){c.$n(d)},!1)):(b.addEventListener("mousedown",function(d){c.Ri(d)},!1),b.addEventListener("mousemove",function(d){c.Ri(d)},!1),
b.addEventListener("mouseup",function(d){c.Ri(d)},!1),b.addEventListener("mouseout",function(d){c.Ri(d)},!1),b.addEventListener("touchstart",function(d){c.zs(d)},!1),b.addEventListener("touchmove",function(d){c.zs(d)},!1),b.addEventListener("touchend",function(d){c.zs(d)},!1)))};l.Hi=function(a){var b=new t(0,0),c=this.VF(a,b),d=this.UJ(a),e=u.Mo(this.ec);a=new Lb(a,c,d,e);a.PO(b);return a};l.Ca=function(){return u.Mo(this.ec)};l.UJ=function(a){return u.ql(a)};
l.fk=function(a,b,c){r.oh()&&(a=r.hj(a),c=r.hj(c));c=this.Jv(c);this.ec(a.mc(),0,b,[],c)};l.Tj=function(a,b){if(u.bp(a.pb)||u.cj(a.pb)&&"touch"===a.pb.pointerType)if(null!==this.Vc&&this.Vc.handleEvent(a,b)||null!==this.Nb.pa&&this.Nb.pa.handleEvent(a,b))return!0;return u.bp(a.pb)};l.Lm=function(a){this.Nb.ob.hA(a);this.SF(a);var b=this.Hi(a);this.Tj(b,K.J)||(a.stopPropagation(),this.qH(a)&&void 0!==this.Nb&&this.Nb.Qd.us()&&this.Nb.Qd.Cn(a),this.fk(b.si,K.J,b.vd))};
l.VF=function(a,b){var c=new t(a.offsetX,a.offsetY);var d=a.target;var e=this.U,f=!1;d===document&&(c=new t(a.pageX,a.pageY));b.X=c.X;b.Y=c.Y;a.target!==this.U&&(a=this.gG(),null!==a&&null!==a.jc&&null===this.Vc&&(d=a.cb.canvas,e=a.U,f=!0),d=u.vz(e,d),r.oh()&&d.$k(r.Ao()),c.X+=d.X,c.Y+=d.Y,f||(b.X+=d.X,b.Y+=d.Y));c=this.hx(c);this.hx(b);return c};
l.gG=function(){var a;if(null===this.ba)return null;for(a=u.ml(this.Nb.aa(),this.ba.id);null!==a&&(void 0===a.jc||null===a.jc||0===a.jc.DA()&&0===a.jc.EA());)a=u.ml(this.Nb.aa(),a.ba.id);return a};l.qH=function(a){return 1===a.which};l.XG=function(){return this.rj||null!==this.Vc};l.Mm=function(a){var b=this.Hi(a);this.Tj(b,K.m)||(a.stopPropagation(),this.fk(b.si,K.m,b.vd))};l.Nm=function(a){this.Nb.ob.iA(a);var b=this.Hi(a);this.Tj(b,K.h)||(a.stopPropagation(),this.fk(b.si,K.h,b.vd))};l.Jv=function(a){return u.Oy(a)};
l.ar=function(){for(var a=0;a<this.ii.length;++a)this.ii[a].kL.removeEventListener(this.ii[a].qz,this.ii[a].callback,!1);this.ii=[]};l.SF=function(a){if(this.XG()){var b=this;this.Nb.Sh.Tr(a,b,function(c){b.YH(c)},function(c){b.ZH(c)})}};l.YH=function(a){var b=this.Hi(a);a.stopPropagation();this.Tj(b,K.m)||this.fk(b.si,K.m,b.vd)};l.ZH=function(a){var b=this.Hi(a);a.stopPropagation();this.Tj(b,K.h)||this.fk(b.si,K.h,b.vd)};
l.Yc=function(a,b,c){this.ii.push({kL:a,qz:b,callback:c});a.addEventListener(b,c,!1)};l.hx=function(a){a.X=a.X-this.Ad;a.Y=a.Y-this.Bd;return a};l.Vp=function(){return-1!==this.If?32767===this.If?this.Sf:0<this.je.length?this.je[this.If]:this.Mg[this.If]:null};l.Eh=function(a,b,c){a.canvas.width!==b&&(a.canvas.width=b);a.canvas.height!==c&&(a.canvas.height=c)};
l.kq=function(){this.U.appendChild(this.cb.canvas);this.ta&&(this.ta.Ld(this.U),"cdsDialog"!==this.O().id&&(this.O().id=this.ta.Hg?"cdsClientObjectBackgroundContainer":"cdsClientObjectContainer"))};l.Te=function(){return this.Ef()};l.Se=function(){return this.Df()};l.eg=function(a){U.prototype.eg.call(this,a);this.cb.canvas.id+="_"+a};l.MA=function(a){null===a&&null!==this.Xl&&(this.U.removeChild(this.Xl),this.U.focus());null===this.Xl&&null!==a&&this.U.appendChild(a);this.Xl=a};
l.Qs=function(a){this.wm=a};l.Pi=function(){return this.wm};l.Qz=function(){return this.ta instanceof Cb&&this.ta.Hg};l.LM=function(a){a%=2;this.hw(1-a,!0);this.hw(a,!1)};l.oP=function(){var a=this.U;0===this.je.length&&0===this.Oc.length&&u.po(a);this.Nb.Iu.rP(this,function(b,c){b.LM(c)},this.Gl)};l.cB=function(){this.Nb.Iu.uP(this);this.Rk()||this.MK()};l.MN=function(a){this.bB(a);if(void 0===this.je[a]){var b=Va.yt(!1,!1,!0);this.Cy(a,b)}};
l.LN=function(a){a!=this.Gl&&(this.Gl=a,this.cB(),0<a&&this.oP())};l.Rk=function(){return 0<this.Gl};var zb;zb=function(a,b,c,d){U.call(this,a,b,c,d);this.nw();this.Aj=this.rd=null;this.za="";this.Yb=null;this.Zw=new Mb};zb.prototype=Object.create(U.prototype);l=zb.prototype;l.constructor=zb;l.nw=function(){this.O().id="cdsClientObjectNative"};
l.DO=function(a,b){if(b instanceof Nb){this.rd=b;this.Yb=a;var c=Ob.h();this.Aj=b.YK(c,a.getConfiguration().ContentSecurityPolicyIncludeTrustedOrigins,this.na,this.qa);this.Yb.register(c,this)}else this.rd=b,a=b.bQ(),a.style.width="100%",a.style.height="100%",a.style.position="absolute",this.Aj=a;this.Aj.id="cdsNativeElem"+this.za;this.U.appendChild(this.Aj);this.hB()};l.lb=function(){window.WebvisuInst.Yb.unregister(this);U.prototype.lb.call(this)};l.dN=function(a,b){this.Zw.Cs(a,b)};l.Ln=function(a){return this.Zw.ns(a)};
l.nJ=function(a,b,c){this.ec(a,b,536,[],c)};l.DN=function(a,b,c,d,e){var f=p.D(12);a=P.D(f,a.v.Fa,a.ub.Qh);a.Cd(c);a.Cd(d);a.Na(e);this.ec(b,0,539,[],f)};l.iJ=function(a,b,c){this.ec(a,b,540,[],c)};l.CN=function(a,b,c){var d=new t(b,c);if(0>b||0>c||b>this.na||c>this.qa)throw Error("Illegal argument!");"mousedown"===a?this.ec(d.mc(),0,K.J,[],void 0):"mousemove"===a?this.ec(d.mc(),0,K.m,[],void 0):"mouseup"===a&&this.ec(d.mc(),0,K.h,[],void 0)};
l.DK=function(a,b){if(this.rd instanceof Nb)this.Yb.Jc(this,T.AB(a,b));else{a=a.split(".");var c=this.rd;if(null!==c){for(var d=0;d<a.length-1;++d)c=c[a[d]]();c[a[a.length-1]].apply(c,b)}}};l.update=function(a,b,c,d,e,f,g,h,k,q,n){U.prototype.update.call(this,a,b,c,d,e,f,g,h,k,q,n);this.hB()};l.hB=function(){this.rd instanceof Nb&&this.Yb.Jc(this,T.CB(this.na,this.qa))};var Bb;Bb=function(a,b,c,d){U.call(this,a,b,c,d);this.Iq=-1};Bb.prototype=Object.create(U.prototype);Bb.prototype.constructor=Bb;
Bb.prototype.nw=function(){this.O().id="cdsClientObjectOldNative"};Bb.prototype.lb=function(){-1!==this.Iq&&WebvisuExtensionMgr.ds(this.Iq);U.prototype.lb.call(this)};Bb.prototype.UA=function(a){this.Iq=a};var Db;Db=function(a,b,c,d,e,f,g,h){this.jc=f;this.Ta=g;this.xr=!1;this.ud=new Pb;Q.call(this,a,b,c,d,e,h)};Db.prototype=Object.create(Q.prototype);l=Db.prototype;l.constructor=Db;l.initialize=function(){Q.prototype.initialize.call(this);var a=this;this.jc.initialize(function(b,c){a.Ek(b,c)})};
l.Ws=function(a,b,c,d,e,f){this.jc.update(a,b,c,d,e,f);this.jc.iB(this.Vc)};l.AK=function(){var a=this.Ma;a.ct()?this.Ws(this.ud.uc.X,0,this.ud.tc.X,0,0,0):a.dt()&&this.Ws(0,this.ud.uc.Y,0,this.ud.tc.Y,0,0)};
l.ZO=function(){this.Ma.ct()?(this.ud.jh(new t(.3*-this.na,0)),this.ud.ih(new t(.3*this.na,0)),this.Wn()&&this.ud.jh(new t(-this.na,0)),this.Vn()&&this.ud.ih(new t(this.na,0))):this.Ma.dt()&&(this.ud.jh(new t(0,.3*-this.qa)),this.ud.ih(new t(0,.3*this.qa)),this.Wn()&&this.ud.jh(new t(0,-this.qa)),this.Vn()&&this.ud.ih(new t(0,this.qa)))};l.YO=function(){this.Yq=!0};l.WO=function(){this.Xq=!0};l.sN=function(){this.Xq=this.Yq=!1};l.eB=function(){this.xr=!0};l.gB=function(){this.xr=!1};l.Zn=function(){return this.xr};
l.Wn=function(){return void 0===this.Yq?!1:this.Yq};l.Vn=function(){return void 0===this.Xq?!1:this.Xq};l.bh=function(a,b){this.Zn()||this.jc.bh(a,b)};l.Js=function(){this.jc.Js()};l.Qi=function(a){this.jc.Qi(a)};l.Nh=function(a,b,c,d,e,f,g,h,k){this.Ta&&(this.Ta.style.width=this.Te()+"px",this.Ta.style.height=this.Se()+"px");Q.prototype.Nh.call(this,a,b,c,d,e,f,g,h,k)};l.aK=function(a,b){this.Zn()||null===this.Ta||(this.Ta.style.left=a+"px",this.Ta.style.top=b+"px")};
l.eg=function(a){Q.prototype.eg.call(this,a);null!==this.Ta&&(this.Ta.id+="_"+a)};l.Ek=function(a,b){this.aK(-a,-b);for(var c in this.Mg){var d=this.Mg[c].Ga;d&&(d.xN&&(d.canvas.style.left=d.x-a+"px"),d.yN&&(d.canvas.style.top=d.y-b+"px"))}};l.kq=function(){this.Ta?(this.Ta.appendChild(this.cb.canvas),this.U.appendChild(this.Ta),this.ta&&(this.ta.Ld(this.Ta),this.O().id="cdsClientObjectContainer")):Q.prototype.kq.call(this)};
l.Te=function(){return this.ye()?this.Ef():this.Ta?Math.max(0,this.Ef()+this.jc.DA()):Q.prototype.Te.call(this)};l.Se=function(){return this.ye()?this.Df():this.Ta?Math.max(0,this.Df()+this.jc.EA()):Q.prototype.Se.call(this)};
l.ov=function(){var a=u.wa(this.Ta,"cdsClip_before");var b=u.wa(this.Ta,"cdsClip_after");if(null===a&&null===b){var c=this.Ma;a=this.pv("cdsClip_before");b=this.pv("cdsClip_after");c.ts()?(a.style.left=-this.na+"px",b.style.left=this.na+"px"):c.cA()&&(a.style.top=-this.qa+"px",b.style.top=this.qa+"px");this.Ta.appendChild(a);this.Ta.appendChild(b)}};var Fb;
Fb=function(a,b,c,d,e,f,g,h){Q.call(this,a,b,!1,c,d,g);this.Ua=null;this.Km=this.hm=this.ik=!1;this.o=null;this.sy=!1;this.Aa=e;this.Fh=null;this.Dp=F.xo;this.Kr=f;this.g=g;this.ck=!1;this.Gq=null;this.Cp="";this.rc=null;this.Tm=this.Ax=this.Um=this.zx=0;h&&this.IA(h)};Fb.prototype=Object.create(Q.prototype);l=Fb.prototype;l.constructor=Fb;
l.initialize=function(a,b,c,d,e,f,g){Q.prototype.initialize.call(this);this.ik=b;this.Km=c;this.hm=d;this.Ua=a;this.Fh=e;this.o=f;this.O().style.transform="scale(0)";this.O().style.opacity=0;this.Aa&&(this.Aa.style.opacity=0,this.HI());g&&(this.Dp=F.IC)};l.lb=function(){this.Aa&&(this.XJ(),this.ba===this.Aa.parentNode&&this.ba.removeChild(this.Aa));Q.prototype.lb.call(this)};
l.update=function(a,b,c,d,e,f,g,h,k,q,n,B){""===n&&(this.sy=!0);if(this.hm)Q.prototype.update.call(this,0,0,c,d,e,f,0,0,k,q,n);else{g=c/2;h=d/2;var z=c,J=d;null!==this.Fh&&null!==this.Fh.canvas&&(z=this.Fh.canvas.width-c,J=this.Fh.canvas.height-d);this.Ua instanceof M&&(this.ik?(a=this.Ua.Nk().X-c/2,b=this.Ua.Nk().Y-d/2,a=Math.min(Math.max(0,z),Math.max(0,a)),b=Math.min(Math.max(0,J),Math.max(0,b))):this.Km&&(this.o.DM&&this.o.CM?(g=this.Ua.qc().Y,h=this.Fh.canvas.height-this.Ua.Ed().Y,this.o.lA||
this.o.kA)?this.o.lA?this.o.kA||(b=this.Ua.Ed().Y,a=this.qp(c)):(b=this.Ua.qc().Y-d,a=this.qp(c)):this.o.Or||this.o.Gy?this.o.Or&&(a=this.qp(c),b=this.Ua.Ed().Y,d>h&&g>h&&(b=this.Ua.qc().Y-d)):(a=this.Ua.qc().X,b=this.Ua.Ed().Y,d>h&&g>h&&(b=this.Ua.qc().Y-d)):(a=this.Ua.Ed().X,b=this.Ua.Ed().Y,a>z&&(a=this.Ua.qc().X-c),b>J&&(b=this.Ua.qc().Y-d),a=Math.min(Math.max(0,z),Math.max(0,a)),b=Math.min(Math.max(0,J),Math.max(0,b)))),g=this.Ua.Nk().X-a,h=this.Ua.Nk().Y-b);Q.prototype.update.call(this,a,b,
c,d,e,f,g,h,k,q,n);this.O().style.opacity=1;this.Aa&&(this.Aa.style.transition=n,this.Kr&&(this.Aa.style.backgroundColor=B),this.Aa.style.opacity=1)}};l.qp=function(a){return this.o.Gy?this.Ua.qc().X:this.o.Or?this.Ua.Ed().X-a:this.Ua.qc().X+(this.Ua.Ed().X-this.Ua.qc().X)/2-a/2};l.Ld=function(a){this.Aa&&a.appendChild(this.Aa);Q.prototype.Ld.call(this,a)};
l.close=function(a){if(this.sy)this.oz(a);else{var b=this;this.Yc(this.O(),"transitionend",function(){b.oz(a)})}this.Aa&&(this.Aa.style.opacity=0);this.O().style.transform="scale(0)";this.O().style.opacity=0};l.oz=function(a){this.Aa&&this.ba===this.Aa.parentNode&&this.ba.removeChild(this.Aa);a()};
l.HI=function(){var a=this,b=r.Hb();this.Yc(this.Aa,b?"pointerdown":"mousedown",function(c){a.qd(c)});this.Yc(this.Aa,b?"pointermove":"mousemove",function(c){a.qd(c)});this.Yc(this.Aa,b?"pointerup":"mouseup",function(c){a.qd(c)});!b&&window.ontouchstart&&(this.Yc(this.Aa,"touchstart",function(c){a.qd(c)}),this.Yc(this.Aa,"touchmove",function(c){a.qd(c)}),this.Yc(this.Aa,"touchend",function(c){a.qd(c)}))};
l.XJ=function(){var a=this,b=r.Hb();this.Aa.removeEventListener(b?"pointerdown":"mousedown",function(c){a.qd(c)});this.Aa.removeEventListener(b?"pointermove":"mousemove",function(c){a.qd(c)});this.Aa.removeEventListener(b?"pointerup":"mouseup",function(c){a.qd(c)});!b&&window.ontouchstart&&(this.Aa.removeEventListener("touchstart",function(c){a.qd(c)}),this.Aa.removeEventListener("touchmove",function(c){a.qd(c)}),this.Aa.removeEventListener("touchend",function(c){a.qd(c)}))};
l.qd=function(a){this.Aa&&a.target===this.Aa&&a.stopPropagation()};l.Ri=function(a){var b=u.ql(a);this.Pq(a,b,!1)};l.$n=function(a){var b=u.ql(a);this.Pq(a,b,!1)};l.zs=function(a){if(null!==a.touches&&1<=a.touches.length){var b=u.ql(a.touches[0]);this.Pq(a,b,!0)}};
l.Pq=function(a,b,c){switch(a.type){case "mouseout":case "pointerout":this.ck?(a.preventDefault(),this.Lu(a,b)):this.Sx();break;case "mousedown":case "pointerdown":case "touchstart":a.preventDefault();this.fI(b,c);var d=this;this.g.Sh.Tr(a,d,function(e){d.Ri(e)},function(e){d.Ri(e)});break;case "mousemove":case "pointermove":case "touchmove":a.preventDefault();this.Oq(a,b,c);break;case "mouseup":case "pointerup":case "touchend":a.preventDefault(),this.gI(a,c)}};
l.fI=function(a,b){b||(this.Cp=this.U.style.cursor,this.U.style.cursor="move");this.rc=u.fb().getBoundingClientRect();this.rc.x=0;this.rc.y=0;this.zx=this.rc.x+2;this.Um=this.rc.x+this.rc.width-2;this.Ax=this.rc.y+2;this.Tm=this.rc.y+this.rc.height-2;b=new t(parseInt(this.O().offsetLeft,10),parseInt(this.O().offsetTop,10));this.jr(a);this.Gq=new t(b.X-a.X,b.Y-a.Y);this.ck=!0};l.Oq=function(a,b,c){this.ck?this.Lu(a,b):c||this.Sx()};l.gI=function(a,b){this.ck&&(this.ax(b),this.Yx(a))};
l.Lu=function(a,b){this.jr(b);b.X<=this.zx||b.X>=this.Um||b.Y<=this.Ax||b.Y>=this.Tm?(this.ax(this),this.Yx(a)):(a=b.X+this.Gq.X,b=b.Y+this.Gq.Y,a<=this.rc.x&&(a=this.rc.x),a+this.na>=this.Um&&(a=this.Um-this.na),b<=this.rc.y&&(b=this.rc.y),b+this.qa>=this.Tm&&(b=this.Tm-this.qa),this.O().style.top=b+"px",this.O().style.left=a+"px")};l.ax=function(a){a||(this.U.style.cursor=""!==this.Cp?this.Cp:"default");this.ck=!1};
l.Yx=function(a){if(null!==this.g.v){var b=new t(parseInt(this.O().style.left,10),parseInt(this.O().style.top,10));a=this.Hi(a).vd;this.jr(a);a=this.Jv(a);this.ec(b.mc(),0,537,[],a)}};l.Sx=function(){"move"===this.U.style.cursor&&(this.U.style.cursor="default")};l.jr=function(a){r.oh()&&r.hj(a)};var Hb;Hb=function(a,b,c){this.Ga=a;this.yf=b;(this.bi=null!==b)&&this.yf.appendChild(this.Ga.canvas);this.qw=c};
Hb.prototype={O:function(){return this.bi?this.yf:this.Ga.canvas},sO:function(a,b){this.Ga.canvas.id="cdsCanvas"+a+"_Layer_"+b.toString();this.bi&&(this.yf.id="cdsClip"+a+"_Layer_"+b.toString())},EP:function(a,b,c,d,e,f,g,h,k,q,n){g.gd()?(this.Ga.x=a,this.Ga.y=b,this.Ga.canvas.style.left=a+"px",this.Ga.canvas.style.top=b+"px"):this.ND(g);this.Ga.width=c;this.Ga.height=d;this.Ga.xN=e;this.Ga.yN=f;this.Ga.canvas.style.width=-1===this.Ga.width?"100%":c+"px";this.Ga.canvas.style.height=-1===this.Ga.height?
"100%":d+"px";this.bi&&(this.yf.aQ=n,this.yf.style.left=h+"px",this.yf.style.top=k+"px",this.yf.style.width=q+"px",this.yf.style.height=n+"px")},ND:function(a){a.right()&&(this.Ga.canvas.style.right="0px");a.left()&&(this.Ga.canvas.style.left="0px");a.top()&&(this.Ga.canvas.style.top="0px");a.bottom()&&(this.Ga.canvas.style.bottom="0px")},Ks:function(){this.Ga.x=0;this.Ga.y=0;this.Ga.width=-1;this.Ga.height=-1}};var Cb;
Cb=function(a){this.ba=null;this.ra=[];this.Sb={};this.La=-1;this.ec=null;this.jf=-1;this.Hg=a;this.Mp=this.ni=null;this.Sq=!1;this.Rf=new Qb;this.Ma=new sa(0);this.Ep=null};
Cb.prototype={By:function(a,b){32767===a?(b.O().id="cdsDemoMode",b.O().style.zIndex=F.kt,b.Ld(u.fb()),this.Ep=b):-1===this.La?(b.Pi()||b.Qz()?(b.eg(a),this.Ns(b,1),b.Qs(!0),this.Sq=!0):(b.ta instanceof Cb?null===this.ni&&(this.ni=a):this.Sq&&!this.Hg?this.Ns(b,a+1):this.Ns(b,a),b.Qs(this.Hg),b.eg(a)),b.ig(this.lv(a)),this.ay(a,b)):(b.eg(this.La),this.pe(this.La).oK(a,b))},Ns:function(a,b){if(this.Ma.cl()&&!a.Ma.gd()){var c=this.Kz(a.Ma);a.XO(this.ba,c,b)}else a.Ld(this.ba,b)},Ds:function(){-1===this.La?
(this.xv(),this.Ma.cl()&&this.ba&&this.Rf.clear(this.ba),this.Sq=!1):this.pe(this.La).fN()},Es:function(){this.xv();this.La=-1},Xg:function(a){for(var b=0;b<this.ra.length;++b)this.ra[b]&&this.ra[b].Xg(a)},Xk:function(){for(var a=0;a<this.ra.length;++a)this.ra[a]&&this.ra[a].ta&&this.ra[a].ta.Xk();for(var b in this.Sb)this.Sb[b]&&this.Sb[b].lb();this.Sb={}},dg:function(){for(var a=0;a<this.ra.length;++a)this.ra[a]&&this.ra[a].dg();for(var b in this.Sb)this.Sb[b]&&this.Sb[b].dg()},xv:function(){this.dg();
for(var a=0;a<this.ra.length;++a)this.ra[a]&&this.ra[a].lb();for(var b in this.Sb)this.Sb[b]&&this.Sb[b].lb();this.tp()},va:function(){return-1!==this.La?this.pe(this.La).va():null},Tk:function(a){-1===this.La?this.La=a:this.pe(this.La).Tk(a)},dh:function(){var a;if(-1===this.La)return-1;var b=this.va();(a=b.ye())&&(b=b.aa())&&b.Rf.Is();b=this.pe(this.La).dh();-1===b&&(this.La===this.ni&&(this.QD(),this.ni=null),a&&this.Rf.Is(),b=this.La,this.La=-1);return b},ig:function(a){this.ec=a},Ld:function(a){this.ba=
a;for(var b=0;b<this.ra.length;++b)this.ra[b]&&this.ra[b].Ld(a);for(var c in this.Sb)this.Sb[c]&&this.Sb[c].Ld(a)},QD:function(){this.Rf.Pz()&&null!==this.ni&&this.RD()||this.ra.forEach(function(a){a&&(a.ba=this.ba,this.ba.appendChild(a.O()))}.bind(this))},RD:function(){var a=this.Rf.Jz(this.ni);if(null===a)return!1;var b=this.Kz(a.Ma);a.ba=this.ba;null===b?this.ba.appendChild(a.O()):b.appendChild(a.O());return!0},isActive:function(){return-1!==this.La},Ys:function(a){this.jf=a},fO:function(a){this.Mp=
a},tp:function(){this.ra=[];this.Sb={};this.Ep=null},Kz:function(a){return this.Ma.cl()&&this.Ma.gd()&&a?a.bA()?u.wa(this.ba,"cdsClip_before"):a.aA()?u.wa(this.ba,"cdsClip_after"):null:null},pe:function(a){if(32767===a)return this.Ep;if(this.Rf.Pz()){var b=this.Rf.Jz(a);if(null!==b)return b}return this.Sb.hasOwnProperty(a)?this.Sb[a]:this.ra[a-1]},ay:function(a,b){b.Ma.gd()?b.Pi()?this.Sb[a]=b:this.ra[a-1]=b:this.Rf.TO(a,b)},dw:function(){return null===this.Mp?this.ra.length:this.Mp},lv:function(a){var b=
this;return function(c,d,e,f,g,h){var k=b.pe(a);k&&!k.Pi()&&f.push({id:a,fA:b.dw()});-1!==b.jf&&f.push({id:b.jf,fA:15});c=b.ec(c,d,e,f,g,h);if(h)return c}}};var Gb;Gb=function(){Cb.call(this,!1);this.ra={};this.Hm=0};Gb.prototype=Object.create(Cb.prototype);l=Gb.prototype;l.constructor=Gb;l.qK=function(a,b){b.Ld(this.ba);b.ig(this.lv(a));b.eg(a);this.ra[String(a)]=b;this.Hm=Math.max(this.Hm,a)};l.gN=function(a){var b=this,c=this.pe(a);this.hF(a);c.dg();c.close(function(){b.WH(c)})};
l.QM=function(a){this.La=a};l.OM=function(){var a=this.La;this.La=-1;return a};l.Es=function(){this.pG();this.tp();this.La=-1};l.Xk=function(){for(var a in this.ra)this.ra[a]&&this.ra[a].ta&&this.ra[a].ta.Xk()};l.Xg=function(a){for(var b in this.ra)this.ra[b]&&this.ra[b].Xg(a)};l.wL=function(){return-1!==this.La?this.pe(this.La):null};l.tp=function(){this.ra={}};
l.hF=function(a){delete this.ra[String(a)];this.La===a&&(this.La=-1);this.Hm=Object.keys(this.ra).map(Number).reduce(function(b,c){return Math.max(b,c)},0)};l.WH=function(a){a.lb()};l.pG=function(){var a=Fb.prototype.lb,b=[],c;for(c in this.ra)this.ra[c]&&a.apply(this.ra[c],b)};l.pe=function(a){return this.ra[String(a)]};l.ay=function(a,b){this.ra[String(a)]=b};l.dw=function(){return this.Hm};var Qb;Qb=function(){this.xf=[];this.wf=[];this.mj=new L};
Qb.prototype={empty:function(){return 0===this.xf.length&&0===this.wf.length},Is:function(){this.mj=new L},Pz:function(){return!this.mj.gd()},clear:function(a){var b=u.wa(a,"cdsClip_before");var c=u.wa(a,"cdsClip_after");b&&(u.po(b,"cdsClip_before_canvas"),b=u.wa(a,"cdsClip_before_canvas"),b=b.getContext("2d"),b.clearRect(0,0,b.canvas.width,b.canvas.height));c&&(u.po(c,"cdsClip_after_canvas"),b=u.wa(a,"cdsClip_after_canvas"),b=b.getContext("2d"),b.clearRect(0,0,b.canvas.width,b.canvas.height));this.xf=
[];this.wf=[];this.Is()},Jz:function(a){return this.mj.before()&&0<this.xf.length?this.xf.hasOwnProperty(a)?this.xf[a]:this.xf[a-1]:this.mj.after()&&0<this.wf.length?this.wf.hasOwnProperty(a)?this.wf[a]:this.wf[a-1]:null},TO:function(a,b){var c=b.Ma;this.mj.pO(b.Ma);c.bA()?b.Pi()?this.xf[a]=b:this.xf[a-1]=b:c.aA()&&(b.Pi()?this.wf[a]=b:this.wf[a-1]=b)}};var Rb;Rb=function(a,b,c,d){this.$b=a;this.FC=b;this.GC=c;this.HC=d};var Sb;Sb=function(a,b){this.$b=a;this.Ee=b};var Tb;
Tb=function(a,b,c,d){this.$b=a;this.Ee=b;this.zc=c;this.Error=d};var Ub,Vb,gb;gb=function(a){this.Ha=new XMLHttpRequest;this.g=a;this.zf=null};
gb.prototype={rb:function(a,b,c,d){this.g.getConfiguration()?(this.yz(),this.zf.send(a,b,c,d)):this.g.error("Error while creating a connection to the webserver: No configuration found")},yz:function(){if(null===this.zf)this.g.getConfiguration().CasFactoryName?this.zf=new Ub:this.zf=new Vb(this.g,this.Ha);else return this.zf},ws:function(a,b){this.ac=b;this.Ha.open("GET",a,!0);var c=this;this.Ha.onreadystatechange=function(){c.HM(a)};this.Ha.send()},HM:function(a){4===this.Ha.readyState&&(200===this.Ha.status||
"OK"===this.Ha.status?this.ac.Lk(this.Ha.responseText):this.ac.S("Loading file '"+a+"' failed: "+this.Ha.status,H.$a))},Ik:function(a){this.yz();null!==this.zf&&this.zf instanceof Ub&&this.zf.Ik(a)}};Ub=function(){var a=this;window.CODESYS.CAS.resultListener=function(b){a.ac.Pb(b)}};Ub.prototype={send:function(a,b){this.ac=b;window.CODESYS.CAS.sendMessage(a)},Ik:function(a){window.CODESYS.CAS.sendCloseBeacon(a)}};Vb=function(a,b){this.g=a;this.Ha=b};
Vb.prototype={send:function(a,b,c,d){void 0===c&&(c=!1);void 0===d&&(d=!1);this.ac=b;b="WebVisuV3.bin";var e=this;d=this.kJ(d,a);r.TL()&&(b+="?"+u.m());c&&"function"==typeof navigator.sendBeacon?navigator.sendBeacon(b,new Uint8Array(a)):(this.Ha.open("POST",b,!c),c||r.lj()||(this.Ha.responseType="arraybuffer"),this.Ha.setRequestHeader("Content-Type","application/octet-stream"),d&&this.Ha.setRequestHeader("3S-Repl-Content",u.Uz(a)),c||(this.Ha.onreadystatechange=function(){e.IM()}),0<this.g.getConfiguration().XhrSendTimeout&&
(this.Ha.timeout=this.g.getConfiguration().XhrSendTimeout,this.Ha.ontimeout=function(){e.ac.S("Sending service timeout",H.jd)}),d?this.Ha.send():this.Ha.send(a))},IM:function(){if(4===this.Ha.readyState)if(200===this.Ha.status||"OK"===this.Ha.status){this.Ha.onreadystatechange=null;if(r.lj()){var a=this.Ha.responseText;""===a&&(a=null)}else a=this.Ha.response,a instanceof ArrayBuffer&&0===a.byteLength&&(a=null);try{null!==a||this.YF()?this.ac.Pb(a):this.ac.S("Sending service failed, server not available?",
H.Gb)}catch(b){this.ac.S("Unexpected exception while evaluating comm result"+b,H.J)}}else 4E3===this.Ha.status?this.g.uM():0===this.Ha.status?this.ac.S("Sending service aborted",H.m):this.ac.S("Sending service failed, status: "+this.Ha.status,H.wa)},YF:function(){return"function"!==typeof this.ac.Ei?!1:this.ac.Ei()},kJ:function(a,b){return window.btoa?(a||this.g.Bx)&&b instanceof ArrayBuffer&&70>b.byteLength?!0:!1:!1}};var E;E=function(){};E.wa=43981;E.m=0;E.Gb=1;E.jd=129;E.h=0;E.J=0;E.$a=1;var Wb;
Wb=function(a,b,c){this.lr=a;this.mr=b;this.Zx=c;this.Wd=0};Wb.h=function(a){var b=a.getUint16(),c;if(52565!==b)throw Error("Unsupported protocol: "+b);this.Lj=a.getUint16();if(12>this.Lj)throw Error("Unsupported length of header: "+this.Lj);this.lr=a.getUint16();this.mr=a.getUint16();this.Zx=a.getUint32();this.Wd=a.getUint32();b=this.Lj-12;16<=this.Lj&&(a.getUint16(),b-=2);for(c=0;c<b;++c)a.getUint8();return this};
Wb.prototype={write:function(a,b){a.Db(52565);a.Db(16);a.Db(this.lr);a.Db(this.mr);a.K(this.Zx);a.K(b);a.Db(0);a.Db(0)}};var Xb;Xb=function(a,b,c){this.Og=new wb(a,b,c);this.P=this.Og.M};
Xb.prototype={sA:function(){try{if("|"!==this.P.Gi())return"Unexpected format of service: 1";var a=this.oy(),b=!1;if(4>a.length)return"Unexpected format of service: 2";5<=a.length&&(b="true"===a[4]);return new na(parseInt(a[0],10),0===parseInt(a[1],10),parseInt(a[2],10),"true"!==a[3],b)}catch(c){return"Exception during readOpenConnectionResult: "+c}},ZM:function(){var a=this.oy(),b;for(b=0;b<a.length;++b)if(0===a[b].indexOf("IPv4:"))return a[b].substr(5);return""},oy:function(){for(var a=[],b="";!this.P.kf();){var c=
this.P.Gi();"|"===c?(a.push(b),b=""):b+=c}return a},Ab:function(a,b){for(a=this.P.ga()+a;this.P.ga()<a;){var c=this.Og.Ki(),d=this.Og.Ki();c=b[c];var e=this.P.ga();"function"===typeof c&&c(this,d);c=this.P.ga()-e;c<d&&this.yJ(d-c)}},VM:function(a){return a?this.DI():this.EI()},EI:function(){try{var a=this.wd(1,2),b=0,c=0,d=0,e=E.J;this.Ab(a.Wd,{130:function(f,g){f.Ab(g,{32:function(h){b=h.P.getUint16()},33:function(h){c=h.P.getUint32()}})},34:function(f){e=f.P.getUint32()},65407:function(f){d=f.P.getUint16()}});
return new Tb(b,c,e,d)}catch(f){return"Exception during readOldDeviceSessionResult: "+f}},DI:function(){try{var a=this.wd(1,10),b=0,c=0,d=E.J;this.Ab(a.Wd,{33:function(e){b=e.P.getUint32()},70:function(e){d=e.P.getUint32()},65407:function(e){c=e.P.getUint16()}});770===c&&(d=E.$a);return new Tb(0,b,d,c)}catch(e){return"Exception during readNewDeviceSessionResult: "+e}},TM:function(a,b){return 2===a?this.XM():this.YM(b?65315:35)},XM:function(){try{var a=this.wd(1,2),b=0,c=0,d=null,e=null,f=null;this.Ab(a.Wd,
{65410:function(g,h){g.Ab(h,{32:function(k){c=k.P.getUint16()}})},130:function(g,h){g.Ab(h,{32:function(k){b=k.P.getUint16()}})},39:function(g){d=g.P.ze(!1)},38:function(g,h){var k=p.D(h);k.xn(g.P.Fi(),g.P.ga(),h);e=k.Fd()},65315:function(g){f=g.P.getUint32()}});return new Rb(0!==b?b:c,f,d,e)}catch(g){return"Exception during readNewDeviceCryptResult: "+g}},YM:function(a){try{var b=this.wd(1,2),c=0,d=0,e=0,f={65410:function(g,h){g.Ab(h,{32:function(k){d=k.P.getUint16()}})},130:function(g,h){g.Ab(h,
{32:function(k){c=k.P.getUint16()}})}};f[a]=function(g){e=g.P.getUint32()};this.Ab(b.Wd,f);return new Rb(0!==c?c:d,e,null,null)}catch(g){return"Exception during readOldDeviceCryptResult: "+g}},UM:function(){try{var a=this.wd(1,2),b=0,c=0,d=0;this.Ab(a.Wd,{65410:function(e,f){e.Ab(f,{32:function(g){c=g.P.getUint16()},33:function(g){d=g.P.getUint32()}})},130:function(e,f){e.Ab(f,{32:function(g){b=g.P.getUint16()},33:function(g){d=g.P.getUint32()}})}});return new Sb(0!==b?b:c,d)}catch(e){return"Exception during readOldDeviceLoginResult: "+
e}},aN:function(){try{for(this.wd(4,1);!this.P.kf();){var a=this.Og.Ki();this.Og.Ki();if(1===a){var b=this.P.getUint32();return 2952790016>b?b:4294967290===b?"Visualization is not allowed":4294967292===b?"No more memory on the plc":4294967293===b?"Connection to invalid application":4294967289===b?"Too many clients are registering at the same time":"Unknown error"}return 65410===a?"no rights":65407===a?"Visu not supported by the plc":"Unknown tag ID"}return"Unexpected format of service: 4"}catch(c){return"Exception during readVisuRegisterClientResult: "+
c}},$M:function(){try{for(this.wd(4,3);!this.P.kf();){var a=this.Og.Ki();this.Og.Ki();if(65407===a)return"Visu not supported by the plc";var b=this.P.getUint32();return 0===b||1===b?b:2===b?"Client registration failed":3===b?"Client registration failed due to an invalid external id":4===b?"The maximum number of visualization clients is already connected. Please try again later.":5===b?"Not enough memory in the PLC to create the client.":"Unknown error"}return"Unexpected format of service: 5"}catch(c){return"Exception during readVisuIsRegisteredClientResult: "+
c}},bN:function(){try{return this.wd(4,2),0}catch(a){return"Exception during readVisuRemoveClientResult: "+a}},Bs:function(a){var b=0===a.direction?5:2,c=132;a.status.Qb===V.J&&(b=E.Gb,c=E.jd);try{var d=this.wd(8,b);b={};b[c]=function(e,f){e.Ab(f,{2:function(g){a.uh.DP=g.P.getUint32();a.uh.de=g.P.getUint32()},3:function(g){a.oo=g.P.getUint32()},8:function(g){a.status.result=g.P.getUint16()}})};b[34]=function(e){e.P.getUint32()};b[65410]=function(e,f){e.Ab(f,{32:function(g){a.status.result=g.P.getUint16()}})};
this.Ab(d.Wd,b)}catch(e){return"Exception during readtFileAndSessionInfoResult: "+e}},rA:function(a){var b=0===a.direction?7:4,c=0;try{var d=this.wd(8,b),e=0===a.direction?a.uh.de:a.nh.de,f={};0===a.direction?(f[6]=function(g){c=g.P.getUint32()},f[7]=function(g,h){a.status.$d=!0;f[5](g,h)},f[5]=function(g,h){null===a.buffer&&(a.buffer=p.D(e));if(a.status.hd+c<=e&&c<=h){for(h=0;h<c;)a.buffer.un(g.P.getUint8()),h++;a.status.hd+=c;a.status.result=E.h}else a.status.hd=4294967295}):f[5]=function(g){g=
g.P.getUint16();g===E.h?(a.status.result=E.h,a.status.hd+=a.status.kh,a.status.kh=0,a.status.$d=a.status.hd>=e):a.status.result=g};this.Ab(d.Wd,f)}catch(g){return"Exception during readtFileAndSessionInfoResult: "+g}},WM:function(a){var b=0===a.direction?a.uh.de:a.nh.de;b=a.status.result===E.h&&a.status.hd===b&&a.status.$d?8:9;try{var c=this.wd(8,b);this.Ab(c.Wd,{7:function(d){d.P.getUint16();a.status.$d=!0}})}catch(d){return"Exception during readFinishFileTransferResult: "+d}},Ti:function(a){try{var b=
this.wd(4,4),c=0,d=a;this.Ab(b.Wd,{132:function(e,f){e.Ab(f,{2:function(g){g.P.getUint32();var h=g.P.getUint32(),k=g.P.getUint32();g=g.P.getUint32();d=new ra(h,k,g)},4:function(){d.finish()},1:function(g){c=g.P.getUint32()},3:function(g,h){d.Fd().xn(g.P.Fi(),g.P.ga(),Math.min(h,d.xM()))}})}});return 0!==c?65535===c?"Client id not present or no longer valid":c.toString():null===d?"Unexpected format of service: 6":d}catch(e){return"Exception during readVisuGetPaintDataResult: "+e}},yJ:function(a){this.P.seek(this.P.ga()+
a)},wd:function(a,b){var c=Wb.h(this.P),d=4+c.Lj+c.Wd;if(this.P.size()<d)throw Error("Actual packet size "+this.P.size()+" smaller than expected "+d);if(c.lr!==(128|a)||c.mr!==b)throw Error("Unexpected format of service: 3");return c}};var hb;
(function(){var a=!1;hb=function(b,c,d,e){this.ha=b;this.pF=c;this.ma=p.D(50);this.KE=d;this.ea=new xb(this.ma,b,e);this.F=this.ea.Le};hb.prototype={sP:function(b){a=b},mb:function(){return this.ma.Fd()},nA:function(b,c,d){var e=this.F.eb("|",!1);b=this.F.eb(b,!1);c=this.F.eb(c.toString(),!1);d=this.F.eb(d.toString(),!1);this.El(1);this.F.Yf(e);this.F.Yf(b);this.F.Yf(e);this.F.Yf(c);this.F.Yf(e);this.F.Yf(d);this.F.Yf(e)},tN:function(){this.El(3)},jL:function(){this.El(100)},qn:function(b,c,d){d=
c.eb(d,!1);var e=d.length()+1,f=this.Ff(e,4,2);b.G(e+f,3);c.Zb(d);this.rf(c,f,0)},UK:function(b){var c=p.D(500),d=new xb(c,this.ha),e=d.Le;d.G(64);d.G(4,3);e.K(2882382797);d.G(65);this.qn(d,e,"WebVisualization");d.G(67);this.qn(d,e,b);d.G(68);this.qn(d,e,Qa.h);d.G(69);this.qn(d,e,Qa.h);return c},bF:function(b,c){var d=p.D(500),e=new xb(d,this.ha),f=e.Le,g=new Uint8Array(c);e.G(16);var h=b.byteLength;var k=this.Ff(h,4,2);e.G(h+k,3);for(h=0;h<b.length;++h)f.Na(b[h]);this.rf(f,k,0);e.G(17);h=c.byteLength;
e.G(h,3);for(h=0;h<g.length;++h)f.Na(g[h]);return d},gL:function(b){var c=this.Ic(1,10);b=this.UK(b.v.Ko);var d=E.$a;this.ea.G(131);this.kp(b,this.ea,this.F);this.ea.G(70);r.XB()&&(d|=2);this.ea.G(4,3);this.F.K(d);this.Bc(c)},kp:function(b,c,d){var e=2>=c.Gz(b.size())?2:6;c.G(b.size(),e);this.Dl(d,b)},dL:function(b){var c=this.Ic(1,2);this.Du(b,1);this.Bc(c)},Du:function(b,c){this.ea.G(34);this.ea.G(4,3);this.F.K(b);this.ea.G(37);this.ea.G(4,3);this.F.K(c)},eL:function(b,c){var d=this.Ic(1,2);b=this.bF(b,
c);this.Du(2,2);this.ea.G(129);this.kp(b,this.ea,this.F);this.Bc(d)},es:function(b,c,d,e){if(void 0===b||null===b)b="";void 0===c&&(c=null);void 0===d&&(d=0);void 0===e&&(e=E.J);var f=this.Ic(1,2),g=null,h=null,k=new ba("utf-8");this.ea.G(34);this.ea.G(4,3);this.F.K(e);0!==d&&(this.ea.G(35),this.ea.G(4,3),this.F.K(d));null!==c&&(h=k.encode(c));b=k.encode(b);b=this.AG(b);null!==h&&0!==d&&e===E.$a&&(g=this.zG(h,d));this.ea.G(129);this.ea.G(b.size()+(null!==g?g.size():0),2);this.Dl(this.F,b);null!==
g&&this.Dl(this.F,g);this.Bc(f)},fL:function(){var b=this.Ic(1,3);this.F.K(0);this.Bc(b)},NP:function(b,c,d,e){var f=this.Ic(4,1);b=this.F.eb(b,!1);var g=b.length()+4+1,h=this.Ff(g,4,0),k=0,q=0,n=524288,B=this.F.eb(c,!1),z=this.F.eb(d,!1);c&&0<c.length&&k++;d&&0<d.length&&k++;0<k&&(q=8+84*k,g+=q);e&&(n=2097152);this.ea.G(1);this.ea.G(g+h,3);this.F.Zb(b);this.rf(this.F,h,0);this.F.K(n);0<k&&(this.F.K(q),this.F.K(k),c&&0<c.length&&(this.F.Db(1),this.F.Zb(B),this.F.vn(82-B.length()-1)),d&&0<d.length&&
(this.F.Db(2),this.F.Zb(z),this.F.vn(82-z.length()-1)));this.Bc(f)},LP:function(b){var c=this.Ic(4,3);this.ea.G(3);this.ea.G(4,3);this.F.K(b);this.Bc(c)},Yi:function(b){this.yy(b,4,132)},KP:function(b){var c=this.Ic(4,4);this.ea.G(132);this.ea.G(8,2);this.ea.G(4);this.ea.G(4,3);this.F.K(b);this.Bc(c)},MP:function(b){this.yy(b,6,134)},ht:function(b){var c=this.Ic(4,2);this.ea.G(2);this.ea.G(4,3);this.F.K(b);this.Bc(c)},VK:function(b){var c=this.Ic(8,E.Gb);b=this.F.eb(b.eh,!1);var d=b.length()+1,e=
this.Ff(d,4,2);this.ea.G(1);this.ea.G(d+e);this.F.Zb(b);this.rf(this.F,e,0);this.ea.G(2);this.ea.G(8,3);this.F.K(0);this.F.K(0);this.Bc(c)},cz:function(b){var c=this.Ic(8,0===b.direction?5:2),d=this.F.eb(b.eh,!1),e=d.length()+1,f=this.Ff(e,4,2);this.ea.G(1);this.ea.G(e+f);this.F.Zb(d);this.rf(this.F,f,0);0===b.direction?(this.ea.G(2),this.ea.G(8,3),this.F.K(0),this.F.K(0)):(this.ea.G(2),this.ea.G(8,3),b.nh.de=b.buffer.size(),this.F.K(0),this.F.K(b.nh.de));this.Bc(c)},bz:function(b){var c=this.Ic(8,
0===b.direction?7:4);if(1===b.direction){var d=b.nh.de;var e;var f=this.uG();if(20<f)f-=20;else return 1;f>d-b.status.hd&&(f=d-b.status.hd);d=this.Ff(f,4,0);this.ea.G(6);this.ea.G(4,3);this.F.K(f);b.status.kh=f;this.ea.G(5);this.ea.G(4+f+d,3);this.F.K(b.oo);for(e=0;e<f;e++)this.F.Na(b.buffer.getUint8());this.rf(this.F,d,0)}else this.ea.G(5),this.ea.G(4,3),this.F.K(b.oo),this.F.K(E.h);this.Bc(c)},WK:function(b){var c=0===b.direction?b.uh.de:b.nh.de;c=this.Ic(8,b.status.result===E.h&&b.status.hd===
c&&b.status.$d?8:9);this.ea.G(7);this.ea.G(4,3);this.F.K(b.oo);this.Bc(c)},yy:function(b,c,d){c=this.Ic(4,c);b=this.MG(b);this.ea.G(d);this.kp(b,this.ea,this.F);this.Bc(c)},Bc:function(b){var c=this.F.ga()-b.gD;this.mK(b.bC,c)},Ic:function(b,c){b=new Wb(b,c,this.pF);this.El(2);this.F.vn(20);return{bC:b,gD:this.F.ga()}},AG:function(b){var c=p.D(10+b.byteLength),d=new xb(c,this.ha),e=d.Le,f=b.byteLength+1,g=this.Ff(f,4,2);d.G(16);d.G(f+g);for(d=0;d<b.byteLength;++d)e.Na(b[d]);e.Na(0);this.rf(e,g,0);
return c},zG:function(b,c){b=this.yG(b,c);c=p.D(10+b.length);var d=new xb(c,this.ha),e=d.Le;d.G(17);d.G(b.length,3);for(d=0;d<b.length;++d)e.Na(b[d]);return c},yG:function(b,c){var d="Qcw@e46A6!R.gssltR4dg=_l)B^nQSo^",e="",f=[],g=0,h=0,k=b.byteLength+1,q=[c&255,0,0,0];for(c=0;c<d.length;c+=4)e=e.concat(String.fromCharCode(d.charCodeAt(c+2)+3)),e=e.concat(String.fromCharCode(d.charCodeAt(c+1)+2)),e=e.concat(String.fromCharCode(d.charCodeAt(c+3)+4)),e=e.concat(String.fromCharCode(d.charCodeAt(c)+1));
d=e;32>k&&(k=32);0!==k%4&&(k+=4-k%4);for(c=0;c<k;++c){e=d.charCodeAt(g);var n=0;c<b.byteLength&&(n=b[c]);f[c]=(n^e+q[h])&255;g++;g===d.length&&(g=0);h++;4===h&&(h=0)}return f},uG:function(){return this.KE-this.F.ga()},MG:function(b){var c=p.D(100),d=new xb(c,this.ha),e=d.Le,f=b.Au,g=b.Ca();d.G(1);d.G(16,3);e.K(b.Md);e.K(b.JC);e.K(b.KC);e.K(b.pB);(null!==f||null!==g&&!a)&&this.lK(d,f,a?null:g);null!==b.th&&(d.G(3),d.G(8,3),e.Db(b.th.s),e.Db(b.th.u),e.Db(b.th.T),e.Db(b.th.ca));null!==g&&a&&(d.G(5),
d.G(8,3),e.K(g.zb),e.K(g.Vb));return c},lK:function(b,c,d){b.G(2);var e=0,f=b.Le;null!==d&&(e=8);null!==c&&(e+=c.size());var g=this.Ff(e,4,0);b.G(e+g,3);null!==d&&(f.K(d.zb),f.K(d.Vb));null!==c&&this.Dl(f,c);this.rf(f,g,0)},Dl:function(b,c){var d=c.size(),e;for(e=0;e<d;++e)b.Na(c.xz(e))},Ff:function(b,c,d){for(var e=0;0!==(b+d)%c;)b++,e++;return e},rf:function(b,c,d){for(var e=0;e<c;++e)b.Na(d)},El:function(b){this.F.Na(b);this.F.Na(0);this.F.Db(0)},mK:function(b,c){this.F.seek(4);b.write(this.F,
c)}}})();var Wa;Wa=function(){};Wa.zD=0;Wa.GB=1;var Ta;Ta=function(a){this.m=r.Hb();this.bb=[];this.g=a;var b=this;this.h(this.m?"pointermove":"mousemove",function(c){b.Oq(c)});this.h(this.m?"pointerup":"mouseup",function(c){b.J(c)});this.h(this.m?"pointercancel":"mousecancel",function(c){b.Qg(c)});this.Tc=[]};
Ta.prototype={hN:function(a){var b=[],c,d=this;for(c=0;c<this.Tc.length;++c)this.Tc[c].target===a&&b.push(c);if(0!==b.length){var e=u.ol(a.U);var f=u.Mo(a.ec);a=function(h){h.stopPropagation()};var g=function(h){d.mF(h,K.h,e,f)};for(c=0;c<b.length;++c)this.Tc[c].target=null,this.Tc[c].xs=a,this.Tc[c].et=g,this.Tc[c].Rr=void 0}},mF:function(a,b,c,d){a.stopPropagation();var e=new t(a.pageX,a.pageY),f=new t(a.pageX,a.pageY);e.$s(c);a=new Lb(a,e,f,d);if(null!==this.g.pa&&this.g.pa.handleEvent(a,b))return!0;
b=m.h(b,this.g.v.la,e);b.Kd(d);r.oh()&&(f=r.hj(f));d=u.Oy(f);b.Fb(d);this.g.dd(b)},ar:function(a){for(var b=a.length-1;0<=b;--b)this.Tc.splice(a[b],1)},h:function(a,b){this.bb.push({qz:a,callback:b});document.addEventListener(a,b,!0)},Oq:function(a){var b=this.nm(u.nf(a));null!==b&&b.xs&&b.xs(a)},J:function(a){var b=u.nf(a),c=this.nm(b);null!==c&&(this.co(b),c.et&&c.et(a))},Qg:function(a){var b=u.nf(a),c=this.nm(b);null!==c&&(this.co(b),c.Rr&&c.Rr(a))},nm:function(a){for(var b=0;b<this.Tc.length;++b)if(this.Tc[b].pz===
a)return this.Tc[b];return null},co:function(a){for(var b=[],c=0;c<this.Tc.length;++c)this.Tc[c].pz===a&&b.push(c);this.ar(b)},Tr:function(a,b,c,d,e){var f=u.nf(a);if(null!==this.nm(f))throw Error("This event is already registered.");if(u.cj(a)&&a.target.releasePointerCapture)try{a.target.releasePointerCapture(f)}catch(g){}this.Tc.push({pz:f,target:b,xs:c,et:d,Rr:e})}};var K;K=function(){};K.J=2;K.h=4;K.m=16;K.$a=521;K.wa=529;var m;
m=function(a,b,c,d){void 0===c&&(c=0);void 0===d&&(d=0);this.Md=a;this.pB=b;this.JC=c;this.KC=d;this.th=this.Au=null;this.mk=!1;this.yb=null};m.h=function(a,b,c){r.oh()&&(c=r.hj(c));return m.m(a,b,c)};m.J=function(a,b,c,d){return new m(a,b,c,d)};m.$a=function(a,b){return new m(257,a,b.charCodeAt(0))};m.wa=function(a,b,c,d,e,f,g){var h=p.D(12),k=P.D(h,!0);a=new m(516,a,(b?c?d?7:5:d?3:1:0)|(g?16:0),0);k.wc(0);k.wc(0);k.wc(e.C()-1);k.wc(e.B()-1);k.wn(f);a.Fb(h);return a};
m.Gb=function(a,b,c){return m.m(a,b,c)};m.m=function(a,b,c){return new m(a,b,c.mc())};m.prototype={VA:function(a){this.th=new M(Math.max(0,a.s),Math.max(0,a.T),Math.max(0,a.u),Math.max(0,a.ca))},Fb:function(a){this.Au=a},gP:function(){this.mk=!0},Kd:function(a){this.yb=a},Ca:function(){return this.yb}};var Yb;Yb=function(){var a;void 0===a&&(a=100);this.Yl=[];this.Ai=this.rk=0;this.Xj=a;this.mm=!1;this.Mw=0};
Yb.prototype={push:function(a){2097152!==a.Md&&(this.Mw=u.m());if(this.nH(a))return!0;if(this.mm)return"undefined"!==typeof v&&v.warn(u.h("Eventqueue full, dropped event with tag {0}",a.Md)),!1;this.Yl[this.Ai%this.Xj]=a;this.Ai=(this.Ai+1)%this.Xj;this.Ai===this.rk&&(this.mm=!0);return!0},empty:function(){return!this.mm&&this.rk===this.Ai},pop:function(){if(this.empty())return null;this.mm=!1;var a=this.rk;this.rk=(this.rk+1)%this.Xj;return this.Yl[a]},nH:function(a){if(!this.empty()&&(a.Md===K.m||
2053===a.Md||2055===a.Md||516===a.Md||this.rw(a.Md))){var b=(this.Ai+this.Xj-1)%this.Xj,c=this.Yl[b];if(c.Md===a.Md&&(!this.rw(a.Md)||this.$G(a,c)))return this.Yl[b]=a,!0}return!1},rw:function(a){return 539===a},$G:function(a,b){return a.Ca()===b.Ca()?!0:null===a.Ca()||null===b.Ca()?!1:a.Ca().NB(b.Ca())}};var Aa;Aa=function(a){this.Tf={};this.g=a;this.Bq=null};
Aa.prototype={Ji:function(a,b,c){void 0===c&&(c=null);var d=this.UH(a,c);var e=this.Tf[d];if(void 0!==e)return e;e=new Zb(this.g,a,c,b);return this.Tf[d]=e},BK:function(a){var b=[];this.Vv(function(c){c.cg()||(b.push(c),c.CK(function(){b.splice(b.indexOf(c),1);0===b.length&&setTimeout(a,0)}))})},HK:function(){var a=u.m(),b=[],c=this.g.getConfiguration(),d;if(-1!==c.NumCachedImages)if(0===c.NumCachedImages)this.Tf={};else{this.Vv(function(f,g){var h=f.EH;f=f.lx?c.MaxUnusedImageAge:c.MaxUndrawnImageAge;
0!==h&&h<a-f&&b.push({path:g,time:h})});var e=Math.min(u.FM(this.Tf)-c.NumCachedImages,b.length);if(0<e)for(b.sort(function(f,g){return f.time-g.time}),d=0;d<e;++d)delete this.Tf[b[d].path]}},jN:function(a){delete this.Tf[a]},eA:function(){null===this.Bq&&(this.Bq=this.g.getConfiguration().LoadImagesById);return this.Bq},Vv:function(a){var b;for(b in this.Tf){var c=this.Tf[b];a(c,b)}},UH:function(a,b){return null===b?a:a+":"+b}};var Zb;
Zb=function(a,b,c,d){this.g=a;this.lx=!1;this.Vf=c;this.Eg=u.No(b);this.LI=3;this.tr(d,null);this.Er();this.Rj=this.Rm=this.xi=null};
Zb.prototype={dH:function(){try{r.yC(this.qe,this.Eg,this.g.getConfiguration())?this.lG():(null===this.Vf||this.vw()||this.WJ(),this.Jl(2))}catch(a){this.g.error("Unexpected exception during load image callback: "+a)}},vw:function(){return u.ap(this.Eg)},WJ:function(){try{var a=window.document.createElement("canvas"),b=a.getContext("2d"),c,d=parseInt(this.Vf.substr(1,2),16),e=parseInt(this.Vf.substr(3,2),16),f=parseInt(this.Vf.substr(5,2),16),g=this.wG(),h=this.Nn();a.width=h.L;a.height=h.$;b.drawImage(this.qe,
0,0);var k=b.getImageData(0,0,a.width,a.height);for(c=0;c<k.data.length;c+=4)g(k.data[c],k.data[c+1],k.data[c+2],d,e,f)&&(k.data[c+3]=0,k.data[c]=0,k.data[c+1]=0,k.data[c+2]=0);b.putImageData(k,0,0);this.xi=a;this.qe=null}catch(q){this.xi=this.Vf=null,v.warn("Exception during making image "+this.Eg+" transparent. Is this an SVG? As a workaround it will be rendered ignoring the transparency color")}},IH:function(a){try{if(v.warn("Loading image "+this.Eg+" failed: "+a.type),0<=this.LI--){var b=this;
window.setTimeout(function(){v.info("Triing to load the image "+b.Eg+" again");b.tr(!0,null)},50);this.Jl(4)}else this.Jl(3)}catch(c){this.g.error("Unexpected exception during handling of load image problems: "+c)}},Mn:function(){this.Er();this.lx=!0;2!==this.fa&&v.warn("Access to not (yet) loaded image");return null!==this.xi?this.xi:this.qe},Nn:function(){null===this.Rj&&(null!==this.qe?this.Rj=r.It(this.qe):null!==this.xi&&(this.Rj=r.It(this.xi)));return this.Rj},rN:function(){this.Rj=null},CK:function(a){this.Rm=
a},cg:function(){return 2===this.fa||3===this.fa},loaded:function(){return 2===this.fa},Jl:function(a){this.Er();this.fa=a;null!==this.Rm&&this.cg()&&(this.Rm(),this.Rm=null)},Er:function(){this.EH=u.m()},tr:function(a,b){this.qe=new Image;var c=this;b=null===b?this.Eg:b;this.qe.onload=function(){c.dH()};this.qe.onerror=function(d){c.IH(d)};this.fa=1;this.qe.src=this.dE(b,a)},dE:function(a,b){b&&(a+="?"+u.m());this.vw()&&!this.g.getConfiguration().WorkaroundDisableSVGAspectRatioWorkaround&&(a+="#svgView(preserveAspectRatio(none))");
return a},wG:function(){return this.g.getConfiguration().FuzzyTransparencyColorEvaluation?function(a,b,c,d,e,f){return 2>Math.abs(a-d)&&2>Math.abs(b-e)&&2>Math.abs(c-f)}:function(a,b,c,d,e,f){return a===d&&b===e&&c===f}},lG:function(){v.m("Workaround for image "+this.Eg+" without width/height activated");var a=this;r.KB(this.qe,function(b){a.tr(!1,b)},function(b){v.warn("Retrieving workaround image failed so going on as formerly, reason: "+b);a.Jl(3)})}};var za;
za=function(){this.Ze={};this.Je=null;this.rl="<Project>"};
za.prototype={Li:function(a){a=a.toLowerCase().split(".");var b=[],c;for(c=0;c<a.length;++c)b[c]=u.lh(a[c]);if(1>b.length)return null;a=b[b.length-1];if(1===b.length)return this.jk(this.dG(a));c=b[b.length-2];if(2===b.length){var d=this.eG(c);if(null!==d)return this.jk(this.Pp(a,d));d=this.Rp(c);return null!==d?this.jk(this.gm(a,d)):null}b=b.slice(0,b.length-2).join(".");d=this.Rp(b);if(null!==d&&(d=this.Qp(c,d),null!==d))return this.jk(this.Pp(a,d));d=this.Rp(b+"."+c);return null!==d?this.jk(this.gm(a,
d)):null},HN:function(a){this.Je=a},jk:function(a){return null!==a?a.path:null},Rp:function(a){var b=this.Sv(a);null===b&&(b=this.fG(a));return b},Sv:function(a){a=this.Ze[a];return void 0!==a?a:null},fG:function(a){if(null!==this.Je){a=a.toLowerCase();var b,c=null;for(b=0;b<this.Je.length;++b)if(this.Je[b].ys===a){c=this.Je[b].pA;break}if(null!==c)for(b=0;b<this.Je.length;++b)if(this.Je[b].ys!==a&&this.Je[b].pA===c){var d=this.Sv(this.Je[b].ys);if(null!==d)return d}}return null},dG:function(a){var b=
this.Ze[this.rl],c;if(void 0!==b&&(b=this.gm(a,b),null!==b))return b;for(c in this.Ze)if(c!==this.rl&&(b=this.gm(a,this.Ze[c]),null!==b))return b;return null},gm:function(a,b){var c;for(c in b.Si){var d=this.Pp(a,b.Si[c]);if(null!==d)return d}return null},Pp:function(a,b){a=b.entries[a];return void 0===a?null:a},eG:function(a){var b=this.Ze[this.rl],c;if(void 0!==b&&(b=this.Qp(a,b),null!==b))return b;for(c in this.Ze)if(b=this.Qp(a,this.Ze[c]),null!==b)return b;return null},Qp:function(a,b){a=b.Si[a];
return void 0!==a?a:null},fill:function(a){a=a.replace(/\r\n/g,"\n").split("\n");var b;for(b=0;b<a.length;++b){var c=a[b].split(";");if(!(4>c.length)){var d=this.TH(u.lh(c[1]));var e=u.lh(c[0]).toLowerCase();var f=u.lh(c[2]).toLowerCase();var g=u.lh(c[3]);c=this.Ze[d];if(void 0===c){c={Si:{}};var h=this.nv(e);h.entries[f]=this.zp(f,g);c.Si[e]=h;this.Ze[d]=c}else h=c.Si[e],void 0===h?(h=this.nv(e),h.entries[f]=this.zp(f,g),c.Si[e]=h):h.entries[f]=this.zp(f,g)}}},TH:function(a){return null===a||""===
a?this.rl:a.toLowerCase()},nv:function(a){return{name:a,entries:{}}},zp:function(a,b){return{id:a,path:b}}};var Fa;Fa=function(){};Fa.prototype={j:function(a){if(a.g.oa){var b=a.g.aa().va();if(null!==b&&!(b instanceof zb)&&(b=b.Vc,null!==b&&void 0!==b)){b.Gk();return}}a=a.g.pa;null!==a&&a.Gk()}};var $b;$b=function(a,b){this.l=I.ee(b)};$b.prototype={j:function(a){a.Vr();a.g.ob.Vk(this.l)}};var ac;ac=function(a,b){this.l=I.ee(b)};
ac.prototype={j:function(a){a.getContext().clearRect(this.l.s,this.l.u,this.l.C(),this.l.B());a.g.ob.Vk(this.l)}};var bc;bc=function(a,b){this.l=I.ee(b)};bc.prototype={j:function(a){a=a.getContext();a.save();a.beginPath();a.rect(this.l.s,this.l.u,this.l.C()+1,this.l.B()+1);a.clip()}};var cc;cc=function(){};cc.prototype={j:function(a){(a=a.g.ln)&&a.Wy()}};var dc;
dc=function(a,b,c,d){this.l=I.wh(b,!1);this.Wm=0!==b.getInt8();this._type=b.getInt8();switch(this._type){case 2:case 4:this.Vl=b.getUint32();this.Wl=b.getUint32();this.Oh=b.getUint32();break;case 1:case 3:this.dv=b.getInt16(),this.Vl=b.getUint32()}d.Jd()&&(this.l=d.yh(this.l))};
dc.prototype={j:function(a){var b=a.getContext(),c=this.l.s,d=this.l.u,e=this.l.C(),f=this.l.B(),g=b.lineWidth;b.save();this.cn=a.g.getConfiguration().SemiTransparencyActive;a.getState().ag()?a.getState().yn(this.l):b.fillStyle=!0===this.cn?I.ab(this.Vl):I.nb(this.Vl);b.lineWidth=1;c+=.5;d+=.5;switch(this._type){case 2:case 4:this.qI(b,c,d,e,f);break;case 1:case 3:this.pI(b,c,d,e,f)}b.lineWidth=g;a.getState().ag()&&a.getState().Yk();b.restore()},oc:function(){return this.l},HL:function(){return!0===
this.cn?I.ab(this.Wl):I.nb(this.Wl)},xL:function(){return!0===this.cn?I.ab(this.Oh):I.nb(this.Oh)},qI:function(a,b,c,d,e){if(!0===this.cn){var f=this.Wm?I.ab(this.Oh):"#000000";var g=I.ab(this.Wl);var h=I.ab(this.Oh)}else f=this.Wm?I.nb(this.Oh):"#000000",g=I.nb(this.Wl),h=I.nb(this.Oh);this.Wm?(a.strokeStyle=f,a.strokeRect(b,c,d,e),a.fillRect(b,c,d,e)):(a.fillRect(b,c,d,e),a.strokeStyle=g,a.beginPath(),a.moveTo(b,c),a.lineTo(b+d,c),a.moveTo(b,c),a.lineTo(b,c+e),a.stroke(),a.closePath(),a.strokeStyle=
f,a.beginPath(),a.moveTo(b,c+e),a.lineTo(b+d,c+e),a.lineTo(b+d,c),a.stroke(),a.closePath(),a.strokeStyle=h,a.beginPath(),a.moveTo(b+1,c+e-1),a.lineTo(b+d-2,c+e-1),a.moveTo(b+d-1,c+1),a.lineTo(b+d-1,c+e-1),a.stroke(),a.closePath())},pI:function(a,b,c,d,e){var f=new ec(this.Vl,this.dv);if(this.Wm)a.strokeStyle=I.nb(f.zz(0)),a.strokeRect(b,c,d,e),a.fillRect(b,c,d,e);else{a.strokeStyle="#000000";a.fillRect(b,c,d,e);a.strokeRect(b,c,d,e);var g;for(g=0;g<this.dv;++g)a.beginPath(),a.moveTo(b+g,c+e-g),a.lineTo(b+
g,c+g),a.lineTo(b+d-g,c+g),a.strokeStyle=I.nb(f.vL(g)),a.stroke(),a.beginPath(),a.moveTo(b+d-g,c+1+g),a.lineTo(b+d-g,c+e-g),a.lineTo(b+1+g,c+e-g),a.strokeStyle=I.nb(f.zz(g)),a.stroke()}}};var Ea;
Ea=function(a,b,c,d){a=b.ga();var e=b.getUint16();var f=b.ja(e,!1);e=b.getUint16();e=b.ja(e,!1);""!==f&&(e=f+"."+e);this.Gf=e;this.l=I.wh(b,!0);this.l.normalize();d.Jd()&&(this.l=d.yh(this.l));f=b.getUint32();this.qq=0!==(f&1);this.Cl=0!==(f&2);this.im=0!==(f&4);this.xJ=0!==(f&8);this.Wu=0!==(f&16);this.on=0!==(f&32);this.$p=0!==(f&128);this.ir=0!==(f&256);this.Hr=0!==(f&1024);this.pp=0!==(f&2048);this.Rg=0!==(f&4096);this.Ej=!1;this.Mx=this.l;this.Vf=I.nb(b.getUint32());c>=b.ga()-a+16&&(this.Ej=
!0,this.cm=b.getFloat32(),this.dm=b.getFloat32(),d.Jd()&&(this.cm=d.bn,this.dm=d.ti));this.Ea=null};
Ea.prototype={j:function(a){a=a.getContext();var b=I.xC(this.l),c=this.l.clone(),d=this;this.vJ(a,c,b);null!==this.Ea&&(this.Ea.loaded()?this.zj(a,this.Ea.Mn(),function(){return d.Ea.Nn()},c,!1):this.CF(a,this.l));this.xJ&&(c=I.Ho(a),a.strokeRect(this.l.s+c,this.l.u+c,this.l.C(),this.l.B()));this.DE(a,b)},wO:function(a){this.Gf=a},Vz:function(a,b){var c;this.Rg&&null!==(c=b.Li(this.Gf))&&a.jN(c);if(null===this.Ea){if(a.eA())return b="ImageByImagePoolId?id="+this.Gf,this.Ea=this.on?a.Ji(b,this.Rg,
this.Vf):a.Ji(b,this.Rg),this.Ea.cg();c=b.Li(this.Gf);if(null!==c)return this.Ea=this.on?a.Ji(c,this.Rg,this.Vf):a.Ji(c,this.Rg),this.Ea.cg();v.warn("Imagepoolentry for "+this.Gf+" not found");return!0}return this.Ea.cg()},nB:function(){var a=this,b=this.l.clone();null!==this.Ea&&(this.zj(null,this.Ea.Mn(),function(){return a.Ea.Nn()},b,!0),this.Ea.rN());return this.Mx},zj:function(a,b,c,d,e){if(this.im&&this.Ej){var f=c();f=new w(Math.round(this.cm*f.L),Math.round(this.dm*f.$));d=u.Lo(d,f,this);
this.im=!1;this.Cl=!0}if(this.Cl)e||a.drawImage(b,d.s,d.u,d.C(),d.B());else if(this.qq){f=c();d.C()/f.L<d.B()/f.$?(c=Math.round(d.C()*f.$/f.L),f=d.C()):(c=d.B(),f=Math.round(d.B()*f.L/f.$));var g=new M(d.s,d.u,d.s+f,d.u+c);d=u.Ay(g,d,this);e||a.drawImage(b,d.s,d.u,f,c)}else e||a.drawImage(b,d.s,d.u);this.Mx=d},vJ:function(a,b,c){c&&(a.save(),b.kd.zn(a,b));this.Wu&&(a.save(),a.beginPath(),a.rect(b.s,b.u,b.C()+1,b.B()+1),a.clip())},DE:function(a,b){this.Wu&&a.restore();b&&a.restore()},CF:function(a,
b){b=b.Xz(-3);a.save();a.fillStyle="#eeeeee";a.strokeStyle="#ff0000";a.lineWidth=3;a.fillRect(b.s,b.u,b.C(),b.B());a.beginPath();a.moveTo(b.s,b.u);a.lineTo(b.T,b.ca);a.moveTo(b.T,b.u);a.lineTo(b.s,b.ca);a.closePath();a.stroke();a.restore()}};var fc;fc=function(a,b,c,d){this.l=I.wh(b,!0);this.gy=I.gl(b.getInt16());this.MJ=I.gl(b.getInt16());this.$F=1===b.getInt16();d.Jd()&&(this.l=d.yh(this.l))};
fc.prototype={j:function(a){var b=a.getContext(),c=this.l.C(),d=this.l.B(),e=!a.getState().ss(),f=!a.getState().ei,g=Math.min(c,d)/2;0>=c||0>=d||(b.save(),this.SD(b),a.getState().ag()&&a.getState().yn(this.IG(g)),b.beginPath(),b.arc(0,0,g,this.gy,this.gy+this.MJ,!1),this.$F&&(b.lineTo(0,0),b.closePath(),e&&b.fill()),b.restore(),f&&b.stroke(),a.getState().ag()&&a.getState().Yk())},IG:function(a){return new M(-a,-a,a,a)},SD:function(a){var b=this.l.C(),c=this.l.B();null!==this.l.kd?this.l.kd.zn(a,this.l):
a.translate(this.l.s+.5,this.l.u+.5);a.translate(b/2,c/2);b>c?a.scale(b/c,1):a.scale(1,c/b)}};var gc;gc=function(a,b){this.ia=I.Ut(b)};gc.prototype={j:function(a){a=a.getContext();var b;for(b=0;b<this.ia.length;++b)a.fillRect(this.ia[b].X,this.ia[b].Y,1,1)}};var hc;hc=function(a,b,c,d){this._type=b.getUint16();2===a?this.ia=I.Ut(b):59===a&&(this.ia=I.XC(b));d.Jd()&&(this.ia=d.cD(this.ia))};
hc.prototype={j:function(a){var b=a.getContext(),c=!a.getState().ss(),d=!a.getState().ei;if(!(2>this.ia.length)){a.getState().ag()&&a.getState().yn(this.KJ());d&&this.zI(b);switch(this._type){case 0:this.DF(b,c,d);break;case 1:d&&this.EF(b);break;case 2:d&&this.yF(b)}a.getState().ag()&&a.getState().Yk()}},zI:function(a){a=I.Ho(a);var b;if(0!==a)for(b=0;b<this.ia.length;++b)this.ia[b].X+=a,this.ia[b].Y+=a},DF:function(a,b,c){a.beginPath();a.moveTo(this.ia[0].X,this.ia[0].Y);for(var d=1;d<this.ia.length;++d)a.lineTo(this.ia[d].X,
this.ia[d].Y);a.closePath();b&&a.fill();c&&a.stroke()},EF:function(a){var b;a.beginPath();a.moveTo(this.ia[0].X,this.ia[0].Y);for(b=1;b<this.ia.length;++b)a.lineTo(this.ia[b].X,this.ia[b].Y);a.stroke()},yF:function(a){a.beginPath();a.moveTo(this.ia[0].X,this.ia[0].Y);for(var b=1;b+3<=this.ia.length;)a.bezierCurveTo(this.ia[b].X,this.ia[b].Y,this.ia[b+1].X,this.ia[b+1].Y,this.ia[b+2].X,this.ia[b+2].Y),b+=3;for(;b<this.ia.length;++b)a.lineTo(this.ia[b].X,this.ia[b].Y);a.stroke()},KJ:function(){var a=
1E9,b=-1E9,c=1E9,d=-1E9,e;for(e=0;e<this.ia.length;++e)this.ia[e].X<a&&(a=this.ia[e].X),this.ia[e].Y<c&&(c=this.ia[e].Y),this.ia[e].X>b&&(b=this.ia[e].X),this.ia[e].Y>d&&(d=this.ia[e].Y);return new M(a,c,b,d)}};var ic;ic=function(a,b,c,d){this._type=b.getUint16();switch(a){case 1:this.l=I.wh(b,!0);break;case 45:this.l=I.ee(b);break;case 60:this.l=I.QC(b);break;case 61:this.l=I.PC(b)}d.Jd()&&(this.l=d.yh(this.l));this.Mj=!1;this.eK=new jc(this._type,this.l)};
ic.prototype={j:function(a){this.Mj||(this.eK.Di(a),a.g.ob.KK())},oc:function(){return this.l},Ps:function(a){this.Mj=a}};var kc;kc=function(a,b){this._type=b.getUint16();a=b.getUint16();var c=b.getUint16();this.ui=new w(a,c);a=b.getUint16();c=b.getUint16();this.rr=new w(a,c);b=b.getUint32();this.bK=0!==(b&1);this.cK=0!==(b&2);this.Gr=0!==(b&4)};
kc.prototype={j:function(a){var b=a.getState().$q;var c=new t(b.X+this.rr.L,b.Y+this.rr.$);if(this.Gr){var d=a.getState().Wq;var e=c.X;c.X=d.X+this.rr.L;d=e-c.X}else d=this.ui.L;c=new M(c.X,c.Y,c.X+d,c.Y+this.ui.$);(new jc(this._type,c)).Di(a);this.bK&&(b.X+=this.ui.L);this.cK&&(b.Y+=this.ui.$)}};var jc;jc=function(a,b){this._type=a;this.l=b.BM()};
jc.prototype={zF:function(a,b,c,d,e,f,g){a.beginPath();if("function"===typeof a.ellipse){var h=d/2;e/=2;a.ellipse(b+h,c+e,h,e,0,0,2*Math.PI)}else{h=d/2*.5522848;var k=e/2*.5522848,q=b+d,n=c+e;d=b+d/2;e=c+e/2;a.moveTo(b,e);a.bezierCurveTo(b,e-k,d-h,c,d,c);a.bezierCurveTo(d+h,c,q,e-k,q,e);a.bezierCurveTo(q,e+k,d+h,n,d,n);a.bezierCurveTo(d-h,n,b,e+k,b,e);a.closePath()}f&&a.fill();g&&a.stroke()},FF:function(a,b,c,d,e,f,g){f&&a.fillRect(b,c,d,e);g&&a.strokeRect(b,c,d,e)},BF:function(a,b,c,d,e){a.beginPath();
a.moveTo(b,c+e);a.lineTo(b+d,c);a.stroke()},Di:function(a){this.$r=a.getContext();this.fg=a;this.x=this.l.s;this.y=this.l.u;this.w=this.l.C();this.yc=this.l.B();this.radiusX=a.getState().kw;this.radiusY=a.getState().lw;this.fill=!a.getState().ss();this.stroke=!a.getState().ei;this.oA=this.l.kd;0>this.w||0>this.yc||(this.fg.getState().ag()&&this.fg.getState().yn(this.l),this.sF())},sF:function(){var a=this.$r,b=this.x,c=this.y,d=this.w,e=this.yc,f=this.radiusX,g=this.radiusY,h=this.fill,k=this.stroke,
q=this.oA;null!==q&&(a.save(),this.l.kd.zn(a,this.l));if(this.stroke&&null===this.oA){var n=I.Ho(a);b+=n;c+=n}switch(this._type){case 0:this.FF(a,b,c,d,e,h,k);break;case 1:I.LB(a,b,c,d,e,h,k,f,g);break;case 2:this.zF(a,b,c,d,e,h,k);break;case 3:k&&this.BF(a,b,c,d,e);break;case 4:k&&(a.beginPath(),a.moveTo(b,c),a.lineTo(b+d,c+e),a.stroke())}null!==q&&a.restore();this.fg.getState().ag()&&this.fg.getState().Yk()}};var lc;
lc=function(a,b,c,d){if(3===a||11===a)var e=I.St(b);else if(46===a||47===a)e=I.SC(b);c=b.getUint32();this.Wb=this.YG(c);this.Cb=this.gK(c);this.Gu=0!==(c&16);this.hE=0!==(c&32);this.KI=0!==(c&64);this.cJ=0!==(c&1024);this.Gr=0!==(c&2048);this.hn=0!==(c&256);this.Ak=0!==(c&512);this.l=I.vt(e,0!==(c&128));d.Jd()&&(this.l=d.yh(this.l));d=b.getUint16();this.ka=b.ja(d,11===a||47===a);this.li=I.Eo(this.ka);this.yr=I.Ot(this.ka);this.ff=this.ka;this.Mj=!1};
lc.prototype={j:function(a){if(!this.Mj){this.fg=a;this.$r=a.getContext();this.state=a.getState();if(this.KI){var b=this.state.$q;if(this.Gr){b=this.state.Wq;var c=b.X;b=b.Y}else c=b.X,b=b.Y;a.Jd()&&(c=a.ul(c),b=a.vl(b));this.l=new M(c,b,c+this.l.C(),b+this.l.B())}this.tF()}},pc:function(a){this.ka=a;this.li=I.Eo(this.ka);this.yr=I.Ot(this.ka);this.ff=this.ka},oc:function(){return this.l},ms:function(){switch(this.Wb){case 1:return"LEFT";case 2:return"RIGHT";default:return"HCENTER"}},qs:function(){switch(this.Cb){case 1:return"TOP";
case 2:return"BOTTOM";default:return"VCENTER"}},Ps:function(a){this.Mj=a},tF:function(){var a=this.$r,b=this.state,c=this.fg;a.save();null!==this.l.kd&&this.l.kd.zn(a,this.l);a.beginPath();a.rect(this.l.s-.5,this.l.u-.5,this.l.C()+1,this.l.B()+1);a.clip();a.fillStyle=b.ny;a.font=b.Ii();var d=!1;var e=b.Wh;var f=a.font;!c.g.qh&&(this.LD(a,c),!0===c.g.getConfiguration().AutoFontReductionActive&&this.Ak||!1===c.g.getConfiguration().AutoFontReductionActive&&(this.hn||this.Ak))&&(d=this.QI(a,c));!1===
d&&(this.li?this.br(a,c):this.Px(a));if(this.hE){d=b.$q;var g=b.Wq;d.X=this.l.s;d.Y=this.l.u;this.cJ&&(g.X=d.X+1,g.Y=d.Y);d.X=this.l.s+this.PJ(a)}c.g.qh||!0!==c.g.getConfiguration().AutoFontReductionActive||!1!==this.Ak||(b.PA(e),b.jg(f));a.restore()},LD:function(a,b){var c=b.getState(),d,e;if(!0===b.g.getConfiguration().AutoFontReductionActive&&!this.Ak){var f=a.font;var g=c.Wh;var h=this.l.C()+1;var k=this.l.B()+1;for(d=!0;(h>this.l.C()||k>this.l.B())&&1<g;){d||(--g,c.PA(g),c.jg(u.nM(f,g)),a.font=
c.Ii());this.ff=this.ka;this.hn&&(this.Qx(a,b,!0,this.ff,!0),this.li=I.Eo(this.ff));if(this.li)if(k=I.wl(this.ff),h=0,0<k.length){for(e=0;e<k.length;++e)d=a.measureText(k[e]).width,h<d&&(h=d);k=u.$a(b)*k.length}else h=a.measureText(this.ff).width,k=u.$a(b);else h=a.measureText(this.ff).width,k=u.$a(b);d=!1}this.ka=this.ff}},Px:function(a){this.yr?this.NI(a):this.Ul(a,this.ka,this.hp(a))},br:function(a,b){var c=I.wl(this.ka),d=this,e;if(0<c.length){var f=u.$a(b);var g=f*c.length;g-=u.KM(b);this.JD(a,
g);b=this.OD(a,g);var h=function(q){d.Ul(a,q.text,k)};for(e=0;e<c.length;++e){if(this.yr){g=I.Wo(a,c[e]);var k=this.Bu(a,g);k.Y=b.Y;this.Dw(g,k,h)}else this.Ul(a,c[e],b);b.Y+=f}}},QI:function(a,b){var c;this.hn?c=this.Qx(a,b,!1,this.ka,!1):this.Ak&&(c=this.OI(a,b));return c},Qx:function(a,b,c,d,e){var f=!1;var g=this.l.T-this.l.s;this.Ar(a,d)>g&&(f=!0,d=this.hK(a,d,g,e),!1===c?(this.ka=d,this.br(a,b)):this.ff=d);return f},hK:function(a,b,c,d){var e=!1,f="",g=!1,h=1;do{if(1===b.length)break;for(;this.Ar(a,
b.slice(0,h))<c;)if(h++,h===b.length){e=!0;break}1===h&&h++;if(!e){g=!1;for(var k=h-1;0<k;k--)if(this.zH(b.charAt(k))){f+=[b.slice(0,k),"\n"].join("");b=b.slice(k+1);g=!0;break}g||(d?e=!0:(f+=[b.slice(0,h-1),"\n"].join(""),b=b.slice(h-1)));h=1}}while(!e);return!g&&d?this.ka:[f,b].join("")},zH:function(a){return(new RegExp(/^\s$/)).test(a.charAt(0))},OI:function(a,b){this.Gu=!0;this.li?this.br(a,b):this.Px(a,b);return!0},NI:function(a){var b=I.Wo(a,this.ka),c=this.Bu(a,b),d=this;this.Dw(b,c,function(e){d.Ul(a,
e.text,c)})},Dw:function(a,b,c){var d;if(2===this.Wb)for(d=a.length-1;0<=d;--d)c(a[d]),b.X-=a[d].jt*I.Ah;else for(d=0;d<a.length;++d)c(a[d]),b.X+=a[d].jt*I.Ah},Ul:function(a,b,c){this.Gu&&(b=this.mG(a,b));a.fillText(b,c.X,c.Y)},mG:function(a,b){if(I.og(a,b,!1)<=this.l.C())return b;for(var c,d=0,e=b.length-1,f,g;1<e-d;){f=Math.floor((d+e)/2);c=b.substr(0,f)+"...";g=I.og(a,c,!1)-this.l.C();if(0===g)return c;0>g?(d=f,g=!1):(e=f,g=!0)}return!0===g?0<f?c.substr(0,f-1)+"...":"":c},OD:function(a,b){var c=
this.hp(a);a.textBaseline="top";3===this.Cb?c=new t(c.X,this.l.u+this.l.B()/2-b/2):2===this.Cb&&(c=new t(c.X,c.Y-b));return c},JD:function(a,b){this.hn&&3===this.Cb&&this.l.B()<b&&(this.Cb=1)},hp:function(a){if(1===this.Wb){var b=this.l.s+1;a.textAlign="left"}else 3===this.Wb?(b=this.l.s+this.l.C()/2,a.textAlign="center"):(b=this.l.T-1,a.textAlign="right");if(1===this.Cb){var c=this.l.u+2;a.textBaseline="top"}else 3===this.Cb?(c=this.l.u+this.l.B()/2,a.textBaseline="middle"):(c=this.l.ca-1,a.textBaseline=
"bottom");return new t(b,c)},Bu:function(a,b){a=this.hp(a);var c,d=0;if(3===this.Wb){for(c=0;c<b.length;++c)d+=b[c].jt*I.Ah;a.X=this.l.s+(this.l.C()-d+I.Ah)/2}return a},YG:function(a){var b=1;0!==(a&1)?b=3:0!==(a&2)&&(b=2);return b},gK:function(a){var b=1;0!==(a&4)?b=3:0!==(a&8)&&(b=2);return b},PJ:function(a){return this.Ar(a,this.ka)},Ar:function(a,b){if(this.li){var c=0;b=I.wl(b);var d;for(d=0;d<b.length;++d)c=Math.max(c,I.og(a,b[d],!0));return c}return I.og(a,b,!0)}};var La;
(function(){var a=null;La=function(b,c){var d=c.getUint16();this.ka=c.ja(d,15===b);this.o=I.xh(c);this.ex=1===(c.getUint32()&1)};La.prototype={j:function(b){var c=b.getContext(),d=b.g.ln,e=I.wl(this.ka);b.g.getConfiguration().Nz();var f=d.wi;var g=this.KG(b,f);var h=this.iE(c,g,e);var k=h.size;var q=new w(2*f.Zi+6,2*f.Zi+4);var n=this.jE(b.lf(),k,q,b);b.g.oa?(this.ka=this.ka.replace(/(?:\r\n|\r|\n)/g,"<br>"),this.ex?d.JM(n.s,n.u,this.ka,g.zo):d.FK(this.ka,k,document.getElementById("background").width,
document.getElementById("background").height)):(c.save(),this.AF(c,f,n,g,q,e,h.lineHeight),this.ex&&(a=new M(0,0,0,0)),null!==a&&n.oL(a)||this.lJ(b.g,n),a=n,c.restore())},lJ:function(b,c){var d=new m(513,b.v.la,0,0),e=p.D(8),f=P.D(e,!0);f.wc(Math.floor(c.s));f.wc(Math.floor(c.u));f.wc(Math.ceil(c.T));f.wc(Math.ceil(c.ca));d.Fb(e);b.wb.push(d)},iE:function(b,c,d){var e=new w(0,0),f=b.font,g,h=0;b.font=c.zo;for(g=0;g<d.length;++g){0===g&&(h=u.pf(c.QB)+2);var k=I.og(b,d[g],!1);e.L=Math.max(e.L,k);e.$+=
h}e.$=Math.ceil(e.$);e.L=Math.ceil(e.L);b.font=f;return{size:e,lineHeight:h}},jE:function(b,c,d,e){var f;if(e.g.oa){var g=document.getElementById("background").height;var h=document.getElementById("background").width;e=e.g.aa().va().U;e=u.aj(e,u.fb());h<20+c.L+e.X+this.o.X?f=e.X+this.o.X-20-d.L-c.L:f=e.X+this.o.X+20;g=g<20+c.$+e.Y+this.o.Y?e.Y+this.o.Y-c.$+20+d.L:e.Y+this.o.Y+20}else this.o.X+20+d.L+c.L>=b.C()?f=this.o.X-20-d.L-c.L:f=this.o.X+20,this.o.Y+20+c.$>=b.B()?g=this.o.Y-20-c.$:g=this.o.Y+
20;0>f&&(f=c.L<b.C()?(b.C()-c.L)/2:0);0>g&&(g=c.$<b.B()?(b.B()-c.$)/2:0);return new M(f,g,f+c.L+d.L,g+d.$+c.$)},AF:function(b,c,d,e,f,g,h){var k=c.Zi/2;b.fillStyle=c.Ct;b.fillRect(d.s,d.u,d.C(),d.B());b.lineWidth=c.Zi;b.strokeStyle=c.lt;k=new M(d.s+k,d.u+k,d.T-k,d.ca-k);b.strokeRect(k.s,k.u,k.C(),k.B());b.font=e.zo;b.textBaseline="top";b.textAlign="left";b.fillStyle=c.Et;c=new t(d.s+f.L/2,d.u+f.$/2);for(d=0;d<g.length;++d)b.fillText(g[d],c.X,c.Y),c=new t(c.X,c.Y+h)},KG:function(b,c){b=b.g.getConfiguration().Nz();
return""===b||void 0===b||null===b?c.Font:b}}})();var mc;mc=function(){};mc.prototype={j:function(){}};var nc;nc=function(a,b){a=b.getUint16();this.HE=0===a||2===a};nc.prototype={j:function(a){this.HE&&a.g.Qd.close();a.g.Qd.pN()}};var oc;oc=function(a,b,c){var d=b.ga();this.IE=b.getUint16();a=b.getUint16();this.bv=b.ja(a,!1);c>=b.ga()-d+10?(a=b.getUint16(),this.cv=b.ja(a,!1)):this.cv=""};
oc.prototype={j:function(){switch(this.IE){case 0:v.warn("The functionality start process is not possible in the webvisualization.");break;case 1:case 2:case 3:v.warn("The functionality printing is not possible in the webvisualization.");break;case 4:this.PH()}},PH:function(){"replace"===this.cv?window.location.href=this.bv:window.open(this.bv)}};var pc;pc=function(a,b){this.xj=b.getUint8();this.xj=0===this.xj?2:3;this.em=new qc(b)};
pc.prototype={j:function(a){var b=new rc(0,this.xj,this.em.Gg,null,this.em);a.g.Wi(b)}};var sc;sc=function(a,b,c,d){a=d.g.i;c=0;this.Cc=b.getUint32();d=b.getUint16();this.Ir=b.ja(d,!1);d=b.getUint32();null===a.buffer&&(a.buffer=p.D(d));for(;c<d;)a.buffer.un(b.getUint8()),c++;a.status.hd+=d;0!==(this.Cc&1)&&(a.status.Dd?(a.status.Dd=!1,a.status.ae=!0):a.status.$d=!0);0===d&&(a.status.$d=!0)};sc.prototype={j:function(){}};var tc;
tc=function(a,b){this.RI=b.getUint16();this.xj=b.getUint8();a=b.getUint16();this.Uq=b.ja(a,!1);a=b.getUint16();0<a?this.Ir=b.ja(a,!1):this.Ir="";this.em=new qc(b)};tc.prototype={j:function(a){var b=new rc(this.RI,this.xj,this.Uq,this.Ir,this.em);a.g.Wi(b)}};var uc;uc=function(a,b){this.l=I.wh(b,!1)};uc.prototype={j:function(){},oc:function(){return this.l}};var vc;
vc=function(a,b,c,d){this.fp=b.getUint16();a=b.getUint16();this.Uq=b.ja(a,!1);a=b.getUint16();this.Gg=b.ja(a,!1);this.Fj=b.getUint16();this.Gj=[];for(c=0;c<this.Fj;++c)a=b.getUint16(),this.Gj[c]=b.ja(a,!1);this.ib=b.getUint32();this.lq=b.getUint8();b=new wc(!1,this.fp,this.Uq,this.Gg,this.Fj,this.Gj,this.ib,this.lq);d.g.Th.Vt(b)};vc.prototype={j:function(){}};var xc;
xc=function(a,b,c,d){this.fp=b.getUint16();a=b.getUint16();this.Gg=b.ja(a,!1);this.Fj=b.getUint16();this.Gj=[];for(c=0;c<this.Fj;++c)a=b.getUint16(),this.Gj[c]=b.ja(a,!1);this.ib=b.getUint32();this.lq=b.getUint8();b=new wc(!0,this.fp,"",this.Gg,this.Fj,this.Gj,this.ib,this.lq);d.g.Th.Vt(b)};xc.prototype={j:function(){}};var Ka;Ka=function(a,b,c){a=b.ga();this.l=I.ee(b);this.up=!0;c>=b.ga()-a+12&&(this.up=0===(b.getUint32()&1))};
Ka.prototype={j:function(a){a.km.Nr(this.l);this.up&&(a.Zf().clearRect(this.l.s,this.l.u,this.l.C(),this.l.B()),u.oM(a,this.l));a.g.ob.Vk(this.l)}};var yc;
yc=function(a,b){var c;this.Dv=b.getUint32();this.LF=b.getUint32();a=b.getUint16();this.Yw=b.ja(a,!1);a=b.getUint32();var d=b.getUint16();this.td=[];this.vx=!1;try{for(c=0;c<d;++c){var e=b.getUint32();var f=b.getUint32();this.td.push(this.Zm(b,e,f))}}catch(g){if(g instanceof TypeError)v.error("Invalid argumenttype for calling '"+this.Yw+"'; call will not be executed"),this.vx=!0;else throw g;}2===(a&2)?(this.wk=b.getUint32(),this.hr=b.getUint32()):this.hr=this.wk=null};
yc.prototype={j:function(a){if(!this.vx){var b=WebvisuExtensionMgr.QK(this.Dv,this.Yw,this.td);null!==b&&void 0!==b&&null!==this.hr&&null!==this.wk&&this.QF(b,a.g)}},Zm:function(a,b,c){var d=new zc;a=d.$y(a,c);return d.uA(b,a)},QF:function(a,b){var c=p.D(this.hr),d=P.D(c,b.v.Fa,b.getConfiguration().Hd()),e=new m(515,b.v.la,this.Dv,this.LF);try{this.RF(a,d),e.Fb(c)}catch(f){v.error("Failed to encode return value: "+a.toString()+". Result ignored")}b.dd(e)},RF:function(a,b){switch(this.wk){case 0:case 1:b.Na(a?
1:0);break;case 2:case 10:b.Na(a);break;case 6:b.Iy(a);break;case 3:case 11:b.Db(a);break;case 7:b.wc(a);break;case 8:b.Cd(a);break;case 9:throw new TypeError("Type LINT not supported");case 4:case 12:b.K(a);break;case 5:case 13:throw new TypeError("Type LWORD/ULINT not supported");case 14:b.wn(a);break;case 15:b.Pr(a);break;case 16:case 17:a=b.eb(a,17===this.wk);b.Zb(a);break;case 18:case 19:case 20:case 21:b.K(a);break;default:throw new TypeError("TypeCode + "+this.wk.toString()+" not supported");
}}};var Ac;Ac=function(a,b){this.Pd=b.getUint32();a=b.getUint16();this.hv=b.ja(a,!1);this.Sd=I.ee(b)};
Ac.prototype={j:function(a){var b=WebvisuExtensionMgr.BP(this.hv);if(null===b)v.warn("No native control named '"+this.hv+"' found");else{if(a.g.oa){var c=a.g.aa().va();var d=c.U;"function"===typeof c.UA&&c.UA(this.Pd);this.Sd=new M(0,0,this.Sd.T,this.Sd.ca,this.Sd.kd)}else d=a.Ok().canvas;WebvisuExtensionMgr.TK(b,this.Pd,this.Sd,d);a.g.oa&&(void 0!==d.Bt?(a=d.Bt,a.style.position="absolute",a.style.width="100%",a.style.height="100%"):2==d.childNodes.length&&(a=d.childNodes[1],a.style.position="absolute",
a.style.width="100%",a.style.height="100%"))}}};var Bc;Bc=function(a,b){this.Pd=b.getUint32();this.Sd=I.ee(b)};Bc.prototype={j:function(){WebvisuExtensionMgr.RK(this.Pd,this.Sd)}};var Cc;Cc=function(a,b){this.Pd=b.getUint32();a=b.getUint32();this.wJ=1===(a&1);this.lF=4===(a&4)};Cc.prototype={j:function(){this.lF?WebvisuExtensionMgr.ds(this.Pd):WebvisuExtensionMgr.SK(this.Pd,this.wJ)}};var Dc;
Dc=function(a,b){var c;b.getUint16();b.getUint16();this.sa=I.ee(b);var d=b.getUint32();this.Ig=0!==(d&1);this.xg=0!==(d&2);this.Ec=b.getUint16();var e=b.getUint16();this.Fc=b.ja(e,!1);this.Bl=b.getUint16();var f=b.getUint16();e=p.D(f);d=P.D(e,!0);for(c=0;c<f;++c)d.Na(b.getUint8());this.qj=this.cf=!1;25===a&&(d=b.getUint16(),this.cf=0!==(d&1),this.qj=2===(d&2));a=f;0<a?(this.qj&&(a/=2),b=O.D(e.Fd(),b.Oi(),b.Xi()),this.vm=b.ja(a,this.qj)):this.vm=""};
Dc.prototype={j:function(a){null!==a.g.ic&&a.g.ic.To();var b=window.document.createElement("input"),c=window.document.createElement("form"),d=this.yg(),e=a.Mk();b.value=this.vm;b.id="editcontrol-input";d=d.Ob(e.X,e.Y);u.jd(b,d);b.style.zIndex=300;b.style.textAlign=0!==(this.Bl&1)?"center":0!==(this.Bl&2)?"right":"left";b.style.fontFamily=this.Fc;b.style.fontSize=this.Ec+"px";this.Ig&&(b.style.fontStyle="italic");this.xg&&(b.style.fontWeight="bold");this.cf?(d=window.document.createElement("input"),
d.type="text",d.autocomplete="username",d.style.display="none",b.type="password",b.autocomplete="current-password",c.id="editcontrol-inputform",c.appendChild(d),c.appendChild(b),a.g.Qd.open(c,this.qj,a)):a.g.Qd.open(b,this.qj,a);b.select()},yg:function(){var a=this.sa.s+3,b=this.sa.T-9,c,d=u.pf(this.Ec);0!==(this.Bl&8)?c=this.sa.ca-d-9:c=0!==(this.Bl&4)?this.sa.u+(this.sa.B()-d)/2:this.sa.u+1;return new M(a,c,b,c+d)}};var Na;
(function(){var a=null,b=null;Na=function(){};Na.tB=function(c,d,e,f){null===a&&(a=[mc,ic,hc,lc,Ec,Fc,Gc,Ka,bc,Hc,Dc,lc,nc,mc,La,La,cc,oc,Ic,Ea,Jc,Kc,Kc,dc,Lc,Dc,Ac,yc,Bc,Cc,Mc,kc,Nc,Oc,Oc,Pc,fc,Qc,mc,mc,mc,Fa,Rc,Sc,gc,ic,lc,lc,Mc,Tc,Uc,Vc,Vc,Wc,Xc,Yc,Zc,$c,ad,hc,ic,ic,mc,mc,mc,mc,bd,tc,pc,sc,mc,cd,dd,ed,fd,gd,hd,id,jd,kd,ld,md,nd,od,mc,pd,qd,rd,sd,td,ud,vd,wd,ac,xd,mc,yd,mc,zd,Ad,Bd,Cd,Dd,Ed,Fd,$b,Gd,Hd,Id,Jd,Kd,Ld,Md,Nd,vc,xc,uc,Od,Pd,mc,Qd,Rd,Sd,Td]);null===b&&(b=[Ia,Ja,Ha]);return c<a.length?
new a[c](c,d,e,f):8192<=c&&9215>=c&&c-8192<b.length?new b[c-8192](c,d,e,f):new mc(c,d,e,f)}})();var I;
(function(){var a="0123456789ABCDEF".split("");var b=function(d){return a[d>>4&15]+a[d&15]};var c=function(d){return d&255};I=function(){};I.Ah=50;I.wt=0;I.el=1;I.$i=2;I.dl=3;I.xh=function(d){var e=d.getInt16();d=d.getInt16();return new t(e,d)};I.Qo=function(d){var e=d.getFloat32();d=d.getFloat32();return new t(e,d)};I.xu=function(d,e){var f=[],g;for(g=0;4>g;++g)f[g]=e(d);return f};I.St=function(d){return I.xu(d,I.xh)};I.RC=function(d){return I.xu(d,I.Qo)};I.SC=function(d){var e=[];e[0]=I.xh(d);e[2]=
I.xh(d);e[1]=new t(e[2].X,e[0].Y);e[3]=new t(e[0].X,e[2].Y);return e};I.LC=function(d){return d[1].Y!==d[0].Y||d[2].X!==d[1].X||d[3].Y<d[0].Y||d[2].X<d[1].X};I.vt=function(d,e){if(e&&I.LC(d)){e=Math.sqrt((d[0].X-d[1].X)*(d[0].X-d[1].X)+(d[0].Y-d[1].Y)*(d[0].Y-d[1].Y));var f=Math.sqrt((d[0].X-d[3].X)*(d[0].X-d[3].X)+(d[0].Y-d[3].Y)*(d[0].Y-d[3].Y));return new M(0,0,e,f,Ud.h((d[1].X-d[0].X)/e,(d[1].Y-d[0].Y)/e,(d[3].X-d[0].X)/f,(d[3].Y-d[0].Y)/f,d[0].X,d[0].Y))}return new M(d[0].X,d[0].Y,d[2].X,d[2].Y)};
I.wu=function(d,e,f){d=f(d);return I.vt(d,e)};I.wh=function(d,e){return I.wu(d,e,I.St)};I.QC=function(d){return I.wu(d,!0,I.RC)};I.vu=function(d,e){var f=e(d);d=e(d);return new M(f.X,f.Y,d.X,d.Y)};I.ee=function(d){return I.vu(d,I.xh)};I.PC=function(d){return I.vu(d,I.Qo)};I.yu=function(d,e){var f=d.getUint16(),g;var h=Array(f);for(g=0;g<f;++g)h[g]=e(d);return h};I.Ut=function(d){return I.yu(d,I.xh)};I.XC=function(d){return I.yu(d,I.Qo)};I.Kt=function(d){var e=[];0!==(d&1)&&e.push("italic");0!==(d&
2)&&e.push("bold");0!==(d&16)&&e.push("lighter");0!==(d&32)&&e.push("bolder");0!==(d&64)&&e.push("900");return e.join(" ")};I.Tt=function(d,e){return I.UC(d,e.g.getConfiguration().SemiTransparencyActive,e.Jd(),e.ti)};I.UC=function(d,e,f,g){var h=!0===e?I.ab(d.getUint32()):I.nb(d.getUint32());e=I.Kt(d.getUint32());var k=d.getUint16();var q=d.getUint16();d=d.ja(q,!1);f&&(f=k*g,1.01<g&&(f*=.95),k=Math.round(f));return new Vd(e+" "+k+'px "'+d+'"',d,k,e,h)};I.VC=function(d,e){return I.WC(d,e.g.getConfiguration().SemiTransparencyActive,
e.Jd(),e.ti)};I.WC=function(d,e,f,g){var h;var k=!0===e?I.ab(d.getUint32()):I.nb(d.getUint32());e=I.Kt(d.getUint32());var q=d.getUint16();var n=d.getUint16();var B=[];for(h=0;h<n;h++){var z=d.getUint16();B.push(d.ja(z,!1))}f&&(d=q*g,1.01<g&&(d*=.95),q=Math.round(d));g=u.AM(B);return new Vd(e+" "+q+"px "+g,g,q,e,k)};I.gl=function(d){return Math.PI*d/180};I.nb=function(d){return"#"+b(d>>16)+b(d>>8)+b(d)};I.ab=function(d){var e=d>>24&255;if(255===e)return"#"+b(d>>16)+b(d>>8)+b(d);e/=255;return"rgba("+
c(d>>16)+", "+c(d>>8)+", "+c(d)+", "+e+")"};I.Ho=function(d){return 1===d.lineWidth%2?.5:0};I.Eo=function(d){return 0<=d.indexOf("\n")||0<=d.indexOf("\r")};I.gh=function(d,e,f){return e>d.length-1?d:d.substr(0,e)+f+d.substr(e+1)};I.MC=function(d){var e,f;var g=d.length;var h=e=0;for(f=I.wt;e<g;)switch(f){case I.wt:switch(d[e]){case "\n":f=I.$i;break;case "\r":f=I.dl;break;default:f=I.el}break;case I.el:switch(d[e]){case "\n":f=I.$i;h!==e&&(d=I.gh(d,h,d[e]));h++;break;case "\r":f=I.dl;break;default:h!==
e&&(d=I.gh(d,h,d[e])),h++}e++;break;case I.$i:switch(d[e]){case "\n":h!==e&&(d=I.gh(d,h,d[e]));h++;break;case "\r":f=I.dl;break;default:f=I.el,h!==e&&(d=I.gh(d,h,d[e])),h++}e++;break;case I.dl:d=I.gh(d,h,"\n");h++;switch(d[e]){case "\n":f=I.$i;break;case "\r":d=I.gh(d,h,"\n");h++;f=I.$i;break;default:h!==e&&(d=I.gh(d,h,d[e])),h++,f=I.el}e++}return d.substring(0,h)};I.wl=function(d){return I.MC(d).split("\n")};I.Ot=function(d){return 0<=d.indexOf("\t")};I.fD=function(d){return d.split("\t")};I.og=
function(d,e,f){if(f){d=I.Wo(d,e);for(e=f=0;e<d.length;++e)f+=d[e].OP;return f}return d.measureText(e).width};I.BC=function(d,e,f,g){var h=d.getContext(),k=I.og(h,e,!0);if(void 0!==f&&void 0!==g&&k>f&&0!==(g&256)){var q=1,n=0,B=0,z=0,J=-1;for(g=0;g<e.length;++g){k=e.charAt(g);var ja=e.charAt(g+1);"\r"===k&&"\n"===ja?(++q,B=Math.max(n,B),n=0):(ja=h.measureText(k).width,n+ja<=f||0>=J?(n+=ja," "===k&&(z=n,J=g)):(++q,B=Math.max(n,z),n=n-z+ja))}B=Math.max(n,B);return new t(B,q*u.$a(d))}return new t(k,
u.$a(d))};I.Wo=function(d,e){e=I.fD(e);var f=[],g;for(g=0;g<e.length;++g){var h=d.measureText(e[g]).width;var k=Math.max(1,Math.ceil(h/I.Ah));g<e.length-1&&(h=k*I.Ah);f.push({text:e[g],jt:k,OP:h})}return f};I.xC=function(d){return null!==d.kd};I.LB=function(d,e,f,g,h,k,q,n,B){var z;0>n||0>B?z=Math.max(1,Math.min(g,h)/8):z=n;d.beginPath();d.moveTo(e+z,f);d.lineTo(e+g-z,f);d.quadraticCurveTo(e+g,f,e+g,f+z);d.lineTo(e+g,f+h-z+.5);d.quadraticCurveTo(e+g,f+h,e+g-z,f+h);d.lineTo(e+z+.5,f+h);d.quadraticCurveTo(e,
f+h,e,f+h-z+.5);d.lineTo(e,f+z);d.quadraticCurveTo(e,f,e+z+.5,f);d.closePath();k&&d.fill();q&&d.stroke()}})();var zd;zd=function(a,b){this.JH=b.getUint16();this.KH=b.getUint16();a=b.getUint16();this.ka=b.ja(a,!1)};zd.prototype={j:function(){var a=u.h("Message ID: {0}   Message description: {1}",this.KH,this.ka);switch(this.JH){case 0:break;case 1:v.info(a);break;case 2:v.warn(a);break;case 4:case 8:v.error(a);break;case 16:v.m(a);break;default:v.h("Unknown log level")}}};var Gd;
Gd=function(a,b){this.NH=1===b.getUint16()?"copy":"source-over"};Gd.prototype={j:function(a){a.getContext().globalCompositeOperation=this.NH}};var bd;bd=function(a,b){this.my=b.getUint16();this.Xf=b.getUint32();this.Zt=8;this.my===this.Zt&&this.Xf&&b.bl("utf-8")};
bd.prototype={j:function(a){switch(this.my){case 1:a=a.g.Uf;null!==a&&a.hP(this.Xf/100);break;case 2:a=a.g.Uf;null!==a&&a.aO(this.Xf/100);break;case 3:a=a.g.Uf;null!==a&&a.eP(!!this.Xf);break;case 4:a.g.getConfiguration().AutoFontReductionActive=!0;break;case 6:hb.prototype.sP(0!==this.Xf);break;case 7:a.g.getConfiguration().XhrSendTimeout=this.Xf;break;case this.Zt:a.g.getConfiguration().su=!!this.Xf,this.Xf&&(a.g.getConfiguration().ANSIStringEncoding="utf-8")}}};var Lc;
Lc=function(a,b){switch(b.getUint16()){case 0:this.bc="pointer";break;case 1:this.bc="default";break;case 2:this.bc="pointer";break;case 3:this.bc="wait";break;case 4:this.bc="text";break;case 5:this.bc="crosshair";break;case 6:this.bc="help";break;case 7:this.bc="col-resize";break;case 8:this.bc="row-resize";break;case 9:this.bc="nw-resize";break;case 10:this.bc="ne-resize";break;case 11:this.bc="w-resize";break;case 12:this.bc="s-resize";break;case 13:this.bc="pointer";break;default:this.bc="default"}};
Lc.prototype={j:function(a){a.g.oa?(a=a.g.aa().va(),null!==a&&(a=a.U,null!==a&&(a.style.cursor=this.bc))):a.Ok().canvas.style.cursor=this.bc}};var Ec;Ec=function(a,b,c,d){a=b.getUint32();b=b.getUint32();this.bq=1===(a&1);!0===d.g.getConfiguration().SemiTransparencyActive?this.Ib=I.ab(b):this.Ib=I.nb(b)};Ec.prototype={j:function(a){a.getState().Os(this.Ib,this.bq)},Hn:function(){return this.Ib}};var Gc;Gc=function(a,b,c,d){this.ad=I.Tt(b,d)};
Gc.prototype={j:function(a){a.getState().aB(this.ad.Font,this.ad.Size,this.ad.Color)},Zg:function(){return this.ad.Name},$g:function(){return this.ad.Size},Yg:function(){return this.ad.Color}};var Od;Od=function(a,b,c,d){this.ad=I.VC(b,d)};Od.prototype={j:function(a){a.getState().aB(this.ad.Font,this.ad.Size,this.ad.Color)},Zg:function(){return this.ad.Name},$g:function(){return this.ad.Size},Yg:function(){return this.ad.Color}};var Mc;
Mc=function(a,b,c,d){c=1===b.getUint32();var e=b.getUint32(),f=b.getUint32();if(30===a){var g=b.getUint32();var h=b.getUint32()/100;var k=b.getUint32()/100;var q=b.getUint32();var n=0===b.getUint32();b.getUint32();b=b.getUint32()}else g=b.getUint16(),h=b.getUint8()/100,k=b.getUint8()/100,q=b.getUint8(),n=!0,b=0;!0===d.g.getConfiguration().SemiTransparencyActive?(e=I.ab(e),f=I.ab(f),30===a&&(b=I.ab(b))):(e=I.nb(e),f=I.nb(f),30===a&&(b=I.nb(b)));this.OG=new oa(c,e,f,g,h,k,q,n,b)};Mc.prototype={j:function(a){a.getState().rO(this.OG)}};
var Rc;Rc=function(a,b,c,d){this.ib=b.getUint32();d.g.getConfiguration().SemiTransparencyActive=2===(this.ib&2);d.g.getConfiguration().IecSupportsCommonMiterLimit=8===(this.ib&8)};Rc.prototype={j:function(a){a=a.g.pa;null!==a&&(a.g.N.QA(1===(this.ib&1)),a.ko(0!==(this.ib&4)))}};var xd;
xd=function(a,b,c){a=b.ga();var d=b.getUint16();var e=b.ja(d,!1);d=b.getUint16();d=b.ja(d,!1);""!==e&&(d=e+"."+d);this.Gf=d;this.l=I.wh(b,!0);this.l.normalize();e=b.getUint32();this.qq=0!==(e&1);this.Cl=0!==(e&2);this.im=0!==(e&4);this.$p=0!==(e&128);this.ir=0!==(e&256);this.Hr=0!==(e&1024);this.pp=0!==(e&2048);this.Rg=0!==(e&4096);this.Ej=!1;c>=b.ga()-a+16&&(this.Ej=!0,this.cm=b.getFloat32(),this.dm=b.getFloat32());this.Ea=null};
xd.prototype={j:function(a){var b=a.g.aa().va(),c=this;this.fg=a;window.WebvisuInst.Hk(function(){var d=c.YE(c.fg);b.vO(d,c)})},oc:function(){return this.l.clone()},YE:function(a){var b=new Image;var c=a.Hf.Li(this.Gf);null===c?b.src="#":b.src=c;this.Rg&&(b.src+="?"+u.m());u.ap(b.src)&&(r.So()?this.pK():a.g.getConfiguration().WorkaroundDisableSVGAspectRatioWorkaround||(b.src+="#svgView(preserveAspectRatio(none))"));b.style.position="absolute";b.style.msUserSelect="none";b.style.WebkitUserSelect="none";
b.style.MozUserSelect="none";b.style.userSelect="none";return b},pK:function(){v.warn("Anisotropic scaling of Svg images in Safari is not supported because of known bugs in WebKit. The default (isotropic) scaling is used instead.")}};var Tc;Tc=function(a,b,c,d){var e;a=b.getUint16();var f=[];for(c=0;c<a;++c){var g=b.getUint16();f[c]=b.ja(g,!1)}this.Tb=[];a=b.getUint16();for(c=0;c<a;++c){var h=[];g=b.getUint16();for(e=0;e<g;++e)h[e]=f[b.getUint16()];this.Tb.push({ys:h.join(".").toLowerCase(),pA:b.getUint16()})}d.Hf.HN(this.Tb)};
Tc.prototype={j:function(){}};var Fc;
Fc=function(a,b,c,d){var e=b.ga(),f=b.getUint32(),g=b.getUint32();a=b.getUint16();var h=["butt","square","round"],k=["miter","bevel","round"];this.Xe=f;!0===d.g.getConfiguration().SemiTransparencyActive?this.Ib=I.ab(g):this.Ib=I.nb(g);this.na=a;c>=b.ga()-e+11?(c=b.getUint16(),this.He=h[0],0!==(c&0)&&(this.He=h[0]),0!==(c&1)&&(this.He=h[1]),0!==(c&2)&&(this.He=h[2]),c=b.getUint16(),this.Ie=k[0],0!==(c&0)&&(this.Ie=k[0]),0!==(c&1)&&(this.Ie=k[1]),0!==(c&2)&&(this.Ie=k[2]),b=b.getUint16(),d.g.getConfiguration().IecSupportsCommonMiterLimit?
this.qf=b/2:this.qf=1===b?1.7*a:2*b):(this.He=h[0],this.Ie=k[0],d.g.getConfiguration().IecSupportsCommonMiterLimit?this.qf=1.5:this.qf=1.7*a)};Fc.prototype={j:function(a){a.getState().Rs(this.na,this.Ib,this.Xe,this.He,this.Ie,this.qf)},C:function(){return this.na},Hn:function(){return this.Ib}};var Sc;
Sc=function(a,b,c){this.xa=[];var d=null;a=b.ga();for(var e,f;b.ga()-a<c-8;)e=b.getUint32(),e&2147483648?(f=b.getUint32(),d=I.ee(b),--d.ca,--d.T,d=new Wd(f,d,e&2147483647),this.xa.push(d)):null!==d&&(f=e&65535,e=(e&2147483647)>>16,f=b.ga()+f,this.GI(b,d,e),b.seek(f))};
Sc.prototype={j:function(a){var b=a.g.pa;if(a.g.oa){var c=a.g.aa().va();if(null!==c&&!(c instanceof zb)){var d=c.Vc;null!==d?d.Vs(this.xa):c.yO(a.g,Va.zB(this.xa,a.g));b.Fs(c);for(d=0;d<this.xa.length;++d)this.xa[d].TN(c),b.tn(this.xa[d],!0)}else if(null!==b)for(b.Fs(null),d=0;d<this.xa.length;++d)b.tn(this.xa[d],!1)}else if(null!==b)for(b.Ty(),d=0;d<this.xa.length;++d)b.tn(this.xa[d],!1);a.g.getConfiguration().DebugOnlyPrintTouchRectangles&&this.JF()},GI:function(a,b,c){switch(c){case 3:b.info().scroll().Pa().jh(new t(a.getInt32(),
a.getInt32()));b.info().scroll().Pa().ih(new t(a.getInt32(),a.getInt32()));b.Bi(R.zh);break;case 4:b.info().zoom().Pa().Ts(a.getFloat32());b.info().zoom().Pa().Ss(a.getFloat32());b.Bi(R.uu);break;case 5:b.info().VN(new M(a.getUint16(),a.getUint16(),a.getUint16(),a.getUint16()));break;case 6:c=a.getUint16();var d=a.getUint16(),e=!!a.getUint8(),f=!!a.getUint8();a=new t(a.getUint16(),a.getUint16());b.info().ZA(c,new Xd(d,e,f,a))}},JF:function(){var a;for(a=0;a<this.xa.length;++a){var b=this.xa[a];v.m(u.h("TouchRect ({0}): {1} (Flags: {2})",
b.id(),u.SM(b.ya),b.flags()));b.Z(R.zh)&&v.m(u.h("  ScrollLimits {0} -> {1}",u.Gb(b.info().scroll().Pa().uc),u.Gb(b.info().scroll().Pa().tc)));b.Z(R.uu)&&v.m(u.h("  Zoomlimits: {0} -> {1}",b.info().zoom().Pa().uc,b.info().zoom().Pa().tc))}}};var Ic;Ic=function(a,b){this.aE=1===b.getUint16()};Ic.prototype={j:function(a){this.aE?a.zA():a.mN()}};var ed;ed=function(a,b){this.Sz=b.getInt16();this.Tz=b.getInt16()};ed.prototype={j:function(a){a.getState().$O(this.Sz,this.Tz)}};var Pd;
Pd=function(a,b){a=b.getUint16();this.ne=b.ja(a,!1);this.Hj=b.getUint32();this.Ij=b.getUint16();this.cE=b.getUint32();this.Hl=b.getUint32();this.Vh=b.getUint32()};Pd.prototype={j:function(a){var b=a.g.ln;a=new Pa(this.ne,this.Ij,this.Hj,this.Hl,this.cE,this.Vh);null!==b&&b.kP(a)}};var Qc;Qc=function(a,b){a=b.getUint16();this.ka=b.ja(a,!1)};Qc.prototype={j:function(a){a.g.getConfiguration().ChangeWindowTitle&&(window.document.title=this.ka);a.g.Hc&&window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess.setVisualizationName(this.ka)}};
var Hc;Hc=function(a,b){this.l=I.ee(b)};Hc.prototype={j:function(a){a.getContext().restore();a.getState().apply()}};var Sd;Sd=function(a,b){this.Xb=b.getUint32()};Sd.prototype={j:function(a){a.g.oa&&(a=a.g.aa().va(),a instanceof Q&&a.LN(this.Xb))}};var Td;Td=function(a,b){this.aH=b.getUint16()};Td.prototype={j:function(a){a.g.oa&&(a=a.g.aa().va(),a instanceof Q&&a.MN(this.aH))}};var Cd;Cd=function(a,b){a=b.getInt16();this.sm=u.Oz(b,a)};
Cd.prototype={j:function(a){var b=this.sm.length-1,c=a.g.aa();for(a=0;a<=b;++a)c.dh()}};var id;id=function(a,b){this.za=b.getInt16()};id.prototype={j:function(a){a.g.aa().dh()}};var fd;fd=function(a,b){this.za=b.getInt16();a=b.getUint32();this.WG=0!==(a&1);this.mH=0!==(a&2);this.UG=0!==(a&4);this.VG=0!==(a&16);this.TJ=0!==(a&8);this.bE=0!==(a&32);this.GE=0===(a&64);this.rj=0===(a&128);this.ri=0!==(a&1024);this.Ma=new sa(a);this.zm=this.Ma.cl()};
fd.prototype={j:function(a){this.SI(a);var b=Va.BB(a.g,this.UG,this.VG,this.WG,this.mH,this.TJ,this.bE,this.GE);b.nO(this.Ma);a.g.aa().By(this.za,b);b instanceof Q&&(b.IA(this.rj),b.XA(this.ri));b.initialize()},SI:function(a){this.Ma.gd()||a.BA()}};var nd;nd=function(a,b){this.sc=b.getInt16()};nd.prototype={j:function(a){a.g.aa().va().mL()}};var kd;kd=function(a,b,c){this.sc=b.getInt16();this.bi=2<c?0!==(b.getUint32()&1):!1};
kd.prototype={j:function(a){var b=Va.yt(32767===this.sc,this.bi,!1);a.g.aa().va().Cy(this.sc,b)}};var Ad;Ad=function(a,b){this.sc=b.getInt16()};Ad.prototype={j:function(a){a=a.g.aa().va();32767===this.sc&&a.yA()}};var md;md=function(a,b){this.sc=b.getInt16()};md.prototype={j:function(a){a.g.aa().va().bB(this.sc)}};var ld;
ld=function(a,b,c){a=b.ga();this.bd=b.getInt16();this.cd=b.getInt16();this.na=b.getInt16();this.qa=b.getInt16();this.gJ=0!==b.getUint8();this.hJ=0!==b.getUint8();this.PD=b.getUint8();c>=b.ga()-a+9?(this.Zu=b.getInt16(),this.$u=b.getInt16(),this.Yu=b.getInt16(),this.Xu=b.getInt16()):(this.$u=this.Zu=0,this.Xu=this.Yu=-1)};ld.prototype={j:function(a){a.g.aa().va().HP(this.bd,this.cd,this.na,this.qa,this.gJ,this.hJ,this.PD,this.Zu,this.$u,this.Yu,this.Xu)}};var Dd;Dd=function(a,b){this.Jh=b.getInt16()};
Dd.prototype={j:function(a){var b=a.g.aa().va();(null!==b?b.aa():a.g.aa()).fO(this.Jh)}};var yd;yd=function(a,b){this.jf=b.getUint8()};yd.prototype={j:function(a){var b=a.g.aa().va();(null!==b?b.aa():a.g.aa()).Ys(this.jf)}};var Ed;Ed=function(a,b){this.dJ=b.getFloat32();this.eJ=b.getFloat32()};Ed.prototype={j:function(a){a.g.aa().va().nP(this.dJ,this.eJ)}};var pd;
pd=function(a,b){this.Cg=b.getInt16();a=b.getInt16();switch(a){case 0:case 5:this.Yh="solid";break;case 1:this.Yh="dashed";break;case 2:case 3:case 4:this.Yh="dotted"}this.oH=5===a;this.Xh=b.getUint32()};pd.prototype={j:function(a){var b=this.oH?I.ab(this.Xh&16777215):!0===a.g.getConfiguration().SemiTransparencyActive?I.ab(this.Xh):I.nb(this.Xh);a.g.aa().va().mO(this.Cg,this.Yh,b)}};var od;
od=function(a,b){this.ak=b.getInt32();this.bk=b.getInt32();this.Yj=b.getInt32();this.Zj=b.getInt32();this.Ne=b.getInt32();this.Oe=b.getInt32()};od.prototype={j:function(a){a.g.aa().va().Ws(this.ak,this.bk,this.Yj,this.Zj,this.Ne,this.Oe)}};var jd;jd=function(){};jd.prototype={j:function(a){a.g.aa().Ds();var b=a.getContext(),c=a.g.aa().va();b.save();b.setTransform(1,0,0,1,0,0);b.clearRect(0,0,b.canvas.width,b.canvas.height);b.restore();null!==c&&c.Sy();a.g.ob.Vk(this.l)}};var Bd;
Bd=function(a,b){a=b.getInt16();this.sm=u.Oz(b,a)};Bd.prototype={j:function(a){var b,c=this.sm.length-1;for(b=0;b<=c;b++)a.g.aa().Tk(this.sm[b])}};var hd;hd=function(a,b){this.za=b.getInt16()};hd.prototype={j:function(a){a.g.aa().Tk(this.za)}};var gd;gd=function(a,b){this.bd=b.getInt16();this.cd=b.getInt16();this.na=b.getInt16();this.qa=b.getInt16();this.Ad=b.getInt16();this.Bd=b.getInt16();this.Ug=b.getInt16();this.Vg=b.getInt16();this.gb=b.getInt16();this.$c=b.getInt16();this.ve=b.getUint32()};
gd.prototype={j:function(a){this.$c||(this.$c=0);var b=a.g.aa().va(),c="",d=this;0<this.$c&&(c="all "+this.$c+"ms ease");if(b.ta instanceof Cb&&b.ta.Hg)if(this.cd=this.bd=0,this.qa=this.na=1,this.ve=this.gb=this.Vg=this.Ug=this.Bd=this.Ad=0,u.Po(b.ba)){var e=document.getElementById("background");null!==e&&(this.na=e.width,this.qa=e.height)}else e=u.ml(a.g.aa(),b.ba.id),null!==e?(this.na=e.Te(),this.qa=e.Se()):v.h("Could not find parent node. Size will be 0");0!==(this.ve&4)?a.g.sn(function(){d.Av(b,
c)}):this.Av(b,c)},Av:function(a,b){a.update(this.bd,this.cd,this.na,this.qa,this.Ad,this.Bd,this.Ug,this.Vg,this.gb,this.ve,b)}};var Fd;Fd=function(a,b){this.bd=b.getInt16();this.cd=b.getInt16();this.na=b.getInt16();this.qa=b.getInt16();this.Ad=b.getInt16();this.Bd=b.getInt16();this.Ug=b.getFloat32();this.Vg=b.getFloat32();this.gb=b.getInt16();this.$c=b.getInt16();this.ve=b.getUint32()};
Fd.prototype={j:function(a){this.$c||(this.$c=0);var b=a.g.aa().va(),c="";0<this.$c&&(c="all "+this.$c+"ms ease");b.ta instanceof Cb&&b.ta.Hg&&(this.cd=this.bd=0,this.qa=this.na=1,this.ve=this.gb=this.Vg=this.Ug=this.Bd=this.Ad=0,u.Po(b.ba)?(a=document.getElementById("background"),null!==a&&(this.na=a.width,this.qa=a.height)):(a=u.ml(a.g.aa(),b.ba.id),null!==a?(this.na=a.Te(),this.qa=a.Se()):v.h("Could not find parent node. Size will be 0")));b.update(this.bd,this.cd,this.na,this.qa,this.Ad,this.Bd,
this.Ug,this.Vg,this.gb,this.ve,c)}};var td;td=function(a,b){this.za=b.getInt16();this.jf=b.getInt16()};td.prototype={j:function(a){a.g.oa&&a.g.ln.Wy();a.g.OK(this.za);a.g.Sc.Ys(this.jf)},Kn:function(){return this.za}};var wd;wd=function(a,b){this.za=b.getInt16()};wd.prototype={j:function(a){a.g.lL()}};var sd;
sd=function(a,b){this.za=b.getInt16();this.jf=b.getInt16();a=b.getUint32();this.Aa=0!==(a&1);this.ik=0!==(a&2);this.Km=0!==(a&4);this.o={kA:0!==(a&16),CM:0!==(a&32),DM:0!==(a&128),lA:0!==(a&64),ZP:0!==(a&512),Gy:0!==(a&1024),Or:0!==(a&2048),$P:0!==(a&256)};this.hm=0!==(a&8);this.Kr=0!==(a&4096);this.uE=0!==(a&8192);this.JE=0!==(a&16384);this.tH=0!==(a&32768);this.ri=0!==(a&65536)};
sd.prototype={j:function(a){a.g.Sc.Ys(this.jf);var b=Va.uB(this.Aa,this.Kr,a.g,this.JE),c=a.g.aa().va();c=c?c.OL():null;this.uE&&(c=u.fb().getBoundingClientRect(),this.ik=!0,c=new M(c.x,c.y,c.x+c.width,c.y+c.height));b.XA(this.ri);b.initialize(c,this.ik,this.Km,this.hm,a.Ka,this.o,this.tH);a.g.openDialog(this.za,b)}};var vd;vd=function(a,b){this.za=b.getInt16()};vd.prototype={j:function(a){a.g.pP(this.za)},Kn:function(){return this.za}};var ud;
ud=function(a,b){this.bd=b.getInt16();this.cd=b.getInt16();this.na=b.getInt16();this.qa=b.getInt16();this.$c=b.getInt16();a=b.getUint32();this.Ib=I.ab(a)};ud.prototype={j:function(a){a=a.g.aa().va();var b="";0<this.$c&&(b="transform "+this.$c+"ms ease, opacity "+this.$c+"ms ease");a.update(this.bd,this.cd,this.na,this.qa,0,0,0,0,0,null,b,this.Ib)}};var qc;
qc=function(a){this.Gg="";this.Nj=0;this.ep=[];this.Cc=0;if(null!==a){var b=a.getUint16(),c;a.ja(b,!1);b=a.getUint16();this.Gg=a.ja(b,!1);this.Nj=a.getUint16();for(c=0;c<this.Nj;++c)b=a.getUint16(),this.ep[c]=a.ja(b,!1);this.Cc=a.getUint32();a.getUint32()}};var Yd;Yd=function(){this.de=this.DP=0};var ab;ab=function(a){this.g=a;this.fc=[]};
ab.prototype={D:function(a,b){var c=this.pm(a);0<=c&&this.wv(c);a=new Zd(this.g,a,b);this.fc.push(a);return a},JB:function(a){a instanceof U&&this.wv(this.BG(a.Ub.id))},wv:function(a){0<=a&&(null!==this.fc[a].dc&&null!==this.fc[a].O()&&this.fc[a].dc.removeChild(this.fc[a].O()),this.fc.splice(a,1))},pm:function(a){for(var b=0;b<this.fc.length;b++)if(this.fc[b].Kn()===a)return b;return-1},BG:function(a){for(var b=0;b<this.fc.length;b++)if(this.fc[b].Vu===a)return b;return-1},className:function(){return"FileTransferButtonsStorage"}};
var rc;rc=function(a,b,c,d,e){this.it=a;this.direction=b;this.eh=c;this.qA=d;this.Ac=e;this.oo=0;this.uh=new Yd;this.nh=new Yd;this.status=new V;this.Eb=this.buffer=null;this.GA=u.m();this.jA=!1};var wc;wc=function(a,b,c,d,e,f,g,h){this.stream=a;this.Mt=b;this.MM=c;this.Yz=d;this.sz=e;this.filters=f;this.flags=g;this.WL=h};var $a;$a=function(a){this.g=a;this.Bm=-1;this.fc=[]};
$a.prototype={Vt:function(a){this.Bm=a.Mt;var b=this.pm(this.Bm);0>b?this.fc.push(a):this.fc[b]=a},Jt:function(a){a=this.pm(a);return 0>a?null:this.fc[a]},$C:function(){this.Bm=-1},pm:function(a){for(var b=0;b<this.fc.length;b++)if(this.fc[b].Mt===a)return b;return-1}};var V;V=function(){this.we=!0;this.$d=this.ae=this.Dd=!1;this.kh=this.hd=this.result=0;this.Qb=V.wa};V.wa=1;V.J=2;V.Gb=3;V.m=4;V.$a=19;V.h=20;var Rd;Rd=function(a,b){this.pH=0!==b.getUint8();b.getUint8();b.getUint8()};
Rd.prototype={j:function(a){a.g.oa&&(a.BA(),a=a.g.aa().va(),this.pH&&(a.ZO(),a.gB()))}};var Qd;Qd=function(a,b){this.qG=b.getInt16();this.tw=0!==b.getUint8()};Qd.prototype={j:function(a){if(a.g.oa){var b=a.g.aa().va();a.oO(b,this.qG,this.tw);b.ye()&&(b.eB(),b.VO(this.tw))}}};var rd,$d;$d={oD:0,WP:1,bu:2,bD:3,PB:4,COLOR:5};
rd=function(a,b,c,d){var e;c=a=0;var f=d.g.Yb.qb,g=new zc;this.xd=d;this.Pd=b.getUint32();d=b.getUint16();this.td=[];for(var h=0;h<d;++h){var k=b.getUint32();var q=b.getInt8();if(q===$d.bD){var n=e=b.getUint8();b.md(g.uL(n))}else if(q===$d.PB||q===$d.COLOR)n=e=b.getUint16(),b.md(8);else if(q===$d.bu){e=n=this.Lx(b);b.md(8);a=b.getInt32();c=b.getInt32();var B=new ae(a,c)}else q===$d.oD&&(e=n=this.Lx(b),b.md(8));q===$d.bu?a<=c?(k=this.Zm(b,e,k,n,f,B),B.setData(k),this.td.push(B)):this.td.push(0):this.td.push(this.Zm(b,
e,k,n,f,B));this.td.push(e);this.td.push(n)}};rd.prototype={j:function(a){var b=a.g.Yb.IL(this.Pd);a=a.g.aa().va();3!==this.td.length&&5!==this.td.length||a.dN(b,this.td[1]);a.DK(b,this.td)},Zm:function(a,b,c,d,e,f){var g=new zc;a=g.$y(a,c);return g.Un(b,a,this.xd,d,e,f)},Lx:function(a){var b=a.getUint8();var c=a.getUint8()<<8;b|=c;c=a.getUint8()<<16;return b|c}};var be;be=function(a,b){this.da=b;this.Oj=null;this.bH=a;this.sw=!1;this.rp=[]};
be.prototype={tO:function(a){this.Oj=a;this.sw=!0},Cz:function(){return null===this.Oj?null:this.Oj.contentWindow},vP:function(a){this.rp.push(a)},FN:function(a){this.rp.forEach(function(b){a(b)});this.rp=[]}};var Hd;Hd=function(a,b){var c;a=b.getUint16();this.Ye={};for(c=0;c<a;c++){var d=b.getUint16();d=b.ja(d,!1);var e=b.getUint32();this.Ye[d]=e}};Hd.prototype={j:function(a){a=a.g.Yb;for(var b in this.Ye)this.Ye.hasOwnProperty(b)&&a.cN(b,this.Ye[b])}};var ce;ce=function(){this.dk={}};
ce.prototype={Zr:function(a){return"EmbeddedBrowser"===a?window[a+"ElementFactory"].createElement():void 0!==this.dk[a]?this.dk[a]:null},fill:function(a,b){this.dk={};try{var c=JSON.parse(a)}catch(h){throw new TypeError("Expected json containing a array.");}if(!(c instanceof Array))throw new TypeError("Expected json containing a array.");var d;for(d=0;d<c.length;d++){a=c[d];if(!(a instanceof Object))throw new TypeError("Expected entry to be an object.");if("string"!==typeof a.name)throw new TypeError("Expected name to be a string.");
if("string"!==typeof a.wrapper)throw new TypeError("Expected wrapper to be a string.");if(!(a.js instanceof Array))throw new TypeError("Expected js to be an Array.");if(!(a.css instanceof Array))throw new TypeError("Expected css to be an Array.");if(!u.nl(a.additionalFiles))throw new TypeError("Expected additionalFiles to be an Object.");var e=this.Mz(a.js);var f=this.Mz(a.css);var g=this.NL(a.additionalFiles);if(void 0!==this.dk[a.name])throw new TypeError(u.h("There is already a native element named {0}.",
a.name));this.dk[a.name]=new Nb(a.wrapper,e,f,g,b)}},NL:function(a){var b={},c;for(c in a){if("string"!==typeof c)throw new TypeError("Only strings are expected in the object.");if("string"!==typeof a[c])throw new TypeError("Only strings are expected in the object.");b[c]=a[c]}return b},Mz:function(a){var b=[],c;for(c=0;c<a.length;c++){var d=a[c];if("string"!==typeof d)throw new TypeError("Only strings are expected in the array.");b.push(d)}return b}};var qd;qd=function(a,b){this.Pd=b.getUint32()};
qd.prototype={j:function(a){var b=a.g.Yb,c=b.BL(this.Pd),d=b.Zr(c);null!==d?(a=a.g.aa().va(),a.DO(b,d)):v.warn("The HTML5 element '"+c+"' can not be used because it hasn't been downloaded. View Messages in the Development system for more details.")}};var Xa;Xa=function(a){this.Gv=new ce;this.Jp=new Mb;this.$j=new Mb;this.qb=new de;this.Bj=[];this.g=a;var b=this;window.addEventListener("message",function(c){b.h(c)})};
Xa.prototype={Zr:function(a){return this.Gv.Zr(a)},getConfiguration:function(){return this.g.getConfiguration()},cN:function(a,b){this.Jp.Cs(a,b)},eN:function(a,b){this.$j.Cs(a,b)},BL:function(a){return this.Jp.Hz(a)},IL:function(a){return this.$j.Hz(a)},Dz:function(a){return this.$j.ns(a)},h:function(a){if(null!==a&&void 0!==a&&u.nl(a))if("null"!==a.origin)v.h("Unhandled message: Wrong origin. "+a.origin);else if(null!==a.data&&void 0!==a.data&&u.nl(a.data)){var b=this.AL(a.data);if(null===b)v.h("Unhandled message: Unable to determine element for postMessage.");
else{a=a.data;var c=a.promiseId;if(null!==a.data&&void 0!==a.data&&u.nl(a.data))if(null!==c&&"number"!==typeof c)v.warn("Promise Id is not of type number.");else if(this.Bw(a)||b.da.Ma.gd())try{this.Pk(a,c,b)}catch(d){v.warn("Error at handling the followig message: \n\r"+JSON.stringify(a.data,null,4)),v.warn(d.stack),this.Jc(b.da,T.mg(c,d))}else v.h("Messages from preview visualizations are not supported.");else v.h("Invalid message: Wrong data.")}}else v.h("Invalid message: Wrong data.");else v.h("Invalid message.")},
Pk:function(a,b,c){var d=this;var e=u.Qy(a.data.param);v.info(u.h("Message from element {0}: {1}",null!==c.Oj?c.Oj.id:c.da.Ub.id,JSON.stringify(a.type)));this.Bw(a)&&this.SL(c.da);"SetValue"===a.type?ee.wa(this,c.da,b,a.data,e):"CheckValue"===a.type?ee.m(this,c.da,b,a.data,e):"SendMouseEvent"===a.type?"string"===typeof a.data.type&&"number"===typeof a.data.xPos&&"number"===typeof a.data.yPos&&c.da.CN(a.data.type,a.data.xPos,a.data.yPos):"GetTypeDesc"===a.type?"number"===typeof a.data.typeId&&(a=this.qb.ce(a.data.typeId),
this.Jc(c.da,T.yB(b,void 0!==a&&0!==a,a))):"SetScrollRange"===a.type?"string"===typeof a.data.methodName&&"number"===typeof a.data.startIndex&&"number"===typeof a.data.endIndex&&"number"===typeof a.data.scrollDimension&&(b=this.$j.ns(a.data.methodName),e=c.da,e.DN(this.g,b,a.data.startIndex,a.data.endIndex,a.data.scrollDimension)):"CheckComplexValue"===a.type?ee.h(this,c.da,b,a.data,e):"SetComplexValue"===a.type?ee.J(this,c.da,b,a.data,e):"GetAdditionalFileName"===a.type?fe.Pk(c.da.rd,b,a.data,function(f){d.Jc(c.da,
f)}):"GetImagePoolFileName"===a.type?ge.Pk(this.g.V().Hf,b,a.data,function(f){d.Jc(c.da,f)}):"GetImageByFilename"===a.type?he.J(c.da.rd,b,a.data,function(f){d.Jc(c.da,f)}):"GetImageById"===a.type?he.m(c.da.rd,this.g.V().Hf,b,a.data,function(f){d.Jc(c.da,f)}):"GetTextFile"===a.type?he.wa(c.da.rd,b,a.data,function(f){d.Jc(c.da,f)}):"GetBinaryFile"===a.type&&he.h(c.da.rd,b,a.data,function(f){d.Jc(c.da,f)})},unregister:function(a){if(a.rd instanceof Nb){var b=this.Jn(a);null!==b?this.Bj.splice(this.Bj.indexOf(b),
1):v.warn("No element data found for "+a.Ub.id)}},Jn:function(a){if(!(a instanceof zb))return null;var b=this.Bj.find(function(c){return c.da===a});return void 0===b?null:b},AL:function(a){if(void 0===a||null===a||"string"!==typeof a.identification)return null;var b=this.Bj.find(function(c){return c.bH===a.identification});return void 0===b?null:b},SL:function(a){var b=a.Aj,c=this,d=this.Jn(a);d.tO(b);d.FN(function(e){c.FA(d.Cz(),e)})},fill:function(a){this.Gv.fill(a,this.g.getConfiguration().DebugHTML5);
this.Jp=new Mb;this.$j=new Mb},FA:function(a,b){this.GN(a,{type:b.type(),data:b})},Jc:function(a,b){a=this.Jn(a);a.sw?this.FA(a.Cz(),b):a.vP(b)},GN:function(a,b){a.postMessage(b,"*")},register:function(a,b){b.rd instanceof Nb&&(null!==this.Jn(b)&&this.unregister(b),this.Bj.push(new be(a,b)))},An:function(a,b){return(new ie(this.qb)).JK(a,b)},Dn:function(a,b){var c=new ie(this.qb);return Number(c.Fy(a,b))},BN:function(a,b,c,d,e,f,g,h){var k=d,q=16,n=new zc;var B=n.Mi(c,this.qb);c=n.getType(c,this.qb);
4<B||c===W.Bh||c===W.pg?(k=1,q+=B):c===W.Zo&&(k=this.Wv(d));B=p.D(q);q=P.D(B,this.g.v.Fa,this.g.getConfiguration().Hd());q.Cd(e);q.Cd(f);q.Cd(g);q.Cd(h);this.Bn(q,c,d);a.iJ(b,k,B)},EN:function(a,b,c,d){var e=d,f=null,g=new zc;var h=g.Mi(c,this.qb);c=g.getType(c,this.qb);if(4<h||c===W.Bh||c===W.pg){f=p.D(h);var k=P.D(f,this.g.v.Fa,this.g.getConfiguration().Hd());e=1}else c===W.Zo&&(e=this.Wv(d));this.Bn(k,c,d);a.nJ(b,e,f)},LK:function(a,b){var c=new zc;var d=c.Mi(a,this.qb);a=c.getType(a,this.qb);
if(4<d||a===W.Bh||a===W.pg)var e=P.D(p.D(d),this.g.v.Fa,this.g.getConfiguration().Hd());this.Bn(e,a,b)},GK:function(a,b,c,d,e,f){var g=16,h=new zc;var k=h.Mi(a,this.qb);a=h.getType(a,this.qb);if(4<k||a===W.Bh||a===W.pg)g+=k;k=P.D(p.D(g),this.g.v.Fa,this.g.getConfiguration().Hd());k.Cd(c);k.Cd(d);k.Cd(e);k.Cd(f);this.Bn(k,a,b)},Bn:function(a,b,c){switch(b){case W.eu:a.Hy(c);break;case W.lu:case W.iu:a.Jy(c);break;case W.fu:a.Pr(c);break;case W.Bh:case W.pg:b=a.eb(c,b===W.pg),a.Zb(b)}},Wv:function(a){var b=
p.D(4),c=this.g.v.Fa;P.D(b,c).wn(a);return O.D(b.Fd(),c).getUint32()},Bw:function(a){return"WebvisuSupportLoaded"===a.type}};var Id;Id=function(a,b){var c;a=b.getUint16();this.Ye={};for(c=0;c<a;c++){var d=b.getUint16();d=b.ja(d,!1);var e=b.getUint32();this.Ye[d]=e}};Id.prototype={j:function(a){a=a.g.Yb;for(var b in this.Ye)this.Ye.hasOwnProperty(b)&&a.eN(b,this.Ye[b])}};var Mb;Mb=function(){this.Hq={};this.mw={}};
Mb.prototype={Cs:function(a,b){void 0===this.Hq[a]&&(this.Hq[a]=b,this.mw[b]=a)},ns:function(a){return this.Hq[a]},Hz:function(a){return this.mw[a]}};var ie,W,je,ke;ie=function(a){this.Cr=a};
ie.prototype={JK:function(a,b){var c=u.Qy(b);try{if("string"===typeof b){if(a===W.Bh||a===W.pg)return this.Su(b,81);var d=this.Cr.ce(a);if(d instanceof le)return this.Su(b,d.getSize())}c&&(b=this.Fy(a,b));var e="number"===typeof b;if("bigint"===typeof b||e){if(e&&isNaN(b))return!1;d=this.Cr.ce(a);return d instanceof me?b>=d.LowerBorder&&b<=d.UpperBorder?!0:!1:this.Aw(b,a)?!0:this.yH(b,a)?!0:!1}}catch(f){return!1}},Su:function(a,b){return null===a||void 0===a||a.length>b-1?!1:!0},Aw:function(a,b){switch(b){case W.kD:case W.jD:return this.ZL(a);
case W.lD:case W.tD:return this.mM(a);case W.uD:case W.sD:return this.kM(a);case W.nD:case W.rD:case W.ju:case W.$t:case W.au:case W.ku:return this.jM(a);case W.iu:case W.lu:case W.gu:case W.cu:case W.du:case W.hu:return this.lM(a);case W.qD:return this.hM(a);case W.pD:return this.aM(a);case W.mD:return this.$L(a);case W.eu:return this.cM(a);case W.Zo:return this.fM(a);case W.fu:return this.dM(a);default:return!1}},yH:function(a,b){return(b=this.Cr.ce(b))&&b instanceof ne?this.Aw(a,b.ed()):!1},ZL:function(a){return 0===
a||1===a},mM:function(a){return a>=je.vC&&a<=je.uC},kM:function(a){return a>=je.rC&&a<=je.qC},jM:function(a){return a>=je.pC&&a<=je.oC},lM:function(a){var b=BigInt(ke.tC),c=BigInt(ke.sC);var d=a;"bigint"!==typeof a&&(d=BigInt(a));return d>=b&&d<=c},hM:function(a){return a>=je.nC&&a<=je.mC},aM:function(a){return a>=je.fC&&a<=je.eC},$L:function(a){return a>=je.dC&&a<=je.cC},cM:function(a){var b=BigInt(ke.hC),c=BigInt(ke.gC);var d=a;"bigint"!==typeof a&&(d=BigInt(a));return d>=b&&d<=c},fM:function(a){return a>=
je.lC&&a<=je.kC},dM:function(a){return a>=je.jC&&a<=je.iC},Fy:function(a,b){switch(a){case W.ju:case W.ku:return Number(b.valueOf());case W.$t:case W.au:return this.vK(b.valueOf());case W.gu:case W.cu:case W.du:case W.hu:return this.wK(BigInt(b.valueOf()))}return b},vK:function(a){return Math.floor(Number(a)/1E3)},wK:function(a){return BigInt(a)*BigInt(1E6)}};
W={kD:0,jD:1,lD:2,uD:3,nD:4,iu:5,qD:6,pD:7,mD:8,eu:9,tD:10,sD:11,rD:12,lu:13,Zo:14,fu:15,Bh:16,pg:17,ju:18,$t:19,au:20,ku:21,gu:37,cu:46,du:47,hu:48};je={vC:0,uC:255,rC:0,qC:65535,pC:0,oC:4294967295,nC:-128,mC:127,fC:-32768,eC:32767,dC:-2147483648,cC:2147483647,lC:-3.402823466E38,kC:3.402823466E38,jC:-1.7976931348623157E308,iC:1.7976931348623157E308};ke={tC:"0",sC:"0xffffffffffffffff",hC:"-9223372036854775808",gC:"9223372036854775807"};var Nb;
Nb=function(a,b,c,d,e){this.Nv=a;this.Am=b;this.Bp=c;this.ID=d;this.Sl=e;void 0===this.Sl&&(this.Sl=!1);this.Sl||this.Am.push("webvisu-support.js")};
Nb.prototype={YK:function(a,b,c,d){var e=document.createElement("iframe"),f=Ob.h();b=this.ME(f,b);e.setAttribute("src","about:blank");e.setAttribute("seamless","");e.setAttribute("sandbox","allow-scripts");e.setAttribute("style","border:0; width:100%; height:100%");e.setAttribute("csp",b);if(!this.Sl)return this.XK(f,a,b,e,c,d);var g="<!DOCTYPE html>"+u.h('<html><style nonce="{0}">* { margin:0px;}</style><head>',f);g+=u.h('<meta http-equiv="Content-Security-Policy" content="{0}">',b);g+=u.h('<script language="javascript" src="webvisu-support.js" nonce="{0}">\x3c/script>',
f);0!==this.Am.length&&this.Am.forEach(function(h){g+=u.h('<script language="javascript" src="{0}" nonce="{1}">\x3c/script>',h,f)});0!==this.Bp.length&&this.Bp.forEach(function(h){g+=u.h('<link rel="stylesheet" href="{0}" nonce="{1}">',h,f)});g+="</head><body>";g+=u.h('<script nonce="{2}">window["CdsInfo"] = {"TargetOrigin": "{0}", "Identification": "{3}"};window["CdsInfo"]["Wrapper"] = new {1}({4}, {5});\x3c/script>',window.location.origin,this.Nv,f,a,c,d);g+="</body></html>";e.srcdoc=g;return e},
XK:function(a,b,c,d,e,f){var g=this;var h="<!DOCTYPE html><html><head>";h+=u.h('<style nonce="{0}">* { margin:0px;}</style>',a);h+=u.h('<meta http-equiv="Content-Security-Policy" content="{0}">',c);c=g.Am.map(function(k){return g.rL(k,a,g)});c=g.Bp.map(function(k){return g.qL(k,a,g)}).concat(c);Promise.all(c).then(function(k){var q=k.pop();h+=q;k.forEach(function(n){h+=n});h+="</head><body>";h+=u.h('<script nonce="{2}">window["CdsInfo"] = {"TargetOrigin": "{0}", "Identification": "{3}"}; window["CdsInfo"]["Wrapper"] = new {1}({4}, {5});\x3c/script>',
window.location.origin,g.Nv,a,b,e,f);h+="</body></html>";d.srcdoc=h;return d}).catch(function(k){console.warn("Error when loading the additional files. Details:"+k)});d.srcdoc="<!DOCTYPE html><head></head></html>";return d},rL:function(a,b,c){return new Promise(function(d,e){c.hs(a,"text").then(function(f){f=u.h('<script language="javascript" nonce="{1}">{0}\x3c/script>',f,b);d(f)},function(f){e(f)})})},qL:function(a,b,c){return new Promise(function(d,e){c.hs(a,"text").then(function(f){f=u.h('<style nonce="{1}"> {0} </style>',
f,b);d(f)},function(f){e(f)})})},hs:function(a,b){return new Promise(function(c,d){var e=new XMLHttpRequest;e.responseType=b;e.open("GET",a);e.onload=function(){4===e.readyState&&200===e.status?c(e.response):(console.error(e.statusText),d({oN:a,status:e.status,statusText:e.statusText}))};e.onerror=function(){console.error(e.statusText);d({oN:a,status:e.status,statusText:e.statusText})};e.send()})},h:function(a){if("string"!==typeof a)return null;a=a.toLowerCase();a=this.ID[a];return null===a||void 0===
a||"string"!==typeof a?null:a},ME:function(a,b){a=u.h("'nonce-{0}' 'unsafe-inline' {1}",a,b);var c=u.h("'self' blob: {0} {1} data:",window.location.origin,b);b=u.h("'unsafe-inline' 'self' {0} data:",b);return u.h("default-src {0}; object-src 'none'; script-src {0}; img-src {1}; style-src {2}; style-src-elem {2}; base-uri 'none';",a,c,b)}};var fe;fe=function(){};
fe.Pk=function(a,b,c,d){if("number"===typeof b&&"string"===typeof c.originalAdditionalFileName&&null!==a&&void 0!==a)c=c.originalAdditionalFileName,a=a.h(c),d(T.wB(b,null!==a,c,a));else throw new TypeError("Message is not in the correct format.");};var he;he=function(){};he.J=function(a,b,c,d){var e=a.h(c.filename);null===e?d(T.mg(b,"handleGetImageMessage Error: Could not resolve requested filename: "+c.filename)):this.Pl(a,b,"GetImageMessageResult","blob",e,d)};
he.m=function(a,b,c,d,e){"string"===typeof d.imagePoolId&&(b=b.Li(d.imagePoolId),null===b?e(T.mg(c,"handleGetImageByIdMessage Error: Could not resolve requested filename: "+d.imagePoolId)):this.Pl(a,c,"GetImageByIdMessageResult","blob",b,e))};he.wa=function(a,b,c,d){var e=a.h(c.filename);null===e?d(T.mg(b,"handleGetTextFileMessage Error: Could not resolve requested filename: "+c.filename)):this.Pl(a,b,"GetTextFileMessageResult","",e,d)};
he.h=function(a,b,c,d){var e=a.h(c.filename);null===e?d(T.mg(b,"handleGetBinaryFileMessage Error: Could not resolve requested filename: "+c.filename)):this.Pl(a,b,"GetBinaryFileMessageResult","blob",e,d)};he.ZF=function(a,b,c){if(void 0===c||""===c)c="text";return a.hs(b,c)};
he.Pl=function(a,b,c,d,e,f){"string"!==typeof e&&f(T.mg(b,"Message is not in the correct format. Expected "+e+" to be of type string. Is: "+typeof e));this.ZF(a,e,d).then(function(g){f(new CommonAdditionalFileResultMessage(b,!0,c,e,g))},function(g){f(T.mg(b,g))})};var ge;ge=function(){};ge.Pk=function(a,b,c,d){if("number"===typeof b&&"string"===typeof c.imageId)c=c.imageId,a=a.Li(c),d(T.xB(b,""!==a,c,a));else throw new TypeError("Message is not in the correct format.");};var ee;ee=function(){};
ee.Pn=function(a){return"boolean"===typeof a?a?1:0:a};ee.wa=function(a,b,c,d,e){var f;if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var g=a.Dz(d.methodName);var h=b.Ln(d.methodName);var k=this.Pn(d.param);if(f=a.An(h,k)){e&&(k=a.Dn(h,k));try{a.EN(b,g,h,k)}catch(q){f=!1}}a.Jc(b,T.FB(c,f,d.param))};
ee.m=function(a,b,c,d,e){var f;if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var g=b.Ln(d.methodName);var h=this.Pn(d.param);if(f=a.An(g,h)){e&&(h=a.Dn(g,h));try{a.LK(g,h)}catch(k){f=!1}}a.Jc(b,T.sB(c,f,d.param))};
ee.J=function(a,b,c,d,e){if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.index0||"number"!==typeof d.index1||"number"!==typeof d.index2||"number"!==typeof d.indexCount||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var f=a.qb;var g=a.Dz(d.methodName);var h=f.ce(b.Ln(d.methodName));var k=this.Pn(d.param);if(h instanceof oe||h instanceof pe){var q=
h.ed(f,d.indexCount,d.index0,d.index1,d.index2);h=a.An(q,k)}else h=!1;if(h){e&&(k=a.Dn(q,k));try{a.BN(b,g,q,k,d.index0,d.index1,d.index2,d.indexCount)}catch(n){h=!1}}a.Jc(b,T.EB(c,h,d.param,d.indexCount,d.index0,d.index1,d.index2))};
ee.h=function(a,b,c,d,e){if("number"!==typeof c||"string"!==typeof d.methodName||"number"!==typeof d.indexCount||"number"!==typeof d.index0||"number"!==typeof d.index1||"number"!==typeof d.index2||"number"!==typeof d.param&&"bigint"!==typeof d.param&&"boolean"!==typeof d.param&&"string"!==typeof d.param&&!e)throw new TypeError("Message is not in the correct format.");var f=a.qb;var g=f.ce(b.Ln(d.methodName));var h=this.Pn(d.param);if(g instanceof oe||g instanceof pe){var k=g.ed(f,d.indexCount,d.index0,
d.index1,d.index2);g=a.An(k,h)}else g=!1;if(g){e&&(h=a.Dn(k,h));try{a.GK(k,h,d.index0,d.index1,d.index2,d.indexCount)}catch(q){g=!1}}a.Jc(b,T.rB(c,g,d.param,d.indexCount,d.index0,d.index1,d.index2))};var CheckComplexValueResultMessage;CheckComplexValueResultMessage=function(){this.index2=this.index1=this.index0=this.indexCount=this.value=this.result=this.promiseId=null};CheckComplexValueResultMessage.prototype={type:function(){return"CheckComplexValueResult"}};var CheckSimpleValueResultMessage;
CheckSimpleValueResultMessage=function(){this.value=this.result=this.promiseId=null};CheckSimpleValueResultMessage.prototype={type:function(){return"CheckSimpleValueResult"}};var CommonAdditionalFileResultMessage;CommonAdditionalFileResultMessage=function(a,b,c,d,e){this.promiseId=a;this.result=b;this._type=c;this.requestFilename=d;this.responseContent=e};CommonAdditionalFileResultMessage.prototype={type:function(){return this._type?this._type:"CommonAdditionalFileResult"}};var Kb;
Kb=function(){this.error=this.promiseId=null};Kb.prototype={type:function(){return"ErrorMessage"}};var GetAdditionalFileNameResultMessage;GetAdditionalFileNameResultMessage=function(){this.resultingAdditionalFileName=this.originalAdditionalFileName=this.result=this.promiseId=null};GetAdditionalFileNameResultMessage.prototype={type:function(){return"GetAdditionalFileNameResult"}};var GetImagePoolFileNameResultMessage;
GetImagePoolFileNameResultMessage=function(){this.resultingFileName=this.imageId=this.result=this.promiseId=null};GetImagePoolFileNameResultMessage.prototype={type:function(){return"GetImagePoolFileNameResult"}};var GetTypeDescResultMessage;GetTypeDescResultMessage=function(){this.typeDesc=this.result=this.promiseId=null};GetTypeDescResultMessage.prototype={type:function(){return"GetTypeDescResult"}};var MethodCallMessage;MethodCallMessage=function(){this.params=this.methodName=null};
MethodCallMessage.prototype={type:function(){return"MethodCall"}};var ResizeMessage;ResizeMessage=function(){this.height=this.width=null};ResizeMessage.prototype={type:function(){return"Resize"}};var SetComplexValueResultMessage;SetComplexValueResultMessage=function(){this.index2=this.index1=this.index0=this.indexCount=this.value=this.result=this.promiseId=null};SetComplexValueResultMessage.prototype={type:function(){return"SetComplexValueResult"}};var SetSimpleValueResultMessage;
SetSimpleValueResultMessage=function(){this.value=this.result=this.promiseId=null};SetSimpleValueResultMessage.prototype={type:function(){return"SetSimpleValueResult"}};var qe;qe=function(a,b){this.MinRange=a;this.MaxRange=b};qe.prototype={};var ae;ae=function(a,b){this.Data=0;this.StartIndex=a;this.EndIndex=b;this.ScrollDimension=0};ae.prototype={setData:function(a){this.Data=a}};var de;de=function(){this.eq={}};de.prototype={Wk:function(a,b){void 0===this.eq[b]&&(this.eq[b]=a)},ce:function(a){return this.eq[a]}};
var Nd;Nd=function(a,b,c,d){a=d.g.Yb;this.id=b.getUint32();this.size=b.getUint32();this.type=b.getUint32();b=new le(this.size,this.type);a.qb.Wk(b,this.id)};Nd.prototype={j:function(){}};var Kd;Kd=function(a,b,c,d){a=d.g.Yb;this.id=b.getUint32();this.size=b.getUint32();this.CP=b.getUint32();c=b.getUint16();this._dimensions=[];for(var e=0;e<c;++e){d=b.getUint32();var f=b.getUint32();this._dimensions.push(new qe(d,f))}b=new oe(this.size,this.CP,this._dimensions);a.qb.Wk(b,this.id)};Kd.prototype={j:function(){}};
var Jd;Jd=function(a,b,c,d){a=d.g.Yb;d=new zc;this.id=b.getUint32();this.Py=b.getUint32();c=b.getUint16();this._enumValues={};for(var e=0;e<c;++e){var f=b.getUint16();var g=b.ja(f,!1);f=b.Id();this._enumValues[g]=f}b=new ne(this.Py,d.Mi(this.Py,a.qb),this._enumValues);a.qb.Wk(b,this.id)};Jd.prototype={j:function(){}};var Ld;
Ld=function(a,b,c,d){a=d.g.Yb;this.id=b.getUint32();this.size=b.getUint32();c=b.getUint32();this.ev=[];for(var e=0;e<c;++e){d=b.getUint32();var f=b.getUint32();this.ev.push(new re(d,f))}b=new pe(this.size,this.ev);a.qb.Wk(b,this.id)};Ld.prototype={j:function(){}};var Md;Md=function(a,b,c,d){a=d.g.Yb;this.id=b.getUint32();this.type=b.getUint32();this.vM=b.Gd();this.JP=b.Gd();b=new me(this.type,this.vM,this.JP);a.qb.Wk(b,this.id)};Md.prototype={j:function(){}};var re;
re=function(a,b){this.TypeId=a;this.Offset=b};re.prototype={};var zc;zc=function(){};
zc.prototype={iM:function(a){return 0<=a&&48>=a},getType:function(a,b){if(this.iM(a))return a;var c=b.ce(a);if(c instanceof oe)return this.getType(c.ed(),b);if(c instanceof le)return this.getType(c.getType(),b);if(c instanceof ne)return this.getType(c.ed(),b);throw new TypeError("Cannot determine type for "+a.toString());},uL:function(a){switch(a){case 4:case 8:case 12:case 14:case 18:case 21:case 19:case 20:return 4;case 5:case 13:case 9:case 15:return 8}return 0},$y:function(a,b){var c=p.D(b),d=
P.D(c,!0),e;for(e=0;e<b;++e)d.Na(a.getUint8());a=O.D(c.Fd(),a.Oi(),a.Xi());return new Ma(a)},Un:function(a,b,c,d,e,f){var g=e.ce(d);void 0===g&&(g=e.ce(a));if(g instanceof oe||g instanceof pe)return g.Zy(b,c,e,f);if(998===d)return I.Tt(b,c);if(997===d)return a=b.getUint32(),I.ab(a);g instanceof ne?a=g.ed():g instanceof le?a=g.getType():g instanceof me&&(a=g.getType());return this.uA(a,b)},uA:function(a,b){switch(a){case 0:case 1:return 0!==b.getUint8();case 2:case 10:return b.getUint8();case 6:return b.getInt8();
case 3:case 11:return b.getUint16();case 7:return b.getInt16();case 8:return b.getInt32();case 9:return b.Gd();case 4:case 12:return b.getUint32();case 5:case 13:return b.Id();case 14:return b.getFloat32();case 15:return b.getFloat64();case 16:case 17:return b.ze(17===a);case 18:return b.getUint32();case 19:case 20:case 21:return b=b.getUint32(),this.LE(b,a);case 26:case 28:return b;default:throw new TypeError("TypeCode + "+a.toString()+" not supported");}},Mi:function(a,b){switch(a){case 0:case 1:case 2:case 10:case 6:return 1;
case 3:case 11:case 7:return 2;case 8:return 4;case 9:return 8;case 4:case 12:return 4;case 5:case 13:return 8;case 14:return 4;case 15:return 8;case 16:return 81;case 17:return 162;case 18:case 19:case 20:case 21:return 4;default:b=b.ce(a);if(b instanceof oe||b instanceof pe||b instanceof le||b instanceof ne)return b.getSize();throw new TypeError("TypeCode + "+a.toString()+" cannot determine type size");}},ed:function(a,b,c,d,e){if(1E3<=a){var f=b.ce(a);if(f instanceof oe||f instanceof pe)return f.ed(b,
c,d,e,0);if(f instanceof le)return a;if(f instanceof ne)return f.ed();throw new TypeError("SystemTypeClass: wrong base type id");}return a},LE:function(a,b){a=21===b?new Date(a):new Date(1E3*a);if(19===b)a.setHours(0,0,0,0);else if(21===b)return b=new Date(0),b.setHours(a.getHours()),b.setMinutes(a.getMinutes()),b.setSeconds(a.getSeconds()),b.setMilliseconds(a.getMilliseconds()),b;return a}};var oe;oe=function(a,b,c){this.Size=a;this.BaseTypeId=b;this.Dimensions=c};
oe.prototype={getSize:function(){return this.Size},ed:function(a,b,c,d,e){if(1<=this.Dimensions.length)return(new zc).ed(this.BaseTypeId,a,b-1,d,e);throw new TypeError("TypeDescArray with no dimensions");},Zy:function(a,b,c,d){if(1<=this.Dimensions.length){var e=this.Dimensions[0],f=[],g=0,h=new zc,k=a.ga();var q=h.Mi(this.BaseTypeId,c);var n=e.MinRange;e=e.MaxRange;void 0!==d&&d instanceof ae&&(n=d.StartIndex,e=d.EndIndex);for(d=n;d<=e;d++)if(2<=this.Dimensions.length){var B=this.Dimensions[1],z=
[];for(n=B.MinRange;n<=B.MaxRange;n++)a.seek(k+g*q),z.push(h.Un(this.BaseTypeId,a,b,this.BaseTypeId,c)),g++;f.push(z)}else a.seek(k+g*q),f.push(h.Un(this.BaseTypeId,a,b,this.BaseTypeId,c)),g++;return f}throw new TypeError("TypeDescArray with no dimensions");}};var ne;ne=function(a,b,c){this.BaseTypeId=a;this.lB=b;this.EnumValues=c};ne.prototype={getSize:function(){return this.lB},ed:function(){return this.BaseTypeId}};var Vd;
Vd=function(a,b,c,d,e){this.Font=a;this.Name=b;this.Size=c;this.Style=d;this.Color=e};Vd.prototype={Ii:function(){return this.Font},getSize:function(){return this.Size},Hn:function(){return this.Color}};var le;le=function(a,b){this.Size=a;this.TypeId=b};le.prototype={getSize:function(){return this.Size},getType:function(){return this.TypeId}};var pe;pe=function(a,b){this.Size=a;this.Components=b};
pe.prototype={getSize:function(){return this.Size},ed:function(a,b,c,d,e){if(0<this.Components.length&&0<b)return(new zc).ed(this.Components[c].TypeId,a,b-1,d,e);throw new TypeError("TypeDescStruct with no components");},Zy:function(a,b,c,d){if(0<this.Components.length){var e=[],f=new zc,g=a.ga();var h=0;var k=this.Components.length-1;void 0!==d&&d instanceof ae&&(h=d.StartIndex,k=d.EndIndex);for(d=h;d<=k;d++)a.seek(g+this.Components[d].Offset),e.push(f.Un(this.Components[d].TypeId,a,b,this.Components[d],
c));return e}throw new TypeError("TypeDescStruct with no components");}};var me;me=function(a,b,c){this.TypeId=a;this.LowerBorder=b;this.UpperBorder=c};me.prototype={getType:function(){return this.TypeId}};var Jc;Jc=function(){};Jc.prototype={j:function(){v.warn("The functionality ExecuteClientProgram is not possible in the webvisualization.")}};var Kc;Kc=function(){};Kc.prototype={j:function(){v.warn("The functionality OpenFileDialog is not possible in the webvisualization.")}};var se;
se=function(a,b){this.sa=a;this.np=this.op=-1;this.Op=!1;this.Qv=this.Pv=1;b.Jd()&&(this.sa=b.yh(this.sa));this.Ea=null};
se.prototype={j:function(a){var b=new M(0,0,document.documentElement.clientWidth,document.documentElement.clientHeight);var c=new jc(0,b);var d=!0===a.g.getConfiguration().SemiTransparencyActive?I.ab(this.np):I.nb(this.np);a.getState().Rs(1,d,0,"","",0);a.getState().Os(d,!1);c.Di(a);c=new jc(0,this.sa);d=!0===a.g.getConfiguration().SemiTransparencyActive?I.ab(this.op):I.nb(this.op);a.getState().Rs(1,d,0,"","",0);a.getState().Os(d,!1);c.Di(a);null!==this.Ea&&this.Ea.loaded()&&(a.$z()&&this.Op?this.zj(a,
this.Ea,b):this.zj(a,this.Ea,this.sa))},JN:function(a){this.op=a},IN:function(a){this.np=a},KN:function(a){this.Ea=a},gO:function(a){this.Op=a},hO:function(a){this.Pv=a},iO:function(a){this.Qv=a},zj:function(a,b,c){if(a.Jd()){var d=b.Nn();if(a.$z()&&this.Op){var e=this.Pv;var f=this.Qv}else e=a.bn,f=a.ti;d=new w(Math.round(e*d.L),Math.round(f*d.$));c=u.Lo(c,d,this);a.getContext().drawImage(b.Mn(),c.s,c.u,c.C(),c.B())}else a.getContext().drawImage(b.Mn(),c.s,c.u)}};var te;
te=function(a,b,c){this.sa=a;this.Ju=this.on=!0;this.A=window.document.createElement("button");this.hc=null!==c&&void 0!==c?c:b.Ka.canvas.parentNode;this.Jx=0;this.Hl=1;this.uf=this.Me="#000000";this.lc=-1;this.za="";this.JI=!1};
te.prototype={j:function(a){a=a.Mk();var b=null,c=this;b=this.sa.Ob(a.X,a.Y);u.jd(this.A,b);this.JI&&(this.A.style.position="relative",this.A.style.left="0px",this.A.style.top="0px");this.on&&(this.A.style.background="transparent",this.A.style.color="transparent");this.Ju?(this.A.style.borderRadius=u.h("{0}px",this.Jx),this.A.style.borderWidth=u.h("{0}px",this.Hl),this.A.style.borderColor=this.Me===this.uf?this.Me:u.h("{0} {0} {0} {0}",this.Me,this.Me,this.uf,this.uf)):this.A.style.border="none";
this.A.tabIndex=this.lc;this.A.addEventListener("keydown",function(d){c.gv(d)});this.hc.appendChild(this.A)},gv:function(a){if(32===a.keyCode||13===a.keyCode){var b=null;a.stopPropagation();r.Hb()?b=new PointerEvent("pointerup"):b=new MouseEvent("mouseup");this.A.dispatchEvent(b)}},xc:function(){return this.A},Be:function(a){this.sa=a},setRadius:function(a){this.Jx=a},QN:function(a){this.Hl=a},PN:function(a){this.Me=a},ON:function(a){this.uf=a},kg:function(a){this.lc=a},NN:function(a){this.Ju=a},
Ky:function(a){this.za=a;this.A.id=this.za},Kn:function(){return this.za},remove:function(){if(null!==this.A){var a=this;this.A.removeEventListener("keydown",function(b){a.gv(b)});this.A.parentElement===this.hc&&this.hc.removeChild(this.A)}},RL:function(){return null!==this.A?null!==this.A.parentElement:!1}};var Zd;Zd=function(a,b,c){this.g=a;this.za=b;this.l=c;this.sg=this.Gp=this.dc=this.Ub=null;this.lc=G.J;this.Vu="";this.jw=1;this.Nq=!1;this.Br=this.jb=-1;this.ek=null};
Zd.prototype={j:function(a){if(null===this.sg){var b=a.g.aa().va();if(null!==b&&(this.l=b.oc(),0===this.jw?this.dc=b.getParent():(this.dc=b.O(),this.Gp=b.U,this.l=new M(0,0,this.l.C(),this.l.B())),this.Vu=b.Ub.id,null!==this.dc)){var c=window.document.createElement("div");c.id="FTButtonElement_"+this.za;0===this.jw&&u.Po(this.dc)&&(this.dc=b.O(),this.dc=window.document.body);this.dc.appendChild(c);this.Ub=c}this.le()}null!==this.sg&&this.sg.j(a)},O:function(){return this.Ub},Kn:function(){return this.za},
le:function(){this.PE();var a=document.getElementById("FTButton_"+this.za);if(null===a||void 0===a)this.SE(this.za),this.RE(this.za,this.l)},RE:function(a,b){var c=this;this.sg=this.nk(a,b);this.sg.xc().addEventListener(r.Hb()?"pointerup":"mouseup",function(d){c.Fq(d,a)},!1);this.sg.xc().addEventListener(r.Hb()?"pointerdown":"mousedown",function(d){c.Fq(d,a)},!1);this.sg.xc().addEventListener(r.Hb()?"pointermove":"mousemove",function(d){c.Fq(d,a)},!1)},SE:function(a){var b=this;var c=window.document.createElement("input");
c.id="FTButtonFile_"+a;c.type="file";c.style.display="none";c.addEventListener("change",function(d){b.VH(d,a)},!1);this.Ub.appendChild(c)},PE:function(){if(null===this.Ub){var a="FTButtonElement_"+this.za;var b=document.getElementById(a);if(null===b||void 0===b)b=window.document.createElement("div"),b.id=a,a=window.document.body,null!==a&&void 0!==a&&(a.appendChild(b),this.dc=a);this.Ub=b}},Fq:function(a,b){var c=1;var d=this.g.Th.Jt(b);null!==d&&(c=d.WL,1!==c&&2!==c&&6!==c&&(c=1));d=this.uy(a.type);
if("pointerup"===d){if(this.YJ(a),1===c||6===c)this.jx(b),this.g.Sh.co(-123)}else"pointerdown"===d?(this.wF(a),2===c&&(this.jx(b),this.g.Sh.co(-123))):"pointermove"===d&&this.OH(a,b)},jx:function(a){var b=document.getElementById("FTButtonFile_"+a),c=null,d=null,e=this;d=d=null;null!==b&&void 0!==b&&(c=this.g.Th.Jt(a),d=this.g.i,null!==c&&null===d&&(this.Nq=!1,this.Br=0,this.$m(),this.ek=function(){e.XH()},window.addEventListener("focus",this.ek,!1),d=new qc(null),d.Gg=c.Yz,d.Nj=c.sz,d.ep=c.filters,
d.Cc=c.flags,d=c.stream?new rc(0,3,c.Yz,"",d):new rc(a,1,c.MM,"",d),d.jA=!0,d.status.we=!1,this.g.Wi(d),b.accept=ue.h(c.sz,c.filters),b.click()))},VH:function(a){this.Nq=!0;ue.m(a,this.g);this.$m()},XH:function(){var a=this;this.jb=window.setInterval(function(){a.oG()},250)},oG:function(){if(this.Nq)this.$m();else if(this.Br++,3<this.Br){this.$m();var a=this.g.i;null!==a&&(a.status.Qb=V.m,v.info("File Transfer cancelled"))}},$m:function(){null!==this.ek&&(window.removeEventListener("focus",this.ek,
!1),this.ek=null);clearInterval(this.jb)},wF:function(a){this.Up(a,"mousedown")},YJ:function(a){this.Up(a,"mouseup")},OH:function(a,b){this.Up(a,"mousemove");this.rJ(b)},Up:function(a,b){a.preventDefault();a.stopPropagation();var c=null===this.Gp?this.g.fb():this.Gp;null!==c&&void 0!==c&&this.BI(b,c,a.pageX,a.pageY)},rJ:function(a){a=document.getElementById("FTButton_"+a);null!==a&&void 0!==a&&(a.style.cursor="pointer")},nk:function(a,b){b=new te(b,this.g.V(),this.Ub);b.Ky("FTButton_"+a);b.NN(!1);
b.kg(this.lc++);return b},BI:function(a,b,c,d){var e={bubbles:!0,cancelable:"mousemove"!==a,view:window,detail:0,screenX:c,screenY:d,clientX:c,clientY:d,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:b};if(r.Hb()){a=this.uy(a);var f={};this.eH(f,e,b);f.pointerType="mouse";a=new PointerEvent(a,f)}else a=new MouseEvent(a,e);this.fF(a,c,d,b)},eH:function(a,b,c){a.isPrimary=!0;a.bubbles=b.bubbles;a.cancelable=b.cancelable;a.view=b.view;a.detail=b.detail;a.screenX=b.screenX;a.clientX=
b.clientX;a.screenY=b.screenY;a.clientY=b.clientY;a.ctrlKey=b.ctrlKey;a.altKey=b.altKey;a.shiftKey=b.shiftKey;a.metaKey=b.metaKey;a.button=b.button;a.relatedTarget=c;a.pointerId=-123},fF:function(a,b,c,d){Object.defineProperty(a,"layerX",{value:b});Object.defineProperty(a,"layerY",{value:c});a.button=1;a.which=1;d.dispatchEvent(a)},uy:function(a){switch(a){case "touchmove":case "mousemove":return"pointermove";case "touchup":case "mouseup":return"pointerup";case "touchdown":case "mousedown":return"pointerdown";
default:return a}}};var ve;ve=function(a,b,c){this.sa=a;this.Ec=12;this.vm="";this.Wb="HCENTER";this.Cb="VCENTER";this.Fc="";this.xg=this.Ig=!1;this.cf=b;this.A=window.document.createElement("input");this.hc=c.Ka.canvas.parentNode;this.Dg=this.Jf=null;this.lc=-1;this.Tq="";this.sf="#FFFFFF";this.Ib="#000000"};
ve.prototype={j:function(a){var b=this.yg();a=a.Mk();b=b.Ob(a.X,a.Y);u.jd(this.A,b);this.A.style.zIndex=300;this.A.style.textAlign="HCENTER"===this.Wb?"center":"RIGHT"===this.Wb?"right":"left";this.A.style.fontFamily=this.Fc;this.A.style.fontSize=this.Ec+"px";this.Ig&&(this.A.style.fontStyle="italic");this.xg&&(this.A.style.fontWeight="bold");this.cf?(b=document.getElementsByTagName("input"),0===b.length?(this.Dg=window.document.createElement("input"),this.Dg.type="text",this.Dg.autocomplete="username",
this.Dg.style.display="none",b=this.Dg):b=b[0],this.Jf=window.document.createElement("form"),this.A.type="password",this.A.autocomplete="current-password",this.Jf.appendChild(b),this.Jf.appendChild(this.A),this.hc.appendChild(this.Jf)):(this.A.autocomplete="username",this.hc.appendChild(this.A));""!==this.Tq&&(this.A.placeholder=this.Tq);this.A.style.border="none";this.A.style.backgroundColor=this.sf;this.A.style.color=this.Ib;this.A.tabIndex=this.lc},xc:function(){return this.A},jg:function(a,b){this.Fc=
a;this.Ec=b},al:function(a,b){this.Wb=a;this.Cb=b},Be:function(a){this.sa=a},kg:function(a){this.lc=a},OO:function(a){this.Tq=a},Ui:function(a){this.sf=a},setColor:function(a){this.Ib=a},remove:function(){null!==this.Jf?(null!==this.Dg&&this.Jf.removeChild(this.Dg),null!==this.A&&this.Jf.removeChild(this.A),this.hc.removeChild(this.Jf)):null!==this.A&&this.A.parentElement===this.hc&&this.hc.removeChild(this.A)},yg:function(){var a=this.sa.s+3,b=this.sa.T-9,c,d=u.pf(this.Ec);"BOTTOM"===this.Cb?c=this.sa.ca-
d-9:c="VCENTER"===this.Cb?this.sa.u+(this.sa.B()-d)/2:this.sa.u+1;return new M(a,c,b,c+d)}};var we;we=function(a){this.l=a;this.up=!0};we.prototype=Object.create(Ka.prototype);we.prototype.constructor=we;var xe;xe=function(a,b){this.sa=a;this.Ec=12;this.vm="";this.Wb="HCENTER";this.Cb="VCENTER";this.Fc="";this.xg=this.Ig=!1;this.A=window.document.createElement("select");this.hc=b.Ka.canvas.parentNode;this.lc=-1;this.sf="#FFFFFF";this.Ib="#000000";this.Cw=[];this.Wx=""};
xe.prototype={j:function(a){var b=this.yg(),c=this;a=a.Mk();b=b.Ob(a.X,a.Y);u.jd(this.A,b);this.A.style.zIndex=300;this.A.style.textAlign="HCENTER"===this.Wb?"center":"RIGHT"===this.Wb?"right":"left";this.A.style.fontFamily=this.Fc;this.A.style.fontSize=this.Ec+"px";this.Ig&&(this.A.style.fontStyle="italic");this.xg&&(this.A.style.fontWeight="bold");this.Cw.forEach(function(d){var e=window.document.createElement("option");e.value=d;e.text=d;e.selected=c.Wx.toUpperCase()===d.toUpperCase()?!0:!1;c.A.appendChild(e)});
this.hc.appendChild(this.A);this.A.style.border="none";this.A.style.backgroundColor=this.sf;this.A.style.color=this.Ib;this.A.tabIndex=this.lc},xc:function(){return this.A},jg:function(a,b){this.Fc=a;this.Ec=b},al:function(a,b){this.Wb=a;this.Cb=b},Be:function(a){this.sa=a},kg:function(a){this.lc=a},Ui:function(a){this.sf=a},setColor:function(a){this.Ib=a},AO:function(a){this.Cw=a},$A:function(a){this.Wx=a},remove:function(){null!==this.A&&this.A.parentElement===this.hc&&this.hc.removeChild(this.A)},
yg:function(){var a=this.sa.s+3,b=this.sa.T-9,c,d=u.pf(this.Ec);"BOTTOM"===this.Cb?c=this.sa.ca-d-9:c="VCENTER"===this.Cb?this.sa.u+(this.sa.B()-d)/2:this.sa.u+1;return new M(a,c,b,c+d)}};var ye;ye=function(a,b){this.sa=a;this.Ec=12;this.Wb="HCENTER";this.Cb="VCENTER";this.Fc="";this.xg=this.Ig=!1;this.A=window.document.createElement("div");this.tg=null;this.hc=b.Ka.canvas.parentNode;this.lc=-1;this.sf="#FFFFFF";this.Ib="#000000";this.Fr=this.ka="";this.bx=!0};
ye.prototype={j:function(a){var b=this.yg();a=a.Mk();b=b.Ob(a.X,a.Y);u.jd(this.A,b);this.A.style.zIndex=300;this.A.style.textAlign="HCENTER"===this.Wb?"center":"RIGHT"===this.Wb?"right":"left";this.A.style.fontFamily=this.Fc;this.A.style.fontSize=this.Ec+"px";this.Ig&&(this.A.style.fontStyle="italic");this.xg&&(this.A.style.fontWeight="bold");""!==this.Fr?(this.tg=window.document.createElement("a"),this.tg.innerText=this.ka,this.tg.href=this.Fr,this.bx&&(this.tg.target="_blank"),this.A.appendChild(this.tg)):
this.A.innerText=this.ka;this.hc.appendChild(this.A);this.A.style.backgroundColor=this.sf;this.A.style.color=this.Ib;this.A.tabIndex=this.lc},xc:function(){return this.A},mP:function(a,b){this.Fr=a;this.bx=b},jg:function(a,b){this.Fc=a;this.Ec=b},al:function(a,b){this.Wb=a;this.Cb=b},Be:function(a){this.sa=a},kg:function(a){this.lc=a},Ui:function(a){this.sf=a},setColor:function(a){this.Ib=a},pc:function(a){this.ka=a},remove:function(){null!==this.A&&(null!==this.tg.href&&this.A.removeChild(this.tg),
this.hc.removeChild(this.A))},yg:function(){var a=this.sa.s+3,b=this.sa.T-9,c,d=u.pf(this.Ec);"BOTTOM"===this.Cb?c=this.sa.ca-d-9:c="VCENTER"===this.Cb?this.sa.u+(this.sa.B()-d)/2:this.sa.u+1;return new M(a,c,b,c+d)}};var Ia;Ia=function(a,b){a=b.getUint16();this.Uj=b.ja(a,!1);this.kk=b.getUint16()};Ia.prototype={j:function(a){a=a.g.Mb;null!==a&&(a.zO(this.Uj),a.QO(this.kk))}};var Ha;Ha=function(a,b){this.QH=b.getUint32()};Ha.prototype={j:function(a){a.g.Mb.NA(this.QH)}};var Ja;
Ja=function(a,b){a=b.getUint16();this.kn=b.ja(a,!1)};Ja.prototype={j:function(a){a=a.g.Mb;null!==a&&a.jP(this.kn)}};var Xc;Xc=function(a,b){this.sc=b.getUint16();this.na=b.getUint16();this.qa=b.getUint16();this.ib=b.getUint32();this.jB=1};
Xc.prototype={j:function(a){var b=null,c=u.kl(this.na-1,this.qa-1).getContext("2d");c.fillStyle="white";c.fillRect(0,0,this.na-1,this.qa-1);this.ib&this.jB&&(b=u.kl(this.na-1,this.qa-1).getContext("2d"),b.fillStyle="white",b.fillRect(0,0,this.na-1,this.qa-1));a.Yd.tK(this.sc,new Oa(c,b,new w(this.na,this.qa)))}};var Yc;Yc=function(a,b){this.sc=b.getUint16()};Yc.prototype={j:function(a){a.Yd.lN(this.sc);a.g.pa.xa.YL(this.sc)}};var ad;
ad=function(a,b){this.SJ=b.getUint32();this.ZG=b.getUint16();this.rm=b.getUint16();this.Cq=!!b.getUint8();this.Dq=!!b.getUint8();this.Lq=new t(b.getUint16(),b.getUint16())};ad.prototype={j:function(a){var b=new Xd(this.rm,this.Cq,this.Dq,this.Lq);a.g.pa.xa.ML(this.SJ).info().ZA(this.ZG,b)}};var Zc;Zc=function(a,b){this.sc=b.getUint16()};Zc.prototype={j:function(a){a.Yd.PM(this.sc)}};var $c;$c=function(a,b){this.sc=b.getUint16()};
$c.prototype={j:function(a){var b=a.Yd.eo(a.Yd.Mr());!b.gi&&a.Sg&&b.Ql.drawImage(b.Ka.canvas,0,0);b.gi||a.Sg||b.xO(!0);a.Yd.NM()}};var Wc;Wc=function(){};Wc.prototype={j:function(a){var b=a.g.wb,c=a.zr,d;var e=p.D(2*c.count());var f=P.D(e,a.g.v.Fa);for(d=0;d<c.count();++d)f.wc(c.Tn(d));a=new m(519,a.g.v.la,0,0);a.Fb(e);b.push(a)}};var Pc;Pc=function(){};
Pc.prototype={j:function(a){var b=a.g.wb,c=a.jn,d;var e=p.D(4*c.count());var f=P.D(e,a.g.v.Fa);for(d=0;d<c.count();++d)f.wc(c.C(d)),f.wc(c.B(d));a=new m(518,a.g.v.la,0,0);a.Fb(e);b.push(a)}};var Vc;Vc=function(a,b){var c=b.getUint16();this.ka=b.ja(c,52===a)};Vc.prototype={j:function(a){a.getContext().font=a.getState().Ii();a.zr.sK(this.ka)}};var Oc;Oc=function(a,b){var c=b.getUint16();this.ka=b.ja(c,34===a)};Oc.prototype={j:function(a){a.getContext().font=a.getState().Ii();a.jn.Dy(this.ka)}};var Uc;
Uc=function(a,b){b.getUint32();b.getUint32()};Uc.prototype={j:function(a){a.zr.clear()}};var Nc;Nc=function(a,b){b.getUint32();b.getUint32()};Nc.prototype={j:function(a){a.jn.clear()}};var ze;ze=function(a,b){this.OJ=b.getUint32();this.ZD=b.getInt16();b.getInt16()};ze.prototype={j:function(a){a.getContext().font=a.getState().Ii();a.jn.Dy(this.ka,this.ZD,this.OJ)}};var cd;cd=function(a,b,c){var d=b.getUint16();this.ka=b.ja(d,!1);ze.call(this,a,b,c)};cd.prototype=Object.create(ze.prototype);
cd.prototype.constructor=cd;var dd;dd=function(a,b,c){var d=b.getUint16();this.ka=b.ja(d,!0);ze.call(this,a,b,c)};dd.prototype=Object.create(ze.prototype);dd.prototype.constructor=dd;var Za;Za=function(){this.mu="";this.hl=E.m;this.ru="";this.tl=this.yo=!1;this.Do=E.m;this.Yt=u.m();this.Uj="";this.kk=0};
Za.prototype={zO:function(a){this.Uj=a},QO:function(a){this.kk=a},jP:function(a){this.mu=a},NA:function(a){this.hl=a},gM:function(){return""===this.Uj||0===this.kk?!1:!0},wP:function(a){this.ru=a?location.protocol+"//"+this.Uj+":"+this.kk:""}};var Ae;Ae=function(a,b){this.g=a;this.Dc=b};
Ae.prototype={j:function(){var a=this.g.Za(),b=this.g.getConfiguration(),c=this.g.kb();c.nA(b.PlcAddress,b.CommBufferSize,b.UseLocalHost);a.rb(c.mb(),this)},Pb:function(a){a=(new Xb(a,!0,this.g.ub.tb)).sA();a instanceof na?(this.g.v.Go=a.Go,this.g.I(this.Dc,0)):this.g.error("Checking for demo mode failed (1): "+a)},Qr:function(){return!1},S:function(a){this.g.error("Checking for demo mode failed (2): "+a)},className:function(){return"CheckDemoModeState"}};var Be;
Be=function(a){this.g=a;this.Eq=!0;this.iy=this.Lr=0};
Be.prototype={j:function(){var a=this.g.Za(),b=this.g.kb();b.jL();this.iy=u.m();a.rb(b.mb(),this,!1,!this.Eq)},Ei:function(){return!0},Pb:function(){var a=u.m()-this.iy;this.Eq?(this.Lr=a,this.Eq=!1,this.g.I(this,0)):(v.h(u.h("Deriving post method difference: {0}ms data in body, {1}ms without",this.Lr,a)),a<this.Lr-20&&(v.m("POST requests will be sent with the data in header because this seems faster"),this.g.YA(!0)),this.g.I(new Ce(this.g),0))},S:function(){this.g.error("deriving the best post method failed")},
className:function(){return"DerivingPostMethodState"}};var De;De=function(a,b,c,d,e,f,g){void 0===g&&(g=null);this.g=a;this.pn=b;this.cf=c;this.Xa=f;this.zk=e;this.mI=g;this.Bb=d;this.xy=new ba("utf-8")};
De.prototype={j:function(){var a=this.g.Za(),b=this.g.kb();v.m("DeviceLoginState, executing step: "+this.zk+", cryptType: "+this.Xa.zc);2===this.Xa.zc?0===this.zk?b.dL(this.Xa.zc):b.eL(this.pn,this.cf):0===this.zk?b.es("","",0,this.Xa.zc):b.es(this.pn,this.cf,this.mI.FC,this.Xa.zc);a.rb(b.mb(),this)},Pb:function(a){0===this.zk?this.VI(a):this.WI(a)},VI:function(a){var b=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).TM(this.Xa.zc,this.Bb);if(b instanceof Rb)if(2===this.Xa.zc){var c=this;Ob.J(b.GC).then(function(d){var e=
b.HC,f=c.xy.encode(c.cf),g=Math.min(f.byteLength,60),h=new ArrayBuffer(60),k=new Uint8Array(h);f=new Uint8Array(f);var q=new Uint8Array(e);var n=Math.min(e.byteLength,60);for(e=0;60>e;e++)k[e]=0;for(e=0;e<g;e++)k[e]=f[e];for(e=0;e<n;e++)k[e]^=q[e];Ob.m(d,h).then(function(B){var z=c.pn;60<z.length&&(z=z.substr(0,60));z=c.xy.encode(z);c.g.I(new De(c.g,z,B,c.Bb,1,c.Xa,b),0)},function(B){c.S("DeviceLogin failed with the following error: "+B)})},function(d){c.S("DeviceLogin failed with the following error: "+
d)})}else this.g.I(new De(this.g,this.pn,this.cf,this.Bb,1,this.Xa,b),0);else this.S("DeviceLogin failed with the following error: "+b)},WI:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).UM();var b=!1;a instanceof Sb?(a.$b===E.h?b=!0:63===a.$b&&r.WB(this.g.getConfiguration())&&(b=!0),b?(this.Bb||(v.m("Successfully Logged in! DeviceSessionId: "+a.Ee),this.g.v.mh=a.Ee),this.g.v.to=!1,63===a.$b&&(v.m("Successfully Logged with 'Change Password' set"),this.g.v.to=!0),this.g.I(new Ee(this.g),0)):25===
a.$b||63===a.$b?(25===a.$b?v.m("DeviceLogin failed with the following error: NO_ACCESS_RIGHTS"):v.m("DeviceLogin failed with the following error: ERR_CHANGE_PASSWORD"),this.Xa.Error=a.$b,this.g.I(new ob(this.g,this.Xa,this.Bb),0)):this.S("DeviceLogin failed with the following error: "+a.$b)):this.S("DeviceLogin failed with the following error: "+a.$b)},S:function(a){this.g.error("Login to the plc device failed: "+a)},className:function(){return"DeviceLoginState Step: "+this.zk+" CryptType: "+this.Xa.zc}};
var Ce;Ce=function(a,b,c){void 0===b&&(b=r.$B(a.getConfiguration()));void 0===c&&(c=!1);this.g=a;this.YI=c;this.Bb=b};
Ce.prototype={j:function(){var a=this.g.Za(),b=this.g.kb();this.Bb?b.gL(this.g):b.es();a.rb(b.mb(),this)},Pb:function(a){null!==a||this.YI?(a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).VM(this.Bb),a instanceof Tb?(this.g.v.WN(a.zc),this.Bb?a.$b===E.h?(this.Ux(a.Ee),a.Error===E.h||18===a.Error?this.g.FL()?(a.Error=0,this.g.I(new ob(this.g,a,this.Bb),0),v.m("DeviceLoginState, Skipped")):this.g.I(new De(this.g,"","",this.Bb,0,a),0):this.S("DeviceSessionCreate failed with the following error: "+a.$b+" "+a.Error)):
this.S("DeviceSessionCreate failed with the following error: "+a.$b):a.$b===E.h&&a.zc===E.J?(this.Ux(a.Ee),this.g.I(new Ee(this.g),0)):(v.m("Login failed. Probably credentials necessary; result: "+a.$b),this.g.I(new ob(this.g,a,this.Bb),0))):this.S("DeviceSessionCreate failed with the following error: "+a)):this.g.I(new Ce(this.g,!1,!0),0)},Ux:function(a){v.m("Successfully Logged in! DeviceSessionId: "+a);this.g.v.mh=a},Ei:function(){return this.Bb},S:function(a){this.g.error("Login to the plc device failed: "+
a)},className:function(){return"DeviceSessionState NewServices: "+this.Bb}};var qb;qb=function(a){this.g=a};qb.prototype={j:function(){v.info("Trying to reconnect after error");this.g.I(new db(this.g),0)},className:function(){return"ErrorState"}};var ob;
(function(){var a=[["LoginVisuErr1","Authentication failed, try again"],["LoginVisuErr2","Change password at first login is not supported"],["LoginVisuErr3","Error during authentication"],["LoginVisuErr4","Maximum number of clients reached"],["LoginVisuErr5","Not enough memory in the PLC for new client"]];ob=function(b,c,d){this.g=b;this.Xa=c;this.Bb=d;this.ji=this.ki=this.Gm="";this.Vd=null;this.Td=this.Ud=this.fa=0;this.bf=null;this.Ij=12;this.Fc="Arial";this.Of=this.$e=this.af=null;this.Nf=[];
this.Kq=this.Mf=this.Pg=null;this.Pf=[];this.sq=this.Mq=!1;this.Od=this.od=4294967295;this.Dk=this.Uh=!1;this.wg="";this.Sp=!1;this.Ea=null;this.jy=0;this.Wc=!1;this.gn="";this.hi=new M(0,0,0,0);this.Xm=this.pk=0;this.se=1;this.Me="#909090";this.uf="#000000";this.Vh="#FFFFFF";this.Hj="#000000";this.lc=G.m;this.wy=0;this.Ke=[];this.uj=0;this.iq=this.mx=!1;this.Wj=this.Ng=this.Gx=this.Jw=null;this.Zc=new Fe(this.g);""!==this.g.getConfiguration().LoginVisu.toLowerCase()&&(this.Lb=this.g.os(),""===this.Lb&&
(this.Lb=this.g.getConfiguration().LoginVisuDefLang,""===this.Lb&&(this.Lb=r.RB(),b=this.Lb.split("-"),b.length&&this.g.wA(b[0],!0,!1))))};ob.prototype={j:function(){switch(this.fa){case 0:this.EJ();break;case 1:this.HJ();break;case 2:this.HG();break;case 3:this.JJ();break;case 4:this.CG();break;case 5:this.GJ();break;case 6:this.IJ();break;case 7:this.DJ();break;case 8:this.FJ();break;case 9:this.BJ();break;case 10:this.CJ();break;default:this.Qm()}},className:function(){return"QueryCredentialsState"},
mo:function(b){this.gn=b},LO:function(b){this.af=b},JO:function(b){this.$e=b},IO:function(b){this.Of=b},io:function(b){this.Ke[this.uj]=b},fd:function(){return this.Ke[this.uj]},SN:function(b){this.Mq=b},RN:function(b){this.sq=b},GO:function(b){this.Pg=b},FO:function(b){this.Mf=b},KO:function(b,c){this.Pf.push([b,c])},Iz:function(b){var c;for(c=0;c<this.Pf.length;c++)if(this.Pf[c][0]===b)return this.Pf[c][1];return null},HO:function(b,c){null===this.On(b)&&this.Nf.push([b,c])},On:function(b){var c;
for(c=0;c<this.Nf.length;c++)if(this.Nf[c][0]===b)return this.Nf[c][1];return null},Zg:function(){return this.Fc},$g:function(){return this.Ij},Yg:function(){return this.Hj},Sn:function(){return this.lc++},PL:function(){return this.wy++},CL:function(b,c){var d="";switch(b){case 25:b="LoginVisuErr1";break;case 63:b="LoginVisuErr2";break;case 248:b="LoginVisuErr4";break;case 247:b="LoginVisuErr5";break;default:b="LoginVisuErr3"}var e=this.Wj;null===e&&(e=this.Ng);""!==c&&null!==e&&(c=e.SB(c,b),null!==
c&&(d=c));if(""===d)for(c=0;c<a.length;c++)a[c][0]===b&&(d=a[c][1]);return d},fh:function(b){this.Ke.push(b)},Qn:function(b){return 0===this.hi.C()&&0===this.hi.B()?b:this.hi},LL:function(b,c){var d=this.pk;if(0>this.pk||0>this.Xm)d=Math.max(1,Math.min(b,c)/8);return d},fl:function(b){this.g.wA(b,!1,!0)},nE:function(b,c){c=new Ge(c);c.TC(b);this.Vd=c.Vd;null!==this.Vd&&(this.Ud=c.Ud,this.Td=c.Td,this.Od=c.Od,this.od=c.od,this.wg=c.wg,this.Uh=c.Uh,this.Dk=c.Dk,v.h("Login page '"+this.Gm+"' is availabe"));
this.Wc=!0;this.g.I(this,0)},oE:function(b){this.Ng=new He(this.g.getConfiguration().$f());this.Ng.Nt(b);this.Ng.Fg&&(v.h("Localized texts file '"+this.ki+"' is availabe"),b=this.Ng.Gc,null!==b?v.h("Languages found: "+b.length):v.h("Languages found: 0"));this.Wc=!0;this.g.I(this,0)},mE:function(b){this.Wj=new He(this.g.getConfiguration().$f());this.Wj.Nt(b);this.Wj.Fg&&(v.h("Localized Error texts file '"+this.ji+"' is availabe"),b=this.Wj.Gc,null!==b?v.h("Languages found: "+b.length):v.h("Languages found: 0"));
this.Wc=!0;this.g.I(this,0)},kE:function(){this.iq?this.g.V().um?this.mx?this.fa=8:(this.mx=!0,this.an(!0),this.fa=7):(this.an(!0),this.fa=7):this.fa=8;this.g.I(this,0)},EJ:function(){var b=this;this.Gm=this.g.getConfiguration().LoginVisu.toLowerCase();""===this.Gm?this.Wc=!0:(this.Wc=!1,this.Xp(function(c){b.nE(c,b.g.v.Fa)},this.Gm));this.fa=1;this.g.I(this,0)},HJ:function(){this.Wc&&(this.fa=2,this.g.I(this,0))},HG:function(){var b=this;this.ki=this.g.getConfiguration().LoginVisuTexts.toLowerCase();
""===this.ki?this.Wc=!0:(this.Wc=!1,this.Xp(function(c){b.oE(c)},this.ki));this.fa=3;this.g.I(this,0)},JJ:function(){this.Wc&&(this.fa=4,this.g.I(this,0))},CG:function(){var b=this;this.ji=this.g.getConfiguration().LoginVisuErrorTexts.toLowerCase();""===this.ji?this.Wc=!0:this.ji.toUpperCase()===this.ki.toUpperCase()?(this.ji=this.ki,this.Wc=!0):(this.Wc=!1,this.Xp(function(c){b.mE(c)},this.ji));this.fa=5;this.g.I(this,0)},GJ:function(){this.Wc&&(this.fa=6,this.jy=u.m(),this.g.I(this,0))},IJ:function(){this.fa=
7;0<this.wg.length&&!this.cH(this.wg)&&(this.fa=6,5E3<u.m()-this.jy&&(this.Ea=null,this.fa=7));this.g.I(this,0)},DJ:function(){var b=this;if(null!==this.Vd){if(null===this.bf){var c=this.g.ic;null!==c&&c.detach();this.bf=function(){b.Qq()};window.addEventListener("resize",this.bf,!1)}this.an(!1);this.g.V().Vy();this.g.V().zA();this.g.V().Gn(this.Vd,function(){b.kE()},function(d){return b.Il(d,!1)});this.Zc.De()}else this.Qm()},FJ:function(){this.Mq&&(this.fa=10);this.sq&&(this.fa=9);this.g.I(this,
0)},BJ:function(){var b=this.g.ic;null!==this.bf&&(window.removeEventListener("resize",this.bf,!1),this.bf=null,null!==b&&b.Jk());this.sp();this.g.bt("The user did not provide credentials.","No credentials")},CJ:function(){var b="",c="",d=this.g.ic;null!==this.bf&&(window.removeEventListener("resize",this.bf,!1),this.bf=null,null!==d&&d.Jk());null!==this.af&&(b=this.af.xc().value);null!==this.$e&&(c=this.$e.xc().value);this.sp();this.g.BO(this.Lb);this.g.JA(!1);this.Xa.Error=0;this.g.V().lO();this.g.I(new De(this.g,
b,c,this.Bb,0,this.Xa),0)},Il:function(b,c){this.uj=this.Ke.length=0;if(this.Sp){this.iq=this.Sp=!1;this.g.V().g.getConfiguration().SemiTransparencyActive=this.Dk;this.g.V().getState().Yk();var d=new M(0,0,this.Ud,this.Td);var e=new se(d,this.g.V());var f=this.od;this.g.getConfiguration().ScaleTypeIsotropic&&(!1===this.Uh?f=this.Od:(d=new M(0,0,document.documentElement.clientWidth,document.documentElement.clientHeight),e.hO(d.C()/this.Ud),e.iO(d.B()/this.Td)));e.IN(f);e.JN(this.od);e.KN(this.Ea);
e.gO(this.Uh);this.fh(new we(new M(0,0,1E4,1E4)));this.fh(e);this.fh(b);this.uj=2}else this.fh(b),this.uj=0;b instanceof lc?(d=new Ie(this.g,this.Xa,this),d.MB(b,c)):b instanceof dc?(this.hi=b.oc(),this.se=1,this.Me=b.HL(),this.uf=b.xL(),this.pk=this.Xm=-1):b instanceof ic?(this.Kq=b,this.hi=b.oc(),0===b._type&&(this.pk=this.Xm=-1)):b instanceof Gc?(this.Ij=b.$g(),this.Fc=b.Zg(),this.Hj=b.Yg()):b instanceof Od?(this.Ij=b.$g(),this.Fc=b.Zg(),this.Hj=b.Yg()):b instanceof ed?(this.pk=b.Sz,this.Xm=b.Tz):
b instanceof Fc?(this.se=b.C(),this.Me=this.uf=b.Hn()):b instanceof Ec?this.Vh=b.Hn():b instanceof Ea&&(d=this.g.getConfiguration().LoginVisuNamespace,""!==d&&(c=b.Gf,2>=c.split(".").length&&(d+=".",r.sb(c,d)||b.wO(d+c))),b.Vz(this.g.V().Pj,this.g.V().Hf),this.hi=b.nB(),this.iq=!0);this.Gx=this.Jw;this.Jw=b;return this.Ke},sp:function(){null!==this.af&&(this.af.remove(),this.af=null);null!==this.$e&&(this.$e.remove(),this.$e=null);null!==this.Of&&(this.Of.remove(),this.Of=null);null!==this.Pg&&(this.Pg.remove(),
this.Pg=null);null!==this.Mf&&(this.Mf.remove(),this.Mf=null);var b;for(b=0;b<this.Pf.length;b++)null!==this.Pf[b][1]&&this.Pf[b][1].remove();this.Pf=[];for(b=0;b<this.Nf.length;b++)null!==this.Nf[b][1]&&this.Nf[b][1].remove();this.Nf=[];this.sq=this.Mq=!1},an:function(b){this.Sp=!0;this.lc=G.m;this.wy=0;b&&this.sp();this.eE()},Xp:function(b,c){var d=new XMLHttpRequest;d.open("GET",c,!0);d.responseType="arraybuffer";d.timeout=5E3;d.onreadystatechange=function(){d.readyState===XMLHttpRequest.DONE&&
(200===d.status?b(d.response):b(null))};d.send()},eE:function(){this.g.V().gs(1);if(this.g.getConfiguration().BestFit){var b=this.g.V().lf();if(!1===this.g.getConfiguration().ScaleTypeIsotropic){var c=b.C()/this.Ud;b=b.B()/this.Td;this.g.V().jO()}else{var d=new M(0,0,0,0);var e=b.C()+1;var f=b.B()+1;b=e/2;c=f/2;var g=this.Ud/this.Td;g<e/f?(e=f*this.Ud/this.Td,d.u=0,d.s=b-e/2):(f=e*this.Td/this.Ud,d.u=c-f/2,d.s=0);d.T=d.s+e;d.ca=d.u+f;c=d.C()/this.Ud;b=d.B()/this.Td;c<=b?b=c:c=b;this.g.V().aP(d);this.g.V().kO()}this.g.V().bP(c);
this.g.V().cP(b)}},Qq:function(){if(this.Mf.RL()){if(this.Zc.zt()){var b=this;this.an(!0);this.g.V().Gn(this.Vd,function(){},function(c){return b.Il(c,!0)})}this.Zc.De()}},cH:function(b){var c=this.g.V().Pj;var d=this.g.V().Hf;if(null===this.Ea){if(c.eA())return this.Ea=c.Ji("ImageByImagePoolId?id="+b,!1),this.Ea.cg();d=d.Li(b);if(null!==d)return this.Ea=c.Ji(d,!1),this.Ea.cg();v.warn("Imagepoolentry for "+b+" not found");return!0}return this.Ea.cg()},Qm:function(){(new Je(this.g,this.Xa,this.Bb)).IB()}}})();
var Ke;Ke=function(a){this.g=a;this.Lp=""};
Ke.prototype={j:function(){var a=this,b;for(b=document.getElementById("cas-script");null!==b;)b.parentNode.removeChild(b),b=document.getElementById("cas-script");b=document.createElement("script");b.id="cas-script";b.onload=function(){a.Lk()};b.onerror=function(c){a.S(c)};window.onerror=function(c){a.S(c)};b.src=this.g.getConfiguration().CasFactoryName;document.head.appendChild(b)},Lk:function(){""===this.Lp&&this.ue()},S:function(a){this.Lp="Loading the automation server helper script failed for the following reason: "+a+
".";this.g.error(this.Lp)},ue:function(){this.g.I(new Le(this.g),0)},className:function(){return"RetrievingAutomationServerScriptState"}};var db,X;X=function(){};X.Va=function(a){return C.Va(a)};X.J=function(a){a=parseInt(a,10);if(0===a||1===a||2===a)return a;v.info("Unexpected value at the URL configured; only 0..2 are allowed so falling back to default value");return 0};X.h=function(a){return parseInt(a,10)};
X.m=[{Oa:"HandleTouchEvents",Sa:"CFG_HandleTouchEvents",type:"boolean",Qa:X.Va},{Oa:"TouchHandlingActive",Sa:"CFG_TouchHandlingActive",type:"boolean",Qa:X.Va},{Oa:"BestFit",Sa:"CFG_BestFit",type:"boolean",Qa:X.Va},{Oa:"BestFitForDialogs",Sa:"CFG_BestFitForDialogs",type:"boolean",Qa:X.Va},{Oa:"LogLevel",Sa:"CFG_LogLevel",type:"string",Qa:null},{Oa:"Benchmarking",Sa:"CFG_Benchmarking",type:"boolean",Qa:X.Va},{Oa:"WorkaroundDisableMouseUpDownAfterActiveTouch",Sa:"CFG_WorkaroundDisableMouseUpDownAfterActiveTouch",
type:"boolean",Qa:X.Va},{Oa:"WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch",Sa:"CFG_WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch",type:"number",Qa:X.h},{Oa:"WorkaroundDisableResizeHandling",Sa:"CFG_WorkaroundDisableResizeHandling",type:"boolean",Qa:X.Va},{Oa:"WorkaroundDisableSVGAspectRatioWorkaround",Sa:"CFG_WorkaroundDisableSVGAspectRatioWorkaroundg",type:"boolean",Qa:X.Va},{Oa:"WorkaroundDisableSVGEmptySizeWorkaround",Sa:"CFG_WorkaroundDisableSVGEmptySizeWorkaround",type:"boolean",
Qa:X.Va},{Oa:"WorkaroundForceSVGEmptySizeWorkaround",Sa:"CFG_WorkaroundForceSVGEmptySizeWorkaround",type:"boolean",Qa:X.Va},{Oa:"PostDataInHeader",Sa:"CFG_PostDataInHeader",type:"number",Qa:X.J},{Oa:"DebugOnlyPrintPaintCommands",Sa:"CFG_DebugOnlyPrintPaintCommands",type:"boolean",Qa:X.Va},{Oa:"DebugHTML5",Sa:"CFG_DebugHTML5",type:"boolean",Qa:X.Va},{Oa:"DebugOnlyPrintRawTouches",Sa:"CFG_DebugOnlyPrintRawTouches",type:"boolean",Qa:X.Va},{Oa:"DebugOnlyPrintGestures",Sa:"CFG_DebugOnlyPrintGestures",
type:"boolean",Qa:X.Va},{Oa:"DebugOnlyPrintTouchRectangles",Sa:"CFG_DebugOnlyPrintTouchRectangles",type:"boolean",Qa:X.Va},{Oa:"DebugOnlyDiagnosisDisplay",Sa:"CFG_DebugOnlyDiagnosisDisplay",type:"boolean",Qa:X.Va},{Oa:"DebugOnlyInputReactionOnUp",Sa:"CFG_DebugOnlyInputReactionOnUp",type:"boolean",Qa:X.Va},{Oa:"DebugOnlyInputReactionExplCoord",Sa:"CFG_DebugOnlyInputReactionExplCoord",type:"boolean",Qa:X.Va},{Oa:"DefaultConfigurationOnError",Sa:"CFG_DefaultConfigurationOnError",type:"boolean",Qa:X.Va},
{Oa:"KeysForWebVisu",Sa:"CFG_KeysForWebVisu",type:"string",Qa:null},{Oa:"MaxResizePixel",Sa:"CFG_MaxResizePixel",type:"number",Qa:X.h},{Oa:"ClientName",Sa:"ClientName",type:"string",Qa:null}];db=function(a){this.g=a};
db.prototype={j:function(){var a=this.g.Za();var b=window.document.URL;b=b.substr(0,b.lastIndexOf("."));a.ws(b+".cfg.json",this)},Lk:function(a){try{var b=this.vI(a);this.nF(b);this.xx(b);this.g.setConfiguration(b);this.HF(b);this.ue()}catch(c){this.S(c)}},nF:function(a){if(a.TouchHandlingActive){var b=r.aC();b||(a.TouchHandlingActive=b,v.info("No multitouch support detected, therefore disabling multitouch for this client."))}},xx:function(a){var b;for(b=0;b<X.m.length;++b){var c=X.m[b];var d=C.pl(this.g.Wf,
c.Sa);null!==d&&(d=null!==c.Qa?c.Qa(d):d,a[c.Oa]=d,v.info("Overridden Config Entry: "+c.Oa+" = "+d))}},vI:function(a){try{var b=JSON.parse(a),c=new Configuration,d;for(d in b)void 0!==d&&(c[d]=b[d]);c.validate();return c}catch(e){return this.Lf(e),new Configuration}},S:function(a){var b=this.g.getConfiguration();null===b&&(b=new Configuration,this.xx(b));b.DefaultConfigurationOnError?(this.Lf(a),this.g.setConfiguration(new Configuration),this.ue()):this.g.error(a)},ue:function(){this.g.getConfiguration().CasFactoryName?
this.g.I(new Ke(this.g),0):this.g.I(new Le(this.g),0)},Lf:function(a){v.error("Loading the configuration failed for the following reason: "+a+". A default config will be used instead.")},className:function(){return"RetrievingConfigurationState"},HF:function(a){v.m("Configuration:");for(var b in a)a.hasOwnProperty(b)&&v.m(u.h(" - {0}: {1}",b,a[b]));a.Benchmarking&&v.info("Benchmarking active")}};var Me;Me=function(a){this.g=a};
Me.prototype={j:function(){var a=this.g.Za(),b=this.g.kb();b.tN();a.rb(b.mb(),this)},Ei:function(){return!0},Pb:function(a){null!==a&&(a=(new Xb(a,!0,this.g.ub.tb)).ZM(),""!==a&&(this.g.v.Ko=a));this.g.I(this.iF(),0)},iF:function(){if(this.g.v.eD){if(0===this.g.getConfiguration().PostDataInHeader)return new Be(this.g);1===this.g.getConfiguration().PostDataInHeader&&(v.info("POST-Data in header active by override"),this.g.YA(!0))}1===this.g.getConfiguration().PostDataInHeader&&v.warn("POST-Data in header active by override but not supported by Webserver");
return new Ce(this.g)},S:function(a){this.g.error("Retrieving IP Info failed: "+a)},className:function(){return"RetrievingMyIpState"}};var Ne;Ne=function(a){this.g=a};
Ne.prototype={j:function(){var a=this.g.Za(),b=this.g.getConfiguration(),c=this.g.kb();c.nA(b.PlcAddress,b.CommBufferSize,b.UseLocalHost);a.rb(c.mb(),this)},Ei:function(){return!0},Pb:function(a){null===a?this.g.I(this,this.g.getConfiguration().PollingRegistrationInterval):(a=(new Xb(a,!0,this.g.ub.tb)).sA(),a instanceof na?(v.m("Successfully connected! SessionId: "+a.Ee+" IntelByteOrder: "+a.Fa),this.g.UN(a),this.g.Hc?this.g.I(new Ee(this.g),0):this.g.I(new Me(this.g),0)):this.g.error("Connection failed: "+
a))},S:function(a){this.g.error("Starting to connect failed: "+a)},className:function(){return"StartConnectState"}};var Oe;Oe=function(a){this.g=a};
Oe.prototype={j:function(){var a=this.g.Za(),b=this.g.getConfiguration();a.ws(u.No((b.Application+".nativeelements.json").toLowerCase()),this)},Lk:function(a){try{this.g.Yb.fill(a)}catch(b){this.Lf(b)}this.ue()},S:function(a){this.Lf(a);this.ue()},ue:function(){this.g.I(new Ne(this.g),0)},Lf:function(a){v.error("Loading the native element list failed for the following reason: "+a+". Native elements will not work at all.")},className:function(){return"UpdateNativeElementsState"}};var Le;
Le=function(a){this.g=a};Le.prototype={j:function(){var a=this.g.Za(),b=this.g.getConfiguration();a.ws(u.No((b.Application+".imagepoolcollection.csv").toLowerCase()),this)},Lk:function(a){try{this.g.V().Hf.fill(a)}catch(b){this.Lf(b)}this.ue()},S:function(a){this.Lf(a);this.ue()},ue:function(){this.g.I(new Oe(this.g),0)},Lf:function(a){v.error("Loading the imagepool failed for the following reason: "+a+". Images will not work at all.")},className:function(){return"UploadImagePoolState"}};var ue;
ue=function(a,b){this.g=a;this.Dc=b;this.i=this.g.i};
ue.prototype={j:function(){if(null===this.i)this.g.I(this.Dc,0);else{if(3===this.i.direction){var a=u.m();if(a-this.i.GA<this.g.getConfiguration().UpdateRate){this.g.I(this.Dc,0);return}}if(this.i.status.Qb===V.m){var b=K.$a;3===this.i.direction&&(b=K.wa);b=new m(b,this.g.v.la,0,1);this.g.Wi(null);this.g.I(this.Dc,0);this.g.wb.push(b)}else if(this.i.status.Qb===V.h)3!==this.i.direction&&(b=this.WE(this.i)),this.g.Wi(null),this.g.I(this.Dc,0),3!==this.i.direction&&this.g.wb.push(b);else if(1!==this.i.direction&&
0!==this.i.direction||this.i.status.result===E.h&&!this.i.status.$d||this.i.status.Qb===V.$a){if(1===this.i.direction||3===this.i.direction){if(this.i.status.we){this.i.status.we=!1;this.Qm(this.i);this.g.I(this.Dc,0);return}if(1===this.i.direction){if(this.i.status.Qb!==V.Gb&&(this.i.status.Dd||this.i.status.ae)){b=this.g.Za();a=this.g.kb();this.i.status.Dd?(0<(this.i.Ac.Cc&4)&&this.WA(this.i),0<(this.i.Ac.Cc&8)?(a.VK(this.i),this.i.status.Qb=V.J):a.cz(this.i)):this.i.status.ae&&a.bz(this.i);b.rb(a.mb(),
this);return}}else if(this.i.status.Dd||this.i.status.ae){null!==this.i.Eb&&(window.document.body.removeChild(this.i.Eb),this.i.Eb=null);this.i.status.Dd?(this.WA(this.i),b=this.VE(this.i),this.i.status.Dd=!1,this.i.status.ae=!0,this.g.wb.push(b),b=new m(532,this.g.v.la,this.i.buffer.size(),0)):b=this.UE(this.i);this.g.I(this.Dc,0);this.g.wb.push(b);this.i.GA=u.m();return}}else if(0===this.i.direction){if(this.i.status.we||this.i.status.ae){b=this.g.Za();a=this.g.kb();this.i.status.we?a.cz(this.i):
this.i.status.ae&&a.bz(this.i);b.rb(a.mb(),this);return}}else if(2===this.i.direction){if(this.i.status.we){this.i.status.we=!1;b=this.TE(this.i);this.g.I(this.Dc,0);this.g.wb.push(b);return}if(this.i.status.$d&&this.i.status.Qb!==V.h){b=r.Ht();this.g.I(this.Dc,b);this.CA(this.i);return}}this.g.I(this.Dc,0)}else b=this.g.Za(),a=this.g.kb(),a.WK(this.i),b.rb(a.mb(),this),this.i.status.$d=!0,this.i.status.Qb=V.$a,this.i.status.result!==E.h&&(this.i.status.Qb=V.h)}},Pb:function(a){var b=!1;null!==a||
0!==this.i.direction&&1!==this.i.direction?(a=new Xb(a,this.g.v.Fa,this.g.ub.tb),this.i.status.$d&&this.i.status.Qb!==V.h?(b=r.Ht(),a.WM(this.i),this.g.I(this.Dc,b),this.CA(this.i)):(0===this.i.direction?this.i.status.we?(this.i.status.we=!1,a.Bs(this.i),this.i.status.result===E.h&&(this.i.status.ae=b=!0)):this.i.status.ae&&a.rA(this.i):this.i.status.Qb===V.J?(this.i.status.we=!1,a.Bs(this.i),this.i.status.result===E.h&&0<this.i.uh.de?(null!==this.i.Eb&&window.document.body.removeChild(this.i.Eb),
this.i.status.Qb=V.Gb,this.kI(this.i)):(this.i.status.result=0,this.i.status.Qb=V.wa,this.i.status.Dd=!0,this.i.Ac.Cc=this.i.Ac.Cc&-5,this.i.Ac.Cc&=-9)):this.i.status.Dd?(a.Bs(this.i),this.i.status.Dd=!1,this.i.status.result===E.h?this.i.status.ae=b=!0:(null!==this.i.Eb&&window.document.body.removeChild(this.i.Eb),this.i.Eb=null)):this.i.status.ae&&a.rA(this.i),this.g.I(this.Dc,0),b&&(a=new m(K.$a,this.g.v.la,this.i.it,this.i.status.result),this.g.wb.push(a),1===this.i.direction&&(null!==this.i.Eb&&
window.document.body.removeChild(this.i.Eb),this.i.Eb=null)))):(null!==this.i.Eb&&(window.document.body.removeChild(this.i.Eb),this.i.Eb=null),a=new m(528,this.g.v.la,this.i.it,7),this.g.Wi(null),this.g.I(this.Dc,0),this.g.wb.push(a))},Ei:function(){return!0},WA:function(a){var b,c;var d=a.eh.split("/");var e=a.qA.split("/");if(0<d.length&&0<e.length){for(c=0;c<d.length-1;++c)0===c?b=d[c]:b=b+"/"+d[c];void 0!==b?b=b+"/"+e[e.length-1]:b=e[e.length-1];a.eh=b}},CA:function(a){var b=null,c=this.cL();
null===a.buffer||0!==a.direction&&2!==a.direction||(b=a.buffer.Fd());null!==this.i.Eb&&window.document.body.removeChild(a.Eb);a.status.Qb=V.h;null!==b&&a.status.result===E.h&&(b=new Blob([b],{type:"application/octet-binary"}),a=a.eh,a=a.split("/"),a=a[a.length-1],c?this.iL(b,a):this.download(b,a))},iL:function(a,b){window.navigator.msSaveBlob(a,b)},cL:function(){var a=window.navigator.userAgent,b=a.indexOf("Trident/");return 0<a.indexOf("MSIE ")?!0:0<b?!0:!1},download:function(a,b){var c=window.document.createElement("a");
c.setAttribute("href",window.URL.createObjectURL(a));c.setAttribute("download",b);window.document.createEvent?(a=document.createEvent("MouseEvents"),a.initEvent("click",!0,!0),c.dispatchEvent(a)):c.click()},Qr:function(){return!0},S:function(a){this.g.error("Error while processing the visualization: "+a)},className:function(){return"VisuFileTransferState"},Ol:function(a){var b=window.document.createElement("p");b.textContent=a;return b},le:function(a,b,c){var d=window.document.createElement("input");
d.className="fileTransferButton";d.type=b;null!==a?d.value=a:(d.style.display="none",null!==c&&null!==c.Ac&&0<c.Ac.Nj&&(d.accept=ue.h(c.Ac.Nj,c.Ac.ep)));return d},Qm:function(a){var b=window.document.createElement("div"),c=window.document.createElement("div"),d=window.document.createElement("div"),e=window.document.createElement("div"),f=window.document.createElement("div"),g=this.le(null,"file",a),h=this.le("Browse...","button",a);a=this.le("Cancel","button",a);var k=this.Ol("Choose file to transfer..."),
q=this.Ol("File Transfer"),n=this;b.id="visuFileTransfer";b.className="fileTransferDialog";c.className="fileTransferDialogContent";d.className="fileTransferDialogHeader";e.className="fileTransferDialogBody";f.className="fileTransferDialogFooter";g.addEventListener("change",function(B){n.PG(B,b)},!1);a.addEventListener("click",function(){n.Qg(b)},!1);h.addEventListener("click",function(){g.click()},!1);d.appendChild(q);e.appendChild(k);f.appendChild(g);f.appendChild(a);f.appendChild(h);c.appendChild(d);
c.appendChild(e);c.appendChild(f);b.appendChild(c);window.document.body.appendChild(b);this.i.Eb=b},kI:function(a){a.jA?window.confirm("The file already exists in the plc.\nDo you want to overwrite the file?")?this.kx(null):this.Qg(null):this.lI(a)},lI:function(a){var b=window.document.createElement("div"),c=window.document.createElement("div"),d=window.document.createElement("div"),e=window.document.createElement("div"),f=window.document.createElement("div"),g=this.le("Ok","button",a);a=this.le("Cancel",
"button",a);var h=this.Ol("The file already exists in the plc.\nDo you want to overwrite the file?"),k=this.Ol("File Transfer"),q=this;b.id="visuFileTransfer";b.className="fileTransferDialog";c.className="fileTransferDialogContent";d.className="fileTransferDialogHeader";e.className="fileTransferDialogBody";f.className="fileTransferDialogFooter";a.addEventListener("click",function(){q.Qg(b)},!1);g.addEventListener("click",function(){q.kx(b)},!1);d.appendChild(k);e.appendChild(h);f.appendChild(a);f.appendChild(g);
c.appendChild(d);c.appendChild(e);c.appendChild(f);b.appendChild(c);window.document.body.appendChild(b);this.i.Eb=b},PG:function(a){ue.m(a,this.g)},Ru:function(a,b){var c=this.g.V().lf();return new t((c.s+c.T-a)/2,(c.u+c.ca-b)/2)},Qg:function(a){var b=this.g.i;null!==b&&(b.status.Qb=V.m);null!==a&&window.document.body.removeChild(a)},kx:function(a){null!==this.g.i&&(this.i.status.Qb=V.wa,this.i.Ac.Cc=this.i.Ac.Cc&-5,this.i.Ac.Cc&=-9);null!==a&&(window.document.body.removeChild(a),this.i.Eb=null)},
Nl:function(a){var b=null;"utf-8"===this.g.getConfiguration().ANSIStringEncoding&&(b=this.g.getConfiguration().Hd());return P.D(a,!0,b)},WE:function(a){var b=this.g.v.CommBufferSize-2E3;var c=p.D(b+4);var d=this.Nl(c);var e=d.eb(a.eh,!1);b=e.length();d.Zb(e);a=new m(528,this.g.v.la,a.it,a.status.result);0<b&&a.Fb(c);return a},UE:function(a){var b=0;var c=this.g.v.CommBufferSize-2E3,d=p.D(c+4),e=this.Nl(d),f;a.buffer.size()-a.status.kh<c&&(c=a.buffer.size()-a.status.kh,a.status.Qb=V.h,b=1);e.K(c);
for(f=0;f<c;f++)e.Na(a.buffer.getUint8());b=new m(530,this.g.v.la,b,0);b.Fb(d);a.status.kh+=c;return b},VE:function(a){var b=this.g.v.CommBufferSize-2E3;var c=p.D(b+4),d=this.Nl(c);a=d.eb(a.eh,!1);b=a.length();d.K(b);d.Zb(a);b=new m(530,this.g.v.la,2,0);b.Fb(c);return b},TE:function(a){var b=p.D(20);var c=this.Nl(b);var d=c.eb("DummyFileName",!1);c.Zb(d);c=new m(K.wa,this.g.v.la,0,0);c.Fb(b);a.status.Dd=!0;return c}};
ue.h=function(a,b){var c,d;for(d=0;d<a;++d){var e=b[d];e=e.split("|");"*.*"!==e[1]&&(0===d?c=e[1].substr(1):c=c+","+e[1].substr(1))}return c};ue.m=function(a,b){var c=new FileReader,d=b.i;c.onload=function(e){ue.J(e,b)};null!==d&&void 0!==d&&(d.qA=a.target.files[0].name,c.readAsArrayBuffer(a.target.files[0]))};ue.J=function(a,b){var c=b.i;c.buffer=O.D(a.target.result,b.v.Fa,b.ub.tb);c.status.Dd=!0};var Pe;Pe=function(a,b){this.g=a;this.kn=b};
Pe.prototype={j:function(){var a=this.g.Za(),b=this.g.kb(),c=new m(3145728,this.g.v.la,0,0),d=p.D(32),e=P.D(d,!0),f=e.eb(this.kn,!1);e.K(1);e.Zb(f);c.Fb(d);b.Yi(c);a.rb(b.mb(),this);v.h("Redundancy, request for the ID with ticket:"+this.kn)},Pb:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).Ti(null);a instanceof ra?a.bg()?(this.g.Mb.NA(E.m),this.g.Mb.Yt=u.m(),this.g.I(new Qe(this.g),0)):this.S("Unexpected paint result in "+this.className()):this.S(a)},S:function(a){this.g.error("Error during redundancy initializing (1) the visualization: "+
a)},className:function(){return"VisuOnlineInitRedundState1"}};var Qe;Qe=function(a){this.g=a};
Qe.prototype={j:function(){var a=this.g.Za(),b=this.g.kb(),c=new m(1048576,this.g.v.la,0,0);b.Yi(c);a.rb(b.mb(),this)},Pb:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).Ti(null);var b=this;a instanceof ra?a.bg()?(this.g.Mb.yo=!0,this.g.V().Gn(a,function(){var c=b.g.Mb;c.hl===E.m?7E3>u.m()-c.Yt?b.g.I(b,10):b.S("Timeout on receiving command in "+b.className()):(v.h("Redundancy, ID to use, ID :"+c.hl),v.h("Redundancy, ID to remove, ID :"+b.g.v.la),c.Do=b.g.v.la,b.g.v.la=c.hl,c.yo=!1,b.g.I(new Re(b.g),
0))})):this.S("Unexpected paint result in "+this.className()):this.S(a)},S:function(a){this.g.error("Error during redundancy initializing (2) the visualization: "+a)},className:function(){return"VisuOnlineInitRedundState2"}};var Re;Re=function(a){this.g=a};
Re.prototype={j:function(){var a=this.g.Za(),b=this.g.kb();b.ht(this.g.Mb.Do);a.rb(b.mb(),this)},Pb:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).bN();0===a?(v.h("Redundancy, Client removed:"+this.g.Mb.Do),v.m("Start normal machine state after redundancy switchover, ID: "+this.g.v.la),this.g.I(new Se(this.g),0)):this.S(a)},S:function(a){this.g.error("Error during redundancy initializing (3) the visualization: "+a)},className:function(){return"VisuOnlineInitRedundState3"}};var Se;
Se=function(a){this.g=a};
Se.prototype={j:function(){var a=this.g.Za(),b=this.g.kb(),c=m.wa(this.g.v.la,this.g.getConfiguration().BestFit,this.g.getConfiguration().BestFitForDialogs,this.g.getConfiguration().ScaleTypeIsotropic,this.g.V().lf(),this.g.V().Fp,this.g.getConfiguration().FillBackground);b.Yi(c);a.rb(b.mb(),this)},Pb:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).Ti(null);a instanceof ra?!a.bg()||0<a.zg?this.S("Unexpected paint result in "+this.className()):this.g.I(new Te(this.g),0):this.S(a)},S:function(a){this.g.error("Error during initializing (1) the visualization: "+
a)},className:function(){return"VisuOnlineInitState1"}};var Te;Te=function(a){this.g=a};
Te.prototype={j:function(){var a=this.g.Za(),b=this.g.kb(),c=new m(1048576,this.g.v.la,0,0),d=p.D(16),e=P.D(d,!0),f=this.g.getConfiguration(),g=this.g.Fw;var h=458752;""!==g&&(h|=524288);e.K(h);e.K(7);h=0;f.HasKeyboard&&(h|=24);f.TouchHandlingActive&&(h|=3);this.g.v.to&&(h|=128);e.K(h|256);""!==g&&(f=e.eb(g,!1),e.Zb(f));c.Fb(d);b.Yi(c);a.rb(b.mb(),this)},Pb:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).Ti(null);a instanceof ra?!a.bg()||0<a.zg?this.S("Unexpected paint result in "+this.className()+
", complete: "+a.bg()+", commands: "+a.zg):this.g.I(new Ue(this.g),0):this.S(a)},S:function(a){this.g.error("Error during initializing (2) the visualization: "+a)},className:function(){return"VisuOnlineInitState2"}};var Ue;Ue=function(a){this.g=a};
Ue.prototype={j:function(){var a=this.g.Za(),b=this.g.kb(),c=new m(1048576,this.g.v.la,0,0),d=p.D(32),e=P.D(d,!0);if(!1===this.g.Mb.tl)if(e.K(1),""!==this.g.getConfiguration().StartVisu){var f=e.eb(this.g.getConfiguration().StartVisu,!1);e.Zb(f)}else""!==this.g.getConfiguration().StartVisuDefaultEncodingBase64&&window.atob&&(f=window.atob(this.g.getConfiguration().StartVisuDefaultEncodingBase64),f=e.eb(f,!1),e.Zb(f));else e.K(2),e.Na(0);c.Fb(d);b.Yi(c);a.rb(b.mb(),this)},Pb:function(a){var b=(new Xb(a,
this.g.v.Fa,this.g.ub.tb)).Ti(null);a=!1;if(b instanceof ra)if(!b.bg()||0<b.zg)this.S("Unexpected paint result in "+this.className()+", complete: "+b.bg()+", commands: "+b.zg);else{!0===this.g.Mb.tl&&(this.g.Mb.tl=!1,a=!0);b=location.search;var c="&BRLG";r.sb(b,c)&&(b=b.replace(c,""),a=!0);c="&RLLG";r.sb(b,c)&&(b=b.replace(c,""),a=!0);c="&"+G.h;r.sb(b,c)?(b=b.replace(c,""),a=!0):(c=G.h,r.sb(b,c)&&(b=b.replace(c,""),a=!0));c="&CFG_Lang="+this.g.os();r.sb(b,c)?(b=b.replace(c,""),a=!0):(c="CFG_Lang="+
this.g.os(),r.sb(b,c)&&(b=b.replace(c,""),a=!0));"?"===b&&(b="");a&&"TRACE"!==this.g.getConfiguration().LogLevel&&(history.replaceState(null,"",location.pathname+b),window.document.title="");this.g.I(new Ve(this.g),0)}else this.S(b)},S:function(a){this.g.error("Error during initializing (3) the visualization: "+a)},className:function(){return"VisuOnlineInitState3"}};var Ve;Ve=function(a){this.g=a;this.Kh=null;this.Kw=u.m();this.g.dO(new Yb);this.Jr=!1;this.Uv=!0;this.Vq=!1;this.Ke=[]};
Ve.prototype={j:function(){var a=this.g.Za(),b=this.g.kb(),c=this.g.V().Pj;this.AE(c);null===this.Kh?(c=this.g.wb.empty()?new m(1,this.g.v.la,0,0):this.g.wb.pop(),c.mk?(this.Vq=!0,b.MP(c)):(this.Vq=!1,b.Yi(c))):b.KP(this.Kh.yp);this.oJ=u.m();a.rb(b.mb(),this)},Qr:function(){return null===this.Kh&&!this.Jr},Pb:function(a){if(this.Vq)this.g.I(this.Zv(),this.uv());else{a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).Ti(this.Kh);var b=this;a instanceof ra?a.bg()?(this.Kh=null,this.Uv&&(this.g.V().Vy(),this.Uv=
!1),this.Jr=!0,this.g.V().Gn(a,function(){b.Jr=!1;b.g.I(b.Zv(),b.uv())},function(c){return b.Il(c)}),this.g.De()):(this.Kh=a,this.g.I(this,0)):this.S(a)}},Zv:function(){return!this.g.v.Go&&4E3<=u.m()-this.Kw?(this.Kw=u.m(),new Ae(this.g,this)):null!==this.g.i?new ue(this.g,this):this},uv:function(){var a=this.g.wb;if(null!==this.g.i&&3===this.g.i.direction)return this.g.getConfiguration().UpdateRate;if(a.empty()&&null===this.g.i){var b=u.m(),c=this.g.getConfiguration().UpdateRate;a=b-a.Mw;return 0<=
a&&a<Math.min(2*c,500)?Math.max(10,c/5):Math.max(10,c-(b-this.oJ))}return 0},AE:function(a){a.HK()},S:function(a,b){var c=!1,d=!1,e="";"number"===typeof b?b>=H.h&&100>=b&&(d=!0,e="Err="+b):"Client id not present or no longer valid"===a?(d=!0,e="Err=1000"):"Unexpected format of service: 6"===a&&(d=!0,e="Err=1001");d&&this.g.Mb.gM()&&(this.g.Mb.wP(!0),b=this.g.Mb.ru,b+=location.pathname,b+=location.search,b+="#CKT="+this.g.Mb.mu,"TRACE"===this.g.getConfiguration().LogLevel&&(b+="#"+e),location.assign(b),
c=!0);!1===c&&("Unexpected format of service: 6"===a?this.g.xA():this.g.error("Error while processing the visualization: "+a))},Il:function(a){var b=-1;this.g.oa&&(b=this.g.Th.Bm);return-1!==b?(this.Ke.length=0,this.Ix(a),a instanceof uc&&(a=a.oc(),b=this.g.Ov.D(b,a),void 0!==b&&null!==b&&this.Ix(b),this.g.Th.$C()),this.Ke):null},Ix:function(a){this.Ke.push(a)},className:function(){return"VisuOnlineState"}};var We;We=function(a){this.g=a;this.ZI=0};
We.prototype={j:function(){var a=this.g.Za(),b=this.g.kb();b.LP(this.g.v.la);a.rb(b.mb(),this)},Pb:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).$M();"number"===typeof a?0===a?(v.m("Successfully finished visu registration: "+this.g.v.la),a=this.g.Lz(),""!==a?(this.g.Mb.tl=!0,this.g.I(new Pe(this.g,a),0)):this.g.I(new Se(this.g),0)):1===a?(0===this.ZI++%20&&v.info("Still polling the registration of the visualization. Is the visu stopped?"),this.g.I(this,this.g.getConfiguration().PollingRegistrationInterval)):
this.S("Unexpected return value: "+a):this.handleError(a)},handleError:function(a){"The maximum number of visualization clients is already connected. Please try again later."===a||"Not enough memory in the PLC to create the client."===a?this.g.ZB()&&""!==this.g.v.zc&&this.g.v.zc!==E.J?this.QL(a):this.pL(a):this.S(a)},QL:function(a){"The maximum number of visualization clients is already connected. Please try again later."===a?(a=new Tb(0,this.g.v.Ee,2,248),this.g.I(new ob(this.g,a,!0),0)):"Not enough memory in the PLC to create the client."===
a&&(a=new Tb(0,this.g.v.Ee,2,247),this.g.I(new ob(this.g,a,!0),0))},S:function(a){this.g.error("Visu registration in the plc failed: "+a,!0)},pL:function(a){this.g.error(a)},className:function(){return"VisuPollingRegistrationState"}};var Ee;Ee=function(a){this.g=a};
Ee.prototype={j:function(){var a=this.g.Za(),b=this.g.kb(),c=this.g.getConfiguration();b.NP(c.Application,c.ClientName,this.g.v.Ko,this.g.Hc);a.rb(b.mb(),this)},Pb:function(a){a=(new Xb(a,this.g.v.Fa,this.g.ub.tb)).aN();"number"===typeof a?(v.m("Successful first visu registration step: "+a),this.g.v.la=a,window.ProgrammingSystemAccess&&window.ProgrammingSystemAccess.notifyValidExternId(a),this.g.getConfiguration().CasFactoryName&&this.Ik(),a=new We(this.g),this.g.I(a,this.g.getConfiguration().PollingRegistrationInterval)):
"no rights"===a?this.g.xA():this.S(a)},S:function(a){this.g.error("Visu registration in the plc failed: "+a)},className:function(){return"VisuRegistrationState"},Ik:function(){var a=this.g.v;if(null!==a&&a.la!==E.m&&(a.mh!==E.wa||this.Hc)){var b=this.g.kb(a);b.ht(a.la);this.g.Za().Ik(b.mb())}}};var Je;Je=function(a,b,c){this.g=a;this.Xa=b;this.Bb=c};
Je.prototype={IB:function(){var a=window.document.createElement("div"),b=this.le("Ok"),c=this.le("Cancel"),d=this.ZE(),e=this;b.addEventListener("click",function(){e.hI(a,d.username,d.password)},!1);c.addEventListener("click",function(){e.Qg(a)},!1);a.style.boxShadow=a.style.WebkitBoxShadow="2px 2px 6px 6px rgba(0,0,0,0.5)";a.align="center";a.appendChild(d.form);a.appendChild(b);a.appendChild(c);window.document.body.appendChild(a);u.jd(a,this.Ru(300,200));a.style.zIndex=300;a.style.backgroundColor=
"#d4d0c8";d.username.focus()},ZE:function(){var a=window.document.createElement("table"),b=window.document.createElement("input"),c=window.document.createElement("input"),d=window.document.createElement("form");b.autocomplete="username";c.type="password";c.autocomplete="current-password";a.border="0";a.appendChild(this.mv("Username: ",b));a.appendChild(this.mv("Password: ",c));d.appendChild(a);return{form:d,table:a,username:b,password:c}},mv:function(a,b){var c=window.document.createElement("tr"),
d=window.document.createElement("td");d.appendChild(window.document.createTextNode(a));c.appendChild(d);d=window.document.createElement("td");d.appendChild(b);c.appendChild(d);return c},Ru:function(a,b){var c=this.g.V().lf();return new t((c.s+c.T-a)/2,(c.u+c.ca-b)/2)},av:function(a){window.document.body.removeChild(a)},hI:function(a,b,c){this.av(a);this.g.JA(!1);this.Xa.Error=0;this.g.I(new De(this.g,b.value,c.value,this.Bb,0,this.Xa),0)},Qg:function(a){this.g.bt("The user did not provide credentials.",
"No credentials");this.av(a)},le:function(a){var b=window.document.createElement("input");b.type="button";b.value=a;return b}};var He;He=function(a){this.cc=this.pd=null;this.ha=!0;this.nI=a;this.Fl=null;this.Fg=this.yi=!1;this.Gc=null;this.lk=-1;this.Jq=0};
He.prototype={Nt:function(a){var b;if(null!==a){if(this.Fl=a)this.pd=new Uint8Array(this.Fl),this.cc=new sb(this.Fl,this.ha,this.nI),65279===this.cc.getUint16()&&(this.yi=!0),this.Fg=!0;a=this.DG();if(null!==a&&(a=a.split(";"),2<=a.length&&(this.Jq=a.length,"ID"===a[0].toUpperCase()&&"DEFAULT"===a[1].toUpperCase()&&2<a.length)))for(this.Gc=[],b=2;b<a.length;b++)this.Gc.push(a[b])}},TB:function(a,b,c,d){var e=null,f,g=a.toUpperCase();if(this.Fg&&-1!==this.lk&&null!==this.Gc){for(a=0;a<this.Gc.length&&
this.Gc[a].toUpperCase()!==g;a++);if(0<=a&&a<this.Gc.length){d?f=b:f="$"+b+"$";for(this.cc.seek(this.lk);;){b=this.ew();if(null===b)break;b=b.split(";");if(b.length===this.Jq&&(d=!1,c?r.iD(b[1],f)&&(d=!0):b[1]===f&&(d=!0),d)){e=b[2+a];break}}if(null!==e&&r.sb(e,"$"))for(b=e.split("$"),e="",c=0;c<b.length;c++)e=e.concat("",b[c])}}return e},SB:function(a,b){var c=null;var d=a.toUpperCase();if(this.Fg&&-1!==this.lk&&null!==this.Gc){for(a=0;a<this.Gc.length&&this.Gc[a].toUpperCase()!==d;a++);if(0<=a&&
a<this.Gc.length)for(this.cc.seek(this.lk);;){d=this.ew();if(null===d)break;d=d.split(";");if(d.length===this.Jq&&d[0]===b){c=d[2+a];break}}}return c},DG:function(){var a=null;if(this.Fg){this.cc.seek(this.yi?2:0);var b=this.cw();-1!==b&&(a=this.bw(b),this.lk=this.cc.ga())}return a},ew:function(){var a=null;if(this.Fg){var b=this.cw();-1!==b&&(a=this.bw(b))}return a},bw:function(a){a=this.cc.ja(a,this.yi);var b=this.cc.ga();b=this.yi?b+4:b+2;this.cc.seek(b);return a},cw:function(){for(var a=this.cc.ga(),
b=-1,c;!this.cc.kf();)if(c=this.om(),"\r"===c){this.cc.kf()||(c=this.om(),"\n"===c&&(b=this.cc.ga()-a,this.yi?(b-=4,b/=2):b-=2,this.cc.seek(a)));break}return b},om:function(){return this.yi?String.fromCharCode(this.cc.getUint16()):String.fromCharCode(this.cc.getUint8())},className:function(){return"LocalizedTextsFileRead"}};var Ge;Ge=function(a){this.Vd=null;this.Td=this.Ud=0;this.Od=this.od=4294967295;this.wg="";this.Dk=this.Uh=!1;this.ha=a};
Ge.prototype={TC:function(a){var b=0;this.Vd=null;if(null!==a&&a){var c=new DataView(a);if(14<c.byteLength){var d=c.getUint8(b);b+=2;if(1===d&&(d=c.getUint8(b),1===d&&!0===this.ha||0===d&&!1===this.ha)){b+=2;this.Ud=c.getUint16(b,this.ha);this.Td=c.getUint16(b+2,this.ha);b+=4;var e=c.getUint8(b);d=c.getUint8(b+1);var f=c.getUint8(b+2);var g=c.getUint8(b+3);b+=4;this.Od=e<<24;this.Od|=d<<16;this.Od|=f<<8;this.Od|=g;e=c.getUint8(b);d=c.getUint8(b+1);f=c.getUint8(b+2);g=c.getUint8(b+3);b+=4;this.od=
e<<24;this.od|=d<<16;this.od|=f<<8;this.od|=g;d=c.getUint16(b,this.ha);b+=2;if(0<d){f=Array(d);for(e=0;e<d;e++)f[e]=c.getUint8(b),b+=1;this.wg=String.fromCharCode.apply(null,f)}else this.wg="";e=c.getUint16(b,this.ha);b+=2;this.Uh=e&1?!0:!1;this.Dk=e&2?!0:!1;e=c.getUint16(b,this.ha);b+=2;c=c.getUint32(b,this.ha);b+=4;this.Vd=new ra(e,c,0);this.Vd.Fd().xn(a,b,c);this.Vd.finish();v.h("The paintbuffer of the login page has been read from the file, command: "+e+", dataSize: "+c)}}}},className:function(){return"PaintBufferFileRead"}};
var Ie;Ie=function(a,b,c){this.g=a;this.Xa=b;this.ba=c;this.wj=""};
Ie.prototype={MB:function(a,b){var c=a.ka,d=this,e=!1,f=a.oc(),g=null;var h=null;var k=this.ba;k.mo("");this.wj="";h=this.$h(c,"$USERNAME_PH$");var q=this.$h(c,"$USERNAME_STAR_PH$");if("$USERNAME$"===c||"$USERNAME_STAR$"===c||"$USERNAME_PH$"===h||"$USERNAME_STAR_PH$"===q){var n="";"$USERNAME_PH$"===h&&(n=this.Ue(k.Lb,h,!0,!1));"$USERNAME_STAR_PH$"===q&&(n=this.Ue(k.Lb,q,!0,!1));null!==n&&""!==n&&k.mo(n);null===k.af?(g=this.Ex(f,"$USERNAME_STAR$"===c||"$USERNAME_STAR_PH$"===q,a),k.LO(g)):b&&(k.af.Be(f),
g=k.af);null!==g&&(k.io(g),e=!0)}if(!1===e){h=this.$h(c,"$PASSWORD_PH$");q=this.$h(c,"$PASSWORD_CLEARTEXT_PH$");if("$PASSWORD$"===c||"$PASSWORD_CLEARTEXT$"===c||"$PASSWORD_PH$"===h||"$PASSWORD_CLEARTEXT_PH$"===q)n="","$PASSWORD_PH$"===h&&(n=this.Ue(k.Lb,h,!0,!1)),"$PASSWORD_CLEARTEXT_PH$"===q&&(n=this.Ue(k.Lb,q,!0,!1)),null!==n&&""!==n&&k.mo(n),null===k.$e?(g=this.Ex(f,"$PASSWORD$"===c||"$PASSWORD_PH$"===h,a),k.JO(g)):b&&(k.$e.Be(f),g=k.$e);null!==g&&(k.io(g),e=!0)}if(!1===e){h=this.Wp(c,"$LANG_SELECTOR$");
if("$LANG_SELECTOR$"===c||"$LANG_SELECTOR$"===h)null===k.Of?(g=this.yI(f,a),g.xc().addEventListener("change",function(){var J=d.ba.Of;null!==J&&(J=J.xc().value,d.ba.fl(J))},!1),k.IO(g)):b&&(k.Of.Be(f),g=k.Of);null!==g&&(k.io(g),e=!0)}if(!1===e&&(h=this.Wp(c,"$LANG$"),q=this.Wp(c,"$LANG_DEF$"),"$LANG$"===c||"$LANG$"===h||"$LANG_DEF$"===c||"$LANG_DEF$"===q)){if(""===this.wj)n=G.wa;else{n=this.wj;var B="";h=c.split("$");5===h.length&&(B=h[3])}null===k.On(n)?(("$LANG_DEF$"===c||"$LANG_DEF$"===q)&&""!==
n&&this.g.Ez()&&k.fl(n),g=this.nk(),g.Ky(n),g.xc().addEventListener(r.Hb()?"pointerup":"mouseup",function(){d.ba.fl(this.id)},!1),k.HO(n,g)):b&&(k.On(n).Be(f),g=k.On(n));n=this.Ue(k.Lb,"$LANG$$"+n+"$",!0,!1);null!==n&&""!==n&&(B=n);k.fd().pc(B);null!==g&&(k.fh(g),e=!0)}!1===e&&"$SYS_ERROR$"===c&&(g=k.fd(),e=!0,h="",!1===this.g.Tv&&this.Xa.Error!==E.h&&(h=k.CL(this.Xa.Error,k.Lb),e=!1),g.pc(h),g.Ps(e),null!==k.Kq&&k.Kq.Ps(e),e=!0);if(!1===e&&(h=this.$h(c,"$LOGIN_CUSTOMIZED$"),"$LOGIN$"===h||"$LOGIN_DOT$"===
h||"$LOGIN_EMPTY$"===h||"$LOGIN_OK$"===h||"$LOGIN_CUSTOMIZED$"===h)){null===k.Pg?(g=this.nk(),g.xc().addEventListener(r.Hb()?"pointerup":"mouseup",function(){d.ba.SN(!0)},!1),k.GO(g)):b&&(k.Pg.Be(f),g=k.Pg);n=this.Ue(k.Lb,h,"$LOGIN_CUSTOMIZED$"===h,!1);if(null!==n&&""!==n)k.fd().pc(n);else switch(h){case "$LOGIN$":k.fd().pc("LOGIN");break;case "$LOGIN_DOT$":k.fd().pc("...");break;case "$LOGIN_EMPTY$":k.fd().pc(" ");break;case "$LOGIN_OK$":k.fd().pc("OK");break;case "$LOGIN_CUSTOMIZED$":k.fd().pc(k.gn)}null!==
g&&(k.fh(g),e=!0)}if(!1===e){h=this.$h(c,"$CANCEL_CUSTOMIZED$");if("$CANCEL$"===h||"$CANCEL_DOT$"===h||"$CANCEL_EMPTY$"===h||"$CANCEL_CUSTOMIZED$"===h)if(null===k.Mf?(g=this.nk(),g.xc().addEventListener(r.Hb()?"pointerup":"mouseup",function(){d.ba.RN(!0)},!1),k.FO(g)):b&&(k.Mf.Be(f),g=k.Mf),n=this.Ue(k.Lb,h,"$CANCEL_CUSTOMIZED$"===h,!1),null!==n&&""!==n)k.fd().pc(n);else switch(h){case "$CANCEL$":k.fd().pc("CANCEL");break;case "$CANCEL_DOT$":k.fd().pc("...");break;case "$CANCEL_EMPTY$":k.fd().pc(" ");
break;case "$CANCEL_CUSTOMIZED$":k.fd().pc(k.gn)}null!==g&&(k.fh(g),e=!0)}if(!1===e&&(h=this.JG(c,"$URL$"),"$URL$"===h)){h=B=q="";var z=c.split("$");n=0;1<z.length&&"URL"===z[1]&&(q=z[2],n=this.Ue(k.Lb,q,!1,!0),null!==n&&""!==n&&(q=n),2<z.length&&(B=z[3],3<z.length&&(h=z[4])),n=k.PL(),null===k.Iz(n)?(g=k.Gx instanceof Ea?this.Fx(k.Qn(),a):this.Fx(f,a),g.pc(q),g.mP(B,"replace"===h?!1:!0),g.Ui("transparent"),k.KO(n,g)):b&&(g=k.Iz(n),g.Be(f)));null!==g&&(k.io(g),e=!0)}!1===e&&(n=this.Ue(k.Lb,c,!1,!0),
null!==n&&""!==n&&a.pc(n))},$h:function(a,b){var c=a;0===c.indexOf(b)&&(c.length>b.length&&"$"===c.charAt(c.length-1)?(this.ba.mo(a.substring(b.length,c.length-1)),c=b):c="");return c},Wp:function(a,b){var c=a;0===c.indexOf(b)&&(a=a.split("$"),3<a.length?(this.wj=a[2],c=b):0>a.length&&(c=""));return c},Ue:function(a,b,c,d){var e=this.ba.Ng;return""!==a&&null!==e&&(a=e.TB(a,b,c,d),null!==a)?a:""},JG:function(a,b){0===a.indexOf(b)&&(a.length>b.length&&"$"===a.charAt(a.length-1)?a=b:a="");return a},
Ex:function(a,b,c){a=new ve(a,b,this.g.V());b=this.ba;a.jg(b.Zg(),b.$g());a.al(c.ms(),c.qs());a.kg(b.Sn());a.OO(b.gn);a.Ui(b.Vh);a.setColor(b.Yg());return a},yI:function(a,b){a=new xe(a,this.g.V());var c=this.ba.Ng,d=this.ba,e=[];a.jg(d.Zg(),d.$g());a.al(b.ms(),b.qs());a.kg(d.Sn());a.Ui(d.Vh);a.setColor(d.Yg());null!==c&&(null!==c.Gc&&(e=c.Gc.slice()),a.AO(e));b=this.wj;""!==b?this.g.Ez()?d.fl(b):a.$A(d.Lb):a.$A(d.Lb);return a},nk:function(){var a=this.ba,b=new te(a.Qn(),this.g.V(),null);b.setRadius(a.LL(a.Qn().C(),
a.Qn().B()));b.PN(a.Me);b.ON(a.uf);b.kg(a.Sn());b.QN(1<a.se?a.se:a.se+1);return b},Fx:function(a,b){var c=this.ba;a=new ye(a,this.g.V());a.jg(c.Zg(),c.$g());a.al(b.ms(),b.qs());a.kg(c.Sn());a.Ui(c.Vh);a.setColor(c.Yg());return a},className:function(){return"PlaceHoldersHelper"}};var Xe;Xe=function(a,b){this.g=a;this.xm=this.ke=null;this.bb=[];this.jb=-1;this.Kj=[];this.vb=b;this.xI=r.Hb();this.mz=function(c){c.preventDefault()};this.Ox(this.bb,!1)};
Xe.prototype={register:function(a,b){this.ke=a;this.xm=b},nc:function(){return this.g.nc()},handleEvent:function(a,b){var c=this.xI;switch(b){case K.J:return c?this.Om(a,!1):this.Qf(a.pb,!1);case K.h:return c?this.hk(a,!1):this.Qf(a.pb,!1);case K.m:return c?this.gk(a,!1):this.Qf(a.pb,!1);default:v.warn(u.h("BrowserTouchEventHandling.handleEvent. Unknown event: {0}",b))}return!1},lb:function(){this.Kp();this.uk(this.bb);this.uk(this.Kj)},ah:function(){return this.g.oa?u.fb():this.vb.ah()},Nx:function(a){var b;
for(b=0;b<a.length;++b)this.ah().addEventListener(a[b].e,a[b].Ia,a[b].c)},uk:function(a){var b;for(b=0;b<a.length;++b)this.ah().removeEventListener(a[b].e,a[b].Ia)},Ox:function(a,b){var c=b?"Capturing ":"";r.Hb()?(v.h(c+"Touchsupport using PointerEvents"),this.bG(a,b),this.Nx(a)):"ontouchstart"in window?(v.h(c+"Touchsupport using TouchEvents"),this.cG(a,b),this.Nx(a)):v.warn("No touch support")},cG:function(a,b){if(!(this.vb instanceof Jb)){var c=this,d=function(e){c.Qf(e,b)};a.push({e:"touchstart",
Ia:d,c:b});a.push({e:"touchmove",Ia:d,c:b});a.push({e:"touchend",Ia:d,c:b})}},bG:function(a,b){if(!(this.vb instanceof Jb)){var c=this;a.push({e:"pointerdown",Ia:function(d){c.dI(new Lb(d),b)},c:b});a.push({e:"pointermove",Ia:function(d){c.gk(new Lb(d),b)},c:b});a.push({e:"pointerup",Ia:function(d){c.hk(new Lb(d),b)},c:b})}},II:function(){0<this.Kj.length||!this.g.oa||this.vb instanceof Jb||this.Ox(this.Kj,!0)},FE:function(){0<this.Kj.length||!this.g.oa||this.vb instanceof Jb||this.uk(this.Kj)},RJ:function(a,
b){var c;for(c=0;c<a.length;++c)if(a[c].identifier===b)return!0;return!1},gp:function(a,b,c){var d;for(d=0;d<a.length;++d){var e=a[d];b.Wg(this.vb.Yr(new Lb(e),c))}},zu:function(a,b,c){var d;for(d=0;d<a.length;++d){var e=a[d];this.RJ(b,e.identifier)||c.Wg(this.vb.Yr(new Lb(e),Y.he))}},rF:function(){null!==this.g.getConfiguration()&&this.g.getConfiguration().WorkaroundDisableMouseUpDownAfterActiveTouch&&this.g.Jm.uO(u.m()+this.g.getConfiguration().WorkaroundSetIgnoreTimeMsForMouseUpDownAfterActiveTouch)},
Qf:function(a){if(!this.g.Yn()&&null!==this.ke){this.ky(a);this.rF();this.g.cQ().Cn(a);var b=new Ye;"touchstart"===a.type?(0===this.nc().Size()&&this.vv(),this.gp(a.changedTouches,b,Y.Lc),this.zu(a.targetTouches,a.changedTouches,b,Y.he)):"touchmove"===a.type?this.gp(a.targetTouches,b,Y.he):(this.gp(a.changedTouches,b,Y.Mc),this.zu(a.targetTouches,a.changedTouches,b,Y.he),0===a.targetTouches.length&&this.Hv());this.ke(b)}},dI:function(a,b){if(!this.g.Yn()){var c=a.pb;if(this.Om(a,b)&&this.g.oa){var d=
this;this.g.Sh.Tr(c,d,function(e){d.gk(new Lb(e),b)},function(e){d.hk(new Lb(e),b)})}}},Om:function(a,b){var c=a.pb;return"touch"===c.pointerType?(this.g.ob.yM(c),this.g.Qd.Cn(c),0===this.nc().Size()&&this.vv(),this.vs(c,b)?(v.warn(u.h("Unexpected Pointerdown event for id: {0}; Ignored!",c.pointerId)),!1):this.aq(a,b,Y.Lc)?!0:!1):!1},hk:function(a,b){if(this.g.Yn())return!1;var c=a.pb;if(!this.vs(c,b))return!1;if("touch"===c.pointerType){this.g.ob.zM(c);if(!this.aq(a,b,Y.Mc))return!1;0===this.nc().Size()&&
this.Hv();return!0}return!1},gk:function(a,b){if(this.g.Yn())return!1;var c=a.pb;return this.vs(c,b)?"touch"===c.pointerType?this.aq(a,b,Y.he)?!0:!1:!1:!1},aq:function(a,b,c){this.bJ(c);var d=this.vb.Yr(a,c);this.$J();switch(c){case Y.Lc:this.nc().NC(d);break;case Y.he:case Y.Mc:this.nc().Gt(d.id()),this.nc().yD(d)}var e=this.EG();if(b&&c===Y.Lc)if(this.xm(e))d.Ms(!0);else return this.nc().Wt(d),!1;e.cO(a.pb);this.ke(e);c===Y.Mc&&this.nc().Wt(d);this.ky(a.pb);return!0},bJ:function(a){a==Y.Lc&&0<this.g.getConfiguration().$o&&
u.m()-this.DH>this.g.getConfiguration().$o&&0<this.nc().Size()&&(v.warn("Touchhandling: Sanitycheck discarding obsolete events"),this.nc().oB(),null!==this.g.oe&&this.g.oe.vN());this.DH=u.m()},vs:function(a,b){a=u.nf(a);if(-1===this.nc().il(a))return!1;a=this.nc().Gt(a);return b?a.Vj:!0},EG:function(){var a=new Ye;this.nc().qB(a);return a},$J:function(){this.nc().xD(Y.he)},ky:function(a){a.preventDefault();a.stopPropagation()},Hv:function(){var a=this;this.Tu();this.jb=window.setTimeout(function(){a.Kp()},
500)},Tu:function(){-1!==this.jb&&(window.clearTimeout(this.jb),this.jb=-1)},Kp:function(){this.Tu();u.fb().removeEventListener("contextmenu",this.mz)},vv:function(){this.Kp();u.fb().addEventListener("contextmenu",this.mz)}};var Lb;Lb=function(a,b,c,d){void 0===d&&(d=null);void 0===b&&(b=u.nz(a)?u.aj(a.target,u.fb()).offset(r.Oo(a)):u.cj(a)?u.aj(a.target,u.fb()).offset(r.vh(a)):new t(-1,-1));void 0===c&&(c=b);this.pb=a;this.si=b;this.vd=c;this.yb=d;this.Hx=null};
Lb.prototype={PO:function(a){this.Hx=a},Ca:function(){return this.yb},Kd:function(a){this.yb=a}};var Ze;Ze=function(a){this.ge=this.Rc=null;a||(a=Y.Nc);this.yb=null;this.no(a)};
Ze.prototype={type:function(){if(null===this.Rc)throw Error("Unexpected call. Gesture data not yet assigned");return this.Rc.type()},Kd:function(a){this.yb=a},Ca:function(){return this.yb},no:function(a){if(null===this.Rc||this.type()!==a)switch(a){case Y.Ge:this.Rc=new $e;break;case Y.Nc:this.Rc=new af;break;case Y.rg:this.Rc=new bf;break;case Y.ie:this.Rc=new cf(!1);break;case Y.Nd:this.Rc=new cf(!0);break;default:throw Error("Unexpected gesture type");}},data:function(){return this.Rc},clone:function(){var a=
new Ze;null!==this.Rc&&(a.Rc=this.Rc.clone());null!==this.yb&&(a.yb=this.yb);a.ge=this.ge;return a}};var Y;Y={he:1,Mc:2,Lc:4,Al:8,qu:16,Jo:5,Nc:0,rg:1,Ge:2,ie:3,Nd:4,qg:0,zl:1,wD:2,yl:4,ou:8,pu:16,XP:255,ld:0,ij:5,jj:10};Y.Kc=Y.jj;Y.kj=11;Y.fe=12;Y.Fe=13;Y.hD=Y.Fe;var df;df=function(){this.qo=this.ej=this.jl=this.sl=this.uo=!1};var ef;ef=function(){this.xb=[]};
ef.prototype={vA:function(a,b){v.m("Record GesturesTouchEvent");!this.empty()&&this.vH(a)&&b?this.xb[this.xb.length-1]=a:this.xb.push(a)},nN:function(a,b){v.m("Replay");for(var c;"undefined"!==typeof(c=this.xb.shift());)a.Uk(c,b)},empty:function(){return 0===this.xb.length},vH:function(a){var b=this.xb[this.xb.length-1],c;if(a.touches().length!==b.touches().length)return!1;for(c=0;c<a.touches().length;++c){var d=a.touches()[c];var e=b.touches()[c];if(d.id()!==e.id()||d.flags()!==e.flags()||d.Z(Y.Mc)||
d.Z(Y.Lc))return!1}return!0}};var ff;ff=function(a,b,c,d,e,f){f=f?f:null;this.za=a;this.ib=d;this.Sd=new gf(b,c);this.vd=e;this.yb=f;this.Vj=!1;this.yj=null};
ff.prototype={id:function(){return this.za},Ca:function(){return this.yb},Kd:function(a){this.yb=a},Ms:function(a){this.Vj=a},CO:function(a){this.Sd.XN(a)},location:function(){return this.Sd},bO:function(a){this.yj=a},ft:function(a){this.yj=a;this.Sd.ft(a)},flags:function(){return this.ib},Bi:function(a){this.ib|=a},Z:function(a){return(this.ib&a)===a},update:function(a){this.ib=a},clone:function(){var a=new ff(this.id(),this.location().current(),this.location().pi,this.flags(),this.vd,this.Ca());
a.Ms(this.Vj);return a}};var Ye;Ye=function(){this.Ra=[];this.QJ=u.m();this.re=null;this.ux=!1;this.pb=null};Ye.prototype={touches:function(){return this.Ra},TA:function(a){this.re=a},NO:function(a){this.ux=a},cO:function(a){this.pb=a},event:function(){return this.pb},Wg:function(a){this.Ra.push(a)},timeStamp:function(){return this.QJ}};var gf;gf=function(a,b){this.Lh=a;this.pi=new t(a.X,a.Y);void 0!==b&&null!==b&&(this.pi=new t(b.X,b.Y));this.Gw=null};
gf.prototype={XN:function(a){this.Lh=a},ft:function(a){this.Lh.X+=a.X;this.Lh.Y+=a.Y},current:function(){return this.Lh},Sk:function(){return this.Gw},SA:function(a){this.Gw=a}};var hf;
hf={ks:function(a,b){var c=0<b.touches().length,d;a.data().NK();for(d=0;d<b.touches().length;++d){var e=b.touches()[d];a.data().Wg(e.clone());e.Z(Y.Mc)||(c=!1)}return c},yK:function(a,b){var c;for(c=0;c<a.touches().length;++c)if(a.touches()[c].Z(b))return!0;return!1},Ci:function(a,b){var c;for(c=0;c<a.touches().length;++c)if(!a.touches()[c].Z(b))return!1;return!0},lz:function(a){var b=Y.ou|Y.pu;1===a.touches().length?b|=Y.zl|Y.yl:2===a.touches().length&&(b|=Y.wD);return b},Qk:function(a){return a===
Y.ie||a===Y.Nd}};var kb;kb=function(a,b){var c=this;this.g=a;this.vb=b;this.NG=!(b instanceof Jb);this.Dj=new Xe(a,this.vb);this.Dj.register(function(d){c.ke(d)},function(d){return c.xm(d)});this.yd=null;this.xa=new jf;this.er=-1;this.$x("none");this.rq=new kf(this.g.Uf)};
kb.prototype={lb:function(){this.$x("auto");this.Dj.lb()},handleEvent:function(a,b){return this.Dj.handleEvent(a,b)},tn:function(a,b){this.xa.Nr(a,b);this.zE(a)},Fs:function(a){this.xa.kN(a)},Ty:function(){this.xa.clear();this.EE()},ko:function(a){this.g.N.ko(a);a&&(this.yd=this.vb.En(!0))},GL:function(){return this.g.Uf.ps()},Fz:function(){return this.g.Uf.In()},Rn:function(){return this.g.Uf.Rn()},bo:function(a,b,c){a=m.Gb(a,this.g.v.la,b);void 0!==c&&null!==c&&a.Kd(c);this.vb.dd(a)},pM:function(){return this.rq.active()},
dB:function(){this.rq.stop()},wz:function(a,b,c){var d=new df;c=this.oF(a,b,c);this.oq(a,Y.ou)&&this.xa.sL(b,c,this.NG)?d.qo=!0:this.oq(a,Y.pu)&&this.xa.xK(b,c)?d.ej=!0:this.oq(a,Y.zl|Y.yl)&&(a=[],this.xa.IK(b,a,c),d.sl=a[0],d.jl=a[1]);d.uo=!this.xE();return d},oF:function(a,b,c){if(this.g.oa){if(void 0===c){a=b.touches();if(0<a.length)for(b=0;b<a.length;b++)if(a[b]&&a[b].Vj)return R.ro;return 0}return c?R.ro:R.kB}return 0},ls:function(a,b,c){if(a>=Y.jj&&a<=Y.hD)if(b.type()===Y.Nc||b.type()===Y.rg){if(this.rG(a,
b,b.ge,c))return!0}else if(this.uH(b.type())&&this.sG(a,b,b.ge))return!0;return!1},Gk:function(){this.g.N.$K();!this.g.N.Xn()&&this.g.oe.buffer().empty()&&this.g.N.Us(!1)},$x:function(a){this.vb.ah().style.touchAction=a},xE:function(){return this.g.N.Xn()?(this.g.N.Us(!0),!1):!0},oq:function(a,b){return(a&b)===b},uH:function(a){return a===Y.Ge||hf.Qk(a)},uw:function(a){return a===Y.Nd},ww:function(a){return null!==a&&null!==a.da&&(a=a.da,a instanceof Db&&a.ye())?!0:!1},rG:function(a,b,c){var d=Z.ph;
if(a===Y.Kc){c=this.xa.uz(b);if(null===c)return!0;var e=c.da;if(null!==e&&e.Zn())return!0;this.ww(c)&&e.AK();b.ge=c;this.AJ(c);this.g.N.UL()}else if(a===Y.Fe||a===Y.fe)this.ww(c)?a=this.QG(c,b):null===c||b.type()===Y.Nc&&this.rq.start(this.g.V(),c,this.yd,b,this)||(this.Lv(d,b,c),this.Dx(b,c));if(null!==c){if(b.type()===Y.rg||b.type()===Y.Nc)d=b.data().Ny(c,a,this);Z.Ni(d,Z.mt)&&(d=Z.Ae(d,Z.xt))}a!==Y.fe&&(this.Lv(d,b,c),this.yd.bh(this.g.V(),c));return!1},QG:function(a,b){var c=a.da;var d=c.Ta;var e=
c.Ma;var f=d.style.left;var g=d.style.top;e=this.sJ(e,d,c,b);this.dB();this.Gk();c.Js();b.Rc.AN(e);this.uJ(a,b,d,f,g,e);return Y.fe},ty:function(a,b,c,d){var e=b.da;this.VJ(a,b,c);d.style.transition="";c||e.gB()},uJ:function(a,b,c,d,e,f){var g=this;var h=a.da;var k=h.Ma;c.style.transition="all 200ms ease-in-out";h.eB();this.TF(k,c,d,e)?setTimeout(function n(){g.ty(b,a,f,c);this.removeEventListener("transitionend",n)},0):c.addEventListener("transitionend",function B(){g.ty(b,a,f,c);this.removeEventListener("transitionend",
B)},!1)},TF:function(a,b,c,d){return a.ts()?b.style.left===c:b.style.top===d},VJ:function(a,b,c){c&&this.Vm(a,b)},sJ:function(a,b,c,d){var e=d.data().As();d=d.data().xe();var f=Math.abs(e.X)>Math.abs(e.Y);var g=Math.abs(e.Y)>Math.abs(e.X);if(a.ts()){if(b.style.left="0px",(Math.abs(e.X)>c.na/3||5<Math.abs(d.X))&&f){if(0<e.X){if(b.style.left=c.na+"px",!c.Wn())return b.style.left="0px",!1}else if(b.style.left=-c.na+"px",!c.Vn())return b.style.left="0px",!1;return!0}}else if(a.cA()&&(b.style.top="0px",
(Math.abs(e.Y)>c.qa/3||5<Math.abs(d.Y))&&g)){if(0<e.Y){if(b.style.top=c.qa+"px",!c.Wn())return b.style.top="0px",!1}else if(b.style.top=-c.qa+"px",!c.Vn())return b.style.top="0px",!1;return!0}return!1},qM:function(a,b){var c=this.yd.Qi(b);this.Dx(a,b);this.bo(4098,c,a.Ca())},sG:function(a,b,c){if(a===Y.Kc){c=this.xa.uz(b);if(null===c&&!this.uw(b.type()))return!0;b.ge=c;hf.Qk(b.type())&&this.Vm(b,c)}else if(null!==c||this.uw(b.type()))hf.Qk(b.type())?this.Vm(b,c):(a===Y.Fe||a===Y.fe)&&this.Vm(b,c);
return!1},Vm:function(a,b){b=a.data().createEvent(this.g.v.la,b,this.vb);null!==a.Ca()&&b.Kd(a.Ca());this.zv(b)},zv:function(a){this.vb.dd(a)},Dx:function(a,b){var c=a.data().createEvent(this.g.v.la,b,this.vb);c.VA(b.ya);null!==a.Ca()&&c.Kd(a.Ca());this.zv(c)},AJ:function(a){a.info().zoom().jo(1);a.info().scroll().hg(new t(0,0));this.g.N.fi||this.yd.Sr(this.g.V(),a.ya)},Lv:function(a,b,c){Z.Ni(a,Z.CC)&&this.uF(a,b,c);Z.Z(a,Z.Vo)&&(c.info().zoom().jo(c.info().zoom().Pa().uc),this.VD(b,c));Z.Z(a,Z.Uo)&&
c.info().zoom().jo(c.info().zoom().Pa().tc)},VD:function(a,b){this.Sw(Z.rh|Z.sh,b)},uF:function(a,b,c){b.type()===Y.rg?this.Sw(a,c):b.type()===Y.Nc&&this.HH(a,c)},Sw:function(a,b){var c=b.kz(),d=b.info().zoom();if(Z.Z(a,Z.fj))d.Vi(new t(d.Pe.X+c.s,d.Qc.Y));else if(Z.Z(a,Z.rh)){var e=d.Pe.X-(1-d.Bf)*d.Pe.X;d.Vi(new t(e,d.Qc.Y));b.info().scroll().hg(new t(d.Qc.X-d.Pe.X,b.info().scroll().Wa.Y))}Z.Z(a,Z.gj)?d.Vi(new t(d.Qc.X,d.Pe.Y+c.u)):Z.Z(a,Z.sh)&&(e=d.Pe.Y-(1-d.Bf)*d.Pe.Y,d.Vi(new t(d.Qc.X,e)),b.info().scroll().hg(new t(b.info().scroll().Wa.X,
d.Qc.Y-d.Pe.Y)))},HH:function(a,b){b.dA(a)},xm:function(a){var b=hf.lz(a);a=this.wz(b,a,!0);return!!(a.qo||a.jl||a.ej||a.sl)},ke:function(a){var b=this.g.getConfiguration();null!==b&&this.g.N.fq&&b.TouchHandlingActive&&(b.DebugOnlyPrintRawTouches&&this.KF(a),this.CE(a),null===this.yd&&(this.yd=this.vb.En(!1)),this.g.N.Zq?(this.g.oe.buffer().vA(a,!0),this.nr()):this.g.oe.Uk(a,this)&&(this.g.N.Zq&&this.g.oe.buffer().vA(a,!0),this.g.oe.buffer().empty()||this.nr()))},CE:function(a){hf.Ci(a,Y.Lc)?this.g.Jm.RA(!0):
hf.Ci(a,Y.Mc)&&this.g.Jm.RA(!1)},nr:function(){if(-1===this.er){var a=this;this.er=window.setTimeout(function(){a.jI()},25)}},jI:function(){this.er=-1;this.g.N.Xn()?this.nr():(this.g.oe.buffer().nN(this.g.oe,this),this.g.N.Us(!1))},KF:function(a){var b;var c=u.h("Touches ({0}): ",a.touches().length);for(b=0;b<a.touches().length;++b){var d=a.touches()[b];var e="";null!==d.Ca()&&(e=" ("+d.Ca().toString()+")");var f="D";var g="";d.Z(Y.he)?f="M":d.Z(Y.Mc)&&(f="U");d.Z(Y.Al)&&(g="P");c+=u.h("[{0}{1}{2} ({3}/{4}){5}] ",
g,f,d.id(),d.location().current().X,d.location().current().Y,e)}v.h(c)},zE:function(a){a.Z(R.ro)&&this.Dj.II()},EE:function(){this.Dj.FE()}};var kf;kf=function(a){this.jb=-1;this.ac=this.Cf=this.yd=this.cb=this.Tg=null;this.Ew=a};
kf.prototype={start:function(a,b,c,d,e){this.cb=a;this.Tg=b;this.yd=c;this.Cf=d.clone();this.ac=e;var f=this;this.jb=window.setInterval(function(){f.ke()},60);return-1!==this.jb},stop:function(){-1!==this.jb&&(window.clearInterval(this.jb),this.ac.qM(this.Cf,this.Tg),this.jb=-1,this.Cf=this.yd=this.cb=this.Tg=null)},active:function(){return-1!==this.jb},ps:function(){return this.Ew.ps()},In:function(){return this.Ew.In()},ke:function(){var a=this.Tg.info().scroll();1>Math.abs(a.xe().X)&&1>Math.abs(a.xe().Y)?
this.stop():(a.xe().$k(1-this.In()),a.xe().X=u.rz(a.xe().X),a.xe().Y=u.rz(a.xe().Y),a.Wa.offset(a.xe()),a=this.Tg.Ur(),this.Tg.dA(a),Z.Z(a,Z.xt)||Z.Z(a,Z.DC)&&Z.Z(a,Z.EC)?this.stop():this.yd.bh(this.cb,this.Tg))}};var ib;ib=function(){this.ey=0;this.qv=1;this.Vx=!0};ib.prototype={hP:function(a){this.ey=a},ps:function(){return this.ey},aO:function(a){this.qv=a},In:function(){return this.qv},eP:function(a){this.Vx=a},Rn:function(){return this.Vx}};var mb;
mb=function(){this.Zq=this.fq=!1;this.gq=0;this.fi=!1};mb.prototype={QA:function(a){this.fq=a},Us:function(a){this.Zq=a},UL:function(){this.gq++},$K:function(){this.gq--},Xn:function(){return 0<this.gq},ko:function(a){this.fi=a}};var Z;Z={ph:0,Vo:1,Uo:2};Z.VP=Z.Vo|Z.Uo;Z.fj=4;Z.gj=8;Z.rh=16;Z.sh=32;Z.CC=Z.fj|Z.gj|Z.rh|Z.sh;Z.DC=Z.fj|Z.rh;Z.EC=Z.gj|Z.sh;Z.xt=65536;Z.rt=131072;Z.st=262144;Z.pt=524288;Z.qt=1048576;Z.ut=2097152;Z.tt=4194304;Z.nt=Z.rt|Z.pt;Z.ot=Z.st|Z.qt;Z.so=Z.nt|Z.ot;Z.mB=Z.ut|Z.tt;
Z.mt=Z.mB|Z.so;Z.Ae=function(a,b){return a|b};Z.iN=function(a){return a&~Z.so};Z.Z=function(a,b){return(a&b)===b};Z.Ni=function(a,b){return 0!==(a&b)};var lb;lb=function(a){this.g=a};lb.prototype={Yr:function(a,b){b=this.QE(a,b,this);null!==a.Ca()&&b.Kd(a.Ca());return b},QE:function(a,b){return new ff(u.nf(a.pb),a.si,a.Hx,b,a.vd)},En:function(a){return this.g.oa?new lf:new mf(this.ah(),a)},ah:function(){return this.g.V().Zf().canvas},dd:function(a){this.g.dd(a)}};var Jb;
Jb=function(a,b,c){lb.call(this,a);this.jc=b;this.SH=c};Jb.prototype=Object.create(lb.prototype);Jb.prototype.constructor=Jb;Jb.prototype.En=function(){return this.jc};Jb.prototype.ah=function(){return this.SH};var jb;jb=function(a){var b;this.ma=new ef;this.sk=[];this.sk[0]=new nf;for(b=1;b<Y.Jo;++b)this.sk[b]=new of;this.gr();this.qr=new pf(a);this.N=new qf;this.Rh=new rf;this.Sj=null;this.IF=a.DebugOnlyPrintGestures};
jb.prototype={Uk:function(a,b){return 1>a.touches().length||a.touches().length>Y.Jo?!1:this.vF(a,b)},vN:function(){this.N.Hs();this.gr()},xH:function(a){return!this.Rh.Zh.ej&&hf.Ci(a,Y.Lc)},zw:function(a,b){return!b.pM()&&!this.Rh.Zh.ej&&hf.Ci(a,Y.Mc)},vF:function(a,b){var c=new Ze,d=!1;var e=this.wE(a,b);this.MD(a);this.aG(a);e&&(this.xH(a)&&this.TG(a,b),this.N.Ja.state()!==Y.Kc&&this.N.Ja.state()!==Y.kj||this.jG(a,b),this.N.Hs(),this.gr(),this.Rh.Zh.qo&&this.N.Ja.be().no(Y.ie));if(this.N.Ja.be().type()!==
Y.ie&&(e=a.touches().length-1,e=this.sk[e].Uk(this,a,c),e===Y.ij||e>=Y.jj)){if(e>=Y.jj)return null!==this.Sj?(this.zw(a,b)&&b.bo(4098,a.touches()[0].location().pi,a.touches()[0].Ca()),this.qk(this.Sj.state(),this.Sj.be(),a,b),this.Sj=null,this.qk(e,c,a,b)):(this.qk(e,c,a,b),this.zw(a,b)&&b.bo(4098,a.touches()[0].location().pi,a.touches()[0].Ca())),!0;this.N.Ja.assign(e,c);this.N.Ja.My(a);d=!0}if(!d)return this.Rh.Zh.uo||(e=this.kF(c,a),this.qk(e,c,a,b)),!0;this.Ip(Y.ld,c);return!1},TG:function(a,
b){var c=a.touches()[0].Ca();b.dB();null!==a.re&&a.ux&&(c=a.re.Ca());b.bo(4097,a.touches()[0].location().pi,c)},buffer:function(){return this.ma},VL:function(a){var b=new Ze(Y.Nd);a=a.clone();a.update(Y.Lc|Y.Al);b.data().Wg(a);this.Sj=new sf(b)},qk:function(a,b,c,d){if(this.N.Ja.state()!==Y.fe){var e=this.N.Ja.be().ge;this.yE(a,b);this.Ip(a,b);this.N.Ja.assign(a,b.clone());b.ge=e;e={delay:!1,callback:function(){d.ls(Y.fe,b)}};d.ls(a,b,e)&&(this.Ip(Y.fe,b),e.delay||d.ls(Y.fe,b),this.N.Ja.lo(Y.fe));
this.N.Ja.be().ge=b.ge;a!==Y.Fe&&this.N.Ja.My(c)}a===Y.Fe&&this.N.Hs()},yE:function(a,b){var c;if(a===Y.Kc&&b.type()===Y.Nd){a=!1;for(c=0;c<b.data().touches().length;++c)if(b.data().touches()[c].Z(Y.Al)){a=!0;break}if(!a)for(c=0;c<b.data().touches().length;++c)if(b.data().touches()[c].Z(Y.Lc)){this.N.Ja.qO(b.data().touches()[c].id());break}}if(this.N.Ja.Xv)for(c=0;c<b.data().touches().length;++c)if(b.data().touches()[c].id()===this.N.Ja.Fu){b.data().touches()[c].Bi(Y.qu);break}},kF:function(a,b){var c=
hf.Ci(b,Y.Mc);var d=this.N.Ja.be().type()===Y.ie?Y.ie:Y.Nd;a.no(d);hf.ks(a,b);return c?Y.Fe:this.N.Ja.state()===Y.Kc||this.N.Ja.state()===Y.kj?Y.kj:Y.Kc},gr:function(){var a;for(a=0;a<this.sk.length;++a)this.sk[a].lo(Y.ld)},aG:function(a){var b;for(b=0;b<a.touches().length;++b){var c=a.touches()[b];this.N.GP(c)||this.N.rK(c)||v.error("Could not store touch information; probably a touch release/up was missing")}},MD:function(a){var b;if(null!==a.event().currentTarget&&null!==a.re&&a.re instanceof Db&&
a.event().currentTarget!=a.re.U&&null!==a.re.Ta){var c=u.vz(a.re.Ta,a.event().currentTarget);for(b=0;b<a.touches().length;++b){var d=a.touches()[b];var e=d.location().current();e.X+=c.X;e.Y+=c.Y;d.CO(e);d.bO(c)}}},wE:function(a,b){return this.rH(a)?(this.Rh.EO(b.wz(hf.lz(a),a)),!0):!1},jG:function(a,b){hf.Qk(this.N.Ja.be().type())&&hf.ks(this.N.Ja.be(),a);this.qk(Y.Fe,this.N.Ja.be(),a,b)},rH:function(a){if(this.N.Ja.state()===Y.ld)return!0;if(hf.Qk(this.N.Ja.be().type()))return hf.Ci(a,Y.Lc);if(this.N.Ja.Bk.length!==
a.touches().length)return!0;var b;for(b=0;b<a.touches().length;++b)if(!this.N.Ja.bM(a.touches()[b].id()))return!0;return!1},Ip:function(a,b){if(this.IF){var c="";switch(a){case Y.ld:v.m("No gesture");return;case Y.ij:c="Gesture (candidate); ";break;case Y.Kc:c="Gesture (new); ";break;case Y.Fe:c="Gesture (finished); ";break;case Y.kj:return;case Y.fe:c="Gesture (cancelled); "}c+=b.data().Fn();null!==b.Ca()&&(c+=" IdStack: "+b.Ca().toString());v.m(c)}}};var tf;
tf=function(){this.fa=Y.ld;this.Cf=new Ze;this.Bk=[];this.Xv=!1;this.Fu=-1};tf.prototype={state:function(){return this.fa},lo:function(a){this.fa=a},be:function(){return this.Cf},qO:function(a){this.Xv=!0;this.Fu=a},assign:function(a,b){this.fa=a;this.Cf=b},My:function(a){var b;this.Bk=[];for(b=0;b<a.touches().length;++b)this.Bk.push(a.touches()[b].id())},bM:function(a){var b;for(b=0;b<this.Bk.length;++b)if(this.Bk[b]===a)return!0;return!1}};var rf;rf=function(){this.Zh=null};
rf.prototype={EO:function(a){this.Zh=a}};var sf;sf=function(a){this.fa=Y.Kc;this.Cf=a};sf.prototype={state:function(){return this.fa},be:function(){return this.Cf}};var qf;qf=function(){this.Jg=[];this.Ja=new tf};
qf.prototype={GP:function(a){var b;for(b=0;b<this.Jg.length;++b)if(this.Jg[b].id===a.id())return a.location().SA(this.Jg[b].Sk),a.Z(Y.Mc)?this.Jg.splice(b,1):this.Jg[b].Sk=a.location().Sk(),!0;return!1},rK:function(a){if(!a.Z(Y.Lc))return!0;if(this.Jg.length===Y.Jo)return!1;this.Jg.push({id:a.id(),Sk:a.location().current()});return!0},Hs:function(){this.Ja=new tf}};var pf;pf=function(a){this.nG=a.GesturesFlickPanThresholdPxPerSecond;this.uI=a.GesturesPanFlickTimeThresholdMs;this.tI=a.GesturesPanClickThresholdDistSquare};
pf.prototype={};var $e;$e=function(a){void 0===a&&(a=new t(0,0));this.kc=a;this.ef=void 0;this.vc=new t(0,0);this.zi=0};
$e.prototype={type:function(){return Y.Ge},clone:function(){var a=new $e(this.kc);a.Kk(this);return a},Fn:function(){return u.h("Flick: start({0}), overall move({1}), velocity {2}",u.Gb(this.kc),u.Gb(this.vc),this.zi)},createEvent:function(a,b){a=new m(2051,a,b.id(),0);b=p.D(12);var c=P.D(b,!0);c.K(this.kc.mc());c.K(this.vc.mc());c.K(this.zi);a.Fb(b);return a},Kk:function(a){this.kc=a.kc;this.ef=a.ef;this.vc=a.vc;this.zi=a.zi},start:function(){return this.kc},Xs:function(a){this.ef=a},Zs:function(){return this.ef},
setVelocity:function(a){this.zi=a},As:function(){return this.vc},gt:function(a){this.vc=a.lg(this.kc)}};var cf;cf=function(a){this.Ck=a;this.Ra=[]};
cf.prototype={type:function(){return this.Ck?Y.Nd:Y.ie},touches:function(){return this.Ra},NK:function(){this.Ra=[]},Wg:function(a){this.Ra.push(a)},clone:function(){var a=new cf(this.Ck);a.Ra=this.Ra.slice(0);return a},Fn:function(){var a="",b;var c=this.Ck?"TouchToMouse":"IEC-Touches";for(b=0;b<this.Ra.length;++b)if(2>b)a+=u.h("[{0}, {1}]({2}) ",b,this.Ra[b].flags(),u.Gb(this.Ra[b].location().current()));else{a+="...";break}return u.h("{0} ({1}): {2}",c,this.Ra.length,a)},createEvent:function(a,
b,c){var d=0,e,f=!0;var g=c.g.oa?12:0;var h=null;this.Ck||(d=b.id());var k=this.Ra.length;b=this.Ck?2054:2052;g=p.D((8+g)*this.Ra.length);var q=P.D(g,!0);for(e=0;e<this.Ra.length;++e){var n=this.Ra[e].location().pi;q.K(n.mc());n=255&this.LH(this.Ra[e]);this.Ra[e].Z(Y.he)||(f=!1);if(this.Ra[e].Z(Y.Al)||this.Ra[e].Z(Y.qu))n|=256;n|=(this.Ra[e].id()&65535)<<16>>>0;q.K(n)}if(c.g.oa){for(e=0;e<this.Ra.length;++e)if(n=this.Ra[e].Ca(),null!==n){if(null===h||h!==n)h=n;q.K(n.zb);q.K(n.Vb)}else q.K(0),q.K(0);
for(e=0;e<this.Ra.length;++e)q.K(this.Ra[e].vd.mc())}f&&b++;a=new m(b,a,d,k);a.Fb(g);!c.g.oa||2052!==b&&2053!==b||null!==h&&a.Kd(h);return a},LH:function(a){return a.Z(Y.he)?2:a.Z(Y.Mc)?3:a.Z(Y.Lc)?1:0}};var af;af=function(a){void 0===a&&(a=new t(0,0));this.kc=a;this.ef=void 0;this.vc=new t(0,0);this.Re=new t(0,0);this.Rw=0;this.Xx=!1};
af.prototype={AN:function(a){this.Xx=a},type:function(){return Y.Nc},clone:function(){var a=new af(this.kc);a.Kk(this);return a},Kk:function(a){this.kc=a.kc;this.ef=a.ef;this.vc=a.vc;this.Re=a.Re},Ny:function(a,b,c){var d=a.info().scroll(),e=this.kc.Ob(this.vc);b===Y.Kc&&d.$N(this.kc);b=this.GH(this.Re,c,a);var f=a.da&&a.da.ye()&&a.da.rj;c.Rn()||a.ya.Xy(e.X)||f?(d.YN(this.vc.X),d.KA(b.X)):d.KA(0);c.Rn()||a.ya.Yy(e.Y)||f?(d.ZN(this.vc.Y),d.LA(b.Y)):d.LA(0);return a.Ur()},GH:function(a,b,c){c=c.ya.size().scale(b.GL());
b=new t(c.L*b.Fz(),c.$*b.Fz());return new t(Math.max(-b.X,Math.min(b.X,a.X)),Math.max(-b.Y,Math.min(b.Y,a.Y)))},Fn:function(){return u.h("Pan: start({0}), overall move({1})",u.Gb(this.kc),u.Gb(this.vc))},createEvent:function(a,b){if(this.Xx){a=new m(2051,a,b.id(),0);var c=p.D(12);var d=P.D(c,!0);d.K(b.info().scroll().Mh.mc());d.K(b.info().scroll().Wa.mc());d.K(2E3)}else a=new m(2050,a,b.id(),0),c=p.D(8),d=P.D(c,!0),d.K(b.info().scroll().Mh.mc()),d.K(b.info().scroll().Wa.mc());a.Fb(c);return a},start:function(){return this.kc},
Xs:function(a){this.ef=a},Zs:function(){return this.ef},As:function(){return this.vc},gt:function(a){this.vc=a.lg(this.kc)},xe:function(){return this.Re},FP:function(a,b){var c=b-this.Rw;1E-6>c&&(c=1);this.Rw=b;this.Re=a.wN(60/c)}};var bf;bf=function(){this.sr=new t(0,0);this.Qu=new t(0,0);this.oI=1;this.Sm=this.en=0};
bf.prototype={type:function(){return Y.rg},clone:function(){},Fn:function(){return"SpreadPinch: "},Ny:function(a,b){var c=a.info().zoom(),d=a.info().scroll();b===Y.Kc&&c.Vi(this.sr);c.Vi(this.Qu);c.jo(this.oI);c.iP(this.en);c.setOrientation(this.Sm);d.hg(this.Qu.lg(this.sr));b=a.Ur();Z.Ni(b,Z.so)&&this.wH(a)&&(b=Z.iN(b));return b},createEvent:function(a,b){a=new m(2049,a,b.id(),0);var c=b.info().zoom();b=p.D(16);var d=P.D(b,!0);d.K(c.Qc.mc());d.K(c.Pe.mc());d.K(65536*c.Bf);var e=c.en/2/Math.PI*65536;
c=c.orientation()/2/Math.PI*65536;d.K(e|c<<16);a.Fb(b);return a},wH:function(a){return 400>a.info().scroll().ZK.fs(new t(0,0))}};var of;of=function(){};of.prototype={Uk:function(){return Y.ld},state:function(){return Y.ld},lo:function(){}};var nf;nf=function(){this.fa=Y.ld;this.ur=0;this.yb=this.Pc=this.Kg=this.Lg=null;this.Af=-1};
nf.prototype={Uk:function(a,b,c){var d=a.Rh.Zh;if(hf.yK(b,Y.Mc))this.fa===Y.ij&&(this.Pc=Y.qg,this.Af=Y.Nd,this.kH(a,b)),this.fa=this.qE();else{var e=b.touches()[0].location();switch(this.fa){case Y.ld:if(d.uo)return Y.ld;d.ej?(this.Pc=Y.qg,this.Af=Y.Nd,this.fa=Y.Kc):d.sl||d.jl?(this.Pc=Y.qg,d.sl&&(this.Pc|=Y.zl),d.jl&&(this.Pc|=Y.yl),this.fa=Y.ij):(this.Pc=Y.qg,this.Af=Y.Nd,this.fa=Y.Kc);this.fH(b);break;case Y.ij:e=e.current().fs(e.Sk())>a.qr.tI;b.NO(e);if(e)if(this.Pc===Y.zl)this.Em(b,Y.Nc);else if(this.Pc===
Y.yl)this.Em(b,Y.Ge);else if(e=b.timeStamp()-this.ur>a.qr.uI)this.Dr(b),this.Kg.zi<a.qr.nG?this.Em(b,Y.Nc):this.Em(b,Y.Ge);break;default:this.Dr(b),this.fa=Y.kj}}if(this.fa>=Y.jj)switch(c.no(this.Af),this.Af){case Y.Nc:c.data().Kk(this.Lg);c.Kd(this.yb);break;case Y.Ge:c.data().Kk(this.Kg);c.Kd(this.yb);break;case Y.ie:case Y.Nd:hf.ks(c,b);break;default:throw Error("unexpected");}return this.fa},state:function(){return this.fa},lo:function(a){this.fa=a},fH:function(a){var b=a.touches()[0],c=b.location().current(),
d=b.vd;this.ur=u.m();this.Kg=new $e(c);this.Kg.Xs(d);this.Lg=new af(c);this.Lg.Xs(d);this.yb=b.Ca();null!==a.re&&(this.yb=a.re.Ca())},Em:function(a,b){this.Dr(a);this.Pc=Y.qg;this.Af=b;this.fa=Y.Kc},kH:function(a,b){a.VL(b.touches()[0])},Dr:function(a){var b=a.touches()[0].location().current();if(this.Af===Y.Nc||this.Pc!==Y.qg){var c=b.lg(this.Lg.start().Ob(this.Lg.As()));this.Lg.FP(c,a.timeStamp());this.Lg.gt(b)}if(this.Af===Y.Ge||this.Pc!==Y.qg)c=this.Kg.start().hL(b),a=a.timeStamp()-this.ur,1E-6>
a&&(a=10),this.Kg.setVelocity(c/a*1E3),this.Kg.gt(b)},qE:function(){return this.fa===Y.ld?Y.ld:Y.Fe}};var Wd;Wd=function(a,b,c){this.za=a;this.ya=b;this.ib=c;this.Ve=new uf;this.lp=this.da=null};
Wd.prototype={TN:function(a){var b=a.oc().size();this.da=a;0>=this.ya.ca&&0>=this.ya.T&&(this.ya.T=b.L,this.ya.ca=b.$)},id:function(){return this.za},HA:function(a){this.lp=a},flags:function(){return this.ib},Bi:function(a){this.ib|=a},Z:function(a){return(this.ib&a)===a},info:function(){return this.Ve},Xr:function(a){return a.X>=this.ya.s&&a.X<=this.ya.T&&a.Y>=this.ya.u&&a.Y<=this.ya.ca},Ym:function(a,b,c,d){if(!Z.Ni(d,Z.mt)){var e=Math.abs(b.X-c.X);b=Math.abs(b.Y-c.Y);if(Z.Ni(a,Z.nt)&&e>b||Z.Ni(a,
Z.ot)&&b>e)d=Z.Ae(d,a)}return d},Ur:function(){var a=Z.ph,b=this.Ve.zoom(),c=this.Ve.scroll(),d=b.Bf,e=c.Wa,f=this.kz();d<b.Pa().uc&&(a=Z.Ae(a,Z.Vo),a=Z.Ae(a,Z.ut));d>b.Pa().tc&&(a=Z.Ae(a,Z.Uo),a=Z.Ae(a,Z.tt));e.X<f.s&&(a=Z.Ae(a,Z.fj),a=this.Ym(Z.rt,e,c.Pa().uc,a));e.Y<f.u&&(a=Z.Ae(a,Z.gj),a=this.Ym(Z.st,e,c.Pa().uc,a));e.X>f.T&&(a=Z.Ae(a,Z.rh),a=this.Ym(Z.pt,e,c.Pa().tc,a));e.Y>f.ca&&(a=Z.Ae(a,Z.sh),a=this.Ym(Z.qt,e,c.Pa().tc,a));return a},dA:function(a){var b=this.info().scroll(),c=b.Pa();Z.Z(a,
Z.fj)&&b.hg(new t(c.uc.X,b.Wa.Y));Z.Z(a,Z.gj)&&b.hg(new t(b.Wa.X,c.uc.Y));Z.Z(a,Z.rh)&&b.hg(new t(c.tc.X,b.Wa.Y));Z.Z(a,Z.sh)&&b.hg(new t(b.Wa.X,c.tc.Y))},kz:function(){var a=this.ya.qc().lg(this.Ve.scroll().Pa().tc);var b=this.ya.Ed().lg(this.Ve.scroll().Pa().uc);b=(new M(a.X,a.Y,b.X,b.Y)).EK(this.Ve.zoom().Qc,this.Ve.zoom().Bf);a=this.ya.qc().lg(b.qc());b=this.ya.Ed().lg(b.Ed());b=new M(a.X,a.Y,b.X,b.Y);a=b.Ed().min(this.Ve.scroll().Pa().uc);b=b.qc().min(this.Ve.scroll().Pa().tc);return new M(a.X,
a.Y,b.X,b.Y)}};var R;R={ph:0,Xt:1,BD:3,UP:4,Dt:8,nu:16,uu:32,zh:64,OC:128,kB:256,YP:512,ro:1024,xl:2048};var uf;uf=function(){this.nK=new vf;this.fJ=new wf;new M(0,0,0,0);this.df=[]};
uf.prototype={zoom:function(){return this.nK},scroll:function(){return this.fJ},VN:function(){},Gs:function(a){return this.df.length>a?(a=this.df[a],"undefined"!==typeof a?a:null):null},ZA:function(a,b){this.df[a]=b},XL:function(a){for(var b=0;b<this.df.length;++b)if("undefined"===typeof this.df[b]||null!==this.df[b]&&this.df[b].rm===a)this.df[b]=null}};var wf;wf=function(){this.Aq=new Pb;this.Mh=new t(0,0);this.Wa=new t(0,0);this.Re=new t(0,0)};
wf.prototype={Pa:function(){return this.Aq},$N:function(a){this.Mh=a},ZK:function(){return this.Wa},hg:function(a){this.Wa=a},YN:function(a){this.Wa.X=a},ZN:function(a){this.Wa.Y=a},xe:function(){return this.Re},KA:function(a){this.Re.X=a},LA:function(a){this.Re.Y=a}};var vf;vf=function(){this.Aq=new xf;this.Qc=new t(0,0);this.Pe=new t(0,0);this.Bf=1;this.Sm=this.en=0};
vf.prototype={Pa:function(){return this.Aq},Vi:function(a){this.Qc=a},jo:function(a){this.Bf=a},iP:function(a){this.en=a},orientation:function(){return this.Sm},setOrientation:function(a){this.Sm=a}};var Xd;Xd=function(a,b,c,d){this.rm=a;this.Cq=b;this.Dq=c;this.Lq=d};Xd.prototype={offset:function(){return this.Lq}};var jf;jf=function(){this.R=[]};
jf.prototype={uz:function(a){var b;switch(a.type()){case Y.rg:var c=R.BD;break;case Y.Nc:c=R.Xt;break;case Y.Ge:c=R.Dt;break;case Y.ie:c=R.nu;break;default:c=0}for(b=0;b<this.R.length;++b)if(this.R[b].Z(c)&&(a.type()===Y.rg&&this.R[b].Xr(a.data().sr)||a.type()===Y.Nc&&this.fv(this.R[b],a.data().start(),a.data().Zs())||a.type()===Y.Ge&&this.fv(this.R[b],a.data().start(),a.data().Zs())||a.type()===Y.ie&&this.ip(a.data().touches(),this.R[b]))){if(this.R[b].Z(R.xl))break;return this.R[b]}return null},
sL:function(a,b,c){var d;for(d=0;d<this.R.length&&(!this.R[d].Z(R.xl)||!this.ip(a.touches(),this.R[d]));++d)if(this.R[d].Z(R.nu)&&this.R[d].Z(b)&&(!c||null===a.pb||null===this.R[d].da||u.dz(this.R[d].da.O(),a.pb.target))&&this.ip(a.touches(),this.R[d]))return this.R[d];return null},xK:function(a,b){var c,d,e=[],f=!1;for(c=0;c<this.R.length;++c){for(d=0;d<a.touches().length;++d){var g=this.xp(this.R[c],a.touches()[d]);if(!e[d]&&g){if(this.R[c].Z(R.xl)){f=!0;break}this.R[c].Z(R.OC)&&this.R[c].Z(b)&&
(e[d]=!0)}}if(f)break}for(d=0;d<a.touches().length;++d)if(!0!==e[d])return!1;return!0},xp:function(a,b,c){var d=a.da;var e=b.location().current();e=a.Xr(e);return null!==d&&(e=u.ol(d.U),a.HA(a.ya.Ob(e.X,e.Y)),(e=a.lp.contains(b.vd))&&void 0!==c&&null!==c&&!u.dz(d.O(),c))?!1:e},fv:function(a,b,c){var d=a.da;b=a.Xr(b);null!==d&&(d=u.ol(d.U),a.HA(a.ya.Ob(d.X,d.Y)),b=a.lp.contains(c));return b},ip:function(a,b){var c;for(c=0;c<a.length;++c)if(!this.xp(b,a[c]))return!1;return!0},IK:function(a,b,c){b[0]=
!1;b[1]=!1;if(1===a.touches().length){var d=a.pb;if(void 0!==d&&null!==d)var e=d.target;for(d=0;d<this.R.length;++d)if(this.xp(this.R[d],a.touches()[0],e)){if(this.R[d].Z(R.xl))break;var f=!1;this.R[d].Z(R.Xt)&&this.R[d].Z(c)&&(f=b[0]=!0,a.TA(this.R[d].da));this.R[d].Z(R.Dt)&&this.R[d].Z(c)&&(f=b[1]=!0,a.TA(this.R[d].da));if(!f)break}}},clear:function(){this.R=[]},Nr:function(a,b){b?this.R.push(a):this.R.unshift(a)},kN:function(a){this.R=this.R.filter(function(b){return b.da!==a})},oc:function(a){return this.R.length>
a?this.R[a]:null},ML:function(a){for(var b=0;b<this.R.length;++b)if(this.R[b].id()===a)return this.R[b];return null},YL:function(a){for(var b=0;b<this.R.length;++b)this.R[b].info().XL(a)}};var Pb;Pb=function(){this.uc=new t(0,0);this.tc=new t(0,0)};Pb.prototype={jh:function(a){this.uc=a},ih:function(a){this.tc=a}};var xf;xf=function(){this.tc=this.uc=0};xf.prototype={Ts:function(a){this.uc=a},Ss:function(a){this.tc=a}};var yf;yf=function(){};
yf.prototype={bh:function(a,b){null!==b.da&&b.da.bh(a,b)},ao:function(){},Sr:function(){},Qi:function(a){null!==a.da&&a.da.Qi(a);return a.info().scroll().Mh.Ob(a.info().scroll().Wa)}};var lf;lf=function(){yf.call(this)};lf.prototype=Object.create(yf.prototype);lf.prototype.constructor=lf;var mf;mf=function(a,b){yf.call(this);b||(this.kr=this.kv(a.width,a.height),this.wI=this.$E())};mf.prototype=Object.create(yf.prototype);l=mf.prototype;l.constructor=mf;
l.bh=function(a,b){var c=a.Zf();c.save();a.g.pa.g.N.fi?null!==b.info().Gs(0)&&this.ao(a,b):(this.rI(c,b),this.sI(c,b));c.restore()};l.rI=function(a,b){var c=b.ya.s,d=b.ya.u,e=b.ya.C()+1;b=b.ya.B()+1;a.fillStyle=this.wI;a.fillRect(c,d,e,b)};l.sI=function(a,b){var c=b.ya.s,d=b.ya.u,e=b.ya.C()+1,f=b.ya.B()+1;a.beginPath();a.rect(c,d,e,f);a.clip();this.qy(a,b,null);a.drawImage(this.kr,c,d,e,f,c,d,e,f)};
l.ao=function(a,b){var c=a.Zf();var d=b.ya.s;var e=b.ya.u;var f=b.ya.C()+1;var g=b.ya.B()+1;c.beginPath();c.rect(d,e,f,g);c.clip();for(e=0;e<b.info().df.length;++e)d=b.info().Gs(e),null!==d&&(f=a.Yd.eo(d.rm),f=f.Ql.canvas,c.save(),this.qy(c,b,d),c.drawImage(f,0,0),c.restore())};
l.qy=function(a,b,c){a.translate(b.info().zoom().Qc.X,b.info().zoom().Qc.Y);a.scale(b.info().zoom().Bf,b.info().zoom().Bf);a.translate(-b.info().zoom().Qc.X,-b.info().zoom().Qc.Y);a.translate(null!==c&&c.Cq?0:b.info().scroll().Wa.X,null!==c&&c.Dq?0:b.info().scroll().Wa.Y);null!==c&&a.translate(b.ya.s-c.offset().X,b.ya.u-c.offset().Y)};
l.Sr=function(a,b){var c=this.kr.getContext("2d");c.drawImage(a.Ka.canvas,b.s,b.u,b.C(),b.B(),b.s,b.u,b.C(),b.B());c.drawImage(a.Ok().canvas,b.s,b.u,b.C(),b.B(),b.s,b.u,b.C(),b.B())};l.kv=function(a,b){var c=window.document.createElement("canvas");c.width=a;c.height=b;return c};
l.$E=function(){var a=this.kv(8,8),b=a.getContext("2d");b.fillStyle="#fff";b.fillRect(0,0,a.width,a.height);b.dQ="#000";b.lineWidth=1;b.beginPath();b.moveTo(b.lineWidth/2,a.height);b.lineTo(b.lineWidth/2,b.lineWidth/2);b.lineTo(a.width,b.lineWidth/2);b.stroke();b.closePath();return this.kr.getContext("2d").createPattern(a,"repeat")};l.Qi=function(a){return a.info().scroll().Mh.Ob(a.info().scroll().Wa)};var Ya,zf;zf=function(){this.fn=-1;this.Rb=!1};
Ya=function(a){this.g=a;this.mk=this.Rb=this.gi=!1;this.Nw=this.xq=this.Lw=this.vq=0;this.te=null;this.Im=!1;this.$w=0;this.bm=this.mq=!1;this.Zd=[];this.Ow=[];this.BH=5;this.wq=0;this.We=null};
Ya.prototype={qP:function(a){this.gi||this.iH();this.Rb&&(1>a||a>da.Qt?v.warn("Cannot benchmark with invalid type: "+a):(this.xq=u.bj(),this.Zd[a].Rb=!0,this.Zd[a].fn=this.xq))},nL:function(a,b){if(this.Rb&&!a){a=u.bj();var c=!1;b==da.Io&&(this.Nw=a-this.Lw,this.Lw=a,this.Ow[this.wq]=(a-this.xq)/1E3,this.wq=(this.wq+1)%this.BH);this.Im&&(this.vq=a-this.Zd[da.ng].fn,this.Im=this.Zd[da.ng].Rb=!1,c=!0);this.mk&&(c&&this.Cx(this.vq,da.ng),c=this.Zd[b],c.Rb&&this.Cx(a-c.fn,b))}},hA:function(a){this.Rb&&
this.ci(r.vh(a),a.currentTarget)},ci:function(a,b){this.$w=u.bj();this.mq?this.Zd[da.ng].Rb=!1:(this.We=b,this.bm||(this.te=a),this.hy())},iA:function(a){this.Rb&&this.di(r.vh(a),a.currentTarget)},di:function(a,b){this.bm&&3E6<u.bj()-this.$w&&(this.te=a);this.mq&&(this.We=b,this.bm||(this.te=a),this.hy())},gA:function(){return null===this.te?new t(-1,-1):this.te},yM:function(a){this.Rb&&this.ci(r.vh(a),a.currentTarget)},zM:function(a){this.Rb&&this.di(r.vh(a),a.currentTarget)},AP:function(a,b){this.Rb&&
this.ci(a,b.currentTarget)},zP:function(a,b){this.Rb&&this.di(a,b.currentTarget)},Vk:function(a){this.Rb&&(this.g.oa?(a=this.g.aa().va(),null!==a&&null!==this.We&&null!==a.U&&void 0!==a.U&&null!==this.We.firstChild&&void 0!==this.We.firstChild&&null!==a.U.firstChild&&void 0!==a.U.firstChild&&null!==this.We.firstChild.id&&void 0!==this.We.firstChild.id&&a.U.firstChild.id===this.We.firstChild.id&&(this.We=null,this.Im=!0)):null===this.te||null===a||this.te.X<a.s||this.te.X>a.T||this.te.Y<a.u||this.te.Y>
a.ca||!this.Zd[da.ng].Rb||(this.Im=!0))},KK:function(){this.Vk(null)},sM:function(){return Math.round(this.vq/1E3)},tM:function(){return Math.round(this.Nw/1E3)},Cx:function(a,b){a=new m(2097152,this.g.v.la,b,a&4294967295);a.gP();this.g.dd(a)},iH:function(){var a=this.g.getConfiguration();this.Rb=a.Benchmarking||a.DebugOnlyDiagnosisDisplay;this.mk=a.Benchmarking;this.mq=a.DebugOnlyInputReactionOnUp;this.bm=a.DebugOnlyInputReactionExplCoord;this.Zd.push(null);for(a=1;a<=da.Qt;a++)this.Zd.push(new zf);
this.gi=!0},hy:function(){this.Zd[da.ng].Rb=!0;this.Zd[da.ng].fn=u.bj()}};var fa;
(function(){function a(b){if(0>b)throw"Only non negative values supported";if(4294967296<=b)throw"Only values occupiing less than 32-Bit supported";}fa=function(b){if(void 0!==b)if("number"==typeof b)a(b),this.zb=b,this.Vb=0;else if(b instanceof fa)this.zb=b.zb,this.Vb=b.Vb;else throw"Unexpected initial value";else this.Vb=this.zb=0};fa.prototype={Fo:function(b){if(0>b||64<=b)throw"Unexpected shift amount";if(32<b)this.Fo(32),this.Fo(b-32);else if(32===b)this.Vb=this.zb,this.zb=0;else{var c=this.XE(b);
var d=(c&this.zb)>>>0;this.Vb=this.Vb<<b>>>0;this.Vb=(this.Vb|d>>>32-b)>>>0;this.zb&=~c;this.zb=this.zb<<b>>>0}},Rt:function(b){if("number"==typeof b)a(b),this.Rt(new fa(b));else if(b instanceof fa)this.zb=(this.zb|b.zb)>>>0,this.Vb=(this.Vb|b.Vb)>>>0;else throw"Unexpected argument";},NB:function(b){return b instanceof fa?this.zb===b.zb&&this.Vb===b.Vb:!1},XE:function(b){var c,d=0;if(0===b)return 0;for(c=0;c<b-1;++c)d=(d|2147483648)>>>0,d>>>=1;return(d|2147483648)>>>0},toString:function(){return this.Vb+
" "+this.zb}}})();var xa;xa=function(){this.clear()};xa.prototype={clear:function(){this.R=[]},Nr:function(a){this.R.push(a)},Ly:function(a){a.beginPath();for(var b=0;b<this.R.length;++b)a.rect(this.R[b].s,this.R[b].u,this.R[b].C(),this.R[b].B());a.clip()}};var ec;
ec=function(a,b){this.J=a;this.h=b;this.Ku=[];this.rv=[];b=this.wa(this.J);for(a=0;a<this.h;++a){var c=Math.floor(b.Ia+(a+1)*(128-Math.floor(b.Ia/2))/this.h);this.Ku[this.h-a-1]=this.m(b.yc,b.Zk,c,b.a);c=Math.floor(Math.floor(b.Ia/3)+Math.floor(2*a*b.Ia/(3*this.h)));this.rv[a]=this.m(b.yc,b.Zk,c,b.a)}};
ec.prototype={vL:function(a){return this.Ku[a]},zz:function(a){return this.rv[a]},wa:function(a){var b={};var c=((a&16711680)>>16)/255;var d=((a&65280)>>8)/255;var e=(a&255)/255;var f=Math.min(c,Math.min(d,e));var g=Math.max(c,Math.max(d,e));var h=g-f;b.Ia=(f+g)/2;if(0===h)b.yc=b.Zk=0;else{b.Zk=.5>b.Ia?h/(g+f):h/(2-g-f);f=((g-c)/6+h/2)/h;var k=((g-d)/6+h/2)/h;h=((g-e)/6+h/2)/h;c===g?b.yc=h-k:d===g?b.yc=1/3+f-h:e===g&&(b.yc=2/3+k-f);0>b.yc&&(b.yc+=1);1<b.yc&&--b.yc}b.yc=Math.round(255*b.yc);b.Zk=Math.round(255*
b.Zk);b.Ia=Math.round(255*b.Ia);b.a=Math.round(((a&4278190080)>>24)/255*255);return b},m:function(a,b,c,d){var e;if(0===b)c=e=a=c;else{a/=255;b/=255;c/=255;b=.5>c?c*(1+b):c+b-c*b;var f=2*c-b;c=Math.round(255*this.cq(f,b,a+1/3));e=Math.round(255*this.cq(f,b,a));a=Math.round(255*this.cq(f,b,a-1/3))}return(d<<24)+(c<<16)+(e<<8)+a},cq:function(a,b,c){0>c&&(c+=1);1<c&&--c;return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a}};var Ga;Ga=function(){};
Ga.prototype={Ey:function(a,b){this.qJ(a,b,90)},Rz:function(a){return""!==this.Tn(a)},Tn:function(a){return this.xG(a)},qJ:function(a,b,c){var d=new Date;d.setTime(d.getTime()+864E5*c);document.cookie=a+"="+b+"; expires="+d.toUTCString()},xG:function(a){a+="=";var b,c;var d=document.cookie.split(";");for(b=0;b<d.length;b++){for(c=d[b];" "==c.charAt(0);)c=c.substring(1);if(-1!==c.indexOf(a))return c.substring(a.length,c.length)}return""}};var Ob;Ob=function(){};
Ob.J=function(a){a=window.atob(a.substring(a.indexOf("-----BEGIN PUBLIC KEY-----")+26,a.indexOf("-----END PUBLIC KEY-----")));a=u.uN(a);return window.crypto.subtle.importKey("spki",a,{name:"RSA-OAEP",hash:"SHA-256"},!0,["encrypt"])};Ob.m=function(a,b){return window.crypto.subtle.encrypt({name:"RSA-OAEP",hash:{name:"SHA-256"}},a,b)};Ob.h=function(){var a=new Uint8Array(16);a=window.crypto.getRandomValues(a);return u.Uz(a.buffer)};var bb;bb=function(a){this.tb=a.$f();this.Qh=a.Hd()};bb.prototype={};
var Da;Da=function(a){this.g=a;this.Tb=[]};
Da.prototype={Di:function(){if(null!==this.g.getConfiguration()&&this.g.getConfiguration().DebugOnlyDiagnosisDisplay){var a=13*this.Tb.length+3;var b=document.getElementById("diag");null===b&&(b=u.kl(175,150),b.id="diag",b.style.zIndex=8,b.style.position="absolute",u.fb().parentNode.appendChild(b));b=this.Jj(b);this.WD();b.save();b.strokeStyle="rgb(0,0,0)";b.fillStyle="rgb(220,220,220)";b.font="10px Arial";b.beginPath();b.rect(10,10,150,a);b.clip();b.fillRect(10,10,150,a);b.strokeRect(10,10,150,a);
b.fillStyle="rgb(0,0,0)";b.textAlign="left";b.textBaseline="top";for(a=0;a<this.Tb.length;++a){var c=u.h("{0}: {1}",this.Tb[a].title,this.Tb[a].mf());b.fillText(c,13,13+13*a)}b.restore()}},WD:function(){if(0===this.Tb.length){var a=this.g.ic,b=this.g.V(),c=this;this.Tb.push({title:"DPR",mf:function(){return b.rs()?u.h("{0} (Changed)",r.Ce()):r.Ce()}});this.Tb.push({title:"Canvas-Size",mf:function(){return u.h("{0}/{1}",b.lf().C(),b.lf().B())}});this.Tb.push({title:"Resize-Count",mf:function(){return null!==
a?a.gx:"---"}});this.Tb.push({title:"Window-Size",mf:function(){return u.h("{0}/{1}",window.innerWidth,window.innerHeight)}});this.Tb.push({title:"DocElem-Size",mf:function(){return u.h("{0}/{1}",document.documentElement.clientWidth,document.documentElement.clientHeight)}});this.Tb.push({title:"Last Input Reaction (*)",mf:function(){return u.h("{0}",c.g.ob.sM())}});this.g.getConfiguration().DebugOnlyInputReactionExplCoord&&this.Tb.push({title:"Input check coords",mf:function(){return u.h("{0}/{1}",
c.g.ob.gA().X,c.g.ob.gA().Y)}});this.Tb.push({title:"FPS (*)",mf:function(){return(1E3/c.g.ob.tM()).toFixed(1)}});this.Tb.push({title:"PTs (*)",mf:function(){return c.g.ob.Ow.map(function(d){return d.toFixed(0)}).join(", ")}})}},Jj:function(a){a=a.getContext("2d");if(null===a)throw Error("Creating graphics context failed");return a}};var Ra;Ra=function(a){this.g=a;this.A=null;this.wp=this.rn=!1;this.tj=this.dc=null;this.bb=[]};
Ra.prototype={Cn:function(a){(u.Ro(a)||u.cj(a)&&"touch"===a.pointerType||u.bp(a))&&this.us()&&(this.Wr(this.g.getConfiguration().CommitEditcontrolOnClickOut),this.gg())},gg:function(){null!==this.g.ic&&this.g.ic.gg()},us:function(){return null!==this.A},open:function(a,b,c){this.A="editcontrol-inputform"===a.id?a.children[1]:a;this.rn=b;this.ED();c.g.oa?(this.tj=c.g.aa().va(),this.tj.MA(a)):(this.dc=c.Ka.canvas.parentNode,this.Kl=a,this.dc.appendChild(this.Kl))},close:function(){this.gg();null!==
this.A&&(null!==this.dc&&null!==this.Kl&&this.dc.removeChild(this.Kl),null!==this.tj&&this.tj.MA(null),this.uk());this.tj=this.Kl=this.dc=this.A=null},Wr:function(a){if(!this.wp){var b=u.cp(this.A);var c=new vb(this.A.value,this.rn,this.g.getConfiguration().Hd());var d=c.length()+1;this.rn&&(d*=2);d=p.D(d);P.D(d,this.g.v.Fa,this.g.getConfiguration().Hd()).Zb(c);c=new m(512,this.g.v.la,a?this.rn?3:1:2,0);c.Fb(d);c.VA(b.Xz(4));this.g.wb.push(c);a?this.wp=!0:this.close()}},pN:function(){this.wp=!1},
xc:function(){return this.A},NF:function(a){null!==this.A&&(a.stopPropagation(),27===a.keyCode?(a.preventDefault(),this.Wr(!1)):13===a.keyCode&&this.Wr(!0))},MF:function(a){a.stopPropagation()},PF:function(a){a.stopPropagation()},OF:function(a){a.stopPropagation()},Ph:function(a){a.stopPropagation()},ED:function(){var a=this,b;this.bb.push({e:"keydown",Ia:function(c){a.NF(c)}});this.bb.push({e:"keyup",Ia:function(c){a.PF(c)}});this.bb.push({e:"focus",Ia:function(c){a.MF(c)}});this.bb.push({e:"keypress",
Ia:function(c){a.OF(c)}});r.Hb()?(this.bb.push({e:"pointerup",Ia:function(c){a.Ph(c)}}),this.bb.push({e:"pointerdown",Ia:function(c){a.Ph(c)}})):(this.bb.push({e:"mouseup",Ia:function(c){a.Ph(c)}}),this.bb.push({e:"mousedown",Ia:function(c){a.Ph(c)}}),this.bb.push({e:"touchstart",Ia:function(c){a.Ph(c)}}),this.bb.push({e:"touchend",Ia:function(c){a.Ph(c)}}));for(b=0;b<this.bb.length;++b)this.A.addEventListener(this.bb[b].e,this.bb[b].Ia)},uk:function(){var a;for(a=0;a<this.bb.length;++a)this.A.removeEventListener(this.bb[a].e,
this.bb[a].Ia);this.bb=[]}};var vb;vb=function(a,b,c){c=new Af(c);this.Rl=null;this.UD=b;if(null!==a)if(b){b=Array(a.length);for(c=0;c<a.length;c++)b[c]=a.charCodeAt(c);this.Rl=b}else this.Rl=c.eb(a)};vb.prototype={length:function(){return this.Rl.length},data:function(){return this.Rl},unicode:function(){return this.UD}};var Af;Af=function(a){void 0===a&&(a=null);this.Pm=a};
Af.prototype={XD:function(){if(null===this.Pm)try{this.Pm=(new Configuration).Hd()}catch(a){this.Pm={encode:function(){return 63}}}},eb:function(a){this.XD();return this.Pm.encode(a)}};var pb;pb=function(a,b){this.Ih=a;this.cF=u.m();this.MH=null!==b?b.ConnectionInfoValidTimeMsForLeaveAfterError:1E3};pb.prototype={tP:function(){return u.m()-this.cF<this.MH}};var Bf;Bf=function(){this.xb=[]};
Bf.prototype={NC:function(a){this.xb.push(a)},oB:function(){this.xb.splice(0,this.xb.length)},Ft:function(a){this.xb.forEach(a)},YC:function(a){0<=a&&this.xb.splice(a,1)},Size:function(){return this.xb.length},xD:function(a){this.Ft(function(b){b.update&&b.update(a)})},qB:function(a){a.Wg&&this.Ft(function(b){a.Wg(b)})}};var ma;ma=function(a){try{this.h(a)}catch(b){throw Error("Parsing the fontstring '"+a+"' failed for the following reason: "+b);}};
ma.prototype={h:function(a){var b=null,c=null,d,e=!1,f=a.split(/\s+/);for(d=0;d<f.length;++d){var g=f[d];switch(g){case "normal":break;case "italic":case "oblique":break;case "small-caps":break;case "bold":case "bolder":case "lighter":case "100":case "200":case "300":case "400":case "500":case "600":case "700":case "800":case "900":break;default:null===c?(g=g.split("/"),g=u.lh(g[0]),"p"===g.charAt(g.length-2)&&"x"===g.charAt(g.length-1)&&(c=parseInt(g.substr(0,g.length-2),10))):(b=g,d<f.length-1&&
(b+=" "+f.slice(d+1).join(" ")),e=!0)}if(e)break}if(null===b)throw Error("Font Family/Name missing");if(null===c||isNaN(c))throw Error("Invalid or unsupported font Size");this.QB=c;this.zo=a}};var Ua;Ua=function(){Bf.call(this)};Ua.prototype=Object.create(Bf.prototype);l=Ua.prototype;l.constructor=Ua;l.il=function(a){for(var b=0;b<this.xb.length;b++)if(this.xb[b].id()===a)return b;return-1};
l.CD=function(a,b){a=this.il(a);if(0<=a){var c=this.xb[a];this.xb[a]=b;b.location().SA(c.location().current());b.Ms(c.Vj);null!==c.yj&&null===b.yj&&b.ft(c.yj)}};l.Gt=function(a){a=this.il(a);return 0<=a?this.xb[a]:null};l.yD=function(a){null!==a&&a.id&&this.CD(a.id(),a)};l.ZC=function(a){a=this.il(a);this.YC(a)};l.Wt=function(a){null!==a&&a.id&&this.ZC(a.id())};var t;t=function(a,b){this.X=a;this.Y=b};
t.prototype={$s:function(a){this.X-=a.X;this.Y-=a.Y;return this},lg:function(a){return this.clone().$s(a)},min:function(a){return new t(Math.min(this.X,a.X),Math.min(this.Y,a.Y))},max:function(a){return new t(Math.max(this.X,a.X),Math.max(this.Y,a.Y))},offset:function(a){this.X+=a.X;this.Y+=a.Y;return this},Ob:function(a){return this.clone().offset(a)},GM:function(a){this.X+=a.L;this.Y+=a.$;return this},mA:function(a){return this.clone().GM(a)},mc:function(){return(this.Y>>>0&65535|this.X>>>0<<16)>>>
0},hL:function(a){return Math.sqrt(this.fs(a))},fs:function(a){return(this.X-a.X)*(this.X-a.X)+(this.Y-a.Y)*(this.Y-a.Y)},clone:function(){return new t(this.X,this.Y)},$k:function(a){this.X*=a;this.Y*=a;return this},wN:function(a){return this.clone().$k(a)},rotate:function(a,b){if(0===a%360)return this;var c=a*Math.PI/180;a=Math.cos(c);c=Math.sin(c);var d=this.X,e=this.Y;if(b){var f=b.X;b=b.Y}else f=b=0;this.X=d*a-e*c+f*(1-a)+b*c;this.Y=d*c+e*a+b*(1-a)-f*c;return this}};var M;
M=function(a,b,c,d,e){this.s=a;this.u=b;this.T=c;this.ca=d;this.kd=void 0!==e?e:null};
M.prototype={C:function(){return this.T-this.s},B:function(){return this.ca-this.u},Nk:function(){return new t((this.s+this.T)/2,(this.u+this.ca)/2)},clone:function(){return new M(this.s,this.u,this.T,this.ca,this.kd)},qc:function(){return new t(this.s,this.u)},Ed:function(){return new t(this.T,this.ca)},EK:function(a,b){var c=this.size().scale(b),d=this.qc().$s(a);b=(new w(d.X,d.Y)).scale(b);a=a.mA(b);c=a.mA(c);return new M(a.X,a.Y,c.X,c.Y)},size:function(){return new w(this.C(),this.B())},Ob:function(a,
b){return new M(this.s+a,this.u+b,this.T+a,this.ca+b,this.kd)},Xz:function(a){return new M(this.s-a,this.u-a,this.T+a,this.ca+a,this.kd)},oL:function(a){return this.s===a.s&&this.u===a.u&&this.T===a.T&&this.ca===a.ca},normalize:function(){if(this.s>this.T){var a=this.T;this.T=this.s;this.s=a}this.u>this.ca&&(a=this.ca,this.ca=this.u,this.u=a)},BM:function(){var a=this.clone();a.normalize();return a},Xy:function(a){return a>=this.s&&a<=this.T},Yy:function(a){return a>=this.u&&a<=this.ca},contains:function(a){return this.Xy(a.X)&&
this.Yy(a.Y)}};var nb;nb=function(a){this.g=a;this.pj=null;this.Cv=!1;this.gx=0;this.ix=r.Ce();this.Zc=new Fe(this.g)};
nb.prototype={Jk:function(){var a=this;this.Zc.gg();this.Zc.De();this.pj=function(){a.Qq()};window.addEventListener("resize",this.pj,!1)},detach:function(){null!==this.pj&&(window.removeEventListener("resize",this.pj,!1),this.pj=null)},De:function(){this.Zc.De()},To:function(){this.Zc.To()},gg:function(){this.Zc.gg()},fP:function(a){this.Zc.dP(a)},Qq:function(){var a=r.Ce(),b=this.Cv?a:1;this.Zc.zt()&&(a!==this.ix&&(this.Cv=!0,this.ix=b=a,this.g.V().EM()),this.gx++,this.g.V().gs(b),this.Zc.gg(),null!==
this.g.v&&null!==this.g.getConfiguration()&&(a=m.wa(this.g.v.la,this.g.getConfiguration().BestFit,this.g.getConfiguration().BestFitForDialogs,this.g.getConfiguration().ScaleTypeIsotropic,this.g.V().lf(),this.g.V().Fp,this.g.getConfiguration().FillBackground),this.g.eO(a)));this.Zc.De()}};var w;w=function(a,b){this.L=a;this.$=b};w.prototype={scale:function(a){return new w(this.L*a,this.$*a)}};var Fe;Fe=function(a){this.g=a;this.Hw=this.Iw=this.tq=this.uq=this.Pw=this.Qw=0};
Fe.prototype={De:function(){this.Qw=window.screen.width;this.Pw=window.screen.height;this.uq=document.documentElement.clientWidth;this.tq=document.documentElement.clientHeight},To:function(){r.Lt()&&(this.Iw=document.scrollingElement.scrollTop,this.Hw=document.scrollingElement.scrollLeft)},zt:function(){var a=!1,b=this.g.getConfiguration().MaxResizePixel;this.Pw===window.screen.width&&this.Qw===window.screen.height&&(a=!0);if(0<b)if(this.uq!==document.documentElement.clientWidth&&this.tq!==document.documentElement.clientHeight)a=
!0;else{var c=Math.abs(this.uq-document.documentElement.clientWidth);0<c&&c<b&&(a=!0);c=Math.abs(this.tq-document.documentElement.clientHeight);0<c&&c<b&&(a=!0)}return a},dP:function(a){this.dK=a},gg:function(){r.Lt()&&this.dK&&(document.scrollingElement.scrollTop=this.Iw,document.scrollingElement.scrollLeft=this.Hw)}};var fb;
fb=function(a,b,c,d){this.ka=a;this.xd=b;this.xd.clear();this.CH=u.m();this.zJ=u.m();this.gF=d;this.ne=null;if(c)this.h();else{var e=this,f=function(){e.m();e.jb=window.requestAnimationFrame(f)};this.jb=window.requestAnimationFrame(f)}};
fb.prototype={close:function(){this.xd.clear();window.cancelAnimationFrame(this.jb)},m:function(){if(!(u.m()-this.zJ<this.gF)){var a=this.xd.Zf(),b=this.xd.lf(),c=2*Math.PI/6,d=(2*Math.PI-5*c)/5,e=250/3,f=10+e,g=2*Math.PI*(u.m()-this.CH)/5E3,h=1;a.save();if(250>b.C()||250>b.B())h=.9*Math.min(b.C()/250,b.B()/250);a.scale(h,h);a.translate(Math.max(5,(b.C()-250)/2),Math.max(5,(b.B()-250)/2));a.strokeStyle="#a90018";a.lineWidth=4;a.strokeRect(0,0,250,250);a.fillStyle="#f4f4f4";a.fillRect(0,0,250,250);
for(b=0;5>b;++b)a.save(),a.translate(125,f),a.rotate(g+b*(c+d)),this.GF(a,c,e,"#cd001c"),a.restore();null===this.ne&&this.jF(a,250);a.font=this.ne;a.textAlign="center";a.textBaseline="bottom";a.fillStyle="#000000";a.fillText(this.ka,125,2750/12);a.restore()}},jF:function(a,b){var c=40;for(a.font=this.$v(c);2<c&&a.measureText(this.ka).width>=.95*b;)c-=2,a.font=this.$v(c);this.ne=a.font},$v:function(a){return"italic "+a+"px Arial"},GF:function(a,b,c,d){var e=.9*c;a.beginPath();a.moveTo(0,-c);a.arc(0,
0,c,-Math.PI/2,b-Math.PI/2,!1);a.lineTo(Math.sin(b)*e,-(Math.cos(b)*e));a.arc(0,0,e,b-Math.PI/2,-Math.PI/2,!0);a.lineTo(0,-c);a.closePath();a.strokeStyle=d;a.fillStyle=a.strokeStyle;a.stroke();a.fill()},h:function(){var a=this.xd.Ok();a.font="1em Arial";a.textAlign="left";a.textBaseline="top";a.fillStyle="#000";a.fillText(this.ka,20,20)}};var cb;
(function(){var a={},b={},c={},d={};var e=function(g,h,k){this.Ou=g;this.lE=h;this.Xb=k;this.Nu=1;this.Jh=0};e.prototype={Ry:function(g){this.Nu=this.Xb/g;this.Jh=0},xP:function(g){this.Jh=g.Jh},call:function(g){0===g%this.Nu&&this.lE(this.Ou,this.Jh++)}};var f=function(g){this.Xb=g;this.jv=0;this.vg=[];this.nq=0};f.prototype={eM:function(g){return this.Kv(g)!==d},PK:function(g){return 0<=this.Rv(g)},Jk:function(g,h,k){var q=this.Kv(k),n=new e(g,h,k);if(q===b)n.Ry(this.Xb);else if(q===c){var B=this;
this.Xb=k;this.jm(function(z){z.Ry(B.Xb)});this.stop();this.start()}this.jm(function(z){return z.Xb===k?(n.xP(z),!0):!1});this.vg.push(n)},detach:function(g){g=this.Rv(g);return 0<=g&&(this.vg.splice(g,1),0===this.vg.length)?(this.stop(),!0):!1},start:function(){var g=this;this.nq=setInterval(function(){g.ke()},this.Xb)},stop:function(){clearInterval(this.nq);this.nq=0},ke:function(){var g=this;this.jv++;this.jm(function(h){h.call(g.jv)})},Rv:function(g){for(var h=0;h<this.vg.length;++h)if(this.vg[h].Ou===
g)return h;return-1},jm:function(g){for(var h=0;h<this.vg.length&&!g(this.vg[h]);++h);},Kv:function(g){if(this.Xb===g)return a;if(g/this.Xb===Math.floor(g/this.Xb)&&8>=g/this.Xb)return b;if(this.Xb/g===Math.floor(this.Xb/g)&&8>=this.Xb/g){var h=0;this.jm(function(k){h=Math.max(h,k.Xb/g)});return 8<h?d:c}return d}};cb=function(){this.gf=[]};cb.prototype={rP:function(g,h,k){var q=this.iG(k);null===q&&(q=new f(k),q.start(),this.gf.push(q));q.Jk(g,h,k)},uP:function(g){var h=this.hG(g);null!==h&&h.detach(g)&&
this.MI(h)},iG:function(g){for(var h=0;h<this.gf.length;++h)if(this.gf[h].eM(g))return this.gf[h];return null},hG:function(g){for(var h=0;h<this.gf.length;++h)if(this.gf[h].PK(g))return this.gf[h];return null},MI:function(g){g=this.gf.indexOf(g);0<=g&&this.gf.splice(g,1)}}})();var Ba;Ba=function(a){this.xd=a;this.yk=[]};
Ba.prototype={clear:function(){this.yk=[]},count:function(){return this.yk.length},C:function(a){return this.yk[a].X},B:function(a){return this.yk[a].Y},Dy:function(a,b,c){a=I.BC(this.xd,a,b,c);this.yk.push(a)}};var Ca;Ca=function(a){this.xd=a;this.mi=[]};
Ca.prototype={clear:function(){this.mi=[]},count:function(){return this.mi.length},Tn:function(a){return this.mi[a]},sK:function(a){this.mi.push(a.length+1);var b;for(b=1;b<=a.length;b++){var c=I.og(this.xd.getContext(),a.substring(0,b),!0);this.mi.push(c)}a=u.$a(this.xd);this.mi.push(a)}};var Ud;Ud=function(){this.Uw=this.Vw=this.Ww=this.Xw=this.Ev=this.Fv=this.gb=null};Ud.h=function(a,b,c,d,e,f){var g=new Ud;g.Uw=a;g.Vw=b;g.Ww=c;g.Xw=d;g.Ev=e;g.Fv=f;return g};
Ud.prototype={zn:function(a,b){null!==this.gb?this.$I(a,b):this.TD(a)},$I:function(a,b){a.translate(b.s,b.u);a.rotate(this.gb);a.translate(-b.s,-b.u)},TD:function(a){a.transform(this.Uw,this.Vw,this.Ww,this.Xw,this.Ev,this.Fv)}};var C;
C={Va:function(a){if(null!==a){if("false"===a.toLowerCase())return!1;if("true"===a.toLowerCase())return!0}return null},aD:function(){var a={};location.search.substr(1).split("&").forEach(function(b){b=b.split("=");a[b[0]]=b[1]});return a},pl:function(a,b){return void 0===a[b]?null:a[b]},AC:function(a){a=(new RegExp("[\\?&]"+a+"=([^&#]*)")).exec(window.location.href);return null===a?null:a[1]},Pt:function(a){var b=window.WebvisuInst;return void 0===b?C.AC(a):C.pl(b.Wf,a)},dj:function(a,b,c){return null!==
C.pl(a,b)?C.Va(a[b]):c},UB:function(a,b){a=C.Pt(a);return null!==a?C.Va(a):b},VB:function(a){a=C.Pt(a);return null!==a?parseInt(a,10):null}};var u;u=function(){};u.yP=function(){var a=window.performance||{};a.now=function(){return a.now||a.webkitNow||a.m||a.J||a.h||function(){return(new Date).getTime()}}();return a.now()};u.No=function(a){var b=window.location;var c=b.pathname.lastIndexOf("/");-1!==c&&(a=b.pathname.substr(0,c+1)+a,"/"===a[0]&&(a=a.substr(1)));return b.protocol+"//"+b.host+"/"+a};
u.Xo=function(a,b,c){var d=3,e=5;void 0===a&&(a="");void 0===d&&(d=0);void 0===e&&(e=0);void 0===b&&(b=0);void 0===c&&(c=0);a=a.split(".");b=[d,e,b,c];e=d=0;if(4!==a.length)return!1;var f=1E9;for(c=0;3>=c;c++){var g=parseInt(a[c],10);if(isNaN(g))return!1;d+=g*f;e+=b[c]*f;f/=1E3}return d>=e};u.m=function(){return(new Date).getTime()};
u.uN=function(a){if(null===a||void 0===a)return new ArrayBuffer(0);var b=new ArrayBuffer(a.length),c=new Uint8Array(b),d;var e=0;for(d=a.length;e<d;e++)c[e]=a.charCodeAt(e);return b};u.bj=function(){return 1E3*u.yP()};u.nM=function(a,b){var c=a;var d=a.indexOf("px");-1!==d&&(c=a.slice(0,d),d=c.lastIndexOf(" "),d=-1!==d?c.slice(d+1,c.length):c,c=a.replace(d,b));return c};u.$a=function(a){return u.pf(a.getState().Wh)};u.pf=function(a){return 1.15*a};u.KM=function(a){return.15*a.getState().Wh};
u.cp=function(a){var b=0,c=0,d=a;do b+=d.offsetLeft,c+=d.offsetTop;while(null!==(d=d.offsetParent));return new M(b,c,b+a.offsetWidth,c+a.offsetHeight)};u.jd=function(a,b){var c=b instanceof M?new t(b.s,b.u):b;a.style.position="absolute";a.style.left=Math.floor(c.X)+"px";a.style.top=Math.floor(c.Y)+"px";b instanceof M&&(a.style.width=Math.floor(b.C())+"px",a.style.height=Math.floor(b.B())+"px")};
u.h=function(a){var b=arguments;if(0===b.length)return"";var c=b[0];for(b=1;b<arguments.length;b++){var d=new RegExp("\\{"+(b-1)+"\\}","gi");c=c.replace(d,arguments[b])}return c};u.J=function(a){return a.Qe instanceof ob};u.SM=function(a){return u.h("{0}/{1} {2}/{3}",a.s,a.u,a.T,a.ca)};u.Gb=function(a){return u.h("{0}/{1}",a.X,a.Y)};u.FM=function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b};u.lh=function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};
u.kl=function(a,b){var c=window.document.createElement("canvas");c.width=a;c.height=b;return c};u.wM=function(a,b,c){b=u.kl(b,c);b.style.width="100%";b.style.height="100%";b.style.left="0px";b.style.top="0px";b.style.position="absolute";b.style.margin=0;b.style.padding=0;b.id=a;return b};u.rz=function(a){return 0<a?Math.floor(a):Math.ceil(a)};u.ap=function(a){return 3<=a.length&&"SVG"===a.substring(a.length-3).toUpperCase()};
u.ql=function(a){var b=a.pageX;a=a.pageY;var c=u.ol(u.fb());return new t(b-c.X,a-c.Y)};u.ol=function(a){var b=a.getBoundingClientRect();a=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft;var c=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;b=new t(b.left,b.top);r.oh()&&b.$k(r.Ao());return new t(b.X+a,b.Y+c)};
u.vz=function(a,b){a=a.getBoundingClientRect();if(b===document)return new t(a.left,a.top);b=b.getBoundingClientRect();return new t(b.left-a.left,b.top-a.top)};u.Uz=function(a){var b="";a=new Uint8Array(a);var c=a.byteLength,d;for(d=0;d<c;d++)b+=String.fromCharCode(a[d]);return window.btoa(b)};u.Oy=function(a){var b=p.D(4),c=P.D(b,!0);c.wc(a.X);c.wc(a.Y);return b};u.dz=function(a,b){for(b=b.parentNode;void 0!==b&&null!==b;){if(a===b)return!0;b=b.parentNode}return!1};
u.aj=function(a,b){var c=0,d=0;null!==a&&(""!==a.style.paddingLeft&&(c=parseInt(a.style.paddingLeft,10)),""!==a.style.paddingTop&&(d=parseInt(a.style.paddingTop,10)));for(;null!==a&&a!==b;){var e=0;void 0!==a.style&&""!==a.style.borderWidth&&(e=parseInt(a.style.borderWidth,10));a.offsetLeft&&(c+=a.offsetLeft+e);a.offsetTop&&(d+=a.offsetTop+e);a=a.parentNode}return new t(c,d)};
u.rM=function(a,b){var c=0,d=0;null!==a&&a.style&&(""!==a.style.paddingLeft&&(c=parseInt(a.style.paddingLeft,10)),""!==a.style.paddingTop&&(d=parseInt(a.style.paddingTop,10)));return new t(b.X-c,b.Y-d)};u.fb=function(){return document.getElementById("cdsRoot")};u.oM=function(a,b){a.g.oa&&(a.g.Ll.Xk(),a.g.Sc.Xk(),a.g.Sc.Xg(b))};u.nf=function(a){if(u.nz(a))return a.identifier;if(u.cj(a))return a.pointerId;if(u.RM(a))return 1;throw Error("IllegalArgument!");};
u.nz=function(a){return"undefined"!==typeof Touch&&a instanceof Touch};u.Ro=function(a){return 1===a.which};u.bp=function(a){return"undefined"!==typeof TouchEvent&&a instanceof TouchEvent};u.cj=function(a){return"undefined"!==typeof PointerEvent&&a instanceof PointerEvent};u.RM=function(a){return"undefined"!==typeof MouseEvent&&a instanceof MouseEvent};u.ml=function(a,b){b=b.split("_").slice(1);try{for(var c in b){var d=a.pe(parseInt(b[c],10));a=d.aa()}}catch(e){return null}return void 0!==d?d:null};
u.Oz=function(a,b){var c=[],d;for(d=0;d<=b-1;d++)c.push(a.getInt16());return c};u.Mo=function(a){return a(0,0,0,[],null,!0).Ca()};u.Lo=function(a,b,c){c.$p?(a.s+=Math.floor(a.C()/2)-Math.floor(b.L/2),a.T=a.s+b.L):c.ir?a.s=a.T-b.L:a.T=a.s+b.L;c.Hr?(a.u+=Math.floor(a.B()/2)-Math.floor(b.$/2),a.ca=a.u+b.$):c.pp?a.u=a.ca-b.$:a.ca=a.u+b.$;return a};
u.Ay=function(a,b,c){a.C()<b.C()&&(c.$p?a=a.Ob(Math.floor(b.C()/2)-Math.floor(a.C()/2),0):c.ir&&(a=a.Ob(b.C()-a.C(),0)));a.B()<b.B()&&(c.Hr?a=a.Ob(0,Math.floor(b.B()/2)-Math.floor(a.B()/2)):c.pp&&(a=a.Ob(0,b.B()-a.B())));return a};u.Po=function(a){return"cdsRoot"===a.id};u.Qy=function(a){return a&&"[object Date]"===Object.prototype.toString.call(a)&&!isNaN(a)};u.nl=function(a){return"object"===typeof a&&!(a instanceof Array)&&null!==a};
u.AM=function(a){var b,c="";for(b=0;b<a.length;b++)c=0===b?c+('"'+a[b]+'"'):c+(',"'+a[b]+'"');return c};u.po=function(a,b){for(;a.lastElementChild&&!a.lastElementChild.id.startsWith(b);)a.removeChild(a.lastElementChild)};u.wa=function(a,b){return a.querySelector("#"+b)};var v,eb;v=function(){this.level=eb.ll};v.m=function(a){this.level>=eb.vo&&console.info("--DEBUG--"+JSON.stringify(a))};v.info=function(a){this.level>=eb.ll&&console.info("--INFO--"+JSON.stringify(a))};
v.warn=function(a){this.level>=eb.tu&&console.warn(a)};v.h=function(a){this.level>=eb.Yo&&console.info("--TRACE--"+JSON.stringify(a))};v.error=function(a){this.level>=eb.At&&console.error(a)};v.J=function(a){this.level=a};eb={TP:0,OB:1,At:2,tu:3,ll:4,vo:5,Yo:6};
