UNPKG

gogogojs

Version:

Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams

117 lines 920 kB
/* * GoJS v1.8.15 JavaScript Library for HTML Diagrams * Northwoods Software, https://www.nwoods.com/ * GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation. * Copyright (C) 1998-2018 by Northwoods Software Corporation. All Rights Reserved. * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/1.8.15/doc/license.html. */ (function(window) { var f,ca={};if(!window.document||void 0===window.document.createElement("canvas").getContext)throw window.console&&window.console.log("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode."),Error("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode.");if(!Object.defineProperty)throw Error("GoJS requires a newer version of JavaScript"); Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return g.apply(a,e.concat(d.call(arguments)))}function c(){}var d=Array.prototype.slice,e=d.call(arguments,1),g=this;c.prototype=this.prototype;b.prototype=new c;return b}); (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(b){var c=(new Date).getTime(),g=Math.max(8,16-(c-a)),h=window.setTimeout(function(){b(c+g)},g);a=c+g;return h});window.cancelAnimationFrame||(window.cancelAnimationFrame= function(a){window.clearTimeout(a)})})(); var v={Dj:!1,TA:!1,yF:!1,HI:!1,jM:!1,YF:!1,lu:null,enableBoundsInfo:function(a){v.Dj=!0;a&&a.so()},disableBoundsInfo:function(a){v.Dj=!1;a&&(a.dd.De(!0),a.so())},vF:function(a,b){void 0===a&&(a=v.lu);void 0===b&&(b=a.pm("").rb);var c=b.length,d=a.dd;d.fillStyle="rgba(255,255,0,.3)";for(var e=0;e<c;e++){var g=b.fa(e),h=g.aa;if(g instanceof x)v.vF(a,g.xa);else{var k=g.Ni.copy();k.EB(g.Nc);d.save();d.transform(k.m11,k.m12,k.m21,k.m22,k.dx,k.dy);d.fillRect(h.x,h.y,h.width,h.height);d.restore()}}},wF:function(a, b){a||(a=v.lu);b||(b=a.pm("").rb);var c=a.dd,d=b.length;c.fillStyle="rgba(0,0,255,.3)";for(var e=0;e<d;e++){var g=b.fa(e),h=g.Ga,k=g.Ni;g instanceof x?v.wF(a,g.xa):(c.save(),c.transform(k.m11,k.m12,k.m21,k.m22,k.dx,k.dy),c.fillRect(h.x,h.y,h.width,h.height),c.restore())}},CI:function(a,b){a||(a=v.lu);b||(b=a.pm("").rb);var c=a.dd,d=b.length;c.fillStyle="rgba(0,0,255,.3)";for(var e=0;e<d;e++){var g=b.fa(e),h=g.Fa,k=g.Ni;g instanceof x?v.CI(a,g.xa):(c.save(),c.transform(k.m11,k.m12,k.m21,k.m22,k.dx, k.dy),c.fillRect(h.x||0,h.y||0,h.width,h.height),c.restore())}},JL:function(){v.wF();v.vF()},KL:function(a){a||(a=v.lu);var b=a.kd;a=a.dd;a.strokeStyle="rgba(0,255,0,.9)";a.rect(b.x,b.y,b.width,b.height);a.stroke()},xF:function(a,b){b.fillStyle="red";b.fillRect(0,0,8,8);b.lineWidth=8;b.strokeStyle="rgba(255,255,0,.6)";var c=a.wb;b.rect(c.x,c.y,c.width,c.height);b.stroke();b.fillStyle="rgba(0,255,0,.2)";b.fillRect(a.kd.x,a.kd.y,a.kd.width,a.kd.height)},DI:function(a,b){b instanceof da||(a.lineWidth= 2,a.strokeStyle="rgba(255,0,0,.5)",a.rect(b.bc.x,b.bc.y,b.bc.width,b.bc.height),a.stroke(),b instanceof z&&(a.strokeStyle=b.stroke,a.lineWidth=b.mb),null!==b.R&&b.R.type===fa&&(a.lineWidth=1,a.strokeStyle="rgba(10,200,10,.6)",b instanceof z&&(a.strokeStyle=b.stroke,a.lineWidth=b.mb)))},EI:function(a,b){a.lineWidth=1;a.strokeStyle="rgba(0,0,255,.5)";a.rect(b.Ga.x,b.Ga.y,b.Ga.width,b.Ga.height);a.stroke();void 0!==b.stroke&&(a.strokeStyle=b.stroke);void 0!==b.Rg&&(a.lineWidth=b.Rg)},SA:function(a,b, c){a.setTransform(1,0,0,1,0,0);a.scale(b.ud,b.ud);a.transform(c.m11,c.m12,c.m21,c.m22,c.dx,c.dy);c=b.dc.length;for(var d=0;d<c;d++)for(var e=b.dc.fa(d),g=e.rb.length,h=0;h<g;h++){var k=e.rb.fa(h);if(void 0!==k.location&&null!==k.location){if(k.location.H()){var l=k.location.x,m=k.location.y;a.beginPath();a.strokeStyle="limegreen";a.lineWidth=2;a.moveTo(l,m+6);a.lineTo(l,m);a.lineTo(l+6,m);a.moveTo(l,m);a.lineTo(l+10,m+20);a.stroke()}l=k.position.x;m=k.position.y;a.beginPath();a.strokeStyle="red"; a.lineWidth=2;a.moveTo(l,m+6);a.lineTo(l,m);a.lineTo(l+6,m);a.moveTo(l,m);a.lineTo(l+20,m+10);a.stroke()}}a.setTransform(1,0,0,1,0,0)},LL:function(a,b,c){var d=a.length;b.fillStyle="rgba(255,0,0,.1)";for(var e=0;e<d;e++){var g,h=a[e];g=c.Nc;var k=h.x,l=h.y,m=k+h.width,n=l+h.height,p=g.m11,q=g.m12,r=g.m21,s=g.m22,u=g.dx,t=g.dy,y=k*p+l*r+u,h=k*q+l*s+t;g=m*p+l*r+u;var l=m*q+l*s+t,w=k*p+n*r+u,k=k*q+n*s+t,p=m*p+n*r+u,m=m*q+n*s+t,n=y,q=h,n=Math.min(n,g),y=Math.max(y,g),q=Math.min(q,l),h=Math.max(h,l),n= Math.min(n,w),y=Math.max(y,w),q=Math.min(q,k),h=Math.max(h,k),n=Math.min(n,p),y=Math.max(y,p),q=Math.min(q,m),h=Math.max(h,m);g=new C(n,q,y-n,h-q);b.fillRect(g.x,g.y,g.width,g.height)}},FI:function(a,b,c,d,e){a.fillStyle="rgba(0,255,0,.2)";a.fillRect(b,c,d,e)},GI:function(a,b,c){a.save();var d=b.Nc;d.reset();1!==b.scale&&d.scale(b.scale);b=b.position;0===b.x&&0===b.y||d.translate(-b.x,-b.y);a.setTransform(d.m11,d.m12,d.m21,d.m22,d.dx,d.dy);c=c.gd.o;d=c.length;for(b=0;b<d;b++){var e=c[b];a.beginPath(); a.moveTo(e.x-4,e.y);a.lineTo(e.x+4,e.y);a.moveTo(e.x,e.y-4);a.lineTo(e.x,e.y+4);a.lineWidth=2;a.strokeStyle="rgba(255,0,0,.9)";a.stroke()}a.restore()},HL:function(a){a||(a=v.lu);for(a=a.bo;a.next();)D.trace(a.value.toString())},xM:function(a,b){var c=b.dp(a),d=b.cc;d.te=b.nC(c);d.ha=c;return ga(b,d,a)},sM:function(a,b){b.Je(a.ha)&&(b.dd.fillStyle="lime",b.dd.fillRect(a.te.x,a.te.y,1*b.scale,1*b.scale))},tM:function(a){var b=ha(a,!1,null,null);if(!b.vq){var c=a.wb,d=a.scale;a=a.dd;for(var e=0;e<=b.An;e++)for(var g= 0;g<=b.Bn;g++){var h=b.sd[e][g];if(0!==h){var k=(e*b.he+b.$f-c.x)*d,l=(g*b.Rd+b.ag-c.y)*d;0!==h&&(a.fillStyle="rgba(255, 0, 0, .2)",a.fillRect(k,l,b.he*d,b.Rd*d));999999<=h||(h%=10,a.fillStyle="blue",a.fillText(h.toString(),k,l+b.Rd))}}}},dumpReferences:function(a){if(a instanceof E)for(a=a.bo;a.next();){var b=a.value;D.trace(b.toString());for(b=b.Hi;b.next();)v.dumpReferences(b.value)}else if(a instanceof F){D.trace("References for "+a);null!==a.layer&&D.trace(" "+a.layer.toString()+' LayerName: "'+ a.Nf+'"');a.Bm!==a&&D.trace(" SelectionObject: "+a.Bm.toString()+' SelectionObjectName: "'+a.Oy+'"');a.Cf!==a&&D.trace(" LocationObject: "+a.Cf.toString()+' LocationObjectName: "'+a.ty+'"');if(a.lh){for(var b="",c=a.lh.j;c.next();)b+=c.key+" ";D.trace(" Adornments: "+b)}null!==a.Ka&&D.trace(" ContainingGroup: "+a.Ka.toString());if(a instanceof G){if(0<a.Od.count){b="";for(c=a.Od;c.next();)b+=c.value.toString()+", ";D.trace(" Links: "+b)}null!==a.Xb&&D.trace(" LabeledLink: "+a.Xb.toString()); if(a instanceof I){D.trace(" Placeholder: "+a.placeholder);b="";for(c=a.uc;c.next();)b+=c.value.toString()+", ";D.trace(" Members: "+b);b="";for(c=a.hn.j;c.next();)b+=c.value.toString()+", ";D.trace(" NestedGroups: "+b);D.trace(" Layout: "+a.Yb)}}else if(a instanceof J){D.trace(" Path: "+a.path);D.trace(" From: "+a.$+" "+a.oc+' "'+a.hg+'"');D.trace(" To: "+a.ba+" "+a.Gc+' "'+a.jh+'"');b="";for(a=a.Bf;a.next();)b+=a.value.toString()+", ";D.trace(" LabelNodes: "+b)}}},dumpVisualTree:function(a){if(a instanceof E)for(a=a.bo;a.next();){var b=a.value;D.trace(b.toString());for(b=b.Hi;b.next();)v.dumpVisualTree(b.value)}else a instanceof F&&(b=" ",a.lF&&(b+="c"),a.pF&&(b+="d"),a.WF&&(b+="g"),a.xG&&(b+="m"),a.MG&&(b+="h"),a.NG&&(b+="z"),a.SG&&(b+="o"),a.il&&(b+="s"),a.iH&&(b+="t"),a.YG&&(b+="A"),a.hy&&(b+="B"),a.rB&&(b+="L"),a.jb&&(b+="S"),a.dl&&(b+="H"),v.qD(a,1,b))},qD:function(a,b,c){for(var d="",e=0;e<b;e++)d+=" ";d+=a.toString();c&&(d+=c);c=a.name?' "'+a.name+'" ':" ";c=a.visible?c+"v":c+"!v";c=a.tg?c+ "p":c+"!p";a.Ue&&(c+="m");a.Hu&&(c+="a");d+=c;if(0!==a.Sb||0!==a.column)d+=" ["+a.Sb+","+a.column+"]";d+=" "+a.aa.toString();a.Ea.H()&&(d+=" d:"+a.Ea.toString());a.Ga.H()&&(d+=" n:"+a.Ga.toString());1!==a.scale&&(d+=" s:"+a.scale);0!==a.angle&&(d+=" a:"+a.angle);null!==a.background&&(d+=" b:"+a.background.toString());null!==a.gm&&(d+=" a:"+a.background.toString());a instanceof x&&(d+=" elts:"+a.xa.count,a.isEnabled||(d+=" !ENABLED"),a.yq&&(d+=" CLIPPING"),0!==a.oH&&(d+=" top:"+a.oH),0!==a.qG&&(d+= " left:"+a.qG),null!==a.el&&(d+=" itemArray#:"+D.cb(a.el)),a.mG&&(d+=" cat:"+a.mG),null!==a.data&&(d+=" data:"+a.data));null!==a.yd&&(d+=' portId: "'+a.yd+'"');D.trace(d);if(a instanceof x)for(a=a.elements;a.next();)v.qD(a.value,b+1,"")},NL:function(a){D.trace("DelayedReferences ("+a.zg.count+")");for(a=a.zg.j;a.next();){for(var b="",c=a.value.j;c.next();)b+=ia(c.value)+", ";D.trace(" "+a.key+": "+b)}},dF:function(a,b){if(!D.Qa(b)||b instanceof Element||b instanceof CanvasRenderingContext2D||b instanceof ja||b instanceof ma)return"";var c="",d;for(d in b)if("string"!==typeof d)""===c&&(c=b+"\n"),c+=" "+d+" is not a string property\n";else if("_"!==d.charAt(0)&&!(2>=d.length)){var e=D.xb(b,d);if(null!==e&&"function"!==typeof e){if(b.hasOwnProperty(d)){var g=Object.getPrototypeOf(b);if(g&&g.Rw&&g.Rw[d])continue}else if(D.by(b,d))continue;""===c&&(c=b+"\n");c+=' unknown property "'+d+'" has value: '+e+" at "+a+"\n"}}return c},Hx:function(a,b){if(null!==b&&void 0!==b&&"number"!==typeof b&&"string"!== typeof b&&"boolean"!==typeof b&&"function"!==typeof b)if(void 0!==D.Nd(b)){if(!v.gx.contains(b))if(v.gx.add(b),v.Fw.add(v.dF(a,b)),b instanceof K||b instanceof L||b instanceof na)for(var c=b.j;c.next();)v.Hx(a+"["+c.key+"]",c.value);else for(c in b){var d=D.xb(b,c);if(void 0!==d&&null!==d&&D.Qa(d)&&d!==b.Rw){if(b instanceof pa){if(d===b.tf)continue}else if(b instanceof x){if("data"===c||d===b.Sd)continue;if("itemArray"===c||d===b.ej)continue;if(b instanceof F&&d===b.Sl)continue}else if(!(b instanceof E))if(b instanceof qa){if("archetypeGroupData"===c||d===b.lz)continue}else if(b instanceof ra){if("archetypeLinkData"===c||d===b.nz)continue;if("archetypeLabelNodeData"===c||d===b.mz)continue}else if(b instanceof ta){if("archetypeNodeData"===c||d===b.yl)continue}else if(b instanceof M){if("nodeDataArray"===c||d===b.ze)continue;if("linkDataArray"===c||d===b.df||d===b.ki)continue;if(d===b.Kc)continue;if(d===b.zg)continue}else if(b instanceof ua||b instanceof va||b instanceof wa)continue;v.Hx(a+"."+ c,d)}}}else if(Array.isArray(b))for(c=0;c<b.length;c++)v.Hx(a+"["+c+"]",b[c]);else v.Fw.add(v.dF(a,b))},checkProperties:function(a){void 0===v.gx?v.gx=new L(Object):v.gx.clear();v.Fw=new xa;v.Hx("",a);a=v.Fw.toString();v.Fw=null;return a}};ca.Debug=v; var D={Ad:1,bd:2,rd:4,qd:8,Yn:void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("534.30")&&0<window.navigator.userAgent.indexOf("Android"),Mu:void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("MSIE 9.0"),zq:void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("MSIE 10.0"),Aq:void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("Trident/7"),oB:void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("Edge/"),Qh:void 0!==window.navigator&&void 0!== window.navigator.platform&&0<=window.navigator.platform.toUpperCase().indexOf("MAC"),gG:void 0!==window.navigator&&void 0!==window.navigator.platform&&null!==window.navigator.platform.match(/(iPhone|iPod|iPad)/i),mF:function(a,b,c){var d=-1;return function(){var e=this,g=arguments;-1!==d&&D.clearTimeout(d);d=D.setTimeout(function(){d=-1;c||a.apply(e,g)},b);c&&!d&&a.apply(e,g)}},setTimeout:function(a,b){return window.setTimeout(a,b)},clearTimeout:function(a){window.clearTimeout(a)},createElement:function(a){return window.document.createElement(a)}, k:function(a){throw Error(a);},qa:function(a,b){var c="The object is frozen, so its properties cannot be set: "+a.toString();void 0!==b&&(c+=" to value: "+b);D.k(c)},l:function(a,b,c,d){a instanceof b||(c=D.getTypeName(c),void 0!==d&&(c+="."+d),D.kc(a,b,c))},h:function(a,b,c,d){typeof a!==b&&(c=D.getTypeName(c),void 0!==d&&(c+="."+d),D.kc(a,b,c))},p:function(a,b,c){"number"===typeof a&&isFinite(a)||(b=D.getTypeName(b),void 0!==c&&(b+="."+c),D.k(b+" must be a real number type, and not NaN or Infinity: "+ a))},Da:function(a,b,c,d){a instanceof ya&&a.Qe===b||(c=D.getTypeName(c),void 0!==d&&(c+="."+d),D.kc(a,"a constant of class "+D.xf(b),c))},hu:function(a,b){"string"===typeof a?za(a)||D.k('Color "'+a+'" is not a valid color string for '+b):a instanceof Ba||D.k("Value for "+b+" must be a color string or a Brush, not "+a)},kc:function(a,b,c,d){b=D.getTypeName(b);c=D.getTypeName(c);void 0!==d&&(c+="."+d);"string"===typeof a?D.k(c+" value is not an instance of "+b+': "'+a+'"'):D.k(c+" value is not an instance of "+ b+": "+a)},ua:function(a,b,c,d){c=D.getTypeName(c);void 0!==d&&(c+="."+d);D.k(c+" is not in the range "+b+": "+a)},zd:function(a){D.k(D.xf(a)+" constructor cannot take any arguments.")},Va:function(a){D.k("Collection was modified during iteration: "+a.toString()+"\n Perhaps you should iterate over a copy of the collection,\n or you could collect items to be removed from the collection after the iteration.")},ak:function(a,b){D.k("No property to set for this enum value: "+b+" on "+a.toString())}, trace:function(a){window.console&&window.console.log(a)},Qx:{},Pn:function(a,b){!0!==D.Qx[a]&&(D.Qx[a]=!0,window.console&&window.console.log(a+" is deprecated in "+b+", see the GoJS change log for more information."))},Qa:function(a){return"object"===typeof a&&null!==a},isArray:function(a){return Array.isArray(a)||a instanceof NodeList||a instanceof HTMLCollection},oJ:function(a){return Array.isArray(a)},gu:function(a,b,c){D.isArray(a)||D.kc(a,"Array or NodeList or HTMLCollection",b,c)},cb:function(a){return a.length}, km:function(a){return Array.prototype.slice.call(a)},La:function(a,b){Array.isArray(a);return a[b]},aF:function(a,b,c){Array.isArray(a)?a[b]=c:D.k("Cannot replace an object in an HTMLCollection or NodeList at "+b)},hm:function(a,b){if(Array.isArray(a))return a.indexOf(b);for(var c=a.length,d=0;d<c;d++)if(a[d]===b)return d;return-1},Ih:function(a,b,c){Array.isArray(a)?b>=a.length?a.push(c):a.splice(b,0,c):D.k("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},Vg:function(a, b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):D.k("Cannot remove an object from an HTMLCollection or NodeList at "+b)},cz:[],P:function(){var a=D.cz.pop();return void 0===a?new N:a},Fb:function(a,b){var c=D.cz.pop();if(void 0===c)return new N(a,b);c.x=a;c.y=b;return c},A:function(a){D.cz.push(a)},BC:[],Hm:function(){var a=D.BC.pop();return void 0===a?new Ca:a},Zk:function(a){D.BC.push(a)},dz:[],Sf:function(){var a=D.dz.pop();return void 0===a?new C:a},vg:function(a,b,c,d){var e=D.dz.pop(); if(void 0===e)return new C(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},Lb:function(a){D.dz.push(a)},CC:[],hh:function(){var a=D.CC.pop();return void 0===a?new Ea:a},mf:function(a){D.CC.push(a)},ez:null,v:function(){var a=D.ez;return null!==a?(D.ez=null,a):new Fa},u:function(a){a.reset();D.ez=a},AC:[],nb:function(){var a=D.AC.pop();return void 0===a?[]:a},ya:function(a){a.length=0;D.AC.push(a)},Do:Object.freeze([]),Lm:1,xc:function(a){a.__gohashid=D.Lm++},sq:function(a){var b=a.__gohashid; void 0===b&&(b=D.Lm++,a.__gohashid=b);return b},Nd:function(a){return a.__gohashid},ka:function(a,b){b.sz=a;ca[a]=b},Ta:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},Di:function(a){a.NH=!0},defineProperty:function(a,b,c,d,e){D.h(a,"function","Util.defineProperty:classfunc");D.h(b,"object","Util.defineProperty:propobj");D.h(c,"function","Util.defineProperty:getter");D.h(d,"function","Util.defineProperty:setter");for(var g in b){b=b[g];c={get:c,set:d, enumerable:!0};if(void 0!==e)for(var h in e)c[h]=e[h];Object.defineProperty(a.prototype,g,c);e=Object.getOwnPropertyDescriptor(a.prototype,g);b&&e&&Object.defineProperty(a.prototype,b,e);break}},LK:!1,w:function(a,b,c,d){D.h(a,"function","Util.defineReadOnlyProperty:classfunc");D.h(b,"object","Util.defineReadOnlyProperty:propobj");D.h(c,"function","Util.defineReadOnlyProperty:getter");for(var e in b){var g=b[e];b={get:c,set:function(a){D.k('The property "'+g+'" is read-only and cannot be set to '+ a)},enumerable:!0};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);g&&d&&Object.defineProperty(a.prototype,g,d);break}},me:function(a,b){for(var c in b)b[c]=!0;a.prototype.Rw=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"===typeof a?D.xf(a):null===a?"*":""},xf:function(a){if("function"===typeof a){if(a.sz)return a.sz;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9, c).trim();if(""!==b)return a.sz=b}else if(D.Qa(a)&&a.constructor)return D.xf(a.constructor);return typeof a},s:function(a,b,c){D.h(a,"function","Util.defineEnumValue:classfunc");D.h(b,"string","Util.defineEnumValue:name");D.h(c,"number","Util.defineEnumValue:num");c=new ya(a,b,c);Object.freeze(c);a[b]=c;var d=a.zv;d instanceof na||(d=new na("string",ya),a.zv=d);d.add(b,c);return c},xb:function(a,b){if(!a||!b)return null;var c=void 0;try{"function"===typeof b?c=b(a):"function"===typeof a.getAttribute? (c=a.getAttribute(b),null===c&&(c=void 0)):c=a[b]}catch(d){v&&D.trace("property get error: "+d.toString())}return c},Ua:function(a,b,c){if(a&&b)try{"function"===typeof b?b(a,c):"function"===typeof a.setAttribute?a.setAttribute(b,c):a[b]=c}catch(d){v&&D.trace("property set error: "+d.toString())}},nv:function(a,b){D.h(a,"object","Setting properties requires Objects as arguments");D.h(b,"object","Setting properties requires Objects as arguments");var c=a instanceof x,d=a instanceof E,e;for(e in b){""=== e&&D.k("Setting properties requires non-empty property names");var g=a,h=e;if(c||d){var k=e.indexOf(".");if(0<k){var l=e.substring(0,k);if(c)g=a.Md(l);else if(g=a[l],void 0===g||null===g)g=a.ob[l];D.Qa(g)?h=e.substr(k+1):D.k("Unable to find object named: "+l+" in "+a.toString()+" when trying to set property: "+e)}}if("_"!==h[0]&&!D.by(g,h))if(d&&"ModelChanged"===h){a.XH(b[h]);continue}else if(d&&"Changed"===h){a.Cn(b[h]);continue}else if(d&&D.by(a.ob,h))g=a.ob;else if(d&&Ga(a,h)){a.xx(h,b[h]);continue}else if(a instanceof M&&"Changed"===h){a.Cn(b[h]);continue}else D.k('Trying to set undefined property "'+h+'" on object: '+g.toString());g[h]=b[e];"_"===h[0]&&g instanceof O&&g.UH(h)}},by:function(a,b){if(a.hasOwnProperty(b))return!0;for(var c=Object.getPrototypeOf(a);c&&c!==Function;){if(c.hasOwnProperty(b))return!0;var d=c.Rw;if(d&&d[b])return!0;c=Object.getPrototypeOf(c)}return!1},$J:function(a){for(var b=[],c=0;256>c;c++)b[c]=c;for(var d=0,e=0,c=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;for(var d=c=0, g="",h=0;h<a.length;h++)c=(c+1)%256,d=(d+b[c])%256,e=b[c],b[c]=b[d],b[d]=e,g+=String.fromCharCode(a.charCodeAt(h)^b[(b[c]+b[d])%256]);return g},bJ:function(a){for(var b={},c=0;256>c;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);for(var d=[],e=0,c=0;c<a.length;c+=2)d[e++]=b[a.substr(c,2)];a=d.join("");return""===a?"0":a},Wg:function(a){return D.$J(D.bJ(a))},Jm:null,adym:"7da71ca0ad381e90",vfo:"2be64efdb263",oL:"@COLOR1",pL:"@COLOR2", nF:!1,ju:null,ku:null}; D.Jm=function(){var a=window.document.createElement("canvas"),b=a.getContext("2d");b[D.Wg("7ca11abfd022028846")]=D.Wg("398c3597c01238");for(var c=["5da73c80a36755dc038e4972187c3cae51fd22","32ab5ff3b26f42dc0ed90f224c2913b54ae6247590da4bb21c324ba3a84e385776","54a702f3e53909c447824c6706603faf4cfb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387","74bf19bce72555874c86"],d=1;5>d;d++)b[D.Wg("7ca11abfd7330390")](D.Wg(c[d-1]),10,15*d+0);b[D.Wg("7ca11abfd022028846")]=D.Wg("39f046ebb36e4b");for(d=1;5>d;d++)b[D.Wg("7ca11abfd7330390")](D.Wg(c[d- 1]),10,15*d+0);if(4!==c.length||"5"!==c[0][0]||"7"!==c[3][0])D.s=function(a,b){var c=new ya(a,b,2);Object.freeze(c);a[b]=c;var d=a.zv;d instanceof na||(d=new na("string",ya),a.zv=d);d.add(b,c);return c};return a}();function ya(a,b,c){D.xc(this);this.MC=a;this.$b=b;this.RH=c}D.ka("EnumValue",ya);ya.prototype.toString=function(){return D.xf(this.MC)+"."+this.$b};D.w(ya,{Qe:"classType"},function(){return this.MC});D.w(ya,{name:"name"},function(){return this.$b});D.w(ya,{value:"value"},function(){return this.RH}); var Ha;ya.findName=Ha=function(a,b){if(void 0===b||null===b||""===b)return null;D.h(a,"function","findName:classfunc");D.h(b,"string","EnumValue.findName:name");var c=a.zv;return c instanceof na?c.oa(b):null};function xa(){this.LC=[]}xa.prototype.toString=function(){return this.LC.join("")};xa.prototype.add=function(a){""!==a&&this.LC.push(a)};function ma(){} function Ia(a){void 0===a&&(a=42);this.seed=a;this.Zy=48271;this.yv=2147483647;this.zC=this.yv/this.Zy;this.zH=this.yv%this.Zy;this.yH=1/this.yv;this.random()}Ia.prototype.random=function(){var a=this.seed%this.zC*this.Zy-this.seed/this.zC*this.zH;this.seed=0<a?a:a+this.yv;return this.seed*this.yH};function Ja(){}D.w(Ja,{j:"iterator"},function(){return this});Ja.prototype.reset=Ja.prototype.reset=function(){};Ja.prototype.next=Ja.prototype.next=function(){return!1};Ja.prototype.hasNext=function(){return!1}; Ja.prototype.first=Ja.prototype.first=function(){return null};Ja.prototype.any=function(){return!1};Ja.prototype.all=function(){return!0};Ja.prototype.each=function(){return this};Ja.prototype.map=function(){return this};Ja.prototype.filter=function(){return this};Ja.prototype.concat=function(a){return a.j};D.w(Ja,{count:"count"},function(){return 0});Ja.prototype.Vf=function(){};Ja.prototype.toString=function(){return"EmptyIterator"};var Ka=new Ja;function Ma(a){this.key=-1;this.value=a} D.me(Ma,{key:!0,value:!0});D.w(Ma,{j:"iterator"},function(){return this});Ma.prototype.reset=Ma.prototype.reset=function(){this.key=-1};Ma.prototype.next=Ma.prototype.next=function(){return-1===this.key?(this.key=0,!0):!1};Ma.prototype.hasNext=function(){return this.next()};Ma.prototype.first=Ma.prototype.first=function(){this.key=0;return this.value};Ma.prototype.any=function(a){this.key=-1;return a(this.value)};Ma.prototype.all=function(a){this.key=-1;return a(this.value)}; Ma.prototype.each=function(a){this.key=-1;a(this.value);return this};Ma.prototype.map=function(a){return new Ma(a(this.value))};Ma.prototype.filter=function(a){return a(this.value)?new Ma(this.value):Ka};Ma.prototype.concat=function(a){return new Na(this,a.j)};D.w(Ma,{count:"count"},function(){return 1});Ma.prototype.Vf=function(){this.value=null};Ma.prototype.toString=function(){return"SingletonIterator("+this.value+")"};function Na(a,b){this.Ll=a;this.Ml=b;this.Av=!1}D.me(Na,{key:!0,value:!0}); D.w(Na,{j:"iterator"},function(){return this});Na.prototype.reset=Na.prototype.reset=function(){this.Ll.reset();this.Ml.reset();this.Av=!1};Na.prototype.next=Na.prototype.next=function(){if(!this.Av){var a=this.Ll;if(a.next())return this.key=a.key,this.value=a.value,!0;this.Av=!0}return this.Av&&(a=this.Ml,a.next())?(this.key=a.key,this.value=a.value,!0):!1};Na.prototype.hasNext=function(){return this.next()}; Na.prototype.first=Na.prototype.first=function(){this.reset();return this.next()?this.value:null};Na.prototype.any=function(a){return this.Ll.any(a)||this.Ml.any(a)?!0:!1};Na.prototype.all=function(a){return this.Ll.all(a)&&this.Ml.all(a)?!0:!1};Na.prototype.each=function(a){this.Ll.each(a);this.Ml.each(a);return this};Na.prototype.map=function(a){return new Na(this.Ll.map(a),this.Ml.map(a))};Na.prototype.filter=function(a){return new Na(this.Ll.filter(a),this.Ml.filter(a))}; Na.prototype.concat=function(a){return new Na(this,a.j)};D.w(Na,{count:"count"},function(){return this.Ll.count+this.Ml.count});Na.prototype.Vf=function(){this.value=this.key=null};Na.prototype.toString=function(){return"ConcatIterator()"};function Qa(a){this.Jc=a;this.pi=null;a.Zb=null;this.$a=a.I;this.Ic=-1}D.me(Qa,{key:!0,value:!0});D.w(Qa,{j:"iterator"},function(){return this});D.defineProperty(Qa,{Nq:"predicate"},function(){return this.pi},function(a){this.pi=a}); Qa.prototype.reset=Qa.prototype.reset=function(){var a=this.Jc;a.Zb=null;this.$a=a.I;this.Ic=-1};Qa.prototype.next=Qa.prototype.next=function(){var a=this.Jc;if(a.I!==this.$a){if(0>this.key)return!1;D.Va(a)}var a=a.o,b=a.length,c=++this.Ic,d=this.pi;if(null!==d)for(;c<b;){var e=a[c];if(d(e))return this.key=this.Ic=c,this.value=e,!0;c++}else{if(c<b)return this.key=c,this.value=a[c],!0;this.Vf()}return!1};Qa.prototype.hasNext=function(){return this.next()}; Qa.prototype.first=Qa.prototype.first=function(){var a=this.Jc;this.$a=a.I;this.Ic=0;var a=a.o,b=a.length,c=this.pi;if(null!==c){for(var d=0;d<b;){var e=a[d];if(c(e))return this.key=this.Ic=d,this.value=e;d++}return null}return 0<b?(e=a[0],this.key=0,this.value=e):null};Qa.prototype.any=function(a){var b=this.Jc;b.Zb=null;var c=b.I;this.Ic=-1;for(var d=b.o,e=d.length,g=this.pi,h=0;h<e;h++){var k=d[h];if(null===g||g(k)){if(a(k))return!0;b.I!==c&&D.Va(b)}}return!1}; Qa.prototype.all=function(a){var b=this.Jc;b.Zb=null;var c=b.I;this.Ic=-1;for(var d=b.o,e=d.length,g=this.pi,h=0;h<e;h++){var k=d[h];if(null===g||g(k)){if(!a(k))return!1;b.I!==c&&D.Va(b)}}return!0};Qa.prototype.each=function(a){var b=this.Jc;b.Zb=null;var c=b.I;this.Ic=-1;for(var d=b.o,e=d.length,g=this.pi,h=0;h<e;h++){var k=d[h];if(null===g||g(k))a(k),b.I!==c&&D.Va(b)}return this}; Qa.prototype.map=function(a){var b=this.Jc;b.Zb=null;var c=b.I;this.Ic=-1;for(var d=[],e=b.o,g=e.length,h=this.pi,k=0;k<g;k++){var l=e[k];if(null===h||h(l))d.push(a(l)),b.I!==c&&D.Va(b)}a=new K;a.o=d;a.Uc();return a.j};Qa.prototype.filter=function(a){var b=this.Jc;b.Zb=null;var c=b.I;this.Ic=-1;for(var d=[],e=b.o,g=e.length,h=this.pi,k=0;k<g;k++){var l=e[k];if(null===h||h(l))a(l)&&d.push(l),b.I!==c&&D.Va(b)}a=new K(b.ca);a.o=d;a.Uc();return a.j}; Qa.prototype.concat=function(a){this.Jc.Zb=null;return new Na(this,a.j)};D.w(Qa,{count:"count"},function(){var a=this.pi;if(null!==a){for(var b=0,c=this.Jc.o,d=c.length,e=0;e<d;e++)a(c[e])&&b++;return b}return this.Jc.o.length});Qa.prototype.Vf=function(){this.key=-1;this.value=null;this.$a=-1;this.pi=null;this.Jc.Zb=this};Qa.prototype.toString=function(){return"ListIterator@"+this.Ic+"/"+this.Jc.count};function Ua(a){this.Jc=a;a.fj=null;this.$a=a.I;this.Ic=a.o.length}D.me(Ua,{key:!0,value:!0}); D.w(Ua,{j:"iterator"},function(){return this});Ua.prototype.reset=Ua.prototype.reset=function(){var a=this.Jc;a.fj=null;this.$a=a.I;this.Ic=a.o.length};Ua.prototype.next=Ua.prototype.next=function(){var a=this.Jc;if(a.I!==this.$a){if(0>this.key)return!1;D.Va(a)}var b=--this.Ic;if(0<=b)return this.key=b,this.value=a.o[b],!0;this.Vf();return!1};Ua.prototype.hasNext=function(){return this.next()}; Ua.prototype.first=Ua.prototype.first=function(){var a=this.Jc;this.$a=a.I;var b=a.o;this.Ic=a=b.length-1;return 0<=a?(b=b[a],this.key=a,this.value=b):null};Ua.prototype.any=function(a){var b=this.Jc;b.fj=null;var c=b.I,d=b.o,e=d.length;this.Ic=e;for(e-=1;0<=e;e--){if(a(d[e]))return!0;b.I!==c&&D.Va(b)}return!1};Ua.prototype.all=function(a){var b=this.Jc;b.fj=null;var c=b.I,d=b.o,e=d.length;this.Ic=e;for(e-=1;0<=e;e--){if(!a(d[e]))return!1;b.I!==c&&D.Va(b)}return!0}; Ua.prototype.each=function(a){var b=this.Jc;b.fj=null;var c=b.I,d=b.o,e=d.length;this.Ic=e;for(e-=1;0<=e;e--)a(d[e]),b.I!==c&&D.Va(b);return this};Ua.prototype.map=function(a){var b=this.Jc;b.fj=null;var c=b.I,d=[],e=b.o,g=e.length;this.Ic=g;for(g-=1;0<=g;g--)d.push(a(e[g])),b.I!==c&&D.Va(b);a=new K;a.o=d;a.Uc();return a.j}; Ua.prototype.filter=function(a){var b=this.Jc;b.fj=null;var c=b.I,d=[],e=b.o,g=e.length;this.Ic=g;for(g-=1;0<=g;g--){var h=e[g];a(h)&&d.push(h);b.I!==c&&D.Va(b)}a=new K(b.ca);a.o=d;a.Uc();return a.j};Ua.prototype.concat=function(a){this.Jc.fj=null;return new Na(this,a.j)};D.w(Ua,{count:"count"},function(){return this.Jc.o.length});Ua.prototype.Vf=function(){this.key=-1;this.value=null;this.$a=-1;this.Jc.fj=this}; Ua.prototype.toString=function(){return"ListIteratorBackwards("+this.Ic+"/"+this.Jc.count+")"}; function K(a){D.xc(this);this.J=!1;this.o=[];this.I=0;this.fj=this.Zb=null;void 0===a||null===a?this.ca=null:"string"===typeof a?"object"===a||"string"===a||"number"===a||"boolean"===a||"function"===a?this.ca=a:D.ua(a,"the string 'object', 'number', 'string', 'boolean', or 'function'","List constructor: type"):"function"===typeof a?this.ca=a===Object?"object":a===String?"string":a===Number?"number":a===Boolean?"boolean":a===Function?"function":a:D.ua(a,"null, a primitive type name, or a class type", "List constructor: type")}D.ka("List",K);K.prototype.nh=function(a){null!==this.ca&&("string"===typeof this.ca?typeof a===this.ca&&null!==a||D.kc(a,this.ca):a instanceof this.ca||D.kc(a,this.ca))};K.prototype.Uc=function(){var a=this.I;a++;999999999<a&&(a=0);this.I=a};K.prototype.freeze=K.prototype.freeze=function(){this.J=!0;return this};K.prototype.thaw=K.prototype.Xa=function(){this.J=!1;return this};K.prototype.toString=function(){return"List("+D.getTypeName(this.ca)+")#"+D.Nd(this)}; K.prototype.add=K.prototype.add=function(a){null!==a&&(v&&this.nh(a),this.J&&D.qa(this,a),this.o.push(a),this.Uc())};K.prototype.push=K.prototype.push=function(a){this.add(a)};K.prototype.addAll=K.prototype.Vc=function(a){if(null===a)return this;this.J&&D.qa(this);var b=this.o;if(D.isArray(a))for(var c=D.cb(a),d=0;d<c;d++){var e=D.La(a,d);v&&this.nh(e);b.push(e)}else for(a=a.j;a.next();)e=a.value,v&&this.nh(e),b.push(e);this.Uc();return this}; K.prototype.clear=K.prototype.clear=function(){this.J&&D.qa(this);this.o.length=0;this.Uc()};K.prototype.contains=K.prototype.contains=function(a){if(null===a)return!1;v&&this.nh(a);return-1!==this.o.indexOf(a)};K.prototype.has=K.prototype.has=function(a){return this.contains(a)};K.prototype.indexOf=K.prototype.indexOf=function(a){if(null===a)return-1;v&&this.nh(a);return this.o.indexOf(a)}; K.prototype.elt=K.prototype.fa=function(a){v&&D.p(a,K,"elt:i");var b=this.o;(0>a||a>=b.length)&&D.ua(a,"0 <= i < length",K,"elt:i");return b[a]};K.prototype.get=K.prototype.get=function(a){return this.fa(a)};K.prototype.setElt=K.prototype.ug=function(a,b){v&&(this.nh(b),D.p(a,K,"setElt:i"));var c=this.o;(0>a||a>=c.length)&&D.ua(a,"0 <= i < length",K,"setElt:i");this.J&&D.qa(this,a);c[a]=b};K.prototype.set=K.prototype.set=function(a,b){this.ug(a,b)}; K.prototype.first=K.prototype.first=function(){var a=this.o;return 0===a.length?null:a[0]};K.prototype.last=K.prototype.re=function(){var a=this.o,b=a.length;return 0<b?a[b-1]:null};K.prototype.pop=K.prototype.pop=function(){this.J&&D.qa(this);var a=this.o;return 0<a.length?a.pop():null};K.prototype.any=function(a){for(var b=this.o,c=this.I,d=b.length,e=0;e<d;e++){if(a(b[e]))return!0;this.I!==c&&D.Va(this)}return!1}; K.prototype.all=function(a){for(var b=this.o,c=this.I,d=b.length,e=0;e<d;e++){if(!a(b[e]))return!1;this.I!==c&&D.Va(this)}return!0};K.prototype.each=function(a){for(var b=this.o,c=this.I,d=b.length,e=0;e<d;e++)a(b[e]),this.I!==c&&D.Va(this);return this};K.prototype.map=function(a){for(var b=new K,c=[],d=this.o,e=this.I,g=d.length,h=0;h<g;h++)c.push(a(d[h])),this.I!==e&&D.Va(this);b.o=c;b.Uc();return b}; K.prototype.filter=function(a){for(var b=new K(this.ca),c=[],d=this.o,e=this.I,g=d.length,h=0;h<g;h++){var k=d[h];a(k)&&c.push(k);this.I!==e&&D.Va(this)}b.o=c;b.Uc();return b};K.prototype.concat=function(a){return this.copy().Vc(a)};K.prototype.insertAt=K.prototype.be=function(a,b){v&&(this.nh(b),D.p(a,K,"insertAt:i"));0>a&&D.ua(a,">= 0",K,"insertAt:i");this.J&&D.qa(this,a);var c=this.o;a>=c.length?c.push(b):c.splice(a,0,b);this.Uc();return!0}; K.prototype.remove=K.prototype["delete"]=K.prototype.remove=function(a){if(null===a)return!1;v&&this.nh(a);this.J&&D.qa(this,a);var b=this.o;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.Uc();return!0};K.prototype.removeAt=K.prototype.pd=function(a){v&&D.p(a,K,"removeAt:i");var b=this.o;(0>a||a>=b.length)&&D.ua(a,"0 <= i < length",K,"removeAt:i");this.J&&D.qa(this,a);a===b.length-1?b.pop():b.splice(a,1);this.Uc()}; K.prototype.removeRange=K.prototype.removeRange=function(a,b){v&&(D.p(a,K,"removeRange:from"),D.p(b,K,"removeRange:to"));var c=this.o,d=c.length;if(0>a)a=0;else if(a>=d)return this;if(0>b)return this;b>=d&&(b=d-1);if(a>b)return this;this.J&&D.qa(this);for(var e=a,g=b+1;g<d;)c[e++]=c[g++];c.length=d-(b-a+1);this.Uc();return this};K.prototype.copy=function(){var a=new K(this.ca),b=this.o;0<b.length&&(a.o=Array.prototype.slice.call(b));return a}; K.prototype.toArray=K.prototype.Fc=function(){for(var a=this.o,b=this.count,c=Array(b),d=0;d<b;d++)c[d]=a[d];return c};K.prototype.toSet=K.prototype.nH=function(){for(var a=new L(this.ca),b=this.o,c=this.count,d=0;d<c;d++)a.add(b[d]);return a};K.prototype.sort=K.prototype.sort=function(a){v&&D.h(a,"function",K,"sort:sortfunc");this.J&&D.qa(this);this.o.sort(a);this.Uc();return this}; K.prototype.sortRange=K.prototype.Zq=function(a,b,c){var d=this.o,e=d.length;void 0===b&&(b=0);void 0===c&&(c=e);v&&(D.h(a,"function",K,"sortRange:sortfunc"),D.p(b,K,"sortRange:from"),D.p(c,K,"sortRange:to"));this.J&&D.qa(this);var g=c-b;if(1>=g)return this;(0>b||b>=e-1)&&D.ua(b,"0 <= from < length",K,"sortRange:from");if(2===g)return c=d[b],e=d[b+1],0<a(c,e)&&(d[b]=e,d[b+1]=c,this.Uc()),this;if(0===b)if(c>=e)d.sort(a);else for(g=d.slice(0,c),g.sort(a),a=0;a<c;a++)d[a]=g[a];else if(c>=e)for(g=d.slice(b), g.sort(a),a=b;a<e;a++)d[a]=g[a-b];else for(g=d.slice(b,c),g.sort(a),a=b;a<c;a++)d[a]=g[a-b];this.Uc();return this};K.prototype.reverse=K.prototype.reverse=function(){this.J&&D.qa(this);this.o.reverse();this.Uc();return this};D.w(K,{count:"count"},function(){return this.o.length});D.w(K,{size:"size"},function(){return this.o.length});D.w(K,{length:"length"},function(){return this.o.length});D.w(K,{j:"iterator"},function(){if(0>=this.o.length)return Ka;var a=this.Zb;return null!==a?(a.reset(),a):new Qa(this)}); D.w(K,{ao:"iteratorBackwards"},function(){if(0>=this.o.length)return Ka;var a=this.fj;return null!==a?(a.reset(),a):new Ua(this)});function Va(a){this.ri=a;a.Zb=null;this.$a=a.I;this.bb=null}D.me(Va,{key:!0,value:!0});D.w(Va,{j:"iterator"},function(){return this});Va.prototype.reset=Va.prototype.reset=function(){var a=this.ri;a.Zb=null;this.$a=a.I;this.bb=null}; Va.prototype.next=Va.prototype.next=function(){var a=this.ri;if(a.I!==this.$a){if(null===this.key)return!1;D.Va(a)}var b=this.bb,b=null===b?a.Ma:b.gb;if(null!==b)return this.bb=b,this.value=b.value,this.key=b.key,!0;this.Vf();return!1};Va.prototype.hasNext=function(){return this.next()};Va.prototype.first=Va.prototype.first=function(){var a=this.ri;this.$a=a.I;a=a.Ma;if(null!==a){this.bb=a;var b=a.value;this.key=a.key;return this.value=b}return null}; Va.prototype.any=function(a){var b=this.ri;b.Zb=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(a(d.value))return!0;b.I!==c&&D.Va(b);d=d.gb}return!1};Va.prototype.all=function(a){var b=this.ri;b.Zb=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(!a(d.value))return!1;b.I!==c&&D.Va(b);d=d.gb}return!0};Va.prototype.each=function(a){var b=this.ri;b.Zb=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;)a(d.value),b.I!==c&&D.Va(b),d=d.gb;return this}; Va.prototype.map=function(a){var b=this.ri;b.Zb=null;for(var c=new K,d=b.I,e=b.Ma;null!==e;)c.add(a(e.value)),b.I!==d&&D.Va(b),e=e.gb;return c.j};Va.prototype.filter=function(a){var b=this.ri;b.Zb=null;for(var c=new K(b.ca),d=b.I,e=b.Ma;null!==e;){var g=e.value;a(g)&&c.add(g);b.I!==d&&D.Va(b);e=e.gb}return c.j};Va.prototype.concat=function(a){this.ri.Zb=null;return new Na(this,a.j)};D.w(Va,{count:"count"},function(){return this.ri.Cd}); Va.prototype.Vf=function(){this.value=this.key=null;this.$a=-1;this.ri.Zb=this};Va.prototype.toString=function(){return null!==this.bb?"SetIterator@"+this.bb.value:"SetIterator"}; function L(a){D.xc(this);this.J=!1;void 0===a||null===a?this.ca=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.ca=a:D.ua(a,"the string 'object', 'number' or 'string'","Set constructor: type"):"function"===typeof a?this.ca=a===Object?"object":a===String?"string":a===Number?"number":a:D.ua(a,"null, a primitive type name, or a class type","Set constructor: type");this.Dd={};this.Cd=0;this.Zb=null;this.I=0;this.ii=this.Ma=null}D.ka("Set",L); L.prototype.nh=function(a){null!==this.ca&&("string"===typeof this.ca?typeof a===this.ca&&null!==a||D.kc(a,this.ca):a instanceof this.ca||D.kc(a,this.ca))};L.prototype.Uc=function(){var a=this.I;a++;999999999<a&&(a=0);this.I=a};L.prototype.freeze=L.prototype.freeze=function(){this.J=!0;return this};L.prototype.thaw=L.prototype.Xa=function(){this.J=!1;return this};L.prototype.toString=function(){return"Set("+D.getTypeName(this.ca)+")#"+D.Nd(this)}; L.prototype.add=L.prototype.add=function(a){if(null===a)return!1;v&&this.nh(a);this.J&&D.qa(this,a);var b=a;D.Qa(a)&&(b=D.sq(a));return void 0===this.Dd[b]?(this.Cd++,a=new Wa(a,a),this.Dd[b]=a,b=this.ii,null===b?this.Ma=a:(a.Ep=b,b.gb=a),this.ii=a,this.Uc(),!0):!1};L.prototype.addAll=L.prototype.Vc=function(a){if(null===a)return this;this.J&&D.qa(this);if(D.isArray(a))for(var b=D.cb(a),c=0;c<b;c++)this.add(D.La(a,c));else for(a=a.j;a.next();)this.add(a.value);return this}; L.prototype.contains=L.prototype.contains=function(a){if(null===a)return!1;v&&this.nh(a);var b=a;return D.Qa(a)&&(b=D.Nd(a),void 0===b)?!1:void 0!==this.Dd[b]};L.prototype.has=L.prototype.has=function(a){return this.contains(a)};L.prototype.containsAll=function(a){if(null===a)return!0;for(a=a.j;a.next();)if(!this.contains(a.value))return!1;return!0};L.prototype.containsAny=function(a){if(null===a)return!0;for(a=a.j;a.next();)if(this.contains(a.value))return!0;return!1}; L.prototype.first=L.prototype.first=function(){var a=this.Ma;return null===a?null:a.value};L.prototype.any=function(a){for(var b=this.I,c=this.Ma;null!==c;){if(a(c.value))return!0;this.I!==b&&D.Va(this);c=c.gb}return!1};L.prototype.all=function(a){for(var b=this.I,c=this.Ma;null!==c;){if(!a(c.value))return!1;this.I!==b&&D.Va(this);c=c.gb}return!0};L.prototype.each=function(a){for(var b=this.I,c=this.Ma;null!==c;)a(c.value),this.I!==b&&D.Va(this),c=c.gb;return this}; L.prototype.map=function(a){for(var b=new L,c=this.I,d=this.Ma;null!==d;)b.add(a(d.value)),this.I!==c&&D.Va(this),d=d.gb;return b};L.prototype.filter=function(a){for(var b=new L(this.ca),c=this.I,d=this.Ma;null!==d;){var e=d.value;a(e)&&b.add(e);this.I!==c&&D.Va(this);d=d.gb}return b};L.prototype.concat=function(a){return this.copy().Vc(a)}; L.prototype.remove=L.prototype["delete"]=L.prototype.remove=function(a){if(null===a)return!1;v&&this.nh(a);this.J&&D.qa(this,a);var b=a;if(D.Qa(a)&&(b=D.Nd(a),void 0===b))return!1;a=this.Dd[b];if(void 0===a)return!1;var c=a.gb,d=a.Ep;null!==c&&(c.Ep=d);null!==d&&(d.gb=c);this.Ma===a&&(this.Ma=c);this.ii===a&&(this.ii=d);delete this.Dd[b];this.Cd--;this.Uc();return!0}; L.prototype.removeAll=L.prototype.Hy=function(a){if(null===a)return this;this.J&&D.qa(this);if(D.isArray(a))for(var b=D.cb(a),c=0;c<b;c++)this.remove(D.La(a,c));else for(a=a.j;a.next();)this.remove(a.value);return this};L.prototype.retainAll=function(a){if(null===a||0===this.count)return this;this.J&&D.qa(this);var b=new L(this.ca);b.Vc(a);a=[];for(var c=this.j;c.next();){var d=c.value;b.contains(d)||a.push(d)}this.Hy(a);return this}; L.prototype.clear=L.prototype.clear=function(){this.J&&D.qa(this);this.Dd={};this.Cd=0;this.ii=this.Ma=null;this.Uc()};L.prototype.copy=function(){var a=new L(this.ca),b=this.Dd,c;for(c in b)a.add(b[c].value);return a};L.prototype.toArray=L.prototype.Fc=function(){var a=Array(this.Cd),b=this.Dd,c=0,d;for(d in b)a[c]=b[d].value,c++;return a};L.prototype.toList=function(){var a=new K(this.ca),b=this.Dd,c;for(c in b)a.add(b[c].value);return a};D.w(L,{count:"count"},function(){return this.Cd}); D.w(L,{size:"size"},function(){return this.Cd});D.w(L,{j:"iterator"},function(){if(0>=this.Cd)return Ka;var a=this.Zb;return null!==a?(a.reset(),a):new Va(this)});function Xa(a){this.Na=a;this.$a=a.I;this.bb=null}D.me(Xa,{key:!0,value:!0});D.w(Xa,{j:"iterator"},function(){return this});Xa.prototype.reset=Xa.prototype.reset=function(){this.$a=this.Na.I;this.bb=null}; Xa.prototype.next=Xa.prototype.next=function(){var a=this.Na;if(a.I!==this.$a){if(null===this.key)return!1;D.Va(a)}var b=this.bb,b=null===b?a.Ma:b.gb;if(null!==b)return this.bb=b,this.value=this.key=a=b.key,!0;this.Vf();return!1};Xa.prototype.hasNext=function(){return this.next()};Xa.prototype.first=Xa.prototype.first=function(){var a=this.Na;this.$a=a.I;a=a.Ma;return null!==a?(this.bb=a,this.value=this.key=a=a.key):null}; Xa.prototype.any=function(a){var b=this.Na,c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(a(d.key))return!0;b.I!==c&&D.Va(b);d=d.gb}return!1};Xa.prototype.all=function(a){var b=this.Na,c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(!a(d.key))return!1;b.I!==c&&D.Va(b);d=d.gb}return!0};Xa.prototype.each=function(a){var b=this.Na,c=b.I;this.bb=null;for(var d=b.Ma;null!==d;)a(d.key),b.I!==c&&D.Va(b),d=d.gb;return this}; Xa.prototype.map=function(a){var b=this.Na,c=b.I;this.bb=null;for(var d=new K,e=b.Ma;null!==e;)d.add(a(e.key)),b.I!==c&&D.Va(b),e=e.gb;return d.j};Xa.prototype.filter=function(a){var b=this.Na,c=b.I;this.bb=null;for(var d=new K(b.cf),e=b.Ma;null!==e;){var g=e.key;a(g)&&d.add(g);b.I!==c&&D.Va(b);e=e.gb}return d.j};Xa.prototype.concat=function(a){return new Na(this,a.j)};D.w(Xa,{count:"count"},function(){return this.Na.Cd});Xa.prototype.Vf=function(){this.value=this.key=null;this.$a=-1}; Xa.prototype.toString=function(){return null!==this.bb?"MapKeySetIterator@"+this.bb.value:"MapKeySetIterator"};function Ya(a){D.xc(this);this.J=!0;this.Na=a}D.Ta(Ya,L);Ya.prototype.freeze=function(){return this};Ya.prototype.Xa=function(){return this};Ya.prototype.toString=function(){return"MapKeySet("+this.Na.toString()+")"};Ya.prototype.add=Ya.prototype.add=function(){D.k("This Set is read-only: "+this.toString());return!1}; Ya.prototype.set=Ya.prototype.set=function(){D.k("This Set is read-only: "+this.toString());return!1};Ya.prototype.contains=Ya.prototype.contains=function(a){return this.Na.contains(a)};Ya.prototype.has=Ya.prototype.has=function(a){return this.contains(a)};Ya.prototype.remove=Ya.prototype["delete"]=Ya.prototype.remove=function(){D.k("This Set is read-only: "+this.toString());return!1};Ya.prototype.clear=Ya.prototype.clear=function(){D.k("This Set is read-only: "+this.toString())}; Ya.prototype.first=Ya.prototype.first=function(){var a=this.Na.Ma;return null!==a?a.key:null};Ya.prototype.any=function(a){for(var b=this.Na.Ma;null!==b;){if(a(b.key))return!0;b=b.gb}return!1};Ya.prototype.all=function(a){for(var b=this.Na.Ma;null!==b;){if(!a(b.key))return!1;b=b.gb}return!0};Ya.prototype.each=function(a){for(var b=this.Na.Ma;null!==b;)a(b.key),b=b.gb;return this};Ya.prototype.map=function(a){for(var b=new L,c=this.Na.Ma;null!==c;)b.add(a(c.key)),c=c.gb;return b}; Ya.prototype.filter=function(a){for(var b=new L(this.Na.cf),c=this.Na.Ma;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.gb}return b};Ya.prototype.concat=function(a){return this.nH().Vc(a)};Ya.prototype.copy=function(){return new Ya(this.Na)};Ya.prototype.toSet=Ya.prototype.nH=function(){var a=new L(this.Na.cf),b=this.Na.Dd,c;for(c in b)a.add(b[c].key);return a};Ya.prototype.toArray=Ya.prototype.Fc=function(){var a=this.Na.Dd,b=Array(this.Na.Cd),c=0,d;for(d in a)b[c]=a[d].key,c++;return b}; Ya.prototype.toList=function(){var a=new K(this.Na.cf),b=this.Na.Dd,c;for(c in b)a.add(b[c].key);return a};D.w(Ya,{count:"count"},function(){return this.Na.Cd});D.w(Ya,{size:"size"},function(){return this.Na.Cd});D.w(Ya,{j:"iterator"},function(){return 0>=this.Na.Cd?Ka:new Xa(this.Na)});function Za(a){this.Na=a;a.gj=null;this.$a=a.I;this.bb=null}D.me(Za,{key:!0,value:!0});D.w(Za,{j:"iterator"},function(){return this}); Za.prototype.reset=Za.prototype.reset=function(){var a=this.Na;a.gj=null;this.$a=a.I;this.bb=null};Za.prototype.next=Za.prototype.next=function(){var a=this.Na;if(a.I!==this.$a){if(null===this.key)return!1;D.Va(a)}var b=this.bb,b=null===b?a.Ma:b.gb;if(null!==b)return this.bb=b,this.value=b.value,this.key=b.key,!0;this.Vf();return!1};Za.prototype.hasNext=function(){return this.next()}; Za.prototype.first=Za.prototype.first=function(){var a=this.Na;this.$a=a.I;a=a.Ma;if(null!==a){this.bb=a;var b=a.value;this.key=a.key;return this.value=b}return null};Za.prototype.any=function(a){var b=this.Na;b.gj=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(a(d.value))return!0;b.I!==c&&D.Va(b);d=d.gb}return!1};Za.prototype.all=function(a){var b=this.Na;b.gj=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(!a(d.value))return!1;b.I!==c&&D.Va(b);d=d.gb}return!0}; Za.prototype.each=function(a){var b=this.Na;b.gj=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;)a(d.value),b.I!==c&&D.Va(b),d=d.gb;return this};Za.prototype.map=function(a){var b=this.Na;b.gj=null;var c=b.I;this.bb=null;for(var d=new K,e=b.Ma;null!==e;)d.add(a(e.value)),b.I!==c&&D.Va(b),e=e.gb;return d.j};Za.prototype.filter=function(a){var b=this.Na;b.gj=null;var c=b.I;this.bb=null;for(var d=new K(b.cf),e=b.Ma;null!==e;){var g=e.value;a(g)&&d.add(g);b.I!==c&&D.Va(b);e=e.gb}return d.j}; Za.prototype.concat=function(a){this.Na.gj=null;return new Na(this,a.j)};D.w(Za,{count:"count"},function(){return this.Na.Cd});Za.prototype.Vf=function(){this.value=this.key=null;this.$a=-1;this.Na.gj=this};Za.prototype.toString=function(){return null!==this.bb?"MapValueSetIterator@"+this.bb.value:"MapValueSetIterator"};function Wa(a,b){this.key=a;this.value=b;this.Ep=this.gb=null}D.me(Wa,{key:!0,value:!0});Wa.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"}; function $a(a){this.Na=a;a.Zb=null;this.$a=a.I;this.bb=null}D.me($a,{key:!0,value:!0});D.w($a,{j:"iterator"},function(){return this});$a.prototype.reset=$a.prototype.reset=function(){var a=this.Na;a.Zb=null;this.$a=a.I;this.bb=null};$a.prototype.next=$a.prototype.next=function(){var a=this.Na;if(a.I!==this.$a){if(null===this.key)return!1;D.Va(a)}var b=this.bb,b=null===b?a.Ma:b.gb;if(null!==b)return this.bb=b,this.key=b.key,this.value=b.value,!0;this.Vf();return!1};$a.prototype.hasNext=function(){return this.next()}; $a.prototype.first=$a.prototype.first=function(){var a=this.Na;this.$a=a.I;a=a.Ma;return null!==a?(this.bb=a,this.key=a.key,this.value=a.value,a):null};$a.prototype.any=function(a){var b=this.Na;b.Zb=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(a(d))return!0;b.I!==c&&D.Va(b);d=d.gb}return!1};$a.prototype.all=function(a){var b=this.Na;b.Zb=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;){if(!a(d))return!1;b.I!==c&&D.Va(b);d=d.gb}return!0}; $a.prototype.each=function(a){var b=this.Na;b.Zb=null;var c=b.I;this.bb=null;for(var d=b.Ma;null!==d;)a(d),b.I!==c&&D.Va(b),d=d.gb;return this};$a.prototype.map=function(a){var b=this.Na;b.Zb=null;var c=b.I;this.bb=null;for(var d=new K,e=b.Ma;null!==e;)d.add(a(e)),b.I!==c&&D.Va(b),e=e.gb;return d.j};$a.prototype.filter=function(a){var b=this.Na;b.Zb=null;var c=b.I;this.bb=null;for(var d=new K,e=b.Ma;null!==e;)a(e)&&d.add(e),b.I!==c&&D.Va(b),e=e.gb;return d.j}; $a.prototype.concat=function(a){this.Na.Zb=null;return new Na(this,a.j)};D.w($a,{count:"count"},function(){return this.Na.Cd});$a.prototype.Vf=function(){this.value=this.key=null;this.$a=-1;this.Na.Zb=this};$a.prototype.toString=function(){return null!==this.bb?"MapIterator@"+this.bb:"MapIterator"}; function na(a,b){D.xc(this);this.J=!1;void 0===a||null===a?this.cf=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.cf=a:D.ua(a,"the string 'object', 'number' or 'string'","Map constructor: keytype"):"function"===typeof a?this.cf=a===Object?"object":a===String?"string":a===Number?"number":a:D.ua(a,"null, a primitive type name, or a class type","Map constructor: keytype");void 0===b||null===b?this.Bi=null:"string"===typeof b?"object"===b||"string"===b||"boolean"===b||"number"=== b||"function"===b?this.Bi=b:D.ua(b,"the string 'object', 'number', 'string', 'boolean', or 'function'","Map constructor: valtype"):"function"===typeof b?this.Bi=b===Object?"object":b===String?"string":b===Number?"number":b===Boolean?"boolean":b===Function?"function":b:D.ua(b,"null, a primitive type name, or a class type","Map constructor: valtype");this.Dd={};this.Cd=0;this.gj=this.Zb=null;this.I=0;this.ii=this.Ma=null}D.ka("Map",na); function bb(a,b){null!==a.cf&&("string"===typeof a.cf?typeof b===a.cf&&null!==b||D.kc(b,a.cf):b instanceof a.cf||D.kc(b,a.cf))}na.prototype.Uc=function(){var a=this.I;a++;999999999<a&&(a=0);this.I=a};na.prototype.freeze=na.prototype.freeze=function(){this.J=!0;return this};na.prototype.thaw=na.prototype.Xa=function(){this.J=!1;return this};na.prototype.toString=function(){return"Map("+D.getTypeName(this.cf)+","+D.getTypeName(this.Bi)+")#"+D.Nd(this)}; na.prototype.add=na.prototype.add=function(a,b){v&&(bb(this,a),null!==this.Bi&&("string"===typeof this.Bi?typeof b===this.Bi&&null!==b||D.kc(b,this.Bi):b instanceof this.Bi||D.kc(b,this.Bi)));this.J&&D.qa(this,a);var c=a;D.Qa(a)&&(c=D.sq(a));var d=this.Dd[c];if(void 0===d)return this.Cd++,d=new Wa(a,b),this.Dd[c]=d,c=this.ii,null===c?this.Ma=d:(d.Ep=c,c.gb=d),this.ii=d,this.Uc(),!0;d.value=b;return!1};na.prototype.set=na.prototype.set=function(a,b){return this.add(a,b)}; na.prototype.addAll=na.prototype.Vc=function(a){if(null===a)return this;if(D.isArray(a))for(var b=D.cb(a),c=0;c<b;c++){var d=D.La(a,c);this.add(d.key,d.value)}else for(a=a.j;a.next();)this.add(a.key,a.value);return this};na.prototype.first=na.prototype.first=function(){return this.Ma};na.prototype.any=function(a){for(var b=this.I,c=this.Ma;null!==c;){if(a(c))return!0;this.I!==b&&D.Va(this);c=c.gb}return!1}; na.prototype.all=function(a){for(var b=this.I,c=this.Ma;null!==c;){if(!a(c))return!1;this.I!==b&&D.Va(this);c=c.gb}return!0};na.prototype.each=function(a){for(var b=this.I,c=this.Ma;null!==c;)a(c),this.I!==b&&D.Va(this),c=c.gb;return this};na.prototype.map=function(a){for(var b=new na(this.cf),c=this.I,d=this.Ma;null!==d;)