m4-w-fast 1.0.12 → 1.0.13

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.
@@ -56,27 +56,6 @@ export declare class readFileM4 implements IReadFileM4 {
56
56
  * @param useCpuCount 可选,使用的 CPU 核心数
57
57
  */
58
58
  clipDataByJson(iosBands: FeatureCollection, json: FeatureCollection, intersectWorkerUrl: string, useCpuCount?: number): Promise<import("@turf/helpers").FeatureCollection<Polygon | MultiPolygon, import("geojson").GeoJsonProperties>>;
59
- /**
60
- * 使用 Worker 多线程获取等值带
61
- * @param breaks 等值带分级
62
- * @param bandsWorkerUrl 等值带计算 Worker 脚本 URL
63
- * @param useCpuCount 可选,使用的 CPU 核心数
64
- * @deprecated 即将弃用, 请使用 `getIsoBandsFast`
65
- */
66
- getIsoBandsFastByWorker(breaks: number[], bandsWorkerUrl: string, useCpuCount?: number): Promise<FeatureCollection>;
67
- /**
68
- * 清理等值带缓存 (缓存只在 getIsoBandsByLayerBreak 方法中使用)
69
- * @deprecated 准备弃用, 分层使用canvas来做
70
- */
71
- clearMaskCache(): void;
72
- /**
73
- * 获取等值带 (支持按层获取或全部层合并获取)
74
- * - 单层因为数据丢失可能不准确
75
- * @param breaks
76
- * @param layerLower
77
- * @deprecated 准备弃用, 分层使用canvas来做
78
- */
79
- getIsoBandsByLayerBreak(breaks?: number[], layerLower?: number): FeatureCollection;
80
59
  /**
81
60
  * 获取 JSON 数据数组
82
61
  * @return JSONData[]
@@ -96,13 +75,6 @@ export declare class readFileM4 implements IReadFileM4 {
96
75
  * @private
97
76
  */
98
77
  private getMinMax;
99
- /**
100
- * 按面积排序
101
- * @param fc
102
- * @private
103
- * @deprecated 准备弃用, 分层使用canvas来做, 绘图方式也变了, 不需要面积排序了
104
- */
105
- private sortFeaturesByArea;
106
78
  /**
107
79
  * 数组分块
108
80
  * @param arr
package/dist/readFile.js CHANGED
@@ -1 +1 @@
1
- function a4_0x1490(){const _0x405e64=['toNumber','minVal','clip','type','_maskCacheKey','style','chunkArray','split','push','ceil','rgba(','undefined','getAllGeo','clear','thresholds','onerror','lineWidth','updateGridCanvas','138408JJLVHQ','fillRect','minus','module','features','Feature','1365152ijGeuA','restore','309614aTcgHq','plusOffset','rgba(255,255,255,0)','buildGridCanvasClipByJson','buildGridLineCanvas','floor','coordinates','Polygon','_maskCache','createCanvas','#FFFFFF','rgba(0,0,0,0)','data','values','closePath','error','map','terminate','convertTemKtoC','lineTo','getBreaks','slice','sortFeaturesByArea','9769990BByGDP','value','MultiPolygon','get','gjLng','trim','1038ebfgeL','times','27BKpzmL','save','flat','fillStyle','canvas','maxVal','getContext','number','forEach','area','val','getIsoBandsFastByMask','sort','clearMaskCache','from','abs','2yFfruC','__area','getIsoBandsFast','round','lat','buildGridCanvas','filePath','properties','plus','isNaN','height','indexOf','join','FeatureCollection','3366300BxvcGK','fill','30159xcsTmH','length','moveTo','getJsonData','beginPath','replace','hardwareConcurrency','filter','max','geometry','minLat','该时次未获取到文件','all','minLng','gjLat','createElement','lng','contours','getColorFast','start','drawImage','width','pixelRatio','size','text','ring','latLngToLayerPoint','min','isArray','该时次文件数据异常','postMessage','6215udrbLL','getMinMax','scale','strokeStyle'];a4_0x1490=function(){return _0x405e64;};return a4_0x1490();}const a4_0x1c22a8=a4_0x5bcb;(function(_0x1c2d58,_0x47bf1f){const _0x1c9db6=a4_0x5bcb,_0x18b74f=_0x1c2d58();while(!![]){try{const _0x2222a4=parseInt(_0x1c9db6(0x190))/0x1*(parseInt(_0x1c9db6(0x1dd))/0x2)+-parseInt(_0x1c9db6(0x1a0))/0x3+-parseInt(_0x1c9db6(0x1db))/0x4+parseInt(_0x1c9db6(0x1bf))/0x5*(-parseInt(_0x1c9db6(0x17e))/0x6)+-parseInt(_0x1c9db6(0x19e))/0x7+-parseInt(_0x1c9db6(0x1d5))/0x8*(-parseInt(_0x1c9db6(0x180))/0x9)+parseInt(_0x1c9db6(0x178))/0xa;if(_0x2222a4===_0x47bf1f)break;else _0x18b74f['push'](_0x18b74f['shift']());}catch(_0x1c8de4){_0x18b74f['push'](_0x18b74f['shift']());}}}(a4_0x1490,0x471a4));import{contours}from'd3-contour';import a4_0x122285 from'@turf/area';import{featureCollection as a4_0x339fc6,point,polygon}from'@turf/helpers';import{booleanPointInPolygon}from'@turf/boolean-point-in-polygon';function a4_0x5bcb(_0x257f93,_0x40e389){const _0x1490a2=a4_0x1490();return a4_0x5bcb=function(_0x5bcb96,_0x342b27){_0x5bcb96=_0x5bcb96-0x16f;let _0x38a442=_0x1490a2[_0x5bcb96];return _0x38a442;},a4_0x5bcb(_0x257f93,_0x40e389);}import a4_0x1a6656 from'decimal.js';export class readFileM4{[a4_0x1c22a8(0x196)]='';['nx']=0x0;['ny']=0x0;[a4_0x1c22a8(0x1ad)]=0x0;[a4_0x1c22a8(0x1aa)]=0x0;[a4_0x1c22a8(0x17c)]=0x0;[a4_0x1c22a8(0x1ae)]=0x0;[a4_0x1c22a8(0x1ea)]=[];['maxVal']=-Infinity;[a4_0x1c22a8(0x1c4)]=Infinity;[a4_0x1c22a8(0x1c7)]='';[a4_0x1c22a8(0x1e5)]=new Map();constructor(_0x535a0e){const _0x382b09=a4_0x1c22a8;this[_0x382b09(0x196)]=_0x535a0e||'';}async[a4_0x1c22a8(0x1b3)](_0x4f2906){const _0x56fd06=a4_0x1c22a8,_0x48418e=await fetch(this[_0x56fd06(0x196)]);if(!_0x48418e['ok'])return new Promise((_0x97bf37,_0x315c8d)=>{const _0xfeabc=_0x56fd06;_0x315c8d(new Error(_0xfeabc(0x1ab)));});const _0x2a273b=await _0x48418e[_0x56fd06(0x1b8)](),_0x4c1051=_0x2a273b['replace'](/\r\n/g,'\x0a')[_0x56fd06(0x1a5)](/\r/g,'\x0a')['split']('\x0a');if(_0x4c1051[_0x56fd06(0x1a1)]<0x4)return new Promise((_0xeae1d8,_0x55cf1a)=>{const _0x592fa4=_0x56fd06;_0x55cf1a(new Error(_0x592fa4(0x1bd)));});const _0x13680a=(_0x4c1051[0x1]??'')['trim']()[_0x56fd06(0x1ca)](/\s+/);let _0x1ffa59=0x2;while(_0x13680a[_0x56fd06(0x1a1)]<0x13){_0x13680a['push'](...(_0x4c1051[_0x1ffa59]??'')[_0x56fd06(0x17d)]()[_0x56fd06(0x1ca)](/\s+/)),_0x1ffa59++;}this[_0x56fd06(0x17c)]=Number(_0x13680a[0x6]);const _0x25724f=Number(_0x13680a[0x8]),_0x3a5081=Number(_0x13680a[0xa]),_0x28a806=Number(_0x13680a[0xb]);this['nx']=Number(_0x13680a[0xc]),this['ny']=Number(_0x13680a[0xd]),this[_0x56fd06(0x1ad)]=_0x25724f,this[_0x56fd06(0x1aa)]=_0x3a5081,this['gjLat']=Math[_0x56fd06(0x18f)](Number(_0x13680a[0x7]))*(_0x3a5081>_0x28a806?-0x1:0x1);const _0x5c791b=this['nx']*this['ny'];let _0x33a2ea=0x0;for(let _0x19545e=_0x1ffa59;_0x19545e<_0x4c1051[_0x56fd06(0x1a1)]&&_0x33a2ea<_0x5c791b;_0x19545e++){const _0x4a5715=_0x4c1051[_0x19545e]?.[_0x56fd06(0x17d)]()??'',_0x3dd849=_0x4a5715[_0x56fd06(0x1ca)](/\s+/);if(!_0x3dd849||_0x3dd849[_0x56fd06(0x1a1)]===0x0)continue;for(let _0x5945f5=0x0;_0x5945f5<_0x3dd849[_0x56fd06(0x1a1)]&&_0x33a2ea<_0x5c791b;_0x5945f5++){let _0x1b84cf=Number(_0x3dd849[_0x5945f5]);if(_0x4f2906?.[_0x56fd06(0x173)])_0x1b84cf=new a4_0x1a6656(_0x1b84cf)[_0x56fd06(0x1d7)](272.15)[_0x56fd06(0x1c3)]();else _0x4f2906?.[_0x56fd06(0x1de)]&&(_0x1b84cf=new a4_0x1a6656(_0x1b84cf)[_0x56fd06(0x198)](_0x4f2906[_0x56fd06(0x1de)])[_0x56fd06(0x1c3)]());this[_0x56fd06(0x1ea)]['push'](_0x1b84cf),this[_0x56fd06(0x1c4)]=Math['min'](this[_0x56fd06(0x1c4)],_0x1b84cf),this[_0x56fd06(0x185)]=Math[_0x56fd06(0x1a8)](this[_0x56fd06(0x185)],_0x1b84cf),_0x33a2ea++;}}}['setParams'](_0x17cded,_0x447726){const _0x4cd3eb=a4_0x1c22a8;this['nx']=_0x17cded['nx'],this['ny']=_0x17cded['ny'],this[_0x4cd3eb(0x1ad)]=_0x17cded[_0x4cd3eb(0x1ad)],this[_0x4cd3eb(0x1aa)]=_0x17cded['minLat'],this[_0x4cd3eb(0x17c)]=_0x17cded[_0x4cd3eb(0x17c)],this[_0x4cd3eb(0x1ae)]=_0x17cded['gjLat'];if(_0x447726?.[_0x4cd3eb(0x173)])for(let _0x1cecd5=0x0;_0x1cecd5<_0x17cded[_0x4cd3eb(0x1ea)][_0x4cd3eb(0x1a1)];_0x1cecd5++){if(typeof _0x17cded['values'][_0x1cecd5]===_0x4cd3eb(0x1ce))continue;_0x17cded[_0x4cd3eb(0x1ea)][_0x1cecd5]=new a4_0x1a6656(_0x17cded[_0x4cd3eb(0x1ea)][_0x1cecd5])[_0x4cd3eb(0x1d7)](272.15)[_0x4cd3eb(0x1c3)]();}else{if(_0x447726?.['plusOffset'])for(let _0x436747=0x0;_0x436747<_0x17cded[_0x4cd3eb(0x1ea)][_0x4cd3eb(0x1a1)];_0x436747++){if(typeof _0x17cded[_0x4cd3eb(0x1ea)][_0x436747]===_0x4cd3eb(0x1ce))continue;_0x17cded['values'][_0x436747]=new a4_0x1a6656(_0x17cded['values'][_0x436747])['plus'](_0x447726['plusOffset'])[_0x4cd3eb(0x1c3)]();}else this[_0x4cd3eb(0x1ea)]=_0x17cded[_0x4cd3eb(0x1ea)];}this[_0x4cd3eb(0x1c0)]();}[a4_0x1c22a8(0x192)](_0x212b4d){const _0x41a2c0=a4_0x1c22a8;if(this[_0x41a2c0(0x1ea)]['length']===0x0)return{'type':_0x41a2c0(0x19d),'features':[]};const _0x2c9c4e=[],_0x4e7e47=this[_0x41a2c0(0x1cf)](_0x212b4d),_0x26a002=new a4_0x1a6656(this['minLng']),_0x5d62b8=new a4_0x1a6656(this[_0x41a2c0(0x1aa)]),_0x502a98=new a4_0x1a6656(this['gjLng']),_0xea727e=new a4_0x1a6656(this[_0x41a2c0(0x1ae)]);for(const _0x412969 of _0x4e7e47){for(const _0x5c3eed of _0x412969['coordinates']){if(Array[_0x41a2c0(0x1bc)](_0x5c3eed))for(const _0x2c0859 of _0x5c3eed){_0x2c0859[_0x41a2c0(0x188)](_0x17dc8a=>{const _0x19b64b=_0x41a2c0,_0x438635=_0x17dc8a[0x0],_0x79e905=_0x17dc8a[0x1];if(_0x438635==null||_0x79e905==null||Number[_0x19b64b(0x199)](_0x438635)||Number[_0x19b64b(0x199)](_0x79e905))return null;const _0x44a1fe=_0x26a002[_0x19b64b(0x198)](_0x502a98[_0x19b64b(0x17f)](_0x438635))[_0x19b64b(0x1c3)](),_0x8def2e=_0x5d62b8['plus'](_0xea727e[_0x19b64b(0x17f)](_0x79e905))[_0x19b64b(0x1c3)]();_0x17dc8a[0x0]=_0x44a1fe,_0x17dc8a[0x1]=_0x8def2e;});}}_0x2c9c4e[_0x41a2c0(0x1cb)]({'type':_0x41a2c0(0x1da),'properties':{'z':_0x412969[_0x41a2c0(0x179)]},'geometry':_0x412969});}return{'type':_0x41a2c0(0x19d),'features':_0x2c9c4e};}['getIsoBandsCanvas'](_0xf3029d,_0x325488,_0x59697b){const _0x30d0c2=a4_0x1c22a8;if(this[_0x30d0c2(0x1ea)][_0x30d0c2(0x1a1)]===0x0)return null;const _0x7f6650=this['getAllGeo'](_0xf3029d),{canvas:_0x25ab0a,ctx:_0x126e0a,width:_0x112773,height:_0x4445d6}=this['createCanvas'](_0x59697b);if(!_0x126e0a)return null;for(const _0x2f0def of _0x7f6650){const _0x2d196f=_0x2f0def[_0x30d0c2(0x179)];_0x126e0a[_0x30d0c2(0x1a4)]();for(const _0x269143 of _0x2f0def[_0x30d0c2(0x1e3)]){if(Array['isArray'](_0x269143))for(const _0x15acf0 of _0x269143){_0x15acf0[_0x30d0c2(0x188)]((_0x1b95f5,_0x37c512)=>{const _0x59190f=_0x30d0c2,_0x2baa27=_0x1b95f5[0x0],_0xc57598=_0x1b95f5[0x1];if(_0x2baa27==null||_0xc57598==null||Number['isNaN'](_0x2baa27)||Number[_0x59190f(0x199)](_0xc57598))return null;const _0x4f3357=_0x2baa27/this['nx']*_0x112773,_0x53855c=this['gjLat']<0x0?_0xc57598/this['ny']*_0x4445d6:_0x4445d6-_0xc57598/this['ny']*_0x4445d6;_0x37c512===0x0?_0x126e0a['moveTo'](_0x4f3357,_0x53855c):_0x126e0a[_0x59190f(0x174)](_0x4f3357,_0x53855c);});}}_0x126e0a[_0x30d0c2(0x16f)](),_0x126e0a[_0x30d0c2(0x183)]=this[_0x30d0c2(0x1b2)](_0x2d196f,_0xf3029d,_0x325488),_0x126e0a[_0x30d0c2(0x19f)]();}return _0x25ab0a;}['getIsoBandsCanvasByMap'](_0x4929b4,_0x3da66d,_0x187d9a,_0x9bea4a){const _0x178de0=a4_0x1c22a8;if(this[_0x178de0(0x1ea)][_0x178de0(0x1a1)]===0x0)return null;if(!_0x187d9a)return null;const _0x701643=this['minLng'],_0x4587cd=this[_0x178de0(0x1aa)],_0x6de5c5=_0x701643+this['nx']*this['gjLng'],_0x523935=_0x4587cd+this['ny']*this['gjLat'],_0x414e35=_0x187d9a[_0x178de0(0x1ba)]([_0x523935,_0x701643]),_0x5ca1bf=_0x187d9a['latLngToLayerPoint']([_0x4587cd,_0x6de5c5]),_0x25a165=Math['max'](0x1,Math[_0x178de0(0x193)](_0x5ca1bf['x']-_0x414e35['x'])),_0x1dfa7c=Math[_0x178de0(0x1a8)](0x1,Math[_0x178de0(0x193)](_0x5ca1bf['y']-_0x414e35['y'])),_0x9a5377=_0x9bea4a?.[_0x178de0(0x1b6)]||(typeof devicePixelRatio!=='undefined'?devicePixelRatio:0x1),_0x6121b9=document[_0x178de0(0x1af)](_0x178de0(0x184)),_0x422dfd=_0x6121b9[_0x178de0(0x186)]('2d');_0x6121b9['width']=Math[_0x178de0(0x1a8)](0x1,Math[_0x178de0(0x1e2)](_0x25a165*_0x9a5377)),_0x6121b9[_0x178de0(0x19a)]=Math[_0x178de0(0x1a8)](0x1,Math[_0x178de0(0x1e2)](_0x1dfa7c*_0x9a5377)),_0x6121b9[_0x178de0(0x1c8)][_0x178de0(0x1b5)]=_0x25a165+'px',_0x6121b9[_0x178de0(0x1c8)][_0x178de0(0x19a)]=_0x1dfa7c+'px';if(_0x422dfd)_0x422dfd[_0x178de0(0x1c1)](_0x9a5377,_0x9a5377);const _0x356721=this[_0x178de0(0x1cf)](_0x4929b4);for(const _0x5c4ba2 of _0x356721){const _0x3e7f51=_0x5c4ba2['value'];if(!_0x5c4ba2['coordinates'])continue;_0x422dfd['beginPath']();for(const _0x4061ab of _0x5c4ba2[_0x178de0(0x1e3)]){if(Array[_0x178de0(0x1bc)](_0x4061ab))for(const _0x566731 of _0x4061ab){_0x566731[_0x178de0(0x188)]((_0xcc4d70,_0x5a6a3b)=>{const _0x326970=_0x178de0,_0x3397d0=_0xcc4d70[0x0],_0x1ff7f8=_0xcc4d70[0x1];if(_0x3397d0==null||_0x1ff7f8==null||Number['isNaN'](_0x3397d0)||Number[_0x326970(0x199)](_0x1ff7f8))return;const _0x29ef8c=_0x701643+_0x3397d0*this[_0x326970(0x17c)],_0xb3f03c=_0x4587cd+_0x1ff7f8*this[_0x326970(0x1ae)],_0x1d68ef=_0x187d9a[_0x326970(0x1ba)]([_0xb3f03c,_0x29ef8c]),_0x5afe9c=_0x1d68ef['x']-_0x414e35['x'],_0x508831=_0x1d68ef['y']-_0x414e35['y'];if(_0x5a6a3b===0x0)_0x422dfd['moveTo'](_0x5afe9c,_0x508831);else _0x422dfd[_0x326970(0x174)](_0x5afe9c,_0x508831);});}}_0x422dfd[_0x178de0(0x16f)](),_0x422dfd['fillStyle']=this['getColorFast'](_0x3e7f51,_0x4929b4,_0x3da66d),_0x422dfd[_0x178de0(0x19f)]();}return _0x6121b9;}[a4_0x1c22a8(0x1b2)](_0x351843,_0x1ed497,_0x19da86){const _0x51665f=a4_0x1c22a8;let _0x311573=_0x51665f(0x1df);const _0x545173=_0x1ed497[_0x51665f(0x19b)](_0x351843);if(typeof _0x19da86[_0x545173]=='string')_0x311573=_0x19da86[_0x545173];else _0x545173!==-0x1&&(_0x311573=_0x51665f(0x1cd)+_0x19da86[_0x545173][0x0]+','+_0x19da86[_0x545173][0x1]+','+_0x19da86[_0x545173][0x2]+','+(_0x19da86[_0x545173][0x3]||_0x19da86[_0x545173][0x3]===0x0?_0x19da86[_0x545173][0x3]:0x1)+')');return _0x311573;}async['clipDataByJson'](_0x3a5be6,_0x45cc01,_0x44f828,_0x1bceb3){const _0x27eb5e=a4_0x1c22a8,_0x1865b1=_0x1bceb3||(navigator[_0x27eb5e(0x1a6)]-0x4||0x1),_0x4e2de1=Math[_0x27eb5e(0x1bb)](_0x1865b1,Math[_0x27eb5e(0x1a8)](0x1,_0x3a5be6[_0x27eb5e(0x1d9)]['length'])),_0x4e6d5b=this[_0x27eb5e(0x1c9)](_0x3a5be6[_0x27eb5e(0x1d9)],_0x4e2de1),_0x4ac8be=[],_0x33b48f=_0x4e6d5b[_0x27eb5e(0x171)](_0x4612b2=>{const _0x428524=_0x27eb5e,_0x3086a9=new Worker(_0x44f828,{'type':_0x428524(0x1d8)});return _0x4ac8be[_0x428524(0x1cb)](_0x3086a9),new Promise(_0x5514ac=>{const _0x3c440d=_0x428524;_0x3086a9['onmessage']=_0xb1941f=>{const _0xa6f227=a4_0x5bcb;_0x5514ac(_0xb1941f[_0xa6f227(0x1e9)][_0xa6f227(0x1d9)]);},_0x3086a9[_0x3c440d(0x1d2)]=_0x14ac86=>{const _0x18127c=_0x3c440d;console[_0x18127c(0x170)](_0x14ac86);},_0x3086a9[_0x3c440d(0x1be)]({'isoChunk':_0x4612b2,'gansuFeatures':_0x45cc01['features']});});}),_0xaac14e=await Promise[_0x27eb5e(0x1ac)](_0x33b48f);_0x4ac8be[_0x27eb5e(0x188)](_0x5c8086=>_0x5c8086['terminate']());const _0x502b9d=_0xaac14e[_0x27eb5e(0x182)]();return a4_0x339fc6(_0x502b9d);}async['getIsoBandsFastByWorker'](_0x240850,_0x1e24b9,_0x22ffc1){const _0x2eaa0d=a4_0x1c22a8;if(this['values'][_0x2eaa0d(0x1a1)]===0x0)return{'type':_0x2eaa0d(0x19d),'features':[]};let _0xb81a43=[];if(_0x240850['length']===0x0)_0x240850=this[_0x2eaa0d(0x175)]();const _0x295e1e=[],_0x58fdcc=_0x22ffc1||(navigator[_0x2eaa0d(0x1a6)]-0x4||0x1),_0x593883=Math[_0x2eaa0d(0x1bb)](_0x58fdcc,Math['max'](0x1,_0x240850[_0x2eaa0d(0x1a1)])),_0xd8b42d=this[_0x2eaa0d(0x1c9)](_0x240850,_0x593883),_0xa2191e=_0xd8b42d[_0x2eaa0d(0x171)](_0xa83f77=>{const _0x50a460=_0x2eaa0d,_0x20bc14=new Worker(_0x1e24b9,{'type':_0x50a460(0x1d8)});return _0x295e1e[_0x50a460(0x1cb)](_0x20bc14),new Promise(_0x32ae11=>{const _0x5c1f2f=_0x50a460;_0x20bc14['onmessage']=_0x3dc511=>{const _0x16fd24=a4_0x5bcb;_0x32ae11(_0x3dc511[_0x16fd24(0x1e9)][_0x16fd24(0x1d9)]);},_0x20bc14[_0x5c1f2f(0x1d2)]=_0x26e765=>{const _0x4ea915=_0x5c1f2f;console[_0x4ea915(0x170)](_0x26e765);},_0x20bc14['postMessage']({'breaks':_0xa83f77,'values':this[_0x5c1f2f(0x1ea)],'nx':this['nx'],'ny':this['ny'],'minVal':this['minVal'],'maxVal':this[_0x5c1f2f(0x185)],'minLng':this[_0x5c1f2f(0x1ad)],'minLat':this[_0x5c1f2f(0x1aa)],'gjLng':this[_0x5c1f2f(0x17c)],'gjLat':this[_0x5c1f2f(0x1ae)]});});}),_0x224dad=await Promise[_0x2eaa0d(0x1ac)](_0xa2191e);return _0x295e1e[_0x2eaa0d(0x188)](_0x3c94b8=>_0x3c94b8[_0x2eaa0d(0x172)]()),_0x224dad['forEach'](_0x57d92c=>{const _0x43927c=_0x2eaa0d;_0xb81a43[_0x43927c(0x1cb)](..._0x57d92c);}),_0xb81a43=this[_0x2eaa0d(0x177)](_0xb81a43),{'type':_0x2eaa0d(0x19d),'features':_0xb81a43};}[a4_0x1c22a8(0x18d)](){const _0x1b83e6=a4_0x1c22a8;this[_0x1b83e6(0x1e5)][_0x1b83e6(0x1d0)]();}['getIsoBandsByLayerBreak'](_0x11905b=[],_0x657b2b){const _0xe077ab=a4_0x1c22a8;if(typeof _0x657b2b!==_0xe077ab(0x1ce)&&this[_0xe077ab(0x1e5)][_0xe077ab(0x17b)](_0x657b2b)){const _0x2c8f12=this[_0xe077ab(0x1e5)][_0xe077ab(0x17b)](_0x657b2b)||[],_0x12f49e=this[_0xe077ab(0x177)]?this[_0xe077ab(0x177)](_0x2c8f12):_0x2c8f12;return{'type':_0xe077ab(0x19d),'features':_0x12f49e};}if(this[_0xe077ab(0x1ea)][_0xe077ab(0x1a1)]===0x0)return{'type':_0xe077ab(0x19d),'features':[]};if(_0x11905b[_0xe077ab(0x1a1)]===0x0)_0x11905b=this['getBreaks']();const _0x1f5e15=_0x11905b[_0xe077ab(0x19c)](',');if(this[_0xe077ab(0x1c7)]!==_0x1f5e15){this[_0xe077ab(0x1c7)]=_0x1f5e15,this[_0xe077ab(0x1e5)][_0xe077ab(0x1d0)]();const _0x7e4ce8=this['minLng'],_0x3f0143=this[_0xe077ab(0x1aa)],_0x4f2333=this['gjLng'],_0x15582e=this[_0xe077ab(0x1ae)],_0x306eeb=_0x1e09ff=>{const _0x4c8574=_0xe077ab;let _0x150aba=0x0;for(let _0x4646f5=0x0,_0x1f7764=_0x1e09ff[_0x4c8574(0x1a1)];_0x4646f5<_0x1f7764;_0x4646f5++){const _0x20a370=_0x1e09ff[_0x4646f5][0x0],_0x53976c=_0x1e09ff[_0x4646f5][0x1],_0x57bd4e=_0x1e09ff[(_0x4646f5+0x1)%_0x1f7764][0x0],_0x506e15=_0x1e09ff[(_0x4646f5+0x1)%_0x1f7764][0x1];if(_0x20a370==null||_0x53976c==null||_0x57bd4e==null||_0x506e15==null)continue;_0x150aba+=_0x20a370*_0x506e15-_0x57bd4e*_0x53976c;}return _0x150aba/0x2;},_0x6d85b=(_0x58eb73,_0x133b06)=>{const _0x2581d5=_0xe077ab;if(!_0x58eb73)return![];const _0x410df5=_0x58eb73[0x0],_0x3f582a=_0x58eb73[0x1];let _0x41c439=![];for(let _0xb7a993=0x0,_0x37f3cd=_0x133b06[_0x2581d5(0x1a1)]-0x1;_0xb7a993<_0x133b06[_0x2581d5(0x1a1)];_0x37f3cd=_0xb7a993++){const _0x8a0c6d=_0x133b06[_0xb7a993][0x0],_0xab84f1=_0x133b06[_0xb7a993][0x1],_0x535517=_0x133b06[_0x37f3cd][0x0],_0x2da32d=_0x133b06[_0x37f3cd][0x1],_0x31da25=_0xab84f1>_0x3f582a!==_0x2da32d>_0x3f582a&&_0x410df5<(_0x535517-_0x8a0c6d)*(_0x3f582a-_0xab84f1)/(_0x2da32d-_0xab84f1)+_0x8a0c6d;if(_0x31da25)_0x41c439=!_0x41c439;}return _0x41c439;},_0x19d430=_0x171762=>{const _0x38490f=_0xe077ab,_0x211b11=[];let _0x4c4363=null,_0x281c7f=null;for(let _0x4773d3=0x0;_0x4773d3<_0x171762[_0x38490f(0x1a1)];_0x4773d3++){const _0x1a139a=_0x171762[_0x4773d3];if(!_0x1a139a)continue;const _0x355ade=_0x1a139a[0x0],_0x29fb16=_0x1a139a[0x1];if(_0x355ade==null||_0x29fb16==null||Number['isNaN'](_0x355ade)||Number[_0x38490f(0x199)](_0x29fb16))continue;const _0x553570=_0x7e4ce8+_0x355ade*_0x4f2333,_0x6737e5=_0x3f0143+_0x29fb16*_0x15582e;if(_0x4c4363!==null&&_0x281c7f!==null&&_0x4c4363===_0x553570&&_0x281c7f===_0x6737e5){_0x4c4363=_0x553570,_0x281c7f=_0x6737e5;continue;}_0x211b11[_0x38490f(0x1cb)]([_0x553570,_0x6737e5]),_0x4c4363=_0x553570,_0x281c7f=_0x6737e5;}if(_0x211b11[_0x38490f(0x1a1)]===0x0)return _0x211b11;const _0x5edf56=_0x211b11[0x0],_0x1c01f6=_0x211b11[_0x211b11[_0x38490f(0x1a1)]-0x1];if(_0x5edf56[0x0]!==_0x1c01f6[0x0]||_0x5edf56[0x1]!==_0x1c01f6[0x1])_0x211b11['push']([_0x5edf56[0x0],_0x5edf56[0x1]]);return _0x211b11;},_0x4e4782=_0x11905b[_0xe077ab(0x1a1)]-0x1;for(let _0x142638=0x0;_0x142638<_0x11905b[_0xe077ab(0x1a1)];_0x142638++){const _0x3c4c02=_0x11905b[_0x142638],_0x356c2a=_0x142638<_0x4e4782?_0x11905b[_0x142638+0x1]:Infinity,_0x79a0f=Array['from']({'length':this[_0xe077ab(0x1ea)]['length']});let _0x2630b2=![];for(let _0x301edd=0x0;_0x301edd<this[_0xe077ab(0x1ea)][_0xe077ab(0x1a1)];_0x301edd++){const _0x5c88e8=this['values'][_0x301edd],_0x437ac6=_0x5c88e8>=_0x3c4c02&&_0x5c88e8<_0x356c2a?0x1:0x0;if(_0x437ac6)_0x2630b2=!![];_0x79a0f[_0x301edd]=_0x437ac6;}if(!_0x2630b2)continue;const _0x5e9a15=contours()['size']([this['nx'],this['ny']])[_0xe077ab(0x1d1)]([0.5]),_0x30095a=_0x5e9a15[_0xe077ab(0x1b1)]?_0x5e9a15[_0xe077ab(0x1b1)](_0x79a0f):_0x5e9a15(_0x79a0f);if(!_0x30095a||_0x30095a[_0xe077ab(0x1a1)]===0x0)continue;const _0x1aec21=[];for(const _0x178063 of _0x30095a){const _0x2d1681=_0x178063&&_0x178063[_0xe077ab(0x1e3)];if(!_0x2d1681)continue;for(const _0x34bc2b of _0x2d1681){let _0x4bce22=[];if(Array[_0xe077ab(0x1bc)](_0x34bc2b)&&_0x34bc2b[_0xe077ab(0x1a1)]>0x0&&typeof _0x34bc2b[0x0][0x0]===_0xe077ab(0x187))_0x4bce22=[_0x34bc2b];else{if(Array[_0xe077ab(0x1bc)](_0x34bc2b))_0x4bce22=_0x34bc2b;else continue;}const _0xee950a=_0x4bce22[_0xe077ab(0x171)](_0x3ebfbf=>({'ring':_0x3ebfbf,'area':Math[_0xe077ab(0x18f)](_0x306eeb(_0x3ebfbf))}))[_0xe077ab(0x18c)]((_0x2bcbc3,_0x26cda0)=>_0x26cda0[_0xe077ab(0x189)]-_0x2bcbc3[_0xe077ab(0x189)]),_0x5291b8=Array[_0xe077ab(0x18e)]({'length':_0xee950a[_0xe077ab(0x1a1)]})[_0xe077ab(0x19f)](![]);for(let _0x7e9b5a=0x0;_0x7e9b5a<_0xee950a[_0xe077ab(0x1a1)];_0x7e9b5a++){if(_0x5291b8[_0x7e9b5a])continue;const _0x24e8ce=_0xee950a[_0x7e9b5a][_0xe077ab(0x1b9)];_0x5291b8[_0x7e9b5a]=!![];const _0xa9c697=[];for(let _0x3d514c=0x0;_0x3d514c<_0xee950a[_0xe077ab(0x1a1)];_0x3d514c++){if(_0x5291b8[_0x3d514c])continue;const _0x2ecec1=_0xee950a[_0x3d514c][_0xe077ab(0x1b9)],_0x654127=_0x2ecec1[0x0];_0x654127&&_0x6d85b(_0x654127,_0x24e8ce)&&(_0xa9c697['push'](_0x2ecec1),_0x5291b8[_0x3d514c]=!![]);}const _0x3dd0ce=_0x19d430(_0x24e8ce);if(_0x3dd0ce[_0xe077ab(0x1a1)]<0x4)continue;const _0x3fd5a9=[];for(const _0x333b3c of _0xa9c697){const _0x3f51dc=_0x19d430(_0x333b3c);if(_0x3f51dc[_0xe077ab(0x1a1)]>=0x4)_0x3fd5a9['push'](_0x3f51dc);}_0x1aec21['push']({'type':'Feature','properties':{'z':_0x3c4c02},'geometry':{'type':_0xe077ab(0x1e4),'coordinates':[_0x3dd0ce,..._0x3fd5a9]}});}}}_0x1aec21[_0xe077ab(0x1a1)]&&this[_0xe077ab(0x1e5)]['set'](_0x3c4c02,_0x1aec21);}}if(typeof _0x657b2b!==_0xe077ab(0x1ce)){const _0x1d560e=this[_0xe077ab(0x1e5)][_0xe077ab(0x17b)](_0x657b2b)||[],_0x1c1858=this[_0xe077ab(0x177)]?this[_0xe077ab(0x177)](_0x1d560e):_0x1d560e;return{'type':_0xe077ab(0x19d),'features':_0x1c1858};}const _0x4b099a=[];for(const _0x5cf097 of this[_0xe077ab(0x1e5)][_0xe077ab(0x1ea)]()){_0x4b099a['push'](..._0x5cf097);}const _0x29b384=this[_0xe077ab(0x177)]?this['sortFeaturesByArea'](_0x4b099a):_0x4b099a;return{'type':'FeatureCollection','features':_0x29b384};}[a4_0x1c22a8(0x1a3)](){const _0x4b40a8=a4_0x1c22a8,_0x2fe8c7=Array['from']({'length':this['nx']});for(let _0x31f7df=0x0;_0x31f7df<this['nx'];_0x31f7df++){_0x2fe8c7[_0x31f7df]=new a4_0x1a6656(this[_0x4b40a8(0x1ad)])['plus'](new a4_0x1a6656(_0x31f7df)['times'](this[_0x4b40a8(0x17c)]))[_0x4b40a8(0x1c3)]();}const _0x517322=Array[_0x4b40a8(0x18e)]({'length':this['ny']});for(let _0x5d418d=0x0;_0x5d418d<this['ny'];_0x5d418d++){_0x517322[_0x5d418d]=new a4_0x1a6656(this[_0x4b40a8(0x1aa)])[_0x4b40a8(0x198)](new a4_0x1a6656(_0x5d418d)[_0x4b40a8(0x17f)](this[_0x4b40a8(0x1ae)]))[_0x4b40a8(0x1c3)]();}const _0x584a3b=Array[_0x4b40a8(0x18e)]({'length':this['nx']*this['ny']});for(let _0x2a0431=0x0;_0x2a0431<this[_0x4b40a8(0x1ea)][_0x4b40a8(0x1a1)];_0x2a0431++){const _0x1d801b=Math['floor'](_0x2a0431/this['nx']),_0xcd8351=_0x2a0431%this['nx'],_0x4cc56e=_0x2fe8c7[_0xcd8351],_0x45890b=_0x517322[_0x1d801b],_0x37b09e=this[_0x4b40a8(0x1ea)][_0x2a0431];_0x45890b&&_0x4cc56e&&(_0x584a3b[_0x2a0431]={'lng':_0x4cc56e,'lat':_0x45890b,'val':_0x37b09e});}return _0x584a3b;}[a4_0x1c22a8(0x18b)](_0x2d53b5){const _0x4fc8f7=a4_0x1c22a8;if(this[_0x4fc8f7(0x1ea)][_0x4fc8f7(0x1a1)]===0x0)return{'type':_0x4fc8f7(0x19d),'features':[]};const _0x11e7ac=_0x2d53b5&&_0x2d53b5[_0x4fc8f7(0x1a1)]?_0x2d53b5:this['getBreaks']();if(!_0x11e7ac[_0x4fc8f7(0x1a1)])return{'type':'FeatureCollection','features':[]};const _0x160eb0=this['minLng'],_0x4db978=this[_0x4fc8f7(0x1aa)],_0x2af17b=this[_0x4fc8f7(0x17c)],_0x55d2c3=this[_0x4fc8f7(0x1ae)],_0x4014fa=_0xea88f2=>{const _0x2252ed=_0x4fc8f7;let _0x5af822=0x0;for(let _0x7c2fdf=0x0,_0x3c9279=_0xea88f2[_0x2252ed(0x1a1)];_0x7c2fdf<_0x3c9279;_0x7c2fdf++){const _0x2a135d=_0xea88f2[_0x7c2fdf],_0xf04aa6=_0xea88f2[(_0x7c2fdf+0x1)%_0x3c9279];if(!_0x2a135d||!_0xf04aa6)continue;_0x5af822+=_0x2a135d[0x0]*_0xf04aa6[0x1]-_0xf04aa6[0x0]*_0x2a135d[0x1];}return _0x5af822/0x2;},_0x2038bb=(_0x376524,_0x82a6bf)=>{const _0x593c0d=_0x4fc8f7;if(!_0x376524)return![];const _0xb5fbd3=_0x376524[0x0],_0xdc1610=_0x376524[0x1];let _0x4a69aa=![];for(let _0x2c1c3d=0x0,_0x53482a=_0x82a6bf[_0x593c0d(0x1a1)]-0x1;_0x2c1c3d<_0x82a6bf[_0x593c0d(0x1a1)];_0x53482a=_0x2c1c3d++){const _0x2dd233=_0x82a6bf[_0x2c1c3d][0x0],_0x2a2173=_0x82a6bf[_0x2c1c3d][0x1],_0x3bec51=_0x82a6bf[_0x53482a][0x0],_0x162230=_0x82a6bf[_0x53482a][0x1],_0x37b9be=_0x2a2173>_0xdc1610!==_0x162230>_0xdc1610&&_0xb5fbd3<(_0x3bec51-_0x2dd233)*(_0xdc1610-_0x2a2173)/(_0x162230-_0x2a2173)+_0x2dd233;if(_0x37b9be)_0x4a69aa=!_0x4a69aa;}return _0x4a69aa;},_0x52afe2=_0x544f36=>{const _0x367b78=_0x4fc8f7,_0x30d17a=[];let _0x5aa6ee=null,_0x229b40=null;for(let _0x26d19a=0x0;_0x26d19a<_0x544f36[_0x367b78(0x1a1)];_0x26d19a++){const _0x288893=_0x544f36[_0x26d19a];if(!_0x288893)continue;const _0x5df1af=_0x288893[0x0],_0x4146bf=_0x288893[0x1];if(_0x5df1af==null||_0x4146bf==null||Number['isNaN'](_0x5df1af)||Number[_0x367b78(0x199)](_0x4146bf))continue;const _0x377375=_0x160eb0+_0x5df1af*_0x2af17b,_0x5929e9=_0x4db978+_0x4146bf*_0x55d2c3;if(_0x5aa6ee!==null&&_0x229b40!==null&&_0x5aa6ee===_0x377375&&_0x229b40===_0x5929e9)continue;_0x30d17a[_0x367b78(0x1cb)]([_0x377375,_0x5929e9]),_0x5aa6ee=_0x377375,_0x229b40=_0x5929e9;}if(!_0x30d17a[_0x367b78(0x1a1)])return _0x30d17a;const _0x520cca=_0x30d17a[0x0],_0x287a2=_0x30d17a[_0x30d17a[_0x367b78(0x1a1)]-0x1];if(_0x520cca[0x0]!==_0x287a2[0x0]||_0x520cca[0x1]!==_0x287a2[0x1])_0x30d17a[_0x367b78(0x1cb)]([_0x520cca[0x0],_0x520cca[0x1]]);return _0x30d17a;},_0x2ecc4c=[],_0x245b7f=_0x11e7ac['length']-0x1;for(let _0x2d96b6=0x0;_0x2d96b6<_0x11e7ac[_0x4fc8f7(0x1a1)];_0x2d96b6++){const _0x49d12c=_0x11e7ac[_0x2d96b6],_0x494b7d=_0x2d96b6<_0x245b7f?_0x11e7ac[_0x2d96b6+0x1]:Infinity,_0xb97f5e=new Array(this['values'][_0x4fc8f7(0x1a1)]);let _0x21bd8e=![];for(let _0x29f7ec=0x0;_0x29f7ec<this['values'][_0x4fc8f7(0x1a1)];_0x29f7ec++){const _0x2aaa8d=this[_0x4fc8f7(0x1ea)][_0x29f7ec],_0x18477e=_0x2aaa8d!=null&&_0x2aaa8d>=_0x49d12c&&_0x2aaa8d<_0x494b7d?0x1:0x0;_0xb97f5e[_0x29f7ec]=_0x18477e;if(_0x18477e)_0x21bd8e=!![];}if(!_0x21bd8e)continue;const _0x2b21ad=contours()[_0x4fc8f7(0x1b7)]([this['nx'],this['ny']])[_0x4fc8f7(0x1d1)]([0.5]),_0x56f438=_0x2b21ad[_0x4fc8f7(0x1b1)]?_0x2b21ad[_0x4fc8f7(0x1b1)](_0xb97f5e):_0x2b21ad(_0xb97f5e);if(!_0x56f438||!_0x56f438[_0x4fc8f7(0x1a1)])continue;for(const _0x50716a of _0x56f438){const _0x38bc0c=_0x50716a?.[_0x4fc8f7(0x1e3)];if(!_0x38bc0c)continue;for(const _0x3bbfe8 of _0x38bc0c){let _0x152b09=[];if(Array[_0x4fc8f7(0x1bc)](_0x3bbfe8)&&_0x3bbfe8[_0x4fc8f7(0x1a1)]>0x0&&typeof _0x3bbfe8[0x0][0x0]===_0x4fc8f7(0x187))_0x152b09=[_0x3bbfe8];else{if(Array[_0x4fc8f7(0x1bc)](_0x3bbfe8))_0x152b09=_0x3bbfe8;else continue;}const _0x4c5e85=_0x152b09[_0x4fc8f7(0x171)](_0x57da9e=>({'ring':_0x57da9e,'area':Math[_0x4fc8f7(0x18f)](_0x4014fa(_0x57da9e))}))[_0x4fc8f7(0x18c)]((_0x547572,_0x2ca34c)=>_0x2ca34c['area']-_0x547572[_0x4fc8f7(0x189)]),_0x25138d=new Array(_0x4c5e85[_0x4fc8f7(0x1a1)])[_0x4fc8f7(0x19f)](![]);for(let _0x29d016=0x0;_0x29d016<_0x4c5e85['length'];_0x29d016++){if(_0x25138d[_0x29d016])continue;const _0x156d0e=_0x4c5e85[_0x29d016][_0x4fc8f7(0x1b9)];_0x25138d[_0x29d016]=!![];const _0x157d6e=[];for(let _0x1932bf=0x0;_0x1932bf<_0x4c5e85[_0x4fc8f7(0x1a1)];_0x1932bf++){if(_0x25138d[_0x1932bf])continue;const _0x2f4c34=_0x4c5e85[_0x1932bf][_0x4fc8f7(0x1b9)],_0x548d8b=_0x2f4c34[0x0];_0x548d8b&&_0x2038bb(_0x548d8b,_0x156d0e)&&(_0x157d6e['push'](_0x2f4c34),_0x25138d[_0x1932bf]=!![]);}const _0x356f4d=_0x52afe2(_0x156d0e);if(_0x356f4d['length']<0x4)continue;const _0x8ad50e=[];for(const _0x25a89b of _0x157d6e){const _0x1816bd=_0x52afe2(_0x25a89b);if(_0x1816bd['length']>=0x4)_0x8ad50e[_0x4fc8f7(0x1cb)](_0x1816bd);}_0x2ecc4c[_0x4fc8f7(0x1cb)]({'type':_0x4fc8f7(0x1da),'properties':{'z':_0x49d12c},'geometry':{'type':_0x4fc8f7(0x1e4),'coordinates':[_0x356f4d,..._0x8ad50e]}});}}}}return _0x2ecc4c[_0x4fc8f7(0x18c)]((_0x4cbc98,_0x217fe8)=>Number(_0x4cbc98['properties']?.['z']??0x0)-Number(_0x217fe8[_0x4fc8f7(0x197)]?.['z']??0x0)),{'type':'FeatureCollection','features':_0x2ecc4c};}['buildGridLineCanvas'](_0x3a708a){const _0x291970=a4_0x1c22a8;if(this['nx']<=0x0||this['ny']<=0x0||this[_0x291970(0x17c)]===0x0||this[_0x291970(0x1ae)]===0x0)return null;const {canvas:_0x1f906b,ctx:_0x2734af,width:_0x4e6911,height:_0x4e5c05}=this['createCanvas'](_0x3a708a);if(!_0x2734af)return null;const _0x1a8f4f=_0x4e6911/this['nx'],_0x18d356=_0x4e5c05/this['ny'];_0x2734af[_0x291970(0x1a4)](),_0x2734af['strokeStyle']=_0x3a708a?.[_0x291970(0x1c2)]||_0x291970(0x1e7),_0x2734af['lineWidth']=_0x3a708a?.[_0x291970(0x1d3)]||0x1;for(let _0x115fc8=0x0;_0x115fc8<=this['nx'];_0x115fc8++){_0x2734af[_0x291970(0x1a2)](_0x1a8f4f*_0x115fc8,0x0),_0x2734af[_0x291970(0x174)](_0x1a8f4f*_0x115fc8,_0x4e5c05);}for(let _0x3fa206=0x0;_0x3fa206<=this['ny'];_0x3fa206++){_0x2734af['moveTo'](0x0,_0x18d356*_0x3fa206),_0x2734af[_0x291970(0x174)](_0x4e6911,_0x18d356*_0x3fa206);}return _0x2734af['stroke'](),_0x2734af[_0x291970(0x16f)](),_0x1f906b;}[a4_0x1c22a8(0x195)](_0x420113,_0x4a7e56,_0x5b857a){const _0x403c2b=a4_0x1c22a8;if(this['nx']<=0x0||this['ny']<=0x0||this['gjLng']===0x0||this[_0x403c2b(0x1ae)]===0x0)return null;const _0x21056c=_0x420113&&_0x420113[_0x403c2b(0x1a1)]?_0x420113:this[_0x403c2b(0x175)](),{canvas:_0x436c50,ctx:_0x5da543,width:_0x4a19cb,height:_0xa853fd}=this[_0x403c2b(0x1e6)](_0x5b857a);if(!_0x5da543)return null;const _0x4364d2=_0x4a19cb/this['nx'],_0x4936b6=_0xa853fd/this['ny'],_0x57cbd0=_0x103813=>{const _0x1786d5=_0x403c2b;if(_0x103813==null||Number[_0x1786d5(0x199)](_0x103813))return _0x1786d5(0x1e8);for(let _0x540cd2=0x0;_0x540cd2<_0x21056c[_0x1786d5(0x1a1)];_0x540cd2++){const _0x10052d=_0x21056c[_0x540cd2],_0x4153da=_0x540cd2<_0x21056c[_0x1786d5(0x1a1)]-0x1?_0x21056c[_0x540cd2+0x1]:Infinity;if(_0x103813>=_0x10052d&&_0x103813<_0x4153da){const _0x4f1a5d=_0x4a7e56[_0x540cd2];if(typeof _0x4f1a5d==='string')return _0x4f1a5d;return _0x1786d5(0x1cd)+_0x4f1a5d[0x0]+','+_0x4f1a5d[0x1]+','+_0x4f1a5d[0x2]+','+(_0x4f1a5d[0x3]||_0x4f1a5d[0x3]===0x0?_0x4f1a5d[0x3]:0x1)+')';}}return _0x1786d5(0x1e8);};for(let _0x4d7e7d=0x0;_0x4d7e7d<this['ny'];_0x4d7e7d++){for(let _0x56582d=0x0;_0x56582d<this['nx'];_0x56582d++){const _0x2ad233=_0x4d7e7d*this['nx']+_0x56582d,_0x5070cf=this[_0x403c2b(0x1ea)][_0x2ad233],_0x52f233=_0x57cbd0(_0x5070cf),_0x1eb9e6=_0x56582d*_0x4364d2,_0x807504=_0xa853fd-(_0x4d7e7d+0x1)*_0x4936b6;_0x5da543[_0x403c2b(0x183)]=_0x52f233,_0x5da543[_0x403c2b(0x1d6)](_0x1eb9e6,_0x807504,_0x4364d2,_0x4936b6);}}if(!_0x5b857a?.[_0x403c2b(0x1c2)]&&!_0x5b857a?.[_0x403c2b(0x1d3)]||_0x5b857a?.[_0x403c2b(0x1d3)]===0x0)return _0x436c50;const _0x3239d9=this[_0x403c2b(0x1e1)](_0x5b857a);return _0x3239d9&&_0x5da543['drawImage'](_0x3239d9,0x0,0x0,_0x4a19cb,_0xa853fd),_0x436c50;}[a4_0x1c22a8(0x1e0)](_0x441fd0,_0x45d668,_0x9df41f,_0x4ab6fc){const _0x19cc7f=a4_0x1c22a8,_0xaa0d3a=this[_0x19cc7f(0x195)](_0x441fd0,_0x45d668,_0x4ab6fc);if(!_0xaa0d3a)return null;const {canvas:_0x2e6755,ctx:_0x5e03cd,width:_0x574d1e,height:_0xed107d}=this[_0x19cc7f(0x1e6)](_0x4ab6fc);if(!_0x5e03cd)return null;const _0x3dfcce=[];return _0x9df41f[_0x19cc7f(0x1d9)][_0x19cc7f(0x171)](_0x15a3aa=>{const _0x2f3e58=_0x19cc7f,_0x3d1f57=_0x15a3aa[_0x2f3e58(0x1a9)];if(_0x3d1f57[_0x2f3e58(0x1c6)]===_0x2f3e58(0x1e4))_0x3d1f57[_0x2f3e58(0x1e3)][_0x2f3e58(0x171)](_0x2ad8ae=>{const _0x3470a2=_0x2f3e58,_0x37bc61=[];_0x2ad8ae[_0x3470a2(0x171)](_0x31f896=>{const _0x1d729f=_0x3470a2;_0x37bc61[_0x1d729f(0x1cb)]([_0x31f896[0x0],_0x31f896[0x1]]);}),_0x3dfcce[_0x3470a2(0x1cb)](_0x37bc61);});else _0x3d1f57[_0x2f3e58(0x1c6)]===_0x2f3e58(0x17a)&&_0x3d1f57[_0x2f3e58(0x1e3)][_0x2f3e58(0x171)](_0x26f647=>{const _0x3cf6cf=_0x2f3e58;_0x26f647[_0x3cf6cf(0x171)](_0x56445b=>{const _0x58d1eb=_0x3cf6cf,_0x5c0fdd=[];_0x56445b['map'](_0x3a62a1=>{const _0x2b7c73=a4_0x5bcb;_0x5c0fdd[_0x2b7c73(0x1cb)]([_0x3a62a1[0x0],_0x3a62a1[0x1]]);}),_0x3dfcce[_0x58d1eb(0x1cb)](_0x5c0fdd);});});}),_0x5e03cd[_0x19cc7f(0x181)](),_0x5e03cd[_0x19cc7f(0x1a4)](),_0x3dfcce['map'](_0xf51f0b=>{const _0x3bd60e=_0x19cc7f;_0xf51f0b['forEach']((_0x44e54d,_0x5769ef)=>{const _0x421fc3=a4_0x5bcb,_0x6873ab=_0x44e54d[0x0],_0xe797d3=_0x44e54d[0x1],_0xae98fc=(_0x6873ab-this[_0x421fc3(0x1ad)])/(this['nx']*this['gjLng'])*_0x574d1e,_0x37b370=_0xed107d-(_0xe797d3-this['minLat'])/(this['ny']*this[_0x421fc3(0x1ae)])*_0xed107d;_0x5769ef===0x0?_0x5e03cd[_0x421fc3(0x1a2)](_0xae98fc,_0x37b370):_0x5e03cd['lineTo'](_0xae98fc,_0x37b370);}),_0x5e03cd[_0x3bd60e(0x16f)]();}),_0x5e03cd[_0x19cc7f(0x1c5)](),_0x5e03cd[_0x19cc7f(0x1b4)](_0xaa0d3a,0x0,0x0,_0x574d1e,_0xed107d),_0x5e03cd[_0x19cc7f(0x1dc)](),_0x2e6755;}[a4_0x1c22a8(0x1d4)](_0x22f486,_0x13134e){const _0x1a689b=a4_0x1c22a8,_0xa7395b=[];_0x22f486['map'](_0x3de15b=>{const _0x8c9d6d=a4_0x5bcb;_0xa7395b[_0x8c9d6d(0x1cb)]([_0x3de15b[_0x8c9d6d(0x1b0)],_0x3de15b[_0x8c9d6d(0x194)]]);});_0xa7395b[_0x1a689b(0x1a1)]>0x3&&_0x22f486['length']>0x3&&_0xa7395b[_0x1a689b(0x1cb)]([_0x22f486[0x0][_0x1a689b(0x1b0)],_0x22f486[0x0][_0x1a689b(0x194)]]);const _0x31be32=polygon([_0xa7395b]),_0x7f5db7=[],_0xbbb7e7=this['getJsonData']();return _0xbbb7e7[_0x1a689b(0x171)](_0xf074e2=>{const _0xc5e5a7=_0x1a689b,_0x44ded3=point([_0xf074e2['lng'],_0xf074e2[_0xc5e5a7(0x194)]]);booleanPointInPolygon(_0x44ded3,_0x31be32)&&(_0x7f5db7['push']({'lat':_0xf074e2[_0xc5e5a7(0x194)],'lng':_0xf074e2[_0xc5e5a7(0x1b0)]}),_0xf074e2['val']=_0x13134e);}),this[_0x1a689b(0x1ea)]=_0xbbb7e7[_0x1a689b(0x171)](_0x2bc493=>_0x2bc493[_0x1a689b(0x18a)]),_0x7f5db7;}[a4_0x1c22a8(0x1c0)](){const _0x4094b0=a4_0x1c22a8;let _0x56b6de=-Infinity,_0x33a503=Infinity;for(let _0x81bddd=0x0;_0x81bddd<this['values'][_0x4094b0(0x1a1)];_0x81bddd++){const _0x249852=this[_0x4094b0(0x1ea)][_0x81bddd];if(_0x249852&&_0x249852>_0x56b6de)_0x56b6de=_0x249852;if(_0x249852&&_0x249852<_0x33a503)_0x33a503=_0x249852;}this[_0x4094b0(0x1c4)]=_0x33a503,this['maxVal']=_0x56b6de;}[a4_0x1c22a8(0x177)](_0x1b4d13){const _0xb67a21=a4_0x1c22a8;return _0x1b4d13[_0xb67a21(0x171)](_0x13a52e=>{const _0x4d7cf2=_0xb67a21;try{const _0x4d58a2=a4_0x122285(_0x13a52e)||0x0;_0x13a52e[_0x4d7cf2(0x197)]={..._0x13a52e[_0x4d7cf2(0x197)]||{},'__area':_0x4d58a2};}catch{_0x13a52e[_0x4d7cf2(0x197)]={..._0x13a52e['properties']||{},'__area':0x0};}return _0x13a52e;})[_0xb67a21(0x18c)]((_0xa6d93d,_0x5235c5)=>_0x5235c5[_0xb67a21(0x197)]['__area']-_0xa6d93d[_0xb67a21(0x197)][_0xb67a21(0x191)])[_0xb67a21(0x1a7)](_0x37180f=>_0x37180f[_0xb67a21(0x197)]&&_0xb67a21(0x191)in _0x37180f[_0xb67a21(0x197)]&&_0x37180f[_0xb67a21(0x197)][_0xb67a21(0x191)]!==0x0)['map'](_0x3599fa=>{const _0x1038ec=_0xb67a21;if(_0x3599fa[_0x1038ec(0x197)]&&'__area'in _0x3599fa['properties']){const {__area:_0x2440f5,..._0xb0c99b}=_0x3599fa['properties'];_0x3599fa['properties']=_0xb0c99b;}return _0x3599fa;});}['chunkArray']=(_0x4a84d3,_0x41f10f)=>{const _0x13332c=a4_0x1c22a8,_0x2d915f=[],_0x5190d0=Math[_0x13332c(0x1a8)](0x1,Math[_0x13332c(0x1cc)](_0x4a84d3['length']/_0x41f10f));for(let _0x56bfd7=0x0;_0x56bfd7<_0x41f10f;_0x56bfd7++){_0x2d915f[_0x13332c(0x1cb)](_0x4a84d3[_0x13332c(0x176)](_0x56bfd7*_0x5190d0,(_0x56bfd7+0x1)*_0x5190d0));}return _0x2d915f;};[a4_0x1c22a8(0x175)](){const _0x3ef0a5=a4_0x1c22a8,_0x47ff77=[];if(this[_0x3ef0a5(0x1c4)]===Infinity||this[_0x3ef0a5(0x185)]===-Infinity)return _0x47ff77;for(let _0x1c018a=this[_0x3ef0a5(0x1c4)]-0x1;_0x1c018a<=this[_0x3ef0a5(0x185)]+0x1;_0x1c018a++){_0x47ff77[_0x3ef0a5(0x1cb)](_0x1c018a);}return _0x47ff77;}['getAllGeo']=_0x356634=>{const _0x568b6c=a4_0x1c22a8;if(_0x356634['length']===0x0)_0x356634=this[_0x568b6c(0x175)]();const _0x136aca=[];for(let _0x34f314=0x0;_0x34f314<_0x356634['length'];_0x34f314++){const _0x44973f=_0x356634[_0x34f314],_0x6b0732=_0x34f314<_0x356634[_0x568b6c(0x1a1)]-0x1?_0x356634[_0x34f314+0x1]:Infinity;if(_0x44973f==null||_0x6b0732==null)continue;if(_0x44973f<this[_0x568b6c(0x1c4)]&&_0x6b0732<this[_0x568b6c(0x1c4)])continue;if(_0x44973f>this[_0x568b6c(0x185)]&&_0x6b0732>this[_0x568b6c(0x185)])continue;_0x136aca[_0x568b6c(0x1cb)](_0x44973f);}const _0x270ba5=contours()['size']([this['nx'],this['ny']])['thresholds'](_0x136aca);return _0x270ba5(this[_0x568b6c(0x1ea)]);};[a4_0x1c22a8(0x1e6)]=_0x257aa2=>{const _0x2ccea8=a4_0x1c22a8,_0x584ac5=Math[_0x2ccea8(0x1e2)]((_0x257aa2?.[_0x2ccea8(0x1b5)]||Math[_0x2ccea8(0x193)](this['nx']/0x400)*0x400*0x2)/this['nx'])*this['nx'],_0x265f9d=_0x584ac5/this['nx']*this['ny'],_0x26e86a=_0x257aa2?.[_0x2ccea8(0x1b6)]||(typeof devicePixelRatio!==_0x2ccea8(0x1ce)?devicePixelRatio:0x1),_0x176f07=document[_0x2ccea8(0x1af)](_0x2ccea8(0x184)),_0x3a5e76=_0x176f07[_0x2ccea8(0x186)]('2d');return _0x176f07[_0x2ccea8(0x1b5)]=_0x584ac5*_0x26e86a,_0x176f07[_0x2ccea8(0x19a)]=_0x265f9d*_0x26e86a,_0x3a5e76[_0x2ccea8(0x1c1)](_0x26e86a,_0x26e86a),{'canvas':_0x176f07,'ctx':_0x3a5e76,'width':_0x584ac5,'height':_0x265f9d};};}export default readFileM4;
1
+ const a4_0x1418ba=a4_0x5c4b;(function(_0x5ba2a4,_0x2353ea){const _0x2a9be6=a4_0x5c4b,_0x437fc9=_0x5ba2a4();while(!![]){try{const _0x3b919a=-parseInt(_0x2a9be6(0x1c1))/0x1+-parseInt(_0x2a9be6(0x1c0))/0x2+-parseInt(_0x2a9be6(0x1d4))/0x3*(parseInt(_0x2a9be6(0x17f))/0x4)+parseInt(_0x2a9be6(0x18d))/0x5+parseInt(_0x2a9be6(0x1e8))/0x6+parseInt(_0x2a9be6(0x183))/0x7+parseInt(_0x2a9be6(0x187))/0x8;if(_0x3b919a===_0x2353ea)break;else _0x437fc9['push'](_0x437fc9['shift']());}catch(_0x1eac1f){_0x437fc9['push'](_0x437fc9['shift']());}}}(a4_0x16af,0xd4567));import{contours}from'd3-contour';function a4_0x5c4b(_0x3f8ab2,_0xf0113e){const _0x16af77=a4_0x16af();return a4_0x5c4b=function(_0x5c4bff,_0x18da00){_0x5c4bff=_0x5c4bff-0x17f;let _0x45312a=_0x16af77[_0x5c4bff];return _0x45312a;},a4_0x5c4b(_0x3f8ab2,_0xf0113e);}import{featureCollection as a4_0x2cce99,point,polygon}from'@turf/helpers';function a4_0x16af(){const _0x5779af=['floor','size','maxVal','rgba(0,0,0,0)','getIsoBandsFast','canvas','Polygon','strokeStyle','buildGridCanvasClipByJson','width','gjLat','minVal','start','filePath','plus','22938WVuKYR','postMessage','number','times','buildGridCanvas','type','lineWidth','map','max','restore','gjLng','height','Feature','lat','fillStyle','lng','getAllGeo','pixelRatio','abs','push','6128316KiRxkB','convertTemKtoC','296kERhEf','forEach','trim','style','12080642ZnauMI','values','properties','beginPath','2257752iACyHG','lineTo','MultiPolygon','coordinates','getBreaks','drawImage','4614875XHEdkL','area','minLat','all','latLngToLayerPoint','toNumber','isNaN','clipDataByJson','minus','min','replace','sort','round','plusOffset','ceil','buildGridLineCanvas','moveTo','contours','split','createCanvas','slice','ring','from','indexOf','save','FeatureCollection','fill','rgba(','val','chunkArray','error','isArray','该时次文件数据异常','getIsoBandsCanvas','该时次未获取到文件','string','undefined','value','thresholds','rgba(255,255,255,0)','closePath','minLng','#FFFFFF','features','_maskCache','clip','stroke','createElement','length','getColorFast','data','2484876oLfpYG','1274409rZuHzW','getMinMax','terminate','onerror'];a4_0x16af=function(){return _0x5779af;};return a4_0x16af();}import{booleanPointInPolygon}from'@turf/boolean-point-in-polygon';import a4_0x12523f from'decimal.js';export class readFileM4{[a4_0x1418ba(0x1d2)]='';['nx']=0x0;['ny']=0x0;['minLng']=0x0;[a4_0x1418ba(0x18f)]=0x0;['gjLng']=0x0;[a4_0x1418ba(0x1cf)]=0x0;[a4_0x1418ba(0x184)]=[];[a4_0x1418ba(0x1c7)]=-Infinity;[a4_0x1418ba(0x1d0)]=Infinity;['_maskCacheKey']='';[a4_0x1418ba(0x1b9)]=new Map();constructor(_0xfec89e){const _0x443597=a4_0x1418ba;this[_0x443597(0x1d2)]=_0xfec89e||'';}async[a4_0x1418ba(0x1d1)](_0x40db84){const _0x241746=a4_0x1418ba,_0x468759=await fetch(this[_0x241746(0x1d2)]);if(!_0x468759['ok'])return new Promise((_0xec022a,_0xd815a5)=>{const _0x337670=_0x241746;_0xd815a5(new Error(_0x337670(0x1af)));});const _0x2df82f=await _0x468759['text'](),_0x2ac746=_0x2df82f['replace'](/\r\n/g,'\x0a')[_0x241746(0x197)](/\r/g,'\x0a')[_0x241746(0x19f)]('\x0a');if(_0x2ac746[_0x241746(0x1bd)]<0x4)return new Promise((_0x2ecb4b,_0x5836bd)=>{const _0x583cc6=_0x241746;_0x5836bd(new Error(_0x583cc6(0x1ad)));});const _0x4576f2=(_0x2ac746[0x1]??'')[_0x241746(0x181)]()['split'](/\s+/);let _0xbef542=0x2;while(_0x4576f2[_0x241746(0x1bd)]<0x13){_0x4576f2['push'](...(_0x2ac746[_0xbef542]??'')[_0x241746(0x181)]()[_0x241746(0x19f)](/\s+/)),_0xbef542++;}this[_0x241746(0x1de)]=Number(_0x4576f2[0x6]);const _0x686791=Number(_0x4576f2[0x8]),_0x580044=Number(_0x4576f2[0xa]),_0x37728e=Number(_0x4576f2[0xb]);this['nx']=Number(_0x4576f2[0xc]),this['ny']=Number(_0x4576f2[0xd]),this[_0x241746(0x1b6)]=_0x686791,this[_0x241746(0x18f)]=_0x580044,this[_0x241746(0x1cf)]=Math[_0x241746(0x1e6)](Number(_0x4576f2[0x7]))*(_0x580044>_0x37728e?-0x1:0x1);const _0x7fefcc=this['nx']*this['ny'];let _0x10a593=0x0;for(let _0x3cc0e5=_0xbef542;_0x3cc0e5<_0x2ac746[_0x241746(0x1bd)]&&_0x10a593<_0x7fefcc;_0x3cc0e5++){const _0x924078=_0x2ac746[_0x3cc0e5]?.[_0x241746(0x181)]()??'',_0xa0418a=_0x924078[_0x241746(0x19f)](/\s+/);if(!_0xa0418a||_0xa0418a[_0x241746(0x1bd)]===0x0)continue;for(let _0x9835c9=0x0;_0x9835c9<_0xa0418a[_0x241746(0x1bd)]&&_0x10a593<_0x7fefcc;_0x9835c9++){let _0x564067=Number(_0xa0418a[_0x9835c9]);if(_0x40db84?.[_0x241746(0x1e9)])_0x564067=new a4_0x12523f(_0x564067)[_0x241746(0x195)](272.15)[_0x241746(0x192)]();else _0x40db84?.[_0x241746(0x19a)]&&(_0x564067=new a4_0x12523f(_0x564067)['plus'](_0x40db84[_0x241746(0x19a)])['toNumber']());this[_0x241746(0x184)][_0x241746(0x1e7)](_0x564067),this['minVal']=Math[_0x241746(0x196)](this[_0x241746(0x1d0)],_0x564067),this[_0x241746(0x1c7)]=Math[_0x241746(0x1dc)](this[_0x241746(0x1c7)],_0x564067),_0x10a593++;}}}['setParams'](_0x4c0c0a,_0x3d6555){const _0x36b3ca=a4_0x1418ba;this['nx']=_0x4c0c0a['nx'],this['ny']=_0x4c0c0a['ny'],this[_0x36b3ca(0x1b6)]=_0x4c0c0a[_0x36b3ca(0x1b6)],this[_0x36b3ca(0x18f)]=_0x4c0c0a[_0x36b3ca(0x18f)],this['gjLng']=_0x4c0c0a[_0x36b3ca(0x1de)],this[_0x36b3ca(0x1cf)]=_0x4c0c0a[_0x36b3ca(0x1cf)];if(_0x3d6555?.[_0x36b3ca(0x1e9)])for(let _0x396a3e=0x0;_0x396a3e<_0x4c0c0a[_0x36b3ca(0x184)][_0x36b3ca(0x1bd)];_0x396a3e++){if(typeof _0x4c0c0a[_0x36b3ca(0x184)][_0x396a3e]==='undefined')continue;_0x4c0c0a['values'][_0x396a3e]=new a4_0x12523f(_0x4c0c0a['values'][_0x396a3e])[_0x36b3ca(0x195)](272.15)[_0x36b3ca(0x192)]();}else{if(_0x3d6555?.[_0x36b3ca(0x19a)])for(let _0x1a190b=0x0;_0x1a190b<_0x4c0c0a[_0x36b3ca(0x184)]['length'];_0x1a190b++){if(typeof _0x4c0c0a[_0x36b3ca(0x184)][_0x1a190b]===_0x36b3ca(0x1b1))continue;_0x4c0c0a[_0x36b3ca(0x184)][_0x1a190b]=new a4_0x12523f(_0x4c0c0a[_0x36b3ca(0x184)][_0x1a190b])[_0x36b3ca(0x1d3)](_0x3d6555[_0x36b3ca(0x19a)])['toNumber']();}else this[_0x36b3ca(0x184)]=_0x4c0c0a[_0x36b3ca(0x184)];}this['getMinMax']();}[a4_0x1418ba(0x1c9)](_0x1cb726){const _0xa939bc=a4_0x1418ba;if(this[_0xa939bc(0x184)][_0xa939bc(0x1bd)]===0x0)return{'type':_0xa939bc(0x1a6),'features':[]};const _0x2df41b=[],_0x429608=this[_0xa939bc(0x1e4)](_0x1cb726),_0x30893b=new a4_0x12523f(this[_0xa939bc(0x1b6)]),_0x1e6ea1=new a4_0x12523f(this[_0xa939bc(0x18f)]),_0x19e9e5=new a4_0x12523f(this[_0xa939bc(0x1de)]),_0x230cff=new a4_0x12523f(this[_0xa939bc(0x1cf)]);for(const _0x11b837 of _0x429608){for(const _0x317ab4 of _0x11b837[_0xa939bc(0x18a)]){if(Array[_0xa939bc(0x1ac)](_0x317ab4))for(const _0x36259d of _0x317ab4){_0x36259d['forEach'](_0x200a3c=>{const _0x145792=_0xa939bc,_0x522452=_0x200a3c[0x0],_0x39ebc5=_0x200a3c[0x1];if(_0x522452==null||_0x39ebc5==null||Number[_0x145792(0x193)](_0x522452)||Number[_0x145792(0x193)](_0x39ebc5))return null;const _0x462b11=_0x30893b['plus'](_0x19e9e5[_0x145792(0x1d7)](_0x522452))[_0x145792(0x192)](),_0x4201dd=_0x1e6ea1[_0x145792(0x1d3)](_0x230cff['times'](_0x39ebc5))['toNumber']();_0x200a3c[0x0]=_0x462b11,_0x200a3c[0x1]=_0x4201dd;});}}_0x2df41b[_0xa939bc(0x1e7)]({'type':_0xa939bc(0x1e0),'properties':{'z':_0x11b837[_0xa939bc(0x1b2)]},'geometry':_0x11b837});}return{'type':_0xa939bc(0x1a6),'features':_0x2df41b};}[a4_0x1418ba(0x1ae)](_0x29814f,_0x13bcc9,_0x14809f){const _0x69388=a4_0x1418ba;if(this[_0x69388(0x184)][_0x69388(0x1bd)]===0x0)return null;const _0x2286b1=this['getAllGeo'](_0x29814f),{canvas:_0x1736eb,ctx:_0x56e726,width:_0x3a1ca2,height:_0x280769}=this[_0x69388(0x1a0)](_0x14809f);if(!_0x56e726)return null;for(const _0x2de149 of _0x2286b1){const _0x2d9eb2=_0x2de149[_0x69388(0x1b2)];_0x56e726[_0x69388(0x186)]();for(const _0x22b3d7 of _0x2de149['coordinates']){if(Array[_0x69388(0x1ac)](_0x22b3d7))for(const _0x128c03 of _0x22b3d7){_0x128c03[_0x69388(0x180)]((_0x57e9a5,_0x240c37)=>{const _0x510b09=_0x69388,_0x333ace=_0x57e9a5[0x0],_0x55466f=_0x57e9a5[0x1];if(_0x333ace==null||_0x55466f==null||Number[_0x510b09(0x193)](_0x333ace)||Number[_0x510b09(0x193)](_0x55466f))return null;const _0x4df3ed=_0x333ace/this['nx']*_0x3a1ca2,_0x341619=this[_0x510b09(0x1cf)]<0x0?_0x55466f/this['ny']*_0x280769:_0x280769-_0x55466f/this['ny']*_0x280769;_0x240c37===0x0?_0x56e726[_0x510b09(0x19d)](_0x4df3ed,_0x341619):_0x56e726[_0x510b09(0x188)](_0x4df3ed,_0x341619);});}}_0x56e726[_0x69388(0x1b5)](),_0x56e726[_0x69388(0x1e2)]=this[_0x69388(0x1be)](_0x2d9eb2,_0x29814f,_0x13bcc9),_0x56e726[_0x69388(0x1a7)]();}return _0x1736eb;}['getIsoBandsCanvasByMap'](_0x24804d,_0x294267,_0x10e963,_0x270c00){const _0x310102=a4_0x1418ba;if(this[_0x310102(0x184)][_0x310102(0x1bd)]===0x0)return null;if(!_0x10e963)return null;const _0x121430=this[_0x310102(0x1b6)],_0x99b5f1=this['minLat'],_0xea72d2=_0x121430+this['nx']*this[_0x310102(0x1de)],_0x3aec1f=_0x99b5f1+this['ny']*this[_0x310102(0x1cf)],_0x5c04a9=_0x10e963['latLngToLayerPoint']([_0x3aec1f,_0x121430]),_0x1aaec7=_0x10e963[_0x310102(0x191)]([_0x99b5f1,_0xea72d2]),_0x15ff56=Math['max'](0x1,Math[_0x310102(0x199)](_0x1aaec7['x']-_0x5c04a9['x'])),_0xf130a5=Math['max'](0x1,Math['round'](_0x1aaec7['y']-_0x5c04a9['y'])),_0xe71fe4=_0x270c00?.[_0x310102(0x1e5)]||(typeof devicePixelRatio!==_0x310102(0x1b1)?devicePixelRatio:0x1),_0x373ca0=document['createElement']('canvas'),_0xda9709=_0x373ca0['getContext']('2d');_0x373ca0[_0x310102(0x1ce)]=Math['max'](0x1,Math[_0x310102(0x1c5)](_0x15ff56*_0xe71fe4)),_0x373ca0[_0x310102(0x1df)]=Math['max'](0x1,Math[_0x310102(0x1c5)](_0xf130a5*_0xe71fe4)),_0x373ca0[_0x310102(0x182)][_0x310102(0x1ce)]=_0x15ff56+'px',_0x373ca0[_0x310102(0x182)][_0x310102(0x1df)]=_0xf130a5+'px';if(_0xda9709)_0xda9709['scale'](_0xe71fe4,_0xe71fe4);const _0x4ae5c7=this[_0x310102(0x1e4)](_0x24804d);for(const _0x437824 of _0x4ae5c7){const _0x2bc3bc=_0x437824[_0x310102(0x1b2)];if(!_0x437824[_0x310102(0x18a)])continue;_0xda9709['beginPath']();for(const _0x5c6b9d of _0x437824[_0x310102(0x18a)]){if(Array[_0x310102(0x1ac)](_0x5c6b9d))for(const _0x194b63 of _0x5c6b9d){_0x194b63[_0x310102(0x180)]((_0x35ab40,_0x57c115)=>{const _0xa86eb7=_0x310102,_0x2cd3e6=_0x35ab40[0x0],_0x1c406f=_0x35ab40[0x1];if(_0x2cd3e6==null||_0x1c406f==null||Number['isNaN'](_0x2cd3e6)||Number[_0xa86eb7(0x193)](_0x1c406f))return;const _0x5cacfb=_0x121430+_0x2cd3e6*this[_0xa86eb7(0x1de)],_0x25baf4=_0x99b5f1+_0x1c406f*this[_0xa86eb7(0x1cf)],_0x37b4b4=_0x10e963[_0xa86eb7(0x191)]([_0x25baf4,_0x5cacfb]),_0x3e894c=_0x37b4b4['x']-_0x5c04a9['x'],_0x463364=_0x37b4b4['y']-_0x5c04a9['y'];if(_0x57c115===0x0)_0xda9709['moveTo'](_0x3e894c,_0x463364);else _0xda9709[_0xa86eb7(0x188)](_0x3e894c,_0x463364);});}}_0xda9709['closePath'](),_0xda9709[_0x310102(0x1e2)]=this[_0x310102(0x1be)](_0x2bc3bc,_0x24804d,_0x294267),_0xda9709[_0x310102(0x1a7)]();}return _0x373ca0;}[a4_0x1418ba(0x1be)](_0x4e3aa7,_0xf92346,_0x5e24ec){const _0x571f21=a4_0x1418ba;let _0x289750=_0x571f21(0x1b4);const _0x352d5c=_0xf92346[_0x571f21(0x1a4)](_0x4e3aa7);if(typeof _0x5e24ec[_0x352d5c]==_0x571f21(0x1b0))_0x289750=_0x5e24ec[_0x352d5c];else _0x352d5c!==-0x1&&(_0x289750=_0x571f21(0x1a8)+_0x5e24ec[_0x352d5c][0x0]+','+_0x5e24ec[_0x352d5c][0x1]+','+_0x5e24ec[_0x352d5c][0x2]+','+(_0x5e24ec[_0x352d5c][0x3]||_0x5e24ec[_0x352d5c][0x3]===0x0?_0x5e24ec[_0x352d5c][0x3]:0x1)+')');return _0x289750;}async[a4_0x1418ba(0x194)](_0x204efc,_0x47d919,_0x234d5f,_0x3c6efc){const _0x4111e1=a4_0x1418ba,_0x1fd309=_0x3c6efc||(navigator['hardwareConcurrency']-0x4||0x1),_0x8d3dd=Math[_0x4111e1(0x196)](_0x1fd309,Math[_0x4111e1(0x1dc)](0x1,_0x204efc['features'][_0x4111e1(0x1bd)])),_0x5cc73a=this[_0x4111e1(0x1aa)](_0x204efc[_0x4111e1(0x1b8)],_0x8d3dd),_0x13a458=[],_0x2f9c9c=_0x5cc73a[_0x4111e1(0x1db)](_0x39e4ae=>{const _0x1fcc68=_0x4111e1,_0x13c0dd=new Worker(_0x234d5f,{'type':'module'});return _0x13a458[_0x1fcc68(0x1e7)](_0x13c0dd),new Promise(_0x11a707=>{const _0x18ab06=_0x1fcc68;_0x13c0dd['onmessage']=_0x1e198c=>{const _0x4b5946=a4_0x5c4b;_0x11a707(_0x1e198c[_0x4b5946(0x1bf)]['features']);},_0x13c0dd[_0x18ab06(0x1c4)]=_0x54cb99=>{const _0x592602=_0x18ab06;console[_0x592602(0x1ab)](_0x54cb99);},_0x13c0dd[_0x18ab06(0x1d5)]({'isoChunk':_0x39e4ae,'gansuFeatures':_0x47d919[_0x18ab06(0x1b8)]});});}),_0x59912b=await Promise[_0x4111e1(0x190)](_0x2f9c9c);_0x13a458[_0x4111e1(0x180)](_0x1d3ae9=>_0x1d3ae9[_0x4111e1(0x1c3)]());const _0x1f2cae=_0x59912b['flat']();return a4_0x2cce99(_0x1f2cae);}['getJsonData'](){const _0x59ddcf=a4_0x1418ba,_0x534d0d=Array[_0x59ddcf(0x1a3)]({'length':this['nx']});for(let _0x259759=0x0;_0x259759<this['nx'];_0x259759++){_0x534d0d[_0x259759]=new a4_0x12523f(this[_0x59ddcf(0x1b6)])[_0x59ddcf(0x1d3)](new a4_0x12523f(_0x259759)[_0x59ddcf(0x1d7)](this[_0x59ddcf(0x1de)]))[_0x59ddcf(0x192)]();}const _0x151fb2=Array[_0x59ddcf(0x1a3)]({'length':this['ny']});for(let _0x7908ad=0x0;_0x7908ad<this['ny'];_0x7908ad++){_0x151fb2[_0x7908ad]=new a4_0x12523f(this['minLat'])[_0x59ddcf(0x1d3)](new a4_0x12523f(_0x7908ad)['times'](this['gjLat']))[_0x59ddcf(0x192)]();}const _0x3dc9e9=Array[_0x59ddcf(0x1a3)]({'length':this['nx']*this['ny']});for(let _0x5037ac=0x0;_0x5037ac<this[_0x59ddcf(0x184)][_0x59ddcf(0x1bd)];_0x5037ac++){const _0x4af3f8=Math[_0x59ddcf(0x1c5)](_0x5037ac/this['nx']),_0x507dbd=_0x5037ac%this['nx'],_0x2f2aca=_0x534d0d[_0x507dbd],_0x2e963c=_0x151fb2[_0x4af3f8],_0x717cfa=this['values'][_0x5037ac];_0x2e963c&&_0x2f2aca&&(_0x3dc9e9[_0x5037ac]={'lng':_0x2f2aca,'lat':_0x2e963c,'val':_0x717cfa});}return _0x3dc9e9;}['getIsoBandsFastByMask'](_0x53f9b4){const _0x186716=a4_0x1418ba;if(this[_0x186716(0x184)][_0x186716(0x1bd)]===0x0)return{'type':'FeatureCollection','features':[]};const _0x569297=_0x53f9b4&&_0x53f9b4[_0x186716(0x1bd)]?_0x53f9b4:this['getBreaks']();if(!_0x569297[_0x186716(0x1bd)])return{'type':_0x186716(0x1a6),'features':[]};const _0x1ee055=this[_0x186716(0x1b6)],_0x389249=this[_0x186716(0x18f)],_0x664531=this[_0x186716(0x1de)],_0x8c9ae5=this[_0x186716(0x1cf)],_0x1d20d2=_0x17cd8b=>{const _0x1c7a3b=_0x186716;let _0x1939f4=0x0;for(let _0x3914d1=0x0,_0x312a0c=_0x17cd8b[_0x1c7a3b(0x1bd)];_0x3914d1<_0x312a0c;_0x3914d1++){const _0x442928=_0x17cd8b[_0x3914d1],_0x225d8e=_0x17cd8b[(_0x3914d1+0x1)%_0x312a0c];if(!_0x442928||!_0x225d8e)continue;_0x1939f4+=_0x442928[0x0]*_0x225d8e[0x1]-_0x225d8e[0x0]*_0x442928[0x1];}return _0x1939f4/0x2;},_0x200cf2=(_0xb67bff,_0x853fc4)=>{const _0x5315dd=_0x186716;if(!_0xb67bff)return![];const _0x5737d8=_0xb67bff[0x0],_0x55e54f=_0xb67bff[0x1];let _0x2fa7c4=![];for(let _0x25bab9=0x0,_0x2d2d94=_0x853fc4[_0x5315dd(0x1bd)]-0x1;_0x25bab9<_0x853fc4[_0x5315dd(0x1bd)];_0x2d2d94=_0x25bab9++){const _0x3a97fe=_0x853fc4[_0x25bab9][0x0],_0xbfe3cd=_0x853fc4[_0x25bab9][0x1],_0x5e9fd1=_0x853fc4[_0x2d2d94][0x0],_0x486f91=_0x853fc4[_0x2d2d94][0x1],_0xe46c84=_0xbfe3cd>_0x55e54f!==_0x486f91>_0x55e54f&&_0x5737d8<(_0x5e9fd1-_0x3a97fe)*(_0x55e54f-_0xbfe3cd)/(_0x486f91-_0xbfe3cd)+_0x3a97fe;if(_0xe46c84)_0x2fa7c4=!_0x2fa7c4;}return _0x2fa7c4;},_0x578b41=_0x339d20=>{const _0x564554=_0x186716,_0x229229=[];let _0xadb0=null,_0x4b42a2=null;for(let _0x51062d=0x0;_0x51062d<_0x339d20[_0x564554(0x1bd)];_0x51062d++){const _0x3faf0a=_0x339d20[_0x51062d];if(!_0x3faf0a)continue;const _0x56c998=_0x3faf0a[0x0],_0x18cc7e=_0x3faf0a[0x1];if(_0x56c998==null||_0x18cc7e==null||Number['isNaN'](_0x56c998)||Number[_0x564554(0x193)](_0x18cc7e))continue;const _0x10510d=_0x1ee055+_0x56c998*_0x664531,_0x509f41=_0x389249+_0x18cc7e*_0x8c9ae5;if(_0xadb0!==null&&_0x4b42a2!==null&&_0xadb0===_0x10510d&&_0x4b42a2===_0x509f41)continue;_0x229229[_0x564554(0x1e7)]([_0x10510d,_0x509f41]),_0xadb0=_0x10510d,_0x4b42a2=_0x509f41;}if(!_0x229229[_0x564554(0x1bd)])return _0x229229;const _0x45fc90=_0x229229[0x0],_0x45ba69=_0x229229[_0x229229[_0x564554(0x1bd)]-0x1];if(_0x45fc90[0x0]!==_0x45ba69[0x0]||_0x45fc90[0x1]!==_0x45ba69[0x1])_0x229229['push']([_0x45fc90[0x0],_0x45fc90[0x1]]);return _0x229229;},_0x43948b=[],_0x52d5c7=_0x569297['length']-0x1;for(let _0x19e59d=0x0;_0x19e59d<_0x569297[_0x186716(0x1bd)];_0x19e59d++){const _0x32b00f=_0x569297[_0x19e59d],_0x3dc676=_0x19e59d<_0x52d5c7?_0x569297[_0x19e59d+0x1]:Infinity,_0xf4b776=new Array(this[_0x186716(0x184)][_0x186716(0x1bd)]);let _0x29e423=![];for(let _0x25e391=0x0;_0x25e391<this['values'][_0x186716(0x1bd)];_0x25e391++){const _0x4a11b8=this['values'][_0x25e391],_0x54983b=_0x4a11b8!=null&&_0x4a11b8>=_0x32b00f&&_0x4a11b8<_0x3dc676?0x1:0x0;_0xf4b776[_0x25e391]=_0x54983b;if(_0x54983b)_0x29e423=!![];}if(!_0x29e423)continue;const _0x2d5889=contours()['size']([this['nx'],this['ny']])[_0x186716(0x1b3)]([0.5]),_0x14e331=_0x2d5889[_0x186716(0x19e)]?_0x2d5889[_0x186716(0x19e)](_0xf4b776):_0x2d5889(_0xf4b776);if(!_0x14e331||!_0x14e331[_0x186716(0x1bd)])continue;for(const _0x162e18 of _0x14e331){const _0x6dc807=_0x162e18?.[_0x186716(0x18a)];if(!_0x6dc807)continue;for(const _0x5c6a32 of _0x6dc807){let _0x2a553f=[];if(Array[_0x186716(0x1ac)](_0x5c6a32)&&_0x5c6a32['length']>0x0&&typeof _0x5c6a32[0x0][0x0]===_0x186716(0x1d6))_0x2a553f=[_0x5c6a32];else{if(Array[_0x186716(0x1ac)](_0x5c6a32))_0x2a553f=_0x5c6a32;else continue;}const _0x4215b9=_0x2a553f[_0x186716(0x1db)](_0x2dea64=>({'ring':_0x2dea64,'area':Math[_0x186716(0x1e6)](_0x1d20d2(_0x2dea64))}))[_0x186716(0x198)]((_0x49a23f,_0x48c0d0)=>_0x48c0d0['area']-_0x49a23f[_0x186716(0x18e)]),_0x13ea09=new Array(_0x4215b9[_0x186716(0x1bd)])[_0x186716(0x1a7)](![]);for(let _0x30bb6a=0x0;_0x30bb6a<_0x4215b9[_0x186716(0x1bd)];_0x30bb6a++){if(_0x13ea09[_0x30bb6a])continue;const _0x562ed0=_0x4215b9[_0x30bb6a][_0x186716(0x1a2)];_0x13ea09[_0x30bb6a]=!![];const _0x441bb1=[];for(let _0x38ca99=0x0;_0x38ca99<_0x4215b9['length'];_0x38ca99++){if(_0x13ea09[_0x38ca99])continue;const _0x2d4179=_0x4215b9[_0x38ca99][_0x186716(0x1a2)],_0x5c1248=_0x2d4179[0x0];_0x5c1248&&_0x200cf2(_0x5c1248,_0x562ed0)&&(_0x441bb1['push'](_0x2d4179),_0x13ea09[_0x38ca99]=!![]);}const _0x140339=_0x578b41(_0x562ed0);if(_0x140339[_0x186716(0x1bd)]<0x4)continue;const _0x14d43e=[];for(const _0x172bc6 of _0x441bb1){const _0x493f6a=_0x578b41(_0x172bc6);if(_0x493f6a[_0x186716(0x1bd)]>=0x4)_0x14d43e[_0x186716(0x1e7)](_0x493f6a);}_0x43948b[_0x186716(0x1e7)]({'type':_0x186716(0x1e0),'properties':{'z':_0x32b00f},'geometry':{'type':_0x186716(0x1cb),'coordinates':[_0x140339,..._0x14d43e]}});}}}}return _0x43948b[_0x186716(0x198)]((_0x4895be,_0x1aefe5)=>Number(_0x4895be[_0x186716(0x185)]?.['z']??0x0)-Number(_0x1aefe5[_0x186716(0x185)]?.['z']??0x0)),{'type':_0x186716(0x1a6),'features':_0x43948b};}[a4_0x1418ba(0x19c)](_0x1c409c){const _0x4ad1ae=a4_0x1418ba;if(this['nx']<=0x0||this['ny']<=0x0||this['gjLng']===0x0||this[_0x4ad1ae(0x1cf)]===0x0)return null;const {canvas:_0x12764e,ctx:_0x487a63,width:_0x2276c8,height:_0xf2a28f}=this[_0x4ad1ae(0x1a0)](_0x1c409c);if(!_0x487a63)return null;const _0x4adabf=_0x2276c8/this['nx'],_0x711f4b=_0xf2a28f/this['ny'];_0x487a63[_0x4ad1ae(0x186)](),_0x487a63['strokeStyle']=_0x1c409c?.[_0x4ad1ae(0x1cc)]||_0x4ad1ae(0x1b7),_0x487a63[_0x4ad1ae(0x1da)]=_0x1c409c?.['lineWidth']||0x1;for(let _0x217052=0x0;_0x217052<=this['nx'];_0x217052++){_0x487a63[_0x4ad1ae(0x19d)](_0x4adabf*_0x217052,0x0),_0x487a63[_0x4ad1ae(0x188)](_0x4adabf*_0x217052,_0xf2a28f);}for(let _0x51382e=0x0;_0x51382e<=this['ny'];_0x51382e++){_0x487a63[_0x4ad1ae(0x19d)](0x0,_0x711f4b*_0x51382e),_0x487a63['lineTo'](_0x2276c8,_0x711f4b*_0x51382e);}return _0x487a63[_0x4ad1ae(0x1bb)](),_0x487a63[_0x4ad1ae(0x1b5)](),_0x12764e;}[a4_0x1418ba(0x1d8)](_0x4ce9c6,_0x156e50,_0x3d779d){const _0x49242c=a4_0x1418ba;if(this['nx']<=0x0||this['ny']<=0x0||this[_0x49242c(0x1de)]===0x0||this['gjLat']===0x0)return null;const _0x2f6bd4=_0x4ce9c6&&_0x4ce9c6[_0x49242c(0x1bd)]?_0x4ce9c6:this['getBreaks'](),{canvas:_0x84f689,ctx:_0x3497d4,width:_0x2ed934,height:_0x2a4fe7}=this[_0x49242c(0x1a0)](_0x3d779d);if(!_0x3497d4)return null;const _0x473d60=_0x2ed934/this['nx'],_0x366448=_0x2a4fe7/this['ny'],_0x511793=_0x47739d=>{const _0x2d431c=_0x49242c;if(_0x47739d==null||Number['isNaN'](_0x47739d))return _0x2d431c(0x1c8);for(let _0x5493e6=0x0;_0x5493e6<_0x2f6bd4[_0x2d431c(0x1bd)];_0x5493e6++){const _0x3f78c5=_0x2f6bd4[_0x5493e6],_0x9256aa=_0x5493e6<_0x2f6bd4['length']-0x1?_0x2f6bd4[_0x5493e6+0x1]:Infinity;if(_0x47739d>=_0x3f78c5&&_0x47739d<_0x9256aa){const _0x4f0f10=_0x156e50[_0x5493e6];if(typeof _0x4f0f10===_0x2d431c(0x1b0))return _0x4f0f10;return _0x2d431c(0x1a8)+_0x4f0f10[0x0]+','+_0x4f0f10[0x1]+','+_0x4f0f10[0x2]+','+(_0x4f0f10[0x3]||_0x4f0f10[0x3]===0x0?_0x4f0f10[0x3]:0x1)+')';}}return _0x2d431c(0x1c8);};for(let _0x4e683c=0x0;_0x4e683c<this['ny'];_0x4e683c++){for(let _0x314375=0x0;_0x314375<this['nx'];_0x314375++){const _0x217f52=_0x4e683c*this['nx']+_0x314375,_0x465909=this['values'][_0x217f52],_0x44725b=_0x511793(_0x465909),_0x419b62=_0x314375*_0x473d60,_0x3394f8=_0x2a4fe7-(_0x4e683c+0x1)*_0x366448;_0x3497d4['fillStyle']=_0x44725b,_0x3497d4['fillRect'](_0x419b62,_0x3394f8,_0x473d60,_0x366448);}}if(!_0x3d779d?.[_0x49242c(0x1cc)]&&!_0x3d779d?.[_0x49242c(0x1da)]||_0x3d779d?.['lineWidth']===0x0)return _0x84f689;const _0x5b6446=this[_0x49242c(0x19c)](_0x3d779d);return _0x5b6446&&_0x3497d4[_0x49242c(0x18c)](_0x5b6446,0x0,0x0,_0x2ed934,_0x2a4fe7),_0x84f689;}[a4_0x1418ba(0x1cd)](_0x27dfc7,_0x47aaab,_0x153b64,_0x5c16ea){const _0x3e0250=a4_0x1418ba,_0x4c8b6e=this[_0x3e0250(0x1d8)](_0x27dfc7,_0x47aaab,_0x5c16ea);if(!_0x4c8b6e)return null;const {canvas:_0x2b6357,ctx:_0x5bab32,width:_0x37b65d,height:_0x20879c}=this[_0x3e0250(0x1a0)](_0x5c16ea);if(!_0x5bab32)return null;const _0x4d631e=[];return _0x153b64[_0x3e0250(0x1b8)][_0x3e0250(0x1db)](_0x3f20dd=>{const _0x13fe55=_0x3e0250,_0x303055=_0x3f20dd['geometry'];if(_0x303055['type']===_0x13fe55(0x1cb))_0x303055['coordinates'][_0x13fe55(0x1db)](_0x31f7c0=>{const _0x32f1e0=_0x13fe55,_0x47f16b=[];_0x31f7c0['map'](_0x5a3d3b=>{_0x47f16b['push']([_0x5a3d3b[0x0],_0x5a3d3b[0x1]]);}),_0x4d631e[_0x32f1e0(0x1e7)](_0x47f16b);});else _0x303055[_0x13fe55(0x1d9)]===_0x13fe55(0x189)&&_0x303055['coordinates']['map'](_0x400799=>{const _0x44306c=_0x13fe55;_0x400799[_0x44306c(0x1db)](_0x17b5b9=>{const _0x45c383=_0x44306c,_0x2ff855=[];_0x17b5b9[_0x45c383(0x1db)](_0x4b8edc=>{const _0x441b25=_0x45c383;_0x2ff855[_0x441b25(0x1e7)]([_0x4b8edc[0x0],_0x4b8edc[0x1]]);}),_0x4d631e[_0x45c383(0x1e7)](_0x2ff855);});});}),_0x5bab32[_0x3e0250(0x1a5)](),_0x5bab32['beginPath'](),_0x4d631e[_0x3e0250(0x1db)](_0x31b744=>{const _0x4e2466=_0x3e0250;_0x31b744[_0x4e2466(0x180)]((_0x240245,_0x1b8915)=>{const _0x50d857=_0x4e2466,_0x284a94=_0x240245[0x0],_0x4e37d4=_0x240245[0x1],_0x3d19ce=(_0x284a94-this[_0x50d857(0x1b6)])/(this['nx']*this[_0x50d857(0x1de)])*_0x37b65d,_0x27ce2d=_0x20879c-(_0x4e37d4-this['minLat'])/(this['ny']*this[_0x50d857(0x1cf)])*_0x20879c;_0x1b8915===0x0?_0x5bab32[_0x50d857(0x19d)](_0x3d19ce,_0x27ce2d):_0x5bab32[_0x50d857(0x188)](_0x3d19ce,_0x27ce2d);}),_0x5bab32[_0x4e2466(0x1b5)]();}),_0x5bab32[_0x3e0250(0x1ba)](),_0x5bab32['drawImage'](_0x4c8b6e,0x0,0x0,_0x37b65d,_0x20879c),_0x5bab32[_0x3e0250(0x1dd)](),_0x2b6357;}['updateGridCanvas'](_0x1f1c26,_0x36282a){const _0x3aabb7=a4_0x1418ba,_0x247239=[];_0x1f1c26[_0x3aabb7(0x1db)](_0x4cd905=>{const _0x3e45bc=_0x3aabb7;_0x247239[_0x3e45bc(0x1e7)]([_0x4cd905[_0x3e45bc(0x1e3)],_0x4cd905[_0x3e45bc(0x1e1)]]);});_0x247239[_0x3aabb7(0x1bd)]>0x3&&_0x1f1c26[_0x3aabb7(0x1bd)]>0x3&&_0x247239[_0x3aabb7(0x1e7)]([_0x1f1c26[0x0][_0x3aabb7(0x1e3)],_0x1f1c26[0x0][_0x3aabb7(0x1e1)]]);const _0x1b40fc=polygon([_0x247239]),_0x4ec734=[],_0x10c96c=this['getJsonData']();return _0x10c96c[_0x3aabb7(0x1db)](_0x5b3ceb=>{const _0x2b5af5=_0x3aabb7,_0x58002d=point([_0x5b3ceb[_0x2b5af5(0x1e3)],_0x5b3ceb[_0x2b5af5(0x1e1)]]);booleanPointInPolygon(_0x58002d,_0x1b40fc)&&(_0x4ec734['push']({'lat':_0x5b3ceb[_0x2b5af5(0x1e1)],'lng':_0x5b3ceb['lng']}),_0x5b3ceb['val']=_0x36282a);}),this[_0x3aabb7(0x184)]=_0x10c96c['map'](_0x3dca68=>_0x3dca68[_0x3aabb7(0x1a9)]),_0x4ec734;}[a4_0x1418ba(0x1c2)](){const _0x2b5120=a4_0x1418ba;let _0x395754=-Infinity,_0x172edf=Infinity;for(let _0x5650a2=0x0;_0x5650a2<this[_0x2b5120(0x184)][_0x2b5120(0x1bd)];_0x5650a2++){const _0x5d543b=this[_0x2b5120(0x184)][_0x5650a2];if(_0x5d543b&&_0x5d543b>_0x395754)_0x395754=_0x5d543b;if(_0x5d543b&&_0x5d543b<_0x172edf)_0x172edf=_0x5d543b;}this['minVal']=_0x172edf,this[_0x2b5120(0x1c7)]=_0x395754;}[a4_0x1418ba(0x1aa)]=(_0x2bdda2,_0x4c8018)=>{const _0x25352a=a4_0x1418ba,_0xdbfa17=[],_0x3006d3=Math[_0x25352a(0x1dc)](0x1,Math[_0x25352a(0x19b)](_0x2bdda2[_0x25352a(0x1bd)]/_0x4c8018));for(let _0x4f07b3=0x0;_0x4f07b3<_0x4c8018;_0x4f07b3++){_0xdbfa17[_0x25352a(0x1e7)](_0x2bdda2[_0x25352a(0x1a1)](_0x4f07b3*_0x3006d3,(_0x4f07b3+0x1)*_0x3006d3));}return _0xdbfa17;};[a4_0x1418ba(0x18b)](){const _0x51fb90=a4_0x1418ba,_0x223c72=[];if(this[_0x51fb90(0x1d0)]===Infinity||this[_0x51fb90(0x1c7)]===-Infinity)return _0x223c72;for(let _0x28735d=this[_0x51fb90(0x1d0)]-0x1;_0x28735d<=this[_0x51fb90(0x1c7)]+0x1;_0x28735d++){_0x223c72[_0x51fb90(0x1e7)](_0x28735d);}return _0x223c72;}[a4_0x1418ba(0x1e4)]=_0x26f225=>{const _0x5e4745=a4_0x1418ba;if(_0x26f225[_0x5e4745(0x1bd)]===0x0)_0x26f225=this[_0x5e4745(0x18b)]();const _0x3b3d3b=[];for(let _0x176860=0x0;_0x176860<_0x26f225[_0x5e4745(0x1bd)];_0x176860++){const _0x2a0cf7=_0x26f225[_0x176860],_0x2e8b78=_0x176860<_0x26f225[_0x5e4745(0x1bd)]-0x1?_0x26f225[_0x176860+0x1]:Infinity;if(_0x2a0cf7==null||_0x2e8b78==null)continue;if(_0x2a0cf7<this[_0x5e4745(0x1d0)]&&_0x2e8b78<this[_0x5e4745(0x1d0)])continue;if(_0x2a0cf7>this[_0x5e4745(0x1c7)]&&_0x2e8b78>this[_0x5e4745(0x1c7)])continue;_0x3b3d3b[_0x5e4745(0x1e7)](_0x2a0cf7);}const _0x20eec6=contours()[_0x5e4745(0x1c6)]([this['nx'],this['ny']])[_0x5e4745(0x1b3)](_0x3b3d3b);return _0x20eec6(this['values']);};[a4_0x1418ba(0x1a0)]=_0x55dc51=>{const _0x41d46f=a4_0x1418ba,_0x28e76c=Math[_0x41d46f(0x1c5)]((_0x55dc51?.['width']||Math['round'](this['nx']/0x400)*0x400*0x2)/this['nx'])*this['nx'],_0x1c5400=_0x28e76c/this['nx']*this['ny'],_0x1ecc8d=_0x55dc51?.[_0x41d46f(0x1e5)]||(typeof devicePixelRatio!==_0x41d46f(0x1b1)?devicePixelRatio:0x1),_0xa60cd7=document[_0x41d46f(0x1bc)](_0x41d46f(0x1ca)),_0x1ef63d=_0xa60cd7['getContext']('2d');return _0xa60cd7[_0x41d46f(0x1ce)]=_0x28e76c*_0x1ecc8d,_0xa60cd7['height']=_0x1c5400*_0x1ecc8d,_0x1ef63d['scale'](_0x1ecc8d,_0x1ecc8d),{'canvas':_0xa60cd7,'ctx':_0x1ef63d,'width':_0x28e76c,'height':_0x1c5400};};}export default readFileM4;
package/dist/types.d.ts CHANGED
@@ -48,27 +48,6 @@ export interface IReadFileM4 {
48
48
  * @param useCpuCount 可选,使用的 CPU 核心数
49
49
  */
50
50
  clipDataByJson: (iosBands: FeatureCollection, json: FeatureCollection, intersectWorkerUrl: string, useCpuCount?: number) => Promise<FeatureCollection>;
51
- /**
52
- * 使用 Worker 多线程获取等值带
53
- * @param breaks 等值带分级
54
- * @param bandsWorkerUrl 等值带计算 Worker 脚本 URL
55
- * @param useCpuCount 可选,使用的 CPU 核心数
56
- * @deprecated 即将弃用, 请使用 `getIsoBandsFast`
57
- */
58
- getIsoBandsFastByWorker: (breaks: number[], bandsWorkerUrl: string, useCpuCount?: number) => Promise<FeatureCollection>;
59
- /**
60
- * 清理等值带缓存 (缓存只在 getIsoBandsByLayerBreak 方法中使用)
61
- * @deprecated 准备弃用, 分层使用canvas来做
62
- */
63
- clearMaskCache: () => void;
64
- /**
65
- * 获取等值带 (支持按层获取或全部层合并获取)
66
- * - 单层因为数据丢失可能不准确
67
- * @param breaks
68
- * @param layerLower
69
- * @deprecated 准备弃用, 分层使用canvas来做
70
- */
71
- getIsoBandsByLayerBreak: (breaks?: number[], layerLower?: number) => FeatureCollection;
72
51
  /**
73
52
  * 获取 JSON 数据数组
74
53
  * @return JSONData[]
package/package.json CHANGED
@@ -1,69 +1,77 @@
1
- {
2
- "name": "m4-w-fast",
3
- "version": "1.0.12",
4
- "description": "",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs",
12
- "default": "./dist/index.mjs",
13
- "types": "./dist/index.d.ts"
14
- },
15
- "./isoBands.worker.js": "./dist/isoBands.worker.js",
16
- "./intersect.worker.js": "./dist/intersect.worker.js"
17
- },
18
- "scripts": {
19
- "build:types": "tsc -p tsconfig.build.json",
20
- "obfuscate": "javascript-obfuscator dist --output dist",
21
- "build": "npm run build:types && npm run build:rollup && npm run build:browser && npm run obfuscate",
22
- "prepublishOnly": "npm run build",
23
- "build:rollup": "rollup -c",
24
- "build:browser": "rollup -c rollup.config.browser.js"
25
- },
26
- "browser": "dist/m4-w-fast.umd.js",
27
- "author": "wangrl",
28
- "license": "ISC",
29
- "type": "module",
30
- "files": [
31
- "dist",
32
- "package.json",
33
- "README.md"
34
- ],
35
- "keywords": [
36
- "m4",
37
- "turf"
38
- ],
39
- "publishConfig": {
40
- "registry": "https://registry.npmjs.org/"
41
- },
42
- "peerDependencies": {
43
- "@turf/turf": "^6.5.0",
44
- "d3-contour": "^4"
45
- },
46
- "dependencies": {
47
- "@turf/area": "^7.2.0",
48
- "@turf/boolean-point-in-polygon": "^7.3.1",
49
- "@turf/isobands": "^7.2.0",
50
- "@turf/isolines": "^7.2.0",
51
- "@turf/turf": "^6.5.0",
52
- "@types/leaflet": "^1.9.21",
53
- "d3-contour": "^4",
54
- "decimal.js": "^10.6.0"
55
- },
56
- "devDependencies": {
57
- "@rollup/plugin-commonjs": "^29.0.0",
58
- "@rollup/plugin-node-resolve": "^16.0.3",
59
- "@rollup/plugin-typescript": "^12.3.0",
60
- "@tsconfig/node20": "^20.1.2",
61
- "@types/big.js": "^6.2.2",
62
- "@types/d3-contour": "^3.0.6",
63
- "@types/geojson": "latest",
64
- "esbuild": "^0.25.11",
65
- "javascript-obfuscator": "^4.1.1",
66
- "rollup": "^4.52.5",
67
- "typescript": "latest"
68
- }
69
- }
1
+ {
2
+ "name": "m4-w-fast",
3
+ "version": "1.0.13",
4
+ "description": "",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs",
12
+ "default": "./dist/index.mjs",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "./isoBands.worker.js": "./dist/isoBands.worker.js",
16
+ "./intersect.worker.js": "./dist/intersect.worker.js"
17
+ },
18
+ "scripts": {
19
+ "build:types": "tsc -p tsconfig.build.json",
20
+ "obfuscate": "javascript-obfuscator dist --output dist",
21
+ "build": "npm run build:types && npm run build:rollup && npm run build:browser && npm run obfuscate",
22
+ "prepublishOnly": "npm run build",
23
+ "build:rollup": "rollup -c",
24
+ "build:browser": "rollup -c rollup.config.browser.js"
25
+ },
26
+ "browser": "dist/m4-w-fast.umd.js",
27
+ "author": "wangrl",
28
+ "license": "ISC",
29
+ "type": "module",
30
+ "files": [
31
+ "dist",
32
+ "package.json",
33
+ "README.md"
34
+ ],
35
+ "keywords": [
36
+ "m4",
37
+ "turf"
38
+ ],
39
+ "publishConfig": {
40
+ "registry": "https://registry.npmjs.org/"
41
+ },
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "https://github.com/priestqing/m4-w-fast"
45
+ },
46
+ "bugs": {
47
+ "url": "https://github.com/priestqing/m4-w-fast/issues"
48
+ },
49
+ "homepage": "https://github.com/priestqing/m4-w-fast#readme",
50
+ "peerDependencies": {
51
+ "@turf/turf": "^6.5.0",
52
+ "d3-contour": "^4"
53
+ },
54
+ "dependencies": {
55
+ "@turf/area": "^7.2.0",
56
+ "@turf/boolean-point-in-polygon": "^7.3.1",
57
+ "@turf/isobands": "^7.2.0",
58
+ "@turf/isolines": "^7.2.0",
59
+ "@turf/turf": "^6.5.0",
60
+ "@types/leaflet": "^1.9.21",
61
+ "d3-contour": "^4",
62
+ "decimal.js": "^10.6.0"
63
+ },
64
+ "devDependencies": {
65
+ "@rollup/plugin-commonjs": "^29.0.0",
66
+ "@rollup/plugin-node-resolve": "^16.0.3",
67
+ "@rollup/plugin-typescript": "^12.3.0",
68
+ "@tsconfig/node20": "^20.1.2",
69
+ "@types/big.js": "^6.2.2",
70
+ "@types/d3-contour": "^3.0.6",
71
+ "@types/geojson": "latest",
72
+ "esbuild": "^0.25.11",
73
+ "javascript-obfuscator": "^4.1.1",
74
+ "rollup": "^4.52.5",
75
+ "typescript": "latest"
76
+ }
77
+ }