map-tile-utils 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of map-tile-utils might be problematic. Click here for more details.

@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=s;function s(t,e){const n=r();return(s=function(t,s){return n[t-=217]})(t,e)}function r(){const t=["getTileCroppingInfo","6gvFbvI","round","tileToScreen_bd","calcTileIndex","pow","135279pTgqud","getTileBounds","tileToScreen","floor","origin","tileSize","36172278qrPQTl","3696020lYlQWa","getTileCroppingInfoByExtent","2453592IXcpGG","5283006RDAEog","927728zBuJNg","70zKIDJd","1995256CNzpRl","getTileRes","getTileCroppingInfoByExtent_bd"];return(r=function(){return t})()}!function(){const t=s,e=r();for(;;)try{if(849368===-parseInt(t(233))/1+parseInt(t(224))/2+-parseInt(t(228))/3*(-parseInt(t(220))/4)+parseInt(t(218))/5+parseInt(t(221))/6+-parseInt(t(223))/7*(-parseInt(t(222))/8)+-parseInt(t(217))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class e{constructor(){const t=s;this[t(237)]={x:-20037508.34,y:20037508.34},this[t(238)]=256}[t(225)](s){const r=t;return 2*this.origin.y/(Math[r(232)](2,s)*this[r(238)])}[t(234)](s,r,e){const n=t,i=this[n(225)](s),a=r*this.tileSize*i+this[n(237)].x,h=(r+1)*this[n(238)]*i+this[n(237)].x;return[a,this[n(237)].y-(e+1)*this[n(238)]*i,h,this.origin.y-e*this[n(238)]*i]}[t(235)](s,r,e){const n=t,i=this[n(225)](s);return[(r-this.origin.x)/i,(this[n(237)].y-e)/i]}tileToScreen_bd(s,r,e){const n=Math[t(232)](2,18-s);return[(r-this.origin.x)/n,-e/n]}calcTileIndex(s,r,e){const n=t,i=this[n(225)](s)*this[n(238)];return[Math[n(236)]((r-this[n(237)].x)/i),Math[n(236)]((this[n(237)].y-e)/i)]}[t(227)](s,r,e,n=18){const i=t;if(s>n){const t=this.getTileBounds(s,r,e),[a,h,o,c]=t,[M,u]=this[i(231)](n,(a+o)/2,(h+c)/2),[l,p,I,f]=this.getTileBounds(n,M,u),[g,x]=this.tileToScreen(n,l,f),[_,d]=this[i(235)](n,a,c),[y,T]=this.tileToScreen(n,o,h),b=Math[i(229)](_-g),m=Math[i(229)](d-x);return{m_z:n,m_x:M,m_y:u,scr_x:b,scr_y:m,scr_w:Math.round(y-g-b),scr_h:Math[i(229)](T-x-m),t_size:this[i(238)]}}return{m_z:s,m_x:r,m_y:e,t_size:this[i(238)]}}[t(219)](s,r,e,n=18){const i=t,a=e<=n?e:n,[h,o,c,M]=s,[u,l]=this.calcTileIndex(a,(h+c)/2,(o+M)/2),[p,I,f,g]=r,[x,_]=this[i(235)](a,p,g),[d,y]=this[i(235)](a,h,M),[T,b]=this.tileToScreen(a,c,o),m=Math[i(229)](d-x),P=Math[i(229)](y-_);return{m_z:n,m_x:u,m_y:l,scr_x:m,scr_y:P,scr_w:Math.round(T-x-m),scr_h:Math[i(229)](b-_-P),t_size:this[i(238)]}}[t(226)](s,r,e,n=18){const i=t,a=e<=n?e:n,[h,o,c,M]=s,[u,l]=this[i(231)](a,(h+c)/2,(o+M)/2),[p,I,f,g]=r,[x,_]=this[i(230)](a,p,g),[d,y]=this[i(230)](a,h,M),[T,b]=this[i(230)](a,c,o),m=Math.round(d-x),P=Math[i(229)](y-_);return{m_z:n,m_x:u,m_y:l,scr_x:m,scr_y:P,scr_w:Math[i(229)](T-x-m),scr_h:Math[i(229)](b-_-P),t_size:this[i(238)]}}}const n=i;function i(t,s){const r=a();return(i=function(t,s){return r[t-=399]})(t,s)}function a(){const t=["origin","1180IRAADX","4kiThsk","4jRpmtk","tileSize","606297jDFTkg","152955NjZhgp","getTileCroppingInfo","79101nZUwKC","round","floor","getTileBounds","3281544rnacFy","4836yNKSgu","1040633OEMYVK","calcTileIndex","824mpMjbB","getTileRes","tileToScreen","10tfMllm","19985MTPGpt","pow"];return(a=function(){return t})()}!function(){const t=i,s=a();for(;;)try{if(169194===parseInt(t(420))/1*(-parseInt(t(416))/2)+parseInt(t(419))/3*(parseInt(t(417))/4)+parseInt(t(415))/5*(parseInt(t(405))/6)+parseInt(t(412))/7*(-parseInt(t(408))/8)+parseInt(t(400))/9+parseInt(t(411))/10*(parseInt(t(406))/11)+parseInt(t(404))/12)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class h{constructor(){const t=i;this[t(414)]={x:-180,y:90},this[t(418)]=256}[n(409)](t){const s=n;return 2*this[s(414)].y/(Math[s(413)](2,t-1)*this[s(418)])}getTileBounds(t,s,r){const e=n,i=this[e(409)](t),a=s*this[e(418)]*i+this[e(414)].x,h=(s+1)*this[e(418)]*i+this[e(414)].x;return[a,this[e(414)].y-(r+1)*this[e(418)]*i,h,this[e(414)].y-r*this[e(418)]*i]}tileToScreen(t,s,r){const e=n,i=this[e(409)](t);return[(s-this.origin.x)/i,(this[e(414)].y-r)/i]}[n(407)](t,s,r){const e=n,i=this.getTileRes(t)*this[e(418)];return[Math.floor((s-this.origin.x)/i),Math[e(402)]((this[e(414)].y-r)/i)]}[n(399)](t,s,r,e=18){const i=n;if(t>e){const n=this[i(403)](t,s,r),[a,h,o,c]=n,[M,u]=this[i(407)](e,(a+o)/2,(h+c)/2),[l,p,I,f]=this[i(403)](e,M,u),[g,x]=this.tileToScreen(e,l,f),[_,d]=this[i(410)](e,a,c),[y,T]=this[i(410)](e,o,h),b=Math[i(401)](_-g),m=Math.round(d-x);return{m_z:e,m_x:M,m_y:u,scr_x:b,scr_y:m,scr_w:Math[i(401)](y-g-b),scr_h:Math[i(401)](T-x-m),t_size:this[i(418)]}}return{m_z:t,m_x:s,m_y:r,t_size:this[i(418)]}}getTileCroppingInfoByExtent(t,s,r,e=18){const i=n,a=r<=e?r:e,[h,o,c,M]=t,[u,l]=this.calcTileIndex(a,(h+c)/2,(o+M)/2),[p,I,f,g]=s,[x,_]=this[i(410)](a,p,g),[d,y]=this[i(410)](a,h,M),[T,b]=this[i(410)](a,c,o),m=Math[i(401)](d-x),P=Math.round(y-_);return{m_z:e,m_x:u,m_y:l,scr_x:m,scr_y:P,scr_w:Math[i(401)](T-x-m),scr_h:Math[i(401)](b-_-P),t_size:this[i(418)]}}}var o=c;function c(t,s){var r=M();return(c=function(t,s){return r[t-=195]})(t,s)}function M(){var t=["lat","atan2","721gOsqfB","1252aNypSv","transformLat","log","delta","sin","42546EOQDgL","outOfChina","x_pi","gcj02_wgs84","abs","toRadians","20eKCxsN","bd09ll_wgs84","atan","cos","640slKKNs","22672sSHGYU","734661kFEPik","wgs84_mercator","978472OBbuFS","sqrt","481800LbKRNx","mercator_wgs84","gcj02_bd09ll","378EzWcgo","2238fKBVgx","wgs84_gcj02","lon"];return(M=function(){return t})()}!function(){for(var t=c,s=M();;)try{if(167628===-parseInt(t(212))/1*(parseInt(t(205))/2)+-parseInt(t(206))/3*(-parseInt(t(196))/4)+parseInt(t(202))/5+-parseInt(t(217))/6+-parseInt(t(211))/7*(-parseInt(t(197))/8)+parseInt(t(198))/9+-parseInt(t(223))/10*(parseInt(t(200))/11))break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class u{constructor(){this.PI=Math.PI,this.x_pi=3e3*Math.PI/180}[o(215)](t,s){var r=o,e=6378245,n=.006693421622965943,i=this.transformLat(s-105,t-35),a=this.transformLon(s-105,t-35),h=t/180*this.PI,c=Math[r(216)](h);c=1-n*c*c;var M=Math[r(201)](c);return{lat:i=180*i/(6335552.717000426/(c*M)*this.PI),lon:a=180*a/(e/M*Math[r(195)](h)*this.PI)}}wgs84_gcj02(t,s){var r=o;if(this[r(218)](s,t))return[t,s];var e=this.delta(s,t);return[t+e[r(208)],s+e[r(209)]]}[o(220)](t,s){var r=o;if(this[r(218)](s,t))return[t,s];var e=this[r(215)](s,t);return[t-e[r(208)],s-e[r(209)]]}[o(204)](t,s){var r=o,e=t,n=s,i=Math.sqrt(e*e+n*n)+2e-5*Math[r(216)](n*this.x_pi),a=Math[r(210)](n,e)+3e-6*Math[r(195)](e*this[r(219)]);return[i*Math.cos(a)+.0065,i*Math.sin(a)+.006]}bd09ll_gcj02(t,s){var r=o,e=t-.0065,n=s-.006,i=Math.sqrt(e*e+n*n)-2e-5*Math[r(216)](n*this.x_pi),a=Math[r(210)](n,e)-3e-6*Math[r(195)](e*this[r(219)]);return[i*Math.cos(a),i*Math[r(216)](a)]}wgs84_bd09ll(t,s){var r=o,e=this[r(207)](t,s);return this[r(204)](e[0],e[1])}[o(224)](t,s){var r=o,e=this.bd09ll_gcj02(t,s);return this[r(220)](e[0],e[1])}[o(199)](t,s){let r=20037508.34*t/180,e=Math[o(214)](Math.tan((90+s)*Math.PI/360))/(Math.PI/180);return e=20037508.34*e/180,[r,e]}[o(203)](t,s){var r=o;let e=t/20037508.34*180,n=s/20037508.34*180;return n=180/Math.PI*(2*Math[r(225)](Math.exp(n*Math.PI/180))-Math.PI/2),[e,n]}[o(222)](t){return t/180*Math.PI}toDegrees(t){return 180*t/Math.PI}[o(218)](t,s){return s<72.004||s>137.8347||(t<.8293||t>55.8271)}[o(213)](t,s){var r=o,e=2*t-100+3*s+.2*s*s+.1*t*s+.2*Math.sqrt(Math[r(221)](t));return e+=2*(20*Math[r(216)](6*t*this.PI)+20*Math[r(216)](2*t*this.PI))/3,e+=2*(20*Math[r(216)](s*this.PI)+40*Math[r(216)](s/3*this.PI))/3,e+=2*(160*Math[r(216)](s/12*this.PI)+320*Math.sin(s*this.PI/30))/3}transformLon(t,s){var r=o,e=300+t+2*s+.1*t*t+.1*t*s+.1*Math[r(201)](Math[r(221)](t));return e+=2*(20*Math[r(216)](6*t*this.PI)+20*Math[r(216)](2*t*this.PI))/3,e+=2*(20*Math[r(216)](t*this.PI)+40*Math[r(216)](t/3*this.PI))/3,e+=2*(150*Math[r(216)](t/12*this.PI)+300*Math[r(216)](t/30*this.PI))/3}}const l=I;function p(){const t=["Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50","1002AOGAXu","hds","Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0","Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6","811328TeAGzF","66jyXUMj","GetRandomUserAgent","Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1","random","Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1","36DVMxZb","343055gkWbnw","Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.11","Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/44.0.2403.89 Chrome/44.0.2403.89 Safari/537.36","Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50","Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0","5877276OADtoK","24628977oygeIi","9913330rRMyeZ","2659160FIjGTx","Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.8.131 Version/11.11","Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11","round"];return(p=function(){return t})()}function I(t,s){const r=p();return(I=function(t,s){return r[t-=314]})(t,s)}!function(){const t=I,s=p();for(;;)try{if(752665===parseInt(t(321))/1+-parseInt(t(322))/2*(-parseInt(t(317))/3)+-parseInt(t(333))/4+-parseInt(t(328))/5*(-parseInt(t(327))/6)+-parseInt(t(335))/7+-parseInt(t(336))/8+parseInt(t(334))/9)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class f{constructor(){const t=I;this.hds=[],this.hds=[{"User-Agent":t(320)},{"User-Agent":t(314)},{"User-Agent":"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)"},{"User-Agent":t(332)},{"User-Agent":t(330)},{"User-Agent":t(316)},{"User-Agent":t(331)},{"User-Agent":t(319)},{"User-Agent":t(326)},{"User-Agent":t(324)},{"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"},{"User-Agent":t(337)},{"User-Agent":t(329)}]}[l(323)](){const t=l,s=this[t(318)].length;let r=Math[t(315)](Math[t(325)]()*(s-1));return this.hds[r]}}function g(t,s){const r=_();return(g=function(t,s){return r[t-=350]})(t,s)}const x=g;function _(){const t=["log","push","calc_tile_bounds","3EAZkxq","173579BlltYT","3458648JRoyze","sinh","calc_tile_Extent","setTileOffset","calc_4490_tile_bounds","calc_extent_tiles","lonToTile","4461452bwoQzp","atan","2247690bpRIpf","wgs84_mercator","pow","5phmeWh","floor","82ZqxDFh","30FYxwjn","7243fUGnyX","7072571WbWXXK","latToTile","mercator_wgs84","tan","590076jTCogp"];return(_=function(){return t})()}!function(){const t=g,s=_();for(;;)try{if(655186===-parseInt(t(370))/1*(-parseInt(t(368))/2)+parseInt(t(352))/3*(parseInt(t(361))/4)+-parseInt(t(366))/5*(parseInt(t(363))/6)+parseInt(t(353))/7+parseInt(t(354))/8+-parseInt(t(375))/9*(parseInt(t(369))/10)+-parseInt(t(371))/11)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class d{constructor(){}[x(351)](t,s,r){const e=x,n=Math[e(365)](2,t),i=s/n,a=r/n,h=360*i-180,o=360*(i+1/n)-180,c=Math[e(362)](Math[e(355)](Math.PI*(1-2*a)))*(180/Math.PI);return[h,Math[e(362)](Math[e(355)](Math.PI*(1-2*(a+1/n))))*(180/Math.PI),o,c]}[x(356)](t,s,r){const e=x,n=Math[e(365)](2,t),i=s/n,a=r/n,h=360*i-180,o=360*(i+1/n)-180,c=Math[e(362)](Math[e(355)](Math.PI*(1-2*a)))*(180/Math.PI);return{min_x:h,min_y:Math[e(362)](Math[e(355)](Math.PI*(1-2*(a+1/n))))*(180/Math.PI),max_x:o,max_y:c}}[x(358)](t,s,r){const e=180/(256*Math.pow(2,t-1));return[256*s*e-180,90-256*(r+1)*e,256*(s+1)*e-180,90-256*r*e]}[x(359)](t,s){const r=x,[e,n,i,a]=t,h=this.latToTile(a,s),o=this[r(372)](n,s),c=this[r(360)](e,s),M=this[r(360)](i,s),u=(o-h+1)*(M-c+1),l=[];for(let t=h;t<=o;t++)for(let e=c;e<=M;e++)l[r(350)]({level:s,row:t,column:e});return{total:u,tiles:l}}get4490TileFor3857Extent(t,s){const r=x,[e,n,i,a]=t,h=180/(256*Math[r(365)](2,s-1)),o=Math[r(367)]((e+180)/(256*h)),c=Math[r(367)]((i+180)/(256*h)),M=Math[r(367)]((90-a)/(256*h)),u=Math[r(367)]((90-n)/(256*h));let l=[];for(let t=o;t<=c;t++)for(let e=u;e>=M;e--)l[r(350)]({zoom:s,x:t,y:e});return l}[x(357)](t,s,r,e){const n=x;let i=e[n(364)](t[0],t[1]),a=e[n(364)](t[2],t[3]),h=e.mercator_wgs84(i[0]+s,i[1]+r),o=e[n(373)](a[0]+s,a[1]+r);return[h[0],h[1],o[0],o[1]]}[x(372)](t,s){const r=x,e=Math[r(365)](2,s),n=t*(Math.PI/180),i=Math[r(376)](Math[r(374)](n/2+Math.PI/4));return Math[r(367)]((1-i/Math.PI)*e/2)}[x(360)](t,s){const r=Math[x(365)](2,s);return Math.floor((t+180)/360*r)}}function y(t,s){var r=T();return(y=function(t,s){return r[t-=493]})(t,s)}function T(){var t=["sqrt","112DQNBKp","1269280hAisXk","14435CubTmL","project","bd_wgs_exact","gcj_bd","sin","1366010fwrfDt","bd_wgs","gcj_wgs_exact","_coord_diff","sinh","max","pj_sinhpsi2tanphi","atan2","abs","bounds","bind","_exact_iter","tan","36rizvXo","84534gbzeVp","164cGeteD","asinh","18gFYREz","atanh","wgs_gcj","cos","gcj_wgs","70vgZCug","bd_gcj","pow","7143apWslT","wgs_bd","3423365KzuGVF","590485TShIRJ"];return(T=function(){return t})()}var b=y;!function(){for(var t=y,s=T();;)try{if(301843===-parseInt(t(495))/1+parseInt(t(497))/2*(-parseInt(t(529))/3)+parseInt(t(519))/4*(parseInt(t(499))/5)+parseInt(t(518))/6*(-parseInt(t(526))/7)+-parseInt(t(498))/8+-parseInt(t(521))/9*(-parseInt(t(504))/10)+-parseInt(t(494))/11*(-parseInt(t(517))/12))break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class m{constructor(){var t=y;this.A=6378206.4,this.E=.08227185422300326,this[t(513)]=[[20037725.5,-16095439.382927246],[-20037726.46909435,19488378.9859151]],this.gcj_wgs_exact=this[t(515)](this[t(523)],this[t(525)]),this[t(501)]=this._exact_iter(this[t(493)],this.bd_wgs),this[t(527)]=this[t(527)].bind(this),this[t(502)]=this[t(502)][t(514)](this),this[t(525)]=this.gcj_wgs[t(514)](this),this[t(523)]=this[t(523)][t(514)](this),this[t(505)]=this[t(505)].bind(this),this[t(493)]=this[t(493)][t(514)](this),this[t(506)]=this[t(515)](this.wgs_gcj,this[t(525)])[t(514)](this),this[t(501)]=this[t(515)](this[t(493)],this[t(505)])[t(514)](this),this[t(507)]=this[t(507)][t(514)](this)}[b(500)](t,s){var r=b,[e,n]=this[r(493)](t,s),i=e*Math.PI/180*this.A,a=n*Math.PI/180;return[i,(Math[r(520)](Math[r(516)](a))-this.E*Math[r(522)](this.E*Math.sin(a)))*this.A]}unproject(t,s){var r=b;let e=t/Math.PI*180/this.A,n=Math.atan(this[r(510)](Math[r(508)](s/this.A),this.E))/Math.PI*180;return this[r(501)](e,n)}[b(523)](t,s){var r=b;if(!(s>=.8293&&s<=55.8271&&t>=72.004&&t<=137.8347))return[t,s];var e=6378245,n=.006693421622965943,i=t-105,a=s-35,h=i*Math.PI,o=a*Math.PI,c=Math[r(496)](Math[r(512)](i)),M=2*i-100+3*a+.2*a*a+.1*i*a+.2*c+20*(2*Math[r(503)](6*h)+2*Math.sin(2*h)+2*Math[r(503)](o)+4*Math[r(503)](o/3)+16*Math[r(503)](o/12)+32*Math[r(503)](o/30))/3,u=300+i+2*a+.1*i*i+.1*i*a+.1*c+20*(2*Math.sin(6*h)+2*Math[r(503)](2*h)+2*Math.sin(h)+4*Math.sin(h/3)+15*Math[r(503)](h/12)+30*Math[r(503)](h/30))/3,l=Math.PI/180,p=s*l,I=1-n*Math[r(528)](Math[r(503)](p),2),f=6335552.717000426*l/Math.pow(I,1.5);return[t+u/(l*(e*Math[r(524)](p)/Math[r(496)](I))),s+M/f]}gcj_bd(t,s){var r=b,e=t,n=s,i=Math[r(496)](e*e+n*n)+2e-5*Math.sin(n*Math.PI*3e3/180),a=Math[r(511)](n,e)+3e-6*Math[r(524)](e*Math.PI*3e3/180);return[i*Math[r(524)](a)+.0065,i*Math[r(503)](a)+.006]}[b(527)](t,s){var r=b,e=t-.0065,n=s-.006,i=Math[r(496)](e*e+n*n)-2e-5*Math.sin(n*Math.PI*3e3/180),a=Math.atan2(n,e)-3e-6*Math[r(524)](e*Math.PI*3e3/180);return[i*Math.cos(a),i*Math[r(503)](a)]}[b(525)](t,s){var r=b;return s>=.83056&&s<=55.8296&&t>=72.0077&&t<=137.8437?this[r(507)]([t,s],this[r(507)](this[r(523)](t,s),[t,s])):[t,s]}[b(505)](t,s){var r=b;if(!(s>=.83676&&s<=55.8355&&t>=72.0142&&t<=137.8503))return[t,s];let[e,n]=this.bd_gcj(t,s);return this[r(525)](e,n)}[b(493)](t,s){var r=b;let[e,n]=this[r(523)](t,s);return this[r(502)](e,n)}[b(507)](t,s){let[r,e]=t,[n,i]=s;return[r-n,e-i]}[b(515)](t,s){return((r,e)=>{var n=y;let i=s(r,e),a=[1/0,1/0];for(let s=0;Math[n(509)](Math.abs(a[1]),Math[n(512)](a[0]))>1e-6&&s<8;s++)a=this[n(507)](t(i[0],i[1]),[r,e]),i=this[n(507)](i,a);return i})[b(514)](this)}[b(510)](t,s){var r=b,e=Math[r(496)](1e-15),n=2/e,i=1-s*s,a=e/10*Math[r(509)](1,Math.abs(t)),h=Math[r(512)](t)>70?t*Math.exp(s*Math[r(522)](s)):t/i;if(!(Math[r(512)](h)<n))return h;for(var o=5;o-- >0;){var c=Math.sqrt(1+h*h),M=Math[r(508)](s*Math[r(522)](s*h/c)),u=Math[r(496)](1+M*M)*h-M*c,l=(t-u)*(1+i*(h*h))/(i*c*Math[r(496)](1+u*u));if(h+=l,!(Math[r(512)](l)>=a))break}return h}}const P=w;function v(){const t=["getTilePrjNW","array2","761810oFYjKd","tileX","631075eaocqx","34xeCTgI","ToExtent","height","getTilePrjSE","xmax","16tkKDUv","xmin","length","pow","origin","Lat","18074ZcMDio","LatLng2Mercator","ymin","ymax","scale","167499FDHTSQ","tileY","372CEcIjr","array3","width","getTilePrjExtent","getBaiduTilePrjSE","Convertor","63596pHsWpG","Mercator2LatLng","abs","326592dQuVFl","18429XWEImZ","array1"];return(v=function(){return t})()}function w(t,s){const r=v();return(w=function(t,s){return r[t-=291]})(t,s)}!function(){const t=w,s=v();for(;;)try{if(206527===-parseInt(t(298))/1+parseInt(t(309))/2*(parseInt(t(302))/3)+-parseInt(t(301))/4+parseInt(t(308))/5+-parseInt(t(292))/6*(-parseInt(t(320))/7)+-parseInt(t(314))/8*(-parseInt(t(325))/9)+-parseInt(t(306))/10)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class j{constructor(){const t=w;this[t(303)]=[75,60,45,30,15,0],this[t(293)]=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],this[t(305)]=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],this.array4=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]]}[P(321)](t){const s=P;let r=null;t[s(319)]>74||t.Lat;for(let e=0;e<this[s(303)].length;e++)if(t[s(319)]>=this[s(303)][e]){r=this[s(305)][e];break}if(null===r)for(let e=this[s(303)][s(316)]-1;e>=0;e--)if(t[s(319)]<=-this.array1[e]){r=this[s(305)][e];break}const e=this[s(297)](t.Lng,t[s(319)],r);return{X:e[0],Y:e[1]}}[P(299)](t){const s=P;let r=null;const e={X:Math[s(300)](t.X),Y:Math[s(300)](t.Y)};for(let t=0;t<this[s(293)][s(316)];t++)if(e.Y>=this[s(293)][t]){r=this.array4[t];break}const n=this.Convertor(e.X,e.Y,r);return{Lng:n[0],Lat:n[1]}}[P(297)](t,s,r){const e=P,n=r[0]+r[1]*Math.abs(t),i=Math[e(300)](s)/r[9],a=[n,r[2]+r[3]*i+r[4]*i*i+r[5]*i*i*i+r[6]*i*i*i*i+r[7]*i*i*i*i*i+r[8]*i*i*i*i*i*i];return a[0]*=t<0?-1:1,a[1]*=s<0?-1:1,a}getBaiduTilePrjBounds(t,s){const r=P;let e=Math.pow(2,18-s);return this[r(295)](t[r(307)],t[r(291)],e)}getBaiduTilePrjNW(t,s){const r=P;let e=Math[r(317)](2,18-s);return this[r(304)](t[r(307)],t.tileY,e,{scale:{x:1,y:1},origin:{x:0,y:0}},{width:256,height:256},1,1)}[P(296)](t,s){const r=P;let e=Math[r(317)](2,18-s);return this[r(312)](t[r(307)],t[r(291)],e,{scale:{x:1,y:1},origin:{x:0,y:0}},{width:256,height:256},1,1)}[P(295)](t,s,r){const e=P,n={scale:{x:1,y:1},origin:{x:0,y:0}},i={width:256,height:256},a=this[e(304)](t,s,r,n,i,1,1),h=this[e(312)](t,s,r,n,i,1,1);return this[e(310)](a,h)}[P(304)](t,s,r,e,n,i,a){const h=P,o=e[h(318)].y+a*e[h(324)].y*(s+(1===e.scale.y?1:0))*r*n.height;return{x:e[h(318)].x+i*e[h(324)].x*(t+(1===e[h(324)].x?0:1))*r*n[h(294)],y:o}}getTilePrjSE(t,s,r,e,n,i,a){const h=P,o=e.origin.y+a*e.scale.y*(s+(1===e[h(324)].y?0:1))*r*n[h(311)];return{x:e.origin.x+i*e.scale.x*(t+(1===e.scale.x?1:0))*r*n[h(294)],y:o}}ToExtent(t,s){const r=P,e={xmax:0,xmin:0,ymax:0,ymin:0};return t.x>s.x?(e[r(315)]=s.x,e[r(313)]=t.x):(e.xmin=t.x,e.xmax=s.x),t.y>s.y?(e[r(322)]=s.y,e[r(323)]=t.y):(e[r(322)]=t.y,e[r(323)]=s.y),e}}function z(t,s){var r=k();return(z=function(t,s){return r[t-=206]})(t,s)}function k(){var t=["24760KocvUR","2601vnbmkW","178WAYeSv","763732LNJBTE","1326SgTxaY","1290738FgDtxD","22UbosFM","16550ckybxj","6378HuYoir","5578310MKVGWa","48601nPrHXU"];return(k=function(){return t})()}!function(){for(var t=z,s=k();;)try{if(478595===parseInt(t(207))/1*(-parseInt(t(213))/2)+-parseInt(t(210))/3+parseInt(t(208))/4+-parseInt(t(212))/5*(parseInt(t(209))/6)+parseInt(t(215))/7+parseInt(t(216))/8*(parseInt(t(206))/9)+-parseInt(t(214))/10*(-parseInt(t(211))/11))break;s.push(s.shift())}catch(t){s.push(s.shift())}}(),exports.BaiDuMercator=m,exports.BaiDuProjUtils=j,exports.CoordinateTransformer=u,exports.GeodeticMapTileCalcUtils=h,exports.MercatorMapTileCalcUtils=e,exports.TileCalcUtils=d,exports.UserAgent=f;
@@ -0,0 +1,17 @@
1
+ const _0x2dbe37=_0x438c;(function(_0x892b8c,_0x48374d){const _0x2b217c=_0x438c,_0x19ac25=_0x892b8c();while(!![]){try{const _0xc6b147=-parseInt(_0x2b217c(0xe9))/0x1+parseInt(_0x2b217c(0xe0))/0x2+-parseInt(_0x2b217c(0xe4))/0x3*(-parseInt(_0x2b217c(0xdc))/0x4)+parseInt(_0x2b217c(0xda))/0x5+parseInt(_0x2b217c(0xdd))/0x6+-parseInt(_0x2b217c(0xdf))/0x7*(-parseInt(_0x2b217c(0xde))/0x8)+-parseInt(_0x2b217c(0xd9))/0x9;if(_0xc6b147===_0x48374d)break;else _0x19ac25['push'](_0x19ac25['shift']());}catch(_0x57d4de){_0x19ac25['push'](_0x19ac25['shift']());}}}(_0x3a6a,0xcf5d8));function _0x438c(_0x21e3cd,_0x7c1cba){const _0x3a6a75=_0x3a6a();return _0x438c=function(_0x438c13,_0x283d70){_0x438c13=_0x438c13-0xd9;let _0x53cfc1=_0x3a6a75[_0x438c13];return _0x53cfc1;},_0x438c(_0x21e3cd,_0x7c1cba);}function _0x3a6a(){const _0x3e3731=['getTileCroppingInfo','6gvFbvI','round','tileToScreen_bd','calcTileIndex','pow','135279pTgqud','getTileBounds','tileToScreen','floor','origin','tileSize','36172278qrPQTl','3696020lYlQWa','getTileCroppingInfoByExtent','2453592IXcpGG','5283006RDAEog','927728zBuJNg','70zKIDJd','1995256CNzpRl','getTileRes','getTileCroppingInfoByExtent_bd'];_0x3a6a=function(){return _0x3e3731;};return _0x3a6a();}class MercatorMapTileCalcUtils{constructor(){const _0x24ece5=_0x438c;this[_0x24ece5(0xed)]={'x':-20037508.34,'y':20037508.34},this[_0x24ece5(0xee)]=0x100;}[_0x2dbe37(0xe1)](_0x170bff){const _0x93be62=_0x2dbe37;return this['origin']['y']*0x2/(Math[_0x93be62(0xe8)](0x2,_0x170bff)*this[_0x93be62(0xee)]);}[_0x2dbe37(0xea)](_0x348a20,_0x23e5df,_0x338b31){const _0x515b76=_0x2dbe37,_0x222399=this[_0x515b76(0xe1)](_0x348a20),_0xbcaeb9=_0x23e5df*this['tileSize']*_0x222399+this[_0x515b76(0xed)]['x'],_0x5110ed=(_0x23e5df+0x1)*this[_0x515b76(0xee)]*_0x222399+this[_0x515b76(0xed)]['x'],_0x5e6aee=this[_0x515b76(0xed)]['y']-(_0x338b31+0x1)*this[_0x515b76(0xee)]*_0x222399,_0x4cab77=this['origin']['y']-_0x338b31*this[_0x515b76(0xee)]*_0x222399;return [_0xbcaeb9,_0x5e6aee,_0x5110ed,_0x4cab77];}[_0x2dbe37(0xeb)](_0x1dda4a,_0x38978d,_0x4d0e4f){const _0x4e1787=_0x2dbe37,_0x2dd134=this[_0x4e1787(0xe1)](_0x1dda4a);return [(_0x38978d-this['origin']['x'])/_0x2dd134,(this[_0x4e1787(0xed)]['y']-_0x4d0e4f)/_0x2dd134];}['tileToScreen_bd'](_0x375130,_0x585e18,_0x1096c8){const _0x4799a1=_0x2dbe37,_0x11271d=Math[_0x4799a1(0xe8)](0x2,0x12-_0x375130);return [(_0x585e18-this['origin']['x'])/_0x11271d,-_0x1096c8/_0x11271d];}['calcTileIndex'](_0x35cad2,_0x12f515,_0x5327f8){const _0x50fe2d=_0x2dbe37,_0x209aa4=this[_0x50fe2d(0xe1)](_0x35cad2)*this[_0x50fe2d(0xee)];return [Math[_0x50fe2d(0xec)]((_0x12f515-this[_0x50fe2d(0xed)]['x'])/_0x209aa4),Math[_0x50fe2d(0xec)]((this[_0x50fe2d(0xed)]['y']-_0x5327f8)/_0x209aa4)];}[_0x2dbe37(0xe3)](_0x38660e,_0x539b42,_0x230b62,_0x448f65=0x12){const _0x5a9a38=_0x2dbe37;if(_0x38660e>_0x448f65){const _0x4c1c7e=this['getTileBounds'](_0x38660e,_0x539b42,_0x230b62),[_0x504ab1,_0x1f7f23,_0x34f26f,_0x34723f]=_0x4c1c7e,[_0xf2165,_0x3fc26a]=this[_0x5a9a38(0xe7)](_0x448f65,(_0x504ab1+_0x34f26f)/0x2,(_0x1f7f23+_0x34723f)/0x2),[_0x45c9db,_0x34ae2d,_0x52ff56,_0x19530d]=this['getTileBounds'](_0x448f65,_0xf2165,_0x3fc26a),[_0x5d0dae,_0x9b097f]=this['tileToScreen'](_0x448f65,_0x45c9db,_0x19530d),[_0xc1d9e4,_0x4b8551]=this[_0x5a9a38(0xeb)](_0x448f65,_0x504ab1,_0x34723f),[_0x1a8848,_0x17ca63]=this['tileToScreen'](_0x448f65,_0x34f26f,_0x1f7f23),_0x57351f=Math[_0x5a9a38(0xe5)](_0xc1d9e4-_0x5d0dae),_0xab01c6=Math[_0x5a9a38(0xe5)](_0x4b8551-_0x9b097f),_0xf38997=Math['round'](_0x1a8848-_0x5d0dae-_0x57351f),_0x2a46b3=Math[_0x5a9a38(0xe5)](_0x17ca63-_0x9b097f-_0xab01c6);return {'m_z':_0x448f65,'m_x':_0xf2165,'m_y':_0x3fc26a,'scr_x':_0x57351f,'scr_y':_0xab01c6,'scr_w':_0xf38997,'scr_h':_0x2a46b3,'t_size':this[_0x5a9a38(0xee)]};}else return {'m_z':_0x38660e,'m_x':_0x539b42,'m_y':_0x230b62,'t_size':this[_0x5a9a38(0xee)]};}[_0x2dbe37(0xdb)](_0x382be4,_0x14d8f0,_0x6e1274,_0x4b11a6=0x12){const _0x1e7ac7=_0x2dbe37,_0x2378d3=_0x6e1274<=_0x4b11a6?_0x6e1274:_0x4b11a6,[_0x3d6e34,_0x218d46,_0x3c10c6,_0x3c7d76]=_0x382be4,[_0x59d009,_0x1804d2]=this['calcTileIndex'](_0x2378d3,(_0x3d6e34+_0x3c10c6)/0x2,(_0x218d46+_0x3c7d76)/0x2),[_0x5d5002,_0x425f56,_0x28445a,_0xddb62]=_0x14d8f0,[_0x4f3254,_0x24889a]=this[_0x1e7ac7(0xeb)](_0x2378d3,_0x5d5002,_0xddb62),[_0x49b927,_0x3494f4]=this[_0x1e7ac7(0xeb)](_0x2378d3,_0x3d6e34,_0x3c7d76),[_0xa09d60,_0x37a6fb]=this['tileToScreen'](_0x2378d3,_0x3c10c6,_0x218d46),_0x29ac27=Math[_0x1e7ac7(0xe5)](_0x49b927-_0x4f3254),_0x208e7c=Math[_0x1e7ac7(0xe5)](_0x3494f4-_0x24889a),_0x577362=Math['round'](_0xa09d60-_0x4f3254-_0x29ac27),_0x4cc87d=Math[_0x1e7ac7(0xe5)](_0x37a6fb-_0x24889a-_0x208e7c);return {'m_z':_0x4b11a6,'m_x':_0x59d009,'m_y':_0x1804d2,'scr_x':_0x29ac27,'scr_y':_0x208e7c,'scr_w':_0x577362,'scr_h':_0x4cc87d,'t_size':this[_0x1e7ac7(0xee)]};}[_0x2dbe37(0xe2)](_0x2eb9a6,_0x121d46,_0x3c7154,_0x486ebc=0x12){const _0x594fb5=_0x2dbe37,_0x482525=_0x3c7154<=_0x486ebc?_0x3c7154:_0x486ebc,[_0xc43063,_0x3b0801,_0x4903bf,_0x6dd27c]=_0x2eb9a6,[_0x5ce4a8,_0x31236c]=this[_0x594fb5(0xe7)](_0x482525,(_0xc43063+_0x4903bf)/0x2,(_0x3b0801+_0x6dd27c)/0x2),[_0x2139a1,_0x593359,_0xa3caf4,_0x2f923f]=_0x121d46,[_0x32684a,_0x2e9af5]=this[_0x594fb5(0xe6)](_0x482525,_0x2139a1,_0x2f923f),[_0x4e52fc,_0x8e4f09]=this[_0x594fb5(0xe6)](_0x482525,_0xc43063,_0x6dd27c),[_0x2b7d7b,_0x41ee5a]=this[_0x594fb5(0xe6)](_0x482525,_0x4903bf,_0x3b0801),_0x32aad5=Math['round'](_0x4e52fc-_0x32684a),_0x2018c4=Math[_0x594fb5(0xe5)](_0x8e4f09-_0x2e9af5),_0x47cf2c=Math[_0x594fb5(0xe5)](_0x2b7d7b-_0x32684a-_0x32aad5),_0x2b13a3=Math[_0x594fb5(0xe5)](_0x41ee5a-_0x2e9af5-_0x2018c4);return {'m_z':_0x486ebc,'m_x':_0x5ce4a8,'m_y':_0x31236c,'scr_x':_0x32aad5,'scr_y':_0x2018c4,'scr_w':_0x47cf2c,'scr_h':_0x2b13a3,'t_size':this[_0x594fb5(0xee)]};}}
2
+
3
+ const _0x473c9a=_0x18c3;function _0x18c3(_0x2496c2,_0x11e2e6){const _0x115160=_0x1151();return _0x18c3=function(_0x18c388,_0x1a22ef){_0x18c388=_0x18c388-0x18f;let _0x223966=_0x115160[_0x18c388];return _0x223966;},_0x18c3(_0x2496c2,_0x11e2e6);}function _0x1151(){const _0x3dea15=['origin','1180IRAADX','4kiThsk','4jRpmtk','tileSize','606297jDFTkg','152955NjZhgp','getTileCroppingInfo','79101nZUwKC','round','floor','getTileBounds','3281544rnacFy','4836yNKSgu','1040633OEMYVK','calcTileIndex','824mpMjbB','getTileRes','tileToScreen','10tfMllm','19985MTPGpt','pow'];_0x1151=function(){return _0x3dea15;};return _0x1151();}(function(_0x34c285,_0x30f0eb){const _0x322e48=_0x18c3,_0x4a6004=_0x34c285();while(!![]){try{const _0x1ec71c=parseInt(_0x322e48(0x1a4))/0x1*(-parseInt(_0x322e48(0x1a0))/0x2)+parseInt(_0x322e48(0x1a3))/0x3*(parseInt(_0x322e48(0x1a1))/0x4)+parseInt(_0x322e48(0x19f))/0x5*(parseInt(_0x322e48(0x195))/0x6)+parseInt(_0x322e48(0x19c))/0x7*(-parseInt(_0x322e48(0x198))/0x8)+parseInt(_0x322e48(0x190))/0x9+parseInt(_0x322e48(0x19b))/0xa*(parseInt(_0x322e48(0x196))/0xb)+parseInt(_0x322e48(0x194))/0xc;if(_0x1ec71c===_0x30f0eb)break;else _0x4a6004['push'](_0x4a6004['shift']());}catch(_0x5ca869){_0x4a6004['push'](_0x4a6004['shift']());}}}(_0x1151,0x294ea));class GeodeticMapTileCalcUtils{constructor(){const _0x2203a5=_0x18c3;this[_0x2203a5(0x19e)]={'x':-0xb4,'y':0x5a},this[_0x2203a5(0x1a2)]=0x100;}[_0x473c9a(0x199)](_0xcdab6e){const _0x2729b2=_0x473c9a;return this[_0x2729b2(0x19e)]['y']*0x2/(Math[_0x2729b2(0x19d)](0x2,_0xcdab6e-0x1)*this[_0x2729b2(0x1a2)]);}['getTileBounds'](_0x5b3b84,_0x4a129c,_0x33d39a){const _0x36d891=_0x473c9a,_0x546ea2=this[_0x36d891(0x199)](_0x5b3b84),_0x3f8395=_0x4a129c*this[_0x36d891(0x1a2)]*_0x546ea2+this[_0x36d891(0x19e)]['x'],_0x2b9efc=(_0x4a129c+0x1)*this[_0x36d891(0x1a2)]*_0x546ea2+this[_0x36d891(0x19e)]['x'],_0x5a0eea=this[_0x36d891(0x19e)]['y']-(_0x33d39a+0x1)*this[_0x36d891(0x1a2)]*_0x546ea2,_0x4c0d49=this[_0x36d891(0x19e)]['y']-_0x33d39a*this[_0x36d891(0x1a2)]*_0x546ea2;return [_0x3f8395,_0x5a0eea,_0x2b9efc,_0x4c0d49];}['tileToScreen'](_0x36f9ee,_0x43c47e,_0x392a55){const _0x4e4a1d=_0x473c9a,_0x585183=this[_0x4e4a1d(0x199)](_0x36f9ee);return [(_0x43c47e-this['origin']['x'])/_0x585183,(this[_0x4e4a1d(0x19e)]['y']-_0x392a55)/_0x585183];}[_0x473c9a(0x197)](_0x10986e,_0x2c8102,_0x4f8cd9){const _0x4add68=_0x473c9a,_0x495658=this['getTileRes'](_0x10986e)*this[_0x4add68(0x1a2)];return [Math['floor']((_0x2c8102-this['origin']['x'])/_0x495658),Math[_0x4add68(0x192)]((this[_0x4add68(0x19e)]['y']-_0x4f8cd9)/_0x495658)];}[_0x473c9a(0x18f)](_0x1c7fe8,_0x36b541,_0xae3c21,_0x4cda9a=0x12){const _0xca0391=_0x473c9a;if(_0x1c7fe8>_0x4cda9a){const _0x4bca5d=this[_0xca0391(0x193)](_0x1c7fe8,_0x36b541,_0xae3c21),[_0xc93240,_0x13a88e,_0x18d668,_0x217027]=_0x4bca5d,[_0x3e7b46,_0x559c6d]=this[_0xca0391(0x197)](_0x4cda9a,(_0xc93240+_0x18d668)/0x2,(_0x13a88e+_0x217027)/0x2),[_0x249e5c,_0x5f34e6,_0x44544c,_0x45416e]=this[_0xca0391(0x193)](_0x4cda9a,_0x3e7b46,_0x559c6d),[_0x33bcac,_0x18a932]=this['tileToScreen'](_0x4cda9a,_0x249e5c,_0x45416e),[_0x52c4f7,_0x10b66e]=this[_0xca0391(0x19a)](_0x4cda9a,_0xc93240,_0x217027),[_0x1064bc,_0x246396]=this[_0xca0391(0x19a)](_0x4cda9a,_0x18d668,_0x13a88e),_0x2bc4c1=Math[_0xca0391(0x191)](_0x52c4f7-_0x33bcac),_0xb18205=Math['round'](_0x10b66e-_0x18a932),_0x29f6be=Math[_0xca0391(0x191)](_0x1064bc-_0x33bcac-_0x2bc4c1),_0x50fbc6=Math[_0xca0391(0x191)](_0x246396-_0x18a932-_0xb18205);return {'m_z':_0x4cda9a,'m_x':_0x3e7b46,'m_y':_0x559c6d,'scr_x':_0x2bc4c1,'scr_y':_0xb18205,'scr_w':_0x29f6be,'scr_h':_0x50fbc6,'t_size':this[_0xca0391(0x1a2)]};}else return {'m_z':_0x1c7fe8,'m_x':_0x36b541,'m_y':_0xae3c21,'t_size':this[_0xca0391(0x1a2)]};}['getTileCroppingInfoByExtent'](_0x4722fd,_0x7fb9ef,_0x4ae2ad,_0x1393fe=0x12){const _0x4a5970=_0x473c9a,_0x1cf5d1=_0x4ae2ad<=_0x1393fe?_0x4ae2ad:_0x1393fe,[_0x2c10c7,_0x1ccc35,_0x5ba671,_0x173a8f]=_0x4722fd,[_0x5e5838,_0x3ba205]=this['calcTileIndex'](_0x1cf5d1,(_0x2c10c7+_0x5ba671)/0x2,(_0x1ccc35+_0x173a8f)/0x2),[_0x2464e2,_0x5f4c06,_0x1311b0,_0x272be8]=_0x7fb9ef,[_0x5137ba,_0xe333ce]=this[_0x4a5970(0x19a)](_0x1cf5d1,_0x2464e2,_0x272be8),[_0xdae5b4,_0x38fb38]=this[_0x4a5970(0x19a)](_0x1cf5d1,_0x2c10c7,_0x173a8f),[_0x19a271,_0xc87ccf]=this[_0x4a5970(0x19a)](_0x1cf5d1,_0x5ba671,_0x1ccc35),_0x1d254e=Math[_0x4a5970(0x191)](_0xdae5b4-_0x5137ba),_0x2eaa81=Math['round'](_0x38fb38-_0xe333ce),_0x420d28=Math[_0x4a5970(0x191)](_0x19a271-_0x5137ba-_0x1d254e),_0x2deb10=Math[_0x4a5970(0x191)](_0xc87ccf-_0xe333ce-_0x2eaa81);return {'m_z':_0x1393fe,'m_x':_0x5e5838,'m_y':_0x3ba205,'scr_x':_0x1d254e,'scr_y':_0x2eaa81,'scr_w':_0x420d28,'scr_h':_0x2deb10,'t_size':this[_0x4a5970(0x1a2)]};}}
4
+
5
+ var _0x1e3f82=_0x132c;function _0x132c(_0x394c15,_0x4c3e82){var _0xcd9167=_0xcd91();return _0x132c=function(_0x132c35,_0x350545){_0x132c35=_0x132c35-0xc3;var _0x227e10=_0xcd9167[_0x132c35];return _0x227e10;},_0x132c(_0x394c15,_0x4c3e82);}function _0xcd91(){var _0x47abe4=['lat','atan2','721gOsqfB','1252aNypSv','transformLat','log','delta','sin','42546EOQDgL','outOfChina','x_pi','gcj02_wgs84','abs','toRadians','20eKCxsN','bd09ll_wgs84','atan','cos','640slKKNs','22672sSHGYU','734661kFEPik','wgs84_mercator','978472OBbuFS','sqrt','481800LbKRNx','mercator_wgs84','gcj02_bd09ll','378EzWcgo','2238fKBVgx','wgs84_gcj02','lon'];_0xcd91=function(){return _0x47abe4;};return _0xcd91();}(function(_0x40a1cb,_0x34af13){var _0x176ef7=_0x132c,_0x16427d=_0x40a1cb();while(!![]){try{var _0x123bf6=-parseInt(_0x176ef7(0xd4))/0x1*(parseInt(_0x176ef7(0xcd))/0x2)+-parseInt(_0x176ef7(0xce))/0x3*(-parseInt(_0x176ef7(0xc4))/0x4)+parseInt(_0x176ef7(0xca))/0x5+-parseInt(_0x176ef7(0xd9))/0x6+-parseInt(_0x176ef7(0xd3))/0x7*(-parseInt(_0x176ef7(0xc5))/0x8)+parseInt(_0x176ef7(0xc6))/0x9+-parseInt(_0x176ef7(0xdf))/0xa*(parseInt(_0x176ef7(0xc8))/0xb);if(_0x123bf6===_0x34af13)break;else _0x16427d['push'](_0x16427d['shift']());}catch(_0x2c7880){_0x16427d['push'](_0x16427d['shift']());}}}(_0xcd91,0x28ecc));class CoordinateTransformer{constructor(){this['PI']=Math['PI'],this['x_pi']=Math['PI']*0xbb8/0xb4;}[_0x1e3f82(0xd7)](_0x78185a,_0x5563b8){var _0x4a85e8=_0x1e3f82,_0x5eac08=0x615305,_0x4b6e06=0.006693421622965943,_0x5cd9b8=this['transformLat'](_0x5563b8-0x69,_0x78185a-0x23),_0x318bda=this['transformLon'](_0x5563b8-0x69,_0x78185a-0x23),_0x4a4b33=_0x78185a/0xb4*this['PI'],_0xd608c1=Math[_0x4a85e8(0xd8)](_0x4a4b33);_0xd608c1=0x1-_0x4b6e06*_0xd608c1*_0xd608c1;var _0x4b60ea=Math[_0x4a85e8(0xc9)](_0xd608c1);return _0x5cd9b8=_0x5cd9b8*0xb4/(_0x5eac08*(0x1-_0x4b6e06)/(_0xd608c1*_0x4b60ea)*this['PI']),_0x318bda=_0x318bda*0xb4/(_0x5eac08/_0x4b60ea*Math[_0x4a85e8(0xc3)](_0x4a4b33)*this['PI']),{'lat':_0x5cd9b8,'lon':_0x318bda};}['wgs84_gcj02'](_0x2eeace,_0x4eba3f){var _0x16c763=_0x1e3f82;if(this[_0x16c763(0xda)](_0x4eba3f,_0x2eeace))return [_0x2eeace,_0x4eba3f];var _0x58246a=this['delta'](_0x4eba3f,_0x2eeace);return [_0x2eeace+_0x58246a[_0x16c763(0xd0)],_0x4eba3f+_0x58246a[_0x16c763(0xd1)]];}[_0x1e3f82(0xdc)](_0x3c8400,_0x402d4d){var _0x40eac7=_0x1e3f82;if(this[_0x40eac7(0xda)](_0x402d4d,_0x3c8400))return [_0x3c8400,_0x402d4d];var _0x492240=this[_0x40eac7(0xd7)](_0x402d4d,_0x3c8400);return [_0x3c8400-_0x492240[_0x40eac7(0xd0)],_0x402d4d-_0x492240[_0x40eac7(0xd1)]];}[_0x1e3f82(0xcc)](_0x17d525,_0x12b9b2){var _0x375765=_0x1e3f82,_0x3b7d4b=_0x17d525,_0x196de9=_0x12b9b2,_0x2464c8=Math['sqrt'](_0x3b7d4b*_0x3b7d4b+_0x196de9*_0x196de9)+0.00002*Math[_0x375765(0xd8)](_0x196de9*this['x_pi']),_0x5d7ef4=Math[_0x375765(0xd2)](_0x196de9,_0x3b7d4b)+0.000003*Math[_0x375765(0xc3)](_0x3b7d4b*this[_0x375765(0xdb)]),_0x28bce4=_0x2464c8*Math['cos'](_0x5d7ef4)+0.0065,_0x4d0cc8=_0x2464c8*Math['sin'](_0x5d7ef4)+0.006;return [_0x28bce4,_0x4d0cc8];}['bd09ll_gcj02'](_0x2addb7,_0xd38550){var _0x321312=_0x1e3f82,_0x2ba46a=_0x2addb7-0.0065,_0x525aae=_0xd38550-0.006,_0x229228=Math['sqrt'](_0x2ba46a*_0x2ba46a+_0x525aae*_0x525aae)-0.00002*Math[_0x321312(0xd8)](_0x525aae*this['x_pi']),_0x4403be=Math[_0x321312(0xd2)](_0x525aae,_0x2ba46a)-0.000003*Math[_0x321312(0xc3)](_0x2ba46a*this[_0x321312(0xdb)]),_0x325acd=_0x229228*Math['cos'](_0x4403be),_0x45cbe7=_0x229228*Math[_0x321312(0xd8)](_0x4403be);return [_0x325acd,_0x45cbe7];}['wgs84_bd09ll'](_0x18d169,_0x448bcb){var _0x1fecde=_0x1e3f82,_0x20da76=this[_0x1fecde(0xcf)](_0x18d169,_0x448bcb);return this[_0x1fecde(0xcc)](_0x20da76[0x0],_0x20da76[0x1]);}[_0x1e3f82(0xe0)](_0x318488,_0x2af33c){var _0x2cb5c6=_0x1e3f82,_0x111652=this['bd09ll_gcj02'](_0x318488,_0x2af33c);return this[_0x2cb5c6(0xdc)](_0x111652[0x0],_0x111652[0x1]);}[_0x1e3f82(0xc7)](_0xa0d448,_0x3d464a){var _0x9a5d49=_0x1e3f82;let _0x2fa731=_0xa0d448*20037508.34/0xb4,_0x3a2ef4=Math[_0x9a5d49(0xd6)](Math['tan']((0x5a+_0x3d464a)*Math['PI']/0x168))/(Math['PI']/0xb4);return _0x3a2ef4=_0x3a2ef4*20037508.34/0xb4,[_0x2fa731,_0x3a2ef4];}[_0x1e3f82(0xcb)](_0x5ec709,_0x53673e){var _0x1b15d2=_0x1e3f82;let _0x2770c5=_0x5ec709/20037508.34*0xb4,_0x3e0253=_0x53673e/20037508.34*0xb4;return _0x3e0253=0xb4/Math['PI']*(0x2*Math[_0x1b15d2(0xe1)](Math['exp'](_0x3e0253*Math['PI']/0xb4))-Math['PI']/0x2),[_0x2770c5,_0x3e0253];}[_0x1e3f82(0xde)](_0x6489ca){return _0x6489ca/0xb4*Math['PI'];}['toDegrees'](_0xa22efe){return _0xa22efe*0xb4/Math['PI'];}[_0x1e3f82(0xda)](_0x31b77d,_0x922ca4){if(_0x922ca4<72.004||_0x922ca4>137.8347)return !![];if(_0x31b77d<0.8293||_0x31b77d>55.8271)return !![];return ![];}[_0x1e3f82(0xd5)](_0x208b61,_0x4fd9ab){var _0x1d1bee=_0x1e3f82,_0x812bd=-0x64+0x2*_0x208b61+0x3*_0x4fd9ab+0.2*_0x4fd9ab*_0x4fd9ab+0.1*_0x208b61*_0x4fd9ab+0.2*Math['sqrt'](Math[_0x1d1bee(0xdd)](_0x208b61));return _0x812bd+=(0x14*Math[_0x1d1bee(0xd8)](0x6*_0x208b61*this['PI'])+0x14*Math[_0x1d1bee(0xd8)](0x2*_0x208b61*this['PI']))*0x2/0x3,_0x812bd+=(0x14*Math[_0x1d1bee(0xd8)](_0x4fd9ab*this['PI'])+0x28*Math[_0x1d1bee(0xd8)](_0x4fd9ab/0x3*this['PI']))*0x2/0x3,_0x812bd+=(0xa0*Math[_0x1d1bee(0xd8)](_0x4fd9ab/0xc*this['PI'])+0x140*Math['sin'](_0x4fd9ab*this['PI']/0x1e))*0x2/0x3,_0x812bd;}['transformLon'](_0x2327cd,_0x1bbdb9){var _0x3bfd88=_0x1e3f82,_0x3b0f3e=0x12c+_0x2327cd+0x2*_0x1bbdb9+0.1*_0x2327cd*_0x2327cd+0.1*_0x2327cd*_0x1bbdb9+0.1*Math[_0x3bfd88(0xc9)](Math[_0x3bfd88(0xdd)](_0x2327cd));return _0x3b0f3e+=(0x14*Math[_0x3bfd88(0xd8)](0x6*_0x2327cd*this['PI'])+0x14*Math[_0x3bfd88(0xd8)](0x2*_0x2327cd*this['PI']))*0x2/0x3,_0x3b0f3e+=(0x14*Math[_0x3bfd88(0xd8)](_0x2327cd*this['PI'])+0x28*Math[_0x3bfd88(0xd8)](_0x2327cd/0x3*this['PI']))*0x2/0x3,_0x3b0f3e+=(0x96*Math[_0x3bfd88(0xd8)](_0x2327cd/0xc*this['PI'])+0x12c*Math[_0x3bfd88(0xd8)](_0x2327cd/0x1e*this['PI']))*0x2/0x3,_0x3b0f3e;}}
6
+
7
+ const _0x3e9dbd=_0xc1ce;function _0x420d(){const _0x4b0500=['Mozilla/5.0\x20(Macintosh;\x20U;\x20Intel\x20Mac\x20OS\x20X\x2010_6_8;\x20en-us)\x20AppleWebKit/534.50\x20(KHTML,\x20like\x20Gecko)\x20Version/5.1\x20Safari/534.50','1002AOGAXu','hds','Mozilla/5.0\x20(compatible;\x20MSIE\x209.0;\x20Windows\x20NT\x206.1;\x20Trident/5.0','Mozilla/5.0\x20(Windows;\x20U;\x20Windows\x20NT\x206.1;\x20en-US;\x20rv:1.9.1.6)\x20Gecko/20091201\x20Firefox/3.5.6','811328TeAGzF','66jyXUMj','GetRandomUserAgent','Mozilla/5.0\x20(Windows\x20NT\x206.1;\x20rv:2.0.1)\x20Gecko/20100101\x20Firefox/4.0.1','random','Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010.6;\x20rv:2.0.1)\x20Gecko/20100101\x20Firefox/4.0.1','36DVMxZb','343055gkWbnw','Opera/9.80\x20(Windows\x20NT\x206.1;\x20U;\x20en)\x20Presto/2.8.131\x20Version/11.11','Mozilla/5.0\x20(X11;\x20Linux\x20x86_64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Ubuntu\x20Chromium/44.0.2403.89\x20Chrome/44.0.2403.89\x20Safari/537.36','Mozilla/5.0\x20(Windows;\x20U;\x20Windows\x20NT\x206.1;\x20en-us)\x20AppleWebKit/534.50\x20(KHTML,\x20like\x20Gecko)\x20Version/5.1\x20Safari/534.50','Mozilla/5.0\x20(X11;\x20Ubuntu;\x20Linux\x20x86_64;\x20rv:34.0)\x20Gecko/20100101\x20Firefox/34.0','5877276OADtoK','24628977oygeIi','9913330rRMyeZ','2659160FIjGTx','Opera/9.80\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010.6.8;\x20U;\x20en)\x20Presto/2.8.131\x20Version/11.11','Mozilla/5.0\x20(Windows\x20NT\x206.2)\x20AppleWebKit/535.11\x20(KHTML,\x20like\x20Gecko)\x20Chrome/17.0.963.12\x20Safari/535.11','round'];_0x420d=function(){return _0x4b0500;};return _0x420d();}function _0xc1ce(_0x143d7b,_0x214196){const _0x420dd9=_0x420d();return _0xc1ce=function(_0xc1ceee,_0x1780e3){_0xc1ceee=_0xc1ceee-0x13a;let _0x1d53b2=_0x420dd9[_0xc1ceee];return _0x1d53b2;},_0xc1ce(_0x143d7b,_0x214196);}(function(_0x1a8ac1,_0x10f6e1){const _0x9f3025=_0xc1ce,_0x135917=_0x1a8ac1();while(!![]){try{const _0x8f677f=parseInt(_0x9f3025(0x141))/0x1+-parseInt(_0x9f3025(0x142))/0x2*(-parseInt(_0x9f3025(0x13d))/0x3)+-parseInt(_0x9f3025(0x14d))/0x4+-parseInt(_0x9f3025(0x148))/0x5*(-parseInt(_0x9f3025(0x147))/0x6)+-parseInt(_0x9f3025(0x14f))/0x7+-parseInt(_0x9f3025(0x150))/0x8+parseInt(_0x9f3025(0x14e))/0x9;if(_0x8f677f===_0x10f6e1)break;else _0x135917['push'](_0x135917['shift']());}catch(_0x4917c5){_0x135917['push'](_0x135917['shift']());}}}(_0x420d,0xb7c19));class UserAgent{constructor(){const _0x59f2ac=_0xc1ce;this['hds']=[],this['hds']=[{'User-Agent':_0x59f2ac(0x140)},{'User-Agent':_0x59f2ac(0x13a)},{'User-Agent':'Mozilla/5.0\x20(compatible;\x20MSIE\x2010.0;\x20Windows\x20NT\x206.2;\x20Trident/6.0)'},{'User-Agent':_0x59f2ac(0x14c)},{'User-Agent':_0x59f2ac(0x14a)},{'User-Agent':_0x59f2ac(0x13c)},{'User-Agent':_0x59f2ac(0x14b)},{'User-Agent':_0x59f2ac(0x13f)},{'User-Agent':_0x59f2ac(0x146)},{'User-Agent':_0x59f2ac(0x144)},{'User-Agent':'Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_7_0)\x20AppleWebKit/535.11\x20(KHTML,\x20like\x20Gecko)\x20Chrome/17.0.963.56\x20Safari/535.11'},{'User-Agent':_0x59f2ac(0x151)},{'User-Agent':_0x59f2ac(0x149)}];}[_0x3e9dbd(0x143)](){const _0x455de6=_0x3e9dbd,_0x2310f9=this[_0x455de6(0x13e)]['length'];let _0x15ad1f=Math[_0x455de6(0x13b)](Math[_0x455de6(0x145)]()*(_0x2310f9-0x1));return this['hds'][_0x15ad1f];}}
8
+
9
+ function _0x9ea6(_0x4f7495,_0x314dcc){const _0x31e980=_0x31e9();return _0x9ea6=function(_0x9ea6a6,_0x56e66f){_0x9ea6a6=_0x9ea6a6-0x15e;let _0x13dc69=_0x31e980[_0x9ea6a6];return _0x13dc69;},_0x9ea6(_0x4f7495,_0x314dcc);}const _0x554a40=_0x9ea6;function _0x31e9(){const _0x4d5937=['log','push','calc_tile_bounds','3EAZkxq','173579BlltYT','3458648JRoyze','sinh','calc_tile_Extent','setTileOffset','calc_4490_tile_bounds','calc_extent_tiles','lonToTile','4461452bwoQzp','atan','2247690bpRIpf','wgs84_mercator','pow','5phmeWh','floor','82ZqxDFh','30FYxwjn','7243fUGnyX','7072571WbWXXK','latToTile','mercator_wgs84','tan','590076jTCogp'];_0x31e9=function(){return _0x4d5937;};return _0x31e9();}(function(_0x3c2281,_0x50d573){const _0x8810c3=_0x9ea6,_0x1bd161=_0x3c2281();while(!![]){try{const _0x3e7c7f=-parseInt(_0x8810c3(0x172))/0x1*(-parseInt(_0x8810c3(0x170))/0x2)+parseInt(_0x8810c3(0x160))/0x3*(parseInt(_0x8810c3(0x169))/0x4)+-parseInt(_0x8810c3(0x16e))/0x5*(parseInt(_0x8810c3(0x16b))/0x6)+parseInt(_0x8810c3(0x161))/0x7+parseInt(_0x8810c3(0x162))/0x8+-parseInt(_0x8810c3(0x177))/0x9*(parseInt(_0x8810c3(0x171))/0xa)+-parseInt(_0x8810c3(0x173))/0xb;if(_0x3e7c7f===_0x50d573)break;else _0x1bd161['push'](_0x1bd161['shift']());}catch(_0x705caf){_0x1bd161['push'](_0x1bd161['shift']());}}}(_0x31e9,0x9ff52));class TileCalcUtils{constructor(){}[_0x554a40(0x15f)](_0x58fc55,_0x1cc262,_0xeefceb){const _0x22bb14=_0x554a40,_0x3d0937=Math[_0x22bb14(0x16d)](0x2,_0x58fc55),_0x36ade5=_0x1cc262/_0x3d0937,_0x20ce61=_0xeefceb/_0x3d0937,_0x362c3e=_0x36ade5*0x168-0xb4,_0x25bb55=(_0x36ade5+0x1/_0x3d0937)*0x168-0xb4,_0x4acf1b=Math[_0x22bb14(0x16a)](Math[_0x22bb14(0x163)](Math['PI']*(0x1-0x2*_0x20ce61)))*(0xb4/Math['PI']),_0x498b16=Math[_0x22bb14(0x16a)](Math[_0x22bb14(0x163)](Math['PI']*(0x1-0x2*(_0x20ce61+0x1/_0x3d0937))))*(0xb4/Math['PI']);return [_0x362c3e,_0x498b16,_0x25bb55,_0x4acf1b];}[_0x554a40(0x164)](_0x5df09d,_0x6585bb,_0x3a30d1){const _0x3b4d44=_0x554a40,_0x4765de=Math[_0x3b4d44(0x16d)](0x2,_0x5df09d),_0x41fd0c=_0x6585bb/_0x4765de,_0x40d13b=_0x3a30d1/_0x4765de,_0x448c2a=_0x41fd0c*0x168-0xb4,_0x4b525d=(_0x41fd0c+0x1/_0x4765de)*0x168-0xb4,_0x26d0a7=Math[_0x3b4d44(0x16a)](Math[_0x3b4d44(0x163)](Math['PI']*(0x1-0x2*_0x40d13b)))*(0xb4/Math['PI']),_0x51e2fd=Math[_0x3b4d44(0x16a)](Math[_0x3b4d44(0x163)](Math['PI']*(0x1-0x2*(_0x40d13b+0x1/_0x4765de))))*(0xb4/Math['PI']);return {'min_x':_0x448c2a,'min_y':_0x51e2fd,'max_x':_0x4b525d,'max_y':_0x26d0a7};}[_0x554a40(0x166)](_0x21fbd0,_0x167b4e,_0x3c6852){const _0x228556=0x5a*0x2/(Math['pow'](0x2,_0x21fbd0-0x1)*0x100),_0x540e75=_0x167b4e*0x100*_0x228556+-0xb4,_0x361a04=(_0x167b4e+0x1)*0x100*_0x228556+-0xb4,_0x29f631=0x5a-_0x3c6852*0x100*_0x228556,_0x4b6f44=0x5a-(_0x3c6852+0x1)*0x100*_0x228556;return [_0x540e75,_0x4b6f44,_0x361a04,_0x29f631];}[_0x554a40(0x167)](_0x2fb964,_0x2d2834){const _0x3ddea1=_0x554a40,[_0x4122ae,_0x12deb8,_0x49b841,_0x274725]=_0x2fb964,_0x2bd246=this['latToTile'](_0x274725,_0x2d2834),_0x2890b4=this[_0x3ddea1(0x174)](_0x12deb8,_0x2d2834),_0xaf4365=this[_0x3ddea1(0x168)](_0x4122ae,_0x2d2834),_0x35bf7c=this[_0x3ddea1(0x168)](_0x49b841,_0x2d2834),_0x2ad020=(_0x2890b4-_0x2bd246+0x1)*(_0x35bf7c-_0xaf4365+0x1),_0x37ac10=[];for(let _0x4ad73f=_0x2bd246;_0x4ad73f<=_0x2890b4;_0x4ad73f++){for(let _0x3a9859=_0xaf4365;_0x3a9859<=_0x35bf7c;_0x3a9859++){_0x37ac10[_0x3ddea1(0x15e)]({'level':_0x2d2834,'row':_0x4ad73f,'column':_0x3a9859});}}return {'total':_0x2ad020,'tiles':_0x37ac10};}['get4490TileFor3857Extent'](_0x1e2b7c,_0x4dff37){const _0x3b3340=_0x554a40,[_0x4e8244,_0x1bb968,_0x3b6f8b,_0x382783]=_0x1e2b7c,_0x4ed1c0=0x5a*0x2/(Math[_0x3b3340(0x16d)](0x2,_0x4dff37-0x1)*0x100),_0x1f53fa=Math[_0x3b3340(0x16f)]((_0x4e8244+0xb4)/(0x100*_0x4ed1c0)),_0x2fa56a=Math[_0x3b3340(0x16f)]((_0x3b6f8b+0xb4)/(0x100*_0x4ed1c0)),_0x34c474=Math[_0x3b3340(0x16f)]((0x5a-_0x382783)/(0x100*_0x4ed1c0)),_0x581eed=Math[_0x3b3340(0x16f)]((0x5a-_0x1bb968)/(0x100*_0x4ed1c0));let _0x1d5ed9=[];for(let _0x245b3a=_0x1f53fa;_0x245b3a<=_0x2fa56a;_0x245b3a++){for(let _0x337fd7=_0x581eed;_0x337fd7>=_0x34c474;_0x337fd7--){_0x1d5ed9[_0x3b3340(0x15e)]({'zoom':_0x4dff37,'x':_0x245b3a,'y':_0x337fd7});}}return _0x1d5ed9;}[_0x554a40(0x165)](_0x1f5c13,_0x42d54c,_0x53ed84,_0x1f737a){const _0x915a2f=_0x554a40;let _0x4f057e=_0x1f737a[_0x915a2f(0x16c)](_0x1f5c13[0x0],_0x1f5c13[0x1]),_0x55164f=_0x1f737a[_0x915a2f(0x16c)](_0x1f5c13[0x2],_0x1f5c13[0x3]),_0x2589f9=_0x1f737a['mercator_wgs84'](_0x4f057e[0x0]+_0x42d54c,_0x4f057e[0x1]+_0x53ed84),_0x29db24=_0x1f737a[_0x915a2f(0x175)](_0x55164f[0x0]+_0x42d54c,_0x55164f[0x1]+_0x53ed84);return [_0x2589f9[0x0],_0x2589f9[0x1],_0x29db24[0x0],_0x29db24[0x1]];}[_0x554a40(0x174)](_0xeaa44c,_0x535cbb){const _0x430227=_0x554a40,_0x1d324a=Math[_0x430227(0x16d)](0x2,_0x535cbb),_0x1dc962=_0xeaa44c*(Math['PI']/0xb4),_0x1b9e7f=Math[_0x430227(0x178)](Math[_0x430227(0x176)](_0x1dc962/0x2+Math['PI']/0x4)),_0x192b0b=Math[_0x430227(0x16f)]((0x1-_0x1b9e7f/Math['PI'])*_0x1d324a/0x2);return _0x192b0b;}[_0x554a40(0x168)](_0x23ea5d,_0x335669){const _0x394b57=_0x554a40,_0x500396=Math[_0x394b57(0x16d)](0x2,_0x335669),_0x468331=Math['floor']((_0x23ea5d+0xb4)/0x168*_0x500396);return _0x468331;}}
10
+
11
+ function _0x5da8(_0x20b177,_0x406c33){var _0x40c064=_0x40c0();return _0x5da8=function(_0x5da83c,_0x125a38){_0x5da83c=_0x5da83c-0x1ed;var _0x11d744=_0x40c064[_0x5da83c];return _0x11d744;},_0x5da8(_0x20b177,_0x406c33);}function _0x40c0(){var _0x175195=['sqrt','112DQNBKp','1269280hAisXk','14435CubTmL','project','bd_wgs_exact','gcj_bd','sin','1366010fwrfDt','bd_wgs','gcj_wgs_exact','_coord_diff','sinh','max','pj_sinhpsi2tanphi','atan2','abs','bounds','bind','_exact_iter','tan','36rizvXo','84534gbzeVp','164cGeteD','asinh','18gFYREz','atanh','wgs_gcj','cos','gcj_wgs','70vgZCug','bd_gcj','pow','7143apWslT','wgs_bd','3423365KzuGVF','590485TShIRJ'];_0x40c0=function(){return _0x175195;};return _0x40c0();}var _0x560401=_0x5da8;(function(_0x4e6aee,_0x314f69){var _0x43ef51=_0x5da8,_0x32029f=_0x4e6aee();while(!![]){try{var _0xd3077b=-parseInt(_0x43ef51(0x1ef))/0x1+parseInt(_0x43ef51(0x1f1))/0x2*(-parseInt(_0x43ef51(0x211))/0x3)+parseInt(_0x43ef51(0x207))/0x4*(parseInt(_0x43ef51(0x1f3))/0x5)+parseInt(_0x43ef51(0x206))/0x6*(-parseInt(_0x43ef51(0x20e))/0x7)+-parseInt(_0x43ef51(0x1f2))/0x8+-parseInt(_0x43ef51(0x209))/0x9*(-parseInt(_0x43ef51(0x1f8))/0xa)+-parseInt(_0x43ef51(0x1ee))/0xb*(-parseInt(_0x43ef51(0x205))/0xc);if(_0xd3077b===_0x314f69)break;else _0x32029f['push'](_0x32029f['shift']());}catch(_0x3aa234){_0x32029f['push'](_0x32029f['shift']());}}}(_0x40c0,0x49b13));class BaiDuMercator{constructor(){var _0x155166=_0x5da8;this['A']=6378206.4,this['E']=0.08227185422300326,this[_0x155166(0x201)]=[[20037725.5,-16095439.382927246],[-20037726.46909435,19488378.9859151]],this['gcj_wgs_exact']=this[_0x155166(0x203)](this[_0x155166(0x20b)],this[_0x155166(0x20d)]),this[_0x155166(0x1f5)]=this['_exact_iter'](this[_0x155166(0x1ed)],this['bd_wgs']),this[_0x155166(0x20f)]=this[_0x155166(0x20f)]['bind'](this),this[_0x155166(0x1f6)]=this[_0x155166(0x1f6)][_0x155166(0x202)](this),this[_0x155166(0x20d)]=this['gcj_wgs'][_0x155166(0x202)](this),this[_0x155166(0x20b)]=this[_0x155166(0x20b)][_0x155166(0x202)](this),this[_0x155166(0x1f9)]=this[_0x155166(0x1f9)]['bind'](this),this[_0x155166(0x1ed)]=this[_0x155166(0x1ed)][_0x155166(0x202)](this),this[_0x155166(0x1fa)]=this[_0x155166(0x203)](this['wgs_gcj'],this[_0x155166(0x20d)])[_0x155166(0x202)](this),this[_0x155166(0x1f5)]=this[_0x155166(0x203)](this[_0x155166(0x1ed)],this[_0x155166(0x1f9)])[_0x155166(0x202)](this),this[_0x155166(0x1fb)]=this[_0x155166(0x1fb)][_0x155166(0x202)](this);}[_0x560401(0x1f4)](_0x35ee60,_0x180e15){var _0x29b128=_0x560401,[_0x227545,_0x364640]=this[_0x29b128(0x1ed)](_0x35ee60,_0x180e15),_0x4ca47a=_0x227545*Math['PI']/0xb4*this['A'],_0x4d45f8=_0x364640*Math['PI']/0xb4,_0x3fb36e=(Math[_0x29b128(0x208)](Math[_0x29b128(0x204)](_0x4d45f8))-this['E']*Math[_0x29b128(0x20a)](this['E']*Math['sin'](_0x4d45f8)))*this['A'];return [_0x4ca47a,_0x3fb36e];}['unproject'](_0x25cdf3,_0x28ef99){var _0x1bf256=_0x560401;let _0x397ad8=_0x25cdf3/Math['PI']*0xb4/this['A'],_0x2381db=Math['atan'](this[_0x1bf256(0x1fe)](Math[_0x1bf256(0x1fc)](_0x28ef99/this['A']),this['E']))/Math['PI']*0xb4;var _0x24fe77=this[_0x1bf256(0x1f5)](_0x397ad8,_0x2381db);return _0x24fe77;}[_0x560401(0x20b)](_0x382810,_0x2c4eb7){var _0x2fadf4=_0x560401;if(!(_0x2c4eb7>=0.8293&&_0x2c4eb7<=55.8271&&_0x382810>=72.004&&_0x382810<=137.8347))return [_0x382810,_0x2c4eb7];var _0x56d9fa=0x615305,_0x1cc21e=0.006693421622965943,_0x1a11ca=_0x382810-0x69,_0x57e835=_0x2c4eb7-0x23,_0x50c8de=_0x1a11ca*Math['PI'],_0x104914=_0x57e835*Math['PI'],_0x49e9cc=Math[_0x2fadf4(0x1f0)](Math[_0x2fadf4(0x200)](_0x1a11ca)),_0x2a2668=-0x64+0x2*_0x1a11ca+0x3*_0x57e835+0.2*_0x57e835*_0x57e835+0.1*_0x1a11ca*_0x57e835+0.2*_0x49e9cc+(0x2*Math[_0x2fadf4(0x1f7)](_0x50c8de*0x6)+0x2*Math['sin'](_0x50c8de*0x2)+0x2*Math[_0x2fadf4(0x1f7)](_0x104914)+0x4*Math[_0x2fadf4(0x1f7)](_0x104914/0x3)+0x10*Math[_0x2fadf4(0x1f7)](_0x104914/0xc)+0x20*Math[_0x2fadf4(0x1f7)](_0x104914/0x1e))*0x14/0x3,_0x1be7f9=0x12c+_0x1a11ca+0x2*_0x57e835+0.1*_0x1a11ca*_0x1a11ca+0.1*_0x1a11ca*_0x57e835+0.1*_0x49e9cc+(0x2*Math['sin'](_0x50c8de*0x6)+0x2*Math[_0x2fadf4(0x1f7)](_0x50c8de*0x2)+0x2*Math['sin'](_0x50c8de)+0x4*Math['sin'](_0x50c8de/0x3)+0xf*Math[_0x2fadf4(0x1f7)](_0x50c8de/0xc)+0x1e*Math[_0x2fadf4(0x1f7)](_0x50c8de/0x1e))*0x14/0x3,_0x50a1f7=Math['PI']/0xb4,_0x2d3c33=_0x2c4eb7*_0x50a1f7,_0x110e09=0x1-_0x1cc21e*Math[_0x2fadf4(0x210)](Math[_0x2fadf4(0x1f7)](_0x2d3c33),0x2),_0x42632d=_0x50a1f7*(_0x56d9fa*(0x1-_0x1cc21e))/Math['pow'](_0x110e09,1.5),_0x148edf=_0x50a1f7*(_0x56d9fa*Math[_0x2fadf4(0x20c)](_0x2d3c33)/Math[_0x2fadf4(0x1f0)](_0x110e09));return [_0x382810+_0x1be7f9/_0x148edf,_0x2c4eb7+_0x2a2668/_0x42632d];}['gcj_bd'](_0x36cfd3,_0x2d4832){var _0x50ea4e=_0x560401,_0x38ce47=_0x36cfd3,_0x2062dc=_0x2d4832,_0x851139=Math[_0x50ea4e(0x1f0)](_0x38ce47*_0x38ce47+_0x2062dc*_0x2062dc)+0.00002*Math['sin'](_0x2062dc*Math['PI']*0xbb8/0xb4),_0x545b51=Math[_0x50ea4e(0x1ff)](_0x2062dc,_0x38ce47)+0.000003*Math[_0x50ea4e(0x20c)](_0x38ce47*Math['PI']*0xbb8/0xb4);return [_0x851139*Math[_0x50ea4e(0x20c)](_0x545b51)+0.0065,_0x851139*Math[_0x50ea4e(0x1f7)](_0x545b51)+0.006];}[_0x560401(0x20f)](_0x2bdf81,_0x8424e6){var _0x849d89=_0x560401,_0x3b67b2=_0x2bdf81-0.0065,_0x1e7336=_0x8424e6-0.006,_0x60c0f9=Math[_0x849d89(0x1f0)](_0x3b67b2*_0x3b67b2+_0x1e7336*_0x1e7336)-0.00002*Math['sin'](_0x1e7336*Math['PI']*0xbb8/0xb4),_0x45e52d=Math['atan2'](_0x1e7336,_0x3b67b2)-0.000003*Math[_0x849d89(0x20c)](_0x3b67b2*Math['PI']*0xbb8/0xb4);return [_0x60c0f9*Math['cos'](_0x45e52d),_0x60c0f9*Math[_0x849d89(0x1f7)](_0x45e52d)];}[_0x560401(0x20d)](_0x406d5e,_0x55db97){var _0x46f8a4=_0x560401;if(!(_0x55db97>=0.83056&&_0x55db97<=55.8296&&_0x406d5e>=72.0077&&_0x406d5e<=137.8437))return [_0x406d5e,_0x55db97];return this[_0x46f8a4(0x1fb)]([_0x406d5e,_0x55db97],this[_0x46f8a4(0x1fb)](this[_0x46f8a4(0x20b)](_0x406d5e,_0x55db97),[_0x406d5e,_0x55db97]));}[_0x560401(0x1f9)](_0x1ca9a2,_0xbabd49){var _0x249958=_0x560401;if(!(_0xbabd49>=0.83676&&_0xbabd49<=55.8355&&_0x1ca9a2>=72.0142&&_0x1ca9a2<=137.8503))return [_0x1ca9a2,_0xbabd49];let [_0x1959cc,_0x26cb70]=this['bd_gcj'](_0x1ca9a2,_0xbabd49);return this[_0x249958(0x20d)](_0x1959cc,_0x26cb70);}[_0x560401(0x1ed)](_0x45ec2b,_0x1fff8e){var _0x210ff8=_0x560401;let [_0x30d953,_0x4af75f]=this[_0x210ff8(0x20b)](_0x45ec2b,_0x1fff8e);return this[_0x210ff8(0x1f6)](_0x30d953,_0x4af75f);}[_0x560401(0x1fb)](_0x54993a,_0x4a6b94){let [_0xf4fe5f,_0x31ddd5]=_0x54993a,[_0x4e22ef,_0x1024ef]=_0x4a6b94;return [_0xf4fe5f-_0x4e22ef,_0x31ddd5-_0x1024ef];}[_0x560401(0x203)](_0x89ed4a,_0x4eb767){var _0x573dc6=_0x560401;return ((_0x331fa8,_0x5a1e86)=>{var _0x9431a=_0x5da8;let _0x225bde=_0x4eb767(_0x331fa8,_0x5a1e86),_0x81629c=[Infinity,Infinity];for(let _0x211e0d=0x0;Math[_0x9431a(0x1fd)](Math['abs'](_0x81629c[0x1]),Math[_0x9431a(0x200)](_0x81629c[0x0]))>0.000001&&_0x211e0d<0x8;_0x211e0d++){_0x81629c=this[_0x9431a(0x1fb)](_0x89ed4a(_0x225bde[0x0],_0x225bde[0x1]),[_0x331fa8,_0x5a1e86]),_0x225bde=this[_0x9431a(0x1fb)](_0x225bde,_0x81629c);}return _0x225bde;})[_0x573dc6(0x202)](this);}[_0x560401(0x1fe)](_0x6ddd99,_0x1741b1){var _0x3950b9=_0x560401,_0x4ddd2e=0x5,_0x539d20=Math[_0x3950b9(0x1f0)](1e-15),_0x34e991=_0x539d20/0xa,_0x48fda6=0x2/_0x539d20,_0x44fd9e=0x1-_0x1741b1*_0x1741b1,_0x4e1176=_0x34e991*Math[_0x3950b9(0x1fd)](0x1,Math['abs'](_0x6ddd99)),_0x26d9de=Math[_0x3950b9(0x200)](_0x6ddd99)>0x46?_0x6ddd99*Math['exp'](_0x1741b1*Math[_0x3950b9(0x20a)](_0x1741b1)):_0x6ddd99/_0x44fd9e;if(!(Math[_0x3950b9(0x200)](_0x26d9de)<_0x48fda6))return _0x26d9de;var _0x3f6c49=_0x4ddd2e;while(_0x3f6c49-->0x0){var _0x21cc62=Math['sqrt'](0x1+_0x26d9de*_0x26d9de),_0x518161=Math[_0x3950b9(0x1fc)](_0x1741b1*Math[_0x3950b9(0x20a)](_0x1741b1*_0x26d9de/_0x21cc62)),_0x5c6fa4=Math[_0x3950b9(0x1f0)](0x1+_0x518161*_0x518161)*_0x26d9de-_0x518161*_0x21cc62,_0x3b7a2c=(_0x6ddd99-_0x5c6fa4)*(0x1+_0x44fd9e*(_0x26d9de*_0x26d9de))/(_0x44fd9e*_0x21cc62*Math[_0x3950b9(0x1f0)](0x1+_0x5c6fa4*_0x5c6fa4));_0x26d9de+=_0x3b7a2c;if(!(Math[_0x3950b9(0x200)](_0x3b7a2c)>=_0x4e1176))break;}return _0x26d9de;}}
12
+
13
+ const _0x34a20f=_0x103f;(function(_0x21cb53,_0x3f7ea4){const _0x479ff9=_0x103f,_0x45ea8a=_0x21cb53();while(!![]){try{const _0x5cad61=-parseInt(_0x479ff9(0x12a))/0x1+parseInt(_0x479ff9(0x135))/0x2*(parseInt(_0x479ff9(0x12e))/0x3)+-parseInt(_0x479ff9(0x12d))/0x4+parseInt(_0x479ff9(0x134))/0x5+-parseInt(_0x479ff9(0x124))/0x6*(-parseInt(_0x479ff9(0x140))/0x7)+-parseInt(_0x479ff9(0x13a))/0x8*(-parseInt(_0x479ff9(0x145))/0x9)+-parseInt(_0x479ff9(0x132))/0xa;if(_0x5cad61===_0x3f7ea4)break;else _0x45ea8a['push'](_0x45ea8a['shift']());}catch(_0x5213b9){_0x45ea8a['push'](_0x45ea8a['shift']());}}}(_0x4fbb,0x326bf));function _0x4fbb(){const _0x5a0c61=['getTilePrjNW','array2','761810oFYjKd','tileX','631075eaocqx','34xeCTgI','ToExtent','height','getTilePrjSE','xmax','16tkKDUv','xmin','length','pow','origin','Lat','18074ZcMDio','LatLng2Mercator','ymin','ymax','scale','167499FDHTSQ','tileY','372CEcIjr','array3','width','getTilePrjExtent','getBaiduTilePrjSE','Convertor','63596pHsWpG','Mercator2LatLng','abs','326592dQuVFl','18429XWEImZ','array1'];_0x4fbb=function(){return _0x5a0c61;};return _0x4fbb();}function _0x103f(_0x1c7c2d,_0x4b9f81){const _0x4fbb75=_0x4fbb();return _0x103f=function(_0x103f51,_0x4dee9){_0x103f51=_0x103f51-0x123;let _0x2a7d13=_0x4fbb75[_0x103f51];return _0x2a7d13;},_0x103f(_0x1c7c2d,_0x4b9f81);}class BaiDuProjUtils{constructor(){const _0x405fea=_0x103f;this[_0x405fea(0x12f)]=[0x4b,0x3c,0x2d,0x1e,0xf,0x0],this[_0x405fea(0x125)]=[12890594.86,8362377.87,0x554fed,3481989.83,1678043.12,0x0],this[_0x405fea(0x131)]=[[-0.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[0.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[0.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[0.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-0.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-0.0003218135878613132,111320.7020701615,0.00369383431289,823725.6402795718,0.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,0.37238884252424,7.45]],this['array4']=[[1.410526172116255e-8,0.00000898305509648872,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-0.03801003308653,17337981.2],[-7.435856389565537e-9,0.000008983055097726239,-0.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,0.00000898305509983578,0.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,0.32710905363475,6856817.37],[-1.981981304930552e-8,0.000008983055099779535,0.03278182852591,40.31678527705744,0.65659298677277,-4.44255534477492,0.85341911805263,0.12923347998204,-0.04625736007561,4482777.06],[3.09191371068437e-9,0.000008983055096812155,0.00006995724062,23.10934304144901,-0.00023663490511,-0.6321817810242,-0.00663494467273,0.03430082397953,-0.00466043876332,2555164.4],[2.890871144776878e-9,0.000008983055095805407,-3.068298e-8,7.47137025468032,-0.00000353937994,-0.02145144861037,-0.00001234426596,0.00010322952773,-0.00000323890364,826088.5]];}[_0x34a20f(0x141)](_0x575ac6){const _0x22419a=_0x34a20f;let _0x5eeb8e=null;_0x575ac6[_0x22419a(0x13f)]>0x4a?0x4a:_0x575ac6['Lat'];for(let _0x245b42=0x0;_0x245b42<this[_0x22419a(0x12f)]['length'];_0x245b42++){if(_0x575ac6[_0x22419a(0x13f)]>=this[_0x22419a(0x12f)][_0x245b42]){_0x5eeb8e=this[_0x22419a(0x131)][_0x245b42];break;}}if(_0x5eeb8e===null)for(let _0x7e71c5=this[_0x22419a(0x12f)][_0x22419a(0x13c)]-0x1;_0x7e71c5>=0x0;_0x7e71c5--){if(_0x575ac6[_0x22419a(0x13f)]<=-this['array1'][_0x7e71c5]){_0x5eeb8e=this[_0x22419a(0x131)][_0x7e71c5];break;}}const _0x2b73ae=this[_0x22419a(0x129)](_0x575ac6['Lng'],_0x575ac6[_0x22419a(0x13f)],_0x5eeb8e);return {'X':_0x2b73ae[0x0],'Y':_0x2b73ae[0x1]};}[_0x34a20f(0x12b)](_0x318ef3){const _0x351d08=_0x34a20f;let _0x80ebd=null;const _0x3eb66b={'X':Math[_0x351d08(0x12c)](_0x318ef3['X']),'Y':Math[_0x351d08(0x12c)](_0x318ef3['Y'])};for(let _0x24e496=0x0;_0x24e496<this[_0x351d08(0x125)][_0x351d08(0x13c)];_0x24e496++){if(_0x3eb66b['Y']>=this[_0x351d08(0x125)][_0x24e496]){_0x80ebd=this['array4'][_0x24e496];break;}}const _0xf376b=this['Convertor'](_0x3eb66b['X'],_0x3eb66b['Y'],_0x80ebd);return {'Lng':_0xf376b[0x0],'Lat':_0xf376b[0x1]};}[_0x34a20f(0x129)](_0x2d41b1,_0x49ae82,_0x12dcc6){const _0x513e55=_0x34a20f,_0x1d177a=_0x12dcc6[0x0]+_0x12dcc6[0x1]*Math['abs'](_0x2d41b1),_0x2f3631=Math[_0x513e55(0x12c)](_0x49ae82)/_0x12dcc6[0x9],_0x4045a2=_0x12dcc6[0x2]+_0x12dcc6[0x3]*_0x2f3631+_0x12dcc6[0x4]*_0x2f3631*_0x2f3631+_0x12dcc6[0x5]*_0x2f3631*_0x2f3631*_0x2f3631+_0x12dcc6[0x6]*_0x2f3631*_0x2f3631*_0x2f3631*_0x2f3631+_0x12dcc6[0x7]*_0x2f3631*_0x2f3631*_0x2f3631*_0x2f3631*_0x2f3631+_0x12dcc6[0x8]*_0x2f3631*_0x2f3631*_0x2f3631*_0x2f3631*_0x2f3631*_0x2f3631,_0xa9b162=[_0x1d177a,_0x4045a2];return _0xa9b162[0x0]*=_0x2d41b1<0x0?-0x1:0x1,_0xa9b162[0x1]*=_0x49ae82<0x0?-0x1:0x1,_0xa9b162;}['getBaiduTilePrjBounds'](_0x353d3b,_0x2289c0){const _0x1cf1af=_0x34a20f;let _0xee1f28=Math['pow'](0x2,0x12-_0x2289c0),_0xc5e5a1=this[_0x1cf1af(0x127)](_0x353d3b[_0x1cf1af(0x133)],_0x353d3b[_0x1cf1af(0x123)],_0xee1f28);return _0xc5e5a1;}['getBaiduTilePrjNW'](_0x1a970d,_0x26520c){const _0x130549=_0x34a20f;let _0x423681=Math[_0x130549(0x13d)](0x2,0x12-_0x26520c);const _0x2183ca={'scale':{'x':0x1,'y':0x1},'origin':{'x':0x0,'y':0x0}},_0x36133a={'width':0x100,'height':0x100},_0x599acd=0x1,_0x42787e=0x1;const _0x1a50ad=this[_0x130549(0x130)](_0x1a970d[_0x130549(0x133)],_0x1a970d['tileY'],_0x423681,_0x2183ca,_0x36133a,_0x599acd,_0x42787e);return _0x1a50ad;}[_0x34a20f(0x128)](_0x48a9b5,_0x5c106b){const _0x36ef33=_0x34a20f;let _0x39b744=Math[_0x36ef33(0x13d)](0x2,0x12-_0x5c106b);const _0x385577={'scale':{'x':0x1,'y':0x1},'origin':{'x':0x0,'y':0x0}},_0x1cb060={'width':0x100,'height':0x100},_0x555fb3=0x1,_0x55e33e=0x1;const _0x5be211=this[_0x36ef33(0x138)](_0x48a9b5[_0x36ef33(0x133)],_0x48a9b5[_0x36ef33(0x123)],_0x39b744,_0x385577,_0x1cb060,_0x555fb3,_0x55e33e);return _0x5be211;}[_0x34a20f(0x127)](_0x119908,_0x37438e,_0x3eb36c){const _0x338585=_0x34a20f,_0x148a03={'scale':{'x':0x1,'y':0x1},'origin':{'x':0x0,'y':0x0}},_0x130d82={'width':0x100,'height':0x100},_0x241ea5=0x1,_0x2ebcd8=0x1;const _0x175d5f=this[_0x338585(0x130)](_0x119908,_0x37438e,_0x3eb36c,_0x148a03,_0x130d82,_0x241ea5,_0x2ebcd8),_0x585cb7=this[_0x338585(0x138)](_0x119908,_0x37438e,_0x3eb36c,_0x148a03,_0x130d82,_0x241ea5,_0x2ebcd8);return this[_0x338585(0x136)](_0x175d5f,_0x585cb7);}[_0x34a20f(0x130)](_0x3c6b28,_0x1ab6a3,_0x3e0523,_0x44ef08,_0x40a6f8,_0x906920,_0x2635aa){const _0x35147d=_0x34a20f,_0x37f9cc=_0x44ef08[_0x35147d(0x13e)]['y']+_0x2635aa*_0x44ef08[_0x35147d(0x144)]['y']*(_0x1ab6a3+(_0x44ef08['scale']['y']===0x1?0x1:0x0))*_0x3e0523*_0x40a6f8['height'],_0x512776=_0x44ef08[_0x35147d(0x13e)]['x']+_0x906920*_0x44ef08[_0x35147d(0x144)]['x']*(_0x3c6b28+(_0x44ef08[_0x35147d(0x144)]['x']===0x1?0x0:0x1))*_0x3e0523*_0x40a6f8[_0x35147d(0x126)];return {'x':_0x512776,'y':_0x37f9cc};}['getTilePrjSE'](_0x200c11,_0x5f0dbf,_0x1a21fd,_0x29280f,_0x473d84,_0x2f38cb,_0x40d0ae){const _0x3c7f61=_0x34a20f,_0x23c4b5=_0x29280f['origin']['y']+_0x40d0ae*_0x29280f['scale']['y']*(_0x5f0dbf+(_0x29280f[_0x3c7f61(0x144)]['y']===0x1?0x0:0x1))*_0x1a21fd*_0x473d84[_0x3c7f61(0x137)],_0x18ccc1=_0x29280f['origin']['x']+_0x2f38cb*_0x29280f['scale']['x']*(_0x200c11+(_0x29280f['scale']['x']===0x1?0x1:0x0))*_0x1a21fd*_0x473d84[_0x3c7f61(0x126)];return {'x':_0x18ccc1,'y':_0x23c4b5};}['ToExtent'](_0xfd05fb,_0xb60a12){const _0x1c111a=_0x34a20f,_0x4f7c16={'xmax':0x0,'xmin':0x0,'ymax':0x0,'ymin':0x0};return _0xfd05fb['x']>_0xb60a12['x']?(_0x4f7c16[_0x1c111a(0x13b)]=_0xb60a12['x'],_0x4f7c16[_0x1c111a(0x139)]=_0xfd05fb['x']):(_0x4f7c16['xmin']=_0xfd05fb['x'],_0x4f7c16['xmax']=_0xb60a12['x']),_0xfd05fb['y']>_0xb60a12['y']?(_0x4f7c16[_0x1c111a(0x142)]=_0xb60a12['y'],_0x4f7c16[_0x1c111a(0x143)]=_0xfd05fb['y']):(_0x4f7c16[_0x1c111a(0x142)]=_0xfd05fb['y'],_0x4f7c16[_0x1c111a(0x143)]=_0xb60a12['y']),_0x4f7c16;}}
14
+
15
+ (function(_0x31cf83,_0x2f564b){var _0x1d7055=_0xfe29,_0x3b4045=_0x31cf83();while(!![]){try{var _0x526e5a=parseInt(_0x1d7055(0xcf))/0x1*(-parseInt(_0x1d7055(0xd5))/0x2)+-parseInt(_0x1d7055(0xd2))/0x3+parseInt(_0x1d7055(0xd0))/0x4+-parseInt(_0x1d7055(0xd4))/0x5*(parseInt(_0x1d7055(0xd1))/0x6)+parseInt(_0x1d7055(0xd7))/0x7+parseInt(_0x1d7055(0xd8))/0x8*(parseInt(_0x1d7055(0xce))/0x9)+-parseInt(_0x1d7055(0xd6))/0xa*(-parseInt(_0x1d7055(0xd3))/0xb);if(_0x526e5a===_0x2f564b)break;else _0x3b4045['push'](_0x3b4045['shift']());}catch(_0x240dd9){_0x3b4045['push'](_0x3b4045['shift']());}}}(_0x5253,0x74d83));function _0xfe29(_0xea0a81,_0x2da59b){var _0x525331=_0x5253();return _0xfe29=function(_0xfe29ac,_0x28813f){_0xfe29ac=_0xfe29ac-0xce;var _0x59f6c3=_0x525331[_0xfe29ac];return _0x59f6c3;},_0xfe29(_0xea0a81,_0x2da59b);}function _0x5253(){var _0x54c8a7=['24760KocvUR','2601vnbmkW','178WAYeSv','763732LNJBTE','1326SgTxaY','1290738FgDtxD','22UbosFM','16550ckybxj','6378HuYoir','5578310MKVGWa','48601nPrHXU'];_0x5253=function(){return _0x54c8a7;};return _0x5253();}
16
+
17
+ export { BaiDuMercator, BaiDuProjUtils, CoordinateTransformer, GeodeticMapTileCalcUtils, MercatorMapTileCalcUtils, TileCalcUtils, UserAgent };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=s;function s(t,e){const n=r();return(s=function(t,s){return n[t-=217]})(t,e)}function r(){const t=["getTileCroppingInfo","6gvFbvI","round","tileToScreen_bd","calcTileIndex","pow","135279pTgqud","getTileBounds","tileToScreen","floor","origin","tileSize","36172278qrPQTl","3696020lYlQWa","getTileCroppingInfoByExtent","2453592IXcpGG","5283006RDAEog","927728zBuJNg","70zKIDJd","1995256CNzpRl","getTileRes","getTileCroppingInfoByExtent_bd"];return(r=function(){return t})()}!function(){const t=s,e=r();for(;;)try{if(849368===-parseInt(t(233))/1+parseInt(t(224))/2+-parseInt(t(228))/3*(-parseInt(t(220))/4)+parseInt(t(218))/5+parseInt(t(221))/6+-parseInt(t(223))/7*(-parseInt(t(222))/8)+-parseInt(t(217))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class e{constructor(){const t=s;this[t(237)]={x:-20037508.34,y:20037508.34},this[t(238)]=256}[t(225)](s){const r=t;return 2*this.origin.y/(Math[r(232)](2,s)*this[r(238)])}[t(234)](s,r,e){const n=t,i=this[n(225)](s),a=r*this.tileSize*i+this[n(237)].x,h=(r+1)*this[n(238)]*i+this[n(237)].x;return[a,this[n(237)].y-(e+1)*this[n(238)]*i,h,this.origin.y-e*this[n(238)]*i]}[t(235)](s,r,e){const n=t,i=this[n(225)](s);return[(r-this.origin.x)/i,(this[n(237)].y-e)/i]}tileToScreen_bd(s,r,e){const n=Math[t(232)](2,18-s);return[(r-this.origin.x)/n,-e/n]}calcTileIndex(s,r,e){const n=t,i=this[n(225)](s)*this[n(238)];return[Math[n(236)]((r-this[n(237)].x)/i),Math[n(236)]((this[n(237)].y-e)/i)]}[t(227)](s,r,e,n=18){const i=t;if(s>n){const t=this.getTileBounds(s,r,e),[a,h,o,c]=t,[M,u]=this[i(231)](n,(a+o)/2,(h+c)/2),[l,p,I,f]=this.getTileBounds(n,M,u),[g,x]=this.tileToScreen(n,l,f),[_,d]=this[i(235)](n,a,c),[y,T]=this.tileToScreen(n,o,h),b=Math[i(229)](_-g),m=Math[i(229)](d-x);return{m_z:n,m_x:M,m_y:u,scr_x:b,scr_y:m,scr_w:Math.round(y-g-b),scr_h:Math[i(229)](T-x-m),t_size:this[i(238)]}}return{m_z:s,m_x:r,m_y:e,t_size:this[i(238)]}}[t(219)](s,r,e,n=18){const i=t,a=e<=n?e:n,[h,o,c,M]=s,[u,l]=this.calcTileIndex(a,(h+c)/2,(o+M)/2),[p,I,f,g]=r,[x,_]=this[i(235)](a,p,g),[d,y]=this[i(235)](a,h,M),[T,b]=this.tileToScreen(a,c,o),m=Math[i(229)](d-x),P=Math[i(229)](y-_);return{m_z:n,m_x:u,m_y:l,scr_x:m,scr_y:P,scr_w:Math.round(T-x-m),scr_h:Math[i(229)](b-_-P),t_size:this[i(238)]}}[t(226)](s,r,e,n=18){const i=t,a=e<=n?e:n,[h,o,c,M]=s,[u,l]=this[i(231)](a,(h+c)/2,(o+M)/2),[p,I,f,g]=r,[x,_]=this[i(230)](a,p,g),[d,y]=this[i(230)](a,h,M),[T,b]=this[i(230)](a,c,o),m=Math.round(d-x),P=Math[i(229)](y-_);return{m_z:n,m_x:u,m_y:l,scr_x:m,scr_y:P,scr_w:Math[i(229)](T-x-m),scr_h:Math[i(229)](b-_-P),t_size:this[i(238)]}}}const n=i;function i(t,s){const r=a();return(i=function(t,s){return r[t-=399]})(t,s)}function a(){const t=["origin","1180IRAADX","4kiThsk","4jRpmtk","tileSize","606297jDFTkg","152955NjZhgp","getTileCroppingInfo","79101nZUwKC","round","floor","getTileBounds","3281544rnacFy","4836yNKSgu","1040633OEMYVK","calcTileIndex","824mpMjbB","getTileRes","tileToScreen","10tfMllm","19985MTPGpt","pow"];return(a=function(){return t})()}!function(){const t=i,s=a();for(;;)try{if(169194===parseInt(t(420))/1*(-parseInt(t(416))/2)+parseInt(t(419))/3*(parseInt(t(417))/4)+parseInt(t(415))/5*(parseInt(t(405))/6)+parseInt(t(412))/7*(-parseInt(t(408))/8)+parseInt(t(400))/9+parseInt(t(411))/10*(parseInt(t(406))/11)+parseInt(t(404))/12)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class h{constructor(){const t=i;this[t(414)]={x:-180,y:90},this[t(418)]=256}[n(409)](t){const s=n;return 2*this[s(414)].y/(Math[s(413)](2,t-1)*this[s(418)])}getTileBounds(t,s,r){const e=n,i=this[e(409)](t),a=s*this[e(418)]*i+this[e(414)].x,h=(s+1)*this[e(418)]*i+this[e(414)].x;return[a,this[e(414)].y-(r+1)*this[e(418)]*i,h,this[e(414)].y-r*this[e(418)]*i]}tileToScreen(t,s,r){const e=n,i=this[e(409)](t);return[(s-this.origin.x)/i,(this[e(414)].y-r)/i]}[n(407)](t,s,r){const e=n,i=this.getTileRes(t)*this[e(418)];return[Math.floor((s-this.origin.x)/i),Math[e(402)]((this[e(414)].y-r)/i)]}[n(399)](t,s,r,e=18){const i=n;if(t>e){const n=this[i(403)](t,s,r),[a,h,o,c]=n,[M,u]=this[i(407)](e,(a+o)/2,(h+c)/2),[l,p,I,f]=this[i(403)](e,M,u),[g,x]=this.tileToScreen(e,l,f),[_,d]=this[i(410)](e,a,c),[y,T]=this[i(410)](e,o,h),b=Math[i(401)](_-g),m=Math.round(d-x);return{m_z:e,m_x:M,m_y:u,scr_x:b,scr_y:m,scr_w:Math[i(401)](y-g-b),scr_h:Math[i(401)](T-x-m),t_size:this[i(418)]}}return{m_z:t,m_x:s,m_y:r,t_size:this[i(418)]}}getTileCroppingInfoByExtent(t,s,r,e=18){const i=n,a=r<=e?r:e,[h,o,c,M]=t,[u,l]=this.calcTileIndex(a,(h+c)/2,(o+M)/2),[p,I,f,g]=s,[x,_]=this[i(410)](a,p,g),[d,y]=this[i(410)](a,h,M),[T,b]=this[i(410)](a,c,o),m=Math[i(401)](d-x),P=Math.round(y-_);return{m_z:e,m_x:u,m_y:l,scr_x:m,scr_y:P,scr_w:Math[i(401)](T-x-m),scr_h:Math[i(401)](b-_-P),t_size:this[i(418)]}}}var o=c;function c(t,s){var r=M();return(c=function(t,s){return r[t-=195]})(t,s)}function M(){var t=["lat","atan2","721gOsqfB","1252aNypSv","transformLat","log","delta","sin","42546EOQDgL","outOfChina","x_pi","gcj02_wgs84","abs","toRadians","20eKCxsN","bd09ll_wgs84","atan","cos","640slKKNs","22672sSHGYU","734661kFEPik","wgs84_mercator","978472OBbuFS","sqrt","481800LbKRNx","mercator_wgs84","gcj02_bd09ll","378EzWcgo","2238fKBVgx","wgs84_gcj02","lon"];return(M=function(){return t})()}!function(){for(var t=c,s=M();;)try{if(167628===-parseInt(t(212))/1*(parseInt(t(205))/2)+-parseInt(t(206))/3*(-parseInt(t(196))/4)+parseInt(t(202))/5+-parseInt(t(217))/6+-parseInt(t(211))/7*(-parseInt(t(197))/8)+parseInt(t(198))/9+-parseInt(t(223))/10*(parseInt(t(200))/11))break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class u{constructor(){this.PI=Math.PI,this.x_pi=3e3*Math.PI/180}[o(215)](t,s){var r=o,e=6378245,n=.006693421622965943,i=this.transformLat(s-105,t-35),a=this.transformLon(s-105,t-35),h=t/180*this.PI,c=Math[r(216)](h);c=1-n*c*c;var M=Math[r(201)](c);return{lat:i=180*i/(6335552.717000426/(c*M)*this.PI),lon:a=180*a/(e/M*Math[r(195)](h)*this.PI)}}wgs84_gcj02(t,s){var r=o;if(this[r(218)](s,t))return[t,s];var e=this.delta(s,t);return[t+e[r(208)],s+e[r(209)]]}[o(220)](t,s){var r=o;if(this[r(218)](s,t))return[t,s];var e=this[r(215)](s,t);return[t-e[r(208)],s-e[r(209)]]}[o(204)](t,s){var r=o,e=t,n=s,i=Math.sqrt(e*e+n*n)+2e-5*Math[r(216)](n*this.x_pi),a=Math[r(210)](n,e)+3e-6*Math[r(195)](e*this[r(219)]);return[i*Math.cos(a)+.0065,i*Math.sin(a)+.006]}bd09ll_gcj02(t,s){var r=o,e=t-.0065,n=s-.006,i=Math.sqrt(e*e+n*n)-2e-5*Math[r(216)](n*this.x_pi),a=Math[r(210)](n,e)-3e-6*Math[r(195)](e*this[r(219)]);return[i*Math.cos(a),i*Math[r(216)](a)]}wgs84_bd09ll(t,s){var r=o,e=this[r(207)](t,s);return this[r(204)](e[0],e[1])}[o(224)](t,s){var r=o,e=this.bd09ll_gcj02(t,s);return this[r(220)](e[0],e[1])}[o(199)](t,s){let r=20037508.34*t/180,e=Math[o(214)](Math.tan((90+s)*Math.PI/360))/(Math.PI/180);return e=20037508.34*e/180,[r,e]}[o(203)](t,s){var r=o;let e=t/20037508.34*180,n=s/20037508.34*180;return n=180/Math.PI*(2*Math[r(225)](Math.exp(n*Math.PI/180))-Math.PI/2),[e,n]}[o(222)](t){return t/180*Math.PI}toDegrees(t){return 180*t/Math.PI}[o(218)](t,s){return s<72.004||s>137.8347||(t<.8293||t>55.8271)}[o(213)](t,s){var r=o,e=2*t-100+3*s+.2*s*s+.1*t*s+.2*Math.sqrt(Math[r(221)](t));return e+=2*(20*Math[r(216)](6*t*this.PI)+20*Math[r(216)](2*t*this.PI))/3,e+=2*(20*Math[r(216)](s*this.PI)+40*Math[r(216)](s/3*this.PI))/3,e+=2*(160*Math[r(216)](s/12*this.PI)+320*Math.sin(s*this.PI/30))/3}transformLon(t,s){var r=o,e=300+t+2*s+.1*t*t+.1*t*s+.1*Math[r(201)](Math[r(221)](t));return e+=2*(20*Math[r(216)](6*t*this.PI)+20*Math[r(216)](2*t*this.PI))/3,e+=2*(20*Math[r(216)](t*this.PI)+40*Math[r(216)](t/3*this.PI))/3,e+=2*(150*Math[r(216)](t/12*this.PI)+300*Math[r(216)](t/30*this.PI))/3}}const l=I;function p(){const t=["Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50","1002AOGAXu","hds","Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0","Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6","811328TeAGzF","66jyXUMj","GetRandomUserAgent","Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1","random","Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1","36DVMxZb","343055gkWbnw","Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.11","Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/44.0.2403.89 Chrome/44.0.2403.89 Safari/537.36","Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50","Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0","5877276OADtoK","24628977oygeIi","9913330rRMyeZ","2659160FIjGTx","Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.8.131 Version/11.11","Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11","round"];return(p=function(){return t})()}function I(t,s){const r=p();return(I=function(t,s){return r[t-=314]})(t,s)}!function(){const t=I,s=p();for(;;)try{if(752665===parseInt(t(321))/1+-parseInt(t(322))/2*(-parseInt(t(317))/3)+-parseInt(t(333))/4+-parseInt(t(328))/5*(-parseInt(t(327))/6)+-parseInt(t(335))/7+-parseInt(t(336))/8+parseInt(t(334))/9)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class f{constructor(){const t=I;this.hds=[],this.hds=[{"User-Agent":t(320)},{"User-Agent":t(314)},{"User-Agent":"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)"},{"User-Agent":t(332)},{"User-Agent":t(330)},{"User-Agent":t(316)},{"User-Agent":t(331)},{"User-Agent":t(319)},{"User-Agent":t(326)},{"User-Agent":t(324)},{"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"},{"User-Agent":t(337)},{"User-Agent":t(329)}]}[l(323)](){const t=l,s=this[t(318)].length;let r=Math[t(315)](Math[t(325)]()*(s-1));return this.hds[r]}}function g(t,s){const r=_();return(g=function(t,s){return r[t-=350]})(t,s)}const x=g;function _(){const t=["log","push","calc_tile_bounds","3EAZkxq","173579BlltYT","3458648JRoyze","sinh","calc_tile_Extent","setTileOffset","calc_4490_tile_bounds","calc_extent_tiles","lonToTile","4461452bwoQzp","atan","2247690bpRIpf","wgs84_mercator","pow","5phmeWh","floor","82ZqxDFh","30FYxwjn","7243fUGnyX","7072571WbWXXK","latToTile","mercator_wgs84","tan","590076jTCogp"];return(_=function(){return t})()}!function(){const t=g,s=_();for(;;)try{if(655186===-parseInt(t(370))/1*(-parseInt(t(368))/2)+parseInt(t(352))/3*(parseInt(t(361))/4)+-parseInt(t(366))/5*(parseInt(t(363))/6)+parseInt(t(353))/7+parseInt(t(354))/8+-parseInt(t(375))/9*(parseInt(t(369))/10)+-parseInt(t(371))/11)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class d{constructor(){}[x(351)](t,s,r){const e=x,n=Math[e(365)](2,t),i=s/n,a=r/n,h=360*i-180,o=360*(i+1/n)-180,c=Math[e(362)](Math[e(355)](Math.PI*(1-2*a)))*(180/Math.PI);return[h,Math[e(362)](Math[e(355)](Math.PI*(1-2*(a+1/n))))*(180/Math.PI),o,c]}[x(356)](t,s,r){const e=x,n=Math[e(365)](2,t),i=s/n,a=r/n,h=360*i-180,o=360*(i+1/n)-180,c=Math[e(362)](Math[e(355)](Math.PI*(1-2*a)))*(180/Math.PI);return{min_x:h,min_y:Math[e(362)](Math[e(355)](Math.PI*(1-2*(a+1/n))))*(180/Math.PI),max_x:o,max_y:c}}[x(358)](t,s,r){const e=180/(256*Math.pow(2,t-1));return[256*s*e-180,90-256*(r+1)*e,256*(s+1)*e-180,90-256*r*e]}[x(359)](t,s){const r=x,[e,n,i,a]=t,h=this.latToTile(a,s),o=this[r(372)](n,s),c=this[r(360)](e,s),M=this[r(360)](i,s),u=(o-h+1)*(M-c+1),l=[];for(let t=h;t<=o;t++)for(let e=c;e<=M;e++)l[r(350)]({level:s,row:t,column:e});return{total:u,tiles:l}}get4490TileFor3857Extent(t,s){const r=x,[e,n,i,a]=t,h=180/(256*Math[r(365)](2,s-1)),o=Math[r(367)]((e+180)/(256*h)),c=Math[r(367)]((i+180)/(256*h)),M=Math[r(367)]((90-a)/(256*h)),u=Math[r(367)]((90-n)/(256*h));let l=[];for(let t=o;t<=c;t++)for(let e=u;e>=M;e--)l[r(350)]({zoom:s,x:t,y:e});return l}[x(357)](t,s,r,e){const n=x;let i=e[n(364)](t[0],t[1]),a=e[n(364)](t[2],t[3]),h=e.mercator_wgs84(i[0]+s,i[1]+r),o=e[n(373)](a[0]+s,a[1]+r);return[h[0],h[1],o[0],o[1]]}[x(372)](t,s){const r=x,e=Math[r(365)](2,s),n=t*(Math.PI/180),i=Math[r(376)](Math[r(374)](n/2+Math.PI/4));return Math[r(367)]((1-i/Math.PI)*e/2)}[x(360)](t,s){const r=Math[x(365)](2,s);return Math.floor((t+180)/360*r)}}function y(t,s){var r=T();return(y=function(t,s){return r[t-=493]})(t,s)}function T(){var t=["sqrt","112DQNBKp","1269280hAisXk","14435CubTmL","project","bd_wgs_exact","gcj_bd","sin","1366010fwrfDt","bd_wgs","gcj_wgs_exact","_coord_diff","sinh","max","pj_sinhpsi2tanphi","atan2","abs","bounds","bind","_exact_iter","tan","36rizvXo","84534gbzeVp","164cGeteD","asinh","18gFYREz","atanh","wgs_gcj","cos","gcj_wgs","70vgZCug","bd_gcj","pow","7143apWslT","wgs_bd","3423365KzuGVF","590485TShIRJ"];return(T=function(){return t})()}var b=y;!function(){for(var t=y,s=T();;)try{if(301843===-parseInt(t(495))/1+parseInt(t(497))/2*(-parseInt(t(529))/3)+parseInt(t(519))/4*(parseInt(t(499))/5)+parseInt(t(518))/6*(-parseInt(t(526))/7)+-parseInt(t(498))/8+-parseInt(t(521))/9*(-parseInt(t(504))/10)+-parseInt(t(494))/11*(-parseInt(t(517))/12))break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class m{constructor(){var t=y;this.A=6378206.4,this.E=.08227185422300326,this[t(513)]=[[20037725.5,-16095439.382927246],[-20037726.46909435,19488378.9859151]],this.gcj_wgs_exact=this[t(515)](this[t(523)],this[t(525)]),this[t(501)]=this._exact_iter(this[t(493)],this.bd_wgs),this[t(527)]=this[t(527)].bind(this),this[t(502)]=this[t(502)][t(514)](this),this[t(525)]=this.gcj_wgs[t(514)](this),this[t(523)]=this[t(523)][t(514)](this),this[t(505)]=this[t(505)].bind(this),this[t(493)]=this[t(493)][t(514)](this),this[t(506)]=this[t(515)](this.wgs_gcj,this[t(525)])[t(514)](this),this[t(501)]=this[t(515)](this[t(493)],this[t(505)])[t(514)](this),this[t(507)]=this[t(507)][t(514)](this)}[b(500)](t,s){var r=b,[e,n]=this[r(493)](t,s),i=e*Math.PI/180*this.A,a=n*Math.PI/180;return[i,(Math[r(520)](Math[r(516)](a))-this.E*Math[r(522)](this.E*Math.sin(a)))*this.A]}unproject(t,s){var r=b;let e=t/Math.PI*180/this.A,n=Math.atan(this[r(510)](Math[r(508)](s/this.A),this.E))/Math.PI*180;return this[r(501)](e,n)}[b(523)](t,s){var r=b;if(!(s>=.8293&&s<=55.8271&&t>=72.004&&t<=137.8347))return[t,s];var e=6378245,n=.006693421622965943,i=t-105,a=s-35,h=i*Math.PI,o=a*Math.PI,c=Math[r(496)](Math[r(512)](i)),M=2*i-100+3*a+.2*a*a+.1*i*a+.2*c+20*(2*Math[r(503)](6*h)+2*Math.sin(2*h)+2*Math[r(503)](o)+4*Math[r(503)](o/3)+16*Math[r(503)](o/12)+32*Math[r(503)](o/30))/3,u=300+i+2*a+.1*i*i+.1*i*a+.1*c+20*(2*Math.sin(6*h)+2*Math[r(503)](2*h)+2*Math.sin(h)+4*Math.sin(h/3)+15*Math[r(503)](h/12)+30*Math[r(503)](h/30))/3,l=Math.PI/180,p=s*l,I=1-n*Math[r(528)](Math[r(503)](p),2),f=6335552.717000426*l/Math.pow(I,1.5);return[t+u/(l*(e*Math[r(524)](p)/Math[r(496)](I))),s+M/f]}gcj_bd(t,s){var r=b,e=t,n=s,i=Math[r(496)](e*e+n*n)+2e-5*Math.sin(n*Math.PI*3e3/180),a=Math[r(511)](n,e)+3e-6*Math[r(524)](e*Math.PI*3e3/180);return[i*Math[r(524)](a)+.0065,i*Math[r(503)](a)+.006]}[b(527)](t,s){var r=b,e=t-.0065,n=s-.006,i=Math[r(496)](e*e+n*n)-2e-5*Math.sin(n*Math.PI*3e3/180),a=Math.atan2(n,e)-3e-6*Math[r(524)](e*Math.PI*3e3/180);return[i*Math.cos(a),i*Math[r(503)](a)]}[b(525)](t,s){var r=b;return s>=.83056&&s<=55.8296&&t>=72.0077&&t<=137.8437?this[r(507)]([t,s],this[r(507)](this[r(523)](t,s),[t,s])):[t,s]}[b(505)](t,s){var r=b;if(!(s>=.83676&&s<=55.8355&&t>=72.0142&&t<=137.8503))return[t,s];let[e,n]=this.bd_gcj(t,s);return this[r(525)](e,n)}[b(493)](t,s){var r=b;let[e,n]=this[r(523)](t,s);return this[r(502)](e,n)}[b(507)](t,s){let[r,e]=t,[n,i]=s;return[r-n,e-i]}[b(515)](t,s){return((r,e)=>{var n=y;let i=s(r,e),a=[1/0,1/0];for(let s=0;Math[n(509)](Math.abs(a[1]),Math[n(512)](a[0]))>1e-6&&s<8;s++)a=this[n(507)](t(i[0],i[1]),[r,e]),i=this[n(507)](i,a);return i})[b(514)](this)}[b(510)](t,s){var r=b,e=Math[r(496)](1e-15),n=2/e,i=1-s*s,a=e/10*Math[r(509)](1,Math.abs(t)),h=Math[r(512)](t)>70?t*Math.exp(s*Math[r(522)](s)):t/i;if(!(Math[r(512)](h)<n))return h;for(var o=5;o-- >0;){var c=Math.sqrt(1+h*h),M=Math[r(508)](s*Math[r(522)](s*h/c)),u=Math[r(496)](1+M*M)*h-M*c,l=(t-u)*(1+i*(h*h))/(i*c*Math[r(496)](1+u*u));if(h+=l,!(Math[r(512)](l)>=a))break}return h}}const P=w;function v(){const t=["getTilePrjNW","array2","761810oFYjKd","tileX","631075eaocqx","34xeCTgI","ToExtent","height","getTilePrjSE","xmax","16tkKDUv","xmin","length","pow","origin","Lat","18074ZcMDio","LatLng2Mercator","ymin","ymax","scale","167499FDHTSQ","tileY","372CEcIjr","array3","width","getTilePrjExtent","getBaiduTilePrjSE","Convertor","63596pHsWpG","Mercator2LatLng","abs","326592dQuVFl","18429XWEImZ","array1"];return(v=function(){return t})()}function w(t,s){const r=v();return(w=function(t,s){return r[t-=291]})(t,s)}!function(){const t=w,s=v();for(;;)try{if(206527===-parseInt(t(298))/1+parseInt(t(309))/2*(parseInt(t(302))/3)+-parseInt(t(301))/4+parseInt(t(308))/5+-parseInt(t(292))/6*(-parseInt(t(320))/7)+-parseInt(t(314))/8*(-parseInt(t(325))/9)+-parseInt(t(306))/10)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();class j{constructor(){const t=w;this[t(303)]=[75,60,45,30,15,0],this[t(293)]=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],this[t(305)]=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],this.array4=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]]}[P(321)](t){const s=P;let r=null;t[s(319)]>74||t.Lat;for(let e=0;e<this[s(303)].length;e++)if(t[s(319)]>=this[s(303)][e]){r=this[s(305)][e];break}if(null===r)for(let e=this[s(303)][s(316)]-1;e>=0;e--)if(t[s(319)]<=-this.array1[e]){r=this[s(305)][e];break}const e=this[s(297)](t.Lng,t[s(319)],r);return{X:e[0],Y:e[1]}}[P(299)](t){const s=P;let r=null;const e={X:Math[s(300)](t.X),Y:Math[s(300)](t.Y)};for(let t=0;t<this[s(293)][s(316)];t++)if(e.Y>=this[s(293)][t]){r=this.array4[t];break}const n=this.Convertor(e.X,e.Y,r);return{Lng:n[0],Lat:n[1]}}[P(297)](t,s,r){const e=P,n=r[0]+r[1]*Math.abs(t),i=Math[e(300)](s)/r[9],a=[n,r[2]+r[3]*i+r[4]*i*i+r[5]*i*i*i+r[6]*i*i*i*i+r[7]*i*i*i*i*i+r[8]*i*i*i*i*i*i];return a[0]*=t<0?-1:1,a[1]*=s<0?-1:1,a}getBaiduTilePrjBounds(t,s){const r=P;let e=Math.pow(2,18-s);return this[r(295)](t[r(307)],t[r(291)],e)}getBaiduTilePrjNW(t,s){const r=P;let e=Math[r(317)](2,18-s);return this[r(304)](t[r(307)],t.tileY,e,{scale:{x:1,y:1},origin:{x:0,y:0}},{width:256,height:256},1,1)}[P(296)](t,s){const r=P;let e=Math[r(317)](2,18-s);return this[r(312)](t[r(307)],t[r(291)],e,{scale:{x:1,y:1},origin:{x:0,y:0}},{width:256,height:256},1,1)}[P(295)](t,s,r){const e=P,n={scale:{x:1,y:1},origin:{x:0,y:0}},i={width:256,height:256},a=this[e(304)](t,s,r,n,i,1,1),h=this[e(312)](t,s,r,n,i,1,1);return this[e(310)](a,h)}[P(304)](t,s,r,e,n,i,a){const h=P,o=e[h(318)].y+a*e[h(324)].y*(s+(1===e.scale.y?1:0))*r*n.height;return{x:e[h(318)].x+i*e[h(324)].x*(t+(1===e[h(324)].x?0:1))*r*n[h(294)],y:o}}getTilePrjSE(t,s,r,e,n,i,a){const h=P,o=e.origin.y+a*e.scale.y*(s+(1===e[h(324)].y?0:1))*r*n[h(311)];return{x:e.origin.x+i*e.scale.x*(t+(1===e.scale.x?1:0))*r*n[h(294)],y:o}}ToExtent(t,s){const r=P,e={xmax:0,xmin:0,ymax:0,ymin:0};return t.x>s.x?(e[r(315)]=s.x,e[r(313)]=t.x):(e.xmin=t.x,e.xmax=s.x),t.y>s.y?(e[r(322)]=s.y,e[r(323)]=t.y):(e[r(322)]=t.y,e[r(323)]=s.y),e}}function z(t,s){var r=k();return(z=function(t,s){return r[t-=206]})(t,s)}function k(){var t=["24760KocvUR","2601vnbmkW","178WAYeSv","763732LNJBTE","1326SgTxaY","1290738FgDtxD","22UbosFM","16550ckybxj","6378HuYoir","5578310MKVGWa","48601nPrHXU"];return(k=function(){return t})()}!function(){for(var t=z,s=k();;)try{if(478595===parseInt(t(207))/1*(-parseInt(t(213))/2)+-parseInt(t(210))/3+parseInt(t(208))/4+-parseInt(t(212))/5*(parseInt(t(209))/6)+parseInt(t(215))/7+parseInt(t(216))/8*(parseInt(t(206))/9)+-parseInt(t(214))/10*(-parseInt(t(211))/11))break;s.push(s.shift())}catch(t){s.push(s.shift())}}(),exports.BaiDuMercator=m,exports.BaiDuProjUtils=j,exports.CoordinateTransformer=u,exports.GeodeticMapTileCalcUtils=h,exports.MercatorMapTileCalcUtils=e,exports.TileCalcUtils=d,exports.UserAgent=f;
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "map-tile-utils",
3
+ "version": "1.0.1",
4
+ "author": "luothink",
5
+ "type": "module",
6
+ "main": "dist/map-tile-utils.cjs.js",
7
+ "module": "dist/map-tile-utils.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "scripts": {
10
+ "build": "rollup -c",
11
+ "test": "node test.js",
12
+ "prepare": "npm run build"
13
+ },
14
+ "files": ["dist"],
15
+ "keywords": [],
16
+ "license": "ISC",
17
+ "description": "",
18
+ "devDependencies": {
19
+ "rollup": "^2.79.2",
20
+ "rollup-plugin-commonjs": "^10.1.0",
21
+ "rollup-plugin-node-resolve": "^5.2.0",
22
+ "rollup-plugin-obfuscator": "^1.1.0",
23
+ "rollup-plugin-terser": "^7.0.2",
24
+ "rollup-plugin-typescript2": "^0.36.0",
25
+ "typescript": "^5.8.3"
26
+ }
27
+ }