diff --git a/index.html b/index.html index 52b9ccd..d5c26b1 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ + <%= title %> <%- copyrightScript %> diff --git a/index.html b/index.html index 52b9ccd..d5c26b1 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ + <%= title %> <%- copyrightScript %> diff --git a/public/amap/map.js b/public/amap/map.js new file mode 100644 index 0000000..50fd41d --- /dev/null +++ b/public/amap/map.js @@ -0,0 +1,3 @@ +(function(config){!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define(factory):(global=global||self).AMap=factory()}(this,function(){"use strict";var shared,worker,AMap;function define(_,chunk){var sharedChunk,workerBundleString;shared?worker?(workerBundleString='var sharedChunk = {key:"'+config[0]+'",db:"'+(config[14]||"")+'",nebulaVersion:"'+(config[15]||"")+'",movingDraw:'+Boolean(window.movingDraw)+',host:"'+config[2]+'",}; ('+shared+")(sharedChunk); ("+worker+")(sharedChunk);",sharedChunk={key:config[0],movingDraw:window.movingDraw},shared(sharedChunk),sharedChunk=chunk(sharedChunk),workerBundleString="undefined"!=typeof URL?window.URL.createObjectURL(new Blob([workerBundleString],{type:"text/javascript"})):"",(AMap=sharedChunk(config)).getConfig().workerUrl=workerBundleString):worker=chunk:shared=chunk}define(["exports"],function(exports){var extend=function(f){for(var t,r,i=Array.prototype.slice.call(arguments,1),o=0,n=i.length;o=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function constant(f){return function(){return f}}var defineProperty=function(){try{var f=getNative(Object,"defineProperty");return f({},"",{}),f}catch(f){}}(),baseSetToString=defineProperty?function(f,e){return defineProperty(f,"toString",{configurable:!0,enumerable:!1,value:constant(e),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(f,e){for(var t=-1,r=null==f?0:f.length;++t>16)/255,((65280&f)>>8)/255,(255&f)/255,1]},Xj:function(f,e){for(var t=[],r=(e=void 0===e?{}:e).qw,i=e.Aw,o=e.complete,n=0,a=f;n=zoomRange[1]&&(f[1]=t),f[0]<=zoomRange[0]&&(f[0]=e),f},toString:function(f,e){void 0===e&&(e=4);var t="";if(f)for(var r=0,i=f;r=LocalZoom?s:[0,0])[0],s=a[1],i.wu(f+l,e+s,t,n)):"relative"===r?o.H(f,e):o._u(f,e)},r0:function(f,e,t,r,i){var o,n,a,l,s,d;if(void 0===f&&(f=0),void 0===e&&(e=0),void 0===t&&(t=0),i)return s=i.viewState,l=i.size,o=i.transform,n=i.view,a=i.viewMode,d=i.centerCoord,i=void 0===(i=i.positionType)?"relative":i,"2D"===a?(a={center:s.centerCoord,rotation:s.rotation,size:l},s=(l=s.optimalZoom>=LocalZoom?d:[0,0])[0],d=l[1],o.wu(f+s,e+d,r,a)):"relative"===i?n.H(f,e,t):n._u(f,e,t)},kz:function(f,e,t,r){if(void 0===f&&(f=[]),r=(r=void 0===r?{}:r).centerCoord,e=i&&f[1]<=o):(i=Math.min(e[0],t[0]),o=Math.max(e[0],t[0]),t=(t[1]-e[1])/(t[0]-e[0])*(f[0]-e[0])+e[1],Math.abs(t-f[1])=i&&f[0]<=o)},closestOnSegment:function(f,e){var t,r=f[0],f=f[1],i=e[0],e=e[1],o=i[0],i=i[1],n=e[0],a=n-o,l=(e=e[1])-i,f=(r=0==a&&0==l?0:(a*(r-o)+l*(f-i))/(a*a+l*l||0))<=0?(t=o,i):1<=r?(t=n,e):(t=o+r*a,i+r*l);return[t,f]},isClockwise:function(f){for(var e,t,r=f.length,i=0,o=f[r-1],n=o[0],a=o[1],l=0;l(t[1]-e[1])*(f[0]-e[0])},i=function(f,e,t,r){var i=[f[0]-e[0],f[1]-e[1]],o=[t[0]-r[0],t[1]-r[1]],f=f[0]*e[1]-f[1]*e[0],e=t[0]*r[1]-t[1]*r[0],t=1/(i[0]*o[1]-i[1]*o[0]);return[(f*o[0]-e*i[0])*t,(f*o[1]-e*i[1])*t]},o=f,n=e[e.length-2],a=0,l=e.length-1;a=33306690738754716e-32*n)?a:-function(f,e,t,r,i,o,n){var a,l,s,d,c,u,y,b,p,h,S=f-i,v=t-i,g=e-o,M=r-o,w=S*M,m=C*S,k=m-(m-S),x=S-k,T=(N[0]=(y=x*(s=M-(l=(m=C*M)-(m-M)))-(w-k*l-x*l-k*s))-((d=y-(p=(x=g-(k=(m=C*g)-(m-g)))*(s=v-(l=(m=C*v)-(m-v)))-((b=g*v)-k*l-x*l-k*s)))+(a=y-d))+(a-p),N[1]=(u=w-((c=w+d)-(a=c-w))+(d-a))-((d=u-b)+(a=u-d))+(a-b),N[2]=c-((h=c+d)-(a=h-c))+(d-a),N[3]=h,function(e){for(var t=e[0],r=1;r<4;r++)t+=e[r];return t}(N)),A=22204460492503146e-32*n;return A<=T||A<=-T||(f=f-(S+(a=f-S))+(a-i),t=t-(v+(a=t-v))+(a-i),i=e-(g+(a=e-g))+(a-o),e=r-(M+(a=r-M))+(a-o),0==f&&0==i&&0==t&&0==e)||(A=11093356479670487e-47*n+33306690738754706e-32*Math.abs(T))<=(T+=S*e+M*f-(g*t+v*i))||A<=-T?T:(E[0]=(y=(x=f-(k=(m=C*f)-(m-f)))*(s=M-(l=(m=C*M)-(m-M)))-((w=f*M)-k*l-x*l-k*s))-((d=y-(p=(x=i-(k=(m=C*i)-(m-i)))*(s=v-(l=(m=C*v)-(m-v)))-((b=i*v)-k*l-x*l-k*s)))+(a=y-d))+(a-p),E[1]=(u=w-((c=w+d)-(a=c-w))+(d-a))-((d=u-b)+(a=u-d))+(a-b),E[2]=c-((h=c+d)-(a=h-c))+(d-a),E[3]=h,r=_(4,N,4,E,$),E[0]=(y=(x=S-(k=(m=C*S)-(m-S)))*(s=e-(l=(m=C*e)-(m-e)))-((w=S*e)-k*l-x*l-k*s))-((d=y-(p=(x=g-(k=(m=C*g)-(m-g)))*(s=t-(l=(m=C*t)-(m-t)))-((b=g*t)-k*l-x*l-k*s)))+(a=y-d))+(a-p),E[1]=(u=w-((c=w+d)-(a=c-w))+(d-a))-((d=u-b)+(a=u-d))+(a-b),E[2]=c-((h=c+d)-(a=h-c))+(d-a),E[3]=h,o=_(r,$,4,E,L),E[0]=(y=(x=f-(k=(m=C*f)-(m-f)))*(s=e-(l=(m=C*e)-(m-e)))-((w=f*e)-k*l-x*l-k*s))-((d=y-(p=(x=i-(k=(m=C*i)-(m-i)))*(s=t-(l=(m=C*t)-(m-t)))-((b=i*t)-k*l-x*l-k*s)))+(a=y-d))+(a-p),E[1]=(u=w-((c=w+d)-(a=c-w))+(d-a))-((d=u-b)+(a=u-d))+(a-b),E[2]=c-((h=c+d)-(a=h-c))+(d-a),E[3]=h,n=_(o,L,4,E,O),O[n-1])}(r,f,i,e,o,t,n);return 0r[0]?1:t[0]r[1]?1:-1:(r=e,e=t,(t=f).left===r.left?0===i(e,t.IP.point,r.IP.point)?!t._P&&r._P?1:-1:t.FP(r.IP.point)?-1:1:t.left?1:-1)}function p(f,e,t){var r=new u(e,!1,f,f._P),e=new u(e,!0,f.IP,f._P);b(f.point,f.IP.point)&&console.warn("what is that, a collapsed segment?",f),r.UP=e.UP=f.UP,0e.UP?1:-1):1===v(f,e)?1:-1)}function c(f,e){return fl[2]||a[2]n||r===P&&u.point[0]>e[2])break;u.left?(s=l=i.Xc(u),l=l!==(a=i.MP())?i.NM(l):null,s=i.next(s),S(u,d=l?l.key:null,r),s&&2===M(u,s.key,f)&&(S(u,d,r),S(u,s.key,r)),l&&2===M(l.key,u,f)&&(S(d,(c=(c=l)!==a?i.NM(c):null)?c.key:null,r),S(u,d,r))):(u=u.IP,s=l=i.find(u),l&&s&&(l=l!==a?i.NM(l):null,s=i.next(s),i.remove(u),s)&&l&&M(l.key,s.key,f))}return o}(s,a,l,t)),c=[],u=0;u>1],a=r-1,l=i+1;;){for(;o(e[++a],n)<0;);for(;0>1)-1;0<=t;t--)this.zP(t)}).prototype={push:function(f){this.data.push(f),this.length++,this.El(this.length-1)},pop:function(){var f;if(0!==this.length)return f=this.data[0],this.length--,0>1,o=e[i];if(0<=t(r,o))break;e[f]=o,f=i}e[f]=r},zP:function(f){for(var e=this.data,t=this.compare,r=this.length>>1,i=e[f];ff[1]!=s>f[1]&&f[0]<(l-n)*(f[1]-a)/(s-a)+n&&(r=!r)}return r}return r},e.prototype.isPointInBbox=function(f,e){for(var t=1/0,r=1/0,i=-1/0,o=-1/0,n=0;nt&&f[0]r&&f[1](s[1]-n[1])*(f[0]-n[0])},r=function(){var f=[n[0]-s[0],n[1]-s[1]],e=[c[0]-o[0],c[1]-o[1]],t=n[0]*s[1]-n[1]*s[0],r=c[0]*o[1]-c[1]*o[0],i=1/(f[0]*e[1]-f[1]*e[0]);return[(t*e[0]-r*f[0])*i,(t*e[1]-r*f[1])*i]},i=f=this.makesureAntiClockwise(f),n=(e=this.makesureClockwise(e))[e.length-1],a=0,l=e.length;a>=0),r},createObjectURL:function(f,e){void 0===e&&(e="text/javascript; charset=utf-8");var t=null;try{t=(globalInstance.URL||globalInstance.webkitURL).createObjectURL(new Blob([f],{type:e}))}catch(f){t=null}return t},revokeObjectURL:function(f){try{(globalInstance.URL||globalInstance.webkitURL).revokeObjectURL(f)}catch(f){}},Og:function(f){for(var e={},t=0,r=f.length;te.length&&(n=e.length);for(var a=o;a>24&255)/255,(f>>16&255)/255,(f>>8&255)/255,(255&f)/255]},isEmpty:function(f){for(var e in f)if(f.hasOwnProperty(e))return!1;return!0},Wg:function(f,e){return 0<=e&&f.splice(e,1),f},startsWith:function(f,e){return f.startsWith?f.startsWith(e):f.substr(0,e.length)===e},deleteItemFromArray:function(f,e){return e=b.indexOf(f,e),b.Wg(f,e)},deleteItemFromArrayByIndex:function(f,e){return b.Wg(f,e)},filter:function(f,t,r){var i=[];return b.Cg(f,function(f,e){t.call(r,f,e)&&i.push(f)}),i},indexOf:function(f,e){if(f&&f.length){if(f.indexOf)return f.indexOf(e);for(var t=0;t=e[0]&&f<=e[1]},kD:function(f,e,t){return void 0===t&&(t=!1),f=(f=void 0===f?"":f).split(",")[0]||"",!t&&f&&e&&TagMap[e]||"all"},VF:function(f,e,t){return!(t=void 0!==t&&t)&&f&&e&&TagMap[e]||"all"},LD:function(f,e){return!(!f||!e)&&(f=this.iN(f),this.iN(e)<=f)},SD:function(f){var e;switch(f=void 0===f?"all":f){case"lite":e=0;break;case"left":e=1;break;default:e=2}return e},pW:function(f){var e;switch(f=void 0===f?2:f){case 0:e=exports.zB.LITE;break;case 1:e=exports.zB.LEFT;break;default:e=exports.zB.ALL}return e},iN:function(f){var e=0;switch(f){case"lite":e=0;break;case"left":e=1;break;case"all":e=2}return e},loadBaxia:function(e){var f,t;window||e({code:"0",I8t:"霸下加载失败"}),window.__AMap_web_baxia__?e({code:"2",I8t:"霸下已加载,无需重复加载"}):(window.__AMap_web_baxia__=!0,f=document.body||document.head,(t=document.createElement("script")).type="text/javascript",t.src="//g.alicdn.com/??AWSC/AWSC/awsc.js,sd/baxia-entry/baxiaCommon.js",t.onerror=function(f){window.__AMap_web_baxia__=!1,e({code:"0",I8t:"霸下加载失败"})},t.onload=function(){e({code:"1",I8t:"霸下加载成功"})},f.appendChild(t))},getMarkUrl:function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAS1BMVEVHcEyWlpaOjo6NjY2QkJCPj4+SkpKNjY2Ojo6Ojo6YmJiZmZmOjo6Ojo6MjIyLi4uFhYWxsbGurq6rq6ugoKDMzMyMjIyIiIh/f3+kL2ynAAAAFnRSTlMACImbKUo47150Ehzdrcy731qBodA76gxQtQAACo1JREFUeNrt3FlyIysQBdDLPENJsm/W/lf6QiCpvYRXNuejI2r4yS5IZwI2tm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btv875ZPHn5Xd/SAN/hhV5r8udcoZGgf+GBMskCvJnixQK/6YxAjAkBZPPeBvsHeHybIBQJSEpxEUfj8Vh5wGSyVKKiow/5ERoJwh2QqWPFhJjcT0F/4DimuBcsQM8wCg0iDJES0UCfzmJJgS4LsIe/IAslQAmRyaDU+RGlAc+KV4KnwfD6cQ6zfgqQHAFxTylf/EwZ4P/FKP0wOITcHL6RHFYnEkg1vDIXtJv27SJ0yOCUA8Q4ENCY2pGTwl0ozTZMDL0ejxeyivB4UWTyVUEyxujICPhqQwA0AbYeBxOgCRrPgtbGwiZGuSAFgTSHYLuHjvQnbtNCMAhGTOjFjWaAgOv0CJJpDSjcvIbAAia2UE4jgooSWLd8b/Pq1jxKJFaBQuLXvdecpxMGGqogBlYSUBTWry79a/JgB3UVYapiLVDjkcrsyTHDePIgaTllfE7ICTCAA2NXK+oM4DYMDUzhugKT0qXJZiVXg6ZlQ5DkmYGpEde17zo2kaADkYoJ0WAOx5AIBvpMF1FCz2NtKKM+NJ0/lUSeHAlJhCS5/k4OhmuB6IKwnU84bJj4TLaMED2ekqJ82M8zXKDUmGEW2XjKdMoYPv7Hg6qPBiOQCY0+CCHKseJNmixxrIjxxNEJIr32mZH1ZpCfM6slsgScJHoEKUqnA5NhmS7OwKb3Xe0e4ImBwNABsYQnnXfsmx4x9DBz++cS3FmUpyaJctNQClVjQyYgGgxeFJSQXwHWKUiMkPksYqvDkmXIjPgNKdQpFbAYCbuBLHsaKIdCsqMUC5mUpaAAqFA4sKp5Ch9hHXtVcXKvKqJEAFjuSTGADIDwkiZF+vsGOSoLsI+2DEVLni9PW822gCed5xIWruXLBLA2DzSnDJpy5Su3bq68yvOAH4NIQMJhZYNkzm/H7lgNeHL1bhKp5x8qzGZXyJwmIThawmxRmYODxpakNK6EzrxRAwufMO+C7V4VrsbQSRrxYLnu6nn+GYKqyzsUmsUaFQf5Y4qvawojF9unx22Mu1O96slbzkAZQUAb9mbpMjOWAkwGsypBwqnix7Wek/YFqL/lkPdiBGXEuSqp0CgnGPgxyvtuZdwBqmlR8Ck2YB1vNpiH8NGQNAVRqLi7DD4cWLXuFSDhOpAQxmAFka8H12TN7rT2Mffn55HxvX/VxwGV4apk84VaIC1jdOdO89HZE8EyQlAYUNTzUoPFkZwP2UHnE5NeCtiV3LdUk5xhWYefV7hyRngjC00D8tsArhR42fo8VFFOM+O/aGFoCLr7nuZHgTAhmdtSV/rcad2uhMjuSBxgI8ZmNfZGDxHldipa8V/LKmbzbzRmFbTb5m7SR5ft/FAlAyPl8ds9C/nWkWxhrXdFC9G/osw4XzDHlNh5yR25zmLqb0XsGYFdFDMpTXde7psAOIweEqsis/hqqmB1BoAAzKebuf7n07CVPJWOzZAGA+vp2t8WTQHipKBYCicBWWWsXHcVY8OUl4DeoU2Cy+T72a1RI4yu0kj0f5N1YsDVBIaTcLQJMh4lJUJCnnSBZT6MpZaMbBc/Z80gFkDmXiHP66n3b1/H6+XwFErzClkQouQh8Z36lTGIzHm68MHHCkpMz6nuXoVPj4OVbaWXBNB5FOCcbVDpTUawF8ELIm7yqrBWZzm8S/5zpi0trolKL/7ONHueGSChv8HPeDrQqDRMBWnUQDQY76LvcSI7BSgapcxMyLlQQaLkmLW6d1jsDKI6vTYOIB3EoSv/KjIT0AJV+AKjlnBWTvUhOuajhaXIF1n76eK3kdAEoQVkaYAIyAqbEAcKLXS/VweBpSsGRnKoVNS8JlqCp+ruGKsFsA+rwh2ywVOO8ovPlO/+PY4kqAjUUBfvg11z/BV+0V4BWuIzIMklW7jDmlD0BLNgFoX1bzlNAK8P7J/kqAUVYRoOdte/8SMuiYcTE+DZLBOLwlsUA9cTtjrKdwaA/g3/KdRTpvQBlrNDQAlRQxsVzwmEYgZczPFlv1r3m88ncRymHcvNNE48mwROYiBm/s87ax6lJfPQPwVU45kgXgdSWDJLxp8UC6FQB+zuwvhyfPgz0jHJiKGzQA3Mi4ihJbEEYA/njcMlDuXydDixmh4yUHzoDXzK46loIp8tUKWSh//xJhK7iOHE2lBBPZ8HI/eI67XV9XChYz49Rr68IpwK62Z7BGAHAMjRRpyeIirLYwgVzzPQS8PM40H6cRpJqM6Xa2GgDdZ3yhF6jHeQMM3280smuvcB2JNzTGdSolkBaLY1S3FsgZrE3DrVbAvN4YUSWhA4ZYFIc3W3AtR5jB+rldkxITlkwKq3Ez2x0UMQC+3VrCMqvp893ppIQZl5ItPla/kgMZmpthd7zoFucU6CRH8l8HpiINkIq2wq4CpxUupTFDOd3U6m/zSt7vYDs+ShwUdm2B51y3mL4ECH3t5ivHgOsoCk+appGsGUA671iNuxuBrNr+KIXedaBN8XMiay1hc6Cw6k6RiMtIwQNlBnaO5AHAswKpKS/vYOFaLQAGOZIF1Hy/rqE/ufNWTg0YMrRYcB1RHveD5JCQsXSxQCCgkwLgdQ9kL8Crqted7Npq2pktJyWtjBsA53ElLlWKzIMKo0JFBQC3tFaz3wlADmnq39Zm4nAZgJW0Frmnzoyr8SNQaqB7zW/lGBwWTb+ev6teq91r7aMwAeXWAs2PE1lRZ1xNZE8eWgqePBPcu8NRgRmOq7ZDOXicr63sAtSgj5PVuJJ9Z8SFxJbxj5oX1rmMzyakXvFo0n0agkCRr7tVeGV9zeNxK1iVglG4kCZuRu60waQ+C1dA51znawA81+ac05VkT1HumGZrX6zCklLBpXhq2DiCvFJ+CdWCYcVj2KoIG6CEtgZ4inTtfrZDqAFXZkOYWV27gqfSyDmLszOdInWFq74SjJTcovWYGi0mQ4+Lyu7e+Tps+E/unImdDI2hYFHvs1hWDgesq8kx4Yp8GiInzWAEfsqd5wPKaIscOPBR5kWOgSb/OOWjfMYVGZEv7fPPXyZ1ds4Jen1GPGUG0fioVPNuP31sct5xaTYWfE4bvmr/DtiTEajM8x3qJBHLjxqv5JM94pcw4l65QDsgPyJgKfG9Sf2jrvmWhJdS8Eso10hZv2v4cYTQ36eTVZdWMCmp+F38bZBkkI6fjPhE/zm4YITJ4qlVhV+jxFnk9NprdTT4UEYMrOh1EPMpBmnrEX6RJKsA6FqzeFaPl8QBZA6gfar/5PHr2GQVgELvmeADdXk/UKvA9ez4/TRfR7Ua5W7xESoGPX49xfZeunFVpKe8WsMweyT8fpoW0HR4ip20AFRnSAp/wcrzTgwWl9Ztiz+iSgGgeOBvMpLwNMTiD1KaHVM6E/4gy5Ax2fsfHQFu/5nVbdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2a/gPlTyc0gUolCIAAAAASUVORK5CYII="}};function c(f){var e=+new Date,t=Math.max(0,(Browser.android?50:20)-(e-o));return o=e+t,globalInstance.setTimeout(f,50)}function u(f){globalInstance.clearTimeout(f)}function y(f){for(var e,t=["webkit","moz","o","ms"],r=0;ra[0]&&e[1]this.AU.uf&&(this.AU.ff(e),this.TU.ff(e)),0<=ua.indexOf("Gecko/")||0<=ua.indexOf("Windows"));this.wU=Math.round(f/2*(e?1.2:1))},f.prototype.RU=function(f){var e=this.SU(f,ControlChars),f=this.SU(f,ZeroWidthChars);return e||f},f.prototype.SU=function(f,e){for(var t=0,r=e;t=i[0]&&f<=i[1])return!0}},f}();function expandTypeArray(e){f.ff(e),d.ff(e),z.ff(e),v.ff(e)}function edt(e,t,r){f.uf=f.ja&&e.Ea>=f.Fa}function createNode(f){return{children:f,height:1,Zc:!0,ja:1/0,Fa:1/0,Oa:-1/0,Ea:-1/0}}function multiSelect(f,e,t,r,i){for(var o,n=[e,t];n.length;)(t=n.pop())-(e=n.pop())<=r||(quickselect(f,o=e+Math.ceil((t-e)/r/2)*r,e,t,i),n.push(e,o,o,t))}function getModule(){return M=M||{nS:function(clsName,clsText){try{eval(clsText)}catch(e){throw e}},eS:{iS:"1722413142803",BY:!Browser.DW&&config[13]}},M}rbush.prototype={all:function(){return this.qc(this.data,[])},search:function(f){var e=this.data,t=[],r=this.Yc;if(intersects(f,e))for(var i,o,n,a,l=[];e;){for(i=0,o=e.children.length;ithis.Bc;)this.af(i,e),e--;this.sf(t,i,e)},af:function(f,e){var t=f[e],r=t.children.length,i=this.Wc,i=(this.rf(t,i,r),this.hf(t,i,r));(r=createNode(t.children.splice(i,t.children.length-i))).height=t.height,r.Zc=t.Zc,calcBBox(t,this.Yc),calcBBox(r,this.Yc),e?f[e-1].children.push(r):this.Jc(t,r)},Jc:function(f,e){this.data=createNode([f,e]),this.data.height=f.height+1,this.data.Zc=!1,calcBBox(this.data,this.Yc)},hf:function(f,e,t){for(var r,i,o,n,a,l=n=1/0,s=e;s<=t-e;s++)i=intersectionArea(o=distBBox(f,0,s,this.Yc),r=distBBox(f,s,t,this.Yc)),o=bboxArea(o)+bboxArea(r),ithis.yM&&(this.yM=Math.max(f,Math.floor(this.yM*RESIZE_MULTIPLIER),DEFAULT_CAPACITY),f=this.wM,this.arrayBuffer=new ArrayBuffer(this.yM*this.constructor.Rb),this.mM(),f)&&this.wM.set(f)},f}(),FillArray=function(e){function f(){var f=e.call(this)||this;return f.pM=!1,f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e){var t=this.length;this.resize(this.length+1),this.MM(t,f,e)},f.prototype.MM=function(f,e,t){this.Mb[f*=2]=e,this.Mb[1+f]=t},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},f.Rb=8,f}(StructArray),FillExtrusionArray=function(e){function f(){var f=e.call(this)||this;return f.pM=!1,f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e,t,r,i,o){var n=this.length;this.resize(n+1),this.MM(n,f,e,t,r,i,o)},f.prototype.MM=function(f,e,t,r,i,o,n){var a=8*f,e=(this.Mb[a]=e,this.Mb[1+a]=t,this.Mb[2+a]=r,this.Mb[3+a]=i,this.Mb[4+a]=o[0],this.Mb[5+a]=o[1],this.Mb[6+a]=o[2],16*f);this.jM[14+e]=n[0],this.jM[15+e]=n[1]},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer),this.jM=new Uint16Array(this.arrayBuffer)},f.Rb=32,f}(StructArray),LinesIndexArray=function(e){function f(){var f=e.call(this)||this;return f.length=0,f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e){var t=this.length;this.resize(this.length+1),this.MM(t,f,e)},f.prototype.MM=function(f,e,t){this.jM[f*=2]=e,this.jM[1+f]=t},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.jM=new Uint16Array(this.arrayBuffer)},f.Rb=4,f}(StructArray),LinesIndexArrayUint=function(e){function f(){var f=e.call(this)||this;return f.length=0,f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e){var t=this.length;this.resize(this.length+1),this.MM(t,f,e)},f.prototype.MM=function(f,e,t){this.UI[f*=2]=e,this.UI[1+f]=t},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.UI=new Uint32Array(this.arrayBuffer)},f.Rb=8,f}(StructArray),LineArrayBuffer=function(e){function f(){var f=e.call(this)||this;return f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e,t,r){var i=this.length;this.resize(i+1),this.MM(i,f,e,t,r)},f.prototype.MM=function(f,e,t,r,i){f*=this.constructor.Rb/4,this.Mb[f]=e[0],this.Mb[1+f]=e[1],this.Mb[2+f]=t[0],this.Mb[3+f]=t[1],this.Mb[4+f]=r,this.Mb[5+f]=i[0],this.Mb[6+f]=i[1]},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},f.Rb=28,f}(StructArray),TriangleIndexArray=function(e){function f(){var f=e.call(this)||this;return f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e,t){var r=this.length;this.resize(r+1),this.MM(r,f,e,t)},f.prototype.MM=function(f,e,t,r){this.jM[f*=3]=e,this.jM[1+f]=t,this.jM[2+f]=r},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.jM=new Uint16Array(this.arrayBuffer)},f.Rb=6,f}(StructArray),TriangleIndexArrayUint=function(e){function f(){var f=e.call(this)||this;return f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e,t){var r=this.length;this.resize(r+1),this.MM(r,f,e,t)},f.prototype.MM=function(f,e,t,r){this.UI[f*=3]=e,this.UI[1+f]=t,this.UI[2+f]=r},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.UI=new Uint32Array(this.arrayBuffer)},f.Rb=12,f}(StructArray),SymbolArray=function(e){function f(){var f=e.call(this)||this;return f.pM=!1,f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e,t){var r=this.length;this.resize(this.length+1),this.MM(r,f,e,t)},f.prototype.MM=function(f,e,t,r){var f=13*f,e=(this.Mb[f]=e,this.Mb[1+f]=t,r.color),t=r.borderColor,i=r.radius,o=r.borderWidth;this.Mb[2+f]=i,this.Mb[3+f]=o,this.Mb[4+f]=e[0],this.Mb[5+f]=e[1],this.Mb[6+f]=e[2],this.Mb[7+f]=e[3],this.Mb[8+f]=t[0],this.Mb[9+f]=t[1],this.Mb[10+f]=t[2],this.Mb[11+f]=t[3],this.Mb[12+f]=+(r.visible&&r.filter)},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},f.Rb=52,f}(StructArray),SimpleSymbolArray=function(e){function f(){var f=e.call(this)||this;return f.pM=!1,f.resize(0),f}return __extends(f,e),f.prototype.kb=function(f,e){var t=this.length;this.resize(this.length+1),this.MM(t,f,e)},f.prototype.MM=function(f,e,t){this.Mb[f*=2]=e,this.Mb[1+f]=t},f.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},f.Rb=4,f}(StructArray),SmartArrayBuffer=function(){function f(f,e,t,r){void 0===r&&(r="ARRAY_BUFFER"),this.AM=f,this.kM=t,this.type=r,f&&(this.buffer="ARRAY_BUFFER"===r?f.fe(e,t,"DYNAMIC_DRAW"):f.ve(e),this.uf=e.byteLength,this.byteLength=e.byteLength)}return f.prototype.update=function(f){var e,t,r;0!==f.length&&this.AM&&(e="ARRAY_BUFFER"===this.type,t=this.AM.gl,r=(e?this.AM.de:this.AM.me).current,(e?this.AM.de:this.AM.me).set(this.buffer),this.uf80*t){for(var u=r=f[0],y=i=f[1],b=t;b=s&&y.x<=c&&y.y>=d&&y.y<=u&&pointInTriangle(r,n,i,a,o,l,y.x,y.y)&&0<=area(y.NM,y,y.next))return;y=y.next}return 1}}function isEarHashed(f,e,t,r){var i=f.NM,o=f,n=f.next;if(!(0<=area(i,o,n))){for(var a=i.x,l=o.x,s=n.x,d=i.y,c=o.y,u=n.y,y=a=S&&M&&M.z<=v;){if(g.x>=y&&g.x<=p&&g.y>=b&&g.y<=h&&g!==i&&g!==n&&pointInTriangle(a,d,l,c,s,u,g.x,g.y)&&0<=area(g.NM,g,g.next))return;if(g=g.DM,M.x>=y&&M.x<=p&&M.y>=b&&M.y<=h&&M!==i&&M!==n&&pointInTriangle(a,d,l,c,s,u,M.x,M.y)&&0<=area(M.NM,M,M.next))return;M=M.RM}for(;g&&g.z>=S;){if(g.x>=y&&g.x<=p&&g.y>=b&&g.y<=h&&g!==i&&g!==n&&pointInTriangle(a,d,l,c,s,u,g.x,g.y)&&0<=area(g.NM,g,g.next))return;g=g.DM}for(;M&&M.z<=v;){if(M.x>=y&&M.x<=p&&M.y>=b&&M.y<=h&&M!==i&&M!==n&&pointInTriangle(a,d,l,c,s,u,M.x,M.y)&&0<=area(M.NM,M,M.next))return;M=M.RM}return 1}}function cureLocalIntersections(f,e,t){var r=f;do{var i=r.NM,o=r.next.next}while(!equals$2(i,o)&&intersects$1(i,r,r.next,o)&&locallyInside(i,o)&&locallyInside(o,i)&&(e.push(i.i/t|0),e.push(r.i/t|0),e.push(o.i/t|0),removeNode(r),removeNode(r.next),r=f=o),(r=r.next)!==f);return filterPoints(r)}function splitEarcut(f,e,t,r,i,o){var n=f;do{for(var a,l=n.next.next;l!==n.NM;){if(n.i!==l.i&&isValidDiagonal(n,l))return a=splitPolygon(n,l),n=filterPoints(n,n.next),a=filterPoints(a,a.next),earcutLinked(n,e,t,r,i,o,0),earcutLinked(a,e,t,r,i,o,0);l=l.next}}while((n=n.next)!==f)}function eliminateHoles(f,e,t,r){for(var i,o=[],n=0,a=e.length;n=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&n=r.x&&r.x>=d&&i!==r.x&&pointInTriangle(ot.x||r.x===t.x&§orContainsSector(t,r)))&&(t=r,u=l),(r=r.next)!==s;);return t}function sectorContainsSector(f,e){return area(f.NM,f,e.NM)<0&&area(e.next,f,f.next)<0}function indexCurve(f,e,t,r){for(var i=f;0===i.z&&(i.z=zOrder(i.x,i.y,e,t,r)),i.DM=i.NM,i.RM=i.next,(i=i.next)!==f;);i.DM.RM=null,i.DM=null,sortLinked(i)}function sortLinked(f){var e,t,r,i,o,n,a,l,s=1;do{for(t=f,o=f=null,n=0;t;){for(n++,r=t,e=a=0;e=Math.min(f.x,t.x)&&e.y<=Math.max(f.y,t.y)&&e.y>=Math.min(f.y,t.y)}function sign(f){return 0o!=t.next.y>o&&t.next.y!==t.y&&i<(t.next.x-t.x)*(o-t.y)/(t.next.y-t.y)+t.x&&(r=!r),(t=t.next)!==f;);return r}function splitPolygon(f,e){var t=new Node(f.i,f.x,f.y),r=new Node(e.i,e.x,e.y),i=f.next,o=e.NM;return(f.next=e).NM=f,(t.next=i).NM=t,(r.next=t).NM=r,(o.next=r).NM=o,r}function insertNode(f,e,t,r){return f=new Node(f,e,t),r?(f.next=r.next,(f.NM=r).next.NM=f,r.next=f):(f.NM=f).next=f,f}function removeNode(f){f.next.NM=f.NM,f.NM.next=f.next,f.DM&&(f.DM.RM=f.RM),f.RM&&(f.RM.DM=f.DM)}function Node(f,e,t){this.i=f,this.x=e,this.y=t,this.NM=null,this.next=null,this.z=0,this.DM=null,this.RM=null,this.LM=!1}function signedArea(f,e,t,r){for(var i=0,o=e,n=t-r;o>3),i--,1===r||2===r)o+=e.lA(),n+=e.lA(),1===r&&(l&&0>3),i--,1===r||2===r)(o+=e.lA())>3,e=1==r?f.aw():2==r?f.pA():3==r?f.yA():4==r?f.mA():5==r?f.ow():6==r?f.lA():7==r?f.vw():null;return e}VectorTileLayer.prototype.Gw=function(f){if(f<0||f>=this.Cw.length)throw new Error("feature index out of bounds");return this.fA.pos=this.Cw[f],f=this.fA.ow()+this.fA.pos,new VectorTileFeature(this.fA,f,this.extent,this.cA,this.vA)};var VectorTile$1=function(f,e){this.type="vector",this.layers=f.nw(readTile,{},e)};function readTile(f,e,t){3===f&&(f=new VectorTileLayer(t,t.ow()+t.pos)).length&&(e[f.name]=f)}VectorTile$1.Wb=function(f){return f},VectorTile$1.Gb=function(f){return f},VectorTile$1.prototype.nG=function(f){this.type=f};var SHIFT_LEFT_32=4294967296,SHIFT_RIGHT_32=1/SHIFT_LEFT_32,Pbf=function(){function r(f){this.gA=ArrayBuffer.isView&&ArrayBuffer.isView(f)?f:new Uint8Array(f||0),this.pos=0,this.type=0,this.length=this.gA.length}return r.prototype.destroy=function(){this.gA=new Uint8Array(0)},r.prototype.nw=function(f,e,t){for(t=t||this.length;this.pos>3,o=this.pos;this.type=7&r,f(i,e,this),this.pos===o&&this.wA(r)}return e},r.prototype.MA=function(f,e){return this.nw(f,e,this.ow()+this.pos)},r.prototype.jA=function(){var f=readUInt32(this.gA,this.pos);return this.pos+=4,f},r.prototype.AA=function(){var f=readInt32(this.gA,this.pos);return this.pos+=4,f},r.prototype.kA=function(){var f=readUInt32(this.gA,this.pos)+readUInt32(this.gA,this.pos+4)*SHIFT_LEFT_32;return this.pos+=8,f},r.prototype.OA=function(){var f=readUInt32(this.gA,this.pos)+readInt32(this.gA,this.pos+4)*SHIFT_LEFT_32;return this.pos+=8,f},r.prototype.pA=function(){var f=this.xA(this.gA,this.pos,!0,23,4);return this.pos+=4,f},r.prototype.yA=function(){var f=this.xA(this.gA,this.pos,!0,52,8);return this.pos+=8,f},r.prototype.ow=function(f){var e=this.gA,t=e[this.pos++],r=127&t;return t<128||(r|=(127&(t=e[this.pos++]))<<7,t<128)||(r|=(127&(t=e[this.pos++]))<<14,t<128)||(r|=(127&(t=e[this.pos++]))<<21,t<128)?r:readVarintRemainder(r|=(15&e[this.pos])<<28,f,this)},r.prototype.mA=function(){return this.ow(!0)},r.prototype.lA=function(){var f=this.ow();return f%2==1?(f+1)/-2:f/2},r.prototype.vw=function(){return Boolean(this.ow())},r.prototype.aw=function(){var f=this.ow()+this.pos,e=readUtf8(this.gA,this.pos,f);return this.pos=f,e},r.prototype.mw=function(){var f=this.ow()+this.pos,e=this.gA.subarray(this.pos,f);return this.pos=f,e},r.prototype.tw=function(f,e){var t=readPackedEnd(this);for(f=f||[];this.pos>>=7)|(127>>=7)|(127>>7&127))},r.prototype.VA=function(f){this.BA(f<0?2*-f-1:2*f)},r.prototype.$A=function(f){this.BA(Boolean(f))},r.prototype.YA=function(f){f=String(f),this.zA(4*f.length),this.pos++;var e=this.pos;this.pos=writeUtf8(this.gA,f,this.pos),128<=(f=this.pos-e)&&makeRoomForExtraLength(e,f,this),this.pos=e-1,this.BA(f),this.pos+=f},r.prototype.KA=function(f){this.zA(4),this.XA(this.gA,f,this.pos,!0,23,4),this.pos+=4},r.prototype.JA=function(f){this.zA(8),this.XA(this.gA,f,this.pos,!0,52,8),this.pos+=8},r.prototype.ZA=function(f){var e=f.length;this.BA(e),this.zA(e);for(var t=0;t>1,d=-7,c=t?i-1:0,u=t?-1:1,i=f[e+c];for(c+=u,o=i&(1<<-d)-1,i>>=-d,d+=a;0>=-d,d+=r;0>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:o-1,y=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,n=s):(n=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-n))<1&&(n--,r*=2),2<=(e+=1<=n+d?c/r:c*Math.pow(2,1-d))*r&&(n++,r/=2),s<=n+d?(a=0,n=s):1<=n+d?(a=(e*r-1)*Math.pow(2,i),n+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),n=0));8<=i;f[t+u]=255&a,u+=y,a/=256,i-=8);for(n=n<>4;if(i<128)return toNum(f,o,e);if(o|=(127&(i=r[t.pos++]))<<3,i<128)return toNum(f,o,e);if(o|=(127&(i=r[t.pos++]))<<10,i<128)return toNum(f,o,e);if(o|=(127&(i=r[t.pos++]))<<17,i<128)return toNum(f,o,e);if(o|=(127&(i=r[t.pos++]))<<24,i<128)return toNum(f,o,e);if(o|=(1&(i=r[t.pos++]))<<31,i<128)return toNum(f,o,e);throw new Error("Expected varint not more than 10 bytes")}function readPackedEnd(f){return f.type===Pbf.DA?f.ow()+f.pos:f.pos+1}function toNum(f,e,t){return t?4294967296*e+(f>>>0):4294967296*(e>>>0)+(f>>>0)}function writeBigVarint(f,e){var t,r;if(0<=f?(t=f%4294967296|0,r=f/4294967296|0):(r=~(-f/4294967296),4294967295^(t=~(-f%4294967296))?t=t+1|0:r=r+1|(t=0)),0x10000000000000000<=f||f<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.zA(10),writeBigVarintLow(t,r,e),writeBigVarintHigh(r,e)}function writeBigVarintLow(f,e,t){t.gA[t.pos++]=127&f|128,f>>>=7,t.gA[t.pos++]=127&f|128,f>>>=7,t.gA[t.pos++]=127&f|128,f>>>=7,t.gA[t.pos++]=127&f|128,t.gA[t.pos]=127&(f>>>=7)}function writeBigVarintHigh(f,e){var t=(7&f)<<4;e.gA[e.pos++]|=t|((f>>>=3)?128:0),f&&(e.gA[e.pos++]=127&f|((f>>>=7)?128:0),f)&&(e.gA[e.pos++]=127&f|((f>>>=7)?128:0),f)&&(e.gA[e.pos++]=127&f|((f>>>=7)?128:0),f)&&(e.gA[e.pos++]=127&f|((f>>>=7)?128:0),f)&&(e.gA[e.pos++]=127&f)}function makeRoomForExtraLength(f,e,t){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));t.zA(r);for(var i=t.pos-1;f<=i;i--)t.gA[i+r]=t.gA[i]}function writePackedVarint(f,e){for(var t=0;t>>8,f[t+2]=e>>>16,f[t+3]=e>>>24}function readInt32(f,e){return(f[e]|f[e+1]<<8|f[e+2]<<16)+(f[e+3]<<24)}function readUtf8(f,e,t){for(var r="",i=e;i>>10&1023|55296),n=56320|1023&n),r+=String.fromCharCode(n),i+=a}return r}function writeUtf8(f,e,t){for(var r=0,i=void 0,o=void 0;r>6|192:(i<65536?f[t++]=i>>12|224:(f[t++]=i>>18|240,f[t++]=i>>12&63|128),f[t++]=i>>6&63|128),f[t++]=63&i|128)}return t}var StyleOptionsBuilding=function(){this.hideWithoutStyle=!1,this.areas=[]},VectorTileSegements=function(){function f(){this.jc=[],this.VM=0}return f.prototype.add=function(f,e,t,r,i){VTLineSegement.getKey(f,e,i,r)!==(this.WM?this.WM.getKey():"-1")&&(this.VM+=this.WM?this.WM.length:0,this.WM=new VTLineSegement(f,e,this.VM,r,i),this.jc.push(this.WM)),this.WM.add(t)},f}(),VTLineSegement=function(){function f(f,e,t,r,i){this.mainkey=f,this.subkey=e,this.offset=t,this.minzoom=r,this.maxzoom=i,this.length=0}return f.getKey=function(f,e,t,r){return f+":"+e+":"+t+":"+r},f.prototype.add=function(f){this.length+=f},f.prototype.getKey=function(){return this.mainkey+":"+this.subkey+":"+this.maxzoom+":"+this.minzoom},f}(),MapboxSegements=function(){function f(){this.jc=[],this.GM=-1,this.HM=-1,this.VM=0}return f.prototype.add=function(f,e){MBLineSegement.getKey(f),this.WM&&this.WM.getKey(),this.GM=f,this.VM+=this.WM?this.WM.length:0,this.WM=new MBLineSegement(f,this.VM),this.jc.push(this.WM),this.WM.add(e)},f}(),MBLineSegement=function(){function f(f,e){this.style=f,this.offset=e,this.length=0}return f.getKey=function(f){return""+f},f.prototype.add=function(f){this.length+=f},f.prototype.getKey=function(){return""+this.style},f}(),ImageDataWraperType,ImageDataWraper=(function(f){f.base64="base64",f.arraybuffer="arraybuffer",f.bitmap="bitmap",f.empty="empty"}(ImageDataWraperType=ImageDataWraperType||{}),function(){function f(f,e,t){this.hash=f,this.IV=!1,"string"!=typeof e?t&&t.imageBitmap?(this.type=ImageDataWraperType.bitmap,this.status="success",this.data=e):(f=new Blob([e],{type:"image/png"}),(t=URLObject.createObjectURL(f))?(this.data=t,this.type=ImageDataWraperType.arraybuffer,this.status="success"):(this.data="",this.type=ImageDataWraperType.arraybuffer,this.status="error")):(this.data=e,this.type=ImageDataWraperType.base64,this.status="success")}return f.AV=function(f){return createImageBitmap(new Blob([new Uint8Array(f)]))},f.Wb=function(f){var e={data:f.data,type:f.type,status:f.status,IV:f.IV,hash:f.hash};return f.transform(),e},f.prototype.transform=function(){this.IV=!0,this.type===ImageDataWraperType.bitmap&&(this.data="")},f.prototype.destroy=function(){"destroyed"!==this.status&&(this.type===ImageDataWraperType.arraybuffer&&URLObject.revokeObjectURL(this.data),this.data="",this.status="destroyed")},f.prototype.IZ=function(f){var e;this.type===ImageDataWraperType.bitmap?f(this.data):((e=new Image).crossOrigin="",e.onload=function(){f(e)},e.src=this.data)},f}()),EmptyImageDataWraper=new ImageDataWraper("",""),CircleBucket=(EmptyImageDataWraper.type=ImageDataWraperType.empty,function(){function f(){this._b=new SymbolArray,this.uploaded=!1}return f.prototype.wb=function(f,e){var t=this._b.length;return this._b.kb(f[0],f[1],e),this._b.length-t},f.prototype.upload=function(f){this.uploaded||(this.destroy(),this.uploaded=!0,this.zs=f.fe(this._b.Mb,SymbolArray.Rb))},f.prototype.destroy=function(){this.uploaded=!1,this.zs&&this.zs.context&&(this.zs.context.deleteBuffer(this.zs),delete this.zs)},f.prototype.reset=function(){this._b=new SymbolArray,this.uploaded=!1},f}()),SimpleCircleBucket=function(){function f(){this._b=new SimpleSymbolArray,this.uploaded=!1}return f.prototype.wb=function(f){var e=this._b.length;return this._b.kb(f[0],f[1]),this._b.length-e},f.prototype.upload=function(f){this.uploaded||(this.destroy(),this.uploaded=!0,this.zs=f.fe(this._b.Mb,SimpleSymbolArray.Rb))},f.prototype.destroy=function(){this.uploaded=!1,this.zs&&this.zs.context&&(this.zs.context.deleteBuffer(this.zs),delete this.zs)},f.prototype.reset=function(){this._b=new SimpleSymbolArray,this.uploaded=!1},f}(),DistrictLayerStyle=function(){this["stroke-width"]="",this["coastline-stroke"]="",this["nation-stroke"]="",this["province-stroke"]="",this["city-stroke"]="",this["county-stroke"]="",this.fill=""},registry={};function register(f,e,t){void 0===t&&(t={}),Object.defineProperty(e,"yk",{value:f,writable:!1}),registry[f]={mk:e,gk:t.gk||[],wk:t.wk||[]}}function serialize(f,e){if(null==f||"boolean"==typeof f||"number"==typeof f||"string"==typeof f||f instanceof Boolean||f instanceof Number||f instanceof String||f instanceof Date||f instanceof RegExp)return f;if(f instanceof ArrayBuffer)return e&&e.push(f),f;if(Browser.imageBitmap&&f instanceof ImageBitmap)return e&&e.indexOf(f)<0&&e.push(f),f;if(ArrayBuffer.isView(f))return n=f,e&&e.push(n.buffer),n;if(f instanceof ImageData)return e&&e.push(f.data.buffer),f;if(Array.isArray(f)){for(var t=[],r=0,i=f;r=f[r]&&ee[2]&&(t|=2),f[1]e[3]&&(t|=8),t}function bboxClip(f,e){var t=getGeom(f),r=t.type,i="Feature"===f.type?f.properties:{},o=t.coordinates;switch(r){case"LineString":case"MultiLineString":var n=[];return(o="LineString"===r?[o]:o).forEach(function(f){lineclip(f,e,n)}),1===n.length?lineString(n[0],i):multiLineString(n,i);case"Polygon":return polygon(clipPolygon(o,e),i);case"MultiPolygon":return multiPolygon(o.map(function(f){return clipPolygon(f,e)}),i);default:throw new Error("geometry "+r+" not supported")}}function clipPolygon(f,e){for(var t=[],r=0,i=f;r>o;return[(t=t>>o)-(o=getTileSWCoord(i,e))[0],r-o[1]]}var cache={};function lnglat2WGSCoord2(f){var e,t;return cache[f]||(t=33-f,e=degree2Coord(180)/(1<",id:String(o),key:e.ya}),o&&delete i.pI[o]}}},f.prototype.gI=function(f){var r,e,i=this;Browser.DW&&"destroy"===f.data.type&&self.close();var o=(f=f.data).id;f.yI&&this.dI!==f.yI||(""===f.type?(e=this.pI[f.id],delete this.pI[f.id],e&&e("")):""===f.type?(e=this.pI[f.id],delete this.pI[f.id],e&&f.error?e(deserialize(f.error)):e&&e(null,deserialize(f.data))):void 0!==f.id&&this.parent[f.type]&&(r=function(f,e){delete i.pI[o];var t=[],e=serialize(e,t);i.target.postMessage({mI:i.dI,type:"",id:String(o),error:f?serialize(f):null,data:e},t),r=void 0},this.pI[f.id]=null,e=this.parent[f.type](f.mI,deserialize(f.data),r))&&null===this.pI[f.id]&&(this.pI[f.id]=e.cancel))},f.prototype.remove=function(){this.target.removeEventListener("message",this.gI,!1)},f}(),TaskPool=function(){function f(){this.listener={},this.SN={}}return f.prototype.nS=function(t,f){var r=this;return this.SN[t]=!0,this.listener[t]||(this.listener[t]=[]),f(function(f,e){r.$N(t,f,e)})},f.prototype.cancel=function(f){delete this.SN[f]},f.prototype.has=function(f){return Boolean(this.SN[f])},f.prototype.GN=function(f){return this.listener[f]&&0>4]+n[15&o])}return t.join("")}}),u={16:10,24:12,32:14},d=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],p=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],c=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],x=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],w=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],b=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],R=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],m=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],S=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],_=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function I(i){for(var t=[],e=0;e>2][t%4]=r[t],this.nAA[i-e][t%4]=r[t];for(var l,a=0,h=n;h>16&255]<<24^p[l>>8&255]<<16^p[255&l]<<8^p[l>>24&255]^d[a]<<24,a+=1,8!=n)for(t=1;t>8&255]<<8^p[l>>16&255]<<16^p[l>>24&255]<<24,t=n/2+1;t>2][f=h%4]=r[t],this.nAA[i-s][f]=r[t++],h++}for(var s=1;s>24&255]^S[l>>16&255]^k[l>>8&255]^_[255&l]},A.prototype.encrypt=function(i){if(16!=i.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this.aAA.length-1,e=[0,0,0,0],o=I(i),n=0;n<4;n++)o[n]^=this.aAA[0][n];for(var r=1;r>24&255]^y[o[(n+1)%4]>>16&255]^x[o[(n+2)%4]>>8&255]^v[255&o[(n+3)%4]]^this.aAA[r][n];o=e.slice()}for(var l,a=h(16),n=0;n<4;n++)l=this.aAA[t][n],a[4*n]=255&(p[o[n]>>24&255]^l>>24),a[4*n+1]=255&(p[o[(n+1)%4]>>16&255]^l>>16),a[4*n+2]=255&(p[o[(n+2)%4]>>8&255]^l>>8),a[4*n+3]=255&(p[255&o[(n+3)%4]]^l);return a},A.prototype.decrypt=function(i){if(16!=i.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this.nAA.length-1,e=[0,0,0,0],o=I(i),n=0;n<4;n++)o[n]^=this.nAA[0][n];for(var r=1;r>24&255]^w[o[(n+3)%4]>>16&255]^b[o[(n+2)%4]>>8&255]^R[255&o[(n+1)%4]]^this.nAA[r][n];o=e.slice()}for(var l,a=h(16),n=0;n<4;n++)l=this.nAA[t][n],a[4*n]=255&(f[o[n]>>24&255]^l>>24),a[4*n+1]=255&(f[o[(n+3)%4]>>16&255]^l>>16),a[4*n+2]=255&(f[o[(n+2)%4]>>8&255]^l>>8),a[4*n+3]=255&(f[255&o[(n+1)%4]]^l);return a},M.prototype.encrypt=function(i){if((i=r(i)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=h(i.length),e=h(16),o=0;oNumber.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;0<=t;--t)this.g2t[t]=i%256,i=parseInt(i/256)},T.prototype.CAA=function(i){if(16!=(i=r(i,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this.g2t=i},T.prototype.lAA=function(){for(var i=15;0<=i;i--){if(255!==this.g2t[i]){this.g2t[i]++;break}this.g2t[i]=0}},L.prototype.decrypt=L.prototype.encrypt=function(i){for(var t=r(i,!0),e=0;e=polyfill.Ra&&(n[0]-=g[0],n[1]-=g[1]),i.path[t]=n[0],i.path[t+1]=n[1]}break;case"region":for(var r=i.path,l=0;l=polyfill.Ra&&(n[0]-=g[0],n[1]-=g[1]),a[t]=n[0],a[t+1]=n[1];r[l]=a}break;case"building":for(r=i.path,i.oW=[],l=0;l=polyfill.Ra&&(n[0]-=g[0],n[1]-=g[1]),a[t]=n[0],a[t+1]=n[1];r[l]=a,i.oW[l]=h}break;case"poilabel":case"roadName":var s;if(i.pos&&(!i.name&&y&&"oversea"===y&&((s=x.uii(i))&&(i.name=s),i.Wt="oversea"),h=polyfill.XY(d,f.resolution,i.pos[0],i.pos[1]),i.pos=v.project(h[0],h[1])),i.path)if(!f.resolution&&d.d.resolution&&(f.resolution=d.d.resolution),i.shield)h=polyfill.XY(d,f.resolution,i.path[0],i.path[1]),n=v.project(h[0],h[1]),w>=polyfill.Ra&&(n[0]-=g[0],n[1]-=g[1]),i.path[0]=n[0],i.path[1]=n[1];else for(t=0;t=polyfill.Ra&&(n[0]-=g[0],n[1]-=g[1]),i.path[t]=n[0],i.path[t+1]=n[1]}i.du=f.resolution,i.Fp=f.mainkey,i.Ep=f.subkey,i.zIndex=x.parent.vn.Lw(f.mainkey,f.subkey),i.lineCap=u[0],i.RQ=u[1],i.gw={z:d.z,y:d.y,x:d.x},p.push(i)})}),"poilabel"!==c?x.Tw(p):x.Na(p),"poilabel"===c?(i=d.z+"-"+d.x+"-"+d.y,n[c]?n[c][i]?n[c][i].push.apply(n[c][i],p):n[c][i]=p:(n[c]={},n[c][i]=p)):n[c]?n[c].push.apply(n[c],p):n[c]=p}),n.Mw=g,n},r.prototype.A0=function(i,t){return i.minzoom-t.minzoom||i.maxzoom-t.maxzoom},r.prototype.Tw=function(i){return i.sort(function(i,t){return i.zIndex-t.zIndex}),i},r.prototype.Na=function(i){return i.sort(function(i,t){return i.rank-t.rank}),i},r.prototype.xw=function(i,t){var e=i.data,o=new polyfill._w;if(e.Uc=o,!e.$c){e.$c=new polyfill.J_,e.road=e.road||[];var n=i.Mw.slice(0);if(i.zo.z<=polyfill.za&&(n[0]=0,n[1]=0),e.road.push({name:"",rank:1,maxzoom:polyfill.zoomRange[1],minzoom:polyfill.zoomRange[0],path:[i.Ro[0]-n[0],i.Ro[1]-n[1],i.Ro[2]-n[0],i.Ro[1]-n[1],i.Ro[2]-n[0],i.Ro[3]-n[1],i.Ro[0]-n[0],i.Ro[3]-n[1],i.Ro[0]-n[0],i.Ro[1]-n[1]],Fp:-2,Ep:-2,shield:"",shieldType:0,du:13,lineCap:"butt",RQ:"butt"}),e.road)for(var r=0,l=e.road;r KEY异常,错误信息:"+i.info)):e(null,i)}).catch(function(i){"AbortError"!==i.name&&e(i.message||"unknown error")}),{cancel:function(){o.abort()}}):r=i.send("request",t,function(i,t){i?(""===i&&r&&r.cancel&&r.cancel(),r=void 0,e(i)):(r=void 0,e(null,t))})}var DistrictSourceWorker=function(){function DistrictSourceWorker(i){this.parent=i,this.fW={}}return DistrictSourceWorker.prototype.bw=function(i,t,e,o,n){var r=this,l=new XMLHttpRequest;return l.onreadystatechange=function(){var i;4!==l.readyState||200!==l.status&&204!==l.status||(i=new polyfill.tW(new polyfill.pw(new Uint8Array(l.response))),i=r.Ow(i,{x:t.x,y:t.y,z:t.z,projectionId:e,tileSize:o}),n(null,polyfill.Ln({zo:t},i)))},l.open("GET",i,!0),l.responseType="arraybuffer",l.send(),{cancel:function(){l.abort()}}},DistrictSourceWorker.prototype.Ow=function(s,i){var e=i.x,o=i.y,n=i.z,r=i.tileSize,l=i.projectionId,i=(s.z=n,s.x=e,s.y=o,polyfill.ProjectionManager.getProjection(l).getResolution(n)),a=(s.Ro=polyfill.$Q(e,o,n,i,r),s.zS=polyfill.lcs.getLocalByCoord([s.Ro[0],s.Ro[1]]),polyfill.ProjectionManager.getProjection(l).getResolution(n));return polyfill.vx(s.layers,function(h){var i=h.Cw,t=(h.Ah=[],h.scale=a*r/h.extent,polyfill.V[l].Xs(r*e,r*o,n));h.ox=t[0],h.oy=t[1],polyfill.forEach(i,function(i,t){if((i=h.Gw(t)).Dw(),h.Ah.push(i),i.lines&&0=n[n.length-1][0])return this.HU(i,n[n.length-1][1],e);for(var r=1,l=n.length;rn[r-1][0]&&e<=n[r][0]){var a=this.HU(i,n[r-1][1],e),h=this.HU(i,n[r][1],e);if(a instanceof Array){for(var s=new Array(a.length),f=0;ft){e=i.stops[o][1];break}e=i.stops[n-1][1]}else if("interpolate"===i[0]){for(var r=i.slice(3),l=[],a=0;at){e=l[o][1];break}e=l[n-1][1]}}return e}},Tr:function(i,t){if(i){var e=void 0;if(i.stops)for(var o=0,n=i.stops.length;ot){e=i.stops[o][1];break}e=i.stops[n-1][1]}else e=i;return e}},Ir:function(i,t){var e;if(void 0===i)return 0;if("function"==typeof i)return i(t);if("number"!=typeof i){if(i.stops)e=this.Sr(i.base||1,i.stops,t);else if("interpolate"===i[0]){for(var o=i.slice(3),n=[],r=0;rt||void 0!==n.maxzoom&&n.maxzoom","<",">=","<=","in","!in"],i[0])||"object"==typeof i&&i.stops},KU:function(i,t){if(i&&i.length){if(i.indexOf)return i.indexOf(t);for(var e=0;et||(o=Math.max(o,u.zIndex),s=(h=u.paint)["line-color"],r=this.HU(e,s,t),l=this.HU(e,h["line-width"],t),s=void 0===h["line-opacity"]?1:h["line-opacity"],a=this.HU(e,s,t)):"fill"!==i[n].type||u.minzoom&&u.minzoom>t||(o=Math.max(o,u.zIndex),s=(h=u.paint)["fill-color"],f=this.HU(e,s,t))}return{zIndex:o,fillColor:f,fillOpacity:1,strokeWeight:l,strokeColor:r,strokeOpacity:a}},Xr:function(i,t,e){var o,n,r,l,a,h,s,f,u,d,p,c,y=(i=i[0]).paint,x=i.layout;if("symbol"===i.type)return o=this.HU(e,y["text-color"],t),n=this.HU(e,y["text-halo-color"],t),h=this.HU(e,y["text-halo-width"],t),r=void 0===y["icon-opacity"]?1:y["icon-opacity"],r=this.HU(e,r,t),y=void 0===y["text-opacity"]?1:y["text-opacity"],y=this.HU(e,y,t),l=a=void 0,0===h&&(n=""),x["icon-image"]&&(a=this.HU(e,x["icon-image"],t),h=this.kr[a])&&r&&(h.height,l=[-h.width/2,-h.height/2,h.width,h.height,h.x,h.y,h.width,h.height]),h=this.HU(e,x["icon-rotation-alignment"],t),s=x["text-max-width"],f=this.HU(e,x["text-anchor"]||"center",t),(u=this.HU(e,x["text-font"],t)||"Microsoft YaHei")instanceof Array&&(u=u.join(" ")),d=x["text-offset"]?this.HU(e,x["text-offset"],t):[0,0],p=this.HU(e,x["text-size"],t),c="",y&&x["text-field"]&&(c=this.HU(e,x["text-field"]||"{name}",t)),{zIndex:i.zIndex,Jr:h,Kr:o||"black",Qr:n,th:(i.minzoom||1)+.5,ih:(i.maxzoom||20)+.5,eh:r,nh:a,qU:l,oh:s,textAnchor:f,ah:u,sh:d,rh:p,name:c}},lh:function(i,t,e){var o=[],n=this.Pr(i,t,e);return n&&(n.type="line",o.push(n)),(n=this.uh(i,t,e)).length&&o.push.apply(o,n),o},uh:function(i,t,e){for(var o=[],n=0;n=o[o.length-1][0])return this.HU(i,o[o.length-1][1],e);for(n=1,r=o.length;n"===t[0]?this.HU(i,t[1],e)>this.HU(i,t[2],e):"<"===t[0]?this.HU(i,t[1],e)="===t[0]?this.HU(i,t[1],e)>=this.HU(i,t[2],e):"<="===t[0]?this.HU(i,t[1],e)<=this.HU(i,t[2],e):"in"===t[0]?-1t[1].zIndex?1:-1}),i.polygons=e,i.Dh=o,delete i.layers},Ph:function(i){i.type,i.lines},jh:function(i,t,e,o){this.mh=3;var n,r=t.vt,l=(r.labels=[],[]);for(n in r.layers)if(r.layers.hasOwnProperty(n)){var a=r.layers[n],h=a.Ah;l.push(n);for(var s=0,f=h.length;sthis.layers.length&&(this.layers=l),o(null,{vt:r})}},MapboxStyle=function(){function i(i){var t=null,e="";i&&((i=i.KG)&&i.styles&&(t=JSON.parse(i.styles).layers),i)&&i.vectorMapForeign&&(e=i.vectorMapForeign),mbStyle.Rr(t,e)}return i.prototype.getMapboxStyle=function(){return mbStyle},i}(),MapboxSourceWorker=function(){function i(i){this.parent=i,this.id="mapbox",this.sQ={},this.yQ={},this.kQ={}}return i.prototype.YE=function(i){var t=polyfill.Util.getOptimalZoom(this.WW);i(this.sQ,{ZL:this.WW,optimalZoom:t,cb:function(){}}),this.sQ={}},i.prototype.bw=function(i,n,r,l,t,e,a){var h=this,s=new XMLHttpRequest;return s.onreadystatechange=function(){var i,t,e,o;4===s.readyState&&200===s.status&&(o=new polyfill.pw(new Uint8Array(s.response)),(o=new polyfill.tW(o)).nG("mapbox"),i=n.z,t=n.x,e=n.y,o.data={},o=h.Ow(o,{x:n.x,y:n.y,z:n.z,projectionId:r,tileSize:l}),h.wQ(o),o.zo=new polyfill.ca(i,t,e),h.FQ(o),delete o.road,a(null,polyfill.Ln({zo:n},o)))},s.open("GET",i,!0),s.responseType="arraybuffer",s.send(),{cancel:function(){s.abort()}}},i.prototype.wQ=function(i){i.stencil={};var t=new polyfill.fQ,i=(i.stencil.Oc=t,i.stencil.Dc=new polyfill.K_,i.stencil.Dc.Nx(i.MQ));t.add({},i)},i.prototype.Ow=function(e,i){var o=i.x,n=i.y,s=i.z,r=i.tileSize,f=i.projectionId;e.z=s,e.x=o,e.y=n;for(var i=polyfill.ProjectionManager.getProjection(f).getResolution(s),i=polyfill.$Q(o,n,s,i,r),l=(e.Ro=i,e.MQ=[i[0],i[1],i[2],i[1],i[2],i[3],i[0],i[3]],e.zS=polyfill.lcs.getLocalByCoord([e.Ro[0],e.Ro[1]]),e.localCoord=e.zS,Object.keys(e.layers)),t=0;tt.style.zIndex?1:-1}),o.sort(function(i,t){return i.style&&t.style&&i.style.zIndex>t.style.zIndex?1:-1}),i.polygons=o,i.Dh=n,i.data.poilabel=((l={})[i.z+","+i.x+","+i.y]=r,l),delete i.layers},i.prototype.startsWith=function(i,t){return i.startsWith?i.startsWith(t):i.substr(0,t.length)===t},i.prototype.argbHex2Rgba=function(i){for(var t=[],e=0,o=i.length;e=this.data.length?polyfill.vY.finish:polyfill.vY.pause},eb:!1,nb:!0}),i.prototype.hQ=function(i,t){if(i)for(var e=this.SQ(i)||[],o=0,n=e=new LabelFormatMap$1[i.type]({vn:this.vn}).DQ(e,{zoom:t});o=this.PS&&(this.FS=0),this.BS=this.FS}},L.TS.prototype.NS=function(){this.flush(),this.ES=null},L.TS.prototype.US=function(i){this.NS(),this.ES=i},L.TS.prototype.init=function(i){i||(this.BS=0,this.FS=0)},L.TS.prototype.WS=function(i,t){var e=this.FS-i-1;for(e<0&&(e+=this.PS);t--;)e>=this.PS&&(e=0),this.OS[this.FS++]=this.OS[e++],this.FS>=this.PS&&this.flush()},L.TS.prototype.GS=function(i){this.OS[this.FS++]=i,this.FS>=this.PS&&this.flush()},L.TS.prototype.HS=function(i){return(i=this.FS-i-1)<0&&(i+=this.PS),this.OS[i]},L.VS=function(){},L.VS.prototype.US=function(i){this.ES=i},L.VS.prototype.NS=function(){this.ES=null},L.VS.prototype.init=function(){var i=5;for(this.ZS=0,this.YS=-1;i--;)this.ZS=this.ZS<<8|this.ES.JS()},L.VS.prototype.XS=function(i){for(var t,e=0,o=i;o--;)this.YS>>>=1,t=this.ZS-this.YS>>>31,this.ZS-=this.YS&t-1,e=e<<1|1-t,0==(4278190080&this.YS)&&(this.ZS=this.ZS<<8|this.ES.JS(),this.YS<<=8);return e},L.VS.prototype.qS=function(i,t){var e=i[t],o=(this.YS>>>11)*e;return(2147483648^this.ZS)<(2147483648^o)?(this.YS=o,i[t]+=2048-e>>>5,0==(4278190080&this.YS)&&(this.ZS=this.ZS<<8|this.ES.JS(),this.YS<<=8),0):(this.YS-=o,this.ZS-=o,i[t]-=e>>>5,0==(4278190080&this.YS)&&(this.ZS=this.ZS<<8|this.ES.JS(),this.YS<<=8),1)},L.QS=function(i,t){for(;t--;)i[t]=1024},L.KS=function(i){this.tR=[],this.iR=i},L.KS.prototype.init=function(){L.QS(this.tR,1<>7&1,t<<=1,n=n<<1|(o=i.qS(this.uR,(1+e<<8)+n)),e!==o){for(;n<256;)n=n<<1|i.qS(this.uR,n);break}}while(n<256);return 255&n},L.pR=function(){},L.pR.prototype.create=function(i,t){var e;if(!this.vR||this.mR!==t||this.yR!==i)for(this.yR=i,this.xR=(1<>>8-this.mR)]},L.gR=function(){this.wR=new L.TS,this._R=new L.VS,this.kR=[],this.MR=[],this.SR=[],this.RR=[],this.zR=[],this.CR=[],this.AR=[],this.IR=[],this.$R=new L.KS(4),this.LR=new L.oR,this.DR=new L.oR,this.TR=new L.pR,this.PR=-1,this.OR=-1,this.AR[0]=new L.KS(6),this.AR[1]=new L.KS(6),this.AR[2]=new L.KS(6),this.AR[3]=new L.KS(6)},L.gR.prototype.FR=function(i){return!(i<0||(this.PR!==i&&(this.PR=i,this.OR=Math.max(this.PR,1),this.wR.create(Math.max(this.OR,4096))),0))},L.gR.prototype.BR=function(i,t,e){var o=1<>1)-1),r<14)h+=L.nR(this.IR,h-r-1,this._R,l);else if((h=(h+=this._R.XS(l-4)<<4)+this.$R.eR(this._R))<0){if(-1===h)break;return!1}}else h=r;if(d<=h||h>=this.OR)return!1;this.wR.WS(h,o),d+=o,p=this.wR.HS(0)}return this.wR.flush(),this.wR.NS(),this._R.NS(),!0},L.gR.prototype.ER=function(i){var t;return!(i.size<5||(t=i.JS(),!this.BR(t%9,(t=~~(t/9))%5,~~(t/5))))&&(t=i.JS(),t=(t=(t|=i.JS()<<8)|i.JS()<<16)+16777216*i.JS(),this.FR(t))},L.NR=function(i,t){var e,o=new L.gR;if(!o.ER(i))throw new Error("Incorrect stream properties");if(e=i.JS(),e=((e|=i.JS()<<8)|i.JS()<<16)+16777216*i.JS(),i.JS(),i.JS(),i.JS(),i.JS(),o.decode(i,t,e))return!0;throw new Error("Error in data stream")},1e-9);function Ji(i,t,e){for(var o,h,n=i.subarray(t,e),r=0,l="",a=0,r=0;r>>7==0?("0"!==(o=String.fromCharCode(n[r])).charCodeAt(0).toString(16)&&(l+=o),r+=1):252==(252&h)?(a=(3&n[r])<<30,a=(a=(a=(a=(a|=(63&n[r+1])<<24)|(63&n[r+2])<<18)|(63&n[r+3])<<12)|(63&n[r+4])<<6)|63&n[r+5],l+=String.fromCharCode(a),r+=6):248==(248&h)?(a=(7&n[r])<<24,a=(a=(a=(a|=(63&n[r+1])<<18)|(63&n[r+2])<<12)|(63&n[r+3])<<6)|63&n[r+4],l+=String.fromCharCode(a),r+=5):240==(240&h)?(a=(15&n[r])<<18,a=(a=(a|=(63&n[r+1])<<12)|(63&n[r+2])<<6)|63&n[r+3],l+=String.fromCharCode(a),r+=4):224==(224&h)?(a=(31&n[r])<<12,a=(a|=(63&n[r+1])<<6)|63&n[r+2],l+=String.fromCharCode(a),r+=3):192==(192&h)?(a=(63&n[r])<<6,a|=63&n[r+1],l+=String.fromCharCode(a),r+=2):("0"!==(o=String.fromCharCode(n[r])).charCodeAt(0).toString(16)&&(l+=o),r+=1);return l.trim()}var o=new RegExp("^[+\\-]?[0-1]*[.]?[0-1]*$","gi");function Ni(i,t){i=i.toString(),t=t.toString(),i=new Array(32-i.length+1).join("0")+i,t=new Array(32-t.length+1).join("0")+t;var e=o;return e.lastIndex=0,(t=(t+i).toString().match(e))?(i=-1===t[i=0].indexOf(".")?parseInt(t,2):i).toString(36).toUpperCase():"error"}i.getUnifyJson=function(i){var t=[];if(i instanceof ArrayBuffer){var e=new DataView(i),o=0,n=e.getInt16(o+=4,!1);o+=2;try{for(;0e[2]||t[3]>e[3])&&(i[0]=t[0]-e[0],i[1]=t[1]-e[1],i[2]=t[2]-e[2],i[3]=t[3]-e[3],i[0]<0&&0=this.xt[1]||(s=0,n=function(){o+=16;var t=h+a.h(o/r);t>=e.xt[1]||(e.bt(i,t),h+1<=t&&(st.Util.cancelAnimFrame(s),e.lt=!1,e.R="enabled",e.tt(),e.N()),(e.lt||o<400)&&(s=st.Util.requestAnimFrame(n)))},s=st.Util.requestAnimFrame(n))},i.prototype.gt=function(t){var i,n,s=k.mousePos(this.j,t,this._map);s[0]-this.$[0]==0&&s[1]-this.$[1]==0||(this.yt=-1,this.ct<2?this.ct=0:this.rt&&(this.lt=!0,this.wt=!0,this.ft.disable(),s=t.changedTouches.length,i=this._map.getView(),n=this._map.getView().getStatus().zoom-(t.changedTouches[s-1].clientY-this.pt[1])/100,i.setOptions({zoom:n}),this.pt=[t.changedTouches[s-1].clientX,t.changedTouches[s-1].clientY]))},i.prototype.N=function(){this.wt&&2<=this.ct&&(this.ft.enable(),this.tt(),this.lt=!1,this.wt=!1)},i.prototype.bt=function(t,i){var n,s,e,r=this._map.getView(),h=(o=r.getStatus()).center,a=o.zoom,u=o.rotation,o=o.projectionId;this._map.getStatus().zoomEnable&&(t=k.mousePos(this.j,t,this._map),e=[this.j.clientWidth/2,this.j.clientHeight/2],s=this._t(e,t),n=Math.atan((t[1]-e[1])/(t[0]-e[0])),u=-u/180*Math.PI+n,n=[-Math.cos(u)*s,Math.sin(u)*s],t[0]-e[0]<0&&(n[0]=-n[0],n[1]=-n[1]),u=st.V[o].nt(n[0],n[1],a),s=st.V[o].nt(n[0],n[1],i),e=Math.pow(2,i-a),r.setOptions({kt:{pos:t,Mt:i,Rt:s,zt:u,scale:e,center:st.set(st.create(),h[0],h[1])}}),this.G("zooming"))},i.prototype.tt=function(t){t&&0!==t.button||(this.S(),this.C(),this.G("zoomend"))},i.prototype.S=function(){this.j.removeEventListener("dblclick",this.St),this.j.removeEventListener("touchmove",this.dt)},i.prototype.C=function(){delete this.$,delete this.U,delete this.U},i.prototype._t=function(t,i){var n=i[0]-t[0],i=i[1]-t[1];return Math.sqrt(n*n+i*i)},i.prototype.G=function(t,i){this._map.getBindHandler().fireEvent(t,i)};var Q=i;function i(t,i){this.lt=!1,this.wt=!1,this.rt=!0,this.xt=st.zoomRange,this.yt=0,this.ct=0,this.pt=[0,0],this._map=i,this.j=t,this.R="disabled",this.St=this.ut.bind(this),this.dt=this.gt.bind(this)}tt.prototype.isEnabled=function(){return"disabled"!==this.R},tt.prototype.isActive=function(){return"active"===this.R},tt.prototype.enable=function(){this.isEnabled()||(this.R="enabled")},tt.prototype.disable=function(){if(this.isEnabled())switch(k.removeClass(this.j,"mapboxgl-touch-drag-pan"),this.R){case"active":this.R="disabled",this.S(),this.G("zoomstart");break;case"pending":this.R="disabled",this.S();break;default:this.R="disabled"}},tt.prototype.ht=function(){return!!this.lt},tt.prototype.P=function(t){2===t.touches.length&&(t.stopPropagation(),this.G("zoomstart"),this.$=[{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY,pageX:t.touches[0].pageX,pageY:t.touches[0].pageY},{clientX:t.touches[1].clientX,clientY:t.touches[1].clientY,pageX:t.touches[1].pageX,pageY:t.touches[1].pageY}],this.B=this.$,t=this._map.getView(),this.zY=t.getStatus(),this.j.addEventListener("touchmove",this.T),this.j.addEventListener("touchend",this.At))},tt.prototype.Z=function(t){var i,n,s,e,r,o,h,a,u,f,c,l,d,v,p,m,y,b,g,M,w;t.touches.length<2||(this.G("touchmove"),this._map.getStatus().touchZoom&&this.isEnabled()&&(this.lt=!0,i=-this.CF(t),s=(f=(n=this._map.getView()).getStatus()).rotation,e=f.center,r=f.zoom,g=f.projectionId,g=void 0===(o=f.Tt)?g:o,o=f.pitch,h=(f=this._map.getStatus()).rotateEnable,a=f.zoomEnable,u=f.pitchEnable,f=f.touchZoomCenter,c=this.MW.CY,d=l=!1,y=this.It(this.B[0],this.B[1]),p=this.It(t.touches[0],t.touches[1]),v=this.Dt(this.$[0],this.$[1]),w=this.Dt(t.touches[0],t.touches[1]),p=r+(p-y)/180,y=[((y=st.Pt(k.mousePos(this.j,this.$[0],this._map),k.mousePos(this.j,this.$[1],this._map)))[0]+y[2])/2,(y[1]+y[3])/2],b=[this.j.clientWidth/2,this.j.clientHeight/2],m=this.jt(b,y),M=Math.atan((y[1]-b[1])/(y[0]-b[0])),M=s*Math.PI/180+M,M=[-Math.cos(M)*m,Math.sin(M)*m],y[0]-b[0]<0&&(M[0]=-M[0],M[1]=-M[1]),m=st.V[g].nt(M[0],M[1],r),y=st.V[g].nt(M[0],M[1],p),b=Math.pow(2,p-r),g=this.zY.rotation+(w-v),10it?1/450:.01,o=2/(1+Math.exp(-Math.abs(this.$t*o))),this.$t<0&&0!==o&&(o=1/o),r=this.Yt(n),r=Math.min(this._map.getZooms()[1],Math.max(2,this.Vt(r*o))),o=k.mousePos(this.j,t,this._map),t=[this.j.clientWidth/2,this.j.clientHeight/2],u=this._t(t,o),h=Math.atan((o[1]-t[1])/(o[0]-t[0])),a=-a/180*Math.PI+h,h=[-Math.cos(a)*u,Math.sin(a)*u],o[0]-t[0]<0&&(h[0]=-h[0],h[1]=-h[1]),a=st.V[e].nt(h[0],h[1],n),u=st.V[e].nt(h[0],h[1],r),t=Math.pow(2,r-n),this._map.XT(h),i.setOptions({kt:{pos:o,Mt:r,Rt:u,zt:a,scale:t,center:st.set(st.create(),s[0],s[1])}}),this.$t=0)},et.prototype.Yt=function(t){return Math.pow(2,t)},et.prototype.Vt=function(t){return Math.log(t)/Math.LN2},et.prototype._t=function(t,i){var n=i[0]-t[0],i=i[1]-t[1];return Math.sqrt(n*n+i*i)},et.prototype.C=function(){delete this.q,delete this.$,delete this.U,delete this.B},et.prototype.G=function(t,i){this._map.getBindHandler().fireEvent(t,i)},et);function et(t,i){this._map=i,this.j=t,this.R="disabled",this.Wt="wheel",this.$t=0}ot.prototype.isEnabled=function(){return"disabled"!==this.R},ot.prototype.isActive=function(){return"active"===this.R},ot.prototype.enable=function(){this.isEnabled()||(this.R="enabled")},ot.prototype.disable=function(){if(this.isEnabled()){switch(this.R){case"active":this.S(),this.C();break;case"pending":this.S()}this.R="disabled"}},ot.prototype.L=function(t){this.A&&clearInterval(this.A),(2===t.button||t.ctrlKey&&0===t.button)&&(this.j.addEventListener("mousemove",this.T,{passive:!0}),this.j.addEventListener("mouseup",this.I),this.j.addEventListener("mouseleave",this.I),this.D(t))},ot.prototype.D=function(t){this.$=this.U=this.B=k.mousePos(this.j,t,this._map),this.W=[[Date.now(),this.$]],this.R="active"},ot.prototype.Z=function(t){var i,n,s;this.W.length<2&&"active"===this.R&&this.G("dragstart",t),this.G("dragging",t),this.isEnabled()&&(n=k.mousePos(this.j,t,this._map),this.q=t,this.B=st.set(st.create(),n[0],n[1]),this.Y(),this.W.push([Date.now(),this.B]),this.W.length<2||("active"===this.R&&(this.R="pending"),"disabled"!==this.R&&(i=(n=(t=this._map.getView()).getStatus()).rotation,n=n.pitch,s=[this.B[0]-this.W[this.W.length-2][1][0],this.B[1]-this.W[this.W.length-2][1][1]],(!this._map.getStatus().pitchEnable||Math.abs(s[0])>Math.abs(s[1]))&&(s[1]=0),(!this._map.getStatus().rotateEnable||Math.abs(s[0])this.j.clientHeight/2?i-=s[0]/10:i+=s[0]/10),n-=s[1]/this._map.getZooms()[1]*2,t.setOptions({rotation:i,pitch:n}))))},ot.prototype.tt=function(t){switch(this.R){case"active":this.R="enabled",this.C();break;case"pending":this.R="enabled",this.G("dragend",t);break;default:this.G("dragend",t)}this.S()},ot.prototype.S=function(){this.j.removeEventListener("mousemove",this.T),this.j.removeEventListener("mouseup",this.I),this.j.removeEventListener("mouseleave",this.I)},ot.prototype.C=function(){delete this.q,delete this.$,delete this.U,delete this.B},ot.prototype.Y=function(){for(var t=this.W,i=Date.now();0this.Bo&&this.MN()),this},e.prototype.shift=function(){var t=this.Wo;if(t)return this.Wo[o]?(this.Wo=this.Wo[o],this.Wo[h]=void 0):(this.Wo=void 0,this.Zo=void 0),t[o]=t[h]=void 0,t.value.destroy(),this.qo.delete(t.key),--this.size,[t.key,t.value]},e.prototype.find=function(t){return(t=this.qo.get(t))?t.value:void 0},e.prototype.has=function(t){return this.qo.has(t)},e.prototype.delete=function(t){if(t=this.qo.get(t))return this.qo.delete(t.key),t[o]&&t[h]?(t[h][o]=t[o],t[o][h]=t[h]):t[o]?(t[o][h]=void 0,this.Wo=t[o]):t[h]?(t[h][o]=void 0,this.Zo=t[h]):this.Wo=this.Zo=void 0,this.size--,t.value},e.prototype.clear=function(){this.Wo=this.Zo=void 0,this.size=0,this.qo.clear()},e.prototype.AN=function(t){return"loaded"!==t.value.status||(t=t.value.stamp)&&this.wN&&t===this.wN},e.prototype.QF=function(t){this.wN=t},e.prototype.MN=function(){if(this.Wo&&this.Zo)for(var t=this.Wo,i=this.Zo.key;t&&i&&t.key!==i;){if(this.AN(t))this.Go(t);else if(this.shift(),this.size<=this.Bo)return;t=this.Wo}},e);function e(t,i){this.entries=i,"number"!=typeof(this.Bo=t)&&(i=t,t=0),this.size=0,this.Bo=t,this.Wo=this.Zo=void 0,this.qo=new("undefined"!=typeof Map?Map:lt),i&&(this.assign(i),t<1)&&(this.Bo=this.size)}var vt=function(t,i){this.key=t,this.value=i,this[o]=void 0,this[h]=void 0},pt=(mt.prototype.next=function(){var t=this.Yo;return t?(this.Yo=t[o],{done:!1,value:t.key}):{done:!0,value:void 0}},mt);function mt(t){this.Vo=t}bt.prototype.next=function(){var t=this.Yo;return t?(this.Yo=t[o],{done:!1,value:t.value}):{done:!0,value:void 0}};var yt=bt;function bt(t){this.Vo=t}gt=s,st.Ei(wt,gt),wt.prototype.shift=function(){var t=this.Wo;if(t)return this.Wo[o]?(this.Wo=this.Wo[o],this.Wo[h]=void 0):(this.Wo=void 0,this.Zo=void 0),t[o]=t[h]=void 0,this.qo.delete(t.key),this.emit("delete",{key:t.key}),--this.size,[t.key,t.value]},wt.prototype.on=function(t,i,n,s){void 0===n&&(n=this),void 0===s&&(s=!1);for(var e=0,r=Array.isArray(t)?t:[t];e=st.Ra?(u=st.lcs.getSize(),l=c.localCoord.x-p.x,d=c.localCoord.y-p.y,0!=l&&(l*=u[0],v[0]=l),0!=d&&(d*=u[1],v[1]=d),i.optimalZoom>=st.Ra&&st.za>=c.zo.z&&(v[0]=-p.center[0],v[1]=-p.center[1])):i.optimalZoom=u)&&(p=Math.floor(f.x/u),v[0]+=20037508.342789244*p*2),l=d.tag,c.Ro=d.Ro,c.ID(d),c.Sa=v,c.status=d.status,c.tag=l)),c&&(c.stamp=h,c.Sa=v,r.push(c))}var m=i.optimalZoom,t=st.every(e,function(s){return st.some(r,function(t){var i=t.zo.key,n=t.zo.z,n=st.Util.VF(n,m),t=t.tag,t=st.Util.LD(t,n);return i===s.key&&t})}),y=this.map.getOutseaState(),b=this.map.getOutseaDataType(),e=(y&&!b?t=!(b=st.filter(e,function(t){return!(t=n.NE.getTile(t))||!t.boundsStatus||!1!==t.boundsStatus.isInNebulaOversea})).length||st.every(b,function(s){return st.some(r,function(t){var i=t.zo.key,n=t.zo.z,n=st.Util.VF(n,m),t=t.tag,t=st.Util.LD(t,n);return i===s.key&&t})}):this.map.Dpt&&(t=!0),this.jE(r)),b=(t&&(this.a_=!0,this.map.bZ.dynamic.set("firstAllLoaded",!0)),e&&this.map.bZ.dynamic.set("firstLabelDataAllLoaded",!0),{s_:this.a_,fo:!!t&&e,yZ:e,tiles:r,Ca:o,outseaData:void 0});return 0!==r.length&&!t||this.Fo(!0),y&&r.length&&(e=this.map.bZ.MZ.wZ.gZ(),b.outseaData=e),b.tiles=this.UE(r,s),b},r.prototype.Opt=function(t){for(var i=t.length,n=[],s=[],e=0;e>k,p=w.y>>k;g[w=(m=new st.ca(a,v,p)).key]||(k=new st.ca(a,this.fa(v,a),p),y=new st.ca(a,v,p),M=this.ua.getTile(k,!0),g[w]=!0,(M&&M.status===st.TileState.LOADED?f:u).push(y))}f.length&&i.push.apply(i,f),n=u}return i},r.prototype.Da=function(t){var e,r,o;t.length&&(e=this.Pa.z,r=(this.Pa.ja+this.Pa.Oa)/2,o=(this.Pa.Fa+this.Pa.Ea)/2,t.sort(function(t,i){var n=(t.x<t[2]&&(t[2]=i[2]),i[1]t[3]&&(t[3]=i[3])},a.prototype.extendCoordinate=function(t,i){+i[0]t[2]&&(t[2]=i[0]),+i[1]t[3]&&(t[3]=i[1])},a.prototype.hs=function(t){return[t[0],t[1]]},a.prototype.ls=function(t){return[t[2],t[1]]},a.prototype.getCenter=function(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]},a.prototype.us=function(t,i,n,s,e){for(var r,o,h=i*s[0]/2,i=i*s[1]/2,a=Math.cos(n),u=Math.sin(n),f=[-h,-h,h,h],c=[-i,i,-i,i],l=0;l<4;l+=1)r=f[l],o=c[l],f[l]=t[0]+r*a-o*u,c[l]=t[1]+r*u+o*a;return this.ns(f,c,e)},a.prototype.getHeight=function(t){return t[3]-t[1]},a.prototype.getSize=function(t){return[t[2]-t[0],t[3]-t[1]]},a.prototype.cs=function(t){return[t[0],t[3]]},a.prototype.fs=function(t){return[t[2],t[3]]},a.prototype.getWidth=function(t){return t[2]-t[0]},a.prototype.intersects=function(t,i){return t[0]<=i[2]&&t[2]>=i[0]&&t[1]<=i[3]&&t[3]>=i[1]},a.prototype.isEmpty=function(t){return t[2]=i)&&t.kT>=s.kT&&t.KL<=n&&t.kT<=e.kT},u.prototype.intersects=function(t){var i=this.southWest,n=this.northEast,s=t.southWest,e=(t=t.northEast).kT>=i.kT&&s.kT<=n.kT,t=t.KL>=i.KL&&s.KL<=n.KL;return e&&t},u.prototype.getCenter=function(){var t=this.southWest.KL>this.northEast.KL?(this.southWest.KL+this.northEast.KL+360)/2%360:(this.southWest.KL+this.northEast.KL)/2,i=(this.southWest.kT+this.northEast.kT)/2;return new st.LngLat(t,i)},u.prototype.extend=function(t){return this.southWest.setLng(Math.min(this.southWest.KL,t.KL)),this.southWest.setLat(Math.min(this.southWest.kT,t.kT)),this.northEast.setLng(Math.max(this.northEast.KL,t.KL)),this.northEast.setLat(Math.max(this.northEast.kT,t.kT)),this},u.prototype.union=function(t){return this.extend(t.southWest).extend(t.northEast)},u.prototype.toString=function(){return this.southWest.toString()+";"+this.northEast.toString()},u.prototype.toJSON=function(){return[this.southWest.lng,this.southWest.lat,this.northEast.lng,this.northEast.lat]},u.prototype.getWidth=function(){return Math.abs(this.northEast.lng-this.southWest.lng)},u.prototype.getHeight=function(){return Math.abs(this.southWest.lat-this.northEast.lat)},u.prototype.clone=function(){return u.from([this])},u.prototype.check=function(){return!!(this.northEast&&this.southWest&&this.northEast.lat&&this.southWest.lat)},u);function u(){this.className="AMap.Bounds";var i,n,s,e,r,o="undefined"!=typeof Float64Array;if(1===arguments.length&&(arguments[0]instanceof Array||o&&arguments[0]instanceof Float64Array))e=new st.LngLat(arguments[0][0],arguments[0][1],!0),r=new st.LngLat(arguments[0][2],arguments[0][3],!0);else if(2===arguments.length)e=st.parseLngLatData(arguments[0]),r=st.parseLngLatData(arguments[1]);else if(4===arguments.length)e=new st.LngLat(arguments[0],arguments[1]),r=new st.LngLat(arguments[2],arguments[3]);else{if(0!==arguments.length)throw Error("Invalid Object: Bounds("+arguments+")");e=new st.LngLat(-180,-90),r=new st.LngLat(180,90)}(e.KL>r.KL||e.kT>r.kT)&&(o=Math.max(e.KL,r.KL),i=Math.min(e.KL,r.KL),n=Math.max(e.kT,r.kT),s=Math.min(e.kT,r.kT),e=new st.LngLat(i,s),r=new st.LngLat(o,n)),this.southWest=e,this.northEast=r}Pt=ft,st.Ei(Ft,Pt),Ft.prototype.loadData=function(t,i,n){return this.ze=i,!(this.Oo&&!this.io||!this.map.isDOMMode()&&!i||(t=this.c0(t,i,n),this.io?t(this.io,"canvas"):((i=new Image).crossOrigin="",i.onload=t,i.src=this.gs.getImageUrl(),this.Rs=i),0))},Ft.prototype.reLoadImgage=function(t){var s=this;t&&this.Rs&&((t=new Image).crossOrigin="",t.onload=function(t,i){var n;"image"===(i=void 0===i?"image":i)?n=t.target:"canvas"===i&&(n=t),s._s&&s._s.update(n),s.Fo(!0)},t.src=this.gs.getImageUrl(),this.Rs=t)},Ft.prototype.c0=function(t,e,r){var o=this;return function(t,i){var n,s;void 0===i&&(i="image"),e&&(n=void 0,"image"===i?(n=t.target,s=n,o._s?o._s.update(s):(o._s=e.createTexture(s,{Zi:!0}),o._s.bind(e.gl.CLAMP_TO_EDGE,e.gl.LINEAR,e.gl.LINEAR)),o.Fo(!0)):"canvas"===i&&(s=o.mmt(n=t,function(){o._s?o._s.update(s):(o._s=e.createTexture(s,{Zi:!0}),o._s.bind(e.gl.CLAMP_TO_EDGE,e.gl.LINEAR,e.gl.LINEAR)),o.Fo(!0)}))),r()}},Ft.prototype.getData=function(t){if(this.Oo&&this._s){(i=this.gs.getBounds())instanceof l&&(i=i.toJSON());var n=st.lcs.getLocalByCoord([t.centerCoord[0],t.centerCoord[1]]),e=(s=st.ProjectionManager.getProjection(t.projectionId)).project(i[0],i[1]),s=s.project(i[2],i[3]),r=[0,0,0,0];if(t.optimalZoom>=st.Ra){for(var i=st.lcs.getLocalByCoord([e[0],e[1]]),t=st.lcs.getLocalByCoord([s[0],s[1]]),o=st.lcs.getSize(),r=[i.x-n.x,i.y-n.y,t.x-n.x,t.y-n.y],h=0;h>>25)+s|0)&s|~n&e)+i[1]-389564586|0)<<12|r>>>20)+n|0)&n|~r&s)+i[2]+606105819|0)<<17|e>>>15)+r|0)&r|~e&n)+i[3]-1044525330|0)<<22|s>>>10)+e|0;s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&e|~s&r)+i[4]-176418897|0)<<7|n>>>25)+s|0)&s|~n&e)+i[5]+1200080426|0)<<12|r>>>20)+n|0)&n|~r&s)+i[6]-1473231341|0)<<17|e>>>15)+r|0)&r|~e&n)+i[7]-45705983|0)<<22|s>>>10)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&e|~s&r)+i[8]+1770035416|0)<<7|n>>>25)+s|0)&s|~n&e)+i[9]-1958414417|0)<<12|r>>>20)+n|0)&n|~r&s)+i[10]-42063|0)<<17|e>>>15)+r|0)&r|~e&n)+i[11]-1990404162|0)<<22|s>>>10)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&e|~s&r)+i[12]+1804603682|0)<<7|n>>>25)+s|0)&s|~n&e)+i[13]-40341101|0)<<12|r>>>20)+n|0)&n|~r&s)+i[14]-1502002290|0)<<17|e>>>15)+r|0)&r|~e&n)+i[15]+1236535329|0)<<22|s>>>10)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[1]-165796510|0)<<5|n>>>27)+s|0)&e|s&~e)+i[6]-1069501632|0)<<9|r>>>23)+n|0)&s|n&~s)+i[11]+643717713|0)<<14|e>>>18)+r|0)&n|r&~n)+i[0]-373897302|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[5]-701558691|0)<<5|n>>>27)+s|0)&e|s&~e)+i[10]+38016083|0)<<9|r>>>23)+n|0)&s|n&~s)+i[15]-660478335|0)<<14|e>>>18)+r|0)&n|r&~n)+i[4]-405537848|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[9]+568446438|0)<<5|n>>>27)+s|0)&e|s&~e)+i[14]-1019803690|0)<<9|r>>>23)+n|0)&s|n&~s)+i[3]-187363961|0)<<14|e>>>18)+r|0)&n|r&~n)+i[8]+1163531501|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[13]-1444681467|0)<<5|n>>>27)+s|0)&e|s&~e)+i[2]-51403784|0)<<9|r>>>23)+n|0)&s|n&~s)+i[7]+1735328473|0)<<14|e>>>18)+r|0)&n|r&~n)+i[12]-1926607734|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[5]-378558|0)<<4|n>>>28)+s|0)^s^e)+i[8]-2022574463|0)<<11|r>>>21)+n|0)^n^s)+i[11]+1839030562|0)<<16|e>>>16)+r|0)^r^n)+i[14]-35309556|0)<<23|s>>>9)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[1]-1530992060|0)<<4|n>>>28)+s|0)^s^e)+i[4]+1272893353|0)<<11|r>>>21)+n|0)^n^s)+i[7]-155497632|0)<<16|e>>>16)+r|0)^r^n)+i[10]-1094730640|0)<<23|s>>>9)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[13]+681279174|0)<<4|n>>>28)+s|0)^s^e)+i[0]-358537222|0)<<11|r>>>21)+n|0)^n^s)+i[3]-722521979|0)<<16|e>>>16)+r|0)^r^n)+i[6]+76029189|0)<<23|s>>>9)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[9]-640364487|0)<<4|n>>>28)+s|0)^s^e)+i[12]-421815835|0)<<11|r>>>21)+n|0)^n^s)+i[15]+530742520|0)<<16|e>>>16)+r|0)^r^n)+i[2]-995338651|0)<<23|s>>>9)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[0]-198630844|0)<<6|n>>>26)+s|0)|~e))+i[7]+1126891415|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[14]-1416354905|0)<<15|e>>>17)+r|0)|~n))+i[5]-57434055|0)<<21|s>>>11)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[12]+1700485571|0)<<6|n>>>26)+s|0)|~e))+i[3]-1894986606|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[10]-1051523|0)<<15|e>>>17)+r|0)|~n))+i[1]-2054922799|0)<<21|s>>>11)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[8]+1873313359|0)<<6|n>>>26)+s|0)|~e))+i[15]-30611744|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[6]-1560198380|0)<<15|e>>>17)+r|0)|~n))+i[13]+1309151649|0)<<21|s>>>11)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[4]-145523070|0)<<6|n>>>26)+s|0)|~e))+i[11]-1120210379|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[2]+718787259|0)<<15|e>>>17)+r|0)|~n))+i[9]-343485551|0)<<21|s>>>11)+e|0,t[0]=n+t[0]|0,t[1]=s+t[1]|0,t[2]=e+t[2]|0,t[3]=r+t[3]|0}function c(t){for(var i=[],n=0;n<64;n+=4)i[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return i}function l(t){for(var i=[],n=0;n<64;n+=4)i[n>>2]=t[n]+(t[n+1]<<8)+(t[n+2]<<16)+(t[n+3]<<24);return i}function e(t){for(var e,r,h,o,i=t.length,n=[1732584193,-271733879,-1732584194,271733878],s=64;s<=i;s+=64)u(n,c(t.substring(s-64,s)));for(e=(t=t.substring(s-64)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0;s>2]|=t.charCodeAt(s)<<(s%4<<3);if(r[s>>2]|=128<<(s%4<<3),55>8*n+4&15]+s[t>>8*n&15];return i}(t[i]);return t.join("")}function h(t){return t=/[\u0080-\uFFFF]/.test(t)?unescape(encodeURIComponent(t)):t}function v(t){for(var i=[],n=t.length,s=0;s>2]|=i.charCodeAt(s)<<(s%4<<3);return this.$N(e,n),r=o(this.Jpt),t&&(r=v(r)),this.reset(),r},p.prototype.reset=function(){return this.Zpt="",this.Xpt=0,this.Jpt=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{Hpt:this.Zpt,length:this.Xpt,hash:this.Jpt.slice()}},p.prototype.Mz=function(t){return this.Zpt=t.Hpt,this.Xpt=t.length,this.Jpt=t.hash,this},p.prototype.destroy=function(){delete this.Jpt,delete this.Zpt,delete this.Xpt},p.prototype.$N=function(t,i){var e,n=i;if(t[n>>2]|=128<<(n%4<<3),55>2]|=i[e]<<(e%4<<3);return this.$N(s,n),r=o(this.Jpt),t&&(r=v(r)),this.reset(),r},p.ArrayBuffer.prototype.reset=function(){return this.Zpt=new Uint8Array(0),this.Xpt=0,this.Jpt=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t=p.prototype.getState.call(this);return t.Hpt=function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}(t.Hpt),t},p.ArrayBuffer.prototype.Mz=function(t){return t.Hpt=function(t,i){for(var n=t.length,s=new ArrayBuffer(n),e=new Uint8Array(s),r=0;r>2]|=t[s]<<(s%4<<3);if(r[s>>2]|=128<<(s%4<<3),55'+t+"",s.scrollWidth),r=Math.log2?1<'+(new XMLSerializer).serializeToString(c)+document.querySelector("style").outerHTML+"").replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23"))&&((i=new Image).onload=function(t){a(i,n,s)},i.src=t)},o.src=r.attributes.src.nodeValue}(i)}else{var n,t=(t='data:image/svg+xml;charset=utf-8,'+(new XMLSerializer).serializeToString(c)+document.querySelector("style").outerHTML+"").replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23"),s=h.offsetWidth,e=h.offsetHeight;t&&((n=new Image).onload=function(t){a(n,s,e)},n.src=t)}}else console.log("未获取都转换dom节点")},f.prototype.Spt=function(t,i,n,s){var e=new Image;DomToImage.dpt(t,{width:i,height:n,ppt:1}).then(function(t){e.src=t,s(e,i,n)}).catch(function(t){console.error(t)})},f.prototype.Wpt=function(t,s){var e=this,r=t.querySelectorAll("img"),o=r.length,h=new Map;if(0===o)s(h);else for(var i=0;i\n '+n+"\n ","data:image/svg+xml;charset=utf-8,"+encodeURIComponent(t)},f.prototype.Npt=function(t,i){var n=new Image;n.onload=function(){i(n)},n.onerror=function(){console.error("无法从SVG数据创建图像")},n.src=t},f.prototype.imt=function(s){return new Promise(function(t,i){var n=new Image;n.onload=function(){return t(n)},n.onerror=i,n.src=s})},f.prototype.qL=function(t,i){void 0===t&&(t={});var n=this.R_,s=this.z_,n=(this.CL=new st.eG({R_:n,z_:s}),this.CL.setRichtoImage(this.Qpt),this.Us),s={from:"labelsLayer",zoom:this._map.getView().getOptions().zoom,center:n.center},t=(st.assign(s,t),this.CL.Ns(this.Ts,s));this._map&&this._map.isDOMMode()?this.gS=t:this.gS=new st.La(null,t),this.gS.zo=n,i&&i(t)},f.prototype.Ps=function(t){var i,n,s,e,r,o,h,a,u,f,c,l,d,v,p,m,y,b,g;if(!t||"AMap.LabelMarker"===t.type)return i=this._map.getProjection(),this.AL={},c=t.getOptions(),(n=t._position)?(s=[st.tc.Mp,st.tc.Rp],e=void 0===(e=c.zooms)?s:e,r=c.opacity,o=c.rank,p=c.icon,h=c.richText,a=c.text,u=c.zIndex,f=c.rotation,c=void 0===(c=c.visible)||c,l=st.Bs(n)?n.toJSON():n,d=a&&a.content||"",v=a&&a.style,p&&p.image&&(this.Fs[p.image]=1),a&&a.content&&this.Ws(a.content),p=p&&p.image?[{type:"image",image:p.image||"",size:p.size,clipOrigin:p.clipOrigin,clipSize:p.clipSize,offset:p.offset,anchor:p.anchor,retina:p.retina}]:{},g=y=0,v&&(y=!v.strokeWidth&&v.strokeColor?1:v.strokeWidth||0,m=!v.strokeColor&&v.strokeWidth?"#fcfcfc":v.strokeColor,g=!v.borderWidth&&v.borderColor?1:v.borderWidth||0,b=!v.borderColor&&v.strokeWidth?"#ccc":v.borderColor),m=v?{fontFamily:v.fontFamily,fontSize:v.fontSize,fontWeight:v.fontWeight,fillColor:v.fillColor,strokeColor:m,strokeWidth:y,borderColor:b,borderWidth:g,padding:this.Gs(v.padding||[3]),backgroundColor:v.backgroundColor,fold:v.fold}:{},y=st.labelsUtil.Jj(e,a&&a.zooms||s),b=a&&d?{txt:a.content||"",direction:a.direction,offset:a.offset,zooms:y,style:m}:{},g=i.project(l[0],l[1]),{data:{id:t.hS,name:d,txt:d,position:[g[0],g[1],n[2]||0],positionType:"lnglat",extData:{id:t.hS},rank:o,rotation:f,richText:h,zooms:e},opts:{visible:c,opacity:r,zooms:e,zIndex:u,icon:p,richText:h,text:b,rotation:f,height:n[2]||0}}):null},f.prototype.Ws=function(t){var i=this;void 0===t&&(t=""),Array.from(t).forEach(function(t){i.Es[t]=1})},f.prototype.Os=function(t){st.Bs(t)?this.Us=st.lcs.getLocalByCoord([t.KL,t.kT]):this.Us=st.lcs.getLocalByCoord(t)},f.prototype.Gs=function(t){if("string"==typeof t&&(t=(t=t.trim()).split(" ")),"[object Array]"!==Object.prototype.toString.apply(t))return[3,3,3,3];for(var i=t.length,n=0;n=st.Ra&&(b.Ro[0]-=l.center[0],b.Ro[1]-=l.center[1],b.Ro[2]-=l.center[0],b.Ro[3]-=l.center[1]),this.ze?b.data={Hs:l,texture:h.data.texture,Js:h.data.Js,zs:this.ze.fe(new Float32Array([b.Ro[0],b.Ro[1],0,1,b.Ro[2],b.Ro[1],1,1,b.Ro[0],b.Ro[3],0,0,b.Ro[2],b.Ro[1],1,1,b.Ro[2],b.Ro[3],1,0,b.Ro[0],b.Ro[3],0,0]),16)}:(b.data=h.data,b.data.Hs=l),b.data)&&(b.status=st.TileState.LOADED)),b.data&&(t.optimalZoom>=st.Ra&&b.data.Hs?(d=st.lcs.getSize(),a=b.data.Hs.x-y.x,f=b.data.Hs.y-y.y,0!=a&&(a*=d[0],m[0]=a),0!=f&&(f*=d[1],m[1]=f),t.optimalZoom>=st.Ra&&st.za>=b.zo.z&&(m[0]=-y.center[0],m[1]=-y.center[1])):t.optimalZoomthis.Qs[1]&&(i=this.Qs[1],n=s.getResolution(i)),this.Xa),e=20037508.342789244,r=t[0]+e,o=-(t[3]-e),h=t[2]+e,r=r/n,o=o/n,t=-(t[1]-e)/n;return{Oa:Math.floor(h/n/s),Ea:Math.min((1<this.Qs[1]&&(s=this.Qs[1]),o.getResolution(s),[]),a=[],u=!0,f=r,c=f.ja;c<=f.Oa;c+=1)for(var l=f.Fa;l<=f.Ea;l+=1){var d=new st.ca(s,this.fa(c,s),l),v=this.ua.getTile(d),p=(this.PF(d,t.projectionId),new st.ca(s,c,l));(v?v.status===st.TileState.LOADED||v.status===st.TileState.ERROR?a:(u=!1,n):(u=!1,h.push(d),n)).push(p)}return a.length&&i.push(a),this.Pa=r,this.Fo(u),h},Yt.prototype.da=function(t,i,n,s){if(t=t.optimalZoom,this.Za="overlay"!==this.layer.type,this.qa="overlay"!==this.layer.type,this.Za)for(var e=Math.min(this.xt[1],t+2),r=t+1;n.length&&r<=e;r+=1){for(var o=[],h=[],a=r,u=n.length-1;0<=u;--u)for(var f=n[u],c=f.x<<1,l=f.y<<1,d=1;0<=d;--d)for(var v=1;0<=v;--v){var p=new st.ca(a,this.fa(c+d,a),l+v),m=this.ua.getTile(p),y=new st.ca(a,c+d,l+v);(m&&m.status===st.TileState.LOADED?h:o).push(y)}h.length&&i.push(h),n=o}if(this.qa)for(var b=this.xt[0],r=t-1;n.length&&b<=r;--r){for(var h=[],o=[],g={},u=n.length-1;0<=u;--u){var M=n[u],a=r,w=M.z-a,d=M.x>>w,v=M.y>>w;g[M=(p=new st.ca(a,this.fa(d,a),v)).key]||(m=this.ua.getTile(p),g[M]=!0,(m&&m.status===st.TileState.LOADED?h:o).push(new st.ca(a,d,v)))}h.length&&i.push(h),n=o}return i},Yt.prototype.ma=function(){var t,i=new RegExp(/\{(\w|\,)+\}/g);return i.test(this._tileUrl)?(t=this._tileUrl.match(i)[0].replace(/[\{|\}]/g,"").split(","),this.tr++,t&&this.tr>=t.length&&(this.tr=0),this._tileUrl.replace(i,t[this.tr])):this._tileUrl},Yt.prototype.Ys=function(l,d,v,p){var m;if(!(this.aa.optimalZoomthis.xt[1])){this.Da(l);for(var y=this,i=0,n=l.length;ist.za&&(o.Ro[0]-=i.center[0],o.Ro[1]-=i.center[1],o.Ro[2]-=i.center[0],o.Ro[3]-=i.center[1]),n=d.fe(new Float32Array([o.Ro[0],o.Ro[1],0,1,o.Ro[2],o.Ro[1],1,1,o.Ro[0],o.Ro[3],0,0,o.Ro[2],o.Ro[1],1,1,o.Ro[2],o.Ro[3],1,0,o.Ro[0],o.Ro[3],0,0]),16),(e=(s=document.createElement("canvas")).getContext("2d"))&&(r=this.Xa,s.height=s.width=r,s.style.height=s.style.width=r+"px",e.beginPath(),e.moveTo(0,0),e.lineTo(r,0),e.lineTo(r,r),e.lineTo(0,r),e.lineTo(0,0),e.lineWidth=1,e.font="20px Verdana",e.fillStyle="#ff0000",e.strokeStyle="#FF0000",e.strokeRect(0,0,r,r),e.fillText("z: "+o.zo.z,10,30),e.fillText("x: "+o.zo.x,10,60),e.fillText("y: "+o.zo.y,10,90),e.stroke()),(r=d.createTexture(s,{Zi:!0})).bind(d.gl.MIRRORED_REPEAT,d.gl.LINEAR,d.gl.LINEAR_MIPMAP_NEAREST),o.data={texture:t,zs:n,Js:r,Hs:i}),o.status=st.TileState.LOADED,p()}r=u[0],h=f[0],a=f[1],e=u[1],o.Ro=[r,a,h,e],o.status=st.TileState.LOADING,"AMap.TileLayer.Flexible"===y.layer.CLASS_NAME||"AMap.TileLayer.WMTS"===y.layer.CLASS_NAME||"AMap.TileLayer.WMS"===y.layer.CLASS_NAME?n.createTile(t.x,t.y,t.z,function(t){d?c.call(this,t):(o.data=t,o.status=st.TileState.LOADED)}.bind(y),function(){o.status=st.TileState.ERROR,p()}):(f=new Image,"w"===(null==(m=y.map)?void 0:m.baseRender)&&(f.crossOrigin="anonymous"),f.onload=c.bind(y),"d"===(null==(m=y.map)?void 0:m.baseRender)&&0i[2]&&s>i[3])},Yt.prototype.TB=function(){var t=!1;return this.layer.getState().detectRetina&&(t=!0),!("d"!==st.Support.baseRender||!st.Support.Ue||!st.Support.$e)||t};var Ut,_t=Yt;function Yt(t,i,n,s){return(i=Ut.call(this,t,i,n,s)||this).ua=new xt(st.Support.$e?200:400),i.Xa=256,i.sa=[],i.Zs=[],i.tr=-1,i.qa=!0,i.Za=!0,i.xt=t.zooms,i.Qs=t.dataZooms,i.Xa=t.tileSize,i._tileUrl=t.tileUrl,i}Zt=ft,st.Ei(Jt,Zt),Jt.prototype.loadData=function(t,i,n){return this.ze=i,this.Oo||(this.Fo(!0),n()),!0},Jt.prototype.getData=function(t){if(this.ir=t.bounds,this.Oo){var i=st.lcs.getLocalByCoord([t.centerCoord[0],t.centerCoord[1]]),s=(n=st.ProjectionManager.getProjection(t.projectionId)).project(this.ir[0],this.ir[1]),n=n.project(this.ir[2],this.ir[3]),e=[0,0,0,0];if(t.optimalZoom>=st.Ra){for(var t=st.lcs.getLocalByCoord([s[0],s[1]]),s=st.lcs.getLocalByCoord([n[0],n[1]]),r=st.lcs.getSize(),e=[t.x-i.x,t.y-i.y,s.x-i.x,s.y-i.y],o=0;o=st.Ra&&c.data.Hs?(u=st.lcs.getSize(),f=c.data.Hs.x-d.x,a=c.data.Hs.y-d.y,0!=f&&(f*=u[0],l[0]=f),0!=a&&(a*=u[1],l[1]=a),n>=st.Ra&&st.za>=c.zo.z&&(l[0]=-d.center[0],l[1]=-d.center[1])):n>w,v=M.y>>w;g[M=(p=new st.ca(a,this.fa(d,a),v)).key]||(m=this.ua.getTile(p),g[M]=!0,(m&&m.status===st.TileState.LOADED?h:o).push(new st.ca(a,d,v)))}h.length&&i.push.apply(i,h),n=o}return i},c.prototype.fa=function(t,i){for(var n=1<<(i=i||this.aa.optimalZoom);t<0||n<=t;)t=n<=t?t-n:t<0?n+t:t;return t},c.prototype.vX=function(t,i){var n=[-180,-90],s=[180,90],r=(e=st.ProjectionManager.getProjection("EPSG:3857")).project(256*t+n[0],s[1]-256*i),e=e.project(256*(t+1)+n[0],s[1]-256*(i+1));return[r[0],r[1],e[0],e[1]]},c.prototype.jE=function(t){for(var i=!!t.length,n=0,s=t;n=st.Ra&&l.data.Hs?(f=st.lcs.getSize(),c=l.data.Hs.x-v.x,u=l.data.Hs.y-v.y,0!=c&&(c*=f[0],d[0]=c),0!=u&&(u*=f[1],d[1]=u),d[0]=-v.center[0],d[1]=-v.center[1]):(d[0]=v.center[0],d[1]=v.center[1])),l&&(l.Sa=d,l.stamp=h,o.push(l))}return s=!(n=st.filter(s,function(t){return!(!(t=i.NE.getTile(t))||!t.boundsStatus||!1!==t.boundsStatus.isInNebulaOversea)})).length||st.every(n,function(i){return st.some(o,function(t){return t.zo.key===i.key})}),n=this.jE(o),s&&(this.a_=!0,this.map.bZ.dynamic.set("firstAllLoaded",!0)),this.a_&&this.map.bZ.dynamic.set("firstLabelDataAllLoaded",!0),s&&this.Fo(!0),{s_:this.a_,fo:!!s,yZ:n,tiles:o}},mi.prototype.Ia=function(){this.map.on("tileSdfInfoFinished",this.Aa.bind(this))},mi.prototype.ha=function(t,i,n,s){for(var e=this.layer.getSourceConfig().dataZooms,e=(i=Math.max(Math.min(i,e[1]),e[0])-1,n=st.ProjectionManager.getProjection(s.projectionId).getResolution(i),this.Xa),s=20037508.342789244,r=t[0]+s,o=-(t[3]-s),h=t[2]+s,r=r/n,o=o/n,t=-(t[1]-s)/n,a=Math.floor(h/n/e),u=Math.min((1<this.xt[1])){this.Da(h);var i=this.map.mapStyle.vn.MS("traffic");i&&i.multiFillColors&&((i=i.multiFillColors).congested&&i.congested,i.slow&&i.slow,i.smooth&&i.smooth,i.seriousCongested&&i.seriousCongested,i.unknown)&&i.unknown;for(var T=this.layer.getOptions().rZ,a=this,n=0,s=h.length;nst.za;A&&(w.Ro[0]-=x.center[0],w.Ro[1]-=x.center[1],w.Ro[2]-=x.center[0],w.Ro[3]-=x.center[1]),w.request=yi.Ajax(i,{},function(t,i){w.data={};try{i=JSON.parse(i.data)}catch(t){return w.status=st.TileState.LOADED,void C()}if(i=i.data[M.join("_")],"complete"===t&&i){for(var n=new bi,s=new st.J_,e=0,r=i.length;e=st.Ra?(c=st.lcs.getSize(),v=d.localCoord.x-u.x,p=d.localCoord.y-u.y,0!=v&&(v*=c[0],m[0]=v),0!=p&&(p*=c[1],m[1]=p),i.optimalZoom>=st.Ra&&st.za>=d.zo.z&&(m[0]=-u.center[0],m[1]=-u.center[1])):i.optimalZoom=c)&&(v=Math.floor(l.x/c),m[0]+=20037508.342789244*v*2),p=y.gB,d.Ro=y.Ro,d.ID(y),d.Sa=m,d.status=y.status,d.tag=p,d.gB=p)),d&&(d.stamp=h,d.Sa=m,r.push(d))}var b=i.optimalZoom,t=st.every(e,function(s){return st.some(r,function(t){var i=t.zo.key,n=t.zo.z,n=st.Util.VF(n,b),t=t.gB,t=st.Util.LD(t,n);return i===s.key&&t})}),g=this.map.getOutseaState(),M=this.map.getOutseaDataType(),e=(g&&!M?t=!(M=st.filter(e,function(t){return!(t=n.NE.getTile(t))||!t.boundsStatus||!1!==t.boundsStatus.isInNebulaOversea})).length||st.every(M,function(s){return st.some(r,function(t){var i=t.zo.key,n=t.zo.z,n=st.Util.VF(n,b),t=t.gB,t=st.Util.LD(t,n);return i===s.key&&t})}):this.map.Dpt&&(t=!0),r&&0<=r.length&&this.Fo(!0),this.jE(r)),M=(t&&(this.a_=!0,this.map.bZ.dynamic.set("firstAllLoaded",!0)),e&&this.map.bZ.dynamic.set("firstLabelDataAllLoaded",!0),t&&e&&this.Fo(!0),{s_:this.a_,fo:!!t&&e,yZ:e,tiles:r,Ca:o,outseaData:void 0});return g&&r.length&&(t=this.map.bZ.MZ.wZ.gZ(),M.outseaData=t),M.tiles=this.UE(r,s),M},d.prototype.Opt=function(t){for(var i=t.length,n=[],s=[],e=0;e>k,p=w.y>>k;g[w=(m=new st.ca(a,v,p)).key]||(k=new st.ca(a,this.fa(v,a),p),y=new st.ca(a,v,p),M=this.ua.getTile(k,!0),g[w]=!0,(M&&M.status===st.TileState.LOADED?f:u).push(y))}f.length&&i.push.apply(i,f),n=u}return i},d.prototype.Da=function(t){var e,r,o;t.length&&(e=this.Pa.z,r=(this.Pa.ja+this.Pa.Oa)/2,o=(this.Pa.Fa+this.Pa.Ea)/2,t.sort(function(t,i){var n=(t.x<this.xt[1])){this.Da(a);for(var d=this,i=0,n=a.length;ist.za&&(o.Ro[0]-=t.center[0],o.Ro[1]-=t.center[1],o.Ro[2]-=t.center[0],o.Ro[3]-=t.center[1]),i=u.fe(new Float32Array([o.Ro[0],o.Ro[1],0,1,o.Ro[2],o.Ro[1],1,1,o.Ro[0],o.Ro[3],0,0,o.Ro[2],o.Ro[1],1,1,o.Ro[2],o.Ro[3],1,0,o.Ro[0],o.Ro[3],0,0]),16),!l.Rs){var n=document.createElement("canvas"),s=n.getContext("2d");if(s){n.height=n.width=256,n.style.height=n.style.width="256px",s.font="20px PingFangSC-Light, sans-serif",s.fillStyle="rgba(117, 125, 123, 0.5)",s.rotate(-15*Math.PI/180);for(var e="未获得高德地图商用授权",r=0;r=this.map.getZooms()[0]&&(this.bt=r,this.du=n.getResolution(this.bt),r=(t=this.mu).Rt,t=t.zt,(s=this.lu(n))[0]=s[0]-t[0]+r[0],s[1]=s[1]-t[1]+r[1],e=n.unproject(s[0],s[1]),this.hu=e,st.Pl(this.uu,s[0],s[1],0),this.vu(),this.cu.setPosition(this.fu()),this.mu=void 0)}!this.h_()&&i&&this.map.setNeedUpdate(!0)},m.prototype.getOptions=function(){return{zoom:this.bt,center:this.hu,rotation:this.nu,projectionId:this.su,pitch:0}},m.prototype.getStatus=function(){var t=st.Zl(),i=st.Zl(),n=st.Zl(),s=(this.xu(t,i,n),st.Util.getOptimalZoom(this.bt));return{pitch:this.Pu,size:this._size,rotation:this.nu,zoom:this.bt,optimalZoom:s,resolution:this.du,optimalResolution:st.ProjectionManager.getProjection(this.su).getResolution(s),center:this.hu,bounds:t,boundsCoord:i,transformedBoundsCoord:n,centerCoord:this.uu,projectionId:this.su,mvpMatrix:this.cu.Vl(),viewMode:this.type,skyHeight:this.EF(),fov:60}},m.prototype.bu=function(t){this.hu=[t[0],t[1]],t=st.ProjectionManager.getProjection(this.su).project(this.hu[0],this.hu[1]),st.Pl(this.uu,t[0],t[1],0)},m.prototype.containerTolnglat=function(t,i,n){var s,r=(e=this.getStatus()).centerCoord,e=e.rotation,r=st.V[this.su].transform(r[0],r[1],n),o=(r=0!==e?(n=e/180*Math.PI,e=t-this._size[0]/2,s=-(i-this._size[1]/2),o=Math.sqrt(e*e+s*s),e=Math.atan(e/s)-n,s<0&&(e+=Math.PI),n=o*Math.sin(e),s=o*Math.cos(e),[r[0]+n*this.du,r[1]-s*this.du]):[r[0]+(t-this._size[0]/2)*this.du,r[1]+(i-this._size[1]/2)*this.du],r=st.V[this.su].Xs(r[0],r[1]),st.ProjectionManager.getProjection(this.su).unproject(r[0],r[1]));return o[0]=180=st.Ra||st.Util.getOptimalZoom(t.zoom)>=st.Ra&&st.Util.getOptimalZoom(n)this.$u()||this.Pu>this.$u()?t.pitch=this.$u():(t.pitch<0||this.Pu<0)&&(t.pitch=0),this.Pu=Math.min(t.pitch,this.$u()),this.cu.setPitch(t.pitch)),t.center&&(this.hu=t.center,r=this.lu(i),st.Pl(this.uu,r[0],r[1],0),e=this.fu(),s=i.unproject(r[0],r[1]),this.hu=s,this.cu.Fu(e[0],e[1],0),this.cu.Ou()),t.kt){if(!this.map.getStatus().zoomEnable)return;var n=this.bt,n=(this.bt=Math.min(Math.max(t.kt.Mt,this.map.getZooms()[0]),this.map.getZooms()[1]),this.du=i.getResolution(this.bt),(st.Util.getOptimalZoom(t.kt.Mt)=st.Ra||st.Util.getOptimalZoom(t.kt.Mt)>=st.Ra&&st.Util.getOptimalZoom(n)=st.Ra&&(e.x!==t.x||t.y!==e.y)&&(n=e.x-t.x,s=e.y-t.y,i[0]-=n*st.lcs.getSize()[0],i[1]-=s*st.lcs.getSize()[1]),this.cu.Fu(i[0],i[1],0),this.cu.Ou(),this.bu(r)}this.h_()||this.map.setNeedUpdate(!0)},b.prototype.bu=function(t){var i=st.ProjectionManager.getProjection(this.su),i=(st.Pl(this.uu,t[0],t[1],0),i.unproject(t[0],t[1]));this.hu=i},b.prototype.getOptions=function(){return{size:this._size,zoom:this.bt,center:this.hu,rotation:this.nu,projectionId:this.su,pitch:this.Pu,resolution:this.du}},b.prototype.au=function(){return this.su},b.prototype.ru=function(){return st.ProjectionManager.getProjection(this.su)},b.prototype.getStatus=function(){var t=st.Zl(),i=st.Zl(),n=st.Zl(),s=(this.xu(t,i,n),st.Util.getOptimalZoom(this.bt));return{size:this._size,pitch:this.Pu,rotation:this.nu,zoom:this.bt,optimalZoom:s,resolution:this.du,optimalResolution:st.ProjectionManager.getProjection(this.su).getResolution(s),center:this.hu,bounds:t,boundsCoord:i,transformedBoundsCoord:n,centerCoord:this.uu,projectionId:this.su,mvpMatrix:this.cu.Vl(),modelMatrix:this.cu.Au(),viewMode:this.type,skyHeight:this.EF(),fov:this.cu.Tu}},b.prototype.$u=function(t){return 80},b.prototype.Uu=function(t){var t=void 0!==t?t:this.Pu,i=this.bt,t=Math.max(t/100-.4,0),i=Math.max(4*(i-22),0)/100;return this._size[1]*(t-i)-10},b.prototype.EF=function(){var t=1;return 0<(t=this.Uu())?1-t/this._size[1]*2:1},b.prototype.X=function(t,i){var n,s=this.cu.Cu(),e=this.cu.Au(),r=this._size;return t=t/r[0]*2-1,i=1-i/r[1]*2,s?(r=st.Bu(t,i,-1,1),this.Wu(r,this.tu),n=st.Zl(),st.Gu(n,r,s),r=st.Bu(t,i,1,1),this.Wu(r,this.iu),t=st.Zl(),st.Gu(t,r,s),i=st.Zl(),st.Gu(i,n,e),r=st.Zl(),st.Gu(r,t,e),s=+i[2]/(i[2]-r[2]),[i[0]-s*(i[0]-r[0]),i[1]-s*(i[1]-r[1])]):[0,0]},b.prototype.ku=function(t,i){var n=st.Util.getOptimalZoom(this.bt),s=this.uu,e=this.X(t,i);return t=e[0],i=e[1],n>=st.Ra&&(t+=(e=st.lcs.getLocalByCoord([s[0],s[1]])).center[0],i+=e.center[1]),[t,i]},b.prototype.H=function(t,i,n){void 0===n&&(n=0);var s=this.cu.Su(),e=this.cu.Lu(),t=((r=this.fG)[0]=t,r[1]=i,r[2]=n,this.uG),i=this.cG,n=(st.Gu(t,r,e),st.Gu(i,t,s),st.scale(i,i,1/i[3]),(i[0]+1)/2*this._size[0]),r=(1-i[1])/2*this._size[1];return this.lG(i),this.lG(t),[n,r]},b.prototype._u=function(t,i,n){void 0===n&&(n=0);var s=st.Util.getOptimalZoom(this.bt),e=this.uu;return s>=st.Ra&&(t-=(s=st.lcs.getLocalByCoord([e[0],e[1]])).center[0],i-=s.center[1]),this.H(t,i,n)},b.prototype.containerTolnglat=function(t,i){var t=this.X(t,i),i=0,n=0,s=(st.Util.getOptimalZoom(this.bt)>=st.Ra&&(i=(s=st.lcs.getLocalByCoord([this.uu[0],this.uu[1]]).center)[0],n=s[1]),t[0]+=i,t[1]+=n,st.ProjectionManager.getProjection(this.su).unproject(t[0],t[1]));return s[0]=180=st.Ra&&(i=st.lcs.getLocalByCoord([this.uu[0],this.uu[1]]),t[0]-=i.center[0],t[1]-=i.center[1]),this.H(t[0],t[1],n)},b.prototype.pz=function(){return this.cu},b.prototype.h_=function(){return st.Ru(this.Xl,this.cu.Vl())},b.prototype.aD=function(){return this.Xl=this.cu.Vl(),this.Xl},b.prototype.xu=function(t,i,n){var s=0,e=0,r=this.Uu(),o=(st.Util.getOptimalZoom(this.bt)>=st.Ra&&(s=(o=st.lcs.getLocalByCoord([this.uu[0],this.uu[1]]).center)[0],e=o[1]),st.ProjectionManager.getProjection(this.su)),h=this.X(0,r),a=this.X.apply(this,this._size),r=this.X(this._size[0],r),u=this.X(0,this._size[1]),f=Math.min(h[0],u[0],r[0],a[0])+s,s=Math.max(h[0],u[0],r[0],a[0])+s,c=Math.min(h[1],u[1],r[1],a[1])+e,h=Math.max(h[1],u[1],r[1],a[1])+e,u=o.unproject(f,c),r=o.unproject(s,h),a=(i[0]=f,i[1]=c,i[2]=s,i[3]=h,t[0]=u[0],t[1]=u[1],t[2]=r[0],t[3]=r[1],st.V[this.su].transform(i[0],i[3])),e=st.V[this.su].transform(i[2],i[1]);return n[0]=a[0],n[1]=a[1],n[2]=e[0],n[3]=e[1],t},b.prototype.vu=function(){var t=this._size,i=t[0]*this.du,n=t[1]*this.du,s=(this.cu.setSize([i,n]),this.cu.Eu(),this.cu.dz()),s=(this.tu=s/10,this.iu=50*s,56-this.bt);this.cu.setOptions([i,n],s,t[0]/t[1],this.tu,this.iu),this.cu.Eu()},b.prototype.fu=function(){var t;return st.Util.getOptimalZoom(this.bt)=this.mG.length?st.vY.finish:st.vY.pause},eb:!1,nb:!0});var Jn=Hn;function Hn(t,i){this.lang=t,this.mG=i,this.type="LangSDFTask",this.offset=0,this.result=[]}var Vn={Fdt:["vdata.amap.com","pre-lbs-jsapi-vdata.amap.com","c-webapi.amap.com"],Gdt:function(i){return Vn.Fdt.some(function(t){return-1 KEY异常。")))},e.onerror=function(t){s("error")},e.open("GET",n,!0),e.responseType="arraybuffer",e.send(),{cancel:function(){e.abort()}}},g.prototype.jD=function(){var t=this.GD%this.ND;return this.GD=1+t,this.ED[t]},g.prototype.updateDataVersion=function(t,i){this.emit("updateDataVersion",{version:i})},g.prototype.tv=function(){var t=this;this._map.on("movestart",function(){t.iv=!0,t.ev()}),this._map.on("moveend",function(){t.iv=!1,t.ev()}),this._map.on("dragstart",function(){t._dragging=!0,t.ev()}),this._map.on("dragend",function(){t._dragging=!1,t.ev()}),this._map.on("zoomstart",function(){t.lt=!0,t.ev()}),this._map.on("zoomend",function(){t.lt=!1,t.ev()})},g.prototype.ev=function(){var i=!1;(this._dragging||this.lt||this.iv)&&(i=!0),this.nv!==i&&(this.Uh.send("setMainThreadBusy",i),st.forEach(this.ED,function(t){t.send("setMainThreadBusy",i)})),this.nv=i},g.prototype.WD=function(){for(var t=0;t=this.mG.length?st.vY.finish:st.vY.pause},eb:!1,nb:!0});var js=Ps;function Ps(t,i){this.bY=t,this.mG=i,this.type="SDFCombineTask",this.offset=0,this.result=[]}Fs.prototype.dynamicTextSDFInfoLoaded=function(t){var i=this.map.R_;i&&"SDFManagerBase"!==i.CLASS_NAME&&(i.Ju(t.data),this.Eo())},Fs.prototype.iconImageLoaded=function(t){for(var i=this,t=t.data,e=[],n=0,s=t;nc?Math.floor(c):Math.ceil(c))-c)&&(this.bo=d,e=st.V[this._view.au()],r=200*Math.abs(v)+100,o=new J(0,.6,.15,1),u=h=0,a=function(){h+=16;var t=f._view.getStatus().zoom,i=c+v*o.h(h/r),t=(re[1]),e=n.visible,r=(void 0!==r&&(n.visible=r),r&&(n.visible=!s),this.ZF(i));n.visible&&(n.visible=!r);var r=(s=this._opts).zIndex,o=void 0===(o=s.anchor)?Me.Nm:o,h=void 0===(h=s.offset)?[0,0]:h,a=s.rotate,u=s.scale,f=s.noSelect,c=[0,0];return"number"==typeof(s=s.orientation)?n.rotate=this.dP(s):void 0!==a&&(n.rotate=a),e!==n.visible&&this._map&&(this._map.render(),this._parent)?!(this._parent.aZ=!0):(t?i&&(n.left=i[0]+"px",n.top=i[1]+"px",c=n.translate):(this._getContentSize(),(s=this._getStyleZIndex(r))&&(n.zIndex=s),void 0!==u&&(n.scale=u),i&&(n.left=i[0]+"px",n.top=i[1]+"px"),(o||h)&&(c=this._getOffset(o,h),n.translate=c,n.transformOrigin=-c[0]+"px "+-c[1]+"px"),n.pointerEvents=!0===f?"none":"auto"),a="translate("+c[0]+"px, "+c[1]+"px) scale("+n.scale+") rotate("+n.rotate+"deg)",st.Support.ie&&(n.msTransform=a),n.transform=a,!0)},A.prototype._getStyleZIndex=function(t){return t},A.prototype._getSize=function(){var i=(t=(t=this._opts.size||[])instanceof st.Size?t.toArray():t)[0],t=void 0===(t=t[1])?0:t,s=(n=this._size)[0],n=n[1];return[(void 0===i?0:i)||(void 0===s?0:s),t||(void 0===n?0:n)]},A.prototype._getContentSize=function(){var t=this._style,i=this._getSize(),n=0,s=0;i[0]&&i[1]?(n=i[0],s=i[1]):this.dom&&(i=this.dom,n=Math.ceil(i.offsetWidth)||0,s=Math.ceil(i.offsetHeight)||0,this._size=[n,s]),t.width=n+"px",t.height=s+"px",t.size=[n,s]},A.prototype._applyStyle=function(t){void 0===t&&(t=!1);var i,n,s=this._style,e=this.dom;for(i in s)s.hasOwnProperty(i)&&("visible"===i?(n=s[i]?"block":"none",e.style.display=n):t?"top"!==i&&"left"!==i&&"transform"!==i&&"msTransform"!==i||(e.style[i]=s[i]):"width"===i||"height"===i?"0px"!==s[i]&&(n=this._opts.size)&&"AMap.InfoWindow"!==this.type&&("width"===i&&(e.style[i]=n[0]+"px"),"height"===i)&&(e.style[i]=n[1]+"px"):"translate"!==i&&"scale"!==i&&"rotate"!==i&&(e.style[i]=s[i]))},A.prototype._getOffset=function(t,i){var n=(t=this._getAnchorOffset(t))[0],t=t[1];return[n+i[0],t+i[1]]},A.prototype._getAnchorOffset=function(t){var n=(i=this._style.size)[0],s=i[1],i=Me,e=0,r=0;if(Array.isArray(t))return t;switch(t){case i.Nm:e=0;break;case i.$m:e=-n/2;break;case i.Um:e=-n;break;case i.Bm:e=0,r=-s/2;break;case i.center:e=-n/2,r=-s/2;break;case i.Wm:e=-n,r=-s/2;break;case i.Gm:r=-s;break;case i.Zm:e=-n/2,r=-s;break;case i.qm:e=-n,r=-s}return[e,r]},A.prototype._createDom=function(t,i){return i&&("object"==typeof i&&i instanceof HTMLElement?t.appendChild(i):t.innerHTML=i),t.addEventListener("touchstart",function(t){t.cH="markerContent"}),t},A.prototype._removeContent=function(){this.dom.innerHTML=""},A.prototype._formatSize=function(t){return[t.getWidth(),t.getHeight()]},A.prototype.ZF=function(t){var i,n=this._map;return!!(n&&t&&"3D"===(n=n.getView()).type&&(n=n.Uu(),i=ke,t)&&t[1]-n-i[0]<=0)},A.prototype._getRotationByPoints=function(t,i){var n=i.y-t.y,s=i.x-t.x,e=0;return(0!=n||0!=s)&&(i.x-t.x!=0?(e=Math.atan((i.y-t.y)/(i.x-t.x)),0<=n&&s<0||n<0&&s<=0?e=Math.PI+e:n<0&&0<=s&&(e=2*Math.PI+e)):e=i.y>t.y?Math.PI/2:3*Math.PI/2,Math.round(180*e/Math.PI*10)/10)},A.prototype._getRotationByLngLats=function(t,i){var n=null==(n=this._map)?void 0:n.getProjection().project(t.KL,t.kT),i=(t=null==(t=this._map)?void 0:t.getProjection().project(i.KL,i.kT))[0]-n[0],t=t[1]-n[1],n=0;return(0!=i||0!=t)&&(0!=t?(n=Math.atan(i/t),0<=i&&0h.getWidth()?s=20-r[0]:h.getWidth()h.getHeight()?e=5-r[1]:h.getHeight()h&&(e=h-f[0]-s[1],o=!0),a[1]+s[2]>u&&(r=u-s[2]-f[1],o=!0),c[0]-s[3]<0&&(e=s[3],o=!0),o)&&(h=st.vector.Ip([e,r],n),a=t.containerToLngLat(h).toArray(),u=st.vector.Ip(a,i),f=t.getCenter().toArray(),c=st.vector.Ip(f,u),t.panTo(c))},T.prototype.g_=function(t){var i,n,s=Me;for(n in s)if(s.hasOwnProperty(n)){var e=s[n];if(-1!==t.indexOf(e)){i=e;break}}return i};var Ne,Ge=T;function T(t){(t=Ne.call(this,t=void 0===t?{}:t,{className:Pe.XP,anchor:Be.anchor})||this).type=Pe.uy,t._opts=st.assign({},Be,t._opts),t._originOpts.zIndex||(t._opts.zIndex=Pe.QP);var i=t._opts.size;return i instanceof st.Size&&(t._opts.size=t._formatSize(i)),t.jy(),t}var Ue,_e="AMap.ContextMenu",He=(Ue=si,st.Ei(Ve,Ue),Ve.prototype.addToGroup=function(t){this.Iy&&this._overlays[this.Iy]&&this.Iy!==t.hS&&this._overlays[this.Iy].remove(),this.Iy=t.hS,Ue.prototype.addToGroup.call(this,t)},Ve.prototype.removeFromGroup=function(t){Ue.prototype.removeFromGroup.call(this,t),this.Iy=0},Ve.prototype.vi=function(t){return t=t.target,this.Iy&&t&&k.closest(t,"amap-menu")?this._overlays[this.Iy]:null},Ve.prototype.destroy=function(){this.Uy(),Ue.prototype.destroy.call(this)},Ve.prototype.By=function(){this._map.on("viewchange",this.Wy),this._map.on("click",this.Py)},Ve.prototype.Uy=function(){this._map.off("viewchange",this.Wy),this._map.off("click",this.Py)},Ve);function Ve(t){var n=Ue.call(this,t,{className:""})||this;return n.type=_e,n.className=_e,n.Wy=function(){var t;n.Iy&&(t=n._overlays[n.Iy])&&!t.getOptions().aliveWhenMapClick&&n.removeFromGroup(t)},n.Py=function(t){var i=n.Iy,i=n._overlays[i];k.closest(t.originEvent.target,"amap-info")||!i||i.getOptions().aliveWhenMapClick||(n.Iy=0,i.close())},n._container=n._parent,n.By(),n}qe=ji,st.Ei(Qe,qe),Qe.prototype.open=function(t,i){t&&i?(this._opts.visible=!0,this.add(t),this.setPosition(i),this.emit("open")):this._map&&this._position&&(this._opts.visible=!0,this.updateOverlay(),this.emit("open"))},Qe.prototype.close=function(){this._parent&&(this._opts.visible=!1,this.uZ(),this.emit("close"))},Qe.prototype.addItem=function(t,i,n){this.Zy.push({content:t,fn:i,order:n}),this.qy(this.dom),this.updateOverlay()},Qe.prototype.removeItem=function(t,i){for(var n=this.Zy,s=0;s=st.Ra?(i=st.lcs.getLocalByCoord([t[0],t[1]]),this.Us=i.center):this.Us=[0,0]},hr.prototype.pB=function(t,i){var n=[0,0];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n};var rr,or=hr;function hr(t){this.Us=[0,0],t||console.error("需要传入 map 实例对象。new AMap.CustomCoords(map);"),this.map=t,this.mB()}var ar=[116.397128,39.916527],ur=se;st.Ei(S,ur),S.prototype.setCenter=function(t,i,n){void 0===i&&(i=!1),t instanceof st.LngLat&&(t=t.toJSON()),!i&&this.Ev?this.viewChange({lng:t[0],lat:t[1]},n):this.om({center:t})},S.prototype.getStyleByUserId=function(t,i){return this.qY(t,i)},S.prototype.getCustomTypeByContainerPos=function(t){var i,n,s,e=this.getCustomTypeByPos(t);return e&&e[0]?(i={},s=e[0][0],e={x:e[0][1],y:e[0][2],z:s},n=(t=t.lnglat).lng,t=t.lat,s=st.ZY(s,s,n,t,e),i.tileInnerCoord=s,i.tileCoord=e,i):null},S.prototype.getScreenShot=function(t,i){for(var n=this.getSize(),s=document.createElement("canvas"),e=s.getContext("2d"),r=(t=t||n.width,i=i||n.height,s.width=t,s.height=i,n.width,n.height,this.do.childNodes),o=[],h=0;hthis._opts.zooms[1])},O);function O(t){void 0===t&&(t={});var n=Vo.call(this)||this,i=(n.Ix=function(t){var i;n._opts.path=st.jsonLngLatData(t),(t=go(t))&&(n.ir=l.ms(t),i=n._map)&&("d"===i.baseRender?n.X$(t):n.cE())},t.path),i=(st.iL(i)?(s=i[0],n.Tx(s)):st.eL(i)?(s=i[0][0],n.Tx(s)):st.yL(i)&&(s=i[0][0][0],n.Tx(s)),n.className="Overlay.Polygon",n._opts={fillColor:"#00D3FC",fillOpacity:.5,strokeColor:"#00B2D5",strokeWeight:2,strokeOpacity:.9,strokeStyle:"solid",draggable:!1,extrusionHeight:0,wallColor:"#00D3FC",roofColor:"#00B2D5",bubble:!1,strokeDasharray:[10,5],zIndex:50,extData:{},noSelect:!1,innerOverlay:!1,zooms:st.zoomRange,async:!1},n._opts=n.nY(t),n._checkMap(),n.Ndt=Ko,(new Date).getTime()),s=0;return"performance"in window&&"function"==typeof performance.now&&(s=performance.now()),n.Ndt.constructor={time:i,highResTime:s},n}function th(){var n=null!==$o&&$o.apply(this,arguments)||this;return n.contains=function(t){var i;return!(!n.aE||n.ir&&!n.ir.contains(t))&&(i=n.aE,t=st.parseLngLatData(t),(st.ys(i)?Mo:st.Ox(i)?wo:ko)([t.lng,t.lat],i))},n}$o=Si,st.Ei(th,$o),th.prototype.getOptions=function(){return st.extend({},this._opts)},th.prototype.getArea=function(){var t=this.aE;return t?+Io(t).toFixed(2):0},ih=Oi=th,st.Ei(sh,ih),sh.prototype.init=function(t){t=t||this._opts,this._opts=this.nY(t),this.setBounds(t.bounds)},sh.prototype.setBounds=function(t){t&&(st.xs(t)||(t=new l(t)),this._opts.bounds=t,this.ir=t.clone(),this.cE(),this.to())},sh.prototype.ZB=function(t){var i,n,s;this._map&&(this._needUpdate=!1,i=this._opts.bounds)&&(n=this._map,(s=go(Bo(i)))&&(this.ir=i.clone(),this.aE=s,"d"===n.baseRender?this.X$(s):this.Q$(s,t)),this.to())},sh.prototype.moveWithPixel=function(t,i){var n,s,e;this._map&&(n=this._map,s=(e=this._opts.bounds).southWest.toJSON(),e=e.northEast.toJSON(),s=this._map.getView().ru().moveWithPixel(s,[t,i],n.getZoom()),e=this._map.getView().ru().moveWithPixel(e,[t,i],n.getZoom()),t=new l(s,e),this.setBounds(t))},sh.prototype.moveWithPos=function(t,i){var n,s;this._map&&(n=(s=this._opts.bounds).southWest.toJSON(),s=s.northEast.toJSON(),n=this._map.getView().ru().moveWithPos(n,[t,i]),s=this._map.getView().ru().moveWithPos(s,[t,i]),t=new l(n,s),this.setBounds(t))},sh.prototype.setOptions=function(t){var t=this.nY(t),i=!st.isEqual(this._opts.bounds,t.bounds);this._opts=t,this._checkMap(),i&&this.setBounds(t.bounds),this.to()},sh.prototype.getPath=function(){var t,i,n;if(!this.ir){var s=this._opts.bounds;if(!s)return;this.ir=s.clone()}if(s=this.ir)return this.P$&&(i=s.getSouthWest(),n=s.getNorthEast(),i=this._map.getView().ru().moveWithPos([i.KL,i.kT],this.zx),n=this._map.getView().ru().moveWithPos([n.KL,n.kT],this.zx),s=new l(i,n)),s?Bo(s):t},sh.prototype.getBounds=function(){var t;if(!this.ir){var i=this._opts.bounds;if(!i)return;this.ir=i.clone()}if(i=this.ir)return this.P$?(t=i.getSouthWest(),i=i.getNorthEast(),t=this._map.getView().ru().moveWithPos([t.KL,t.kT],this.zx),i=this._map.getView().ru().moveWithPos([i.KL,i.kT],this.zx),new l(t,i)):this.ir},sh.prototype.getCenter=function(){if(this._opts.bounds)return this._opts.bounds.getCenter()};var ih,nh=sh;function sh(t){void 0===t&&(t={});var n=ih.call(this)||this;return n.className="Overlay.Rectangle",n.contains=function(t){var i=n.getBounds();return!!i&&i.contains(t)},n._opts={fillColor:"#00D3FC",fillOpacity:.5,strokeColor:"#00B2D5",strokeWeight:2,strokeOpacity:.9,strokeStyle:"solid",draggable:!1,bubble:!1,strokeDasharray:[10,5],zIndex:50,extData:{},noSelect:!1,innerOverlay:!1,zooms:st.zoomRange,async:!1},n._opts=n.nY(t),n._checkMap(),n}eh=Oi,st.Ei(oh,eh),oh.prototype.init=function(t){t=t||this._opts,this._opts=this.nY(t),this.setCenterAndRadius(this._opts.center,this._opts.radius)},oh.prototype.setCenter=function(t){this.setCenterAndRadius(t,this._opts.radius)},oh.prototype.setRadius=function(t){this.setCenterAndRadius(this._opts.center,t)},oh.prototype.getCenter=function(){var t=st.parseLngLatData(this._opts.center),t=this._map.getView().ru().moveWithPos([t.KL,t.kT],this.zx);return new st.LngLat(t[0],t[1])},oh.prototype.getRadius=function(){return this._opts.radius},oh.prototype.getPath=function(){var t;return this._opts.center&&this._opts.radius&&(t=Po(this._opts.center,this._opts.radius,st.Support.$e))&&0i)||Math.abs(n.y-t.y)>i)&&(t=t.toJSON(),n=n.toJSON(),s=Math.abs(t[0]-n[0]),t=Math.abs(t[1]-n[1]),s=Math.sqrt(s*s+t*t),t=e._map.getView().Pu||0,s/Math.cos(t)n*n*1&&h.push([o[a][0],o[a][1]]);s.push(h)}u.D_(s)}else u.EI=i,u.D_(u.q$)}},u}ph=Bt,st.Ei(mh,ph),mh.prototype.Tx=function(t){t&&(t=st.Bs(t)?st.ProjectionManager.getProjection("EPSG:3857").project(t.KL,t.kT):st.ProjectionManager.getProjection("EPSG:3857").project(t[0],t[1]),this.Sx=st.lcs.getLocalByCoord(t))},mh.prototype.destroy=function(){this.Px&&(this.Px.destroy(),delete this.Px),ph.prototype.destroy.call(this)},mh.prototype.toGeometry=function(){var t=this._opts.path;if(t)return st.ys(t)?{type:"LineString",coordinates:t}:st.Ox(t)?{type:"MultiLineString",coordinates:t}:void 0},mh.prototype.U_=function(t){this.F_&&!this.E_&&(this.E_=t.createTexture(this.F_,{Zi:!0}),this.E_.bind(t.gl.CLAMP_TO_EDGE,t.gl.LINEAR,t.gl.LINEAR))},mh.prototype.aC=function(t,i){this.rC||(i=function(t){for(var i=document.createElement("canvas"),n=(i.height=1,i.width=4096,i.getContext("2d")),s=n.createImageData(4096,1),e=0,r=0;r<4096;r++){for(var o=void 0;e>1,h=s-n,a=s,u=i[n][0],f=i[n][1],c=i[s][0],l=i[s][1],d=n+1;d 使用 JSAPI 安全模式,代理服务请以_AMapService 作为一级路由"))),{key:config[0],host:config[2],domain:config[17],server:pi,protocol:ji,version:config[4],adcode:config[6],callback:config[5],appname:si,client:xi,markers:ft,pc:"http://gaode.com",mo:"http://m.amap.com",workerUrl:"",YT:Qt,qT:li,y_:st.Support.$e?li:Qt,v_:"\x3c!--v2.0--\x3e © "+(new Date).getFullYear()+" AutoNavi ",db:config[14]||"",JH:config[15]||"",jscode:ra,gaodeserver:Si,vdataProxy:"",keytype:config[19],poiImgVersion:config[20]});return oi=(new Date).getTime(),_t=oa.server+"/v3/log/init?",(s=["platform=JS&s=rsv3&logversion=2.0&product=JsInit&key="+oa.key,"t="+oi]).push("sdkversion=2.0"),s.push("appname="+si),s.push("csid="+st.Util.uuid()),s.push("resolution="+window.screen.width+"*"+window.screen.height),s.push("mob="+(st.Support.$e?1:0)),s.push("vt="+(st.Support.isWebGL?1:0)),s.push("dpr="+window.devicePixelRatio),s.push("scale="+(st.Support.Ue?2:1)),s.push("detect="+st.Support.Ue),oa.jscode?s.push("jscode="+oa.jscode):oa.gaodeserver&&(_t=oa.gaodeserver+"/v3/log/init?"),_t+=s.join("&"),yi.JSONP(_t),function(t){return t[1]&&(ar=t[1].slice(-2),rr=t[1].slice(0,4)),{Map:fr,ImageLayer:pr,createDefaultLayer:Kr,TileLayer:p,NebulaLayer:Ji,Buildings:Jr,Indoor:jh,SkyLayer:ws,DistrictLayer:_h,CanvasLayer:Mr,CustomLayer:Ar,GLCustomLayer:no,LabelsLayer:ys,MassMarks:Sr,Event:st.Event,version:"2.0",plugin:ta,LngLat:st.LngLat,Pixel:st.Pixel,Size:st.Size,Icon:oe,Bounds:l,extent:jt,Marker:Oe,Text:Or,InfoWindow:Ge,ContextMenu:Ke,LabelMarker:Fr,Polygon:Qo,Rectangle:nh,Ellipse:rh,Circle:uh,CircleMarker:dh,Polyline:gh,BezierCurve:Th,OverlayGroup:po,VectorLayer:ns,LayerGroup:ro,Control:Nr,DomUtil:k,Util:st.Util,GeometryUtil:st.GeometryUtil,Browser:_r,UA:{ie:_r.ie,ie9:_r.ie9,ie11:_r.ie11,mobile:_r.mobile,android:_r.android,ios:_r.ios},PlaneGeometryUtil:st.PlaneGeometryUtil,getConfig:ia,WebService:nr,extend:st.extend,Http:yi,addCss:G,BuryPoint:Vr,lcs:st.lcs,convertFrom:er,Heatmap:ho,IndoorMap:Bh,Mapbox:co,BuildingLayer:Jr,Mark:Qh}}});var __AMap_callback=AMap.getConfig().callback,tryGetCallback,tryCallback;return __AMap_callback&&(tryGetCallback=function(){var c=__AMap_callback.split("."),context=window;do{if(!(context=context[c.shift()]))return null}while(c.length);return context||null},tryCallback=function(isFinalTry){var func=tryGetCallback();if(func){if("function"!=typeof func)throw new Error(__AMap_callback+" is not a function!");setTimeout(func,1)}else if(isFinalTry)throw new Error("Can not find callback: "+__AMap_callback+", try define it before load JsApi!")},document.body&&tryGetCallback()?tryCallback():setTimeout(function(){tryCallback(!0)},1)),AMap}); +(typeof _cssload_=="function")&&_cssload_("logo",".amap-logo{display:block!important;pointer-events:none;}",true)})(["40849e82b4e33f5255b17372520c954d",[115.423411,39.442758,117.514625,41.060816,116.405285,39.904989],"http://111.198.10.15:21904/amap",1,"2.0.6.1",null,"110000","AMap.Geocoder",true,false,false,true,"20230103011500-20201123-1",false,"A","3_23_10_10_00","http","111.198.10.15:21904/amap",1,"0","20230111"]) +_jsload_('AMap.Geocoder', '!function(c){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r