gojs
Version:
Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams
121 lines • 963 kB
JavaScript
/*
* GoJS v2.1.2 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.1.2/license.html.
*/
(function() { var t;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function da(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var ea="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},fa;
if("function"==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={a:!0},ja={};try{ja.__proto__=ia;ha=ja.a;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ka=fa;
function la(a,b){a.prototype=ea(b.prototype);a.prototype.constructor=a;if(ka)ka(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.$A=b.prototype}var ma="undefined"!=typeof window&&window===self?self:"undefined"!=typeof global&&null!=global?global:self,na="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
function oa(a){if(a){for(var b=ma,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&&na(b,c,{configurable:!0,writable:!0,value:a})}}oa(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 pa="object"===typeof self&&self.self===self&&self||"object"===typeof global&&global.global===global&&global||"object"===typeof window&&window.window===window&&window||{};void 0===pa.requestAnimationFrame&&(pa.requestAnimationFrame=pa.setImmediate);function qa(){}function ra(a,b){var c=-1;return function(){var d=this,e=arguments;-1!==c&&pa.clearTimeout(c);c=ta(function(){c=-1;a.apply(d,e)},b)}}function ta(a,b){return pa.setTimeout(a,b)}function ua(a){return pa.document.createElement(a)}
function v(a){throw Error(a);}function va(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=wa(c),void 0!==d&&(c+="."+d),xa(a,b,c))}function A(a,b,c,d){typeof a!==b&&(c=wa(c),void 0!==d&&(c+="."+d),xa(a,b,c))}function C(a,b,c){"number"===typeof a&&isFinite(a)||(b=wa(b),void 0!==c&&(b+="."+c),v(b+" must be a real number type, and not NaN or Infinity: "+a))}
function xa(a,b,c,d){b=wa(b);c=wa(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 ya(a,b,c,d){c=wa(c);void 0!==d&&(c+="."+d);v(c+" is not in the range "+b+": "+a)}function za(a){v(("string"===typeof a.className?a.className:"")+" constructor cannot take any arguments.")}
function Aa(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 Ba(a,b){v("No property to set for this enum value: "+b+" on "+a.toString())}function Ca(a){pa.console&&pa.console.log(a)}
function Ea(){pa.console&&pa.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 Fa(a){return"object"===typeof a&&null!==a}function Ga(a){return Array.isArray(a)||pa.NodeList&&a instanceof pa.NodeList||pa.HTMLCollection&&a instanceof pa.HTMLCollection}function Ha(a,b,c){Ga(a)||xa(a,"Array or NodeList or HTMLCollection",b,c)}
function Ia(a){return Array.prototype.slice.call(a)}function Ja(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 Ka(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 La(){var a=Ma.pop();return void 0===a?[]:a}function Na(a){a.length=0;Ma.push(a)}
function wa(a){return null===a?"*":"string"===typeof a?a:"function"===typeof a&&"string"===typeof a.className?a.className:""}function Oa(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(Fa(a)&&a.constructor)return Oa(a.constructor);return typeof a}
function Pa(a){var b=a;Fa(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 Qa(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.QA;if(c&&c[b])return!0;a=Object.getPrototypeOf(a)}return!1}
function Ra(a,b,c){Object.defineProperty(Sa.prototype,a,{get:b,set:c})}function Ta(){var a=Va;if(0===a.length)for(var b=pa.document.getElementsByTagName("canvas"),c=b.length,d=0;d<c;d++){var e=b[d];e.parentElement&&e.parentElement.A&&a.push(e.parentElement.A)}return a}
function Wa(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 Xa=void 0!==pa.navigator&&0<pa.navigator.userAgent.indexOf("MSIE 9.0"),Za=void 0!==pa.navigator&&0<pa.navigator.userAgent.indexOf("MSIE 10.0"),bb=void 0!==pa.navigator&&0<pa.navigator.userAgent.indexOf("Trident/7"),cb=void 0!==pa.navigator&&0<pa.navigator.userAgent.indexOf("Edge/"),db=void 0!==pa.navigator&&void 0!==pa.navigator.platform&&0<=pa.navigator.platform.toUpperCase().indexOf("MAC"),eb=void 0!==pa.navigator&&void 0!==pa.navigator.platform&&null!==pa.navigator.platform.match(/(iPhone|iPod|iPad)/i),
Ma=[];Object.freeze([]);var Va=[];qa.className="Util";qa.Dx="32ab5ff3b26f42dc0ed90f224d2913b5";qa.adym="gojs.net";qa.vfo="28e647fdb1";qa.className="Util";function E(a,b,c){fb(this);this.l=a;this.Wa=b;this.w=c}E.prototype.toString=function(){return"EnumValue."+this.Wa};function gb(a,b){return void 0===b||null===b||""===b?null:a[b]}function hb(a,b,c,d){a.classType!==b&&(c=wa(c),void 0!==d&&(c+="."+d),xa(a,"function"==="a constant of class "+typeof b.className?b.className:"",c))}
ma.Object.defineProperties(E.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}}});E.className="EnumValue";function ib(){this.Mw=[]}ib.prototype.toString=function(){return this.Mw.join("")};ib.prototype.add=function(a){""!==a&&this.Mw.push(a)};ib.className="StringBuilder";function jb(){}jb.className="PropertyCollection";
var F={Vi:!1,sv:!1,pz:!1,TA:!1,XA:!1,Wx:!1,RA:null,trace:function(a){pa.console&&pa.console.log(a)},SA:function(a,b,c,d){a.strokeStyle="red";a.fillStyle="red";a.font="8px sans-serif";a.beginPath();a.moveTo(-10,0);a.lineTo(10,0);a.moveTo(0,-10);a.lineTo(0,10);a.stroke();a.setTransform(1,0,0,1,0,0);a.scale(c,c);a.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy);a.lineWidth=2;a.beginPath();a.moveTo(d.left,d.top+20);a.lineTo(d.left,d.top);a.lineTo(d.left+20,d.top);a.moveTo(d.right,d.bottom-20);a.lineTo(d.right,
d.bottom);a.lineTo(d.right-20,d.bottom);a.stroke();a.fillText("DB: "+Math.round(d.x)+", "+Math.round(d.y)+", "+Math.round(d.width)+", "+Math.round(d.height),d.left,d.top-5)},Wy: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.Gm=Object.getOwnPropertyNames(d.prototype);for(var e={rk:0};e.rk<b.Gm.length;e={rk:e.rk},e.rk++){var f=Object.getOwnPropertyDescriptor(d.prototype,b.Gm[e.rk]);void 0!==f.get&&void 0===f.set&&Object.defineProperty(d.prototype,
b.Gm[e.rk],{set:function(a,b){return function(){throw Error("Property "+a.Gm[b.rk]+" of "+a.x+" is read-only.");}}(b,e)})}}}b={Gm:b.Gm,x:b.x}}}};function lb(){}lb.prototype.reset=function(){};lb.prototype.next=function(){return!1};lb.prototype.md=function(){return!1};lb.prototype.first=function(){return null};lb.prototype.any=function(){return!1};lb.prototype.all=function(){return!0};lb.prototype.each=function(){return this};lb.prototype.map=function(){return this};lb.prototype.filter=function(){return this};
lb.prototype.Gd=function(){};lb.prototype.toString=function(){return"EmptyIterator"};ma.Object.defineProperties(lb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 0}}});lb.prototype.first=lb.prototype.first;lb.prototype.hasNext=lb.prototype.md;lb.prototype.next=lb.prototype.next;lb.prototype.reset=lb.prototype.reset;var mb=null;lb.className="EmptyIterator";mb=new lb;function nb(a){this.key=-1;this.value=a}
nb.prototype.reset=function(){this.key=-1};nb.prototype.next=function(){return-1===this.key?(this.key=0,!0):!1};nb.prototype.md=function(){return this.next()};nb.prototype.first=function(){this.key=0;return this.value};nb.prototype.any=function(a){this.key=-1;return a(this.value)};nb.prototype.all=function(a){this.key=-1;return a(this.value)};nb.prototype.each=function(a){this.key=-1;a(this.value);return this};nb.prototype.map=function(a){return new nb(a(this.value))};
nb.prototype.filter=function(a){return a(this.value)?new nb(this.value):mb};nb.prototype.Gd=function(){this.value=null};nb.prototype.toString=function(){return"SingletonIterator("+this.value+")"};ma.Object.defineProperties(nb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 1}}});nb.prototype.first=nb.prototype.first;nb.prototype.hasNext=nb.prototype.md;nb.prototype.next=nb.prototype.next;
nb.prototype.reset=nb.prototype.reset;nb.className="SingletonIterator";function ob(a){this.rb=a;this.hf=null;a.La=null;this.oa=a.u;this.Ua=-1}ob.prototype.reset=function(){var a=this.rb;a.La=null;this.oa=a.u;this.Ua=-1};ob.prototype.next=function(){var a=this.rb;if(a.u!==this.oa){if(0>this.key)return!1;Aa(a)}a=a.j;var b=a.length,c=++this.Ua,d=this.hf;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.Gd()}return!1};
ob.prototype.md=function(){return this.next()};ob.prototype.first=function(){var a=this.rb;this.oa=a.u;this.Ua=0;a=a.j;var b=a.length,c=this.hf;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};ob.prototype.any=function(a){var b=this.rb;b.La=null;var c=b.u;this.Ua=-1;for(var d=b.j,e=d.length,f=this.hf,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(a(h))return!0;b.u!==c&&Aa(b)}}return!1};
ob.prototype.all=function(a){var b=this.rb;b.La=null;var c=b.u;this.Ua=-1;for(var d=b.j,e=d.length,f=this.hf,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(!a(h))return!1;b.u!==c&&Aa(b)}}return!0};ob.prototype.each=function(a){var b=this.rb;b.La=null;var c=b.u;this.Ua=-1;for(var d=b.j,e=d.length,f=this.hf,g=0;g<e;g++){var h=d[g];if(null===f||f(h))a(h),b.u!==c&&Aa(b)}return this};
ob.prototype.map=function(a){var b=this.rb;b.La=null;var c=b.u;this.Ua=-1;for(var d=[],e=b.j,f=e.length,g=this.hf,h=0;h<f;h++){var k=e[h];if(null===g||g(k))d.push(a(k)),b.u!==c&&Aa(b)}a=new G;a.j=d;a.ob();return a.iterator};ob.prototype.filter=function(a){var b=this.rb;b.La=null;var c=b.u;this.Ua=-1;for(var d=[],e=b.j,f=e.length,g=this.hf,h=0;h<f;h++){var k=e[h];if(null===g||g(k))a(k)&&d.push(k),b.u!==c&&Aa(b)}a=new G;a.j=d;a.ob();return a.iterator};
ob.prototype.Gd=function(){this.key=-1;this.value=null;this.oa=-1;this.hf=null;this.rb.La=this};ob.prototype.toString=function(){return"ListIterator@"+this.Ua+"/"+this.rb.count};
ma.Object.defineProperties(ob.prototype,{iterator:{configurable:!0,get:function(){return this}},predicate:{configurable:!0,get:function(){return this.hf},set:function(a){this.hf=a}},count:{configurable:!0,get:function(){var a=this.hf;if(null!==a){for(var b=0,c=this.rb.j,d=c.length,e=0;e<d;e++)a(c[e])&&b++;return b}return this.rb.j.length}}});ob.prototype.first=ob.prototype.first;ob.prototype.hasNext=ob.prototype.md;ob.prototype.next=ob.prototype.next;
ob.prototype.reset=ob.prototype.reset;ob.className="ListIterator";function pb(a){this.rb=a;a.lh=null;this.oa=a.u;this.Ua=a.j.length}pb.prototype.reset=function(){var a=this.rb;a.lh=null;this.oa=a.u;this.Ua=a.j.length};pb.prototype.next=function(){var a=this.rb;if(a.u!==this.oa){if(0>this.key)return!1;Aa(a)}var b=--this.Ua;if(0<=b)return this.key=b,this.value=a.j[b],!0;this.Gd();return!1};pb.prototype.md=function(){return this.next()};
pb.prototype.first=function(){var a=this.rb;this.oa=a.u;var b=a.j;this.Ua=a=b.length-1;return 0<=a?(b=b[a],this.key=a,this.value=b):null};pb.prototype.any=function(a){var b=this.rb;b.lh=null;var c=b.u,d=b.j,e=d.length;this.Ua=e;for(--e;0<=e;e--){if(a(d[e]))return!0;b.u!==c&&Aa(b)}return!1};pb.prototype.all=function(a){var b=this.rb;b.lh=null;var c=b.u,d=b.j,e=d.length;this.Ua=e;for(--e;0<=e;e--){if(!a(d[e]))return!1;b.u!==c&&Aa(b)}return!0};
pb.prototype.each=function(a){var b=this.rb;b.lh=null;var c=b.u,d=b.j,e=d.length;this.Ua=e;for(--e;0<=e;e--)a(d[e]),b.u!==c&&Aa(b);return this};pb.prototype.map=function(a){var b=this.rb;b.lh=null;var c=b.u,d=[],e=b.j,f=e.length;this.Ua=f;for(--f;0<=f;f--)d.push(a(e[f])),b.u!==c&&Aa(b);a=new G;a.j=d;a.ob();return a.iterator};
pb.prototype.filter=function(a){var b=this.rb;b.lh=null;var c=b.u,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.u!==c&&Aa(b)}a=new G;a.j=d;a.ob();return a.iterator};pb.prototype.Gd=function(){this.key=-1;this.value=null;this.oa=-1;this.rb.lh=this};pb.prototype.toString=function(){return"ListIteratorBackwards("+this.Ua+"/"+this.rb.count+")"};
ma.Object.defineProperties(pb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.rb.j.length}}});pb.prototype.first=pb.prototype.first;pb.prototype.hasNext=pb.prototype.md;pb.prototype.next=pb.prototype.next;pb.prototype.reset=pb.prototype.reset;pb.className="ListIteratorBackwards";
function G(a){fb(this);this.s=!1;this.j=[];this.u=0;this.lh=this.La=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ea():this.addAll(a))}t=G.prototype;t.ob=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ka=function(){this.s=!1;return this};t.toString=function(){return"List()#"+sb(this)};t.add=function(a){if(null===a)return this;this.s&&va(this,a);this.j.push(a);this.ob();return this};t.push=function(a){this.add(a)};
t.addAll=function(a){if(null===a)return this;this.s&&va(this);var b=this.j;if(Ga(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.ob();return this};t.clear=function(){this.s&&va(this);this.j.length=0;this.ob()};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){F&&C(a,G,"elt:i");var b=this.j;(0>a||a>=b.length)&&ya(a,"0 <= i < length",G,"elt:i");return b[a]};t.get=function(a){return this.O(a)};t.od=function(a,b){F&&C(a,G,"setElt:i");var c=this.j;(0>a||a>=c.length)&&ya(a,"0 <= i < length",G,"setElt:i");this.s&&va(this,a);c[a]=b};t.set=function(a,b){this.od(a,b)};t.first=function(){var a=this.j;return 0===a.length?null:a[0]};t.ac=function(){var a=this.j,b=a.length;return 0<b?a[b-1]:null};
t.pop=function(){this.s&&va(this);var a=this.j;return 0<a.length?a.pop():null};G.prototype.any=function(a){for(var b=this.j,c=this.u,d=b.length,e=0;e<d;e++){if(a(b[e]))return!0;this.u!==c&&Aa(this)}return!1};G.prototype.all=function(a){for(var b=this.j,c=this.u,d=b.length,e=0;e<d;e++){if(!a(b[e]))return!1;this.u!==c&&Aa(this)}return!0};G.prototype.each=function(a){for(var b=this.j,c=this.u,d=b.length,e=0;e<d;e++)a(b[e]),this.u!==c&&Aa(this);return this};
G.prototype.map=function(a){for(var b=new G,c=[],d=this.j,e=this.u,f=d.length,g=0;g<f;g++)c.push(a(d[g])),this.u!==e&&Aa(this);b.j=c;b.ob();return b};G.prototype.filter=function(a){for(var b=new G,c=[],d=this.j,e=this.u,f=d.length,g=0;g<f;g++){var h=d[g];a(h)&&c.push(h);this.u!==e&&Aa(this)}b.j=c;b.ob();return b};t=G.prototype;t.Qb=function(a,b){F&&C(a,G,"insertAt:i");0>a&&ya(a,">= 0",G,"insertAt:i");this.s&&va(this,a);var c=this.j;a>=c.length?c.push(b):c.splice(a,0,b);this.ob()};
t.remove=function(a){if(null===a)return!1;this.s&&va(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.ob();return!0};t.delete=function(a){return this.remove(a)};t.pb=function(a){F&&C(a,G,"removeAt:i");var b=this.j;(0>a||a>=b.length)&&ya(a,"0 <= i < length",G,"removeAt:i");this.s&&va(this,a);a===b.length-1?b.pop():b.splice(a,1);this.ob()};
t.removeRange=function(a,b){F&&(C(a,G,"removeRange:from"),C(b,G,"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.s&&va(this);for(var e=a,f=b+1;f<d;)c[e++]=c[f++];c.length=d-(b-a+1);this.ob();return this};G.prototype.copy=function(){var a=new G,b=this.j;0<b.length&&(a.j=Array.prototype.slice.call(b));return a};t=G.prototype;t.sa=function(){for(var a=this.j,b=this.count,c=Array(b),d=0;d<b;d++)c[d]=a[d];return c};
t.ow=function(){for(var a=new H,b=this.j,c=this.count,d=0;d<c;d++)a.add(b[d]);return a};t.sort=function(a){F&&A(a,"function",G,"sort:sortfunc");this.s&&va(this);this.j.sort(a);this.ob();return this};
t.mj=function(a,b,c){var d=this.j,e=d.length;void 0===b&&(b=0);void 0===c&&(c=e);F&&(A(a,"function",G,"sortRange:sortfunc"),C(b,G,"sortRange:from"),C(c,G,"sortRange:to"));this.s&&va(this);var f=c-b;if(1>=f)return this;(0>b||b>=e-1)&&ya(b,"0 <= from < length",G,"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.ob()),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.ob();return this};t.reverse=function(){this.s&&va(this);this.j.reverse();this.ob();return this};
ma.Object.defineProperties(G.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 mb;var a=this.La;return null!==a?(a.reset(),a):new ob(this)}},iteratorBackwards:{configurable:!0,
enumerable:!0,get:function(){if(0>=this.j.length)return mb;var a=this.lh;return null!==a?(a.reset(),a):new pb(this)}}});G.prototype.reverse=G.prototype.reverse;G.prototype.sortRange=G.prototype.mj;G.prototype.sort=G.prototype.sort;G.prototype.toSet=G.prototype.ow;G.prototype.toArray=G.prototype.sa;G.prototype.removeRange=G.prototype.removeRange;G.prototype.removeAt=G.prototype.pb;G.prototype["delete"]=G.prototype.delete;G.prototype.remove=G.prototype.remove;G.prototype.insertAt=G.prototype.Qb;
G.prototype.pop=G.prototype.pop;G.prototype.last=G.prototype.ac;G.prototype.first=G.prototype.first;G.prototype.set=G.prototype.set;G.prototype.setElt=G.prototype.od;G.prototype.get=G.prototype.get;G.prototype.elt=G.prototype.O;G.prototype.indexOf=G.prototype.indexOf;G.prototype.has=G.prototype.has;G.prototype.contains=G.prototype.contains;G.prototype.clear=G.prototype.clear;G.prototype.addAll=G.prototype.addAll;G.prototype.push=G.prototype.push;G.prototype.add=G.prototype.add;G.prototype.thaw=G.prototype.ka;
G.prototype.freeze=G.prototype.freeze;G.className="List";function tb(a){this.Ag=a;a.La=null;this.oa=a.u;this.qa=null}tb.prototype.reset=function(){var a=this.Ag;a.La=null;this.oa=a.u;this.qa=null};tb.prototype.next=function(){var a=this.Ag;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.ta;if(null!==b)return this.qa=b,this.value=b.value,this.key=b.key,!0;this.Gd();return!1};tb.prototype.md=function(){return this.next()};
tb.prototype.first=function(){var a=this.Ag;this.oa=a.u;a=a.ga;if(null!==a){this.qa=a;var b=a.value;this.key=a.key;return this.value=b}return null};tb.prototype.any=function(a){var b=this.Ag;b.La=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.u!==c&&Aa(b);d=d.ta}return!1};tb.prototype.all=function(a){var b=this.Ag;b.La=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.u!==c&&Aa(b);d=d.ta}return!0};
tb.prototype.each=function(a){var b=this.Ag;b.La=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d.value),b.u!==c&&Aa(b),d=d.ta;return this};tb.prototype.map=function(a){var b=this.Ag;b.La=null;for(var c=new G,d=b.u,e=b.ga;null!==e;)c.add(a(e.value)),b.u!==d&&Aa(b),e=e.ta;return c.iterator};tb.prototype.filter=function(a){var b=this.Ag;b.La=null;for(var c=new G,d=b.u,e=b.ga;null!==e;){var f=e.value;a(f)&&c.add(f);b.u!==d&&Aa(b);e=e.ta}return c.iterator};
tb.prototype.Gd=function(){this.value=this.key=null;this.oa=-1;this.Ag.La=this};tb.prototype.toString=function(){return null!==this.qa?"SetIterator@"+this.qa.value:"SetIterator"};ma.Object.defineProperties(tb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.Ag.Jb}}});tb.prototype.first=tb.prototype.first;tb.prototype.hasNext=tb.prototype.md;tb.prototype.next=tb.prototype.next;tb.prototype.reset=tb.prototype.reset;
tb.className="SetIterator";function H(a){fb(this);this.s=!1;this.Kb={};this.Jb=0;this.La=null;this.u=0;this.cf=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ea():this.addAll(a))}t=H.prototype;t.ob=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ka=function(){this.s=!1;return this};t.toString=function(){return"Set()#"+sb(this)};
t.add=function(a){if(null===a)return this;this.s&&va(this,a);var b=a;Fa(a)&&(b=ub(a));void 0===this.Kb[b]&&(this.Jb++,a=new vb(a,a),this.Kb[b]=a,b=this.cf,null===b?this.ga=a:(a.Ql=b,b.ta=a),this.cf=a,this.ob());return this};t.addAll=function(a){if(null===a)return this;this.s&&va(this);if(Ga(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 Fa(a)&&(b=sb(a),void 0===b)?!1:void 0!==this.Kb[b]};t.has=function(a){return this.contains(a)};t.bz=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0};t.cz=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};
H.prototype.any=function(a){for(var b=this.u,c=this.ga;null!==c;){if(a(c.value))return!0;this.u!==b&&Aa(this);c=c.ta}return!1};H.prototype.all=function(a){for(var b=this.u,c=this.ga;null!==c;){if(!a(c.value))return!1;this.u!==b&&Aa(this);c=c.ta}return!0};H.prototype.each=function(a){for(var b=this.u,c=this.ga;null!==c;)a(c.value),this.u!==b&&Aa(this),c=c.ta;return this};H.prototype.map=function(a){for(var b=new H,c=this.u,d=this.ga;null!==d;)b.add(a(d.value)),this.u!==c&&Aa(this),d=d.ta;return b};
H.prototype.filter=function(a){for(var b=new H,c=this.u,d=this.ga;null!==d;){var e=d.value;a(e)&&b.add(e);this.u!==c&&Aa(this);d=d.ta}return b};t=H.prototype;t.remove=function(a){if(null===a)return!1;this.s&&va(this,a);var b=a;if(Fa(a)&&(b=sb(a),void 0===b))return!1;a=this.Kb[b];if(void 0===a)return!1;var c=a.ta,d=a.Ql;null!==c&&(c.Ql=d);null!==d&&(d.ta=c);this.ga===a&&(this.ga=c);this.cf===a&&(this.cf=d);delete this.Kb[b];this.Jb--;this.ob();return!0};t.delete=function(a){return this.remove(a)};
t.Lq=function(a){if(null===a)return this;this.s&&va(this);if(Ga(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.BA=function(a){if(null===a||0===this.count)return this;this.s&&va(this);var b=new H;b.addAll(a);a=[];for(var c=this.iterator;c.next();){var d=c.value;b.contains(d)||a.push(d)}this.Lq(a);return this};t.clear=function(){this.s&&va(this);this.Kb={};this.Jb=0;null!==this.La&&this.La.reset();this.cf=this.ga=null;this.ob()};
H.prototype.copy=function(){var a=new H,b=this.Kb,c;for(c in b)a.add(b[c].value);return a};H.prototype.sa=function(){var a=Array(this.Jb),b=this.Kb,c=0,d;for(d in b)a[c]=b[d].value,c++;return a};H.prototype.nw=function(){var a=new G,b=this.Kb,c;for(c in b)a.add(b[c].value);return a};function fb(a){a.__gohashid=wb++}function ub(a){var b=a.__gohashid;void 0===b&&(b=wb++,a.__gohashid=b);return b}function sb(a){return a.__gohashid}
ma.Object.defineProperties(H.prototype,{count:{configurable:!0,get:function(){return this.Jb}},size:{configurable:!0,get:function(){return this.Jb}},iterator:{configurable:!0,get:function(){if(0>=this.Jb)return mb;var a=this.La;return null!==a?(a.reset(),a):new tb(this)}}});H.prototype.toList=H.prototype.nw;H.prototype.toArray=H.prototype.sa;H.prototype.clear=H.prototype.clear;H.prototype.retainAll=H.prototype.BA;H.prototype.removeAll=H.prototype.Lq;
H.prototype["delete"]=H.prototype.delete;H.prototype.remove=H.prototype.remove;H.prototype.first=H.prototype.first;H.prototype.containsAny=H.prototype.cz;H.prototype.containsAll=H.prototype.bz;H.prototype.has=H.prototype.has;H.prototype.contains=H.prototype.contains;H.prototype.addAll=H.prototype.addAll;H.prototype.add=H.prototype.add;H.prototype.thaw=H.prototype.ka;H.prototype.freeze=H.prototype.freeze;var wb=1;H.className="Set";H.uniqueHash=fb;H.hashIdUnique=ub;H.hashId=sb;
function yb(a){this.la=a;this.oa=a.u;this.qa=null}yb.prototype.reset=function(){this.oa=this.la.u;this.qa=null};yb.prototype.next=function(){var a=this.la;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.ta;if(null!==b)return this.qa=b,this.value=this.key=a=b.key,!0;this.Gd();return!1};yb.prototype.md=function(){return this.next()};yb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;return null!==a?(this.qa=a,this.value=this.key=a=a.key):null};
yb.prototype.any=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.key))return!0;b.u!==c&&Aa(b);d=d.ta}return!1};yb.prototype.all=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.key))return!1;b.u!==c&&Aa(b);d=d.ta}return!0};yb.prototype.each=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d.key),b.u!==c&&Aa(b),d=d.ta;return this};
yb.prototype.map=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=new G,e=b.ga;null!==e;)d.add(a(e.key)),b.u!==c&&Aa(b),e=e.ta;return d.iterator};yb.prototype.filter=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=new G,e=b.ga;null!==e;){var f=e.key;a(f)&&d.add(f);b.u!==c&&Aa(b);e=e.ta}return d.iterator};yb.prototype.Gd=function(){this.value=this.key=null;this.oa=-1};yb.prototype.toString=function(){return null!==this.qa?"MapKeySetIterator@"+this.qa.value:"MapKeySetIterator"};
ma.Object.defineProperties(yb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Jb}}});yb.prototype.first=yb.prototype.first;yb.prototype.hasNext=yb.prototype.md;yb.prototype.next=yb.prototype.next;yb.prototype.reset=yb.prototype.reset;yb.className="MapKeySetIterator";function zb(a){H.call(this);fb(this);this.s=!0;this.la=a}la(zb,H);t=zb.prototype;t.freeze=function(){return this};t.ka=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};
zb.prototype.any=function(a){for(var b=this.la.ga;null!==b;){if(a(b.key))return!0;b=b.ta}return!1};zb.prototype.all=function(a){for(var b=this.la.ga;null!==b;){if(!a(b.key))return!1;b=b.ta}return!0};zb.prototype.each=function(a){for(var b=this.la.ga;null!==b;)a(b.key),b=b.ta;return this};zb.prototype.map=function(a){for(var b=new H,c=this.la.ga;null!==c;)b.add(a(c.key)),c=c.ta;return b};zb.prototype.filter=function(a){for(var b=new H,c=this.la.ga;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.ta}return b};
zb.prototype.copy=function(){return new zb(this.la)};zb.prototype.ow=function(){var a=new H,b=this.la.Kb,c;for(c in b)a.add(b[c].key);return a};zb.prototype.sa=function(){var a=this.la.Kb,b=Array(this.la.Jb),c=0,d;for(d in a)b[c]=a[d].key,c++;return b};zb.prototype.nw=function(){var a=new G,b=this.la.Kb,c;for(c in b)a.add(b[c].key);return a};
ma.Object.defineProperties(zb.prototype,{count:{configurable:!0,get:function(){return this.la.Jb}},size:{configurable:!0,get:function(){return this.la.Jb}},iterator:{configurable:!0,get:function(){return 0>=this.la.Jb?mb:new yb(this.la)}}});zb.prototype.toList=zb.prototype.nw;zb.prototype.toArray=zb.prototype.sa;zb.prototype.toSet=zb.prototype.ow;zb.prototype.first=zb.prototype.first;zb.prototype.clear=zb.prototype.clear;zb.prototype["delete"]=zb.prototype.delete;
zb.prototype.remove=zb.prototype.remove;zb.prototype.has=zb.prototype.has;zb.prototype.contains=zb.prototype.contains;zb.prototype.add=zb.prototype.add;zb.prototype.thaw=zb.prototype.ka;zb.prototype.freeze=zb.prototype.freeze;zb.className="MapKeySet";function Ab(a){this.la=a;a.bf=null;this.oa=a.u;this.qa=null}Ab.prototype.reset=function(){var a=this.la;a.bf=null;this.oa=a.u;this.qa=null};
Ab.prototype.next=function(){var a=this.la;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.ta;if(null!==b)return this.qa=b,this.value=b.value,this.key=b.key,!0;this.Gd();return!1};Ab.prototype.md=function(){return this.next()};Ab.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;if(null!==a){this.qa=a;var b=a.value;this.key=a.key;return this.value=b}return null};
Ab.prototype.any=function(a){var b=this.la;b.bf=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.u!==c&&Aa(b);d=d.ta}return!1};Ab.prototype.all=function(a){var b=this.la;b.bf=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.u!==c&&Aa(b);d=d.ta}return!0};Ab.prototype.each=function(a){var b=this.la;b.bf=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d.value),b.u!==c&&Aa(b),d=d.ta;return this};
Ab.prototype.map=function(a){var b=this.la;b.bf=null;var c=b.u;this.qa=null;for(var d=new G,e=b.ga;null!==e;)d.add(a(e.value)),b.u!==c&&Aa(b),e=e.ta;return d.iterator};Ab.prototype.filter=function(a){var b=this.la;b.bf=null;var c=b.u;this.qa=null;for(var d=new G,e=b.ga;null!==e;){var f=e.value;a(f)&&d.add(f);b.u!==c&&Aa(b);e=e.ta}return d.iterator};Ab.prototype.Gd=function(){this.value=this.key=null;this.oa=-1;this.la.bf=this};
Ab.prototype.toString=function(){return null!==this.qa?"MapValueSetIterator@"+this.qa.value:"MapValueSetIterator"};ma.Object.defineProperties(Ab.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Jb}}});Ab.prototype.first=Ab.prototype.first;Ab.prototype.hasNext=Ab.prototype.md;Ab.prototype.next=Ab.prototype.next;Ab.prototype.reset=Ab.prototype.reset;Ab.className="MapValueSetIterator";
function vb(a,b){this.key=a;this.value=b;this.Ql=this.ta=null}vb.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"};vb.className="KeyValuePair";function Cb(a){this.la=a;a.La=null;this.oa=a.u;this.qa=null}Cb.prototype.reset=function(){var a=this.la;a.La=null;this.oa=a.u;this.qa=null};
Cb.prototype.next=function(){var a=this.la;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.ta;if(null!==b)return this.qa=b,this.key=b.key,this.value=b.value,!0;this.Gd();return!1};Cb.prototype.md=function(){return this.next()};Cb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;return null!==a?(this.qa=a,this.key=a.key,this.value=a.value,a):null};
Cb.prototype.any=function(a){var b=this.la;b.La=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d))return!0;b.u!==c&&Aa(b);d=d.ta}return!1};Cb.prototype.all=function(a){var b=this.la;b.La=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d))return!1;b.u!==c&&Aa(b);d=d.ta}return!0};Cb.prototype.each=function(a){var b=this.la;b.La=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d),b.u!==c&&Aa(b),d=d.ta;return this};
Cb.prototype.map=function(a){var b=this.la;b.La=null;var c=b.u;this.qa=null;for(var d=new G,e=b.ga;null!==e;)d.add(a(e)),b.u!==c&&Aa(b),e=e.ta;return d.iterator};Cb.prototype.filter=function(a){var b=this.la;b.La=null;var c=b.u;this.qa=null;for(var d=new G,e=b.ga;null!==e;)a(e)&&d.add(e),b.u!==c&&Aa(b),e=e.ta;return d.iterator};Cb.prototype.Gd=function(){this.value=this.key=null;this.oa=-1;this.la.La=this};Cb.prototype.toString=function(){return null!==this.qa?"MapIterator@"+this.qa:"MapIterator"};
ma.Object.defineProperties(Cb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Jb}}});Cb.prototype.first=Cb.prototype.first;Cb.prototype.hasNext=Cb.prototype.md;Cb.prototype.next=Cb.prototype.next;Cb.prototype.reset=Cb.prototype.reset;Cb.className="MapIterator";
function Db(a){fb(this);this.s=!1;this.Kb={};this.Jb=0;this.bf=this.La=null;this.u=0;this.cf=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ea():this.addAll(a))}t=Db.prototype;t.ob=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ka=function(){this.s=!1;return this};t.toString=function(){return"Map()#"+sb(this)};
t.add=function(a,b){this.s&&va(this,a);var c=a;Fa(a)&&(c=ub(a));var d=this.Kb[c];void 0===d?(this.Jb++,a=new vb(a,b),this.Kb[c]=a,c=this.cf,null===c?this.ga=a:(a.Ql=c,c.ta=a),this.cf=a,this.ob()):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(Ga(a))for(var b=a.length,c=0;c<b;c++){var d=a[c];this.add(d.key,d.value)}else if(a instanceof Db)for(a=a.iterator;a.next();)this.add(a.key,a.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};Db.prototype.any=function(a){for(var b=this.u,c=this.ga;null!==c;){if(a(c))return!0;this.u!==b&&Aa(this);c=c.ta}return!1};
Db.prototype.all=function(a){for(var b=this.u,c=this.ga;null!==c;){if(!a(c))return!1;this.u!==b&&Aa(this);c=c.ta}return!0};Db.prototype.each=function(a){for(var b=this.u,c=this.ga;null!==c;)a(c),this.u!==b&&Aa(this),c=c.ta;return this};Db.prototype.map=function(a){for(var b=new Db,c=this.u,d=this.ga;null!==d;)b.add(d.key,a(d)),this.u!==c&&Aa(this),d=d.ta;return b};Db.prototype.filter=function(a){for(var b=new Db,c=this.u,d=this.ga;null!==d;)a(d)&&b.add(d.key,d.value),this.u!==c&&Aa(this),d=d.ta;return b};
t=Db.prototype;t.contains=function(a){var b=a;return Fa(a)&&(b=sb(a),void 0===b)?!1:void 0!==this.Kb[b]};t.has=function(a){return this.contains(a)};t.K=function(a){var b=a;if(Fa(a)&&(b=sb(a),void 0===b))return null;a=this.Kb[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.s&&va(this,a);var b=a;if(Fa(a)&&(b=sb(a),void 0===b))return!1;a=this.Kb[b];if(void 0===a)return!1;var c=a.ta,d=a.Ql;null!==c&&(c.Ql=d);null!==d&&(d.ta=c);this.ga===a&&(this.ga=c);this.cf===a&&(this.cf=d);delete this.Kb[b];this.Jb--;this.ob();return!0};t.delete=function(a){return this.remove(a)};t.clear=function(){this.s&&va(this);this.Kb={};this.Jb=0;null!==this.La&&this.La.reset();null!==this.bf&&this.bf.reset();this.cf=this.ga=null;this.ob()};
Db.prototype.copy=function(){var a=new Db,b=this.Kb,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};Db.prototype.sa=function(){var a=this.Kb,b=Array(this.Jb),c=0,d;for(d in a){var e=a[d];b[c]=new vb(e.key,e.value);c++}return b};Db.prototype.Mf=function(){return new zb(this)};
ma.Object.defineProperties(Db.prototype,{count:{configurable:!0,get:function(){return this.Jb}},size:{configurable:!0,get:function(){return this.Jb}},iterator:{configurable:!0,get:function(){if(0>=this.count)return mb;var a=this.La;return null!==a?(a.reset(),a):new Cb(this)}},iteratorKeys:{configurable:!0,get:function(){return 0>=this.count?mb:new yb(this)}},iteratorValues:{configurable:!0,get:function(){if(0>=this.count)return mb;
var a=this.bf;return null!==a?(a.reset(),a):new Ab(this)}}});Db.prototype.toKeySet=Db.prototype.Mf;Db.prototype.toArray=Db.prototype.sa;Db.prototype.clear=Db.prototype.clear;Db.prototype["delete"]=Db.prototype.delete;Db.prototype.remove=Db.prototype.remove;Db.prototype.get=Db.prototype.get;Db.prototype.getValue=Db.prototype.K;Db.prototype.has=Db.prototype.has;Db.prototype.contains=Db.prototype.contains;Db.prototype.first=Db.prototype.first;Db.prototype.addAll=Db.prototype.addAll;
Db.prototype.set=Db.prototype.set;Db.prototype.add=Db.prototype.add;Db.prototype.thaw=Db.prototype.ka;Db.prototype.freeze=Db.prototype.freeze;Db.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.s=!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.Og=function(a,b){F&&(A(a,"number",J,"setTo:x"),A(b,"number",J,"setTo:y"),this.ha());this.G=a;this.H=b;return this};J.prototype.set=function(a){F&&(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.s=!0;Object.freeze(this);return this};t.J=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this};
t.ka=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};t.ha=function(a){if(F&&this.s){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}};function Eb(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 Gb(a){F&&w(a,J);return a.x.toString()+" "+a.y.toString()}t.toString=function(){return"Point("+this.x+","+this.y+")"};t.B=function(a){return a instanceof J?this.G===a.x&&this.H===a.y:!1};t.Xi=function(a,b){return this.G===a&&this.H===b};t.Sa=function(a){return K.C(this.G,a.x)&&K.C(this.H,a.y)};t.add=function(a){F&&(w(a,J,J,"add:p"),this.ha());this.G+=a.x;this.H+=a.y;return this};t.ee=function(a){F&&(w(a,J,J,"subtract:p"),this.ha());this.G-=a.x;this.H-=a.y;return this};
t.offset=function(a,b){F&&(C(a,J,"offset:dx"),C(b,J,"offset:dy"),this.ha());this.G+=a;this.H+=b;return this};J.prototype.rotate=function(a){F&&(C(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){F&&(C(a,J,"scale:sx"),C(b,J,"scale:sy"),this.ha());this.G*=a;this.H*=b;return this};t.Je=function(a){F&&w(a,J,J,"distanceSquaredPoint:p");var b=a.x-this.G;a=a.y-this.H;return b*b+a*a};t.ld=function(a,b){F&&(C(a,J,"distanceSquared:px"),C(b,J,"distanceSquared:py"));a-=this.G;b-=this.H;return a*a+b*b};t.normalize=function(){F&&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){F&&w(a,J,J,"directionPoint:p");return Ib(a.x-this.G,a.y-this.H)};t.direction=function(a,b){F&&(C(a,J,"direction:px"),C(b,J,"direction:py"));return Ib(a-this.G,b-this.H)};function Ib(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.vA=function(a,b,c,d){F&&(C(a,J,"projectOntoLineSegment:px"),C(b,J,"projectOntoLineSegment:py"),C(c,J,"projectOntoLineSegment:qx"),C(d,J,"projectOntoLineSegment:qy"));K.jj(a,b,c,d,this.G,this.H,this);return this};t.wA=function(a,b){F&&(w(a,J,J,"projectOntoLineSegmentPoint:p"),w(b,J,J,"projectOntoLineSegmentPoint:q"));K.jj(a.x,a.y,b.x,b.y,this.G,this.H,this);return this};
t.HA=function(a,b,c,d){F&&(C(a,J,"snapToGrid:originx"),C(b,J,"snapToGrid:originy"),C(c,J,"snapToGrid:cellwidth"),C(d,J,"snapToGrid:cellheight"));K.rq(this.G,this.H,a,b,c,d,this);return this};t.IA=function(a,b){F&&(w(a,J,J,"snapToGridPoint:p"),w(b,Jb,J,"snapToGridPoint:q"));K.rq(this.G,this.H,a.x,a.y,b.width,b.height,this);return this};t.lj=function(a,b){F&&(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.Fk=function(a,b,c,d,e){F&&(C(a,J,"setSpot:x"),C(b,J,"setSpot:y"),C(c,J,"setSpot:w"),C(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){F&&w(a,Kb,J,"transform:t");a.xa(this);return this};function Lb(a,b){F&&w(b,Kb,J,"transformInverted:t");b.ae(a);return a}
function Mb(a,b,c,d,e,f){F&&(C(a,J,"distanceLineSegmentSquared:px"),C(b,J,"distanceLineSegmentSquared:py"),C(c,J,"distanceLineSegmentSquared:ax"),C(d,J,"distanceLineSegmentSquared:ay"),C(e,J,"distanceLineSegmentSquared:bx"),C(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 Nb(a,b,c,d){F&&(C(a,J,"distanceSquared:px"),C(b,J,"distanceSquared:py"),C(c,J,"distanceSquared:qx"),C(d,J,"distanceSquared:qy"));a=c-a;b=d-b;return a*a+b*b}function Ob(a,b,c,d){F&&(C(a,J,"direction:px"),C(b,J,"direction:py"),C(c,J,"direction:qx"),C(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=Pb.pop();return void 0===a?new J:a};J.allocAt=function(a,b){var c=Pb.pop();if(void 0===c)return new J(a,b);c.x=a;c.y=b;return c};J.free=function(a){Pb.push(a)};
ma.Object.defineProperties(J.prototype,{x:{configurable:!0,get:function(){return this.G},set:function(a){F&&(A(a,"number",J,"x"),this.ha(a));this.G=a}},y:{configurable:!0,get:function(){return this.H},set:function(a){F&&(A(a,"number",J,"y"),this.ha(a));this.H=a}}});J.prototype.isReal=J.prototype.o;J.prototype.setSpot=J.prototype.Fk;J.prototype.setRectSpot=J.prototype.lj;J.prototype.snapToGridPoint=J.prototype.IA;J.prototype.snapToGrid=J.prototype.HA;
J.prototype.projectOntoLineSegmentPoint=J.prototype.wA;J.prototype.projectOntoLineSegment=J.prototype.vA;J.prototype.direction=J.prototype.direction;J.prototype.directionPoint=J.prototype.Xa;J.prototype.normalize=J.prototype.normalize;J.prototype.distanceSquared=J.prototype.ld;J.prototype.distanceSquaredPoint=J.prototype.Je;J.prototype.scale=J.prototype.scale;J.prototype.rotate=J.prototype.rotate;J.prototype.offset=J.prototype.offset;J.prototype.subtract=J.prototype.ee;J.prototype.add=J.prototype.add;
J.prototype.equalsApprox=J.prototype.Sa;J.prototype.equalTo=J.prototype.Xi;J.prototype.equals=J.prototype.B;J.prototype.set=J.prototype.set;J.prototype.setTo=J.prototype.Og;var Qb=null,Rb=null,Sb=null,Tb=null,Vb=null,Pb=[];J.className="Point";J.parse=Eb;J.stringify=Gb;J.distanceLineSegmentSquared=Mb;J.distanceSquared=Nb;J.direction=Ob;J.Origin=Qb=(new J(0,0)).ia();J.InfiniteTopLeft=Rb=(new J(-Infinity,-Infinity)).ia();J.InfiniteBottomRight=Sb=(new J(Infinity,Infinity)).ia();
J.SixPoint=Tb=(new J(6,6)).ia();J.NoPoint=Vb=(new J(NaN,NaN)).ia();J.parse=Eb;J.stringify=Gb;J.distanceLineSegmentSquared=Mb;J.distanceSquared=Nb;J.direction=Ob;function Jb(a,b){void 0===a?this.ca=this.da=0:"number"===typeof a&&(0<=a||isNaN(a))&&"number"===typeof b&&(0<=b||isNaN(b))?(this.da=a,this.ca=b):v("Invalid arguments to Size constructor: "+a+", "+b);this.s=!1}var Wb,Xb,Yb,Zb,$b,ac,bc;Jb.prototype.assign=function(a){this.da=a.da;this.ca=a.ca;return this};
Jb.prototype.h=function(a,b){this.da=a;this.ca=b;return this};Jb.prototype.Og=function(a,b){F&&(A(a,"number",Jb,"setTo:w"),A(b,"number",Jb,"setTo:h"),0>a&&ya(a,">= 0",Jb,"setTo:w"),0>b&&ya(b,">= 0",Jb,"setTo:h"),this.ha());this.da=a;this.ca=b;return this};Jb.prototype.set=function(a){F&&(w(a,Jb,Jb,"set:s"),this.ha());this.da=a.da;this.ca=a.ca;return this};Jb.prototype.copy=function(){var a=new Jb;a.da=this.da;a.ca=this.ca;return a};t=Jb.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this};
t.J=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this};t.ka=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};t.ha=function(a){if(F&&this.s){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}};
function cc(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 Jb(c,e)}return new Jb}function dc(a){F&&w(a,Jb);return a.width.toString()+" "+a.height.toString()}t.toString=function(){return"Size("+this.width+","+this.height+")"};t.B=function(a){return a instanceof Jb?this.da===a.width&&this.ca===a.height:!1};t.Xi=function(a,b){return this.da===a&&this.ca===b};
t.Sa=function(a){return K.C(this.da,a.width)&&K.C(this.ca,a.height)};t.o=function(){return isFinite(this.width)&&isFinite(this.height)};Jb.alloc=function(){var a=fc.pop();return void 0===a?new Jb:a};Jb.free=function(a){fc.push(a)};
ma.Object.defineProperties(Jb.prototype,{width:{configurable:!0,get:function(){return this.da},set:function(a){F&&(A(a,"number",Jb,"width"),this.ha(a));0>a&&ya(a,">= 0",Jb,"width");this.da=a}},height:{configurable:!0,get:function(){return this.ca},set:function(a){F&&(A(a,"number",Jb,"height"),this.ha(a));0>a&&ya(a,">= 0",Jb,"height");this.ca=a}}});Jb.prototype.isReal=Jb.prototype.o;Jb.prototype.equalsApprox=Jb.prototype.Sa;Jb.prototype.equalTo=Jb.prototype.Xi;
Jb.prototype.equals=Jb.prototype.B;Jb.prototype.set=Jb.prototype.set;Jb.prototype.setTo=Jb.prototype.Og;var fc=[];Jb.className="Size";Jb.parse=cc;Jb.stringify=dc;Jb.ZeroSize=Wb=(new Jb(0,0)).ia();Jb.OneSize=Xb=(new Jb(1,1)).ia();Jb.SixSize=Yb=(new Jb(6,6)).ia();Jb.EightSize=Zb=(new Jb(8,8)).ia();Jb.TenSize=$b=(new Jb(10,10)).ia();Jb.InfiniteSize=ac=(new Jb(Infinity,Infinity)).ia();Jb.NoSize=bc=(new Jb(NaN,NaN)).ia();Jb.parse=cc;Jb.stringify=dc;
function L(a,b,c,d){void 0===a?this.ca=this.da=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.da=Math.abs(c-d),this.ca=Math.abs(a-b)):b instanceof Jb?(this.G=c,this.H=a,this.da=b.width,this.ca=b.height):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.da=c,this.ca=d):v("Invalid arguments to Rect constructor: "+
a+", "+b+", "+c+", "+d);this.s=!1}t=L.prototype;t.assign=function(a){this.G=a.G;this.H=a.H;this.da=a.da;this.ca=a.ca;return this};t.h=function(a,b,c,d){this.G=a;this.H=b;this.da=c;this.ca=d;return this};function gc(a,b,c){a.da=b;a.ca=c}t.Og=function(a,b,c,d){F&&(A(a,"number",L,"setTo:x"),A(b,"number",L,"setTo:y"),A(c,"number",L,"setTo:w"),A(d,"number",L,"setTo:h"),0>c&&ya(c,">= 0",L,"setTo:w"),0>d&&ya(d,">= 0",L,"setTo:h"),this.ha());this.G=a;this.H=b;this.da=c;this.ca=d;return this};
t.set=function(a){F&&(w(a,L,L,"set:r"),this.ha());this.G=a.G;this.H=a.H;this.da=a.da;this.ca=a.ca;return this};t.pd=function(a){F&&(w(a,J,L,"setPoint:p"),this.ha());this.G=a.x;this.H=a.y;return this};t.FA=function(a){F&&(w(a,Jb,L,"setSize:s"),this.ha());this.da=a.width;this.ca=a.height;return this};L.prototype.copy=function(){var a=new L;a.G=this.G;a.H=this.H;a.da=this.da;a.ca=this.ca;return a};t=L.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this};
t.J=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this};t.ka=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};t.ha=function(a){if(F&&this.s){var b="The Rect is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}};
function hc(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