m4-w-fast 1.0.3 → 1.0.5

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.
@@ -1,84 +1,156 @@
1
- import type { FeatureCollection, Polygon, MultiPolygon, GeoJsonProperties } from 'geojson';
2
- export declare class _readFileDiamond4 {
1
+ import type { Feature, FeatureCollection, Polygon, MultiPolygon, GeoJsonProperties } from 'geojson';
2
+ export declare class readFileM4 {
3
3
  filePath: string;
4
- json: JSONData[];
5
- gjLng: number;
6
- gjLat: number;
7
- lngLineNum: number;
8
- latLineNum: number;
4
+ nx: number;
5
+ ny: number;
9
6
  minLng: number;
10
7
  minLat: number;
11
- jsonMap: Map<string, number>;
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
- constructor(filePath: string);
17
- start(config?: ReadConfig): Promise<"该时次未获取到文件" | "该时次文件数据异常" | undefined>;
18
- getJson(): JSONData[];
19
- setJson(json: JSONData[]): void;
20
- getBreaks(): number[];
21
- getGridPoints(): import("@turf/helpers").FeatureCollection<import("@turf/helpers").Point, import("@turf/helpers").Properties>;
22
- getIsoLines(breaks?: number[]): FeatureCollection<import("geojson").MultiLineString, GeoJsonProperties>;
23
- getIsoBands(breaks?: number[]): FeatureCollection<MultiPolygon, GeoJsonProperties>;
24
- getIsoColor(z: string, level: number[], color: (number[] | string)[]): string;
25
- /**
26
- * fast 模式
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<unknown>;
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?: number[]): FeatureCollection;
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
- * fast 模式,获取某一层或所有层的等值带,多次调用会缓存结果
33
- * 如果需要获取不同 breaks 的结果,需要先调用 clearMaskCache 清除缓存
68
+ * 获取等值带 (支持按层获取或全部层合并获取)
69
+ * - 单层因为数据丢失可能不准确
34
70
  * @param breaks
35
71
  * @param layerLower
36
72
  */
37
- getIsoBandsByLayerBreak: (breaks?: number[], layerLower?: number) => FeatureCollection;
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[];
82
+ /**
83
+ * 获取最大最小值
84
+ * @private
85
+ */
86
+ private getMinMax;
87
+ /**
88
+ * 获取分级
89
+ * @private
90
+ */
91
+ private getBreaks;
38
92
  /**
39
- * 适配fast模式的取色
40
- * @param z
41
- * @param level
42
- * @param color
93
+ * 按面积排序
94
+ * @param fc
95
+ * @private
43
96
  */
44
- getColorFast(z: number, level: number[], color: (number[] | string)[]): string;
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
- clipDataByJson: (iosBands: FeatureCollection, json: FeatureCollection, intersectWorkerUrl: string) => Promise<import("@turf/helpers").FeatureCollection<Polygon | MultiPolygon, GeoJsonProperties>>;
58
- getIsoBandsFastByWorker: (breaks: number[] | undefined, bandsWorkerUrl: string) => Promise<FeatureCollection>;
59
- getIsoBandsFastBase: (breaks?: number[]) => {
60
- type: string;
61
- features: never[];
62
- values?: undefined;
63
- breaks?: undefined;
64
- nx?: undefined;
65
- ny?: undefined;
66
- } | {
67
- values: number[];
68
- breaks: number[];
69
- nx: number;
70
- ny: number;
71
- type?: undefined;
72
- features?: undefined;
73
- };
74
- private sortFeaturesByArea;
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
- interface ReadConfig {
82
- convertTemKtoC: boolean;
83
- }
84
- export default _readFileDiamond4;
156
+ export default readFileM4;
package/dist/readFile.js CHANGED
@@ -1 +1 @@
1
- const a3_0x18cdf3=a3_0x2ba9;(function(_0x226380,_0x582047){const _0x26b6df=a3_0x2ba9,_0x82f293=_0x226380();while(!![]){try{const _0x5df156=-parseInt(_0x26b6df(0x1ac))/0x1+parseInt(_0x26b6df(0x1d5))/0x2+-parseInt(_0x26b6df(0x1ae))/0x3*(parseInt(_0x26b6df(0x1c5))/0x4)+parseInt(_0x26b6df(0x1a3))/0x5*(parseInt(_0x26b6df(0x1c7))/0x6)+-parseInt(_0x26b6df(0x1c2))/0x7+parseInt(_0x26b6df(0x1b6))/0x8+-parseInt(_0x26b6df(0x1a6))/0x9;if(_0x5df156===_0x582047)break;else _0x82f293['push'](_0x82f293['shift']());}catch(_0x118a4b){_0x82f293['push'](_0x82f293['shift']());}}}(a3_0x41a2,0x541ed));function a3_0x2ba9(_0x54fff2,_0x4efac1){const _0x41a231=a3_0x41a2();return a3_0x2ba9=function(_0x2ba9b5,_0xf4f334){_0x2ba9b5=_0x2ba9b5-0x1a3;let _0x11d2bd=_0x41a231[_0x2ba9b5];return _0x11d2bd;},a3_0x2ba9(_0x54fff2,_0x4efac1);}import{points as a3_0x8ef7e,featureCollection as a3_0x523364}from'@turf/helpers';import a3_0x3e5aab from'@turf/isolines';import a3_0xb0d9d from'@turf/isobands';import a3_0x1af063 from'@turf/area';import a3_0x1267b0 from'decimal.js';function a3_0x41a2(){const _0x475002=['replace','abs','maxVal','split','592291jiKscj','Polygon','from','16HhPSvs','lat','406302qjIwZa','map','contours','onerror','undefined','error','convertTemKtoC','getGridPoints','length','geometry','push','getIsoBandsFast','getIsoLines','getIsoBandsFastBase','976336SlpIKZ','minLng','getIsoBandsByLayerBreak','properties','terminate','max','__area','gjLng','rgba(255,255,255,0)','ring','该时次未获取到文件','data','minVal','Feature','isArray','FeatureCollection','thresholds','clipDataByJson','getColorFast','json','set','toNumber','jsonMap','size','chunkArray','hardwareConcurrency','times','get','all','floor','clearMaskCache','filePath','sortFeaturesByArea','flat','min','values','indexOf','number','postMessage','val','breaks','getBreaks','minLat','20qXqJJR','rgba(','isNaN','749898KjBoFA','lngLineNum','clear','module','features','gjLat','56940cMwYPe','forEach','154221ebJajk','_maskCache','area','lng','plus','getIsoBandsFastByWorker','latLineNum','setJson','128192YSMqiI','coordinates','sort','string','start','onmessage','ceil','getIsoBands'];a3_0x41a2=function(){return _0x475002;};return a3_0x41a2();}import{contours}from'd3-contour';export class _readFileDiamond4{[a3_0x18cdf3(0x1f4)];['json']=[];[a3_0x18cdf3(0x1dc)]=0x0;[a3_0x18cdf3(0x1ab)]=0x0;[a3_0x18cdf3(0x1a7)]=0x0;['latLineNum']=0x0;[a3_0x18cdf3(0x1d6)]=0x0;[a3_0x18cdf3(0x1ff)]=0x0;[a3_0x18cdf3(0x1eb)]=new Map();[a3_0x18cdf3(0x1c0)]=-Infinity;['minVal']=Infinity;['_maskCacheKey']='';[a3_0x18cdf3(0x1af)]=new Map();constructor(_0x3d8003){const _0x34f428=a3_0x18cdf3;this[_0x34f428(0x1f4)]=_0x3d8003;}async[a3_0x18cdf3(0x1ba)](_0x5c27b9){const _0xce6dbd=a3_0x18cdf3,_0x1a3c5a=await fetch(this['filePath']);if(!_0x1a3c5a['ok'])return _0xce6dbd(0x1df);const _0x100b70=await _0x1a3c5a['text'](),_0xce9c1f=_0x100b70[_0xce6dbd(0x1be)](/\r\n/g,'\x0a')[_0xce6dbd(0x1be)](/\r/g,'\x0a')[_0xce6dbd(0x1c1)]('\x0a');if(_0xce9c1f['length']<0x4)return'该时次文件数据异常';const _0x3f927f=(_0xce9c1f[0x1]??'')['trim']()[_0xce6dbd(0x1c1)](/\s+/);let _0x18e0c8=0x2;while(_0x3f927f[_0xce6dbd(0x1cf)]<0x13){_0x3f927f[_0xce6dbd(0x1d1)](...(_0xce9c1f[_0x18e0c8]??'')['trim']()['split'](/\s+/)),_0x18e0c8++;}this[_0xce6dbd(0x1dc)]=Number(_0x3f927f[0x6]);const _0x422287=Number(_0x3f927f[0x8]),_0x45acbe=Number(_0x3f927f[0xa]),_0x4a1e28=Number(_0x3f927f[0xb]);this[_0xce6dbd(0x1a7)]=Number(_0x3f927f[0xc]),this[_0xce6dbd(0x1b4)]=Number(_0x3f927f[0xd]),this[_0xce6dbd(0x1d6)]=_0x422287,this[_0xce6dbd(0x1ff)]=_0x45acbe,this[_0xce6dbd(0x1ab)]=Math['abs'](Number(_0x3f927f[0x7]))*(_0x45acbe>_0x4a1e28?-0x1:0x1);const _0x2066c5=this[_0xce6dbd(0x1a7)],_0x3c252e=this[_0xce6dbd(0x1b4)],_0x16ffa9=_0x2066c5*_0x3c252e;if(_0x16ffa9===0x0)return;const _0x3de32a=Array['from']({'length':this[_0xce6dbd(0x1a7)]});for(let _0x3c36f0=0x0;_0x3c36f0<this[_0xce6dbd(0x1a7)];_0x3c36f0++){_0x3de32a[_0x3c36f0]=new a3_0x1267b0(_0x422287)[_0xce6dbd(0x1b2)](new a3_0x1267b0(_0x3c36f0)[_0xce6dbd(0x1ef)](this[_0xce6dbd(0x1dc)]))[_0xce6dbd(0x1ea)]();}const _0x347e56=Array['from']({'length':this[_0xce6dbd(0x1b4)]});for(let _0x391ef7=0x0;_0x391ef7<this[_0xce6dbd(0x1b4)];_0x391ef7++){_0x347e56[_0x391ef7]=new a3_0x1267b0(_0x45acbe)[_0xce6dbd(0x1b2)](new a3_0x1267b0(_0x391ef7)[_0xce6dbd(0x1ef)](this[_0xce6dbd(0x1ab)]))[_0xce6dbd(0x1ea)]();}this['json']=Array[_0xce6dbd(0x1c4)]({'length':this[_0xce6dbd(0x1a7)]*this[_0xce6dbd(0x1b4)]});let _0x1bcc34=0x0;for(let _0x432940=_0x18e0c8;_0x432940<_0xce9c1f['length']&&_0x1bcc34<_0x16ffa9;_0x432940++){const _0x1fdd6a=_0xce9c1f[_0x432940]??'',_0x71367=_0x1fdd6a['trim']()[_0xce6dbd(0x1c1)](/\s+/);if(!_0x71367)continue;for(let _0x560c40=0x0;_0x560c40<_0x71367[_0xce6dbd(0x1cf)];_0x560c40++){let _0xb179c8=Number(_0x71367[_0x560c40]);_0x5c27b9?.[_0xce6dbd(0x1cd)]&&(_0xb179c8=new a3_0x1267b0(_0xb179c8)['minus'](272.15)[_0xce6dbd(0x1ea)]());this[_0xce6dbd(0x1c0)]=Math['max'](this[_0xce6dbd(0x1c0)],_0xb179c8),this[_0xce6dbd(0x1e1)]=Math[_0xce6dbd(0x1f7)](this[_0xce6dbd(0x1e1)],_0xb179c8);const _0x3853ce=Math[_0xce6dbd(0x1f2)](_0x1bcc34/_0x2066c5),_0x5daf3a=_0x1bcc34%_0x2066c5,_0x32711e=_0x3de32a[_0x5daf3a],_0x135fb6=_0x347e56[_0x3853ce];_0x135fb6&&_0x32711e&&(this['json'][_0x1bcc34]={'lat':_0x135fb6,'lng':_0x32711e,'val':_0xb179c8}),_0x1bcc34++;}}this[_0xce6dbd(0x1e8)]=this['json']['filter'](_0x3f4b84=>_0x3f4b84!==undefined);}['getJson'](){const _0xd47927=a3_0x18cdf3;return this[_0xd47927(0x1e8)];}[a3_0x18cdf3(0x1b5)](_0x259594){const _0x2566cb=a3_0x18cdf3;this[_0x2566cb(0x1e8)]=_0x259594,this[_0x2566cb(0x1eb)]=new Map(),this[_0x2566cb(0x1e8)]['forEach'](_0x19471d=>{const _0x38397a=_0x2566cb;this[_0x38397a(0x1eb)][_0x38397a(0x1e9)](_0x19471d['lng']+'-'+_0x19471d[_0x38397a(0x1c6)],_0x19471d[_0x38397a(0x1fc)]);});}[a3_0x18cdf3(0x1fe)](){const _0x3f08fe=a3_0x18cdf3,_0x4ba12c=Math[_0x3f08fe(0x1da)](...this['json'][_0x3f08fe(0x1c8)](_0x2e0ac3=>_0x2e0ac3[_0x3f08fe(0x1fc)])),_0x5b483a=Math[_0x3f08fe(0x1f7)](...this['json']['map'](_0x4958ac=>_0x4958ac['val'])),_0x426da0=[];for(let _0x305520=_0x5b483a-0x1;_0x305520<_0x4ba12c+0x1;_0x305520++){_0x426da0[_0x3f08fe(0x1d1)](_0x305520);}return _0x426da0;}[a3_0x18cdf3(0x1ce)](){const _0x2bb88a=a3_0x18cdf3,_0x20d490=this[_0x2bb88a(0x1e8)]['map'](_0x50d1c8=>[_0x50d1c8[_0x2bb88a(0x1b1)],_0x50d1c8[_0x2bb88a(0x1c6)]]),_0x4abdab=a3_0x8ef7e(_0x20d490),_0x435b62=this[_0x2bb88a(0x1eb)];return _0x4abdab['features']['forEach'](_0x503dff=>{const _0x5433ce=_0x2bb88a;_0x503dff[_0x5433ce(0x1d8)]={'z':_0x435b62['get'](_0x503dff[_0x5433ce(0x1d0)][_0x5433ce(0x1b7)][0x0]+'-'+_0x503dff[_0x5433ce(0x1d0)]['coordinates'][0x1])||0x0};}),_0x4abdab;}[a3_0x18cdf3(0x1d3)](_0x49e5ad=[]){const _0x382d39=a3_0x18cdf3;_0x49e5ad['length']===0x0&&(_0x49e5ad=this[_0x382d39(0x1fe)]());const _0x382199=this['getGridPoints']();return a3_0x3e5aab(_0x382199,_0x49e5ad,{'zProperty':'z'});}[a3_0x18cdf3(0x1bd)](_0x315cb8=[]){const _0x58ec91=a3_0x18cdf3;_0x315cb8['length']===0x0&&(_0x315cb8=this[_0x58ec91(0x1fe)]());const _0x2e6c9f=this[_0x58ec91(0x1ce)]();return a3_0xb0d9d(_0x2e6c9f,_0x315cb8,{'zProperty':'z'});}['getIsoColor'](_0x3775f7,_0xa61abd,_0x47529f){const _0x3f85a2=a3_0x18cdf3;let _0x599fba=_0x3f85a2(0x1dd);for(let _0x44211a=0x0;_0x44211a<_0xa61abd[_0x3f85a2(0x1cf)]-0x1;_0x44211a++){_0x44211a<_0xa61abd[_0x3f85a2(0x1cf)]-0x1&&(_0xa61abd[_0x44211a]+'-'+_0xa61abd[_0x44211a+0x1]===_0x3775f7&&(typeof _0x47529f[_0x44211a]=='string'?_0x599fba=_0x47529f[_0x44211a]:_0x599fba=_0x3f85a2(0x1a4)+_0x47529f[_0x44211a][0x0]+','+_0x47529f[_0x44211a][0x1]+','+_0x47529f[_0x44211a][0x2]+','+(_0x47529f[_0x44211a][0x3]||_0x47529f[_0x44211a][0x3]===0x0?_0x47529f[_0x44211a][0x3]:0x1)+')'));}return _0x599fba;}[a3_0x18cdf3(0x1d2)](_0x5b73d4=[]){const _0x5e61d1=a3_0x18cdf3,_0x321e3b=this[_0x5e61d1(0x1d4)](_0x5b73d4);let _0x405339=[];const {values:_0x580eea,nx:_0x21f104,ny:_0x2b8f49}=_0x321e3b;_0x5b73d4=_0x321e3b['breaks'];if(!_0x580eea)return{'type':_0x5e61d1(0x1e4),'features':[]};const _0x1d4ff7=contours()[_0x5e61d1(0x1ec)]([_0x21f104,_0x2b8f49]);for(let _0x9aea68=0x0;_0x9aea68<_0x5b73d4[_0x5e61d1(0x1cf)];_0x9aea68++){const _0x539410=_0x5b73d4[_0x9aea68];if(_0x539410<this[_0x5e61d1(0x1e1)]||_0x539410>this[_0x5e61d1(0x1c0)])continue;const _0x5f4494=_0x1d4ff7['contour'](_0x580eea,_0x539410);if(!_0x5f4494||!_0x5f4494[_0x5e61d1(0x1b7)])continue;for(const _0x5380f2 of _0x5f4494[_0x5e61d1(0x1b7)]){let _0x22cea4=[];if(Array[_0x5e61d1(0x1e3)](_0x5380f2)&&_0x5380f2[_0x5e61d1(0x1cf)]>0x0&&Array[_0x5e61d1(0x1e3)](_0x5380f2[0x0])&&typeof _0x5380f2[0x0][0x0]===_0x5e61d1(0x1fa))_0x22cea4=[_0x5380f2];else{if(Array[_0x5e61d1(0x1e3)](_0x5380f2))_0x22cea4=_0x5380f2;else continue;}for(const _0x280027 of _0x22cea4){const _0x2dd4f5=_0x280027[_0x5e61d1(0x1c8)](_0x321fcc=>{const _0x340712=_0x5e61d1,_0x13632c=_0x321fcc[0x0],_0x2a0ace=_0x321fcc[0x1];if(_0x13632c==null||_0x2a0ace==null||Number[_0x340712(0x1a5)](_0x13632c)||Number[_0x340712(0x1a5)](_0x2a0ace))return null;const _0x579545=new a3_0x1267b0(this[_0x340712(0x1d6)])[_0x340712(0x1b2)](new a3_0x1267b0(_0x13632c)['times'](this['gjLng']))[_0x340712(0x1ea)](),_0x35d948=new a3_0x1267b0(this['minLat'])['plus'](new a3_0x1267b0(_0x2a0ace)[_0x340712(0x1ef)](this[_0x340712(0x1ab)]))[_0x340712(0x1ea)]();return[_0x579545,_0x35d948];})['filter'](_0x252d3c=>_0x252d3c!==null),_0x57b9aa=_0x2dd4f5['filter']((_0x7269c,_0x9b61c4,_0x48cbdf)=>{if(_0x9b61c4===0x0)return!![];const _0x2168e3=_0x48cbdf[_0x9b61c4-0x1];return!(_0x7269c[0x0]===_0x2168e3[0x0]&&_0x7269c[0x1]===_0x2168e3[0x1]);});if(_0x57b9aa[_0x5e61d1(0x1cf)]<0x3)continue;const _0xe7e20d=_0x57b9aa[0x0],_0x5456dd=_0x57b9aa[_0x57b9aa[_0x5e61d1(0x1cf)]-0x1];(_0xe7e20d[0x0]!==_0x5456dd[0x0]||_0xe7e20d[0x1]!==_0x5456dd[0x1])&&_0x57b9aa[_0x5e61d1(0x1d1)]([_0xe7e20d[0x0],_0xe7e20d[0x1]]),_0x405339[_0x5e61d1(0x1d1)]({'type':'Feature','properties':{'z':_0x539410},'geometry':{'type':_0x5e61d1(0x1c3),'coordinates':[_0x57b9aa]}});}}}return _0x405339=this[_0x5e61d1(0x1f5)](_0x405339),{'type':_0x5e61d1(0x1e4),'features':_0x405339};}[a3_0x18cdf3(0x1f3)](){const _0x40d1e3=a3_0x18cdf3;this[_0x40d1e3(0x1af)][_0x40d1e3(0x1a8)]();}[a3_0x18cdf3(0x1d7)]=(_0x3793eb=[],_0x457ce1)=>{const _0x222732=a3_0x18cdf3;if(typeof _0x457ce1!==_0x222732(0x1cb)&&this[_0x222732(0x1af)]['get'](_0x457ce1)){const _0x418f3e=this[_0x222732(0x1af)][_0x222732(0x1f0)](_0x457ce1)||[],_0x48f759=this[_0x222732(0x1f5)]?this[_0x222732(0x1f5)](_0x418f3e):_0x418f3e;return{'type':_0x222732(0x1e4),'features':_0x48f759};}const _0x45d1ad=this[_0x222732(0x1d4)](_0x3793eb);if(!_0x45d1ad||!_0x45d1ad[_0x222732(0x1f8)])return{'type':_0x222732(0x1e4),'features':[]};const {values:_0x908b21,nx:_0x4e91de,ny:_0x368330}=_0x45d1ad,_0x206347=_0x45d1ad['breaks']||_0x3793eb;if(!_0x908b21||!_0x4e91de||!_0x368330||!_0x206347||_0x206347[_0x222732(0x1cf)]===0x0)return{'type':_0x222732(0x1e4),'features':[]};const _0x1825ab=_0x206347['join'](',');if(this['_maskCacheKey']!==_0x1825ab){this['_maskCacheKey']=_0x1825ab,this[_0x222732(0x1af)]['clear']();const _0x48daaa=this[_0x222732(0x1d6)],_0x521e95=this[_0x222732(0x1ff)],_0x4d2a5d=this['gjLng'],_0x3c07b2=this[_0x222732(0x1ab)],_0x2034ed=_0x526ba2=>{const _0x5d2069=_0x222732;let _0x50874b=0x0;for(let _0xb382c2=0x0,_0x1e2980=_0x526ba2[_0x5d2069(0x1cf)];_0xb382c2<_0x1e2980;_0xb382c2++){const _0x1a72e3=_0x526ba2[_0xb382c2][0x0],_0x5cb2cd=_0x526ba2[_0xb382c2][0x1],_0x496d75=_0x526ba2[(_0xb382c2+0x1)%_0x1e2980][0x0],_0x4ec39a=_0x526ba2[(_0xb382c2+0x1)%_0x1e2980][0x1];if(_0x1a72e3==null||_0x5cb2cd==null||_0x496d75==null||_0x4ec39a==null)continue;_0x50874b+=_0x1a72e3*_0x4ec39a-_0x496d75*_0x5cb2cd;}return _0x50874b/0x2;},_0x4489a2=(_0x54ef2d,_0x7dddb0)=>{const _0x414304=_0x222732;if(!_0x54ef2d)return![];const _0x147f65=_0x54ef2d[0x0],_0x52e15e=_0x54ef2d[0x1];let _0x5e57f0=![];for(let _0x19eca9=0x0,_0x3ad160=_0x7dddb0['length']-0x1;_0x19eca9<_0x7dddb0[_0x414304(0x1cf)];_0x3ad160=_0x19eca9++){const _0x38458d=_0x7dddb0[_0x19eca9][0x0],_0x19875d=_0x7dddb0[_0x19eca9][0x1],_0x136ec8=_0x7dddb0[_0x3ad160][0x0],_0x444499=_0x7dddb0[_0x3ad160][0x1],_0x4d799f=_0x19875d>_0x52e15e!==_0x444499>_0x52e15e&&_0x147f65<(_0x136ec8-_0x38458d)*(_0x52e15e-_0x19875d)/(_0x444499-_0x19875d)+_0x38458d;if(_0x4d799f)_0x5e57f0=!_0x5e57f0;}return _0x5e57f0;},_0x40e25f=_0x2249ee=>{const _0x10df87=_0x222732,_0x7ba3b1=[];let _0x481d02=null,_0xb1ac57=null;for(let _0x2afb49=0x0;_0x2afb49<_0x2249ee[_0x10df87(0x1cf)];_0x2afb49++){const _0xa8de96=_0x2249ee[_0x2afb49];if(!_0xa8de96)continue;const _0x1b89fe=_0xa8de96[0x0],_0x4e7ff7=_0xa8de96[0x1];if(_0x1b89fe==null||_0x4e7ff7==null||Number[_0x10df87(0x1a5)](_0x1b89fe)||Number[_0x10df87(0x1a5)](_0x4e7ff7))continue;const _0xb47924=_0x48daaa+_0x1b89fe*_0x4d2a5d,_0x3f0313=_0x521e95+_0x4e7ff7*_0x3c07b2;if(_0x481d02!==null&&_0xb1ac57!==null&&_0x481d02===_0xb47924&&_0xb1ac57===_0x3f0313){_0x481d02=_0xb47924,_0xb1ac57=_0x3f0313;continue;}_0x7ba3b1[_0x10df87(0x1d1)]([_0xb47924,_0x3f0313]),_0x481d02=_0xb47924,_0xb1ac57=_0x3f0313;}if(_0x7ba3b1[_0x10df87(0x1cf)]===0x0)return _0x7ba3b1;const _0x41db1a=_0x7ba3b1[0x0],_0x3c4c32=_0x7ba3b1[_0x7ba3b1[_0x10df87(0x1cf)]-0x1];if(_0x41db1a[0x0]!==_0x3c4c32[0x0]||_0x41db1a[0x1]!==_0x3c4c32[0x1])_0x7ba3b1['push']([_0x41db1a[0x0],_0x41db1a[0x1]]);return _0x7ba3b1;},_0x24a687=_0x206347[_0x222732(0x1cf)]-0x1;for(let _0x46d966=0x0;_0x46d966<_0x206347[_0x222732(0x1cf)];_0x46d966++){const _0x5b4c27=_0x206347[_0x46d966],_0x4025a5=_0x46d966<_0x24a687?_0x206347[_0x46d966+0x1]:Infinity,_0x3a9930=Array[_0x222732(0x1c4)]({'length':_0x908b21[_0x222732(0x1cf)]});let _0x37bed8=![];for(let _0x1a2e6d=0x0;_0x1a2e6d<_0x908b21[_0x222732(0x1cf)];_0x1a2e6d++){const _0x306745=_0x908b21[_0x1a2e6d],_0x55c3a5=_0x306745>=_0x5b4c27&&_0x306745<_0x4025a5?0x1:0x0;if(_0x55c3a5)_0x37bed8=!![];_0x3a9930[_0x1a2e6d]=_0x55c3a5;}if(!_0x37bed8)continue;const _0x264cf3=contours()['size']([_0x4e91de,_0x368330])[_0x222732(0x1e5)]([0.5]),_0x2f42d1=_0x264cf3[_0x222732(0x1c9)]?_0x264cf3['contours'](_0x3a9930):_0x264cf3(_0x3a9930);if(!_0x2f42d1||_0x2f42d1[_0x222732(0x1cf)]===0x0)continue;const _0x2ef8f2=[];for(const _0x536707 of _0x2f42d1){const _0x583d99=_0x536707&&_0x536707[_0x222732(0x1b7)];if(!_0x583d99)continue;for(const _0x9d40e7 of _0x583d99){let _0x1c564d=[];if(Array[_0x222732(0x1e3)](_0x9d40e7)&&_0x9d40e7[_0x222732(0x1cf)]>0x0&&typeof _0x9d40e7[0x0][0x0]===_0x222732(0x1fa))_0x1c564d=[_0x9d40e7];else{if(Array[_0x222732(0x1e3)](_0x9d40e7))_0x1c564d=_0x9d40e7;else continue;}const _0x3966f1=_0x1c564d['map'](_0x372c9e=>({'ring':_0x372c9e,'area':Math[_0x222732(0x1bf)](_0x2034ed(_0x372c9e))}))[_0x222732(0x1b8)]((_0x2cdfd4,_0x2d96e3)=>_0x2d96e3[_0x222732(0x1b0)]-_0x2cdfd4[_0x222732(0x1b0)]),_0x4e7cc3=Array[_0x222732(0x1c4)]({'length':_0x3966f1[_0x222732(0x1cf)]})['fill'](![]);for(let _0x4138d9=0x0;_0x4138d9<_0x3966f1[_0x222732(0x1cf)];_0x4138d9++){if(_0x4e7cc3[_0x4138d9])continue;const _0xe33ff4=_0x3966f1[_0x4138d9][_0x222732(0x1de)];_0x4e7cc3[_0x4138d9]=!![];const _0xe87e7e=[];for(let _0x55b4e0=0x0;_0x55b4e0<_0x3966f1['length'];_0x55b4e0++){if(_0x4e7cc3[_0x55b4e0])continue;const _0x405434=_0x3966f1[_0x55b4e0][_0x222732(0x1de)],_0x1b8e00=_0x405434[0x0];_0x1b8e00&&_0x4489a2(_0x1b8e00,_0xe33ff4)&&(_0xe87e7e[_0x222732(0x1d1)](_0x405434),_0x4e7cc3[_0x55b4e0]=!![]);}const _0x5892f3=_0x40e25f(_0xe33ff4);if(_0x5892f3[_0x222732(0x1cf)]<0x4)continue;const _0x10bf97=[];for(const _0x1e8e78 of _0xe87e7e){const _0x3ae9fa=_0x40e25f(_0x1e8e78);if(_0x3ae9fa[_0x222732(0x1cf)]>=0x4)_0x10bf97['push'](_0x3ae9fa);}_0x2ef8f2[_0x222732(0x1d1)]({'type':_0x222732(0x1e2),'properties':{'z':_0x5b4c27},'geometry':{'type':_0x222732(0x1c3),'coordinates':[_0x5892f3,..._0x10bf97]}});}}}_0x2ef8f2[_0x222732(0x1cf)]&&this[_0x222732(0x1af)]['set'](_0x5b4c27,_0x2ef8f2);}}if(typeof _0x457ce1!==_0x222732(0x1cb)){const _0x5d618f=this[_0x222732(0x1af)][_0x222732(0x1f0)](_0x457ce1)||[],_0x4abc24=this[_0x222732(0x1f5)]?this[_0x222732(0x1f5)](_0x5d618f):_0x5d618f;return{'type':_0x222732(0x1e4),'features':_0x4abc24};}const _0x254706=[];for(const _0x312d45 of this['_maskCache']['values']()){_0x254706[_0x222732(0x1d1)](..._0x312d45);}const _0x420f24=this[_0x222732(0x1f5)]?this[_0x222732(0x1f5)](_0x254706):_0x254706;return{'type':_0x222732(0x1e4),'features':_0x420f24};};[a3_0x18cdf3(0x1e7)](_0x12a45c,_0x5c12c8,_0x434213){const _0x4dfc92=a3_0x18cdf3;let _0x4fc167=_0x4dfc92(0x1dd);const _0x344811=_0x5c12c8[_0x4dfc92(0x1f9)](_0x12a45c);if(typeof _0x434213[_0x344811]==_0x4dfc92(0x1b9))_0x4fc167=_0x434213[_0x344811];else _0x344811!==-0x1&&(_0x4fc167=_0x4dfc92(0x1a4)+_0x434213[_0x344811][0x0]+','+_0x434213[_0x344811][0x1]+','+_0x434213[_0x344811][0x2]+','+(_0x434213[_0x344811][0x3]||_0x434213[_0x344811][0x3]===0x0?_0x434213[_0x344811][0x3]:0x1)+')');return _0x4fc167;}['chunkArray']=(_0x39d923,_0x493f5b)=>{const _0xfc3d5e=a3_0x18cdf3,_0x2808b2=[],_0xd8ed29=Math[_0xfc3d5e(0x1da)](0x1,Math[_0xfc3d5e(0x1bc)](_0x39d923[_0xfc3d5e(0x1cf)]/_0x493f5b));for(let _0x2b5871=0x0;_0x2b5871<_0x493f5b;_0x2b5871++){_0x2808b2[_0xfc3d5e(0x1d1)](_0x39d923['slice'](_0x2b5871*_0xd8ed29,(_0x2b5871+0x1)*_0xd8ed29));}return _0x2808b2;};[a3_0x18cdf3(0x1e6)]=async(_0x609131,_0x16f13d,_0x486277)=>{const _0x2a3246=a3_0x18cdf3,_0x309668=navigator['hardwareConcurrency']-0x4||0x1,_0x251397=Math[_0x2a3246(0x1f7)](_0x309668,Math[_0x2a3246(0x1da)](0x1,_0x609131[_0x2a3246(0x1aa)][_0x2a3246(0x1cf)])),_0x5285c1=this[_0x2a3246(0x1ed)](_0x609131[_0x2a3246(0x1aa)],_0x251397),_0x24c6b4=[],_0x53e132=_0x5285c1[_0x2a3246(0x1c8)](_0x396676=>{const _0x85092e=_0x2a3246,_0x2f4e1a=new Worker(_0x486277,{'type':_0x85092e(0x1a9)});return _0x24c6b4[_0x85092e(0x1d1)](_0x2f4e1a),new Promise(_0x1cdac8=>{const _0x5bcbe9=_0x85092e;_0x2f4e1a[_0x5bcbe9(0x1bb)]=_0x34f20a=>{const _0x3e8bef=_0x5bcbe9;_0x1cdac8(_0x34f20a['data'][_0x3e8bef(0x1aa)]);},_0x2f4e1a[_0x5bcbe9(0x1ca)]=_0x2d957d=>{const _0x4be82b=_0x5bcbe9;console[_0x4be82b(0x1cc)](_0x2d957d);},_0x2f4e1a[_0x5bcbe9(0x1fb)]({'isoChunk':_0x396676,'gansuFeatures':_0x16f13d[_0x5bcbe9(0x1aa)]});});}),_0x2c28b2=await Promise[_0x2a3246(0x1f1)](_0x53e132);_0x24c6b4['forEach'](_0x420a7c=>_0x420a7c[_0x2a3246(0x1d9)]());const _0x2e5335=_0x2c28b2[_0x2a3246(0x1f6)]();return a3_0x523364(_0x2e5335);};[a3_0x18cdf3(0x1b3)]=async(_0x4b4d30=[],_0x24593e)=>{const _0x237df1=a3_0x18cdf3,_0x5b8e3a=this[_0x237df1(0x1d4)](_0x4b4d30);let _0x2630a6=[];const {values:_0x4fa4bb,nx:_0x42d62d,ny:_0x18e9c2}=_0x5b8e3a;_0x4b4d30=_0x5b8e3a[_0x237df1(0x1fd)];if(!_0x4fa4bb)return{'type':_0x237df1(0x1e4),'features':[]};const _0x442b0a=[],_0x1b1b30=navigator[_0x237df1(0x1ee)]-0x4||0x1,_0x37f81f=Math[_0x237df1(0x1f7)](_0x1b1b30,Math[_0x237df1(0x1da)](0x1,_0x4b4d30[_0x237df1(0x1cf)])),_0xa12d0a=this['chunkArray'](_0x4b4d30,_0x37f81f),_0x1150d4=_0xa12d0a['map'](_0x8a21ee=>{const _0x31373a=_0x237df1,_0x171584=new Worker(_0x24593e,{'type':_0x31373a(0x1a9)});return _0x442b0a['push'](_0x171584),new Promise(_0x50f711=>{const _0x37d6ca=_0x31373a;_0x171584['onmessage']=_0x49f22d=>{const _0x3fe73d=a3_0x2ba9;_0x50f711(_0x49f22d[_0x3fe73d(0x1e0)][_0x3fe73d(0x1aa)]);},_0x171584[_0x37d6ca(0x1ca)]=_0x7b6439=>{const _0x2ce7d2=_0x37d6ca;console[_0x2ce7d2(0x1cc)](_0x7b6439);},_0x171584['postMessage']({'breaks':_0x8a21ee,'values':_0x4fa4bb,'nx':_0x42d62d,'ny':_0x18e9c2,'minVal':this[_0x37d6ca(0x1e1)],'maxVal':this['maxVal'],'minLng':this[_0x37d6ca(0x1d6)],'minLat':this[_0x37d6ca(0x1ff)],'gjLng':this[_0x37d6ca(0x1dc)],'gjLat':this[_0x37d6ca(0x1ab)]});});}),_0x9b030b=await Promise[_0x237df1(0x1f1)](_0x1150d4);return _0x442b0a['forEach'](_0x3f7ece=>_0x3f7ece[_0x237df1(0x1d9)]()),_0x9b030b[_0x237df1(0x1ad)](_0x1dcd29=>{const _0x3fdc54=_0x237df1;_0x2630a6[_0x3fdc54(0x1d1)](..._0x1dcd29);}),_0x2630a6=this[_0x237df1(0x1f5)](_0x2630a6),{'type':_0x237df1(0x1e4),'features':_0x2630a6};};['getIsoBandsFastBase']=(_0x5ea905=[])=>{const _0x76fbaa=a3_0x18cdf3;if(this[_0x76fbaa(0x1e8)][_0x76fbaa(0x1cf)]===0x0)return{'type':_0x76fbaa(0x1e4),'features':[]};if(_0x5ea905['length']===0x0)_0x5ea905=this['getBreaks']();const _0x5052f4=this[_0x76fbaa(0x1e8)][_0x76fbaa(0x1c8)](_0xf00bc3=>_0xf00bc3[_0x76fbaa(0x1fc)]),_0x491dbd=this[_0x76fbaa(0x1a7)],_0x5b36ab=this[_0x76fbaa(0x1b4)];return{'values':_0x5052f4,'breaks':_0x5ea905,'nx':_0x491dbd,'ny':_0x5b36ab};};['sortFeaturesByArea']=_0x4f729a=>{const _0x5ec77c=a3_0x18cdf3;return _0x4f729a[_0x5ec77c(0x1c8)](_0x37ca96=>{const _0x230268=_0x5ec77c;try{const _0x2b5b9d=a3_0x1af063(_0x37ca96)||0x0;_0x37ca96['properties']={..._0x37ca96[_0x230268(0x1d8)]||{},'__area':_0x2b5b9d};}catch{_0x37ca96[_0x230268(0x1d8)]={..._0x37ca96[_0x230268(0x1d8)]||{},'__area':0x0};}return _0x37ca96;})[_0x5ec77c(0x1b8)]((_0x2bd17d,_0xb49305)=>_0xb49305[_0x5ec77c(0x1d8)][_0x5ec77c(0x1db)]-_0x2bd17d['properties'][_0x5ec77c(0x1db)])['filter'](_0x1fd0a5=>_0x1fd0a5[_0x5ec77c(0x1d8)]&&'__area'in _0x1fd0a5[_0x5ec77c(0x1d8)]&&_0x1fd0a5[_0x5ec77c(0x1d8)]['__area']!==0x0)[_0x5ec77c(0x1c8)](_0x3b57d2=>{const _0x4c869b=_0x5ec77c;if(_0x3b57d2[_0x4c869b(0x1d8)]&&'__area'in _0x3b57d2[_0x4c869b(0x1d8)]){const {__area:_0x2b1053,..._0x261f28}=_0x3b57d2[_0x4c869b(0x1d8)];_0x3b57d2[_0x4c869b(0x1d8)]=_0x261f28;}return _0x3b57d2;});};}export default _readFileDiamond4;
1
+ const a3_0x3067b7=a3_0x3b79;(function(_0x1d88d3,_0x4b8207){const _0x3a2edc=a3_0x3b79,_0x2f103d=_0x1d88d3();while(!![]){try{const _0x2d0f21=parseInt(_0x3a2edc(0x8b))/0x1*(-parseInt(_0x3a2edc(0x9e))/0x2)+parseInt(_0x3a2edc(0xd0))/0x3*(-parseInt(_0x3a2edc(0xa4))/0x4)+-parseInt(_0x3a2edc(0xd2))/0x5*(-parseInt(_0x3a2edc(0x92))/0x6)+-parseInt(_0x3a2edc(0x9a))/0x7*(-parseInt(_0x3a2edc(0xd6))/0x8)+-parseInt(_0x3a2edc(0xb5))/0x9*(-parseInt(_0x3a2edc(0xb0))/0xa)+parseInt(_0x3a2edc(0xbb))/0xb+-parseInt(_0x3a2edc(0x8a))/0xc;if(_0x2d0f21===_0x4b8207)break;else _0x2f103d['push'](_0x2f103d['shift']());}catch(_0x13da4a){_0x2f103d['push'](_0x2f103d['shift']());}}}(a3_0xabf4,0xaf882));function a3_0xabf4(){const _0x5a47a5=['FeatureCollection','ceil','getBreaks','min','length','values','onerror','8364097ssTqCn','_maskCacheKey','filePath','error','5386SUGpGn','sort','chunkArray','minLat','getJsonData','string','46156AKVFdx','该时次未获取到文件','clipDataByJson','该时次文件数据异常','isArray','coordinates','Polygon','plusOffset','sortFeaturesByArea','push','filter','plus','142510GDdhel','split','flat','times','area','423VzcjJp','ring','minVal','terminate','hardwareConcurrency','setParams','4674197XFZxTn','max','onmessage','convertTemKtoC','fill','gjLat','minus','join','postMessage','replace','clear','__area','_maskCache','rgba(','undefined','gjLng','features','get','minLng','toNumber','isNaN','306PWJPTS','from','425gLSjtQ','getMinMax','contours','start','8jmCPNa','maxVal','getIsoBandsFastByWorker','map','forEach','slice','8249364nMOdJc','134DyHXCT','Feature','properties','trim','abs','thresholds','data','46212tmVeqp'];a3_0xabf4=function(){return _0x5a47a5;};return a3_0xabf4();}import{contours}from'd3-contour';function a3_0x3b79(_0x43641f,_0x21ab60){const _0xabf4c9=a3_0xabf4();return a3_0x3b79=function(_0x3b799b,_0x4cb45b){_0x3b799b=_0x3b799b-0x8a;let _0x59ba4f=_0xabf4c9[_0x3b799b];return _0x59ba4f;},a3_0x3b79(_0x43641f,_0x21ab60);}import a3_0x573b69 from'@turf/area';import{featureCollection as a3_0x39625f}from'@turf/helpers';import a3_0x31e825 from'decimal.js';export class readFileM4{[a3_0x3067b7(0x9c)]='';['nx']=0x0;['ny']=0x0;[a3_0x3067b7(0xcd)]=0x0;['minLat']=0x0;['gjLng']=0x0;[a3_0x3067b7(0xc0)]=0x0;[a3_0x3067b7(0x98)]=[];[a3_0x3067b7(0xd7)]=-Infinity;[a3_0x3067b7(0xb7)]=Infinity;['_maskCacheKey']='';[a3_0x3067b7(0xc7)]=new Map();constructor(_0x451464){this['filePath']=_0x451464||'';}async[a3_0x3067b7(0xd5)](_0x45fe80){const _0x58735b=a3_0x3067b7,_0x407deb=await fetch(this['filePath']);if(!_0x407deb['ok'])return new Promise((_0xe2b0fb,_0x53f014)=>{const _0x1d705a=a3_0x3b79;_0x53f014(_0x1d705a(0xa5));});const _0x11f0dd=await _0x407deb['text'](),_0x2f7a40=_0x11f0dd[_0x58735b(0xc4)](/\r\n/g,'\x0a')[_0x58735b(0xc4)](/\r/g,'\x0a')['split']('\x0a');if(_0x2f7a40[_0x58735b(0x97)]<0x4)return new Promise((_0x45d974,_0x208b3b)=>{const _0x20733e=_0x58735b;_0x208b3b(_0x20733e(0xa7));});const _0x29a683=(_0x2f7a40[0x1]??'')[_0x58735b(0x8e)]()[_0x58735b(0xb1)](/\s+/);let _0x2a6e02=0x2;while(_0x29a683['length']<0x13){_0x29a683[_0x58735b(0xad)](...(_0x2f7a40[_0x2a6e02]??'')[_0x58735b(0x8e)]()[_0x58735b(0xb1)](/\s+/)),_0x2a6e02++;}this[_0x58735b(0xca)]=Number(_0x29a683[0x6]);const _0x56e8bc=Number(_0x29a683[0x8]),_0x32f6dd=Number(_0x29a683[0xa]),_0x47aca9=Number(_0x29a683[0xb]);this['nx']=Number(_0x29a683[0xc]),this['ny']=Number(_0x29a683[0xd]),this['minLng']=_0x56e8bc,this[_0x58735b(0xa1)]=_0x32f6dd,this[_0x58735b(0xc0)]=Math['abs'](Number(_0x29a683[0x7]))*(_0x32f6dd>_0x47aca9?-0x1:0x1);const _0x351037=this['nx']*this['ny'];let _0x106cec=0x0;for(let _0x57bfbb=_0x2a6e02;_0x57bfbb<_0x2f7a40[_0x58735b(0x97)]&&_0x106cec<_0x351037;_0x57bfbb++){const _0x439e0d=_0x2f7a40[_0x57bfbb][_0x58735b(0x8e)]()??'',_0x501d08=_0x439e0d[_0x58735b(0xb1)](/\s+/);if(!_0x501d08||_0x501d08[_0x58735b(0x97)]===0x0)continue;for(let _0xdb88af=0x0;_0xdb88af<_0x501d08[_0x58735b(0x97)]&&_0x106cec<_0x351037;_0xdb88af++){let _0x94377e=Number(_0x501d08[_0xdb88af]);if(_0x45fe80?.[_0x58735b(0xbe)])_0x94377e=new a3_0x31e825(_0x94377e)[_0x58735b(0xc1)](272.15)['toNumber']();else _0x45fe80?.[_0x58735b(0xab)]&&(_0x94377e=new a3_0x31e825(_0x94377e)[_0x58735b(0xaf)](_0x45fe80['plusOffset'])['toNumber']());this[_0x58735b(0x98)][_0x58735b(0xad)](_0x94377e),this[_0x58735b(0xb7)]=Math['min'](this[_0x58735b(0xb7)],_0x94377e),this['maxVal']=Math['max'](this['maxVal'],_0x94377e),_0x106cec++;}}}[a3_0x3067b7(0xba)](_0x8a8929,_0x8cb8d4){const _0x352d4a=a3_0x3067b7;this['nx']=_0x8a8929['nx'],this['ny']=_0x8a8929['ny'],this[_0x352d4a(0xcd)]=_0x8a8929[_0x352d4a(0xcd)],this[_0x352d4a(0xa1)]=_0x8a8929[_0x352d4a(0xa1)],this[_0x352d4a(0xca)]=_0x8a8929['gjLng'],this[_0x352d4a(0xc0)]=_0x8a8929[_0x352d4a(0xc0)];if(_0x8cb8d4?.[_0x352d4a(0xbe)])for(let _0x1742d0=0x0;_0x1742d0<_0x8a8929[_0x352d4a(0x98)][_0x352d4a(0x97)];_0x1742d0++){_0x8a8929['values'][_0x1742d0]=new a3_0x31e825(_0x8a8929['values'][_0x1742d0])[_0x352d4a(0xc1)](272.15)[_0x352d4a(0xce)]();}else{if(_0x8cb8d4?.['plusOffset'])for(let _0x263666=0x0;_0x263666<_0x8a8929[_0x352d4a(0x98)][_0x352d4a(0x97)];_0x263666++){_0x8a8929[_0x352d4a(0x98)][_0x263666]=new a3_0x31e825(_0x8a8929[_0x352d4a(0x98)][_0x263666])['plus'](_0x8cb8d4[_0x352d4a(0xab)])[_0x352d4a(0xce)]();}else this[_0x352d4a(0x98)]=_0x8a8929['values'];}this[_0x352d4a(0xd3)]();}['getIsoBandsFast'](_0x4f62d8){const _0x634340=a3_0x3067b7;if(this['values'][_0x634340(0x97)]===0x0)return{'type':_0x634340(0x93),'features':[]};let _0x3df956=[];if(_0x4f62d8[_0x634340(0x97)]===0x0)_0x4f62d8=this[_0x634340(0x95)]();const _0x3dae56=contours()['size']([this['nx'],this['ny']]);for(let _0x3d8084=0x0;_0x3d8084<_0x4f62d8[_0x634340(0x97)];_0x3d8084++){const _0x95ed4e=_0x4f62d8[_0x3d8084],_0x43ade7=_0x3d8084<_0x4f62d8[_0x634340(0x97)]-0x1?_0x4f62d8[_0x3d8084+0x1]:Infinity;if(_0x95ed4e<this[_0x634340(0xb7)]&&_0x43ade7<this[_0x634340(0xb7)])continue;if(_0x95ed4e>this[_0x634340(0xd7)]&&_0x43ade7>this[_0x634340(0xd7)])continue;const _0x3fb5f7=_0x3dae56['contour'](this[_0x634340(0x98)],_0x95ed4e);if(!_0x3fb5f7||!_0x3fb5f7[_0x634340(0xa9)])continue;for(const _0x598927 of _0x3fb5f7[_0x634340(0xa9)]){let _0x8bbfc=[];if(Array['isArray'](_0x598927)&&_0x598927[_0x634340(0x97)]>0x0&&Array[_0x634340(0xa8)](_0x598927[0x0])&&typeof _0x598927[0x0][0x0]==='number')_0x8bbfc=[_0x598927];else{if(Array[_0x634340(0xa8)](_0x598927))_0x8bbfc=_0x598927;else continue;}for(const _0x10b338 of _0x8bbfc){const _0x42381e=_0x10b338[_0x634340(0xd9)](_0x1b9881=>{const _0xc8abc7=_0x634340,_0x4228cd=_0x1b9881[0x0],_0x38bb0f=_0x1b9881[0x1];if(_0x4228cd==null||_0x38bb0f==null||Number[_0xc8abc7(0xcf)](_0x4228cd)||Number[_0xc8abc7(0xcf)](_0x38bb0f))return null;const _0x2d1684=new a3_0x31e825(this[_0xc8abc7(0xcd)])['plus'](new a3_0x31e825(_0x4228cd)[_0xc8abc7(0xb3)](this[_0xc8abc7(0xca)]))['toNumber'](),_0x3900f8=new a3_0x31e825(this[_0xc8abc7(0xa1)])[_0xc8abc7(0xaf)](new a3_0x31e825(_0x38bb0f)[_0xc8abc7(0xb3)](this[_0xc8abc7(0xc0)]))[_0xc8abc7(0xce)]();return[_0x2d1684,_0x3900f8];})[_0x634340(0xae)](_0xe1527b=>_0xe1527b!==null),_0x1a9ce0=_0x42381e[_0x634340(0xae)]((_0x1208dc,_0x23c120,_0x3a7b3b)=>{if(_0x23c120===0x0)return!![];const _0x1066cc=_0x3a7b3b[_0x23c120-0x1];return!(_0x1208dc[0x0]===_0x1066cc[0x0]&&_0x1208dc[0x1]===_0x1066cc[0x1]);});if(_0x1a9ce0[_0x634340(0x97)]<0x3)continue;const _0x393116=_0x1a9ce0[0x0],_0x35ed40=_0x1a9ce0[_0x1a9ce0[_0x634340(0x97)]-0x1];(_0x393116[0x0]!==_0x35ed40[0x0]||_0x393116[0x1]!==_0x35ed40[0x1])&&_0x1a9ce0[_0x634340(0xad)]([_0x393116[0x0],_0x393116[0x1]]),_0x3df956[_0x634340(0xad)]({'type':_0x634340(0x8c),'properties':{'z':_0x95ed4e},'geometry':{'type':'Polygon','coordinates':[_0x1a9ce0]}});}}}return _0x3df956=this[_0x634340(0xac)](_0x3df956),{'type':_0x634340(0x93),'features':_0x3df956};}['getColorFast'](_0x4fa4f7,_0x6dfe79,_0x181574){const _0x2dc032=a3_0x3067b7;let _0x5b2403='rgba(255,255,255,0)';const _0x143e45=_0x6dfe79['indexOf'](_0x4fa4f7);if(typeof _0x181574[_0x143e45]==_0x2dc032(0xa3))_0x5b2403=_0x181574[_0x143e45];else _0x143e45!==-0x1&&(_0x5b2403=_0x2dc032(0xc8)+_0x181574[_0x143e45][0x0]+','+_0x181574[_0x143e45][0x1]+','+_0x181574[_0x143e45][0x2]+','+(_0x181574[_0x143e45][0x3]||_0x181574[_0x143e45][0x3]===0x0?_0x181574[_0x143e45][0x3]:0x1)+')');return _0x5b2403;}async[a3_0x3067b7(0xa6)](_0x1fb9b9,_0x559877,_0x5d9e9b,_0x43ac01){const _0x475341=a3_0x3067b7,_0x12612f=_0x43ac01?_0x43ac01:navigator[_0x475341(0xb9)]-0x4||0x1,_0x22950a=Math[_0x475341(0x96)](_0x12612f,Math['max'](0x1,_0x1fb9b9['features'][_0x475341(0x97)])),_0x475228=this[_0x475341(0xa0)](_0x1fb9b9[_0x475341(0xcb)],_0x22950a),_0x2a6a10=[],_0x50a4b6=_0x475228[_0x475341(0xd9)](_0x36c052=>{const _0x1199fb=_0x475341,_0x2778f6=new Worker(_0x5d9e9b,{'type':'module'});return _0x2a6a10[_0x1199fb(0xad)](_0x2778f6),new Promise(_0xc5b05c=>{const _0x4698df=_0x1199fb;_0x2778f6[_0x4698df(0xbd)]=_0xda1806=>{const _0x5a7af8=_0x4698df;_0xc5b05c(_0xda1806[_0x5a7af8(0x91)][_0x5a7af8(0xcb)]);},_0x2778f6['onerror']=_0x1b7835=>{const _0x1f1919=_0x4698df;console[_0x1f1919(0x9d)](_0x1b7835);},_0x2778f6[_0x4698df(0xc3)]({'isoChunk':_0x36c052,'gansuFeatures':_0x559877[_0x4698df(0xcb)]});});}),_0x16a9a8=await Promise['all'](_0x50a4b6);_0x2a6a10[_0x475341(0xda)](_0x77c826=>_0x77c826[_0x475341(0xb8)]());const _0x9fc314=_0x16a9a8[_0x475341(0xb2)]();return a3_0x39625f(_0x9fc314);}async[a3_0x3067b7(0xd8)](_0x5dab85,_0x2c7e27,_0x556f17){const _0x4290dd=a3_0x3067b7;if(this[_0x4290dd(0x98)][_0x4290dd(0x97)]===0x0)return{'type':_0x4290dd(0x93),'features':[]};let _0x369e89=[];if(_0x5dab85[_0x4290dd(0x97)]===0x0)_0x5dab85=this[_0x4290dd(0x95)]();const _0x44eade=[],_0x3377e0=_0x556f17?_0x556f17:navigator[_0x4290dd(0xb9)]-0x4||0x1,_0x51dbdf=Math[_0x4290dd(0x96)](_0x3377e0,Math['max'](0x1,_0x5dab85['length'])),_0x3dc93a=this[_0x4290dd(0xa0)](_0x5dab85,_0x51dbdf),_0x389253=_0x3dc93a[_0x4290dd(0xd9)](_0x28a57b=>{const _0x54d4a6=_0x4290dd,_0x219bf7=new Worker(_0x2c7e27,{'type':'module'});return _0x44eade[_0x54d4a6(0xad)](_0x219bf7),new Promise(_0x56498b=>{const _0x4c9b19=_0x54d4a6;_0x219bf7[_0x4c9b19(0xbd)]=_0x4fa46b=>{const _0x2f0e83=_0x4c9b19;_0x56498b(_0x4fa46b[_0x2f0e83(0x91)][_0x2f0e83(0xcb)]);},_0x219bf7[_0x4c9b19(0x99)]=_0x1b0073=>{const _0x1d3a74=_0x4c9b19;console[_0x1d3a74(0x9d)](_0x1b0073);},_0x219bf7['postMessage']({'breaks':_0x28a57b,'values':this[_0x4c9b19(0x98)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x4c9b19(0xb7)],'maxVal':this['maxVal'],'minLng':this[_0x4c9b19(0xcd)],'minLat':this[_0x4c9b19(0xa1)],'gjLng':this[_0x4c9b19(0xca)],'gjLat':this[_0x4c9b19(0xc0)]});});}),_0x584178=await Promise['all'](_0x389253);return _0x44eade[_0x4290dd(0xda)](_0x3ae2f6=>_0x3ae2f6[_0x4290dd(0xb8)]()),_0x584178['forEach'](_0x3f2a9f=>{_0x369e89['push'](..._0x3f2a9f);}),_0x369e89=this[_0x4290dd(0xac)](_0x369e89),{'type':_0x4290dd(0x93),'features':_0x369e89};}['clearMaskCache'](){const _0xd479ea=a3_0x3067b7;this[_0xd479ea(0xc7)][_0xd479ea(0xc5)]();}['getIsoBandsByLayerBreak'](_0x1d373e=[],_0x3d3d59){const _0x3b4e1b=a3_0x3067b7;if(typeof _0x3d3d59!=='undefined'&&this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)){const _0x3dd1ee=this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)||[],_0x4b6c72=this['sortFeaturesByArea']?this[_0x3b4e1b(0xac)](_0x3dd1ee):_0x3dd1ee;return{'type':'FeatureCollection','features':_0x4b6c72};}if(this['values'][_0x3b4e1b(0x97)]===0x0)return{'type':'FeatureCollection','features':[]};if(_0x1d373e[_0x3b4e1b(0x97)]===0x0)_0x1d373e=this[_0x3b4e1b(0x95)]();const _0x447a16=_0x1d373e[_0x3b4e1b(0xc2)](',');if(this[_0x3b4e1b(0x9b)]!==_0x447a16){this['_maskCacheKey']=_0x447a16,this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xc5)]();const _0x56e639=this['minLng'],_0x344828=this[_0x3b4e1b(0xa1)],_0x2f4e38=this[_0x3b4e1b(0xca)],_0x96ec2c=this['gjLat'],_0x1f36aa=_0x4fceb2=>{const _0x568475=_0x3b4e1b;let _0xdd6525=0x0;for(let _0x399a6c=0x0,_0x366629=_0x4fceb2[_0x568475(0x97)];_0x399a6c<_0x366629;_0x399a6c++){const _0x2c7daa=_0x4fceb2[_0x399a6c][0x0],_0x884a5c=_0x4fceb2[_0x399a6c][0x1],_0x1c7fec=_0x4fceb2[(_0x399a6c+0x1)%_0x366629][0x0],_0xfcc32b=_0x4fceb2[(_0x399a6c+0x1)%_0x366629][0x1];if(_0x2c7daa==null||_0x884a5c==null||_0x1c7fec==null||_0xfcc32b==null)continue;_0xdd6525+=_0x2c7daa*_0xfcc32b-_0x1c7fec*_0x884a5c;}return _0xdd6525/0x2;},_0x11c61a=(_0x25ed18,_0x440af7)=>{const _0x15abff=_0x3b4e1b;if(!_0x25ed18)return![];const _0x435373=_0x25ed18[0x0],_0x2f9ab8=_0x25ed18[0x1];let _0x4bc8ea=![];for(let _0x2ac60b=0x0,_0x469370=_0x440af7[_0x15abff(0x97)]-0x1;_0x2ac60b<_0x440af7['length'];_0x469370=_0x2ac60b++){const _0xfc3634=_0x440af7[_0x2ac60b][0x0],_0x5a5541=_0x440af7[_0x2ac60b][0x1],_0x51b1f3=_0x440af7[_0x469370][0x0],_0x3719cf=_0x440af7[_0x469370][0x1],_0x52a7b1=_0x5a5541>_0x2f9ab8!==_0x3719cf>_0x2f9ab8&&_0x435373<(_0x51b1f3-_0xfc3634)*(_0x2f9ab8-_0x5a5541)/(_0x3719cf-_0x5a5541)+_0xfc3634;if(_0x52a7b1)_0x4bc8ea=!_0x4bc8ea;}return _0x4bc8ea;},_0x312cfe=_0x439903=>{const _0xd29b22=_0x3b4e1b,_0x4a868a=[];let _0x471065=null,_0x30fe31=null;for(let _0x2aad98=0x0;_0x2aad98<_0x439903[_0xd29b22(0x97)];_0x2aad98++){const _0x31361a=_0x439903[_0x2aad98];if(!_0x31361a)continue;const _0xfa2e0a=_0x31361a[0x0],_0xc2c22a=_0x31361a[0x1];if(_0xfa2e0a==null||_0xc2c22a==null||Number[_0xd29b22(0xcf)](_0xfa2e0a)||Number[_0xd29b22(0xcf)](_0xc2c22a))continue;const _0x11e668=_0x56e639+_0xfa2e0a*_0x2f4e38,_0x571779=_0x344828+_0xc2c22a*_0x96ec2c;if(_0x471065!==null&&_0x30fe31!==null&&_0x471065===_0x11e668&&_0x30fe31===_0x571779){_0x471065=_0x11e668,_0x30fe31=_0x571779;continue;}_0x4a868a[_0xd29b22(0xad)]([_0x11e668,_0x571779]),_0x471065=_0x11e668,_0x30fe31=_0x571779;}if(_0x4a868a[_0xd29b22(0x97)]===0x0)return _0x4a868a;const _0x15a4c6=_0x4a868a[0x0],_0xd30b29=_0x4a868a[_0x4a868a[_0xd29b22(0x97)]-0x1];if(_0x15a4c6[0x0]!==_0xd30b29[0x0]||_0x15a4c6[0x1]!==_0xd30b29[0x1])_0x4a868a[_0xd29b22(0xad)]([_0x15a4c6[0x0],_0x15a4c6[0x1]]);return _0x4a868a;},_0x11205f=_0x1d373e['length']-0x1;for(let _0x12097c=0x0;_0x12097c<_0x1d373e[_0x3b4e1b(0x97)];_0x12097c++){const _0x113fb5=_0x1d373e[_0x12097c],_0x57cbbd=_0x12097c<_0x11205f?_0x1d373e[_0x12097c+0x1]:Infinity,_0x2ac7e1=Array[_0x3b4e1b(0xd1)]({'length':this[_0x3b4e1b(0x98)][_0x3b4e1b(0x97)]});let _0xd879fe=![];for(let _0x4b4368=0x0;_0x4b4368<this[_0x3b4e1b(0x98)]['length'];_0x4b4368++){const _0x4c6e2=this['values'][_0x4b4368],_0x1b86d1=_0x4c6e2>=_0x113fb5&&_0x4c6e2<_0x57cbbd?0x1:0x0;if(_0x1b86d1)_0xd879fe=!![];_0x2ac7e1[_0x4b4368]=_0x1b86d1;}if(!_0xd879fe)continue;const _0x38809a=contours()['size']([this['nx'],this['ny']])[_0x3b4e1b(0x90)]([0.5]),_0x37b4e5=_0x38809a[_0x3b4e1b(0xd4)]?_0x38809a[_0x3b4e1b(0xd4)](_0x2ac7e1):_0x38809a(_0x2ac7e1);if(!_0x37b4e5||_0x37b4e5['length']===0x0)continue;const _0x57cc08=[];for(const _0x387957 of _0x37b4e5){const _0x86b5da=_0x387957&&_0x387957['coordinates'];if(!_0x86b5da)continue;for(const _0xed480f of _0x86b5da){let _0x34e77a=[];if(Array[_0x3b4e1b(0xa8)](_0xed480f)&&_0xed480f[_0x3b4e1b(0x97)]>0x0&&typeof _0xed480f[0x0][0x0]==='number')_0x34e77a=[_0xed480f];else{if(Array['isArray'](_0xed480f))_0x34e77a=_0xed480f;else continue;}const _0x479843=_0x34e77a[_0x3b4e1b(0xd9)](_0x183d44=>({'ring':_0x183d44,'area':Math[_0x3b4e1b(0x8f)](_0x1f36aa(_0x183d44))}))[_0x3b4e1b(0x9f)]((_0x347764,_0x33a3dc)=>_0x33a3dc[_0x3b4e1b(0xb4)]-_0x347764[_0x3b4e1b(0xb4)]),_0x588054=Array[_0x3b4e1b(0xd1)]({'length':_0x479843['length']})[_0x3b4e1b(0xbf)](![]);for(let _0x59c702=0x0;_0x59c702<_0x479843[_0x3b4e1b(0x97)];_0x59c702++){if(_0x588054[_0x59c702])continue;const _0xa9f39=_0x479843[_0x59c702][_0x3b4e1b(0xb6)];_0x588054[_0x59c702]=!![];const _0x3d1bbb=[];for(let _0x8a88d2=0x0;_0x8a88d2<_0x479843[_0x3b4e1b(0x97)];_0x8a88d2++){if(_0x588054[_0x8a88d2])continue;const _0x398491=_0x479843[_0x8a88d2]['ring'],_0x3ba4bc=_0x398491[0x0];_0x3ba4bc&&_0x11c61a(_0x3ba4bc,_0xa9f39)&&(_0x3d1bbb[_0x3b4e1b(0xad)](_0x398491),_0x588054[_0x8a88d2]=!![]);}const _0x5e079c=_0x312cfe(_0xa9f39);if(_0x5e079c['length']<0x4)continue;const _0xdc697e=[];for(const _0x3d546e of _0x3d1bbb){const _0x716e2a=_0x312cfe(_0x3d546e);if(_0x716e2a[_0x3b4e1b(0x97)]>=0x4)_0xdc697e[_0x3b4e1b(0xad)](_0x716e2a);}_0x57cc08[_0x3b4e1b(0xad)]({'type':_0x3b4e1b(0x8c),'properties':{'z':_0x113fb5},'geometry':{'type':_0x3b4e1b(0xaa),'coordinates':[_0x5e079c,..._0xdc697e]}});}}}_0x57cc08['length']&&this[_0x3b4e1b(0xc7)]['set'](_0x113fb5,_0x57cc08);}}if(typeof _0x3d3d59!==_0x3b4e1b(0xc9)){const _0x20f1e5=this[_0x3b4e1b(0xc7)][_0x3b4e1b(0xcc)](_0x3d3d59)||[],_0x5093f0=this['sortFeaturesByArea']?this[_0x3b4e1b(0xac)](_0x20f1e5):_0x20f1e5;return{'type':'FeatureCollection','features':_0x5093f0};}const _0xc99210=[];for(const _0x34d7d9 of this['_maskCache'][_0x3b4e1b(0x98)]()){_0xc99210['push'](..._0x34d7d9);}const _0x1138fc=this[_0x3b4e1b(0xac)]?this['sortFeaturesByArea'](_0xc99210):_0xc99210;return{'type':_0x3b4e1b(0x93),'features':_0x1138fc};}[a3_0x3067b7(0xa2)](){const _0x9cded=a3_0x3067b7,_0x2de815=Array[_0x9cded(0xd1)]({'length':this['nx']});for(let _0x39bfbc=0x0;_0x39bfbc<this['nx'];_0x39bfbc++){_0x2de815[_0x39bfbc]=new a3_0x31e825(this[_0x9cded(0xcd)])[_0x9cded(0xaf)](new a3_0x31e825(_0x39bfbc)[_0x9cded(0xb3)](this['gjLng']))[_0x9cded(0xce)]();}const _0x154efe=Array[_0x9cded(0xd1)]({'length':this['ny']});for(let _0x308036=0x0;_0x308036<this['ny'];_0x308036++){_0x154efe[_0x308036]=new a3_0x31e825(this[_0x9cded(0xa1)])[_0x9cded(0xaf)](new a3_0x31e825(_0x308036)[_0x9cded(0xb3)](this['gjLat']))[_0x9cded(0xce)]();}const _0x5d05ca=Array[_0x9cded(0xd1)]({'length':this['nx']*this['ny']});for(let _0x4e9016=0x0;_0x4e9016<this[_0x9cded(0x98)][_0x9cded(0x97)];_0x4e9016++){const _0x139fb8=Math['floor'](_0x4e9016/this['nx']),_0x60ba17=_0x4e9016%this['nx'],_0x30b95e=_0x2de815[_0x60ba17],_0x4d7ed4=_0x154efe[_0x139fb8],_0x303473=this[_0x9cded(0x98)][_0x4e9016];_0x4d7ed4&&_0x30b95e&&(_0x5d05ca[_0x4e9016]={'lng':_0x30b95e,'lat':_0x4d7ed4,'val':_0x303473});}return _0x5d05ca;}[a3_0x3067b7(0xd3)](){const _0x544126=a3_0x3067b7;let _0x1a729a=-Infinity,_0x3a3334=Infinity;for(let _0x23963f=0x0;_0x23963f<this[_0x544126(0x98)][_0x544126(0x97)];_0x23963f++){const _0x3bfd05=this[_0x544126(0x98)][_0x23963f];if(_0x3bfd05>_0x1a729a)_0x1a729a=_0x3bfd05;if(_0x3bfd05<_0x3a3334)_0x3a3334=_0x3bfd05;}this['minVal']=_0x3a3334,this[_0x544126(0xd7)]=_0x1a729a;}['getBreaks'](){const _0x34d204=a3_0x3067b7,_0x37a157=[];if(this['minVal']===Infinity||this['maxVal']===-Infinity)return _0x37a157;for(let _0x4fe7a2=this['minVal']-0x1;_0x4fe7a2<=this[_0x34d204(0xd7)]+0x1;_0x4fe7a2++){_0x37a157[_0x34d204(0xad)](_0x4fe7a2);}return _0x37a157;}[a3_0x3067b7(0xac)](_0x48cab8){const _0x529b0e=a3_0x3067b7;return _0x48cab8[_0x529b0e(0xd9)](_0x52f3d9=>{const _0x222b6a=_0x529b0e;try{const _0x11d909=a3_0x573b69(_0x52f3d9)||0x0;_0x52f3d9['properties']={..._0x52f3d9[_0x222b6a(0x8d)]||{},'__area':_0x11d909};}catch{_0x52f3d9[_0x222b6a(0x8d)]={..._0x52f3d9['properties']||{},'__area':0x0};}return _0x52f3d9;})[_0x529b0e(0x9f)]((_0x422dd9,_0x2f0b0e)=>_0x2f0b0e['properties'][_0x529b0e(0xc6)]-_0x422dd9[_0x529b0e(0x8d)][_0x529b0e(0xc6)])[_0x529b0e(0xae)](_0x4f394f=>_0x4f394f[_0x529b0e(0x8d)]&&_0x529b0e(0xc6)in _0x4f394f[_0x529b0e(0x8d)]&&_0x4f394f[_0x529b0e(0x8d)]['__area']!==0x0)[_0x529b0e(0xd9)](_0x255e0c=>{const _0xc541d0=_0x529b0e;if(_0x255e0c['properties']&&_0xc541d0(0xc6)in _0x255e0c[_0xc541d0(0x8d)]){const {__area:_0x4962a4,..._0x42ec37}=_0x255e0c[_0xc541d0(0x8d)];_0x255e0c[_0xc541d0(0x8d)]=_0x42ec37;}return _0x255e0c;});}['chunkArray']=(_0x4379fc,_0x337ddf)=>{const _0x193aa4=a3_0x3067b7,_0x1610db=[],_0x55b2db=Math[_0x193aa4(0xbc)](0x1,Math[_0x193aa4(0x94)](_0x4379fc['length']/_0x337ddf));for(let _0x4002ee=0x0;_0x4002ee<_0x337ddf;_0x4002ee++){_0x1610db['push'](_0x4379fc[_0x193aa4(0xdb)](_0x4002ee*_0x55b2db,(_0x4002ee+0x1)*_0x55b2db));}return _0x1610db;};}export default readFileM4;
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "m4-w-fast",
3
- "version": "1.0.3",
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.5",
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
+ }