// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"esri/geometry/geometryEngine":function(){define("require exports esri/kernel esri/geometry/Geometry esri/geometry/Polygon esri/geometry/Polyline esri/geometry/Point esri/geometry/Extent esri/geometry/Multipoint".split(" "),function(qa,O,T,aa,ha,ka,ca,va,ba){function Y(g){if(void 0===ca.fromJson){if(void 0!==g.x&&void 0!==g.y)return new ca(g);if(void 0!==g.paths)return new ka(g);if(void 0!==g.rings)return new ha(g);if(void 0!==g.points)return new ba(g);if(void 0!==g.xmin&&void 0!==
g.ymin&&void 0!==g.xmax&&void 0!==g.ymax)return new va(g)}else{if(void 0!==g.x&&void 0!==g.y)return ca.fromJson(g);if(void 0!==g.paths)return ka.fromJson(g);if(void 0!==g.rings)return ha.fromJson(g);if(void 0!==g.points)return ba.fromJson(g);if(void 0!==g.xmin&&void 0!==g.ymin&&void 0!==g.xmax&&void 0!==g.ymax)return va.fromJson(g)}}function U(g){if(void 0===ca.fromJson){if(void 0!==g.x&&void 0!==g.y)return new ca(g);if(void 0!==g.paths)return new ka(g);if(void 0!==g.rings)return new ha(g);if(void 0!==
g.points)return new ba(g);if(void 0!==g.xmin&&void 0!==g.ymin&&void 0!==g.xmax&&void 0!==g.ymax)return new va(g)}else{if(void 0!==g.x&&void 0!==g.y)return ca.fromJSON(g);if(void 0!==g.paths)return ka.fromJSON(g);if(void 0!==g.rings)return ha.fromJSON(g);if(void 0!==g.points)return ba.fromJSON(g);if(void 0!==g.xmin&&void 0!==g.ymin&&void 0!==g.xmax&&void 0!==g.ymax)return va.fromJSON(g)}}function Z(g,t){if(null==g||void 0===g||"number"===typeof g)return g;var l=g.toString();if(""===l)return null;if(2==
t){var c=Ia[l];if(void 0!==c)return c}else if(0==t){c=Fa[l];if(void 0!==c)return c;c=Ga[g];if(void 0!==c)return c}else if(3==t&&(c=Fa[l],void 0!==c))return c;if(1==t&&(c=Ga[g],void 0!==c))return c;if(!0===/^\d+$/.test(l))return parseInt(l);throw Error("Unrecognised Unit Type");}function la(g){if(void 0!==g&&null!==g)switch(g){case "loxodrome":return 1;case "great-elliptic":return 2;case "normal-section":return 3;case "shape-preserving":return 4}return 0}function M(g,t){if(null===g||void 0===g||g.B())return null;
switch(g.K()){case y.dj.Point:t=new ca(g.ug(),g.Qg(),t);if(ja){var l=g.hasAttribute(y.Qc.M);g.hasAttribute(y.Qc.Z)&&t.set("z",g.$F());l&&t.set("m",g.JF())}return t;case y.dj.Polygon:l=g.hasAttribute(y.Qc.Z);var c=g.hasAttribute(y.Qc.M),a=I(g,"P",l,c);l=new ha({rings:a,hasZ:l,hasM:c});ja?l.set("spatialReference",t):l.setSpatialReference(t);l.setCacheValue("_geVersion",g);return l;case y.dj.Polyline:return l=g.hasAttribute(y.Qc.Z),c=g.hasAttribute(y.Qc.M),a=I(g,"L",l,c),l=new ka({paths:a,hasZ:l,hasM:c}),
ja?l.set("spatialReference",t):l.setSpatialReference(t),l.setCacheValue("_geVersion",g),l;case y.dj.MultiPoint:l=g.hasAttribute(y.Qc.Z);c=g.hasAttribute(y.Qc.M);var b=a=null;l&&(a=g.lb(y.Qc.Z));c&&(b=g.lb(y.Qc.M));var d=new y.h,e=g.I();t=new ba(t);ja&&(t.set("hasZ",l),t.set("hasM",c));for(var f=0;f<e;f++){g.D(f,d);var h=[d.x,d.y];l&&h.push(a.get(f));c&&h.push(b.get(f));t.addPoint(h)}t.setCacheValue("_geVersion",g);return t;case y.dj.Envelope:return c=g.hasAttribute(y.Qc.Z),l=g.hasAttribute(y.Qc.M),
t=new va(g.T.v,g.T.F,g.T.C,g.T.H,t),ja&&(c&&(c=g.ig(y.Qc.Z,0),t.set("zmin",c.ma),t.set("zmax",c.sa)),l&&(c=g.ig(y.Qc.M,0),t.set("mmin",c.ma),t.set("mmax",c.sa))),t.setCacheValue("_geVersion",g),t}return null}function I(g,t,l,c){t=[];var a=g.ea(),b=null,d=null;l&&(b=g.lb(y.Qc.Z));c&&(d=g.lb(y.Qc.M));for(var e=new y.h,f=0;f<a;f++){for(var h=g.Ca(f),k=g.Ka(f),m=0,n=0,p=NaN,q=NaN,r=NaN,u=NaN,v=g.ec(f),w=[],z=h;z<h+k;z++){g.D(z,e);u=r=NaN;var x=[e.x,e.y];l&&(r=b.get(z),x.push(r));c&&(u=d.get(z),x.push(u));
z==h&&v&&(m=e.x,n=e.y,p=r,q=u);w.push(x)}!v||m==e.x&&n==e.y&&(!l||isNaN(p)&&isNaN(r)||p==r)&&(!c||isNaN(q)&&isNaN(u)||q==u)||w.push(w[0].slice(0));t.push(w)}return t}function L(g){var t=g._geVersion;if(null==t||void 0==t){if(Object.freeze&&Object.isFrozen(g))return 102100===g.wkid?Ja:4326===g.wkid?Ka:t=y.tf.create(g.wkid);-1!=g.wkid&&null!==g.wkid&&void 0!==g.wkid?(t=y.tf.create(g.wkid),g._geVersion=t):""!==g.wkt&&void 0!==g.wkt&&null!==g.wkt&&(t=y.tf.oP(g.wkt),g._geVersion=t)}return t}function N(g){if(null==
g)return null;if(void 0===g.getCacheValue){var t=g._geVersion;if(null==t||void 0==t)t=y.ac.NE(g),g._geVersion=t}else if(t=g.getCacheValue("_geVersion"),null==t||void 0==t)t=y.ac.NE(g),g.setCacheValue("_geVersion",t);return t}function P(g){return null===g.spatialReference?null:L(g.spatialReference)}function ea(g){return"[object Array]"===Object.prototype.toString.call(g)}function F(g){if(null===g||void 0===g||g.B())return null;switch(g.K()){case y.dj.Point:var t={};t.x=g.ug();t.y=g.Qg();if(ja){var l=
g.hasAttribute(y.Qc.M);g.hasAttribute(y.Qc.Z)&&(t.z=g.$F());l&&(t.m=g.JF())}return t;case y.dj.Polygon:return t=g.hasAttribute(y.Qc.Z),l=g.hasAttribute(y.Qc.M),{rings:I(g,"P",t,l),hasZ:t,hasM:l};case y.dj.Polyline:return t=g.hasAttribute(y.Qc.Z),l=g.hasAttribute(y.Qc.M),{paths:I(g,"L",t,l),hasZ:t,hasM:l};case y.dj.MultiPoint:t=g.hasAttribute(y.Qc.Z);l=g.hasAttribute(y.Qc.M);var c=null,a=null;t&&(c=g.lb(y.Qc.Z));l&&(a=g.lb(y.Qc.M));var b=new y.h,d=g.I(),e={points:[]};ja&&(e.hasZ=t,e.hasM=l);for(var f=
0;f<d;f++){g.D(f,b);var h=[b.x,b.y];t&&h.push(c.get(f));l&&h.push(a.get(f));e.points.push(h)}return e;case y.dj.Envelope:return c=g.hasAttribute(y.Qc.Z),t=g.hasAttribute(y.Qc.M),l={},l.xmin=g.T.v,l.ymin=g.T.F,l.xmax=g.T.C,l.ymax=g.T.H,ja&&(c&&(c=g.ig(y.Qc.Z,0),l.zmin=c.ma,l.zmax=c.sa),t&&(c=g.ig(y.Qc.M,0),l.mmin=c.ma,l.mmax=c.sa)),l}return null}var E=this&&this.__extends||function(){function g(t,l){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&
(c[b]=a[b])};return g(t,l)}return function(t,l){function c(){this.constructor=t}g(t,l);t.prototype=null===l?Object.create(l):(c.prototype=l.prototype,new c)}}(),y;(function(g){(function(l){l[l.Unknown=0]="Unknown";l[l.Point=33]="Point";l[l.Line=322]="Line";l[l.Envelope=197]="Envelope";l[l.MultiPoint=550]="MultiPoint";l[l.Polyline=1607]="Polyline";l[l.Polygon=1736]="Polygon"})(g.dj||(g.dj={}));(function(l){l[l.enumMild=0]="enumMild";l[l.enumMedium=1]="enumMedium";l[l.enumHot=2]="enumHot"})(g.TK||(g.TK=
{}));var t=function(){function l(){this.description=null;this.KA=0}l.prototype.K=function(){return 0};l.prototype.Eb=function(){return-1};l.prototype.og=function(c){this.xc();c!=this.description&&this.tn(c)};l.prototype.tn=function(){};l.prototype.Kl=function(c){this.xc();c!=this.description&&(c=g.ge.xR(this.description,c),c!=this.description&&this.tn(c))};l.prototype.hasAttribute=function(c){return this.description.hasAttribute(c)};l.prototype.ue=function(c){this.xc();this.description.hasAttribute(c)||
(c=g.ge.wR(this.description,c),this.tn(c))};l.prototype.ig=function(){return null};l.prototype.dn=function(){};l.prototype.A=function(){};l.prototype.Ro=function(){};l.prototype.zc=function(c){this.A(c)};l.prototype.B=function(){return!0};l.prototype.Pa=function(){};l.prototype.Rc=function(){};l.prototype.Ja=function(){return null};l.prototype.copyTo=function(){};l.prototype.Je=function(){return 0};l.prototype.Rb=function(){return 0};l.prototype.dG=function(){return this.hasAttribute(1)};l.prototype.cS=
function(){return this.hasAttribute(2)};l.xf=function(c){return((c&192)>>6)+1>>1};l.Sn=function(c){return 0!=(c&32)};l.NS=function(c){return 0!=(c&128)};l.Ad=function(c){return 0!=(c&256)};l.xj=function(c){return 0!=(c&512)};l.Jc=function(c){return 0!=(c&1024)};l.prototype.Sf=function(){var c=this.Ja();this.copyTo(c);return c};l.prototype.qg=function(){return null};l.mg=function(c){var a=c.Ja();c.copyTo(a);return a};l.prototype.xc=function(){0<=this.KA&&(this.KA+=2147483649)};l.ux=function(c){var a=
c.K();if(l.xj(a))return c.I();if(c.B())return 0;if(197==a)return 4;if(33==a)return 1;if(l.Ad(a))return 2;throw g.i.ga("missing type");};return l}();g.ba=t})(y||(y={}));(function(g){var t=function(){function l(){this.y=this.x=0}l.construct=function(c,a){var b=new l;b.x=c;b.y=a;return b};l.al=function(c){var a=new l;a.x=c.x;a.y=c.y;return a};l.prototype.oa=function(c,a){this.x=c;this.y=a};l.prototype.N=function(c){this.x=c.x;this.y=c.y};l.prototype.hq=function(c,a){return this.x===c&&this.y===a};l.prototype.Hz=
function(c){return 2.220446049250313E-16>=Math.abs(this.x-c.x)&&2.220446049250313E-16>=Math.abs(this.y-c.y)};l.prototype.sb=function(c){return this.x===c.x&&this.y===c.y};l.prototype.Nb=function(c){return c==this?!0:c instanceof l?this.x==c.x&&this.y==c.y:!1};l.prototype.sub=function(c){this.x-=c.x;this.y-=c.y};l.prototype.wc=function(c,a){this.x=c.x-a.x;this.y=c.y-a.y};l.prototype.add=function(c,a){void 0!==a?(this.x=c.x+a.x,this.y=c.y+a.y):(this.x+=c.x,this.y+=c.y)};l.prototype.Uq=function(){this.x=
-this.x;this.y=-this.y};l.prototype.it=function(c){this.x=-c.x;this.y=-c.y};l.prototype.HS=function(c,a,b){this.x=c.x*(1-b)+a.x*b;this.y=c.y*(1-b)+a.y*b};l.prototype.yt=function(c,a){this.x=this.x*c+a.x;this.y=this.y*c+a.y};l.prototype.zW=function(c,a,b){this.x=a.x*c+b.x;this.y=a.y*c+b.y};l.prototype.scale=function(c){this.x*=c;this.y*=c};l.prototype.compare=function(c){return this.y<c.y?-1:this.y>c.y?1:this.x<c.x?-1:this.x>c.x?1:0};l.prototype.normalize=function(){var c=this.length();0==c&&(this.x=
1,this.y=0);this.x/=c;this.y/=c};l.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};l.prototype.Rk=function(){return this.x*this.x+this.y*this.y};l.vb=function(c,a){return Math.sqrt(this.Ac(c,a))};l.Ey=function(c,a,b,d){c-=b;a-=d;return Math.sqrt(c*c+a*a)};l.prototype.Qh=function(c){return this.x*c.x+this.y*c.y};l.prototype.VC=function(c){return Math.abs(this.x*c.x)+Math.abs(this.y*c.y)};l.prototype.wi=function(c){return this.x*c.y-this.y*c.x};l.prototype.xt=function(c,a){var b=
-this.x*a+this.y*c;this.x=this.x*c+this.y*a;this.y=b};l.prototype.Ev=function(){var c=this.x;this.x=-this.y;this.y=c};l.prototype.HG=function(c){this.x=-c.y;this.y=c.x};l.prototype.cr=function(){var c=this.x;this.x=this.y;this.y=-c};l.prototype.nu=function(){return 0<this.x?0<=this.y?1:4:0<this.y?2:0==this.x?4:3};l.ku=function(c,a){var b=c.nu(),d=a.nu();return d==b?(c=c.wi(a),0>c?1:0<c?-1:0):b<d?-1:1};l.Ac=function(c,a){var b=c.x-a.x;c=c.y-a.y;return b*b+c*c};l.prototype.toString=function(){return"("+
this.x+" , "+this.y+")"};l.prototype.Uc=function(){this.y=this.x=NaN};l.prototype.isNaN=function(){return isNaN(this.x)||isNaN(this.y)};l.prototype.offset=function(c,a){var b=l.vb(c,a),d=l.construct(this.x,this.y);if(0==b)return l.vb(d,c);var e=new l;e.N(a);e.sub(c);d.sub(c);return d.wi(e)/b};l.Wq=function(c,a,b){var d=new g.Xb;d.set(a.x);d.sub(c.x);var e=new g.Xb;e.set(b.y);e.sub(c.y);var f=new g.Xb;f.set(a.y);f.sub(c.y);var h=new g.Xb;h.set(b.x);h.sub(c.x);d.Fg(e);f.Fg(h);d.sub(f);if(!d.ms())return b=
d.value(),0>b?-1:0<b?1:0;d=new g.ip(a.x);e=new g.ip(c.x);f=new g.ip(c.y);d=d.ft(e);c=new g.ip(b.y);c=c.ft(f);a=new g.ip(a.y);a=a.ft(f);b=new g.ip(b.x);b=b.ft(e);d=d.nr(c);a=a.nr(b);d=d.nr(a);return d.gT()?-1:d.ZR()?1:0};l.prototype.dc=function(){return g.P.uj(g.P.uj())};return l}();g.h=t})(y||(y={}));(function(g){var t=function(){function l(c){this.uy=this.Jt=0;this.FX=c}l.prototype.reset=function(){this.uy=this.Jt=0};l.prototype.add=function(c){c-=this.uy;var a=this.Jt+c;this.uy=a-this.Jt-c;this.Jt=
a};l.prototype.sub=function(c){this.add(-c)};l.prototype.tm=function(){return this.FX+this.Jt};return l}();g.yx=t;g.oc=function(){function l(){}l.Cn=function(c,a){return 0<=a?Math.abs(c):-Math.abs(c)};l.sign=function(c){return 0>c?-1:0<c?1:0};l.MK=function(c){return c-360*Math.floor(c/360)};l.round=function(c){return Math.floor(c+.5)};l.jx=function(c){return c*c};l.jq=function(c,a,b){return.5>=b?c+(a-c)*b:a-(a-c)*(1-b)};l.JG=function(c,a,b,d){.5>=b?(d.x=c.x+(a.x-c.x)*b,d.y=c.y+(a.y-c.y)*b):(d.x=a.x-
(a.x-c.x)*(1-b),d.y=a.y-(a.y-c.y)*(1-b))};l.eT=function(c,a,b,d,e,f){.5>=e?(f.x=c+(b-c)*e,f.y=a+(d-a)*e):(f.x=b-(b-c)*(1-e),f.y=d-(d-a)*(1-e))};return l}()})(y||(y={}));(function(g){var t=function(l){function c(){var a=l.call(this)||this;a.ta=0;a.pa=0;a.qa=0;a.na=0;a.la=null;return a}E(c,l);c.prototype.bc=function(){return g.h.construct(this.ta,this.pa)};c.prototype.$p=function(a){a.x=this.ta;a.y=this.pa};c.prototype.Fc=function(a){this.gm(0,a)};c.prototype.NB=function(a,b){this.gm(0,g.h.construct(a,
b))};c.prototype.Uo=function(a){this.XC(0,a)};c.prototype.setStart=function(a){this.kD(0,a)};c.prototype.tv=function(a,b){return this.Qd(0,a,b)};c.prototype.MB=function(a,b,d){this.un(0,a,b,d)};c.prototype.yc=function(){return g.h.construct(this.qa,this.na)};c.prototype.Ur=function(a){a.x=this.qa;a.y=this.na};c.prototype.Tc=function(a){this.gm(1,a)};c.prototype.Rl=function(a,b){this.gm(1,g.h.construct(a,b))};c.prototype.Qo=function(a){this.XC(1,a)};c.prototype.setEnd=function(a){this.kD(1,a)};c.prototype.dv=
function(a,b){return this.Qd(1,a,b)};c.prototype.DB=function(a,b,d){this.un(1,a,b,d)};c.prototype.Eb=function(){return 1};c.prototype.B=function(){return this.Cc()};c.prototype.Pa=function(){};c.prototype.Je=function(){return 0};c.prototype.Fa=function(a,b,d,e,f){return this.HM(a,b,d,e,f)};c.prototype.isIntersecting=function(a,b){return 0!=this.Br(a,b,!1)};c.prototype.ns=function(a,b){return this.ou(a,b,!1)};c.prototype.ou=function(){return null};c.prototype.Cc=function(){return!1};c.prototype.Ux=
function(a){this.xc();if(null==this.la&&0<a)this.la=g.P.pg(2*a);else if(null!=this.la&&this.la.length<2*a){for(var b=this.la.slice(0),d=this.la.length;d<2*a;d++)b[d]=0;this.la=b}};c.bM=function(a,b,d){if(0<d)var e=0;for(var f=0;f<d;f++)b[0+e]=a[0],e++};c.prototype.gm=function(a,b){0!=a?(this.qa=b.x,this.na=b.y):(this.ta=b.x,this.pa=b.y)};c.prototype.tn=function(a){if(null!=this.la){for(var b=g.ge.Fw(a,this.description),d=[],e=c.Mg(this.description,0),f=c.Mg(this.description,1),h=c.Mg(a,0),k=c.Mg(a,
1),m=0,n=1,p=a.Ba;n<p;n++){var q=a.rd(n),r=g.va.Wa(q);if(-1==b[n]){var u=g.va.ve(q);for(q=0;q<r;q++)d[h+m]=u,d[k+m]=u,m++}else for(u=this.description.Zj(b[n])-2,q=0;q<r;q++)d[h+m]=this.la[e+u],d[k+m]=this.la[f+u],m++,u++}this.la=d}this.description=a};c.prototype.XC=function(a,b){if(this.Cc())throw g.i.ga("empty geometry");b.og(this.description);b.Cc()&&b.up();for(var d=0;d<this.description.Ba;d++)for(var e=this.description.Gd(d),f=0,h=g.va.Wa(e);f<h;f++){var k=this.Qd(a,e,f);b.setAttribute(e,f,k)}};
c.prototype.kD=function(a,b){this.xc();if(b.Cc())throw g.i.ga("empty geometry");for(var d=b.description,e=0,f=d.Ba;e<f;e++)for(var h=d.Gd(e),k=g.va.Wa(h),m=0;m<k;m++){var n=b.Wc(h,m);this.un(a,h,m,n)}};c.prototype.Qd=function(a,b,d){if(this.Cc())throw g.i.ga("This operation was performed on an Empty Geometry.");if(0==b)return 0!=a?0!=d?this.na:this.qa:0!=d?this.pa:this.ta;if(d>=g.va.Wa(b))throw g.i.te();var e=this.description.Tf(b);return 0<=e?(null!=this.la&&this.Ux(this.description.De.length-2),
this.la[c.Mg(this.description,a)+this.description.Zj(e)-2+d]):g.va.ve(b)};c.prototype.un=function(a,b,d,e){this.xc();if(d>=g.va.Wa(b))throw g.i.te();var f=this.description.Tf(b);0>f&&(this.ue(b),f=this.description.Tf(b));0==b?0!=a?0!=d?this.na=e:this.qa=e:0!=d?this.pa=e:this.ta=e:(null==this.la&&this.Ux(this.description.De.length-2),this.la[c.Mg(this.description,a)+this.description.Zj(f)-2+d]=e)};c.prototype.copyTo=function(a){if(a.K()!=this.K())throw g.i.O();a.description=this.description;a.Ux(this.description.De.length-
2);c.bM(this.la,a.la,2*(this.description.De.length-2));a.ta=this.ta;a.pa=this.pa;a.qa=this.qa;a.na=this.na;a.xc();this.pp(a)};c.prototype.ig=function(a,b){var d=new g.Pc;if(this.Cc())return d.Pa(),d;d.ma=this.Qd(0,a,b);d.sa=d.ma;d.Kk(this.Qd(1,a,b));return d};c.prototype.UI=function(a){this.Cc()?a.Pa():(a.ma=this.Qd(0,0,0),a.sa=a.ma,a.Kk(this.Qd(1,0,0)))};c.prototype.Qw=function(a,b){b.og(this.description);b.Db(this.jc(a));for(var d=1,e=this.description.Ba;d<e;d++)for(var f=this.description.Gd(d),
h=g.va.Wa(f),k=0;k<h;k++){var m=this.Wc(a,f,k);b.setAttribute(f,k,m)}};c.prototype.CM=function(a){if(this.description!=a.description||this.ta!=a.ta||this.qa!=a.qa||this.pa!=a.pa||this.na!=a.na)return!1;for(var b=0;b<2*(this.description.De.length-2);b++)if(this.la[b]!=a.la[b])return!1;return!0};c.prototype.wG=function(){return this.ta==this.qa&&this.pa==this.na};c.prototype.reverse=function(){var a=this.ta;this.ta=this.qa;this.qa=a;a=this.pa;this.pa=this.na;this.na=a;a=1;for(var b=this.description.Ba;a<
b;a++)for(var d=this.description.rd(a),e=0,f=g.va.Wa(d);e<f;e++){var h=this.Qd(0,d,e),k=this.Qd(1,d,e);this.un(0,d,e,k);this.un(1,d,e,h)}};c.prototype.Br=function(a,b,d){var e=a.K();switch(this.K()){case 322:if(322==e)return g.zb.MM(this,a,b,d);throw g.i.Ra();default:throw g.i.Ra();}};c.prototype.HM=function(a,b,d,e,f){var h=a.K();switch(this.K()){case 322:if(322==h)return g.zb.Sx(this,a,b,d,e,f);throw g.i.Ra();default:throw g.i.Ra();}};c.prototype.Mx=function(){return null};c.Mg=function(a,b){return b*
(a.De.length-2)};c.prototype.jc=function(a,b){if(void 0===b)return b=new g.h,this.jc(a,b),b;g.oc.eT(this.ta,this.pa,this.qa,this.na,a,b)};c.prototype.he=function(){return null};c.prototype.ZF=function(){return null};c.prototype.fq=function(){return null};c.prototype.Bi=function(){return null};c.prototype.Qn=function(){return null};c.prototype.ng=function(){return null};c.prototype.Nx=function(a,b){return void 0!==b?this.px(b)-this.px(a):this.px(a)};c.prototype.pp=function(){};c.prototype.dl=function(){return null};
c.prototype.eh=function(){};c.prototype.Wc=function(){return null};c.prototype.Oe=function(){return null};c.prototype.px=function(){return null};c.prototype.IG=function(){return null};c.prototype.vb=function(a,b){if(!b&&0!=this.Br(a,0,!1))return 0;b=1.7976931348623157E308;var d=this.bc(),e=a.he(d,!1);d.sub(a.jc(e));d=d.length();d<b&&(b=d);d=this.yc();e=a.he(d,!1);d.sub(a.jc(e));d=d.length();d<b&&(b=d);d=a.bc();e=this.he(d,!1);d.sub(this.jc(e));d=d.length();d<b&&(b=d);d=a.yc();e=this.he(d,!1);d.sub(this.jc(e));
d=d.length();d<b&&(b=d);return b};c.prototype.qg=function(){return g.pi.im(this,null)};return c}(g.ba);g.FC=t})(y||(y={}));new y.h;(function(g){(function(l){l[l.Unknown=-1]="Unknown";l[l.Not=0]="Not";l[l.Weak=1]="Weak";l[l.Strong=2]="Strong"})(g.VK||(g.VK={}));(function(l){l[l.DirtyIsKnownSimple=1]="DirtyIsKnownSimple";l[l.IsWeakSimple=2]="IsWeakSimple";l[l.IsStrongSimple=4]="IsStrongSimple";l[l.DirtyOGCFlags=8]="DirtyOGCFlags";l[l.DirtyVerifiedStreams=32]="DirtyVerifiedStreams";l[l.DirtyExactIntervals=
64]="DirtyExactIntervals";l[l.DirtyLooseIntervals=128]="DirtyLooseIntervals";l[l.DirtyIntervals=192]="DirtyIntervals";l[l.DirtyIsEnvelope=256]="DirtyIsEnvelope";l[l.DirtyLength2D=512]="DirtyLength2D";l[l.DirtyRingAreas2D=1024]="DirtyRingAreas2D";l[l.DirtyCoordinates=1993]="DirtyCoordinates";l[l.DirtyAllInternal=65535]="DirtyAllInternal";l[l.DirtyAll=16777215]="DirtyAll"})(g.HK||(g.HK={}));var t=function(l){function c(){var a=l.call(this)||this;a.Jm=65535;a.xa=0;a.Ug=-1;a.Cb=null;return a}E(c,l);c.prototype.pp=
function(){};c.prototype.Tx=function(){};c.prototype.Zx=function(){};c.prototype.I=function(){return this.xa};c.prototype.B=function(){return this.Cc()};c.prototype.Cc=function(){return 0==this.xa};c.prototype.$j=function(a){return 0!=(this.Jm&a)};c.prototype.Qf=function(a,b){this.Jm=b?this.Jm|a:this.Jm&~a};c.prototype.sc=function(){this.$j(32)&&this.aN()};c.prototype.qx=function(){if(this.Cc())throw g.i.ga("This operation was performed on an Empty Geometry.");};c.prototype.ye=function(a,b){if(0>
a||a>=this.xa)throw g.i.ga("index out of bounds");this.sc();b.og(this.description);b.B()&&b.up();for(var d=0;d<this.description.Ba;d++)for(var e=this.description.Gd(d),f=0,h=g.va.Wa(e);f<h;f++){var k=this.Aa[d].Gg(h*a+f);b.setAttribute(e,f,k)}};c.prototype.Dt=function(a,b){this.sc();for(var d=b.description,e=0;e<d.Ba;e++)for(var f=d.Gd(e),h=g.va.Wa(f),k=0;k<h;k++){var m=b.Wc(f,k);this.setAttribute(f,a,k,m)}};c.prototype.D=function(a,b){if(0>a||a>=this.I())throw g.i.te();this.sc();this.Aa[0].vc(2*
a,b)};c.prototype.Oa=function(a){var b=new g.h;this.D(a,b);return b};c.prototype.Ic=function(a,b){this.Aa[0].vc(2*a,b)};c.prototype.Db=function(a,b,d){if(0>a||a>=this.xa)throw g.i.te();this.sc();var e=this.Aa[0];void 0!==d?(e.write(2*a,b),e.write(2*a+1,d)):e.Qt(2*a,b);this.Sc(1993)};c.prototype.rz=function(){if(void 0>=this.I())throw g.i.te();this.sc();var a=this.Aa[0],b=new g.Pd;b.x=a.read(NaN);b.y=a.read(NaN);b.z=this.hasAttribute(1)?this.Aa[1].Gg(void 0):g.va.ve(1);return b};c.prototype.SB=function(a){if(0>
a||a>=this.I())throw g.i.te();this.ue(1);this.sc();this.Sc(1993);var b=this.Aa[0];b.write(2*a,(void 0).x);b.write(2*a+1,(void 0).y);this.Aa[1].rr(a,(void 0).z)};c.prototype.Wc=function(a,b,d){if(0>b||b>=this.xa)throw g.i.te();var e=g.va.Wa(a);if(d>=e)throw g.i.te();this.sc();var f=this.description.Tf(a);return 0<=f?this.Aa[f].Gg(b*e+d):g.va.ve(a)};c.prototype.rF=function(a,b){return this.Wc(a,b,void 0)};c.prototype.setAttribute=function(a,b,d,e){if(0>b||b>=this.xa)throw g.i.te();var f=g.va.Wa(a);
if(d>=f)throw g.i.te();this.ue(a);this.sc();a=this.description.Tf(a);this.Sc(1993);this.Aa[a].rr(b*f+d,e)};c.prototype.lb=function(a){this.qx();this.ue(a);this.sc();return this.Aa[this.description.Tf(a)]};c.prototype.kn=function(a,b){if(null!=b&&g.va.Vp(a)!=b.Vp())throw g.i.O();this.ue(a);a=this.description.Tf(a);null==this.Aa&&(this.Aa=g.$c.lI(this.description.Ba));this.Aa[a]=b;this.Sc(16777215)};c.prototype.tn=function(a){var b=null;if(null!=this.Aa){var d=g.ge.Fw(a,this.description);b=[];for(var e=
0,f=a.Ba;e<f;e++)-1!=d[e]&&(b[e]=this.Aa[d[e]])}this.description=a;this.Aa=b;this.Ug=-1;this.Sc(16777215)};c.prototype.qD=function(a){this.tu(!0);a instanceof g.l?this.T.A(a):this.T.Ro(a)};c.prototype.$M=function(a){this.tu(!1);a instanceof g.l?this.T.A(a):this.T.Ro(a)};c.prototype.dn=function(a){this.tu(!0);this.T.copyTo(a)};c.prototype.A=function(a){this.qD(a)};c.prototype.Ro=function(a){this.qD(a)};c.prototype.zc=function(a){this.$M(a)};c.prototype.ig=function(a,b){var d=new g.Pc;if(this.Cc())return d.Pa(),
d;this.tu(!0);return this.T.ig(a,b)};c.prototype.dc=function(){var a=this.description.dc();if(!this.Cc())for(var b=this.I(),d=0,e=this.description.Ba;d<e;d++)a=this.Aa[d].An(a,0,b*g.va.Wa(this.description.Gd(d)));return a};c.prototype.Nb=function(a){if(a==this)return!0;if(!(a instanceof c&&this.description.Nb(a.description))||this.Cc()!=a.Cc())return!1;if(this.Cc())return!0;var b=this.I();if(b!=a.I())return!1;for(var d=0;d<this.description.Ba;d++){var e=this.description.rd(d),f=this.lb(e),h=a.lb(e);
if(!f.Nb(h,0,b*g.va.Wa(e)))return!1}return!0};c.prototype.copyTo=function(a){if(a.K()!=this.K())throw g.i.O();this.TC(a)};c.prototype.TC=function(a){this.sc();a.description=this.description;a.Aa=null;var b=this.description.Ba,d=null;if(null!=this.Aa){d=[];for(var e=0;e<b;e++)null!=this.Aa[e]&&(d[e]=this.Aa[e].vB(this.I()*g.va.Wa(this.description.Gd(e))))}null!=this.T?(a.T=this.T.Ja(),this.T.copyTo(a.T)):a.T=null;a.xa=this.xa;a.Jm=this.Jm;a.Aa=d;try{this.pp(a)}catch(f){throw a.Pa(),g.i.cu();}};c.prototype.mD=
function(){this.xa=0;this.Ug=-1;this.Aa=null;this.Sc(16777215)};c.prototype.Sc=function(a){16777215==a&&(this.Ug=-1,this.Tx());this.Jm|=a;this.gM();this.xc()};c.prototype.tu=function(a){this.sc();if(this.$j(192))if(null==this.T?this.T=new g.Gh(this.description):this.T.og(this.description),this.B())this.T.Pa();else{this.Yx(a);for(var b=1;b<this.description.Ba;b++)for(var d=this.description.Gd(b),e=g.va.Wa(d),f=this.Aa[b],h=0;h<e;h++){var k=new g.Pc;k.Pa();for(var m=0;m<this.xa;m++){var n=f.Gg(m*e+
h);k.$b(n)}this.T.setInterval(d,h,k)}a&&this.Qf(192,!1)}};c.prototype.Yx=function(){this.T.Pa();for(var a=this.Aa[0],b=new g.h,d=0;d<this.xa;d++)a.vc(2*d,b),this.T.$b(b)};c.prototype.Ap=function(a){a.Pa();for(var b=this.Aa[0],d=new g.h,e=0;e<this.xa;e++)b.vc(2*e,d),a.$b(d)};c.prototype.aN=function(){if(this.Ug<this.xa){null==this.Aa&&(this.Aa=g.$c.lI(this.description.Ba));this.Ug=2147483647;for(var a=0;a<this.description.Ba;a++){var b=this.description.Gd(a);if(null!=this.Aa[a]){var d=g.va.Wa(b),e=
g.P.truncate(this.Aa[a].size/d);e<this.xa&&(e=g.P.truncate(this.Ug>this.xa+5?(5*this.xa+3)/4:this.xa),this.Aa[a].resize(e*d,g.va.ve(b)));e<this.Ug&&(this.Ug=e)}else this.Aa[a]=g.$c.PE(b,this.xa),this.Ug=this.xa}}this.Zx();this.Qf(32,!1)};c.prototype.fm=function(a){if(0>a)throw g.i.O();a!=this.xa&&(this.xa=a,this.Sc(65535))};c.prototype.qm=function(a){if(!this.$j(1)){if(!this.$j(2))return 0;if(this.JT>=a)return this.$j(8)?1:2}return-1};c.prototype.Dh=function(a,b){this.JT=b;if(-1==a)this.Qf(1,!0),
this.Qf(8,!0);else if(this.Qf(1,!1),this.Qf(8,!0),0==a)this.Qf(2,!1),this.Qf(4,!1);else if(1==a)this.Qf(2,!0),this.Qf(4,!1);else if(2==a)this.Qf(2,!0),this.Qf(4,!0);else throw g.i.ga("internal error.");};c.prototype.gM=function(){null!=this.Cb&&(this.Cb=null)};c.prototype.$C=function(a,b,d,e){if(0>a||a>=this.xa)throw g.i.ga("index out of bounds");if(0>b||b>=this.xa)throw g.i.ga("index out of bounds");this.sc();e.og(this.description);e.B()&&e.up();for(var f=0;f<this.description.Ba;f++)for(var h=this.description.Gd(f),
k=0,m=g.va.Wa(h);k<m;k++){var n=this.Aa[f].Gg(m*a+k),p=this.Aa[f].Gg(m*b+k);e.setAttribute(h,k,g.oc.jq(n,p,d))}};c.prototype.Ar=function(a,b){var d=this.Aa[0].o,e=d[2*a]-d[2*b];a=d[2*a+1]-d[2*b+1];return Math.sqrt(e*e+a*a)};c.prototype.Eh=function(a,b){if(0>a||a>=this.xa)throw g.i.te();if(b.B())throw g.i.O();this.sc();for(var d=b.description,e=0;e<d.Ba;e++)for(var f=d.rd(e),h=g.va.Wa(f),k=0;k<h;k++){var m=b.Wc(f,k);this.setAttribute(f,a,k,m)}};c.prototype.iu=function(){return null};c.prototype.gj=
function(){return null};return c}(g.ba);g.zx=t})(y||(y={}));(function(g){var t=function(){function l(){this.pb=this.$n=null;this.Vm=124234251;this.Ov=!0;this.Pe=-1;this.pb=new g.bd(7);this.$n=null}l.prototype.Wo=function(c){this.$n=c};l.prototype.PP=function(){this.Ov=!1};l.prototype.Ge=function(c){this.pb.Ge(c)};l.prototype.Qr=function(c){var a=this.pb.Fe();this.iX(a);this.lX(c,a);return a};l.prototype.KP=function(c){this.pb.ld(c)};l.prototype.addElement=function(c,a){-1==a&&(-1==this.Pe&&(this.Pe=
this.Qr(-1)),a=this.Pe);return this.vD(c,0,a)};l.prototype.zD=function(c){-1==this.Pe&&(this.Pe=this.Qr(-1));return this.vD(c,1,this.Pe)};l.prototype.xn=function(c){-1==this.Pe&&(this.Pe=this.Qr(-1));var a=this.Pe,b=this.pb.o;if(-1==a||-1==b[7*a])return c=this.pb.Ml([-1,-1,-1,c,this.hl(),-1,-1]),b=this.pb.o,b[7*a]=c,this.xp(-1,c,a,b),c;var d=-1==a?-1:b[7*a+2];c=this.pb.Ml([-1,-1,d,c,this.hl(),-1,-1]);b=this.pb.o;b[7*d+1]=c;this.ey(c,b);-1===b[7*c+2]&&(b[7*a]=c);this.xp(-1,c,a,b);return c};l.prototype.wu=
function(c,a,b,d){var e=-1;-1==e&&(-1==this.Pe&&(this.Pe=this.Qr(-1)),e=this.Pe);var f=this.pb.o;if(-1==e||-1==f[7*e])return b=this.pb.Ml([-1,-1,-1,b,this.hl(),-1,-1]),f=this.pb.o,f[7*e]=b,this.xp(-1,b,e,f),b;if(d){d=-1!=a?this.$n.compare(this,b,a):-1;var h=-1!=c?this.$n.compare(this,b,c):1}else d=-1,h=1;if(0==d||0==h)return f[7*e+3]=0==d?a:c,-1;(-1!=a&&-1!=c?this.Vm>g.P.RA(this.Vm)>>1:-1!=a)?c=a:d=h;for(a=!0;;){if(0>d)if(h=f[7*c],-1!=h)c=h;else{d=c;b=this.pb.Ml([-1,-1,c,b,this.hl(),-1,-1]);f=this.pb.o;
f[7*c]=b;break}else if(h=f[7*c+1],-1!=h)c=h;else{d=f[7*c+6];b=this.pb.Ml([-1,-1,c,b,this.hl(),-1,-1]);f=this.pb.o;f[7*c+1]=b;break}a&&(d*=-1,a=!1)}this.ey(b,f);-1===f[7*b+2]&&(f[7*e]=b);this.xp(d,b,e,f);return b};l.prototype.yF=function(){return this.eR(this.Pe)};l.prototype.xd=function(c,a){a=-1==a?this.Pe:a;this.Ov?this.JP(c,a):this.$X(c,a)};l.prototype.search=function(c,a){for(a=this.pv(a);-1!=a;){var b=this.$n.compare(this,c,a);if(0==b)return a;a=0>b?this.ml(a):this.Zp(a)}return-1};l.prototype.AW=
function(c){for(var a=this.pv(-1),b=-1;-1!=a;){var d=c.compare(this,a);if(0==d)return a;0>d?a=this.ml(a):(b=a,a=this.Zp(a))}return b};l.prototype.pJ=function(c){for(var a=this.pv(-1),b=-1;-1!=a;){var d=c.compare(this,a);if(0==d)return a;0>d?(b=a,a=this.ml(a)):a=this.Zp(a)}return b};l.prototype.ka=function(c){return this.pb.V(c,3)};l.prototype.ml=function(c){return this.pb.V(c,0)};l.prototype.Zp=function(c){return this.pb.V(c,1)};l.prototype.getParent=function(c){return this.pb.V(c,2)};l.prototype.mb=
function(c){return this.pb.V(c,6)};l.prototype.ze=function(c){return this.pb.V(c,5)};l.prototype.tc=function(c){return-1==c?this.ll(this.Pe):this.ll(c)};l.prototype.Hc=function(c){return-1==c?this.$r(this.Pe):this.$r(c)};l.prototype.TR=function(c){return-1==c?this.WF(this.Pe):this.WF(c)};l.prototype.Sj=function(c,a){this.CB(c,a)};l.prototype.pv=function(c){return-1==c?this.SF(this.Pe):this.SF(c)};l.prototype.clear=function(){this.pb.mj(!1);this.Pe=-1};l.prototype.size=function(c){return-1==c?this.UF(this.Pe):
this.UF(c)};l.prototype.JN=function(c,a){for(var b=a[7*c],d=a[7*c+1],e=a[7*c+4];-1!=b||-1!=d;){var f=-1!=b?a[7*b+4]:2147483647;d=-1!=d?a[7*d+4]:2147483647;if(e<=Math.min(f,d))break;f<=d?this.nJ(b,a):this.mJ(c,a);b=a[7*c];d=a[7*c+1]}};l.prototype.ey=function(c,a){if(this.Ov)for(var b=a[7*c+4],d=a[7*c+2];-1!=d&&a[7*d+4]>b;)a[7*d]==c?this.nJ(c,a):this.mJ(d,a),d=a[7*c+2]};l.prototype.mJ=function(c,a){var b=a[7*c+1];a[7*b+2]=a[7*c+2];a[7*c+2]=b;var d=a[7*b];a[7*c+1]=d;-1!=d&&(a[7*d+2]=c);a[7*b]=c;d=a[7*
b+2];-1!=d&&(a[7*d]==c?a[7*d]=b:a[7*d+1]=b)};l.prototype.nJ=function(c,a){var b=a[7*c+2];a[7*c+2]=a[7*b+2];a[7*b+2]=c;var d=a[7*c+1];a[7*b]=d;-1!=d&&(a[7*d+2]=b);a[7*c+1]=b;d=a[7*c+2];-1!=d&&(a[7*d]===b?a[7*d]=c:a[7*d+1]=c)};l.prototype.Ok=function(c,a){this.pb.U(c,2,a)};l.prototype.HB=function(c,a){this.pb.U(c,0,a)};l.prototype.LB=function(c,a){this.pb.U(c,1,a)};l.prototype.KB=function(c,a){this.pb.U(c,5,a)};l.prototype.ax=function(c,a){this.pb.U(c,6,a)};l.prototype.SJ=function(c,a){this.pb.U(a,
0,c)};l.prototype.iX=function(c){this.pb.U(c,4,0)};l.prototype.lX=function(c,a){this.pb.U(a,5,c)};l.prototype.SF=function(c){return-1==c?-1:this.pb.V(c,0)};l.prototype.ll=function(c){return-1==c?-1:this.pb.V(c,1)};l.prototype.$r=function(c){return-1==c?-1:this.pb.V(c,2)};l.prototype.eR=function(c){return-1==c?-1:this.pb.V(c,3)};l.prototype.UF=function(c){return-1==c?0:this.pb.V(c,4)};l.prototype.WF=function(c){return this.pb.V(c,5)};l.prototype.Mw=function(){return this.pb.Ml([-1,-1,-1,void 0,this.hl(),
-1,-1])};l.prototype.gl=function(c){-1!=c&&this.pb.ld(c)};l.prototype.hl=function(){this.Vm=g.P.RA(this.Vm);return this.Vm&1073741823};l.prototype.vD=function(c,a,b){var d=this.pb.o;if(-1==b||-1==d[7*b])return c=this.pb.Ml([-1,-1,-1,c,this.hl(),-1,-1]),d=this.pb.o,d[7*b]=c,this.xp(-1,c,b,d),c;for(var e=-1==b?-1:d[7*b];;){var f=-1==a?1:this.$n.compare(this,c,e);if(0>f)if(f=this.ml(e),-1!=f)e=f;else{a=e;c=this.pb.Ml([-1,-1,e,c,this.hl(),-1,-1]);d=this.pb.o;d[7*e]=c;break}else{if(1==a&&0==f)return d[7*
b+3]=e,-1;f=d[7*e+1];if(-1!=f)e=f;else{a=d[7*e+6];c=this.pb.Ml([-1,-1,e,c,this.hl(),-1,-1]);d=this.pb.o;d[7*e+1]=c;break}}}this.ey(c,d);-1===d[7*c+2]&&(d[7*b]=c);this.xp(a,c,b,d);return c};l.prototype.xp=function(c,a,b,d){if(-1!=c){var e=d[7*c+5];d[7*c+5]=a}else e=-1==b?-1:d[7*b+2];d[7*a+5]=e;-1!=e&&(d[7*e+6]=a);d[7*a+6]=c;c==(-1==b?-1:d[7*b+1])&&(d[7*b+1]=a);-1==c&&(d[7*b+2]=a);d[7*b+4]=(-1==b?0:d[7*b+4])+1};l.prototype.pB=function(c,a){var b=this.pb.o,d=b[7*c+5];c=b[7*c+6];-1!=d?b[7*d+6]=c:b[7*
a+1]=c;-1!=c?b[7*c+5]=d:b[7*a+2]=d;b[7*a+4]=-1===a?-1:b[7*a+4]-1};l.prototype.$X=function(c,a){this.pB(c,a);var b=this.ml(c),d=this.Zp(c),e=this.getParent(c),f=c;if(-1!=b&&-1!=d){this.Vm=g.P.RA(this.Vm);var h=1073741823<this.Vm?this.mb(c):this.ze(c),k=this.getParent(h)==c;this.pb.VB(c,h,0);this.pb.VB(c,h,1);this.pb.VB(c,h,2);-1!=e?this.ml(e)==c?this.HB(e,h):this.LB(e,h):this.SJ(h,a);k?(b==h?(this.HB(h,c),this.Ok(d,h)):d==h&&(this.LB(h,c),this.Ok(b,h)),this.Ok(c,h),e=h):(this.Ok(b,h),this.Ok(d,h),
e=this.getParent(c),f=h);b=this.ml(c);d=this.Zp(c);-1!=b&&this.Ok(b,c);-1!=d&&this.Ok(d,c)}b=-1!=b?b:d;-1==e?this.SJ(b,a):this.ml(e)==f?this.HB(e,b):this.LB(e,b);-1!=b&&this.Ok(b,e);this.gl(c)};l.prototype.JP=function(c,a){var b=this.pb.o;b[7*c+4]=2147483647;var d=-1,e=-1,f=-1===a?-1:b[7*a],h=f==c;h&&(d=b[7*f],e=b[7*f+1],-1==d&&-1==e)?(this.pB(f,a),this.gl(f),b[7*a]=-1):(this.JN(c,b),f=b[7*c+2],-1!=f&&(b[7*f]==c?b[7*f]=-1:b[7*f+1]=-1),this.pB(c,a),this.gl(c),h&&(b[7*a]=-1==d||-1!=b[7*d+2]?e:d))};
l.prototype.CB=function(c,a){this.pb.U(c,3,a)};return l}();g.Xj=t})(y||(y={}));(function(g){var t=function(){function l(c,a){void 0!==c&&this.L(c,a)}l.prototype.L=function(c,a){this.ma=c;this.sa=a;this.normalize()};l.prototype.isIntersecting=function(c){return this.ma<=c.ma?this.sa>=c.ma:c.sa>=this.ma};l.prototype.move=function(c){this.B()||(this.ma+=c,this.sa+=c)};l.prototype.normalize=function(){if(!isNaN(this.ma)){if(this.ma>this.sa){var c=this.ma;this.ma=this.sa;this.sa=c}isNaN(this.sa)&&this.Pa()}};
l.prototype.Pa=function(){this.sa=this.ma=NaN};l.prototype.B=function(){return isNaN(this.ma)};l.prototype.$b=function(c){"number"===typeof c?this.B()?this.sa=this.ma=c:this.Kk(c):c.B()||(this.B()?(this.ma=c.ma,this.sa=c.sa):(this.ma>c.ma&&(this.ma=c.ma),this.sa<c.sa&&(this.sa=c.sa),this.ma>this.sa&&this.Pa()))};l.prototype.Kk=function(c){c<this.ma?this.ma=c:c>this.sa&&(this.sa=c)};l.prototype.contains=function(c){return"number"===typeof c?c>=this.ma&&c<=this.sa:c.ma>=this.ma&&c.sa<=this.sa};l.prototype.Fa=
function(c){this.B()||c.B()?this.Pa():(this.ma<c.ma&&(this.ma=c.ma),this.sa>c.sa&&(this.sa=c.sa),this.ma>this.sa&&this.Pa())};l.prototype.Y=function(c){this.B()||(this.ma-=c,this.sa+=c,this.sa<this.ma&&this.Pa())};l.prototype.zr=function(){return this.B()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.ma)+Math.abs(this.sa)+1)};l.prototype.zB=function(c,a){c>a?(this.ma=a,this.sa=c):(this.ma=c,this.sa=a)};l.prototype.Ft=function(c){return g.P.Qk(c,this.ma,this.sa)};l.prototype.S=function(){return this.sa-
this.ma};l.prototype.wf=function(){return.5*(this.ma+this.sa)};l.prototype.Nb=function(c){return c==this?!0:c instanceof l?this.B()&&c.B()?!0:this.ma!=c.ma||this.sa!=c.sa?!1:!0:!1};l.prototype.dc=function(){return g.P.uj(g.P.uj())};return l}();g.Pc=t})(y||(y={}));(function(g){var t=new g.Pc,l=new g.Pc,c=function(){return function(){this.pe=null;this.qb=-1;this.ub=new g.zb;this.fA=55555555;this.Qv=this.Sv=!1;this.Yf=new g.Pc;this.Yf.zB(0,0)}}();g.AY=c;var a=function(){function b(d,e,f){this.g=d;this.Gk=
NaN;this.IH=this.Mq=0;this.JH=NaN;this.ra=e;this.Pq=10*e;this.KH=this.LH=NaN;this.wg=!1;this.Fm=this.ct=this.Mo=this.Us=this.Ts=-1;this.Xz=f;this.IA=new c;this.TH=new c;g.P.truncate(3*d.hd/2)}b.prototype.hG=function(d,e,f,h){d.pe=null===h?null:h[f[5*e]];d.Qv=null!=d.pe;d.Qv||(h=f[5*e+2],-1!==h&&this.g.fW(f[5*e],f[5*h],d.ub),d.pe=d.ub,d.Yf.zB(d.ub.ta,d.ub.qa),d.Yf.sa+=this.ra,d.ub.mI(),d.Sv=d.ub.na==d.ub.pa,d.Sv||(d.fA=(d.ub.qa-d.ub.ta)/(d.ub.na-d.ub.pa)))};b.prototype.NO=function(d,e){var f=d.Br(e,
this.ra,!0);if(0!=f)return 2==f?this.Gy():this.xi();d.$p(X);d.Ur(ra);e.$p(za);e.Ur(Aa);Q.oa(this.Mq,this.Gk);X.sb(za)&&this.Gk==X.y?0>ra.compare(Aa)?Q.N(ra):Q.N(Aa):X.sb(Aa)&&this.Gk==X.y?0>ra.compare(za)?Q.N(ra):Q.N(za):za.sb(ra)&&this.Gk==za.y?0>X.compare(Aa)?Q.N(X):Q.N(Aa):ra.sb(Aa)&&this.Gk==ra.y&&(0>X.compare(za)?Q.N(X):Q.N(za));return d.Oe(Q.y,Q.x)<e.Oe(Q.y,Q.x)?-1:1};b.prototype.LO=function(d,e){if(d.ub.pa==e.ub.pa&&d.ub.ta==e.ub.ta)return d.ub.na==e.ub.na&&d.ub.qa==e.ub.qa?this.Xz?this.Gy():
0:this.FE(d,e);if(d.ub.na==e.ub.na&&d.ub.qa==e.ub.qa)return this.EE(d,e);var f=this.EE(d,e);d=this.FE(d,e);return 0>f&&0>d?-1:0<f&&0<d?1:this.xi()};b.prototype.HO=function(d,e){if(d.qa>e.qa){if(e.qa>e.ta&&e.na-e.pa<2*this.ra&&d.vi(e.qa,e.na,this.ra))return this.xi()}else if((e.na-e.pa)/(e.qa-e.ta)*(d.qa-d.ta)<this.Pq&&e.vi(d.qa,d.na,this.ra))return this.xi();return 1};b.prototype.IO=function(d,e){if(d.ta<e.ta){if(e.qa>e.ta&&e.na-e.pa<2*this.ra&&d.vi(e.qa,e.na,this.ra))return this.xi()}else if((e.na-
e.pa)/(e.qa-e.ta)*(d.ta-d.qa)<this.Pq&&e.vi(d.ta,d.pa,this.ra))return this.xi();return-1};b.prototype.JO=function(d,e){var f=new g.h;f.wc(e.yc(),e.bc());f.cr();f.normalize();var h=new g.h;h.wc(d.bc(),e.bc());var k=new g.h;k.wc(d.yc(),e.bc());h=h.Qh(f);f=k.Qh(f);k=Math.abs(h);var m=Math.abs(f);if(k<m){if(k<this.Pq&&e.vi(d.ta,d.pa,this.ra))return this.xi()}else if(m<this.Pq&&e.vi(d.qa,d.na,this.ra))return this.xi();return 0>h&&0>f?-1:0<h&&0<f?1:this.xi()};b.prototype.DE=function(d,e){return d.pa==e.pa&&
d.ta==e.ta?this.HO(d,e):d.na==e.na&&d.qa==e.qa?this.IO(d,e):this.JO(d,e)};b.prototype.KO=function(d,e){return d.na==e.na&&d.qa==e.qa&&d.pa==e.pa&&d.ta==e.ta?this.Xz?this.Gy():0:this.xi()};b.prototype.EE=function(d,e){var f=1;if(d.ub.pa<e.ub.pa){f=-1;var h=d;d=e;e=h}d=d.ub;h=e.ub;var k=d.ta-h.ta;e=e.fA*(d.pa-h.pa);var m=this.Pq;return k<e-m?-f:k>e+m?f:h.vi(d.ta,d.pa,this.ra)?this.xi():k<e?-f:f};b.prototype.FE=function(d,e){var f=1;if(e.ub.na<d.ub.na){f=-1;var h=d;d=e;e=h}d=d.ub;h=e.ub;var k=d.qa-h.ta;
e=e.fA*(d.na-h.pa);var m=this.Pq;return k<e-m?-f:k>e+m?f:h.vi(d.qa,d.na,this.ra)?this.xi():k<e?-f:f};b.prototype.Gy=function(){this.wg=!0;this.Ni=new g.Od(5,this.Mo,this.ct);return-1};b.prototype.xi=function(){this.wg=!0;this.Xz?this.Ni=new g.Od(4,this.Mo,this.ct):this.ct=this.Mo=this.Us=this.Ts=-1;return-1};b.prototype.MO=function(d,e,f,h){if(this.wg)return-1;var k=this.JH==this.Gk&&this.IH==this.Mq;if(k&&d==this.Ts)var m=this.KH;else m=NaN,this.Ts=-1;k&&e==this.Us?k=this.LH:(k=NaN,this.Us=-1);f.pe.UI(t);
h.pe.UI(l);if(t.sa<l.ma)return-1;if(l.sa<t.ma)return 1;this.JH=this.Gk;this.IH=this.Mq;isNaN(m)&&(this.Ts=d,this.KH=m=d=f.pe.Oe(this.Gk,this.Mq));isNaN(k)&&(this.Us=e,this.LH=k=d=h.pe.Oe(this.Gk,this.Mq));return Math.abs(m-k)<=this.ra?this.NO(f.pe,h.pe):m<k?-1:m>k?1:0};b.prototype.Lr=function(){this.wg=!1};b.prototype.tm=function(){return this.Ni};b.prototype.VJ=function(d,e){this.Gk=d;this.Mq=e;this.ct=this.Mo=this.Us=this.Ts=-1};b.prototype.compare=function(d,e,f){if(this.wg)return-1;d=d.ka(f);
this.Fm=f;return this.HE(e,e,d,d)};b.prototype.HE=function(d,e,f,h){if(this.Mo==e)var k=this.IA;else this.Mo=e,k=this.IA,this.IA.qb=d,this.hG(k,e,this.g.vd.o,this.g.Ve);if(null==m){this.ct=h;var m=this.TH;this.TH.qb=f;this.hG(m,h,this.g.vd.o,this.g.Ve)}if(k.Qv||m.Qv)return this.MO(e,h,k,m);if(k.Yf.sa<m.Yf.ma)return-1;if(m.Yf.sa<k.Yf.ma)return 1;d=k.Sv?1:0;d|=m.Sv?2:0;return 0==d?this.LO(k,m):1==d?this.DE(k.ub,m.ub):2==d?-1*this.DE(m.ub,k.ub):this.KO(k.ub,m.ub)};return b}();g.HC=a})(y||(y={}));(function(g){var t=
function(){function l(c,a){this.g=c;this.ra=a;this.wg=!1;this.Mo=-1;this.Yf=new g.Pc;this.Iq=new g.h;this.Iq.Uc();this.ke=new g.zb;this.Fm=-1;this.qA=1.7976931348623157E308}l.prototype.Lr=function(){this.wg=!1;this.qA=1.7976931348623157E308};l.prototype.Eh=function(c){this.Iq.N(c)};l.prototype.compare=function(c,a){return this.IE(a,c.ka(a))};l.prototype.IE=function(c,a){var b=null!=this.g.cc(a);b||(this.g.gd(a,this.ke),this.Yf.zB(this.ke.ta,this.ke.qa));if(b)throw g.i.ga("not implemented");if(this.Iq.x+
this.ra<this.Yf.ma)return-1;if(this.Iq.x-this.ra>this.Yf.sa)return 1;if(this.ke.pa==this.ke.na)return this.Fm=c,this.wg=!0,0;this.ke.mI();b=this.ke.bc();a=new g.h;a.wc(this.ke.yc(),b);a.cr();var d=new g.h;d.wc(this.Iq,b);b=a.Qh(d);b/=a.length();return b<10*-this.ra?-1:b>10*this.ra?1:this.ke.ns(this.Iq,this.ra)&&(a=Math.abs(b),a<this.qA&&(this.Fm=c,this.qA=a),this.wg=!0,a<.25*this.ra)?0:0>b?-1:1};return l}();g.WL=t})(y||(y={}));(function(g){function t(c,a,b,d){b=new Float64Array(c.subarray(b,d));c.set(b,
a)}var l=function(){function c(a){this.Pb=this.nk=!1;this.o=null;var b=a;2>b&&(b=2);this.o=new Float64Array(b);this.size=a}c.prototype.rotate=function(a,b,d){if(this.Pb)throw g.i.ga("invalid_call");if(b<a||b>d||a>d)throw g.i.O();a!=b&&d!=b&&(this.ni(a,b-a,1),this.ni(b,d-b,1),this.ni(a,d-a,1))};c.uf=function(a,b){var d=new c(a),e=d.o;2>a&&(a=2);if(0!==b)for(var f=0;f<a;f++)e[f]=b;return d};c.Bn=function(a){var b=new c(0);b.o=new Float64Array(a.o);b.size=a.size;return b};c.Mr=function(a,b){var d=new c(0);
d.size=a.size;d.size>b&&(d.size=b);b=d.size;2>b&&(b=2);d.o=new Float64Array(b);d.o.set(a.o.length<=b?a.o:a.o.subarray(0,b),0);return d};c.prototype.Jb=function(a){0>=a||(null==this.o?this.o=new Float64Array(a):a<=this.o.length||(0<this.o.length?(a=new Float64Array(a),a.set(this.o),this.o=a):this.o=new Float64Array(a)))};c.prototype.read=function(a){return this.o[a]};c.prototype.vc=function(a,b){b.x=this.o[a];b.y=this.o[a+1]};c.prototype.get=function(a){return this.o[a]};c.prototype.write=function(a,
b){if(this.Pb)throw g.i.Hb();this.o[a]=b};c.prototype.set=function(a,b){if(this.Pb)throw g.i.Hb();this.o[a]=b};c.prototype.Qt=function(a,b){if(this.Pb)throw g.i.Hb();this.o[a]=b.x;this.o[a+1]=b.y};c.prototype.add=function(a){this.resize(this.size+1);this.o[this.size-1]=a};c.prototype.vB=function(a){return c.Mr(this,a)};c.prototype.Gg=function(a){return this.read(a)};c.prototype.resize=function(a,b){void 0===b&&(b=0);if(this.nk)throw g.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");
if(a<=this.size){if(30<this.o.length&&5*a/4<this.o.length){var d=new Float64Array(this.o,0,a);this.o=d}}else{a>this.o.length&&(d=g.P.truncate(64>a?Math.max(2*a,4):5*a/4),d=new Float64Array(d),d.set(this.o),this.o=d);d=this.o;for(var e=this.size;e<a;e++)d[e]=b}this.size=a};c.prototype.Ch=function(a){(null==this.o||a>this.o.length)&&this.resize(a);if(this.nk)throw g.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};c.prototype.rr=function(a,b){this.write(a,b)};c.prototype.An=
function(a,b,d){for(var e=this.size;b<e&&b<d;b++)a=g.P.uj(this.read(b));return a};c.prototype.Nb=function(a,b,d){if(null==a||!(a instanceof c))return!1;var e=this.size,f=a.size;if(d>e||d>f&&e!=f)return!1;for(d>e&&(d=e);b<d;b++)if(this.read(b)!=a.read(b))return!1;return!0};c.prototype.addRange=function(a,b,d,e,f){if(this.Pb)throw g.i.Hb();if(!e&&(1>f||0!=d%f))throw g.i.O();var h=this.size;this.resize(h+d);if(e)this.o.set(a.o.subarray(b,b+d),h);else{e=d;for(var k=0;k<d;k+=f){e-=f;for(var m=0;m<f;m++)this.o[h+
k+m]=a.o[b+e+m]}}};c.prototype.Nn=function(a,b,d,e,f,h,k){if(this.Pb)throw g.i.Hb();if(!f&&(1>h||0!=e%h))throw g.i.O();var m=this.size-k;m<e&&this.resize(this.size+e-m);t(this.o,a+e,a,a+(k-a));this.o==b.o&&a<d&&(d+=e);if(f)this.o.set(b.o.subarray(d,d+e),a);else for(f=e,k=0;k<e;k+=h)for(f-=h,m=0;m<h;m++)this.o[a+k+m]=b.o[d+f+m]};c.prototype.yz=function(a,b,d,e,f,h){if(this.Pb)throw g.i.Hb();0>h&&(h=this.size);this.size+2*e>this.o.length?this.resize(this.size+2*e):this.size+=2*e;t(this.o,a+2*e,a,a+
(h-a));if(f)for(f=0;f<e;f++)h=b[d++],this.o[a++]=h.x,this.o[a++]=h.y;else{f=0;for(var k=e-1;f<e;++f)h=b[d+k],this.o[a++]=h.x,this.o[a++]=h.y,k--}};c.prototype.Mn=function(a,b,d,e){if(this.Pb)throw g.i.Hb();e-=a;t(this.o,a+e,a,a+e);for(e=0;e<d;e++)this.o[a+e]=b};c.prototype.vj=function(a,b,d){if(this.Pb)throw g.i.Hb();t(this.o,a+2,a,a+(d-a));this.o[a]=b.x;this.o[a+1]=b.y};c.prototype.Rt=function(a,b,d,e,f,h){if(0>a||0>b||0>e)throw g.i.O();if(!f&&(0>=h||0!=b%h))throw g.i.O();if(d.size<e+b)throw g.i.O();
if(0!=b)if(this.size<b+a&&this.resize(b+a),d==this)this.Cr(a,b,e,f,h);else if(f)for(f=0;f<b;f++)this.o[a]=d.o[e],a++,e++;else if(e=e+b-h,1==h)for(f=0;f<b;f++)this.o[a]=d.o[e],a++,e--;else for(f=0,b=g.P.truncate(b/h);f<b;f++){for(var k=0;k<h;k++)this.o[a+k]=d.o[e+k];a+=h;e-=h}};c.prototype.En=function(a,b,d){if(this.Pb)throw g.i.Hb();if(a+b>this.size)throw g.i.Hb();0<d-(a+b)&&t(this.o,a,a+b,a+(d-(a+b))+b);this.size-=b};c.prototype.ni=function(a,b,d){if(this.Pb)throw g.i.Hb();if(1>d||0!=b%d)throw g.i.Hb();
for(var e=b>>1,f=0;f<e;f+=d){b-=d;for(var h=0;h<d;h++){var k=this.o[a+f+h];this.o[a+f+h]=this.o[a+b+h];this.o[a+b+h]=k}}};c.prototype.Wj=function(a,b,d){if(0>b||0>d||0>b||d+b>this.size)throw g.i.O();for(var e=b;e<b+d;e++)this.o[e]=a};c.prototype.Cr=function(a,b,d,e,f){if(!e||a!=d)if(this.o.set(this.o.subarray(d,d+b),a),!e)for(d=a,a=a+b-f,e=0,b=g.P.truncate(b/2);e<b;e++){for(var h=0;h<f;h++){var k=this.o[d+h];this.o[d+h]=this.o[a+h];this.o[a+h]=k}d+=f;a-=f}};c.prototype.jC=function(a,b,d,e,f){if(0>
a||0>b||0>e)throw g.i.O();if(0!=b)for(this.size<(b<<1)+a&&this.resize((b<<1)+a),f||(a+=b-1<<1),f=f?2:-2,b+=e;e<b;e++)this.o[a]=d[e].x,this.o[a+1]=d[e].y,a+=f};c.prototype.iC=function(a,b,d){if(0>a||0>b)throw g.i.O();if(0!=b){this.size<(b<<1)+a&&this.resize((b<<1)+a);b+=0;for(var e=0;e<b;e++)this.o[a]=d[e][0],this.o[a+1]=d[e][1],a+=2}};c.prototype.Sw=function(a,b,d,e,f){if(0>a||0>b||0>e||this.size<b+a)throw g.i.O();if(f)for(f=0;f<b;f++)d[e+f]=this.o[a+f];else for(e=e+b-1;a<b;a++)d[e]=this.o[a],e--};
c.prototype.jB=function(a,b,d){if(0>a||0>b||this.size<(b>>1)+a)throw g.i.O();if(0!=b){b=0+b;for(var e=0;e<b;e++)d[e][0]=this.o[a],d[e][1]=this.o[a+1],a+=2}};c.prototype.clear=function(a){a?this.resize(0):this.Ch(0)};c.prototype.dx=function(){this.nk=this.Pb=!0};c.prototype.Xd=function(a,b,d){Array.prototype.sort.call(this.o.subarray(a,b),d)};c.prototype.Vp=function(){return 1};return c}();g.ee=l})(y||(y={}));(function(g){function t(c,a,b,d){b=new Int32Array(c.subarray(b,d));c.set(b,a)}g.iY=function(){return function(){this.random=
1973}}();var l=function(){function c(a){this.Pb=this.nk=!1;this.o=null;var b=a;2>b&&(b=2);this.o=new Int32Array(b);this.size=a}c.prototype.rotate=function(a,b,d){if(this.Pb)throw g.i.ga("invalid_call");if(b<a||b>d||a>d)throw g.i.O();a!=b&&d!=b&&(this.ni(a,b-a,1),this.ni(b,d-b,1),this.ni(a,d-a,1))};c.uf=function(a,b){var d=new c(a),e=d.o;2>a&&(a=2);if(0!==b)for(var f=0;f<a;f++)e[f]=b;return d};c.Bn=function(a){var b=new c(0);b.o=new Int32Array(a.o);b.size=a.size;return b};c.Mr=function(a,b){var d=
new c(0);d.size=a.size;d.size>b&&(d.size=b);b=d.size;2>b&&(b=2);d.o=new Int32Array(b);d.o.set(a.o.length<=b?a.o:a.o.subarray(0,b),0);return d};c.prototype.Jb=function(a){0>=a||(null==this.o?this.o=new Int32Array(a):a<=this.o.length||(0<this.o.length?(a=new Int32Array(a),a.set(this.o),this.o=a):this.o=new Int32Array(a)))};c.prototype.read=function(a){return this.o[a]};c.prototype.vc=function(a,b){b.x=this.o[a];b.y=this.o[a+1]};c.prototype.get=function(a){return this.o[a]};c.prototype.write=function(a,
b){if(this.Pb)throw g.i.Hb();this.o[a]=b};c.prototype.set=function(a,b){if(this.Pb)throw g.i.Hb();this.o[a]=b};c.prototype.Qt=function(a,b){if(this.Pb)throw g.i.Hb();this.o[a]=b.x;this.o[a+1]=b.y};c.prototype.add=function(a){this.resize(this.size+1);this.o[this.size-1]=a};c.prototype.vB=function(a){return c.Mr(this,a)};c.prototype.Gg=function(a){return this.read(a)};c.prototype.resize=function(a,b){void 0===b&&(b=0);if(this.nk)throw g.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");
if(a<=this.size){if(30<this.o.length&&5*a/4<this.o.length){var d=new Int32Array(this.o,0,a);this.o=d}}else{a>this.o.length&&(d=g.P.truncate(64>a?Math.max(2*a,4):5*a/4),d=new Int32Array(d),d.set(this.o),this.o=d);d=this.o;for(var e=this.size;e<a;e++)d[e]=b}this.size=a};c.prototype.Ch=function(a){(null==this.o||a>this.o.length)&&this.resize(a);if(this.nk)throw g.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};c.prototype.rr=function(a,b){this.write(a,b)};c.prototype.An=
function(a,b,d){for(var e=this.size;b<e&&b<d;b++)a=g.P.Th(this.read(b),a);return a};c.prototype.Nb=function(a,b,d){if(null==a||!(a instanceof c))return!1;var e=this.size,f=a.size;if(d>e||d>f&&e!=f)return!1;for(d>e&&(d=e);b<d;b++)if(this.read(b)!=a.read(b))return!1;return!0};c.prototype.addRange=function(a,b,d,e,f){if(this.Pb)throw g.i.Hb();if(!e&&(1>f||0!=d%f))throw g.i.O();var h=this.size;this.resize(h+d);if(e)this.o.set(a.o.subarray(b,b+d),h);else{e=d;for(var k=0;k<d;k+=f){e-=f;for(var m=0;m<f;m++)this.o[h+
k+m]=a.o[b+e+m]}}};c.prototype.Nn=function(a,b,d,e,f,h,k){if(this.Pb)throw g.i.Hb();if(!f&&(1>h||0!=e%h))throw g.i.O();t(this.o,a+e,a,a+(k-a));this.o==b.o&&a<d&&(d+=e);if(f)this.o.set(b.o.subarray(d,d+e),a);else for(f=e,k=0;k<e;k+=h){f-=h;for(var m=0;m<h;m++)this.o[a+k+m]=b.o[d+f+m]}};c.prototype.yz=function(a,b,d,e,f,h){if(this.Pb)throw g.i.Hb();0>h&&(h=this.size);this.size+2*e>this.o.length?this.resize(this.size+2*e):this.size+=2*e;t(this.o,a+2*e,a,a+(h-a));if(f)for(f=0;f<e;f++)h=b[d++],this.o[a++]=
h.x,this.o[a++]=h.y;else{f=0;for(var k=e-1;f<e;++f)h=b[d+k],this.o[a++]=h.x,this.o[a++]=h.y,k--}};c.prototype.Mn=function(a,b,d,e){if(this.Pb)throw g.i.Hb();e-=a;t(this.o,a+e,a,a+e);for(e=0;e<d;e++)this.o[a+e]=b};c.prototype.vj=function(a,b,d){if(this.Pb)throw g.i.Hb();t(this.o,a+2,a,a+(d-a));this.o[a]=b.x;this.o[a+1]=b.y};c.prototype.Rt=function(a,b,d,e,f,h){if(0>a||0>b||0>e)throw g.i.O();if(!f&&(0>=h||0!=b%h))throw g.i.O();if(d.size<e+b)throw g.i.O();if(0!=b)if(this.size<b+a&&this.resize(b+a),d==
this)this.Cr(a,b,e,f,h);else if(f)for(f=0;f<b;f++)this.o[a]=d.o[e],a++,e++;else if(e=e+b-h,1==h)for(f=0;f<b;f++)this.o[a]=d.o[e],a++,e--;else for(f=0,b=g.P.truncate(b/h);f<b;f++){for(var k=0;k<h;k++)this.o[a+k]=d.o[e+k];a+=h;e-=h}};c.prototype.En=function(a,b,d){if(this.Pb)throw g.i.Hb();if(a+b>this.size)throw g.i.Hb();0<d-(a+b)&&t(this.o,a,a+b,a+(d-(a+b))+b);this.size-=b};c.prototype.ni=function(a,b,d){if(this.Pb)throw g.i.Hb();if(1>d||0!=b%d)throw g.i.Hb();for(var e=b>>1,f=0;f<e;f+=d){b-=d;for(var h=
0;h<d;h++){var k=this.o[a+f+h];this.o[a+f+h]=this.o[a+b+h];this.o[a+b+h]=k}}};c.prototype.Wj=function(a,b,d){if(0>b||0>d||0>b||d+b>this.size)throw g.i.O();for(var e=b;e<b+d;e++)this.o[e]=a};c.prototype.Cr=function(a,b,d,e,f){if(!e||a!=d)if(this.o.set(this.o.subarray(d,d+b),a),!e)for(d=a,a=a+b-f,e=0,b=g.P.truncate(b/2);e<b;e++){for(var h=0;h<f;h++){var k=this.o[d+h];this.o[d+h]=this.o[a+h];this.o[a+h]=k}d+=f;a-=f}};c.prototype.jC=function(a,b,d,e,f){if(0>a||0>b||0>e)throw g.i.O();if(0!=b)for(this.size<
(b<<1)+a&&this.resize((b<<1)+a),f||(a+=b-1<<1),f=f?2:-2,b+=e;e<b;e++)this.o[a]=d[e].x,this.o[a+1]=d[e].y,a+=f};c.prototype.Sw=function(a,b,d,e,f){if(0>a||0>b||0>e||this.size<b+a)throw g.i.O();if(f)for(f=0;f<b;f++)d[e+f]=this.o[a+f];else for(e=e+b-1;a<b;a++)d[e]=this.o[a],e--};c.prototype.clear=function(a){a?this.resize(0):this.Ch(0)};c.prototype.dx=function(){this.nk=this.Pb=!0};c.prototype.Xd=function(a,b,d){10>b-a?c.mG(this.o,a,b,d):c.fB(this.o,a,b-1,d)};c.prototype.Vp=function(){return 2};c.prototype.Hc=
function(){return this.o[this.size-1]};c.prototype.Mf=function(){this.resize(this.size-1)};c.prototype.SW=function(a){this.o[this.size-1]=a};c.prototype.LV=function(a){a<this.size-1&&(this.o[a]=this.o[this.size-1]);this.resize(this.size-1)};c.prototype.cF=function(a){for(var b=0,d=this.size;b<d;b++)if(this.o[b]==a)return b;return-1};c.prototype.cG=function(a){return 0<=this.cF(a)};c.mG=function(a,b,d,e){for(var f=b;f<d;f++){for(var h=a[f],k=f-1;k>=b&&0<e(a[k],h);)a[k+1]=a[k],k--;a[k+1]=h}};c.nx=function(a,
b,d){var e=a[d];a[d]=a[b];a[b]=e};c.fB=function(a,b,d,e){if(!(b>=d))for(;;){if(9>d-b){c.mG(a,b,d+1,e);break}var f=a[b];c.nx(a,b,d);for(var h=b,k=b;k<d;k++)0>=e(a[k],f)&&(c.nx(a,h,k),h+=1);c.nx(a,h,d);h-b<d-h?(c.fB(a,b,h-1,e),b=h+1):(c.fB(a,h+1,d,e),d=h-1)}};return c}();g.ja=l})(y||(y={}));(function(g){function t(c,a,b,d){b=new Int8Array(c.subarray(b,d));c.set(b,a)}var l=function(){function c(a){this.o=null;var b=a;2>b&&(b=2);this.o=new Int8Array(b);this.size=a}c.prototype.rotate=function(a,b,d){if(this.Pb)throw g.i.ga("invalid_call");
if(b<a||b>d||a>d)throw g.i.O();a!=b&&d!=b&&(this.ni(a,b-a,1),this.ni(b,d-b,1),this.ni(a,d-a,1))};c.uf=function(a,b){var d=new c(a),e=d.o;2>a&&(a=2);if(0!==b)for(var f=0;f<a;f++)e[f]=b;return d};c.Bn=function(a){var b=new c(0);b.o=new Int8Array(a.o);b.size=a.size;return b};c.Mr=function(a,b){var d=new c(0);d.size=a.size;d.size>b&&(d.size=b);b=d.size;2>b&&(b=2);d.o=new Int8Array(b);d.o.set(a.o.length<=b?a.o:a.o.subarray(0,b),0);return d};c.prototype.Jb=function(a){0>=a||(null==this.o?this.o=new Int8Array(a):
a<=this.o.length||(0<this.o.length?(a=new Int8Array(a),a.set(this.o),this.o=a):this.o=new Int8Array(a)))};c.prototype.read=function(a){return this.o[a]};c.prototype.vc=function(a,b){b.x=this.o[a];b.y=this.o[a+1]};c.prototype.get=function(a){return this.o[a]};c.prototype.write=function(a,b){if(this.Pb)throw g.i.Hb();this.o[a]=b};c.prototype.set=function(a,b){if(this.Pb)throw g.i.Hb();this.o[a]=b};c.prototype.Qt=function(a,b){if(this.Pb)throw g.i.Hb();this.o[a]=b.x;this.o[a+1]=b.y};c.prototype.add=
function(a){this.resize(this.size+1);this.o[this.size-1]=a};c.prototype.vB=function(a){return c.Mr(this,a)};c.prototype.Gg=function(a){return this.read(a)};c.prototype.resize=function(a,b){void 0===b&&(b=0);if(this.nk)throw g.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(30<this.o.length&&5*a/4<this.o.length){var d=new Int8Array(this.o,0,a);this.o=d}}else{a>this.o.length&&(d=g.P.truncate(64>a?Math.max(2*a,4):5*a/4),d=new Int8Array(d),d.set(this.o),this.o=
d);d=this.o;for(var e=this.size;e<a;e++)d[e]=b}this.size=a};c.prototype.Ch=function(a){(null==this.o||a>this.o.length)&&this.resize(a);if(this.nk)throw g.i.ga("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};c.prototype.rr=function(a,b){this.write(a,b)};c.prototype.An=function(a,b,d){for(var e=this.size;b<e&&b<d;b++)a=g.P.Th(this.read(b),a);return a};c.prototype.Nb=function(a,b,d){if(null==a||!(a instanceof c))return!1;var e=this.size,f=a.size;if(d>e||d>f&&e!=f)return!1;
for(d>e&&(d=e);b<d;b++)if(this.read(b)!=a.read(b))return!1;return!0};c.prototype.addRange=function(a,b,d,e,f){if(this.Pb)throw g.i.Hb();if(!e&&(1>f||0!=d%f))throw g.i.O();var h=this.size;this.resize(h+d);if(e)this.o.set(a.o.subarray(b,b+d),h);else{e=d;for(var k=0;k<d;k+=f){e-=f;for(var m=0;m<f;m++)this.o[h+k+m]=a.o[b+e+m]}}};c.prototype.Nn=function(a,b,d,e,f,h,k){if(this.Pb)throw g.i.Hb();if(!f&&(1>h||0!=e%h))throw g.i.O();t(this.o,a+e,a,a+(k-a));this.o==b.o&&a<d&&(d+=e);if(f)this.o.set(b.o.subarray(d,
d+e),a);else for(f=e,k=0;k<e;k+=h){f-=h;for(var m=0;m<h;m++)this.o[a+k+m]=b.o[d+f+m]}};c.prototype.Mn=function(a,b,d,e){if(this.Pb)throw g.i.Hb();e-=a;t(this.o,a+e,a,a+e);for(e=0;e<d;e++)this.o[a+e]=b};c.prototype.yz=function(a,b,d,e,f,h){if(this.Pb)throw g.i.Hb();0>h&&(h=this.size);this.size+2*e>this.o.length?this.resize(this.size+2*e):this.size+=2*e;t(this.o,a+2*e,a,a+(h-a));if(f)for(f=0;f<e;f++)h=b[d++],this.o[a++]=h.x,this.o[a++]=h.y;else{f=0;for(var k=e-1;f<e;++f)h=b[d+k],this.o[a++]=h.x,this.o[a++]=
h.y,k--}};c.prototype.vj=function(a,b,d){if(this.Pb)throw g.i.Hb();t(this.o,a+2,a,a+(d-a));this.o[a]=b.x;this.o[a+1]=b.y};c.prototype.Rt=function(a,b,d,e,f,h){if(0>a||0>b||0>e)throw g.i.O();if(!f&&(0>=h||0!=b%h))throw g.i.O();if(d.size<e+b)throw g.i.O();if(0!=b)if(this.size<b+a&&this.resize(b+a),d==this)this.Cr(a,b,e,f,h);else if(f)for(f=0;f<b;f++)this.o[a]=d.o[e],a++,e++;else if(e=e+b-h,1==h)for(f=0;f<b;f++)this.o[a]=d.o[e],a++,e--;else for(f=0,b=g.P.truncate(b/h);f<b;f++){for(var k=0;k<h;k++)this.o[a+
k]=d.o[e+k];a+=h;e-=h}};c.prototype.En=function(a,b,d){if(this.Pb)throw g.i.Hb();if(a+b>this.size)throw g.i.Hb();0<d-(a+b)&&t(this.o,a,a+b,a+(d-(a+b))+b);this.size-=b};c.prototype.ni=function(a,b,d){if(this.Pb)throw g.i.Hb();if(1>d||0!=b%d)throw g.i.Hb();for(var e=b>>1,f=0;f<e;f+=d){b-=d;for(var h=0;h<d;h++){var k=this.o[a+f+h];this.o[a+f+h]=this.o[a+b+h];this.o[a+b+h]=k}}};c.prototype.Wj=function(a,b,d){if(0>b||0>d||0>b||d+b>this.size)throw g.i.O();for(var e=b;e<b+d;e++)this.o[e]=a};c.prototype.Cr=
function(a,b,d,e,f){if(!e||a!=d)if(this.o.set(this.o.subarray(d,d+b),a),!e)for(d=a,a=a+b-f,e=0,b=g.P.truncate(b/2);e<b;e++){for(var h=0;h<f;h++){var k=this.o[d+h];this.o[d+h]=this.o[a+h];this.o[a+h]=k}d+=f;a-=f}};c.prototype.jC=function(a,b,d,e,f){if(0>a||0>b||0>e)throw g.i.O();if(0!=b)for(this.size<(b<<1)+a&&this.resize((b<<1)+a),f||(a+=b-1<<1),f=f?2:-2,b+=e;e<b;e++)this.o[a]=d[e].x,this.o[a+1]=d[e].y,a+=f};c.prototype.Sw=function(a,b,d,e,f){if(0>a||0>b||0>e||this.size<b+a)throw g.i.O();if(f)for(f=
0;f<b;f++)d[e+f]=this.o[a+f];else for(e=e+b-1;a<b;a++)d[e]=this.o[a],e--};c.prototype.clear=function(a){a?this.resize(0):this.Ch(0)};c.prototype.dx=function(){this.nk=this.Pb=!0};c.prototype.Xd=function(a,b,d){b=this.o.subarray(a,b);Array.prototype.sort.call(b,d);this.o.set(b,a)};c.prototype.uJ=function(a,b){if(this.Pb)throw g.i.ga("invalid call. Attribute Stream is read only.");this.o[a]|=b};c.prototype.AE=function(a,b){if(this.Pb)throw g.i.ga("invalid call. Attribute Stream is read only.");this.o[a]&=
~b};c.prototype.Vp=function(){return 1};return c}();g.rn=l})(y||(y={}));(function(g){g.$c=function(){function t(){}t.Nr=function(l,c){return g.rn.uf(l,c)};t.Dn=function(l,c){return g.ee.uf(l,c)};t.nP=function(l,c,a){switch(l){case 1:l=g.ee.uf(c,a);break;case 2:l=g.ja.uf(c,a);break;case 4:l=g.rn.uf(c,a);break;default:throw g.i.Ra();}return l};t.PE=function(l,c){return t.nP(g.va.Vp(l),c*g.va.Wa(l),g.va.ve(l))};t.Oh=function(l,c){return g.ja.uf(l,c)};t.lI=function(l){var c,a=[];for(c=0;c<l;c++)a.push(null);
return a};return t}()})(y||(y={}));(function(g){g.ha=function(){return function(t){void 0===t&&(t=0);this.u=t}}()})(y||(y={}));(function(g){g.IL=function(){function t(){}t.bind=function(l){g.Vc=l.PeDefs;g.sf=l.PeFactory;g.AC=l.PeVertcs;g.fj=l.PeCSTransformations;g.zC=l.PeGTTransformations;g.GL=l.PeGeogtran;g.FL=l.PeFactoryCodechange;g.yC=l.PeGCSExtent;g.Jg=l.PePCSInfo;g.HL=l.PeHorizon;g.EL=l.PeCoordsys;g.np=l.PeGTlistExtended;g.np.PE_GTLIST_OPTS_USE_DEFAULT=128;g.sf.initialize(null);g.Fx=l.PeGTlistExtendedEntry;
g.sf.fromString(g.Vc.PE_TYPE_UNIT,'UNIT["Meter",1.0]')};return t}();g.sf=null;g.AC=null;g.EL=null;g.HL=null;g.Jg=null;g.np=null;g.Fx=null;g.yC=null;g.FL=null;g.GL=null;g.Vc=null;g.zC=null;g.fj=null})(y||(y={}));(function(g){var t=function(){function l(){}l.Mb=function(c,a){return 0<=a?l.R(c):-l.R(c)};l.R=function(c){return 0>c?-c:c};l.ti=function(c){return 3.552713678800501E-15>c};l.xC=function(c,a,b){return l.R(c-a)<=b*(1+(l.R(c)+l.R(a))/2)};l.aa=function(c,a){return l.xC(c,a,3.552713678800501E-15)};
l.AL=function(c){return 3.552713678800501E-15>=l.R(c)};l.Ed=function(c){return l.AL(c)};return l}();g.s=t;g.G=function(){function l(){}l.hp=function(c,a){c=t.R(c);a=t.R(a);var b=0;0!=c+a&&(c>a?(b=a/c,b=c*Math.sqrt(1+b*b)):(b=c/a,b=a*Math.sqrt(1+b*b)));return b};l.Yq=function(c,a,b,d,e){for(var f=[0,0,0],h=[0,0,0],k=0;2>=k;k++)a[k]-=c[k],b[k]-=a[k];b=f[1]*h[2]-f[2]*h[1];a=f[2]*h[0]-f[0]*h[2];f=f[0]*h[1]-f[1]*h[0];c=-1*(b*c[0]+a*c[1]+f*c[2]);d[0]=b;d[1]=a;d[2]=f;d[3]=c;h=l.qn(d);d[0]/=h;d[1]/=h;d[2]/=
h;d[3]/=h;0!=e&&(h=t.Ed(f)?t.Ed(c)?t.Mb(1,a):-t.Mb(1,c):t.Mb(1,f),h*=t.Mb(1,e),d[0]*=h,d[1]*=h,d[2]*=h,d[3]*=h)};l.tx=function(c,a,b){b[0]=c[1]*a[2]-a[1]*c[2];b[1]=c[2]*a[0]-a[2]*c[0];b[2]=c[0]*a[1]-a[0]*c[1]};l.Pt=function(c,a){return c[0]*a[0]+c[1]*a[1]+c[2]*a[2]};l.qn=function(c){return l.hp(l.hp(c[0],c[1]),c[2])};l.cl=function(c,a,b,d,e,f,h,k){c=l.n(c,a,b);var m=Math.cos(b);f.u=(c+e)*m*Math.cos(d);h.u=(c+e)*m*Math.sin(d);k.u=(c*(1-a)+e)*Math.sin(b)};l.iO=function(c,a,b,d,e,f,h){var k=l.hp(a,b),
m=1*Math.sqrt(1-c),n=m/1;if(t.aa(k,0))f.u=0,e.u=t.Mb(1.570796326794897,d),h.u=t.R(d)-m;else{f.u=Math.atan2(b,a);b=Math.atan2(1*d,m*k);f=Math.cos(b);var p=Math.sin(b);a=m*c/(1-c);c*=1;b=Math.atan2(d+a*p*p*p,k-c*f*f*f);3.141592653589793<t.R(b)&&(b=t.Mb(3.141592653589793,b)-b);b=Math.atan(n*Math.tan(b));p=Math.sin(b);f=Math.cos(b);e.u=Math.atan2(d+a*p*p*p,k-c*f*f*f);1.570796326794897<t.R(e.u)&&(e.u=t.Mb(3.141592653589793,e.u)-e.u);b=Math.atan(n*Math.tan(e.u));p=Math.sin(b);f=Math.cos(b);h.u=(d-m*p)*
Math.sin(e.u)+(k-1*f)*Math.cos(e.u)}};l.n=function(c,a,b){b=Math.sin(b);return c/Math.sqrt(1-a*b*b)};l.kt=function(c,a){return Math.atan2(Math.sin(a)*(1-c),Math.cos(a))};l.Qj=function(c,a){return Math.atan2(Math.sin(a),Math.cos(a)*(1-c))};l.Tq=function(c,a){if(t.ti(c)||0==a||t.aa(t.R(a),1.570796326794897))return a;if(.006884661117170036>c){var b=Math.sqrt(1-c),d=(1-b)/(1+b),e=d*d,f=d*e,h=d*f,k=d*h,m=d*k,n=d*m,p=1.572916666666667*f-3.2578125*k+4.295068359375*n;c=2.142578125*h-6.071484375*m;b=3.129296875*
k-11.249837239583334*n;var q=4.775276692708333*m,r=7.958636765252976*n,u=Math.cos(2*a);return a+Math.sin(2*a)*(1.5*d-.84375*f+.525390625*k-.2688395182291667*n-p+b-r+u*(2*(1.3125*e-1.71875*h+1.650146484375*m)-4*c+6*q+u*(4*p-12*b+24*r+u*(8*c-32*q+u*(16*b-80*r+u*(32*q+64*u*r))))))}b=1-c;d=c/2;e=t.R(a);f=e*l.Wu(c)/(1.570796326794897*b);h=9999;m=e;for(e=0;1E-16<h&&50>e;e++)n=l.w(c,m),k=(l.fG(m,c)-d*Math.sin(2*m)/n)/b-f,n=1/(n*n*n),p=k/n,k=m-p,h=t.R(p),m=k;return 0<=a?m:-m};l.jW=function(c,a){return t.ti(a)?
c:c*l.Wu(a)/1.570796326794897};l.ca=function(c){c=l.iF(c,6.283185307179586);return 0>c?c+6.283185307179586:3.141592653589793>t.R(c)||t.aa(t.R(c),3.141592653589793)?c:c-6.283185307179586};l.iF=function(c,a){return c-Math.floor(c/a)*a};l.Bh=function(c,a){if(.006884661117170036>a){a=Math.sqrt(1-a);a=(1-a)/(1+a);var b=a*a,d=b*b;return c/(1+a)*(1+.25*b+.015625*d+.00390625*b*d)*1.570796326794897}return c*l.Wu(a)};l.Xq=function(c,a){var b=t.Mb(1,Math.sin(a));a=t.R(l.iF(a,3.141592653589793));a=1.570796326794897>=
a?a:3.141592653589793-a;return(t.aa(a,1.570796326794897)?a:Math.atan(Math.sqrt(1-c)*Math.tan(a)))*b};l.q=function(c,a,b){if(.006884661117170036>a){a=Math.sqrt(1-a);a=(1-a)/(1+a);var d=a*a,e=a*d,f=a*e,h=a*f,k=a*h,m=a*k,n=-.7291666666666666*e+.2278645833333333*h+.03987630208333334*m,p=.615234375*f-.21533203125*k,q=-.54140625*h+.20302734375*m,r=.48876953125*k,u=-.4488699776785715*m,v=Math.cos(2*b);return c/(1+a)*((1+.25*d+.015625*f+.00390625*k)*b+Math.sin(2*b)*(-1.5*a+.1875*e+.0234375*h+.00732421875*
m-n+q-u+v*(2*(.9375*d-.234375*f-.03662109375*k)-4*p+6*r+v*(4*n-12*q+24*u+v*(8*p-32*r+v*(16*q-80*u+v*(32*r+64*v*u)))))))}return c*(l.fG(b,a)-.5*a*Math.sin(2*b)/l.w(a,b))};l.w=function(c,a){a=Math.sin(a);return Math.sqrt(1-c*a*a)};l.Wu=function(c){return t.xC(c,1,2.220446049250313E-16)?1:1>c?l.Uw(0,1-c)-c/3*l.Rw(0,1-c):NaN};l.fG=function(c,a){var b=t.Mb(1,c);c=t.R(c);var d=Math.floor(c/1.570796326794897);if(1<a)a=0==c?0:NaN;else if(t.Ed(d))c=l.sin(c),a=c*l.Uw(1-c*c,1-a*c*c)-a/3*c*c*c*l.Rw(1-c*c,1-a*
c*c);else{var e=g.P.truncate(d%2),f=l.Wu(a);0<e?(c=Math.sin(1.570796326794897*(d+1)-c),a=c*l.Uw(1-c*c,1-a*c*c)-a/3*c*c*c*l.Rw(1-c*c,1-a*c*c),a=f*(d+1)-a):(c=Math.sin(c-1.570796326794897*d),a=c*l.Uw(1-c*c,1-a*c*c)-a/3*c*c*c*l.Rw(1-c*c,1-a*c*c),a=f*d+a)}return a*b};l.sin=function(c){c=l.ca(c);var a=t.Mb(1,c);c=t.R(c);return t.aa(c,3.141592653589793)?0:t.aa(c,1.570796326794897)?1*a:Math.sin(c)*a};l.Rw=function(c,a){var b=c,d=a,e=1;a=0;c=1;for(var f,h,k,m;;){f=.2*(b+d+3*e);h=(f-b)/f;k=(f-d)/f;m=(f-e)/
f;if(1E-4>t.R(h)&&1E-4>t.R(k)&&1E-4>t.R(m))break;m=Math.sqrt(d);f=Math.sqrt(e);m=Math.sqrt(b)*(m+f)+m*f;a+=c/(f*(e+m));c*=.25;b=.25*(b+m);d=.25*(d+m);e=.25*(e+m)}b=h*k;e=m*m;d=b-e;e=b-6*e;h=e+d+d;return 3*a+c*(1+e*(-.2142857142857143+.10227272727272728*e-.1730769230769231*m*h)+m*(.1666666666666667*h+m*(-.4090909090909091*d+.1153846153846154*m*b)))/(f*Math.sqrt(f))};l.Uw=function(c,a){for(var b,d,e,f,h=1;;h=.25*(h+b)){b=(c+a+h)/3;d=2-(b+c)/b;e=2-(b+a)/b;f=2-(b+h)/b;if(1E-4>t.R(d)&&1E-4>t.R(e)&&1E-4>
t.R(f))break;b=Math.sqrt(a);d=Math.sqrt(h);b=Math.sqrt(c)*(b+d)+b*d;c=.25*(c+b);a=.25*(a+b)}c=d*e-f*f;a=d*e*f;return(1+(.04166666666666666*c-.1-.06818181818181818*a)*c+.07142857142857142*a)/Math.sqrt(b)};l.Nw=function(c,a){if(t.ti(c)||0==a||t.aa(t.R(a),1.570796326794897))return a;if(.006884661117170036>c){var b=c*c,d=c*b,e=c*d,f=c*e,h=c*f,k=c*h,m=-(.02708333333333333*d+.03430059523809524*e+.03149181547619048*f+.02634359154541446*h+.02156896735835538*k),n=.007669890873015873*e+.01299603174603175*f+
.0148051353064374*h+.01454454953803912*k,p=-(.002275545634920635*f+.004830845032667949*h+.006558395368616723*k),q=6.957236677288761E-4*h+.001775193002406544*k,r=-(2.17324089394402E-4*k),u=Math.cos(2*a);return a+Math.sin(2*a)*(-(.5*c+.2083333333333333*b+.09375*d+.04878472222222222*e+.02916666666666667*f+.01938905423280423*h+.01388255931712963*k)-m+p-r+u*(2*(.1041666666666667*b+.0875*d+.06050347222222222*e+.04151785714285714*f+.02958958540013228*h+.02203667534722222*k)-4*n+6*q+u*(4*m-12*p+24*r+u*(8*
n-32*q+u*(16*p-80*r+u*(32*q+64*u*r))))))}0==a||t.aa(t.R(a),1.570796326794897)?b=a:(d=Math.sqrt(c),e=d*Math.sin(a),b=Math.tan(.7853981633974483+a/2)*Math.pow((1-e)/(1+e),d/2),b=2*Math.atan(b)-1.570796326794897);return b};l.xO=function(c,a){if(t.ti(c)||0==a||t.aa(t.R(a),1.570796326794897))return a;if(.006884661117170036>c){u=c*c;p=c*u;q=c*p;var b=c*q;r=c*b;var d=c*r,e=.05833333333333333*p+.07232142857142858*q+.05634300595238095*b+.0355325796406526*r+.020235546186067*d,f=.02653149801587302*q+.04379960317460317*
b+.0429211791776896*r+.03255384637546096*d,h=.01294022817460318*b+.02668104344536636*r+.03155651254609588*d,k=.00659454790965208*r+.0163075268674227*d,m=.003463473736911237*d,n=Math.cos(2*a);return a+Math.sin(2*a)*(.5*c+.2083333333333333*u+.08333333333333333*p+.03611111111111111*q+.01875*b+.01195601851851852*r+.008863673941798942*d-e+h-m+n*(2*(.1458333333333333*u+.1208333333333333*p+.07039930555555556*q+.03616071428571429*b+.01839451058201058*r+.01017113095238095*d)-4*f+6*k+n*(4*e-12*h+24*m+n*(8*
f-32*k+n*(16*h-80*m+n*(32*k+64*n*m))))))}var p=Math.sqrt(c),q=p/2,r=Math.tan(.7853981633974483+a/2);c=0;e=1;for(var u=a;0!=e;u=d)if(b=p*Math.sin(u),d=r*Math.pow((1+b)/(1-b),q),d=2*Math.atan(d)-1.570796326794897,c++,t.aa(d,u)||3E4<c)e=0;return u};return l}()})(y||(y={}));(function(g){var t=function(){function l(c){this.vl=this.Rs=null;this.Fv=!1;this.vA=this.wA=0;this.CH=new g.h;this.SH=new g.h;this.zA=!1;this.xq=new g.l;this.rH=this.pw=0;this.qw=null;this.Al=!1;this.Fo=null;this.Sz=0;this.Te=c;this.xs=
g.Ab.uv(this.Te,0,!0);this.CH.Uc();this.SH.Uc();this.MH=NaN;var a=c.getCode();0<a?(this.Jk=a,g.sf.getCode(c)):this.Jk=g.sf.getCode(c);0>this.Jk&&(this.Jk=0);var b=this.Te.getType();this.eH=b==g.Vc.PE_TYPE_PROJCS?2:1;if(b==g.Vc.PE_TYPE_PROJCS&&!c.loadConstants())throw g.i.O("PeProjcs.loadConstants failed");a=b==g.Vc.PE_TYPE_GEOGCS?this.Te:this.Te.getGeogcs();b!=g.Vc.PE_TYPE_GEOGCS&&g.sf.getCode(a);this.Fo=c.getUnit();this.MH=a.getPrimem().getLongitude();this.rH=c=a.getUnit().getUnitFactor();c=Math.PI/
(180*c);1E-10>Math.abs(c-1)&&(c=1);this.vA=c;0!=(b&g.Vc.PE_TYPE_PROJCS)?(a=this.Te,this.wA=1/a.getUnit().getUnitFactor(),this.pw=.001/this.Te.getUnit().getUnitFactor(),this.qw=g.Jg.generate(a,g.Jg.PE_PCSINFO_OPTION_NONE),this.Al=this.qw.isPannableRectangle(),this.Sz=g.Ab.pN(this.qw.getCentralMeridian(),this.vA)):(this.zA=this.Al=!0,this.wA=0,b=1/a.getUnit().getUnitFactor(),this.pw=.001/a.getDatum().getSpheroid().getAxis()*b,this.Sz=0);this.Al&&(this.rx(),this.yK(),this.eY(),this.xK(),this.cY(),this.dY())}
l.prototype.bs=function(){return this.Jk};l.prototype.jk=function(){return this.qw};l.Fy=function(c,a){return c==a?!0:null!=c&&null!=a&&0==c.Jk&&0==a.Jk?c.xs===a.xs:!1};l.prototype.Yc=function(){return this.Al};l.prototype.ih=function(c){c.L(this.to)};l.prototype.mv=function(){return this.to.v};l.prototype.lv=function(){return this.to.C};l.prototype.BR=function(c){c.L(this.rw)};l.prototype.cY=function(){var c=this.Te.getType();if(c==g.Vc.PE_TYPE_PROJCS){c=this.Te;var a=this.jk().getCentralMeridian(),
b=c.getGeogcs();if(null==b)throw g.i.ga("internal error");b=1/b.getUnit().getUnitFactor()*Math.PI;a=[[a+b,0]];g.fj.geogToProj(c,1,a);a=a[0][0];b=c.getParameters()[g.Vc.PE_PARM_X0].getValue();var d=this.nl();c=new g.l;d.A(c);d=Math.abs(a-b);a=d+b;b=-1*d+b;d=c.H;c=c.F;var e=new g.l;e.L(b,c,a,d);null==this.to&&(this.to=e)}else if(c==g.Vc.PE_TYPE_GEOGCS)b=1/this.Te.getUnit().getUnitFactor()*Math.PI,c=new g.l,c.L(-b,-b/2,b,b/2),null==this.to&&(this.to=c);else throw g.i.ga("internal error");};l.prototype.dY=
function(){var c=this.Te.getType();if(c==g.Vc.PE_TYPE_PROJCS){var a=this.Te;c=this.jk().getCentralMeridian();a=a.getGeogcs();if(null==a)throw g.i.ga("internal error");a=1/a.getUnit().getUnitFactor()*Math.PI;var b=this.Wr(),d=new g.l;b.A(d);b=new g.l;b.L(c-a,d.F,c+a,d.H);null==this.rw&&(this.rw=b)}else if(c==g.Vc.PE_TYPE_GEOGCS)a=1/this.Te.getUnit().getUnitFactor()*Math.PI,c=new g.l,c.L(-a,-a/2,a,a/2),null==this.rw&&(this.rw=c);else throw g.i.ga("internal error");};l.prototype.df=function(){return this.vA};
l.prototype.rm=function(){return this.wA};l.prototype.Wr=function(){if(this.Al)return this.vl;var c=this.vl;if(null!=c)return c;this.rx();return this.vl};l.prototype.Xr=function(){if(this.Al)return null;if(null!=this.vl)return this.TG;this.rx();return this.TG};l.prototype.rx=function(){if(this.Te.getType()==g.Vc.PE_TYPE_PROJCS){var c=this.Te,a=c.getGeogcs(),b=c.horizonGcsGenerate();if(null!=b){var d=b[0].getNump(),e=b[0].getKind();c=0<b[0].getInclusive();var f=this.df(),h=90*f,k=360*f,m=370*f,n=180*
f*g.Vc.PE_HORIZON_DELTA/Math.PI,p=new g.l,q=null;if(1<d)for(var r=1;r<d;r++)if(b[r].getKind()==g.Vc.PE_HORIZON_LINE){null==q&&(q=new g.Ua);var u=b[r].getCoord();q.mx(u[0][0],u[0][1]);q.yj(u[1][0],u[1][1])}if(e==g.Vc.PE_HORIZON_RECT)b=b[0].getCoord(),p.L(b[0][0],b[0][1]),p.$b(b[1][0],b[1][1]),Math.abs(p.H-h)<1E-7*n&&(p.H=h),Math.abs(p.F+h)<1E-7*n&&(p.F=-h),p.S()>m&&(b=-400*f,p.L(b,p.F,b+5*k,p.H)),b=new g.Gh(p),null==this.vl&&(this.vl=b,this.Fv=c);else{m=new g.Ea;k=this.jk().isGcsHorizonMultiOverlap();
p=g.du.TE(a,g.eu.Integer64);if(k){m=new g.bL;n=g.Hh.local().X(m,p,null);for(r=0;r<d;r++)if(b[r].getKind()==g.Vc.PE_HORIZON_POLY){a=b[r].getSize();f=b[r].getCoord();e=[];for(h=0;h<a;h++)e[h]=g.h.construct(f[h][0],f[h][1]);b[r].getInclusive();k&&(f=new g.Ea,f.Yk(e,a-1),m.QX(f),n.se())}m=n.next()}else for(r=0;r<d;r++)if(b[r].getKind()==g.Vc.PE_HORIZON_POLY){a=b[r].getSize();f=b[r].getCoord();k=[];for(h=0;h<a;h++)k[h]=g.h.construct(f[h][0],f[h][1]);b[r].getInclusive();m.Yk(k,a-1)}c?g.Vk.local().wn(m,
p,1):g.mp.local().wn(m,p,1);g.ej.local().wn(m,p,1);null==this.vl&&(this.vl=m,this.Fv=c,this.TG=q)}}}};l.prototype.ev=function(){if(this.Al)return this.Fv;null==this.vl&&this.rx();return this.Fv};l.prototype.yK=function(){if(2==this.eH){var c=this.Te.horizonPcsGenerate();if(null!=c){var a=c[0].getKind();c[0].getInclusive();var b=c[0].getNump(),d=!1;if(a==g.Vc.PE_HORIZON_RECT)c=c[0].getCoord(),b=new g.l,b.L(c[0][0],c[0][1]),b.$b(c[1][0],c[1][1]),c=new g.Gh(b);else{a=-1;for(d=0;d<b;d++)c[d].getKind()==
g.Vc.PE_HORIZON_POLY&&(a=d);d=c[a].getSize()-1;c=c[a].getCoord();b=[];for(a=0;a<d;a++)b[a]=g.h.construct(c[a][0],c[a][1]);c=a=new g.Ea;a.Yk(b,d);d=!0}this.jk().isDensificationNeeded()&&(b=1E5*this.rm(),c=g.Yl.local().X(c,b,null));d&&(d=new g.Gh,c.dn(d),c.Je(),c.Rb(),c.lR(),g.Vk.local().wn(c,null,1));null==this.Rs&&(this.Rs=c)}}};l.prototype.nl=function(){if(this.Al)return this.Rs;var c=this.Rs;if(null!=c)return c;this.yK();return this.Rs};l.prototype.eY=function(){if(this.Te.getType()==g.Vc.PE_TYPE_PROJCS){var c=
90*this.df();c=[[0,c],[0,-c]];g.fj.geogToProj(this.Te,2,c);var a=this.jk(),b=a.getNorthPoleLocation()!=g.Jg.PE_POLE_OUTSIDE_BOUNDARY;a=a.getSouthPoleLocation()!=g.Jg.PE_POLE_OUTSIDE_BOUNDARY;this.zA||(b&&this.CH.oa(c[0][0],c[0][1]),a&&this.SH.oa(c[1][0],c[1][1]))}this.zA=!0};l.prototype.xK=function(){if(1==this.eH){var c=400*this.df();this.xq.L(-c,-c,c,c)}else c=g.Jg.generate(this.Te,g.Jg.PE_PCSINFO_OPTION_DOMAIN),c=g.l.construct(c.getDomainMinx(),c.getDomainMiny(),c.getDomainMaxx(),c.getDomainMaxy()),
this.xq.B()&&this.xq.L(c)};l.prototype.dR=function(c){this.Al&&c.L(this.xq);this.xq.B()&&this.xK();c.L(this.xq)};l.prototype.Wp=function(){return this.MH};l.prototype.zi=function(){return this.Sz};l.prototype.Jd=function(){return this.Fo};l.prototype.Yr=function(){return this.rH};return l}();g.BC=t})(y||(y={}));(function(g){var t=function(){function l(c){this.DT=c;this.xs=g.Ab.uv(c,0,!0);var a=c.getCode();this.ps=0<a?a:g.sf.getCode(c);0>this.ps&&(this.ps=0);this.Fo=a=this.DT.getUnit();this.DH=1/a.getUnitFactor();
g.sf.getCode(c)}l.Fy=function(c,a){return c==a?!0:null!=c&&null!=a&&0==c.ps&&0==a.ps?c.xs===a.xs:!1};l.prototype.bs=function(){return this.ps};return l}();g.KL=t})(y||(y={}));(function(g){g.bh=function(){function t(){}t.vb=function(l,c,a,b,d,e,f,h){if(null!=e||null!=f||null!=h){b=g.G.ca(b);c=g.G.ca(c);a=g.G.ca(a);d=g.G.ca(d);1.570796326794897<g.s.R(a)&&(a=g.s.Mb(3.141592653589793,a)-a,c=g.G.ca(c+3.141592653589793));1.570796326794897<g.s.R(d)&&(d=g.s.Mb(3.141592653589793,d)-d,b=g.G.ca(b+3.141592653589793));
var k=g.G.ca(b-c);if(g.s.aa(a,d)&&(g.s.aa(c,b)||g.s.aa(g.s.R(a),1.570796326794897)))null!=e&&(e.u=0),null!=f&&(f.u=0),null!=h&&(h.u=0);else{if(g.s.aa(a,-d)){if(g.s.aa(g.s.R(a),1.570796326794897)){null!=e&&(e.u=3.141592653589793*l);null!=f&&(f.u=0<a?g.G.ca(3.141592653589793-g.G.ca(b)):g.G.ca(b));null!=h&&(h.u=0<a?g.G.ca(b):g.G.ca(3.141592653589793-g.G.ca(b)));return}if(g.s.aa(g.s.R(k),3.141592653589793)){null!=e&&(e.u=3.141592653589793*l);null!=f&&(f.u=0);null!=h&&(h.u=0);return}}var m=1.570796326794897==
g.s.R(a)?0:Math.cos(a),n=Math.sin(a),p=1.570796326794897==g.s.R(d)?0:Math.cos(d),q=Math.sin(d),r=1.570796326794897==g.s.R(k)?0:Math.cos(k),u=3.141592653589793==g.s.R(k)?0:Math.sin(k);if(null!=e){var v=Math.sin((d-a)/2);k=Math.sin(k/2);e.u=2*Math.asin(Math.sqrt(v*v+m*p*k*k))*l}null!=f&&(f.u=g.s.aa(g.s.R(a),1.570796326794897)?0>a?b:g.G.ca(3.141592653589793-b):Math.atan2(p*u,m*q-n*p*r));null!=h&&(g.s.aa(g.s.R(d),1.570796326794897)?h.u=0>d?c:g.G.ca(3.141592653589793-c):(h.u=Math.atan2(m*u,q*m*r-p*n),
h.u=g.G.ca(h.u+3.141592653589793)))}}};t.vf=function(l,c,a,b,d,e,f){if(null!=e||null!=f){c=g.G.ca(c);a=g.G.ca(a);1.570796326794897<g.s.R(a)&&(a=g.s.Mb(3.141592653589793,a)-a,c=g.G.ca(c+3.141592653589793));g.s.aa(g.s.R(a),1.570796326794897)&&(c=0);d=g.G.ca(d);var h=g.s.aa(g.s.R(d),1.570796326794897)?0:Math.cos(d),k=g.s.aa(g.s.R(d),3.141592653589793)?0:Math.sin(d),m=g.s.aa(g.s.R(a),1.570796326794897)?0:Math.cos(a),n=Math.sin(a);l=b/l;b=g.s.aa(g.s.R(l),1.570796326794897)?0:Math.cos(l);var p=g.s.aa(g.s.R(l),
3.141592653589793)?0:Math.sin(l),q=Math.asin(n*b+m*p*h);null!=f&&(f.u=q);null!=e&&(e.u=g.s.aa(g.s.R(q),1.570796326794897)?g.s.aa(a,-q)?0>q?d:g.G.ca(3.141592653589793-d):c:g.s.aa(g.s.R(a),1.570796326794897)&&g.s.aa(l,3.141592653589793)?0>a?d:g.G.ca(3.141592653589793-d):g.G.ca(c+Math.atan2(p*k,m*b-n*p*h)))}};return t}()})(y||(y={}));(function(g){g.Wk=function(){function t(){}t.vb=function(l,c,a,b,d,e,f,h,k){var m=new g.ha(0),n=new g.ha(0),p=[0,0,0],q=[0,0,0],r=[0,0,0],u=new g.ha(0),v=new g.ha(0),w=
new g.ha(0),z=new g.ha(0),x=new g.ha(0);if(null!=f||null!=h||null!=k)if(g.s.ti(c))g.bh.vb(l,a,b,d,e,f,h,k);else{d=g.G.ca(d);a=g.G.ca(a);var A=g.G.ca(d-a);if(g.s.aa(b,e)&&(g.s.aa(a,d)||g.s.aa(g.s.R(b),1.570796326794897)))null!=f&&(f.u=0),null!=h&&(h.u=0),null!=k&&(k.u=0);else{if(g.s.aa(b,-e)){if(g.s.aa(g.s.R(b),1.570796326794897)){null!=f&&(f.u=2*g.G.Bh(l,c));null!=h&&(h.u=0<b?g.G.ca(3.141592653589793-g.G.ca(d)):g.G.ca(d));null!=k&&(k.u=0<b?g.G.ca(d):g.G.ca(3.141592653589793-g.G.ca(d)));return}g.s.aa(g.s.R(A),
3.141592653589793)&&(null!=f&&(f.u=2*g.G.Bh(l,c)),null!=h&&(h.u=0),null!=k&&(k.u=0))}else if(g.s.aa(g.s.R(b),1.570796326794897)||g.s.aa(g.s.R(e),1.570796326794897))g.s.aa(g.s.R(b),1.570796326794897)?a=d:d=a;var B=0;if(0>A){B=1;var C=a;a=d;d=C;C=b;b=e;e=C}A=g.G.kt(c,b);var D=g.G.kt(c,e);if(null!=h||null!=k)g.bh.vb(l,a,A,d,D,null,m,n),m=Math.atan2(Math.sin(m.u)*Math.cos(b-A),Math.cos(m.u)),n=Math.atan2(Math.sin(n.u)*Math.cos(e-D),Math.cos(n.u)),0!=B&&(C=m,m=n,n=C),null!=h&&(h.u=m),null!=k&&(k.u=n);
null!=f&&(g.G.cl(1,c,b,a,0,w,z,x),p[0]=w.u,p[1]=z.u,p[2]=x.u,g.G.cl(1,c,e,d,0,w,z,x),q[0]=w.u,q[1]=z.u,q[2]=x.u,r[0]=p[1]*q[2]-q[1]*p[2],r[1]=-(p[0]*q[2]-q[0]*p[2]),r[2]=p[0]*q[1]-q[0]*p[1],c=1-g.G.w(c,g.G.Xq(c,g.G.Qj(c,Math.acos(r[2]/Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]))))),c*=2-c,h=Math.atan2(-r[1],-r[0]),r=g.G.ca(h-1.570796326794897),h=g.G.ca(h+1.570796326794897),r=g.s.R(g.G.ca(a-r))<=g.s.R(g.G.ca(a-h))?r:h,g.bh.vb(1,r,0,a,A,u,null,null),g.bh.vb(1,r,0,d,D,v,null,null),3.141592653589793<u.u+
v.u&&(r=g.G.ca(r+3.141592653589793),g.bh.vb(1,r,0,a,A,u,null,null),g.bh.vb(1,r,0,d,D,v,null,null)),u.u*=g.s.Mb(1,b),v.u*=g.s.Mb(1,e),u.u=g.G.Qj(c,u.u),v.u=g.G.Qj(c,v.u),a=g.G.q(l,c,u.u),l=g.G.q(l,c,v.u),f.u=g.s.R(l-a))}}};t.vf=function(l,c,a,b,d,e,f,h){var k=0,m=new g.ha(0),n=new g.ha(0),p=[0,0,0],q=[0,0,0],r=new g.ha(0),u=new g.ha(0),v=new g.ha(0);if(null!=f||null!=h)if(g.s.ti(c))g.bh.vf(l,a,b,d,e,f,h);else if(g.s.Ed(d))null!=f&&(f.u=a),null!=h&&(h.u=b);else if(e=g.G.ca(e),0>d&&(d=g.s.R(d),e=g.G.ca(e+
3.141592653589793)),a=g.G.ca(a),b=g.G.ca(b),1.570796326794897<g.s.R(b)&&(a=g.G.ca(a+3.141592653589793),b=g.s.Mb(3.141592653589793,b)-b),g.s.aa(g.s.R(b),1.570796326794897)&&(a=0),g.s.Ed(b)){var w=g.s.R(1.570796326794897-g.s.R(e));w=g.G.Qj(c,w);w=1-g.G.w(c,g.G.Xq(c,w));w*=2-w;l=d/g.G.Bh(l,w)*1.570796326794897;l=g.G.Tq(w,l);l=g.G.kt(w,l);g.bh.vf(1,a,b,l,e,f,m);null!=h&&(k=m.u);null!=h&&(h.u=g.G.Qj(c,k))}else if(g.s.aa(g.s.R(b),1.570796326794897))k=g.G.Bh(l,c),m=2*k,l=g.s.Mb(1.570796326794897,b),e=0<
l?g.G.ca(3.141592653589793-e):e,b=k-d,g.s.R(b)<=k?null!=f&&(f.u=e):(b=Math.floor(d/m),0==g.P.truncate(b%2)?(null!=f&&(f.u=e),d-=b*m):(null!=f&&(f.u=g.G.ca(e+3.141592653589793)),d=(b+1)*m-d),b=k-d),null!=h&&(h.u=g.G.Tq(c,b/k*l));else{w=g.G.kt(c,b);e=Math.atan2(Math.sin(e),Math.cos(e)*Math.cos(b-w));var z=g.P.truncate(g.s.Mb(1,w))*(1.570796326794897>=g.s.R(e)?1:-1);e=g.G.ca(a+Math.atan(Math.tan(e)*-Math.sin(w)));g.bh.vb(l,e,0,a,w,null,n,null);w=g.s.R(1.570796326794897-g.s.R(n.u));w=g.G.Qj(c,w);w=1-
g.G.w(c,g.G.Xq(c,w));w*=2-w;g.G.cl(1,c,0,e,0,r,u,v);p[0]=r.u;p[1]=u.u;p[2]=v.u;g.G.cl(1,c,b,a,0,r,u,v);q[0]=r.u;q[1]=u.u;q[2]=v.u;b=Math.acos((p[0]*q[0]+p[1]*q[1]+p[2]*q[2])/Math.sqrt(q[0]*q[0]+q[1]*q[1]+q[2]*q[2]));b=g.G.Qj(w,b);b=g.G.q(l,w,b)+d*z;d=0<b?n.u:g.G.ca(n.u+3.141592653589793);l=g.s.R(b)/g.G.Bh(l,w)*1.570796326794897;l=g.G.Tq(w,l);l=g.G.kt(w,l);g.bh.vf(1,e,0,l,d,f,m);null!=h&&(k=m.u);null!=h&&(h.u=g.G.Qj(c,k))}};return t}()})(y||(y={}));(function(g){g.$t=function(){function t(){}t.vb=function(l,
c,a,b,d,e,f,h,k){var m=0,n=0,p=0;if(null!=f||null!=h||null!=k)if(g.s.ti(c))g.bh.vb(l,a,b,d,e,f,h,k);else{var q=g.G.ca(d-a);if(g.s.aa(b,e)&&(g.s.Ed(q)||g.s.aa(g.s.R(b),1.570796326794897)))null!=f&&(f.u=0),null!=h&&(h.u=0),null!=k&&(k.u=0);else{if(g.s.aa(b,-e)){if(g.s.aa(g.s.R(b),1.570796326794897)){null!=f&&(f.u=2*g.G.Bh(l,c));null!=h&&(h.u=0<b?g.G.ca(3.141592653589793-g.G.ca(d)):g.G.ca(d));null!=k&&(k.u=0<b?g.G.ca(d):g.G.ca(3.141592653589793-g.G.ca(d)));return}g.s.aa(g.s.R(q),3.141592653589793)&&
(null!=f&&(f.u=2*g.G.Bh(l,c)),null!=h&&(h.u=0),null!=k&&(k.u=0))}else{if(g.s.aa(g.s.R(b),1.570796326794897)||g.s.aa(g.s.R(e),1.570796326794897)){g.Wk.vb(l,c,a,b,d,e,f,h,k);return}if(g.s.Ed(q)||g.s.aa(g.s.R(q),3.141592653589793)){g.Wk.vb(l,c,a,b,d,e,f,h,k);return}}var r=1-Math.sqrt(1-c),u=c/(1-c),v=l*(1-r);l=g.G.Xq(c,b);var w=g.G.Xq(c,e);c=1.570796326794897==g.s.R(l)?0:Math.cos(l);var z=Math.sin(l),x=1.570796326794897==g.s.R(w)?0:Math.cos(w),A=Math.sin(w),B=q,C=Math.cos(B),D=Math.sin(B),G=1,H=0;do{var K=
B,J=Math.sqrt(Math.pow(x*D,2)+Math.pow(c*A-z*x*C,2)),S=z*A+c*x*C,R=Math.atan2(J,S);if(0==J){G=0;break}var V=c*x*D/J;m=Math.cos(Math.asin(V));m*=m;n=S-2*z*A/m;1<g.s.R(n)&&(n=g.s.Mb(1,n));p=n*n;B=r/16*m*(4+r*(4-3*m));B=q+(1-B)*r*V*(R+B*J*(n+B*S*(2*p-1)));C=Math.cos(B);D=Math.sin(B);H++;if(3.141592653589793<g.s.R(B)&&30<H){G=0;break}}while(5E3>=H&&!g.s.aa(K,B));if(0!=G)u*=m,r=u*(256+u*(-128+u*(74-47*u)))/1024,null!=f&&(f.u=v*(1+u*(4096+u*(-768+u*(320-175*u)))/16384)*(R-r*J*(n+r/4*(S*(2*p-1)-r/6*n*(4*
J*J-3)*(4*p-3))))),null!=h&&(h.u=g.s.aa(g.s.R(b),1.570796326794897)?0>b?d:g.G.ca(3.141592653589793-d):Math.atan2(x*D,c*A-z*x*C)),null!=k&&(g.s.aa(g.s.R(e),1.570796326794897)?k.u=0>e?a:g.G.ca(3.141592653589793-a):(k.u=Math.atan2(c*D,c*A*C-z*x),k.u=g.G.ca(k.u+3.141592653589793)));else{B=g.s.Mb(3.141592653589793,q);S=z*A-c*x;R=Math.acos(S);J=Math.sin(R);m=1;H=V=0;do p=V,m*=m,C=m*m,V=r*m*(1+r+r*r),n=r*r*C*(1+2.25*r),G=r*r*r*C*m,C=1-.25*V+.1875*n-.1953125*G,V=.25*V-.25*n+.29296875*G,D=.03125*n-.05859375*
G,G*=.00651041666666667,n=S-2*z*A/m,1<g.s.R(n)&&(n=g.s.Mb(1,n)),m=Math.acos(n),S=Math.cos(2*m),K=Math.cos(3*m),V=g.s.aa(b,-e)?g.G.ca(3.141592653589793-q)/(3.141592653589793*r*C):g.G.ca(B-q)/(r*(C*R+V*J*n+D*Math.sin(2*R)*S+G*Math.sin(3*R)*K)),D=V*J/(c*x),B=1.570796326794897<g.s.R(q)?g.s.Mb(3.141592653589793,D)-Math.asin(D):Math.asin(D),C=Math.cos(B),J=Math.sqrt(Math.pow(x*D,2)+Math.pow(c*A-z*x*C,2)),R=3.141592653589793-Math.asin(g.s.R(J)),S=Math.cos(R),m=Math.cos(Math.asin(V)),H++;while(70>=H&&!g.s.aa(p,
V));null!=f&&(m*=m,u*=m,C=1+u*(4096+u*(-768+u*(320-175*u)))/16384,g.s.aa(b,-e)?f.u=3.141592653589793*v*C:(n=S-2*z*A/m,m=Math.acos(n),S=Math.cos(2*m),K=Math.cos(3*m),f.u=v*(C*R+u*(-512+u*(128+u*(-60+35*u)))/2048*J*n+u*(-4+5*u)/6144*u*u*Math.sin(2*R)*S+G*Math.sin(3*R)*K+-7.62939453125E-5*u*u*u*u*Math.sin(4*R)*Math.cos(4*m))));null!=h&&(g.s.Ed(b)&&g.s.Ed(e)?(m=Math.sqrt(1-V*V),h.u=Math.acos(m),0>q&&(h.u*=-1)):g.s.aa(g.s.R(b),1.570796326794897)?h.u=0>b?d:g.G.ca(3.141592653589793-d):(f=V/c,v=Math.sqrt(1-
f*f),0>c*A-z*x*Math.cos(B)&&(v*=-1),h.u=Math.atan2(f,v),g.s.aa(b,-e)&&g.s.R(g.G.ca(a-d))>3.141592653589793*(1-r*Math.cos(b))&&(0<b&&1.570796326794897>g.s.R(h.u)||0>b&&1.570796326794897<g.s.R(h.u))&&(h.u=g.s.Mb(3.141592653589793,h.u)-h.u)));if(null!=k)if(g.s.Ed(b)&&g.s.Ed(e))m=Math.sqrt(1-V*V),k.u=Math.acos(m),0<=q&&(k.u*=-1);else if(g.s.aa(g.s.R(e),1.570796326794897))k.u=0>e?a:g.G.ca(3.141592653589793-a);else if(q=V/x,f=Math.sqrt(1-q*q),v=Math.sin(B/2),0>Math.sin(w-l)-2*c*A*v*v&&(f*=-1),k.u=Math.atan2(q,
f),k.u=g.G.ca(k.u+3.141592653589793),g.s.aa(b,-e)&&!g.s.Ed(b)&&!g.s.aa(g.s.R(b),1.570796326794897)&&g.s.R(g.G.ca(a-d))>3.141592653589793*(1-r*Math.cos(b))&&(null!=h?v=h.u:(f=V/c,v=Math.sqrt(1-f*f),0>c*A-z*x*Math.cos(B)&&(v*=-1),v=Math.atan2(f,v),g.s.aa(b,-e)&&g.s.R(g.G.ca(a-d))>3.141592653589793*(1-r*Math.cos(b))&&(0<b&&1.570796326794897>g.s.R(v)||0>b&&1.570796326794897<g.s.R(v))&&(v=g.s.Mb(3.141592653589793,v)-v)),1.570796326794897>=g.s.R(v)&&1.570796326794897<g.s.R(k.u)||1.570796326794897<=g.s.R(v)&&
1.570796326794897>g.s.R(k.u)))k.u=-1*g.G.ca(k.u+3.141592653589793)}}}};t.vf=function(l,c,a,b,d,e,f,h){if(null!=f||null!=h)if(g.s.ti(c))g.bh.vf(l,a,b,d,e,f,h);else if(e=g.G.ca(e),g.s.aa(g.s.R(b),1.570796326794897)||g.s.Ed(e)||g.s.aa(g.s.R(e),3.141592653589793))g.Wk.vf(l,c,a,b,d,e,f,h);else{var k=1.570796326794897==g.s.R(e)?0:Math.cos(e),m=3.141592653589793==g.s.R(e)?0:Math.sin(e);g.s.aa(g.s.R(b),1.570796326794897)&&(a=0);e=1-Math.sqrt(1-c);var n=g.G.Xq(c,b);b=1.570796326794897==g.s.R(n)?0:Math.cos(n);
var p=Math.sin(n);n=Math.atan2(Math.tan(n),k);var q=b*m,r=q*q,u=1-r,v=c/(1-c)*u;c=v*(256+v*(-128+v*(74-47*v)))/1024;var w=c/4,z=c/6,x=d/(l*(1-e)*(1+v*(4096+v*(-768+v*(320-175*v)))/16384)),A=x;do{var B=A;d=1.570796326794897==g.s.R(A)?0:Math.cos(A);v=3.141592653589793==g.s.R(A)?0:Math.sin(A);var C=v*v;l=Math.cos(2*n+A);A=l*l;A=c*v*(l+w*(d*(2*A-1)-z*l*(4*C-3)*(4*A-3)))+x}while(!g.s.aa(B,A));d=1.570796326794897==g.s.R(A)?0:Math.cos(A);v=3.141592653589793==g.s.R(A)?0:Math.sin(A);null!=f&&(m=Math.atan2(v*
m,b*d-p*v*k),u=e/16*u*(4+e*(4-3*u)),l=Math.cos(2*n+A),f.u=g.G.ca(a+(m-(1-u)*e*q*(A+u*v*(l+u*d*(2*l*l-1))))));null!=h&&(u=p*v-b*d*k,u=(1-e)*Math.sqrt(r+u*u),h.u=Math.atan2(p*d+b*v*k,u))}};return t}()})(y||(y={}));(function(g){g.CC=function(){function t(){}t.vb=function(l,c,a,b,d,e,f,h,k){var m=g.G.ca(d-a),n=g.s.aa(g.s.R(b),1.570796326794897),p=g.s.aa(g.s.R(e),1.570796326794897);if(g.s.aa(b,e)&&(g.s.Ed(m)||n))null!=f&&(f.u=0),null!=h&&(h.u=0),null!=k&&(k.u=0);else{if(g.s.ti(c)){var q=Math.sin(b),r=
Math.sin(e);q=Math.sqrt((1+q)/(1-q));r=Math.sqrt((1+r)/(1-r));q=Math.log(r)-Math.log(q);q=Math.atan2(m,q);null!=f&&(f.u=g.s.aa(b,e)?g.s.R(l*Math.cos(b)*m):g.s.R((l*e-l*b)/Math.cos(q)))}else r=g.G.Nw(c,e),q=Math.sin(g.G.Nw(c,b)),r=Math.sin(r),q=Math.sqrt((1+q)/(1-q)),r=Math.sqrt((1+r)/(1-r)),q=Math.log(r)-Math.log(q),q=Math.atan2(m,q),null!=f&&(g.s.aa(b,e)?f.u=g.s.R(l*m*Math.cos(b)/g.G.w(c,b)):(m=g.G.q(l,c,b),l=g.G.q(l,c,e),f.u=g.s.R((l-m)/Math.cos(q))));if(null!=h||null!=k)f=g.G.ca(q+3.141592653589793),
n&&p||!n&&!p||(n?q=0>b?d:g.G.ca(3.141592653589793-d):p&&(f=0>e?a:g.G.ca(3.141592653589793-a))),null!=h&&(h.u=q),null!=k&&(k.u=f)}};t.vf=function(l,c,a,b,d,e,f,h){e=g.G.ca(e);0>d&&(d=g.s.R(d),e=g.G.ca(e+3.141592653589793));g.s.ti(c)?g.s.aa(g.s.R(b),1.570796326794897)?(a=0>b?e:g.G.ca(3.141592653589793-e),e=d/l%6.283185307179586,3.141592653589793>=e?l=b-g.s.Mb(e,b):(a=g.G.ca(a+3.141592653589793),l=-b+g.s.Mb(e-3.141592653589793,b))):g.s.aa(g.s.R(e),1.570796326794897)?(a=g.G.ca(a+g.s.Mb(d,e)/(l*Math.cos(b))),
l=b):(l=b+d*Math.cos(e)/l,1.570796326794897<g.s.R(l)&&(l=1.570796326794897),g.s.aa(g.s.R(l),1.570796326794897)&&(g.s.Ed(e)||g.s.aa(g.s.R(e),3.141592653589793))||(1.570796316258184<g.s.R(l)&&(l=g.s.Mb(1.570796316258184,l)),c=Math.sin(b),b=Math.sin(l),c=Math.sqrt((1+c)/(1-c)),b=Math.sqrt((1+b)/(1-b)),c=Math.log(b)-Math.log(c),a=g.G.ca(a+Math.tan(e)*c))):g.s.aa(g.s.R(b),1.570796326794897)?(a=0>b?e:g.G.ca(3.141592653589793-e),e=d/g.G.jW(l,c),e%=6.283185307179586,3.141592653589793>=e?l=b-g.s.Mb(e,b):(a=
g.G.ca(a+3.141592653589793),l=-b+g.s.Mb(e-3.141592653589793,b)),l=g.G.Tq(c,l)):g.s.aa(g.s.R(e),1.570796326794897)?(a=g.G.ca(a+g.s.Mb(d,e)*g.G.w(c,b)/(l*Math.cos(b))),l=b):(l=1.570796326794897*(d*Math.cos(e)+g.G.q(l,c,b))/g.G.Bh(l,c),1.570796326794897<g.s.R(l)&&(l=g.s.Mb(1.570796326794897,l)),l=g.G.Tq(c,l),g.s.aa(g.s.R(l),1.570796326794897)&&(g.s.Ed(e)||g.s.aa(g.s.R(e),3.141592653589793))||(d=g.G.Nw(c,b),b=g.G.Nw(c,l),1.570796316258184<g.s.R(b)&&(b=g.s.Mb(1.570796316258184,l),l=g.G.xO(c,b)),c=Math.sin(d),
b=Math.sin(b),c=Math.sqrt((1+c)/(1-c)),b=Math.sqrt((1+b)/(1-b)),c=Math.log(b)-Math.log(c),a=g.G.ca(a+Math.tan(e)*c)));null!=f&&(f.u=a);null!=h&&(h.u=l)};return t}()})(y||(y={}));(function(g){g.kb=function(){function t(){}t.Ny=function(l,c,a,b,d,e,f){g.$t.vb(l,c,a,b,d,e,null,f,null)};t.yi=function(l,c,a,b,d,e,f,h){g.$t.vf(l,c,a,b,d,e,f,h)};t.yd=function(l,c,a,b,d,e,f,h,k,m){switch(m){case 2:g.Wk.vb(l,c,a,b,d,e,f,h,k);break;case 3:g.DC.vb(l,c,a,b,d,e,f,h,k);break;case 1:g.CC.vb(l,c,a,b,d,e,f,h,k);break;
default:g.$t.vb(l,c,a,b,d,e,f,h,k)}};t.oj=function(l,c,a,b,d,e,f,h,k){switch(k){case 2:g.Wk.vf(l,c,a,b,d,e,f,h);break;case 3:g.DC.vf(l,c,a,b,d,e,f,h);break;case 1:g.CC.vf(l,c,a,b,d,e,f,h);break;default:g.$t.vf(l,c,a,b,d,e,f,h)}};return t}()})(y||(y={}));(function(g){var t=function(){function c(){this.y=this.x=null}c.construct=function(a){var b=new c;b.x=new g.Xb;b.x.set(a.x);b.y=new g.Xb;b.y.set(a.y);return b};c.LE=function(a,b){var d=new c;d.x=new g.Xb;d.x.set(a);d.y=new g.Xb;d.y.set(b);return d};
c.prototype.vg=function(){return this.x.vg()&&this.y.vg()};c.prototype.value=function(){return g.h.construct(this.x.value(),this.y.value())};return c}();g.mY=t;var l=function(){function c(){this.z=this.y=this.x=null}c.construct=function(a){var b=new c;b.x=new g.Xb;b.x.set(a.x);b.y=new g.Xb;b.y.set(a.y);b.z=new g.Xb;b.z.set(a.z);return b};c.LE=function(a,b,d){var e=new c;e.x=new g.Xb;e.x.set(a);e.y=new g.Xb;e.y.set(b);e.z=new g.Xb;e.z.set(d);return e};c.prototype.vg=function(){return this.x.vg()&&
this.y.vg()&&this.z.vg()};c.prototype.value=function(){return new g.Pd(this.x.value(),this.y.value(),this.z.value())};c.prototype.Qh=function(a){var b=new g.Xb,d=new g.Xb,e=new g.Xb;b.Ll(this.x,a.x);d.Ll(this.y,a.y);e.Ll(this.z,a.z);a=new g.Xb;a.cN(b,d);a.add(e);return a};c.prototype.UE=function(a){var b=new c;b.x.Ll(this.y,a.z);b.y.Ll(this.z,a.x);b.z.Ll(this.x,a.y);var d=new g.Xb,e=new g.Xb,f=new g.Xb;d.Ll(this.z,a.y);e.Ll(this.x,a.z);f.Ll(this.y,a.x);b.x.sub(d);b.y.sub(e);b.z.sub(f);return b};return c}();
g.nY=l;g.Hx=function(){function c(){}c.CP=function(a,b,d){var e=b.x;b=b.y;c.cl(1,a,Math.cos(e),Math.sin(e),Math.cos(b),Math.sin(b),d)};c.BP=function(a,b){var d=new g.Pd;c.CP(a,b,d);return d};c.cl=function(a,b,d,e,f,h,k){a/=Math.sqrt(1-b*h*h);k.L(a*f*d,a*f*e,a*(1-b)*h)};c.Vu=function(a,b){var d=new g.Xb,e=new g.Xb,f=new g.Xb,h=new g.Xb;d.cos(b.x);e.sin(b.x);f.cos(b.y);h.sin(b.y);var k=new g.Xb;k.set(h);k.Fg(h);k.Oo(a);k.Oo(-1);k.jN();k.sqrt();b=new g.Xb;b.set(1);b.lm(k);k=new g.Xb;k.set(b);k.Fg(f);
k.Fg(d);d=new g.Xb;d.set(b);d.Fg(f);d.Fg(e);e=new g.Xb;e.set(b);e.Oo(1-a);e.Fg(h);return l.LE(k,d,e)};c.LS=function(a,b,d,e){if(Math.abs(b.x-d.x)>Math.PI||Math.abs(b.y)>.5*Math.PI||Math.abs(d.y)>.5*Math.PI||(Math.abs(b.y)==.5*Math.PI||Math.abs(d.y)==.5*Math.PI)&&b.x!=d.x)return NaN;e=c.SA(e,Math.min(b.x,d.x),Math.max(b.x,d.x));if(!(new g.Pc(b.x,d.x)).contains(e))return NaN;var f=t.construct(b);d=t.construct(d);f=c.Vu(a,f);d=c.Vu(a,d);d=f.UE(d);if(d.z.vg())return b=b.y;var h=new g.Xb;h.set(d.x);h.lm(d.z);
h.Oo(-1);var k=new g.Xb;k.set(d.y);k.lm(d.z);k.Oo(-1);var m=new g.Xb;m.set(k);m.Fg(k);f=new g.Xb;f.set(h);f.Fg(h);f.add(m);f.sqrt();if(f.vg()||h.vg()&&k.vg())return b=b.y;b=Math.atan2(k.value(),h.value());b=Math.atan2(f.value()*Math.cos(b-e),1-a);e=c.BP(a,g.h.construct(e,b));a=new g.Pd(e.x,e.y,-e.z);e=d.value().Qh(e);a=d.value().Qh(a);Math.abs(a)<Math.abs(e)&&(b=-b);return b};c.Ez=function(a,b,d,e,f){f[0]=NaN;f[1]=NaN;if(Math.abs(b.x-d.x)>Math.PI||Math.abs(b.y)>.5*Math.PI||Math.abs(d.y)>.5*Math.PI||
(Math.abs(b.y)==.5*Math.PI||Math.abs(d.y)==.5*Math.PI)&&b.x!=d.x||Math.abs(e)>=.5*Math.PI||0<b.y&&0<d.y&&b.y>e&&d.y>e||0>b.y&&0>d.y&&b.y<e&&d.y<e)return 0;var h=t.construct(b),k=t.construct(d);h=c.Vu(a,h);k=c.Vu(a,k);var m=h.UE(k);if(m.z.vg())return(new g.Pc(b.y,d.y)).contains(e)?(f[0]=b.x,1):0;k=new g.Xb;k.set(m.x);k.lm(m.z);k.Oo(-1);h=new g.Xb;h.set(m.y);h.lm(m.z);h.Oo(-1);m=new g.Xb;m.set(h);m.Fg(h);var n=new g.Xb;n.set(k);n.Fg(k);n.add(m);n.sqrt();if(n.vg()||k.vg()&&h.vg())return 0==e?(f[0]=b.x,
f[1]=d.x,2):0;a=(1-a)*Math.tan(e)/n.value();if(1<Math.abs(a))return 0;a=Math.acos(a);m=Math.atan2(h.value(),k.value());k=Math.min(b.x,d.x);h=Math.max(b.x,d.x);d=c.SA(m-a,k,h);a=0!=e?c.SA(m+a,k,h):d;e=0;k<=d&&d<=h&&(f[e]=d,e++);a!=d&&k<=a&&a<=h&&(f[e]=a,e++,2==e&&Math.abs(f[0]-b.x)>Math.abs(f[1]-b.x)&&(b=f[0],f[0]=f[1],f[1]=b));return e};c.SA=function(a,b,d){a>d?(b=Math.ceil((a-d)/(2*Math.PI)),a-=2*b*Math.PI):a<b&&(b=Math.ceil((b-a)/(2*Math.PI)),a+=2*b*Math.PI);return a};return c}()})(y||(y={}));(function(g){g.SK=
function(){function t(){}t.RX=function(l,c){var a=8;0>a&&(a=8);var b=[0,0,0,0],d=new g.h;d.N(c);d.scale(9102==g.cb.uc(l).Jd().Gc()?1:g.cb.uc(l).Jd().ai/3.141592653589793*180);-180>d.x?(d.x-=d.x%360,-180>d.x&&(d.x+=360)):180<d.x&&(d.x-=d.x%360,180<d.x&&(d.x-=360));90<d.y&&(d.y=90);-90>d.y&&(d.y=-90);l=5*a;c=(l+31)/32;for(var e=-180,f=180,h=l-1,k=c-1;0<=k;k--)for(var m=h-32*k,n=Math.min(32,l-32*k),p=1;p<n;p+=2){var q=.5*(f+e);d.x>=q?(b[k]|=1<<m,e=q):f=q;m-=2;h-=2}e=-90;f=90;h=l-2;for(k=c-1;0<=k;k--)for(m=
h-32*k,n=Math.min(32,l-32*k),p=0;p<n;p+=2)q=.5*(f+e),d.y>=q?(b[k]|=1<<m,e=q):f=q,m-=2,h-=2;return t.YP(b,a,a)};t.YP=function(l,c,a){for(var b=[],d=0;d<c;d++)b[d]="";for(var e=d=0,f=0;f<c;f++){var h=l[d]>>e&31;e+=5;if(31<e){var k=37-e;h&=(1<<k)-1;e-=32;d++;h|=(l[d]&(1<<e)-1)<<k}b[c-1-f]="0123456789bcdefghjkmnpqrstuvwxyz".split("")[h]}if(a>c)for(f=0;f<a-c;f++)b.push("0");else a<c&&(b.length=a);return b.join("")};return t}()})(y||(y={}));(function(g){var t={gcstol:[0,2E-9,1,2.241706620489156E-9,2,2.313672246530541E-9,
3,8.98240164660333E-9,4,8.982433838020134E-9,5,8.982439417325895E-9,6,8.982466029667677E-9,7,8.982476760268133E-9,8,8.982492642167149E-9,9,8.98251968292634E-9,10,8.98253685210448E-9,11,8.982546725256576E-9,12,8.982557456049832E-9,13,8.98257333682596E-9,14,8.982575482995276E-9,15,8.982578488197342E-9,16,8.982579775336987E-9,17,8.9825840676828E-9,18,8.982599090925448E-9,19,8.982605529473397E-9,20,8.982609220517402E-9,21,8.982611968030573E-9,22,8.982616260407152E-9,23,8.982620552787834E-9,24,8.982633429954492E-9,
25,8.982637722351582E-9,26,8.98264416095491E-9,27,8.982646307158072E-9,28,8.982654891980968E-9,29,8.982667769246082E-9,30,8.982674207892485E-9,31,8.982680646548117E-9,32,8.982682792768713E-9,33,8.982685798042582E-9,34,8.982689231436652E-9,35,8.98269137766135E-9,36,8.98269266624163E-9,37,8.982705114087017E-9,38,8.982706830791106E-9,39,8.982711958374661E-9,40,8.982712839964735E-9,41,8.982717991496125E-9,42,8.982721424914803E-9,43,8.982723571154887E-9,44,8.982727863638127E-9,45,8.982730868942154E-9,
46,8.982734302370678E-9,47,8.982745033612112E-9,48,8.982751472369276E-9,49,8.982755764879183E-9,50,8.982762203651733E-9,51,8.982764776628385E-9,52,8.982766496171896E-9,53,8.98277722749025E-9,54,8.98278152002477E-9,55,8.98279933943848E-9,56,8.9829143024805E-9,57,8.982922161948598E-9,58,8.98292327314211E-9,59,8.982925667349601E-9,60,8.982932222965576E-9,61,8.982961298941316E-9,62,8.982965524049989E-9,63,8.982994818246099E-9,64,8.982994895706967E-9,65,8.98299489597736E-9,66,8.983000733443498E-9,67,8.983055097289157E-9,
68,8.983064111047368E-9,69,8.983111996941178E-9,70,8.983120447446023E-9,71,8.98312748954554E-9,72,8.983134531656096E-9,73,8.983141573777694E-9,74,8.983148615910332E-9,75,8.983152841195215E-9,76,8.983153545409748E-9,77,8.983153827095593E-9,78,8.98315396793852E-9,79,8.983154249624393E-9,80,8.983155658054012E-9,81,8.983960794340072E-9,82,8.984061344391998E-9,83,8.984072829255685E-9,84,8.984194981201908E-9,85,8.984275233099427E-9,86,8.984326127007554E-9,87,8.984330099816539E-9,88,8.98433275258421E-9,
89,8.984333047023206E-9,90,8.984333885258723E-9,91,8.984337959508212E-9,92,8.984365176209457E-9,93,8.984727360418079E-9,94,8.984901041679577E-9,95,8.98542662091587E-9,96,8.98610024130669E-9,97,8.992894229037531E-9,98,8.993203677616635E-9,99,8.993206178094346E-9,100,8.993216059187305E-9,101,8.99322029394808E-9,102,8.994627867045891E-9,103,9.467559984315793E-9,104,9.46881168618118E-9,105,9.980888154931644E-9,106,9.981105353606775E-9,107,9.983807356573187E-9,108,1.687060485811522E-8,109,1.688447560354875E-8,
110,2.176606011487185E-8,111,2.225078816042032E-8,112,2.348476432064694E-8,113,2.348765250187846E-8,114,2.378108974103778E-8,115,3.14559636297708E-8,116,3.297788621680806E-8,117,3.667892343788279E-8,118,4.235973644320739E-8,119,4.794625900676345E-8,120,7.262742998235812E-8,121,7.499447580246377E-8,122,7.525056410964318E-8,123,7.979913581209237E-8,124,9.662020153976783E-8,125,9.799175562353741E-8,126,9.897353517547472E-8,127,1.02313891987647E-7,128,1.081460541960784E-7,129,1.21905913857622E-7,130,
2.246893314238523E-7,131,2.297344808062643E-7,132,2.42984645941825E-7,133,2.754604784282804E-7,134,2.884548130346993E-7,135,3.370339971357784E-7,136,4.307953346848296E-7,137,5.208707228462029E-7,138,5.509209568565608E-7,139,6.452227422644406E-7,140,6.740679942715567E-7,141,6.861770001566745E-7,142,7.252630318111686E-7,143,7.441010326374328E-7,144,7.742672907173287E-7,145,9.629542775307953E-7,146,1.061032953945969E-6,147,1.143628333594458E-6,148,1.162186197019925E-6,149,1.36418522650196E-6,150,1.367441038498385E-6,
151,1.432394487827058E-6,152,1.736235742820677E-6,153,1.848250952034914E-6,154,1.909859317102744E-6,155,1.975716534933873E-6,156,2.122065907891938E-6,157,2.72837045300392E-6,158,3.183098861837907E-6,159,3.580986219567645E-6,160,3.819718634205488E-6,161,4.09255567950588E-6,162,4.407367654852486E-6,163,4.774648292756861E-6,164,5.161781938115525E-6,165,5.20870722846203E-6,166,5.729577951308232E-6,167,6.031134685587613E-6,168,6.987290184522236E-6,169,9.241254760174569E-6,170,1.145915590261646E-5],pcstol:[0,
6.666666666666667E-9,1,2E-8,2,4.970973863636364E-5,3,4.970978156565657E-5,4,4.970980410559237E-5,5,.001,6,.001093615055555556,7,.001093615194444445,8,.001093619003239988,9,.001093623110088878,10,.003280833333333333,11,.003280839895013123,12,.003280843014596366,13,.003280845583333334,14,.003280869330266636,15,.00497101413676763],newtoold:[2154,102110,2195,102200,2204,32036,2205,26979,2225,102641,2226,102642,2227,102643,2228,102644,2229,102645,2230,102646,2231,102653,2232,102654,2233,102655,2234,102656,
2235,102657,2236,102658,2237,102659,2238,102660,2239,102666,2240,102667,2241,102668,2242,102669,2243,102670,2246,102679,2247,102680,2248,102685,2249,102686,2250,102687,2254,102694,2255,102695,2257,102712,2258,102713,2259,102714,2260,102715,2261,102716,2262,102717,2263,102718,2264,102719,2267,102724,2268,102725,2271,102728,2272,102729,2274,102736,2275,102737,2276,102738,2277,102739,2278,102740,2279,102741,2283,102746,2284,102747,2285,102748,2286,102749,2287,102752,2288,102753,2289,102754,2312,23433,
2326,102140,2395,2091,2396,2092,2397,2166,2398,2167,2399,2168,2759,102229,2760,102230,2761,102248,2762,102249,2763,102250,2764,102251,2765,102252,2766,102241,2767,102242,2768,102243,2769,102244,2770,102245,2771,102246,2772,102253,2773,102254,2774,102255,2775,102256,2776,102257,2777,102258,2778,102259,2779,102260,2780,102266,2781,102267,2782,102261,2783,102262,2784,102263,2785,102264,2786,102265,2787,102268,2788,102269,2789,102270,2790,102271,2791,102272,2792,102273,2793,102274,2794,102275,2795,102276,
2796,102277,2797,102278,2798,102279,2799,102280,2800,102281,2801,102282,2802,102283,2803,102284,2804,102285,2805,102286,2806,102287,2807,102288,2808,102289,2809,102290,2810,102291,2811,102292,2812,102293,2813,102294,2814,102295,2815,102296,2816,102297,2817,102298,2818,102300,2819,102304,2820,102307,2821,102308,2822,102309,2823,102310,2824,102311,2825,102312,2826,102313,2827,102314,2828,102315,2829,102316,2830,102317,2831,102318,2832,102320,2833,102321,2834,102322,2835,102323,2836,102324,2837,102325,
2838,102326,2839,102327,2840,102330,2841,102334,2842,102335,2843,102336,2844,102337,2845,102338,2846,102339,2847,102340,2848,102341,2849,102342,2850,102343,2851,102344,2852,102345,2853,102346,2854,102347,2855,102348,2856,102349,2857,102350,2858,102351,2859,102352,2860,102353,2861,102354,2862,102355,2863,102356,2864,102357,2865,102358,2866,102361,2942,102167,2943,102169,2944,2139,2945,2140,2946,2141,2947,2142,2948,2143,2949,2144,2950,2145,2951,2146,2952,2147,2953,2036,2954,2291,2955,2153,2956,2152,
2957,2151,2958,2150,2959,2149,2960,2037,2961,2038,2962,2148,2965,2244,2966,2245,3003,102091,3004,102092,3005,102190,3060,2982,3067,102139,3072,102606,3074,102608,3075,102208,3077,102210,3078,102123,3080,102119,3081,102603,3082,102602,3083,102601,3088,65163,3089,102763,3090,102363,3092,102151,3093,102152,3094,102153,3095,102154,3096,102155,3097,102145,3098,102146,3099,102147,3100,102148,3101,102149,3102,2155,3107,102172,3110,102170,3111,102171,3119,2214,3158,102234,3159,102235,3160,102236,3336,2979,
3338,102006,3346,2600,3370,102126,3371,102127,3372,102130,3373,102131,3389,2577,3390,2694,3400,102184,3401,102185,3404,3359,3407,3366,3417,102675,3418,102676,3419,102677,3420,102678,3421,102707,3422,102708,3423,102709,3424,102711,3433,102651,3434,102652,3435,102671,3436,102672,3437,102710,3438,102730,3448,102095,3451,102681,3452,102682,3455,102735,3461,2063,3462,2064,3463,3073,3464,3076,3560,102742,3566,102743,3567,102744,3734,102722,3735,102723,3736,102755,3737,102756,3738,102757,3739,102758,3741,
102205,3742,102206,3743,102207,3748,102211,3750,102202,3751,102203,3759,102663,3760,102463,3764,102112,3770,102090,3771,102180,3772,102181,3773,102182,3775,102186,3776,102187,3777,102188,3800,102183,3801,102189,3812,102199,3814,102609,3815,102469,3819,104990,3821,104136,3824,104137,3825,102444,3826,102443,3827,102442,3828,102441,3857,102100,3889,104991,3906,104992,4048,103201,4049,103202,4050,103203,4051,103204,4056,103205,4057,103206,4058,103207,4059,103208,4060,103209,4061,103210,4062,103211,4063,
103212,4071,103213,4082,103214,4083,103215,4093,103216,4094,103217,4095,103218,4096,103219,4167,104108,4169,37252,4171,104107,4189,104110,4197,4234,4223,37223,4304,104304,4414,102201,4415,102762,4417,102764,4434,102765,4437,102647,4455,32029,4456,32018,4457,3454,4462,102439,4463,4466,4470,4469,4484,103794,4485,103795,4486,103796,4487,103797,4488,103798,4489,103799,4611,104104,4612,104111,4613,37255,4615,37247,4616,37250,4617,4140,4618,4291,4620,37211,4626,37235,4647,102362,4658,37204,4668,37201,4669,
4126,4672,37217,4673,104125,4675,37220,4684,37232,4698,4631,4707,37213,4708,37231,4709,37212,4710,37238,4711,37214,4712,37237,4713,37208,4714,37215,4715,37253,4716,37216,4717,37239,4719,37219,4722,37242,4724,37233,4725,37222,4727,37224,4728,37246,4729,37226,4730,37227,4731,37228,4732,37229,4733,37230,4734,37251,4735,37259,4736,37254,4739,37205,4758,104133,4760,37001,4762,104114,4826,102214,5013,104142,5014,102331,5015,102332,5016,102333,5173,102085,5174,102086,5175,102087,5176,102088,5177,102089,
5178,102040,5179,102080,5185,102081,5186,102082,5187,102083,5188,102084,5221,102066,5246,104100,5247,102490,5324,104144,5325,102420,5329,2934,5365,104143,5367,102305,5451,104132,5513,102065,5514,102067,5519,102111,5520,31461,5646,102745,5839,5388,5858,5532,5879,4474,6207,104256,6244,102769,6245,102790,6246,102770,6247,102771,6248,102793,6249,102796,6250,102772,6251,102788,6252,102775,6253,102795,6254,102781,6255,102767,6256,102774,6257,102768,6258,102797,6259,102789,6260,102780,6261,102783,6262,102787,
6263,102791,6264,102777,6265,102798,6266,102779,6267,102784,6268,102792,6269,102782,6270,102785,6271,102794,6272,102773,6273,102778,6274,102786,6275,102776,6311,104141,6318,104145,6322,104287,6325,104286,6328,102046,6329,102047,6330,102048,6331,102049,6332,102050,6333,102051,6334,102052,6335,102053,6336,102054,6337,102055,6338,102056,6339,102057,6340,102058,6341,102059,6342,102382,6343,102383,6344,102384,6345,102385,6346,102386,6347,102387,6348,102388,6350,102965,6355,102975,6356,102976,6391,6141,
6393,102966,6394,102977,6395,102978,6396,102979,6397,102980,6398,102981,6399,102982,6400,102983,6401,102984,6402,102985,6403,102986,6404,102988,6405,102991,6406,102987,6407,102990,6408,102989,6409,102992,6410,102993,6411,102995,6412,102994,6413,102996,6414,102962,6415,102997,6416,103003,6417,102998,6418,103004,6419,102999,6420,103005,6421,103E3,6422,103006,6423,103001,6424,103007,6425,103002,6426,103008,6427,103010,6428,103013,6429,103009,6430,103012,6431,103011,6432,103014,6433,103015,6434,103016,
6435,103017,6436,103018,6437,103019,6438,103022,6439,102967,6440,103021,6441,103024,6442,103020,6443,103023,6444,103025,6445,103027,6446,103026,6447,103028,6448,103030,6449,103033,6450,103029,6451,103032,6452,103031,6453,103034,6454,103035,6455,103037,6456,103036,6457,103038,6458,103039,6459,103041,6460,103040,6461,103042,6462,103043,6463,103045,6464,103044,6465,103046,6466,103047,6467,103049,6468,103048,6469,103050,6470,103051,6471,103052,6472,103053,6473,103054,6474,103055,6475,103056,6476,103057,
6477,103059,6478,103058,6479,103060,6480,103066,6481,103065,6482,103067,6483,103061,6484,103063,6485,103062,6486,103064,6487,103068,6488,103069,6489,103071,6490,103073,6491,103070,6492,103072,6493,103075,6494,103078,6495,103074,6496,103077,6497,102968,6498,103076,6499,103079,6500,103081,6501,103084,6502,103080,6503,103083,6504,103082,6505,103085,6506,103086,6507,103088,6508,102963,6509,103087,6510,103089,6511,103091,6512,103090,6513,103092,6514,103093,6515,103094,6516,103095,6518,103098,6519,103101,
6520,103097,6521,103100,6522,103099,6523,103102,6524,103103,6525,103104,6526,103105,6527,103106,6528,103108,6529,103111,6530,103107,6531,103110,6532,103109,6533,103112,6534,103114,6535,103118,6536,103113,6537,103117,6538,103116,6539,103120,6540,103115,6541,103119,6542,103121,6543,103122,6544,103123,6545,103125,6546,103124,6547,103126,6548,103127,6549,103129,6550,103128,6551,103130,6552,103131,6553,103133,6554,103132,6555,103134,6556,102969,6557,102970,6558,103135,6559,103137,6560,103136,6561,103138,
6562,103139,6563,103140,6564,103141,6565,103142,6566,103200,6567,103143,6568,103144,6569,103145,6570,103146,6571,103147,6572,103149,6573,103148,6574,103150,6575,103151,6576,103152,6577,103155,6578,103160,6579,102971,6580,102972,6581,103153,6582,103158,6583,103154,6584,103159,6585,103157,6586,103162,6587,103156,6588,103161,6589,103172,6590,103173,6592,103174,6593,103176,6594,103175,6595,103177,6596,103178,6597,103180,6598,103179,6599,103181,6600,103182,6601,103184,6602,103183,6603,103185,6605,103190,
6606,103186,6607,103189,6608,103188,6609,103191,6610,102973,6611,103192,6612,103196,6613,103193,6614,103197,6615,103195,6616,103199,6617,103194,6618,103198,6619,103164,6620,103163,6621,103165,6625,103170,6626,103169,6627,103171,6628,102520,6629,102521,6630,102522,6631,102523,6632,102524,6633,102527,6634,102493,6635,102494,6636,102496,6637,102495,6668,104020,6669,102610,6670,102611,6671,102612,6672,102613,6673,102614,6674,102615,6675,102616,6676,102617,6677,102618,6678,102619,6679,102620,6680,102621,
6681,102622,6682,102623,6683,102624,6684,102625,6685,102626,6686,102627,6687,102628,6688,102593,6689,102594,6690,102595,6691,102596,6692,102597,6783,104223,6784,102530,6785,102500,6788,102532,6789,102502,6792,102533,6793,102503,6796,102531,6797,102501,6800,102534,6801,102504,6804,102535,6805,102505,6808,102536,6809,102506,6812,102537,6813,102507,6816,102538,6817,102508,6820,102539,6821,102509,6824,102540,6825,102510,6828,102541,6829,102511,6832,102542,6833,102512,6836,102543,6837,102513,6840,102544,
6841,102514,6844,102546,6845,102516,6848,102545,6849,102515,6852,102547,6853,102517,6856,102548,6857,102518,6860,102549,6861,102519,6867,102380,6868,102381,6879,103187,6880,103096,6884,102376,6885,102378,6886,102377,6887,102379,7136,6980,7139,6987,7142,102706,7692,102557,7693,102558,7694,102559,7695,102560,7696,102561,8090,103318,8091,103418,8092,103317,8093,103417,8095,103371,8096,103471,8097,103369,8098,103469,8099,103368,8100,103468,8101,103367,8102,103467,8103,103366,8104,103466,8105,103365,8106,
103465,8107,103364,8108,103464,8109,103363,8110,103463,8111,103362,8112,103462,8113,103361,8114,103461,8115,103360,8116,103460,8117,103359,8118,103459,8119,103357,8120,103457,8121,103356,8122,103456,8123,103355,8124,103455,8125,103354,8126,103454,8127,103353,8128,103453,8129,103352,8130,103452,8131,103350,8132,103450,8133,103349,8134,103449,8135,103348,8136,103448,8139,103343,8140,103443,8141,103342,8142,103442,8143,103341,8144,103441,8145,103339,8146,103439,8147,103337,8148,103437,8149,103336,8150,
103436,8151,103334,8152,103434,8153,103333,8154,103433,8155,103331,8156,103431,8161,103326,8162,103426,8163,103325,8164,103425,8165,103324,8166,103424,8171,103321,8172,103421,8173,103320,8177,103420,8179,103316,8180,103416,8181,103315,8182,103415,8184,103314,8185,103414,8191,103312,8193,103412,8196,103311,8197,103411,8198,103310,8200,103410,8201,103309,8202,103409,8203,103308,8204,103408,8207,103306,8208,103406,8209,103305,8210,103405,8212,103304,8213,103404,8214,103303,8216,103403,8218,103302,8220,
103402,8222,103301,8224,103401,8431,104248,8441,102590,8693,102449,8826,102605,8857,54035,8858,54036,8859,54037,8860,8449,8988,104115,8989,104116,8990,104117,8991,104118,8992,104119,8993,104120,8994,104121,8995,104122,8996,104123,8997,104124,8998,104896,8999,104257,9E3,104019,9014,104010,9019,104021,9053,104011,9054,104012,9055,104013,9056,104014,9057,104015,9059,104258,9060,104179,9061,104180,9062,104181,9063,104182,9064,104183,9065,104184,9066,104185,9067,104186,21896,21891,21897,21892,21898,21893,
21899,21894,26701,102124,26702,102125,26799,26747,26847,102683,26848,102684,26849,102691,26850,102692,26851,102693,26852,102704,26853,102750,26854,102751,26857,102466,26858,102467,26859,102468,26901,102128,26902,102129,27493,27492,29101,29100,29168,29118,29169,29119,29170,29120,29171,29121,29172,29122,29187,29177,29188,29178,29189,29179,29190,29180,29191,29181,29192,29182,29193,29183,29194,29184,29195,29185,29902,29900,31279,31278,31281,31291,31282,31292,31283,31293,31284,31294,31285,31295,31286,
31296,31287,31297,31466,31462,31467,31463,31468,31464,31469,31465,31986,31917,31987,31918,31988,31919,31989,31920,31990,31921,31991,31922,32064,32074,32065,32075,32066,32076,32067,32077,102550,2181,102551,2182,102552,2183,102553,2184,102554,2185,102555,2186,102556,2187],pcsid:[2066,15,2136,12,2155,10,2157,5,2158,5,2159,12,2160,12,2219,5,2220,5,2244,10,2245,10,2256,11,2265,11,2266,11,2269,11,2270,11,2273,11,2290,5,2291,5,2294,5,2295,5,2313,5,2314,14,2899,10,2900,10,2901,11,2909,11,2910,11,2911,10,
2912,10,2913,11,2914,11,2964,10,2967,10,2968,10,2991,5,2992,11,2993,5,2994,11,3073,5,3076,5,3079,5,3091,10,3106,5,3108,5,3109,5,3141,5,3142,5,3167,4,3337,5,3347,5,3348,5,3359,10,3360,5,3361,11,3362,5,3363,10,3364,5,3365,10,3366,14,3402,5,3403,5,3405,5,3406,5,3439,5,3440,5,3447,5,3449,5,3450,5,3453,10,3454,10,3460,5,3479,11,3480,5,3481,11,3482,5,3483,11,3484,5,3485,10,3486,5,3487,10,3488,5,3489,5,3490,10,3491,5,3492,10,3493,5,3494,10,3495,5,3496,10,3497,5,3498,10,3499,5,3500,10,3501,5,3502,10,3503,
5,3504,10,3505,5,3506,10,3507,5,3508,10,3509,5,3510,10,3511,5,3512,10,3513,5,3514,5,3515,10,3516,5,3517,10,3518,5,3519,10,3520,5,3521,10,3522,5,3523,10,3524,5,3525,10,3526,5,3527,10,3528,5,3529,10,3530,5,3531,10,3532,5,3533,10,3534,5,3535,10,3536,5,3537,10,3538,5,3539,10,3540,5,3541,10,3542,5,3543,10,3544,5,3545,10,3546,5,3547,10,3548,5,3549,10,3550,5,3551,10,3552,5,3553,10,3582,10,3583,5,3584,10,3585,5,3586,10,3587,5,3588,11,3589,5,3590,11,3591,5,3592,5,3593,11,3598,10,3599,5,3600,10,3605,11,3606,
5,3607,5,3608,10,3609,5,3610,10,3611,5,3612,10,3613,5,3614,10,3615,5,3616,10,3617,5,3618,10,3619,5,3620,10,3621,5,3622,10,3623,5,3624,10,3625,5,3626,10,3627,5,3628,10,3629,5,3630,10,3631,5,3632,10,3633,5,3634,11,3635,5,3636,11,3640,10,3641,5,3642,10,3643,5,3644,11,3645,5,3646,11,3647,5,3648,11,3649,5,3650,10,3651,5,3652,10,3653,5,3654,10,3655,5,3656,11,3657,5,3658,10,3659,5,3660,10,3661,5,3662,10,3663,5,3664,10,3668,10,3669,5,3670,10,3671,5,3672,10,3673,5,3674,10,3675,5,3676,11,3677,10,3678,5,3679,
11,3680,10,3681,5,3682,11,3683,10,3684,5,3685,5,3686,10,3687,5,3688,10,3689,5,3690,10,3691,5,3692,10,3696,10,3697,5,3698,10,3699,5,3700,10,3740,5,3749,5,3783,5,3784,5,3793,5,3794,5,3802,5,3816,5,3829,5,3854,5,3911,5,3912,5,3920,5,3978,5,3979,5,3991,10,3992,10,4026,5,4037,5,4038,5,4087,5,4088,5,4217,10,4438,10,4439,10,4467,5,4471,5,4474,5,4559,5,4822,5,4839,5,5018,5,5048,5,5167,5,5168,5,5223,5,5234,5,5235,5,5243,5,5266,5,5316,5,5320,5,5321,5,5330,5,5331,5,5337,5,5361,5,5362,5,5382,5,5383,5,5396,5,
5456,5,5457,5,5469,5,5472,9,5490,5,5518,5,5523,5,5559,5,5588,11,5589,14,5596,5,5627,5,5629,5,5641,5,5643,5,5644,5,5654,10,5655,10,5659,5,5700,5,5825,5,5836,5,5837,5,5842,5,5844,5,5880,5,5887,5,5890,5,6128,11,6129,11,6141,11,6204,5,6210,5,6211,5,6307,5,6312,5,6316,5,6362,5,6591,5,6646,5,6703,5,6786,5,6787,11,6790,5,6791,11,6794,5,6795,11,6798,5,6799,11,6802,5,6803,11,6806,5,6807,11,6810,5,6811,11,6814,5,6815,11,6818,5,6819,11,6822,5,6823,11,6826,5,6827,11,6830,5,6831,11,6834,5,6835,11,6838,5,6839,
11,6842,5,6843,11,6846,5,6847,11,6850,5,6851,11,6854,5,6855,11,6858,5,6859,11,6862,5,6863,11,6870,5,6875,5,6876,5,6915,5,6922,5,6923,10,6924,5,6925,10,6962,5,6984,5,6991,5,7128,10,7131,5,7132,10,7257,5,7258,10,7259,5,7260,10,7261,5,7262,10,7263,5,7264,10,7265,5,7266,10,7267,5,7268,10,7269,5,7270,10,7271,5,7272,10,7273,5,7274,10,7275,5,7276,10,7277,5,7278,10,7279,5,7280,10,7281,5,7282,10,7283,5,7284,10,7285,5,7286,10,7287,5,7288,10,7289,5,7290,10,7291,5,7292,10,7293,5,7294,10,7295,5,7296,10,7297,5,
7298,10,7299,5,7300,10,7301,5,7302,10,7303,5,7304,10,7305,5,7306,10,7307,5,7308,10,7309,5,7310,10,7311,5,7312,10,7313,5,7314,10,7315,5,7316,10,7317,5,7318,10,7319,5,7320,10,7321,5,7322,10,7323,5,7324,10,7325,5,7326,10,7327,5,7328,10,7329,5,7330,10,7331,5,7332,10,7333,5,7334,10,7335,5,7336,10,7337,5,7338,10,7339,5,7340,10,7341,5,7342,10,7343,5,7344,10,7345,5,7346,10,7347,5,7348,10,7349,5,7350,10,7351,5,7352,10,7353,5,7354,10,7355,5,7356,10,7357,5,7358,10,7359,5,7360,10,7361,5,7362,10,7363,5,7364,10,
7365,5,7366,10,7367,5,7368,10,7369,5,7370,10,7877,5,7878,5,7882,5,7883,5,7887,5,7899,5,7991,5,7992,5,8035,10,8036,10,8058,5,8059,5,8082,5,8083,5,8088,5,8137,5,8138,10,8157,5,8158,10,8159,5,8160,10,8167,5,8168,10,8169,5,8170,10,8187,5,8189,10,8205,5,8206,10,8225,5,8226,10,8311,5,8312,11,8313,5,8314,11,8315,5,8316,11,8317,5,8318,11,8319,5,8320,11,8321,5,8322,11,8323,5,8324,11,8325,5,8326,11,8327,5,8328,11,8329,5,8330,11,8331,5,8332,11,8333,5,8334,11,8335,5,8336,11,8337,5,8338,11,8339,5,8340,11,8341,
5,8342,11,8343,5,8344,11,8345,5,8346,11,8347,5,8348,11,8352,5,8353,5,8379,5,8380,10,8381,5,8382,10,8383,5,8384,10,8385,5,8387,10,8391,5,8395,5,8433,5,8455,5,8456,5,8531,10,8682,5,8687,5,8692,5,8903,5,8950,5,8951,5,9039,5,9040,5,9141,5,9149,5,9150,5,9191,5,9221,5,9222,5,20499,5,20538,5,20539,5,20790,5,20791,5,21291,5,21292,5,21500,5,21817,5,21818,5,22032,5,22033,5,22091,5,22092,5,22332,5,22391,5,22392,5,22700,5,22770,5,22780,5,22832,5,23090,5,23095,5,23239,5,23240,5,23433,5,23700,5,24047,5,24048,5,
24100,14,24200,5,24305,5,24306,5,24382,6,24383,5,24500,5,24547,5,24548,5,24571,2,24600,5,25E3,5,25231,5,25884,5,25932,5,26237,5,26331,5,26332,5,26591,5,26592,5,26632,5,26692,5,26855,10,26856,10,27120,5,27200,5,27291,7,27292,7,27429,5,27492,5,27500,5,27700,5,28232,5,28600,5,28991,5,28992,5,29100,5,29220,5,29221,5,29333,5,29635,5,29636,5,29701,5,29738,5,29739,5,29849,5,29850,5,29871,3,29872,13,29873,5,29900,5,29901,5,29903,5,30200,15,30339,5,30340,5,30791,5,30792,5,31028,5,31121,5,31154,5,31170,5,31171,
5,31370,5,31528,5,31529,5,31600,5,31700,5,31838,5,31839,5,31901,5,32061,5,32062,5,32098,5,32099,10,32100,5,32104,5,32161,5,32766,5,53048,5,53049,5,54090,5,54091,5,65061,10,65062,10,65161,5,65163,5,102041,10,102064,8,102068,1,102069,0,102118,10,102119,11,102120,10,102121,10,102217,10,102218,5,102219,10,102220,10,102378,11,102379,11,102380,5,102381,11,102498,5,102499,5,102589,10,102590,5,102599,10,102600,10,102604,10,102605,5,102606,5,102647,5,102704,10,102705,10,102706,5,102733,10,102761,10,102762,
5,102763,10,102764,5,102765,5,102766,10,102962,5,102963,5,102970,11,102974,10,102993,5,102994,5,102995,10,102996,10,103015,5,103016,10,103017,5,103018,10,103025,5,103026,5,103027,10,103028,10,103035,5,103036,5,103037,10,103038,10,103039,5,103040,5,103041,10,103042,10,103043,5,103044,5,103045,10,103046,10,103047,5,103048,5,103049,10,103050,10,103051,5,103052,10,103053,5,103054,10,103055,5,103056,10,103057,5,103058,5,103059,10,103060,10,103061,5,103062,5,103063,10,103064,10,103069,10,103070,5,103071,
5,103072,10,103073,10,103086,5,103087,5,103088,10,103089,10,103094,11,103095,5,103096,10,103103,5,103104,10,103105,5,103106,10,103121,5,103122,10,103123,5,103124,5,103125,11,103126,11,103127,5,103128,5,103129,10,103130,10,103131,5,103132,5,103133,10,103134,10,103135,5,103136,5,103137,11,103138,11,103139,5,103140,10,103141,5,103142,10,103143,5,103144,10,103145,5,103146,11,103147,5,103148,5,103149,10,103150,10,103151,5,103152,10,103172,5,103173,10,103174,5,103175,5,103176,10,103177,10,103178,5,103179,
5,103180,10,103181,10,103182,5,103183,5,103184,10,103185,10,103228,5,103229,5,103230,10,103231,10,103250,5,103251,10,103252,5,103253,10,103260,5,103261,5,103262,10,103263,10,103270,5,103271,5,103272,10,103273,10,103274,5,103275,5,103276,10,103277,10,103278,5,103279,5,103280,10,103281,10,103282,5,103283,5,103284,10,103285,10,103286,5,103287,10,103288,5,103289,10,103290,5,103291,10,103292,5,103293,5,103294,10,103295,10,103296,5,103297,5,103298,10,103299,10,103376,10,103377,5,103378,5,103379,10,103380,
10,103393,5,103394,5,103395,10,103396,10,103472,5,103473,11,103474,5,103475,10,103482,5,103483,10,103484,5,103485,10,103500,5,103501,10,103502,5,103503,5,103504,11,103505,11,103506,5,103507,5,103508,10,103509,10,103510,5,103511,5,103512,10,103513,10,103514,5,103515,10,103516,5,103517,10,103518,5,103519,10,103520,5,103521,11,103522,5,103523,5,103524,10,103525,10,103526,5,103527,10,103561,10,103562,10,103563,5,103564,5,103565,10,103566,10,103567,5,103568,5,103569,10,103570,10,103585,10,103586,5,103587,
10,103588,11,103589,5,103590,10,103591,11,103592,5,103593,10,103594,11,103695,10,103846,5,103946,10],pcsidc:[[2E3,2045,5],[2056,2065,5],[2067,2135,5],[2137,2153,5],[2161,2170,5],[2172,2193,5],[2196,2198,5],[2200,2203,5],[2206,2217,5],[2222,2224,11],[2251,2253,11],[2280,2282,11],[2308,2311,5],[2315,2325,5],[2327,2394,5],[2400,2491,5],[2494,2758,5],[2867,2869,11],[2870,2888,10],[2891,2895,10],[2896,2898,11],[2902,2908,10],[2915,2920,10],[2921,2923,11],[2924,2930,10],[2931,2941,5],[2969,2973,5],[2975,
2982,5],[2984,2988,5],[2995,3002,5],[3006,3051,5],[3054,3059,5],[3061,3066,5],[3068,3071,5],[3084,3087,5],[3112,3118,5],[3120,3138,5],[3146,3151,5],[3153,3157,5],[3161,3166,5],[3168,3172,5],[3174,3203,5],[3294,3313,5],[3315,3335,5],[3339,3345,5],[3350,3358,5],[3367,3369,5],[3374,3388,5],[3391,3399,5],[3408,3416,5],[3425,3432,10],[3441,3446,10],[3456,3459,10],[3465,3478,5],[3554,3559,5],[3561,3565,10],[3568,3570,10],[3571,3581,5],[3594,3597,5],[3601,3604,5],[3637,3639,5],[3665,3667,5],[3693,3695,5],
[3701,3727,5],[3728,3733,10],[3744,3747,5],[3753,3758,10],[3761,3763,5],[3765,3769,5],[3779,3781,5],[3788,3791,5],[3797,3799,5],[3832,3841,5],[3844,3852,5],[3873,3885,5],[3890,3893,5],[3942,3950,5],[3968,3970,5],[3973,3976,5],[3986,3989,5],[3994,3997,5],[4390,4398,5],[4399,4413,10],[4418,4433,10],[4491,4554,5],[4568,4589,5],[4652,4656,5],[4766,4800,5],[5069,5072,5],[5105,5130,5],[5180,5184,5],[5253,5259,5],[5269,5275,5],[5292,5311,5],[5343,5349,5],[5355,5357,5],[5387,5389,5],[5459,5463,5],[5479,5482,
5],[5530,5539,5],[5550,5552,5],[5562,5583,5],[5623,5625,10],[5631,5639,5],[5649,5653,5],[5663,5680,5],[5682,5685,5],[5875,5877,5],[5896,5899,5],[5921,5940,5],[6050,6125,5],[6351,6354,5],[6366,6372,5],[6381,6387,5],[6622,6624,5],[6707,6709,5],[6720,6723,5],[6732,6738,5],[6931,6933,5],[7005,7007,5],[7057,7070,10],[7074,7082,5],[7109,7118,5],[7119,7127,11],[7374,7376,5],[7528,7586,5],[7587,7645,10],[7755,7787,5],[7791,7795,5],[7799,7801,5],[7803,7805,5],[7825,7831,5],[7845,7859,5],[8013,8032,5],[8065,
8068,11],[8518,8529,10],[8533,8536,10],[8538,8540,10],[8677,8679,5],[8836,8840,5],[8908,8910,5],[9154,9159,5],[9205,9218,5],[20002,20032,5],[20062,20092,5],[20135,20138,5],[20248,20258,5],[20348,20358,5],[20436,20440,5],[20822,20824,5],[20934,20936,5],[21035,21037,5],[21095,21097,5],[21148,21150,5],[21413,21423,5],[21473,21483,5],[21780,21782,5],[21891,21894,5],[22171,22177,5],[22181,22187,5],[22191,22197,5],[22234,22236,5],[22521,22525,5],[22991,22994,5],[23028,23038,5],[23830,23853,5],[23866,23872,
5],[23877,23884,5],[23886,23894,5],[23946,23948,5],[24311,24313,5],[24342,24347,5],[24370,24374,6],[24375,24381,5],[24718,24721,5],[24817,24821,5],[24877,24882,5],[24891,24893,5],[25391,25395,5],[25828,25838,5],[26191,26195,5],[26391,26393,5],[26703,26722,5],[26729,26760,10],[26766,26798,10],[26860,26870,10],[26891,26899,5],[26903,26923,5],[26929,26946,5],[26948,26998,5],[27037,27040,5],[27205,27232,5],[27258,27260,5],[27391,27398,5],[27561,27564,5],[27571,27574,5],[27581,27584,5],[27591,27594,5],
[28191,28193,5],[28348,28358,5],[28402,28432,5],[28462,28492,5],[29118,29122,5],[29177,29185,5],[30161,30179,5],[30491,30494,5],[30729,30732,5],[31251,31259,5],[31265,31268,5],[31275,31278,5],[31288,31297,5],[31461,31465,5],[31491,31495,5],[31917,31922,5],[31965,31985,5],[31992,32E3,5],[32001,32003,10],[32005,32031,10],[32033,32060,10],[32074,32077,10],[32081,32086,5],[32107,32130,5],[32133,32158,5],[32164,32167,10],[32180,32199,5],[32201,32260,5],[32301,32360,5],[32601,32662,5],[32664,32667,10],
[32701,32761,5],[53001,53004,5],[53008,53019,5],[53021,53032,5],[53034,53037,5],[53042,53046,5],[53074,53080,5],[54001,54004,5],[54008,54019,5],[54021,54032,5],[54034,54037,5],[54042,54046,5],[54048,54053,5],[54074,54080,5],[54098,54101,5],[102001,102040,5],[102042,102063,5],[102065,102067,5],[102070,102112,5],[102114,102117,5],[102122,102208,5],[102210,102216,5],[102221,102300,5],[102304,102377,5],[102382,102388,5],[102389,102398,10],[102399,102444,5],[102445,102447,10],[102448,102458,5],[102459,
102468,10],[102469,102496,5],[102500,102519,11],[102520,102524,5],[102525,102529,10],[102530,102549,5],[102557,102588,5],[102593,102598,5],[102601,102603,5],[102608,102628,5],[102629,102646,10],[102648,102672,10],[102675,102700,10],[102701,102703,5],[102707,102730,10],[102735,102758,10],[102767,102900,5],[102965,102969,5],[102971,102973,5],[102975,102989,5],[102990,102992,11],[102997,103002,5],[103003,103008,10],[103009,103011,5],[103012,103014,10],[103019,103021,5],[103022,103024,10],[103029,103031,
5],[103032,103034,10],[103065,103068,5],[103074,103076,5],[103077,103079,11],[103080,103082,5],[103083,103085,10],[103090,103093,5],[103097,103099,5],[103100,103102,10],[103107,103109,5],[103110,103112,10],[103113,103116,5],[103117,103120,10],[103153,103157,5],[103158,103162,10],[103163,103165,5],[103166,103168,11],[103169,103171,10],[103186,103188,5],[103189,103191,10],[103192,103195,5],[103196,103199,10],[103200,103224,5],[103225,103227,11],[103232,103237,5],[103238,103243,10],[103244,103246,5],
[103247,103249,10],[103254,103256,5],[103257,103259,10],[103264,103266,5],[103267,103269,10],[103300,103375,5],[103381,103383,5],[103384,103386,11],[103387,103389,5],[103390,103392,10],[103397,103399,5],[103400,103471,10],[103476,103478,5],[103479,103481,10],[103486,103488,5],[103489,103491,10],[103492,103495,5],[103496,103499,10],[103539,103543,5],[103544,103548,10],[103549,103551,5],[103552,103554,11],[103555,103557,10],[103558,103560,5],[103571,103573,5],[103574,103576,10],[103577,103580,5],[103581,
103583,10],[103595,103597,5],[103600,103694,5],[103696,103698,5],[103700,103793,10],[103794,103799,5]],gcsid:[4001,81,4002,85,4003,70,4004,84,4005,82,4006,83,4007,60,4008,67,4009,39,4010,57,4011,63,4012,64,4013,64,4014,63,4015,92,4016,90,4018,86,4019,75,4020,68,4021,70,4022,55,4023,75,4024,66,4025,73,4027,95,4028,59,4029,58,4031,75,4032,78,4033,77,4034,65,4035,100,4036,70,4042,88,4044,87,4045,89,4046,75,4047,99,4052,101,4053,97,4054,61,4075,75,4081,75,4120,84,4121,75,4122,80,4123,55,4124,84,4126,
75,4130,75,4131,92,4132,64,4133,75,4134,64,4140,75,4141,75,4142,64,4143,64,4144,92,4145,87,4146,89,4147,66,4148,75,4149,84,4150,84,4151,75,4152,75,4153,55,4154,55,4155,63,4156,84,4157,60,4162,84,4163,75,4164,66,4165,55,4166,75,4168,58,4170,75,4172,75,4173,75,4174,58,4175,64,4176,75,4178,66,4179,66,4180,75,4188,81,4190,75,4191,66,4192,55,4193,63,4198,64,4199,55,4200,66,4201,64,4202,70,4203,70,4204,55,4205,66,4206,63,4207,55,4208,55,4209,64,4210,64,4211,84,4212,64,4213,63,4214,66,4215,55,4216,67,4218,
55,4219,84,4220,64,4221,55,4222,64,4224,55,4225,55,4229,68,4230,55,4231,55,4232,64,4234,64,4235,55,4236,55,4237,70,4238,70,4239,92,4240,92,4241,65,4242,67,4243,88,4244,92,4245,86,4246,64,4250,64,4251,64,4252,63,4253,67,4254,55,4255,55,4256,64,4257,84,4258,75,4259,55,4260,64,4261,106,4262,84,4263,64,4265,55,4266,63,4267,67,4269,75,4270,64,4271,55,4272,55,4273,82,4274,55,4275,63,4276,73,4280,84,4281,57,4282,63,4283,75,4284,66,4285,55,4286,68,4288,55,4289,84,4291,70,4292,55,4293,83,4294,84,4295,84,4296,
63,4297,55,4298,90,4299,85,4300,85,4301,84,4302,60,4303,68,4306,84,4307,64,4308,84,4309,55,4310,63,4311,55,4312,84,4313,55,4314,84,4315,63,4316,55,4317,66,4318,75,4319,75,4322,80,4324,80,4326,75,4466,75,4469,75,4475,55,4483,75,4490,75,4555,66,4558,75,4608,67,4609,67,4610,74,4614,55,4619,75,4624,75,4625,55,4627,75,4636,55,4637,55,4638,67,4639,55,4657,93,4659,75,4660,55,4661,75,4666,84,4667,75,4670,75,4671,63,4674,75,4679,64,4680,64,4682,92,4683,67,4686,75,4687,75,4693,75,4694,75,4695,67,4696,64,4697,
64,4702,75,4703,64,4704,55,4705,55,4706,68,4718,55,4720,80,4721,55,4723,67,4726,67,4737,75,4738,60,4740,79,4741,55,4742,75,4743,64,4744,64,4745,84,4746,84,4747,75,4748,56,4749,75,4750,75,4751,91,4752,56,4753,55,4754,55,4759,75,4761,75,4801,84,4802,55,4803,55,4804,84,4805,84,4806,55,4807,106,4808,84,4809,55,4810,105,4811,106,4816,106,4817,82,4818,84,4820,84,4821,106,4823,55,4824,55,4901,107,4902,107,4903,59,4904,84,5228,84,5229,84,5233,92,5252,75,5264,75,5340,75,5354,75,5360,75,5371,75,5373,75,5381,
75,5393,75,5464,60,5467,67,5489,75,5524,55,5527,70,5546,75,5561,66,5593,75,5681,84,5886,75,6135,75,6365,75,6706,75,6881,64,6882,64,6883,55,6892,64,6894,64,6980,75,6983,75,6987,75,6990,75,7035,75,7037,75,7039,75,7041,75,7073,75,7084,75,7086,75,7133,75,7373,75,7683,76,7798,75,7844,75,7881,75,7886,75,8042,96,8043,96,8086,75,8232,75,8237,75,8240,75,8246,75,8249,75,8252,75,8255,75,8351,84,8427,75,8428,55,8449,75,8545,75,8685,75,8694,64,8699,75,8818,75,8888,75,8900,75,8902,75,8907,75,8949,75,9003,75,9006,
75,9009,75,9012,75,9017,75,9068,75,9069,75,9140,75,9148,75,9153,75,37001,73,37002,69,37003,72,37004,71,37005,62,37006,91,37007,94,37008,101,37201,55,37202,92,37203,87,37204,55,37205,55,37206,64,37207,71,37208,64,37211,64,37220,67,37221,55,37222,55,37223,63,37224,55,37225,106,37226,55,37227,55,37228,64,37229,62,37230,55,37231,70,37232,55,37233,55,37235,55,37237,55,37238,55,37239,67,37240,64,37241,55,37242,55,37243,67,37252,67,37253,55,37254,64,37255,84,37257,66,37259,55,37260,67,104017,79,104018,79,
104024,75,104027,75,104047,98,104050,75,104100,75,104101,84,104102,84,104103,64,104104,55,104105,84,104106,55,104107,75,104108,75,104109,67,104110,75,104111,75,104112,67,104113,67,104128,102,104129,75,104130,55,104131,84,104132,67,104133,75,104134,75,104135,66,104136,70,104137,75,104138,55,104139,106,104140,106,104223,75,104248,55,104256,92,104261,63,104286,75,104287,75,104304,63,104700,49,104701,9,104702,24,104703,15,104704,28,104705,32,104706,53,104707,46,104708,37,104709,54,104710,11,104711,14,
104712,30,104713,52,104714,4,104715,4,104716,23,104717,14,104718,48,104719,29,104720,22,104721,21,104722,35,104723,21,104724,46,104725,22,104726,49,104727,45,104728,52,104729,10,104730,10,104731,21,104732,31,104733,26,104734,40,104735,19,104736,30,104737,34,104738,27,104739,46,104740,5,104741,12,104742,50,104743,9,104744,43,104745,21,104746,26,104747,25,104748,21,104749,7,104750,53,104751,6,104752,33,104753,29,104754,19,104755,41,104756,31,104757,3,104758,41,104759,25,104760,49,104761,41,104762,44,
104763,50,104764,46,104765,6,104766,40,104767,16,104768,8,104769,17,104770,48,104771,42,104772,50,104773,25,104774,29,104775,25,104776,32,104777,13,104778,36,104779,47,104780,14,104781,29,104782,23,104783,38,104784,42,104785,18,104786,20,104808,51,104896,75,104900,112,104901,104,104902,103,104903,116,104904,109,104905,108,104906,169,104907,164,104908,0,104909,168,104910,141,104911,166,104912,114,104913,160,104914,151,104915,117,104916,110,104917,140,104918,115,104919,170,104920,163,104921,154,104922,
158,104923,161,104924,148,104925,0,104926,159,104927,167,104928,127,104929,131,104930,145,104931,159,104932,136,104933,123,104934,139,104935,134,104936,166,104937,150,104938,137,104939,147,104940,121,104941,165,104942,128,104943,111,104944,1,104945,126,104946,152,104947,157,104948,162,104949,153,104950,156,104951,149,104952,132,104953,122,104954,160,104955,146,104956,143,104957,156,104958,120,104959,125,104960,2,104961,144,104962,142,104963,138,104964,155,104965,135,104966,133,104967,151,104968,118,
104969,119,104970,124,104971,108,104972,129,104973,130,104974,113,104975,0,104990,84,104991,75,104992,84],gcsidc:[[4127,4129,67],[4135,4139,67],[4158,4161,55],[4181,4185,55],[4194,4196,55],[4226,4228,63],[4247,4249,55],[4277,4279,81],[4600,4607,64],[4621,4623,55],[4628,4633,55],[4641,4646,55],[4662,4665,55],[4676,4678,66],[4688,4692,55],[4699,4701,64],[4755,4757,75],[4763,4765,75],[4813,4815,84],[8972,8987,75],[37212,37219,55],[37245,37247,55],[37249,37251,55],[104009,104015,75],[104019,104022,75],
[104114,104124,75],[104125,104127,55],[104141,104145,75],[104179,104186,75],[104257,104260,75]]},l={c:[[2E3,2035,9001],[2039,2045,9001],[2056,2062,9001],[2067,2090,9001],[2093,2135,9001],[2161,2165,9001],[2172,2180,9001],[2188,2193,9001],[2195,2198,9001],[2200,2203,9001],[2205,2213,9001],[2215,2217,9001],[2222,2224,9002],[2225,2243,9003],[2246,2250,9003],[2251,2253,9002],[2257,2264,9003],[2274,2279,9003],[2280,2282,9002],[2283,2289,9003],[2308,2313,9001],[2315,2491,9001],[2494,2576,9001],[2578,2599,
9001],[2601,2693,9001],[2695,2866,9001],[2867,2869,9002],[2870,2888,9003],[2891,2895,9003],[2896,2898,9002],[2902,2908,9003],[2915,2920,9003],[2921,2923,9002],[2924,2930,9003],[2931,2933,9001],[2935,2962,9001],[2964,2968,9003],[2969,2973,9001],[2975,2978,9001],[2984,2988,9001],[2995,3051,9001],[3054,3072,9001],[3077,3079,9001],[3081,3088,9001],[3092,3101,9001],[3106,3138,9001],[3146,3151,9001],[3153,3166,9001],[3168,3172,9001],[3174,3203,9001],[3294,3313,9001],[3315,3348,9001],[3350,3358,9001],[3367,
3403,9001],[3408,3416,9001],[3417,3438,9003],[3441,3446,9003],[3447,3450,9001],[3451,3453,9003],[3455,3459,9003],[3460,3478,9001],[3554,3559,9001],[3560,3570,9003],[3571,3581,9001],[3594,3597,9001],[3601,3604,9001],[3637,3639,9001],[3665,3667,9001],[3693,3695,9001],[3701,3727,9001],[3728,3739,9003],[3740,3751,9001],[3753,3760,9003],[3761,3773,9001],[3775,3777,9001],[3779,3781,9001],[3788,3791,9001],[3797,3802,9001],[3814,3816,9001],[3825,3829,9001],[3832,3841,9001],[3844,3852,9001],[3873,3885,9001],
[3890,3893,9001],[3942,3950,9001],[3968,3970,9001],[3973,3976,9001],[3986,3989,9001],[3994,3997,9001],[4001,4016,9102],[4018,4025,9102],[4027,4029,9102],[4031,4036,9102],[4044,4047,9102],[4048,4051,9001],[4052,4054,9102],[4056,4063,9001],[4093,4096,9001],[4120,4124,9102],[4127,4139,9102],[4141,4176,9102],[4178,4185,9102],[4188,4216,9102],[4218,4232,9102],[4235,4260,9102],[4265,4267,9102],[4269,4286,9102],[4292,4304,9102],[4306,4319,9102],[4390,4398,9001],[4399,4413,9003],[4418,4433,9003],[4455,4457,
9003],[4484,4489,9001],[4491,4554,9001],[4568,4589,9001],[4600,4630,9102],[4636,4639,9102],[4641,4646,9102],[4652,4656,9001],[4657,4680,9102],[4682,4684,9102],[4686,4765,9102],[4766,4800,9001],[4801,4806,9102],[4813,4815,9102],[5014,5016,9001],[5069,5072,9001],[5105,5130,9001],[5173,5188,9001],[5253,5259,9001],[5269,5275,9001],[5292,5311,9001],[5329,5331,9001],[5343,5349,9001],[5355,5357,9001],[5459,5463,9001],[5479,5482,9001],[5518,5520,9001],[5533,5539,9001],[5550,5552,9001],[5562,5583,9001],[5623,
5625,9003],[5631,5639,9001],[5649,5653,9001],[5663,5680,9001],[5682,5685,9001],[5875,5877,9001],[5896,5899,9001],[5921,5940,9001],[6050,6125,9001],[6244,6275,9001],[6328,6348,9001],[6350,6356,9001],[6366,6372,9001],[6381,6387,9001],[6393,6404,9001],[6480,6483,9001],[6511,6514,9001],[6579,6581,9001],[6619,6624,9001],[6625,6627,9003],[6628,6632,9001],[6634,6637,9001],[6669,6692,9001],[6707,6709,9001],[6720,6723,9001],[6732,6738,9001],[6881,6883,9102],[6931,6933,9001],[7005,7007,9001],[7057,7070,9003],
[7074,7082,9001],[7109,7118,9001],[7119,7127,9002],[7374,7376,9001],[7528,7586,9001],[7587,7645,9003],[7692,7696,9001],[7755,7787,9001],[7791,7795,9001],[7799,7801,9001],[7803,7805,9001],[7825,7831,9001],[7845,7859,9001],[8013,8032,9001],[8065,8068,9002],[8518,8529,9003],[8533,8536,9003],[8538,8540,9003],[8677,8679,9001],[8836,8840,9001],[8857,8859,9001],[8908,8910,9001],[8972,9E3,9102],[9053,9057,9102],[9059,9069,9102],[9154,9159,9001],[9205,9218,9001],[20002,20032,9001],[20062,20092,9001],[20135,
20138,9001],[20248,20258,9001],[20348,20358,9001],[20436,20440,9001],[20822,20824,9001],[20934,20936,9001],[21035,21037,9001],[21095,21097,9001],[21148,21150,9001],[21413,21423,9001],[21473,21483,9001],[21780,21782,9001],[21896,21899,9001],[22171,22177,9001],[22181,22187,9001],[22191,22197,9001],[22234,22236,9001],[22521,22525,9001],[22991,22994,9001],[23028,23038,9001],[23830,23853,9001],[23866,23872,9001],[23877,23884,9001],[23886,23894,9001],[23946,23948,9001],[24311,24313,9001],[24342,24347,9001],
[24370,24374,9084],[24375,24381,9001],[24718,24721,9001],[24817,24821,9001],[24877,24882,9001],[24891,24893,9001],[25391,25395,9001],[25828,25838,9001],[26191,26195,9001],[26391,26393,9001],[26701,26722,9001],[26729,26746,9003],[26748,26760,9003],[26766,26799,9003],[26847,26870,9003],[26891,26899,9001],[26901,26923,9001],[26929,26946,9001],[26948,26978,9001],[26980,26998,9001],[27037,27040,9001],[27205,27232,9001],[27258,27260,9001],[27391,27398,9001],[27561,27564,9001],[27571,27574,9001],[27581,
27584,9001],[27591,27594,9001],[28191,28193,9001],[28348,28358,9001],[28402,28432,9001],[28462,28492,9001],[29168,29172,9001],[29187,29195,9001],[29901,29903,9001],[30161,30179,9001],[30491,30494,9001],[30729,30732,9001],[31251,31259,9001],[31265,31268,9001],[31275,31277,9001],[31281,31290,9001],[31466,31469,9001],[31491,31495,9001],[31965,32E3,9001],[32001,32003,9003],[32005,32017,9003],[32019,32028,9003],[32033,32035,9003],[32037,32060,9003],[32064,32067,9003],[32081,32086,9001],[32107,32130,9001],
[32133,32158,9001],[32164,32167,9003],[32180,32199,9001],[32201,32260,9001],[32301,32360,9001],[32601,32662,9001],[32664,32667,9003],[32701,32761,9001],[37002,37008,9102],[53001,53004,9001],[53008,53019,9001],[53021,53032,9001],[53034,53037,9001],[53042,53046,9001],[53074,53080,9001],[54001,54004,9001],[54008,54019,9001],[54021,54032,9001],[54042,54046,9001],[54048,54053,9001],[54074,54080,9001],[54098,54101,9001],[102001,102005,9001],[102007,102039,9001],[102042,102045,9001],[102060,102063,9001],
[102070,102079,9001],[102096,102099,9001],[102101,102109,9001],[102114,102117,9001],[102132,102138,9001],[102141,102144,9001],[102156,102166,9001],[102173,102179,9001],[102191,102198,9001],[102221,102228,9001],[102231,102233,9001],[102237,102240,9001],[102364,102375,9001],[102389,102398,9003],[102399,102419,9001],[102421,102438,9001],[102445,102447,9003],[102450,102458,9001],[102459,102462,9003],[102470,102489,9001],[102550,102556,9001],[102562,102588,9001],[102629,102640,9003],[102648,102650,9003],
[102688,102690,9003],[102696,102700,9003],[102701,102703,9001],[102799,102900,9001],[103166,103168,9002],[103220,103224,9001],[103225,103227,9002],[103232,103237,9001],[103238,103243,9003],[103244,103246,9001],[103247,103249,9003],[103254,103256,9001],[103257,103259,9003],[103264,103266,9001],[103267,103269,9003],[103327,103330,9001],[103344,103347,9001],[103372,103375,9001],[103381,103383,9001],[103384,103386,9002],[103387,103389,9001],[103390,103392,9003],[103397,103399,9001],[103427,103430,9003],
[103444,103447,9003],[103476,103478,9001],[103479,103481,9003],[103486,103488,9001],[103489,103491,9003],[103492,103495,9001],[103496,103499,9003],[103539,103543,9001],[103544,103548,9003],[103549,103551,9001],[103552,103554,9002],[103555,103557,9003],[103558,103560,9001],[103571,103573,9001],[103574,103576,9003],[103577,103580,9001],[103581,103583,9003],[103595,103597,9001],[103600,103694,9001],[103696,103698,9001],[103700,103793,9003],[104101,104103,9102],[104126,104131,9102],[104259,104261,9102],
[104700,104786,9102],[104900,104975,9102]],nc:[2065,9001,2066,9039,2136,9094,2137,9001,2138,9001,2154,9001,2157,9001,2158,9001,2159,9094,2160,9094,2169,9001,2170,9001,2204,9003,2219,9001,2220,9001,2254,9003,2255,9003,2256,9002,2265,9002,2266,9002,2267,9003,2268,9003,2269,9002,2270,9002,2271,9003,2272,9003,2273,9002,2290,9001,2294,9001,2295,9001,2314,9005,2899,9003,2900,9003,2901,9002,2909,9002,2910,9002,2911,9003,2912,9003,2913,9002,2914,9002,2980,9001,2981,9001,2991,9001,2992,9002,2993,9001,2994,
9002,3074,9001,3075,9001,3080,9002,3089,9003,3090,9001,3091,9003,3102,9003,3141,9001,3142,9001,3167,9301,3360,9001,3361,9002,3362,9001,3363,9003,3364,9001,3365,9003,3404,9003,3405,9001,3406,9001,3407,9005,3439,9001,3440,9001,3479,9002,3480,9001,3481,9002,3482,9001,3483,9002,3484,9001,3485,9003,3486,9001,3487,9003,3488,9001,3489,9001,3490,9003,3491,9001,3492,9003,3493,9001,3494,9003,3495,9001,3496,9003,3497,9001,3498,9003,3499,9001,3500,9003,3501,9001,3502,9003,3503,9001,3504,9003,3505,9001,3506,9003,
3507,9001,3508,9003,3509,9001,3510,9003,3511,9001,3512,9003,3513,9001,3514,9001,3515,9003,3516,9001,3517,9003,3518,9001,3519,9003,3520,9001,3521,9003,3522,9001,3523,9003,3524,9001,3525,9003,3526,9001,3527,9003,3528,9001,3529,9003,3530,9001,3531,9003,3532,9001,3533,9003,3534,9001,3535,9003,3536,9001,3537,9003,3538,9001,3539,9003,3540,9001,3541,9003,3542,9001,3543,9003,3544,9001,3545,9003,3546,9001,3547,9003,3548,9001,3549,9003,3550,9001,3551,9003,3552,9001,3553,9003,3582,9003,3583,9001,3584,9003,3585,
9001,3586,9003,3587,9001,3588,9002,3589,9001,3590,9002,3591,9001,3592,9001,3593,9002,3598,9003,3599,9001,3600,9003,3605,9002,3606,9001,3607,9001,3608,9003,3609,9001,3610,9003,3611,9001,3612,9003,3613,9001,3614,9003,3615,9001,3616,9003,3617,9001,3618,9003,3619,9001,3620,9003,3621,9001,3622,9003,3623,9001,3624,9003,3625,9001,3626,9003,3627,9001,3628,9003,3629,9001,3630,9003,3631,9001,3632,9003,3633,9001,3634,9002,3635,9001,3636,9002,3640,9003,3641,9001,3642,9003,3643,9001,3644,9002,3645,9001,3646,9002,
3647,9001,3648,9002,3649,9001,3650,9003,3651,9001,3652,9003,3653,9001,3654,9003,3655,9001,3656,9002,3657,9001,3658,9003,3659,9001,3660,9003,3661,9001,3662,9003,3663,9001,3664,9003,3668,9003,3669,9001,3670,9003,3671,9001,3672,9003,3673,9001,3674,9003,3675,9001,3676,9002,3677,9003,3678,9001,3679,9002,3680,9003,3681,9001,3682,9002,3683,9003,3684,9001,3685,9001,3686,9003,3687,9001,3688,9003,3689,9001,3690,9003,3691,9001,3692,9003,3696,9003,3697,9001,3698,9003,3699,9001,3700,9003,3783,9001,3784,9001,3793,
9001,3794,9001,3812,9001,3819,9102,3821,9102,3824,9102,3854,9001,3857,9001,3889,9102,3906,9102,3911,9001,3912,9001,3920,9001,3978,9001,3979,9001,3991,9003,3992,9003,4026,9001,4037,9001,4038,9001,4042,9102,4071,9001,4075,9102,4081,9102,4082,9001,4083,9001,4087,9001,4088,9001,4217,9003,4261,9105,4262,9102,4263,9102,4288,9102,4289,9102,4322,9102,4324,9102,4326,9102,4414,9001,4415,9001,4417,9001,4434,9001,4437,9001,4438,9003,4439,9003,4462,9001,4463,9102,4467,9001,4470,9102,4471,9001,4475,9102,4483,9102,
4490,9102,4555,9102,4558,9102,4559,9001,4632,9102,4633,9102,4647,9001,4807,9105,4808,9102,4809,9102,4810,9105,4811,9105,4816,9105,4817,9102,4818,9102,4820,9102,4821,9105,4822,9001,4823,9102,4824,9102,4826,9001,4839,9001,4901,9105,4902,9105,4903,9102,4904,9102,5013,9102,5018,9001,5048,9001,5167,9001,5168,9001,5221,9001,5223,9001,5228,9102,5229,9102,5233,9102,5234,9001,5235,9001,5243,9001,5246,9102,5247,9001,5252,9102,5264,9102,5266,9001,5316,9001,5320,9001,5321,9001,5324,9102,5325,9001,5337,9001,5340,
9102,5354,9102,5360,9102,5361,9001,5362,9001,5365,9102,5367,9001,5371,9102,5373,9102,5381,9102,5382,9001,5383,9001,5387,9001,5389,9001,5393,9102,5396,9001,5451,9102,5456,9001,5457,9001,5464,9102,5467,9102,5469,9001,5472,9037,5489,9102,5490,9001,5513,9001,5514,9001,5523,9001,5524,9102,5527,9102,5530,9001,5531,9001,5546,9102,5559,9001,5561,9102,5588,9002,5589,9005,5593,9102,5596,9001,5627,9001,5629,9001,5641,9001,5643,9001,5644,9001,5646,9003,5654,9003,5655,9003,5659,9001,5681,9102,5700,9001,5825,9001,
5836,9001,5837,9001,5839,9001,5842,9001,5844,9001,5858,9001,5879,9001,5880,9001,5886,9102,5887,9001,5890,9001,6128,9002,6129,9002,6135,9102,6204,9001,6207,9102,6210,9001,6211,9001,6307,9001,6311,9102,6312,9001,6316,9001,6318,9102,6322,9102,6325,9102,6362,9001,6365,9102,6391,9002,6405,9002,6406,9001,6407,9002,6408,9001,6409,9002,6410,9001,6411,9003,6412,9001,6413,9003,6414,9001,6415,9001,6416,9003,6417,9001,6418,9003,6419,9001,6420,9003,6421,9001,6422,9003,6423,9001,6424,9003,6425,9001,6426,9003,6427,
9001,6428,9003,6429,9001,6430,9003,6431,9001,6432,9003,6433,9001,6434,9003,6435,9001,6436,9003,6437,9001,6438,9003,6439,9001,6440,9001,6441,9003,6442,9001,6443,9003,6444,9001,6445,9003,6446,9001,6447,9003,6448,9001,6449,9003,6450,9001,6451,9003,6452,9001,6453,9003,6454,9001,6455,9003,6456,9001,6457,9003,6458,9001,6459,9003,6460,9001,6461,9003,6462,9001,6463,9003,6464,9001,6465,9003,6466,9001,6467,9003,6468,9001,6469,9003,6470,9001,6471,9003,6472,9001,6473,9003,6474,9001,6475,9003,6476,9001,6477,9003,
6478,9001,6479,9003,6484,9003,6485,9001,6486,9003,6487,9001,6488,9003,6489,9001,6490,9003,6491,9001,6492,9003,6493,9001,6494,9002,6495,9001,6496,9002,6497,9001,6498,9001,6499,9002,6500,9001,6501,9003,6502,9001,6503,9003,6504,9001,6505,9003,6506,9001,6507,9003,6508,9001,6509,9001,6510,9003,6515,9002,6516,9001,6518,9001,6519,9003,6520,9001,6521,9003,6522,9001,6523,9003,6524,9001,6525,9003,6526,9001,6527,9003,6528,9001,6529,9003,6530,9001,6531,9003,6532,9001,6533,9003,6534,9001,6535,9003,6536,9001,6537,
9003,6538,9001,6539,9003,6540,9001,6541,9003,6542,9001,6543,9003,6544,9001,6545,9002,6546,9001,6547,9002,6548,9001,6549,9003,6550,9001,6551,9003,6552,9001,6553,9003,6554,9001,6555,9003,6556,9001,6557,9002,6558,9001,6559,9002,6560,9001,6561,9002,6562,9001,6563,9003,6564,9001,6565,9003,6566,9001,6567,9001,6568,9003,6569,9001,6570,9002,6571,9001,6572,9003,6573,9001,6574,9003,6575,9001,6576,9003,6577,9001,6578,9003,6582,9003,6583,9001,6584,9003,6585,9001,6586,9003,6587,9001,6588,9003,6589,9001,6590,9003,
6591,9001,6592,9001,6593,9003,6594,9001,6595,9003,6596,9001,6597,9003,6598,9001,6599,9003,6600,9001,6601,9003,6602,9001,6603,9003,6605,9003,6606,9001,6607,9003,6608,9001,6609,9003,6610,9001,6611,9001,6612,9003,6613,9001,6614,9003,6615,9001,6616,9003,6617,9001,6618,9003,6633,9003,6646,9001,6668,9102,6703,9001,6706,9102,6783,9102,6784,9001,6785,9002,6786,9001,6787,9002,6788,9001,6789,9002,6790,9001,6791,9002,6792,9001,6793,9002,6794,9001,6795,9002,6796,9001,6797,9002,6798,9001,6799,9002,6800,9001,6801,
9002,6802,9001,6803,9002,6804,9001,6805,9002,6806,9001,6807,9002,6808,9001,6809,9002,6810,9001,6811,9002,6812,9001,6813,9002,6814,9001,6815,9002,6816,9001,6817,9002,6818,9001,6819,9002,6820,9001,6821,9002,6822,9001,6823,9002,6824,9001,6825,9002,6826,9001,6827,9002,6828,9001,6829,9002,6830,9001,6831,9002,6832,9001,6833,9002,6834,9001,6835,9002,6836,9001,6837,9002,6838,9001,6839,9002,6840,9001,6841,9002,6842,9001,6843,9002,6844,9001,6845,9002,6846,9001,6847,9002,6848,9001,6849,9002,6850,9001,6851,9002,
6852,9001,6853,9002,6854,9001,6855,9002,6856,9001,6857,9002,6858,9001,6859,9002,6860,9001,6861,9002,6862,9001,6863,9002,6867,9001,6868,9002,6870,9001,6875,9001,6876,9001,6879,9001,6880,9003,6884,9001,6885,9002,6886,9001,6887,9002,6892,9102,6894,9102,6915,9001,6922,9001,6923,9003,6924,9001,6925,9003,6962,9001,6983,9102,6984,9001,6990,9102,6991,9001,7035,9102,7037,9102,7039,9102,7041,9102,7073,9102,7084,9102,7086,9102,7128,9003,7131,9001,7132,9003,7133,9102,7136,9102,7139,9102,7142,9001,7257,9001,7258,
9003,7259,9001,7260,9003,7261,9001,7262,9003,7263,9001,7264,9003,7265,9001,7266,9003,7267,9001,7268,9003,7269,9001,7270,9003,7271,9001,7272,9003,7273,9001,7274,9003,7275,9001,7276,9003,7277,9001,7278,9003,7279,9001,7280,9003,7281,9001,7282,9003,7283,9001,7284,9003,7285,9001,7286,9003,7287,9001,7288,9003,7289,9001,7290,9003,7291,9001,7292,9003,7293,9001,7294,9003,7295,9001,7296,9003,7297,9001,7298,9003,7299,9001,7300,9003,7301,9001,7302,9003,7303,9001,7304,9003,7305,9001,7306,9003,7307,9001,7308,9003,
7309,9001,7310,9003,7311,9001,7312,9003,7313,9001,7314,9003,7315,9001,7316,9003,7317,9001,7318,9003,7319,9001,7320,9003,7321,9001,7322,9003,7323,9001,7324,9003,7325,9001,7326,9003,7327,9001,7328,9003,7329,9001,7330,9003,7331,9001,7332,9003,7333,9001,7334,9003,7335,9001,7336,9003,7337,9001,7338,9003,7339,9001,7340,9003,7341,9001,7342,9003,7343,9001,7344,9003,7345,9001,7346,9003,7347,9001,7348,9003,7349,9001,7350,9003,7351,9001,7352,9003,7353,9001,7354,9003,7355,9001,7356,9003,7357,9001,7358,9003,7359,
9001,7360,9003,7361,9001,7362,9003,7363,9001,7364,9003,7365,9001,7366,9003,7367,9001,7368,9003,7369,9001,7370,9003,7373,9102,7683,9102,7798,9102,7844,9102,7877,9001,7878,9001,7881,9102,7882,9001,7883,9001,7886,9102,7887,9001,7899,9001,7991,9001,7992,9001,8035,9003,8036,9003,8042,9102,8043,9102,8058,9001,8059,9001,8082,9001,8083,9001,8086,9102,8088,9001,8090,9001,8091,9003,8092,9001,8093,9003,8095,9001,8096,9003,8097,9001,8098,9003,8099,9001,8100,9003,8101,9001,8102,9003,8103,9001,8104,9003,8105,9001,
8106,9003,8107,9001,8108,9003,8109,9001,8110,9003,8111,9001,8112,9003,8113,9001,8114,9003,8115,9001,8116,9003,8117,9001,8118,9003,8119,9001,8120,9003,8121,9001,8122,9003,8123,9001,8124,9003,8125,9001,8126,9003,8127,9001,8128,9003,8129,9001,8130,9003,8131,9001,8132,9003,8133,9001,8134,9003,8135,9001,8136,9003,8137,9001,8138,9003,8139,9001,8140,9003,8141,9001,8142,9003,8143,9001,8144,9003,8145,9001,8146,9003,8147,9001,8148,9003,8149,9001,8150,9003,8151,9001,8152,9003,8153,9001,8154,9003,8155,9001,8156,
9003,8157,9001,8158,9003,8159,9001,8160,9003,8161,9001,8162,9003,8163,9001,8164,9003,8165,9001,8166,9003,8167,9001,8168,9003,8169,9001,8170,9003,8171,9001,8172,9003,8173,9001,8177,9003,8179,9001,8180,9003,8181,9001,8182,9003,8184,9001,8185,9003,8187,9001,8189,9003,8191,9001,8193,9003,8196,9001,8197,9003,8198,9001,8200,9003,8201,9001,8202,9003,8203,9001,8204,9003,8205,9001,8206,9003,8207,9001,8208,9003,8209,9001,8210,9003,8212,9001,8213,9003,8214,9001,8216,9003,8218,9001,8220,9003,8222,9001,8224,9003,
8225,9001,8226,9003,8232,9102,8237,9102,8240,9102,8246,9102,8249,9102,8252,9102,8255,9102,8311,9001,8312,9002,8313,9001,8314,9002,8315,9001,8316,9002,8317,9001,8318,9002,8319,9001,8320,9002,8321,9001,8322,9002,8323,9001,8324,9002,8325,9001,8326,9002,8327,9001,8328,9002,8329,9001,8330,9002,8331,9001,8332,9002,8333,9001,8334,9002,8335,9001,8336,9002,8337,9001,8338,9002,8339,9001,8340,9002,8341,9001,8342,9002,8343,9001,8344,9002,8345,9001,8346,9002,8347,9001,8348,9002,8351,9102,8352,9001,8353,9001,8379,
9001,8380,9003,8381,9001,8382,9003,8383,9001,8384,9003,8385,9001,8387,9003,8391,9001,8395,9001,8427,9102,8428,9102,8431,9102,8433,9001,8441,9001,8455,9001,8456,9001,8531,9003,8545,9102,8682,9001,8685,9102,8687,9001,8692,9001,8693,9001,8694,9102,8699,9102,8818,9102,8826,9001,8860,9102,8888,9102,8900,9102,8902,9102,8903,9001,8907,9102,8949,9102,8950,9001,8951,9001,9003,9102,9006,9102,9009,9102,9012,9102,9014,9102,9017,9102,9019,9102,9039,9001,9040,9001,9140,9102,9141,9001,9148,9102,9149,9001,9150,9001,
9153,9102,9191,9001,9221,9001,9222,9001,20499,9001,20538,9001,20539,9001,20790,9001,20791,9001,21291,9001,21292,9001,21500,9001,21817,9001,21818,9001,22032,9001,22033,9001,22091,9001,22092,9001,22332,9001,22391,9001,22392,9001,22700,9001,22770,9001,22780,9001,22832,9001,23090,9001,23095,9001,23239,9001,23240,9001,23700,9001,24047,9001,24048,9001,24100,9005,24200,9001,24305,9001,24306,9001,24382,9084,24383,9001,24500,9001,24547,9001,24548,9001,24571,9062,24600,9001,25E3,9001,25231,9001,25884,9001,
25932,9001,26237,9001,26331,9001,26332,9001,26591,9001,26592,9001,26632,9001,26692,9001,27120,9001,27200,9001,27291,9040,27292,9040,27429,9001,27493,9001,27500,9001,27700,9001,28232,9001,28600,9001,28991,9001,28992,9001,29101,9001,29220,9001,29221,9001,29333,9001,29635,9001,29636,9001,29701,9001,29738,9001,29739,9001,29849,9001,29850,9001,29871,9042,29872,9041,29873,9001,30200,9039,30339,9001,30340,9001,30791,9001,30792,9001,31028,9001,31121,9001,31154,9001,31170,9001,31171,9001,31279,9001,31370,
9001,31528,9001,31529,9001,31600,9001,31700,9001,31838,9001,31839,9001,31901,9001,32030,9003,32031,9003,32061,9001,32062,9001,32098,9001,32099,9003,32100,9001,32104,9001,32161,9001,32766,9001,37202,9102,37203,9102,37206,9102,37207,9102,37218,9102,37221,9102,37225,9105,37240,9102,37241,9102,37243,9102,37245,9102,37249,9102,37257,9102,37260,9102,53048,9001,53049,9001,54034,9001,54090,9001,54091,9001,65061,9003,65062,9003,65161,9001,102041,9003,102064,9085,102068,109030,102069,109031,102093,9001,102094,
9001,102118,9003,102120,9003,102121,9003,102122,9001,102150,9001,102168,9001,102204,9001,102212,9001,102213,9001,102215,9001,102216,9001,102217,9003,102218,9001,102219,9003,102220,9003,102247,9001,102299,9001,102306,9001,102319,9001,102328,9001,102329,9001,102359,9001,102360,9001,102440,9001,102448,9001,102464,9003,102465,9003,102491,9001,102492,9001,102498,9001,102499,9001,102525,9003,102526,9003,102528,9003,102529,9003,102589,9003,102598,9001,102599,9003,102600,9003,102604,9003,102661,9003,102662,
9003,102664,9003,102665,9003,102705,9003,102720,9003,102721,9003,102726,9003,102727,9003,102733,9003,102761,9003,102766,9003,102974,9003,103228,9001,103229,9001,103230,9003,103231,9003,103250,9001,103251,9003,103252,9001,103253,9003,103260,9001,103261,9001,103262,9003,103263,9003,103270,9001,103271,9001,103272,9003,103273,9003,103274,9001,103275,9001,103276,9003,103277,9003,103278,9001,103279,9001,103280,9003,103281,9003,103282,9001,103283,9001,103284,9003,103285,9003,103286,9001,103287,9003,103288,
9001,103289,9003,103290,9001,103291,9003,103292,9001,103293,9001,103294,9003,103295,9003,103296,9001,103297,9001,103298,9003,103299,9003,103300,9001,103307,9001,103313,9001,103319,9001,103322,9001,103323,9001,103332,9001,103335,9001,103338,9001,103340,9001,103351,9001,103358,9001,103370,9001,103376,9003,103377,9001,103378,9001,103379,9003,103380,9003,103393,9001,103394,9001,103395,9003,103396,9003,103400,9003,103407,9003,103413,9003,103419,9003,103422,9003,103423,9003,103432,9003,103435,9003,103438,
9003,103440,9003,103451,9003,103458,9003,103470,9003,103472,9001,103473,9002,103474,9001,103475,9003,103482,9001,103483,9003,103484,9001,103485,9003,103500,9001,103501,9003,103502,9001,103503,9001,103504,9002,103505,9002,103506,9001,103507,9001,103508,9003,103509,9003,103510,9001,103511,9001,103512,9003,103513,9003,103514,9001,103515,9003,103516,9001,103517,9003,103518,9001,103519,9003,103520,9001,103521,9002,103522,9001,103523,9001,103524,9003,103525,9003,103526,9001,103527,9003,103561,9003,103562,
9003,103563,9001,103564,9001,103565,9003,103566,9003,103567,9001,103568,9001,103569,9003,103570,9003,103585,9003,103586,9001,103587,9003,103588,9002,103589,9001,103590,9003,103591,9002,103592,9001,103593,9003,103594,9002,103695,9003,103846,9001,103946,9003,104009,9102,104017,9102,104018,9102,104022,9102,104024,9102,104027,9102,104047,9102,104050,9102,104105,9102,104106,9102,104109,9102,104112,9102,104113,9102,104134,9102,104135,9102,104138,9102,104139,9105,104140,9105,104808,9102]};g.yr=function(){function c(){}
c.Iy=function(a){!1===c.zp&&c.ut();var b=c.DQ(a);if(-1==b){var d=c.vx(a);d!=a&&(b=c.Iy(d))}-1==b&&(d=c.AK(a),d!=a&&(b=c.Iy(d)));return b};c.DQ=function(a){return void 0!==c.Cw[a]?c.Cw[a]:-1};c.AQ=function(a){!1===c.zp&&c.ut();var b=c.eF(a);if(1E38==b){var d=c.vx(a);d!=a&&(b=c.eF(d));if(1E38==b)return 1E-10}return b};c.SS=function(a){if(void 0!==c.Fs[a])return!0;var b=c.vx(a);return b!=a&&void 0!==c.Fs[b]?!0:!1};c.US=function(a){if(void 0!==c.yo[a])return!0;var b=c.vx(a);return b!=a&&void 0!==c.yo[b]?
!0:!1};c.eF=function(a){!1===c.zp&&c.ut();return void 0!==c.Fs[a]?c.Fs[a]:void 0!==c.yo[a]?c.yo[a]:1E38};c.AK=function(a){!1===c.zp&&c.ut();return void 0!==c.LA[a]?c.LA[a]:a};c.vx=function(a){!1===c.zp&&c.ut();return void 0!==c.MA[a]?c.MA[a]:a};c.ut=function(){for(var a=t,b,d=0;d<a.pcsid.length;d+=2)c.yo[a.pcsid[d]]=a.pcstol[2*a.pcsid[d+1]+1];for(d=0;d<a.pcsidc.length;d+=1){b=a.pcsidc[d];for(var e=b[0];e<=b[1];e++)c.yo[e]=a.pcstol[2*b[2]+1]}for(d=0;d<a.gcsid.length;d+=2)c.Fs[a.gcsid[d]]=a.gcstol[2*
a.gcsid[d+1]+1];for(d=0;d<a.gcsidc.length;d+=1)for(b=a.gcsidc[d],e=b[0];e<=b[1];e++)c.yo[e]=a.gcstol[2*b[2]+1];for(d=0;d<l.c.length;d+=1)for(b=l.c[d],e=b[0];e<=b[1];e++)c.Cw[e]=b[2];for(d=0;d<l.nc.length;d+=2)c.Cw[l.nc[d]]=l.nc[d+1];l=null;for(d=0;d<a.newtoold.length;d+=2)c.LA[a.newtoold[d+1]]=a.newtoold[d],c.MA[a.newtoold[d]]=a.newtoold[d+1];t=null;c.zp=!0};c.zp=!1;c.Fs=[];c.yo=[];c.LA=[];c.MA=[];c.Cw=[];return c}()})(y||(y={}));(function(g){function t(c){return 0===c.length?'""':'"'==c[0]||"."==
c[0]||"0"<=c[0]&&"9">=c[0]?c:'"'+c.trim()+'"'}var l=[];g.KC=function(){function c(){}c.CQ=function(a){try{for(var b=0;b<l.length;b++)if(l[b].wkttext===a)return l[b].unit;for(var d,e=b="",f=!1,h=0;h<a.length;h++){var k=a[h];!0===f?'"'==k?'"'==a[h+1]?b+=k:f=f=!1:b+=k:/[\s]/.test(k)||(","==k?(e=""!==b?e+(t(b)+","):e+",",b=""):")"==k||"]"==k?(e=""!==b?e+(t(b)+"]}"):e+"]}",b=""):"("==k||"["==k?(e+='{ "entity": "'+b.toUpperCase().trim()+'", "values":[',b=""):'"'==k?(f=!0,b=""):b+=k)}d=JSON.parse(e);var m=
c.dF(d);if(null===m)return null;d=null;for(k=0;k<m.values.length;k++)if("object"===typeof m.values[k]&&"UNIT"===m.values[k].entity){d=m.values[k];break}if(null===d)return null;var n=g.fc.YO("GEOGCS"===m.entity?1:0,d.values[1],d.values[2]);l.push({wkttext:a,unit:n});10<l.length&&l.shift();return n}catch(p){return null}};c.dF=function(a){if(null===a)return null;if("GEOGCS"===a.entity||"PROJCS"===a.entity)return a;for(var b=[],d=0;d<a.values.length;d++)if("object"===typeof a.values[d]&&void 0!==a.values[d].entity){if("GEOGCS"===
a.values[d].entity||"PROJCS"==a.values[d].entity)return a.values[d];b.push(a.values[d])}for(a=0;a<b.length;a++)if(d=c.dF(b[a]),null!==d)return d;return null};c.BQ=function(a){var b=-1;if(null!=a&&0<a.length){var d=a.indexOf("PROJCS");if(0<=d){var e=0;d=a.lastIndexOf("UNIT");if(0<=d&&(d=a.indexOf(",",d+4),0<d)){d++;var f=a.indexOf("]",d+1);if(0<f)try{e=parseFloat(a.substring(d,f))}catch(k){e=0}}0<e&&(b=.001/e)}else if(d=a.indexOf("GEOGCS"),0<=d){var h=0;e=0;d=a.indexOf("SPHEROID",d+6);if(0<d&&(d=a.indexOf(",",
d+8),0<d)){d++;f=a.indexOf(",",d+1);if(0<f)try{h=parseFloat(a.substring(d,f))}catch(k){h=0}if(0<h&&(d=a.indexOf("UNIT",f+1),0<=d&&(d=a.indexOf(",",d+4),0<d&&(d++,f=a.indexOf("]",d+1),0<f))))try{e=parseFloat(a.substring(d,f))}catch(k){e=0}}0<h&&0<e&&(b=.001/(h*e))}}return b};return c}()})(y||(y={}));(function(g){(function(l){l[l.NONE=0]="NONE";l[l.LINEAR=1]="LINEAR";l[l.ANGULAR=2]="ANGULAR"})(g.$K||(g.$K={}));(function(l){l[l.enumFloat=0]="enumFloat";l[l.enumDouble=1]="enumDouble";l[l.enumInt32=2]=
"enumInt32";l[l.enumInt64=3]="enumInt64";l[l.enumInt8=4]="enumInt8";l[l.enumInt16=5]="enumInt16"})(g.LL||(g.LL={}));(function(l){l[l.POSITION=0]="POSITION";l[l.Z=1]="Z";l[l.M=2]="M";l[l.ID=3]="ID";l[l.NORMAL=4]="NORMAL";l[l.TEXTURE1D=5]="TEXTURE1D";l[l.TEXTURE2D=6]="TEXTURE2D";l[l.TEXTURE3D=7]="TEXTURE3D";l[l.ID2=8]="ID2";l[l.MAXSEMANTICS=10]="MAXSEMANTICS"})(g.Qc||(g.Qc={}));var t=function(){function l(c,a){this.Ss=this.De=null;this.Qq=this.Ba=0;this.vh=this.fg=null;this.xl=0;if(void 0!==a){this.Ba=
a.Ba;this.Qq=a.Qq;this.fg=a.fg.slice(0);this.vh=a.vh.slice(0);this.xl=a.xl;this.Ss=[];for(c=a=0;c<this.Ba;c++)this.Ss[c]=a,a+=l.Wa(this.fg[c]);this.Qq=a;this.De=[];for(c=0;c<this.Ba;c++){a=l.Wa(this.rd(c));for(var b=l.ve(this.rd(c)),d=0;d<a;d++)this.De[this.Ss[c]+d]=b}}else this.Qq=this.Ba=0}l.prototype.rd=function(c){if(0>c||c>this.Ba)throw g.i.O();return this.fg[c]};l.prototype.Tf=function(c){return this.vh[c]};l.bz=function(c){return l.GM[c]};l.Vp=function(c){return l.QM[c]};l.Wa=function(c){return l.lM[c]};
l.prototype.hasAttribute=function(c){return 0<=this.vh[c]};l.prototype.dG=function(){return this.hasAttribute(1)};l.prototype.cS=function(){return this.hasAttribute(2)};l.ve=function(c){return l.UC[c]};l.prototype.FR=function(c){return this.Ss[c]};l.yG=function(c,a){return l.UC[c]===a};l.prototype.Nb=function(c){return this===c};l.prototype.An=function(){for(var c=g.P.Th(this.fg[0]),a=1;a<this.Ba;a++)c=g.P.Th(this.fg[a],c);return c};l.prototype.Zj=function(c){return this.Ss[c]};l.prototype.dc=function(){return this.xl};
l.prototype.Gd=function(c){return this.fg[c]};l.UC=[0,0,NaN,0,0,0,0,0,0];l.GM=[1,1,1,0,2,1,1,1,0];l.QM=[1,1,1,2,0,0,0,0,2];l.lM=[2,1,1,1,3,1,2,3,2];return l}();g.va=t})(y||(y={}));(function(g){function t(f,h,k){var m=h-(f=new e(f)).e,n=f.c;n.length>++h&&l(f,m,e.bu);for(n[0]?k?m=h:(n=f.c,m=f.e+m+1):++m;n.length<m;n.push(0));m=f.e;return 1===k||k&&(h<=m||m<=a)?(0>f.Dd&&n[0]?"-":"")+(1<n.length?n[0]+"."+n.join("").slice(1):n[0])+(0>m?"e":"e+")+m:f.toString()}function l(f,h,k,m){var n=f.c,p=f.e+h+1;1===
k?m=5<=n[p]:2===k?m=5<n[p]||5==n[p]&&(m||0>p||void 0!==n[p+1]||n[p-1]&1):3===k?m=m||void 0!==n[p]||0>p:(m=!1,0!==k&&c("!Big.RM!"));if(1>p||!n[0])m?(f.e=-h,f.c=[1]):f.c=[f.e=0];else{n.length=p--;if(m)for(;9<++n[p];)n[p]=0,p--||(++f.e,n.unshift(1));for(p=n.length;!n[--p];n.pop());}return f}function c(f){f=Error(f);f.name="BigError";throw f;}var a=-7,b=21,d=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,e=function(){function f(h){if(h instanceof f)this.Dd=h.Dd,this.e=h.e,this.c=h.c.slice();else{var k,m,n;0===
h&&0>1/h?h="-0":d.test(h+="")||c(NaN);this.Dd="-"==h.charAt(0)?(h=h.slice(1),-1):1;-1<(k=h.indexOf("."))&&(h=h.replace(".",""));0<(m=h.search(/e/i))?(0>k&&(k=m),k+=+h.slice(m+1),h=h.substring(0,m)):0>k&&(k=h.length);for(m=0;"0"==h.charAt(m);m++);if(m==(n=h.length))this.c=[this.e=0];else{for(;"0"==h.charAt(--n););this.e=k-m-1;this.c=[];for(k=0;m<=n;this.c[k++]=+h.charAt(m++));}}}f.prototype.abs=function(){var h=new f(this);h.Dd=1;return h};f.prototype.cmp=function(h){var k=this.c,m=(h=new f(h)).c,
n=this.Dd,p=h.Dd,q=this.e,r=h.e;if(!k[0]||!m[0])return k[0]?n:m[0]?-p:0;if(n!=p)return n;h=0>n;if(q!=r)return q>(r^h)?1:-1;n=-1;for(p=(q=k.length)<(r=m.length)?q:r;++n<p;)if(k[n]!=m[n])return k[n]>(m[n]^h)?1:-1;return q==r?0:q>(r^h)?1:-1};f.prototype.lm=function(h){var k=this.c,m=(h=new f(h)).c,n=this.Dd==h.Dd?1:-1,p=f.tr;(p!==~~p||0>p||1E6<p)&&c("!Big.DP!");if(!k[0]||!m[0])return k[0]==m[0]&&c(NaN),m[0]||c(n/0),new f(0*n);var q,r,u=m.slice(),v=q=m.length,w=k.length,z=k.slice(0,q),x=z.length,A=h,
B=A.c=[],C=0,D=p+(A.e=this.e-h.e)+1;A.Dd=n;n=0>D?0:D;for(u.unshift(0);x++<q;z.push(0));do{for(r=0;10>r;r++){if(q!=(x=z.length))var G=q>x?1:-1;else{var H=-1;for(G=0;++H<q;)if(m[H]!=z[H]){G=m[H]>z[H]?1:-1;break}}if(0>G){for(h=x==q?m:u;x;){if(z[--x]<h[x]){for(H=x;H&&!z[--H];z[H]=9);--z[H];z[x]+=10}z[x]-=h[x]}for(;!z[0];z.shift());}else break}B[C++]=G?r:++r;z[0]&&G?z[x]=k[v]||0:z=[k[v]]}while((v++<w||void 0!==z[0])&&n--);B[0]||1==C||(B.shift(),A.e--);C>D&&l(A,p,f.bu,void 0!==z[0]);return A};f.prototype.ZR=
function(){return 0<this.cmp(0)};f.prototype.gT=function(){return 0>this.cmp(0)};f.prototype.ft=function(h){var k,m=this.Dd,n=(h=new f(h)).Dd;if(m!=n)return h.Dd=-n,this.oI(h);var p=this.c.slice(),q=this.e,r=h.c,u=h.e;if(!p[0]||!r[0])return r[0]?(h.Dd=-n,h):new f(p[0]?this:0);if(m=q-u){(k=0>m)?(m=-m,q=p):(u=q,q=r);q.reverse();for(n=m;n--;q.push(0));q.reverse()}else for(q=((k=p.length<r.length)?p:r).length,m=n=0;n<q;n++)if(p[n]!=r[n]){k=p[n]<r[n];break}k&&(q=p,p=r,r=q,h.Dd=-h.Dd);if(0<(n=(q=r.length)-
(k=p.length)))for(;n--;p[k++]=0);for(n=k;q>m;){if(p[--q]<r[q]){for(k=q;k&&!p[--k];p[k]=9);--p[k];p[q]+=10}p[q]-=r[q]}for(;0==p[--n];p.pop());for(;0==p[0];)p.shift(),--u;p[0]||(h.Dd=1,p=[u=0]);h.c=p;h.e=u;return h};f.prototype.oI=function(h){var k=this.Dd,m=(h=new f(h)).Dd;if(k!=m)return h.Dd=-m,this.ft(h);m=this.e;var n=this.c,p=h.e,q=h.c;if(!n[0]||!q[0])return q[0]?h:new f(n[0]?this:0*k);n=n.slice();if(k=m-p){0<k?(p=m,m=q):(k=-k,m=n);for(m.reverse();k--;m.push(0));m.reverse()}0>n.length-q.length&&
(m=q,q=n,n=m);k=q.length;for(m=0;k;)m=(n[--k]=n[k]+q[k]+m)/10|0,n[k]%=10;m&&(n.unshift(m),++p);for(k=n.length;0==n[--k];n.pop());h.c=n;h.e=p;return h};f.prototype.pow=function(h){var k=this,m=new f(1),n=m,p=0>h;(h!==~~h||-1E6>h||1E6<h)&&c("!pow!");for(h=p?-h:h;;){h&1&&(n=n.nr(k));h>>=1;if(!h)break;k=k.nr(k)}return p?m.lm(n):n};f.prototype.round=function(h,k){var m=this;null==h?h=0:(h!==~~h||0>h||1E6<h)&&c("!round!");l(m=new f(m),h,null==k?f.bu:k);return m};f.prototype.sqrt=function(){var h=this.c,
k=this.Dd,m=this.e,n=new f("0.5");if(!h[0])return new f(this);0>k&&c(NaN);k=Math.sqrt(this.toString());0==k||k==1/0?(k=h.join(""),k.length+m&1||(k+="0"),h=new f(Math.sqrt(k).toString()),h.e=((m+1)/2|0)-(0>m||m&1)):h=new f(k.toString());k=h.e+(f.tr+=4);do m=h,h=n.nr(m.oI(this.lm(m)));while(m.c.slice(0,k).join("")!==h.c.slice(0,k).join(""));l(h,f.tr-=4,f.bu);return h};f.prototype.nr=function(h){var k=this.c,m=(h=new f(h)).c,n=k.length,p=m.length,q=this.e,r=h.e;h.Dd=this.Dd==h.Dd?1:-1;if(!k[0]||!m[0])return new f(0*
h.Dd);h.e=q+r;if(n<p){var u=k;k=m;m=u;r=n;n=p;p=r}for(u=Array(r=n+p);r--;u[r]=0);for(q=p;q--;){p=0;for(r=n+q;r>q;)p=u[r]+m[q]*k[r-q-1]+p,u[r--]=p%10,p=p/10|0;u[r]=(u[r]+p)%10}p&&++h.e;u[0]||u.shift();for(q=u.length;!u[--q];u.pop());h.c=u;return h};f.prototype.toString=function(){var h=this.e,k=this.c.join(""),m=k.length;if(h<=a||h>=b)k=k.charAt(0)+(1<m?"."+k.slice(1):"")+(0>h?"e":"e+")+h;else if(0>h){for(;++h;k="0"+k);k="0."+k}else if(0<h)if(++h>m)for(h-=m;h--;k+="0");else h<m&&(k=k.slice(0,h)+"."+
k.slice(h));else 1<m&&(k=k.charAt(0)+"."+k.slice(1));return 0>this.Dd&&this.c[0]?"-"+k:k};f.prototype.toExponential=function(h){null==h?h=this.c.length-1:(h!==~~h||0>h||1E6<h)&&c("!toExp!");return t(this,h,1)};f.prototype.toFixed=function(h){var k=a,m=b;a=-(b=1/0);if(null==h)var n=this.toString();else h===~~h&&0<=h&&1E6>=h&&(n=t(this,this.e+h),0>this.Dd&&this.c[0]&&0>n.indexOf("-")&&(n="-"+n));a=k;b=m;n||c("!toFix!");return n};f.prototype.toPrecision=function(h){if(null==h)return this.toString();
(h!==~~h||1>h||1E6<h)&&c("!toPre!");return t(this,h-1,2)};f.tr=20;f.bu=1;return f}();g.ip=e})(y||(y={}));(function(g){var t=function(){function l(c){this.nf=c}l.prototype.qr=function(c,a,b){var d=new g.h,e=new g.h,f=this.nf;b.Xd(c,a,function(h,k){f.vc(2*h,d);f.vc(2*k,e);return d.compare(e)})};l.prototype.bq=function(c){return this.nf.read(2*c+1)};return l}();g.pi=function(){function l(){}l.cq=function(c){if(c.B())return!1;var a=c.K();return 1736==a?0==c.Je()?!1:!0:1607==a?(a=[!1],l.iE(c,!0,a),a[0]):
197==a||g.ba.Ad(a)&&!c.wG()?!0:!1};l.im=function(c){var a=c.K();if(1736==a)return a=new g.Ua(c.description),c.B()||c.TC(a),a;if(1607==a)return l.iE(c,!1,null);if(197==a)return a=new g.Ua(c.description),c.B()||a.cd(c,!1),a;if(g.ba.Ad(a)){a=new g.fe(c.description);if(!c.B()&&!c.wG()){var b=new g.Ta;c.Uo(b);a.add(b);c.Qo(b);a.add(b)}return a}if(g.ba.Sn(a))return null;throw g.i.O();};l.iE=function(c,a,b){null!=b&&(b[0]=!1);var d=null;a||(d=new g.fe(c.description));if(!c.B()){var e=new g.ja(0);e.Jb(2*
c.ea());for(var f=0,h=c.ea();f<h;f++)if(0<c.Ka(f)&&!c.On(f)){var k=c.Ca(f);e.add(k);k=c.Xc(f)-1;e.add(k)}if(0<e.size){h=new g.Ut;f=c.lb(0);h.sort(e,0,e.size,new t(f));h=new g.h;f.vc(2*e.get(0),h);k=0;for(var m=1,n=new g.Ta,p=new g.h,q=1,r=e.size;q<r;q++)if(f.vc(2*e.get(q),p),p.sb(h))e.get(k)>e.get(q)?(e.set(k,2147483647),k=q):e.set(q,2147483647),m++;else{if(0==(m&1))e.set(k,2147483647);else if(a)return null!=b&&(b[0]=!0),null;h.N(p);k=q;m=1}if(0==(m&1))e.set(k,2147483647);else if(a)return null!=b&&
(b[0]=!0),null;if(!a)for(e.Xd(0,e.size,function(u,v){return u-v}),q=0,r=e.size;q<r&&2147483647!=e.get(q);q++)c.ye(e.get(q),n),d.add(n)}}return a?null:d};return l}()})(y||(y={}));(function(g){var t=function(){function l(){this.Cf=new g.ja(0);this.vs=new g.ja(0);this.zH=1;this.Bs=NaN}l.prototype.sort=function(c,a,b,d){if(32>b-a)d.qr(a,b,c);else{var e=!0;try{for(var f=Infinity,h=-Infinity,k=a;k<b;k++){var m=d.bq(c.get(k));m<f&&(f=m);m>h&&(h=m)}if(this.reset(b-a,f,h,b-a)){for(k=a;k<b;k++){var n=c.get(k);
m=d.bq(n);var p=this.sF(m);this.Cf.set(p,this.Cf.get(p)+1);this.vs.write(k-a,n)}var q=this.Cf.get(0);this.Cf.set(0,0);k=1;for(var r=this.Cf.size;k<r;k++){var u=this.Cf.get(k);this.Cf.set(k,q);q+=u}for(k=a;k<b;k++){n=this.vs.read(k-a);m=d.bq(n);p=this.sF(m);var v=this.Cf.get(p);c.set(v+a,n);this.Cf.set(p,v+1)}e=!1}}catch(w){this.Cf.resize(0),this.vs.resize(0)}if(e)d.qr(a,b,c);else{k=b=0;for(r=this.Cf.size;k<r;k++)e=b,b=this.Cf.get(k),b>e&&d.qr(a+e,a+b,c);100<this.Cf.size&&(this.Cf.resize(0),this.vs.resize(0))}}};
l.prototype.reset=function(c,a,b,d){if(2>c||b==a)return!1;c=Math.min(l.cL,c);this.Cf.Jb(c);this.Cf.resize(c);this.Cf.Wj(0,0,this.Cf.size);this.zH=a;this.vs.resize(d);this.Bs=(b-a)/(c-1);return!0};l.prototype.sF=function(c){return g.P.truncate((c-this.zH)/this.Bs)};l.cL=65536;return l}();g.Ut=t})(y||(y={}));(function(g){var t;(function(e){e[e.enum_line=1]="enum_line";e[e.enum_arc=2]="enum_arc";e[e.enum_dummy=4]="enum_dummy";e[e.enum_concave_dip=8]="enum_concave_dip";e[e.enum_connection=3]="enum_connection"})(t||
(t={}));var l=function(){function e(){}e.Ou=function(f,h,k,m,n,p){var q=new e;q.Km=new g.h;q.Xm=new g.h;q.Yv=new g.h;q.Km.N(f);q.Xm.N(h);q.Yv.N(k);q.Do=m;q.rh=n;q.th=p;return q};e.construct=function(f,h,k,m){var n=new e;n.Km=new g.h;n.Xm=new g.h;n.Yv=new g.h;n.Km.N(f);n.Xm.N(h);n.Yv.Uc();n.Do=4;n.rh=k;n.th=m;return n};return e}(),c=function(){function e(f,h,k,m,n,p){this.Vv=null;this.za=0;this.tA=f;this.XH=this.VH=0;this.La=h;this.Mj=k;this.uk=m;this.Fq=n;this.Vb=p}e.prototype.next=function(){for(var f=
new g.Ta;;){if(this.za==this.tA.I())return null;this.tA.ye(this.za,f);this.za++;if(!f.B())break}var h=!1;null==this.Vv&&(this.VH=f.ug(),this.XH=f.Qg(),this.Vv=d.buffer(f,this.La,this.Mj,this.uk,this.Fq,this.Vb),h=!0);if(this.za<this.tA.I()){var k=new g.Ea;this.Vv.copyTo(k)}else k=this.Vv;if(!h){h=new g.Fd;var m=f.ug()-this.VH;f=f.Qg()-this.XH;h.kg(m,f);k.Rc(h)}return k};e.prototype.Ma=function(){return 0};e.prototype.se=function(){};return e}(),a=function(){function e(f,h){this.Xa=f;this.za=0;this.qq=
h}e.prototype.next=function(){var f=this.Xa.$;if(this.za<f.ea()){var h=this.za;this.za++;if(!f.On(h))for(var k=f.Oa(f.Xc(h)-1);this.za<f.ea();){var m=f.Oa(f.Ca(this.za));if(f.On(this.za))break;if(m!=k)break;k=f.Oa(f.Xc(this.za)-1);this.za++}if(1==this.za-h)return this.Xa.aE(this.Xa.$,h,this.qq);k=new g.Ua(this.Xa.$.description);k.addPath(this.Xa.$,h,!0);for(h+=1;h<this.za;h++)k.Fr(this.Xa.$,h,0,f.ov(h),!1);return this.Xa.aE(k,0,this.qq)}return null};e.prototype.Ma=function(){return 0};e.prototype.se=
function(){};return e}(),b=function(){function e(f){this.Xa=f;this.za=0}e.prototype.next=function(){var f=this.Xa.$;if(this.za<f.ea()){var h=this.za;f.Kr(this.za);for(this.za++;this.za<f.ea()&&!(0<f.Kr(this.za));)this.za++;return 0==h&&this.za==f.ea()?this.Xa.fy(f,0,f.ea()):this.Xa.fy(f,h,this.za)}return null};e.prototype.Ma=function(){return 0};e.prototype.se=function(){};return e}(),d=function(){function e(f){this.Hs=this.iw=this.Is=this.Kd=null;this.be=[];this.Vb=f;this.tb=this.Hv=this.CT=this.La=
this.iA=this.Zs=this.ra=0;this.dA=this.uk=-1;this.qq=!0}e.buffer=function(f,h,k,m,n,p){if(null==f)throw g.i.O();if(0>m)throw g.i.O();if(f.B())return new g.Ea(f.description);var q=new g.l;f.zc(q);0<h&&q.Y(h,h);p=new e(p);p.Mj=k;p.$=f;p.ra=g.ua.Yd(k,q,!0);p.Zs=g.ua.Yd(null,q,!0);p.La=h;p.CT=f.K();0>=n&&(n=96);p.tb=Math.abs(p.La);p.Hv=0!=p.tb?1/p.tb:0;isNaN(m)||0==m?m=1E-5*p.tb:m>.5*p.tb&&(m=.5*p.tb);12>n&&(n=12);f=Math.abs(h)*(1-Math.cos(Math.PI/n));f>m?m=f:(f=Math.PI/Math.acos(1-m/Math.abs(h)),f<n-
1&&(n=g.P.truncate(f),12>n&&(n=12,m=Math.abs(h)*(1-Math.cos(Math.PI/n)))));p.uk=m;p.Fq=n;p.iA=Math.min(p.Zs,.25*m);return p.bE()};e.prototype.$u=function(){if(null==this.Kd)this.Kd=[];else if(0!==this.Kd.length)return;var f=this.gE();f=g.P.truncate((f+3)/4);var h=.5*Math.PI/f;this.dA=h;for(var k=0;k<4*f;k++)this.Kd.push(null);var m=Math.cos(h);h=Math.sin(h);var n=g.h.construct(0,1);for(k=0;k<f;k++)this.Kd[k+0*f]=g.h.construct(n.y,-n.x),this.Kd[k+1*f]=g.h.construct(-n.x,-n.y),this.Kd[k+2*f]=g.h.construct(-n.y,
n.x),this.Kd[k+3*f]=n,n=g.h.construct(n.x,n.y),n.xt(m,h)};e.prototype.bE=function(){var f=this.$.K();if(g.ba.Ad(f))return f=new g.Ua(this.$.description),f.pc(this.$,!0),this.$=f,this.bE();if(this.La<=this.ra)if(g.ba.NS(f)){if(0>=this.La&&(f=new g.l,this.$.A(f),f.S()<=2*-this.La||f.da()<=2*this.La))return new g.Ea(this.$.description)}else return new g.Ea(this.$.description);switch(this.$.K()){case 33:return this.ON();case 550:return this.NN();case 1607:return this.QN();case 1736:return this.PN();case 197:return this.KN();
default:throw g.i.Ra();}};e.prototype.QN=function(){if(this.zG(this.$)){var f=new g.Ta;this.$.ye(0,f);var h=new g.l;this.$.A(h);f.Db(h.wf());return this.Du(f)}this.$=this.PV(this.$);f=new a(this,this.qq);return g.Hh.local().X(f,this.Mj,this.Vb).next()};e.prototype.PN=function(){if(0==this.La)return this.$;var f=g.Zl.local();this.$u();this.$=f.X(this.$,null,!1,this.Vb);if(0>this.La){var h=this.$;h=this.fy(h,0,h.ea());return f.X(h,this.Mj,!1,this.Vb)}if(this.zG(this.$))return f=new g.Ta,this.$.ye(0,
f),h=new g.l,this.$.A(h),f.Db(h.wf()),this.Du(f);f=new b(this);return g.Hh.local().X(f,this.Mj,this.Vb).next()};e.prototype.fy=function(f,h,k){for(var m=new g.Ea(f.description);h<k;h++)if(!(1>f.Ka(h))){var n=f.Kr(h),p=new g.l;f.Rj(h,p);if(0<this.La)if(0<n)if(this.AG(f,h))n=new g.Ta,f.ye(f.Ca(h),n),n.Db(p.wf()),this.vu(m,n);else{var q=n=new g.Ua(f.description);q=g.Wt.EG(this.$,h)||2==this.zn(this.$,h,q,!0,1)?this.$D(f,h):this.yn(n);m.add(q,!1)}else{if(!(p.S()+this.ra<=2*this.tb||p.da()+this.ra<=2*
this.tb||(q=n=new g.Ua(f.description),this.zn(this.$,h,q,!0,1),n.B()))){var r=new g.l;r.L(p);r.Y(this.tb,this.tb);q.vp(r);q=this.yn(n);p=1;for(n=q.ea();p<n;p++)m.addPath(q,p,!0)}}else if(0<n){if(!(p.S()+this.ra<=2*this.tb||p.da()+this.ra<=2*this.tb||(q=n=new g.Ua(f.description),this.zn(this.$,h,q,!0,-1),n.B())))for(r=new g.l,q.zc(r),r.Y(this.tb,this.tb),q.vp(r),q=this.yn(n),p=1,n=q.ea();p<n;p++)m.addPath(q,p,!0)}else for(q=n=new g.Ua(f.description),this.zn(this.$,h,q,!0,-1),q=this.yn(n),p=0,n=q.ea();p<
n;p++)m.addPath(q,p,!0)}if(0<this.La)return 1<m.ea()?m=this.yn(m):e.fx(m);f=new g.l;m.zc(f);if(m.B())return e.fx(m);f.Y(this.tb,this.tb);m.vp(f);m=this.yn(m);f=new g.Ea(m.description);p=1;for(n=m.ea();p<n;p++)f.addPath(m,p,!1);return e.fx(f)};e.prototype.ON=function(){return this.Du(this.$)};e.prototype.Du=function(f){var h=new g.Ea(this.$.description);this.vu(h,f);return this.jX(h)};e.prototype.NN=function(){var f=new c(this.$,this.La,this.Mj,this.uk,this.Fq,this.Vb);return g.Hh.local().X(f,this.Mj,
this.Vb).next()};e.prototype.KN=function(){var f=new g.Ea(this.$.description);if(0>=this.La){if(0==this.La)f.cd(this.$,!1);else{var h=new g.Gh;this.$.dn(h);h.Y(this.La,this.La);f.cd(h,!1)}return f}f.cd(this.$,!1);this.$=f;return this.$D(f,0)};e.prototype.$D=function(f,h){this.$u();var k=new g.Ea(f.description),m=new g.h,n=new g.h,p=new g.h,q=new g.h,r=new g.h,u=new g.h,v=new g.h,w=new g.h,z=f.Ka(h),x=f.Ca(h),A=0;for(h=f.Ka(h);A<h;A++){f.D(x+A,n);f.D(x+(A+1)%z,q);f.D(x+(A+2)%z,u);v.wc(q,n);if(0==v.length())throw g.i.Ra();
v.Ev();v.normalize();v.scale(this.tb);m.add(v,n);p.add(v,q);0==A?k.It(m):k.Ci(m);k.Ci(p);w.wc(u,q);if(0==w.length())throw g.i.Ra();w.Ev();w.normalize();w.scale(this.tb);r.add(w,q);this.wD(k,q,p,r,!1)}return e.fx(k)};e.prototype.aE=function(f,h,k){this.$u();if(1>f.Ka(h))return null;if(this.AG(f,h)&&0<this.La){k=new g.Ta;f.ye(f.Ca(h),k);var m=new g.l;f.Rj(h,m);k.Db(m.wf());return this.Du(k)}m=new g.Ua(f.description);if(f.On(h))this.zn(f,h,m,k,1),this.zn(f,h,m,k,-1);else{var n=new g.Ua(f.description);
n.addPath(f,h,!1);n.Fr(f,h,0,f.ov(h),!1);this.zn(n,0,m,k,1)}return this.yn(m)};e.prototype.Zq=function(){this.Vs++;if(0==this.Vs%1024&&null!=this.Vb&&!this.Vb.progress(-1,-1))throw g.i.cu("user_canceled");};e.prototype.yn=function(f){return g.Lg.Lk(f,this.Zs,!0,!0,this.Vb)};e.prototype.gE=function(){if(0==this.uk)return this.Fq;var f=1-this.uk*Math.abs(this.Hv);f=-1>f?4:2*Math.PI/Math.acos(f)+.5;4>f?f=4:f>this.Fq&&(f=this.Fq);return g.P.truncate(f)};e.prototype.wD=function(f,h,k,m,n){this.$u();var p=
new g.h;p.wc(k,h);p.scale(this.Hv);var q=new g.h;q.wc(m,h);q.scale(this.Hv);p=Math.atan2(p.y,p.x)/this.dA;0>p&&(p=this.Kd.length+p);p=this.Kd.length-p;q=Math.atan2(q.y,q.x)/this.dA;0>q&&(q=this.Kd.length+q);q=this.Kd.length-q;q<p&&(q+=this.Kd.length);var r=g.P.truncate(q);q=g.P.truncate(Math.ceil(p));p=new g.h;p.N(this.Kd[q%this.Kd.length]);p.yt(this.tb,h);var u=10*this.ra;p.sub(k);p.length()<u&&(q+=1);p.N(this.Kd[r%this.Kd.length]);p.yt(this.tb,h);p.sub(m);p.length()<u&&--r;k=r-q;k++;r=0;for(q%=
this.Kd.length;r<k;r++,q=(q+1)%this.Kd.length)p.N(this.Kd[q]),p.yt(this.tb,h),f.Ci(p),this.Zq();n&&f.Ci(m)};e.prototype.zn=function(f,h,k,m,n){var p=new g.jd,q=p.lN(f,h);p.Ip(this.iA,!1,!1);if(2>p.I(q)){if(0>n)return 1;n=f;p=new g.Ta;n.ye(n.Ca(h),p);this.vu(k,p);return 1}var r=p.Oa(p.Ya(p.Ob(q))),u=new g.Fd;u.kg(-r.x,-r.y);p.Rc(u);if(m&&(this.rQ(p,q,n),2>p.I(q))){if(0>n)return 1;n=f;p=new g.Ta;n.ye(n.Ca(h),p);this.vu(k,p);return 1}this.be.length=0;var v=p.Ob(q);h=p.Ya(v);var w=1==n?p.Na(h):p.W(h);
f=1==n?p.W(h):p.Na(h);var z=!0;m=new g.h;q=new g.h;var x=new g.h,A=new g.h,B=new g.h,C=new g.h,D=new g.h,G=new g.h,H=new g.h,K=new g.h,J=this.tb;v=p.Ka(v);for(var S=0;S<v;S++)p.D(f,q),z&&(p.D(h,m),p.D(w,x),G.wc(m,x),G.normalize(),K.HG(G),K.scale(J),A.add(K,m)),D.wc(q,m),D.normalize(),H.HG(D),H.scale(J),B.add(m,H),w=G.wi(D),z=G.Qh(D),0>w||0>z&&0==w?this.be.push(l.Ou(A,B,m,2,this.be.length+1,this.be.length-1)):A.sb(B)||(this.be.push(l.construct(A,m,this.be.length+1,this.be.length-1,"dummy")),this.be.push(l.construct(m,
B,this.be.length+1,this.be.length-1,"dummy"))),C.add(q,H),this.be.push(l.Ou(B,C,m,1,this.be.length+1,this.be.length-1)),A.N(C),K.N(H),x.N(m),m.N(q),G.N(D),w=h,h=f,z=!1,f=1==n?p.W(h):p.Na(h);this.be[this.be.length-1].rh=0;this.be[0].th=this.be.length-1;this.RV(k);u.kg(r.x,r.y);k.OD(u,k.ea()-1);return 1};e.prototype.RV=function(f){for(var h=this.yO(),k=!0,m=h+1,n=h;m!=h;n=m){var p=this.be[n];m=-1!=p.rh?p.rh:(n+1)%this.be.length;0!=p.Do&&(k&&f.It(p.Km),2==p.Do?this.wD(f,p.Yv,p.Km,p.Xm,!0):f.Ci(p.Xm),
k=!1)}};e.prototype.yO=function(){null==this.Hs&&(this.Hs=[null,null,null,null,null,null,null,null,null]);for(var f=0,h=0,k=this.be.length;h<k;){var m=this.be[h];if(0!=(m.Do&3)){f=h;break}h=m.rh}k=f+1;for(h=f;k!=f;h=k){m=this.be[h];k=m.rh;for(var n=1,p=null;k!=h;){p=this.be[k];if(0!=(p.Do&3))break;k=p.rh;n++}1!=n&&1==(m.Do&p.Do)&&(null==this.Is&&(this.Is=new g.zb,this.iw=new g.zb),this.Is.Fc(m.Km),this.Is.Tc(m.Xm),this.iw.Fc(p.Km),this.iw.Tc(p.Xm),1==this.Is.Fa(this.iw,this.Hs,null,null,this.Zs)&&
(m.Xm.N(this.Hs[0]),p.Km.N(this.Hs[0]),m.rh=k,p.th=h))}return f};e.prototype.Cv=function(f,h,k){var m=new g.h;m.wc(k,f);k=m.length();k=this.tb*this.tb-k*k*.25;if(0<k){k=Math.sqrt(k);m.normalize();m.cr();var n=new g.h;n.wc(h,f);if(n.Qh(m)+k>=this.tb)return!0}return!1};e.prototype.rQ=function(f,h,k){for(var m=0;1>m;m++){var n=!1,p=f.Ob(h),q=f.Ka(p);if(0==q)break;var r=q;if(3>q)break;!f.ec(p)&&(r=q-1);p=f.Ya(p);q=0<k?f.Na(p):f.W(p);for(var u=0<k?f.W(p):f.Na(p),v=q,w=!0,z=new g.h,x=new g.h,A=new g.h,
B=new g.h,C=new g.h,D=g.h.construct(0,0),G=new g.h,H=new g.h,K=new g.h,J=new g.h,S=this.tb,R=0,V=0;V<r;){f.D(u,x);w&&(f.D(p,z),f.D(q,A),v=q);H.wc(z,A);H.normalize();G.wc(x,z);G.normalize();if(v==u)break;var W=H.wi(G),ia=H.Qh(G),oa=!0;0>W||0>ia&&0==W||!this.Cv(A,z,x)||(D.N(x),oa=!1,++R,n=!0);if(oa){if(0<R)for(;;){W=0<k?f.Na(v):f.W(v);if(W==p)break;f.D(W,B);if(this.Cv(B,A,D))A.N(B),v=W,oa=!1,++R;else{W!=u&&this.Cv(B,A,x)&&this.Cv(B,z,x)&&(A.N(B),v=W,oa=!1,++R);break}}if(!oa)continue;if(0<R){v=0<k?f.Na(q):
f.W(q);for(w=1;w<R;w++)oa=0<k?f.Na(v):f.W(v),f.qd(v,!0),v=oa;K.wc(z,A);R=K.length();R=S*S-R*R*.25;R=Math.sqrt(R);S-R>.5*this.uk?(C.add(A,z),C.scale(.5),K.normalize(),K.cr(),J.N(K),J.scale(S-R),C.add(J),f.pf(q,C)):f.qd(q,!0);R=0}A.N(z);v=p}z.N(x);q=p;p=u;u=0<k?f.W(p):f.Na(p);V++;w=!1}if(0<R){v=0<k?f.Na(q):f.W(q);for(w=1;w<R;w++)oa=0<k?f.Na(v):f.W(v),f.qd(v,!0),v=oa;C.add(A,z);C.scale(.5);K.wc(z,A);R=K.length();R=S*S-R*R*.25;R=Math.sqrt(R);K.normalize();K.cr();J.N(K);J.scale(S-R);C.add(J);f.pf(q,C)}f.Ip(this.iA,
!1,!1);if(!n)break}};e.prototype.AG=function(f,h){if(1==f.Ka(h))return!0;var k=new g.l;f.Rj(h,k);return Math.max(k.S(),k.da())<.5*this.uk?!0:!1};e.prototype.zG=function(f){var h=new g.l;f.A(h);return Math.max(h.S(),h.da())<.5*this.uk?!0:!1};e.prototype.PV=function(f){f=g.rC.local().X(f,.25*this.uk,!1,this.Vb);for(var h=0,k=0,m=f.ea();k<m;k++)h=Math.max(f.Ka(k),h);if(32>h)return this.qq=!1,f;this.qq=!0;return g.Lg.Lk(f,this.Zs,!1,!0,this.Vb)};e.prototype.vu=function(f,h){h=h.D();if(null!=this.Kd&&
0!==this.Kd.length){var k=new g.h;k.N(this.Kd[0]);k.yt(this.tb,h);f.It(k);for(var m=1,n=this.Kd.length;m<n;m++)k.N(this.Kd[m]),k.yt(this.tb,h),f.Ci(k)}else{m=this.gE();k=g.P.truncate((m+3)/4);m=.5*Math.PI/k;n=Math.cos(m);for(var p=Math.sin(m),q=new g.h,r=3;0<=r;r--){q.oa(0,this.tb);switch(r){case 0:for(m=0;m<k;m++)f.yj(q.x+h.x,q.y+h.y),q.xt(n,p);break;case 1:for(m=0;m<k;m++)f.yj(-q.y+h.x,q.x+h.y),q.xt(n,p);break;case 2:for(m=0;m<k;m++)f.yj(-q.x+h.x,-q.y+h.y),q.xt(n,p);break;default:for(f.mx(q.y+h.x,
-q.x+h.y),m=1;m<k;m++)q.xt(n,p),f.yj(q.y+h.x,-q.x+h.y)}this.Zq()}}};e.fx=function(f){f.Dh(1,0);return f};e.prototype.jX=function(f){f.Dh(2,this.ra);f.hm();return f};return e}();g.CK=d})(y||(y={}));(function(g){var t=function(){function l(c){this.Da=c;this.g=new g.jd;this.fd=new g.ja(0)}l.prototype.Lh=function(c,a,b){switch(a){case 0:if(c.v<b&&c.C<=b)break;else return c.v>=b?1:-1;case 1:if(c.F<b&&c.H<=b)break;else return c.F>=b?1:-1;case 2:if(c.v>=b&&c.C>b)break;else return c.C<=b?1:-1;case 3:if(!(c.F>=
b&&c.H>b))return c.H<=b?1:-1}return 0};l.prototype.py=function(c,a){return 1736==c.K()?this.ry(c,a):this.sy(c)};l.prototype.ry=function(c,a){if(0==this.Da.S()||0==this.Da.da())return c.Ja();var b=new g.l;c.zc(b);this.$=this.g.Ib(c);var d=new g.l,e=new g.l,f=new g.h,h=new g.h,k=[0,0,0,0,0,0,0,0,0],m=[0,0,0,0,0,0,0,0,0];new g.lg;var n=new g.zb,p=new g.ja(0);p.Jb(Math.min(100,c.I()));for(var q=!1,r=0;!q&&4>r;r++){var u=!1,v=0!=(r&1),w=0;switch(r){case 0:w=this.Da.v;u=b.v<=w&&b.C>=w;break;case 1:w=this.Da.F;
u=b.F<=w&&b.H>=w;break;case 2:w=this.Da.C;u=b.v<=w&&b.C>=w;break;case 3:w=this.Da.H,u=b.F<=w&&b.H>=w}if(u)for(q=!0,u=this.g.Ob(this.$);-1!=u;){var z=-1,x=-1,A=this.g.Ya(u),B=A;do{var C=this.g.cc(B);null==C&&(C=n,this.g.D(B,f),C.Fc(f),this.g.D(this.g.W(B),h),C.Tc(h));C.A(d);var D=this.Lh(d,r,w),G=0,H=-1;if(-1==D){C=C.fq(v,w,k,m);G=0<C?this.g.Vl(B,m,C):0;G+=1;var K=B,J=this.g.W(K);for(C=0;C<G;C++){this.g.D(K,f);this.g.D(J,h);H=this.g.cc(K);null==H&&(H=n,H.Fc(f),H.Tc(h));H.A(e);H=this.Lh(e,r,w);if(-1==
H){if(v)H=Math.abs(f.y-w),S=Math.abs(h.y-w),H<S?(f.y=w,this.g.pf(K,f)):(h.y=w,this.g.pf(J,h));else{H=Math.abs(f.x-w);var S=Math.abs(h.x-w);H<S?(f.x=w,this.g.pf(K,f)):(h.x=w,this.g.pf(J,h))}H=this.g.cc(K);null==H&&(H=n,H.Fc(f),H.Tc(h));H.A(e);H=this.Lh(e,r,w)}S=z;z=H;-1==x&&(x=z);0==S&&1==z||1==S&&0==z||0!=S||0!=z||p.add(K);1==z&&(q=!1);H=K=J;J=this.g.W(J)}}0==G&&(S=z,z=D,-1==x&&(x=z),0==S&&1==z||1==S&&0==z||0!=S||0!=z||p.add(B),1==z&&(q=!1),H=this.g.W(B));B=H}while(B!=A);0==x&&0==z&&p.add(A);C=0;
for(z=p.size;C<z;C++)x=p.get(C),this.g.qd(x,!1);p.clear(!1);u=3>this.g.Ka(u)?this.g.ar(u):this.g.Sb(u)}}if(q)return c.Ja();this.uB();0<a&&this.Cy(a);return this.g.Me(this.$)};l.prototype.sy=function(c){var a=new g.l,b=new g.l,d=[0,0,0,0,0,0,0,0,0],e=[0,0,0,0,0,0,0,0,0],f=new g.lg,h=c,k=new g.l;c.zc(k);for(var m=0;4>m;m++){var n=!1,p=0!=(m&1),q=0;switch(m){case 0:q=this.Da.v;n=k.v<=q&&k.C>=q;break;case 1:q=this.Da.F;n=k.F<=q&&k.H>=q;break;case 2:q=this.Da.C;n=k.v<=q&&k.C>=q;break;case 3:q=this.Da.H,
n=k.F<=q&&k.H>=q}if(n){n=h;h=c.Ja();n=n.Ha();n.Zi();for(var r,u=new g.h;n.ab();)for(var v,w=!0;n.Ia();){var z=n.ia();z.A(a);var x=this.Lh(a,m,q);if(-1==x){if(x=z.fq(p,q,d,e),0<x){var A=0;r=z.bc();for(var B=0;B<=x;B++)if(v=B<x?e[B]:1,A!=v){z.eh(A,v,f);var C=f.get();C.Fc(r);B<x&&(p?(u.x=d[B],u.y=q):(u.x=q,u.y=d[B]),C.Tc(u));C.A(b);var D=this.Lh(b,m,q);if(-1==D){r=C.bc();A=C.yc();if(p)D=Math.abs(r.y-q),G=Math.abs(A.y-q),D<G?(r.y=q,C.Fc(r)):(A.y=q,C.Tc(A));else{D=Math.abs(r.x-q);var G=Math.abs(A.x-q);
D<G?(r.x=q,C.Fc(r)):(A.x=q,C.Tc(A))}C.A(b);D=this.Lh(b,m,q)}r=C.yc();A=v;v=D;1==v?(h.pc(C,w),w=!1):w=!0}}}else v=x,1==v?(h.pc(z,w),w=!1):w=!0}}}return h};l.prototype.uB=function(){this.ji=-1;this.Wl(!1,this.Da.v);this.Wl(!1,this.Da.C);this.Wl(!0,this.Da.F);this.Wl(!0,this.Da.H);this.fd.resize(0);this.fd.Jb(100);this.ji=this.g.Id();for(var c=new g.h,a=this.g.Ob(this.$);-1!=a;a=this.g.Sb(a))for(var b=this.g.Ya(a),d=0,e=this.g.Ka(a);d<e;d++,b=this.g.W(b))if(this.g.D(b,c),this.Da.v==c.x||this.Da.C==c.x||
this.Da.F==c.y||this.Da.H==c.y)this.g.Sa(b,this.ji,this.fd.size),this.fd.add(b);this.Ol(!1,this.Da.v);this.Ol(!1,this.Da.C);this.Ol(!0,this.Da.F);this.Ol(!0,this.Da.H);this.Jy()};l.prototype.Cy=function(c){for(var a=new g.h,b=new g.h,d=g.P.pg(2048,0),e=this.g.Ob(this.$);-1!=e;e=this.g.Sb(e)){var f=this.g.Ya(e),h=f;do{var k=this.g.W(h);this.g.D(h,a);var m=-1;a.x==this.Da.v?(this.g.D(k,b),b.x==this.Da.v&&(m=1)):a.x==this.Da.C&&(this.g.D(k,b),b.x==this.Da.C&&(m=1));a.y==this.Da.F?(this.g.D(k,b),b.y==
this.Da.F&&(m=0)):a.y==this.Da.H&&(this.g.D(k,b),b.y==this.Da.H&&(m=0));if(-1!=m&&(m=g.h.vb(a,b),m=g.P.truncate(Math.min(Math.ceil(m/c),2048)),!(1>=m))){for(var n=1;n<m;n++)d[n-1]=1*n/m;this.g.Vl(h,d,m-1)}h=k}while(h!=f)}};l.prototype.Wl=function(c,a){var b=this.g.Id(),d=new g.h,e=new g.ja(0);e.Jb(100);for(var f=this.g.Ob(this.$);-1!=f;f=this.g.Sb(f))for(var h=this.g.Ya(f),k=0,m=this.g.Ka(f);k<m;k++){var n=this.g.W(h);this.g.D(h,d);if(c?d.y==a:d.x==a)if(this.g.D(n,d),c?d.y==a:d.x==a)1!=this.g.Qa(h,
b)&&(e.add(h),this.g.Sa(h,b,1)),1!=this.g.Qa(n,b)&&(e.add(n),this.g.Sa(n,b,1));h=n}this.g.Vd(b);if(!(3>e.size)){var p=this;e.Xd(0,e.size,function(D,G){return p.Mh(D,G)});b=new g.h;f=new g.h;h=new g.h;f.Uc();var q=-1;k=new g.ja(0);m=new g.ja(0);n=this.g.Id();for(var r=this.g.Id(),u=0,v=e.size;u<v;u++){var w=e.get(u);this.g.D(w,d);if(!d.sb(f)){if(-1!=q){for(var z=q;z<u;z++){q=e.get(z);var x=this.g.W(q);w=this.g.Na(q);var A=!1;0>this.Mh(q,x)&&(this.g.D(x,b),c?b.y==a:b.x==a)&&(k.add(q),A=!0,this.g.Sa(q,
r,1));0>this.Mh(q,w)&&(this.g.D(w,b),c?b.y==a:b.x==a)&&(A||k.add(q),this.g.Sa(q,n,1))}z=0;for(A=k.size;z<A;z++){q=k.get(z);w=this.g.Qa(q,n);x=this.g.Qa(q,r);if(1==w){w=this.g.Na(q);this.g.D(w,h);var B=[0];B[0]=0;if(!h.sb(d)){var C=g.h.vb(f,h);B[0]=g.h.vb(h,d)/C;0==B[0]?B[0]=2.220446049250313E-16:1==B[0]&&(B[0]=.9999999999999998);this.g.Vl(w,B,1);w=this.g.Na(q);this.g.pf(w,d);m.add(w);this.g.Sa(w,n,1);this.g.Sa(w,r,-1)}}1==x&&(x=this.g.W(q),this.g.D(x,h),B=[0],B[0]=0,h.sb(d)||(C=g.h.vb(f,h),B[0]=g.h.vb(f,
d)/C,0==B[0]?B[0]=2.220446049250313E-16:1==B[0]&&(B[0]=.9999999999999998),this.g.Vl(q,B,1),w=this.g.W(q),this.g.pf(w,d),m.add(w),this.g.Sa(w,n,-1),this.g.Sa(w,r,1)))}q=k;k=m;m=q;m.clear(!1)}q=u;f.N(d)}}this.g.Vd(n);this.g.Vd(r)}};l.prototype.Ol=function(c,a){var b=new g.h,d=new g.ja(0);d.Jb(100);for(var e=this.g.Id(),f=0,h=this.fd.size;f<h;f++){var k=this.fd.get(f);if(-1!=k){var m=this.g.W(k);this.g.D(k,b);if(c?b.y==a:b.x==a)if(this.g.D(m,b),c?b.y==a:b.x==a)-2!=this.g.Qa(k,e)&&(d.add(k),this.g.Sa(k,
e,-2)),-2!=this.g.Qa(m,e)&&(d.add(m),this.g.Sa(m,e,-2))}}if(0!=d.size){var n=this;d.Xd(0,d.size,function(G,H){return n.Mh(G,H)});f=0;for(h=d.size;f<h;f++){var p=d.get(f);this.g.Sa(p,e,f)}k=new g.h;m=new g.h;m.Uc();var q=-1;f=0;for(h=d.size;f<h;f++)if(p=d.get(f),-1!=p&&(this.g.D(p,b),!b.sb(m))){if(-1!=q)for(;;){p=!1;for(var r=1<f-q?f-1:f,u=q;u<r;u++){var v=d.get(u);if(-1!=v){var w=-1,z=this.g.W(v);0>this.Mh(v,z)&&(this.g.D(z,k),c?k.y==a:k.x==a)&&(w=z);z=-1;var x=this.g.Na(v);0>this.Mh(v,x)&&(this.g.D(x,
k),c?k.y==a:k.x==a)&&(z=x);if(-1!=w&&-1!=z)this.Kh(v,d,e),this.g.qd(v,!1),this.Kh(w,d,e),this.g.qd(w,!1),p=!0;else if(-1!=w||-1!=z){for(x=u+1;x<f;x++){var A=d.get(x);if(-1!=A){var B=this.g.W(A),C=-1;0>this.Mh(A,B)&&(this.g.D(B,k),c?k.y==a:k.x==a)&&(C=B);B=this.g.Na(A);var D=-1;0>this.Mh(A,B)&&(this.g.D(B,k),c?k.y==a:k.x==a)&&(D=B);if(-1!=C&&-1!=D){this.Kh(A,d,e);this.g.qd(A,!1);this.Kh(C,d,e);this.g.qd(C,!1);p=!0;break}if(-1!=w&&-1!=D){this.vt(d,v,w,A,D,e);p=!0;break}else if(-1!=z&&-1!=C){this.vt(d,
A,C,v,z,e);p=!0;break}}}if(p)break}}}if(!p)break}q=f;m.N(b)}}this.g.Vd(e)};l.prototype.Kh=function(c,a,b){b=this.g.Qa(c,b);a.set(b,-1);b=this.g.Qa(c,this.ji);this.fd.set(b,-1);a=this.g.dd(c);-1!=a&&this.g.Ya(a)==c&&(this.g.Nf(a,-1),this.g.$g(a,-1))};l.prototype.vt=function(c,a,b,d,e,f){this.g.Dc(a,d);this.g.Ec(d,a);this.g.Ec(b,e);this.g.Dc(e,b);this.Kh(d,c,f);this.g.mi(d,!1);this.Kh(e,c,f);this.g.mi(e,!0)};l.prototype.Jy=function(){for(var c=0,a=this.fd.size;c<a;c++){var b=this.fd.get(c);-1!=b&&this.g.aj(b,
-1)}for(var d=0,e=0,f=this.g.Ob(this.$);-1!=f;){var h=this.g.Ya(f);if(-1==h||f!=this.g.dd(h)){var k=f;f=this.g.Sb(f);this.g.Nf(k,-1);this.g.br(k)}else{b=h;k=0;do this.g.aj(b,f),k++,b=this.g.W(b);while(b!=h);2>=k?(b=this.g.Qa(h,this.ji),this.fd.set(b,-1),h=this.g.qd(h,!1),2==k&&(b=this.g.Qa(h,this.ji),this.fd.set(b,-1),this.g.qd(h,!1)),k=f,f=this.g.Sb(f),this.g.Nf(k,-1),this.g.br(k)):(this.g.ep(f,!1),this.g.$g(f,this.g.Na(h)),this.g.Vj(f,k),e+=k,d++,f=this.g.Sb(f))}}c=0;for(a=this.fd.size;c<a;c++)if(b=
this.fd.get(c),-1!=b&&(f=this.g.dd(b),-1==f)){f=this.g.zf(this.$,-1);k=0;h=b;do this.g.aj(b,f),k++,b=this.g.W(b);while(b!=h);2>=k?(b=this.g.Qa(h,this.ji),this.fd.set(b,-1),h=this.g.qd(h,!1),2==k&&(b=this.g.Qa(h,this.ji),0<=b&&this.fd.set(b,-1),this.g.qd(h,!1)),k=f,this.g.Nf(k,-1),this.g.br(k)):(this.g.mn(f,!0),this.g.Vj(f,k),this.g.Nf(f,h),this.g.$g(f,this.g.Na(h)),this.g.ep(f,!1),e+=k,d++)}this.g.Sl(this.$,d);this.g.Tj(this.$,e);c=0;for(a=this.g.md;-1!=a;a=this.g.xe(a))c+=this.g.I(a);this.g.QB(c)};
l.qy=function(c,a,b){return(new l(a)).py(c,b)};l.clip=function(c,a,b,d){if(c.B())return c;if(a.B())return c.Ja();b=c.K();if(33==b)return d=c.D(),a.contains(d)?c:c.Ja();if(197==b)return d=new g.l,c.A(d),d.Fa(a)?(a=new g.Gh,c.copyTo(a),a.Yo(d),a):c.Ja();var e=new g.l;c.zc(e);if(a.contains(e))return c;if(!a.isIntersecting(e))return c.Ja();e=c.Cb;if(null!=e&&(e=e.Ek,null!=e)){e=e.So(a);if(1==e){if(1736!=b)throw g.i.Ra();c=new g.Ea(c.description);c.vp(a);return c}if(0==e)return c.Ja()}switch(b){case 550:b=
null;e=c.I();for(var f=c.lb(0),h=0,k=0;k<e;k++)d=new g.h,f.vc(2*k,d),a.contains(d)||(0==h&&(b=c.Ja()),h<k&&b.Hd(c,h,k),h=k+1);0<h&&b.Hd(c,h,e);return 0==h?c:b;case 1736:case 1607:return l.qy(c,a,d);default:throw g.i.Ra();}};l.prototype.Mh=function(c,a){var b=new g.h;this.g.D(c,b);c=new g.h;this.g.D(a,c);return b.compare(c)};return l}();g.Wd=t})(y||(y={}));(function(g){var t=function(){function l(c,a){this.Da=c;this.g=new g.jd;this.fd=new g.ja(0);this.od=a}l.prototype.Lh=function(c,a,b){switch(a){case 0:if(c.v<
b&&c.C<=b)break;else return c.v>=b?1:-1;case 1:if(c.F<b&&c.H<=b)break;else return c.F>=b?1:-1;case 2:if(c.v>=b&&c.C>b)break;else return c.C<=b?1:-1;case 3:if(!(c.F>=b&&c.H>b))return c.H<=b?1:-1}return 0};l.prototype.py=function(c,a){return 1736==c.K()?this.ry(c,a):this.sy(c)};l.prototype.ry=function(c,a){if(0==this.Da.S()||0==this.Da.da())return c.Ja();var b=new g.l;c.zc(b);this.$=this.g.Ib(c);var d=new g.l,e=new g.l,f=new g.h,h=new g.h,k=[0,0,0,0,0,0,0,0,0],m=[0,0,0,0,0,0,0,0,0],n=new g.zb,p=new g.ja(0);
p.Jb(256);for(var q=!1,r=0;!q&&4>r;r++){var u=!1,v=0!=(r&1),w=0;switch(r){case 0:w=this.Da.v;u=b.v<=w&&b.C>=w;break;case 1:w=this.Da.F;u=b.F<=w&&b.H>=w;break;case 2:w=this.Da.C;u=b.v<=w&&b.C>=w;break;case 3:w=this.Da.H,u=b.F<=w&&b.H>=w}if(u)for(q=!0,u=this.g.Ob(this.$);-1!=u;){var z=!0,x=-1,A=-1,B=this.g.Ya(u),C=B;do{var D=this.g.cc(C);null==D&&(D=n,this.g.D(C,f),D.Fc(f),this.g.D(this.g.W(C),h),D.Tc(h));D.A(d);var G=this.Lh(d,r,w),H=0,K=-1;if(-1==G){D=D.fq(v,w,k,m);H=0<D?this.g.CX(C,m,D):0;H+=1;var J=
C,S=this.g.W(J);for(D=0;D<H;D++){this.g.D(J,f);this.g.D(S,h);K=this.g.cc(J);null==K&&(K=n,K.Fc(f),K.Tc(h));K.A(e);K=this.Lh(e,r,w);if(-1==K){if(v)K=Math.abs(f.y-w),R=Math.abs(h.y-w),K<R?(f.y=w,this.g.pf(J,f)):(h.y=w,this.g.pf(S,h));else{K=Math.abs(f.x-w);var R=Math.abs(h.x-w);K<R?(f.x=w,this.g.pf(J,f)):(h.x=w,this.g.pf(S,h))}K=this.g.cc(J);null==K&&(K=n,K.Fc(f),K.Tc(h));K.A(e);K=this.Lh(e,r,w)}R=x;x=K;-1==A&&(A=x);0==R&&1==x||1==R&&0==x||0!=R||0!=x||p.add(J);1==x&&(z=q=!1);K=J=S;S=this.g.W(S)}}0==
H&&(R=x,x=G,-1==A&&(A=x),0==R&&1==x||1==R&&0==x||0!=R||0!=x||p.add(C),1==x&&(z=q=!1),K=this.g.W(C));C=K;if(256<=p.size){D=1;for(G=p.size-1;D<G;D++)H=p.get(D),this.g.qd(H,!1);p.set(1,p.Hc());p.Ch(2)}}while(C!=B);if(!z)for(0==A&&0==x&&p.add(B),D=0,G=p.size;D<G;D++)H=p.get(D),this.g.qd(H,!1);p.clear(!1);u=z||0==this.g.Ka(u)?this.g.ar(u):this.g.Sb(u)}}if(q)return c.Ja();this.uB();0<a&&this.Cy(a);return this.g.Me(this.$)};l.prototype.sy=function(c){var a=new g.l,b=new g.l,d=[0,0,0,0,0,0,0,0,0],e=[0,0,
0,0,0,0,0,0,0],f=new g.lg,h=c,k=new g.l;c.zc(k);for(var m=new g.h,n=new g.h,p=null,q=null,r=0;4>r;r++){var u=!1,v=0!=(r&1),w=0;switch(r){case 0:w=this.Da.v;u=k.v<=w&&k.C>=w;break;case 1:w=this.Da.F;u=k.F<=w&&k.H>=w;break;case 2:w=this.Da.C;u=k.v<=w&&k.C>=w;break;case 3:w=this.Da.H,u=k.F<=w&&k.H>=w}if(u)for(u=h,h=c.Ja(),u=u.Ha(),u.Zi();u.ab();)for(var z,x=!0;u.Ia();){var A=u.ia();A.A(a);var B=this.Lh(a,r,w);if(-1==B){if(B=A.fq(v,w,d,e),0<B){var C=0;A.$p(m);for(var D=0;D<=B;D++)if(z=D<B?e[D]:1,C!=z){A.eh(C,
z,f);var G=f.get();G.Fc(m);D<B&&(v?(n.x=d[D],n.y=w):(n.x=w,n.y=d[D]),G.Tc(n));G.A(b);var H=this.Lh(b,r,w);-1==H&&(null==p&&(p=new g.h),null==q&&(q=new g.h),G.$p(p),G.Ur(q),v?(C=Math.abs(p.y-w),H=Math.abs(q.y-w),C<H?(p.y=w,G.Fc(p)):(q.y=w,G.Tc(q))):(C=Math.abs(p.x-w),H=Math.abs(q.x-w),C<H?(p.x=w,G.Fc(p)):(q.x=w,G.Tc(q))),G.A(b),H=this.Lh(b,r,w));G.Ur(m);C=z;z=H;1==z?(h.pc(G,x),x=!1):x=!0}}}else z=B,1==z?(h.pc(A,x),x=!1):x=!0}}return h};l.prototype.uB=function(){this.ji=-1;this.Wl(!1,this.Da.v);this.Wl(!1,
this.Da.C);this.Wl(!0,this.Da.F);this.Wl(!0,this.Da.H);this.fd.resize(0);this.fd.Jb(100);this.ji=this.g.Id();for(var c=new g.h,a=this.g.Ob(this.$);-1!=a;a=this.g.Sb(a))for(var b=this.g.Ya(a),d=0,e=this.g.Ka(a);d<e;d++,b=this.g.W(b))if(this.g.D(b,c),this.Da.v==c.x||this.Da.C==c.x||this.Da.F==c.y||this.Da.H==c.y)this.g.Sa(b,this.ji,this.fd.size),this.fd.add(b);this.Ol(!1,this.Da.v);this.Ol(!1,this.Da.C);this.Ol(!0,this.Da.F);this.Ol(!0,this.Da.H);this.Jy()};l.prototype.Cy=function(c){for(var a=new g.h,
b=new g.h,d=null,e=null,f=g.P.pg(2048,0),h=this.g.Ob(this.$);-1!=h;h=this.g.Sb(h)){var k=this.g.Ya(h),m=k;do{var n=this.g.W(m);this.g.D(m,a);var p=-1;a.x==this.Da.v?(this.g.D(n,b),b.x==this.Da.v&&(p=1)):a.x==this.Da.C&&(this.g.D(n,b),b.x==this.Da.C&&(p=1));a.y==this.Da.F?(this.g.D(n,b),b.y==this.Da.F&&(p=0)):a.y==this.Da.H&&(this.g.D(n,b),b.y==this.Da.H&&(p=0));if(-1!=p){null==d&&(d=new g.h);null==e&&(e=new g.h);d.N(a);e.oa(0,0);if(0==p){var q=a.x-this.Da.v;e.x=g.oc.sign(b.x-a.x);d.x=c*g.oc.Cn(Math.floor(Math.abs(q/
c)),q)+this.Da.v;0>d.x&&(d.x+=c)}else q=a.y-this.Da.F,e.y=g.oc.sign(b.y-a.y),d.y=c*g.oc.Cn(Math.floor(Math.abs(q/c)),q)+this.Da.F,0>d.y&&(d.y+=c);q=0!=p?b.y-a.y:b.x-a.x;var r=Math.abs(q);if(65536<r/c)throw g.i.ga("internal error");if(0<r){r=g.P.truncate(r/c)+2;f.length<r&&(f=g.P.pg(r));for(var u=r=0;;u++){var v=new g.h;v.x=d.x+e.x*u*c;v.y=d.y+e.y*u*c;v=(0!=p?v.y-a.y:v.x-a.x)/q;if(1<=v)break;0>=v||(f[r]=v,r++)}0!=r&&this.g.Vl(m,f,r)}}m=n}while(m!=k)}};l.prototype.Wl=function(c,a){for(var b=-1,d=new g.h,
e=null,f=this.g.Ob(this.$);-1!=f;f=this.g.Sb(f))for(var h=this.g.Ya(f),k=0,m=this.g.Ka(f);k<m;k++){var n=this.g.W(h);this.g.D(h,d);if(c?d.y==a:d.x==a)if(this.g.D(n,d),c?d.y==a:d.x==a)-1==b&&(b=this.g.Id()),null==e&&(e=new g.ja(0),e.Jb(100)),1!=this.g.Qa(h,b)&&(e.add(h),this.g.Sa(h,b,1)),1!=this.g.Qa(n,b)&&(e.add(n),this.g.Sa(n,b,1));h=n}-1!=b&&this.g.Vd(b);if(!(null==e||3>e.size)){var p=this;e.Xd(0,e.size,function(D,G){return p.Mh(D,G)});b=new g.h;f=new g.h;h=new g.h;f.Uc();var q=-1;k=new g.ja(0);
m=new g.ja(0);n=null;for(var r=this.g.Id(),u=this.g.Id(),v=0,w=e.size;v<w;v++){var z=e.get(v);this.g.D(z,d);if(!d.sb(f)){if(-1!=q){for(var x=q;x<v;x++){q=e.get(x);var A=this.g.W(q);z=this.g.Na(q);var B=!1;this.g.D(A,b);0>f.compare(b)&&(c?b.y==a:b.x==a)&&(k.add(q),B=!0,this.g.Sa(q,u,1));this.g.D(z,b);0>f.compare(b)&&(c?b.y==a:b.x==a)&&(B||k.add(q),this.g.Sa(q,r,1))}x=0;for(B=k.size;x<B;x++){q=k.get(x);z=this.g.Qa(q,r);A=this.g.Qa(q,u);if(1==z&&(z=this.g.Na(q),this.g.D(z,h),!h.sb(d))){null==n&&(n=[]);
var C=g.h.vb(f,h);n[0]=g.h.vb(h,d)/C;0==n[0]?n[0]=2.220446049250313E-16:1==n[0]&&(n[0]=.9999999999999998);this.g.Vl(z,n,1);z=this.g.Na(q);this.g.pf(z,d);m.add(z);this.g.Sa(z,r,1);this.g.Sa(z,u,-1)}1==A&&(A=this.g.W(q),this.g.D(A,h),h.sb(d)||(null==n&&(n=[]),C=g.h.vb(f,h),n[0]=g.h.vb(f,d)/C,0==n[0]?n[0]=2.220446049250313E-16:1==n[0]&&(n[0]=.9999999999999998),this.g.Vl(q,n,1),z=this.g.W(q),this.g.pf(z,d),m.add(z),this.g.Sa(z,r,-1),this.g.Sa(z,u,1)))}q=k;k=m;m=q;m.clear(!1)}q=v;f.N(d)}}this.g.Vd(r);
this.g.Vd(u)}};l.prototype.Ol=function(c,a){for(var b=new g.h,d=null,e=-1,f=0,h=this.fd.size;f<h;f++){var k=this.fd.get(f);if(-1!=k){var m=this.g.W(k);this.g.D(k,b);if(c?b.y==a:b.x==a)if(this.g.D(m,b),c?b.y==a:b.x==a)-1==e&&(e=this.g.Id()),null==d&&(d=new g.ja(0),d.Jb(100)),-2!=this.g.Qa(k,e)&&(d.add(k),this.g.Sa(k,e,-2)),-2!=this.g.Qa(m,e)&&(d.add(m),this.g.Sa(m,e,-2))}}if(null==d)-1!=e&&this.g.Vd(e);else{var n=this;d.Xd(0,d.size,function(G,H){return n.Mh(G,H)});f=0;for(h=d.size;f<h;f++){var p=d.get(f);
this.g.Sa(p,e,f)}k=new g.h;m=new g.h;m.Uc();var q=-1;f=0;for(h=d.size;f<h;f++)if(p=d.get(f),-1!=p&&(this.g.D(p,b),!b.sb(m))){if(-1!=q)for(;;){p=!1;for(var r=1<f-q?f-1:f,u=q;u<r;u++){var v=d.get(u);if(-1!=v){var w=-1,z=this.g.W(v);this.g.D(z,k);0>m.compare(k)&&(c?k.y==a:k.x==a)&&(w=z);z=-1;var x=this.g.Na(v);this.g.D(x,k);0>m.compare(k)&&(c?k.y==a:k.x==a)&&(z=x);if(-1!=w&&-1!=z)this.Kh(v,d,e),this.g.qd(v,!1),this.Kh(w,d,e),this.g.qd(w,!1),p=!0;else if(-1!=w||-1!=z){for(x=u+1;x<f;x++){var A=d.get(x);
if(-1!=A){var B=this.g.W(A),C=-1;this.g.D(B,k);0>m.compare(k)&&(c?k.y==a:k.x==a)&&(C=B);B=this.g.Na(A);var D=-1;this.g.D(B,k);0>m.compare(k)&&(c?k.y==a:k.x==a)&&(D=B);if(-1!=C&&-1!=D){this.Kh(A,d,e);this.g.qd(A,!1);this.Kh(C,d,e);this.g.qd(C,!1);p=!0;break}if(-1!=w&&-1!=D){this.vt(d,v,w,A,D,e);p=!0;break}else if(-1!=z&&-1!=C){this.vt(d,A,C,v,z,e);p=!0;break}}}if(p)break}}}if(!p)break}q=f;m.N(b)}this.g.Vd(e)}};l.prototype.Kh=function(c,a,b){b=this.g.Qa(c,b);a.set(b,-1);b=this.g.Qa(c,this.ji);this.fd.set(b,
-1);a=this.g.dd(c);-1!=a&&this.g.Ya(a)==c&&(this.g.Nf(a,-1),this.g.$g(a,-1))};l.prototype.vt=function(c,a,b,d,e,f){this.g.Dc(a,d);this.g.Ec(d,a);this.g.Ec(b,e);this.g.Dc(e,b);this.Kh(d,c,f);this.g.mi(d,!1);this.Kh(e,c,f);this.g.mi(e,!0)};l.prototype.Jy=function(){for(var c=0,a=this.fd.size;c<a;c++){var b=this.fd.get(c);-1!=b&&this.g.aj(b,-1)}for(var d=0,e=0,f=this.g.Ob(this.$);-1!=f;){var h=this.g.Ya(f);if(-1==h||f!=this.g.dd(h)){var k=f;f=this.g.Sb(f);this.g.Nf(k,-1);this.g.br(k)}else{b=h;k=0;do this.g.aj(b,
f),k++,b=this.g.W(b);while(b!=h);this.g.ep(f,!1);this.g.$g(f,this.g.Na(h));this.g.Vj(f,k);e+=k;d++;f=this.g.Sb(f)}}c=0;for(a=this.fd.size;c<a;c++)if(b=this.fd.get(c),-1!=b&&(f=this.g.dd(b),-1==f)){f=this.g.zf(this.$,-1);k=0;h=b;do this.g.aj(b,f),k++,b=this.g.W(b);while(b!=h);2>=k?(b=this.g.Qa(h,this.ji),this.fd.set(b,-1),h=this.g.qd(h,!1),2==k&&(b=this.g.Qa(h,this.ji),0<=b&&this.fd.set(b,-1),this.g.qd(h,!1)),k=f,this.g.Nf(k,-1),this.g.br(k)):(this.g.mn(f,!0),this.g.Vj(f,k),this.g.Nf(f,h),this.g.$g(f,
this.g.Na(h)),this.g.ep(f,!1),e+=k,d++)}this.g.Sl(this.$,d);this.g.Tj(this.$,e);c=0;for(a=this.g.md;-1!=a;a=this.g.xe(a))c+=this.g.I(a);this.g.QB(c)};l.qy=function(c,a,b,d){return(new l(a,d)).py(c,b)};l.clip=function(c,a,b,d,e){return l.Lu(c,a,null,b,d,e)};l.Lu=function(c,a,b,d,e,f){var h=c.K();if(33==h)return e=c.D(),a.contains(e)?c:c.Ja();if(197==h)return e=new g.l,c.A(e),e.Fa(a)?(a=new g.Gh,c.copyTo(a),a.Yo(e),a):c.Ja();if(c.B())return c;if(a.B())return c.Ja();var k=new g.l;c.zc(k);if(a.contains(k))return c;
if(!a.isIntersecting(k))return c.Ja();(null!=b||isNaN(d))&&g.ua.iy(b,a,!1);if(!g.ba.xj(h))throw g.i.O();b=c.Cb;if(null!=b&&(b=b.Ek,null!=b)){b=b.So(a);if(1==b){if(1736!=h)throw g.i.ga("internal error");c=new g.Ea(c.description);c.vp(a);return c}if(0==b)return c.Ja()}switch(h){case 550:f=null;h=c.I();b=c.lb(0);d=0;e=new g.h;for(k=0;k<h;k++)b.vc(2*k,e),a.contains(e)||(0==d&&(f=c.Ja()),d<k&&f.Hd(c,d,k),d=k+1);0<d&&f.Hd(c,d,h);return 0==d?c:f;case 1736:case 1607:return l.qy(c,a,e,f);default:throw g.i.ga("internal error");
}};l.prototype.Mh=function(c,a){var b=new g.h;this.g.D(c,b);c=new g.h;this.g.D(a,c);return b.compare(c)};return l}();g.ri=t})(y||(y={}));(function(g){var t=new g.h,l=function(){function a(b,d,e,f,h){this.Rm=new g.h;this.Ck=new g.h;this.Pi=new g.h;this.g=b;this.xw=e;this.oo=f;this.Rm=d;this.zl=h;this.Ck.Uc();this.Pi.Uc()}a.prototype.nE=function(b){this.g.D(b,this.Ck);b=g.P.truncate((this.Ck.x-this.Rm.x)*this.oo+.5);var d=g.P.truncate((this.Ck.y-this.Rm.y)*this.oo+.5);return c.eG(b,d)};a.prototype.$y=
function(b){return this.g.Qa(b,this.zl)};a.prototype.Fy=function(b,d){this.g.D(b,this.Ck);this.g.D(d,this.Pi);return c.zv(this.Ck.x,this.Ck.y,this.Pi.x,this.Pi.y,this.xw)};return a}();g.jY=function(){return function(){}}();var c=function(){function a(){this.Rm=new g.h;this.rq=[0,0,0,0];this.us=[0,0,0,0];this.ro=this.zl=-1}a.gQ=function(b,d){var e=new a;e.g=b;e.ra=d;e.xw=d*d;e.Xv=2*d;e.oo=1/e.Xv;return e.AO()};a.zv=function(b,d,e,f,h){b-=e;d-=f;return b*b+d*d<=h};a.eG=function(b,d){return g.P.Th(d,
g.P.Th(b))};a.prototype.CO=function(b,d){this.g.Ic(b,t);for(var e=(t.y-this.Rm.y)*this.oo,f=g.P.truncate((t.x-this.Rm.x)*this.oo),h=g.P.truncate(e),k=e=0;1>=k;k+=1)for(var m=0;1>=m;m+=1){var n=a.eG(f+k,h+m),p=this.yl.mR(n);-1!=p&&(this.rq[e]=p,this.us[e]=n,e++)}for(f=e-1;1<=f;f--)for(p=this.rq[f],h=f-1;0<=h;h--)if(p==this.rq[h]){this.us[h]=-1;e--;f!=e&&(this.us[f]=this.us[e],this.rq[f]=this.rq[e]);break}for(h=0;h<e;h++)this.DO(b,this.us[h],t,this.rq[h],d)};a.prototype.DO=function(b,d,e,f,h){for(var k=
new g.h;-1!=f;f=this.yl.zR(f)){var m=this.yl.ka(f);b==m||-1!=d&&this.g.Qa(m,this.zl)!=d||(this.g.Ic(m,k),a.zv(e.x,e.y,k.x,k.y,this.xw)&&h.add(f))}};a.prototype.Zm=function(b,d,e){var f=this.g.Qa(b,this.ro),h=this.g.Qa(d,this.ro);-1==f&&(f=this.Bd.Ph(),this.Bd.addElement(f,b),this.g.Sa(b,this.ro,f));-1==h?this.Bd.addElement(f,d):this.Bd.wy(f,h);this.g.Sa(d,this.ro,-2);d=this.RT(b,d);e&&(e=this.hw.nE(b),this.g.Sa(b,this.zl,e));return d};a.PT=function(b,d,e){b.Nb(d);e=b;var f=new g.h;a.QT(b.D(),d.D(),
f);e.Db(f)};a.QT=function(b,d,e){var f=b.x;b.x!=d.x&&(f=(1*b.x+1*d.x)/2);var h=b.y;b.y!=d.y&&(h=(1*b.y+1*d.y)/2);e.oa(f,h)};a.prototype.RT=function(b,d){var e=new g.h;this.g.D(b,e);var f=new g.h;this.g.D(d,f);var h=this.g.XF(b);d=this.g.XF(d);var k=h+d,m=0,n=e.x;e.x!=f.x&&(n=(e.x*h+f.x*d)/k,m++);var p=e.y;e.y!=f.y&&(p=(e.y*h+f.y*d)/k,m++);0<m&&this.g.Db(b,n,p);this.g.mX(b,k);return 0!=m};a.prototype.AO=function(){var b=this.g.hd,d=this.g.BF();this.Rm=d.cz();d=Math.max(d.da(),d.S())/2147483646;this.Xv<
d&&(this.Xv=d,this.oo=1/this.Xv);this.Bd=new g.Yt;this.Bd.wt(g.P.truncate(this.g.hd/3+1));this.Bd.hn(g.P.truncate(this.g.hd/3+1));this.zl=this.g.Id();this.ro=this.g.Id();this.hw=new l(this.g,this.Rm,this.xw,this.oo,this.zl);this.yl=new g.ZK(g.P.truncate(4*b/3),this.hw);this.yl.tW(this.g.hd);b=!1;for(d=this.g.md;-1!=d;d=this.g.xe(d))for(var e=this.g.Ob(d);-1!=e;e=this.g.Sb(e))for(var f=this.g.Ya(e),h=0,k=this.g.Ka(e);h<k;h++){var m=this.hw.nE(f);this.g.Sa(f,this.zl,m);this.yl.addElement(f,m);f=this.g.W(f)}var n=
new g.ja(0);n.Jb(10);for(d=this.g.md;-1!=d;d=this.g.xe(d))for(e=this.g.Ob(d);-1!=e;e=this.g.Sb(e))for(f=this.g.Ya(e),h=0,k=this.g.Ka(e);h<k;h++){if(-2!=this.g.Qa(f,this.ro))for(m=this.g.Qa(f,this.zl),this.yl.ld(f,m);;){this.CO(f,n);if(0==n.size)break;m=!1;for(var p=0,q=n.size;p<q;p++){var r=n.get(p),u=this.yl.ka(r);this.yl.xd(r);m=this.Zm(f,u,p+1==q)||m}b=b||m;n.clear(!1);if(!m)break}f=this.g.W(f)}b&&this.uN();this.hw=this.yl=null;this.g.Vd(this.zl);this.g.Vd(this.ro);return b};a.prototype.uN=function(){for(var b=
new g.h,d=this.Bd.le;-1!=d;d=this.Bd.gz(d)){var e=this.Bd.tc(d);this.g.D(this.Bd.ka(e),b);for(e=this.Bd.mb(e);-1!=e;e=this.Bd.mb(e))this.g.pf(this.Bd.ka(e),b)}};return a}();g.Vt=c})(y||(y={}));(function(g){var t=function(){function l(c){void 0===c&&(c=null);this.Dg=null;this.Pb=!1;this.Dg=null===c?[]:c}l.prototype.copyTo=function(c){if(c.Pb)throw g.i.ga("CompositeGeographicTransformation is read-only");for(var a=0;a<this.Dg.length;a++)c.Dg.push(this.Dg[a].Sf())};l.prototype.count=function(){return this.Dg.length};
l.prototype.add=function(c){if(this.Pb)throw g.i.ga("CompositeGeographicTransformation is read-only");this.Dg.push(c.Sf())};l.prototype.clear=function(){if(this.Pb)throw g.i.ga("CompositeGeographicTransformation is read-only");this.Dg.length=0};l.prototype.remove=function(c){if(this.Pb)throw g.i.ga("CompositeGeographicTransformation is read-only");this.Dg.splice(c,1)};l.prototype.mg=function(){var c=new l;this.copyTo(c);return c};l.prototype.Sf=function(){return this.mg()};l.prototype.transform=function(c,
a,b,d){if(c.length<a)throw g.i.ga("invalid Argument");var e=b;for(b=0;b<this.Dg.length;b++){var f=this.Dg[b];if(null!=f.sm()){var h=f.Vn,k=h?1:0,m=h?f.sm().getGeogcs2():f.sm().getGeogcs1();m=m.getUnit().getUnitFactor();m=e/m;if(3.552713678800501E-15<Math.abs(m-1))for(e=0;e<a;e++)c[e][0]*=m,c[e][1]*=m;g.zC.geogToGeog(f.sm(),a,c,null,k);e=(h?f.sm().getGeogcs1():f.sm().getGeogcs2()).getUnit().getUnitFactor()}}m=e/d;if(3.552713678800501E-15<Math.abs(m-1))for(e=0;e<a;e++)c[e][0]*=m,c[e][1]*=m;return a};
l.prototype.Nb=function(c){if(c==this)return!0;if(!(c instanceof l)||this.Dg.length!=c.Dg.length)return!1;for(var a=0;a<this.Dg.length;a++)if(!this.Dg[a].Nb(c.Dg[a]))return!1;return!0};l.prototype.dx=function(){this.Pb=!0};l.prototype.toString=function(){for(var c="CGT ("+this.count()+") ",a=0,b=this.count();a<b;++a)c+=this.Dg[a].toString()+", ";return 200<c.length?c.substring(0,197)+"... ("+c.length.toString()+" characters)":c};l.create=function(){return new l};return l}();g.kC=t})(y||(y={}));(function(g){var t=
Math.PI,l=2*Math.PI,c=Math.PI/2,a=function(){function e(){}e.SO=function(f,h){var k=new e;k.x=f;k.y=h;k.type=0;k.Uh=0;return k};e.al=function(f){var h=new e;h.x=f.x;h.y=f.y;h.type=0;h.Uh=0;return h};e.RO=function(f){var h=new e;h.x=f.x;h.y=f.y;h.type=f.type;h.Uh=f.Uh;return h};e.Rd=function(f,h,k){var m=new e;m.x=f.x+h*Math.cos(k);m.y=f.y+h*Math.sin(k);m.type=f.type;m.Uh=f.Uh;return m};e.Nu=function(f,h){var k=new e;k.x=.5*(f.x+h.x);k.y=.5*(f.y+h.y);k.type=f.type;k.Uh=f.Uh;return k};e.JE=function(f,
h){var k=new e;k.x=f.x+.001*(h.x-f.x);k.y=f.y+.001*(h.y-f.y);k.type=f.type;k.Uh=f.Uh;return k};return e}(),b=function(){return function(){}}();(function(e){e[e.Round=0]="Round";e[e.Bevel=1]="Bevel";e[e.Miter=2]="Miter";e[e.Square=3]="Square"})(g.aL||(g.aL={}));var d=function(){function e(f){this.CA=this.Zb=this.Bg=null;this.od=f}e.X=function(f,h,k,m,n,p){if(null==f)throw g.i.O();if(1>f.Eb())throw g.i.O();if(0==h||f.B())return f;p=new e(p);p.lo=f;p.La=h;p.ra=n;p.Ki=k;p.rA=m;return p.Kx()};e.prototype.$L=
function(){var f=this.lo,h=f.bc(),k=f.yc(),m=new g.h;m.wc(k,h);m.normalize();m.Ev();m.scale(this.La);h.add(m);k.add(m);m=f.Ja();f.Fc(h);f.Tc(k);return m};e.prototype.ZL=function(){var f=this.lo;if(0<this.La&&2!=this.Ki){var h=new g.Ea;h.cd(f,!1);this.lo=h;return this.Kx()}f=new g.Gh(f.T);f.Y(this.La,this.La);return f};e.prototype.oJ=function(f,h,k,m){return(h.x-f.x)*(m.x-k.x)+(h.y-f.y)*(m.y-k.y)};e.prototype.ic=function(f,h){if(void 0===h)this.Zb.push(f),this.jf++;else if(0==this.jf)this.ic(f);else{var k=
this.yw,m=this.Bg[0==h?k-1:h-1],n=this.Bg[h],p=this.oJ(m,n,this.Zb[this.jf-1],f);0<p?this.ic(f):0>p&&(0<this.oJ(m,n,n,this.Zb[this.jf-1])?(n=this.Bg[0==h?k-2:1==h?k-1:h-2],k=a.Rd(m,this.La,Math.atan2(m.y-n.y,m.x-n.x)-c),this.Zb[this.jf-1]=k,1==this.Ki||2==this.Ki?(k=a.Nu(k,m),this.ic(k),k=a.Rd(m,this.La,this.Gv+c),m=a.Nu(k,m),m.type|=256,this.ic(m)):(k=a.Rd(m,this.La,this.Gv+c),k.type|=256),this.ic(k),this.ic(f,h)):(k=a.Rd(n,this.La,this.Gv+c),this.ic(k),1==this.Ki||2==this.Ki?(k=a.Nu(k,n),this.ic(k),
k=a.Rd(n,this.La,this.Rz-c),m=a.Nu(k,n),m.type|=256,this.ic(m)):(k=a.Rd(n,this.La,this.Rz-c),k.type|=256),this.ic(k)))}};e.prototype.cE=function(){var f,h=this.yw;this.jf=0;var k=.5*this.ra,m=0,n=0;for(f=0;f<h;f++){var p=this.Bg[f],q=0==f?this.Bg[h-1]:this.Bg[f-1],r=f==h-1?this.Bg[0]:this.Bg[f+1],u=q.x-p.x,v=q.y-p.y,w=r.x-p.x,z=r.y-p.y,x=Math.atan2(v,u),A=Math.atan2(z,w);this.Gv=x;this.Rz=A;0==f&&(m=x,n=A);u=u*z-w*v;v=A;A<x&&(A+=l);if(0<u*this.La)1==this.Ki||2==this.Ki?(x=a.Rd(p,this.La,x+c),this.ic(x),
x=a.JE(p,x),this.ic(x),x=a.Rd(p,this.La,A-c),p=a.JE(p,x),p.type|=256,this.ic(p),this.ic(x)):(u=.5*(A-x),u=this.La/Math.abs(Math.sin(u)),x=a.Rd(p,u,.5*(x+A)),this.ic(x,f));else if(0!=(p.type&512)){u=1-k/Math.abs(this.La);q=1;r=0>this.La?-t:t;-1<u&&1>u&&(v=2*Math.acos(u),.017453292519943295>v&&(v=.017453292519943295),q=g.P.truncate(t/v+1.5),1<q&&(r/=q));v=x+c;x=a.Rd(p,this.La,v);0==f&&(x.type|=1024);this.ic(x,f);u=this.La/Math.cos(r/2);v+=r/2;x=a.Rd(p,u,v);x.type|=1024;for(this.ic(x);0<--q;)v+=r,x=
a.Rd(p,u,v),x.type|=1024,this.ic(x);x=a.Rd(p,this.La,A-c);x.type|=1024;this.ic(x)}else if(1==this.Ki)x=a.Rd(p,this.La,x+c),this.ic(x,f),x=a.Rd(p,this.La,A-c),this.ic(x);else if(0==this.Ki)for(u=1-k/Math.abs(this.La),q=1,r=A-c-(x+c),-1<u&&1>u&&(v=2*Math.acos(u),.017453292519943295>v&&(v=.017453292519943295),q=g.P.truncate(Math.abs(r)/v+1.5),1<q&&(r/=q)),u=this.La/Math.cos(.5*r),v=x+c+.5*r,x=a.Rd(p,u,v),this.ic(x,f);0<--q;)v+=r,x=a.Rd(p,u,v),this.ic(x);else 2==this.Ki?(u=q.x-p.x,v=q.y-p.y,w=r.x-p.x,
z=r.y-p.y,q=(u*w+v*z)/Math.sqrt(u*u+v*v)/Math.sqrt(w*w+z*z),.99999999<q?(x=a.Rd(p,1.4142135623730951*this.La,A-.25*t),this.ic(x,f),x=a.Rd(p,1.4142135623730951*this.La,A+.25*t),this.ic(x)):(q=Math.abs(this.La/Math.sin(.5*Math.acos(q))),r=Math.abs(this.rA*this.La),q>r?(u=.5*(A-x),u=this.La/Math.abs(Math.sin(u)),x=a.Rd(p,u,.5*(x+A)),A=g.h.construct(x.x,x.y),x=g.h.construct(p.x,p.y),p=new g.h,p.wc(A,x),A=new g.h,A.zW(r/p.length(),p,x),x=(q-r)*Math.abs(this.La)/Math.sqrt(q*q-this.La*this.La),0<this.La?
p.Ev():p.cr(),p.scale(x/p.length()),x=new g.h,x.add(A,p),q=new g.h,q.wc(A,p),x=a.al(x),this.ic(x,f),x=a.al(q),this.ic(x)):(u=.5*(A-x),u=this.La/Math.abs(Math.sin(u)),x=a.Rd(p,u,.5*(x+A)),this.ic(x,f)))):(A=v,0<this.La?(A>x&&(A-=l),q=x-A<c):(A<x&&(A+=l),q=A-x<c),q?(u=1.4142135623730951*this.La,v=0>u?x+.25*t:x+.75*t,x=a.Rd(p,u,v),this.ic(x,f),v=0>u?A-.25*t:A-.75*t,x=a.Rd(p,u,v),this.ic(x)):(u=.5*(A-x),u=this.La/Math.abs(Math.sin(u)),A<x&&(A+=l),x=a.Rd(p,u,(x+A)/2),this.ic(x,f)))}this.Gv=m;this.Rz=n;
this.ic(this.Zb[0],0);p=a.RO(this.Zb[this.jf-1]);this.Zb[0]=p;return this.pW()};e.prototype.xu=function(f,h){if(!(2>h))for(var k=0;k<h;k++){var m=this.Zb[f+k];0!=k?this.CA.Ci(g.h.construct(m.x,m.y)):this.CA.It(g.h.construct(m.x,m.y))}};e.prototype.aM=function(f,h,k){var m=f.Ca(h),n=f.Xc(h);this.Zb=[];this.CA=k;if(f.ec(h)){for(h=f.Oa(m);f.Oa(n-1).sb(h);)n--;if(2<=n-m){this.yw=n-m;this.Bg=[];for(h=m;h<n;h++)this.Bg.push(a.al(f.Oa(h)));this.cE()&&this.xu(0,this.jf-1)}}else{for(h=f.Oa(m);m<n&&f.Oa(m+
1).sb(h);)m++;for(h=f.Oa(n-1);m<n&&f.Oa(n-2).sb(h);)n--;if(2<=n-m){this.yw=2*(n-m)-2;this.Bg=[];k=a.al(f.Oa(m));k.type|=1536;this.Bg.push(k);for(h=m+1;h<n-1;h++)k=a.al(f.Oa(h)),this.Bg.push(k);k=a.al(f.Oa(n-1));k.type|=512;this.Bg.push(k);for(h=n-2;h>=m+1;h--)k=a.al(f.Oa(h)),k.type|=1024,this.Bg.push(k);if(this.cE())if(2<=this.Zb.length){f=-1;(n=0!=(this.Zb[this.jf-1].type&1024))||(f=0);for(h=1;h<this.jf;h++)(m=0!=(this.Zb[h].type&1024))?n||(n=h-1,1<n-f+1&&this.xu(f,n-f+1)):n&&(f=h-1),n=m;n||(n=this.jf-
1,1<n-f+1&&this.xu(f,n-f+1))}else f=0,n=this.jf-1,0<=f&&1<=n-f&&this.xu(f,n-f+1)}}this.Bg=null;this.yw=0;this.Zb=null;this.jf=0};e.prototype.pW=function(){for(var f=!1,h=0;h<this.jf;h++){var k=this.Zb[h];k.rh=h+1;k.th=h-1;this.Zb[h]=k}k=this.Zb[0];k.th=this.jf-2;this.Zb[0]=k;k=this.Zb[this.jf-2];k.rh=0;this.Zb[this.jf-2]=k;for(h=k=0;h<this.jf;h++)if(0!=(this.Zb[k].type&256)){var m=this.EP(k);if(-1!=m)k=m;else{f=!0;break}}else k=this.Zb[k].rh;if(f)return!1;this.PO(k);return!0};e.prototype.EP=function(f){for(var h=
this.jf-1,k=f,m,n,p=1;p<=h-2;p++){m=k=this.Zb[k].rh;n=f;for(var q=1;q<=p;q++){n=this.Zb[n].th;if(0==(this.Zb[n].type&256)&&0==(this.Zb[m].type&256)){var r=this.$R(n,m);if(-1!=r)return r}m=this.Zb[m].th}}return-1};e.prototype.$R=function(f,h){var k=this.Zb[this.Zb[f].th],m=this.Zb[f],n=this.Zb[this.Zb[h].th],p=this.Zb[h];if(!this.BW(k,m,n,p))return-1;var q=new b;return this.vQ(k,m,n,p,q)&&!q.SD&&g.P.XJ((m.x-k.x)*(p.y-n.y)-(m.y-k.y)*(p.x-n.x))!=g.P.XJ(this.La)?(k=this.Zb[f].th,q.cn.type=m.type,q.cn.rh=
h,q.cn.th=k,this.Zb[f]=q.cn,q.cn=this.Zb[h],q.cn.th=f,this.Zb[h]=q.cn,h):-1};e.prototype.BW=function(f,h,k,m){return Math.max(f.x,h.x)>=Math.min(k.x,m.x)&&Math.max(k.x,m.x)>=Math.min(f.x,h.x)&&Math.max(f.y,h.y)>=Math.min(k.y,m.y)&&Math.max(k.y,m.y)>=Math.min(f.y,h.y)};e.prototype.vQ=function(f,h,k,m,n){n.SD=!1;var p=(h.y-f.y)*(m.x-k.x)-(h.x-f.x)*(m.y-k.y),q=(k.y-f.y)*(h.x-f.x)-(k.x-f.x)*(h.y-f.y);p=0==p?2:q/p;if(0<=p&&1>=p){var r=p;p=(m.y-k.y)*(h.x-f.x)-(m.x-k.x)*(h.y-f.y);q=(f.y-k.y)*(m.x-k.x)-(f.x-
k.x)*(m.y-k.y);p=0==p?2:q/p;if(0<=p&&1>=p)return n.cn=a.SO(f.x+p*(h.x-f.x),f.y+p*(h.y-f.y)),n.cn.Uh=k.Uh+r*(m.Uh-k.Uh),0!=r&&1!=r||0!=p&&1!=p||(n.SD=!0),n.MY=p,n.NY=r,(0==r||1==r)&&0<p&&1>p||(0==p||1==p)&&0<r&&1>r?!1:!0}return!1};e.prototype.PO=function(f){for(;this.Zb[f].th<f;)f=this.Zb[f].th;var h=0,k=f;do k=this.Zb[k],this.Zb[h]=k,k=k.rh,h++;while(k!=f);this.Zb[h]=this.Zb[0];this.jf=h+1};e.prototype.NC=function(f){var h=this.lo,k=h.Ha();if(null!=k){k.Zi();for(var m=-1;k.ab();)m++,this.aM(h,m,f)}};
e.prototype.Kx=function(){var f=this.lo.K();return 322==f?this.$L():197==f?this.ZL():g.ba.Ad(f)?(f=new g.Ua,f.pc(this.lo,!0),this.lo=f,this.Kx()):1607==f?(f=new g.Ua,this.NC(f),f):1736==f?(f=new g.Ea,this.NC(f),f):null};return e}();g.DK=d})(y||(y={}));(function(g){var t=function(){function b(d){this.pk=d}b.prototype.D=function(d,e){this.pk.g.D(d,e)};b.prototype.xd=function(d){var e=this.pk.Ga.ka(d);this.pk.Ga.xd(d,-1);this.pk.g.qd(e,!1)};return b}(),l=function(){function b(d){this.pk=d}b.prototype.D=
function(d,e){this.pk.BT.D(d,e)};b.prototype.xd=function(d){this.pk.Ga.xd(d,-1)};return b}(),c=function(){function b(d){this.pk=d}b.prototype.D=function(d,e){e.N(this.pk.ET[d])};b.prototype.xd=function(d){this.pk.Ga.xd(d,-1)};return b}(),a=function(){function b(d){void 0===d?(this.Ga=new g.Xj,this.Ga.Ge(20),this.g=new g.jd,this.qT=this.g.Og(550),this.Ps=this.g.zf(this.qT,-1),this.Xh=new t(this)):d instanceof Array?(this.Ga=new g.Xj,this.Ga.Ge(20),this.ET=d,this.Xh=new c(this)):(this.Ga=new g.Xj,this.Ga.Ge(20),
this.BT=d,this.Xh=new l(this))}b.prototype.Ib=function(d){var e=d.K();if(g.zx.xj(e))this.iN(d);else if(g.Uk.Ad(e))this.nN(d);else if(197==e)this.fN(d);else if(33==e)this.mN(d);else throw g.i.O("invalid shape type");};b.prototype.ZQ=function(){var d=new g.Ta,e=this.Ga.tc(-1),f=new g.Ea(this.g.dt);this.g.Vi(this.Ga.ka(e),d);f.qf(d);for(e=this.Ga.mb(e);-1!=e;e=this.Ga.mb(e))this.g.Vi(this.Ga.ka(e),d),f.lineTo(d);return f};b.QO=function(d){var e=new b(d),f=d.I(),h=1,k=new g.h,m=new g.h,n=new g.h;for(d.D(0,
k);;){d.D(h,m);if(!(m.Hz(k)&&h<f-1))break;h++}e.Ga.addElement(0,-1);e.Ga.xn(h);for(f=h+1;f<d.I();f++)d.D(f,n),h=e.dC(n),-1!=h&&e.Ga.Sj(h,f);n=new g.Ta;h=e.Ga.tc(-1);f=new g.Ea(d.description);d.ye(e.Ga.ka(h),n);f.qf(n);for(h=e.Ga.mb(h);-1!=h;h=e.Ga.mb(h))d.ye(e.Ga.ka(h),n),f.lineTo(n);return f};b.construct=function(d,e,f){for(var h=new b(d),k=1,m=d[0];d[k].Hz(m)&&k<e-1;)k++;h.Ga.addElement(0,-1);h.Ga.xn(k);for(k+=1;k<e;k++)m=h.dC(d[k]),-1!=m&&h.Ga.Sj(m,k);d=0;for(e=h.Ga.tc(-1);-1!=e;e=h.Ga.mb(e))f[d++]=
h.Ga.ka(e);return d};b.EG=function(d,e){var f=d.Ca(e),h=d.Xc(e);e=!d.ec(e)&&d.On(e);d=d.lb(0);f*=2;h*=2;e&&(h-=2);if(6>h-f)return!0;e=new g.h;var k=new g.h,m=new g.h;d.vc(f,e);d.vc(f+2,k);d.vc(f+4,m);var n=b.Tu(k,m,e);if(n.ms()||!b.wm(n.value()))return!1;var p=g.h.construct(k.x,k.y),q=new g.h;for(f+=6;f<h;f+=2){q.N(k);k.N(m);d.vc(f,m);n=b.Tu(k,m,e);if(n.ms()||!b.wm(n.value()))return!1;n=b.Tu(p,m,e);if(n.ms()||!b.wm(n.value()))return!1;n=b.Tu(k,m,q);if(n.ms()||!b.wm(n.value()))return!1}return!0};b.prototype.iN=
function(d){for(var e=new g.Ta,f=new g.h,h=0;h<d.I();h++){d.D(h,f);var k=this.Er(f);if(-1!=k){d.ye(h,e);var m=this.g.ic(this.Ps,e);this.Ga.Sj(k,m)}}};b.prototype.fN=function(d){for(var e=new g.Ta,f=new g.h,h=0;4>h;h++){d.bB(h,f);var k=this.Er(f);if(-1!=k){d.Lf(h,e);var m=this.g.ic(this.Ps,e);this.Ga.Sj(k,m)}}};b.prototype.nN=function(d){var e=new g.Ta,f=d.bc();f=this.Er(f);if(-1!=f){d.Uo(e);var h=this.g.ic(this.Ps,e);this.Ga.Sj(f,h)}f=d.yc();f=this.Er(f);-1!=f&&(d.Qo(e),d=this.g.ic(this.Ps,e),this.Ga.Sj(f,
d))};b.prototype.mN=function(d){var e=d.D();e=this.Er(e);-1!=e&&(d=this.g.ic(this.Ps,d),this.Ga.Sj(e,d))};b.prototype.Er=function(d){var e=-1;if(0==this.Ga.size(-1))return e=this.Ga.addElement(-4,-1);if(1==this.Ga.size(-1)){var f=this.g.Oa(this.Ga.ka(this.Ga.tc(-1)));d.Hz(f)||(e=this.Ga.xn(-5));return e}return e=this.dC(d)};b.prototype.dC=function(d){var e=-1,f=this.Ga.tc(-1),h=this.Ga.Hc(-1),k=this.Ga.ka(f),m=this.Ga.ka(h),n=new g.h,p=new g.h;this.Xh.D(k,n);this.Xh.D(m,p);k=g.h.Wq(p,d,n);if(b.wm(k))e=
this.Ga.xn(-1),n=this.bC(d,h,f),n!=f&&this.cC(d,f,this.Ga.ze(n));else if(b.xG(k)){p=this.Ga.pv(-1);var q=this.Ga.tc(-1),r=this.Ga.Hc(-1);k=new g.h;for(m=new g.h;q!=this.Ga.ze(r);){var u=this.Ga.ka(p);this.Xh.D(u,k);u=g.h.Wq(k,d,n);b.xG(u)?(r=p,p=this.Ga.ml(p)):(q=p,p=this.Ga.Zp(p))}p=r;n=q;u=this.Ga.ka(p);q=this.Ga.ka(n);this.Xh.D(u,k);this.Xh.D(q,m);if(n==f||(k=g.h.Wq(m,d,k),b.wm(k)))e=this.Ga.wu(n,p,-2,!1),this.cC(d,p,h),this.bC(d,n,f)}else null==this.ub&&(this.ub=new g.zb),this.ub.Fc(p),this.ub.Tc(n),
n=this.ub.he(d,!0),0>n?(n=this.Ga.ze(h),this.Ga.xd(h,-1),e=this.Ga.xn(-3),this.bC(d,n,f)):1<n&&(n=this.Ga.mb(f),this.Ga.xd(f,-1),e=this.Ga.wu(-1,n,-3,!1),this.cC(d,n,h));return e};b.prototype.cC=function(d,e,f){if(e!=f){var h=this.Ga.ka(e),k=this.Ga.mb(e),m=new g.h,n=new g.h;for(this.Xh.D(h,m);e!=f&&2<this.Ga.size(-1);){this.Xh.D(this.Ga.ka(k),n);h=g.h.Wq(n,d,m);if(b.wm(h))break;h=e;e=k;m.N(n);k=this.Ga.mb(e);this.Xh.xd(h)}}};b.prototype.bC=function(d,e,f){if(e==f)return f;var h=this.Ga.ka(e),k=this.Ga.ze(e),
m=new g.h,n=new g.h;for(this.Xh.D(h,m);e!=f&&2<this.Ga.size(-1);){this.Xh.D(this.Ga.ka(k),n);h=g.h.Wq(m,d,n);if(b.wm(h))break;h=e;e=k;m.N(n);k=this.Ga.ze(e);this.Xh.xd(h)}return e};b.Tu=function(d,e,f){var h=new g.Xb;h.set(e.x);h.sub(d.x);var k=new g.Xb;k.set(f.y);k.sub(d.y);var m=new g.Xb;m.set(e.y);m.sub(d.y);e=new g.Xb;e.set(f.x);e.sub(d.x);h.Fg(k);m.Fg(e);h.sub(m);return h};b.wm=function(d){return 0>d};b.xG=function(d){return 0<d};return b}();g.Wt=a})(y||(y={}));(function(g){var t=function(){function l(c){this.g=
null;this.oH=!0;this.od=c}l.sU=function(c,a,b){c=g.ua.Gr(c);return g.Vt.zv(a.ug(),a.Qg(),b.ug(),b.Qg(),g.oc.jx(c))};l.BO=function(c,a){var b=new g.Ta;g.Vt.PT(c,a,b);return b};l.X=function(c,a,b,d){b=new l(b);b.g=c;b.ra=a;b.oH=d;return b.BM()};l.prototype.iM=function(c){return g.Vt.gQ(this.g,c)};l.prototype.oM=function(c){return g.Xt.X(this.g,c,this.od)};l.prototype.BM=function(){var c=this.ra,a=g.ua.Gr(c);c=g.ua.qN(c);var b=1.00001*c;c*=1.000001;for(var d=!1,e=30<this.g.hd+10?1E3:(this.g.hd+10)*(this.g.hd+
10),f=0,h=this.g.dS();;f++){if(f>e)throw g.i.ga("Internal Error: max number of iterations exceeded");var k=this.iM(a);d=d||k;this.oH&&(k=0!=this.g.Ip(a,!0,!1),d=d||k);k=!1;if(0==f||h||g.Xt.fI(!0,this.g,c,null,this.od))k=this.oM(b),d=d||k;if(!k)break;g.op.Bp(this.od)}return d};return l}();g.Sk=t})(y||(y={}));(function(g){var t=function(){function c(a){this.ce=this.Oc=null;this.Vs=0;this.Vb=a;this.Tz=!0}c.prototype.rv=function(a,b){var d=this.g.cc(a);if(null==d){if(!this.g.gd(a,b))return null;d=b}return d};
c.prototype.Zq=function(){var a;void 0===a&&(a=!1);this.Vs++;if(a||0==(this.Vs&4095))this.Vs=0,g.op.Bp(this.Vb)};c.prototype.lP=function(){var a=this.g.$q(!1),b=!1,d=new g.zb,e=new g.zb,f=new g.l;f.Pa();var h=new g.l;h.Pa();for(var k=new g.Ta,m=new g.GC,n=a.next();-1!=n;n=a.next()){g.op.Bp(this.Vb);var p=null,q=!1;if(!g.ba.Sn(this.g.kc(a.bk))){p=this.rv(n,d);if(null==p)continue;p.A(f);f.Y(this.ra,this.ra);if(p.Bi(this.ra))if(p.Bi(0))q=!0,p=null;else continue}var r=this.g.$q(a),u=r.next();for(-1!=
u&&(u=r.next());-1!=u;u=r.next()){var v=null,w=!1;if(!g.ba.Sn(this.g.kc(r.bk))){v=this.rv(u,e);if(null==v)continue;v.A(h);if(v.Bi(this.ra))if(v.Bi(0))w=!0,v=null;else continue}var z=0,x=0;if(null!=p&&null!=v)f.CG(h)&&(m.Po(p),m.Po(v),m.Fa(this.ra,!1),z=m.pl(0),x=m.pl(1),0<z+x&&(this.g.lr(n,m,0,!0),this.g.lr(u,m,1,!0)),m.clear());else if(null!=p){var A=new g.h;this.g.D(u,A);if(f.contains(A)){m.Po(p);this.g.Vi(u,k);m.Az(this.ra,k,!1);z=m.pl(0);if(0<z)if(this.g.lr(n,m,0,!0),w){w=-1;for(A=this.g.W(u);-1!=
A&&A!=u&&(v=this.rv(A,e),w=A,null!=v&&v.Bi(0));A=this.g.W(A));for(A=u;-1!=A&&(this.g.Eh(A,m.Ff),A!=w);A=this.g.W(A));}else this.g.Eh(u,m.Ff);m.clear()}}else if(null!=v){if(A=new g.h,this.g.D(n,A),h.Y(this.ra,this.ra),h.contains(A)){m.Po(v);this.g.Vi(n,k);m.Az(this.ra,k,!1);x=m.pl(0);if(0<x)if(this.g.lr(u,m,0,!0),q){w=-1;for(A=this.g.W(n);-1!=A&&A!=n&&(v=this.rv(A,e),w=A,null!=v&&v.Bi(0));A=this.g.W(A));for(A=n;-1!=A&&(this.g.Eh(A,m.Ff),A!=w);A=this.g.W(A));}else this.g.Eh(n,m.Ff);m.clear()}}else continue;
if(0!=z+x){if(0!=z){p=this.g.cc(n);if(null==p){if(!this.g.gd(n,d))continue;p=d;d.A(f)}else p.A(f);if(p.Bi(this.ra))break}b=!0}}}return b};c.prototype.mP=function(){return this.JU()};c.prototype.JU=function(){return(new g.EC).GX(this.g,this.ra)};c.prototype.gI=function(){var a=!1;null==this.Oc&&(this.Oc=new g.Xj);var b=new g.ja(0);b.Jb(this.g.hd+1);for(var d=this.g.$q(),e=d.next();-1!=e;e=d.next())b.add(e);this.g.ix(b,b.size);b.add(-1);d=this.g.Id();e=this.g.Id();this.ce=new g.HC(this.g,this.ra,!this.Tz);
this.Oc.Wo(this.ce);var f=new g.ja(0),h=new g.ja(0),k=0;new g.h;var m=this.g.vd;this.g.wb.sc();for(var n=this.g.wb.Aa[0].o,p,q,r=b.get(k++);-1!=r;){q=m.V(r,0);p=n[2*q];q=n[2*q+1];var u=p,v=q;do{var w=m.V(r,2),z=m.V(r,1);if(-1!=w){var x=m.V(w,0),A=n[2*x];x=n[2*x+1];0>(v<x?-1:v>x?1:u<A?-1:u>A?1:0)&&(h.add(r),h.add(w))}-1!=z&&(x=m.V(z,0),A=n[2*x],x=n[2*x+1],0>(v<x?-1:v>x?1:u<A?-1:u>A?1:0)&&(h.add(z),h.add(z)));A=this.g.Qa(r,d);-1!=A&&(f.add(A),this.g.Sa(r,d,-1));A=this.g.Qa(r,e);-1!=A&&(f.add(A),this.g.Sa(r,
e,-1));r=b.get(k++);-1!==r&&(v=m.V(r,0),u=n[2*v],v=n[2*v+1])}while(-1!=r&&u===p&&v===q);u=1==f.size&&2==h.size;A=v=-1;w=0;for(z=f.size;w<z;w++){x=f.get(w);var B=this.Oc.ze(x);-1==B||f.cG(B)||(v=B);x=this.Oc.mb(x);-1==x||f.cG(x)||(A=x);if(-1!=v&&-1!=A)break}this.ce.VJ(q,p);w=0;for(z=f.size;w<z;w++)x=f.get(w),this.Oc.xd(x,-1);f.clear(!1);if(!u&&-1!=v&&-1!=A&&this.pO(v,A)){a=!0;this.Ni=this.ce.tm();break}w=0;for(z=h.size;w<z;w+=2){q=h.get(w);p=h.get(w+1);u?(q=this.Oc.wu(v,A,q,!0),u=!1):q=this.Oc.addElement(q,
-1);if(this.ce.wg){this.Ni=this.ce.tm();a=!0;break}-1==this.g.Qa(p,d)?this.g.Sa(p,d,q):this.g.Sa(p,e,q)}if(a)break;h.Ch(0)}this.g.Vd(d);this.g.Vd(e);return a};c.prototype.pO=function(a,b){this.ce.compare(this.Oc,this.Oc.ka(a),b);a=this.ce.wg;this.ce.Lr();return a};c.oE=function(a){for(var b=a.md;-1!=b;b=a.xe(b))if(g.ba.Jc(a.kc(b)))return!0;return!1};c.dQ=function(a,b,d,e){if(!c.oE(a))return!1;b=new c(e);b.g=a;b.ra=d;if(15>a.hd)a=b.lP();else return b.mP();return a};c.X=function(a,b,d){return c.dQ(a,
a.BF(),b,d)};c.fI=function(a,b,d,e,f){if(!c.oE(b))return!1;var h=new c(f);h.g=b;h.ra=d;h.Tz=a;if(h.gI())return null!=e&&e.Tt(h.Ni),!0;var k=new g.Fd;k.OB();b.Rc(k);h=new c(f);h.g=b;h.ra=d;h.Tz=a;a=h.gI();k.OB();b.Rc(k);return a?(null!=e&&e.Tt(h.Ni),!0):!1};c.Nl=function(a,b){a=a.I();return 16>a?!1:2*a+Math.log(a)*Math.LOG10E/Math.log(2)*b<1*a*b};c.jP=function(a,b,d,e){if(g.ba.Jc(b.K()))return(new c(e)).kP(a,b,d);throw g.i.ga("crack_A_with_B");};c.prototype.kP=function(a,b,d){var e=new g.l;a.zc(e);
var f=new g.l;b.zc(f);f.Y(d,d);if(!f.isIntersecting(e))return a;var h=a.Cb,k=null;null!=h&&(k=h.Gb);c.Nl(a,a.I())&&(k=g.ua.jj(a,f));var m=null!=k?k.getIterator():null,n=b.Ha();b=a.Ha();var p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(f=[];n.ab();)for(;n.Ia();){var q=n.ia();if(null!=k)for(m.Vo(q,d),h=m.next();-1!=h;h=m.next()){if(this.Zq(),b.Wb(k.ka(h),-1),b.Ia()){h=b.ia();var r=h.Fa(q,null,p,null,d);for(h=0;h<r;++h){var u=p[h];if(0!=u&&1!=u){var v=b.xb(),w=new l;w.t=u;w.index=v;f.push(w)}}}}else{var z=new g.l;
q.zc(z);z.Y(d,d);if(e.isIntersecting(z))for(b.Zi();b.ab();)for(;b.Ia();)if(this.Zq(),h=b.ia(),u=new g.l,h.zc(u),u.isIntersecting(z))for(r=h.Fa(q,null,p,null,d),h=0;h<r;++h)u=p[h],0!=u&&1!=u&&(v=b.xb(),w=new l,w.t=u,w.index=v,f.push(w))}}if(0==f.length)return a;f=f.sort(l.ty);a=a.Ja();for(b.Zi();b.ab()&&!b.Ia(););d=b.ia();e=new g.lg;k=-1;h=0;for(m=f.length;h<m;){p=f[h].index;for(n=h+1;n<m&&f[n].index==p;)++n;for(;b.xb()<p;){this.Zq();q=b.Ia();u=b.gb;(z=q||!b.Pn()||b.Qn())&&a.pc(d,k!=u);k=u;if(!q)for(;b.ab()&&
!b.Ia(););d=b.ia()}for(p=0;h<n;h++)u=f[h].t,u!=p&&(d.eh(p,u,e),p=u,u=b.gb,a.pc(e.get(),k!=u),k=u);if(z=(q=b.Ia())||!b.Pn()||b.Qn())d.eh(p,1,e),a.pc(e.get(),!1);if(q)d=b.ia();else{for(;b.ab()&&!b.Ia(););d=b.Ia()?b.ia():null}h=n}null!=d&&(u=b.gb,(z=(q=b.Ia())||!b.Pn()||b.Qn())&&a.pc(d,k!=u),k=u);for(q=b.Ia();;){if(!q){for(;b.ab()&&!(q=b.Ia()););if(!q)break}d=b.ia();u=b.gb;(z=(q=b.Ia())||!b.Pn()||b.Qn())&&a.pc(d,k!=u);k=u}return a};return c}();g.Xt=t;var l=function(){function c(){}c.ty=function(a,b){return a.index==
b.index?a.t>b.t?1:a.t<b.t?-1:0:a.index>b.index?1:-1};return c}()})(y||(y={}));(function(g){(function(a){a[a.Left=0]="Left";a[a.Right=1]="Right";a[a.Coincident=2]="Coincident";a[a.Undefined=3]="Undefined";a[a.Uncut=4]="Uncut"})(g.FK||(g.FK={}));var t=function(){return function(a,b,d,e,f,h,k,m,n,p,q){this.$=a;this.Ys=b;this.Ks=d;this.yg=e;this.Nm=p;this.Bl=q}}();g.lY=t;var l=function(){function a(b,d){this.EH=b;this.Hi=d}a.prototype.kM=function(b,d){var e=new g.h;this.Hi.D(b,e);var f=new g.h;this.Hi.D(d,
f);e=e.compare(f);if(0!=e)return e;b=this.Hi.Qa(b,this.EH);d=this.Hi.Qa(d,this.EH);return b<d?-1:b==d?0:1};return a}(),c=function(){return function(a,b,d,e,f,h,k,m,n){this.yg=a;this.Ks=b;this.DA=d;this.PH=e;this.Ei=f;this.Bl=h;this.Nm=k;this.QH=m;this.HT=n}}();g.kY=c;g.GK=function(){function a(){}a.EK=function(b,d,e,f,h,k){if(d.B())b=new t(d,4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),h.push(b);else if(e.B())b=new t(d,4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),h.push(b);else{var m=new g.jd;m.Ib(d);
m.Ib(e);g.Sk.X(m,f,k,!0);if(0==m.hd)b=new t(d.Ja(),4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),h.push(b);else{d=0;e=m.Id();for(f=m.md;-1!=f;f=m.xe(f))for(k=m.Ob(f);-1!=k;k=m.Sb(k))for(var n=m.Ya(k),p=0,q=m.Ka(k);p<q;n=m.W(n),p++)m.Sa(n,e,d++);d=a.EM(e,m);a.YL(b,d,m,h)}}};a.EM=function(b,d){for(var e=d.hd,f=new g.ja(0),h=d.md;-1!=h;h=d.xe(h))for(var k=d.Ob(h);-1!=k;k=d.Sb(k))for(var m=d.Ya(k),n=0,p=d.Ka(k);n<p;m=d.W(m),n++)f.add(m);var q=new l(b,d);f.Xd(0,e,function(K,J){return q.kM(K,J)});b=[];var r=
[],u=d.Id(),v=d.Id();h=d.md;k=d.xe(h);p=new g.h;var w=new g.h,z=f.get(0),x=d.dd(z),A=d.Uf(x);d.D(z,p);var B=1;for(m=0;B<e-1;){var C=!1;for(n=B;n<e;n++)if(n!=m){var D=f.get(n),G=d.dd(D),H=d.Uf(G);d.D(D,w);if(p.sb(w))A==h&&H==k&&(C=a.qM(u,v,d,b,r,x,z,G,D));else break}if(C||m==B-1){C&&m==B-1&&B--;if(++m==e)break;z=f.get(m);x=d.dd(z);A=d.Uf(x);d.D(z,p)}C||(B=m+1)}e=[];for(h=d.md;-1!=h;h=d.xe(h))for(k=d.Ob(h);-1!=k;k=d.Sb(k))for(f=d.Ya(k),n=0,p=d.Ka(k);n<p;f=d.W(f),n++){m=d.Qa(f,v);if(0<=m)for(;m<r.length&&
r[m].yg==f;)e.push(r[m++]);m=d.Qa(f,u);if(0<=m)for(;m<b.length&&b[m].yg==f;)e.push(b[m++])}d.Vd(u);d.Vd(v);return e};a.qM=function(b,d,e,f,h,k,m,n,p){var q=e.rj(k),r=e.rj(n),u=e.Ya(k),v=e.Ya(n),w=e.Na(m),z=e.Na(p),x=!1,A=!1,B=!1,C=!1;m!=u&&(p!=v&&(x=a.rM(b,e,f,k,w,n,z)),p!=r&&(A=a.sM(b,e,f,k,w,n,p)));m!=q&&(p!=v&&(B=a.tM(d,e,h,k,m,n,z,u)),p!=r&&(C=a.uM(d,e,h,k,m,n,p,u)));x&&A&&B?(b=f.length-1,2==h[C?h.length-2:h.length-1].Ei&&(f[b-1]=f[b],--f.length)):x&&A&&C&&2==h[h.length-1].Ei&&(h=f[f.length-1],
--f.length,e.Qa(h.yg,b)==f.length&&e.Sa(h.yg,b,-1));return x||A||B||C};a.rM=function(b,d,e,f,h,k,m){var n=new g.zb,p=new g.zb,q=[0,0],r=[0,0],u=d.cc(h);null==u&&(d.gd(h,n),u=n);n=d.cc(m);null==n&&(d.gd(m,p),n=p);u=u.Fa(n,null,q,r,0);2>u&&(f=new c(h,f,q[0],NaN,u,m,k,r[0],NaN),e.push(f),f=d.Qa(h,b),0>f&&d.Sa(h,b,e.length-1));return!0};a.sM=function(b,d,e,f,h,k,m){var n=new g.zb,p=new g.zb,q=[0,0],r=[0,0],u=d.cc(h);null==u&&(d.gd(h,n),u=n);n=d.cc(m);null==n&&(d.gd(m,p),n=p);u=u.Fa(n,null,q,r,0);return 2>
u?(f=new c(h,f,q[0],NaN,u,m,k,r[0],NaN),e.push(f),f=d.Qa(h,b),0>f&&d.Sa(h,b,e.length-1),!0):!1};a.tM=function(b,d,e,f,h,k,m,n){var p=new g.zb,q=new g.zb,r=[0,0],u=[0,0],v=d.cc(h);null==v&&(d.gd(h,p),v=p);p=d.cc(m);null==p&&(d.gd(m,q),p=q);v=v.Fa(p,null,r,u,0);if(2==v)return f=new c(h,f,r[0],r[1],v,m,k,u[0],u[1]),e.push(f),f=d.Qa(h,b),0>f&&d.Sa(h,b,e.length-1),!0;q=!1;h==n&&(f=new c(h,f,r[0],NaN,v,m,k,u[0],NaN),e.push(f),f=d.Qa(h,b),0>f&&d.Sa(h,b,e.length-1),q=!0);return q};a.uM=function(b,d,e,f,h,
k,m,n){var p=new g.zb,q=new g.zb,r=[0,0],u=[0,0],v=d.cc(h);null==v&&(d.gd(h,p),v=p);p=d.cc(m);null==p&&(d.gd(m,q),p=q);v=v.Fa(p,null,r,u,0);if(2==v)return f=new c(h,f,r[0],r[1],v,m,k,u[0],u[1]),e.push(f),f=d.Qa(h,b),0>f&&d.Sa(h,b,e.length-1),!0;q=!1;h==n&&(f=new c(h,f,r[0],NaN,v,m,k,u[0],NaN),e.push(f),f=d.Qa(h,b),0>f&&d.Sa(h,b,e.length-1),q=!0);return q};a.YL=function(b,d,e,f){var h=[];h[0]=new g.h;h[1]=new g.h;h[2]=new g.h;h[3]=new g.h;var k=new g.h,m=new g.h,n=new g.h,p=new g.h,q=null;null!=f&&
(q=new g.lg,q.Pr());var r=0,u=null,v=new g.zb;new g.zb;for(var w=e.Ob(e.md);-1!=w;w=e.Sb(w)){for(var z=4,x=-1,A=-1,B=-1,C=-1,D=NaN,G=!0,H=!1,K=!0,J=!0,S=!0,R=0,V=w,W=0,ia=e.Ya(w),oa=e.Ka(w),wa=0;wa<oa;ia=e.W(ia),wa++){var ta=e.cc(ia);if(null==ta){if(!e.gd(ia,v))continue;ta=v}-1==A&&(A=ia);for(var fa=0;r<d.length&&ia==d[r].yg;){x=d[r].Ks;var ma=d[r].yg,da=d[r].DA,ua=d[r].Nm,sa=d[r].Bl,ya=d[r].QH;if(2==d[r].Ei){if(H||(V=x,A=ma,W=da,B=ua,C=sa,D=ya,z=2,null!=f?u=new g.Ua:R=0,S=!1,J=!0),da=d[r].PH,ya=
d[r].HT,null!=f?(ta.eh(fa,d[r].PH,q),u.pc(q.get(),J)):R++,fa=da,H=!0,J=G=!1,r+1==d.length||2!=d[r+1].Ei||d[r+1].yg==ma&&d[r+1].DA!=fa){if(null!=f){var na=new t(u,2,x,ma,da,z,V,A,W,ua,sa,ya,B,C,D);f.push(na)}else null.add(R);V=x;A=ma;W=da;B=ua;C=sa;D=ya;z=2;H=G=!1;J=S=!0}}else{var xa=e.W(ma);if(r<d.length-1&&d[r+1].yg==xa&&d[r+1].Bl==sa&&2==d[r+1].Ei)da!=fa&&(S&&(null!=f?u=new g.Ua:R=0),G=0<r&&d[r-1].Ks==x?1==z?0:0==z?1:3:3,null!=f?(ta.eh(fa,da,q),u.pc(q.get(),J),na=new t(u,G,x,ma,da,z,V,A,W,ua,sa,
ya,B,C,D),f.push(na)):(R++,null.add(R)),fa=da,V=x,A=ma,W=da,B=ua,C=sa,D=ya,z=G,G=K=!1,J=S=!0);else if(!a.yM(b,e,d,r,k,m)){a.vM(e,d,r,w,ia,n,p);var pa=!1;xa=!1;na=!0;if(!(k.sb(n)||m.sb(n)||k.sb(p)||m.sb(p))){h[0].N(k);h[1].N(m);h[2].N(n);h[3].N(p);h.sort(g.h.ku);var Ba=h[0],Ca=h[1],Da=h[2],Ea=h[3];Ba.sb(k)?Ca.sb(m)?b?(xa=pa=!0,na=!1):pa=!1:Ea.sb(m)?b?na=xa=pa=!0:pa=!1:(pa=!0,na=Ca.sb(n)):Ca.sb(k)?Da.sb(m)?b?(xa=pa=!0,na=!1):pa=!1:Ba.sb(m)?b?na=xa=pa=!0:pa=!1:(pa=!0,na=Da.sb(n)):Da.sb(k)?Ea.sb(m)?b?
(xa=pa=!0,na=!1):pa=!1:Ca.sb(m)?b?na=xa=pa=!0:pa=!1:(pa=!0,na=Ea.sb(n)):Ba.sb(m)?b?(xa=pa=!0,na=!1):pa=!1:Da.sb(m)?b?na=xa=pa=!0:pa=!1:(pa=!0,na=Ba.sb(n))}if(pa){pa=ia==ma;if(da!=fa||pa&&0==fa)S&&(null!=f?u=new g.Ua:R=0),null!=f?(ta.eh(fa,da,q),u.pc(q.get(),J)):R++;if(na)if(1!=z){if(da!=fa||pa&&0==fa)null!=f?(na=new t(u,1,x,ma,da,z,V,A,W,ua,sa,ya,B,C,D),f.push(na)):null.add(R);if(!xa)z=1;else if(r>=d.length-2||d[r+2].Ks!=x)z=0}else{if(da!=fa||pa&&0==fa)null!=f?(na=new t(u,3,x,ma,da,z,V,A,W,ua,sa,
ya,B,C,D),f.push(na)):null.add(R);z=1}else if(0!=z){if(da!=fa||pa&&0==fa)null!=f?(na=new t(u,0,x,ma,da,z,V,A,W,ua,sa,ya,B,C,D),f.push(na)):null.add(R);if(!xa)z=0;else if(r>=d.length-2||d[r+2].Ks!=x)z=1}else{if(da!=fa||pa&&0==fa)null!=f?(na=new t(u,3,x,ma,da,z,V,A,W,ua,sa,ya,B,C,D),f.push(na)):null.add(R);z=0}if(da!=fa||pa&&0==fa)fa=da,V=x,A=ma,W=da,B=ua,C=sa,D=ya,G=K=!1,J=S=!0}}}r++}1!=fa&&(S&&(null!=f?u=new g.Ua:R=0),null!=f?(ta.eh(fa,1,q),u.pc(q.get(),J)):R++,J=S=!1,K=!0)}K&&(da=1,ma=e.rj(w),ma=
e.Na(ma),sa=ua=-1,ya=NaN,G?null!=f?(na=new t(u,4,x,ma,da,z,V,A,W,ua,sa,ya,B,C,D),f.push(na)):null.add(R):(G=1==z?0:0==z?1:3,null!=f?(na=new t(u,G,x,ma,da,z,V,A,W,ua,sa,ya,B,C,D),f.push(na)):null.add(R)))}};a.yM=function(b,d,e,f,h,k){var m=e[f].QH;if(1==m)return a.wM(b,d,e,f,h,k);if(0==m)return a.xM(b,d,e,f,h,k);throw g.i.Ra();};a.wM=function(b,d,e,f,h,k){var m=new g.zb,n=e[f].yg,p=e[f].Nm,q=e[f].Bl,r=-1,u=-1,v=-1,w=-1;if(!b&&0<f){var z=e[f-1];r=z.yg;u=z.Nm;v=z.Bl;w=z.Ei}var x=-1,A=-1,B=-1,C=-1;f<
e.length-1&&(z=e[f+1],x=z.yg,A=z.Nm,B=z.Bl,C=z.Ei);var D=d.W(n);z=d.W(q);if(!b)return 0<f&&r==n&&u==p&&v==z&&2==w||f<e.length-1&&x==D&&A==p&&B==z&&2==C?(b=d.cc(q),null==b&&(d.gd(q,m),b=m),k.N(b.ng()),h.it(k),k.normalize(),h.normalize(),!1):f<e.length-1&&x==n&&A==p&&B==z?(b=d.cc(q),null==b&&(d.gd(q,m),b=m),h.N(b.ng()),b=d.cc(z),null==b&&(d.gd(z,m),b=m),k.N(b.ng()),h.Uq(),k.normalize(),h.normalize(),!1):!0;if(f==e.length-1||x!=n||A!=p||B!=z||2==C)return b=d.cc(q),null==b&&(d.gd(q,m),b=m),k.N(b.ng()),
h.it(k),k.normalize(),h.normalize(),!1;b=d.cc(q);null==b&&(d.gd(q,m),b=m);h.N(b.ng());b=d.cc(z);null==b&&(d.gd(z,m),b=m);k.N(b.ng());h.Uq();k.normalize();h.normalize();return!1};a.xM=function(b,d,e,f,h,k){var m=new g.zb,n=e[f].yg,p=e[f].Nm,q=e[f].Bl,r=-1,u=-1,v=-1,w=-1;if(!b&&f<e.length-1){var z=e[f+1];r=z.yg;u=z.Nm;v=z.Bl;w=z.Ei}var x=-1,A=-1,B=-1;z=-1;0<f&&(z=e[f-1],x=z.yg,A=z.Nm,B=z.Bl,z=z.Ei);var C=d.W(n),D=d.Na(q);return b?0==f||x!=n||A!=p||B!=D||2==z?(b=d.cc(q),null==b&&(d.gd(q,m),b=m),k.N(b.ng()),
h.it(k),k.normalize(),h.normalize(),!1):!0:0<f&&x==n&&A==p&&B==D&&2==z||f<e.length-1&&r==C&&u==p&&v==D&&2==w?(b=d.cc(q),null==b&&(d.gd(q,m),b=m),k.N(b.ng()),h.it(k),k.normalize(),h.normalize(),!1):!0};a.vM=function(b,d,e,f,h,k,m){var n=new g.zb,p=b.cc(h);null==p&&(b.gd(h,n),p=n);e=d[e];d=e.yg;e=e.DA;h=b.W(d);if(1==e)k.N(p.ng()),-1!=h&&h!=b.rj(f)?(p=b.cc(h),null==p&&(b.gd(h,n),p=n),m.N(p.ng()),p=b.cc(d),null==p&&b.gd(d,n)):m.N(k),k.Uq(),m.normalize(),k.normalize();else if(0==e)m.N(p.ng()),k.it(m),
m.normalize(),k.normalize();else throw g.i.Ra();};return a}()})(y||(y={}));(function(g){(function(f){f[f.Linear=0]="Linear";f[f.Angular=1]="Angular";f[f.Area=2]="Area"})(g.XL||(g.XL={}));var t=function(){function f(h,k,m){this.pd=k;this.ai=m;this.kA=h}f.prototype.Nb=function(h){return h instanceof f?this.ai===h.ai:!1};f.VF=function(h){return 0!==h.pd?null:-1===h.kA?new f(-1,2,h.ai*h.ai):f.Zd(d[h.kA])};f.Zd=function(h){h=b[h];return void 0===h?null:h};f.YO=function(h,k,m){var n=null;if(void 0!==m&&
null!==m)try{"EPSG"===m.values[0]&&(n=f.Zd(parseInt(m.values[1])))}catch(p){}null===n&&(n=new f(-1,h,k));return n};f.prototype.Gc=function(){return this.kA};f.prototype.vF=function(h){if(h.pd!=this.pd)throw g.i.Hb();return this.ai/h.ai};f.Nh=function(h,k,m){return k.vF(m)*h};f.OE=function(h,k,m,n,p){m=m.vF(n);for(n=0;n<k;n++)p[n]=h[n]*m};return f}();g.fc=t;for(var l=[109401,1E4,109402,4046.8564224,109403,4046.87260987425,109404,1,109405,.09290304,109406,.09290341161327487,109407,.09290137299531805,
109408,3.34450944,109409,3429904,109410,1.000027193184865,109411,404.6872609874253,109412,.04046872609874253,109413,2589998.4703195216,109414,1E6,109415,.8361123569578626,109416,404.67838076760535,109417,.04046783807676053,109418,.8361244606523066,109419,.09290271785025629,109420,404.68423895571647,109421,.04046842389557164,109422,.83612589696064,109423,.0929028774400711,109424,404.6849341289498,109425,.04046849341289498,109426,.836125904805842,109427,.09290287831176021,109428,404.68493792602754,
109429,.04046849379260275,109430,.09290354800069446,109431,.09290274144751023,109432,.09290207073852812,109433,.09290279616016,109434,.09290273520025,109435,.836124673027592,109436,.836118636646753,109437,.8361251654414399,109438,.83612461680225,109439,2589988.110336,109440,.09290286332673177,109441,.09290349665192114,109442,.83612736,109443,.8361307045194736,109444,404.68564224000005,109445,.04046856422400001,109446,.8361237024040001,109447,.0929026336004445,109448,404.683871963536,109449,.0404683871963536,
109450,.01,109451,1E-4,109452,1E-6,109453,6.4516E-4,109454,6.451625806477421E-4,109455,25.292852640000003,109456,25.29295381171408,109457,3434528.1495040003,109458,3434290.937856,109459,2.89612324,109460,25E8,109461,225E8,109462,.7168473118308245,109463,100,109464,1.244521604938272E-7,109465,1E-12,109466,1E-18],c=[1031,4.84813681109536E-9,9101,1,9102,.0174532925199433,9103,2.908882086657216E-4,9104,4.84813681109536E-6,9105,.01570796326794897,9106,.01570796326794897,9109,1E-6,9112,1.570796326794897E-4,
9113,1.570796326794897E-6,9114,9.817477042468104E-4],a=[1025,.001,109452,1033,.01,109451,9001,1,109404,9002,.3048,109405,9003,.3048006096012192,109406,9005,.3047972654,109407,9014,1.8288,109408,9030,1852,109409,9031,1.0000135965,109410,9033,20.11684023368047,109411,9034,.2011684023368047,109412,9035,1609.3472186944375,109413,9036,1E3,109414,9037,.9143917962000001,109415,9038,20.1166195164,109416,9039,.201166195164,109417,9040,.9143984146160287,109418,9041,.304799471538676,109419,9042,20.116765121552632,
109420,9043,.2011676512155263,109421,9050,.9143992,109422,9051,.3047997333333333,109423,9052,20.1167824,109424,9053,.201167824,109425,9060,.9143992042898124,109426,9061,.3047997347632708,109427,9062,20.116782494375872,109428,9063,.2011678249437587,109429,9070,.3048008333333334,109430,9080,.3047995102481469,109431,9081,.30479841,109432,9082,.3047996,109433,9083,.3047995,109434,9084,.9143985307444408,109435,9085,.91439523,109436,9086,.9143988,109437,9087,.9143985,109438,9093,1609.344,109439,9094,.3047997101815088,
109440,9095,.3048007491,109441,9096,.9144,109442,9097,20.1168,109444,9098,.201168,109445,9099,.914398,109446,9300,.3047993333333334,109447,9301,20.116756,109448,9302,.20116756,109449,109001,.9144,109442,109002,.9144018288036576,109443,109003,20.1168,109444,109004,.201168,109445,109005,.1,109450,109006,.01,109451,109007,.001,109452,109008,.0254,109453,109009,.0254000508001016,109454,109010,5.0292,109455,109011,5.029210058420118,109456,109012,1853.248,109457,109013,1853.184,109458,109014,1.7018,109459,
109015,.8466683600033867,109462,109016,3.527777777777778E-4,109464,109017,1E-6,109465,109018,1E-9,109466,109030,5E4,109460,109031,15E4,109461],b=[],d=[],e=0;e<l.length;e+=2)b[l[e]]=new t(l[e],2,l[e+1]);l=null;for(e=0;e<c.length;e+=2)b[c[e]]=new t(c[e],1,c[e+1]);c=null;for(e=0;e<a.length;e+=3)b[a[e]]=new t(a[e],0,a[e+1]),d[a[e]]=a[e+2];a=null})(y||(y={}));(function(g){var t=function(){function l(){this.yb=this.qb=0}l.prototype.set=function(c,a){void 0!==a?(this.qb=c,this.yb=a):"number"===typeof c?
(this.qb=c,this.yb=0):(this.qb=c.qb,this.yb=c.yb)};l.prototype.value=function(){return this.qb};l.prototype.add=function(c){var a=this.qb+c.qb;c=this.yb+c.yb+2.220446049250313E-16*Math.abs(a);this.qb=a;this.yb=c};l.prototype.jN=function(){var c=this.qb+1,a=this.yb+2.220446049250313E-16*Math.abs(c);this.qb=c;this.yb=a};l.prototype.cN=function(c,a){this.qb=c.qb+a.qb;this.yb=c.yb+a.yb+2.220446049250313E-16*Math.abs(this.qb)};l.prototype.sub=function(c){if("number"===typeof c){var a=this.qb-c;c=this.yb+
2.220446049250313E-16*Math.abs(a)}else a=this.qb-c.qb,c=this.yb+c.yb+2.220446049250313E-16*Math.abs(a);this.qb=a;this.yb=c};l.prototype.Fg=function(c){var a=this.qb*c.qb;this.yb=this.yb*Math.abs(c.qb)+c.yb*Math.abs(this.qb)+this.yb*c.yb+2.220446049250313E-16*Math.abs(a);this.qb=a};l.prototype.Oo=function(c){var a=this.qb*c;this.yb=this.yb*Math.abs(c)+2.220446049250313E-16*Math.abs(a);this.qb=a};l.prototype.Ll=function(c,a){var b=Math.abs(c.qb)*Math.abs(a.qb);this.yb=c.yb*Math.abs(a.qb)+a.yb*Math.abs(c.qb)+
c.yb*a.yb+2.220446049250313E-16*Math.abs(b);this.qb=b};l.prototype.lm=function(c){var a=Math.abs(c.qb),b=this.qb/c.qb,d=(this.yb+Math.abs(b)*c.yb)/a;c.yb>.01*a&&(c=c.yb/a,d*=1+(1+c)*c);this.qb=b;this.yb=d+2.220446049250313E-16*Math.abs(b)};l.prototype.sqrt=function(){if(0<=this.qb){var c=Math.sqrt(this.qb),a=this.qb>10*this.yb?.5*this.yb/c:this.qb>this.yb?c-Math.sqrt(this.qb-this.yb):Math.max(c,Math.sqrt(this.qb+this.yb)-c);a+=2.220446049250313E-16*Math.abs(c)}else this.qb<-1*this.yb?a=c=NaN:(c=0,
a=Math.sqrt(this.yb));this.qb=c;this.yb=a};l.prototype.sin=function(c){var a=Math.sin(c.qb),b=Math.cos(c.qb);this.qb=a;a=Math.abs(a);this.yb=(Math.abs(b)+.5*a*c.yb)*c.yb+2.220446049250313E-16*a};l.prototype.cos=function(c){var a=Math.sin(c.qb),b=Math.cos(c.qb);this.qb=b;b=Math.abs(b);this.yb=(Math.abs(a)+.5*b*c.yb)*c.yb+2.220446049250313E-16*b};l.prototype.vg=function(){return Math.abs(this.qb)<=this.yb};l.prototype.ms=function(){return this.vg()&&0!=this.yb};return l}();g.Xb=t})(y||(y={}));var Q=
new y.h,X=new y.h,ra=new y.h,za=new y.h,Aa=new y.h;(function(g){var t;(function(c){c[c.closedPath=1]="closedPath";c[c.exteriorPath=2]="exteriorPath";c[c.ringAreaValid=4]="ringAreaValid"})(t||(t={}));var l=function(){function c(a,b,d,e,f,h,k){void 0!==b?(this.ib=a,this.bk=b,this.bl=d,this.ii=e,this.za=h,this.Yz=k,this.bw=f):(this.ib=a.ib,this.bk=a.bk,this.bl=a.bl,this.ii=a.ii,this.za=a.za,this.Yz=a.Yz,this.bw=a.bw);this.XG=!0}c.prototype.next=function(){return this.XG?(this.XG=!1,this.ii):-1!=this.ii?
(this.ii=this.ib.W(this.ii),this.za++,-1!=this.ii&&this.ii!=this.bw?this.ii:this.TT()):-1};c.prototype.TT=function(){this.bl=this.ib.Sb(this.bl);for(this.za=0;-1!=this.bk;){for(;-1!=this.bl;this.bl=this.ib.Sb(this.bl))if(this.bw=this.ii=this.ib.Ya(this.bl),-1!=this.ii)return this.ii;this.bk=this.ib.xe(this.bk);if(-1==this.bk)break;if(!this.Yz||g.ba.Jc(this.ib.kc(this.bk)))this.bl=this.ib.Ob(this.bk)}return-1};c.yP=function(a,b,d,e,f,h,k){return new c(a,b,d,e,f,h,k)};return c}();g.qY=l;t=function(){function c(){this.ko=
this.Cm=this.vk=this.ed=this.Bk=this.wo=this.Oi=this.nd=this.bi=this.Xg=this.Ve=this.Jl=null;this.nw=this.md=-1;this.hd=0;this.Wz=!1;this.dt=this.et=this.wb=null}c.prototype.Sh=function(a){return null!=this.Ve?this.Ve[a]:null};c.prototype.ah=function(a,b){if(null==this.Ve){if(null==b)return;this.Ve=[];for(var d=0,e=this.wb.I();d<e;d++)this.Ve.push(null)}this.Ve[a]=b};c.prototype.cp=function(a,b){this.nd.U(a,1,b)};c.prototype.bp=function(a,b){this.nd.U(a,2,b)};c.prototype.JB=function(a,b){this.nd.U(a,
6,b)};c.prototype.Up=function(a){return this.nd.V(a,6)};c.prototype.bx=function(a,b){this.nd.U(a,7,b)};c.prototype.nv=function(a){return this.nd.V(a,0)};c.prototype.JJ=function(a,b){this.ed.U(a,1,b)};c.prototype.NJ=function(a,b){this.ed.U(a,0,b)};c.prototype.CF=function(a){return this.ed.V(a,7)};c.prototype.$o=function(a,b){this.ed.U(a,3,b)};c.prototype.ap=function(a,b){this.ed.U(a,4,b)};c.prototype.nU=function(a){null==this.ed&&(this.ed=new g.bd(8));var b=this.ed.Fe();this.ed.U(b,2,a);this.ed.U(b,
5,0);this.ed.U(b,6,0);this.ed.U(b,7,b);return b};c.prototype.KQ=function(a){this.ed.ld(a)};c.prototype.pU=function(a){null==this.nd&&(this.nd=new g.bd(8),this.vd=new g.bd(5),this.Oi=new g.ee(0),this.wo=new g.ee(0));var b=this.nd.Fe();this.nd.U(b,0,b);this.nd.U(b,3,0);this.nd.U(b,6,0);this.bx(b,a);b>=this.Oi.size&&(a=16>b?16:g.P.truncate(3*b/2),this.Oi.resize(a),this.wo.resize(a));this.Oi.set(b,0);this.wo.set(b,0);return b};c.prototype.lF=function(a){this.nd.ld(a)};c.prototype.Ly=function(a){this.vd.ld(a);
this.hd--};c.prototype.jI=function(a){null==this.nd&&(this.nd=new g.bd(8),this.vd=new g.bd(5),this.Oi=new g.ee(0),this.wo=new g.ee(0));var b=this.vd.Fe(),d=0<=a?a:b;this.vd.U(b,0,d);if(0>a){if(d>=this.wb.I()){a=16>d?16:g.P.truncate(3*d/2);this.wb.resize(a);if(null!=this.Ve)for(var e=0;e<a;e++)this.Ve.push(null);null!=this.Xg&&this.Xg.resize(a);this.et=this.wb.lb(0)}this.wb.Db(d,-1E38,-1E38);null!=this.Ve&&(this.Ve[d]=null);null!=this.Xg&&this.Xg.write(d,1)}this.vd.U(b,4,2*d);this.hd++;return b};c.prototype.wj=
function(a,b,d){var e=-1!=b?this.Na(b):this.rj(a),f=-1!=e?this.W(e):-1,h=this.jI(null==d?this.hd:-1),k=this.Va(h);null!=d&&this.wb.Dt(k,d);this.aj(h,a);this.Dc(h,f);this.Ec(h,e);-1!=f&&this.Ec(f,h);-1!=e&&this.Dc(e,h);d=this.ec(a);e=this.Ya(a);-1==b&&this.$g(a,h);b==e&&this.Nf(a,h);d&&-1==f&&(this.Dc(h,h),this.Ec(h,h));this.Vj(a,this.Ka(a)+1);a=this.Uf(a);this.Tj(a,this.I(a)+1);return h};c.prototype.pm=function(){null==this.ko&&(this.ko=new g.Ta(this.wb.description));return this.ko};c.prototype.Zo=
function(a,b){this.ed.U(a,2,this.ed.V(a,2)&-134217729||(1==b?134217728:0))};c.prototype.In=function(a){return 0!=(this.ed.V(a,2)&134217728)?1:0};c.prototype.gN=function(a){var b=this.Og(a.K(),a.description);1736==a.K()&&this.Zo(b,a.In());this.KD(b,a);return b};c.prototype.hN=function(a){var b=this.Og(a.K(),a.description);this.LD(b,a);return b};c.prototype.QV=function(a,b){null==this.nd&&(this.nd=new g.bd(8),this.vd=new g.bd(5),this.Oi=new g.ee(0),this.wo=new g.ee(0));this.nd.Ge(this.nd.Ng+a);this.vd.Ge(this.vd.Ng+
b);this.Oi.Jb(this.Oi.size+a);this.wo.Jb(this.wo.size+a)};c.prototype.KD=function(a,b){this.QV(b.ea(),b.I());this.Jl.Hd(b,0,b.I());this.et=this.wb.lb(0);for(var d=null!=this.Ve&&null!=b.Ue,e=0,f=b.ea();e<f;e++)if(!(2>b.Ka(e))){var h=this.zf(a,-1);this.mn(h,b.ec(e));for(var k=b.Ca(e),m=b.Xc(e);k<m;k++){var n=this.wj(h,-1,null);if(d)if(n=this.Va(n),0!=(b.TF(k)&1))this.ah(n,null);else{var p=new g.lg;b.cc(k,p,!0);this.ah(n,p.get())}}}};c.prototype.LD=function(a,b){this.Jl.Hd(b,0,b.I());this.et=this.wb.lb(0);
a=this.zf(a,-1);var d=0;for(b=b.I();d<b;d++)this.wj(a,-1,null)};c.prototype.EX=function(a,b,d){var e=this.W(a);if(-1==e)throw g.i.Ra();for(var f=this.pm(),h=this.dd(a),k=0,m=b.pl(d);k<m;k++){var n=this.Va(a),p=this.W(a),q=b.Xp(d,k);0==k&&(q.Uo(f),this.Eh(a,f));322==q.K()?this.ah(n,null):this.ah(n,g.ba.mg(q));q.Qo(f);k<m-1?a=this.wj(h,p,f):this.Eh(e,f)}};c.prototype.DX=function(a,b,d){var e=this.W(a);if(-1==e)throw g.i.Ra();for(var f=this.pm(),h=this.dd(a),k=0,m=b.pl(d);k<m;k++){var n=this.Va(a),p=
this.W(a),q=b.Xp(d,m-k-1);0==k&&(q.Qo(f),this.Eh(a,f));322==q.K()?this.ah(n,null):this.ah(n,g.ba.mg(q));q.Uo(f);k<m-1?a=this.wj(h,p,f):this.Eh(e,f)}};c.prototype.BF=function(){var a=new g.l;a.Pa();for(var b=this.$q(),d=new g.h,e=!0,f=b.next();-1!=f;f=b.next())this.D(f,d),e?a.$b(d.x,d.y):a.Kk(d.x,d.y),e=!1;return a};c.prototype.Ib=function(a){var b=a.K();if(g.ba.Jc(b))return this.gN(a);if(550==b)return this.hN(a);throw g.i.Ra();};c.prototype.tN=function(a,b){var d=b.K();if(g.ba.Jc(d))this.KD(a,b);
else if(550==d)this.LD(a,b);else throw g.i.Ra();};c.prototype.lN=function(a,b){var d=this.Og(1736,a.description);if(2>a.Ka(b))return d;this.Jl.Hd(a,a.Ca(b),a.Xc(b));this.et=this.wb.lb(0);var e=this.zf(d,-1);this.mn(e,a.ec(b)||!0);var f=null!=this.Ve&&null!=a.Ue,h=a.Ca(b);for(b=a.Xc(b);h<b;h++){var k=this.wj(e,-1,null);if(f)if(k=this.Va(k),0!=(a.TF(h)&1))this.ah(k,null);else{var m=new g.lg;a.cc(h,m,!0);this.ah(k,m.get())}}return d};c.prototype.Me=function(a){var b=this.kc(a),d=g.UK.Og(b,this.Jl.description),
e=this.I(a);if(0==e)return d;if(g.ba.Jc(b)){b=this.ea(a);for(var f=g.$c.Oh(b+1),h=g.$c.Nr(b+1,0),k=d.description,m=0,n=k.Ba;m<n;m++){for(var p=k.rd(m),q=g.va.Wa(p),r=g.$c.PE(p,e),u=this.wb.lb(p),v=0,w=0,z=0,x=this.Ob(a);-1!=x;x=this.Sb(x)){var A=0;this.ec(x)&&(A|=1);this.RS(x)&&(A|=4);0!=A&&h.uJ(w,A);var B=this.Ka(x);f.write(w++,z);z+=B;if(0==p){B=u;var C=r,D=new g.h;for(A=this.Ya(x);v<z;A=this.W(A),v++){var G=this.Va(A);B.vc(2*G,D);C.Qt(2*v,D)}}else for(A=this.Ya(x);v<z;A=this.W(A),v++)for(G=this.Va(A),
C=0;C<q;C++)D=u.Gg(G*q+C),r.rr(v*q+C,D)}d.kn(p,r);f.write(b,e)}d.KJ(h);d.LJ(f);d.Sc(16777215)}else if(550==b){k=d.description;d.resize(e);m=0;for(n=k.Ba;m<n;m++){p=k.rd(m);q=g.va.Wa(p);r=d.lb(p);u=this.wb.lb(p);v=0;x=this.Ob(a);B=this.Ka(x);for(A=this.Ya(x);v<B;A=this.W(A),v++)for(G=this.Va(A),C=0;C<q;C++)D=u.Gg(G*q+C),r.rr(v*q+C,D);d.kn(p,r)}d.Sc(16777215)}return d};c.prototype.qB=function(a){for(var b=this.Ob(a);-1!=b;b=this.ar(b));b=this.JR(a);var d=this.xe(a);-1!=b?this.JJ(b,d):this.md=d;-1!=
d?this.NJ(d,b):this.nw=b;this.KQ(a)};c.prototype.Og=function(a,b){return void 0===b?this.RE(a,g.ge.sg()):this.RE(a,b)};c.prototype.RE=function(a,b){a=this.nU(a);null==this.wb?this.wb=this.Jl=new g.fe(b):this.Jl.Kl(b);this.dt=this.Jl.description;this.Wz=1<this.dt.Ba;-1==this.md?this.md=a:(this.NJ(a,this.nw),this.JJ(this.nw,a));return this.nw=a};c.prototype.xe=function(a){return this.ed.V(a,1)};c.prototype.JR=function(a){return this.ed.V(a,0)};c.prototype.kc=function(a){return this.ed.V(a,2)&2147483647};
c.prototype.CJ=function(a,b,d){b=this.vk[b];a=this.CF(a);a>=b.size&&b.resize(Math.max(g.P.truncate(1.25*a),16),-1);b.write(a,d)};c.prototype.DF=function(a,b){a=this.CF(a);b=this.vk[b];return a<b.size?b.read(a):-1};c.prototype.SE=function(){null==this.vk&&(this.vk=[]);for(var a=0;a<this.vk.length;a++)if(null==this.vk[a])return this.vk[a]=g.$c.Oh(0),a;this.vk.push(g.$c.Oh(0));return this.vk.length-1};c.prototype.qW=function(a){this.vk[a]=null};c.prototype.Ob=function(a){return this.ed.V(a,3)};c.prototype.gv=
function(a){return this.ed.V(a,4)};c.prototype.I=function(a){return this.ed.V(a,5)};c.prototype.ea=function(a){return this.ed.V(a,6)};c.prototype.Ip=function(a,b,d){for(var e=0,f=this.md;-1!=f;f=this.xe(f)){var h=this.kc(f);if(g.ba.Jc(h)&&(!d||1736==h)){h=1736==this.kc(f);for(var k=this.Ob(f);-1!=k;){for(var m=0,n=this.Ya(k);m<g.P.truncate(this.Ka(k)/2);){var p=this.W(n);if(-1==p)break;var q=this.Va(n),r=this.Sh(q);null!=r?q=r.Rb():(r=this.Va(p),q=this.wb.Ar(q,r));q<=a?(0==q?0==e&&(e=-1):e=1,p!=this.rj(k)&&
(this.$B(p,n),this.qd(p,!0))):n=this.W(n);m++}m=this.Ya(k);for(n=this.ec(k)?m:this.rj(k);0<this.Ka(k);)if(p=this.Na(n),-1!=p){var u=this.Va(p);r=this.Sh(u);null!=r?q=r.Rb():(q=this.Va(n),q=this.wb.Ar(q,u));if(q<=a)0==q?0==e&&(e=-1):e=1,this.$B(p,n),this.qd(p,!1),m==p&&(m=this.Ya(k));else if(n=this.Na(n),n==m)break}else{this.qd(n,!0);0==e&&(e=-1);break}n=this.Ka(k);b&&(h?3>n:2>n)?(k=this.ar(k),e=0<n?1:0==e?-1:e):k=this.Sb(k)}}}return e};c.prototype.$B=function(a,b){var d=this.Va(a),e=this.Va(b);null!=
this.Xg&&(d=this.Xg.read(d),this.Xg.write(e,d));if(null!=this.bi)for(e=0,d=this.bi.length;e<d;e++)if(null!=this.bi[e]){var f=this.Qa(a,e);-1!=f&&this.Sa(b,e,f)}};c.prototype.Vl=function(a,b,d){var e=0,f=this.W(a);if(-1==f)throw g.i.Ra();for(var h=this.Va(a),k=this.Va(f),m=this.Sh(h),n=null==m?this.wb.Ar(h,k):m.Rb(),p=0;p<d;p++){var q=b[p];if(0<q&&1>q){var r=q;null!=m&&(r=0<n?m.Nx(q)/n:0);this.wb.$C(h,k,r,this.pm());var u=this.wj(this.dd(a),f,this.pm());e++;if(null!=m){var v=m.dl(0,q);r=this.Va(this.Na(u));
this.ah(r,v);this.pf(u,v.yc());if(p==d-1||1==b[p+1])q=m.dl(q,1),this.ah(r,q)}}}return e};c.prototype.CX=function(a,b,d){var e=0,f=this.W(a);if(-1==f)throw g.i.ga("internal error");var h=this.Va(a),k=this.Va(f),m=this.Sh(h),n=null==m?this.wb.Ar(h,k):m.Rb(),p=0;a=this.dd(a);for(var q=0;q<d;q++){var r=b[q];if(p<r&&1>r){var u=r;null!=m&&(u=0<n?m.Nx(r)/n:0);this.wb.$C(h,k,u,this.pm());u=this.sS(a,f,this.pm());e++;if(null!=m){p=m.dl(p,r);var v=this.Va(this.Na(u));this.ah(v,p);this.Db(u,p.qa,p.na);if(q==
d-1||1==b[q+1])p=m.dl(r,1),u=this.Va(u),this.ah(u,p)}}p=r}return e};c.prototype.sS=function(a,b,d){var e=-1!=b?this.Na(b):this.rj(a),f=-1!=e?this.W(e):-1,h=this.jI(null==d?this.hd:-1),k=this.Va(h);null!=d&&this.wb.Dt(k,d);this.aj(h,a);this.Dc(h,f);this.Ec(h,e);-1!=f&&this.Ec(f,h);-1!=e&&this.Dc(e,h);d=this.ec(a);e=this.Ya(a);-1==b&&this.$g(a,h);b==e&&(d&&-1!=e||this.Nf(a,h));d&&-1==f&&(this.Dc(h,h),this.Ec(h,h));this.Vj(a,this.Ka(a)+1);a=this.Uf(a);this.Tj(a,this.I(a)+1);return h};c.prototype.kE=
function(a,b,d){var e=this.Va(b),f=this.Va(d);if(0>e||f>this.hd-1)throw g.i.O("invalid call");if(e>f&&!this.ec(a))throw g.i.O("cannot iterate across an open path");for(a=0;b!=d;b=this.W(b))e=this.Va(b),f=this.Sh(e),null!=f?a+=f.Rb():(f=this.Va(this.W(b)),a+=this.wb.Ar(e,f));return a};c.prototype.Eh=function(a,b){var d=this.Va(a);this.wb.Dt(d,b);d=this.Sh(d);null!=d&&d.setStart(b);a=this.Na(a);-1!=a&&(a=this.Va(a),null!=this.Sh(a)&&d.setEnd(b))};c.prototype.Vi=function(a,b){a=this.Va(a);this.wb.ye(a,
b)};c.prototype.pf=function(a,b){this.Db(a,b.x,b.y)};c.prototype.Db=function(a,b,d){var e=this.Va(a);this.wb.Db(e,b,d);e=this.Sh(e);null!=e&&e.NB(b,d);a=this.Na(a);-1!=a&&(a=this.Va(a),null!=this.Sh(a)&&e.Rl(b,d))};c.prototype.D=function(a,b){this.wb.D(this.vd.V(a,0),b)};c.prototype.Ic=function(a,b){this.wb.Aa[0].vc(2*this.vd.V(a,0),b)};c.prototype.Oa=function(a){var b=new g.h;this.wb.D(this.vd.V(a,0),b);return b};c.prototype.YF=function(a,b){this.et.vc(2*a,b)};c.prototype.Wc=function(a,b,d){return this.wb.Wc(a,
this.Va(b),d)};c.prototype.setAttribute=function(a,b,d,e){this.wb.setAttribute(a,this.Va(b),d,e)};c.prototype.Va=function(a){return this.vd.V(a,0)};c.prototype.Qg=function(){var a=new g.h;this.D(void 0,a);return a.y};c.prototype.hq=function(a,b){a=this.Va(a);b=this.Va(b);var d=this.wb.Aa[0].o;return d[2*a]===d[2*b]&&d[2*a+1]===d[2*b+1]};c.prototype.Av=function(a,b){a=this.Va(a);var d=this.wb.Aa[0].o;return d[2*a]===b.x&&d[2*a+1]===b.y};c.prototype.mX=function(a,b){1>b&&(b=1);if(null==this.Xg){if(1==
b)return;this.Xg=g.$c.Dn(this.wb.I(),1)}a=this.Va(a);a>=this.Xg.size&&this.Xg.resize(a+1,1);this.Xg.write(a,b)};c.prototype.XF=function(a){a=this.Va(a);return null==this.Xg||a>=this.Xg.size?1:this.Xg.read(a)};c.prototype.Sa=function(a,b,d){b=this.bi[b];a=this.Va(a);b.size<this.wb.I()&&b.resize(this.wb.I(),-1);b.write(a,d)};c.prototype.Qa=function(a,b){a=this.Va(a);b=this.bi[b];return a<b.size?b.read(a):-1};c.prototype.Id=function(){null==this.bi&&(this.bi=[]);for(var a=0;a<this.bi.length;a++)if(null==
this.bi[a])return this.bi[a]=g.$c.Oh(0,-1),a;this.bi.push(g.$c.Oh(0,-1));return this.bi.length-1};c.prototype.Vd=function(a){this.bi[a]=null};c.prototype.cc=function(a){return null!=this.Ve?(a=this.Va(a),this.Ve[a]):null};c.prototype.gd=function(a,b){var d=this.vd.V(a,2);if(-1==d)return!1;if(this.Wz){var e=new g.Ta;this.Vi(a,e);b.setStart(e);this.Vi(d,e);b.setEnd(e)}else this.wb.Ic(this.vd.V(a,0),Q),b.gm(0,Q),this.wb.Ic(this.vd.V(d,0),Q),b.gm(1,Q);return!0};c.prototype.fW=function(a,b,d){if(this.Wz){var e=
new g.Ta;this.Vi(a,e);d.setStart(e);this.Vi(b,e);d.setEnd(e)}else this.wb.Ic(a,Q),d.gm(0,Q),this.wb.Ic(b,Q),d.gm(1,Q)};c.prototype.zf=function(a,b){if(-1!=b){if(a!=this.Uf(b))throw g.i.Ra();var d=this.ds(b)}else d=this.gv(a);var e=this.pU(a);-1!=b&&this.cp(b,e);this.bp(e,b);this.cp(e,d);-1!=d?this.bp(d,e):this.$o(a,e);-1==b&&this.ap(a,e);this.Sl(a,this.ea(a)+1);return e};c.prototype.iG=function(a,b,d,e){a=this.zf(a,-1);for(var f=0,h=b,k=!1;h==d&&(k=!0),this.aj(h,a),f++,h=this.W(h),h!=b;);this.mn(a,
!0);this.Vj(a,f);k&&(b=d);this.Nf(a,b);this.$g(a,this.Na(b));this.ep(a,!1);null!=e&&(e[0]=k);return a};c.prototype.ar=function(a){var b=this.ds(a),d=this.Sb(a),e=this.Uf(a);-1!=b?this.bp(b,d):this.$o(e,d);-1!=d?this.cp(d,b):this.ap(e,b);this.zO(a);this.Sl(e,this.ea(e)-1);this.lF(a);return d};c.prototype.zO=function(a){var b=this.Ya(a);if(-1!=b){for(var d=0,e=this.Ka(a);d<e;d++){var f=b;b=this.W(b);this.Ly(f)}b=this.Uf(a);this.Tj(b,this.I(b)-this.Ka(a))}this.Vj(a,0)};c.prototype.Sb=function(a){return this.nd.V(a,
2)};c.prototype.ds=function(a){return this.nd.V(a,1)};c.prototype.Ka=function(a){return this.nd.V(a,3)};c.prototype.ec=function(a){return 0!=(this.Up(a)&1)};c.prototype.mn=function(a,b){if(this.ec(a)!=b){if(0<this.Ka(a)){var d=this.Ya(a),e=this.rj(a);b?(this.Dc(e,d),this.Ec(d,e),d=this.Va(e)):(this.Dc(e,-1),this.Ec(d,-1),d=this.Va(e));this.ah(d,null)}this.JB(a,(this.Up(a)|1)-1|(b?1:0))}};c.prototype.Uf=function(a){return this.nd.V(a,7)};c.prototype.RS=function(a){return 0!=(this.Up(a)&2)};c.prototype.EB=
function(a,b){this.JB(a,(this.Up(a)|2)-2|(b?2:0))};c.prototype.lz=function(a){if(this.WS(a))return this.Oi.get(this.nv(a));var b=new g.zb,d=this.Ya(a);if(-1==d)return 0;var e=new g.h;this.D(d,e);for(var f=0,h=0,k=this.Ka(a);h<k;h++,d=this.W(d)){var m=this.cc(d);if(null==m){if(!this.gd(d,b))continue;m=b}f+=m.Mx(e.x,e.y)}this.ep(a,!0);this.Oi.set(this.nv(a),f);return f};c.prototype.ir=function(a,b,d){b=this.Bk[b];a=this.nv(a);b.size<this.Oi.size&&b.resize(this.Oi.size,-1);b.write(a,d)};c.prototype.sj=
function(a,b){a=this.nv(a);b=this.Bk[b];return a<b.size?b.read(a):-1};c.prototype.zy=function(){null==this.Bk&&(this.Bk=[]);for(var a=0;a<this.Bk.length;a++)if(null==this.Bk[a])return this.Bk[a]=g.$c.Oh(0),a;this.Bk.push(g.$c.Oh(0));return this.Bk.length-1};c.prototype.rB=function(a){this.Bk[a]=null};c.prototype.ST=function(a,b,d){if(-1==d)throw g.i.O();if(b!=d){var e=this.Sb(d),f=this.ds(d),h=this.Uf(d);-1==f?this.$o(h,e):this.bp(f,e);-1==e?this.ap(h,f):this.cp(e,f);this.Tj(h,this.I(h)-this.Ka(d));
this.Sl(h,this.ea(h)-1);f=-1==b?this.gv(a):this.ds(b);this.cp(d,f);this.bp(d,b);-1==b?this.ap(a,d):this.cp(b,d);-1==f?this.$o(a,d):this.bp(f,d);this.Tj(a,this.I(a)+this.Ka(d));this.Sl(a,this.ea(a)+1);this.bx(d,a)}};c.prototype.ij=function(a,b){this.wb.ye(this.Va(b),this.pm());this.wj(a,-1,this.pm())};c.prototype.qd=function(a,b){var d=this.dd(a),e=this.Na(a),f=this.W(a);-1!=e&&this.Dc(e,f);var h=this.Ka(d);a==this.Ya(d)&&this.Nf(d,1<h?f:-1);-1!=f&&this.Ec(f,e);a==this.rj(d)&&this.$g(d,1<h?e:-1);if(-1!=
e&&-1!=f){e=this.Va(e);var k=this.Va(f);b?(b=this.Sh(e),null!=b&&(e=new g.h,this.wb.D(k,e),b.Tc(e))):(k=this.Va(a),b=this.Sh(k),this.ah(e,b),null!=b&&(e=this.wb.Oa(e),b.Fc(e)))}this.Vj(d,h-1);d=this.Uf(d);this.Tj(d,this.I(d)-1);this.Ly(a);return f};c.prototype.Ya=function(a){return this.nd.V(a,4)};c.prototype.rj=function(a){return this.nd.V(a,5)};c.prototype.W=function(a){return this.vd.V(a,2)};c.prototype.Na=function(a){return this.vd.V(a,1)};c.prototype.dd=function(a){return this.vd.V(a,3)};c.prototype.ic=
function(a,b){return this.wj(a,-1,b)};c.prototype.$q=function(a){if(void 0===a)return this.$q(!1);if(a instanceof l)return new l(a);var b,d=-1,e=-1,f=-1,h=0,k=!1;for(b=this.md;-1!=b;b=this.xe(b))if(!a||g.ba.Jc(this.kc(b))){for(d=this.Ob(b);-1!=d;d=this.Sb(d))if(f=e=this.Ya(d),h=0,-1!=e){k=!0;break}if(k)break}return l.yP(this,b,d,e,f,h,a)};c.prototype.Rc=function(a){this.Jl.Rc(a);if(null!=this.Ve)for(var b=0,d=this.Ve.length;b<d;b++)null!=this.Ve[b]&&this.Ve[b].Rc(a)};c.prototype.lr=function(a,b,d,
e){e?this.EX(a,b,d):this.DX(a,b,d)};c.prototype.Ec=function(a,b){this.vd.U(a,1,b)};c.prototype.Dc=function(a,b){this.vd.U(a,2,b)};c.prototype.aj=function(a,b){this.vd.U(a,3,b)};c.prototype.Vj=function(a,b){this.nd.U(a,3,b)};c.prototype.Nf=function(a,b){this.nd.U(a,4,b)};c.prototype.$g=function(a,b){this.nd.U(a,5,b)};c.prototype.Sl=function(a,b){this.ed.U(a,6,b)};c.prototype.Tj=function(a,b){this.ed.U(a,5,b)};c.prototype.kJ=function(a){var b=a;do{var d=this.W(b);this.Dc(b,this.Na(b));this.Ec(b,d);
b=d}while(b!=a)};c.prototype.QB=function(a){this.hd=a};c.prototype.br=function(a){var b=this.ds(a),d=this.Sb(a),e=this.Uf(a);-1!=b?this.bp(b,d):this.$o(e,d);-1!=d?this.cp(d,b):this.ap(e,b);this.Nf(a,-1);this.$g(a,-1);this.lF(a)};c.prototype.mi=function(a,b){var d=this.Na(a),e=this.W(a);-1!=d&&this.Dc(d,e);-1!=e&&this.Ec(e,d);if(-1!=d&&-1!=e)if(d=this.Va(d),e=this.Va(e),b){if(b=this.Sh(d),null!=b){var f=new g.h;this.wb.D(e,f);b.Tc(f)}}else b=this.Va(a),b=this.Sh(b),this.ah(d,b),null!=b&&(f=new g.h,
this.wb.D(d,f),b.Fc(f));this.Ly(a)};c.prototype.WS=function(a){return 0!=(this.Up(a)&4)};c.prototype.ep=function(a,b){this.JB(a,(this.Up(a)|4)-4|(b?4:0))};c.prototype.ix=function(a,b){var d=this.vd.o;this.wb.sc();var e=this.wb.Aa[0].o;a.Xd(0,b,function(f,h){var k=d[5*f];f=d[5*h];h=e[2*k];k=e[2*k+1];var m=e[2*f];f=e[2*f+1];return k<f?-1:k>f?1:h<m?-1:h>m?1:0})};c.prototype.dS=function(){for(var a=this.md;-1!=a;a=this.xe(a))if(!g.ba.Jc(this.kc(a)))return!0;return!1};c.prototype.WB=function(a,b){for(var d=
this.Ob(a),e=this.Ob(b),f=this.gv(a),h=this.gv(b),k=this.Ob(a);-1!=k;k=this.Sb(k))this.bx(k,b);for(k=this.Ob(b);-1!=k;k=this.Sb(k))this.bx(k,a);this.$o(a,e);this.$o(b,d);this.ap(a,h);this.ap(b,f);d=this.I(a);e=this.ea(a);f=this.ea(b);this.Tj(a,this.I(b));this.Tj(b,d);this.Sl(a,f);this.Sl(b,e);d=this.ed.V(a,2);this.ed.U(a,2,this.ed.V(b,2));this.ed.U(b,2,d)};return c}();g.jd=t})(y||(y={}));(function(g){var t=function(l){function c(a,b,d,e){var f=l.call(this)||this;f.T=new g.l;void 0===a?f.KE():"number"===
typeof a?f.UO(a,b,d,e):a instanceof g.Ta?void 0!==b?f.Ou(a,b,d):f.VO(a):a instanceof g.va?void 0!==b?f.XO(a,b):f.WO(a):a instanceof g.l?f.TO(a):f.KE();return f}E(c,l);c.prototype.Ou=function(a,b,d){this.description=g.ge.sg();this.T.Pa();a.B()||this.qu(a,b,d)};c.prototype.TO=function(a){this.description=g.ge.sg();this.T.L(a);this.T.normalize()};c.prototype.WO=function(a){if(null==a)throw g.i.O();this.description=a;this.T.Pa()};c.prototype.XO=function(a,b){if(null==a)throw g.i.O();this.description=
a;this.T.L(b);this.T.normalize()};c.prototype.KE=function(){this.description=g.ge.sg();this.T.Pa()};c.prototype.VO=function(a){this.description=g.ge.sg();this.T.Pa();a.B()||this.qu(a)};c.prototype.UO=function(a,b,d,e){this.description=g.ge.sg();this.L(a,b,d,e)};c.prototype.L=function(a,b,d,e){this.xc();if("number"===typeof a)this.T.L(a,b,d,e);else for(this.Pa(),b=0,d=a.length;b<d;b++)this.$b(a[b])};c.prototype.Yo=function(a){this.xc();if(!a.ZS())throw g.i.O();this.T.L(a)};c.prototype.Pa=function(){this.xc();
this.T.Pa()};c.prototype.B=function(){return this.T.B()};c.prototype.S=function(){return this.T.S()};c.prototype.da=function(){return this.T.da()};c.prototype.fk=function(){return this.T.fk()};c.prototype.Lp=function(){return this.T.Lp()};c.prototype.Kp=function(){return this.T.wf()};c.prototype.$b=function(a){if(a instanceof g.h)this.xc(),this.T.$b(a);else if(a instanceof g.l)this.xc(),this.T.$b(a);else if(a instanceof g.Ta){if(this.xc(),!a.Cc()){var b=a.description;this.description!=b&&this.Kl(b);
if(this.B())this.qu(a);else{this.T.$b(a.D());for(var d=1,e=b.Ba;d<e;d++)for(var f=b.Gd(d),h=g.va.Wa(f),k=0;k<h;k++){var m=a.Wc(f,k),n=this.ig(f,k);n.$b(m);this.setInterval(f,k,n)}}}}else if(a instanceof c&&!a.B())for(b=a.description,b!=this.description&&this.Kl(b),this.T.$b(a.T),d=1,e=b.Ba;d<e;d++)for(f=b.rd(d),h=g.va.Wa(f),k=0;k<h;k++)m=a.ig(f,k),n=this.ig(f,k),n.$b(m),this.setInterval(f,k,n)};c.prototype.qu=function(a,b,d){if(void 0!==b){this.T.L(a.D(),b,d);b=a.description;d=1;for(var e=b.Ba;d<
e;d++)for(var f=b.Gd(d),h=g.va.Wa(f),k=0;k<h;k++){var m=a.Wc(f,k);this.setInterval(f,k,m,m)}}else for(this.T.L(a.la[0],a.la[1]),b=a.description,d=1,e=b.Ba;d<e;d++)for(f=b.Gd(d),h=g.va.Wa(f),k=0;k<h;k++)m=a.Wc(f,k),this.setInterval(f,k,m,m)};c.prototype.setInterval=function(a,b,d,e){d="number"===typeof d?new g.Pc(d,e):d;this.xc();if(0==a)if(0==b)this.T.v=d.ma,this.T.C=d.sa;else if(1==b)this.T.F=d.ma,this.T.H=d.sa;else throw g.i.te();else this.lD(0,a,b,d.ma),this.lD(1,a,b,d.sa)};c.prototype.Y=function(a,
b){this.xc();this.T.Y(a,b)};c.prototype.Rc=function(a){if(a instanceof g.Fd)this.xc(),a.aC(this.T);else if(this.xc(),!this.T.B()){var b=new g.JK;this.Ro(b);b.QS()?b.Pa():a.aC(b)}};c.prototype.copyTo=function(a){if(a.K()!=this.K())throw g.i.O();a.xc();a.description=this.description;a.T.L(this.T);a.la=null;if(null!=this.la){a.lu();for(var b=0;b<2*(this.description.De.length-2);b++)a.la[b]=this.la[b]}};c.prototype.Ja=function(){return new c(this.description)};c.prototype.Je=function(){return this.T.pF()};
c.prototype.Rb=function(){return this.T.uR()};c.prototype.K=function(){return 197};c.prototype.Eb=function(){return 2};c.prototype.dn=function(a){this.copyTo(a)};c.prototype.A=function(a){a.v=this.T.v;a.F=this.T.F;a.C=this.T.C;a.H=this.T.H};c.prototype.Ro=function(a){a.v=this.T.v;a.F=this.T.F;a.C=this.T.C;a.H=this.T.H;a.L(this.T.v,this.T.F,this.Qd(0,1,0),this.T.C,this.T.H,this.Qd(1,1,0))};c.prototype.ig=function(a,b){var d=new g.Pc;d.L(this.Qd(0,a,b),this.Qd(1,a,b));return d};c.prototype.Lf=function(a,
b){b.og(this.description);var d=this.description.Ba-1;switch(a){case 0:for(a=0;a<d;a++)for(var e=this.description.rd(a),f=g.va.Wa(e),h=0;h<f;h++)b.setAttribute(e,h,this.Qd(0,e,h));b.Db(this.T.v,this.T.F);break;case 1:for(a=0;a<d;a++)for(e=this.description.rd(a),f=g.va.Wa(e),h=0;h<f;h++)b.setAttribute(e,h,this.Qd(1,e,h));b.Db(this.T.v,this.T.H);break;case 2:for(a=0;a<d;a++)for(e=this.description.rd(a),f=g.va.Wa(e),h=0;h<f;h++)b.setAttribute(e,h,this.Qd(0,e,h));b.Db(this.T.C,this.T.H);break;case 3:for(a=
0;a<d;a++)for(e=this.description.rd(a),f=g.va.Wa(e),h=0;h<f;h++)b.setAttribute(e,h,this.Qd(1,e,h));b.Db(this.T.C,this.T.F);break;default:throw g.i.te();}};c.prototype.bB=function(a,b){a=this.T.bB(a);b.oa(a.x,a.y)};c.prototype.gR=function(a,b){return b*(a.Qq-2)};c.prototype.qF=function(a,b,d){if(this.T.B())throw g.i.ga("empty geometry");if(0==b)return 0!=a?0!=d?this.T.H:this.T.C:0!=d?this.T.F:this.T.v;if(d>=g.va.Wa(b))throw g.i.O();var e=this.description.Tf(b);this.lu();return 0<=e?this.la[this.gR(this.description,
a)+this.description.FR(e)-2+d]:g.va.ve(b)};c.prototype.lu=function(){this.xc();if(null==this.la&&2<this.description.De.length){this.la=[];for(var a=c.Mg(this.description,0),b=c.Mg(this.description,1),d=0,e=1,f=this.description.Ba;e<f;e++){var h=this.description.rd(e),k=g.va.Wa(h);h=g.va.ve(h);for(var m=0;m<k;m++)this.la[a+d]=h,this.la[b+d]=h,d++}}};c.prototype.tn=function(a){if(null!=this.la)if(2<a.De.length){for(var b=g.ge.Fw(a,this.description),d=[],e=c.Mg(this.description,0),f=c.Mg(this.description,
1),h=c.Mg(a,0),k=c.Mg(a,1),m=0,n=1,p=a.Ba;n<p;n++){var q=a.rd(n),r=g.va.Wa(q);if(-1==b[n]){var u=g.va.ve(q);for(q=0;q<r;q++)d[h+m]=u,d[k+m]=u,m++}else for(u=this.description.Zj(b[n])-2,q=0;q<r;q++)d[h+m]=this.la[e+u],d[k+m]=this.la[f+u],m++,u++}this.la=d}else this.la=null;this.description=a};c.prototype.Qd=function(a,b,d){if(this.T.B())throw g.i.ga("This operation was performed on an Empty Geometry.");if(0==b)return 0!=a?0!=d?this.T.H:this.T.C:0!=d?this.T.F:this.T.v;if(d>=g.va.Wa(b))throw g.i.te();
var e=this.description.Tf(b);return 0<=e?(this.lu(),this.la[c.Mg(this.description,a)+this.description.Zj(e)-2+d]):g.va.ve(b)};c.prototype.lD=function(a,b,d,e){this.xc();if(0==b)0!=a?0!=d?this.T.H=e:this.T.C=e:0!=d?this.T.F=e:this.T.v=e;else{if(d>=g.va.Wa(b))throw g.i.te();if(!this.hasAttribute(b)){if(g.va.yG(b,e))return;this.ue(b)}b=this.description.Tf(b);this.lu();this.la[c.Mg(this.description,a)+this.description.Zj(b)-2+d]=e}};c.Mg=function(a,b){return b*(a.De.length-2)};c.prototype.Fa=function(a){this.xc();
var b=new g.l;a.A(b);return this.T.Fa(b)};c.prototype.isIntersecting=function(a){return a instanceof g.l?this.T.isIntersecting(a):this.T.isIntersecting(a.T)};c.prototype.Gu=function(a,b){this.xc();a.B()?this.Pa():void 0!==b?this.qu(a,b,void 0):this.T.Gu(a.ug(),a.Qg())};c.prototype.offset=function(a,b){this.xc();this.T.offset(a,b)};c.prototype.normalize=function(){this.xc();this.T.normalize()};c.prototype.wf=function(a){if(void 0!==a)if(a.og(this.description),this.B())a.Pa();else{for(var b=this.description.Ba,
d=1;d<b;d++)for(var e=this.description.rd(d),f=g.va.Wa(e),h=0;h<f;h++){var k=.5*(this.qF(0,e,h)+this.qF(1,e,h));a.setAttribute(e,h,k)}a.Db(this.T.wf())}else{a=new g.Ta(this.description);if(this.B())return a;b=this.description.Ba;for(d=1;d<b;d++)for(e=this.description.Gd(d),f=g.va.Wa(e),h=0;h<f;h++)k=.5*(this.Qd(0,e,h)+this.Qd(1,e,h)),a.setAttribute(e,h,k);a.Db(this.T.fk(),this.T.Lp());return a}};c.prototype.cz=function(){return new g.Ta(this.T.cz())};c.prototype.contains=function(a){return a instanceof
g.Ta?a.B()?!1:this.T.contains(a.ug(),a.Qg()):this.T.contains(a.T)};c.prototype.cP=function(a){return this.T.contains(a)};c.prototype.Nb=function(a){if(a==this)return!0;if(!(a instanceof c)||this.description!=a.description)return!1;if(this.B())return a.B()?!0:!1;if(!this.T.Nb(a.T))return!1;for(var b=0,d=2*(this.description.De.length-2);b<d;b++)if(this.la[b]!=a.la[b])return!1;return!0};c.prototype.dc=function(){var a=this.description.dc();a=g.P.Th(a,this.T.dc());if(!this.B()&&null!=this.la)for(var b=
0,d=2*(this.description.De.length-2);b<d;b++)a=g.P.Th(a,this.la[b]);return a};c.prototype.qg=function(){return g.pi.im(this,null)};c.prototype.toString=function(){return this.B()?"Envelope: []":"Envelope: ["+this.T.v+", "+this.T.F+", "+this.T.C+", "+this.T.H+"]"};return c}(g.ba);g.Gh=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d){void 0===c?this.Pa():(this.v=c,this.F=a,this.C=b,this.H=d)}l.construct=function(c,a,b,d){var e=new l;e.v=c;e.F=a;e.C=b;e.H=d;return e};l.prototype.L=function(c,
a,b,d){"number"===typeof c?void 0!==b?(this.v=c,this.F=a,this.C=b,this.H=d,this.normalize()):(this.v=c,this.F=a,this.C=c,this.H=a):c instanceof g.h?void 0!==a?(this.v=c.x-.5*a,this.C=this.v+a,this.F=c.y-.5*b,this.H=this.F+b,this.normalize()):(this.v=c.x,this.F=c.y,this.C=c.x,this.H=c.y):c instanceof l?this.L(c.v,c.F,c.C,c.H):c instanceof g.Pc&&(c.B()||a.B()?this.Pa():(this.v=c.ma,this.C=c.sa,this.F=a.ma,this.H=a.sa))};l.prototype.Xw=function(c,a){if(void 0!==a)if(0==a)this.Pa();else{this.v=c[0].x;
this.F=c[0].y;this.C=this.v;this.H=this.F;for(var b=1;b<a;b++){var d=c[b];d.x<this.v?this.v=d.x:d.x>this.C&&(this.C=d.x);d.y<this.F?this.F=d.y:d.y>this.H&&(this.H=d.y)}}else if(null==c||0==c.length)this.Pa();else for(d=c[0],this.L(d.x,d.y),b=1;b<c.length;b++)a=c[b],this.Kk(a.x,a.y)};l.prototype.Pa=function(){this.H=this.C=this.F=this.v=NaN};l.prototype.B=function(){return isNaN(this.v)};l.prototype.$b=function(c,a){"number"===typeof c?this.B()?(this.v=c,this.F=a,this.C=c,this.H=a):(this.v>c?this.v=
c:this.C<c&&(this.C=c),this.F>a?this.F=a:this.H<a&&(this.H=a)):c instanceof g.h?this.$b(c.x,c.y):c instanceof g.Pd?this.$b(c.x,c.y):c instanceof l&&!c.B()&&(this.$b(c.v,c.F),this.$b(c.C,c.H))};l.prototype.Kk=function(c,a){this.v>c?this.v=c:this.C<c&&(this.C=c);this.F>a?this.F=a:this.H<a&&(this.H=a)};l.prototype.Y=function(c,a){this.B()||(this.v-=c,this.C+=c,this.F-=a,this.H+=a,(this.v>this.C||this.F>this.H)&&this.Pa())};l.prototype.scale=function(c){0>c&&this.Pa();this.B()||(this.v*=c,this.C*=c,this.F*=
c,this.H*=c)};l.prototype.zoom=function(c,a){this.B()||this.L(this.wf(),c*this.S(),a*this.da())};l.prototype.isIntersecting=function(c){return!this.B()&&!c.B()&&(this.v<=c.v?this.C>=c.v:c.C>=this.v)&&(this.F<=c.F?this.H>=c.F:c.H>=this.F)};l.prototype.CG=function(c){return(this.v<=c.v?this.C>=c.v:c.C>=this.v)&&(this.F<=c.F?this.H>=c.F:c.H>=this.F)};l.prototype.Fa=function(c){if(this.B()||c.B())return!1;c.v>this.v&&(this.v=c.v);c.C<this.C&&(this.C=c.C);c.F>this.F&&(this.F=c.F);c.H<this.H&&(this.H=c.H);
(c=this.v<=this.C&&this.F<=this.H)||this.Pa();return c};l.prototype.bB=function(c){switch(c){case 0:return g.h.construct(this.v,this.F);case 1:return g.h.construct(this.v,this.H);case 2:return g.h.construct(this.C,this.H);case 3:return g.h.construct(this.C,this.F);default:throw g.i.te();}};l.prototype.cB=function(c){if(null==c||4>c.length)throw g.i.O();null!=c[0]?c[0].oa(this.v,this.F):c[0]=g.h.construct(this.v,this.F);null!=c[1]?c[1].oa(this.v,this.H):c[1]=g.h.construct(this.v,this.H);null!=c[2]?
c[2].oa(this.C,this.H):c[2]=g.h.construct(this.C,this.H);null!=c[3]?c[3].oa(this.C,this.F):c[3]=g.h.construct(this.C,this.F)};l.prototype.pF=function(){return this.B()?0:this.S()*this.da()};l.prototype.uR=function(){return this.B()?0:2*(this.S()+this.da())};l.prototype.fk=function(){return(this.C+this.v)/2};l.prototype.Lp=function(){return(this.H+this.F)/2};l.prototype.S=function(){return this.C-this.v};l.prototype.da=function(){return this.H-this.F};l.prototype.move=function(c,a){this.B()||(this.v+=
c,this.F+=a,this.C+=c,this.H+=a)};l.prototype.Gu=function(c,a){if(void 0!==a)this.move(c-this.fk(),a-this.Lp());else if(c instanceof g.h)this.Gu(c.x,c.y);else if(c instanceof g.Ta){a=(this.C-this.v)/2;var b=(this.H-this.F)/2;this.v=c.ug()-a;this.C=c.ug()+a;this.F=c.Qg()-b;this.H=c.Qg()+b}else throw g.i.O();};l.prototype.offset=function(c,a){this.v+=c;this.C+=c;this.F+=a;this.H+=a};l.prototype.normalize=function(){if(!this.B()){var c=Math.min(this.v,this.C),a=Math.max(this.v,this.C);this.v=c;this.C=
a;c=Math.min(this.F,this.H);a=Math.max(this.F,this.H);this.F=c;this.H=a}};l.prototype.fn=function(c){c.oa(this.v,this.F)};l.prototype.VI=function(c){c.oa(this.C,this.F)};l.prototype.YI=function(c){c.oa(this.v,this.H)};l.prototype.gn=function(c){c.oa(this.C,this.H)};l.prototype.ZS=function(){return this.B()||this.v<=this.C&&this.F<=this.H};l.prototype.wf=function(){return g.h.construct((this.C+this.v)/2,(this.H+this.F)/2)};l.prototype.cz=function(){return g.h.construct(this.v,this.F)};l.prototype.contains=
function(c,a){if(void 0!==a)return c>=this.v&&c<=this.C&&a>=this.F&&a<=this.H;if(c instanceof g.Ta)return this.contains(c.ug(),c.Qg());if(c instanceof g.h)return this.contains(c.x,c.y);if(c instanceof l)return c.v>=this.v&&c.C<=this.C&&c.F>=this.F&&c.H<=this.H;throw g.i.O();};l.prototype.jm=function(c,a){if(void 0!==a)return c>this.v&&c<this.C&&a>this.F&&a<this.H;if(c instanceof g.h)return this.jm(c.x,c.y);if(c instanceof l)return c.v>this.v&&c.C<this.C&&c.F>this.F&&c.H<this.H;throw g.i.O();};l.prototype.Nb=
function(c){return c==this?!0:c instanceof l?this.B()&&c.B()?!0:this.v!=c.v||this.F!=c.F||this.C!=c.C||this.H!=c.H?!1:!0:!1};l.prototype.dc=function(){var c=this.v;c=g.P.truncate(c^c>>>32);var a=g.P.Th(c);c=this.C;c=g.P.truncate(c^c>>>32);a=g.P.Th(c,a);c=this.F;c=g.P.truncate(c^c>>>32);a=g.P.Th(c,a);c=this.H;c=g.P.truncate(c^c>>>32);return a=g.P.Th(c,a)};l.prototype.zr=function(){return this.B()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.v)+Math.abs(this.C)+Math.abs(this.F)+Math.abs(this.H)+
1)};l.prototype.oy=function(c,a){var b=this.Yj(c),d=this.Yj(a);if(0!=(b&d))return 0;if(0==(b|d))return 4;var e=(0!=b?1:0)|(0!=d?2:0);do{var f=a.x-c.x,h=a.y-c.y;f>h?0!=(b&l.LC)?(0!=(b&l.gu)?(c.y+=h*(this.v-c.x)/f,c.x=this.v):(c.y+=h*(this.C-c.x)/f,c.x=this.C),b=this.Yj(c)):0!=(d&l.LC)?(0!=(d&l.gu)?(a.y+=h*(this.v-a.x)/f,a.x=this.v):(a.y+=h*(this.C-a.x)/f,a.x=this.C),d=this.Yj(a)):0!=b?(0!=(b&l.hu)?(c.x+=f*(this.F-c.y)/h,c.y=this.F):(c.x+=f*(this.H-c.y)/h,c.y=this.H),b=this.Yj(c)):(0!=(d&l.hu)?(a.x+=
f*(this.F-a.y)/h,a.y=this.F):(a.x+=f*(this.H-a.y)/h,a.y=this.H),d=this.Yj(a)):0!=(b&l.MC)?(0!=(b&l.hu)?(c.x+=f*(this.F-c.y)/h,c.y=this.F):(c.x+=f*(this.H-c.y)/h,c.y=this.H),b=this.Yj(c)):0!=(d&l.MC)?(0!=(d&l.hu)?(a.x+=f*(this.F-a.y)/h,a.y=this.F):(a.x+=f*(this.H-a.y)/h,a.y=this.H),d=this.Yj(a)):0!=b?(0!=(b&l.gu)?(c.y+=h*(this.v-c.x)/f,c.x=this.v):(c.y+=h*(this.C-c.x)/f,c.x=this.C),b=this.Yj(c)):(0!=(d&l.gu)?(a.y+=h*(this.v-a.x)/f,a.x=this.v):(a.y+=h*(this.C-a.x)/f,a.x=this.C),d=this.Yj(a));if(0!=
(b&d))return 0}while(0!=(b|d));return e};l.prototype.Yj=function(c){return(c.x<this.v?1:0)|(c.x>this.C?1:0)<<1|(c.y<this.F?1:0)<<2|(c.y>this.H?1:0)<<3};l.prototype.Bi=function(c){return!this.B()&&(this.S()<=c||this.da()<=c)};l.prototype.vb=function(c){return c instanceof g.h?Math.sqrt(this.dK(c)):Math.sqrt(this.kx(c))};l.prototype.kx=function(c){var a=0,b=0,d=this.v-c.C;d>a&&(a=d);d=this.F-c.H;d>b&&(b=d);d=c.v-this.C;d>a&&(a=d);d=c.F-this.H;d>b&&(b=d);return a*a+b*b};l.prototype.dK=function(c){var a=
0,b=0,d=this.v-c.x;d>a&&(a=d);d=this.F-c.y;d>b&&(b=d);d=c.x-this.C;d>a&&(a=d);d=c.y-this.H;d>b&&(b=d);return a*a+b*b};l.prototype.en=function(c){this.B()?c.Pa():c.L(this.v,this.C)};l.gu=1;l.hu=4;l.LC=3;l.MC=12;return l}();g.l=t})(y||(y={}));(function(g){var t;(function(c){c[c.initialize=0]="initialize";c[c.initializeRed=1]="initializeRed";c[c.initializeBlue=2]="initializeBlue";c[c.initializeRedBlue=3]="initializeRedBlue";c[c.sweep=4]="sweep";c[c.sweepBruteForce=5]="sweepBruteForce";c[c.sweepRedBlueBruteForce=
6]="sweepRedBlueBruteForce";c[c.sweepRedBlue=7]="sweepRedBlue";c[c.sweepRed=8]="sweepRed";c[c.sweepBlue=9]="sweepBlue";c[c.iterate=10]="iterate";c[c.iterateRed=11]="iterateRed";c[c.iterateBlue=12]="iterateBlue";c[c.iterateBruteForce=13]="iterateBruteForce";c[c.iterateRedBlueBruteForce=14]="iterateRedBlueBruteForce";c[c.resetRed=15]="resetRed";c[c.resetBlue=16]="resetBlue"})(t||(t={}));var l=function(){function c(a,b){this.ci=a;this.ZG=b}c.prototype.qr=function(a,b,d){this.ci.AX(d,a,b,this.ZG)};c.prototype.bq=
function(a){return this.ci.Sr(a,this.ZG)};return c}();t=function(){function c(){this.lw=this.po=this.hf=this.td=null;this.yq=new g.l;this.Cm=this.Hj=this.Ij=this.Cd=this.If=this.Nd=this.$v=this.ho=this.sd=this.Fb=null;this.Yb=-1;this.ra=0;this.Mk()}c.prototype.mr=function(){this.Mk();this.Mv=!0;null==this.Fb?(this.ho=new g.ja(0),this.Fb=[]):(this.ho.Ch(0),this.Fb.length=0)};c.prototype.cd=function(a,b){if(!this.Mv)throw g.i.Hb();var d=new g.l;d.L(b);this.ho.add(a);this.Fb.push(d)};c.prototype.Hp=
function(){if(!this.Mv)throw g.i.Hb();this.Mv=!1;null!=this.Fb&&0<this.Fb.length&&(this.Yb=0,this.Kc=!1)};c.prototype.kK=function(){this.Mk();this.Lv=!0;null==this.Fb?(this.ho=new g.ja(0),this.Fb=[]):(this.ho.Ch(0),this.Fb.length=0)};c.prototype.yD=function(a,b){if(!this.Lv)throw g.i.Hb();var d=new g.l;d.L(b);this.ho.add(a);this.Fb.push(d)};c.prototype.$E=function(){if(!this.Lv)throw g.i.Hb();this.Lv=!1;null!=this.Fb&&0<this.Fb.length&&null!=this.sd&&0<this.sd.length&&(-1==this.Yb?this.Yb=3:2==this.Yb?
this.Yb=3:3!=this.Yb&&(this.Yb=1),this.Kc=!1)};c.prototype.jK=function(){this.Mk();this.Kv=!0;null==this.sd?(this.$v=new g.ja(0),this.sd=[]):(this.$v.Ch(0),this.sd.length=0)};c.prototype.uD=function(a,b){if(!this.Kv)throw g.i.Hb();var d=new g.l;d.L(b);this.$v.add(a);this.sd.push(d)};c.prototype.ZE=function(){if(!this.Kv)throw g.i.Hb();this.Kv=!1;null!=this.Fb&&0<this.Fb.length&&null!=this.sd&&0<this.sd.length&&(-1==this.Yb?this.Yb=3:1==this.Yb?this.Yb=3:3!=this.Yb&&(this.Yb=2),this.Kc=!1)};c.prototype.next=
function(){if(this.Kc)return!1;for(var a=!0;a;)switch(this.Yb){case 0:a=this.wz();break;case 1:a=this.lS();break;case 2:a=this.iS();break;case 3:a=this.kS();break;case 4:a=this.LX();break;case 5:a=this.HX();break;case 6:a=this.IX();break;case 7:a=this.JX();break;case 8:a=this.ox();break;case 9:a=this.XB();break;case 10:a=this.Kz();break;case 11:a=this.cT();break;case 12:a=this.$S();break;case 13:a=this.aT();break;case 14:a=this.bT();break;case 15:a=this.fJ();break;case 16:a=this.eJ();break;default:throw g.i.Ra();
}return this.Kc?!1:!0};c.prototype.PB=function(a){this.ra=a};c.prototype.jz=function(a){return this.Fb[a]};c.prototype.Ry=function(a){return this.sd[a]};c.prototype.ol=function(a){return this.ho.read(a)};c.prototype.il=function(a){return this.$v.read(a)};c.Jz=function(a){return 1==(a&1)};c.gq=function(a){return 0==(a&1)};c.prototype.Mk=function(){this.Mv=this.Kv=this.Lv=!1;this.Gf=this.Hf=this.Wg=this.re=-1;this.Kc=!0};c.prototype.wz=function(){this.Ef=this.Zf=-1;if(10>this.Fb.length)return this.re=
this.Fb.length,this.Yb=5,!0;null==this.td&&(this.td=new g.ur(!0),this.po=this.td.getIterator(),this.Nd=new g.ja(0));this.td.mr();for(var a=0;a<this.Fb.length;a++){var b=this.Fb[a];this.td.Dr(b.v,b.C)}this.td.Hp();this.Nd.Jb(2*this.Fb.length);this.Nd.resize(0);for(a=0;a<2*this.Fb.length;a++)this.Nd.add(a);this.Ht(this.Nd,2*this.Fb.length,!0);this.re=2*this.Fb.length;this.Yb=4;return!0};c.prototype.lS=function(){this.Ef=this.Zf=-1;if(10>this.Fb.length||10>this.sd.length)return this.re=this.Fb.length,
this.Yb=6,!0;null==this.td&&(this.td=new g.ur(!0),this.po=this.td.getIterator(),this.Nd=new g.ja(0));this.td.mr();for(var a=0;a<this.Fb.length;a++){var b=this.Fb[a];this.td.Dr(b.v,b.C)}this.td.Hp();this.Nd.Jb(2*this.Fb.length);this.Nd.resize(0);for(a=0;a<2*this.Fb.length;a++)this.Nd.add(a);this.Ht(this.Nd,this.Nd.size,!0);this.re=this.Nd.size;-1!=this.Hf&&(this.Cd.fh(this.Hf),this.Ij.resize(0),this.Hf=-1);this.Yb=7;return this.eJ()};c.prototype.iS=function(){this.Ef=this.Zf=-1;if(10>this.Fb.length||
10>this.sd.length)return this.re=this.Fb.length,this.Yb=6,!0;null==this.hf&&(this.hf=new g.ur(!0),this.lw=this.hf.getIterator(),this.If=new g.ja(0));this.hf.mr();for(var a=0;a<this.sd.length;a++){var b=this.sd[a];this.hf.Dr(b.v,b.C)}this.hf.Hp();this.If.Jb(2*this.sd.length);this.If.resize(0);for(a=0;a<2*this.sd.length;a++)this.If.add(a);this.Ht(this.If,this.If.size,!1);this.Wg=this.If.size;-1!=this.Gf&&(this.Cd.fh(this.Gf),this.Hj.resize(0),this.Gf=-1);this.Yb=7;return this.fJ()};c.prototype.kS=function(){this.Ef=
this.Zf=-1;if(10>this.Fb.length||10>this.sd.length)return this.re=this.Fb.length,this.Yb=6,!0;null==this.td&&(this.td=new g.ur(!0),this.po=this.td.getIterator(),this.Nd=new g.ja(0));null==this.hf&&(this.hf=new g.ur(!0),this.lw=this.hf.getIterator(),this.If=new g.ja(0));this.td.mr();for(var a=0;a<this.Fb.length;a++){var b=this.Fb[a];this.td.Dr(b.v,b.C)}this.td.Hp();this.hf.mr();for(a=0;a<this.sd.length;a++)b=this.sd[a],this.hf.Dr(b.v,b.C);this.hf.Hp();this.Nd.Jb(2*this.Fb.length);this.If.Jb(2*this.sd.length);
this.Nd.resize(0);this.If.resize(0);for(a=0;a<2*this.Fb.length;a++)this.Nd.add(a);for(a=0;a<2*this.sd.length;a++)this.If.add(a);this.Ht(this.Nd,this.Nd.size,!0);this.Ht(this.If,this.If.size,!1);this.re=this.Nd.size;this.Wg=this.If.size;-1!=this.Hf&&(this.Cd.fh(this.Hf),this.Ij.resize(0),this.Hf=-1);-1!=this.Gf&&(this.Cd.fh(this.Gf),this.Hj.resize(0),this.Gf=-1);this.Yb=7;return!0};c.prototype.LX=function(){var a=this.Nd.get(--this.re),b=a>>1;if(c.gq(a))return this.td.remove(b),0==this.re?(this.Ef=
this.Zf=-1,this.Kc=!0,!1):!0;this.po.tB(this.Fb[b].v,this.Fb[b].C,this.ra);this.Zf=b;this.Yb=10;return!0};c.prototype.HX=function(){if(-1==--this.re)return this.Ef=this.Zf=-1,this.Kc=!0,!1;this.Wg=this.Zf=this.re;this.Yb=13;return!0};c.prototype.IX=function(){if(-1==--this.re)return this.Ef=this.Zf=-1,this.Kc=!0,!1;this.Zf=this.re;this.Wg=this.sd.length;this.Yb=14;return!0};c.prototype.JX=function(){var a=this.Nd.get(this.re-1),b=this.If.get(this.Wg-1),d=this.Sr(a,!0),e=this.Sr(b,!1);return d>e?this.ox():
d<e?this.XB():c.Jz(a)?this.ox():c.Jz(b)?this.XB():this.ox()};c.prototype.ox=function(){var a=this.Nd.get(--this.re),b=a>>1;if(c.gq(a))return-1!=this.Hf&&-1!=this.Ij.get(b)?(this.Cd.ld(this.Hf,this.Ij.get(b)),this.Ij.set(b,-1)):this.td.remove(b),0==this.re?(this.Ef=this.Zf=-1,this.Kc=!0,!1):!0;if(-1!=this.Gf&&0<this.Cd.cs(this.Gf))for(a=this.Cd.tc(this.Gf);-1!=a;){var d=this.Cd.getData(a);this.hf.vj(d);this.Hj.set(d,-1);d=this.Cd.mb(a);this.Cd.ld(this.Gf,a);a=d}0<this.hf.size()?(this.lw.tB(this.Fb[b].v,
this.Fb[b].C,this.ra),this.Zf=b,this.Yb=12):(-1==this.Hf&&(null==this.Cd&&(this.Cd=new g.lp),this.Ij=new g.ja(0),this.Ij.resize(this.Fb.length,-1),this.Ij.Wj(-1,0,this.Fb.length),this.Hf=this.Cd.Ph(1)),this.Ij.set(b,this.Cd.addElement(this.Hf,b)),this.Yb=7);return!0};c.prototype.XB=function(){var a=this.If.get(--this.Wg),b=a>>1;if(c.gq(a))return-1!=this.Gf&&-1!=this.Hj.get(b)?(this.Cd.ld(this.Gf,this.Hj.get(b)),this.Hj.set(b,-1)):this.hf.remove(b),0==this.Wg?(this.Ef=this.Zf=-1,this.Kc=!0,!1):!0;
if(-1!=this.Hf&&0<this.Cd.cs(this.Hf))for(a=this.Cd.tc(this.Hf);-1!=a;){var d=this.Cd.getData(a);this.td.vj(d);this.Ij.set(d,-1);d=this.Cd.mb(a);this.Cd.ld(this.Hf,a);a=d}0<this.td.size()?(this.po.tB(this.sd[b].v,this.sd[b].C,this.ra),this.Ef=b,this.Yb=11):(-1==this.Gf&&(null==this.Cd&&(this.Cd=new g.lp),this.Hj=new g.ja(0),this.Hj.resize(this.sd.length,-1),this.Hj.Wj(-1,0,this.sd.length),this.Gf=this.Cd.Ph(0)),this.Hj.set(b,this.Cd.addElement(this.Gf,b)),this.Yb=7);return!0};c.prototype.Kz=function(){this.Ef=
this.po.next();if(-1!=this.Ef)return!1;var a=this.Nd.get(this.re)>>1;this.td.vj(a);this.Yb=4;return!0};c.prototype.cT=function(){this.Zf=this.po.next();if(-1!=this.Zf)return!1;this.Ef=this.Zf=-1;var a=this.If.get(this.Wg)>>1;this.hf.vj(a);this.Yb=7;return!0};c.prototype.$S=function(){this.Ef=this.lw.next();if(-1!=this.Ef)return!1;var a=this.Nd.get(this.re)>>1;this.td.vj(a);this.Yb=7;return!0};c.prototype.aT=function(){if(-1==--this.Wg)return this.Yb=5,!0;this.yq.L(this.Fb[this.re]);var a=this.Fb[this.Wg];
this.yq.Y(this.ra,this.ra);return this.yq.isIntersecting(a)?(this.Ef=this.Wg,!1):!0};c.prototype.bT=function(){if(-1==--this.Wg)return this.Yb=6,!0;this.yq.L(this.Fb[this.re]);var a=this.sd[this.Wg];this.yq.Y(this.ra,this.ra);return this.yq.isIntersecting(a)?(this.Ef=this.Wg,!1):!0};c.prototype.fJ=function(){if(null==this.td)return this.Kc=!0,!1;this.re=this.Nd.size;0<this.td.size()&&this.td.reset();-1!=this.Hf&&(this.Cd.fh(this.Hf),this.Ij.resize(0),this.Hf=-1);this.Kc=!1;return!0};c.prototype.eJ=
function(){if(null==this.hf)return this.Kc=!0,!1;this.Wg=this.If.size;0<this.hf.size()&&this.hf.reset();-1!=this.Gf&&(this.Cd.fh(this.Gf),this.Hj.resize(0),this.Gf=-1);this.Kc=!1;return!0};c.prototype.Ht=function(a,b,d){null==this.Cm&&(this.Cm=new g.Ut);d=new l(this,d);this.Cm.sort(a,0,b,d)};c.prototype.AX=function(a,b,d,e){var f=this;a.Xd(b,d,function(h,k){var m=f.Sr(h,e),n=f.Sr(k,e);return m<n||m==n&&c.gq(h)&&c.Jz(k)?-1:1})};c.prototype.Sr=function(a,b){var d=.5*this.ra;if(b)return b=this.Fb[a>>
1],a=c.gq(a)?b.F-d:b.H+d;b=this.sd[a>>1];return a=c.gq(a)?b.F-d:b.H+d};return c}();g.lC=t})(y||(y={}));(function(g){var t=function(){function l(){}l.construct=function(c,a,b,d,e,f){var h=new l;h.v=c;h.F=a;h.Ze=b;h.C=d;h.H=e;h.Ig=f;return h};l.prototype.Pa=function(){this.Ze=this.v=NaN};l.prototype.B=function(){return isNaN(this.v)};l.prototype.QS=function(){return isNaN(this.Ze)};l.prototype.L=function(c,a,b,d,e,f){void 0!==d?"number"===typeof c?(this.v=c,this.F=a,this.Ze=b,this.C=d,this.H=e,this.Ig=
f):(this.v=c.x-.5*a,this.C=this.v+a,this.F=c.y-.5*b,this.H=this.F+b,this.Ze=c.z-.5*d,this.Ig=this.Ze+d):(this.v=c,this.F=a,this.Ze=b,this.C=c,this.H=a,this.Ig=b)};l.prototype.move=function(c){this.v+=c.x;this.F+=c.y;this.Ze+=c.z;this.C+=c.x;this.H+=c.y;this.Ig+=c.z};l.prototype.copyTo=function(c){c.v=this.v;c.F=this.F;c.C=this.C;c.H=this.H};l.prototype.Kk=function(c,a,b){this.v>c?this.v=c:this.C<c&&(this.C=c);this.F>a?this.F=a:this.H<a&&(this.H=a);0==isNaN(this.Ze)?this.Ze>b?this.Ze=b:this.Ig<b&&
(this.Ig=b):this.Ig=this.Ze=b};l.prototype.$b=function(c,a,b){if("number"===typeof c)this.B()?(this.v=c,this.F=a,this.Ze=b,this.C=c,this.H=a,this.Ig=b):this.Kk(c,a,b);else if(c instanceof g.Pd)this.$b(c.x,c.y,c.z);else if(c instanceof l)c.B()||(this.$b(c.v,c.F,c.Ze),this.$b(c.C,c.H,c.Ig));else throw g.i.O();};l.prototype.construct=function(c,a,b){c.B()||a.B()?this.Pa():(this.v=c.ma,this.C=c.sa,this.F=a.ma,this.H=a.sa,this.Ze=b.ma,this.Ig=b.sa)};l.prototype.cB=function(c){if(null==c||8>c.length)throw g.i.O();
c[0]=new g.Pd(this.v,this.F,this.Ze);c[1]=new g.Pd(this.v,this.H,this.Ze);c[2]=new g.Pd(this.C,this.H,this.Ze);c[3]=new g.Pd(this.C,this.F,this.Ze);c[4]=new g.Pd(this.v,this.F,this.Ig);c[5]=new g.Pd(this.v,this.H,this.Ig);c[6]=new g.Pd(this.C,this.H,this.Ig);c[7]=new g.Pd(this.C,this.F,this.Ig)};l.prototype.Xw=function(c){if(null==c||0==c.length)this.Pa();else{var a=c[0];this.L(a.x,a.y,a.z);for(a=1;a<c.length;a++){var b=c[a];this.Kk(b.x,b.y,b.z)}}};return l}();g.JK=t})(y||(y={}));(function(g){(function(t){t.Ra=
function(){var l=Error();l.message="Internal Error";return l};t.He=function(){var l=Error();l.message="Not Implemented";return l};t.Xk=function(){var l=Error();l.message="The input unit and the spatial reference unit are not of the same unit type.ie Linear vs.Angular";return l};t.Hb=function(){var l=Error();l.message="Invalid Call";return l};t.O=function(l){var c=Error();c.message="Illegal Argument Exception";void 0!==l&&(c.message+=": "+l);return c};t.cu=function(l){var c=Error();c.message=void 0!==
l?"Runtime Exception: "+l:"Runtime Exception.";return c};t.ga=function(l){var c=Error();c.message="Geometry Exception: "+l;return c};t.BK=function(){var l=Error();l.message="Assert Failed Exception";return l};t.te=function(){var l=Error();l.message="IndexOutOfBoundsException";return l};t.JC=function(){var l=Error();l.message="UserCancelException";return l}})(g.i||(g.i={}))})(y||(y={}));(function(g){g=g.cm||(g.cm={});g[g.forward=0]="forward";g[g.reverse=1]="reverse"})(y||(y={}));(function(g){var t=
function(){function a(b,d){this.Xa=b;this.AH=d;this.GH=-1;this.tl=!1}a.prototype.se=function(){};a.prototype.next=function(){if(++this.GH==this.AH.I())return null;var b=this.AH.Oa(this.GH);b.scale(this.Xa.hc);var d=new g.Ea;this.Xa.hy(b,this.tl,d);return d};a.prototype.Ma=function(){return 0};return a}(),l=function(){function a(b,d,e){this.Xa=b;this.ow=d;this.Yn=!1;this.eo=e;this.Zv=[0];this.rk=[0];this.Nj=[0];this.Ds=[0];this.tl=!1;this.sq=new g.Ea;this.tk=[]}a.prototype.se=function(){};a.prototype.next=
function(){if(this.Yn){this.Yn=!1;this.ud.ia();var b=g.ba.mg(this.sq);return b=g.Lg.Lk(b,this.Xa.Cq,!0,!0,this.Xa.Vb)}null==this.ud&&(this.ud=this.ow.Ha(),this.ud.ab(),null!=this.eo&&this.eo.Yk(null,0));if(!this.ud.Ia()){if(!this.ud.ab())return null;null!=this.eo&&this.eo.Yk(null,0)}b=null;this.rk[0]=0;this.uA=this.Zv[0]=0;this.di=NaN;this.Yn=!1;for(var d=this.tk.length=0,e=new g.h,f=new g.h,h=[0];this.ud.Ia()&&8>this.uA;){var k=this.ud.ia();e.N(k.bc());f.N(k.yc());e.scale(this.Xa.hc);f.scale(this.Xa.hc);
g.cj.Ku(e,f)?e.x=f.x:g.cj.Iu(e,f)&&(f.x=e.x);this.tk.length=0;g.cj.mF(this.Xa.Ub,this.Xa.mc,this.Xa.Ce,e,f,this.Xa.FA,this.Xa.Ws,h,this.Nj,this.Ds,this.tk,this.Zv);null!=this.eo&&(k=this.tk.slice(0),this.eo.lG(this.eo.ea()-1,k,k.length-1));g.cj.Ju(e,f)?(this.sq.Pa(),this.Xa.hy(e,this.tl,this.sq),this.Yn=!0):(this.sq.Pa(),this.Yn=this.my(h[0],this.sq));if(this.Yn){this.ud.li();if(this.ud.uz()){this.ud.li();this.ud.ia();break}this.ud.vW();break}null==b&&(b=new g.Ea,b.Yk(null,0));this.DD(b);d++}this.Zv[0]=
0;if(0<d){for(h=this.ud.xb();0<d;)this.ud.li(),e.N(this.ow.Oa(this.ud.xb())),f.N(this.ow.Oa(this.ud.hk())),e.scale(this.Xa.hc),f.scale(this.Xa.hc),this.tl&&(g.cj.Ku(e,f)?e.x=f.x:g.cj.Iu(e,f)&&(f.x=e.x)),this.tk.length=0,g.cj.mF(this.Xa.Ub,this.Xa.mc,this.Xa.Ce,f,e,this.Xa.FA,this.Xa.Ws,null,this.Nj,this.Ds,this.tk,this.Zv),this.DD(b),d--;e.N(this.ow.Oa(this.ud.xb()));e.scale(this.Xa.hc);c.Jr(this.Xa.Ub,this.Xa.mc,this.Xa.hc,this.Xa.tb,e,this.di+1.570796326794897,this.di+4.71238898038469,this.Xa.bo,
this.tl,this.rk,b,NaN,NaN);this.ud.Wb(h);this.ud.ia();d=g.ua.kj(null,b,!0);return b=g.Lg.Lk(b,d,!0,!0,this.Xa.Vb)}this.Yn=!1;this.ud.ia();b=g.ba.mg(this.sq);return b=g.Lg.Lk(b,this.Xa.Cq,!0,!0,this.Xa.Vb)};a.prototype.DD=function(b){var d=this.tk[0],e=this.Nj[0]-1.570796326794897,f=this.Ds[0]+1.570796326794897;if(!isNaN(this.di)){if(this.di>=this.Nj[0]){var h=this.di+1.570796326794897;e=h+3.141592653589793-(this.di-this.Nj[0])}else h=this.di+1.570796326794897,e=h+3.141592653589793-(6.283185307179586-
(this.Nj[0]-this.di));var k=this.di>=this.Nj[0]&&3.141592653589793>=this.di-this.Nj[0]?!1:this.di<this.Nj[0]&&3.141592653589793<=this.Nj[0]-this.di?!1:!0,m=!1;if(Math.abs(e-h)<=.5*this.Xa.bo)if(k){var n=b.Oa(b.I()-2);n.scale(this.Xa.hc);var p=new g.ha(0);g.kb.Ny(this.Xa.Ub,this.Xa.mc,d.x,d.y,n.x,n.y,p);for(n=p.u;n<=h;)n+=6.283185307179586;for(;n>h;)n-=6.283185307179586;n<e&&(m=!0)}else m=!0;m?(b.sB(0,b.I()-1),this.tl||(d=new g.h,d.N(b.Oa(b.I()-1)),d.scale(this.Xa.hc),-3.141592653589793>d.x-this.rk[0]?
this.rk[0]-=6.283185307179586:3.141592653589793<d.x-this.rk[0]&&(this.rk[0]+=6.283185307179586)),k||(e=.5*(e+h))):(k?(h=new g.h,h.N(d),h.scale(1/this.Xa.hc),b.Af(0,-1,h)):c.Jr(this.Xa.Ub,this.Xa.mc,this.Xa.hc,this.Xa.tb,this.tk[0],h,e,this.Xa.bo,this.tl,this.rk,b,NaN,NaN),this.uA+=1)}c.gy(this.Xa.Ub,this.Xa.mc,this.Xa.hc,this.Xa.tb,this.Xa.Ce,this.tk,e,f,this.tl,this.rk,b);this.di=this.Ds[0]};a.prototype.my=function(b,d){return this.Xa.my(this.tk,b,this.Nj[0],this.Ds[0],this.tl,d)};a.prototype.Ma=
function(){return 0};return a}(),c=function(){function a(){}a.buffer=function(b,d,e,f,h,k){if(null==b)throw g.i.O("Geometry::Geodesic_bufferer::buffer");if(b.B())return new g.Ea(b.description);var m=new a;m.Vg=d;m.Lc=g.cb.uc(d);var n=g.cb.sv(m.Lc);m.Vb=k;m.Ub=g.cb.bv(m.Lc);m.mc=n*(2-n);m.hc=m.Lc.Jd().ai;m.ra=m.Vg.Ln();m.Cq=m.Lc.Ln();m.Ws=m.Cq*m.hc;m.Bq=1.570796326794897/m.hc;m.FY=3.141592653589793/m.hc;m.Gs=6.283185307179586/m.hc;m.GY=m.Gs/6;m.AA=0;m.EY=1.5707963267948966*m.Ub/m.AA;4==e?(m.Ce=2,m.Tv=
!0):(m.Ce=e,m.Tv=!1);m.La=f;m.tb=Math.abs(f);isNaN(h)||.001>h?m.oX():m.ao=h;e=b.K();g.ba.Ad(e)?(e=new g.Ua(b.description),e.pc(b,!0),b=e,e=1607):197==e&&(e=new g.l,b.A(e),e.S()<=m.ra||e.da()<=m.ra?(e=new g.Ua(b.description),e.cd(b,!1),b=e,e=1607):(e=new g.Ea(b.description),e.cd(b,!1),b=e,e=1736));m.pX();g.ba.Sn(e)||m.qX();if(m.tb<=.5*m.ao)return 1736!=e?new g.Ea(b.description):m.Tv?b:g.cj.Rr(b,m.Vg,m.Ce,m.FA,-1,k);if(0>m.La&&1736!=e)return new g.Ea(b.description);m.Tv&&g.ba.Jc(e)?(d=g.cj.Rr(b,d,4,
NaN,m.ao,k),b=g.cb.Ah(d,m.Vg,m.Lc)):b=g.cb.Ah(b,m.Vg,m.Lc);b=g.Ih.lj(b,m.Lc);if(b.B())return new g.Ea(b.description);!m.Tv&&g.ba.Jc(e)&&(b=g.cj.kI(m.hc,b));b=a.BX(b,m.Lc);switch(e){case 1736:d=m.TN(b);break;case 1607:d=m.UN(b);break;case 550:d=m.RN(b);break;case 33:d=m.SN(b);break;default:throw g.i.ga("corrupted_geometry");}m=g.cb.Ah(d,m.Lc,m.Vg);m.Kl(b.description);return m};a.prototype.TN=function(b){var d=new g.Ea;b=new l(this,b,d);b=g.Hh.local().X(b,this.Lc,this.Vb).next();b=g.jp.nj(b,this.Lc,
2);var e=new g.Fd;e.scale(1/this.hc,1/this.hc);d.Rc(e);d=g.jp.nj(d,this.Lc,2);return 0<=this.La?g.Hh.local().X(d,b,this.Lc,this.Vb):g.mp.local().X(d,b,this.Lc,this.Vb)};a.prototype.UN=function(b){b=new l(this,b,null);b=g.Hh.local().X(b,this.Lc,this.Vb).next();return b=g.jp.nj(b,this.Lc,2)};a.prototype.RN=function(b){b=new t(this,b);b=g.Hh.local().X(b,this.Lc,this.Vb).next();return b=g.jp.nj(b,this.Lc,2)};a.prototype.SN=function(b){b=b.D();b.scale(this.hc);var d=new g.Ea;this.hy(b,!1,d);return d=g.jp.nj(d,
this.Lc,2)};a.prototype.my=function(b,d,e,f,h,k){var m=b[0],n=b[b.length-1],p=m.y>n.y?m.y:n.y,q=g.G.q(this.Ub,this.mc,m.y<n.y?m.y:n.y);p=g.G.q(this.Ub,this.mc,p);if(.001<this.AA-(q+d+this.tb)&&.001<this.AA+(p-d-this.tb))return!1;d=e-1.570796326794897;e=f+1.570796326794897;q=d-3.141592653589793;p=d+3.141592653589793;var r=e+3.141592653589793,u=[NaN],v=[NaN],w=[NaN],z=[NaN];f=!1;a.ZI(this.Ub,this.mc,this.tb,m,d,q,n,e,u,v);a.ZI(this.Ub,this.mc,this.tb,n,r,e,m,q,w,z);e<u[0]&&u[0]<r?f=!0:e<v[0]&&v[0]<
r&&(f=!0);f||(q<w[0]&&w[0]<d?f=!0:q<z[0]&&z[0]<d&&(f=!0));if(!f&&h)return!1;for(var x=[],A=b.length-1;0<=A;A--)x.push(b[A]);k.Pa();k.Yk(null,0);A=[0];a.gy(this.Ub,this.mc,this.hc,this.tb,this.Ce,b,d,e,h,A,k);a.Jr(this.Ub,this.mc,this.hc,this.tb,n,e,r,this.bo,h,A,k,u[0],v[0]);a.gy(this.Ub,this.mc,this.hc,this.tb,this.Ce,x,r,p,h,A,k);a.Jr(this.Ub,this.mc,this.hc,this.tb,m,q,d,this.bo,h,A,k,w[0],z[0]);b=!1;h||(b=this.yE(this.hc,k));return f||b};a.prototype.hy=function(b,d,e){e.Pa();e.Yk(null,0);a.Jr(this.Ub,
this.mc,this.hc,this.tb,b,-this.bo,6.283185307179586,this.bo,d,[0],e,NaN,NaN);d||this.yE(this.hc,e)};a.prototype.yE=function(b,d){var e=this.uO(b,d);b=this.vO(b,d);return e||b};a.prototype.uO=function(b,d){var e=d.I(),f=!1,h=new g.l;d.A(h);if(!g.s.aa(h.H*b,1.570796326794897)&&!g.s.aa(h.F*b,-1.570796326794897))return!1;var k=new g.h;for(--e;0<=e;e--)d.D(e,k),k.y==h.H&&g.s.aa(k.y*b,1.570796326794897)?(f=!0,this.JI(k,e,d)):k.y==h.F&&g.s.aa(k.y*b,-1.570796326794897)&&(f=!0,this.JI(k,e,d));return f};a.prototype.vO=
function(b,d){var e=d.Oa(0),f=d.Oa(d.I()-1);return 3.141592653589793<Math.abs(e.x-f.x)*b?(this.OV(d),!0):this.tO(d)};a.prototype.tO=function(b){return 0>b.Je()?(this.NV(b),!0):!1};a.prototype.JI=function(b,d,e){var f=e.I(),h=0<d?d-1:f-1;f=e.Oa(d<f-1?d+1:0);h=e.Oa(h);if(!g.s.aa(f.y,b.y)&&!g.s.aa(f.x,b.x)){var k=new g.h;k.oa(f.x,b.y);e.Db(d,k)}g.s.aa(h.y,b.y)||g.s.aa(h.x,b.x)||(f=new g.h,f.oa(h.x,b.y),e.Af(0,d,f))};a.prototype.OV=function(b){var d=new g.Ea,e=new g.Ea,f=new g.Fd,h=b.Oa(0),k=b.Oa(b.I()-
1),m=new g.h;h.x>k.x?(k=this.Bq,f.kg(-this.Gs,0)):(k=-this.Bq,f.kg(this.Gs,0));d.add(b,!1);b.Pa();e.add(d,!1);e.Rc(f);h=new g.l;e.A(h);h.Y((this.Gs-h.S())/2,0);h.F=-this.Bq;h.H=this.Bq;for(var n=0;n<e.I();n++)e.D(n,m),d.Af(0,-1,m);e.Rc(f);for(n=0;n<e.I();n++)e.D(n,m),d.Af(0,-1,m);e=d.Oa(0);f=d.Oa(d.I()-1);m.oa(f.x,k);d.Af(0,-1,m);m.oa(.5*(f.x+e.x),k);d.Af(0,-1,m);m.oa(e.x,k);d.Af(0,-1,m);d=g.Ih.gs(d,this.Lc,2,!0,h.v);d=g.Ih.gs(d,this.Lc,2,!0,h.C);d=g.Wd.clip(d,h,this.Cq,NaN);b.add(d,!1)};a.prototype.NV=
function(b){var d=new g.l;b.A(d);d.Y((this.Gs-d.S())/2,0);d.F=-this.Bq;d.H=this.Bq;b.Yk(null,0);var e=new g.h;e.oa(d.v,d.F);b.Af(1,-1,e);e.oa(d.v,d.H);b.Af(1,-1,e);e.oa(.5*(d.v+d.C),d.H);b.Af(1,-1,e);e.oa(d.C,d.H);b.Af(1,-1,e);e.oa(d.C,d.F);b.Af(1,-1,e);e.oa(.5*(d.v+d.C),d.F);b.Af(1,-1,e)};a.gy=function(b,d,e,f,h,k,m,n,p,q,r){var u=null;p||(u=new g.h,u.Uc(),0<r.I()&&(u.N(r.Oa(r.I()-1)),u.scale(e)));var v=new g.ha(0),w=new g.ha(0),z=new g.ha(0),x=new g.h,A=new g.h,B=k[k.length-1];e=1/e;for(var C=0;C<
k.length;C++){var D=k[C];if(0==C)var G=m;else C==k.length-1?G=n:(g.kb.yd(b,d,B.x,B.y,D.x,D.y,null,null,v,h),G=v.u-1.570796326794897);g.kb.yi(b,d,D.x,D.y,f,G,w,z);p?A.oa(w.u,z.u):(x.oa(w.u,z.u),a.bJ(D.x,x.x,u.x,q),A.oa(q[0]+x.x,x.y),u.N(A));A.scale(e);r.Af(0,-1,A)}};a.Jr=function(b,d,e,f,h,k,m,n,p,q,r,u,v){if(!(m-k<n)){var w=new g.ha(0),z=new g.ha(0),x=new g.h,A=new g.h,B=null;p||(B=new g.h,B.Uc(),0<r.I()&&(B.N(r.Oa(r.I()-1)),B.scale(e)));var C=g.P.truncate(Math.ceil(k/n)),D=C++*n;D==k&&(D=C++*n);
for(e=1/e;D<m+n;){k<u&&u<D?(D=u,C--):k<v&&v<D&&(D=v,C--);if(D>=m)break;g.kb.yi(b,d,h.x,h.y,f,D,w,z);p?A.oa(w.u,z.u):(x.oa(w.u,z.u),a.bJ(h.x,x.x,B.x,q),A.oa(q[0]+x.x,x.y),B.N(A));A.scale(e);r.Af(0,-1,A);k=D;D=C++*n}}};a.ZI=function(b,d,e,f,h,k,m,n,p,q){var r=new g.h,u=new g.h,v=new g.ha(0),w=new g.ha(0);g.kb.yi(b,d,f.x,f.y,e,h,v,w);r.oa(v.u,w.u);g.kb.yi(b,d,f.x,f.y,e,k,v,w);u.oa(v.u,w.u);e=new g.ha(0);g.kb.Ny(b,d,m.x,m.y,r.x,r.y,e);p[0]=e.u;g.kb.Ny(b,d,m.x,m.y,u.x,u.y,e);for(q[0]=e.u;p[0]<=q[0];)p[0]+=
6.283185307179586;for(;p[0]>q[0];)p[0]-=6.283185307179586;for(;p[0]>=n;)p[0]-=6.283185307179586,q[0]-=6.283185307179586;for(;p[0]<n;)p[0]+=6.283185307179586,q[0]+=6.283185307179586};a.bJ=function(b,d,e,f){if(isNaN(e)){for(;3.141592653589793<f[0]+d-b;)f[0]-=6.283185307179586;for(;3.141592653589793<b-(f[0]+d);)f[0]+=6.283185307179586}else 3.141592653589793<f[0]+d-e?f[0]-=6.283185307179586:3.141592653589793<e-(f[0]+d)&&(f[0]+=6.283185307179586)};a.BX=function(b,d){var e=b.K(),f=g.ba.Jc(e)?b.ea():550==
e?b.I():1;if(1==f)return b;var h=new g.ja(0);h.resize(f);for(var k=[],m=new g.l,n=0;n<f;n++){h.write(n,n);if(g.ba.Jc(e)){b.Rj(n,m);var p=m.wf()}else p=b.Oa(n);p=g.SK.RX(d,p);k[n]=p}h.Xd(0,h.size,function(q,r){return k[q]<k[r]?-1:k[q]>k[r]?1:0});d=b.Ja();for(n=0;n<f;n++)m=h.read(n),g.ba.Jc(e)?d.addPath(b,m,!0):d.Hd(b,m,m+1);return d};a.prototype.pX=function(){var b=Math.min(3.141592653589793*this.Ub-this.tb,this.tb);b=Math.min(b,.39269908169872414*this.Ub);var d=new g.h;d.oa(0,10*this.hc);var e=45*
this.hc,f=new g.ha(0),h=new g.ha(0),k=new g.ha(0),m=new g.ha(0),n=new g.ha(0),p=new g.ha(0),q=new g.ha(0),r=new g.ha(0),u=new g.h,v=new g.h,w=new g.h,z=new g.h;g.kb.yi(this.Ub,this.mc,d.x,d.y,b,0,f,h);u.oa(f.u,h.u);g.kb.yi(this.Ub,this.mc,d.x,d.y,b,e,k,m);v.oa(k.u,m.u);f=new g.ha(0);h=new g.ha(0);for(var x=new g.ha(0);;){g.kb.yi(this.Ub,this.mc,d.x,d.y,b,.5*(0+e),n,p);w.oa(n.u,p.u);g.kb.yd(this.Ub,this.mc,u.x,u.y,v.x,v.y,f,h,null,2);g.kb.oj(this.Ub,this.mc,u.x,u.y,.5*f.u,h.u,q,r,2);z.oa(q.u,r.u);
g.kb.yd(this.Ub,this.mc,w.x,w.y,z.x,z.y,x,null,null,2);if(x.u<=this.ao)break;e*=.9;g.kb.yi(this.Ub,this.mc,d.x,d.y,b,e,k,m);v.oa(k.u,m.u)}this.bo=6.283185307179586/Math.ceil(6.283185307179586/(e-0))};a.prototype.qX=function(){var b=Math.min(3.141592653589793*this.Ub-this.tb,this.tb);b=Math.min(b,.39269908169872414*this.Ub);var d=new g.h,e=new g.h;d.oa(0,10*this.hc);e.oa(10*this.hc,10*this.hc);var f=new g.ha(0),h=new g.ha(0),k=new g.ha(0);g.kb.yd(this.Ub,this.mc,d.x,d.y,e.x,e.y,k,f,h,this.Ce);var m=
new g.ha(0),n=new g.ha(0),p=new g.ha(0),q=new g.ha(0),r=new g.h,u=new g.ha(0),v=new g.ha(0),w=new g.ha(0),z=new g.ha(0),x=new g.ha(0),A=new g.ha(0),B=new g.ha(0),C=new g.ha(0),D=new g.ha(0),G=new g.h,H=new g.h,K=new g.h,J=new g.h,S=1;f=f.u;h=h.u+1.570796326794897;k=k.u;g.kb.yi(this.Ub,this.mc,d.x,d.y,b,f-1.570796326794897,v,w);G.oa(v.u,w.u);g.kb.yi(this.Ub,this.mc,e.x,e.y,b,h,z,x);H.oa(z.u,x.u);v=new g.ha(0);w=new g.ha(0);h=new g.ha(0);for(var R=new g.ha(0);;){g.kb.oj(this.Ub,this.mc,d.x,d.y,.5*(0+
S)*k,f,m,n,this.Ce);r.oa(m.u,n.u);g.kb.yd(this.Ub,this.mc,d.x,d.y,r.x,r.y,null,null,u,this.Ce);g.kb.yi(this.Ub,this.mc,r.x,r.y,b,u.u+1.570796326794897,A,B);K.oa(A.u,B.u);g.kb.yd(this.Ub,this.mc,G.x,G.y,H.x,H.y,v,w,null,2);g.kb.oj(this.Ub,this.mc,G.x,G.y,.5*v.u,w.u,C,D,2);J.oa(C.u,D.u);g.kb.yd(this.Ub,this.mc,K.x,K.y,J.x,J.y,h,null,null,2);if(h.u<=this.ao)break;S*=.9;g.kb.oj(this.Ub,this.mc,d.x,d.y,S*k,f,p,q,this.Ce);e.oa(p.u,q.u);g.kb.yd(this.Ub,this.mc,d.x,d.y,e.x,e.y,null,null,R,this.Ce);g.kb.yi(this.Ub,
this.mc,e.x,e.y,b,R.u+1.570796326794897,z,x);H.oa(z.u,x.u)}b=S*k;1E5<b&&(b=1E5);this.FA=b};a.prototype.oX=function(){var b=5E4<this.tb?100:1E4<this.tb?10:1;500>this.tb/b&&(b=this.tb/500);.01>b&&(b=.01);this.ao=b};return a}();g.QK=c})(y||(y={}));(function(g){var t=function(){function l(){}l.Rf=function(c,a){var b=new g.h;b.N(a);c.push(b)};l.wp=function(c,a){c.add(a.x);c.add(a.y)};l.XA=function(c){c.Ch(c.size-2)};l.dB=function(c,a){a.oa(c.get(c.size-2),c.get(c.size-1))};l.Rr=function(c,a,b,d,e,f){if(null==
c)throw g.i.O();var h=c.K();if(c.B()||g.ba.Sn(h))return c;var k=new l;k.Vg=a;k.Lc=g.cb.uc(a);var m=g.cb.sv(k.Lc);k.Vb=f;k.Ub=g.cb.bv(k.Lc);k.mc=m*(2-m);k.hc=k.Lc.Jd().ai;k.Cq=k.Lc.Ln();k.Ws=k.Cq*k.hc;k.pA=d;k.oA=e;k.Ce=b;197==h?(b=new g.Ea(c.description),b.cd(c,!1)):g.ba.Ad(h)?(b=new g.Ua(c.description),b.pc(c,!0)):b=c;if(4!=k.Ce){a=0==k.Vg.Nb(k.Lc)?g.cb.Ah(b,k.Vg,k.Lc):g.Ih.lj(b,k.Lc);if(a.B())return a;a=l.kI(k.hc,a);a=k.Py(a);a=g.jp.nj(a,k.Lc,k.Ce);k=g.cb.Ah(a,k.Lc,k.Vg)}else{2==g.tf.Tb(a)?(c=g.cb.nl(),
a=g.Vk.local().X(b,c,a,f),a==c&&(a=new g.Ea,c.copyTo(a))):a=g.Ih.lj(b,k.Lc);if(a.B())return a;k=k.tX(a)}return k};l.kI=function(c,a){var b=new g.l;a.zc(b);if(3.141592653589793>b.S()*c)return a;var d=!1;b=a.Ha();for(var e=new g.h,f=new g.h;b.ab();)for(;b.Ia();){var h=b.ia();e.N(h.bc());f.N(h.yc());e.scale(c);f.scale(c);if(3.141592653589793<Math.abs(e.x-f.x)){var k=l.Ju(e,f);if(!k){d=!0;break}if(6.283185307179586<Math.abs(e.x-f.x)){d=!0;break}}}if(!d)return a;d=a.Ja();var m=1<a.description.Ba,n=new g.h,
p=new g.h,q=new g.h,r=new g.h,u=new g.Ta;for(b.Zi();b.ab();)for(var v=NaN,w=[0];b.Ia();){h=b.ia();e.N(h.bc());f.N(h.yc());e.scale(c);f.scale(c);isNaN(v)?(l.Wi(e.x,NaN,w),p.N(e)):p.N(q);v=p.x;if(k=l.Ju(e,f)){if(6.283185307179586<f.x-e.x)for(;6.283185307179586<f.x-e.x;)f.x-=6.283185307179586;if(-6.283185307179586>f.x-e.x)for(;-6.283185307179586>f.x-e.x;)f.x+=6.283185307179586;l.Wi(f.x,NaN,w);q.N(f)}else n.N(f),l.tU(n),l.Wi(n.x,v,w),q.oa(w[0]+n.x,n.y);.5>Math.abs(q.x-f.x)&&q.N(f);m?(h.Qw(0,u),r.N(p),
r.scale(1/c),u.Db(r),(k=b.xm())?d.qf(u):d.lineTo(u),b.Rn()&&!a.ec(b.gb)&&(h.Qw(1,u),r.N(q),r.scale(1/c),u.Db(r),d.lineTo(u))):((k=b.xm())&&d.xz(null,0),h=d.ea()-1,r.N(p),r.scale(1/c),d.Af(h,-1,r),b.Rn()&&!a.ec(b.gb)&&(r.N(q),r.scale(1/c),d.Af(h,-1,r)))}return d};l.mF=function(c,a,b,d,e,f,h,k,m,n,p,q){var r=new g.h,u=new g.h,v=0<d.compare(e);l.aJ(v,d,e,r,u);l.nF(c,a,b,r,u,f,NaN,h,k,m,n,null,p,q);v&&l.UB(m,n,null,p)};l.prototype.Py=function(c){var a=c.Ja(),b=c.Ha(),d=[],e=null,f=null,h=1<c.description.Ba;
h&&(e=new g.ee(0),f=new g.lg);for(var k=[0],m=new g.h,n=new g.h,p=new g.h,q=new g.h;b.ab();)for(k[0]=0;b.Ia();){var r=b.ia();m.N(r.bc());n.N(r.yc());m.scale(this.hc);n.scale(this.hc);var u=0<m.compare(n);l.aJ(u,m,n,p,q);d.length=0;null!=e&&e.Ch(0);0<this.pA?l.nF(this.Ub,this.mc,this.Ce,p,q,this.pA,this.oA,this.Ws,null,null,null,h?e:null,d,k):l.XQ(this.Ub,this.mc,this.Ce,p,q,this.oA,this.Ws,h?e:null,d,k);u&&l.UB(null,null,h?e:null,d);d[0].N(r.bc());d[d.length-1].N(r.yc());for(var v=1;v<d.length-1;v++)d[v].scale(1/
this.hc);h?(u=l.$I(u,r,f),l.JD(b.xm(),b.Rn()&&!c.ec(b.gb),r,u,e,d,a)):l.HD(b.xm(),b.Rn()&&!c.ec(b.gb),d,a)}return a};l.prototype.tX=function(c){var a=c.Ja(),b=c.Ha(),d=[],e=null,f=new g.lg,h=1<c.description.Ba;for(h&&(e=new g.ee(0));b.ab();)for(;b.Ia();){var k=b.ia(),m=k.bc(),n=k.yc();m=0<m.compare(n);n=l.$I(m,k,f);d.length=0;null!=e&&e.Ch(0);l.sX(this.Ub,this.mc,this.hc,n,this.Vg,this.pA,this.oA,h?e:null,d);m&&l.UB(null,null,h?e:null,d);h?l.JD(b.xm(),b.Rn()&&!c.ec(b.gb),k,n,e,d,a):l.HD(b.xm(),b.Rn()&&
!c.ec(b.gb),d,a)}return a};l.HD=function(c,a,b,d){c&&d.xz(null,0);c=d.ea()-1;var e=b.slice(0);d.lG(c,e,e.length-1);a&&d.Af(c,-1,b[b.length-1])};l.JD=function(c,a,b,d,e,f,h){var k=new g.Ta;b.Uo(k);c?h.qf(k):h.lineTo(k);if(2<f.length){c=d.Rb();for(var m=1;m<f.length-1;m++){var n=d.IG(e.get(m)*c);d.Qw(n,k);k.Db(f[m]);h.lineTo(k)}}a&&(b.Qo(k),h.lineTo(k))};l.nF=function(c,a,b,d,e,f,h,k,m,n,p,q,r,u){var v=new g.ha(0),w=new g.ha(0),z=new g.ha(0);g.kb.yd(c,a,d.x,d.y,e.x,e.y,z,v,w,b);z=z.u;var x=v=v.u;w=
w.u;0>x&&(x+=6.283185307179586);0>w&&(w+=6.283185307179586);null!=m&&(m[0]=z);null!=n&&(n[0]=x);null!=p&&(p[0]=w);n=m=NaN;null!=q&&(n=g.G.Bh(c,a),p=g.G.q(c,a,d.y),m=(n-p)/z,n=(n+p)/z);p=l.Ku(d,e);w=l.Iu(d,e);x=p||w;var A=l.vE(d,e,k),B=new g.ha(0),C=new g.ha(0),D=new g.h,G=new g.h,H=new g.h;l.Wi(d.x,NaN,u);var K=[u[0]];if(z<=f)l.Rf(r,d),l.Wi(e.x,NaN,u),null!=q&&q.add(0),x?(p&&l.$A(d,e,q,r),w&&l.YA(d,e,q,r)):A?l.ZA(d,e,v,m,n,q,r):0<h&&(G.oa(d.x-K[0],d.y),D.oa(e.x-u[0],e.y),l.Oy(c,a,b,d,z,v,G,D,0,1,
h,q,r,K)),l.Rf(r,e);else{f=1+g.P.truncate(Math.ceil(z/f));var J=z/(f-1),S=new g.h,R=0;l.Rf(r,d);S.N(d);G.oa(d.x-u[0],d.y);null!=q&&q.add(0);for(var V=1;V<f;V++){if(V<f-1){g.kb.oj(c,a,d.x,d.y,V*J,v,B,C,b);D.oa(B.u,C.u);l.Wi(D.x,S.x,u);H.oa(u[0]+D.x,D.y);var W=V/(f-1)}else l.Wi(e.x,NaN,u),D.oa(e.x-u[0],e.y),H.N(e),W=1;x?(1==V&&p&&l.$A(d,H,q,r),V==f-1&&w&&l.YA(S,e,q,r)):A?l.uE(S,H,k)&&(d.x<e.x?S.x>H.x&&(u[0]+=6.283185307179586,H.oa(u[0]+D.x,D.y)):S.x<H.x&&(u[0]-=6.283185307179586,H.oa(u[0]+D.x,D.y)),
l.ZA(S,H,v,m,n,q,r)):0<h&&l.Oy(c,a,b,d,z,v,G,D,R,W,h,q,r,K);l.Rf(r,H);null!=q&&q.add(W);S.N(H);G.N(D);K[0]=u[0];R=W}}};l.XQ=function(c,a,b,d,e,f,h,k,m,n){var p=new g.ha(0),q=new g.ha(0),r=new g.ha(0);g.kb.yd(c,a,d.x,d.y,e.x,e.y,r,p,q,b);q=r.u;p=p.u;var u=r=NaN;if(null!=k){u=g.G.Bh(c,a);var v=g.G.q(c,a,d.y);r=(u-v)/q;u=(u+v)/q}v=l.Ku(d,e);var w=l.Iu(d,e),z=v||w;h=l.vE(d,e,h);var x=l.Ju(d,e);x=z||h||x;l.Wi(d.x,NaN,n);var A=new g.h;l.Rf(m,d);A.N(d);null!=k&&k.add(0);x?(z?(v&&l.$A(d,e,k,m),w&&l.YA(d,
e,k,m)):h&&l.ZA(d,e,p,r,u,k,m),l.Wi(e.x,NaN,n),l.Rf(m,e)):q<=f?(l.Wi(e.x,NaN,n),l.Rf(m,e)):(r=new g.h,h=new g.h,r.N(d),h.N(e),r.x-=n[0],h.x-=n[0],-3.141592653589793>h.x?h.x+=6.283185307179586:3.141592653589793<h.x&&(h.x-=6.283185307179586),l.Oy(c,a,b,d,q,p,r,h,0,1,f,k,m,n),l.Rf(m,e),l.Wi(e.x,NaN,n));null!=k&&k.add(1)};l.Oy=function(c,a,b,d,e,f,h,k,m,n,p,q,r,u){var v=new g.h,w=new g.h;v.oa(h.x+u[0],h.y);new g.ha(0);new g.ha(0);new g.ha(0);new g.ha(0);var z=new g.ha(0),x=new g.ha(0),A=new g.ha(0),B=
new g.h,C=new g.h,D=new g.h,G=new g.h;B.N(h);C.N(k);h=new g.ee(0);k=new g.ee(0);l.wp(h,C);k.add(n);var H=new g.h,K=new g.zb,J=[];for(l.TJ(4,J);0<h.size;){for(var S=!1,R,V=NaN,W=0;3>W;W++)if(R=J[W]*n+(1-J[W])*m,g.kb.oj(c,a,d.x,d.y,R*e,f,z,x,b),D.oa(z.u,x.u),0==W&&(V=R,G.N(D)),l.MW(B,D,C,K),K.jc(K.he(D,!0),H),g.kb.yd(c,a,D.x,D.y,H.x,H.y,A,null,null,2),A.u>p){S=!0;break}S?(C.N(G),n=V,l.wp(h,C),k.add(n)):(l.XA(h),k.En(k.size-1,1,k.size-1),0<h.size&&(l.Wi(C.x,v.x,u),w.oa(u[0]+C.x,C.y),l.Rf(r,w),v.N(w),
null!=q&&q.add(n),B.N(C),m=n,l.dB(h,C),n=k.get(k.size-1)))}};l.sX=function(c,a,b,d,e,f,h,k,m){var n=new g.h,p=new g.h,q=new g.h,r=new g.h,u=new g.h,v=new g.h,w=new g.h,z=new g.h,x=new g.h,A=new g.h,B=new g.ha(0),C=new g.ha(0),D=new g.h,G=[[],[]],H=1==g.tf.Tb(e);e=e.$d(0);var K=d.bc(),J=d.yc();H?(v.oa(K.x*b,K.y*b),w.oa(J.x*b,J.y*b)):(G[0][0]=K.x,G[0][1]=K.y,G[1][0]=J.x,G[1][1]=J.y,g.cb.rt(),v.x=G[0][0]*b,v.y=G[0][1]*b,w.x=G[1][0]*b,w.y=G[1][1]*b);var S=0,R=0,V=1,W=d.Qn();n.N(K);p.N(J);J=new g.ee(0);
var ia=new g.ee(0),oa=new g.ee(0);l.wp(J,p);l.wp(ia,w);oa.add(V);l.Rf(m,n);null!=k&&k.add(R);var wa=[],ta=0<h?W?5:3:W?5:1;l.TJ(ta,wa);for(var fa=new g.ha(0),ma=new g.ha(0),da=new g.ha(0),ua=new g.ha(0),sa=new g.ha(0),ya=new g.ha(0),na=new g.ha(0);0<ia.size;){var xa=!1,pa=NaN;g.kb.yd(c,a,v.x,v.y,w.x,w.y,fa,ma,null,2);for(K=0;K<ta;K++){if(0==K){if(!W&&0>=h&&fa.u<=f&&3.141592653589793>Math.abs(v.x-w.x))break;if(d.Nx(R,V)<=e)break}var Ba=wa[K]*V+(1-wa[K])*R;d.jc(Ba,q);H?z.oa(q.x*b,q.y*b):(G[0][0]=q.x,
G[0][1]=q.y,g.cb.rt(),z.x=G[0][0]*b,z.y=G[0][1]*b);if(0==K&&(pa=Ba,u.N(q),A.N(z),0<f&&(fa.u>f||3.141592653589793<=Math.abs(v.x-w.x)))){xa=!0;break}if(W&&0<f){if(g.kb.yd(c,a,v.x,v.y,z.x,z.y,da,null,null,2),da.u>f||3.141592653589793<=Math.abs(v.x-z.x)){xa=!0;break}}else if(0<h)if(W?(r.HS(n,p,wa[K]),H?x.oa(r.x*b,r.y*b):(G[0][0]=r.x,G[0][1]=r.y,g.cb.rt(),x.x=G[0][0]*b,x.y=G[0][1]*b)):(r.N(q),x.N(z)),g.kb.yd(c,a,v.x,v.y,x.x,x.y,ua,null,null,2),ua.u<=fa.u){g.kb.oj(c,a,v.x,v.y,ua.u,ma.u,B,C,2);D.oa(B.u,
C.u);g.kb.yd(c,a,D.x,D.y,z.x,z.y,sa,null,null,2);if(sa.u>h){xa=!0;break}if(W){g.kb.yd(c,a,D.x,D.y,x.x,x.y,ya,null,null,2);if(ya.u>h){xa=!0;break}g.kb.yd(c,a,x.x,x.y,z.x,z.y,na,null,null,2);if(na.u>h){xa=!0;break}}}else{xa=!0;break}}xa?(p.N(u),w.N(A),V=pa,l.wp(J,p),l.wp(ia,w),oa.add(V)):(l.XA(J),l.XA(ia),oa.En(oa.size-1,1,oa.size-1),l.Rf(m,p),S+=fa.u,null!=k&&k.add(S),0<ia.size&&(n.N(p),v.N(w),R=V,l.dB(J,p),l.dB(ia,w),V=oa.get(oa.size-1)))}if(null!=k)for(c=1/S,K=0;K<k.size;K++)k.write(K,k.read(K)*
c)};l.UB=function(c,a,b,d){d.reverse();null!=b&&b.ni(0,b.size,1);b=null!=c?c[0]:NaN;d=null!=a?a[0]:NaN;null!=c&&(c[0]=d);null!=a&&(a[0]=b)};l.aJ=function(c,a,b,d,e){c?(d.N(b),e.N(a)):(d.N(a),e.N(b))};l.$I=function(c,a,b){if(!c)return a;b.create(a.K());a.copyTo(b.get());b.get().reverse();return b.get()};l.Wi=function(c,a,b){if(isNaN(a)){for(;3.141592653589793<b[0]-c;)b[0]-=6.283185307179586;for(;3.141592653589793<c-b[0];)b[0]+=6.283185307179586}else 3.141592653589793<b[0]+c-a?b[0]-=6.283185307179586:
3.141592653589793<a-(b[0]+c)&&(b[0]+=6.283185307179586)};l.MW=function(c,a,b,d){3.141592653589793>Math.abs(a.x-c.x)?(d.Fc(c),3.141592653589793<=b.x-c.x?d.Rl(b.x-6.283185307179586,b.y):3.141592653589793<=c.x-b.x?d.Rl(b.x+6.283185307179586,b.y):d.Rl(b.x,b.y)):(d.Fc(b),3.141592653589793<=c.x-b.x?d.Rl(c.x-6.283185307179586,c.y):3.141592653589793<=b.x-c.x?d.Rl(c.x+6.283185307179586,c.y):d.Rl(c.x,c.y))};l.TJ=function(c,a){for(var b=0;b<c;b++){var d=Math.ceil(b/2)/(c+1);0!=b%2&&(d=-d);a[b]=.5+d}};l.Ku=function(c,
a){return g.s.aa(c.y,1.570796326794897)&&!g.s.aa(a.y,1.570796326794897)||g.s.aa(c.y,-1.570796326794897)&&!g.s.aa(a.y,-1.570796326794897)?!0:!1};l.Iu=function(c,a){return g.s.aa(a.y,1.570796326794897)&&!g.s.aa(c.y,1.570796326794897)||g.s.aa(a.y,-1.570796326794897)&&!g.s.aa(c.y,-1.570796326794897)?!0:!1};l.vE=function(c,a,b){return!l.uE(c,a,b)||g.s.aa(c.y,1.570796326794897)||g.s.aa(c.y,-1.570796326794897)||g.s.aa(a.y,1.570796326794897)||g.s.aa(a.y,-1.570796326794897)?!1:!0};l.uE=function(c,a,b){return Math.abs(Math.abs(c.x-
a.x)-3.141592653589793)<=b?!0:!1};l.Ju=function(c,a){return g.s.aa(c.y,1.570796326794897)&&g.s.aa(a.y,1.570796326794897)||g.s.aa(c.y,-1.570796326794897)&&g.s.aa(a.y,-1.570796326794897)?!0:!1};l.$A=function(c,a,b,d){if(0<c.y){var e=new g.h;e.oa(a.x,1.570796326794897)}else e=new g.h,e.oa(a.x,-1.570796326794897);g.s.aa(c.x,e.x)||g.s.aa(a.y,e.y)||(l.Rf(d,e),null!=b&&b.add(0))};l.YA=function(c,a,b,d){if(0<a.y){var e=new g.h;e.oa(c.x,1.570796326794897)}else e=new g.h,e.oa(c.x,-1.570796326794897);g.s.aa(a.x,
e.x)||g.s.aa(c.y,e.y)||(l.Rf(d,e),null!=b&&b.add(1))};l.ZA=function(c,a,b,d,e,f,h){g.s.Ed(b)?(0<1.570796326794897-c.y&&(b=new g.h,b.oa(c.x,1.570796326794897),l.Rf(h,b),null!=f&&f.add(d)),0<1.570796326794897-a.y&&(b=new g.h,b.oa(a.x,1.570796326794897),l.Rf(h,b),null!=f&&f.add(d))):(0<1.570796326794897+c.y&&(b=new g.h,b.oa(c.x,-1.570796326794897),l.Rf(h,b),null!=f&&f.add(e)),0<1.570796326794897+a.y&&(b=new g.h,b.oa(a.x,-1.570796326794897),l.Rf(h,b),null!=f&&f.add(e)))};l.tU=function(c){if(-3.141592653589793>
c.x)for(;-3.141592653589793>c.x;)c.x+=6.283185307179586;if(3.141592653589793<c.x)for(;3.141592653589793<c.x;)c.x-=6.283185307179586};return l}();g.cj=t})(y||(y={}));(function(g){g.jp=function(){function t(){}t.nj=function(l,c,a){if(null==l||null==c||!g.cb.Yc(c))throw g.i.O();if(l.B())return l;var b=l,d=b.K();if(g.ba.Jc(d)){b=g.Ih.lj(l,c);l=new g.l;b.A(l);d=g.ua.Yd(c,l,!1);for(var e=g.cb.ih(c),f=Math.floor((l.v-e.v)/e.S())*e.S()+e.v;f<l.C;)f>l.v+d&&f<l.C-d&&(b=g.Ih.gs(b,c,a,!0,f)),f+=e.S()}else{if(197==
d)return l=new g.Ea(b.description),l.cd(b,!1),t.nj(l,c,a);if(g.ba.Ad(d))return l=new g.Ua(b.description),l.pc(b,!0),t.nj(l,c,a)}return t.Ky(b,c)};t.Ky=function(l,c){if(null==l||null==c||!g.cb.Yc(c))throw g.i.O();if(l.B())return l;var a=l.K();197==a?(a=new g.Ea(l.description),a.cd(l,!1)):g.ba.Ad(a)?(a=new g.Ua(l.description),a.pc(l,!0)):a=l;a=g.Ih.lj(a,c);return a.B()?a:1==g.tf.Tb(c)?g.Ih.Fn(a,c,0,a!=l,0):t.JQ(a,c,a!=l)};t.JQ=function(l,c,a){if(!g.cb.Yc(c))throw g.i.O();if(l.B())return l;var b=g.cb.df(c),
d=-(180*b);b*=360;2==g.tf.Tb(c)&&(d=g.cb.ih(c),b=d.C,d=d.v,b-=d);return g.Ih.Jp(l,d,b,c,a,0,!0)};return t}()})(y||(y={}));(function(g){g.tY=function(){function t(){}t.R=function(l){return 0>l?-l:l};t.Mb=function(l,c){return 0<=c?t.R(l):-t.R(l)};t.aa=function(l,c){return l==c||t.R(l-c)<=t.wC*(1+(t.R(l)+t.R(c))/2)};t.Ed=function(l){return 0==l||t.R(l)<=t.wC};t.Bh=function(l,c){c=Math.sqrt(1-c);c=(1-c)/(1+c);var a=c*c;return l/(1+c)*(1+a*(.25+a*(.015625+1/256*a)))*t.zL};t.zL=1.5707963267948966;t.wC=
3.552713678800501E-15;return t}()})(y||(y={}));(function(g){var t=function(){return function(c){this.$f=c;this.Jk=this.$f.getCode();0>this.Jk&&(this.Jk=0)}}();g.vY=t;var l=function(){function c(a){void 0===a&&(a=null);this.Cj=null;this.Vn=!1;null!==a&&(this.Cj=new t(a))}c.prototype.Gc=function(){return null!=this.Cj?this.Cj.Jk:0};c.prototype.Sf=function(){var a=new c;this.copyTo(a);return a};c.prototype.copyTo=function(a){a.Cj=this.Cj;a.Vn=this.Vn};c.prototype.Gz=function(){this.Vn=!this.Vn};c.prototype.sm=
function(){return null!=this.Cj?this.Cj.$f:null};c.prototype.GJ=function(a){if(0>=a)throw g.i.O();if(a!=this.Gc()){a=g.sf.geogtran(a);if(null==a)throw g.i.O("Geogtran not found.");this.Cj=new t(a)}};c.prototype.qz=function(){return null==this.Cj?null:this.Cj.$f.toString()};c.prototype.kX=function(a){if(null==a)throw g.i.O();var b=null;try{b=g.sf.fromString(g.Vc.PE_TYPE_GEOGTRAN,a)}catch(d){throw g.i.O();}this.Cj=new t(b)};c.prototype.Nb=function(a){return a==this?!0:a instanceof c&&(!(0>=this.Gc()||
this.Gc()!=a.Gc())||this.sm().isEqual(a.sm()))?this.Vn==a.Vn:!1};c.prototype.toString=function(){var a="GeographicTransformation: "+this.qz();return 200<a.length?a.substring(0,197)+"... ("+a.length.toString()+" characters)":a};c.create=function(a,b){var d=new c;d.GJ(a);b&&d.Gz();return d};c.sP=function(a,b){var d=new c;d.kX(a);b&&d.Gz();return d};return c}();g.xx=l})(y||(y={}));(function(g){var t=function(){function c(){}c.construct=function(a,b,d,e){var f=new c;f.ew=a;f.fw=b;f.HY=d;f.IY=e;return f};
c.ty=function(a,b){return a.ew==b.ew?a.fw==b.fw?0:a.fw<b.fw?-1:1:a.ew<b.ew?-1:1};return c}(),l=function(){function c(){this.rT=[];this.sT=[];this.rp()}c.az=function(){null==c.eK&&(c.eK=new c);return c.eK};c.prototype.rp=function(){this.YC(this.rT);this.YC(this.sT)};c.prototype.YC=function(a){try{var b=[];b=b.sort(t.ty);for(var d=0;d<b.length;d++)a.push(b[d])}catch(e){}};return c}();g.uY=l})(y||(y={}));(function(g){var t=function(){function l(){}l.prototype.oD=function(c){this.Ek=c};l.prototype.UM=
function(c){this.Gb=c};l.prototype.nD=function(c){this.Ao=c};l.sE=function(c){return c.B()||1607!=c.K()&&1736!=c.K()?!1:!0};l.qE=function(c){return c.B()||1607!=c.K()&&1736!=c.K()||20>c.I()?!1:!0};l.rE=function(c){return c.B()||1607!=c.K()&&1736!=c.K()||20>c.I()?!1:!0};return l}();g.Tk=t})(y||(y={}));(function(g){g.ac=function(){function t(){}t.MT=function(l){var c=new g.Ea;c.mx(l.T.v,l.T.F);c.yj(l.T.v,l.T.H);c.yj(l.T.C,l.T.H);c.yj(l.T.C,l.T.F);return c};t.Ah=function(l,c){return null===l?null:g.Ax.local().X(l,
c,null)};t.aY=function(l,c){var a=g.Hh.local();l=new g.ad(l);return a.X(l,c,null).next()};t.km=function(l,c,a){return g.mp.local().X(l,c,a,null)};t.fp=function(l,c,a){return g.Dx.local().X(l,c,a,null)};t.MX=function(l,c,a){var b=g.Dx.local();l=new g.ad(l);c=new g.ad(c);a=b.X(l,c,a,null);for(b=[];null!=(c=a.next());)b.push(c);return b};t.Nb=function(l,c,a){return g.ej.local().X(3,l,c,a,null)};t.RP=function(l,c,a){return g.ej.local().X(4,l,c,a,null)};t.KS=function(l,c,a){var b=g.Vk.local();l=new g.ad(l);
c=new g.ad(c);a=b.X(l,c,a,null);for(b=[];null!=(c=a.next());)b.push(c);return b};t.OP=function(l,c,a){var b=g.mp.local();l=new g.ad(l);c=new g.ad(c);a=b.X(l,c,a,null);for(b=[];null!=(c=a.next());)b.push(c);return b};t.Fa=function(l,c,a){return g.Vk.local().X(l,c,a,null)};t.hY=function(l,c,a){return g.ej.local().X(2,l,c,a,null)};t.contains=function(l,c,a){return g.ej.local().X(1,l,c,a,null)};t.zP=function(l,c,a){return g.ej.local().X(16,l,c,a,null)};t.touches=function(l,c,a){return g.ej.local().X(8,
l,c,a,null)};t.wU=function(l,c,a){return g.ej.local().X(32,l,c,a,null)};t.MS=function(l,c,a){return g.ej.local().X(1073741824,l,c,a,null)};t.nB=function(l,c,a,b){return g.uL.local().X(l,c,a,b,null)};t.vb=function(l,c,a,b){var d=null;if(null!=a){if(d=a.Jd(),null!=b&&d.Gc()!=b.Gc()&&d.pd!=b.pd)throw g.i.Xk();}else if(null!=b)throw g.i.O();l=g.lL.local().X(l,c,null);null!==d&&null!==b&&(l=g.fc.Nh(l,d,b));return l};t.clip=function(l,c,a){return g.fL.local().X(l,g.l.construct(c.T.v,c.T.F,c.T.C,c.T.H),
a,null)};t.dl=function(l,c,a){if(null==l||null==c)return null;l=g.hL.local().X(!0,l,c,a,null);for(c=[];null!=(a=l.next());)a.B()||c.push(a);return c.slice(0)};t.LN=function(l,c,a,b,d,e,f,h){if(!0===d)return t.MN(l,c,a,b,e,f,h);d=a;if(null!=c){if(f=c.Jd(),null!=b&&f.Gc()!=b.Gc()){if(f.pd!=b.pd)throw g.i.Xk();d=[];g.fc.OE(a,a.length,b,f,d)}}else if(null!=b)throw g.i.O();a=g.nC.local();if(e){l=new g.ad(l);c=a.X(l,c,d,e,null);for(l=[];null!=(e=c.next());)l.push(e);e=l.slice(0)}else for(e=[],b=0;b<l.length;b++)e[b]=
a.X(l[b],c,d[b],null);return e};t.MN=function(l,c,a,b,d,e,f){if(null===c)throw g.i.O();if(null===b||void 0===b)b=4326!==c.Gc()?c.Jd():g.fc.Zd(9001);if(0!==b.pd)throw g.i.O();g.fc.OE(a,a.length,b,g.fc.Zd(9001),a);b=g.sC.local();if(d){l=new g.ad(l);c=b.X(l,c,e,a,f,!1,d,null);for(a=[];null!=(e=c.next());)a.push(e);d=a.slice(0)}else{d=[];for(var h=0;h<l.length;h++)d[h]=b.X(l[h],c,e,a[h],f,!1,null)}return d};t.buffer=function(l,c,a,b,d,e,f){var h=a;if(!1===d){if(null!=c){if(d=c.Jd(),null!=b&&d.Gc()!=b.Gc()){if(d.pd!=
b.pd)throw g.i.Xk();h=g.fc.Nh(a,b,d)}}else if(null!=b)throw g.i.O();l=g.nC.local().X(l,c,h,null)}else{if(null===c)throw g.i.O();if(null===b||void 0===b)b=4326!==c.Gc()?c.Jd():g.fc.Zd(9001);if(0!==b.pd)throw g.i.O();h=g.fc.Nh(a,b,g.fc.Zd(9001));l=g.sC.local().X(l,c,e,h,f,!1,null)}return l};t.uU=function(l,c,a,b,d,e,f){if(null!=c){var h=c.Jd();if(null!=f&&h.Gc()!=f.Gc()){if(h.pd!=f.pd)throw g.i.Xk();a=g.fc.Nh(a,f,h)}}else if(null!=f)throw g.i.O();l=new g.ad(l);c=g.vC.local().X(l,c,a,b,d,e,null);for(a=
[];null!=(b=c.next());)a.push(b);return a.slice(0)};t.offset=function(l,c,a,b,d,e,f){if(null!=c){var h=c.Jd();if(null!=f&&h.Gc()!=f.Gc()){if(h.pd!=f.pd)throw g.i.Xk();a=g.fc.Nh(a,f,h)}}else if(null!=f)throw g.i.O();return g.vC.local().X(l,c,a,b,d,e,null)};t.gP=function(l){return g.pC.local().X(l,null)};t.hP=function(l,c){var a=g.pC.local();l=new g.ad(l);c=a.X(l,c,null);for(a=[];null!=(l=c.next());)a.push(l);return a};t.dz=function(l,c,a){return g.Bx.local().dz(l,c,a)};t.ez=function(l,c){return g.Bx.local().ez(l,
c)};t.fz=function(l,c,a,b){return g.Bx.local().fz(l,c,a,b)};t.TB=function(l,c){return g.Zl.local().X(l,c,!1,null)};t.XS=function(l,c){return g.Zl.local().os(l,c,null)};t.MQ=function(l,c,a,b,d){var e=g.rC.local();if(null!=c){if(c=c.Jd(),null!=d&&c.Gc()!=d.Gc()){if(c.pd!=d.pd)throw g.i.Xk();a=g.fc.Nh(a,d,c)}}else if(null!=d)throw g.i.O();return e.X(l,a,b,null)};t.Rr=function(l,c,a,b){var d=g.Yl.local();if(null!=c){if(c=c.Jd(),null!=b&&c.Gc()!=b.Gc()){if(c.pd!=b.pd)throw g.i.Xk();a=g.fc.Nh(a,b,c)}}else if(null!=
b)throw g.i.O();return d.X(l,a,null)};t.My=function(l,c,a,b,d){void 0===d&&(d=0);var e=g.nL.local();if(4==d)throw g.i.He();if(0!==d)throw g.i.He();if(null!==b){if(0!==b.pd)throw g.i.O("Unit must be a linear unit type");a=g.fc.Nh(a,b,g.fc.Zd(9001))}return e.X(l,a,c,d,null)};t.SQ=function(l,c,a,b){if(null===l)return 0;if(4==b)throw g.i.He();if(0!==b)throw g.i.He();if(197==l.K())l=t.MT(l);else if(1736!=l.K())return 0;b=g.cb.uc(c);l=g.cb.Ah(l,c,b);l=g.PK.TQ([l])[0];if(null!==a){if(2!==a.pd)throw g.i.O("Unit must be a area unit type");
l=g.fc.Nh(l,g.fc.Zd(109404),a)}return l};t.VQ=function(l,c,a,b){l=g.qL.local().X(l,c,b,null);if(null!==a){if(0!==a.pd)throw g.i.O("Unit must be a linear unit type");l=g.fc.Nh(l,g.fc.Zd(9001),a)}return l};t.CU=function(l,c,a){if(null===l)return 0;var b=null;if(null!=c){b=c.Jd();if(0==b.pd&&(b=g.fc.VF(b),null==b&&null!==a))throw g.i.O();if(null!=a&&b.Gc()!=a.Gc()&&b.pd!=a.pd)throw g.i.Xk();}else if(null!=a)throw g.i.O();return 1736==l.K()||197==l.K()?(l=l.Je(),null!==a?g.fc.Nh(l,b,a):l):0};t.DU=function(l,
c,a){if(null===l||l.B()||1>l.Eb())return 0;var b=null;if(null!=c){if(b=c.Jd(),null!=a&&b.Gc()!=a.Gc()&&b.pd!=a.pd)throw g.i.Xk();}else if(null!=a)throw g.i.O();1736==l.K()||197==l.K()?c=l.qg():g.ba.Ad(l.K())?(c=new g.Ua(l.description),c.pc(l,!0)):c=l;l=0;c=c.Ha();for(var d=new g.h,e=new g.h;c.ab();)for(;c.Ia();){var f=c.ia();f.$p(d);f.Ur(e);l+=g.h.vb(d,e)}null!==b&&null!==a&&(l=g.fc.Nh(l,b,a));return l};t.NE=function(l){return void 0!==l.points?t.gS(l,void 0===l.hasZ?!1:l.hasZ,void 0===l.hasM?!1:
l.hasM):void 0!==l.rings?t.gG(l.rings,void 0===l.hasZ?!1:l.hasZ,void 0===l.hasM?!1:l.hasM,"P"):void 0!==l.paths?t.gG(l.paths,void 0===l.hasZ?!1:l.hasZ,void 0===l.hasM?!1:l.hasM,"L"):void 0!==l.x?t.hS(l):void 0!==l.xmin?t.fS(l):null};t.hS=function(l){if(null==l.x||"NaN"==l.x)return new g.Ta;var c=new g.Ta(l.x,l.y);void 0!==l.z&&null!==l.z&&c.nX(l.z);void 0!==l.m&&null!==l.m&&c.YW(l.m);return c};t.fS=function(l){if(null==l.xmin||"NaN"==l.xmin)return new g.Gh;var c=new g.Gh(l.xmin,l.ymin,l.xmax,l.ymax);
void 0!==l.zmin&&null!==l.zmin&&c.setInterval(1,0,l.zmin,l.zmax);void 0!==l.mmin&&null!==l.mmin&&c.setInterval(2,0,l.mmin,l.mmax);return c};t.gS=function(l,c,a){var b=0,d=new g.fe,e=3*l.points.length;0!=e%2&&e++;2>e&&(e=2);var f=g.P.truncate(3*l.points.length/2);4>f?f=4:16>f&&(f=16);e=g.$c.Dn(e,0);var h=g.$c.Dn(f);f=g.$c.Dn(f);for(var k=0;k<l.points.length;k++)e.write(2*k,l.points[k][0]),e.write(2*k+1,l.points[k][1]),h.write(k,c||a?l.points[k][2]:NaN),f.write(k,a&&c?l.points[k][3]:NaN),b++;0!=b&&
(d.resize(b),d.kn(0,e));c&&(d.ue(1),d.kn(1,h));a&&(d.ue(2),d.kn(2,0==c?h:f));d.Sc(16777215);return d};t.gG=function(l,c,a,b){var d=0,e=2;if("P"==b){var f=new g.Ea;d=1;e=3}else f=new g.Ua;for(var h=g.$c.Oh(0),k=g.$c.Nr(0),m=0,n=0,p=[],q=[],r=0;r<l.length;r++){var u=l[r].length;p[r]=!1;if("P"===b&&l[r][0][0]===l[r][l[r].length-1][0]&&l[r][0][1]===l[r][l[r].length-1][1]){var v=0==a?!0:l[r][0][3]===l[r][l[r].length-1][3]||void 0===l[r][0][3]&&void 0===l[r][l[r].length-1][3];(0==c||l[r][0][2]===l[r][l[r].length-
1][2]||void 0===l[r][0][2]&&void 0===l[r][l[r].length-1][2])&&v&&(p[r]=!0,--u)}u>=e?(q[r]=!1,n+=1,h.add(m),k.add(d),m+=u):q[r]=!0}b=3*m;0!=b%2&&b++;2>b&&(b=2);r=g.P.truncate(3*m/2);4>r?r=4:16>r&&(r=16);b=g.$c.Dn(b,0);d=g.$c.Dn(r);e=g.$c.Dn(r);for(r=u=0;r<l.length;r++)if(!1===q[r])for(v=0;v<l[r].length;v++){var w=!1;v===l[r].length-1&&!0===p[r]&&(w=!0);w||(b.write(2*u,l[r][v][0]),b.write(2*u+1,l[r][v][1]),d.write(u,c||a?l[r][v][2]:NaN),e.write(u,a&&c?l[r][v][3]:NaN),u++)}0!=m&&(l=f,h.resize(n),k.resize(n),
0<m&&(h.add(m),k.add(0)),l.kn(0,b),l.KJ(k),l.LJ(h));c&&(f.ue(1),f.kn(1,d));a&&(f.ue(2),f.kn(2,0==c?d:e));f.Sc(16777215);return f};return t}()})(y||(y={}));(function(g){g.kp=function(){function t(){}t.dr=function(l){var c=0,a,b=l.length,d=l[0];for(a=0;a<b-1;a++){var e=l[a+1];c+=(e[0]-d[0])*(e[1]+d[1]);d=e}return 0<=c};t.rotate=function(l,c,a){c=c*Math.PI/180;var b=Math.cos(c),d=Math.sin(c);if(void 0!==l.paths){c={paths:[]};for(var e=0;e<l.paths.length;e++){for(var f=l.paths[e],h=[],k=0;k<f.length;k++){var m=
f[k].slice(0);h.push(m);var n=b*(f[k][0]-a.x)-d*(f[k][1]-a.y)+a.x,p=d*(f[k][0]-a.x)+b*(f[k][1]-a.y)+a.y;m[0]=n;m[1]=p}c.paths.push(h)}return c}if(void 0!==l.rings){c={rings:[]};for(e=0;e<l.rings.length;e++){f=l.rings[e];h=[];var q=t.dr(f);for(k=0;k<f.length;k++)m=f[k].slice(0),h.push(m),n=b*(f[k][0]-a.x)-d*(f[k][1]-a.y)+a.x,p=d*(f[k][0]-a.x)+b*(f[k][1]-a.y)+a.y,m[0]=n,m[1]=p;t.dr(h)!==q&&h.reverse();c.rings.push(h)}return c}if(void 0!==l.x)return c={x:b*(l.x-a.x)-d*(l.y-a.y)+a.x,y:d*(l.x-a.x)+b*(l.y-
a.y)+a.y},void 0!==l.z&&(c.z=l.z),void 0!==l.m&&(c.m=l.m),c;if(void 0!==l.points){c={points:[]};l=l.points;for(k=0;k<l.length;k++)e=l[k].slice(0),e[0]=b*(l[k][0]-a.x)-d*(l[k][1]-a.y)+a.x,e[1]=d*(l[k][0]-a.x)+b*(l[k][1]-a.y)+a.y,c.points.push(e);return c}return null};t.gF=function(l,c){if(void 0!==l.paths){for(var a={paths:[]},b=0;b<l.paths.length;b++){for(var d=l.paths[b],e=[],f=0;f<d.length;f++){var h=d[f].slice(0);e.push(h);var k=c.x-d[f][0];h[0]=d[f][0]+2*k}a.paths.push(e)}return a}if(void 0!==
l.rings){a={rings:[]};for(b=0;b<l.rings.length;b++){d=l.rings[b];var m=t.dr(d);e=[];for(f=0;f<d.length;f++)h=d[f].slice(0),e.push(h),k=c.x-d[f][0],h[0]=d[f][0]+2*k;t.dr(e)!==m&&e.reverse();a.rings.push(e)}return a}if(void 0!==l.x)return k=c.x-l.x,a={x:l.x+2*k,y:l.y},void 0!==l.z&&(a.z=l.z),void 0!==l.m&&(a.m=l.m),a;if(void 0!==l.points){a={points:[]};l=l.points;for(f=0;f<l.length;f++)b=l[f].slice(0),k=c.x-b[0],b[0]+=2*k,a.points.push(b);return a}return void 0!==l.xmin?(a={v:l.xmin,F:l.ymin,C:l.xmax,
H:l.ymax},void 0!==l.zmin&&(a.zmin=l.zmin,a.zmax=l.zmax),void 0!==l.mmin&&(a.mmin=l.mmin,a.mmax=l.mmax),k=c.x-l.xmin,a.xmax=l.xmin+2*k,k=c.x-l.xmax,a.xmin=l.xmax+2*k,a):null};t.hF=function(l,c){if(void 0!==l.paths){for(var a={paths:[]},b=0;b<l.paths.length;b++){for(var d=l.paths[b],e=[],f=0;f<d.length;f++){var h=d[f].slice(0);e.push(h);var k=c.y-d[f][1];h[1]=d[f][1]+2*k}a.paths.push(e)}return a}if(void 0!==l.rings){a={rings:[]};for(b=0;b<l.rings.length;b++){d=l.rings[b];var m=t.dr(d);e=[];for(f=0;f<
d.length;f++)h=d[f].slice(0),e.push(h),k=c.y-d[f][1],h[1]=d[f][1]+2*k;t.dr(e)!==m&&e.reverse();a.rings.push(e)}return a}if(void 0!==l.x)return k=c.y-l.y,a={y:l.y+2*k,x:l.x},void 0!==l.z&&(a.z=l.z),void 0!==l.m&&(a.m=l.m),a;if(void 0!==l.points){a={points:[]};l=l.points;for(f=0;f<l.length;f++)b=l[f].slice(0),k=c.y-b[1],b[1]+=2*k,a.points.push(b);return a}return void 0!==l.xmin?(a={v:l.xmin,F:l.ymin,C:l.xmax,H:l.ymax},void 0!==l.zmin&&(a.zmin=l.zmin,a.zmax=l.zmax),void 0!==l.mmin&&(a.mmin=l.mmin,a.mmax=
l.mmax),k=c.y-l.ymin,a.ymax=l.ymin+2*k,k=c.y-l.ymax,a.ymin=l.ymax+2*k,a):null};return t}()})(y||(y={}));(function(g){g.UK=function(){function t(){}t.Og=function(l,c){null==c&&(c=g.ge.sg());switch(l){case 33:return new g.Ta(c);case 322:return new g.zb(c);case 197:return new g.Gh(c);case 550:return new g.fe(c);case 1607:return new g.Ua(c);case 1736:return new g.Ea(c);default:throw g.i.ga("invalid argument.");}};return t}()})(y||(y={}));(function(g){var t=function(){function l(c,a){this.Se=g.ja.uf(c,
-1);this.wa=new g.Yt;this.xl=a}l.prototype.tW=function(c){this.wa.wt(Math.min(this.Se.size,c));this.wa.hn(c)};l.prototype.addElement=function(c,a){if(void 0===a)return this.dN(c);a=g.P.truncate(a%this.Se.size);var b=this.Se.get(a);-1==b&&(b=this.wa.Ph(),this.Se.set(a,b));return this.wa.addElement(b,c)};l.prototype.dN=function(c){var a=this.xl.$y(c);a=g.P.truncate(a%this.Se.size);var b=this.Se.get(a);-1==b&&(b=this.wa.Ph(),this.Se.set(a,b));return this.wa.addElement(b,c)};l.prototype.ld=function(c,
a){if(void 0===a)this.IP(c);else{a=g.P.truncate(a%this.Se.size);var b=this.Se.get(a);if(-1==b)throw g.i.O();for(var d=this.wa.tc(b),e=-1;-1!=d;){var f=this.wa.mb(d);this.wa.ka(d)==c?(this.wa.ld(b,e,d),-1==this.wa.tc(b)&&(this.wa.fh(b),this.Se.set(a,-1))):e=d;d=f}}};l.prototype.IP=function(c){var a=this.xl.$y(c);a=g.P.truncate(a%this.Se.size);var b=this.Se.get(a);if(-1==b)throw g.i.O();for(var d=this.wa.tc(b),e=-1;-1!=d;){var f=this.wa.mb(d);this.wa.ka(d)==c?(this.wa.ld(b,e,d),-1==this.wa.tc(b)&&(this.wa.fh(b),
this.Se.set(a,-1))):e=d;d=f}};l.prototype.mR=function(c){c=g.P.truncate(c%this.Se.size);c=this.Se.get(c);return-1==c?-1:this.wa.tc(c)};l.prototype.zR=function(c){return this.wa.mb(c)};l.prototype.xd=function(c){var a=this.xl.$y(this.ka(c));a=g.P.truncate(a%this.Se.size);var b=this.Se.get(a);if(-1==b)throw g.i.O();for(var d=this.wa.tc(b),e=-1;-1!=d;){if(d==c){this.wa.ld(b,e,d);-1==this.wa.tc(b)&&(this.wa.fh(b),this.Se.set(a,-1));return}e=d;d=this.wa.mb(d)}throw g.i.O();};l.prototype.ka=function(c){return this.wa.ka(c)};
l.prototype.clear=function(){this.Se=g.ja.uf(this.Se.size,-1);this.wa.clear()};l.prototype.size=function(){return this.wa.NF()};return l}();g.ZK=t})(y||(y={}));(function(g){var t=function(){function l(){this.Li=new g.bd(3);this.wa=new g.bd(6);this.kT=!1;this.le=-1}l.prototype.gl=function(c){this.Li.ld(c)};l.prototype.Mw=function(){return this.Li.Fe()};l.prototype.Zu=function(c){this.wa.ld(c)};l.prototype.PA=function(){return this.wa.Fe()};l.prototype.KB=function(c,a){this.Li.U(c,1,a)};l.prototype.ax=
function(c,a){this.Li.U(c,2,a)};l.prototype.XW=function(c,a){this.Li.U(c,3,a)};l.prototype.IB=function(c,a){this.wa.U(c,4,a)};l.prototype.$W=function(c,a){this.wa.U(c,3,a)};l.prototype.OJ=function(c,a){this.wa.U(c,2,a)};l.prototype.Ph=function(c){var a=this.PA();this.wa.U(a,3,this.le);this.wa.U(a,4,0);this.wa.U(a,5,c);-1!=this.le&&this.OJ(this.le,a);return this.le=a};l.prototype.fh=function(c){this.BE(c);var a=this.wa.V(c,2),b=this.wa.V(c,3);-1!=a?this.$W(a,b):this.le=b;-1!=b&&this.OJ(b,a);this.Zu(c);
return b};l.prototype.wt=function(c){this.wa.Ge(c)};l.prototype.IF=function(c){return this.wa.V(c,5)};l.prototype.WW=function(c,a){this.wa.U(c,5,a)};l.prototype.addElement=function(c,a){return this.nS(c,a)};l.prototype.nS=function(c,a){var b=this.Mw();this.ax(b,-1);-1==this.wa.V(c,0)&&this.wa.U(c,0,b);var d=this.wa.V(c,1);this.KB(b,d);-1!=d&&this.ax(d,b);this.wa.U(c,1,b);this.setData(b,a);this.IB(c,this.cs(c)+1);this.kT&&this.XW(b,c);return b};l.prototype.ld=function(c,a){var b=this.ze(a),d=this.mb(a);
-1!=b?this.ax(b,d):this.wa.U(c,0,d);-1!=d?this.KB(d,b):this.wa.U(c,1,b);this.gl(a);this.IB(c,this.cs(c)-1);return d};l.prototype.hn=function(c){this.Li.Ge(c)};l.prototype.getData=function(c){return this.Li.V(c,0)};l.prototype.setData=function(c,a){this.Li.U(c,0,a)};l.prototype.mb=function(c){return this.Li.V(c,2)};l.prototype.ze=function(c){return this.Li.V(c,1)};l.prototype.tc=function(c){return this.wa.V(c,0)};l.prototype.Hc=function(c){return this.wa.V(c,1)};l.prototype.clear=function(){for(var c=
this.le;-1!=c;)c=this.fh(c)};l.prototype.BE=function(c){for(var a=this.Hc(c);-1!=a;){var b=a;a=this.ze(b);this.gl(b)}this.wa.U(c,0,-1);this.wa.U(c,1,-1);this.IB(c,0)};l.prototype.B=function(){return 0==this.Li.size};l.prototype.NF=function(){return this.Li.size};l.prototype.cs=function(c){return this.wa.V(c,4)};l.prototype.gz=function(c){return this.wa.V(c,3)};return l}();g.lp=t})(y||(y={}));(function(g){var t=function(){function l(c){void 0===c?(this.zg=new g.bd(2),this.wa=new g.bd(4),this.le=-1,
this.Nv=!0):(this.zg=new g.bd(2),this.wa=new g.bd(c?4:2),this.le=-1,this.Nv=c)}l.prototype.gl=function(c){this.zg.ld(c)};l.prototype.Mw=function(){return this.zg.Fe()};l.prototype.Zu=function(c){this.wa.ld(c)};l.prototype.PA=function(){return this.wa.Fe()};l.prototype.Ph=function(){var c=this.PA();this.Nv&&(this.wa.U(c,3,this.le),-1!=this.le&&this.wa.U(this.le,2,c),this.le=c);return c};l.prototype.fh=function(c){for(var a=this.tc(c);-1!=a;){var b=a;a=this.mb(a);this.gl(b)}this.Nv&&(a=this.wa.V(c,
2),b=this.wa.V(c,3),-1!=a?this.wa.U(a,3,b):this.le=b,-1!=b&&this.wa.U(b,2,a));this.Zu(c)};l.prototype.wt=function(c){this.wa.Ge(c)};l.prototype.addElement=function(c,a){var b=this.wa.V(c,1),d=this.Mw();-1!=b?this.zg.U(b,1,d):this.wa.U(c,0,d);this.wa.U(c,1,d);this.zg.U(d,0,a);return d};l.prototype.hn=function(c){this.zg.Ge(c)};l.prototype.ld=function(c,a,b){-1!=a?(this.zg.U(a,1,this.zg.V(b,1)),this.wa.V(c,1)==b&&this.wa.U(c,1,a)):(this.wa.U(c,0,this.zg.V(b,1)),this.wa.V(c,1)==b&&this.wa.U(c,1,-1));
this.gl(b)};l.prototype.wy=function(c,a){var b=this.wa.V(c,1),d=this.wa.V(a,0);-1!=d&&(-1!=b?this.zg.U(b,1,d):this.wa.U(c,0,d),this.wa.U(c,1,this.wa.V(a,1)));this.Nv&&(c=this.wa.V(a,2),b=this.wa.V(a,3),-1!=c?this.wa.U(c,3,b):this.le=b,-1!=b&&this.wa.U(b,2,c));this.Zu(a)};l.prototype.ka=function(c){return this.zg.V(c,0)};l.prototype.Sj=function(c,a){this.zg.U(c,0,a)};l.prototype.mb=function(c){return this.zg.V(c,1)};l.prototype.tc=function(c){return this.wa.V(c,0)};l.prototype.Jn=function(c){return this.ka(this.tc(c))};
l.prototype.clear=function(){this.zg.mj(!0);this.wa.mj(!0);this.le=-1};l.prototype.B=function(){return 0==this.zg.size};l.prototype.NF=function(){return this.zg.size};l.prototype.gz=function(c){return this.wa.V(c,3)};return l}();g.Yt=t})(y||(y={}));(function(g){g.ua=function(){function t(){}t.Yd=function(l,c,a){c=c.zr();l=null!=l&&void 0!==l.$d?l.$d(0):0;a&&(c*=4,l*=1.1);return Math.max(l,c)};t.Gr=function(l){return 2*Math.sqrt(2)*l};t.qN=function(l){return Math.sqrt(2)*l};t.kj=function(l,c,a){var b=
new g.l;c.A(b);return t.Yd(l,b,a)};t.mE=function(l,c,a){c=c.ig(1,0).zr();l=null!=l?l.$d(1):0;a&&(c*=4,l*=1.1);return Math.max(l,c)};t.jv=function(l,c){var a=new g.l;l.zc(a);l=new g.l;c.zc(l);a.$b(l);return a};t.XN=function(l){var c=new g.l;l.zc(c);if(c.B())return null;var a=new g.au(c,8),b=-1,d=new g.l,e=!1;do for(var f=0,h=l.ea();f<h;f++)if(l.Rj(f,d),b=a.zz(f,d,b),-1==b){if(e)throw g.i.ga("internal error");l.Ap(c,!1);e=!0;a.reset(c,8);break}else e=!1;while(e);return a};t.dE=function(l){var c=new g.l;
l.zc(c);for(var a=new g.au(c,8),b=-1,d=l.Ha(),e=new g.l,f=!1;d.ab();)for(;d.Ia();){var h=d.ia(),k=d.xb();h.A(e);b=a.zz(k,e,b);if(-1==b){if(f)throw g.i.Ra();l.Ap(c,!1);f=!0;a.reset(c,8);d.Zi();break}}return a};t.jj=function(l,c){var a=new g.l;l.zc(a);for(var b=new g.au(a,8),d=-1,e=new g.l,f=l.Ha(),h=!1;f.ab();)for(;f.Ia();){var k=f.ia(),m=f.xb();k.A(e);if(e.isIntersecting(c)&&(d=b.zz(m,e,d),-1==d)){if(h)throw g.i.ga("internal error.");l.Ap(a,!1);h=!0;b.reset(a,8);f.Zi();break}}return b};t.eE=function(l,
c){for(var a=new g.au(c,8),b=new g.h,d=!1,e=new g.l,f=0;f<l.I();f++)if(l.D(f,b),c.contains(b)&&(e.L(b),-1==a.vj(f,e))){if(d)throw g.i.Ra();d=!0;f=new g.l;l.Ap(f,!1);a.reset(f,8);f=-1}return a};t.hR=function(l,c,a){var b=new g.l,d=new g.l;l.zc(b);c.zc(d);b.Y(a,a);d.Y(a,a);var e=new g.l;e.L(b);e.Fa(d);l=l.Ha();c=c.Ha();var f=new g.lC;f.PB(a);var h=!1;for(f.kK();l.ab();)for(;l.Ia();)l.ia().A(b),b.isIntersecting(e)&&(h=!0,a=new g.l,a.L(b),f.yD(l.xb(),a));f.$E();if(!h)return null;b=!1;for(f.jK();c.ab();)for(;c.Ia();)c.ia().A(d),
d.isIntersecting(e)&&(b=!0,a=new g.l,a.L(d),f.uD(c.xb(),a));f.ZE();return b?f:null};t.iR=function(l,c,a,b,d){var e=l.K(),f=c.K(),h=new g.l,k=new g.l;l.zc(h);c.zc(k);h.Y(a,a);k.Y(a,a);var m=new g.l;m.L(h);m.Fa(k);var n=new g.lC;n.PB(a);var p=!1;n.kK();var q=0;for(a=l.ea();q<a;q++)if(!b||1736!=e||l.Bv(q))l.Rj(q,h),h.isIntersecting(m)&&(p=!0,n.yD(q,h));n.$E();if(!p)return null;l=!1;n.jK();b=0;for(a=c.ea();b<a;b++)if(!d||1736!=f||c.Bv(b))c.Rj(b,k),k.isIntersecting(m)&&(l=!0,n.uD(b,k));n.ZE();return l?
n:null};t.Pu=function(l,c,a){if(l!=c)for(var b=0;b<a;b++)null==l[b]?l[b]=g.h.al(c[b]):l[b].N(c[b])};t.yy=function(l,c,a,b){var d=0;for(b+=0;d<b;a++,d++)null==l[d]&&(l[d]=[0,0]),l[d][0]=c[a].x,l[d][1]=c[a].y};t.xy=function(l,c,a,b){var d=c,e=0;for(c=b+c;d<c;e++,d++)null==l[d]?l[d]=g.h.construct(a[e][0],a[e][1]):l[d].oa(a[e][0],a[e][1])};t.iP=function(l,c,a){if(l!=c)for(var b=0;b<a;b++)null==l[b]?l[b]=new g.Ta(c[b]):c[b].copyTo(l[b])};t.lE=function(l,c,a,b){var d=0;null!=l&&(d=l.$d(0),b&&!a||null==
l||(d+=1.01*l.kz(0)));a&&(c*=4,d*=1.01);return Math.max(d,c)};t.iy=function(l,c,a){return t.lE(l,c.zr(),a,!1)};t.fO=function(l,c){var a=new g.l;c.A(a);return t.iy(l,a,!0)};t.jy=function(l,c){return t.lE(l,c.zr(),!1,!0)};t.Eu=function(l,c){var a=new g.l;c.A(a);return t.jy(l,a)};t.vG=function(l,c,a,b){b*=b;var d=new g.h;d.wc(l,c);l=new g.h;l.wc(a,c);c=d.Rk();a=l.Rk();if(c<=b&&a<=b)return!0;var e=g.oc.jx(d.wi(l));return e<=b*c||e<=b*a?0<=d.Qh(l):!1};t.ZJ=function(l,c,a,b){for(var d=0;d<c;d++){var e=
l[d].y,f=g.P.Qk(e,a,b);f!=e&&(l[d].y=f)}};return t}()})(y||(y={}));(function(g){var t=function(){function d(e){this.Za=e}d.prototype.compare=function(e,f,h){e=e.ka(h);h=this.Za.mk(f);var k=this.Za.mk(e);return h<k?-1:h==k?b.iq(f)&&b.Dv(e)?-1:b.iq(e)&&b.Dv(f)?1:0:1};return d}(),l=function(){function d(e){this.Za=e}d.prototype.qr=function(e,f,h){this.Za.xX(h,e,f)};d.prototype.bq=function(e){return this.Za.mk(e)};return d}(),c;(function(d){d[d.initialize=0]="initialize";d[d.pIn=1]="pIn";d[d.pL=2]="pL";
d[d.pR=3]="pR";d[d.pT=4]="pT";d[d.right=5]="right";d[d.left=6]="left";d[d.all=7]="all"})(c||(c={}));var a=function(){function d(){this.Za=null;this.Qi=new g.Pc;this.hi=new g.ja(0);this.xg=[0,0]}d.prototype.Xi=function(e,f){this.Qi.ma=e.ma-f;this.Qi.sa=e.sa+f;this.hi.resize(0);this.je=0;this.xg[0]=0};d.prototype.tB=function(e,f,h){if(e>f)throw g.i.O();this.Qi.ma=e-h;this.Qi.sa=f+h;this.hi.resize(0);this.je=0;this.xg[0]=0};d.prototype.Vo=function(e,f){this.Qi.ma=e-f;this.Qi.sa=e+f;this.hi.resize(0);
this.je=0;this.xg[0]=0};d.prototype.next=function(){if(!this.Za.nq)throw g.i.Hb();if(0>this.je)return-1;for(var e=!0;e;)switch(this.xg[this.je]){case 1:e=this.yU();break;case 2:e=this.zU();break;case 3:e=this.AU();break;case 4:e=this.BU();break;case 5:e=this.yW();break;case 6:e=this.dT();break;case 7:e=this.sN();break;case 0:e=this.wz();break;default:throw g.i.Ra();}return-1!=this.Tg?this.Op()>>1:-1};d.construct=function(e){var f=new d;f.Za=e;f.hi.Jb(20);f.je=-1;return f};d.prototype.wz=function(){this.Tg=
this.qH=this.Mi=this.Nc=-1;if(null!=this.Za.oe&&0<this.Za.oe.size)return this.xg[0]=1,this.Mi=this.Za.mf,!0;this.je=-1;return!1};d.prototype.yU=function(){this.Nc=this.Mi;if(-1==this.Nc)return this.Tg=this.je=-1,!1;var e=this.Za.Pp(this.Nc);if(this.Qi.sa<e)return e=this.Za.lk(this.Nc),this.Mi=this.Za.qj(this.Nc),-1!=e&&(this.ei=this.Za.ll(e),this.xg[++this.je]=6),!0;if(e<this.Qi.ma)return e=this.Za.lk(this.Nc),this.Mi=this.Za.kk(this.Nc),-1!=e&&(this.ei=this.Za.$r(e),this.xg[++this.je]=5),!0;this.xg[this.je]=
2;this.qH=this.Nc;e=this.Za.lk(this.Nc);this.Mi=this.Za.qj(this.Nc);-1!=e&&(this.ei=this.Za.ll(e),this.xg[++this.je]=7);return!0};d.prototype.zU=function(){this.Nc=this.Mi;if(-1==this.Nc)return this.xg[this.je]=3,this.Mi=this.Za.kk(this.qH),!0;if(this.Za.Pp(this.Nc)<this.Qi.ma){var e=this.Za.lk(this.Nc);this.Mi=this.Za.kk(this.Nc);-1!=e&&(this.ei=this.Za.$r(e),this.xg[++this.je]=5);return!0}e=this.Za.lk(this.Nc);this.Mi=this.Za.qj(this.Nc);-1!=e&&(this.ei=this.Za.ll(e),this.xg[++this.je]=7);e=this.Za.kk(this.Nc);
-1!=e&&this.hi.add(e);return!0};d.prototype.AU=function(){this.Nc=this.Mi;if(-1==this.Nc)return this.xg[this.je]=4,!0;if(this.Qi.sa<this.Za.Pp(this.Nc)){var e=this.Za.lk(this.Nc);this.Mi=this.Za.qj(this.Nc);-1!=e&&(this.ei=this.Za.ll(e),this.xg[++this.je]=6);return!0}e=this.Za.lk(this.Nc);this.Mi=this.Za.kk(this.Nc);-1!=e&&(this.ei=this.Za.ll(e),this.xg[++this.je]=7);e=this.Za.qj(this.Nc);-1!=e&&this.hi.add(e);return!0};d.prototype.BU=function(){if(0==this.hi.size)return this.Tg=this.je=-1,!1;this.Nc=
this.hi.get(this.hi.size-1);this.hi.resize(this.hi.size-1);var e=this.Za.lk(this.Nc);-1!=e&&(this.ei=this.Za.ll(e),this.xg[++this.je]=7);-1!=this.Za.qj(this.Nc)&&this.hi.add(this.Za.qj(this.Nc));-1!=this.Za.kk(this.Nc)&&this.hi.add(this.Za.kk(this.Nc));return!0};d.prototype.dT=function(){this.Tg=this.ei;if(-1!=this.Tg&&b.iq(this.Op())&&this.Za.mk(this.Op())<=this.Qi.sa)return this.ei=this.MF(),!1;this.je--;return!0};d.prototype.yW=function(){this.Tg=this.ei;if(-1!=this.Tg&&b.Dv(this.Op())&&this.Za.mk(this.Op())>=
this.Qi.ma)return this.ei=this.KR(),!1;this.je--;return!0};d.prototype.sN=function(){this.Tg=this.ei;if(-1!=this.Tg&&b.iq(this.Op()))return this.ei=this.MF(),!1;this.je--;return!0};d.prototype.MF=function(){return this.Za.Wf?this.Za.dg.mb(this.Tg):this.Za.Ti.mb(this.Tg)};d.prototype.KR=function(){return this.Za.Wf?this.Za.dg.ze(this.Tg):this.Za.Ti.ze(this.Tg)};d.prototype.Op=function(){return this.Za.Wf?this.Za.dg.ka(this.Tg):this.Za.Ti.getData(this.Tg)};return d}();g.wY=a;var b=function(){function d(e){this.Cm=
this.$h=this.dg=this.Ti=this.Mm=this.Ej=this.oe=this.Fj=null;this.Wf=e;this.nq=this.Pv=!1}d.prototype.mr=function(){this.Mk(!0)};d.prototype.Dr=function(e,f){if(!this.Pv)throw g.i.Hb();this.Fj.push(new g.Pc(e,f))};d.prototype.Hp=function(){if(!this.Pv)throw g.i.ga("invalid call");this.Pv=!1;this.nq=!0;this.Wf||(this.pS(),this.Wv=this.Fj.length)};d.prototype.vj=function(e){if(!this.Wf||!this.nq)throw g.i.O("invalid call");if(-1==this.mf){var f=this.Fj.length;if(this.Zz){var h=new g.ja(0);h.Jb(2*f);
this.XI(h);this.$h.Jb(2*f);this.$h.resize(0);this.WI(h);this.Mm.resize(f,-1);this.Mm.Wj(-1,0,f);this.Zz=!1}else this.Mm.Wj(-1,0,f);this.mf=this.Ru()}f=this.kG(e<<1,this.mf);h=this.dg.addElement((e<<1)+1,this.mz(f));this.QJ(f,h);this.Mm.set(e,f);this.Wv++};d.prototype.remove=function(e){if(!this.Wf||!this.nq)throw g.i.ga("invalid call");var f=this.Mm.get(e);if(-1==f)throw g.i.O("the interval does not exist in the interval tree");this.Mm.set(e,-1);this.Wv--;var h=this.mz(f),k=this.dg.TR(h);this.dg.xd(this.sR(f),
h);this.dg.xd(this.NR(f),h);e=this.dg.size(h);0==e&&(this.dg.KP(h),this.UJ(k,-1));this.Ej.ld(f);h=this.OF(k);var m=this.qj(k),n=this.kk(k);for(f=0;!(0<e||k==this.mf||-1!=m&&-1!=n);)k==this.qj(h)?-1!=m?(this.Nk(h,m),this.Uj(m,h),this.Nk(k,-1)):-1!=n?(this.Nk(h,n),this.Uj(n,h),this.Pk(k,-1)):this.Nk(h,-1):-1!=m?(this.Pk(h,m),this.Uj(m,h),this.Nk(k,-1)):-1!=n?(this.Pk(h,n),this.Uj(n,h),this.Pk(k,-1)):this.Pk(h,-1),this.Uj(k,-1),f++,k=h,h=this.lk(k),e=-1!=h?this.dg.size(h):0,m=this.qj(k),n=this.kk(k),
h=this.OF(k)};d.prototype.reset=function(){if(!this.Wf||!this.nq)throw g.i.O("invalid call");this.Mk(!1)};d.prototype.size=function(){return this.Wv};d.prototype.getIterator=function(){return a.construct(this)};d.prototype.XI=function(e){for(var f=this.Fj.length,h=0;h<2*f;h++)e.add(h);this.yX(e,2*f)};d.prototype.WI=function(e){for(var f=NaN,h=0;h<e.size;h++){var k=e.get(h),m=this.mk(k);m!=f&&(this.$h.add(k),f=m)}};d.prototype.pS=function(){var e=this.Fj.length,f=new g.ja(0);f.Jb(2*e);this.XI(f);this.$h.Jb(2*
e);this.$h.resize(0);this.WI(f);this.Ej.Ge(e);this.Ti.hn(2*e);var h=g.$c.Oh(e);h.Wj(-1,0,e);this.mf=this.Ru();for(e=0;e<f.size;e++){var k=f.get(e),m=h.get(k>>1);-1!=m?this.QJ(m,this.Ti.addElement(this.mz(m),k)):(m=this.kG(k,this.mf),h.set(k>>1,m))}};d.prototype.kG=function(e,f){var h=f,k=f,m=-1,n=0,p=this.$h.size-1,q=0,r=e>>1,u=NaN,v=NaN,w=!0,z=this.yR(r);for(r=this.vR(r);w;){n<p?(q=n+g.P.truncate((p-n)/2),-1==this.Xy(h)&&this.AJ(h,this.$h.get(q),this.$h.get(q+1))):-1==this.Xy(h)&&this.AJ(h,this.$h.get(n),
this.$h.get(n));var x=this.Pp(h);if(r<x)-1!=f&&(f==h?(k=h,u=x,f=this.qj(h),v=-1!=f?this.Pp(f):NaN):v>x&&(x<u?this.Nk(k,h):this.Pk(k,h),this.Pk(h,f),this.Wf&&(this.Uj(h,k),this.Uj(f,h)),k=h,u=x,f=-1,v=NaN)),p=this.tR(h),-1==p&&(p=this.Ru(),this.UW(h,p)),h=p,p=q;else if(z>x)-1!=f&&(f==h?(k=h,u=x,f=this.kk(h),v=-1!=f?this.Pp(f):NaN):v<x&&(x<u?this.Nk(k,h):this.Pk(k,h),this.Nk(h,f),this.Wf&&(this.Uj(h,k),this.Uj(f,h)),k=h,u=x,f=-1,v=NaN)),n=this.OR(h),-1==n&&(n=this.Ru(),this.eX(h,n)),h=n,n=q+1;else{w=
this.lk(h);-1==w&&(w=this.xP(h),this.UJ(h,w));var A=this.eN(w,e);m=this.vP();this.hX(m,w);this.TW(m,A);h!=f&&(x<u?this.Nk(k,h):this.Pk(k,h),this.Wf&&this.Uj(h,k),-1!=f&&(v<x?this.Nk(h,f):this.Pk(h,f),this.Wf&&this.Uj(f,h)));w=!1}}return m};d.prototype.Ru=function(){return this.oe.Fe()};d.prototype.xP=function(e){return this.Wf?this.dg.Qr(e):this.Ti.Ph(e)};d.prototype.vP=function(){return this.Ej.Fe()};d.prototype.Mk=function(e){e?(this.Pv=this.Zz=!0,this.nq=!1,null==this.$h?this.$h=g.$c.Oh(0):this.$h.resize(0),
null==this.Fj?this.Fj=[]:this.Fj.length=0):this.Zz=!1;this.Wf?null==this.Mm?(this.Mm=g.$c.Oh(0),this.dg=new g.Xj,this.dg.Wo(new t(this))):this.dg.clear():null==this.Ti?this.Ti=new g.lp:this.Ti.clear();null==this.oe?(this.Ej=new g.bd(3),this.oe=new g.bd(this.Wf?8:7)):(this.Ej.mj(!1),this.oe.mj(!1));this.mf=-1;this.Wv=0};d.prototype.AJ=function(e,f,h){this.NW(e,f);this.OW(e,h)};d.prototype.Pp=function(e){var f=this.Xy(e);if(-1==f)return NaN;f=this.mk(f);e=this.mk(this.cR(e));return f==e?f:.5*(f+e)};
d.prototype.NW=function(e,f){this.oe.U(e,0,f)};d.prototype.OW=function(e,f){this.oe.U(e,1,f)};d.prototype.UW=function(e,f){this.oe.U(e,3,f)};d.prototype.eX=function(e,f){this.oe.U(e,4,f)};d.prototype.UJ=function(e,f){this.oe.U(e,2,f)};d.prototype.Nk=function(e,f){this.oe.U(e,5,f)};d.prototype.Pk=function(e,f){this.oe.U(e,6,f)};d.prototype.Uj=function(e,f){this.oe.U(e,7,f)};d.prototype.hX=function(e,f){this.Ej.U(e,0,f)};d.prototype.eN=function(e,f){return this.Wf?this.dg.addElement(f,e):this.Ti.addElement(e,
f)};d.prototype.TW=function(e,f){this.Ej.U(e,1,f)};d.prototype.QJ=function(e,f){this.Ej.U(e,2,f)};d.prototype.ll=function(e){return this.Wf?this.dg.tc(e):this.Ti.tc(e)};d.prototype.$r=function(e){return this.Wf?this.dg.Hc(e):this.Ti.Hc(e)};d.iq=function(e){return 0==(e&1)};d.Dv=function(e){return 1==(e&1)};d.prototype.Xy=function(e){return this.oe.V(e,0)};d.prototype.cR=function(e){return this.oe.V(e,1)};d.prototype.lk=function(e){return this.oe.V(e,2)};d.prototype.tR=function(e){return this.oe.V(e,
3)};d.prototype.OR=function(e){return this.oe.V(e,4)};d.prototype.qj=function(e){return this.oe.V(e,5)};d.prototype.kk=function(e){return this.oe.V(e,6)};d.prototype.OF=function(e){return this.oe.V(e,7)};d.prototype.mz=function(e){return this.Ej.V(e,0)};d.prototype.sR=function(e){return this.Ej.V(e,1)};d.prototype.NR=function(e){return this.Ej.V(e,2)};d.prototype.yR=function(e){return this.Fj[e].ma};d.prototype.vR=function(e){return this.Fj[e].sa};d.prototype.yX=function(e,f){null==this.Cm&&(this.Cm=
new g.Ut);var h=new l(this);this.Cm.sort(e,0,f,h)};d.prototype.xX=function(e,f,h){var k=this;e.Xd(f,h,function(m,n){var p=k.mk(m),q=k.mk(n);return p<q||p==q&&d.iq(m)&&d.Dv(n)?-1:1})};d.prototype.mk=function(e){var f=this.Fj[e>>1];return d.iq(e)?f.ma:f.sa};return d}();g.ur=b})(y||(y={}));(function(g){var t=function(){function l(c){if(null==c)throw g.i.ga("Invalid arguement");this.kf=c;var a=c.jR();a.aS()?c.gf.DG()?this.mo=g.si.PannableFold:this.mo=g.si.Clip:this.mo=g.si.DontClip;a.bS()?c.bg.DG()?this.Sm=
g.si.PannableFold:this.Sm=g.si.Clip:this.Sm=g.si.DontClip;this.Dm=a.Hu;this.hH=a.By;c=this.kf.nH;this.WG=c.es(2147483648);this.Rv=c.es(1073741824)}l.Ah=function(c,a,b){return a.tw.Ah(c,b)};l.Ot=function(c,a,b,d){return c.tw.Ot(a,b,d)};l.Nt=function(c,a,b,d){b=0>b?a.length:b;c=c.tw.Ot(a,b,d);if(c==b)return c;for(var e=a=0;e<b;e++){var f=d[e];f.isNaN()||(a<e&&d[a].N(f),a++)}for(;a<b;a++)d[a].Uc();return c};l.transform=function(c,a,b,d,e){if(c.isIdentity())return g.ua.iP(d,a,b),b;for(var f=[],h=0,k=
0;k<b;){for(var m=Math.min(f.length,b-k),n=k,p=0;n<m;n++,p++)null==f[p]?f[p]=a[n].D():a[n].D(f[p]);var q=e?l.Nt(c,f,m,f):l.Ot(c,f,m,f);for(p=n=0;n<q;n++,p++)null==d[k]&&(d[k]=new g.Ta(a[k])),d[k].Db(f[p]);k+=m;h+=q}return h};l.prototype.Ot=function(c,a,b){if(this.kf.isIdentity())return c!=b&&g.ua.Pu(b,c,a),a;var d=this.kf.gf,e=this.kf.bg,f=d.Tb(),h=e.Tb();if(0==f&&f===h){var k=d.Sp();e=e.Sp();e=k/e;k=new g.Fd;k.Et(e,e);k.WX(c,a,b);return a}k=g.P.Cu(Math.min(a,64));if(3==f){var m=d.Ji;d=m.ek();f=d.Tb();
b!=c&&g.ua.Pu(b,c,a);g.Ab.$k(m,b,a,!0);m.Nt(g.cm.forward,b,a);g.Ab.Zk(m,b,a,!0)}if(3==f||3===h)throw g.i.ga("image: transform_in_place_");if(2==f)this.mo==g.si.Clip?(b!=c&&g.ua.Pu(b,c,a),c=d.nl(),g.Ab.IS(c,d,b,a)):(b!=c&&g.ua.Pu(b,c,a),d.Yc()&&(f=d.$d(0),m=d.Ne(),g.Ab.vX(b,a,m,f),g.Ab.jF(b,a,d,0))),g.Ab.DL(d,b,a,k);else for(f=d.$d(0),m=d.Ne(),d=0;d<a;d++)g.Ab.wX(c[d],m,f,b[d]);g.Ab.BL(this.kf,b,a,k);c=0;(h=2==h)?c=e.zi():isNaN(this.Dm)||(c=this.Dm);h&&this.Sm!=g.si.Clip||g.Ab.jF(b,a,e.uc(),c);h&&
(g.Ab.tG(b,a,e,this.Sm),g.Ab.CL(e,b,a,k));c=a;for(d=0;d<a;++d)b[d].isNaN()&&c--;return c};l.prototype.Ah=function(c,a){if(this.kf.isIdentity()||c.B())return c;if(33==c.K())return this.SI(c);var b=this.kf.gf,d=this.kf.bg,e=b.Tb(),f=d.Tb();if(0==e&&e==f)return a=b.Sp(),d=d.Sp(),a/=d,d=new g.Fd,d.Et(a,a),c=g.ba.mg(c),c.Rc(d),c;switch(c.K()){case 1607:case 1736:c=this.QI(c,a);break;case 550:c=this.ZV(c,a);break;case 197:c=this.YV(c,a);break;default:throw g.i.ga("");}return c};l.prototype.SI=function(c){var a=
c.D(),b=[];b[0]=a;this.Ot(b,1,b);c=new g.Ta(c);c.Db(b[0]);return c};l.prototype.QI=function(c,a){if(c.vm())throw g.i.ga("curves not supported");var b=c.K();if(1736==b)return this.$V(c,a);if(1607==b)return this.aW(c,a);throw g.i.ga("projectMultiPath");};l.prototype.$V=function(c,a){var b=this.kf.gf,d=this.kf.bg,e=b.Tb(),f=d.Tb(),h=g.P.Cu(Math.min(c.I(),64)),k=g.Ea.mg(c);3==e&&(c=b.Ji,b=c.ek(),e=b.Tb(),k=c.$k(k,!0),this.yp(c,g.cm.forward,k),k=c.Zk(k,!0));c=null;3==f&&(c=d.Ji,d=c.ek(),f=d.Tb());var m=
2==e,n=2==f,p=n?d.uc():d,q=!n&&!this.Rv;f=!1;var r=k;if(m){if(r=g.Ab.OI(r,b,this.mo,a),r.B())return r}else{k=new g.l;r.zc(k);e=b.Ne();if(k.F<e.F||k.H>e.H){var u=g.l.construct(k.v-1,e.F,k.C+1,e.H);r=g.ri.Lu(r,u,b,NaN,0,a);if(r.B())return r}k.S()>2*e.S()&&(r=g.Ab.Jp(r,-2*e.S(),2*e.S(),b,!0,0,!0,a))}k=this.hH;(e=!isNaN(k))&&(r=g.Yl.local().X(r,k,a));u=n?d.jk():null;var v=NaN;m&&(v=b.zi());var w=null!=d.Xr();if(this.WG)m&&(g.Ab.wr(b,v,r,h),e&&(m=b.jh(),v=b.uc().jh(),k*=v/m)),g.Ab.vr(this.kf,r,q,h),e&&
(m=b.uc().jh(),v=d.uc().jh(),k*=v/m),b=r;else{var z=new g.Ua(r.description);z.tD(r);m&&(g.Ab.wr(b,v,z,h),e&&(m=b.jh(),v=b.uc().jh(),k*=v/m));g.Ab.vr(this.kf,z,q,h);e&&(m=b.uc().rm(),v=d.uc().rm(),k*=v/m);q=NaN;n?(u=d.jk(),q=d.zi()):isNaN(this.Dm)||(q=this.Dm);m=l.qv(b)|l.qv(d);v=10*p.$d(0);this.Rv&&(m=3,v=0);b=g.Ab.QQ(r,b,z,p,q,a,m,v)}w&&(b=g.Ab.ND(b,d,a));n&&(f||(n=p.Ne().S(),b.ig(0,0).S()>=n-p.$d(0)&&(p=u.getNorthPoleLocation(),n=u.getSouthPoleLocation(),r=u.getNorthPoleGeometry(),u=u.getSouthPoleGeometry(),
q=0,r==g.Jg.PE_POLE_POINT&&p!=g.Jg.PE_POLE_OUTSIDE_BOUNDARY&&(q=1),u==g.Jg.PE_POLE_POINT&&n!=g.Jg.PE_POLE_OUTSIDE_BOUNDARY&&(q|=2),0!==q&&(f=!0))),b=g.Ab.Cz(b,d,this.Sm,a),e&&(b=g.Yl.local().X(b,k,a)),g.Ab.Ex(d,b,h));if(b.B())return b;f&&(b=g.Zl.local().X(b,d,!1,a));null!=c&&(b=c.Zk(b,!1),this.yp(c,g.cm.reverse,b),b=c.$k(b,!1));return b};l.qv=function(c){if(2!=c.Tb())return 0;var a=0,b=c.jk();c=b.getNorthPoleLocation();var d=b.getSouthPoleLocation(),e=b.getNorthPoleGeometry();b=b.getSouthPoleGeometry();
e==g.Jg.PE_POLE_POINT&&c!=g.Jg.PE_POLE_OUTSIDE_BOUNDARY&&(a=1);b==g.Jg.PE_POLE_POINT&&d!=g.Jg.PE_POLE_OUTSIDE_BOUNDARY&&(a|=2);return a};l.prototype.aW=function(c,a){var b=this.kf.gf,d=this.kf.bg,e=b.Tb(),f=d.Tb(),h=g.P.Cu(Math.min(c.I(),64)),k=g.Ua.mg(c);3==e&&(c=b.Ji,b=c.ek(),e=b.Tb(),k=c.$k(k,!0),this.yp(c,g.cm.forward,k),k=c.Zk(k,!0));c=null;3==f&&(c=d.Ji,d=c.ek(),f=d.Tb());var m=2==e;e=(f=2==f)?d.uc():d;var n=!f&&!this.Rv;if(m){if(k=g.Ab.OI(k,b,this.mo,a),k.B())return k}else{var p=new g.l;k.zc(p);
var q=b.Ne();if(p.F<q.F||p.H>q.H)if(p=g.l.construct(p.v-1,q.F,p.C+1,q.H),k=g.ri.Lu(k,p,b,NaN,0,a),k.B())return k}var r=NaN;m&&(r=b.zi());p=null!=d.Xr();q=this.hH;var u=!isNaN(q);u&&(k=g.Yl.local().X(k,q,a));if(this.WG)m&&g.Ab.wr(b,r,k,h),u&&(m=b.jh(),r=b.uc().jh(),q*=r/m),g.Ab.vr(this.kf,k,n,h),u&&(m=b.uc().jh(),r=d.uc().jh(),q*=r/m),b=k;else{var v=new g.Ua(k.description);v.tD(k);m&&(g.Ab.wr(b,r,v,h),u&&(m=b.jh(),r=b.uc().jh(),q*=r/m));g.Ab.vr(this.kf,v,n,h);u&&(m=b.uc().jh(),r=d.uc().jh(),q*=r/m);
n=NaN;f?n=d.zi():isNaN(this.Dm)||(n=this.Dm);m=l.qv(b)|l.qv(d);r=10*e.$d(0);this.Rv&&(m=3,r=0);b=g.Ab.RQ(k,b,v,e,n,a,m,r)}p&&(b=g.Ab.ND(b,d,a));f&&(b=g.Ab.Cz(b,d,this.Sm,a),u&&(b=g.Yl.local().X(b,q,a)),g.Ab.Ex(d,b,h));if(b.B())return b;null!=c&&(b=c.Zk(b,!1),this.yp(c,g.cm.reverse,b),b=c.$k(b,!1));return b};l.prototype.YV=function(c,a){var b=(c.da()+c.S())/400;0!=b?(b=g.Yl.local().X(c,b,a),b=this.QI(b,a),a=c.Ja(),b.dn(a)):(a=new g.Ta(c.Kp()),b=this.SI(a),a=c.Ja(),b.B()?a.Pa():(c.copyTo(a),c=b.D(),
a.L(c.x,c.y,c.x,c.y)));return a};l.prototype.ZV=function(c,a){c=g.ba.mg(c);var b=this.kf.gf,d=this.kf.bg,e=b.Tb(),f=d.Tb(),h=g.P.Cu(Math.min(c.I(),64));if(3==e){var k=b.Ji;b=k.ek();e=b.Tb();c=k.Zk(c,!0);this.yp(k,g.cm.forward,c);c=k.$k(c,!0)}if(2==e){this.mo==g.si.Clip?c=g.Vk.local().X(c,b.nl(),b,a):b.Yc()&&(e=new g.l,c.zc(e),b.Ne().contains(e)||(this.mo==g.si.PannableFold&&(c=g.Ab.lj(c,b)),g.Ab.Gt(c,b.Ne(),b.$d(0),!0),c=g.Ab.Fn(c,b,0,!0,0,a)));if(c.B())return c;g.Ab.wr(b,0,c,h)}else g.Ab.Gt(c,b.Ne(),
b.$d(0),!0);g.Ab.vr(this.kf,c,!1,h);b=0;e=!1;k=null;3==f&&(e=!0,k=d.Ji,d=k.ek(),f=d.Tb());(f=2==f)?b=d.zi():isNaN(this.Dm)||(b=this.Dm);f&&this.Sm!=g.si.Clip||(c=g.Ab.Fn(c,d.uc(),b,!1,0,a));if(f&&(c=g.Ab.Cz(c,d,this.Sm,a),g.Ab.Ex(d,c,h),c.B()))return c;e&&(c=k.Zk(c,!0),this.yp(k,g.cm.reverse,c),c=k.$k(c,!0));return c};l.prototype.yp=function(c,a,b){var d=b.I();if(0!=d){for(var e=b.lb(0),f=g.P.pg(200,0),h=[],k=0;k<d;){var m=Math.min(100,d-k);e.Sw(2*k,2*m,f,2,!0);for(var n=0;n<m;++n)h[n]=g.h.construct(f[2*
k],f[2*k+1]);c.Nt(a,h,m);k+=m}b.Sc(1993)}};l.Ky=function(c,a,b){if(null==c||null==a||!a.Yc())throw g.i.ga("Invalid Arguement");if(c.B())return c;var d=c.K();197==d?(d=new g.Ea(c.description),d.cd(c,!1)):g.ba.Ad(d)?(d=new g.Ua(c.description),d.pc(c,!0)):d=c;d=g.Ab.lj(d,a);return d.B()?d:g.Ab.Fn(d,a,0,d!=c,0,b)};l.nj=function(c,a,b,d){if(null==c||null==a||!a.Yc())throw g.i.ga("Invalid Arguement");if(c.B())return c;var e=c.K();if(g.ba.Jc(e)){c=g.Ab.lj(c,a);e=new g.l;c.A(e);for(var f=g.ua.iy(a,e,!1),
h=a.ih(),k=Math.floor((e.v-h.v)/h.S())*h.S()+h.v;k<e.C;)k>e.v+f&&k<e.C-f&&(c=g.Ab.oS(c,a,b,k)),k+=h.S()}else{if(197==e)return e=new g.Ea(c.description),e.cd(c,!1),l.nj(e,a,b,d);if(g.ba.Ad(e))return e=new g.Ua(c.description),e.pc(c,!0),l.nj(e,a,b,d)}return l.Ky(c,a,d)};return l}();g.Zt=t})(y||(y={}));(function(g){var t=function(l){function c(a,b,d,e){var f=l.call(this)||this;void 0===a?f.description=g.ge.sg():void 0===d?f.description=a:(f.description=g.ge.sg(),f.NB(a,b),f.Rl(d,e));return f}E(c,l);
c.prototype.K=function(){return 322};c.prototype.Rb=function(){var a=this.ta-this.qa,b=this.pa-this.na;return Math.sqrt(a*a+b*b)};c.prototype.Bi=function(a){var b=this.ta-this.qa,d=this.pa-this.na;return Math.sqrt(b*b+d*d)<=a};c.prototype.Qn=function(){return!1};c.prototype.ng=function(){var a=new g.h;a.wc(this.yc(),this.bc());return a};c.bP=function(a,b){return new c(a.x,a.y,b.x,b.y)};c.prototype.dn=function(a){a.Pa();a.og(this.description);var b=new g.l;this.A(b);a.Yo(b);b=1;for(var d=this.description.Ba;b<
d;b++)for(var e=this.description.rd(b),f=g.va.Wa(e);b<f;b++){var h=this.ig(e,0);a.setInterval(e,0,h)}};c.prototype.A=function(a){a.L(this.ta,this.pa,this.qa,this.na);a.normalize()};c.prototype.Ro=function(a){a.Pa();a.$b(this.ta,this.pa,this.Qd(0,1,0));a.$b(this.qa,this.na,this.Qd(1,1,0))};c.prototype.Rc=function(a){if(a instanceof g.Fd){this.xc();var b=new g.h;b.x=this.ta;b.y=this.pa;a.Fh(b,b);this.ta=b.x;this.pa=b.y;b.x=this.qa;b.y=this.na;a.Fh(b,b);this.qa=b.x;this.na=b.y}else this.xc(),b=new g.Pd,
b.x=this.ta,b.y=this.pa,b.z=this.Qd(0,1,0),b=a.gp(b),this.ta=b.x,this.pa=b.y,this.un(0,1,0,b.z),b.x=this.qa,b.y=this.na,b.z=this.Qd(1,1,0),b=a.gp(b),this.qa=b.x,this.na=b.y,this.un(1,1,0,b.z)};c.prototype.Ja=function(){return new c(this.description)};c.prototype.Mx=function(a,b){return(this.qa-a-(this.ta-a))*(this.na-b+(this.pa-b))*.5};c.prototype.px=function(a){return a*this.Rb()};c.prototype.IG=function(a){return a/this.Rb()};c.prototype.wF=function(a){return g.oc.jq(this.ta,this.qa,a)};c.prototype.bR=
function(a){return g.oc.jq(this.pa,this.na,a)};c.prototype.dl=function(a,b){var d=new g.lg;this.eh(a,b,d);return d.get()};c.prototype.eh=function(a,b,d){if(null==d)throw g.i.O();d.Pr();d=d.get();d.og(this.description);var e=new g.h;this.jc(a,e);d.NB(e.x,e.y);this.jc(b,e);d.Rl(e.x,e.y);e=1;for(var f=this.description.Ba;e<f;e++)for(var h=this.description.Gd(e),k=g.va.Wa(h),m=0;m<k;m++){var n=this.Wc(a,h,m);d.MB(h,m,n);n=this.Wc(b,h,m);d.DB(h,m,n)}};c.prototype.Wc=function(a,b,d){if(0==b)return 0==d?
this.jc(a).x:this.jc(a).y;switch(g.va.bz(b)){case 0:return.5>a?this.tv(b,d):this.dv(b,d);case 1:var e=this.tv(b,d);b=this.dv(b,d);return g.oc.jq(e,b,a);case 2:throw g.i.ga("not implemented");}throw g.i.Ra();};c.prototype.he=function(a,b){var d=this.qa-this.ta,e=this.na-this.pa,f=d*d+e*e;if(0==f)return.5;a=((a.x-this.ta)*d+(a.y-this.pa)*e)/f;b||(0>a?a=0:1<a&&(a=1));return a};c.prototype.fq=function(a,b,d,e){if(a){a=this.na-this.pa;if(0==a)return b==this.na?-1:0;b=(b-this.pa)/a;if(0>b||1<b)return 0;
null!=d&&(d[0]=this.wF(b))}else{a=this.qa-this.ta;if(0==a)return b==this.qa?-1:0;b=(b-this.ta)/a;if(0>b||1<b)return 0;null!=d&&(d[0]=this.bR(b))}null!=e&&(e[0]=b);return 1};c.prototype.Oe=function(a,b){var d=this.na-this.pa;if(0==d)return a==this.na?b:NaN;a=(a-this.pa)/d;b=this.wF(a);1==a&&(b=this.qa);return b};c.prototype.ou=function(a,b,d){return 0<=this.sp(a.x,a.y,b,d)};c.prototype.vi=function(a,b,d){return 0<=this.sp(a,b,d,!0)};c.prototype.ns=function(a,b){return this.ou(a,b,!1)};c.prototype.mI=
function(){if(this.na<this.pa||this.na==this.pa&&this.qa<this.ta){var a=this.ta;this.ta=this.qa;this.qa=a;a=this.pa;this.pa=this.na;this.na=a;a=0;for(var b=this.description.Qq-2;a<b;a++){var d=this.la[a];this.la[a]=this.la[a+b];this.la[a+b]=d}}};c.prototype.ru=function(a,b){b=g.h.construct(a,b);b.sub(this.bc());var d=new g.h;d.wc(this.yc(),this.bc());a=d.wi(b);b=8.881784197001252E-16*(Math.abs(d.x*b.y)+Math.abs(d.y*b.x));return a>b?-1:a<-b?1:0};c.prototype.sp=function(a,b,d,e){var f=this.ta,h=this.pa,
k=a-f,m=b-h;k=Math.sqrt(k*k+m*m);if(k<=Math.max(d,6.661338147750939E-16*k))return e&&0==k?NaN:0;k=a-this.qa;m=b-this.na;k=Math.sqrt(k*k+m*m);if(k<=Math.max(d,6.661338147750939E-16*k))return e&&0==k?NaN:1;k=this.qa-this.ta;m=this.na-this.pa;e=Math.sqrt(k*k+m*m);if(0<e){var n=1/e;k*=n;m*=n;var p=a-f,q=b-h,r=p*k+q*m,u=1.7763568394002505E-15*(Math.abs(p*k)+Math.abs(q*m)),v=k;k=-m;m=v;u=Math.max(d,u);if(r<-u||r>e+u)return NaN;if(Math.abs(p*k+q*m)<=Math.max(d,1.7763568394002505E-15*(Math.abs(p*k)+Math.abs(q*
m)))&&(k=g.P.Qk(r*n,0,1),.5>=k?(m=this.ta+(this.qa-this.ta)*k,e=this.pa+(this.na-this.pa)*k):(m=this.qa-(this.qa-this.ta)*(1-k),e=this.na-(this.na-this.pa)*(1-k)),g.h.Ey(m,e,a,b)<=d)){if(.5>k){if(g.h.Ey(m,e,f,h)<=d)return 0}else if(g.h.Ey(m,e,this.qa,this.na)<=d)return 1;return k}}return NaN};c.prototype.Nb=function(a){return null==a?!1:a==this?!0:a.constructor!==this.constructor?!1:this.CM(a)};c.prototype.hD=function(a,b,d){var e=d?this.ta:this.qa;d=d?this.pa:this.na;var f=new g.h;f.x=a.qa-e;f.y=
a.na-d;return b.Qh(f)>6.661338147750939E-16*b.VC(f)?(f.x=a.ta-e,f.y=a.pa-d,b.Qh(f)<=6.661338147750939E-16*b.VC(f)):!0};c.prototype.gD=function(a){var b=new g.h;b.x=this.qa-this.ta;b.y=this.na-this.pa;if(!this.hD(a,b,!1))return!1;b.Uq();return this.hD(a,b,!0)?!0:!1};c.LM=function(a,b){var d=a.ru(b.ta,b.pa),e=a.ru(b.qa,b.na);if(0>d&&0>e||0<d&&0<e)return!1;d=b.ru(a.ta,a.pa);e=b.ru(a.qa,a.na);if(0>d&&0>e||0<d&&0<e)return!1;d=a.Rb();e=b.Rb();return d>e?a.gD(b):b.gD(a)};c.IM=function(a,b,d){var e=g.h.construct(NaN,
NaN),f=a.qa-a.ta,h=a.na-a.pa,k=b.qa-b.ta,m=b.na-b.pa,n=k*h-f*m;if(0==n)return e;var p=8.881784197001252E-16*(Math.abs(k*h)+Math.abs(f*m)),q=b.ta-a.ta,r=b.pa-a.pa,u=k*r-q*m,v=u/n,w=Math.abs(n);k=(8.881784197001252E-16*(Math.abs(k*r)+Math.abs(q*m))*w+p*Math.abs(u))/(n*n)+2.220446049250313E-16*Math.abs(v);if(v<-k||v>1+k)return e;m=f*r-q*h;k=m/n;f=(8.881784197001252E-16*(Math.abs(f*r)+Math.abs(q*h))*w+p*Math.abs(m))/(n*n)+2.220446049250313E-16*Math.abs(k);if(k<-f||k>1+f)return e;v=g.P.Qk(v,0,1);f=g.P.Qk(k,
0,1);h=a.jc(v);n=b.jc(f);p=new g.h;p.wc(h,n);if(p.length()>d&&(p.add(h,n),p.scale(.5),v=a.he(p,!1),f=b.he(p,!1),a=a.jc(v),b=b.jc(f),a.sub(b),a.length()>d))return e;e.oa(v,f);return e};c.MM=function(a,b,d,e){var f=0;if(a.ta==b.ta&&a.pa==b.pa||a.ta==b.qa&&a.pa==b.na)if(f++,!e)return 1;if(a.qa==b.ta&&a.na==b.pa||a.qa==b.qa&&a.na==b.na){f++;if(2==f)return 2;if(!e)return 1}return b.vi(a.ta,a.pa,d)||b.vi(a.qa,a.na,d)||a.vi(b.ta,b.pa,d)||a.vi(b.qa,b.na,d)?1:e&&0!=f?0:0==c.LM(a,b)?0:1};c.Sx=function(a,b,
d,e,f,h){var k=0,m=a.sp(b.ta,b.pa,h,!1),n=a.sp(b.qa,b.na,h,!1),p=b.sp(a.ta,a.pa,h,!1),q=b.sp(a.qa,a.na,h,!1);isNaN(m)||(null!=e&&(e[k]=m),null!=f&&(f[k]=0),null!=d&&(d[k]=g.h.construct(b.ta,b.pa)),k++);isNaN(n)||(null!=e&&(e[k]=n),null!=f&&(f[k]=1),null!=d&&(d[k]=g.h.construct(b.qa,b.na)),k++);2==k||isNaN(p)||0==m&&0==p||0==n&&1==p||(null!=e&&(e[k]=0),null!=f&&(f[k]=p),null!=d&&(d[k]=g.h.construct(a.ta,a.pa)),k++);2==k||isNaN(q)||1==m&&0==q||1==n&&1==q||(null!=e&&(e[k]=1),null!=f&&(f[k]=q),null!=
d&&(d[k]=g.h.construct(b.qa,b.na)),k++);if(0<k)return 2==k&&null!=e&&e[0]>e[1]&&(a=e[0],e[0]=e[1],e[1]=a,null!=f&&(e=f[0],f[0]=f[1],f[1]=e),null!=d&&(f=g.h.construct(d[0].x,d[0].y),d[0]=d[1],d[1]=f)),k;k=c.IM(a,b,h);if(isNaN(k.x))return 0;null!=d&&(d[0]=a.jc(k.x));null!=e&&(e[0]=k.x);null!=f&&(f[0]=k.y);return 1};c.prototype.ZF=function(){return 0};c.prototype.pp=function(){};c.prototype.toString=function(){return"Line: ["+this.ta.toString()+", "+this.pa.toString()+", "+this.qa.toString()+", "+this.na.toString()+
"]"};return c}(g.FC);g.zb=t})(y||(y={}));(function(g){var t=function(){function l(){this.Lm=[];this.za=-1}l.prototype.Ma=function(){return this.za};l.prototype.next=function(){if(null!=this.Lm&&0!=this.Lm.length){this.za++;var c=this.Lm[0];this.Lm=1>=this.Lm.length?[]:this.Lm.slice(1);return c}return this.Lm=null};l.prototype.QX=function(c){this.Lm.push(c)};l.prototype.se=function(){};return l}();g.bL=t})(y||(y={}));(function(g){(function(l){l[l.enumFillRuleOddEven=0]="enumFillRuleOddEven";l[l.enumFillRuleWinding=
1]="enumFillRuleWinding"})(g.NL||(g.NL={}));var t=function(l){function c(a,b){var d=l.call(this)||this;d.Bf=!1;d.Gq=null;d.uq=0;d.tq=0;d.Aj=null;d.Rg=!1;d.ob=null;d.nb=null;d.Ue=null;d.Lj=null;d.Ud=null;d.vq=0;d.gb=0;d.zq=0;if(void 0===b)d.Bf=a,d.Rg=!1,d.vq=0,d.uq=0,d.tq=0,d.xa=0,d.description=g.ge.sg();else{if(null==b)throw g.i.O();d.Bf=a;d.Rg=!1;d.vq=0;d.uq=0;d.tq=0;d.xa=0;d.description=b}d.Aj=null;d.gb=0;return d}E(c,l);c.prototype.vm=function(){return 0<this.vq};c.prototype.Rx=function(){this.xc();
null==this.Gq?this.Gq=new g.Ta(this.description):this.Gq.og(this.description)};c.prototype.mx=function(a,b){var d=new g.h;d.x=a;d.y=b;this.It(d)};c.prototype.It=function(a){this.Rx();this.Gq.Db(a);this.Rg=!0};c.prototype.qf=function(a){if(a.B())throw g.i.O();this.Kl(a.description);this.Rx();a.copyTo(this.Gq);this.Rg=!0};c.prototype.Lx=function(){var a=1;this.Rg&&(this.Rx(),null==this.ob?(this.ob=g.$c.Oh(2),this.ob.write(0,0),this.nb=g.$c.Nr(2,0)):(this.ob.resize(this.ob.size+1,0),this.nb.resize(this.nb.size+
1,0)),this.Bf&&this.nb.write(this.nb.size-2,1),a++);var b=this.xa;this.ob.write(this.ob.size-1,this.xa+a);this.fm(b+a);this.nb.write(this.ob.size-1,0);this.Rg&&(this.Dt(b,this.Gq),this.Rg=!1)};c.prototype.yj=function(a,b){this.Lx();this.Db(this.xa-1,a,b)};c.prototype.Ci=function(a){this.Lx();this.Db(this.xa-1,a)};c.prototype.lineTo=function(a){this.Lx();this.Dt(this.xa-1,a)};c.prototype.vU=function(a){this.xc();if(this.Bf)throw g.i.Ra();var b=this.ea();if(a>b)throw g.i.Ra();if(this.ec(a)){if(null==
this.nb)throw g.i.Ra();var d=this.xa,e=this.Ca(a),f=this.Xc(a);this.fm(this.xa+1);this.sc();for(var h=0,k=this.description.Ba;h<k;h++)if(null!=this.Aa[h]){var m=g.va.Wa(this.description.Gd(h));this.Aa[h].Nn(m*f,this.Aa[h],m*e,m,!0,1,m*d)}for(;b>a;b--)d=this.ob.read(b),this.ob.write(b,d+1);this.nb.AE(a,1)}};c.prototype.Cp=function(){this.qx();if(void 0===a){this.Rg=!1;var a=this.ea()-1}var b=this.nb.read(a);this.nb.write(a,b|1);null!=this.Ue&&(a=this.Xc(a)-1,this.Ue.write(a,1),this.Lj.write(a,-1))};
c.prototype.ec=function(a){return 0!=(this.nb.read(a)&1)};c.prototype.On=function(a){if(this.ec(a))return!0;var b=this.Ca(a);a=this.Xc(a)-1;if(b>a)return!1;b=this.Oa(b);a=this.Oa(a);return b.sb(a)};c.prototype.vv=function(a){return 0!=(this.nb.read(a)&2)};c.prototype.pc=function(a,b){this.Kl(a.description);if(322==a.K()){var d=new g.Ta;if(b||this.B())a.Uo(d),this.qf(d);a.Qo(d);this.lineTo(d)}else throw g.i.Ra();};c.prototype.vp=function(a){var b=0==this.xa;this.mx(a.v,a.F);this.yj(a.v,a.H);this.yj(a.C,
a.H);this.yj(a.C,a.F);this.Cp();this.Rg=!1;b&&this.Qf(256,!1)};c.prototype.cd=function(a,b){if(!a.B()){for(var d=0==this.xa,e=new g.Ta(this.description),f=0;4>f;f++)a.Lf(b?4-f-1:f,e),0==f?this.qf(e):this.lineTo(e);this.Cp();this.Rg=!1;d&&!b&&this.Qf(256,!1)}};c.prototype.add=function(a,b){for(var d=0;d<a.ea();d++)this.addPath(a,d,!b)};c.prototype.addPath=function(a,b,d){this.zf(-1,a,b,d)};c.prototype.Yk=function(a,b){this.xz(a,b)};c.prototype.Fr=function(a,b,d,e,f){f||0!=this.ea()||(f=!0);0>b&&(b=
a.ea()-1);if(b>=a.ea()||0>d||0>e||e>a.ov(b))throw g.i.ga("index out of bounds");if(0!=e){var h=a.ec(b)&&d+e==a.ov(b);if(!h||1!=e){this.Rg=!1;this.Kl(a.description);d=a.Ca(b)+d+1;f&&(e++,d--);h&&e--;h=this.xa;this.fm(this.xa+e);this.sc();if(f){if(0==e)return;this.ob.add(this.xa);f=a.nb.read(b);f&=-5;this.Bf&&(f|=1);this.nb.write(this.nb.size-1,f);this.nb.add(0)}else this.ob.write(this.nb.size-1,this.xa);f=0;for(var k=this.description.Ba;f<k;f++){var m=this.description.rd(f),n=g.va.Wa(m),p=a.description.Tf(m);
0>p||null==a.Aa[p]?this.Aa[f].Mn(n*h,g.va.ve(m),e*n,n*h):this.Aa[f].Nn(n*h,a.Aa[p],n*d,e*n,!0,n,n*h)}if(this.vm())throw g.i.Ra();if(a.vv(b))throw g.i.Ra();this.Sc(1993)}}};c.prototype.jJ=function(){for(var a=0,b=this.ea();a<b;a++)this.xW(a)};c.prototype.xW=function(a){this.sc();if(a>=this.ea())throw g.i.O();var b=this.Ca(a),d=this.Ka(a);a=this.ec(a)?1:0;for(var e=0,f=this.description.Ba;e<f;e++)if(null!=this.Aa[e]){var h=g.va.Wa(this.description.Gd(e));this.Aa[e].ni(h*(b+a),h*(d-a),h)}this.Sc(1993)};
c.prototype.ar=function(a){this.sc();var b=this.ea();0>a&&(a=b-1);if(a>=b)throw g.i.O();for(var d=this.Ca(a),e=this.Ka(a),f=0,h=this.description.Ba;f<h;f++)if(null!=this.Aa[f]){var k=g.va.Wa(this.description.Gd(f));this.Aa[f].En(k*d,k*e,k*this.xa)}for(d=a+1;d<=b;d++)f=this.ob.read(d),this.ob.write(d-1,f-e);if(null==this.nb)for(d=a+1;d<=b;d++)a=this.nb.read(d),this.nb.write(d-1,a);this.ob.resize(b);this.nb.resize(b);this.xa-=e;this.Ug-=e;this.Sc(1993)};c.prototype.zf=function(a,b,d,e){if(b==this)throw g.i.O();
if(d>=b.ea())throw g.i.O();var f=this.ea();if(a>f)throw g.i.O();0>a&&(a=f);0>d&&(d=b.ea()-1);this.Rg=!1;this.Kl(b.description);b.sc();var h=b.Ca(d),k=b.Ka(d),m=this.xa,n=b.ec(d)&&!e?1:0;this.fm(this.xa+k);this.sc();for(var p=a<f?this.Ca(a):m,q=0,r=this.description.Ba;q<r;q++){var u=this.description.Gd(q),v=b.description.Tf(u),w=g.va.Wa(u);0<=v&&null!=b.Aa[v]?(0!=n&&this.Aa[q].Nn(p*w,b.Aa[v],w*h,w,!0,w,w*m),this.Aa[q].Nn((p+n)*w,b.Aa[v],w*(h+n),w*(k-n),e,w,w*(m+n))):this.Aa[q].Mn(p*w,g.va.ve(u),w*
k,w*m)}this.ob.add(m+k);for(e=f;e>=a+1;e--)h=this.ob.read(e-1),this.ob.write(e,h+k);b.vv(d);this.nb.add(0);for(e=f-1;e>=a+1;e--)f=this.nb.read(e),f&=-5,this.nb.write(e+1,f);f=b.ER().read(d);f&=-5;this.Bf&&(f|=1);this.nb.write(a,f)};c.prototype.xz=function(a,b){var d=-1,e=this.ea();if(d>e)throw g.i.O();0>d&&(d=e);this.Rg=!1;var f=this.xa;this.fm(this.xa+b);this.sc();var h=d<e?this.Ca(d):f;if(null!=a)this.Aa[0].yz(2*h,a,0,b,!0,2*f);else{var k=g.va.ve(0);this.Aa[0].Mn(2*h,k,2*b,2*f)}a=1;for(var m=this.description.Ba;a<
m;a++){k=this.description.rd(a);var n=g.va.Wa(k);k=g.va.ve(k);this.Aa[a].Mn(h*n,k,n*b,n*f)}this.ob.add(this.xa);for(f=e;f>=d+1;f--)h=this.ob.read(f-1),this.ob.write(f,h+b);this.nb.add(0);for(f=e-1;f>=d+1;f--)b=this.nb.read(f),b&=-5,this.nb.write(f+1,b);this.Bf&&this.nb.write(d,1)};c.prototype.lG=function(a,b,d){var e=-1;0>a&&(a=this.ea());if(a>this.ea()||e>this.Ka(a)||d>b.length)throw g.i.ga("index out of bounds");if(0!=d){a==this.ea()&&(this.ob.add(this.xa),this.Bf?this.nb.add(1):this.nb.add(0));
0>e&&(e=this.Ka(a));this.sc();var f=this.xa;this.fm(this.xa+d);this.sc();for(var h=0,k=this.description.Ba;h<k;h++){var m=this.description.Gd(h),n=g.va.Wa(m);this.Aa[h].Rt(n*(this.Ca(a)+e+d),(f-this.Ca(a)-e)*n,this.Aa[h],n*(this.Ca(a)+e),!0,n);0==h?this.Aa[h].jC(n*(this.Ca(a)+e),d,b,0,!0):this.Aa[h].Wj(g.va.ve(m),(this.Ca(a)+e)*n,d*n)}this.vm()&&(this.Ue.Rt(this.Ca(a)+e+d,f-this.Ca(a)-e,this.Ue,this.Ca(a)+e,!0,1),this.Lj.Rt(this.Ca(a)+e+d,f-this.Ca(a)-e,this.Lj,this.Ca(a)+e,!0,1),this.Ue.Wj(1,this.Ca(a)+
e,d),this.Lj.Wj(-1,this.Ca(a)+e,d));a+=1;for(b=this.ea();a<=b;a++)this.ob.write(a,this.ob.read(a)+d)}};c.prototype.Af=function(a,b,d){var e=this.ea();0>a&&(a=this.ea());if(a>=e||b>this.Ka(a))throw g.i.ga("index out of bounds");a==this.ea()&&(this.ob.add(this.xa),this.Bf?this.nb.add(1):this.nb.add(0));0>b&&(b=this.Ka(a));var f=this.xa;this.fm(this.xa+1);this.sc();var h=this.Ca(a);this.Aa[0].vj(2*(h+b),d,2*f);d=1;for(var k=this.description.Ba;d<k;d++){var m=this.description.Gd(d),n=g.va.Wa(m);this.Aa[d].Mn(n*
(h+b),g.va.ve(m),n,n*f)}for(a+=1;a<=e;a++)this.ob.write(a,this.ob.read(a)+1)};c.prototype.sB=function(a,b){var d=this.ea();0>a&&(a=d-1);if(a>=d||b>=this.Ka(a))throw g.i.ga("index out of bounds");this.sc();var e=this.Ca(a);0>b&&(b=this.Ka(a)-1);b=e+b;e=0;for(var f=this.description.Ba;e<f;e++)if(null!=this.Aa[e]){var h=g.va.Wa(this.description.Gd(e));this.Aa[e].En(h*b,h,h*this.xa)}for(;d>=a+1;d--)b=this.ob.read(d),this.ob.write(d,b-1);this.xa--;this.Ug--;this.Sc(1993)};c.prototype.kE=function(a,b,d,
e){a=this.Ca(a)+b;d=this.Ca(d)+e;if(d<a||0>a||d>this.I()-1)throw g.i.O();e=this.Ha();b=0;e.Wb(a);do{for(;e.Ia();){a=e.ia();if(e.xb()==d)break;a=a.Rb();b+=a}if(e.xb()==d)break}while(e.ab());return b};c.prototype.eO=function(a,b,d){b=this.Ca(a)+b;d=this.Ca(a)+d;if(0>b||d>this.I()-1)throw g.i.O();var e=this.Ha();if(b>d){if(!this.ec(a))throw g.i.O("cannot iterate across an open path");e.yB()}var f=a=0;e.Wb(b);do f+=a,a=e.ia().Rb();while(e.xb()!=d);return f};c.prototype.qg=function(){return g.pi.im(this,
null)};c.prototype.ES=function(a,b,d){for(var e=a;e<d-1;e++)if(this.ec(e))throw g.i.O("cannot interpolate across closed paths");e=this.description.Ba;if(1!=e){var f=this.kE(a,b,d,void 0);if(0!=f)for(var h=1;h<e;h++){var k=this.description.rd(h);if(2!=g.va.bz(k))for(var m=g.va.Wa(k),n=0;n<m;n++)this.GS(k,a,b,d,f,n)}}};c.prototype.DS=function(a,b,d){var e=this.description.Ba;if(1!=e){var f=this.eO(a,b,d);if(0!=f)for(var h=1;h<e;h++){var k=this.description.rd(h);if(2!=g.va.bz(k))for(var m=g.va.Wa(k),
n=0;n<m;n++)this.FS(k,a,b,d,f,n)}}};c.prototype.GS=function(a,b,d,e,f,h){var k=this.Ha(),m=this.Ca(b)+d;e=this.Ca(e)+void 0;b=this.Wc(a,m,h);d=this.Wc(a,e,h);var n=b,p=0;k.Wb(m);do if(k.Ia()){k.ia();if(k.xb()==e)break;this.setAttribute(a,k.xb(),h,n);k.li();do{m=k.ia();if(k.hk()==e)return;m=m.Rb();p+=m;n=g.oc.jq(b,d,p/f);k.Pn()||this.setAttribute(a,k.hk(),h,n)}while(k.Ia())}while(k.ab())};c.prototype.FS=function(a,b,d,e,f,h){var k=this.Ha(),m=this.Ca(b)+d;b=this.Ca(b)+e;if(b!=m){e=this.Wc(a,m,h);d=
this.Wc(a,b,h);var n=0;k.Wb(m);k.yB();m=e;do{var p=k.ia();this.setAttribute(a,k.xb(),h,m);m=p.Rb();n+=m;m=g.oc.jq(e,d,n/f)}while(k.hk()!=b)}};c.prototype.Pa=function(){this.vq=0;this.Rg=!1;this.Ud=this.Ue=this.Lj=this.nb=this.ob=null;this.mD()};c.prototype.Rc=function(a){a instanceof g.Fd?this.OD(a,-1):this.vN(a)};c.prototype.OD=function(a,b){if(!this.B()&&!a.isIdentity()){this.sc();var d=this.Aa[0],e=new g.h,f=new g.h;if(0>b){var h=this.vm(),k=0;b=this.xa}else h=this.vv(b),k=this.Ca(b),b=this.Xc(b);
for(;k<b;k++){e.x=d.read(2*k);e.y=d.read(2*k+1);if(h){var m=this.Lj.read(k);if(0<=m)switch(this.Ue.read(k)&7){case 2:f.x=this.Ud.read(m);f.y=this.Ud.read(m+1);a.Fh(f,f);this.Ud.write(m,f.x);this.Ud.write(m+1,f.y);f.x=this.Ud.read(m+3);f.y=this.Ud.read(m+4);a.Fh(f,f);this.Ud.write(m+3,f.x);this.Ud.write(m+4,f.y);break;case 4:throw g.i.Ra();}}a.Fh(e,e);d.write(2*k,e.x);d.write(2*k+1,e.y)}this.Sc(1993)}};c.prototype.vN=function(a){if(!this.B()){this.ue(1);this.sc();for(var b=this.Aa[0],d=this.Aa[1],
e=new g.Pd,f=new g.Pd,h=this.vm(),k=0;k<this.xa;k++){e.x=b.read(2*k);e.y=b.read(2*k+1);e.z=d.read(k);if(h){var m=this.Lj.read(k);if(0<=m)switch(this.Ue.read(k)&7){case 2:f.x=this.Ud.read(m);f.y=this.Ud.read(m+1);f.z=this.Ud.read(m+2);f=a.gp(f);this.Ud.write(m,f.x);this.Ud.write(m+1,f.y);this.Ud.write(m+1,f.z);f.x=this.Ud.read(m+3);f.y=this.Ud.read(m+4);f.z=this.Ud.read(m+5);f=a.gp(f);this.Ud.write(m+3,f.x);this.Ud.write(m+4,f.y);this.Ud.write(m+5,f.z);break;case 4:throw g.i.Ra();}}e=a.gp(e);b.write(2*
k,e.x);b.write(2*k+1,e.y);d.write(k,e.z)}this.Sc(1993)}};c.prototype.Zx=function(){null==this.ob&&(this.ob=g.$c.Oh(1,0),this.nb=g.$c.Nr(1,0));null!=this.Ue&&(this.Ue.resize(this.Ug,1),this.Lj.resize(this.Ug,-1))};c.prototype.pp=function(a){a.Rg=!1;a.vq=this.vq;a.zq=this.zq;a.ob=null!=this.ob?g.ja.Bn(this.ob):null;a.nb=null!=this.nb?g.rn.Bn(this.nb):null;a.Lj=null!=this.Lj?g.ja.Bn(this.Lj):null;a.Ue=null!=this.Ue?g.rn.Bn(this.Ue):null;a.Ud=null!=this.Ud?g.ee.Bn(this.Ud):null;a.uq=this.uq;a.tq=this.tq;
a.Aj=this.$j(1024)?null:this.Aj};c.prototype.Rb=function(){if(!this.$j(512))return this.uq;for(var a=this.Ha(),b=new g.yx(0);a.ab();)for(;a.Ia();)b.add(a.ia().Rb());this.uq=b.tm();this.Qf(512,!1);return b.tm()};c.prototype.Nb=function(a){if(a==this)return!0;if(!(a instanceof c&&l.prototype.Nb.call(this,a)))return!1;var b=this.ea();return b!=a.ea()||null!=this.ob&&!this.ob.Nb(a.ob,0,b+1)||this.zq!=a.zq||null!=this.nb&&!this.nb.Nb(a.nb,0,b)?!1:l.prototype.Nb.call(this,a)};c.prototype.Ha=function(){return new g.TL(this)};
c.prototype.Yx=function(a){l.prototype.Yx.call(this,a);if(this.vm())for(a=this.Ha();a.ab();)for(;a.Ia();)break};c.prototype.Ap=function(a,b){l.prototype.Ap.call(this,a,b);if(this.vm())for(a=this.Ha();a.ab();)for(;a.Ia();)break};c.prototype.Tx=function(){this.xa=null==this.ob||0==this.ob.size?0:this.ob.read(this.ob.size-1)};c.prototype.Je=function(){if(!this.Bf)return 0;this.uu();return this.tq};c.prototype.Bv=function(a){if(!this.Bf)return!1;if(!this.$j(8))return 0!=(this.nb.read(a)&4);this.uu();
return 0<this.Aj.read(a)};c.prototype.Kr=function(a){if(!this.Bf)return 0;this.uu();return this.Aj.read(a)};c.prototype.uu=function(){if(this.$j(1024)){var a=this.ea();null==this.Aj?this.Aj=new g.ee(a):this.Aj.size!=a&&this.Aj.resize(a);a=new g.yx(0);for(var b=new g.yx(0),d=new g.h,e=0,f=this.Ha();f.ab();){b.reset();for(this.D(this.Ca(f.gb),d);f.Ia();)b.add(f.ia().Mx(d.x,d.y));a.add(b.tm());var h=e++;this.Aj.write(h,b.tm())}this.tq=a.tm();this.Qf(1024,!1)}};c.prototype.AR=function(){if(this.Bf){this.hm();
for(var a=0,b=this.ea(),d=0;d<b;d++)0!=(this.nb.read(d)&4)&&a++}};c.prototype.hm=function(){if(this.$j(8)){this.uu();var a=this.ea();if(null==this.nb||this.nb.size<a)this.nb=g.$c.Nr(a+1);for(var b=1,d=0;d<a;d++){var e=this.Aj.read(d);0==d&&(b=0<e?1:-1);0<e*b?this.nb.uJ(d,4):this.nb.AE(d,4)}this.Qf(8,!1)}};c.prototype.iz=function(a){var b=this.gb,d=this.ea();if(0<=b&&b<d){if(a<this.Xc(b)){if(a>=this.Ca(b))return b;b--}else b++;if(0<=b&&b<d&&a>=this.Ca(b)&&a<this.Xc(b))return this.gb=b}if(5>d){for(b=
0;b<d;b++)if(a<this.Xc(b))return this.gb=b;throw g.i.ga("corrupted geometry");}b=0;for(--d;d>b;){var e=b+(d-b>>1),f=this.Ca(e);if(a<f)d=e-1;else if(b=this.Xc(e),a>=b)b=e+1;else return this.gb=e}return this.gb=b};c.prototype.nz=function(){var a=this.I();if(!this.Bf){a-=this.ea();for(var b=0,d=this.ea();b<d;b++)this.ec(b)&&a++}return a};c.prototype.ov=function(a){var b=this.Ka(a);this.ec(a)||b--;return b};c.prototype.Ja=function(){return new c(this.Bf,this.description)};c.prototype.Eb=function(){return this.Bf?
2:1};c.prototype.K=function(){return this.Bf?1736:1607};c.prototype.LJ=function(a){this.ob=a;this.Sc(16777215)};c.prototype.PR=function(){this.qx();return this.Ue};c.prototype.ER=function(){this.qx();return this.nb};c.prototype.KJ=function(a){this.nb=a;this.Sc(16777215)};c.prototype.ea=function(){return null!=this.ob?this.ob.size-1:0};c.prototype.Xc=function(a){return this.ob.read(a+1)};c.prototype.Ka=function(a){return this.ob.read(a+1)-this.ob.read(a)};c.prototype.Ca=function(a){return this.ob.read(a)};
c.prototype.iu=function(a,b){null==this.Cb&&(this.Cb=new g.Tk);b=g.Gx.iW(b);var d=this.Cb.Ek;if(null!=d)if(d.Hk<a||b>d.LR())this.Cb.oD(null);else return!0;d=g.Gx.create(this,a,b);this.Cb.oD(d);return!0};c.prototype.dc=function(){var a=l.prototype.dc.call(this);if(!this.Cc()){var b=this.ea();null!=this.ob&&this.ob.An(a,0,b+1);null!=this.nb&&this.nb.An(a,0,b)}return a};c.prototype.TF=function(a){return null!=this.Ue?this.Ue.read(a):1};c.prototype.cc=function(a,b,d){var e=this.iz(a);if(a==this.Xc(e)-
1&&!this.ec(e))throw g.i.ga("index out of bounds");this.sc();var f=this.Ue,h=1;null!=f&&(h=f.read(a)&7);switch(h){case 1:b.Pr();break;case 2:throw g.i.Ra();case 4:throw g.i.Ra();default:throw g.i.Ra();}b=b.get();d?b.og(g.ge.sg()):b.og(this.description);e=a==this.Xc(e)-1&&this.ec(e)?this.Ca(e):a+1;f=new g.h;this.D(a,f);b.Fc(f);this.D(e,f);b.Tc(f);if(!d)for(d=1,f=this.description.Ba;d<f;d++){h=this.description.Gd(d);for(var k=g.va.Wa(h),m=0;m<k;m++){var n=this.Wc(h,a,m);b.MB(h,m,n);n=this.Wc(h,e,m);
b.DB(h,m,n)}}};c.prototype.Rj=function(a,b){if(a>=this.ea())throw g.i.O();if(this.B())b.Pa();else{if(this.vv(a))throw g.i.ga("not implemented");var d=this.lb(0),e=new g.h,f=new g.l;f.Pa();var h=this.Ca(a);for(a=this.Xc(a);h<a;h++)d.vc(2*h,e),f.$b(e);b.L(f)}};c.prototype.gj=function(a){null==this.Cb&&(this.Cb=new g.Tk);if(0==a||16>this.I())return!1;a=g.ua.dE(this);this.Cb.UM(a);return!0};c.prototype.cM=function(){null==this.Cb&&(this.Cb=new g.Tk);if(null==this.Cb.Ao){this.Cb.nD(null);var a=g.ua.XN(this);
this.Cb.nD(a)}};c.prototype.Zo=function(a){this.zq=a};c.prototype.In=function(){return this.zq};c.prototype.tD=function(a){if(this==a)throw g.i.ga("MultiPathImpl.add");for(var b=this.ea(),d=0;d<a.ea();d++)this.addPath(a,d,!0),this.vU(b),b++};c.prototype.jO=function(a){var b=this.iz(a),d=this.Ca(b);if(d!=a){b=this.Xc(b);if(a>=b||a<d)throw g.i.ga("change_ring_start_point");for(var e=0,f=this.description.Ba;e<f;e++){var h=this.description.rd(e);h=g.va.Wa(h);this.Aa[e].rotate(d*h,a*h,b*h)}}};return c}(g.zx);
g.Uk=t})(y||(y={}));(function(g){var t=function(l){function c(a){var b=l.call(this)||this;if(void 0!==a){if(null==a)throw g.i.O();b.description=a}else b.description=g.ge.sg();b.xa=0;return b}E(c,l);c.prototype.Ja=function(){return new c(this.description)};c.prototype.add=function(a){this.resize(this.xa+1);this.Eh(this.xa-1,a)};c.prototype.yu=function(a,b){this.resize(this.xa+1);var d=new g.h;d.oa(a,b);this.Db(this.xa-1,d)};c.prototype.Hd=function(a,b,d){d=0>d?a.I():d;if(0>b||b>a.I()||d<b)throw g.i.O();
if(b!=d){this.Kl(a.description);d-=b;var e=this.xa;this.resize(this.xa+d);this.sc();for(var f=0,h=a.description.Ba;f<h;f++){var k=a.description.Gd(f),m=g.va.Wa(k),n=this.lb(k);k=a.lb(k);n.Nn(e*m,k,b*m,d*m,!0,1,e*m)}}};c.prototype.xD=function(a,b){var d=a.length;b=0>b?d:b;if(0>d||0>b)throw g.i.O();if(0!=b){d=b-0;b=this.xa;this.resize(this.xa+d);for(var e=0;e<d;e++)this.Db(b+e,a[0+e])}};c.prototype.sB=function(a){if(0>a||a>=this.I())throw g.i.ga("index out of bounds");this.sc();for(var b=0,d=this.description.Ba;b<
d;b++)if(null!=this.Aa[b]){var e=g.va.Wa(this.description.Gd(b));this.Aa[b].En(e*a,e,e*this.xa)}this.xa--;this.Ug--;this.Sc(1993)};c.prototype.resize=function(a){this.fm(a)};c.prototype.pp=function(){};c.prototype.Pa=function(){l.prototype.mD.call(this)};c.prototype.Rc=function(a){if(a instanceof g.Fd){if(this.B())return;this.sc();for(var b=this.Aa[0],d=new g.h,e=0;e<this.xa;e++)d.x=b.read(2*e),d.y=b.read(2*e+1),a.Fh(d,d),b.write(2*e,d.x),b.write(2*e+1,d.y)}else{if(this.B())return;this.sc();this.ue(1);
this.sc();b=this.Aa[0];d=this.Aa[1];var f=new g.Pd;for(e=0;e<this.xa;e++){f.x=b.read(2*e);f.y=b.read(2*e+1);f.z=d.read(e);var h=a.gp(f);b.write(2*e,h.x);b.write(2*e+1,h.y);d.write(e,h.z)}}this.Sc(1993)};c.prototype.Eb=function(){return 0};c.prototype.K=function(){return 550};c.prototype.Je=function(){return 0};c.prototype.Rb=function(){return 0};c.prototype.Nb=function(a){return a==this?!0:a instanceof c?l.prototype.Nb.call(this,a):!1};c.prototype.eW=function(a,b){var d=this.xa;d=Math.min(d,b+1E3);
if(0>b||b>=this.xa||d<b||1E3!=a.length)throw g.i.O();var e=this.lb(0),f=d-b,h=[];e.Sw(2*b,2*f,h,0,!0);for(b=0;b<f;b++)a[b]=g.h.construct(h[2*b],h[2*b+1]);return d};c.prototype.Tx=function(){};c.prototype.Zx=function(){};c.prototype.iu=function(){return!1};c.prototype.gj=function(){return!1};c.prototype.qg=function(){return null};return c}(g.zx);g.fe=t})(y||(y={}));(function(g){(function(l){l[l.NotDetermined=0]="NotDetermined";l[l.Structure=1]="Structure";l[l.DegenerateSegments=2]="DegenerateSegments";
l[l.Clustering=3]="Clustering";l[l.Cracking=4]="Cracking";l[l.CrossOver=5]="CrossOver";l[l.RingOrientation=6]="RingOrientation";l[l.RingOrder=7]="RingOrder";l[l.OGCPolylineSelfTangency=8]="OGCPolylineSelfTangency";l[l.OGCPolygonSelfTangency=9]="OGCPolygonSelfTangency";l[l.OGCDisconnectedInterior=10]="OGCDisconnectedInterior"})(g.dL||(g.dL={}));var t=function(){function l(c,a,b){void 0===c?(this.Jj=0,this.Lo=this.Ko=-1):(this.Jj=c,this.Ko=a,this.Lo=b)}l.prototype.Tt=function(c){this.Jj=c.Jj;this.Ko=
c.Ko;this.Lo=c.Lo};return l}();g.Od=t})(y||(y={}));(function(g){g.P=function(){function t(){}t.assert=function(l){if(!1===l)throw g.i.BK();};t.XJ=function(l){return isNaN(l)?NaN:0===l?l:0<l?1:-1};t.Cu=function(l){var c;void 0===c&&(c=0);for(var a=[],b=0;b<l;b++)a[b]=t.pg(2,c);return a};t.pg=function(l,c){void 0===c&&(c=0);for(var a=[],b=0;b<l;b++)a[b]=c;return a};t.Xu=function(l,c){var a,b;void 0===a&&(a=0);for(void 0===b&&(b=l.length-1);a<=b;a++)l[a]=c};t.Qk=function(l,c,a){return l<c?c:l>a?a:l};
t.Th=function(l,c){var a=5381;a=void 0!==c?(c<<5)+c+(l&255):(a<<5)+a+(l&255);a=(a<<5)+a+(l>>8&255);a=(a<<5)+a+(l>>16&255);return(a<<5)+a+(l>>24&255)&2147483647};t.uj=function(){throw Error("Not Implemented");};t.RA=function(l){return t.UT(l)+12345&2147483647};t.SG=function(l){var c=32,a=l%t.Jx|0,b=l/t.Jx|0;if(0===(c&=63))return l;32>c?(l=a>>>c|b<<32-c,c=b>>c):(l=b>>c-32,c=0<=b?0:-1);return c*t.Jx+(l>>>0)};t.UT=function(l){l|=0;return(1103495168*l|0)+(20077*l|0)|0};t.truncate=function(l){return 0>
l?-1*Math.floor(Math.abs(l)):Math.floor(l)};t.MAX_SAFE_INTEGER=Math.pow(2,53)-1;t.MIN_SAFE_INTEGER=-t.MAX_SAFE_INTEGER;t.IC=65536;t.Jx=t.IC*t.IC;return t}()})(y||(y={}));(function(g){(function(l){l[l.Project=0]="Project";l[l.Union=1]="Union";l[l.Difference=2]="Difference";l[l.Proximity2D=3]="Proximity2D";l[l.Relate=4]="Relate";l[l.Equals=5]="Equals";l[l.Disjoint=6]="Disjoint";l[l.Intersects=7]="Intersects";l[l.Within=8]="Within";l[l.Contains=9]="Contains";l[l.Crosses=10]="Crosses";l[l.Touches=11]=
"Touches";l[l.Overlaps=12]="Overlaps";l[l.Buffer=13]="Buffer";l[l.Distance=14]="Distance";l[l.Intersection=15]="Intersection";l[l.Clip=16]="Clip";l[l.Cut=17]="Cut";l[l.DensifyByLength=18]="DensifyByLength";l[l.DensifyByAngle=19]="DensifyByAngle";l[l.LabelPoint=20]="LabelPoint";l[l.GeodesicBuffer=21]="GeodesicBuffer";l[l.GeodeticDensifyByLength=22]="GeodeticDensifyByLength";l[l.ShapePreservingDensify=23]="ShapePreservingDensify";l[l.GeodeticLength=24]="GeodeticLength";l[l.GeodeticArea=25]="GeodeticArea";
l[l.Simplify=26]="Simplify";l[l.SimplifyOGC=27]="SimplifyOGC";l[l.Offset=28]="Offset";l[l.Generalize=29]="Generalize";l[l.SymmetricDifference=30]="SymmetricDifference";l[l.ConvexHull=31]="ConvexHull";l[l.Boundary=32]="Boundary";l[l.SimpleRelation=33]="SimpleRelation"})(g.xL||(g.xL={}));var t=function(){function l(){}l.prototype.K=function(){return null};l.prototype.wn=function(){};l.prototype.Fu=function(){return!1};return l}();g.Ie=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==
l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 13};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d,e,f){return a instanceof g.ba?(f=new g.ad(a),this.X(f,b,[d],!1,e).next()):!0===e?(d=new g.oC(a,b,d,!1,f),g.Hh.local().X(d,b,f)):new g.oC(a,b,d,!1,f)};c.instance=null;return c}(g.Ie);g.nC=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d,e){this.za=-1;this.Td=c;this.Qz=a;this.zs=b;this.lT=new g.l;this.lT.Pa();
this.fo=-1;this.Vb=e}l.prototype.next=function(){for(var c;null!=(c=this.Td.next());)return this.za=this.Td.Ma(),this.fo+1<this.zs.length&&this.fo++,this.buffer(c,this.zs[this.fo]);return null};l.prototype.Ma=function(){return this.za};l.prototype.buffer=function(c,a){return g.CK.buffer(c,a,this.Qz,NaN,96,this.Vb)};l.prototype.se=function(){};return l}();g.oC=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 16};
c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d,e){return a instanceof g.ba?(a=new g.ad(a),this.X(a,b,d,e).next()):new g.gL(a,b,d,e)};c.instance=null;return c}(g.Ie);g.fL=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b){this.za=-1;if(null==c)throw g.i.O();this.T=a;this.xk=c;this.ra=g.ua.Yd(b,a,!1)}l.prototype.next=function(){var c;return null!=(c=this.xk.next())?(this.za=this.xk.Ma(),g.Wd.clip(c,this.T,this.ra,0)):null};l.prototype.Ma=
function(){return this.za};l.prototype.se=function(){};return l}();g.gL=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 31};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d){return a instanceof g.ba?g.qC.hE(a):new g.qC(b,a,d)};c.instance=null;return c}(g.Ie);g.pC=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b){this.jA=new g.Wt;this.za=
-1;if(null==a)throw g.i.O();this.YG=c;this.Kc=!1;this.xk=a;this.Vb=b}l.prototype.next=function(){if(this.YG){if(!this.Kc){var c=this.cO(this.xk);this.Kc=!0;return c}return null}if(!this.Kc){c=this.xk.next();if(null!=c)return this.za=this.xk.Ma(),l.hE(c);this.Kc=!0}return null};l.prototype.Ma=function(){return this.za};l.prototype.cO=function(c){for(var a;null!=(a=c.next());)this.jA.Ib(a);return this.jA.ZQ()};l.prototype.se=function(){if(!this.Kc){if(!this.YG)throw g.i.ga("Invalid call for non merging convex hull.");
var c=this.xk.next();if(null!=c)this.jA.Ib(c);else throw g.i.ga("Expects a non-null geometry.");}};l.hE=function(c){if(l.OS(c))return c;var a=c.K();if(g.Uk.Ad(a))return a=new g.Ua(c.description),a.pc(c,!0),a;if(550==a&&2==c.I()){var b=new g.Ta;a=new g.Ua(c.description);c.ye(0,b);a.qf(b);c.ye(1,b);a.lineTo(b);return a}return g.Wt.QO(c)};l.OS=function(c){if(c.B())return!0;var a=c.K();return 33==a||197==a?!0:g.Uk.Ad(a)?!1:550==a?1==c.I()?!0:!1:1607==a?1==c.ea()&&2>=c.I()?!0:!1:1!=c.ea()?!1:2>=c.I()?
!0:g.Wt.EG(c,0)};return l}();g.qC=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 17};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d,e,f){return new g.iL(a,b,d,e,f)};c.instance=null;return c}(g.Ie);g.hL=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d,e){this.Xf=null;if(null==a||null==b)throw g.i.ga("invalid argument");this.iT=c;
this.cA=a;this.gH=b;c=g.ua.jv(a,b);this.ra=g.ua.Yd(d,c,!0);this.fH=-1;this.od=e}l.prototype.Ma=function(){return 0};l.prototype.next=function(){this.NQ();return++this.fH<this.Xf.length?this.Xf[this.fH]:null};l.prototype.NQ=function(){if(null==this.Xf)switch(this.Xf=[],this.cA.K()){case 1607:this.PQ();break;case 1736:this.OQ()}};l.prototype.PQ=function(){var c=new g.Ua,a=new g.Ua,b=new g.Ua;this.Xf.push(c);this.Xf.push(a);var d=[];g.GK.EK(this.iT,this.cA,this.gH,this.ra,d,this.od);for(var e=0;e<d.length;e++){var f=
d[e];if(0==f.Ys)c.add(f.$,!1);else if(1==f.Ys||2==f.Ys)a.add(f.$,!1);else if(3==f.Ys)this.Xf.push(f.$);else if(4==f.Ys)b.add(f.$,!1);else throw g.i.ga("internal");}b.B()||c.B()&&a.B()&&!(3<=this.Xf.length)||this.Xf.push(b);c.B()&&a.B()&&3>this.Xf.length&&(this.Xf.length=0)};l.prototype.OQ=function(){var c=new g.ja(0),a=new g.jd,b=a.SE(),d=a.Ib(this.cA),e=a.Ib(this.gH),f=new g.Lg;try{f.Bt(a,this.ra,this.od);f.dl(b,d,e,c);var h=a.Me(d),k=new g.Ea,m=new g.Ea;this.Xf.length=0;this.Xf.push(k);this.Xf.push(m);
for(d=0;d<c.size;d++){var n=new g.jd,p=n.Ib(h),q=n.Ib(a.Me(c.get(d)));f.fr(n,this.od);var r=f.xv(p,q),u=n.Me(r);if(!u.B()){var v=a.DF(c.get(d),b);2==v?k.add(u,!1):1==v?m.add(u,!1):this.Xf.push(u);var w=new g.jd;p=w.Ib(h);q=w.Ib(a.Me(c.get(d)));f.fr(w,this.od);h=w.Me(f.km(p,q))}}!h.B()&&0<c.size&&this.Xf.push(h);k.B()&&m.B()&&(this.Xf.length=0)}finally{f.Yg()}};l.prototype.se=function(){};return l}();g.iL=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||
this}E(c,l);c.prototype.K=function(){return 18};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d){if(a instanceof g.ba)return a=new g.ad(a),this.X(a,b,d).next();if(0>=b)throw g.i.O();return new g.jL(a,b,d)};c.instance=null;return c}(g.Ie);g.Yl=t})(y||(y={}));(function(g){var t=function(){function l(c,a){this.za=-1;this.Td=c;this.Ms=a}l.prototype.Ma=function(){return this.za};l.prototype.next=function(){var c;return null!=(c=this.Td.next())?(this.za=
this.Td.Ma(),this.LP(c)):null};l.prototype.LP=function(c){if(c.B()||1>c.Eb())return c;var a=c.K();if(1736==a||1607==a)return this.Dy(c);if(g.ba.Ad(a))return this.NP(c);if(197==a)return this.MP(c);throw g.i.Ra();};l.prototype.NP=function(c){if(c.Rb()<=this.Ms)return c;var a=new g.Ua(c.description);a.pc(c,!0);return this.Dy(a)};l.prototype.MP=function(c){var a=new g.Ea(c.description);a.cd(c,!1);var b=new g.l;c.A(b);c=b.da();return b.S()<=this.Ms&&c<=this.Ms?a:this.Dy(a)};l.prototype.Dy=function(c){for(var a=
c.Ja(),b=c.Ha();b.ab();)for(var d=!0;b.Ia();){var e=b.ia();if(322!=e.K())throw g.i.ga("not implemented");var f=b.Pn(),h=e.Rb();if(h>this.Ms){var k=Math.ceil(h/this.Ms);h=new g.Ta(c.description);d&&(e.Uo(h),a.qf(h));var m=d=1/k,n=0;for(--k;n<k;n++)e.Qw(m,h),a.lineTo(h),m+=d;f?a.Cp():(e.Qo(h),a.lineTo(h))}else f?a.Cp():a.pc(e,d);d=!1}return a};l.prototype.se=function(){};return l}();g.jL=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);
c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.K=function(){return 2};c.prototype.X=function(a,b,d,e){return a instanceof g.ba?(a=new g.ad(a),b=new g.ad(b),this.X(a,b,d,e).next()):new g.kL(a,b,d,e)};c.km=function(a,b,d,e){if(a.B()||b.B())return a;var f=a.Eb(),h=b.Eb();if(f>h)return a;var k=a.K(),m=b.K(),n=new g.l,p=new g.l,q=new g.l;a.A(n);b.A(p);q.L(n);q.$b(p);q=g.ua.Yd(d,q,!0);var r=q*Math.sqrt(2)*1.00001,u=new g.l;u.L(n);u.Y(r,r);if(!u.isIntersecting(p))return a;
if(1==f&&2==h)return c.DV(a,b,m,d,e);if(33==k)switch(g.Uk.Ad(m)?(d=new g.Ua(b.description),d.pc(b,!0)):d=b,m){case 1736:return c.QU(a,d,q);case 1607:return c.RU(a,d,q);case 550:return c.OU(a,d,q);case 197:return c.NU(a,d,q);case 33:return c.PU(a,d,q);default:throw g.i.O();}else if(550==k)switch(m){case 1736:return c.gU(a,b,q);case 197:return c.eU(a,b,q);case 33:return c.fU(a,b,q)}return g.Lg.km(a,b,d,e)};c.QU=function(a,b,d){return 0==g.kd.FG(b,a,d)?a:a.Ja()};c.RU=function(a,b,d){var e=a.D();b=b.Ha();
for(var f=d*Math.sqrt(2)*1.00001,h=f*f,k=new g.l;b.ab();)for(;b.Ia();){var m=b.ia();m.A(k);k.Y(f,f);if(k.contains(e)){if(m.ns(e,d))return a.Ja();var n=m.bc();if(g.h.Ac(e,n)<=h)return a.Ja();n=m.yc();if(g.h.Ac(e,n)<=h)return a.Ja()}}return a};c.OU=function(a,b,d){var e=b.lb(0);b=b.I();var f=a.D(),h=new g.h;d=d*Math.sqrt(2)*1.00001;d*=d;for(var k=0;k<b;k++)if(e.vc(2*k,h),g.h.Ac(h,f)<=d)return a.Ja();return a};c.NU=function(a,b,d){var e=new g.l;b.A(e);e.Y(d,d);b=a.D();return e.contains(b)?a.Ja():a};
c.PU=function(a,b,d){d=d*Math.sqrt(2)*1.00001;d*=d;var e=a.D();b=b.D();return g.h.Ac(e,b)<=d?a.Ja():a};c.gU=function(a,b,d){var e=new g.l;b.A(e);e.Y(d,d);for(var f=a.I(),h=!1,k=[],m=0;m<f;m++)k[m]=!1;var n=new g.h;for(m=0;m<f;m++)a.D(m,n),e.contains(n)&&0!=g.kd.ae(b,n,d)&&(h=!0,k[m]=!0);if(!h)return a;b=a.Ja();for(m=0;m<f;m++)k[m]||b.Hd(a,m,m+1);return b};c.eU=function(a,b,d){var e=new g.l;b.A(e);e.Y(d,d);b=a.I();var f=!1;d=[];for(var h=0;h<b;h++)d[h]=!1;var k=new g.h;for(h=0;h<b;h++)a.D(h,k),e.contains(k)&&
(f=!0,d[h]=!0);if(!f)return a;e=a.Ja();for(h=0;h<b;h++)d[h]||e.Hd(a,h,h+1);return e};c.fU=function(a,b,d){var e=a.lb(0),f=a.I(),h=b.D(),k=new g.h,m=!1;b=[];for(var n=0;n<f;n++)b[n]=!1;n=d*Math.sqrt(2)*1.00001;d=n*n;for(n=0;n<f;n++)e.vc(2*n,k),g.h.Ac(k,h)<=d&&(m=!0,b[n]=!0);if(!m)return a;e=a.Ja();for(n=0;n<f;n++)b[n]||e.Hd(a,n,n+1);return e};c.DV=function(a,b,d,e,f){var h=new g.Gh;a.dn(h);var k=new g.l;b.A(k);h.$b(k);h.Y(.1*h.S(),.1*h.da());k=new g.Ea;k.cd(h,!1);1736==d?k.add(b,!0):k.cd(b,!0);return g.Vk.local().X(a,
k,e,f)};c.instance=null;return c}(g.Ie);g.mp=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d){this.qs=null==a;this.za=-1;this.Td=c;this.Qz=b;this.oT=a.next();this.Vb=d}l.prototype.next=function(){if(this.qs)return null;var c;return null!=(c=this.Td.next())?(this.za=this.Td.Ma(),g.mp.km(c,this.oT,this.Qz,this.Vb)):null};l.prototype.Ma=function(){return this.za};l.prototype.se=function(){};return l}();g.kL=t})(y||(y={}));(function(g){var t=function(){function c(a){this.od=a;this.Bj=
new g.l;this.Bj.Pa();this.ph=new g.l;this.ph.Pa()}c.prototype.Kt=function(){var a=this.Bj.v;this.Bj.v=this.ph.v;this.ph.v=a;a=this.Bj.C;this.Bj.C=this.ph.C;this.ph.C=a;a=this.Bj.F;this.Bj.F=this.ph.F;this.ph.F=a;a=this.Bj.H;this.Bj.H=this.ph.H;this.ph.H=a};c.prototype.cQ=function(a,b){if(null!=this.od&&!this.od.progress(-1,-1))throw g.i.cu("user_canceled");var d=!this.Bj.isIntersecting(this.ph);if(g.ba.Jc(a.K())&&g.ba.Jc(b.K())){if(a.I()>b.I())return this.XD(a,b,d);this.Kt();a=this.XD(b,a,d);this.Kt();
return a}if(550==a.K()&&g.ba.Jc(b.K()))return a=this.YD(b,a,d),this.Kt(),a;if(550==b.K()&&g.ba.Jc(a.K()))return this.YD(a,b,d);if(550==a.K()&&550==b.K()){if(a.I()>b.I())return this.ZD(a,b);this.Kt();a=this.ZD(b,a);this.Kt();return a}return 0};c.prototype.XD=function(a,b,d){var e=a.Ha(),f=b.Ha(),h=new g.l,k=new g.l,m=1.7976931348623157E308;if(!d&&this.gY(a,b,e,f))return 0;for(;e.ab();)for(;e.Ia();)if(a=e.ia(),a.A(h),!(h.kx(this.ph)>m)){for(;f.ab();)for(;f.Ia();)if(b=f.ia(),b.A(k),h.kx(k)<m&&(b=a.vb(b,
d),b*=b,b<m)){if(0==b)return 0;m=b}f.Zi()}return Math.sqrt(m)};c.prototype.YD=function(a,b,d){var e=a.Ha(),f=new g.l,h=1.7976931348623157E308,k=new g.h,m=b.I();for(d=!d&&1736==a.K();e.ab();)for(;e.Ia();){var n=e.ia();n.A(f);if(!(1<m&&f.kx(this.ph)>h)){for(var p=0;p<m;p++){b.D(p,k);if(d&&0!=g.kd.ae(a,k,0))return 0;var q=n.he(k,!1);k.sub(n.jc(q));q=k.Rk();if(q<h){if(0==q)return 0;h=q}}d=!1}}return Math.sqrt(h)};c.prototype.ZD=function(a,b){for(var d=1.7976931348623157E308,e=new g.h,f=new g.h,h,k=a.I(),
m=b.I(),n=0;n<k;n++)if(a.D(n,e),!(1<m&&this.ph.dK(e)>d))for(var p=0;p<m;p++)if(b.D(p,f),h=g.h.Ac(e,f),h<d){if(0==h)return 0;d=h}return Math.sqrt(d)};c.prototype.gY=function(a,b,d,e){if(1736==a.K()){for(;e.ab();)if(e.Ia()){var f=e.ia();if(0!=g.kd.ae(a,f.yc(),0))return!0}e.Zi()}if(1736==b.K()){for(;d.ab();)if(d.Ia()&&(a=d.ia(),0!=g.kd.ae(b,a.yc(),0)))return!0;d.Zi()}return!1};c.prototype.im=function(a,b){if(a.B()||b.B())return NaN;a.A(this.Bj);b.A(this.ph);return this.cQ(a,b)};return c}(),l=function(c){function a(){return null!==
c&&c.apply(this,arguments)||this}E(a,c);a.prototype.X=function(b,d,e){if(null==b||null==d)throw g.i.O();if(b.B()||d.B())return NaN;var f=b.K(),h=d.K();if(33==f){if(33==h)return g.h.vb(b.D(),d.D());if(197==h)return e=new g.l,d.A(e),e.vb(b.D());f=new g.fe;f.add(b);b=f}else if(197==f){if(197==h)return h=new g.l,b.A(h),e=new g.l,d.A(e),e.vb(h);f=new g.Ea;f.cd(b,!1);b=f}33==h?(h=new g.fe,h.add(d),d=h):197==h&&(h=new g.Ea,h.cd(d,!1),d=h);return(new t(e)).im(b,d)};a.local=function(){null===a.instance&&(a.instance=
new a);return a.instance};a.prototype.K=function(){return 14};a.instance=null;return a}(g.Ie);g.lL=l})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d){this.uH=c;this.yH=a;this.od=d;this.VG=b}l.prototype.next=function(){var c=this.uH.next();return null==c?null:this.mC(c)};l.prototype.Ma=function(){return this.uH.Ma()};l.prototype.mC=function(c){var a=c.K();if(g.ba.Sn(a))return c;if(197==a)return a=new g.Ea(c.description),a.cd(c,!1),this.mC(a);if(c.B())return c;if(null==c)throw g.i.Ra();
a=c.Ja();for(var b=new g.zb,d=0,e=c.ea();d<e;d++)this.OK(c,d,a,b);return a};l.prototype.OK=function(c,a,b,d){if(!(2>c.Ka(a))){var e=c.Ca(a),f=c.Xc(a)-1,h=c.lb(0),k=c.ec(a),m=new g.ja(0);m.Jb(c.Ka(a)+1);var n=new g.ja(0);n.Jb(c.Ka(a)+1);m.add(k?e:f);m.add(e);for(e=new g.h;1<m.size;){var p=m.Hc();m.Mf();var q=m.Hc();c.D(p,e);d.Fc(e);c.D(q,e);d.Tc(e);q=this.NK(d,e,h,p,q,f);0<=q?(m.add(q),m.add(p)):n.add(p)}k||n.add(m.get(0));if(n.size==m.size)b.addPath(c,a,!0);else if(2<=n.size&&(!this.VG||2!=n.size||
!(k||g.h.vb(c.Oa(n.get(0)),c.Oa(n.get(1)))<=this.yH))){a=new g.Ta;d=0;for(f=n.size;d<f;d++)c.ye(n.get(d),a),0==d?b.qf(a):b.lineTo(a);k&&(this.VG||2!=n.size||b.lineTo(a),b.Cp())}}};l.prototype.NK=function(c,a,b,d,e,f){var h=e-1;e<=d&&(h=f);f=e=-1;for(d+=1;d<=h;d++){b.vc(2*d,a);var k=a.x,m=a.y;c.jc(c.he(a,!1),a);a.x-=k;a.y-=m;k=a.length();k>this.yH&&k>f&&(e=d,f=k)}return e};l.prototype.se=function(){};return l}();g.mL=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,
arguments)||this}E(c,l);c.prototype.K=function(){return 29};c.prototype.X=function(a,b,d,e){return a instanceof g.ba?(a=new g.ad(a),this.X(a,b,d,e).next()):new g.mL(a,b,d,e)};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.instance=null;return c}(g.Ie);g.rC=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 21};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};
c.prototype.X=function(a,b,d,e,f,h,k,m){return a instanceof g.ba?(m=new g.ad(a),this.X(m,b,d,[e],f,h,!1,k).next()):!0===k?(d=new g.tC(a,b,d,e,f,!1,!1,m),g.Hh.local().X(d,b,m)):new g.tC(a,b,d,e,f,!1,!1,m)};c.instance=null;return c}(g.Ie);g.sC=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d,e,f,h,k){if(f)throw g.i.He();if(null==a)throw g.i.O();this.za=-1;this.Js=c;this.Ag=a;this.Ce=b;this.zs=d;this.ao=e;this.fo=-1;this.Vb=k;this.mT=new g.l;this.mT.Pa()}l.prototype.next=function(){for(var c;null!=
(c=this.Js.next());)return this.za=this.Js.Ma(),this.fo+1<this.zs.length&&this.fo++,this.WQ(c,this.zs[this.fo]);return null};l.prototype.Ma=function(){return this.za};l.prototype.WQ=function(c,a){return g.QK.buffer(c,this.Ag,this.Ce,a,this.ao,this.Vb)};l.prototype.se=function(){};return l}();g.tC=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 24};c.local=function(){null===c.instance&&(c.instance=new c);
return c.instance};c.prototype.X=function(a,b,d){if(null==b)throw g.i.O();if(a.B()||1>a.Eb())return 0;if(4==d)throw g.i.He();var e=g.cb.uc(b),f=g.cb.sv(e),h=g.cb.bv(e);f*=2-f;var k=e.Jd().ai,m=a.K();if(1736==m||197==m)var n=a.qg();else g.ba.Ad(m)?(n=new g.Ua(a.description),n.pc(a,!0)):n=a;if(0==e.Nb(b)){if(g.cb.Yc(b)){n=g.Ih.lj(n,b);1607==m&&n==a&&(n=g.ba.mg(a));a=new g.Pc;g.cb.ih(b).en(a);m=0;for(var p=n.I();m<p;m++){var q=n.Oa(m);q.x=g.Ih.an(q.x,a);n.Db(m,q)}}a=n.Ja();n=g.Ih.RI(b,e,n,a)?a:g.cb.Ah(n,
b,e)}return this.fQ(n,d,h,f,k)};c.prototype.fQ=function(a,b,d,e,f){var h=new g.ha(0),k=0;for(a=a.Ha();a.ab();)for(;a.Ia();){var m=a.ia(),n=m.bc();m=m.yc();n.scale(f);m.scale(f);g.kb.yd(d,e,n.x,n.y,m.x,m.y,h,null,null,b);k+=h.u}return k};c.instance=null;return c}(g.Ie);g.qL=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 18};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=
function(a,b,d,e,f){return a instanceof g.ba?(a=new g.ad(a),this.X(a,b,d,e,f).next()):new g.oL(a,d,e,b,-1,-1,f)};c.instance=null;return c}(g.Ie);g.nL=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d,e,f){if(0<f)throw g.i.He();if(4!=b&&0<e)throw g.i.He();if(null==a)throw g.i.O();this.za=-1;this.Js=c;this.Ag=a;this.Ce=b;this.wT=d;this.vT=e}l.prototype.next=function(){for(var c;null!=(c=this.Js.next());)return this.za=this.Js.Ma(),this.Py(c);return null};l.prototype.Ma=function(){return this.za};
l.prototype.Py=function(c){return g.cj.Rr(c,this.Ag,this.Ce,this.wT,this.vT,this.Vb)};l.prototype.se=function(){};return l}();g.oL=t})(y||(y={}));(function(g){(function(t){t[t.Unknown=0]="Unknown";t[t.Contains=1]="Contains";t[t.Within=2]="Within";t[t.Equals=3]="Equals";t[t.Disjoint=4]="Disjoint";t[t.Touches=8]="Touches";t[t.Crosses=16]="Crosses";t[t.Overlaps=32]="Overlaps";t[t.NoThisRelation=64]="NoThisRelation";t[t.Intersects=1073741824]="Intersects";t[t.IntersectsOrDisjoint=1073741828]="IntersectsOrDisjoint"})(g.YK||
(g.YK={}));g.rL=function(){function t(){}t.gW=function(l,c){var a=l.K(),b=c.K();if(g.ba.xj(a)){var d=l.Cb;if(null!=d&&(d=d.Ek,null!=d)){if(33==b){var e=c.D();d=d.To(e.x,e.y)}else e=new g.l,c.A(e),d=d.So(e);if(1==d)return 1;if(0==d)return 4}}if(g.ba.xj(b)&&(d=c.Cb,null!=d&&(d=d.Ek,null!=d))){33==a?(l=l.D(),d=d.To(l.x,l.y)):(c=new g.l,l.A(c),d=d.So(c));if(1==d)return 2;if(0==d)return 4}return 0};return t}()})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||
this}E(c,l);c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.K=function(){return 15};c.prototype.X=function(a,b,d,e,f){return a instanceof g.ba?(a=new g.ad(a),b=new g.ad(b),this.X(a,b,d,e,f).next()):void 0===f?new g.uC(a,b,d,e,-1):new g.uC(a,b,d,e,f)};c.prototype.wn=function(a,b,d){this.Fu(a)&&(b=g.ua.kj(b,a,!1),a.gj(d)||a.iu(b,d))};c.prototype.Fu=function(a){return g.Gx.pE(a)};c.instance=null;return c}(g.Ie);g.Vk=t})(y||(y={}));(function(g){var t=function(){function l(c,
a,b,d,e){this.qs=null==a;this.za=-1;this.Td=c;this.Ag=b;this.Re=a.next();this.Dj=this.Re.K();this.Vb=d;this.Fi=e;if(-1!=this.Fi&&(0>=this.Fi||7<this.Fi))throw g.i.O("bad dimension mask");}l.prototype.next=function(){if(this.qs)return null;if(null!=this.ww){var c=this.ww.next();if(null!=c)return c;this.ww=null}for(;null!=(c=this.Td.next());)return this.za=this.Td.Ma(),-1==this.Fi?c=this.Fa(c):(this.ww=this.JS(c),c=this.ww.next()),c;return null};l.prototype.Ma=function(){return this.za};l.prototype.Fa=
function(c){var a=this.uK(c);if(null!=a)return a;a=g.ua.jv(this.Re,c);var b=g.ua.Yd(this.Ag,a,!0);a=new g.l;this.Re.A(a);var d=new g.l;c.A(d);a.Y(2*b,2*b);a.Fa(d);a.Y(100*b,100*b);b=g.Wd.clip(this.Re,a,0,0);c=g.Wd.clip(c,a,0,0);return g.Lg.xv(c,b,this.Ag,this.Vb)};l.prototype.KI=function(c,a,b){var d=0;if(0!=(a&1))null==b[0]&&(b[0]=new g.fe(c)),d++;else for(var e=0;e<b.length-1;e++)b[e]=b[e+1];if(0!=(a&2))null==b[d]&&(b[d]=new g.Ua(c)),d++;else for(e=d;e<b.length-1;e++)b[e]=b[e+1];if(0!=(a&4))null==
b[d]&&(b[d]=new g.Ea(c)),d++;else for(e=d;e<b.length-1;e++)b[e]=b[e+1];if(3!=d){c=[];for(e=0;e<d;e++)c[e]=b[e];return new g.ad(c)}return new g.ad(b)};l.prototype.JS=function(c){var a=this.uK(c);if(null!=a){var b=[null,null,null];b[a.Eb()]=a;return this.KI(c.description,this.Fi,b)}a=g.ua.jv(this.Re,c);b=g.ua.Yd(this.Ag,a,!0);a=new g.l;this.Re.A(a);a.Y(2*b,2*b);var d=new g.l;c.A(d);a.Fa(d);a.Y(100*b,100*b);b=g.Wd.clip(this.Re,a,0,0);a=g.Wd.clip(c,a,0,0);b=g.Lg.Fz(a,b,this.Ag,this.Vb);return this.KI(c.description,
this.Fi,b)};l.prototype.uK=function(c){var a=g.ua.jv(c,this.Re),b=g.ua.Yd(this.Ag,a,!0);a=c.K();var d=c.B(),e=this.Re.B();e=d||e;if(!e){e=new g.l;c.A(e);var f=new g.l;this.Re.A(f);f.Y(2*b,2*b);e=!e.isIntersecting(f)}if(!e)if(f=g.rL.gW(this.Re,c),4==f)e=!0;else{if(0!=(f&2))return this.Re;if(0!=(f&1))return c}if(e)return b=g.ba.xf(a),e=g.ba.xf(this.Dj),b<e?l.wB(c,d):b>e?this.iJ():0==b?550==a&&33==this.Dj?this.iJ():l.wB(c,d):l.wB(c,d);if((-1==this.Fi||4==this.Fi)&&197==a&&197==this.Dj)return b=this.Re,
a=new g.l,c.A(a),d=new g.l,b.A(d),a.Fa(d),b=new g.Gh,c.copyTo(b),b.Yo(a),b;if(197==a&&0==g.ba.xf(this.Dj)||197==this.Dj&&0==g.ba.xf(a))return d=197==a?c:this.Re,c=197==a?this.Re:c,a=new g.l,d.A(a),g.Wd.clip(c,a,b,0);if(0==g.ba.xf(a)&&0<g.ba.xf(this.Dj)||0<g.ba.xf(a)&&0==g.ba.xf(this.Dj)){b=g.ua.kj(this.Ag,c,!1);if(550==a||33==a)return g.Lg.uG(c,this.Re,b);if(550==this.Dj||33==this.Dj)return g.Lg.uG(this.Re,c,b);throw g.i.Ra();}return-1!=this.Fi&&2!=this.Fi||1607!=a||1736!=this.Dj?-1!=this.Fi&&2!=
this.Fi||1736!=a||1607!=this.Dj?null:this.rK(this.Re,c):this.rK(c,this.Re)};l.prototype.rK=function(c,a){var b=c,d=a,e=g.ua.kj(this.Ag,a,!1),f=new g.l;d.A(f);var h=new g.l;b.A(h);h.Y(2*e,2*e);f.Fa(h);f.Y(10*e,10*e);b=c=g.Wd.clip(c,f,0,0);h=new g.ja(0);var k=-1,m=d.Cb;if(null!=m){var n=m.Ek;if(null!=n){k=0;h.Jb(b.I()+b.ea());for(var p=new g.l,q=b.Ha();q.ab();)for(;q.Ia();){q.ia().A(p);var r=n.So(p);1==r?h.add(1):0==r?h.add(0):(h.add(-1),k++)}}}5<a.I()&&(d=a=g.Wd.clip(a,f,0,0),m=d.Cb);0>k&&(k=b.nz());
f=b.I()+d.I();if(k*d.I()>Math.log(f)*f*4)return null;f=null;k=d.Ha();null!=m&&null!=m.Gb&&(f=m.Gb);null==f&&20<d.I()&&(f=g.ua.dE(d));c=c.Ja();d=null;m=b.Ha();n=[0,0,0,0,0,0,0,0,0];p=new g.ee(0);q=new g.lg;r=-1;for(var u=0,v=0,w=0<h.size,z=-1;m.ab();){z=m.gb;var x=0;r=-1;for(u=0;m.Ia();){var A=w?g.P.truncate(h.get(v)):-1;v++;var B=m.ia();if(0>A){if(null!=f)for(null==d?d=f.rR(B,e):d.Vo(B,e),A=d.next();-1!=A;A=d.next()){k.Wb(f.ka(A));A=k.ia();var C=B.Fa(A,null,n,null,e);for(A=0;A<C;A++)p.add(n[A])}else for(k.Zi();k.ab();)for(;k.Ia();)for(A=
k.ia(),C=B.Fa(A,null,n,null,e),A=0;A<C;A++)p.add(n[A]);if(0<p.size){p.Xd(0,p.size,function(J,S){return J-S});var D=0;p.add(1);C=-1;A=0;for(var G=p.size;A<G;A++){var H=p.get(A);if(H!=D){var K=!1;0!=D||1!=H?(B.eh(D,H,q),D=q.get()):(D=B,K=!0);if(2<=x){c.Fr(b,z,r,u,3==x);if(1!=this.FD(a,D.bc(),e)&&1!=this.GD(a,D,e))return null;c.pc(D,!1);x=1;u=0}else switch(C=this.GD(a,D,e),C){case 1:K?2>x?(r=m.xb()-b.Ca(z),u=1,x=0==x?3:2):u++:(c.pc(D,0==x),x=1);break;case 0:x=0;r=-1;u=0;break;default:return null}D=H}}}else{A=
this.FD(a,B.bc(),e);if(0>A)return null;1==A?(2>x&&(r=m.xb()-b.Ca(z),x=0==x?3:2),u++):(r=-1,u=0)}p.clear(!1)}else 0!=A&&1==A&&(0==x?(x=3,r=m.xb()-b.Ca(z)):1==x?(x=2,r=m.xb()-b.Ca(z)):u++)}2<=x&&(c.Fr(b,z,r,u,3==x),r=-1)}return c};l.prototype.FD=function(c,a,b){return g.Kg.ym(c,a,b)};l.prototype.GD=function(c,a,b){var d=a.bc();a=a.yc();var e=g.Kg.ym(c,d,b),f=g.Kg.ym(c,a,b);if(1==e&&0==f||0==e&&1==f)return-1;if(0==e||0==f)return 0;if(1==e||1==f)return 1;e=new g.h;e.add(d,a);e.scale(.5);c=g.Kg.ym(c,e,
b);return 0==c?0:1==c?1:-1};l.wB=function(c,a){return a?c:c.Ja()};l.prototype.iJ=function(){null==this.tH&&(this.tH=this.Re.Ja());return this.tH};l.prototype.se=function(){};return l}();g.uC=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 28};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d,e,f,h,k){return a instanceof g.ba?(a=new g.ad(a),this.X(a,
b,d,e,f,h,k).next()):new g.sL(a,b,d,e,f,h,k)};c.instance=null;return c}(g.Ie);g.vC=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d,e,f,h){this.za=-1;this.Td=c;this.Mj=a;this.La=b;this.Ki=d;this.rA=e;this.pH=f;this.od=h}l.prototype.next=function(){var c=this.Td.next();return null!=c?(this.za=this.Td.Ma(),this.eL(c)):null};l.prototype.Ma=function(){return this.za};l.prototype.eL=function(c){var a=0>=this.pH?g.ua.kj(this.Mj,c,!1):this.pH;return g.DK.X(c,this.La,this.Ki,this.rA,a,this.od)};
l.prototype.se=function(){};return l}();g.sL=t})(y||(y={}));(function(g){(function(l){l[l.clipToDomainOnly=1]="clipToDomainOnly";l[l.clipWithHorizon=2]="clipWithHorizon";l[l.foldAndClipWithHorizon=3]="foldAndClipWithHorizon"})(g.IK||(g.IK={}));var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 0};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d){return a instanceof g.ba?(a=new g.ad(a),
this.X(a,b,d).next()):new g.tL(a,b,d)};c.prototype.transform=function(a,b,d,e){return g.Zt.transform(a,b,d,e,!0)};c.prototype.Nt=function(a,b,d,e){return g.Zt.Nt(a,b,d,e)};c.instance=null;return c}(g.Ie);g.Ax=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b){this.za=-1;this.Td=c;this.FT=a;this.od=b}l.prototype.next=function(){var c=this.Td.next();return null!=c?(this.za=this.Td.Ma(),g.Zt.Ah(c,this.FT,this.od)):null};l.prototype.Ma=function(){return this.za};l.prototype.se=function(){};
return l}();g.tL=t})(y||(y={}));(function(g){var t=function(){function c(){}c.prototype.reset=function(){this.qh=this.wk=-1;this.rs=this.mq=!1};c.prototype.yQ=function(a,b,d){for(a.Wb(b,d);a.Ia();){var e=a.ia();e=e.Rb();if(0!=e)return a.xb()}for(a.Wb(b,d);a.uz();)if(e=a.li(),e=e.Rb(),0!=e)return a.xb();return-1};c.prototype.zQ=function(a,b){for(a.Wb(b,-1);a.uz();)if(0!=a.li().Rb())return a.xb();return-1};c.prototype.xQ=function(a,b){a.Wb(b,-1);for(a.ia();a.Ia();)if(0!=a.ia().Rb())return a.xb();return-1};
c.prototype.wQ=function(a,b,d,e){this.wk=this.yQ(b,d,e);if(-1!=this.wk){b.Wb(this.wk,-1);var f=b.ia(),h=f.jc(f.he(a,!1));d=g.h.Ac(h,a);e=new g.h;e.N(h);e.sub(f.bc());h=new g.h;h.N(a);h.sub(f.bc());this.mq=0>e.wi(h);this.qh=this.xQ(b,this.wk);if(-1!=this.qh){b.Wb(this.qh,-1);f=b.ia();var k=f.he(a,!1);k=f.jc(k);var m=g.h.Ac(k,a);m>d?this.qh=-1:(e.N(k),e.sub(f.bc()),h.N(a),h.sub(f.bc()),this.rs=0>e.wi(h))}-1==this.qh&&(this.qh=this.zQ(b,this.wk),-1!=this.qh&&(b.Wb(this.qh,-1),f=b.ia(),k=f.he(a,!1),k=
f.jc(k),m=g.h.Ac(k,a),m>d?this.qh=-1:(e.N(k),e.sub(f.bc()),h.N(a),h.sub(f.bc()),this.rs=0>e.wi(h),a=this.wk,this.wk=this.qh,this.qh=a,a=this.mq,this.mq=this.rs,this.rs=a)))}};c.prototype.bO=function(a,b,d,e,f){d=d.Ha();this.wQ(a,d,e,f);if(-1!=this.wk&&-1==this.qh)return this.mq;if(-1!=this.wk&&-1!=this.qh){if(this.mq==this.rs)return this.mq;d.Wb(this.wk,-1);a=d.ia().ng();d.Wb(this.qh,-1);b=d.ia().ng();return 0<=a.wi(b)?!0:!1}return b};return c}(),l=function(c){function a(){return null!==c&&c.apply(this,
arguments)||this}E(a,c);a.local=function(){null===a.instance&&(a.instance=new a);return a.instance};a.prototype.K=function(){return 3};a.prototype.dz=function(b,d,e){var f;void 0===f&&(f=!1);if(b.B())return new g.am;d=d.D();var h=b,k=b.K();197==k&&(h=new g.Ea,h.cd(b,!1),k=1736);switch(k){case 33:return this.sI(h,d);case 550:return this.eI(h,d);case 1607:case 1736:return this.VT(h,d,e,f);default:throw g.i.ga("not implemented");}};a.prototype.ez=function(b,d){if(b.B())return new g.am;d=d.D();var e=
b,f=b.K();197==f&&(e=new g.Ea,e.cd(b,!1),f=1736);switch(f){case 33:return this.sI(e,d);case 550:case 1607:case 1736:return this.eI(e,d);default:throw g.i.ga("not implemented");}};a.prototype.fz=function(b,d,e,f){if(0>f)throw g.i.O();if(b.B())return[];d=d.D();var h=b,k=b.K();197==k&&(h=new g.Ea,h.cd(b,!1),k=1736);switch(k){case 33:return this.MU(h,d,e,f);case 550:case 1607:case 1736:return this.mU(h,d,e,f);default:throw g.i.ga("not implemented");}};a.prototype.VT=function(b,d,e,f){if(1736==b.K()&&
e&&(e=new g.l,b.A(e),e=g.ua.Yd(null,e,!1),0!=(f?g.kd.ae(b,d,0):g.kd.ae(b,d,e)))){var h=new g.am(d,0,0);f&&h.RJ(!0);return h}var k=b.Ha();h=new g.h;for(var m=e=-1,n=1.7976931348623157E308,p=0;k.ab();)for(;k.Ia();){var q=k.ia();q=q.jc(q.he(d,!1));var r=g.h.Ac(q,d);r<n?(p=1,h=q,e=k.xb(),m=k.gb,n=r):r==n&&p++}h=new g.am(h,e,Math.sqrt(n));f&&(k.Wb(e,m),q=k.ia(),f=0>g.h.Wq(d,q.bc(),q.yc()),1<p&&(p=new t,p.reset(),f=p.bO(d,f,b,e,m)),h.RJ(f));return h};a.prototype.sI=function(b,d){b=b.D();d=g.h.vb(b,d);return new g.am(b,
0,d)};a.prototype.eI=function(b,d){for(var e=b.lb(0),f=b.I(),h=b=0,k=0,m=1.7976931348623157E308,n=0;n<f;n++){var p=new g.h;e.vc(2*n,p);var q=g.h.Ac(p,d);q<m&&(h=p.x,k=p.y,b=n,m=q)}d=new g.am;d.Wx(h,k,b,Math.sqrt(m));return d};a.prototype.MU=function(b,d,e,f){if(0==f)return e=[];e*=e;b=b.D();d=g.h.Ac(b,d);d<=e?(e=[],f=new g.am,f.Wx(b.x,b.y,0,Math.sqrt(d)),e[0]=f):e=[];return e};a.prototype.mU=function(b,d,e,f){if(0==f)return f=[];var h=b.lb(0),k=b.I();b=[];var m=0;e*=e;for(var n=0;n<k;n++){var p=h.read(2*
n),q=h.read(2*n+1),r=d.x-p,u=d.y-q;r=r*r+u*u;r<=e&&(u=new g.am,u.Wx(p,q,n,Math.sqrt(r)),m++,b.push(u))}d=b.length;b.sort(function(v,w){return v.La<w.La?-1:v.La==w.La?0:1});if(f>=d)return b.slice(0);b.length=f;return b.slice(0)};a.instance=null;return a}(g.Ie);g.Bx=l})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 4};c.prototype.X=function(a,b,d,e,f){return g.bm.nB(a,b,d,e,f)};c.local=function(){null===c.instance&&
(c.instance=new c);return c.instance};c.prototype.Fu=function(a){return g.St.ly(a)};c.prototype.wn=function(a,b,d){g.St.sD(a,b,d)};c.instance=null;return c}(g.Ie);g.uL=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 33};c.prototype.X=function(a,b,d,e,f){return 1073741824===a?!g.wd.oB(b,d,e,4,f):g.wd.oB(b,d,e,a,f)};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.Fu=
function(a){return g.St.ly(a)};c.prototype.wn=function(a,b,d){g.St.sD(a,b,d)};c.instance=null;return c}(g.Ie);g.ej=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d){this.od=d;this.jT=b;this.za=-1;if(null==c)throw g.i.O();this.xk=c;this.Mj=a}l.prototype.next=function(){var c;if(null!=(c=this.xk.next())){this.za=this.xk.Ma();if(null!=this.od&&!this.od.progress(-1,-1))throw g.i.cu("user_canceled");return this.TB(c)}return null};l.prototype.Ma=function(){return this.za};l.prototype.TB=
function(c){if(null==c)throw g.i.O();return g.Cx.YJ(c,this.Mj,this.jT,this.od)};l.prototype.se=function(){};return l}();g.vL=t})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 26};c.prototype.X=function(a,b,d,e){return a instanceof g.ba?(a=new g.ad(a),this.X(a,b,d,e).next()):new g.vL(a,b,d,e)};c.prototype.os=function(a,b,d,e,f){return 0<(void 0!==e?g.Cx.os(a,b,d,e,f):g.Cx.os(a,b,!1,null,d))};c.local=function(){null===
c.instance&&(c.instance=new c);return c.instance};c.instance=null;return c}(g.Ie);g.Zl=t})(y||(y={}));(function(g){var t=function(){function f(){this.Aq=0}f.prototype.dX=function(h){this.Aq&=-2;this.Aq|=h?1:0};f.prototype.Yp=function(){return 0!=(this.Aq&1)};f.prototype.RF=function(){return this.Yp()?0:1};return f}();g.oY=t;var l=function(){return function(){}}(),c=function(){return function(f,h,k,m){this.x=f;this.y=h;this.Ai=k;this.zm=m}}(),a=function(){function f(h){this.Ee=h}f.prototype.compare=
function(h,k,m){h=h.ka(m);k=this.Ee.nf.read(2*k);h=this.Ee.nf.read(2*h);k-=h;return 0>k?-1:0<k?1:0};return f}(),b=function(){function f(h){this.Ee=h}f.prototype.compare=function(h,k,m){k=this.Ee.hb[k];h=this.Ee.hb[h.ka(m)];var n=k.Yp(),p=h.Yp();m=k.pe.Oe(this.Ee.No,0);var q=h.pe.Oe(this.Ee.No,0);m==q&&(m=Math.min(n?k.pe.pa:k.pe.na,p?h.pe.pa:h.pe.na),n=.5*(m-this.Ee.No)+this.Ee.No,n==this.Ee.No&&(n=m),m=k.pe.Oe(n,0),q=h.pe.Oe(n,0));return m<q?-1:m>q?1:0};return f}(),d=function(){function f(h,k){this.TI=
new g.h;this.parent=h;this.XR=k}f.prototype.qr=function(h,k,m){var n=this.parent,p=this.XR;m.Xd(h,k,function(q,r){return n.Mh(q,r,p)})};f.prototype.bq=function(h){h=this.parent.gi.get(h);this.parent.nf.vc(2*(h>>1),this.TI);return this.TI.y+(0!=(h&1)?this.parent.Oj:-this.parent.Oj)};return f}(),e=function(){function f(h,k,m,n,p){this.iH=h.description;this.$=h;this.Vg=k;this.Oj=g.ua.kj(this.Vg,h,!1);this.Co=g.ua.kj(this.Vg,h,!0);this.mA=m;this.hT=this.iH.Ba;this.hb=[];this.qo=[];this.nh=new g.lp;this.fb=
new g.Xj;this.me=new g.Od;this.UG=this.rl=p}f.prototype.YS=function(){this.UG=!0;return(!g.ba.Jc(this.$.K())||this.wE()&&this.tE(!1))&&this.lO()?g.ba.Jc(this.$.K())?this.oO()?1607==this.$.K()?this.qO()?2:0:this.rO()?this.sO():0:0:2:0};f.prototype.ZB=function(h,k){var m=this.nf.read(2*h);h=this.nf.read(2*h+1);var n=this.nf.read(2*k);k=this.nf.read(2*k+1);var p=!g.Vt.zv(m,h,n,k,this.Oj*this.Oj);return p?p:0==this.$.Eb()?!1:m==n&&h==k};f.prototype.wE=function(){for(var h=this.$,k=h.Bf?3:2,m=0,n=h.ea();m<
n;m++)if(h.Ka(m)<k)return this.me=new g.Od(1,m,0),!1;return!0};f.prototype.tE=function(h){var k=this.$,m=k.Ha(),n=k.hasAttribute(1);for(k=n?g.ua.mE(this.Vg,k,!1):0;m.ab();)for(;m.Ia();){var p=m.ia();if(!(p.Rb()>this.Oj)){if(h&&n){var q=p.tv(1,0);p=p.tv(1,0);if(Math.abs(p-q)>k)continue}this.me=new g.Od(2,m.xb(),-1);return!1}}return!0};f.prototype.lO=function(){var h=this.$,k=null;g.ba.Jc(this.$.K())&&(k=this.$);var m=(this.UG||this.rl)&&null!=k,n=h.I();this.nf=h.lb(0);this.gi=new g.ja(0);this.gi.Jb(2*
n);this.fi=new g.ja(0);this.fi.Jb(2*n);m&&(null==this.Gl&&(this.Gl=new g.ja(0)),this.Gl.Jb(n));for(var p=h=0;p<n;p++)if(this.gi.add(2*p),this.gi.add(2*p+1),this.fi.add(2*p),this.fi.add(2*p+1),m){for(;p>=k.Xc(h);)h++;this.Gl.add(h)}(new g.Ut).sort(this.fi,0,2*n,new d(this,m));this.fb.clear();this.fb.Wo(new a(this));this.fb.Ge(n);k=0;for(n*=2;k<n;k++)if(m=this.fi.get(k),h=this.gi.get(m),m=h>>1,0==(h&1)){h=this.fb.addElement(m,-1);p=this.fb.ze(h);if(-1!=p&&!this.ZB(this.fb.ka(p),m))return this.me=new g.Od(3,
m,this.fb.ka(p)),!1;var q=this.fb.mb(h);if(-1!=q&&!this.ZB(this.fb.ka(q),m))return this.me=new g.Od(3,m,this.fb.ka(q)),!1}else if(h=this.fb.search(m,-1),p=this.fb.ze(h),q=this.fb.mb(h),this.fb.xd(h,-1),-1!=p&&-1!=q&&!this.ZB(this.fb.ka(p),this.fb.ka(q)))return this.me=new g.Od(3,this.fb.ka(p),this.fb.ka(q)),!1;return!0};f.prototype.oO=function(){return 10>this.$.I()?this.mO():this.nO()};f.prototype.nO=function(){var h=new g.jd;h.Ib(this.$);var k=new g.Od;return g.Xt.fI(!1,h,this.Oj,k,this.od)?(k.Ko=
h.Va(k.Ko),k.Lo=h.Va(k.Lo),this.me.Tt(k),!1):!0};f.prototype.mO=function(){var h=this.$,k=h.Ha();for(h=h.Ha();k.ab();)for(;k.Ia();){var m=k.ia();if(!k.Rn()||!k.TS()){h.uW(k);do for(;h.Ia();){var n=h.ia();n=m.Br(n,this.Oj,!0);if(0!=n)return this.me=new g.Od(2==n?5:4,k.xb(),h.xb()),!1}while(h.ab())}}return!0};f.prototype.rO=function(){var h=this.$;this.hb.length=0;this.qo.length=0;this.cg=h.Ha();this.cg.yB();var k=new g.ja(0);k.Jb(10);var m=NaN,n=0,p=0;for(h=2*h.I();p<h;p++){var q=this.fi.get(p);q=
this.gi.get(q);if(0==(q&1)){q>>=1;var r=this.nf.read(2*q),u=this.nf.read(2*q+1);if(0!=k.size&&(r!=m||u!=n)){if(!this.LI(k))return!1;null!=k&&k.clear(!1)}k.add(q);m=r;n=u}}return this.LI(k)?!0:!1};f.prototype.qO=function(){for(var h=this.$,k=Array(h.ea()),m=0,n=h.ea();m<n;m++)k[m]=h.On(m);n=new l;var p=new g.h;m=this.fi.get(0);m=this.gi.get(m);var q=m>>1;this.nf.vc(2*q,p);m=this.Gl.get(q);var r=k[m],u=h.Ca(m),v=h.Xc(m)-1;n.el=q==u||q==v;n.dy=this.rl?!r&&n.el:n.el;n.Ai=m;n.x=p.x;n.y=p.y;n.zm=q;for(var w=
new l,z=1,x=this.fi.size;z<x;z++)if(m=this.fi.get(z),m=this.gi.get(m),0==(m&1)){q=m>>1;this.nf.vc(2*q,p);m=this.Gl.get(q);m!=n.Ai&&(r=k[m],u=h.Ca(m),v=h.Xc(m)-1);var A=q==u||q==v,B=this.rl?!r&&n.el:n.el;w.x=p.x;w.y=p.y;w.Ai=m;w.zm=q;w.dy=B;w.el=A;if(w.x==n.x&&w.y==n.y)if(this.rl){if(!w.dy||!n.dy)if(w.Ai!=n.Ai||!w.el&&!n.el)return this.me=new g.Od(8,w.zm,n.zm),!1}else if(!w.el||!n.el)return this.me=new g.Od(5,w.zm,n.zm),!1;m=n;n=w;w=m}return!0};f.prototype.zE=function(){for(var h=this.$,k=[],m=-1,
n=!1,p=0,q=h.ea();p<q;p++)h.Bv(p)&&(n=!1,m++,p<q-1&&(h.Bv(p+1)||(n=!0))),k[p]=n?m:-1;n=new g.h;p=this.fi.get(0);p=this.gi.get(p);var r=p>>1;this.nf.vc(2*r,n);p=this.Gl.get(r);m=new c(n.x,n.y,p,r,k[p]);h=[];var u=1;for(q=this.fi.size;u<q;u++)if(p=this.fi.get(u),p=this.gi.get(p),0==(p&1)){r=p>>1;this.nf.vc(2*r,n);p=this.Gl.get(r);p=new c(n.x,n.y,p,r,k[p]);if(p.x==m.x&&p.y==m.y){if(p.Ai==m.Ai)return this.me=new g.Od(9,p.zm,m.zm),!1;0<=k[p.Ai]&&k[p.Ai]==k[m.Ai]&&(0!=h.length&&h[h.length-1]==m||h.push(m),
h.push(p))}m=p}if(0==h.length)return!0;p=new g.lp(!0);g.P.Xu(k,-1);n=-1;u=new g.h;u.Uc();m=0;for(q=h.length;m<q;m++){r=h[m];if(r.x!=u.x||r.y!=u.y)n=p.Ph(0),u.x=r.x,u.y=r.y;var v=k[r.Ai];-1==v&&(v=p.Ph(2),k[r.Ai]=v);p.addElement(v,n);p.addElement(n,v)}q=new g.ja(0);q.Jb(10);for(m=p.le;-1!=m;m=p.gz(m))if(h=p.IF(m),0==(h&1)&&0!=(h&2)){h=-1;q.add(m);for(q.add(-1);0<q.size;){n=q.Hc();q.Mf();u=q.Hc();q.Mf();r=p.IF(u);if(0!=(r&1)){h=0==(r&2)?n:u;break}p.WW(u,r|1);for(r=p.tc(u);-1!=r;r=p.mb(r))v=p.getData(r),
v!=n&&(q.add(v),q.add(u))}if(-1!=h){p=-1;m=0;for(q=k.length;m<q;m++)if(k[m]==h){p=m;break}this.me=new g.Od(10,p,-1);return!1}}return!0};f.prototype.sO=function(){var h=this.$;if(0>=h.Je())return this.me=new g.Od(6,1==h.ea()?1:-1,-1),0;if(1==h.ea())return this.rl&&!this.zE()?0:2;this.uo=g.ja.uf(h.ea(),0);this.yA=g.ja.uf(h.ea(),-1);for(var k=-1,m=0,n=0,p=h.ea();n<p;n++){var q=h.Kr(n);this.uo.write(n,0>q?0:256);if(0<q)k=n,m=q;else{if(0==q)return this.me=new g.Od(6,n,-1),0;if(0>k||m<Math.abs(q))if(this.me=
new g.Od(7,n,-1),this.rl)return 0;this.yA.write(n,k)}}this.$s=h.ea();this.Qm=new g.ja(0);this.Qm.Jb(10);p=h.I();this.No=NaN;h=new g.ja(0);h.Jb(10);this.Sq=g.ja.uf(p,-1);this.Ew=g.ja.uf(p,-1);null!=this.zj?this.zj.clear(!1):this.zj=new g.ja(0);this.zj.Jb(10);this.fb.clear();this.fb.Wo(new b(this));k=0;for(p*=2;0<this.$s&&k<p;k++)if(m=this.fi.get(k),m=this.gi.get(m),0==(m&1)){m>>=1;n=this.nf.read(2*m+1);if(n!=this.No&&0!=h.size){if(!this.qt(h))return 0;null!=h&&h.clear(!1)}h.add(m);this.No=n}return 0<
this.$s&&!this.qt(h)?0:this.rl?0==this.me.Jj&&this.zE()?2:0:0==this.me.Jj?2:1};f.prototype.LI=function(h){if(1==h.size)return!0;for(var k=0,m=h.size;k<m;k++){var n=h.get(k);this.cg.Wb(n);var p=this.cg.li();this.hb.push(this.Qu(p,n,this.cg.gb,!0));this.cg.ia();p=this.cg.ia();this.hb.push(this.Qu(p,n,this.cg.gb,!1))}var q=this;this.hb.sort(function(v,w){return q.VP(v,w)});n=this.nh.le;-1==n&&(n=this.nh.Ph(0));this.nh.hn(this.hb.length);k=0;for(m=this.hb.length;k<m;k++)this.nh.addElement(n,k);k=!0;for(var r=
m=-1;k;){k=!1;p=this.nh.tc(n);if(-1==p)break;for(var u=this.nh.mb(p);-1!=u;){m=this.nh.getData(p);r=this.nh.getData(u);m=this.hb[m].Jo;r=this.hb[r].Jo;if(m==r)if(k=!0,this.nh.ld(n,p),p=this.nh.ze(u),u=this.nh.ld(n,u),-1==u||-1==p)break;else continue;p=u;u=this.nh.mb(p)}}k=this.nh.cs(n);this.nh.BE(n);if(0<k)return this.me=new g.Od(5,m,r),!1;k=0;for(m=h.size;k<m;k++)this.kB(this.hb[k]);this.hb.length=0;return!0};f.prototype.qt=function(h){for(var k=0,m=h.size;k<m;k++){var n=h.get(k),p=this.Sq.read(n);
if(-1!=p){var q=this.fb.ka(p);this.zj.add(q);this.fb.xd(p,-1);this.kB(this.hb[q]);this.hb[q]=null;this.Sq.write(n,-1)}p=this.Ew.read(n);-1!=p&&(q=this.fb.ka(p),this.zj.add(q),this.fb.xd(p,-1),this.kB(this.hb[q]),this.hb[q]=null,this.Ew.write(n,-1))}k=0;for(m=h.size;k<m;k++){n=h.get(k);this.cg.Wb(n);p=this.cg.li();if(p.pa>p.na){var r=this.cg.xb(),u=this.Qu(p,n,this.cg.gb,!0);0<this.zj.size?(q=this.zj.Hc(),this.zj.Mf(),this.hb[q]=u):(q=this.hb.length,this.hb.push(u));p=this.fb.addElement(q,-1);-1==
this.Sq.read(r)?this.Sq.write(r,p):this.Ew.write(r,p);0==(this.uo.read(this.cg.gb)&3)&&this.Qm.add(p)}this.cg.ia();p=this.cg.ia();p.pa<p.na&&(r=this.cg.hk(),u=this.Qu(p,n,this.cg.gb,!1),0<this.zj.size?(q=this.zj.Hc(),this.zj.Mf(),this.hb[q]=u):(q=this.hb.length,this.hb.push(u)),p=this.fb.addElement(q,-1),-1==this.Sq.read(r)?this.Sq.write(r,p):this.Ew.write(r,p),0==(this.uo.read(this.cg.gb)&3)&&this.Qm.add(p))}k=0;for(m=this.Qm.size;k<m&&0<this.$s;k++)if(p=this.Qm.get(k),0==(this.uo.read(this.hb[this.fb.ka(p)].xA)&
3)){h=-1;n=this.fb.ze(p);var v=p;u=null;q=-1;for(var w=0;-1!=n;){q=this.fb.ka(n);u=this.hb[q];q=u.xA;w=this.uo.read(q);if(0!=(w&3))break;v=n;n=this.fb.ze(n)}-1==n?(r=1,n=v):(h=1==(w&3)?q:this.yA.read(q),r=0!=u.RF()?0:1,n=this.fb.mb(n));do{q=this.fb.ka(n);u=this.hb[q];q=u.xA;v=this.uo.read(q);if(0==(v&3)){if(r!=u.RF())return this.me=new g.Od(6,q,-1),!1;w=0==r||u.Yp()?2:1;v=v&252|w;this.uo.write(q,w);if(2==w&&0==this.me.Jj&&this.yA.read(q)!=h&&(this.me=new g.Od(7,q,-1),this.rl))return!1;this.$s--;if(0==
this.$s)return!0}1==(v&3)&&(h=q);v=n;n=this.fb.mb(n);r=0!=r?0:1}while(v!=p)}null!=this.Qm?this.Qm.clear(!1):this.Qm=new g.ja(0);return!0};f.prototype.Qu=function(h,k,m,n){if(322==h.K())h=this.qP(h);else throw g.i.Ra();h.Jo=k;h.xA=m;h.Aq=0;h.dX(n);return h};f.prototype.qP=function(h){if(0<this.qo.length){var k=this.qo[this.qo.length-1];--this.qo.length;h.copyTo(k.pe)}else k=new t,k.pe=g.FC.mg(h);return k};f.prototype.kB=function(h){322==h.pe.K()&&this.qo.push(h)};f.prototype.dU=function(){for(var h=
this.$.I(),k=new g.ja(0),m=0;m<h;m++)k.add(m);var n=this;k.Xd(0,h,function(p,q){return n.Mu(p,q)});for(m=1;m<h;m++)if(0==this.Mu(k.get(m-1),k.get(m)))return this.me=new g.Od(3,k.get(m-1),k.get(m)),0;return 2};f.prototype.CV=function(){return this.wE()?this.tE(!0)?2:0:0};f.prototype.hV=function(){return this.YS()};f.prototype.iU=function(){for(var h=this.$.I(),k=new g.ja(0),m=0;m<h;m++)k.add(m);var n=this;k.Xd(0,h,function(v,w){return n.OO(v,w)});var p=Array(h);g.P.Xu(p,!1);p[k.get(0)]=!0;for(m=1;m<
h;m++){var q=k.get(m-1),r=k.get(m);0==this.Mu(q,r)?p[r]=!1:p[r]=!0}k=this.$.Ja();q=this.$;r=0;var u=1;for(m=0;m<h;m++)p[m]?u=m+1:(r<u&&k.Hd(q,r,u),r=m+1);r<u&&k.Hd(q,r,u);k.Dh(2,this.Co);return k};f.prototype.GV=function(){var h=this.$,k=h.Ha(),m=h.Ha(),n=this.$.Ja(),p=this.$,q=h.hasAttribute(1),r=q?g.ua.mE(this.Vg,h,!0):0,u=new g.ja(0),v=new g.ja(0);u.Jb(g.P.truncate(h.I()/2+1));for(v.Jb(g.P.truncate(h.I()/2+1));k.ab();)if(m.ab(),!(2>h.Ka(k.gb))){m.wW();for(var w,z,x=!0;k.Ia();){var A=k.ia(),B=m.li();
if(k.xb()>m.xb())break;x&&(u.add(k.xb()),v.add(m.hk()),x=!1);z=u.Hc();var C=k.hk();if(1<C-z){var D=new g.h;D.wc(h.Oa(z),h.Oa(C));w=D.length()}else w=A.Rb();z=v.Hc();C=m.xb();1<C-z?(D=new g.h,D.wc(h.Oa(z),h.Oa(C)),z=D.length()):z=B.Rb();w>this.Co?u.add(k.hk()):q&&(w=h.Wc(1,u.Hc(),0),A=A.dv(1,0),Math.abs(A-w)>r&&u.add(k.hk()));z>this.Co?v.add(m.xb()):q&&(w=h.Wc(1,v.Hc(),0),A=B.dv(1,0),Math.abs(A-w)>r&&v.add(m.xb()))}u.Hc()<v.Hc()?u.size>v.size?u.Mf():v.Mf():(u.Hc()!=v.Hc()&&v.Mf(),v.Mf());if(2<=v.size+
u.size){x=new g.Ta;B=0;for(A=u.size;B<A;B++)p.ye(u.get(B),x),0==B?n.qf(x):n.lineTo(x);for(B=v.size-1;0<B;B--)p.ye(v.get(B),x),n.lineTo(x);p.ec(k.gb)?n.Cp():0<v.size&&(p.ye(v.get(0),x),n.lineTo(x))}null!=u&&u.clear(!1);null!=v&&v.clear(!1)}n.Dh(2,this.Co);return n};f.prototype.kV=function(){return this.uX()};f.prototype.uX=function(){if(1736==this.$.K()&&1==this.$.In())return g.Lg.Lk(this.$,this.Co,!0,!1,this.od);this.Hi=new g.jd;this.Hi.Ib(this.$);0!=this.Hi.hd&&(1!=this.mA&&g.Sk.X(this.Hi,this.Co,
this.od,!0),1736==this.$.K()&&g.sn.X(this.Hi,this.Hi.md,this.mA,!1,this.od));this.$=this.Hi.Me(this.Hi.md);1736==this.$.K()&&(this.$.hm(),this.$.Zo(0));this.$.Dh(2,this.Co);return this.$};f.os=function(h,k,m,n,p){null!=n&&(n.Jj=0,n.Ko=-1,n.Lo=-1);if(h.B())return 1;var q=h.K();if(33==q)return 1;var r=g.ua.kj(k,h,!1);if(197==q)return k=new g.l,h.A(k),k.Bi(r)?(null!=n&&(n.Jj=2,n.Ko=-1,n.Lo=-1),0):1;if(g.ba.Ad(q))return r=new g.Ua(h.description),r.pc(h,!0),f.os(r,k,m,n,p);var u=h.qm(r);m=m?-1:u;if(-1!=
m)return m;k=new f(h,k,m,p,!1);if(550==q)m=k.dU();else if(1607==q)m=k.CV();else if(1736==q)m=k.hV();else throw g.i.Ra();h.Dh(m,r);null!=n&&0==m&&n.Tt(k.me);return m};f.YJ=function(h,k,m,n){if(h.B())return h;var p=h.K();if(33==p)return h;var q=g.ua.kj(k,h,!1);if(197==p)return k=new g.l,h.A(k),k.Bi(q)?h.Ja():h;if(g.ba.Ad(p))return p=new g.Ua(h.description),p.pc(h,!0),f.YJ(p,k,m,n);q=h.qm(q);m=m?-1:q;if(2==m)return h;h=new f(h,k,m,n,!1);if(550==p)h=h.iU();else if(1607==p)h=h.GV();else if(1736==p)h=h.kV();
else throw g.i.Ra();return h};f.prototype.Mh=function(h,k,m){if(h==k)return 0;h=this.gi.get(h);var n=this.gi.get(k);k=h>>1;var p=n>>1,q=new g.h,r=new g.h;this.nf.vc(2*k,q);q.y+=0!=(h&1)?this.Oj:-this.Oj;this.nf.vc(2*p,r);r.y+=0!=(n&1)?this.Oj:-this.Oj;h=q.compare(r);return 0==h&&m?(m=this.Gl.get(k)-this.Gl.get(p),0>m?-1:0<m?1:0):h};f.prototype.Mu=function(h,k){if(h==k)return 0;var m=this.$,n=m.Oa(h),p=m.Oa(k);if(n.x<p.x)return-1;if(n.x>p.x)return 1;if(n.y<p.y)return-1;if(n.y>p.y)return 1;for(n=1;n<
this.hT;n++){p=this.iH.rd(n);for(var q=g.va.Wa(p),r=0;r<q;r++){var u=m.Wc(p,h,r),v=m.Wc(p,k,r);if(u<v)return-1;if(u>v)return 1}}return 0};f.prototype.OO=function(h,k){var m=this.Mu(h,k);return 0==m?h<k?-1:1:m};f.prototype.VP=function(h,k){if(h===k)return 0;var m=h.pe.ng();h.Yp()&&m.Uq();h=k.pe.ng();k.Yp()&&h.Uq();k=m.nu();var n=h.nu();return n==k?(k=m.wi(h),Math.abs(k)<=8.881784197001252E-16*(Math.abs(h.x*m.y)+Math.abs(h.y*m.x))&&(k--,k++),0>k?1:0<k?-1:0):k<n?-1:1};return f}();g.Cx=e})(y||(y={}));
(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 30};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.X=function(a,b,d,e){return a instanceof g.ba?(a=new g.ad(a),b=new g.ad(b),this.X(a,b,d,e).next()):new g.wL(a,b,d,e)};c.fp=function(a,b,d,e){var f=a.Eb(),h=b.Eb();if(a.B()&&b.B())return f>h?a:b;if(a.B())return b;if(b.B())return a;var k=new g.l,m=new g.l,n=new g.l;a.A(k);b.A(m);n.L(k);
n.$b(m);k=g.ua.Yd(d,n,!0);m=a.K();n=b.K();return 33==m&&33==n?c.UU(a,b,k):m!=n?0<f||0<h?f>h?a:b:550==m?c.dI(a,b,k):c.dI(b,a,k):g.Lg.fp(a,b,d,e)};c.UU=function(a,b,d){d=d*Math.sqrt(2)*1.00001;d*=d;var e=a.D(),f=b.D(),h=new g.fe(a.description);g.h.Ac(e,f)>d&&(h.add(a),h.add(b));return h};c.dI=function(a,b,d){var e=a.lb(0),f=a.I(),h=b.D(),k=a.Ja();d=d*Math.sqrt(2)*1.00001;var m=new g.l;a.A(m);m.Y(d,d);if(m.contains(h)){d*=d;m=!1;for(var n=[],p=0;p<f;p++)n[p]=!1;for(p=0;p<f;p++){var q=e.read(2*p),r=e.read(2*
p+1);q-=h.x;r-=h.y;q*q+r*r<=d&&(m=!0,n[p]=!0)}if(m)for(p=0;p<f;p++)n[p]||k.Hd(a,p,p+1);else k.Hd(a,0,f),k.add(b)}else k.Hd(a,0,f),k.add(b);return k};c.instance=null;return c}(g.Ie);g.Dx=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b,d){this.qs=null==a;this.za=-1;this.Td=c;this.Ag=b;this.GT=a.next();this.Vb=d}l.prototype.next=function(){if(this.qs)return null;var c;return null!=(c=this.Td.next())?(this.za=this.Td.Ma(),g.Dx.fp(c,this.GT,this.Ag,this.Vb)):null};l.prototype.Ma=function(){return this.za};
l.prototype.se=function(){};return l}();g.wL=t})(y||(y={}));(function(g){var t=function(){function a(){}a.prototype.vz=function(){this.Qy=null;this.ux=-1;this.vK=!1};return a}(),l=function(){function a(){this.Ir=0;this.pj=[]}a.prototype.oN=function(b){this.Ir+=b.ux;this.pj.push(b)};a.prototype.MV=function(){this.Ir-=this.pj[this.pj.length-1].ux;--this.pj.length};a.prototype.cy=function(){return this.pj[this.pj.length-1]};a.prototype.Nb=function(b){return b===this};return a}(),c=function(){function a(b,
d,e){this.za=-1;this.Kc=!1;this.vH=[!1,!1,!1,!1];this.wq=[0,0,0,0];this.$z=!1;this.yk=-1;this.kq=0;this.co=-1;this.Eo=[];this.Td=b;this.Ag=d;this.Vb=e}a.UD=function(b){var d=[],e=0;for(b=Object.keys(b);e<b.length;e++)d.push(Number(b[e]));d.sort(function(f,h){return f-h});return d};a.prototype.aG=function(b){var d=this.Eo[b],e=a.UD(d)[0],f=d[e],h=f.cy().Qy;f=f.cy().vK;delete d[e];f&&(h=g.Zl.local().X(h,this.Ag,!1,this.Vb),0==b&&33==h.K()&&(b=new g.fe(h.description),h.B()||b.add(h),h=b));return h};
a.prototype.next=function(){if(this.Kc&&this.co==this.yk)return null;for(;!this.lK(););if(-1==this.yk)return null;if(this.$z){for(this.co++;;){if(this.co>this.yk||0>this.co)throw g.i.Ra();if(this.vH[this.co])break}this.za++;return this.aG(this.co)}this.za=0;this.co=this.yk;return this.aG(this.yk)};a.prototype.Ma=function(){return this.za};a.prototype.lK=function(){if(this.Kc)return!0;var b=null;null!=this.Td&&(b=this.Td.next(),null==b&&(this.Kc=!0,this.Td=null));g.op.Bp(this.Vb);if(null!=b){var d=
b.Eb();this.vH[d]=!0;d>=this.yk&&!this.$z&&(this.CD(d,!1,b),d>this.yk&&!this.$z&&this.sW(d))}if(0<this.kq)for(d=0;d<=this.yk;d++)for(;1<this.wq[d];)if(b=this.EO(d),0!=b.length)b=g.Lg.TP(b,this.Ag,this.Vb),this.CD(d,!0,b);else break;return this.Kc};a.prototype.EO=function(b){for(var d=[],e=[],f=this.Eo[b],h=a.UD(f),k=0;k<h.length;k++){var m=h[k],n=f[m];if(this.Kc||1E4<n.Ir&&1<n.pj.length){this.wq[b]-=n.pj.length;for(this.kq-=n.pj.length;0<n.pj.length;)d.push(n.cy().Qy),n.MV();e.push(m)}}for(k=0;k<
e.length;k++)delete f[e[k]];return d};a.prototype.sW=function(b){for(var d=0;d<b;d++)this.Eo[d]=[],this.kq-=this.wq[d],this.wq[d]=0};a.prototype.CD=function(b,d,e){var f=new t;f.vz();f.Qy=e;e=a.YR(e);f.ux=e;e=a.WR(e);if(b+1>this.Eo.length)for(var h=0,k=Math.max(2,b+1);h<k;h++)this.Eo.push([]);h=this.Eo[b][e];void 0===h&&(h=new l,this.Eo[b][e]=h);f.vK=d;h.oN(f);this.wq[b]++;this.kq++;this.yk=Math.max(this.yk,b)};a.WR=function(b){return 0<b?g.P.truncate(Math.log(b)/Math.log(4)+.5):0};a.YR=function(b){var d=
b.K();if(g.ba.xj(d))return b.I();if(33==d)return 1;if(197==d)return 4;if(g.ba.Ad(d))return 2;throw g.i.Ra();};a.prototype.se=function(){this.lK()};return a}();g.yL=c})(y||(y={}));(function(g){var t=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}E(c,l);c.prototype.K=function(){return 1};c.prototype.X=function(a,b,d,e){return void 0===e?new g.yL(a,b,d):this.eQ(a,b,d,e)};c.prototype.eQ=function(a,b,d,e){a=new g.ad([a,b]);return this.X(a,d,e).next()};c.local=function(){null===
c.instance&&(c.instance=new c);return c.instance};c.instance=null;return c}(g.Ie);g.Hh=t})(y||(y={}));(function(g){var t;(function(l){l[l.nextPath=0]="nextPath";l[l.nextSegment=1]="nextSegment";l[l.iterate=2]="iterate"})(t||(t={}));t=function(){function l(c,a,b,d){this.Qs=new g.l;this.zT=c;this.AT=a;this.oq=d;this.vo=-1;this.sl=!1;var e=c.Cb;null!=e&&(e=d?e.Ao:e.Gb,null!=e&&(this.Kc=!1,this.ra=b,this.Gb=e,this.uw=this.Gb.getIterator(),this.pq=this.sl=!0,this.Yb=0,d?this.vo=a.ea():this.ud=a.Ha()));
this.sl||(e=a.Cb,null!=e&&(e=d?e.Ao:e.Gb,null!=e&&(this.Kc=!1,this.ra=b,this.Gb=e,this.uw=this.Gb.getIterator(),this.sl=!0,this.pq=!1,this.Yb=0,d?this.vo=c.ea():this.ud=c.Ha())));this.sl||(this.ci=d?g.ua.iR(c,a,b,1<=c.qm(0),1<=a.qm(0)):g.ua.hR(c,a,b))}l.prototype.next=function(){if(this.sl){if(this.Kc)return!1;for(var c=!0;c;)switch(this.Yb){case 0:c=this.qU();break;case 1:c=this.rU();break;case 2:c=this.Kz();break;default:throw g.i.ga("internal error");}return this.Kc?!1:!0}return null==this.ci?
!1:this.ci.next()};l.prototype.ol=function(){return this.sl?this.pq?this.Gb.ka(this.Cs):this.oq?this.vo:this.ud.xb():this.ci.ol(this.ci.Zf)};l.prototype.il=function(){return this.sl?this.pq?this.oq?this.vo:this.ud.xb():this.Gb.ka(this.Cs):this.ci.il(this.ci.Ef)};l.prototype.jz=function(){if(!this.oq)throw g.i.ga("internal error");return this.sl?this.pq?this.Gb.zF(this.Cs):this.Qs:this.ci.jz(this.ci.Zf)};l.prototype.Ry=function(){if(!this.oq)throw g.i.ga("internal error");return this.sl?this.pq?this.Qs:
this.Gb.zF(this.Cs):this.ci.Ry(this.ci.Ef)};l.prototype.qU=function(){if(!this.oq){if(!this.ud.ab())return this.Kc=!0,!1;this.Yb=1;return!0}if(-1==--this.vo)return this.Kc=!0,!1;this.pq?this.AT.Rj(this.vo,this.Qs):this.zT.Rj(this.vo,this.Qs);this.uw.Xi(this.Qs,this.ra);this.Yb=2;return!0};l.prototype.rU=function(){if(!this.ud.Ia())return this.Yb=0,!0;var c=this.ud.ia();this.uw.Vo(c,this.ra);this.Yb=2;return!0};l.prototype.Kz=function(){this.Cs=this.uw.next();return-1==this.Cs?(this.Yb=this.oq?0:1,
!0):!1};return l}();g.$l=t})(y||(y={}));(function(g){g=g.JL||(g.JL={});g[g.enumClosed=1]="enumClosed";g[g.enumHasNonlinearSegments=2]="enumHasNonlinearSegments";g[g.enumOGCStartPolygon=4]="enumOGCStartPolygon";g[g.enumCalcMask=4]="enumCalcMask"})(y||(y={}));(function(g){g.DC=function(){function t(){}t.vb=function(l,c,a,b,d,e,f,h,k){var m=[0,0,0],n=[0,0,0],p=[0,0,0],q=[0,0,0,0],r=new g.ha(0),u=new g.ha(0),v=new g.ha(0);if(null!=f||null!=h||null!=k)if(g.s.ti(c))g.bh.vb(l,a,b,d,e,f,h,k);else{d=g.G.ca(d);
a=g.G.ca(a);var w=g.G.ca(d-a);if(g.s.aa(b,e)&&(g.s.aa(a,d)||g.s.aa(g.s.R(b),1.570796326794897)))null!=f&&(f.u=0),null!=h&&(h.u=0),null!=k&&(k.u=0);else{if(g.s.aa(b,-e)){if(g.s.aa(g.s.R(b),1.570796326794897)){null!=f&&(f.u=2*g.G.Bh(l,c));null!=h&&(h.u=0<b?g.G.ca(3.141592653589793-g.G.ca(d)):g.G.ca(d));null!=k&&(k.u=0<b?g.G.ca(d):g.G.ca(3.141592653589793-g.G.ca(d)));return}g.s.aa(g.s.R(w),3.141592653589793)&&(null!=f&&(f.u=2*g.G.Bh(l,c)),null!=h&&(h.u=0),null!=k&&(k.u=0))}else{if(g.s.aa(g.s.R(b),1.570796326794897)||
g.s.aa(g.s.R(e),1.570796326794897)){g.Wk.vb(l,c,a,b,d,e,f,h,k);return}if(g.s.aa(a,d)||g.s.aa(g.s.R(w),3.141592653589793)){g.Wk.vb(l,c,a,b,d,e,f,h,k);return}if(g.s.Ed(b)){g.Wk.vb(l,c,a,b,d,e,f,h,k);return}}var z=Math.sqrt(1-c);d=g.G.ca(d-a);a=0;g.G.cl(1,c,b,a,0,r,u,v);m[0]=r.u;m[1]=u.u;m[2]=v.u;g.G.cl(1,c,e,d,0,r,u,v);n[0]=r.u;n[1]=u.u;n[2]=v.u;p[0]=0;p[1]=0;p[2]=-1*c*g.G.n(1,c,b)*Math.sin(b);0>d?g.G.Yq(p,n,m,q,0):g.G.Yq(p,m,n,q,0);u=[0,0,0];v=[0,0,0];var x=[0,0,0];m=[0,0,0];r=[0,0,0];var A=Math.acos(q[2]/
1),B=1-c,C=Math.tan(A),D=1+C*C/B,G=2*p[2]*C/B;C=Math.sqrt(G*G-4*D*(p[2]*p[2]/B-1));D*=2;B=(-G+C)/D;G=(-G-C)/D;C=Math.tan(A);D=C*B+p[2];A=(B+G)/2;p=(D+(C*G+p[2]))/2;C=g.G.hp(B-A,D-p);B=p/z*1.570796326794897;for(G=0;100>G;G++){D=g.G.w(c,B);D=D*D/Math.cos(B)*(Math.sin(B)-p*D/(1-c));if(g.s.Ed(D))break;B-=D}p=g.G.n(1,c,B)*Math.cos(B);p=Math.sqrt((p-A)*(p+A));C=1-C/p;C*=2-C;D=g.G.qn(u);A=g.G.qn(v);B=g.G.qn(x);var H=g.G.Pt(x,u);G=g.G.Pt(x,v);g.G.tx(x,u,m);g.G.tx(x,v,r);u=Math.acos(H/(B*D));v=Math.acos(G/
(B*A));v*=g.s.Mb(1,g.G.Pt(m,r));if(1.570796326794897<=g.s.R(u)&&1.570796326794897<=g.s.R(v)||3.141592653589793<g.s.R(u-v))u=(3.141592653589793-g.s.R(u))*g.s.Mb(1,u),v=(3.141592653589793-g.s.R(v))*g.s.Mb(1,v);m=g.G.Qj(C,v);r=g.G.q(p,C,g.G.Qj(C,u));m=g.G.q(p,C,m);m=g.s.R(m-r)*l;u=new g.ha(0);v=new g.ha(0);x=q[1]/1;x*=-g.s.Mb(1,w);r=Math.acos(x)*g.s.Mb(1,w);t.vf(l,c,a,b,m,r,u,v);g.s.aa(d,u.u)&&g.s.aa(e,v.u)||(C=g.G.hp(g.G.ca(d-u.u),e-v.u),t.vf(l,c,a,b,m,g.G.ca(r+3.141592653589793),u,v),D=g.G.hp(g.G.ca(d-
u.u),e-v.u),D<C&&(r=g.G.ca(r+3.141592653589793)));u=[0,0,0,0];v=[0,0,0,0];p=[0,0,0];C=[0,0,0];l=[0,0,0];a=[0,0,0];b=[0,0,0];x=[0,0,0];p[0]=0;p[1]=0;p[2]=z;C[0]=0;C[1]=0;C[2]=0;g.G.Yq(C,p,n,u,0);g.s.Ed(e)?(l[0]=n[0],l[1]=n[1],l[2]=1,a[0]=1*Math.cos(d)-1*Math.sin(d),a[1]=1*Math.sin(d)+1*Math.cos(d)):(c=g.G.n(1,c,e)*Math.cos(e),l[0]=0,l[1]=0,n[2]+=Math.tan(1.570796326794897-g.s.R(e))*c*g.s.Mb(1,e),a[0]=c*Math.cos(d)-c*Math.sin(d),a[1]=c*Math.sin(d)+c*Math.cos(d));a[2]=n[2];g.G.Yq(n,a,l,v,1);g.G.tx(v,
u,b);g.G.tx(v,q,x);x=g.G.Pt(b,x)/(g.G.qn(b)*g.G.qn(x));x*=g.s.Mb(1,w);d=Math.acos(x)*-g.s.Mb(1,w);0<r&&0<d?d=g.G.ca(d+3.141592653589793):0>r&&0>d&&(d=g.G.ca(d+3.141592653589793));null!=f&&(f.u=m);null!=h&&(h.u=r);null!=k&&(k.u=d)}}};t.vf=function(l,c,a,b,d,e,f,h){var k=[0,0,0],m=[0,0,0],n=[0,0,0],p=[0,0,0],q=[0,0,0],r=[0,0,0],u=[0,0,0],v=[0,0,0,0],w=new g.ha(0),z=new g.ha(0),x=new g.ha(0),A=new g.ha(0),B=new g.ha(0),C=new g.ha(0);if(null!=f&&null!=h)if(g.s.ti(c))g.bh.vf(l,a,b,d,e,f,h);else if(g.s.Ed(d))null!=
f&&(f.u=a),null!=h&&(h.u=b);else if(e=g.G.ca(e),0>d&&(d=g.s.R(d),e=g.G.ca(e+3.141592653589793)),a=g.G.ca(a),b=g.G.ca(b),1.570796326794897<g.s.R(b)&&(a=g.G.ca(a+3.141592653589793),b=g.s.Mb(3.141592653589793,b)-b),g.s.aa(g.s.R(b),1.570796326794897)||g.s.Ed(b)||g.s.Ed(e)||g.s.aa(g.s.R(e),3.141592653589793))g.Wk.vf(l,c,a,b,d,e,f,h);else{var D=Math.sqrt(1-c);l=d/l;g.G.cl(1,c,b,0,0,A,B,C);k[0]=A.u;k[1]=B.u;k[2]=B.u;u[0]=0;u[1]=0;u[2]=-1*c*g.G.n(1,c,b)*Math.sin(b);A=g.G.n(1,c,b);B=g.G.ca(1.570796326794897-
e);C=Math.sin(B);d=Math.cos(b);b=Math.sin(b);q[0]=A*d-b*C;q[1]=Math.cos(B);q[2]=(1-c)*A*b+d*C;0>e?g.G.Yq(u,q,k,v,0):g.G.Yq(u,k,q,v,0);k=Math.acos(v[2]/1);v=Math.atan2(-v[1],-v[0]);b=1-c;q=Math.tan(k);B=1+q*q/b;A=2*u[2]*q/b;q=Math.sqrt(A*A-4*B*(u[2]*u[2]/b-1));B*=2;b=(-A+q)/B;A=(-A-q)/B;q=Math.tan(k);B=q*b+u[2];k=(b+A)/2;u=(B+(q*A+u[2]))/2;q=g.G.hp(b-k,B-u);D=u/D*1.570796326794897;for(b=0;100>b;b++){A=g.G.w(c,D);A=A*A/Math.cos(D)*(Math.sin(D)-u*A/(1-c));if(g.s.Ed(A))break;D-=A}D=g.G.n(1,c,D)*Math.cos(D);
D=Math.sqrt((D-k)*(D+k));u=1-q/D;u*=2-u;r=Math.acos(g.G.Pt(r,m)/(g.G.qn(r)*g.G.qn(m)));r*=g.s.Mb(1,m[0]);e=(g.G.q(D,u,g.G.Qj(u,r))+l*g.s.Mb(1,e))/g.G.Bh(D,u);e=g.G.ca(1.570796326794897*e);e=g.G.Tq(u,e);g.G.n(D,u,e);q=g.G.ca(v+a);a=Math.cos(q);e=Math.sin(q);n[0]=p[0]*a+p[1]*-e;n[1]=p[0]*e+p[1]*a;n[2]=p[2];g.G.iO(c,n[0],n[1],n[2],x,z,w);null!=f&&(f.u=z.u);null!=h&&(h.u=x.u)}};return t}()})(y||(y={}));(function(g){var t=function(){function d(e){this.Za=null;this.st=new g.h;this.tt=new g.h;this.g=e}d.prototype.compare=
function(e,f,h){this.g.Ic(f,this.st);this.g.Ic(e.ka(h),this.tt);return this.st.compare(this.tt)};return d}(),l=function(){function d(e){this.Ff=new g.h;this.Ck=new g.h;this.g=e}d.prototype.Eh=function(e){this.Ff.N(e)};d.prototype.compare=function(e,f){this.g.Ic(e.ka(f),this.Ck);return this.Ff.compare(this.Ck)};return d}(),c=function(d){function e(f){var h=d.call(this,f.g,f.ra,!1)||this;h.ib=f;return h}E(e,d);e.prototype.compare=function(f,h,k){if(this.wg)return-1;var m=this.ib.Sd.Jn(this.ib.Rh(h));
f=f.ka(k);var n=this.ib.Sd.Jn(this.ib.Rh(f));this.Fm=k;return this.HE(h,m,f,n)};return e}(g.HC),a=function(d){function e(f){var h=d.call(this,f.g,f.ra)||this;h.ib=f;return h}E(e,d);e.prototype.compare=function(f,h){if(this.wg)return-1;f=this.ib.Sd.Jn(this.ib.Rh(f.ka(h)));this.Fm=h;return this.IE(h,f)};return e}(g.WL),b=function(){function d(){this.Oc=this.ff=this.ko=this.Sd=this.mh=this.Bd=this.hb=this.g=null;this.Sg=!1;this.wh=this.Pm=this.ke=this.Fk=this.oh=this.zk=this.Jf=this.ce=null;this.yh=
this.Lq=this.JA=this.ra=0;this.Uv=this.Xn=!1;this.zo=new g.h;this.Pi=new g.h;this.hb=new g.bd(8);this.Bd=new g.bd(5);this.mh=new g.Yt;this.Sd=new g.Yt;this.Sg=!1;this.wh=new g.h;this.wh.oa(0,0);this.ra=0;this.yh=-1;this.Xn=!1;this.g=null;this.ff=new g.Xj;this.Oc=new g.Xj;this.oh=new g.ja(0);this.Fk=new g.GC;this.Jf=new g.ja(0);this.zk=new g.ja(0);this.ko=new g.Ta}d.prototype.GX=function(e,f){var h=new g.Fd;h.OB();e.Rc(h);this.gr(e);this.Xn=!1;this.ra=f;this.JA=f*f;f=this.YB();e.Rc(h);f||(this.oQ(),
f||this.YB());-1!=this.yh&&(this.g.Vd(this.yh),this.yh=-1);this.g=null;return this.Xn};d.prototype.KX=function(e,f){this.gr(e);this.Xn=!1;this.ra=f;this.JA=f*f;this.Sg=!1;this.YB();this.Sg||(this.Sg=1==e.Ip(f,!0,!1));-1!=this.yh&&(this.g.Vd(this.yh),this.yh=-1);this.g=null};d.prototype.tg=function(e,f){return this.hb.V(e,0+f)};d.prototype.AB=function(e,f,h){this.hb.U(e,0+f,h)};d.prototype.Rh=function(e){return this.hb.V(e,2)};d.prototype.PW=function(e,f){this.hb.U(e,2,f)};d.prototype.LF=function(e,
f){return this.hb.V(e,3+f)};d.prototype.Rp=function(e){return this.hb.V(e,7)};d.prototype.Ql=function(e,f){this.hb.U(e,7,f)};d.prototype.Tp=function(e,f){return this.hb.V(e,3+this.Qp(e,f))};d.prototype.hr=function(e,f,h){this.hb.U(e,3+this.Qp(e,f),h)};d.prototype.HR=function(e,f){return this.hb.V(e,5+this.Qp(e,f))};d.prototype.jr=function(e,f,h){this.hb.U(e,5+this.Qp(e,f),h)};d.prototype.Tr=function(e){return this.Bd.V(e,0)};d.prototype.LW=function(e,f){this.Bd.U(e,0,f)};d.prototype.Vy=function(e){return this.Bd.V(e,
4)};d.prototype.er=function(e,f){this.Bd.U(e,4,f)};d.prototype.jl=function(e){return this.Bd.V(e,1)};d.prototype.nn=function(e,f){this.Bd.U(e,1,f)};d.prototype.Uy=function(e){return this.Bd.V(e,3)};d.prototype.At=function(e,f){this.Bd.U(e,3,f)};d.prototype.$m=function(e){var f=this.Bd.Fe(),h=this.mh.Ph();this.LW(f,h);-1!=e?(this.mh.addElement(h,e),this.g.Sa(e,this.yh,f),this.er(f,this.g.Va(e))):this.er(f,-1);return f};d.prototype.FP=function(e){this.Bd.ld(e)};d.prototype.AD=function(e,f){this.mh.addElement(this.Tr(e),
f);this.g.Sa(f,this.yh,e)};d.prototype.jt=function(e){var f=this.hb.Fe(),h=this.Sd.Ph();this.PW(f,h);-1!=e&&this.Sd.addElement(h,e);return f};d.prototype.BD=function(e,f){this.Sd.addElement(this.Rh(e),f)};d.prototype.Su=function(e){this.hb.ld(e);e=this.oh.cF(e);0<=e&&this.oh.LV(e)};d.prototype.hj=function(e,f){if(-1==this.tg(e,0))this.AB(e,0,f);else if(-1==this.tg(e,1))this.AB(e,1,f);else throw g.i.Ra();this.ay(e,f)};d.prototype.ay=function(e,f){var h=this.jl(f);if(-1!=h){var k=this.Tp(h,f);this.jr(k,
f,e);this.hr(e,f,k);this.hr(h,f,e);this.jr(e,f,h)}else this.jr(e,f,e),this.hr(e,f,e),this.nn(f,e)};d.prototype.Qp=function(e,f){return this.tg(e,0)==f?0:1};d.prototype.Zm=function(e,f){var h=this.Uy(f);-1!=h&&(this.ff.xd(h,-1),this.At(f,-1));var k;h=this.jl(f);if(-1!=h){var m=k=h;do{var n=!1,p=this.Qp(k,f),q=this.LF(k,p);if(this.tg(k,p+1&1)==e){this.Uu(k);this.Sd.fh(this.Rh(k));this.Su(k);if(k==q){h=-1;break}h==k&&(h=this.jl(f),m=q,n=!0)}k=q}while(k!=m||n);if(-1!=h){do p=this.Qp(k,f),q=this.LF(k,
p),this.AB(k,p,e),k=q;while(k!=m);k=this.jl(e);-1!=k?(m=this.Tp(k,e),n=this.Tp(h,e),m==k?(this.nn(e,h),this.ay(k,e),this.nn(e,k)):n==h&&this.ay(h,e),this.hr(h,e,m),this.jr(m,e,h),this.hr(k,e,n),this.jr(n,e,k)):this.nn(e,h)}}h=this.Tr(e);k=this.Tr(f);for(m=this.mh.tc(k);-1!=m;m=this.mh.mb(m))this.g.Sa(this.mh.ka(m),this.yh,e);this.mh.wy(h,k);this.FP(f)};d.prototype.NT=function(e,f){var h=this.tg(e,0),k=this.tg(e,1),m=this.tg(f,0),n=this.tg(f,1);this.Sd.wy(this.Rh(e),this.Rh(f));f==this.jl(h)&&this.nn(h,
e);f==this.jl(k)&&this.nn(k,e);this.Uu(f);this.Su(f);h==m&&k==n||k==m&&h==n||(this.Hn(h,this.zo),this.Hn(m,this.Pi),this.zo.sb(this.Pi)?(h!=m&&this.Zm(h,m),k!=n&&this.Zm(k,n)):(k!=m&&this.Zm(k,m),h!=n&&this.Zm(h,n)))};d.prototype.Uu=function(e){var f=this.tg(e,1);this.VE(e,this.tg(e,0));this.VE(e,f)};d.prototype.VE=function(e,f){var h=this.Tp(e,f),k=this.HR(e,f),m=this.jl(f);h!=e?(this.hr(k,f,h),this.jr(h,f,k),m==e&&this.nn(f,h)):this.nn(f,-1)};d.prototype.MD=function(e,f,h){var k=this.Sd.tc(e),m=
this.Sd.ka(k);e=this.Ke(m);var n=this.Ke(this.g.W(m));this.g.lr(m,f,h,!0);for(k=this.Sd.mb(k);-1!=k;k=this.Sd.mb(k)){m=this.Sd.ka(k);var p=this.Ke(m)==e;this.g.lr(m,f,h,p)}k=f.Xp(h,0).bc();f=f.Xp(h,f.pl(h)-1).yc();this.wK(e,k);this.wK(n,f)};d.prototype.QE=function(e,f,h){var k=this.Rh(e),m=this.tg(e,0),n=this.tg(e,1),p=this.jt(-1);this.oh.add(p);this.Ql(p,-3);this.Jf.add(p);this.hj(p,m);e=1;for(f=f.pl(h);e<f;e++)h=this.$m(-1),this.zk.add(h),this.Jf.add(h),this.hj(p,h),p=this.jt(-1),this.oh.add(p),
this.Ql(p,-3),this.Jf.add(p),this.hj(p,h);this.hj(p,n);for(k=this.Sd.tc(k);-1!=k;k=this.Sd.mb(k))if(n=this.Sd.ka(k),this.Ke(n)==m){e=0;do 0<e&&(p=this.Jf.get(e-1),this.AD(p,n),-1==this.Vy(p)&&this.er(p,this.g.Va(n))),p=this.Jf.get(e),e+=2,this.BD(p,n),n=this.g.W(n);while(e<this.Jf.size)}else{e=this.Jf.size-1;do e<this.Jf.size-2&&(p=this.Jf.get(e+1),this.AD(p,n),0>this.Vy(p)&&this.er(p,this.g.Va(n))),p=this.Jf.get(e),e-=2,this.BD(p,n),n=this.g.W(n);while(0<=e)}this.Jf.clear(!1)};d.prototype.Ke=function(e){return this.g.Qa(e,
this.yh)};d.prototype.NI=function(e,f,h){var k=this.tg(f,0),m=new g.h;this.Hn(k,m);var n=new g.h,p=this.tg(f,1);this.Hn(p,n);var q=h.pl(e),r=h.Xp(e,0),u=new g.h;r.$p(u);if(!m.sb(u)){if(!this.Sg){var v=m.compare(this.wh);u=u.compare(this.wh);0>v*u&&(this.Sg=!0)}this.oF(k,this.Jf);this.zk.add(k)}!this.Sg&&1<q&&(v=m.compare(n),r=r.yc(),m.compare(r)!=v||r.compare(n)!=v?this.Sg=!0:0>r.compare(this.wh)&&(this.Sg=!0));r=h.Xp(e,q-1);e=r.yc();n.sb(e)||(this.Sg||(v=n.compare(this.wh),u=e.compare(this.wh),0>
v*u&&(this.Sg=!0)),this.oF(p,this.Jf),this.zk.add(p));this.Jf.add(f);n=0;for(p=this.Jf.size;n<p;n++)e=this.Jf.get(n),h=this.Rp(e),g.bd.GG(h)&&(this.Oc.xd(h,-1),this.Ql(e,-1)),e!=f&&-3!=this.Rp(e)&&(this.oh.add(e),this.Ql(e,-3));this.Jf.clear(!1)};d.prototype.kO=function(e,f){this.ce.compare(this.Oc,this.Oc.ka(e),f);this.ce.wg&&(this.ce.Lr(),this.fF(e,f))};d.prototype.fF=function(e,f){this.Xn=!0;e=this.Oc.ka(e);f=this.Oc.ka(f);var h=this.Sd.Jn(this.Rh(e)),k=this.Sd.Jn(this.Rh(f)),m=this.g.cc(h);null==
m&&(null==this.ke&&(this.ke=new g.zb),this.g.gd(h,this.ke),m=this.ke);h=this.g.cc(k);null==h&&(null==this.Pm&&(this.Pm=new g.zb),this.g.gd(k,this.Pm),h=this.Pm);this.Fk.Po(m);this.Fk.Po(h);this.Fk.Fa(this.ra,!0)&&(this.Sg=!0);this.cK(e,f,-1,this.Fk);this.Fk.clear()};d.prototype.EQ=function(e,f){this.Xn=!0;f=this.Oc.ka(f);var h=this.Sd.Jn(this.Rh(f)),k=this.g.cc(h);null==k&&(null==this.ke&&(this.ke=new g.zb),this.g.gd(h,this.ke),k=this.ke);h=this.uF(e);this.Fk.Po(k);this.g.Vi(h,this.ko);this.Fk.Az(this.ra,
this.ko,!0);this.cK(f,-1,e,this.Fk);this.Fk.clear()};d.prototype.rS=function(){if(0!=this.oh.size)for(;0!=this.oh.size;){if(this.oh.size>Math.max(100,this.g.hd)){this.oh.clear(!1);this.Sg=!0;break}var e=this.oh.Hc();this.oh.Mf();this.Ql(e,-1);-1!=this.PS(e)&&this.qS(e);this.Wn=!1}};d.prototype.qS=function(e){if(this.Wn){var f=this.Oc.wu(this.HH,this.BH,e,!0);this.Wn=!1}else f=this.Oc.zD(e);-1==f?this.NT(this.Oc.ka(this.Oc.yF()),e):(this.Ql(e,f),this.ce.wg&&(this.ce.Lr(),this.fF(this.ce.Fm,f)))};d.prototype.PS=
function(e){var f=this.tg(e,0);e=this.tg(e,1);this.Hn(f,this.zo);this.Hn(e,this.Pi);if(g.h.Ac(this.zo,this.Pi)<=this.JA)return this.Sg=!0,-1;var h=this.zo.compare(this.wh),k=this.Pi.compare(this.wh);return 0>=h&&0<k?e:0>=k&&0<h?f:-1};d.prototype.mQ=function(){var e=new g.ja(0);e.Jb(this.g.hd);for(var f=this.g.$q(),h=f.next();-1!=h;h=f.next())-1!=this.g.Qa(h,this.yh)&&e.add(h);this.g.ix(e,e.size);this.nQ(e)};d.prototype.nQ=function(e){this.ff.clear();this.ff.Ge(e.size);this.ff.Wo(new t(this.g));var f=
new g.h;f.Uc();for(var h=-1,k=new g.h,m=0,n=e.size;m<n;m++){var p=e.get(m);this.g.Ic(p,k);k.sb(f)?(p=this.g.Qa(p,this.yh),this.Zm(h,p)):(h=this.Ke(p),this.g.Ic(p,f),p=this.ff.xn(p),this.At(h,p))}};d.prototype.oQ=function(){var e=new g.ja(0);e.Jb(this.g.hd);for(var f=this.ff.tc(-1);-1!=f;f=this.ff.mb(f))e.add(this.ff.ka(f));this.ff.clear();this.g.ix(e,e.size);f=0;for(var h=e.size;f<h;f++){var k=e.get(f),m=this.Ke(k);k=this.ff.xn(k);this.At(m,k)}};d.prototype.oF=function(e,f){var h=this.jl(e);if(-1!=
h){var k=h;do g.bd.GG(this.Rp(k))&&f.add(k),k=this.Tp(k,e);while(k!=h)}};d.prototype.wK=function(e,f){for(e=this.mh.tc(this.Tr(e));-1!=e;e=this.mh.mb(e))this.g.pf(this.mh.ka(e),f)};d.prototype.cK=function(e,f,h,k){this.Uu(e);-1!=f&&this.Uu(f);this.NI(0,e,k);-1!=f&&this.NI(1,f,k);-1!=h&&(k.Ff.D(this.zo),this.Hn(h,this.Pi),this.Pi.sb(this.zo)||this.zk.add(h));h=0;for(var m=this.zk.size;h<m;h++){var n=this.zk.get(h),p=this.Uy(n);-1!=p&&(this.ff.xd(p,-1),this.At(n,-1))}h=this.Rh(e);m=-1!=f?this.Rh(f):
-1;this.MD(h,k,0);-1!=f&&this.MD(m,k,1);this.QE(e,k,0);-1!=f&&this.QE(f,k,1);this.Sd.fh(h);this.Su(e);-1!=f&&(this.Sd.fh(m),this.Su(f));h=0;for(m=this.zk.size;h<m;h++)n=this.zk.get(h),n==this.Lq&&(this.Uv=!0),p=this.Uy(n),-1==p&&(p=this.ff.zD(this.uF(n)),-1==p?(e=this.Ke(this.ff.ka(this.ff.yF())),this.Zm(e,n)):this.At(n,p));this.zk.clear(!1)};d.prototype.Hn=function(e,f){this.g.YF(this.Vy(e),f)};d.prototype.uF=function(e){return this.mh.Jn(this.Tr(e))};d.prototype.YB=function(){this.Uv=!1;this.Lq=
-1;null==this.ce&&(this.Oc.Ov=!1,this.ce=new c(this),this.Oc.$n=this.ce);var e=new g.ja(0),f=null,h=null,k=0;this.BH=this.HH=-1;this.Wn=!1;for(var m=this.ff.tc(-1);-1!=m;){k++;this.Wn=!1;var n=this.ff.ka(m);this.Lq=this.Ke(n);this.g.Ic(n,this.wh);this.ce.VJ(this.wh.y,this.wh.x);var p=this.jl(this.Lq),q=-1==p;if(!q){n=p;do{var r=this.Rp(n);-1==r?(this.oh.add(n),this.Ql(n,-3)):-3!=r&&e.add(r);n=this.Tp(n,this.Lq)}while(n!=p)}if(0<e.size){this.Wn=1==e.size&&1==this.oh.size;q=0;for(p=e.size;q<p;q++)n=
this.Oc.ka(e.get(q)),this.Ql(n,-2);var u=-2,v=-2;q=0;for(p=e.size;q<p;q++){r=e.get(q);if(-2==u){var w=this.Oc.ze(r);-1!=w?(n=this.Oc.ka(w),n=this.Rp(n),-2!=n&&(u=w)):u=-1}-2==v&&(r=this.Oc.mb(r),-1!=r?(n=this.Oc.ka(r),n=this.Rp(n),-2!=n&&(v=r)):v=-1);if(-2!=u&&-2!=v)break}q=0;for(p=e.size;q<p;q++)r=e.get(q),n=this.Oc.ka(r),this.Oc.xd(r,-1),this.Ql(n,-1);e.clear(!1);this.HH=-1!=u?u:-1;this.BH=-1!=v?v:-1;-1!=u&&-1!=v?this.Wn||this.kO(u,v):-1==u&&-1==v&&(this.Wn=!1)}else q&&(null==f&&(f=new a(this)),
f.Eh(this.wh),this.Oc.pJ(f),f.wg&&(f.Lr(),this.EQ(this.Lq,f.Fm)));this.rS();this.Uv?(this.Uv=!1,null==h&&(h=new l(this.g)),h.Eh(this.wh),m=this.ff.pJ(h)):m=this.ff.mb(m)}return this.Xn};d.prototype.gr=function(e){this.g=e;this.yh=this.g.Id();this.hb.Ge(e.hd+32);this.Bd.Ge(e.hd);this.mh.wt(e.hd);this.mh.hn(e.hd);this.Sd.wt(e.hd+32);this.Sd.hn(e.hd+32);for(e=this.g.md;-1!=e;e=this.g.xe(e))if(g.ba.Jc(this.g.kc(e)))for(q=this.g.Ob(e);-1!=q;q=this.g.Sb(q)){var f=this.g.Ka(q),h=this.g.Ya(q),k=this.$m(h),
m=this.jt(h);this.hj(m,k);r=this.g.W(h);h=0;for(f-=2;h<f;h++){var n=this.g.W(r),p=this.$m(r);this.hj(m,p);m=this.jt(r);this.hj(m,p);r=n}this.g.ec(q)?(p=this.$m(r),this.hj(m,p),m=this.jt(r),this.hj(m,p),this.hj(m,k)):(p=this.$m(r),this.hj(m,p))}else for(var q=this.g.Ob(e);-1!=q;q=this.g.Sb(q)){var r=this.g.Ya(q);k=0;for(f=this.g.Ka(q);k<f;k++)this.$m(r),r=this.g.W(r)}this.mQ()};return d}();g.EC=b})(y||(y={}));(function(g){var t=function(l){function c(a,b,d){var e=l.call(this)||this;if(void 0!==a)if(void 0!==
d){e.description=g.ge.sg();var f=new g.Pd;f.L(a,b,d);e.SB(f)}else if(void 0!==b)e.description=g.ge.sg(),e.Db(a,b);else if(a instanceof g.va)e.description=a;else if(a instanceof g.h)e.description=g.ge.sg(),e.Db(a);else if(a instanceof c)e.description=a.description,e.Db(a.ug(),a.Qg()),null!==a.la&&(e.la=a.la.slice(0));else throw g.i.O();else e.description=g.ge.sg();return e}E(c,l);c.prototype.D=function(a){if(void 0!==a){if(this.Cc())throw g.i.ga("This operation should not be performed on an empty geometry.");
a.oa(this.la[0],this.la[1])}else{if(this.Cc())throw g.i.ga("This operation should not be performed on an empty geometry.");a=new g.h;a.oa(this.la[0],this.la[1]);return a}};c.prototype.Db=function(a,b){"number"===typeof a?(this.xc(),null==this.la&&this.up(),this.la[0]=a,this.la[1]=b):(this.xc(),this.Db(a.x,a.y))};c.prototype.rz=function(){if(this.Cc())throw g.i.ga("This operation should not be performed on an empty geometry.");var a=new g.Pd;a.x=this.la[0];a.y=this.la[1];a.z=this.description.dG()?
this.la[2]:g.va.ve(1);return a};c.prototype.SB=function(a){this.xc();var b=this.hasAttribute(1);b||g.va.yG(1,a.z)||(this.ue(1),b=!0);null==this.la&&this.up();this.la[0]=a.x;this.la[1]=a.y;b&&(this.la[2]=a.z)};c.prototype.ug=function(){if(this.Cc())throw g.i.ga("This operation should not be performed on an empty geometry.");return this.la[0]};c.prototype.RB=function(a){this.setAttribute(0,0,a)};c.prototype.Qg=function(){if(this.Cc())throw g.i.ga("This operation should not be performed on an empty geometry.");
return this.la[1]};c.prototype.WJ=function(a){this.setAttribute(0,1,a)};c.prototype.$F=function(){return this.Wc(1,0)};c.prototype.nX=function(a){this.setAttribute(1,0,a)};c.prototype.JF=function(){return this.Wc(2,0)};c.prototype.YW=function(a){this.setAttribute(2,0,a)};c.prototype.Gc=function(){return this.rF(3,0)};c.prototype.GJ=function(a){this.setAttribute(3,0,a)};c.prototype.Wc=function(a,b){var d=this.description.Tf(a);return 0<=d?this.la[this.description.Zj(d)+b]:g.va.ve(a)};c.prototype.rF=
function(a,b){var d=this.description.Tf(a);return 0<=d?this.la[this.description.Zj(d)+b]:g.va.ve(a)};c.prototype.setAttribute=function(a,b,d){this.xc();var e=this.description.Tf(a);0>e&&(this.ue(a),e=this.description.Tf(a));null==this.la&&this.up();this.la[this.description.Zj(e)+b]=d};c.prototype.K=function(){return 33};c.prototype.Eb=function(){return 0};c.prototype.Pa=function(){this.xc();null!=this.la&&(this.la[0]=NaN,this.la[1]=NaN)};c.prototype.tn=function(a){if(null!=this.la){for(var b=g.ge.Fw(a,
this.description),d=[],e=0,f=0,h=a.Ba;f<h;f++){var k=a.rd(f),m=g.va.Wa(k);if(-1==b[f]){var n=g.va.ve(k);for(k=0;k<m;k++)d[e]=n,e++}else for(n=this.description.Zj(b[f]),k=0;k<m;k++)d[e]=this.la[n],e++,n++}this.la=d}this.description=a};c.prototype.up=function(){this.gJ(this.description.De.length);c.TD(this.description.De,this.la,this.description.De.length);this.la[0]=NaN;this.la[1]=NaN};c.prototype.Rc=function(a){if(a instanceof g.Fd){if(!this.Cc()){var b=this.D();a.Fh(b,b);this.Db(b)}}else this.Cc()||
(this.ue(1),b=this.rz(),this.SB(a.gp(b)))};c.prototype.copyTo=function(a){if(33!=a.K())throw g.i.O();a.xc();null==this.la?(a.Pa(),a.la=null,a.og(this.description)):(a.og(this.description),a.gJ(this.description.De.length),c.TD(this.la,a.la,this.description.De.length))};c.prototype.Ja=function(){return new c(this.description)};c.prototype.B=function(){return this.Cc()};c.prototype.Cc=function(){return null==this.la||isNaN(this.la[0])||isNaN(this.la[1])};c.prototype.dn=function(a){a.Pa();this.description!=
a.description&&a.og(this.description);a.$b(this)};c.prototype.A=function(a){this.Cc()?a.Pa():(a.v=this.la[0],a.F=this.la[1],a.C=this.la[0],a.H=this.la[1])};c.prototype.Ro=function(a){if(this.Cc())a.Pa();else{var b=this.rz();a.v=b.x;a.F=b.y;a.Ze=b.z;a.C=b.x;a.H=b.y;a.Ig=b.z}};c.prototype.ig=function(a,b){var d=new g.Pc;if(this.Cc())return d.Pa(),d;a=this.Wc(a,b);d.ma=a;d.sa=a;return d};c.prototype.gJ=function(a){if(null==this.la)this.la=g.P.pg(a);else if(this.la.length<a){for(var b=this.la.slice(0),
d=this.la.length;d<a;d++)b[d]=0;this.la=b}};c.TD=function(a,b,d){if(0<d)for(d=0;d<a.length;d++)b[d]=a[d]};c.prototype.Nb=function(a){if(a==this)return!0;if(!(a instanceof c)||this.description!=a.description)return!1;if(this.Cc())return a.Cc()?!0:!1;for(var b=0,d=this.description.De.length;b<d;b++)if(this.la[b]!=a.la[b])return!1;return!0};c.prototype.dc=function(){var a=this.description.dc();if(!this.Cc())for(var b=0,d=this.description.De.length;b<d;b++){var e=this.la[b];e=g.P.truncate(e^e>>>32);a=
g.P.Th(e,a)}return a};c.prototype.qg=function(){return null};return c}(g.ba);g.Ta=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b){void 0!==c&&(this.x=c,this.y=a,this.z=b)}l.construct=function(c,a,b){var d=new l;d.x=c;d.y=a;d.z=b;return d};l.prototype.L=function(c,a,b){this.x=c;this.y=a;this.z=b};l.prototype.gx=function(){this.z=this.y=this.x=0};l.prototype.normalize=function(){var c=this.length();0==c&&(this.x/=c,this.y/=c,this.z/=c)};l.prototype.length=function(){return Math.sqrt(this.x*
this.x+this.y*this.y+this.z*this.z)};l.prototype.sub=function(c){return new l(this.x-c.x,this.y-c.y,this.z-c.z)};l.prototype.Fg=function(c){new l(this.x*c,this.y*c,this.z*c)};l.prototype.Qh=function(c){return this.x*c.x+this.y*c.y+this.z*c.z};return l}();g.Pd=t})(y||(y={}));(function(g){var t=function(){function l(c,a,b){this.Dw=this.sA=null;this.ag=a;this.yT=a.y-b;this.xT=a.y+b;this.Bw=0;this.Uz=c;this.ra=b;this.KT=b*b;this.Vz=0!=b;this.Iv=!1}l.prototype.result=function(){return 0!=this.Bw?1:0};
l.prototype.YM=function(c){c=c.jc(c.he(this.ag,!1));return g.h.Ac(c,this.ag)<=this.KT?!0:!1};l.prototype.XE=function(c){if(!this.Vz&&(this.Uz&&this.ag.sb(c.bc())||this.ag.sb(c.yc())))this.Iv=!0;else if(c.pa==this.ag.y&&c.pa==c.na){if(this.Uz&&!this.Vz){var a=Math.max(c.ta,c.qa);this.ag.x>Math.min(c.ta,c.qa)&&this.ag.x<a&&(this.Iv=!0)}}else{var b=!1;a=Math.max(c.ta,c.qa);this.ag.x>a?b=!0:this.ag.x>=Math.min(c.ta,c.qa)&&(b=0<c.fq(!0,this.ag.y,this.Dw,null)&&this.Dw[0]<=this.ag.x);if(b){if(this.ag.y==
c.bc().y){if(this.ag.y<c.yc().y)return}else if(this.ag.y==c.yc().y&&this.ag.y<c.bc().y)return;this.Bw=this.Uz?this.Bw^1:this.Bw+(c.bc().y>c.yc().y?1:-1)}}};l.prototype.MI=function(c){var a=c.ig(0,1);if(a.ma>this.xT||a.sa<this.yT)return!1;if(this.Vz&&this.YM(c))return!0;if(a.ma>this.ag.y||a.sa<this.ag.y)return!1;null==this.sA&&(this.sA=[null,null,null,null,null]);null==this.Dw&&(this.Dw=[0,0,0]);a=c.ZF();if(0<a)for(c=0;c<a;c++){var b=this.sA[c].get();this.XE(b);if(this.Iv)return!0}else if(this.XE(c),
this.Iv)return!0;return!1};l.NM=function(c,a,b){a=new l(0==c.In(),a,b);for(c=c.Ha();c.ab();)for(;c.Ia();)if(b=c.ia(),a.MI(b))return-1;return a.result()};l.OM=function(c,a,b,d){var e=new g.l;c.zc(e);e.Y(d,d);var f=new l(0==c.In(),b,d);c=c.Ha();var h=new g.l;h.L(e);h.C=b.x+d;h.F=b.y-d;h.H=b.y+d;b=a.FF(h,d);for(d=b.next();-1!=d;d=b.next())if(c.Wb(a.ka(d)),c.Ia()&&(d=c.ia(),f.MI(d)))return-1;return f.result()};l.ym=function(c,a,b){if(c.B())return 0;var d=new g.l;c.zc(d);d.Y(b,b);if(!d.contains(a))return 0;
d=c.Cb;if(null!=d){var e=d.Ek;if(null!=e){e=e.To(a.x,a.y);if(1==e)return 1;if(0==e)return 0}d=d.Gb;if(null!=d)return l.OM(c,d,a,b)}return l.NM(c,a,b)};l.VS=function(c,a,b){return a.B()?0:l.ym(c,a.D(),b)};l.Nl=function(c,a){c=c.I();return 16>c?!1:2*c+Math.log(c)/Math.log(2)*a<1*c*a};return l}();g.Kg=t})(y||(y={}));(function(g){var t=function(l){function c(a){return l.call(this,!0,a)||this}E(c,l);c.prototype.Ja=function(){return new c(this.description)};c.prototype.Eb=function(){return 2};c.prototype.K=
function(){return 1736};c.prototype.sG=function(a,b,d){this.DS(a,b,d)};c.prototype.lR=function(){this.AR()};return c}(g.Uk);g.Ea=t})(y||(y={}));(function(g){(function(t){t[t.PiPOutside=0]="PiPOutside";t[t.PiPInside=1]="PiPInside";t[t.PiPBoundary=2]="PiPBoundary"})(g.ML||(g.ML={}));g.kd=function(){function t(){}t.FG=function(l,c,a){l=g.Kg.VS(l,c,a);return 0==l?0:1==l?1:2};t.ae=function(l,c,a){l=g.Kg.ym(l,c,a);return 0==l?0:1==l?1:2};t.NX=function(l,c,a,b,d){if(c.length<a||d.length<a)throw g.i.O();
for(var e=0;e<a;e++)d[e]=t.ae(l,c[e],b)};t.nK=function(l,c,a,b,d){if(1736==l.K())t.NX(l,c,a,b,d);else if(197==l.K()){var e=new g.l;l.A(e);t.ZM(e,c,a,b,d)}else throw g.i.ga("invalid_call");};t.ZM=function(l,c,a,b,d){if(c.length<a||d.length<a)throw g.i.O();if(l.B())for(b=0;b<a;b++)d[b]=0;else for(l.Y(.5*-b,.5*-b),l.Y(.5*b,.5*b),b=0;b<a;b++)l.contains(c[b])?d[b]=1:l.contains(c[b])?d[b]=2:d[b]=0};t.PX=function(l,c,a,b,d){for(var e=0;e<a;e++)d[e]=l.ns(c[e],b)?2:0};t.OX=function(l,c,a,b,d){var e=l.Cb,f=
null;null!=e&&(f=e.Ek);e=a;for(var h=0;h<a;h++)if(d[h]=1,null!=f){var k=c[h];0==f.To(k.x,k.y)&&(d[h]=0,e--)}if(0!=e)for(l=l.Ha();l.ab()&&0!=e;)for(;l.Ia()&&0!=e;)for(f=l.ia(),h=0;h<a&&0!=e;h++)1==d[h]&&f.ns(c[h],b)&&(d[h]=2,e--);for(h=0;h<a;h++)1==d[h]&&(d[h]=0)};t.oK=function(l,c,a,b,d){var e=l.K();if(1607==e)t.OX(l,c,a,b,d);else if(g.ba.Ad(e))t.PX(l,c,a,b,d);else throw g.i.ga("Invalid call.");};return t}()})(y||(y={}));(function(g){var t=function(l){function c(a,b){if(2==arguments.length){var d=
l.call(this,!1,a.description)||this;d.qf(a);d.lineTo(b)}else d=l.call(this,!1,a)||this;return d}E(c,l);c.prototype.Ja=function(){return new c(this.description)};c.prototype.Eb=function(){return 1};c.prototype.K=function(){return 1607};c.prototype.sG=function(a,b,d){this.ES(a,b,d)};return c}(g.Uk);g.Ua=t})(y||(y={}));(function(g){var t=function(){function l(){}l.prototype.progress=function(){return!0};l.Bp=function(c){if(null!=c&&!c.progress(-1,-1))throw g.i.JC();};return l}();g.op=t})(y||(y={}));
(function(g){(function(a){a[a.clipWithInputHorizon=1]="clipWithInputHorizon";a[a.clipWithOutputHorizon=2]="clipWithOutputHorizon"})(g.KK||(g.KK={}));var t=function(){function a(){this.fl=3;this.By=this.Hu=NaN}a.prototype.aS=function(){return this.es(1)};a.prototype.bS=function(){return this.es(2)};a.prototype.es=function(b){return 0!=(this.fl&b)};a.prototype.Sf=function(){var b=new a;b.Hu=this.Hu;b.By=this.By;b.fl=this.fl;return b};return a}();g.rY=t;(function(a){a[a.Dont_Geonomalize_Polygon=2147483648]=
"Dont_Geonomalize_Polygon";a[a.Dont_Adjust_At_Poles=1073741824]="Dont_Adjust_At_Poles"})(g.LK||(g.LK={}));var l=function(){function a(){this.fl=0}a.prototype.es=function(b){return 0!=(this.fl&b)};a.mg=function(b){var d=new a;d.fl=b.fl;return d};a.prototype.hM=function(b){this.fl=b.fl};return a}();g.sY=l;var c=function(){function a(b,d,e){this.gf=b;this.bg=d;this.Yf=new g.l;this.Yf.L(e);this.tT=b.dc()+d.dc()+this.Yf.dc().toString()}a.prototype.dc=function(){return this.tT};a.prototype.Nb=function(b){return this==
b||this.gf.Nb(b.gf)&&this.bg.Nb(b.bg)&&this.Yf.Nb(b.Yf)};return a}();g.xY=c;c=function(){function a(){this.bg=this.gf=null;this.mH=new t;this.nH=new l;this.tw=this.$f=null;this.jw=this.Un=!0}a.Or=function(b,d,e,f){var h;void 0===f&&(f=null);void 0===h&&(h=null);var k=new a;k.rp(b,d,e,f,h);return k};a.prototype.rp=function(b,d,e,f,h){if(null==b||null==d)throw g.i.ga("invalidArgument");this.gf=b;this.bg=d;this.jw=this.Un=!1;null!=f&&(this.mH=f.Sf());null!=h&&this.nH.hM(h);h=!1;1==d.Tb()&&null!=f&&(f=
f.Hu,isNaN(f)||0==f||(h=!0));if(b==d)this.Un=!h,this.jw=!0;else{f=b.Tb();var k=d.Tb();if(0==f||0==k){if(null!=e)throw g.i.O();null!=b.Jd()&&null!=d.Jd()&&(this.Un=b.Jd().Nb(d.Jd()))}else 3==f||3==k?this.Un=b.Nb(d):this.gf.eS(this.bg)?this.Un=!h:this.Un=!1,this.$f=e,null!=this.$f&&this.$f.dx(),this.jw=(null==this.$f||0==this.$f.count())&&this.gf.uc().Nb(this.bg.uc())}this.fY()};a.prototype.isIdentity=function(){return this.Un};a.prototype.jR=function(){return this.mH.Sf()};a.prototype.Nb=function(b){return b==
this?!0:b instanceof a&&this.gf.Nb(b.gf)&&this.bg.Nb(b.bg)?this.$f==b.$f?!0:null!=this.$f&&null!=b.$f&&this.$f.Nb(b.$f)?!0:!1:!1};a.prototype.fY=function(){this.tw=new g.Zt(this)};return a}();g.xr=c})(y||(y={}));(function(g){var t=function(){function l(){}l.Ep=function(c){return c*l.hW};l.hx=function(c,a){return l.eP(a-c)};l.fP=function(c){if(-360<=c&&720>c)return 0>c?c+=360:360<=c&&(c-=360),c;c=g.oc.MK(c);0>c&&(c+=360);return c};l.eP=function(c){c=l.fP(c);180<c&&(c-=360);return c};l.hW=57.29577951308232;
return l}();g.sr=t;g.Ih=function(){function l(){}l.lj=function(c,a){var b=new g.l;c.A(b);var d=g.cb.ih(a),e=new g.l;e.L(d);e.v=b.v;e.C=b.C;e.Y(.01*e.da(),0);a=g.ua.Yd(a,b,!1);return e.contains(b)?c:g.Wd.clip(c,e,a,0)};l.gs=function(c,a,b,d,e){if(!g.cb.Yc(a))throw g.i.O();var f=g.ua.kj(a,c,!1),h=g.cb.ih(a),k=g.cb.uc(a),m=k.Jd().ai,n=g.cb.sv(k);k=g.cb.bv(k);n*=2-n;var p=new g.Pc;h.en(p);var q=[[0,0],[0,0]];2==g.tf.Tb(a)?d?(q[0][0]=l.an(e,p),q[0][1]=h.Lp(),g.cb.rt(),h=q[0][0]*m):(q[0][0]=h.fk(),q[0][1]=
e,g.cb.rt(),h=q[0][1]*m):h=e*m;if(!d&&0!=h)throw g.i.O();var r=new g.ha,u=new g.jd;c=u.Ib(c);for(var v=[0],w=new g.h,z=new g.h,x=new g.h,A=new g.h,B=new g.h,C=new g.h,D=u.Ob(c);-1!=D;D=u.Sb(D)){var G=u.Ya(D);u.D(G,x);for(var H=!1,K=G=u.W(G);-1!=K;K=u.W(K)){if(K==G){if(H)break;H=!0}u.D(K,A);if(d&&f<e-x.x&&A.x-e>f||f<e-A.x&&x.x-e>f||!d&&f<-x.y&&A.y>f||f<-A.y&&x.y>f){do if(!(Math.abs(x.x-A.x)>=.5*p.S())){2==g.tf.Tb(a)?(q[0][0]=l.an(x.x,p),q[0][1]=x.y,q[1][0]=l.an(A.x,p),q[1][1]=A.y,g.cb.XV(),B.x=q[0][0]*
m,B.y=q[0][1]*m,C.x=q[1][0]*m,C.y=q[1][1]*m):(B.x=x.x*m,B.y=x.y*m,C.x=A.x*m,C.y=A.y*m);C.x=6.283185307179586*(A.x-x.x)/p.S()+B.x;if(d){if(z.x=h,z.y=l.Dz(k,n,B,C,h,b),isNaN(z.y))break}else{z.x=l.Bz(k,n,B,C,b);if(isNaN(z.x))break;z.y=0}g.kb.yd(k,n,B.x,B.y,C.x,C.y,r,null,null,b);var J=r.u;g.kb.yd(k,n,B.x,B.y,z.x,z.y,r,null,null,b);var S=r.u;2==g.tf.Tb(a)?(q[0][0]=z.x/m,q[0][1]=z.y/m,g.cb.YQ(),d?(w.y=q[0][1],w.x=e):(w.x=l.ls(q[0][0],x.x,A.x,p),w.y=e)):d?(w.x=e,w.y=z.y/m):(w.x=l.ls(z.x/m,x.x,A.x,p),w.y=
e);v[0]=0<J?g.P.Qk(S/J,0,1):.5;0!=v[0]&&1!=v[0]&&(J=u.Na(K),u.Vl(J,v,1),u.Db(u.W(J),w.x,w.y))}while(0)}x.N(A)}}return u.Me(c)};l.Fn=function(c,a,b,d,e){if(c.B())return c;var f=g.cb.df(a);return l.Jp(c,b-180*f,360*f,a,d,e,!0)};l.Dz=function(c,a,b,d,e,f){if(3.141592653589793<=Math.abs(b.x-d.x)||!l.Tn(b.x,d.x,e))return NaN;if(b.x>d.x)var h=d;else h=b,b=d;d=new g.ha(0);var k=new g.ha(0),m=new g.ha(0);g.kb.yd(c,a,h.x,h.y,b.x,b.y,k,d,null,f);var n=k.u,p=0,q=1,r=new g.h;for(r.N(h);n*(q-p)>1E-12*c;){var u=
.5*(p+q);g.kb.oj(c,a,h.x,h.y,n*u,d.u,k,m,f);r.x=k.u;r.y=m.u;if(r.x==e)break;if(l.Tn(h.x,r.x,e))q=u;else if(l.Tn(b.x,r.x,e))p=u;else return NaN}return r.y};l.Tn=function(c,a,b){c=t.Ep(c);a=t.hx(c,t.Ep(a));b=t.hx(c,t.Ep(b));return 0==b||0<a&&0<b&&b<=a||0>a&&0>b&&b>=a?!0:!1};l.an=function(c,a){var b=a.sa-a.ma;return a.Ft(c-Math.floor((c-a.ma)/b)*b)};l.ls=function(c,a,b,d){var e=new g.Pc;e.L(a,b);b=d.S();c=Math.floor((c-a)/b)*b+c;for(e=e.wf();Math.abs(c-e)>Math.abs(c+b-e);)c+=b;return c};l.Bz=function(c,
a,b,d,e){if(b.y>d.y)var f=d;else f=b,b=d;d=new g.Pc;d.L(f.y,b.y);if(!d.contains(0)||3.141592653589793<=Math.abs(f.x-b.x))return NaN;if(f.x==b.x)return f.x;var h=new g.ha(0),k=new g.ha(0),m=new g.ha(0);g.kb.yd(c,a,f.x,f.y,b.x,b.y,k,h,null,e);var n=k.u,p=0,q=1,r=new g.h;for(r.N(f);n*(q-p)>1E-12*c;){var u=.5*(p+q);g.kb.oj(c,a,f.x,f.y,n*u,h.u,k,m,e);r.x=k.u;r.y=m.u;d.L(f.y,r.y);if(0==r.y)break;if(d.contains(0))q=u;else if(d.L(b.y,r.y),d.contains(0))p=u;else return NaN}return r.x};l.Jp=function(c,a,b,
d,e,f,h){var k=new g.l;c.A(k);if(k.B())return c;var m=new g.Pc;k.en(m);var n=new g.Pc;n.L(a,a+b);if(n.contains(m)&&n.sa!=m.sa)return c;var p=new g.l;p.L(k);var q=c.K();if(33==q){p=e?c:c.Sf();k=p.ug();if(k<n.ma||k>=n.sa||h&&k==n.sa)k+=Math.ceil((n.ma-k)/b)*b,k=n.Ft(k),p.RB(k);return p}if(550==q){p=e?c:c.Sf();d=p.lb(0);q=2*p.I();c=!1;for(e=0;e<q;e+=2)if(k=d.read(e),k<n.ma||k>=n.sa||h&&k==n.sa)c=!0,k+=Math.ceil((n.ma-k)/b)*b,k=n.Ft(k),d.write(e,k);c&&p.Sc(1993);return p}if(n.contains(m))return c;if(197==
q)return b=e?c:c.Sf(),k.Fa(p),b.Yo(k),b;var r=.1*Math.max(k.da(),k.S());p.Y(0,r);h=c;n=d.$d(0);c=g.Hh.local();e=new g.Fd;for(var u=0;;){var v=Math.floor((m.ma-a)/b),w=Math.ceil((m.sa-a)/b);if(3<w-v){v=Math.floor(.5*(w+v));p.v=k.v-r;p.C=a+b*v;var z=g.Wd.clip(h,p,n,f);p.v=p.C;p.C=k.C+r;var x=g.Wd.clip(h,p,n,f);e.kg((v-w)*b,0);x.Rc(e);1736==q?h=c.X(z,x,d,null):(h=z,h.add(x,!1));h.A(k);k.en(m);u++}else break}p.v=a;p.C=a+b;a=new g.l;a.L(p);a.Y(n,0);a=Math.floor((k.v-p.v)/b)*b;0!=a?(p.move(a,0),e.kg(-a,
0)):e.FB();a=1607==q?new g.Ua(h.description):new g.Ea(h.description);f=new g.l;for(m=new g.l;k.C>p.v;){r=g.Wd.clip(h,p,n,0);r.A(m);if(1607==q?!r.B()&&(m.S()>n||m.da()>n):!r.B()&&(1736!=q||m.S()>n))r.Rc(e),r.A(m),a.A(f),f.Y(n,n),f.isIntersecting(m)&&1736==q?a=c.X(a,r,d,null):a.add(r,!1);p.move(b,0);e.shift(-b,0)}return a};l.RI=function(c,a,b,d){var e=new g.fe(b.description);e.Hd(b,0,-1);e=g.cb.Ah(e,c,a);var f=b.I();d.Pa();if(!g.cb.Yc(c)||f!=e.I())return!1;var h=new g.l;b.A(h);var k=new g.l;e.A(k);
h=h.S();k=k.S();if(0!=h&&0!=k){if(k/=h,c=g.cb.ih(a).S()/g.cb.ih(c).S(),1E-10<Math.abs(k/c-1))return!1}else if(0!=h||0!=k)return!1;d.add(b,!1);for(b=0;b<f;b++)c=e.Oa(b),d.Db(b,c);return!0};l.Ez=function(){throw g.i.He();};return l}()})(y||(y={}));(function(g){var t;(function(c){c[c.Clip=0]="Clip";c[c.DontClip=1]="DontClip";c[c.PannableFold=2]="PannableFold"})(t=g.si||(g.si={}));var l;(function(c){c[c.Geodesic=0]="Geodesic";c[c.Loxodrome=1]="Loxodrome";c[c.GreatElliptic=2]="GreatElliptic";c[c.NormalSection=
3]="NormalSection";c[c.ShapePreserving=4]="ShapePreserving"})(l=g.RK||(g.RK={}));g.Ab=function(){function c(){}c.uv=function(a,b,d){if(d||0<b){a=a.toString(g.Vc.PE_STR_NAME_CANON|g.Vc.PE_STR_AUTH_NONE);b=[];for(d=0;d<a.length;d++)b[d]="a"<=a[d]&&"z">=a[d]?b[d]=a[d].toUpperCase():a[d];return b.join()}return a.toString(g.Vc.PE_STR_AUTH_TOP)};c.wr=function(a,b,d,e){var f=e.length,h=d.I();if(0!=h){var k=d.lb(0),m=Math.min(h,f),n=0,p=a.hh();isNaN(b)&&(b=0);var q=a.Yc();a=q?a.uc().Ne().S():0;for(var r=
179*a/360;0<h;){k.jB(n<<1,m,e);g.fj.projToGeogCenter(p,m,e,b);if(q)for(var u=0;u<m;u++){var v=e[u][0]-b,w=g.oc.sign(v),z=k.read(2*(n+u));0>w*g.oc.sign(z)&&Math.abs(v)>r&&(e[u][0]+=-w*a)}k.iC(n<<1,m,e);n+=m;h-=m;m=Math.min(h,f)}d.Sc(1993)}};c.DL=function(a,b,d,e){var f=0,h=a.hh();isNaN(f)&&(f=0);var k=a.Yc(),m=a.df();a=360*m;m*=179;for(var n=e.length,p=0;p<d;){for(var q=p;q<d&&b[q].isNaN();++q)p++;var r=Math.min(n,d-p);if(0<r){q=1;for(var u=p+1;q<r;++q,++u)if(b[u].isNaN()){r=q;break}g.ua.yy(e,b,p,
r);g.fj.projToGeogCenter(h,r,e,f);if(k)for(q=0,u=p;q<r;++q,++u){var v=b[u].x,w=e[q][0]-f,z=g.oc.sign(w);0>z*g.oc.sign(v)&&Math.abs(w)>m&&(e[q][0]-=z*a)}g.ua.xy(b,p,e,r);p+=r}}};c.Ex=function(a,b,d){var e=d.length,f=b.I();if(!(1>f)){var h=b.lb(0),k=Math.min(f,e),m=0,n=a.hh(),p=a.Yc(),q=p?a.Ne().S():0,r=179*q/360,u=0;for(p&&(u=a.zi());0<f;){h.jB(m<<1,k,d);g.fj.geogToProj(n,k,d);if(p)for(a=0;a<k;a++){var v=d[a][0],w=g.oc.sign(v),z=h.read(2*(m+a))-u;0>w*g.oc.sign(z)&&Math.abs(v)>r&&(d[a][0]+=-w*q)}h.iC(m<<
1,k,d);m+=k;f-=k;k=Math.min(f,e)}b.Sc(1993)}};c.CL=function(a,b,d,e){if(0!=d){var f=a.hh(),h=a.Yc(),k=h?a.Ne().S():0,m=179*k/360,n=0;h&&(n=a.zi());for(a=0;a<d;){for(var p=a;p<d&&b[p].isNaN();++p)a++;var q=Math.min(e.length,d-a);if(0<q){p=1;for(var r=a+1;p<q;++p,++r)if(b[r].isNaN()){q=p;break}g.ua.yy(e,b,a,q);g.fj.geogToProj(f,q,e);if(h)for(p=0,r=a;p<q;p++){var u=e[p][0],v=g.oc.sign(u);0>v*g.oc.sign(b[r].x-n)&&Math.abs(u)>m&&(e[p][0]-=v*k)}g.ua.xy(b,a,e,q);a+=q}}}};c.vr=function(a,b,d,e){var f=b.I();
if(0!=f){var h=b.lb(0),k=a.gf,m=a.bg,n=k.uc().Sp(),p=m.uc().Sp(),q=k.df(),r=m.df();a=a.$f;if(null==a||0==a.count()){d=n/p;e=(k.Wp()-m.Wp())*r;p=-90*q;a=90*q;n=!1;r=1;for(k=2*f;r<k;)q=h.get(r),m=g.P.Qk(q,p,a),m!=q&&(h.set(r,m),n=!0),r+=2;if(0!=e||1!=d)for(n=!0,p=new g.h,r=0;r<f;r++)h.vc(2*r,p),p.x*=d,p.x+=e,p.y*=d,h.Qt(2*r,p);n&&b.Sc(1993)}else{k=e.length;m=Math.min(f,k);var u=g.P.pg(m),v=null,w=0,z=NaN,x=NaN,A=360*r,B=r/q;d&&(x=90*r,z=89.9*q,v=g.P.pg(m));for(var C=!0,D=0;0!=f;){q=!1;h.jB(w<<1,m,e);
for(r=0;r<m;r++)u[r]=e[r][0];if(d)for(r=0;r<m;r++){var G=Math.abs(e[r][1])-z;0<G&&(q=e[r][1],e[r][1]=g.oc.Cn(z,q),v[r]=g.oc.Cn(G,q),q=!0)}r=e[0][0];a.transform(e,m,n,p);C&&(D=e[0][0]-B*r,C=!1);for(r=0;r<m;r++)G=e[r][0]-u[r]*B-D,200<Math.abs(G)&&(e[r][0]=0<G?e[r][0]-A:e[r][0]+A);if(q){for(r=0;r<m;r++)0!=v[r]&&(e[r][1]+=B*v[r],e[r][1]>x?e[r][1]=x:e[r][1]<-x&&(e[r][1]=-x));for(q=0;q<m;q++)v[q]=0}h.iC(w<<1,m,e);w+=m;f-=m;m=Math.min(f,k)}b.Sc(1993)}}};c.BL=function(a,b,d,e){if(a.jw)e=90*a.gf.df(),g.ua.ZJ(b,
d,-e,e);else{var f=a.$f,h=a.gf,k=a.bg;a=h.Yr();var m=k.Yr(),n=h.df(),p=90*n,q=k.df();if(null==f||0==f.count()){if(e=a/m,f=(h.Wp()-k.Wp())*q,g.ua.ZJ(b,d,-p,p),0!=f||1!=e)for(q=0;q<d;q++)b[q].x*=e,b[q].x+=f,b[q].y*=e}else{h=Math.min(d,e.length);p=g.P.pg(h);k=360*q;n=q/n;for(var r=!0,u=0,v=0;0!=d;){for(q=0;q<h;q++)p[q]=b[q+v].x;q=b[0].x;g.ua.yy(e,b,v,h);f.transform(e,h,a,m);g.ua.xy(b,v,e,h);r&&(u=b[0].x-n*q,r=!1);for(q=0;q<h;q++){var w=b[v+q].x-p[q]*n-u;200<Math.abs(w)&&(b[v+q].x=0<w?b[v+q].x-k:b[v+
q].x+k)}v+=h;d-=h;h=Math.min(d,e.length)}}}};c.av=function(a,b){a=a.ih();isNaN(b)||a.Gu(b,0);return a};c.QQ=function(a,b,d,e,f,h,k,m){for(var n=c.av(e,f),p=n.S(),q=p/360,r=c.fE*q,u=a.lb(0),v=b.Yc(),w=v?p/b.Ne().S():0,z=!1,x=new g.Ea(d.description),A=0,B=d.ea();A<B;++A){var C=v,D=new g.Ua(d.description);D.addPath(d,A,!0);if(0!=k){var G=c.ED(!0,D,n.H-m,n.H,k);(z=z||G)&&(C=!1)}var H=-1;C&&(H=a.Ca(A));var K=D.lb(0),J=D.I(),S=0,R=K.read(0),V=0;G=3*e.$d(0);var W=!1,ia=new g.h;ia.Uc();var oa=new g.h;oa.Uc();
for(var wa=!1,ta=1;ta<J;++ta){var fa=g.h.construct(K.Gg(2*ta),K.Gg(2*ta+1)),ma=fa.x,da=ma+S,ua=da-R;fa.x=da;if(Math.abs(ua)>r){if(C){var sa=H+(ta+1<J?ta:0),ya=u.read(2*(H+ta-1));sa=(u.read(2*sa)-ya)*w;Math.abs(ua-sa)>1*q&&(C=!1)}C||(S-=g.oc.Cn(p,da-R),da=ma+S,++V,wa=0!=S,fa.x=da)}else W||g.ua.vG(oa,ia,fa,G)&&(W=!0);wa&&K.write(2*ta,da);R=da;oa.N(ia);ia.N(fa)}0<V&&D.Sc(1993);C=D.Oa(0);J=D.Oa(J-1);D=g.h.vb(C,J)<G?c.sQ(D,e,f,h,W):c.tQ(a,A,D,e,f);x.add(D,!1)}f=e.$d(0);d=n.S()/180;c.Gt(x,n,.1*f,!1);f=
g.ri.clip(x,n,f,d,h);x=x!=f;a=a.Je();m=f.Je();k=0;0<m&&0>a?k=1:0>=m&&0<a&&(0==m?(m=NaN,2==b.Tb()?m=b.nl().Je():1==b.Tb()&&(m=b.Ne().pF()),a>.99*m&&(k=-1)):k=-1);0!=k&&(b=new g.Ea(f.description),b.vp(n),b=g.Yl.local().X(b,d,h),b.add(f,!1),x=!0,f=b);x&&(f=g.Zl.local().X(f,e,!1,h));return f};c.tQ=function(a,b,d,e,f){var h=d.I(),k=d.Oa(0),m=d.Oa(h-1);e=c.av(e,f);f=e.S();k=g.oc.sign(m.x-k.x);var n=new g.l;d.zc(n);var p=e.fk();m=p-f;p+=f;if(0<=k){var q=Math.ceil((m-n.v)/f);for(q*=f;m>n.v+q;)q+=f;for(;m<
n.C+q;)q-=f;var r=q;720<n.S()&&(p=m+360*Math.ceil(n.S()/360))}else{q=Math.ceil((p-n.C)/f);for(q*=f;p<n.C+q;)q-=f;for(;p>n.v+q;)q+=f;r=q;720<n.S()&&(m=p-360*Math.ceil(n.S()/360))}q=k*f;var u=g.l.construct(n.v,n.F,n.C,n.H);u.move(r,0);var v=new g.Fd;v.kg(r,0);d.Rc(v);n=new g.Ua(d.description);n.add(d,!1);r=d.Oa(h-1);f=0;for(var w=n.Oa(0).x,z=0;0<k?u.C<p:u.v>m;)1024<=z&&(z=0),u.move(q,0),v.Lb=q,d.Rc(v),w+=q,e.v<=w&&e.C>=w&&(f=n.I()-1),d.Db(0,r),r=d.Oa(h-1),n.Fr(d,0,0,h-1,!1);d=new g.Ea(n.description);
h=0<a.Kr(b);d.add(n,!1);a=n.Oa(0);m=n.Oa(n.I()-1);b=d.ea()-1;(0>k?h:!h)?(k=g.h.construct(m.x,e.H),d.Ci(k),k=g.h.construct(e.fk(),e.H),d.Ci(k),e=g.h.construct(a.x,e.H)):(k=g.h.construct(m.x,e.F),d.Ci(k),k=g.h.construct(e.fk(),e.F),d.Ci(k),e=g.h.construct(a.x,e.F));d.Ci(e);d.sG(0,b,0);d.jO(f);return d};c.sQ=function(a,b,d,e,f){var h=new g.Ea(a.description);h.add(a,!1);h.sB(0,h.I()-1);var k=new g.l;h.zc(k);d=c.av(b,d);var m=d.S(),n=Math.ceil((d.v-k.v)/m);for(n*=m;d.v>k.v+n;)n+=m;for(;d.v<k.C+n;)n-=m;
n+=m;if(0!=n){k.move(n,0);var p=new g.Fd;p.kg(n,0);h.Rc(p)}if(d.v<=k.v&&d.C>k.C)return f&&(f=h.Je(),h=g.Zl.local().X(h,b,!0,e),b=h.Je(),(b=g.oc.sign(f)!=g.oc.sign(b))&&h.jJ()),h;a=new g.Ea(a.description);a.add(h,!1);for(f=f||k.S()>m-b.$d(0);k.v<d.C;)k.move(m,0),p=new g.Fd,p.kg(m,0),h.Rc(p),a.add(h,!1);f&&(f=a.Je(),a.Zo(1),a=g.Zl.local().X(a,b,!0,e),b=a.Je(),(b=g.oc.sign(f)!=g.oc.sign(b))&&a.jJ());return a};c.ED=function(a,b,d,e,f){for(var h=b.lb(0),k=b.I(),m=!1,n=0;n<k;n++){var p=g.h.construct(h.Gg(2*
n),h.Gg(2*n+1));if(0!=(f&1)&&p.y>=d){m=!0;break}if(0!=(f&2)&&p.y<=-d){m=!0;break}}if(!m)return!1;h=!1;a&&(h=b.On(0));a=new g.jd;k=a.Ib(b);m=a.Ob(k);var q=-1,r=!0,u=new g.h;u.Uc();n=new g.Ta;for(var v=-1,w=a.Ya(m);-1!=w;w=a.W(w)){p=a.Oa(w);var z=0!=(f&1)&&90<=p.y?1:0;z|=0!=(f&2)&&p.y<=-d?2:0;if(0<q&&q!=z){if(u.x!=p.x){u.x=p.x;a.Vi(a.Na(w),n);var x=a.wj(m,w,n);a.pf(x,u)}if(h)for(v=-1!=v?a.W(v):a.Ya(m),x=a.Na(w);v!=x;)v=a.qd(v,!1);v=-1}0<z&&(p.y=g.oc.Cn(e,p.y),a.pf(w,p),r||q==z||(p.x!=u.x?(a.Vi(w,n),
x=a.wj(m,w,n),a.Db(x,u.x,p.y),v=x):v=w));q=z;u=p;r=!1}if(h){if(-1!=v)for(v=a.W(v);-1!=v;)v=a.qd(v,!1);d=a.Ya(m);a.hq(d,a.rj(m))||(a.Vi(d,n),a.wj(m,-1,n))}a.Me(k).copyTo(b);return!0};c.Cz=function(a,b,d,e){var f=a;if(f.B()||d==t.DontClip)return f;var h=f.K();if(33==h)return e=f,f=[e.D()],c.tG(f,1,b,d),f[0].isNaN()?e.Pa():e.Db(f[0]),a;a=b.uc();var k=a.df(),m=90*k,n=180*k,p=360*k,q=b.zi(),r=.5*k,u=new g.l;f.A(u);var v=b.Wr(),w=b.LQ(),z=197==v.K();b=new g.l;v.A(b);d==t.PannableFold&&(d=a.Ne().S(),b.v=
q-.5*d,b.C=b.v+d);if(u.F<-m||u.H>m){(new g.l).L(u.v-k,-m,u.C+k,m);f=g.ri.Lu(f,b,a,NaN,0,e);if(f.B())return f;f.A(u)}if(w&&(b.H<u.F||b.F>u.H))return f.Ja();u.S()>p&&(f=c.Jp(f,q-n,p,a,!0,0,!0,e),f.A(u));m=c.dO(u.v,u.C,b.v,b.C,p);0!=m&&u.move(m,0);if(u.C>b.C||u.v<b.v){if(u.C>b.C)for(;u.v>=b.C;)u.move(-p,0),m-=p;for(;u.v<b.C-p;)u.move(p,0),m+=p}d=g.ua.Eu(a,v);0!=m&&(k=new g.Fd,k.kg(m,0),f.Rc(k));if(w){if(z&&b.contains(u))return f;w=[null,null];for(m=0;2>m;m++){z?k=g.ba.Jc(h)?g.ri.clip(f,b,d,r,e):g.ri.clip(f,
b,d,0,e):(k=g.Vk.local().X(f,v,a,e),k==v&&(k=g.ba.mg(k)));if(b.v<=u.v&&b.C>=u.C||b.v>=u.v&&b.C<=u.C)return k;w[m]=k;0==m&&(u.move(-p,0),k=new g.Fd,k.kg(-p,0),f.Rc(k))}if(550==h)w[0].Hd(w[1],0,-1);else if(g.ba.Jc(h))w[0].add(w[1],!1);else if(33==h)w[0].B()&&(w[0]=w[1]);else throw g.i.ga("intersect_with_GCS_horizon: unexpected geometry type");return w[0]}if(b.H<u.F||b.F>u.H)return f;for(h=0;!f.B()&&u.C>b.v;)0!=h&&(k=new g.Fd,k.kg(h,0),f.Rc(k)),g.ej.local().X(4,f,v,a,e)||(f=g.mp.local().X(f,v,a,e),v==
f&&(f=g.ba.mg(f))),0!=h&&(r=new g.Fd,r.kg(-h,0),f.Rc(r)),h-=p,u.move(-p,0);return f};c.tG=function(a,b,d,e){if(0!=b&&e!=t.DontClip)if(e==t.PannableFold){e=d.CR();for(var f=b,h=0;h<b;h++)if(a[h].y>e.H||a[h].y<e.F)a[h].Uc(),f--;0!=f&&c.Yu(a,b,e.v,e.S())}else{e=d.df();var k=90*e,m=180*e;e*=360;f=b;for(h=0;h<b;h++)if(a[h].y>k||a[h].y<-k)a[h].Uc(),f--;if(0!=f){f=new g.l;f.Xw(a,b);k=d.Wr();var n=d.ev();h=197==k.K();var p=new g.l;k.A(p);if(!n||!(p.H<f.F||p.F>f.H))if(n)if(c.Yu(a,b,p.fk()-m,e),f=b,h)for(h=
0;h<b;h++)p.contains(a[h])||(a[h].Uc(),f--);else for(d=g.ua.Eu(d.uc(),k),h=0;h<b;h++)(m=0!=g.kd.ae(k,a[h],d))||(a[h].Uc(),f--);else for(c.Yu(a,b,-m,e),f=b,d=g.ua.Eu(d.uc(),k),h=0;h<b;h++)if(m=a[h],m.isNaN()&&f--,n=c.jE(m.x,p.v,p.C,e),m.x+=n,m=0!=g.kd.ae(k,m,d))a[h].Uc(),f--}}};c.Jp=function(a,b,d,e,f,h,k,m){var n=a.K(),p=b+d;if(33===n){e=f?a:a.Sf();var q=e.ug();if(q<b||q>=p||k&&q==p)q+=Math.ceil((b-q)/d)*d,q=g.P.Qk(q,b,p),e.RB(q);return e}if(a.B())return a;q=new g.l;a.A(q);if(q.B())return a;var r=
new g.Pc;q.en(r);var u=new g.Pc;u.L(b,p);if(u.contains(r))return a;p=new g.l;p.L(q);if(550===n){e=f?a:a.Sf();m=e.lb(0);n=2*e.I();p=!1;for(b=0;b<n;b+=2)if(q=m.read(b),q<u.ma||q>=u.sa||k&&q==u.sa)p=!0,q+=Math.ceil((u.ma-q)/d)*d,q=u.Ft(q),m.write(b,q);p&&e.Sc(1993);return e}if(197==n)return d=f?a:a.Sf(),q.Fa(p),d.Yo(q),d;var v=.1*Math.max(q.da(),q.S());p.Y(0,v);k=a;u=e.$d(0);a=g.Hh.local();for(f=new g.Fd;;){var w=Math.floor((r.ma-b)/d),z=Math.ceil((r.sa-b)/d);if(3<z-w){w=Math.floor(.5*(z+w));p.v=q.v-
v;p.C=b+d*w;var x=g.ri.clip(k,p,u,h,m);p.v=p.C;p.C=q.C+v;var A=g.ri.clip(k,p,u,h,m);f.kg((w-z)*d,0);A.Rc(f);1736==n?k=a.X(x,A,e,null):(k=x,k.add(A,!1));k.A(q);q.en(r)}else break}p.v=b;p.C=b+d;b=new g.l;b.L(p);b.Y(u,0);b=Math.floor((q.v-p.v)/d)*d;0!=b?(p.move(b,0),f.kg(-b,0)):f.FB();b=1607==n?new g.Ua(k.description):new g.Ea(k.description);h=new g.l;for(r=new g.l;q.C>p.v;){v=g.ri.clip(k,p,u,0,m);v.A(r);if(1607==n?!v.B()&&(r.S()>u||r.da()>u):!v.B()&&(1736!=n||r.S()>u))v.Rc(f),v.A(r),b.A(h),h.Y(u,u),
h.isIntersecting(r)&&1736==n?b=a.X(b,v,e,null):b.add(v,!1);p.move(d,0);f.shift(-d,0)}return b};c.Yu=function(a,b,d,e){for(var f=d+e,h=0;h<b;h++){var k=a[h].x;d<=k&&k<f||!(k<d||k>f||k==f)||(k+=Math.ceil((d-k)/e)*e,k=g.P.Qk(k,d,f),a[h].x=k)}};c.Fn=function(a,b,d,e,f,h){if(!b.Yc())throw g.i.ga("fold_into_360_degree_range");if(a.B())return a;if(2==b.Tb()){d=b.mv();var k=b.lv()-d}else{var m=b.df();k=360*m;d-=180*m}return c.Jp(a,d,k,b,e,f,!0,h)};c.jF=function(a,b,d,e){if(2==d.Tb())e=d.mv(),d=d.lv()-e;else{var f=
d.df();d=360*f;e-=180*f}c.Yu(a,b,e,d)};c.lj=function(a,b){var d=b.Ne();if(33==a.K()){var e=a.Qg();return d.F<=e&&e<=d.H?a:a.Ja()}e=new g.l;a.A(e);var f=new g.l;f.L(d);f.v=e.v;f.C=e.C;f.Y(.01*f.da(),0);d=g.ua.jy(b,e);return f.contains(e)?a:g.ri.clip(a,f,d,0,null)};c.kr=function(a,b,d){return a>b.C&&a-b.C<d?b.C:a<b.v&&b.v-a<d?b.v:a};c.wX=function(a,b,d,e){e.x=c.kr(a.x,b,d);e.y=a.y};c.vX=function(a,b,d,e){for(var f=0;f<b;f++)a[f].y<d.F||a[f].y>d.H?a[f].Uc():a[f].x=c.kr(a[f].x,d,e)};c.Gt=function(a,b,
d,e){if(!a.B()){var f=a.K();if(!e||1736!=f)if(g.ba.xj(f)){e=a.lb(0);f=0;for(var h=a.I();f<h;f++){var k=e.read(2*f),m=c.kr(k,b,d);m!=k&&e.write(2*f,m)}a.Sc(1993)}else if(197==f)e=new g.l,a.A(e),e.v=c.kr(e.v,b,d),e.C=c.kr(e.C,b,d),a.Yo(e);else if(33==f)a.RB(c.kr(a.ug(),b,d));else throw g.i.ga("internal error");}};c.oS=function(a,b,d,e){var f=new g.jd,h=f.Ib(a);a=g.ua.Eu(b,a);c.gs(f,h,b,a,d,!0,e);return f.Me(h)};c.gs=function(a,b,d,e,f,h,k){if(!d.Yc())throw g.i.O("invalid call");var m=d.Ne(),n=d.uc(),
p=n.hh().getDatum().getSpheroid();n=n.Jd().ai;var q=p.getFlattening();p=p.getAxis();q*=2-q;var r=new g.Pc;m.en(r);var u=null,v=[[0,0],[0,0]];2==d.Tb()?(u=d.hh(),h?(v[0][0]=c.an(k,r),v[0][1]=m.Lp(),g.fj.projToGeog(u,1,v),m=v[0][0]*n):(v[0][0]=m.fk(),v[0][1]=k,g.fj.projToGeog(u,1,v),m=v[0][1]*n)):m=k*n;if(!h&&0!=m&&f!=l.GreatElliptic)throw g.i.ga("invalid argument");var w=new g.ha,z=[0],x=new g.h,A=new g.h,B=new g.h,C=[null,null],D=new g.h,G=new g.h,H=new g.h,K=new g.h;for(b=a.Ob(b);-1!=b;b=a.Sb(b)){var J=
a.Ya(b);a.D(J,D);for(var S=!1,R=J=a.W(J);-1!=R;R=a.W(R)){if(R==J){if(S)break;S=!0}a.D(R,G);if(h&&(e<k-D.x&&G.x-k>e||e<k-G.x&&D.x-k>e)||!h&&(0!=k||e<-D.y&&G.y>e||e<-G.y&&D.y>e)){do if(!(Math.abs(D.x-G.x)>=.5*r.S())){2==d.Tb()?(v[0][0]=c.an(D.x,r),v[0][1]=D.y,v[1][0]=c.an(G.x,r),v[1][1]=G.y,g.fj.projToGeogCenter(u,2,v,0),H.x=v[0][0]*n,H.y=v[0][1]*n,K.y=v[1][1]*n):(H.x=D.x*n,H.y=D.y*n,K.y=G.y*n);K.x=2*(G.x-D.x)*Math.PI/r.S()+H.x;if(h){A.x=m;A.y=c.Dz(p,q,H,K,m,f);if(isNaN(A.y))break;C[0]=A;var V=1}else if(f==
l.GreatElliptic){var W=[0,0];V=g.Hx.Ez(q,H,K,m,W);if(0==V)break;A.x=W[0];A.y=m;C[0]=A;2==V&&(B.x=W[1],B.y=m,C[1]=B)}else{A.x=c.Bz(p,q,H,K,f);if(isNaN(A.x))break;A.y=0;C[0]=A;V=1}var ia=-1;for(W=0;W<V;W++){g.kb.yd(p,q,H.x,H.y,K.x,K.y,w,null,null,f);var oa=w.u;g.kb.yd(p,q,H.x,H.y,C[W].x,C[W].y,w,null,null,f);var wa=w.u;2==d.Tb()?(v[0][0]=C[W].x/n,v[0][1]=C[W].y/n,g.fj.geogToProj(u,1,v),h?(x.y=v[0][1],x.x=k):(x.x=c.ls(v[0][0],D.x,G.x,r),x.y=k)):h?(x.x=k,x.y=C[W].y/n):(x.x=c.ls(C[W].x/n,D.x,G.x,r),x.y=
k);z[0]=0<oa?g.P.Qk(wa/oa,0,1):.5;if(0==z[0]||1==z[0])break;ia>z[0]||(ia=a.Na(R),a.Vl(ia,z,1),a.Db(a.W(ia),x.x,x.y),ia=z[0])}}while(0)}D.N(G)}}};c.an=function(a,b){var d=b.sa-b.ma;return b.Ft(a-Math.floor((a-b.ma)/d)*d)};c.ls=function(a,b,d,e){var f=new g.Pc;f.L(b,d);d=e.S();a=Math.floor((a-b)/d)*d+a;for(f=f.wf();Math.abs(a-f)>Math.abs(a+d-f);)a+=d;return a};c.Tn=function(a,b,d){a=g.sr.Ep(a);b=g.sr.hx(a,g.sr.Ep(b));d=g.sr.hx(a,g.sr.Ep(d));return 0==d||0<b&&0<d&&d<=b||0>b&&0>d&&d>=b?!0:!1};c.Dz=function(a,
b,d,e,f,h){if(h==l.GreatElliptic)return g.Hx.LS(b,d,e,f);if(Math.abs(d.x-e.x)>=Math.PI||!c.Tn(d.x,e.x,f))return NaN;if(d.x>e.x)var k=e;else k=d,d=e;e=new g.ha;var m=new g.ha,n=new g.ha;g.kb.yd(a,b,k.x,k.y,d.x,d.y,m,e,null,h);var p=m.u,q=0,r=1,u=new g.h;for(u.N(k);p*(r-q)>1E-12*a;){var v=.5*(q+r);g.kb.oj(a,b,k.x,k.y,p*v,e.u,m,n,h);u.x=m.u;u.y=n.u;if(u.x==f)break;if(c.Tn(k.x,u.x,f))r=v;else if(c.Tn(d.x,u.x,f))q=v;else return NaN}return u.y};c.Bz=function(a,b,d,e,f){if(f==l.GreatElliptic)return a=[0,
0],g.Hx.Ez(b,d,e,0,a),a[0];if(d.y>e.y)var h=e;else h=d,d=e;e=new g.Pc;e.L(h.y,d.y);if(!e.contains(0)||Math.abs(h.x-d.x)>=Math.PI)return NaN;if(h.x==d.x)return h.x;var k=new g.ha,m=new g.ha,n=new g.ha;g.kb.yd(a,b,h.x,h.y,d.x,d.y,m,k,null,f);var p=m.u,q=0,r=1,u=new g.h;for(u.N(h);p*(r-q)>1E-12*a;){var v=.5*(q+r);g.kb.oj(a,b,h.x,h.y,p*v,k.u,m,n,f);u.x=m.u;u.y=n.u;e.L(h.y,u.y);if(0==u.y)break;if(e.contains(0))r=v;else if(e.L(d.y,u.y),e.contains(0))q=v;else return NaN}return u.x};c.RI=function(a,b,d,e){if(!a.gf.Yc())return!1;
var f=new g.fe(b.description);f.Hd(b,0,-1);e=g.Ax.local().X(f,a,e);f=b.I();d.Pa();if(f!=e.I())return!1;var h=new g.l;b.A(h);var k=new g.l;e.A(k);h=h.S();k=k.S();if(0!=h&&0!=k){if(k/=h,a=a.bg.ih().S()/a.gf.ih().S(),1E-10<Math.abs(k/a-1))return!1}else if(0!=h||0!=k)return!1;d.add(b,!1);b=new g.h;for(a=0;a<f;a++)e.D(a,b),d.Db(a,b);return!0};c.pN=function(a,b){a%=360*b;a>=180*b&&(a-=360*b);return a};c.OI=function(a,b,d,e){if(d==t.Clip){var f=b.nl();197==f.K()?(d=new g.l,f.A(d),f=g.ua.jy(b,d),a=g.ri.clip(a,
d,f,5E4*b.rm(),e)):g.ej.local().X(1,f,a,b,e)||(a=g.Vk.local().X(a,f,b,e),a==f&&(a=g.Uk.mg(a)))}else b.Yc()&&(e=new g.l,a.zc(e),b.Ne().contains(e)||(c.Gt(a,b.Ne(),b.$d(0),!0),d==t.PannableFold&&(a=c.lj(a,b)),a=c.Fn(a,b,0,!0,1E5*b.rm(),null)));return a};c.ND=function(a,b,d){var e=b.Xr();if(null==e)return a;b=b.uc();var f=b.Ne().S(),h=new g.l;a.zc(h);var k=new g.Pc;h.en(k);h=e.Ha();e=null;for(var m=new g.Fd;h.ab();)for(;h.Ia();){var n=h.ia(),p=n.ig(0,0),q=new g.Pc;q.L(p.ma,p.sa);for(p=0;q.sa>k.ma;)q.move(-f),
--p;for(;q.ma<=k.sa;){if(q.isIntersecting(k)){null==e&&(e=new g.Ua);var r=g.zb.bP(n.bc(),n.yc());0!=p&&(m.kg(p*f,0),r.Rc(m));e.pc(r,!0)}q.move(f);++p}}return null!=e?(b=g.ua.fO(b,e),b=g.ua.Gr(b),g.Xt.jP(a,e,b,d)):a};c.dO=function(a,b,d,e,f){return a>=d&&b<=e?0:c.jE(.5*(b+a),d,e,f)};c.jE=function(a,b,d,e){return g.oc.round((.5*(d+b)-a)/e)*e};c.RQ=function(a,b,d,e,f,h,k,m){var n=c.av(e,f),p=n.S(),q=p/360,r=c.fE*q,u=a.lb(0),v=b.Yc(),w=v?p/b.Ne().S():0;b=a.Ja();for(var z=0,x=d.ea();z<x;++z){var A=v,B=
new g.Ua(d.description);B.addPath(d,z,!0);var C=d.ec(z);0!=k&&(C=c.ED(C,B,n.H-m,n.H,k))&&(A=!1);var D=-1;C=B.I();var G=!1;A&&(D=a.Ca(z),G=a.ec(z));var H=B.lb(0),K=0,J=H.read(0),S=0,R=3*e.$d(0),V=!1,W=new g.h;W.Uc();var ia=new g.h;ia.Uc();for(var oa=!1,wa=1;wa<C;++wa){var ta=g.h.construct(H.Gg(2*wa),H.Gg(2*wa+1)),fa=ta.x,ma=fa+K,da=ma-J;ta.x=ma;if(Math.abs(da)>r){if(A){var ua=D+wa-1,sa=D;if(!G||wa+1<C)sa+=wa;ua=u.read(2*ua);sa=(u.read(2*sa)-ua)*w;Math.abs(da-sa)>1*q&&(v=!1)}A||(K-=g.oc.Cn(p,ma-J),
ma=fa+K,++S,oa=0!=K,ta.x=ma)}else V||g.ua.vG(W,ia,ta,R)&&(V=!0);oa&&H.write(2*wa,ma);J=ma;W.N(ia);ia.N(ta)}0!=S&&B.Sc(1993);A=B.Oa(0);C=B.Oa(C-1);g.h.vb(A,C);B=c.uQ(B,e,isNaN(f)?0:f,h);b.add(B,!1)}a=e.$d(0);d=n.S()/180;c.Gt(b,n,.1*a,!1);return g.ri.clip(b,n,a,d,h)};c.uQ=function(a,b,d,e){return c.Fn(a,b,d,!0,0,e)};c.IS=function(a,b,d,e){var f=a.K();if(1736==f)for(b=null!=b?b.$d(0):0,f=0;f<e;f++)1!=g.kd.ae(a,d[f],b)&&d[f].Uc();else if(197==f)for(f=0;f<e;f++)a.cP(d[f])||d[f].Uc();else throw g.i.O();
};c.$k=function(a,b,d,e){if(32>d)for(var f=new g.Ta,h=0;h<d;h++)f.Db(b[h]),a.$k(f,e).D(b[h]);else{var k=new g.fe;k.ue(3);k.xD(b,d);f=k.lb(3);for(h=0;h<d;h++)f.write(h,h);h=a.$k(k,e);a=h.lb(0);f=h.lb(3);e=g.h.construct(NaN,NaN);for(k=0;k<d;k++)b[k]=e;d=h.I();for(h=0;h<d;h++)e=f.read(h),a.vc(2*h,b[e])}};c.Zk=function(a,b,d,e){if(32>d)for(var f=new g.Ta,h=0;h<d;h++)f.Db(b[h]),a.Zk(f,e).D(b[h]);else{var k=new g.fe;k.ue(3);k.xD(b,d);f=k.lb(3);for(h=0;h<d;h++)f.write(h,h);h=a.Zk(k,e);a=h.lb(0);f=h.lb(3);
e=g.h.construct(NaN,NaN);for(k=0;k<d;k++)b[k]=e;d=h.I();for(h=0;h<d;h++)e=f.read(h),a.vc(2*h,b[e])}};c.fE=210;return c}()})(y||(y={}));(function(g){(function(l){l[l.rightSide=1]="rightSide"})(g.PL||(g.PL={}));var t=function(){function l(c,a,b){this.ys=new g.h;void 0===c?this.Jo=-1:(this.ys.N(c),this.Jo=a,this.La=b,this.kw=0)}l.prototype.RJ=function(c){this.kw=c?this.kw|1:this.kw&-2};l.prototype.B=function(){return 0>this.Jo};l.prototype.Wy=function(){if(this.B())throw g.i.ga("invalid call");return new g.Ta(this.ys.x,
this.ys.y)};l.prototype.Va=function(){if(this.B())throw g.i.ga("invalid call");return this.Jo};l.prototype.Yy=function(){if(this.B())throw g.i.ga("invalid call");return this.La};l.prototype.Iz=function(){return 0!=(this.kw&1)};l.prototype.Wx=function(c,a,b,d){this.ys.x=c;this.ys.y=a;this.Jo=b;this.La=d};return l}();g.am=t})(y||(y={}));(function(g){var t=function(){function c(){}c.prototype.Vo=function(a,b){this.uh.resize(0);this.Ii.length=0;this.sk=-1;a.zc(this.Dk);this.Dk.Y(b,b);this.Dk.isIntersecting(this.Gb.Da)?
((this.ss=g.ba.Ad(a.K()))?(this.OH=a.bc(),this.NH=a.yc(),this.ra=b):this.ra=NaN,this.uh.add(this.Gb.mf),this.Ii.push(this.Gb.Da),this.Ns=this.Gb.Vr(this.Gb.mf)):this.Ns=-1};c.prototype.Xi=function(a,b){this.uh.resize(0);this.Ii.length=0;this.sk=-1;this.Dk.L(a);this.Dk.Y(b,b);this.ra=NaN;this.Dk.isIntersecting(this.Gb.Da)?(this.uh.add(this.Gb.mf),this.Ii.push(this.Gb.Da),this.Ns=this.Gb.Vr(this.Gb.mf),this.ss=!1):this.Ns=-1};c.prototype.next=function(){if(0==this.uh.size)return-1;this.sk=this.Ns;var a=
null,b=null,d=null,e=null;this.ss&&(a=new g.h,b=new g.h,d=new g.l);for(var f=!1;!f;){for(;-1!=this.sk;){var h=this.Gb.Sy(this.Gb.cv(this.sk));if(h.isIntersecting(this.Dk))if(this.ss){if(a.N(this.OH),b.N(this.NH),d.L(h),d.Y(this.ra,this.ra),0<d.oy(a,b)){f=!0;break}}else{f=!0;break}this.sk=this.Gb.kv(this.sk)}if(-1==this.sk){h=this.uh.Hc();var k=this.Ii[this.Ii.length-1];null==e&&(e=[],e[0]=new g.l,e[1]=new g.l,e[2]=new g.l,e[3]=new g.l);l.zJ(k,e);this.uh.Mf();--this.Ii.length;for(k=0;4>k;k++){var m=
this.Gb.Np(h,k);if(-1!=m&&0<this.Gb.QR(m)&&e[k].isIntersecting(this.Dk))if(this.ss){if(a.N(this.OH),b.N(this.NH),d.L(e[k]),d.Y(this.ra,this.ra),0<d.oy(a,b)){var n=new g.l;n.L(e[k]);this.uh.add(m);this.Ii.push(n)}}else n=new g.l,n.L(e[k]),this.uh.add(m),this.Ii.push(n)}if(0==this.uh.size)return-1;this.sk=this.Gb.Vr(this.uh.get(this.uh.size-1))}}this.Ns=this.Gb.kv(this.sk);return this.sk};c.aP=function(a,b,d){var e=new c;e.Gb=a;e.Dk=new g.l;e.uh=new g.ja(0);e.Ii=[];e.Vo(b,d);return e};c.$O=function(a,
b,d){var e=new c;e.Gb=a;e.Dk=new g.l;e.uh=new g.ja(0);e.Ii=[];e.Xi(b,d);return e};c.ZO=function(a){var b=new c;b.Gb=a;b.Dk=new g.l;b.uh=new g.ja(0);b.Ii=[];return b};return c}();g.yY=t;var l=function(){function c(a,b){this.lf=new g.bd(11);this.Zh=new g.bd(5);this.ts=[];this.dw=new g.ja(0);this.Da=new g.l;this.Mk(a,b)}c.prototype.reset=function(a,b){this.lf.mj(!1);this.Zh.mj(!1);this.ts.length=0;this.dw.clear(!1);this.Mk(a,b)};c.prototype.vj=function(a,b){return this.wv(a,b,0,this.Da,this.mf,!1,-1)};
c.prototype.zz=function(a,b,d){d=-1==d?this.mf:this.QF(d);var e=this.da(d),f=this.kR(d);return this.wv(a,b,e,f,d,!1,-1)};c.prototype.ka=function(a){return this.fR(a)};c.prototype.zF=function(a){return this.Sy(this.cv(a))};c.prototype.da=function(a){return this.fv(a)};c.prototype.kR=function(a){var b=new g.l;b.L(this.Da);var d=this.fv(a);a=this.KF(a);for(var e=0;e<2*d;e+=2){var f=g.P.truncate(3&a>>e);0==f?(b.v=.5*(b.v+b.C),b.F=.5*(b.F+b.H)):1==f?(b.C=.5*(b.v+b.C),b.F=.5*(b.F+b.H)):(2==f?b.C=.5*(b.v+
b.C):b.v=.5*(b.v+b.C),b.H=.5*(b.F+b.H))}return b};c.prototype.QR=function(a){return this.pz(a)};c.prototype.rR=function(a,b){return t.aP(this,a,b)};c.prototype.FF=function(a,b){return t.$O(this,a,b)};c.prototype.getIterator=function(){return t.ZO(this)};c.prototype.Mk=function(a,b){if(0>b||32<2*b)throw g.i.O("invalid height");this.uT=b;this.Da.L(a);this.mf=this.lf.Fe();this.ex(this.mf,0);this.Zw(this.mf,0);this.IJ(this.mf,0);this.FJ(this.mf,0)};c.prototype.wv=function(a,b,d,e,f,h,k){if(!e.contains(b))return 0==
d?-1:this.wv(a,b,0,this.Da,this.mf,h,k);if(!h)for(var m=f;-1!=m;m=this.DR(m))this.ex(m,this.pz(m)+1);m=new g.l;m.L(e);e=f;var n=[];n[0]=new g.l;n[1]=new g.l;n[2]=new g.l;for(n[3]=new g.l;d<this.uT&&this.hO(e);d++){c.zJ(m,n);for(var p=!1,q=0;4>q;q++)if(n[q].contains(b)){p=!0;var r=this.Np(e,q);-1==r&&(r=this.pP(e,q));this.ex(r,this.pz(r)+1);e=r;m.L(n[q]);break}if(!p)break}return this.mS(a,b,d,m,e,h,f,k)};c.prototype.mS=function(a,b,d,e,f,h,k,m){var n=this.GF(f);if(h){if(f==k)return m;this.QP(m);h=
m}else h=this.rP(),this.CB(h,a),this.DW(this.cv(h),b);this.cX(h,f);-1!=n?(this.cx(h,n),this.$w(n,h)):this.BJ(f,h);this.GB(f,h);this.Zw(f,this.hv(f)+1);this.gO(f)&&this.IQ(d,e,f);return h};c.prototype.QP=function(a){var b=this.QF(a),d=this.GF(b),e=this.IR(a),f=this.kv(a);this.Vr(b)==a?(-1!=f?this.cx(f,-1):this.GB(b,-1),this.BJ(b,f)):d==a?(this.$w(e,-1),this.GB(b,e)):(this.cx(f,e),this.$w(e,f));this.cx(a,-1);this.$w(a,-1);this.Zw(b,this.hv(b)-1)};c.zJ=function(a,b){var d=.5*(a.v+a.C),e=.5*(a.F+a.H);
b[0].L(d,e,a.C,a.H);b[1].L(a.v,e,d,a.H);b[2].L(a.v,a.F,d,e);b[3].L(d,a.F,a.C,e)};c.prototype.gO=function(a){return 8==this.hv(a)&&!this.bG(a)};c.prototype.IQ=function(a,b,d){var e=this.Vr(d);do{var f=this.cv(e),h=this.Zh.V(e,0);f=this.Sy(f);this.wv(h,f,a,b,d,!0,e);e=h=this.kv(e)}while(-1!=e)};c.prototype.hO=function(a){return 8<=this.hv(a)||this.bG(a)};c.prototype.bG=function(a){return-1!=this.Np(a,0)||-1!=this.Np(a,1)||-1!=this.Np(a,2)||-1!=this.Np(a,3)};c.prototype.pP=function(a,b){var d=this.lf.Fe();
this.HW(a,b,d);this.ex(d,0);this.Zw(d,0);this.Ok(d,a);this.FJ(d,this.fv(a)+1);this.IJ(d,b<<2*this.fv(a)|this.KF(a));return d};c.prototype.rP=function(){var a=this.Zh.Fe();if(0<this.dw.size){var b=this.dw.Hc();this.dw.Mf()}else b=this.ts.length,this.ts.push(new g.l);this.EW(a,b);return a};c.prototype.Np=function(a,b){return this.lf.V(a,b)};c.prototype.HW=function(a,b,d){this.lf.U(a,b,d)};c.prototype.Vr=function(a){return this.lf.V(a,4)};c.prototype.BJ=function(a,b){this.lf.U(a,4,b)};c.prototype.GF=
function(a){return this.lf.V(a,5)};c.prototype.GB=function(a,b){this.lf.U(a,5,b)};c.prototype.KF=function(a){return this.lf.V(a,6)};c.prototype.IJ=function(a,b){this.lf.U(a,6,b)};c.prototype.hv=function(a){return this.lf.V(a,7)};c.prototype.pz=function(a){return this.lf.V(a,8)};c.prototype.Zw=function(a,b){this.lf.U(a,7,b)};c.prototype.ex=function(a,b){this.lf.U(a,8,b)};c.prototype.DR=function(a){return this.lf.V(a,9)};c.prototype.Ok=function(a,b){this.lf.U(a,9,b)};c.prototype.fv=function(a){return this.lf.V(a,
10)};c.prototype.FJ=function(a,b){this.lf.U(a,10,b)};c.prototype.fR=function(a){return this.Zh.V(a,0)};c.prototype.CB=function(a,b){this.Zh.U(a,0,b)};c.prototype.IR=function(a){return this.Zh.V(a,1)};c.prototype.kv=function(a){return this.Zh.V(a,2)};c.prototype.cx=function(a,b){this.Zh.U(a,1,b)};c.prototype.$w=function(a,b){this.Zh.U(a,2,b)};c.prototype.QF=function(a){return this.Zh.V(a,3)};c.prototype.cX=function(a,b){this.Zh.U(a,3,b)};c.prototype.cv=function(a){return this.Zh.V(a,4)};c.prototype.EW=
function(a,b){this.Zh.U(a,4,b)};c.prototype.Sy=function(a){return this.ts[a]};c.prototype.DW=function(a,b){this.ts[a].L(b)};return c}();g.au=l})(y||(y={}));(function(g){(function(c){c[c.Outside=0]="Outside";c[c.Inside=1]="Inside";c[c.Border=2]="Border"})(g.WK||(g.WK={}));var t=function(){function c(a,b){this.IT=b;this.Vh=a}c.prototype.Ww=function(a,b){this.dH!=b&&a.flush();this.dH=b};c.prototype.YE=function(a,b){for(var d=0;d<b;)for(var e=a[d++],f=a[d++],h=a[d++]*this.IT;e<f;e++)this.Vh[h+(e>>4)]|=
this.dH<<2*(e&15)};return c}();g.zY=t;var l=function(){function c(a,b,d){this.Vh=null;this.HA=this.Hk=this.YH=this.WH=this.Bs=this.lH=this.Kf=this.Wm=0;this.Ri=this.Ik=this.wl=null;this.vz(a,b,d)}c.create=function(a,b,d){if(!c.pE(a))throw g.i.O();return c.uP(a,b,d)};c.iW=function(a){switch(a){case 0:a=1024;break;case 1:a=16384;break;case 2:a=262144;break;default:throw g.i.ga("Internal Error");}return a};c.pE=function(a){return a.B()||1607!=a.K()&&1736!=a.K()?!1:!0};c.prototype.pQ=function(a,b){b=
b.Ha();for(var d=new g.h,e=new g.h;b.ab();)for(;b.Ia();){var f=b.ia();if(322!=f.K())throw g.i.ga("Internal Error");a.Fh(f.bc(),d);a.Fh(f.yc(),e);this.Ri.$x(d.x,d.y,e.x,e.y)}this.Ri.dJ(g.Ix.wx)};c.prototype.qQ=function(){throw g.i.ga("Internal Error");};c.prototype.Hy=function(a,b){for(var d=1;4>d;d++)a.$x(b[d-1].x,b[d-1].y,b[d].x,b[d].y);a.$x(b[3].x,b[3].y,b[0].x,b[0].y);this.Ri.dJ(g.Ix.wx)};c.prototype.mK=function(a,b,d){for(var e=[null,null,null,null],f=0;f<e.length;f++)e[f]=new g.h;b=b.Ha();d=
this.Ik.VX(d)+1.5;f=new g.h;for(var h=new g.h,k=new g.h,m=new g.h,n=new g.h,p=new g.l,q=new g.h;b.ab();){var r=!1,u=!0;for(q.oa(0,0);b.Ia();){var v=b.ia();m.x=v.ta;m.y=v.pa;n.x=v.qa;n.y=v.na;p.Pa();p.$b(m.x,m.y);p.Kk(n.x,n.y);if(this.wl.CG(p)){this.Ik.Fh(n,n);u?(this.Ik.Fh(m,m),q.N(m),u=!1):m.N(q);f.wc(n,m);v=f.length();var w=.5>v;0==v?f.oa(1,0):(w||q.N(n),f.scale(d/v),h.oa(-f.y,f.x),k.oa(f.y,-f.x),m.sub(f),n.add(f),e[0].add(m,h),e[1].add(m,k),e[2].add(n,k),e[3].add(n,h),w?r=!0:this.Hy(a,e))}else r&&
(this.Hy(a,e),r=!1),u=!0}r&&this.Hy(a,e)}};c.prototype.gC=function(a){return g.P.truncate(a*this.lH+this.WH)};c.prototype.hC=function(a){return g.P.truncate(a*this.Bs+this.YH)};c.uP=function(a,b,d){return new c(a,b,d)};c.prototype.vz=function(a,b,d){this.Kf=Math.max(g.P.truncate(2*Math.sqrt(d)+.5),64);this.Wm=g.P.truncate((2*this.Kf+31)/32);this.wl=new g.l;this.Hk=b;d=0;for(var e=this.Kf,f=this.Wm;8<=e;)d+=e*f,e=g.P.truncate(e/2),f=g.P.truncate((2*e+31)/32);this.Vh=g.P.pg(d,0);this.Ri=new g.Ix;d=
new t(this.Vh,this.Wm,this);this.Ri.rX(this.Kf,this.Kf,d);a.A(this.wl);this.wl.Y(b,b);e=new g.l;f=g.l.construct(1,1,this.Kf-2,this.Kf-2);var h=b*f.S();b*=f.da();e.L(this.wl.wf(),Math.max(h,this.wl.S()),Math.max(b,this.wl.da()));this.HA=this.Hk;this.Ik=new g.Fd;this.Ik.jS(e,f);new g.Fd;switch(a.K()){case 550:d.Ww(this.Ri,2);this.qQ();break;case 1607:d.Ww(this.Ri,2);this.mK(this.Ri,a,this.HA);break;case 1736:d.Ww(this.Ri,1),this.pQ(this.Ik,a),d.Ww(this.Ri,2),this.mK(this.Ri,a,this.HA)}this.lH=this.Ik.eb;
this.Bs=this.Ik.bb;this.WH=this.Ik.Lb;this.YH=this.Ik.Qb;this.WN()};c.prototype.WN=function(){this.Ri.flush();for(var a=0,b=this.Kf*this.Wm,d=this.Kf,e=g.P.truncate(this.Kf/2),f=this.Wm,h=g.P.truncate((2*e+31)/32);8<d;){for(d=0;d<e;d++)for(var k=2*d,m=2*d+1,n=0;n<e;n++){var p=2*n,q=2*n+1,r=p>>4;p=2*(p&15);var u=q>>4;q=2*(q&15);var v=this.Vh[a+f*k+r]>>p&3;v|=this.Vh[a+f*k+u]>>q&3;v|=this.Vh[a+f*m+r]>>p&3;v|=this.Vh[a+f*m+u]>>q&3;this.Vh[b+h*d+(n>>4)]|=v<<2*(n&15)}d=e;f=h;a=b;e=g.P.truncate(d/2);h=
g.P.truncate((2*e+31)/32);b=a+f*d}};c.prototype.To=function(a,b){if(!this.wl.contains(a,b))return 0;a=this.gC(a);b=this.hC(b);if(0>a||a>=this.Kf||0>b||b>=this.Kf)return 0;b=this.Vh[this.Wm*b+(a>>4)]>>2*(a&15)&3;return 0==b?0:1==b?1:2};c.prototype.So=function(a){if(!a.Fa(this.wl))return 0;var b=this.gC(a.v),d=this.gC(a.C),e=this.hC(a.F);a=this.hC(a.H);0>b&&(b=0);0>e&&(e=0);d>=this.Kf&&(d=this.Kf-1);a>=this.Kf&&(a=this.Kf-1);if(b>d||e>a)return 0;for(var f=Math.max(d-b,1)*Math.max(a-e,1),h=0,k=this.Wm,
m=this.Kf,n=0;;){if(32>f||16>m){for(f=e;f<=a;f++)for(var p=b;p<=d;p++)if(n=this.Vh[h+k*f+(p>>4)]>>2*(p&15)&3,1<n)return 2;if(0==n)return 0;if(1==n)return 1}h+=k*m;m=g.P.truncate(m/2);k=g.P.truncate((2*m+31)/32);b=g.P.truncate(b/2);e=g.P.truncate(e/2);d=g.P.truncate(d/2);a=g.P.truncate(a/2);f=Math.max(d-b,1)*Math.max(a-e,1)}};c.prototype.LR=function(){return this.Kf*this.Wm};return c}();g.Gx=l})(y||(y={}));(function(g){(function(c){c[c.contains=1]="contains";c[c.within=2]="within";c[c.equals=3]="equals";
c[c.disjoint=4]="disjoint";c[c.touches=8]="touches";c[c.crosses=16]="crosses";c[c.overlaps=32]="overlaps";c[c.unknown=0]="unknown";c[c.intersects=1073741824]="intersects"})(g.QL||(g.QL={}));var t=function(){function c(){}c.construct=function(a,b,d,e,f,h,k,m){var n=new c;n.mw=a;n.Om=b;n.Kj=d;n.Si=e;n.wH=f;n.JY=h;n.KY=k;n.LY=m;return n};return c}();g.St=function(){function c(){}c.sD=function(a,b,d){if(c.ly(a)){var e=g.ua.kj(b,a,!1);b=!1;g.Tk.sE(a)&&(b=b||a.iu(e,d));e=a.K();1736!=e&&1607!=e||!g.Tk.qE(a)||
0==d||(b=b||a.gj(d));1736!=e&&1607!=e||!g.Tk.rE(a)||0==d||b||a.cM()}};c.ly=function(a){return g.Tk.sE(a)||g.Tk.qE(a)||g.Tk.rE(a)};return c}();var l=function(){function c(){this.sh=[]}c.oB=function(a,b,d,e,f){var h=a.K(),k=b.K();if(197==h){if(197==k)return c.mW(a,b,d,e);if(33==k)return 2==e?e=1:1==e&&(e=2),c.cJ(b,a,d,e)}else if(33==h){if(197==k)return c.cJ(a,b,d,e);if(33==k)return c.oW(a,b,d,e)}if(a.B()||b.B())return 4==e?!0:!1;var m=new g.l;a.A(m);var n=new g.l;b.A(n);var p=new g.l;p.L(m);p.$b(n);
d=g.ua.Yd(d,p,!1);if(c.ck(m,n,d))return 4==e?!0:!1;m=!1;g.Uk.Ad(h)&&(h=new g.Ua(a.description),h.pc(a,!0),a=h,h=1607);g.Uk.Ad(k)&&(k=new g.Ua(b.description),k.pc(b,!0),b=k,k=1607);if(197!=h&&197!=k){if(a.Eb()<b.Eb()||33==h&&550==k)2==e?e=1:1==e&&(e=2)}else 1736!=h&&197!=k&&(2==e?e=1:1==e&&(e=2));switch(h){case 1736:switch(k){case 1736:m=c.nt(a,b,d,e,f);break;case 1607:m=c.bn(a,b,d,e,f);break;case 33:m=c.mt(a,b,d,e);break;case 550:m=c.lt(a,b,d,e,f);break;case 197:m=c.BI(a,b,d,e,f)}break;case 1607:switch(k){case 1736:m=
c.bn(b,a,d,e,f);break;case 1607:m=c.WA(a,b,d,e,f);break;case 33:m=c.pt(a,b,d,e,f);break;case 550:m=c.ot(a,b,d,e,f);break;case 197:m=c.HI(a,b,d,e)}break;case 33:switch(k){case 1736:m=c.mt(b,a,d,e);break;case 1607:m=c.pt(b,a,d,e,f);break;case 550:m=c.ht(b,a,d,e)}break;case 550:switch(k){case 1736:m=c.lt(b,a,d,e,f);break;case 1607:m=c.ot(b,a,d,e,f);break;case 550:m=c.OA(a,b,d,e,f);break;case 33:m=c.ht(a,b,d,e);break;case 197:m=c.cI(a,b,d,e)}break;case 197:switch(k){case 1736:m=c.BI(b,a,d,e,f);break;
case 1607:m=c.HI(b,a,d,e);break;case 550:m=c.cI(b,a,d,e)}}return m};c.mW=function(a,b,d,e){if(a.B()||b.B())return 4==e?!0:!1;var f=new g.l,h=new g.l,k=new g.l;a.A(f);b.A(h);k.L(f);k.$b(h);a=g.ua.Yd(d,k,!1);switch(e){case 4:return c.ck(f,h,a);case 2:return c.aF(h,f,a);case 1:return c.aF(f,h,a);case 3:return c.dk(f,h,a);case 8:return c.aQ(f,h,a);case 32:return c.$P(f,h,a);case 16:return c.ZP(f,h,a)}return!1};c.cJ=function(a,b,d,e){if(a.B()||b.B())return 4==e?!0:!1;a=a.D();var f=new g.l,h=new g.l;b.A(f);
h.L(a);h.$b(f);b=g.ua.Yd(d,h,!1);switch(e){case 4:return c.Ow(a,f,b);case 2:return c.UA(a,f,b);case 1:return c.KU(a,f,b);case 3:return c.qI(a,f,b);case 8:return c.TA(a,f,b)}return!1};c.oW=function(a,b,d,e){if(a.B()||b.B())return 4==e?!0:!1;a=a.D();b=b.D();var f=new g.l;f.L(a);f.$b(b);d=g.ua.Yd(d,f,!1);switch(e){case 4:return c.LU(a,b,d);case 2:return c.pI(b,a,d);case 1:return c.pI(a,b,d);case 3:return c.rI(a,b,d)}return!1};c.nt=function(a,b,d,e,f){switch(e){case 4:return c.dV(a,b,d);case 2:return c.Pw(b,
a,d,f);case 1:return c.Pw(a,b,d,f);case 3:return c.gV(a,b,d);case 8:return c.oV(a,b,d);case 32:return c.jV(a,b,d,f)}return!1};c.bn=function(a,b,d,e,f){switch(e){case 4:return c.eV(a,b,d);case 1:return c.VA(a,b,d,f);case 8:return c.pV(a,b,d,f);case 16:return c.$U(a,b,d)}return!1};c.mt=function(a,b,d,e){switch(e){case 4:return c.cV(a,b,d);case 1:return c.XU(a,b,d);case 8:return c.nV(a,b,d)}return!1};c.lt=function(a,b,d,e){switch(e){case 4:return c.bV(a,b,d);case 1:return c.WU(a,b,d);case 8:return c.mV(a,
b,d);case 16:return c.ZU(a,b,d)}return!1};c.BI=function(a,b,d,e,f){if(c.aV(a,b,d))return 4==e?!0:!1;if(4==e)return!1;switch(e){case 2:return c.qV(a,b,d);case 1:return c.VU(a,b,d);case 3:return c.fV(a,b,d);case 8:return c.lV(a,b,d,f);case 32:return c.iV(a,b,d,f);case 16:return c.YU(a,b,d,f)}return!1};c.WA=function(a,b,d,e){switch(e){case 4:return c.zV(a,b,d);case 2:return c.FI(b,a,d);case 1:return c.FI(a,b,d);case 3:return c.BV(a,b,d);case 8:return c.II(a,b,d);case 32:return c.FV(a,b,d);case 16:return c.GI(a,
b,d)}return!1};c.pt=function(a,b,d,e){switch(e){case 4:return c.yV(a,b,d);case 1:return c.tV(a,b,d);case 8:return c.JV(a,b,d)}return!1};c.ot=function(a,b,d,e){switch(e){case 4:return c.xV(a,b,d);case 1:return c.sV(a,b,d);case 8:return c.IV(a,b,d);case 16:return c.vV(a,b,d)}return!1};c.HI=function(a,b,d,e){if(c.wV(a,b,d))return 4==e?!0:!1;if(4==e)return!1;switch(e){case 2:return c.KV(a,b,d);case 1:return c.rV(a,b,d);case 3:return c.AV(a,b,d);case 8:return c.HV(a,b,d);case 32:return c.EV(a,b,d);case 16:return c.uV(a,
b,d)}return!1};c.OA=function(a,b,d,e){switch(e){case 4:return c.$T(a,b,d);case 2:return c.$H(b,a,d);case 1:return c.$H(a,b,d);case 3:return c.bU(a,b,d);case 32:return c.hU(a,b,d)}return!1};c.ht=function(a,b,d,e){switch(e){case 4:return c.aI(a,b,d);case 2:return c.lU(a,b,d);case 1:return c.XT(a,b,d);case 3:return c.Kw(a,b,d)}return!1};c.cI=function(a,b,d,e){switch(e){case 4:return c.ZT(a,b,d);case 2:return c.kU(a,b,d);case 1:return c.WT(a,b,d);case 3:return c.aU(a,b,d);case 8:return c.jU(a,b,d);case 16:return c.YT(a,
b,d)}return!1};c.gV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!c.dk(e,f,d))return!1;e=c.rc(a,b,!1);if(4==e||1==e||2==e)return!1;if(c.ZH(a,b,d))return!0;e=a.Rb();f=b.Rb();return Math.abs(e-f)>4*Math.max(a.I(),b.I())*d?!1:c.Mz(a,b,d,!0)};c.dV=function(a,b,d){var e=c.rc(a,b,!0);return 4==e?!0:1==e||2==e||1073741824==e?!1:c.zI(a,b,d)};c.oV=function(a,b,d){var e=c.rc(a,b,!1);return 4==e||1==e||2==e?!1:c.DI(a,b,d,null)};c.jV=function(a,b,d,e){var f=c.rc(a,b,!1);return 4==f||1==f||2==f?!1:
c.AI(a,b,d,e)};c.Pw=function(a,b,d,e){var f=new g.l,h=new g.l;a.A(f);b.A(h);if(!c.Bc(f,h,d))return!1;f=c.rc(a,b,!1);return 4==f||2==f?!1:1==f?!0:c.wI(a,b,d,e)};c.eV=function(a,b,d){var e=c.rc(a,b,!0);return 4==e?!0:1==e||1073741824==e?!1:c.zI(a,b,d)};c.pV=function(a,b,d,e){var f=c.rc(a,b,!1);return 4==f||1==f?!1:c.EI(a,b,d,e)};c.$U=function(a,b,d){var e=c.rc(a,b,!1);return 4==e||1==e?!1:c.yI(a,b,d,null)};c.VA=function(a,b,d,e){var f=new g.l,h=new g.l;a.A(f);b.A(h);if(!c.Bc(f,h,d))return!1;f=c.rc(a,
b,!1);return 4==f?!1:1==f?!0:c.xI(a,b,d,e)};c.cV=function(a,b,d){return 0==g.kd.FG(a,b,d)?!0:!1};c.nV=function(a,b,d){b=b.D();return c.CI(a,b,d)};c.XU=function(a,b,d){b=b.D();return c.vI(a,b,d)};c.bV=function(a,b,d){var e=c.rc(a,b,!1);if(4==e)return!0;if(1==e)return!1;e=new g.l;a.A(e);e.Y(d,d);for(var f=new g.h,h=0;h<b.I();h++)if(b.D(h,f),e.contains(f)){var k=g.kd.ae(a,f,d);if(1==k||2==k)return!1}return!0};c.mV=function(a,b,d){var e=this.rc(a,b,!1);if(4==e||1==e)return!1;e=new g.l;a.A(e);e.Y(d,d);
for(var f=!1,h=a,k=!1,m=0;m<b.I();m++){var n=b.Oa(m);if(e.contains(n))if(n=g.kd.ae(h,n,d),2==n)f=!0;else if(1==n)return!1;k||(!g.Kg.Nl(a,b.I()-1)||null!=a.Cb&&null!=a.Cb.Gb?h=a:(h=new g.Ea,a.copyTo(h),h.gj(1)),k=!0)}return f?!0:!1};c.ZU=function(a,b,d){var e=this.rc(a,b,!1);if(4==e||1==e)return!1;var f=new g.l;e=new g.l;var h=new g.l;a.A(f);b.A(h);e.L(f);e.Y(d,d);h=f=!1;for(var k=a,m=!1,n=0;n<b.I();n++){var p=b.Oa(n);e.contains(p)?(p=g.kd.ae(k,p,d),0==p?h=!0:1==p&&(f=!0)):h=!0;if(f&&h)return!0;m||
(!g.Kg.Nl(a,b.I()-1)||null!=a.Cb&&null!=a.Cb.Gb?k=a:(k=new g.Ea,a.copyTo(k),k.gj(1)),m=!0)}return!1};c.WU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!this.Bc(e,f,d))return!1;f=this.rc(a,b,!1);if(4==f)return!1;if(1==f)return!0;f=!1;for(var h=a,k=!1,m=0;m<b.I();m++){var n=b.Oa(m);if(!e.contains(n))return!1;n=g.kd.ae(h,n,d);if(1==n)f=!0;else if(0==n)return!1;k||(!g.Kg.Nl(a,b.I()-1)||null!=a.Cb&&null!=a.Cb.Gb?h=a:(h=new g.Ea,a.copyTo(h),h.gj(1)),k=!0)}return f};c.fV=function(a,b,d){var e=
new g.l,f=new g.l;a.A(e);b.A(f);if(!c.dk(e,f,d))return!1;e=new g.Ea;e.cd(b,!1);return c.Mz(a,e,d,!0)};c.aV=function(a,b,d){var e=c.rc(a,b,!1);if(4==e)return!0;if(1==e||2==e)return!1;var f=new g.l;e=new g.l;a.A(f);b.A(e);if(c.Bc(e,f,d))return!1;f=new g.h;e.fn(f);b=g.kd.ae(a,f,d);if(0!=b)return!1;e.VI(f);b=g.kd.ae(a,f,d);if(0!=b)return!1;e.gn(f);b=g.kd.ae(a,f,d);if(0!=b)return!1;e.YI(f);b=g.kd.ae(a,f,d);if(0!=b)return!1;b=a.lb(0);f=new g.l;f.L(e);f.Y(d,d);for(var h=0,k=a.I();h<k;h++){var m=b.read(2*
h),n=b.read(2*h+1);if(f.contains(m,n))return!1}return!c.NG(a,e,d)};c.lV=function(a,b,d,e){var f=c.rc(a,b,!1);if(4==f||1==f||2==f)return!1;f=new g.l;var h=new g.l;a.A(f);b.A(h);if(c.Bc(h,f,d))return!1;if(h.S()<=d&&h.da()<=d)return b=b.Kp(),c.CI(a,b,d);if(h.S()<=d||h.da()<=d)return f=new g.Ua,h=new g.Ta,b.Lf(0,h),f.qf(h),b.Lf(2,h),f.lineTo(h),c.EI(a,f,d,e);f=new g.Ea;f.cd(b,!1);return c.DI(a,f,d,e)};c.iV=function(a,b,d,e){var f=c.rc(a,b,!1);if(4==f||1==f||2==f)return!1;f=new g.l;var h=new g.l;a.A(f);
b.A(h);if(c.Bc(h,f,d)||h.S()<=d||h.da()<=d)return!1;f=new g.Ea;f.cd(b,!1);return c.AI(a,f,d,e)};c.qV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.Bc(f,e,d)};c.VU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!c.Bc(e,f,d))return!1;e=c.rc(a,b,!1);if(4==e||2==e)return!1;if(1==e)return!0;if(f.S()<=d&&f.da()<=d)return b=b.Kp(),c.vI(a,b,d);if(f.S()<=d||f.da()<=d)return f=new g.Ua,e=new g.Ta,b.Lf(0,e),f.qf(e),b.Lf(2,e),f.lineTo(e),c.xI(a,f,d,null);f=new g.Ea;f.cd(b,!1);return c.wI(a,
f,d,null)};c.YU=function(a,b,d,e){var f=new g.l,h=new g.l;a.A(f);b.A(h);if(c.Bc(h,f,d)||h.da()>d&&h.S()>d||h.da()<=d&&h.S()<=d)return!1;f=new g.Ua;h=new g.Ta;b.Lf(0,h);f.qf(h);b.Lf(2,h);f.lineTo(h);return c.yI(a,f,d,e)};c.BV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.dk(e,f,d)&&4!=c.rc(a,b,!1)?c.ZH(a,b,d)?!0:c.Mz(a,b,d,!1):!1};c.zV=function(a,b,d){return 4==this.rc(a,b,!1)?!0:(new g.$l(a,b,d,!0)).next()?!this.OG(a,b,d):!1};c.II=function(a,b,d){if(4==c.rc(a,b,!1))return!1;var e=
new g.ee(0);if(0!=c.Nz(a,b,d,e))return!1;for(var f=new g.fe,h=0;h<e.size;h+=2){var k=e.read(h),m=e.read(h+1);f.yu(k,m)}a=a.qg();b=b.qg();a.Hd(b,0,b.I());return c.Jw(a,f,d)};c.GI=function(a,b,d){if(4==c.rc(a,b,!1))return!1;var e=new g.ee(0);if(0!=c.Nz(a,b,d,e))return!1;for(var f=new g.fe,h=0;h<e.size;h+=2){var k=e.read(h),m=e.read(h+1);f.yu(k,m)}a=a.qg();b=b.qg();a.Hd(b,0,b.I());return!c.Jw(a,f,d)};c.FV=function(a,b,d){return 4==c.rc(a,b,!1)?!1:c.QG(a,b,d)};c.FI=function(a,b,d){var e=new g.l,f=new g.l;
a.A(e);b.A(f);return c.Bc(e,f,d)&&4!=c.rc(a,b,!1)?c.Am(b,a,d,!1):!1};c.yV=function(a,b,d){if(4==c.rc(a,b,!1))return!0;b=b.D();return!c.Oz(a,b,d)};c.JV=function(a,b,d){if(4==c.rc(a,b,!1))return!1;b=b.D();return c.Pz(a,b,d)};c.tV=function(a,b,d){if(4==c.rc(a,b,!1))return!1;b=b.D();return c.MG(a,b,d)};c.xV=function(a,b,d){return 4==c.rc(a,b,!1)?!0:!c.PG(a,b,d,!1)};c.IV=function(a,b,d){if(4==this.rc(a,b,!1))return!1;var e=a.Ha(),f=new g.l,h=new g.l,k=new g.l;a.A(f);b.A(h);f.Y(d,d);h.Y(d,d);k.L(f);k.Fa(h);
f=null;var m=a.Cb;if(null!=m){var n=m.Gb;f=m.Ao;null==n&&(n=m=g.ua.jj(a,k))}else n=m=g.ua.jj(a,k);var p=n.getIterator(),q=null;null!=f&&(q=f.getIterator());var r=new g.h,u=new g.h,v=!1,w=d*d;f=new g.rn(b.I());for(m=0;m<b.I();m++)f.write(m,0);for(m=0;m<b.I();m++)if(b.D(m,r),k.contains(r))if(h.L(r.x,r.y,r.x,r.y),null==q||(q.Xi(h,d),-1!=q.next())){p.Xi(h,d);for(var z=p.next();-1!=z;z=p.next())if(e.Wb(n.ka(z)),z=e.ia(),z.jc(z.he(r,!1),u),g.h.Ac(r,u)<=w){f.write(m,1);v=!0;break}}if(!v)return!1;a=a.qg();
e=new g.fe;h=new g.h;for(m=0;m<b.I();m++)0!=f.read(m)&&(b.D(m,h),e.yu(h.x,h.y));return this.Jw(a,e,d)};c.vV=function(a,b,d){if(4==this.rc(a,b,!1))return!1;var e=a.Ha(),f=new g.l,h=new g.l,k=new g.l;a.A(f);b.A(h);f.Y(d,d);h.Y(d,d);k.L(f);k.Fa(h);f=null;var m=a.Cb;if(null!=m){var n=m.Gb;f=m.Ao;null==n&&(n=m=g.ua.jj(a,k))}else n=m=g.ua.jj(a,k);var p=n.getIterator(),q=null;null!=f&&(q=f.getIterator());var r=new g.h,u=new g.h,v=!1,w=!1,z=d*d;f=new g.rn(b.I());for(m=0;m<b.I();m++)f.write(m,0);for(m=0;m<
b.I();m++)if(b.D(m,r),k.contains(r))if(h.L(r.x,r.y,r.x,r.y),null!=q&&(q.Xi(h,d),-1==q.next()))w=!0;else{p.Xi(h,d);for(var x=!1,A=p.next();-1!=A;A=p.next())if(e.Wb(n.ka(A)),A=e.ia(),A.jc(A.he(r,!1),u),g.h.Ac(r,u)<=z){f.write(m,1);x=v=!0;break}x||(w=!0)}else w=!0;if(!v||!w)return!1;a=a.qg();e=new g.fe;h=new g.h;for(m=0;m<b.I();m++)0!=f.read(m)&&(b.D(m,h),e.yu(h.x,h.y));return!this.Jw(a,e,d)};c.sV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!c.Bc(e,f,d)||4==c.rc(a,b,!1)||!c.PG(a,b,d,!0))return!1;
a=a.qg();return!c.bI(a,b,d)};c.AV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return f.da()>d&&f.S()>d?!1:c.dk(e,f,d)};c.wV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.Bc(f,e,d)?!1:!c.NG(a,f,d)};c.HV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(f.da()<=d&&f.S()<=d)return f=b.Kp(),c.Pz(a,f,d);if(f.da()<=d||f.S()<=d)return f=new g.Ua,e=new g.Ta,b.Lf(0,e),f.qf(e),b.Lf(2,e),f.lineTo(e),c.II(a,f,d);a=a.Ha();b=new g.l;e=new g.l;b.L(f);e.L(f);b.Y(-d,-d);e.Y(d,d);
f=!1;for(var h=new g.l,k=new g.l;a.ab();)for(;a.Ia();){a.ia().A(h);k.L(b);k.Fa(h);if(!k.B()&&(k.da()>d||k.S()>d))return!1;k.L(e);k.Fa(h);k.B()||(f=!0)}return f};c.EV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(c.Bc(e,f,d)||c.Bc(f,e,d)||c.Bc(f,e,d)||f.da()>d&&f.S()>d||f.da()<=d&&f.S()<=d)return!1;e=new g.Ua;f=new g.Ta;b.Lf(0,f);e.qf(f);b.Lf(2,f);e.lineTo(f);return c.QG(a,e,d)};c.KV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!c.Bc(f,e,d)||f.da()<=d&&f.S()<=d)return!1;if(f.da()<=
d||f.S()<=d)return c.Bc(f,e,d);a=a.Ha();b=new g.l;b.L(f);b.Y(-d,-d);f=!1;e=new g.l;for(var h=new g.l;a.ab();)for(;a.Ia();)a.ia().A(e),b.jm(e)?f=!0:(h.L(b),h.Fa(e),!h.B()&&(h.da()>d||h.S()>d)&&(f=!0));return f};c.rV=function(a,b,d){var e=new g.l,f=new g.l;b.A(f);a.A(e);if(!c.Bc(e,f,d)||f.da()>d&&f.S()>d)return!1;if(f.da()<=d&&f.S()<=d)return b=b.Kp(),c.MG(a,b,d);e=new g.Ua;f=new g.Ta;b.Lf(0,f);e.qf(f);b.Lf(2,f);e.lineTo(f);return c.Am(e,a,d,!1)};c.uV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);
b.A(f);if(c.Bc(f,e,d)||f.da()<=d&&f.S()<=d)return!1;if(f.da()<=d||f.S()<=d)return e=new g.Ua,f=new g.Ta,b.Lf(0,f),e.qf(f),b.Lf(2,f),e.lineTo(f),c.GI(a,e,d);a=a.Ha();b=new g.l;e=new g.l;e.L(f);b.L(f);e.Y(-d,-d);b.Y(d,d);for(var h=f=!1,k=new g.l,m=new g.l;a.ab();)for(;a.Ia();)if(a.ia().A(k),h||b.contains(k)||(h=!0),f||(m.L(e),m.Fa(k),!m.B()&&(m.da()>d||m.S()>d)&&(f=!0)),f&&h)return!0;return!1};c.bU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.dk(e,f,d)?c.cU(a,b,d)?!0:c.NA(a,b,d,!1,
!0,!1):!1};c.$T=function(a,b,d){return!c.bI(a,b,d)};c.hU=function(a,b,d){return c.NA(a,b,d,!1,!1,!0)};c.$H=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.Bc(e,f,d)?c.NA(b,a,d,!0,!1,!1):!1};c.Jw=function(a,b,d){d*=d;for(var e=new g.h,f=new g.h,h=0;h<b.I();h++){b.D(h,f);for(var k=!1,m=0;m<a.I();m++)if(a.D(m,e),g.h.Ac(e,f)<=d){k=!0;break}if(!k)return!1}return!0};c.Kw=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.dk(e,f,d)};c.aI=function(a,b,d){b=b.D();return c.gt(a,b,
d)};c.lU=function(a,b,d){return c.Kw(a,b,d)};c.XT=function(a,b,d){return!c.aI(a,b,d)};c.aU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return f.da()>d||f.S()>d?!1:c.dk(e,f,d)};c.ZT=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(c.Bc(f,e,d))return!1;b=new g.l;b.L(f);b.Y(d,d);d=new g.h;for(f=0;f<a.I();f++)if(a.D(f,d),b.contains(d))return!1;return!0};c.jU=function(a,b,d){var e=new g.l,f=new g.l,h=new g.l;b.A(e);if(e.da()<=d&&e.S()<=d)return!1;if(e.da()<=d||e.S()<=d){b=new g.h;var k=
!1;f.L(e);h.L(e);f.Y(d,d);e.da()>d?h.Y(0,-d):h.Y(-d,0);for(var m=0;m<a.I();m++)if(a.D(m,b),f.contains(b)){if(e.da()>d){if(b.y>h.F&&b.y<h.H)return!1}else if(b.x>h.v&&b.x<h.C)return!1;k=!0}return k}f.L(e);h.L(e);f.Y(d,d);h.Y(-d,-d);b=new g.h;k=!1;for(m=0;m<a.I();m++)if(a.D(m,b),f.contains(b)){if(h.jm(b))return!1;k=!0}return k};c.kU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!c.Bc(f,e,d))return!1;if(f.da()<=d&&f.S()<=d)return c.dk(e,f,d);if(f.da()<=d||f.S()<=d){b=!1;e=new g.l;var h=new g.l;
e.L(f);h.L(f);f.da()>d?e.Y(0,-d):e.Y(-d,0);h.Y(d,d);for(var k=new g.h,m=0;m<a.I();m++){a.D(m,k);if(!h.contains(k))return!1;f.da()>d?k.y>e.F&&k.y<e.H&&(b=!0):k.x>e.v&&k.x<e.C&&(b=!0)}return b}b=!1;e=new g.l;h=new g.l;e.L(f);h.L(f);e.Y(-d,-d);h.Y(d,d);k=new g.h;for(m=0;m<a.I();m++){a.D(m,k);if(!h.contains(k))return!1;e.jm(k)&&(b=!0)}return b};c.WT=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!c.Bc(e,f,d)||f.da()>d||f.S()>d)return!1;b=b.Kp();return!c.gt(a,b,d)};c.YT=function(a,b,d){var e=
new g.l,f=new g.l;a.A(e);b.A(f);if(c.Bc(f,e,d)||f.da()<=d&&f.S()<=d)return!1;if(f.da()<=d||f.S()<=d){b=new g.l;e=new g.l;b.L(f);f.da()>d?b.Y(0,-d):b.Y(-d,0);e.L(f);e.Y(d,d);for(var h=new g.h,k=!1,m=!1,n=0;n<a.I();n++)if(a.D(n,h),k||(f.da()>d?h.y>b.F&&h.y<b.H&&(k=!0):h.x>b.v&&h.x<b.C&&(k=!0)),m||e.contains(h)||(m=!0),k&&m)return!0;return!1}b=new g.l;e=new g.l;b.L(f);b.Y(-d,-d);e.L(f);e.Y(d,d);h=new g.h;m=k=!1;for(n=0;n<a.I();n++)if(a.D(n,h),!k&&b.jm(h)&&(k=!0),m||e.contains(h)||(m=!0),k&&m)return!0;
return!1};c.rI=function(a,b,d){return g.h.Ac(a,b)<=d*d?!0:!1};c.LU=function(a,b,d){return g.h.Ac(a,b)>d*d?!0:!1};c.pI=function(a,b,d){return c.rI(a,b,d)};c.qI=function(a,b,d){var e=new g.l;e.L(a);return c.dk(e,b,d)};c.Ow=function(a,b,d){var e=new g.l;e.L(b);e.Y(d,d);return!e.contains(a)};c.TA=function(a,b,d){if(b.da()<=d&&b.S()<=d)return!1;var e=new g.l,f=new g.l;e.L(b);e.Y(d,d);if(!e.contains(a))return!1;if(b.da()<=d||b.S()<=d){f.L(b);b.da()>d?f.Y(0,-d):f.Y(-d,0);if(b.da()>d){if(a.y>f.F&&a.y<f.H)return!1}else if(a.x>
f.v&&a.x<f.C)return!1;return!0}f.L(b);f.Y(-d,-d);return f.jm(a)?!1:!0};c.UA=function(a,b,d){if(b.da()<=d&&b.S()<=d)return!0;if(b.da()<=d||b.S()<=d){var e=new g.l;e.L(b);b.da()>d?e.Y(0,-d):e.Y(-d,0);var f=!1;b.da()>d?a.y>e.F&&a.y<e.H&&(f=!0):a.x>e.v&&a.x<e.C&&(f=!0);return f}e=new g.l;e.L(b);e.Y(-d,-d);return e.jm(a)};c.KU=function(a,b,d){return c.qI(a,b,d)};c.dk=function(a,b,d){return c.Bc(a,b,d)&&c.Bc(b,a,d)};c.ck=function(a,b,d){var e=new g.l;e.L(b);e.Y(d,d);return!a.isIntersecting(e)};c.aQ=function(a,
b,d){if(a.da()<=d&&a.S()<=d){var e=a.wf();return c.TA(e,b,d)}if(b.da()<=d&&b.S()<=d)return e=b.wf(),c.TA(e,a,d);a.da()>d&&a.S()>d&&(b.da()<=d||b.S()<=d)?e=b:(e=a,a=b);if(e.da()<=d||e.S()<=d){if(a.da()<=d||a.S()<=d){b=new g.zb;var f=new g.zb,h=[0,0],k=[0,0],m=new g.h;e.fn(m);b.Fc(m);e.gn(m);b.Tc(m);a.fn(m);f.Fc(m);a.gn(m);f.Tc(m);b.Fa(f,null,h,k,d);return 1!=b.Fa(f,null,null,null,d)?!1:0==h[0]||1==h[1]||0==k[0]||1==k[1]}b=new g.l;f=new g.l;b.L(a);b.Y(-d,-d);f.L(b);f.Fa(e);return!f.B()&&(f.da()>d||
f.S()>d)?!1:!0}a.Y(d,d);f=new g.l;f.L(e);f.Fa(a);return f.B()||!f.B()&&f.da()>d&&f.S()>d?!1:!0};c.$P=function(a,b,d){if(c.Bc(a,b,d)||c.Bc(b,a,d)||a.da()<=d&&a.S()<=d||b.da()<=d&&b.S()<=d)return!1;if(a.da()<=d||a.S()<=d){if(b.da()>d&&b.S()>d)return!1;var e=new g.zb,f=new g.zb,h=[0,0],k=[0,0],m=new g.h;a.fn(m);e.Fc(m);a.gn(m);e.Tc(m);b.fn(m);f.Fc(m);b.gn(m);f.Tc(m);e.Fa(f,null,h,k,d);return 2!=e.Fa(f,null,null,null,d)?!1:(0<h[0]||1>h[1])&&(0<k[0]||1>k[1])}if(b.da()<=d||b.S()<=d)return!1;e=new g.l;e.L(a);
e.Fa(b);return e.B()||e.da()<=d||e.S()<=d?!1:!0};c.aF=function(a,b,d){if(!c.Bc(a,b,d))return!1;if(a.da()<=d&&a.S()<=d)return a=a.wf(),c.UA(a,b,d);if(b.da()<=d&&b.S()<=d)return b=b.wf(),c.UA(b,a,d);if(a.da()<=d||a.S()<=d)return c.Bc(a,b,d);if(b.da()<=d||b.S()<=d){var e=new g.l;e.L(a);e.Y(-d,-d);if(e.jm(b))return!0;a=new g.l;a.L(e);a.Fa(b);return a.B()||a.da()<=d&&a.S()<=d?!1:!0}return c.Bc(a,b,d)};c.ZP=function(a,b,d){if(c.Bc(a,b,d)||c.Bc(b,a,d)||a.da()<=d&&a.S()<=d||b.da()<=d&&b.S()<=d||b.da()>d&&
b.S()>d&&a.da()>d&&a.S()>d)return!1;if(a.da()>d&&a.S()>d)var e=b;else e=a,a=b;if(a.da()>d&&a.S()>d){b=new g.l;var f=new g.l;f.L(a);f.Y(-d,-d);b.L(f);b.Fa(e);return b.B()||b.da()<=d&&b.S()<=d?!1:!0}b=new g.zb;f=new g.zb;var h=[0,0],k=[0,0],m=new g.h;e.fn(m);b.Fc(m);e.gn(m);b.Tc(m);a.fn(m);f.Fc(m);a.gn(m);f.Tc(m);b.Fa(f,null,h,k,d);return 1!=b.Fa(f,null,null,null,d)?!1:0<h[0]&&1>h[1]&&0<k[0]&&1>k[1]};c.zI=function(a,b,d){var e=new g.l,f=new g.l,h=new g.$l(a,b,d,!0);if(!h.next())return!0;if(this.OG(a,
b,d))return!1;var k=a,m=null;1736==b.K()&&(m=b);var n=!1,p=!1;do{var q=h.ol(),r=h.il();r=b.Oa(b.Ca(r));e.L(h.jz());e.Y(d,d);if(e.contains(r)&&(r=g.kd.ae(k,r,0),0!=r)||1736==b.K()&&(q=a.Oa(a.Ca(q)),f.L(h.Ry()),f.Y(d,d),f.contains(q)&&(r=g.kd.ae(m,q,0),0!=r)))return!1;n||(!g.Kg.Nl(a,b.ea()-1)||null!=a.Cb&&null!=a.Cb.Gb?k=a:(k=new g.Ea,a.copyTo(k),k.gj(1)),n=!0);1736!=b.K()||p||(p=b,!g.Kg.Nl(p,a.ea()-1)||null!=b.Cb&&null!=b.Cb.Gb?m=b:(m=new g.Ea,p.copyTo(m),m.gj(1)),p=!0)}while(h.next());return!0};c.Bc=
function(a,b,d){var e=new g.l;e.L(a);e.Y(d,d);return e.contains(b)};c.hs=function(a,b,d){var e=new g.l;e.L(b);e.Y(d,d);b=new g.h;a.fn(b);if(!e.contains(b))return!0;a.VI(b);if(!e.contains(b))return!0;a.YI(b);if(!e.contains(b))return!0;a.gn(b);return e.contains(b)?!1:!0};c.ZH=function(a,b,d){if(a.ea()!=b.ea()||a.I()!=b.I())return!1;var e=new g.h,f=new g.h,h=!0;d*=d;for(var k=0;k<a.ea();k++){if(a.Xc(k)!=b.Xc(k)){h=!1;break}for(var m=a.Ca(k);m<b.Xc(k);m++)if(a.D(m,e),b.D(m,f),g.h.Ac(e,f)>d){h=!1;break}if(!h)break}return h?
!0:!1};c.cU=function(a,b,d){if(a.I()!=b.I())return!1;var e=new g.h,f=new g.h,h=!0;d*=d;for(var k=0;k<a.I();k++)if(a.D(k,e),b.D(k,f),g.h.Ac(e,f)>d){h=!1;break}return h?!0:!1};c.NA=function(a,b,d,e,f,h){var k=!1;if(a.I()>b.I()){e&&(e=!1,k=!0);var m=b}else m=a,a=b;b=null;if(f||h||k){b=new g.rn(a.I());for(var n=0;n<a.I();n++)b.write(n,0)}n=new g.l;var p=new g.l,q=new g.l;m.A(n);a.A(p);n.Y(d,d);p.Y(d,d);q.L(n);q.Fa(p);p=new g.h;for(var r=new g.h,u=!0,v=g.ua.eE(a,q),w=v.getIterator(),z=d*d,x=0;x<m.I();x++)if(m.D(x,
p),q.contains(p)){var A=!1;n.L(p.x,p.y,p.x,p.y);w.Xi(n,d);for(var B=w.next();-1!=B&&!(B=v.ka(B),a.D(B,r),g.h.Ac(p,r)<=z&&((f||h||k)&&b.write(B,1),A=!0,e));B=w.next());if(!A&&(u=!1,f||e))return!1}else{if(f||e)return!1;u=!1}if(h&&u)return!1;if(e)return!0;for(n=0;n<a.I();n++)if(1==b.read(n)){if(h)return!0}else if(f||k)return!1;return h?!1:!0};c.bI=function(a,b,d){if(a.I()>b.I())var e=b;else e=a,a=b;b=new g.l;var f=new g.l,h=new g.l;e.A(b);a.A(f);b.Y(d,d);f.Y(d,d);h.L(b);h.Fa(f);f=new g.h;for(var k=new g.h,
m=d*d,n=g.ua.eE(a,h),p=n.getIterator(),q=0;q<e.I();q++)if(e.D(q,f),h.contains(f)){b.L(f.x,f.y,f.x,f.y);p.Xi(b,d);for(var r=p.next();-1!=r;r=p.next())if(a.D(n.ka(r),k),g.h.Ac(f,k)<=m)return!0}return!1};c.Mz=function(a,b,d,e){return c.Am(a,b,d,e)&&c.Am(b,a,d,e)};c.Am=function(a,b,d,e){function f(S,R){return q.GE(S,R)}var h=!0,k=[0,0],m=[0,0],n=0,p=new g.ja(0),q=new c,r,u=new g.l,v=new g.l,w=new g.l;a.A(u);b.A(v);u.Y(d,d);v.Y(d,d);w.L(u);w.Fa(v);a=a.Ha();v=b.Ha();var z=null,x=z=null,A=b.Cb;null!=A?(z=
A.Gb,x=A.Ao,null==z&&(z=g.ua.jj(b,w))):z=g.ua.jj(b,w);b=z.getIterator();A=null;for(null!=x&&(A=x.getIterator());a.ab();)for(;a.Ia();){var B=!1,C=a.ia();C.A(u);if(!u.isIntersecting(w))return!1;if(null!=A&&(A.Xi(u,d),-1==A.next()))return h=!1;x=C.Rb();b.Vo(C,d);for(r=b.next();-1!=r;r=b.next()){v.Wb(z.ka(r));r=v.ia();var D=C.Fa(r,null,k,m,d);if(2==D&&(!e||m[0]<=m[1])){D=k[0];var G=k[1],H=m[0],K=m[1];if(D*x<=d&&(1-G)*x<=d){B=!0;n=0;p.resize(0);q.sh.length=0;var J=a.xb();for(H=!0;H;){if(a.Ia()){C=a.ia();
x=C.Rb();D=C.Fa(r,null,k,m,d);if(2==D&&(!e||m[0]<=m[1])&&(D=k[0],G=k[1],D*x<=d&&(1-G)*x<=d)){J=a.xb();continue}if(v.Ia()&&(r=v.ia(),D=C.Fa(r,null,k,m,d),2==D&&(!e||m[0]<=m[1])&&(D=k[0],G=k[1],D*x<=d&&(1-G)*x<=d))){J=a.xb();continue}}H=!1}J!=a.xb()&&(a.Wb(J),a.ia());break}else J=a.xb(),r=t.construct(J,a.gb,D,G,v.xb(),v.gb,H,K),q.sh.push(r),p.add(p.size)}}if(!B){if(n==q.sh.length)return!1;1<p.size-n&&p.Xd(n,p.size,f);for(B=0;n<q.sh.length;n++)if(r=q.sh[p.get(n)],!(r.Kj<B&&r.Si<B)){if(x*(r.Kj-B)>d)return!1;
B=r.Si;if(x*(1-B)<=d||1==B)break}if(x*(1-B)>d)return!1;n=0;p.resize(0);q.sh.length=0}}return h};c.QG=function(a,b,d){if(1>c.Nz(a,b,d,null))return!1;var e=new g.l,f=new g.l;a.A(e);b.A(f);var h=c.hs(e,f,d);e=c.hs(f,e,d);return h&&e?!0:h&&!e?!c.Am(b,a,d,!1):e&&!h?!c.Am(a,b,d,!1):!c.Am(a,b,d,!1)&&!c.Am(b,a,d,!1)};c.Nz=function(a,b,d,e){function f(ia,oa){return u.GE(ia,oa)}if(a.nz()>b.nz())var h=b,k=a;else h=a,k=b;a=h.Ha();b=k.Ha();var m=[0,0],n=[0,0],p=-1,q=0,r=new g.ja(0),u=new c,v=new g.l,w=new g.l,
z=new g.l;h.A(v);k.A(w);v.Y(d,d);w.Y(d,d);z.L(v);z.Fa(w);h=null;null!=e&&(h=new g.h);var x=w=w=null,A=k.Cb;null!=A?(w=A.Gb,x=A.Ao,null==w&&(w=g.ua.jj(k,z))):w=g.ua.jj(k,z);k=w.getIterator();A=null;for(null!=x&&(A=x.getIterator());a.ab();)for(x=0;a.Ia();){var B=a.ia();B.A(v);if(v.isIntersecting(z)&&(null==A||(A.Xi(v,d),-1!=A.next()))){var C=B.Rb();k.Vo(B,d);for(var D=k.next();-1!=D;D=k.next()){var G=w.ka(D);b.Wb(G);var H=b.ia(),K=H.Rb(),J=B.Fa(H,null,m,n,d);if(0<J){D=m[0];p=n[0];var S=2==J?m[1]:NaN,
R=2==J?n[1]:NaN;if(2==J){if(C*(S-D)>d)return p=1;var V=C*(S-D);if(b.Ia()){H=b.ia();J=B.Fa(H,null,m,null,d);if(2==J){J=m[0];var W=m[1];J=C*(W-J);if(V+J>d)return p=1}b.Wb(G);b.ia()}if(!b.xm()){b.li();H=b.li();J=B.Fa(H,null,m,null,d);if(2==J&&(J=m[0],W=m[1],J=C*(W-J),V+J>d))return p=1;b.Wb(G);b.ia()}if(a.Ia()){G=a.xb();B=a.ia();J=B.Fa(H,null,m,null,d);if(2==J&&(J=m[0],W=m[1],J=C*(W-J),V+J>d))return p=1;a.Wb(G);a.ia()}if(!a.xm()){G=a.xb();a.li();B=a.li();J=B.Fa(H,null,m,null,d);if(2==J&&(J=m[0],W=m[1],
J=K*(W-J),V+J>d))return p=1;a.Wb(G);a.ia()}H=t.construct(a.xb(),a.gb,D,S,b.xb(),b.gb,p,R);u.sh.push(H);r.add(r.size)}p=0;null!=e&&(B.jc(D,h),e.add(h.x),e.add(h.y))}}if(q<u.sh.length){r.Xd(q,r.size,f);B=0;for(D=u.sh[r.get(q)].Om;q<u.sh.length;q++)if(H=u.sh[r.get(q)],!(H.Kj<B&&H.Si<B))if(C*(H.Kj-B)>d)x=C*(H.Si-H.Kj),B=H.Si,D=H.Om;else{H.Om!=D?(x=C*(H.Si-H.Kj),D=H.Om):x+=C*(H.Si-H.Kj);if(x>d)return p=1;B=H.Si;if(1==B)break}C*(1-B)>d&&(x=0);q=0;r.resize(0);u.sh.length=0}}}return p};c.OG=function(a,b,
d){var e=a.Ha(),f=b.Ha();for(a=new g.$l(a,b,d,!1);a.next();){b=a.ol();var h=a.il();e.Wb(b);f.Wb(h);b=e.ia();if(0<f.ia().Fa(b,null,null,null,d))return!0}return!1};c.PG=function(a,b,d,e){var f=a.Ha(),h=new g.l,k=new g.l,m=new g.l;a.A(h);b.A(k);h.Y(d,d);h.contains(k);k.Y(d,d);m.L(h);m.Fa(k);h=a.Cb;null!=h?(h=h.Gb,null==h&&(h=g.ua.jj(a,m))):h=g.ua.jj(a,m);a=h.getIterator();for(var n=new g.h,p=new g.h,q=d*d,r=0;r<b.I();r++)if(b.D(r,n),m.contains(n)){k.L(n.x,n.y,n.x,n.y);a.Xi(k,d);for(var u=!1,v=a.next();-1!=
v;v=a.next())if(f.Wb(h.ka(v)),v=f.ia(),v.jc(v.he(n,!1),p),g.h.Ac(p,n)<=q){u=!0;break}if(e){if(!u)return!1}else if(u)return!0}return e?!0:!1};c.Oz=function(a,b,d){var e=new g.h,f=d*d,h=a.Ha();a=a.Cb;if(null!=a&&(a=a.Gb,null!=a)){var k=new g.l;k.L(b);d=a.FF(k,d);for(k=d.next();-1!=k;k=d.next())if(h.Wb(a.ka(k)),h.Ia()){k=h.ia();var m=k.he(b,!1);k.jc(m,e);if(g.h.Ac(b,e)<=f)return!0}return!1}for(a=new g.l;h.ab();)for(;h.Ia();)if(k=h.ia(),k.A(a),a.Y(d,d),a.contains(b)&&(m=k.he(b,!1),k.jc(m,e),g.h.Ac(b,
e)<=f))return!0;return!1};c.MG=function(a,b,d){return c.Oz(a,b,d)&&!c.Pz(a,b,d)};c.Pz=function(a,b,d){a=a.qg();return!c.gt(a,b,d)};c.NG=function(a,b,d){if(a.vm()){var e=new g.zb(b.v,b.F,b.v,b.H),f=new g.zb(b.v,b.H,b.C,b.H),h=new g.zb(b.C,b.H,b.C,b.F);b=new g.zb(b.C,b.F,b.v,b.F);for(a=a.Ha();a.ab();)for(;a.Ia();){var k=a.ia();if(k.isIntersecting(e,d)||k.isIntersecting(f,d)||k.isIntersecting(h,d)||k.isIntersecting(b,d))return!0}}else{e=new g.l;e.L(b);e.Y(d,d);d=a.lb(0);f=new g.h;h=new g.h;b=new g.h;
k=new g.h;for(var m=0,n=a.ea();m<n;m++)for(var p=!0,q=a.Ca(m),r=a.Xc(m);q<r;q++)if(p)d.vc(2*q,h),p=!1;else{d.vc(2*q,f);b.N(h);k.N(f);if(0!=e.oy(b,k))return!0;h.N(f)}}return!1};c.rc=function(a,b,d){var e=a.K(),f=b.K();if(g.ba.xj(e)){var h=a.Cb;if(null!=h&&(h=h.Ek,null!=h))if(33==f){var k=b.D();k=h.To(k.x,k.y);if(1==k)return 1;if(0==k)return 4}else{k=new g.l;b.A(k);k=h.So(k);if(1==k)return 1;if(0==k)return 4;if(d&&g.ba.xj(f)&&c.xE(b,h))return 1073741824}}if(g.ba.xj(f)&&(h=b.Cb,null!=h&&(h=h.Ek,null!=
h)))if(33==e){a=a.D();k=h.To(a.x,a.y);if(1==k)return 2;if(0==k)return 4}else{b=new g.l;a.A(b);k=h.So(b);if(1==k)return 2;if(0==k)return 4;if(d&&g.ba.xj(e)&&c.xE(a,h))return 1073741824}return 0};c.xE=function(a,b){for(var d=a.I(),e=new g.h,f=0;f<d;f++)if(a.D(f,e),1==b.To(e.x,e.y))return!0;return!1};c.DI=function(a,b,d,e){for(var f=1<=a.qm(0)&&1<=b.qm(0),h=a.Ha(),k=b.Ha(),m=[0,0],n=[0,0],p=new g.$l(a,b,d,!1),q=!1;p.next();){var r=p.ol(),u=p.il();h.Wb(r);k.Wb(u);r=h.ia();u=k.ia().Fa(r,null,n,m,d);if(2==
u){q=m[0];u=m[1];r=r.Rb();if(f&&(u-q)*r>d)return!1;q=!0}else if(0!=u){q=m[0];r=n[0];if(0<q&&1>q&&0<r&&1>r)return!1;q=!0}}if(!q)return!1;h=new g.l;k=new g.l;f=new g.l;a.A(h);b.A(k);h.Y(1E3*d,1E3*d);k.Y(1E3*d,1E3*d);f.L(h);f.Fa(k);return 10<a.I()&&(a=g.Wd.clip(a,f,d,0),a.B())||10<b.I()&&(b=g.Wd.clip(b,f,d,0),b.B())?!1:g.bm.nt(a,b,d,"F********",e)};c.AI=function(a,b,d,e){var f=1<=a.qm(0)&&1<=b.qm(0),h=new g.l,k=new g.l,m=new g.l;a.A(h);b.A(k);for(var n=!1,p=c.hs(h,k,d),q=c.hs(k,h,d),r=a.Ha(),u=b.Ha(),
v=[0,0],w=[0,0],z=new g.$l(a,b,d,!1);z.next();){var x=z.ol(),A=z.il();r.Wb(x);u.Wb(A);A=r.ia();x=u.ia().Fa(A,null,w,v,d);if(2==x){x=v[0];var B=v[1];A=A.Rb();if(f&&(B-x)*A>d&&(n=!0,p&&q))return!0}else if(0!=x&&(x=v[0],A=w[0],0<x&&1>x&&0<A&&1>A))return!0}f=new g.l;r=new g.l;f.L(h);f.Y(1E3*d,1E3*d);r.L(k);r.Y(1E3*d,1E3*d);m.L(f);m.Fa(r);h="";h=n?h+"**":h+"T*";if(p){if(10<b.I()&&(b=g.Wd.clip(b,m,d,0),b.B()))return!1;h+="****"}else h+="T***";if(q){if(10<a.I()&&(a=g.Wd.clip(a,m,d,0),a.B()))return!1;h+=
"***"}else h+="T**";return g.bm.nt(a,b,d,h.toString(),e)};c.wI=function(a,b,d,e){var f=[!1],h=c.uI(a,b,d,f);if(f[0])return h;f=new g.l;b.A(f);f.Y(1E3*d,1E3*d);return 10<a.I()&&(a=g.Wd.clip(a,f,d,0),a.B())?!1:g.bm.Pw(a,b,d,e)};c.uI=function(a,b,d,e){e[0]=!1;for(var f=a.Ha(),h=b.Ha(),k=[0,0],m=[0,0],n=new g.$l(a,b,d,!1),p=!1;n.next();){var q=n.ol(),r=n.il();f.Wb(q,-1);h.Wb(r,-1);q=f.ia();q=h.ia().Fa(q,null,m,k,d);if(0!=q&&(p=!0,1==q&&(q=k[0],r=m[0],0<q&&1>q&&0<r&&1>r)))return e[0]=!0,!1}if(!p){e[0]=
!0;k=new g.l;a.A(k);k.Y(d,d);n=a;p=!1;m=new g.l;e=0;for(f=b.ea();e<f;e++)if(0<b.Ka(e)){b.Rj(e,m);if(k.isIntersecting(m)){if(h=b.Oa(b.Ca(e)),h=g.Kg.ym(n,h,0),0==h)return!1}else return!1;p||(!g.Kg.Nl(a,b.ea()-1)||null!=a.Cb&&null!=a.Cb.Gb?n=a:(h=new g.Ea,a.copyTo(h),h.gj(1),n=h),p=!0)}if(1==a.ea()||1607==b.K())return!0;k=new g.l;b.A(k);k.Y(d,d);m=b;n=!1;d=new g.l;e=0;for(f=a.ea();e<f;e++)if(0<a.Ka(e)){a.Rj(e,d);if(k.isIntersecting(d)&&(h=a.Oa(a.Ca(e)),h=g.Kg.ym(m,h,0),1==h))return!1;n||(!g.Kg.Nl(b,
a.ea()-1)||null!=b.Cb&&null!=b.Cb.Gb?m=b:(h=new g.Ea,b.copyTo(h),h.gj(1),m=h),n=!0)}return!0}return!1};c.EI=function(a,b,d,e){for(var f=a.Ha(),h=b.Ha(),k=[0,0],m=[0,0],n=new g.$l(a,b,d,!1),p=!1;n.next();){var q=n.ol(),r=n.il();f.Wb(q);h.Wb(r);q=f.ia();q=h.ia().Fa(q,null,m,k,d);if(2==q)p=!0;else if(0!=q){p=k[0];q=m[0];if(0<p&&1>p&&0<q&&1>q)return!1;p=!0}}if(!p)return!1;h=new g.l;k=new g.l;f=new g.l;a.A(h);b.A(k);h.Y(1E3*d,1E3*d);k.Y(1E3*d,1E3*d);f.L(h);f.Fa(k);return 10<a.I()&&(a=g.Wd.clip(a,f,d,0),
a.B())||10<b.I()&&(b=g.Wd.clip(b,f,d,0),b.B())?!1:g.bm.bn(a,b,d,"F********",e)};c.yI=function(a,b,d,e){for(var f=a.Ha(),h=b.Ha(),k=[0,0],m=[0,0],n=new g.$l(a,b,d,!1),p=!1;n.next();){var q=n.ol(),r=n.il();f.Wb(q);h.Wb(r);q=f.ia();q=h.ia().Fa(q,null,m,k,d);if(2==q)p=!0;else if(0!=q){p=k[0];q=m[0];if(0<p&&1>p&&0<q&&1>q)return!0;p=!0}}if(!p)return!1;h=new g.l;k=new g.l;m=new g.l;n=new g.l;f=new g.l;a.A(h);b.A(k);return c.hs(k,h,d)?(m.L(h),m.Y(1E3*d,1E3*d),n.L(k),n.Y(1E3*d,1E3*d),f.L(m),f.Fa(n),10<a.I()&&
(a=g.Wd.clip(a,f,d,0),a.B())||10<b.I()&&(b=g.Wd.clip(b,f,d,0),b.B())?!1:d=g.bm.bn(a,b,d,"T********",e)):d=g.bm.bn(a,b,d,"T*****T**",e)};c.xI=function(a,b,d,e){var f=[!1],h=c.uI(a,b,d,f);if(f[0])return h;f=new g.l;b.A(f);f.Y(1E3*d,1E3*d);return 10<a.I()&&(a=g.Wd.clip(a,f,d,0),a.B())?!1:g.bm.VA(a,b,d,e)};c.vI=function(a,b,d){return 1==g.kd.ae(a,b,d)?!0:!1};c.CI=function(a,b,d){return 2==g.kd.ae(a,b,d)?!0:!1};c.gt=function(a,b,d){var e=new g.h;d*=d;for(var f=0;f<a.I();f++)if(a.D(f,e),g.h.Ac(e,b)<=d)return!1;
return!0};c.prototype.GE=function(a,b){a=this.sh[a];b=this.sh[b];return a.Om<b.Om||a.Om==b.Om&&(a.mw<b.mw||a.mw==b.mw&&(a.Kj<b.Kj||a.Kj==b.Kj&&(a.Si<b.Si||a.Si==b.Si&&a.wH<b.wH)))?-1:1};return c}();g.wd=l})(y||(y={}));(function(g){var t;(function(c){c[c.InteriorInterior=0]="InteriorInterior";c[c.InteriorBoundary=1]="InteriorBoundary";c[c.InteriorExterior=2]="InteriorExterior";c[c.BoundaryInterior=3]="BoundaryInterior";c[c.BoundaryBoundary=4]="BoundaryBoundary";c[c.BoundaryExterior=5]="BoundaryExterior";
c[c.ExteriorInterior=6]="ExteriorInterior";c[c.ExteriorBoundary=7]="ExteriorBoundary";c[c.ExteriorExterior=8]="ExteriorExterior"})(t||(t={}));var l;(function(c){c[c.AreaAreaPredicates=0]="AreaAreaPredicates";c[c.AreaLinePredicates=1]="AreaLinePredicates";c[c.LineLinePredicates=2]="LineLinePredicates";c[c.AreaPointPredicates=3]="AreaPointPredicates";c[c.LinePointPredicates=4]="LinePointPredicates";c[c.PointPointPredicates=5]="PointPointPredicates"})(l||(l={}));t=function(){function c(){this.ne=0;this.j=
new g.fu;this.J=[0,0,0,0,0,0,0,0,0];this.$a=[0,0,0,0,0,0,0,0,0];this.fa=[!1,!1,!1,!1,!1,!1,!1,!1,!1];this.Um=this.sw=-1}c.nB=function(a,b,d,e,f){if(9!=e.length)throw g.i.ga("relation string length has to be 9 characters");for(var h=0;9>h;h++){var k=e.charAt(h);if("*"!=k&&"T"!=k&&"F"!=k&&"0"!=k&&"1"!=k&&"2"!=k)throw g.i.ga("relation string");}h=this.GR(e,a.Eb(),b.Eb());if(0!=h)return g.wd.oB(a,b,d,h,f);h=new g.l;a.A(h);k=new g.l;b.A(k);var m=new g.l;m.L(h);m.$b(k);d=g.ua.Yd(d,m,!1);a=this.ME(a,d);
b=this.ME(b,d);if(a.B()||b.B())return this.nW(a,b,e);h=b.K();k=!1;switch(a.K()){case 1736:switch(h){case 1736:k=this.nt(a,b,d,e,f);break;case 1607:k=this.bn(a,b,d,e,f);break;case 33:k=this.mt(a,b,d,e);break;case 550:k=this.lt(a,b,d,e,f)}break;case 1607:switch(h){case 1736:k=this.bn(b,a,d,this.aq(e),f);break;case 1607:k=this.WA(a,b,d,e,f);break;case 33:k=this.pt(a,b,d,e,f);break;case 550:k=this.ot(a,b,d,e,f)}break;case 33:switch(h){case 1736:k=this.mt(b,a,d,this.aq(e));break;case 1607:k=this.pt(b,
a,d,this.aq(e),f);break;case 33:k=this.TU(a,b,d,e);break;case 550:k=this.ht(b,a,d,this.aq(e))}break;case 550:switch(h){case 1736:k=this.lt(b,a,d,this.aq(e),f);break;case 1607:k=this.ot(b,a,d,this.aq(e),f);break;case 550:k=this.OA(a,b,d,e,f);break;case 33:k=this.ht(a,b,d,e)}break;default:k=!1}return k};c.nt=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.sJ();var k=new g.l,m=new g.l;a.A(k);b.A(m);e=!1;g.wd.ck(k,m,d)&&(h.zu(a,b),e=!0);e||(k=g.wd.rc(a,b,!1),4==k?(h.zu(a,b),e=!0):1==k?(h.by(b),e=!0):
2==k&&(h.PD(a),e=!0));e||(e=new g.jd,a=e.Ib(a),b=e.Ib(b),h.Xo(e,d,f),h.Dp(a,b),h.j.Yg());return c.jg(h.J,h.Zc)};c.Pw=function(a,b,d,e){var f=new c;f.Yi();f.bj("T*****F**");f.sJ();var h=new g.l,k=new g.l;a.A(h);b.A(k);var m=!1;g.wd.ck(h,k,d)&&(f.zu(a,b),m=!0);m||(h=g.wd.rc(a,b,!1),4==h?(f.zu(a,b),m=!0):1==h?(f.by(b),m=!0):2==h&&(f.PD(a),m=!0));if(m)return h=this.jg(f.J,f.Zc);m=new g.jd;a=m.Ib(a);h=m.Ib(b);g.Sk.X(m,d,e,!1);d=m.Me(h).qg();m.Ip(0,!0,!0);g.sn.X(m,a,-1,!1,e);if(0==m.I(a))return!1;g.sn.X(m,
h,-1,!1,e);f.gr(m,e);b=0==m.I(h);if(!b&&(f.Dp(a,h),f.j.Yg(),h=this.jg(f.J,f.Zc),!h))return h;a=m.Me(a);m=new g.jd;a=m.Ib(a);h=m.Ib(d);f.gr(m,e);f.ne=0;f.Yi();f.bj(b?"T*****F**":"******F**");f.xB();f.Dp(a,h);f.j.Yg();return h=this.jg(f.J,f.Zc)};c.bn=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.xB();var k=new g.l,m=new g.l;a.A(k);b.A(m);e=!1;g.wd.ck(k,m,d)&&(h.Au(a,b),e=!0);e||(k=g.wd.rc(a,b,!1),4==k?(h.Au(a,b),e=!0):1==k&&(h.QD(b),e=!0));e||(e=new g.jd,a=e.Ib(a),b=e.Ib(b),h.Xo(e,d,f),h.lh=h.j.Fp(),
c.Gw(b,h.j,h.lh),h.Dp(a,b),h.j.Gp(h.lh),h.j.Yg());return c.jg(h.J,h.Zc)};c.VA=function(a,b,d,e){var f=new c;f.Yi();f.bj("T*****F**");f.xB();var h=new g.l,k=new g.l;a.A(h);b.A(k);var m=!1;g.wd.ck(h,k,d)&&(f.Au(a,b),m=!0);m||(h=g.wd.rc(a,b,!1),4==h?(f.Au(a,b),m=!0):1==h&&(f.QD(b),m=!0));if(m)return d=this.jg(f.J,f.Zc);m=new g.jd;a=m.Ib(a);b=m.Ib(b);f.Xo(m,d,e);if(0==m.I(a))return!1;f.Dp(a,b);f.j.Yg();return d=this.jg(f.J,f.Zc)};c.lt=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.tJ();var k=new g.l,
m=new g.l;a.A(k);b.A(m);e=!1;g.wd.ck(k,m,d)&&(h.Bu(a),e=!0);e||(k=g.wd.rc(a,b,!1),4==k?(h.Bu(a),e=!0):1==k&&(h.yN(),e=!0));e||(e=new g.jd,a=e.Ib(a),b=e.Ib(b),h.Xo(e,d,f),h.vy(a,b),h.j.Yg());return c.jg(h.J,h.Zc)};c.WA=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.VW();e=new g.l;var k=new g.l;a.A(e);b.A(k);var m=!1;g.wd.ck(e,k,d)&&(h.KG(a,b),m=!0);m||4!=g.wd.rc(a,b,!1)||(h.KG(a,b),m=!0);m||(e=new g.jd,a=e.Ib(a),b=e.Ib(b),h.Xo(e,d,f),h.Yh=h.j.Fp(),h.lh=h.j.Fp(),c.Gw(a,h.j,h.Yh),c.Gw(b,h.j,h.lh),
h.Dp(a,b),h.j.Gp(h.Yh),h.j.Gp(h.lh),h.j.Yg());return c.jg(h.J,h.Zc)};c.ot=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.HJ();e=new g.l;var k=new g.l;a.A(e);b.A(k);var m=!1;g.wd.ck(e,k,d)&&(h.Lz(a),m=!0);m||4!=g.wd.rc(a,b,!1)||(h.Lz(a),m=!0);m||(e=new g.jd,a=e.Ib(a),b=e.Ib(b),h.Xo(e,d,f),h.Yh=h.j.Fp(),c.Gw(a,h.j,h.Yh),h.vy(a,b),h.j.Gp(h.Yh),h.j.Yg());return c.jg(h.J,h.Zc)};c.OA=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.MJ();e=new g.l;var k=new g.l;a.A(e);b.A(k);var m=!1;g.wd.ck(e,k,d)&&(h.tI(),
m=!0);m||(e=new g.jd,a=e.Ib(a),b=e.Ib(b),h.Xo(e,d,f),h.vy(a,b),h.j.Yg());return c.jg(h.J,h.Zc)};c.mt=function(a,b,d,e){var f=new c;f.Yi();f.bj(e);f.tJ();var h=new g.l;a.A(h);b=b.D();var k=!1;g.wd.Ow(b,h,d)&&(f.Bu(a),k=!0);k||(d=g.kd.ae(a,b,d),1==d?(f.J[0]=0,f.J[2]=2,f.J[3]=-1,f.J[5]=1,f.J[6]=-1):2==d?(f.J[6]=-1,0!=a.Je()?(f.J[0]=-1,f.J[3]=0,f.J[2]=2,f.J[5]=1):(f.J[0]=0,f.J[3]=-1,f.J[5]=-1,d=new g.l,a.A(d),f.J[2]=0==d.da()&&0==d.S()?-1:1)):f.Bu(a));return this.jg(f.J,e)};c.pt=function(a,b,d,e,f){var h=
new c;h.Yi();h.bj(e);h.HJ();var k=new g.l;a.A(k);e=b.D();var m=!1;g.wd.Ow(e,k,d)&&(h.Lz(a),m=!0);if(!m){k=null;var n=m=!1;if(h.fa[0]||h.fa[6])g.wd.Oz(a,e,d)?(h.fa[0]&&(k=g.pi.im(a,f),n=!g.wd.gt(k,e,d),m=!0,h.J[0]=n?-1:0),h.J[6]=-1):(h.J[0]=-1,h.J[6]=0);h.fa[3]&&(null!=k&&k.B()?h.J[3]=-1:(m||(null==k&&(k=g.pi.im(a,f)),n=!g.wd.gt(k,e,d),m=!0),h.J[3]=n?0:-1));h.fa[5]&&(null!=k&&k.B()?h.J[5]=-1:m&&!n?h.J[5]=0:(null==k&&(k=g.pi.im(a,f)),f=g.wd.Kw(k,b,d),h.J[5]=f?-1:0));h.fa[2]&&(0!=a.Rb()?h.J[2]=1:(f=
new g.fe(a.description),f.Hd(a,0,a.I()),a=g.wd.Kw(f,b,d),h.J[2]=a?-1:0))}return this.jg(h.J,h.Zc)};c.ht=function(a,b,d,e){var f=new c;f.Yi();f.bj(e);f.MJ();var h=new g.l;a.A(h);b=b.D();var k=!1;g.wd.Ow(b,h,d)&&(f.tI(),k=!0);if(!k){h=!1;k=!0;d*=d;for(var m=0;m<a.I();m++){var n=a.Oa(m);g.h.Ac(n,b)<=d?h=!0:k=!1;if(h&&!k)break}h?(f.J[0]=0,f.J[2]=k?-1:0,f.J[6]=-1):(f.J[0]=-1,f.J[2]=0,f.J[6]=0)}return c.jg(f.J,e)};c.TU=function(a,b,d,e){a=a.D();b=b.D();for(var f=[],h=0;9>h;h++)f[h]=-1;g.h.Ac(a,b)<=d*d?
f[0]=0:(f[2]=0,f[6]=0);f[8]=2;return c.jg(f,e)};c.jg=function(a,b){for(var d=0;9>d;d++)switch(b.charAt(d)){case "T":if(-1==a[d])return!1;break;case "F":if(-1!=a[d])return!1;break;case "0":if(0!=a[d])return!1;break;case "1":if(1!=a[d])return!1;break;case "2":if(2!=a[d])return!1}return!0};c.nW=function(a,b,d){var e=[-1,-1,-1,-1,-1,-1,-1,-1,-1];if(a.B()&&b.B()){for(var f=0;9>f;f++)e[f]=-1;return this.jg(e,d)}f=!1;a.B()&&(a=b,f=!0);e[0]=-1;e[1]=-1;e[3]=-1;e[4]=-1;e[6]=-1;e[7]=-1;e[8]=2;b=a.K();g.ba.Jc(b)?
1736==b?0!=a.Je()?(e[2]=2,e[5]=1):(e[5]=-1,b=new g.l,a.A(b),e[2]=0==b.da()&&0==b.S()?0:1):(b=0!=a.Rb(),e[2]=b?1:0,e[5]=g.pi.cq(a)?0:-1):(e[2]=0,e[5]=-1);f&&this.qK(e);return this.jg(e,d)};c.GR=function(a,b,d){return c.bQ(a)?3:c.SP(a)?4:c.UX(a,b,d)?8:c.AP(a,b,d)?16:c.dP(a)?1:c.xU(a,b,d)?32:0};c.bQ=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"F"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"F"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};c.SP=function(a){return"F"==
a.charAt(0)&&"F"==a.charAt(1)&&"*"==a.charAt(2)&&"F"==a.charAt(3)&&"F"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};c.UX=function(a,b,d){if(0==b&&0==d)return!1;if(2!=b||2!=d)if("F"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"T"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)||1==b&&1==d&&"F"==a.charAt(0)&&"T"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&
"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8))return!0;return 0!=d&&"F"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"T"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};c.AP=function(a,b,d){return b>d?"T"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1:1==b&&1==d&&"0"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&
"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};c.dP=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};c.xU=function(a,b,d){if(b==d){if(1!=b)return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?
!0:!1;if("1"==a.charAt(0)&&"*"==a.charAt(1)&&"T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8))return!0}return!1};c.Gw=function(a,b,d){a=b.Ma(a);for(var e=b.Qe;-1!=e;e=b.Vf(e))if(0!=(b.zd(e)&a)){var f=b.Le(e);if(-1==f)b.pn(e,d,0);else{var h=f,k=0;do 0!=(b.gh(h)&a)&&k++,h=b.lc(b.ya(h));while(h!=f);b.pn(e,d,k)}}};c.aq=function(a){var b=""+a.charAt(0);b+=a.charAt(3);b+=a.charAt(6);b+=a.charAt(1);b+=a.charAt(4);b+=a.charAt(7);
b+=a.charAt(2);b+=a.charAt(5);return b+=a.charAt(8)};c.prototype.Yi=function(){for(var a=0;9>a;a++)this.J[a]=-2,this.$a[a]=-2};c.qK=function(a){var b=a[1],d=a[2],e=a[5];a[1]=a[3];a[2]=a[6];a[5]=a[7];a[3]=b;a[6]=d;a[7]=e};c.prototype.bj=function(a){this.Zc=a;for(a=0;9>a;a++)"*"!=this.Zc.charAt(a)?(this.fa[a]=!0,this.ne++):this.fa[a]=!1};c.prototype.PJ=function(){for(var a=0;9>a;a++)this.fa[a]&&-2==this.J[a]&&(this.J[a]=-1,this.fa[a]=!1)};c.prototype.qc=function(a){if(-2==this.J[a])return!1;if(-1==
this.J[a])return this.fa[a]=!1,this.ne--,!0;if("T"!=this.Zc.charAt(a)&&"F"!=this.Zc.charAt(a)){if(this.J[a]<this.$a[a])return!1;this.fa[a]=!1;this.ne--;return!0}this.fa[a]=!1;this.ne--;return!0};c.prototype.sJ=function(){this.sw=0;this.$a[0]=2;this.$a[1]=1;this.$a[2]=2;this.$a[3]=1;this.$a[4]=1;this.$a[5]=1;this.$a[6]=2;this.$a[7]=1;this.$a[8]=2;this.fa[8]&&(this.J[8]=2,this.fa[8]=!1,this.ne--)};c.prototype.xB=function(){this.sw=1;this.Um=3;this.$a[0]=1;this.$a[1]=0;this.$a[2]=2;this.$a[3]=1;this.$a[4]=
0;this.$a[5]=1;this.$a[6]=1;this.$a[7]=0;this.$a[8]=2;this.fa[8]&&(this.J[8]=2,this.fa[8]=!1,this.ne--)};c.prototype.VW=function(){this.sw=2;this.Um=4;this.$a[0]=1;this.$a[1]=0;this.$a[2]=1;this.$a[3]=0;this.$a[4]=0;this.$a[5]=0;this.$a[6]=1;this.$a[7]=0;this.$a[8]=2;this.fa[8]&&(this.J[8]=2,this.fa[8]=!1,this.ne--)};c.prototype.tJ=function(){this.Um=3;this.$a[0]=0;this.$a[1]=-1;this.$a[2]=2;this.$a[3]=0;this.$a[4]=-1;this.$a[5]=1;this.$a[6]=0;this.$a[7]=-1;this.$a[8]=2;this.fa[1]&&(this.J[1]=-1,
this.fa[1]=!1,this.ne--);this.fa[4]&&(this.J[4]=-1,this.fa[4]=!1,this.ne--);this.fa[7]&&(this.J[7]=-1,this.fa[7]=!1,this.ne--);this.fa[8]&&(this.J[8]=2,this.fa[8]=!1,this.ne--)};c.prototype.HJ=function(){this.Um=4;this.$a[0]=0;this.$a[1]=-1;this.$a[2]=1;this.$a[3]=0;this.$a[4]=-1;this.$a[5]=0;this.$a[6]=0;this.$a[7]=-1;this.$a[8]=2;this.fa[1]&&(this.J[1]=-1,this.fa[1]=!1,this.ne--);this.fa[4]&&(this.J[4]=-1,this.fa[4]=!1,this.ne--);this.fa[7]&&(this.J[7]=-1,this.fa[7]=!1,this.ne--);this.fa[8]&&(this.J[8]=
2,this.fa[8]=!1,this.ne--)};c.prototype.MJ=function(){this.Um=5;this.$a[0]=0;this.$a[1]=-1;this.$a[2]=0;this.$a[3]=-1;this.$a[4]=-1;this.$a[5]=-1;this.$a[6]=0;this.$a[7]=-1;this.$a[8]=2;this.fa[1]&&(this.J[1]=-1,this.fa[1]=!1,this.ne--);this.fa[3]&&(this.J[3]=-1,this.fa[3]=!1,this.ne--);this.fa[4]&&(this.J[4]=-1,this.fa[4]=!1,this.ne--);this.fa[5]&&(this.J[5]=-1,this.fa[5]=!1,this.ne--);this.fa[7]&&(this.J[7]=-1,this.fa[7]=!1,this.ne--);this.fa[8]&&(this.J[8]=2,this.fa[8]=!1,this.ne--)};c.prototype.wN=
function(a,b,d){var e=!0;this.fa[0]&&(this.wS(a,b,d),e=e&&this.qc(0));this.fa[1]&&(this.nG(a,b,1),e=e&&this.qc(1));this.fa[2]&&(this.oG(a,b,d,2),e=e&&this.qc(2));this.fa[3]&&(this.nG(a,d,3),e=e&&this.qc(3));this.fa[4]&&(this.AN(a,b,d),e=e&&this.qc(4));this.fa[5]&&(this.VD(a,d,5),e=e&&this.qc(5));this.fa[6]&&(this.oG(a,d,b,6),e=e&&this.qc(6));this.fa[7]&&(this.VD(a,b,7),e=e&&this.qc(7));return e};c.prototype.zu=function(a,b){this.J[0]=-1;this.J[1]=-1;this.J[3]=-1;this.J[4]=-1;this.Hr(a,this.fa[2]?
2:-1,this.Zc.charAt(2),this.fa[5]?5:-1,this.Zc.charAt(5));this.Hr(b,this.fa[6]?6:-1,this.Zc.charAt(6),this.fa[7]?7:-1,this.Zc.charAt(7))};c.prototype.Hr=function(a,b,d,e,f){if(-1!=b||-1!=e)("T"!=d&&"F"!=d&&-1!=b||"T"!=f&&"F"!=f&&-1!=e?0!=a.Je():1)?(-1!=b&&(this.J[b]=2),-1!=e&&(this.J[e]=1)):(-1!=e&&(this.J[e]=-1),-1!=b&&(d=new g.l,a.A(d),this.J[b]=0==d.da()&&0==d.S()?0:1))};c.prototype.by=function(a){this.J[2]=2;this.J[3]=-1;this.J[4]=-1;this.J[5]=1;this.J[6]=-1;this.J[7]=-1;this.Hr(a,this.fa[0]?
0:-1,this.Zc.charAt(0),this.fa[1]?1:-1,this.Zc.charAt(1))};c.prototype.PD=function(a){this.by(a);c.qK(this.J)};c.prototype.Au=function(a,b){this.J[0]=-1;this.J[1]=-1;this.J[3]=-1;this.J[4]=-1;if(this.fa[6]){var d=this.Zc.charAt(6);d="T"!=d&&"F"!=d?0!=b.Rb():!0;this.J[6]=d?1:0}this.fa[7]&&(b=g.pi.cq(b),this.J[7]=b?0:-1);this.Hr(a,this.fa[2]?2:-1,this.Zc.charAt(2),this.fa[5]?5:-1,this.Zc.charAt(5))};c.prototype.QD=function(a){if(this.fa[0]){var b=this.Zc.charAt(0);b="T"!=b&&"F"!=b?0!=a.Rb():!0;this.J[0]=
b?1:0}this.fa[1]&&(a=g.pi.cq(a),this.J[1]=a?0:-1);this.J[2]=2;this.J[3]=-1;this.J[4]=-1;this.J[5]=1;this.J[6]=-1;this.J[7]=-1};c.prototype.Bu=function(a){this.J[0]=-1;this.J[3]=-1;this.J[6]=0;this.Hr(a,this.fa[2]?2:-1,this.Zc.charAt(2),this.fa[5]?5:-1,this.Zc.charAt(5))};c.prototype.yN=function(){this.J[0]=0;this.J[2]=2;this.J[3]=-1;this.J[5]=1;this.J[6]=-1};c.prototype.KG=function(a,b){this.J[0]=-1;this.J[1]=-1;this.J[3]=-1;this.J[4]=-1;if(this.fa[2]){var d=this.Zc.charAt(2);d="T"!=d&&"F"!=d?0!=
a.Rb():!0;this.J[2]=d?1:0}this.fa[5]&&(a=g.pi.cq(a),this.J[5]=a?0:-1);this.fa[6]&&(d=this.Zc.charAt(6),d="T"!=d&&"F"!=d?0!=b.Rb():!0,this.J[6]=d?1:0);this.fa[7]&&(b=g.pi.cq(b),this.J[7]=b?0:-1)};c.prototype.Lz=function(a){this.J[0]=-1;this.J[3]=-1;if(this.fa[2]){var b=this.Zc.charAt(2);b="T"!=b&&"F"!=b?0!=a.Rb():!0;this.J[2]=b?1:0}this.fa[5]&&(a=g.pi.cq(a),this.J[5]=a?0:-1);this.J[6]=0};c.prototype.tI=function(){this.J[0]=-1;this.J[2]=0;this.J[6]=0};c.prototype.xN=function(a,b,d){var e=!0;this.fa[0]&&
(this.xS(a,b),e=e&&this.qc(0));this.fa[1]&&(this.tS(a,b,d,this.lh),e=e&&this.qc(1));this.fa[2]&&(this.uS(a,b),e=e&&this.qc(2));this.fa[3]&&(this.EN(a,b,d,this.lh),e=e&&this.qc(3));this.fa[4]&&(this.BN(a,b,d,this.lh),e=e&&this.qc(4));this.fa[5]&&(this.CN(a,b,d),e=e&&this.qc(5));this.fa[6]&&(this.jQ(a,b),e=e&&this.qc(6));this.fa[7]&&(this.iQ(a,b,d,this.lh),e=e&&this.qc(7));return e};c.prototype.fT=function(a,b,d){var e=!0;this.fa[0]&&(this.AS(a,b,d,this.Yh,this.lh),e=e&&this.qc(0));this.fa[1]&&(this.pG(a,
b,d,this.Yh,this.lh,1),e=e&&this.qc(1));this.fa[2]&&(this.qG(a,b,d,2),e=e&&this.qc(2));this.fa[3]&&(this.pG(a,d,b,this.lh,this.Yh,3),e=e&&this.qc(3));this.fa[4]&&(this.GN(a,b,d,this.Yh,this.lh),e=e&&this.qc(4));this.fa[5]&&(this.WD(a,d,this.Yh,5),e=e&&this.qc(5));this.fa[6]&&(this.qG(a,d,b,6),e=e&&this.qc(6));this.fa[7]&&(this.WD(a,b,this.lh,7),e=e&&this.qc(7));return e};c.prototype.RD=function(a,b,d){var e=!0;this.fa[0]&&(this.yS(a,b),e=e&&this.qc(0));this.fa[2]&&(this.vS(a,b),e=e&&this.qc(2));this.fa[3]&&
(this.FN(a,b,d),e=e&&this.qc(3));this.fa[5]&&(this.DN(a,b),e=e&&this.qc(5));this.fa[6]&&(this.kQ(a,b),e=e&&this.qc(6));return e};c.prototype.LG=function(a,b,d){var e=!0;this.fa[0]&&(this.BS(a,b,d,this.Yh),e=e&&this.qc(0));this.fa[2]&&(this.zS(a,d),e=e&&this.qc(2));this.fa[3]&&(this.IN(a,b,d,this.Yh),e=e&&this.qc(3));this.fa[5]&&(this.HN(a,b,d,this.Yh),e=e&&this.qc(5));this.fa[6]&&(this.lQ(a,b,d),e=e&&this.qc(6));return e};c.prototype.SU=function(a,b,d){var e=!0;this.fa[0]&&(this.CS(a,b,d),e=e&&this.qc(0));
this.fa[2]&&(this.rG(a,b,d,2),e=e&&this.qc(2));this.fa[6]&&(this.rG(a,d,b,6),e=e&&this.qc(6));return e};c.prototype.wS=function(a,b,d){2!=this.J[0]&&(a=this.j.cf(a),0!=(a&b)&&0!=(a&d)&&(this.J[0]=2))};c.prototype.nG=function(a,b,d){if(1!=this.J[d]){var e=this.j.cf(this.j.ya(a));0!=(this.j.cf(a)&b)&&0!=(e&b)&&(this.J[d]=1)}};c.prototype.oG=function(a,b,d,e){2!=this.J[e]&&(a=this.j.cf(a),0!=(a&b)&&0==(a&d)&&(this.J[e]=2))};c.prototype.AN=function(a,b,d){if(1!=this.J[4]){var e=this.j.gh(a);0!=(e&b)&&
0!=(e&d)?this.J[4]=1:0!=this.J[4]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)&&(a=this.j.zd(this.j.yf(a)),0!=(a&b)&&0!=(a&d)&&(this.J[4]=0))}};c.prototype.VD=function(a,b,d){if(1!=this.J[d]){var e=this.j.cf(this.j.ya(a));0==(this.j.cf(a)&b)&&0==(e&b)&&(this.J[d]=1)}};c.prototype.xS=function(a,b){if(1!=this.J[0]){var d=this.j.cf(this.j.ya(a));0!=(this.j.cf(a)&b)&&0!=(d&b)&&(this.J[0]=1)}};c.prototype.tS=function(a,b,d,e){if(0!=this.J[1]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)){var f=this.j.yf(a),
h=this.j.zd(f);0==(h&b)&&0!=(this.j.cf(a)&b)&&(a=this.j.rg(f,e),0!=(h&d)&&0!=a%2&&(this.J[1]=0))}};c.prototype.uS=function(a,b){2!=this.J[2]&&0!=(this.j.gh(a)&b)&&(this.J[2]=2)};c.prototype.EN=function(a,b,d,e){if(1!=this.J[3]){var f=this.j.gh(a);0!=(f&b)&&0!=(f&d)?this.J[3]=1:0!=this.J[3]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)&&(f=this.j.yf(a),a=this.j.zd(f),0!=(a&b)&&(b=this.j.rg(f,e),0!=(a&d)&&0==b%2&&(this.J[3]=0)))}};c.prototype.BN=function(a,b,d,e){if(0!=this.J[4]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),
this.Ui)){var f=this.j.yf(a);a=this.j.zd(f);0!=(a&b)&&(b=this.j.rg(f,e),0!=(a&d)&&0!=b%2&&(this.J[4]=0))}};c.prototype.CN=function(a,b,d){1!=this.J[5]&&(a=this.j.gh(a),0!=(a&b)&&0==(a&d)&&(this.J[5]=1))};c.prototype.jQ=function(a,b){if(1!=this.J[6]){var d=this.j.cf(this.j.ya(a));0==(this.j.cf(a)&b)&&0==(d&b)&&(this.J[6]=1)}};c.prototype.iQ=function(a,b,d,e){if(0!=this.J[7]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)){var f=this.j.yf(a),h=this.j.zd(f);0==(h&b)&&0==(this.j.cf(a)&b)&&(a=this.j.rg(f,
e),0!=(h&d)&&0!=a%2&&(this.J[7]=0))}};c.prototype.AS=function(a,b,d,e,f){if(1!=this.J[0]){var h=this.j.gh(a);0!=(h&b)&&0!=(h&d)?this.J[0]=1:0!=this.J[0]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)&&(a=this.j.yf(a),h=this.j.zd(a),0!=(h&b)&&0!=(h&d)&&(b=this.j.rg(a,e),f=this.j.rg(a,f),0==b%2&&0==f%2&&(this.J[0]=0)))}};c.prototype.pG=function(a,b,d,e,f,h){if(0!=this.J[h]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)){a=this.j.yf(a);var k=this.j.zd(a);0!=(k&b)&&0!=(k&d)&&(b=this.j.rg(a,e),f=this.j.rg(a,
f),0==b%2&&0!=f%2&&(this.J[h]=0))}};c.prototype.qG=function(a,b,d,e){1!=this.J[e]&&(a=this.j.gh(a),0!=(a&b)&&0==(a&d)&&(this.J[e]=1))};c.prototype.GN=function(a,b,d,e,f){if(0!=this.J[4]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)){a=this.j.yf(a);var h=this.j.zd(a);0!=(h&b)&&0!=(h&d)&&(b=this.j.rg(a,e),f=this.j.rg(a,f),0!=b%2&&0!=f%2&&(this.J[4]=0))}};c.prototype.WD=function(a,b,d,e){0!=this.J[e]&&1!=this.j.Bb(this.j.we(this.j.ya(a)),this.Ui)&&(a=this.j.yf(a),0==(this.j.zd(a)&b)&&0!=this.j.rg(a,
d)%2&&(this.J[e]=0))};c.prototype.yS=function(a,b){0!=this.J[0]&&0==(this.j.zd(a)&b)&&0!=(this.j.gk(this.j.Ty(a))&b)&&(this.J[0]=0)};c.prototype.vS=function(a,b){2!=this.J[2]&&0!=(this.j.zd(a)&b)&&(this.J[2]=2)};c.prototype.FN=function(a,b,d){0!=this.J[3]&&(a=this.j.zd(a),0!=(a&b)&&0!=(a&d)&&(this.J[3]=0))};c.prototype.DN=function(a,b){1!=this.J[5]&&0!=(this.j.zd(a)&b)&&(this.J[5]=1)};c.prototype.kQ=function(a,b){0!=this.J[6]&&0==(this.j.zd(a)&b)&&0==(this.j.gk(this.j.Ty(a))&b)&&(this.J[6]=0)};c.prototype.BS=
function(a,b,d,e){if(0!=this.J[0]){var f=this.j.zd(a);0!=(f&b)&&0!=(f&d)&&0==this.j.rg(a,e)%2&&(this.J[0]=0)}};c.prototype.zS=function(a,b){1!=this.J[2]&&(-1!=this.j.Le(a)?this.J[2]=1:0!=this.J[2]&&0==(this.j.zd(a)&b)&&(this.J[2]=0))};c.prototype.IN=function(a,b,d,e){if(0!=this.J[3]){var f=this.j.zd(a);0!=(f&b)&&0!=(f&d)&&0!=this.j.rg(a,e)%2&&(this.J[3]=0)}};c.prototype.HN=function(a,b,d,e){if(0!=this.J[5]){var f=this.j.zd(a);0!=(f&b)&&0==(f&d)&&0!=this.j.rg(a,e)%2&&(this.J[5]=0)}};c.prototype.lQ=
function(a,b,d){0!=this.J[6]&&(a=this.j.zd(a),0==(a&b)&&0!=(a&d)&&(this.J[6]=0))};c.prototype.CS=function(a,b,d){0!=this.J[0]&&(a=this.j.zd(a),0!=(a&b)&&0!=(a&d)&&(this.J[0]=0))};c.prototype.rG=function(a,b,d,e){0!=this.J[e]&&(a=this.j.zd(a),0!=(a&b)&&0==(a&d)&&(this.J[e]=0))};c.prototype.Dp=function(a,b){var d=!1;a=this.j.Ma(a);b=this.j.Ma(b);this.Ui=this.j.dh();for(var e=this.j.Qe;-1!=e;e=this.j.Vf(e)){var f=this.j.Le(e);if(-1==f){if(-1!=this.Um)switch(this.Um){case 3:d=this.RD(e,a,b);break;case 4:d=
this.LG(e,a,b);break;default:throw g.i.ga("internal error");}}else{var h=f;do{var k=h;if(1!=this.j.Bb(k,this.Ui)){do{switch(this.sw){case 0:d=this.wN(k,a,b);break;case 1:d=this.xN(k,a,b);break;case 2:d=this.fT(k,a,b);break;default:throw g.i.ga("internal error");}if(d)break;this.j.Kb(k,this.Ui,1);k=this.j.lc(k)}while(k!=h&&!d)}if(d)break;h=this.j.lc(this.j.ya(k))}while(h!=f);if(d)break}}d||this.PJ();this.j.Pg(this.Ui)};c.prototype.vy=function(a,b){var d=!1;a=this.j.Ma(a);b=this.j.Ma(b);for(var e=this.j.Qe;-1!=
e;e=this.j.Vf(e)){switch(this.Um){case 3:d=this.RD(e,a,b);break;case 4:d=this.LG(e,a,b);break;case 5:d=this.SU(e,a,b);break;default:throw g.i.Ra();}if(d)break}d||this.PJ()};c.prototype.gr=function(a,b){this.j.fr(a,b)};c.prototype.Xo=function(a,b,d){this.WP(a,b,d);this.gr(a,d)};c.prototype.WP=function(a,b,d){g.Sk.X(a,b,d,!1);a.Ip(0,!0,!0);for(b=a.md;-1!=b;b=a.xe(b))1736==a.kc(b)&&g.sn.X(a,b,-1,!1,d)};c.ME=function(a,b){var d=a.K();if(g.ba.Ad(d))return b=new g.Ua(a.description),b.pc(a,!0),b;if(197==
d){d=new g.l;a.A(d);if(d.da()<=b&&d.S()<=b)return b=new g.Ta(a.description),a.wf(b),b;if(d.da()<=b||d.S()<=b)return b=new g.Ua(a.description),d=new g.Ta,a.Lf(0,d),b.qf(d),a.Lf(2,d),b.lineTo(d),b;b=new g.Ea(a.description);b.cd(a,!1);return b}return a};return c}();g.bm=t})(y||(y={}));(function(g){var t=function(){function a(b){this.Gm=new g.ja(0);this.aw=new g.ja(0);this.st=new g.h;this.tt=new g.h;this.g=b;this.Es=-1}a.prototype.cc=function(b){return this.g.cc(this.oz(b))};a.prototype.yv=function(b){var d=
this.Zy(b);b=this.AF(b);if(this.g.Na(d)==b){var e=d;d=b;b=e}this.g.Ic(d,this.st);this.g.Ic(b,this.tt);return this.st.y<this.tt.y};a.prototype.oz=function(b){var d=this.Zy(b);b=this.AF(b);return this.g.W(d)==b?d:b};a.prototype.Zy=function(b){return this.Gm.get(b)};a.prototype.AF=function(b){return this.aw.get(b)};a.prototype.kF=function(b){this.Gm.set(b,this.Es);this.Es=b};a.prototype.iI=function(b){if(-1!=this.Es){var d=this.Es;this.Es=this.Gm.get(d);this.Gm.set(d,b);this.aw.set(d,this.g.W(b));return d}null==
this.Gm&&(this.Gm=new g.ja(0),this.aw=new g.ja(0));d=this.Gm.size;this.Gm.add(b);this.aw.add(this.g.W(b));return d};a.prototype.hz=function(b){return this.g.dd(this.Zy(b))};return a}();g.pY=t;var l=function(){function a(b){this.Ee=b;this.ke=new g.zb;this.Pm=new g.zb;this.xH=0;this.Bo=null;this.nA=-1}a.prototype.compare=function(b,d,e){e=b.ka(e);var f=this.Ee.hb;if(this.nA==d)var h=this.xH;else this.Bo=f.cc(d),null==this.Bo?(b=f.g,b.gd(f.oz(d),this.ke),this.Bo=this.ke,h=this.ke.Oe(this.Ee.zh,0)):h=
this.Bo.Oe(this.Ee.zh,0),this.xH=h,this.nA=d;b=f.cc(e);if(null==b){b=f.g;b.gd(f.oz(e),this.Pm);b=this.Pm;var k=this.Pm.Oe(this.Ee.zh,0)}else k=b.Oe(this.Ee.zh,0);h==k&&(d=f.yv(d),e=f.yv(e),e=Math.min(d?this.Bo.na:this.Bo.pa,e?b.na:b.pa),d=.5*(e+this.Ee.zh),d==this.Ee.zh&&(d=e),h=this.Bo.Oe(d,0),k=b.Oe(d,0));return h<k?-1:h>k?1:0};a.prototype.reset=function(){this.nA=-1};return a}(),c=function(){function a(){this.Ym=this.Hl=null;this.fb=new g.Xj;this.fb.PP();this.ce=new l(this);this.fb.Wo(this.ce)}
a.prototype.FQ=function(){var b=!1;this.cw&&(b=this.GQ());if(1==this.g.ea(this.$)){var d=this.g.Ob(this.$);b=this.g.lz(d);this.g.EB(d,!0);return 0>b?(b=this.g.Ya(d),this.g.kJ(b),this.g.$g(d,this.g.Na(b)),!0):!1}this.Fl=this.g.zy();this.xo=this.g.zy();for(d=this.g.Ob(this.$);-1!=d;d=this.g.Sb(d))this.g.ir(d,this.Fl,0),this.g.ir(d,this.xo,-1);d=new g.ja(0);this.zh=NaN;var e=new g.h;this.at=this.g.ea(this.$);this.so=this.g.Id();this.Os=this.g.Id();for(var f=this.Hl.tc(this.Hl.le);-1!=f;f=this.Hl.mb(f)){var h=
this.Hl.getData(f);this.g.Ic(h,e);e.y!=this.zh&&0!=d.size&&(b=this.qt(d)||b,this.ce.reset(),d.clear(!1));d.add(h);this.zh=e.y;if(0==this.at)break}0<this.at&&(b=this.qt(d)||b,d.clear(!1));this.g.Vd(this.so);this.g.Vd(this.Os);for(d=this.g.Ob(this.$);-1!=d;)if(3==this.g.sj(d,this.Fl)){this.g.EB(d,!0);e=d;for(d=this.g.sj(d,this.xo);-1!=d;)f=this.g.sj(d,this.xo),this.g.ST(this.$,this.g.Sb(e),d),e=d,d=f;d=this.g.Sb(e)}else this.g.EB(d,!1),d=this.g.Sb(d);this.g.rB(this.Fl);this.g.rB(this.xo);return b};
a.prototype.qt=function(b){return this.TV(b)};a.prototype.TV=function(b){var d=!1;null==this.hb&&(this.hb=new t(this.g));null==this.Ym?(this.Ym=new g.ja(0),this.Ym.Jb(16)):this.Ym.clear(!1);this.SV(b);for(var e=0,f=b.size;e<f;e++){var h=b.get(e);-1!=h&&this.jG(h,-1)}for(e=0;e<this.Ym.size&&0<this.at;e++)if(b=this.Ym.get(e),h=this.hb.hz(this.fb.ka(b)),f=-1,0==this.g.sj(h,this.Fl)){h=this.fb.ze(b);for(var k=b,m;-1!=h;){var n=this.fb.ka(h),p=this.hb.hz(n),q=this.g.sj(p,this.Fl);if(0!=q){f=p;break}k=
h;h=this.fb.ze(h)}-1==h?(m=!0,h=k):(n=this.fb.ka(h),m=this.hb.yv(n),h=this.fb.mb(h),m=!m);do{n=this.fb.ka(h);p=this.hb.hz(n);q=this.g.sj(p,this.Fl);if(0==q&&(m!=this.hb.yv(n)&&(d=this.g.Ya(p),this.g.kJ(d),this.g.$g(p,this.g.Na(d)),d=!0),this.g.ir(p,this.Fl,m?3:2),m||(k=this.g.sj(f,this.xo),this.g.ir(f,this.xo,p),this.g.ir(p,this.xo,k)),this.at--,0==this.at))return d;f=p;k=h;h=this.fb.mb(h);m=!m}while(k!=b)}return d};a.prototype.SV=function(b){for(var d=0,e=b.size;d<e;d++){var f=b.get(d),h=this.g.Qa(f,
this.so),k=this.g.Qa(f,this.Os);if(-1!=h){var m=this.fb.ka(h);this.hb.kF(m);this.g.Sa(f,this.so,-1)}-1!=k&&(m=this.fb.ka(k),this.hb.kF(m),this.g.Sa(f,this.Os,-1));m=-1;-1!=h&&-1!=k?(this.fb.xd(h,-1),this.fb.xd(k,-1),b.set(d,-1)):m=-1!=h?h:k;-1!=m&&(this.jG(f,m)||this.fb.xd(m,-1),b.set(d,-1))}};a.prototype.jG=function(b,d){var e=new g.h,f=new g.h;this.g.Ic(b,e);var h=this.g.W(b);this.g.Ic(h,f);var k=!1;if(e.y<f.y){k=!0;var m=this.hb.iI(b);if(-1==d)var n=this.fb.addElement(m,-1);else n=d,this.fb.Sj(n,
m);m=this.g.Qa(h,this.so);-1==m?this.g.Sa(h,this.so,n):this.g.Sa(h,this.Os,n);h=this.g.dd(b);0==this.g.sj(h,this.Fl)&&this.Ym.add(n)}h=this.g.Na(b);this.g.Ic(h,f);e.y<f.y&&(k=!0,m=this.hb.iI(h),-1==d?n=this.fb.addElement(m,-1):(n=d,this.fb.Sj(n,m)),m=this.g.Qa(h,this.so),-1==m?this.g.Sa(h,this.so,n):this.g.Sa(h,this.Os,n),h=this.g.dd(b),0==this.g.sj(h,this.Fl)&&this.Ym.add(n));return k};a.X=function(b,d,e,f){var h=new a;h.g=b;h.$=d;h.Hl=e;h.cw=f;return h.FQ()};a.prototype.GQ=function(){var b=new g.ja(0),
d=new g.ja(0),e=-1,f=-1,h=new g.h;h.Uc();for(var k=-1,m=-1,n=-1,p=new g.h,q=this.Hl.tc(this.Hl.le);-1!=q;q=this.Hl.mb(q)){var r=this.Hl.getData(q);this.g.Ic(r,p);var u=this.g.dd(r);h.sb(p)&&m==u?(-1==f&&(e=this.g.zy(),f=this.g.Id()),-1==n&&(n=d.size,this.g.Sa(k,f,n),d.add(1),-1==this.g.sj(u,e)&&(this.g.ir(u,e,k),b.add(u))),this.g.Sa(r,f,n),d.SW(d.Hc()+1)):(n=-1,h.N(p));k=r;m=u}if(0==b.size)return!1;h=new g.ja(0);k=new g.ja(0);m=0;for(n=b.size;m<n;m++){u=b.get(m);var v=this.g.sj(u,e);r=this.g.Qa(v,
f);h.clear(!1);k.clear(!1);h.add(v);k.add(r);for(r=this.g.W(v);r!=v;r=this.g.W(r)){var w=r;p=this.g.Qa(w,f);if(-1!=p)if(0==k.size)k.add(p),h.add(w);else if(k.Hc()==p){q=h.Hc();var z=this.g.W(q);v=this.g.W(w);this.g.Dc(q,v);this.g.Ec(v,q);this.g.Dc(w,z);this.g.Ec(z,w);w=[!1];z=this.g.iG(this.$,z,this.g.Ya(u),w);this.g.Sa(r,f,-1);w[0]&&this.g.Nf(u,v);r=this.g.Ka(u);v=this.g.Ka(z);r-=v;this.g.Vj(u,r);d.set(p,d.get(p)-1);1==d.get(p)&&(d.set(p,0),k.Mf(),h.Mf());r=v=q}else h.add(r),k.add(p)}}this.g.rB(e);
this.g.Vd(f);return!0};return a}();g.RL=c})(y||(y={}));(function(g){var t=function(){function l(){}l.prototype.lg=function(){this.EA=this.ub=null};l.prototype.get=function(){return this.EA};l.prototype.set=function(c){this.EA=c;if(null!=c)throw 322==c.K()&&(this.ub=c),g.i.Ra();};l.prototype.create=function(c){if(322==c)this.Pr();else throw g.i.ga("Not Implemented");};l.prototype.Pr=function(){null==this.ub&&(this.ub=new g.zb);this.EA=this.ub};return l}();g.lg=t})(y||(y={}));(function(g){g=g.SL||(g.SL=
{});g[g.enumLineSeg=1]="enumLineSeg";g[g.enumBezierSeg=2]="enumBezierSeg";g[g.enumArcSeg=4]="enumArcSeg";g[g.enumNonlinearSegmentMask=6]="enumNonlinearSegmentMask";g[g.enumSegmentMask=7]="enumSegmentMask";g[g.enumDensified=8]="enumDensified"})(y||(y={}));(function(g){var t=function(){return function(c){this.$i=c;this.eC=this.fC=1;this.hB=this.gB=this.iB=0}}(),l=function(){function c(){this.Hq=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.Ak=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.Ff=new g.Ta;this.ra=this.zw=
0;this.no=[];this.Xs=[];this.vw=[];this.Kq=[];this.BA=[]}c.prototype.lB=function(a){if(null!=a){for(var b=0,d=a.length;b<d;b++)this.kW(a[b]);a.length=0}};c.prototype.kW=function(a){a.$i=null;this.Kq.push(a)};c.prototype.Lw=function(a){if(0===this.Kq.length)var b=new t(a);else b=this.Kq[this.Kq.length-1],b.$i=a,--this.Kq.length;return b};c.prototype.MR=function(a,b){return 0==a?this.Xs[b]:this.vw[b]};c.prototype.QA=function(){this.zw>=this.BA.length&&this.BA.push(new g.lg);var a=this.BA[this.zw];this.zw++;
return a};c.prototype.clear=function(){this.lB(this.no);this.lB(this.Xs);this.lB(this.vw);this.zw=0};c.prototype.Po=function(a){this.no.push(this.Lw(a))};c.prototype.pl=function(a){return 0==a?this.Xs.length:this.vw.length};c.prototype.Xp=function(a,b){return this.MR(a,b).$i};c.prototype.Fa=function(a,b){if(2!=this.no.length)throw g.i.Ra();this.ra=a;var d=g.oc.jx(.01*a),e=!1,f=this.no[0],h=this.no[1];if(b||0!=(f.$i.Br(h.$i,a,!0)&5)){if(322==f.$i.K()){var k=f.$i;if(322==h.$i.K()){b=h.$i;var m=g.zb.Sx(k,
b,null,this.Hq,this.Ak,a);if(0==m)throw g.zb.Sx(k,b,null,this.Hq,this.Ak,a),g.i.Ra();a=Array(9);g.P.Xu(a,null);for(var n=0;n<m;n++){var p=this.Hq[n],q=this.Ak[n],r=f.hB,u=1;0==p?(r=f.iB,u=f.fC):1==p&&(r=f.gB,u=f.eC);var v=h.hB,w=1;0==q?(v=h.iB,w=h.fC):1==q&&(v=h.gB,w=h.eC);var z=new g.h;r==v?(r=new g.h,k.jc(p,r),p=new g.h,b.jc(q,p),q=u+w,w/=q,g.oc.JG(r,p,w,z),g.h.Ac(z,r)+g.h.Ac(z,p)>d&&(e=!0)):r>v?(k.jc(p,z),p=new g.h,b.jc(q,p),g.h.Ac(z,p)>d&&(e=!0)):(b.jc(q,z),r=new g.h,k.jc(p,r),g.h.Ac(z,r)>d&&
(e=!0));a[n]=z}f=0;h=-1;for(n=0;n<=m;n++)w=n<m?this.Hq[n]:1,w!=f&&(d=this.QA(),k.eh(f,w,d),-1!=h&&d.get().Fc(a[h]),n!=m&&d.get().Tc(a[n]),f=w,this.Xs.push(this.Lw(d.get()))),h=n;k=[0,0,0,0,0,0,0,0,0];for(n=0;n<m;n++)k[n]=n;1<m&&this.Ak[0]>this.Ak[1]&&(w=this.Ak[0],this.Ak[0]=this.Ak[1],this.Ak[1]=w,n=k[0],k[0]=k[1],k[1]=n);f=0;h=-1;for(n=0;n<=m;n++)w=n<m?this.Ak[n]:1,w!=f&&(d=this.QA(),b.eh(f,w,d),-1!=h&&(f=k[h],d.get().Fc(a[f])),n!=m&&(f=k[n],d.get().Tc(a[f])),f=w,this.vw.push(this.Lw(d.get()))),
h=n;return e}}throw g.i.Ra();}return!1};c.prototype.Az=function(a,b,d){b.copyTo(this.Ff);if(1!=this.no.length)throw g.i.Ra();this.ra=a;var e=this.no[0];if(d||e.$i.ou(b.D(),a,!0))if(322==e.$i.K()){a=e.$i;var f=a.he(b.D(),!1);this.Hq[0]=f;var h=e.hB;d=1;0==f?(h=e.iB,d=e.fC):1==f&&(h=e.gB,d=e.eC);e=new g.h;0==h?(h=new g.h,a.jc(f,h),b=b.D(),g.oc.JG(h,b,1/(d+1),e)):0<h?(e=new g.h,a.jc(f,e)):e=b.D();d=0;f=-1;for(h=0;1>=h;h++){b=1>h?this.Hq[h]:1;if(b!=d){var k=this.QA();a.eh(d,b,k);-1!=f&&k.get().Fc(e);
1!=h&&k.get().Tc(e);d=b;this.Xs.push(this.Lw(k.get()))}f=h}this.Ff.Db(e)}else throw g.i.Ra();};return c}();g.GC=l})(y||(y={}));(function(g){var t=function(){function l(c){this.As=this.qk=this.ub=null;this.eg=0;this.Bm=!1;this.Df=-1;this.Dl=this.Ld=0;this.gb=-1;this.ib=c;this.eg=this.Px(this.Dl);this.Bm=!1;this.qk=null;this.As=new g.h}l.prototype.uW=function(c){if(this.ib!=c.ib)throw g.i.Hb();this.Df=c.Df;this.Ld=c.Ld;this.gb=c.gb;this.Dl=c.Dl;this.eg=c.eg;this.Bm=c.Bm;this.qk=null};l.prototype.ia=
function(){this.Df!=this.Ld&&this.rD();if(this.Bm)this.Ld=(this.Ld+1)%this.eg;else{if(this.Ld==this.eg)throw g.i.te();this.Ld++}return this.qk};l.prototype.li=function(){if(this.Bm)this.Ld=(this.eg+this.Ld-1)%this.eg;else{if(0==this.Ld)throw g.i.te();this.Ld--}this.Ld!=this.Df&&this.rD();return this.qk};l.prototype.vW=function(){this.Df=-1;this.Ld=0};l.prototype.wW=function(){this.Ld=this.eg;this.Df=-1};l.prototype.Wb=function(c,a){void 0===a&&(a=-1);if(0<=this.gb&&this.gb<this.ib.ea()){var b=this.FM();
if(c>=b&&c<this.ib.Xc(this.gb)){this.Df=-1;this.Ld=c-b;return}}a=0<=a&&a<this.ib.ea()&&c>=this.ib.Ca(a)&&c<this.ib.Xc(a)?a:this.ib.iz(c);this.Dl=a+1;this.gb=a;this.Df=-1;this.Ld=c-this.ib.Ca(a);this.eg=this.Px(a);this.ib.Ca(this.gb);this.ib.ec(this.gb)};l.prototype.ab=function(){this.gb=this.Dl;if(this.gb>=this.ib.ea())return!1;this.Df=-1;this.Ld=0;this.eg=this.Px(this.gb);this.ib.Ca(this.gb);this.ib.ec(this.gb);this.Dl++;return!0};l.prototype.Zi=function(){this.eg=this.Ld=this.Df=-1;this.Dl=0;this.gb=
-1};l.prototype.Px=function(c){if(this.ib.Cc())return 0;var a=1;this.ib.ec(c)&&(a=0);return this.ib.Ka(c)-a};l.prototype.Pn=function(){return this.Df==this.eg-1&&this.ib.ec(this.gb)};l.prototype.yB=function(){this.Bm=!0};l.prototype.xb=function(){return this.ib.ob.o[this.gb]+this.Df};l.prototype.FM=function(){return this.ib.Ca(this.gb)};l.prototype.hk=function(){return this.Pn()?this.ib.Ca(this.gb):this.xb()+1};l.prototype.xm=function(){return 0==this.Df};l.prototype.Rn=function(){return this.Df==
this.eg-1};l.prototype.Ia=function(){return this.Ld<this.eg};l.prototype.uz=function(){return 0<this.Ld};l.prototype.Sf=function(){var c=new l(this.ib);c.Df=this.Df;c.Ld=this.Ld;c.eg=this.eg;c.gb=this.gb;c.Dl=this.Dl;c.ib=this.ib;c.Bm=this.Bm;return c};l.prototype.rD=function(){if(0>this.Ld||this.Ld>=this.eg)throw g.i.te();this.Df=this.Ld;var c=this.xb();this.ib.sc();var a=this.ib.Ue,b=1;null!=a&&(b=a.read(c)&7);a=this.ib.description;switch(b){case 1:null==this.ub&&(this.ub=new g.zb);this.qk=this.ub;
break;case 2:throw g.i.ga("internal error");case 4:throw g.i.Ra();default:throw g.i.Ra();}this.qk.og(a);b=this.hk();this.ib.Ic(c,this.As);this.qk.Fc(this.As);this.ib.Ic(b,this.As);this.qk.Tc(this.As);for(var d=1,e=a.Ba;d<e;d++)for(var f=a.rd(d),h=g.va.Wa(f),k=0;k<h;k++){var m=this.ib.Wc(f,c,k);this.qk.MB(f,k,m);m=this.ib.Wc(f,b,k);this.qk.DB(f,k,m)}};l.prototype.TS=function(){return this.gb==this.ib.ea()-1};l.prototype.Qn=function(){var c=this.ib.PR();return null!=c?1!=(c.read(this.Df)&7):!1};return l}();
g.TL=t})(y||(y={}));(function(g){var t=function(){function l(c){c instanceof g.ba?(this.sH=c,this.za=-1,this.Ei=1):(this.nT=c.slice(0),this.za=-1,this.Ei=c.length)}l.prototype.Ma=function(){return this.za};l.prototype.next=function(){return this.za<this.Ei-1?(this.za++,null!=this.sH?this.sH:this.nT[this.za]):null};l.prototype.se=function(){};return l}();g.ad=t})(y||(y={}));(function(g){var t=function(){return function(){this.next=null}}(),l=function(){function c(){this.Vq=this.Hw=this.Iw=0;this.bF=
!1;this.bK=0;this.jn=this.Of=this.Xl=this.Jh=null;this.Pl=0;this.ky=null;this.ql=this.oi=-1}c.prototype.rX=function(a,b,d){this.oi=a;this.ql=b;this.Jh=this.Xl=null;this.Vq=0;this.ky=d;null==this.jn&&(this.jn=g.P.pg(384,0));this.iK()};c.prototype.S=function(){return this.oi};c.prototype.da=function(){return this.ql};c.prototype.flush=function(){0<this.Pl&&(this.ky.YE(this.jn,this.Pl),this.Pl=0)};c.prototype.iK=function(){if(0<this.Vq){for(var a=0;a<this.ql;a++){for(var b=this.Xl[a];null!=b;){var d=
b;b=b.next;d.next=null}this.Xl[a]=null}this.Jh=null}this.Iw=this.ql;this.Hw=-1;this.Vq=0};c.prototype.dJ=function(a){this.bF=a==c.wx;for(a=this.Iw;a<=this.Hw;a++)this.rN(),this.kN(a),this.XP();this.iK()};c.prototype.$x=function(a,b,d,e){if(b!=e){var f=1;b>e&&(f=a,a=d,d=f,f=b,b=e,e=f,f=-1);if(!(0>e||b>=this.ql)){0>a&&0>d?d=a=-1:a>=this.oi&&d>=this.oi&&(d=a=this.oi);var h=(d-a)/(e-b);e>this.ql&&(e=this.ql,d=h*(e-b)+a);0>b&&(a=h*(0-b)+a,b=0);var k=Math.max(this.oi+1,8388607);-8388607>a?(b=(0-a)/h+b,
a=0):a>k&&(b=(this.oi-a)/h+b,a=this.oi);-8388607>d?e=(0-a)/h+b:d>k&&(e=(this.oi-a)/h+b);b=g.P.truncate(b);e=g.P.truncate(e);b!=e&&(d=new t,d.x=g.P.truncate(4294967296*a),d.y=b,d.H=e,d.UP=g.P.truncate(4294967296*h),d.dir=f,null==this.Xl&&(this.Xl=g.P.pg(this.ql,null)),d.next=this.Xl[d.y],this.Xl[d.y]=d,d.y<this.Iw&&(this.Iw=d.y),d.H>this.Hw&&(this.Hw=d.H),this.Vq++)}}};c.prototype.rN=function(){if(null!=this.Jh){for(var a=!1,b=null,d=this.Jh;null!=d;)if(d.y++,d.y==d.H){var e=d;d=d.next;null!=b?b.next=
d:this.Jh=d;e.next=null}else d.x+=d.UP,null!=b&&b.x>d.x&&(a=!0),b=d,d=d.next;a&&(this.Jh=this.aK(this.Jh))}};c.prototype.kN=function(a){if(!(a>=this.ql)){var b=this.Xl[a];if(null!=b){this.Xl[a]=null;b=this.aK(b);this.Vq-=this.bK;a=this.Jh;for(var d=!0,e=b,f=null;null!=a&&null!=e;)a.x>e.x?(d&&(this.Jh=e),d=e.next,e.next=a,null!=f&&(f.next=e),f=e,e=d):(d=a.next,a.next=e,null!=f&&(f.next=a),f=a,a=d),d=!1;null==this.Jh&&(this.Jh=b)}}};c.$J=function(a,b){return 0>a?0:a>b?b:a};c.prototype.XP=function(){if(null!=
this.Jh)for(var a=0,b=this.Jh,d=g.P.truncate(g.P.SG(b.x)),e=b.next;null!=e;e=e.next)if(a=this.bF?a^1:a+e.dir,e.x>b.x){var f=g.P.truncate(g.P.SG(e.x));0!=a&&(b=c.$J(d,this.oi),d=c.$J(f,this.oi),d>b&&b<this.oi&&(this.jn[this.Pl++]=b,this.jn[this.Pl++]=d,this.jn[this.Pl++]=e.y,this.Pl==this.jn.length&&(this.ky.YE(this.jn,this.Pl),this.Pl=0)));b=e;d=f}};c.prototype.aK=function(a){for(var b=0,d=a;null!=d;d=d.next)b++;this.bK=b;if(1==b)return a;null==this.Of?this.Of=g.P.pg(Math.max(b,16),null):this.Of.length<
b&&(this.Of=g.P.pg(Math.max(b,2*this.Of.length),null));var e=0;for(d=a;null!=d;d=d.next)this.Of[e++]=d;2==b?this.Of[0].x>this.Of[1].x&&(a=this.Of[0],this.Of[0]=this.Of[1],this.Of[1]=a):c.zN(this.Of,b,function(f,h){return f==h?0:f.x<h.x?-1:f.x>h.x?1:0});a=this.Of[0];this.Of[0]=null;d=a;for(e=1;e<b;e++)d.next=this.Of[e],d=this.Of[e],this.Of[e]=null;d.next=null;return a};c.zN=function(a,b,d){if(b==a.length)a.sort(d);else{var e=a.slice(0,0),f=a.slice(b);b=a.slice(0,b).sort(d);a.length=0;a.push.apply(a,
e.concat(b).concat(f))}};c.wx=0;return c}();g.Ix=l})(y||(y={}));(function(g){var t=function(){function l(){}l.prototype.ui=function(c,a){var b=this.g.Qa(c,this.Rq);this.El==b&&(this.El=this.qe.mb(this.El));this.io==b&&(this.io=this.qe.mb(this.io));this.qe.ld(this.GA,b);this.ak(c);if(a&&(a=this.g.dd(c),-1!=a&&this.g.Ya(a)==c)){var d=this.g.W(c);if(d!=c){b=this.g.dd(d);if(b==a){this.g.Nf(a,d);return}d=this.g.Na(c);if(d!=c&&(b=this.g.dd(d),b==a)){this.g.Nf(a,d);return}}this.g.Nf(a,-1);this.g.$g(a,-1)}};
l.prototype.fD=function(){for(var c=!1,a=0,b=new g.h;;){a++;null==this.Wh?(this.Wh=new g.ja(0),this.ws=new g.ja(0),this.Ae=new g.ja(0)):(this.Wh.clear(!1),this.ws.clear(!1),this.Ae.clear(!1));for(var d=this.io,e=0,f=!0;d!=this.El;){var h=this.qe.getData(d),k=new g.h;this.g.Ic(h,k);f&&(this.g.Ic(h,b),f=!1);k=this.g.Na(h);var m=this.g.W(h);-559038737!=this.g.Qa(k,this.Eg)&&(this.Wh.add(k),this.g.Sa(k,this.Eg,-559038737),this.ws.add(h),this.Ae.add(e++));-559038737!=this.g.Qa(m,this.Eg)&&(this.Wh.add(m),
this.g.Sa(m,this.Eg,-559038737),this.ws.add(h),this.Ae.add(e++));d=this.qe.mb(d)}if(2>this.Wh.size)break;var n=this;this.Ae.Xd(0,this.Ae.size,function(p,q){return n.jM(p,q)});d=0;for(e=this.Ae.size;d<e;d++)f=this.Ae.get(d),f=this.Wh.get(f),this.g.Sa(f,this.Eg,d),k=new g.h,this.g.Ic(f,k);k=this.RM(b);d=0;for(e=this.Ae.size;d<e;d++)f=this.Ae.get(d),-1!=f&&(f=this.Wh.get(f),this.g.Sa(f,this.Eg,-1));if(k)c=!0;else break}return c};l.prototype.RM=function(c){for(var a=!1,b=!0;b;){b=!1;var d=0;-1==this.Ae.get(d)&&
(d=this.em(d));for(var e=this.em(d),f=0,h=this.Ae.size;f<h&&-1!=d&&-1!=e&&d!=e;f++){var k=this.Ae.get(d);e=this.Ae.get(e);k=this.Wh.get(k);e=this.Wh.get(e);var m=this.g.W(k);this.g.Av(m,c)||(m=this.g.Na(k));var n=this.g.W(e);this.g.Av(n,c)||(n=this.g.Na(e));var p=this.mu(m,k),q=this.mu(n,e),r=p?this.g.Na(m):this.g.W(m),u=q?this.g.Na(n):this.g.W(n),v=!1;this.tp(m)?v=!0:this.tp(n)?v=!0:this.tp(k)?v=!0:this.tp(e)?v=!0:this.tp(r)?v=!0:this.tp(u)&&(v=!0);!v&&this.g.hq(k,e)&&(v=!0,this.jD(p,q,m,k,n,e));
!v&&this.g.hq(r,u)&&(v=!0,this.jD(!p,!q,m,r,n,u));v&&(a=!0);b=b||v;d=this.em(d);e=this.em(d)}}if(!a)for(d=0,-1==this.Ae.get(d)&&(d=this.em(d)),e=this.em(d),f=0,h=this.Ae.size;f<h&&-1!=d&&-1!=e&&d!=e;f++)k=this.Ae.get(d),e=this.Ae.get(e),k=this.Wh.get(k),e=this.Wh.get(e),m=this.g.W(k),this.g.Av(m,c)||(m=this.g.Na(k)),n=this.g.W(e),this.g.Av(n,c)||(n=this.g.Na(e)),p=this.mu(m,k),q=this.mu(n,e),r=p?this.g.Na(m):this.g.W(m),u=q?this.g.Na(n):this.g.W(n),this.zM(p,q,k,m,r,e,n,u)&&(a=!0),d=this.em(d),e=
this.em(d);return a};l.prototype.VM=function(){1736==this.g.kc(this.$)&&1==this.g.In(this.$)&&(new g.Lg).FU(this.cw,this.g,this.$,this.od);var c=!1,a=!0;this.Eg=this.Rq=-1;var b=this.g.I(this.$),d=new g.ja(0);d.Jb(b);for(var e=this.g.Ob(this.$);-1!=e;e=this.g.Sb(e))for(var f=this.g.Ya(e),h=0,k=this.g.Ka(e);h<k;h++)d.add(f),f=this.g.W(f);var m=this.g.vd.o,n=this.g.vd.Pf;this.g.wb.sc();var p=this.g.wb.Aa[0].o;d.Xd(0,b,function(r,u){var v=m[n*r],w=m[n*u],z=p[2*v];v=p[2*v+1];var x=p[2*w];w=p[2*w+1];z=
v<w?-1:v>w?1:z<x?-1:z>x?1:0;0==z&&(r=m[n*r+3],u=m[n*u+3],z=r<u?-1:r==u?0:1);return z});this.Rq=this.g.Id();this.qe=new g.lp;this.GA=this.qe.Ph(0);this.qe.hn(b);for(e=0;e<b;e++)f=d.get(e),h=this.qe.addElement(this.GA,f),this.g.Sa(f,this.Rq,h);this.Eg=this.g.Id();this.El=-1;for(this.SC()&&(c=!0);a;){a=!1;b=0;d=!1;do{d=!1;this.io=-1;k=0;e=new g.h;h=new g.h;for(var q=this.qe.tc(this.GA);-1!=q;)f=this.qe.getData(q),-1!=this.io?(this.g.Ic(f,h),e.sb(h))?k++:(e.N(h),this.El=q,0<k&&(f=this.fD())&&(d=!0,-1!=
this.El&&(f=this.qe.getData(this.El),this.g.Ic(f,e))),this.io=q=this.El,k=0):(this.io=q,this.g.Ic(this.qe.getData(q),e),k=0),-1!=q&&(q=this.qe.mb(q));this.El=-1;0<k&&(f=this.fD())&&(d=!0);if(10<b++)throw g.i.Ra();d&&this.DM();this.SC()&&(d=!0);a=a||d&&!1;c=c||d}while(d)}this.g.Vd(this.Rq);this.g.Vd(this.Eg);return c=g.RL.X(this.g,this.$,this.qe,this.cw)||c};l.prototype.mu=function(c,a){return this.g.W(a)==c?!1:!0};l.prototype.zM=function(c,a,b,d,e,f,h,k){if(d==h)return this.ak(b),this.ak(f),!1;var m=
this.g.Qa(b,this.Eg),n=this.g.Qa(e,this.Eg),p=this.g.Qa(f,this.Eg),q=this.g.Qa(k,this.Eg);b=[0,0,0,0,0,0,0,0];var r=[0,0,0,0];b[0]=0;r[0]=m;b[1]=0;r[1]=n;b[2]=1;r[2]=p;b[3]=1;r[3]=q;for(m=1;4>m;m++){n=r[m];p=b[m];for(q=m-1;0<=q&&r[q]>n;)r[q+1]=r[q],b[q+1]=b[q],q--;r[q+1]=n;b[q+1]=p}r=0;0!=b[0]&&(r|=1);0!=b[1]&&(r|=2);0!=b[2]&&(r|=4);0!=b[3]&&(r|=8);if(5!=r&&10!=r)return!1;c==a?c?(this.g.Dc(k,d),this.g.Ec(d,k),this.g.Dc(e,h),this.g.Ec(h,e)):(this.g.Ec(k,d),this.g.Dc(d,k),this.g.Ec(e,h),this.g.Dc(h,
e)):c?(this.g.Ec(d,f),this.g.Dc(f,d),this.g.Ec(h,e),this.g.Dc(e,h)):(this.g.Dc(d,f),this.g.Ec(f,d),this.g.Dc(h,e),this.g.Ec(e,h));return!0};l.prototype.jD=function(c,a,b,d,e,f){this.DY?this.TM():this.SM(c,a,b,d,e,f)};l.prototype.TM=function(){throw g.i.ga("not implemented.");};l.prototype.SM=function(c,a,b,d,e,f){if(c!=a)c?(this.g.Dc(b,e),this.g.Ec(e,b),this.g.Dc(f,d),this.g.Ec(d,f),this.vn(e,b),this.ui(e,!0),this.g.mi(e,!0),this.ak(b),this.vn(f,d),this.ui(f,!0),this.g.mi(f,!1)):(this.g.Dc(e,b),this.g.Ec(b,
e),this.g.Dc(d,f),this.g.Ec(f,d),this.vn(e,b),this.ui(e,!0),this.g.mi(e,!1),this.ak(b),this.vn(f,d),this.ui(f,!0),this.g.mi(f,!0)),this.ak(d);else{var h=c?b:d,k=a?e:f;c=c?d:b;a=a?f:e;e=!1;this.g.Dc(h,k);this.g.Dc(k,h);this.g.Ec(c,a);this.g.Ec(a,c);for(f=a;f!=k;)b=this.g.Na(f),d=this.g.W(f),this.g.Ec(f,d),this.g.Dc(f,b),e=e||f==h,f=d;e||(b=this.g.Na(k),d=this.g.W(k),this.g.Ec(k,d),this.g.Dc(k,b));this.vn(k,h);this.ui(k,!0);this.g.mi(k,!1);this.ak(h);this.vn(a,c);this.ui(a,!0);this.g.mi(a,!1);this.ak(c)}};
l.prototype.SC=function(){for(var c=!1,a=this.g.Ob(this.$);-1!=a;){for(var b=this.g.Ya(a),d=0,e=this.g.Ka(a);d<e&&1<e;){var f=this.g.Na(b),h=this.g.W(b);this.g.hq(f,h)?(c=!0,this.ui(b,!1),this.g.qd(b,!0),this.ui(h,!1),this.g.qd(h,!0),b=f,d=0,e=this.g.Ka(a)):(b=h,d++)}if(2>this.g.Ka(a)){c=this.g.Ya(a);d=0;for(e=this.g.Ka(a);d<e;d++)this.ui(c,!1),c=this.g.W(c);a=this.g.ar(a);c=!0}else a=this.g.Sb(a)}return c};l.prototype.tp=function(c){for(var a=!1;;){var b=this.g.W(c),d=this.g.Na(c);if(b==c)return this.ui(c,
!0),this.g.mi(c,!1),!0;if(!this.g.hq(b,d))break;a=!0;this.ak(d);this.ak(b);this.ui(c,!0);this.g.mi(c,!1);this.vn(b,d);this.ui(b,!0);this.g.mi(b,!0);if(b==d)break;c=d}return a};l.prototype.DM=function(){for(var c=0,a=this.qe.tc(this.qe.le);-1!=a;a=this.qe.mb(a)){var b=this.qe.getData(a);this.g.aj(b,-1)}for(var d=0,e=this.g.Ob(this.$);-1!=e;)if(a=this.g.Ya(e),-1==a||-1!=this.g.dd(a))b=e,e=this.g.Sb(e),this.g.br(b);else{this.g.aj(a,e);var f=1;for(b=this.g.W(a);b!=a;b=this.g.W(b))this.g.aj(b,e),f++;this.g.ep(e,
!1);this.g.Vj(e,f);this.g.$g(e,this.g.Na(a));d+=f;c++;e=this.g.Sb(e)}for(a=this.qe.tc(this.qe.le);-1!=a;a=this.qe.mb(a))b=this.qe.getData(a),-1==this.g.dd(b)&&(e=this.g.iG(this.$,b,b,null),d+=this.g.Ka(e),c++);this.g.Sl(this.$,c);this.g.Tj(this.$,d);c=0;for(d=this.g.md;-1!=d;d=this.g.xe(d))c+=this.g.I(d);this.g.QB(c)};l.prototype.em=function(c){for(var a=0,b=this.Ae.size-1;a<b;a++)if(c=(c+1)%this.Ae.size,-1!=this.Ae.get(c))return c;return-1};l.prototype.vn=function(c,a){var b=this.g.Qa(a,this.Rq),
d=this.g.Qa(a,this.Eg);this.g.$B(c,a);this.g.Sa(a,this.Rq,b);this.g.Sa(a,this.Eg,d)};l.prototype.ak=function(c){var a=this.g.Qa(c,this.Eg);-1!=a&&(this.Ae.set(a,-1),this.g.Sa(c,this.Eg,-1))};l.X=function(c,a,b,d,e){var f=new l;f.g=c;f.$=a;f.mA=b;f.cw=d;f.od=e;return f.VM()};l.prototype.jM=function(c,a){var b=this.Wh.get(c),d=new g.h;this.g.Ic(b,d);b=new g.h;var e=this.Wh.get(a);this.g.Ic(e,b);if(d.sb(b))return 0;e=this.ws.get(c);c=new g.h;this.g.Ic(e,c);e=this.ws.get(a);a=new g.h;this.g.Ic(e,a);e=
new g.h;e.wc(d,c);d=new g.h;d.wc(b,a);return g.h.ku(e,d)};return l}();g.sn=t})(y||(y={}));(function(g){(function(l){l[l.Local=0]="Local";l[l.Geographic=1]="Geographic";l[l.Projected=2]="Projected";l[l.Image=3]="Image";l[l.Unknown=4]="Unknown"})(g.VL||(g.VL={}));(function(l){l[l.Integer32=0]="Integer32";l[l.Integer64=1]="Integer64";l[l.FloatingPoint=2]="FloatingPoint"})(g.OL||(g.OL={}));var t=function(){function l(){this.qp="";this.pu=null;this.hg=0;this.UH=this.Io=-1;this.xh=null}l.prototype.Gc=function(){return this.hg};
l.prototype.PF=function(){return 1};l.prototype.$d=function(){var c=.001;0!=this.hg?c=g.yr.AQ(this.hg):null!=this.xh&&(c=g.KC.BQ(this.xh));return c};l.prototype.qz=function(){return this.xh};l.prototype.Jd=function(){if(0!=this.hg)return g.fc.Zd(g.yr.Iy(this.hg));if(null!=this.xh)return g.KC.CQ(this.xh)};l.Tb=function(c){if(0!=c.hg){if(!0===g.yr.SS(c.hg))return 1;if(!0===g.yr.US(c.hg))return 2}return 4};l.prototype.bs=function(){var c=this.Gc();if(-1!=this.Io)return this.Io;this.Io=g.yr.AK(c);return-1!=
this.Io?this.Io:c};l.create=function(c){if(0>=c)throw g.i.O("Invalid or unsupported wkid: "+c);var a=new l;a.hg=c;return a};l.oP=function(c){if(null==c||0==c.length)throw g.i.O("Cannot create SpatialReference from null or empty text.");var a=new l;a.xh=c;return a};l.prototype.Nb=function(c){return this==c?!0:null==c||this.constructor!=c.constructor||this.hg!=c.hg||0==this.hg&&this.xh!==c.xh?!1:!0};l.prototype.toString=function(){return"[ tol: "+this.Ln()+"; wkid: "+this.Gc()+"; wkt: "+this.qz()+"]"};
l.prototype.dc=function(){if(""!==this.qp)return this.qp;var c=this.toString();if(Array.prototype.reduce)return this.qp="S"+c.split("").reduce(function(d,e){d=(d<<5)-d+e.charCodeAt(0);return d&d},0);var a=0;if(0===c.length)return"";for(var b=0;b<c.length;b++)a=(a<<5)-a+c.charCodeAt(b),a&=a;return this.qp="S"+a};l.prototype.Ln=function(){return this.$d(0)};l.prototype.Kn=function(){return null!==this.pu?this.pu:this.pu=g.du.wP(this)};l.YN=2147483645;l.ZN=9007199254740990;return l}();g.tf=t})(y||(y=
{}));(function(g){var t=function(l){function c(){var a=null!==l&&l.apply(this,arguments)||this;a.Ji=null;a.LT=null;a.Jq=new g.UL;a.Fo=null;a.gw=null;return a}E(c,l);c.wP=function(a){var b=new c;b.hg=a.hg;b.Io=a.Io;b.UH=a.UH;b.xh=a.xh;if(""!==b.xh&&null!==b.xh){a=c.fM(b.xh);var d=c.dM(b.xh);b.Jq.Qx(a,d,g.eu.Integer64);b.Vx(a);b.Xx(d);b.hg=a.bs()}else a=c.eM(b.hg),b.Vx(a),b.Xx(null),b.Jq.Qx(a,null,g.eu.Integer64);return b};c.prototype.$d=function(a){return this.Jq.Ln(a)};c.dM=function(a){if(0>=a.length)throw g.i.O();
var b=null;try{b=g.AC.fromString(a)}catch(d){b=null}return null==b?null:c.RC(b,!0)};c.prototype.Vx=function(a){this.Md=a;this.Fo=this.Md.Jd()};c.prototype.Xx=function(a){this.FH=a;this.LT=null!=this.FH?this.FH.Fo:null};c.prototype.Yc=function(){return 0==this.Tb()||3==this.Tb()?!1:this.Md.Yc()};c.prototype.DG=function(){return 0==this.Tb()?!1:3==this.Tb()?this.Ji.ek().Yc():this.Md.Yc()};c.prototype.hh=function(){return null!=this.Md?this.Md.Te:null};c.prototype.rm=function(){return this.Md.rm()};
c.prototype.df=function(){return this.Md.df()};c.prototype.jh=function(){return null!=this.Md?this.Md.pw:NaN};c.prototype.Wp=function(){return this.Md.Wp()};c.prototype.Xr=function(){return this.Md.Xr()};c.prototype.jk=function(){return this.Md.jk()};c.prototype.eS=function(a){return g.BC.Fy(this.Md,a.Md)};c.prototype.nl=function(){return this.Md.nl()};c.prototype.Wr=function(){return this.Md.Wr()};c.prototype.zi=function(){return 3==this.Tb()?this.Ji.ek().zi():this.Md.zi()};c.prototype.ih=function(){if(!this.Yc())throw g.i.O("!isPannable()");
var a=new g.l;this.Md.ih(a);return a};c.prototype.Ne=function(){if(!this.Yc())throw g.i.O("!isPannable()");return this.Md.to};c.prototype.CR=function(){if(!this.Yc())throw g.i.O("!isPannable()");var a=new g.l;this.Md.BR(a);return a};c.prototype.mv=function(){if(!this.Yc())throw g.i.O("!isPannable()");return this.Md.mv()};c.prototype.lv=function(){if(!this.Yc())throw g.i.O("!isPannable()");return this.Md.lv()};c.prototype.Yr=function(){return null!=this.Ji?this.Ji.ek().Yr():this.Md.Yr()};c.prototype.LQ=
function(){return this.Md.ev()};c.prototype.Sp=function(){return this.Fo.getUnitFactor()};c.prototype.kz=function(a){return this.Jq.kz(a)};c.prototype.uc=function(){var a=this.Tb();if(1==a)return this;if(3==a)return this.Ji.ek().uc();if(0==a)throw g.i.ga("invalid call");if(4===a)throw g.i.ga("invalid call");if(null!==this.gw)return this.gw;a=this.hh().getGeogcs();if(null==a)throw g.i.Ra();return this.gw=c.TE(a,this.Jq.PF())};c.TE=function(a,b){if(null==a)throw g.i.O("null pointer.");var d=new c;a=
c.ju(a,!0);d.Jq.Qx(a,null,b);d.Vx(a);d.Xx(null);d.hg=a.bs();return d};c.prototype.Tb=function(){var a=this.hh();if(null!=a)switch(a.getType()){case g.Vc.PE_TYPE_GEOGCS:return 1;case g.Vc.PE_TYPE_PROJCS:return 2}return 4};c.prototype.ev=function(){return this.Md.ev()};c.ju=function(a,b){var d=a.getCode();if(0>=d&&(d=g.sf.getCode(a),0<d)){a=g.sf.coordsys(d);if(null==a)throw g.i.O("Text to wkid mapping had failed: "+d);return c.ju(a,b)}if(b&&0<d&&(b=c.lx[d]))return b;b=g.Ab.uv(a,d,!1);var e=c.gK[b];
if(e)return e;a=0>=d?a:g.sf.coordsys(d);a=new g.BC(a);c.gK[b]=a;0<d&&(c.lx[d]=a);return a};c.eM=function(a){if(0>=a)throw g.i.O("Invalid or unsupported wkid: "+a);var b=c.lx[a];if(null!=b)return b;b=g.sf.coordsys(a);if(null==b)throw g.i.O("Invalid or unsupported wkid: "+a);b=c.ju(b,!1);b.bs()!=a&&(c.lx[a]=b);return b};c.fM=function(a){if(null==a||void 0===a||0==a.length)throw g.i.O("Cannot create SpatialReference from null or empty text.");var b=null;try{b=g.sf.fromString(g.Vc.PE_TYPE_COORDSYS,a)}catch(d){throw g.i.O("Cannot create SpatialReference from text. "+
d.message);}if(null===b)throw g.i.O("Cannot create SpatialReference from text. ");return c.ju(b,!0)};c.RC=function(a,b){var d=a.getCode();if(0>=d&&(d=g.sf.getCode(a),0<d)){d=g.sf.vertcs(d);if(null===d)throw g.i.O();return c.RC(d,b)}if(b&&0<d&&(b=c.fK[d]))return b;a=g.Ab.uv(a,d,!1);if(b=c.hK[a])return b;var e;0>=d||(e=g.sf.vertcs(d));if(null===e)throw g.i.O();e=new g.KL(e);c.hK[a]=e;0<d&&(c.fK[d]=e);return e};c.nI=function(a,b){if(null===b||b.B())return null;var d=new g.l;if(null!==b&&1!=a.Tb()){var e=
a.uc(),f=e.hh();a=g.xr.Or(a,e,null,null);b=g.Ax.local().X(b,a,null)}else f=a.hh();b.A(d);b=f.getPrimem().getLongitude();f=f.getUnit().getUnitFactor();return new g.yC(d.v,d.F,d.C,d.H,b,f)};c.aD=function(a){var b={name:"",steps:[],_pt:null,_entry:null},d=0;for(a=a.getEntries();d<a.length;d++){var e=a[d],f={CY:!1,QY:"",PY:-1,geogtran:null};0===e.getDirection()?f.isInverse=!1:f.isInverse=!0;var h=e.getGeogtran().getCode();-1<h?f.wkid=h:f.wkt=e.getGeogtran().toString();b.steps.push(f)}return b};c.RR=function(a,
b,d,e){void 0===d&&(d=null);d=c.nI(e,d);a=g.np.getGTlist(a.hh(),b.hh(),2,g.np.PE_GTLIST_OPTS_COMMON,d,1);b=null;a&&0<a.length&&(b=this.aD(a[0]),g.Fx.destroy(a));null!==d&&d.destroy();return b};c.SR=function(a,b,d,e){var f;void 0===d&&(d=null);void 0===e&&(e=null);void 0===f&&(f=30);d=c.nI(e,d);a=g.np.getGTlist(a.hh(),b.hh(),2,g.np.PE_GTLIST_OPTS_COMMON,d,f);b=[];if(a&&0<a.length){for(f=0;f<a.length;f++)b.push(this.aD(a[f]));g.Fx.destroy(a)}null!==d&&d.destroy();return b};c.lx={};c.gK={};c.fK={};c.hK=
{};return c}(g.tf);g.du=t})(y||(y={}));(function(g){var t;(function(c){c[c.Integer32=0]="Integer32";c[c.Integer64=1]="Integer64";c[c.FloatingPoint=2]="FloatingPoint"})(t=g.eu||(g.eu={}));var l=function(){function c(){this.rp()}c.prototype.assign=function(a){this.Hm=a.Hm;this.Im=a.Im;this.Pj=a.Pj;this.hA=a.hA;this.Go=a.Go;this.gA=a.gA;this.Hk=a.Hk;this.Oq=a.Oq;this.Nq=a.Nq;this.Tm=a.Tm};c.prototype.PF=function(){return this.Tm};c.prototype.rp=function(){this.Im=this.Hm=0;this.Pj=1;this.hA=0;this.Go=
1;this.gA=0;this.Nq=this.Oq=this.Hk=2.220446049250313E-14;this.Tm=t.FloatingPoint};c.prototype.Qx=function(a,b,d){this.rp();this.Tm=d;if(d!=t.FloatingPoint){var e=new g.l;a.dR(e);this.Hm=e.v;this.Im=e.F}else this.Im=this.Hm=-1.7976931348623157E308;e=a.Te.getType();e==g.Vc.PE_TYPE_GEOGCS?(e=(d==t.Integer64?1E-9:1/18E5)*a.df(),this.Pj=1/e):e==g.Vc.PE_TYPE_PROJCS&&(e=(d==t.Integer64?1E-4:.001)*a.rm(),this.Pj=1/e);null!=b?(e=(d==t.Integer32?.001:1E-4)*b.DH,this.Go=1/e):this.Go=1E4;this.WM();this.Hk=a.pw;
this.Oq=null!=b?.001*b.DH:.001;this.Nq=2.220446049250313E-14};c.prototype.WM=function(){if(this.Tm!=t.FloatingPoint){var a=this.Tm==t.Integer64?g.tf.ZN:g.tf.YN,b=a/this.Pj,d=this.Hm+b,e=g.P.truncate((d-this.Hm)*this.Pj);e>a&&(this.Pj=a/(d-this.Hm));b=this.Im+b;e=g.P.truncate((b-this.Im)*this.Pj);e>a&&(this.Pj=a/(b-this.Im))}};c.prototype.PB=function(a){switch(a){case 0:this.Hk=void 0;case 1:this.Oq=void 0;case 2:this.Nq=void 0}};c.prototype.Ln=function(a){switch(a){case 0:return this.Hk;case 1:return this.Oq;
case 2:return this.Nq}return 0};c.prototype.kz=function(a){if(this.Tm==t.FloatingPoint)return 0;switch(a){case 0:return 1/this.Pj;case 1:return 1/this.Go;case 2:return 1/this.Go;default:return 0}};c.prototype.toString=function(){var a="SRPD [m_toleranceXY: "+this.Hk.toString();a=a+";m_falseX: "+this.Hm.toString();a=a+";m_falseY: "+this.Im.toString();a=a+";m_unitsXY: "+this.Pj.toString();a=a+";m_falseZ: "+this.hA.toString();a=a+";m_unitsZ: "+this.Go.toString();a=a+";m_falseM: "+this.gA.toString();
a=a+";m_toleranceZ: "+this.Oq.toString();a=a+";m_toleranceM: "+this.Nq.toString();a=a+";m_precision: "+this.Tm.toString();return a+"] "};return c}();g.UL=l})(y||(y={}));(function(g){function t(e,f){89.99999<f?f=89.99999:-89.99999>f&&(f=-89.99999);f*=.017453292519943;return[111319.49079327169*e,3189068.5*Math.log((1+Math.sin(f))/(1-Math.sin(f)))]}function l(e,f,h){e=e/6378137*57.29577951308232;return h?[e,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*f/6378137)))]:[e-360*Math.floor((e+
180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*f/6378137)))]}function c(e,f,h){var k=e.Sf();if(33===e.K())f=f(k.ug(),k.Qg()),k.Db(f[0],f[1]);else if(197===e.K()){var m=f(e.T.v,e.T.F,h);f=f(e.T.C,e.T.H,h);k.L(m[0],m[1],f[0],f[1])}else for(m=new g.h,e=0;e<k.I();e++){k.D(e,m);var n=f(m.x,m.y,h);m.oa(n[0],n[1]);k.Db(e,m)}return k}function a(e){return c(e,l,!0)}function b(e){return c(e,t,!0)}var d=Math.PI/180;g.PK=function(){function e(){}e.su=function(f){var h=Math.sqrt(.006694379990197414),
k=Math.sin(f.y*d);return g.h.construct(6378137*f.x*d,3167719.6636462314*(k/(1-.006694379990197414*k*k)-1/(2*h)*Math.log((1-h*k)/(1+h*k))))};e.Ox=function(f,h,k,m){var n=1/298.257223563,p=Math.sin(k);k=Math.cos(k);var q=(1-n)*Math.tan(f);f=1/Math.sqrt(1+q*q);var r=q*f,u=Math.atan2(q,k);q=f*p;var v=q*q,w=1-v,z=2.7233160610754688E11*w/4.040829998466145E13,x=1+z/16384*(4096+z*(-768+z*(320-175*z))),A=z/1024*(256+z*(-128+z*(74-47*z)));z=m/(6356752.31424518*x);for(var B=2*Math.PI,C,D,G,H;1E-12<Math.abs(z-
B);)G=Math.cos(2*u+z),C=Math.sin(z),D=Math.cos(z),H=A*C*(G+A/4*(D*(-1+2*G*G)-A/6*G*(-3+4*C*C)*(-3+4*G*G))),B=z,z=m/(6356752.31424518*x)+H;m=r*C-f*D*k;w=n/16*w*(4+n*(4-3*w));return g.h.construct((h+(Math.atan2(C*p,f*D-r*C*k)-(1-w)*n*q*(z+w*C*(G+w*D*(-1+2*G*G)))))/d,Math.atan2(r*D+f*C*k,(1-n)*Math.sqrt(v+m*m))/d)};e.KM=function(f,h,k,m){var n=1/298.257223563,p=m-h,q=Math.atan((1-n)*Math.tan(f)),r=Math.atan((1-n)*Math.tan(k)),u=Math.sin(q);q=Math.cos(q);var v=Math.sin(r);r=Math.cos(r);var w=p,z=1E3;
do{var x=Math.sin(w),A=Math.cos(w),B=Math.sqrt(r*x*r*x+(q*v-u*r*A)*(q*v-u*r*A));if(0===B)return 0;A=u*v+q*r*A;var C=Math.atan2(B,A),D=q*r*x/B,G=1-D*D;x=A-2*u*v/G;isNaN(x)&&(x=0);var H=n/16*G*(4+n*(4-3*G)),K=w;w=p+(1-H)*n*D*(C+H*B*(x+H*A*(-1+2*x*x)))}while(1E-12<Math.abs(w-K)&&0<--z);if(0===z)return u=m-h,{azimuth:Math.atan2(Math.sin(u)*Math.cos(k),Math.cos(f)*Math.sin(k)-Math.sin(f)*Math.cos(k)*Math.cos(u)),geodesicDistance:6371008.771415059*Math.acos(Math.sin(f)*Math.sin(k)+Math.cos(f)*Math.cos(k)*
Math.cos(m-h))};f=2.7233160610754688E11*G/4.040829998466145E13;h=f/1024*(256+f*(-128+f*(74-47*f)));return{azimuth:Math.atan2(r*Math.sin(w),q*v-u*r*Math.cos(w)),UQ:6356752.31424518*(1+f/16384*(4096+f*(-768+f*(320-175*f))))*(C-h*B*(x+h/4*(A*(-1+2*x*x)-h/6*x*(-3+4*B*B)*(-3+4*x*x)))),OY:Math.atan2(q*Math.sin(w),q*v*Math.cos(w)-u*r)}};e.hQ=function(f){var h=f.hasAttribute(1),k=f.hasAttribute(2),m=[],n=f.ea(),p=null,q=null;h&&(p=f.lb(1));k&&(q=f.lb(2));for(var r=new g.h,u=0;u<n;u++){for(var v=f.Ca(u),w=
f.Ka(u),z=0,x=0,A=NaN,B=NaN,C=NaN,D=NaN,G=f.ec(u),H=[],K=v;K<v+w;K++){f.D(K,r);D=C=NaN;var J=[r.x,r.y];h&&(C=p.get(K),J.push(C));k&&(n=q.get(K),J.push(D));K==v&&G&&(z=r.x,x=r.y,A=C,B=D);H.push(J)}!G||z==r.x&&x==r.y&&(!h||isNaN(A)&&isNaN(C)||A==C)&&(!k||isNaN(B)&&isNaN(D)||B==D)||H.push(H[0].slice(0));m.push(H)}return m};e.My=function(f,h){f=e.hQ(f);637.100877141506>h&&(h=637.100877141506);for(var k=[],m,n=0;n<f.length;n++){var p=f[n];k.push(m=[]);m.push([p[0][0],p[0][1]]);var q,r,u=p[0][0]*d,v=p[0][1]*
d;for(q=0;q<p.length-1;q++){var w=p[q+1][0]*d,z=p[q+1][1]*d;if(u!==w||v!==z){z=e.KM(v,u,z,w);w=z.azimuth;z=z.UQ;var x=z/h;if(1<x){for(r=1;r<=x-1;r++){var A=e.Ox(v,u,w,r*h);m.push([A.x,A.y])}r=e.Ox(v,u,w,(z+Math.floor(x-1)*h)/2);m.push([r.x,r.y])}v=e.Ox(v,u,w,z);m.push([v.x,v.y]);u=v.x*d;v=v.y*d}}}return{lJ:k}};e.TQ=function(f){for(var h=[],k=0;k<f.length;k++){var m=f[k];m=e.My(m,1E4);h.push(m)}f=[];for(var n=0;n<h.length;n++){m=h[n];var p=0;for(k=0;k<m.lJ.length;k++){var q=m.lJ[k],r=e.su(g.h.construct(q[0][0],
q[0][1])),u=e.su(g.h.construct(q[q.length-1][0],q[q.length-1][1])),v=u.x*r.y-r.x*u.y,w;for(w=0;w<q.length-1;w++)r=e.su(g.h.construct(q[w+1][0],q[w+1][1])),u=e.su(g.h.construct(q[w][0],q[w][1])),v+=u.x*r.y-r.x*u.y;p+=v}p/=1;f.push(p/-2)}return f};return e}();g.cb=function(){function e(){}e.mB=function(f,h,k,m,n,p,q){e.WC[f.dc()]=h;0==isNaN(k)&&(e.bD[f.dc()]=k);0==isNaN(m)&&(e.pD[f.dc()]=m);0==isNaN(n)&&(e.PC[f.dc()]=n);e.cD[f.dc()]=p;null!==q&&(e.dD[f.dc()]=q)};e.Tw=function(f,h,k){e.iD[f.dc()+"-"+
h.dc()]=k};e.uc=function(f){f=e.WC[f.dc()];if(void 0==f)throw g.i.He();return f};e.df=function(f){f=e.bD[f.dc()];if(void 0==f)throw g.i.He();return f};e.sv=function(f){f=e.pD[f.dc()];if(void 0==f)throw g.i.He();return f};e.bv=function(f){f=e.PC[f.dc()];if(void 0==f)throw g.i.He();return f};e.ih=function(f){f=e.dD[f.dc()];if(void 0==f)throw g.i.He();return g.l.construct(f[0],f[1],f[2],f[3])};e.Yc=function(f){f=e.cD[f.dc()];if(void 0==f)throw g.i.He();return f};e.Ah=function(f,h,k){if(h.Nb(k))return f;
var m=e.iD[h.dc()+"-"+k.dc()];if(void 0!==m)return m(f,h,k);throw g.i.He();};e.rt=function(){throw g.i.He();};e.YQ=function(){throw g.i.He();};e.XV=function(){throw g.i.He();};e.nl=function(){throw g.i.He();};e.lW=function(){var f=g.tf.create(102100),h=g.tf.create(3857),k=g.tf.create(4326);g.cb.mB(f,k,NaN,NaN,NaN,!1,null);g.cb.mB(k,k,1,.0033528106647474805,6378137,!0,[-180,-90,180,90]);g.cb.mB(h,k,NaN,NaN,NaN,!1,null);g.cb.Tw(f,k,a);g.cb.Tw(k,f,b);g.cb.Tw(h,k,a);g.cb.Tw(k,h,b)};e.WC=[];e.bD=[];e.pD=
[];e.PC=[];e.cD=[];e.dD=[];e.iD=[];return e}()})(y||(y={}));y.cb.lW();(function(g){var t=function(){function l(c){this.o=new Int32Array(0);this.jo=-1;this.Ng=this.size=this.Cl=0;this.Pf=c}l.prototype.ld=function(c){c<this.Cl?(this.o[c*this.Pf]=this.jo,this.jo=c):this.Cl--;this.size--};l.prototype.V=function(c,a){return this.o[c*this.Pf+a]};l.prototype.U=function(c,a,b){this.o[c*this.Pf+a]=b};l.prototype.Fe=function(){var c=this.jo;if(-1==c){if(this.Cl==this.Ng){c=0!=this.Ng?g.P.truncate(3*(this.Ng+
1)/2):1;2147483647<c&&(c=2147483647);if(c==this.Ng)throw g.i.te();this.sz(c)}c=this.Cl;this.Cl++}else this.jo=this.o[c*this.Pf];this.size++;for(var a=c*this.Pf;a<c*this.Pf+this.Pf;a++)this.o[a]=-1;return c};l.prototype.Ml=function(c){var a=this.jo;if(-1==a){if(this.Cl==this.Ng){a=0!=this.Ng?g.P.truncate(3*(this.Ng+1)/2):1;2147483647<a&&(a=2147483647);if(a==this.Ng)throw g.i.te();this.sz(a)}a=this.Cl;this.Cl++}else this.jo=this.o[a*this.Pf];this.size++;for(var b=a*this.Pf,d=0;d<c.length;d++)this.o[b+
d]=c[d];return a};l.prototype.mj=function(c){this.jo=-1;this.size=this.Cl=0;c&&(this.o=null,this.Ng=0)};l.prototype.Ge=function(c){c>this.Ng&&this.sz(c)};l.prototype.nx=function(c,a){c*=this.Pf;a*=this.Pf;for(var b=0;b<this.Pf;b++){var d=this.o[a+b];this.o[a+b]=this.o[c+b];this.o[c+b]=d}};l.prototype.VB=function(c,a,b){var d=this.o[this.Pf*a+b];this.o[this.Pf*a+b]=this.o[this.Pf*c+b];this.o[this.Pf*c+b]=d};l.GG=function(c){return 0<=c};l.prototype.sz=function(c){null==this.o&&(this.o=new Int32Array(0));
var a=new Int32Array(this.Pf*c);a.set(this.o,0);this.o=a;this.Ng=c};return l}();g.bd=t})(y||(y={}));(function(g){var t;(function(a){a[a.enumInputModeBuildGraph=0]="enumInputModeBuildGraph";a[a.enumInputModeSimplifyAlternate=4]="enumInputModeSimplifyAlternate";a[a.enumInputModeSimplifyWinding=5]="enumInputModeSimplifyWinding";a[a.enumInputModeIsSimplePolygon=7]="enumInputModeIsSimplePolygon"})(t||(t={}));var l=function(){function a(b){this.Ee=b;this.zh=NaN;this.$G=new g.lg;this.aH=new g.lg;this.js=
new g.Pc;this.ks=new g.Pc}a.prototype.compare=function(b,d,e){b=b.ka(e);this.Ee.eB(d,this.$G);this.Ee.eB(b,this.aH);d=this.$G.get();b=this.aH.get();this.js.L(d.ta,d.qa);this.ks.L(b.ta,b.qa);if(this.js.sa<this.ks.ma)return-1;if(this.js.ma>this.ks.sa)return 1;e=d.pa==d.na;var f=b.pa==b.na;if(e||f){if(e&&f)return 0;if(d.pa==b.pa&&d.ta==b.ta)return e?1:-1;if(d.na==b.na&&d.qa==b.qa)return e?-1:1}e=d.Oe(this.zh,this.js.ma);f=b.Oe(this.zh,this.ks.ma);e==f&&(e=Math.min(d.na,b.na),f=.5*(e+this.zh),f==this.zh&&
(f=e),e=d.Oe(f,this.js.ma),f=b.Oe(f,this.ks.ma));return e<f?-1:e>f?1:0};a.prototype.WJ=function(b){this.zh=b};return a}(),c=function(){function a(b){this.ib=b;this.RH=new g.lg;this.Ff=new g.h;this.lA=new g.Pc}a.prototype.aX=function(b){this.Ff.N(b)};a.prototype.compare=function(b,d){this.ib.eB(b.ka(d),this.RH);b=this.RH.get();this.lA.L(b.ta,b.qa);if(this.Ff.x<this.lA.ma)return-1;if(this.Ff.x>this.lA.sa)return 1;b=b.Oe(this.Ff.y,this.Ff.x);return this.Ff.x<b?-1:this.Ff.x>b?1:0};return a}();t=function(){function a(){this.cH=
this.Di=this.Gi=this.aA=this.Zn=this.Be=this.Mc=this.kh=this.ie=null;this.Ho=this.Cg=-1;this.bH=!0;this.eA=!1;this.bA=NaN;this.Ni=new g.Od;this.aO=2147483647;this.$N=g.P.truncate(-2147483648);this.gg=this.de=this.Il=this.Eq=this.Em=this.Dq=this.Ls=this.Qe=-1;this.xa=0}a.prototype.ny=function(b){this.bA=b};a.prototype.$m=function(){null==this.ie&&(this.ie=new g.bd(8));var b=this.ie.Fe();this.ie.U(b,1,0);return b};a.prototype.oU=function(){null==this.Mc&&(this.Mc=new g.bd(8));var b=this.Mc.Fe();this.Mc.U(b,
2,0);this.Mc.U(b,3,0);var d=this.Mc.Fe();this.Mc.U(d,2,0);this.Mc.U(d,3,0);this.EJ(b,d);this.EJ(d,b);return b};a.prototype.hI=function(){null==this.Be&&(this.Be=new g.bd(8));var b=this.Be.Fe();this.Be.U(b,2,0);return b};a.prototype.KW=function(b,d){this.ie.U(b,7,d)};a.prototype.on=function(b,d){this.ie.U(b,2,d)};a.prototype.JW=function(b,d){this.ie.U(b,1,d)};a.prototype.bX=function(b,d){this.ie.U(b,3,d)};a.prototype.ZW=function(b,d){this.ie.U(b,4,d)};a.prototype.er=function(b,d){this.ie.U(b,5,d)};
a.prototype.aR=function(b){return this.ie.V(b,5)};a.prototype.IW=function(b,d){this.ie.U(b,6,d)};a.prototype.bN=function(b,d){this.IW(d,b)};a.prototype.DJ=function(b,d){this.Mc.U(b,1,d)};a.prototype.EJ=function(b,d){this.Mc.U(b,4,d)};a.prototype.Ul=function(b,d){this.Mc.U(b,5,d)};a.prototype.Tl=function(b,d){this.Mc.U(b,6,d)};a.prototype.QW=function(b,d){this.Mc.U(b,2,d)};a.prototype.Yw=function(b,d){this.Mc.U(b,3,d)};a.prototype.EF=function(b){return this.Mc.V(b,3)};a.prototype.Ct=function(b,d){this.Mc.U(b,
7,d)};a.prototype.zK=function(b,d){if(-1!=this.om(b))for(d=d?-1:b,b=this.om(b);-1!=b;b=this.fs(b))this.g.Sa(this.tj(b),this.Eq,d)};a.prototype.sx=function(b,d){-1!=b&&(this.zK(b,d),this.zK(this.ya(b),d))};a.prototype.zt=function(b,d){this.Be.U(b,1,d)};a.prototype.Zg=function(b,d){this.Be.U(b,2,d)};a.prototype.ln=function(b,d){this.Be.U(b,3,d);this.GW(b,this.$Q(d));this.FW(d,b)};a.prototype.FW=function(b,d){this.Be.U(b,4,d)};a.prototype.GW=function(b,d){this.Be.U(b,5,d)};a.prototype.yJ=function(b,
d){this.Be.U(b,6,d)};a.prototype.wJ=function(b,d){this.Be.U(b,7,d)};a.prototype.vJ=function(b,d){this.Zn.write(b,d)};a.prototype.xJ=function(b,d){this.aA.write(b,d)};a.prototype.bY=function(b){var d=0,e=0,f=this.tF(b),h=new g.h,k=new g.h,m=new g.h;this.Zr(f,h);k.N(h);var n=f;do this.nm(n,m),e+=g.h.vb(k,m),this.bf(this.ya(n))!=b&&(d+=(m.x-h.x-(k.x-h.x))*(m.y-h.y+(k.y-h.y))*.5),k.N(m),n=this.lc(n);while(n!=f);this.Zn.write(b,d);this.aA.write(b,e)};a.prototype.IU=function(b,d){var e=new l(this),f=new g.Xj;
f.Ge(g.P.truncate(this.xa/2));f.Wo(e);for(var h=new g.ja(0),k=this.dh(),m=null,n=0,p=new g.h,q=this.Qe;-1!=q;q=this.Vf(q)){n++;if(0==(n&255)&&null!=d&&!d.progress(-1,-1))throw g.i.JC();var r=this.Le(q);if(-1!=r){h.Ch(0);if(!this.YX(f,k,h,r)){this.D(q,p);e.WJ(p.y);var u=r;do{var v=this.Bb(u,k);-1!=v&&(f.xd(v,-1),this.Kb(u,k,-2));u=this.lc(this.ya(u))}while(r!=u);u=r;do v=this.Bb(u,k),-1==v&&(v=f.addElement(u,-1),h.add(v)),u=this.lc(this.ya(u));while(r!=u)}for(r=h.size-1;0<=r;r--)v=h.get(r),u=f.ka(v),
this.Kb(this.ya(u),k,v),this.HU(f,v,b)}else-1==this.Ty(q)&&(null==m&&(m=new c(this)),this.D(q,p),m.aX(p),u=f.AW(m),r=this.Il,-1!=u&&(v=f.ka(u),this.bf(v)==this.bf(this.ya(v))&&(v=this.HF(f,u)),-1!=v&&(r=this.bf(v))),this.bN(r,q))}this.Pg(k)};a.prototype.HU=function(b,d,e){var f=b.ka(d),h=this.bf(f);if(-1==this.Gn(h)){var k=this.HF(b,d),m=this.ya(f),n=this.bf(m);this.Mp(h);this.Mp(n);var p=this.Gn(h),q=this.Gn(n);-1==k&&-1==p&&(n==h?(this.ln(n,this.Il),p=q=this.Il):(-1==q&&(this.ln(n,this.Il),q=this.Il),
this.ln(h,n),p=n));if(-1!=k){var r=this.bf(k);-1==q&&(0>=this.Mp(r)?(q=this.Gn(r),this.ln(n,q)):(this.ln(n,r),q=r),n==h&&(p=q))}-1==p&&this.ZX(h,n);0==e?this.cW(b,d,f,k,h,n):5==e?this.dW(b,d,f,m,h,n):4==e&&this.bW(f,k,h,n)}};a.prototype.cW=function(b,d,e,f,h,k){var m=this.gk(h);if(-1!=f){var n=this.gk(k),p=this.gk(this.bf(f));f=m&n&p;p^=p&this.gh(e);p|=f;0!=p&&(this.Zg(k,n|p),this.Zg(h,p|m),m=m||p)}for(d=b.mb(d);-1!=d;d=b.mb(d)){f=b.ka(d);e=this.bf(this.ya(f));h=this.gk(e);k=this.gh(f);n=this.bf(f);
p=this.gk(n);f=h&p&m;m^=m&k;m|=f;if(0==m)break;this.Zg(e,h|m);this.Zg(n,p|m)}};a.prototype.dW=function(b,d,e,f,h,k){if(h!=k){e=this.Bb(e,this.gg);e+=this.Bb(f,this.gg);f=0;var m=new g.ja(0),n=new g.ja(0);n.add(0);for(var p=b.tc(-1);p!=d;p=b.mb(p)){var q=b.ka(p),r=this.ya(q),u=this.bf(q),v=this.bf(r);if(u!=v){q=this.Bb(q,this.gg);q+=this.Bb(r,this.gg);f+=q;r=!1;0!=m.size&&m.Hc()==v&&(n.Mf(),m.Mf(),r=!0);if(-1==this.Gn(v))throw g.i.Ra();r&&this.Gn(v)==u||(n.add(f),m.add(u))}}f+=e;0!=m.size&&m.Hc()==
k&&(n.Mf(),m.Mf());0!=f?0==n.Hc()&&(b=this.g.md,b=this.Ma(b),this.Zg(h,b)):0!=n.Hc()&&(b=this.g.md,b=this.Ma(b),this.Zg(h,b))}};a.prototype.bW=function(b,d,e,f){var h=this.Ma(this.g.md);if(-1==d)this.Zg(f,this.Ho),b=this.Bb(b,this.Cg),0!=(b&1)?this.Zg(e,h):this.Zg(e,this.Ho);else{var k=this.gk(f);0==k?(k=this.gk(this.bf(d)),this.Zg(f,k),b=this.Bb(b,this.Cg),0!=(b&1)?this.Zg(e,k==h?this.Ho:h):this.Zg(e,k)):(b=this.Bb(b,this.Cg),0!=(b&1)?this.Zg(e,k==h?this.Ho:h):this.Zg(e,k))}};a.prototype.YX=function(b,
d,e,f){var h=f,k=-1,m=-1,n=0;do{if(2==n)return!1;var p=this.Bb(h,d);if(-1!=p){if(-1!=k)return!1;k=p}else{if(-1!=m)return!1;m=h}n++;h=this.lc(this.ya(h))}while(f!=h);if(-1==m||-1==k)return!1;this.Kb(b.ka(k),d,-2);b.Sj(k,m);e.add(k);return!0};a.prototype.ZX=function(b,d){var e=this.Mp(b);if(0!=e){var f=this.Mp(d);0<e&&0>f?this.ln(b,d):0>e&&0<f?this.ln(b,d):(d=this.Gn(d),-1!=d&&this.ln(b,d))}};a.prototype.tP=function(b,d){this.Eq=this.g.Id();for(var e=0,f=d.size;e<f;e++){var h=d.get(e),k=this.g.Qa(h,
this.Em),m=this.g.Uf(this.g.dd(h)),n=this.g.kc(m);if(g.ba.Jc(n)){var p=this.g.W(h);if(-1!=p){var q=this.g.Qa(p,this.Em);if(k!=q){var r=this.oU(),u=this.ya(r),v=this.kh.Fe();this.kh.U(v,0,h);this.kh.U(v,1,-1);this.Ct(r,v);this.DJ(r,k);v=this.Le(k);-1==v?(this.on(k,r),this.Ul(r,u),this.Tl(u,r)):(k=this.we(v),this.Ul(v,u),this.Tl(u,v),this.Tl(k,r),this.Ul(r,k));this.DJ(u,q);k=this.Le(q);-1==k?(this.on(q,u),this.Tl(r,u),this.Ul(u,r)):(q=this.we(k),this.Ul(k,r),this.Tl(r,k),this.Tl(q,u),this.Ul(u,q));
m=this.Ma(m);0==b?(this.Kb(u,this.de,0),this.Kb(r,this.de,1736==n?m:0)):5==b?(q=new g.h,this.g.D(h,q),h=new g.h,this.g.D(p,h),k=p=0,0>q.compare(h)?p=1:k=-1,this.Kb(u,this.de,0),this.Kb(r,this.de,0),this.Kb(r,this.gg,p),this.Kb(u,this.gg,k)):7==b?(this.Kb(u,this.de,this.Ho),this.Kb(r,this.de,1736==n?m:0)):4==b&&(this.Kb(u,this.de,0),this.Kb(r,this.de,0),this.Kb(r,this.Cg,1),this.Kb(u,this.Cg,1));n=1736==n?this.$N:0;this.Yw(r,m|n);this.Yw(u,m|n)}}}}};a.prototype.OT=function(b,d){var e=this.om(d);if(-1!=
e){var f=this.om(b);this.kh.U(e,1,f);this.Ct(b,e);this.Ct(d,-1)}b=this.ya(b);d=this.ya(d);e=this.om(d);-1!=e&&(f=this.om(b),this.kh.U(e,1,f),this.Ct(b,e),this.Ct(d,-1))};a.prototype.zX=function(b){function d(B,C){return f.GO(B,C)}var e=new g.ja(0);e.Jb(10);for(var f=this,h=this.Qe;-1!=h;h=this.Vf(h)){e.clear(!1);var k=this.Le(h);if(-1!=k){var m=k;do e.add(m),m=this.lc(this.ya(m));while(m!=k);if(1<e.size){m=!0;if(2<e.size)e.Xd(0,e.size,d),e.add(e.get(0));else if(0<this.FO(e.get(0),e.get(1))){var n=
e.get(0);e.set(0,e.get(1));e.set(1,n)}else m=!1;for(var p=n=e.get(0),q=this.yf(p),r=this.ya(p),u=-1,v=1,w=e.size;v<w;v++){var z=e.get(v),x=this.ya(z),A=this.ik(x);if(A==q&&z!=p){if(0==b)u=this.EF(p)|this.EF(z),this.Yw(p,u),this.Yw(r,u),this.Kb(p,this.de,this.Bb(p,this.de)|this.Bb(z,this.de)),this.Kb(r,this.de,this.Bb(r,this.de)|this.Bb(x,this.de));else if(-1!=this.gg)u=this.Bb(p,this.gg)+this.Bb(z,this.gg),x=this.Bb(r,this.gg)+this.Bb(x,this.gg),this.Kb(p,this.gg,u),this.Kb(r,this.gg,x);else{if(7==
b){this.Ni=new g.Od(5,h,-1);return}-1!=this.Cg&&(u=this.Bb(p,this.Cg)+this.Bb(z,this.Cg),x=this.Bb(r,this.Cg)+this.Bb(x,this.Cg),this.Kb(p,this.Cg,u),this.Kb(r,this.Cg,x))}this.OT(p,z);this.Ay(z);u=p;e.set(v,-1);z==n&&(e.set(0,-1),n=-1)}else this.sx(u,!1),u=-1,p=z,q=A,r=x}this.sx(u,!1);u=-1;if(m){n=-1;v=0;for(w=e.size;v<w;v++)if(z=e.get(v),-1!=z)if(-1==n)p=n=z,q=this.yf(p),r=this.ya(p);else if(z!=p&&(x=this.ya(z),A=this.ik(x),this.Tl(r,z),this.Ul(z,r),p=z,q=A,r=x,7==b&&(this.Bb(z,this.de)|this.Bb(this.we(z),
this.de))==(this.Ho|1))){this.Ni=new g.Od(5,h,-1);return}this.on(h,n)}else{n=-1;v=0;for(w=e.size;v<w;v++)if(z=e.get(v),-1!=z){n=z;break}k!=n&&this.on(h,n)}}}}};a.prototype.VN=function(){for(var b=-1,d=this.dh(),e=this.Qe;-1!=e;e=this.Vf(e)){var f=this.Le(e);if(-1!=f){var h=f;do{if(1!=this.Bb(h,d)){var k=this.hI();this.zt(k,h);this.wJ(k,b);-1!=b&&this.yJ(b,k);b=k;var m=0,n=h;do m|=this.Bb(n,this.de),this.QW(n,k),this.Kb(n,d,1),n=this.lc(n);while(n!=h);this.Zg(k,m)}h=this.lc(this.ya(h))}while(h!=f)}}k=
this.hI();this.zt(k,-1);this.wJ(k,b);-1!=b&&this.yJ(b,k);this.Il=k;this.Zn=g.ee.uf(this.Be.size,NaN);this.aA=g.ee.uf(this.Be.size,NaN);this.vJ(this.Il,Infinity);this.xJ(this.Il,Infinity);this.Pg(d)};a.prototype.nR=function(b,d,e){d=-1!=d?d:this.Le(b);if(-1==d)return-1;for(b=d;;){if(1!=this.Bb(d,e))return d;d=this.lc(this.ya(d));if(d==b)return-1}};a.prototype.rW=function(){for(var b=this.dh(),d=this.Qe;-1!=d;d=this.Vf(d))for(var e=-1;;){var f=this.nR(d,e,b);if(-1==f)break;e=this.lc(this.ya(f));for(var h=
f;;){var k=this.lc(h),m=this.we(h),n=this.ya(h);if(m==n){this.GP(h);if(e==h||e==n)e=-1;if(h==f||m==f){f=k;if(h==f||m==f)break;h=k;continue}}else this.Kb(h,b,1);h=k;if(h==f)break}}this.Pg(b)};a.prototype.BB=function(b,d,e,f,h){this.Yg();this.bH=h;this.g=b;this.Dq=this.g.SE();b=new g.ja(0);b.Jb(null!=e?this.g.I(e.get(0)):this.g.hd);var k=0,m=1,n=null!=e?e.get(0):this.g.md;for(h=1;-1!=n;){this.g.CJ(n,this.Dq,m);m<<=1;for(var p=this.g.Ob(n);-1!=p;p=this.g.Sb(p))for(var q=this.g.Ya(p),r=0,u=this.g.Ka(p);r<
u;r++)b.add(q),q=this.g.W(q);g.ba.Sn(this.g.kc(n))||(k+=this.g.ea(n));null!=e?(n=h<e.size?e.get(h):-1,h++):n=this.g.xe(n)}this.Ho=m;this.xa=b.size;this.g.ix(b,this.xa);null==this.kh&&(this.kh=new g.bd(2),this.ie=new g.bd(8),this.Mc=new g.bd(8),this.Be=new g.bd(8));this.kh.Ge(this.xa);g.op.Bp(f);this.ie.Ge(this.xa+10);this.Mc.Ge(2*this.xa+32);this.Be.Ge(Math.max(32,k));this.Em=this.g.Id();e=new g.h;h=0;k=new g.h;e.Uc();for(m=0;m<=this.xa;m++)if(m<this.xa?(q=b.get(m),this.g.D(q,k)):k.Uc(),!e.sb(k)){if(h<
m){q=this.$m();for(u=r=-1;h<m;h++)u=b.get(h),this.g.Sa(u,this.Em,q),n=this.kh.Fe(),this.kh.U(n,0,u),this.kh.U(n,1,r),r=n,p=this.g.dd(u),n=this.g.Uf(p),n=this.Ma(n),this.JW(q,this.zd(q)|n);this.KW(q,r);this.er(q,this.g.Va(u));-1!=this.Ls&&this.ZW(this.Ls,q);this.bX(q,this.Ls);this.Ls=q;-1==this.Qe&&(this.Qe=q)}h=m;e.N(k)}g.op.Bp(f);this.de=this.dh();5==d&&(this.gg=this.dh());4==d&&(this.Cg=this.dh());this.tP(d,b);0==this.Ni.Jj&&(this.zX(d),0==this.Ni.Jj&&(isNaN(this.bA)||this.wO()?(this.VN(),0==this.Ni.Jj&&
(this.Pg(this.de),this.de=-1,this.bH&&this.IU(d,f))):this.eA=!0))};a.prototype.Ay=function(b){var d=this.lc(b),e=this.we(b),f=this.ya(b),h=this.lc(f),k=this.we(f);d!=f&&(this.Tl(k,d),this.Ul(d,k));e!=f&&(this.Tl(e,h),this.Ul(h,e));e=this.ik(b);this.Le(e)==b&&(h!=b?this.on(e,h):this.on(e,-1));h=this.ik(f);this.Le(h)==f&&(d!=f?this.on(h,d):this.on(h,-1));this.Mc.ld(b);this.Mc.ld(f)};a.prototype.HF=function(b,d){for(;;)if(d=b.ze(d),-1!=d){var e=b.ka(d);if(this.bf(e)!=this.bf(this.ya(e)))return e}else return-1};
a.prototype.fr=function(b,d){var e;void 0===e&&(e=!0);this.BB(b,0,null,d,e)};a.prototype.qJ=function(b,d,e){var f=new g.ja(0);f.add(d);this.BB(b,4,f,e,1736==b.kc(d))};a.prototype.rJ=function(b,d,e){var f=new g.ja(0);f.add(d);this.BB(b,5,f,e,!0)};a.prototype.Yg=function(){null!=this.g&&(-1!=this.Dq&&(this.g.qW(this.Dq),this.Dq=-1),-1!=this.Em&&(this.g.Vd(this.Em),this.Em=-1),-1!=this.Eq&&(this.g.Vd(this.Eq),this.Eq=-1),-1!=this.de&&(this.Pg(this.de),this.de=-1),-1!=this.gg&&(this.Pg(this.gg),this.gg=
-1),-1!=this.Cg&&(this.Pg(this.Cg),this.Cg=-1),this.g=null,this.ie.mj(!0),this.kh.mj(!0),this.Ls=this.Qe=-1,null!=this.Mc&&this.Mc.mj(!0),null!=this.Gi&&(this.Gi.length=0),null!=this.Di&&(this.Di.length=0),null!=this.cH&&(this.cH.length=0),null!=this.Be&&this.Be.mj(!0),this.Il=-1,this.Zn=null)};a.prototype.Le=function(b){return this.ie.V(b,2)};a.prototype.D=function(b,d){this.g.YF(this.aR(b),d)};a.prototype.zd=function(b){return this.ie.V(b,1)};a.prototype.Vf=function(b){return this.ie.V(b,4)};a.prototype.Ty=
function(b){return this.ie.V(b,6)};a.prototype.mm=function(b){return this.ie.V(b,7)};a.prototype.fs=function(b){return this.kh.V(b,1)};a.prototype.tj=function(b){return this.kh.V(b,0)};a.prototype.rg=function(b,d){d=this.Di[d];return d.size<=b?-1:d.read(b)};a.prototype.pn=function(b,d,e){d=this.Di[d];d.size<=b&&d.resize(this.ie.size,-1);d.write(b,e)};a.prototype.Fp=function(){null==this.Di&&(this.Di=[]);for(var b=g.ja.uf(this.ie.Ng,-1),d=0,e=this.Di.length;d<e;d++)if(null==this.Di[d])return this.Di[d]=
b,d;this.Di.push(b);return this.Di.length-1};a.prototype.Gp=function(b){this.Di[b]=null};a.prototype.ik=function(b){return this.Mc.V(b,1)};a.prototype.yf=function(b){return this.ik(this.ya(b))};a.prototype.ya=function(b){return this.Mc.V(b,4)};a.prototype.we=function(b){return this.Mc.V(b,5)};a.prototype.lc=function(b){return this.Mc.V(b,6)};a.prototype.bf=function(b){return this.Mc.V(b,2)};a.prototype.cf=function(b){return this.gk(this.Mc.V(b,2))};a.prototype.om=function(b){return this.Mc.V(b,7)};
a.prototype.Zr=function(b,d){this.D(this.ik(b),d)};a.prototype.nm=function(b,d){this.D(this.yf(b),d)};a.prototype.gh=function(b){return this.Mc.V(b,3)&this.aO};a.prototype.Bb=function(b,d){d=this.Gi[d];return d.size<=b?-1:d.read(b)};a.prototype.Kb=function(b,d,e){d=this.Gi[d];d.size<=b&&d.resize(this.Mc.size,-1);d.write(b,e)};a.prototype.dh=function(){null==this.Gi&&(this.Gi=[]);for(var b=g.ja.uf(this.Mc.Ng,-1),d=0,e=this.Gi.length;d<e;d++)if(null==this.Gi[d])return this.Gi[d]=b,d;this.Gi.push(b);
return this.Gi.length-1};a.prototype.Pg=function(b){this.Gi[b]=null};a.prototype.GP=function(b){var d=this.bf(b),e=this.ya(b),f=this.lc(b);f==e&&(f=this.lc(f),f==b&&(f=-1));var h=this.tF(d);h!==b&&h!=e||this.zt(d,f);e=this.Zn.read(d);isNaN(e)||(this.vJ(d,NaN),this.xJ(d,NaN));this.sx(b,!0);this.Ay(b)};a.prototype.HP=function(b){for(var d=0,e=b.size;d<e;d++){var f=b.get(d),h=this.bf(this.ya(f));this.zt(this.bf(f),-1);this.zt(h,-1);this.sx(f,!0);this.Ay(f)}};a.prototype.tF=function(b){return this.Be.V(b,
1)};a.prototype.gk=function(b){return this.Be.V(b,2)};a.prototype.Gn=function(b){return this.Be.V(b,3)};a.prototype.$Q=function(b){return this.Be.V(b,4)};a.prototype.Mp=function(b){var d=this.Zn.read(b);isNaN(d)&&(this.bY(b),d=this.Zn.read(b));return d};a.prototype.Ma=function(b){return this.g.DF(b,this.Dq)};a.prototype.Ke=function(b){return this.g.Qa(b,this.Em)};a.prototype.qR=function(b){return this.g.Qa(b,this.Eq)};a.prototype.oR=function(b,d){var e=this.Le(b);if(-1==e)return-1;var f=e,h=-1,k=
-1;do{if(this.yf(f)==d)return f;if(-1==h){h=this.Le(d);if(-1==h)break;k=h}if(this.yf(k)==b)return f=this.ya(k);f=this.lc(this.ya(f));k=this.lc(this.ya(k))}while(f!=e&&k!=h);return-1};a.prototype.eB=function(b,d){d.Pr();d=d.get();var e=new g.h;this.Zr(b,e);d.Fc(e);this.nm(b,e);d.Tc(e)};a.prototype.GO=function(b,d){if(b==d)return 0;var e=new g.h;this.nm(b,e);var f=new g.h;this.nm(d,f);if(e.sb(f))return 0;d=new g.h;this.Zr(b,d);b=new g.h;b.wc(e,d);e=new g.h;e.wc(f,d);return g.h.ku(b,e)};a.prototype.FO=
function(b,d){if(b==d)return 0;var e=new g.h;this.nm(b,e);var f=new g.h;this.nm(d,f);if(e.sb(f))return 0;d=new g.h;this.Zr(b,d);b=new g.h;b.wc(e,d);e=new g.h;e.wc(f,d);return 0<=e.y&&0<b.y?g.h.ku(b,e):0};a.prototype.wO=function(){for(var b=g.oc.jx(this.bA),d=new g.h,e=new g.h,f=new g.h,h=new g.h,k=new g.h,m=this.Qe;-1!=m;m=this.Vf(m)){var n=this.Le(m);if(-1!=n){var p=n;this.Zr(p,d);this.nm(p,e);k.wc(e,d);var q=k.Rk();do{var r=p;p=this.lc(this.ya(p));if(p!=r){this.nm(p,f);h.wc(f,d);r=h.Rk();var u=
h.wi(k);if(u*u/(r*q)*Math.min(r,q)<=b)return!1;k.N(h);q=r;e.N(f)}}while(p!=n)}}return!0};return a}();g.fu=t})(y||(y={}));(function(g){var t=function(){function l(){this.j=null;this.jH=new g.h;this.kH=new g.h;this.Gj=null;this.Jv=!1;this.ul=-1}l.prototype.ef=function(c){return c<this.Gj.length?this.Gj[c]:!1};l.prototype.dl=function(c,a,b,d){var e=g.ba.xf(this.j.g.kc(b));if(2==g.ba.xf(this.j.g.kc(a))&&1==e)this.DP(c,a,b,d);else throw g.i.Ra();};l.prototype.fr=function(c,a){null==this.j&&(this.j=new g.fu);
this.j.fr(c,a)};l.prototype.Bt=function(c,a,b){g.Sk.X(c,a,b,!0);for(a=c.md;-1!=a;a=c.xe(a))1736==c.kc(a)&&g.sn.X(c,a,-1,this.Jv,b);this.fr(c,b)};l.prototype.CE=function(c,a,b,d,e){var f=this.j.g;if(1736==f.kc(c))for(c=f.Ob(c);-1!=c;c=f.Sb(c)){var h=f.Ya(c);this.j.Ke(h);this.j.Ke(f.W(h));var k=this.j.qR(h);if(-1!=k){var m=this.j.Bb(k,b);if(1!=m&&2!=m)if(this.ef(this.j.cf(k))){this.j.Kb(k,b,1);m=f.zf(a,-1);var n=k,p=this.j.Ke(h),q=1;do{var r=this.um(h,e);f.ij(m,r);-1!=d&&this.j.pn(p,d,1);this.j.Kb(n,
b,1);n=this.j.lc(n);do{r=1==q?f.W(h):f.Na(h);var u=-1!=r?this.j.Ke(r):-1}while(u==p);var v=this.j.ik(n);if(v!=u){do r=1==q?f.Na(h):f.W(h),u=-1!=r?this.j.Ke(r):-1;while(u==p);v!=u?(u=v,r=this.j.tj(this.j.mm(u))):q=-q}p=u;h=r}while(n!=k);f.mn(m,!0)}else this.j.Kb(k,b,2)}}};l.prototype.WE=function(){for(var c=this.j.dh(),a=new g.ja(0),b=this.j.Qe;-1!=b;b=this.j.Vf(b)){var d=this.j.Le(b),e=d;if(-1!=d){do{if(1!=this.j.Bb(e,c)){var f=this.j.ya(e);this.j.Kb(f,c,1);this.j.Kb(e,c,1);this.ef(this.j.cf(e))&&
this.ef(this.j.cf(f))&&a.add(e)}e=this.j.lc(this.j.ya(e))}while(e!=d)}}this.j.Pg(c);this.j.HP(a)};l.prototype.um=function(c,a){return-1==a?c:this.VR(c,a)};l.prototype.VR=function(c,a){var b=this.j.g,d=this.j.mm(this.j.Ke(c));do{var e=this.j.tj(d);if(b.Uf(b.dd(e))==a)return e;d=this.j.fs(d)}while(-1!=d);return c};l.prototype.Lt=function(c,a,b){this.WE();var d=this.j.g,e=d.Og(1736),f=this.j.dh();this.pK(c,a,e,b,f,-1);this.j.Pg(f);g.sn.X(d,e,1,this.Jv,null);return e};l.prototype.pK=function(c,a,b,d,
e,f){this.CE(c,b,e,f,d);-1!=a&&this.CE(a,b,e,f,d);c=this.j.g;for(a=this.j.Qe;-1!=a;a=this.j.Vf(a)){var h=this.j.Le(a);if(-1!=h){var k=h;do{var m=this.j.Bb(k,e);if(1!=m&&2!=m)if(this.ef(this.j.cf(k))){m=c.zf(b,-1);var n=k;do{var p=this.j.om(n);-1!=p?p=this.j.tj(p):(p=this.j.tj(this.j.om(this.j.ya(n))),p=this.j.g.W(p));p=this.um(p,d);c.ij(m,p);this.j.Kb(n,e,1);-1!=f&&(p=this.j.Ke(p),this.j.pn(p,f,1));n=this.j.lc(n)}while(n!=k);c.mn(m,!0)}else this.j.Kb(k,e,2);k=this.j.lc(this.j.ya(k))}while(k!=h)}}};
l.prototype.SX=function(c,a,b){var d=this.j.g,e=d.Og(1736),f=d.Og(1607),h=d.Og(550);this.WE();var k=-1,m=this.j.dh(),n=this.j.Fp();this.pK(c,a,e,b,m,n);for(c=this.j.Qe;-1!=c;c=this.j.Vf(c))if(a=this.j.Le(c),-1!=a){var p=a;do{var q=this.j.Bb(p,m),r=this.j.Bb(this.j.ya(p),m);q|=r;if(2==q)if(q=this.j.gh(p),this.ef(q)){var u=d.zf(f,-1),v=p;q=this.Vw(c,d);q=this.um(q,b);d.ij(u,q);this.j.pn(c,n,1);do{q=this.j.yf(v);r=this.Vw(q,d);r=this.um(r,b);d.ij(u,r);this.j.Kb(v,m,1);this.j.Kb(this.j.ya(v),m,1);this.j.pn(q,
n,1);v=this.j.lc(v);q=this.j.Bb(v,m);r=this.j.Bb(this.j.ya(v),m);q|=r;if(2!=q)break;q=this.j.gh(v);if(!this.ef(q)){this.j.Kb(v,m,1);this.j.Kb(this.j.ya(v),m,1);break}}while(v!=p)}else this.j.Kb(p,m,1),this.j.Kb(this.j.ya(p),m,1);p=this.j.lc(this.j.ya(p))}while(p!=a)}for(c=this.j.Qe;-1!=c;c=this.j.Vf(c))q=this.j.rg(c,n),1!=q&&(q=this.j.zd(c),this.ef(q)&&(-1==k&&(k=d.zf(h,-1)),a=this.j.mm(c),-1!=a&&(a=this.j.tj(a),q=this.um(a,b),d.ij(k,q))));this.j.Gp(n);this.j.Pg(m);g.sn.X(d,e,1,this.Jv,null);b=[];
b[0]=h;b[1]=f;b[2]=e;return b};l.prototype.Vw=function(c,a){var b=-1;for(c=this.j.mm(c);-1!=c;c=this.j.fs(c)){var d=this.j.tj(c);-1==b&&(b=d);var e=this.j.Ma(a.Uf(a.dd(d)));if(this.ef(e)){b=d;break}}return b};l.prototype.aB=function(c,a){for(var b=this.kl(a),d=this.j.ik(a),e=this.j.yf(a),f=0,h=0,k=this.j.mm(d);-1!=k;k=this.j.fs(k)){var m=this.j.tj(k),n=c.dd(m),p=this.j.Ma(c.Uf(n));n=c.Ya(n);(p=0!=(p&b))&&n==m&&(this.ul=a);var q=c.W(m);-1!=q&&this.j.Ke(q)==e?(f++,p&&(-1===this.ul&&n==q&&(m=this.j.lc(a),
this.ef(this.kl(m))&&(this.ul=m)),h++)):(m=c.Na(m),-1!=m&&this.j.Ke(m)==e&&(f--,p&&(-1===this.ul&&n===m&&(m=this.j.lc(a),this.ef(this.kl(m))&&(this.ul=m)),h--)))}this.j.D(d,this.jH);this.j.D(e,this.kH);c=g.h.vb(this.jH,this.kH);return(0!=h?h:f)*c};l.prototype.kl=function(c){return this.j.gh(c)|this.j.cf(c)|this.j.cf(this.j.ya(c))};l.prototype.sK=function(c){for(var a=this.j.ya(this.j.we(c)),b=-1;a!=c;){if(this.ef(this.kl(a))){if(-1!=b)return-1;b=a}a=this.j.ya(this.j.we(a))}return-1!=b?this.j.ya(b):
-1};l.prototype.tK=function(c){for(var a=this.j.ya(this.j.lc(c)),b=-1;a!=c;){if(this.ef(this.kl(a))){if(-1!=b)return-1;b=a}a=this.j.ya(this.j.lc(a))}return-1!=b?this.j.ya(b):-1};l.prototype.hJ=function(c,a,b,d,e){var f=this.j.g,h=c,k=this.j.ya(h);this.j.Kb(h,b,1);this.j.Kb(k,b,1);this.ul=-1;for(var m=this.aB(f,h),n=h,p=-1,q=!1,r=1;;){var u=this.j.we(h);if(u==k)break;k=this.j.lc(k);if(this.j.ya(u)!=k)if(h=this.sK(h),-1==h){q=!0;break}else k=this.j.ya(h);else h=u;if(h==c){p=c;break}u=this.kl(h);if(!this.ef(u))break;
this.j.Kb(h,b,1);this.j.Kb(k,b,1);n=h;m+=this.aB(f,h);r++}if(-1==p)for(h=c,k=this.j.ya(h),p=h;;){c=this.j.lc(h);if(c==k)break;k=this.j.we(k);if(this.j.ya(c)!=k)if(h=this.tK(h),-1==h){q=!0;break}else k=this.j.ya(h);else h=c;u=this.kl(h);if(!this.ef(u))break;this.j.Kb(h,b,1);this.j.Kb(k,b,1);p=h;m+=this.aB(f,h);r++}else if(-1!=this.ul&&(n=this.ul,p=this.j.we(this.ul),this.j.ya(p)!=this.j.lc(this.j.ya(n))&&(p=this.sK(n),-1==p)))throw g.i.Ra();0<=m||(h=p,p=this.j.ya(n),n=this.j.ya(h));b=f.zf(a,-1);h=
n;n=this.j.ik(n);q=this.j.yf(p)==n&&q;m=this.Vw(n,f);m=this.um(m,e);f.ij(b,m);-1!=d&&this.j.pn(n,d,1);n=0;for(r=q?g.P.truncate((r+1)/2):-1;;){c=this.j.yf(h);m=this.Vw(c,f);m=this.um(m,e);f.ij(b,m);n++;-1!=d&&this.j.pn(c,d,1);q&&n==r&&(b=f.zf(a,-1),f.ij(b,m));if(h==p)break;c=this.j.lc(h);if(this.j.we(this.j.ya(h))!=this.j.ya(c)){if(h=this.tK(h),-1==h)throw g.i.Ra();}else h=c}};l.prototype.Mt=function(c){for(var a=this.j.g.Og(1607),b=this.j.dh(),d=this.j.Qe;-1!=d;d=this.j.Vf(d)){var e=this.j.Le(d),
f=e;do 1!=this.j.Bb(f,b)&&this.ef(this.kl(f))&&this.hJ(f,a,b,-1,c),f=this.j.lc(this.j.ya(f));while(f!=e)}this.j.Pg(b);return a};l.prototype.TX=function(c){for(var a=this.j.g,b=a.Og(1607),d=a.Og(550),e=this.j.dh(),f=this.j.Fp(),h=-1,k=this.j.Qe;-1!=k;k=this.j.Vf(k)){var m=this.j.Le(k),n=m;do{var p=this.j.Bb(n,e);1!=p&&(p=this.kl(n),this.ef(p)&&this.hJ(n,b,e,f,c));n=this.j.lc(this.j.ya(n))}while(n!=m)}for(k=this.j.Qe;-1!=k;k=this.j.Vf(k))p=this.j.rg(k,f),1!=p&&(p=this.j.zd(k),this.ef(p)&&(-1==h&&(h=
a.zf(d,-1)),m=this.j.mm(k),-1!=m&&(m=this.j.tj(m),m=this.um(m,c),a.ij(h,m))));this.j.Pg(e);this.j.Gp(f);c=[];c[0]=d;c[1]=b;return c};l.prototype.pr=function(){for(var c=this.j.g,a=c.Og(550),b=c.zf(a,-1),d=this.j.Qe;-1!=d;d=this.j.Vf(d))if(this.ef(this.j.zd(d))){for(var e=-1,f=this.j.mm(d);-1!=f;f=this.j.fs(f)){var h=this.j.tj(f);-1==e&&(e=h);var k=this.j.Ma(c.Uf(c.dd(h)));if(this.ef(k)){e=h;break}}c.ij(b,e)}return a};l.prototype.eq=function(c){this.Gj=[];for(var a=0;a<c;a++)this.Gj[a]=!1};l.UV=function(c,
a,b){var d=c.Ja(),e=Array(1E3);g.P.Xu(e,null);var f=g.P.pg(1E3,0),h=c.I(),k=!0,m=2==a.Eb();if(1!=a.Eb()&&2!=a.Eb())throw g.i.Ra();for(var n=0;n<h;){var p=g.P.truncate(c.eW(e,n)-n);m?g.kd.nK(a,e,p,b,f):g.kd.oK(a,e,p,b,f);for(var q=0,r=0;r<p;r++)0==f[r]&&(k&&(k=!1,d.Hd(c,0,n)),q!=r&&d.Hd(c,n+q,n+r),q=r+1);k||q==p||d.Hd(c,n+q,n+p);n+=p}return k?c:d};l.uG=function(c,a,b){return c instanceof g.fe?l.UV(c,a,b):a instanceof g.Ta?c.B()||a.B()?c.Ja():g.Sk.sU(b,c,a)?g.Sk.BO(c,a):c.Ja():l.VV(c,a,b)};l.xv=function(c,
a,b,d){var e=new g.l;c.A(e);var f=new g.l;a.A(f);var h=new g.l;h.L(e);h.$b(f);b=g.ua.Yd(b,h,!0);h=new g.l;h.L(f);f=g.ua.Gr(b);h.Y(f,f);if(!e.isIntersecting(h)){if(c.Eb()<=a.Eb())return l.ki(l.We(c.Ja()),c,"\x26");if(c.Eb()>a.Eb())return l.ki(l.We(a.Ja()),c,"\x26")}f=new l;e=new g.jd;h=e.Ib(l.We(c));a=e.Ib(l.We(a));f.Bt(e,b,d);d=f.xv(h,a);c=l.ki(e.Me(d),c,"\x26");g.ba.Jc(c.K())&&(c.Dh(2,b),1736==c.K()&&c.hm());return c};l.VV=function(c,a,b){if(c.B()||a.B())return c.Ja();var d=[null],e=[0],f=2==a.Eb();
if(1!=a.Eb()&&2!=a.Eb())throw g.i.Ra();d[0]=c.D();f?g.kd.nK(a,d,1,b,e):g.kd.oK(a,d,1,b,e);return 0==e[0]?c.Ja():c};l.prototype.EU=function(c,a,b,d,e){if(c.B())return c;var f=new g.jd;c=f.Ib(c);return this.Lk(f,c,a,b,d,e)};l.prototype.GU=function(c,a,b,d,e,f){if(e&&550!=c.kc(a)){var h=new g.EC;h.KX(c,b);h.Sg?(g.Sk.X(c,b,f,!0),e=!1):this.j.ny(b)}else g.Sk.X(c,b,f,!0),e=!1;d&&550!=c.kc(a)?this.j.rJ(c,a,f):this.j.qJ(c,a,f);if(this.j.eA)return this.j.Yg(),this.j=null,this.Lk(c,a,b,d,!1,f);this.j.ny(NaN);
f=this.j.Ma(a);this.eq(f+1);this.Gj[f]=!0;if(1736==c.kc(a)||d&&550!=c.kc(a))return c.Zo(a,0),a=this.Lt(a,-1,-1),c=c.Me(a),c.Zo(0),e?c.Dh(1,0):(c.Dh(2,b),c.hm()),c;if(1607==c.kc(a))return a=this.Mt(-1),c=c.Me(a),e||c.Dh(2,b),c;if(550==c.kc(a))return a=this.pr(),c=c.Me(a),e||c.Dh(2,b),c;throw g.i.Ra();};l.prototype.Lk=function(c,a,b,d,e,f){this.j=new g.fu;try{return this.GU(c,a,b,d,e,f)}finally{this.j.Yg()}};l.Lk=function(c,a,b,d,e){return(new l).EU(c,a,b,d,e)};l.prototype.FU=function(c,a,b,d){this.Jv=
c;this.j=new g.fu;c=a.In(b);var e=a.kc(b);1!=c||550==e?this.j.qJ(a,b,d):this.j.rJ(a,b,d);if(!this.j.eA)if(this.j.ny(NaN),d=this.j.Ma(b),this.eq(d+1),this.Gj[d]=!0,1736==a.kc(b)||1==c&&550!=a.kc(b))a.Zo(b,0),d=this.Lt(b,-1,-1),a.WB(d,b),a.qB(d);else if(1607==a.kc(b))d=this.Mt(-1),a.WB(d,b),a.qB(d);else if(550==a.kc(b))d=this.pr(),a.WB(d,b),a.qB(d);else throw g.i.ga("internal error");};l.prototype.km=function(c,a){var b=g.ba.xf(this.j.g.kc(c)),d=g.ba.xf(this.j.g.kc(a));if(b>d)return c;var e=this.j.Ma(c),
f=this.j.Ma(a);this.eq((e|f)+1);this.Gj[this.j.Ma(c)]=!0;if(2==b&&2==d)return this.Lt(c,a,-1);if(1==b&&2==d||1==b&&1==d)return this.Mt(-1);if(0==b)return this.pr();throw g.i.Ra();};l.prototype.xv=function(c,a){var b=g.ba.xf(this.j.g.kc(c)),d=g.ba.xf(this.j.g.kc(a)),e=this.j.Ma(c),f=this.j.Ma(a);this.eq((e|f)+1);this.Gj[this.j.Ma(c)|this.j.Ma(a)]=!0;e=-1;1<this.j.g.dt.Ba&&(e=c);if(2==b&&2==d)return this.Lt(c,a,e);if(1==b&&0<d||1==d&&0<b)return this.Mt(e);if(0==b||0==d)return this.pr();throw g.i.Ra();
};l.prototype.Fz=function(c,a){var b=g.ba.xf(this.j.g.kc(c)),d=g.ba.xf(this.j.g.kc(a)),e=this.j.Ma(c),f=this.j.Ma(a);this.eq((e|f)+1);this.Gj[this.j.Ma(c)|this.j.Ma(a)]=!0;e=-1;1<this.j.g.dt.Ba&&(e=c);if(2==b&&2==d)return this.SX(c,a,e);if(1==b&&0<d||1==d&&0<b)return this.TX(e);if(0==b||0==d)return c=[],c[0]=this.pr(),c;throw g.i.Ra();};l.prototype.fp=function(c,a){var b=g.ba.xf(this.j.g.kc(c)),d=g.ba.xf(this.j.g.kc(a)),e=this.j.Ma(c),f=this.j.Ma(a);this.eq((e|f)+1);this.Gj[this.j.Ma(c)]=!0;this.Gj[this.j.Ma(a)]=
!0;if(2==b&&2==d)return this.Lt(c,a,-1);if(1==b&&1==d)return this.Mt(-1);if(0==b&&0==d)return this.pr();throw g.i.Ra();};l.We=function(c){var a=c.K();return 197==a?(a=new g.Ea(c.description),c.B()||a.cd(c,!1),a):33==a?(a=new g.fe(c.description),c.B()||a.add(c),a):322==a?(a=new g.Ua(c.description),c.B()||a.pc(c,!0),a):c};l.ki=function(c,a,b){var d=c.K();return 197==d?(a=new g.Ea(c.description),c.B()||a.cd(c,!1),a):33!=d||"|"!=b&&"^"!=b?322==d?(a=new g.Ua(c.description),c.B()||a.pc(c,!0),a):33==d&&
"-"==b&&33==a.K()||550==d&&"\x26"==b&&33==a.K()?(a=new g.Ta(c.description),c.B()||c.ye(0,a),a):c:(a=new g.fe(c.description),c.B()||a.add(c),a)};l.km=function(c,a,b,d){if(c.B()||a.B()||c.Eb()>a.Eb())return l.ki(l.We(c),c,"-");var e=new g.l;c.A(e);var f=new g.l;a.A(f);if(!e.isIntersecting(f))return l.ki(l.We(c),c,"-");var h=new g.l;h.L(e);h.$b(f);b=g.ua.Yd(b,h,!0);f=new l;e=new g.jd;h=e.Ib(l.We(c));a=e.Ib(l.We(a));f.Bt(e,b,d);d=f.km(h,a);d=e.Me(d);c=l.ki(d,c,"-");g.ba.Jc(c.K())&&(c.Dh(2,b),1736==c.K()&&
c.hm());return c};l.TP=function(c,a,b){if(2>c.length)throw g.i.O("not enough geometries to dissolve");for(var d=0,e=0,f=c.length;e<f;e++)d=Math.max(c[e].Eb(),d);var h=new g.l;h.Pa();var k=new g.jd,m=-1,n=0,p=-1;e=0;for(f=c.length;e<f;e++)if(c[e].Eb()==d)if(c[e].B())-1==p&&(p=e);else{p=e;-1==m?m=k.Ib(l.We(c[e])):k.tN(m,l.We(c[e]));var q=new g.l;c[e].zc(q);h.$b(q);n++}if(2>n)return l.We(c[p]);c=2==d;a=g.ua.Yd(0==d?a:null,h,!0);return(new l).Lk(k,m,a,c,!0,b)};l.Fz=function(c,a,b,d){var e=[null,null,
null],f=new g.l;c.A(f);var h=new g.l;a.A(h);var k=new g.l;k.L(f);k.$b(h);b=g.ua.Yd(b,k,!0);k=new g.l;k.L(h);h=g.ua.Gr(b);k.Y(h,h);if(!f.isIntersecting(k)){if(c.Eb()<=a.Eb())return c=l.ki(l.We(c.Ja()),c,"\x26"),e[c.Eb()]=c,e;if(c.Eb()>a.Eb())return c=l.ki(l.We(a.Ja()),c,"\x26"),e[c.Eb()]=c,e}h=new l;f=new g.jd;k=f.Ib(l.We(c));a=f.Ib(l.We(a));h.Bt(f,b,d);d=h.Fz(k,a);for(a=0;a<d.length;a++)h=l.ki(f.Me(d[a]),c,"\x26"),g.ba.Jc(h.K())&&(h.Dh(2,b),1736==h.K()&&h.hm()),e[h.Eb()]=h;return e};l.fp=function(c,
a,b,d){if(c.Eb()>a.Eb())return l.ki(l.We(c),c,"^");if(c.Eb()<a.Eb()||c.B())return l.ki(l.We(a),c,"^");if(a.B())return l.ki(l.We(c),c,"^");var e=new g.l;c.A(e);var f=new g.l;a.A(f);var h=new g.l;h.L(e);h.$b(f);b=g.ua.Yd(b,h,!0);f=new l;e=new g.jd;h=e.Ib(l.We(c));a=e.Ib(l.We(a));f.Bt(e,b,d);d=f.fp(h,a);c=l.ki(e.Me(d),c,"^");g.ba.Jc(c.K())&&(c.Dh(2,b),1736==c.K()&&c.hm());return c};l.prototype.HQ=function(c,a){var b=this.j.g;c=b.zf(c,-1);for(var d=a.size,e=0;e<d;e++){var f=a.get(e);b.ij(c,f)}b.mn(c,
!0)};l.prototype.RW=function(c,a){for(var b=this.j.g,d=b.md;-1!=d;d=b.xe(d))if(d==a)for(var e=b.Ob(d);-1!=e;e=b.Sb(e)){var f=b.Ya(e);if(-1!=f)for(var h=b.W(f);-1!=h;){f=this.j.Ke(f);var k=this.j.Ke(h);f=this.j.oR(f,k);-1!=f&&(k=this.j.ya(f),this.j.Kb(f,c,1),this.j.Kb(k,c,2));f=h;h=b.W(f)}}};l.prototype.WV=function(c,a,b,d){b=this.j.Ma(b);d=this.j.Ma(d);var e=new g.ja(0);e.Jb(256);for(var f=this.j.g,h=this.j.dh(),k=this.j.Qe;-1!=k;k=this.j.Vf(k)){var m=this.j.Le(k);if(-1!=m){var n=m;do{if(1!=this.j.Bb(n,
h)){var p=n,q=n,r=!1,u=0;do{this.j.Kb(p,h,1);if(!r){var v=this.j.gh(p);0!=(v&d)&&0!=(this.j.cf(p)&b)&&(q=p,r=!0)}r&&(e.add(this.j.tj(this.j.mm(this.j.ik(p)))),-1!=c&&(v=this.j.gh(p),0!=(v&d)&&(v=this.j.Bb(p,c),u|=v)));p=this.j.lc(p)}while(p!=q);r&&0<this.j.Mp(this.j.bf(q))&&(p=f.Og(1736),this.HQ(p,e),-1!=a&&f.CJ(p,a,u));e.clear(!1)}n=this.j.lc(this.j.ya(n))}while(n!=m)}}this.j.Pg(h)};l.prototype.DP=function(c,a,b,d){this.j.rW();var e=-1;-1!=c&&(e=this.j.dh(),this.RW(e,b));this.WV(e,c,a,b);-1!=e&&
(this.j.Pg(e),e=-1);var f=this.j.g;c=0;for(e=f.md;-1!=e;e=f.xe(e))e!=a&&e!=b&&(d.add(e),c++);d.Xd(0,c,function(h,k){h=f.lz(f.Ob(h));k=f.lz(f.Ob(k));return h<k?-1:h==k?0:1})};l.prototype.Yg=function(){null!=this.j&&(this.j.Yg(),this.j=null)};return l}();g.Lg=t})(y||(y={}));(function(g){var t=function(){function l(c){void 0!==c?this.Et(c):this.FB()}l.prototype.gx=function(){this.Qb=this.Lb=this.rb=this.jb=this.bb=this.eb=0};l.prototype.Nb=function(c){return this==c?!0:c instanceof l?this.eb==c.eb&&
this.jb==c.jb&&this.Lb==c.Lb&&this.rb==c.rb&&this.bb==c.bb&&this.Qb==c.Qb:!1};l.prototype.dc=function(){g.P.uj();g.P.uj();g.P.uj();g.P.uj();g.P.uj();return g.P.uj()};l.prototype.Fh=function(c,a){var b=this.rb*c.x+this.bb*c.y+this.Qb;a.x=this.eb*c.x+this.jb*c.y+this.Lb;a.y=b};l.prototype.WX=function(c,a,b){for(var d=0;d<a;d++){var e=c[d].x,f=c[d].y,h=this.eb*e+this.jb*f+this.Lb;e=this.rb*e+this.bb*f+this.Qb;null!=b[d]?b[d].oa(h,e):b[d]=g.h.construct(h,e)}};l.prototype.multiply=function(c){l.multiply(this,
c,this)};l.multiply=function(c,a,b){var d=c.eb*a.eb+c.rb*a.jb,e=c.jb*a.eb+c.bb*a.jb,f=c.Lb*a.eb+c.Qb*a.jb+a.Lb,h=c.eb*a.rb+c.rb*a.bb,k=c.jb*a.rb+c.bb*a.bb;c=c.Lb*a.rb+c.Qb*a.bb+a.Qb;b.eb=d;b.jb=e;b.Lb=f;b.rb=h;b.bb=k;b.Qb=c};l.prototype.Sf=function(){var c=new l;c.eb=this.eb;c.jb=this.jb;c.Lb=this.Lb;c.rb=this.rb;c.bb=this.bb;c.Qb=this.Qb;return c};l.prototype.aC=function(c){if(!c.B()){for(var a=[],b=0;4>b;b++)a[b]=new g.h;c.cB(a);this.XX(a,a);c.Xw(a,4)}};l.prototype.XX=function(c,a){for(var b=0;b<
c.length;b++){var d=new g.h,e=c[b];d.x=this.eb*e.x+this.jb*e.y+this.Lb;d.y=this.rb*e.x+this.bb*e.y+this.Qb;a[b]=d}};l.prototype.jS=function(c,a){c.B()||a.B()||0==c.S()||0==c.da()?this.gx():(this.jb=this.rb=0,this.eb=a.S()/c.S(),this.bb=a.da()/c.da(),this.Lb=a.v-c.v*this.eb,this.Qb=a.F-c.F*this.bb)};l.prototype.VX=function(c){var a=new g.h,b=new g.h;a.oa(this.eb,this.rb);b.oa(this.jb,this.bb);a.sub(a);var d=.5*a.Rk();a.oa(this.eb,this.rb);b.oa(this.jb,this.bb);a.add(b);a=.5*a.Rk();return c*(d>a?Math.sqrt(d):
Math.sqrt(a))};l.prototype.FB=function(){this.eb=1;this.rb=this.Lb=this.jb=0;this.bb=1;this.Qb=0};l.prototype.isIdentity=function(c){if(void 0!==c){var a=g.h.construct(0,1);this.Fh(a,a);a.sub(g.h.construct(0,1));if(a.Rk()>c*c)return!1;a.oa(0,0);this.Fh(a,a);if(a.Rk()>c*c)return!1;a.oa(1,0);this.Fh(a,a);a.sub(g.h.construct(1,0));return a.Rk()<=c*c}return 1==this.eb&&1==this.bb&&0==this.jb&&0==this.Lb&&0==this.rb&&0==this.Qb};l.prototype.Bi=function(c){return Math.abs(this.eb*this.bb-this.rb*this.jb)<=
2*c*(Math.abs(this.eb*this.bb)+Math.abs(this.rb*this.jb))};l.prototype.kg=function(c,a){this.eb=1;this.jb=0;this.Lb=c;this.rb=0;this.bb=1;this.Qb=a};l.prototype.Et=function(c,a){void 0!==a?(this.eb=c,this.rb=this.Lb=this.jb=0,this.bb=a,this.Qb=0):this.Et(c,c)};l.prototype.OB=function(){this.eb=0;this.jb=1;this.Lb=0;this.rb=1;this.Qb=this.bb=0};l.prototype.fX=function(c){this.gX(Math.cos(c),Math.sin(c))};l.prototype.gX=function(c,a){this.eb=c;this.jb=-a;this.Lb=0;this.rb=a;this.bb=c;this.Qb=0};l.prototype.shift=
function(c,a){this.Lb+=c;this.Qb+=a};l.prototype.scale=function(c,a){this.eb*=c;this.jb*=c;this.Lb*=c;this.rb*=a;this.bb*=a;this.Qb*=a};l.prototype.flipX=function(c,a){this.eb=-this.eb;this.jb=-this.jb;this.Lb=c+a-this.Lb};l.prototype.flipY=function(c,a){this.rb=-this.rb;this.bb=-this.bb;this.Qb=c+a-this.Qb};l.prototype.rotate=function(c){var a=new l;a.fX(c);this.multiply(a)};l.prototype.inverse=function(c){if(void 0!==c){var a=this.eb*this.bb-this.jb*this.rb;0==a?c.gx():(a=1/a,c.Lb=(this.jb*this.Qb-
this.Lb*this.bb)*a,c.Qb=(this.Lb*this.rb-this.eb*this.Qb)*a,c.eb=this.bb*a,c.jb=-this.jb*a,c.rb=-this.rb*a,c.bb=this.eb*a)}else this.inverse(this)};return l}();g.Fd=t})(y||(y={}));(function(g){var t=function(){function l(){}l.prototype.gx=function(){this.Hg=this.Qb=this.Lb=this.af=this.Ye=this.Xe=this.$e=this.bb=this.jb=this.rf=this.rb=this.eb=0};l.prototype.Et=function(c,a){this.eb=c;this.jb=this.rf=this.rb=0;this.bb=a;this.Ye=this.Xe=this.$e=0;this.af=void 0;this.Hg=this.Qb=this.Lb=0};l.prototype.translate=
function(c,a,b){this.Lb+=c;this.Qb+=a;this.Hg+=b};l.prototype.aC=function(c){if(!c.B()){for(var a=new g.Pd[8],b=0;8>b;b++)a[b]=new g.Pd;c.cB(a);this.transform(a,8,a);c.Xw(a)}};l.prototype.transform=function(c,a,b){for(var d=0;d<a;d++){var e=new g.Pd,f=c[d];e.x=this.eb*f.x+this.jb*f.y+this.Xe*f.z+this.Lb;e.y=this.rb*f.x+this.bb*f.y+this.Ye*f.z+this.Qb;e.z=this.rf*f.x+this.$e*f.y+this.af*f.z+this.Hg;b[d]=e}};l.prototype.gp=function(c){var a=new g.Pd;a.x=this.eb*c.x+this.jb*c.y+this.Xe*c.z+this.Lb;a.y=
this.rb*c.x+this.bb*c.y+this.Ye*c.z+this.Qb;a.z=this.rf*c.x+this.$e*c.y+this.af*c.z+this.Hg;return a};l.prototype.Fg=function(c){l.multiply(this,c,this)};l.multiply=function(c,a,b){var d=c.eb*a.eb+c.rb*a.jb+c.rf*a.Xe,e=c.eb*a.rb+c.rb*a.bb+c.rf*a.Ye,f=c.eb*a.rf+c.rb*a.$e+c.rf*a.af,h=c.jb*a.eb+c.bb*a.jb+c.$e*a.Xe,k=c.jb*a.rb+c.bb*a.bb+c.$e*a.Ye,m=c.jb*a.rf+c.bb*a.$e+c.$e*a.af,n=c.Xe*a.eb+c.Ye*a.jb+c.af*a.Xe,p=c.Xe*a.rb+c.Ye*a.bb+c.af*a.Ye,q=c.Xe*a.rf+c.Ye*a.$e+c.af*a.af,r=c.Lb*a.eb+c.Qb*a.jb+c.Hg*a.Xe+
a.Lb,u=c.Lb*a.rb+c.Qb*a.bb+c.Hg*a.Ye+a.Qb;c=c.Lb*a.rf+c.Qb*a.$e+c.Hg*a.af+a.Hg;b.eb=d;b.rb=e;b.rf=f;b.jb=h;b.bb=k;b.$e=m;b.Xe=n;b.Ye=p;b.af=q;b.Lb=r;b.Qb=u;b.Hg=c};l.inverse=function(c,a){var b=c.eb*(c.bb*c.af-c.$e*c.Ye)-c.rb*(c.jb*c.af-c.$e*c.Xe)+c.rf*(c.jb*c.Ye-c.bb*c.Xe);if(0!=b){var d=1/b;b=(c.bb*c.af-c.$e*c.Ye)*d;var e=-(c.jb*c.af-c.$e*c.Xe)*d,f=(c.jb*c.Ye-c.bb*c.Xe)*d,h=-(c.rb*c.af-c.Ye*c.rf)*d,k=(c.eb*c.af-c.rf*c.Xe)*d,m=-(c.eb*c.Ye-c.rb*c.Xe)*d,n=(c.rb*c.$e-c.rf*c.bb)*d,p=-(c.eb*c.$e-c.rf*
c.jb)*d;d*=c.eb*c.bb-c.rb*c.jb;var q=-(c.Lb*b+c.Qb*e+c.Hg*f),r=-(c.Lb*h+c.Qb*k+c.Hg*m);c=-(c.Lb*n+c.Qb*p+c.Hg*d);a.eb=b;a.rb=h;a.rf=n;a.jb=e;a.bb=k;a.$e=p;a.Xe=f;a.Ye=m;a.af=d;a.Lb=q;a.Qb=r;a.Hg=c}else throw g.i.ga("math singularity");};l.prototype.Sf=function(){var c=new l;c.eb=this.eb;c.rb=this.rb;c.rf=this.rf;c.jb=this.jb;c.bb=this.bb;c.$e=this.$e;c.Xe=this.Xe;c.Ye=this.Ye;c.af=this.af;c.Lb=this.Lb;c.Qb=this.Qb;c.Hg=this.Hg;return c};return l}();g.BY=t})(y||(y={}));(function(g){var t=function(c){function a(b){if(void 0!==
b)b=c.call(this,b.dc(),b)||this;else{b=c.call(this)||this;b.fg=[];b.fg[0]=0;b.Ba=1;b.vh=[];for(var d=0;10>d;d++)b.vh[d]=-1;b.vh[b.fg[0]]=0}b.lq=!0;return b}E(a,c);a.prototype.ue=function(b){this.hasAttribute(b)||(this.vh[b]=0,this.ZC())};a.prototype.removeAttribute=function(b){if(0==b)throw g.i.O("Position attribue cannot be removed");this.hasAttribute(b)&&(this.vh[b]=-1,this.ZC())};a.prototype.reset=function(){this.fg[0]=0;this.Ba=1;for(var b=0;b<this.vh.length;b++)this.vh[b]=-1;this.vh[this.fg[0]]=
0;this.lq=!0};a.prototype.xF=function(){return l.az().add(this)};a.sg=function(){return l.az().UR()};a.prototype.pM=function(){var b=this.dc();return new g.va(b,this)};a.prototype.ZC=function(){for(var b=this.Ba=0,d=0;10>b;b++)0<=this.vh[b]&&(this.fg[d]=b,this.vh[b]=d,d++,this.Ba++);this.lq=!0};a.prototype.dc=function(){this.lq&&(this.xl=this.An(),this.lq=!1);return this.xl};a.prototype.Nb=function(b){if(null==b)return!1;if(b==this)return!0;if(!(b instanceof a)||b.Ba!=this.Ba)return!1;for(var d=0;d<
this.Ba;d++)if(this.fg[d]!=b.fg[d])return!1;return this.lq!=b.lq?!1:!0};a.prototype.BG=function(b){if(b.Ba!=this.Ba)return!1;for(var d=0;d<this.Ba;d++)if(this.fg[d]!=b.fg[d])return!1;return!0};a.Fw=function(b,d){for(var e=[],f=0;f<b.Ba;f++)e[f]=-1;f=0;for(var h=b.Ba;f<h;f++)e[f]=d.Tf(b.rd(f));return e};a.wR=function(b,d){b=new a(b);b.ue(d);return b.xF()};a.xR=function(b,d){for(var e=null,f=0;10>f;f++)!b.hasAttribute(f)&&d.hasAttribute(f)&&(null==e&&(e=new a(b)),e.ue(f));return null!=e?e.xF():b};return a}(g.va);
g.ge=t;var l=function(){function c(){this.map=[];var a=new t;this.add(a);a=new t;a.ue(1);this.add(a)}c.az=function(){return c.XK};c.prototype.UR=function(){return c.bt};c.prototype.add=function(a){var b=a.dc();if(null!=c.bt&&c.bt.dc()==b&&a.BG(c.bt))return c.bt;if(null!=c.Aw&&c.Aw.dc()==b&&a.BG(c.Aw))return c.Aw;var d=null;void 0!==this.map[b]&&(d=this.map[b]);null==d&&(d=a.pM(),1==d.Ba?c.bt=d:2==d.Ba&&1==d.rd(1)?c.Aw=d:this.map[b]=d);return d};c.XK=new c;return c}()})(y||(y={}));var ja=0==T.version.indexOf("4."),
Ha;(function(g){g[g.Linear=0]="Linear";g[g.Angular=1]="Angular";g[g.Area=2]="Area";g[g.LinearOrAngular=3]="LinearOrAngular"})(Ha||(Ha={}));var Fa={feet:9002,kilometers:9036,meters:9001,miles:9035,"nautical-miles":9030,yards:9096},Ia={acres:109402,ares:109463,hectares:109401,"square-feet":109405,"square-kilometers":109414,"square-meters":109404,"square-miles":109413,"square-yards":109442},Ga={degrees:9102,radians:9101},Ka=y.tf.create(4326),Ja=y.tf.create(102100);return function(){function g(){}g.extendedSpatialReferenceInfo=
function(t){if(null===t)return null;t=L(t);var l=t.Jd();return{tolerance:t.Ln(),unitType:null==l?-1:l.pd,unitID:null==l?-1:l.Gc(),unitBaseFactor:null==l?0:l.ai,unitSquareDerivative:null==l?0:y.fc.VF(l).Gc()}};g.clip=function(t,l){if(null===t)return null;l=y.ac.clip(N(t),N(l),P(t));return M(l,t.spatialReference)};g.cut=function(t,l){l=N(l);l=y.ac.dl(N(t),l,P(t));for(var c=[],a=0;a<l.length;a++)c.push(M(l[a],t.spatialReference));return c};g.contains=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");
return y.ac.contains(N(t),N(l),P(t))};g.crosses=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.zP(N(t),N(l),P(t))};g.distance=function(t,l,c){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.vb(N(t),N(l),P(t),y.fc.Zd(Z(c,3)))};g.equals=function(t,l){return null===t&&null!==l||null===l&&null!==t?!1:y.ac.Nb(N(t),N(l),P(t))};g.intersects=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.MS(N(t),
N(l),P(t))};g.touches=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.touches(N(t),N(l),P(t))};g.within=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.hY(N(t),N(l),P(t))};g.disjoint=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.RP(N(t),N(l),P(t))};g.overlaps=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.wU(N(t),N(l),P(t))};g.relate=
function(t,l,c){if(null===t||null===l)throw Error("Illegal Argument Exception");return y.ac.nB(N(t),N(l),P(t),c)};g.isSimple=function(t){if(null===t)throw Error("Illegal Argument Exception");return y.ac.XS(N(t),P(t))};g.simplify=function(t){if(null===t)throw Error("Illegal Argument Exception");var l=y.ac.TB(N(t),P(t));return M(l,t.spatialReference)};g.convexHull=function(t,l){void 0===l&&(l=!1);if(null===t)throw Error("Illegal Argument Exception");return!1===ea(t)?(l=y.ac.gP(N(t),P(t)),M(l,t.spatialReference)):
g.nM(t,l)};g.nM=function(t,l){for(var c=[],a=0;a<t.length;a++)c.push(N(t[a]));l=y.ac.hP(c,l);for(a=0;a<l.length;a++)l[a]=M(l[a],t[0].spatialReference);return l};g.difference=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return!1===ea(t)?(l=y.ac.km(N(t),N(l),P(t)),M(l,t.spatialReference)):g.AM(t,l)};g.AM=function(t,l){for(var c=[],a=0;a<t.length;a++)c.push(N(t[a]));t=y.ac.OP(c,N(l),P(l));for(a=0;a<t.length;a++)t[a]=M(t[a],l.spatialReference);return t};g.symmetricDifference=
function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return!1===ea(t)?(l=y.ac.fp(N(t),N(l),P(t)),M(l,t.spatialReference)):g.XM(t,l)};g.XM=function(t,l){for(var c=[],a=0;a<t.length;a++)c.push(N(t[a]));t=y.ac.MX(c,N(l),P(l));for(a=0;a<t.length;a++)t[a]=M(t[a],l.spatialReference);return t};g.intersect=function(t,l){if(null===t||null===l)throw Error("Illegal Argument Exception");return!1===ea(t)?(l=y.ac.Fa(N(t),N(l),P(t)),M(l,t.spatialReference)):g.JM(t,l)};g.JM=function(t,l){for(var c=
[],a=0;a<t.length;a++)c.push(N(t[a]));t=y.ac.KS(c,N(l),P(l));for(a=0;a<t.length;a++)t[a]=M(t[a],l.spatialReference);return t};g.union=function(t,l){void 0===l&&(l=null);if(null===t)return null;!1===ea(t)&&(t=[t],null!==l&&t.push(l));if(0===t.length)return null;l=[];for(var c=0;c<t.length;c++)l.push(N(t[c]));return M(y.ac.aY(l,P(t[0])),t[0].spatialReference)};g.offset=function(t,l,c,a,b,d){var e=0;if(null!=a&&void 0!=a)switch(a){case "round":e=0;break;case "bevel":e=1;break;case "miter":e=2;break;
case "square":e=3}return!1===ea(t)?(l=y.ac.offset(N(t),P(t),l,e,b,d,y.fc.Zd(Z(c,3))),M(l,t.spatialReference)):g.PM(t,l,c,e,b,d)};g.PM=function(t,l,c,a,b,d){if(null===t)return null;if(0===t.length)return[];for(var e=[],f=0;f<t.length;f++)e.push(N(t[f]));l=y.ac.uU(e,P(t[0]),l,a,b,d,y.fc.Zd(Z(c,3)));for(f=0;f<l.length;f++)l[f]=M(l[f],t[0].spatialReference);return l};g.buffer=function(t,l,c,a){void 0===a&&(a=!1);if(!1===ea(t))return l=y.ac.buffer(N(t),P(t),l,y.fc.Zd(Z(c,3)),!1,0,NaN),M(l,t.spatialReference);
if("[object Array]"!==Object.prototype.toString.call(l)){for(var b=[],d=0;d<t.length;d++)b.push(l);l=b}if(l.length!=t.length){if(0==l.length)throw Error("Illegal Argument Exception");b=[];var e=0;for(d=0;d<t.length;d++)void 0===l[d]?b.push(e):(b.push(l[d]),e=l[d]);l=b}return g.QC(t,l,c,!1,a,"geodesic",NaN)};g.geodesicBuffer=function(t,l,c,a,b,d){if(!1===ea(t))return void 0===b&&(b=NaN),l=y.ac.buffer(N(t),P(t),l,y.fc.Zd(Z(c,0)),!0,la(a),b),M(l,t.spatialReference);if("[object Array]"!==Object.prototype.toString.call(l)){for(var e=
[],f=0;f<t.length;f++)e.push(l);l=e}if(l.length!=t.length){if(0==l.length)throw Error("Illegal Argument Exception");e=[];var h=0;for(f=0;f<t.length;f++)void 0===l[f]?e.push(h):(e.push(l[f]),h=l[f]);l=e}return g.QC(t,l,c,!0,a,b,d)};g.QC=function(t,l,c,a,b,d,e){if(null===t)return null;if(0===t.length)return[];void 0===e&&(e=NaN);for(var f=[],h=0;h<t.length;h++)f.push(N(t[h]));l=y.ac.LN(f,P(t[0]),l,y.fc.Zd(Z(c,0)),a,b,la(d),e);for(h=0;h<l.length;h++)l[h]=M(l[h],t[0].spatialReference);return l};g.nearestCoordinate=
function(t,l,c){void 0===c&&(c=!0);l=y.ac.dz(N(t),N(l),c);return{coordinate:M(l.Wy(),t.spatialReference),distance:l.Yy(),isRightSide:l.Iz(),vertexIndex:l.Va(),isEmpty:l.B()}};g.nearestVertex=function(t,l){l=y.ac.ez(N(t),N(l));return{coordinate:M(l.Wy(),t.spatialReference),distance:l.Yy(),isRightSide:l.Iz(),vertexIndex:l.Va(),isEmpty:l.B()}};g.nearestVertices=function(t,l,c,a){l=N(l);c=y.ac.fz(N(t),l,c,a);a=[];for(l=0;l<c.length;l++)!1===c[l].B()&&a.push({coordinate:M(c[l].Wy(),t.spatialReference),
distance:c[l].Yy(),isRightSide:c[l].Iz(),vertexIndex:c[l].Va(),isEmpty:c[l].B()});return a};g.generalize=function(t,l,c,a){l=y.ac.MQ(N(t),P(t),l,c,y.fc.Zd(Z(a,3)));return M(l,t.spatialReference)};g.densify=function(t,l,c){l=y.ac.Rr(N(t),P(t),l,y.fc.Zd(Z(c,3)));return M(l,t.spatialReference)};g.geodesicDensify=function(t,l,c,a){void 0===a&&(a=0);l=y.ac.My(N(t),P(t),l,y.fc.Zd(Z(c,3)),a);return M(l,t.spatialReference)};g.rotate=function(t,l,c){if(void 0===c||null===c)void 0!==t.x?c=t:void 0!==t.xmin?
(!1===t instanceof aa&&(t=ja?U(t):Y(t)),c=ja?t.get("center"):t.getCenter()):(!1===t instanceof aa&&(t=ja?U(t):Y(t)),c=ja?t.get("extent").get("center"):t.getExtent().getCenter());l=ja?y.kp.rotate(t.toJSON?t.toJSON():t,l,c.toJSON?c.toJSON():c):y.kp.rotate(t.toJson?t.toJson():t,l,c.toJson?c.toJson():c);ja?(l=U(l),l.set("spatialReference",t.spatialReference)):(l=Y(l),l.setSpatialReference(t.spatialReference));return l};g.flipHorizontal=function(t,l){if(void 0===l||null===l)void 0!==t.x?l=t:void 0!==t.xmin?
(!1===t instanceof aa&&(t=ja?U(t):Y(t)),l=ja?t.get("center"):t.getCenter()):(!1===t instanceof aa&&(t=ja?U(t):Y(t)),l=ja?t.get("extent").get("center"):t.getExtent().getCenter());l=ja?y.kp.gF(t.toJSON?t.toJSON():t,l.toJSON?l.toJSON():l):y.kp.gF(t.toJson?t.toJson():t,l.toJson?l.toJson():l);ja?(l=U(l),l.set("spatialReference",t.spatialReference)):(l=Y(l),l.setSpatialReference(t.spatialReference));return l};g.flipVertical=function(t,l){if(void 0===l||null===l)void 0!==t.x?l=t:void 0!==t.xmin?(!1===t instanceof
aa&&(t=ja?U(t):Y(t)),l=ja?t.get("center"):t.getCenter()):(!1===t instanceof aa&&(t=ja?U(t):Y(t)),l=ja?t.get("extent").get("center"):t.getExtent().getCenter());l=ja?y.kp.hF(t.toJSON?t.toJSON():t,l.toJSON?l.toJSON():l):y.kp.hF(t.toJson?t.toJson():t,l.toJson?l.toJson():l);ja?(l=U(l),l.set("spatialReference",t.spatialReference)):(l=Y(l),l.setSpatialReference(t.spatialReference));return l};g.planarArea=function(t,l){if(null===t)throw Error("Illegal Argument Exception");return y.ac.CU(N(t),P(t),y.fc.Zd(Z(l,
2)))};g.planarLength=function(t,l){if(null===t)throw Error("Illegal Argument Exception");return y.ac.DU(N(t),P(t),y.fc.Zd(Z(l,3)))};g.geodesicArea=function(t,l,c){if(null===t)throw Error("Illegal Argument Exception");return y.ac.SQ(N(t),P(t),y.fc.Zd(Z(l,2)),la(c))};g.geodesicLength=function(t,l,c){if(null===t)throw Error("Illegal Argument Exception");return y.ac.VQ(N(t),P(t),y.fc.Zd(Z(l,0)),la(c))};g._enableProjection=function(t){g.eD=!0;y.IL.bind(t)};g.dm=function(t){return L(t).Kn()};g._getTransformation=
function(t,l,c){void 0===c&&(c=null);var a=null,b=null;if(c){if(!c.spatialReference)throw y.i.O("AOI missing Spatial Reference");a=N(c);b=L(c.spatialReference).Kn()}t=y.du.RR(L(t).Kn(),L(l).Kn(),a,b);return null!==t?t:null};g._getTransformationBySuitability=function(t,l,c){void 0===c&&(c=null);var a=null,b=null;if(c){if(!c.spatialReference)throw y.i.O("AOI missing Spatial Reference");a=N(c);b=L(c.spatialReference).Kn()}return y.du.SR(L(t).Kn(),L(l).Kn(),a,b)};g.mM=function(t,l,c){var a=null;if(c){var b=
c.getGTListEntry();if(null!==b){a=new y.kC(null);for(var d=0,e=b.steps;d<e.length;d++){b=e[d];var f=new y.xx(b.geogtran);b.isInverse&&f.Gz();a.add(f)}a=y.xr.Or(g.dm(t),g.dm(l),a);c.assignCachedGe(t,l,a);return a}}if(null===a&&c&&c.steps&&0<c.steps.length){a=new y.kC(null);d=0;for(e=c.steps;d<e.length;d++)b=e[d],-1!=b.wkid&&null!==b.wkid&&void 0!==b.wkid?a.add(y.xx.create(b.wkid,b.isInverse)):a.add(y.xx.sP(b.wkt,b.isInverse));a=y.xr.Or(g.dm(t),g.dm(l),a);c.assignCachedGe(t,l,a);return a}return y.xr.Or(g.dm(t),
g.dm(l),a)};g._project=function(t,l,c,a,b){void 0===a&&(a=null);void 0===b&&(b=!1);if(!1===this.eD)throw Error("Projection Engine must be enabled using enableProjection");if(0===t.length)return[];if(a){var d=a.getCachedGeTransformation(l,c);d||(d=g.mM(l,c,a));l=[];var e=0}else d=y.xr.Or(g.dm(l),g.dm(c),null),l=[],e=0;for(;e<t.length;e++)a=t[e],l.push(g.OC(a,c,d,b));return l};g.OC=function(t,l,c,a){t=y.ac.Ah(N(t),c);return a?F(t,l):M(t,l)};g.eD=!1;return g}()})},"jimu/layoutManagers/BaseLayoutManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/html dijit/_WidgetBase dojo/Deferred dojo/promise/all ../utils ../WidgetPlaceholder ../OnScreenWidgetIcon ./A11yLayoutManager".split(" "),
function(qa,O,T,aa,ha,ka,ca,va,ba,Y,U){var Z=null;var la=qa([ha],{constructor:function(){this.widgetPlaceholders=[];this.onScreenWidgetIcons=[];this.invisibleWidgetIds=[]},name:"BaseLayoutManager",mapId:"map",map:null,layoutId:"jimu-layout-manager",postCreate:function(){this.containerNode=this.domNode;this.layoutId=jimuConfig.layoutId},resize:function(){},isSupportEdit:function(){return!1},getMapDiv:function(){},setMap:function(M){this.map=M},onEnter:function(M,I){var L=new ka;this.appConfig=M;this.mapId=
I;L.resolve();return L},onLeave:function(){},onThemeLoad:function(){},loadAndLayout:function(M){},openWidget:function(M){},onLayoutChange:function(M){},onWidgetChange:function(M,I){},onGroupChange:function(M,I){},onWidgetPoolChange:function(M,I){this.reloadControllerWidget(M,I.controllerId)},onOnScreenOrderChange:function(M,I){T.forEach(I,O.hitch(this,function(L){L.uri?T.some(this.onScreenWidgetIcons,O.hitch(this,function(N){if(N.configId===L.id)return aa.setStyle(N.domNode,va.getPositionStyle({top:L.position.top,
left:L.position.left,right:L.position.right,bottom:L.position.bottom,width:40,height:40})),N.moveTo(L.position),!0})):T.some(this.widgetPlaceholders,O.hitch(this,function(N){if(N.index===L.placeholderIndex){var P=va.getPositionStyle({top:L.position.top,left:L.position.left,right:L.position.right,bottom:L.position.bottom,width:40,height:40});aa.setStyle(N.domNode,P);return!0}}))}))},onActionTriggered:function(M){},onLayoutDefinitionChange:function(M,I){},onOnScreenGroupsChange:function(M,I){},destroyOnScreenWidgetsAndGroups:function(M){},
loadOnScreenWidgets:function(M){var I=[];T.forEach(M.widgetOnScreen.widgets,function(L){!1===L.visible?this.invisibleWidgetIds.push(L.id):I.push(this.loadOnScreenWidget(L,M))},this);return ca(I)},loadOnScreenWidget:function(M,I){var L=new ka;if("config"===I.mode&&!M.uri)return I=this._createOnScreenWidgetPlaceHolder(M),L.resolve(I),L;if(!M.uri)return L.resolve(null),L;M.inPanel||M.closeable?(I=this._createOnScreenWidgetIcon(M),L.resolve(I)):this.widgetManager.loadWidget(M).then(O.hitch(this,function(N){try{N.setPosition(N.position),
this.widgetManager.openWidget(N)}catch(P){console.log(console.error("fail to startup widget "+N.name+". "+P.stack))}N.configId=M.id;L.resolve(N)}),function(N){L.reject(N)});return L},onOnScreenWidgetChange:function(M,I){I=M.getConfigElementById(I.id);I.isController?this.reloadControllerWidget(M,I.id):(T.forEach(this.widgetPlaceholders,function(L){L.configId===I.id&&(L.destroy(),this.loadOnScreenWidget(I,M))},this),this.removeDestroyed(this.widgetPlaceholders),this._updatePlaceholder(M),T.forEach(this.onScreenWidgetIcons,
function(L){if(L.configId===I.id){var N=L.state;L.destroy();this.loadOnScreenWidget(I,M).then(function(P){if(I.uri&&"opened"===N)P.onClick()})}},this),this.removeDestroyed(this.onScreenWidgetIcons),T.forEach(this.widgetManager.getOnScreenOffPanelWidgets(),function(L){L.configId===I.id&&(L.destroy(),!1===I.visible?0>this.invisibleWidgetIds.indexOf(I.id)&&this.invisibleWidgetIds.push(I.id):this.loadOnScreenWidget(I,M))},this),T.forEach(this.invisibleWidgetIds,function(L){L===I.id&&!1!==I.visible&&(this.loadOnScreenWidget(I,
M),L=this.invisibleWidgetIds.indexOf(I.id),this.invisibleWidgetIds.splice(L,1))},this),I.isOnScreen||T.forEach(this.widgetManager.getControllerWidgets(),function(L){L.widgetIsControlled(I.id)&&this.reloadControllerWidget(M,L.id)},this))},destroyOnScreenWidgetIcons:function(){T.forEach(this.onScreenWidgetIcons,function(M){M.destroy()},this);this.onScreenWidgetIcons=[]},destroyOnScreenOffPanelWidgets:function(){T.forEach(this.widgetManager.getOnScreenOffPanelWidgets(),function(M){M.isController?this._destroyControllerWidget(M):
this.widgetManager.destroyWidget(M)},this)},destroyWidgetPlaceholders:function(){T.forEach(this.widgetPlaceholders,function(M){M.destroy()},this);this.widgetPlaceholders=[]},removeDestroyed:function(M){var I=[];T.forEach(M,function(L){L._destroyed&&I.push(L)});T.forEach(I,function(L){L=M.indexOf(L);M.splice(L,1)})},_createOnScreenWidgetPlaceHolder:function(M){var I="map"===M.position.relativeTo?this.mapId:this.layoutId;var L=O.clone(M);L.position.width=40;L.position.height=40;var N=va.getPositionStyle(L.position);
M=new ba({index:L.placeholderIndex,configId:M.id});aa.setStyle(M.domNode,N);aa.place(M.domNode,I);this.widgetPlaceholders.push(M);return M},_createOnScreenWidgetIcon:function(M){var I=new Y({panelManager:this.panelManager,widgetManager:this.widgetManager,widgetConfig:M,configId:M.id,map:this.map});"map"===M.position.relativeTo?aa.place(I.domNode,this.mapId):aa.place(I.domNode,this.layoutId);aa.setStyle(I.domNode,va.getPositionStyle({top:M.position.top,left:M.position.left,right:M.position.right,bottom:M.position.bottom,
width:40,height:40}));I.startup();!this.openAtStartWidget&&M.openAtStart&&(I.switchToOpen(),this.openAtStartWidget=M.name);this.onScreenWidgetIcons.push(I);return I},reloadControllerWidget:function(M,I){var L=this.widgetManager.getWidgetById(I);if(L){var N=L.getOpenedIds(),P=L.windowState;this._destroyControllerWidget(L);this._loadControllerWidget(M,I,N,P)}else this._loadControllerWidget(M,I)},_doPostLoad:function(){require(["dynamic-modules/postload"])},_destroyControllerWidget:function(M){T.forEach(M.getAllConfigs(),
function(I){if(I.widgets)this.panelManager.destroyPanel(I.id+"_panel"),T.forEach(I.widgets,function(N){this.panelManager.destroyPanel(N.id+"_panel")},this);else{var L=this.widgetManager.getWidgetById(I.id);L&&(I.inPanel?this.panelManager.destroyPanel(L.getPanel()):this.widgetManager.destroyWidget(L))}},this);this.widgetManager.destroyWidget(M)},_loadControllerWidget:function(M,I,L,N){I=M.getConfigElementById(I);!1!==I.visible&&this.loadOnScreenWidget(I,M).then(O.hitch(this,function(P){N&&this.widgetManager.changeWindowStateTo(P,
N);L&&P.setOpenedIds(L)}))},_updatePlaceholder:function(M){T.forEach(this.widgetPlaceholders,function(I){I.setIndex(M.getConfigElementById(I.configId).placeholderIndex)},this)}});la.extend(U);la.getInstance=function(){null===Z&&(Z=new la);return Z};return la})},"jimu/WidgetPlaceholder":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/html","dijit/_WidgetBase","./utils"],function(qa,O,T,aa,ha){return qa(aa,{"class":"jimu-widget-placeholder",postCreate:function(){this.inherited(arguments);
this.indexNode=T.create("div",{"class":"inner",innerHTML:this.index},this.domNode);T.setAttr(this.domNode,"title",window.jimuNls.widgetPlaceholderTooltip)},moveTo:function(ka){var ca={left:"auto",right:"auto",bottom:"auto",top:"auto",width:"auto",height:"auto"};ca=O.mixin(ca,ha.getPositionStyle(ka));delete ca.width;delete ca.height;T.setStyle(this.domNode,ca)},setIndex:function(ka){this.index=ka;this.indexNode.innerHTML=ka}})})},"jimu/OnScreenWidgetIcon":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/html dojo/on dojo/keys dijit/Tooltip dijit/_WidgetBase ./utils".split(" "),
function(qa,O,T,aa,ha,ka,ca,va,ba){return qa(va,{"class":"jimu-widget-onscreen-icon",postCreate:function(){this.inherited(arguments);this.iconNode=aa.create("img",{src:this.widgetConfig.icon,alt:this.widgetConfig.label},this.domNode);window.isRTL&&this.widgetConfig.mirrorIconForRTL&&aa.addClass(this.iconNode,"jimu-flipx");aa.setAttr(this.domNode,"title",this.widgetConfig.label);aa.setAttr(this.domNode,"data-widget-name",this.widgetConfig.name);aa.setAttr(this.domNode,"tabindex",this.widgetConfig.tabIndex?
this.widgetConfig.tabIndex:this.widgetConfig.tabIndexJimu);aa.setAttr(this.domNode,"role","button");this.own(ha(this.domNode,"click",O.hitch(this,function(){this.onClick()})));this.own(ha(this.domNode,"keydown",O.hitch(this,function(Y){if(Y.keyCode===ka.ENTER||Y.keyCode===ka.SPACE)this.onClick();else Y.keyCode===ka.ESCAPE&&this.map.container.focus()})));ba.addTooltipByDomNode(ca,this.domNode,this.widgetConfig.label);this.position=O.clone(this.widgetConfig.position);"map"===this.widgetConfig.position.relativeTo&&
this.own(ha(this.map,"resize",O.hitch(this,function(){var Y=O.clone(this.position);delete Y.width;delete Y.height;this.panel&&this.panel.setPosition(Y)})));this.state="closed"},startup:function(){this.inherited(arguments)},onClick:function(){"closed"===this.state?this.switchToOpen():this.switchToClose()},moveTo:function(Y){var U={left:"auto",right:"auto",bottom:"auto",top:"auto",width:"auto",height:"auto"};U=O.mixin(U,ba.getPositionStyle(Y));delete U.width;delete U.height;aa.setStyle(this.domNode,
U);this.position=O.clone(Y);this.widgetConfig&&this.widgetConfig.panel&&(this.widgetConfig.panel.position=O.clone(Y),this.widgetConfig.position=O.clone(Y));this.panel&&this.panel.setPosition(O.clone(Y));this.widget&&this.widget.setPosition(this.getOffPanelWidgetPosition(this.widget))},destroy:function(){this.panel?this.panelManager.destroyPanel(this.panel):this.widget&&this.widgetManager.destroyWidget(this.widget);this.inherited(arguments)},switchToOpen:function(){this.state="opened";this.panelManager.closeAllPanelsInGroup(this.widgetConfig.gid);
T.forEach(this.widgetManager.getOnScreenOffPanelWidgets(),function(Y){Y.closeable&&this.widgetManager.closeWidget(Y)},this);aa.addClass(this.domNode,"jimu-state-selected");this._showLoading();!1===this.widgetConfig.inPanel?this.widgetManager.loadWidget(this.widgetConfig).then(O.hitch(this,function(Y){this.widget=Y;Y.setPosition(this.getOffPanelWidgetPosition(Y));this.widgetManager.openWidget(Y);this.own(ha(Y,"close",O.hitch(this,function(){this.switchToClose();this.iconNode.parentNode.focus()})));
this._hideLoading()})):this.panelManager.showPanel(O.clone(this.widgetConfig)).then(O.hitch(this,function(Y){this.panel=Y;this.own(ha(Y,"close",O.hitch(this,function(){this.switchToClose();this.iconNode.parentNode.focus()})));this.own(ha(Y.closeNode,"keydown",O.hitch(this,function(U){U.keyCode===ka.ESCAPE&&(U.stopPropagation(),this.iconNode.parentNode.focus())})));this._hideLoading()}))},switchToClose:function(){this.state="closed";aa.removeClass(this.domNode,"jimu-state-selected");!1===this.widgetConfig.inPanel?
this.widgetManager.closeWidget(this.widget):this.panelManager.closePanel(this.panel)},getOffPanelWidgetPosition:function(Y){var U={relativeTo:Y.position.relativeTo},Z=aa.getMarginBox(this.domNode);Y=this.widgetManager.getWidgetMarginBox(Y);var la=aa.getMarginBox("map"===U.relativeTo?this.map.id:jimuConfig.layoutId),M=Z.t+Z.h+1;M+Y.h>la.h?U.bottom=la.h-Z.t+1:U.top=M;window.isRTL?U.right=0>Z.l+Z.w-Y.w?0:Z.l+Z.w-Y.w:Z.l+Y.w>la.w?U.right=0:U.left=Z.l;return U},_showLoading:function(){aa.setAttr(this.iconNode,
"src",require.toUrl("jimu")+"/images/loading_circle.gif")},_hideLoading:function(){aa.setAttr(this.iconNode,"src",this.widgetConfig.icon)}})})},"jimu/layoutManagers/A11yLayoutManager":function(){define("dojo/_base/lang dojo/on dojo/_base/html dojo/keys dojo/query esri/lang dijit/Tooltip dojo/dom-geometry jimu/utils".split(" "),function(qa,O,T,aa,ha,ka,ca,va,ba){var Y={TabindexForSplash:1,TabindexForSkipLinks:101,TabindexRangeForController:1E4,TabindexRangeForWidget:200,_setTabindex:function(U,Z){function la(E,
y){E&&("undefined"!==typeof E.bottom&&(E.top=y.h-E.bottom-100,delete E.bottom),"undefined"!==typeof E.right&&(E.left=y.w-E.right-100,delete E.right))}function M(E,y,Q){y=qa.clone(y.position||y.panel&&y.panel.position);Q=qa.clone(Q.position||Q.panel&&Q.panel.position);la(y,E);la(Q,E);return y.top===Q.top?y.left-Q.left:y.top-Q.top}var I=[],L=[],N=!1,P=null;Z?U.visitElement(function(E,y){y.isOnScreen&&(y=E.position||E.panel&&E.panel.position)&&!Array.isArray(E.widgets)&&"widgetOnScreen"===E.gid&&E.visible&&
("browser"===y.relativeTo?(I.push(E),"Splash"===E.name&&(N=!0)):L.push(E))}):U.visitElement(function(E,y){y.isOnScreen&&(y=E.position||E.panel&&E.panel.position)&&("widgetOnScreen"===E.gid&&E.visible||!E.visible&&E.panel)&&("browser"===y.relativeTo?("AttributeTable"===E.name?P=E:I.push(E),"Splash"===E.name&&(N=!0)):L.push(E))});U=va.getMarginBox(this.layoutId);var ea=va.getMarginBox(this.mapId);I=I.sort(qa.hitch(this,M,U));L=L.sort(qa.hitch(this,M,ea));Z?I.unshift(this.map):I.push(this.map);P&&L.push(P);
var F=Y.TabindexForSplash;N?I.every(function(E){return"Splash"===E.name?(E.tabIndex=F,!1):!0}):(U=ha("#skipContainer")[0],T.setAttr(U,"tabindex",F+""),this.own(O(U,"focus",qa.hitch(this,function(){ba.focusOnFirstSkipLink()}))));this._initSkipLinks(Z,I,P);F+=Y.TabindexRangeForWidget;Z?(I.forEach(function(E){"Splash"!==E.name&&(E.tabIndex=F,F=E.isController?F+Y.TabindexRangeForController:F+Y.TabindexRangeForWidget)}),F=this._initGridLayoutPanels(F),this._initGridMapEvents(F)):(I.forEach(function(E){"Splash"!==
E.name&&(E.inPanel?E.tabIndexJimu=F:"map"===E.id?E.container.tabIndex=F:E.tabIndex=F,F=E.isController?F+Y.TabindexRangeForController:F+Y.TabindexRangeForWidget)}),this._initAbsoluteMapEvents());U=ha(".trapLinkNode");Z=U[0];this.lastTrapNode=U[1];U=ka.substitute({value:window.jimuNls.skips.skips},window.jimuNls.skips.tabAway);T.setAttr(this.lastTrapNode,"aria-label",U);ba.addTooltipByDomNode(ca,this.lastTrapNode,U);this.own(O(Z,"focus",qa.hitch(this,function(E){ba.tryToFocusSplashWidget(E)||this.lastTrapNode.focus()})));
this.own(O(this.lastTrapNode,"keydown",qa.hitch(this,function(E){E.shiftKey&&E.keyCode===aa.TAB&&(E.preventDefault(),ba.focusOnFirstSkipLink())})));F+=1E3;L.forEach(function(E){E.inPanel?E.tabIndexJimu=F:E.tabIndex=F;F=E.isController?F+Y.TabindexRangeForController:F+Y.TabindexRangeForWidget})},_initGridLayoutPanels:function(U){var Z=ha(".lm_item.lm_stack",this.layoutContainer);window._panelHandler=Z.on("focus",qa.hitch(this,function(I){window._panelHandler&&window._panelHandler.remove();ba.tryToFocusSplashWidget(I)||
ba.focusOnFirstSkipLink()}));for(var la=0;la<=Z.length-1;la++){var M=Z[la];M.tabIndex=U-1;this.own(O(M,"keydown",qa.hitch(this,function(I,L){T.hasClass(L.target,"lm_stack")?L.keyCode===aa.ENTER?(I=ha(".jimu-widget",I)[0])&&(T.hasClass(I.parentNode,"map")?this.map.container.focus():ba.focusFirstFocusNode(I)):L.keyCode!==aa.TAB||L.shiftKey||I.nextSibling||I.parentNode.nextSibling||(L.preventDefault(),this.lastTrapNode.focus()):L.keyCode===aa.ESCAPE&&I.focus()},M)))}return U},_initMapAttrs:function(U){U&&
T.setAttr(this.map.container,"tabindex",U);T.setAttr(this.map.container,"aria-label",window.jimuNls.common.mapArea);ba.addTooltipByDomNode(ca,this.map.container,window.jimuNls.common.mapArea)},_initGridMapEvents:function(U){this._initMapAttrs(U);this.own(O(this.map.container,"keydown",qa.hitch(this,function(Z){"map"===T.getAttr(Z.target,"id")&&Z.shiftKey&&Z.keyCode===aa.TAB&&Z.preventDefault()})));this.own(O(this.map.container,"focus",qa.hitch(this,function(Z){ba.isInNavMode()&&"map"===T.getAttr(Z.target,
"id")&&(Z=document.getElementById("map_container"),Z.addEventListener("mouseover",function(){}),Z.simulateEvent=new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0}),this.map.isKeyboardNavigationOrigin=this.map.isKeyboardNavigation,Z.dispatchEvent(Z.simulateEvent)&&this.map.enableKeyboardNavigation())})));this.own(O(this.map.container,"blur",qa.hitch(this,function(Z){ba.isInNavMode()&&"map"===T.getAttr(Z.target,"id")&&(document.getElementById("map_container").removeEventListener("mouseover",
function(){}),this.map.isKeyboardNavigationOrigin||this.map.disableKeyboardNavigation())})))},_initAbsoluteMapEvents:function(){this._initMapAttrs();this.own(O(this.map.container,"keydown",qa.hitch(this,function(U){"map"===T.getAttr(U.target,"id")&&U.keyCode===aa.ESCAPE&&ba.trapToNextFocusContainer(this.map.container)})));window.isMoveFocusWhenInit=!0;this.own(O(this.map.container,"focus",qa.hitch(this,function(U){ba.isInNavMode()&&"map"===T.getAttr(U.target,"id")&&!this.widgetManager._resetFirstFocusNode()&&
(U=document.getElementById("map_container"),U.addEventListener("mouseover",function(){}),U.simulateEvent=new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0}),this.map.isKeyboardNavigationOrigin=this.map.isKeyboardNavigation,U.dispatchEvent(U.simulateEvent)&&this.map.enableKeyboardNavigation())})));this.own(O(this.map.container,"blur",qa.hitch(this,function(U){ba.isInNavMode()&&"map"===T.getAttr(U.target,"id")&&!this.widgetManager._resetFirstFocusNode()&&(document.getElementById("map_container").removeEventListener("mouseover",
function(){}),this.map.isKeyboardNavigationOrigin||this.map.disableKeyboardNavigation())})))},_initSkipLinks:function(U,Z,la){var M=Y.TabindexForSkipLinks,I=window.jimuNls.skips,L="",N=ha("#skipContainer")[0];T.setAttr(N,"aria-label",I.skips);Z.forEach(function(P){if("Splash"!==P.name){if("map"===P.id)var ea=I.map;else if(P.panel&&P.widgets){if(0===P.widgets.length)return;ea=P.isOnScreen?I.sidePanel:P.label}else{if(P.inPanel)return;ea=ka.substitute({value:P.label},I.skipTo)}L+='\x3cli\x3e\x3ca role\x3d"link" id\x3d"skip_'+
P.id+'" aria-hidden\x3d"true" tabindex\x3d"'+M+'"\x3e'+ea+"\x3c/a\x3e\x3c/li\x3e"}});la&&(Z=ka.substitute({value:la.label},I.skipTo),L+='\x3cli\x3e\x3ca role\x3d"link" id\x3d"skip_'+la.id+'" aria-hidden\x3d"true" tabindex\x3d"'+M+'"\x3e'+Z+"\x3c/a\x3e\x3c/li\x3e");N.innerHTML="\x3cul\x3e"+L+"\x3c/ul\x3e";la=ha("a",N);this.own(O(la,"focus",qa.hitch(this,function(P){window._panelHandler&&window._panelHandler.remove();this.widgetManager._resetFirstFocusNode()||T.setAttr(P.target,"aria-hidden","false")})));
this.own(O(la,"blur",qa.hitch(this,function(P){T.setAttr(P.target,"aria-hidden","true")})));this.own(O(la,"keydown",qa.hitch(this,function(P){if(P.keyCode===aa.ENTER){P=P.target.id.split("skip_")[1];var ea=ha("#"+P)[0];ea||(ea=ha("#"+P+"_panel")[0]);ea.focus()}else{var F;U&&(F=ha(".lm_item.lm_stack",this.layoutContainer));!P.target.parentNode.previousSibling&&P.shiftKey&&P.keyCode===aa.TAB?(P.preventDefault(),U?ea=F[F.length-1]:(P=ba.getFrameNodesByAsc(),ea=P[P.length-1])):P.keyCode===aa.ESCAPE&&
(ea=ba.trapToNextFocusContainer(N),U&&!ea&&(ea=F[0]));ea&&ea.focus()}})))}};return Y})},"jimu/layoutManagers/GridMobileController":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/html dojo/on dojo/aspect dojo/dom-construct dojo/dom-geometry dojo/dom-class dijit/_WidgetBase dijit/_TemplatedMixin jimu/PanelManager jimu/WidgetManager jimu/utils".split(" "),function(qa,O,T,aa,ha,ka,ca,va,ba,Y,U,Z,la,M){return qa([Y,U],{baseClass:"jimu-dnd-mobile-controller",templateString:'\x3cdiv\x3e\x3cdiv class\x3d"icon-section" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"container-section" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e',
appConfig:null,panelContainerNode:null,openIds:null,toolsCount:0,panels:null,openPanelIds:null,widgetOnCloseHandlerIds:null,panelOnCloseHandlerIds:null,postCreate:function(){this.inherited(arguments);this.panelManager=Z.getInstance();this.widgetManager=la.getInstance();this.openIds=[];this.openPanelIds=[];this.widgetOnCloseHandlerIds=[];this.panelOnCloseHandlerIds=[];this.panels={};this.createWidgetIcons();this.destroyUnusedPanels();0===this.toolsCount&&aa.setStyle(this.domNode,"display","none");
this.own(ha(this.iconNode,"click",O.hitch(this,function(I){I.stopPropagation();ba.contains(this.containerNode,"in")?(ba.remove(this.containerNode,"in"),ba.add(this.containerNode,"out")):(ba.remove(this.containerNode,"out"),ba.add(this.containerNode,"in"))})));this.own(ha(document.body,"click",O.hitch(this,function(I){ba.contains(this.containerNode,"in")&&!this.isPartOfPopup(I.target||I.srcElement)&&(ba.remove(this.containerNode,"in"),ba.add(this.containerNode,"out"))})))},_isPanelUsed:function(I){var L;
T.some(this.appConfig.widgetOnScreen.widgets,O.hitch(this,function(N){if(N.inPanel&&I===N.id+"_panel")return L=N,!0}));return L},destroyUnusedPanels:function(){for(var I=[],L,N,P=0;P<this.panelManager.panels.length;P++)L=this.panelManager.panels[P].id,(N=this._isPanelUsed(L))?this.panelManager.panels[P].reloadWidget(N):I.push(L);T.forEach(I,O.hitch(this,function(ea){this.panelManager.destroyPanel(ea)}))},destroyOnScreenWidgets:function(){T.forEach(this.appConfig.widgetOnScreen.widgets,function(I){I.inPanel?
this.panelManager.destroyPanel(I.id+"_panel"):this.widgetManager.destroyWidget(I.id)},this)},isPartOfPopup:function(I){var L=this.containerNode;return I===L||aa.isDescendant(I,L)},setConfig:function(I){this.appConfig=I;this.createWidgetIcons()},createWidgetIcons:function(){this.toolsCount=0;ca.empty(this.containerNode);this.appConfig&&this.appConfig.widgetOnScreen&&T.forEach(this.appConfig.widgetOnScreen.widgets,function(I){I.uri&&I.closeable&&(this._addItem(I),this.toolsCount++)},this)},_pushId:function(I){this._popId(I);
this.openPanelIds.push(I)},_popId:function(I,L){I=this.openPanelIds.indexOf(I);0<=I&&(this.openPanelIds.splice(I,1),L&&0<this.openPanelIds.length&&(L=this.openPanelIds[this.openPanelIds.length-1],this.panelManager.openPanel(L)))},_addItem:function(I){var L=O.clone(I),N=ca.create("div",{"class":"row"},this.containerNode);ca.create("div",{"class":"widget-icon column",style:"background: url("+I.icon+") no-repeat;"},N);ca.create("div",{"class":"widget-label jimu-ellipsis column",title:I.label,innerHTML:M.sanitizeHTML(I.label)},
N);this.own(ha(N,"click",O.hitch(this,function(P){P.stopPropagation();if(I.inPanel){P=va.getMarginBox(this.panelContainerNode);var ea=window.isRTL?{relativeTo:"browser",right:P.l,top:P.t,width:P.w,height:P.h}:{relativeTo:"browser",left:P.l,top:P.t,width:P.w,height:P.h};L.panel={uri:"themes/DashboardTheme/panels/OnScreenPanel/Panel",position:ea};this.panelManager.showPanel(L).then(O.hitch(this,function(F){this.panels[F.id]=F;this._pushId(F.id);F.setPosition(ea);0>this.panelOnCloseHandlerIds.indexOf(F.id)&&
(this.own(ka.after(F,"onClose",O.hitch(this,function(){this._popId(F.id,!0)}))),this.panelOnCloseHandlerIds.push(F.id));return F})).then(O.hitch(this,function(F){this.panelManager.openPanel(F)}))}else P=va.getMarginBox(N),this._toggleOffPanelWidget(I,P.l+P.w,P.t);ba.remove(this.containerNode,"in");ba.add(this.containerNode,"out")})))},_toggleOffPanelWidget:function(I,L,N){var P=this.openIds.indexOf(I.id);0<=P?(this.widgetManager.closeWidget(I.id),this.openIds.splice(P,1)):this.widgetManager.loadWidget(I).then(O.hitch(this,
function(ea){this.openIds.push(I.id);ea.setPosition({left:L,top:N,zIndex:100,relativeTo:"map"});this.widgetManager.openWidget(ea);0>this.widgetOnCloseHandlerIds.indexOf(I.id)&&(this.own(ka.after(ea,"onClose",O.hitch(this,function(){P=this.openIds.indexOf(I.id);0<=P&&this.openIds.splice(P,1)}))),this.widgetOnCloseHandlerIds.push(I.id))}))},setPanelPosition:function(I){T.forEach(this.openPanelIds,O.hitch(this,function(L,N){N===this.openPanelIds.length-1&&(I.zIndex=101);"opened"!==this.panels[L].state&&
"active"!==this.panels[L].state||this.panels[L].setPosition(I,!0)}))}})})},"*noref":1}});
define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/html dojo/topic dojo/on dojo/dom-construct dojo/dom-geometry dojo/Deferred dojo/debounce require ../WidgetManager ../PanelManager ../utils ../dijit/LoadingShelter ./BaseLayoutManager ./GridMobileController xstyle/css!../../libs/goldenlayout/goldenlayout-base.css".split(" "),function(qa,O,T,aa,ha,ka,ca,va,ba,Y,U,Z,la,M,I,L,N){var P=null;var ea=qa([L],{isEditing:!1,maxStackId:0,dashboardWidgets:[],dashboardPanels:{},currentMode:0,
_createLayoutDeferred:null,_isLastLayoutMobile:!1,_isDestroying:!1,nls:null,_addWidgetTipTemplate:'\x3cdiv class\x3d"tip"\x3e\x3cdiv class\x3d"idx"\x3e${groupIndex}\x3c/div\x3e\x3cdiv class\x3d"label"\x3e${this.nls.addWidgetTip}\x3c/div\x3e\x3c/div\x3e',name:"GridLayoutManager",constructor:function(F,E){this.widgetManager=Z.getInstance();this.panelManager=la.getInstance();this.widgetPlaceholders=[];this.preloadWidgetIcons=[];this.preloadGroupPanels=[];this.invisibleWidgetIds=[];M.isMobileUa()?this.own(ka(window,
"orientationchange",O.hitch(this,this.resize))):this.own(ka(window,"resize",O.hitch(this,this.resize)));this.id=E;this._createLayoutDeferred=null},postMixInProperties:function(){this.inherited(arguments);this.nls={};O.mixin(this.nls,window.jimuNls.gridLayout,window.jimuNls.common);this._addWidgetTipTemplate=this._addWidgetTipTemplate.replace("${this.nls.addWidgetTip}",this.nls.addWidgetTip)},isSupportEdit:function(){return!0},postCreate:function(){this.containerNode=this.domNode;this._isLastLayoutMobile=
window.appInfo.isRunInMobile},layout:null,map:null,mapContainer:null,mapId:"map",hlDiv:null,animTime:500,resize:function(){this._resizeLayout();T.forEach(this.widgetManager.getAllWidgets(),function(F){!1===F.inPanel&&F.resize()},this)},setMap:function(F){this.inherited(arguments);this.panelManager.setMap(F)},_resizeLayout:function(){if(window.appInfo.isRunInMobile){var F=va.getMarginBox(window.jimuConfig.layoutId);F=F.w>F.h?2:1;this.mobilePanel&&(this.currentMode!==F&&(this.currentMode=F,this.mobilePanel.setMobileLayout(F)),
this.mobilePanel.resize())}if(!this.isEditing&&this.layout){var E=$(this.layoutContainer);F=E.width();E=E.height();this.layout.updateSize(F,E)}else this.isEditing&&this.editingLayout&&(E=$(this.editLayoutDiv),F=E.width(),E=E.height(),this.editingLayout.updateSize(F,E))},loadAndLayout:function(F){this.appConfig=F;var E=new I;E.placeAt(this.layoutId);E.startup();this._setTabindex(F,!0);this._createLayoutDeferred&&!this._createLayoutDeferred.isResolved()?F=this._createLayoutDeferred:(F=new ba,F.resolve());
F.then(O.hitch(this,this._loadOnScreenGroups)).then(O.hitch(this,this._reArrangeWidgetsLayout,!0)).then(O.hitch(this,function(){E&&(E.destroy(),E=null);console.timeEnd("Load widgetOnScreen");ha.publish("preloadWidgetsLoaded");this._doPostLoad()}),O.hitch(this,function(){E&&(E.destroy(),E=null);console.timeEnd("Load widgetOnScreen");ha.publish("preloadWidgetsLoaded");this._doPostLoad()}))},createMapDiv:function(F){aa.byId(F)?this.mapDiv=aa.byId(F):this.mapDiv=aa.create("div",{id:F,style:O.mixin({position:"absolute",
backgroundColor:"#EEEEEE",overflow:"hidden",minWidth:"1px",minHeight:"1px"},M.getPositionStyle(this.appConfig.map.position))},this.layoutId)},getMapDiv:function(){return this.mapDiv},onThemeLoad:function(){this._resizeLayout()},_enableEditing:function(){this.isEditing||(this._createEditingLayout(),$(this.layoutContainer).addClass("hidden"),$(this.editContainer).removeClass("hidden"),$(this.modifyLayoutBtn).addClass("hidden"),this.isEditing=!0,this._resizeLayout())},_disableEditing:function(){$(this.layoutContainer).removeClass("hidden");
$(this.editContainer).addClass("hidden");$(this.modifyLayoutBtn).removeClass("hidden");this.isEditing=!1;this._resizeLayout()},_resetLayoutDefinition:function(){this._disableEditing();this._createLayout(!1,!1);ha.publish("editLayoutCancelled")},_saveLayoutDefinition:function(){var F=O.clone(this.editingLayout.toConfig()),E=O.clone(this.appConfig.layoutDefinition);this._simplifyLayoutDefinition(F.content[0]);this._disableEditing();var y=this.editingLayout.root.contentItems[0].getItemsByType("stack"),
Q=[];T.forEach(y,function(X){!T.some(X.contentItems,O.hitch(this,function(ra){if(ra.isComponent&&"map"===ra.config.componentName)return!0}))&&/^dd_group_\d+$/.test(X.config.id)&&Q.push(X.config.id)});E.layout.config.content=F.content;ha.publish("layoutDefinitionChanged",{layoutDefinition:E,groupIds:Q})},_simplifyLayoutDefinition:function(F){if("component"!==F.type)if("stack"===F.type){var E;F.activeItemIndex=0;T.some(F.content,O.hitch(this,function(y){if("component"===y.type&&"map"===y.componentName)return E=
y,!0}));E?(F.id="map",F.content=[E]):F.content=[]}else T.forEach(F.content,O.hitch(this,function(y){this._simplifyLayoutDefinition(y)}))},_bindLayoutEvents:function(){this.editingLayout.on("initialised",O.hitch(this,function(){this.editingLayout.createDragSource($(this.dragCreateBtn),{title:" ",type:"component",reorderEnabled:!1,componentName:"widget panel"});var F=this.editingLayout.root.contentItems[0].getItemsByType("stack"),E=[];T.forEach(F,function(y){/^dd_group_\d+$/.test(y.config.id)&&(y=parseInt(y.config.id.split("_")[2],
10),E.push(y))});0<E.length?(E=E.sort(function(y,Q){return y-Q}),this.maxStackId=E[E.length-1]):this.maxStackId=0;this._arrangeWidgetsInEditingLayout()}));this.editingLayout.on("stackCreated",O.hitch(this,function(F){this.maxStackId++;F.config.id||(F.config.id="dd_group_"+this.maxStackId)}))},_arrangeWidgetsInEditingLayout:function(){T.forEach(this.appConfig.widgetOnScreen.groups,O.hitch(this,function(F){F=this.appConfig.getConfigElementById(F.id);var E=this.editingLayout.root.contentItems[0].getItemsById(F.id),
y;E&&0<E.length&&"stack"===E[0].type&&(y=E[0]);y&&T.forEach(F.widgets,O.hitch(this,function(Q,X){var ra={id:Q.id,type:"component",title:Q.label,reorderEnabled:!1,componentName:"widget panel",componentState:{label:Q.label}};y.contentItems.length>X?(X=y.contentItems[X],X.config.id=Q.id,X.setTitle(Q.label)):y.addChild(ra)}))}))},_createActionBar:function(F){if(!this.actionBar){this.actionBar=ca.create("div",{"class":"layout-actionbar"},F);this.dragCreateBtn=ca.create("div",{"class":"jimu-btn jimu-float-leading jimu-leading-margin2 add-btn",
innerHTML:this.nls.dragToAdd},this.actionBar);F=ca.create("div",{"class":"jimu-btn-vacation jimu-float-trailing jimu-trailing-margin2 cancel-btn",innerHTML:this.nls.cancel},this.actionBar);var E=ca.create("div",{"class":"jimu-btn jimu-float-trailing save-btn",innerHTML:this.nls.ok},this.actionBar);this.own(ka(F,"click",O.hitch(this,this._resetLayoutDefinition)));this.own(ka(E,"click",O.hitch(this,this._saveLayoutDefinition)))}},_destroyActionBar:function(){ca.destroy(this.actionBar);this.actionBar=
null},_createLayout:function(F,E,y){return this._createLayoutDeferred&&!this._createLayoutDeferred.isResolved()?this._createLayoutDeferred.then(O.hitch(this,function(){return this._doCreateLayout(F,E,y)})):this._doCreateLayout(F,E,y)},_doCreateLayout:function(F,E,y){var Q=new ba;this._createLayoutDeferred=new ba;if(this.isEditing)return this._createEditingLayout();if(window.appInfo.isRunInMobile)var X=O.hitch(this,this._createMobileLayout);else this.mobileController&&(this.mobileController.destroyOnScreenWidgets(),
this.mobileController.destroy(),this.mobileController=null),X=O.hitch(this,this._createNormalLayout);y?X().then(O.hitch(this,function(){this._createLayoutDeferred.resolve();Q.resolve()})):F?X().then(O.hitch(this,this._loadOnScreenGroups)).then(O.hitch(this,this._reArrangeWidgetsLayout,E)).then(O.hitch(this,function(){this._createLayoutDeferred.resolve();Q.resolve()})):X().then(O.hitch(this,this._reArrangeWidgetsLayout,E)).then(O.hitch(this,function(){this._createLayoutDeferred.resolve();Q.resolve()}));
return Q},_detachWidgets:function(F){if("stack"===F.type){for(;1<F.contentItems.length;)F.removeChild(F.contentItems[0],!0);var E=F.contentItems[0];F.addChild({type:"component",componentName:"widget panel",title:" ",isClosable:!1});F.removeChild(E,!0)}else T.forEach(F.contentItems,O.hitch(this,function(y){this._detachWidgets(y)}))},_setupWidgets:function(F,E){F.isClosable=E;"component"!==F.type&&("stack"===F.type?0===F.content.length&&(F.content=[{type:"component",componentName:"widget panel",title:" ",
isClosable:E}]):T.forEach(F.content,O.hitch(this,function(y){this._setupWidgets(y)})))},_onActivePanelChanged:function(F){var E;if(!this._isDestroying&&"widget panel"===F.componentName&&F.config.id){(E=this.dashboardPanels[F.config.id])&&E.domNode?(0===F.container.getElement().find(".jimu-panel").length&&(F.container.getElement().html(E.domNode),F.container.on("resize",Y(O.hitch(this,function(){0<F.container.width&&0<F.container.height&&E&&E.resize()}),200))),E.resize(),this.panelManager.openPanel(E)):
this._loadDashboardWidget(F.config.id).then(O.hitch(this,function(X){X&&(F.container.getElement().html(X.domNode),F.container.on("resize",Y(O.hitch(this,function(){0<F.container.width&&0<F.container.height&&X.resize()}),200)),X.resize(),this.panelManager.openPanel(X))}));var y=F.parent.config.id,Q;T.some(this.appConfig.widgetOnScreen.groups,O.hitch(this,function(X){if(X.id===y)return Q=X.widgets,!0}));T.forEach(Q,O.hitch(this,function(X){X.id!==F.config.id&&(E=this.dashboardPanels[X.id])&&this.panelManager.closePanel(E)}))}},
_createNormalLayout:function(){var F=new ba;this._isDestroying=!1;this.layoutContainer||(this.layoutContainer=ca.create("div",{"class":"config"===this.appConfig.mode?"jimu-dnd-layout config":"jimu-dnd-layout"},this.layoutId),"config"===this.appConfig.mode&&(this.modifyLayoutBtn=ca.create("div",{"class":"jimu-dnd-layout modify-btn",innerHTML:'\x3cdiv class\x3d"jimu-ellipsis"\x3e\x3cspan class\x3d"feature-action icon-edit"\x3e\x3c/span\x3e'+this.nls.modifyLayout+"\x3c/div\x3e"},this.layoutId),this.own(ka(this.modifyLayoutBtn,
"click",O.hitch(this,function(){ha.publish("editLayout")})))));T.some(this.appConfig.widgetOnScreen.widgets,function(Q){if("themes/DashboardTheme/widgets/Header/Widget"===Q.uri)return Q.visible?aa.setStyle(this.layoutContainer,"top","80px"):(this._removeHighLight(Q.id),aa.setStyle(this.layoutContainer,"top",0)),!0},this);var E=this.layout,y=O.clone(this.appConfig.layoutDefinition.layout.config);"config"===this.appConfig.mode&&(y.settings.reorderEnabled=!1,y.settings.resizeEnabled=!1,y.settings.enableHeaderDragging=
!1,y.dimensions={borderWidth:5,dragProxyWidth:0,dragProxyHeight:0});this._setupWidgets(y.content[0],!1);U(["libs/goldenlayout/goldenlayout"],O.hitch(this,function(Q){"config"===this.appConfig.mode&&$(this.modifyLayoutBtn).removeClass("hidden");this.layout=new Q(y,this.layoutContainer);this.layout.registerComponent("widget panel",O.hitch(this,function(X,ra){var za=X.parent.parent.config.id,Aa;ra.widgetId||(ra=this._addWidgetTipTemplate,T.some(this.appConfig.widgetOnScreen.groups,function(ja){if(ja.id===
za)return"config"===this.appConfig.mode&&0===ja.widgets.length&&(Aa=ja.placeholderIndex),!0},this),Aa&&(ra=ra.replace("${groupIndex}",Aa),X.getElement().html(ra)))}));this.layout.registerComponent("map",O.hitch(this,function(X){X.setTitle("");this.mapContainer=X.getElement();$("#"+this.mapId).appendTo(this.mapContainer);E&&(this._isDestroying=!0,this._detachWidgets(E.root.contentItems[0]),E.destroy(),this._isDestroying=!1);this.mobilePanel&&(this.mobilePanel.destroy(),this.mobilePanel=null)}));this.layout.on("initialised",
O.hitch(this,function(){var X=$(this.layoutContainer),ra=X.width();X=0<X.height()?X.height():$("#"+this.layoutId).height();this.layout.updateSize(ra,X);F.resolve()}));this.layout.on("stackCreated",O.hitch(this,function(X){X.on("activeContentItemChanged",O.hitch(this,function(ra){this._onActivePanelChanged(ra)}))}));this.layout.init()}));return F},_createMobileLayout:function(){var F=new ba;this.modifyLayoutBtn&&$(this.modifyLayoutBtn).addClass("hidden");if(this.mobilePanel)this.mobilePanel.clearPanels(),
ca.place(this.mapId,this.mobilePanel.mapNode),F.resolve();else{this.layout&&(this._isDestroying=!0,this._detachWidgets(this.layout.root.contentItems[0]),this._isDestroying=!1);var E=va.getMarginBox(window.jimuConfig.layoutId);this._loadMobilePanel(this.layoutId,E.w>E.h?2:1).then(O.hitch(this,function(){this.layout&&(this.layout.destroy(),this.layout=null);F.resolve()}))}return F},_createEditingLayout:function(){this.editContainer||(this.editContainer=ca.create("div",{"class":"jimu-edit-layout hidden"},
this.layoutId),this._createActionBar(this.editContainer),this.editLayoutDiv=ca.create("div",{"class":"layout-container"},this.editContainer));var F=this.editingLayout,E=O.clone(this.appConfig.layoutDefinition.layout.config);E.settings.enableHeaderDropping=!1;E.settings.reorderEnabled=!1;E.dimensions={borderWidth:5,dragProxyWidth:0,dragProxyHeight:0};this._setupWidgets(E.content[0],!0);U(["libs/goldenlayout/goldenlayout"],O.hitch(this,function(y){this.editingLayout=new y(E,this.editLayoutDiv);this.editingLayout.registerComponent("widget panel",
O.hitch(this,function(Q){Q.getElement().html("")}));this.editingLayout.registerComponent("map",O.hitch(this,function(Q){Q.setTitle("");Q.getElement().html('\x3cdiv class\x3d"maptip"\x3e'+this.nls.mapArea+"\x3c/div\x3e");F&&F.destroy()}));this._bindLayoutEvents();this.editingLayout.init()}))},_destroyLayout:function(){ca.place(this.mapId,this.layoutId);this.layout&&(this.layout.destroy(),this.layout=null,ca.destroy(this.layoutContainer),this.layoutContainer=null,this.modifyLayoutBtn&&(ca.destroy(this.modifyLayoutBtn),
this.modifyLayoutBtn=null));this.editingLayout&&(this._destroyActionBar(),this.editingLayout.destroy(),this.editingLayout=null,ca.destroy(this.editContainer),this.editContainer=null)},destroyOnScreenWidgetsAndGroups:function(){this._destroyOnScreenWidgets();this._destroyOnScreenGroups()},onActionTriggered:function(F){if(!window.appInfo.isRunInMobile)if("editLayout"===F.action)this._enableEditing();else if("highLight"===F.action){var E=this._findContentItemById(F.elementId);E?E.isStack?$(E.element).addClass("highlight"):
E.isComponent&&$(E.tab.element).addClass("highlight"):(T.forEach(this.widgetPlaceholders,function(y){y.configId===F.elementId&&this._highLight(y)},this),T.forEach(this.onScreenWidgetIcons,function(y){y.configId===F.elementId&&this._highLight(y)},this),T.forEach(this.widgetManager.getOnScreenOffPanelWidgets(),function(y){y.configId===F.elementId&&this._highLight(y)},this))}else"removeHighLight"===F.action?this._removeHighLight(F.elementId):"showLoading"===F.action?(aa.setStyle(jimuConfig.loadingId,
"display","block"),aa.setStyle(jimuConfig.mainPageId,"display","none")):"showApp"===F.action&&(aa.setStyle(jimuConfig.loadingId,"display","none"),aa.setStyle(jimuConfig.mainPageId,"display","block"))},_findContentItemById:function(F,E){return(F=this.layout.root.contentItems[0].getItemsById(F))&&0<F.length&&(!E||E===F[0].type)?F[0]:null},_highLight:function(F){if(F.domNode){this.hlDiv&&this._removeHighLight(F);var E=va.getMarginBox(F.domNode);this.hlDiv=ca.create("div",{style:{position:"absolute",
left:E.l+"px",top:E.t+"px",width:E.w+"px",height:E.h+"px"},"class":"icon-highlight"},F.domNode,"before")}},_removeHighLight:function(F){/^dd_group_\d+$/.test(F)?(F=this._findContentItemById(F,"stack"))&&$(F.element).removeClass("highlight"):/^widgets_\w+_\d+$/.test(F)&&(F=this._findContentItemById(F,"component"))&&$(F.tab.element).removeClass("highlight");this.hlDiv&&(ca.destroy(this.hlDiv),this.hlDiv=null)},onEnter:function(F,E){this.appConfig=F;this.mapId=E;this.isEditing=!1;this.createMapDiv(E);
return this._createLayout(!1,!1,!0)},onLeave:function(){this._destroyLayout();this.map=null},onWidgetChange:function(F,E){this.appConfig=F;"themes/DashboardTheme/widgets/Header/Widget"===E.uri&&(E.visible?aa.setStyle(this.layoutContainer,"top","80px"):(this._removeHighLight(E.id),aa.setStyle(this.layoutContainer,"top",0)),this._resizeLayout());E=F.getConfigElementById(E.id);var y=this.dashboardPanels[E.id];y?(y.reloadWidget(E),this.layout&&(F=this.layout.root.contentItems[0].getItemsByType("component"))&&
0<F.length&&F.forEach(function(Q){Q.config.id===E.id&&Q.config.title!==E.label&&(Q.config.title=E.label,Q.setTitle(E.label))})):(this.mobileController&&(this.mobileController.destroy(),this.mobileController=new N({appConfig:this.appConfig,panelContainerNode:this.mobilePanel.widgetContainerNode}),this.mobileController.placeAt(this.mapId)),this.onOnScreenWidgetChange(F,E))},onOnScreenGroupsChange:function(F){this.appConfig=F;this._createLayout(!0,!1)},onGroupChange:function(F,E){this.appConfig=F;E=
F.getConfigElementById(E.id);E.isOnScreen?this._createLayout(!0,!1):(T.forEach(this.widgetManager.getControllerWidgets(),function(y){y.isControlled(E.id)&&this.reloadControllerWidget(F,y.id)},this),T.forEach(this.panelManager.panels,function(y){y.config.id===E.id&&y.updateConfig(E)},this))},_reArrangeWidgetsLayout:function(F){F&&this._destroyOnScreenWidgets();window.appInfo.isRunInMobile?(F&&this._loadMobileOnScreenWidgets(),this.mobilePanel.setPanels(this.dashboardWidgets,this.dashboardPanels)):
(F&&this.loadOnScreenWidgets(this.appConfig),this._reArrangeWidgetsInDesktopLayout())},_reArrangeWidgetsInDesktopLayout:function(){T.forEach(this.appConfig.widgetOnScreen.groups,O.hitch(this,function(F){F=this.appConfig.getConfigElementById(F.id);var E=this._findContentItemById(F.id,"stack");E&&T.forEach(F.widgets,O.hitch(this,function(y,Q){var X={id:y.id,type:"component",title:y.label,componentName:"widget panel",componentState:{widgetId:y.id}};E.contentItems.length>Q?(Q=E.contentItems[Q],Q.config.id=
y.id,Q.config.title=y.label,Q.config.componentState={widgetId:y.id},Q.setTitle(y.label),E.setActiveContentItem(Q)):E.addChild(X)}))}))},_loadMobileOnScreenWidgets:function(){this.mobileController=new N({appConfig:this.appConfig,panelContainerNode:this.mobilePanel.widgetContainerNode});this.mobileController.placeAt(this.mapId);T.forEach(this.appConfig.widgetOnScreen.widgets,function(F){F.uri&&F.visible&&!F.closeable&&this.loadOnScreenWidget(F,this.appConfig)},this)},_loadMobilePanel:function(F,E){var y=
this.appConfig.layoutDefinition.mobileLayout.panel,Q=new ba;U([y.uri],O.hitch(this,function(X){this.mobilePanel=new X({layoutId:this.layoutId,mapId:this.mapId,mobileLayout:E,config:{},layoutManager:this});this.own(ka(this.mobilePanel,"resized",Y(O.hitch(this,function(ra){this.mobileController&&this.mobileController.setPanelPosition(ra)}),200)));ca.place(this.mobilePanel.domNode,F);Q.resolve()}));return Q},_loadDashboardWidget:function(F){var E=new ba,y=this.dashboardPanels[F];if(y&&y.domNode)return E.resolve(this.dashboardPanels[F]),
E;var Q;T.some(this.appConfig.widgetOnScreen.groups,O.hitch(this,function(ra){return T.some(ra.widgets,O.hitch(this,function(za){if(za.id===F)return Q=za,!0}))}));if(!Q)return E.resolve(null),E;var X=this.appConfig.layoutDefinition.layout.panel;U([X.uri],O.hitch(this,function(ra){var za={config:Q,uri:X.uri,map:this.map,widgetManager:this.widgetManager,panelManager:this.panelManager,id:F+"_panel",position:{}};O.mixin(za,Q.options);try{var Aa=new ra(za);this.dashboardPanels[F]=Aa;E.resolve(Aa);console.log("panel ["+
za.id+"] created.")}catch(ja){console.log("create panel error: "+ja+", panelId: "+za.id),E.reject(ja)}}));return E},onLayoutDefinitionChange:function(F){this.appConfig=F;this._createLayout(!1,!1)},onLayoutChange:function(F){var E=window.appInfo.isRunInMobile,y=!1;this.isEditing||(E!==this._isLastLayoutMobile&&(y=!0,this._isLastLayoutMobile=E),this.appConfig=F,this._createLayout(!1,y).then(O.hitch(this,function(){T.forEach(this.widgetPlaceholders,function(Q){Q.moveTo(F.getConfigElementById(Q.configId).position)},
this);T.forEach(this.onScreenWidgetIcons,function(Q){Q.moveTo(F.getConfigElementById(Q.configId).position)},this);T.forEach(this.widgetManager.getOnScreenOffPanelWidgets(),function(Q){if(!Q.closeable){var X=F.getConfigElementById(Q.id).position;Q.setPosition(X)}},this)})))},openWidget:function(F){var E,y;T.forEach(this.onScreenWidgetIcons,function(Q){Q.configId===F&&Q.switchToOpen()},this);(E=this._findContentItemById(F,"component"))&&(y=E.parent)&&y.isStack&&y.setActiveContentItem(E)},_loadOnScreenGroups:function(){var F=
this.appConfig.widgetOnScreen.groups,E=[],y=new ba;T.forEach(F,O.hitch(this,function(Q){Q=this.appConfig.getConfigElementById(Q.id);T.forEach(Q.widgets,function(X){E.push(X.id)})}));T.forEach(this.dashboardWidgets,O.hitch(this,function(Q){if(0>E.indexOf(Q)){var X=this.dashboardPanels[Q];X&&(this.panelManager.closePanel(X),X.destroy());this.dashboardPanels[Q]=null}}));this.dashboardWidgets=E;y.resolve();return y},_destroyOnScreenWidgets:function(){this.destroyOnScreenOffPanelWidgets();this.destroyWidgetPlaceholders();
this.destroyOnScreenWidgetIcons();this.mobileController&&(this.mobileController.destroy(),this.mobileController=null)},_destroyOnScreenGroups:function(){T.forEach(this.dashboardWidgets,O.hitch(this,function(F){if(F=this.dashboardPanels[F])this.panelManager.closePanel(F),F.destroy(),F=null}));this.panelManager.destroyAllPanels();this.dashboardWidgets=[];this.dashboardPanels={};this.mobilePanel&&this.mobilePanel.clearPanels()}});ea.getInstance=function(F,E){null===P&&(P=new ea(F,E),window._layoutManager=
P);return P};return ea});