m4-w-fast 1.0.5 → 1.0.7

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/dist/readFile.js CHANGED
@@ -1 +1 @@
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;
1
+ function a3_0x3ba0(_0x52ce72,_0x12bc60){const _0x23fe86=a3_0x23fe();return a3_0x3ba0=function(_0x3ba044,_0x5b0bdd){_0x3ba044=_0x3ba044-0x1d9;let _0x1625ca=_0x23fe86[_0x3ba044];return _0x1625ca;},a3_0x3ba0(_0x52ce72,_0x12bc60);}const a3_0x410f6c=a3_0x3ba0;(function(_0x1f17c1,_0x50dce0){const _0x10a894=a3_0x3ba0,_0x2462cb=_0x1f17c1();while(!![]){try{const _0x5c7e03=-parseInt(_0x10a894(0x20b))/0x1+parseInt(_0x10a894(0x1ed))/0x2*(-parseInt(_0x10a894(0x1e2))/0x3)+-parseInt(_0x10a894(0x1f6))/0x4*(-parseInt(_0x10a894(0x1e0))/0x5)+parseInt(_0x10a894(0x1f3))/0x6*(-parseInt(_0x10a894(0x21d))/0x7)+-parseInt(_0x10a894(0x23b))/0x8*(parseInt(_0x10a894(0x1f9))/0x9)+-parseInt(_0x10a894(0x20f))/0xa+parseInt(_0x10a894(0x21a))/0xb;if(_0x5c7e03===_0x50dce0)break;else _0x2462cb['push'](_0x2462cb['shift']());}catch(_0x28fa01){_0x2462cb['push'](_0x2462cb['shift']());}}}(a3_0x23fe,0x6a623));import{contours}from'd3-contour';import a3_0x4e0606 from'@turf/area';import{featureCollection as a3_0x461e3a}from'@turf/helpers';import a3_0x1ddee9 from'decimal.js';export class readFileM4{['filePath']='';['nx']=0x0;['ny']=0x0;[a3_0x410f6c(0x227)]=0x0;['minLat']=0x0;[a3_0x410f6c(0x23c)]=0x0;[a3_0x410f6c(0x207)]=0x0;['values']=[];[a3_0x410f6c(0x230)]=-Infinity;[a3_0x410f6c(0x200)]=Infinity;[a3_0x410f6c(0x220)]='';[a3_0x410f6c(0x22c)]=new Map();constructor(_0x21fd05){const _0x2e4ed1=a3_0x410f6c;this[_0x2e4ed1(0x21b)]=_0x21fd05||'';}async[a3_0x410f6c(0x228)](_0x231152){const _0x5c11c9=a3_0x410f6c,_0x7ef2ef=await fetch(this[_0x5c11c9(0x21b)]);if(!_0x7ef2ef['ok'])return new Promise((_0x45b3aa,_0x41e9df)=>{_0x41e9df('该时次未获取到文件');});const _0x5db7e8=await _0x7ef2ef[_0x5c11c9(0x20c)](),_0x10d038=_0x5db7e8[_0x5c11c9(0x22d)](/\r\n/g,'\x0a')[_0x5c11c9(0x22d)](/\r/g,'\x0a')['split']('\x0a');if(_0x10d038[_0x5c11c9(0x236)]<0x4)return new Promise((_0x5e5474,_0x15df21)=>{const _0x1acc9a=_0x5c11c9;_0x15df21(_0x1acc9a(0x211));});const _0xdcf709=(_0x10d038[0x1]??'')[_0x5c11c9(0x233)]()[_0x5c11c9(0x209)](/\s+/);let _0x40f809=0x2;while(_0xdcf709[_0x5c11c9(0x236)]<0x13){_0xdcf709['push'](...(_0x10d038[_0x40f809]??'')[_0x5c11c9(0x233)]()[_0x5c11c9(0x209)](/\s+/)),_0x40f809++;}this[_0x5c11c9(0x23c)]=Number(_0xdcf709[0x6]);const _0x2a7a99=Number(_0xdcf709[0x8]),_0x1c6aae=Number(_0xdcf709[0xa]),_0x2c1c29=Number(_0xdcf709[0xb]);this['nx']=Number(_0xdcf709[0xc]),this['ny']=Number(_0xdcf709[0xd]),this[_0x5c11c9(0x227)]=_0x2a7a99,this[_0x5c11c9(0x224)]=_0x1c6aae,this[_0x5c11c9(0x207)]=Math[_0x5c11c9(0x223)](Number(_0xdcf709[0x7]))*(_0x1c6aae>_0x2c1c29?-0x1:0x1);const _0x55cc67=this['nx']*this['ny'];let _0x4d1008=0x0;for(let _0x43c282=_0x40f809;_0x43c282<_0x10d038[_0x5c11c9(0x236)]&&_0x4d1008<_0x55cc67;_0x43c282++){const _0x13975b=_0x10d038[_0x43c282][_0x5c11c9(0x233)]()??'',_0x4d46d1=_0x13975b[_0x5c11c9(0x209)](/\s+/);if(!_0x4d46d1||_0x4d46d1[_0x5c11c9(0x236)]===0x0)continue;for(let _0x19dc77=0x0;_0x19dc77<_0x4d46d1[_0x5c11c9(0x236)]&&_0x4d1008<_0x55cc67;_0x19dc77++){let _0xd8f0c8=Number(_0x4d46d1[_0x19dc77]);if(_0x231152?.['convertTemKtoC'])_0xd8f0c8=new a3_0x1ddee9(_0xd8f0c8)['minus'](272.15)['toNumber']();else _0x231152?.[_0x5c11c9(0x1dd)]&&(_0xd8f0c8=new a3_0x1ddee9(_0xd8f0c8)['plus'](_0x231152['plusOffset'])[_0x5c11c9(0x225)]());this['values'][_0x5c11c9(0x217)](_0xd8f0c8),this[_0x5c11c9(0x200)]=Math[_0x5c11c9(0x1f8)](this['minVal'],_0xd8f0c8),this[_0x5c11c9(0x230)]=Math[_0x5c11c9(0x222)](this[_0x5c11c9(0x230)],_0xd8f0c8),_0x4d1008++;}}}[a3_0x410f6c(0x232)](_0x15171b,_0x5d8530){const _0x309b78=a3_0x410f6c;this['nx']=_0x15171b['nx'],this['ny']=_0x15171b['ny'],this['minLng']=_0x15171b[_0x309b78(0x227)],this['minLat']=_0x15171b[_0x309b78(0x224)],this['gjLng']=_0x15171b['gjLng'],this[_0x309b78(0x207)]=_0x15171b[_0x309b78(0x207)];if(_0x5d8530?.[_0x309b78(0x221)])for(let _0x2b4a34=0x0;_0x2b4a34<_0x15171b['values'][_0x309b78(0x236)];_0x2b4a34++){_0x15171b[_0x309b78(0x21c)][_0x2b4a34]=new a3_0x1ddee9(_0x15171b[_0x309b78(0x21c)][_0x2b4a34])['minus'](272.15)[_0x309b78(0x225)]();}else{if(_0x5d8530?.[_0x309b78(0x1dd)])for(let _0x56c300=0x0;_0x56c300<_0x15171b[_0x309b78(0x21c)][_0x309b78(0x236)];_0x56c300++){_0x15171b[_0x309b78(0x21c)][_0x56c300]=new a3_0x1ddee9(_0x15171b[_0x309b78(0x21c)][_0x56c300])[_0x309b78(0x1e8)](_0x5d8530[_0x309b78(0x1dd)])[_0x309b78(0x225)]();}else this[_0x309b78(0x21c)]=_0x15171b[_0x309b78(0x21c)];}this[_0x309b78(0x237)]();}[a3_0x410f6c(0x20e)](_0x1c8c67){const _0x471b8b=a3_0x410f6c;if(this[_0x471b8b(0x21c)]['length']===0x0)return{'type':'FeatureCollection','features':[]};let _0x24f1c3=[];if(_0x1c8c67['length']===0x0)_0x1c8c67=this[_0x471b8b(0x1df)]();const _0x5e0ca4=[];for(let _0x48c5e5=0x0;_0x48c5e5<_0x1c8c67[_0x471b8b(0x236)];_0x48c5e5++){const _0x255f49=_0x1c8c67[_0x48c5e5],_0x2cc574=_0x48c5e5<_0x1c8c67[_0x471b8b(0x236)]-0x1?_0x1c8c67[_0x48c5e5+0x1]:Infinity;if(_0x255f49<this[_0x471b8b(0x200)]&&_0x2cc574<this[_0x471b8b(0x200)])continue;if(_0x255f49>this['maxVal']&&_0x2cc574>this[_0x471b8b(0x230)])continue;_0x5e0ca4[_0x471b8b(0x217)](_0x255f49);}const _0x52f30b=contours()[_0x471b8b(0x1e7)]([this['nx'],this['ny']])['thresholds'](_0x5e0ca4),_0x195d5e=_0x52f30b(this[_0x471b8b(0x21c)]);for(const _0x18f7b7 of _0x195d5e){for(const _0x5bb1bb of _0x18f7b7[_0x471b8b(0x201)]){if(Array[_0x471b8b(0x215)](_0x5bb1bb))for(const _0x3200cc of _0x5bb1bb){_0x3200cc[_0x471b8b(0x20d)](_0xa31996=>{const _0x2a3de9=_0x471b8b,_0x254ff0=_0xa31996[0x0],_0x542d23=_0xa31996[0x1];if(_0x254ff0==null||_0x542d23==null||Number[_0x2a3de9(0x1dc)](_0x254ff0)||Number[_0x2a3de9(0x1dc)](_0x542d23))return null;const _0x1fbf07=new a3_0x1ddee9(this[_0x2a3de9(0x227)])[_0x2a3de9(0x1e8)](new a3_0x1ddee9(_0x254ff0)[_0x2a3de9(0x22b)](this[_0x2a3de9(0x23c)]))[_0x2a3de9(0x225)](),_0x5bb007=new a3_0x1ddee9(this[_0x2a3de9(0x224)])['plus'](new a3_0x1ddee9(_0x542d23)['times'](this['gjLat']))['toNumber']();_0xa31996[0x0]=_0x1fbf07,_0xa31996[0x1]=_0x5bb007;});}}_0x24f1c3['push']({'type':_0x471b8b(0x1ee),'properties':{'z':_0x18f7b7[_0x471b8b(0x1e9)]},'geometry':_0x18f7b7});}return{'type':'FeatureCollection','features':_0x24f1c3};}[a3_0x410f6c(0x22e)](_0x2d5a1f,_0x381346){const _0x41325f=a3_0x410f6c;if(this[_0x41325f(0x21c)][_0x41325f(0x236)]===0x0)return{'type':_0x41325f(0x1e3),'features':[]};let _0x173847=[];if(_0x2d5a1f[_0x41325f(0x236)]===0x0)_0x2d5a1f=this[_0x41325f(0x1df)]();const _0x1023c3=[];for(let _0x436c9c=0x0;_0x436c9c<_0x2d5a1f['length'];_0x436c9c++){const _0x148186=_0x2d5a1f[_0x436c9c],_0x4b3597=_0x436c9c<_0x2d5a1f['length']-0x1?_0x2d5a1f[_0x436c9c+0x1]:Infinity;if(_0x148186<this['minVal']&&_0x4b3597<this[_0x41325f(0x200)])continue;if(_0x148186>this['maxVal']&&_0x4b3597>this[_0x41325f(0x230)])continue;_0x1023c3[_0x41325f(0x217)](_0x148186);}const _0x1c91fc=contours()[_0x41325f(0x1e7)]([this['nx'],this['ny']])[_0x41325f(0x1f2)](_0x1023c3),_0x22b651=_0x1c91fc(this['values']),_0x549d9f=this[_0x41325f(0x227)],_0x9b506a=this[_0x41325f(0x224)],_0x16ac35=_0x549d9f+this['nx']*this['gjLng'],_0x3e7f64=_0x9b506a+this['ny']*this['gjLat'],_0x321a24=_0x16ac35-_0x549d9f,_0x24e8fb=_0x3e7f64-_0x9b506a,_0x3a6c05=_0x381346?.['width']||0x400,_0x9062f7=_0x381346?.[_0x41325f(0x235)]||Math[_0x41325f(0x222)](0x1,Math['round'](_0x3a6c05*(_0x24e8fb/Math[_0x41325f(0x222)](1e-12,_0x321a24)))),_0x3d228c=_0x381346?.[_0x41325f(0x204)]||(typeof devicePixelRatio!=='undefined'?devicePixelRatio:0x1),_0x175d82=document[_0x41325f(0x1ea)](_0x41325f(0x1d9));if(!_0x175d82)return null;const _0x10dba1=_0x175d82['getContext']('2d');if(!_0x10dba1)return null;_0x175d82[_0x41325f(0x1e1)]=_0x3a6c05*_0x3d228c,_0x175d82[_0x41325f(0x235)]=_0x9062f7*_0x3d228c,_0x10dba1[_0x41325f(0x214)](_0x3d228c,_0x3d228c);for(const _0x388e5d of _0x22b651){const _0x2cf730=_0x388e5d['value'];_0x10dba1[_0x41325f(0x1e4)]();for(const _0xd99508 of _0x388e5d[_0x41325f(0x201)]){if(Array['isArray'](_0xd99508))for(const _0x2f9341 of _0xd99508){_0x2f9341[_0x41325f(0x20d)]((_0x5f1e14,_0x486b62)=>{const _0x2c609f=_0x41325f,_0x154f44=(_0x5f1e14[0x0]-_0x549d9f)/_0x321a24*_0x3a6c05,_0x59ef98=_0x9062f7-(_0x5f1e14[0x1]-_0x9b506a)/_0x24e8fb*_0x9062f7;_0x486b62===0x0?_0x10dba1[_0x2c609f(0x239)](_0x154f44,_0x59ef98):_0x10dba1[_0x2c609f(0x23a)](_0x154f44,_0x59ef98);});}}_0x10dba1[_0x41325f(0x216)](),_0x10dba1[_0x41325f(0x212)]=this[_0x41325f(0x206)](_0x2cf730,_0x2d5a1f,[]),_0x10dba1[_0x41325f(0x20a)]();}return _0x175d82;}[a3_0x410f6c(0x206)](_0x12a6b6,_0x2296b3,_0x398cab){const _0x21d15a=a3_0x410f6c;let _0x461f62='rgba(255,255,255,0)';const _0x999250=_0x2296b3[_0x21d15a(0x226)](_0x12a6b6);if(typeof _0x398cab[_0x999250]==_0x21d15a(0x21e))_0x461f62=_0x398cab[_0x999250];else _0x999250!==-0x1&&(_0x461f62='rgba('+_0x398cab[_0x999250][0x0]+','+_0x398cab[_0x999250][0x1]+','+_0x398cab[_0x999250][0x2]+','+(_0x398cab[_0x999250][0x3]||_0x398cab[_0x999250][0x3]===0x0?_0x398cab[_0x999250][0x3]:0x1)+')');return _0x461f62;}async[a3_0x410f6c(0x1e6)](_0x1056a0,_0x52d7b7,_0x24931,_0x7b5450){const _0x4888f3=a3_0x410f6c,_0x5db121=_0x7b5450?_0x7b5450:navigator[_0x4888f3(0x1fb)]-0x4||0x1,_0x2737e7=Math[_0x4888f3(0x1f8)](_0x5db121,Math[_0x4888f3(0x222)](0x1,_0x1056a0[_0x4888f3(0x238)][_0x4888f3(0x236)])),_0x306828=this['chunkArray'](_0x1056a0[_0x4888f3(0x238)],_0x2737e7),_0x59ee45=[],_0x22cea1=_0x306828[_0x4888f3(0x1f4)](_0xacfb8b=>{const _0x1da0fd=_0x4888f3,_0x1fdc13=new Worker(_0x24931,{'type':_0x1da0fd(0x1e5)});return _0x59ee45[_0x1da0fd(0x217)](_0x1fdc13),new Promise(_0x3e4d0c=>{const _0x589bd4=_0x1da0fd;_0x1fdc13[_0x589bd4(0x1fc)]=_0x5e29fd=>{const _0x146caf=_0x589bd4;_0x3e4d0c(_0x5e29fd[_0x146caf(0x203)]['features']);},_0x1fdc13['onerror']=_0x2d466b=>{const _0x57bff7=_0x589bd4;console[_0x57bff7(0x1f7)](_0x2d466b);},_0x1fdc13[_0x589bd4(0x1f1)]({'isoChunk':_0xacfb8b,'gansuFeatures':_0x52d7b7[_0x589bd4(0x238)]});});}),_0x2cb358=await Promise[_0x4888f3(0x205)](_0x22cea1);_0x59ee45[_0x4888f3(0x20d)](_0x1c1914=>_0x1c1914['terminate']());const _0x49ff41=_0x2cb358[_0x4888f3(0x208)]();return a3_0x461e3a(_0x49ff41);}async[a3_0x410f6c(0x1de)](_0x2436fb,_0x1450c0,_0x3bfd51){const _0x361dc7=a3_0x410f6c;if(this[_0x361dc7(0x21c)][_0x361dc7(0x236)]===0x0)return{'type':_0x361dc7(0x1e3),'features':[]};let _0x12a450=[];if(_0x2436fb[_0x361dc7(0x236)]===0x0)_0x2436fb=this[_0x361dc7(0x1df)]();const _0x2017aa=[],_0x257e9c=_0x3bfd51?_0x3bfd51:navigator['hardwareConcurrency']-0x4||0x1,_0x4df9b8=Math['min'](_0x257e9c,Math[_0x361dc7(0x222)](0x1,_0x2436fb[_0x361dc7(0x236)])),_0x18cdd6=this[_0x361dc7(0x1f0)](_0x2436fb,_0x4df9b8),_0x2bfce3=_0x18cdd6[_0x361dc7(0x1f4)](_0x5a4996=>{const _0x14037f=_0x361dc7,_0x2ed949=new Worker(_0x1450c0,{'type':_0x14037f(0x1e5)});return _0x2017aa['push'](_0x2ed949),new Promise(_0x26d955=>{const _0x29bcc3=_0x14037f;_0x2ed949['onmessage']=_0x529e23=>{const _0x2c93a7=a3_0x3ba0;_0x26d955(_0x529e23[_0x2c93a7(0x203)][_0x2c93a7(0x238)]);},_0x2ed949[_0x29bcc3(0x1fa)]=_0x227a23=>{const _0x482c2a=_0x29bcc3;console[_0x482c2a(0x1f7)](_0x227a23);},_0x2ed949[_0x29bcc3(0x1f1)]({'breaks':_0x5a4996,'values':this[_0x29bcc3(0x21c)],'nx':this['nx'],'ny':this['ny'],'minVal':this[_0x29bcc3(0x200)],'maxVal':this['maxVal'],'minLng':this[_0x29bcc3(0x227)],'minLat':this['minLat'],'gjLng':this[_0x29bcc3(0x23c)],'gjLat':this[_0x29bcc3(0x207)]});});}),_0xcfdae5=await Promise['all'](_0x2bfce3);return _0x2017aa[_0x361dc7(0x20d)](_0x25a002=>_0x25a002[_0x361dc7(0x210)]()),_0xcfdae5[_0x361dc7(0x20d)](_0x4aa6fa=>{const _0x3a5a8d=_0x361dc7;_0x12a450[_0x3a5a8d(0x217)](..._0x4aa6fa);}),_0x12a450=this[_0x361dc7(0x1db)](_0x12a450),{'type':_0x361dc7(0x1e3),'features':_0x12a450};}[a3_0x410f6c(0x1da)](){const _0x2f5c26=a3_0x410f6c;this[_0x2f5c26(0x22c)][_0x2f5c26(0x21f)]();}[a3_0x410f6c(0x231)](_0x20eca2=[],_0x22044b){const _0x156927=a3_0x410f6c;if(typeof _0x22044b!==_0x156927(0x1fd)&&this[_0x156927(0x22c)][_0x156927(0x1fe)](_0x22044b)){const _0x342f51=this[_0x156927(0x22c)][_0x156927(0x1fe)](_0x22044b)||[],_0x217c68=this['sortFeaturesByArea']?this['sortFeaturesByArea'](_0x342f51):_0x342f51;return{'type':_0x156927(0x1e3),'features':_0x217c68};}if(this[_0x156927(0x21c)][_0x156927(0x236)]===0x0)return{'type':_0x156927(0x1e3),'features':[]};if(_0x20eca2['length']===0x0)_0x20eca2=this[_0x156927(0x1df)]();const _0x508b02=_0x20eca2['join'](',');if(this[_0x156927(0x220)]!==_0x508b02){this[_0x156927(0x220)]=_0x508b02,this['_maskCache']['clear']();const _0x263530=this[_0x156927(0x227)],_0x4c67ca=this[_0x156927(0x224)],_0x12ad27=this[_0x156927(0x23c)],_0x19d22b=this[_0x156927(0x207)],_0x1c00f5=_0xe2d203=>{const _0x13685d=_0x156927;let _0x107f6d=0x0;for(let _0x1a08fd=0x0,_0x1c49f1=_0xe2d203[_0x13685d(0x236)];_0x1a08fd<_0x1c49f1;_0x1a08fd++){const _0x28cfe8=_0xe2d203[_0x1a08fd][0x0],_0x5e35a1=_0xe2d203[_0x1a08fd][0x1],_0x43536c=_0xe2d203[(_0x1a08fd+0x1)%_0x1c49f1][0x0],_0x3b04dd=_0xe2d203[(_0x1a08fd+0x1)%_0x1c49f1][0x1];if(_0x28cfe8==null||_0x5e35a1==null||_0x43536c==null||_0x3b04dd==null)continue;_0x107f6d+=_0x28cfe8*_0x3b04dd-_0x43536c*_0x5e35a1;}return _0x107f6d/0x2;},_0x56262d=(_0x106ba7,_0x1cc119)=>{const _0x4f0cae=_0x156927;if(!_0x106ba7)return![];const _0x49d99a=_0x106ba7[0x0],_0x521f1e=_0x106ba7[0x1];let _0x44600d=![];for(let _0x3c773a=0x0,_0x297bc5=_0x1cc119[_0x4f0cae(0x236)]-0x1;_0x3c773a<_0x1cc119[_0x4f0cae(0x236)];_0x297bc5=_0x3c773a++){const _0x14de8f=_0x1cc119[_0x3c773a][0x0],_0x100ddc=_0x1cc119[_0x3c773a][0x1],_0x485006=_0x1cc119[_0x297bc5][0x0],_0x549368=_0x1cc119[_0x297bc5][0x1],_0x378177=_0x100ddc>_0x521f1e!==_0x549368>_0x521f1e&&_0x49d99a<(_0x485006-_0x14de8f)*(_0x521f1e-_0x100ddc)/(_0x549368-_0x100ddc)+_0x14de8f;if(_0x378177)_0x44600d=!_0x44600d;}return _0x44600d;},_0x27e03b=_0x313fe5=>{const _0x90442=_0x156927,_0x15b2ee=[];let _0x1148b4=null,_0x373c6b=null;for(let _0x512db4=0x0;_0x512db4<_0x313fe5[_0x90442(0x236)];_0x512db4++){const _0x3b6234=_0x313fe5[_0x512db4];if(!_0x3b6234)continue;const _0x38dd84=_0x3b6234[0x0],_0x144abc=_0x3b6234[0x1];if(_0x38dd84==null||_0x144abc==null||Number[_0x90442(0x1dc)](_0x38dd84)||Number[_0x90442(0x1dc)](_0x144abc))continue;const _0x3d056f=_0x263530+_0x38dd84*_0x12ad27,_0x29c26e=_0x4c67ca+_0x144abc*_0x19d22b;if(_0x1148b4!==null&&_0x373c6b!==null&&_0x1148b4===_0x3d056f&&_0x373c6b===_0x29c26e){_0x1148b4=_0x3d056f,_0x373c6b=_0x29c26e;continue;}_0x15b2ee[_0x90442(0x217)]([_0x3d056f,_0x29c26e]),_0x1148b4=_0x3d056f,_0x373c6b=_0x29c26e;}if(_0x15b2ee['length']===0x0)return _0x15b2ee;const _0x3a3631=_0x15b2ee[0x0],_0x22847a=_0x15b2ee[_0x15b2ee['length']-0x1];if(_0x3a3631[0x0]!==_0x22847a[0x0]||_0x3a3631[0x1]!==_0x22847a[0x1])_0x15b2ee[_0x90442(0x217)]([_0x3a3631[0x0],_0x3a3631[0x1]]);return _0x15b2ee;},_0x24d44c=_0x20eca2['length']-0x1;for(let _0x2d77a8=0x0;_0x2d77a8<_0x20eca2[_0x156927(0x236)];_0x2d77a8++){const _0x33e734=_0x20eca2[_0x2d77a8],_0x1e695b=_0x2d77a8<_0x24d44c?_0x20eca2[_0x2d77a8+0x1]:Infinity,_0x2255b9=Array['from']({'length':this[_0x156927(0x21c)][_0x156927(0x236)]});let _0x5a4c57=![];for(let _0x2b934d=0x0;_0x2b934d<this[_0x156927(0x21c)]['length'];_0x2b934d++){const _0x95c1cd=this[_0x156927(0x21c)][_0x2b934d],_0x480860=_0x95c1cd>=_0x33e734&&_0x95c1cd<_0x1e695b?0x1:0x0;if(_0x480860)_0x5a4c57=!![];_0x2255b9[_0x2b934d]=_0x480860;}if(!_0x5a4c57)continue;const _0x20de04=contours()['size']([this['nx'],this['ny']])['thresholds']([0.5]),_0x5b2413=_0x20de04[_0x156927(0x1ef)]?_0x20de04[_0x156927(0x1ef)](_0x2255b9):_0x20de04(_0x2255b9);if(!_0x5b2413||_0x5b2413[_0x156927(0x236)]===0x0)continue;const _0x372551=[];for(const _0x5837e4 of _0x5b2413){const _0x5910db=_0x5837e4&&_0x5837e4[_0x156927(0x201)];if(!_0x5910db)continue;for(const _0x489fae of _0x5910db){let _0x1b146d=[];if(Array['isArray'](_0x489fae)&&_0x489fae['length']>0x0&&typeof _0x489fae[0x0][0x0]===_0x156927(0x1ff))_0x1b146d=[_0x489fae];else{if(Array[_0x156927(0x215)](_0x489fae))_0x1b146d=_0x489fae;else continue;}const _0x4d8787=_0x1b146d[_0x156927(0x1f4)](_0x53698a=>({'ring':_0x53698a,'area':Math[_0x156927(0x223)](_0x1c00f5(_0x53698a))}))[_0x156927(0x22f)]((_0x40bfb3,_0x11992e)=>_0x11992e['area']-_0x40bfb3['area']),_0x2a9691=Array[_0x156927(0x213)]({'length':_0x4d8787['length']})[_0x156927(0x20a)](![]);for(let _0x3202c7=0x0;_0x3202c7<_0x4d8787[_0x156927(0x236)];_0x3202c7++){if(_0x2a9691[_0x3202c7])continue;const _0x13b32d=_0x4d8787[_0x3202c7][_0x156927(0x234)];_0x2a9691[_0x3202c7]=!![];const _0x23c67d=[];for(let _0x5de863=0x0;_0x5de863<_0x4d8787[_0x156927(0x236)];_0x5de863++){if(_0x2a9691[_0x5de863])continue;const _0x58568b=_0x4d8787[_0x5de863][_0x156927(0x234)],_0x1ad908=_0x58568b[0x0];_0x1ad908&&_0x56262d(_0x1ad908,_0x13b32d)&&(_0x23c67d[_0x156927(0x217)](_0x58568b),_0x2a9691[_0x5de863]=!![]);}const _0x4313ad=_0x27e03b(_0x13b32d);if(_0x4313ad[_0x156927(0x236)]<0x4)continue;const _0x4a3428=[];for(const _0x1da59b of _0x23c67d){const _0x2a77c6=_0x27e03b(_0x1da59b);if(_0x2a77c6[_0x156927(0x236)]>=0x4)_0x4a3428[_0x156927(0x217)](_0x2a77c6);}_0x372551[_0x156927(0x217)]({'type':_0x156927(0x1ee),'properties':{'z':_0x33e734},'geometry':{'type':_0x156927(0x202),'coordinates':[_0x4313ad,..._0x4a3428]}});}}}_0x372551[_0x156927(0x236)]&&this[_0x156927(0x22c)][_0x156927(0x218)](_0x33e734,_0x372551);}}if(typeof _0x22044b!=='undefined'){const _0x40a3ac=this[_0x156927(0x22c)][_0x156927(0x1fe)](_0x22044b)||[],_0x38a1d5=this[_0x156927(0x1db)]?this[_0x156927(0x1db)](_0x40a3ac):_0x40a3ac;return{'type':'FeatureCollection','features':_0x38a1d5};}const _0x5c71ed=[];for(const _0x45fbe5 of this[_0x156927(0x22c)][_0x156927(0x21c)]()){_0x5c71ed[_0x156927(0x217)](..._0x45fbe5);}const _0x2c0765=this['sortFeaturesByArea']?this['sortFeaturesByArea'](_0x5c71ed):_0x5c71ed;return{'type':_0x156927(0x1e3),'features':_0x2c0765};}['getJsonData'](){const _0xf6a536=a3_0x410f6c,_0x2e7a8d=Array[_0xf6a536(0x213)]({'length':this['nx']});for(let _0x239ddf=0x0;_0x239ddf<this['nx'];_0x239ddf++){_0x2e7a8d[_0x239ddf]=new a3_0x1ddee9(this[_0xf6a536(0x227)])[_0xf6a536(0x1e8)](new a3_0x1ddee9(_0x239ddf)[_0xf6a536(0x22b)](this['gjLng']))[_0xf6a536(0x225)]();}const _0x2fe1d8=Array[_0xf6a536(0x213)]({'length':this['ny']});for(let _0x13bad3=0x0;_0x13bad3<this['ny'];_0x13bad3++){_0x2fe1d8[_0x13bad3]=new a3_0x1ddee9(this[_0xf6a536(0x224)])[_0xf6a536(0x1e8)](new a3_0x1ddee9(_0x13bad3)['times'](this['gjLat']))[_0xf6a536(0x225)]();}const _0x28d68a=Array[_0xf6a536(0x213)]({'length':this['nx']*this['ny']});for(let _0x473c3f=0x0;_0x473c3f<this[_0xf6a536(0x21c)][_0xf6a536(0x236)];_0x473c3f++){const _0x2c3cd5=Math[_0xf6a536(0x1eb)](_0x473c3f/this['nx']),_0x29b6cf=_0x473c3f%this['nx'],_0x5221c6=_0x2e7a8d[_0x29b6cf],_0x2aab5c=_0x2fe1d8[_0x2c3cd5],_0x21c19d=this['values'][_0x473c3f];_0x2aab5c&&_0x5221c6&&(_0x28d68a[_0x473c3f]={'lng':_0x5221c6,'lat':_0x2aab5c,'val':_0x21c19d});}return _0x28d68a;}[a3_0x410f6c(0x237)](){const _0x402c30=a3_0x410f6c;let _0x2fe8cf=-Infinity,_0x38efd9=Infinity;for(let _0x1cad6b=0x0;_0x1cad6b<this[_0x402c30(0x21c)][_0x402c30(0x236)];_0x1cad6b++){const _0x40a59c=this[_0x402c30(0x21c)][_0x1cad6b];if(_0x40a59c>_0x2fe8cf)_0x2fe8cf=_0x40a59c;if(_0x40a59c<_0x38efd9)_0x38efd9=_0x40a59c;}this['minVal']=_0x38efd9,this[_0x402c30(0x230)]=_0x2fe8cf;}[a3_0x410f6c(0x1df)](){const _0x2c60c9=a3_0x410f6c,_0x3d0f39=[];if(this[_0x2c60c9(0x200)]===Infinity||this[_0x2c60c9(0x230)]===-Infinity)return _0x3d0f39;for(let _0x1bc66e=this['minVal']-0x1;_0x1bc66e<=this[_0x2c60c9(0x230)]+0x1;_0x1bc66e++){_0x3d0f39[_0x2c60c9(0x217)](_0x1bc66e);}return _0x3d0f39;}['sortFeaturesByArea'](_0x25b453){const _0x58f845=a3_0x410f6c;return _0x25b453[_0x58f845(0x1f4)](_0x435633=>{const _0x433f7f=_0x58f845;try{const _0x473b60=a3_0x4e0606(_0x435633)||0x0;_0x435633[_0x433f7f(0x22a)]={..._0x435633[_0x433f7f(0x22a)]||{},'__area':_0x473b60};}catch{_0x435633['properties']={..._0x435633[_0x433f7f(0x22a)]||{},'__area':0x0};}return _0x435633;})[_0x58f845(0x22f)]((_0x125fdf,_0x421e04)=>_0x421e04[_0x58f845(0x22a)][_0x58f845(0x1f5)]-_0x125fdf[_0x58f845(0x22a)][_0x58f845(0x1f5)])[_0x58f845(0x219)](_0x57d05a=>_0x57d05a[_0x58f845(0x22a)]&&_0x58f845(0x1f5)in _0x57d05a[_0x58f845(0x22a)]&&_0x57d05a[_0x58f845(0x22a)][_0x58f845(0x1f5)]!==0x0)['map'](_0xa9b774=>{const _0x68c916=_0x58f845;if(_0xa9b774['properties']&&_0x68c916(0x1f5)in _0xa9b774[_0x68c916(0x22a)]){const {__area:_0x50cda6,..._0xc58d9d}=_0xa9b774[_0x68c916(0x22a)];_0xa9b774[_0x68c916(0x22a)]=_0xc58d9d;}return _0xa9b774;});}['chunkArray']=(_0x313142,_0x59aaf9)=>{const _0x2a0fa7=a3_0x410f6c,_0x43e1e1=[],_0x101c20=Math[_0x2a0fa7(0x222)](0x1,Math[_0x2a0fa7(0x229)](_0x313142[_0x2a0fa7(0x236)]/_0x59aaf9));for(let _0x15aae5=0x0;_0x15aae5<_0x59aaf9;_0x15aae5++){_0x43e1e1[_0x2a0fa7(0x217)](_0x313142[_0x2a0fa7(0x1ec)](_0x15aae5*_0x101c20,(_0x15aae5+0x1)*_0x101c20));}return _0x43e1e1;};}export default readFileM4;function a3_0x23fe(){const _0x211826=['27893052hAzBLR','filePath','values','56CAJmPQ','string','clear','_maskCacheKey','convertTemKtoC','max','abs','minLat','toNumber','indexOf','minLng','start','ceil','properties','times','_maskCache','replace','getIsoBandsImage','sort','maxVal','getIsoBandsByLayerBreak','setParams','trim','ring','height','length','getMinMax','features','moveTo','lineTo','8nkJYlS','gjLng','canvas','clearMaskCache','sortFeaturesByArea','isNaN','plusOffset','getIsoBandsFastByWorker','getBreaks','5RpDXGA','width','263964rFVGCI','FeatureCollection','beginPath','module','clipDataByJson','size','plus','value','createElement','floor','slice','16zFKSnk','Feature','contours','chunkArray','postMessage','thresholds','275838tgYOhb','map','__area','791228CZqnZW','error','min','5341509jEagbL','onerror','hardwareConcurrency','onmessage','undefined','get','number','minVal','coordinates','Polygon','data','pixelRatio','all','getColorFast','gjLat','flat','split','fill','62542DvTWqY','text','forEach','getIsoBandsFast','5700610bahaUS','terminate','该时次文件数据异常','fillStyle','from','scale','isArray','closePath','push','set','filter'];a3_0x23fe=function(){return _0x211826;};return a3_0x23fe();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m4-w-fast",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",