UNPKG

gojs

Version:

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

120 lines 945 kB
/* * GoJS v2.0.11 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-2019 by Northwoods Software Corporation. All Rights Reserved. * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/2.0.11/license.html. */ (function() { var t;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ca(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function da(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var fa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ha; if("function"==typeof Object.setPrototypeOf)ha=Object.setPrototypeOf;else{var ia;a:{var ja={a:!0},ka={};try{ka.__proto__=ja;ia=ka.a;break a}catch(a){}ia=!1}ha=ia?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var la=ha; function ma(a,b){a.prototype=fa(b.prototype);a.prototype.constructor=a;if(la)la(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.wA=b.prototype}var na="undefined"!=typeof window&&window===self?self:"undefined"!=typeof global&&null!=global?global:self,oa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)}; function pa(a){if(a){for(var b=na,c=["Array","prototype","fill"],d=0;d<c.length-1;d++){var e=c[d];e in b||(b[e]={});b=b[e]}c=c[c.length-1];d=b[c];a=a(d);a!=d&&null!=a&&oa(b,c,{configurable:!0,writable:!0,value:a})}}pa(function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});var qa="object"===typeof self&&self.self===self&&self||"object"===typeof global&&global.global===global&&global||"object"===typeof window&&window.window===window&&window||{};void 0===qa.requestAnimationFrame&&(qa.requestAnimationFrame=qa.setImmediate);function ra(){}function ua(a,b){var c=-1;return function(){var d=this,e=arguments;-1!==c&&qa.clearTimeout(c);c=wa(function(){c=-1;a.apply(d,e)},b)}}function wa(a,b){return qa.setTimeout(a,b)}function xa(a){return qa.document.createElement(a)} function v(a){throw Error(a);}function ya(a,b){a="The object is frozen, so its properties cannot be set: "+a.toString();void 0!==b&&(a+=" to value: "+b);v(a)}function w(a,b,c,d){a instanceof b||(c=Aa(c),void 0!==d&&(c+="."+d),Ba(a,b,c))}function z(a,b,c,d){typeof a!==b&&(c=Aa(c),void 0!==d&&(c+="."+d),Ba(a,b,c))}function B(a,b,c){"number"===typeof a&&isFinite(a)||(b=Aa(b),void 0!==c&&(b+="."+c),v(b+" must be a real number type, and not NaN or Infinity: "+a))} function Ba(a,b,c,d){b=Aa(b);c=Aa(c);void 0!==d&&(c+="."+d);"string"===typeof a?v(c+" value is not an instance of "+b+': "'+a+'"'):v(c+" value is not an instance of "+b+": "+a)}function Ca(a,b,c,d){c=Aa(c);void 0!==d&&(c+="."+d);v(c+" is not in the range "+b+": "+a)}function Da(a){v(("string"===typeof a.className?a.className:"")+" constructor cannot take any arguments.")} function Ea(a){v("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.")}function Fa(a,b){v("No property to set for this enum value: "+b+" on "+a.toString())}function Ga(a){qa.console&&qa.console.log(a)} function Ha(){qa.console&&qa.console.log("Warning: List/Map/Set constructors no longer take an argument that enforces type.Instead they take an optional collection of Values to add to the collection. See 2.0 changelog for details.")}function Ia(a){return"object"===typeof a&&null!==a}function Ka(a){return Array.isArray(a)||qa.NodeList&&a instanceof qa.NodeList||qa.HTMLCollection&&a instanceof qa.HTMLCollection}function La(a,b,c){Ka(a)||Ba(a,"Array or NodeList or HTMLCollection",b,c)} function Ma(a){return Array.prototype.slice.call(a)}function Na(a,b,c){Array.isArray(a)?b>=a.length?a.push(c):a.splice(b,0,c):v("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)}function Oa(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):v("Cannot remove an object from an HTMLCollection or NodeList at "+b)}function Qa(){var a=Ra.pop();return void 0===a?[]:a}function Ta(a){a.length=0;Ra.push(a)} function Aa(a){return null===a?"*":"string"===typeof a?a:"function"===typeof a&&"string"===typeof a.className?a.className:""}function Va(a){if("function"===typeof a){if(a.className)return a.className;if(a.name)return a.name;var b=a.toString();b=b.substring(9,b.indexOf("(")).trim();if(""!==b)return a._className=b}else if(Ia(a)&&a.constructor)return Va(a.constructor);return typeof a} function Wa(a){var b=a;Ia(a)&&(a.text?b=a.text:a.name?b=a.name:void 0!==a.key?b=a.key:void 0!==a.id?b=a.id:a.constructor===Object&&(a.Text?b=a.Text:a.Name?b=a.Name:void 0!==a.Key?b=a.Key:void 0!==a.Id?b=a.Id:void 0!==a.ID&&(b=a.ID)));return void 0===b?"undefined":null===b?"null":b.toString()}function Ya(a,b){if(a.hasOwnProperty(b))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(b))return!0;var c=a.lA;if(c&&c[b])return!0;a=Object.getPrototypeOf(a)}return!1} function Za(a,b,c){Object.defineProperty($a.prototype,a,{get:b,set:c})}function ab(){var a=bb;if(0===a.length)for(var b=qa.document.getElementsByTagName("canvas"),c=b.length,d=0;d<c;d++){var e=b[d];e.parentElement&&e.parentElement.D&&a.push(e.parentElement.D)}return a} function eb(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);c=[];for(var d=0,e=0;e<a.length;e+=2)c[d++]=b[a.substr(e,2)];a=c.join("");a=""===a?"0":a;b=[];for(c=0;256>c;c++)b[c]=c;for(c=d=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;d=c=0;for(var f="",g=0;g<a.length;g++)c=(c+1)%256,d=(d+b[c])%256,e=b[c],b[c]=b[d],b[d]=e,f+=String.fromCharCode(a.charCodeAt(g)^b[(b[c]+b[d])%256]);return f} var fb=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("MSIE 9.0"),gb=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("MSIE 10.0"),ib=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("Trident/7"),jb=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("Edge/"),kb=void 0!==qa.navigator&&void 0!==qa.navigator.platform&&0<=qa.navigator.platform.toUpperCase().indexOf("MAC"),lb=void 0!==qa.navigator&&void 0!==qa.navigator.platform&&null!==qa.navigator.platform.match(/(iPhone|iPod|iPad)/i), Ra=[];Object.freeze([]);var bb=[];ra.className="Util";ra.Dx="32ab5ff3b26f42dc0ed90f224d2913b5";ra.adym="gojs.net";ra.vfo="28e646fdb267";ra.className="Util";function D(a,b,c){qb(this);this.l=a;this.Wa=b;this.w=c}D.prototype.toString=function(){return"EnumValue."+this.Wa};function sb(a,b){return void 0===b||null===b||""===b?null:a[b]}function tb(a,b,c,d){a.classType!==b&&(c=Aa(c),void 0!==d&&(c+="."+d),Ba(a,"function"==="a constant of class "+typeof b.className?b.className:"",c))} na.Object.defineProperties(D.prototype,{classType:{configurable:!0,get:function(){return this.l}},name:{configurable:!0,get:function(){return this.Wa}},value:{configurable:!0,get:function(){return this.w}}});D.className="EnumValue";function ub(){this.rw=[]}ub.prototype.toString=function(){return this.rw.join("")};ub.prototype.add=function(a){""!==a&&this.rw.push(a)};ub.className="StringBuilder";function xb(){}xb.className="PropertyCollection"; var E={Fi:!1,$u:!1,Oy:!1,nA:!1,rA:!1,tx:!1,animationExperiments:!1,mA:null,trace:function(a){qa.console&&qa.console.log(a)},uy:function(a){var b={},c;for(c in a){b.x=c;if("licenseKey"!==b.x){var d=a[b.x];if(void 0!==d.prototype){b.qm=Object.getOwnPropertyNames(d.prototype);for(var e={gk:0};e.gk<b.qm.length;e={gk:e.gk},e.gk++){var f=Object.getOwnPropertyDescriptor(d.prototype,b.qm[e.gk]);void 0!==f.get&&void 0===f.set&&Object.defineProperty(d.prototype,b.qm[e.gk],{set:function(a,b){return function(){throw Error("Property "+ a.qm[b.gk]+" of "+a.x+" is read-only.");}}(b,e)})}}}b={qm:b.qm,x:b.x}}}};function Bb(){}Bb.prototype.reset=function(){};Bb.prototype.next=function(){return!1};Bb.prototype.fd=function(){return!1};Bb.prototype.first=function(){return null};Bb.prototype.any=function(){return!1};Bb.prototype.all=function(){return!0};Bb.prototype.each=function(){return this};Bb.prototype.map=function(){return this};Bb.prototype.filter=function(){return this};Bb.prototype.zd=function(){};Bb.prototype.toString=function(){return"EmptyIterator"}; na.Object.defineProperties(Bb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 0}}});Bb.prototype.first=Bb.prototype.first;Bb.prototype.hasNext=Bb.prototype.fd;Bb.prototype.next=Bb.prototype.next;Bb.prototype.reset=Bb.prototype.reset;var Cb=null;Bb.className="EmptyIterator";Cb=new Bb;function Db(a){this.key=-1;this.value=a}Db.prototype.reset=function(){this.key=-1}; Db.prototype.next=function(){return-1===this.key?(this.key=0,!0):!1};Db.prototype.fd=function(){return this.next()};Db.prototype.first=function(){this.key=0;return this.value};Db.prototype.any=function(a){this.key=-1;return a(this.value)};Db.prototype.all=function(a){this.key=-1;return a(this.value)};Db.prototype.each=function(a){this.key=-1;a(this.value);return this};Db.prototype.map=function(a){return new Db(a(this.value))}; Db.prototype.filter=function(a){return a(this.value)?new Db(this.value):Cb};Db.prototype.zd=function(){this.value=null};Db.prototype.toString=function(){return"SingletonIterator("+this.value+")"};na.Object.defineProperties(Db.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 1}}});Db.prototype.first=Db.prototype.first;Db.prototype.hasNext=Db.prototype.fd;Db.prototype.next=Db.prototype.next; Db.prototype.reset=Db.prototype.reset;Db.className="SingletonIterator";function Gb(a){this.qb=a;this.Ze=null;a.Ka=null;this.na=a.s;this.Ua=-1}Gb.prototype.reset=function(){var a=this.qb;a.Ka=null;this.na=a.s;this.Ua=-1};Gb.prototype.next=function(){var a=this.qb;if(a.s!==this.na){if(0>this.key)return!1;Ea(a)}a=a.j;var b=a.length,c=++this.Ua,d=this.Ze;if(null!==d)for(;c<b;){var e=a[c];if(d(e))return this.key=this.Ua=c,this.value=e,!0;c++}else{if(c<b)return this.key=c,this.value=a[c],!0;this.zd()}return!1}; Gb.prototype.fd=function(){return this.next()};Gb.prototype.first=function(){var a=this.qb;this.na=a.s;this.Ua=0;a=a.j;var b=a.length,c=this.Ze;if(null!==c){for(var d=0;d<b;){var e=a[d];if(c(e))return this.key=this.Ua=d,this.value=e;d++}return null}return 0<b?(a=a[0],this.key=0,this.value=a):null};Gb.prototype.any=function(a){var b=this.qb;b.Ka=null;var c=b.s;this.Ua=-1;for(var d=b.j,e=d.length,f=this.Ze,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(a(h))return!0;b.s!==c&&Ea(b)}}return!1}; Gb.prototype.all=function(a){var b=this.qb;b.Ka=null;var c=b.s;this.Ua=-1;for(var d=b.j,e=d.length,f=this.Ze,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(!a(h))return!1;b.s!==c&&Ea(b)}}return!0};Gb.prototype.each=function(a){var b=this.qb;b.Ka=null;var c=b.s;this.Ua=-1;for(var d=b.j,e=d.length,f=this.Ze,g=0;g<e;g++){var h=d[g];if(null===f||f(h))a(h),b.s!==c&&Ea(b)}return this}; Gb.prototype.map=function(a){var b=this.qb;b.Ka=null;var c=b.s;this.Ua=-1;for(var d=[],e=b.j,f=e.length,g=this.Ze,h=0;h<f;h++){var k=e[h];if(null===g||g(k))d.push(a(k)),b.s!==c&&Ea(b)}a=new F;a.j=d;a.lb();return a.iterator};Gb.prototype.filter=function(a){var b=this.qb;b.Ka=null;var c=b.s;this.Ua=-1;for(var d=[],e=b.j,f=e.length,g=this.Ze,h=0;h<f;h++){var k=e[h];if(null===g||g(k))a(k)&&d.push(k),b.s!==c&&Ea(b)}a=new F;a.j=d;a.lb();return a.iterator}; Gb.prototype.zd=function(){this.key=-1;this.value=null;this.na=-1;this.Ze=null;this.qb.Ka=this};Gb.prototype.toString=function(){return"ListIterator@"+this.Ua+"/"+this.qb.count}; na.Object.defineProperties(Gb.prototype,{iterator:{configurable:!0,get:function(){return this}},predicate:{configurable:!0,get:function(){return this.Ze},set:function(a){this.Ze=a}},count:{configurable:!0,get:function(){var a=this.Ze;if(null!==a){for(var b=0,c=this.qb.j,d=c.length,e=0;e<d;e++)a(c[e])&&b++;return b}return this.qb.j.length}}});Gb.prototype.first=Gb.prototype.first;Gb.prototype.hasNext=Gb.prototype.fd;Gb.prototype.next=Gb.prototype.next; Gb.prototype.reset=Gb.prototype.reset;Gb.className="ListIterator";function Hb(a){this.qb=a;a.Tg=null;this.na=a.s;this.Ua=a.j.length}Hb.prototype.reset=function(){var a=this.qb;a.Tg=null;this.na=a.s;this.Ua=a.j.length};Hb.prototype.next=function(){var a=this.qb;if(a.s!==this.na){if(0>this.key)return!1;Ea(a)}var b=--this.Ua;if(0<=b)return this.key=b,this.value=a.j[b],!0;this.zd();return!1};Hb.prototype.fd=function(){return this.next()}; Hb.prototype.first=function(){var a=this.qb;this.na=a.s;var b=a.j;this.Ua=a=b.length-1;return 0<=a?(b=b[a],this.key=a,this.value=b):null};Hb.prototype.any=function(a){var b=this.qb;b.Tg=null;var c=b.s,d=b.j,e=d.length;this.Ua=e;for(--e;0<=e;e--){if(a(d[e]))return!0;b.s!==c&&Ea(b)}return!1};Hb.prototype.all=function(a){var b=this.qb;b.Tg=null;var c=b.s,d=b.j,e=d.length;this.Ua=e;for(--e;0<=e;e--){if(!a(d[e]))return!1;b.s!==c&&Ea(b)}return!0}; Hb.prototype.each=function(a){var b=this.qb;b.Tg=null;var c=b.s,d=b.j,e=d.length;this.Ua=e;for(--e;0<=e;e--)a(d[e]),b.s!==c&&Ea(b);return this};Hb.prototype.map=function(a){var b=this.qb;b.Tg=null;var c=b.s,d=[],e=b.j,f=e.length;this.Ua=f;for(--f;0<=f;f--)d.push(a(e[f])),b.s!==c&&Ea(b);a=new F;a.j=d;a.lb();return a.iterator}; Hb.prototype.filter=function(a){var b=this.qb;b.Tg=null;var c=b.s,d=[],e=b.j,f=e.length;this.Ua=f;for(--f;0<=f;f--){var g=e[f];a(g)&&d.push(g);b.s!==c&&Ea(b)}a=new F;a.j=d;a.lb();return a.iterator};Hb.prototype.zd=function(){this.key=-1;this.value=null;this.na=-1;this.qb.Tg=this};Hb.prototype.toString=function(){return"ListIteratorBackwards("+this.Ua+"/"+this.qb.count+")"}; na.Object.defineProperties(Hb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.qb.j.length}}});Hb.prototype.first=Hb.prototype.first;Hb.prototype.hasNext=Hb.prototype.fd;Hb.prototype.next=Hb.prototype.next;Hb.prototype.reset=Hb.prototype.reset;Hb.className="ListIteratorBackwards"; function F(a){qb(this);this.u=!1;this.j=[];this.s=0;this.Tg=this.Ka=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ha():this.addAll(a))}t=F.prototype;t.lb=function(){var a=this.s;a++;999999999<a&&(a=0);this.s=a};t.freeze=function(){this.u=!0;return this};t.ja=function(){this.u=!1;return this};t.toString=function(){return"List()#"+Jb(this)};t.add=function(a){if(null===a)return this;this.u&&ya(this,a);this.j.push(a);this.lb();return this};t.push=function(a){this.add(a)}; t.addAll=function(a){if(null===a)return this;this.u&&ya(this);var b=this.j;if(Ka(a))for(var c=a.length,d=0;d<c;d++)b.push(a[d]);else for(a=a.iterator;a.next();)b.push(a.value);this.lb();return this};t.clear=function(){this.u&&ya(this);this.j.length=0;this.lb()};t.contains=function(a){return null===a?!1:-1!==this.j.indexOf(a)};t.has=function(a){return this.contains(a)};t.indexOf=function(a){return null===a?-1:this.j.indexOf(a)}; t.O=function(a){E&&B(a,F,"elt:i");var b=this.j;(0>a||a>=b.length)&&Ca(a,"0 <= i < length",F,"elt:i");return b[a]};t.get=function(a){return this.O(a)};t.jd=function(a,b){E&&B(a,F,"setElt:i");var c=this.j;(0>a||a>=c.length)&&Ca(a,"0 <= i < length",F,"setElt:i");this.u&&ya(this,a);c[a]=b};t.set=function(a,b){this.jd(a,b)};t.first=function(){var a=this.j;return 0===a.length?null:a[0]};t.Ub=function(){var a=this.j,b=a.length;return 0<b?a[b-1]:null}; t.pop=function(){this.u&&ya(this);var a=this.j;return 0<a.length?a.pop():null};F.prototype.any=function(a){for(var b=this.j,c=this.s,d=b.length,e=0;e<d;e++){if(a(b[e]))return!0;this.s!==c&&Ea(this)}return!1};F.prototype.all=function(a){for(var b=this.j,c=this.s,d=b.length,e=0;e<d;e++){if(!a(b[e]))return!1;this.s!==c&&Ea(this)}return!0};F.prototype.each=function(a){for(var b=this.j,c=this.s,d=b.length,e=0;e<d;e++)a(b[e]),this.s!==c&&Ea(this);return this}; F.prototype.map=function(a){for(var b=new F,c=[],d=this.j,e=this.s,f=d.length,g=0;g<f;g++)c.push(a(d[g])),this.s!==e&&Ea(this);b.j=c;b.lb();return b};F.prototype.filter=function(a){for(var b=new F,c=[],d=this.j,e=this.s,f=d.length,g=0;g<f;g++){var h=d[g];a(h)&&c.push(h);this.s!==e&&Ea(this)}b.j=c;b.lb();return b};t=F.prototype;t.Lb=function(a,b){E&&B(a,F,"insertAt:i");0>a&&Ca(a,">= 0",F,"insertAt:i");this.u&&ya(this,a);var c=this.j;a>=c.length?c.push(b):c.splice(a,0,b);this.lb()}; t.remove=function(a){if(null===a)return!1;this.u&&ya(this,a);var b=this.j;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.lb();return!0};t.delete=function(a){return this.remove(a)};t.nb=function(a){E&&B(a,F,"removeAt:i");var b=this.j;(0>a||a>=b.length)&&Ca(a,"0 <= i < length",F,"removeAt:i");this.u&&ya(this,a);a===b.length-1?b.pop():b.splice(a,1);this.lb()}; t.removeRange=function(a,b){E&&(B(a,F,"removeRange:from"),B(b,F,"removeRange:to"));var c=this.j,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.u&&ya(this);for(var e=a,f=b+1;f<d;)c[e++]=c[f++];c.length=d-(b-a+1);this.lb();return this};F.prototype.copy=function(){var a=new F,b=this.j;0<b.length&&(a.j=Array.prototype.slice.call(b));return a};t=F.prototype;t.Oa=function(){for(var a=this.j,b=this.count,c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}; t.Xv=function(){for(var a=new I,b=this.j,c=this.count,d=0;d<c;d++)a.add(b[d]);return a};t.sort=function(a){E&&z(a,"function",F,"sort:sortfunc");this.u&&ya(this);this.j.sort(a);this.lb();return this}; t.Zi=function(a,b,c){var d=this.j,e=d.length;void 0===b&&(b=0);void 0===c&&(c=e);E&&(z(a,"function",F,"sortRange:sortfunc"),B(b,F,"sortRange:from"),B(c,F,"sortRange:to"));this.u&&ya(this);var f=c-b;if(1>=f)return this;(0>b||b>=e-1)&&Ca(b,"0 <= from < length",F,"sortRange:from");if(2===f)return c=d[b],e=d[b+1],0<a(c,e)&&(d[b]=e,d[b+1]=c,this.lb()),this;if(0===b)if(c>=e)d.sort(a);else for(b=d.slice(0,c),b.sort(a),a=0;a<c;a++)d[a]=b[a];else if(c>=e)for(c=d.slice(b),c.sort(a),a=b;a<e;a++)d[a]=c[a-b]; else for(e=d.slice(b,c),e.sort(a),a=b;a<c;a++)d[a]=e[a-b];this.lb();return this};t.reverse=function(){this.u&&ya(this);this.j.reverse();this.lb();return this}; na.Object.defineProperties(F.prototype,{_dataArray:{configurable:!0,get:function(){return this.j}},count:{configurable:!0,get:function(){return this.j.length}},size:{configurable:!0,get:function(){return this.j.length}},length:{configurable:!0,get:function(){return this.j.length}},iterator:{configurable:!0,get:function(){if(0>=this.j.length)return Cb;var a=this.Ka;return null!==a?(a.reset(),a):new Gb(this)}},iteratorBackwards:{configurable:!0, enumerable:!0,get:function(){if(0>=this.j.length)return Cb;var a=this.Tg;return null!==a?(a.reset(),a):new Hb(this)}}});F.prototype.reverse=F.prototype.reverse;F.prototype.sortRange=F.prototype.Zi;F.prototype.sort=F.prototype.sort;F.prototype.toSet=F.prototype.Xv;F.prototype.toArray=F.prototype.Oa;F.prototype.removeRange=F.prototype.removeRange;F.prototype.removeAt=F.prototype.nb;F.prototype["delete"]=F.prototype.delete;F.prototype.remove=F.prototype.remove;F.prototype.insertAt=F.prototype.Lb; F.prototype.pop=F.prototype.pop;F.prototype.last=F.prototype.Ub;F.prototype.first=F.prototype.first;F.prototype.set=F.prototype.set;F.prototype.setElt=F.prototype.jd;F.prototype.get=F.prototype.get;F.prototype.elt=F.prototype.O;F.prototype.indexOf=F.prototype.indexOf;F.prototype.has=F.prototype.has;F.prototype.contains=F.prototype.contains;F.prototype.clear=F.prototype.clear;F.prototype.addAll=F.prototype.addAll;F.prototype.push=F.prototype.push;F.prototype.add=F.prototype.add;F.prototype.thaw=F.prototype.ja; F.prototype.freeze=F.prototype.freeze;F.className="List";function Kb(a){this.hg=a;a.Ka=null;this.na=a.s;this.pa=null}Kb.prototype.reset=function(){var a=this.hg;a.Ka=null;this.na=a.s;this.pa=null};Kb.prototype.next=function(){var a=this.hg;if(a.s!==this.na){if(null===this.key)return!1;Ea(a)}var b=this.pa;b=null===b?a.ga:b.qa;if(null!==b)return this.pa=b,this.value=b.value,this.key=b.key,!0;this.zd();return!1};Kb.prototype.fd=function(){return this.next()}; Kb.prototype.first=function(){var a=this.hg;this.na=a.s;a=a.ga;if(null!==a){this.pa=a;var b=a.value;this.key=a.key;return this.value=b}return null};Kb.prototype.any=function(a){var b=this.hg;b.Ka=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.s!==c&&Ea(b);d=d.qa}return!1};Kb.prototype.all=function(a){var b=this.hg;b.Ka=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.s!==c&&Ea(b);d=d.qa}return!0}; Kb.prototype.each=function(a){var b=this.hg;b.Ka=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;)a(d.value),b.s!==c&&Ea(b),d=d.qa;return this};Kb.prototype.map=function(a){var b=this.hg;b.Ka=null;for(var c=new F,d=b.s,e=b.ga;null!==e;)c.add(a(e.value)),b.s!==d&&Ea(b),e=e.qa;return c.iterator};Kb.prototype.filter=function(a){var b=this.hg;b.Ka=null;for(var c=new F,d=b.s,e=b.ga;null!==e;){var f=e.value;a(f)&&c.add(f);b.s!==d&&Ea(b);e=e.qa}return c.iterator}; Kb.prototype.zd=function(){this.value=this.key=null;this.na=-1;this.hg.Ka=this};Kb.prototype.toString=function(){return null!==this.pa?"SetIterator@"+this.pa.value:"SetIterator"};na.Object.defineProperties(Kb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.hg.Fb}}});Kb.prototype.first=Kb.prototype.first;Kb.prototype.hasNext=Kb.prototype.fd;Kb.prototype.next=Kb.prototype.next;Kb.prototype.reset=Kb.prototype.reset; Kb.className="SetIterator";function I(a){qb(this);this.u=!1;this.Gb={};this.Fb=0;this.Ka=null;this.s=0;this.Ve=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ha():this.addAll(a))}t=I.prototype;t.lb=function(){var a=this.s;a++;999999999<a&&(a=0);this.s=a};t.freeze=function(){this.u=!0;return this};t.ja=function(){this.u=!1;return this};t.toString=function(){return"Set()#"+Jb(this)}; t.add=function(a){if(null===a)return this;this.u&&ya(this,a);var b=a;Ia(a)&&(b=Nb(a));void 0===this.Gb[b]&&(this.Fb++,a=new Ob(a,a),this.Gb[b]=a,b=this.Ve,null===b?this.ga=a:(a.Al=b,b.qa=a),this.Ve=a,this.lb());return this};t.addAll=function(a){if(null===a)return this;this.u&&ya(this);if(Ka(a))for(var b=a.length,c=0;c<b;c++)this.add(a[c]);else for(a=a.iterator;a.next();)this.add(a.value);return this}; t.contains=function(a){if(null===a)return!1;var b=a;return Ia(a)&&(b=Jb(a),void 0===b)?!1:void 0!==this.Gb[b]};t.has=function(a){return this.contains(a)};t.Ay=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0};t.By=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1};t.first=function(){var a=this.ga;return null===a?null:a.value}; I.prototype.any=function(a){for(var b=this.s,c=this.ga;null!==c;){if(a(c.value))return!0;this.s!==b&&Ea(this);c=c.qa}return!1};I.prototype.all=function(a){for(var b=this.s,c=this.ga;null!==c;){if(!a(c.value))return!1;this.s!==b&&Ea(this);c=c.qa}return!0};I.prototype.each=function(a){for(var b=this.s,c=this.ga;null!==c;)a(c.value),this.s!==b&&Ea(this),c=c.qa;return this};I.prototype.map=function(a){for(var b=new I,c=this.s,d=this.ga;null!==d;)b.add(a(d.value)),this.s!==c&&Ea(this),d=d.qa;return b}; I.prototype.filter=function(a){for(var b=new I,c=this.s,d=this.ga;null!==d;){var e=d.value;a(e)&&b.add(e);this.s!==c&&Ea(this);d=d.qa}return b};t=I.prototype;t.remove=function(a){if(null===a)return!1;this.u&&ya(this,a);var b=a;if(Ia(a)&&(b=Jb(a),void 0===b))return!1;a=this.Gb[b];if(void 0===a)return!1;var c=a.qa,d=a.Al;null!==c&&(c.Al=d);null!==d&&(d.qa=c);this.ga===a&&(this.ga=c);this.Ve===a&&(this.Ve=d);delete this.Gb[b];this.Fb--;this.lb();return!0};t.delete=function(a){return this.remove(a)}; t.vq=function(a){if(null===a)return this;this.u&&ya(this);if(Ka(a))for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);else for(a=a.iterator;a.next();)this.remove(a.value);return this};t.Zz=function(a){if(null===a||0===this.count)return this;this.u&&ya(this);var b=new I;b.addAll(a);a=[];for(var c=this.iterator;c.next();){var d=c.value;b.contains(d)||a.push(d)}this.vq(a);return this};t.clear=function(){this.u&&ya(this);this.Gb={};this.Fb=0;null!==this.Ka&&this.Ka.reset();this.Ve=this.ga=null;this.lb()}; I.prototype.copy=function(){var a=new I,b=this.Gb,c;for(c in b)a.add(b[c].value);return a};I.prototype.Oa=function(){var a=Array(this.Fb),b=this.Gb,c=0,d;for(d in b)a[c]=b[d].value,c++;return a};I.prototype.Wv=function(){var a=new F,b=this.Gb,c;for(c in b)a.add(b[c].value);return a};function qb(a){a.__gohashid=Pb++}function Nb(a){var b=a.__gohashid;void 0===b&&(b=Pb++,a.__gohashid=b);return b}function Jb(a){return a.__gohashid} na.Object.defineProperties(I.prototype,{count:{configurable:!0,get:function(){return this.Fb}},size:{configurable:!0,get:function(){return this.Fb}},iterator:{configurable:!0,get:function(){if(0>=this.Fb)return Cb;var a=this.Ka;return null!==a?(a.reset(),a):new Kb(this)}}});I.prototype.toList=I.prototype.Wv;I.prototype.toArray=I.prototype.Oa;I.prototype.clear=I.prototype.clear;I.prototype.retainAll=I.prototype.Zz;I.prototype.removeAll=I.prototype.vq; I.prototype["delete"]=I.prototype.delete;I.prototype.remove=I.prototype.remove;I.prototype.first=I.prototype.first;I.prototype.containsAny=I.prototype.By;I.prototype.containsAll=I.prototype.Ay;I.prototype.has=I.prototype.has;I.prototype.contains=I.prototype.contains;I.prototype.addAll=I.prototype.addAll;I.prototype.add=I.prototype.add;I.prototype.thaw=I.prototype.ja;I.prototype.freeze=I.prototype.freeze;var Pb=1;I.className="Set";I.uniqueHash=qb;I.hashIdUnique=Nb;I.hashId=Jb; function Qb(a){this.la=a;this.na=a.s;this.pa=null}Qb.prototype.reset=function(){this.na=this.la.s;this.pa=null};Qb.prototype.next=function(){var a=this.la;if(a.s!==this.na){if(null===this.key)return!1;Ea(a)}var b=this.pa;b=null===b?a.ga:b.qa;if(null!==b)return this.pa=b,this.value=this.key=a=b.key,!0;this.zd();return!1};Qb.prototype.fd=function(){return this.next()};Qb.prototype.first=function(){var a=this.la;this.na=a.s;a=a.ga;return null!==a?(this.pa=a,this.value=this.key=a=a.key):null}; Qb.prototype.any=function(a){var b=this.la,c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(a(d.key))return!0;b.s!==c&&Ea(b);d=d.qa}return!1};Qb.prototype.all=function(a){var b=this.la,c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(!a(d.key))return!1;b.s!==c&&Ea(b);d=d.qa}return!0};Qb.prototype.each=function(a){var b=this.la,c=b.s;this.pa=null;for(var d=b.ga;null!==d;)a(d.key),b.s!==c&&Ea(b),d=d.qa;return this}; Qb.prototype.map=function(a){var b=this.la,c=b.s;this.pa=null;for(var d=new F,e=b.ga;null!==e;)d.add(a(e.key)),b.s!==c&&Ea(b),e=e.qa;return d.iterator};Qb.prototype.filter=function(a){var b=this.la,c=b.s;this.pa=null;for(var d=new F,e=b.ga;null!==e;){var f=e.key;a(f)&&d.add(f);b.s!==c&&Ea(b);e=e.qa}return d.iterator};Qb.prototype.zd=function(){this.value=this.key=null;this.na=-1};Qb.prototype.toString=function(){return null!==this.pa?"MapKeySetIterator@"+this.pa.value:"MapKeySetIterator"}; na.Object.defineProperties(Qb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Fb}}});Qb.prototype.first=Qb.prototype.first;Qb.prototype.hasNext=Qb.prototype.fd;Qb.prototype.next=Qb.prototype.next;Qb.prototype.reset=Qb.prototype.reset;Qb.className="MapKeySetIterator";function Rb(a){I.call(this);qb(this);this.u=!0;this.la=a}ma(Rb,I);t=Rb.prototype;t.freeze=function(){return this};t.ja=function(){return this}; t.toString=function(){return"MapKeySet("+this.la.toString()+")"};t.add=function(){v("This Set is read-only: "+this.toString());return this};t.contains=function(a){return this.la.contains(a)};t.has=function(a){return this.contains(a)};t.remove=function(){v("This Set is read-only: "+this.toString());return!1};t.delete=function(a){return this.remove(a)};t.clear=function(){v("This Set is read-only: "+this.toString())};t.first=function(){var a=this.la.ga;return null!==a?a.key:null}; Rb.prototype.any=function(a){for(var b=this.la.ga;null!==b;){if(a(b.key))return!0;b=b.qa}return!1};Rb.prototype.all=function(a){for(var b=this.la.ga;null!==b;){if(!a(b.key))return!1;b=b.qa}return!0};Rb.prototype.each=function(a){for(var b=this.la.ga;null!==b;)a(b.key),b=b.qa;return this};Rb.prototype.map=function(a){for(var b=new I,c=this.la.ga;null!==c;)b.add(a(c.key)),c=c.qa;return b};Rb.prototype.filter=function(a){for(var b=new I,c=this.la.ga;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.qa}return b}; Rb.prototype.copy=function(){return new Rb(this.la)};Rb.prototype.Xv=function(){var a=new I,b=this.la.Gb,c;for(c in b)a.add(b[c].key);return a};Rb.prototype.Oa=function(){var a=this.la.Gb,b=Array(this.la.Fb),c=0,d;for(d in a)b[c]=a[d].key,c++;return b};Rb.prototype.Wv=function(){var a=new F,b=this.la.Gb,c;for(c in b)a.add(b[c].key);return a}; na.Object.defineProperties(Rb.prototype,{count:{configurable:!0,get:function(){return this.la.Fb}},size:{configurable:!0,get:function(){return this.la.Fb}},iterator:{configurable:!0,get:function(){return 0>=this.la.Fb?Cb:new Qb(this.la)}}});Rb.prototype.toList=Rb.prototype.Wv;Rb.prototype.toArray=Rb.prototype.Oa;Rb.prototype.toSet=Rb.prototype.Xv;Rb.prototype.first=Rb.prototype.first;Rb.prototype.clear=Rb.prototype.clear;Rb.prototype["delete"]=Rb.prototype.delete; Rb.prototype.remove=Rb.prototype.remove;Rb.prototype.has=Rb.prototype.has;Rb.prototype.contains=Rb.prototype.contains;Rb.prototype.add=Rb.prototype.add;Rb.prototype.thaw=Rb.prototype.ja;Rb.prototype.freeze=Rb.prototype.freeze;Rb.className="MapKeySet";function Sb(a){this.la=a;a.Ue=null;this.na=a.s;this.pa=null}Sb.prototype.reset=function(){var a=this.la;a.Ue=null;this.na=a.s;this.pa=null}; Sb.prototype.next=function(){var a=this.la;if(a.s!==this.na){if(null===this.key)return!1;Ea(a)}var b=this.pa;b=null===b?a.ga:b.qa;if(null!==b)return this.pa=b,this.value=b.value,this.key=b.key,!0;this.zd();return!1};Sb.prototype.fd=function(){return this.next()};Sb.prototype.first=function(){var a=this.la;this.na=a.s;a=a.ga;if(null!==a){this.pa=a;var b=a.value;this.key=a.key;return this.value=b}return null}; Sb.prototype.any=function(a){var b=this.la;b.Ue=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.s!==c&&Ea(b);d=d.qa}return!1};Sb.prototype.all=function(a){var b=this.la;b.Ue=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.s!==c&&Ea(b);d=d.qa}return!0};Sb.prototype.each=function(a){var b=this.la;b.Ue=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;)a(d.value),b.s!==c&&Ea(b),d=d.qa;return this}; Sb.prototype.map=function(a){var b=this.la;b.Ue=null;var c=b.s;this.pa=null;for(var d=new F,e=b.ga;null!==e;)d.add(a(e.value)),b.s!==c&&Ea(b),e=e.qa;return d.iterator};Sb.prototype.filter=function(a){var b=this.la;b.Ue=null;var c=b.s;this.pa=null;for(var d=new F,e=b.ga;null!==e;){var f=e.value;a(f)&&d.add(f);b.s!==c&&Ea(b);e=e.qa}return d.iterator};Sb.prototype.zd=function(){this.value=this.key=null;this.na=-1;this.la.Ue=this}; Sb.prototype.toString=function(){return null!==this.pa?"MapValueSetIterator@"+this.pa.value:"MapValueSetIterator"};na.Object.defineProperties(Sb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Fb}}});Sb.prototype.first=Sb.prototype.first;Sb.prototype.hasNext=Sb.prototype.fd;Sb.prototype.next=Sb.prototype.next;Sb.prototype.reset=Sb.prototype.reset;Sb.className="MapValueSetIterator"; function Ob(a,b){this.key=a;this.value=b;this.Al=this.qa=null}Ob.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"};Ob.className="KeyValuePair";function Tb(a){this.la=a;a.Ka=null;this.na=a.s;this.pa=null}Tb.prototype.reset=function(){var a=this.la;a.Ka=null;this.na=a.s;this.pa=null}; Tb.prototype.next=function(){var a=this.la;if(a.s!==this.na){if(null===this.key)return!1;Ea(a)}var b=this.pa;b=null===b?a.ga:b.qa;if(null!==b)return this.pa=b,this.key=b.key,this.value=b.value,!0;this.zd();return!1};Tb.prototype.fd=function(){return this.next()};Tb.prototype.first=function(){var a=this.la;this.na=a.s;a=a.ga;return null!==a?(this.pa=a,this.key=a.key,this.value=a.value,a):null}; Tb.prototype.any=function(a){var b=this.la;b.Ka=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(a(d))return!0;b.s!==c&&Ea(b);d=d.qa}return!1};Tb.prototype.all=function(a){var b=this.la;b.Ka=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;){if(!a(d))return!1;b.s!==c&&Ea(b);d=d.qa}return!0};Tb.prototype.each=function(a){var b=this.la;b.Ka=null;var c=b.s;this.pa=null;for(var d=b.ga;null!==d;)a(d),b.s!==c&&Ea(b),d=d.qa;return this}; Tb.prototype.map=function(a){var b=this.la;b.Ka=null;var c=b.s;this.pa=null;for(var d=new F,e=b.ga;null!==e;)d.add(a(e)),b.s!==c&&Ea(b),e=e.qa;return d.iterator};Tb.prototype.filter=function(a){var b=this.la;b.Ka=null;var c=b.s;this.pa=null;for(var d=new F,e=b.ga;null!==e;)a(e)&&d.add(e),b.s!==c&&Ea(b),e=e.qa;return d.iterator};Tb.prototype.zd=function(){this.value=this.key=null;this.na=-1;this.la.Ka=this};Tb.prototype.toString=function(){return null!==this.pa?"MapIterator@"+this.pa:"MapIterator"}; na.Object.defineProperties(Tb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Fb}}});Tb.prototype.first=Tb.prototype.first;Tb.prototype.hasNext=Tb.prototype.fd;Tb.prototype.next=Tb.prototype.next;Tb.prototype.reset=Tb.prototype.reset;Tb.className="MapIterator"; function Ub(a){qb(this);this.u=!1;this.Gb={};this.Fb=0;this.Ue=this.Ka=null;this.s=0;this.Ve=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ha():this.addAll(a))}t=Ub.prototype;t.lb=function(){var a=this.s;a++;999999999<a&&(a=0);this.s=a};t.freeze=function(){this.u=!0;return this};t.ja=function(){this.u=!1;return this};t.toString=function(){return"Map()#"+Jb(this)}; t.add=function(a,b){this.u&&ya(this,a);var c=a;Ia(a)&&(c=Nb(a));var d=this.Gb[c];void 0===d?(this.Fb++,a=new Ob(a,b),this.Gb[c]=a,c=this.Ve,null===c?this.ga=a:(a.Al=c,c.qa=a),this.Ve=a,this.lb()):d.value=b;return this};t.set=function(a,b){return this.add(a,b)};t.addAll=function(a){if(null===a)return this;if(Ka(a))for(var b=a.length,c=0;c<b;c++){var d=a[c];this.add(d.key,d.value)}else for(a=a.iterator;a.next();)b=a.value,this.add(b.key,b.value);return this};t.first=function(){return this.ga}; Ub.prototype.any=function(a){for(var b=this.s,c=this.ga;null!==c;){if(a(c))return!0;this.s!==b&&Ea(this);c=c.qa}return!1};Ub.prototype.all=function(a){for(var b=this.s,c=this.ga;null!==c;){if(!a(c))return!1;this.s!==b&&Ea(this);c=c.qa}return!0};Ub.prototype.each=function(a){for(var b=this.s,c=this.ga;null!==c;)a(c),this.s!==b&&Ea(this),c=c.qa;return this};Ub.prototype.map=function(a){for(var b=new Ub,c=this.s,d=this.ga;null!==d;)b.add(d.key,a(d)),this.s!==c&&Ea(this),d=d.qa;return b}; Ub.prototype.filter=function(a){for(var b=new Ub,c=this.s,d=this.ga;null!==d;)a(d)&&b.add(d.key,d.value),this.s!==c&&Ea(this),d=d.qa;return b};t=Ub.prototype;t.contains=function(a){var b=a;return Ia(a)&&(b=Jb(a),void 0===b)?!1:void 0!==this.Gb[b]};t.has=function(a){return this.contains(a)};t.K=function(a){var b=a;if(Ia(a)&&(b=Jb(a),void 0===b))return null;a=this.Gb[b];return void 0===a?null:a.value};t.get=function(a){return this.K(a)}; t.remove=function(a){if(null===a)return!1;this.u&&ya(this,a);var b=a;if(Ia(a)&&(b=Jb(a),void 0===b))return!1;a=this.Gb[b];if(void 0===a)return!1;var c=a.qa,d=a.Al;null!==c&&(c.Al=d);null!==d&&(d.qa=c);this.ga===a&&(this.ga=c);this.Ve===a&&(this.Ve=d);delete this.Gb[b];this.Fb--;this.lb();return!0};t.delete=function(a){return this.remove(a)};t.clear=function(){this.u&&ya(this);this.Gb={};this.Fb=0;null!==this.Ka&&this.Ka.reset();null!==this.Ue&&this.Ue.reset();this.Ve=this.ga=null;this.lb()}; Ub.prototype.copy=function(){var a=new Ub,b=this.Gb,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};Ub.prototype.Oa=function(){var a=this.Gb,b=Array(this.Fb),c=0,d;for(d in a){var e=a[d];b[c]=new Ob(e.key,e.value);c++}return b};Ub.prototype.$d=function(){return new Rb(this)}; na.Object.defineProperties(Ub.prototype,{count:{configurable:!0,get:function(){return this.Fb}},size:{configurable:!0,get:function(){return this.Fb}},iterator:{configurable:!0,get:function(){if(0>=this.count)return Cb;var a=this.Ka;return null!==a?(a.reset(),a):new Tb(this)}},iteratorKeys:{configurable:!0,get:function(){return 0>=this.count?Cb:new Qb(this)}},iteratorValues:{configurable:!0,get:function(){if(0>=this.count)return Cb; var a=this.Ue;return null!==a?(a.reset(),a):new Sb(this)}}});Ub.prototype.toKeySet=Ub.prototype.$d;Ub.prototype.toArray=Ub.prototype.Oa;Ub.prototype.clear=Ub.prototype.clear;Ub.prototype["delete"]=Ub.prototype.delete;Ub.prototype.remove=Ub.prototype.remove;Ub.prototype.get=Ub.prototype.get;Ub.prototype.getValue=Ub.prototype.K;Ub.prototype.has=Ub.prototype.has;Ub.prototype.contains=Ub.prototype.contains;Ub.prototype.first=Ub.prototype.first;Ub.prototype.addAll=Ub.prototype.addAll; Ub.prototype.set=Ub.prototype.set;Ub.prototype.add=Ub.prototype.add;Ub.prototype.thaw=Ub.prototype.ja;Ub.prototype.freeze=Ub.prototype.freeze;Ub.className="Map";function J(a,b){void 0===a?this.H=this.G=0:"number"===typeof a&&"number"===typeof b?(this.G=a,this.H=b):v("Invalid arguments to Point constructor: "+a+", "+b);this.u=!1}J.prototype.assign=function(a){this.G=a.G;this.H=a.H;return this};J.prototype.h=function(a,b){this.G=a;this.H=b;return this}; J.prototype.wg=function(a,b){E&&(z(a,"number",J,"setTo:x"),z(b,"number",J,"setTo:y"),this.ha());this.G=a;this.H=b;return this};J.prototype.set=function(a){E&&(w(a,J,J,"set:p"),this.ha());this.G=a.G;this.H=a.H;return this};J.prototype.copy=function(){var a=new J;a.G=this.G;a.H=this.H;return a};t=J.prototype;t.ia=function(){this.u=!0;Object.freeze(this);return this};t.J=function(){return Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.u=!0;return this}; t.ja=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.u=!1;return this};t.ha=function(a){if(this.u){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}};function Vb(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new J(c,e)}return new J} function Xb(a){E&&w(a,J);return a.x.toString()+" "+a.y.toString()}t.toString=function(){return"Point("+this.x+","+this.y+")"};t.A=function(a){return a instanceof J?this.G===a.x&&this.H===a.y:!1};t.Hi=function(a,b){return this.G===a&&this.H===b};t.Sa=function(a){return K.B(this.G,a.x)&&K.B(this.H,a.y)};t.add=function(a){E&&(w(a,J,J,"add:p"),this.ha());this.G+=a.x;this.H+=a.y;return this};t.Zd=function(a){E&&(w(a,J,J,"subtract:p"),this.ha());this.G-=a.x;this.H-=a.y;return this}; t.offset=function(a,b){E&&(B(a,J,"offset:dx"),B(b,J,"offset:dy"),this.ha());this.G+=a;this.H+=b;return this};J.prototype.rotate=function(a){E&&(B(a,J,"rotate:angle"),this.ha());if(0===a)return this;var b=this.G,c=this.H;if(0===b&&0===c)return this;360<=a?a-=360:0>a&&(a+=360);if(90===a){a=0;var d=1}else 180===a?(a=-1,d=0):270===a?(a=0,d=-1):(d=a*Math.PI/180,a=Math.cos(d),d=Math.sin(d));this.G=a*b-d*c;this.H=d*b+a*c;return this};t=J.prototype; t.scale=function(a,b){E&&(B(a,J,"scale:sx"),B(b,J,"scale:sy"),this.ha());this.G*=a;this.H*=b;return this};t.Ee=function(a){E&&w(a,J,J,"distanceSquaredPoint:p");var b=a.x-this.G;a=a.y-this.H;return b*b+a*a};t.ed=function(a,b){E&&(B(a,J,"distanceSquared:px"),B(b,J,"distanceSquared:py"));a-=this.G;b-=this.H;return a*a+b*b};t.normalize=function(){E&&this.ha();var a=this.G,b=this.H,c=Math.sqrt(a*a+b*b);0<c&&(this.G=a/c,this.H=b/c);return this}; t.Xa=function(a){E&&w(a,J,J,"directionPoint:p");return Yb(a.x-this.G,a.y-this.H)};t.direction=function(a,b){E&&(B(a,J,"direction:px"),B(b,J,"direction:py"));return Yb(a-this.G,b-this.H)};function Yb(a,b){if(0===a)return 0<b?90:0>b?270:0;if(0===b)return 0<a?0:180;if(isNaN(a)||isNaN(b))return 0;var c=180*Math.atan(Math.abs(b/a))/Math.PI;0>a?c=0>b?c+180:180-c:0>b&&(c=360-c);return c} t.Sz=function(a,b,c,d){E&&(B(a,J,"projectOntoLineSegment:px"),B(b,J,"projectOntoLineSegment:py"),B(c,J,"projectOntoLineSegment:qx"),B(d,J,"projectOntoLineSegment:qy"));K.Vi(a,b,c,d,this.G,this.H,this);return this};t.Tz=function(a,b){E&&(w(a,J,J,"projectOntoLineSegmentPoint:p"),w(b,J,J,"projectOntoLineSegmentPoint:q"));K.Vi(a.x,a.y,b.x,b.y,this.G,this.H,this);return this}; t.dA=function(a,b,c,d){E&&(B(a,J,"snapToGrid:originx"),B(b,J,"snapToGrid:originy"),B(c,J,"snapToGrid:cellwidth"),B(d,J,"snapToGrid:cellheight"));K.bq(this.G,this.H,a,b,c,d,this);return this};t.eA=function(a,b){E&&(w(a,J,J,"snapToGridPoint:p"),w(b,Zb,J,"snapToGridPoint:q"));K.bq(this.G,this.H,a.x,a.y,b.width,b.height,this);return this};t.Xi=function(a,b){E&&(w(a,L,J,"setRectSpot:r"),w(b,M,J,"setRectSpot:spot"),this.ha());this.G=a.x+b.x*a.width+b.offsetX;this.H=a.y+b.y*a.height+b.offsetY;return this}; t.uk=function(a,b,c,d,e){E&&(B(a,J,"setSpot:x"),B(b,J,"setSpot:y"),B(c,J,"setSpot:w"),B(d,J,"setSpot:h"),(0>c||0>d)&&v("Point.setSpot:Width and height cannot be negative"),w(e,M,J,"setSpot:spot"),this.ha());this.G=a+e.x*c+e.offsetX;this.H=b+e.y*d+e.offsetY;return this};t.transform=function(a){E&&w(a,$b,J,"transform:t");a.va(this);return this};function ac(a,b){E&&w(b,$b,J,"transformInverted:t");b.Wd(a);return a} function cc(a,b,c,d,e,f){E&&(B(a,J,"distanceLineSegmentSquared:px"),B(b,J,"distanceLineSegmentSquared:py"),B(c,J,"distanceLineSegmentSquared:ax"),B(d,J,"distanceLineSegmentSquared:ay"),B(e,J,"distanceLineSegmentSquared:bx"),B(f,J,"distanceLineSegmentSquared:by"));var g=e-c,h=f-d,k=g*g+h*h;c-=a;d-=b;var l=-c*g-d*h;if(0>=l||l>=k)return g=e-a,h=f-b,Math.min(c*c+d*d,g*g+h*h);a=g*d-h*c;return a*a/k} function dc(a,b,c,d){E&&(B(a,J,"distanceSquared:px"),B(b,J,"distanceSquared:py"),B(c,J,"distanceSquared:qx"),B(d,J,"distanceSquared:qy"));a=c-a;b=d-b;return a*a+b*b}function ec(a,b,c,d){E&&(B(a,J,"direction:px"),B(b,J,"direction:py"),B(c,J,"direction:qx"),B(d,J,"direction:qy"));a=c-a;b=d-b;if(0===a)return 0<b?90:0>b?270:0;if(0===b)return 0<a?0:180;if(isNaN(a)||isNaN(b))return 0;d=180*Math.atan(Math.abs(b/a))/Math.PI;0>a?d=0>b?d+180:180-d:0>b&&(d=360-d);return d} t.o=function(){return isFinite(this.x)&&isFinite(this.y)};J.alloc=function(){var a=fc.pop();return void 0===a?new J:a};J.allocAt=function(a,b){var c=fc.pop();if(void 0===c)return new J(a,b);c.x=a;c.y=b;return c};J.free=function(a){fc.push(a)}; na.Object.defineProperties(J.prototype,{x:{configurable:!0,get:function(){return this.G},set:function(a){E&&(z(a,"number",J,"x"),this.ha(a));this.G=a}},y:{configurable:!0,get:function(){return this.H},set:function(a){E&&(z(a,"number",J,"y"),this.ha(a));this.H=a}}});J.prototype.isReal=J.prototype.o;J.prototype.setSpot=J.prototype.uk;J.prototype.setRectSpot=J.prototype.Xi;J.prototype.snapToGridPoint=J.prototype.eA;J.prototype.snapToGrid=J.prototype.dA; J.prototype.projectOntoLineSegmentPoint=J.prototype.Tz;J.prototype.projectOntoLineSegment=J.prototype.Sz;J.prototype.direction=J.prototype.direction;J.prototype.directionPoint=J.prototype.Xa;J.prototype.normalize=J.prototype.normalize;J.prototype.distanceSquared=J.prototype.ed;J.prototype.distanceSquaredPoint=J.prototype.Ee;J.prototype.scale=J.prototype.scale;J.prototype.rotate=J.prototype.rotate;J.prototype.offset=J.prototype.offset;J.prototype.subtract=J.prototype.Zd;J.prototype.add=J.prototype.add; J.prototype.equalsApprox=J.prototype.Sa;J.prototype.equalTo=J.prototype.Hi;J.prototype.equals=J.prototype.A;J.prototype.set=J.prototype.set;J.prototype.setTo=J.prototype.wg;var gc=null,hc=null,ic=null,jc=null,qc=null,fc=[];J.className="Point";J.parse=Vb;J.stringify=Xb;J.distanceLineSegmentSquared=cc;J.distanceSquared=dc;J.direction=ec;J.Origin=gc=(new J(0,0)).ia();J.InfiniteTopLeft=hc=(new J(-Infinity,-Infinity)).ia();J.InfiniteBottomRight=ic=(new J(Infinity,Infinity)).ia(); J.SixPoint=jc=(new J(6,6)).ia();J.NoPoint=qc=(new J(NaN,NaN)).ia();J.parse=Vb;J.stringify=Xb;J.distanceLineSegmentSquared=cc;J.distanceSquared=dc;J.direction=ec;function Zb(a,b){void 0===a?this.$=this.aa=0:"number"===typeof a&&(0<=a||isNaN(a))&&"number"===typeof b&&(0<=b||isNaN(b))?(this.aa=a,this.$=b):v("Invalid arguments to Size constructor: "+a+", "+b);this.u=!1}var rc,sc,tc,uc,vc,wc,xc;Zb.prototype.assign=function(a){this.aa=a.aa;this.$=a.$;return this}; Zb.prototype.h=function(a,b){this.aa=a;this.$=b;return this};Zb.prototype.wg=function(a,b){E&&(z(a,"number",Zb,"setTo:w"),z(b,"number",Zb,"setTo:h"),0>a&&Ca(a,">= 0",Zb,"setTo:w"),0>b&&Ca(b,">= 0",Zb,"setTo:h"),this.ha());this.aa=a;this.$=b;return this};Zb.prototype.set=function(a){E&&(w(a,Zb,Zb,"set:s"),this.ha());this.aa=a.aa;this.$=a.$;return this};Zb.prototype.copy=function(){var a=new Zb;a.aa=this.aa;a.$=this.$;return a};t=Zb.prototype;t.ia=function(){this.u=!0;Object.freeze(this);return this}; t.J=function(){return Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.u=!0;return this};t.ja=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.u=!1;return this};t.ha=function(a){if(this.u){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}}; function yc(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new Zb(c,e)}return new Zb}function Ac(a){E&&w(a,Zb);return a.width.toString()+" "+a.height.toString()}t.toString=function(){return"Size("+this.width+","+this.height+")"};t.A=function(a){return a instanceof Zb?this.aa===a.width&&this.$===a.height:!1};t.Hi=function(a,b){return this.aa===a&&this.$===b}; t.Sa=function(a){return K.B(this.aa,a.width)&&K.B(this.$,a.height)};t.o=function(){return isFinite(this.width)&&isFinite(this.height)};Zb.alloc=function(){var a=Bc.pop();return void 0===a?new Zb:a};Zb.free=function(a){Bc.push(a)}; na.Object.defineProperties(Zb.prototype,{width:{configurable:!0,get:function(){return this.aa},set:function(a){E&&(z(a,"number",Zb,"width"),this.ha(a));0>a&&Ca(a,">= 0",Zb,"width");this.aa=a}},height:{configurable:!0,get:function(){return this.$},set:function(a){E&&(z(a,"number",Zb,"height"),this.ha(a));0>a&&Ca(a,">= 0",Zb,"height");this.$=a}}});Zb.prototype.isReal=Zb.prototype.o;Zb.prototype.equalsApprox=Zb.prototype.Sa;Zb.prototype.equalTo=Zb.prototype.Hi; Zb.prototype.equals=Zb.prototype.A;Zb.prototype.set=Zb.prototype.set;Zb.prototype.setTo=Zb.prototype.wg;var Bc=[];Zb.className="Size";Zb.parse=yc;Zb.stringify=Ac;Zb.ZeroSize=rc=(new Zb(0,0)).ia();Zb.OneSize=sc=(new Zb(1,1)).ia();Zb.SixSize=tc=(new Zb(6,6)).ia();Zb.EightSize=uc=(new Zb(8,8)).ia();Zb.TenSize=vc=(new Zb(10,10)).ia();Zb.InfiniteSize=wc=(new Zb(Infinity,Infinity)).ia();Zb.NoSize=xc=(new Zb(NaN,NaN)).ia();Zb.parse=yc;Zb.stringify=Ac; function L(a,b,c,d){void 0===a?this.$=this.aa=this.H=this.G=0:a instanceof J?(c=a.x,a=a.y,b instanceof J?(d=b.x,b=b.y,this.G=Math.min(c,d),this.H=Math.min(a,b),this.aa=Math.abs(c-d),this.$=Math.abs(a-b)):b instanceof Zb?(this.G=c,this.H=a,this.aa=b.aa,this.$=b.$):v("Incorrect arguments supplied to Rect constructor")):"number"===typeof a&&"number"===typeof b&&"number"===typeof c&&(0<=c||isNaN(c))&&"number"===typeof d&&(0<=d||isNaN(d))?(this.G=a,this.H=b,this.aa=c,this.$=d):v("Invalid arguments to Rect constructor: "+ a+", "+b+", "+c+", "+d);this.u=!1}t=L.prototype;t.assign=function(a){this.G=a.G;this.H=a.H;this.aa=a.aa;this.$=a.$;return this};t.h=function(a,b,c,d){this.G=a;this.H=b;this.aa=c;this.$=d;return this};function Cc(a,b,c){a.aa=b;a.$=c}t.wg=function(a,b,c,d){E&&(z(a,"number",L,"setTo:x"),z(b,"number",L,"setTo:y"),z(c,"number",L,"setTo:w"),z(d,"number",L,"setTo:h"),0>c&&Ca(c,">= 0",L,"setTo:w"),0>d&&Ca(d,">= 0",L,"setTo:h"),this.ha());this.G=a;this.H=b;this.aa=c;this.$=d;return this}; t.set=function(a){E&&(w(a,L,L,"set:r"),this.ha());this.G=a.G;this.H=a.H;this.aa=a.aa;this.$=a.$;return this};t.ld=function(a){E&&(w(a,J,L,"setPoint:p"),this.ha());this.G=a.x;this.H=a.y;return this};t.bA=function(a){E&&(w(a,Zb,L,"setSize:s"),this.ha());this.aa=a.aa;this.$=a.$;return this};L.prototype.copy=function(){var a=new L;a.G=this.G;a.H=this.H;a.aa=this.aa;a.$=this.$;return a};t=L.prototype;t.ia=function(){this.u=!0;Object.freeze(this);return this}; t.J=function(){return Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.u=!0;return this};t.ja=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.u=!1;return this};t.ha=function(a){if(this.u){var b="The Rect is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}}; function Dc(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));for(var f=0;""===a[b];)b++;(d=a[b++])&&(f=parseFloat(d));for(var g=0;""===a[b];)b++;(d=a[b++])&&(g=parseFloat(d));return new L(c,e,f,g)}return new L}function Ec(a){E&&w(a,L);return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()} t.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"};t.A=function(a){return a instanceof L?this.G===a.x&&this.H===a.y&&this.aa===a.width&&this.$===a.height:!1};t.Hi=function(a,b,c,d){return this.G===a&&this.H===b&&this.aa===c&&this.$===d};t.Sa=function(a){return K.B(this.G,a.x)&&K.B(this.H,a.y)&&K.B(this.aa,a.width)&&K.B(this.$,a.height)};function Fc(a,b){return K.da(a.G,b.x)&&K.d