m4-w-fast 1.0.2 → 1.0.4
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.
- package/README.md +57 -0
- package/dist/index.js +1 -9
- package/dist/intersect.worker.js +2 -2
- package/dist/isoBands.worker.js +1 -1
- package/dist/readFile.d.ts +126 -51
- package/dist/readFile.js +1 -1
- package/package.json +63 -63
package/dist/readFile.d.ts
CHANGED
|
@@ -1,81 +1,156 @@
|
|
|
1
|
-
import type { FeatureCollection, Polygon, MultiPolygon, GeoJsonProperties } from 'geojson';
|
|
2
|
-
export declare class
|
|
1
|
+
import type { Feature, FeatureCollection, Polygon, MultiPolygon, GeoJsonProperties } from 'geojson';
|
|
2
|
+
export declare class readFileM4 {
|
|
3
3
|
filePath: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
gjLat: number;
|
|
7
|
-
lngLineNum: number;
|
|
8
|
-
latLineNum: number;
|
|
4
|
+
nx: number;
|
|
5
|
+
ny: number;
|
|
9
6
|
minLng: number;
|
|
10
7
|
minLat: number;
|
|
11
|
-
|
|
8
|
+
gjLng: number;
|
|
9
|
+
gjLat: number;
|
|
10
|
+
values: number[];
|
|
12
11
|
maxVal: number;
|
|
13
12
|
minVal: number;
|
|
14
13
|
private _maskCacheKey;
|
|
15
14
|
private _maskCache;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
/**
|
|
16
|
+
* filePath 可选
|
|
17
|
+
* - filePath -> async start(config?: ReadConfig)
|
|
18
|
+
* - !filePath -> setParams(params: ParamsConfig, config?: ReadConfig)
|
|
19
|
+
* @param filePath
|
|
20
|
+
*/
|
|
21
|
+
constructor(filePath?: string);
|
|
22
|
+
/**
|
|
23
|
+
* 开始解析文件
|
|
24
|
+
* @param config
|
|
25
|
+
*/
|
|
26
|
+
start(config?: ReadConfig): Promise<"该时次未获取到文件" | "该时次文件数据异常" | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* 自定义数据, 使用他不需要接文件, 也不需要执行start(). 但是需要提供详细的数据
|
|
29
|
+
* @param params
|
|
30
|
+
* @param config
|
|
31
|
+
*/
|
|
32
|
+
setParams(params: ParamsConfig, config?: ReadConfig): void;
|
|
33
|
+
/**
|
|
34
|
+
* 获取等值带
|
|
27
35
|
* @param breaks
|
|
28
36
|
*/
|
|
29
|
-
getIsoBandsFast(breaks
|
|
37
|
+
getIsoBandsFast(breaks: number[]): {
|
|
38
|
+
type: string;
|
|
39
|
+
features: Feature<import("geojson").Geometry, GeoJsonProperties>[];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 提取分级对应的颜色
|
|
43
|
+
* @param z 当前分级
|
|
44
|
+
* @param level 分级数组
|
|
45
|
+
* @param color 分级颜色数组
|
|
46
|
+
*/
|
|
47
|
+
getColorFast(z: number | string, level: (number | string)[], color: (number[] | string)[]): string;
|
|
48
|
+
/**
|
|
49
|
+
* 裁剪数据
|
|
50
|
+
* @param iosBands 等值带数据
|
|
51
|
+
* @param json 裁剪范围数据
|
|
52
|
+
* @param intersectWorkerUrl 裁剪 Worker 脚本 URL
|
|
53
|
+
* @param useCpuCount 可选,使用的 CPU 核心数
|
|
54
|
+
*/
|
|
55
|
+
clipDataByJson(iosBands: FeatureCollection, json: FeatureCollection, intersectWorkerUrl: string, useCpuCount?: number): Promise<import("@turf/helpers").FeatureCollection<Polygon | MultiPolygon, GeoJsonProperties>>;
|
|
56
|
+
/**
|
|
57
|
+
* 使用 Worker 多线程获取等值带
|
|
58
|
+
* @param breaks 等值带分级
|
|
59
|
+
* @param bandsWorkerUrl 等值带计算 Worker 脚本 URL
|
|
60
|
+
* @param useCpuCount 可选,使用的 CPU 核心数
|
|
61
|
+
*/
|
|
62
|
+
getIsoBandsFastByWorker(breaks: number[], bandsWorkerUrl: string, useCpuCount?: number): Promise<FeatureCollection>;
|
|
63
|
+
/**
|
|
64
|
+
* 清理等值带缓存 (缓存只在 getIsoBandsByLayerBreak 方法中使用)
|
|
65
|
+
*/
|
|
30
66
|
clearMaskCache(): void;
|
|
31
67
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
68
|
+
* 获取等值带 (支持按层获取或全部层合并获取)
|
|
69
|
+
* - 单层因为数据丢失可能不准确
|
|
34
70
|
* @param breaks
|
|
35
71
|
* @param layerLower
|
|
36
72
|
*/
|
|
37
|
-
getIsoBandsByLayerBreak
|
|
73
|
+
getIsoBandsByLayerBreak(breaks?: number[], layerLower?: number): {
|
|
74
|
+
type: string;
|
|
75
|
+
features: Feature<import("geojson").Geometry, GeoJsonProperties>[];
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 获取 JSON 数据数组
|
|
79
|
+
* @return JSONData[]
|
|
80
|
+
*/
|
|
81
|
+
getJsonData(): JSONData[];
|
|
38
82
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
41
|
-
* @param level
|
|
42
|
-
* @param color
|
|
83
|
+
* 获取最大最小值
|
|
84
|
+
* @private
|
|
43
85
|
*/
|
|
44
|
-
|
|
86
|
+
private getMinMax;
|
|
87
|
+
/**
|
|
88
|
+
* 获取分级
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
private getBreaks;
|
|
92
|
+
/**
|
|
93
|
+
* 按面积排序
|
|
94
|
+
* @param fc
|
|
95
|
+
* @private
|
|
96
|
+
*/
|
|
97
|
+
private sortFeaturesByArea;
|
|
45
98
|
/**
|
|
46
99
|
* 数组分块
|
|
47
100
|
* @param arr
|
|
48
101
|
* @param parts
|
|
49
102
|
*/
|
|
50
103
|
private chunkArray;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 读取文件对数据的处理
|
|
107
|
+
*/
|
|
108
|
+
interface ReadConfig {
|
|
51
109
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @param iosBands
|
|
54
|
-
* @param json
|
|
55
|
-
* @param workerUrl
|
|
110
|
+
* 是否将温度从开尔文转换为摄氏度(如果数据确实是温度的话)
|
|
56
111
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
112
|
+
convertTemKtoC?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* 附加偏移量 (如果需要对数值进行调整)
|
|
115
|
+
*/
|
|
116
|
+
plusOffset?: number;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 设置数据参数
|
|
120
|
+
*/
|
|
121
|
+
interface ParamsConfig {
|
|
122
|
+
/**
|
|
123
|
+
* 数据值数组
|
|
124
|
+
*/
|
|
125
|
+
values: number[];
|
|
126
|
+
/**
|
|
127
|
+
* 栅格列数
|
|
128
|
+
*/
|
|
129
|
+
nx: number;
|
|
130
|
+
/**
|
|
131
|
+
* 栅格行数
|
|
132
|
+
*/
|
|
133
|
+
ny: number;
|
|
134
|
+
/**
|
|
135
|
+
* 最小经度
|
|
136
|
+
*/
|
|
137
|
+
minLng: number;
|
|
138
|
+
/**
|
|
139
|
+
* 最小纬度
|
|
140
|
+
*/
|
|
141
|
+
minLat: number;
|
|
142
|
+
/**
|
|
143
|
+
* 经度分辨率
|
|
144
|
+
*/
|
|
145
|
+
gjLng: number;
|
|
146
|
+
/**
|
|
147
|
+
* 纬度分辨率
|
|
148
|
+
*/
|
|
149
|
+
gjLat: number;
|
|
75
150
|
}
|
|
76
151
|
interface JSONData {
|
|
77
152
|
lat: number;
|
|
78
153
|
lng: number;
|
|
79
154
|
val: number;
|
|
80
155
|
}
|
|
81
|
-
export default
|
|
156
|
+
export default readFileM4;
|
package/dist/readFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x1d888f=a3_0x377c;(function(_0x54cbad,_0x47af9f){const _0x5ae985=a3_0x377c,_0x4ec90a=_0x54cbad();while(!![]){try{const _0x4703ab=parseInt(_0x5ae985(0xd0))/0x1*(-parseInt(_0x5ae985(0x9d))/0x2)+-parseInt(_0x5ae985(0x95))/0x3*(parseInt(_0x5ae985(0xa7))/0x4)+parseInt(_0x5ae985(0xd2))/0x5+-parseInt(_0x5ae985(0xe0))/0x6+-parseInt(_0x5ae985(0xe8))/0x7+-parseInt(_0x5ae985(0xc6))/0x8+parseInt(_0x5ae985(0xdf))/0x9;if(_0x4703ab===_0x47af9f)break;else _0x4ec90a['push'](_0x4ec90a['shift']());}catch(_0x38951c){_0x4ec90a['push'](_0x4ec90a['shift']());}}}(a3_0x289d,0x356db));function a3_0x377c(_0x4670a9,_0x2ef7ca){const _0x289d36=a3_0x289d();return a3_0x377c=function(_0x377c88,_0x3329e1){_0x377c88=_0x377c88-0x92;let _0x523266=_0x289d36[_0x377c88];return _0x523266;},a3_0x377c(_0x4670a9,_0x2ef7ca);}import{points as a3_0x3f2eb6,featureCollection as a3_0x503e6e}from'@turf/helpers';import a3_0x27c84a from'@turf/isolines';import a3_0x2ad98e from'@turf/isobands';import a3_0x16ae44 from'@turf/area';import a3_0x5e6a0f from'decimal.js';import{contours}from'd3-contour';function a3_0x289d(){const _0x1b016c=['area','_maskCacheKey','maxVal','getIsoColor','minLat','lat','Polygon','terminate','slice','text','getIsoBandsByLayerBreak','sortFeaturesByArea','val','latLineNum','data','isNaN','size','length','trim','ceil','2068120TEVtwC','coordinates','jsonMap','thresholds','undefined','getIsoBandsFastByWorker','lngLineNum','gjLng','onerror','json','98SreDJW','toNumber','1059275iLFwkx','minLng','fill','number','abs','__area','max','times','module','contours','rgba(','getIsoBandsFast','map','8920710gSsPZG','967746jmSpgf','error','getIsoBandsFastBase','start','split','chunkArray','minVal','ring','384454qUbcsw','features','join','FeatureCollection','sort','from','push','clipDataByJson','plus','hardwareConcurrency','6gjdHQA','filePath','get','string','gjLat','all','Feature','_maskCache','8260AQWmqx','flat','lng','getBreaks','properties','isArray','values','filter','forEach','set','209468hSKwfi','geometry','breaks','contour','该时次未获取到文件','onmessage','getGridPoints','min','该时次文件数据异常','getColorFast','postMessage'];a3_0x289d=function(){return _0x1b016c;};return a3_0x289d();}export class _readFileDiamond4{['filePath'];[a3_0x1d888f(0xcf)]=[];['gjLng']=0x0;[a3_0x1d888f(0x99)]=0x0;[a3_0x1d888f(0xcc)]=0x0;[a3_0x1d888f(0xbf)]=0x0;[a3_0x1d888f(0xd3)]=0x0;[a3_0x1d888f(0xb6)]=0x0;[a3_0x1d888f(0xc8)]=new Map();[a3_0x1d888f(0xb4)]=-Infinity;[a3_0x1d888f(0xe6)]=Infinity;[a3_0x1d888f(0xb3)]='';['_maskCache']=new Map();constructor(_0x378765){const _0x1f0d7d=a3_0x1d888f;this[_0x1f0d7d(0x96)]=_0x378765;}async[a3_0x1d888f(0xe3)](){const _0x5666c6=a3_0x1d888f,_0x4f37ae=await fetch(this[_0x5666c6(0x96)]);if(!_0x4f37ae['ok'])return _0x5666c6(0xab);const _0x2b4990=await _0x4f37ae[_0x5666c6(0xbb)](),_0xf893da=_0x2b4990[_0x5666c6(0xe4)]('\x0a');if(_0xf893da[_0x5666c6(0xc3)]<0x4)return _0x5666c6(0xaf);const _0x196a53=(_0xf893da[0x1]??'')[_0x5666c6(0xc4)]()[_0x5666c6(0xe4)](/\s+/);let _0x2725c6=0x2;while(_0x196a53['length']<0x13){_0x196a53[_0x5666c6(0xee)](...(_0xf893da[_0x2725c6]??'')['trim']()[_0x5666c6(0xe4)](/\s+/)),_0x2725c6++;}this['gjLng']=Number(_0x196a53[0x6]);const _0x57496f=Number(_0x196a53[0x8]),_0xeca14a=Number(_0x196a53[0xa]),_0x22bc5f=Number(_0x196a53[0xb]);this['lngLineNum']=Number(_0x196a53[0xc]),this['latLineNum']=Number(_0x196a53[0xd]),this[_0x5666c6(0xd3)]=_0x57496f,this[_0x5666c6(0xb6)]=_0xeca14a,this[_0x5666c6(0x99)]=Math['abs'](Number(_0x196a53[0x7]))*(_0xeca14a>_0x22bc5f?-0x1:0x1);const _0x3c9224=this['lngLineNum'],_0x58c1a4=this[_0x5666c6(0xbf)],_0x39e571=_0x3c9224*_0x58c1a4;if(_0x39e571===0x0)return;const _0x5efac6=Array['from']({'length':this[_0x5666c6(0xcc)]});for(let _0x544e0c=0x0;_0x544e0c<this[_0x5666c6(0xcc)];_0x544e0c++){_0x5efac6[_0x544e0c]=new a3_0x5e6a0f(_0x57496f)['plus'](new a3_0x5e6a0f(_0x544e0c)[_0x5666c6(0xd9)](this[_0x5666c6(0xcd)]))[_0x5666c6(0xd1)]();}const _0x5e678c=Array[_0x5666c6(0xed)]({'length':this['latLineNum']});for(let _0x316b68=0x0;_0x316b68<this[_0x5666c6(0xbf)];_0x316b68++){_0x5e678c[_0x316b68]=new a3_0x5e6a0f(_0xeca14a)['plus'](new a3_0x5e6a0f(_0x316b68)[_0x5666c6(0xd9)](this[_0x5666c6(0x99)]))[_0x5666c6(0xd1)]();}this[_0x5666c6(0xcf)]=Array[_0x5666c6(0xed)]({'length':this['lngLineNum']*this[_0x5666c6(0xbf)]});let _0x248bc4=0x0;for(let _0x2ac47a=_0x2725c6;_0x2ac47a<_0xf893da['length']&&_0x248bc4<_0x39e571;_0x2ac47a++){const _0x4a5dd6=_0xf893da[_0x2ac47a]??'',_0x31181c=_0x4a5dd6[_0x5666c6(0xc4)]()['split'](/\s+/);if(!_0x31181c)continue;for(let _0x345df0=0x0;_0x345df0<_0x31181c[_0x5666c6(0xc3)];_0x345df0++){const _0x12079e=Number(_0x31181c[_0x345df0]);this[_0x5666c6(0xb4)]=Math[_0x5666c6(0xd8)](this[_0x5666c6(0xb4)],_0x12079e),this[_0x5666c6(0xe6)]=Math[_0x5666c6(0xae)](this[_0x5666c6(0xe6)],_0x12079e);const _0x212d3d=Math['floor'](_0x248bc4/_0x3c9224),_0x5b450d=_0x248bc4%_0x3c9224,_0x3ab563=_0x5efac6[_0x5b450d],_0x1bc71f=_0x5e678c[_0x212d3d];_0x1bc71f&&_0x3ab563&&(this['json'][_0x248bc4]={'lat':_0x1bc71f,'lng':_0x3ab563,'val':_0x12079e}),_0x248bc4++;}}this[_0x5666c6(0xcf)]=this[_0x5666c6(0xcf)][_0x5666c6(0xa4)](_0x35e34a=>_0x35e34a!==undefined);}['getJson'](){const _0x581a46=a3_0x1d888f;return this[_0x581a46(0xcf)];}['setJson'](_0x1a32a9){const _0x58c31a=a3_0x1d888f;this[_0x58c31a(0xcf)]=_0x1a32a9,this[_0x58c31a(0xc8)]=new Map(),this['json'][_0x58c31a(0xa5)](_0x491bd9=>{const _0x131fbe=_0x58c31a;this[_0x131fbe(0xc8)][_0x131fbe(0xa6)](_0x491bd9['lng']+'-'+_0x491bd9[_0x131fbe(0xb7)],_0x491bd9[_0x131fbe(0xbe)]);});}[a3_0x1d888f(0xa0)](){const _0xc18861=a3_0x1d888f,_0x3553d5=Math[_0xc18861(0xd8)](...this[_0xc18861(0xcf)][_0xc18861(0xde)](_0x3c3ee2=>_0x3c3ee2['val'])),_0x5127a7=Math[_0xc18861(0xae)](...this[_0xc18861(0xcf)][_0xc18861(0xde)](_0x17a5a9=>_0x17a5a9['val'])),_0x58baa0=[];for(let _0x5f34e3=_0x5127a7-0x1;_0x5f34e3<_0x3553d5+0x1;_0x5f34e3++){_0x58baa0['push'](_0x5f34e3);}return _0x58baa0;}[a3_0x1d888f(0xad)](){const _0x13473a=a3_0x1d888f,_0x186957=this[_0x13473a(0xcf)][_0x13473a(0xde)](_0x49d986=>[_0x49d986[_0x13473a(0x9f)],_0x49d986[_0x13473a(0xb7)]]),_0x423887=a3_0x3f2eb6(_0x186957),_0x402adc=this['jsonMap'];return _0x423887['features'][_0x13473a(0xa5)](_0x386081=>{const _0x24a093=_0x13473a;_0x386081[_0x24a093(0xa1)]={'z':_0x402adc[_0x24a093(0x97)](_0x386081[_0x24a093(0xa8)][_0x24a093(0xc7)][0x0]+'-'+_0x386081['geometry']['coordinates'][0x1])||0x0};}),_0x423887;}['getIsoLines'](_0x4ca60a=[]){const _0x58b3f2=a3_0x1d888f;_0x4ca60a[_0x58b3f2(0xc3)]===0x0&&(_0x4ca60a=this[_0x58b3f2(0xa0)]());const _0x22d2c6=this['getGridPoints']();return a3_0x27c84a(_0x22d2c6,_0x4ca60a,{'zProperty':'z'});}['getIsoBands'](_0x2fd2b5=[]){const _0x1f6481=a3_0x1d888f;_0x2fd2b5[_0x1f6481(0xc3)]===0x0&&(_0x2fd2b5=this[_0x1f6481(0xa0)]());const _0x3901a0=this[_0x1f6481(0xad)]();return a3_0x2ad98e(_0x3901a0,_0x2fd2b5,{'zProperty':'z'});}[a3_0x1d888f(0xb5)](_0x5e1ea5,_0x3a2a6d,_0x317433){const _0x746306=a3_0x1d888f;let _0x1b0743='rgba(255,255,255,0)';for(let _0x163885=0x0;_0x163885<_0x3a2a6d[_0x746306(0xc3)]-0x1;_0x163885++){_0x163885<_0x3a2a6d['length']-0x1&&(_0x3a2a6d[_0x163885]+'-'+_0x3a2a6d[_0x163885+0x1]===_0x5e1ea5&&(typeof _0x317433[_0x163885]==_0x746306(0x98)?_0x1b0743=_0x317433[_0x163885]:_0x1b0743='rgba('+_0x317433[_0x163885][0x0]+','+_0x317433[_0x163885][0x1]+','+_0x317433[_0x163885][0x2]+','+(_0x317433[_0x163885][0x3]||_0x317433[_0x163885][0x3]===0x0?_0x317433[_0x163885][0x3]:0x1)+')'));}return _0x1b0743;}[a3_0x1d888f(0xdd)](_0x1b47b1=[]){const _0x1a6a2a=a3_0x1d888f,_0x3dfb10=this[_0x1a6a2a(0xe2)](_0x1b47b1);let _0x507fc3=[];const {values:_0x120991,nx:_0x28329a,ny:_0x3e1536}=_0x3dfb10;_0x1b47b1=_0x3dfb10['breaks'];if(!_0x120991)return{'type':'FeatureCollection','features':[]};const _0x141250=contours()[_0x1a6a2a(0xc2)]([_0x28329a,_0x3e1536]);for(let _0x55fe82=0x0;_0x55fe82<_0x1b47b1['length'];_0x55fe82++){const _0x34f9f7=_0x1b47b1[_0x55fe82];if(_0x34f9f7<this[_0x1a6a2a(0xe6)]||_0x34f9f7>this[_0x1a6a2a(0xb4)])continue;const _0x1a1bb1=_0x141250[_0x1a6a2a(0xaa)](_0x120991,_0x34f9f7);if(!_0x1a1bb1||!_0x1a1bb1[_0x1a6a2a(0xc7)])continue;for(const _0x46112d of _0x1a1bb1[_0x1a6a2a(0xc7)]){let _0x4f4493=[];if(Array[_0x1a6a2a(0xa2)](_0x46112d)&&_0x46112d[_0x1a6a2a(0xc3)]>0x0&&Array[_0x1a6a2a(0xa2)](_0x46112d[0x0])&&typeof _0x46112d[0x0][0x0]===_0x1a6a2a(0xd5))_0x4f4493=[_0x46112d];else{if(Array[_0x1a6a2a(0xa2)](_0x46112d))_0x4f4493=_0x46112d;else continue;}for(const _0x371724 of _0x4f4493){const _0x16bdb7=_0x371724['map'](_0x20a3bc=>{const _0x67e30=_0x1a6a2a,_0x5d3151=_0x20a3bc[0x0],_0x404c69=_0x20a3bc[0x1];if(_0x5d3151==null||_0x404c69==null||Number[_0x67e30(0xc1)](_0x5d3151)||Number[_0x67e30(0xc1)](_0x404c69))return null;const _0x41ef28=new a3_0x5e6a0f(this['minLng'])[_0x67e30(0x93)](new a3_0x5e6a0f(_0x5d3151)[_0x67e30(0xd9)](this[_0x67e30(0xcd)]))['toNumber'](),_0x371fa7=new a3_0x5e6a0f(this[_0x67e30(0xb6)])['plus'](new a3_0x5e6a0f(_0x404c69)[_0x67e30(0xd9)](this[_0x67e30(0x99)]))[_0x67e30(0xd1)]();return[_0x41ef28,_0x371fa7];})[_0x1a6a2a(0xa4)](_0x29cdfa=>_0x29cdfa!==null),_0x2afb7b=_0x16bdb7[_0x1a6a2a(0xa4)]((_0x1193e6,_0x361dee,_0x5eda38)=>{if(_0x361dee===0x0)return!![];const _0x12f671=_0x5eda38[_0x361dee-0x1];return!(_0x1193e6[0x0]===_0x12f671[0x0]&&_0x1193e6[0x1]===_0x12f671[0x1]);});if(_0x2afb7b[_0x1a6a2a(0xc3)]<0x3)continue;const _0x5865ba=_0x2afb7b[0x0],_0x3624bd=_0x2afb7b[_0x2afb7b[_0x1a6a2a(0xc3)]-0x1];(_0x5865ba[0x0]!==_0x3624bd[0x0]||_0x5865ba[0x1]!==_0x3624bd[0x1])&&_0x2afb7b[_0x1a6a2a(0xee)]([_0x5865ba[0x0],_0x5865ba[0x1]]),_0x507fc3[_0x1a6a2a(0xee)]({'type':'Feature','properties':{'z':_0x34f9f7},'geometry':{'type':'Polygon','coordinates':[_0x2afb7b]}});}}}return _0x507fc3=this['sortFeaturesByArea'](_0x507fc3),{'type':_0x1a6a2a(0xeb),'features':_0x507fc3};}['clearMaskCache'](){const _0x598434=a3_0x1d888f;this[_0x598434(0x9c)]['clear']();}[a3_0x1d888f(0xbc)]=(_0x4ad07f=[],_0x4c23ba)=>{const _0x152bed=a3_0x1d888f;if(typeof _0x4c23ba!=='undefined'&&this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)){const _0x50c30b=this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)||[],_0x54706a=this[_0x152bed(0xbd)]?this[_0x152bed(0xbd)](_0x50c30b):_0x50c30b;return{'type':_0x152bed(0xeb),'features':_0x54706a};}const _0x473061=this['getIsoBandsFastBase'](_0x4ad07f);if(!_0x473061||!_0x473061[_0x152bed(0xa3)])return{'type':_0x152bed(0xeb),'features':[]};const {values:_0x3b8483,nx:_0x1a03da,ny:_0x50edac}=_0x473061,_0x5c0b9e=_0x473061[_0x152bed(0xa9)]||_0x4ad07f;if(!_0x3b8483||!_0x1a03da||!_0x50edac||!_0x5c0b9e||_0x5c0b9e[_0x152bed(0xc3)]===0x0)return{'type':_0x152bed(0xeb),'features':[]};const _0x3224fe=_0x5c0b9e[_0x152bed(0xea)](',');if(this[_0x152bed(0xb3)]!==_0x3224fe){this[_0x152bed(0xb3)]=_0x3224fe,this[_0x152bed(0x9c)]['clear']();const _0x446670=this[_0x152bed(0xd3)],_0x3bfc9e=this[_0x152bed(0xb6)],_0x4c8c90=this[_0x152bed(0xcd)],_0x31701a=this[_0x152bed(0x99)],_0x3bda68=_0x3b7b28=>{let _0x2e0565=0x0;for(let _0x1e5118=0x0,_0x2e21db=_0x3b7b28['length'];_0x1e5118<_0x2e21db;_0x1e5118++){const _0x52f48=_0x3b7b28[_0x1e5118][0x0],_0x53df5d=_0x3b7b28[_0x1e5118][0x1],_0x38c133=_0x3b7b28[(_0x1e5118+0x1)%_0x2e21db][0x0],_0x21fc9b=_0x3b7b28[(_0x1e5118+0x1)%_0x2e21db][0x1];if(_0x52f48==null||_0x53df5d==null||_0x38c133==null||_0x21fc9b==null)continue;_0x2e0565+=_0x52f48*_0x21fc9b-_0x38c133*_0x53df5d;}return _0x2e0565/0x2;},_0x440b2e=(_0x55e1c2,_0x3562ed)=>{const _0x1b754e=_0x152bed;if(!_0x55e1c2)return![];const _0x430e00=_0x55e1c2[0x0],_0xfedba1=_0x55e1c2[0x1];let _0x157755=![];for(let _0x3f415d=0x0,_0x3d6db6=_0x3562ed[_0x1b754e(0xc3)]-0x1;_0x3f415d<_0x3562ed[_0x1b754e(0xc3)];_0x3d6db6=_0x3f415d++){const _0x546c54=_0x3562ed[_0x3f415d][0x0],_0x7c31de=_0x3562ed[_0x3f415d][0x1],_0xb889e4=_0x3562ed[_0x3d6db6][0x0],_0x140dd7=_0x3562ed[_0x3d6db6][0x1],_0xab7bb9=_0x7c31de>_0xfedba1!==_0x140dd7>_0xfedba1&&_0x430e00<(_0xb889e4-_0x546c54)*(_0xfedba1-_0x7c31de)/(_0x140dd7-_0x7c31de)+_0x546c54;if(_0xab7bb9)_0x157755=!_0x157755;}return _0x157755;},_0x2cc2b2=_0x57ee9b=>{const _0xa1b5c8=_0x152bed,_0x295973=[];let _0x3c40b8=null,_0x343660=null;for(let _0x1073c1=0x0;_0x1073c1<_0x57ee9b[_0xa1b5c8(0xc3)];_0x1073c1++){const _0x129b98=_0x57ee9b[_0x1073c1];if(!_0x129b98)continue;const _0x362f12=_0x129b98[0x0],_0x1d9a3b=_0x129b98[0x1];if(_0x362f12==null||_0x1d9a3b==null||Number[_0xa1b5c8(0xc1)](_0x362f12)||Number[_0xa1b5c8(0xc1)](_0x1d9a3b))continue;const _0x27519f=_0x446670+_0x362f12*_0x4c8c90,_0x339e3d=_0x3bfc9e+_0x1d9a3b*_0x31701a;if(_0x3c40b8!==null&&_0x343660!==null&&_0x3c40b8===_0x27519f&&_0x343660===_0x339e3d){_0x3c40b8=_0x27519f,_0x343660=_0x339e3d;continue;}_0x295973[_0xa1b5c8(0xee)]([_0x27519f,_0x339e3d]),_0x3c40b8=_0x27519f,_0x343660=_0x339e3d;}if(_0x295973[_0xa1b5c8(0xc3)]===0x0)return _0x295973;const _0x2f91a2=_0x295973[0x0],_0x427774=_0x295973[_0x295973[_0xa1b5c8(0xc3)]-0x1];if(_0x2f91a2[0x0]!==_0x427774[0x0]||_0x2f91a2[0x1]!==_0x427774[0x1])_0x295973[_0xa1b5c8(0xee)]([_0x2f91a2[0x0],_0x2f91a2[0x1]]);return _0x295973;},_0x386991=_0x5c0b9e[_0x152bed(0xc3)]-0x1;for(let _0x1d8566=0x0;_0x1d8566<_0x5c0b9e[_0x152bed(0xc3)];_0x1d8566++){const _0x52c7da=_0x5c0b9e[_0x1d8566],_0x5abaa0=_0x1d8566<_0x386991?_0x5c0b9e[_0x1d8566+0x1]:Infinity,_0x541827=Array['from']({'length':_0x3b8483[_0x152bed(0xc3)]});let _0x9af374=![];for(let _0x2684a2=0x0;_0x2684a2<_0x3b8483['length'];_0x2684a2++){const _0x1816ac=_0x3b8483[_0x2684a2],_0xe4b668=_0x1816ac>=_0x52c7da&&_0x1816ac<_0x5abaa0?0x1:0x0;if(_0xe4b668)_0x9af374=!![];_0x541827[_0x2684a2]=_0xe4b668;}if(!_0x9af374)continue;const _0x2d9029=contours()[_0x152bed(0xc2)]([_0x1a03da,_0x50edac])[_0x152bed(0xc9)]([0.5]),_0x7fa66d=_0x2d9029[_0x152bed(0xdb)]?_0x2d9029[_0x152bed(0xdb)](_0x541827):_0x2d9029(_0x541827);if(!_0x7fa66d||_0x7fa66d[_0x152bed(0xc3)]===0x0)continue;const _0x336411=[];for(const _0x55e8a2 of _0x7fa66d){const _0x28de49=_0x55e8a2&&_0x55e8a2[_0x152bed(0xc7)];if(!_0x28de49)continue;for(const _0xbbed1c of _0x28de49){let _0x3cf724=[];if(Array['isArray'](_0xbbed1c)&&_0xbbed1c[_0x152bed(0xc3)]>0x0&&typeof _0xbbed1c[0x0][0x0]===_0x152bed(0xd5))_0x3cf724=[_0xbbed1c];else{if(Array[_0x152bed(0xa2)](_0xbbed1c))_0x3cf724=_0xbbed1c;else continue;}const _0x4d1f95=_0x3cf724[_0x152bed(0xde)](_0x30e21a=>({'ring':_0x30e21a,'area':Math[_0x152bed(0xd6)](_0x3bda68(_0x30e21a))}))['sort']((_0x25636c,_0x3d37ee)=>_0x3d37ee[_0x152bed(0xb2)]-_0x25636c[_0x152bed(0xb2)]),_0x595c5c=Array['from']({'length':_0x4d1f95['length']})[_0x152bed(0xd4)](![]);for(let _0x465cd8=0x0;_0x465cd8<_0x4d1f95['length'];_0x465cd8++){if(_0x595c5c[_0x465cd8])continue;const _0x1c1ea6=_0x4d1f95[_0x465cd8]['ring'];_0x595c5c[_0x465cd8]=!![];const _0x14bd3e=[];for(let _0x271eb8=0x0;_0x271eb8<_0x4d1f95['length'];_0x271eb8++){if(_0x595c5c[_0x271eb8])continue;const _0x6b2427=_0x4d1f95[_0x271eb8][_0x152bed(0xe7)],_0x47ae92=_0x6b2427[0x0];_0x47ae92&&_0x440b2e(_0x47ae92,_0x1c1ea6)&&(_0x14bd3e[_0x152bed(0xee)](_0x6b2427),_0x595c5c[_0x271eb8]=!![]);}const _0x23ec13=_0x2cc2b2(_0x1c1ea6);if(_0x23ec13[_0x152bed(0xc3)]<0x4)continue;const _0x24aad1=[];for(const _0x41ae4e of _0x14bd3e){const _0x25c01b=_0x2cc2b2(_0x41ae4e);if(_0x25c01b[_0x152bed(0xc3)]>=0x4)_0x24aad1[_0x152bed(0xee)](_0x25c01b);}_0x336411[_0x152bed(0xee)]({'type':_0x152bed(0x9b),'properties':{'z':_0x52c7da},'geometry':{'type':_0x152bed(0xb8),'coordinates':[_0x23ec13,..._0x24aad1]}});}}}_0x336411[_0x152bed(0xc3)]&&this[_0x152bed(0x9c)]['set'](_0x52c7da,_0x336411);}}if(typeof _0x4c23ba!==_0x152bed(0xca)){const _0x2bb395=this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)||[],_0xa4afc8=this[_0x152bed(0xbd)]?this[_0x152bed(0xbd)](_0x2bb395):_0x2bb395;return{'type':_0x152bed(0xeb),'features':_0xa4afc8};}const _0x5c0422=[];for(const _0x42487d of this[_0x152bed(0x9c)][_0x152bed(0xa3)]()){_0x5c0422[_0x152bed(0xee)](..._0x42487d);}const _0xbbb3c3=this[_0x152bed(0xbd)]?this['sortFeaturesByArea'](_0x5c0422):_0x5c0422;return{'type':'FeatureCollection','features':_0xbbb3c3};};[a3_0x1d888f(0xb0)](_0x2880e5,_0x1a7822,_0x592b47){const _0x2d482c=a3_0x1d888f;let _0x151416='rgba(255,255,255,0)';const _0x41b734=_0x1a7822['indexOf'](_0x2880e5);if(typeof _0x592b47[_0x41b734]==_0x2d482c(0x98))_0x151416=_0x592b47[_0x41b734];else _0x41b734!==-0x1&&(_0x151416=_0x2d482c(0xdc)+_0x592b47[_0x41b734][0x0]+','+_0x592b47[_0x41b734][0x1]+','+_0x592b47[_0x41b734][0x2]+','+(_0x592b47[_0x41b734][0x3]||_0x592b47[_0x41b734][0x3]===0x0?_0x592b47[_0x41b734][0x3]:0x1)+')');return _0x151416;}[a3_0x1d888f(0xe5)]=(_0x9ab906,_0x57df55)=>{const _0x5f2801=a3_0x1d888f,_0xfb0989=[],_0x58288f=Math[_0x5f2801(0xd8)](0x1,Math[_0x5f2801(0xc5)](_0x9ab906[_0x5f2801(0xc3)]/_0x57df55));for(let _0x470302=0x0;_0x470302<_0x57df55;_0x470302++){_0xfb0989[_0x5f2801(0xee)](_0x9ab906[_0x5f2801(0xba)](_0x470302*_0x58288f,(_0x470302+0x1)*_0x58288f));}return _0xfb0989;};[a3_0x1d888f(0x92)]=async(_0x1e7a5c,_0x4e9e79,_0x2b8ec4)=>{const _0x51d140=a3_0x1d888f,_0x1c89d4=navigator[_0x51d140(0x94)]-0x4||0x1,_0x2b2751=Math[_0x51d140(0xae)](_0x1c89d4,Math['max'](0x1,_0x1e7a5c[_0x51d140(0xe9)][_0x51d140(0xc3)])),_0x3b7ebe=this[_0x51d140(0xe5)](_0x1e7a5c[_0x51d140(0xe9)],_0x2b2751),_0x4a6ef2=[],_0x405586=_0x3b7ebe['map'](_0x52f5d5=>{const _0x35320b=_0x51d140,_0xe13639=new Worker(_0x2b8ec4,{'type':'module'});return _0x4a6ef2[_0x35320b(0xee)](_0xe13639),new Promise(_0x2a2759=>{const _0x55d627=_0x35320b;_0xe13639[_0x55d627(0xac)]=_0x211ca5=>{const _0x303a07=_0x55d627;_0x2a2759(_0x211ca5[_0x303a07(0xc0)]['features']);},_0xe13639['onerror']=_0x4af65f=>{const _0x4efbee=_0x55d627;console[_0x4efbee(0xe1)](_0x4af65f);},_0xe13639['postMessage']({'isoChunk':_0x52f5d5,'gansuFeatures':_0x4e9e79[_0x55d627(0xe9)]});});}),_0x14ceaa=await Promise['all'](_0x405586);_0x4a6ef2[_0x51d140(0xa5)](_0x54a954=>_0x54a954[_0x51d140(0xb9)]());const _0x18f73a=_0x14ceaa[_0x51d140(0x9e)]();return a3_0x503e6e(_0x18f73a);};[a3_0x1d888f(0xcb)]=async(_0x1578e8=[],_0x4a8ed1)=>{const _0x52d10c=a3_0x1d888f,_0x2ed3af=this[_0x52d10c(0xe2)](_0x1578e8);let _0x35158f=[];const {values:_0x17837a,nx:_0x5e64f7,ny:_0x231326}=_0x2ed3af;_0x1578e8=_0x2ed3af[_0x52d10c(0xa9)];if(!_0x17837a)return{'type':_0x52d10c(0xeb),'features':[]};const _0x186cd5=[],_0x20c03f=navigator[_0x52d10c(0x94)]-0x4||0x1,_0x4ec665=Math['min'](_0x20c03f,Math['max'](0x1,_0x1578e8['length'])),_0x4a1f1d=this[_0x52d10c(0xe5)](_0x1578e8,_0x4ec665),_0x2021f9=_0x4a1f1d[_0x52d10c(0xde)](_0x40c0b2=>{const _0x5234ff=_0x52d10c,_0x1ac1dc=new Worker(_0x4a8ed1,{'type':_0x5234ff(0xda)});return _0x186cd5['push'](_0x1ac1dc),new Promise(_0x4ad383=>{const _0x344e11=_0x5234ff;_0x1ac1dc[_0x344e11(0xac)]=_0x4755b4=>{const _0x2bc3c9=_0x344e11;_0x4ad383(_0x4755b4[_0x2bc3c9(0xc0)][_0x2bc3c9(0xe9)]);},_0x1ac1dc[_0x344e11(0xce)]=_0x4e2316=>{const _0x5a2f45=_0x344e11;console[_0x5a2f45(0xe1)](_0x4e2316);},_0x1ac1dc[_0x344e11(0xb1)]({'breaks':_0x40c0b2,'values':_0x17837a,'nx':_0x5e64f7,'ny':_0x231326,'minVal':this['minVal'],'maxVal':this[_0x344e11(0xb4)],'minLng':this[_0x344e11(0xd3)],'minLat':this[_0x344e11(0xb6)],'gjLng':this[_0x344e11(0xcd)],'gjLat':this[_0x344e11(0x99)]});});}),_0x1e96af=await Promise[_0x52d10c(0x9a)](_0x2021f9);return _0x186cd5['forEach'](_0x27a63f=>_0x27a63f[_0x52d10c(0xb9)]()),_0x1e96af[_0x52d10c(0xa5)](_0x5ded36=>{const _0x415302=_0x52d10c;_0x35158f[_0x415302(0xee)](..._0x5ded36);}),_0x35158f=this[_0x52d10c(0xbd)](_0x35158f),{'type':'FeatureCollection','features':_0x35158f};};[a3_0x1d888f(0xe2)]=(_0x31b303=[])=>{const _0x4971aa=a3_0x1d888f;if(this[_0x4971aa(0xcf)][_0x4971aa(0xc3)]===0x0)return{'type':_0x4971aa(0xeb),'features':[]};if(_0x31b303['length']===0x0)_0x31b303=this[_0x4971aa(0xa0)]();const _0x577d4e=this[_0x4971aa(0xcf)][_0x4971aa(0xde)](_0x2a6c66=>_0x2a6c66[_0x4971aa(0xbe)]),_0x309ae7=this['lngLineNum'],_0x5bd8e8=this[_0x4971aa(0xbf)];return{'values':_0x577d4e,'breaks':_0x31b303,'nx':_0x309ae7,'ny':_0x5bd8e8};};[a3_0x1d888f(0xbd)]=_0x131d11=>{const _0x45cbda=a3_0x1d888f;return _0x131d11[_0x45cbda(0xde)](_0x47792f=>{const _0x2bbab8=_0x45cbda;try{const _0x1b9935=a3_0x16ae44(_0x47792f)||0x0;_0x47792f[_0x2bbab8(0xa1)]={..._0x47792f[_0x2bbab8(0xa1)]||{},'__area':_0x1b9935};}catch{_0x47792f[_0x2bbab8(0xa1)]={..._0x47792f[_0x2bbab8(0xa1)]||{},'__area':0x0};}return _0x47792f;})[_0x45cbda(0xec)]((_0x12c35a,_0x1e8e15)=>_0x1e8e15[_0x45cbda(0xa1)][_0x45cbda(0xd7)]-_0x12c35a['properties'][_0x45cbda(0xd7)])[_0x45cbda(0xa4)](_0x5f1a0b=>_0x5f1a0b[_0x45cbda(0xa1)]&&'__area'in _0x5f1a0b[_0x45cbda(0xa1)]&&_0x5f1a0b['properties'][_0x45cbda(0xd7)]!==0x0)[_0x45cbda(0xde)](_0xcd4162=>{const _0x550a8e=_0x45cbda;if(_0xcd4162[_0x550a8e(0xa1)]&&_0x550a8e(0xd7)in _0xcd4162[_0x550a8e(0xa1)]){const {__area:_0x17a3d4,..._0x13cd31}=_0xcd4162['properties'];_0xcd4162[_0x550a8e(0xa1)]=_0x13cd31;}return _0xcd4162;});};}export default _readFileDiamond4;
|
|
1
|
+
const a3_0x24c936=a3_0x3954;(function(_0x567b2a,_0x48e957){const _0x419b0b=a3_0x3954,_0x4e653f=_0x567b2a();while(!![]){try{const _0x1b04f4=-parseInt(_0x419b0b(0xc4))/0x1*(-parseInt(_0x419b0b(0xea))/0x2)+parseInt(_0x419b0b(0xfd))/0x3+-parseInt(_0x419b0b(0xbc))/0x4*(-parseInt(_0x419b0b(0xf1))/0x5)+-parseInt(_0x419b0b(0xc8))/0x6*(-parseInt(_0x419b0b(0xec))/0x7)+parseInt(_0x419b0b(0xc5))/0x8+-parseInt(_0x419b0b(0xd9))/0x9+parseInt(_0x419b0b(0xd7))/0xa*(-parseInt(_0x419b0b(0xef))/0xb);if(_0x1b04f4===_0x48e957)break;else _0x4e653f['push'](_0x4e653f['shift']());}catch(_0xe7937c){_0x4e653f['push'](_0x4e653f['shift']());}}}(a3_0x36c2,0xcab76));function a3_0x36c2(){const _0x4f171b=['postMessage','replace','220TkMzJq','split','2317995eRjxHA','floor','hardwareConcurrency','plus','thresholds','gjLat','coordinates','slice','filePath','convertTemKtoC','sort','onmessage','clear','min','map','getIsoBandsByLayerBreak','error','3646mwUZDt','minVal','1540413hPCGMw','size','filter','1177099iLOHSr','set','809445tpaWoX','features','length','_maskCache','push','get','ceil','abs','all','join','properties','rgba(','1540071OZoatt','module','contour','minLat','data','toNumber','start','number','getMinMax','sortFeaturesByArea','getIsoBandsFastByWorker','maxVal','max','undefined','times','minLng','Polygon','onerror','indexOf','terminate','chunkArray','from','28BbEtjr','getBreaks','gjLng','Feature','isNaN','forEach','FeatureCollection','contours','813iqhAmj','746728QNpJVd','rgba(255,255,255,0)','string','6JQiWpO','trim','values','ring','flat','minus','plusOffset','isArray','getJsonData','该时次未获取到文件','_maskCacheKey','__area','area'];a3_0x36c2=function(){return _0x4f171b;};return a3_0x36c2();}import{contours}from'd3-contour';import a3_0x93638c from'@turf/area';import{featureCollection as a3_0x476a7b}from'@turf/helpers';import a3_0x416a62 from'decimal.js';export class readFileM4{[a3_0x24c936(0xe1)]='';['nx']=0x0;['ny']=0x0;[a3_0x24c936(0xb5)]=0x0;[a3_0x24c936(0x100)]=0x0;[a3_0x24c936(0xbe)]=0x0;['gjLat']=0x0;[a3_0x24c936(0xca)]=[];[a3_0x24c936(0xb1)]=-Infinity;[a3_0x24c936(0xeb)]=Infinity;[a3_0x24c936(0xd2)]='';['_maskCache']=new Map();constructor(_0x374afd){const _0x395d4a=a3_0x24c936;this[_0x395d4a(0xe1)]=_0x374afd||'';}async[a3_0x24c936(0x103)](_0xeb17df){const _0x424f98=a3_0x24c936,_0x7b4e13=await fetch(this[_0x424f98(0xe1)]);if(!_0x7b4e13['ok'])return _0x424f98(0xd1);const _0x1a2f59=await _0x7b4e13['text'](),_0x4efb6b=_0x1a2f59[_0x424f98(0xd6)](/\r\n/g,'\x0a')[_0x424f98(0xd6)](/\r/g,'\x0a')['split']('\x0a');if(_0x4efb6b['length']<0x4)return'该时次文件数据异常';const _0x1e975c=(_0x4efb6b[0x1]??'')[_0x424f98(0xc9)]()[_0x424f98(0xd8)](/\s+/);let _0x1fe310=0x2;while(_0x1e975c[_0x424f98(0xf3)]<0x13){_0x1e975c[_0x424f98(0xf5)](...(_0x4efb6b[_0x1fe310]??'')[_0x424f98(0xc9)]()[_0x424f98(0xd8)](/\s+/)),_0x1fe310++;}this[_0x424f98(0xbe)]=Number(_0x1e975c[0x6]);const _0x4fc7a7=Number(_0x1e975c[0x8]),_0x20d88c=Number(_0x1e975c[0xa]),_0x201338=Number(_0x1e975c[0xb]);this['nx']=Number(_0x1e975c[0xc]),this['ny']=Number(_0x1e975c[0xd]),this[_0x424f98(0xb5)]=_0x4fc7a7,this[_0x424f98(0x100)]=_0x20d88c,this[_0x424f98(0xde)]=Math[_0x424f98(0xf8)](Number(_0x1e975c[0x7]))*(_0x20d88c>_0x201338?-0x1:0x1);const _0x96ff17=this['nx']*this['ny'];let _0x3449cc=0x0;for(let _0x54a26f=_0x1fe310;_0x54a26f<_0x4efb6b[_0x424f98(0xf3)]&&_0x3449cc<_0x96ff17;_0x54a26f++){const _0x439343=_0x4efb6b[_0x54a26f]['trim']()??'',_0x4549fc=_0x439343[_0x424f98(0xd8)](/\s+/);if(!_0x4549fc||_0x4549fc[_0x424f98(0xf3)]===0x0)continue;for(let _0x3bc7f2=0x0;_0x3bc7f2<_0x4549fc[_0x424f98(0xf3)]&&_0x3449cc<_0x96ff17;_0x3bc7f2++){let _0xc66225=Number(_0x4549fc[_0x3bc7f2]);if(_0xeb17df?.[_0x424f98(0xe2)])_0xc66225=new a3_0x416a62(_0xc66225)[_0x424f98(0xcd)](272.15)[_0x424f98(0x102)]();else _0xeb17df?.['plusOffset']&&(_0xc66225=new a3_0x416a62(_0xc66225)[_0x424f98(0xdc)](_0xeb17df[_0x424f98(0xce)])['toNumber']());this[_0x424f98(0xca)][_0x424f98(0xf5)](_0xc66225),this[_0x424f98(0xeb)]=Math[_0x424f98(0xe6)](this[_0x424f98(0xeb)],_0xc66225),this[_0x424f98(0xb1)]=Math[_0x424f98(0xb2)](this[_0x424f98(0xb1)],_0xc66225),_0x3449cc++;}}}['setParams'](_0x334b9a,_0x4e1c3c){const _0x53ca64=a3_0x24c936;this['nx']=_0x334b9a['nx'],this['ny']=_0x334b9a['ny'],this['minLng']=_0x334b9a[_0x53ca64(0xb5)],this[_0x53ca64(0x100)]=_0x334b9a[_0x53ca64(0x100)],this[_0x53ca64(0xbe)]=_0x334b9a[_0x53ca64(0xbe)],this[_0x53ca64(0xde)]=_0x334b9a['gjLat'];if(_0x4e1c3c?.[_0x53ca64(0xe2)])for(let _0x1dab05=0x0;_0x1dab05<_0x334b9a[_0x53ca64(0xca)][_0x53ca64(0xf3)];_0x1dab05++){_0x334b9a['values'][_0x1dab05]=new a3_0x416a62(_0x334b9a[_0x53ca64(0xca)][_0x1dab05])[_0x53ca64(0xcd)](272.15)['toNumber']();}else{if(_0x4e1c3c?.[_0x53ca64(0xce)])for(let _0x25287c=0x0;_0x25287c<_0x334b9a[_0x53ca64(0xca)][_0x53ca64(0xf3)];_0x25287c++){_0x334b9a[_0x53ca64(0xca)][_0x25287c]=new a3_0x416a62(_0x334b9a[_0x53ca64(0xca)][_0x25287c])[_0x53ca64(0xdc)](_0x4e1c3c[_0x53ca64(0xce)])[_0x53ca64(0x102)]();}else this[_0x53ca64(0xca)]=_0x334b9a[_0x53ca64(0xca)];}this['getMinMax']();}['getIsoBandsFast'](_0x5929f1){const _0x4ec63b=a3_0x24c936;if(this[_0x4ec63b(0xca)][_0x4ec63b(0xf3)]===0x0)return{'type':_0x4ec63b(0xc2),'features':[]};let _0x342a2e=[];if(_0x5929f1['length']===0x0)_0x5929f1=this[_0x4ec63b(0xbd)]();const _0x5a1445=contours()[_0x4ec63b(0xed)]([this['nx'],this['ny']]);for(let _0x210b08=0x0;_0x210b08<_0x5929f1[_0x4ec63b(0xf3)];_0x210b08++){const _0x517e65=_0x5929f1[_0x210b08];if(_0x517e65<this['minVal']||_0x517e65>this[_0x4ec63b(0xb1)])continue;const _0x2d6d88=_0x5a1445[_0x4ec63b(0xff)](this['values'],_0x517e65);if(!_0x2d6d88||!_0x2d6d88[_0x4ec63b(0xdf)])continue;for(const _0x15bf74 of _0x2d6d88['coordinates']){let _0x590067=[];if(Array[_0x4ec63b(0xcf)](_0x15bf74)&&_0x15bf74[_0x4ec63b(0xf3)]>0x0&&Array['isArray'](_0x15bf74[0x0])&&typeof _0x15bf74[0x0][0x0]===_0x4ec63b(0x104))_0x590067=[_0x15bf74];else{if(Array['isArray'](_0x15bf74))_0x590067=_0x15bf74;else continue;}for(const _0x14b599 of _0x590067){const _0x4ad555=_0x14b599['map'](_0x54690b=>{const _0x1ea786=_0x4ec63b,_0x315067=_0x54690b[0x0],_0x35a114=_0x54690b[0x1];if(_0x315067==null||_0x35a114==null||Number['isNaN'](_0x315067)||Number[_0x1ea786(0xc0)](_0x35a114))return null;const _0x37b7a4=new a3_0x416a62(this[_0x1ea786(0xb5)])[_0x1ea786(0xdc)](new a3_0x416a62(_0x315067)['times'](this['gjLng']))[_0x1ea786(0x102)](),_0x2a64cf=new a3_0x416a62(this[_0x1ea786(0x100)])['plus'](new a3_0x416a62(_0x35a114)[_0x1ea786(0xb4)](this['gjLat']))[_0x1ea786(0x102)]();return[_0x37b7a4,_0x2a64cf];})[_0x4ec63b(0xee)](_0x16dc8d=>_0x16dc8d!==null),_0x5f138f=_0x4ad555[_0x4ec63b(0xee)]((_0x7f4795,_0xac0539,_0x4e0799)=>{if(_0xac0539===0x0)return!![];const _0x25775b=_0x4e0799[_0xac0539-0x1];return!(_0x7f4795[0x0]===_0x25775b[0x0]&&_0x7f4795[0x1]===_0x25775b[0x1]);});if(_0x5f138f[_0x4ec63b(0xf3)]<0x3)continue;const _0x32886a=_0x5f138f[0x0],_0x53c0bf=_0x5f138f[_0x5f138f[_0x4ec63b(0xf3)]-0x1];(_0x32886a[0x0]!==_0x53c0bf[0x0]||_0x32886a[0x1]!==_0x53c0bf[0x1])&&_0x5f138f[_0x4ec63b(0xf5)]([_0x32886a[0x0],_0x32886a[0x1]]),_0x342a2e[_0x4ec63b(0xf5)]({'type':'Feature','properties':{'z':_0x517e65},'geometry':{'type':'Polygon','coordinates':[_0x5f138f]}});}}}return _0x342a2e=this[_0x4ec63b(0x106)](_0x342a2e),{'type':'FeatureCollection','features':_0x342a2e};}['getColorFast'](_0x5c0faf,_0x1054d7,_0x4f6afa){const _0x4bb2a1=a3_0x24c936;let _0x2da264=_0x4bb2a1(0xc6);const _0x89a6e=_0x1054d7[_0x4bb2a1(0xb8)](_0x5c0faf);if(typeof _0x4f6afa[_0x89a6e]==_0x4bb2a1(0xc7))_0x2da264=_0x4f6afa[_0x89a6e];else _0x89a6e!==-0x1&&(_0x2da264=_0x4bb2a1(0xfc)+_0x4f6afa[_0x89a6e][0x0]+','+_0x4f6afa[_0x89a6e][0x1]+','+_0x4f6afa[_0x89a6e][0x2]+','+(_0x4f6afa[_0x89a6e][0x3]||_0x4f6afa[_0x89a6e][0x3]===0x0?_0x4f6afa[_0x89a6e][0x3]:0x1)+')');return _0x2da264;}async['clipDataByJson'](_0x4954a4,_0x3a29a6,_0x3b9733,_0x5bc9b8){const _0x30eb0d=a3_0x24c936,_0x3cf7b2=_0x5bc9b8?_0x5bc9b8:navigator[_0x30eb0d(0xdb)]-0x4||0x1,_0x5928f8=Math[_0x30eb0d(0xe6)](_0x3cf7b2,Math['max'](0x1,_0x4954a4[_0x30eb0d(0xf2)][_0x30eb0d(0xf3)])),_0x305639=this[_0x30eb0d(0xba)](_0x4954a4[_0x30eb0d(0xf2)],_0x5928f8),_0x1fb94e=[],_0x22487f=_0x305639['map'](_0x5bac0d=>{const _0x371861=_0x30eb0d,_0x279189=new Worker(_0x3b9733,{'type':_0x371861(0xfe)});return _0x1fb94e[_0x371861(0xf5)](_0x279189),new Promise(_0x1042de=>{const _0x422cc5=_0x371861;_0x279189[_0x422cc5(0xe4)]=_0x374db3=>{const _0x4a4e9c=_0x422cc5;_0x1042de(_0x374db3[_0x4a4e9c(0x101)][_0x4a4e9c(0xf2)]);},_0x279189[_0x422cc5(0xb7)]=_0x3427be=>{console['error'](_0x3427be);},_0x279189[_0x422cc5(0xd5)]({'isoChunk':_0x5bac0d,'gansuFeatures':_0x3a29a6['features']});});}),_0x3bf1cc=await Promise[_0x30eb0d(0xf9)](_0x22487f);_0x1fb94e[_0x30eb0d(0xc1)](_0x37dfaa=>_0x37dfaa[_0x30eb0d(0xb9)]());const _0x24a93=_0x3bf1cc[_0x30eb0d(0xcc)]();return a3_0x476a7b(_0x24a93);}async[a3_0x24c936(0x107)](_0xe18980,_0x248b4d,_0x34f607){const _0x4e81f7=a3_0x24c936;if(this[_0x4e81f7(0xca)]['length']===0x0)return{'type':'FeatureCollection','features':[]};let _0x5d857d=[];if(_0xe18980['length']===0x0)_0xe18980=this[_0x4e81f7(0xbd)]();const _0x2ac722=[],_0x36b545=_0x34f607?_0x34f607:navigator['hardwareConcurrency']-0x4||0x1,_0x25eb7b=Math[_0x4e81f7(0xe6)](_0x36b545,Math['max'](0x1,_0xe18980[_0x4e81f7(0xf3)])),_0x5305e6=this[_0x4e81f7(0xba)](_0xe18980,_0x25eb7b),_0xece630=_0x5305e6['map'](_0x2d5dcc=>{const _0xe2686c=_0x4e81f7,_0x2e41c6=new Worker(_0x248b4d,{'type':_0xe2686c(0xfe)});return _0x2ac722[_0xe2686c(0xf5)](_0x2e41c6),new Promise(_0x152837=>{const _0x7d6e7e=_0xe2686c;_0x2e41c6['onmessage']=_0x28b12c=>{const _0x1f55bd=a3_0x3954;_0x152837(_0x28b12c[_0x1f55bd(0x101)][_0x1f55bd(0xf2)]);},_0x2e41c6[_0x7d6e7e(0xb7)]=_0x25bc5d=>{const _0x1a8477=_0x7d6e7e;console[_0x1a8477(0xe9)](_0x25bc5d);},_0x2e41c6[_0x7d6e7e(0xd5)]({'breaks':_0x2d5dcc,'values':this[_0x7d6e7e(0xca)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x7d6e7e(0xeb)],'maxVal':this[_0x7d6e7e(0xb1)],'minLng':this['minLng'],'minLat':this[_0x7d6e7e(0x100)],'gjLng':this['gjLng'],'gjLat':this[_0x7d6e7e(0xde)]});});}),_0x5d6099=await Promise[_0x4e81f7(0xf9)](_0xece630);return _0x2ac722[_0x4e81f7(0xc1)](_0x88a902=>_0x88a902[_0x4e81f7(0xb9)]()),_0x5d6099['forEach'](_0x2d3c1f=>{const _0x188f94=_0x4e81f7;_0x5d857d[_0x188f94(0xf5)](..._0x2d3c1f);}),_0x5d857d=this[_0x4e81f7(0x106)](_0x5d857d),{'type':_0x4e81f7(0xc2),'features':_0x5d857d};}['clearMaskCache'](){const _0x514bb9=a3_0x24c936;this[_0x514bb9(0xf4)][_0x514bb9(0xe5)]();}[a3_0x24c936(0xe8)](_0x547bb5=[],_0x40b618){const _0x2a5a3d=a3_0x24c936;if(typeof _0x40b618!==_0x2a5a3d(0xb3)&&this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf6)](_0x40b618)){const _0x2d3ec1=this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf6)](_0x40b618)||[],_0x3be543=this[_0x2a5a3d(0x106)]?this['sortFeaturesByArea'](_0x2d3ec1):_0x2d3ec1;return{'type':'FeatureCollection','features':_0x3be543};}if(this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)]===0x0)return{'type':_0x2a5a3d(0xc2),'features':[]};if(_0x547bb5['length']===0x0)_0x547bb5=this[_0x2a5a3d(0xbd)]();const _0x20e2f0=_0x547bb5[_0x2a5a3d(0xfa)](',');if(this[_0x2a5a3d(0xd2)]!==_0x20e2f0){this[_0x2a5a3d(0xd2)]=_0x20e2f0,this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xe5)]();const _0x585ad2=this[_0x2a5a3d(0xb5)],_0x1d1fd9=this[_0x2a5a3d(0x100)],_0x2939a9=this[_0x2a5a3d(0xbe)],_0x50e76f=this['gjLat'],_0x52bbc2=_0x1ec452=>{const _0x565675=_0x2a5a3d;let _0x10ef08=0x0;for(let _0x5d2e71=0x0,_0x3e59af=_0x1ec452[_0x565675(0xf3)];_0x5d2e71<_0x3e59af;_0x5d2e71++){const _0x591f94=_0x1ec452[_0x5d2e71][0x0],_0x584cc8=_0x1ec452[_0x5d2e71][0x1],_0x4516dd=_0x1ec452[(_0x5d2e71+0x1)%_0x3e59af][0x0],_0x5f0ea2=_0x1ec452[(_0x5d2e71+0x1)%_0x3e59af][0x1];if(_0x591f94==null||_0x584cc8==null||_0x4516dd==null||_0x5f0ea2==null)continue;_0x10ef08+=_0x591f94*_0x5f0ea2-_0x4516dd*_0x584cc8;}return _0x10ef08/0x2;},_0x232e03=(_0x17179b,_0x1fccc5)=>{const _0x46ec77=_0x2a5a3d;if(!_0x17179b)return![];const _0x2f229c=_0x17179b[0x0],_0x2ab30b=_0x17179b[0x1];let _0x148b31=![];for(let _0x143dda=0x0,_0x2668c4=_0x1fccc5[_0x46ec77(0xf3)]-0x1;_0x143dda<_0x1fccc5[_0x46ec77(0xf3)];_0x2668c4=_0x143dda++){const _0x4b1651=_0x1fccc5[_0x143dda][0x0],_0x26a324=_0x1fccc5[_0x143dda][0x1],_0x11d3e0=_0x1fccc5[_0x2668c4][0x0],_0x4ae403=_0x1fccc5[_0x2668c4][0x1],_0x1b5143=_0x26a324>_0x2ab30b!==_0x4ae403>_0x2ab30b&&_0x2f229c<(_0x11d3e0-_0x4b1651)*(_0x2ab30b-_0x26a324)/(_0x4ae403-_0x26a324)+_0x4b1651;if(_0x1b5143)_0x148b31=!_0x148b31;}return _0x148b31;},_0x42e5ce=_0x408511=>{const _0x51b013=_0x2a5a3d,_0x1325e5=[];let _0x1ada14=null,_0x2b1b82=null;for(let _0x2314d4=0x0;_0x2314d4<_0x408511[_0x51b013(0xf3)];_0x2314d4++){const _0x4433d8=_0x408511[_0x2314d4];if(!_0x4433d8)continue;const _0x59a28d=_0x4433d8[0x0],_0x1d86da=_0x4433d8[0x1];if(_0x59a28d==null||_0x1d86da==null||Number[_0x51b013(0xc0)](_0x59a28d)||Number[_0x51b013(0xc0)](_0x1d86da))continue;const _0x1d8dea=_0x585ad2+_0x59a28d*_0x2939a9,_0x38ccc4=_0x1d1fd9+_0x1d86da*_0x50e76f;if(_0x1ada14!==null&&_0x2b1b82!==null&&_0x1ada14===_0x1d8dea&&_0x2b1b82===_0x38ccc4){_0x1ada14=_0x1d8dea,_0x2b1b82=_0x38ccc4;continue;}_0x1325e5['push']([_0x1d8dea,_0x38ccc4]),_0x1ada14=_0x1d8dea,_0x2b1b82=_0x38ccc4;}if(_0x1325e5[_0x51b013(0xf3)]===0x0)return _0x1325e5;const _0x21101d=_0x1325e5[0x0],_0x280888=_0x1325e5[_0x1325e5['length']-0x1];if(_0x21101d[0x0]!==_0x280888[0x0]||_0x21101d[0x1]!==_0x280888[0x1])_0x1325e5[_0x51b013(0xf5)]([_0x21101d[0x0],_0x21101d[0x1]]);return _0x1325e5;},_0x381e25=_0x547bb5['length']-0x1;for(let _0x35de55=0x0;_0x35de55<_0x547bb5[_0x2a5a3d(0xf3)];_0x35de55++){const _0x5f1599=_0x547bb5[_0x35de55],_0x3cf077=_0x35de55<_0x381e25?_0x547bb5[_0x35de55+0x1]:Infinity,_0x9d6d65=Array[_0x2a5a3d(0xbb)]({'length':this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)]});let _0x35f75b=![];for(let _0x461f54=0x0;_0x461f54<this[_0x2a5a3d(0xca)][_0x2a5a3d(0xf3)];_0x461f54++){const _0x5e1d65=this[_0x2a5a3d(0xca)][_0x461f54],_0x15ba18=_0x5e1d65>=_0x5f1599&&_0x5e1d65<_0x3cf077?0x1:0x0;if(_0x15ba18)_0x35f75b=!![];_0x9d6d65[_0x461f54]=_0x15ba18;}if(!_0x35f75b)continue;const _0x1ee964=contours()[_0x2a5a3d(0xed)]([this['nx'],this['ny']])[_0x2a5a3d(0xdd)]([0.5]),_0x2e1f48=_0x1ee964[_0x2a5a3d(0xc3)]?_0x1ee964[_0x2a5a3d(0xc3)](_0x9d6d65):_0x1ee964(_0x9d6d65);if(!_0x2e1f48||_0x2e1f48[_0x2a5a3d(0xf3)]===0x0)continue;const _0xf0b7f3=[];for(const _0x1f5894 of _0x2e1f48){const _0x459ef2=_0x1f5894&&_0x1f5894['coordinates'];if(!_0x459ef2)continue;for(const _0x18c657 of _0x459ef2){let _0x3f2e42=[];if(Array[_0x2a5a3d(0xcf)](_0x18c657)&&_0x18c657[_0x2a5a3d(0xf3)]>0x0&&typeof _0x18c657[0x0][0x0]===_0x2a5a3d(0x104))_0x3f2e42=[_0x18c657];else{if(Array['isArray'](_0x18c657))_0x3f2e42=_0x18c657;else continue;}const _0x50119f=_0x3f2e42[_0x2a5a3d(0xe7)](_0xfe6330=>({'ring':_0xfe6330,'area':Math[_0x2a5a3d(0xf8)](_0x52bbc2(_0xfe6330))}))[_0x2a5a3d(0xe3)]((_0x8ff393,_0x58ed15)=>_0x58ed15['area']-_0x8ff393[_0x2a5a3d(0xd4)]),_0x45ca6d=Array[_0x2a5a3d(0xbb)]({'length':_0x50119f[_0x2a5a3d(0xf3)]})['fill'](![]);for(let _0xb4c33d=0x0;_0xb4c33d<_0x50119f[_0x2a5a3d(0xf3)];_0xb4c33d++){if(_0x45ca6d[_0xb4c33d])continue;const _0x4098f2=_0x50119f[_0xb4c33d]['ring'];_0x45ca6d[_0xb4c33d]=!![];const _0x30e754=[];for(let _0x19aaa1=0x0;_0x19aaa1<_0x50119f[_0x2a5a3d(0xf3)];_0x19aaa1++){if(_0x45ca6d[_0x19aaa1])continue;const _0x3d2ae1=_0x50119f[_0x19aaa1][_0x2a5a3d(0xcb)],_0x2c6ef3=_0x3d2ae1[0x0];_0x2c6ef3&&_0x232e03(_0x2c6ef3,_0x4098f2)&&(_0x30e754['push'](_0x3d2ae1),_0x45ca6d[_0x19aaa1]=!![]);}const _0x1bebed=_0x42e5ce(_0x4098f2);if(_0x1bebed[_0x2a5a3d(0xf3)]<0x4)continue;const _0x598383=[];for(const _0x370cb1 of _0x30e754){const _0x2620c1=_0x42e5ce(_0x370cb1);if(_0x2620c1[_0x2a5a3d(0xf3)]>=0x4)_0x598383['push'](_0x2620c1);}_0xf0b7f3[_0x2a5a3d(0xf5)]({'type':_0x2a5a3d(0xbf),'properties':{'z':_0x5f1599},'geometry':{'type':_0x2a5a3d(0xb6),'coordinates':[_0x1bebed,..._0x598383]}});}}}_0xf0b7f3[_0x2a5a3d(0xf3)]&&this[_0x2a5a3d(0xf4)][_0x2a5a3d(0xf0)](_0x5f1599,_0xf0b7f3);}}if(typeof _0x40b618!==_0x2a5a3d(0xb3)){const _0xda184d=this[_0x2a5a3d(0xf4)]['get'](_0x40b618)||[],_0x4876fc=this[_0x2a5a3d(0x106)]?this[_0x2a5a3d(0x106)](_0xda184d):_0xda184d;return{'type':_0x2a5a3d(0xc2),'features':_0x4876fc};}const _0x12b57c=[];for(const _0x2c3601 of this[_0x2a5a3d(0xf4)]['values']()){_0x12b57c[_0x2a5a3d(0xf5)](..._0x2c3601);}const _0xf6cabe=this['sortFeaturesByArea']?this[_0x2a5a3d(0x106)](_0x12b57c):_0x12b57c;return{'type':_0x2a5a3d(0xc2),'features':_0xf6cabe};}[a3_0x24c936(0xd0)](){const _0x52baad=a3_0x24c936,_0x57ecd6=Array['from']({'length':this['nx']});for(let _0x2efe0a=0x0;_0x2efe0a<this['nx'];_0x2efe0a++){_0x57ecd6[_0x2efe0a]=new a3_0x416a62(this[_0x52baad(0xb5)])[_0x52baad(0xdc)](new a3_0x416a62(_0x2efe0a)[_0x52baad(0xb4)](this[_0x52baad(0xbe)]))['toNumber']();}const _0x206df1=Array[_0x52baad(0xbb)]({'length':this['ny']});for(let _0x2f6ead=0x0;_0x2f6ead<this['ny'];_0x2f6ead++){_0x206df1[_0x2f6ead]=new a3_0x416a62(this[_0x52baad(0x100)])[_0x52baad(0xdc)](new a3_0x416a62(_0x2f6ead)[_0x52baad(0xb4)](this['gjLat']))['toNumber']();}const _0x37d7bb=Array[_0x52baad(0xbb)]({'length':this['nx']*this['ny']});for(let _0x3fa1a=0x0;_0x3fa1a<this['values']['length'];_0x3fa1a++){const _0x3db113=Math[_0x52baad(0xda)](_0x3fa1a/this['nx']),_0x333399=_0x3fa1a%this['nx'],_0x39f276=_0x57ecd6[_0x333399],_0x53e80d=_0x206df1[_0x3db113],_0x2f7b25=this[_0x52baad(0xca)][_0x3fa1a];_0x53e80d&&_0x39f276&&(_0x37d7bb[_0x3fa1a]={'lng':_0x39f276,'lat':_0x53e80d,'val':_0x2f7b25});}return _0x37d7bb;}[a3_0x24c936(0x105)](){const _0x4adbc4=a3_0x24c936;let _0x25ec50=-Infinity,_0x71fec3=Infinity;for(let _0x19760a=0x0;_0x19760a<this[_0x4adbc4(0xca)][_0x4adbc4(0xf3)];_0x19760a++){const _0x4ea90e=this[_0x4adbc4(0xca)][_0x19760a];if(_0x4ea90e>_0x25ec50)_0x25ec50=_0x4ea90e;if(_0x4ea90e<_0x71fec3)_0x71fec3=_0x4ea90e;}this['minVal']=_0x71fec3,this[_0x4adbc4(0xb1)]=_0x25ec50;}[a3_0x24c936(0xbd)](){const _0x42284c=a3_0x24c936,_0x5fd282=[];if(this[_0x42284c(0xeb)]===Infinity||this[_0x42284c(0xb1)]===-Infinity)return _0x5fd282;for(let _0x3e17ce=this['minVal']-0x1;_0x3e17ce<=this['maxVal']+0x1;_0x3e17ce++){_0x5fd282[_0x42284c(0xf5)](_0x3e17ce);}return _0x5fd282;}['sortFeaturesByArea'](_0x2310b8){const _0x3c3ed0=a3_0x24c936;return _0x2310b8[_0x3c3ed0(0xe7)](_0xf448c9=>{const _0x1e4ffd=_0x3c3ed0;try{const _0x148109=a3_0x93638c(_0xf448c9)||0x0;_0xf448c9['properties']={..._0xf448c9[_0x1e4ffd(0xfb)]||{},'__area':_0x148109};}catch{_0xf448c9['properties']={..._0xf448c9[_0x1e4ffd(0xfb)]||{},'__area':0x0};}return _0xf448c9;})['sort']((_0x161818,_0x114342)=>_0x114342[_0x3c3ed0(0xfb)]['__area']-_0x161818[_0x3c3ed0(0xfb)]['__area'])[_0x3c3ed0(0xee)](_0x11833e=>_0x11833e[_0x3c3ed0(0xfb)]&&_0x3c3ed0(0xd3)in _0x11833e[_0x3c3ed0(0xfb)]&&_0x11833e['properties']['__area']!==0x0)[_0x3c3ed0(0xe7)](_0x112b06=>{const _0x486153=_0x3c3ed0;if(_0x112b06[_0x486153(0xfb)]&&_0x486153(0xd3)in _0x112b06[_0x486153(0xfb)]){const {__area:_0x1e9c8f,..._0x55be81}=_0x112b06[_0x486153(0xfb)];_0x112b06['properties']=_0x55be81;}return _0x112b06;});}[a3_0x24c936(0xba)]=(_0x4d97ce,_0x3378f4)=>{const _0x310bc7=a3_0x24c936,_0x3a60c0=[],_0x306f8d=Math['max'](0x1,Math[_0x310bc7(0xf7)](_0x4d97ce[_0x310bc7(0xf3)]/_0x3378f4));for(let _0xe7a060=0x0;_0xe7a060<_0x3378f4;_0xe7a060++){_0x3a60c0[_0x310bc7(0xf5)](_0x4d97ce[_0x310bc7(0xe0)](_0xe7a060*_0x306f8d,(_0xe7a060+0x1)*_0x306f8d));}return _0x3a60c0;};}function a3_0x3954(_0x4c3c00,_0x36afbd){const _0x36c2d3=a3_0x36c2();return a3_0x3954=function(_0x39544b,_0x47dc04){_0x39544b=_0x39544b-0xb1;let _0x33556a=_0x36c2d3[_0x39544b];return _0x33556a;},a3_0x3954(_0x4c3c00,_0x36afbd);}export default readFileM4;
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "m4-w-fast",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
14
|
-
"./intersect.worker.js": "./dist/intersect.worker.js"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build:types": "tsc -p tsconfig.build.json",
|
|
18
|
-
"obfuscate": "javascript-obfuscator dist --output dist",
|
|
19
|
-
"build": "npm run build:types && npm run build:rollup && npm run obfuscate",
|
|
20
|
-
"prepublishOnly": "npm run build",
|
|
21
|
-
"build:rollup": "rollup -c"
|
|
22
|
-
},
|
|
23
|
-
"author": "wangrl",
|
|
24
|
-
"license": "ISC",
|
|
25
|
-
"type": "module",
|
|
26
|
-
"files": [
|
|
27
|
-
"dist",
|
|
28
|
-
"package.json",
|
|
29
|
-
"README.md"
|
|
30
|
-
],
|
|
31
|
-
"keywords": [
|
|
32
|
-
"m4",
|
|
33
|
-
"turf"
|
|
34
|
-
],
|
|
35
|
-
"publishConfig": {
|
|
36
|
-
"registry": "https://registry.npmjs.org/"
|
|
37
|
-
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"@turf/turf": "^6.5.0",
|
|
40
|
-
"d3-contour": "^4"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@turf/area": "^7.2.0",
|
|
44
|
-
"@turf/isobands": "^7.2.0",
|
|
45
|
-
"@turf/isolines": "^7.2.0",
|
|
46
|
-
"@turf/turf": "^6.5.0",
|
|
47
|
-
"d3-contour": "^4",
|
|
48
|
-
"decimal.js": "^10.6.0"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@rollup/plugin-commonjs": "^29.0.0",
|
|
52
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
53
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
54
|
-
"@tsconfig/node20": "^20.1.2",
|
|
55
|
-
"@types/big.js": "^6.2.2",
|
|
56
|
-
"@types/d3-contour": "^3.0.6",
|
|
57
|
-
"@types/geojson": "latest",
|
|
58
|
-
"esbuild": "^0.25.11",
|
|
59
|
-
"javascript-obfuscator": "^4.1.1",
|
|
60
|
-
"rollup": "^4.52.5",
|
|
61
|
-
"typescript": "latest"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "m4-w-fast",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./isoBands.worker.js": "./dist/isoBands.worker.js",
|
|
14
|
+
"./intersect.worker.js": "./dist/intersect.worker.js"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
18
|
+
"obfuscate": "javascript-obfuscator dist --output dist",
|
|
19
|
+
"build": "npm run build:types && npm run build:rollup && npm run obfuscate",
|
|
20
|
+
"prepublishOnly": "npm run build",
|
|
21
|
+
"build:rollup": "rollup -c"
|
|
22
|
+
},
|
|
23
|
+
"author": "wangrl",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"package.json",
|
|
29
|
+
"README.md"
|
|
30
|
+
],
|
|
31
|
+
"keywords": [
|
|
32
|
+
"m4",
|
|
33
|
+
"turf"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@turf/turf": "^6.5.0",
|
|
40
|
+
"d3-contour": "^4"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@turf/area": "^7.2.0",
|
|
44
|
+
"@turf/isobands": "^7.2.0",
|
|
45
|
+
"@turf/isolines": "^7.2.0",
|
|
46
|
+
"@turf/turf": "^6.5.0",
|
|
47
|
+
"d3-contour": "^4",
|
|
48
|
+
"decimal.js": "^10.6.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
53
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
54
|
+
"@tsconfig/node20": "^20.1.2",
|
|
55
|
+
"@types/big.js": "^6.2.2",
|
|
56
|
+
"@types/d3-contour": "^3.0.6",
|
|
57
|
+
"@types/geojson": "latest",
|
|
58
|
+
"esbuild": "^0.25.11",
|
|
59
|
+
"javascript-obfuscator": "^4.1.1",
|
|
60
|
+
"rollup": "^4.52.5",
|
|
61
|
+
"typescript": "latest"
|
|
62
|
+
}
|
|
63
|
+
}
|