function Z(){function ca(c,l,k){var q=!1;k();if(c&&l)g=c,h=l;else{var n={};var h=function(e){return n[e]},g=function(e,b,a){b=a(h);n[e]=b};q=!0}g(0,0,function(){var e={Qk:24,nw:0,tQ:8,Ck:100,yp:256,f2:1,qV:8192/8191,kV:15,hn:250,nq:125,Cx:150,Dx:150,mO:300,nO:300,vp:.01,OA:[.973,.957,.926,1],xh:10,XR:100,fv:[.59375,.58984375,.57421875,1],ev:[.973,.957,.926,1],fP:[.8359375,.8359375,.8359375,1],PA:[.25,.25,.25,1],hR:100,ZR:128,fR:1,Ju:.5,fw:8192,aS:16384,$R:32768,rC:1.75,MC:[256,256],vS:16,SA:1,RA:1,
gv:"",dv:"",hv:"",gP:"standard",Mi:"light",Li:"standard",tD:.01,yO:1,eP:2147483648,FB:"__invisible-collision-id__",LC:"__arrow-collision-id__",kT:"__arrow__",lT:"RAS",s0:15,n0:180,wS:10,TS:35,WB:"_",Bq:50,zq:640,mw:2,hw:24,lw:1,gw:20,yq:1E3,uD:[1,3],W1:[1,3],ig:63,rj:64,el:128,Uh:255,pD:6,qD:7,We:256};e.iw=e.We<<1;e.PB=1;e.wq=1-Math.log(e.We/e.yp)/Math.log(2);e.BC=e.We/e.yp;e.baseTileSize=e.yp;return e});(function(e,b){g(1,[],b)})(this,function(){return function(e){function b(d){if(a[d])return a[d].qe;
var f=a[d]={qe:{},id:d,loaded:!1};e[d].call(f.qe,f,f.qe,b);f.loaded=!0;return f.qe}var a={};b.f0=e;b.PW=a;b.p="";return b(0)}([function(e,b,a){b.Y_=a(1);b.cw=a(2);b.XB=a(3);b.dw=a(4);b.U=a(5);b.Mq=a(6);b.l=a(9);b.Ya=a(7);b.T=a(8)},function(e){var b={EPSILON:1E-6};b.Nb=Array;b.oi=Math.random;b.w0=function(a){b.Nb=a};var a=Math.PI/180;b.yD=function(b){return b*a};b.uf=function(a,f){return Math.abs(a-f)<=b.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))};e.qe=b},function(e,b,a){var d=a(1);b={create:function(){var a=
new d.Nb(4);a[0]=1;a[1]=0;a[2]=0;a[3]=1;return a},clone:function(a){var b=new d.Nb(4);b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];return b},Qd:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];return a},Ah:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=1;return a},u:function(a,b,p,e){var m=new d.Nb(4);m[0]=a;m[1]=b;m[2]=p;m[3]=e;return m},set:function(a,b,d,e,w){a[0]=b;a[1]=d;a[2]=e;a[3]=w;return a},AD:function(a,b){if(a===b){var d=b[1];a[1]=b[2];a[2]=d}else a[0]=b[0],a[1]=b[2],a[2]=b[1],a[3]=b[3];return a},
Ch:function(a,b){var d=b[0],m=b[1],f=b[2];b=b[3];var e=d*b-f*m;if(!e)return null;e=1/e;a[0]=b*e;a[1]=-m*e;a[2]=-f*e;a[3]=d*e;return a},zA:function(a,b){var d=b[0];a[0]=b[3];a[1]=-b[1];a[2]=-b[2];a[3]=d;return a},iv:function(a){return a[0]*a[3]-a[2]*a[1]},multiply:function(a,b,d){var m=b[0],p=b[1],f=b[2];b=b[3];var e=d[0],c=d[1],g=d[2];d=d[3];a[0]=m*e+f*c;a[1]=p*e+b*c;a[2]=m*g+f*d;a[3]=p*g+b*d;return a}};b.$i=b.multiply;b.rotate=function(a,b,d){var m=b[0],p=b[1],f=b[2];b=b[3];var e=Math.sin(d);d=Math.cos(d);
a[0]=m*d+f*e;a[1]=p*d+b*e;a[2]=m*-e+f*d;a[3]=p*-e+b*d;return a};b.scale=function(a,b,d){var m=b[1],p=b[2],f=b[3],e=d[0];d=d[1];a[0]=b[0]*e;a[1]=m*e;a[2]=p*d;a[3]=f*d;return a};b.zv=function(a,b){var d=Math.sin(b);b=Math.cos(b);a[0]=b;a[1]=d;a[2]=-d;a[3]=b;return a};b.Av=function(a,b){a[0]=b[0];a[1]=0;a[2]=0;a[3]=b[1];return a};b.sj=function(a){return"mat2("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"};b.yv=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2))};
b.dW=function(a,b,d,e){a[2]=e[2]/e[0];d[0]=e[0];d[1]=e[1];d[3]=e[3]-a[2]*d[1];return[a,b,d]};b.add=function(a,b,d){a[0]=b[0]+d[0];a[1]=b[1]+d[1];a[2]=b[2]+d[2];a[3]=b[3]+d[3];return a};b.Bd=function(a,b,d){a[0]=b[0]-d[0];a[1]=b[1]-d[1];a[2]=b[2]-d[2];a[3]=b[3]-d[3];return a};b.sub=b.Bd;b.vd=function(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]};b.uf=function(a,b){var m=a[0],f=a[1],e=a[2];a=a[3];var c=b[0],g=b[1],v=b[2];b=b[3];return Math.abs(m-c)<=d.EPSILON*Math.max(1,Math.abs(m),
Math.abs(c))&&Math.abs(f-g)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(g))&&Math.abs(e-v)<=d.EPSILON*Math.max(1,Math.abs(e),Math.abs(v))&&Math.abs(a-b)<=d.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))};b.ow=function(a,b,d){a[0]=b[0]*d;a[1]=b[1]*d;a[2]=b[2]*d;a[3]=b[3]*d;return a};b.pw=function(a,b,d,e){a[0]=b[0]+d[0]*e;a[1]=b[1]+d[1]*e;a[2]=b[2]+d[2]*e;a[3]=b[3]+d[3]*e;return a};e.qe=b},function(e,b,a){var d=a(1);b={create:function(){var a=new d.Nb(6);a[0]=1;a[1]=0;a[2]=0;a[3]=1;a[4]=0;a[5]=0;return a},
clone:function(a){var b=new d.Nb(6);b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[4];b[5]=a[5];return b},Qd:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];return a},Ah:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=1;a[4]=0;a[5]=0;return a},u:function(a,b,p,e,w,c){var m=new d.Nb(6);m[0]=a;m[1]=b;m[2]=p;m[3]=e;m[4]=w;m[5]=c;return m},set:function(a,b,d,e,w,c,g){a[0]=b;a[1]=d;a[2]=e;a[3]=w;a[4]=c;a[5]=g;return a},Ch:function(a,b){var d=b[0],m=b[1],f=b[2],e=b[3],c=b[4];b=b[5];var v=
d*e-m*f;if(!v)return null;v=1/v;a[0]=e*v;a[1]=-m*v;a[2]=-f*v;a[3]=d*v;a[4]=(f*b-e*c)*v;a[5]=(m*c-d*b)*v;return a},iv:function(a){return a[0]*a[3]-a[1]*a[2]},multiply:function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],c=b[4];b=b[5];var g=d[0],y=d[1],h=d[2],n=d[3],l=d[4];d=d[5];a[0]=m*g+f*y;a[1]=p*g+e*y;a[2]=m*h+f*n;a[3]=p*h+e*n;a[4]=m*l+f*d+c;a[5]=p*l+e*d+b;return a}};b.$i=b.multiply;b.rotate=function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],c=b[4];b=b[5];var g=Math.sin(d);d=Math.cos(d);a[0]=m*d+f*g;a[1]=
p*d+e*g;a[2]=m*-g+f*d;a[3]=p*-g+e*d;a[4]=c;a[5]=b;return a};b.scale=function(a,b,d){var m=b[1],p=b[2],f=b[3],e=b[4],c=b[5],g=d[0];d=d[1];a[0]=b[0]*g;a[1]=m*g;a[2]=p*d;a[3]=f*d;a[4]=e;a[5]=c;return a};b.translate=function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],c=b[4];b=b[5];var g=d[0];d=d[1];a[0]=m;a[1]=p;a[2]=f;a[3]=e;a[4]=m*g+f*d+c;a[5]=p*g+e*d+b;return a};b.zv=function(a,b){var d=Math.sin(b);b=Math.cos(b);a[0]=b;a[1]=d;a[2]=-d;a[3]=b;a[4]=0;a[5]=0;return a};b.Av=function(a,b){a[0]=b[0];a[1]=0;a[2]=
0;a[3]=b[1];a[4]=0;a[5]=0;return a};b.fB=function(a,b){a[0]=1;a[1]=0;a[2]=0;a[3]=1;a[4]=b[0];a[5]=b[1];return a};b.sj=function(a){return"mat2d("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"};b.yv=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2)+Math.pow(a[4],2)+Math.pow(a[5],2)+1)};b.add=function(a,b,d){a[0]=b[0]+d[0];a[1]=b[1]+d[1];a[2]=b[2]+d[2];a[3]=b[3]+d[3];a[4]=b[4]+d[4];a[5]=b[5]+d[5];return a};b.Bd=function(a,b,d){a[0]=b[0]-d[0];
a[1]=b[1]-d[1];a[2]=b[2]-d[2];a[3]=b[3]-d[3];a[4]=b[4]-d[4];a[5]=b[5]-d[5];return a};b.sub=b.Bd;b.ow=function(a,b,d){a[0]=b[0]*d;a[1]=b[1]*d;a[2]=b[2]*d;a[3]=b[3]*d;a[4]=b[4]*d;a[5]=b[5]*d;return a};b.pw=function(a,b,d,e){a[0]=b[0]+d[0]*e;a[1]=b[1]+d[1]*e;a[2]=b[2]+d[2]*e;a[3]=b[3]+d[3]*e;a[4]=b[4]+d[4]*e;a[5]=b[5]+d[5]*e;return a};b.vd=function(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]};b.uf=function(a,b){var m=a[0],f=a[1],e=a[2],c=a[3],g=a[4];a=a[5];
var v=b[0],h=b[1],y=b[2],n=b[3],l=b[4];b=b[5];return Math.abs(m-v)<=d.EPSILON*Math.max(1,Math.abs(m),Math.abs(v))&&Math.abs(f-h)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(h))&&Math.abs(e-y)<=d.EPSILON*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(c-n)<=d.EPSILON*Math.max(1,Math.abs(c),Math.abs(n))&&Math.abs(g-l)<=d.EPSILON*Math.max(1,Math.abs(g),Math.abs(l))&&Math.abs(a-b)<=d.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))};e.qe=b},function(e,b,a){var d=a(1);b={create:function(){var a=new d.Nb(9);a[0]=
1;a[1]=0;a[2]=0;a[3]=0;a[4]=1;a[5]=0;a[6]=0;a[7]=0;a[8]=1;return a},LZ:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[4];a[4]=b[5];a[5]=b[6];a[6]=b[8];a[7]=b[9];a[8]=b[10];return a},clone:function(a){var b=new d.Nb(9);b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[4];b[5]=a[5];b[6]=a[6];b[7]=a[7];b[8]=a[8];return b},Qd:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];return a},u:function(a,b,p,e,w,c,g,v,h){var m=new d.Nb(9);m[0]=a;m[1]=b;
m[2]=p;m[3]=e;m[4]=w;m[5]=c;m[6]=g;m[7]=v;m[8]=h;return m},set:function(a,b,d,e,w,c,g,v,h,y){a[0]=b;a[1]=d;a[2]=e;a[3]=w;a[4]=c;a[5]=g;a[6]=v;a[7]=h;a[8]=y;return a},Ah:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=1;a[5]=0;a[6]=0;a[7]=0;a[8]=1;return a},AD:function(a,b){if(a===b){var d=b[1],m=b[2],f=b[5];a[1]=b[3];a[2]=b[6];a[3]=d;a[5]=b[7];a[6]=m;a[7]=f}else a[0]=b[0],a[1]=b[3],a[2]=b[6],a[3]=b[1],a[4]=b[4],a[5]=b[7],a[6]=b[2],a[7]=b[5],a[8]=b[8];return a},Ch:function(a,b){var d=b[0],m=b[1],f=b[2],
e=b[3],c=b[4],v=b[5],g=b[6],y=b[7];b=b[8];var h=b*c-v*y,n=-b*e+v*g,l=y*e-c*g,k=d*h+m*n+f*l;if(!k)return null;k=1/k;a[0]=h*k;a[1]=(-b*m+f*y)*k;a[2]=(v*m-f*c)*k;a[3]=n*k;a[4]=(b*d-f*g)*k;a[5]=(-v*d+f*e)*k;a[6]=l*k;a[7]=(-y*d+m*g)*k;a[8]=(c*d-m*e)*k;return a},zA:function(a,b){var d=b[0],m=b[1],f=b[2],e=b[3],c=b[4],v=b[5],g=b[6],y=b[7];b=b[8];a[0]=c*b-v*y;a[1]=f*y-m*b;a[2]=m*v-f*c;a[3]=v*g-e*b;a[4]=d*b-f*g;a[5]=f*e-d*v;a[6]=e*y-c*g;a[7]=m*g-d*y;a[8]=d*c-m*e;return a},iv:function(a){var b=a[3],d=a[4],
f=a[5],e=a[6],c=a[7],g=a[8];return a[0]*(g*d-f*c)+a[1]*(-g*b+f*e)+a[2]*(c*b-d*e)},multiply:function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],c=b[4],g=b[5],y=b[6],h=b[7];b=b[8];var n=d[0],l=d[1],k=d[2],q=d[3],r=d[4],x=d[5],A=d[6],G=d[7];d=d[8];a[0]=n*m+l*e+k*y;a[1]=n*p+l*c+k*h;a[2]=n*f+l*g+k*b;a[3]=q*m+r*e+x*y;a[4]=q*p+r*c+x*h;a[5]=q*f+r*g+x*b;a[6]=A*m+G*e+d*y;a[7]=A*p+G*c+d*h;a[8]=A*f+G*g+d*b;return a}};b.$i=b.multiply;b.translate=function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],c=b[4],g=b[5],y=b[6],
h=b[7];b=b[8];var n=d[0];d=d[1];a[0]=m;a[1]=p;a[2]=f;a[3]=e;a[4]=c;a[5]=g;a[6]=n*m+d*e+y;a[7]=n*p+d*c+h;a[8]=n*f+d*g+b;return a};b.rotate=function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],c=b[4],g=b[5],y=b[6],h=b[7];b=b[8];var n=Math.sin(d);d=Math.cos(d);a[0]=d*m+n*e;a[1]=d*p+n*c;a[2]=d*f+n*g;a[3]=d*e-n*m;a[4]=d*c-n*p;a[5]=d*g-n*f;a[6]=y;a[7]=h;a[8]=b;return a};b.scale=function(a,b,d){var m=d[0];d=d[1];a[0]=m*b[0];a[1]=m*b[1];a[2]=m*b[2];a[3]=d*b[3];a[4]=d*b[4];a[5]=d*b[5];a[6]=b[6];a[7]=b[7];a[8]=
b[8];return a};b.fB=function(a,b){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=1;a[5]=0;a[6]=b[0];a[7]=b[1];a[8]=1;return a};b.zv=function(a,b){var d=Math.sin(b);b=Math.cos(b);a[0]=b;a[1]=d;a[2]=0;a[3]=-d;a[4]=b;a[5]=0;a[6]=0;a[7]=0;a[8]=1;return a};b.Av=function(a,b){a[0]=b[0];a[1]=0;a[2]=0;a[3]=0;a[4]=b[1];a[5]=0;a[6]=0;a[7]=0;a[8]=1;return a};b.KZ=function(a,b){a[0]=b[0];a[1]=b[1];a[2]=0;a[3]=b[2];a[4]=b[3];a[5]=0;a[6]=b[4];a[7]=b[5];a[8]=1;return a};b.CQ=function(a,b){var d=b[0],m=b[1],f=b[2];b=b[3];var e=
d+d,c=m+m,v=f+f;d*=e;var g=m*e;m*=c;var y=f*e,h=f*c;f*=v;e*=b;c*=b;b*=v;a[0]=1-m-f;a[3]=g-b;a[6]=y+c;a[1]=g+b;a[4]=1-d-f;a[7]=h-e;a[2]=y-c;a[5]=h+e;a[8]=1-d-m;return a};b.i0=function(a,b){var d=b[0],m=b[1],f=b[2],e=b[3],c=b[4],v=b[5],g=b[6],y=b[7],h=b[8],n=b[9],l=b[10],k=b[11],q=b[12],r=b[13],x=b[14];b=b[15];var A=d*v-m*c,G=d*g-f*c,E=d*y-e*c,u=m*g-f*v,z=m*y-e*v,D=f*y-e*g,N=h*r-n*q,P=h*x-l*q;h=h*b-k*q;var Q=n*x-l*r;n=n*b-k*r;l=l*b-k*x;k=A*l-G*n+E*Q+u*h-z*P+D*N;if(!k)return null;k=1/k;a[0]=(v*l-g*n+
y*Q)*k;a[1]=(g*h-c*l-y*P)*k;a[2]=(c*n-v*h+y*N)*k;a[3]=(f*n-m*l-e*Q)*k;a[4]=(d*l-f*h+e*P)*k;a[5]=(m*h-d*n-e*N)*k;a[6]=(r*D-x*z+b*u)*k;a[7]=(x*E-q*D-b*G)*k;a[8]=(q*z-r*E+b*A)*k;return a};b.sj=function(a){return"mat3("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+")"};b.yv=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2)+Math.pow(a[4],2)+Math.pow(a[5],2)+Math.pow(a[6],2)+Math.pow(a[7],2)+Math.pow(a[8],2))};b.add=
function(a,b,d){a[0]=b[0]+d[0];a[1]=b[1]+d[1];a[2]=b[2]+d[2];a[3]=b[3]+d[3];a[4]=b[4]+d[4];a[5]=b[5]+d[5];a[6]=b[6]+d[6];a[7]=b[7]+d[7];a[8]=b[8]+d[8];return a};b.Bd=function(a,b,d){a[0]=b[0]-d[0];a[1]=b[1]-d[1];a[2]=b[2]-d[2];a[3]=b[3]-d[3];a[4]=b[4]-d[4];a[5]=b[5]-d[5];a[6]=b[6]-d[6];a[7]=b[7]-d[7];a[8]=b[8]-d[8];return a};b.sub=b.Bd;b.ow=function(a,b,d){a[0]=b[0]*d;a[1]=b[1]*d;a[2]=b[2]*d;a[3]=b[3]*d;a[4]=b[4]*d;a[5]=b[5]*d;a[6]=b[6]*d;a[7]=b[7]*d;a[8]=b[8]*d;return a};b.pw=function(a,b,d,e){a[0]=
b[0]+d[0]*e;a[1]=b[1]+d[1]*e;a[2]=b[2]+d[2]*e;a[3]=b[3]+d[3]*e;a[4]=b[4]+d[4]*e;a[5]=b[5]+d[5]*e;a[6]=b[6]+d[6]*e;a[7]=b[7]+d[7]*e;a[8]=b[8]+d[8]*e;return a};b.vd=function(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]};b.uf=function(a,b){var m=a[0],f=a[1],e=a[2],c=a[3],g=a[4],v=a[5],h=a[6],y=a[7],n=a[8],l=b[0],k=b[1],q=b[2],r=b[3],L=b[4],x=b[5];a=a[6];var A=b[7];b=b[8];return Math.abs(m-l)<=d.EPSILON*Math.max(1,Math.abs(m),
Math.abs(l))&&Math.abs(f-k)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(k))&&Math.abs(e-q)<=d.EPSILON*Math.max(1,Math.abs(e),Math.abs(q))&&Math.abs(c-r)<=d.EPSILON*Math.max(1,Math.abs(c),Math.abs(r))&&Math.abs(g-L)<=d.EPSILON*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(v-x)<=d.EPSILON*Math.max(1,Math.abs(v),Math.abs(x))&&Math.abs(h-a)<=d.EPSILON*Math.max(1,Math.abs(h),Math.abs(a))&&Math.abs(y-A)<=d.EPSILON*Math.max(1,Math.abs(y),Math.abs(A))&&Math.abs(n-b)<=d.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))};
e.qe=b},function(e,b,a){var d=a(1),f={u0:{},create:function(){var a=new d.Nb(16);a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a},clone:function(a){var b=new d.Nb(16);b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[4];b[5]=a[5];b[6]=a[6];b[7]=a[7];b[8]=a[8];b[9]=a[9];b[10]=a[10];b[11]=a[11];b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15];return b},Qd:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];
a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15];return a},u:function(a,b,f,e,c,g,v,h,y,n,l,k,q,r,L,x){var m=new d.Nb(16);m[0]=a;m[1]=b;m[2]=f;m[3]=e;m[4]=c;m[5]=g;m[6]=v;m[7]=h;m[8]=y;m[9]=n;m[10]=l;m[11]=k;m[12]=q;m[13]=r;m[14]=L;m[15]=x;return m},set:function(a,b,d,f,e,c,v,g,h,n,l,k,q,r,L,x,A){a[0]=b;a[1]=d;a[2]=f;a[3]=e;a[4]=c;a[5]=v;a[6]=g;a[7]=h;a[8]=n;a[9]=l;a[10]=k;a[11]=q;a[12]=r;a[13]=L;a[14]=x;a[15]=A;return a},Ah:function(a){a[0]=
1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a},AD:function(a,b){if(a===b){var d=b[1],m=b[2],p=b[3],f=b[6],e=b[7],c=b[11];a[1]=b[4];a[2]=b[8];a[3]=b[12];a[4]=d;a[6]=b[9];a[7]=b[13];a[8]=m;a[9]=f;a[11]=b[14];a[12]=p;a[13]=e;a[14]=c}else a[0]=b[0],a[1]=b[4],a[2]=b[8],a[3]=b[12],a[4]=b[1],a[5]=b[5],a[6]=b[9],a[7]=b[13],a[8]=b[2],a[9]=b[6],a[10]=b[10],a[11]=b[14],a[12]=b[3],a[13]=b[7],a[14]=b[11],a[15]=b[15];return a},Ch:function(a,
b){var d=b[0],m=b[1],p=b[2],f=b[3],e=b[4],c=b[5],g=b[6],h=b[7],n=b[8],l=b[9],k=b[10],q=b[11],r=b[12],x=b[13],A=b[14];b=b[15];var G=d*c-m*e,E=d*g-p*e,u=d*h-f*e,z=m*g-p*c,D=m*h-f*c,N=p*h-f*g,P=n*x-l*r,Q=n*A-k*r,R=n*b-q*r,O=l*A-k*x,T=l*b-q*x,U=k*b-q*A,M=G*U-E*T+u*O+z*R-D*Q+N*P;if(!M)return null;M=1/M;a[0]=(c*U-g*T+h*O)*M;a[1]=(p*T-m*U-f*O)*M;a[2]=(x*N-A*D+b*z)*M;a[3]=(k*D-l*N-q*z)*M;a[4]=(g*R-e*U-h*Q)*M;a[5]=(d*U-p*R+f*Q)*M;a[6]=(A*u-r*N-b*E)*M;a[7]=(n*N-k*u+q*E)*M;a[8]=(e*T-c*R+h*P)*M;a[9]=(m*R-d*T-
f*P)*M;a[10]=(r*D-x*u+b*G)*M;a[11]=(l*u-n*D-q*G)*M;a[12]=(c*Q-e*O-g*P)*M;a[13]=(d*O-m*Q+p*P)*M;a[14]=(x*E-r*z-A*G)*M;a[15]=(n*z-l*E+k*G)*M;return a},zA:function(a,b){var d=b[0],m=b[1],p=b[2],f=b[3],e=b[4],c=b[5],g=b[6],h=b[7],n=b[8],l=b[9],k=b[10],q=b[11],r=b[12],x=b[13],A=b[14];b=b[15];a[0]=c*(k*b-q*A)-l*(g*b-h*A)+x*(g*q-h*k);a[1]=-(m*(k*b-q*A)-l*(p*b-f*A)+x*(p*q-f*k));a[2]=m*(g*b-h*A)-c*(p*b-f*A)+x*(p*h-f*g);a[3]=-(m*(g*q-h*k)-c*(p*q-f*k)+l*(p*h-f*g));a[4]=-(e*(k*b-q*A)-n*(g*b-h*A)+r*(g*q-h*k));
a[5]=d*(k*b-q*A)-n*(p*b-f*A)+r*(p*q-f*k);a[6]=-(d*(g*b-h*A)-e*(p*b-f*A)+r*(p*h-f*g));a[7]=d*(g*q-h*k)-e*(p*q-f*k)+n*(p*h-f*g);a[8]=e*(l*b-q*x)-n*(c*b-h*x)+r*(c*q-h*l);a[9]=-(d*(l*b-q*x)-n*(m*b-f*x)+r*(m*q-f*l));a[10]=d*(c*b-h*x)-e*(m*b-f*x)+r*(m*h-f*c);a[11]=-(d*(c*q-h*l)-e*(m*q-f*l)+n*(m*h-f*c));a[12]=-(e*(l*A-k*x)-n*(c*A-g*x)+r*(c*k-g*l));a[13]=d*(l*A-k*x)-n*(m*A-p*x)+r*(m*k-p*l);a[14]=-(d*(c*A-g*x)-e*(m*A-p*x)+r*(m*g-p*c));a[15]=d*(c*k-g*l)-e*(m*k-p*l)+n*(m*g-p*c);return a},iv:function(a){var b=
a[0],d=a[1],m=a[2],f=a[3],e=a[4],c=a[5],g=a[6],h=a[7],n=a[8],l=a[9],k=a[10],q=a[11],r=a[12],L=a[13],x=a[14];a=a[15];return(b*c-d*e)*(k*a-q*x)-(b*g-m*e)*(l*a-q*L)+(b*h-f*e)*(l*x-k*L)+(d*g-m*c)*(n*a-q*r)-(d*h-f*c)*(n*x-k*r)+(m*h-f*g)*(n*L-l*r)},multiply:function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],t=b[4],c=b[5],g=b[6],h=b[7],n=b[8],l=b[9],k=b[10],q=b[11],r=b[12],A=b[13],G=b[14];b=b[15];var E=d[0],u=d[1],z=d[2],D=d[3];a[0]=E*m+u*t+z*n+D*r;a[1]=E*p+u*c+z*l+D*A;a[2]=E*f+u*g+z*k+D*G;a[3]=E*e+u*h+z*q+
D*b;E=d[4];u=d[5];z=d[6];D=d[7];a[4]=E*m+u*t+z*n+D*r;a[5]=E*p+u*c+z*l+D*A;a[6]=E*f+u*g+z*k+D*G;a[7]=E*e+u*h+z*q+D*b;E=d[8];u=d[9];z=d[10];D=d[11];a[8]=E*m+u*t+z*n+D*r;a[9]=E*p+u*c+z*l+D*A;a[10]=E*f+u*g+z*k+D*G;a[11]=E*e+u*h+z*q+D*b;E=d[12];u=d[13];z=d[14];D=d[15];a[12]=E*m+u*t+z*n+D*r;a[13]=E*p+u*c+z*l+D*A;a[14]=E*f+u*g+z*k+D*G;a[15]=E*e+u*h+z*q+D*b;return a}};f.$i=f.multiply;f.translate=function(a,b,d){var m=d[0],p=d[1];d=d[2];if(b===a)a[12]=b[0]*m+b[4]*p+b[8]*d+b[12],a[13]=b[1]*m+b[5]*p+b[9]*d+
b[13],a[14]=b[2]*m+b[6]*p+b[10]*d+b[14],a[15]=b[3]*m+b[7]*p+b[11]*d+b[15];else{var f=b[0];var e=b[1];var t=b[2];var c=b[3];var g=b[4];var h=b[5];var n=b[6];var l=b[7];var k=b[8];var q=b[9];var r=b[10];var A=b[11];a[0]=f;a[1]=e;a[2]=t;a[3]=c;a[4]=g;a[5]=h;a[6]=n;a[7]=l;a[8]=k;a[9]=q;a[10]=r;a[11]=A;a[12]=f*m+g*p+k*d+b[12];a[13]=e*m+h*p+q*d+b[13];a[14]=t*m+n*p+r*d+b[14];a[15]=c*m+l*p+A*d+b[15]}return a};f.scale=function(a,b,d){var m=d[0],p=d[1];d=d[2];a[0]=b[0]*m;a[1]=b[1]*m;a[2]=b[2]*m;a[3]=b[3]*m;
a[4]=b[4]*p;a[5]=b[5]*p;a[6]=b[6]*p;a[7]=b[7]*p;a[8]=b[8]*d;a[9]=b[9]*d;a[10]=b[10]*d;a[11]=b[11]*d;a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15];return a};f.rotate=function(a,b,f,e){var m=e[0],p=e[1];e=e[2];var t=Math.sqrt(m*m+p*p+e*e);if(Math.abs(t)<d.EPSILON)return null;t=1/t;m*=t;p*=t;e*=t;var c=Math.sin(f);var w=Math.cos(f);var g=1-w;f=b[0];t=b[1];var h=b[2];var n=b[3];var l=b[4];var k=b[5];var q=b[6];var r=b[7];var A=b[8];var G=b[9];var E=b[10];var u=b[11];var z=m*m*g+w;var D=p*m*g+e*c;var N=
e*m*g-p*c;var P=m*p*g-e*c;var Q=p*p*g+w;var R=e*p*g+m*c;var O=m*e*g+p*c;m=p*e*g-m*c;p=e*e*g+w;a[0]=f*z+l*D+A*N;a[1]=t*z+k*D+G*N;a[2]=h*z+q*D+E*N;a[3]=n*z+r*D+u*N;a[4]=f*P+l*Q+A*R;a[5]=t*P+k*Q+G*R;a[6]=h*P+q*Q+E*R;a[7]=n*P+r*Q+u*R;a[8]=f*O+l*m+A*p;a[9]=t*O+k*m+G*p;a[10]=h*O+q*m+E*p;a[11]=n*O+r*m+u*p;b!==a&&(a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15]);return a};f.Qw=function(a,b,d){var m=Math.sin(d);d=Math.cos(d);var p=b[4],f=b[5],e=b[6],t=b[7],c=b[8],g=b[9],h=b[10],n=b[11];b!==a&&(a[0]=b[0],a[1]=
b[1],a[2]=b[2],a[3]=b[3],a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15]);a[4]=p*d+c*m;a[5]=f*d+g*m;a[6]=e*d+h*m;a[7]=t*d+n*m;a[8]=c*d-p*m;a[9]=g*d-f*m;a[10]=h*d-e*m;a[11]=n*d-t*m};f.NC=function(a,b,d){var m=Math.sin(d);d=Math.cos(d);var p=b[0],f=b[1],e=b[2],t=b[3],c=b[8],g=b[9],h=b[10],n=b[11];b!==a&&(a[4]=b[4],a[5]=b[5],a[6]=b[6],a[7]=b[7],a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15]);a[0]=p*d-c*m;a[1]=f*d-g*m;a[2]=e*d-h*m;a[3]=t*d-n*m;a[8]=p*m+c*d;a[9]=f*m+g*d;a[10]=e*m+h*d;a[11]=t*m+n*d;return a};
f.Rw=function(a,b,d){var m=Math.sin(d);d=Math.cos(d);var p=b[0],f=b[1],e=b[2],t=b[3],c=b[4],g=b[5],h=b[6],n=b[7];b!==a&&(a[8]=b[8],a[9]=b[9],a[10]=b[10],a[11]=b[11],a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15]);a[0]=p*d+c*m;a[1]=f*d+g*m;a[2]=e*d+h*m;a[3]=t*d+n*m;a[4]=c*d-p*m;a[5]=g*d-f*m;a[6]=h*d-e*m;a[7]=n*d-t*m};f.fB=function(a,b){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=b[0];a[13]=b[1];a[14]=b[2];a[15]=1;return a};f.Av=function(a,b){a[0]=b[0];
a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b[1];a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=b[2];a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a};f.zv=function(a,b,f){var m=f[0],p=f[1];f=f[2];var e=Math.sqrt(m*m+p*p+f*f);if(Math.abs(e)<d.EPSILON)return null;e=1/e;m*=e;p*=e;f*=e;e=Math.sin(b);b=Math.cos(b);var t=1-b;a[0]=m*m*t+b;a[1]=p*m*t+f*e;a[2]=f*m*t-p*e;a[3]=0;a[4]=m*p*t-f*e;a[5]=p*p*t+b;a[6]=f*p*t+m*e;a[7]=0;a[8]=m*f*t+p*e;a[9]=p*f*t-m*e;a[10]=f*f*t+b;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a};f.PZ=function(a,
b){var d=Math.sin(b);b=Math.cos(b);a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=d;a[7]=0;a[8]=0;a[9]=-d;a[10]=b;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a};f.QZ=function(a,b){var d=Math.sin(b);b=Math.cos(b);a[0]=b;a[1]=0;a[2]=-d;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=d;a[9]=0;a[10]=b;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a};f.RZ=function(a,b){var d=Math.sin(b);b=Math.cos(b);a[0]=b;a[1]=d;a[2]=0;a[3]=0;a[4]=-d;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=
0;a[15]=1;return a};f.MZ=function(a,b,d){var m=b[0],p=b[1],f=b[2],e=b[3],t=m+m,c=p+p,g=f+f;b=m*t;var h=m*c;m*=g;var n=p*c;p*=g;f*=g;t*=e;c*=e;e*=g;a[0]=1-(n+f);a[1]=h+e;a[2]=m-c;a[3]=0;a[4]=h-e;a[5]=1-(b+f);a[6]=p+t;a[7]=0;a[8]=m+c;a[9]=p-t;a[10]=1-(b+n);a[11]=0;a[12]=d[0];a[13]=d[1];a[14]=d[2];a[15]=1;return a};f.W_=function(a,b){a[0]=b[12];a[1]=b[13];a[2]=b[14];return a};f.rB=function(a,b){var d=b[0]+b[5]+b[10];0<d?(d=2*Math.sqrt(d+1),a[3]=.25*d,a[0]=(b[6]-b[9])/d,a[1]=(b[8]-b[2])/d,a[2]=(b[1]-
b[4])/d):b[0]>b[5]&b[0]>b[10]?(d=2*Math.sqrt(1+b[0]-b[5]-b[10]),a[3]=(b[6]-b[9])/d,a[0]=.25*d,a[1]=(b[1]+b[4])/d,a[2]=(b[8]+b[2])/d):b[5]>b[10]?(d=2*Math.sqrt(1+b[5]-b[0]-b[10]),a[3]=(b[8]-b[2])/d,a[0]=(b[1]+b[4])/d,a[1]=.25*d,a[2]=(b[6]+b[9])/d):(d=2*Math.sqrt(1+b[10]-b[0]-b[5]),a[3]=(b[1]-b[4])/d,a[0]=(b[8]+b[2])/d,a[1]=(b[6]+b[9])/d,a[2]=.25*d);return a};f.NZ=function(a,b,d,f){var m=b[0],p=b[1],e=b[2],t=b[3],c=m+m,w=p+p,g=e+e;b=m*c;var h=m*w;m*=g;var n=p*w;p*=g;e*=g;c*=t;w*=t;t*=g;g=f[0];var l=
f[1];f=f[2];a[0]=(1-(n+e))*g;a[1]=(h+t)*g;a[2]=(m-w)*g;a[3]=0;a[4]=(h-t)*l;a[5]=(1-(b+e))*l;a[6]=(p+c)*l;a[7]=0;a[8]=(m+w)*f;a[9]=(p-c)*f;a[10]=(1-(b+n))*f;a[11]=0;a[12]=d[0];a[13]=d[1];a[14]=d[2];a[15]=1;return a};f.OZ=function(a,b,d,f,e){var m=b[0],p=b[1],t=b[2],c=b[3],w=m+m,g=p+p,h=t+t;b=m*w;var C=m*g;m*=h;var n=p*g;p*=h;t*=h;w*=c;g*=c;c*=h;h=f[0];var l=f[1];f=f[2];var k=e[0],q=e[1];e=e[2];a[0]=(1-(n+t))*h;a[1]=(C+c)*h;a[2]=(m-g)*h;a[3]=0;a[4]=(C-c)*l;a[5]=(1-(b+t))*l;a[6]=(p+w)*l;a[7]=0;a[8]=
(m+g)*f;a[9]=(p-w)*f;a[10]=(1-(b+n))*f;a[11]=0;a[12]=d[0]+k-(a[0]*k+a[4]*q+a[8]*e);a[13]=d[1]+q-(a[1]*k+a[5]*q+a[9]*e);a[14]=d[2]+e-(a[2]*k+a[6]*q+a[10]*e);a[15]=1;return a};f.CQ=function(a,b){var d=b[0],m=b[1],p=b[2];b=b[3];var f=d+d,e=m+m,c=p+p;d*=f;var g=m*f;m*=e;var h=p*f,n=p*e;p*=c;f*=b;e*=b;b*=c;a[0]=1-m-p;a[1]=g+b;a[2]=h-e;a[3]=0;a[4]=g-b;a[5]=1-d-p;a[6]=n+f;a[7]=0;a[8]=h+e;a[9]=n-f;a[10]=1-d-m;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;return a};f.EQ=function(a,b,d,f,e,c,g){var m=1/(d-b),p=1/
(e-f),t=1/(c-g);a[0]=2*c*m;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=2*c*p;a[6]=0;a[7]=0;a[8]=(d+b)*m;a[9]=(e+f)*p;a[10]=(g+c)*t;a[11]=-1;a[12]=0;a[13]=0;a[14]=g*c*2*t;a[15]=0;return a};f.perspective=function(a,b,d,f,e){b=1/Math.tan(b/2);var m=1/(f-e);a[0]=b/d;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=(e+f)*m;a[11]=-1;a[12]=0;a[13]=0;a[14]=2*e*f*m;a[15]=0;return a};f.m0=function(a,b,d,f){var m=Math.tan(b.c2*Math.PI/180),p=Math.tan(b.HZ*Math.PI/180),e=Math.tan(b.c0*Math.PI/180);b=
Math.tan(b.r0*Math.PI/180);var t=2/(e+b),c=2/(m+p);a[0]=t;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=c;a[6]=0;a[7]=0;a[8]=-((e-b)*t*.5);a[9]=(m-p)*c*.5;a[10]=f/(d-f);a[11]=-1;a[12]=0;a[13]=0;a[14]=f*d/(d-f);a[15]=0;return a};f.k0=function(a,b,d,f,e,c,g){var m=1/(b-d),p=1/(f-e),t=1/(c-g);a[0]=-2*m;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=-2*p;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=2*t;a[11]=0;a[12]=(b+d)*m;a[13]=(e+f)*p;a[14]=(g+c)*t;a[15]=1;return a};f.PR=function(a,b,e,c){var m=b[0],p=b[1];b=b[2];var t=c[0];var w=c[1];
var g=c[2];var h=e[0];c=e[1];var n=e[2];if(Math.abs(m-h)<d.EPSILON&&Math.abs(p-c)<d.EPSILON&&Math.abs(b-n)<d.EPSILON)return f.Ah(a);e=m-h;c=p-c;h=b-n;var l=1/Math.sqrt(e*e+c*c+h*h);e*=l;c*=l;h*=l;n=w*h-g*c;g=g*e-t*h;t=t*c-w*e;(l=Math.sqrt(n*n+g*g+t*t))?(l=1/l,n*=l,g*=l,t*=l):t=g=n=0;w=c*t-h*g;var k=h*n-e*t;var q=e*g-c*n;(l=Math.sqrt(w*w+k*k+q*q))?(l=1/l,w*=l,k*=l,q*=l):q=k=w=0;a[0]=n;a[1]=w;a[2]=e;a[3]=0;a[4]=g;a[5]=k;a[6]=c;a[7]=0;a[8]=t;a[9]=q;a[10]=h;a[11]=0;a[12]=-(n*m+g*p+t*b);a[13]=-(w*m+k*
p+q*b);a[14]=-(e*m+c*p+h*b);a[15]=1;return a};f.sj=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"};f.yv=function(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)+Math.pow(a[3],2)+Math.pow(a[4],2)+Math.pow(a[5],2)+Math.pow(a[6],2)+Math.pow(a[7],2)+Math.pow(a[8],2)+Math.pow(a[9],2)+Math.pow(a[10],2)+Math.pow(a[11],2)+Math.pow(a[12],2)+
Math.pow(a[13],2)+Math.pow(a[14],2)+Math.pow(a[15],2))};f.add=function(a,b,d){a[0]=b[0]+d[0];a[1]=b[1]+d[1];a[2]=b[2]+d[2];a[3]=b[3]+d[3];a[4]=b[4]+d[4];a[5]=b[5]+d[5];a[6]=b[6]+d[6];a[7]=b[7]+d[7];a[8]=b[8]+d[8];a[9]=b[9]+d[9];a[10]=b[10]+d[10];a[11]=b[11]+d[11];a[12]=b[12]+d[12];a[13]=b[13]+d[13];a[14]=b[14]+d[14];a[15]=b[15]+d[15];return a};f.Bd=function(a,b,d){a[0]=b[0]-d[0];a[1]=b[1]-d[1];a[2]=b[2]-d[2];a[3]=b[3]-d[3];a[4]=b[4]-d[4];a[5]=b[5]-d[5];a[6]=b[6]-d[6];a[7]=b[7]-d[7];a[8]=b[8]-d[8];
a[9]=b[9]-d[9];a[10]=b[10]-d[10];a[11]=b[11]-d[11];a[12]=b[12]-d[12];a[13]=b[13]-d[13];a[14]=b[14]-d[14];a[15]=b[15]-d[15];return a};f.sub=f.Bd;f.ow=function(a,b,d){a[0]=b[0]*d;a[1]=b[1]*d;a[2]=b[2]*d;a[3]=b[3]*d;a[4]=b[4]*d;a[5]=b[5]*d;a[6]=b[6]*d;a[7]=b[7]*d;a[8]=b[8]*d;a[9]=b[9]*d;a[10]=b[10]*d;a[11]=b[11]*d;a[12]=b[12]*d;a[13]=b[13]*d;a[14]=b[14]*d;a[15]=b[15]*d;return a};f.pw=function(a,b,d,f){a[0]=b[0]+d[0]*f;a[1]=b[1]+d[1]*f;a[2]=b[2]+d[2]*f;a[3]=b[3]+d[3]*f;a[4]=b[4]+d[4]*f;a[5]=b[5]+d[5]*
f;a[6]=b[6]+d[6]*f;a[7]=b[7]+d[7]*f;a[8]=b[8]+d[8]*f;a[9]=b[9]+d[9]*f;a[10]=b[10]+d[10]*f;a[11]=b[11]+d[11]*f;a[12]=b[12]+d[12]*f;a[13]=b[13]+d[13]*f;a[14]=b[14]+d[14]*f;a[15]=b[15]+d[15]*f;return a};f.vd=function(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]};f.uf=function(a,b){var m=a[0],f=a[1],e=a[2],p=a[3],c=a[4],
g=a[5],h=a[6],n=a[7],l=a[8],k=a[9],q=a[10],r=a[11],L=a[12],x=a[13],u=a[14];a=a[15];var G=b[0],E=b[1],S=b[2],z=b[3],D=b[4],N=b[5],P=b[6],Q=b[7],R=b[8],O=b[9],T=b[10],U=b[11],M=b[12],V=b[13],Y=b[14];b=b[15];return Math.abs(m-G)<=d.EPSILON*Math.max(1,Math.abs(m),Math.abs(G))&&Math.abs(f-E)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(e-S)<=d.EPSILON*Math.max(1,Math.abs(e),Math.abs(S))&&Math.abs(p-z)<=d.EPSILON*Math.max(1,Math.abs(p),Math.abs(z))&&Math.abs(c-D)<=d.EPSILON*Math.max(1,Math.abs(c),
Math.abs(D))&&Math.abs(g-N)<=d.EPSILON*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(h-P)<=d.EPSILON*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(n-Q)<=d.EPSILON*Math.max(1,Math.abs(n),Math.abs(Q))&&Math.abs(l-R)<=d.EPSILON*Math.max(1,Math.abs(l),Math.abs(R))&&Math.abs(k-O)<=d.EPSILON*Math.max(1,Math.abs(k),Math.abs(O))&&Math.abs(q-T)<=d.EPSILON*Math.max(1,Math.abs(q),Math.abs(T))&&Math.abs(r-U)<=d.EPSILON*Math.max(1,Math.abs(r),Math.abs(U))&&Math.abs(L-M)<=d.EPSILON*Math.max(1,Math.abs(L),Math.abs(M))&&
Math.abs(x-V)<=d.EPSILON*Math.max(1,Math.abs(x),Math.abs(V))&&Math.abs(u-Y)<=d.EPSILON*Math.max(1,Math.abs(u),Math.abs(Y))&&Math.abs(a-b)<=d.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))};e.qe=f},function(e,b,a){var d=a(1),f=a(4),m=a(7);b=a(8);var p={create:function(){var a=new d.Nb(4);a[0]=0;a[1]=0;a[2]=0;a[3]=1;return a}};p.t0=function(){var a=m.create(),b=m.u(1,0,0),d=m.u(0,1,0);return function(f,e,t){var c=m.Rc(e,t);if(-.999999>c)return m.Ip(a,b,e),1E-6>m.length(a)&&m.Ip(a,d,e),m.normalize(a,a),
p.AT(f,a),f;if(.999999<c)return f[0]=0,f[1]=0,f[2]=0,f[3]=1,f;m.Ip(a,e,t);f[0]=a[0];f[1]=a[1];f[2]=a[2];f[3]=1+c;return p.normalize(f,f)}}();p.v0=function(){var a=f.create();return function(b,d,m,f){a[0]=m[0];a[3]=m[1];a[6]=m[2];a[1]=f[0];a[4]=f[1];a[7]=f[2];a[2]=-d[0];a[5]=-d[1];a[8]=-d[2];return p.normalize(b,p.BQ(b,a))}}();p.clone=b.clone;p.u=b.u;p.Qd=b.Qd;p.set=b.set;p.Ah=function(a){a[0]=0;a[1]=0;a[2]=0;a[3]=1;return a};p.AT=function(a,b){var d=Math.PI;d*=.5;var m=Math.sin(d);a[0]=m*b[0];a[1]=
m*b[1];a[2]=m*b[2];a[3]=Math.cos(d)};p.SZ=function(a,b){var d=2*Math.acos(b[3]),m=Math.sin(d/2);0!=m?(a[0]=b[0]/m,a[1]=b[1]/m,a[2]=b[2]/m):(a[0]=1,a[1]=0,a[2]=0);return d};p.add=b.add;p.multiply=function(a,b,d){var m=b[0],f=b[1],e=b[2];b=b[3];var p=d[0],c=d[1],t=d[2];d=d[3];a[0]=m*d+b*p+f*t-e*c;a[1]=f*d+b*c+e*p-m*t;a[2]=e*d+b*t+m*c-f*p;a[3]=b*d-m*p-f*c-e*t;return a};p.$i=p.multiply;p.scale=b.scale;p.Qw=function(a,b,d){d*=.5;var m=b[0],f=b[1],e=b[2];b=b[3];var p=Math.sin(d);d=Math.cos(d);a[0]=m*d+
b*p;a[1]=f*d+e*p;a[2]=e*d-f*p;a[3]=b*d-m*p};p.NC=function(a,b,d){d*=.5;var m=b[0],f=b[1],e=b[2];b=b[3];var p=Math.sin(d);d=Math.cos(d);a[0]=m*d-e*p;a[1]=f*d+b*p;a[2]=e*d+m*p;a[3]=b*d-f*p;return a};p.Rw=function(a,b,d){d*=.5;var m=b[0],f=b[1],e=b[2];b=b[3];var p=Math.sin(d);d=Math.cos(d);a[0]=m*d+f*p;a[1]=f*d-m*p;a[2]=e*d+b*p;a[3]=b*d-e*p};p.QW=function(a,b){var d=b[0],m=b[1];b=b[2];a[0]=d;a[1]=m;a[2]=b;a[3]=Math.sqrt(Math.abs(1-d*d-m*m-b*b));return a};p.Rc=b.Rc;p.Wi=b.Wi;p.px=function(a,b,d,m){var f=
b[0],e=b[1],p=b[2];b=b[3];var c=d[0],t=d[1],w=d[2];d=d[3];var g=f*c+e*t+p*w+b*d;0>g&&(g=-g,c=-c,t=-t,w=-w,d=-d);if(1E-6<1-g){var h=Math.acos(g);var C=Math.sin(h);g=Math.sin((1-m)*h)/C;m=Math.sin(m*h)/C}else g=1-m;a[0]=g*f+m*c;a[1]=g*e+m*t;a[2]=g*p+m*w;a[3]=g*b+m*d};p.y0=function(){var a=p.create(),b=p.create();return function(d,m,f,e,c,t){p.px(a,m,c,t);p.px(b,f,e,t);p.px(d,a,b,2*t*(1-t));return d}}();p.Ch=function(a,b){var d=b[0],m=b[1],f=b[2];b=b[3];var e=d*d+m*m+f*f+b*b;e=e?1/e:0;a[0]=-d*e;a[1]=
-m*e;a[2]=-f*e;a[3]=b*e;return a};p.VW=function(a,b){a[0]=-b[0];a[1]=-b[1];a[2]=-b[2];a[3]=b[3];return a};p.length=b.length;p.Zv=p.length;p.Th=b.Th;p.rx=p.Th;p.normalize=b.normalize;p.BQ=function(a,b){var d=b[0]+b[4]+b[8];if(0<d)d=Math.sqrt(d+1),a[3]=.5*d,d=.5/d,a[0]=(b[5]-b[7])*d,a[1]=(b[6]-b[2])*d,a[2]=(b[1]-b[3])*d;else{var m=0;b[4]>b[0]&&(m=1);b[8]>b[3*m+m]&&(m=2);var f=(m+1)%3,e=(m+2)%3;d=Math.sqrt(b[3*m+m]-b[3*f+f]-b[3*e+e]+1);a[m]=.5*d;d=.5/d;a[3]=(b[3*f+e]-b[3*e+f])*d;a[f]=(b[3*f+m]+b[3*m+
f])*d;a[e]=(b[3*e+m]+b[3*m+e])*d}return a};p.sj=function(a){return"quat("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"};p.vd=b.vd;p.uf=b.uf;e.qe=p},function(e,b,a){var d=a(1),f={create:function(){var a=new d.Nb(3);a[0]=0;a[1]=0;a[2]=0;return a},clone:function(a){var b=new d.Nb(3);b[0]=a[0];b[1]=a[1];b[2]=a[2];return b},u:function(a,b,f){var m=new d.Nb(3);m[0]=a;m[1]=b;m[2]=f;return m},Qd:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];return a},set:function(a,b,d,f){a[0]=b;a[1]=d;a[2]=f;return a},add:function(a,
b,d){a[0]=b[0]+d[0];a[1]=b[1]+d[1];a[2]=b[2]+d[2];return a},Bd:function(a,b,d){a[0]=b[0]-d[0];a[1]=b[1]-d[1];a[2]=b[2]-d[2];return a}};f.sub=f.Bd;f.multiply=function(a,b,d){a[0]=b[0]*d[0];a[1]=b[1]*d[1];a[2]=b[2]*d[2];return a};f.$i=f.multiply;f.Pm=function(a,b,d){a[0]=b[0]/d[0];a[1]=b[1]/d[1];a[2]=b[2]/d[2];return a};f.WA=f.Pm;f.ceil=function(a,b){a[0]=Math.ceil(b[0]);a[1]=Math.ceil(b[1]);a[2]=Math.ceil(b[2]);return a};f.floor=function(a,b){a[0]=Math.floor(b[0]);a[1]=Math.floor(b[1]);a[2]=Math.floor(b[2]);
return a};f.min=function(a,b,d){a[0]=Math.min(b[0],d[0]);a[1]=Math.min(b[1],d[1]);a[2]=Math.min(b[2],d[2]);return a};f.max=function(a,b,d){a[0]=Math.max(b[0],d[0]);a[1]=Math.max(b[1],d[1]);a[2]=Math.max(b[2],d[2]);return a};f.round=function(a,b){a[0]=Math.round(b[0]);a[1]=Math.round(b[1]);a[2]=Math.round(b[2]);return a};f.scale=function(a,b,d){a[0]=b[0]*d;a[1]=b[1]*d;a[2]=b[2]*d;return a};f.Uw=function(a,b,d,f){a[0]=b[0]+d[0]*f;a[1]=b[1]+d[1]*f;a[2]=b[2]+d[2]*f;return a};f.Hg=function(a,b){var d=
b[0]-a[0],f=b[1]-a[1];a=b[2]-a[2];return Math.sqrt(d*d+f*f+a*a)};f.Lp=f.Hg;f.Zn=function(a,b){var d=b[0]-a[0],f=b[1]-a[1];a=b[2]-a[2];return d*d+f*f+a*a};f.qx=f.Zn;f.length=function(a){var b=a[0],d=a[1];a=a[2];return Math.sqrt(b*b+d*d+a*a)};f.Zv=f.length;f.Th=function(a){var b=a[0],d=a[1];a=a[2];return b*b+d*d+a*a};f.rx=f.Th;f.qw=function(a,b){a[0]=-b[0];a[1]=-b[1];a[2]=-b[2];return a};f.inverse=function(a,b){a[0]=1/b[0];a[1]=1/b[1];a[2]=1/b[2];return a};f.normalize=function(a,b){var d=b[0],f=b[1],
e=b[2];d=d*d+f*f+e*e;0<d&&(d=1/Math.sqrt(d),a[0]=b[0]*d,a[1]=b[1]*d,a[2]=b[2]*d);return a};f.Rc=function(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]};f.Ip=function(a,b,d){var f=b[0],e=b[1];b=b[2];var m=d[0],p=d[1];d=d[2];a[0]=e*d-b*p;a[1]=b*m-f*d;a[2]=f*p-e*m};f.Wi=function(a,b,d,f){var e=b[0],m=b[1];b=b[2];a[0]=e+f*(d[0]-e);a[1]=m+f*(d[1]-m);a[2]=b+f*(d[2]-b);return a};f.a0=function(a,b,d,f,e,c){var m=c*c,p=m*(2*c-3)+1,t=m*(c-2)+c,g=m*(c-1);c=m*(3-2*c);a[0]=b[0]*p+d[0]*t+f[0]*g+e[0]*c;a[1]=b[1]*p+
d[1]*t+f[1]*g+e[1]*c;a[2]=b[2]*p+d[2]*t+f[2]*g+e[2]*c;return a};f.NW=function(a,b,d,f,e,c){var m=1-c,p=m*m,t=c*c,g=p*m;p*=3*c;m*=3*t;c*=t;a[0]=b[0]*g+d[0]*p+f[0]*m+e[0]*c;a[1]=b[1]*g+d[1]*p+f[1]*m+e[1]*c;a[2]=b[2]*g+d[2]*p+f[2]*m+e[2]*c;return a};f.random=function(a,b){b=b||1;var f=2*d.oi()*Math.PI,e=2*d.oi()-1,m=Math.sqrt(1-e*e)*b;a[0]=Math.cos(f)*m;a[1]=Math.sin(f)*m;a[2]=e*b;return a};f.fb=function(a,b,d){var f=b[0],e=b[1];b=b[2];var m=d[3]*f+d[7]*e+d[11]*b+d[15];m=m||1;a[0]=(d[0]*f+d[4]*e+d[8]*
b+d[12])/m;a[1]=(d[1]*f+d[5]*e+d[9]*b+d[13])/m;a[2]=(d[2]*f+d[6]*e+d[10]*b+d[14])/m;return a};f.tV=function(a,b,d){var f=b[0],e=b[1];b=b[2];a[0]=f*d[0]+e*d[3]+b*d[6];a[1]=f*d[1]+e*d[4]+b*d[7];a[2]=f*d[2]+e*d[5]+b*d[8];return a};f.uV=function(a,b,d){var f=b[0],e=b[1],m=b[2];b=d[0];var p=d[1],c=d[2];d=d[3];var t=d*f+p*m-c*e,g=d*e+c*f-b*m,h=d*m+b*e-p*f;f=-b*f-p*e-c*m;a[0]=t*d+f*-b+g*-c-h*-p;a[1]=g*d+f*-p+h*-b-t*-c;a[2]=h*d+f*-c+t*-p-g*-b;return a};f.Qw=function(a,b,d){var f=[],e=[];f[0]=b[0]-d[0];f[1]=
b[1]-d[1];f[2]=b[2]-d[2];e[0]=f[0];e[1]=f[1]*Math.cos(void 0)-f[2]*Math.sin(void 0);e[2]=f[1]*Math.sin(void 0)+f[2]*Math.cos(void 0);a[0]=e[0]+d[0];a[1]=e[1]+d[1];a[2]=e[2]+d[2]};f.NC=function(a,b,d,f){var e=[],m=[];e[0]=b[0]-d[0];e[1]=b[1]-d[1];e[2]=b[2]-d[2];m[0]=e[2]*Math.sin(f)+e[0]*Math.cos(f);m[1]=e[1];m[2]=e[2]*Math.cos(f)-e[0]*Math.sin(f);a[0]=m[0]+d[0];a[1]=m[1]+d[1];a[2]=m[2]+d[2];return a};f.Rw=function(a,b,d){var f=[],e=[];f[0]=b[0]-d[0];f[1]=b[1]-d[1];f[2]=b[2]-d[2];e[0]=f[0]*Math.cos(void 0)-
f[1]*Math.sin(void 0);e[1]=f[0]*Math.sin(void 0)+f[1]*Math.cos(void 0);e[2]=f[2];a[0]=e[0]+d[0];a[1]=e[1]+d[1];a[2]=e[2]+d[2]};f.forEach=function(){var a=f.create();return function(b,d,f,e,m,c){d||(d=3);f||(f=0);for(e=e?Math.min(e*d+f,b.length):b.length;f<e;f+=d)a[0]=b[f],a[1]=b[f+1],a[2]=b[f+2],m(a,a,c),b[f]=a[0],b[f+1]=a[1],b[f+2]=a[2];return b}}();f.angle=function(a,b){a=f.u(a[0],a[1],a[2]);b=f.u(b[0],b[1],b[2]);f.normalize(a,a);f.normalize(b,b);b=f.Rc(a,b);return 1<b?0:Math.acos(b)};f.sj=function(a){return"vec3("+
a[0]+", "+a[1]+", "+a[2]+")"};f.vd=function(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]};f.uf=function(a,b){var f=a[0],e=a[1];a=a[2];var m=b[0],p=b[1];b=b[2];return Math.abs(f-m)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(e-p)<=d.EPSILON*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(a-b)<=d.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))};e.qe=f},function(e,b,a){var d=a(1),f={create:function(){var a=new d.Nb(4);a[0]=0;a[1]=0;a[2]=0;a[3]=0;return a},clone:function(a){var b=new d.Nb(4);
b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];return b},u:function(a,b,f,e){var m=new d.Nb(4);m[0]=a;m[1]=b;m[2]=f;m[3]=e;return m},Qd:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];return a},set:function(a,b,d,f,e){a[0]=b;a[1]=d;a[2]=f;a[3]=e;return a},add:function(a,b,d){a[0]=b[0]+d[0];a[1]=b[1]+d[1];a[2]=b[2]+d[2];a[3]=b[3]+d[3];return a},Bd:function(a,b,d){a[0]=b[0]-d[0];a[1]=b[1]-d[1];a[2]=b[2]-d[2];a[3]=b[3]-d[3];return a}};f.sub=f.Bd;f.multiply=function(a,b,d){a[0]=b[0]*d[0];a[1]=b[1]*d[1];
a[2]=b[2]*d[2];a[3]=b[3]*d[3];return a};f.$i=f.multiply;f.Pm=function(a,b,d){a[0]=b[0]/d[0];a[1]=b[1]/d[1];a[2]=b[2]/d[2];a[3]=b[3]/d[3];return a};f.WA=f.Pm;f.ceil=function(a,b){a[0]=Math.ceil(b[0]);a[1]=Math.ceil(b[1]);a[2]=Math.ceil(b[2]);a[3]=Math.ceil(b[3]);return a};f.floor=function(a,b){a[0]=Math.floor(b[0]);a[1]=Math.floor(b[1]);a[2]=Math.floor(b[2]);a[3]=Math.floor(b[3]);return a};f.min=function(a,b,d){a[0]=Math.min(b[0],d[0]);a[1]=Math.min(b[1],d[1]);a[2]=Math.min(b[2],d[2]);a[3]=Math.min(b[3],
d[3]);return a};f.max=function(a,b,d){a[0]=Math.max(b[0],d[0]);a[1]=Math.max(b[1],d[1]);a[2]=Math.max(b[2],d[2]);a[3]=Math.max(b[3],d[3]);return a};f.round=function(a,b){a[0]=Math.round(b[0]);a[1]=Math.round(b[1]);a[2]=Math.round(b[2]);a[3]=Math.round(b[3]);return a};f.scale=function(a,b,d){a[0]=b[0]*d;a[1]=b[1]*d;a[2]=b[2]*d;a[3]=b[3]*d;return a};f.Uw=function(a,b,d,f){a[0]=b[0]+d[0]*f;a[1]=b[1]+d[1]*f;a[2]=b[2]+d[2]*f;a[3]=b[3]+d[3]*f;return a};f.Hg=function(a,b){var d=b[0]-a[0],f=b[1]-a[1],e=b[2]-
a[2];a=b[3]-a[3];return Math.sqrt(d*d+f*f+e*e+a*a)};f.Lp=f.Hg;f.Zn=function(a,b){var d=b[0]-a[0],f=b[1]-a[1],e=b[2]-a[2];a=b[3]-a[3];return d*d+f*f+e*e+a*a};f.qx=f.Zn;f.length=function(a){var b=a[0],d=a[1],f=a[2];a=a[3];return Math.sqrt(b*b+d*d+f*f+a*a)};f.Zv=f.length;f.Th=function(a){var b=a[0],d=a[1],f=a[2];a=a[3];return b*b+d*d+f*f+a*a};f.rx=f.Th;f.qw=function(a,b){a[0]=-b[0];a[1]=-b[1];a[2]=-b[2];a[3]=-b[3];return a};f.inverse=function(a,b){a[0]=1/b[0];a[1]=1/b[1];a[2]=1/b[2];a[3]=1/b[3];return a};
f.normalize=function(a,b){var d=b[0],f=b[1],e=b[2];b=b[3];var m=d*d+f*f+e*e+b*b;0<m&&(m=1/Math.sqrt(m),a[0]=d*m,a[1]=f*m,a[2]=e*m,a[3]=b*m);return a};f.Rc=function(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]};f.Wi=function(a,b,d,f){var e=b[0],m=b[1],p=b[2];b=b[3];a[0]=e+f*(d[0]-e);a[1]=m+f*(d[1]-m);a[2]=p+f*(d[2]-p);a[3]=b+f*(d[3]-b);return a};f.random=function(a,b){b=b||1;a[0]=d.oi();a[1]=d.oi();a[2]=d.oi();a[3]=d.oi();f.normalize(a,a);f.scale(a,a,b);return a};f.fb=function(a,b,d){var f=
b[0],e=b[1],m=b[2];b=b[3];a[0]=d[0]*f+d[4]*e+d[8]*m+d[12]*b;a[1]=d[1]*f+d[5]*e+d[9]*m+d[13]*b;a[2]=d[2]*f+d[6]*e+d[10]*m+d[14]*b;a[3]=d[3]*f+d[7]*e+d[11]*m+d[15]*b;return a};f.uV=function(a,b,d){var f=b[0],e=b[1],m=b[2],p=d[0],c=d[1],t=d[2];d=d[3];var g=d*f+c*m-t*e,h=d*e+t*f-p*m,n=d*m+p*e-c*f;f=-p*f-c*e-t*m;a[0]=g*d+f*-p+h*-t-n*-c;a[1]=h*d+f*-c+n*-p-g*-t;a[2]=n*d+f*-t+g*-c-h*-p;a[3]=b[3];return a};f.forEach=function(){var a=f.create();return function(b,d,f,e,m,c){d||(d=4);f||(f=0);for(e=e?Math.min(e*
d+f,b.length):b.length;f<e;f+=d)a[0]=b[f],a[1]=b[f+1],a[2]=b[f+2],a[3]=b[f+3],m(a,a,c),b[f]=a[0],b[f+1]=a[1],b[f+2]=a[2],b[f+3]=a[3];return b}}();f.sj=function(a){return"vec4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"};f.vd=function(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]};f.uf=function(a,b){var f=a[0],e=a[1],m=a[2];a=a[3];var p=b[0],c=b[1],g=b[2];b=b[3];return Math.abs(f-p)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(p))&&Math.abs(e-c)<=d.EPSILON*Math.max(1,Math.abs(e),Math.abs(c))&&
Math.abs(m-g)<=d.EPSILON*Math.max(1,Math.abs(m),Math.abs(g))&&Math.abs(a-b)<=d.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))};e.qe=f},function(e,b,a){var d=a(1),f={create:function(){var a=new d.Nb(2);a[0]=0;a[1]=0;return a},clone:function(a){var b=new d.Nb(2);b[0]=a[0];b[1]=a[1];return b},u:function(a,b){var f=new d.Nb(2);f[0]=a;f[1]=b;return f},Qd:function(a,b){a[0]=b[0];a[1]=b[1];return a},set:function(a,b,d){a[0]=b;a[1]=d;return a},add:function(a,b,d){a[0]=b[0]+d[0];a[1]=b[1]+d[1];return a},Bd:function(a,
b,d){a[0]=b[0]-d[0];a[1]=b[1]-d[1];return a}};f.sub=f.Bd;f.multiply=function(a,b,d){a[0]=b[0]*d[0];a[1]=b[1]*d[1];return a};f.$i=f.multiply;f.Pm=function(a,b,d){a[0]=b[0]/d[0];a[1]=b[1]/d[1];return a};f.WA=f.Pm;f.ceil=function(a,b){a[0]=Math.ceil(b[0]);a[1]=Math.ceil(b[1]);return a};f.floor=function(a,b){a[0]=Math.floor(b[0]);a[1]=Math.floor(b[1]);return a};f.min=function(a,b,d){a[0]=Math.min(b[0],d[0]);a[1]=Math.min(b[1],d[1]);return a};f.max=function(a,b,d){a[0]=Math.max(b[0],d[0]);a[1]=Math.max(b[1],
d[1]);return a};f.round=function(a,b){a[0]=Math.round(b[0]);a[1]=Math.round(b[1]);return a};f.scale=function(a,b,d){a[0]=b[0]*d;a[1]=b[1]*d;return a};f.Uw=function(a,b,d,f){a[0]=b[0]+d[0]*f;a[1]=b[1]+d[1]*f;return a};f.Hg=function(a,b){var d=b[0]-a[0];a=b[1]-a[1];return Math.sqrt(d*d+a*a)};f.Lp=f.Hg;f.Zn=function(a,b){var d=b[0]-a[0];a=b[1]-a[1];return d*d+a*a};f.qx=f.Zn;f.length=function(a){var b=a[0];a=a[1];return Math.sqrt(b*b+a*a)};f.Zv=f.length;f.Th=function(a){var b=a[0];a=a[1];return b*b+a*
a};f.rx=f.Th;f.qw=function(a,b){a[0]=-b[0];a[1]=-b[1];return a};f.inverse=function(a,b){a[0]=1/b[0];a[1]=1/b[1];return a};f.normalize=function(a,b){var d=b[0],f=b[1];d=d*d+f*f;0<d&&(d=1/Math.sqrt(d),a[0]=b[0]*d,a[1]=b[1]*d);return a};f.Rc=function(a,b){return a[0]*b[0]+a[1]*b[1]};f.Ip=function(a,b,d){b=b[0]*d[1]-b[1]*d[0];a[0]=a[1]=0;a[2]=b};f.Wi=function(a,b,d,f){var e=b[0];b=b[1];a[0]=e+f*(d[0]-e);a[1]=b+f*(d[1]-b);return a};f.random=function(a,b){b=b||1;var f=2*d.oi()*Math.PI;a[0]=Math.cos(f)*
b;a[1]=Math.sin(f)*b;return a};f.Y1=function(a,b,d){var f=b[0];b=b[1];a[0]=d[0]*f+d[2]*b;a[1]=d[1]*f+d[3]*b;return a};f.Z1=function(a,b,d){var f=b[0];b=b[1];a[0]=d[0]*f+d[2]*b+d[4];a[1]=d[1]*f+d[3]*b+d[5];return a};f.tV=function(a,b,d){var f=b[0];b=b[1];a[0]=d[0]*f+d[3]*b+d[6];a[1]=d[1]*f+d[4]*b+d[7];return a};f.fb=function(a,b,d){var f=b[0];b=b[1];a[0]=d[0]*f+d[4]*b+d[12];a[1]=d[1]*f+d[5]*b+d[13];return a};f.forEach=function(){var a=f.create();return function(b,d,f,e,m,c){d||(d=2);f||(f=0);for(e=
e?Math.min(e*d+f,b.length):b.length;f<e;f+=d)a[0]=b[f],a[1]=b[f+1],m(a,a,c),b[f]=a[0],b[f+1]=a[1];return b}}();f.sj=function(a){return"vec2("+a[0]+", "+a[1]+")"};f.vd=function(a,b){return a[0]===b[0]&&a[1]===b[1]};f.uf=function(a,b){var f=a[0];a=a[1];var e=b[0];b=b[1];return Math.abs(f-e)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(e))&&Math.abs(a-b)<=d.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))};e.qe=f}])});g(2,0,function(){function e(a,b,d,f){this.set(a,b,d,f)}var b=h(1),a=b.U,d=b.l,f=b.T;a.u=a.u||
function(b,d,f,e,m,p,c,g,t,w,h,n,l,k,q,r){var v=a.create();v[0]=b;v[1]=d;v[2]=f;v[3]=e;v[4]=m;v[5]=p;v[6]=c;v[7]=g;v[8]=t;v[9]=w;v[10]=h;v[11]=n;v[12]=l;v[13]=k;v[14]=q;v[15]=r;return v};f.vd=f.vd||function(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]};var m=5/9,p=8/9,c=5/9,g=function(){var b=a.u(-1,3,-3,1,3,-6,3,0,-3,3,0,0,1,0,0,0),e=f.create(),m=f.create(),p=d.create();return function(a,c,g){f.set(e,3*a*a,2*a,1,0);f.fb(m,e,b);f.set(p,f.Rc(m,c),f.Rc(m,g));return d.length(p)}}();
e.prototype.set=function(a,b,d,e){this.Db=f.u(a[0],a[1],0,1);this.Lb=f.u(b[0],b[1],0,1);this.we=f.u(d[0],d[1],0,1);this.Ud=f.u(e[0],e[1],0,1);this.Rr=f.u(a[0],b[0],d[0],e[0]);this.Sr=f.u(a[1],b[1],d[1],e[1])};e.prototype.clone=function(){return new e(d.clone(this.Db),d.clone(this.Lb),d.clone(this.we),d.clone(this.Ud))};e.prototype.fb=function(a){var b=f.fb(f.create(),this.Db,a),d=f.fb(f.create(),this.Lb,a),m=f.fb(f.create(),this.we,a);a=f.fb(f.create(),this.Ud,a);f.scale(b,b,1/b[3]);f.scale(d,d,1/
d[3]);f.scale(m,m,1/m[3]);f.scale(a,a,1/a[3]);return new e(b,d,m,a)};e.prototype.length=function(a){var b=this.Rr,d=this.Sr;a*=.5;return a*(m*g(1.774597*a,b,d)+p*g(a,b,d)+c*g(1.225403*a,b,d))};e.prototype.zw=function(){var b=f.create(),e=f.create(),m=a.create(),p=a.create();return function(c,g,t){var w=0,h=1,v=0,n=this.length(t);t=this.length(1);c=n-.5*g+c;for(g=0;10>g;g++){n=.5*(w+h);var y=this.length(n);c>y?(w=n,v=y):(h=n,t=y)}c=c/(t+v)*(w+h);w=c*c;f.set(b,c*w,w,c,1);f.set(e,3*w,2*c,1,0);a.set(m,
-1,3,-3,1,3,-6,3,0,-3,3,0,0,1,0,0,0);f.fb(p,b,m);c=d.u(f.Rc(p,this.Rr),f.Rc(p,this.Sr));w=f.fb(f.create(),e,m);w=d.u(f.Rc(w,this.Rr),f.Rc(w,this.Sr));d.normalize(w,w);h=d.u(-w[1],w[0]);return{gV:w,position:c,fC:h}}}();e.prototype.ac=function(a,b){a=this.fb(a);var d=a.Db,e=a.Lb,m=a.we,p=a.Ud,c=b[0];b=b[1];d[0]=c*(d[0]+1)*.5;d[1]=b*(d[1]+1)*.5;e[0]=c*(e[0]+1)*.5;e[1]=b*(e[1]+1)*.5;m[0]=c*(m[0]+1)*.5;m[1]=b*(m[1]+1)*.5;p[0]=c*(p[0]+1)*.5;p[1]=b*(p[1]+1)*.5;a.Rr=f.u(d[0],e[0],m[0],p[0]);a.Sr=f.u(d[1],
e[1],m[1],p[1]);return a};e.prototype.scale=function(a){var b=this.clone(),d=b.Db,e=b.Lb,m=b.we,p=b.Ud;f.scale(d,d,a);f.scale(e,e,a);f.scale(m,m,a);f.scale(p,p,a);return b};e.prototype.EB=function(){this.set(this.Ud,this.we,this.Lb,this.Db)};e.prototype.direction=function(){return d.sub(d.create(),this.Ud,this.Db)};e.prototype.Oh=function(){return{Db:this.Db,Lb:this.Lb,we:this.we,Ud:this.Ud}};e.prototype.JB=function(){return!1};e.BD=function(a){return new e(a.Db,a.Lb,a.we,a.Ud)};return e});g(3,0,
function(){var e=h(1),b=h(2),a={},d;for(d in Math)a[d]=Math[d];a.cw=e.cw;a.XB=e.XB;a.dw=e.dw;a.U=e.U;a.Mq=e.Mq;a.l=e.l;a.Ya=e.Ya;a.T=e.T;a.Mq=e.Mq;a.UV=b;var f=Math.PI/180;a.vB=.5*Math.PI;a.yD=function(a){return f*a};a.pV=a.yD;a.lE=Math.log(2);a.log2="function"===typeof Math.log2?Math.log2.bind(Math):function(b){return Math.log(b)/a.lE};var m=a.T.create();a.l.ac=function(b,d,f,e){m[0]=d[0];m[1]=d[1];m[2]=0;m[3]=1;a.T.ac(m,m,f,e);b[0]=m[0];b[1]=m[1]};a.Ya.ac=function(b,d,f,e){m[0]=d[0];m[1]=d[1];m[2]=
d[2];m[3]=1;a.T.ac(b,m,f,e);b[0]=m[0];b[1]=m[1];b[2]=0};a.T.ac=function(b,d,f,e){a.T.fb(b,d,f);a.T.scale(b,b,1/b[3]);b[0]=e[0]*(b[0]+1)*.5;b[1]=e[1]*(b[1]+1)*.5;b[2]=0;b[3]=1};a.qk=function(a,b,d){return Math.min(d,Math.max(b,a))};a.vec2=a.l;a.vec3=a.Ya;a.vec4=a.T;a.mat2=a.cw;a.mat3=a.dw;a.mat4=a.U;a.l.toScreenSpace=a.l.ac;a.Ya.toScreenSpace=a.Ya.ac;a.T.toScreenSpace=a.T.ac;a.l.fromValues=a.l.u;a.Ya.fromValues=a.Ya.u;a.T.fromValues=a.T.u;a.T.transformMat4=a.T.fb;a.U.multiply=a.U.multiply;return a});
g(4,0,function(){return{WR:8,global:{}}});g(5,0,function(){var e=h(3),b=h(4),a=h(0),d={};d.Pb=function(){var a=0;return function(){return a++}}();d.rO=function(b,d,f){var m=Math.pow(2,-b.z-.001);d=d[1]/a.We*m;return{target:e.Ya.u((b.x+.5)*m,1-(b.y+.5)*m,0),zoom:.5*d/Math.tan(.5*f)}};d.kB=function(a){for(var b=1,d=1,f=1;f<a;)b>d?d*=2:b*=2,f*=2;return e.l.u(b,d)};d.b0=function(a){for(;0===(a&1)&&1<a;)a>>=1;return 1===a};d.UZ=function(a){for(var b=1;b<a;)b<<=1;return b};d.Ev=function(a){for(var b=1;b<=
a;)b<<=1;return b};d.wT=function(){};d.random=Math.random;var f=null;d.uB=function(a){var b=a?a.split("?")[1]:location.search.substr(1);if(!a&&f)return f;var d={};b=b.split("&");for(var e=0,m=b.length;e<m;e++){var p=b[e].split("=");2===p.length&&(d[decodeURIComponent(p[0])]=decodeURIComponent(p[1]))}a||(f=d);return d};d.JN=function(a){for(var b in a)null!==a[b]?f[b]=a[b]:delete f[b]};d.xT=function(a){a=a||f;var b="",d;for(d in a)b+=encodeURIComponent(d)+"="+encodeURIComponent(a[d])+"&";return b.substr(0,
b.length-1)};d.Ef=function(a){return Object.keys(a).map(function(b){return a[b]})};d.TA=function(a,d){b.global[a]=d};d.Zf=function(a){for(var b in a)d.TA(b,a[b])};d.lB=function(a){var b=a.indexOf(".");return-1!==b?a.substr(0,b):a};d.Gx=function(a,b){return d.lB(a)===d.lB(b)};d.uQ=function(a,b){return a.replace(/{{(.*?)}}/g,function(a,d){return b[d]})};d.Xe=function(a){return 3===a.length?[a[0]/255,a[1]/255,a[2]/255]:[a[0]/255,a[1]/255,a[2]/255,a[3]/255]};d.GZ=function(a,b,d,f,e,m){return Math.sqrt(Math.pow(a-
b,2)+Math.pow(d-f,2)+Math.pow(e-m,2))};d.e0=function(a,b){b="object"===typeof b?Object.keys(b)[0]:b;b=a[b];var d=[],f;for(f in a)a[f]===b&&d.push(f);return{WN:d,Up:b,l0:function(b){this.WN.forEach(function(d){a[d]=b})}}};if("function"===typeof BigInt){var m=BigInt(32);d.Be=function(a){if(a.high|a.low)return(BigInt(a.high)<<m|BigInt(a.low)).toString()}}else d.Be=function(a){if(a.high|a.low){var b=a.high>>>0,d=~~(b/23284);a=4294967296*(b-23284*d)+4018520064*d+(a.low>>>0);b=~~(a/1E14);d+=b;a=""+(a-1E14*
b);return d?d+"00000000000000".slice(a.length)+a:a}};d.Ex=String;d.getURLParameters=d.uB;d.serializeParameters=d.xT;d.addURLParameters=d.JN;d.toArray=d.Ef;d.cameraPropertiesFromTileKey=d.rO;d.defineGlobal=d.TA;d.defineGlobals=d.Zf;d.versionsHaveMatchingMajorComponent=d.Gx;d.normalizedColor=d.Xe;d.uB();return d});g(6,0,function(){function e(a){this.Bp=a;this.Vf=!1}function b(a,b,d){this.size=a;this.x=b;this.y=d;this.items=[];this.reset()}function a(a,d,e){this.Cd=d;this.Gh=e||f.l.u(0,0);e=2*this.Gh[0]+
(d[0]||a);d=2*this.Gh[1]+(d[1]||a);this.tg=a||10;this.He=[];for(var m=0;m<e;m+=a){for(var c=[],p=0;p<d;p+=a){var g=new b(a,m,p);c.push(g)}this.He.push(c)}}var d=h(5),f=h(3);e.prototype.uv=function(a){for(var b=0,d=this.Bp.length;b<d&&!a(this.Bp[b],b);b++);};b.prototype.reset=function(){this.count=0;this.items.length=0};a.prototype.clear=function(){for(var a=0,b=this.He.length;a<b;a++)for(var d=this.He[a],f=0,e=d.length;f<e;f++)d[f].reset()};a.prototype.RQ=function(a){var b=[];a=a.cells;for(var d=
0,f=a.length;d<f;++d)b=b.concat(a[d].items);return b};a.prototype.wQ=function(a,b){var d=a.x+this.Gh[0],f=a.y+this.Gh[1],e=Math.min(d+a.Dd,this.Cd[0]+2*this.Gh[0]);a=Math.min(f+a.Sd,this.Cd[1]+2*this.Gh[1]);if(0>e||d>=this.Cd[0]+2*this.Gh[0]||0>a||f>=this.Cd[1]+2*this.Gh[1])return!1;d=Math.floor(d/this.tg);f=Math.floor(f/this.tg);0>d&&(d=0);0>f&&(f=0);var m=d;do{var c=f;d=this.He[m][c];if(d.x>e)break;do{if(void 0===this.He[m]||void 0===this.He[m][c])debugger;d=this.He[m][c];if(d.y>a)break;if(b(d))return!1;
c++}while(c<this.He[m].length);m++}while(m<this.He.length);return!0};a.prototype.GQ=function(a){function b(b){a.cells.push(b);return!1}a.cells=[];var d=this,f=!1;a.uv(function(a){return f=!d.wQ(a,b)})};a.prototype.xA=function(a){a.cells.forEach(function(b){b.items.push(a)})};a.prototype.DC=function(a){for(var b=0,d=a.cells.length;b<d;b++){var f=a.cells[b];f.items.splice(f.items.indexOf(a),1)}delete a.Vf};a.prototype.GO=function(a){a=new e(a);a.id=d.Pb();return a};return a});g(7,0,function(){function e(a,
b){var d=a.ib[0]-b.ib[0],f=a.ib[1]-b.ib[1];a=a.Lh+b.Lh;return a*a>=d*d+f*f}function b(a,b){var d=.5*b.Dd,m=.5*b.Sd,c=d+a.Lh,p=m+a.Lh,g=[b.x+d,b.y+m],t=g[0]-a.ib[0],h=g[1]-a.ib[1];return t*t+h*h>=c*c+p*p?!1:e(a,new f(g,d<m?d:m))?!0:a.ib[0]>=b.x&&a.ib[0]<=b.x+b.Dd?b.Nv(0,-a.Lh).contains(a.ib):a.ib[1]>=b.y&&a.ib[1]<=b.y+b.Sd?b.Nv(-a.Lh,0).contains(a.ib):!0}function a(a,b,d,f,e){this.x=a;this.y=b;this.Dd=d;this.Sd=f;this.angle=e}function d(a,b,d,f){this.x=a;this.y=b;this.Dd=d;this.Sd=f}function f(a,b){this.ib=
a;this.Lh=b;this.x=a[0]-b;this.y=a[1]-b;this.Sd=this.Dd=a=2*b}var m=h(3);a.prototype.contains=function(a){var b=m.l.u(.5*this.Dd*Math.cos(this.angle),.5*this.Dd*Math.sin(this.angle)),d=m.l.u(.5*this.Sd*Math.cos(this.angle+m.vB),.5*this.Sd*Math.sin(this.angle+m.vB)),f=m.l.u(this.x-b[0]-d[0],this.y-b[1]-d[1]),e=m.l.u(this.x-b[0]+d[0],this.y-b[1]+d[1]),c=m.l.u(this.x+b[0]+d[0],this.y+b[1]+d[1]);b=m.l.u(this.x+b[0]-d[0],this.y+b[1]-d[1]);var p=m.l.create();d=m.l.create();var g=m.l.sub(p,e,f),h=m.l.sub(d,
a,f);if(0>m.l.Rc(g,h))return!1;g=m.l.sub(p,c,e);e=m.l.sub(d,a,e);if(0>m.l.Rc(g,e))return!1;e=m.l.sub(p,b,c);c=m.l.sub(d,a,c);if(0>m.l.Rc(e,c))return!1;f=m.l.sub(p,f,b);a=m.l.sub(d,a,b);return 0<=m.l.Rc(f,a)};a.prototype.Km=function(){};a.prototype.Su=function(){};a.prototype.Vf=function(){};d.prototype.ib=function(){return m.l.u(this.x+.5*this.Dd,this.y+.5*this.Sd)};d.DQ=function(a){var b=a.min();return new d(b[0],b[1],a.width(),a.height())};d.prototype.contains=function(a){return this.x<=a[0]&&this.x+
this.Dd>=a[0]&&this.y<=a[1]&&this.y+this.Sd>=a[1]};d.prototype.Vf=function(a){return a.Km(this)};d.prototype.Km=function(a){return this.x<a.x+a.Dd&&this.y<a.y+a.Sd&&this.x+this.Dd>a.x&&this.y+this.Sd>a.y};d.prototype.Su=function(a){return b(a,this)};d.prototype.Nv=function(a,b){return new d(this.x+a,this.y+b,this.Dd-2*a,this.Sd-2*b)};f.prototype.contains=function(a){var b=a[0]-this.ib[0];a=a[1]-this.ib[1];return this.Lh*this.Lh>=b*b+a*a};f.prototype.Vf=function(a){return a.Su(this)};f.prototype.Km=
function(a){return b(this,a)};f.prototype.Su=function(a){return e(this,a)};return{wE:a,Yr:d,Vx:f}});g(8,0,function(){var e=h(5);return{P:function(b,a){Object.defineProperty(b.prototype,"__IS_NOT_INSTANCE__",{enumerable:!1,writable:!0});b.prototype.wy=!0;a.prototype=new b;b.prototype.wy=!1;a.prototype.constructor=a;Object.defineProperty(a.prototype,"classId",{enumerable:!1,writable:!0});e.Pb();a.prototype.parent=b.prototype},ua:function(b){return!b.wy}}});g(9,0,function(){function e(a){d.ua(this)&&
(this.Cc=[],this.kJ="boolean"===typeof a?a:!0)}function b(a){d.ua(this)&&e.prototype.constructor.apply(this,arguments)}function a(a){e.prototype.constructor.apply(this,arguments)}var d=h(8),f=h(3);e.prototype.EL=function(a){this.Cc.push(a)};e.prototype.vw=function(a,b,d){this.hD();b.push(this.Cc[0]);var e,m=a*a,c=b.length-1;a=1;for(e=this.Cc.length;a<e;a++){var p=this.Cc[a];for(var g=!1,t=c,h=b.length;t<h;t++){var n=f.l.qx(b[t].O.ib,p.O.ib);if(this.kJ&&n<m){g=!0;break}}g?d.push(p):b.push(p)}};d.P(e,
b);b.prototype.hD=function(){this.Cc.sort(function(a,b){return b.O.Se!==a.O.Se?b.O.Se-a.O.Se:a.O.id.localeCompare(b.O.id)})};d.P(e,a);a.prototype.hD=function(){this.Cc.sort(function(a,b){return a.O.Ve.oe!==b.O.Ve.oe?a.O.Ve.oe-b.O.Ve.oe:a.O.Se!==b.O.Se?b.O.Se-a.O.Se:a.O.id.localeCompare(b.O.id)})};e.XD=b;e.uE=a;return e});g(10,0,function(){return{B:0,hs:1,xs:2,kd:3,Zr:4,VV:5,Yx:6}});g(11,0,function(){function e(d){d.Da=function(a,b,d,f){var e=this.Mf||{},m=e[a]||[];m.push({sf:b,context:d||b,once:f?
1:0});e[a]=m;this.Mf=e;return this};d.va=function(a,d,f){this.Mf=this.Mf||{};if(0===arguments.length)return delete this.Mf,this;if(1===arguments.length)return delete this.Mf[a],this;var e=this.Mf[a];if(void 0===e)return this;f?d?(d=d.aF?d.aF:d,b(e,function(a){if(a.sf===d&&a.context===f)return!0;if(a=a.sf.Hs)return a.sf===d&&a.context===f})):b(e,function(a){if(a.context===f)return!0;if(a=a.sf.Hs)return a.context===f}):b(e,function(a){if(a.sf===d)return!0;if(a=a.sf.Hs)return a.sf===d});return this};
d.W=function(a,b){if(void 0!==this.Mf){var d=this.Mf[a];if(void 0!==d){for(var f=0,e=0,m=d.length;e<m;e++){var c=d[e];f+=c.once;c.sf.call(c.context,b)}f&&(b=this.Mf||{},d=b[a]||[],b[a]=d.filter(function(a){return!a.once}),this.Mf=b);return this}}};d.once=function(a,b,d){return this.Da(a,b,d,!0)};d.race=function(){return new a(this)};d.$E=!0;d.on=d.Da;d.off=d.va;d.once=d.once;d.race=d.race;d.notify=d.W}function b(a,b){for(var d=0,f=0,e=a.length;d<e;d++)b(a[f])?a.splice(f,1):f++}function a(a){this.object=
a;this.Gn=[];d.Pb()}var d=h(5),f;a.prototype.add=function(a,b,d){function e(a){c.iI||(c.iI=!0,c.Gn.splice(m.index,1),f.Hf.qa(function(){for(var a=0,b=c.Gn.length;a<b;a++){var d=c.Gn[a];c.object.va(d.id,d.sf,d.context)}}),m.sf.call(m.context,a))}var m={id:a,sf:b,context:d,index:this.Gn.length},c=this;c.Gn.push(m);e.Hs=m;this.object.once(a,e,d);return this};e(a.prototype);a.prototype.add=a.prototype.add;var m={UC:function(a){f=a},ka:e,forward:function(a,b){if("object"===typeof b){var d=b;b=d.W.bind(d)}var f=
a.W;a.W=function(a,d){b(a,d);f.apply(this,arguments)}},DR:function(a){return!0===a.$E}};m.decorate=e;return m});g(12,0,function(){function e(){this.id=d.Pb();this.Je=b.l.create();this.Le=b.l.create();this.Ld=b.l.create();this.bp=!0;this.dm=!1;this.Vo=f.dy;Object.defineProperty(this,"x",{get:function(){return this.Je[0]},set:function(a){this.Je[0]!==a&&(this.Je[0]=a,this.Vj())}});Object.defineProperty(this,"y",{get:function(){return this.Je[1]},set:function(a){this.Je[1]!==a&&(this.Je[1]=a,this.Vj())}});
Object.defineProperty(this,"width",{get:function(){return this.Le[0]},set:function(a){this.Le[0]!==a&&(this.Le[0]=a,this.Vj())}});Object.defineProperty(this,"height",{get:function(){return this.Le[1]},set:function(a){this.Le[1]!==a&&(this.Le[1]=a,this.Vj())}});Object.defineProperty(this,"xOffset",{get:function(){return this.Ld[0]},set:function(a){this.Ld[0]!==a&&(this.Ld[0]=a,this.Vj())}});Object.defineProperty(this,"yOffset",{get:function(){return this.Ld[1]},set:function(a){this.Ld[1]!==a&&(this.Ld[1]=
a,this.Vj())}});this.xg=!1}var b=h(3),a=h(11),d=h(5),f={dy:1,ts:2,Sx:3};e.prototype.ax=function(a){this.Vo=a};e.prototype.Cw=function(){return this.Vo};e.prototype.dD=function(){this.bp=!1};e.prototype.$C=function(){this.dm=!0};e.prototype.Vj=function(){this.sc();this.W("property-changed")};e.prototype.sc=function(){this.xg=!0};e.prototype.ze=function(){var a=this.cf();a.uT=this.bp;a.rS=this.dm;a.Cw=this.Vo;return a};e.prototype.ff=function(a){this.Je[0]=a.location[0];this.Je[1]=a.location[1];this.Le[0]=
a.size[0];this.Le[1]=a.size[1];this.Ld[0]=a.offset[0];this.Ld[1]=a.offset[1]};e.create=function(a){var b=new e;b.id=a.id;b.bp=a.uT;b.dm=a.rS;b.Vo=a.Cw;b.ff(a);return b};e.prototype.cf=function(){return{id:this.id,location:this.Je,offset:this.Ld,size:this.Le}};e.prototype.location=function(){return this.Je};e.prototype.size=function(){return this.Le};e.prototype.offset=function(){return this.Ld};var m=b.l.create(),c=b.l.create(),g=b.l.create();e.prototype.sT=function(a,d,f){var e=this.Le,p=b.l.u(0,
0),t=b.l.u(e[0],e[1]);if(this.dm){b.l.ac(m,this.Je,d,f);var h=b.l.u(e[0],0);e=b.l.u(0,e[1]);b.l.ac(p,p,d,f);b.l.ac(t,t,d,f);b.l.ac(h,h,d,f);b.l.ac(e,e,d,f);d=0;p[1]>h[1]?(d=Math.PI,t=b.l.sub(g,p,h)):t=b.l.sub(g,h,p);f=b.l.length(t);b.l.normalize(t,t);t=b.l.Rc(t,b.l.u(1,0));d+=Math.acos(t);p=b.l.length(b.l.sub(g,e,p));e=c;e[0]=f;e[1]=p;a.x=m[0];a.y=m[1];a.Dd=f;a.Sd=p;a.angle=d}else b.l.ac(m,this.Je,d,f),e=this.Le,h=this.Ld,this.bp||(b.l.ac(p,p,d,f),b.l.ac(t,t,d,f),e=c,e[0]=t[0]-p[0],e[1]=t[1]-p[1]),
a.x=m[0]-.5*e[0]+h[0],a.y=m[1]-.5*e[1]+h[1],a.Dd=e[0],a.Sd=e[1]};a.ka(e.prototype);e.Hj=f;return e});g(13,0,function(){function e(b){this.tH=!0;this.$j=a.os;var d=this;try{b.call(this,function(a){d.Dz(a)},function(a){d.pt(a)})}catch(m){e.qt(this.pt.bind(this),m)}}var b=h(11),a={os:0,Xx:1,my:2};e.qt=function(a,b){"string"===typeof b?a(b):a(b.message)};e.timeout=function(a){var b,d,c=new e(function(f,e){d=e;b=setTimeout(f,a)});c.cancel=function(a){clearTimeout(b);d(a)};return c};e.Lk=function(a){return"object"===
typeof a&&a&&!0===a.tH};e.all=function(a){var b=null,d=null;if(0===a.length)return e.resolve([]);var c=new e(function(a,f){d=a;b=f});for(var g=[],h=a.length,n=!1,l=0,v=a.length;l<v;l++)(function(a,f){e.Lk(a)||(a=e.resolve(a));a.then(function(a){g[f]=a;--h;h||d(g)},function(a){n||(n=!0,b(a))})})(a[l],l);return c};e.race=function(a){for(var b=null,d=null,c=new e(function(a,f){b=a;d=f}),g=0,h=a.length;g<h;g++){var n=a[g];if(!e.Lk(n)){b(n);break}if(n.Kk()){n.ER()?d(n.Ct):b(n.Xt);break}n.then(function(a){!c.Kk()&&
b(a)},function(a){!c.Kk()&&d(a)})}return c};e.reject=function(a){return new e(function(b,d){d(a)})};e.resolve=function(a){return new e(function(b){b(a)})};e.prototype.Rv=function(){return this.$j===a.os};e.prototype.Kk=function(){return this.$j!==a.os};e.prototype.ER=function(){return this.$j===a.my};e.prototype.zR=function(){return this.$j===a.Xx};e.prototype.Dz=function(b){if(e.Lk(b)){var d=this;b.then(function(a){d.Dz(a)},function(a){d.pt(a)})}else this.$j=a.Xx,this.Xt=b,this.W("fulfilled",b),
this.va("fulfilled"),this.va("rejected")};e.prototype.pt=function(b){this.$j=a.my;this.Ct=b;this.W("rejected",b);this.va("rejected");this.va("fulfilled")};e.prototype.catch=function(a){return this.then(null,a)};e.prototype.then=function(a,b){var d=this;return this.Kk()?this.zR()?a?new e(function(b){b(a(d.Xt))}):e.resolve(this.Xt):b?new e(function(a){a(b(d.Ct))}):e.reject(this.Ct):new e(function(f,m){d.Da("fulfilled",function(b){if(a)try{b=a(b),f(b)}catch(C){e.qt(m,C)}else f(b)});d.Da("rejected",function(a){if(b)try{var d=
b(a);f(d)}catch(I){e.qt(m,I)}else m(a)})})};b.ka(e.prototype);e.prototype.then=e.prototype.then;e.prototype["catch"]=e.prototype.catch;e.race=e.race;e.all=e.all;e.timeout=e.timeout;e.isThenable=e.Lk;e.isPromise=e.Lk;return e});g(14,0,function(){var e=0,b={cs:e++,mo:e++,LE:e++,PD:e++,KE:e++,ko:e++,Qx:e++,Rx:e++,MD:e++,qy:e++,ms:e++,Cs:e++,hW:e++,py:e++,rE:e++};b.count=e++;return b});g(15,0,function(){var e={},b=0;e.Dl=b++;e.Kf=b++;e.Rb=b++;e.ng=b++;e.$g=b++;e.ri=b++;e.Wg=b++;e.Fe=b++;e.hf=b++;e.ha=
b++;e.ab=b++;e.xc=b++;e.nd=b++;e.ma=b++;e.Ia=b++;e.ia=b++;e.B=b++;e.Wc=b++;e.kd=b++;e.qg=b++;e.dc=b++;e.sg=b++;e.count=b++;var a={ji:0,xl:1,mi:2,Il:3,ME:4,As:5,oy:100},d={};d[a.ji]={standard:{style:"standard",Xa:[e.ha,e.nd,e.ma,e.xc,e.Ia,e.ia,e.B,e.Wc,e.sg]},hybrid:{style:"hybrid",Xa:[e.ma,e.Ia,e.ia,e.B,e.Wc,e.sg]},satellite:{style:"satellite",Xa:[e.Rb,e.sg]}};d[a.xl]={standard:{style:"standard",Xa:[e.ha,e.nd,e.ma,e.xc,e.Ia]},hybrid:{style:"hybrid",Xa:[e.ma,e.Ia]},satellite:{style:"satellite",Xa:[e.Rb]}};
d[a.mi]={standard:{style:"standard",Xa:[e.Fe,e.ia,e.B,e.Wc,e.sg]},hybrid:{style:"hybrid",Xa:[e.hf,e.ia,e.B,e.Wc,e.sg]},satellite:{style:"satellite",Xa:[e.Rb,e.sg]}};d[a.Il]={standard:{style:"standard",Xa:[e.Kf]},hybrid:{style:"hybrid",Xa:[e.Rb,e.ng]},satellite:{style:"satellite",Xa:[e.Rb]}};d[a.ME]={standard:{style:"standard",Xa:[e.Fe]},hybrid:{style:"hybrid",Xa:[e.Rb,e.hf]},satellite:{style:"satellite",Xa:[e.Rb]}};d[a.oy]={standard:{style:"standard",Xa:[e.$g]},hybrid:{style:"hybrid",Xa:[e.Rb,e.Wg]},
satellite:{style:"satellite",Xa:[e.Rb]}};d[a.As]={standard:{style:"standard",Xa:[e.ha,e.nd,e.ma,e.xc,e.Ia,e.ia,e.B,e.Wc]},hybrid:{style:"hybrid",Xa:[e.Rb,e.ma,e.Ia,e.ia,e.B,e.Wc]},satellite:{style:"satellite",Xa:[e.Rb]}};for(var f in a){b=d[a[f]];for(var m in b)"hybrid"===m&&b[m].Xa.unshift(e.Rb),b[m].Xa.unshift(e.Dl)}Object.freeze(d);e.zC=function(b,f,m){b===a.Il&&(m&&(b=a.oy),m=!0);b=d[b][f];var c=b.Xa.slice();m||"satellite"===f||c.push(e.kd);f={Xa:c,style:b.style};f.layers=f.Xa;f.style=f.style;
return f};var c=["standard","hybrid","satellite"];Object.freeze(c);e.UR=function(){return c};e.md=a;a.Default=a.ji;a.BaseMapOnly=a.xl;a.LOCSR=a.mi;a.SSR=a.Il;a.Snapshot=a.As;e.RenderingModes=e.md;e.StandardRasterTile_NoPOI=e.$g;e.StandardRasterTile_NoLabels=e.Fe;e.SatelliteRasterTile_NoPOI=e.ri;e.HybridRasterTile_NoPOI=e.Wg;e.HybridRasterTile_NoLabels=e.hf;e.StandardRasterTile=e.Kf;e.SatelliteRasterTile=e.Rb;e.HybridRasterTile=e.ng;e.Polygon=e.ha;e.Building=e.xc;e.Road=e.ma;e.River=e.nd;e.Shield=
e.ia;e.TextLabel=e.B;e.RoadTextLabel=e.Wc;e.POILabel=e.kd;e.Grid=e.Dl;e.RoadArrow=e.Ia;e.SilverOverlay=e.dc;e.WebGLLayer=e.sg;e.propertiesFromMapMode=e.zC;e.mapModes=e.UR;e.colorSchemeForDisplayOptions=e.UW;e.OD=[e.ha,e.ab,e.nd,e.xc,e.ma,e.Rb,e.Kf,e.Fe];return e});g(18,0,function(){function e(a,b){this.Rf=!1;this.Pu=a;this.tJ=b;this.Cd=[0,0];this.reset()}var b=h(0),a=h(3),d=h(6),f=h(7),m=f.Yr,c=f.wE;f=h(9);var g=f.XD,w=f.uE,n=h(10),l=h(12);e.prototype.reset=function(){this.Cc=[];this.hh={};this.$m=
{};this.Xn={};this.Jm={};this.Ol={};this.Ol[b.LC]={qq:0,Od:0,Dp:0,Vn:0,Nh:0,oe:0,Yq:!1,visible:!0,kb:!1};this.Ol[b.FB]={qq:0,Od:0,Dp:0,Vn:0,Nh:0,oe:0,Yq:!1,visible:!1,kb:!1};this.resize(this.Cd)};e.prototype.resize=function(b){this.Cd=b;b=this.Rf?a.l.clone(this.Cd):a.l.u(0,0);a.l.scale(b,b,4);this.Wf=new d(this.Pu,this.Cd,b)};e.prototype.fg=function(a){this.Rf=a;this.resize(this.Cd)};e.prototype.fj=function(a){for(var b=0,d=a.length;b<d;++b){var f=a[b];this.Ol[f.id]=f}};e.prototype.eg=function(b){switch(b.Cw()){case l.Hj.dy:this.$m[b.id]=
b;break;case l.Hj.ts:this.Xn[b.id]=b;break;case l.Hj.Sx:this.Jm[b.id]=b}var d=b.dm?new c(0,0,0,0,0):new m(0,0,0,0);b.O={b:d,gg:a.l.create()}};e.prototype.mg=function(a){[this.$m,this.Xn,this.Jm].forEach(function(b){delete b[a]})};e.prototype.St=function(a,b){[this.$m,this.Xn,this.Jm].forEach(function(d){for(var f in d){var e=d[f];e.sT(e.O.b,b,a)}})};e.prototype.kA=function(a,d){if(a.O.Xu!==d){var f=this.Ol[a.element.$c[Math.min(Math.max(a.LA[0],d),a.LA[1])]],e=a.Vp(f);e.Od=e.Od||b.eP;switch(a.type){case n.kd:case n.B:e.ad=
0;break;case n.hs:e.ad=f.Nh;e.bg=255;e.Fa=f.Nh;break;case n.xs:e.ad=f.Vn;e.bg=255;e.Fa=f.Nh;break;case n.Zr:e.ad=a.S[0]?0:255,e.bg=255}e.Fa||(e.Fa=e.ad);a.Fa&&(e.ad=Math.max(.1*Math.floor(10*a.Fa),e.ad),a.Fa>e.Fa&&(e.Fa=a.Fa));0<e.Hh&&(e.Fa+=e.Hh);a.O.Ve=e;a.O.Xu=d}};e.prototype.DJ=function(a){for(var b in this.hh){var d=this.hh[b];d.sort(function(a,b){return a.Fa-b.Fa});var f=d[0];this.kA(f,a);for(var e=1,m=d.length;e<m;e++){var c=d[e];this.Rf?this.kA(c,a):(c.O.Ve=f.O.Ve,c.O.Xu=f.O.Xu)}}};e.prototype.YS=
function(a){a.O={id:a.element.oa.key.id+":"+a.yh,Jx:!1};a.hx(this.Ol);var b=a.Yb,d=this.hh[b]||[],f=d.length;if(!this.Rf&&f)for(var e=0;e<f;e++){var m=d[0];a.O.Ur=a.O.Ur||m.O.Ur;if(m.show){a.fD(m);break}}d.unshift(a);this.hh[b]=d};e.prototype.zV=function(a){var b=a.Yb,d=this.hh[b];1===d.length?delete this.hh[b]:(d.splice(d.indexOf(a),1),a.show&&d.forEach(function(b){b.fD(a)}))};e.prototype.FJ=function(){this.Cc=[];for(var a in this.hh){var b=this.hh[a];b.forEach(function(a,b){a.O.hq=a.show||a.O.Jx;
a.O.o0=b;a.OS()});this.Cc.push.apply(this.Cc,b)}};e.prototype.BH=function(a,b){for(var d=0,f=this.Cc.length;d<f;d++){var e=this.Cc[d];e.O.tx=e.sB(a,this.Cd,b,this.tJ)}};e.prototype.XG=function(a,b,d){var f=this.Cc;if(this.Rf){var e=0;this.Cc.forEach(function(a){e=Math.max(a.element.oa.key.z,e)});var c={};this.Cc.forEach(function(a){if(!a.qh&&(a=a.element.oa.key,e===a.z&&!c[a.id])){var f=a.Ii().ac(b,d);a.bA=m.DQ(f);a.nJ=a.bA.ib();c[a.id]=a}});f=f.filter(function(a){if(a.qh)return!1;var b=a.O.tx,d=
b.length,f;for(f in c)for(var e=c[f],m=e.bA,p=0;p<d;p++){var g=a.Vw(b[p]);if(m.contains(g))return a.O.cv=e,!0}});this.Ty=c}return f=f.filter(function(b){if(b.qh)return!1;var d=b.O.Ve;return b.O.tx.length&&d.visible&&d.ad<=a&&b.Fa<=a})};e.prototype.update=function(a,b,d,f,e){var m=Math.floor(d);this.FJ();this.BH(b,d);this.DJ(m);this.St(a,b);b=this.XG(d,a,b);f&&(this.Wf.clear(),f=this.zF(b),f.forEach(function(a){a.O.ib=a.tT()}),e&&this.nG(f,a),this.mF());this.Cc.forEach(function(a){a.xO()})};e.prototype.KG=
function(a,b){for(var d=a.O.tx,f=0,e=d.length;f<e;f++){var m=d[f],c=a.Wm(m,a.O.Ve);if(0!==c.length&&(c=this.Wf.GO(c),c.bd=a.bd,b(c,m)))break}};e.prototype.uH=function(a,b){if(b===a)return!1;a=a.Bp;b=b.Bp;for(var d=0,f=a.length;d<f;d++)for(var e=a[d],m=0,c=b.length;m<c;m++)if(b[m].Vf(e))return!0;return!1};e.prototype.Ky=function(a){if(0===a.cells.length)a.Vf=!0;else{for(var b=this.Wf.RQ(a),d=0,f=b.length;d<f;d++){var e=b[d];if((!a.bd||!e.bd)&&this.uH(a,e)){a.Vf=!0;return}}a.Vf=!1}};e.prototype.aA=
function(a,b){var d=this;return a.sort(function(a,f){var e=a.O.Ve,m=f.O.Ve;if(b&&a.element.oa.key.id!==f.element.oa.key.id)return a.element.oa.key.id.localeCompare(f.element.oa.key.id);if(e.Od!==m.Od)return e.Od-m.Od;if(e.Fa!==m.Fa)return e.Fa-m.Fa;if(!d.Rf){if(a.Sv()!==f.Sv())return a.Sv()?-1:1;if(a.O.hq!==f.O.hq)return a.O.hq?-1:1}return a.O.id.localeCompare(f.O.id)})};e.prototype.zF=function(a){var b=this,d="none";a=this.aA(a,this.Rf);a=a.filter(function(a){a.O.Uu=null;a.O.position=null;var f=
a.element.oa.key.id;b.Rf&&f!==d&&(b.Wf.clear(),d=f);var e=!1;b.KG(a,function(d,f){if(b.AF(d))return a.show=!1;b.Wf.GQ(d);b.Wf.xA(d);b.Ky(d);d.Vf?(b.Wf.DC(d),e=a.show=!1):(a.O.Uu=d,a.O.position=f,e=!0);return e});return e});this.Rf&&(a=this.aA(a,!1),this.Wf.clear(),a=a.filter(function(a){var d=a.O.Uu;b.Wf.xA(d);b.Ky(d);return d.Vf?(b.Wf.DC(d),a.show=!1):!0}));a.forEach(function(a){a.Un(a.O.position,a.O.Ve);a.show=!0});return a};e.prototype.Ls=function(a,b){if(0!==b.O.Ve.oe){var d="pn:"+b.Wd;var f=
w;var e=!0}else d="fid:"+b.Yb,f=g,e=!1;var m=a[d];m||(m=b.type===n.B,m=new f(e||!m),a[d]=m);m.EL(b)};e.prototype.SH=function(b,d){var f=a.l.u(.5*d[0],.5*d[1]),e=.5*Math.max(d[0],d[1]),c=new m(50,50,d[0]-100,d[1]-100);b.forEach(function(b){var d=b.O;b=d.hq?251658240:0;b+=c.contains(d.ib)?983040:0;b+=-a.l.Lp(d.ib,f);d.Se=b});var p={};b.forEach(function(a){this.Ls(p,a)},this);b=[];d=[];for(var g in p)p[g].vw(e,b,d);d.forEach(function(a){a.show=!1})};e.prototype.qG=function(d){var f=Infinity,e=Infinity,
m=[],c;for(c in this.Ty){var p=this.Ty[c];f=Math.min(p.x,f);e=Math.min(p.y,e);p.sz=(p.x&1)===(p.y&1)?1:0;m.push(p)}m.forEach(function(a){var b=a.sz?4026531840:0;var d=a.y-e;b+=15728640*(a.x-f);a.HW=b+61440*d;a.Us={}});d.forEach(function(a){var b=a.O,d=b.cv;b.Se=0;this.Ls(d.Us,a)},this);var g=[],t=[],h=b.iw;m.forEach(function(a){for(var b in a.Us)a.Us[b].vw(h,g,t)});var w={};g.forEach(function(b){var d=b.O;d.Se=-a.l.Lp(d.cv.nJ,d.ib);d.Se+=b.O.cv.sz?0:4026531840;this.Ls(w,b)},this);g=[];d=b.We;for(c in w)w[c].vw(d,
g,t);t.forEach(function(a){a.show=!1})};e.prototype.nG=function(a,b){this.Rf?this.qG(a):this.SH(a,b)};e.prototype.mJ=function(a){var b=this.Xn;if(0===Object.keys(b).length)return!1;var d=!1;a=a.O.ib;for(var f in b)if(d=b[f].O.b.contains(a))break;return d};e.prototype.AF=function(a){var b=this.Jm;if(0===Object.keys(b).length)return!1;var d=!1;a.uv(function(a){for(var f in b)if(d=a.Km(b[f].O.b))break;return d});return d};e.prototype.bH=function(a){var b=this.$m;if(0===Object.keys(b).length)return!1;
var d=!1;a.O.Uu.uv(function(a){for(var f in b)if(d=a.Km(b[f].O.b))break;return d});return d};e.prototype.mF=function(){for(var a=0,b=this.Cc.length;a<b;a++){var d=this.Cc[a];d.show&&(this.bH(d)?(d.show=!1,d.O.Jx=!0):d.O.Ur||(this.mJ(d)?d.O.Ur=!0:(d.show=!1,d.O.Jx=!0)))}};return e});g(19,0,function(){function e(b,f,e,c){this.Sb=a.T.create();this.Sb[0]=b;this.Sb[1]=f;this.Sb[2]=e;this.Sb[3]=c}function b(a,b,e,c){this.x=a;this.y=b;this.z=e;this.offset=c||0;this.br=a+"-"+b+"-"+e;this.id=this.br+":"+this.offset}
var a=h(3);e.prototype.min=function(){return a.l.u(this.Sb[0],this.Sb[1])};e.prototype.max=function(){return a.l.u(this.Sb[0]+this.Sb[2],this.Sb[1]+this.Sb[3])};e.prototype.width=function(){return this.Sb[2]};e.prototype.height=function(){return this.Sb[3]};e.prototype.ac=function(b,f){var d=a.T.u(this.Sb[0],this.Sb[1],0,1),e=a.T.u(this.Sb[0]+this.Sb[2],this.Sb[1]+this.Sb[3],0,1);a.T.fb(d,d,f);a.T.fb(e,e,f);d[0]/=d[3];d[1]/=d[3];e[0]/=e[3];e[1]/=e[3];this.Sb[2]=.5*(e[0]-d[0])*b[0];this.Sb[3]=.5*(e[1]-
d[1])*b[1];this.Sb[0]=.5*(d[0]+1)*b[0];this.Sb[1]=.5*(d[1]+1)*b[1];return this};b.prototype.GT=function(a){this.offset=a||0;this.id=this.br+":"+this.offset};b.prototype.gC=function(){var a=1<<this.z,f=this.x,e=this.offset;e+=Math.floor(f/a);0>f?f=(f+1)%a-1+a:f>=a&&(f%=a);return new b(f,this.y,this.z,e)};b.prototype.ib=function(){var b=this.Ii(),f=b.min();b=b.max();return a.Ya.u(.5*(f[0]+b[0]),.5*(f[1]+b[1]),this.z)};b.prototype.Ii=function(){var a=1<<this.z,b=1/a;return new e(this.x*b+this.offset,
(a-1-this.y)*b,b,b)};b.prototype.lV=function(){var a=this.Ii().min();return[a[0],a[1],this.z]};b.FZ=new b(0,0,0);return b});g(20,0,function(){function e(a){this.XC(a);this.JC()}var b=h(3),a=h(13),d=h(0),f=h(11);e.gD=function(a){return Math.pow(2,-a)};e.Dq=function(a){a=a.lV();return e.eS.apply(this,a)};e.eS=function(a,f,c){var m=b.U.create();c=e.gD(c)*d.qV;b.U.translate(m,m,b.Ya.u(a,f,0));b.U.scale(m,m,b.Ya.u(c,c,c));return m};e.prototype.XC=function(a){var d=a.Ii().min(),f=a.z;this.coords=b.Ya.u(d[0],
d[1],0);this.size=e.gD(f);this.Jb=a;this.id="tile-"+a.id;this.modelMatrix=this.Ub=e.Dq(a);this.tileKey=this.Jb};e.prototype.JC=function(){this.Vs=null;this.Ul=[];this.Pz=[]};e.prototype.F=function(b){this.GH();if(void 0===b)return this.Vs;var d=this.Ul.filter(function(a){return a.type===b}).map(function(a){return a.sr});return a.all(d)};e.prototype.kR=function(a){for(var b=0,d=this.Ul.length;b<d;b++)if(this.Ul[b].type===a)return!0;return!1};e.prototype.rp=function(a,b){this.Ul.push({sr:a,type:b})};
e.prototype.GH=function(){if(!this.Vs){var b=this.Ul.map(function(a){return a.sr});this.Vs=a.all(b)}};e.prototype.lR=function(a){return this.Pz[a]};e.prototype.cD=function(a){this.Pz[a]=!0;this.W(a+"-dependency-ready",a)};f.ka(e.prototype);return e});g(21,0,function(){function e(){for(var a=0,b=f.length;a<b;a++){var d=f[a],e=d.rn;d.rn=Infinity;d.update();d.rn=e}}function b(a,b){this.ZB=a;this.rn=b;this.Nq=[];f.push(this)}var a=h(13),d=h(11),f=[],m=1E3/60;b.prototype.count=function(){return this.Nq.length};
b.prototype.update=function(a){var b=Date.now();var d=this.Nq.shift();for(var f=0;d;){var e=d.qa.call(d.context);d.resolve(e);d=Date.now()-b;f++;if(d>=a||d>=this.ZB&&f>=this.rn)break;d=this.Nq.shift()}};b.prototype.qa=function(b,d){var f={qa:b,context:d};b=new a(function(a){f.resolve=a});this.Nq.push(f);return b};d.ka(b);var c=0;b.qj=function(){0===c++&&setTimeout(b.TB,0)};b.TB=function(){0!==c&&(setTimeout(b.TB,0),b.W("loop"),e())};b.fl=function(){c--};b.ls=new b(4,0);b.If=new b(2,0);b.Hf=new b(1,
0);b.El=new b(2,0);b.update=function(a){for(var b=!1,d=0,e=f.length;d<e;d++){var c=f[d],p=m-(Date.now()-a);if(!b||0<c.rn||p>=c.ZB)c.update(p),b=!0;else break}};b.sn=function(a){var d=f.reduce(function(a,b){return a+b.count()},0);a["queue-count"]=d;a["ASYNC_WORK-count"]=b.Hf.count();a["HIGHP-count"]=b.ls.count();a["MEDIUMP-count"]=b.If.count();a["LOWP-count"]=b.El.count();return 0!==d};b.clear=e;d.UC(b);b.update=b.update;b.clear=b.clear;b.needsUpdate=b.sn;return b});g(22,0,function(){function e(){this.cF||
(this.cF=!0,c.push(this));return this.rb()}function b(){0===--this.yy&&(this.W("released",this),this.va("released"));return this}function a(){this.yy++;return this}function d(){this.yy=0;return this}var f=h(11);h(5);var m=h(21),c=[],g=!1;return{ka:function(m){f.DR(m)||f.ka(m);m.wd=d;m.rb=a;m.release=b;m.Uf=e;return m},kv:function(){c.length&&!g&&(m.El.qa(function(){for(var a=0,b=c.length;a<b;a++)c[a].release();c.length=0;g=!1}),g=!0)}}});g(23,0,function(){function e(b){this.wd();this.key=b;this.Ub=
a.Dq(b)}var b=h(19),a=h(20);h(22).ka(e.prototype);var d={};return{oa:function(a,m,c,g){var f=a+"-"+m+"-"+c+":"+g;if(f in d)return d[f].Uf();a=new b(a,m,c,g);a=new e(a);a.once("released",function(){delete d[f]});d[f]=a;return a.Uf()}}});g(24,0,function(){function e(d,f,e){b.ua(this)&&(this.element=f,this.id=e?e:a.Pb(),this.visible=this.kb=this.show=!1,this.Ce=g,this.Pj=this.Kz=this.Jz=this.tv=!1,this.yb=[],this.type=d,this.Yb=this.Wd=this.Fa=0,this.qA(),this.xg=!0,this.Ys=this.Zj=null)}var b=h(8),
a=h(5),d=h(3);h(10);var f=h(0),m=h(23),c=h(4).global,g={};e.prototype.qA=function(){this.xH!==this.element.oa.key.offset&&(this.Yz=!0,this.xH=this.element.oa.key.offset,this.sc())};e.prototype.Pn=function(a){this.Va=a};e.prototype.aT=function(a){this.yb.splice(this.yb.indexOf(a),1);this.visible=0!==this.yb.length};e.prototype.iP=function(){this.Pj||(this.sc(),this.Pj=!0,this.Si())};e.prototype.YA=function(){this.Pj&&(this.Pj=!1,this.sc())};e.prototype.VC=function(a){this.tv!==a&&(this.tv=a,this.sc(),
a&&this.Si())};e.prototype.Zz=function(a,b){if(this.yb.length){for(var d=this.yb.length-1,f=this.yb[d],e=0;e<d;e++)this.nz(this.yb[e],b);this.Va.show(f,a)}};e.prototype.cr=function(){this.Zz(f.hn,f.nq)};e.prototype.dr=function(){this.Zz(0,0)};e.prototype.nz=function(a,b){if(!a.cH){a.cH=!0;var d=this;this.Va.xf(a,b).then(function(){d.aT(a)})}};e.prototype.Si=function(){0<this.yb.length&&this.nz(this.yb[this.yb.length-1],f.nq)};e.prototype.aq=function(){for(var a=this.yb.slice(),b=0,d=a.length;b<d;b++)this.Va.xf(a[b],
0);this.yb=[];this.visible=!1};e.prototype.Ep=function(){var a=this.element.$c,b=1E3,f=0,e;for(e in a)a=parseInt(e),b=Math.min(b,a),f=Math.max(f,a);this.LA=d.l.u(b,f)};e.prototype.Ti=function(){this.Ce=g;this.YA();this.sc()};e.prototype.ml=function(a){this.element.jb&&this.eo(this.element.jb);this.qA();this.Fa&&a<this.Fa&&this.Si()};e.prototype.eo=function(){};e.prototype.CV=function(a){var b=a.position;this.kb=(this.show=a.show)&&a.kb;this.show?(this.gf(b),a.zk?this.dr():this.cr(a),this.visible=
0!==this.yb.length):(this.Ce=g,this.Si())};e.prototype.OS=function(){this.show=!1};e.prototype.Un=function(a,b){a!==this.pl&&(this.pl=a,this.sc());this.kb!==b.kb&&(this.kb=b.kb,this.sc())};e.prototype.xO=function(){this.show&&this.Zj&&this.Ys===this.pl.Qb&&(this.jj=this.Zj.id,this.zk=!0,this.Zj.zk=!0);this.Ys=this.Zj=null};e.prototype.Sv=function(){return null!==this.Zj};e.prototype.fD=function(a){if(a.pl){var b=a.pl.Qb;this.yC(b);this.Zj=a;this.Ys=b}};e.prototype.yC=function(){};e.prototype.Wn=function(a){return this.Ce.Qb!==
a.Qb};e.prototype.gf=function(a){if(this.Wn(a)){if(this.Ce=a,a=this.Gp(a))this.Va.th(a),this.yb.push(a)}else this.CD(a)};e.prototype.CD=function(a){0!==this.yb.length&&this.bo(this.yb[this.yb.length-1],a)};e.prototype.bo=function(){};e.prototype.ze=function(a){a.id=this.id;a.type=this.type;a.Jb=this.element.oa.key;a.Pd=this.element.$c;a.Fa=this.Fa;a.Wd=""+this.Wd;a.Yb=this.Yb;a.yh=this.yh;return a};e.prototype.sc=function(){this.Pj||(this.xg=!0)};e.prototype.jR=function(){return this.xg||this.Jz!==
this.show||this.Kz!==this.kb||(this.hI&&this.hI.Qb)!==(this.Ce&&this.Ce.Qb)};e.prototype.mS=function(){this.Jz=this.show;this.Kz=this.kb;this.zk=this.xg=!1};e.prototype.cf=function(a){this.xg=!1;if(this.Pj||this.tv)return{id:this.id,qh:!0};a.id=this.id;this.Yz&&(a.MB=this.element.oa.key.offset,this.Yz=!1);return a};e.create=function(){console.assert(!1)};e.prototype.ff=function(a){this.qh=a.qh;if(void 0!==a.MB){var b=this.element.oa.key;this.element.oa.release();this.element.oa=m.oa(b.x,b.y,b.z,a.MB).rb()}this.xg=
!1};e.prototype.tT=function(){return this.Vw(this.pl)};e.prototype.hx=function(){};e.prototype.Pa=function(){this.element.oa.release()};e.prototype.FR=function(){return this.element.jb&&(this.element.jb.Ni===c.zE||this.element.jb.Ni===c.QE||this.element.jb.Ni===c.yE)};return e});g(25,0,function(){function e(a,f,e){b.ua(this)&&(d.prototype.constructor.call(this,a,f,e),this.Bf=[],this.Wj=[],this.padding=0,this.gq(),this.S=m.l.u(0,0))}var b=h(8),a=h(4).global,d=h(24),f=h(7),m=h(3),c=h(0),g=h(23);b.P(d,
e);e.prototype.Hv=function(){return!1};e.prototype.gq=function(){this.Xy=!0;this.sc()};e.prototype.FF=function(a){if(!this.Xy)return this.Xo;if(this.Hv())return this.Xo=this.CO(a);for(var b=0,d=0,f=this.Bf.length;d<f;d++)for(var e=this.Bf[d],m=this.jB(e.position,e.Tk,a),c=0,p=m.length;c<p;c++){var g=m[c];g.nC=e;this.Wj[b++]=g}this.Xo=this.Wj;this.Xy=!1;return this.Xo};e.prototype.bl=function(a,b){if(this.S[0]!==a||this.S[1]!==b)this.S[0]=a,this.S[1]=b,this.gq()};e.prototype.jB=function(a,b,d){for(var f=
Array(b.length),e=0,c=b.length;e<c;e++){var p=this.DF(a,b[e]);p.b2=m.l.u(p.origin[0]*d,p.origin[1]*d);f[e]=p}return f};e.prototype.Qs=function(b){switch(b){case a.Bj:var d=m.l.u(-this.S[0],.5*this.S[1]);break;case a.Cj:d=m.l.u(0,.5*this.S[1]);break;case a.Dj:d=m.l.u(.5*-this.S[0],this.S[1]);break;case a.li:case a.Al:d=m.l.u(.5*-this.S[0],0);break;case a.Vg:d=m.l.u(.5*-this.S[0],.5*this.S[1]);break;case a.Bl:d=m.l.u(-this.S[0],this.S[1]);break;case a.Cl:d=m.l.u(0,this.S[1]);break;case a.zl:d=m.l.u(0,
0);break;case a.yl:d=m.l.u(-this.S[0],0)}b=this.PC(b);m.l.add(d,d,b);return d};e.prototype.DF=function(a,b){a={Qb:b,origin:a,offset:this.Qs(b)};a.gg=m.T.create();return a};e.prototype.PC=function(){var a=m.l.u(0,0);return function(){return a}}();e.prototype.Oe=function(b,d){d=d||[a.Vg];this.Bf.push({position:b,Tk:d});this.Wj=Array(d.length);this.gq()};e.prototype.sB=function(a,b,d,f){d=this.FF(f);a=m.U.multiply(m.U.create(),a,this.element.oa.Ub);f=0;for(var e=d.length;f<e;f++){var c=d[f],p=c.origin,
g=c.gg;m.T.set(g,p[0],p[1],0,1);m.T.fb(g,g,a);m.T.scale(g,g,1/g[3]);g[0]=b[0]*(g[0]+1)*.5;g[1]=b[1]*(g[1]+1)*.5;c.gg=g}return d};e.prototype.Wm=function(a){return[(new f.Yr(a.gg[0]+a.offset[0],a.gg[1]+a.offset[1]-this.S[1],this.S[0],this.S[1])).Nv(-this.padding,-this.padding)]};e.prototype.KI=function(a){var b=a.nC,d=this.Bf.indexOf(b);-1!==d&&(this.Bf.splice(d,1),this.Bf.unshift(b),b=b.Tk,d=a.Qb,b.splice(b.indexOf(d),1),b.unshift(d),this.Wj.splice(this.Wj.indexOf(a),1),this.Wj.unshift(a))};e.prototype.Un=
function(a){d.prototype.Un.apply(this,arguments);this.Hv()||this.KI(a)};e.prototype.Gp=function(a){return{position:a.origin,offset:this.Qs(a.Qb)}};e.prototype.bo=function(a,b){a.offset=this.Qs(b.Qb)};e.prototype.ze=function(a){a=a||{};a.bw=this.Bf;return d.prototype.ze.call(this,a)};e.prototype.cf=function(a){a=a||{};a.S=this.S;return d.prototype.cf.call(this,a)};e.create=function(a,b){var d=a.Jb;d={$c:a.Pd,oa:g.oa(d.x,d.y,d.z,d.offset).rb()};b=new e(b,d,a.id);b.Ep();a=a.bw;d=0;for(var f=a.length;d<
f;d++){var m=a[d];b.Oe(m.position,m.Tk)}return b};e.prototype.ff=function(a){this.bl(a.S[0],a.S[1]);d.prototype.ff.apply(this,arguments)};e.prototype.Vw=function(a){return a.gg};e.prototype.hx=function(a){this.ek=m.l.u(c.Qk,c.nw);for(var b in this.element.$c)if(a[this.element.$c[b]].visible){var d=parseInt(b);this.ek[0]>d&&(this.ek[0]=d);this.ek[1]<d&&(this.ek[1]=d)}};e.prototype.Vp=function(a){return{Od:a.Od,visible:a.visible,kb:!0,ad:this.ek[0],bg:this.ek[1],oe:a.oe,Hh:a.Hh,ul:a.ul}};return e});
g(26,0,function(){function e(b,e){this.Db=d.u(b[0],b[1],0,1);this.Lb=d.u(e[0],e[1],0,1);this.it=a.Hg(b,e)}var b=h(1),a=b.l,d=b.T;e.prototype.clone=function(){return new e(a.clone(this.Db),a.clone(this.Lb))};e.prototype.Ch=function(a,b){this.Db=d.u(a[0],a[1],0,1);this.Lb=d.u(b[0],b[1],0,1)};e.prototype.length=function(a){return a*this.it};e.prototype.fb=function(a){var b=d.fb(d.create(),this.Db,a);a=d.fb(d.create(),this.Lb,a);d.scale(b,b,1/b[3]);d.scale(a,a,1/a[3]);return new e(b,a)};e.prototype.zw=
function(){return function(b,d,e){b=this.length(e)-.5*d+b;d=b/this.it;b=a.sub(a.create(),this.Lb,this.Db);d=a.Uw(a.create(),this.Db,b,d);a.normalize(b,b);e=a.u(-b[1],b[0]);return{gV:b,position:d,fC:e}}}();e.prototype.ac=function(b,d){b=this.fb(b);var f=b.Db,e=b.Lb,m=d[0];d=d[1];f[0]=m*(f[0]+1)*.5;f[1]=d*(f[1]+1)*.5;e[0]=m*(e[0]+1)*.5;e[1]=d*(e[1]+1)*.5;b.it=a.Hg(f,e);return b};e.prototype.scale=function(a){var b=this.clone(),f=b.Db,e=b.Lb;d.scale(f,f,a);d.scale(e,e,a);return b};e.prototype.EB=function(){this.Ch(this.Lb,
this.Db)};e.prototype.direction=function(){return a.sub(a.create(),this.Lb,this.Db)};e.prototype.JB=function(){return!0};return e});g(27,0,function(){return function(){var e={};(function(b){b=b||{};b.a=b.a||{};b.a.sb=function(){this.b=null;this.c=0};b.a.sb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.sb.WZ=function(a,d){return(d||new b.a.sb).i(a.N(a.position())+a.position(),a)};b.a.sb.prototype.id=function(){var a=this.b.f(this.c,4);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.sb.prototype.x=
function(){var a=this.b.f(this.c,6);return a?this.b.jc(this.c+a):0};b.a.sb.prototype.y=function(){var a=this.b.f(this.c,8);return a?this.b.jc(this.c+a):0};b.a.sb.prototype.width=function(){var a=this.b.f(this.c,10);return a?this.b.jc(this.c+a):0};b.a.sb.prototype.height=function(){var a=this.b.f(this.c,12);return a?this.b.jc(this.c+a):0};b.a.sb.prototype.page=function(){var a=this.b.f(this.c,14);return a?this.b.D(this.c+a):0};b.a.sb.VT=function(a){a.aa(6)};b.a.sb.Bg=function(a,b){a.Ua(0,b,a.Z(0,0))};
b.a.sb.SN=function(a,b){a.je(1,b,0)};b.a.sb.TN=function(a,b){a.je(2,b,0)};b.a.sb.Cg=function(a,b){a.je(3,b,0)};b.a.sb.Di=function(a,b){a.je(4,b,0)};b.a.sb.iM=function(a,b){a.X(5,b,0)};b.a.sb.qP=function(a){return a.$()};b.a.sb.$W=function(a,d,f,e,c,g,h){b.a.sb.VT(a);b.a.sb.Bg(a,d);b.a.sb.SN(a,f);b.a.sb.TN(a,e);b.a.sb.Cg(a,c);b.a.sb.Di(a,g);b.a.sb.iM(a,h);return b.a.sb.qP(a)};b.a.od=function(){this.b=null;this.c=0};b.a.od.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.od.M_=function(a,
d){return(d||new b.a.od).i(a.N(a.position())+a.position(),a)};b.a.od.prototype.id=function(a){var b=this.b.f(this.c,4);return b?this.b.ee(this.c+b,a):null};b.a.od.prototype.value=function(){var a=this.b.f(this.c,6);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.od.TU=function(a){a.aa(2)};b.a.od.Bg=function(a,b){a.s(0,b)};b.a.od.Bm=function(a,b){a.Ua(1,b,a.Z(0,0))};b.a.od.hQ=function(a){var b=a.$();a.af(b,4);return b};b.a.od.dZ=function(a,d,f){b.a.od.TU(a);b.a.od.Bg(a,d);b.a.od.Bm(a,f);return b.a.od.hQ(a)};
b.a.Ra=function(){this.b=null;this.c=0};b.a.Ra.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ra.VZ=function(a,d){return(d||new b.a.Ra).i(a.N(a.position())+a.position(),a)};b.a.Ra.prototype.index=function(a,d){var f=this.b.f(this.c,6);return f?(d||new b.a.sb).i(this.b.wa(this.b.L(this.c+f)+4*a),this.b):null};b.a.Ra.prototype.data=function(a,d){var f=this.b.f(this.c,8);return f?(d||new b.a.yc).i(this.b.wa(this.b.L(this.c+f)+4*a),this.b):null};b.a.Ra.prototype.an=function(a,d){var f=this.b.f(this.c,
10);return f?(d||new b.a.Ca).i(this.b.wa(this.b.L(this.c+f)+4*a),this.b):null};b.a.Ra.prototype.AB=function(){var a=this.b.f(this.c,10);return a?this.b.pa(this.c+a):0};b.a.Ra.prototype.urls=function(a,d){var f=this.b.f(this.c,12);return f?(d||new b.a.od).i(this.b.wa(this.b.L(this.c+f)+4*a),this.b):null};b.a.Ra.UT=function(a){a.aa(5)};b.a.Ra.jL=function(a,b){a.s(0,b)};b.a.Ra.QX=function(a,b){a.j(8,b.length,8);for(var d=b.length-1;0<=d;d--)a.qp(b[d]);return a.I()};b.a.Ra.a1=function(a,b){a.j(8,b,8)};
b.a.Ra.rL=function(a,b){a.s(1,b)};b.a.Ra.$X=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Ra.e1=function(a,b){a.j(4,b,4)};b.a.Ra.ym=function(a,b){a.s(2,b)};b.a.Ra.LO=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Ra.hU=function(a,b){a.j(4,b,4)};b.a.Ra.ku=function(a,b){a.s(3,b)};b.a.Ra.VX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Ra.oU=function(a,b){a.j(4,b,4)};
b.a.Ra.KN=function(a,b){a.s(4,b)};b.a.Ra.sZ=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Ra.T1=function(a,b){a.j(4,b,4)};b.a.Ra.pP=function(a){var b=a.$();a.af(b,4);return b};b.a.Ra.ZW=function(a,d,f,e,c,g){b.a.Ra.UT(a);b.a.Ra.jL(a,d);b.a.Ra.rL(a,f);b.a.Ra.ym(a,e);b.a.Ra.ku(a,c);b.a.Ra.KN(a,g);return b.a.Ra.pP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ab=function(){this.b=null;this.c=0};b.a.ab.prototype.i=function(a,b){this.c=a;this.b=b;return this};
b.a.ab.b_=function(a,d){return(d||new b.a.ab).i(a.N(a.position())+a.position(),a)};b.a.ab.prototype.offset=function(){var a=this.b.f(this.c,4);return a?this.b.Mb(this.c+a):0};b.a.ab.prototype.count=function(){var a=this.b.f(this.c,6);return a?this.b.Mb(this.c+a):0};b.a.ab.prototype.vc=function(){var a=this.b.f(this.c,8);return a?this.b.D(this.c+a):0};b.a.ab.prototype.Ma=function(a,d){var f=this.b.f(this.c,10);return f?(d||new b.a.oc).i(this.b.wa(this.b.L(this.c+f)+4*a),this.b):null};b.a.ab.prototype.Sg=
function(){var a=this.b.f(this.c,10);return a?this.b.pa(this.c+a):0};b.a.ab.aU=function(a){a.aa(4)};b.a.ab.ga=function(a,b){a.fc(0,b)};b.a.ab.fu=function(a,b){a.fc(1,b)};b.a.ab.Ei=function(a,b){a.X(2,b,0)};b.a.ab.ke=function(a,b){a.s(3,b)};b.a.ab.wk=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.ab.dl=function(a,b){a.j(4,b,4)};b.a.ab.wP=function(a){return a.$()};b.a.ab.oX=function(a,d,e,m,c){b.a.ab.aU(a);b.a.ab.ga(a,d);b.a.ab.fu(a,e);b.a.ab.Ei(a,m);b.a.ab.ke(a,
c);return b.a.ab.wP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ra=function(){this.b=null;this.c=0};b.a.ra.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ra.e_=function(a,d){return(d||new b.a.ra).i(a.N(a.position())+a.position(),a)};b.a.ra.prototype.key=function(){var a=this.b.f(this.c,4);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.ra.prototype.Od=function(){var a=this.b.f(this.c,6);return a?this.b.N(this.c+a):0};b.a.ra.prototype.Nh=function(){var a=this.b.f(this.c,8);
return a?this.b.ja(this.c+a):0};b.a.ra.prototype.Vn=function(){var a=this.b.f(this.c,10);return a?this.b.ja(this.c+a):0};b.a.ra.prototype.Dp=function(){var a=this.b.f(this.c,12);return a?this.b.D(this.c+a):0};b.a.ra.prototype.oe=function(){var a=this.b.f(this.c,14);return a?this.b.D(this.c+a):0};b.a.ra.prototype.qq=function(){var a=this.b.f(this.c,16);return a?this.b.D(this.c+a):0};b.a.ra.prototype.Yq=function(){var a=this.b.f(this.c,18);return a?!!this.b.Kc(this.c+a):!1};b.a.ra.prototype.kb=function(){var a=
this.b.f(this.c,20);return a?!!this.b.Kc(this.c+a):!1};b.a.ra.prototype.visible=function(){var a=this.b.f(this.c,22);return a?!!this.b.Kc(this.c+a):!1};b.a.ra.prototype.Hh=function(){var a=this.b.f(this.c,24);return a?this.b.ja(this.c+a):0};b.a.ra.prototype.ul=function(){var a=this.b.f(this.c,26);return a?this.b.ja(this.c+a):0};b.a.ra.dU=function(a){a.aa(12)};b.a.ra.Ib=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.ra.CK=function(a,b){a.fc(1,b)};b.a.ra.PM=function(a,b){a.ta(2,b,0)};b.a.ra.$M=function(a,b){a.ta(3,
b,0)};b.a.ra.BK=function(a,b){a.X(4,b,0)};b.a.ra.KK=function(a,b){a.X(5,b,0)};b.a.ra.nh=function(a,b){a.X(6,b,0)};b.a.ra.WM=function(a,b){a.X(7,+b,0)};b.a.ra.AN=function(a,b){a.X(8,+b,0)};b.a.ra.Cm=function(a,b){a.X(9,+b,0)};b.a.ra.bM=function(a,b){a.ta(10,b,0)};b.a.ra.QN=function(a,b){a.ta(11,b,0)};b.a.ra.zP=function(a){return a.$()};b.a.ra.sX=function(a,d,e,m,c,g,h,n,l,v,k,q,r){b.a.ra.dU(a);b.a.ra.Ib(a,d);b.a.ra.CK(a,e);b.a.ra.PM(a,m);b.a.ra.$M(a,c);b.a.ra.BK(a,g);b.a.ra.KK(a,h);b.a.ra.nh(a,n);
b.a.ra.WM(a,l);b.a.ra.AN(a,v);b.a.ra.Cm(a,k);b.a.ra.bM(a,q);b.a.ra.QN(a,r);return b.a.ra.zP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.fd=function(){this.b=null;this.c=0};b.a.fd.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.fd.$Z=function(a,d){return(d||new b.a.fd).i(a.N(a.position())+a.position(),a)};b.a.fd.prototype.key=function(){var a=this.b.f(this.c,4);return a?this.b.Kc(this.c+a):0};b.a.fd.prototype.value=function(a){var b=this.b.f(this.c,6);return b?this.b.ee(this.c+
b,a):null};b.a.fd.ZT=function(a){a.aa(2)};b.a.fd.Ib=function(a,b){a.X(0,b,0)};b.a.fd.Bm=function(a,b){a.s(1,b)};b.a.fd.uP=function(a){return a.$()};b.a.fd.kX=function(a,d,e){b.a.fd.ZT(a);b.a.fd.Ib(a,d);b.a.fd.Bm(a,e);return b.a.fd.uP(a)};b.a.yc=function(){this.b=null;this.c=0};b.a.yc.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.yc.ZZ=function(a,d){return(d||new b.a.yc).i(a.N(a.position())+a.position(),a)};b.a.yc.prototype.data=function(a){var b=this.b.f(this.c,4);return b?this.b.D(this.b.L(this.c+
b)+a):0};b.a.yc.prototype.av=function(){var a=this.b.f(this.c,4);return a?new Uint8Array(this.b.ob.buffer,this.b.ob.byteOffset+this.b.L(this.c+a),this.b.pa(this.c+a)):null};b.a.yc.YT=function(a){a.aa(1)};b.a.yc.ym=function(a,b){a.s(0,b)};b.a.yc.LO=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.yc.hU=function(a,b){a.j(1,b,1)};b.a.yc.tP=function(a){return a.$()};b.a.yc.jX=function(a,d){b.a.yc.YT(a);b.a.yc.ym(a,d);return b.a.yc.tP(a)};b.a.zc=function(){this.b=
null;this.c=0};b.a.zc.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.zc.p_=function(a,d){return(d||new b.a.zc).i(a.N(a.position())+a.position(),a)};b.a.zc.prototype.key=function(a){var b=this.b.f(this.c,4);return b?this.b.ee(this.c+b,a):null};b.a.zc.prototype.ZN=function(a){var b=this.b.f(this.c,6);return b?this.b.jc(this.b.L(this.c+b)+2*a):0};b.a.zc.prototype.$N=function(){var a=this.b.f(this.c,6);return a?this.b.pa(this.c+a):0};b.a.zc.uU=function(a){a.aa(2)};b.a.zc.Ib=function(a,b){a.s(0,
b)};b.a.zc.cK=function(a,b){a.s(1,b)};b.a.zc.YW=function(a,b){a.j(2,b.length,2);for(var d=b.length-1;0<=d;d--)a.mh(b[d]);return a.I()};b.a.zc.B0=function(a,b){a.j(2,b,2)};b.a.zc.LP=function(a){return a.$()};b.a.zc.dY=function(a,d,e){b.a.zc.uU(a);b.a.zc.Ib(a,d);b.a.zc.cK(a,e);return b.a.zc.LP(a)};b.a.Jd=function(){this.b=null;this.c=0};b.a.Jd.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Jd.S_=function(a,d){return(d||new b.a.Jd).i(a.N(a.position())+a.position(),a)};b.a.Jd.prototype.key=
function(){var a=this.b.f(this.c,4);return a?this.b.Mb(this.c+a):0};b.a.Jd.prototype.value=function(a){var b=this.b.f(this.c,6);return b?this.b.ee(this.c+b,a):null};b.a.Jd.ZU=function(a){a.aa(2)};b.a.Jd.Ib=function(a,b){a.fc(0,b)};b.a.Jd.Bm=function(a,b){a.s(1,b)};b.a.Jd.nQ=function(a){return a.$()};b.a.Jd.rZ=function(a,d,e){b.a.Jd.ZU(a);b.a.Jd.Ib(a,d);b.a.Jd.Bm(a,e);return b.a.Jd.nQ(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ub=function(){this.b=null;this.c=0};b.a.ub.prototype.i=function(a,
b){this.c=a;this.b=b;return this};b.a.ub.C_=function(a,d){return(d||new b.a.ub).i(a.N(a.position())+a.position(),a)};b.a.ub.prototype.le=function(a,d){var e=this.b.f(this.c,4);return e?(d||new b.a.yc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.ub.prototype.lO=function(){var a=this.b.f(this.c,4);return a?this.b.pa(this.c+a):0};b.a.ub.prototype.kc=function(a,d){var e=this.b.f(this.c,6);return e?(d||new b.a.Wb).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.ub.prototype.iV=function(){var a=
this.b.f(this.c,6);return a?this.b.pa(this.c+a):0};b.a.ub.prototype.Ki=function(a,d){var e=this.b.f(this.c,8);return e?(d||new b.a.yc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.ub.prototype.aP=function(){var a=this.b.f(this.c,8);return a?this.b.pa(this.c+a):0};b.a.ub.JU=function(a){a.aa(3)};b.a.ub.mK=function(a,b){a.s(0,b)};b.a.ub.gX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.ub.H0=function(a,b){a.j(4,b,4)};b.a.ub.DN=function(a,b){a.s(1,
b)};b.a.ub.oZ=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.ub.R1=function(a,b){a.j(4,b,4)};b.a.ub.JK=function(a,b){a.s(2,b)};b.a.ub.zX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.ub.R0=function(a,b){a.j(4,b,4)};b.a.ub.YP=function(a){return a.$()};b.a.ub.KY=function(a,d,e,m){b.a.ub.JU(a);b.a.ub.mK(a,d);b.a.ub.DN(a,e);b.a.ub.JK(a,m);return b.a.ub.YP(a)};b.a.De=function(){this.b=null;this.c=0};b.a.De.prototype.i=
function(a,b){this.c=a;this.b=b;return this};b.a.De.j_=function(a,d){return(d||new b.a.De).i(a.N(a.position())+a.position(),a)};b.a.De.prototype.Jq=function(){var a=this.b.f(this.c,4);return a?this.b.Mb(this.c+a):0};b.a.De.lU=function(a){a.aa(1)};b.a.De.yM=function(a,b){a.fc(0,b)};b.a.De.EP=function(a){return a.$()};b.a.De.MX=function(a,d){b.a.De.lU(a);b.a.De.yM(a,d);return b.a.De.EP(a)};b.a.H=function(){this.b=null;this.c=0};b.a.H.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.H.aR=
function(a){return(new b.a.H).i(a.N(a.position())+a.position(),a)};b.a.H.prototype.version=function(a){var b=this.b.f(this.c,4);return b?this.b.ee(this.c+b,a):null};b.a.H.prototype.bf=function(a){var d=this.b.f(this.c,6);return d?(a||new b.a.ub).i(this.b.wa(this.c+d),this.b):null};b.a.H.prototype.Ma=function(a,d){var e=this.b.f(this.c,8);return e?(d||new b.a.pd).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.Sg=function(){var a=this.b.f(this.c,8);return a?this.b.pa(this.c+a):0};
b.a.H.prototype.Yk=function(a,d){var e=this.b.f(this.c,10);return e?(d||new b.a.ma).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.oT=function(){var a=this.b.f(this.c,10);return a?this.b.pa(this.c+a):0};b.a.H.prototype.Mn=function(a,d){var e=this.b.f(this.c,12);return e?(d||new b.a.Ia).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.mT=function(){var a=this.b.f(this.c,12);return a?this.b.pa(this.c+a):0};b.a.H.prototype.Uk=function(a,d){var e=this.b.f(this.c,14);
return e?(d||new b.a.ha).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.JS=function(){var a=this.b.f(this.c,14);return a?this.b.pa(this.c+a):0};b.a.H.prototype.Cp=function(a,d){var e=this.b.f(this.c,16);return e?(d||new b.a.ab).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.wO=function(){var a=this.b.f(this.c,16);return a?this.b.pa(this.c+a):0};b.a.H.prototype.pj=function(a,d){var e=this.b.f(this.c,18);return e?(d||new b.a.ia).i(this.b.wa(this.b.L(this.c+e)+4*
a),this.b):null};b.a.H.prototype.PT=function(){var a=this.b.f(this.c,18);return a?this.b.pa(this.c+a):0};b.a.H.prototype.kg=function(a,d){var e=this.b.f(this.c,20);return e?(d||new b.a.B).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.hV=function(){var a=this.b.f(this.c,20);return a?this.b.pa(this.c+a):0};b.a.H.prototype.Pd=function(a,d){var e=this.b.f(this.c,22);return e?(d||new b.a.ra).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.zO=function(){var a=this.b.f(this.c,
22);return a?this.b.pa(this.c+a):0};b.a.H.prototype.qb=function(a){var d=this.b.f(this.c,24);return d?(a||new b.a.Za).i(this.b.wa(this.c+d),this.b):null};b.a.H.prototype.Mm=function(a,d){var e=this.b.f(this.c,26);return e?(d||new b.a.Vb).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.H.prototype.$O=function(){var a=this.b.f(this.c,26);return a?this.b.pa(this.c+a):0};b.a.H.prototype.An=function(a,d){var e=this.b.f(this.c,28);return e?(d||new b.a.cb).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):
null};b.a.H.prototype.BS=function(){var a=this.b.f(this.c,28);return a?this.b.pa(this.c+a):0};b.a.H.prototype.Ek=function(a){var d=this.b.f(this.c,30);return d?(a||new b.a.De).i(this.b.wa(this.c+d),this.b):null};b.a.H.mU=function(a){a.aa(15)};b.a.H.yu=function(a,b){a.s(0,b)};b.a.H.HM=function(a,b){a.s(1,b)};b.a.H.ke=function(a,b){a.s(2,b)};b.a.H.wk=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.dl=function(a,b){a.j(4,b,4)};b.a.H.RM=function(a,b){a.s(3,
b)};b.a.H.XY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.G1=function(a,b){a.j(4,b,4)};b.a.H.LM=function(a,b){a.s(4,b)};b.a.H.PY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.C1=function(a,b){a.j(4,b,4)};b.a.H.CM=function(a,b){a.s(5,b)};b.a.H.FY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.z1=function(a,b){a.j(4,b,4)};b.a.H.zK=function(a,b){a.s(6,b)};b.a.H.qX=
function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.M0=function(a,b){a.j(4,b,4)};b.a.H.aN=function(a,b){a.s(7,b)};b.a.H.ZY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.H1=function(a,b){a.j(4,b,4)};b.a.H.xN=function(a,b){a.s(8,b)};b.a.H.lZ=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.O1=function(a,b){a.j(4,b,4)};b.a.H.DK=function(a,b){a.s(9,b)};b.a.H.tX=function(a,
b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.N0=function(a,b){a.j(4,b,4)};b.a.H.mu=function(a,b){a.s(10,b)};b.a.H.HK=function(a,b){a.s(11,b)};b.a.H.yX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.Q0=function(a,b){a.j(4,b,4)};b.a.H.qM=function(a,b){a.s(12,b)};b.a.H.yY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.H.u1=function(a,b){a.j(4,b,4)};b.a.H.cL=function(a,b){a.s(13,
b)};b.a.H.OM=function(a,b){a.s(14,b)};b.a.H.FP=function(a){return a.$()};b.a.H.RX=function(a,d,e,m,c,g,h,n,l,v,k,q,r,K,H,F){b.a.H.mU(a);b.a.H.yu(a,d);b.a.H.HM(a,e);b.a.H.ke(a,m);b.a.H.RM(a,c);b.a.H.LM(a,g);b.a.H.CM(a,h);b.a.H.zK(a,n);b.a.H.aN(a,l);b.a.H.xN(a,v);b.a.H.DK(a,k);b.a.H.mu(a,q);b.a.H.HK(a,r);b.a.H.qM(a,K);b.a.H.cL(a,H);b.a.H.OM(a,F);return b.a.H.FP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.fs={gs:0,rW:1};b.a.WV={0:"Circle",1:"Square"};b.a.Za=function(){this.b=null;this.c=0};
b.a.Za.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Za.m_=function(a,d){return(d||new b.a.Za).i(a.N(a.position())+a.position(),a)};b.a.Za.prototype.Ik=function(a,d){var e=this.b.f(this.c,4);return e?(d||new b.a.Fj).i(this.b.L(this.c+e)+16*a,this.b):null};b.a.Za.prototype.uR=function(){var a=this.b.f(this.c,4);return a?this.b.pa(this.c+a):0};b.a.Za.prototype.Ma=function(a,d){var e=this.b.f(this.c,6);return e?(d||new b.a.Gd).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.Za.prototype.Sg=
function(){var a=this.b.f(this.c,6);return a?this.b.pa(this.c+a):0};b.a.Za.prototype.jw=function(a,d){var e=this.b.f(this.c,8);return e?(d||new b.a.Fj).i(this.b.L(this.c+e)+16*a,this.b):null};b.a.Za.prototype.cS=function(){var a=this.b.f(this.c,8);return a?this.b.pa(this.c+a):0};b.a.Za.prototype.Af=function(a,d){var e=this.b.f(this.c,10);return e?(d||new b.a.Ca).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.Za.prototype.dS=function(){var a=this.b.f(this.c,10);return a?this.b.pa(this.c+a):
0};b.a.Za.qU=function(a){a.aa(4)};b.a.Za.sL=function(a,b){a.s(0,b)};b.a.Za.f1=function(a,b){a.j(16,b,8)};b.a.Za.ke=function(a,b){a.s(1,b)};b.a.Za.wk=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Za.dl=function(a,b){a.j(4,b,4)};b.a.Za.$L=function(a,b){a.s(2,b)};b.a.Za.l1=function(a,b){a.j(16,b,8)};b.a.Za.ZL=function(a,b){a.s(3,b)};b.a.Za.kY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Za.m1=function(a,b){a.j(4,
b,4)};b.a.Za.IP=function(a){return a.$()};b.a.Za.ZX=function(a,d,e,m,c){b.a.Za.qU(a);b.a.Za.sL(a,d);b.a.Za.ke(a,e);b.a.Za.$L(a,m);b.a.Za.ZL(a,c);return b.a.Za.IP(a)};b.a.Gj=function(){this.b=null;this.c=0};b.a.Gj.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Gj.prototype.zoom=function(){return this.b.D(this.c)};b.a.Gj.prototype.hash=function(){return this.b.cd(this.c+8)};b.a.Gj.YX=function(a,b,e){a.Aa(8,16);a.vl(e);a.Rk(7);a.Gb(b);return a.offset()};b.a.Fj=function(){this.b=null;this.c=
0};b.a.Fj.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Fj.prototype.hash=function(){return this.b.cd(this.c)};b.a.Fj.prototype.index=function(){return this.b.jc(this.c+8)};b.a.Fj.XX=function(a,b,e){a.Aa(8,16);a.Rk(6);a.wc(e);a.vl(b);return a.offset()};b.a.wl=function(){this.b=null;this.c=0};b.a.wl.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.wl.prototype.key=function(){return this.b.Mb(this.c)};b.a.wl.prototype.value=function(){return this.b.cd(this.c+8)};b.a.wl.aX=
function(a,b,e){a.Aa(8,16);a.vl(e);a.Rk(4);a.Ed(b);return a.offset()};b.a.Gd=function(){this.b=null;this.c=0};b.a.Gd.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Gd.l_=function(a,d){return(d||new b.a.Gd).i(a.N(a.position())+a.position(),a)};b.a.Gd.prototype.attributes=function(a,d){var e=this.b.f(this.c,4);return e?(d||new b.a.wl).i(this.b.L(this.c+e)+16*a,this.b):null};b.a.Gd.prototype.bO=function(){var a=this.b.f(this.c,4);return a?this.b.pa(this.c+a):0};b.a.Gd.pU=function(a){a.aa(1)};
b.a.Gd.dK=function(a,b){a.s(0,b)};b.a.Gd.C0=function(a,b){a.j(16,b,8)};b.a.Gd.HP=function(a){return a.$()};b.a.Gd.WX=function(a,d){b.a.Gd.pU(a);b.a.Gd.dK(a,d);return b.a.Gd.HP(a)};b.a.Ca=function(){this.b=null;this.c=0};b.a.Ca.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ca.k_=function(a,d){return(d||new b.a.Ca).i(a.N(a.position())+a.position(),a)};b.a.Ca.prototype.id=function(){var a=this.b.f(this.c,4);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.Ca.prototype.jk=function(a){var b=
this.b.f(this.c,6);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ca.prototype.mk=function(a){var b=this.b.f(this.c,8);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ca.prototype.Gk=function(a){var b=this.b.f(this.c,12);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ca.prototype.nk=function(a){var b=this.b.f(this.c,14);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ca.prototype.Mu=function(){var a=this.b.f(this.c,16);return a?this.b.D(this.c+a):b.a.fs.gs};b.a.Ca.nU=function(a){a.aa(7)};b.a.Ca.Bg=
function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.Ca.gK=function(a,b){a.s(1,b)};b.a.Ca.dX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Ca.E0=function(a,b){a.j(1,b,1)};b.a.Ca.rK=function(a,b){a.s(2,b)};b.a.Ca.lX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Ca.J0=function(a,b){a.j(1,b,1)};b.a.Ca.FL=function(a,b){a.s(3,b)};b.a.Ca.gL=function(a,b){a.s(4,b)};b.a.Ca.PX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=
d;d--)a.Oa(b[d]);return a.I()};b.a.Ca.$0=function(a,b){a.j(1,b,1)};b.a.Ca.sK=function(a,b){a.s(5,b)};b.a.Ca.mX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Ca.K0=function(a,b){a.j(1,b,1)};b.a.Ca.tK=function(a,d){a.X(6,d,b.a.fs.gs)};b.a.Ca.GP=function(a){return a.$()};b.a.Ca.UX=function(a,d,e,m,c,g,h,n){b.a.Ca.nU(a);b.a.Ca.Bg(a,d);b.a.Ca.gK(a,e);b.a.Ca.rK(a,m);b.a.Ca.FL(a,c);b.a.Ca.gL(a,g);b.a.Ca.sK(a,h);b.a.Ca.tK(a,n);return b.a.Ca.GP(a)}}).call({},e);
(function(b){b=b||{};b.a=b.a||{};b.a.ki=function(){this.b=null;this.c=0};b.a.ki.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ki.prototype.$x=function(){return this.b.D(this.c)};b.a.ki.prototype.by=function(){return this.b.D(this.c+1)};b.a.ki.prototype.Zx=function(){return this.b.D(this.c+2)};b.a.ki.prototype.ay=function(){return this.b.D(this.c+3)};b.a.ki.IX=function(a,b,e,m,c){a.Aa(1,4);a.Gb(c);a.Gb(m);a.Gb(e);a.Gb(b);return a.offset()};b.a.Fd=function(){this.b=null;this.c=0};b.a.Fd.prototype.i=
function(a,b){this.c=a;this.b=b;return this};b.a.Fd.prototype.Al=function(){return this.b.D(this.c)};b.a.Fd.prototype.Bl=function(){return this.b.D(this.c+1)};b.a.Fd.prototype.Dj=function(){return this.b.D(this.c+2)};b.a.Fd.prototype.Cl=function(){return this.b.D(this.c+3)};b.a.Fd.prototype.Cj=function(){return this.b.D(this.c+4)};b.a.Fd.prototype.zl=function(){return this.b.D(this.c+5)};b.a.Fd.prototype.li=function(){return this.b.D(this.c+6)};b.a.Fd.prototype.yl=function(){return this.b.D(this.c+
7)};b.a.Fd.prototype.Bj=function(){return this.b.D(this.c+8)};b.a.Fd.prototype.Vg=function(){return this.b.D(this.c+9)};b.a.Fd.prototype.cy=function(){return this.b.D(this.c+10)};b.a.Fd.JX=function(a,b,e,m,c,g,h,n,l,v,k,q){a.Aa(1,11);a.Gb(q);a.Gb(k);a.Gb(v);a.Gb(l);a.Gb(n);a.Gb(h);a.Gb(g);a.Gb(c);a.Gb(m);a.Gb(e);a.Gb(b);return a.offset()};b.a.Ej=function(){this.b=null;this.c=0};b.a.Ej.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ej.prototype.VE=function(){return this.b.D(this.c)};
b.a.Ej.prototype.AE=function(){return this.b.D(this.c+1)};b.a.Ej.prototype.BE=function(){return this.b.D(this.c+2)};b.a.Ej.KX=function(a,b,e,m){a.Aa(1,3);a.Gb(m);a.Gb(e);a.Gb(b);return a.offset()};b.a.Ta=function(){this.b=null;this.c=0};b.a.Ta.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ta.f_=function(a,d){return(d||new b.a.Ta).i(a.N(a.position())+a.position(),a)};b.a.Ta.prototype.name=function(a){var b=this.b.f(this.c,4);return b?this.b.ee(this.c+b,a):null};b.a.Ta.prototype.pe=function(a){var b=
this.b.f(this.c,6);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ta.prototype.se=function(a){var b=this.b.f(this.c,8);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ta.prototype.te=function(a){var b=this.b.f(this.c,10);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ta.prototype.hc=function(a,d){var e=this.b.f(this.c,12);return e?(d||new b.a.Mc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.Ta.prototype.IR=function(){var a=this.b.f(this.c,12);return a?this.b.pa(this.c+a):0};b.a.Ta.eU=function(a){a.aa(5)};
b.a.Ta.cM=function(a,b){a.s(0,b)};b.a.Ta.LK=function(a,b){a.s(1,b)};b.a.Ta.AX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Ta.S0=function(a,b){a.j(1,b,1)};b.a.Ta.eL=function(a,b){a.s(2,b)};b.a.Ta.NX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Ta.Y0=function(a,b){a.j(1,b,1)};b.a.Ta.fL=function(a,b){a.s(3,b)};b.a.Ta.OX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Ta.Z0=
function(a,b){a.j(1,b,1)};b.a.Ta.KL=function(a,b){a.s(4,b)};b.a.Ta.hY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Ta.i1=function(a,b){a.j(4,b,4)};b.a.Ta.AP=function(a){var b=a.$();a.af(b,4);return b};b.a.Ta.uX=function(a,d,e,m,c,g){b.a.Ta.eU(a);b.a.Ta.cM(a,d);b.a.Ta.LK(a,e);b.a.Ta.eL(a,m);b.a.Ta.fL(a,c);b.a.Ta.KL(a,g);return b.a.Ta.AP(a)};b.a.nc=function(){this.b=null;this.c=0};b.a.nc.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.nc.x_=
function(a,d){return(d||new b.a.nc).i(a.N(a.position())+a.position(),a)};b.a.nc.prototype.zS=function(a){var d=this.b.f(this.c,4);return d?(new b.a.zc).i(this.b.wa(this.b.L(this.c+d)+4*a),this.b):null};b.a.nc.prototype.AS=function(){var a=this.b.f(this.c,4);return a?this.b.pa(this.c+a):0};b.a.nc.DU=function(a){a.aa(2)};b.a.nc.pM=function(a,b){a.s(0,b)};b.a.nc.xY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.nc.t1=function(a,b){a.j(4,b,4)};b.a.nc.YJ=function(a,
b){a.s(1,b)};b.a.nc.WW=function(a,b){a.j(2,b.length,2);for(var d=b.length-1;0<=d;d--)a.mh(b[d]);return a.I()};b.a.nc.z0=function(a,b){a.j(2,b,2)};b.a.nc.TP=function(a){return a.$()};b.a.nc.sY=function(a,d,e){b.a.nc.DU(a);b.a.nc.pM(a,d);b.a.nc.YJ(a,e);return b.a.nc.TP(a)};b.a.gd=function(){this.b=null;this.c=0};b.a.gd.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.gd.h_=function(a,d){return(d||new b.a.gd).i(a.N(a.position())+a.position(),a)};b.a.gd.prototype.Dn=function(){var a=this.b.f(this.c,
4);return a?this.b.Mb(this.c+a):0};b.a.gd.prototype.Cn=function(){var a=this.b.f(this.c,6);return a?this.b.D(this.c+a):0};b.a.gd.iU=function(a){a.aa(2)};b.a.gd.AM=function(a,b){a.fc(0,b)};b.a.gd.zM=function(a,b){a.X(1,b,0)};b.a.gd.CP=function(a){return a.$()};b.a.gd.FX=function(a,d,e){b.a.gd.iU(a);b.a.gd.AM(a,d);b.a.gd.zM(a,e);return b.a.gd.CP(a)};b.a.o=function(){this.b=null;this.c=0};b.a.o.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.o.qB=function(a){return(new b.a.o).i(a.N(a.position())+
a.position(),a)};b.a.o.prototype.oq=function(a){var d=this.b.f(this.c,4);return d?(a||new b.a.ki).i(this.c+d,this.b):null};b.a.o.prototype.pq=function(a){var d=this.b.f(this.c,6);return d?(a||new b.a.Fd).i(this.c+d,this.b):null};b.a.o.prototype.Df=function(a){var d=this.b.f(this.c,8);return d?(a||new b.a.Ej).i(this.c+d,this.b):null};b.a.o.prototype.Aw=function(a){var b=this.b.f(this.c,10);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.o.prototype.HS=function(){var a=this.b.f(this.c,10);return a?this.b.pa(this.c+
a):0};b.a.o.prototype.Kq=function(a){var b=this.b.f(this.c,12);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.o.prototype.IS=function(){var a=this.b.f(this.c,12);return a?this.b.pa(this.c+a):0};b.a.o.prototype.Xk=function(a){var b=this.b.f(this.c,14);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.o.prototype.nT=function(){var a=this.b.f(this.c,14);return a?this.b.pa(this.c+a):0};b.a.o.prototype.xw=function(a){var b=this.b.f(this.c,16);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.o.prototype.FS=
function(){var a=this.b.f(this.c,16);return a?this.b.pa(this.c+a):0};b.a.o.prototype.Ku=function(a){var b=this.b.f(this.c,18);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.o.prototype.oO=function(){var a=this.b.f(this.c,18);return a?this.b.pa(this.c+a):0};b.a.o.prototype.Pw=function(a,d){var e=this.b.f(this.c,20);return e?(d||new b.a.fd).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.o.prototype.jT=function(){var a=this.b.f(this.c,20);return a?this.b.pa(this.c+a):0};b.a.o.prototype.Ok=function(a){var b=
this.b.f(this.c,22);return b?this.b.ee(this.c+b,a):null};b.a.o.prototype.nn=function(a){var b=this.b.f(this.c,24);return b?this.b.ee(this.c+b,a):null};b.a.o.prototype.Sh=function(){var a=this.b.f(this.c,26);return a?this.b.ja(this.c+a):0};b.a.o.prototype.ln=function(){var a=this.b.f(this.c,28);return a?this.b.ja(this.c+a):0};b.a.o.prototype.Yi=function(){var a=this.b.f(this.c,30);return a?this.b.ja(this.c+a):0};b.a.o.prototype.kn=function(){var a=this.b.f(this.c,32);return a?this.b.ja(this.c+a):0};
b.a.o.prototype.Xi=function(){var a=this.b.f(this.c,34);return a?this.b.ja(this.c+a):0};b.a.o.prototype.Tc=function(){var a=this.b.f(this.c,36);return a?this.b.ja(this.c+a):0};b.a.o.prototype.Yf=function(){var a=this.b.f(this.c,38);return a?this.b.Mb(this.c+a):0};b.a.o.prototype.uc=function(){var a=this.b.f(this.c,40);return a?this.b.jc(this.c+a):2048};b.a.o.prototype.$B=function(){var a=this.b.f(this.c,42);return a?this.b.D(this.c+a):18};b.a.o.prototype.sk=function(a,d){var e=this.b.f(this.c,44);
return e?(d||new b.a.Ta).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.o.prototype.BO=function(){var a=this.b.f(this.c,44);return a?this.b.pa(this.c+a):0};b.a.o.prototype.DS=function(){var a=this.b.f(this.c,48);return a?(new b.a.nc).i(this.b.wa(this.c+a),this.b):null};b.a.o.prototype.Gw=function(){var a=this.b.f(this.c,50);return a?this.b.D(this.c+a):24};b.a.o.prototype.Oi=function(a){var d=this.b.f(this.c,52);return d?(a||new b.a.gd).i(this.b.wa(this.c+d),this.b):null};b.a.o.vx=function(a){a.aa(25)};
b.a.o.GL=function(a,b){a.td(0,b)};b.a.o.HL=function(a,b){a.td(1,b)};b.a.o.FN=function(a,b){a.td(2,b)};b.a.o.wM=function(a,b){a.s(3,b)};b.a.o.AY=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.o.w1=function(a,b){a.j(1,b,1)};b.a.o.BM=function(a,b){a.s(4,b)};b.a.o.EY=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.o.y1=function(a,b){a.j(1,b,1)};b.a.o.QM=function(a,b){a.s(5,b)};b.a.o.WY=function(a,b){a.j(1,b.length,
1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.o.F1=function(a,b){a.j(1,b,1)};b.a.o.uM=function(a,b){a.s(6,b)};b.a.o.zY=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.o.v1=function(a,b){a.j(1,b,1)};b.a.o.oK=function(a,b){a.s(7,b)};b.a.o.iX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.o.I0=function(a,b){a.j(1,b,1)};b.a.o.KM=function(a,b){a.s(8,b)};b.a.o.OY=function(a,b){a.j(4,b.length,4);for(var d=
b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.o.B1=function(a,b){a.j(4,b,4)};b.a.o.pu=function(a,b){a.s(9,b)};b.a.o.UL=function(a,b){a.s(10,b)};b.a.o.cN=function(a,b){a.ta(11,b,0)};b.a.o.QL=function(a,b){a.ta(12,b,0)};b.a.o.RL=function(a,b){a.ta(13,b,0)};b.a.o.NL=function(a,b){a.ta(14,b,0)};b.a.o.OL=function(a,b){a.ta(15,b,0)};b.a.o.VM=function(a,b){a.ta(16,b,0)};b.a.o.gu=function(a,b){a.fc(17,b)};b.a.o.GN=function(a,b){a.je(18,b,2048)};b.a.o.XL=function(a,b){a.X(19,b,18)};b.a.o.EK=function(a,
b){a.s(20,b)};b.a.o.vX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.o.O0=function(a,b){a.j(4,b,4)};b.a.o.WL=function(a,b){a.je(21,b,25)};b.a.o.tM=function(a,b){a.s(22,b)};b.a.o.FM=function(a,b){a.X(23,b,24)};b.a.o.RK=function(a,b){a.s(24,b)};b.a.o.mv=function(a){return a.$()};b.a.o.SO=function(a,d,e,m,c,g,h,n,l,v,k,q,r,K,H,F,B,L,x,u,G,E,S,z,D,N){b.a.o.vx(a);b.a.o.GL(a,d);b.a.o.HL(a,e);b.a.o.FN(a,m);b.a.o.wM(a,c);b.a.o.BM(a,g);b.a.o.QM(a,h);b.a.o.uM(a,
n);b.a.o.oK(a,l);b.a.o.KM(a,v);b.a.o.pu(a,k);b.a.o.UL(a,q);b.a.o.cN(a,r);b.a.o.QL(a,K);b.a.o.RL(a,H);b.a.o.NL(a,F);b.a.o.OL(a,B);b.a.o.VM(a,L);b.a.o.gu(a,x);b.a.o.GN(a,u);b.a.o.XL(a,G);b.a.o.EK(a,E);b.a.o.WL(a,S);b.a.o.tM(a,z);b.a.o.FM(a,D);b.a.o.RK(a,N);return b.a.o.mv(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ti=function(){this.b=null;this.c=0};b.a.ti.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ti.prototype.x=function(){return this.b.jc(this.c)};b.a.ti.prototype.y=function(){return this.b.jc(this.c+
2)};b.a.ti.wZ=function(a,b,e){a.Aa(2,4);a.wc(e);a.wc(b);return a.offset()};b.a.bh=function(){this.b=null;this.c=0};b.a.bh.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.bh.prototype.x=function(){return this.b.Ng(this.c)};b.a.bh.prototype.y=function(){return this.b.Ng(this.c+2)};b.a.bh.vZ=function(a,b,e){a.Aa(2,4);a.wc(e);a.wc(b);return a.offset()};b.a.Kl=function(){this.b=null;this.c=0};b.a.Kl.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Kl.prototype.x=function(){return this.b.ja(this.c)};
b.a.Kl.prototype.y=function(){return this.b.ja(this.c+4)};b.a.Kl.uZ=function(a,b,e){a.Aa(4,8);a.bc(e);a.bc(b);return a.offset()};b.a.si=function(){this.b=null;this.c=0};b.a.si.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.si.prototype.x=function(){return this.b.In(this.c)};b.a.si.prototype.y=function(){return this.b.In(this.c+8)};b.a.si.tZ=function(a,b,e){a.Aa(8,16);a.ae(e);a.ae(b);return a.offset()};b.a.Lj=function(){this.b=null;this.c=0};b.a.Lj.prototype.i=function(a,b){this.c=a;
this.b=b;return this};b.a.Lj.prototype.x=function(){return this.b.ja(this.c)};b.a.Lj.prototype.y=function(){return this.b.ja(this.c+4)};b.a.Lj.prototype.z=function(){return this.b.ja(this.c+8)};b.a.Lj.yZ=function(a,b,e,m){a.Aa(4,12);a.bc(m);a.bc(e);a.bc(b);return a.offset()};b.a.Kj=function(){this.b=null;this.c=0};b.a.Kj.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Kj.prototype.x=function(){return this.b.In(this.c)};b.a.Kj.prototype.y=function(){return this.b.In(this.c+8)};b.a.Kj.prototype.z=
function(){return this.b.In(this.c+16)};b.a.Kj.xZ=function(a,b,e,m){a.Aa(8,24);a.ae(m);a.ae(e);a.ae(b);return a.offset()};b.a.ni=function(){this.b=null;this.c=0};b.a.ni.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ni.prototype.Dd=function(){return this.b.ja(this.c)};b.a.ni.prototype.x=function(){return this.b.ja(this.c+4)};b.a.ni.prototype.y=function(){return this.b.ja(this.c+8)};b.a.ni.prototype.z=function(){return this.b.ja(this.c+12)};b.a.ni.IY=function(a,b,e,m,c){a.Aa(4,16);a.bc(c);
a.bc(m);a.bc(e);a.bc(b);return a.offset()};b.a.Ij=function(){this.b=null;this.c=0};b.a.Ij.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ij.prototype.rotation=function(a){return(a||new b.a.ni).i(this.c+24,this.b)};b.a.Ij.LY=function(a,b,e,m,c,g,h,n){a.Aa(8,40);a.Aa(4,16);a.bc(n);a.bc(h);a.bc(g);a.bc(c);a.Aa(8,24);a.ae(m);a.ae(e);a.ae(b);return a.offset()};b.a.po=function(){this.b=null;this.c=0};b.a.po.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.po.prototype.fC=function(a){return(a||
new b.a.Lj).i(this.c,this.b)};b.a.po.prototype.Hg=function(){return this.b.ja(this.c+12)};b.a.po.wY=function(a,b,e,c,p){a.Aa(4,16);a.bc(p);a.Aa(4,12);a.bc(c);a.bc(e);a.bc(b);return a.offset()};b.a.hd=function(){this.b=null;this.c=0};b.a.hd.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.hd.i_=function(a,d){return(d||new b.a.hd).i(a.N(a.position())+a.position(),a)};b.a.hd.kU=function(a){a.aa(2)};b.a.hd.oM=function(a,b){a.s(0,b)};b.a.hd.s1=function(a,b){a.j(16,b,4)};b.a.hd.FK=function(a,
b){a.s(1,b)};b.a.hd.P0=function(a,b){a.j(12,b,4)};b.a.hd.DP=function(a){return a.$()};b.a.hd.HX=function(a,d,e){b.a.hd.kU(a);b.a.hd.oM(a,d);b.a.hd.FK(a,e);return b.a.hd.DP(a)};b.a.ii=function(){this.b=null;this.c=0};b.a.ii.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ii.prototype.Db=function(a){return(a||new b.a.bh).i(this.c,this.b)};b.a.ii.prototype.Lb=function(a){return(a||new b.a.bh).i(this.c+4,this.b)};b.a.ii.prototype.we=function(a){return(a||new b.a.bh).i(this.c+8,this.b)};b.a.ii.prototype.Ud=
function(a){return(a||new b.a.bh).i(this.c+12,this.b)};b.a.ii.wX=function(a,b,e,c,p,g,h,n,l){a.Aa(2,16);a.Aa(2,4);a.wc(l);a.wc(n);a.Aa(2,4);a.wc(h);a.wc(g);a.Aa(2,4);a.wc(p);a.wc(c);a.Aa(2,4);a.wc(e);a.wc(b);return a.offset()};b.a.Gl=function(){this.b=null;this.c=0};b.a.Gl.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Gl.prototype.position=function(a){return(a||new b.a.ti).i(this.c,this.b)};b.a.Gl.prototype.angle=function(){return this.b.ja(this.c+4)};b.a.Gl.nY=function(a,b,e,c){a.Aa(4,
8);a.bc(c);a.Aa(2,4);a.wc(e);a.wc(b);return a.offset()};b.a.Nc=function(){this.b=null;this.c=0};b.a.Nc.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Nc.t_=function(a,d){return(d||new b.a.Nc).i(a.N(a.position())+a.position(),a)};b.a.Nc.prototype.orientation=function(a){var d=this.b.f(this.c,4);return d?(a||new b.a.Ij).i(this.c+d,this.b):null};b.a.Nc.prototype.width=function(){var a=this.b.f(this.c,6);return a?this.b.ja(this.c+a):0};b.a.Nc.prototype.height=function(){var a=this.b.f(this.c,
8);return a?this.b.ja(this.c+a):0};b.a.Nc.zU=function(a){a.aa(3)};b.a.Nc.ru=function(a,b){a.td(0,b)};b.a.Nc.Cg=function(a,b){a.ta(1,b,0)};b.a.Nc.Di=function(a,b){a.ta(2,b,0)};b.a.Nc.PP=function(a){return a.$()};b.a.Nc.mY=function(a,d,e,c){b.a.Nc.zU(a);b.a.Nc.ru(a,d);b.a.Nc.Cg(a,e);b.a.Nc.Di(a,c);return b.a.Nc.PP(a)};b.a.Hl=function(){this.b=null;this.c=0};b.a.Hl.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Hl.prototype.min=function(a){return(a||new b.a.si).i(this.c,this.b)};b.a.Hl.prototype.max=
function(a){return(a||new b.a.si).i(this.c+16,this.b)};b.a.Hl.JY=function(a,b,e,c,p){a.Aa(8,32);a.Aa(8,16);a.ae(p);a.ae(c);a.Aa(8,16);a.ae(e);a.ae(b);return a.offset()};b.a.Ee=function(){this.b=null;this.c=0};b.a.Ee.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ee.B_=function(a,d){return(d||new b.a.Ee).i(a.N(a.position())+a.position(),a)};b.a.Ee.prototype.line=function(a,d){var e=this.b.f(this.c,4);return e?(d||new b.a.si).i(this.b.L(this.c+e)+16*a,this.b):null};b.a.Ee.HU=function(a){a.aa(1)};
b.a.Ee.ML=function(a,b){a.s(0,b)};b.a.Ee.j1=function(a,b){a.j(16,b,8)};b.a.Ee.XP=function(a){return a.$()};b.a.Ee.GY=function(a,d){b.a.Ee.HU(a);b.a.Ee.ML(a,d);return b.a.Ee.XP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.h=b.a.h||{};b.a.h.g=b.a.h.g||{};b.a.h.g.JE={PE:0,uW:1,tW:2};b.a.h.g.mW={0:"T300",1:"T400",2:"T392C"};b.a.h.g.IE={pE:0,pW:1};b.a.h.g.lW={0:"MeshPerView",1:"SingleMesh"};b.a.h.g.RE={vE:0,QV:1,qW:2,RV:3};b.a.h.g.wW={0:"Never",1:"Always",2:"Sometimes",3:"AlwaysIfSameOrder"};
b.a.h.g.o=function(){this.b=null;this.c=0};b.a.h.g.o.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.o.qB=function(a){return(new b.a.h.g.o).i(a.N(a.position())+a.position(),a)};b.a.h.g.o.prototype.Ok=function(a){var b=this.b.f(this.c,4);return b?this.b.ee(this.c+b,a):null};b.a.h.g.o.prototype.Yf=function(){var a=this.b.f(this.c,20);return a?this.b.Mb(this.c+a):0};b.a.h.g.o.vx=function(a){a.aa(11)};b.a.h.g.o.pu=function(a,b){a.s(0,b)};b.a.h.g.o.TM=function(a,b){a.s(1,b)};b.a.h.g.o.hK=
function(a,b){a.s(2,b)};b.a.h.g.o.XM=function(a,b){a.s(3,b)};b.a.h.g.o.eK=function(a,b){a.s(4,b)};b.a.h.g.o.aM=function(a,b){a.s(5,b)};b.a.h.g.o.lY=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.h.g.o.n1=function(a,b){a.j(1,b,1)};b.a.h.g.o.lK=function(a,b){a.s(6,b)};b.a.h.g.o.eX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.h.g.o.G0=function(a,b){a.j(4,b,4)};b.a.h.g.o.IL=function(a,b){a.s(7,b)};b.a.h.g.o.eY=function(a,
b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.h.g.o.h1=function(a,b){a.j(4,b,4)};b.a.h.g.o.gu=function(a,b){a.fc(8,b)};b.a.h.g.o.fK=function(a,b){a.s(9,b)};b.a.h.g.o.cX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.h.g.o.D0=function(a,b){a.j(1,b,1)};b.a.h.g.o.UM=function(a,b){a.ta(10,b,0)};b.a.h.g.o.mv=function(a){return a.$()};b.a.h.g.o.SO=function(a,d,e,c,p,g,h,n,l,v,k,q){b.a.h.g.o.vx(a);b.a.h.g.o.pu(a,d);b.a.h.g.o.TM(a,
e);b.a.h.g.o.hK(a,c);b.a.h.g.o.XM(a,p);b.a.h.g.o.eK(a,g);b.a.h.g.o.aM(a,h);b.a.h.g.o.lK(a,n);b.a.h.g.o.IL(a,l);b.a.h.g.o.gu(a,v);b.a.h.g.o.fK(a,k);b.a.h.g.o.UM(a,q);return b.a.h.g.o.mv(a)};b.a.h.g.Hb=function(){this.b=null;this.c=0};b.a.h.g.Hb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.Hb.y_=function(a,d){return(d||new b.a.h.g.Hb).i(a.N(a.position())+a.position(),a)};b.a.h.g.Hb.prototype.heading=function(){var a=this.b.f(this.c,6);return a?this.b.ja(this.c+a):0};b.a.h.g.Hb.prototype.frame=
function(a){var d=this.b.f(this.c,8);return d?(a||new b.a.Ij).i(this.c+d,this.b):null};b.a.h.g.Hb.prototype.EQ=function(a){var d=this.b.f(this.c,10);return d?(a||new b.a.hd).i(this.b.wa(this.c+d),this.b):null};b.a.h.g.Hb.EU=function(a){a.aa(6)};b.a.h.g.Hb.uK=function(a,b){a.X(0,b,0)};b.a.h.g.Hb.ju=function(a,b){a.ta(1,b,0)};b.a.h.g.Hb.iu=function(a,b){a.td(2,b)};b.a.h.g.Hb.aL=function(a,b){a.s(3,b)};b.a.h.g.Hb.kL=function(a,b){a.ta(4,b,0)};b.a.h.g.Hb.BN=function(a,b){a.s(5,b)};b.a.h.g.Hb.nZ=function(a,
b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.h.g.Hb.Q1=function(a,b){a.j(1,b,1)};b.a.h.g.Hb.UP=function(a){var b=a.$();a.af(b,8);a.af(b,10);a.af(b,14);return b};b.a.h.g.Hb.uY=function(a,d,e,c,p,g,h){b.a.h.g.Hb.EU(a);b.a.h.g.Hb.uK(a,d);b.a.h.g.Hb.ju(a,e);b.a.h.g.Hb.iu(a,c);b.a.h.g.Hb.aL(a,p);b.a.h.g.Hb.kL(a,g);b.a.h.g.Hb.BN(a,h);return b.a.h.g.Hb.UP(a)};b.a.h.g.ya=function(){this.b=null;this.c=0};b.a.h.g.ya.prototype.i=function(a,b){this.c=a;this.b=b;return this};
b.a.h.g.ya.d_=function(a,d){return(d||new b.a.h.g.ya).i(a.N(a.position())+a.position(),a)};b.a.h.g.ya.prototype.frame=function(a){var d=this.b.f(this.c,8);return d?(a||new b.a.Ij).i(this.c+d,this.b):null};b.a.h.g.ya.prototype.height=function(){var a=this.b.f(this.c,12);return a?this.b.ja(this.c+a):0};b.a.h.g.ya.prototype.heading=function(){var a=this.b.f(this.c,14);return a?this.b.ja(this.c+a):0};b.a.h.g.ya.prototype.time=function(){var a=this.b.f(this.c,16);return a?this.b.cd(this.c+a):this.b.Z(0,
0)};b.a.h.g.ya.prototype.GA=function(){var a=this.b.f(this.c,24);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.h.g.ya.cU=function(a){a.aa(12)};b.a.h.g.ya.qL=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.h.g.ya.YL=function(a,b){a.td(1,b)};b.a.h.g.ya.iu=function(a,b){a.td(2,b)};b.a.h.g.ya.lM=function(a,b){a.s(3,b)};b.a.h.g.ya.vY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.h.g.ya.r1=function(a,b){a.j(4,b,4)};b.a.h.g.ya.Di=function(a,b){a.ta(4,b,0)};b.a.h.g.ya.ju=
function(a,b){a.ta(5,b,0)};b.a.h.g.ya.HN=function(a,b){a.Ua(6,b,a.Z(0,0))};b.a.h.g.ya.JM=function(a,d){a.X(7,d,b.a.h.g.JE.PE)};b.a.h.g.ya.IM=function(a,d){a.X(8,d,b.a.h.g.IE.pE)};b.a.h.g.ya.CN=function(a,b){a.X(9,b,0)};b.a.h.g.ya.nK=function(a,b){a.Ua(10,b,a.Z(0,0))};b.a.h.g.ya.kK=function(a,b){a.Ua(11,b,a.Z(0,0))};b.a.h.g.ya.yP=function(a){var b=a.$();a.af(b,6);a.af(b,8);a.af(b,10);return b};b.a.h.g.ya.rX=function(a,d,e,c,p,g,h,n,l,v,k,q,r){b.a.h.g.ya.cU(a);b.a.h.g.ya.qL(a,d);b.a.h.g.ya.YL(a,e);
b.a.h.g.ya.iu(a,c);b.a.h.g.ya.lM(a,p);b.a.h.g.ya.Di(a,g);b.a.h.g.ya.ju(a,h);b.a.h.g.ya.HN(a,n);b.a.h.g.ya.JM(a,l);b.a.h.g.ya.IM(a,v);b.a.h.g.ya.CN(a,k);b.a.h.g.ya.nK(a,q);b.a.h.g.ya.kK(a,r);return b.a.h.g.ya.yP(a)};b.a.h.g.ce=function(){this.b=null;this.c=0};b.a.h.g.ce.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.ce.L_=function(a,d){return(d||new b.a.h.g.ce).i(a.N(a.position())+a.position(),a)};b.a.h.g.ce.prototype.PR=function(a){var d=this.b.f(this.c,6);return d?(a||new b.a.Kj).i(this.c+
d,this.b):null};b.a.h.g.ce.SU=function(a){a.aa(2)};b.a.h.g.ce.vM=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.h.g.ce.TL=function(a,b){a.td(1,b)};b.a.h.g.ce.gQ=function(a){return a.$()};b.a.h.g.ce.bZ=function(a,d,e){b.a.h.g.ce.SU(a);b.a.h.g.ce.vM(a,d);b.a.h.g.ce.TL(a,e);return b.a.h.g.ce.gQ(a)};b.a.h.g.Ac=function(){this.b=null;this.c=0};b.a.h.g.Ac.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.Ac.K_=function(a,d){return(d||new b.a.h.g.Ac).i(a.N(a.position())+a.position(),a)};b.a.h.g.Ac.RU=
function(a){a.aa(4)};b.a.h.g.Ac.pK=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.h.g.Ac.yK=function(a,b){a.s(1,b)};b.a.h.g.Ac.dN=function(a,b){a.s(2,b)};b.a.h.g.Ac.PK=function(a,b){a.s(3,b)};b.a.h.g.Ac.EX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.h.g.Ac.V0=function(a,b){a.j(4,b,4)};b.a.h.g.Ac.fQ=function(a){return a.$()};b.a.h.g.Ac.$Y=function(a,d,e,c,p){b.a.h.g.Ac.RU(a);b.a.h.g.Ac.pK(a,d);b.a.h.g.Ac.yK(a,e);b.a.h.g.Ac.dN(a,c);b.a.h.g.Ac.PK(a,p);return b.a.h.g.Ac.fQ(a)};
b.a.h.g.Metadata=function(){this.b=null;this.c=0};b.a.h.g.Metadata.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.Metadata.s_=function(a,d){return(d||new b.a.h.g.Metadata).i(a.N(a.position())+a.position(),a)};b.a.h.g.Metadata.prototype.version=function(a){var b=this.b.f(this.c,4);return b?this.b.ee(this.c+b,a):null};b.a.h.g.Metadata.prototype.key=function(a){var d=this.b.f(this.c,6);return d?(a||new b.a.rg).i(this.c+d,this.b):null};b.a.h.g.Metadata.prototype.Bw=function(a,d){var e=
this.b.f(this.c,8);return e?(d||new b.a.h.g.ya).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.h.g.Metadata.yU=function(a){a.aa(4)};b.a.h.g.Metadata.yu=function(a,b){a.s(0,b)};b.a.h.g.Metadata.Ib=function(a,b){a.td(1,b)};b.a.h.g.Metadata.xM=function(a,b){a.s(2,b)};b.a.h.g.Metadata.BY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.h.g.Metadata.x1=function(a,b){a.j(4,b,4)};b.a.h.g.Metadata.fN=function(a,b){a.s(3,b)};b.a.h.g.Metadata.cZ=function(a,b){a.j(4,
b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.h.g.Metadata.J1=function(a,b){a.j(4,b,4)};b.a.h.g.Metadata.OP=function(a){var b=a.$();a.af(b,8);a.af(b,10);return b};b.a.h.g.Metadata.jY=function(a,d,e,c,p){b.a.h.g.Metadata.yU(a);b.a.h.g.Metadata.yu(a,d);b.a.h.g.Metadata.Ib(a,e);b.a.h.g.Metadata.xM(a,c);b.a.h.g.Metadata.fN(a,p);return b.a.h.g.Metadata.OP(a)};b.a.h.g.ld=function(){this.b=null;this.c=0};b.a.h.g.ld.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.ld.w_=
function(a,d){return(d||new b.a.h.g.ld).i(a.N(a.position())+a.position(),a)};b.a.h.g.ld.prototype.bn=function(){var a=this.b.f(this.c,6);return a?this.b.ja(this.c+a):0};b.a.h.g.ld.CU=function(a){a.aa(3)};b.a.h.g.ld.kM=function(a,b){a.ta(0,b,0)};b.a.h.g.ld.lu=function(a,b){a.ta(1,b,0)};b.a.h.g.ld.zN=function(a,d){a.X(2,d,b.a.h.g.RE.vE)};b.a.h.g.ld.SP=function(a){return a.$()};b.a.h.g.ld.rY=function(a,d,e,c){b.a.h.g.ld.CU(a);b.a.h.g.ld.kM(a,d);b.a.h.g.ld.lu(a,e);b.a.h.g.ld.zN(a,c);return b.a.h.g.ld.SP(a)};
b.a.h.g.de=function(){this.b=null;this.c=0};b.a.h.g.de.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.de.V_=function(a,d){return(d||new b.a.h.g.de).i(a.N(a.position())+a.position(),a)};b.a.h.g.de.prototype.zoom=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.h.g.de.bV=function(a){a.aa(2)};b.a.h.g.de.Dg=function(a,b){a.X(0,b,0)};b.a.h.g.de.rM=function(a,b){a.s(1,b)};b.a.h.g.de.qQ=function(a){return a.$()};b.a.h.g.de.CZ=function(a,d,e){b.a.h.g.de.bV(a);b.a.h.g.de.Dg(a,
d);b.a.h.g.de.rM(a,e);return b.a.h.g.de.qQ(a)};b.a.h.g.be=function(){this.b=null;this.c=0};b.a.h.g.be.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.h.g.be.XZ=function(a,d){return(d||new b.a.h.g.be).i(a.N(a.position())+a.position(),a)};b.a.h.g.be.prototype.key=function(a){var d=this.b.f(this.c,4);return d?(a||new b.a.rg).i(this.c+d,this.b):null};b.a.h.g.be.WT=function(a){a.aa(2)};b.a.h.g.be.Ib=function(a,b){a.td(0,b)};b.a.h.g.be.GK=function(a,b){a.td(1,b)};b.a.h.g.be.rP=function(a){var b=
a.$();a.af(b,6);return b};b.a.h.g.be.bX=function(a,d,e){b.a.h.g.be.WT(a);b.a.h.g.be.Ib(a,d);b.a.h.g.be.GK(a,e);return b.a.h.g.be.rP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.cb=function(){this.b=null;this.c=0};b.a.cb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.cb.u_=function(a,d){return(d||new b.a.cb).i(a.N(a.position())+a.position(),a)};b.a.cb.prototype.vc=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.cb.prototype.offset=function(){var a=this.b.f(this.c,
6);return a?this.b.Mb(this.c+a):0};b.a.cb.prototype.length=function(){var a=this.b.f(this.c,8);return a?this.b.Mb(this.c+a):0};b.a.cb.prototype.type=function(){var a=this.b.f(this.c,10);return a?this.b.Mb(this.c+a):0};b.a.cb.prototype.Jv=function(){var a=this.b.f(this.c,12);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.cb.prototype.Ma=function(a,d){var e=this.b.f(this.c,14);return e?(d||new b.a.oc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.cb.prototype.Sg=function(){var a=this.b.f(this.c,
14);return a?this.b.pa(this.c+a):0};b.a.cb.AU=function(a){a.aa(6)};b.a.cb.Ei=function(a,b){a.X(0,b,0)};b.a.cb.ga=function(a,b){a.fc(1,b)};b.a.cb.ou=function(a,b){a.fc(2,b)};b.a.cb.xu=function(a,b){a.fc(3,b)};b.a.cb.nL=function(a,b){a.Ua(4,b,a.Z(0,0))};b.a.cb.ke=function(a,b){a.s(5,b)};b.a.cb.wk=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.cb.dl=function(a,b){a.j(4,b,4)};b.a.cb.QP=function(a){return a.$()};b.a.cb.pY=function(a,d,e,c,p,g,h){b.a.cb.AU(a);
b.a.cb.Ei(a,d);b.a.cb.ga(a,e);b.a.cb.ou(a,c);b.a.cb.xu(a,p);b.a.cb.nL(a,g);b.a.cb.ke(a,h);return b.a.cb.QP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ha=function(){this.b=null;this.c=0};b.a.ha.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ha.z_=function(a,d){return(d||new b.a.ha).i(a.N(a.position())+a.position(),a)};b.a.ha.prototype.vc=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.ha.prototype.eq=function(){var a=this.b.f(this.c,6);return a?this.b.D(this.c+
a):0};b.a.ha.prototype.zx=function(){var a=this.b.f(this.c,8);return a?this.b.Mb(this.c+a):0};b.a.ha.prototype.il=function(){var a=this.b.f(this.c,10);return a?this.b.Mb(this.c+a):0};b.a.ha.prototype.rv=function(){var a=this.b.f(this.c,12);return a?this.b.Mb(this.c+a):0};b.a.ha.prototype.ov=function(){var a=this.b.f(this.c,14);return a?this.b.Mb(this.c+a):0};b.a.ha.prototype.Ma=function(a,d){var e=this.b.f(this.c,16);return e?(d||new b.a.oc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.ha.prototype.Sg=
function(){var a=this.b.f(this.c,16);return a?this.b.pa(this.c+a):0};b.a.ha.FU=function(a){a.aa(7)};b.a.ha.Ei=function(a,b){a.X(0,b,0)};b.a.ha.tL=function(a,b){a.X(1,b,0)};b.a.ha.lN=function(a,b){a.fc(2,b)};b.a.ha.kN=function(a,b){a.fc(3,b)};b.a.ha.TK=function(a,b){a.fc(4,b)};b.a.ha.SK=function(a,b){a.fc(5,b)};b.a.ha.ke=function(a,b){a.s(6,b)};b.a.ha.wk=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.ha.dl=function(a,b){a.j(4,b,4)};b.a.ha.VP=function(a){return a.$()};
b.a.ha.CY=function(a,d,e,c,p,g,h,n){b.a.ha.FU(a);b.a.ha.Ei(a,d);b.a.ha.tL(a,e);b.a.ha.lN(a,c);b.a.ha.kN(a,p);b.a.ha.TK(a,g);b.a.ha.SK(a,h);b.a.ha.ke(a,n);return b.a.ha.VP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.hy={ky:0,YV:1,XV:2};b.a.cW={0:"Normal",1:"DeadEnd",2:"CrossTile"};b.a.Ia=function(){this.b=null;this.c=0};b.a.Ia.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ia.E_=function(a,d){return(d||new b.a.Ia).i(a.N(a.position())+a.position(),a)};b.a.Ia.prototype.position=
function(a){var d=this.b.f(this.c,4);return d?(a||new b.a.Gl).i(this.c+d,this.b):null};b.a.Ia.prototype.MV=function(a){var b=this.b.f(this.c,6);return b?this.b.jc(this.b.L(this.c+b)+2*a):0};b.a.Ia.prototype.NV=function(){var a=this.b.f(this.c,6);return a?this.b.pa(this.c+a):0};b.a.Ia.LU=function(a){a.aa(2)};b.a.Ia.tu=function(a,b){a.td(0,b)};b.a.Ia.VN=function(a,b){a.s(1,b)};b.a.Ia.BZ=function(a,b){a.j(2,b.length,2);for(var d=b.length-1;0<=d;d--)a.mh(b[d]);return a.I()};b.a.Ia.V1=function(a,b){a.j(2,
b,2)};b.a.Ia.$P=function(a){return a.$()};b.a.Ia.NY=function(a,d,e){b.a.Ia.LU(a);b.a.Ia.tu(a,d);b.a.Ia.VN(a,e);return b.a.Ia.$P(a)};b.a.Vb=function(){this.b=null;this.c=0};b.a.Vb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Vb.g_=function(a,d){return(d||new b.a.Vb).i(a.N(a.position())+a.position(),a)};b.a.Vb.prototype.id=function(){var a=this.b.f(this.c,4);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.Vb.prototype.length=function(){var a=this.b.f(this.c,6);return a?this.b.jc(this.c+
a):0};b.a.Vb.prototype.Bv=function(a){var b=this.b.f(this.c,8);return b?this.b.jc(this.b.L(this.c+b)+2*a):0};b.a.Vb.prototype.FQ=function(){var a=this.b.f(this.c,8);return a?this.b.pa(this.c+a):0};b.a.Vb.gU=function(a){a.aa(3)};b.a.Vb.Bg=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.Vb.ou=function(a,b){a.je(1,b,0)};b.a.Vb.bL=function(a,b){a.s(2,b)};b.a.Vb.LX=function(a,b){a.j(2,b.length,2);for(var d=b.length-1;0<=d;d--)a.mh(b[d]);return a.I()};b.a.Vb.X0=function(a,b){a.j(2,b,2)};b.a.Vb.BP=function(a){return a.$()};
b.a.Vb.xX=function(a,d,e,c){b.a.Vb.gU(a);b.a.Vb.Bg(a,d);b.a.Vb.ou(a,e);b.a.Vb.bL(a,c);return b.a.Vb.BP(a)};b.a.ma=function(){this.b=null;this.c=0};b.a.ma.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ma.D_=function(a,d){return(d||new b.a.ma).i(a.N(a.position())+a.position(),a)};b.a.ma.prototype.vc=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.ma.prototype.offset=function(){var a=this.b.f(this.c,6);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.ma.prototype.count=
function(){var a=this.b.f(this.c,8);return a?this.b.Mb(this.c+a):0};b.a.ma.prototype.io=function(){var a=this.b.f(this.c,10);return a?this.b.Mb(this.c+a):0};b.a.ma.prototype.Ma=function(a,d){var e=this.b.f(this.c,12);return e?(d||new b.a.oc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.ma.prototype.Sg=function(){var a=this.b.f(this.c,12);return a?this.b.pa(this.c+a):0};b.a.ma.KU=function(a){a.aa(5)};b.a.ma.Ei=function(a,b){a.X(0,b,0)};b.a.ma.ga=function(a,b){a.Ua(1,b,a.Z(0,0))};b.a.ma.fu=
function(a,b){a.fc(2,b)};b.a.ma.UN=function(a,b){a.fc(3,b)};b.a.ma.ke=function(a,b){a.s(4,b)};b.a.ma.wk=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.ma.dl=function(a,b){a.j(4,b,4)};b.a.ma.ZP=function(a){return a.$()};b.a.ma.MY=function(a,d,e,c,p,g){b.a.ma.KU(a);b.a.ma.Ei(a,d);b.a.ma.ga(a,e);b.a.ma.fu(a,c);b.a.ma.UN(a,p);b.a.ma.ke(a,g);return b.a.ma.ZP(a)};b.a.jd=function(){this.b=null;this.c=0};b.a.jd.prototype.i=function(a,b){this.c=a;this.b=b;return this};
b.a.jd.n_=function(a,d){return(d||new b.a.jd).i(a.N(a.position())+a.position(),a)};b.a.jd.prototype.type=function(){var a=this.b.f(this.c,8);return a?this.b.D(this.c+a):b.a.hy.ky};b.a.jd.rU=function(a){a.aa(3)};b.a.jd.CL=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.jd.EN=function(a,b){a.td(1,b)};b.a.jd.xu=function(a,d){a.X(2,d,b.a.hy.ky)};b.a.jd.JP=function(a){return a.$()};b.a.jd.aY=function(a,d,e,c){b.a.jd.rU(a);b.a.jd.CL(a,d);b.a.jd.EN(a,e);b.a.jd.xu(a,c);return b.a.jd.JP(a)};b.a.vb=function(){this.b=
null;this.c=0};b.a.vb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.vb.F_=function(a,d){return(d||new b.a.vb).i(a.N(a.position())+a.position(),a)};b.a.vb.prototype.width=function(){var a=this.b.f(this.c,8);return a?this.b.ja(this.c+a):0};b.a.vb.prototype.Ii=function(){var a=this.b.f(this.c,10);return a?(new b.a.Hl).i(this.c+a,this.b):null};b.a.vb.MU=function(a){a.aa(8)};b.a.vb.wL=function(a,b){a.X(0,+b,0)};b.a.vb.wN=function(a,b){a.Ua(1,b,a.Z(0,0))};b.a.vb.Cg=function(a,b){a.ta(2,b,
0)};b.a.vb.jK=function(a,b){a.td(3,b)};b.a.vb.AL=function(a,b){a.Ua(4,b,a.Z(0,0))};b.a.vb.BL=function(a,b){a.Ua(5,b,a.Z(0,0))};b.a.vb.vu=function(a,b){a.Ua(6,b,a.Z(0,0))};b.a.vb.RN=function(a,b){a.s(7,b)};b.a.vb.U1=function(a,b){a.j(16,b,8)};b.a.vb.aQ=function(a){return a.$()};b.a.vb.QY=function(a,d,e,c,p,g,h,n,l){b.a.vb.MU(a);b.a.vb.wL(a,d);b.a.vb.wN(a,e);b.a.vb.Cg(a,c);b.a.vb.jK(a,p);b.a.vb.AL(a,g);b.a.vb.BL(a,h);b.a.vb.vu(a,n);b.a.vb.RN(a,l);return b.a.vb.aQ(a)};b.a.Hd=function(){this.b=null;this.c=
0};b.a.Hd.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Hd.o_=function(a,d){return(d||new b.a.Hd).i(a.N(a.position())+a.position(),a)};b.a.Hd.sU=function(a){a.aa(2)};b.a.Hd.WK=function(a,b){a.X(0,b,0)};b.a.Hd.nu=function(a,b){a.s(1,b)};b.a.Hd.QO=function(a,b){a.j(8,b.length,8);for(var d=b.length-1;0<=d;d--)a.qp(b[d]);return a.I()};b.a.Hd.tU=function(a,b){a.j(8,b,8)};b.a.Hd.KP=function(a){return a.$()};b.a.Hd.bY=function(a,d,e){b.a.Hd.sU(a);b.a.Hd.WK(a,d);b.a.Hd.nu(a,e);return b.a.Hd.KP(a)};
b.a.Id=function(){this.b=null;this.c=0};b.a.Id.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Id.G_=function(a,d){return(d||new b.a.Id).i(a.N(a.position())+a.position(),a)};b.a.Id.NU=function(a){a.aa(2)};b.a.Id.vu=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.Id.DM=function(a,b){a.s(1,b)};b.a.Id.HY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.Id.A1=function(a,b){a.j(4,b,4)};b.a.Id.bQ=function(a){return a.$()};b.a.Id.SY=function(a,d,e){b.a.Id.NU(a);
b.a.Id.vu(a,d);b.a.Id.DM(a,e);return b.a.Id.bQ(a)};b.a.mb=function(){this.b=null;this.c=0};b.a.mb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.mb.H_=function(a,d){return(d||new b.a.mb).i(a.N(a.position())+a.position(),a)};b.a.mb.OU=function(a){a.aa(5)};b.a.mb.MM=function(a,b){a.s(0,b)};b.a.mb.RY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.mb.D1=function(a,b){a.j(4,b,4)};b.a.mb.nu=function(a,b){a.s(1,b)};b.a.mb.QO=function(a,b){a.j(4,b.length,
4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.mb.tU=function(a,b){a.j(4,b,4)};b.a.mb.MK=function(a,b){a.s(2,b)};b.a.mb.BX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.mb.T0=function(a,b){a.j(4,b,4)};b.a.mb.DL=function(a,b){a.s(3,b)};b.a.mb.cY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.mb.g1=function(a,b){a.j(4,b,4)};b.a.mb.NM=function(a,b){a.s(4,b)};b.a.mb.TY=function(a,b){a.j(4,b.length,
4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.mb.E1=function(a,b){a.j(4,b,4)};b.a.mb.cQ=function(a){return a.$()};b.a.mb.UY=function(a,d,e,c,p,g){b.a.mb.OU(a);b.a.mb.MM(a,d);b.a.mb.nu(a,e);b.a.mb.MK(a,c);b.a.mb.DL(a,p);b.a.mb.NM(a,g);return b.a.mb.cQ(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ia=function(){this.b=null;this.c=0};b.a.ia.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ia.J_=function(a,d){return(d||new b.a.ia).i(a.N(a.position())+a.position(),a)};
b.a.ia.prototype.text=function(a){var b=this.b.f(this.c,4);return b?this.b.ee(this.c+b,a):null};b.a.ia.prototype.id=function(){var a=this.b.f(this.c,6);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.ia.prototype.Kh=function(a,d){var e=this.b.f(this.c,8);return e?(d||new b.a.ti).i(this.b.L(this.c+e)+4*a,this.b):null};b.a.ia.prototype.Ew=function(){var a=this.b.f(this.c,8);return a?this.b.pa(this.c+a):0};b.a.ia.prototype.Tu=function(){var a=this.b.f(this.c,10);return a?this.b.Ze(this.c+a):this.b.Z(0,
0)};b.a.ia.prototype.Fa=function(){var a=this.b.f(this.c,12);return a?this.b.ja(this.c+a):0};b.a.ia.prototype.variant=function(){var a=this.b.f(this.c,16);return a?this.b.D(this.c+a):0};b.a.ia.QU=function(a){a.aa(7)};b.a.ia.wu=function(a,b){a.s(0,b)};b.a.ia.Bg=function(a,b){a.Ua(1,b,a.Z(0,0))};b.a.ia.uu=function(a,b){a.s(2,b)};b.a.ia.IU=function(a,b){a.j(4,b,2)};b.a.ia.AK=function(a,b){a.Ua(3,b,a.Z(0,0))};b.a.ia.qu=function(a,b){a.ta(4,b,0)};b.a.ia.hM=function(a,b){a.s(5,b)};b.a.ia.oY=function(a,
b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.ia.o1=function(a,b){a.j(1,b,1)};b.a.ia.ON=function(a,b){a.X(6,b,0)};b.a.ia.eQ=function(a){return a.$()};b.a.ia.YY=function(a,d,e,c,p,g,h,n){b.a.ia.QU(a);b.a.ia.wu(a,d);b.a.ia.Bg(a,e);b.a.ia.uu(a,c);b.a.ia.AK(a,p);b.a.ia.qu(a,g);b.a.ia.hM(a,h);b.a.ia.ON(a,n);return b.a.ia.eQ(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ks={jy:0,zE:1,QE:2,yE:3};b.a.WD={0:"None",1:"Poi",2:"Territory",3:"PhysicalFeature"};b.a.qs=
{ds:0,ND:1,PV:2};b.a.jW={0:"BelowRoad",1:"AboveRoad",2:"AboveBuildings"};b.a.ah={Jf:0,gy:1,ly:2};b.a.sW={0:"Outside",1:"Inside",2:"On"};b.a.dh={NONE:0,ea:1,Y:2,ba:3,Ea:4,da:5,lb:6};b.a.DW={0:"NONE",1:"RoadStyle",2:"TextLabelStyle",3:"PolygonStyle",4:"CoastlineStyle",5:"BuildingStyle",6:"POIDensityStyle"};b.a.ea=function(){this.b=null;this.c=0};b.a.ea.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ea.I_=function(a,d){return(d||new b.a.ea).i(a.N(a.position())+a.position(),a)};b.a.ea.prototype.key=
function(){var a=this.b.f(this.c,4);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.ea.prototype.Qp=function(){var a=this.b.f(this.c,6);return a?this.b.D(this.c+a):0};b.a.ea.prototype.lr=function(){var a=this.b.f(this.c,8);return a?this.b.D(this.c+a):0};b.a.ea.prototype.fillColor=function(a){var b=this.b.f(this.c,10);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.ea.prototype.Qv=function(){var a=this.b.f(this.c,12);return a?!!this.b.Kc(this.c+a):!1};b.a.ea.prototype.width=function(){var a=this.b.f(this.c,
14);return a?this.b.ja(this.c+a):0};b.a.ea.prototype.Ha=function(){var a=this.b.f(this.c,16);return a?this.b.ja(this.c+a):0};b.a.ea.prototype.strokeColor=function(a){var b=this.b.f(this.c,18);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.ea.prototype.jl=function(){var a=this.b.f(this.c,20);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.ea.prototype.Pi=function(){var a=this.b.f(this.c,22);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.ea.prototype.lq=function(){var a=this.b.f(this.c,24);return a?
!!this.b.Kc(this.c+a):!1};b.a.ea.prototype.Wq=function(){var a=this.b.f(this.c,26);return a?!!this.b.Kc(this.c+a):!1};b.a.ea.prototype.mq=function(){var a=this.b.f(this.c,28);return a?!!this.b.Kc(this.c+a):!1};b.a.ea.PU=function(a){a.aa(13)};b.a.ea.Ib=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.ea.VK=function(a,b){a.X(1,b,0)};b.a.ea.rN=function(a,b){a.X(2,b,0)};b.a.ea.hu=function(a,b){a.s(3,b)};b.a.ea.OO=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.ea.jU=function(a,
b){a.j(1,b,1)};b.a.ea.xL=function(a,b){a.X(4,+b,0)};b.a.ea.Cg=function(a,b){a.ta(5,b,0)};b.a.ea.Am=function(a,b){a.ta(6,b,0)};b.a.ea.zm=function(a,b){a.s(7,b)};b.a.ea.MA=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.ea.kD=function(a,b){a.j(1,b,1)};b.a.ea.mN=function(a,b){a.Ua(8,b,a.Z(0,0))};b.a.ea.UK=function(a,b){a.Ua(9,b,a.Z(0,0))};b.a.ea.yL=function(a,b){a.X(10,+b,0)};b.a.ea.SM=function(a,b){a.X(11,+b,0)};b.a.ea.zL=function(a,b){a.X(12,+b,0)};b.a.ea.dQ=
function(a){return a.$()};b.a.ea.VY=function(a,d,e,c,p,g,h,n,l,v,k,q,r,K){b.a.ea.PU(a);b.a.ea.Ib(a,d);b.a.ea.VK(a,e);b.a.ea.rN(a,c);b.a.ea.hu(a,p);b.a.ea.xL(a,g);b.a.ea.Cg(a,h);b.a.ea.Am(a,n);b.a.ea.zm(a,l);b.a.ea.mN(a,v);b.a.ea.UK(a,k);b.a.ea.yL(a,q);b.a.ea.SM(a,r);b.a.ea.zL(a,K);return b.a.ea.dQ(a)};b.a.Y=function(){this.b=null;this.c=0};b.a.Y.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Y.Q_=function(a,d){return(d||new b.a.Y).i(a.N(a.position())+a.position(),a)};b.a.Y.prototype.key=
function(){var a=this.b.f(this.c,4);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.Y.prototype.Zm=function(){var a=this.b.f(this.c,6);return a?this.b.ja(this.c+a):0};b.a.Y.prototype.Te=function(){var a=this.b.f(this.c,8);return a?this.b.ja(this.c+a):0};b.a.Y.prototype.Tg=function(a){var b=this.b.f(this.c,10);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Y.prototype.Xh=function(a){var b=this.b.f(this.c,12);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Y.prototype.padding=function(){var a=this.b.f(this.c,
14);return a?this.b.D(this.c+a):0};b.a.Y.prototype.yf=function(){var a=this.b.f(this.c,16);return a?this.b.D(this.c+a):0};b.a.Y.prototype.bd=function(){var a=this.b.f(this.c,18);return a?!!this.b.Kc(this.c+a):!1};b.a.Y.prototype.Ye=function(){var a=this.b.f(this.c,20);return a?this.b.ja(this.c+a):0};b.a.Y.prototype.Ni=function(){var a=this.b.f(this.c,22);return a?this.b.D(this.c+a):b.a.ks.jy};b.a.Y.prototype.fo=function(){var a=this.b.f(this.c,24);return a?!!this.b.Kc(this.c+a):!1};b.a.Y.prototype.uj=
function(a){var b=this.b.f(this.c,26);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Y.prototype.wp=function(){var a=this.b.f(this.c,28);return a?this.b.ja(this.c+a):0};b.a.Y.prototype.ph=function(){var a=this.b.f(this.c,30);return a?this.b.ja(this.c+a):0};b.a.Y.XU=function(a){a.aa(14)};b.a.Y.Ib=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.Y.hL=function(a,b){a.ta(1,b,0)};b.a.Y.ZK=function(a,b){a.ta(2,b,0)};b.a.Y.uN=function(a,b){a.s(3,b)};b.a.Y.hZ=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=
d;d--)a.Oa(b[d]);return a.I()};b.a.Y.M1=function(a,b){a.j(1,b,1)};b.a.Y.vN=function(a,b){a.s(4,b)};b.a.Y.iZ=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Y.N1=function(a,b){a.j(1,b,1)};b.a.Y.su=function(a,b){a.X(5,b,0)};b.a.Y.oL=function(a,b){a.X(6,b,0)};b.a.Y.gM=function(a,b){a.X(7,+b,0)};b.a.Y.fM=function(a,b){a.ta(8,b,0)};b.a.Y.NK=function(a,d){a.X(9,d,b.a.ks.jy)};b.a.Y.LN=function(a,b){a.X(10,+b,0)};b.a.Y.yN=function(a,b){a.s(11,b)};b.a.Y.mZ=function(a,
b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Y.P1=function(a,b){a.j(1,b,1)};b.a.Y.aK=function(a,b){a.ta(12,b,0)};b.a.Y.bK=function(a,b){a.ta(13,b,0)};b.a.Y.lQ=function(a){return a.$()};b.a.Y.kZ=function(a,d,e,c,p,g,h,n,l,v,k,q,r,K,H){b.a.Y.XU(a);b.a.Y.Ib(a,d);b.a.Y.hL(a,e);b.a.Y.ZK(a,c);b.a.Y.uN(a,p);b.a.Y.vN(a,g);b.a.Y.su(a,h);b.a.Y.oL(a,n);b.a.Y.gM(a,l);b.a.Y.fM(a,v);b.a.Y.NK(a,k);b.a.Y.LN(a,q);b.a.Y.yN(a,r);b.a.Y.aK(a,K);b.a.Y.bK(a,H);return b.a.Y.lQ(a)};b.a.da=
function(){this.b=null;this.c=0};b.a.da.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.da.YZ=function(a,d){return(d||new b.a.da).i(a.N(a.position())+a.position(),a)};b.a.da.prototype.key=function(){var a=this.b.f(this.c,4);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.da.prototype.visible=function(){var a=this.b.f(this.c,6);return a?!!this.b.Kc(this.c+a):!1};b.a.da.prototype.mx=function(){var a=this.b.f(this.c,8);return a?this.b.ja(this.c+a):0};b.a.da.prototype.Ha=function(){var a=
this.b.f(this.c,10);return a?this.b.ja(this.c+a):0};b.a.da.prototype.strokeColor=function(a){var b=this.b.f(this.c,12);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.da.prototype.Ax=function(){var a=this.b.f(this.c,14);return a?this.b.ja(this.c+a):0};b.a.da.prototype.hl=function(a){var b=this.b.f(this.c,16);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.da.prototype.Bk=function(a){var b=this.b.f(this.c,18);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.da.prototype.Qi=function(a){var b=this.b.f(this.c,
20);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.da.prototype.ll=function(a){var b=this.b.f(this.c,22);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.da.prototype.zIndex=function(){var a=this.b.f(this.c,24);return a?this.b.Mb(this.c+a):0};b.a.da.XT=function(a){a.aa(11)};b.a.da.Ib=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.da.Cm=function(a,b){a.X(1,+b,0)};b.a.da.bN=function(a,b){a.ta(2,b,0)};b.a.da.Am=function(a,b){a.ta(3,b,0)};b.a.da.zm=function(a,b){a.s(4,b)};b.a.da.MA=function(a,b){a.j(1,b.length,
1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.da.kD=function(a,b){a.j(1,b,1)};b.a.da.qN=function(a,b){a.ta(5,b,0)};b.a.da.hN=function(a,b){a.s(6,b)};b.a.da.fZ=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.da.L1=function(a,b){a.j(1,b,1)};b.a.da.OK=function(a,b){a.s(7,b)};b.a.da.DX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.da.U0=function(a,b){a.j(1,b,1)};b.a.da.XK=function(a,b){a.s(8,b)};b.a.da.GX=
function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.da.W0=function(a,b){a.j(1,b,1)};b.a.da.IN=function(a,b){a.s(9,b)};b.a.da.qZ=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.da.S1=function(a,b){a.j(1,b,1)};b.a.da.zu=function(a,b){a.fc(10,b)};b.a.da.sP=function(a){return a.$()};b.a.da.hX=function(a,d,e,c,p,g,h,n,l,v,k,q){b.a.da.XT(a);b.a.da.Ib(a,d);b.a.da.Cm(a,e);b.a.da.bN(a,c);b.a.da.Am(a,p);b.a.da.zm(a,g);b.a.da.qN(a,
h);b.a.da.hN(a,n);b.a.da.OK(a,l);b.a.da.XK(a,v);b.a.da.IN(a,k);b.a.da.zu(a,q);return b.a.da.sP(a)};b.a.ba=function(){this.b=null;this.c=0};b.a.ba.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.ba.A_=function(a,d){return(d||new b.a.ba).i(a.N(a.position())+a.position(),a)};b.a.ba.prototype.key=function(){var a=this.b.f(this.c,4);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.ba.prototype.visible=function(){var a=this.b.f(this.c,6);return a?!!this.b.Kc(this.c+a):!1};b.a.ba.prototype.zIndex=
function(){var a=this.b.f(this.c,8);return a?this.b.Mb(this.c+a):0};b.a.ba.prototype.Ha=function(){var a=this.b.f(this.c,10);return a?this.b.ja(this.c+a):0};b.a.ba.prototype.strokeColor=function(a){var b=this.b.f(this.c,12);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.ba.prototype.fillColor=function(a){var b=this.b.f(this.c,14);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.ba.prototype.Qb=function(){var a=this.b.f(this.c,16);return a?this.b.D(this.c+a):b.a.qs.ds};b.a.ba.prototype.Wh=function(){var a=
this.b.f(this.c,18);return a?this.b.D(this.c+a):b.a.ah.Jf};b.a.ba.prototype.xx=function(){var a=this.b.f(this.c,20);return a?!!this.b.Kc(this.c+a):!1};b.a.ba.prototype.kr=function(){var a=this.b.f(this.c,22);return a?this.b.ja(this.c+a):0};b.a.ba.prototype.jr=function(){var a=this.b.f(this.c,24);return a?this.b.D(this.c+a):b.a.ah.Jf};b.a.ba.prototype.tj=function(a){var b=this.b.f(this.c,26);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.ba.prototype.yx=function(){var a=this.b.f(this.c,28);return a?
!!this.b.Kc(this.c+a):!1};b.a.ba.GU=function(a){a.aa(13)};b.a.ba.Ib=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.ba.Cm=function(a,b){a.X(1,+b,0)};b.a.ba.zu=function(a,b){a.fc(2,b)};b.a.ba.Am=function(a,b){a.ta(3,b,0)};b.a.ba.zm=function(a,b){a.s(4,b)};b.a.ba.MA=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.ba.kD=function(a,b){a.j(1,b,1)};b.a.ba.hu=function(a,b){a.s(5,b)};b.a.ba.OO=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};
b.a.ba.jU=function(a,b){a.j(1,b,1)};b.a.ba.mM=function(a,d){a.X(6,d,b.a.qs.ds)};b.a.ba.nN=function(a,d){a.X(7,d,b.a.ah.Jf)};b.a.ba.iN=function(a,b){a.X(8,+b,0)};b.a.ba.pN=function(a,b){a.ta(9,b,0)};b.a.ba.oN=function(a,d){a.X(10,d,b.a.ah.Jf)};b.a.ba.gN=function(a,b){a.s(11,b)};b.a.ba.eZ=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.ba.K1=function(a,b){a.j(1,b,1)};b.a.ba.jN=function(a,b){a.X(12,+b,0)};b.a.ba.WP=function(a){return a.$()};b.a.ba.DY=function(a,
d,e,c,p,g,h,n,l,v,k,q,r,K){b.a.ba.GU(a);b.a.ba.Ib(a,d);b.a.ba.Cm(a,e);b.a.ba.zu(a,c);b.a.ba.Am(a,p);b.a.ba.zm(a,g);b.a.ba.hu(a,h);b.a.ba.mM(a,n);b.a.ba.nN(a,l);b.a.ba.iN(a,v);b.a.ba.pN(a,k);b.a.ba.oN(a,q);b.a.ba.gN(a,r);b.a.ba.jN(a,K);return b.a.ba.WP(a)};b.a.Ea=function(){this.b=null;this.c=0};b.a.Ea.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Ea.c_=function(a,d){return(d||new b.a.Ea).i(a.N(a.position())+a.position(),a)};b.a.Ea.prototype.key=function(){var a=this.b.f(this.c,4);return a?
this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.Ea.prototype.color=function(a){var b=this.b.f(this.c,6);return b?this.b.D(this.b.L(this.c+b)+a):0};b.a.Ea.prototype.jx=function(){var a=this.b.f(this.c,8);return a?this.b.ja(this.c+a):0};b.a.Ea.prototype.kx=function(){var a=this.b.f(this.c,10);return a?this.b.ja(this.c+a):0};b.a.Ea.prototype.Lv=function(){var a=this.b.f(this.c,12);return a?this.b.ja(this.c+a):0};b.a.Ea.prototype.Kv=function(){var a=this.b.f(this.c,14);return a?this.b.ja(this.c+a):0};b.a.Ea.prototype.sw=
function(){var a=this.b.f(this.c,16);return a?this.b.ja(this.c+a):0};b.a.Ea.prototype.rw=function(){var a=this.b.f(this.c,18);return a?this.b.ja(this.c+a):0};b.a.Ea.bU=function(a){a.aa(8)};b.a.Ea.Ib=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.Ea.eu=function(a,b){a.s(1,b)};b.a.Ea.HO=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Ea.fU=function(a,b){a.j(1,b,1)};b.a.Ea.YM=function(a,b){a.ta(2,b,0)};b.a.Ea.ZM=function(a,b){a.ta(3,b,0)};b.a.Ea.vL=function(a,b){a.ta(4,
b,0)};b.a.Ea.uL=function(a,b){a.ta(5,b,0)};b.a.Ea.eM=function(a,b){a.ta(6,b,0)};b.a.Ea.dM=function(a,b){a.ta(7,b,0)};b.a.Ea.xP=function(a){return a.$()};b.a.Ea.pX=function(a,d,e,c,p,g,h,n,l){b.a.Ea.bU(a);b.a.Ea.Ib(a,d);b.a.Ea.eu(a,e);b.a.Ea.YM(a,c);b.a.Ea.ZM(a,p);b.a.Ea.vL(a,g);b.a.Ea.uL(a,h);b.a.Ea.eM(a,n);b.a.Ea.dM(a,l);return b.a.Ea.xP(a)};b.a.lb=function(){this.b=null;this.c=0};b.a.lb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.lb.v_=function(a,d){return(d||new b.a.lb).i(a.N(a.position())+
a.position(),a)};b.a.lb.prototype.key=function(){var a=this.b.f(this.c,4);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.lb.prototype.bn=function(){var a=this.b.f(this.c,6);return a?this.b.ja(this.c+a):1};b.a.lb.prototype.bq=function(){var a=this.b.f(this.c,8);return a?this.b.ja(this.c+a):1};b.a.lb.BU=function(a){a.aa(5)};b.a.lb.Ib=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.lb.lu=function(a,b){a.ta(1,b,1)};b.a.lb.pL=function(a,b){a.ta(2,b,1)};b.a.lb.lL=function(a,b){a.s(3,b)};b.a.lb.SX=function(a,b){a.j(1,
b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.lb.b1=function(a,b){a.j(1,b,1)};b.a.lb.mL=function(a,b){a.s(4,b)};b.a.lb.TX=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.lb.c1=function(a,b){a.j(1,b,1)};b.a.lb.RP=function(a){return a.$()};b.a.lb.qY=function(a,d,e,c,p,g){b.a.lb.BU(a);b.a.lb.Ib(a,d);b.a.lb.lu(a,e);b.a.lb.pL(a,c);b.a.lb.lL(a,p);b.a.lb.mL(a,g);return b.a.lb.RP(a)};b.a.oc=function(){this.b=null;this.c=0};b.a.oc.prototype.i=
function(a,b){this.c=a;this.b=b;return this};b.a.oc.O_=function(a,d){return(d||new b.a.oc).i(a.N(a.position())+a.position(),a)};b.a.oc.prototype.zoom=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.oc.prototype.key=function(){var a=this.b.f(this.c,6);return a?this.b.Ze(this.c+a):this.b.Z(0,0)};b.a.oc.VU=function(a){a.aa(2)};b.a.oc.Dg=function(a,b){a.X(0,b,0)};b.a.oc.Ib=function(a,b){a.Ua(1,b,a.Z(0,0))};b.a.oc.jQ=function(a){return a.$()};b.a.oc.gZ=function(a,d,e){b.a.oc.VU(a);
b.a.oc.Dg(a,d);b.a.oc.Ib(a,e);return b.a.oc.jQ(a)};b.a.pd=function(){this.b=null;this.c=0};b.a.pd.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.pd.N_=function(a,d){return(d||new b.a.pd).i(a.N(a.position())+a.position(),a)};b.a.pd.prototype.dV=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):b.a.dh.NONE};b.a.pd.prototype.style=function(a){var b=this.b.f(this.c,6);return b?this.b.bF(a,this.c+b):null};b.a.pd.UU=function(a){a.aa(2)};b.a.pd.tN=function(a,d){a.X(0,d,b.a.dh.NONE)};
b.a.pd.sN=function(a){a.s(1,void 0)};b.a.pd.iQ=function(a){return a.$()};b.a.pd.Hp=function(a,d){b.a.pd.UU(a);b.a.pd.tN(a,d);b.a.pd.sN(a);return b.a.pd.iQ(a)};b.a.Mc=function(){this.b=null;this.c=0};b.a.Mc.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Mc.r_=function(a,d){return(d||new b.a.Mc).i(a.N(a.position())+a.position(),a)};b.a.Mc.prototype.zoom=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.Mc.prototype.color=function(a){var b=this.b.f(this.c,6);return b?
this.b.D(this.b.L(this.c+b)+a):0};b.a.Mc.wU=function(a){a.aa(2)};b.a.Mc.Dg=function(a,b){a.X(0,b,0)};b.a.Mc.eu=function(a,b){a.s(1,b)};b.a.Mc.HO=function(a,b){a.j(1,b.length,1);for(var d=b.length-1;0<=d;d--)a.Oa(b[d]);return a.I()};b.a.Mc.fU=function(a,b){a.j(1,b,1)};b.a.Mc.NP=function(a){return a.$()};b.a.Mc.gY=function(a,d,e){b.a.Mc.wU(a);b.a.Mc.Dg(a,d);b.a.Mc.eu(a,e);return b.a.Mc.NP(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.Fl=function(){this.b=null;this.c=0};b.a.Fl.prototype.i=function(a,
b){this.c=a;this.b=b;return this};b.a.Fl.prototype.Fg=function(){return this.b.D(this.c)};b.a.Fl.prototype.lineWidth=function(){return this.b.jc(this.c+2)};b.a.Fl.iY=function(a,b,e){a.Aa(2,4);a.wc(e);a.Rk(1);a.Gb(b);return a.offset()};b.a.bb=function(){this.b=null;this.c=0};b.a.bb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.bb.q_=function(a,d){return(d||new b.a.bb).i(a.N(a.position())+a.position(),a)};b.a.bb.prototype.pC=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+
a):0};b.a.bb.prototype.orientation=function(){var a=this.b.f(this.c,6);return a?this.b.D(this.c+a):0};b.a.bb.prototype.position=function(){var a=this.b.f(this.c,8);return a?this.b.D(this.c+a):0};b.a.bb.prototype.ED=function(){var a=this.b.f(this.c,10);return a?!!this.b.Kc(this.c+a):!1};b.a.bb.prototype.sC=function(){var a=this.b.f(this.c,12);return a?this.b.Mb(this.c+a):0};b.a.bb.prototype.wB=function(){var a=this.b.f(this.c,14);return a?!!this.b.Kc(this.c+a):!1};b.a.bb.prototype.OB=function(a){var d=
this.b.f(this.c,16);return d?(a||new b.a.Kl).i(this.c+d,this.b):null};b.a.bb.vU=function(a){a.aa(7)};b.a.bb.nM=function(a,b){a.X(0,b,0)};b.a.bb.ru=function(a,b){a.X(1,b,0)};b.a.bb.tu=function(a,b){a.X(2,b,0)};b.a.bb.NN=function(a,b){a.X(3,+b,0)};b.a.bb.EM=function(a,b){a.fc(4,b)};b.a.bb.iL=function(a,b){a.X(5,+b,0)};b.a.bb.LL=function(a,b){a.td(6,b)};b.a.bb.MP=function(a){return a.$()};b.a.bb.fY=function(a,d,e,c,p,g,h,n){b.a.bb.vU(a);b.a.bb.nM(a,d);b.a.bb.ru(a,e);b.a.bb.tu(a,c);b.a.bb.NN(a,p);b.a.bb.EM(a,
g);b.a.bb.iL(a,h);b.a.bb.LL(a,n);return b.a.bb.MP(a)};b.a.hb=function(){this.b=null;this.c=0};b.a.hb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.hb.a_=function(a,d){return(d||new b.a.hb).i(a.N(a.position())+a.position(),a)};b.a.hb.prototype.lines=function(a,d){var e=this.b.f(this.c,4);return e?(d||new b.a.Fl).i(this.b.L(this.c+e)+4*a,this.b):null};b.a.hb.prototype.NR=function(){var a=this.b.f(this.c,4);return a?this.b.pa(this.c+a):0};b.a.hb.prototype.lineHeight=function(){var a=this.b.f(this.c,
6);return a?this.b.jc(this.c+a):0};b.a.hb.prototype.YB=function(){var a=this.b.f(this.c,8);return a?this.b.jc(this.c+a):0};b.a.hb.prototype.offset=function(){var a=this.b.f(this.c,10);return a?this.b.jc(this.c+a):0};b.a.hb.prototype.ne=function(){var a=this.b.f(this.c,12);return a?this.b.D(this.c+a):0};b.a.hb.prototype.re=function(){var a=this.b.f(this.c,14);return a?this.b.D(this.c+a):0};b.a.hb.$T=function(a){a.aa(6)};b.a.hb.SL=function(a,b){a.s(0,b)};b.a.hb.k1=function(a,b){a.j(4,b,2)};b.a.hb.PL=
function(a,b){a.je(1,b,0)};b.a.hb.VL=function(a,b){a.je(2,b,0)};b.a.hb.ga=function(a,b){a.je(3,b,0)};b.a.hb.IK=function(a,b){a.X(4,b,0)};b.a.hb.dL=function(a,b){a.X(5,b,0)};b.a.hb.vP=function(a){return a.$()};b.a.hb.createCaption=function(a,d,e,c,p,g,h){b.a.hb.$T(a);b.a.hb.SL(a,d);b.a.hb.PL(a,e);b.a.hb.VL(a,c);b.a.hb.ga(a,p);b.a.hb.IK(a,g);b.a.hb.dL(a,h);return b.a.hb.vP(a)};b.a.Xc=function(){this.b=null;this.c=0};b.a.Xc.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Xc.U_=function(a,
d){return(d||new b.a.Xc).i(a.N(a.position())+a.position(),a)};b.a.Xc.prototype.zoom=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.Xc.prototype.caption=function(a){var d=this.b.f(this.c,6);return d?(a||new b.a.hb).i(this.b.wa(this.c+d),this.b):null};b.a.Xc.aV=function(a){a.aa(2)};b.a.Xc.Dg=function(a,b){a.X(0,b,0)};b.a.Xc.vK=function(a,b){a.s(1,b)};b.a.Xc.pQ=function(a){return a.$()};b.a.Xc.AZ=function(a,d,e){b.a.Xc.aV(a);b.a.Xc.Dg(a,d);b.a.Xc.vK(a,e);return b.a.Xc.pQ(a)};
b.a.Oc=function(){this.b=null;this.c=0};b.a.Oc.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Oc.T_=function(a,d){return(d||new b.a.Oc).i(a.N(a.position())+a.position(),a)};b.a.Oc.prototype.zoom=function(){var a=this.b.f(this.c,4);return a?this.b.D(this.c+a):0};b.a.Oc.prototype.fO=function(a){var d=this.b.f(this.c,6);return d?(new b.a.ii).i(this.b.L(this.c+d)+16*a,this.b):null};b.a.Oc.prototype.gO=function(){var a=this.b.f(this.c,6);return a?this.b.pa(this.c+a):0};b.a.Oc.$U=function(a){a.aa(2)};
b.a.Oc.Dg=function(a,b){a.X(0,b,0)};b.a.Oc.iK=function(a,b){a.s(1,b)};b.a.Oc.F0=function(a,b){a.j(16,b,2)};b.a.Oc.oQ=function(a){return a.$()};b.a.Oc.zZ=function(a,d,e){b.a.Oc.$U(a);b.a.Oc.Dg(a,d);b.a.Oc.iK(a,e);return b.a.Oc.oQ(a)};b.a.B=function(){this.b=null;this.c=0};b.a.B.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.B.P_=function(a,d){return(d||new b.a.B).i(a.N(a.position())+a.position(),a)};b.a.B.prototype.Wd=function(){var a=this.b.f(this.c,4);return a?this.b.cd(this.c+a):this.b.Z(0,
0)};b.a.B.prototype.Hm=function(){var a=this.b.f(this.c,6);return a?!!this.b.Kc(this.c+a):!1};b.a.B.prototype.Ma=function(a,d){var e=this.b.f(this.c,8);return e?(d||new b.a.oc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.B.prototype.Sg=function(){var a=this.b.f(this.c,8);return a?this.b.pa(this.c+a):0};b.a.B.prototype.Ji=function(a,d){var e=this.b.f(this.c,10);return e?(d||new b.a.Xc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.B.prototype.sO=function(){var a=this.b.f(this.c,10);
return a?this.b.pa(this.c+a):0};b.a.B.prototype.GV=function(){var a=this.b.f(this.c,12);return a?!!this.b.Kc(this.c+a):!1};b.a.B.prototype.Sk=function(a,d){var e=this.b.f(this.c,14);return e?(d||new b.a.Oc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.B.prototype.uS=function(){var a=this.b.f(this.c,14);return a?this.b.pa(this.c+a):0};b.a.B.prototype.Kh=function(a,d){var e=this.b.f(this.c,16);return e?(d||new b.a.ti).i(this.b.L(this.c+e)+4*a,this.b):null};b.a.B.prototype.Ew=function(){var a=
this.b.f(this.c,16);return a?this.b.pa(this.c+a):0};b.a.B.prototype.Wv=function(a){var d=this.b.f(this.c,18);return d?(a||new b.a.bb).i(this.b.wa(this.c+d),this.b):null};b.a.B.prototype.Fa=function(){var a=this.b.f(this.c,20);return a?this.b.ja(this.c+a):0};b.a.B.prototype.qb=function(a,d){var e=this.b.f(this.c,22);return e?(d||new b.a.Gj).i(this.b.L(this.c+e)+16*a,this.b):null};b.a.B.prototype.rR=function(){var a=this.b.f(this.c,22);return a?this.b.pa(this.c+a):0};b.a.B.prototype.Yb=function(){var a=
this.b.f(this.c,24);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.B.prototype.ww=function(){var a=this.b.f(this.c,26);return a?this.b.jc(this.c+a):0};b.a.B.prototype.lk=function(){var a=this.b.f(this.c,28);return a?this.b.cd(this.c+a):this.b.Z(0,0)};b.a.B.prototype.text=function(a){var b=this.b.f(this.c,32);return b?this.b.ee(this.c+b,a):null};b.a.B.prototype.an=function(a,d){var e=this.b.f(this.c,34);return e?(d||new b.a.Gj).i(this.b.L(this.c+e)+16*a,this.b):null};b.a.B.prototype.AB=function(){var a=
this.b.f(this.c,34);return a?this.b.pa(this.c+a):0};b.a.B.prototype.hk=function(a,d){var e=this.b.f(this.c,36);return e?(d||new b.a.Xc).i(this.b.wa(this.b.L(this.c+e)+4*a),this.b):null};b.a.B.prototype.CA=function(){var a=this.b.f(this.c,36);return a?this.b.pa(this.c+a):0};b.a.B.prototype.Fi=function(a){var b=this.b.f(this.c,38);return b?this.b.ee(this.c+b,a):null};b.a.B.WU=function(a){a.aa(18)};b.a.B.GM=function(a,b){a.Ua(0,b,a.Z(0,0))};b.a.B.wK=function(a,b){a.X(1,+b,0)};b.a.B.ke=function(a,b){a.s(2,
b)};b.a.B.wk=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.B.dl=function(a,b){a.j(4,b,4)};b.a.B.xK=function(a,b){a.s(3,b)};b.a.B.nX=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.B.L0=function(a,b){a.j(4,b,4)};b.a.B.MN=function(a,b){a.X(4,+b,0)};b.a.B.jM=function(a,b){a.s(5,b)};b.a.B.tY=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.B.q1=function(a,b){a.j(4,b,4)};b.a.B.uu=
function(a,b){a.s(6,b)};b.a.B.IU=function(a,b){a.j(4,b,2)};b.a.B.JL=function(a,b){a.s(7,b)};b.a.B.qu=function(a,b){a.ta(8,b,0)};b.a.B.mu=function(a,b){a.s(9,b)};b.a.B.d1=function(a,b){a.j(16,b,8)};b.a.B.QK=function(a,b){a.Ua(10,b,a.Z(0,0))};b.a.B.sM=function(a,b){a.je(11,b,0)};b.a.B.qK=function(a,b){a.Ua(12,b,a.Z(0,0))};b.a.B.eN=function(a,b){a.s(13,b)};b.a.B.aZ=function(a,b){a.j(8,b.length,8);for(var d=b.length-1;0<=d;d--)a.qp(b[d]);return a.I()};b.a.B.I1=function(a,b){a.j(8,b,8)};b.a.B.wu=function(a,
b){a.s(14,b)};b.a.B.ku=function(a,b){a.s(15,b)};b.a.B.oU=function(a,b){a.j(16,b,8)};b.a.B.$J=function(a,b){a.s(16,b)};b.a.B.XW=function(a,b){a.j(4,b.length,4);for(var d=b.length-1;0<=d;d--)a.ga(b[d]);return a.I()};b.a.B.A0=function(a,b){a.j(4,b,4)};b.a.B.ZJ=function(a,b){a.s(17,b)};b.a.B.kQ=function(a){return a.$()};b.a.B.jZ=function(a,d,e,c,p,g,h,n,l,v,k,q,r,K,H,F,B,L,x){b.a.B.WU(a);b.a.B.GM(a,d);b.a.B.wK(a,e);b.a.B.ke(a,c);b.a.B.xK(a,p);b.a.B.MN(a,g);b.a.B.jM(a,h);b.a.B.uu(a,n);b.a.B.JL(a,l);b.a.B.qu(a,
v);b.a.B.mu(a,k);b.a.B.QK(a,q);b.a.B.sM(a,r);b.a.B.qK(a,K);b.a.B.eN(a,H);b.a.B.wu(a,F);b.a.B.ku(a,B);b.a.B.$J(a,L);b.a.B.ZJ(a,x);return b.a.B.kQ(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.ps={DEPTH_COMPONENT:0,ALPHA:1,RGB:2,RGBA:3,LUMINANCE:4,LUMINANCE_ALPHA:5};b.a.iW={0:"DEPTH_COMPONENT",1:"ALPHA",2:"RGB",3:"RGBA",4:"LUMINANCE",5:"LUMINANCE_ALPHA"};b.a.Wb=function(){this.b=null;this.c=0};b.a.Wb.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.Wb.R_=function(a,d){return(d||
new b.a.Wb).i(a.N(a.position())+a.position(),a)};b.a.Wb.prototype.data=function(a){var d=this.b.f(this.c,4);return d?(a||new b.a.yc).i(this.b.wa(this.c+d),this.b):null};b.a.Wb.prototype.width=function(){var a=this.b.f(this.c,6);return a?this.b.jc(this.c+a):0};b.a.Wb.prototype.height=function(){var a=this.b.f(this.c,8);return a?this.b.jc(this.c+a):0};b.a.Wb.prototype.format=function(){var a=this.b.f(this.c,10);return a?this.b.D(this.c+a):b.a.ps.DEPTH_COMPONENT};b.a.Wb.YU=function(a){a.aa(4)};b.a.Wb.ym=
function(a,b){a.s(0,b)};b.a.Wb.Cg=function(a,b){a.je(1,b,0)};b.a.Wb.Di=function(a,b){a.je(2,b,0)};b.a.Wb.$K=function(a,d){a.X(3,d,b.a.ps.DEPTH_COMPONENT)};b.a.Wb.mQ=function(a){return a.$()};b.a.Wb.createTexture=function(a,d,e,c,p){b.a.Wb.YU(a);b.a.Wb.ym(a,d);b.a.Wb.Cg(a,e);b.a.Wb.Di(a,c);b.a.Wb.$K(a,p);return b.a.Wb.mQ(a)}}).call({},e);(function(b){b=b||{};b.a=b.a||{};b.a.rg=function(){this.b=null;this.c=0};b.a.rg.prototype.i=function(a,b){this.c=a;this.b=b;return this};b.a.rg.prototype.x=function(){return this.b.Mb(this.c)};
b.a.rg.prototype.y=function(){return this.b.Mb(this.c+4)};b.a.rg.prototype.z=function(){return this.b.D(this.c+8)};b.a.rg.pZ=function(a,b,e,c){a.Aa(4,12);a.Rk(3);a.Gb(c);a.Ed(e);a.Ed(b);return a.offset()}}).call({},e);return e.a}.call({})});g(28,0,function(){function e(a){b.ua(this)&&(this.gS=a.lk||a.Yb,this.position=this.setPosition(a),this.VS=this.Sn(a),this.tO=this.BT(a),this.title=this.JT(a),this.Fi=this.yT(a))}var b=h(8),a=h(27);e.prototype.Oh=function(){return{muid:this.gS,position:this.position,
rects:this.VS,category:this.tO,title:this.title,annotation:this.Fi}};e.prototype.setPosition=function(a){var b=Math.pow(2,a.element.oa.key.z);return[(a.element.oa.key.x+a.Ce.origin[0])/b,(a.element.oa.key.y+(1-a.Ce.origin[1]))/b]};e.prototype.Sn=function(){return[]};e.prototype.BT=function(b){return a.WD[b.element.jb.Ni]};e.prototype.JT=function(a){return a.title};e.prototype.yT=function(a){return a.Fi};return e});g(29,0,function(){function e(d){b.ua(this)&&a.prototype.constructor.call(this,d)}var b=
h(8),a=h(28);b.P(a,e);e.prototype.Oh=function(){return a.prototype.Oh.call(this)};e.prototype.Sn=function(b){var d=a.prototype.Sn.call(this,b);if(b.kb){var e=b.yb[b.yb.length-1];e&&d.push({offset:[e.offset[0],-e.offset[1]],size:b.S.slice()})}return d};return e});g(30,0,function(){function e(d,e,f){b.ua(this)&&(a.prototype.constructor.call(this,f,d,e),this.padding=this.yf=0,this.bd=!1,this.Ye=0)}var b=h(8),a=h(25),d=h(29),f=h(10),c=h(23);b.P(a,e);e.prototype.Yw=function(a){this.pk=a};e.prototype.zT=
function(a){this.Cu=a};e.prototype.nx=function(a){return 1E-4>a.Te};e.prototype.eo=function(a){if(this.nx(a))this.iP();else{this.YA();if(this.pk){var b=this.pk.Nu(a);this.caption!==b&&(this.sc(),this.caption=b);this.caption.cx(a.Te);b=this.caption.S;this.bl(b[0],b[1]);this.padding!==a.padding&&(this.padding=a.padding,this.sc())}this.Cu&&(b=this.Cu.Nu(a),this.Zc!==b&&(this.Zc=b),this.Zc.cx(a.wp),b=this.Zc.S,b[0]=Math.max(b[0],this.caption.S[0]),b[1]=b[1]+this.caption.S[1]+this.Zc.ph,this.bl(b[0],b[1]));
this.yf!==a.yf&&(this.yf=a.yf,this.sc());this.bd!==a.bd&&(this.bd=a.bd,this.sc());this.Ye!==a.Ye&&(this.Ye=a.Ye,this.sc())}};e.prototype.Un=function(b){var d=this.kb;a.prototype.Un.apply(this,arguments);this.kb=this.kb&&0!==this.S[0]&&0!==this.S[1];d!==this.kb&&this.sc()};e.prototype.yC=function(a){this.Bf.forEach(function(b){b=b.Tk;var d=b.indexOf(a);-1!==d&&(b.splice(d,1),b.unshift(a))})};e.prototype.gf=function(b){if(!this.pk)return a.prototype.gf.apply(this,arguments);b.caption=this.caption;this.Zc&&
(b.Zc=this.Zc);return a.prototype.gf.apply(this,arguments)};e.prototype.Wn=function(b){return a.prototype.Wn.apply(this,arguments)||b.caption!==this.Ce.caption};e.prototype.Gp=function(b){if(this.pk){var d=a.prototype.Gp.apply(this,arguments),e=b.caption;e.rq(b.Qb,this.S[0],e.ik);d.caption=e;if(this.Cu){var f=b.Zc;f.rq(b.Qb,this.S[0],e.ik);d.Zc=f}return d}};e.prototype.bo=function(b,d){b.caption.rq(d.Qb,this.S[0],b.caption.ik);b.Zc&&b.Zc.rq(d.Qb,this.S[0],b.caption.ik);a.prototype.bo.apply(this,arguments)};
e.prototype.cf=function(b){b=b||{};b.padding=this.padding;b.yf=this.yf;b.bd=this.bd;b.Ye=this.Ye;return a.prototype.cf.call(this,b)};e.prototype.ff=function(b){this.padding=b.padding;this.yf=b.yf;this.bd=b.bd;this.Ye=b.Ye;a.prototype.ff.apply(this,arguments)};e.create=function(a){var b=a.Jb;b={$c:a.Pd,oa:c.oa(b.x,b.y,b.z,b.offset).rb()};b=new e(b,a.id,f.B);b.Ep();a=a.bw;for(var d=0,m=a.length;d<m;d++){var p=a[d];b.Oe(p.position,p.Tk)}return b};e.prototype.ze=function(){return a.prototype.ze.apply(this,
arguments)};e.prototype.oB=function(){return new d(this)};return e});g(31,0,function(){function e(b,d){var e=a.l.clone(b.Db),m=a.l.clone(b.Lb),p=a.l.clone(b.we);b=a.l.clone(b.Ud);a.l.scale(e,e,d);a.l.scale(m,m,d);a.l.scale(p,p,d);a.l.scale(b,b,d);return a.l.vd(e,m)&&a.l.vd(m,p)&&a.l.vd(p,b)?null:a.l.vd(e,m)&&a.l.vd(p,b)?new c(e,p):new f(e,m,p,b)}function b(b,d,f,c){p.prototype.constructor.call(this,l.hs,b,c);this.WJ=d;c=Object.keys(d).map(function(a){return parseInt(a)});b=Math.min.apply(null,c);
c=Math.max.apply(null,c);this.vA=Array(c-b+1);for(var m=null,g=b;g<=c;g++){var h=d[g];if(h){if(h=e(h,f))h.Qb=g;m=h||m}this.vA[g-b]=m}this.ad=b;this.bg=c;this.mf=0;this.S=a.l.create();this.Hz=null}var a=h(3),d=h(8),f=h(2),c=h(26),p=h(24),g=h(30),n=h(7),l=h(10),k=h(0),v=h(23);d.P(p,b);b.prototype.Yw=function(a){this.pk=a};b.prototype.hz=function(b){return this.vA[a.qk(Math.floor(b),this.ad,this.bg)-this.ad]};b.prototype.Ti=function(){g.prototype.Ti.apply(this,arguments)};b.prototype.sB=function(b,d,
e,f){if(e-1>this.bg)return[];var c=a.U.multiply(a.U.create(),b,this.element.oa.Ub);b=Math.floor(e);e=this.hz(b);if(!e)return[];d=e.ac(c,d);f=e.scale(f);0>d.direction()[0]&&d.EB();this.Hz===e?(f=this.gI,f.sx=d):this.gI=f={zoom:b,Qb:e.Qb,t:0,sx:d,a2:f};this.Hz=e;return[f]};b.prototype.eo=function(a){var b=this.pk.Nu(a);this.caption!==b&&(this.sc(),this.caption=b);this.caption.cx(a.Te);b=this.caption.S;if(b[0]!==this.S[0]||b[1]!==this.S[1])this.S[0]=this.caption.S[0],this.S[1]=this.caption.S[1],this.sc();
this.padding!==a.padding&&(this.padding=a.padding,this.sc())};var q=.5*Math.sqrt(2);b.prototype.Wm=function(a){var b=a.sx;if(b.length(1)<this.S[0])return[];var d=.5*(this.S[1]+this.padding);a=b.length(a.t)+q*d;for(var e=d*Math.SQRT2,f=this.S[0]/e,c=[],m=0;m<f;m++){var p=b.zw(a,this.S[0],k.Ju).position;a+=e;p=new n.Vx(p,d);c.push(p)}return c};b.prototype.gf=function(a){a.caption=this.caption;return p.prototype.gf.apply(this,arguments)};b.prototype.Wn=function(a){return p.prototype.Wn.apply(this,arguments)||
a.caption!==this.Ce.caption};b.prototype.Gp=function(b){var d=this.hz(this.mf);if(!d)return null;var e=b.caption;e.NB();return{curve:d,offset:a.l.u(0,0),t:b.t,caption:e}};b.prototype.bo=function(a){a.caption.NB()};b.prototype.ze=function(a){a=a||{};a.OV=this.WJ;return p.prototype.ze.call(this,a)};b.prototype.ml=function(a){this.mf=Math.floor(a);p.prototype.ml.call(this,arguments)};b.create=function(a,d,e){var f=a.Jb;d=a.OV;f={$c:a.Pd,oa:v.oa(f.x,f.y,f.z,f.offset).rb()};a=new b(f,d,e,a.id);a.Ep();
return a};b.prototype.cf=function(a){a=a||{};a.S=this.S;a.padding=this.padding;return p.prototype.cf.call(this,a)};b.prototype.ff=function(a){this.S[0]=a.S[0];this.S[1]=a.S[1];this.padding=a.padding;p.prototype.ff.apply(this,arguments)};b.prototype.Vw=function(a){return a.sx.zw(.5*this.S[0],this.S[0],k.Ju).position};b.prototype.hx=function(b){this.bk=a.l.u(this.ad,this.bg);for(var d in this.element.$c)if(b[this.element.$c[d]].kb){var e=parseInt(d);this.bk[0]>e&&(this.bk[0]=e);this.bk[1]<e&&(this.bk[1]=
e)}};b.prototype.Vp=function(a){return{Od:a.Od,visible:a.visible,kb:!0,ad:Math.max(this.bk[0],a.Nh),bg:this.bk[1],oe:a.oe,Hh:a.Hh,ul:a.ul}};return b});g(32,0,function(){function e(b){a.ua(this)&&(d.prototype.constructor.call(this,b),this.Bx=this.eJ(b),this.Af=this.ZI(b),this.qO=this.XI(b),this.ww=this.$I(b))}function b(a){if(a[0]||a[1]||a[2]||a[3])return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]/255+")"}var a=h(8),d=h(29),f=h(4).global;a.P(d,e);e.prototype.Oh=function(){var a=d.prototype.Oh.call(this);
a.styleAttributes=this.Bx;this.Af&&(a.metadata=this.Af);this.ww&&(a.poiType=this.ww);a.calloutGlyphImageUrlTemplate=this.qO;return a};e.prototype.Sn=function(a){var b=d.prototype.Sn.call(this,a);if(!a.element.La)return b;var e=a.element.La.ue();if(0===e[0]&&0===e[1])return b;b.unshift({offset:a.element.La.vT.slice(),size:e.slice()});return b};e.prototype.eJ=function(a){return a.element.La&&a.element.La.icon?a.element.La.icon.attributes:""};e.prototype.ZI=function(a){if(a.element.La&&a.element.La.icon&&
(a=a.element.La.icon.Af))return{badgeColor:b(a.jk),calloutColor:b(a.mk),calloutHaloColor:b(a.nk),haloColor:b(a.Gk),calloutShape:a.Mu===f.gs?"Circle":"Square"}};e.prototype.XI=function(a){return this.Bx?"/md/v1/icon?subtype=poi&context=callout&tint={{tint}}&emphasis=standard&attributes={{attributes}}&v={{tileGroup}}&style={{style}}&accessKey={{accessKey}}&scale={{scale}}&size={{size}}&glyph=true".replace("{{style}}",a.element.La.style).replace("{{attributes}}",encodeURIComponent(this.Bx)).replace("{{tileGroup}}",
a.element.oa.tc):""};e.prototype.$I=function(a){if(a=a.element.CS)return a};return e});g(33,0,function(){function e(a,b,e){d.prototype.constructor.call(this,a,b,c.kd,e);this.Ut=!1;this.eb=[-1,-1];this.en=!1}var b=h(3),a=h(8),d=h(30),f=h(32),c=h(10),p=h(7);h(5);var g=h(0),n=h(23),l=h(4).global;a.P(d,e);e.prototype.nx=function(){return this.Ut&&d.prototype.nx.apply(this,arguments)};e.prototype.cp=function(a){if(this.eb[0]!==a[0]||this.eb[1]!==a[1])this.eb[0]=a[0],this.eb[1]=a[1],this.Ut=0===this.eb[0]||
0===this.eb[1],this.gq(),this.show&&this.CD(this.Ce)};e.prototype.Pn=function(a){d.prototype.Pn.apply(this,arguments);var b=this.element.La;this.Va.th(b);this.vn||(this.vn=this.XO.bind(this),b.Da("icon-changed",this.vn));this.tn||(this.tn=this.cp.bind(this),b.Da("animation-size-update",this.tn))};e.prototype.nA=function(){this.cp(this.element.La.ue())};e.prototype.Ti=function(){this.nA();d.prototype.Ti.apply(this,arguments)};e.prototype.ml=function(){this.nA();d.prototype.ml.apply(this,arguments)};
e.prototype.Oe=function(a,b){b=b||[l.li,l.Dj,l.Bj,l.Cj];d.prototype.Oe.call(this,a,b)};e.prototype.Hv=function(){return this.Ut};e.prototype.CO=function(a){for(var b=Array(this.Bf.length),d=0,e=0,f=this.Bf.length;e<f;e++)for(var c=this.Bf[e],m=this.jB(c.position,[l.Vg],a),p=0,g=m.length;p<g;p++){var h=m[p];h.nC=c;b[d++]=h}return b};e.prototype.PC=function(a){var d=this.caption?this.caption.lineHeight:0,e=b.l.create();switch(a){case l.Bl:e[0]=.3535535*-this.eb[0];e[1]=.3535535*this.eb[1]-.25*d;break;
case l.Cl:e[0]=.3535535*this.eb[0];e[1]=.3535535*this.eb[1]-.25*d;break;case l.zl:e[0]=.3535535*this.eb[0];e[1]=.3535535*-this.eb[1]+.25*d;break;case l.yl:e[0]=.3535535*-this.eb[0];e[1]=.3535535*-this.eb[1]+.25*d;break;case l.li:e[1]=.5*-this.eb[1]-.25*d;break;case l.Cj:e[0]=.5*this.eb[0]+.125*d;break;case l.Bj:e[0]=.5*-this.eb[0]-.125*d;break;case l.Dj:e[1]=.5*this.eb[1]+.25*d;break;case l.Al:console.assert(!1)}return e};e.prototype.Wm=function(a,b){var e=b.kb?d.prototype.Wm.apply(this,arguments):
[];var f=new p.Yr(a.gg[0]-.5*this.eb[0],a.gg[1]-.5*this.eb[1],this.eb[0],this.eb[1]);e.push(f);return e};e.prototype.Vp=function(a){var b=d.prototype.Vp.apply(this,arguments);b.kb=a.kb;return b};e.prototype.gf=function(a){d.prototype.gf.apply(this,arguments);var b=this.element.La;b&&b.gf(a)};e.prototype.dr=function(){d.prototype.dr.apply(this,arguments);var a=this.element.La;a&&(this.Va.show(a,0),this.en=!0)};e.prototype.cr=function(a){d.prototype.cr.apply(this,arguments);var b=this.element.La;b&&
(a.Hc&&b.icon&&a.Hc!==b.icon&&this.Va.co(b,g.hn,a.Hc),this.Va.show(b,g.hn),this.en=!0)};e.prototype.XO=function(a){var b=this.element.La;this.en||this.Va.co(b,0);this.Va.co(b,g.hn,a)};e.prototype.mz=function(a){var b=this.element.La;if(b){var d=this;this.Va.xf(b,a).then(function(){d.Va.co(b,0);d.en=!1})}};e.prototype.Si=function(){d.prototype.Si.apply(this,arguments);this.mz(g.nq)};e.prototype.aq=function(){d.prototype.aq.apply(this,arguments);this.mz(0)};e.prototype.Pa=function(){var a=this.element.La;
a&&(this.vn&&(a.va("icon-changed",this.vn),delete this.vn),this.tn&&(a.va("animation-size-update",this.tn),delete this.tn),this.Va&&this.Va.co(a,0));d.prototype.Pa.apply(this,arguments)};e.prototype.ze=function(a){a=a||{};a.ue=this.eb;return d.prototype.ze.call(this,a)};e.create=function(a){var b=a.Jb;b={$c:a.Pd,oa:n.oa(b.x,b.y,b.z,b.offset).rb()};b=new e(b,a.id);b.Ep();for(var d=a.bw,f=0,c=d.length;f<c;f++){var m=d[f];b.Oe(m.position,m.Tk)}b.cp(a.ue);return b};e.prototype.cf=function(a){a=a||{};
a.ue=this.eb;return d.prototype.cf.call(this,a)};e.prototype.ff=function(a){this.cp(a.ue);d.prototype.ff.apply(this,arguments)};e.prototype.oB=function(){return new f(this)};return e});g(34,0,function(){function e(b){a.prototype.constructor.call(this,d.Zr,b,c.Pb());this.Dy=0}var b=h(8),a=h(25),d=h(10),f=h(4).global,c=h(5),p=h(0),g=h(7);b.P(a,e);e.prototype.Oe=function(b){a.prototype.Oe.call(this,b,[f.Vg])};e.prototype.Ti=function(){var b=this.element.La.ue();this.Dy=b[0]/b[1];this.eo(this.element.jb);
a.prototype.Ti.apply(this,arguments)};e.prototype.ue=function(){return this.S};e.prototype.eo=function(a){this.bl(a.height*this.Dy,a.height)};e.prototype.Pn=function(b){a.prototype.Pn.apply(this,arguments);this.Va.th(this.element.La)};e.prototype.gf=function(){};e.prototype.cr=function(){this.Va.show(this.element.La,p.hn)};e.prototype.dr=function(){};e.prototype.oz=function(a){this.Va.xf(this.element.La,a)};e.prototype.Si=function(){this.oz(p.nq)};e.prototype.aq=function(){this.oz(0)};e.prototype.ze=
function(){var b={};b.S=this.S;return a.prototype.ze.call(this,b)};e.create=function(b){var d=a.create.apply(this,arguments);d.bl(b.S[0],b.S[1]);d.Wm=function(a){return[new g.Vx([a.gg[0],a.gg[1]],this.S[0])]};return d};return e});g(35,0,function(){function e(){this.Ig={};this.Ig[g.B]=c.create;this.Ig[g.xs]=a.create;this.Ig[g.Zr]=p.create;this.Ig[g.kd]=f.create;this.Ig[g.hs]=d.create;this.Ig[g.Yx]=a.create;this.labels={};this.Cd=[0,0]}var b=h(18),a=h(25),d=h(31),f=h(33),c=h(30),p=h(34),g=h(10),n=h(12),
l=h(3);e.prototype.Cb=function(a,d,e){this.tf=new b(a,d,e);this.uc=d;this.Eb=1/d};e.prototype.fg=function(a){this.tf.fg(a)};e.prototype.fj=function(a){this.tf.fj(a)};e.prototype.gj=function(a){for(var b=0,d=a.length;b<d;b++){var e=a[b],f=this.Ig[e.type](e,e.type,this.Eb);f.Fa=e.Fa;f.Wd=e.Wd;f.Yb=e.Yb;f.yh=e.yh;this.labels[f.id]=f;this.tf.YS(f)}};e.prototype.$h=function(a){for(var b=0,d=a.length;b<d;b++){var e=a[b],f=this.labels[e];delete this.labels[e];this.tf.zV(f);f.Pa()}};e.prototype.St=function(a){var b=
this.tf.$m,d=this.tf.Xn,e=this.tf.Jm;a.forEach(function(a){[b,d,e].forEach(function(b){b[a.id]&&b[a.id].ff(a)})})};e.prototype.IJ=function(a,b,d,e,f,c){b=l.U.clone(b);d=l.l.clone(d);if(d[0]!==this.Cd[0]||d[1]!==this.Cd[1])this.Cd=d,this.tf.resize(d);var m;var p=0;for(m=a.length;p<m;p++){var g=a[p];var h=this.labels[g.id];h.qh=g.qh;h.qh||h.ff(g)}this.tf.update(d,b,e,f,c);a=[];for(p in this.labels)h=this.labels[p],h.jR()&&(b={id:p,show:h.show},h.show&&(b.kb=h.kb,d=h.pl,b.position={Qb:d.Qb},d.origin&&
(b.position.origin=d.origin)),h.jj&&(b.jj=h.jj),h.zk&&(b.zk=!0),h.mS(),a.push(b));return a};e.prototype.update=function(a,b,d,e,f,c,m){this.St(b,d);return this.IJ(a,d,e,f,c,m)};e.prototype.Jw=function(a){for(var b=0,d=a.length;b<d;b++){var e=n.create(a[b]);this.tf.eg(e)}};e.prototype.Fx=function(a){for(var b=0,d=a.length;b<d;b++)this.tf.mg(a[b])};var k={};e.Cb=function(a,b,d,f){var c=new e;k[a]=c;c.Cb(b,d,f)};e.fg=function(a,b){k[a].fg(b)};e.gj=function(a,b){k[a].gj(b)};e.$h=function(a,b){k[a].$h(b)};
e.fj=function(a,b){k[a].fj(b)};e.Jw=function(a,b){k[a].Jw(b)};e.Fx=function(a,b){k[a].Fx(b)};e.update=function(a,b,d,e,f,c,m,p){return k[a].update(b,d,e,f,c,m,p)};return e});g(36,0,function(){return"1.32.0"});g(37,0,function(){return function(){var e={us:2,pi:4,no:4,VD:{UE:1,yW:2}};e.Bh=new Int32Array(2);e.dB=new Float32Array(e.Bh.buffer);e.eB=new Float64Array(e.Bh.buffer);e.iq=1===(new Uint16Array((new Uint8Array([1,0])).buffer))[0];e.mc=function(b,a){this.low=b|0;this.high=a|0};e.mc.create=function(b,
a){return 0==b&&0==a?e.mc.ZERO:new e.mc(b,a)};e.mc.prototype.kl=function(){return this.low+4294967296*this.high};e.mc.prototype.uf=function(b){return this.low==b.low&&this.high==b.high};e.mc.ZERO=new e.mc(0,0);e.Na=function(b){b||(b=1024);this.b=e.Sa.AA(b);this.$b=b;this.Cq=1;this.xj=null;this.Hx=0;this.kq=!1;this.iC=0;this.Qr=[];this.GD=0;this.Dk=!1};e.Na.prototype.Nm=function(){return this.b};e.Na.prototype.Aa=function(b,a){b>this.Cq&&(this.Cq=b);for(var d=~(this.b.ob.length-this.$b+a)+1&b-1;this.$b<
d+b+a;){var f=this.b.ob.length;this.b=e.Na.iR(this.b);this.$b+=this.b.ob.length-f}this.Rk(d)};e.Na.prototype.Rk=function(b){for(var a=0;a<b;a++)this.b.Gb(--this.$b,0)};e.Na.prototype.Gb=function(b){this.b.Gb(--this.$b,b)};e.Na.prototype.wc=function(b){this.b.wc(this.$b-=2,b)};e.Na.prototype.Ed=function(b){this.b.Ed(this.$b-=4,b)};e.Na.prototype.vl=function(b){this.b.vl(this.$b-=8,b)};e.Na.prototype.bc=function(b){this.b.bc(this.$b-=4,b)};e.Na.prototype.ae=function(b){this.b.ae(this.$b-=8,b)};e.Na.prototype.Oa=
function(b){this.Aa(1,0);this.Gb(b)};e.Na.prototype.mh=function(b){this.Aa(2,0);this.wc(b)};e.Na.prototype.yA=function(b){this.Aa(4,0);this.Ed(b)};e.Na.prototype.qp=function(b){this.Aa(8,0);this.vl(b)};e.Na.prototype.YK=function(b){this.Aa(4,0);this.bc(b)};e.Na.prototype.X=function(b,a,d){if(this.Dk||a!=d)this.Oa(a),this.slot(b)};e.Na.prototype.je=function(b,a,d){if(this.Dk||a!=d)this.mh(a),this.slot(b)};e.Na.prototype.fc=function(b,a){if(this.Dk||0!=a)this.yA(a),this.slot(b)};e.Na.prototype.Ua=function(b,
a,d){if(this.Dk||!a.uf(d))this.qp(a),this.slot(b)};e.Na.prototype.ta=function(b,a,d){if(this.Dk||a!=d)this.YK(a),this.slot(b)};e.Na.prototype.s=function(b,a){if(this.Dk||0!=a)this.ga(a),this.slot(b)};e.Na.prototype.td=function(b,a){0!=a&&(this.hS(a),this.slot(b))};e.Na.prototype.hS=function(b){if(b!=this.offset())throw Error("FlatBuffers: struct must be serialized inline.");};e.Na.prototype.hC=function(){if(this.kq)throw Error("FlatBuffers: object serialization must not be nested.");};e.Na.prototype.slot=
function(b){this.xj[b]=this.offset()};e.Na.prototype.offset=function(){return this.b.ob.length-this.$b};e.Na.iR=function(b){var a=b.ob.length;if(a&3221225472)throw Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var d=a<<1,f=e.Sa.AA(d);f.setPosition(d-a);f.ob.set(b.ob,d-a);return f};e.Na.prototype.ga=function(b){this.Aa(e.pi,0);this.Ed(this.offset()-b+e.pi)};e.Na.prototype.aa=function(b){this.hC();null==this.xj&&(this.xj=[]);this.Hx=b;for(var a=0;a<b;a++)this.xj[a]=0;this.kq=!0;this.iC=
this.offset()};e.Na.prototype.$=function(){if(null==this.xj||!this.kq)throw Error("FlatBuffers: endObject called without startObject");this.yA(0);for(var b=this.offset(),a=this.Hx-1;0<=a;a--)this.mh(0!=this.xj[a]?b-this.xj[a]:0);this.mh(b-this.iC);this.mh((this.Hx+2)*e.us);var d=0;a=0;a:for(;a<this.Qr.length;a++){var f=this.b.ob.length-this.Qr[a],c=this.$b,p=this.b.Ng(f);if(p==this.b.Ng(c)){for(var g=e.us;g<p;g+=e.us)if(this.b.Ng(f+g)!=this.b.Ng(c+g))continue a;d=this.Qr[a];break}}d?(this.$b=this.b.ob.length-
b,this.b.Ed(this.$b,d-b)):(this.Qr.push(this.offset()),this.b.Ed(this.b.ob.length-b,this.offset()-b));this.kq=!1;return b};e.Na.prototype.finish=function(b,a){if(a){this.Aa(this.Cq,e.pi+e.no);if(a.length!=e.no)throw Error("FlatBuffers: file identifier must be length "+e.no);for(var d=e.no-1;0<=d;d--)this.Gb(a.charCodeAt(d))}this.Aa(this.Cq,e.pi);this.ga(b);this.b.setPosition(this.$b)};e.Na.prototype.af=function(b,a){b=this.b.ob.length-b;if(0==this.b.Ng(b-this.b.N(b)+a))throw Error("FlatBuffers: field "+
a+" must be set");};e.Na.prototype.j=function(b,a,d){this.hC();this.GD=a;this.Aa(e.pi,b*a);this.Aa(d,b*a)};e.Na.prototype.I=function(){this.Ed(this.GD);return this.offset()};e.Na.prototype.Z=function(b,a){return e.mc.create(b,a)};e.Sa=function(b){this.ob=b;this.uC=0};e.Sa.AA=function(b){return new e.Sa(new Uint8Array(b))};e.Sa.prototype.position=function(){return this.uC};e.Sa.prototype.setPosition=function(b){this.uC=b};e.Sa.prototype.Kc=function(b){return this.D(b)<<24>>24};e.Sa.prototype.D=function(b){return this.ob[b]};
e.Sa.prototype.Ng=function(b){return this.jc(b)<<16>>16};e.Sa.prototype.jc=function(b){return this.ob[b]|this.ob[b+1]<<8};e.Sa.prototype.N=function(b){return this.ob[b]|this.ob[b+1]<<8|this.ob[b+2]<<16|this.ob[b+3]<<24};e.Sa.prototype.Mb=function(b){return this.N(b)>>>0};e.Sa.prototype.Ze=function(b){return new e.mc(this.N(b),this.N(b+4))};e.Sa.prototype.cd=function(b){return new e.mc(this.Mb(b),this.Mb(b+4))};e.Sa.prototype.ja=function(b){e.Bh[0]=this.N(b);return e.dB[0]};e.Sa.prototype.In=function(b){e.Bh[e.iq?
0:1]=this.N(b);e.Bh[e.iq?1:0]=this.N(b+4);return e.eB[0]};e.Sa.prototype.Gb=function(b,a){this.ob[b]=a};e.Sa.prototype.wc=function(b,a){this.ob[b]=a;this.ob[b+1]=a>>8};e.Sa.prototype.Ed=function(b,a){this.ob[b]=a;this.ob[b+1]=a>>8;this.ob[b+2]=a>>16;this.ob[b+3]=a>>24};e.Sa.prototype.vl=function(b,a){this.Ed(b,a.low);this.Ed(b+4,a.high)};e.Sa.prototype.bc=function(b,a){e.dB[0]=a;this.Ed(b,e.Bh[0])};e.Sa.prototype.ae=function(b,a){e.eB[0]=a;this.Ed(b,e.Bh[e.iq?0:1]);this.Ed(b+4,e.Bh[e.iq?1:0])};e.Sa.prototype.f=
function(b,a){b-=this.N(b);return a<this.Ng(b)?this.Ng(b+a):0};e.Sa.prototype.bF=function(b,a){b.c=a+this.N(a);b.b=this;return b};e.Sa.prototype.ee=function(b,a){b+=this.N(b);var d=this.N(b),f="",c=0;b+=e.pi;if(a===e.VD.UE)return this.ob.subarray(b,b+d);for(;c<d;){a=this.D(b+c++);if(!(192>a)){var p=this.D(b+c++);if(224>a)a=(a&31)<<6|p&63;else{var g=this.D(b+c++);if(240>a)a=(a&15)<<12|(p&63)<<6|g&63;else{var h=this.D(b+c++);a=(a&7)<<18|(p&63)<<12|(g&63)<<6|h&63}}}65536>a?f+=String.fromCharCode(a):
(a-=65536,f+=String.fromCharCode((a>>10)+55296,(a&1023)+56320))}return f};e.Sa.prototype.wa=function(b){return b+this.N(b)};e.Sa.prototype.L=function(b){return b+this.N(b)+e.pi};e.Sa.prototype.pa=function(b){return this.N(b+this.N(b))};e.Sa.prototype.Z=function(b,a){return e.mc.create(b,a)};return e}.call({})});g(38,0,function(){function e(){var a,b,d=Array(256),e=Array(256);for(a=b=0;1>=b;a++,b+=1/255){var f=Math.pow(b,2.4);d[a]=Math.round(153*b+102*f);e[a]=Math.round(84*b+171*f)}this.KF=d;this.CH=
e}var b=h(27),a=h(36),d=h(37),f=h(3),c=h(0),p=h(5),g=h(13),n=d.mc.prototype,l=d.mc.create,k=d.mc.ZERO;d.mc=function(a,b){this.low=a;this.high=b};d.mc.prototype=n;d.mc.create=l;d.mc.ZERO=k;d.Sa.prototype.Ze=d.Sa.prototype.cd;d.mc.prototype.Dm=function(a){return 0===this.high&&0===this.low?"0":this.high+":"+this.low+":"+a};e.prototype.hG=function(a,b){a=a.Ek();b.Ek={Jq:0};a&&(b.Ek.Jq=a.Jq())};e.prototype.aG=function(a,b){var d=a.lO(),e=[],f;for(f=0;f<d;f++){var c=a.le(f).av();e.push(c)}c=a.iV();d=[];
for(f=0;f<c;f++){var m=a.kc(f);m={width:m.width(),height:m.height(),data:m.data().av(),format:m.format()};d.push(m)}m=a.aP();c=[];for(f=0;f<m;f++){var p=a.Ki(f).av();c.push(p)}a={};a.le=e;a.kc=d;a.Ki=c;b.bf=a};e.prototype.dG=function(a,b){var d=p.Be(a.key());b.Qp=a.Qp();b.lr=a.lr();b.fillColor=[a.fillColor(0),a.fillColor(1),a.fillColor(2),this.Vl[a.fillColor(3)]];b.bB=b.fillColor;b.strokeColor=[a.strokeColor(0),a.strokeColor(1),a.strokeColor(2),this.Vl[a.strokeColor(3)]];b.Ha=a.Ha();b.width=a.width();
b.Qv=a.Qv();b.Wq=a.Wq();b.lq=a.lq();b.mq=a.mq();b.jl=a.jl().kl();b.Pi=a.Pi().kl();return d};e.prototype.iG=function(a,b){var d=p.Be(a.key());b.Te=a.Te();b.Zm=a.Zm();b.Tg=[a.Tg(0),a.Tg(1),a.Tg(2),a.Tg(3)];b.Xh=[a.Xh(0),a.Xh(1),a.Xh(2),a.Xh(3)];b.padding=a.padding();b.yf=a.padding();b.bd=a.bd();b.Ye=a.Ye();b.Ni=a.Ni();b.fo=a.fo();b.fo&&(b.uj=[a.uj(0),a.uj(1),a.uj(2),a.uj(3)],b.wp=a.wp(),b.ph=a.ph());return d};e.prototype.LF=function(a,b){var d=p.Be(a.key());b.zIndex=a.zIndex();b.visible=a.visible();
b.mx=a.mx();b.Ha=a.Ha();b.strokeColor=[a.strokeColor(0),a.strokeColor(1),a.strokeColor(2),a.strokeColor(3)];b.Ax=a.Ax();b.hl=[a.hl(0),a.hl(1),a.hl(2),a.hl(3)];b.Bk=[a.Bk(0),a.Bk(1),a.Bk(2),a.Bk(3)];b.Qi=[a.Qi(0),a.Qi(1),a.Qi(2),a.Qi(3)];b.ll=[a.ll(0),a.ll(1),a.ll(2),a.ll(3)];return d};e.prototype.ZF=function(a,b){var d=p.Be(a.key());b.zIndex=a.zIndex();b.fillColor=[a.fillColor(0),a.fillColor(1),a.fillColor(2),this.Vl[a.fillColor(3)]];b.strokeColor=[a.strokeColor(0),a.strokeColor(1),a.strokeColor(2),
this.Vl[a.strokeColor(3)]];b.visible=a.visible();b.Ha=a.Ha();b.Qb=a.Qb();b.Wh=a.Wh();b.jr=a.jr();b.kr=a.kr();b.tj=[a.tj(0),a.tj(1),a.tj(2),this.Vl[a.tj(3)]];b.xx=a.xx();b.yx=a.yx();return d};e.prototype.MF=function(a,b){var d=p.Be(a.key());b.color=[a.color(0),a.color(1),a.color(2),a.color(3)];b.jx=a.jx();b.kx=a.kx();b.Lv=a.Lv();b.Kv=a.Kv();b.sw=a.sw();b.rw=a.rw();return d};e.prototype.XF=function(a,b){var d=p.Be(a.key());b.bn=a.bn();b.bq=a.bq();return d};e.prototype.gG=function(a,d){for(var e=a.Sg(),
f={},c=0;c<e;c++){var m=a.Ma(c),p={};switch(m.dV()){case b.dh.ea:var g=new b.ea;m=this.dG(m.style(g),p);break;case b.dh.Y:g=new b.Y;m=this.iG(m.style(g),p);break;case b.dh.da:g=new b.da;m=this.LF(m.style(g),p);break;case b.dh.ba:g=new b.ba;m=this.ZF(m.style(g),p);break;case b.dh.Ea:g=new b.Ea;m=this.MF(m.style(g),p);break;case b.dh.lb:g=new b.lb;m=this.XF(m.style(g),p);break;default:continue}f[m]=p}d.Ma=f};e.prototype.OF=function(a,b){for(var d=a.zO(),e={},f=0;f<d;f++){var c=a.Pd(f),m=p.Be(c.key());
c={Od:c.Od(),Vn:c.Vn(),Nh:c.Nh(),oe:c.oe(),Dp:c.Dp(),qq:c.qq(),Yq:c.Yq(),visible:c.visible(),kb:c.kb(),Hh:c.Hh(),ul:c.ul()};e[m]=c}b.Pd=e};e.prototype.eG=function(a,b){for(var d=a.oT(),e=Array(d),f=0;f<d;f++){var c=a.Yk(f),m={vc:c.vc(),offset:c.offset().kl(),io:c.io(),count:c.count()},p={};this.Ql(c,p);m.Ma=p;e[f]=m}b.Yk=e};e.prototype.$F=function(a,b){for(var d=a.JS(),e=Array(d),f=0;f<d;f++){var c=a.Uk(f),m={};m.vc=c.vc();m.eq=c.eq();m.zx=c.zx();m.il=c.il();m.rv=c.rv();m.ov=c.ov();var p={};this.Ql(c,
p);m.Ma=p;e[f]=m}b.Uk=e};e.prototype.NF=function(a,b){for(var d=a.wO(),e=Array(d),f=0;f<d;f++){var c=a.Cp(f),m={};m.offset=c.offset();m.count=c.count();m.vc=c.vc();var p={};this.Ql(c,p);m.Ma=p;e[f]=m}b.Cp=e};e.prototype.fG=function(a,b){for(var d=a.PT(),e=Array(d),c=0;c<d;c++){for(var m=a.pj(c),g={id:m.id().kl(),text:m.text(),Tu:p.Be(m.Tu()),Fa:m.Fa(),variant:m.variant()},h=m.Ew(),t=Array(h),n=0;n<h;n++){var l=m.Kh(n);l=f.l.u(l.x(),l.y());t[n]=l}g.Kh=t;e[c]=g}b.pj=e};e.prototype.VF=function(a,b){b.pC=
a.pC();b.orientation=a.orientation();b.position=a.position();b.ED=a.ED();b.sC=a.sC();b.wB=a.wB();a=a.OB();b.OB=f.l.u(a.x(),a.y())};e.cz=function(a){return a.Yb()};e.Yb=e.cz;e.AG=function(a){return a.Wd()};e.kP=function(){e.Yb=e.AG};e.jP=function(){e.Yb=e.cz};e.prototype.Sy=function(a,b,d){var e={},f;for(f=0;f<b;f++){var c=d?a.hk(f):a.Ji(f),m=c.zoom();c=c.caption();var p={};p.ne=c.ne();p.re=c.re();p.offset=c.offset();p.lineHeight=c.lineHeight();p.YB=c.YB();for(var g=c.NR(),h=Array(g),t=0;t<g;t++){var n=
c.lines(t);n={Fg:n.Fg(),lineWidth:n.lineWidth()};h[t]=n}p.lines=h;e[m]=p}return e};e.prototype.jG=function(a,b,d){var c=a.hV(),m=[];d=d.z;for(var g=0;g<c;g++){var h=a.kg(g),t={};var n=h.GV();t.Ji=this.Sy(h,h.sO(),!1);0<h.CA()&&(t.hk=this.Sy(h,h.CA(),!0));t.Wd=p.Be(h.Wd());var l=e.Yb(h);t.Yb=p.Be(l);t.lk=p.Be(h.lk());t.Fa=h.Fa();t.Hm=h.Hm();t.title=h.text();t.Fi=h.Fi();if(n){var k=h.uS(),q={};for(n=0;n<k;n++){var r=h.Sk(n);l=r.zoom();for(var w=r.gO(),v=Array(w),y=0;y<w;y++){var C=r.fO(y),I=C.Db(),
J=C.Lb(),u=C.we();C=C.Ud();var O={};O.Db=f.l.u(I.x(),I.y());O.Lb=f.l.u(J.x(),J.y());O.we=f.l.u(u.x(),u.y());O.Ud=f.l.u(C.x(),C.y());v[y]=O}q[l]=v}t.Sk=q}else{l=h.Ew();k=Array(l);for(n=0;n<l;n++)q=h.Kh(n),k[n]=f.l.u(q.x(),q.y());t.Kh=k}n=h.Wv();l={};this.VF(n,l);t.Wv=l;n={};this.Ql(h,n);t.Ma=n;if(k=h.rR()){q={};for(n=0;n<k;n++)r=h.qb(n),l=r.zoom(),r=r.hash(),q[l]=r.Dm(d);t.qb=q}if(k=h.AB()){q={};for(n=0;n<k;n++)r=h.an(n),l=r.zoom(),r=r.hash(),q[l]=r.Dm(d);t.an=q}m.push(t)}b.kg=m};e.prototype.Ql=function(a,
b){for(var d=a.Sg(),e=0;e<d;e++){var f=a.Ma(e),c=p.Be(f.key());f=f.zoom();b[f]=c}};Object.freeze({Ik:{},Ma:[]});e.prototype.SF=function(a,b,d){a=a.qb();var e=a.uR(),f=a.Sg(),c=a.cS(),m=a.dS(),p=d.z;d={};var g;for(g=0;g<e;g++){var h=a.Ik(g),n=h.hash().Dm(p);h=h.index();d[n]=h}e={};for(g=0;g<c;g++)h=a.jw(g),n=h.hash().Dm(p),h=h.index(),e[n]=h;c=Array(f);for(g=0;g<f;g++){p=a.Ma(g);n=p.bO();h={};for(var t=0;t<n;t++){var l=p.attributes(t);h[l.key()]=l.value().kl()}c[g]={attributes:h}}f=Array(m);for(g=
0;g<m;g++)p=a.Af(g),f[g]={jk:[p.jk(0),p.jk(1),p.jk(2),p.jk(3)],mk:[p.mk(0),p.mk(1),p.mk(2),p.mk(3)],nk:[p.nk(0),p.nk(1),p.nk(2),p.nk(3)],Gk:[p.Gk(0),p.Gk(1),p.Gk(2),p.Gk(3)],Mu:p.Mu()};b.qb={Ik:d,jw:e,Ma:c,Af:f}};e.prototype.IH=function(a){if(0!==a.qb.Af.length){for(var b=Array(a.qb.Ma.length),d=Array(a.qb.Ma.length),e={},f=a.kg,c=f.length,m=0;m<c;m++){var p=f[m];if(p.qb){var g={},h;for(h in p.qb){var n=p.qb[h];if("0"===n)g[h]=n;else{var t=a.qb.Ik[n],l=a.qb.Ma[t];if(p.an){var k=p.an[h],q=a.qb.Af[a.qb.jw[k]];
n=n+":"+k;g[h]=n;e[n]||(e[n]=t,d[t]=l);b[t]||(b[t]=q)}else g[h]=n,e[n]||(e[n]=t,d[t]=l)}}p.qb=g}}a.qb.Af=b;a.qb.Ik=e;a.qb.Ma=d}};e.prototype.cG=function(a,b){for(var d=a.mT(),e=Array(d),m=b.Ma,p=0;p<d;p++){var g=a.Mn(p),h=g.position(),n=h.position(),t={};h={angle:h.angle(),position:f.l.u(n.x(),n.y()),Ma:t};var l=g.NV();n=0;for(var k=-1,q=0;q<l;q++){var r=g.MV(q);k=r>>10;n=0===q?k:n;r&=1023;var w=c.lT+r;w in m||(m[w]={height:r});t[k]=w}g=k;for(l=n;n<g;n++)n in t?l=n:t[n]=t[l];e[p]=h}b.Mn=e};e.prototype.QF=
function(a,b){for(var d=a.$O(),e=Array(d),f=0;f<d;f++){for(var c=a.Mm(f),m={length:c.length(),id:c.id().kl()},p=c.FQ(),g=Array(p),h=0;h<p;h++)g[h]=c.Bv(h);m.Bv=g;e[f]=m}b.Mm=e};e.prototype.WF=function(a,b,d){var e=a.BS(),f=Array(e);d=d.z;for(var c=0;c<e;c++){var m=a.An(c),p={};p.vc=m.vc();p.offset=m.offset();p.length=m.length();p.type=m.type();p.Jv=m.Jv().Dm(d);p.qb={};p.qb[d]=p.Jv;var g={};this.Ql(m,g);p.Ma=g;f[c]=p}b.An=f};e.prototype.Om=function(e,f,c){var m=this;return new g(function(g,h){var n=
{},t=b.H.aR(new d.Sa(e)),l=t.version();p.Gx(l,a)?(m.Vl="dark"===c?m.KF:m.CH,m.hG(t,n),m.aG(t.bf(),n),m.gG(t,n),m.OF(t,n),m.eG(t,n),m.$F(t,n),m.NF(t,n),m.fG(t,n),m.jG(t,n,f),m.SF(t,n,f),m.IH(n),m.cG(t,n),m.QF(t,n),m.WF(t,n,f),g(n)):h("Header generated with different Proto Definitions version! Client Version: '"+a+"', Remote Version: '"+l+"'")})};e.prototype.vF=function(b){this.nn=b.nn();return p.Gx(this.nn,a)};e.prototype.TF=function(a,b){a=a.oq();b.oq={Zx:a.Zx(),$x:a.$x(),ay:a.ay(),by:a.by()}};e.prototype.UF=
function(a,b){a=a.pq();b.pq={cy:a.cy(),li:a.li(),Vg:a.Vg(),Bj:a.Bj(),yl:a.yl(),zl:a.zl(),Al:a.Al(),Cj:a.Cj(),Dj:a.Dj(),Bl:a.Bl(),Cl:a.Cl()}};e.prototype.kG=function(a,b){a=a.Df();b.Df={qo:a.AE(),CE:a.BE(),sy:a.VE()}};e.prototype.bG=function(a,b){for(var d={},e=a.jT(),f=0;f<e;f++){var c=a.Pw(f),m=c.key();c=c.value();d[m]=c}b.Pw=d};e.prototype.Rl=function(a,b){for(var d=Array(b),e=0;e<b;e++)d[e]=a(e);return d};e.prototype.lG=function(a,b){var d=a.HS();b.Aw=this.Rl(a.Aw.bind(a),d);d=a.IS();b.Kq=this.Rl(a.Kq.bind(a),
d);d=a.nT();b.Xk=this.Rl(a.Xk.bind(a),d);d=a.FS();b.xw=this.Rl(a.xw.bind(a),d);d=a.oO();b.Ku=this.Rl(a.Ku.bind(a),d)};e.prototype.PF=function(a,b){var d={},e=a.BO();if(0===e)b.sk={"light-standard":{pe:[249,245,237,255],se:[249,245,237,255],te:[149,148,144,127],hc:[]},"light-muted":{pe:[249,245,237,255],se:[249,245,237,255],te:[149,148,144,127],hc:[]},"dark-standard":{pe:[43,45,47,255],se:[43,45,47,255],te:[56,64,68,102],hc:[]},"dark-muted":{pe:[43,45,47,255],se:[43,45,47,255],te:[56,64,68,102],hc:[]}};
else{for(var f=0;f<e;++f){var c=a.sk(f),m=c.name();d[m]={};d[m].pe=[c.pe(0),c.pe(1),c.pe(2),c.pe(3)];d[m].se=[c.se(0),c.se(1),c.se(2),c.se(3)];d[m].te=[c.te(0),c.te(1),c.te(2),c.te(3)];var p=c.IR();d[m].hc=[];for(var g=0;g<p;g++)d[m].hc.push({color:[c.hc(g).color(0),c.hc(g).color(1),c.hc(g).color(2),c.hc(g).color(3)],zoom:c.hc(g).zoom()});d[m].hc.sort(function(a,b){return a.zoom-b.zoom})}b.sk=d}};e.prototype.YF=function(a,b){var d={},e=[];if(a=a.DS())for(var f=a.AS(),c=0;c<f;++c){var m=a.zS(c),p=
m.key().replace(/^GEOPOICategory/,"");d[p]=[];for(var g=m.$N(),h=0;h<g;++h){var n=m.ZN(h);d[p][h]=n;e[n]=p}}b.yS=d;b.ES=e};e.prototype.RF=function(a,b){b.Oi={};(a=a.Oi())?(b.Oi.Dn=a.Dn(),b.Oi.Cn=a.Cn()):(b.Oi.Dn=0,b.Oi.Cn=0)};e.prototype.JG=function(a,b){b.Sh=a.Sh();b.ln=a.ln();b.Yi=a.Yi();b.kn=a.kn();b.Xi=a.Xi();b.Tc=a.Tc();b.Yf=a.Yf();b.uc=a.uc();b.Gw=a.Gw();b.$B=a.$B();b.Ok=a.Ok()};e.prototype.NA=function(e){var f=this;return new g(function(c,m){var p={},g=b.o.qB(new d.Sa(e));f.vF(g)?(f.TF(g,p),
f.UF(g,p),f.kG(g,p),f.lG(g,p),f.bG(g,p),f.PF(g,p),f.YF(g,p),f.RF(g,p),f.JG(g,p),c(p)):m("Header generated with different Proto Definitions version! Client Version: '"+a+"', Remote Version: '"+f.nn+"'")})};return e});g(39,0,function(){h(13);var e=h(38);return{BD:function(b){b=JSON.parse(b);var a=new e;b=Uint8Array.from(b);return a.NA(b)}}});g(43,0,function(e){var b={0:function(a){var b=a(42);a=a(43);h(11);(new b).OW(a,{qa:1})},1:function(a,b){a(17).context().update(b)},2:function(a,b){a(35).IZ(b)},
3:function(a,b,d,e){a=a(35);a.Cb(b,d,e);a.fg(b,!1)},4:function(a,b,d){a(35).fg(b,d)},5:function d(a,b,d,e,f,c,m,g,h){return a(35).update(b,d,e,f,c,m,g,h)},6:function(a,b,d,e,f,c,m){var p=a(35);a=a(22);p.fj(b,f);p.gj(b,d);p.$h(b,e);p.Jw(b,c);p.Fx(b,m);a.kv()}};h(35);var a=h(39),d=h(11),f=h(5),c={start:function(b,d){return a.BD(d).then(function(a){f.Zf(a.pq);f.Zf(a.oq)})},qa:function(a,d){d=f.Ef(d);d=[e].concat(d);var c=b[a];if(c)return c.apply(null,d);console.error("function with id "+a+" was not found")}};
d.ka(c);return c});g(44,0,function(){h(43);return function(){function e(b,a){var d=h(43);d.start(b,a).then(function(){self.onmessage=function(a){var b=a.data;a=b.Mk;b=d.qa(b.Up,b.Du);postMessage({type:"result",Mk:a,result:b})};h(11).forward(d,function(a,b){self.postMessage({type:"message",key:a,value:b})});postMessage({id:"initialized"})})}self.onmessage=function(b){b.data&&b.data.id?"init"===b.data.id&&e(b.data.EO,b.data.ca):console.error("Unrecognized messager")}}});q&&h(44)()}function X(){return 1}
function u(c,l,r){"function"===typeof l&&(r=l);try{var q=r(k)}catch(n){q="--eval-failed--",da[c]=n}aa[c]=q}function k(c){if("--eval-failed--"===aa[c])throw"module '"+c+"' failed to initialize: "+da[c]+"\n";return aa[c]}var aa={};var da={},ba=[];u(46,ba,X);u(47,ba,X);u(48,ba,X);ca(u,k,function(){});u(45,[],function(){return function(){return function(){var c={MADABA_VERSION:1,VERSION_POSTFIX:"",IS_WEB:!0,IS_NODE:!1,IS_SPILE:!1,MINIFY:"advanced",ENABLE_DEBUG:!1,ENABLE_DEBUG_DECORATIONS:!1,ENABLE_TEST:!1,
ALLOW_SUPERSAMPLING:!1,DEFAULT_MAX_RESOLUTION_FALLBACK:4096,ENABLE_FULLY_RENDERED_LOG:!0,ENABLE_STUB_HEADER_ADAPTER:!1,ENABLE_RENDERING_TIME_LOG:!0,ENABLE_VERBOSE:!1,ENABLE_DEBUGGER_IN_THENABLE:!1,ENABLE_LOGGING:!1,ENABLE_HTTP_REQUEST_LOGGING:!0,ENABLE_KEEP_ALIVE_REQUESTS:!0,AGENT_KEEP_ALIVE_TIME:2E4,ENABLE_RANDOM_NETWORK_ERRORS:!1,ENABLE_RANDOM_ACCESS_KEY_INVALIDATION:!1,RESOURCE_REQUEST_RETRY_COUNT:1,RESOURCE_TIMEOUT_THRESHOLD:1E5,ENABLE_BAD_ICON_REQUESTS:!0,ENABLE_DEBUG_VERTICES:!1,ENABLE_TAFFY_MODE:!1,
FORCE_NO_WORKER:!1,ENABLE_LOW_LEVEL_DEFINITIONS:!0,ENABLE_SDK_DEFINITIONS:!0,ENABLE_CACHE_CONTROL:!1,ENABLE_SPILE_DEFINITIONS:!0,ENABLE_PERF_INSTRUMENTATION:!1,ENABLE_TIMERS:!1,ENABLE_COUNTERS:!1,STRIP_APPLE_CONFIDENTIAL:!1,ENABLE_LABEL_FEEDBACK:!1,ENABLE_MUNIN:!1,ENABLE_SILVER:!0,ENABLE_WEBGL_LAYER:!0,IS_PACKED:!0,IS_MINIFIED:!1,SHADER_PATH:null,ENVIRONMENT_IS_NODE:!1,ENVIRONMENT_IS_WEB:!1,ENVIRONMENT_IS_WORKER:!1},l=["","function () {"],k;for(k in c){var q=c[k];"string"===typeof q&&(q='"'+q+'"');
l.push("self."+k+" = "+q+";")}l.push("}");return new Worker(window.URL.createObjectURL(new Blob(["("+ca+")(null,null,"+l.join("\n"),");"],{type:"text/javascript"})))}}});u(95,0,function(){var c={qd:0,Vc:1,og:2,Yg:-1};c.YES=c.qd;c.NO=c.Vc;c.MAYBE=c.og;c.NOT_RUN=c.Yg;return c});u(96,0,function(){function c(){for(var c=/(.*)(?=csr\/1.x.x\/mk-csr.js)/,k=new RegExp("^(https?:)(?="+l[0]+")"),n=document.scripts,h=0,g=n.length;h<g;++h){var e=c.exec(n[h].src);if(e){var b=k.exec(e[0]);return b?l.map(function(a){return b[0]+
a}):[e[0]]}}}var l=["cdn","cdn1","cdn2","cdn3","cdn4"].map(function(c){return"//"+c+".apple-mapkit.com/ti/"});return{$Q:function(){var k=c();return k?k.map(function(c){return c+"csr/1.x.x/res/"}):l.map(function(c){return c+"csr/1.x.x/res/"})},JQ:function(){a:{var c=new RegExp("(.*)(?="+l[0]+"csr/1.x.x/.*)");for(var k=document.scripts,n=0,h=k.length;n<h;++n){var g=c.exec(k[n].src);if(g&&(g=g[0],"http:"!==g&&"https:"!==g)){c=g;break a}}c=void 0}return c?c+"https://gsp10-ssl.ls.apple.com/hvr/mw/v1/spile":
"https://gsp10-ssl.ls.apple.com/hvr/mw/v1/spile"},eD:function(c){return/\b\.geo\.apple\.com\b/.test(c)}}});u(97,0,function(){return{parse:function(c){var l=c.toLowerCase();try{if(!l.includes("safari")||l.includes("chrome")||l.includes("crios")||l.includes("gsa")||l.includes("fxios"))if(!l.includes("chrome")&&!l.includes("crios")||l.includes("chromium")||l.includes("edge")||l.includes("samsungbrowser"))if(!l.includes("firefox")&&!l.includes("fxios")||l.includes("seamonkey"))if(l.includes("msie")){var k=
"Internet Explorer";var q=/msie\s(\d*\.?\d*)/ig.exec(l)[1]}else l.includes("edge")?(k="Edge",q=/edge\/(\d*\.?\d*)/ig.exec(l)[1]):l.includes("gsa")?(k="Google Search App",q=/gsa\/(.*?)\s[^._\d]/i.exec(l)[1]):q=k="other";else k="Firefox",q=l.includes("firefox")?/firefox\/(\d*\.?\d*)/ig.exec(l)[1]:/fxios\/(\d*\.?\d*)/ig.exec(l)[1];else k="Chrome",q=l.includes("chrome")?/chrome\/(.*?)\s/ig.exec(l)[1]:/crios\/(.*?)\s/ig.exec(l)[1];else k="Safari",q=/version\/(\d+\.?\d*)/ig.exec(l)[1];var n={name:k,version:q}}catch(b){n=
{name:"other",version:"other"}}c=c.toLowerCase();try{if(c.includes("ipad")){var h="iPad";var g="iOS "+/os\s+(.*?)[^_.\d]/i.exec(c)[1]}else c.includes("iphone")&&!c.includes("ipad")?(h="iPhone",g="iOS "+/os\s+(.*?)[^_.\d]+/i.exec(c)[1]):c.includes("macintosh")?(h="Macintosh",g="Mac OS X "+/mac os x (.*?)[^_.\d]/.exec(c)[1]):c.includes("windows")?(h="Windows",g="Windows NT "+/windows nt (.*?)[^._\d]/.exec(c)[1]):c.includes("android")?(h="Android",g="Android "+/android (.*?)[^._\d]/.exec(c)[1]):g=c.includes("linux")&&
!c.includes("android")?h="Linux":c.includes("cros")?h="Chrome OS":h="other";var e={platform:h,sS:g}}catch(b){e={platform:"other",sS:"other"}}return{FA:n,UA:e}}}});u(98,0,function(){return{version:"1.29.216",build:"23.36"}});u(99,0,function(){function c(c){var e=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack;if("1"!==e&&"yes"!==e){e=new XMLHttpRequest;e.open("POST",n);e.setRequestHeader("Content-Type","text/plain");e.responseType="text";e.withCredentials=h;var b=window.location&&window.location.search.match(/\bmachineID=([^&#]*)/i);
b&&(c.g0=b[1]);b=r.parse(c["user-agent"]);var a=c["async-fidelity"],d=[];a&&a.tileResults&&(d=a.tileResults.map(function(a){return a.totalGrayDiff}));e.send(JSON.stringify({iD:[{status:c.status,Z_:d,version:q,UA:b.UA,FA:b.FA}]}))}}var l=k(96),r=k(97),q=k(98).version,n=l.JQ(),h=l.eD(n);return{On:function(g){try{c(g)}catch(e){}}}});u(100,[],function(){var c={version:"1.29.216",build:"23.36"};return{spile:c,syrup:c}});u(101,0,function(){var c=k(100);return{pB:function(l){try{var k=JSON.parse(window.localStorage.getItem("mapkit.SpileTestResult"))}catch(q){return null}if("object"!==
typeof k||null===k||"undefined"===typeof k.hash||"undefined"===typeof k.version||k.hash!==l||k.version!==c.iD.version){try{window.localStorage.removeItem("mapkit.SpileTestResult")}catch(q){}return null}return k},KD:function(c){try{window.localStorage.setItem("mapkit.SpileTestResult",JSON.stringify({hash:c.hash,version:c.version.iD,status:c.status}))}catch(r){console.log(r)}}}});u(102,["spile/status"],function(){var c=k(95);return{qa:function(){var l={status:c.Vc},k=navigator.userAgent;k=null!==k.match(/\bMSIE\b/)&&
null!==k.match(/\bTrident\//);l.isIE=k;l["typed-arrays"]="undefined"!==typeof Float64Array&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Float32Array&&"undefined"!==typeof Int32Array;l.btoa="function"===typeof window.btoa;if(!l["typed-arrays"]||!l.btoa||"function"!==typeof Uint8Array.from)return l;l.status=c.qd;return l}}});u(103,0,function(){return{AQ:function(c){return c?btoa(c.getParameter(c.RENDERER)+c.getParameter(c.VENDOR)+c.getParameter(c.VERSION)):
"N/A"}}});u(105,0,function(){Image.prototype.AR=!0;return Image});u(106,0,function(){function c(c){q.ua(this)&&(this.origin=c.origin,this.withCredentials=c.withCredentials,this.Vz=[],/\//.exec(this.origin)&&(this.origin=this.origin.substr(0,this.origin.length)))}function l(){}function r(h){h=h||{};h.origin=h.origin;h.origin="undefined"!==typeof h.origin?h.origin:document.location.origin+"/";c.prototype.constructor.call(this,h)}var q=k(8),n=k(11);k(105);c.prototype.Mo=function(c,g,e,b){var a=new XMLHttpRequest,
d=this.accessKey();d&&(d=encodeURIComponent(d),c=-1===c.indexOf("?")?c+("?accessKey="+d):c+("&accessKey="+d));var f=this.origin+c,m=this;a.onreadystatechange=function(){4===a.readyState&&(200!==a.status?(403===a.status&&m.Ov(),b("Could not fetch file '"+f+"', error code = "+a.status)):e(a.response))};a.open("GET",f);a.withCredentials=this.withCredentials;g&&(a.responseType=g);a.send();return{abort:function(){a.onreadystatechange=void 0;a.abort()}}};c.prototype.json=function(c,g,e){return this.Mo(c,
"text",function(b){g(JSON.parse(b))},e)};c.prototype.blob=function(c,g,e){return this.Mo(c,"arraybuffer",function(b){g(new Uint8Array(b))},e)};c.prototype.image=function(c,g,e){var b=this.Vz.pop()||new Image;b.crossOrigin=this.withCredentials?"use-credentials":"";var a=this,d=null,f=this.accessKey(),m=this.origin+c;f&&(m+="&accessKey="+encodeURIComponent(f));b.src=m;b.onerror=function(){function f(){b.$G||e("'"+b.src+"' not found")}d=a.Mo(c,"arraybuffer",f,f)};b.onload=function(){g(b)};b.Kx="png";
/^stile.*/.exec(c)&&(b.Kx="jpg");return{abort:function(e){b.onload=void 0;b.onerror=void 0;d&&d.abort(e);a.Vz.push(b)}}};c.prototype.text=function(c,g,e){return this.Mo(c,"text",g,e)};c.prototype.Pg=function(c){this.Is=c};c.prototype.accessKey=function(){return this.Is};c.prototype.Ov=function(){this.W("invalid-access-key")};n.ka(c.prototype);l.prototype.json=function(c,g){c=atob(c.split(",")[1]);g(JSON.parse(c));return{abort:function(){}}};l.prototype.text=function(c,g){c=atob(c.split(",")[1]);g(c);
return{abort:function(){}}};l.prototype.blob=function(c,g){c=atob(c.split(",")[1]);var e=new ArrayBuffer(c.length);e=new Uint8Array(e);for(var b=0;b<c.length;b++)e[b]=c.charCodeAt(b);g(e);return{abort:function(){}}};l.prototype.image=function(c,g,e){var b=new Image;b.onerror=function(){e("'"+b.src+"' not found")};b.onload=function(){g(b)};b.src=c;b.Kx="png";return{abort:function(){}}};q.P(c,r);return{jf:r,SD:l,ji:r}});u(107,0,function(){function c(b){if(g.ua(this)){this.Nf=Array(b.zn.length);for(var a=
b.Ww,d=0,e=b.zn.length;d<e;d++){var c=b.zn[d];"/"!==c[c.length-1]&&(c+="/");c=new q.jf({origin:c+a,withCredentials:b.withCredentials});c.Da("invalid-access-key",function(){this.W("invalid-access-key")},this);this.Nf[d]=c}}}function l(b,a,d){var e=b.protocol,m=b.domains.map(function(a){return e+"//"+a});if(a)for(var p=0,g=m.length;p<g;p++)m[p]=a[p%a.length]+m[p];c.prototype.constructor.call(this,{zn:m,Ww:"",withCredentials:d});this.tm=b.path;a=b.supportedSizes;d=b.supportedResolutions;a&&d?(this.PH=
a[0],this.KH=a[a.length-1],this.OH=d[0],this.JH=d[d.length-1]):this.tA=function(a){return a};"/"===this.tm[0]&&(this.tm=this.tm.substr(1,this.tm.length-1));this.uJ=b.name}function r(b,a){g.ua(this)&&(c.prototype.constructor.call(this,b),this.mapping=a)}var q=k(106),n=k(5),h=k(11);k(4);var g=k(8),e=k(3);c.prototype.To=function(b){b=Math.floor(76731.36742*b);return this.Nf[b%this.Nf.length]};c.prototype.json=function(b,a,d,e){var f=this.To(e.Qc);return f.json.apply(f,arguments)};c.prototype.blob=function(b,
a,d,e){var f=this.To(e.Qc);return f.blob.apply(f,arguments)};c.prototype.text=function(b,a,d,e){var f=this.To(e.Qc);return f.text.apply(f,arguments)};c.prototype.image=function(b,a,d,e){var f=this.To(e.Qc);return f.image.apply(f,arguments)};c.prototype.Pg=function(b){this.Nf.forEach(function(a){a.Pg(b)})};h.ka(c.prototype);g.P(c,l);l.prototype.image=function(b,a,d,e){b=n.uQ(this.tm,this.tA(e));0===e.labels&&(b+="&labels=0");"standard"===this.uJ&&(b+="&tint="+e.tint,b+="&emphasis="+e.emphasis);return c.prototype.image.call(this,
b,a,d,e)};l.prototype.tA=function(b){b.tileSizeIndex=e.qk(b.tileSizeIndex,this.PH,this.KH);b.resolution=e.qk(b.resolution,this.OH,this.JH);return b};l.prototype.Pg=function(){};q.GE=l;g.P(c,r);r.prototype.wo=function(b,a,d,e,c){var f=this.mapping[a];return f?b.call(this,f,d,e,c):(e("[MapFileAdapter] resource '"+a+"' not mapped"),{abort:function(){}})};r.prototype.json=function(b,a,d,e){return this.wo(c.prototype.json,b,a,d,e)};r.prototype.blob=function(b,a,d,e){return this.wo(c.prototype.blob,b,a,
d,e)};r.prototype.image=function(b,a,d,e){return this.wo(c.prototype.image,b,a,d,e)};r.prototype.text=function(b,a,d,e){return this.wo(c.prototype.text,b,a,d,e)};q.pg=r;q.hE=c;q.jf.prototype.json=q.jf.prototype.json;q.jf.prototype.image=q.jf.prototype.image;q.jf.prototype.text=q.jf.prototype.text;q.jf.prototype.blob=q.jf.prototype.blob;q.pg.prototype.blob=q.pg.prototype.blob;q.pg.prototype.image=q.pg.prototype.image;q.pg.prototype.json=q.pg.prototype.json;q.pg.prototype.text=q.pg.prototype.text;return q});
u(109,0,function(){function c(){this.om={};this.pz();this.Uz=1E5;this.Wt=!0;this.zy=l.resolve();this.Rz=1}var l=k(13),r=k(11);k(104);var q=k(107),n=k(5),h=k(21);k(108);c.prototype.pz=function(){this.Nf=[];this.kj("__default__",new q.ji);this.kj(/^data:/,new q.SD)};c.prototype.uo=function(c){for(var e=this.Nf[0],b=1,a=this.Nf.length;b<a;b++){var d=this.Nf[b];if(c.match(d.pattern)){e=d;break}}return e.pp};c.prototype.kj=function(c,e){"function"===typeof e.Pg&&(this.Da("valid-access-key",e.Pg,e),e.Da("invalid-access-key",
this.Ov,this),e.Pg(this.Is));this.Nf.push({pattern:c,pp:e})};c.prototype.Ru=function(){var c=this;this.Nf.forEach(function(e){"function"===typeof e.pp.Pg&&(e.pp.va("invalid-access-key"),c.va("valid-access-key",null,e.pp))});this.pz()};c.prototype.vV=function(c){return/.(jpeg|jpg|JPEG|JPG|png|PNG)$/.exec(c)?3:/.(json|JSON)$/.exec(c)?1:/.(bin|BIN|obj|OBJ)$/.exec(c)?2:5};c.prototype.Ay=function(c,e){this.om[e]=c};c.prototype.pI=function(c){delete this.om[c]};c.prototype.CG=function(c,e,b){e=e||this.vV(c);
b=b||n.Pb();var a,d,f=new l(function(b,e){a=b;d=e});switch(e){case 1:var m=this.uo(c).json(c,a,d,b);break;case 2:m=this.uo(c).blob(c,a,d,b);break;case 3:m=this.uo(c).image(c,a,d,b);break;case 4:m=this.uo(c).text(c,a,d,b);break;case 5:return l.reject("INVALID_RESOURCE while fetching '"+c+"'");default:throw"ResourceManager.get(): Given type is not defined";}var p=!1;f=f.catch(function(a){p=!0;return h.Hf.qa(function(){return l.reject(a)})}).then(function(a){p=!0;return h.Hf.qa(function(){return a})});
var g;c=new l(function(a,b){g=function(a){p||m.abort(a);b(a)}});f=l.race([f,c]);f.cancel=g;return f};c.prototype.get=function(g,e,b,a){function d(a,d){if(m)return l.reject(d);p=f.zy;return p.then(function(){var d=f.CG(g,e,b);h=d;if(!a)return d;var m,p=new l(function(a,b){m=setTimeout(function(){b({code:c.TIMEOUT,reason:"Resource timeout: "+g,q0:g})},f.Uz)});return l.race([d,p]).then(function(a){clearTimeout(m);return a})})}if(this.has(g))return this.om[g];var f=this,m=!1,p,h=null,n=1<=this.Rz,k=d(n);
if(n){for(n=1;n<this.Rz;++n)k=k.catch(d.bind(this,!0));k=k.catch(d.bind(this,!1))}7!==a&&this.Ay(k,g);k.abort=function(a){p.then(function(){m=!0;h.cancel(a);h=null})};return k};c.prototype.add=function(c,e,b){l.Lk(e)||(e=l.resolve(e));if(8===b){var a=this;e.then(function(b){b.once("released",a.remove.bind(a,c),a)}).catch(this.remove.bind(this,c))}this.Ay(e,c);return this};c.prototype.remove=function(c){this.pI(c)};c.prototype.has=function(c){return c in this.om};c.prototype.reset=function(){this.om=
{}};c.prototype.Ov=function(){if(this.Wt){this.Wt=!1;var c=this;this.zy=new l(function(e){c.once("valid-access-key",e)});this.W("invalid-access-key")}};c.prototype.Pg=function(c){this.Is=c;this.W("valid-access-key",c);this.Wt=!0};c.prototype.IT=function(c){this.Uz=c};c.JSON=1;c.hi=2;c.Xg=3;c.Jj=4;c.TE=5;c.FE=1E5;c.DE=1;c.bW="INVALID_RESOURCE";c.TIMEOUT=504;c.tE=404;c.kf=7;c.xE=8;c.JSON=c.JSON;c.BLOB=c.hi;c.IMAGE=c.Xg;c.TEXT=c.Jj;c.UNKNOWN=c.TE;c.TIMEOUT=c.TIMEOUT;c.NOT_FOUND=c.tE;r.ka(c.prototype);
return c});u(110,0,function(){function c(c){this.origin=c||"";this.id=q.Pb()}var l=k(109),r=k(11),q=k(5);c.prototype.Jg=function(){return{url:this.origin+"manifest",data:{Uq:"manifest",Qc:0}}};c.prototype.fetch=function(c){var h=this.Jg();return c.get(h.url,l.hi,h.data,l.kf)};c.prototype.load=function(n,h){return this.fetch(n).then(function(c){this.oP=c;return h.NA(c).then(function(e){this.json=e}.bind(this))}.bind(this)).then(function(){this.VH(this.json);this.CF();c.W("loaded",this);return this}.bind(this))};
c.prototype.VH=function(c){for(var h in c)this[h]=c[h]};c.prototype.CF=function(){this.Eb=1/this.uc;this.Aq=1/this.Tc;for(var c in this.sk){var h=this.sk[c];h.pe=q.Xe(h.pe);h.se=q.Xe(h.se);h.te=q.Xe(h.te);for(var g=0;g<h.hc.length;g++)h.hc[g].color=q.Xe(h.hc[g].color)}};r.ka(c.prototype);r.ka(c);c.prototype.Oh=function(){var c=Array.from(this.oP);return JSON.stringify(c)};return c});u(111,0,function(){function c(c){this.Mt=c;this.Eo=c.ca.Oi;this.Wy=!1;this.C=c.m();this.Bc=c.Bc}var l=k(15),r=l.md,
q=k(3);c.prototype.Cb=function(){this.NT();this.MT()};c.prototype.NT=function(){this.gh=q.l.u(0,0);var c=this.C.getParameter(this.C.MAX_RENDERBUFFER_SIZE),h=this.C.getParameter(this.C.MAX_VIEWPORT_DIMS);c&&h?(this.gh[0]=Math.min(c,h[0]),this.gh[1]=Math.min(c,h[1])):h?this.gh=h:this.gh[0]=c?this.gh[1]=c:this.gh[1]=4096;this.C.Da("resized",function(c){(c[0]>this.gh[0]||c[1]>this.gh[1])&&this.hT()},this)};c.prototype.MT=function(){0!==this.Eo.Dn&&0!==this.Eo.Cn&&this.Bc.Da("data-decoded",function(c){var h=
c.source;h.type===l.xc||h.key.z<this.Eo.Cn||c.data.Ek.Jq>this.Eo.Dn&&this.gT()},this)};c.prototype.hT=function(){this.Mt.fT()};c.prototype.gT=function(){this.Wy||(this.Wy=!0,this.Mt.al(r.mi),this.Mt.Qn({}))};c.prototype.Pa=function(){this.C.va("resized",null,this)};return c});u(112,0,function(){function c(c){this.ui={};this.fh={};this.lf=!1;this.Ak(c)}var l=k(11),r=k(5),q=k(13),n=k(3);l.ka(c.prototype);c.Px=0;c.jo=1;c.prototype.th=function(h){h.Kd&&(this.ui[h.Kd.id]&&(h.Kd.un(c.Px),delete this.ui[h.Kd.id]),
this.fh[h.Kd.id]&&(h.icon&&h.Zk(h.icon.width,h.icon.height),h.zh=1,h.Hc.release(),delete h.Hc,delete this.fh[h.Kd.id]));h.alpha=0;h.Kd={un:function(){},id:r.Pb(),duration:0,gr:-1,cq:0}};c.prototype.yk=function(){this.Of=!1};c.prototype.Ak=function(c){this.zt=c;this.Of=!0};c.prototype.co=function(c,g,e){if(this.Of){var b=c.Kd;0!==g&&c.icon&&e&&e!==c.icon?(c.Hc&&c.Hc.release(),c.Zk(e.width,e.height),c.Hc=e,e.rb(),b.cq=g,c.zh=0,this.fh[b.id]=c,this.lf=!0):this.fh[b.id]&&(c.zh=1,b.cq=0,c.icon&&c.Zk(c.icon.width,
c.icon.height),c.Hc&&(c.Hc.release(),delete c.Hc),delete this.fh[b.id])}};c.prototype.show=function(h,g){h.Kd.gr=1;h.Kd.duration=g;if(this.Of)return this.By(h);h.alpha=1;return q.resolve(c.jo)};c.prototype.xf=function(h,g){h.Kd.gr=-1;h.Kd.duration=g;if(this.Of)return this.By(h);h.alpha=0;return q.resolve(c.jo)};c.prototype.dA=function(c){return.5*(c.gr+1)};c.prototype.By=function(h){var g=h.Kd;g.un(c.Px);var e=!1;0===g.duration?(h.alpha=this.dA(g),e=!0):e=this.dA(g)===h.alpha;if(e)return delete this.ui[g.id],
q.resolve(c.jo);this.ui[g.id]=h;this.lf=!0;return new q(function(b){g.un=function(a){g.un=function(){};b(a)}})};c.prototype.update=function(h){var g=r.Ef(this.ui),e=h-this.zt,b=!1,a;this.lf=!1;if(0!==g.length){b=0;for(a=g.length;b<a;b++){var d=g[b];var f=d.Kd;var m=f.duration;d.alpha+=f.gr*e/m;0>d.alpha||1<d.alpha?(d.alpha=n.qk(d.alpha,0,1),delete this.ui[f.id],f.un(c.jo)):this.lf=!0}b=!0}g=r.Ef(this.fh);if(0!==g.length){b=0;for(a=g.length;b<a;b++)if(d=g[b],d.icon&&d.Hc){f=d.Kd;m=f.cq;d.zh+=e/m;var p=
d.ue();d.Zk(p[0]+(d.icon.width-d.Hc.width)*e/m,p[1]+(d.icon.height-d.Hc.height)*e/m);1<d.zh?(d.zh=1,f.cq=0,d.Zk(d.icon.width,d.icon.height),d.Hc.release(),delete d.Hc,delete this.fh[f.id]):this.lf=!0;d.W("animation-size-update",d.ue())}b=!0}b&&this.TH();this.zt=h};c.prototype.TH=function(){this.W("alpha-updated")};c.prototype.GB=function(c){c["animation-enabled"]=this.Of;c["animating-count"]=Object.keys(this.ui).length;c["icon-updating-count"]=Object.keys(this.fh).length;return this.Of&&this.lf};
return c});u(113,[],function(){return{ud:function(c){var l=0;c[2]<-c[3]?l|=1:c[2]>c[3]&&(l|=2);c[0]<-c[3]?l|=4:c[0]>c[3]&&(l|=8);c[1]<-c[3]?l|=16:c[1]>c[3]&&(l|=32);return l},sE:1,ZV:2,eW:4,kW:8,vW:16,TV:32}});u(114,0,function(){function c(d,e){this.cg=d;this.ud=a(d);this.ud&b||(this.me=h.l.u(e[0]*(d[0]/d[3]+1)*.5,e[1]*(d[1]/d[3]+1)*.5))}function l(a,b){return h.T.u(.5*(a[0]+b[0]),.5*(a[1]+b[1]),.5*(a[2]+b[2]),.5*(a[3]+b[3]))}function r(a,b,d){b=h.l.Bd(h.l.create(),b,a);a=h.l.Bd(h.l.create(),d,a);
return(a[1]*b[0]-a[0]*b[1])/2}function q(a){this.VR=a*a}var n=k(0),h=k(3),g=k(113),e=k(19),b=g.sE,a=g.ud,d=n.Qk;q.prototype.SQ=function(a,b){var d=[];var c=a.Fk();var f=Math.floor(c[0]);c=new e(f,0,0);this.Dv(a,b,c,d);c=new e(f+1,0,0);this.Dv(a,b,c,d);c=new e(f-1,0,0);this.Dv(a,b,c,d);return d=d.map(function(a){return a.gC()})};q.prototype.Dv=function(a,b,d,e){var f=d.Ii();a=a.Fb;var m=f.min(),p=f.max(),g=h.T.u(m[0],m[1],0,1);f=h.T.u(p[0],p[1],0,1);var n=h.T.u(m[0],p[1],0,1);m=h.T.u(p[0],m[1],0,1);
h.T.fb(g,g,a);h.T.fb(m,m,a);h.T.fb(n,n,a);h.T.fb(f,f,a);a=new c(g,b);n=new c(n,b);f=new c(f,b);m=new c(m,b);this.Fn(e,b,d,a,n,f,m)};q.prototype.Fn=function(a,m,p,g,h,n,k){if(0===(g.ud&h.ud&n.ud&k.ud))if(p.z<d&&(1===((g.ud|h.ud|n.ud|k.ud)&b)||Math.abs(r(g.me,h.me,n.me)+r(g.me,n.me,k.me))>this.VR)){var f=new c(l(g.cg,h.cg),m),t=new c(l(h.cg,n.cg),m),q=new c(l(n.cg,k.cg),m),w=new c(l(k.cg,g.cg),m),C=new c(l(f.cg,q.cg),m);this.Fn(a,m,new e(p.x<<1,(p.y<<1)+1,p.z+1),g,f,C,w);this.Fn(a,m,new e(p.x<<1,p.y<<
1,p.z+1),f,h,t,C);this.Fn(a,m,new e((p.x<<1)+1,p.y<<1,p.z+1),C,t,n,q);this.Fn(a,m,new e((p.x<<1)+1,(p.y<<1)+1,p.z+1),w,C,q,k)}else a.push(p)};return q});u(115,0,function(){function c(b){this.type=b;this.id=h.Pb();this.eh=1;this.Bt=null}function l(b,a,d){this.C=b;this.fa=a;this.zH=d;this.wb=[];this.Ie=n.resolve("__layers-lock-init__");this.Mj={};this.vz=g.gv;this.Ny=g.dv;this.Lz=g.hv;this.Bi=g.Mi;this.vi=g.Li;this.Qg(g.SA,g.RA)}var r=k(11),q=k(15),n=k(13),h=k(5),g=k(0),e=k(14);c.prototype.UB=function(){if(this.Bt)return this.Bt;
var b=this,a={type:this.type,id:this.id,get alpha(){return b.eh},set alpha(a){b.eh=a;b.view.SC(a)}};return this.Bt=a};l.prototype.Xa=function(){return this.wb.map(function(b){return b.UB()})};l.prototype.yz=function(b){for(var a=0,d=this.wb.length;a<d;a++)if(this.wb[a].id===b.id)return a};l.prototype.xz=function(b){return this.wb[this.yz(b)]};l.prototype.xq=function(){return this.wb.map(function(b){return b.view.sa})};l.prototype.Qg=function(b,a){this.jt=this.fa.uc/g.We;this.st=b;this.ak={devicePixelRatio:b,
fS:a,ao:b*a};this.Zl=a;this.W("surface-property-changed",this.ak)};l.prototype.al=function(b){this.rf=b;this.W("rendering-mode-changed",b)};l.prototype.Tn=function(b){this.ip=b};l.prototype.Qh=function(b){this.vz=b};l.prototype.$k=function(b,a){this.Ny=b;this.Lz=a};l.prototype.BV=function(b,a,d){this.Bi=a;this.vi=d;this.Ot=b;var e;this.BF=e=b===this.fa.Df.sy?this.fa.sk[a+"-"+d]:{Zd:b,pe:g.PA,se:g.PA,te:g.fP,hc:[]};this.xq().forEach(function(a){a.dg(e)})};l.prototype.Ts=function(b,a){b.SC(a.eh);var d=
b.sa;this.Da("tile-created",d.Kg,d);this.Da("tile-destroyed",d.Ih,d);this.Da("tile-shift",d.cj,d);this.Da("tile-dependency-ready",d.yn,d);d.dg(this.BF);this.bI(d);d=b.K;this.Da("surface-property-changed",d.ic,d);d.ic(this.ak);this.Da("rendering-mode-changed",d.bj,d);d.bj(this.rf);d.ID();a.view=b;return a.UB()};l.prototype.Oy=function(b){return new c(b)};l.prototype.insertBefore=function(b,a){var d=this.kt(b);return this.Ie=this.Ie.then(function(){return d.then(function(b){var d=b[0];b=this.Ts(b[1],
d);for(var e=0,c=this.wb.length;e<c;e++)if(a.id===this.wb[e].id)return this.wb.splice(e,0,d),b;console.assert(!1,"Given reference layer is not in the mapView anymore, this probably means you haven't waited for the previous operation to complete before calling insertBefore")}.bind(this))}.bind(this))};l.prototype.Mv=function(b,a){var d=this.kt(b);return this.Ie=this.Ie.then(function(){return d.then(function(b){var d=b[0];b=this.Ts(b[1],d);for(var e=0,c=this.wb.length;e<c;e++)if(a.id===this.wb[e].id)return this.wb.splice(e+
1,0,d),b;console.assert(!1,"Given reference layer is not in the mapView anymore, this probably means you haven't waited for the previous operation to complete before calling after")}.bind(this))}.bind(this))};l.prototype.CR=function(b){return this.xz(b).view.sa.Tv()};l.prototype.BR=function(b){return this.xz(b).view.sa.Ui()};l.prototype.zp=function(){this.xq().forEach(function(b){b.zp()})};l.prototype.tp=function(){this.xq().forEach(function(b){b.tp()})};l.prototype.nh=function(b){return this.hF(b)};
l.prototype.Ka=function(){this.wb.forEach(function(b){b.view.sa.Ka();b.view.K&&b.view.K.Ka()})};l.prototype.Wk=function(){var b=this,a=[];this.wb.forEach(function(d){d.view.K&&(a=a.concat(d.view.K.Qa(b.C,b.fa).then(function(){d.view.K.ic(b.ak);return n.all(d.view.sa.Wk())})))});return n.all(a)};l.prototype.hF=function(b){var a=this.kt(b);return this.Ie=this.Ie.then(function(){return a.then(function(a){var b=a[0];a=this.Ts(a[1],b);var d=this.wb;d.push(b);d.map(function(a,b){return[a,b]}).sort(function(a,
b){return a[0].type===b[0].type?a[1]-b[1]:a[0].type-b[0].type}).forEach(function(a,b){d[b]=a[0]});return a}.bind(this))}.bind(this))};l.prototype.kt=function(b){if("object"===typeof b){var a=this.Oy(b.type());b=n.resolve(b)}else a=this.Oy(b),b=this.zH.get(b);return n.all([a,b])};l.prototype.Vk=function(b){var a=-1;return this.Ie=this.Ie.then(function(){a=this.yz(b);var d=this.wb[a];d.view.rk();this.wb.splice(a,1);var e=d.view.sa;e&&(this.va("tile-created",e.Kg,e),this.va("tile-destroyed",e.Ih,e),
this.va("tile-shift",e.cj,e),this.va("tile-dependency-ready",e.yn,e));d=d.view.K;this.va("surface-property-changed",d.ic,d);this.va("rendering-mode-changed",d.bj,d);d.JD();this.Zb();return b}.bind(this))};l.prototype.Kg=function(b){b.scale=this.ak.devicePixelRatio;b.Zd=this.Ot;b.tc=this.ip;b.language=this.vz;b.Re=this.Ny;b.$e=this.Lz;b.Kb=this.Bi;b.Tb=this.vi;b.Eh=this.rf===q.md.mi;this.W("tile-created",b);this.W("tile-dependency-ready",b);this.Mj[b.Jb.id]=b};l.prototype.Ih=function(b){this.W("tile-destroyed",
b);delete this.Mj[b.Jb.id]};l.prototype.cj=function(b){var a=this.Mj,d={};Object.keys(a).forEach(function(b){b=a[b];d[b.Jb.id]=b});this.Mj=d;this.W("tile-shift",b)};l.prototype.bI=function(b){for(var a in this.Mj){var d=this.Mj[a],e=d.F();d.JC();d.rp(e,"all-deps");b.Kg(d);b.yn(d)}};l.prototype.QT=function(){if(this.Qj)return!0;for(var b=0,a=this.wb.length;b<a;b++)if(this.wb[b].view.aj())return!0;return!1};l.prototype.Zb=function(){this.Qj=!0;this.wb.forEach(function(b){b.view.sa.Zb()})};l.prototype.AH=
function(b,a){for(var d=0,e=this.wb.length;d<e;d++)this.wb[d].view.PS(b,a,this.jt,this.st)};l.prototype.tG=function(b,a){for(var d=0;d<e.count;d++)for(var c=0,m=this.wb.length;c<m;c++)this.wb[c].view.lv(d,b,a,this.jt,this.st)};l.prototype.update=function(b,a){if(this.QT()){var d;var e=0;for(d=this.wb.length;e<d;e++){var c=this.wb[e].view;c.Ap(b,a,this.jt,this.st)}e=this.C;e.viewport(0,0,a[0]*this.ak.ao,a[1]*this.ak.ao);e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT);this.AH(b,
a);this.tG(b,a);e=0;for(d=this.wb.length;e<d;e++)c=this.wb[e].view,c.up();this.Qj=!1}};r.ka(l.prototype);return l});u(116,0,function(){k(47);k(5);return{create:function(c,l,k,q,n){q=q||document.createElement("canvas");q.style.width=c+"px";q.style.height=l+"px";q.width=c*k;q.height=l*k;q.className="syrup-canvas";return q.getContext(n||"webgl",{antialias:!1,stencil:!0})},resize:function(c,l,k,q){c.canvas.width=l*q;c.canvas.height=k*q;c.canvas.style.width=l+"px";c.canvas.style.height=k+"px"}}});u(117,
0,function(){var c=k(11),l=k(109),r=function(){var c=1;return function(){return c++}}(),q=k(116),n={},h={create:function(g,e,b,a,d){b=b||1;var f=q.create(g,e,b,a,d);if(!f)return f;f.ST=b;f.R=new l;f.tk=function(a){f.R.reset();h.W("context-lost",f);a.preventDefault()};f.uk=function(){h.W("context-restored",f)};f.sA=!0;Object.defineProperty(f,"valid",{get:function(){return this.sA},set:function(){throw"'valid' is a READONLY value";}});f.Xl=r();Object.defineProperty(f,"id",{get:function(){return this.Xl},
set:function(){throw"'id' is a READONLY value";}});n[f.id]=f;c.ka(f);h.W("creation",f);f.canvas.addEventListener("webglcontextlost",f.tk);f.canvas.addEventListener("webglcontextrestored",f.uk);return f},resize:function(c,e,b,a){q.resize(c,e,b,a);c.ST=a;c.W("resized",[e*a,b*a])},KA:void 0,Eq:function(c,e,b){c.Da("destroyed",e,b)},j0:function(c,e,b){c.va("destroyed",e,b)},all:function(){return n},Pa:function(c){delete n[c.id];c.W("destroyed",c);c.sA=!1;c.va("destroyed");c.canvas&&(c.canvas.removeEventListener("webglcontextlost",
c.tk),c.canvas.removeEventListener("webglcontextrestored",c.uk))}};c.ka(h);return h});u(118,0,function(){return{USE_STANDARD_DERIVATIVES:"1"}});u(119,0,function(){function c(a,b,d){this.m=a;this.type=b;this.Ue=a.createShader(b);this.src=d;this.Lf={ty:!1,UD:!1}}function l(a,b,d){this.m=a;this.tl=b;this.Rm=d;this.Ue=a.createProgram();this.tr="";this.Lf={aW:!1,so:!1,es:!0,UD:!1}}var r=k(117),q=k(109),n=k(118),h=k(13),g=k(0),e=k(110),b=k(27),a=new q,d=JSON.parse(JSON.stringify(n));d.STROKE_POSITION_OUTSIDE=
b.ah.Jf;d.STROKE_POSITION_INSIDE=b.ah.gy;d.STROKE_POSITION_ON=b.ah.ly;c.prototype.compile=function(a){a=a||{};var b=[],e;for(e in d)b.push("#define "+e+" "+d[e]);for(e in a)b.push("#define "+e+" "+a[e]);this.Wu=b.join("\n")+"\n"+this.src;this.XH();this.WH();return this.m.tw?this:this.Vu()};c.prototype.Ps=function(){this.Lf.ty=!0;this.m.shaderSource(this.Ue,this.Wu);this.m.compileShader(this.Ue)};c.prototype.ut=function(){this.Lf.ty=!1};c.prototype.Vu=function(){this.Ps();this.ut();return this};c.prototype.attributes=
function(){return this.Ll};c.prototype.XH=function(){this.M=[];for(var a=this.Wu.split("\n"),b=/uniform[ \t]+((highp|mediump|lowp)[ \t]+)?(vec[2-4]|bool|int|float|mat[2-4]|sampler2D)[ \t]+([_a-zA-Z][_a-zA-Z0-9]*)/,d=0,e=a.length;d<e;d++){var c=b.exec(a[d]);c&&this.M.push(c[4])}};c.prototype.WH=function(){if(this.type!==this.m.FRAGMENT_SHADER){this.Ll=[];for(var a=this.Wu.split("\n"),b=/attribute[ \t]+((highp|mediump|lowp)[ \t]+)?(vec[2-4]|float|mat[2-4])[ \t]+([_a-zA-Z][_a-zA-Z0-9]*)/,d=0,e=a.length;d<
e;d++){var c=b.exec(a[d]);c&&this.Ll.push(c[4])}}};c.prototype.Ec=function(){return this.Ue};c.gB=function(b,d,e,f){return a.get(d,q.Jj,0,q.kf).then(function(a){return(new c(b,e,a)).compile(f)})};l.prototype.link=function(){return this.m.tw?new h(function(a){this.Lf.so||this.zz();this.Fz()?a(this.vt()):this.tr=setTimeout(this.Az.bind(this,a))}.bind(this)):h.resolve(this.RB())};l.prototype.RB=function(){this.tl.Vu();this.Rm.Vu();this.zz();return this.vt()};l.prototype.Fz=function(){!this.Lf.es&&this.Lf.so&&
(this.Lf.es=this.m.getProgramParameter(this.Ue,this.m.tw.COMPLETION_STATUS_KHR));return this.Lf.es};l.prototype.zz=function(){this.Lf.so=!0;this.m.attachShader(this.Ue,this.tl.Ec());this.m.attachShader(this.Ue,this.Rm.Ec());this.tl.Ps();this.Rm.Ps();this.m.linkProgram(this.Ue)};l.prototype.Az=function(a){this.Fz()?a(this.vt()):this.tr=setTimeout(this.Az.bind(this,a))};l.prototype.vt=function(){this.Lf.so=!1;this.tl.ut();this.Rm.ut();clearTimeout(this.tr);this.tr=!1;var a=this.tl.attributes(),b=[];
b.push.apply(b,this.tl.M);b.push.apply(b,this.Rm.M);this.Ll={};a.forEach(function(a){this.Ll[a]=this.m.getAttribLocation(this.Ue,a)},this);this.M={};b.forEach(function(a){this.M[a]=this.m.getUniformLocation(this.Ue,a)},this);return this};l.prototype.use=function(){this.m.useProgram(this.Ue)};l.prototype.zb=function(){this.m.useProgram(null)};l.prototype.Ec=function(){return this.Ue};l.prototype.attributes=function(){return this.Ll};l.Bb=function(a,b,d,e){b=c.gB(a,b,a.VERTEX_SHADER,e);d=c.gB(a,d,a.FRAGMENT_SHADER,
e);return h.all([b,d]).then(function(b){return(new l(a,b[0],b[1])).link()})};l.fromURLs=l.Bb;var f={ws:c,tb:l};r.once("creation",function(a){f.VERTEX_SHADER=a.VERTEX_SHADER;f.FRAGMENT_SHADER=a.FRAGMENT_SHADER});e.Da("loaded",function(b){d.TILE_SIZE_IN_POINT=Math.floor(b.uc)+".0";d.TILES_PER_POINT=b.Eb;d.LINE_JUMP_VERTEX_CEIL=""+b.ln;-1===d.LINE_JUMP_VERTEX_CEIL.indexOf(".")&&(d.LINE_JUMP_VERTEX_CEIL+=".0");d.LINE_JUMP_VERTEX_OFFSET=""+b.Yi;-1===d.LINE_JUMP_VERTEX_OFFSET.indexOf(".")&&(d.LINE_JUMP_VERTEX_OFFSET+=
".0");d.LINE_DRAW_ENDCAP_OFFSET=""+b.Xi;-1===d.LINE_DRAW_ENDCAP_OFFSET.indexOf(".")&&(d.LINE_DRAW_ENDCAP_OFFSET+=".0");d.LINE_DRAW_ENDCAP_CEIL=""+b.kn;-1===d.LINE_DRAW_ENDCAP_CEIL.indexOf(".")&&(d.LINE_DRAW_ENDCAP_CEIL+=".0");d.SIGNED_VERTEX_OFFSET=""+b.Sh;-1===d.SIGNED_VERTEX_OFFSET.indexOf(".")&&(d.SIGNED_VERTEX_OFFSET+=".0");d.BEZIER_CURVE_ANCHOR=""+g.Ju;-1===d.BEZIER_CURVE_ANCHOR.indexOf(".")&&(d.BEZIER_CURVE_ANCHOR+=".0");d.LINE_AA_PIXEL_COUNT=""+g.PB;-1===d.LINE_AA_PIXEL_COUNT.indexOf(".")&&
(d.LINE_AA_PIXEL_COUNT+=".0");d.DISTANCE_FIELD_SIZE=Math.floor(b.Tc)+".0";d.MAX_HALF_LINE_WIDTH=g.ZR+".0";d.DISTANCE_FIELD_SIZE=Math.floor(b.Tc)+".0";d.MIN_GLYPH_AA_SIZE=b.Aq;d.HALF_MIN_GLYPH_AA_SIZE=.5*b.Aq;a.reset();a.add("shaders/arrow.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform vec2 viewportSize;\nuniform mat4 modelViewProjMatrix;\nuniform float pr;\nattribute vec2 tilePosition;\nattribute vec2 uvSize;\nattribute vec2 uvStart;\nattribute vec2 size;\nattribute float alpha;\nattribute float angle;\nvarying vec2 v_uvSize;\nvarying vec2 v_uvStart;\nvarying float v_alpha;\nvarying vec2 v_xDirectionVector;\nvarying vec2 v_yDirectionVector;\nvarying vec2 v_start;\nvarying vec2 v_length;\nvoid main() {\n  v_uvStart = uvStart;\n  v_uvSize = uvSize;\n  v_alpha = alpha;\n  \n  float pointSize = sqrt(pow(size.x, 2.0) + pow(size.y, 2.0));\n  v_start = (pointSize - size) * 0.5 / pointSize;\n  v_length = size / pointSize;\n  v_xDirectionVector = vec2(cos(angle), sin(angle));\n  vec4 dcXDirectionVector = modelViewProjMatrix * vec4(v_xDirectionVector, 0.0, 0.0);\n  dcXDirectionVector.xy = dcXDirectionVector.xy * 0.5 * viewportSize;\n  v_xDirectionVector = normalize(dcXDirectionVector.xy);\n  v_xDirectionVector = vec2(v_xDirectionVector.x, -1.0 * v_xDirectionVector.y);\n  v_yDirectionVector = vec2(-v_xDirectionVector.y, v_xDirectionVector.x);\n  vec4 dcPosition = modelViewProjMatrix * vec4(tilePosition, 0.0, 1.0);\n  dcPosition /= dcPosition.w;\n  \n  float margin = pointSize / min(viewportSize.x, viewportSize.y);\n  float upperBound = 1.0 + margin;\n  float lowerBound = -1.0 - margin;\n  if (dcPosition.x < -1.0 && dcPosition.x > lowerBound) {\n    v_start.x -= (-1.0 - dcPosition.x) * viewportSize.x / pointSize / 2.0;\n    dcPosition.x = -1.0;\n  } else if (dcPosition.x > 1.0 && dcPosition.x < upperBound) {\n    v_start.x += (dcPosition.x - 1.0) * viewportSize.x / pointSize / 2.0;\n    dcPosition.x = 1.0;\n  }\n  if (dcPosition.y < -1.0 && dcPosition.y > lowerBound) {\n    v_start.y -= (-1.0 - dcPosition.y) * viewportSize.y / pointSize / 2.0;\n    dcPosition.y = -1.0;\n  } else if (dcPosition.y > 1.0 && dcPosition.y < upperBound) {\n    v_start.y += (dcPosition.y - 1.0) * viewportSize.y / pointSize / 2.0;\n    dcPosition.y = 1.0;\n  }\n  gl_Position = dcPosition;\n  gl_PointSize = pointSize * pr;\n}");
a.add("shaders/arrow.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform sampler2D iconTexture;\nvarying vec2 v_uvSize;\nvarying vec2 v_uvStart;\nvarying float v_alpha;\nvarying vec2 v_xDirectionVector;\nvarying vec2 v_yDirectionVector;\nvarying vec2 v_start;\nvarying vec2 v_length;\nvoid main() {\n  vec2 position = vec2(gl_PointCoord.s, 1.0 - gl_PointCoord.t);\n  \n  position = (position - v_start) / v_length;\n  vec2 centeredPosition = position - vec2(0.5, 0.5);\n  vec2 pos = centeredPosition.x * v_xDirectionVector +\n             centeredPosition.y * v_yDirectionVector +\n             vec2(0.5, 0.5);\n  if (pos.x < 0.0 || pos.x > 1.0 || pos.y < 0.0 || pos.y > 1.0) {\n    discard;\n  }\n  vec2 uv = v_uvStart + pos * v_uvSize;\n  gl_FragColor = texture2D(iconTexture, uv);\n  gl_FragColor.a *= v_alpha;\n}");
a.add("shaders/icon.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform sampler2D iconTexture;\nvarying vec2 v_uvSize;\nvarying vec2 v_uvStart;\nvarying float v_alpha;\nvarying vec2 v_psIconOrigin; \nvarying vec2 v_psIconSize ; \nvoid main() {\n  vec2 position = vec2(gl_PointCoord.s, 1.0 - gl_PointCoord.t);\n  vec2 psTopRight = v_psIconOrigin + v_psIconSize;\n  \n  \n  if (position.x < v_psIconOrigin.x || position.x >= psTopRight.x ||\n      position.y < v_psIconOrigin.y || position.y >= psTopRight.y ) {\n    discard;\n  }\n  \n  position = (position - v_psIconOrigin) / v_psIconSize;\n  vec2 uv = v_uvStart + position * v_uvSize;\n  gl_FragColor = texture2D(iconTexture, uv);\n  gl_FragColor.a *= v_alpha;\n}");
a.add("shaders/icon.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform vec2 viewportSize;\nuniform mat4 modelViewProjMatrix;\nuniform float pr;\n#if SNAP_ICONS_TO_PIXEL\n# if ALLOW_SUPERSAMPLING\n  uniform float pixelSnapFactor;\n# endif\n#endif\nattribute vec2 tilePosition;\nattribute vec2 uvSize;\nattribute vec2 uvStart;\nattribute vec2 size;\nattribute float alpha;\nvarying vec2 v_uvSize;\nvarying vec2 v_uvStart;\nvarying float v_alpha;\nvarying vec2 v_psIconOrigin; \nvarying vec2 v_psIconSize;   \nvoid main() {\n  v_uvStart = uvStart;\n  v_uvSize = uvSize;\n  v_alpha = alpha;\n  float pointSize = max(size.x, size.y);\n#if SNAP_ICONS_TO_PIXEL\n# if !ALLOW_SUPERSAMPLING\n  if (mod(pointSize * pr, 2.0) == 1.0) {\n    pointSize += 2.0;\n  }\n# endif\n#endif\n  vec2 dcPixelSize = 2.0 / (pr * viewportSize);\n  v_psIconOrigin = (pointSize - size) * 0.5 / pointSize;\n  v_psIconSize = size / pointSize;\n  vec4 dcPosition = modelViewProjMatrix * vec4(tilePosition, 0.0, 1.0);\n  dcPosition /= dcPosition.w;\n  vec2 ssPosition = (dcPosition.xy + vec2(1.0, 1.0)) * 0.5 * viewportSize;\n#if SNAP_ICONS_TO_PIXEL\n# if !ALLOW_SUPERSAMPLING\n  float pixelSnapFactor = pr;\n# endif\n  \n  \n  \n  \n  \n  \n  \n  ssPosition = floor(pixelSnapFactor * ssPosition + 0.5) / pixelSnapFactor;\n# if ALLOW_SUPERSAMPLING\n  \n  \n  ssPosition.xy -= (pr - pixelSnapFactor) * mod(size, 2.0) / pr;\n# endif\n  dcPosition.xy = (2.0 * ssPosition / viewportSize) - vec2(1.0, 1.0);\n  vec2 uvOffset = vec2(0.5, 0.5);\n#else\n  vec2 uvOffset = mod(ssPosition, 1.0);\n#endif\n  v_psIconOrigin -= uvOffset * dcPixelSize;\n  \n  \n  \n  \n  float margin = pointSize / min(viewportSize.x, viewportSize.y);\n  float upperBound = 1.0 + margin;\n  float lowerBound = -1.0 - margin;\n  if (dcPosition.x < -1.0 && dcPosition.x > lowerBound) {\n    v_psIconOrigin.x -= (-1.0 - dcPosition.x) * viewportSize.x / pointSize / 2.0;\n    dcPosition.x = -1.0;\n  } else if (dcPosition.x > 1.0 && dcPosition.x < upperBound) {\n    v_psIconOrigin.x += (dcPosition.x - 1.0) * viewportSize.x / pointSize / 2.0;\n    dcPosition.x = 1.0;\n  }\n  if (dcPosition.y < -1.0 && dcPosition.y > lowerBound) {\n    v_psIconOrigin.y -= (-1.0 - dcPosition.y) * viewportSize.y / pointSize / 2.0;\n    dcPosition.y = -1.0;\n  } else if (dcPosition.y > 1.0 && dcPosition.y < upperBound) {\n    v_psIconOrigin.y += (dcPosition.y - 1.0) * viewportSize.y / pointSize / 2.0;\n    dcPosition.y = 1.0;\n  }\n  gl_Position = dcPosition;\n  gl_PointSize = pointSize * pr;\n}");
a.add("shaders/line-fill.frag","#ifdef GL_ES\n  precision highp float;\n  precision mediump int;\n#endif\nuniform vec4 color;\nuniform float alpha;\nuniform float lineAAPointCount;\nuniform float width0;\nuniform float width1;\nuniform float widthFactor;\nuniform float lineThreshold;\nvarying vec2 v_v0;\nvarying vec2 v_v1;\nvarying vec2 v_pos;\nvarying float v_off;\nvarying float v_sqlen;\n#ifdef RENDER_PATTERN\nvarying vec2 v_ssV0;\nvarying float v_ssAdvance;\nvarying vec2 v_ssPosition;\nuniform sampler2D patternTexture;\nuniform vec2 patternTextureSize;\n#endif\nvoid main() {\n#ifdef RENDERING_TEST\n   gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);\n   return;\n#endif\n  vec2 v1 = v_pos - v_v0;\n  vec2 v2 = v_v1 - v_v0;\n  float t = clamp(dot(v1, v2) / v_sqlen, 0.0, 1.0);\n  float u = length(v1 - v2 * t);\n  float lineFactor = 1.0 - clamp((u / (widthFactor * TILES_PER_POINT) - ((v_off > 0.0 ? width1 : width0) - lineAAPointCount * 0.5)) / lineAAPointCount, 0.0, 1.0);\n  if (lineFactor < lineThreshold) {\n    discard;\n  }\n#ifdef RENDER_PATTERN\n  float distanceFromOrigin = length(v_ssPosition - v_ssV0);\n  float v = (v_ssAdvance + distanceFromOrigin) / patternTextureSize.y;\n  float patternAlpha = texture2D(patternTexture, vec2(0.5, v)).a;\n#ifdef RENDER_ALPHA\n  if (patternAlpha < 1.0) {\n    discard;\n  }\n  gl_FragColor = vec4(color.rgb, alpha);\n#else\n  gl_FragColor = vec4(color.rgb, color.a * alpha * lineFactor * patternAlpha);\n#endif\n#else \n#ifdef RENDER_ALPHA\n  gl_FragColor = vec4(color.rgb, alpha);\n#else\n  gl_FragColor = vec4(color.rgb, color.a * alpha * lineFactor);\n#endif\n#endif\n}");
a.add("shaders/line-fill.vert","#ifdef GL_ES\n  precision highp float;\n  precision highp sampler2D;\n  precision mediump int;\n#endif\nattribute float refIndex;\nattribute float offset;\nattribute float side;\nuniform float lineSectionOffset;\nuniform float maxIndex;\nuniform vec2 positionDataTextureSize;\nuniform sampler2D positionDataTexture;\nuniform float width0;\nuniform float width1;\nuniform float widthFactor;\nuniform float lineAAPointCount;\nuniform mat4 modelViewProjMatrix;\nvarying vec2 v_v0;\nvarying vec2 v_v1;\nvarying vec2 v_pos;\nvarying float v_off;\nvarying float v_sqlen;\n#ifdef RENDER_PATTERN\nuniform sampler2D advanceTexture;\nuniform vec2 advanceTextureSize;\nuniform vec2 viewportSize;\nuniform float zoom;\nvarying vec2 v_ssV0;\nvarying float v_ssAdvance;\nvarying vec2 v_ssPosition;\n#endif\nfloat unpackUnsignedFloat(vec2 value) {\n  float packedInt = floor(value.y * 255.0) * 256.0 + floor(value.x * 255.0);\n  return packedInt * TILES_PER_POINT;\n}\nvec2 texLocationFromIndex(float index, vec2 size) {\n  float pixel = index + 0.01;\n  float x = floor(mod(pixel, size.x)) / size.x;\n  float y = floor(pixel / size.x) / size.y;\n  return vec2(x, y);\n}\nvec2 getVertex(float index) {\n  vec4 packedPosition = texture2D(positionDataTexture,\n              texLocationFromIndex(index + lineSectionOffset, positionDataTextureSize));\n  return vec2(unpackUnsignedFloat(packedPosition.xy),\n              unpackUnsignedFloat(packedPosition.zw));\n}\n#ifdef RENDER_PATTERN\nfloat getAdvance(float index) {\n  vec4 packedAdvance = texture2D(advanceTexture, texLocationFromIndex(index, advanceTextureSize));\n  return ((packedAdvance.w * 256.0 + packedAdvance.z) * 256.0 + packedAdvance.y) * 256.0 + packedAdvance.x;\n}\n#endif\nvoid main() {\n  float index = refIndex + offset;\n  bool left = bool(offset);\n  vec2 v0 = getVertex(index - 1.0);\n  vec2 v1 = getVertex(index);\n  vec2 v2 = getVertex(index + 1.0);\n  float jump0 = float(v0.y > LINE_JUMP_VERTEX_CEIL || index == 0.0);\n  float jump1 = float(v1.y > LINE_JUMP_VERTEX_CEIL);\n  float jump2 = float(v2.y > LINE_JUMP_VERTEX_CEIL || index == maxIndex);\n  float endcap0 = float(v0.x > LINE_DRAW_ENDCAP_CEIL);\n  float endcap1 = float(v1.x > LINE_DRAW_ENDCAP_CEIL);\n  float endcap2 = float(v2.x > LINE_DRAW_ENDCAP_CEIL);\n  v0 -= SIGNED_VERTEX_OFFSET + vec2(LINE_DRAW_ENDCAP_OFFSET * endcap0, LINE_JUMP_VERTEX_OFFSET * jump0);\n  v1 -= SIGNED_VERTEX_OFFSET + vec2(LINE_DRAW_ENDCAP_OFFSET * endcap1, LINE_JUMP_VERTEX_OFFSET * jump1);\n  v2 -= SIGNED_VERTEX_OFFSET + vec2(LINE_DRAW_ENDCAP_OFFSET * endcap2, LINE_JUMP_VERTEX_OFFSET * jump2);\n  jump0 *= jump1;\n  jump2 *= jump1;\n  vec2 tangent0 = jump0 == 1.0 ? vec2(0.0, 0.0) : normalize(v1 - v0);\n  vec2 tangent1 = jump2 == 1.0 ? vec2(0.0, 0.0) : normalize(v1 - v2);\n  vec2 normal0 = vec2(tangent0.y, -tangent0.x);\n  vec2 normal1 = vec2(-tangent1.y, tangent1.x);\n  vec2 miter = normal0 == -normal1 ? normal0 : normalize(normal0 + normal1);\n  miter /= dot(miter, jump0 == 1.0 ? normal1 : normal0);\n  vec2 extend = endcap1 * (left ? tangent0 : tangent1);\n  v_v0 = left ? v0 : v1;\n  v_v1 = left ? v1 : v2;\n  v_off = width1 * side - width0 * (1.0 - side);\n  v_pos = v1 + (miter * (side * 2.0 - 1.0) + extend) * (abs(v_off) + lineAAPointCount * 0.5) * widthFactor * TILES_PER_POINT;\n  v_sqlen = dot(v_v1 - v_v0, v_v1 - v_v0);\n  gl_Position = modelViewProjMatrix * vec4(v_pos, 0.0, 1.0) * (1.0 - (left ? jump0 : jump2));\n#ifdef RENDER_PATTERN\n  vec4 center = modelViewProjMatrix * vec4(v1, 0.0, 1.0);\n  float virtualViewportFactor = pow(2.0, -mod(zoom, 0.5));\n  vec2 virtualViewportSize = viewportSize * virtualViewportFactor;\n  float v0Advance = getAdvance(refIndex);\n  float v1Advance = getAdvance(refIndex + 1.0);\n  vec4 dcV0 = modelViewProjMatrix * vec4(v_v0, 0.0, 1.0);\n  vec4 dcV1 = modelViewProjMatrix * vec4(v_v1, 0.0, 1.0);\n  dcV0 /= dcV0.w;\n  dcV1 /= dcV1.w;\n  center /= center.w;\n  vec2 ssV0 = (dcV0.xy + vec2(1.0, 1.0)) * 0.5 * virtualViewportSize;\n  vec2 ssV1 = (dcV1.xy + vec2(1.0, 1.0)) * 0.5 * virtualViewportSize;\n  vec2 ssCenter = (center.xy + vec2(1.0, 1.0)) * 0.5 * virtualViewportSize;\n  float ssSegmentLength = length(ssV1 - ssV0);\n  float ssAdvanceFactor = ssSegmentLength / (v1Advance - v0Advance);\n  v_ssAdvance = v0Advance * ssAdvanceFactor;\n  v_ssV0 = ssV0;\n  v_ssPosition = ssCenter;\n#endif\n#ifdef RENDERING_TEST\n  gl_PointSize = 1.0;\n#endif\n}");
a.add("shaders/line-normal-gen.frag","#ifdef GL_ES\n  precision highp float;\n  precision highp sampler2D;\n#endif\nvarying vec2 v_uv;\nuniform sampler2D vertexTexture;\nuniform vec2 vertexTextureSize;\nvec2 shortTo8BitVec2(float value) {\n  vec2 res;\n  if (value < 0.0) {\n    res.x = mod(floor(-value), 256.0);\n    res.y = 128.0 + floor(-value / 256.0);\n  } else {\n    res.x = floor(mod(value, 256.0));\n    res.y = floor(value / 256.0);\n  }\n  return res / 255.0;\n}\nvec4 toRGBA(vec2 value) {\n  return vec4(shortTo8BitVec2(value.x),\n              shortTo8BitVec2(value.y));\n}\nfloat floatToInt(float value) {\n  return floor(value * 255.0);\n}\nfloat shortToFloat(float value) {\n  return value / TILE_SIZE_IN_POINT;\n}\nfloat unpackUnsignedFloat(vec2 value) {\n  float packedInt = floatToInt(value.y) * 256.0 + floatToInt(value.x);\n  return shortToFloat(packedInt);\n}\nvec2 texLocationFromIndex(float index) {\n  float x = floor(mod(index, vertexTextureSize.x)) / vertexTextureSize.x;\n  float y = floor(index/ vertexTextureSize.x) / vertexTextureSize.y;\n  return vec2(x, y);\n}\nvec2 getVertexCenter(float index) {\n  vec4 packedPosition = texture2D(vertexTexture, texLocationFromIndex(index));\n  return vec2(unpackUnsignedFloat(packedPosition.xy),\n              unpackUnsignedFloat(packedPosition.zw));\n}\nfloat lineIntersections(vec2 p, vec2 r,\n                        vec2 q, vec2 s) {\n  vec2 pq = q - p;\n  return cross(vec3(pq, 0.0), vec3(s, 0.0)).z / cross(vec3(r, 0.0), vec3(s, 0.0)).z;\n}\nfloat indexFromUV(vec2 uv) {\n  float x = floor(uv.x * vertexTextureSize.x);\n  float y = floor(uv.y * vertexTextureSize.y);\n  return y * vertexTextureSize.x + x;\n}\nbool hasEndcap(vec2 vertex) {\n  return vertex.x > LINE_DRAW_ENDCAP_CEIL;\n}\nbool isJumpVertex(vec2 vertex) {\n  return vertex.x > LINE_JUMP_VERTEX_CEIL;\n}\nvoid main() {\n  float index = indexFromUV(v_uv);\n  vec2 p0 = getVertexCenter(index - 1.0);\n  vec2 p1 = getVertexCenter(index + 0.0);\n  vec2 p2 = getVertexCenter(index + 1.0);\n  bool p0IsJump = isJumpVertex(p0);\n  bool p1IsJump = isJumpVertex(p1);\n  bool p2IsJump = isJumpVertex(p2);\n  if (p0IsJump) {\n    p0 -= LINE_JUMP_VERTEX_OFFSET;\n  } else if (hasEndcap(p0)) {\n    p0 -= LINE_DRAW_ENDCAP_OFFSET;\n  }\n  if (p1IsJump) {\n    p1 -= LINE_JUMP_VERTEX_OFFSET;\n  } else if (hasEndcap(p1)) {\n    p1 -= LINE_DRAW_ENDCAP_OFFSET;\n  }\n  if (p2IsJump) {\n    p2 -= LINE_JUMP_VERTEX_OFFSET;\n  } else if (hasEndcap(p2)) {\n    p2 -= LINE_DRAW_ENDCAP_OFFSET;\n  }\n  if (p0IsJump || p1IsJump || p2IsJump) {\n    \n    vec2 normal;\n    if (p2IsJump) {\n      vec2 p1p0 = normalize(p1 - p0);\n      normal = TILE_SIZE_IN_POINT * vec2(p1p0.y, -p1p0.x);\n    } else {\n      vec2 p2p1 = normalize(p1 - p2);\n      normal = TILE_SIZE_IN_POINT * vec2(-p2p1.y, p2p1.x);\n    }\n    gl_FragColor = toRGBA(normal);\n  } else {\n    vec2 p0p1 = normalize(p1 - p0);\n    vec2 p2p1 = normalize(p1 - p2);\n    vec2 np0p1 = vec2(p0p1.y, -p0p1.x);\n    vec2 np2p1 = vec2(-p2p1.y, p2p1.x);\n    vec2 n = np0p1 + np2p1;\n    vec2 a = p1 + np2p1;\n    n = normalize(n);\n    float t = lineIntersections(p1, n, a, p2p1);\n    n = t * n * TILE_SIZE_IN_POINT;\n    gl_FragColor = toRGBA(n);\n  }\n}");
a.add("shaders/line-normal-gen.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nattribute vec2 position;\nvarying vec2  v_uv;\nvoid main() {\n  v_uv = position;\n  gl_Position.zw = vec2(0.0, 1.0);\n  gl_Position.xy = 2.0 * position - vec2(1.0, 1.0);\n}");a.add("shaders/loading.frag","#ifdef GL_ES\n  precision highp float;\n#endif \nuniform vec3 color;\nvoid main() {\n  gl_FragColor = vec4(color, 1.0);\n}");a.add("shaders/loading.vert","#ifdef GL_ES\n  precision highp float;\n#endif \nuniform mat4 viewProjMatrix;\nuniform mat4 modelMatrix;\nattribute vec2 position;\nvoid main() {\n  gl_Position = viewProjMatrix * modelMatrix * vec4(position, 0.0, 1.0);\n}");
a.add("shaders/polygon-fill.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform vec4 fillColor;\nuniform float alpha;\nvoid main() {\n  vec4 baseColor = fillColor;\n  \n  baseColor.a *= alpha;\n  gl_FragColor = baseColor;\n}");a.add("shaders/polygon-fill.vert","#ifdef GL_ES\n  precision highp float;\n  precision highp sampler2D;\n#endif\nattribute float dataIndex;\nuniform mat4 modelViewProjMatrix;\nuniform float polygonOffset;\nuniform float drawingStartIndex;\nuniform vec2 dataTextureSize;\nuniform sampler2D positionDataTexture;\nconst float positionOffset = 0.0;\nconst float dataSize = 1.0;\nfloat floatToInt(float value) {\n  return floor(value * 255.0);\n}\nfloat shortToFloat(float value) {\n  return value / TILE_SIZE_IN_POINT;\n}\nfloat unpackUnsignedFloat(vec2 value) {\n  float packedInt = floatToInt(value.y) * 256.0 + floatToInt(value.x);\n  return shortToFloat(packedInt);\n}\nvec2 texLocationFromIndex(highp float index, float offset) {\n  index = polygonOffset + index;\n  float pixel = index * dataSize + offset;\n  float x = floor(mod(pixel, dataTextureSize.x)) / dataTextureSize.x;\n  float y = floor(pixel / dataTextureSize.x) / dataTextureSize.y;\n  return vec2(x, y);\n}\nbool isJump(vec2 vertex) {\n  return vertex.y > LINE_JUMP_VERTEX_CEIL;\n}\nbool drawEndcap(vec2 vertex) {\n  return vertex.x > LINE_DRAW_ENDCAP_CEIL;\n}\nvec2 getVertexCenter(float index) {\n  vec4 packedPosition = texture2D(positionDataTexture, texLocationFromIndex(index, positionOffset));\n  vec2 vertex = vec2(unpackUnsignedFloat(packedPosition.xy),\n              unpackUnsignedFloat(packedPosition.zw));\n  vertex.x -= float(drawEndcap(vertex)) * LINE_DRAW_ENDCAP_OFFSET;\n  vertex.y -= float(isJump(vertex)) * LINE_JUMP_VERTEX_OFFSET;\n  vertex -= SIGNED_VERTEX_OFFSET;\n  return vertex;\n}\nvec4 worldToDc(vec2 v) {\n  \n  vec4 ucv = modelViewProjMatrix * vec4(v, 0.0, 1.0);\n  return ucv;\n}\nvoid main() {\n  gl_Position = worldToDc(getVertexCenter(dataIndex + drawingStartIndex));\n}");
a.add("shaders/polygon-stroke.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nvarying vec2 v_position;\nvarying float v_normalLength;\nvarying vec2 v_center1;\nvarying vec2 v_center2;\nvarying float v_expansionDirection;\nvarying float v_expansionLength;\nvarying float v_aaSize;\nuniform float strokeWidth;\nuniform vec4 strokeColor;\nuniform float alpha;\nvoid main() {\n    gl_FragColor = strokeColor;\n    \n    vec2 v1 = v_position - v_center1;\n    vec2 v2 = v_position - v_center2;\n    float len1 = length(v1);\n    float len2 = length(v2);\n    float isBlended = step(strokeWidth, abs(v_expansionLength));\n    float blendFactor = isBlended * (strokeWidth - v_expansionLength) / v_aaSize;\n    gl_FragColor = mix(strokeColor, vec4(0.0, 0.0, 0.0, 0.0), blendFactor);\n    vec2 center;\n    vec2 direction;\n    float len;\n    if (len1 > len2) {\n      len = len2;\n      center = v_center2;\n      direction = v_center2 - v_center1;\n    } else {\n      len = len1;\n      center = v_center1;\n      direction = v_center1 - v_center2;\n    }\n    float dotValue = dot(v_position - center, direction);\n    if ( dotValue > 0.0 && len > strokeWidth * (1.0 + v_aaSize)) {\n      discard;\n    }\n    gl_FragColor.a *= alpha;\n}");
a.add("shaders/polygon-stroke.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nvarying vec2 v_color;\nvarying vec2 v_center;\nvarying vec2 v_center1;\nvarying vec2 v_center2;\nvarying vec2 v_position;\nvarying float v_normalLength;\nvarying float v_expansionDirection;\nvarying float v_expansionLength;\nvarying float v_aaSize;\nattribute float dataIndex;\nattribute float centerIndex1;\nattribute float centerIndex2;\nattribute float expansionDirection;\nuniform float polygonSize;\nuniform float polygonOffset;\nuniform float drawingStartIndex;\nuniform vec2 dataTextureSize;\nuniform sampler2D positionDataTexture;\nuniform sampler2D normalDataTexture;\nuniform sampler2D normalDataTexture2;\nuniform float strokeWidth;\nuniform vec2 screenSize;\nuniform mat4 viewProjMatrix;\nuniform mat4 modelMatrix;\nconst float dataSize = 1.0;\nconst float positionOffset = 0.0;\nconst float normalOffset = 0.0;\nconst float aaSize = 0.2;\nfloat floatToInt(float value) {\n  return floor(value * 255.0);\n}\nfloat shortToFloat(float value) {\n  return value / TILE_SIZE_IN_POINT;\n}\nfloat unpackUnsignedFloat(vec2 value) {\n  float packedInt = floatToInt(value.y) * 256.0 + floatToInt(value.x);\n  return shortToFloat(packedInt);\n}\nvec2 texLocationFromIndex(float index, float offset) {\n  index = polygonOffset + mod(index + 0.01, polygonSize) - 0.01;\n  float pixel = index * dataSize + offset;\n  \n  float x = floor(mod(pixel, dataTextureSize.x)) / dataTextureSize.x;\n  float y = floor(pixel / dataTextureSize.x) / dataTextureSize.y;\n  \n  return vec2(x, y);\n}\nfloat unpackSignedFloat(vec2 value) {\n  float byte1 = floatToInt(value.y);\n  float packedInt;\n  if (byte1 > 127.0) {\n    packedInt = -(byte1 - 128.0) * 256.0 - floatToInt(value.x);\n  } else {\n    packedInt = byte1 * 256.0 + floatToInt(value.x);\n  }\n  return shortToFloat(packedInt);\n}\nvec2 getNormal(float index) {\n  vec4 packedNormal = texture2D(normalDataTexture, texLocationFromIndex(index, normalOffset));\n  return (vec2(unpackSignedFloat(packedNormal.xy),\n               unpackSignedFloat(packedNormal.zw)));\n}\nvec2 getVertexCenter(float index) {\n  vec4 packedPosition = texture2D(positionDataTexture, texLocationFromIndex(index, positionOffset));\n  return vec2(unpackUnsignedFloat(packedPosition.xy),\n              unpackUnsignedFloat(packedPosition.zw));\n}\nvec2 dcToSc(vec2 v) {\n  vec2 ndcv = (v + vec2(1.0, 1.0)) * 0.5;\n  return screenSize * ndcv;\n}\nvec2 scToDc(vec2 v) {\n  return (2.0 * v / screenSize) - vec2(1.0, 1.0);\n}\nvec2 worldToSc(vec2 v) {\n  \n  vec4 ucv = viewProjMatrix * modelMatrix * vec4(v, 0.0, 1.0);\n  \n  vec2 dcv = ucv.xy / ucv.w;\n  \n  \n  return dcToSc(dcv);\n}\nvec2 getPosition() {\n  vec2 normal = TILE_SIZE_IN_POINT * getNormal(drawingStartIndex + dataIndex) / TILE_SIZE_IN_POINT;\n  float originalLength = length(normal);\n  v_normalLength = originalLength;\n  \n  normal = normalize((viewProjMatrix * modelMatrix * vec4(normalize(normal), 0.0, 0.0)).xy * screenSize);\n  \n  normal *= originalLength;\n  vec2 scPosition = worldToSc(getVertexCenter(drawingStartIndex + dataIndex));\n  vec2 center1 = getVertexCenter(drawingStartIndex + centerIndex1);\n  vec2 center2 = getVertexCenter(drawingStartIndex + centerIndex2);\n  v_center1 = worldToSc(center1);\n  v_center2 = worldToSc(center2);\n  v_expansionDirection = expansionDirection;\n  v_expansionLength = expansionDirection * strokeWidth * (1.0 + aaSize);\n  scPosition += v_expansionLength * normal;\n  v_aaSize = aaSize;\n  v_position = scPosition;\n  return scToDc(scPosition);\n}\nvoid main() {\n  gl_Position = vec4(getPosition(), 0.0, 1.0);\n}");
a.add("shaders/raster-tile.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform sampler2D rasterTileTexture;\nuniform float alpha;\nvarying vec2 v_uv;\nvoid main() {\n  gl_FragColor = texture2D(rasterTileTexture, v_uv);\n  gl_FragColor.a *= alpha;\n}");a.add("shaders/raster-tile.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform mat4 modelViewProjMatrix;\nattribute vec2 position;\nvarying vec2 v_uv;\nvoid main() {\n  v_uv = position;\n  gl_Position = modelViewProjMatrix * vec4(position, 0.0, 1.0);\n}");
a.add("shaders/text-label.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nvarying vec2 v_uv;\nuniform sampler2D glyphTexture;\nuniform vec4 color;\nuniform float alpha;\nuniform float transitionEndDistance;\nuniform float transitionStartDistance;\nuniform float fontScaleFactor;\nconst float DISCARD_MIN = 0.01;\nvec4 getColor(vec2 uv) {\n  vec4 color = texture2D(glyphTexture, v_uv);\n  return color;\n}\nvoid main() {\n#ifdef RENDERING_TEST\n   gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);\n   return;\n#endif\n  vec4 texColor = getColor(v_uv);\n  float texAlpha = texColor.a;\n  \n  \n  \n  \n  float distance = (1.0 - texAlpha) * 2.0 - 1.0;\n  gl_FragColor = color;\n  float factor = 1.0 - smoothstep(transitionStartDistance, transitionEndDistance, distance);\n  gl_FragColor.a *= factor * alpha;\n}");
a.add("shaders/shield-text-label.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nvarying vec2 v_uv;\nuniform sampler2D glyphTexture;\nuniform vec4 color;\nuniform float alpha;\nconst float DISCARD_MIN = 0.01;\nvec4 getColor(vec2 uv) {\n  vec4 color = texture2D(glyphTexture, v_uv);\n  return color;\n}\nvoid main() {\n  gl_FragColor = getColor(v_uv);\n  gl_FragColor.a *= alpha;\n}");a.add("shaders/axis-aligned-text-label.vert","#ifdef GL_ES\n  precision highp float;\n  precision highp sampler2D;\n#endif\nvarying vec2 v_uv;\nuniform mat4 modelViewProjMatrix;\nattribute vec2 position;\nattribute float dataIndex;\nuniform sampler2D dataTexture;\nuniform vec2 dataTextureSize;\nuniform vec2 glyphTexturePoints;\nuniform vec2 viewportSize;\n#if SNAP_GLYPHS_TO_PIXEL\n# if ALLOW_SUPERSAMPLING\n  uniform float pixelSnapFactor;\n# endif\n#endif\nuniform float fontScaleFactor;\nconst float advanceOffset = 0.0;  \nconst float uvStartOffset = 1.0;  \nconst float uvEndOffset = 2.0;    \nconst float dataSize = 3.0;\nuniform float halfLineWidth;\nuniform vec2 center;\nuniform vec2 positionOffset;\nuniform float labelIndexOffset;\nuniform float pr;\nfloat floatToInt(float value) {\n  return floor(value * 255.0);\n}\nfloat shortToFloat(float value) {\n  return value / TILE_SIZE_IN_POINT;\n}\nfloat unpackSignedFloat(vec2 value) {\n  float byte1 = floatToInt(value.y);\n  float packedInt;\n  if (byte1 > 127.0) {\n    packedInt = -(byte1 - 128.0) * 256.0 - floatToInt(value.x);\n  } else {\n    packedInt = byte1 * 256.0 + floatToInt(value.x);\n  }\n  return shortToFloat(packedInt);\n}\nfloat unpackUnsignedFloat(vec2 value) {\n  float packedInt = floatToInt(value.y) * 256.0 + floatToInt(value.x);\n  return shortToFloat(packedInt);\n}\nvec2 texLocationFromIndex(float index, float offset) {\n  float pixel = index * dataSize + offset + 0.01;\n  float x = floor(mod(pixel, dataTextureSize.x)) / dataTextureSize.x;\n  float y = floor(pixel / dataTextureSize.x) / dataTextureSize.y;\n  return vec2(x, y);\n}\nvec4 getGlyphBounds(float glyphIndex) {\n  vec2 uvStartCoord = texLocationFromIndex(glyphIndex, uvStartOffset);\n  vec2 uvEndCoord = texLocationFromIndex(glyphIndex, uvEndOffset);\n  vec4 packedStartUV = texture2D(dataTexture, uvStartCoord);\n  vec4 packedEndUV = texture2D(dataTexture, uvEndCoord);\n  vec2 startUV = vec2(unpackUnsignedFloat(packedStartUV.xy), unpackUnsignedFloat(packedStartUV.zw));\n  vec2 endUV = vec2(unpackUnsignedFloat(packedEndUV.xy), unpackUnsignedFloat(packedEndUV.zw));\n  return vec4(startUV, endUV);\n}\nvec2 getGlyphSize(vec4 glyphBounds) {\n  return glyphBounds.zw - glyphBounds.xy;\n}\nvec2 getAdvance(float glyphIndex) {\n  vec2 advanceTexCoord = texLocationFromIndex(glyphIndex, advanceOffset);\n  vec4 packedAdvance = texture2D(dataTexture, advanceTexCoord);\n  vec2 result;\n  result.x = unpackSignedFloat(packedAdvance.xy);\n  result.y = unpackSignedFloat(packedAdvance.zw);\n  return result;\n}\nvec2 straightLinePosition(vec2 advance) {\n  vec2 ssPosition;\n  vec4 dcPosition = modelViewProjMatrix * vec4(center, 0.0, 1.0);\n  dcPosition /= dcPosition.w;\n  ssPosition = (dcPosition.xy + vec2(1.0, 1.0)) * 0.5 * viewportSize;\n  ssPosition += fontScaleFactor * advance;\n  ssPosition += positionOffset;\n#if SNAP_GLYPHS_TO_PIXEL\n#if !ALLOW_SUPERSAMPLING\n  float pixelSnapFactor = pr;\n#endif\n  \n  ssPosition = floor(pixelSnapFactor * ssPosition + 0.5) / pixelSnapFactor;\n#endif\n  return ssPosition;\n}\nvoid setUV(vec2 bl, vec2 tr) {\n  vec2 originalGlyphSize = (tr - bl);\n  tr /= glyphTexturePoints;\n  bl /= glyphTexturePoints;\n  vec2 uvSize = tr - bl;\n  v_uv = bl + position * uvSize;\n}\nvoid setVertexPosition(vec2 advance,\n                       vec2 bl,\n                       vec2 tr) {\n  vec2 glyphSize = (tr - bl) * fontScaleFactor;\n  \n  gl_Position.xy = position * glyphSize;\n  vec2 ssLinePosition = straightLinePosition(advance);\n  gl_Position.xy += ssLinePosition;\n  gl_Position.xy = (2.0 * (gl_Position.xy) / viewportSize) - vec2(1.0, 1.0);\n  gl_Position.zw = vec2(1.0, 1.0);\n}\nvoid main() {\n  float glyphIndex = dataIndex + labelIndexOffset;\n  vec2 advance = TILE_SIZE_IN_POINT * getAdvance(glyphIndex);\n  vec4 glyphBounds = TILE_SIZE_IN_POINT * getGlyphBounds(glyphIndex);\n  setUV(glyphBounds.xy, glyphBounds.zw);\n  setVertexPosition(advance, glyphBounds.xy, glyphBounds.zw);\n}");
a.add("shaders/curved-text-label.vert","#ifdef GL_ES\n  precision highp float;\n  precision highp sampler2D;\n#endif\nvarying vec2 v_uv;\nuniform mat4 modelViewProjMatrix;\nattribute vec2 position;\nattribute float dataIndex;\nuniform sampler2D dataTexture;\nuniform vec2 dataTextureSize;\nuniform float maxAdvance;\nuniform float fontScaleFactor;\nuniform vec2 glyphTexturePoints;\nuniform float haloSize;\nconst float advanceOffset = 0.0;  \nconst float uvStartOffset = 1.0;  \nconst float uvEndOffset = 2.0;    \nconst float W1 = 5.0 / 9.0;\nconst float W2 = 8.0 / 9.0;\nconst float W3 = 5.0 / 9.0;\nconst float dataSize = 3.0;\nuniform vec2 viewportSize;\nuniform vec2 p0;\nuniform vec2 p1;\nuniform vec2 p2;\nuniform vec2 p3;\nuniform float halfLineWidth;\nuniform vec2 center;\nuniform vec2 positionOffset;\nuniform float labelIndexOffset;\nfloat derivativeLength(float t, vec4 Vx, vec4 Vy) {\n  \n  vec4  dT = vec4(3.0 * t * t, 2.0 * t, 1.0, 0.0);\n  \n  mat4 B = mat4(-1.0,  3.0,    -3.0, 1.0,\n                3.0,   -6.0,   3.0,  0.0,\n                -3.0,  3.0,    0.0,  0.0,\n                1.0,   0.0,    0.0,  0.0);\n  vec4 dTB = dT * B;\n  return length(vec2(dot(dTB, Vx), dot(dTB, Vy)));\n}\nfloat curveLength(float t, vec4 Vx, vec4 Vy) {\n  return ( 0.5 * t *\n    (W1 * derivativeLength(t * 1.774597 * 0.5, Vx, Vy) +\n     W2 * derivativeLength(t * 0.5, Vx, Vy) +\n     W3 * derivativeLength(t * 0.225403 * 0.5, Vx, Vy)));\n}\nvec4 bezierCurvePosition(vec2 advance) {\n  vec4 ndcp0 = modelViewProjMatrix * vec4(p0, 0.0, 1.0);\n  vec4 ndcp1 = modelViewProjMatrix * vec4(p1, 0.0, 1.0);\n  vec4 ndcp2 = modelViewProjMatrix * vec4(p2, 0.0, 1.0);\n  vec4 ndcp3 = modelViewProjMatrix * vec4(p3, 0.0, 1.0);\n  vec2 ssp0 = ((ndcp0 / ndcp0.w).xy + vec2(1.0, 1.0)) * 0.5 * viewportSize;\n  vec2 ssp1 = ((ndcp1 / ndcp1.w).xy + vec2(1.0, 1.0)) * 0.5 * viewportSize;\n  vec2 ssp2 = ((ndcp2 / ndcp2.w).xy + vec2(1.0, 1.0)) * 0.5 * viewportSize;\n  vec2 ssp3 = ((ndcp3 / ndcp3.w).xy + vec2(1.0, 1.0)) * 0.5 * viewportSize;\n  if (ssp0.x > ssp3.x) {\n    vec2 tmp = ssp3;\n    ssp3 = ssp0;\n    ssp0 = tmp;\n    tmp = ssp1;\n    ssp1 = ssp2;\n    ssp2 = tmp;\n  }\n  vec4 Vx = vec4(ssp0.x, ssp1.x, ssp2.x, ssp3.x);\n  vec4 Vy = vec4(ssp0.y, ssp1.y, ssp2.y, ssp3.y);\n  float minT = 0.0;\n  float maxT = 1.0;\n  float minLength = 0.0;\n  \n  float anchorLength = curveLength(BEZIER_CURVE_ANCHOR, Vx, Vy);\n  float maxLength = curveLength(1.0, Vx, Vy);\n  float anchoredAdvance = advance.x - halfLineWidth + anchorLength;\n  if (anchoredAdvance > maxLength) {\n    return vec4(2.0, 2.0, 0.0, 0.0);\n  } else {\n    \n    for (int i = 0; i < 10; i++) {\n      float middleT = mix(minT, maxT, 0.5);\n      float middleLength = curveLength(middleT, Vx, Vy);\n      if (anchoredAdvance > middleLength) {\n        minT = middleT;\n        minLength = middleLength;\n      } else {\n        maxT = middleT;\n        maxLength = middleLength;\n      }\n    }\n    \n    float t = mix(minT, maxT, anchoredAdvance / (maxLength + minLength));\n    \n    float t2 = t * t;\n    float t3 = t * t2;\n    vec4 T = vec4(t3,\n                  t2,\n                  t,\n                  1.0);\n    vec4 dT = vec4(3.0 * t2,\n                   2.0 * t,\n                   1.0,\n                   0.0);\n    \n    mat4 B = mat4(-1.0,  3.0,    -3.0, 1.0,\n                  3.0,   -6.0,   3.0,  0.0,\n                  -3.0,  3.0,    0.0,  0.0,\n                  1.0,   0.0,    0.0,  0.0);\n    vec4 TB = T * B;\n    vec2 pos = vec2(dot(TB, Vx), dot(TB, Vy));\n    vec4 dTB = dT * B;\n    vec2 tangent = vec2(dot(dTB, Vx), dot(dTB, Vy));\n    \n    vec2 normal = normalize(vec2(-tangent.y, tangent.x));\n    pos += normal * (advance.y + positionOffset.y);\n    pos = (pos * 2.0 / viewportSize) - vec2(1.0, 1.0);\n    return vec4(pos, normal);\n  }\n}\nfloat floatToInt(float value) {\n  return floor(value * 255.0);\n}\nfloat shortToFloat(float value) {\n  return value / TILE_SIZE_IN_POINT;\n}\nfloat unpackSignedFloat(vec2 value) {\n  float byte1 = floatToInt(value.y);\n  float packedInt;\n  if (byte1 > 127.0) {\n    packedInt = -(byte1 - 128.0) * 256.0 - floatToInt(value.x);\n  } else {\n    packedInt = byte1 * 256.0 + floatToInt(value.x);\n  }\n  return shortToFloat(packedInt);\n}\nfloat unpackUnsignedFloat(vec2 value) {\n  float packedInt = floatToInt(value.y) * 256.0 + floatToInt(value.x);\n  return shortToFloat(packedInt);\n}\nvec2 texLocationFromIndex(float index, float offset) {\n  float pixel = index * dataSize + offset + 0.01;\n  float x = floor(mod(pixel, dataTextureSize.x)) / dataTextureSize.x;\n  float y = floor(pixel / dataTextureSize.x) / dataTextureSize.y;\n  return vec2(x, y);\n}\nvec4 getGlyphBounds(float glyphIndex) {\n  vec2 uvStartCoord = texLocationFromIndex(glyphIndex, uvStartOffset);\n  vec2 uvEndCoord = texLocationFromIndex(glyphIndex, uvEndOffset);\n  vec4 packedStartUV = texture2D(dataTexture, uvStartCoord);\n  vec4 packedEndUV = texture2D(dataTexture, uvEndCoord);\n  vec2 startUV = vec2(unpackUnsignedFloat(packedStartUV.xy), unpackUnsignedFloat(packedStartUV.zw));\n  vec2 endUV = vec2(unpackUnsignedFloat(packedEndUV.xy), unpackUnsignedFloat(packedEndUV.zw));\n  return vec4(startUV, endUV);\n}\nvec2 getGlyphSize(vec4 glyphBounds) {\n  return glyphBounds.zw - glyphBounds.xy;\n}\nvec2 getAdvance(float glyphIndex) {\n  vec2 advanceTexCoord = texLocationFromIndex(glyphIndex, advanceOffset);\n  vec4 packedAdvance = texture2D(dataTexture, advanceTexCoord);\n  vec2 result;\n  result.x = unpackSignedFloat(packedAdvance.xy);\n  result.y = unpackSignedFloat(packedAdvance.zw);\n  return result;\n}\nvoid setUV(vec2 bl, vec2 tr) {\n  vec2 originalGlyphSize = (tr - bl);\n  tr /= glyphTexturePoints;\n  bl /= glyphTexturePoints;\n  vec2 uvSize = tr - bl;\n  v_uv = bl + position * uvSize;\n}\nvoid setVertexPosition(vec2 advance,\n                       vec2 bl,\n                       vec2 tr) {\n  vec2 glyphSize = (tr - bl) * fontScaleFactor;\n  \n  gl_Position.xy = position * glyphSize;\n  vec2 bezierAdvance = vec2(advance.x, advance.y) * fontScaleFactor;\n  vec4 bezierPosition = bezierCurvePosition(bezierAdvance);\n  vec2 normal = bezierPosition.zw;\n  float x = dot(normal, vec2(1.0, 0.0));\n  float y = dot(normal, vec2(0.0, 1.0));\n  float alpha = -atan(x, y);\n  mat2 rot = mat2(cos(alpha), sin(alpha),\n      -sin(alpha), cos(alpha));\n  gl_Position.xy = rot * gl_Position.xy;\n  gl_Position.xy = 2.0 * (gl_Position.xy) / (viewportSize);\n  gl_Position.xy += bezierPosition.xy;\n  gl_Position.zw = vec2(1.0, 1.0);\n}\nvoid main() {\n  float glyphIndex = labelIndexOffset + dataIndex;\n  vec2 advance = TILE_SIZE_IN_POINT * getAdvance(glyphIndex);\n  vec4 glyphBounds = TILE_SIZE_IN_POINT * getGlyphBounds(glyphIndex);\n  setUV(glyphBounds.xy, glyphBounds.zw);\n  setVertexPosition(advance, glyphBounds.xy, glyphBounds.zw);\n}");
a.add("shaders/basic.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform vec4 color;\nuniform float alpha;\nvoid main() {\n  gl_FragColor = color;\n  gl_FragColor.a *= alpha;\n}");a.add("shaders/basic.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform mat4 modelViewProjMatrix;\nattribute vec2 position;\nvoid main() {\n  gl_Position = modelViewProjMatrix * vec4(position, 0.0, 1.0);\n}");a.add("shaders/grid.frag","#ifdef GL_ES\n  precision highp float;\n#endif\nuniform vec4 color;\nuniform float alpha;\nvarying float v_alpha;\nvoid main() {\n  gl_FragColor = color;\n  gl_FragColor.a *= v_alpha;\n}");
a.add("shaders/grid.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nattribute vec2 position;\nattribute float useAlpha;\nvarying float v_alpha;\nuniform float alpha;\nuniform mat4 modelViewProjMatrix;\nvoid main() {\n  v_alpha = useAlpha;\n  if (useAlpha > 0.0) {\n    v_alpha = alpha;\n  } else {\n    v_alpha = 1.0;\n  }\n  vec4 dcPosition = modelViewProjMatrix * vec4(position, 0.0, 1.0);\n  gl_Position = dcPosition;\n}");a.add("shaders/line-vertex-fetch.frag","#ifdef GL_ES\n  precision highp float;\n  precision highp sampler2D;\n  precision mediump int;\n#endif\nuniform sampler2D vertexTexture;\nuniform vec2 vertexTextureSize;\nuniform vec2 targetSize;\nuniform vec2 viewportSize;\nuniform float lineStartIndex;\nuniform float lineCount;\nconst float dataSize = 1.0;\nvec2 shortTo8BitVec2(float value) {\n  vec2 res;\n  \n  \n  \n  \n  res.x = floor(mod(value, 256.0));\n  res.y = floor(value / 256.0);\n  return res / 255.0;\n}\nvec4 toRGBA(vec2 value) {\n  return vec4(shortTo8BitVec2(value.x),\n              shortTo8BitVec2(value.y));\n}\nfloat floatToInt(float value) {\n  return floor(value * 255.0);\n}\nfloat shortToFloat(float value) {\n  return value / TILE_SIZE_IN_POINT;\n}\nfloat unpackUnsignedFloat(vec2 value) {\n  float packedInt = floatToInt(value.y) * 256.0 + floatToInt(value.x);\n  return shortToFloat(packedInt);\n}\nvec2 texLocationFromIndex(float index, float offset) {\n  float pixel = index * dataSize + offset + 0.01;\n  float x = floor(mod(pixel, vertexTextureSize.x)) / vertexTextureSize.x;\n  float y = floor(pixel / vertexTextureSize.x) / vertexTextureSize.y;\n  return vec2(x, y);\n}\nbool isJump(vec2 vertex) {\n  return vertex.y > LINE_JUMP_VERTEX_CEIL;\n}\nbool drawEndcap(vec2 vertex) {\n  return vertex.x > LINE_DRAW_ENDCAP_CEIL;\n}\nvec2 getVertex(float index) {\n  vec4 packedPosition = texture2D(vertexTexture, texLocationFromIndex(index, 0.0));\n  vec2 vertex = vec2(unpackUnsignedFloat(packedPosition.xy),\n                     unpackUnsignedFloat(packedPosition.zw));\n  if (drawEndcap(vertex)) {\n    vertex.x -= LINE_DRAW_ENDCAP_OFFSET;\n  }\n  if (isJump(vertex)) {\n    vertex.y -= LINE_JUMP_VERTEX_OFFSET;\n  }\n  vertex -= SIGNED_VERTEX_OFFSET;\n  return vertex;\n}\nfloat indexFromFragCoord() {\n  float line = viewportSize[1] - ceil(targetSize.y - gl_FragCoord.y);\n  float row = gl_FragCoord.x;\n  return row + targetSize.x * line;\n}\nvoid main() {\n  float index = indexFromFragCoord() + lineStartIndex;\n  vec2 vertex = TILE_SIZE_IN_POINT * getVertex(index);\n  gl_FragColor = toRGBA(vertex);\n}");
a.add("shaders/line-vertex-fetch.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nattribute vec2 position;\nvoid main() {\n  gl_Position.zw = vec2(0.0, 1.0);\n  gl_Position.xy = 2.0 * position - vec2(1.0, 1.0);\n}");a.add("shaders/texture-saver.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nattribute vec2 position;\nvarying vec2 v_uv;\nvoid main() {\n  v_uv = position;\n  gl_Position = vec4(position * 2.0 - vec2(1.0, 1.0), 0.0, 1.0);\n}");a.add("shaders/texture-saver.frag","#ifdef GL_ES\n  precision highp float;\n  precision highp sampler2D;\n#endif\nuniform sampler2D originalTexture;\nvarying vec2 v_uv;\nvoid main() {\n  gl_FragColor = texture2D(originalTexture, v_uv);\n}");
a.add("shaders/full-screen.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nattribute vec2 position;\nvoid main() {\n  gl_Position = vec4((position * 2.0 - vec2(1.0, 1.0)), 0.0, 1.0);\n}");a.add("shaders/vertices.vert","#ifdef GL_ES\n  precision highp float;\n#endif\nattribute vec2 position;\nuniform mat4 modelViewProjMatrix;\nuniform float size;\nuniform float pr;\nvoid main() {\n  gl_PointSize = size * pr;\n  gl_Position = modelViewProjMatrix * vec4(position, 0.0, 1.0);\n}");a.add("shaders/vertices.frag",
"#ifdef GL_ES\n  precision highp float;\n#endif\n#ifdef RENDER_TEXTURE\nuniform sampler2D pointTexture;\nuniform vec2 uvStart;\nuniform vec2 uvSize;\n#else\nuniform vec4 color;\n#endif\nuniform float alpha;\nvoid main() {\n#ifdef RENDER_TEXTURE\n  vec2 position = vec2(gl_PointCoord.s, 1.0 - gl_PointCoord.t);\n  vec2 uv = uvStart + position * uvSize;\n  gl_FragColor = texture2D(pointTexture, uv);\n  gl_FragColor.a *= alpha;\n  if (gl_FragColor.a == 0.0) {\n    discard;\n  }\n  return;\n#else\n  if (color.a < 0.01) {\n    discard;\n    return;\n  }\n  gl_FragColor = color;\n  gl_FragColor.a *= alpha;\n#endif\n}")});
f.Program=f.tb;f.Shader=f.ws;return f});u(120,0,function(){function c(c){this.C=c;this.pc=c.createBuffer();this.wd();this.once("released",this.Pa,this)}var l=k(117),r=k(22);c.prototype.type=function(c){this.Sf=c;this.PJ();return this};c.prototype.oG=function(c){this.Bo=c;return this};c.prototype.PJ=function(){this.Bo&&void 0!==this.Sf&&void 0!==this.Tt&&(this.Sf===c.oo&&this.bind().data(this.Bo).A(),delete this.Bo)};c.prototype.KB=function(){return void 0!==this.Bo};c.prototype.usage=function(c){this.Tt=
c;return this};c.prototype.dJ=function(c){this.C.bufferData(this.Sf,c,this.Tt)};c.prototype.data=function(c,n){if("number"===typeof c)this.dJ(c);else{var h=this.C;"number"===typeof n?h.bufferSubData(this.Sf,n,c):h.bufferData(this.Sf,c,this.Tt)}return this};c.prototype.bind=function(){this.C.bindBuffer(this.Sf,this.pc);return this};c.prototype.A=function(){return this};c.prototype.use=function(c){this.bind();c();this.A()};c.prototype.Ec=function(){return this.pc};c.prototype.size=function(){var c=
this.C;return c.getBufferParameter(this.Sf,c.BUFFER_SIZE)};c.prototype.Pa=function(){this.KB()||this.C.bindBuffer(this.Sf,null);this.C.deleteBuffer(this.pc);this.pc=null};r.ka(c.prototype);c.Fp=function(l,n){l=new c(l);l.type(c.oo).usage(c.vs).bind().data(n).A();return l};c.sh=function(l,n){l=new c(l);l.type(c.ry).usage(c.vs).bind().data(n).A();return l};c.CX=function(l,n){l=new c(l);l.type(c.oo).usage(c.Wx).bind().data(n).A();return l};c.Yu=function(l){var n=new Float32Array(0);l=new c(l);l.type(c.ry).usage(c.Wx).bind().data(n).A();
return l};c.VO=function(l,n){l=new c(l);l.oG(n).usage(c.vs);return l};l.once("creation",function(l){c.vs=l.STATIC_DRAW;c.Wx=l.DYNAMIC_DRAW;c.nW=l.STREAM_DRAW;c.ry=l.ARRAY_BUFFER;c.oo=l.ELEMENT_ARRAY_BUFFER});return c});u(121,0,function(){var c=k(120),l={Ri:function(l){var k="unit-square-vbo-ibo-"+l.id;if(!l.R.has(k)){var n={};n.gb=c.sh(l,new Float32Array([0,0,0,1,1,0,1,1]));n.pb=c.Fp(l,new Uint16Array([0,1,2,2,1,3,3,2,0,2]));n.ibo=n.pb;n.vbo=n.gb;l.R.add(k,n)}return l.R.get(k)},QQ:function(l,k,n){var h=
"grid-vbos-ibos-"+n+"x"+k,g;if(!l.R.has(h)){var e=Array(4+3*(n+1+k+1)),b=1/k,a=0;e[a++]=0;e[a++]=0;e[a++]=0;e[a++]=1;e[a++]=0;e[a++]=0;e[a++]=1;e[a++]=1;e[a++]=0;var d=b;for(g=0;g<k;g++)e[a++]=d,e[a++]=0,e[a++]=1,e[a++]=d,e[a++]=1,e[a++]=1,d+=b;d=b=1/n;for(g=0;g<n;g++)e[a++]=0,e[a++]=d,e[a++]=1,e[a++]=1,e[a++]=d,e[a++]=1,d+=b;b=Array(4+2*(k+n));a=0;b[a++]=0;b[a++]=1;b[a++]=1;b[a++]=2;d=3;for(g=0;g<k-1;g++){var f=d+2*g+0;var m=d+2*g+1;b[a++]=f;b[a++]=m}d+=2*k;for(g=0;g<n;g++)f=d+2*g+0,m=d+2*g+1,b[a++]=
f,b[a++]=m;k={};k.gb=c.sh(l,new Float32Array(e));k.pb=c.Fp(l,new Uint16Array(b));l.R.add(h,k)}return l.R.get(h)}};l.getUnitSquare=l.Ri;return l});u(122,0,function(){function c(c){this.m=c;this.pc=c.createFramebuffer();this.wd();this.once("released",this.Pa,this)}var l=k(22);c.prototype.bind=function(){var c=this.m;c.bindFramebuffer(c.FRAMEBUFFER,this.pc);return this};c.prototype.A=function(){var c=this.m;c.bindFramebuffer(c.FRAMEBUFFER,null);return this};c.prototype.Lm=function(c){var l=this.m;l.framebufferTexture2D(l.FRAMEBUFFER,
l.COLOR_ATTACHMENT0+0,l.TEXTURE_2D,c,0);return this};c.prototype.mD=function(c){var l=this.m;l.framebufferRenderbuffer(l.FRAMEBUFFER,l.STENCIL_ATTACHMENT,l.RENDERBUFFER,c);return this};c.prototype.Ec=function(){return this.pc};c.prototype.Pa=function(){this.m.deleteFramebuffer(this.pc);this.pc=null};c.prototype.read=function(c,l){var n=this.m;this.bind();var h=new Uint8Array(c*l*4);n.readPixels(0,0,c,l,n.RGBA,n.UNSIGNED_BYTE,h);this.A();return h};l.ka(c.prototype);return c});u(123,0,function(){function c(g){this.C=
g;this.F=c.F(g);var e=this;this.F.then(function(b){e.w=b[0];e.gb=b[1].gb;e.pb=b[1].pb});this.wf=new h(g)}var l=k(121),r=k(119),q=k(109),n=k(13),h=k(122);c.prototype.read=function(c){var e=this.C,b=new (k("webgl/texture"))(e,c.width,c.height);e.activeTexture(e.TEXTURE0);b.bind().data(null,e.RGBA).yd(e.NEAREST).xd(e.NEAREST).zj(e.CLAMP_TO_EDGE).Aj(e.CLAMP_TO_EDGE);this.wf.bind();this.wf.Lm(b.Ec());b.A();e.viewport(0,0,c.width,c.height);this.w.use();this.gb.bind();this.pb.bind();e.enableVertexAttribArray(this.w.attributes().position);
e.vertexAttribPointer(this.w.attributes().position,2,e.FLOAT,!1,8,0);e.uniform1i(this.w.M.xa,1);e.activeTexture(e.TEXTURE1);c.bind();e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0);this.w.zb();c.A();b=new Uint8Array(c.width*c.height*4);e.readPixels(0,0,c.width,c.height,e.RGBA,e.UNSIGNED_BYTE,b);this.wf.A();this.gb.A();this.pb.A();e.viewport(0,0,e.canvas.width,e.canvas.height);return b};c.F=function(c,e){e=e||"shaders/";var b=c.id+"-texture-saver-deps";if(q.has(b))return q.get(b);e=r.tb.Bb(c,e+"texture-saver.vert",
e+"texture-saver.frag");c=l.X_(c);c=q.get(c);e=n.all([e,c]);q.add(b,e);return e};return c});u(124,0,function(){function c(e,b,a){h.ua(this)&&(this.width=b,this.height=a,this.pc=e.createTexture(),this.m=e,this.wd(),this.once("released",this.Pa,this))}var l=k(3),r=k(109),q=k(117);k(123);var n=k(5),h=k(8),g=k(22);c.prototype.bind=function(){var e=this.m;e.bindTexture(e.TEXTURE_2D,this.pc);return this};c.prototype.A=function(){return this};c.prototype.Ec=function(){return this.pc};c.prototype.eV=function(e,
b,a,d){var c=this.m;this.Io?(c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,!0),c.texSubImage2D(c.TEXTURE_2D,0,a,d,b,c.UNSIGNED_BYTE,e),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,!1)):c.texSubImage2D(c.TEXTURE_2D,0,a,d,b,c.UNSIGNED_BYTE,e);return this};c.su=function(e,b,a,d){b=a*d*b+8;if(e.byteLength>=b)return e;b=new Uint8Array(b);b.set(e,0);return b};c.prototype.data=function(e,b,a,d){b=b||c.RGB;a=a||b;var f=this.m;(this.Io=d)?(f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!0),f.texImage2D(f.TEXTURE_2D,0,a,this.width,this.height,
0,b,f.UNSIGNED_BYTE,e),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!1)):f.texImage2D(f.TEXTURE_2D,0,a,this.width,this.height,0,b,f.UNSIGNED_BYTE,e);return this};c.prototype.$n=function(e,b,a,d,c,m){var f=this.m;f.texSubImage2D(f.TEXTURE_2D,0,a,d,c,m,b,f.UNSIGNED_BYTE,e);return this};c.prototype.Sm=function(e,b,a){var d=this.m;b=b||d.RGB;(this.Io=a)?(d.pixelStorei(d.UNPACK_FLIP_Y_WEBGL,!0),d.texImage2D(d.TEXTURE_2D,0,b,b,d.UNSIGNED_BYTE,e),d.pixelStorei(d.UNPACK_FLIP_Y_WEBGL,!1)):(d.pixelStorei(d.UNPACK_FLIP_Y_WEBGL,
!1),d.texImage2D(d.TEXTURE_2D,0,b,b,d.UNSIGNED_BYTE,e));return this};c.prototype.xd=function(e){var b=this.m;b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,e);return this};c.prototype.yd=function(e){var b=this.m;b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,e);return this};c.prototype.zj=function(e){var b=this.m;b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,e);return this};c.prototype.Aj=function(e){var b=this.m;b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,e);return this};c.prototype.use=
function(e){this.bind();e();this.A();return this};c.prototype.KA=function(e){this.m.KA(e)};c.prototype.Pa=function(){this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.deleteTexture(this.pc);this.pc=null};g.ka(c.prototype);c.Sm=function(e,b,a){var d=new c(e,b.width,b.height);e="jpg"===b.Kx?e.RGB:e.RGBA;d.bind().Sm(b,e,a).yd(c.NEAREST).xd(c.NEAREST).A();return d};c.JZ=function(e,b,a,d){return b.get(a,r.Xg).then(function(a){return c.Sm(e,a,d)})};c.TZ=function(e,b){e/=b||4;b=Math.min(n.Ev(e),2048);return l.l.u(b,
n.Ev(e/b))};q.once("creation",function(e){c.RGBA=e.RGBA;c.RGB=e.RGB;c.LUMINANCE=e.LUMINANCE;c.ALPHA=e.ALPHA;c.UNSIGNED_BYTE=e.UNSIGNED_BYTE;c.UNSIGNED_SHORT_5_6_5=e.UNSIGNED_SHORT_5_6_5;c.UNSIGNED_SHORT_4_4_4_4=e.UNSIGNED_SHORT_4_4_4_4;c.UNSIGNED_SHORT_5_5_5_1=e.UNSIGNED_SHORT_5_5_5_1;c.LINEAR=e.LINEAR;c.NEAREST=e.NEAREST;c.REPEAT=e.REPEAT;c.CLAMP_TO_EDGE=e.CLAMP_TO_EDGE});return c});u(125,0,function(){function c(c){this.ca=c;this.Iq=1;this.wH=c.uc*c.Yi;this.vH=c.uc*c.ln;this.vG=c.uc*c.Xi;this.uG=
c.uc*c.kn}var l=k(5),r=k(124),q=k(120),n=k(0),h=k(3);c.Vm=function(c,e){var b=l.kB((e.byteLength||e.length)/4),a=new r(c,b[0],b[1]);e=r.su(e,4,b[0],b[1]);a.bind().data(e,c.RGBA).yd(c.NEAREST).xd(c.NEAREST).A();return a};c.Yp=function(c){var e="shared-ascending-ibo-"+c.id;if(c.R.has(e))return c.R.get(e);var b=this.UG(Math.max(6*n.fw,n.yq));b=q.Fp(c,new Uint16Array(b));c.R.add(e,b);return b};c.UG=function(c){for(var e=Array(c),b=0;b<c;)e[b]=b++;return e};c.wD=function(c,e,b){e=r.Sm(c,e,b);e.bind().yd(c.LINEAR).xd(c.LINEAR).zj(c.CLAMP_TO_EDGE).Aj(c.CLAMP_TO_EDGE).A();
return e};c.prototype.Xm=function(c,e,b){e*=4;for(var a=Array(4*b),d=0;d<a.length;d+=2)a[d+0]=(c[e+d]+1)%256,a[d+1]=0===a[d+0]?(c[e+d+1]+1)%32:c[e+d+1]%32;return this.JF(b,a)};c.prototype.JF=function(c,e){var b=Array(c),a;for(a=0;a<c;a++){var d=this.HF(e[4*a]+256*e[4*a+1],e[4*a+2]+256*e[4*a+3]);b[a]=d}return b};c.prototype.HF=function(c,e){var b=this.sH(e);b&&(e-=this.wH);var a=this.aH(c);a&&(c-=this.vG);c=h.l.u(c,e);c.HB=b;c.$_=a;return c};c.prototype.sH=function(c){return c>this.vH};c.prototype.aH=
function(c){return c>this.uG};c.prototype.UQ=function(c){for(var e=new ArrayBuffer(8*c.length),b=new Float32Array(e),a=0,d=c.length;a<d;a++){var f=c[a];b[2*a]=f[0]*this.ca.Eb;b[2*a+1]=f[1]*this.ca.Eb}return e};c.mj=function(c){this.Iq=1/c};return c});u(126,0,function(){function c(){}var l=k(3),r=k(119),q=k(120),n=k(124),h=k(13),g=k(121),e=k(125),b=k(0);c.prototype.Cb=function(a,d){this.m=a;this.ca=d;this.BI=new e(d);d="line-rendering-resources-"+d.id;if(a.R.has(d))var f=a.R.get(d);else{f=r.tb.Bb(a,
"shaders/line-fill.vert","shaders/line-fill.frag");var m=r.tb.Bb(a,"shaders/line-fill.vert","shaders/basic.frag"),p=r.tb.Bb(a,"shaders/line-fill.vert","shaders/line-fill.frag",{RENDER_PATTERN:1}),l=r.tb.Bb(a,"shaders/line-fill.vert","shaders/line-fill.frag",{RENDER_ALPHA:1}),k=r.tb.Bb(a,"shaders/line-fill.vert","shaders/line-fill.frag",{RENDER_PATTERN:1,RENDER_ALPHA:1}),q=r.tb.Bb(a,"shaders/line-vertex-fetch.vert","shaders/line-vertex-fetch.frag"),I=g.Ri(a),v=c.sh(a,b.fw),J=e.Yp(a),y=(new n(a,b.MC[0],
b.MC[1])).bind().data(null,a.RGBA,a.RGBA).yd(a.NEAREST).xd(a.NEAREST).A();f=h.all([f,m,p,l,k,q,I,v,J,y,void 0,null]);a.R.add(d,f)}return f=f.then(function(a){var b=0;this.EG=a[b++];this.HH=a[b++];this.YH=a[b++];this.kF=a[b++];this.lF=a[b++];b++;b++;this.dk=a[b++];this.Sj=a[b++];return this}.bind(this))};c.prototype.vf=function(){return this.EG};c.prototype.qn=function(){return this.HH};c.prototype.zd=function(){return this.YH};c.prototype.oh=function(){return this.kF};c.prototype.Tf=function(){return this.lF};
c.sh=function(a,b){for(var d=Array(18*b),e=0,c=0;e<b;)d[c++]=e,d[c++]=0,d[c++]=0,d[c++]=e,d[c++]=0,d[c++]=1,d[c++]=e,d[c++]=1,d[c++]=0,d[c++]=e,d[c++]=1,d[c++]=0,d[c++]=e,d[c++]=0,d[c++]=1,d[c++]=e,d[c++]=1,d[c++]=1,e++;return q.sh(a,new Float32Array(d))};c.prototype.fJ=function(a){var b=this.m;this.dk.bind();b.vertexAttribPointer(a.refIndex,1,b.FLOAT,!1,12,0);b.vertexAttribPointer(a.offset,1,b.FLOAT,!1,12,4);b.vertexAttribPointer(a.side,1,b.FLOAT,!1,12,8);this.dk.A();b.enableVertexAttribArray(a.refIndex);
b.enableVertexAttribArray(a.offset);b.enableVertexAttribArray(a.side)};c.prototype.Qt=function(a){var b=this.m;b.disableVertexAttribArray(a.refIndex);b.disableVertexAttribArray(a.offset);b.disableVertexAttribArray(a.side)};c.prototype.iJ=function(a){this.m.uniform1f(a.lineAAPointCount,e.Iq)};c.prototype.Eg=function(a){var b=a.attributes(),e=a.M;a.use();this.fJ(b);this.iJ(e);this.Sj.bind()};c.prototype.Ug=function(a){var b=a.attributes();this.Qt(b);a.zb();this.Sj.A()};c.prototype.Xm=function(a,b,e){return this.BI.Xm(a,
b,e)};c.prototype.IQ=function(a){var b=Array(a.length),c=0,m=l.l.create(),p;b[0]=0;var g=1;for(p=a.length;g<p;){var h=a[g-1],n=a[g];h.HB&&n.HB?c=0:(h=l.l.length(l.l.sub(m,n,h)),c=Math.floor(c+h));b[g++]=c}a=new Uint32Array(b);return e.Vm(this.m,new Uint8Array(a.buffer))};c.$A=function(a,b,e,c,p,g){return Math.floor(b*c+(e?p:0))*Math.pow(2,16)+Math.floor(a*c+g)};c.prototype.nP=function(a){for(var b=this.ca,e=b.uc*b.Yi,m=b.uc*b.Xi,p=new Uint32Array(a.length/3),g=0,h=0;h<a.length;h+=3){var n=c.$A(a[h+
0]+b.Sh,a[h+1]+b.Sh,a[h+2],b.uc,e,m);p[g++]=n}return new Uint8Array(p.buffer)};c.get=function(a,b){return(new c).Cb(a,b)};return c});u(127,0,function(){function c(){}function l(){this.dj=null}function r(e,b){this.Uo=!1;this.m=e;this.lD=new Map;this.wx=1;this.Qa(e,b);this.ix()}var q=k(13),n=k(0),h=k(4).global,g=k(126);c.Sc=function(){return!0};l.prototype.Kn=function(){this.sp&&(this.sp=this.dj=void 0)};l.prototype.$p=function(){return 1>this.color[3]||1>this.alpha};l.prototype.Iv=function(){return null!==
this.dj};l.prototype.ef=function(e){this.Cf=e.J};l.prototype.lj=function(e,b,a,d,c){this.Lx=e;this.Mx=b;this.color=a;this.alpha=c;this.Wh=d;this.hash=d|7*a[0]<<3|7*a[1]<<6|7*a[2]<<9|a[3]*c*7<<12};l.prototype.df=function(e,b){this.Uc=e;this.$f=b};l.prototype.RC=function(e){this.sp=e};l.prototype.aD=function(e){this.dj=e};r.prototype.Ka=function(){this.$a=this.qc=this.Tf=this.oh=this.zd=this.qn=this.vf=this.Gc=void 0};r.prototype.Qa=function(e,b){var a=this;return r.F(e,b).then(function(b){a.Gc=b[0];
a.vf=a.Gc.vf();a.qn=a.Gc.qn();a.zd=a.Gc.zd();a.oh=a.Gc.oh();a.Tf=a.Gc.Tf();a.dt()})};r.prototype.Qf=function(e){function b(a){h=a;m.sm(p,a)}function a(a){g=a.Cf;m.zg(p,a)}var d=this.Gc,f=Array(9),m=this,p=e.M;f[0]=d.Eg.bind(d,e);f[0].Sc=function(a){return this!==a};f[8]=d.Ug.bind(d,e);var g;a.Sc=function(b,d){return b!==a||d.Cf!==g};f[1]=a;f[7]=this.Ci.bind(this);var h=null;b.Sc=function(a,d){return a!==b||d.color!==h.color||d.alpha!==h.alpha||d.Lx!==h.Lx||d.Mx!==h.Mx};f[2]=b;f[6]=c;f[3]=c;f[5]=c;
f[4]=c;return f};r.prototype.Go=function(e,b){var a=b.attributes();b=this.Jt.bind(this,a,b.M);b.Sc=function(){return!0};e[3]=b;e[5]=this.Rt.bind(this,a)};r.prototype.Jy=function(e){return this.$a[e].map(function(b){return b})};r.prototype.dt=function(){this.qc=Array(9);this.$a=Array(9);this.$a[0]=this.Qf(this.vf);this.$a[1]=this.Qf(this.zd);this.$a[2]=this.Jy(0);this.$a[3]=this.Jy(1);this.$a[4]=this.Qf(this.oh);this.$a[5]=this.Qf(this.Tf);this.$a[6]=this.Qf(this.qn);this.$a[7]=this.Qf(this.vf);this.$a[8]=
this.Qf(this.zd);this.Go(this.$a[1],this.zd);this.Go(this.$a[3],this.zd);this.Go(this.$a[5],this.Tf);this.Go(this.$a[8],this.zd);this.$a[0][4]=this.Zo.bind(this,this.vf.M);this.$a[2][4]=this.ap.bind(this,this.vf.M);this.$a[6][4]=this.CI.bind(this,this.qn.M);this.$a[7][4]=this.Oz.bind(this,this.vf.M);this.$a[8][4]=this.Oz.bind(this,this.zd.M);this.$a[1][4]=this.Zo.bind(this,this.zd.M);this.$a[3][4]=this.ap.bind(this,this.zd.M);this.$a[4][4]=function(e){this.Yo(this.oh.M,e)}.bind(this);this.$a[5][4]=
function(e){this.Yo(this.Tf.M,e)}.bind(this)};r.prototype.vk=function(){return new l};r.prototype.TG=function(e){return e.Wh===n.pD?6:e.Wh===n.qD?this.Uo?4:e.Iv()?8:7:this.Uo?e.Iv()?5:4:e.Iv()?e.$p()?3:1:e.$p()?2:0};r.prototype.Ab=function(e,b,a,d,c){b=e.elements;b.length&&(c=c[b[0].gc.vc],e.J=e.J||{},e.J.En=c,e.J.Ga=e.Ga,e.J.mn=0)};r.prototype.lc=function(e){if(e=e.J)e.En=void 0,e.Ga=void 0,e.mn=void 0};r.prototype.vh=function(e,b,a){for(var d=this.m,c=0,m;c<e;)m=Math.min(n.fw,e-c),d.uniform1f(a.lineSectionOffset,
b+c),d.uniform1f(a.maxIndex,m-1),d.drawElements(d.TRIANGLES,6*m,d.UNSIGNED_SHORT,0),c+=m};r.TT=function(){var e=this.m;e.enable(e.BLEND);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA)};r.hP=function(){var e=this.m;e.disable(e.BLEND)};r.prototype.ix=function(){this.Uo=!1;this.ep=r.TT;this.hj=this.JI};r.prototype.LT=function(){this.Uo=!0;this.ep=r.hP;this.hj=this.YN};r.prototype.cR=function(e){var b=this.lD,a=b.get(e);if(void 0!==a)return a;a=this.wx;++a>=n.ig&&(a=
1);b.set(e,a);return this.wx=a};r.prototype.Oz=function(e,b){var a=this.m,d=b.Uc;b=b.$f;a.stencilFunc(a.ALWAYS,n.ig,n.ig);a.stencilOp(a.KEEP,a.KEEP,a.REPLACE);a.stencilMask(n.ig);a.enable(a.STENCIL_TEST);a.colorMask(!0,!0,!0,!0);this.ep();a.uniform1f(e.lineThreshold,1);this.vh(d,b,e);a.stencilFunc(a.NOTEQUAL,n.ig,n.ig);a.uniform1f(e.lineThreshold,.05);this.vh(d,b,e);a.disable(a.STENCIL_TEST);a.stencilMask(n.Uh)};r.prototype.ap=function(e,b){var a=this.m,d=b.Uc,c=b.$f;b.Wh===h.gy?(a.colorMask(!0,!0,
!0,!0),a.stencilFunc(a.EQUAL,0,n.rj|n.el),a.stencilOp(a.KEEP,a.KEEP,a.INVERT),a.stencilMask(n.rj),a.enable(a.STENCIL_TEST)):(b=this.cR(b.hash),a.disable(a.BLEND),a.colorMask(!1,!1,!1,!1),a.stencilFunc(a.NOTEQUAL,b,n.el),a.stencilOp(a.KEEP,a.KEEP,a.REPLACE),a.stencilMask(n.ig),a.enable(a.STENCIL_TEST),a.uniform1f(e.lineThreshold,.05),this.vh(d,c,e),a.colorMask(!0,!0,!0,!0),a.stencilFunc(a.NOTEQUAL,b,n.ig),a.stencilOp(a.KEEP,a.KEEP,a.REPLACE),a.stencilMask(n.rj|n.ig));this.ep();a.uniform1f(e.lineThreshold,
1);this.vh(d,c,e);a.uniform1f(e.lineThreshold,.05);this.vh(d,c,e);a.disable(a.STENCIL_TEST);a.stencilMask(n.Uh)};r.prototype.Zo=function(e,b){var a=this.m,d=b.Uc;b=b.$f;this.ep();a.stencilFunc(a.EQUAL,0,n.el);a.stencilOp(a.KEEP,a.KEEP,a.REPLACE);a.stencilMask(n.rj|n.ig);a.enable(a.STENCIL_TEST);a.uniform1f(e.lineThreshold,0);this.vh(d,b,e);a.disable(a.STENCIL_TEST);a.stencilMask(n.Uh)};r.prototype.CI=function(e,b){var a=this.m,d=b.Uc;b=b.$f;a.disable(a.BLEND);a.colorMask(!1,!1,!1,!1);a.stencilFunc(a.NEVER,
n.rj,n.Uh);a.stencilOp(a.REPLACE,a.KEEP,a.KEEP);a.stencilMask(n.rj);a.enable(a.STENCIL_TEST);a.uniform1f(e.lineThreshold,0);this.vh(d,b,e);a.disable(a.STENCIL_TEST);a.stencilMask(n.Uh);a.colorMask(!0,!0,!0,!0)};r.prototype.zg=function(e,b){var a=this.m;b=b.Cf;var d=b.En,c=b.mn;a.uniformMatrix4fv(e.modelViewProjMatrix,!1,b.Ga);a.activeTexture(a.TEXTURE0);d.bind();a.uniform1i(e.positionDataTexture,0);a.uniform2f(e.positionDataTextureSize,d.width,d.height);a.uniform1f(e.widthFactor,c)};r.prototype.Ci=
function(e){var b=this.m;b.activeTexture(b.TEXTURE0);e.Cf.En.A()};r.prototype.sm=function(e,b){var a=this.m;a.uniform4fv(e.color,b.color);a.uniform1f(e.alpha,b.alpha);a.uniform1f(e.width0,b.Lx);a.uniform1f(e.width1,b.Mx)};r.prototype.Jt=function(e,b,a){e=this.m;var d=a.dj;e.activeTexture(e.TEXTURE6);d.bind();e.uniform1i(b.patternTexture,6);e.uniform2f(b.patternTextureSize,d.width,d.height*d.yB);a=a.sp;e.activeTexture(e.TEXTURE5);a.bind();e.uniform1i(b.advanceTexture,5);e.uniform2f(b.advanceTextureSize,
a.width,a.height);e.uniform2fv(b.viewportSize,this.wm);e.uniform1f(b.zoom,this.Ml.ag())};r.prototype.Rt=function(e,b){e=this.m;var a=b.dj;b=b.sp;e.activeTexture(e.TEXTURE5);b.A();e.activeTexture(e.TEXTURE6);a.A()};r.prototype.DI=function(e){var b=this.zd.attributes(),a=this.zd.M;this.Gc.Eg(this.zd);this.zg(a,e);this.sm(a,e);this.Jt(b,a,e);e.$p()?this.ap(a,e):this.Zo(a,e);this.Rt(b,e);this.Ci(e);this.Gc.Ug(this.zd)};r.prototype.zI=function(e){var b=this.vf.M;this.Gc.Eg(this.vf);this.zg(b,e);this.sm(b,
e);e.$p()?this.ap(b,e):this.Zo(b,e);this.Ci(e);this.Gc.Ug(this.vf)};r.prototype.JI=function(e){console.assert(!this.JW);null!==e.dj?this.DI(e):this.zI(e)};r.prototype.Yo=function(e,b){var a=b.Uc,d=b.$f,c=this.m;c.enable(c.STENCIL_TEST);c.stencilFunc(c.NOTEQUAL,n.el,n.el);c.disable(c.BLEND);c.stencilOp(c.KEEP,c.KEEP,c.KEEP);c.colorMask(!1,!1,!1,!0);c.uniform1f(e.alpha,b.color[3]);c.uniform1f(e.lineThreshold,.2);this.vh(a,d,e);c.colorMask(!0,!0,!0,!0);c.disable(c.STENCIL_TEST)};r.prototype.YN=function(e){if(e.dj){var b=
this.Tf.M;var a=this.Tf.attributes();this.Gc.Eg(this.Tf);this.zg(b,e);this.sm(b,e);this.Jt(a,b,e);this.Yo(b,e);this.Rt(a,e);this.Ci(e);this.Gc.Ug(this.Tf)}else b=this.oh.M,this.Gc.Eg(this.oh),this.zg(b,e),this.sm(b,e),this.Yo(b,e),this.Ci(e),this.Gc.Ug(this.oh)};r.prototype.hg=function(e,b){this.rF=this.hj;this.hj=this.vI;this.lD.clear();this.wx=1;for(var a=0;9>a;a++)this.qc[a]=c;this.Ml=e;this.wm=b};r.prototype.jg=function(){for(var e=5;9>e;e++)this.qc[e](this.xt);this.hj=this.rF;this.wm=this.Ml=
null};r.prototype.OI=function(e,b){for(var a=5;a<=e;a++)this.qc[a](this.xt);for(a=0;9>a;a++)this.qc[a]=b[a]};r.prototype.rm=function(e,b,a){for(;4>=e;e++)b[e](a)};r.prototype.vI=function(e){var b=this.TG(e);b=this.$a[b];for(var a=this.qc,d=0;4>=d;d++)if(a[d].Sc(b[d],e)){this.OI(8-d,b);this.rm(d,b,e);break}this.xt=e};r.F=function(e,b){if(e.R.has("line-renderer-deps"))return e.R.get("line-renderer-deps");b=g.get(e,b);b=q.all([b]);e.R.add("line-renderer-deps",b);return b};return r});u(128,0,function(){function c(){}
var l=k(119),r=k(120),q=k(13),n=k(0);c.prototype.Cb=function(c){this.m=c;var g="polygon-rendering-resources-"+c.id;if(c.R.has(g))var e=c.R.get(g);else{e=l.tb.Bb(c,"shaders/polygon-fill.vert","shaders/polygon-fill.frag");var b=this.GF();e=q.all([e,b]);c.R.add(g,e)}return e=e.then(function(a){this.FG=a[0];this.dz=a[1];return this}.bind(this))};c.prototype.Pp=function(){return this.FG};c.prototype.GF=function(){for(var c=this.m,g=[],e=0;e<6*n.aS;e++)g.push(e);return r.sh(c,new Uint16Array(g))};c.prototype.WI=
function(c){var g=this.m;this.dz.bind();g.vertexAttribPointer(c.dataIndex,1,g.UNSIGNED_SHORT,!1,2,0);g.enableVertexAttribArray(c.dataIndex)};c.prototype.Qt=function(c){this.m.disableVertexAttribArray(c.dataIndex);this.dz.A()};c.prototype.Eg=function(c){var g=c.attributes();c.use();this.WI(g)};c.prototype.Ug=function(c){var g=c.attributes();c.zb();this.Qt(g)};c.get=function(h){return(new c).Cb(h)};return c});u(129,0,function(){function c(){}function l(b){this.Vh=b.vk();this.hr=b.vk();this.ir=b.vk()}
function r(b,a){this.m=b;this.Wa=new e(b,a);this.qf(b,a);this.Rj=[];this.Tj=[]}var q=k(13),n=k(0),h=k(125),g=k(128),e=k(127);c.Sc=function(){return!0};l.prototype.df=function(b,a,d,e){this.Uc=b;this.$f=a;this.eR=d;this.il=e;this.Vh.df(e,d);this.hr.df(e,d);this.ir.df(e,d)};l.prototype.ef=function(b,a){this.Cf=b.J;this.Cf.pv=a;this.Vh.ef(b);this.hr.ef(b);this.ir.ef(b)};l.prototype.DT=function(){this.cB=!1};l.prototype.HT=function(b,a,d,e,c,p,g,l,k,q,r){var f=h.Iq,m=e&&0!==l;.2>c?(c=f,p=b):(.5<c?c-=
.5:e=!1,c<f&&(c=f),.5<l?l-=.5:m=!1,l<f&&(l=f));this.fillColor=b;this.alpha=a;this.cB=d;this.cV=e;this.rD=m;this.DA=r;this.dC=1>b[3]*a;e&&this.Vh.lj(.25*c,.25*c,p,g,a);m&&(this.hr.lj(.5*l,.25*c,k,q,a),this.ir.lj(0,.5*l,[0,0,0,1],n.pD,a))};r.prototype.Ka=function(){this.Pp=this.Dw=void 0;this.Wa.Ka();this.Rj.length=0;this.Tj.length=0};r.prototype.qf=function(b){var a=this;return r.F(b).then(function(b){a.Dw=b[0];a.Pp=a.Dw.Pp();a.lH(a.Pp)})};r.prototype.Qa=function(b,a){return q.all([this.qf(b,a),this.Wa.Qa(b,
a)])};r.prototype.lH=function(b){function a(a){p.cJ(g,a)}function d(a){h=a.Cf;p.zg(g,a)}var e=this.Dw;this.qc=Array(9);var m=Array(9),p=this,g=b.M;m[0]=e.Eg.bind(e,b);m[0].Sc=function(a){return this!==a};m[8]=e.Ug.bind(e,b);var h;d.Sc=function(a,b){return a!==d||b.Cf!==h};m[1]=d;m[7]=this.Ci.bind(this,g);a.Sc=function(){return!0};m[3]=a;m[5]=c;this.Wo=null;m[2]=function(a){a.dC?p.xG():p.rG()};m[2].Sc=function(a,b){return this.Wo!==b.dC};m[6]=c;m[4]=this.FI.bind(this,g);this.dT=m};r.prototype.UO=function(){return new l(this.Wa)};
r.prototype.Ab=function(b,a,d,e,c){var f=b.elements;f.length&&(this.Wa.Ab.apply(this.Wa,arguments),b.J.ho=c[f[0].gc.vc])};r.prototype.lc=function(b){if(b=b.J)b.En=void 0,b.ho=void 0,b.pv=void 0};r.prototype.xG=function(){var b=this.m;b.enable(b.BLEND);b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);b.blendEquation(b.FUNC_ADD);this.Wo=!0};r.prototype.rG=function(){var b=this.m;b.disable(b.BLEND);this.Wo=!1};r.prototype.hg=function(b,a){this.Ml=b;this.wm=a;this.nm();
this.xt=this.Gz=null};r.prototype.jg=function(){this.Rj.length&&this.Xs()};r.prototype.nm=function(){for(var b=0;9>b;b++)this.qc[b]=c;this.Wo=null};r.prototype.Xs=function(){this.$y();this.Rj.forEach(this.wI,this);this.Rj.length=0;for(var b=5;9>b;b++)this.qc[b](this.Iz);this.nm()};r.prototype.$y=function(){this.Wa.hg(this.Ml,this.wm);for(var b=this.Tj,a=0;a<b.length;a++)this.Wa.hj(b[a],this.Ml,this.wm);this.Tj.length=0;this.Wa.jg()};r.prototype.bT=function(b){b=b.J.qC;b.cB&&(this.Gz!==b.DA&&this.Rj.length&&
this.Xs(),this.Gz=b.DA,b.rD&&this.Tj.push(b.ir),b.cV&&this.Tj.push(b.Vh),this.Rj.push(b),b.rD&&(this.Xs(),this.Tj.push(b.hr),this.$y()))};r.prototype.dR=function(b){if(b.il)return this.Wa.Gc.Xm(b.Cf.US,b.$f,b.il)};r.prototype.zg=function(b,a){var d=this.m;a=a.Cf;d.uniformMatrix4fv(b.modelViewProjMatrix,!1,a.Ga);d.uniform1i(b.positionDataTexture,0);d.uniform2f(b.dataTextureSize,a.ho.width,a.ho.height);d.activeTexture(d.TEXTURE0);a.ho.bind();a.pv.bind()};r.prototype.cJ=function(b,a){var d=this.m;d.uniform1f(b.polygonOffset,
a.eR);d.uniform4fv(b.fillColor,a.fillColor);d.uniform1f(b.alpha,a.alpha);d.uniform1f(b.drawingStartIndex,0)};r.prototype.Ci=function(b,a){b=this.m;a=a.Cf;b.activeTexture(b.TEXTURE0);a.ho.A();a.pv.A()};r.prototype.FI=function(b,a){b=this.m;b.stencilFunc(b.EQUAL,0,n.el);b.stencilOp(b.KEEP,b.KEEP,b.REPLACE);b.enable(b.STENCIL_TEST);b.stencilMask(n.rj);b.drawElements(b.TRIANGLES,a.Uc,b.UNSIGNED_SHORT,2*a.$f);b.disable(b.STENCIL_TEST);b.stencilMask(n.Uh)};r.prototype.Nt=function(b,a){for(var d=5;d<=b;d++)this.qc[d](this.Iz);
for(d=0;9>d;d++)this.qc[d]=a[d]};r.prototype.rm=function(b,a,d){for(;4>=b;b++)a[b](d)};r.prototype.wI=function(b){for(var a=this.dT,d=this.qc,e=0;4>=e;e++)if(d[e].Sc(a[e],b)){this.Nt(8-e,a);this.rm(e,a,b);break}this.Iz=b};r.prototype.ic=function(){};r.F=function(b,a){if(b.R.has("polygon-renderer-deps"))return b.R.get("polygon-renderer-deps");var d=g.get(b);a=e.F(b,a);d=q.all([d,a]);b.R.add("polygon-renderer-deps",d);return d};return r});u(131,0,function(){function c(){}function l(c,g){r.ua(this)&&
(this.sa=c,this.K=g,this.fp=!0,this.eh=1,this.NI(),this.hJ())}var r=k(8),q=k(14),n=k(15);l.prototype.NI=function(){this.nb=Array(q.count);for(var h=0;h<q.count;h++)this.nb[h]=c};l.prototype.hJ=function(){switch(this.type()){case n.Dl:case n.ab:var c=this.K.Rd("before-base-map");this.nb[q.cs]=this.K.Xd.bind(this.K,c);break;case n.Kf:case n.ng:case n.$g:case n.Fe:case n.ri:case n.Wg:case n.hf:case n.Rb:c=this.K.Rd("below-roads");var g=this.K.Rd("before-road-alpha"),e=this.K.Rd("above-roads");this.nb[q.mo]=
this.K.Xd.bind(this.K,c);this.nb[q.PD]=this.K.Xd.bind(this.K,g);this.nb[q.ko]=this.K.Xd.bind(this.K,e);break;case n.nd:c=this.K.Rd("below-roads");this.nb[q.mo]=this.K.Xd.bind(this.K,c);break;case n.ma:c=this.K.Rd("roads");g=this.K.Rd("road-alpha");e=this.K.Rd("borders");this.nb[q.LE]=this.K.Xd.bind(this.K,c);this.nb[q.KE]=this.K.Xd.bind(this.K,g);this.nb[q.Qx]=this.K.Xd.bind(this.K,e);break;case n.Ia:this.nb[q.ko]=this.K.Qm.bind(this.K);break;case n.xc:this.nb[q.Rx]=this.K.Qm.bind(this.K);break;case n.B:case n.Wc:this.nb[q.Cs]=
this.K.Qm.bind(this.K);break;case n.kd:c=this.K.Rd("poi-texts");this.nb[q.Cs]=this.K.Xd.bind(this.K,c);c=this.K.Rd("poi-icons");this.nb[q.ms]=this.K.Xd.bind(this.K,c);break;case n.ia:this.nb[q.ms]=this.K.Qm.bind(this.K);break;case n.ha:c=this.K.Rd("clear-tile");this.nb[q.cs]=this.K.Xd.bind(this.K,c);c=this.K.Rd("below-roads");this.nb[q.mo]=this.K.Xd.bind(this.K,c);c=this.K.Rd("above-roads");this.nb[q.ko]=this.K.Xd.bind(this.K,c);c=this.K.Rd("above-buildings");this.nb[q.MD]=this.K.Xd.bind(this.K,c);
break;case n.gW:this.nb[q.rE]=this.K.Qm.bind(this.K)}};l.prototype.type=function(){return this.sa.type()};l.prototype.Ap=function(c,g,e,b){this.K.Ap(c,g,e,b)};l.prototype.PS=function(c,g,e,b){this.fp&&this.sa.aj()&&(this.sa.update(c),this.K.Pe(c,g,this.sa,e,b,this.eh))};l.prototype.lv=function(c,g,e,b,a){if(this.fp)this.nb[c](g,e,this.sa,b,a,this.eh)};l.prototype.up=function(){this.K.up()};l.prototype.aj=function(){return this.sa.aj()};l.prototype.rk=function(){this.sa.rk()};l.prototype.SC=function(c){this.eh!==
c&&(this.eh=c,this.sa.Zb())};l.prototype.show=function(){this.fp=!0};l.prototype.xf=function(){this.fp=!1};return l});u(132,0,function(){function c(){this.la=[];this.Qj=!0}c.prototype.push=function(){this.Zb();return this.la.push.apply(this.la,arguments)};c.prototype.splice=function(){this.Zb();return this.la.splice.apply(this.la,arguments)};c.prototype.remove=function(c){this.Zb();this.splice(this.indexOf(c),1)};c.prototype.indexOf=function(){return this.la.indexOf.apply(this.la,arguments)};c.prototype.reset=
function(){this.Zb();this.la=[]};c.prototype.Zb=function(){this.Qj=!0};c.prototype.aj=function(){return this.Qj};c.prototype.update=function(){this.Qj=!1};return c});u(133,0,function(){function c(c){l.ua(this)&&(r.prototype.constructor.call(this),this.Sf=c)}var l=k(8),r=k(132);k(15);var q=k(3);l.P(r,c);c.prototype.type=function(){return this.Sf};c.prototype.Tv=function(){return!0};c.prototype.Ui=function(){return!0};c.prototype.Ka=function(){};c.prototype.Wk=function(){return[]};c.prototype.Kg=function(){};
c.prototype.Ih=function(){};c.prototype.cj=function(){};c.prototype.yn=function(){};c.prototype.zp=function(){};c.prototype.tp=function(){};c.prototype.dg=function(c){this.AO=c};c.prototype.rk=function(){};c.prototype.update=function(c){this.la.forEach(function(h){q.U.multiply(h.Ga,c.Fb,h.Ub)});r.prototype.update.apply(this,arguments)};c.prototype.jq=function(){};return c});u(138,0,function(){function c(){this.Ao=[]}c.prototype.Mh=function(c){c.rb();this.Ao.push(c)};c.prototype.Pa=function(){this.at()};
c.prototype.at=function(){this.Ao.forEach(this.pG,this)};c.prototype.pG=function(c){c.release()};return c});u(139,0,function(){function c(e,c){r.ua(this)&&(this.type=c,this.key=e,this.ye=new b,this.size=Math.pow(2,-e.z),this.Ub=n.Dq(e),this.Ga=a.U.create(),this.Ai=[],this.Tz(),this.ug=void 0,this.bt=d[this.type],this.wG=g.Ef(this.bt))}var l=k(13),r=k(8),q=k(11),n=k(20),h=k(15),g=k(5),e=k(21),b=k(138),a=k(3);Object.freeze(void 0);var d={};d[h.ha]={Uk:h.ha};d[h.xc]={Uk:h.xc};d[h.ma]={Yk:h.ma};d[h.nd]=
{Yk:h.nd};d[h.ia]={pj:h.ia};d[h.B]={kg:h.B};d[h.Wc]={kg:h.Wc};d[h.kd]={kg:h.kd};d[h.Ia]={Mn:h.Ia};d[h.qg]={An:h.qg};d[h.Kf]={};d[h.Rb]={};d[h.ng]={};d[h.$g]={};d[h.Fe]={};d[h.ri]={};d[h.Wg]={};d[h.hf]={};d[h.dc]={ox:h.dc};var f={};f[h.xc]=function(a,b){a.Xf||(a.Xf=new Set);a.kk||(a.kk=new Set);b.forEach(function(b){a.Xf.add(b.vc);a.kk.add(b.eq)})};f[h.ha]=f[h.xc];f[h.ma]=function(a,b){a.Xf||(a.Xf=new Set);b.forEach(function(b){a.Xf.add(b.vc)})};f[h.nd]=f[h.ma];f[h.ab]=f[h.ma];f[h.B]=function(a,b){a.Xf||
(a.Xf=new Set);a.qr||(a.qr=new Set);b.forEach(function(b){var d=b.Ji,e;for(e in d){var c=d[e];a.Xf.add(c.ne);a.qr.add(c.re)}if(b.hk){b=b.hk;for(var f in b)d=b[f],a.Xf.add(d.ne),a.qr.add(d.re)}})};f[h.Wc]=f[h.B];f[h.kd]=f[h.B];f[h.qg]=function(a,b){a.kk||(a.kk=new Set);b.forEach(function(b){a.kk.add(b.vc)})};f[h.ia]=function(){};f[h.Ia]=function(){};f[h.dc]=function(){};c.prototype.Tz=function(){var a=this;this.Cz=new l(function(b,d){a.FH=b;a.mt=d})};c.prototype.reset=function(){var a=this.ug;this.ye.Ao=
this.ye.Ao.filter(function(b){return b===a})};c.prototype.KT=function(a){this.$t=a};c.prototype.Hk=function(){return!1};c.prototype.Gv=function(){return!1};c.prototype.gk=function(a){this.Ai.push(a)};c.prototype.xB=function(a){return-1!==this.Ai.indexOf(a)};c.prototype.Qq=function(a){this.Ai.splice(this.Ai.indexOf(a),1);0===this.Ai.length&&this.W("empty",this)};c.prototype.kC=function(a){this.W("loading-aborted",a);this.mt(a)};c.prototype.wn=function(){this.W("loading-start");0===this.Ai.length&&
this.W("empty",this)};c.prototype.Gq=function(){this.$G||this.W("loaded",this)};c.prototype.lS=function(a){this.W("rendering-aborted");this.mt(a)};c.prototype.kS=function(){this.W("ready-to-display");this.FH(this);this.Ai.forEach(function(a){a.cD(this.type)},this)};c.prototype.JV=function(){this.Tz()};c.prototype.$q=function(a){a!==this.key.offset&&(this.key.offset=a,this.Ub=n.Dq(this.key),this.W("tile-key-changed",this.key.offset))};c.prototype.Fq=function(a){this.ug=a;this.ye.Mh(a);this.elements=
[];for(var b in this.bt){var d=a[b],e=this.bt[b];d&&(d.forEach(function(a){this.elements.push({oa:this,type:e,gc:a})}.bind(this)),f[e](this,d))}};c.prototype.vv=function(a,b){for(var d=0,e=this.elements.length;d<e;d++)a.call(b,this.elements[d],d)};c.prototype.lC=function(a){this.W("loading-failed",a);this.mt(a)};c.prototype.Eq=function(a){this.Ob=!0;this.ug=void 0;this.W("destroyed",this);a.add(this);e.El.qa(function(){a.delete(this);this.elements=null;this.va();this.ye&&this.ye.Pa()},this)};c.prototype.xk=
function(){};q.ka(c.prototype);return c});u(140,0,function(){function c(a,b,d,e,c){if(q.ua(this)){h.prototype.constructor.call(this,a);var p;if(!e)for(e=Array(f),p=0;p<f;p++)e[p]=p;this.Fh=b;this.Va=d;this.nH(e,c);this.sd={};this.im=new Set;this.em={};this.rd=[];this.zG=m[a];this.Jo=!1}}var l=k(0),r=k(3),q=k(8),n=k(11),h=k(133),g=k(139),e=k(19),b=k(13),a=k(4),d=k(15),f=l.Qk,m=Array(d.count);m.fill(l.tQ);m[d.ha]=l.Ck;m[d.ma]=l.Ck;m[d.nd]=l.Ck;m[d.Kf]=l.Ck;m[d.Rb]=l.Ck;m[d.ng]=l.Ck;q.P(h,c);c.prototype.nv=
function(){return l.Cx};c.prototype.rQ=function(){return l.Dx};c.prototype.nH=function(a,b){this.au=Array(f);for(var d=0,e=a.length;d<e;d++){var c=a[d],m=a[d+1]||f,p=m-1;b&&p>b&&(p=b);for(p=r.l.u(c,p);c<m;c++)this.au[c]=p}};c.prototype.zp=function(){this.Jo=!0};c.prototype.tp=function(){if(this.Jo){this.Jo=!1;for(var a=this.rd.length-this.Lu(),b=0;b<a;b++){var d=this.rd.pop();this.cm(d)}}};c.prototype.Lu=function(){return a.WR};c.prototype.iB=function(a){var b=this.au[a.z-l.wq];if(b){b=b[0];var d=
a.z-b;return new e(a.x>>d,a.y>>d,b,a.offset)}};c.prototype.YQ=function(a){return this.au[a.z]};c.prototype.jI=function(a,b,d,e,c,f,m,g,h,n){this.Tv()||(d=l.WB);this.Ui()||(c=l.WB);return a.id+":"+b+":"+e+":"+d+":"+c+":"+f+":"+m+":"+g+":"+h+(n?":lo":"")};c.prototype.Kg=function(a){var b=this.iB(a.Jb);if(b){var d=this.jI(b,a.scale,a.Zd,a.tc,a.language,a.Re,a.$e,a.Kb,a.Tb,a.Eh),e;var c=0;for(e=this.la.length;c<e;c++){var f=this.la[c];if(f.xi===d){f.jp?this.Mz(a,f):(f.$q(a.Jb.offset),f.gk(a));return}}c=
0;for(e=this.rd.length;c<e;c++)if(f=this.rd[c],f.xi===d){this.Mz(a,f);return}(c=this.sd[d])?(c.$q(a.Jb.offset),c.gk(a),a.rp(c.Cz,this.type()),this.bz(c,a)):(f=this.rh(b),f.xi=d,f.scale=a.scale,f.tc=a.tc,f.Zd=a.Zd,f.language=a.language,f.Re=a.Re,f.$e=a.$e,f.Kb=a.Kb,f.Tb=a.Tb,f.Eh=a.Eh,this.Va?this.Va.th(f):f.alpha=0,f.KT(this.YQ(b)),f.gk(a),a.rp(f.Cz,this.type()),this.bz(f,a),this.xU(f))}};c.prototype.yn=function(){};c.prototype.bz=function(a,b){this.NG(a.key).forEach(function(d){d.key.z<b.Jb.z&&b.cD(this.type());
d.gk(b);a.race().add("ready-to-display",function(){d.Qq(b)},b).add("loading-failed",function(){d.Qq(b)},b)},this)};c.prototype.NG=function(a){for(var b=[],d=0,e=this.la.length;d<e;d++){var c=this.la[d],f=c.key;if(!c.jp&&f.z!==a.z){if(f.z<a.z)var m=a;else m=f,f=a;var g=m.z-f.z;g>this.zG||m.x>>g===f.x&&m.y>>g===f.y&&b.push(c)}}return b};c.prototype.Ih=function(a){var b=this.la.slice(),d;if(a.Jb.id in this.em)delete this.em[a.Jb.id];else{var e=0;for(d=b.length;e<d;e++){var c=b[e];c.xB(a)&&(c.va("ready-to-display",
void 0,a),c.Qq(a))}for(e in this.sd)c=this.sd[e],c.va("ready-to-display",void 0,a),c.va("loading-failed",void 0,a),c.xB(a)&&c.Qq(a)}};c.prototype.cj=function(a){function b(a,b){var d=a.xi.split(":");d[1]=b;a.xi=d.join(":");a.$q(b)}var d;var e=0;for(d=this.la.length;e<d;e++){var c=this.la[e];b(c,a(c.key.offset))}e=0;for(d=this.rd.length;e<d;e++)c=this.rd[e],b(c,a(c.key.offset));var f={},m=Object.keys(this.sd);e=0;for(d=m.length;e<d;e++)c=this.sd[m[e]],b(c,a(c.key.offset)),f[c.xi]=c;this.sd=f};c.prototype.Ka=
function(){var a=this;this.la.forEach(function(b){a.Fh.op(b)});this.rd.forEach(function(b){a.Fh.op(b)});Object.keys(this.sd).forEach(function(b){a.Fh.op(a.sd[b])});this.im.forEach(function(a){a.ye=void 0});this.im.clear()};c.prototype.Wk=function(){var a=this,b=[];this.la.forEach(function(d){b.push(a.Fh.Vq(d))});this.rd.forEach(function(d){b.push(a.Fh.Vq(d))});Object.keys(this.sd).forEach(function(d){b.push(a.Fh.Vq(a.sd[d]))});return b};c.prototype.fz=function(){this.Td.ve()};c.prototype.push=function(a){this.Td&&
a.Da("tile-key-changed",this.fz,this);h.prototype.push.call(this,a)};c.prototype.remove=function(a){h.prototype.remove.call(this,a);this.Td&&a.va("tile-key-changed",this.fz,this)};c.prototype.rh=function(a){return new g(a,this.type())};c.prototype.xU=function(a){this.xC(a);this.Fh.SB(a)};c.prototype.nS=function(a){var d=this.wh(a),e=new b(function(b,d){a.xo=function(b){a.xo=void 0;d(b)};a.once("empty",function(){a.xo=void 0;d("Tile Layer empty before ready for rendering")},this)}.bind(this));b.race([e,
d]).then(function(){this.Et(a);this.pS(a)}.bind(this)).catch(function(b){a.lS(b);this.Nd(a).then(function(){this.mC(a)}.bind(this))}.bind(this))};c.prototype.xC=function(a){this.iF(a);a.race().add("loaded",function(){this.nS(a)},this).add("loading-aborted",function(){this.mC(a)},this).add("loading-failed",function(){this.oS(a)},this)};c.prototype.Et=function(a){delete this.sd[a.xi]};c.prototype.iF=function(a){this.sd[a.xi]=a};c.prototype.Kn=function(){};c.prototype.Fw=function(){b.resolve("__tile-layer-prepared__")};
c.prototype.wh=function(){return b.resolve("__tile-layer-renderable__")};c.prototype.pS=function(a){a.once("empty",function(){this.qS(a)},this);this.push(a);var b=a.uz?0:this.nv();this.Va?this.Va.show(a,b):a.alpha=1;a.kS()};c.prototype.oS=function(a){this.Et(a);this.cm(a)};c.prototype.mC=function(a){this.Et(a);this.cm(a)};c.prototype.qS=function(a){a.jp=!0;a.xJ=this.Nd(a).then(function(){this.remove(a);this.pO(a);a.jp=!1}.bind(this))};c.prototype.pO=function(a){this.rd.push(a);!this.Jo&&this.rd.length>
this.Lu()&&(a=this.rd.shift(),this.cm(a))};c.prototype.cm=function(a){a.Eq(this.im)};c.prototype.Mz=function(a,d){var e=this;d.Os&&d.Os();this.em[a.Jb.id]=a;var c=d.xJ.then(function(){if(!(a.Jb.id in e.em))return b.reject("--pending-tile-destroyed--");delete e.em[a.Jb.id];var c=e.rd.indexOf(d);-1!==c?(e.rd.splice(c,1),d.JV(),e.xC(d),d.gk(a),d.wn(),d.uz=!0,d.Gq(),d.uz=!1):d.gk(a);d.$q(a.Jb.offset)});a.rp(c,this.type())};c.prototype.TC=function(a,b){a.Os=function(){delete a.Os;b()}};c.prototype.Nd=
function(a){if(this.Va){var d=this.Va.xf(a,this.rQ());a=new b(this.TC.bind(this,a));return b.race([d,a])}return b.resolve("onloaded")};c.prototype.rk=function(){this.Va=null;this.la.forEach(function(a){a.jp?a.Eq(this.im):this.Nd(a).then(function(){a.Eq(this.im)}.bind(this))},this);for(var a in this.sd){var b=this.sd[a];void 0!==b.xo?b.xo("__map-layer-removed__"):this.Fh.np(b,"__map-layer-removed__")}this.uO()};c.prototype.jq=function(){return 0!==Object.keys(this.sd).length};c.prototype.uO=function(){this.rd.forEach(this.cm,
this);this.rd.length=0};n.ka(c.prototype);return c});u(141,0,function(){function c(c){c=Math.sin(c*Math.PI/180);c=Math.min(Math.max(c,-.9999),.9999);return.5-Math.log((1+c)/(1-c))/(4*Math.PI)}function l(c,g){var e=g[0][0],b=g[0][1],a=g[2][0];g=g[2][1];for(var d=[],f=0,m=c.length-1;f<m;f++){var p=c[f],h=c[f+1],l=k(p,e,b,a,g),q=k(h,e,b,a,g),r=!1,v=p[0];p=p[1];var J=h[0];for(h=h[1];;)if(l|q)if(l&q)break;else{var y=l?l:q;if(y&n.top){var u=v+(J-v)*(g-p)/(h-p);var K=g}else y&n.bottom?(u=v+(J-v)*(b-p)/(h-
p),K=b):y&n.right?(K=p+(h-p)*(a-v)/(J-v),u=a):y&n.left&&(K=p+(h-p)*(e-v)/(J-v),u=e);y===l?(v=u,p=K,l=k([v,p],e,b,a,g)):(J=u,h=K,q=k([J,h],e,b,a,g))}else{r=!0;break}d.push.apply(d,r?[[v,p],[J,h]]:[])}return d}function k(c,g,e,b,a){var d=n.wR;c[0]<g?d|=n.left:c[0]>b&&(d|=n.right);c[1]<e?d|=n.bottom:c[1]>a&&(d|=n.top);return d}function q(c,g){var e=1/(1<<g.z),b=g.x*e;g=g.y*e;for(var a=Array(2*c.length),d=0,f=c.length;d<f;d++){var m=c[d],p=1-(m[1]-g)/e;a[2*d]=(m[0]-b)/e;a[2*d+1]=p}return a}var n={wR:0,
left:1,right:2,bottom:4,top:8};return{VQ:function(h){h=h.geometry.coordinates;for(var g=new ArrayBuffer(8*h.length),e=new Float32Array(g),b=0;b<h.length;b++){var a=h[b];e[2*b]=(a[0]+180)/360;e[2*b+1]=c(-a[1])}g.length=h.length;return g},g2:function(c){return[-(-2*(Math.atan(Math.pow(Math.E,2*Math.PI*(c[1]-.5)))-Math.PI/4)/Math.PI*180),360*c[0]-180]},jV:function(h,g){var e=1/(1<<h.z);var b=h.x*e,a=h.y*e;e=[[b,a],[b,a+e],[b+e,a+e],[b+e,a]];b=0;a=[];for(var d=0,f=g.length;d<f;d++){for(var m=g[d],p=m.me,
n=[],k=0,r=p.length;k<r;k++){var I=p[k];n.push([(I[0]+180)/360,c(I[1])])}p=l(n,e);m.Uc=0!==p.length?2*p.length-1:0;m.offset=b;b+=m.Uc;a.push.apply(a,q(p,h))}return a},TW:l}});u(142,0,function(){function c(d,e,c){b.prototype.constructor.call(this,d,a.dc);g.ua(this)&&(this.Ke=e,this.Yc=c,this.QB=[])}function l(a,b,d,c){e.prototype.constructor.call(this,a,b,d,c);g.ua(this)&&(this.Yc={})}function r(a,b,d){c.prototype.constructor.call(this,a,b,d)}function q(a,b,d,e){l.prototype.constructor.call(this,a,
b,d,e);g.ua(this)&&(this.Ke=Object.create(p),this.Vi=!0)}function n(a,b,d){c.prototype.constructor.call(this,a,b,d)}function h(a,b,d,e){l.prototype.constructor.call(this,a,b,d,e);g.ua(this)&&(this.Ke=Object.create(p),this.Vi=!1)}var g=k(8),e=k(140),b=k(139),a=k(15),d=k(5),f=k(141),m=d.Xe([0,122,255,255]),p={size:4,fillColor:m,xa:null,strokeColor:m,Ha:4},t={size:0,fillColor:1,xa:2,strokeColor:3,Ha:4};g.P(b,c);g.P(e,l);l.prototype.Ma=function(){return this.Yc};g.P(c,r);r.prototype.Fq=function(a){this.ug=
a;this.ye.Mh(a);this.elements=[];a=a.ox;"number"===typeof a.G.size&&(this.Ke.size=a.G.size);a.G.fillColor&&(this.Ke.fillColor=d.Xe(a.G.fillColor));a=a.Bw;for(var b=0,e=a.length;b<e;b++){var c=a[b],f={};f.Nm=c.me;f.type="point";var m=c.G.id,g=this.Ke,p=!1;m&&(f.id=m,p=!(m in this.Yc),g=this.Yc[m]||Object.create(g));p&&"number"===typeof c.G.size?(f.size=c.G.size,g.size=f.size):f.size=g.size;p&&c.G.fillColor?(f.fillColor=d.Xe(c.G.fillColor),g.fillColor=f.fillColor):f.fillColor=g.fillColor;f.xa=g.xa;
p&&(this.Yc[m]=g);this.elements.push(f)}};g.P(l,q);q.prototype.rh=function(a){return new r(a,this.Ke,this.Yc)};q.prototype.cl=function(a,b,e){if(a){var c=this.Yc[a]||Object.create(this.Ke);switch(b){case t.size:c.size=e;break;case t.fillColor:c.fillColor=d.Xe(e);c.xa=null;break;case t.xa:c.xa=e,c.fillColor=null}this.Yc[a]||(this.Yc[a]=c)}};g.P(c,n);n.prototype.Fq=function(a){this.ye.Mh(a);this.elements=[];a=a.ox;a.G.strokeColor&&(this.Ke.strokeColor=d.Xe(a.G.strokeColor));"number"===typeof a.G.Ha&&
(this.Ke.Ha=a.G.Ha);a=a.lines;this.QB=f.jV(this.key,a);for(var b=0,e=a.length;b<e;b++){var c=a[b],m={type:"line"};m.Uc=c.Uc;m.iS=c.offset;var g=c.G.id,p=this.Ke,h=!1;g&&(m.id=g,h=!(g in this.Yc),p=this.Yc[g]||Object.create(p));h&&c.G.strokeColor?(m.strokeColor=d.Xe(c.G.strokeColor),p.strokeColor=m.strokeColor):m.strokeColor=p.strokeColor;h&&"number"===typeof c.G.Ha?(m.Ha=c.G.Ha,p.Ha=m.Ha):m.Ha=p.Ha;h&&(this.Yc[g]=p);this.elements.push(m)}};g.P(l,h);h.prototype.rh=function(a){return new n(a,this.Ke,
this.Yc)};h.prototype.cl=function(a,b,e){var c=this.Yc[a]||Object.create(this.Ke);switch(b){case t.strokeColor:c.strokeColor=d.Xe(e);c.fillColor=null;break;case t.Ha:c.Ha=e}this.Yc[a]||(this.Yc[a]=c)};m={};m.Jl=t;m.zs=q;m.ys=h;return m});u(143,0,function(){function c(e,b,a,d,c,m){n.ua(this)&&(r.prototype.constructor.call(this,a,d),this.fa=e,this.V=b,this.er=this.iz(c),this.VI=m,Object.defineProperty(this,"belowLabels",{get:function(){switch(this.er){case q.qy:return!0;case q.py:return!1;default:return!1}},
set:function(a){a=this.iz(a);this.er!==a&&(this.er=a,this.sa.Zb())}}))}var l=k(15),r=k(131),q=k(14),n=k(8),h=k(142),g={JSON:0,hi:1,Jj:2};n.P(r,c);c.prototype.type=function(){return l.dc};c.prototype.iz=function(e){return"boolean"===typeof e&&e?q.qy:q.py};c.prototype.lv=function(e,b,a,d,c){e===this.er&&this.K.Lc(b,this.sa,a,d,c)};c.prototype.Ph=function(e,b){e&&this.sa.Vi&&(this.sa.cl(e,h.Jl.fillColor,b),this.K.xn(e,this.sa.la,this.sa.Ma()),this.sa.Zb())};c.prototype.Rh=function(e,b){e&&this.sa.Vi&&
(this.sa.cl(e,h.Jl.size,b),this.K.xn(e,this.sa.la,this.sa.Ma()),this.sa.Zb())};c.prototype.nj=function(e,b){e&&this.sa.Vi&&(this.sa.cl(e,h.Jl.xa,b),this.K.xn(e,this.sa.la,this.sa.Ma()),this.sa.Zb())};c.prototype.setStrokeColor=function(e,b){e&&!this.sa.Vi&&(this.sa.cl(e,h.Jl.strokeColor,b),this.K.xn(e,this.sa.la,this.sa.Ma()),this.sa.Zb())};c.prototype.dx=function(e,b){e&&!this.sa.Vi&&(this.sa.cl(e,h.Jl.Ha,b),this.K.xn(e,this.sa.la,this.sa.Ma()),this.sa.Zb())};c.prototype.Um=function(e){return this.K.xe.Um(e)};
c.prototype.Nn=function(e,b){return this.VI.Nn(this.sa,e,b)};c.ss=g;c.RequestDataType=g;c.RequestDataType.JSON=g.JSON;c.RequestDataType.BLOB=g.hi;c.RequestDataType.TEXT=g.Jj;return c});u(144,0,function(){function c(c,h,g,e,b,a){q.ua(this)&&(this.na=h,this.Bc=g,this.xb=a,this.ec=e,this.Ba=b,this.JR=c)}k(109);var l=k(11),r=k(13),q=k(8);c.prototype.Rn=function(c){this.Ja=c};c.prototype.np=function(c,h){c.Ob=!0;c.kC(h)};c.prototype.SB=function(c){c.once("empty",function(){this.np(c,"no more subtiles: stop loading")},
this);c.wn();var h=this;this.Bc.Wp(c,this.JR).then(function(g){if(!c.Ob){c.Fq(g);g=h.eI(c);var e=h.cI(c),b=g.then(function(){return h.wt(c)}),a=h.fI(c);return r.all([g,e,b,a]).then(function(){c.Ob||(c.va("empty",null,h),c.Gq())})}}).catch(function(g){h.rt(c,g)})};c.prototype.rt=function(c,h){c.Ob||(c.va("empty",null,this),c.lC(h))};c.prototype.eI=function(c){if(!this.ec)return r.resolve("__no-style-manager__");this.ec.Ab(c,c.ug.Ma);return r.resolve("__styling-done__")};c.prototype.cI=function(c){var h=
c.ug;h=this.Ba?this.Ba.fj(h.Pd):r.resolve("__collision-registered__");c.xk();return h};c.prototype.fI=function(c){if(!this.Ja)return r.resolve("__no-icon-manager__");var h=c.ug,g=[];c.Hk()&&(this.Ja.QS(h),g.push(this.Ja.dP(c)));c.Gv()&&g.push(this.Ja.cP(c));return r.all(g)};c.prototype.wt=function(c){if(!this.xb)return r.resolve("__no-renderer__");var h=c.ug,g=this,e=this.NQ(h,c),b=this.tB(h,c),a=this.OQ(h,c);e=this.lt(c,e,function(a){return c.Ob||c.rc?r.reject():g.xb.MS(a,c)});b=this.lt(c,b,function(a,
b){return a.AR?c.Ob||c.rc?r.reject():g.xb.ej(a,b,c):c.Ob||c.rc?r.reject():g.xb.NS(a,c)});a=this.lt(c,a,function(a){return c.Ob||c.rc?r.reject():g.xb.LS(a,c)});a=e.concat(b,a);var d=e.length,f=e.length+b.length,m=a.length;a=r.all(a);return a.then(function(a){if(!c.Ob&&!c.rc)return g.xb.Ab(c,h,a.slice(0,d),a.slice(d,f),a.slice(f,m))})};c.prototype.op=function(c){c.rc=!0;c.reset();(c.Hk()||c.Gv())&&this.Ja.lc(c);this.xb.lc(c)};c.prototype.Vq=function(c){c.rc=!1;c.wn();return this.wt(c).then(function(){c.Gq()})};
c.prototype.lt=function(c,h,g){if(!h.length)return[];var e=c.ye,b=this.na;return h.map(function(a){if(a)return b.get(a).then(function(b){return c.Ob?r.reject("--loader-has-aborted--"):g(b,a)}).then(function(a){a&&(c.Ob||c.rc?a.Uf():e.Mh(a));return a}).catch(function(){})})};c.prototype.$s=function(c,h){return h?c.map(function(c,e){return h.has(e)?c:void 0}):[]};c.prototype.NQ=function(c,h){return this.$s(c.bf.le,h.kk)};c.prototype.tB=function(c,h){return this.$s(c.bf.kc,h.qr)};c.prototype.OQ=function(c,
h){return this.$s(c.bf.Ki,h.Xf)};l.ka(c.prototype);return c});u(145,0,function(){function c(c){this.na=c}var l=k(109),r=k(22);c.Jg=function(c){var l=c.text,h=c.id,g=c.Ae,e=c.color,b=c.HD,a=c.scale,d=c.size,f=c.tc,m=c.variant;c={Uq:"shield",text:l,id:h,scale:a,Qc:h,variant:m};l="shield"+("?text="+encodeURIComponent(l)+"&id="+encodeURIComponent(h)+"&scale="+a+"&variant="+m);d&&(c.size=d,l+="&size="+d);g&&(c.Ae=g,l+="&subtype="+g);e&&(c.color=e,l+="&color="+e);b&&(c.HD=b,l+="&vendorKey="+b);f&&(c.tc=
f,l+="&v="+f);return{url:l,data:c}};c.prototype.Np=function(c,n){var h=this.na;if(h.has(c))return h.get(c);var g=h.get(c,l.Xg,n);r.ka(g).wd().once("released",function(){g.Rv()&&g.abort("loading-aborted");h.remove(c)});return g.Uf()};c.prototype.fetch=function(l){l=c.Jg(l);return this.Np(l.url,l.data)};return c});u(146,0,function(){function c(c,g,e,b,a){q.prototype.constructor.call(this,l.ia,c,g,null,b,a);this.Kt=new n(c)}var l=k(15),r=k(8),q=k(144),n=k(145);r.P(q,c);c.prototype.tB=function(c,g){var e=
g.tc,b=g.scale,a=[],d=[];c=c.pj;for(var f=0,m=c.length;f<m;f++){var p=c[f];p.scale=b;p.tc=e;var h=n.Jg(p),l=h.url;h=h.data;var k=a.indexOf(l);-1===k?(p.xD=a.length,a.push(l),d.push(h)):p.xD=k}var q=this.Kt;a.forEach(function(a,b){var e=q.Np(a,d[b]);e.rb();g.once("destroyed",function(){e.release()})});return a};return c});u(147,0,function(){function c(c,e,b,a){this.na=c;this.K=e;this.id=q.Pb();this.HC=a?1:0;this.eC=b===n.Fe||b===n.hf?0:1;if(b===n.Kf||b===n.$g||b===n.Fe)this.Hn="standard",this.Hw="standardTile",
this.Iw=0;else if(b===n.Rb||b===n.ri)this.Hn="satellite",this.Hw="satelliteTile",this.Iw=7;else if(b===n.ng||b===n.Wg||b===n.hf)this.Hn="hybrid",this.Hw="hybridTile",this.Iw=46}var l=k(109),r=k(0),q=k(5),n=k(15),h=q.Pb();c.prototype.WG=function(c){var e=c.key,b=c.scale,a=c.language,d=c.Re,f=c.$e,m=c.Kb,g=c.Tb;return this.Hw+("?x="+e.x+"&y="+e.y+"&z="+e.z+"&style="+this.Iw+"&v="+c.tc+"&type="+this.Hn+"&scale="+b+"&size="+("satellite"===this.Hn?b:r.BC)+(a.length?"&lang="+a:"")+(d.length?"&country="+
d:"")+(f.length?"&region="+f:"")+(m.length?"&tint="+m:"")+(g.length?"&emphasis="+g:"")+"&poi="+this.HC+"&labels="+this.eC)};c.prototype.LG=function(c){var e=c.key,b=c.scale;return{x:e.x,y:e.y,z:e.z,resolution:b,lang:c.language,tint:c.Kb,emphasis:c.Tb,tileSizeIndex:"satellite"===this.Hn?b:r.BC,poi:this.HC,labels:this.eC,v:c.tc,Qc:e.x+e.y}};c.prototype.np=function(c,e){c.Ob=!0;c.kC(e)};c.prototype.Yy=function(c){c.va("empty",null,this)};c.prototype.rt=function(c,e){c.Ob||(this.Yy(c),c.lC(e))};c.prototype.SB=
function(c){c.once("empty",this.np.bind(this,c,"empty"),this);c.wn();this.vC(c)};c.prototype.vC=function(c){var e=this.WG(c),b=this,a=this.na.get(e,l.Xg,this.LG(c),l.kf);c.once("loading-aborted",a.abort.bind(a,"--loading-aborted--"),a);var d=!1;return a.catch(function(){if(!c.Ob&&!c.rc){c.va("loading-aborted",null,a);d=!0;if(b.na.has(h))return b.na.get(h);var e=b.na.get("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",l.Xg,null,l.kf);
b.na.add(h,e);return e}}).then(function(e){if(!c.Ob&&!c.rc)return c.va("loading-aborted",null,a),b.K.ej(e,null,c).then(function(a){if(!c.Ob&&!c.rc)return c.sQ=d,c.ye.Mh(a),b.K.Ab(c,a)}).then(function(){c.Ob||c.rc||(b.Yy(c),c.Gq())})}).catch(function(a){b.rt(c,a)})};c.prototype.op=function(c){c.rc=!0;c.reset();this.K.lc(c)};c.prototype.Vq=function(c){c.rc=!1;c.wn();return this.vC(c)};return c});u(148,0,function(){function c(c){l.ua(this)&&(this.m=c,this.nb=[])}var l=k(8),r=k(13);c.prototype.Ka=function(){};
c.prototype.Qa=function(){return r.resolve()};c.prototype.dd=function(c,l){this.nb.push({name:c,qa:l})};c.prototype.Rd=function(c){for(var l=0,h=this.nb.length;l<h;l++)if(this.nb[l].name===c)return l;return-1};c.prototype.Xd=function(c,l,h,g,e,b,a){this.nb[c].qa(l,h,g,e,b,a)};c.prototype.bj=function(c){this.GC=c};c.prototype.ID=function(){};c.prototype.JD=function(){};c.prototype.Qm=function(c,l,h,g,e,b){this.Lc(c,l,h,g,e,b)};c.prototype.Ap=function(){};c.prototype.Pe=function(){};c.prototype.Lc=
function(){};c.prototype.up=function(){};c.prototype.ic=function(){};return c});u(149,0,function(){function c(a){l.prototype.constructor.call(this,a);this.Qa(a);this.dd("before-base-map",this.eO.bind(this))}var l=k(148),r=k(121),q=k(13),n=k(119),h=k(8),g=k(0),e=k(3),b=k(15),a=g.xh,d=g.xh;h.P(l,c);c.prototype.Ka=function(){this.wj=this.pb=this.gb=this.vO=this.w=void 0};c.prototype.Qa=function(a){var b=this;return c.F(a).then(function(a){b.w=a[0];b.vO=a[1];b.gb=a[2].gb;b.pb=a[2].pb;b.wj=a[3]})};c.prototype.bj=
function(a){l.prototype.bj.apply(this,arguments);this.Eh=a===b.md.mi;this.IB=a===b.md.Il};c.prototype.AI=function(b){var e=this.m;e.uniformMatrix4fv(this.w.M.modelViewProjMatrix,!1,b.Ga);e.drawElements(e.LINES,4+2*(a-1+(d-1)),e.UNSIGNED_SHORT,0)};c.prototype.sI=function(a,b){var d=this.m;this.w.use();this.pb.bind();this.gb.bind();d.vertexAttribPointer(this.w.attributes().position,2,d.FLOAT,!1,12,0);d.vertexAttribPointer(this.w.attributes().useAlpha,1,d.FLOAT,!1,12,8);d.enableVertexAttribArray(this.w.attributes().position);
d.enableVertexAttribArray(this.w.attributes().useAlpha);d.uniform4fv(this.w.M.color,b.jn);d.uniform1f(this.w.M.alpha,b.vR);d.lineWidth(1);d=b.Ym;var c=0;for(b=b.Ym.length;c<b;c++){var f=d[c];e.U.multiply(f.Ga,a.Fb,f.Ub);this.AI(f)}this.w.zb();this.gb.A();this.pb.A()};c.prototype.eO=function(a,b,d){b=this.m;var e=d.fillColor;b.clearColor(e[0],e[1],e[2],e[3]);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);b.blendEquation(b.FUNC_ADD);
this.sI(a,d);b.disable(b.BLEND)};c.F=function(b){if(b.R.has("grid-layer-renderer-deps"))return b.R.get("grid-layer-renderer-deps");var e=n.tb.Bb(b,"shaders/grid.vert","shaders/grid.frag"),c=n.tb.Bb(b,"shaders/full-screen.vert","shaders/basic.frag"),f=r.QQ(b,a,d),g=r.Ri(b);e=q.all([e,c,f,g]);b.R.add("grid-layer-renderer-deps",e);return e};return c});u(150,0,function(){function c(a){q.prototype.constructor.call(this,a);l.ua(this)&&(this.uh=g.If)}var l=k(8),r=k(11),q=k(148),n=k(124),h=k(120),g=k(21),
e=k(0),b=k(27).ps,a=k(125);l.P(q,c);c.prototype.Lc=function(a,b,e,c,g,h){for(var d=0,f=this.nb.length;d<f;d++)this.nb[d].qa(a,b,e,c,g,h)};c.prototype.Mw=function(a,b,e){b=b.la;for(var d=0,c=b.length;d<c;d++){var f=b[d];this.Og(a,f,e*f.alpha)}};c.prototype.UC=function(a){this.uh=a};c.prototype.MS=function(a,b){return this.uh.qa(function(){if(!b.Ob&&!b.rc)return h.VO(this.m,a)},this)};c.prototype.ej=function(a,b,e){return this.uh.qa(function(){if(!e.Ob&&!e.rc){var b=this.m,d=n.Sm(b,a,!1);d.bind().yd(b.LINEAR).xd(b.LINEAR).zj(b.CLAMP_TO_EDGE).Aj(b.CLAMP_TO_EDGE).A();
return d}},this)};c.prototype.NS=function(a,e){return this.uh.qa(function(){if(!e.Ob&&!e.rc){var d=this.m,c=new n(d,a.width,a.height);switch(a.format){case b.ALPHA:var f=d.ALPHA;break;case b.RGBA:f=d.RGBA;break;default:console.assert(!1)}c.bind().yd(d.LINEAR).xd(d.LINEAR).data(a.data,f,f,!1).zj(d.CLAMP_TO_EDGE).Aj(d.CLAMP_TO_EDGE).A();return c}},this)};c.prototype.LS=function(b,e){return this.uh.qa(function(){if(!e.Ob&&!e.rc)return a.Vm(this.m,b)},this)};c.prototype.$v=function(a,b,c){a=a.$t;b=Math.max(a[0]+
e.wq,b);return c*Math.pow(2,a[0]-b)};c.prototype.Ab=function(){};c.prototype.lc=function(){};r.ka(c.prototype);return c});u(151,0,function(){function c(c){this.m=c;this.Qa(c)}var l=k(13),r=k(0),q=k(119),n=k(121);c.prototype.Ka=function(){this.Yn=this.w=void 0};c.prototype.Qa=function(h){var g=this;return c.F(h).then(function(e){g.w=e[0];g.Yn=e[1]})};c.prototype.nD=function(c){var g=this.m;g.enable(g.STENCIL_TEST);g.colorMask(!1,!1,!1,!1);g.stencilOp(g.REPLACE,g.KEEP,g.KEEP);this.w.use();var e=this.w.attributes(),
b=this.w.M;this.Yn.pb.bind();this.Yn.gb.bind();g.vertexAttribPointer(e.position,2,g.FLOAT,!1,8,0);g.enableVertexAttribArray(e.position);this.Yn.gb.A();g.stencilFunc(g.NEVER,r.Uh,r.Uh);g.uniformMatrix4fv(b.modelViewProjMatrix,!1,c.Ga);g.drawElements(g.TRIANGLES,6,g.UNSIGNED_SHORT,0);this.Yn.pb.A();this.w.zb();g.colorMask(!0,!0,!0,!0);g.disable(g.STENCIL_TEST)};c.F=function(c){if(c.R.has("tile-stenciler-deps"))return c.R.get("tile-stenciler-deps");var g=q.tb.Bb(c,"shaders/basic.vert","shaders/basic.frag"),
e=n.Ri(c);g=l.all([g,e]);c.R.add("tile-stenciler-deps",g);return g};return c});u(152,0,function(){function c(){}var l=k(119),r=k(120),q=k(13),n=k(125);k(0);c.prototype.Cb=function(c){this.m=c;var g="point-rendering-resources-"+c.id;if(c.R.has(g))var e=c.R.get(g);else{e=l.tb.Bb(c,"shaders/vertices.vert","shaders/vertices.frag");var b=l.tb.Bb(c,"shaders/vertices.vert","shaders/vertices.frag",{RENDER_TEXTURE:1}),a=n.Yp(c);e=q.all([e,b,a]);c.R.add(g,e)}return e=e.then(function(a){this.Fo=a[0];this.hp=
a[1];this.Sj=a[2];this.dk=r.Yu(c);return this}.bind(this))};c.prototype.Op=function(){return this.Fo};c.prototype.rr=function(){return this.hp};c.prototype.pb=function(){return this.Sj};c.prototype.Eg=function(c){var g=this.m;g.enable(g.BLEND);g.blendFuncSeparate(g.SRC_ALPHA,g.ONE_MINUS_SRC_ALPHA,g.ONE,g.ONE_MINUS_SRC_ALPHA);var e=c.attributes();c.use();this.Sj.bind();this.dk.bind();g.vertexAttribPointer(e.position,2,g.FLOAT,!1,8,0);g.enableVertexAttribArray(e.position)};c.prototype.Ug=function(c){var g=
this.m;g.disableVertexAttribArray(c.attributes().position);this.dk.A();this.Sj.A();c.zb();g.disable(g.BLEND)};c.prototype.EV=function(c){this.dk.data(c)};c.prototype.mj=function(c){this.gm!==c&&(this.gm=c,this.Fo.use(),this.m.uniform1f(this.Fo.M.pr,c),this.Fo.zb(),this.hp.use(),this.m.uniform1f(this.hp.M.pr,c),this.hp.zb())};c.get=function(h){return(new c).Cb(h)};return c});u(153,0,function(){function c(){}function l(){this.xa=null}function r(a){this.m=a;var b=this;r.F(a).then(function(a){b.Bn=a[0];
b.Op=b.Bn.Op();b.rr=b.Bn.rr();b.dt();b.uh=h.If})}var q=k(13),n=k(152),h=k(21),g=k(0),e=k(125);c.Sc=function(){return!0};var b={COLOR:0,Bs:1},a=Object.keys(b).length;l.prototype.df=function(a,b){this.GS=a;this.$f=b};l.prototype.ef=function(a){this.Ga=a};l.prototype.$w=function(a){this.tC=a};l.prototype.Ph=function(a,b){this.color=a;this.xa=null;this.alpha=b};l.prototype.Rh=function(a){this.size=a};l.prototype.nj=function(a,b,e,c){this.xa=a;this.color=null;this.alpha=c;c=Math.max(a.width,a.height);
this.Ff=b?b:[a.width/c,a.height/c];this.Gf=e?e:[.5*(c-a.width)/c,.5*(c-a.height)/c]};l.prototype.nR=function(){return null!==this.xa};r.prototype.dt=function(){this.qc=Array(7);this.$a=Array(a);this.$a[b.COLOR]=this.Qf(this.Op);this.$a[b.Bs]=this.Qf(this.rr);this.HG(this.$a[b.COLOR],this.Op);this.IG(this.$a[b.Bs],this.rr)};r.prototype.Qf=function(a){function b(a){l=a.Ga;g.zg(h,a)}var d=this.Bn;this.qc=Array(7);var e=Array(7),g=this,h=a.M;e[0]=d.Eg.bind(d,a);e[0].Sc=function(a){return this!==a};e[6]=
d.Ug.bind(d,a);var l;b.Sc=function(a,d){return a!==b||d.Ga!==l};e[1]=b;e[5]=c;e[3]=this.EI.bind(this,h);e[2]=c;e[4]=c;return e};r.prototype.HG=function(a,b){function d(a){f=a;g.aJ(e,a)}var e=b.M,f=null,g=this;d.Sc=function(a,b){return a!==d||b.color!==f.color||b.alpha!==f.alpha||b.size!==f.size};a[2]=d;a[4]=c};r.prototype.IG=function(a,b){function d(a){c=a;f.bJ(e,a)}var e=b.M,c=null,f=this;d.Sc=function(a,b){return a!==d||b.xa!==c.xa||b.alpha!==c.alpha||b.size!==c.size};a[2]=d;a[4]=f.BJ.bind(this,
e)};r.prototype.Zu=function(){return new l};r.prototype.VG=function(a){return a.nR()?b.Bs:b.COLOR};r.prototype.zg=function(a,b){this.m.uniformMatrix4fv(a.modelViewProjMatrix,!1,b.Ga)};r.prototype.aJ=function(a,b){var d=this.m;d.uniform1f(a.size,b.size);d.uniform4f(a.color,b.color[0],b.color[1],b.color[2],b.color[3]);d.uniform1f(a.alpha,b.alpha)};r.prototype.bJ=function(a,b){var d=this.m;d.uniform1f(a.size,b.size);d.uniform2fv(a.uvStart,b.Gf);d.uniform2fv(a.uvSize,b.Ff);d.uniform1f(a.alpha,b.alpha);
b=b.xa;d.activeTexture(d.TEXTURE0);d.uniform1i(a.pointTexture,0);b.bind()};r.prototype.BJ=function(a,b){a=this.m;b=b.xa;a.activeTexture(a.TEXTURE0);b.A()};r.prototype.EI=function(a,b){a=this.m;var d=b.GS,e=b.$f;b=b.tC;for(var c;0<d;){c=Math.min(d,g.$R);var f=new Float32Array(b,8*e,2*c);this.Bn.EV(f);a.drawElements(a.POINTS,c,a.UNSIGNED_SHORT,0);d-=c;e+=c}};r.prototype.hg=function(){this.nm();this.yt=null};r.prototype.jg=function(){for(var a=4;7>a;a++)this.qc[a](this.yt);this.nm()};r.prototype.nm=
function(){for(var a=0;7>a;a++)this.qc[a]=c};r.prototype.Nt=function(a,b){for(var d=4;d<=a;d++)this.qc[d](this.yt);for(d=0;7>d;d++)this.qc[d]=b[d]};r.prototype.rm=function(a,b,e){for(;3>a;a++)b[a](e)};r.prototype.FC=function(a){var b=this.VG(a);b=this.$a[b];for(var d=this.qc,e=0;3>e;e++)if(d[e].Sc(b[e],a)){this.Nt(6-e,b);this.rm(e,b,a);break}b[3](a);this.yt=a};r.prototype.Um=function(a){return this.uh.qa(e.wD.bind(null,this.m,a,!0),this)};r.prototype.ic=function(a){this.Bn.mj(a.devicePixelRatio)};
r.F=function(a){if(a.R.has("point-renderer-deps"))return a.R.get("point-renderer-deps");var b=n.get(a);b=q.all([b]);a.R.add("point-renderer-deps",b);return b};return r});u(154,0,function(){function c(b,a){l.ua(this)&&(q.prototype.constructor.call(this,b),this.Vd=new h(b,a),this.Zh=new n(b),this.qf(b,a))}var l=k(8);k(5);var r=k(0),q=k(150),n=k(151),h=k(129);k(153);var g=k(120),e=k(13);l.P(q,c);c.prototype.Ka=function(){this.Vd.Ka();this.Zh.Ka()};c.prototype.qf=function(b,a){return c.F(b,a).then(function(){this.Zh=
new n(b)}.bind(this))};c.prototype.Qa=function(b,a){return e.all([this.qf(b,a),this.Vd.Qa(b,a),this.Zh.Qa(b)])};c.prototype.Pe=function(b,a,d,e){a=d.la;d=0;for(var c=a.length;d<c;d++){var f=a[d];0!==f.elements.length&&(f.J.mn=this.$v(f,b.ag(),e))}};c.prototype.Rq=function(b,a,d){var e=this.m;if(0!==d.length){e.clearStencil(0);e.clear(e.STENCIL_BUFFER_BIT);this.Vd.hg(b,a);var c=this,g=d[0],h=g.oa,l={};d.forEach(function(d){if(d.J&&(l[h.key.br]=h,d.oa.key.z!==h.key.z)){for(var e in l){var f=l[e];this.Vd.jg();
this.Zh.nD(f);this.Vd.hg(b,a)}l={}}c.Vd.bT(d);g=d;h=d.oa},this);this.Vd.jg()}};c.prototype.DD=function(b,a,d,e,c,g,h,l,n,k,q){var f=b.J.qC;a?f.HT(e,q,a,d,c,g,h,l,n,k,b.jb.zIndex):f.DT()};c.prototype.ic=function(b){this.Vd.ic(b)};c.prototype.Ab=function(b,a,d,e,c){this.Vd.Ab.apply(this.Vd,arguments);var f=b.elements,m;var h=0;for(m=f.length;h<m;h++){var l=f[h],n=l.gc,k=d[n.eq];if(k){k.KB()&&k.type(g.oo);var q=this.Vd.UO();q.df(n.ov,n.rv,n.zx,n.il);q.ef(b,k);l.J={qC:q};this.IW&&(b.J.US=a.Pq.Ki[l.gc.vc],
n=this.Vd.dR(q),k=this.xe.Zu(),k.df(n.length,0),k.ef(b.Ga),k.Ph(r.DZ,1),k.Rh(r.EZ),k.$w(n.tC),l.J.yw=k)}}};c.prototype.lc=function(b){this.Vd.lc.apply(this.Vd,arguments)};c.F=function(b,a){if(b.R.has("polygon-deps"))return b.R.get("polygon-deps");var d=n.F(b);a=h.F(b,a);d=e.all([d,a]);b.R.add("polygon-deps",d);return d};return c});u(155,0,function(){function c(e,b){n.prototype.constructor.call(this,e,b);this.qf(e,b);this.ct()}var l=k(13),r=k(8),q=k(0),n=k(154),h=k(121),g=k(119);k(15);r.P(n,c);c.prototype.Ka=
function(){n.prototype.Ka.call(this);this.Gu=this.Hu=this.Fm=void 0};c.prototype.qf=function(e,b){return c.F(e,b).then(function(a){this.Fm=a[0];this.Hu=a[1].gb;this.Gu=a[1].pb}.bind(this))};c.prototype.Qa=function(e,b){return l.all([n.prototype.Qa.call(this,e,b),this.qf(e,b)])};c.prototype.ct=function(){this.dd("clear-tile",this.uI.bind(this));this.dd("below-roads",this.xI.bind(this));this.dd("above-roads",this.rI.bind(this));this.dd("above-buildings",this.qI.bind(this))};c.prototype.Pe=function(e,
b,a,d,c,m){n.prototype.Pe.apply(this,arguments);var f=this;a.la.forEach(function(a){a.elements.forEach(function(a){var b=a.jb;f.DD(a,b.visible,b.visible,b.fillColor,b.Ha*q.rC,b.strokeColor,b.Wh,b.kr*q.rC,b.tj,b.jr,m)})})};c.prototype.uI=function(e,b,a,d,c,m){e=this.m;this.Fm.use();d=this.Fm.attributes();b=this.Fm.M;e.enable(e.BLEND);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);e.uniform4fv(b.color,a.clearColor||q.OA);this.Gu.bind();this.Hu.bind();e.vertexAttribPointer(d.position,
2,e.FLOAT,!1,8,0);e.enableVertexAttribArray(d.position);a=a.la;d=0;for(c=a.length;d<c;d++)e.uniformMatrix4fv(b.modelViewProjMatrix,!1,a[d].Ga),e.uniform1f(b.alpha,m),e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0);this.Fm.zb();this.Gu.A();this.Hu.A();e.disable(e.BLEND)};c.prototype.xI=function(e,b,a){this.Rq(e,b,a.Iu)};c.prototype.rI=function(e,b,a){this.Rq(e,b,a.du)};c.prototype.qI=function(e,b,a){this.Rq(e,b,a.cu)};c.F=function(e,b){if(e.R.has("land-deps"))var a=e.R.get("land-deps");else{var d=
g.tb.Bb(e,"shaders/basic.vert","shaders/basic.frag"),c=h.Ri(e);a=l.all([d,c]);e.R.add("land-deps",a)}return n.F(e,b).then(function(){return a})};return c});u(156,0,function(){function c(c){q.prototype.constructor.call(this,c)}var l=k(8),r=k(4).global,q=k(154);k(15);var n=[255,255,255,0];l.P(q,c);c.prototype.Pe=function(c,g,e,b,a,d){var f=this;e.la.forEach(function(a){a.elements.forEach(function(b){var e=b.jb,c=e.Ha||-1;f.DD(b,0<b.alpha,0<b.alpha&&0<c,e.Qi,c,e.strokeColor,r.Jf,0,n,r.Jf,a.alpha*d*b.alpha)})});
q.prototype.Pe.apply(this,arguments)};c.prototype.Lc=function(c,g,e){this.Rq(c,g,e.HA)};c.F=q.F;return c});u(157,0,function(){function c(a,b,e,c){q.ua(this)&&h.prototype.constructor.call(this,a,e,c)}function l(a,e){c.prototype.constructor.call(this,a,e,4,b)}function r(a,b,e){var d=n.Ev(e.length);c.prototype.constructor.call(this,a,b,8,d);this.pattern=e;this.yB=this.pattern.length/d}var q=k(8),n=k(5),h=k(124),g=k(0),e=k(13);q.P(h,c);c.prototype.Fv=function(){return{Tw:this.m.CLAMP_TO_EDGE,t:this.m.CLAMP_TO_EDGE}};
c.prototype.PQ=function(){return{min:this.m.LINEAR,RR:this.m.LINEAR}};c.prototype.Cb=function(){var a=this.getData(),b=this.m.ALPHA,c=this.Fv(),g=this.PQ();this.bind().data(a,b,b,!1).yd(g.min).xd(g.RR).zj(c.Tw).Aj(c.t).A();return e.resolve(this)};var b=g.vS;q.P(c,l);l.prototype.getData=function(){for(var a=Array(4*b),e=0,c=.75*b,g=.25*b,h=0;h<b;h++){var l=255;h>g&&h<c&&(l=0);for(var n=0;4>n;n++)a[e++]=l}return new Uint8Array(a)};l.prototype.Fv=function(){return{t:this.m.REPEAT,Tw:this.m.CLAMP_TO_EDGE}};
q.P(c,r);r.prototype.getData=function(){for(var a=this.pattern.Bv,b=Array(this.width*this.height),e=255,c=0,g=0,h=0,l=a.length;h<l;h++){g=a[h]/this.yB+g;for(var n=Math.floor(g),k=0;k<n;k++)for(var q=0;8>q;q++)b[c++]=e;g-=n;e=e?0:255;g=0!==g?g-1:0}return new Uint8Array(b)};r.prototype.Fv=function(){return{t:this.m.REPEAT,Tw:this.m.CLAMP_TO_EDGE}};g={RD:2,Tx:3};var a={};g.get=function(b,e,c,g,h){var d="procedural-texture-"+e+"x-"+c+(g?"-"+g:"");if(b.R.has(d))return b.R.get(d);e=(new a[c](b,e,h)).Cb().then(function(a){a.once("released",
function(){b.R.remove(d)});return a.Uf()});e.catch(function(){b.R.remove(d)});b.R.add(d,e);return e};a[g.RD]=l;a[g.Tx]=r;return g});u(158,0,function(){function c(a,b){l.ua(this)&&(n.prototype.constructor.call(this,a),this.Wa=new g(a,b),this.Zh=new h(a),this.qf(a,b),this.Pl={},this.jh=!0,this.CC())}var l=k(8);k(5);var r=k(125),q=k(4).global,n=k(150),h=k(151),g=k(127),e=k(3),b=k(157),a=k(13),d=k(0),f=k(21);l.P(n,c);c.prototype.Ka=function(){this.Wa.Ka();this.Zh.Ka();this.Pl={};this.jh=!1};c.prototype.qf=
function(a,b){return c.F(a,b)};c.prototype.Qa=function(b,d){var e=this;return a.all([e.qf(b,d),e.Wa.Qa(b,d),e.Zh.Qa(b)]).then(function(){e.jh=!0})};c.prototype.CC=function(){this.dd("roads",this.II.bind(this));this.dd("road-alpha",this.tI.bind(this));this.dd("borders",this.yI.bind(this))};c.prototype.oA=function(a,b){b?a.aD(this.Pl[b]):a.aD(null)};c.prototype.JJ=function(a,b,c,f,g){var m=b.ht=[],p=a.ag(),h=r.Iq,l=b.Dh?d.qD:q.ly,n=q.Jf;b.la.forEach(function(d){d.J&&(d.J.mn=this.$v(d,p,c),e.U.multiply(d.Ga,
a.Fb,d.Ub),d.elements.forEach(function(a){var d=a.jb;if(d.mq&&(void 0===g||!d.Pi===!g)){var e=Math.min(a.J.io,511),c=a.jb.lr,p=a.jb.Qp;if(0<d.lq){var k=0;var t=.5}else d.jl||d.Pi?(k=d.Ha,t=d.width):(k=d.Ha-.5,t=d.width-.5);b.Dh&&(k=Math.max(k,h),t=Math.max(t,h));if(.1<=k){var q=d.strokeColor,r=f;k<h&&(r*=k/h,k=h);k*=.5;var w=a.J.Vh;w.lj(k,k,q,n,r);this.oA(w,d.jl);w.order=w.oa.key.z<<26|e<<17|c<<9|p;m.push(w)}.1<=t&&(k=d.Wq?d.bB:d.fillColor,q=f,t<h&&(q*=t/h,t=h),t*=.5,a=a.J.qv,a.lj(t,t,k,l,q),this.oA(a,
d.Pi),a.order=a.oa.key.z<<26|e<<17|c<<9|256|p,m.push(a))}},this))},this);m.sort(function(a,b){return a.order-b.order})};c.prototype.II=function(a,b,d,e,c,f){this.Ft(a,b,d,e,c,f,!1)};c.prototype.yI=function(a,b,d,e,c,f){this.Ft(a,b,d,e,c,f,!0)};c.prototype.Ft=function(a,b,d,e,c,f,g){d.la.length&&(d.Dh||(c=this.m,c.clearStencil(0),c.clear(c.STENCIL_BUFFER_BIT)),this.JJ(a,d,e,f,g),this.Wa.ix(),this.Nz(a,b,d.ht))};c.prototype.tI=function(a,b,d){d.Dh&&d.la.length&&(this.Wa.LT(),this.Nz(a,b,d.ht))};c.prototype.Nz=
function(a,b,d){if(d.length){this.Wa.hg(a,b);var e=this,c=d[0],f=c.oa,m={};d.forEach(function(d){if(d.oa!==f&&(m[f.key.br]=f,d.oa.key.z!==f.key.z)){for(var g in m){var p=m[g];this.Wa.jg();this.Zh.nD(p);this.Wa.hg(a,b)}m={}}e.Wa.hj(d,b);c=d;f=d.oa},this);this.Wa.jg()}};c.prototype.Ab=function(d,e,c,g,h){var m=d.elements;if(m.length){this.Wa.Ab.apply(this.Wa,arguments);var p=[],l=this,n=!1;d.once("loading-aborted",function(){n=!0},this);m.forEach(function(a,b){var c=a.gc;c={offset:c.offset,count:c.count,
Uc:c.count-1,io:c.io};var m=l.Wa.vk();m.df(c.Uc,c.offset);m.ef(d);m.tR=b;m.oa=d;c.qv=m;m=l.Wa.vk();m.df(c.Uc,c.offset);m.ef(d);m.tR=b;m.oa=d;c.Vh=m;a.J=c;var g=d.ye;if(a.jb.mR()){var h=e.Pq.Ki[a.gc.vc];b=f.ls.qa(function(){return!n&&l.jh?(l.dI(a,g,h),!0):!1});p.push(b)}});m=e.Mm.map(function(a){return b.get(this.m,1,b.Tx,a.id,a).then(function(b){d.ye.Mh(b);a.id in this.Pl||(this.Pl[a.id]=b,b.once("released",function(){delete this.Pl[a.id]},this))}.bind(this))}.bind(this));return a.all([a.all(p),a.all(m)]).then(function(){d.va("loading-aborted",
null,d)})}};c.prototype.lc=function(a){var b=a.J;b&&(b.qv=void 0,b.Vh=void 0);this.Wa.lc.apply(this.Wa,arguments)};c.prototype.dI=function(a,b,d){var e=a.J,c=this.Wa.Gc;d=c.Xm(d,e.offset,e.count);c=c.IQ(d);a.J.qv.RC(c);a.J.Vh.RC(c);b.Mh(c)};c.F=function(b,d){if(b.R.has("road-deps"))return b.R.get("road-deps");var e=h.F(b);d=g.F(b,d);e=a.all([e,d]);b.R.add("road-deps",e);return e};return c});u(159,0,function(){function c(c,l){r.prototype.constructor.call(this,c,l)}var l=k(8),r=k(158);l.P(r,c);c.prototype.CC=
function(){this.dd("below-roads",this.Ft.bind(this))};c.F=r.F;return c});u(160,0,function(){function c(a){n.prototype.constructor.call(this,a);this.Qa(a);this.ct()}var l=k(8),r=k(13),q=k(119),n=k(150),h=k(121),g=k(15),e=k(3),b=k(125);l.P(n,c);c.prototype.Ka=function(){this.wj=this.Yh=void 0};c.prototype.Qa=function(a){var b=this;return c.F(a).then(function(a){b.Yh=a[0];b.wj=a[1]})};c.prototype.ct=function(){this.dd("below-roads",this.tF.bind(this));this.dd("before-road-alpha",this.sF.bind(this));
this.dd("above-roads",this.dF.bind(this))};c.prototype.bj=function(a){n.prototype.bj.apply(this,arguments);this.Eh=this.GC===g.md.mi;this.IB=this.GC===g.md.Il};c.prototype.Vt=function(a){return a.Dh&&!(this.Eh||this.IB)};c.prototype.tF=function(a,b,e){this.Vt(e)?this.xF.apply(this,arguments):this.GI.apply(this,arguments)};c.prototype.sF=function(a,b,e){this.Vt(e)&&this.QI.apply(this,arguments)};c.prototype.dF=function(a,b,e){this.Vt(e)&&this.HI.apply(this,arguments)};c.prototype.xF=function(a,b,e){b=
this.m;b.disable(b.BLEND);b.clearStencil(255);b.clear(b.STENCIL_BUFFER_BIT);b.enable(b.STENCIL_TEST);b.stencilFunc(b.ALWAYS,0,255);b.stencilOp(b.KEEP,b.KEEP,b.REPLACE);this.$o(a,e.la,0);b.disable(b.STENCIL_TEST)};c.prototype.QI=function(a,b,e){b=this.m;b.clearStencil(255);b.clear(b.STENCIL_BUFFER_BIT);b.enable(b.STENCIL_TEST);b.stencilFunc(b.ALWAYS,0,255);b.stencilOp(b.KEEP,b.KEEP,b.REPLACE);b.colorMask(!1,!1,!1,!1);this.$o(a,e.la,0);b.colorMask(!0,!0,!0,!0);b.disable(b.STENCIL_TEST)};c.prototype.HI=
function(a,b,e){b=this.m;b.enable(b.BLEND);b.blendFuncSeparate(b.ONE_MINUS_DST_ALPHA,b.DST_ALPHA,b.ONE_MINUS_DST_ALPHA,b.DST_ALPHA);e=e.la.slice().reverse().filter(function(a){return!a.sQ});b.clearStencil(255);b.clear(b.STENCIL_BUFFER_BIT);b.enable(b.STENCIL_TEST);b.stencilFunc(b.ALWAYS,0,255);b.stencilOp(b.REPLACE,b.REPLACE,b.REPLACE);this.$o(a,e,1);b.disable(b.BLEND)};c.prototype.GI=function(a,b,e,c,g,h){b=this.m;b.disable(b.STENCIL_TEST);b.enable(b.BLEND);b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,
b.ONE,b.ONE_MINUS_SRC_ALPHA);this.$o(a,e.la,h);b.disable(b.BLEND)};c.prototype.$o=function(a,b,c){var d=this.m;this.Yh.use();this.wj.gb.bind();this.wj.pb.bind();d.vertexAttribPointer(this.Yh.attributes().position,2,d.FLOAT,!1,8,0);d.enableVertexAttribArray(this.Yh.attributes().position);d.uniform1i(this.Yh.M.rasterTileTexture,0);d.activeTexture(d.TEXTURE0);for(var f=0,g=b.length;f<g;f++){var h=b[f],l=h.xa;l.bind();e.U.multiply(h.Ga,a.Fb,h.Ub);d.uniformMatrix4fv(this.Yh.M.modelViewProjMatrix,!1,h.Ga);
d.uniform1f(this.Yh.M.alpha,h.alpha*c);d.drawElements(d.TRIANGLES,6,d.UNSIGNED_SHORT,0);l.A()}d.disable(d.BLEND);this.Yh.zb();this.wj.gb.A();this.wj.pb.A()};c.prototype.ej=function(a,d,e){var c=this.m;return this.uh.qa(function(){if(!e.Ob&&!e.rc)return b.wD(c,a,!0)},this)};c.prototype.Ab=function(a,b){a.xa=b};c.prototype.lc=function(a){a.xa=void 0};c.prototype.wh=function(a){a.Ga=e.U.create();return r.resolve("__done__")};c.F=function(a){if(a.R.has("raster-tile-deps"))return a.R.get("raster-tile-deps");
var b=q.tb.Bb(a,"shaders/raster-tile.vert","shaders/raster-tile.frag"),e=h.Ri(a);b=r.all([b,e]);a.R.add("raster-tile-deps",b);return b};return c});u(161,0,function(){function c(a,b){r.ua(this)&&(n.prototype.constructor.call(this,a),this.Ja=b)}var l=k(13),r=k(8),q=k(3),n=k(150),h=k(0),g=k(119),e=k(120),b=k(125);r.P(n,c);c.IA=function(a){return a.BA()||0!==a.Xr()||0!==a.Bu()};c.QC=function(a,b){c.IA(b)?a.YC():a.FT()};c.prototype.Ka=function(){this.w=this.Qe=this.gb=this.pb=this.dn=this.cn=void 0};c.prototype.Qa=
function(a){return c.F(a).then(function(a){this.cn=a[0];this.dn=a[1];this.pb=a[2];this.gb=a[3];this.Qe=9}.bind(this))};c.prototype.Xq=function(a){c.IA(a)?this.w=this.cn:this.w=this.dn};c.prototype.Pe=function(a,b,e,c,g,l){a=e.la;if(0!==a.length)for(b=0;b<a.length;b++){e=a[b];var d=e.elements;e.J={};c=[];g=[];for(var f=[],m=[],p=0,n=d.length;p<n;p++){var k=d[p].La;if(k&&k.icon&&!(k.alpha<h.vp)){var t=k.icon,q=k.ue(),r=t.Hi();t=r.page.xa;r=[k.position[0],k.position[1],q[0],q[1],r.Ff[0],r.Ff[1],r.Gf[0],
r.Gf[1],k.zh*k.alpha*l];var u=c.indexOf(t);-1!==u?(u=g[u],u.push.apply(u,r)):(u=r,g.push(u),c.push(t));k.Hc&&(r=k.Hc.Hi(),t=r.page.xa,k=[k.position[0],k.position[1],q[0],q[1],r.Ff[0],r.Ff[1],r.Gf[0],r.Gf[1],k.alpha*l],q=f.indexOf(t),-1!==q?(q=m[q],q.push.apply(q,k)):(q=k,m.push(q),f.push(t)))}}if(0===f.length)e.J.kc=c,e.J.le=g;else{for(d=0;d<c.length;d++)n=c[d],p=g[d],k=f.indexOf(n),-1!==k?(n=m[k],n.push.apply(n,p)):(f.push(n),m.push(p));e.J.kc=f;e.J.le=m}}};c.prototype.Lc=function(a,b,e){c.QC(this.Ja.Em,
a);e=e.la;if(0!==e.length){this.Xq(a);this.gb.bind();this.pb.bind();this.w.use();var d=this.m;d.enable(d.BLEND);d.blendFuncSeparate(d.SRC_ALPHA,d.ONE_MINUS_SRC_ALPHA,d.ONE,d.ONE_MINUS_SRC_ALPHA);d.uniform2fv(this.w.M.viewportSize,b);d.vertexAttribPointer(this.w.attributes().tilePosition,2,d.FLOAT,!1,36,0);d.vertexAttribPointer(this.w.attributes().size,2,d.FLOAT,!1,36,8);d.vertexAttribPointer(this.w.attributes().uvSize,2,d.FLOAT,!1,36,16);d.vertexAttribPointer(this.w.attributes().uvStart,2,d.FLOAT,
!1,36,24);d.vertexAttribPointer(this.w.attributes().alpha,1,d.FLOAT,!1,36,32);d.enableVertexAttribArray(this.w.attributes().tilePosition);d.enableVertexAttribArray(this.w.attributes().size);d.enableVertexAttribArray(this.w.attributes().uvSize);d.enableVertexAttribArray(this.w.attributes().uvStart);d.enableVertexAttribArray(this.w.attributes().alpha);b=0;for(var f=e.length;b<f;b++)this.Og(a,e[b]);d.disableVertexAttribArray(this.w.attributes().tilePosition);d.disableVertexAttribArray(this.w.attributes().uvStart);
d.disableVertexAttribArray(this.w.attributes().uvSize);d.disableVertexAttribArray(this.w.attributes().size);d.disableVertexAttribArray(this.w.attributes().alpha);this.gb.A();this.pb.A();this.w.zb();d.disable(d.BLEND)}};c.prototype.Og=function(a,b){var d=this.m;if(b.elements.length&&b.J.kc.length){var e=this.w.M;d.activeTexture(d.TEXTURE0);d.uniform1i(e.iconTexture,0);q.U.multiply(b.Ga,a.Fb,b.Ub);d.uniformMatrix4fv(e.modelViewProjMatrix,!1,b.Ga);for(a=0;a<b.J.kc.length;a++){e=b.J.kc[a];var c=b.J.le[a],
g=new Float32Array(c);e.bind();var l=0;for(c=Math.round(c.length/this.Qe);0<c;){var n=Math.min(c,h.yq),k=new Float32Array(g.buffer,l*this.Qe*4,n*this.Qe);this.gb.data(k);d.drawElements(d.POINTS,n,d.UNSIGNED_SHORT,0);c-=n;l+=n}e.A()}}};c.prototype.Ab=function(){};c.prototype.ic=function(a){a=a.ao;var b=this.m;this.dn.use();b.uniform1f(this.dn.M.pr,a);this.dn.zb();this.cn.use();b.uniform1f(this.cn.M.pr,a);this.cn.zb()};c.F=function(a){if(a.R.has("icon-renderer-deps"))return a.R.get("icon-renderer-deps");
var d=g.tb.Bb(a,"shaders/icon.vert","shaders/icon.frag",{SNAP_ICONS_TO_PIXEL:"0"}),c=g.tb.Bb(a,"shaders/icon.vert","shaders/icon.frag",{SNAP_ICONS_TO_PIXEL:"1",ALLOW_SUPERSAMPLING:"0"}),m=b.Yp(a),p=e.Yu(a);d=l.all([d,c,m,p]);a.R.add("icon-renderer-deps",d);return d};return c});u(162,0,function(){function c(b,a,d,e){this.offset=q.l.u(b,a);this.size=q.l.u(d,e);this.wd()}function l(b,a,d,e,c){this.ZG=a/e;this.YG=d/e;this.tg=e;this.Wl=c;this.lp=a;this.Oo=d;this.Zs=b.LINEAR;this.C=b;this.ej();this.MI();
this.once("released",function(a){a.xa&&g.El.qa(a.xa.Pa,a.xa)});this.wd()}function r(b,a,d,e,c){this.Pu=e;this.width=a;this.height=d;this.m=b;this.Jp=b.NEAREST;this.pR=c||0;this.Lg=[]}var q=k(3);k(5);var n=k(124),h=k(22),g=k(21),e=[];h.ka(c.prototype);l.prototype.ZS=function(){this.xa=void 0};l.prototype.ej=function(){var b=this.C;this.xa=new n(b,this.lp,this.Oo);this.xa.bind().data(null,b.RGBA,b.RGBA,!0).zj(b.CLAMP_TO_EDGE).Aj(b.CLAMP_TO_EDGE).yd(this.Zs).xd(this.Zs).A()};l.prototype.WC=function(b){this.Zs=
b;this.xa.bind().yd(b).xd(b).A()};l.prototype.MI=function(){this.He=[];for(var b=0;b<this.lp;b+=this.tg){for(var a=[],d=0;d<this.Oo;d+=this.tg)a.push({Au:!1});this.He.push(a)}};l.prototype.Rp=function(b,a){b=Math.ceil((b+2*this.Wl)/this.tg);a=Math.ceil((a+2*this.Wl)/this.tg);var d,e;var c=0;for(d=this.ZG-b+1;c<d;c++){var g=0;for(e=this.YG-a+1;g<e;g++){a:{var h=c;var l=g,n,k,q=[];for(n=0;n<b;n++)for(k=0;k<a;k++){var r=this.He[h+n][l+k];if(r.Au){h=null;break a}q.push(r)}h=q}if(h)return{x:c,y:g,cells:h}}}return null};
l.prototype.MO=function(b,a,d){var e=new c(this.tg*b.x+this.Wl,this.tg*b.y+this.Wl,a,d);e.cells=b.cells;b=0;for(var m=e.cells.length;b<m;b++)e.cells[b].Au=!0;e.page=this;e.Gf=q.l.u(e.offset[0]/this.lp,e.offset[1]/this.Oo);e.Ff=q.l.u(a/this.lp,d/this.Oo);return e};l.prototype.XN=function(b,a){a=this.MO(a,b.width,b.height);var d=this.C;this.xa.bind().eV(b,d.RGBA,a.offset[0],a.offset[1]).A();this.rb();return a};l.prototype.zQ=function(b){this.yF(b).then(this.release.bind(this))};l.prototype.yF=function(b){var a=
this;return g.If.qa(function(){for(var d=0,c=b.cells.length;d<c;d++)b.cells[d].Au=!1;if(a.xa){var m=b.size;d=b.offset;c=a.C;var g=a.Wl,h=2*g,l=m[0]+h;m=m[1]+h;h=l*m*4;if(!(e.length>=h)){e=new Uint8Array(h);for(var n=0;n<h;n+=4)e[n+0]=255,e[n+1]=255,e[n+2]=255,e[n+3]=0}h=e;a.xa.bind().$n(h,c.RGBA,d[0]-g,d[1]-g,l,m).A()}})};h.ka(l.prototype);r.prototype.Kn=function(){this.Lg.forEach(function(b){b.ZS()})};r.prototype.Fw=function(){this.Lg.forEach(function(b){b.ej()})};r.prototype.jF=function(){var b=
new l(this.m,this.width,this.height,this.Pu,this.pR);b.WC(this.Jp);this.Lg.push(b);var a=this;b.once("released",function(b){a.Lg.splice(a.Lg.indexOf(b),1)});return b};r.prototype.mA=function(b){for(var a=0,d=this.Lg.length;a<d;a++)this.Lg[a].WC(b);this.Jp=b};r.prototype.YC=function(){this.Jp!==this.m.LINEAR&&this.mA(this.m.LINEAR)};r.prototype.FT=function(){this.Jp!==this.m.NEAREST&&this.mA(this.m.NEAREST)};r.prototype.Rp=function(b,a){var d=null,e=null;if(!(b>=this.width||a>=this.height)){for(var c=
0,g=this.Lg.length;c<g&&!(e=this.Lg[c],d=e.Rp(b,a));c++);d||(e=this.jF(),d=e.Rp(b,a));return[d,e]}};r.prototype.AC=function(b){var a=this.Rp(b.width,b.height),d=a[1],e=d.XN(b,a[0]);e.once("released",function(){d.zQ(e)});return e};return r});u(163,0,function(){function c(b){n.prototype.constructor.call(this,b);this.nr=new h(b,512,512,16,1);this.ck={};this.Qa(b)}var l=k(8),r=k(0),q=k(3),n=k(161),h=k(162),g=k(13),e=k(21);l.P(n,c);c.prototype.Ka=function(){n.prototype.Ka.call(this);this.nr.Kn();this.ck=
{}};c.prototype.Qa=function(b,a){b=n.prototype.Qa.call(this,b,a);this.nr.Fw();return b};c.prototype.Pe=function(b,a,d,e,c,g){b=d.la;if(0!==b.length)for(a=0;a<b.length;a++){d=b[a];e=d.elements;d.J={};c=[];for(var f=[],m=0,h=e.length;m<h;m++){var p=e[m],l=p.Fc;if(l.visible){p=p.J.Hi;for(var n=l.S,k=p.page.xa,q=0,u=l.yb.length;q<u;q++){var H=l.yb[q];if(!(H.alpha<r.vp)){H=[H.position[0],H.position[1],n[0],n[1],p.Ff[0],p.Ff[1],p.Gf[0],p.Gf[1],H.alpha*g];var F=c.indexOf(k);-1!==F?(F=f[F],F.push.apply(F,
H)):(F=H,f.push(F),c.push(k))}}}}d.J.kc=c;d.J.le=f}};c.prototype.Lc=function(b,a,d){n.QC(this.nr,b);this.Xq(b);d=d.la;if(0!==d.length){this.gb.bind();this.pb.bind();this.w.use();var e=this.m;e.enable(e.BLEND);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);var c=this.w.M;e.uniform2fv(c.viewportSize,a);e.activeTexture(e.TEXTURE0);e.uniform1i(c.iconTexture,0);e.vertexAttribPointer(this.w.attributes().tilePosition,2,e.FLOAT,!1,36,0);e.vertexAttribPointer(this.w.attributes().size,
2,e.FLOAT,!1,36,8);e.vertexAttribPointer(this.w.attributes().uvSize,2,e.FLOAT,!1,36,16);e.vertexAttribPointer(this.w.attributes().uvStart,2,e.FLOAT,!1,36,24);e.vertexAttribPointer(this.w.attributes().alpha,1,e.FLOAT,!1,36,32);e.enableVertexAttribArray(this.w.attributes().tilePosition);e.enableVertexAttribArray(this.w.attributes().size);e.enableVertexAttribArray(this.w.attributes().uvSize);e.enableVertexAttribArray(this.w.attributes().uvStart);e.enableVertexAttribArray(this.w.attributes().alpha);a=
0;for(c=d.length;a<c;a++)this.Og(b,d[a]);e.disableVertexAttribArray(this.w.attributes().tilePosition);e.disableVertexAttribArray(this.w.attributes().uvStart);e.disableVertexAttribArray(this.w.attributes().uvSize);e.disableVertexAttribArray(this.w.attributes().size);e.disableVertexAttribArray(this.w.attributes().alpha);this.gb.A();this.pb.A();this.w.zb();e.disable(e.BLEND)}};c.prototype.Og=function(b,a){var d=this.m;if(a.elements.length&&a.J.kc.length){var e=this.w.M;q.U.multiply(a.Ga,b.Fb,a.Ub);d.uniformMatrix4fv(e.modelViewProjMatrix,
!1,a.Ga);for(b=0;b<a.J.kc.length;b++){e=a.J.kc[b];var c=a.J.le[b],g=new Float32Array(c);e.bind();var h=0;for(c=Math.round(c.length/this.Qe);0<c;){var l=Math.min(c,r.yq),n=new Float32Array(g.buffer,h*this.Qe*4,l*this.Qe);this.gb.data(n);d.drawElements(d.POINTS,l,d.UNSIGNED_SHORT,0);c-=l;h+=l}e.A()}}};c.prototype.ej=function(b,a,d){if(a in this.ck)var c=this.ck[a];else c=e.ls.qa(function(){if(d.Ob||d.rc)delete this.ck[a];else{var e=this.nr.AC(b);if(e){var c=this;e.once("released",function(){delete c.ck[a]});
return e.Uf()}return g.reject("__texture-atlas-error__")}},this),this.ck[a]=c;return c};c.prototype.Ab=function(b,a,d,e){b=b.elements;a=0;for(d=b.length;a<d;a++){var c=b[a],f=e[c.gc.xD];f&&(c.J={Hi:f})}};c.prototype.lc=function(b){var a=b.J;a&&(a.kc.length=0);if(b=b.elements){a=0;for(var d=b.length;a<d;a++)b[a].J=void 0}};c.F=n.F;return c});u(164,0,function(){function c(e){0>e&&(e=-e+32768);return e}function l(){this.Gm=g.l.u(0,0)}var r=k(13),q=k(119),n=k(120),h=k(0),g=k(3);l.prototype.Cb=function(e,
b){this.Tc=b.Tc;this.m=e;this.gm=0;e=l.BB(e,512);this.Dc=e.Dc;this.Jc=e.Jc;this.Ic=e.Ic;return this.mH()};l.prototype.mj=function(e){this.gm!==e&&(this.gm=e,this.oj.use(),this.m.uniform1f(this.oj.M.pr,e),this.oj.zb())};l.prototype.Lw=function(e,b,a){var d=this.m,c=a?e.Zc:e.caption,m=c.lines,h=0,l=this.Gm;g.l.set(l,0,0);a&&(l[1]=e.Zc.ik);a=0;for(var n=m.length;a<n;a++){g.l.add(l,e.offset,c.sq[a]);d.uniform2fv(b.positionOffset,l);var k=m[a];d.drawElements(d.TRIANGLES,6*k.Fg,d.UNSIGNED_SHORT,12*h);h+=
k.Fg}};l.prototype.Kw=function(e,b,a,d,c,m,g){var f=this.m,p=1/(this.Tc*a);a=.5*h.fR*p/this.gm;d&&(d*=p,f.uniform1f(e.transitionStartDistance,d-a),f.uniform1f(e.transitionEndDistance,Math.min(d+a,1)),f.uniform4fv(e.color,m),this.Lw(b,e,g));f.uniform1f(e.transitionEndDistance,a);f.uniform1f(e.transitionStartDistance,-a);f.uniform4fv(e.color,c);this.Lw(b,e,g)};l.prototype.mH=function(){var e=this.m,b={SNAP_GLYPHS_TO_PIXEL:"0"},a=q.tb.Bb(e,"shaders/axis-aligned-text-label.vert","shaders/text-label.frag",
b);b=q.tb.Bb(e,"shaders/axis-aligned-text-label.vert","shaders/shield-text-label.frag",b);var d=q.tb.Bb(e,"shaders/axis-aligned-text-label.vert","shaders/shield-text-label.frag",{SNAP_GLYPHS_TO_PIXEL:"1",ALLOW_SUPERSAMPLING:"0"}),c=q.tb.Bb(e,"shaders/curved-text-label.vert","shaders/text-label.frag"),m=this;a.then(function(a){a.use();e.uniform1i(a.M.dataTexture,0);e.uniform1i(a.M.glyphTexture,1);a.zb();m.XJ=a});c.then(function(a){a.use();e.uniform1i(a.M.dataTexture,0);e.uniform1i(a.M.glyphTexture,
1);a.zb();m.ZO=a});b.then(function(a){a.use();e.uniform1i(a.M.dataTexture,0);e.uniform1i(a.M.glyphTexture,1);a.zb();m.ar=a});d.then(function(a){a.use();e.uniform1i(a.M.dataTexture,0);e.uniform1i(a.M.glyphTexture,1);a.zb();m.oj=a});return r.all([a,c,b,d]).then(function(){return m})};l.BB=function(e,b){for(var a=[],d=[],c=[],m=0;m<b;m++)d.push(0,0,1,0,0,1,1,1),c.push(m,m,m,m),a.push(4*m,4*m+1,4*m+2,4*m+2,4*m+1,4*m+3);b=n.sh(e,new Float32Array(c));d=n.sh(e,new Float32Array(d));e=n.Fp(e,new Uint16Array(a));
return{Dc:b,Jc:d,Ic:e}};l.mP=function(e,b){return 65536*c(b)+c(e)};l.ZA=function(e,b){return 65536*b+e};l.get=function(e,b){var a=b.id+"-line-rendering-objects";if(e.R.has(a))return e.R.get(a);b=(new l).Cb(e,b);e.R.add(a,b);return b};return l});u(165,0,function(){function c(c,h){q.prototype.constructor.call(this,c,h)}var l=k(8),r=k(164),q=k(150);l.P(q,c);c.prototype.Ka=function(){this.Dc=this.Jc=this.Ic=this.w=this.lg=void 0};c.prototype.Qa=function(l,h){var g=this;return c.F(l,h).then(function(e){g.lg=
e;g.w=e.XJ;g.Ic=e.Ic;g.Jc=e.Jc;g.Dc=e.Dc})};c.prototype.Lc=function(c,h,g,e,b,a){e=this.m;b=this.w.M;var d=this.w.attributes();e.enable(e.BLEND);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);this.w.use();this.Ic.bind();e.uniform2fv(b.viewportSize,h);this.Jc.bind();e.enableVertexAttribArray(d.position);e.vertexAttribPointer(d.position,2,e.FLOAT,!1,8,0);this.Jc.A();this.Dc.bind();e.enableVertexAttribArray(d.dataIndex);e.vertexAttribPointer(d.dataIndex,1,e.FLOAT,
!1,4,0);this.Dc.A();this.Mw(c,g,a);this.Ic.A();this.w.zb();e.disable(e.BLEND)};c.prototype.Og=function(c,h,g){c=h.fk;if(c.length){var e=this.m,b=this.w.M;e.uniformMatrix4fv(b.modelViewProjMatrix,!1,h.Ga);for(var a=h={A:function(){}},d=0,f=c.length;d<f;d++){var m=c[d],p=m.J;if(p){var l=m.jb;m=m.Fc;if(m.visible&&m.kb){var n=p.ne;h!==n&&(e.uniform2f(b.dataTextureSize,n.width,n.height),e.activeTexture(e.TEXTURE0),h.A(),h=n,h.bind());p=p.re;a!==p&&(e.uniform2f(b.glyphTexturePoints,p.width,p.height),e.activeTexture(e.TEXTURE1),
a.A(),a=p,a.bind());this.lm(m,l,g)}}}h.A();a.A()}};c.prototype.lm=function(c,h,g){for(var e=this.m,b=this.w.M,a=0,d=c.yb.length;a<d;a++){var f=c.yb[a];e.uniform2fv(b.center,f.position);e.uniform1f(b.alpha,f.alpha*g);var m=f.caption;e.uniform1f(b.labelIndexOffset,m.offset);m=m.Te;e.uniform1f(b.fontScaleFactor,m);var p=h.Tg,l=h.Xh,n=h.Zm;this.lg.Kw(b,f,m,n,p,l,!1);f.Zc&&(e.uniform1f(b.fontScaleFactor,f.Zc.Te),e.uniform1f(b.labelIndexOffset,f.Zc.offset),p=h.fo?h.uj:p,this.lg.Kw(b,f,m,n,p,l,!0))}};c.prototype.Ab=
function(c,h,g,e,b){c=c.fk;h=0;for(g=c.length;h<g;h++){var a=c[h],d;var f=a.gc.Ji;for(d in f){f=f[d];a.J={re:e[f.re],ne:b[f.ne]};break}}};c.prototype.lc=function(c){if(c=c.fk)for(var h=0,g=c.length;h<g;h++)c[h].J=void 0};c.F=function(c,h){return r.get(c,h)};return c});u(166,0,function(){function c(c,g){q.prototype.constructor.call(this,c);this.Tc=g.Tc;this.Gm=l.l.u(0,0)}var l=k(3),r=k(8),q=k(150),n=k(164);r.P(q,c);c.prototype.Ka=function(){this.Dc=this.Jc=this.Ic=this.w=this.lg=void 0};c.prototype.Qa=
function(h,g){var e=this;return c.F(h,g).then(function(b){e.lg=b;e.w=b.ZO;e.Ic=b.Ic;e.Jc=b.Jc;e.Dc=b.Dc})};c.prototype.Lc=function(c,g,e,b,a,d){b=this.m;a=this.w.M;var f=this.w.attributes();b.enable(b.BLEND);b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);this.w.use();this.Ic.bind();b.uniform2fv(a.viewportSize,g);this.Jc.bind();b.vertexAttribPointer(f.position,2,b.FLOAT,!1,8,0);b.enableVertexAttribArray(f.position);this.Jc.A();this.Dc.bind();b.vertexAttribPointer(f.dataIndex,
1,b.FLOAT,!1,4,0);b.enableVertexAttribArray(f.dataIndex);this.Dc.A();this.Mw(c,e,d);this.Ic.A();this.w.zb();b.disable(b.BLEND)};c.prototype.Og=function(c,g,e){c=g.$u;if(c.length){var b=this.m,a=this.w.M;b.uniformMatrix4fv(a.modelViewProjMatrix,!1,g.Ga);for(var d=g={A:function(){}},f=0,m=c.length;f<m;f++){var h=c[f],l=h.jb,n=h.Fc;h=h.J;if(n.visible&&n.kb){var k=h.ne;g!==k&&(b.uniform2f(a.dataTextureSize,k.width,k.height),b.activeTexture(b.TEXTURE0),g.A(),g=k,g.bind());h=h.re;d!==h&&(b.uniform2f(a.glyphTexturePoints,
h.width,h.height),b.activeTexture(b.TEXTURE1),d.A(),d=h,d.bind());this.lm(n,l,e)}}g.A();d.A()}};c.prototype.lm=function(c,g,e){var b=this.m,a=this.w.M;l.l.set(this.Gm,0,0);for(var d=0,f=c.yb.length;d<f;d++){var m=c.yb[d];b.uniform1f(a.halfLineWidth,.5*c.S[0]);var h=m.curve;h.JB()?(b.uniform2fv(a.p0,l.l.clone(h.Db)),b.uniform2fv(a.p1,l.l.clone(h.Db)),b.uniform2fv(a.p2,l.l.clone(h.Lb)),b.uniform2fv(a.p3,l.l.clone(h.Lb))):(b.uniform2fv(a.p0,l.l.clone(h.Db)),b.uniform2fv(a.p1,l.l.clone(h.Lb)),b.uniform2fv(a.p2,
l.l.clone(h.we)),b.uniform2fv(a.p3,l.l.clone(h.Ud)));b.uniform1f(a.alpha,m.alpha*e);h=m.caption;b.uniform1f(a.labelIndexOffset,h.offset);h=h.Te;b.uniform1f(a.fontScaleFactor,h);this.lg.Kw(a,m,h,g.Zm,g.Tg,g.Xh)}};c.prototype.Ab=function(c,g,e,b,a){c=c.$u;g=0;for(e=c.length;g<e;g++){var d=c[g],f,m=d.gc.Ji;for(f in m){m=m[f];d.J={re:b[m.re],ne:a[m.ne]};break}}};c.prototype.lc=function(c){if(c=c.fk)for(var g=0,e=c.length;g<e;g++)c[g].J=void 0};c.F=function(c,g){return n.get(c,g)};return c});u(167,0,function(){function c(c){h.prototype.constructor.call(this,
c);this.Gm=l.l.u(0,0)}var l=k(3),r=k(8),q=k(0),n=k(164),h=k(150);r.P(h,c);c.prototype.Ka=function(){this.w=this.QA=this.Dc=this.Jc=this.Ic=this.oj=this.ar=this.lg=void 0};c.prototype.Qa=function(g,e){var b=this;return c.F(g,e).then(function(a){b.lg=a;b.ar=a.ar;b.oj=a.oj;b.Ic=a.Ic;b.Jc=a.Jc;b.Dc=a.Dc;b.QA=a.QA})};c.prototype.Xq=function(c){this.w=c.aw()<q.wS?this.oj:this.ar};c.prototype.Lc=function(c,e,b,a,d,f){this.Xq(c);a=this.m;d=this.w.M;var m=this.w.attributes();a.enable(a.BLEND);a.blendFuncSeparate(a.SRC_ALPHA,
a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA);this.w.use();this.Ic.bind();a.uniform2fv(d.viewportSize,e);this.Jc.bind();a.enableVertexAttribArray(m.position);a.vertexAttribPointer(m.position,2,a.FLOAT,!1,8,0);this.Jc.A();this.Dc.bind();a.enableVertexAttribArray(m.dataIndex);a.vertexAttribPointer(m.dataIndex,1,a.FLOAT,!1,4,0);this.Dc.A();this.Mw(c,b,f);this.Ic.A();this.w.zb();a.disable(a.BLEND)};c.prototype.Og=function(c,e,b){c=e.lx;if(c.length){var a=this.m,d=this.w.M;a.uniformMatrix4fv(d.modelViewProjMatrix,
!1,e.Ga);for(var f=e={A:function(){}},m=0,g=c.length;m<g;m++){var h=c[m],l=h.jb,n=h.Fc;h=h.J;if(!(n.alpha<q.vp)&&n.kb){var k=h.ne;e!==k&&(a.uniform2f(d.dataTextureSize,k.width,k.height),a.activeTexture(a.TEXTURE0),e.A(),e=k,e.bind());h=h.re;f!==h&&(a.uniform2f(d.glyphTexturePoints,h.width,h.height),a.activeTexture(a.TEXTURE1),f.A(),f=h,f.bind());a.uniform1f(d.fontScaleFactor,l.Te);this.lm(l.Tg,n,b)}}e.A();f.A()}};c.prototype.lm=function(c,e,b){c=this.m;var a=this.w.M;l.l.set(this.Gm,0,0);for(var d=
0,f=e.yb.length;d<f;d++){var m=e.yb[d];c.uniform2fv(a.center,m.position);c.uniform1f(a.alpha,m.alpha*b);c.uniform1f(a.labelIndexOffset,m.caption.offset);this.lg.Lw(m,a,!1)}};c.prototype.ic=function(c){this.lg.mj(c.ao)};c.prototype.Ab=function(c,e,b,a,d){c=c.lx;e=0;for(b=c.length;e<b;e++){var f=c[e],m;var g=f.gc.Ji;for(m in g){g=g[m];f.J={re:a[g.re],ne:d[g.ne]};break}}};c.prototype.lc=function(c){if(c=c.fk)for(var e=0,b=c.length;e<b;e++)c[e].J=void 0};c.F=function(c,e){return n.get(c,e)};return c});
u(168,0,function(){function c(b,a,d){q.prototype.constructor.call(this,b);this.Ja=d;this.zf=new e(b,d);this.Ag=new n(b,a);this.Gg=new h(b,a);this.Rg=new g(b,a);this.Qa(b,a);this.dd("poi-texts",this.Ag.Lc.bind(this.Ag));this.dd("poi-icons",this.zf.Lc.bind(this.zf));this.dd("curved-texts",this.Gg.Lc.bind(this.Gg));this.dd("poi-shields",this.Rg.Lc.bind(this.Rg))}var l=k(13),r=k(8),q=k(150),n=k(165),h=k(166),g=k(167),e=k(161);r.P(q,c);c.prototype.Ka=function(){this.zf.Ka();this.Ag.Ka();this.Gg.Ka();this.Rg.Ka()};
c.prototype.Qa=function(b,a){return l.all([this.zf.Qa(b,a),this.Ag.Qa(b,a),this.Gg.Qa(b,a),this.Rg.Qa(b,a)])};c.prototype.Pe=function(b,a,d,e,c,g){this.zf.Pe.apply(this.zf,arguments)};c.prototype.Ab=function(b){for(var a=b.elements,d=0,e=a.length;d<e;d++){var c=a[d].La;c&&null==c.icon&&c.uq(this.Ja)}this.Ag.Ab.apply(this.Ag,arguments);this.zf.Ab.apply(this.zf,arguments);this.Gg.Ab.apply(this.Gg,arguments);this.Rg.Ab.apply(this.Rg,arguments)};c.prototype.lc=function(b){this.Ag.lc.apply(this.Ag,arguments);
this.zf.lc.apply(this.zf,arguments);this.Gg.lc.apply(this.Gg,arguments);this.Rg.lc.apply(this.Rg,arguments);var a=b.elements;if(a)for(var d=0,e=a.length;d<e;d++){var c=a[d];c.La&&c.La.reset()}if(a=b.J)a.kc.length=0};c.prototype.ic=function(b){this.Ag.ic(b);this.zf.ic(b);this.Gg.ic(b);this.Rg.ic(b)};c.F=function(b,a){if(b.R.has("poi-text-label-deps"))return b.R.get("poi-text-label-deps");a=l.all([e.F(b),n.F(b,a),h.F(b,a),g.F(b,a)]);b.R.add("poi-text-label-deps",a);return a};return c});u(169,0,function(){function c(a,
b){n.prototype.constructor.call(this,a);this.Ja=b;this.Qa(a)}var l=k(13),r=k(8),q=k(3),n=k(150),h=k(0),g=k(119),e=k(120),b=k(125);r.P(n,c);c.prototype.Ka=function(){this.Qe=this.gb=this.pb=this.w=void 0};c.prototype.Qa=function(a){return c.F(a).then(function(a){this.w=a[0];this.pb=a[1];this.gb=a[2];this.Qe=10}.bind(this))};c.prototype.Pe=function(a,b,e,c,g,l){a=e.la;if(0!==a.length)for(b=0;b<a.length;b++){e=a[b];c=e.elements;e.J={};g=[];for(var d=[],f=0,m=c.length;f<m;f++){var p=c[f].La,n=p.alpha*
l;if(p&&p.icon&&!(n<h.vp)){var k=p.icon,q=p.ue(),r=k.Hi();k=r.page.xa;p=[p.position[0],p.position[1],q[0],q[1],r.Ff[0],r.Ff[1],r.Gf[0],r.Gf[1],n,p.angle];n=g.indexOf(k);-1!==n?(n=d[n],n.push.apply(n,p)):(n=p,d.push(n),g.push(k))}}e.J.kc=g;e.J.le=d}};c.prototype.Lc=function(a,b,e){this.Ja.Em.YC();e=e.la;if(0!==e.length){this.gb.bind();this.pb.bind();this.w.use();var d=this.m;d.enable(d.BLEND);d.blendFuncSeparate(d.SRC_ALPHA,d.ONE_MINUS_SRC_ALPHA,d.ONE,d.ONE_MINUS_SRC_ALPHA);var c=this.w.M;d.uniform2fv(c.viewportSize,
b);d.activeTexture(d.TEXTURE0);d.uniform1i(c.iconTexture,0);d.vertexAttribPointer(this.w.attributes().tilePosition,2,d.FLOAT,!1,40,0);d.vertexAttribPointer(this.w.attributes().size,2,d.FLOAT,!1,40,8);d.vertexAttribPointer(this.w.attributes().uvSize,2,d.FLOAT,!1,40,16);d.vertexAttribPointer(this.w.attributes().uvStart,2,d.FLOAT,!1,40,24);d.vertexAttribPointer(this.w.attributes().alpha,1,d.FLOAT,!1,40,32);d.vertexAttribPointer(this.w.attributes().angle,1,d.FLOAT,!1,40,36);d.enableVertexAttribArray(this.w.attributes().tilePosition);
d.enableVertexAttribArray(this.w.attributes().size);d.enableVertexAttribArray(this.w.attributes().uvSize);d.enableVertexAttribArray(this.w.attributes().uvStart);d.enableVertexAttribArray(this.w.attributes().alpha);d.enableVertexAttribArray(this.w.attributes().angle);b=0;for(c=e.length;b<c;b++)this.Og(a,e[b]);d.disableVertexAttribArray(this.w.attributes().tilePosition);d.disableVertexAttribArray(this.w.attributes().uvStart);d.disableVertexAttribArray(this.w.attributes().uvSize);d.disableVertexAttribArray(this.w.attributes().size);
d.disableVertexAttribArray(this.w.attributes().alpha);d.disableVertexAttribArray(this.w.attributes().angle);this.gb.A();this.pb.A();this.w.zb();d.disable(d.BLEND)}};c.prototype.Og=function(a,b){var d=this.m,e=this.w.M;if(b.elements.length&&b.J.kc.length)for(q.U.multiply(b.Ga,a.Fb,b.Ub),d.uniformMatrix4fv(e.modelViewProjMatrix,!1,b.Ga),a=0;a<b.J.kc.length;a++){e=b.J.kc[a];var c=b.J.le[a],g=new Float32Array(c);e.bind();var l=0;for(c=Math.round(c.length/this.Qe);0<c;){var n=Math.min(c,h.yq),k=new Float32Array(g.buffer,
l*this.Qe*4,n*this.Qe);this.gb.data(k);d.drawElements(d.POINTS,n,d.UNSIGNED_SHORT,0);c-=n;l+=n}e.A()}};c.prototype.Ab=function(){};c.prototype.ic=function(a){a=a.ao;var b=this.m;this.w.use();b.uniform1f(this.w.M.pr,a);this.w.zb()};c.F=function(a){if(a.R.has("arrow-renderer-deps"))return a.R.get("arrow-renderer-deps");var d=g.tb.Bb(a,"shaders/arrow.vert","shaders/arrow.frag"),c=b.Yp(a),m=e.Yu(a);d=l.all([d,c,m]);a.R.add("arrow-renderer-deps",d);return d};return c});u(170,0,function(){function c(e,
b){r.ua(this)&&(q.prototype.constructor.call(this,e),c.F(e).then(function(){this.xe=new n(e);this.Mg=0;this.EC=new g(b)}.bind(this)))}var l=k(13),r=k(8),q=k(150),n=k(153),h=k(3),g=k(125);r.P(q,c);c.prototype.ic=function(e){this.Mg=e.devicePixelRatio;this.xe.ic(e)};c.prototype.Ab=function(e,b){e=e.elements;for(var a=0,d=e.length;a<d;a++){var c=e[a],g=c.gc,h=this.EC.Xm(b.Pq.le[g.vc],g.offset,g.length);h=this.EC.UQ(h);var l=this.xe.Zu();l.$w(h);l.df(g.length/2,0);c.J={yw:l}}};c.prototype.Pe=function(e,
b,a){e=a.la;for(b=0;b<e.length;b++){var d=e[b];a=d.elements;d.J={};d=0;for(var c=a.length;d<c;d++){var g=a[d],h=g.La,l=g.jb;g=g.J.yw;if(h&&h.icon&&l){var n=h.icon;h=h.ue();n=n.Hi();var k=n.page.xa;g.Rh(h[0]*l.bq);g.nj(k,n.Ff,n.Gf,l.bn)}}}};c.prototype.Lc=function(e,b,a){b=a.la;this.xe.hg();b.forEach(function(a){h.U.multiply(a.Ga,e.Fb,a.Ub);for(var b=a.elements,d=0,c=b.length;d<c;d++){var g=b[d].J.yw;g.ef(a.Ga);this.xe.FC(g)}}.bind(this));this.xe.jg()};c.F=function(e){if(e.R.has("poi-density-layer-renderer-deps"))return e.R.get("poi-density-layer-renderer-deps");
var b=n.F(e);b=l.all([b]);e.R.add("poi-density-layer-renderer-deps",b);return b};return c});u(171,0,function(){function c(a,b){r.ua(this)&&(h.prototype.constructor.call(this,a),c.F(a).then(function(){this.xe=new g(a);this.Wa=new e(a,b);this.Mg=0}.bind(this)))}var l=k(13),r=k(8),q=k(3),n=k(4).global,h=k(150),g=k(153),e=k(127),b=k(125);r.P(h,c);c.prototype.Ab=function(a){a.J=a.J||{};a.J.Ga=a.Ga;var d=a.key;0===d.x&&0===d.y&&0===d.z&&(a.Ub=q.U.create());d=a.elements;if(d.length){var e=this.IF(a.QB);
e=this.Wa.Gc.nP(e);e=b.Vm(this.m,e);a.J.En=e;var c,g=this;d.forEach(function(b){switch(b.type){case "point":c=g.xe.Zu();c.df(b.Nm.length,0);c.Rh(b.size);b.fillColor?c.Ph(b.fillColor,1):b.xa?c.nj(b.xa,null,null,1):c.Ph(b.fillColor,1);c.$w(b.Nm);break;case "line":c=g.Wa.vk(),c.ef(a),c.lj(.5*b.Ha,.5*b.Ha,b.strokeColor,n.Jf,1),c.df(b.Uc,b.iS)}b.J={Cv:c}})}};c.prototype.Lc=function(a,b,e,c,g){var d=this.m;d.clearStencil(0);d.clear(d.STENCIL_BUFFER_BIT);this.Sq(a,b,e,c,g)};c.prototype.qF=function(a,b){b=
b.la;this.xe.hg();b.forEach(function(b){q.U.multiply(b.Ga,a.Fb,b.Ub);for(var d=b.elements,e=0,c=d.length;e<c;e++){var f=d[e].J.Cv;f.ef(b.Ga);this.xe.FC(f)}}.bind(this));this.xe.jg()};c.prototype.pF=function(a,b,e,c){b=b.la;this.Wa.ix();this.Wa.hg(a,e);b.forEach(function(b){q.U.multiply(b.J.Ga,a.Fb,b.Ub);b.J.mn=this.$v(b,a.ag(),c);b=b.elements;for(var d=0,e=b.length;d<e;d++)this.Wa.hj(b[d].J.Cv)}.bind(this));this.Wa.jg()};c.prototype.Sq=function(a,b,e,c){0!==b.la.length&&(b.Vi?this.qF(a,b):this.pF(a,
b,e,c))};c.prototype.xn=function(a,b,e){b=this.OG(a,b);if(0!==b.length){var d=e[a];e&&b.forEach(function(a){var b=a.J.Cv;switch(a.type){case "point":a.size=d.size;a.fillColor=d.fillColor;a.xa=d.xa;b.Rh(d.size);d.fillColor&&b.Ph(d.fillColor,1);d.xa&&b.nj(d.xa,null,null,1);break;case "line":a.strokeColor=d.strokeColor,a.Ha=d.Ha,b.lj(.5*a.Ha,.5*a.Ha,a.strokeColor,n.Jf,1)}})}};c.prototype.ic=function(a){this.Mg=a.devicePixelRatio;this.xe.ic(a)};c.prototype.OG=function(a,b){var d=[];b.forEach(function(b){b.elements.forEach(function(b){b.id===
a&&d.push(b)})});return d};c.prototype.IF=function(a){if(4>a.length)return[];for(var b=Array(3*a.length),e=0,c=a.length/4;e<c;e++){var g=a[4*e],h=a[4*e+1],l=a[4*e+2],n=a[4*e+3];b[12*e]=g;b[12*e+1]=h;b[12*e+2]=!0;b[12*e+3]=g;b[12*e+4]=h;b[12*e+5]=!1;b[12*e+6]=l;b[12*e+7]=n;b[12*e+8]=!1;b[12*e+9]=l;b[12*e+10]=n;b[12*e+11]=!0}return b};c.F=function(a,b){if(a.R.has("silver-layer-renderer-deps"))return a.R.get("silver-layer-renderer-deps");var d=g.F(a);b=e.F(a,b);d=l.all([d,b]);a.R.add("silver-layer-renderer-deps",
d);return d};return c});u(172,0,function(){function c(a,b,e){this.x=a;this.y=b;this.z=e}function l(a){this.key=a;var b=Math.pow(g.xh,-a.z);this.size=e.l.u(b,b);this.origin=e.l.u(a.x*b,a.y*b)}function r(b,c){this.xr=e.T.create();this.g=e.T.create();this.yr=e.T.create();this.zr=e.T.create();n.prototype.constructor.call(this,h.Dl);this.YR=g.XR*g.xh;this.V=c;this.V.th(this);this.qm=this.Oj=g.fv;this.pm=this.Nj=g.ev;this.Ks=a.resolve();this.jn=e.T.create();this.fillColor=e.T.create();this.Cy(g.ev,g.fv,
0);this.ca=b}var q=k(8),n=k(133),h=k(15),g=k(0),e=k(3),b=k(113),a=k(13);l.prototype.DO=function(){this.Ub=e.U.Ah(e.U.create());e.U.translate(this.Ub,this.Ub,e.Ya.u(this.origin[0],this.origin[1],0));e.U.scale(this.Ub,this.Ub,e.Ya.u(this.size[0],this.size[1],0));this.Ga=e.U.create()};l.prototype.split=function(){for(var a=g.xh,b=this.key.x*g.xh,e=this.key.y*g.xh,h=this.key.z+1,n=Array(a*a),k=0,q=0;q<a;q++)for(var r=0;r<a;r++){var v=new c(b+q,e+r,h);n[k++]=new l(v)}return n};q.P(n,r);r.prototype.Cy=
function(a,b,e){var d=this;this.Ks=this.Ks.then(function(){var a=d.V.xf(d,0);d.lA();return a}).then(function(){d.pm=d.Nj;d.qm=d.Oj;d.Nj=a;d.Oj=b;return d.V.show(d,e)})};r.prototype.dg=function(a){this.Cy(a.se,a.te,g.hR);this.Dh=a.Zd===this.ca.Df.qo;n.prototype.dg.apply(this,arguments)};r.prototype.rH=function(a,c){e.T.set(this.xr,c.origin[0],c.origin[1],0,1);e.T.set(this.g,c.origin[0]+c.size[0],c.origin[1],0,1);e.T.set(this.yr,c.origin[0]+c.size[0],c.origin[1]+c.size[1],0,1);e.T.set(this.zr,c.origin[0],
c.origin[1]+c.size[1],0,1);a=a.Fb;e.T.fb(this.xr,this.xr,a);e.T.fb(this.g,this.g,a);e.T.fb(this.yr,this.yr,a);e.T.fb(this.zr,this.zr,a);a=b.ud(this.xr);c=b.ud(this.g);var d=b.ud(this.yr),f=b.ud(this.zr);return 0!==(a&c&d&f)?!1:!0};r.prototype.lA=function(){var a=this.alpha,b=1-a;this.jn[0]=this.Oj[0]*a+this.qm[0]*b;this.jn[1]=this.Oj[1]*a+this.qm[1]*b;this.jn[2]=this.Oj[2]*a+this.qm[2]*b;this.jn[3]=this.Oj[3]*a+this.qm[3]*b;this.fillColor[0]=this.Nj[0]*a+this.pm[0]*b;this.fillColor[1]=this.Nj[1]*
a+this.pm[1]*b;this.fillColor[2]=this.Nj[2]*a+this.pm[2]*b;this.fillColor[3]=this.Nj[3]*a+this.pm[3]*b};r.prototype.EJ=function(){this.aj()&&this.lA()};r.prototype.update=function(a){this.EJ();var b=Math.log(g.We*Math.pow(2,a.ag())/this.YR)/Math.log(g.xh),d=Math.floor(a.Fk()[0]);this.Ym=[new l(new c(d-1,0,0)),new l(new c(d,0,0)),new l(new c(d+1,0,0))];for(d=0;d<b;d++){var e=[],h=this;this.Ym.forEach(function(b){b=b.split().filter(function(b){return h.rH(a,b)});e.push.apply(e,b)});this.Ym=e}this.vR=
Math.min(b%1/.8,1);this.Ym.forEach(function(a){a.DO()});n.prototype.update.apply(this,arguments)};r.prototype.aj=function(){return!this.Ks.Kk()||n.prototype.aj.apply(this,arguments)};r.prototype.jq=function(){return!1};r.prototype.Ui=function(){return!1};return r});u(173,0,function(){function c(c,n,h,g,e){l.ua(this)&&(r.prototype.constructor.apply(this,arguments),this.Dh=!1,this.ca=e)}var l=k(8),r=k(140);l.P(r,c);c.prototype.Ka=function(){r.prototype.Ka.call(this);var c=this.ht;c&&c.forEach(function(c){c.Kn()})};
c.prototype.dg=function(c){this.Dh=c.Zd===this.ca.Df.qo;r.prototype.dg.apply(this,arguments)};c.prototype.Ui=function(){return!1};c.prototype.update=function(c){r.prototype.update.apply(this,arguments)};return c});u(174,0,function(){function c(c,l,h,g,e){r.prototype.constructor.apply(this,arguments)}var l=k(8),r=k(173);l.P(r,c);return c});u(175,0,function(){function c(c,e,b){q.prototype.constructor.call(this,n.ha,c,e,b);this.Ns=-1;this.fn=!0;this.Iu=[];this.du=[];this.cu=[];this.clearColor=r.OA}var l=
k(8),r=k(0),q=k(140),n=k(15),h=k(4).global;l.P(q,c);c.prototype.Ui=function(){return!1};c.prototype.dg=function(c){this.Wz(c,this.Ns);q.prototype.dg.apply(this,arguments)};c.prototype.update=function(c){var e=c.ag();this.Ns!==e&&(this.Wz(this.AO,e),this.fn=!0);this.Ns=e;if(this.fn){this.Iu.length=0;this.du.length=0;this.cu.length=0;e=this.la;for(var b=0,a=e.length;b<a;b++){var d=e[b],f=d.elements;d.elements.sort(function(a,b){return a.jb.zIndex-b.jb.zIndex});d=0;for(var g=f.length;d<g;d++){var l=
f[d],n=l.jb.Qb;n===h.ds?this.Iu.push(l):n===h.ND?this.du.push(l):this.cu.push(l)}}this.fn=!1}q.prototype.update.apply(this,arguments)};c.prototype.push=function(){this.fn=!0;q.prototype.push.apply(this,arguments)};c.prototype.remove=function(){this.fn=!0;q.prototype.remove.apply(this,arguments)};c.prototype.Wz=function(c,e){e=Math.floor(e);if(c.hc.length){for(var b=0,a=1;a<c.hc.length&&!(c.hc[a].zoom>e);a++)b=a;this.clearColor=c.hc[b].color}else this.clearColor=c.pe};return c});u(176,0,function(){function c(b,
a){h.prototype.constructor.call(this,b,g.xc);this.Va=a}function l(b,a,d,e){n.prototype.constructor.call(this,g.xc,a,d,e);this.sD=b;this.sD.Da("styles-updated",this.Zb,this)}var r=k(8),q=k(0),n=k(140),h=k(139),g=k(15),e=k(13);r.P(h,c);c.prototype.update=function(){this.elements.forEach(function(b){b.jb.visible?this.lJ(b):this.lz(b)},this)};c.prototype.lJ=function(b){this.Va.show(b,q.mO)};c.prototype.lz=function(b){return this.Va.xf(b,q.nO)};c.prototype.xk=function(){this.elements.forEach(function(b){this.Va.th(b)},
this);h.prototype.xk.apply(this,arguments)};c.prototype.dH=function(){return this.elements.map(function(b){return this.lz(b)},this)};r.P(n,l);l.prototype.Ui=function(){return!1};l.prototype.update=function(b){var a=[];this.la.forEach(function(b){b.update();a.push.apply(a,b.elements)});this.HA=a;this.HA.sort(function(a,b){return a.jb.zIndex-b.jb.zIndex});n.prototype.update.apply(this,arguments)};l.prototype.Nd=function(b){var a=this.Va?b.dH():e.resolve();return e.all([a,n.prototype.Nd.apply(this,arguments)])};
l.prototype.rk=function(){n.prototype.rk.apply(this,arguments);this.sD.va("styles-updated",null,this)};l.prototype.rh=function(b){return new c(b,this.Va)};return l});u(177,0,function(){function c(c){q.prototype.constructor.call(this,l.xW,null,c);this.vj=[]}var l=k(15),r=k(8),q=k(140);r.P(q,c);c.prototype.Kg=function(c){c.xy="loading";c.Gs={};this.vj.push(c)};c.prototype.yn=function(c){c.d0().forEach(function(h){if("number"===typeof h){var g=l.h0(h);c.Gs[g]="loading";c.F(h).then(function(){c.Gs[g]=
"loaded"}).catch(function(){c.Gs[g]="failed"})}});c.F().then(function(){c.xy="loaded"}).catch(function(){c.xy="failed"})};c.prototype.Ih=function(c){this.vj.splice(this.vj.indexOf(c),1)};return c});u(178,0,function(){function c(e,b,a,d){l.prototype.constructor.call(this,e,b,a);this.ca=d}var l=k(140),r=k(8),q=k(0),n=k(13),h=k(15),g=k(19);r.P(l,c);c.prototype.dg=function(e){this.Dh=e.Zd===this.ca.Df.qo;l.prototype.dg.apply(this,arguments)};c.prototype.Tv=function(){return!1};c.prototype.Ui=function(){var e=
this.type();return e!==h.Rb&&e!==h.Fe&&e!==h.hf};c.prototype.Nd=function(e){if(this.Va&&this.Va.Of){var b=n.timeout(this.nv());this.TC(e,b.cancel);return b.then(l.prototype.Nd.bind(this,e),function(){})}return l.prototype.Nd.call(this,e)};c.prototype.Lu=function(){return q.TS};c.prototype.iB=function(e){return new g(e.x,e.y,e.z,e.offset)};return c});u(179,0,function(){function c(e,b){return.5*(b-e)}function l(e,b){return b-e}function r(){return 0}function q(e,b,a){this.offset=e.offset;this.Te=0;if(this.gn=
a)this.ik=this.ph=0;var d=0;this.lines=e.lines.map(function(a){var e=a.lineWidth+2*b;d=Math.max(d,e);return{Fg:a.Fg,AV:e,width:0}});this.sq=this.lines.map(function(){return h.l.create()});this.AJ=d;this.zJ=e.lineHeight;this.S=h.l.create()}function n(e,b,a,d){var c=Math.min.apply(null,e);e=Math.max.apply(null,e);this.Hy=Array(e-c+1);this.qH=d;for(var g=null,h=c;h<=e;h++){var l=b[h];l&&(g=new q(l,a,d));this.Hy[h-c]=g}this.ad=c;this.bg=e}var h=k(3),g=k(4).global;q.prototype.cx=function(e){this.Te=e;
this.S[0]=this.AJ*e;this.lineHeight=this.zJ*e;this.S[1]=this.lines.length*this.lineHeight;for(var b=0,a=this.lines.length;b<a;++b){var d=this.lines[b];d.width=d.AV*e}};q.prototype.NB=function(){this.sq[0][1]=.5*-this.lineHeight};q.prototype.rq=function(e,b,a){switch(e){case g.Cj:case g.Cl:case g.zl:var d=r;break;case g.yl:case g.Bl:case g.Bj:d=l;break;case g.li:case g.Dj:case g.Vg:d=c}e=this.gn?Math.max(this.S[0],b):this.S[0];b=this.gn?a:this.lineHeight;for(var f=0,m=this.lines.length;f<m;f++)this.sq[f][0]=
d(this.lines[f].width,e),this.sq[f][1]=-b,b+=this.lineHeight,this.gn&&(b+=this.ph);this.ik=this.gn?a:b};n.prototype.Nu=function(e){var b=this.Hy[h.qk(Math.floor(e.VJ),this.ad,this.bg)-this.ad];this.qH&&(b.ph=e.ph);return b};n.create=function(e,b,a){var d=Object.keys(e).map(function(a){return parseInt(a)});return d.length?new n(d,e,b,a):null};return n});u(180,0,function(){function c(a,b,d,e){g.prototype.constructor.call(this,a,b);q.ua(this)&&(this.Eb=e,this.fk=[],this.$u=[],this.lx=[],this.Tc=d)}function l(a,
b,d,e,c,f){h.prototype.constructor.call(this,a,b,d,f,e.Gw);q.ua(this)&&(this.Tc=e.Tc,this.Eb=e.Eb,this.Td=c)}var r=k(3),q=k(8),n=k(5),h=k(140),g=k(139),e=k(30),b=k(33),a=k(10),d=k(179),f=k(31),m=k(13),p=k(4).global;q.P(g,c);c.prototype.Hk=function(){return!0};c.prototype.xk=function(){for(var c=0,g=this.elements.length;c<g;c++){var m=this.elements[c],h=m.gc,l=n.Pb(),k=h.Hm?0:this.Tc,q=d.create(h.Ji,k,!1),u=h.Wd;if(h.Sk)l=new f(m,h.Sk,this.Eb,l),l.Yw(q),m.Fc=l,this.$u.push(m),l=u;else{var K=h.qb?new b(m,
l):new e(m,l,a.B);l=h.Yb;K.lk=h.lk;K.title=h.title;K.Fi=h.Fi;q&&K.Yw(q);h.hk&&(q=d.create(h.hk,k,!0),K.zT(q));k=h.Wv;q=null;h.Hm?q=[p.li]:k.position!==p.Al&&(q=[k.position]);k=h.Kh;for(var H=0,F=k.length;H<F;H++){var B=r.l.clone(k[H]);r.l.scale(B,B,this.Eb);K.Oe(B,q)}m.Fc=K;h.Hm?this.lx.push(m):this.fk.push(m)}m.Fc.Fa=h.Fa||0;m.Fc.Wd=u;m.Fc.Yb=l;m.Fc.yh=c;m.$c=h.Ma}this.elements=this.elements.filter(function(a){return void 0!==a.Fc})};q.P(h,l);l.prototype.nv=function(){return 0};l.prototype.wh=function(a){var b=
h.prototype.wh.call(this,a);a.Fs=a.Fs||m.resolve("__first-time__");if(this.Td){var d=this.Td;var e=a.elements;for(var c=Array(e.length),f=0,g=e.length;f<g;f++)c[f]=e[f].Fc;e=a.Fs.then(function(){return d.gj(a,c)});a.et=e}else e=m.resolve("__no-label-manager__");return m.all([e,b])};l.prototype.Nd=function(a){if(this.Td){var b=a.elements.map(function(a){return a.Fc}),d=this;a.Fs=a.et.then(function(){return d.Td.$h(a,b)})}return h.prototype.Nd.apply(this,arguments)};l.prototype.rh=function(a){return new c(a,
this.type(),this.Tc,this.Eb)};return l});u(181,0,function(){function c(c,g){r.prototype.constructor.call(this,q.xs,c,g)}var l=k(8),r=k(25),q=k(10),n=k(4).global;l.P(r,c);c.prototype.Oe=function(c){r.prototype.Oe.call(this,c,[n.Vg])};return c});u(182,0,function(){function c(a,e){g.prototype.constructor.call(this,a,b.ia);q.ua(this)&&(this.Eb=e)}function l(a,e,c,g,l){h.prototype.constructor.call(this,b.ia,a,e,l);q.ua(this)&&(this.Eb=c.Eb,this.Td=g)}var r=k(3),q=k(8),n=k(5),h=k(140),g=k(139),e=k(181),
b=k(15),a=k(13);q.P(g,c);c.HQ=function(){return n.Pb()};c.prototype.Fq=function(a){this.ug=a;this.ye.Mh(a);this.elements=[];a=a.pj;for(var b=0,d=a.length;b<d;b++)for(var e=a[b],c=0,g=e.Kh.length;c<g;c++)this.elements.push({oa:this,gc:e,KS:c})};c.prototype.xk=function(){for(var a=this.elements,b=0,g=a.length;b<g;b++){var h=a[b],l=h.gc,n=c.HQ();n=new e(h,n);n.Wd=l.text;n.Yb=n.Wd+":"+l.Fa;n.yh=b;n.Fa=l.Fa;var k=l.Kh[h.KS];n.Oe(r.l.scale(r.l.create(),k,this.Eb));h.Fc=n;h.$c={};h.$c[this.key.z]=l.Tu}};
q.P(h,l);l.prototype.wh=function(b){var d=h.prototype.wh.call(this,b);b.Es=b.Es||a.resolve("__first-time__");var e=this.Td;b.elements=b.elements.filter(function(a){return void 0!==a.J});var c=b.scale;for(var g=b.elements,l=Array(g.length),n=0,k=g.length;n<k;n++){var q=g[n],r=q.J.Hi.size;q=q.Fc;q.bl(r[0]/c,r[1]/c);l[n]=q}c=b.Es.then(function(){return e.gj(b,l)});b.et=c;return a.all([c,d])};l.prototype.Nd=function(a){if(this.Td){var b=a.elements.map(function(a){return a.Fc}),d=this.Td;a.Es=a.et.then(function(){return d.$h(a,
b)})}return h.prototype.Nd.apply(this,arguments)};l.prototype.rh=function(a){return new c(a,this.Eb)};return l});u(183,0,function(){function c(a,b){h.prototype.constructor.call(this,a,g.Ia);this.Eb=b}function l(a,b,e,c,h,l){n.prototype.constructor.call(this,g.Ia,a,b,l);q.ua(this)&&(this.Eb=e.Eb,this.Td=c,this.zB=h)}var r=k(3),q=k(8),n=k(140),h=k(139),g=k(15),e=k(13),b=k(34),a=k(0);q.P(h,c);c.prototype.Gv=function(){return!0};c.prototype.xk=function(){for(var d=this.elements,e=0,c=d.length;e<c;e++){var g=
d[e],h=g.gc,l=new b(g);l.Wd=a.kT;l.Yb=""+l.id;l.yh=e;l.Fa=this.key.z;l.Oe(r.l.scale(r.l.create(),h.position,this.Eb));g.Fc=l;g.$c={};g.$c[this.key.z]=a.LC}};q.P(n,l);l.prototype.wh=function(a){var b=n.prototype.wh.call(this,a);a.Ds=a.Ds||e.resolve("__first-time__");for(var d=a.elements,c=0,g=d.length;c<g;c++){var h=d[c],l=h.gc,k=r.l.clone(l.position);r.l.scale(k,k,this.Eb);h=h.La;h.gf({origin:k});h.angle=l.angle}var q=this.Td,u=a.elements.map(function(a){return a.Fc});a.vy=a.Ds.then(function(){return q.gj(a,
u)});return e.all([b,a.vy])};l.prototype.Nd=function(a){var b=a.elements.map(function(a){return a.Fc}),d=this.Td;a.Ds=a.vy.then(function(){return d.$h(a,b)});return n.prototype.Nd.apply(this,arguments)};l.prototype.rh=function(a){return new c(a,this.Eb)};return l});u(184,0,function(){function c(c){n.prototype.constructor.call(this,c,h.qg)}function l(c,e,b){q.prototype.constructor.call(this,c,e,b)}var r=k(8),q=k(140),n=k(139),h=k(15);r.P(n,c);c.prototype.Hk=function(){return!0};r.P(q,l);l.prototype.rh=
function(g){return new c(g)};return l});u(185,0,function(){function c(a,b,d,e,c,f,g,m,h){this.na=a;this.C=b;this.fa=d;this.Bc=e;this.ec=c;this.Ba=f;this.Xb=g;this.Ja=m;this.V=h}k(13);var l=k(15),r=k(115),q=k(131);k(134);k(135);k(136);k(137);var n=k(143),h=k(144),g=k(146),e=k(147),b=k(149);k(154);var a=k(155),d=k(156),f=k(158),m=k(159),p=k(160),t=k(163),w=k(168),u=k(169),I=k(170),v=k(171),J=k(172);k(140);var y=k(174),W=k(173),K=k(175),H=k(176);k(177);var F=k(178),B=k(180),L=k(182),x=k(183),A=k(184);
c.prototype.get=function(a){return this[a]()};c.prototype.TO=function(){return new r(this.C,this.fa,this)};c.prototype.has=function(a){return"function"===typeof this[a]};c.prototype[l.Dl]=function(){return b.F(this.C).then(function(){var a=new b(this.C),d=new J(this.fa,this.V);return new q(d,a)}.bind(this))};c.prototype[l.B]=function(){return w.F(this.C,this.fa).then(function(){var a=new w(this.C,this.fa,this.Ja),b=new h(l.B,this.na,this.Bc,this.ec,this.Ba,a);b.Rn(this.Ja);b=new B(l.B,b,this.V,this.fa,
this.Ba,this.fa.Aw);return new q(b,a)}.bind(this))};c.prototype[l.Wc]=function(){return w.F(this.C,this.fa).then(function(){var a=new w(this.C,this.fa,this.Ja),b=new h(l.Wc,this.na,this.Bc,this.ec,this.Ba,a);b.Rn(this.Ja);b=new B(l.Wc,b,this.V,this.fa,this.Ba,this.fa.Xk);return new q(b,a)}.bind(this))};c.prototype[l.kd]=function(){return w.F(this.C,this.fa).then(function(){var a=new w(this.C,this.fa,this.Ja),b=new h(l.kd,this.na,this.Bc,this.ec,this.Ba,a);b.Rn(this.Ja);b=new B(l.kd,b,this.V,this.fa,
this.Ba,this.fa.xw);return new q(b,a)}.bind(this))};c.prototype[l.qg]=function(){return I.F(this.C,this.fa).then(function(){var a=new I(this.C,this.fa,this.Ja),b=new h(l.qg,this.na,this.Bc,this.ec,null,a);b.Rn(this.Ja);b=new A(l.qg,b,this.V);return new q(b,a)}.bind(this))};c.prototype[l.ma]=function(){return f.F(this.C,this.fa).then(function(){var a=new f(this.C,this.fa),b=new h(l.ma,this.na,this.Bc,this.ec,null,a);b=new W(l.ma,b,null,this.fa.Xk,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.nd]=
function(){return m.F(this.C,this.fa).then(function(){var a=new m(this.C,this.fa),b=new h(l.nd,this.na,this.Bc,this.ec,null,a);b=new y(l.nd,b,null,this.fa.Kq,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.Ia]=function(){return u.F(this.C).then(function(){var a=new u(this.C,this.Ja),b=new h(l.Ia,this.na,this.Bc,this.ec,this.Xb,a);b.Rn(this.Ja);b=new x(b,this.V,this.fa,this.Xb,this.Ja,this.fa.Xk);return new q(b,a)}.bind(this))};c.prototype[l.ia]=function(){return t.F(this.C).then(function(){var a=
new t(this.C),b=new g(this.na,this.Bc,this.ec,this.Ba,a);b=new L(b,this.V,this.fa,this.Ba,this.fa.Xk);return new q(b,a)}.bind(this))};c.prototype[l.ha]=function(){return a.F(this.C,this.fa).then(function(){var b=new a(this.C,this.fa),d=new h(l.ha,this.na,this.Bc,this.ec,null,b);d=new K(d,null,this.fa.Kq);return new q(d,b)}.bind(this))};c.prototype[l.xc]=function(){return d.F(this.C,this.fa).then(function(){var a=new d(this.C,this.fa),b=new h(l.xc,this.na,this.Bc,this.ec,null,a);b=new H(this.ec,b,
this.V,this.fa.Ku);return new q(b,a)}.bind(this))};c.prototype[l.$g]=function(){return p.F(this.C).then(function(){var a=new p(this.C),b=new e(this.na,a,l.$g,!1);b=new F(l.$g,b,this.V,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.Fe]=function(){return p.F(this.C).then(function(){var a=new p(this.C),b=new e(this.na,a,l.Fe,!1);b=new F(l.Fe,b,this.V,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.ri]=function(){return p.F(this.C).then(function(){var a=new p(this.C),b=new e(this.na,a,
l.ri,!1);b=new F(l.ri,b,null,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.Wg]=function(){return p.F(this.C).then(function(){var a=new p(this.C),b=new e(this.na,a,l.Wg,!1);b=new F(l.Wg,b,this.V,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.hf]=function(){return p.F(this.C).then(function(){var a=new p(this.C),b=new e(this.na,a,l.hf,!1);b=new F(l.hf,b,this.V,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.Kf]=function(){return p.F(this.C).then(function(){var a=new p(this.C),
b=new e(this.na,a,l.Kf,!0);b=new F(l.Kf,b,this.V,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.Rb]=function(){return p.F(this.C).then(function(){var a=new p(this.C),b=new e(this.na,a,l.Rb,!0);b=new F(l.Rb,b,null,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.ng]=function(){return p.F(this.C).then(function(){var a=new p(this.C),b=new e(this.na,a,l.ng,!0);b=new F(l.ng,b,this.V,this.fa);return new q(b,a)}.bind(this))};c.prototype[l.dc]=function(){return v.F(this.C,this.fa).then(function(){var a=
new v(this.C,this.fa);return new n(this.C,this.fa,this.V,a,"aboveLabels")}.bind(this))};return c});u(186,0,function(){function c(c){return c}function l(c,e,b){return 0>b?h.T.clone(c):1<b?h.T.clone(e):q(c,e,b)}function r(c,e,b){return 1<=b?e:c}function q(c,e,b){return h.T.Wi(h.T.create(),c,e,b)}function n(c,e,b){return c+(e-c)*b}var h=k(3);c.SW=function(){console.assert(!0)};l.rz=!0;r.rz=!0;return{cc:n,ns:function(c,e,b){return 0===c?e:0===e?c:n(c,e,b)},Zg:function(c,e,b){return 1<=b?e:c},zW:function(c,
e,b){return h.l.Wi(h.l.create(),c,e,b)},AW:function(c,e,b){return h.Ya.Wi(h.Ya.create(),c,e,b)},BW:q,COLOR:l,QD:r,$r:function(c,e,b){return n(c?1:0,e?1:0,b)},lo:function(c,e,b){return 1<=b?e:c},bs:function(c,e){return c||e},SV:function(c,e){return c&&e},iy:c}});u(187,0,function(){function c(c,l,n){this.Me=[];this.cA=c;this.yi={};this.Ro=l;for(this.MH=n;l<=n;l++)this.Me.push({Md:l});n=c.SS();l=0;for(c=n.length;l<c;l++)this.yi[n[l]]=null}var l=k(3);k(15);c.prototype.value=function(c,k,n){n&&this.cA.xR(c)?
this.Me[k-this.Ro][c]=l.T.u(n[0]/255,n[1]/255,n[2]/255,n[3]/255):this.Me[k-this.Ro][c]=n;return this};c.prototype.SG=function(c){if(c<=this.Ro)return{kw:0,ew:1,t:0};if(c>=this.MH)return c=this.Me.length-1,{kw:c-1,ew:c,t:1};var l=Math.floor(c),n=l-this.Ro;return{kw:n,ew:n+1,t:c-l}};c.prototype.KC=function(c){this.VJ=c;var l;if(1===this.Me.length)for(l in this.yi=this.Me[0],this.yi)this[l]=this.yi[l];else for(l in c=this.SG(c),this.yi)this.yi[l]=this.cA.fq(l,this.Me[c.kw][l],this.Me[c.ew][l],c.t),this[l]=
this.yi[l]};c.prototype.mR=function(){for(var c=0,l=this.Me.length;c<l;c++){var n=this.Me[c];if(n.jl||n.Pi)return!0}return!1};return c});u(188,0,function(){function c(c){this.fq=c}function l(c){this.type=c;this.Xj={}}var r=k(186),q=k(187);c.prototype.default=function(c){this.defaultValue=c;return this};for(var n in r)l[n]=function(h){return function(){return new c(h)}}(r[n]);l.prototype.G=function(){return this.Xj};l.prototype.xR=function(c){return this.Xj[c].fq.rz};l.prototype.Hp=function(c,g){for(var e=
new q(this,c,g);c<=g;c++)for(var b in this.Xj)e.value(b,c,this.Xj[b].defaultValue);return e};l.prototype.fq=function(c,g,e,b){return this.Xj[c].fq(g,e,b)};l.prototype.SS=function(){return Object.keys(this.Xj)};return l});u(189,0,function(){function c(a,b){this.Xl=h.Pb();this.pJ=a;this.Me=b}function l(){this.reset();this.Rs=-1}var r=k(3),q=k(15),n=k(188),h=k(5),g=k(11),e={},b=new n(q.ha);b.G().zIndex=n.cc().default(0);b.G().Ha=n.cc().default(0);b.G().kr=n.cc().default(0);b.G().Wh=n.cc().default(0);
b.G().jr=n.cc().default(0);b.G().strokeColor=n.COLOR().default(r.T.u(0,0,0,0));b.G().tj=n.COLOR().default(r.T.u(0,0,0,0));b.G().fillColor=n.COLOR();b.G().Qb=n.Zg().default(-1);b.G().visible=n.lo();b.G().xx=n.bs();b.G().yx=n.bs();e[q.ha]=b;b=new n(q.ab);b.G().color=n.COLOR().default(r.T.u(0,0,0,0));b.G().jx=n.cc().default(0);b.G().kx=n.cc().default(0);b.G().Lv=n.cc().default(0);b.G().Kv=n.cc().default(0);b.G().sw=n.cc().default(0);b.G().rw=n.cc().default(0);e[q.ab]=b;b=new n(q.xc);b.G().zIndex=n.cc().default(0);
b.G().visible=n.bs();b.G().mx=n.cc();b.G().Ha=n.cc().default(0);b.G().strokeColor=n.COLOR().default(r.T.u(1,1,1,0));b.G().Ax=n.cc().default(0);b.G().hl=n.COLOR().default(r.T.u(1,0,0,1));b.G().Bk=n.COLOR().default(r.T.u(1,0,0,1));b.G().Qi=n.COLOR().default(r.T.u(1,0,0,1));b.G().ll=n.COLOR().default(r.T.u(1,0,0,1));e[q.xc]=b;[q.B,q.Wc,q.kd].forEach(function(a){var b=new n(a);b.G().Zm=n.cc().default(0);b.G().Te=n.ns().default(0);b.G().Tg=n.COLOR();b.G().Xh=n.COLOR();b.G().padding=n.Zg().default(0);b.G().yf=
n.Zg().default(0);b.G().bd=n.lo().default(!1);b.G().Ye=n.Zg().default(0);b.G().Ni=n.Zg().default(0);b.G().fo=n.lo().default(!1);b.G().uj=n.COLOR().default(r.T.u(0,0,0,0));b.G().wp=n.ns().default(0);b.G().ph=n.ns().default(0);e[a]=b});[q.Ia].forEach(function(a){var b=new n(a);b.G().height=n.Zg().default(0);e[a]=b});[q.ma,q.nd].forEach(function(a){var b=new n(a);b.G().Qp=n.Zg().default(0);b.G().lr=n.Zg().default(0);b.G().width=n.cc();b.G().Ha=n.cc().default(0);b.G().fillColor=n.QD();b.G().bB=n.COLOR();
b.G().Wq=n.$r();b.G().lq=n.$r();b.G().mq=n.lo();b.G().Pi=n.iy().default(0);b.G().jl=n.iy().default(0);b.G().strokeColor=n.COLOR().default(r.T.u(255,255,255,0));b.G().Qv=n.$r().default(!1);e[a]=b});[q.qg].forEach(function(a){var b=new n(a);b.G().bn=n.cc().default(1);b.G().bq=n.cc().default(1);e[a]=b});c.prototype.sR=function(a){var b=""+this.Xl,e;for(e in a)b+="-"+e+":"+a[e];return b};c.prototype.Hp=function(a){var b=Object.keys(a).map(function(a){return parseInt(a)}),e=Math.min.apply(null,b),c=Math.max.apply(null,
b);e=this.pJ.Hp(e,c);c=0;for(var g=b.length;c<g;c++){var h=b[c],l=this.Me[a[h]],n;for(n in l)e.value(n,h,l[n])}return e};l.prototype.nI=function(a){a.once("destroyed",this.yJ,this)};l.prototype.yJ=function(a){a.vv(function(a){a.jb.gp.count--});this.Iy()};l.prototype.update=function(a){a=a.Zp();if(a!==this.Rs){for(var b in this.zi){var e=this.zi[b];e.count&&e.style.KC(a)}this.Rs=a;this.W("styles-updated")}};l.prototype.mG=function(a,b,e){var d={},f;var g=0;for(f=a.length;g<f;g++){var l=a[g];l=h.Ef(l.gc.Ma);
for(var n=0,k=l.length;n<k;n++){var q=l[n];d[q]=e[q]}}b=new c(b,d);g=0;for(f=a.length;g<f;g++)l=a[g],d=l.gc.Ma,q=b.sR(d),(e=this.zi[q])?(e.Hq++,d=e.style):(d=b.Hp(d),d.KC(this.Rs),d.EW=q,e={style:d,count:0,Hq:1},d.gp=e,this.zi[q]=e),l.jb=d};l.prototype.Ab=function(a,b){a.wG.forEach(function(d){var c=e[d],f=a.elements.filter(function(a){return a.type===d});this.mG(f,c,b)}.bind(this));a.race().add("loaded",this.rJ,this).add("loading-failed",this.fA.bind(this,a),this).add("loading-aborted",this.fA.bind(this,
a),this)};l.prototype.rJ=function(a){a.vv(function(a){a.jb.gp.Hq--;a.jb.gp.count++});this.nI(a)};l.prototype.fA=function(a){a.vv(function(a){a.jb.gp.Hq--},this);this.Iy()};l.prototype.Iy=function(){for(var a in this.zi){var b=this.zi[a];0===b.count&&0===b.Hq&&delete this.zi[a]}};l.prototype.reset=function(){this.zi={}};g.ka(l.prototype);return l});u(190,0,function(){function c(e,b,a){this.V=a;this.fa=e;this.labels={};this.Pd={};this.Nk={};this.Kp=this.jv=!1;this.Vr=b;this.bm=[];this.km=[];this.am=
[];this.Uj=[];this.Yj=[];this.id=r.Pb();this.vm=this.jm=!1;this.yo=new Set;this.Nl=void 0;this.So=new Set;this.$l=void 0}var l=k(11),r=k(5),q=k(13),n=k(0),h=k(10),g=k(25);k(4);c.prototype.count=function(){return r.Ef(this.labels).length};c.prototype.Cb=function(){var e=this,b=this.Vr.qa({Tm:3},this.id,64,this.fa.uc).then(function(){return e.fg(!1)});b.then(function(){e.GW=0});return b};c.prototype.fg=function(e){this.yR=e;return this.Vr.qa({Tm:4},this.id,e)};c.prototype.reset=function(){var e=r.Ef(this.labels);
e=this.$h(e);this.It(!1);return e};c.prototype.gF=function(e,b){if(this.yR&&!b.length){for(var a={},d=e.$t,c=d[0];c<=d[1];c++)a[c]=n.FB;a=new g(h.Yx,{oa:e,gc:{},$c:a},r.Pb());a.Yb=r.Ex(a.id);a.yh=-1;e.az=a;b.push(a)}};c.prototype.ve=function(){this.jv=!0};c.prototype.Jk=function(){this.Kp=!0};c.prototype.jz=function(){return this.bm.length||this.km.length||this.am.length||this.Uj.length||this.Yj.length};c.prototype.gj=function(e,b){this.gF(e,b);if(0===b.length)return q.resolve("__no-labels__");e=
0;for(var a=b.length;e<a;e++){var d=b[e];d.Ti();d.Pn(this.V);d.element.sv&&d.VC(this.ez(d))}this.bm.push.apply(this.bm,b);this.Jk();return this.Yt()};c.prototype.$h=function(e,b){e.az&&b.push(e.az);if(0===b.length)return q.resolve("__no-labels__");this.Jk();this.km.push.apply(this.km,b);return this.Yt()};c.prototype.fj=function(e){for(var b in e)if(!(b in this.Pd)){var a=e[b];a.id=b;this.Pd[b]=a;this.am.push(a)}if(!this.am.length)return q.resolve("__no-collisions__");this.Jk();return this.Yt()};c.prototype.eg=
function(e){var b=this.Yj.indexOf(e);-1!==b?this.Yj.splice(b,1):(this.Jk(),this.Uj.push(e))};c.prototype.mg=function(e){var b=this.Uj.indexOf(e);-1!==b?this.Uj.splice(b,1):(this.Yj.push(e),this.Jk())};c.prototype.update=function(e,b,a,d){if(this.jv){this.jv=!1;var c="labels-update-"+r.Pb();this.UI(e,b,a,d,e.Zp(),c)}this.Kp&&(this.Kp=!1,this.It(!0))};c.prototype.vr=function(){this.It(!1)};c.prototype.HJ=function(e){var b=this.labels,a;var d=0;for(a=e.length;d<a;d++){var c=e[d],g=b[c.id];g&&(!g.show&&
c.show&&c.jj&&b[c.jj]&&b[c.jj].element.La&&(c.Hc=b[c.jj].element.La.icon,c.zk=!1),g.CV(c))}};c.prototype.UI=function(e,b,a,d,c,g){if(this.vm)Object.values(this.labels).forEach(function(a){a.ml(c)}),this.ve();else{this.vm=!0;var f=[],m=[],h;for(h in this.labels){var l=this.labels[h];l.ml(c);l.xg&&(l=l.cf({}),f.push(l))}for(h in this.Nk)l=this.Nk[h],l.xg&&(l=l.cf(),m.push(l));var n=this;this.Vr.qa({Tm:5},this.id,f,m,e.Fb,b,c,a,d,g).then(function(a){n.HJ(a);n.vm=!1;n.W("labels-updated",a.length)})}};
c.prototype.ez=function(e){return void 0!==this.Nl&&this.Nl!==this.yo.has(e.element.sv)||void 0!==this.$l&&this.$l!==this.So.has(e.lk||e.Yb)};c.prototype.Zq=function(e){function b(b,d){return(d=a[d])?b.concat(d):b}e=e||{};var a=this.fa.yS;e.Im?(this.yo=new Set(e.Im.reduce(b,[]).filter(Boolean)),this.Nl=!0):e.Ou?(this.yo=new Set(e.Ou.reduce(b,[]).filter(Boolean)),this.Nl=!1):(this.yo=new Set,this.Nl=void 0);e.bC?(this.So=new Set(e.bC.map(r.Ex)),this.$l=!0):e.aC?(this.So=new Set(e.aC.map(r.Ex)),this.$l=
!1):(this.So=new Set,this.$l=void 0);var d=this.labels;Object.keys(d).forEach(function(a){a=d[a];a.element.sv&&a.VC(this.ez(a))},this);this.ve()};c.prototype.It=function(e){if(this.jz())if(this.jm)this.Jk();else{this.jm=!0;var b=[],a=[],d=[],c=[],g=[];this.bm.forEach(function(a){b.push(a.ze());this.labels[a.id]=a},this);this.km.forEach(function(b){a.push(b.id);b.aq();delete this.labels[b.id]},this);this.am.forEach(function(a){d.push(a);this.Pd[a.id]=a},this);this.Uj.forEach(function(a){c.push(a.ze());
a.Da("property-changed",this.ve,this);this.Nk[a.id]=a},this);this.Yj.forEach(function(a){g.push(a.id);a.va("property-changed",this.ve,this);delete this.Nk[a.id]},this);this.am=[];this.bm=[];this.km=[];this.Uj=[];this.Yj=[];this.W("labels-registrations-start");var h=this;this.Vr.qa({Tm:6},this.id,b,a,d,c,g).then(function(){if(e)return h.ve(),h.Ix()}).then(function(){h.jm=!1;h.W("labels-registrations-end")})}};c.prototype.Tr=function(e){e[this.id+"-update-work-unit-runnning"]=this.vm;e[this.id+"-registration-work-unit-runnning"]=
this.jm;return this.vm||this.jm};c.prototype.Ht=function(e){var b=this;return new q(function(a){b.once(e,function(){a()})})};c.prototype.Ix=function(){return this.Ht("labels-updated")};c.prototype.SJ=function(){return this.Ht("labels-registrations-start")};c.prototype.TJ=function(){return this.Ht("labels-registrations-end")};c.prototype.Yt=function(){return this.Kp&&this.jz()?this.SJ().then(this.TJ.bind(this)):q.resolve()};c.prototype.Xp=function(){var e=[],b;for(b in this.labels){var a=this.labels[b];
a.FR()&&(a.visible||a.en)&&a.Ce&&a.Ce.origin&&(a=a.oB().Oh(),e.push(a))}return e};l.ka(c.prototype);return c});u(191,0,function(){var c=k(12);return{ka:function(l){l.prototype.RO=function(){return new c};l.prototype.eg=function(c){this.Ba.eg(c);c.FW=!0};l.prototype.mg=function(c){this.Ba.mg(c)};l.prototype.createLabelRegion=l.prototype.RO;l.prototype.registerLabelRegion=l.prototype.eg;l.prototype.unregisterLabelRegion=l.prototype.mg}}});u(192,0,function(){function c(e){r.ua(this)&&(this.id=q.Pb(),
this.Yd=e)}var l=k(109),r=k(8),q=k(5),n=k(22),h=k(13),g=k(11);c.prototype.jC=function(){};c.prototype.getData=function(e,b){var a=e.url,d="#decoded-"+a+"-"+this.id,c=null,g=this.Yd;if(g.has(d))c=g.get(d);else{var k=this.Mp(e),q,r=new h(function(a,b){q=b}),u=this;c=k.then(function(b){c.va("released",null,k);return u.bv(b,e).catch(function(b){b+=", url = '"+a+"'";return h.reject(b)})});c=h.race([c,r]);c.then(this.jC.bind(this,b));n.ka(c);c.wd();c.once("released",function(){k.abort("--loading-aborted--")},
k);c.once("released",q,this);g.add(d,c,l.xE)}return c.Uf()};g.ka(c.prototype);return c});u(193,0,function(){function c(a){this.ox=a;this.wd()}function l(a,b,d,e){I.ua(this)&&(this.QJ=a,this.Eb=d.Eb,this.format=e||w.ss.JSON,t.prototype.constructor.call(this,b))}function r(a,b,d,e,c){l.prototype.constructor.call(this,a,b,e,c);this.eA=d}function q(a,b,d){t.prototype.constructor.call(this,b);this.rA=a;this.Xl=y.Pb().toString();this.Sl=d}function n(a,b,d){t.prototype.constructor.call(this,b);this.Ss=a;
this.Xl=y.Pb().toString();this.Sl=d;v.ka(this.Ss);this.Ss.wd()}function h(d){var c={},f=[],g=[];e(d.properties,c);d.features.forEach(function(d){var e={G:{}},c=d.geometry;e.G.id=d.properties&&d.properties.id?d.properties.id:null;switch(c.type){case "Point":case "MultiPoint":b(d.properties,e.G);e.me=W.VQ(d);f.push(e);break;case "LineString":case "MultiLineString":a(d.properties,e.G),e.me=c.coordinates,g.push(e)}});return{G:c,Bw:f,lines:g}}function g(d,c){var f={},g=[],m=[];e(d.properties,f);d.features.forEach(function(d){var e=
{G:{}},f=d.geometry;e.G.id=d.properties&&d.properties.id?d.properties.id:null;switch(d.geometry.type){case "Point":case "MultiPoint":b(d.properties,e.G);d=f.coordinates;f=new ArrayBuffer(8*d.length);for(var h=new Float32Array(f),l=0,n=d.length;l<n;l++)h[2*l]=d[l][0]*c,h[2*l+1]=d[l][1]*c;f.length=d.length;e.me=f;g.push(e);break;case "LineString":case "MultiLineString":a(d.properties,e.G),e.me=f.coordinates,m.push(e)}});p(m);return{G:f,Bw:g,lines:m}}function e(d,e){b(d,e);a(d,e)}function b(a,b){b.fillColor=
a&&a.fillColor?a.fillColor:null;b.size=a&&a.size?a.size:null}function a(a,b){b.strokeColor=a&&a.strokeColor?a.strokeColor:null;b.Ha=a&&a.strokeWidth?a.strokeWidth:null}function d(a,b){if(!b)return{};var d=a.key;b=b(d.x,d.y,d.z);d=m(a);return{url:b,data:d,key:a.key}}function f(a,b){var d=m(a);return{url:b,data:d,key:a.key}}function m(a){var b=a.key;return{x:b.x,y:b.y,z:b.z,Qc:a.key.x+a.key.y+a.key.z}}function p(a){var b=[],d=0;a.forEach(function(a){var e=a.me;if(!(2>e.length)){b.push(e[0]);for(var c=
1,f=e.length-1;c<f;c++)b.push(e[c]),b.push(e[c]);b.push(e[f]);a.offset=d;a.Uc=0;d+=a.Uc}});a.Nm=b}var t=k(192),w=k(143),u=k(109),I=k(8),v=k(22),J=k(21),y=k(5),W=k(141),K=k(13);v.ka(c.prototype);I.P(t,l);l.prototype.Wp=function(a){var b=d(a,this.QJ),e=this.getData(b);a.once("loading-aborted",function(){e.release()});return e.rb()};l.prototype.bv=function(a){return K.resolve(this.Om(a)).then(function(a){a=g(a,this.Eb);a=new c(a);a.rb();J.If.qa(a.release,a);return a}.bind(this))};I.P(l,r);r.prototype.Mp=
function(a){var b=a.url;a=a.data;switch(this.format){case w.ss.hi:return this.Yd.get(b,u.hi,a,u.kf);case w.ss.Jj:return this.Yd.get(b,u.Jj,a,u.kf);default:return this.Yd.get(b,u.JSON,a,u.kf)}};r.prototype.Om=function(a){return this.eA?this.eA(a):a};I.P(t,q);q.prototype.Wp=function(a){var b=f(a,this.rA),d=this.getData(b);a.once("loading-aborted",function(){d.release()});return d.rb()};q.prototype.Mp=function(){return this.Yd.get(this.rA,u.JSON,0,u.kf)};q.prototype.bv=function(a){var b,d=a;return J.If.qa(function(){this.Sl&&
(d=this.Sl(d));d=h(d);b=new c(d);b.rb();J.If.qa(b.release,b);return b}.bind(this))};I.P(t,n);n.prototype.Wp=function(a){var b=f(a),d=this.getData(b);a.once("loading-aborted",function(){d.release()});return d.rb()};n.prototype.getData=function(){var a,b=this.Ss,d=J.If.qa(function(){this.Sl&&(b=this.Sl(b));b=h(b);a=new c(b);a.rb();J.If.qa(a.release,a);return a}.bind(this));v.ka(d);d.wd();return d};var H={};H.oW=c;H.kE=r;H.eE=q;H.fE=n;return H});u(194,0,function(){function c(c,h,g,e){l.prototype.constructor.call(this,
c,h,g,null,null,e)}var l=k(144),r=k(8),q=k(13);r.P(l,c);c.prototype.wt=function(c){this.xb.Ab(c,void 0);return q.resolve("__silver-tile-layer-decorated__")};return c});u(195,0,function(){function c(){}var l=k(3);c.prototype.Nn=function(c,l,n){c=c.la;for(var h=0,g=c.length;h<g;h++)for(var e=c[h],b=e.elements,a=0,d=b.length;a<d;a++){var f=b[a],m=this.vQ(f.Nm,l,f.size/2,e.Ga,n);if(m)return{coordinates:m,id:f.id}}return null};c.prototype.vQ=function(c,k,n,h,g){c=new Float32Array(c);for(var e=0,b=c.length/
2;e<b;e++){var a=c[2*e],d=c[2*e+1],f=l.T.u(a,d,0,1),m=l.T.create();l.l.ac(m,f,h,g);if(!(0>m[0]||m[0]>g[0]||0>m[1]||m[1]>g)&&l.l.Hg(k,m)<=n)return[a,d]}return null};return c});u(196,0,function(){function c(a,b){this.Jh=a;this.tq=b}function l(){var a=new n,b=new q.jf({origin:""});a.kj(/.*/,b);return a}var r=k(15),q=k(107),n=k(109),h=k(13),g=k(143),e=k(193),b=k(194),a=k(142),d=k(171),f=k(195);Object.defineProperty(c.prototype,"belowLabels",{enumerable:!0,get:function(){return this.Jh.EA},set:function(a){this.Jh.EA=
this.tq.EA=a}});c.prototype.Ph=function(a,b){this.Jh.Ph(a,b)};c.prototype.Rh=function(a,b){this.Jh.Rh(a,b)};c.prototype.nj=function(a,b){this.Jh.nj(a,b)};c.prototype.Um=function(a){return this.Jh.Um(a)};c.prototype.setStrokeColor=function(a,b){this.tq.setStrokeColor(a,b)};c.prototype.dx=function(a,b){this.tq.dx(a,b)};c.prototype.Nn=function(a,b){if(!(0>a[0]||a[0]>b[0]||0>a[1]||a[1]>b[1]))return a[1]=b[1]-a[1],this.Jh.Nn(a,b)};c.prototype.setColorFill=c.prototype.Ph;c.prototype.setTextureFill=c.prototype.nj;
c.prototype.setPointSize=c.prototype.Rh;c.prototype.setStrokeColor=c.prototype.setStrokeColor;c.prototype.setStrokeWidth=c.prototype.dx;c.prototype.generatePointTextureFromImage=c.prototype.Um;c.prototype.selectPoint=c.prototype.Nn;return{ka:function(m){m.prototype.JO=function(m,h,n,k){return"string"!==typeof m?null:d.F(this.C,this.ca).then(function(){var c=l(),p=new f,q=new e.eE(m,c,h),t=new d(this.C,this.ca,k),w=new d(this.C,this.ca,k),u=new b(r.dc,c,q,t);c=new b(r.dc,c,q,w);u=new a.zs(r.dc,u,this.V,
[0]);c=new a.ys(r.dc,c,this.V);t=new g(this.ca,this.V,u,t,n,p);p=new g(this.ca,this.V,c,w,n,p);return this.Js(t,p)}.bind(this)).then(function(a){return new c(a[0],a[1])})};m.prototype.KO=function(m,h,n,k,q){return"function"!==typeof m?null:d.F(this.C,this.ca).then(function(){var c=l(),p=new f,t=new e.kE(m,c,h,this.ca,q),w=new d(this.C,this.ca),u=new d(this.C,this.ca),C=new b(r.dc,c,t,w);c=new b(r.dc,c,t,u);C=new a.zs(r.dc,C,this.V,k);c=new a.ys(r.dc,c,this.V,k);w=new g(this.ca,this.V,C,w,n,p);p=new g(this.ca,
this.V,c,u,n,p);return this.Js(w,p)}.bind(this)).then(function(a){return new c(a[0],a[1])})};m.prototype.IO=function(m,h,n,k){return"object"!==typeof m?null:d.F(this.C,this.ca).then(function(){var c=l(),p=new f,q=new e.fE(m,c,h),t=new d(this.C,this.ca,k),w=new d(this.C,this.ca,k),u=new b(r.dc,c,q,t);c=new b(r.dc,c,q,w);u=new a.zs(r.dc,u,this.V,[0]);c=new a.ys(r.dc,c,this.V);t=new g(this.ca,this.V,u,t,n,p);p=new g(this.ca,this.V,c,w,n,p);return this.Js(t,p)}.bind(this)).then(function(a){return new c(a[0],
a[1])})};m.prototype.$S=function(a){return this.Vk(a.Jh.Yv).then(function(){return this.Vk(a.tq.Yv)}.bind(this))};m.prototype.Js=function(a,b){var d=this.nh(a).then(function(b){a.Yv=b;return a}),e=this.nh(b).then(function(a){b.Yv=a;return b});return h.all([d,e])};m.prototype.createDataOverlayFromGeoJSONFile=m.prototype.JO;m.prototype.createDataOverlayFromVectorTile=m.prototype.KO;m.prototype.createDataOverlayFromDataObject=m.prototype.IO;m.prototype.removeDataOverlay=m.prototype.$S;m.DataOverlay=
g}}});u(197,0,function(){function c(c){this.m=c;this.pc=c.createRenderbuffer();this.wd();this.once("released",this.Pa,this)}var l=k(22);c.prototype.bind=function(){var c=this.m;c.bindRenderbuffer(c.RENDERBUFFER,this.pc);return this};c.prototype.A=function(){var c=this.m;c.bindRenderbuffer(c.RENDERBUFFER,null);return this};c.prototype.Fu=function(c,l){var n=this.m;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX8,c,l);return this};c.prototype.Ec=function(){return this.pc};c.prototype.Pa=function(){this.m.deleteRenderbuffer(this.pc);
this.pc=null};l.ka(c.prototype);return c});u(198,0,function(){function c(c){r.prototype.constructor.call(this,q.sg);this.K=c}var l=k(8),r=k(133),q=k(15);l.P(r,c);c.prototype.jq=function(){return!1};return c});u(199,0,function(){return{HV:"#ifdef GL_ES\nprecision highp float;\n#endif\nattribute vec2 a_pos;varying vec2 v_uv;void main(){v_uv=a_pos;gl_Position=vec4(a_pos.xy*2.0-1.0,0.0,1.0);}",yQ:"#ifdef GL_ES\nprecision highp float;precision highp sampler2D;\n#endif\nvarying vec2 v_uv;uniform sampler2D u_base;uniform sampler2D u_tex;",
dO:"void main(){vec4 b=texture2D(u_base,v_uv);vec4 t=texture2D(u_tex,v_uv);gl_FragColor=c(b,t);}",cO:"void main(){vec4 b=texture2D(u_base,v_uv);vec4 t=texture2D(u_tex,v_uv);gl_FragColor=c(vec4(dot(b.rgb,vec3(0.299,0.587,0.114))),t);}",jO:"vec4 c(vec4 b,vec4 t){return vec4(t.rgb*t.a+b.rgb*(1.0-t.a),t.a+b.a*(1.0-t.a));}",iO:"vec4 c(vec4 b,vec4 t){return vec4((b.rgb*t.rgb)*t.a+b.rgb*(1.0-t.a),1.0);}",kO:"float blend(float b,float t){float f=step(0.5,b);return(1.0-f)*(2.0*b*t+b*b*(1.0-2.0*t))+f*(sqrt(b)*(2.0*t-1.0)+2.0*b*(1.0-t));}vec4 c(vec4 b,vec4 t){return vec4(vec3(blend(b.r,t.r),blend(b.g,t.g),blend(b.b,t.b))*t.a+b.rgb*(1.0-t.a),1.0);}",
hO:"float blend(float b,float t){float f=step(0.5,t);return (1.0-f)*(2.0*t*b)+f*(1.0-2.0*(1.0-t)*(1.0-b));}vec4 c(vec4 b,vec4 t){return vec4(vec3(blend(b.r,t.r),blend(b.g,t.g),blend(b.b,t.b))*t.a+b.rgb*(1.0-t.a),1.0);}"}});u(200,0,function(){function c(c,e,b){this.C=c;this.to=!1;if("normal"===e||void 0===e)e=h.jO;else if("multiply"===e)e=h.iO;else if("soft-light"===e)e=h.kO;else if("hard-light"===e)e=h.hO;else throw Error("Invalid blend mode: "+e);if("normal"===b||void 0===b)var a=h.dO;else if("grayscale"===
b)a=h.cO;else throw Error("Invalid backdrop filter: "+b);b=(new l.ws(c,c.VERTEX_SHADER,h.HV)).compile();e=(new l.ws(c,c.FRAGMENT_SHADER,h.yQ+e+a)).compile();this.Tp=e=(new l.tb(c,b,e)).RB();b=e.M;this.wV=b.u_base;this.xV=b.u_tex;this.bu=e.attributes().a_pos;this.Ad=new r(c,128,128);this.Ad.rb();this.Ad.bind().yd(c.NEAREST).xd(c.NEAREST).zj(c.CLAMP_TO_EDGE).Aj(c.CLAMP_TO_EDGE).A();this.Ln=new n(c);this.Ln.rb();this.Ln.bind().Fu(128,128).A();this.wv=new q(c);this.wv.bind().Lm(this.Ad.Ec()).mD(this.Ln.Ec()).A();
this.hB=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.hB);c.bufferData(c.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),c.STATIC_DRAW)}var l=k(119),r=k(124),q=k(122),n=k(197),h=k(199);c.prototype.release=function(){this.Ad.release();this.Ln.release()};c.prototype.active=function(){return this.to};c.prototype.Qg=function(c,e){var b=this.C,a=c[0]*e;c=c[1]*e;if(a!==this.Ad.width||c!==this.Ad.height)this.Ad.width=a,this.Ad.height=c,this.Ad.bind().data(null,b.RGBA,b.RGBA).A(),this.Ln.bind().Fu(a,
c).A()};c.prototype.start=function(){if(void 0===this.Tp)return!1;this.to=!0;this.wv.bind();return!0};c.prototype.end=function(){this.to&&(this.to=!1,this.wv.A())};c.prototype.Qd=function(c){if(void 0===this.Tp)return!1;this.Tp.use();var e=this.C;e.activeTexture(e.TEXTURE0);this.Ad.bind();e.uniform1i(this.xV,0);c&&(e.activeTexture(e.TEXTURE1),c.Ad.bind(),e.uniform1i(this.wV,1));e.bindBuffer(e.ARRAY_BUFFER,this.hB);e.vertexAttribPointer(this.bu,2,e.FLOAT,!1,0,0);e.enableVertexAttribArray(this.bu);
e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);e.enable(e.BLEND);e.drawArrays(e.TRIANGLE_STRIP,0,4);e.disable(e.BLEND);e.disableVertexAttribArray(this.bu);c&&c.Ad.A();this.Ad.A();this.Tp.zb()};return c});u(201,0,function(){function c(c){console.error("Failed to add WebGL Layer: "+c)}function l(c,e,b){r.ua(this)&&(q.prototype.constructor.call(this,c),this.C=c,this.Tl=e,this.jh=!1,this.Uy=b&&b.didAppear,this.Vy=b&&b.didDisappear,this.Fy=b&&b.blendMode,this.Ey=b&&
b.backdropFilter)}var r=k(8),q=k(150),n=k(117),h=k(200);r.P(q,l);l.prototype.ID=function(){var g=this.Tl;this.fr();try{var e=g.added&&g.added(this.m)}catch(b){c(b);return}e&&"function"===typeof e.then?e.then(this.VA.bind(this)).catch(c):this.VA()};l.prototype.VA=function(){this.jh=!0;this.Uy&&this.Uy();n.Da("context-lost",this.tk,this);n.Da("context-restored",this.uk,this);var c=this.C;if(this.Fy||this.Ey)this.Ge=new h(c),this.wi=new h(c,this.Fy,this.Ey)};l.prototype.JD=function(){this.Ge&&(this.Ge.release(),
this.Ge=void 0);this.wi&&(this.wi.release(),this.wi=void 0);var c=this.Tl;this.fr();c.removed&&c.removed(this.m);this.Vy&&this.Vy();this.jh=!1;n.va("context-lost",null,this);n.va("context-restored",null,this)};l.prototype.tk=function(){var c=this.Tl;c.contextLost&&c.contextLost(this.m)};l.prototype.uk=function(){var c=this.Tl;this.fr();c.contextRestored&&c.contextRestored(this.m)};l.prototype.fr=function(){var c=this.C;c.disable(c.BLEND);c.disable(c.STENCIL_TEST);c.blendFunc(c.ONE,c.ZERO);c.stencilFunc(c.ALWAYS,
0,4294967295);c.stencilMask(4294967295);c.stencilOp(c.KEEP,c.KEEP,c.KEEP);c.clearColor(0,0,0,0);c.clearStencil(-1);c.useProgram(null);c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);c.lineWidth(1)};l.prototype.Ap=function(c,e,b,a){this.jh&&this.Ge&&(this.Ge.Qg(e,a),this.Ge.start())};l.prototype.Lc=function(c,e,b,a,d){if(this.jh){a=this.Ge;e=this.wi;if(a){if(!a.active())return;a.end()}if(e&&(e.Qg(b,d),!e.start())){a&&a.Qd();return}this.fr();b=this.C;b.clear(b.STENCIL_BUFFER_BIT|(e&&b.COLOR_BUFFER_BIT));
this.Tl.render(this.m,c);this.wi&&(this.wi.end(),this.wi.Qd(this.Ge))}};l.prototype.up=function(){this.Ge&&this.Ge.active()&&(this.Ge.end(),this.Ge.Qd())};return l});u(202,0,function(){function c(c,h,g){q.ua(this)&&(r.prototype.constructor.call(this,h,g),this.C=c,this.Zy=void 0)}var l=k(15),r=k(131),q=k(8);q.P(r,c);c.prototype.type=function(){return l.sg};c.prototype.CT=function(c){this.Zy=c};c.prototype.lv=function(c,h,g,e,b){c===this.Zy&&this.K.Lc(h,this.sa,g,e,b)};c.prototype.setDrawPass=c.prototype.CT;
return c});u(203,0,function(){function c(a,b){this.Ek=b.Ek;this.Pq=b.bf;this.Ma=b.Ma;this.Pd=b.Pd;this.Uk=b.Uk;this.Yk=b.Yk;this.Cp=b.Cp;this.pj=b.pj;this.kg=b.kg;this.qb=b.qb;this.Mn=b.Mn;this.Mm=b.Mm;this.An=b.An;this.bf={};this.na=a;this.wd();this.Da("released",this.oI,this)}function l(a){g.ua(this)&&q.prototype.constructor.call(this,a)}function r(a,b){l.prototype.constructor.call(this,a);this.bP=b}var q=k(192),n=k(109),h=k(15),g=k(8),e=k(5),b=k(22),a=k(21),d=k(0);k(13);var f={};c.prototype.XS=
function(){this.lI();this.kI();return this};c.prototype.kI=function(){function a(a){for(var b=[],c=0,f=a.length;c<f;c++){var g=e.Pb();d.add(g,a[c]);b.push(g)}return b}var b=this.Pq,d=this.na;this.bf.le=a(b.le);this.bf.Ki=a(b.Ki);this.bf.kc=a(b.kc)};c.prototype.lI=function(){for(var a=this.kg,b=[],d=0,e=a.length;d<e;d++){var c=a[d],f=0,g=c.Sk;if(g){do{var m={},h;for(h in c)m[h]=c[h];var l={},n=!1,k;for(k in g){var q=g[k];f>=q.length?l[k]=null:(l[k]=q[f],n=!0)}m.Sk=l;if(n)b.push(m);else break;f++}while(1)
}else b.push(c)}this.kg=b};c.prototype.oI=function(){for(var a in this.bf)this.bf[a].forEach(this.na.remove,this.na)};b.ka(c.prototype);g.P(q,l);var m={};m[h.ha]="standard";m[h.ma]="road";m[h.nd]="standard";m[h.ia]="road";m[h.Wc]="road";m[h.Ia]="road";m[h.B]="standard";m[h.kd]="poi";m[h.xc]="building";m[h.qg]="poi";l.prototype.oR=function(a,b){var e=a.key,c=a.language||"",f=a.Re||"",g=a.$e||"",m=a.Kb||d.Mi,h=a.Tb||d.Li;return"x="+e.x+"&y="+e.y+"&z="+e.z+"&scale="+a.scale+"&style="+a.Zd+"&v="+a.tc+
"&type="+b+(a.Eh?"&lo=1":"")+("poi"===b||"standard"===b?"&tap=1":"")+(c.length?"&lang="+c:"")+(f.length?"&country="+f:"")+(g.length?"&region="+g:"")+(m.length?"&tint="+m:"")+(h.length?"&emphasis="+h:"")};l.prototype.eT=function(a,b){var d=a.key;return{Uq:"vtile",x:d.x,y:d.y,z:d.z,type:b,Zd:a.Zd,scale:a.scale,language:a.language||"",Re:a.Re||"",$e:a.$e||"",tc:a.tc,Qc:a.key.x+a.key.z}};l.prototype.Jg=function(a,b){var d="vtile?"+this.oR(a,b);b=this.eT(a,b);return{url:d,data:b,key:a.key,Kb:a.Kb}};l.prototype.fetch=
function(a,b){a=this.Jg(a,b);return this.Mp(a)};l.prototype.Wp=function(a,b){b=this.Jg(a,m[b]);var d=this.getData(b,a);return d.Rv()?(a.once("loading-aborted",function(){d.release()}),d.rb()):d};l.prototype.jC=function(a,b){this.W("data-decoded",{source:a,data:b})};l.prototype.bv=function(b,d){var e=this;return this.Om(b,d).then(function(b){b=new c(e.Yd,b);b.rb();a.If.qa(b.release,b);return b.XS()})};g.P(l,r);r.prototype.Om=function(a,b){return this.bP.Om(a,b.key,b.Kb)};r.prototype.Mp=function(a){return this.Yd.get(a.url,
n.hi,a.data,n.kf)};f.ZD=r;f.H=c;return f});u(204,0,function(){function c(c,n){this.We=c;this.nf=0;this.Ld=n||l.l.u(0,0);this.Pc=l.Ya.create()}var l=k(3),r=k(0);c.prototype.reset=function(c,n,h){this.Gi=c[0]/c[1];var g=Math.pow(2,h-n.Jb.z),e=Math.pow(2,-h);this.Fb=l.U.Ah(l.U.create());var b=n.coords;e=l.Ya.u(this.Ld[0]*e-b[0]-n.size/2,-this.Ld[1]*e-b[1]-n.size/2,0);c=this.We/(n.size*c[0]*.5);l.U.scale(this.Fb,this.Fb,l.Ya.u(c,c*this.Gi,1));l.U.scale(this.Fb,this.Fb,l.Ya.u(g,g,0));l.U.translate(this.Fb,
this.Fb,e);this.LD=h;this.Ox=r.wq;this.Pc=e};c.prototype.BA=function(){return!1};c.prototype.ag=function(){return this.LD};c.prototype.Zp=function(){return this.LD-this.Ox+r.tD};c.prototype.bx=function(c){this.nf=c;this.reset()};c.prototype.aw=function(){return 0};c.prototype.Xr=function(){return 0};c.prototype.Bu=function(){return 0};c.prototype.gx=function(){};c.prototype.ex=function(){};c.prototype.Fk=function(){return this.Pc};c.prototype.update=function(){};c.prototype.Fk=function(){return this.Pc};
return c});u(205,0,function(){function c(b,a,d){this.id=b;this.Ig=a;this.Sw={};this.ca=d;this.iT()}function l(b,a,d){0===b&&n.forward(h,this);this.Nx=Array(b);this.Zt=b;for(var e=0;e<b;e++){var g=new c(e,a,d);n.forward(g,this);this.Nx[e]=g}this.YO=-1}var r=k(13);k(4);var q=k(5),n=k(11),h=k(43),g=k(21);var e={global:{},MW:"./",LW:"worker-api",x0:{}};c.prototype.iT=function(){this.yj||(this.yj=this.Ig());var b=this;this.F=new r(function(a){b.yj.onmessage=function(d){"initialized"===d.data.id&&(b.yj.onmessage=
function(a){return g.Hf.qa(function(){b.UH(a.data)})},a())}});var a={id:"init",EO:e,ca:this.ca.Oh()};this.yj.postMessage(a)};c.prototype.UH=function(b){switch(b.type){case "result":var a=b.Mk,d=this.Sw[a];delete this.Sw[a];d.resolve(b.result);break;case "error":d.reject(b.reason);case "message":this.W(b.key,b.value)}};c.prototype.qa=function(b,a,d){var e={Mk:d,yj:this,Up:b.Tm,Du:a};b=new r(function(a,b){e.resolve=a;e.reject=b});e.sr=b;this.SI(e);return e};c.prototype.SI=function(b){var a=this;this.F.then(function(){a.Sw[b.Mk]=
b;a.yj.postMessage({id:"run",Mk:b.Mk,Up:b.Up,Du:b.Du})})};n.ka(c.prototype);l.prototype.UJ=function(b,a,d){var e=++this.YO%this.Zt;return this.Nx[e].qa(b,a,d).sr};l.prototype.oJ=function(b,a){return r.timeout(0).then(function(){var d=h.qa(b.Tm,a);return g.Hf.qa(function(){return d})}.bind(this))};l.prototype.qa=function(b,a,d,e,c,h,l,n,k,r){var f=q.Pb();var m=[a,d,e,c,h,l,n,k,r];return g.Hf.qa(function(){return 0!==this.Zt?this.UJ(b,m,f):this.oJ(b,m)}.bind(this))};l.prototype.Pa=function(){0!==this.Zt&&
this.Nx.forEach(function(b){b.yj.terminate()})};n.ka(l.prototype);return l});u(206,0,function(){function c(c){this.vJ=c;this.ie={};this.ih=!0;this.LJ=Math.floor(60/r.kV);this.LH=10;this.wz=Date.now();this.Yl=void 0;this.reset()}var l=k(11),r=k(0),q=k(20);c.prototype.mI=function(c,h){c=this.vJ.SQ(c,h);h={};var g,e;this.ih=!1;var b=0;for(g=c.length;b<g;b++){var a=c[b];(e=this.ie[a.id])?(h[a.id]=e,delete this.ie[a.id]):(this.ih=!0,e=new q(a),h[a.id]=e,this.W("tile-created",e))}for(b in this.ie)this.ih=
!0,e=this.ie[b],this.W("tile-destroyed",e);this.ie=h};c.prototype.reset=function(){for(var c in this.ie)this.W("tile-destroyed",this.ie[c]);this.ie={};this.Gy=this.Dt=0;this.Yl=void 0};c.prototype.sn=function(){return this.ih};c.prototype.update=function(c,h){var g=Date.now(),e=(g-this.wz)/1E3,b=c.Fk(),a=c.ag();e=Math.abs(a-this.Gy)/e;this.Gy=a;a=!1;var d=void 0===this.Yl,f;e>this.LH&&(this.Dt=0,a=this.ih=!0);.5<b[0]-this.Yl?f=function(a){return-1===a?0:0===a?1:1===a?-1:a}:.5<this.Yl-b[0]&&(f=function(a){return-1===
a?1:0===a?-1:1===a?0:a});this.Yl=b[0];if(f){var m=this.ie,l={};Object.keys(m).forEach(function(a){a=m[a];var b=a.Jb;b.GT(f(b.offset));a.XC(b);l[b.id]=a});this.ie=l;this.W("tile-shift",f)}else if(!d&&a)return;f||d||0===this.Dt++%this.LJ?(this.mI(c,h),this.Dt=1,this.ih=!1):this.ih=this.ih||!c.ux();this.wz=g};c.prototype.SR=function(c){console.assert(void 0===this.ie[c.Jb.id]);this.ie[c.Jb.id]=c;this.W("tile-created",c)};c.prototype.vj=function(){return this.ie};l.ka(c.prototype);return c});u(207,0,
function(){function c(c){this.kp=[];this.he=new l(c);this.he.Da("tile-created",this.Kg,this);this.he.Da("tile-shift",this.cj,this);this.he.Da("tile-destroyed",this.Ih,this)}var l=k(206);c.prototype.PN=function(c){this.kp.push(c)};c.prototype.Kg=function(c){this.kp.forEach(function(l){l.Kg(c)})};c.prototype.Ih=function(c){this.kp.forEach(function(l){l.Ih(c)})};c.prototype.cj=function(c){this.kp.forEach(function(l){l.cj(c)})};c.prototype.update=function(c,l){this.he.update(c,l)};return c});u(208,0,
function(){function c(c,h,g){this.Oq=g;this.style=h.Zd;this.scale=h.scale;this.Kb=h.Kb;this.Tb=h.Tb;this.wA={};this.eb=l.l.u(0,0);this.zh=this.alpha=1;h=this.Oq[0];g=this.Oq[1];for(var e=c[h];h<=g;){this.wA[h]=e;h++;var b=c[h];b&&(e=b)}this.reset()}var l=k(3),r=k(11),q=k(13);c.prototype.reset=function(){this.angle=0;this.mf=-1;this.Xz(null,-1);this.Wr={}};c.prototype.QG=function(c){return this.wA[c]};c.prototype.PG=function(c,h){h=Math.min(Math.max(this.Oq[0],h),this.Oq[1]);var g=this.QG(h);if("0"===
g)return q.resolve(null);var e=this.Wr[h];if(e)return e;e=c.uq(this,g,h);this.Wr[h]=e.then(function(b){b&&b.rb();return b});return e};c.prototype.uq=function(c){var h=this.mf;c=this.PG(c,h);c=c.catch(function(){return null});return c=c.then(function(c){return this.Xz(c,h)}.bind(this))};c.prototype.fx=function(c,h){this.mf=h;return this.uq(c)};c.prototype.Xz=function(c,h){this.mf===h&&(c&&this.Zk(c.width,c.height),h=this.icon,this.icon=c,this.W("icon-changed",h));return this};c.prototype.gf=function(c){this.position=
c.origin;this.vT=l.l.u(.5*-this.eb[0],.5*-this.eb[1])};c.prototype.Zk=function(c,h){this.eb[0]=c;this.eb[1]=h};c.prototype.ue=function(){return this.eb};c.prototype.ur=function(){for(var c in this.Wr)this.Wr[c].then(function(c){c&&c.release()});this.reset()};r.ka(c.prototype);return c});u(209,0,function(){function c(c,l,k,h){this.oF=c.rb();this.width=c.size[0]/l;this.height=c.size[1]/l;this.attributes=k;this.Af=h;this.once("released",c.release,c);this.wd()}var l=k(22);c.prototype.Hi=function(){return this.oF};
l.ka(c.prototype);return c});u(210,0,function(){function c(b,a,d){this.Em=d;this.na=b;this.qR="icon";this.Pf=!1;this.mf=0;this.ca=a;this.No={};this.kz={};this.vg={};this.Ms={}}var l=k(109),r=k(11),q=k(13),n=k(208),h=k(21),g=k(0),e=k(209);c.prototype.Ka=function(){this.Em.Kn();this.vg={};this.Pf=!0};c.prototype.Wk=function(){this.Em.Fw();this.Pf=!1};c.prototype.fetch=function(b){var a=b.scale,d=b.Ae,c=b.attributes,e=b.Kb,g=b.Tb,h=b.name,k="scale="+a+"&subtype="+d+"&tint="+e+"&emphasis="+g;a={Uq:"icon",
scale:a,Ae:d,Kb:e,Tb:g,Qc:b.Qc};"poi"===d?(d=b.size||0,h=b.style,b=b.zoom||0,a.style=h,a.zoom=b,a.attributes=c,k=k+("&style="+h)+("&zoom="+b)+("&attributes="+encodeURIComponent(c)),(a.size=d)&&(k+="&size="+d)):"named"===d?(a.name=h,k+="&name="+h):(d=b.size||0,h=b.style,c=b.JA,b=b.zD,a.style=h,a.JA=c,k=k+("&style="+h)+("&cartoId="+c),a.zD=b,k+="&transitType="+b,(a.size=d)&&(k+="&size="+d));return this.na.get(this.qR+"?"+k,l.Xg,a,l.kf)};c.prototype.DG=function(b,a,d,c,e,g,h){b=this.No[b];var f="",m=
0,l;for(l in b){var k=b[l];f+=l+":"+k+",";m+=k}f=f.slice(0,-1);h.scale=d;h.style=c;h.Ae="poi";h.zoom=a;h.Kb=e;h.Tb=g;h.attributes=f;h.Qc=m};c.prototype.Ly=function(b,a,d,c,e,g){return b+":"+a+":"+d+":"+c+":"+e+":"+g};c.prototype.uq=function(b,a,d){var c=b.scale,e=b.style,g=b.Kb;b=b.Tb;var h=this.Ly(a,d,c,e,g,b),l=this.vg[h];if(!l){var k=this;this.DG(a,d,c,e,g,b,this.Ms);var n=this.Ms.attributes,r=this.kz[a];l=this.fetch(this.Ms).then(function(a){return k.Pf?(delete k.vg[h],q.reject("aborted")):k.Bz(a,
c,n,r)});this.vg[h]=l;l.then(function(a){a.once("released",function(){delete k.vg[h]})});l.catch(function(){delete k.vg[h]})}return l};c.prototype.Bz=function(b,a,d,c){b=this.Em.AC(b);return(new e(b,a,d,c)).Uf()};c.prototype.QS=function(b){var a=b.qb;b=a.Ik;var d=a.Ma;a=a.Af;for(var c in b)if(!this.No[c]){var e=b[c];console.assert(0<=e);console.assert(e<d.length);this.No[c]=d[e].attributes;a&&(this.kz[c]=a[e])}q.resolve("__icon-data-ready__")};c.prototype.dP=function(b){for(var a=[],d=b.elements,
c=0,e=d.length;c<e;c++){var g=d[c],h=g.gc;if(h.qb){var l=this.hH(g,b,h.qb);a.push(l);this.gH(g,h.qb)}}b.once("destroyed",this.iA,this);return q.all(a)};c.prototype.lc=function(b){if(b=b.elements)for(var a=0,d=b.length;a<d;a++){var c=b[a];c.La&&c.La.reset()}};c.prototype.hH=function(b,a,d){a=new n(d,a,a.$t);d=a.fx(this,this.mf);this.Da("zoom-changed",a.fx.bind(a,this),a);b.La=a;return d};c.prototype.gH=function(b,a){for(var d=Object.keys(a),c=0,e=d.length;c<e;++c){var g=this.No[a[d[c]]];g&&g.hasOwnProperty("6")&&
(g=g["6"],b.sv=g,b.CS=this.ca.ES[g])}};c.prototype.iA=function(b){b.elements.forEach(function(a){(a=a.La)&&this.va("zoom-changed",null,a)},this);h.El.qa(function(){b.elements.forEach(function(a){(a=a.La)&&a.ur()})})};c.prototype.cP=function(b){var a=b.elements.map(function(a){return this.MG(b).then(function(b){a.La=b})}.bind(this));b.once("destroyed",this.iA,this);return q.all(a)};c.prototype.KQ=function(b,a,d,c){return{scale:a,style:b,Kb:d,Tb:c,Ae:"named",name:this.ca.Pw[b],Qc:0}};c.prototype.MG=
function(b){var a=b.Zd,d=b.scale,c=b.Kb,e=b.Tb,h=this.Ly("__arrow__",0,d,a,c,e),l=this,k=this.vg[h];k||(k=this.fetch(this.KQ(a,d,c,e)).then(function(a){return l.Pf?q.reject():l.Bz(a,d)}).then(function(a){a.width*=.5;a.height*=.5;return a.rb()}),this.vg[h]=k,k.catch(function(){delete l.vg[h]}));return k.then(function(){return(new n({0:"__arrow__"},b,[g.nw,g.nw])).fx(l,0)})};c.prototype.update=function(b){b=Math.floor(b.Zp());b!==this.mf&&(this.mf=b,this.W("zoom-changed",this.mf))};r.ka(c.prototype);
return c});u(211,0,function(){function c(c){this.Lq=l.U.create();this.CB=l.U.create();this.view=l.U.create();this.DB=l.U.create();this.Fb=l.U.create();this.Pv=l.U.create();this.Ox=q.wq;this.Md=3;this.aB=1E3;this.cC=1E-8;this.Ko=30*Math.PI/180;this.Xw(c||1);this.Pc=l.Ya.u(0,0,0);this.fm=l.Ya.create();this.pf=this.nf=0;this.xm=l.l.create();this.lh=l.Ya.create();this.tt=l.l.create();this.mp=this.vo=0;this.Pt=q.We;this.LI();this.um=Date.now();this.lf=!1;this.near=this.cC;this.far=this.aB;this.proj=this.Lq;
this.view=this.view;this.viewProj=this.Fb}var l=k(3),r=k(11),q=k(0),n=q.Qk;c.prototype.clone=function(){var g=new c(this.Gi);l.Ya.Qd(g.Pc,this.Pc);l.Ya.Qd(g.fm,this.fm);g.Md=this.Md;g.nf=this.nf;g.pf=this.pf;g.um=this.um;g.lf=this.lf;return g};c.prototype.xQ=function(){return this.Ko};c.prototype.LI=function(){this.pf=this.nf=0;this.fm[0]=this.Pc[0];this.fm[1]=this.Pc[1];this.fm[2]=this.Md};c.prototype.Xw=function(c){this.Gi=c};c.prototype.LQ=function(){return this.Gi};c.prototype.BA=function(){return this.lf};
c.prototype.aw=function(){return this.DH};c.prototype.Xr=function(){return this.mp};c.prototype.Bu=function(){return this.vo};c.prototype.FV=function(c,e){this.update(e);var b=.001*(this.um-c.um);if(0!==b){b=1/b;l.l.sub(this.lh,this.Pc,c.Pc);l.l.scale(this.lh,this.lh,b);var a=this.xS();this.tt[0]=this.lh[0]*e[0]/a[0];this.tt[1]=this.lh[1]*e[1]/a[1];this.DH=l.l.length(this.tt);this.vo=(this.nf-c.nf)*b;this.mp=(this.Md-c.Md)*b}};c.prototype.update=function(c){var e=c[0]/c[1];e!==this.Gi&&this.Xw(e);
e=Math.pow(2,this.Md)*this.Pt;this.xm[0]=c[0]/e;this.xm[1]=c[1]/e;this.um=Date.now();this.OJ(c);this.KJ();this.MJ();this.NJ()};c.prototype.ux=function(c){var e=!this.lf&&0===this.lh[0]&&0===this.lh[1]&&0===this.vo&&0===this.mp;(c||{}).RW={e2:this.lh,Bu:this.vo,Xr:this.mp};return e};c.prototype.OJ=function(g){this.QH=c.nB(g,this.Pt);this.NH=c.mB();this.Md=Math.max(this.Md,this.QH,2);this.Md=Math.min(this.Md,this.NH);this.Ws=this.EF(g,this.Md,this.Ko)};c.prototype.KJ=function(){l.U.perspective(this.Lq,
this.Ko,this.Gi,this.cC,this.aB);l.U.Ch(this.CB,this.Lq)};c.mB=function(){return n};c.nB=function(g,e){var b=g[0],a=g[1];return Math.max(2,l.log2(c.hasRotationLock?Math.max(b,a)/e:1+Math.sqrt(g[0]*g[0]+g[1]*g[1])/(e/2)))};c.prototype.EF=function(c,e,b){return c[1]/this.Pt*Math.pow(2,-e-.001)*.5/Math.tan(.5*b)};c.prototype.xS=function(){var c=2*this.Ws*Math.tan(.5*this.Ko);return l.l.u(c*this.Gi,c)};c.prototype.MJ=function(){var c=this.view,e=this.Ws;l.U.Ah(c);l.U.translate(c,c,l.Ya.u(0,0,-this.Ws));
l.U.Qw(c,c,-this.pf);l.U.Rw(c,c,this.nf);l.U.translate(c,c,l.Ya.qw(l.Ya.create(),this.Pc));l.U.Ch(this.DB,c);for(var b=0;16>b;b++)c[b]/=e};c.prototype.NJ=function(){l.U.multiply(this.Fb,this.Lq,this.view);l.U.multiply(this.Pv,this.DB,this.CB)};c.prototype.XQ=function(c){c=c||{};var e=c.region||[0,0,1,1],b=c.offset||[0,0,0],a=c.model||l.U.create();c=this.Pc[0]-.5*this.xm[0];var d=Math.floor(c),f=this.Pc[0]+.5*this.xm[0],g=Math.floor(f),h=e[0]-Math.floor(e[0]);e=h+e[2];var k=l.U.create();l.U.multiply(k,
this.Fb,a);a=[];for(var n=d;n<=g;n++)if(!(n===d&&e<c-d||n===g&&h>f-g)){var q=l.U.create();l.U.translate(q,k,[b[0]+n,b[1],b[2]]);a.push(q)}return a};c.prototype.WQ=function(c){var e=c&&c.offset;if((c=c&&c.model)||e){e=e||[0,0,0];c=c||l.U.create();var b=l.U.create();l.U.multiply(b,this.Fb,c);l.U.translate(b,b,e);return b}return this.Fb};c.prototype.RS=function(c){c=[c[0]+Math.floor(this.Pc[0]),c[1],c[2]];l.Ya.fb(c,c,this.Fb);return c};c.prototype.yV=function(c,e){c=[c,e,0,1/this.Pv[14]];l.T.fb(c,c,
this.Pv);return[c[0]/c[3],c[1]/c[3],c[2]/c[3]]};var h=l.pV(70);c.prototype.bD=function(c){this.pf=c;this.pf=Math.max(this.pf,0);this.pf=Math.min(this.pf,h);this.W("pitch",c)};c.prototype.TQ=function(){return this.pf};c.prototype.pitch=function(c){this.bD(this.pf+c)};c.prototype.bx=function(c){this.nf=c;this.W("rotate",c)};c.prototype.rB=function(){return this.nf};c.prototype.rotate=function(c){this.bx(c+this.nf)};c.prototype.gx=function(c){this.Md=c;this.W("zoom",c)};c.prototype.Zp=function(){return this.ag()-
this.Ox+q.tD};c.prototype.ag=function(){return this.Md};c.prototype.ex=function(c){this.Pc=l.Ya.clone(c)};c.prototype.Fk=function(){return l.Ya.clone(this.Pc)};c.prototype.MQ=function(){var c=this.Pc,e=this.xm;return[c[0]-.5*e[0],c[1]-.5*e[1],e[0],e[1]]};r.ka(c.prototype);c.prototype.fovy=c.prototype.xQ;c.prototype.setAspect=c.prototype.Xw;c.prototype.getAspect=c.prototype.LQ;c.prototype.getBounds=c.prototype.MQ;c.prototype.setPitch=c.prototype.bD;c.prototype.getPitch=c.prototype.TQ;c.prototype.setRotation=
c.prototype.bx;c.prototype.getRotation=c.prototype.rB;c.prototype.getTarget=c.prototype.Fk;c.prototype.setTarget=c.prototype.ex;c.prototype.setZoomLevel=c.prototype.gx;c.prototype.getZoomLevel=c.prototype.ag;c.prototype.getProjections=c.prototype.XQ;c.prototype.getProjection=c.prototype.WQ;c.prototype.project=c.prototype.RS;c.prototype.unproject=c.prototype.yV;c.prototype.update=c.prototype.update;c.getMaxZoomLevel=c.mB;c.getMinZoomLevel=c.nB;c.hasRotationLock=!1;return c});u(212,0,function(){var c=
k(14),l={};l.BelowBaseMap=c.cs;l.BaseMap=c.mo;l.Roads=c.ko;l.Borders=c.Qx;l.Buildings=c.Rx;l.Icons=c.ms;l.Labels=c.Cs;return l});u(213,0,function(){function c(c){var e=c.ca,b=c.viewport,a=c.scale;c=c.Jn;for(var d=e.uc*e.Yi,f=e.uc*e.Xi,g=[0,0,!0,.4,.4,!1,.4,.6,!1,0,1,!1,.4,.6,!1,.6,.6,!1,1,1,!1,.6,.6,!1,.6,.4,!1,1,0,!1,.6,.4,!1,.4,.4,!1,0,0,!0,.5,.5,!0,.5,0,!1,1,.5,!1,.5,.5,!1,.5,1,!1,0,.5,!1,.5,.5,!0,.25,.4,!0,.5,.5,!1,.75,.6,!0,.4,.25,!0,.5,.5,!1,.6,.75,!0,.2,0,!0,.5,0,!1,.8,0,!0,1,.2,!0,1,.5,!1,
1,.8,!0,.8,1,!0,.5,1,!1,.2,1,!0,0,.8,!0,0,.5,!1,0,.2,!0,-.01,-.01,!0,-.4,-.4,!1,-.4,-.6,!1,-.01,-.99,!1,-.4,-.6,!1,-.6,-.6,!1,-.99,-.99,!1,-.6,-.6,!1,-.6,-.4,!1,-.99,-.01,!1,-.6,-.4,!1,-.4,-.4,!1,-.01,-.01,!0,-.5,-.5,!0,-.5,-.01,!1,-.99,-.5,!1,-.5,-.5,!1,-.5,-.99,!1,-.01,-.5,!1,-.5,-.5,!0,-.25,-.4,!0,-.5,-.5,!1,-.75,-.6,!0,-.4,-.25,!0,-.5,-.5,!1,-.6,-.75,!0,-.2,-.01,!0,-.5,-.01,!1,-.8,-.01,!0,-.99,-.2,!0,-.99,-.5,!1,-.99,-.8,!0,-.8,-.99,!0,-.5,-.99,!1,-.2,-.99,!0,-.01,-.8,!0,-.01,-.5,!1,-.01,-.2,
!0],h=new Uint32Array(g.length/3),l=0,k=0;k<g.length;k+=3){var n=g[k+0]+e.Sh,r=g[k+1]+e.Sh;n=q.$A(n,r,g[k+2],e.uc,d,f);h[l++]=n}e={count:g.length/3,offset:0};for(k=0;k<g.length;k+=3)n=Math.floor(.5*(g[k+0]*a+1)*b[0]),r=Math.floor(.5*(g[k+1]*a+1)*b[1]),c[r*b[0]+n]=1;b=new Uint8Array(h.buffer);return{line:e,KR:b}}var l=k(3),r=k(125),q=k(126),n=k(119),h=k(0);return{check:function(g){var e=Date.now(),b=g.m,a=g.viewport,d=g.Mg,f=g.scale;g=c(g);var m=g.line,k=g.KR;g=n.tb.Bb(b,"shaders/line-fill.vert","shaders/line-fill.frag",
{RENDERING_TEST:1});var t=q.fX(b,m.count),u=t.gb,C=t.pb;return g.then(function(c){var g=r.Vm(b,k),n=l.U.create();l.U.scale(n,n,[f,f,1]);var p=Date.now();c.use();u.bind();C.bind();b.vertexAttribPointer(c.attributes().dataIndex,1,b.FLOAT,!1,12,0);b.enableVertexAttribArray(c.attributes().dataIndex);b.vertexAttribPointer(c.attributes().refIndex,1,b.FLOAT,!1,12,4);b.enableVertexAttribArray(c.attributes().refIndex);b.vertexAttribPointer(c.attributes().expansionDirection,1,b.FLOAT,!1,12,8);b.enableVertexAttribArray(c.attributes().expansionDirection);
b.uniform1f(c.M.lineAAPointCount,h.PB/d);b.uniformMatrix4fv(c.M.modelViewProjMatrix,!1,n);b.activeTexture(b.TEXTURE0);g.bind();b.uniform1i(c.M.positionDataTexture,0);b.uniform2f(c.M.positionDataTextureSize,g.width,g.height);b.uniform1f(c.M.halfLineWidth,0);b.uniform1f(c.M.lineWidthFactor,0);b.uniform2fv(c.M.viewportSize,a);n=m.count-1;b.uniform1f(c.M.lineSectionOffset,m.offset);b.drawElements(b.POINTS,6*n,b.UNSIGNED_SHORT,0);g.A();C.A();u.A();b.disableVertexAttribArray(c.attributes().dataIndex);b.disableVertexAttribArray(c.attributes().refIndex);
b.disableVertexAttribArray(c.attributes().expansionDirection);c.zb();C.Pa();u.Pa();g.Pa();return{MR:p-e,LR:Date.now()-p}})}}});u(214,0,function(){function c(c){var g=c.Jn,e=c.viewport,b=[0,0],a=[-16,-16];c=[[0,.5*e[1]],[.5*e[0],0]];for(var d=[9,3,16,1,3,9,1,5,3,19,1,5,28,9,1,5,28,19,1,5,27,5,1,1,5,5,1,1,10,15,2,8,21,15,2,8,12,8,10,1,12,9,1,1,21,9,1,1,8,27,1,1,12,27,1,1,16,27,1,1,20,27,1,1,24,27,1,1],f=[],h=0,l=0;l<d.length;l+=4){var k=d[l+0],n=d[l+1],r=d[l+2],u=d[l+3];f.push(q.mP(k+a[0],n+a[1]));
f.push(q.ZA(h,0));h+=r;f.push(q.ZA(h,u));c.forEach(function(a){var d=r,c=u;a=(b[1]+a[1]+n)*e[0]+(b[0]+a[0]+k);for(var f=0;f<c;f++)for(var h=a+f*e[0],m=0;m<d;m++)g[h+m]=1})}c.forEach(function(b){b[0]-=a[0];b[1]-=a[0]});d=new Uint32Array(f);f=new Uint8Array(d.buffer);return{label:{Fg:d.length/3},jS:c,ib:b,gR:f}}var l=k(3),r=k(125),q=k(164),n=k(119);return{check:function(h){var g=Date.now(),e=h.m,b=h.viewport,a=h.Mg;h=c(h);var d=h.label,f=h.jS,m=h.ib,k=h.gR;h=n.tb.Bb(e,"shaders/axis-aligned-text-label.vert",
"shaders/text-label.frag",{RENDERING_TEST:"1",SNAP_GLYPHS_TO_PIXEL:"0"});var t=q.BB(e,d.Fg),u=t.Ic,C=t.Jc,I=t.Dc;return h.then(function(c){var h=r.Vm(e,k),n=c.M,p=c.attributes(),q=Date.now();c.use();u.bind();e.uniform1f(n.pr,a);e.uniform2fv(n.viewportSize,b);C.bind();e.enableVertexAttribArray(p.position);e.vertexAttribPointer(p.position,2,e.FLOAT,!1,8,0);C.A();I.bind();e.enableVertexAttribArray(p.dataIndex);e.vertexAttribPointer(p.dataIndex,1,e.FLOAT,!1,4,0);I.A();var t=l.U.create();e.uniformMatrix4fv(n.modelViewProjMatrix,
!1,t);e.uniform2f(n.center,m[0]-1,m[1]-1);e.uniform1f(n.labelIndexOffset,0);e.uniform1f(n.fontScaleFactor,1);e.activeTexture(e.TEXTURE0);h.bind();e.uniform1i(n.dataTexture,0);e.uniform2f(n.dataTextureSize,h.width,h.height);for(t=0;t<f.length;t++)e.uniform2fv(n.positionOffset,f[t]),e.drawElements(e.TRIANGLES,6*d.Fg,e.UNSIGNED_SHORT,0);h.A();u.A();e.disableVertexAttribArray(p.position);e.disableVertexAttribArray(p.dataIndex);c.zb();u.Pa();C.Pa();I.Pa();h.Pa();return{HR:q-g,GR:Date.now()-q}})}}});u(215,
0,function(){function c(a,b){return 255===a[4*b]&&0===a[4*b+1]&&0===a[4*b+2]&&255===a[4*b+3]}function l(a,b){var c=a.m,e=a.viewport,m=a.Mg,l=a.backgroundColor;g.W("loaded",a.ca);h.resize(c,e[0],e[1],m);a.wf.bind();c.viewport(0,0,e[0]*m,e[1]*m);c.clearColor(l[0],l[1],l[2],l[3]);c.clear(c.COLOR_BUFFER_BIT);var k=b.times,p=b.failures;return d.check(a).then(function(d){a.wf.A();b.lineHasRun=!0;k.lineSetup=d.MR;k.lineRendering=d.LR;b.linePass=r(a,b);a.wf.bind();b.linePass||p.push("line-mismatch")}).catch(function(a){p.push("line-rendering-failure");
p.push(a)}).then(function(){n(a.Jn);c.clear(c.COLOR_BUFFER_BIT);return f.check(a)}).then(function(d){a.wf.A();b.labelHasRun=!0;k.labelSetup=d.HR;k.labelRendering=d.GR;b.labelPass=r(a,b);a.wf.bind();b.labelPass||p.push("label-mismatch")}).catch(function(a){p.push("label-rendering-failure");p.push(a)}).then(function(){a.wf.A();return b})}function r(a,b){var d=a.viewport,e=a.Mg,f=Date.now();d=a.wf.read(d[0]*e,d[1]*e);b.times.framebufferFetch+=Date.now()-f;a:{f=a.Jn;a=a.viewport;e=a[0];for(var g=a[1],
h=1;h<e-1;h++)for(var m=1;m<g-1;m++){var l=m*e+h,k=(c(d,(m-1)*a[0]+(h-1))?1:0)+(c(d,(m-1)*a[0]+(h+0))?1:0)+(c(d,(m-1)*a[0]+(h+1))?1:0)+(c(d,(m+0)*a[0]+(h-1))?1:0)+(c(d,(m+0)*a[0]+(h+0))?1:0)+(c(d,(m+0)*a[0]+(h+1))?1:0)+(c(d,(m+1)*a[0]+(h-1))?1:0)+(c(d,(m+1)*a[0]+(h+0))?1:0)+(c(d,(m+1)*a[0]+(h+1))?1:0);if(1===f[l]&&0===k){f=!1;break a}}for(h=1;h<e-1;h++)for(m=1;m<g-1;m++)if(l=m*e+h,k=f[(m-1)*a[0]+(h-1)]+f[(m-1)*a[0]+(h+0)]+f[(m-1)*a[0]+(h+1)]+f[(m+0)*a[0]+(h-1)]+f[(m+0)*a[0]+(h+0)]+f[(m+0)*a[0]+(h+
1)]+f[(m+1)*a[0]+(h-1)]+f[(m+1)*a[0]+(h+0)]+f[(m+1)*a[0]+(h+1)],c(d,l)&&0===k){f=!1;break a}f=!0}b.times.resultCheck+=Date.now()-Date.now();b.pixels=d;return f}function q(d){var c=[64,64];d=h.create(c[0],c[1],1,d&&d.FO);if(!d)return e.reject("WebGL Context not available");var f={uc:8192,ln:3.9998779296875,Yi:4,kn:3.9998779296875,Xi:4,Sh:.9998779296875,Aq:.125,Tc:8};f.Eb=1/f.uc;f.Aq=1/f.Tc;var g=new Uint8Array(c[0]*c[1]);n(g);var m=new a(d,1*c[0],1*c[1]);m.bind().data(null,d.RGBA,d.RGBA).yd(d.LINEAR).xd(d.LINEAR).A();
var l=new b(d);l.bind().Lm(m.Ec()).A();return e.resolve({m:d,ca:f,viewport:c,Mg:1,scale:.8,backgroundColor:[.3,.3,.7,1],Jn:g,wf:l,Ad:m})}function n(a){for(var b=0,d=a.length;b<d;b++)a[b]=0}var h=k(117),g=k(110),e=k(13),b=k(122),a=k(124),d=k(213),f=k(214);return{qa:function(a){var b,d,c={pass:!1,linePass:!1,lineHasRun:!1,labelPass:!1,labelHasRun:!1,times:{framebufferFetch:0,resultCheck:0},failures:[]};var f=Date.now();return q(a).then(function(a){b=Date.now();d=a;c.times.mainSetup=b-f}).then(function(){return l(d,
c)}).then(function(a){c.viewport=d.viewport;c.pr=d.Mg;c.pixels=a.oC;c.setup=d.Jn;c.backgroundColor=d.backgroundColor;c.pass=0===c.failures.length;c.times.total=Date.now()-f;d.m.canvas.width=0;d.m.canvas.height=0;return e.resolve(c)}).catch(function(a){c.failures.push(a);return e.reject(c)})}}});u(216,0,function(){function c(a){l.ua(this)&&(this.hm=new R(1),this.na=new r,this.zt=Date.now(),this.Do=q.resolve(),this.ft=q.resolve(),this.rf=F.md.ji,this.Py="standard",this.RJ=this.Qy=!0,this.My="webgl",
this.Pf=!1,"object"===typeof a&&(!0===a.startInLoCSR&&(this.rf=F.md.mi),void 0!==a.contextType&&(this.My=a.contextType),!0===a.noLabels&&(this.rf=F.md.xl)))}var l=k(8),r=k(109),q=k(13),n=k(110),h=k(111);k(108);var g=k(107),e=k(112),b=k(114),a=k(185),d=k(189),f=k(190),m=k(191),p=k(196),t=k(21),u=k(12),C=k(117),I=k(124),v=k(122),J=k(197),y=k(198),W=k(201),K=k(202),H=k(203),F=k(15),B=k(204),L=k(205),x=k(3),A=k(207),G=k(20),E=k(19),S=k(5),z=k(0),D=k(11),N=k(22),P=k(210),Q=k(162),R=k(211),O=k(212),T=k(125),
U=k(38),M=k(36),V=k(27),Y=k(215),X=k(45);c.mr=function(a){var b;Y.qa(a).then(function(a){b=a}).catch(function(a){b=a});return b};c.prototype.m=function(){return this.C};c.prototype.element=function(){return this.C.canvas};c.prototype.Yd=function(){return this.na};c.prototype.ve=function(){this.Ba.ve();this.Xb.ve()};c.prototype.Sp=function(){this.za.Zb();this.W("needs-update")};c.prototype.mj=function(a){this.Qg(a,1)};c.prototype.Qg=function(a,b){a=x.qk(a,z.uD[0],z.uD[1]);T.mj(a);if(this.Co!==a||this.Zl!==
b)this.Co=a,this.Zl=b,this.Lt=a*b,this.za.Qg(a,b),this.wg[0]=-1,this.mm()};c.prototype.devicePixelRatio=function(){return this.Co};c.prototype.fS=function(){return this.Zl};c.prototype.ZC=function(a,b,d){var c="#F9F5ED";if("standard"===a){var e=this.ca.Df.sy;"dark"===b&&(c="#404040")}else"satellite"===a?(e=this.ca.Df.CE,c="#404040"):"hybrid"===a&&(e=this.ca.Df.qo,c="#404040");if(e!==this.Ot||b!==this.Bi||d!==this.vi){this.za.BV(e,b,d);var f=this.V.Of;this.V.yk();this.mm();f&&this.V.Ak(Date.now())}this.Ot=
e;this.Bi=b;this.vi=d;this.At=a;this.C.canvas.style["background-color"]=c};c.prototype.Zd=function(){return this.At};c.prototype.Kb=function(){return this.Bi};c.prototype.Tb=function(){return this.vi};c.prototype.Tn=function(a){a=parseInt(a,10);0===a&&(a=this.ca.Yf);a!==this.ip&&(this.za.Tn(a),this.mm());this.ip=a};c.prototype.tc=function(){return this.ip};c.prototype.map=function(){return this.ge};c.prototype.kH=function(a){var b=a.rasterTiles;if(!b)return q.resolve();var d={},c;for(c in b){var e=
b[c];if(e){var f={standard:/^standardTile/,"hybrid-overlay":/^hybridTile/,satellite:/^satelliteTile/};e=e.tileSources;for(var h=0,m=e.length;h<m;h++){var l=e[h],k=l.name;!d[k]&&(d[k]=!0,k=f[k])&&(l=new g.GE(l,a.proxyPrefixes,a.withCredentials),this.na.kj(k,l))}}}return q.resolve()};c.prototype.iH=function(a){var b=a.madabaDomains;var d=a.proxyPrefixes;if(d){var c=[];for(var e=0,f=d.length;e<f;e++)c[e]=d[e]+b[e%b.length]}else c=b;b=this.na;a=new g.hE({zn:c,Ww:"md/v1/",withCredentials:a.withCredentials});
b.kj(/.*/,a);return q.resolve()};c.prototype.qz=function(a){var b=this;return this.kH(a).then(function(){return b.iH(a)})};c.prototype.BG=function(){this.Ho=new U;return(new n).load(this.na,this.Ho).then(function(a){S.Zf(a.pq);S.Zf(a.oq);S.Zf(a.Df);S.Zf(V.qs);S.Zf(V.ah);S.Zf(V.ks);S.Zf(V.fs);return a})};c.prototype.gJ=function(){this.ge.he.Da("tile-created",function(a){var b=[];F.OD.forEach(function(d){if(a.kR(d)&&!a.lR(d)){var c=new q(function(b){a.once(d+"-dependency-ready",b);a.F(d).catch(b)});
b.push(c)}},this);var d=q.all(b),c=new q(function(b,d){a.qJ=d}),e=this;q.race([d,c]).then(function(){var b=new u,d=a.Jb.Ii(),c=d.width(),f=d.height();b.x=d.min()[0]+.5*c;b.y=d.min()[1]+.5*f;b.width=c;b.height=f;b.dD();b.$C();b.ax(u.Hj.ts);e.Ba.eg(b);e.Xb.eg(b);a.Po=b})},this);this.ge.he.Da("tile-destroyed",function(a){a.qJ();a.Po&&(this.Ba.mg(a.Po),this.Xb.mg(a.Po),a.Po=null)},this)};c.prototype.fH=function(){this.Bc=new H.ZD(this.na,this.Ho)};c.prototype.jH=function(a){this.ca=a;this.ec=new d(a);
var c=X();this.RJ?(this.xp=new L(1,c,a),this.Xv=new L(1,c,a)):this.Xv=this.xp=new L(0,c,a);this.fH();this.nV=new b(z.iw);this.ge=new A(this.nV);this.V=new e(Date.now());this.Ba=new f(this.ca,this.Xv,this.V);this.Xb=new f(this.ca,this.xp,this.V);this.gJ();return q.all([this.Ba.Cb(),this.Xb.Cb()])};c.prototype.oH=function(){this.Co=z.SA;this.Zl=z.RA;this.Lt=this.Co*this.Zl;this.wg=x.l.u(128,128);this.C=C.create(this.wg[0],this.wg[1],this.Lt,null,this.My);this.Qz=new h(this);this.Qz.Cb();if(!this.C)return q.reject("Could not create WebGL Context");
this.C.tw=this.C.getExtension("KHR_parallel_shader_compile");var b=new Q(this.C,512,512,16,1);this.Ja=new P(this.na,this.ca,b);this.uA=new a(this.na,this.C,this.ca,this.Bc,this.ec,this.Ba,this.Xb,this.Ja,this.V);this.za=this.uA.TO();this.za.al(this.rf);this.ge.PN(this.za);this.Ba.Da("labels-updated",this.za.Zb,this.za);this.Xb.Da("labels-updated",this.za.Zb,this.za);this.V.Da("alpha-updated",this.za.Zb,this.za);C.Da("context-lost",this.tk,this);C.Da("context-restored",this.uk,this);return this};c.prototype.LB=
function(a,b){b=b||{};if("object"!==typeof a)return b.reason="Parameter 1 is not an object",!1;var d=a.madabaDomains;if(!d)return b.reason="Expecting config.madabaDomains to be defined",!1;if(!Array.isArray(d))return b.reason="Expecting config.madabaDomains to be an array of strings",!1;for(var c=0,e=d.length;c<e;c++)if("string"!==typeof d[c])return b.reason="Expecting config.madabaDomains["+c+"] to be a string",!1;if(a=a.proxyPrefixes){if(!Array.isArray(a))return b.reason="Expecting config.proxyPrefixes to be an array of strings",
!1;c=0;for(e=a.length;c<e;c++)if("string"!==typeof a[c])return b.reason="Expecting config.proxyPrefixes["+c+"] to be a string",!1}return!0};c.prototype.DV=function(a){if(this.LB(a)){this.na.Ru();this.ot=a;var b=this;this.qz(a).then(function(){b.jA();b.pA()})}};c.prototype.jA=function(){var a=this.ot.accessKey;a&&this.na.Pg(a)};c.prototype.pA=function(){this.Tn(this.ot.tileGroup||0)};c.prototype.Cb=function(a){var b={};if(!this.LB(a,b))return q.reject(b.reason);this.ot=a;t.qj();b=this.qz(a).then(this.jA.bind(this)).then(function(){this.na.Da("invalid-access-key",
function(){this.W("invalid-access-key")},this)}.bind(this)).then(this.BG.bind(this)).then(this.jH.bind(this)).then(function(){"boolean"!==typeof a.animate||a.animate||this.V.yk()}.bind(this)).then(this.oH.bind(this));return b=b.then(function(){this.ZC(z.gP,z.Mi,z.Li);this.Qh(z.gv);this.$k(z.dv,z.hv);this.pA()}.bind(this)).then(function(){this.Qo=!1;t.fl();return this}.bind(this))};c.prototype.fT=function(){this.W("fallback","MAX_RESOLUTION_REACHED")};c.prototype.Gt=function(a){if(this.wg[0]!==a[0]||
this.wg[1]!==a[1])C.resize(this.C,a[0],a[1],this.Lt),this.wg=x.l.clone(a),this.za.Zb()};c.prototype.TR=function(a){if("object"===typeof a)for(var b in this.gz)a[b]=this.gz[b];return this.Qo};c.prototype.vD=function(){switch(this.rf){case F.md.ji:case F.md.xl:return!0;default:return!1}};c.prototype.Xp=function(){return this.Ba?this.Ba.Xp():[]};c.prototype.gA=function(a){for(var b=this.za.xq(),d=0,c=b.length;d<c;d++){var e=b[d];if(e&&e.jq())return a["map-layer-loading"]=e.type(),!0}a["map-layer-loading"]=
"none";return!1};c.prototype.uF=function(a){var b={};!a.ux(b)||t.sn(b)||this.Ba.Tr(b)||this.Xb.Tr(b)||this.V.GB(b)||this.gA(b)||this.ge.he.sn()||!this.Do.Kk()||this.Pf?this.Qo=!1:(this.Qo||this.W("fully-rendered",b),this.Qo=!0);this.gz=b};c.prototype.CJ=function(a,b){a.FV(this.hm,b);if(0!==a.aw()||0!==a.Xr())this.ve(),this.Sp();this.hm.ux()||this.za.Zb();this.hm=a.clone();this.wg=b.slice()};c.prototype.update=function(a,b,d,c){var e=Date.now();this.Gt(b);this.CJ(a,b);t.Hf.update();this.Pf||(this.C.isContextLost()?
(this.za.Ka(),this.Ja.Ka(),this.Pf=!0,t.clear()):(this.V.update(e),this.ge.update(a,b),this.ec.update(a),this.Ja.update(a),d="boolean"===typeof d?d:!0,this.Ba.update(a,b,d,"boolean"===typeof c?c:!0),this.Xb.update(a,b,d,!1),this.za.update(a,b),N.kv(),t.update(e),this.uF(a)))};c.prototype.vj=function(){return S.Ef(this.ge.he.vj())};c.prototype.wF=function(){var a=a||{};return!t.sn(a)&&!this.Ba.Tr(a)&&!this.Xb.Tr(a)&&!this.V.GB(a)&&!this.gA(a)};c.prototype.nt=function(){this.Ba.vr();this.Xb.vr();this.wF()&&
this.W("fully-loaded")};c.prototype.TI=function(){var a=new q(function(a){t.Da("loop",this.nt,this);this.once("fully-loaded",function(){q.timeout(0).then(function(){t.va("loop",this.nt,this);a()}.bind(this))},this)}.bind(this)),b=this.OR().catch(function(a){this.va("fully-loaded",null,this);t.va("loop",this.nt,this);return q.reject(a)}.bind(this));return q.all([a,b])};c.prototype.sG=function(){this.Ne||(this.Ne=new u,this.Ne.x=.5,this.Ne.y=.5,this.Ne.width=3,this.Ne.height=1,this.Ne.$C(),this.Ne.dD(),
this.Ne.ax(u.Hj.ts));q.all([this.Ba.eg(this.Ne),this.Xb.eg(this.Ne)])};c.prototype.yG=function(){q.all([this.Ba.mg(this.Ne),this.Xb.mg(this.Ne)])};c.prototype.GG=function(a,b,d,c){this.ec.update(a);this.Ja.update(a);this.Ba.ve();this.Xb.ve();this.Ba.update(a,b,d,c);this.Xb.update(a,b,d,!1);return q.all([this.Ba.Ix(),this.Xb.Ix()])};c.prototype.PO=function(a,b){var d=this.C,c=new I(d,a,b);c.rb();c.bind().data(null,d.RGBA,d.RGBA).yd(d.LINEAR).xd(d.LINEAR).A();var e=new J(d);e.rb();e.bind().Fu(a,b);
a=new v(d);a.bind().Lm(c.Ec()).mD(e.Ec()).A();e.A();a.once("released",e.release,e);a.once("released",c.release,c);a.Ad=c;return a.Uf()};c.prototype.wC=function(a,b,d,c){this.sG();return this.TI().then(function(){return this.GG(a,b,d,c)}.bind(this))};c.prototype.zo=function(a){this.yG();t.clear();this.ge.he.reset();this.Ba.vr();this.Xb.vr();N.kv();t.clear();a&&this.V.Ak(Date.now());t.fl();this.Ba.count();this.Xb.count();return q.resolve()};c.prototype.Sq=function(a,b,d,c,e,f,g,h,m,l){l=l||1;this.Gt(d);
this.Qg(c,l);c=new G(a);b=new B(b,g);b.reset(d,c,f||a.z);h="boolean"===typeof h?h:!0;m="boolean"===typeof m?m:!0;var k=this.V.Of;this.V.yk();t.qj();return this.eF(c,b,d,e,h,m).catch(function(a){var b={Ow:a};b.renderingFailure=b.Ow;console.error(a);return this.zo(k).catch(function(a){b.Qu=a;b.cleanupFailure=b.Qu}).then(function(){return q.reject(b)})}.bind(this)).then(function(a){return this.zo(k).catch(function(b){a.Qu=b;a.cleanupFailure=a.Qu}).then(function(){return a})}.bind(this))};c.prototype.eF=
function(a,b,d,c,e,f){this.Zi=Date.now();this.ec.update(b);this.Ja.update(b);var g=a.Jb,h=z.yO;a=[];for(var m,l=1<<g.z,k=g.x-h,n=g.x+h;k<=n;k++)for(var p=k,r=g.y-h,y=g.y+h;r<=y;r++)0>r||r>=l||(m=new E(p,r,g.z,0),a.push(m.gC()));g=0;for(h=a.length;g<h;g++)m=a[g],m=new G(m),this.ge.he.SR(m);return this.wC(b,d,e,f).then(function(){this.ij=Date.now();c&&c.bind();this.za.update(b,d);c&&c.A();t.clear();return q.resolve({Zi:this.Zi,ij:this.ij,Nw:Date.now()})}.bind(this))};c.prototype.cT=function(a,b,d,c){var e=
this;this.Zi=Date.now();d.map(function(a){e.Ba.eg(a)});t.qj();this.Gt(b);this.ge.update(a,b);this.ec.update(a);this.Ja.update(a);return this.wC(a,b,!0,!0).then(function(){this.ij=Date.now();c&&c.bind();e.za.update(a,b);c&&c.A();d.forEach(function(a){e.Ba.mg(a)});e.zo();var f={};f={Zi:this.Zi,ij:this.ij,Nw:Date.now()};f={loadingStartTime:f.Zi,renderingStartTime:f.ij,renderingEndTime:f.Nw};return q.resolve(f)}.bind(this)).catch(function(a){e.zo();return q.reject(a)})};c.prototype.OR=function(){var a=
this.ge.he.vj();a=S.Ef(a);return q.all(a.map(function(a){return a.F()}))};c.prototype.Zw=function(a){t.qj();return q.all([this.Ba.fg(a),this.Xb.fg(a)]).then(t.fl)};c.prototype.mm=function(){var a=this.V.Of;this.V.yk();this.za.zp();var b=this;this.ge.he.once("tile-created",function(){t.Hf.qa(function(){b.za.tp()})});this.ge.he.reset();this.ve();this.Sp();a&&this.V.Ak(Date.now())};c.prototype.Qh=function(a){return this.ft=this.ft.then(function(){var b=a||z.gv,d=this.Xa().filter(this.za.BR,this.za),
c=d.map(function(a){return this.V.xf(a,z.Dx)},this);return q.all(c).then(function(){this.za.Qh(b);this.mm()}.bind(this)).then(function(){var a=d.map(function(a){return this.V.show(a,z.Cx)},this);return q.all(a)}.bind(this))}.bind(this)).catch(function(a){console.log(a)})};c.prototype.$k=function(a,b){a=a||z.dv;b=b||z.hv;this.za.$k(a,b);this.mm()};c.prototype.al=function(a){this.rf!==a&&(this.rf=a,this.za.al(this.rf),this.W("zoom-support-did-change",this.vD()))};c.prototype.ET=function(a){return this.Qn({mode:a,
usePOI:!0})};c.prototype.Zq=function(a){this.Ba&&this.Ba.Zq({Im:a&&a.categoryInclude,Ou:a&&a.categoryExclude,bC:a&&a.muidInclude,aC:a&&a.muidExclude})};c.prototype.Qn=function(a){if("poiFilter"in a){var b=a.poiFilter||{};b={Im:b.includes,Ou:b.excludes};this.Ba.Zq(b);a.usePOI=!(Array.isArray(b.Im)&&0===b.Im.length)}return this.Do=this.Do.then(function(){var b=!1,d=this.Bi;"tint"in a&&(d=a.tint,b=this.Bi!==d);var c=!1,e=this.vi;"emphasis"in a&&(e=a.emphasis,c=this.vi!==e);b=b||c;var f=z.Dx;c=this.Xa();
var g=c.map(function(a){return a.type}),h="mode"in a?a.mode:this.Py,m="usePOI"in a?a.usePOI:this.Qy,l=F.zC(this.rf,h,!m),k=l.Xa,n=l.style;l=n!==this.At;!l||"standard"!==n&&"standard"!==this.At||(f=0);this.Qy=m;this.Py=h;h=[];var p=[],r=[];m=0;for(var t=k.length;m<t;m++){var G=k[m];-1===g.indexOf(G)&&this.uA.has(G)&&p.push(G)}k.push(F.dc);m=0;for(t=c.length;m<t;m++)g=c[m],-1===k.indexOf(g.type)?h.push(g):(b||l&&this.za.CR(g))&&r.push(g);var y=this;b=h.map(function(a){return y.V.xf(a,f).then(function(){return y.za.Vk(a)})});
c=r.map(function(a){return y.V.xf(a,f)});k=[];k.push.apply(k,c);k.push.apply(k,b);return q.all(k).then(function(){return y.ZC(n,d,e)}).then(function(){r.forEach(function(a){y.V.show(a,f)});return q.all(p.map(function(a){return y.za.nh(a).then(function(a){y.V.th(a);y.V.show(a,f)})}))}).then(function(){return y})}.bind(this))};c.prototype.Xa=function(){return this.za.Xa.apply(this.za,arguments)};c.prototype.gt=function(a){this.V.th(a);this.V.show(a,z.Cx);this.W("layer-added",a);return a};c.prototype.yH=
function(a){this.W("layer-removed",a);return a};c.prototype.nh=function(){return this.za.nh.apply(this.za,arguments).then(this.gt.bind(this))};c.prototype.Vk=function(){return this.za.Vk.apply(this.za,arguments).then(this.yH.bind(this))};c.prototype.insertBefore=function(){return this.za.insertBefore.apply(this.za,arguments).then(this.gt.bind(this))};c.prototype.Mv=function(){return this.za.Mv.apply(this.za,arguments).then(this.gt.bind(this))};c.prototype.WO=function(a,b){b=new W(this.C,a,b);a=new y(b,
a);return new K(this.C,a,b)};c.prototype.info=function(){var a={QR:this.Ho?this.Ho.nn:"N/A (JSON requested)",fV:M};a.madabaProtoVersion=a.QR;a.syrupProtoVersion=a.fV;this.ca&&(a.Ok=this.ca.Ok,a.Yf=this.ca.Yf,a.madabaVersion=a.Ok,a.defaultTileGroupIdentifier=a.Yf);return a};c.prototype.zB=function(){return this.Ja};c.prototype.Ak=function(){this.V.Ak(Date.now())};c.prototype.yk=function(){this.V.yk()};c.prototype.tk=function(a){a===this.C&&(this.Pf||this.update(this.hm,this.wg))};c.prototype.uk=function(a){if(a===
this.C){a.canvas.style.opacity=.8;this.Ja.Wk();var b=this.za.Wk(),d,c=function(){var b=Date.now();t.Hf.update();a.isContextLost()||(t.update(b),d=setTimeout(c))};t.clear();c();b.then(function(){a.canvas.style.opacity="";clearTimeout(d);a.isContextLost()||(this.Pf=!1,this.Sp(),this.update(this.hm,this.wg))}.bind(this))}};c.prototype.Pa=function(){this.xp.Pa();this.Xv.Pa();this.Qz.Pa();C.va("context-lost",null,this);C.va("context-restored",null,this);C.Pa(this.C)};D.ka(c.prototype);c.prototype.init=
c.prototype.Cb;c.prototype.destroy=c.prototype.Pa;c.prototype.updateNetworkConfiguration=c.prototype.DV;c.prototype.map=c.prototype.map;c.prototype.element=c.prototype.element;c.prototype.setPixelRatio=c.prototype.mj;c.prototype.setLanguage=c.prototype.Qh;c.prototype.setLocationInfo=c.prototype.$k;c.prototype.setDeterministicCollisions=c.prototype.Zw;c.prototype.setDisplayOptions=c.prototype.Qn;c.prototype.setPOIFilter=c.prototype.Zq;c.prototype.forceRerender=c.prototype.Sp;c.prototype.mapFullyRendered=
c.prototype.TR;c.prototype.supportsNonIntegralZoomLevels=c.prototype.vD;c.prototype.update=c.prototype.update;c.prototype.layers=c.prototype.Xa;c.prototype.addLayer=c.prototype.nh;c.prototype.removeLayer=c.prototype.Vk;c.prototype.insertBefore=c.prototype.insertBefore;c.prototype.insertAfter=c.prototype.Mv;c.prototype.createWebGLLayer=c.prototype.WO;c.prototype.getMapFeatureRegions=c.prototype.Xp;c.prototype.getVisiblePOIRegions=c.prototype.Xp;c.prototype.DrawPasses=O;m.ka(c);p.ka(c);return c});u(217,
0,function(){function c(c,e,b,a){this.Ry=c;this.offset=e;this.size=b;this.next=a;this.Uv=this.xv=!0}function l(g,e){this.C=g;this.data={};var b=g.getParameter(g.MAX_TEXTURE_SIZE);e?(e=q.kB(e),this.width=e[0],this.height=e[1]):this.height=this.width=b;this.kh=new r(g,this.width,this.height);this.kh.bind().data(null,g.RGBA).yd(r.NEAREST).xd(r.NEAREST).A();this.sV=this.width*this.height;g=new c(this,0,this.sV,null);this.Lo=[g];this.Sz(g)}for(var r=k(124),q=k(5),n=new Uint8Array(32384),h=0;32384>h;h++)n[h]=
255;c.prototype.Ec=function(){return this.Ry.Ec()};c.split=function(g,e){var b=new c(g.Ry,g.offset+e,g.size-e,g.next);g.next=b;g.size=e;return[g,b]};c.bS=function(c){var e=c;for(c=c.next;c&&c.xv;)c.Uv=!1,e.size+=c.size,c=c.next;e.next=c};l.prototype.xv=function(c){this.at(c)};l.prototype.get=function(){};l.prototype.YI=function(c,e,b){var a=this.C;b=b||c.byteLength/4;var d=Math.floor(e/this.width);e%=this.width;var f=this.width-e;if(f>=b)this.kh.bind().$n(new Uint8Array(c.buffer,0,c.byteLength),a.RGBA,
e,d,b,1).A();else{var g=new Uint8Array(c.buffer,0,4*f);this.kh.bind().$n(g,a.RGBA,e,d,f,1);d++;e=0;g=f;b-=f;f=Math.floor(b/this.width);if(0<f){var h=this.width*f,l=new Uint8Array(c.buffer,4*g,4*f*this.width);this.kh.$n(l,a.RGBA,e,d,this.width,f);b-=h;g+=h;d+=f}0!==b?(c=new Uint8Array(c.buffer,4*g,4*b),this.kh.$n(c,a.RGBA,e,d,b,1).A()):this.kh.A()}};l.prototype.GJ=function(){var g=this.Lo;this.Lo=[];var e;var b=0;for(e=g.length;b<e;b++){var a=g[b];a.Uv&&c.bS(a)}b=0;for(e=g.length;b<e;b++)a=g[b],a.Uv&&
this.Lo.push(a)};l.prototype.Sz=function(c){for(var e=c.size,b=0;0<e;){var a=Math.min(e,8096);this.YI(n,c.offset+b,a);b+=a;e-=a}};l.prototype.at=function(c){c.xv=!0;this.Lo.push(c);this.GJ();this.Sz(c)};l.prototype.xa=function(){return this.kh};l.prototype.Ec=function(){return this.kh.Ec()};return l});u(225,0,function(){function c(c){this.na=c}var l=k(109),r=k(22);c.Jg=function(c){var l=c.Ae,h=c.VB,g=c.XA,e=c.scale,b=c.Eu;c=c.Vv;var a={Uq:"arrow",Ae:l,VB:h,XA:g,scale:e,Eu:b,Vv:c,Qc:0},d="arrow?";
l&&(a.Ae=l,d+="subtype="+encodeURIComponent(l));d+="&maneuverType="+h+"&drivingSide="+g+"&scale="+e;b&&(a.Eu=b,d+="&arrowFill="+b);c&&(a.Vv=c,d+="&junctionFill="+c);return{url:d,data:a}};c.prototype.Np=function(c,k){var h=this.na;if(h.has(c))return h.get(c);var g=h.get(c,l.Xg,k,l.kf);r.ka(g).wd().once("released",function(){g.Rv()&&g.abort("loading-aborted");l.remove(c)});return g.Uf()};c.prototype.fetch=function(l){l=c.Jg(l);return this.Np(l.url,l.data)};return c});u(226,0,function(){var c=k(98).version,
l=k(98).build,r=k(36),q=k(216),n=k(211),h=k(109),g=k(19),e=k(225),b=k(145),a=k(121),d=k(3),f=k(5);k(108);var m=k(15),p=k(12),t=k(0),u=k(104),C=k(119);k(124);var I=k(21),v=k(13),J={fy:400,ey:500,ny:503,EE:504};return function(k){function w(a){return"standard"===a?t.hw:"satellite"===a?t.gw:"hybrid"===a?Math.min(t.hw,t.gw):0}function y(a){return"standard"===a?t.mw:"satellite"===a?t.lw:"hybrid"===a?Math.max(t.mw,t.lw):0}function H(a){return a&&"object"===typeof a&&2===a.length&&"number"===typeof a[0]&&
"number"===typeof a[1]}function F(a){return void 0===a||"string"===typeof a&&2===a.length}function B(a){return v.reject({code:J.fy,reason:"Invalid request parameter: "+a})}function L(){return v.reject({code:J.ny,reason:"Service unavailable"})}function x(){this.xb=new q;this.fe=0;this.$z=!1}k.ei=function(a,b){return b?void 0!==a&&"string"===typeof a&&0!==a.length&&a.match(/^[a-zA-Z-]+$/):void 0===a||"string"===typeof a&&0!==a.length&&a.match(/^[a-zA-Z-]+$/)};k.ei.reject=B("'language' must be a valid language string or undefined");
k.validLanguage=k.ei;k.sl=function(a,b,d){return Number.isInteger(a)&&Number.isInteger(b)&&Number.isInteger(d)};k.sl.reject=B("'x', 'y', 'z' are not valid numbers");k.validXYZ=k.sl;k.$d=function(a){return 1===a||2===a||3===a};k.$d.reject=B("'scale' is not a number or should be 1, 2 or 3");k.validScale=k.$d;k.gi=function(a,b){return b?void 0!==a&&Number.isInteger(a)&&0<=a:void 0===a||Number.isInteger(a)&&0<=a};k.gi.reject=B("'tileGroup' should be a positive integer or undefined");k.validTileGroup=
k.gi;k.Kr=function(a){return Number.isInteger(a)};k.Kr.reject=B("'tileSetStyle' is not a number");k.validTileSetStyle=k.Kr;k.Jr=function(a){return 46===a||0===a};k.Jr.reject=B("'style' is not a number with value '0' (standard) or '46' (hybrid)");k.validStyle=k.Jr;k.ol=function(a){return 1===a||6===a||7===a};k.ol.reject=B("'style' is not a number with value '1' (standard), '6' (hybrid) or '7' (satellite)");k.validIconStyle=k.ol;k.Lr=function(a){return 0===a||1===a||2===a};k.Lr.reject=B("'size' is not a number or should be 0, 1 or 2");
k.validTileSize=k.Lr;k.di=function(a){return void 0===a||Number.isInteger(a)&&-4<=a&&4>=a};k.di.reject=B("'size' is not a number or should be in the [-4, 4] range");k.validIconSize=k.di;k.ci=function(a){return Number.isInteger(a)};k.ci.reject=B("'id' is not a number");k.validID=k.ci;k.Mr=function(a){return"string"===typeof a&&("standard"===a||"road"===a||"poi"===a||"building"===a)};k.Mr.reject=B("'type' is not a number with value 'standard', 'road', 'poi' or 'building'");k.validVTileType=k.Mr;k.bi=
function(a){return F(a)};k.bi.reject=B("'countryCode' must be a string of 2 chars");k.validCountryCode=k.bi;k.fi=function(a){return F(a)};k.fi.reject=B("'regionCode' must be a string of 2 chars");k.validRegionCode=k.fi;k.Fr=function(a){return"boolean"===typeof a};k.Fr.reject=B("'labels' is not a boolean");k.validLabels=k.Fr;k.rl=function(a){return"boolean"===typeof a};k.rl.reject=B("'usePOI' is not a boolean");k.validUsePOI=k.rl;k.ql=function(a){return"string"===typeof a&&("dark"===a||"light"===a)};
k.ql.reject=B("'tint' is not a string with value 'dark' or 'light'");k.validTint=k.ql;k.nl=function(a){return"string"===typeof a&&("standard"===a||"muted"===a)};k.nl.reject=B("'emphasis' is not a string with value 'standard' or 'muted'");k.validEmphasis=k.nl;k.Hr=function(a){return void 0===a||"transit"===a||"road"===a};k.Hr.reject=B("'subtype' should be undefined, 'transit' or 'road'");k.validShieldSubtype=k.Hr;k.Dr=function(a){return"poi"===a||"named"===a||"transit"===a};k.Dr.reject=B("'subtype' should be undefined, 'poi', 'named' or 'transit'");
k.validIconSubtype=k.Dr;k.Cr=function(a){return"string"===typeof a&&0<a.length};k.Cr.reject=B("'name' should be a non-empty string");k.validIconName=k.Cr;k.ai=function(a){return void 0===a||"string"===typeof a&&6===a.length&&a.match(/[0-9A-Fa-f]{6}$/)};k.ai.reject=B("'color' should be undefined or 6 Hexadecimal digits string");k.validColor=k.ai;k.Nr=function(a){return void 0===a||"string"===typeof a&&a.length};k.Nr.reject=B("'vendorKey' should be undefined or a string");k.validVendorKey=k.Nr;k.Ar=
function(a){return"string"===typeof a};k.Ar.reject=B("'attributes' should be a string");k.validAttributes=k.Ar;k.Pr=function(a){return void 0===a||Number.isInteger(a)&&0<=a&&a<=t.Qk};k.Pr.reject=B("'zoom' should be undefined or a number in the range [0, 21]");k.validZoom=k.Pr;k.Br=function(a){return H(a)&&0<=a[0]&&1>=a[0]&&0<=a[1]&&1>=a[1]};k.Br.reject=B("'center' should be an array of 2 numbers");k.validCenter=k.Br;k.Or=function(a,b){var d=H(a)&&a[0]>=t.Bq&&a[1]>=t.Bq;return b?d:d&&a[0]<=t.zq&&a[1]<=
t.zq};k.Or.reject=B("'viewport' should be an array of 2 numbers in the range ["+t.Bq+", "+t.zq+"]");k.validViewport=k.Or;var A=["standard","hybrid","satellite"];k.Gr=function(a){return-1!==A.indexOf(a)};k.Gr.reject=B("'mapMode' should have one of the following values: 'standard', 'hybrid', 'satellite'");k.validMapMode=k.Gr;k.Ir=function(a,b){return"number"!==typeof b?!1:b>=y(a)&&b<=w(a)};k.Ir.reject=function(a){return B("'z' for "+a+" mode should be number in the range ["+y(a)+", "+w(a)+"]")};k.validSnapshotZoom=
k.Ir;k.FD=function(a){return"object"===typeof a&&"number"===typeof a.x&&"number"===typeof a.y&&"number"===typeof a.width&&0<a.width&&"number"===typeof a.height&&0<a.height&&"number"===typeof a.xOffset&&"number"===typeof a.yOffset};k.validLabelRegion=k.FD;k.Er=function(a){return Array.isArray(a)?a.filter(k.FD).length===a.length:!1};k.Er.reject=B("'labelRegions' parameter is not an array or labelRegion description is invalid");k.validLabelRegions=k.Er;x.prototype.Pa=function(){switch(this.fe){case 0:return v.reject("Cannot destroy an uninitialized service");
case 1:return v.reject("Cannot destroy an initializing service");case 3:return v.reject("Cannot destroy an already destroyed service")}this.fe=3;return v.timeout(0).then(function(){this.xb.Pa()}.bind(this))};x.prototype.EH=function(a){return v.resolve(a)};x.prototype.eH=function(){var b=this.xb.m(),d=C.tb.Bb(b,"shaders/texture-saver.vert","shaders/texture-saver.frag");b=a.Ri(b);return v.all([d,b]).then(function(){}.bind(this))};x.prototype.pH=function(a){if(2===this.fe)return v.reject("Service already initialized");
if(1===this.fe)return v.reject("Service already initializing");this.fe=1;a.IC&&this.xb.Yd().IT(a.IC);var d=this;return this.EH(a).then(function(){return d.xb.Cb(a)}).then(function(){return d.xb.Zw(!0)}).then(function(){return d.eH()}).then(function(){d.Ja=d.xb.zB();d.jJ=["transit","road"];d.KW=d.jJ.map(function(a){return"'"+a+"'"}).join(", ");d.hA=f.Ef(d.xb.ca.Df);d.sJ=d.hA.map(function(a){return"'"+a+"'"}).join(", ");return d}).then(function(){d.fe=2;return d}).then(function(){var a=d.xb.Yd();d.nF=
new e(a);d.Kt=new b(a)})};x.prototype.yg=function(a){I.qj();a=a.catch(function(a){return"object"===typeof a&&a.code&&a.reason?v.reject(a):v.reject({code:J.ey,reason:a})});a.catch(function(){}).then(I.fl);return a};x.prototype.Cb=function(a){var b=null,d=["vectorOrigins"],c=a.disableCaching;if("boolean"!==typeof c&&"undefined"!==typeof c)return v.reject("Configuration error: disableCaching should be a boolean or undefined");d.push("madabaDomains");for(var e=0,f=d.length;e<f;e++){var g=d[e],h=a[g];
if("undefined"!==typeof h){b=0;for(d=h.length;b<d;b++)if("string"!==typeof h[b])return v.reject("Configuration error: "+g+"["+b+"] is not a string");b={animate:!1,disableCaching:c};var k;c=h.map(function(a){a=a.split("//");k=a[0];return a[1]});c={satellite:{tileSources:[{name:"satellite",protocol:k,domains:c,path:"/md/v1/stile?x={{x}}&y={{y}}&z={{z}}&v={{v}}"}]}};b.madabaDomains=h;b.rasterTiles=c;break}}if(!b)return v.reject("'madabaDomains' not provided for Service initialization.");if(a=a.requestTimeout){if("number"!==
typeof a||0>=a)return v.reject("'requestTimeout' parameter should be a positive number");b.IC=a}I.qj();var m=this;return this.pH(b).then(function(){I.fl();return m})};x.prototype.$H=function(a){var b=this.xb,c=a.language,e=a.Re,f=a.$e,h=a.tc,k=a.Hk,l={mode:a.pn,usePOI:a.wr,tint:a.Kb,emphasis:a.Tb},n=a.oV,p=d.l.u(n,n),q=new g(a.key.x,a.key.y,a.key.z),r=a.scale;a=1*r*n;var t=m.md.ji;k||(t=m.md.xl);b.al(t);b.Tn(h);b.Qh(c);b.$k(e,f);return this.Ez(function(a){return b.Qn(l).then(function(){return b.Sq(q,
n,p,r,a,q.z,null,!0,!0,1)})},a,a)};x.prototype.ZH=function(a){var b=this.xb,d=a.language,c=a.Re,e=a.$e,f=a.scale,g=a.viewport,h=1*f*g[0],k=1*f*g[1],l={mode:a.pn,usePOI:a.wr,tint:a.Kb,emphasis:a.Tb},q=a.Nk.map(function(a){var b=new p;b.ax(p.Hj.Sx);b.x=a.x;b.y=a.y;b.width=a.width;b.height=a.height;b.xOffset=a.KV;b.yOffset=a.LV;return b}),r=a.tc,t=new n(a.width/a.height);t.ex([a.ib[0],1-a.ib[1],0]);t.gx(a.z);t.update(g);b.al(m.md.As);b.Qg(f,1);b.Qh(d);b.Tn(r);b.$k(c,e);return this.Ez(function(a){return b.Qn(l).then(function(){return b.cT(t,
g,q,a)})},h,k)};x.prototype.Ez=function(a,b,d){var c=b/1;var e=d/1;var f=this.xb,g=this.xb.PO(b,d).rb();a=a(g).then(function(a){var b=f.m();b.flush();g.bind();var d=new Uint8Array(c*e*4);b.readPixels(0,0,c,e,b.RGBA,b.UNSIGNED_BYTE,d);g.A();b={data:d,width:c,height:e};b.times={renderingStartTime:a.ij,loadingStartTime:a.Zi,renderingEndTime:a.Nw};return b}.bind(this)).catch(function(a){return"object"===typeof a&&a.Ow?v.reject(a.Ow):v.reject(a)});a.then(g.release.bind(g));return a};x.prototype.ca=function(){if(2!==
this.fe)return L();var a=this.xb.Yd();return this.yg(this.xb.ca.fetch(a))};x.prototype.IV=function(a){if(2!==this.fe)return L();if("object"!==typeof a)return B("parameter 0 is not an object");var b=a.x,d=a.y,c=a.z;if(!k.sl(b,d,c))return k.sl.reject;var e=a.language;if(!k.ei(e,!1))return k.ei.reject;var f=a.scale;if(!k.$d(f))return k.$d.reject;var h=a.tileGroup;if(!k.gi(h,!1))return k.gi.reject;var m=a.tileSetStyle;if(!k.Kr(m))return k.Kr.reject;if(-1===this.hA.indexOf(m))return B("'tileSetStyle' should have on of the following value "+
this.sJ);var l=a.type;if(!k.Mr(l))return k.Mr.reject;var n=a.countryCode;a=a.regionCode;if(!k.bi(n))return k.bi.reject;if(!k.fi(a))return k.fi.reject;b={key:new g(b,d,c),scale:f,Zd:m,tc:h||this.xb.ca.Yf,language:e,Re:n,$e:a,Eh:!1};return this.yg(this.xb.Bc.fetch(b,l))};x.prototype.oa=function(a){if(2!==this.fe)return L();if("object"!==typeof a)return B("parameter 0 is not an object");var b=a.x,d=a.y,c=a.z;if(!k.sl(b,d,c))return k.sl.reject;var e=a.scale;if(!k.$d(e))return k.$d.reject;var f=a.size;
if(!k.Lr(f))return k.Lr.reject;f=128*Math.pow(2,f);var h=a.tileGroup;if(!k.gi(h,!1))return k.gi.reject;var m=a.style;if(!k.Jr(m))return k.Jr.reject;var l=a.labels;if(!k.Fr(l))return k.Fr.reject;var n=a.usePOI;if(!k.rl(n))return k.rl.reject;if(!l&&n)return B("incompatible 'labels === false' with 'usePOI === true'");var p=a.tint;if(!k.ql(p))return k.ql.reject;var q=a.emphasis;if(!k.nl(q))return k.nl.reject;var r=a.language;if(!k.ei(r,!1))return k.ei.reject;var t=a.countryCode;a=a.regionCode;if(!k.bi(t))return k.bi.reject;
if(!k.fi(a))return k.fi.reject;var u="";switch(m){case 0:u="standard";break;case 46:u="hybrid"}b={key:new g(b,d,c),pn:u,oV:f,wr:n,Hk:l,Kb:p,Tb:q,scale:e,tc:h||this.xb.ca.Yf,language:r,Re:t,$e:a};return this.yg(this.$H(b))};x.prototype.RT=function(a){if(2!==this.fe)return L();var b=a.center;if(!k.Br(b))return k.Br.reject;var d=a.labelRegions;if(!k.Er(d))return k.Er.reject;d=d.map(function(a){return{x:a.x,y:a.y,width:a.width,height:a.height,KV:a.xOffset,LV:a.yOffset}});var c=a.language;if(!k.ei(c,!0))return k.ei.reject;
var e=a.usePOI;if(!k.rl(e))return k.rl.reject;var f=a.scale;if(!k.$d(f))return k.$d.reject;var g=a.countryCode,h=a.regionCode;if(!k.bi(g))return k.bi.reject;if(!k.fi(h))return k.fi.reject;var m=a.mapMode;if(!k.Gr(m))return k.Gr.reject;var l=a.viewport;if(!k.Or(l,this.$z))return k.Or.reject;var n=a.z;if(!k.Ir(m,n))return k.Ir.reject(m);var p=a.tint;if(!k.ql(p))return k.ql.reject;var q=a.emphasis;if(!k.nl(q))return k.nl.reject;a=a.tileGroup;return k.gi(a,!0)?this.yg(this.ZH({ib:b,Nk:d,language:c,wr:e,
scale:f,pn:m,viewport:l,z:n,Kb:p,Tb:q,tc:a||this.xb.ca.Yf,Re:g,$e:h})):k.gi.reject};x.prototype.OT=function(a){if(2!==this.fe)return L();if("object"!==typeof a)return B("parameter 0 is not an object");var b=a.text;if("string"!==typeof b)return B("'text' is not a string");var d=a.id;if(!k.ci(d))return k.ci.reject;var c=a.size;if(!k.di(c))return k.di.reject;var e=a.scale;if(!k.$d(e))return k.$d.reject;var f=a.subtype;if(!k.Hr(f))return k.Hr.reject;var g=a.color;if(!k.ai(g))return k.ai.reject;a=a.vendorKey;
if(!k.Nr(a))return k.Nr.reject;var h=this.Kt.fetch({text:b,id:d,scale:e,color:g,Ae:f,HD:a,size:c,variant:0});h.rb();h.then(function(){h.release()});return this.yg(h)};x.prototype.aI=function(a,b){var d=a.style;if(!k.ol(d))return k.ol.reject;var c=a.zoom;if(!k.Pr(c))return k.Pr.reject;var e=a.attributes;if(!k.Ar(e))return k.Ar.reject;a=a.size;if(!k.di(a))return k.di.reject;b={style:d,scale:b,Kb:t.Mi,Tb:t.Li,Ae:"poi",zoom:c,attributes:e,Qc:0};a&&(b.size=a);return this.yg(this.Ja.fetch(b))};x.prototype.RH=
function(a,b){a=a.name;return k.Cr(a)?this.yg(this.Ja.fetch({scale:b,Kb:t.Mi,Tb:t.Li,Ae:"named",name:a,Qc:0})):k.Cr.reject};x.prototype.wJ=function(a,b){var d=a.cartoId;if("number"!==typeof d||!Number.isInteger(d))return B("'cartoId' should be a number");var c=a.transitType;if("number"!==typeof c||!Number.isInteger(c))return B("'transitType' should be a number");var e=a.style;if(!k.ol(e))return k.ol.reject;a=a.size;return k.di(a)?this.yg(this.Ja.fetch({style:e,scale:b,Kb:t.Mi,Tb:t.Li,size:a,Ae:"transit",
JA:d,zD:c,Qc:0})):k.di.reject};x.prototype.icon=function(a){if(2!==this.fe)return L();if("object"!==typeof a)return B("parameter 0 is not an object");var b=a.subtype;if(!k.Dr(b))return k.Dr.reject;var d=a.scale;return k.$d(d)?"poi"===b?this.aI(a,d):"named"===b?this.RH(a,d):this.wJ(a,d):k.$d.reject};x.prototype.aO=function(a){if(2!==this.fe)return L();if("object"!==typeof a)return B("parameter 0 is not an object");var b=a.subtype||"maneuver",d=a.maneuverType;if(!k.ci(d))return k.ci.reject;var c=a.drivingSide;
if(!k.ci(c))return k.ci.reject;var e=a.scale;if(!k.$d(e))return k.$d.reject;var f=a.arrowFill;if(!k.ai(f))return k.ai.reject;a=a.junctionFill;if(!k.ai(a))return k.ai.reject;var g=this.nF.fetch({Ae:b,VB:d,XA:c,scale:e,Eu:f,Vv:a});g.rb();g.then(function(){g.release()});return this.yg(g)};x.prototype.lP=function(){this.$z=!0};k.jD=I.qj;k.oD=I.fl;k.startDispatchQueueLoop=k.jD;k.stopDispatchQueueLoop=k.oD;x.prototype.destroy=x.prototype.Pa;x.prototype.init=x.prototype.Cb;x.prototype.manifest=x.prototype.ca;
x.prototype.vtile=x.prototype.IV;x.prototype.tile=x.prototype.oa;x.prototype.shield=x.prototype.OT;x.prototype.icon=x.prototype.icon;x.prototype.arrow=x.prototype.aO;x.prototype.snapshot=x.prototype.RT;x.prototype.enableSnapshotSuperSize=x.prototype.lP;k.bR=function(){return new x};k.info=Object.freeze({name:"Syrup",version:c,build:l,decoderVersion:r});k.info=k.info;k.getService=k.bR;k.LogLevels=u;k.ServiceErrors=J;k.ServiceErrors.INVALID_PARAMETER=J.fy;k.ServiceErrors.INTERNAL_ERROR=J.ey;k.ServiceErrors.SERVICE_UNINITIALIZED=
J.ny;k.ServiceErrors.RESOURCE_TIMEOUT=J.EE;k.Constants={maxZoomLevel:t.Qk,defaultTint:t.Mi,defaultEmphasis:t.Li,minStandardSnapshotZ:t.mw,maxStandardSnapshotZ:t.hw,minSatelliteSnapshotZ:t.lw,maxSatelliteSnapshotZ:t.gw,minSnapshotSize:t.Bq,maxSnapshotSize:t.zq,defaultResourceTimeoutThreshold:h.FE,defaultResourceTimeoutRetryCount:h.DE}}});u(227,0,function(){return function(c){c.Map=k(207);c.o=k(110);c.Thenable=k(13);c.ro=k(216);c.HE=k(109);c.uy=k(3);c.$V=k(141);c.YD=k(107);c.XE=k(117);c.aE=k(122);c.bE=
k(197);c.dE=k(124);c.$D=k(120);c.cE=k(119);c.gE=k(121);c.Ux=k(211);c.WE=k(185);c.SE=k(114);c.rg=k(19);c.iE=k(203);c.nE=k(15);c.mE=k(190);c.OE=k(189);c.ZE=k(205);c.YE=k(45);c.TD=k(21);c.jE=k(5);c.qE=k(11);c.oE=k(104);c.fW=k(108);c.Map=c.Map;c.Manifest=c.o;c.SyrupRenderer=c.ro;c.ResourceManager=c.HE;c.XMath=c.uy;c.FileAdapters=c.YD;c.WebGLContext=c.XE;c.GLFramebuffer=c.aE;c.GLRenderbuffer=c.bE;c.GLTexture=c.dE;c.GLBuffer=c.$D;c.GLSL=c.cE;c.Geometries=c.gE;c.Camera=c.Ux;c.ViewFactory=c.WE;c.TileSelector=
c.SE;c.TileKey=c.rg;c.HeaderAdapters=c.iE;c.LayerTypes=c.nE;c.LabelManager=c.mE;c.StyleManager=c.OE;c.WorkerHub=c.ZE;c.WorkerFactory=c.YE;c.DispatchQueue=c.TD;c.Helpers=c.jE;c.Messager=c.qE;c.LogLevels=c.oE;var l=c.Constants||{},r=k(0);l.minTileSize=r.We;l.maxTileSize=r.iw;l.baseTileSize=r.yp;Object.freeze(l);c.Constants=l}});u(230,0,function(){k(5).wT();var c={},l=k(13);Object.defineProperty(c,"Thenable",{get:function(){Object.defineProperty(c,"Thenable",{value:l});console.warn("Thenable is not recommended for use externally.");
return l},configurable:!0,enumerable:!0});Object.defineProperty(c,"Promise",{get:function(){Object.defineProperty(c,"Promise",{value:l});console.warn("Promise has been renamed to Thenable is not recommended for use externally.");return l},configurable:!0,enumerable:!0});c.Version=k(98).version;c.Build=k(98).build;k(226)(c);k(227)(c);return c});u(231,0,function(){function c(c){var h=c[this.key]>=this.threshold;return{uw:h,message:h?"":"must be greater than/equal to "+this.threshold+". Value: "+c[this.key]}}
function l(c){c.EXTENSIONS=c.EXTENSIONS.sort(function(a,b){return a.localeCompare(b)});c.standardDerivatives=-1!==c.EXTENSIONS.indexOf("OES_standard_derivatives");for(var h=!0,g={},e=0;e<q.length;e++){var b=q[e],a=b.ed.call(b,c);a.uw||(g[b.key]=a.message,h=!1)}h?c.status=r.qd:c.failures=g;return c}var r=k(95),q=[{key:"combinedTextureImageUnit",ed:function(c){var h=c[this.key]>this.threshold;return{uw:h,message:h?"":"must be greater than "+this.threshold+". Value: "+c[this.key]}},threshold:4},{key:"maxFragmentUniformVectors",
ed:c,threshold:64},{key:"maxRenderBufferSize",ed:c,threshold:4096},{key:"maxTextureImageUnits",ed:c,threshold:8},{key:"maxTextureSize",ed:c,threshold:4096},{key:"maxVaryingVectors",ed:c,threshold:8},{key:"maxVertexAttribs",ed:c,threshold:8},{key:"maxVertexTextureUnits",ed:c,threshold:4},{key:"maxVertexUniformVectors",ed:c,threshold:24},{key:"maxWidth",ed:c,threshold:4096},{key:"maxHeight",ed:c,threshold:4096},{key:"depthBits",ed:c,threshold:16},{key:"glslVersion",ed:c,threshold:1},{key:"fragmentHighfPrecisionFormat",
ed:c,threshold:23},{key:"vertexHighfPrecisionFormat",ed:c,threshold:23},{key:"standardDerivatives",ed:function(c){c=c[this.key];return{uw:c,message:c?"":"does not exist."}}}];return{rT:function(c){var h={status:r.Vc};c=document.createElement("canvas").getContext(c);h.gl=null!=c;h.webglContext=c;if(!h.gl)return h;h.combinedTextureImageUnit=c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS);h.maxFragmentUniformVectors=c.getParameter(c.MAX_FRAGMENT_UNIFORM_VECTORS);h.maxRenderBufferSize=c.getParameter(c.MAX_RENDERBUFFER_SIZE);
h.maxTextureImageUnits=c.getParameter(c.MAX_TEXTURE_IMAGE_UNITS);h.maxTextureSize=c.getParameter(c.MAX_TEXTURE_SIZE);h.maxVaryingVectors=c.getParameter(c.MAX_VARYING_VECTORS);h.maxVertexAttribs=c.getParameter(c.MAX_VERTEX_ATTRIBS);h.maxVertexTextureUnits=c.getParameter(c.MAX_VERTEX_TEXTURE_IMAGE_UNITS);h.maxVertexUniformVectors=c.getParameter(c.MAX_VERTEX_UNIFORM_VECTORS);var g=c.getParameter(c.MAX_VIEWPORT_DIMS);h.maxWidth=g[0];h.maxHeight=g[1];h.depthBits=c.getParameter(c.DEPTH_BITS);g=c.getParameter(c.SHADING_LANGUAGE_VERSION).replace("WebGL GLSL ES ",
"");h.glslVersion=parseFloat(g);g=c.getShaderPrecisionFormat(c.FRAGMENT_SHADER,c.HIGH_FLOAT);h.fragmentHighfPrecisionFormat=g.precision;g=c.getShaderPrecisionFormat(c.VERTEX_SHADER,c.HIGH_FLOAT);h.vertexHighfPrecisionFormat=g.precision;h.ALIASED_LINE_WIDTH_RANGE=c.getParameter(c.ALIASED_LINE_WIDTH_RANGE);h.COMPRESSED_TEXTURE_FORMATS=c.getParameter(c.COMPRESSED_TEXTURE_FORMATS);h.MAX_CUBE_MAP_TEXTURE_SIZE=c.getParameter(c.MAX_CUBE_MAP_TEXTURE_SIZE);h.RENDERER=c.getParameter(c.RENDERER);h.VENDOR=c.getParameter(c.VENDOR);
h.VERSION=c.getParameter(c.VERSION);h.EXTENSIONS=c.getSupportedExtensions()||[];return l(h)},d2:l}});u(232,0,function(){var c=k(96),l;"undefined"!==typeof STATIC_RESOURCES_ORIGINS_OVERRIDE&&(l=STATIC_RESOURCES_ORIGINS_OVERRIDE);var r=k(109),q=k(107);return{preload:function(k){"undefined"===typeof l&&(l=c.$Q());var h=c.eD(l[0]),g=k.Yd();k=new q.jf({origin:l[0],withCredentials:h});g.kj("spile.map",k);return g.get("spile.map",r.JSON).then(function(c){g.Ru();g.kj(/.*/,new q.pg({zn:l,withCredentials:h,
Ww:""},c))})},ur:function(c){c=c.Yd();c.Ru();c.reset()}}});u(233,0,function(){return{WS:function(c){return"tile?x="+c.x+"&y="+c.y+"&z="+c.z+"&style=0&type=standard&scale=1&size=1&lang=en&poi=1"},pn:"standard",wr:!0,mV:1*k(0).We,language:"en"}});u(234,0,function(){var c=k(19);c=[{key:new c(653,1581,12),Pk:19.5},{key:new c(654,1581,12),Pk:20},{key:new c(653,1582,12),Pk:17.02},{key:new c(654,1582,12),Pk:20.27}];Object.freeze(c);return c});u(235,0,function(){function c(a,d,e,g){if(0===d.length)return n.resolve(e);
var f=d.pop();return l(a,f.key,g).then(function(a){e.push({data:a.oC,width:b,height:b,key:f.key,Pk:f.Pk,Tq:a.Tq,vq:a.vq});return n.timeout(0)}).then(function(){return c(a,d,e,g)})}function l(a,c,f){var d=e.l.u(b,b);return a.Sq(c,b,d,1,f,c.z,null,!0,!0).then(function(c){var d=a.m();d.flush();f.bind();var e=new Uint8Array(b*b*4);d.readPixels(0,0,b,b,d.RGBA,d.UNSIGNED_BYTE,e);f.A();d=Math.floor(b/2);for(var g=4*b,h=new Uint8Array(b*b*4),k=0;k<d;k++)for(var m=0;m<g;m++){var l=k*g+m,n=(b-k-1)*g+m;h[l]=
e[n];h[n]=e[l]}return{oC:h,Tq:c.renderingEndTime-c.renderingStartTime,vq:c.renderingStartTime-c.loadingStartTime}})}var r=k(234),q=k(233),n=k(13),h=k(122),g=k(124),e=k(3),b=q.mV;return function(a){var d=a.m(),e=new h(d),k=new g(d,b,b);k.bind().data(null,d.RGBA,d.RGBA).yd(d.LINEAR).xd(d.LINEAR).A();e.bind().Lm(k.Ec()).A();return c(a,r.slice(),[],e)}});u(236,0,function(){var c=k(233),l=c.pn,r=c.language;return{Cb:function(c,k){return c.Cb(k).then(function(){return c.Zw(!0)}).then(function(){return c.ET(l)}).then(function(){c.Qh(r);
return c})}}});u(237,[],function(){return function(c,k){if(c.width!==c.width||k.height!==k.height)return null;var l=c.width,q=c.height;c=c.data;k=k.data;var n=l*q*4;l={width:l,height:q,data:new Uint8Array(n)};for(var h=q=0;h<n;h+=4){var g=Math.abs(.2126*c[h+0]+.7152*c[h+1]+.0722*c[h+2]-(.2126*k[h+0]+.7152*k[h+1]+.0722*k[h+2]));l.data[h+0]=g;l.data[h+1]=g;l.data[h+2]=g;l.data[h+3]=255;q+=g}l.rV=Math.round(q/10)/100;return l}});u(238,0,function(){function c(a,b,c){return a.get(e.WS(c),r.Xg,{Qc:c.x+
c.y}).then(l).then(function(a){var e=d(b,a),f=e.rV;var g=e.width;var h=e.height,k=e.data;e=document.createElement("canvas");e.width=g;e.height=h;var m=e.getContext("2d");g=new ImageData(Uint8ClampedArray.from(k),g,h);m.putImageData(g,0,0);g=e.toDataURL();a={totalGrayDiff:f,renderedTile:b,expectedTile:a,tileDiff:g};a.key=c.id;return a})}function l(a){var b=document.createElement("canvas"),c=a.width,d=a.height;b.width=c;b.height=d;b=b.getContext("2d");b.drawImage(a,0,0);return b.getImageData(0,0,c,
d)}var r=k(109),q=k(216),n=k(230),h=k(13),g=k(232),e=k(233),b=k(235),a=k(236),d=k(237),f=k(95),m=k(38);return function(d,k){var l={status:f.og,pass:!1,tileResults:null,syrupRenderer:null};m.kP();n.jD();var p={animate:!1,madabaDomains:[""]},r=new q(k);return g.preload(r).then(function(){return a.Cb(r,p)}).then(function(){l.webglContext=r.m();r.Qh(e.language);return b(r).then(function(a){for(var b=r.Yd(),d=[],e=0;e<a.length;e++){var g=a[e];d.push(c(b,g,g.key))}return h.all(d).then(function(b){l.tileResults=
b;for(var c=0,d=0,e=!0,g=0;g<b.length;g++)b[g].renderTime=a[g].Tq,b[g].loadTime=a[g].vq,b[g].maxGrayDiff=a[g].Pk,b[g].fidelityPass=b[g].totalGrayDiff<=b[g].maxGrayDiff,b[g].fidelityPass||(e=!1),1<=g&&(c+=a[g].Tq,d+=a[g].vq);l.averageRenderTime=c/(b.length-1);l.averageLoadTime=d/(b.length-1);l.renderTimePass=30>=l.averageRenderTime;l.fidelityPass=e;l.pass=l.fidelityPass;l.pass?(l.status=f.qd,l.syrupRenderer=r):l.status=f.Vc})}).catch(function(a){l.reason=a;return l}).then(function(){g.ur(r);n.oD();
r.Pa();return l})}).catch(function(a){g.ur(r);l.reason=a;return l}).then(function(a){m.jP();d(a)})}});u(239,0,function(){function c(){f=k(230);b=k(231);d=k(238);a=f.ro}function l(){this.result={status:r.Yg,version:{spile:h.spile.version,syrup:h.syrup.version}};this.result["basic-tests"]={status:r.Yg};this.result["webgl-capabilities"]={status:r.Yg,failures:{}};this.result["async-fidelity"]={status:r.Yg,gl:null};this.result["sync-fidelity"]={status:r.Yg};this.runAdvancedTests=null;this.result["user-agent"]=
navigator&&navigator.userAgent;this.result.host=document.location.host;this.result.pathname=document.location.pathname;this.result=this.result}var r=k(95),q=k(99),n=k(101),h=k(100),g=k(102),e=k(103),b,a,d;l.rs=!1;l.js=!0;l.prototype.RI=function(){this.result["basic-tests"].status=r.Vc;var a=g.qa();this.result["basic-tests"]=a;return a.status===r.qd};l.prototype.fF=function(d){d=d||{};this.result.status=r.Vc;if(!this.RI()&&l.rs)return q.On(this.result),this.result;c();this.result["webgl-capabilities"].status=
r.Vc;d=b.rT(d.FO||"webgl");this.result["webgl-capabilities"]=d;this.result.hash=e.AQ(d.webglContext);if(l.rs&&d.status!==r.qd)return this.result.status=r.Vc,q.On(this.result),this.result;delete this.runAdvancedTests;this.result.status=r.og;if(d=n.pB(this.result.hash))this.result.status=d.status,this.result.status===r.qd&&(this.SyrupRenderer=a);return this.result};l.prototype.OC=function(a){if(l.js)return this.result.status=r.Vc,this.result;try{return this.fF(a)}catch(p){return this.result.status=
r.Vc,this.result["webgl-capabilities"].failures["loading-failure"]=p,this.result.hash="simple-test-exception",n.pB(this.result.hash)||(n.KD(this.result),q.On(this.result)),this.result}};l.prototype.pT=function(b,c){l.js?(this.result.status=r.Vc,b(this.result)):(c=a.mr(c),this.result["sync-fidelity"].pass=c.tS,this.result["sync-fidelity"].times=c.X1,this.result["sync-fidelity"].status=c.tS?r.qd:r.Vc,this.result["sync-fidelity"].lineStatus=r.Yg,this.result["sync-fidelity"].labelStatus=r.Yg,c.lineHasRun&&
(this.result["sync-fidelity"].lineStatus=c.linePass?r.qd:r.Vc),c.labelHasRun&&(this.result["sync-fidelity"].labelStatus=c.labelPass?r.qd:r.Vc),c.failures.length&&(this.result["sync-fidelity"].failures=c.failures),d(function(c){this.result["async-fidelity"]=c;var d=this.result["sync-fidelity"];this.result.status=c.pass&&d.pass?r.qd:d.pass&&c.status===r.og?r.og:r.Vc;l.rs||(this.result.status=this.result["basic-tests"].status===r.qd&&this.result["webgl-capabilities"].status===r.qd&&this.result["sync-fidelity"].status===
r.qd?this.result["async-fidelity"].status===r.og?r.og:this.result["async-fidelity"].status:r.Vc);q.On(this.result);this.result.status!==r.og&&(this.result.status===r.qd&&(this.ro=a),n.KD(this.result));"function"===typeof b&&b(this.result)}.bind(this)))};l.qT=function(a,b){a=a||function(){};b=b||{};if(l.js)l.mr(a,b);else{var c=new l;c.OC(b);c.result.status===r.og?c.runAdvancedTests(a,b):"function"===typeof a&&a(c.result)}};l.NE=r;l.Syrup={version:h.syrup.version,build:h.syrup.build};try{var f=k(230);
l.Syrup.Camera=f.Ux;l.Syrup.XMath=f.uy}catch(m){}l.ZQ=function(){return f.ro};l.mr=function(a,b){function e(){f.result.status=f.result["async-fidelity"].status;q.On(f.result);var b=f.result["async-fidelity"].webglContext;b&&(f.result["gpu-identifier"]={VERSION:b.getParameter(b.VERSION)},delete f.result["async-fidelity"].webglContext);a(f.result)}a=a||function(){};var f=new l;try{c(),d(function(a){f.result["async-fidelity"]=a;e()},b)}catch(C){f.result["async-fidelity"].reason=C,e()}};l.version=h.spile.version;
l.GA=h.spile.build;l.prototype.runSimpleTests=l.prototype.OC;l.prototype.runAdvancedTests=l.prototype.pT;l.Status=l.NE;l.version=l.version;l.build=l.GA;l.testRendering=l.mr;l.runAnalytics=l.qT;l.getRendererWithoutAnyWarranty=l.ZQ;return l});return k(239)}"undefined"!==typeof define?define(Z):"undefined"!==typeof module?module.exports=Z():window.Spile=Z();
