m4-w-fast 1.0.2 → 1.0.3

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_0x1d888f=a3_0x377c;(function(_0x54cbad,_0x47af9f){const _0x5ae985=a3_0x377c,_0x4ec90a=_0x54cbad();while(!![]){try{const _0x4703ab=parseInt(_0x5ae985(0xd0))/0x1*(-parseInt(_0x5ae985(0x9d))/0x2)+-parseInt(_0x5ae985(0x95))/0x3*(parseInt(_0x5ae985(0xa7))/0x4)+parseInt(_0x5ae985(0xd2))/0x5+-parseInt(_0x5ae985(0xe0))/0x6+-parseInt(_0x5ae985(0xe8))/0x7+-parseInt(_0x5ae985(0xc6))/0x8+parseInt(_0x5ae985(0xdf))/0x9;if(_0x4703ab===_0x47af9f)break;else _0x4ec90a['push'](_0x4ec90a['shift']());}catch(_0x38951c){_0x4ec90a['push'](_0x4ec90a['shift']());}}}(a3_0x289d,0x356db));function a3_0x377c(_0x4670a9,_0x2ef7ca){const _0x289d36=a3_0x289d();return a3_0x377c=function(_0x377c88,_0x3329e1){_0x377c88=_0x377c88-0x92;let _0x523266=_0x289d36[_0x377c88];return _0x523266;},a3_0x377c(_0x4670a9,_0x2ef7ca);}import{points as a3_0x3f2eb6,featureCollection as a3_0x503e6e}from'@turf/helpers';import a3_0x27c84a from'@turf/isolines';import a3_0x2ad98e from'@turf/isobands';import a3_0x16ae44 from'@turf/area';import a3_0x5e6a0f from'decimal.js';import{contours}from'd3-contour';function a3_0x289d(){const _0x1b016c=['area','_maskCacheKey','maxVal','getIsoColor','minLat','lat','Polygon','terminate','slice','text','getIsoBandsByLayerBreak','sortFeaturesByArea','val','latLineNum','data','isNaN','size','length','trim','ceil','2068120TEVtwC','coordinates','jsonMap','thresholds','undefined','getIsoBandsFastByWorker','lngLineNum','gjLng','onerror','json','98SreDJW','toNumber','1059275iLFwkx','minLng','fill','number','abs','__area','max','times','module','contours','rgba(','getIsoBandsFast','map','8920710gSsPZG','967746jmSpgf','error','getIsoBandsFastBase','start','split','chunkArray','minVal','ring','384454qUbcsw','features','join','FeatureCollection','sort','from','push','clipDataByJson','plus','hardwareConcurrency','6gjdHQA','filePath','get','string','gjLat','all','Feature','_maskCache','8260AQWmqx','flat','lng','getBreaks','properties','isArray','values','filter','forEach','set','209468hSKwfi','geometry','breaks','contour','该时次未获取到文件','onmessage','getGridPoints','min','该时次文件数据异常','getColorFast','postMessage'];a3_0x289d=function(){return _0x1b016c;};return a3_0x289d();}export class _readFileDiamond4{['filePath'];[a3_0x1d888f(0xcf)]=[];['gjLng']=0x0;[a3_0x1d888f(0x99)]=0x0;[a3_0x1d888f(0xcc)]=0x0;[a3_0x1d888f(0xbf)]=0x0;[a3_0x1d888f(0xd3)]=0x0;[a3_0x1d888f(0xb6)]=0x0;[a3_0x1d888f(0xc8)]=new Map();[a3_0x1d888f(0xb4)]=-Infinity;[a3_0x1d888f(0xe6)]=Infinity;[a3_0x1d888f(0xb3)]='';['_maskCache']=new Map();constructor(_0x378765){const _0x1f0d7d=a3_0x1d888f;this[_0x1f0d7d(0x96)]=_0x378765;}async[a3_0x1d888f(0xe3)](){const _0x5666c6=a3_0x1d888f,_0x4f37ae=await fetch(this[_0x5666c6(0x96)]);if(!_0x4f37ae['ok'])return _0x5666c6(0xab);const _0x2b4990=await _0x4f37ae[_0x5666c6(0xbb)](),_0xf893da=_0x2b4990[_0x5666c6(0xe4)]('\x0a');if(_0xf893da[_0x5666c6(0xc3)]<0x4)return _0x5666c6(0xaf);const _0x196a53=(_0xf893da[0x1]??'')[_0x5666c6(0xc4)]()[_0x5666c6(0xe4)](/\s+/);let _0x2725c6=0x2;while(_0x196a53['length']<0x13){_0x196a53[_0x5666c6(0xee)](...(_0xf893da[_0x2725c6]??'')['trim']()[_0x5666c6(0xe4)](/\s+/)),_0x2725c6++;}this['gjLng']=Number(_0x196a53[0x6]);const _0x57496f=Number(_0x196a53[0x8]),_0xeca14a=Number(_0x196a53[0xa]),_0x22bc5f=Number(_0x196a53[0xb]);this['lngLineNum']=Number(_0x196a53[0xc]),this['latLineNum']=Number(_0x196a53[0xd]),this[_0x5666c6(0xd3)]=_0x57496f,this[_0x5666c6(0xb6)]=_0xeca14a,this[_0x5666c6(0x99)]=Math['abs'](Number(_0x196a53[0x7]))*(_0xeca14a>_0x22bc5f?-0x1:0x1);const _0x3c9224=this['lngLineNum'],_0x58c1a4=this[_0x5666c6(0xbf)],_0x39e571=_0x3c9224*_0x58c1a4;if(_0x39e571===0x0)return;const _0x5efac6=Array['from']({'length':this[_0x5666c6(0xcc)]});for(let _0x544e0c=0x0;_0x544e0c<this[_0x5666c6(0xcc)];_0x544e0c++){_0x5efac6[_0x544e0c]=new a3_0x5e6a0f(_0x57496f)['plus'](new a3_0x5e6a0f(_0x544e0c)[_0x5666c6(0xd9)](this[_0x5666c6(0xcd)]))[_0x5666c6(0xd1)]();}const _0x5e678c=Array[_0x5666c6(0xed)]({'length':this['latLineNum']});for(let _0x316b68=0x0;_0x316b68<this[_0x5666c6(0xbf)];_0x316b68++){_0x5e678c[_0x316b68]=new a3_0x5e6a0f(_0xeca14a)['plus'](new a3_0x5e6a0f(_0x316b68)[_0x5666c6(0xd9)](this[_0x5666c6(0x99)]))[_0x5666c6(0xd1)]();}this[_0x5666c6(0xcf)]=Array[_0x5666c6(0xed)]({'length':this['lngLineNum']*this[_0x5666c6(0xbf)]});let _0x248bc4=0x0;for(let _0x2ac47a=_0x2725c6;_0x2ac47a<_0xf893da['length']&&_0x248bc4<_0x39e571;_0x2ac47a++){const _0x4a5dd6=_0xf893da[_0x2ac47a]??'',_0x31181c=_0x4a5dd6[_0x5666c6(0xc4)]()['split'](/\s+/);if(!_0x31181c)continue;for(let _0x345df0=0x0;_0x345df0<_0x31181c[_0x5666c6(0xc3)];_0x345df0++){const _0x12079e=Number(_0x31181c[_0x345df0]);this[_0x5666c6(0xb4)]=Math[_0x5666c6(0xd8)](this[_0x5666c6(0xb4)],_0x12079e),this[_0x5666c6(0xe6)]=Math[_0x5666c6(0xae)](this[_0x5666c6(0xe6)],_0x12079e);const _0x212d3d=Math['floor'](_0x248bc4/_0x3c9224),_0x5b450d=_0x248bc4%_0x3c9224,_0x3ab563=_0x5efac6[_0x5b450d],_0x1bc71f=_0x5e678c[_0x212d3d];_0x1bc71f&&_0x3ab563&&(this['json'][_0x248bc4]={'lat':_0x1bc71f,'lng':_0x3ab563,'val':_0x12079e}),_0x248bc4++;}}this[_0x5666c6(0xcf)]=this[_0x5666c6(0xcf)][_0x5666c6(0xa4)](_0x35e34a=>_0x35e34a!==undefined);}['getJson'](){const _0x581a46=a3_0x1d888f;return this[_0x581a46(0xcf)];}['setJson'](_0x1a32a9){const _0x58c31a=a3_0x1d888f;this[_0x58c31a(0xcf)]=_0x1a32a9,this[_0x58c31a(0xc8)]=new Map(),this['json'][_0x58c31a(0xa5)](_0x491bd9=>{const _0x131fbe=_0x58c31a;this[_0x131fbe(0xc8)][_0x131fbe(0xa6)](_0x491bd9['lng']+'-'+_0x491bd9[_0x131fbe(0xb7)],_0x491bd9[_0x131fbe(0xbe)]);});}[a3_0x1d888f(0xa0)](){const _0xc18861=a3_0x1d888f,_0x3553d5=Math[_0xc18861(0xd8)](...this[_0xc18861(0xcf)][_0xc18861(0xde)](_0x3c3ee2=>_0x3c3ee2['val'])),_0x5127a7=Math[_0xc18861(0xae)](...this[_0xc18861(0xcf)][_0xc18861(0xde)](_0x17a5a9=>_0x17a5a9['val'])),_0x58baa0=[];for(let _0x5f34e3=_0x5127a7-0x1;_0x5f34e3<_0x3553d5+0x1;_0x5f34e3++){_0x58baa0['push'](_0x5f34e3);}return _0x58baa0;}[a3_0x1d888f(0xad)](){const _0x13473a=a3_0x1d888f,_0x186957=this[_0x13473a(0xcf)][_0x13473a(0xde)](_0x49d986=>[_0x49d986[_0x13473a(0x9f)],_0x49d986[_0x13473a(0xb7)]]),_0x423887=a3_0x3f2eb6(_0x186957),_0x402adc=this['jsonMap'];return _0x423887['features'][_0x13473a(0xa5)](_0x386081=>{const _0x24a093=_0x13473a;_0x386081[_0x24a093(0xa1)]={'z':_0x402adc[_0x24a093(0x97)](_0x386081[_0x24a093(0xa8)][_0x24a093(0xc7)][0x0]+'-'+_0x386081['geometry']['coordinates'][0x1])||0x0};}),_0x423887;}['getIsoLines'](_0x4ca60a=[]){const _0x58b3f2=a3_0x1d888f;_0x4ca60a[_0x58b3f2(0xc3)]===0x0&&(_0x4ca60a=this[_0x58b3f2(0xa0)]());const _0x22d2c6=this['getGridPoints']();return a3_0x27c84a(_0x22d2c6,_0x4ca60a,{'zProperty':'z'});}['getIsoBands'](_0x2fd2b5=[]){const _0x1f6481=a3_0x1d888f;_0x2fd2b5[_0x1f6481(0xc3)]===0x0&&(_0x2fd2b5=this[_0x1f6481(0xa0)]());const _0x3901a0=this[_0x1f6481(0xad)]();return a3_0x2ad98e(_0x3901a0,_0x2fd2b5,{'zProperty':'z'});}[a3_0x1d888f(0xb5)](_0x5e1ea5,_0x3a2a6d,_0x317433){const _0x746306=a3_0x1d888f;let _0x1b0743='rgba(255,255,255,0)';for(let _0x163885=0x0;_0x163885<_0x3a2a6d[_0x746306(0xc3)]-0x1;_0x163885++){_0x163885<_0x3a2a6d['length']-0x1&&(_0x3a2a6d[_0x163885]+'-'+_0x3a2a6d[_0x163885+0x1]===_0x5e1ea5&&(typeof _0x317433[_0x163885]==_0x746306(0x98)?_0x1b0743=_0x317433[_0x163885]:_0x1b0743='rgba('+_0x317433[_0x163885][0x0]+','+_0x317433[_0x163885][0x1]+','+_0x317433[_0x163885][0x2]+','+(_0x317433[_0x163885][0x3]||_0x317433[_0x163885][0x3]===0x0?_0x317433[_0x163885][0x3]:0x1)+')'));}return _0x1b0743;}[a3_0x1d888f(0xdd)](_0x1b47b1=[]){const _0x1a6a2a=a3_0x1d888f,_0x3dfb10=this[_0x1a6a2a(0xe2)](_0x1b47b1);let _0x507fc3=[];const {values:_0x120991,nx:_0x28329a,ny:_0x3e1536}=_0x3dfb10;_0x1b47b1=_0x3dfb10['breaks'];if(!_0x120991)return{'type':'FeatureCollection','features':[]};const _0x141250=contours()[_0x1a6a2a(0xc2)]([_0x28329a,_0x3e1536]);for(let _0x55fe82=0x0;_0x55fe82<_0x1b47b1['length'];_0x55fe82++){const _0x34f9f7=_0x1b47b1[_0x55fe82];if(_0x34f9f7<this[_0x1a6a2a(0xe6)]||_0x34f9f7>this[_0x1a6a2a(0xb4)])continue;const _0x1a1bb1=_0x141250[_0x1a6a2a(0xaa)](_0x120991,_0x34f9f7);if(!_0x1a1bb1||!_0x1a1bb1[_0x1a6a2a(0xc7)])continue;for(const _0x46112d of _0x1a1bb1[_0x1a6a2a(0xc7)]){let _0x4f4493=[];if(Array[_0x1a6a2a(0xa2)](_0x46112d)&&_0x46112d[_0x1a6a2a(0xc3)]>0x0&&Array[_0x1a6a2a(0xa2)](_0x46112d[0x0])&&typeof _0x46112d[0x0][0x0]===_0x1a6a2a(0xd5))_0x4f4493=[_0x46112d];else{if(Array[_0x1a6a2a(0xa2)](_0x46112d))_0x4f4493=_0x46112d;else continue;}for(const _0x371724 of _0x4f4493){const _0x16bdb7=_0x371724['map'](_0x20a3bc=>{const _0x67e30=_0x1a6a2a,_0x5d3151=_0x20a3bc[0x0],_0x404c69=_0x20a3bc[0x1];if(_0x5d3151==null||_0x404c69==null||Number[_0x67e30(0xc1)](_0x5d3151)||Number[_0x67e30(0xc1)](_0x404c69))return null;const _0x41ef28=new a3_0x5e6a0f(this['minLng'])[_0x67e30(0x93)](new a3_0x5e6a0f(_0x5d3151)[_0x67e30(0xd9)](this[_0x67e30(0xcd)]))['toNumber'](),_0x371fa7=new a3_0x5e6a0f(this[_0x67e30(0xb6)])['plus'](new a3_0x5e6a0f(_0x404c69)[_0x67e30(0xd9)](this[_0x67e30(0x99)]))[_0x67e30(0xd1)]();return[_0x41ef28,_0x371fa7];})[_0x1a6a2a(0xa4)](_0x29cdfa=>_0x29cdfa!==null),_0x2afb7b=_0x16bdb7[_0x1a6a2a(0xa4)]((_0x1193e6,_0x361dee,_0x5eda38)=>{if(_0x361dee===0x0)return!![];const _0x12f671=_0x5eda38[_0x361dee-0x1];return!(_0x1193e6[0x0]===_0x12f671[0x0]&&_0x1193e6[0x1]===_0x12f671[0x1]);});if(_0x2afb7b[_0x1a6a2a(0xc3)]<0x3)continue;const _0x5865ba=_0x2afb7b[0x0],_0x3624bd=_0x2afb7b[_0x2afb7b[_0x1a6a2a(0xc3)]-0x1];(_0x5865ba[0x0]!==_0x3624bd[0x0]||_0x5865ba[0x1]!==_0x3624bd[0x1])&&_0x2afb7b[_0x1a6a2a(0xee)]([_0x5865ba[0x0],_0x5865ba[0x1]]),_0x507fc3[_0x1a6a2a(0xee)]({'type':'Feature','properties':{'z':_0x34f9f7},'geometry':{'type':'Polygon','coordinates':[_0x2afb7b]}});}}}return _0x507fc3=this['sortFeaturesByArea'](_0x507fc3),{'type':_0x1a6a2a(0xeb),'features':_0x507fc3};}['clearMaskCache'](){const _0x598434=a3_0x1d888f;this[_0x598434(0x9c)]['clear']();}[a3_0x1d888f(0xbc)]=(_0x4ad07f=[],_0x4c23ba)=>{const _0x152bed=a3_0x1d888f;if(typeof _0x4c23ba!=='undefined'&&this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)){const _0x50c30b=this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)||[],_0x54706a=this[_0x152bed(0xbd)]?this[_0x152bed(0xbd)](_0x50c30b):_0x50c30b;return{'type':_0x152bed(0xeb),'features':_0x54706a};}const _0x473061=this['getIsoBandsFastBase'](_0x4ad07f);if(!_0x473061||!_0x473061[_0x152bed(0xa3)])return{'type':_0x152bed(0xeb),'features':[]};const {values:_0x3b8483,nx:_0x1a03da,ny:_0x50edac}=_0x473061,_0x5c0b9e=_0x473061[_0x152bed(0xa9)]||_0x4ad07f;if(!_0x3b8483||!_0x1a03da||!_0x50edac||!_0x5c0b9e||_0x5c0b9e[_0x152bed(0xc3)]===0x0)return{'type':_0x152bed(0xeb),'features':[]};const _0x3224fe=_0x5c0b9e[_0x152bed(0xea)](',');if(this[_0x152bed(0xb3)]!==_0x3224fe){this[_0x152bed(0xb3)]=_0x3224fe,this[_0x152bed(0x9c)]['clear']();const _0x446670=this[_0x152bed(0xd3)],_0x3bfc9e=this[_0x152bed(0xb6)],_0x4c8c90=this[_0x152bed(0xcd)],_0x31701a=this[_0x152bed(0x99)],_0x3bda68=_0x3b7b28=>{let _0x2e0565=0x0;for(let _0x1e5118=0x0,_0x2e21db=_0x3b7b28['length'];_0x1e5118<_0x2e21db;_0x1e5118++){const _0x52f48=_0x3b7b28[_0x1e5118][0x0],_0x53df5d=_0x3b7b28[_0x1e5118][0x1],_0x38c133=_0x3b7b28[(_0x1e5118+0x1)%_0x2e21db][0x0],_0x21fc9b=_0x3b7b28[(_0x1e5118+0x1)%_0x2e21db][0x1];if(_0x52f48==null||_0x53df5d==null||_0x38c133==null||_0x21fc9b==null)continue;_0x2e0565+=_0x52f48*_0x21fc9b-_0x38c133*_0x53df5d;}return _0x2e0565/0x2;},_0x440b2e=(_0x55e1c2,_0x3562ed)=>{const _0x1b754e=_0x152bed;if(!_0x55e1c2)return![];const _0x430e00=_0x55e1c2[0x0],_0xfedba1=_0x55e1c2[0x1];let _0x157755=![];for(let _0x3f415d=0x0,_0x3d6db6=_0x3562ed[_0x1b754e(0xc3)]-0x1;_0x3f415d<_0x3562ed[_0x1b754e(0xc3)];_0x3d6db6=_0x3f415d++){const _0x546c54=_0x3562ed[_0x3f415d][0x0],_0x7c31de=_0x3562ed[_0x3f415d][0x1],_0xb889e4=_0x3562ed[_0x3d6db6][0x0],_0x140dd7=_0x3562ed[_0x3d6db6][0x1],_0xab7bb9=_0x7c31de>_0xfedba1!==_0x140dd7>_0xfedba1&&_0x430e00<(_0xb889e4-_0x546c54)*(_0xfedba1-_0x7c31de)/(_0x140dd7-_0x7c31de)+_0x546c54;if(_0xab7bb9)_0x157755=!_0x157755;}return _0x157755;},_0x2cc2b2=_0x57ee9b=>{const _0xa1b5c8=_0x152bed,_0x295973=[];let _0x3c40b8=null,_0x343660=null;for(let _0x1073c1=0x0;_0x1073c1<_0x57ee9b[_0xa1b5c8(0xc3)];_0x1073c1++){const _0x129b98=_0x57ee9b[_0x1073c1];if(!_0x129b98)continue;const _0x362f12=_0x129b98[0x0],_0x1d9a3b=_0x129b98[0x1];if(_0x362f12==null||_0x1d9a3b==null||Number[_0xa1b5c8(0xc1)](_0x362f12)||Number[_0xa1b5c8(0xc1)](_0x1d9a3b))continue;const _0x27519f=_0x446670+_0x362f12*_0x4c8c90,_0x339e3d=_0x3bfc9e+_0x1d9a3b*_0x31701a;if(_0x3c40b8!==null&&_0x343660!==null&&_0x3c40b8===_0x27519f&&_0x343660===_0x339e3d){_0x3c40b8=_0x27519f,_0x343660=_0x339e3d;continue;}_0x295973[_0xa1b5c8(0xee)]([_0x27519f,_0x339e3d]),_0x3c40b8=_0x27519f,_0x343660=_0x339e3d;}if(_0x295973[_0xa1b5c8(0xc3)]===0x0)return _0x295973;const _0x2f91a2=_0x295973[0x0],_0x427774=_0x295973[_0x295973[_0xa1b5c8(0xc3)]-0x1];if(_0x2f91a2[0x0]!==_0x427774[0x0]||_0x2f91a2[0x1]!==_0x427774[0x1])_0x295973[_0xa1b5c8(0xee)]([_0x2f91a2[0x0],_0x2f91a2[0x1]]);return _0x295973;},_0x386991=_0x5c0b9e[_0x152bed(0xc3)]-0x1;for(let _0x1d8566=0x0;_0x1d8566<_0x5c0b9e[_0x152bed(0xc3)];_0x1d8566++){const _0x52c7da=_0x5c0b9e[_0x1d8566],_0x5abaa0=_0x1d8566<_0x386991?_0x5c0b9e[_0x1d8566+0x1]:Infinity,_0x541827=Array['from']({'length':_0x3b8483[_0x152bed(0xc3)]});let _0x9af374=![];for(let _0x2684a2=0x0;_0x2684a2<_0x3b8483['length'];_0x2684a2++){const _0x1816ac=_0x3b8483[_0x2684a2],_0xe4b668=_0x1816ac>=_0x52c7da&&_0x1816ac<_0x5abaa0?0x1:0x0;if(_0xe4b668)_0x9af374=!![];_0x541827[_0x2684a2]=_0xe4b668;}if(!_0x9af374)continue;const _0x2d9029=contours()[_0x152bed(0xc2)]([_0x1a03da,_0x50edac])[_0x152bed(0xc9)]([0.5]),_0x7fa66d=_0x2d9029[_0x152bed(0xdb)]?_0x2d9029[_0x152bed(0xdb)](_0x541827):_0x2d9029(_0x541827);if(!_0x7fa66d||_0x7fa66d[_0x152bed(0xc3)]===0x0)continue;const _0x336411=[];for(const _0x55e8a2 of _0x7fa66d){const _0x28de49=_0x55e8a2&&_0x55e8a2[_0x152bed(0xc7)];if(!_0x28de49)continue;for(const _0xbbed1c of _0x28de49){let _0x3cf724=[];if(Array['isArray'](_0xbbed1c)&&_0xbbed1c[_0x152bed(0xc3)]>0x0&&typeof _0xbbed1c[0x0][0x0]===_0x152bed(0xd5))_0x3cf724=[_0xbbed1c];else{if(Array[_0x152bed(0xa2)](_0xbbed1c))_0x3cf724=_0xbbed1c;else continue;}const _0x4d1f95=_0x3cf724[_0x152bed(0xde)](_0x30e21a=>({'ring':_0x30e21a,'area':Math[_0x152bed(0xd6)](_0x3bda68(_0x30e21a))}))['sort']((_0x25636c,_0x3d37ee)=>_0x3d37ee[_0x152bed(0xb2)]-_0x25636c[_0x152bed(0xb2)]),_0x595c5c=Array['from']({'length':_0x4d1f95['length']})[_0x152bed(0xd4)](![]);for(let _0x465cd8=0x0;_0x465cd8<_0x4d1f95['length'];_0x465cd8++){if(_0x595c5c[_0x465cd8])continue;const _0x1c1ea6=_0x4d1f95[_0x465cd8]['ring'];_0x595c5c[_0x465cd8]=!![];const _0x14bd3e=[];for(let _0x271eb8=0x0;_0x271eb8<_0x4d1f95['length'];_0x271eb8++){if(_0x595c5c[_0x271eb8])continue;const _0x6b2427=_0x4d1f95[_0x271eb8][_0x152bed(0xe7)],_0x47ae92=_0x6b2427[0x0];_0x47ae92&&_0x440b2e(_0x47ae92,_0x1c1ea6)&&(_0x14bd3e[_0x152bed(0xee)](_0x6b2427),_0x595c5c[_0x271eb8]=!![]);}const _0x23ec13=_0x2cc2b2(_0x1c1ea6);if(_0x23ec13[_0x152bed(0xc3)]<0x4)continue;const _0x24aad1=[];for(const _0x41ae4e of _0x14bd3e){const _0x25c01b=_0x2cc2b2(_0x41ae4e);if(_0x25c01b[_0x152bed(0xc3)]>=0x4)_0x24aad1[_0x152bed(0xee)](_0x25c01b);}_0x336411[_0x152bed(0xee)]({'type':_0x152bed(0x9b),'properties':{'z':_0x52c7da},'geometry':{'type':_0x152bed(0xb8),'coordinates':[_0x23ec13,..._0x24aad1]}});}}}_0x336411[_0x152bed(0xc3)]&&this[_0x152bed(0x9c)]['set'](_0x52c7da,_0x336411);}}if(typeof _0x4c23ba!==_0x152bed(0xca)){const _0x2bb395=this[_0x152bed(0x9c)][_0x152bed(0x97)](_0x4c23ba)||[],_0xa4afc8=this[_0x152bed(0xbd)]?this[_0x152bed(0xbd)](_0x2bb395):_0x2bb395;return{'type':_0x152bed(0xeb),'features':_0xa4afc8};}const _0x5c0422=[];for(const _0x42487d of this[_0x152bed(0x9c)][_0x152bed(0xa3)]()){_0x5c0422[_0x152bed(0xee)](..._0x42487d);}const _0xbbb3c3=this[_0x152bed(0xbd)]?this['sortFeaturesByArea'](_0x5c0422):_0x5c0422;return{'type':'FeatureCollection','features':_0xbbb3c3};};[a3_0x1d888f(0xb0)](_0x2880e5,_0x1a7822,_0x592b47){const _0x2d482c=a3_0x1d888f;let _0x151416='rgba(255,255,255,0)';const _0x41b734=_0x1a7822['indexOf'](_0x2880e5);if(typeof _0x592b47[_0x41b734]==_0x2d482c(0x98))_0x151416=_0x592b47[_0x41b734];else _0x41b734!==-0x1&&(_0x151416=_0x2d482c(0xdc)+_0x592b47[_0x41b734][0x0]+','+_0x592b47[_0x41b734][0x1]+','+_0x592b47[_0x41b734][0x2]+','+(_0x592b47[_0x41b734][0x3]||_0x592b47[_0x41b734][0x3]===0x0?_0x592b47[_0x41b734][0x3]:0x1)+')');return _0x151416;}[a3_0x1d888f(0xe5)]=(_0x9ab906,_0x57df55)=>{const _0x5f2801=a3_0x1d888f,_0xfb0989=[],_0x58288f=Math[_0x5f2801(0xd8)](0x1,Math[_0x5f2801(0xc5)](_0x9ab906[_0x5f2801(0xc3)]/_0x57df55));for(let _0x470302=0x0;_0x470302<_0x57df55;_0x470302++){_0xfb0989[_0x5f2801(0xee)](_0x9ab906[_0x5f2801(0xba)](_0x470302*_0x58288f,(_0x470302+0x1)*_0x58288f));}return _0xfb0989;};[a3_0x1d888f(0x92)]=async(_0x1e7a5c,_0x4e9e79,_0x2b8ec4)=>{const _0x51d140=a3_0x1d888f,_0x1c89d4=navigator[_0x51d140(0x94)]-0x4||0x1,_0x2b2751=Math[_0x51d140(0xae)](_0x1c89d4,Math['max'](0x1,_0x1e7a5c[_0x51d140(0xe9)][_0x51d140(0xc3)])),_0x3b7ebe=this[_0x51d140(0xe5)](_0x1e7a5c[_0x51d140(0xe9)],_0x2b2751),_0x4a6ef2=[],_0x405586=_0x3b7ebe['map'](_0x52f5d5=>{const _0x35320b=_0x51d140,_0xe13639=new Worker(_0x2b8ec4,{'type':'module'});return _0x4a6ef2[_0x35320b(0xee)](_0xe13639),new Promise(_0x2a2759=>{const _0x55d627=_0x35320b;_0xe13639[_0x55d627(0xac)]=_0x211ca5=>{const _0x303a07=_0x55d627;_0x2a2759(_0x211ca5[_0x303a07(0xc0)]['features']);},_0xe13639['onerror']=_0x4af65f=>{const _0x4efbee=_0x55d627;console[_0x4efbee(0xe1)](_0x4af65f);},_0xe13639['postMessage']({'isoChunk':_0x52f5d5,'gansuFeatures':_0x4e9e79[_0x55d627(0xe9)]});});}),_0x14ceaa=await Promise['all'](_0x405586);_0x4a6ef2[_0x51d140(0xa5)](_0x54a954=>_0x54a954[_0x51d140(0xb9)]());const _0x18f73a=_0x14ceaa[_0x51d140(0x9e)]();return a3_0x503e6e(_0x18f73a);};[a3_0x1d888f(0xcb)]=async(_0x1578e8=[],_0x4a8ed1)=>{const _0x52d10c=a3_0x1d888f,_0x2ed3af=this[_0x52d10c(0xe2)](_0x1578e8);let _0x35158f=[];const {values:_0x17837a,nx:_0x5e64f7,ny:_0x231326}=_0x2ed3af;_0x1578e8=_0x2ed3af[_0x52d10c(0xa9)];if(!_0x17837a)return{'type':_0x52d10c(0xeb),'features':[]};const _0x186cd5=[],_0x20c03f=navigator[_0x52d10c(0x94)]-0x4||0x1,_0x4ec665=Math['min'](_0x20c03f,Math['max'](0x1,_0x1578e8['length'])),_0x4a1f1d=this[_0x52d10c(0xe5)](_0x1578e8,_0x4ec665),_0x2021f9=_0x4a1f1d[_0x52d10c(0xde)](_0x40c0b2=>{const _0x5234ff=_0x52d10c,_0x1ac1dc=new Worker(_0x4a8ed1,{'type':_0x5234ff(0xda)});return _0x186cd5['push'](_0x1ac1dc),new Promise(_0x4ad383=>{const _0x344e11=_0x5234ff;_0x1ac1dc[_0x344e11(0xac)]=_0x4755b4=>{const _0x2bc3c9=_0x344e11;_0x4ad383(_0x4755b4[_0x2bc3c9(0xc0)][_0x2bc3c9(0xe9)]);},_0x1ac1dc[_0x344e11(0xce)]=_0x4e2316=>{const _0x5a2f45=_0x344e11;console[_0x5a2f45(0xe1)](_0x4e2316);},_0x1ac1dc[_0x344e11(0xb1)]({'breaks':_0x40c0b2,'values':_0x17837a,'nx':_0x5e64f7,'ny':_0x231326,'minVal':this['minVal'],'maxVal':this[_0x344e11(0xb4)],'minLng':this[_0x344e11(0xd3)],'minLat':this[_0x344e11(0xb6)],'gjLng':this[_0x344e11(0xcd)],'gjLat':this[_0x344e11(0x99)]});});}),_0x1e96af=await Promise[_0x52d10c(0x9a)](_0x2021f9);return _0x186cd5['forEach'](_0x27a63f=>_0x27a63f[_0x52d10c(0xb9)]()),_0x1e96af[_0x52d10c(0xa5)](_0x5ded36=>{const _0x415302=_0x52d10c;_0x35158f[_0x415302(0xee)](..._0x5ded36);}),_0x35158f=this[_0x52d10c(0xbd)](_0x35158f),{'type':'FeatureCollection','features':_0x35158f};};[a3_0x1d888f(0xe2)]=(_0x31b303=[])=>{const _0x4971aa=a3_0x1d888f;if(this[_0x4971aa(0xcf)][_0x4971aa(0xc3)]===0x0)return{'type':_0x4971aa(0xeb),'features':[]};if(_0x31b303['length']===0x0)_0x31b303=this[_0x4971aa(0xa0)]();const _0x577d4e=this[_0x4971aa(0xcf)][_0x4971aa(0xde)](_0x2a6c66=>_0x2a6c66[_0x4971aa(0xbe)]),_0x309ae7=this['lngLineNum'],_0x5bd8e8=this[_0x4971aa(0xbf)];return{'values':_0x577d4e,'breaks':_0x31b303,'nx':_0x309ae7,'ny':_0x5bd8e8};};[a3_0x1d888f(0xbd)]=_0x131d11=>{const _0x45cbda=a3_0x1d888f;return _0x131d11[_0x45cbda(0xde)](_0x47792f=>{const _0x2bbab8=_0x45cbda;try{const _0x1b9935=a3_0x16ae44(_0x47792f)||0x0;_0x47792f[_0x2bbab8(0xa1)]={..._0x47792f[_0x2bbab8(0xa1)]||{},'__area':_0x1b9935};}catch{_0x47792f[_0x2bbab8(0xa1)]={..._0x47792f[_0x2bbab8(0xa1)]||{},'__area':0x0};}return _0x47792f;})[_0x45cbda(0xec)]((_0x12c35a,_0x1e8e15)=>_0x1e8e15[_0x45cbda(0xa1)][_0x45cbda(0xd7)]-_0x12c35a['properties'][_0x45cbda(0xd7)])[_0x45cbda(0xa4)](_0x5f1a0b=>_0x5f1a0b[_0x45cbda(0xa1)]&&'__area'in _0x5f1a0b[_0x45cbda(0xa1)]&&_0x5f1a0b['properties'][_0x45cbda(0xd7)]!==0x0)[_0x45cbda(0xde)](_0xcd4162=>{const _0x550a8e=_0x45cbda;if(_0xcd4162[_0x550a8e(0xa1)]&&_0x550a8e(0xd7)in _0xcd4162[_0x550a8e(0xa1)]){const {__area:_0x17a3d4,..._0x13cd31}=_0xcd4162['properties'];_0xcd4162[_0x550a8e(0xa1)]=_0x13cd31;}return _0xcd4162;});};}export default _readFileDiamond4;
1
+ const a3_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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m4-w-fast",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",