ym-gis-2d 1.0.7 → 1.0.9

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.
Files changed (68) hide show
  1. package/capabilities/index.js +1 -1
  2. package/controls/ControlManager.js +1 -1
  3. package/controls/MousePositionControl.js +1 -1
  4. package/controls/SwipeLayerControl.js +1 -1
  5. package/conver/kml/geoJSONToKml.js +1 -1
  6. package/conver/kml/index.js +1 -1
  7. package/conver/kml/kmlToGeoJSON.js +1 -1
  8. package/entity/Feature.js +1 -1
  9. package/entity/GeometryType.js +1 -1
  10. package/feature/FeatureManager.js +1 -1
  11. package/index.js +1 -1
  12. package/interaction/Draw.js +1 -1
  13. package/interaction/InteractionManager.js +1 -1
  14. package/interaction/Select.js +1 -1
  15. package/layers/ArcgisDynamicLayer.js +1 -1
  16. package/layers/ArcgisFeatureLayer.js +1 -1
  17. package/layers/ArcgisTileLayer.js +1 -1
  18. package/layers/ArcgisWMSLayer.js +1 -1
  19. package/layers/ArcgisWMTSLayer.js +1 -1
  20. package/layers/GeoserverVectorTile.js +1 -1
  21. package/layers/GeoserverWFSLayer.js +1 -1
  22. package/layers/GeoserverWMSLayer.js +1 -1
  23. package/layers/GeoserverWMTSLayer.js +1 -1
  24. package/layers/LayerManager.js +1 -1
  25. package/layers/TDTLayer.js +1 -1
  26. package/mapView/Map.d.ts +5 -0
  27. package/mapView/Map.d.ts.map +1 -1
  28. package/mapView/Map.js +1 -1
  29. package/mapView/Map.js.map +1 -1
  30. package/mapView/View.js +1 -1
  31. package/package.json +1 -1
  32. package/plot/Plot.js +1 -1
  33. package/plot/geometry/point/Point.js +1 -1
  34. package/plot/geometry/polygon/BasePolygon.js +1 -1
  35. package/plot/geometry/polygon/Circle.js +1 -1
  36. package/plot/geometry/polygon/Polygon.js +1 -1
  37. package/plot/geometry/polygon/RectAngle.js +1 -1
  38. package/plot/geometry/polyline/BaseLine.js +1 -1
  39. package/plot/geometry/polyline/Polyline.js +1 -1
  40. package/style/PointStyleFormat.js +1 -1
  41. package/style/PolygonStyleFormat.js +1 -1
  42. package/style/PolylineStyleFormat.js +1 -1
  43. package/style/StyleManager.js +1 -1
  44. package/style/common.js +1 -1
  45. package/utils/ArrayUtil.js +1 -1
  46. package/utils/AxiosUtil.js +1 -1
  47. package/utils/EsriUtil.js +1 -1
  48. package/utils/GeometryUtil.js +1 -1
  49. package/utils/LayerUtil.js +1 -1
  50. package/utils/RegisterProjUtil.js +1 -1
  51. package/utils/ResolutionUtil.js +1 -1
  52. package/utils/StringUtil.js +1 -1
  53. package/utils/StyleUtil.js +1 -1
  54. package/utils/UrlUtil.js +1 -1
  55. package/utils/XmlUtil.js +1 -1
  56. package/utils/format/CQL.js +1 -1
  57. package/utils/format/IsMatchCql.js +1 -1
  58. package/utils/plug/canvas/ImageCache.js +1 -1
  59. package/utils/plug/canvas/PinBuilder.js +1 -1
  60. package/utils/plug/canvas/PinIcon.js +1 -1
  61. package/utils/plug/canvas/writeTextToCanvas.js +1 -1
  62. package/utils/tasks/esri/Identify.js +1 -1
  63. package/utils/tasks/esri/Query.js +1 -1
  64. package/utils/tasks/esri/Task.js +1 -1
  65. package/utils/tasks/geoserver/QueryTask.js +1 -1
  66. package/utils/tasks/index.js +1 -1
  67. package/ym-gis-2d.es.js +1 -1
  68. package/ym-gis-2d.umd.js +1 -1
@@ -1 +1 @@
1
- (function(_0x179e27,_0xb4f4cc){const _0x2cbb27=a0_0x44e2,_0x47266f=_0x179e27();while(!![]){try{const _0x4f2222=-parseInt(_0x2cbb27(0x210))/0x1*(parseInt(_0x2cbb27(0x214))/0x2)+parseInt(_0x2cbb27(0x215))/0x3*(parseInt(_0x2cbb27(0x1dc))/0x4)+parseInt(_0x2cbb27(0x1cb))/0x5*(-parseInt(_0x2cbb27(0x20e))/0x6)+parseInt(_0x2cbb27(0x1ce))/0x7*(-parseInt(_0x2cbb27(0x1cf))/0x8)+-parseInt(_0x2cbb27(0x21a))/0x9+-parseInt(_0x2cbb27(0x21b))/0xa+parseInt(_0x2cbb27(0x1d9))/0xb*(parseInt(_0x2cbb27(0x1e2))/0xc);if(_0x4f2222===_0xb4f4cc)break;else _0x47266f['push'](_0x47266f['shift']());}catch(_0x5ee0bd){_0x47266f['push'](_0x47266f['shift']());}}}(a0_0x5c91,0x450b0));import{addArgument,appendPath}from'../utils/UrlUtil';import a0_0x1342f5 from'../utils/AxiosUtil';import{jsonp}from'../utils/AxiosUtil';import a0_0xb4ffbd from'ol/format/WMTSCapabilities';import a0_0x150cb7 from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x17c9c6){const _0x259b8d=a0_0x44e2,_0xb72b3c=addArgument(_0x17c9c6,'f','json'),_0x52549e=await a0_0x1342f5[_0x259b8d(0x1d7)](_0xb72b3c);return _0x52549e[_0x259b8d(0x216)];}export async function getFeatureLayerInfo(_0x28023e,_0x1e8b89){const _0xbf0a7=a0_0x44e2;let _0x3689dd=addArgument(_0x28023e,'f',_0xbf0a7(0x1c6));_0x3689dd=appendPath(_0x3689dd,_0x1e8b89);const _0x38bc00=await jsonp(_0x3689dd);return _0x38bc00[_0xbf0a7(0x219)]=_0x3689dd,_0x38bc00;}export async function getWMSLayerCapabilities(_0x21e4d9,_0x4f8758){const _0xe41c8b=a0_0x44e2,_0x1ed813=await getWMSCapabilities(_0x21e4d9);let _0x166cbe={},_0x1d0f6a=_0x1ed813[_0xe41c8b(0x201)][_0xe41c8b(0x1e0)]['Layer'];for(let _0x5eca56=0x0;_0x5eca56<_0x1d0f6a[_0xe41c8b(0x1f6)];_0x5eca56++){const _0x343550=_0x1d0f6a[_0x5eca56];if(_0x343550['Name']==_0x4f8758){_0x166cbe[_0xe41c8b(0x200)]=_0x343550[_0xe41c8b(0x20f)][0x0][_0xe41c8b(0x1ea)];for(let _0x352bd9=0x0;_0x352bd9<_0x343550[_0xe41c8b(0x1c5)][_0xe41c8b(0x1f6)];_0x352bd9++){const _0x2f898e=_0x343550['BoundingBox'][_0x352bd9];if(_0x2f898e[_0xe41c8b(0x1f5)]['indexOf'](_0xe41c8b(0x21d))>-0x1){_0x166cbe[_0xe41c8b(0x1df)]=transformedToNumber(_0x2f898e[_0xe41c8b(0x1f5)]),_0x166cbe[_0xe41c8b(0x1f1)]=[_0x2f898e[_0xe41c8b(0x1dd)][0x1],_0x2f898e[_0xe41c8b(0x1dd)][0x0],_0x2f898e[_0xe41c8b(0x1dd)][0x3],_0x2f898e[_0xe41c8b(0x1dd)][0x2]];break;}}break;}}return _0x166cbe;}function a0_0x5c91(){const _0x39639f=['layerFields','11KIjOoP','nodeName','date','19480YgAWQO','extent','format','wkid','Layer','esriFieldTypeInteger','16155948vGcshd','innerHTML','esriFieldTypeDate','gml:','wfs','fields','TileWidth','esriFieldTypeString','Name','esriFieldTypeSmallInteger','Contents','wms','push','name','SupportedCRS','initExtent','forEach','value','esriFieldTypeDouble','crs','length','GetCapabilities','getElementsByTagName','wmts','toString','TileMatrixSetLink','short','children','MatrixWidth','WGS84BoundingBox','style','Capability','service','FeatureTypeList','TileMatrix','boundingBoxExtent','int','label','type','decimal','tileMatrixs','tileMatrixSet','request','attributes','24YpRoCE','Style','280873BfeQkS','arcgis-dynamic','layers','TileMatrixSet','2LuVVYh','282NsTBvE','data','DescribeFeatureType','geoserver-wfs','url','3199716XoZcBR','470500LYqoQy','TileHeight','EPSG:','double','BoundingBox','json','read','Title','alias','pjson','503735vGNUZz','arcgis-feature','split','3044118Yasksi','8DhZNKP','Identifier','typeName','ows:WGS84BoundingBox','TopLeftCorner','indexOf','esriFieldTypeOID','wgs84BoundingBox','get'];a0_0x5c91=function(){return _0x39639f;};return a0_0x5c91();}export async function getWMTSLayerCapabilities(_0x4c1d3a,_0x384e84){const _0x40bcbd=a0_0x44e2,_0x392179=await getWMTSCapabilities(_0x4c1d3a);let _0x4051b2={},_0x2012dd=_0x392179['Contents'][_0x40bcbd(0x1e0)];_0x4051b2['sourceXml']=_0x392179;for(let _0x4a61b4=0x0;_0x4a61b4<_0x2012dd[_0x40bcbd(0x1f6)];_0x4a61b4++){const _0x1280b7=_0x2012dd[_0x4a61b4];if(_0x1280b7[_0x40bcbd(0x1d0)]==_0x384e84){_0x4051b2[_0x40bcbd(0x1de)]=_0x1280b7['Format'],_0x4051b2['style']=_0x1280b7['Style'][0x0][_0x40bcbd(0x1d0)],_0x4051b2[_0x40bcbd(0x20b)]=_0x1280b7[_0x40bcbd(0x1fb)][0x0][_0x40bcbd(0x213)],_0x4051b2[_0x40bcbd(0x1d6)]=_0x1280b7[_0x40bcbd(0x1ff)],_0x4051b2[_0x40bcbd(0x205)]=_0x1280b7['BoundingBox']&&_0x1280b7[_0x40bcbd(0x1c5)][_0x40bcbd(0x1f6)]>0x0?_0x1280b7[_0x40bcbd(0x1c5)][0x0][_0x40bcbd(0x1dd)]:_0x4051b2[_0x40bcbd(0x1d6)];break;}}if(_0x4051b2[_0x40bcbd(0x20b)])for(let _0x3e480e=0x0;_0x3e480e<_0x392179['Contents'][_0x40bcbd(0x213)][_0x40bcbd(0x1f6)];_0x3e480e++){const _0x5ad1ba=_0x392179[_0x40bcbd(0x1ec)][_0x40bcbd(0x213)][_0x3e480e];if(_0x5ad1ba[_0x40bcbd(0x1d0)]==_0x4051b2[_0x40bcbd(0x20b)]){_0x4051b2[_0x40bcbd(0x1df)]=transformedToNumber(_0x5ad1ba[_0x40bcbd(0x1f0)]),_0x4051b2[_0x40bcbd(0x20a)]=[];for(let _0x1f9e99=0x0;_0x1f9e99<_0x5ad1ba[_0x40bcbd(0x204)][_0x40bcbd(0x1f6)];_0x1f9e99++){const _0x389a39=_0x5ad1ba['TileMatrix'][_0x1f9e99];_0x4051b2[_0x40bcbd(0x20a)][_0x40bcbd(0x1ee)]({'identifier':_0x389a39[_0x40bcbd(0x1d0)],'matrixHeight':_0x389a39['MatrixHeight'],'matrixWidth':_0x389a39[_0x40bcbd(0x1fe)],'scaleDenominator':_0x389a39['ScaleDenominator'],'tileHeight':_0x389a39[_0x40bcbd(0x21c)],'tileWidth':_0x389a39[_0x40bcbd(0x1e8)],'topLeftCorner':_0x389a39[_0x40bcbd(0x1d3)]});}break;}}return _0x4051b2;}export async function getWFSLayerCapabilities(_0x9aea49,_0x581ebd){const _0x3edd8b=a0_0x44e2,_0x5989f2=await getWFSCapabilities(_0x9aea49);let _0xd167f3={};const _0xa8b9ad=await getWmsLayerFields(_0x9aea49,_0x581ebd);_0xd167f3[_0x3edd8b(0x1d8)]=_0xa8b9ad;let _0x30ffec=_0x5989f2['getElementsByTagName'](_0x3edd8b(0x203))[0x0][_0x3edd8b(0x1fd)],_0x28b25a;for(let _0x2a7c26=0x0,_0x1219d1=_0x30ffec['length'];_0x2a7c26<_0x1219d1;_0x2a7c26++){for(let _0x54cca9=0x0,_0x300587=_0x30ffec[_0x2a7c26][_0x3edd8b(0x1fd)][_0x3edd8b(0x1f6)];_0x54cca9<_0x300587;_0x54cca9++){if(_0x30ffec[_0x2a7c26]['children'][_0x54cca9][_0x3edd8b(0x1da)]===_0x3edd8b(0x1ea)){const _0x28eb6f=_0x30ffec[_0x2a7c26][_0x3edd8b(0x1fd)][_0x54cca9][_0x3edd8b(0x1e3)][_0x3edd8b(0x1fa)]();if(_0x28eb6f==_0x581ebd||_0x28eb6f[_0x3edd8b(0x1d4)](':'+_0x581ebd)>-0x1){_0x28b25a=_0x30ffec[_0x2a7c26];break;}}}if(_0x28b25a)break;}let _0x83f735=[];for(let _0x5b6da0=0x0,_0x3ace72=_0x28b25a[_0x3edd8b(0x1fd)]['length'];_0x5b6da0<_0x3ace72;_0x5b6da0++){if(_0x28b25a['children'][_0x5b6da0]['nodeName']===_0x3edd8b(0x1d2)){let _0x5ecaf8=_0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0][_0x3edd8b(0x1fd)][0x0][_0x3edd8b(0x1e3)]['split']('\x20'),_0x565f4b=_0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0]['children'][0x1][_0x3edd8b(0x1e3)][_0x3edd8b(0x1cd)]('\x20');_0x5ecaf8&&_0x565f4b&&(_0x83f735=[_0x5ecaf8[0x0]-0x0,_0x5ecaf8[0x1]-0x0,_0x565f4b[0x0]-0x0,_0x565f4b[0x1]-0x0]),_0xd167f3['initExtent']=_0x83f735;}else _0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0][_0x3edd8b(0x1da)]==='DefaultCRS'&&(_0xd167f3['wkid']=transformedToNumber(_0x28b25a[_0x3edd8b(0x1fd)][_0x5b6da0][_0x3edd8b(0x1e3)]));}return _0xd167f3;}export async function getWMSCapabilities(_0x31a9fb){const _0x8c6d05=a0_0x44e2;let _0x720eba=addArgument(_0x31a9fb,_0x8c6d05(0x20c),_0x8c6d05(0x1f7));_0x720eba=addArgument(_0x720eba,_0x8c6d05(0x202),_0x8c6d05(0x1ed));const _0x10f41e=await a0_0x1342f5['get'](_0x720eba);let _0x4b7dcf=new a0_0x150cb7();return _0x4b7dcf[_0x8c6d05(0x1c7)](_0x10f41e[_0x8c6d05(0x216)]);}export async function getWMTSCapabilities(_0xa0b395){const _0x3c0631=a0_0x44e2;let _0x4d514a=addArgument(_0xa0b395,_0x3c0631(0x20c),_0x3c0631(0x1f7));_0x4d514a=addArgument(_0x4d514a,'service',_0x3c0631(0x1f9));const _0x1ef613=await a0_0x1342f5[_0x3c0631(0x1d7)](_0x4d514a);let _0x57f1dd=new a0_0xb4ffbd();return _0x57f1dd[_0x3c0631(0x1c7)](_0x1ef613[_0x3c0631(0x216)]);}export async function getWFSCapabilities(_0x59bf02){const _0x41cc99=a0_0x44e2;let _0x46d8c1=addArgument(_0x59bf02,'request',_0x41cc99(0x1f7));_0x46d8c1=addArgument(_0x46d8c1,_0x41cc99(0x202),_0x41cc99(0x1e6));const _0x5e80c0=await a0_0x1342f5[_0x41cc99(0x1d7)](_0x46d8c1),_0x2d6d55=readXml(_0x5e80c0[_0x41cc99(0x216)]);return _0x2d6d55;}export async function getWmsLayerFields(_0x2ea717,_0x487620){const _0x37eb43=a0_0x44e2;let _0x380454=addArgument(_0x2ea717,_0x37eb43(0x20c),_0x37eb43(0x217));_0x380454=addArgument(_0x380454,'service','wfs'),_0x380454=addArgument(_0x380454,_0x37eb43(0x1d1),_0x487620);const _0x6b4930=await a0_0x1342f5[_0x37eb43(0x1d7)](_0x380454),_0x466202=readXml(_0x6b4930['data']);let _0x321b68=[];const _0x52e88e=_0x466202[_0x37eb43(0x1f8)]('xsd:sequence')[0x0][_0x37eb43(0x1fd)];for(let _0x2e70fa=0x0;_0x2e70fa<_0x52e88e[_0x37eb43(0x1f6)];_0x2e70fa++){const _0x31b1d8=_0x52e88e[_0x2e70fa],_0x443e83=_0x31b1d8[_0x37eb43(0x20d)][_0x37eb43(0x208)][_0x37eb43(0x1f3)];let _0x2c0c7a=0x1;if(_0x443e83[_0x37eb43(0x1d4)]('string')>-0x1)_0x2c0c7a=0x1;else{if(_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x206))>-0x1||_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x1fc))>-0x1)_0x2c0c7a=0x2;else{if(_0x443e83['indexOf'](_0x37eb43(0x21e))>-0x1||_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x209))>-0x1)_0x2c0c7a=0x3;else{if(_0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x1db))>-0x1)_0x2c0c7a=0x4;else _0x443e83[_0x37eb43(0x1d4)](_0x37eb43(0x1e5))>-0x1&&(_0x2c0c7a=0x6);}}}_0x321b68[_0x37eb43(0x1ee)]({'name':_0x31b1d8[_0x37eb43(0x20d)][_0x37eb43(0x1ef)][_0x37eb43(0x1f3)],'aliasName':_0x31b1d8[_0x37eb43(0x20d)][_0x37eb43(0x1ef)][_0x37eb43(0x1f3)],'fieldType':_0x2c0c7a,'fieldTypeName':_0x443e83});}return _0x321b68;}export async function getWmtsLayers(_0x37eac6){const _0x4a911e=a0_0x44e2,_0x2a3e13=await getWMTSCapabilities(_0x37eac6);let _0x32f374=[];if(!_0x2a3e13||!_0x2a3e13['Contents']||!_0x2a3e13[_0x4a911e(0x1ec)][_0x4a911e(0x1e0)])return _0x32f374;return _0x2a3e13['Contents'][_0x4a911e(0x1e0)][_0x4a911e(0x1f2)](_0x121b20=>{const _0xfa2a0b=_0x4a911e;_0x32f374[_0xfa2a0b(0x1ee)]({'name':_0x121b20[_0xfa2a0b(0x1d0)],'label':_0x121b20[_0xfa2a0b(0x1c8)]});}),_0x32f374;}export async function getWmsLayers(_0x51ece2){const _0x1bc8e1=a0_0x44e2,_0x4669bb=await getWMSCapabilities(_0x51ece2);let _0x2acbe0=[];if(!_0x4669bb||!_0x4669bb[_0x1bc8e1(0x201)]||!_0x4669bb['Capability'][_0x1bc8e1(0x1e0)]||!_0x4669bb[_0x1bc8e1(0x201)][_0x1bc8e1(0x1e0)][_0x1bc8e1(0x1e0)])return _0x2acbe0;return _0x4669bb[_0x1bc8e1(0x201)][_0x1bc8e1(0x1e0)][_0x1bc8e1(0x1e0)][_0x1bc8e1(0x1f2)](_0x3b2c20=>{const _0x59aca8=_0x1bc8e1;_0x2acbe0[_0x59aca8(0x1ee)]({'name':_0x3b2c20[_0x59aca8(0x1ea)],'label':_0x3b2c20['Title']});}),_0x2acbe0;}export async function getWfLayers(_0x432119){const _0x12fcad=a0_0x44e2,_0x2fe506=await getWFSCapabilities(_0x432119);let _0x53b35d=[],_0x122508=_0x2fe506[_0x12fcad(0x1f8)](_0x12fcad(0x203))[0x0][_0x12fcad(0x1fd)],_0x1c9d8b;for(let _0x3697cc=0x0,_0x5b3f79=_0x122508[_0x12fcad(0x1f6)];_0x3697cc<_0x5b3f79;_0x3697cc++){let _0x41c788={'name':'','label':''};for(let _0x3a71ff=0x0,_0x4e8c31=_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x12fcad(0x1f6)];_0x3a71ff<_0x4e8c31;_0x3a71ff++){if(_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x3a71ff][_0x12fcad(0x1da)]===_0x12fcad(0x1ea)){const _0x380ba3=_0x122508[_0x3697cc]['children'][_0x3a71ff][_0x12fcad(0x1e3)][_0x12fcad(0x1fa)]();_0x41c788[_0x12fcad(0x1ef)]=_0x380ba3;}else{if(_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x3a71ff][_0x12fcad(0x1da)]===_0x12fcad(0x1c8)){const _0x273191=_0x122508[_0x3697cc][_0x12fcad(0x1fd)][_0x3a71ff][_0x12fcad(0x1e3)][_0x12fcad(0x1fa)]();_0x41c788[_0x12fcad(0x207)]=_0x273191;}}}_0x41c788[_0x12fcad(0x1ef)]!==''&&_0x41c788[_0x12fcad(0x207)]!==''&&_0x53b35d[_0x12fcad(0x1ee)](_0x41c788);}return _0x53b35d;}export async function getArcgisDynamicLayers(_0x4bc7f5){const _0x257b3c=a0_0x44e2;let _0x58fc71=addArgument(_0x4bc7f5,'f',_0x257b3c(0x1ca));const _0x5dd12f=await a0_0x1342f5['get'](_0x58fc71);let _0x428f5a=[];return _0x5dd12f[_0x257b3c(0x216)][_0x257b3c(0x212)][_0x257b3c(0x1f2)](_0x2b5ec8=>{const _0xaf21ca=_0x257b3c;_0x428f5a[_0xaf21ca(0x1ee)]({'name':_0x2b5ec8['id'][_0xaf21ca(0x1fa)](),'label':_0x2b5ec8['name']});}),_0x428f5a;}function a0_0x44e2(_0x439275,_0x10726c){const _0x5c912b=a0_0x5c91();return a0_0x44e2=function(_0x44e239,_0xd34beb){_0x44e239=_0x44e239-0x1c5;let _0x55ac3e=_0x5c912b[_0x44e239];return _0x55ac3e;},a0_0x44e2(_0x439275,_0x10726c);}export async function getArcgisDynamicLayerFields(_0x489085,_0x40a711){const _0x35bf9b=a0_0x44e2;let _0x6ba201=appendPath(_0x489085,_0x40a711);_0x6ba201=addArgument(_0x6ba201,'f','pjson');const _0x17dbb9=await a0_0x1342f5[_0x35bf9b(0x1d7)](_0x6ba201);let _0x16a821=[];return _0x17dbb9[_0x35bf9b(0x216)][_0x35bf9b(0x1e7)]['forEach'](_0x534916=>{const _0x219955=_0x35bf9b;let _0x4c305b=0x1;switch(_0x534916[_0x219955(0x208)]){case _0x219955(0x1e9):_0x4c305b=0x1;break;case _0x219955(0x1e1):case _0x219955(0x1eb):case _0x219955(0x1d5):_0x4c305b=0x2;break;case _0x219955(0x1f4):_0x4c305b=0x3;break;case _0x219955(0x1e4):_0x4c305b=0x4;break;case'esriFieldTypeGeometry':_0x4c305b=0x6;break;default:_0x4c305b=0x1;break;}_0x16a821['push']({'name':_0x534916[_0x219955(0x1ef)],'aliasName':_0x534916[_0x219955(0x1c9)],'fieldType':_0x4c305b,'fieldTypeName':_0x534916[_0x219955(0x208)],'fieldLength':_0x534916['length']});}),_0x16a821;}export async function getSourceLayerFields(_0x4cea12,_0x47b73b,_0x3e9dfe){const _0xd2fd8d=a0_0x44e2;let _0x263df2=[];switch(_0x3e9dfe){case _0xd2fd8d(0x211):case _0xd2fd8d(0x1cc):_0x263df2=await getArcgisDynamicLayerFields(_0x4cea12,_0x47b73b);break;case'geoserver-wms':case _0xd2fd8d(0x218):_0x263df2=await getWmsLayerFields(_0x4cea12,_0x47b73b);break;default:break;}return _0x263df2;}
1
+ (function(_0xb5b637,_0x34032f){const _0x3b671b=a0_0x3d20,_0x2fd5f9=_0xb5b637();while(!![]){try{const _0x1cbc18=parseInt(_0x3b671b(0x14e))/0x1+parseInt(_0x3b671b(0x12d))/0x2+parseInt(_0x3b671b(0x15b))/0x3*(-parseInt(_0x3b671b(0x163))/0x4)+parseInt(_0x3b671b(0x155))/0x5*(-parseInt(_0x3b671b(0x159))/0x6)+parseInt(_0x3b671b(0x167))/0x7*(-parseInt(_0x3b671b(0x15e))/0x8)+-parseInt(_0x3b671b(0x152))/0x9+parseInt(_0x3b671b(0x16a))/0xa;if(_0x1cbc18===_0x34032f)break;else _0x2fd5f9['push'](_0x2fd5f9['shift']());}catch(_0x35c9a6){_0x2fd5f9['push'](_0x2fd5f9['shift']());}}}(a0_0x1b1a,0xe1e97));import{addArgument,appendPath}from'../utils/UrlUtil';function a0_0x1b1a(){const _0x352666=['attributes','tileMatrixSet','layerFields','extent','json','arcgis-dynamic','geoserver-wms','string','url','TileHeight','TileWidth','BoundingBox','Name','type','Capability','request','decimal','esriFieldTypeDouble','boundingBoxExtent','GetCapabilities','ScaleDenominator','forEach','crs','getElementsByTagName','double','SupportedCRS','xsd:sequence','EPSG:','273302WQBcOK','MatrixHeight','FeatureTypeList','geoserver-wfs','7253289QWWsGs','WGS84BoundingBox','TileMatrix','4545OwjTiz','esriFieldTypeDate','push','wgs84BoundingBox','7002RdDvgV','split','534iPSpuB','data','name','1328hebGSi','wfs','wkid','esriFieldTypeString','wms','2276qaFSYq','esriFieldTypeOID','typeName','nodeName','60361GJiCaM','esriFieldTypeGeometry','alias','28546410UVDOHB','pjson','indexOf','format','Format','Identifier','get','toString','layers','children','MatrixWidth','DefaultCRS','int','TileMatrixSet','style','esriFieldTypeInteger','length','TopLeftCorner','date','Layer','value','Style','short','esriFieldTypeSmallInteger','initExtent','tileMatrixs','service','wmts','2393632cyMzxg','Contents','innerHTML','Title','DescribeFeatureType'];a0_0x1b1a=function(){return _0x352666;};return a0_0x1b1a();}import a0_0x417e0a from'../utils/AxiosUtil';import{jsonp}from'../utils/AxiosUtil';import a0_0x246bc9 from'ol/format/WMTSCapabilities';import a0_0x2d17f4 from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';function a0_0x3d20(_0x4453a3,_0x300780){const _0x1b1acb=a0_0x1b1a();return a0_0x3d20=function(_0x3d2005,_0x2cb174){_0x3d2005=_0x3d2005-0x129;let _0x3c8b99=_0x1b1acb[_0x3d2005];return _0x3c8b99;},a0_0x3d20(_0x4453a3,_0x300780);}import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x15211f){const _0x5b07ac=a0_0x3d20,_0x398100=addArgument(_0x15211f,'f',_0x5b07ac(0x136)),_0x4cf8d5=await a0_0x417e0a[_0x5b07ac(0x170)](_0x398100);return _0x4cf8d5['data'];}export async function getFeatureLayerInfo(_0x491a40,_0x45c55f){const _0x291ddf=a0_0x3d20;let _0x1cf94c=addArgument(_0x491a40,'f',_0x291ddf(0x136));_0x1cf94c=appendPath(_0x1cf94c,_0x45c55f);const _0xd6415a=await jsonp(_0x1cf94c);return _0xd6415a[_0x291ddf(0x13a)]=_0x1cf94c,_0xd6415a;}export async function getWMSLayerCapabilities(_0x3c4b3c,_0x5d1748){const _0x329566=a0_0x3d20,_0x48f9d4=await getWMSCapabilities(_0x3c4b3c);let _0x8011f8={},_0x1ca36e=_0x48f9d4[_0x329566(0x140)]['Layer'][_0x329566(0x17d)];for(let _0x299501=0x0;_0x299501<_0x1ca36e[_0x329566(0x17a)];_0x299501++){const _0x3667c8=_0x1ca36e[_0x299501];if(_0x3667c8[_0x329566(0x13e)]==_0x5d1748){_0x8011f8[_0x329566(0x178)]=_0x3667c8[_0x329566(0x17f)][0x0][_0x329566(0x13e)];for(let _0x429396=0x0;_0x429396<_0x3667c8[_0x329566(0x13d)][_0x329566(0x17a)];_0x429396++){const _0x3bb79a=_0x3667c8[_0x329566(0x13d)][_0x429396];if(_0x3bb79a['crs'][_0x329566(0x16c)](_0x329566(0x14d))>-0x1){_0x8011f8[_0x329566(0x160)]=transformedToNumber(_0x3bb79a[_0x329566(0x148)]),_0x8011f8['initExtent']=[_0x3bb79a[_0x329566(0x135)][0x1],_0x3bb79a['extent'][0x0],_0x3bb79a[_0x329566(0x135)][0x3],_0x3bb79a[_0x329566(0x135)][0x2]];break;}}break;}}return _0x8011f8;}export async function getWMTSLayerCapabilities(_0x12fd99,_0xb1a304){const _0x45008c=a0_0x3d20,_0x306eb0=await getWMTSCapabilities(_0x12fd99);let _0x1c1fa7={},_0x4877ec=_0x306eb0[_0x45008c(0x12e)]['Layer'];_0x1c1fa7['sourceXml']=_0x306eb0;for(let _0xf55d5=0x0;_0xf55d5<_0x4877ec[_0x45008c(0x17a)];_0xf55d5++){const _0x25a7a2=_0x4877ec[_0xf55d5];if(_0x25a7a2[_0x45008c(0x16f)]==_0xb1a304){_0x1c1fa7[_0x45008c(0x16d)]=_0x25a7a2[_0x45008c(0x16e)],_0x1c1fa7[_0x45008c(0x178)]=_0x25a7a2[_0x45008c(0x17f)][0x0][_0x45008c(0x16f)],_0x1c1fa7[_0x45008c(0x133)]=_0x25a7a2['TileMatrixSetLink'][0x0][_0x45008c(0x177)],_0x1c1fa7[_0x45008c(0x158)]=_0x25a7a2[_0x45008c(0x153)],_0x1c1fa7[_0x45008c(0x144)]=_0x25a7a2['BoundingBox']&&_0x25a7a2[_0x45008c(0x13d)][_0x45008c(0x17a)]>0x0?_0x25a7a2['BoundingBox'][0x0]['extent']:_0x1c1fa7[_0x45008c(0x158)];break;}}if(_0x1c1fa7['tileMatrixSet'])for(let _0xfc7cad=0x0;_0xfc7cad<_0x306eb0[_0x45008c(0x12e)]['TileMatrixSet']['length'];_0xfc7cad++){const _0x10bd97=_0x306eb0['Contents']['TileMatrixSet'][_0xfc7cad];if(_0x10bd97[_0x45008c(0x16f)]==_0x1c1fa7[_0x45008c(0x133)]){_0x1c1fa7[_0x45008c(0x160)]=transformedToNumber(_0x10bd97[_0x45008c(0x14b)]),_0x1c1fa7['tileMatrixs']=[];for(let _0x583983=0x0;_0x583983<_0x10bd97[_0x45008c(0x154)][_0x45008c(0x17a)];_0x583983++){const _0x16d60e=_0x10bd97['TileMatrix'][_0x583983];_0x1c1fa7[_0x45008c(0x12a)][_0x45008c(0x157)]({'identifier':_0x16d60e[_0x45008c(0x16f)],'matrixHeight':_0x16d60e[_0x45008c(0x14f)],'matrixWidth':_0x16d60e[_0x45008c(0x174)],'scaleDenominator':_0x16d60e[_0x45008c(0x146)],'tileHeight':_0x16d60e[_0x45008c(0x13b)],'tileWidth':_0x16d60e[_0x45008c(0x13c)],'topLeftCorner':_0x16d60e[_0x45008c(0x17b)]});}break;}}return _0x1c1fa7;}export async function getWFSLayerCapabilities(_0x2cb626,_0x456311){const _0x378673=a0_0x3d20,_0x2e51db=await getWFSCapabilities(_0x2cb626);let _0x5e4f7b={};const _0x665334=await getWmsLayerFields(_0x2cb626,_0x456311);_0x5e4f7b[_0x378673(0x134)]=_0x665334;let _0x35a269=_0x2e51db[_0x378673(0x149)](_0x378673(0x150))[0x0][_0x378673(0x173)],_0x157040;for(let _0x5c487b=0x0,_0x370feb=_0x35a269['length'];_0x5c487b<_0x370feb;_0x5c487b++){for(let _0x4b4373=0x0,_0x7b26c7=_0x35a269[_0x5c487b]['children'][_0x378673(0x17a)];_0x4b4373<_0x7b26c7;_0x4b4373++){if(_0x35a269[_0x5c487b]['children'][_0x4b4373][_0x378673(0x166)]===_0x378673(0x13e)){const _0x285ed3=_0x35a269[_0x5c487b]['children'][_0x4b4373][_0x378673(0x12f)][_0x378673(0x171)]();if(_0x285ed3==_0x456311||_0x285ed3['indexOf'](':'+_0x456311)>-0x1){_0x157040=_0x35a269[_0x5c487b];break;}}}if(_0x157040)break;}let _0x307fb3=[];for(let _0x130619=0x0,_0x1d8af6=_0x157040[_0x378673(0x173)][_0x378673(0x17a)];_0x130619<_0x1d8af6;_0x130619++){if(_0x157040[_0x378673(0x173)][_0x130619][_0x378673(0x166)]==='ows:WGS84BoundingBox'){let _0xefb298=_0x157040[_0x378673(0x173)][_0x130619][_0x378673(0x173)][0x0]['innerHTML'][_0x378673(0x15a)]('\x20'),_0x13840a=_0x157040[_0x378673(0x173)][_0x130619]['children'][0x1][_0x378673(0x12f)]['split']('\x20');_0xefb298&&_0x13840a&&(_0x307fb3=[_0xefb298[0x0]-0x0,_0xefb298[0x1]-0x0,_0x13840a[0x0]-0x0,_0x13840a[0x1]-0x0]),_0x5e4f7b[_0x378673(0x129)]=_0x307fb3;}else _0x157040[_0x378673(0x173)][_0x130619]['nodeName']===_0x378673(0x175)&&(_0x5e4f7b[_0x378673(0x160)]=transformedToNumber(_0x157040[_0x378673(0x173)][_0x130619][_0x378673(0x12f)]));}return _0x5e4f7b;}export async function getWMSCapabilities(_0x4bfb4f){const _0x59894d=a0_0x3d20;let _0x349f7b=addArgument(_0x4bfb4f,'request',_0x59894d(0x145));_0x349f7b=addArgument(_0x349f7b,_0x59894d(0x12b),_0x59894d(0x162));const _0x541a2c=await a0_0x417e0a[_0x59894d(0x170)](_0x349f7b);let _0x52f907=new a0_0x2d17f4();return _0x52f907['read'](_0x541a2c[_0x59894d(0x15c)]);}export async function getWMTSCapabilities(_0x210082){const _0x2c006b=a0_0x3d20;let _0x54af72=addArgument(_0x210082,_0x2c006b(0x141),'GetCapabilities');_0x54af72=addArgument(_0x54af72,_0x2c006b(0x12b),_0x2c006b(0x12c));const _0x4bb879=await a0_0x417e0a[_0x2c006b(0x170)](_0x54af72);let _0x3e213c=new a0_0x246bc9();return _0x3e213c['read'](_0x4bb879[_0x2c006b(0x15c)]);}export async function getWFSCapabilities(_0x578f7d){const _0x441947=a0_0x3d20;let _0x59e98e=addArgument(_0x578f7d,_0x441947(0x141),_0x441947(0x145));_0x59e98e=addArgument(_0x59e98e,'service','wfs');const _0xfcf01a=await a0_0x417e0a[_0x441947(0x170)](_0x59e98e),_0x2165db=readXml(_0xfcf01a[_0x441947(0x15c)]);return _0x2165db;}export async function getWmsLayerFields(_0x24f396,_0x3639b9){const _0x2155c3=a0_0x3d20;let _0x452950=addArgument(_0x24f396,'request',_0x2155c3(0x131));_0x452950=addArgument(_0x452950,'service',_0x2155c3(0x15f)),_0x452950=addArgument(_0x452950,_0x2155c3(0x165),_0x3639b9);const _0x2a4d3d=await a0_0x417e0a['get'](_0x452950),_0x268674=readXml(_0x2a4d3d[_0x2155c3(0x15c)]);let _0x4777f7=[];const _0x2f88d4=_0x268674[_0x2155c3(0x149)](_0x2155c3(0x14c))[0x0][_0x2155c3(0x173)];for(let _0x232e00=0x0;_0x232e00<_0x2f88d4['length'];_0x232e00++){const _0x22e516=_0x2f88d4[_0x232e00],_0x5b1a45=_0x22e516[_0x2155c3(0x132)][_0x2155c3(0x13f)]['value'];let _0x44c22e=0x1;if(_0x5b1a45['indexOf'](_0x2155c3(0x139))>-0x1)_0x44c22e=0x1;else{if(_0x5b1a45[_0x2155c3(0x16c)](_0x2155c3(0x176))>-0x1||_0x5b1a45[_0x2155c3(0x16c)](_0x2155c3(0x180))>-0x1)_0x44c22e=0x2;else{if(_0x5b1a45['indexOf'](_0x2155c3(0x14a))>-0x1||_0x5b1a45[_0x2155c3(0x16c)](_0x2155c3(0x142))>-0x1)_0x44c22e=0x3;else{if(_0x5b1a45['indexOf'](_0x2155c3(0x17c))>-0x1)_0x44c22e=0x4;else _0x5b1a45[_0x2155c3(0x16c)]('gml:')>-0x1&&(_0x44c22e=0x6);}}}_0x4777f7[_0x2155c3(0x157)]({'name':_0x22e516[_0x2155c3(0x132)]['name'][_0x2155c3(0x17e)],'aliasName':_0x22e516['attributes'][_0x2155c3(0x15d)][_0x2155c3(0x17e)],'fieldType':_0x44c22e,'fieldTypeName':_0x5b1a45});}return _0x4777f7;}export async function getWmtsLayers(_0x30aa4d){const _0x40b737=a0_0x3d20,_0x17d8b3=await getWMTSCapabilities(_0x30aa4d);let _0x49932a=[];if(!_0x17d8b3||!_0x17d8b3['Contents']||!_0x17d8b3[_0x40b737(0x12e)][_0x40b737(0x17d)])return _0x49932a;return _0x17d8b3[_0x40b737(0x12e)][_0x40b737(0x17d)][_0x40b737(0x147)](_0x736f9=>{const _0x5df275=_0x40b737;_0x49932a['push']({'name':_0x736f9['Identifier'],'label':_0x736f9[_0x5df275(0x130)]});}),_0x49932a;}export async function getWmsLayers(_0xc0b736){const _0x314a48=a0_0x3d20,_0x51d91c=await getWMSCapabilities(_0xc0b736);let _0x5db3f3=[];if(!_0x51d91c||!_0x51d91c[_0x314a48(0x140)]||!_0x51d91c['Capability'][_0x314a48(0x17d)]||!_0x51d91c[_0x314a48(0x140)][_0x314a48(0x17d)][_0x314a48(0x17d)])return _0x5db3f3;return _0x51d91c['Capability'][_0x314a48(0x17d)][_0x314a48(0x17d)]['forEach'](_0x9338db=>{const _0xc4b770=_0x314a48;_0x5db3f3['push']({'name':_0x9338db[_0xc4b770(0x13e)],'label':_0x9338db['Title']});}),_0x5db3f3;}export async function getWfLayers(_0x315131){const _0x47d85f=a0_0x3d20,_0x36e768=await getWFSCapabilities(_0x315131);let _0x46e715=[],_0x3f60e0=_0x36e768[_0x47d85f(0x149)](_0x47d85f(0x150))[0x0][_0x47d85f(0x173)],_0x258ba3;for(let _0x5ca721=0x0,_0x5d38ce=_0x3f60e0[_0x47d85f(0x17a)];_0x5ca721<_0x5d38ce;_0x5ca721++){let _0x57f078={'name':'','label':''};for(let _0x24e134=0x0,_0x365e21=_0x3f60e0[_0x5ca721][_0x47d85f(0x173)][_0x47d85f(0x17a)];_0x24e134<_0x365e21;_0x24e134++){if(_0x3f60e0[_0x5ca721][_0x47d85f(0x173)][_0x24e134][_0x47d85f(0x166)]===_0x47d85f(0x13e)){const _0x10e387=_0x3f60e0[_0x5ca721][_0x47d85f(0x173)][_0x24e134][_0x47d85f(0x12f)]['toString']();_0x57f078[_0x47d85f(0x15d)]=_0x10e387;}else{if(_0x3f60e0[_0x5ca721][_0x47d85f(0x173)][_0x24e134][_0x47d85f(0x166)]===_0x47d85f(0x130)){const _0x37eae4=_0x3f60e0[_0x5ca721]['children'][_0x24e134][_0x47d85f(0x12f)][_0x47d85f(0x171)]();_0x57f078['label']=_0x37eae4;}}}_0x57f078[_0x47d85f(0x15d)]!==''&&_0x57f078['label']!==''&&_0x46e715[_0x47d85f(0x157)](_0x57f078);}return _0x46e715;}export async function getArcgisDynamicLayers(_0x1918e8){const _0x184c8a=a0_0x3d20;let _0x31652b=addArgument(_0x1918e8,'f',_0x184c8a(0x16b));const _0x5bcde8=await a0_0x417e0a[_0x184c8a(0x170)](_0x31652b);let _0x500fad=[];return _0x5bcde8[_0x184c8a(0x15c)][_0x184c8a(0x172)][_0x184c8a(0x147)](_0x473fdb=>{const _0x356e91=_0x184c8a;_0x500fad[_0x356e91(0x157)]({'name':_0x473fdb['id'][_0x356e91(0x171)](),'label':_0x473fdb[_0x356e91(0x15d)]});}),_0x500fad;}export async function getArcgisDynamicLayerFields(_0x48165f,_0x503b84){const _0x44bfda=a0_0x3d20;let _0x3e9796=appendPath(_0x48165f,_0x503b84);_0x3e9796=addArgument(_0x3e9796,'f',_0x44bfda(0x16b));const _0x15a2f5=await a0_0x417e0a[_0x44bfda(0x170)](_0x3e9796);let _0x13d607=[];return _0x15a2f5[_0x44bfda(0x15c)]['fields'][_0x44bfda(0x147)](_0x4567fa=>{const _0xb10f9c=_0x44bfda;let _0xeef164=0x1;switch(_0x4567fa[_0xb10f9c(0x13f)]){case _0xb10f9c(0x161):_0xeef164=0x1;break;case _0xb10f9c(0x179):case _0xb10f9c(0x181):case _0xb10f9c(0x164):_0xeef164=0x2;break;case _0xb10f9c(0x143):_0xeef164=0x3;break;case _0xb10f9c(0x156):_0xeef164=0x4;break;case _0xb10f9c(0x168):_0xeef164=0x6;break;default:_0xeef164=0x1;break;}_0x13d607[_0xb10f9c(0x157)]({'name':_0x4567fa[_0xb10f9c(0x15d)],'aliasName':_0x4567fa[_0xb10f9c(0x169)],'fieldType':_0xeef164,'fieldTypeName':_0x4567fa[_0xb10f9c(0x13f)],'fieldLength':_0x4567fa[_0xb10f9c(0x17a)]});}),_0x13d607;}export async function getSourceLayerFields(_0x3bf4a6,_0x39b612,_0x355624){const _0x2c5584=a0_0x3d20;let _0x21af58=[];switch(_0x355624){case _0x2c5584(0x137):case'arcgis-feature':_0x21af58=await getArcgisDynamicLayerFields(_0x3bf4a6,_0x39b612);break;case _0x2c5584(0x138):case _0x2c5584(0x151):_0x21af58=await getWmsLayerFields(_0x3bf4a6,_0x39b612);break;default:break;}return _0x21af58;}
@@ -1 +1 @@
1
- function a1_0x1676(_0x52c28d,_0x398039){const _0x4f9671=a1_0x4f96();return a1_0x1676=function(_0x167642,_0x355e1b){_0x167642=_0x167642-0x1bf;let _0x303c19=_0x4f9671[_0x167642];return _0x303c19;},a1_0x1676(_0x52c28d,_0x398039);}const a1_0x5c5069=a1_0x1676;(function(_0x2be413,_0x1638fc){const _0x445546=a1_0x1676,_0x30dfe1=_0x2be413();while(!![]){try{const _0x355208=-parseInt(_0x445546(0x1cc))/0x1+-parseInt(_0x445546(0x1c2))/0x2+parseInt(_0x445546(0x1d2))/0x3*(parseInt(_0x445546(0x1d1))/0x4)+parseInt(_0x445546(0x1c6))/0x5*(-parseInt(_0x445546(0x1c3))/0x6)+-parseInt(_0x445546(0x1ca))/0x7+-parseInt(_0x445546(0x1c1))/0x8*(parseInt(_0x445546(0x1c0))/0x9)+parseInt(_0x445546(0x1d3))/0xa;if(_0x355208===_0x1638fc)break;else _0x30dfe1['push'](_0x30dfe1['shift']());}catch(_0xb3adee){_0x30dfe1['push'](_0x30dfe1['shift']());}}}(a1_0x4f96,0x46944));export default class ControlManager{constructor(_0xdb03b7){const _0x33f05d=a1_0x1676;this[_0x33f05d(0x1cd)]=_0xdb03b7,this[_0x33f05d(0x1cb)]=new Map();}[a1_0x5c5069(0x1c4)](_0x3c5bde,_0x2ad781){const _0x41fe98=a1_0x5c5069;this[_0x41fe98(0x1cb)][_0x41fe98(0x1ce)](_0x3c5bde)&&this[_0x41fe98(0x1c8)](_0x3c5bde),_0x2ad781[_0x41fe98(0x1c7)](_0x41fe98(0x1bf),_0x3c5bde),this[_0x41fe98(0x1cb)][_0x41fe98(0x1c7)](_0x3c5bde,_0x2ad781),this[_0x41fe98(0x1cd)][_0x41fe98(0x1c4)](_0x2ad781);}[a1_0x5c5069(0x1c8)](_0x489814){const _0x28cd4=a1_0x5c5069,_0x57a2c3=this[_0x28cd4(0x1cb)][_0x28cd4(0x1d0)](_0x489814);_0x57a2c3&&(this[_0x28cd4(0x1cd)][_0x28cd4(0x1c8)](_0x57a2c3),this[_0x28cd4(0x1cb)][_0x28cd4(0x1cf)](_0x489814));}['removeAllControls'](){const _0x19a76b=a1_0x5c5069;this['controls'][_0x19a76b(0x1c5)](_0x3d8b26=>{const _0xec7b63=_0x19a76b;this['map'][_0xec7b63(0x1c8)](_0x3d8b26);}),this['controls']['clear']();}[a1_0x5c5069(0x1c9)](_0xa2fc1d){const _0x4b8d48=a1_0x5c5069;return this[_0x4b8d48(0x1cb)]['get'](_0xa2fc1d);}}function a1_0x4f96(){const _0x12e788=['has','delete','get','155268qrzilZ','21KclImF','17473640xwIICL','name','1543554jyBlGJ','16MLvQiL','1120364xWEHdT','124518QqdbOi','addControl','forEach','100OlaRzH','set','removeControl','getControl','702212YdhBJj','controls','311421kTcIYV','map'];a1_0x4f96=function(){return _0x12e788;};return a1_0x4f96();}
1
+ function a1_0x3f0d(_0x40d06c,_0x58125a){const _0x60b335=a1_0x60b3();return a1_0x3f0d=function(_0x3f0d21,_0x4ccac3){_0x3f0d21=_0x3f0d21-0xc7;let _0x5c924a=_0x60b335[_0x3f0d21];return _0x5c924a;},a1_0x3f0d(_0x40d06c,_0x58125a);}function a1_0x60b3(){const _0x246a3a=['2333276vamGUP','get','165518MwstWx','4554PfVauF','128706SYlblF','has','addControl','controls','clear','29792jjrLhZ','map','getControl','5620OJFrVa','37317uTHPjo','351RdFhda','removeControl','177947UlfFru'];a1_0x60b3=function(){return _0x246a3a;};return a1_0x60b3();}const a1_0x5a8f9f=a1_0x3f0d;(function(_0x271b10,_0x416844){const _0x550a90=a1_0x3f0d,_0xb500f5=_0x271b10();while(!![]){try{const _0x1bf162=parseInt(_0x550a90(0xd0))/0x1+parseInt(_0x550a90(0xd6))/0x2+-parseInt(_0x550a90(0xc7))/0x3+-parseInt(_0x550a90(0xd4))/0x4+-parseInt(_0x550a90(0xcf))/0x5*(-parseInt(_0x550a90(0xd7))/0x6)+-parseInt(_0x550a90(0xd3))/0x7+parseInt(_0x550a90(0xcc))/0x8*(parseInt(_0x550a90(0xd1))/0x9);if(_0x1bf162===_0x416844)break;else _0xb500f5['push'](_0xb500f5['shift']());}catch(_0xa22f11){_0xb500f5['push'](_0xb500f5['shift']());}}}(a1_0x60b3,0x71f62));export default class ControlManager{constructor(_0x3604e8){const _0x52a438=a1_0x3f0d;this[_0x52a438(0xcd)]=_0x3604e8,this[_0x52a438(0xca)]=new Map();}[a1_0x5a8f9f(0xc9)](_0x15b3f6,_0x1d0af4){const _0x35a7e1=a1_0x5a8f9f;this[_0x35a7e1(0xca)][_0x35a7e1(0xc8)](_0x15b3f6)&&this[_0x35a7e1(0xd2)](_0x15b3f6),_0x1d0af4['set']('name',_0x15b3f6),this[_0x35a7e1(0xca)]['set'](_0x15b3f6,_0x1d0af4),this[_0x35a7e1(0xcd)][_0x35a7e1(0xc9)](_0x1d0af4);}[a1_0x5a8f9f(0xd2)](_0x2ffdfe){const _0x578ac9=a1_0x5a8f9f,_0x31b9b3=this['controls'][_0x578ac9(0xd5)](_0x2ffdfe);_0x31b9b3&&(this['map'][_0x578ac9(0xd2)](_0x31b9b3),this[_0x578ac9(0xca)]['delete'](_0x2ffdfe));}['removeAllControls'](){const _0x5bb287=a1_0x5a8f9f;this['controls']['forEach'](_0x4c9bae=>{const _0x44a028=a1_0x3f0d;this['map'][_0x44a028(0xd2)](_0x4c9bae);}),this[_0x5bb287(0xca)][_0x5bb287(0xcb)]();}[a1_0x5a8f9f(0xce)](_0x4230f0){const _0x460f77=a1_0x5a8f9f;return this['controls'][_0x460f77(0xd5)](_0x4230f0);}}
@@ -1 +1 @@
1
- const a3_0x5c35cb=a3_0x7973;(function(_0x48ff25,_0x40d6ce){const _0x309ac7=a3_0x7973,_0x1042cf=_0x48ff25();while(!![]){try{const _0x351f0f=-parseInt(_0x309ac7(0x217))/0x1+-parseInt(_0x309ac7(0x1f8))/0x2*(-parseInt(_0x309ac7(0x21e))/0x3)+-parseInt(_0x309ac7(0x1fb))/0x4+-parseInt(_0x309ac7(0x205))/0x5*(parseInt(_0x309ac7(0x21f))/0x6)+-parseInt(_0x309ac7(0x1f7))/0x7+-parseInt(_0x309ac7(0x1ff))/0x8+parseInt(_0x309ac7(0x21c))/0x9;if(_0x351f0f===_0x40d6ce)break;else _0x1042cf['push'](_0x1042cf['shift']());}catch(_0x47f50d){_0x1042cf['push'](_0x1042cf['shift']());}}}(a3_0x38d3,0x5e656));import{format,wrapX}from'ol/coordinate';import{degreesToStringHDMS}from'../utils/StringUtil';import a3_0x2ef1f5 from'ol/pointer/EventType.js';function a3_0x38d3(){const _0x4cd6f4=['426524eoijoH','mapProjection_','get','53616dFfZNU','&#160;','handleMouseOut','element','2077200Jrduoi','div','createStringXY','setProjection','setMap','getCoordinateFormat','60avVMmx','push','纬度:','placeholder','showSpheroid','listenerKeys','projection','fractionDigits','renderOnMouseOut_','innerHTML','renderedHTML_','className','getCoordinateFromPixelInternal','setCoordinateFormat','POINTERMOVE','render','updateHTML_','getProjection','649434GrvIGY','transform_','handleMouseMove','createStringHDMS','createElement','17933616jvcRQE','set','3YKlxJl','367116KXpwDd','placeholder_','POINTEROUT','getMap','frameState','经度:','wrapX_','viewState','toString','1137640YerWgz'];a3_0x38d3=function(){return _0x4cd6f4;};return a3_0x38d3();}import{getSpheroidProjection,isSpheroid}from'../utils/RegisterProjUtil';import{listen}from'ol/events';import{Control}from'ol/control';function a3_0x7973(_0x32f07d,_0x961f93){const _0x38d389=a3_0x38d3();return a3_0x7973=function(_0x797321,_0x1ab190){_0x797321=_0x797321-0x1f1;let _0x48780f=_0x38d389[_0x797321];return _0x48780f;},a3_0x7973(_0x32f07d,_0x961f93);}import{getTransformFromProjections,getUserProjection,identityTransform}from'ol/proj';const PROJECTION='projection',COORDINATE_FORMAT='coordinateFormat';export default class MousePositionControl extends Control{constructor(_0x48a50f){const _0x17239=a3_0x7973;_0x48a50f=_0x48a50f||{};if(!_0x48a50f[_0x17239(0x1fe)]){const _0x47a14c=document[_0x17239(0x21b)](_0x17239(0x200));_0x48a50f[_0x17239(0x1fe)]=_0x47a14c;}_0x48a50f[_0x17239(0x1fe)][_0x17239(0x210)]=_0x48a50f['className']==undefined?'ol-mouse-position':_0x48a50f[_0x17239(0x210)],super(_0x48a50f),this[_0x17239(0x209)]=_0x48a50f[_0x17239(0x209)]===undefined?![]:_0x48a50f[_0x17239(0x209)],this[_0x17239(0x20c)]=_0x48a50f[_0x17239(0x20c)]===undefined?0x2:_0x48a50f[_0x17239(0x20c)],this['renderOnMouseOut_']=_0x48a50f[_0x17239(0x208)]!==undefined,this['placeholder_']=_0x48a50f[_0x17239(0x208)]!==undefined?_0x48a50f['placeholder']:_0x17239(0x1fc),this[_0x17239(0x20f)]=_0x48a50f[_0x17239(0x1fe)][_0x17239(0x20e)],this['wrapX_']=!![];}['handleProjectionChanged_'](){this['transform_']=undefined;}[a3_0x5c35cb(0x204)](){const _0x26b523=a3_0x5c35cb;return this[_0x26b523(0x1fa)](COORDINATE_FORMAT);}[a3_0x5c35cb(0x212)](_0x451c2f){this['set'](COORDINATE_FORMAT,_0x451c2f);}['getProjection'](){const _0x1af09c=a3_0x5c35cb;return this[_0x1af09c(0x1fa)](PROJECTION);}[a3_0x5c35cb(0x202)](_0xed1d3f){const _0x174cf4=a3_0x5c35cb;this[_0x174cf4(0x21d)](PROJECTION,_0xed1d3f);}[a3_0x5c35cb(0x219)](_0x238dfd){const _0x14ad94=a3_0x5c35cb,_0x46d6ce=this[_0x14ad94(0x1f1)]();this[_0x14ad94(0x215)](_0x46d6ce===null||_0x46d6ce===void 0x0?void 0x0:_0x46d6ce['getEventPixel'](_0x238dfd));}[a3_0x5c35cb(0x1fd)](_0x5a0227){const _0xe08eb1=a3_0x5c35cb;this[_0xe08eb1(0x215)](null);}[a3_0x5c35cb(0x203)](_0x17b1e2){const _0xd90a1c=a3_0x5c35cb;super[_0xd90a1c(0x203)](_0x17b1e2);if(_0x17b1e2){const _0x479092=isSpheroid(_0x17b1e2['getView']()[_0xd90a1c(0x216)]());let _0x6afc57=_0x17b1e2['getView']()[_0xd90a1c(0x216)](),_0xf69e12=this[_0xd90a1c(0x21a)];if(!_0x479092){if(this[_0xd90a1c(0x209)]){const _0x363f81=getSpheroidProjection(_0x17b1e2['getView']()[_0xd90a1c(0x216)]());_0x363f81&&(_0x6afc57=_0x363f81);}else _0xf69e12=this[_0xd90a1c(0x201)];}this[_0xd90a1c(0x202)](_0x6afc57),this[_0xd90a1c(0x212)](_0xf69e12(this[_0xd90a1c(0x20c)]));const _0x469089=_0x17b1e2['getViewport']();this[_0xd90a1c(0x20a)][_0xd90a1c(0x206)](listen(_0x469089,a3_0x2ef1f5[_0xd90a1c(0x213)],this[_0xd90a1c(0x219)],this)),this[_0xd90a1c(0x20d)]&&this[_0xd90a1c(0x20a)][_0xd90a1c(0x206)](listen(_0x469089,a3_0x2ef1f5[_0xd90a1c(0x221)],this[_0xd90a1c(0x1fd)],this)),this[_0xd90a1c(0x215)](null);}}[a3_0x5c35cb(0x215)](_0x6ce67b){const _0x3ee2d4=a3_0x5c35cb;let _0x398107=this[_0x3ee2d4(0x220)];const _0x869b65=this['getMap']();if(_0x6ce67b&&this[_0x3ee2d4(0x1f9)]&&_0x869b65){if(!this[_0x3ee2d4(0x218)]){const _0x46227b=this[_0x3ee2d4(0x216)]();_0x46227b?this[_0x3ee2d4(0x218)]=getTransformFromProjections(this[_0x3ee2d4(0x1f9)],_0x46227b):this[_0x3ee2d4(0x218)]=identityTransform;}const _0x55b26b=_0x869b65[_0x3ee2d4(0x211)](_0x6ce67b);if(_0x55b26b){const _0x4edd71=getUserProjection();_0x4edd71&&(this[_0x3ee2d4(0x218)]=getTransformFromProjections(this[_0x3ee2d4(0x1f9)],_0x4edd71));this[_0x3ee2d4(0x218)](_0x55b26b,_0x55b26b,undefined);if(this[_0x3ee2d4(0x1f4)]){const _0x89b73=_0x4edd71||this[_0x3ee2d4(0x216)]()||this[_0x3ee2d4(0x1f9)];wrapX(_0x55b26b,_0x89b73);}const _0x3d5570=this['getCoordinateFormat']();_0x3d5570?_0x398107=_0x3d5570(_0x55b26b):_0x398107=_0x55b26b[_0x3ee2d4(0x1f6)]();}}(!this[_0x3ee2d4(0x20f)]||_0x398107!==this[_0x3ee2d4(0x20f)])&&(this['element'][_0x3ee2d4(0x20e)]=_0x398107,this[_0x3ee2d4(0x20f)]=_0x398107);}[a3_0x5c35cb(0x214)](_0x2a0cf7){const _0x1ef4c2=a3_0x5c35cb,_0x4f3675=_0x2a0cf7[_0x1ef4c2(0x1f2)];!_0x4f3675?this[_0x1ef4c2(0x1f9)]=undefined:this['mapProjection_']!=_0x4f3675[_0x1ef4c2(0x1f5)][_0x1ef4c2(0x20b)]&&(this[_0x1ef4c2(0x1f9)]=_0x4f3675[_0x1ef4c2(0x1f5)][_0x1ef4c2(0x20b)],this[_0x1ef4c2(0x218)]=undefined);}['createStringXY'](_0x3bf6df){return function(_0x36ea62){return format(_0x36ea62,'X:{x}\x20Y:{y}',_0x3bf6df);};}[a3_0x5c35cb(0x21a)](_0x2e951b){return function(_0x587c7b){const _0x37abf2=a3_0x7973;if(_0x587c7b)return _0x37abf2(0x1f3)+degreesToStringHDMS(_0x587c7b[0x0],_0x2e951b)+'\x20'+_0x37abf2(0x207)+degreesToStringHDMS(_0x587c7b[0x1],_0x2e951b);};}}
1
+ const a3_0x140cbf=a3_0x2393;function a3_0x2393(_0x1dacb7,_0x37414e){const _0x6e92a2=a3_0x6e92();return a3_0x2393=function(_0x239329,_0x22e659){_0x239329=_0x239329-0x98;let _0x47a210=_0x6e92a2[_0x239329];return _0x47a210;},a3_0x2393(_0x1dacb7,_0x37414e);}(function(_0xa08917,_0x35aba5){const _0x3c39e3=a3_0x2393,_0x536326=_0xa08917();while(!![]){try{const _0x14f83b=parseInt(_0x3c39e3(0x99))/0x1*(parseInt(_0x3c39e3(0x9c))/0x2)+parseInt(_0x3c39e3(0xb5))/0x3*(-parseInt(_0x3c39e3(0x9f))/0x4)+-parseInt(_0x3c39e3(0xbb))/0x5+-parseInt(_0x3c39e3(0xc4))/0x6+-parseInt(_0x3c39e3(0xc5))/0x7*(-parseInt(_0x3c39e3(0xb1))/0x8)+parseInt(_0x3c39e3(0xb0))/0x9+-parseInt(_0x3c39e3(0x9b))/0xa;if(_0x14f83b===_0x35aba5)break;else _0x536326['push'](_0x536326['shift']());}catch(_0x152aac){_0x536326['push'](_0x536326['shift']());}}}(a3_0x6e92,0xdb96f));import{format,wrapX}from'ol/coordinate';function a3_0x6e92(){const _0x317b0f=['coordinateFormat','handleMouseOut','ol-mouse-position','toString','1TKICjc','setCoordinateFormat','9857100jhqfxw','3339884Sskprq','createStringHDMS','经度:','240GdnxNC','handleMouseMove','wrapX_','placeholder','setMap','transform_','projection','getCoordinateFormat','className','&#160;','set','getViewport','getMap','renderedHTML_','get','element','listenerKeys','6960996jlaxTU','8NbNcIq','renderOnMouseOut_','getProjection','setProjection','5667JlEGLn','纬度:','createElement','fractionDigits','innerHTML','getView','4950635VlgQqZ','createStringXY','showSpheroid','X:{x}\x20Y:{y}','frameState','POINTERMOVE','getCoordinateFromPixelInternal','mapProjection_','push','93138MMPrcr','3925271FVEhBV','updateHTML_'];a3_0x6e92=function(){return _0x317b0f;};return a3_0x6e92();}import{degreesToStringHDMS}from'../utils/StringUtil';import a3_0x3fdf0a from'ol/pointer/EventType.js';import{getSpheroidProjection,isSpheroid}from'../utils/RegisterProjUtil';import{listen}from'ol/events';import{Control}from'ol/control';import{getTransformFromProjections,getUserProjection,identityTransform}from'ol/proj';const PROJECTION=a3_0x140cbf(0xa5),COORDINATE_FORMAT=a3_0x140cbf(0xc7);export default class MousePositionControl extends Control{constructor(_0x5af09a){const _0x3e9f55=a3_0x140cbf;_0x5af09a=_0x5af09a||{};if(!_0x5af09a[_0x3e9f55(0xae)]){const _0x532777=document[_0x3e9f55(0xb7)]('div');_0x5af09a[_0x3e9f55(0xae)]=_0x532777;}_0x5af09a[_0x3e9f55(0xae)][_0x3e9f55(0xa7)]=_0x5af09a['className']==undefined?_0x3e9f55(0xc9):_0x5af09a[_0x3e9f55(0xa7)],super(_0x5af09a),this[_0x3e9f55(0xbd)]=_0x5af09a[_0x3e9f55(0xbd)]===undefined?![]:_0x5af09a[_0x3e9f55(0xbd)],this[_0x3e9f55(0xb8)]=_0x5af09a[_0x3e9f55(0xb8)]===undefined?0x2:_0x5af09a[_0x3e9f55(0xb8)],this[_0x3e9f55(0xb2)]=_0x5af09a[_0x3e9f55(0xa2)]!==undefined,this['placeholder_']=_0x5af09a[_0x3e9f55(0xa2)]!==undefined?_0x5af09a[_0x3e9f55(0xa2)]:_0x3e9f55(0xa8),this[_0x3e9f55(0xac)]=_0x5af09a['element'][_0x3e9f55(0xb9)],this[_0x3e9f55(0xa1)]=!![];}['handleProjectionChanged_'](){this['transform_']=undefined;}['getCoordinateFormat'](){const _0x35c421=a3_0x140cbf;return this[_0x35c421(0xad)](COORDINATE_FORMAT);}['setCoordinateFormat'](_0x1c7a60){const _0x193e99=a3_0x140cbf;this[_0x193e99(0xa9)](COORDINATE_FORMAT,_0x1c7a60);}['getProjection'](){const _0x11c350=a3_0x140cbf;return this[_0x11c350(0xad)](PROJECTION);}[a3_0x140cbf(0xb4)](_0x5cb911){this['set'](PROJECTION,_0x5cb911);}[a3_0x140cbf(0xa0)](_0x584a14){const _0x229e65=a3_0x140cbf,_0x2d0f83=this[_0x229e65(0xab)]();this[_0x229e65(0xc6)](_0x2d0f83===null||_0x2d0f83===void 0x0?void 0x0:_0x2d0f83['getEventPixel'](_0x584a14));}['handleMouseOut'](_0x58f8ce){const _0x5dfe08=a3_0x140cbf;this[_0x5dfe08(0xc6)](null);}[a3_0x140cbf(0xa3)](_0x4645e1){const _0x477d87=a3_0x140cbf;super[_0x477d87(0xa3)](_0x4645e1);if(_0x4645e1){const _0x42d123=isSpheroid(_0x4645e1['getView']()[_0x477d87(0xb3)]());let _0x52f2b0=_0x4645e1[_0x477d87(0xba)]()[_0x477d87(0xb3)](),_0x1dd4d2=this['createStringHDMS'];if(!_0x42d123){if(this[_0x477d87(0xbd)]){const _0xa522f4=getSpheroidProjection(_0x4645e1[_0x477d87(0xba)]()[_0x477d87(0xb3)]());_0xa522f4&&(_0x52f2b0=_0xa522f4);}else _0x1dd4d2=this[_0x477d87(0xbc)];}this['setProjection'](_0x52f2b0),this[_0x477d87(0x9a)](_0x1dd4d2(this[_0x477d87(0xb8)]));const _0x24a619=_0x4645e1[_0x477d87(0xaa)]();this['listenerKeys'][_0x477d87(0xc3)](listen(_0x24a619,a3_0x3fdf0a[_0x477d87(0xc0)],this[_0x477d87(0xa0)],this)),this[_0x477d87(0xb2)]&&this[_0x477d87(0xaf)][_0x477d87(0xc3)](listen(_0x24a619,a3_0x3fdf0a['POINTEROUT'],this[_0x477d87(0xc8)],this)),this[_0x477d87(0xc6)](null);}}[a3_0x140cbf(0xc6)](_0x5ae689){const _0x45b271=a3_0x140cbf;let _0x3c998f=this['placeholder_'];const _0x337a5b=this[_0x45b271(0xab)]();if(_0x5ae689&&this['mapProjection_']&&_0x337a5b){if(!this[_0x45b271(0xa4)]){const _0x3b327f=this[_0x45b271(0xb3)]();_0x3b327f?this['transform_']=getTransformFromProjections(this[_0x45b271(0xc2)],_0x3b327f):this['transform_']=identityTransform;}const _0x4637fe=_0x337a5b[_0x45b271(0xc1)](_0x5ae689);if(_0x4637fe){const _0x59b688=getUserProjection();_0x59b688&&(this[_0x45b271(0xa4)]=getTransformFromProjections(this[_0x45b271(0xc2)],_0x59b688));this['transform_'](_0x4637fe,_0x4637fe,undefined);if(this[_0x45b271(0xa1)]){const _0x2923a5=_0x59b688||this['getProjection']()||this[_0x45b271(0xc2)];wrapX(_0x4637fe,_0x2923a5);}const _0x7e1989=this[_0x45b271(0xa6)]();_0x7e1989?_0x3c998f=_0x7e1989(_0x4637fe):_0x3c998f=_0x4637fe[_0x45b271(0x98)]();}}(!this[_0x45b271(0xac)]||_0x3c998f!==this['renderedHTML_'])&&(this['element']['innerHTML']=_0x3c998f,this[_0x45b271(0xac)]=_0x3c998f);}['render'](_0x89c24f){const _0x173ec9=a3_0x140cbf,_0x4ceeb1=_0x89c24f[_0x173ec9(0xbf)];!_0x4ceeb1?this[_0x173ec9(0xc2)]=undefined:this[_0x173ec9(0xc2)]!=_0x4ceeb1['viewState'][_0x173ec9(0xa5)]&&(this['mapProjection_']=_0x4ceeb1['viewState'][_0x173ec9(0xa5)],this[_0x173ec9(0xa4)]=undefined);}[a3_0x140cbf(0xbc)](_0x580136){return function(_0x18c54b){const _0x2f6ef8=a3_0x2393;return format(_0x18c54b,_0x2f6ef8(0xbe),_0x580136);};}[a3_0x140cbf(0x9d)](_0x5c0e21){return function(_0x5deba6){const _0x3365a5=a3_0x2393;if(_0x5deba6)return _0x3365a5(0x9e)+degreesToStringHDMS(_0x5deba6[0x0],_0x5c0e21)+'\x20'+_0x3365a5(0xb6)+degreesToStringHDMS(_0x5deba6[0x1],_0x5c0e21);};}}
@@ -1 +1 @@
1
- const a4_0x351793=a4_0x4aff;function a4_0x4aff(_0x56a0cd,_0x273402){const _0x3459be=a4_0x3459();return a4_0x4aff=function(_0x4aff14,_0x491e0c){_0x4aff14=_0x4aff14-0xa8;let _0x2b394d=_0x3459be[_0x4aff14];return _0x2b394d;},a4_0x4aff(_0x56a0cd,_0x273402);}(function(_0x44773e,_0x4855ba){const _0x3600d7=a4_0x4aff,_0x4a7b6f=_0x44773e();while(!![]){try{const _0x26f8b6=-parseInt(_0x3600d7(0xd8))/0x1+parseInt(_0x3600d7(0xd5))/0x2*(parseInt(_0x3600d7(0xc7))/0x3)+parseInt(_0x3600d7(0xb0))/0x4+-parseInt(_0x3600d7(0xaa))/0x5+-parseInt(_0x3600d7(0xac))/0x6+parseInt(_0x3600d7(0xd1))/0x7+parseInt(_0x3600d7(0xad))/0x8;if(_0x26f8b6===_0x4855ba)break;else _0x4a7b6f['push'](_0x4a7b6f['shift']());}catch(_0x5eb1b1){_0x4a7b6f['push'](_0x4a7b6f['shift']());}}}(a4_0x3459,0xc0ab0));import{Control}from'ol/control';export default class SwipeLayerControl extends Control{constructor(_0x5b910b){const _0x4f469c=a4_0x4aff;_0x5b910b=_0x5b910b||{};if(!_0x5b910b[_0x4f469c(0xda)]){const _0x1e0d8e=document['createElement'](_0x4f469c(0xd9));_0x5b910b[_0x4f469c(0xda)]=_0x1e0d8e,_0x1e0d8e[_0x4f469c(0xae)]='ol-scroll-layer',(_0x5b910b[_0x4f469c(0xb5)]===_0x4f469c(0xdb)||_0x5b910b['dockedVisible']==='Right')&&(_0x1e0d8e[_0x4f469c(0xae)]=_0x4f469c(0xd2));}super(_0x5b910b),this[_0x4f469c(0xbb)]=0x32,this[_0x4f469c(0xb9)]=![],this[_0x4f469c(0xd3)]=_0x5b910b[_0x4f469c(0xcb)],this[_0x4f469c(0xab)]=_0x5b910b[_0x4f469c(0xb5)],this['isVertical']=_0x5b910b[_0x4f469c(0xb5)]===_0x4f469c(0xdb)||_0x5b910b[_0x4f469c(0xb5)]==='Right',this[_0x4f469c(0xc5)](this[_0x4f469c(0xda)]),this[_0x4f469c(0xda)]['addEventListener'](_0x4f469c(0xc9),()=>{const _0x22dbb6=_0x4f469c;var _0x7cbfe6;const _0xcbcc16=this[_0x22dbb6(0xda)][_0x22dbb6(0xbe)];this['swipeVa']=_0xcbcc16,(_0x7cbfe6=this[_0x22dbb6(0xb4)]())===null||_0x7cbfe6===void 0x0?void 0x0:_0x7cbfe6['render']();},![]),this[_0x4f469c(0xce)](_0x5b910b['swipeLayer']);}[a4_0x351793(0xce)](_0x2bf2d9){const _0x1a8987=a4_0x351793;this[_0x1a8987(0xa8)](),_0x2bf2d9&&(_0x2bf2d9['on']('prerender',_0x2c72ae=>this[_0x1a8987(0xbf)](_0x2c72ae)),_0x2bf2d9['on'](_0x1a8987(0xcd),_0x45ec41=>this[_0x1a8987(0xcd)](_0x45ec41)),this[_0x1a8987(0xd3)]=_0x2bf2d9);}['unsetSwipeLayer'](){const _0x1ab90e=a4_0x351793;var _0xa1eb1c;this[_0x1ab90e(0xd3)]&&(this[_0x1ab90e(0xbb)]=0x64,(_0xa1eb1c=this[_0x1ab90e(0xb4)]())===null||_0xa1eb1c===void 0x0?void 0x0:_0xa1eb1c[_0x1ab90e(0xb2)](),this[_0x1ab90e(0xd3)]['un'](_0x1ab90e(0xbf),_0x49b1d2=>this['prerender'](_0x49b1d2)),this[_0x1ab90e(0xd3)]['un'](_0x1ab90e(0xcd),_0x3970a4=>this['postrender'](_0x3970a4)));}['prerender'](_0x2de36b){const _0x28dda1=a4_0x351793,_0x1254c1=_0x2de36b['context'],_0x2b6df0=_0x1254c1===null||_0x1254c1===void 0x0?void 0x0:_0x1254c1[_0x28dda1(0xc2)][_0x28dda1(0xaf)];if(!this[_0x28dda1(0xda)]||!_0x2b6df0||!_0x1254c1)return;console[_0x28dda1(0xc4)](this[_0x28dda1(0xbb)]);const _0x44e141=_0x2b6df0*this[_0x28dda1(0xbb)]/0x64;_0x1254c1[_0x28dda1(0xca)](),_0x1254c1[_0x28dda1(0xc8)](),_0x1254c1['rect'](0x0,0x0,_0x44e141,_0x1254c1['canvas'][_0x28dda1(0xc0)]),_0x1254c1[_0x28dda1(0xcf)]();}[a4_0x351793(0xcd)](_0x227244){const _0x40600b=a4_0x351793,_0x2ff418=_0x227244['context'];_0x2ff418[_0x40600b(0xd7)]();}[a4_0x351793(0xb7)](_0x5fa979){const _0x413311=a4_0x351793;!_0x5fa979&&this[_0x413311(0xa8)](),super['setMap'](_0x5fa979);}[a4_0x351793(0xb6)](){this['unsetSwipeLayer']();}['disposeInternal'](){const _0x1761f6=a4_0x351793;this[_0x1761f6(0xa8)](),super[_0x1761f6(0xa9)]();}[a4_0x351793(0xb2)](_0x570486){}[a4_0x351793(0xc5)](_0x3f4dc4){const _0x3c6749=a4_0x351793;let _0x11e97e=![];_0x3f4dc4[_0x3c6749(0xdc)](_0x3c6749(0xb8),()=>{const _0x25086b=_0x3c6749,_0x56ae72=this[_0x25086b(0xb4)]();if(!_0x56ae72)return;_0x11e97e=!![],_0x56ae72[_0x25086b(0xc3)]()[_0x25086b(0xbd)][_0x25086b(0xbc)]=this[_0x25086b(0xb9)]?_0x25086b(0xcc):_0x25086b(0xc6);}),document['addEventListener']('pointermove',_0x428528=>{const _0x12c264=_0x3c6749;if(!_0x11e97e)return;const _0x21fb71=this[_0x12c264(0xb4)]();if(!_0x21fb71)return;const _0x31410f=_0x21fb71['getTargetElement']()[_0x12c264(0xba)](),_0x47cdad=_0x21fb71[_0x12c264(0xb1)]([_0x428528[_0x12c264(0xd4)]-_0x31410f[_0x12c264(0xc1)],_0x428528[_0x12c264(0xd6)]-_0x31410f[_0x12c264(0xd0)]]);this[_0x12c264(0xb9)]?(this['swipeVa']=(_0x428528[_0x12c264(0xd4)]-_0x31410f[_0x12c264(0xc1)])/_0x31410f[_0x12c264(0xaf)]*0x64,_0x3f4dc4[_0x12c264(0xbd)]['left']=this[_0x12c264(0xbb)]+'%'):_0x3f4dc4[_0x12c264(0xbd)]['top']=(_0x428528[_0x12c264(0xd6)]-_0x31410f[_0x12c264(0xd0)])/_0x31410f[_0x12c264(0xc0)]*0x64+'%',_0x21fb71[_0x12c264(0xb2)]();}),document[_0x3c6749(0xdc)](_0x3c6749(0xb3),()=>{const _0x2c6f42=_0x3c6749;_0x11e97e=![];const _0x2b0487=this[_0x2c6f42(0xb4)]();if(!_0x2b0487)return;_0x2b0487['getTargetElement']()['style']['cursor']='';});}}function a4_0x3459(){const _0x41240e=['canvas','getTargetElement','log','bindEvents','row-resize','6DMoneK','beginPath','input','save','swipeLayer','col-resize','postrender','setSwipeLayer','clip','top','7455399aGoCBc','ol-scroll-layer\x20ol-scroll-layer-vertical','_swipeLayer','clientX','26974jUpnVe','clientY','restore','1520541KLFRyZ','div','element','Left','addEventListener','unsetSwipeLayer','disposeInternal','1445690FBUeJD','_dockedVisible','2037816aFtVFz','9451448JpAcJH','className','width','2660084yeJKzb','getCoordinateFromPixel','render','pointerup','getMap','dockedVisible','dispose','setMap','pointerdown','isVertical','getBoundingClientRect','swipeVa','cursor','style','value','prerender','height','left'];a4_0x3459=function(){return _0x41240e;};return a4_0x3459();}
1
+ const a4_0x5e5f2c=a4_0x3b8f;function a4_0x5218(){const _0x52d79f=['render','getTargetElement','left','canvas','createElement','className','ol-scroll-layer','div','pointerup','123293LMQOin','addEventListener','Left','clientY','7025676IjxyoT','getMap','top','_swipeLayer','row-resize','unsetSwipeLayer','prerender','cursor','save','restore','10DVskNw','setMap','_dockedVisible','dispose','pointermove','disposeInternal','7351940GvJFrj','log','width','8020044BBoZHB','9SGtSBL','style','input','8RAPTnZ','beginPath','3014592vHXLcE','clip','908800UcDyNv','dockedVisible','postrender','getCoordinateFromPixel','element','getBoundingClientRect','ol-scroll-layer\x20ol-scroll-layer-vertical','setSwipeLayer','height','4546969BoapoA','isVertical','swipeVa','bindEvents','context'];a4_0x5218=function(){return _0x52d79f;};return a4_0x5218();}function a4_0x3b8f(_0x2e000a,_0x1d5258){const _0x52187e=a4_0x5218();return a4_0x3b8f=function(_0x3b8f4f,_0x303b51){_0x3b8f4f=_0x3b8f4f-0x1a4;let _0xe5bdb6=_0x52187e[_0x3b8f4f];return _0xe5bdb6;},a4_0x3b8f(_0x2e000a,_0x1d5258);}(function(_0x5c8c57,_0x54e857){const _0x33be60=a4_0x3b8f,_0x45ac9a=_0x5c8c57();while(!![]){try{const _0xaf146=parseInt(_0x33be60(0x1bd))/0x1*(-parseInt(_0x33be60(0x1cb))/0x2)+parseInt(_0x33be60(0x1a4))/0x3+parseInt(_0x33be60(0x1c1))/0x4+parseInt(_0x33be60(0x1a6))/0x5+-parseInt(_0x33be60(0x1d4))/0x6+parseInt(_0x33be60(0x1af))/0x7*(parseInt(_0x33be60(0x1d8))/0x8)+-parseInt(_0x33be60(0x1d5))/0x9*(parseInt(_0x33be60(0x1d1))/0xa);if(_0xaf146===_0x54e857)break;else _0x45ac9a['push'](_0x45ac9a['shift']());}catch(_0x399783){_0x45ac9a['push'](_0x45ac9a['shift']());}}}(a4_0x5218,0xdcc55));import{Control}from'ol/control';export default class SwipeLayerControl extends Control{constructor(_0x18c9cb){const _0x353bd9=a4_0x3b8f;_0x18c9cb=_0x18c9cb||{};if(!_0x18c9cb[_0x353bd9(0x1aa)]){const _0x2f1bfb=document[_0x353bd9(0x1b8)](_0x353bd9(0x1bb));_0x18c9cb[_0x353bd9(0x1aa)]=_0x2f1bfb,_0x2f1bfb['className']=_0x353bd9(0x1ba),(_0x18c9cb[_0x353bd9(0x1a7)]===_0x353bd9(0x1bf)||_0x18c9cb['dockedVisible']==='Right')&&(_0x2f1bfb[_0x353bd9(0x1b9)]=_0x353bd9(0x1ac));}super(_0x18c9cb),this[_0x353bd9(0x1b1)]=0x32,this[_0x353bd9(0x1b0)]=![],this[_0x353bd9(0x1c4)]=_0x18c9cb['swipeLayer'],this[_0x353bd9(0x1cd)]=_0x18c9cb['dockedVisible'],this[_0x353bd9(0x1b0)]=_0x18c9cb['dockedVisible']===_0x353bd9(0x1bf)||_0x18c9cb[_0x353bd9(0x1a7)]==='Right',this['bindEvents'](this[_0x353bd9(0x1aa)]),this[_0x353bd9(0x1aa)][_0x353bd9(0x1be)](_0x353bd9(0x1d7),()=>{const _0x3a3fe1=_0x353bd9;var _0x234c99;const _0x4a7152=this[_0x3a3fe1(0x1aa)]['value'];this[_0x3a3fe1(0x1b1)]=_0x4a7152,(_0x234c99=this[_0x3a3fe1(0x1c2)]())===null||_0x234c99===void 0x0?void 0x0:_0x234c99[_0x3a3fe1(0x1b4)]();},![]),this[_0x353bd9(0x1ad)](_0x18c9cb['swipeLayer']);}[a4_0x5e5f2c(0x1ad)](_0x131511){const _0x3a3589=a4_0x5e5f2c;this[_0x3a3589(0x1c6)](),_0x131511&&(_0x131511['on'](_0x3a3589(0x1c7),_0x331ebc=>this[_0x3a3589(0x1c7)](_0x331ebc)),_0x131511['on']('postrender',_0x10c7f1=>this['postrender'](_0x10c7f1)),this[_0x3a3589(0x1c4)]=_0x131511);}[a4_0x5e5f2c(0x1c6)](){const _0x377107=a4_0x5e5f2c;var _0x4c12f7;this[_0x377107(0x1c4)]&&(this[_0x377107(0x1b1)]=0x64,(_0x4c12f7=this['getMap']())===null||_0x4c12f7===void 0x0?void 0x0:_0x4c12f7[_0x377107(0x1b4)](),this['_swipeLayer']['un'](_0x377107(0x1c7),_0x18123d=>this[_0x377107(0x1c7)](_0x18123d)),this[_0x377107(0x1c4)]['un'](_0x377107(0x1a8),_0x205e72=>this[_0x377107(0x1a8)](_0x205e72)));}['prerender'](_0x1a8c73){const _0x76e9bf=a4_0x5e5f2c,_0x265622=_0x1a8c73['context'],_0x1aef24=_0x265622===null||_0x265622===void 0x0?void 0x0:_0x265622[_0x76e9bf(0x1b7)][_0x76e9bf(0x1d3)];if(!this[_0x76e9bf(0x1aa)]||!_0x1aef24||!_0x265622)return;console[_0x76e9bf(0x1d2)](this[_0x76e9bf(0x1b1)]);const _0x1ac33a=_0x1aef24*this[_0x76e9bf(0x1b1)]/0x64;_0x265622[_0x76e9bf(0x1c9)](),_0x265622[_0x76e9bf(0x1d9)](),_0x265622['rect'](0x0,0x0,_0x1ac33a,_0x265622[_0x76e9bf(0x1b7)][_0x76e9bf(0x1ae)]),_0x265622[_0x76e9bf(0x1a5)]();}['postrender'](_0x165d38){const _0x5714f9=a4_0x5e5f2c,_0x5877ea=_0x165d38[_0x5714f9(0x1b3)];_0x5877ea[_0x5714f9(0x1ca)]();}[a4_0x5e5f2c(0x1cc)](_0x1c38d6){const _0x2d080a=a4_0x5e5f2c;!_0x1c38d6&&this[_0x2d080a(0x1c6)](),super[_0x2d080a(0x1cc)](_0x1c38d6);}[a4_0x5e5f2c(0x1ce)](){this['unsetSwipeLayer']();}[a4_0x5e5f2c(0x1d0)](){this['unsetSwipeLayer'](),super['disposeInternal']();}[a4_0x5e5f2c(0x1b4)](_0x44b2de){}[a4_0x5e5f2c(0x1b2)](_0x11634f){const _0x1ca656=a4_0x5e5f2c;let _0x4d8ef7=![];_0x11634f[_0x1ca656(0x1be)]('pointerdown',()=>{const _0x5c7ded=_0x1ca656,_0x7f9c1a=this[_0x5c7ded(0x1c2)]();if(!_0x7f9c1a)return;_0x4d8ef7=!![],_0x7f9c1a[_0x5c7ded(0x1b5)]()[_0x5c7ded(0x1d6)]['cursor']=this[_0x5c7ded(0x1b0)]?'col-resize':_0x5c7ded(0x1c5);}),document[_0x1ca656(0x1be)](_0x1ca656(0x1cf),_0x1b64c8=>{const _0x392753=_0x1ca656;if(!_0x4d8ef7)return;const _0x3c19ec=this[_0x392753(0x1c2)]();if(!_0x3c19ec)return;const _0x5529c0=_0x3c19ec[_0x392753(0x1b5)]()[_0x392753(0x1ab)](),_0x497fd7=_0x3c19ec[_0x392753(0x1a9)]([_0x1b64c8['clientX']-_0x5529c0['left'],_0x1b64c8[_0x392753(0x1c0)]-_0x5529c0[_0x392753(0x1c3)]]);this[_0x392753(0x1b0)]?(this[_0x392753(0x1b1)]=(_0x1b64c8['clientX']-_0x5529c0[_0x392753(0x1b6)])/_0x5529c0['width']*0x64,_0x11634f['style'][_0x392753(0x1b6)]=this[_0x392753(0x1b1)]+'%'):_0x11634f[_0x392753(0x1d6)]['top']=(_0x1b64c8['clientY']-_0x5529c0['top'])/_0x5529c0[_0x392753(0x1ae)]*0x64+'%',_0x3c19ec[_0x392753(0x1b4)]();}),document[_0x1ca656(0x1be)](_0x1ca656(0x1bc),()=>{const _0x3504a7=_0x1ca656;_0x4d8ef7=![];const _0x5a3275=this[_0x3504a7(0x1c2)]();if(!_0x5a3275)return;_0x5a3275[_0x3504a7(0x1b5)]()['style'][_0x3504a7(0x1c8)]='';});}}
@@ -1 +1 @@
1
- const a5_0x5c156a=a5_0x59b2;(function(_0x39c69e,_0x305654){const _0x3b3ad8=a5_0x59b2,_0x2daa1d=_0x39c69e();while(!![]){try{const _0x35d662=-parseInt(_0x3b3ad8(0x1bc))/0x1*(parseInt(_0x3b3ad8(0x1d2))/0x2)+-parseInt(_0x3b3ad8(0x1b9))/0x3+-parseInt(_0x3b3ad8(0x1d1))/0x4*(parseInt(_0x3b3ad8(0x1b8))/0x5)+parseInt(_0x3b3ad8(0x193))/0x6+-parseInt(_0x3b3ad8(0x1ac))/0x7*(parseInt(_0x3b3ad8(0x1cf))/0x8)+parseInt(_0x3b3ad8(0x19b))/0x9*(-parseInt(_0x3b3ad8(0x1c9))/0xa)+parseInt(_0x3b3ad8(0x1c3))/0xb;if(_0x35d662===_0x305654)break;else _0x2daa1d['push'](_0x2daa1d['shift']());}catch(_0x4956c9){_0x2daa1d['push'](_0x2daa1d['shift']());}}}(a5_0x3353,0x291fc));export function geoJSONToKml(_0x4dbfe1,_0x4e1253){const _0x553dcd=a5_0x59b2;return _0x4e1253=_0x4e1253||{'documentName':undefined,'documentDescription':undefined,'name':_0x553dcd(0x1a0),'description':_0x553dcd(0x1b4),'simplestyle':![],'timestamp':'timestamp'},_0x553dcd(0x18c)+tag(_0x553dcd(0x19d),tag(_0x553dcd(0x18a),documentName(_0x4e1253)+documentDescription(_0x4e1253)+root(_0x4dbfe1,_0x4e1253)),[[_0x553dcd(0x1c0),_0x553dcd(0x191)]]);}function feature(_0xd3201a,_0x352cc9){return function(_0x194343){const _0x520fdf=a5_0x59b2;if(!_0x194343[_0x520fdf(0x1b0)]||!geometry[_0x520fdf(0x1d4)](_0x194343[_0x520fdf(0x1aa)]))return'';const _0x145c64=geometry[_0x520fdf(0x189)](_0x194343[_0x520fdf(0x1aa)]);if(!_0x145c64)return'';let _0x3319bc='',_0x56aaf='';if(_0xd3201a[_0x520fdf(0x1be)]){const _0x245ec3=hashStyle(_0x194343['properties']);if(_0x245ec3){if(geometry[_0x520fdf(0x190)](_0x194343[_0x520fdf(0x1aa)])&&hasMarkerStyle(_0x194343[_0x520fdf(0x1b0)]))_0x352cc9[_0x520fdf(0x1ca)](_0x245ec3)===-0x1&&(_0x3319bc=markerStyle(_0x194343[_0x520fdf(0x1b0)],_0x245ec3),_0x352cc9[_0x520fdf(0x1c5)](_0x245ec3)),_0x56aaf=tag('styleUrl','#'+_0x245ec3);else(geometry[_0x520fdf(0x1ad)](_0x194343[_0x520fdf(0x1aa)])||geometry[_0x520fdf(0x19a)](_0x194343[_0x520fdf(0x1aa)]))&&hasPolygonAndLineStyle(_0x194343[_0x520fdf(0x1b0)])&&(_0x352cc9[_0x520fdf(0x1ca)](_0x245ec3)===-0x1&&(_0x3319bc=polygonAndLineStyle(_0x194343[_0x520fdf(0x1b0)],_0x245ec3),_0x352cc9[_0x520fdf(0x1c5)](_0x245ec3)),_0x56aaf=tag(_0x520fdf(0x1a2),'#'+_0x245ec3));}}return _0x3319bc+tag('Placemark',name(_0x194343['properties'],_0xd3201a)+description(_0x194343[_0x520fdf(0x1b0)],_0xd3201a)+extendeddata(_0x194343[_0x520fdf(0x1b0)])+timestamp(_0x194343[_0x520fdf(0x1b0)],_0xd3201a)+_0x145c64+_0x56aaf);};}function root(_0x2b5269,_0x1aef2c){const _0x2c54bb=a5_0x59b2;if(!_0x2b5269[_0x2c54bb(0x18e)])return'';const _0x46c12a=[];switch(_0x2b5269[_0x2c54bb(0x18e)]){case _0x2c54bb(0x1d0):if(!_0x2b5269['features'])return'';return _0x2b5269[_0x2c54bb(0x1b3)]['map'](feature(_0x1aef2c,_0x46c12a))[_0x2c54bb(0x1e0)]('');case _0x2c54bb(0x1b1):return feature(_0x1aef2c,_0x46c12a)(_0x2b5269);default:return feature(_0x1aef2c,_0x46c12a)({'type':_0x2c54bb(0x1b1),'geometry':_0x2b5269,'properties':{}});}}function documentName(_0x4129bd){const _0x23227b=a5_0x59b2;return _0x4129bd['documentName']!==undefined?tag(_0x23227b(0x1a0),_0x4129bd[_0x23227b(0x1c4)]):'';}function documentDescription(_0x3d902e){const _0x1df30f=a5_0x59b2;return _0x3d902e[_0x1df30f(0x194)]!==undefined?tag('description',_0x3d902e[_0x1df30f(0x194)]):'';}function name(_0x8ae7ef,_0x1ba975){const _0x4bc124=a5_0x59b2;return _0x8ae7ef[_0x1ba975[_0x4bc124(0x1a0)]]?tag('name',encode(_0x8ae7ef[_0x1ba975[_0x4bc124(0x1a0)]])):'';}function description(_0x412b4a,_0x3e8d80){const _0x29310b=a5_0x59b2;return _0x412b4a[_0x3e8d80['description']]?tag(_0x29310b(0x1b4),encode(_0x412b4a[_0x3e8d80['description']])):'';}function timestamp(_0x4b925b,_0x30cb61){const _0x5ddfef=a5_0x59b2;return _0x4b925b[_0x30cb61[_0x5ddfef(0x1d3)]]?tag('TimeStamp',tag(_0x5ddfef(0x1ae),encode(_0x4b925b[_0x30cb61[_0x5ddfef(0x1d3)]]))):'';}const geometry={'Point':function(_0x3966ef){const _0x10c0ea=a5_0x59b2;return tag(_0x10c0ea(0x192),tag(_0x10c0ea(0x1b7),_0x3966ef[_0x10c0ea(0x1b7)]['join'](',')));},'LineString':function(_0x53e529){const _0x590714=a5_0x59b2;return tag(_0x590714(0x196),tag('coordinates',linearring(_0x53e529[_0x590714(0x1b7)])));},'Polygon':function(_0x1bdebc){const _0xe5af31=a5_0x59b2;if(!_0x1bdebc[_0xe5af31(0x1b7)][_0xe5af31(0x1cc)])return'';const _0xd90ba6=_0x1bdebc[_0xe5af31(0x1b7)][0x0],_0x1c8cb8=_0x1bdebc[_0xe5af31(0x1b7)][_0xe5af31(0x1d5)](0x1),_0xd7b3d9=tag('outerBoundaryIs',tag(_0xe5af31(0x1a8),tag(_0xe5af31(0x1b7),linearring(_0xd90ba6)))),_0x36141f=_0x1c8cb8[_0xe5af31(0x1c1)](function(_0x3026c0){const _0x13e238=_0xe5af31;return tag(_0x13e238(0x1c6),tag('LinearRing',tag(_0x13e238(0x1b7),linearring(_0x3026c0))));})[_0xe5af31(0x1e0)]('');return tag('Polygon',_0xd7b3d9+_0x36141f);},'MultiPoint':function(_0x491c8f){const _0xb528c9=a5_0x59b2;if(!_0x491c8f[_0xb528c9(0x1b7)]['length'])return'';return tag(_0xb528c9(0x199),_0x491c8f['coordinates']['map'](function(_0x526773){const _0x51ee4f=_0xb528c9;return geometry[_0x51ee4f(0x192)]({'coordinates':_0x526773});})['join'](''));},'MultiPolygon':function(_0x1dde86){const _0x124017=a5_0x59b2;if(!_0x1dde86[_0x124017(0x1b7)][_0x124017(0x1cc)])return'';return tag(_0x124017(0x199),_0x1dde86[_0x124017(0x1b7)][_0x124017(0x1c1)](function(_0x23f638){const _0x1e3479=_0x124017;return geometry[_0x1e3479(0x1bf)]({'coordinates':_0x23f638});})[_0x124017(0x1e0)](''));},'MultiLineString':function(_0x35b7bd){const _0x3e91d1=a5_0x59b2;if(!_0x35b7bd['coordinates'][_0x3e91d1(0x1cc)])return'';return tag(_0x3e91d1(0x199),_0x35b7bd[_0x3e91d1(0x1b7)][_0x3e91d1(0x1c1)](function(_0x175dd0){return geometry['LineString']({'coordinates':_0x175dd0});})['join'](''));},'GeometryCollection':function(_0x40da21){const _0x32059e=a5_0x59b2;return tag(_0x32059e(0x199),_0x40da21[_0x32059e(0x198)][_0x32059e(0x1c1)](geometry['any'])[_0x32059e(0x1e0)](''));},'valid':function(_0x479427){const _0x4d3f2a=a5_0x59b2;return _0x479427&&_0x479427[_0x4d3f2a(0x18e)]&&(_0x479427[_0x4d3f2a(0x1b7)]||_0x479427[_0x4d3f2a(0x18e)]===_0x4d3f2a(0x197)&&_0x479427['geometries']&&_0x479427[_0x4d3f2a(0x198)]['every'](geometry[_0x4d3f2a(0x1d4)]));},'any':function(_0x22b5cc){const _0x784416=a5_0x59b2;return geometry[_0x22b5cc[_0x784416(0x18e)]]?geometry[_0x22b5cc[_0x784416(0x18e)]](_0x22b5cc):'';},'isPoint':function(_0xc90f8b){const _0x4ede3c=a5_0x59b2;return _0xc90f8b[_0x4ede3c(0x18e)]===_0x4ede3c(0x192)||_0xc90f8b[_0x4ede3c(0x18e)]==='MultiPoint';},'isPolygon':function(_0x5cfebe){const _0x566043=a5_0x59b2;return _0x5cfebe[_0x566043(0x18e)]===_0x566043(0x1bf)||_0x5cfebe['type']===_0x566043(0x18d);},'isLine':function(_0x49f82b){const _0x2ffd20=a5_0x59b2;return _0x49f82b[_0x2ffd20(0x18e)]===_0x2ffd20(0x196)||_0x49f82b[_0x2ffd20(0x18e)]==='MultiLineString';}};function linearring(_0x451d20){const _0x54c6a5=a5_0x59b2;return _0x451d20['map'](function(_0x454ce8){const _0x27b870=a5_0x59b2;return _0x454ce8[_0x27b870(0x1e0)](',');})[_0x54c6a5(0x1e0)]('\x20');}function extendeddata(_0x286ef8){const _0x5980be=a5_0x59b2,_0xe39bad=[];for(const _0x33cbf5 in _0x286ef8){const _0x451bae=_0x286ef8[_0x33cbf5];isObject(_0x451bae)?_0xe39bad[_0x5980be(0x1c5)](_0x5980be(0x1da)+_0x33cbf5+_0x5980be(0x1b5)+JSON[_0x5980be(0x1dd)](_0x451bae)+_0x5980be(0x1bd)):_0xe39bad[_0x5980be(0x1c5)](_0x5980be(0x1da)+_0x33cbf5+_0x5980be(0x1b5)+_0x451bae+_0x5980be(0x1bd));}return tag(_0x5980be(0x1dc),_0xe39bad['join'](''));}function data(_0x16a850){const _0xe6f518=a5_0x59b2;return tag('Data',tag(_0xe6f518(0x1a3),encode(_0x16a850[0x1])),[[_0xe6f518(0x1a0),encode(_0x16a850[0x0])]]);}function hasMarkerStyle(_0x283a60){const _0xc84ccb=a5_0x59b2;return!!(_0x283a60['marker-size']||_0x283a60['marker-symbol']||_0x283a60[_0xc84ccb(0x1ce)]);}function markerStyle(_0x44babf,_0x1b06d9){const _0x50116c=a5_0x59b2;return tag(_0x50116c(0x1ba),tag('IconStyle',tag('Icon',tag(_0x50116c(0x1cd),iconUrl(_0x44babf))))+iconSize(_0x44babf),[['id',_0x1b06d9]]);}function iconUrl(_0x3712cd){const _0x197e10=a5_0x59b2;return _0x3712cd[_0x197e10(0x1c2)];}function a5_0x59b2(_0x9c31bb,_0x58dd26){const _0x335348=a5_0x3353();return a5_0x59b2=function(_0x59b262,_0x551907){_0x59b262=_0x59b262-0x189;let _0x43d6a1=_0x335348[_0x59b262];return _0x43d6a1;},a5_0x59b2(_0x9c31bb,_0x58dd26);}function iconSize(_0x89678d){const _0x3fc7ac=a5_0x59b2;return tag(_0x3fc7ac(0x1e1),'',[['xunits',_0x3fc7ac(0x18f)],[_0x3fc7ac(0x1de),_0x3fc7ac(0x18f)],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x127aa4){for(const _0x49a83c in _0x127aa4){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x49a83c])return!![];}}function polygonAndLineStyle(_0x41972f,_0x31367e){const _0x43a64e=a5_0x59b2,_0x415c7f=tag(_0x43a64e(0x19e),[tag(_0x43a64e(0x19c),hexToKmlColor(_0x41972f['stroke'],_0x41972f['stroke-opacity'])||_0x43a64e(0x1a9))+tag(_0x43a64e(0x1a7),_0x41972f[_0x43a64e(0x1df)]===undefined?0x2:_0x41972f[_0x43a64e(0x1df)])]);let _0x21ce3d='';return(_0x41972f[_0x43a64e(0x1db)]||_0x41972f['fill-opacity'])&&(_0x21ce3d=tag(_0x43a64e(0x1d9),[tag(_0x43a64e(0x19c),hexToKmlColor(_0x41972f[_0x43a64e(0x1db)],_0x41972f[_0x43a64e(0x18b)])||_0x43a64e(0x1bb))])),tag(_0x43a64e(0x1ba),_0x415c7f+_0x21ce3d,[['id',_0x31367e]]);}function hashStyle(_0x1bd30c){const _0x31d032=a5_0x59b2;let _0x44785e='';return _0x1bd30c[_0x31d032(0x1c2)]&&(_0x44785e=_0x44785e+'ms'+_0x1bd30c[_0x31d032(0x1c2)]),_0x1bd30c['marker-color']&&(_0x44785e=_0x44785e+'mc'+_0x1bd30c[_0x31d032(0x1ce)][_0x31d032(0x1c8)]('#','')),_0x1bd30c[_0x31d032(0x1d8)]&&(_0x44785e=_0x44785e+'ms'+_0x1bd30c['marker-size']),_0x1bd30c[_0x31d032(0x1d6)]&&(_0x44785e=_0x44785e+'s'+_0x1bd30c[_0x31d032(0x1d6)][_0x31d032(0x1c8)]('#','')),_0x1bd30c[_0x31d032(0x1df)]&&(_0x44785e=_0x44785e+'sw'+_0x1bd30c[_0x31d032(0x1df)][_0x31d032(0x1a6)]()['replace']('.','')),_0x1bd30c[_0x31d032(0x195)]&&(_0x44785e=_0x44785e+'mo'+_0x1bd30c[_0x31d032(0x195)]['toString']()[_0x31d032(0x1c8)]('.','')),_0x1bd30c[_0x31d032(0x1db)]&&(_0x44785e=_0x44785e+'f'+_0x1bd30c[_0x31d032(0x1db)][_0x31d032(0x1c8)]('#','')),_0x1bd30c['fill-opacity']&&(_0x44785e=_0x44785e+'fo'+_0x1bd30c[_0x31d032(0x18b)]['toString']()['replace']('.','')),_0x44785e;}function hexToKmlColor(_0x160498,_0x362d5f){const _0x4b8434=a5_0x59b2;if(typeof _0x160498!=='string')return'';_0x160498=_0x160498[_0x4b8434(0x1c8)]('#','')[_0x4b8434(0x1b2)]();if(_0x160498['length']===0x3)_0x160498=_0x160498[0x0]+_0x160498[0x0]+_0x160498[0x1]+_0x160498[0x1]+_0x160498[0x2]+_0x160498[0x2];else{if(_0x160498[_0x4b8434(0x1cc)]!==0x6)return'';}const _0x2ef5f9=_0x160498[0x0]+_0x160498[0x1],_0x236a18=_0x160498[0x2]+_0x160498[0x3],_0x2f8992=_0x160498[0x4]+_0x160498[0x5];let _0x27343f='ff';return typeof _0x362d5f===_0x4b8434(0x1a4)&&_0x362d5f>=0x0&&_0x362d5f<=0x1&&(_0x27343f=(_0x362d5f*0xff)[_0x4b8434(0x1a6)](0x10),_0x27343f[_0x4b8434(0x1ca)]('.')>-0x1&&(_0x27343f=_0x27343f['substr'](0x0,_0x27343f['indexOf']('.'))),_0x27343f['length']<0x2&&(_0x27343f='0'+_0x27343f)),_0x27343f+_0x2f8992+_0x236a18+_0x2ef5f9;}export function isObject(_0x193a91){const _0x53435d=a5_0x59b2;return Object['prototype'][_0x53435d(0x1a6)][_0x53435d(0x1d7)](_0x193a91)===_0x53435d(0x1cb);}function encode(_0x204b4d){const _0x54056d=a5_0x59b2;if(!_0x204b4d)return'';return _0x204b4d[_0x54056d(0x1a6)]()[_0x54056d(0x1c8)](/&/g,_0x54056d(0x1b6))['replace'](/</g,_0x54056d(0x19f))['replace'](/>/g,_0x54056d(0x1a1))[_0x54056d(0x1c8)](/"/g,_0x54056d(0x1c7));}function attr(_0x5ae177){const _0x51014a=a5_0x59b2;if(!Object[_0x51014a(0x1a5)](_0x5ae177)[_0x51014a(0x1cc)])return'';return'\x20'+Object[_0x51014a(0x1a5)](_0x5ae177)[_0x51014a(0x1c1)](function(_0x2fe48f){return _0x2fe48f+'=\x22'+escape(_0x5ae177[_0x2fe48f])+'\x22';})['join']('\x20');}const escape_map={'>':a5_0x5c156a(0x1a1),'<':'&lt;','\x27':'&apos;','\x22':a5_0x5c156a(0x1c7),'&':a5_0x5c156a(0x1b6)};function escape(_0x4c77b1,_0x15c8fd){const _0x2f63a5=a5_0x5c156a;if(_0x4c77b1===null||_0x4c77b1===undefined)return;_0x15c8fd=(_0x15c8fd||'')[_0x2f63a5(0x1c8)](/[^&"<>\']/g,'');const _0x2e0357=_0x2f63a5(0x1af)[_0x2f63a5(0x1c8)](new RegExp('['+_0x15c8fd+']','g'),'');return _0x4c77b1[_0x2f63a5(0x1c8)](new RegExp(_0x2e0357,'g'),function(_0x40aeb1,_0x1c248d){return escape_map[_0x1c248d];});}function tag(_0x26530d,_0x25f46e,_0x4600d2){const _0x337c8c=a5_0x5c156a;return(Array['isArray'](_0x25f46e)||typeof _0x25f46e===_0x337c8c(0x1ab))&&(_0x4600d2=_0x25f46e,_0x25f46e={}),Array['isArray'](_0x4600d2)&&(_0x4600d2='\x0a'+_0x4600d2[_0x337c8c(0x1c1)](function(_0x11a6ec){return'\x20\x20'+_0x11a6ec;})['join']('\x0a')+'\x0a'),'<'+_0x26530d+attr(_0x25f46e)+'>'+_0x4600d2+'</'+_0x26530d+'>';}function a5_0x3353(){const _0x438dc2=['geometry','string','63JUgLGu','isPolygon','when','([&\x22<>\x27])','properties','Feature','toLowerCase','features','description','\x22><value>','&amp;','coordinates','110LAdSOR','745182rIQEkM','Style','88555555','100105AqcaOp','</value></Data>','simplestyle','Polygon','xmlns','map','marker-symbol','6814324ZMqmkN','documentName','push','innerBoundaryIs','&quot;','replace','380JaYnWv','indexOf','[object\x20Object]','length','href','marker-color','54128wndnCP','FeatureCollection','20664LABboc','4KNkyLY','timestamp','valid','slice','stroke','call','marker-size','PolyStyle','<Data\x20name\x20=\x22','fill','ExtendedData','stringify','yunits','stroke-width','join','hotSpot','any','Document','fill-opacity','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>','MultiPolygon','type','fraction','isPoint','http://www.opengis.net/kml/2.2','Point','1764084FwmFyd','documentDescription','stroke-opacity','LineString','GeometryCollection','geometries','MultiGeometry','isLine','28872gvBluJ','color','kml','LineStyle','&lt;','name','&gt;','styleUrl','value','number','keys','toString','width','LinearRing','ff555555'];a5_0x3353=function(){return _0x438dc2;};return a5_0x3353();}
1
+ const a5_0x102e62=a5_0x2729;(function(_0x2ecfb5,_0x20978f){const _0x2566f3=a5_0x2729,_0x2dcceb=_0x2ecfb5();while(!![]){try{const _0xe48472=parseInt(_0x2566f3(0x1e4))/0x1*(-parseInt(_0x2566f3(0x1d5))/0x2)+parseInt(_0x2566f3(0x1c0))/0x3+parseInt(_0x2566f3(0x1e2))/0x4*(parseInt(_0x2566f3(0x201))/0x5)+-parseInt(_0x2566f3(0x1c6))/0x6*(parseInt(_0x2566f3(0x1dc))/0x7)+parseInt(_0x2566f3(0x1f0))/0x8*(parseInt(_0x2566f3(0x1fa))/0x9)+-parseInt(_0x2566f3(0x1cd))/0xa+-parseInt(_0x2566f3(0x1f4))/0xb;if(_0xe48472===_0x20978f)break;else _0x2dcceb['push'](_0x2dcceb['shift']());}catch(_0x37c6dc){_0x2dcceb['push'](_0x2dcceb['shift']());}}}(a5_0x733f,0x8f7dc));function a5_0x2729(_0x1a33f3,_0x585497){const _0x733f68=a5_0x733f();return a5_0x2729=function(_0x272947,_0x30ea47){_0x272947=_0x272947-0x1b0;let _0x1cb6ea=_0x733f68[_0x272947];return _0x1cb6ea;},a5_0x2729(_0x1a33f3,_0x585497);}export function geoJSONToKml(_0x3c1ab0,_0x3d571e){const _0x16cd1f=a5_0x2729;return _0x3d571e=_0x3d571e||{'documentName':undefined,'documentDescription':undefined,'name':'name','description':'description','simplestyle':![],'timestamp':_0x16cd1f(0x1ef)},_0x16cd1f(0x1b4)+tag(_0x16cd1f(0x1b6),tag(_0x16cd1f(0x1ec),documentName(_0x3d571e)+documentDescription(_0x3d571e)+root(_0x3c1ab0,_0x3d571e)),[[_0x16cd1f(0x1df),_0x16cd1f(0x1f2)]]);}function feature(_0x19c1c1,_0x2bf266){return function(_0x19095c){const _0x1bf27b=a5_0x2729;if(!_0x19095c[_0x1bf27b(0x1ea)]||!geometry[_0x1bf27b(0x1ed)](_0x19095c[_0x1bf27b(0x1cf)]))return'';const _0x43f910=geometry[_0x1bf27b(0x1c3)](_0x19095c['geometry']);if(!_0x43f910)return'';let _0x3c90e6='',_0x532496='';if(_0x19c1c1[_0x1bf27b(0x1eb)]){const _0x2f473f=hashStyle(_0x19095c[_0x1bf27b(0x1ea)]);if(_0x2f473f){if(geometry[_0x1bf27b(0x1cc)](_0x19095c[_0x1bf27b(0x1cf)])&&hasMarkerStyle(_0x19095c[_0x1bf27b(0x1ea)]))_0x2bf266[_0x1bf27b(0x1c1)](_0x2f473f)===-0x1&&(_0x3c90e6=markerStyle(_0x19095c['properties'],_0x2f473f),_0x2bf266['push'](_0x2f473f)),_0x532496=tag(_0x1bf27b(0x1e3),'#'+_0x2f473f);else(geometry['isPolygon'](_0x19095c['geometry'])||geometry['isLine'](_0x19095c[_0x1bf27b(0x1cf)]))&&hasPolygonAndLineStyle(_0x19095c[_0x1bf27b(0x1ea)])&&(_0x2bf266[_0x1bf27b(0x1c1)](_0x2f473f)===-0x1&&(_0x3c90e6=polygonAndLineStyle(_0x19095c[_0x1bf27b(0x1ea)],_0x2f473f),_0x2bf266['push'](_0x2f473f)),_0x532496=tag('styleUrl','#'+_0x2f473f));}}return _0x3c90e6+tag(_0x1bf27b(0x1bf),name(_0x19095c[_0x1bf27b(0x1ea)],_0x19c1c1)+description(_0x19095c['properties'],_0x19c1c1)+extendeddata(_0x19095c['properties'])+timestamp(_0x19095c[_0x1bf27b(0x1ea)],_0x19c1c1)+_0x43f910+_0x532496);};}function root(_0x254069,_0xf7cfcd){const _0x38f068=a5_0x2729;if(!_0x254069[_0x38f068(0x202)])return'';const _0x5f4094=[];switch(_0x254069['type']){case _0x38f068(0x1f6):if(!_0x254069[_0x38f068(0x204)])return'';return _0x254069[_0x38f068(0x204)][_0x38f068(0x1b7)](feature(_0xf7cfcd,_0x5f4094))[_0x38f068(0x1f8)]('');case _0x38f068(0x1ba):return feature(_0xf7cfcd,_0x5f4094)(_0x254069);default:return feature(_0xf7cfcd,_0x5f4094)({'type':_0x38f068(0x1ba),'geometry':_0x254069,'properties':{}});}}function documentName(_0x102ca2){const _0x2b54ae=a5_0x2729;return _0x102ca2[_0x2b54ae(0x1f5)]!==undefined?tag(_0x2b54ae(0x20a),_0x102ca2[_0x2b54ae(0x1f5)]):'';}function documentDescription(_0x344a00){const _0x5e87e2=a5_0x2729;return _0x344a00[_0x5e87e2(0x209)]!==undefined?tag(_0x5e87e2(0x1de),_0x344a00['documentDescription']):'';}function name(_0x40c3fe,_0x48ae3b){const _0x122db4=a5_0x2729;return _0x40c3fe[_0x48ae3b[_0x122db4(0x20a)]]?tag(_0x122db4(0x20a),encode(_0x40c3fe[_0x48ae3b[_0x122db4(0x20a)]])):'';}function description(_0x4282e3,_0x3f892e){const _0x4334fa=a5_0x2729;return _0x4282e3[_0x3f892e[_0x4334fa(0x1de)]]?tag(_0x4334fa(0x1de),encode(_0x4282e3[_0x3f892e[_0x4334fa(0x1de)]])):'';}function timestamp(_0x5d12cf,_0x4c27f5){const _0x576ba2=a5_0x2729;return _0x5d12cf[_0x4c27f5[_0x576ba2(0x1ef)]]?tag(_0x576ba2(0x1ee),tag(_0x576ba2(0x1db),encode(_0x5d12cf[_0x4c27f5['timestamp']]))):'';}function a5_0x733f(){const _0x44fb65=['stroke-width','&gt;','hotSpot','number','when','7JmLtIa','<Data\x20name\x20=\x22','description','xmlns','MultiPolygon','toLowerCase','40804TtTIxv','styleUrl','58639rfosPq','keys','color','Style','&lt;','isArray','properties','simplestyle','Document','valid','TimeStamp','timestamp','82480sVOBRM','fill-opacity','http://www.opengis.net/kml/2.2','&apos;','3941267yrrHvr','documentName','FeatureCollection','innerBoundaryIs','join','geometries','990ULauma','push','MultiPoint','xunits','every','call','MultiGeometry','135BXImPX','type','ff555555','features','marker-symbol','marker-color','marker-size','Icon','documentDescription','name','fill','coordinates','LineString','\x22><value>','href','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>','&quot;','kml','map','string','LineStyle','Feature','outerBoundaryIs','Point','stroke','&amp;','Placemark','2512065KrdDgV','indexOf','LinearRing','any','replace','value','2581062OUwmyP','ExtendedData','substr','stringify','</value></Data>','Polygon','isPoint','4601950xYeloR','stroke-opacity','geometry','MultiLineString','fraction','length','toString','slice','14AmRTdg','([&\x22<>\x27])'];a5_0x733f=function(){return _0x44fb65;};return a5_0x733f();}const geometry={'Point':function(_0x1d6683){const _0x57c571=a5_0x2729;return tag(_0x57c571(0x1bc),tag(_0x57c571(0x1b0),_0x1d6683[_0x57c571(0x1b0)]['join'](',')));},'LineString':function(_0x1a96a1){const _0x190171=a5_0x2729;return tag(_0x190171(0x1b1),tag(_0x190171(0x1b0),linearring(_0x1a96a1['coordinates'])));},'Polygon':function(_0x27d37d){const _0x1d3209=a5_0x2729;if(!_0x27d37d[_0x1d3209(0x1b0)][_0x1d3209(0x1d2)])return'';const _0x579e5f=_0x27d37d[_0x1d3209(0x1b0)][0x0],_0xdcae89=_0x27d37d[_0x1d3209(0x1b0)][_0x1d3209(0x1d4)](0x1),_0x3f5488=tag(_0x1d3209(0x1bb),tag(_0x1d3209(0x1c2),tag('coordinates',linearring(_0x579e5f)))),_0x5de20c=_0xdcae89[_0x1d3209(0x1b7)](function(_0x293dcd){const _0xb64c54=_0x1d3209;return tag(_0xb64c54(0x1f7),tag('LinearRing',tag(_0xb64c54(0x1b0),linearring(_0x293dcd))));})[_0x1d3209(0x1f8)]('');return tag(_0x1d3209(0x1cb),_0x3f5488+_0x5de20c);},'MultiPoint':function(_0x160dd7){const _0x11f2d8=a5_0x2729;if(!_0x160dd7[_0x11f2d8(0x1b0)][_0x11f2d8(0x1d2)])return'';return tag('MultiGeometry',_0x160dd7[_0x11f2d8(0x1b0)][_0x11f2d8(0x1b7)](function(_0x353a5a){const _0x1d8cdb=_0x11f2d8;return geometry[_0x1d8cdb(0x1bc)]({'coordinates':_0x353a5a});})[_0x11f2d8(0x1f8)](''));},'MultiPolygon':function(_0x5a3c78){const _0x3c3472=a5_0x2729;if(!_0x5a3c78[_0x3c3472(0x1b0)][_0x3c3472(0x1d2)])return'';return tag(_0x3c3472(0x200),_0x5a3c78[_0x3c3472(0x1b0)][_0x3c3472(0x1b7)](function(_0x56308f){const _0x497739=_0x3c3472;return geometry[_0x497739(0x1cb)]({'coordinates':_0x56308f});})[_0x3c3472(0x1f8)](''));},'MultiLineString':function(_0x4d7a9b){const _0x3902d2=a5_0x2729;if(!_0x4d7a9b['coordinates'][_0x3902d2(0x1d2)])return'';return tag(_0x3902d2(0x200),_0x4d7a9b['coordinates']['map'](function(_0x226b15){const _0x2dfc22=_0x3902d2;return geometry[_0x2dfc22(0x1b1)]({'coordinates':_0x226b15});})[_0x3902d2(0x1f8)](''));},'GeometryCollection':function(_0x1863b5){const _0x40dc9a=a5_0x2729;return tag(_0x40dc9a(0x200),_0x1863b5[_0x40dc9a(0x1f9)][_0x40dc9a(0x1b7)](geometry['any'])[_0x40dc9a(0x1f8)](''));},'valid':function(_0x22c0e7){const _0x5c9a2d=a5_0x2729;return _0x22c0e7&&_0x22c0e7[_0x5c9a2d(0x202)]&&(_0x22c0e7['coordinates']||_0x22c0e7[_0x5c9a2d(0x202)]==='GeometryCollection'&&_0x22c0e7[_0x5c9a2d(0x1f9)]&&_0x22c0e7['geometries'][_0x5c9a2d(0x1fe)](geometry['valid']));},'any':function(_0x4b30e5){const _0x3fec40=a5_0x2729;return geometry[_0x4b30e5[_0x3fec40(0x202)]]?geometry[_0x4b30e5[_0x3fec40(0x202)]](_0x4b30e5):'';},'isPoint':function(_0x4b344e){const _0x4204ea=a5_0x2729;return _0x4b344e['type']===_0x4204ea(0x1bc)||_0x4b344e['type']===_0x4204ea(0x1fc);},'isPolygon':function(_0x41d5ff){const _0x3850a3=a5_0x2729;return _0x41d5ff[_0x3850a3(0x202)]===_0x3850a3(0x1cb)||_0x41d5ff['type']===_0x3850a3(0x1e0);},'isLine':function(_0x2f6bb7){const _0xa268f8=a5_0x2729;return _0x2f6bb7['type']===_0xa268f8(0x1b1)||_0x2f6bb7[_0xa268f8(0x202)]===_0xa268f8(0x1d0);}};function linearring(_0x8fafea){const _0x41bc4a=a5_0x2729;return _0x8fafea[_0x41bc4a(0x1b7)](function(_0x13acdd){const _0x292ba3=_0x41bc4a;return _0x13acdd[_0x292ba3(0x1f8)](',');})[_0x41bc4a(0x1f8)]('\x20');}function extendeddata(_0x51c4a9){const _0x251964=a5_0x2729,_0x412382=[];for(const _0x4ca986 in _0x51c4a9){const _0x37b872=_0x51c4a9[_0x4ca986];isObject(_0x37b872)?_0x412382[_0x251964(0x1fb)](_0x251964(0x1dd)+_0x4ca986+_0x251964(0x1b2)+JSON[_0x251964(0x1c9)](_0x37b872)+'</value></Data>'):_0x412382[_0x251964(0x1fb)](_0x251964(0x1dd)+_0x4ca986+_0x251964(0x1b2)+_0x37b872+_0x251964(0x1ca));}return tag(_0x251964(0x1c7),_0x412382[_0x251964(0x1f8)](''));}function data(_0x48303b){const _0x53d7e6=a5_0x2729;return tag('Data',tag(_0x53d7e6(0x1c5),encode(_0x48303b[0x1])),[['name',encode(_0x48303b[0x0])]]);}function hasMarkerStyle(_0x1825c8){const _0x27e4dc=a5_0x2729;return!!(_0x1825c8['marker-size']||_0x1825c8[_0x27e4dc(0x205)]||_0x1825c8[_0x27e4dc(0x206)]);}function markerStyle(_0x57cdf6,_0x3a2fa7){const _0x3cad00=a5_0x2729;return tag(_0x3cad00(0x1e7),tag('IconStyle',tag(_0x3cad00(0x208),tag(_0x3cad00(0x1b3),iconUrl(_0x57cdf6))))+iconSize(_0x57cdf6),[['id',_0x3a2fa7]]);}function iconUrl(_0x12c256){const _0x37acd7=a5_0x2729;return _0x12c256[_0x37acd7(0x205)];}function iconSize(_0xa6263e){const _0x15e132=a5_0x2729;return tag(_0x15e132(0x1d9),'',[[_0x15e132(0x1fd),_0x15e132(0x1d1)],['yunits',_0x15e132(0x1d1)],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x5dfdf8){for(const _0x4c50ca in _0x5dfdf8){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x4c50ca])return!![];}}function polygonAndLineStyle(_0x16890f,_0x5c0102){const _0x3f1596=a5_0x2729,_0x4a9a33=tag(_0x3f1596(0x1b9),[tag(_0x3f1596(0x1e6),hexToKmlColor(_0x16890f[_0x3f1596(0x1bd)],_0x16890f['stroke-opacity'])||_0x3f1596(0x203))+tag('width',_0x16890f[_0x3f1596(0x1d7)]===undefined?0x2:_0x16890f[_0x3f1596(0x1d7)])]);let _0x2490b5='';return(_0x16890f[_0x3f1596(0x20b)]||_0x16890f[_0x3f1596(0x1f1)])&&(_0x2490b5=tag('PolyStyle',[tag(_0x3f1596(0x1e6),hexToKmlColor(_0x16890f['fill'],_0x16890f[_0x3f1596(0x1f1)])||'88555555')])),tag(_0x3f1596(0x1e7),_0x4a9a33+_0x2490b5,[['id',_0x5c0102]]);}function hashStyle(_0x424d2d){const _0x30932a=a5_0x2729;let _0x491b98='';return _0x424d2d[_0x30932a(0x205)]&&(_0x491b98=_0x491b98+'ms'+_0x424d2d[_0x30932a(0x205)]),_0x424d2d[_0x30932a(0x206)]&&(_0x491b98=_0x491b98+'mc'+_0x424d2d[_0x30932a(0x206)][_0x30932a(0x1c4)]('#','')),_0x424d2d[_0x30932a(0x207)]&&(_0x491b98=_0x491b98+'ms'+_0x424d2d['marker-size']),_0x424d2d['stroke']&&(_0x491b98=_0x491b98+'s'+_0x424d2d[_0x30932a(0x1bd)][_0x30932a(0x1c4)]('#','')),_0x424d2d[_0x30932a(0x1d7)]&&(_0x491b98=_0x491b98+'sw'+_0x424d2d['stroke-width'][_0x30932a(0x1d3)]()[_0x30932a(0x1c4)]('.','')),_0x424d2d[_0x30932a(0x1ce)]&&(_0x491b98=_0x491b98+'mo'+_0x424d2d[_0x30932a(0x1ce)][_0x30932a(0x1d3)]()['replace']('.','')),_0x424d2d[_0x30932a(0x20b)]&&(_0x491b98=_0x491b98+'f'+_0x424d2d[_0x30932a(0x20b)]['replace']('#','')),_0x424d2d[_0x30932a(0x1f1)]&&(_0x491b98=_0x491b98+'fo'+_0x424d2d['fill-opacity'][_0x30932a(0x1d3)]()[_0x30932a(0x1c4)]('.','')),_0x491b98;}function hexToKmlColor(_0x373db2,_0x484c2f){const _0x335407=a5_0x2729;if(typeof _0x373db2!==_0x335407(0x1b8))return'';_0x373db2=_0x373db2[_0x335407(0x1c4)]('#','')[_0x335407(0x1e1)]();if(_0x373db2[_0x335407(0x1d2)]===0x3)_0x373db2=_0x373db2[0x0]+_0x373db2[0x0]+_0x373db2[0x1]+_0x373db2[0x1]+_0x373db2[0x2]+_0x373db2[0x2];else{if(_0x373db2[_0x335407(0x1d2)]!==0x6)return'';}const _0x32290b=_0x373db2[0x0]+_0x373db2[0x1],_0x3d1832=_0x373db2[0x2]+_0x373db2[0x3],_0x48e7f0=_0x373db2[0x4]+_0x373db2[0x5];let _0x58f9d4='ff';return typeof _0x484c2f===_0x335407(0x1da)&&_0x484c2f>=0x0&&_0x484c2f<=0x1&&(_0x58f9d4=(_0x484c2f*0xff)[_0x335407(0x1d3)](0x10),_0x58f9d4['indexOf']('.')>-0x1&&(_0x58f9d4=_0x58f9d4[_0x335407(0x1c8)](0x0,_0x58f9d4[_0x335407(0x1c1)]('.'))),_0x58f9d4[_0x335407(0x1d2)]<0x2&&(_0x58f9d4='0'+_0x58f9d4)),_0x58f9d4+_0x48e7f0+_0x3d1832+_0x32290b;}export function isObject(_0x28eb24){const _0x216256=a5_0x2729;return Object['prototype'][_0x216256(0x1d3)][_0x216256(0x1ff)](_0x28eb24)==='[object\x20Object]';}function encode(_0x43b2f9){const _0x599d20=a5_0x2729;if(!_0x43b2f9)return'';return _0x43b2f9['toString']()['replace'](/&/g,_0x599d20(0x1be))[_0x599d20(0x1c4)](/</g,_0x599d20(0x1e8))[_0x599d20(0x1c4)](/>/g,_0x599d20(0x1d8))[_0x599d20(0x1c4)](/"/g,_0x599d20(0x1b5));}function attr(_0x1c6bb9){const _0x4f8161=a5_0x2729;if(!Object[_0x4f8161(0x1e5)](_0x1c6bb9)[_0x4f8161(0x1d2)])return'';return'\x20'+Object['keys'](_0x1c6bb9)[_0x4f8161(0x1b7)](function(_0x420d54){return _0x420d54+'=\x22'+escape(_0x1c6bb9[_0x420d54])+'\x22';})['join']('\x20');}const escape_map={'>':'&gt;','<':a5_0x102e62(0x1e8),'\x27':a5_0x102e62(0x1f3),'\x22':a5_0x102e62(0x1b5),'&':a5_0x102e62(0x1be)};function escape(_0x4cb34c,_0x132c56){const _0x510a7b=a5_0x102e62;if(_0x4cb34c===null||_0x4cb34c===undefined)return;_0x132c56=(_0x132c56||'')[_0x510a7b(0x1c4)](/[^&"<>\']/g,'');const _0x2f12d3=_0x510a7b(0x1d6)[_0x510a7b(0x1c4)](new RegExp('['+_0x132c56+']','g'),'');return _0x4cb34c[_0x510a7b(0x1c4)](new RegExp(_0x2f12d3,'g'),function(_0x4774d3,_0x394648){return escape_map[_0x394648];});}function tag(_0x5b1a99,_0x20b0b9,_0x594cae){const _0x4e6d63=a5_0x102e62;return(Array[_0x4e6d63(0x1e9)](_0x20b0b9)||typeof _0x20b0b9===_0x4e6d63(0x1b8))&&(_0x594cae=_0x20b0b9,_0x20b0b9={}),Array[_0x4e6d63(0x1e9)](_0x594cae)&&(_0x594cae='\x0a'+_0x594cae[_0x4e6d63(0x1b7)](function(_0x3405e9){return'\x20\x20'+_0x3405e9;})[_0x4e6d63(0x1f8)]('\x0a')+'\x0a'),'<'+_0x5b1a99+attr(_0x20b0b9)+'>'+_0x594cae+'</'+_0x5b1a99+'>';}
@@ -1 +1 @@
1
- const a6_0x4a2de7=a6_0x1e87;(function(_0x2f30fb,_0x35ff30){const _0x16dd04=a6_0x1e87,_0x7314de=_0x2f30fb();while(!![]){try{const _0x1d21ed=-parseInt(_0x16dd04(0x95))/0x1*(-parseInt(_0x16dd04(0x67))/0x2)+parseInt(_0x16dd04(0x91))/0x3*(-parseInt(_0x16dd04(0x66))/0x4)+-parseInt(_0x16dd04(0x9c))/0x5*(-parseInt(_0x16dd04(0x7d))/0x6)+parseInt(_0x16dd04(0x6f))/0x7*(-parseInt(_0x16dd04(0x94))/0x8)+parseInt(_0x16dd04(0x69))/0x9+-parseInt(_0x16dd04(0x81))/0xa+-parseInt(_0x16dd04(0x73))/0xb*(-parseInt(_0x16dd04(0x7f))/0xc);if(_0x1d21ed===_0x35ff30)break;else _0x7314de['push'](_0x7314de['shift']());}catch(_0x936e10){_0x7314de['push'](_0x7314de['shift']());}}}(a6_0x327d,0xd92a0));import a6_0x3f2d3d from'jszip';import{kmlToGeoJSON}from'./kmlToGeoJSON';import{geoJSONToKml}from'./geoJSONToKml';export function toKml(_0x5ae993,_0x55b693){const _0x47653f=a6_0x1e87;return _0x5ae993[_0x47653f(0x9b)]?_0x5ae993[_0x47653f(0x9b)][_0x47653f(0x97)](_0x173d03=>{updateFeatureByStyle(_0x173d03);}):updateFeatureByStyle(_0x5ae993),geoJSONToKml(_0x5ae993,_0x55b693);}function updateFeatureByStyle(_0x5a0042){const _0x275f16=a6_0x1e87;var _0x23fc6b,_0x1527bd,_0x339e8d,_0x31d2bb,_0x42193a,_0x483499;if(!_0x5a0042['properties'])return;const _0x3a0d39=_0x5a0042[_0x275f16(0x82)][_0x275f16(0x78)];if(_0x3a0d39){if(_0x3a0d39[_0x275f16(0x9a)]){_0x5a0042[_0x275f16(0x82)][_0x275f16(0x72)]=_0x3a0d39[_0x275f16(0x9a)];_0x3a0d39[_0x275f16(0x74)]&&(_0x5a0042['properties'][_0x275f16(0x71)]=_0x3a0d39['outlineColor']);return;}_0x3a0d39[_0x275f16(0x9e)]&&(_0x5a0042[_0x275f16(0x82)]['fill']=_0x3a0d39['color'],_0x3a0d39['opacity']&&(_0x5a0042['properties'][_0x275f16(0x86)]=_0x3a0d39[_0x275f16(0x7a)])),_0x3a0d39[_0x275f16(0x74)]&&(_0x5a0042['properties']['stroke']=_0x3a0d39['outlineColor'],_0x5a0042[_0x275f16(0x82)][_0x275f16(0x9f)]=(_0x23fc6b=_0x3a0d39[_0x275f16(0x8a)])!==null&&_0x23fc6b!==void 0x0?_0x23fc6b:0x1,_0x5a0042['properties'][_0x275f16(0x96)]=(_0x339e8d=(_0x1527bd=_0x3a0d39['outlineOpacity'])!==null&&_0x1527bd!==void 0x0?_0x1527bd:_0x3a0d39['opacity'])!==null&&_0x339e8d!==void 0x0?_0x339e8d:0x1),_0x3a0d39[_0x275f16(0x8d)]&&(_0x3a0d39['html']=HTMLEncode(_0x3a0d39[_0x275f16(0x8d)])),_0x3a0d39[_0x275f16(0x6e)]&&((_0x42193a=(_0x31d2bb=_0x5a0042['geometry'])===null||_0x31d2bb===void 0x0?void 0x0:_0x31d2bb['coordinates'])===null||_0x42193a===void 0x0?void 0x0:_0x42193a['length'])>0x0&&_0x5a0042['geometry'][_0x275f16(0x80)][_0x275f16(0x8f)](_0x5a0042[_0x275f16(0x99)][_0x275f16(0x80)][0x0]);}const _0x46a0f6=(_0x483499=_0x5a0042===null||_0x5a0042===void 0x0?void 0x0:_0x5a0042[_0x275f16(0x82)])===null||_0x483499===void 0x0?void 0x0:_0x483499[_0x275f16(0x93)];if(_0x46a0f6===_0x275f16(0x9d)){const _0x33665d=_0x5a0042[_0x275f16(0x99)][_0x275f16(0x80)][0x0];(_0x33665d===null||_0x33665d===void 0x0?void 0x0:_0x33665d[_0x275f16(0x75)])>0x2&&_0x33665d['push'](_0x33665d[0x0]);}else{if(_0x46a0f6===_0x275f16(0x6c)){const _0x546f93=_0x5a0042[_0x275f16(0x99)][_0x275f16(0x80)],_0x1a6afa=_0x546f93[0x0][0x0],_0x481f44=_0x546f93[0x1][0x0],_0x4c0b02=_0x546f93[0x0][0x1],_0x940886=_0x546f93[0x1][0x1];_0x5a0042[_0x275f16(0x99)]={'type':_0x275f16(0x87),'coordinates':[[[_0x1a6afa,_0x940886],[_0x1a6afa,_0x4c0b02],[_0x481f44,_0x4c0b02],[_0x481f44,_0x940886],[_0x1a6afa,_0x940886]]]};}}}const getDom=_0x345dd7=>new DOMParser()['parseFromString'](_0x345dd7,a6_0x4a2de7(0x6a)),getExtension=_0x10cc20=>_0x10cc20[a6_0x4a2de7(0x85)]('.')['pop'](),getKmlDom=_0x1cce50=>{const _0x53b324=a6_0x4a2de7,_0x23a79b=new a6_0x3f2d3d();return _0x23a79b[_0x53b324(0x8c)](_0x1cce50)['then'](_0x4ee6b2=>{const _0x2bab08=_0x53b324;let _0x77528d=null;return _0x4ee6b2[_0x2bab08(0x97)]((_0x2d7c97,_0x576669)=>{const _0x34396f=_0x2bab08;getExtension(_0x2d7c97)===_0x34396f(0x68)&&_0x77528d===null&&(_0x77528d=_0x576669[_0x34396f(0x7c)]('string')[_0x34396f(0x76)](getDom));}),_0x77528d;});};export function toGeoJSON(_0x30aa72,_0xa8f79d){const _0x17e275=a6_0x4a2de7;if(!_0x30aa72){console[_0x17e275(0x6d)]('toGeoJSON参数不能为空');return;}if(isString(_0x30aa72)){const _0x405798=getExtension(_0x30aa72);if(_0x405798===_0x17e275(0x68))return fetchXML(_0x30aa72,_0xa8f79d)[_0x17e275(0x76)](function(_0x1f8477){return kmlToGeoJSON(_0x1f8477);});else{if(_0x405798===_0x17e275(0x92))return fetchBlob(_0x30aa72,_0xa8f79d)[_0x17e275(0x76)](function(_0x32bbd3){return getKmlDom(_0x32bbd3);})[_0x17e275(0x76)](function(_0x3e136e){return kmlToGeoJSON(_0x3e136e);});else{const _0x4c7ba0=kmlToGeoJSON(getDom(_0x30aa72));return Promise[_0x17e275(0x70)](_0x4c7ba0);}}}else{if(_0x30aa72[_0x17e275(0x84)]){const _0x3ab15a=kmlToGeoJSON(_0x30aa72);return Promise[_0x17e275(0x70)](_0x3ab15a);}else{const _0xaab50b=_0x30aa72[_0x17e275(0x77)][_0x17e275(0x85)]('.')[_0x30aa72[_0x17e275(0x77)][_0x17e275(0x85)]('.')[_0x17e275(0x75)]-0x1]['toLowerCase']();return _0xaab50b===_0x17e275(0x68)?_0x30aa72[_0x17e275(0x98)]()['then'](_0x5350ac=>{return kmlToGeoJSON(getDom(_0x5350ac));}):getKmlDom(_0x30aa72)[_0x17e275(0x76)](function(_0x40ad50){return kmlToGeoJSON(_0x40ad50);});}}}function a6_0x327d(){const _0x22495c=['resolve','marker-color','marker-symbol','1706914IJkDAi','outlineColor','length','then','name','style','innerHTML','opacity','assign','async','234fVeNBX','textContent','24RWoJIL','coordinates','3117270UwRfBb','properties','createElement','getRootNode','split','fill-opacity','Polygon','innerText','constructor','outlineWidth','string','loadAsync','html','div','push','blob','12306lCTPGp','kmz','type','3559928wxNRJH','1nFRxhK','stroke-opacity','forEach','text','geometry','image','features','201115PhzZjX','polygon','color','stroke-width','1388jjSrYt','113426BdyMVT','kml','10204722jlyaPp','application/xml','GET','rectangle','warn','closure','7LoujWI'];a6_0x327d=function(){return _0x22495c;};return a6_0x327d();}function a6_0x1e87(_0x217c86,_0x6bad2e){const _0x327dd5=a6_0x327d();return a6_0x1e87=function(_0x1e8764,_0x42dda9){_0x1e8764=_0x1e8764-0x66;let _0x4df630=_0x327dd5[_0x1e8764];return _0x4df630;},a6_0x1e87(_0x217c86,_0x6bad2e);}function isString(_0x4ff175){const _0x1e1f1a=a6_0x4a2de7;return typeof _0x4ff175===_0x1e1f1a(0x8b)&&_0x4ff175[_0x1e1f1a(0x89)]===String;}function HTMLEncode(_0xcf841e){const _0x514c32=a6_0x4a2de7,_0x4a1d44=document[_0x514c32(0x83)](_0x514c32(0x8e));_0x4a1d44[_0x514c32(0x7e)]!=null?_0x4a1d44[_0x514c32(0x7e)]=_0xcf841e:_0x4a1d44[_0x514c32(0x88)]=_0xcf841e;const _0x333356=_0x4a1d44[_0x514c32(0x79)];return _0x333356;}function fetchXML(_0x58d714,_0x4147a4){const _0xb1c1e1=a6_0x4a2de7,_0x44d308=Object[_0xb1c1e1(0x7b)]({'method':_0xb1c1e1(0x6b),'headers':{'Content-Type':_0xb1c1e1(0x6a)}},_0x4147a4);return fetch(_0x58d714,_0x44d308)[_0xb1c1e1(0x76)](_0x58e278=>{return _0x58e278['text']();})[_0xb1c1e1(0x76)](_0x50f112=>{return getDom(_0x50f112);});}function fetchBlob(_0x5c3210,_0xcebc86){const _0x555988=a6_0x4a2de7,_0x139758=Object[_0x555988(0x7b)]({'method':'GET'},_0xcebc86);return fetch(_0x5c3210,_0x139758)[_0x555988(0x76)](_0x22f64e=>{const _0x206041=_0x555988;return _0x22f64e[_0x206041(0x90)]();});}
1
+ const a6_0x69b2f4=a6_0x5f44;(function(_0x5454f9,_0x4d2dd7){const _0x38b578=a6_0x5f44,_0x4e0433=_0x5454f9();while(!![]){try{const _0x2e2e5c=-parseInt(_0x38b578(0x1cb))/0x1+parseInt(_0x38b578(0x1eb))/0x2*(-parseInt(_0x38b578(0x1d7))/0x3)+-parseInt(_0x38b578(0x1ee))/0x4*(-parseInt(_0x38b578(0x1ce))/0x5)+parseInt(_0x38b578(0x1d3))/0x6+parseInt(_0x38b578(0x1e8))/0x7*(parseInt(_0x38b578(0x1e4))/0x8)+parseInt(_0x38b578(0x1f9))/0x9+-parseInt(_0x38b578(0x1e5))/0xa;if(_0x2e2e5c===_0x4d2dd7)break;else _0x4e0433['push'](_0x4e0433['shift']());}catch(_0x30d71a){_0x4e0433['push'](_0x4e0433['shift']());}}}(a6_0x4346,0x517dd));import a6_0x591734 from'jszip';import{kmlToGeoJSON}from'./kmlToGeoJSON';import{geoJSONToKml}from'./geoJSONToKml';export function toKml(_0x1fbff6,_0x2694e8){const _0x191733=a6_0x5f44;return _0x1fbff6['features']?_0x1fbff6['features'][_0x191733(0x1d2)](_0x2e9624=>{updateFeatureByStyle(_0x2e9624);}):updateFeatureByStyle(_0x1fbff6),geoJSONToKml(_0x1fbff6,_0x2694e8);}function updateFeatureByStyle(_0x2f017c){const _0x45dcf9=a6_0x5f44;var _0x35972d,_0x489ba2,_0x53d52c,_0x45aac0,_0x351d43,_0x392b4d;if(!_0x2f017c[_0x45dcf9(0x1f2)])return;const _0x5016da=_0x2f017c[_0x45dcf9(0x1f2)][_0x45dcf9(0x1fc)];if(_0x5016da){if(_0x5016da['image']){_0x2f017c[_0x45dcf9(0x1f2)][_0x45dcf9(0x1db)]=_0x5016da[_0x45dcf9(0x1d1)];_0x5016da[_0x45dcf9(0x1e1)]&&(_0x2f017c['properties']['marker-color']=_0x5016da[_0x45dcf9(0x1e1)]);return;}_0x5016da['color']&&(_0x2f017c[_0x45dcf9(0x1f2)][_0x45dcf9(0x1e0)]=_0x5016da[_0x45dcf9(0x1f6)],_0x5016da[_0x45dcf9(0x1e7)]&&(_0x2f017c['properties'][_0x45dcf9(0x1d9)]=_0x5016da[_0x45dcf9(0x1e7)])),_0x5016da['outlineColor']&&(_0x2f017c[_0x45dcf9(0x1f2)]['stroke']=_0x5016da[_0x45dcf9(0x1e1)],_0x2f017c[_0x45dcf9(0x1f2)][_0x45dcf9(0x1d4)]=(_0x35972d=_0x5016da[_0x45dcf9(0x1fb)])!==null&&_0x35972d!==void 0x0?_0x35972d:0x1,_0x2f017c[_0x45dcf9(0x1f2)][_0x45dcf9(0x1dd)]=(_0x53d52c=(_0x489ba2=_0x5016da['outlineOpacity'])!==null&&_0x489ba2!==void 0x0?_0x489ba2:_0x5016da[_0x45dcf9(0x1e7)])!==null&&_0x53d52c!==void 0x0?_0x53d52c:0x1),_0x5016da[_0x45dcf9(0x1e6)]&&(_0x5016da[_0x45dcf9(0x1e6)]=HTMLEncode(_0x5016da[_0x45dcf9(0x1e6)])),_0x5016da['closure']&&((_0x351d43=(_0x45aac0=_0x2f017c[_0x45dcf9(0x1cf)])===null||_0x45aac0===void 0x0?void 0x0:_0x45aac0[_0x45dcf9(0x1cd)])===null||_0x351d43===void 0x0?void 0x0:_0x351d43[_0x45dcf9(0x1ea)])>0x0&&_0x2f017c[_0x45dcf9(0x1cf)][_0x45dcf9(0x1cd)]['push'](_0x2f017c[_0x45dcf9(0x1cf)][_0x45dcf9(0x1cd)][0x0]);}const _0x3f51eb=(_0x392b4d=_0x2f017c===null||_0x2f017c===void 0x0?void 0x0:_0x2f017c['properties'])===null||_0x392b4d===void 0x0?void 0x0:_0x392b4d['type'];if(_0x3f51eb===_0x45dcf9(0x1dc)){const _0x3125d4=_0x2f017c['geometry'][_0x45dcf9(0x1cd)][0x0];(_0x3125d4===null||_0x3125d4===void 0x0?void 0x0:_0x3125d4[_0x45dcf9(0x1ea)])>0x2&&_0x3125d4[_0x45dcf9(0x1d6)](_0x3125d4[0x0]);}else{if(_0x3f51eb===_0x45dcf9(0x1ef)){const _0xe7963c=_0x2f017c['geometry'][_0x45dcf9(0x1cd)],_0x212239=_0xe7963c[0x0][0x0],_0x29f0c0=_0xe7963c[0x1][0x0],_0x5e2b4c=_0xe7963c[0x0][0x1],_0x24f4fd=_0xe7963c[0x1][0x1];_0x2f017c['geometry']={'type':_0x45dcf9(0x1f7),'coordinates':[[[_0x212239,_0x24f4fd],[_0x212239,_0x5e2b4c],[_0x29f0c0,_0x5e2b4c],[_0x29f0c0,_0x24f4fd],[_0x212239,_0x24f4fd]]]};}}}const getDom=_0x50baa8=>new DOMParser()['parseFromString'](_0x50baa8,'application/xml'),getExtension=_0x155544=>_0x155544[a6_0x69b2f4(0x1f3)]('.')[a6_0x69b2f4(0x1f4)](),getKmlDom=_0xd4d6f3=>{const _0x22bf27=new a6_0x591734();return _0x22bf27['loadAsync'](_0xd4d6f3)['then'](_0x34c0c8=>{let _0x3566ac=null;return _0x34c0c8['forEach']((_0x157648,_0x718127)=>{const _0x5bc27d=a6_0x5f44;getExtension(_0x157648)==='kml'&&_0x3566ac===null&&(_0x3566ac=_0x718127[_0x5bc27d(0x1ec)](_0x5bc27d(0x1e2))[_0x5bc27d(0x1df)](getDom));}),_0x3566ac;});};export function toGeoJSON(_0x5bcb60,_0x558f12){const _0x3ebf9f=a6_0x69b2f4;if(!_0x5bcb60){console[_0x3ebf9f(0x1d5)](_0x3ebf9f(0x1fd));return;}if(isString(_0x5bcb60)){const _0x49bb3a=getExtension(_0x5bcb60);if(_0x49bb3a==='kml')return fetchXML(_0x5bcb60,_0x558f12)[_0x3ebf9f(0x1df)](function(_0x3d13fc){return kmlToGeoJSON(_0x3d13fc);});else{if(_0x49bb3a===_0x3ebf9f(0x1f5))return fetchBlob(_0x5bcb60,_0x558f12)[_0x3ebf9f(0x1df)](function(_0x16a548){return getKmlDom(_0x16a548);})[_0x3ebf9f(0x1df)](function(_0x55702a){return kmlToGeoJSON(_0x55702a);});else{const _0x5196ba=kmlToGeoJSON(getDom(_0x5bcb60));return Promise[_0x3ebf9f(0x1e9)](_0x5196ba);}}}else{if(_0x5bcb60[_0x3ebf9f(0x1de)]){const _0x513ca1=kmlToGeoJSON(_0x5bcb60);return Promise[_0x3ebf9f(0x1e9)](_0x513ca1);}else{const _0x102f1a=_0x5bcb60[_0x3ebf9f(0x1d0)][_0x3ebf9f(0x1f3)]('.')[_0x5bcb60[_0x3ebf9f(0x1d0)][_0x3ebf9f(0x1f3)]('.')[_0x3ebf9f(0x1ea)]-0x1][_0x3ebf9f(0x1cc)]();return _0x102f1a===_0x3ebf9f(0x1ca)?_0x5bcb60[_0x3ebf9f(0x1f0)]()['then'](_0x473a7a=>{return kmlToGeoJSON(getDom(_0x473a7a));}):getKmlDom(_0x5bcb60)[_0x3ebf9f(0x1df)](function(_0x3c30ad){return kmlToGeoJSON(_0x3c30ad);});}}}function a6_0x5f44(_0x4c44f2,_0x1ea490){const _0x434686=a6_0x4346();return a6_0x5f44=function(_0x5f44e5,_0x299734){_0x5f44e5=_0x5f44e5-0x1ca;let _0x13813e=_0x434686[_0x5f44e5];return _0x13813e;},a6_0x5f44(_0x4c44f2,_0x1ea490);}function isString(_0xb0b994){const _0x1c2790=a6_0x69b2f4;return typeof _0xb0b994===_0x1c2790(0x1e2)&&_0xb0b994[_0x1c2790(0x1fa)]===String;}function HTMLEncode(_0x4b1dd7){const _0x45868c=a6_0x69b2f4,_0xcf3749=document[_0x45868c(0x1da)]('div');_0xcf3749['textContent']!=null?_0xcf3749['textContent']=_0x4b1dd7:_0xcf3749[_0x45868c(0x1d8)]=_0x4b1dd7;const _0x5395b1=_0xcf3749[_0x45868c(0x1fe)];return _0x5395b1;}function fetchXML(_0x2cc007,_0x4a8d0f){const _0x5143b2=a6_0x69b2f4,_0xf54326=Object[_0x5143b2(0x1e3)]({'method':_0x5143b2(0x1f8),'headers':{'Content-Type':_0x5143b2(0x1ed)}},_0x4a8d0f);return fetch(_0x2cc007,_0xf54326)[_0x5143b2(0x1df)](_0x134217=>{const _0x5f404c=_0x5143b2;return _0x134217[_0x5f404c(0x1f0)]();})[_0x5143b2(0x1df)](_0xf79b3a=>{return getDom(_0xf79b3a);});}function a6_0x4346(){const _0x62a826=['async','application/xml','1684kOAFNb','rectangle','text','blob','properties','split','pop','kmz','color','Polygon','GET','4365675hMlIDx','constructor','outlineWidth','style','toGeoJSON参数不能为空','innerHTML','kml','202120MotQFN','toLowerCase','coordinates','4285utgKrM','geometry','name','image','forEach','3120480EfcDij','stroke-width','warn','push','38847pWpBHq','innerText','fill-opacity','createElement','marker-symbol','polygon','stroke-opacity','getRootNode','then','fill','outlineColor','string','assign','8BhwZpw','10096910UjnJqf','html','opacity','4611327gDfYpQ','resolve','length','74IPEzZg'];a6_0x4346=function(){return _0x62a826;};return a6_0x4346();}function fetchBlob(_0x31feda,_0x3e33e6){const _0x47e5ef=a6_0x69b2f4,_0x518983=Object[_0x47e5ef(0x1e3)]({'method':'GET'},_0x3e33e6);return fetch(_0x31feda,_0x518983)[_0x47e5ef(0x1df)](_0x56fd1d=>{const _0x189f79=_0x47e5ef;return _0x56fd1d[_0x189f79(0x1f1)]();});}
@@ -1 +1 @@
1
- const a7_0x5a3331=a7_0x205c;(function(_0x236b7e,_0x1db0e9){const _0x3576f6=a7_0x205c,_0xd74b2a=_0x236b7e();while(!![]){try{const _0x2f537b=parseInt(_0x3576f6(0x1ad))/0x1+parseInt(_0x3576f6(0x1aa))/0x2+-parseInt(_0x3576f6(0x194))/0x3*(-parseInt(_0x3576f6(0x1ac))/0x4)+parseInt(_0x3576f6(0x196))/0x5*(-parseInt(_0x3576f6(0x175))/0x6)+-parseInt(_0x3576f6(0x19a))/0x7+-parseInt(_0x3576f6(0x1a3))/0x8+parseInt(_0x3576f6(0x195))/0x9;if(_0x2f537b===_0x1db0e9)break;else _0xd74b2a['push'](_0xd74b2a['shift']());}catch(_0x5cd4a2){_0xd74b2a['push'](_0xd74b2a['shift']());}}}(a7_0x17c0,0xeff7f));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function okhash(_0x3a200c){const _0x19d8ca=a7_0x205c;if(!_0x3a200c||!_0x3a200c[_0x19d8ca(0x16f)])return 0x0;for(var _0x15abcd=0x0,_0x379e40=0x0;_0x15abcd<_0x3a200c[_0x19d8ca(0x16f)];_0x15abcd++){_0x379e40=(_0x379e40<<0x5)-_0x379e40+_0x3a200c['charCodeAt'](_0x15abcd)|0x0;}return _0x379e40;}function get(_0x20a270,_0x58fb58){const _0x20ccb0=a7_0x205c;return _0x20a270[_0x20ccb0(0x19c)](_0x58fb58);}function a7_0x17c0(){const _0x46e42d=['395907BYRcbO','Track','fill-opacity','xmldom','length','stroke-width','PolyStyle','ExtendedData','Placemark','begin','36474JYeLLj','fill','geoms','color','split','styleMapHash','name','styleUrl','LineString','MultiTrack','browser','timespan','Pair','when','coordinates','timestamp','getAttribute','replace','gx:MultiTrack','coordTimes','XMLSerializer','undefined','features','xml','SimpleData','times','outline','Point','LinearRing','normalize','TimeSpan','1987191WBhqRM','8831061PjcApS','1080FlAZyA','visibility','stroke','object','2682771jMYkAz','StyleMap','getElementsByTagName','MultiGeometry','parse','Data','stroke-opacity','substr','description','10591288pWnqcR','normal','styleHash','toString','Polygon','push','coords','3927212ERdeIq','Style','4kNRVfy'];a7_0x17c0=function(){return _0x46e42d;};return a7_0x17c0();}function attr(_0x48bf70,_0x13243f){const _0xbe2856=a7_0x205c;return _0x48bf70[_0xbe2856(0x185)](_0x13243f);}function attrf(_0x57a2eb,_0x12b944){return parseFloat(attr(_0x57a2eb,_0x12b944));}function get1(_0x123885,_0x447cf9){const _0x3c6d01=a7_0x205c,_0x5ae5fc=get(_0x123885,_0x447cf9);return _0x5ae5fc[_0x3c6d01(0x16f)]?_0x5ae5fc[0x0]:null;}function norm(_0x1e3bc4){const _0x584159=a7_0x205c;return _0x1e3bc4['normalize']&&_0x1e3bc4[_0x584159(0x192)](),_0x1e3bc4;}function a7_0x205c(_0x572896,_0xe33927){const _0x17c012=a7_0x17c0();return a7_0x205c=function(_0x205c3e,_0x43e855){_0x205c3e=_0x205c3e-0x16c;let _0x37be77=_0x17c012[_0x205c3e];return _0x37be77;},a7_0x205c(_0x572896,_0xe33927);}function numarray(_0x346fc0){const _0x1328bb=a7_0x205c;for(var _0x5f492e=0x0,_0x3c323a=[];_0x5f492e<_0x346fc0[_0x1328bb(0x16f)];_0x5f492e++){_0x3c323a[_0x5f492e]=parseFloat(_0x346fc0[_0x5f492e]);}return _0x3c323a;}function nodeVal(_0x2953c6){return _0x2953c6&&norm(_0x2953c6),_0x2953c6&&_0x2953c6['textContent']||'';}function coord1(_0x1136ec){const _0x10d5d6=a7_0x205c;return numarray(_0x1136ec[_0x10d5d6(0x186)](removeSpace,'')[_0x10d5d6(0x179)](','));}function coord(_0x1e1a2e){const _0x114e72=a7_0x205c,_0x56db28=_0x1e1a2e[_0x114e72(0x186)](trimSpace,'')[_0x114e72(0x179)](splitSpace),_0x339e11=[];for(let _0x28e1b4=0x0;_0x28e1b4<_0x56db28[_0x114e72(0x16f)];_0x28e1b4++){_0x339e11[_0x114e72(0x1a8)](coord1(_0x56db28[_0x28e1b4]));}return _0x339e11;}function fc(){return{'type':'FeatureCollection','features':[]};}let serializer;if(typeof XMLSerializer!==a7_0x5a3331(0x18a))serializer=new XMLSerializer();else typeof exports===a7_0x5a3331(0x199)&&typeof process===a7_0x5a3331(0x199)&&!process[a7_0x5a3331(0x17f)]&&(serializer=new(require(a7_0x5a3331(0x16e)))[(a7_0x5a3331(0x189))]());function xml2str(_0x382586){const _0x5481ab=a7_0x5a3331;if(_0x382586[_0x5481ab(0x18c)]!==undefined)return _0x382586[_0x5481ab(0x18c)];return serializer['serializeToString'](_0x382586);}export function kmlToGeoJSON(_0xfb81c){const _0x46d1fa=a7_0x5a3331,_0x4927b0=fc(),_0x5ca58e={},_0xe59b8b={},_0x5d913d={},_0x91ca32=[_0x46d1fa(0x1a7),_0x46d1fa(0x17d),_0x46d1fa(0x190),_0x46d1fa(0x16c),'gx:Track'],_0x69da7f=get(_0xfb81c,_0x46d1fa(0x173)),_0x1503bb=get(_0xfb81c,_0x46d1fa(0x1ab)),_0x3bec1f=get(_0xfb81c,_0x46d1fa(0x19b));for(let _0x2eb8b2=0x0;_0x2eb8b2<_0x1503bb[_0x46d1fa(0x16f)];_0x2eb8b2++){const _0x2f5b35=okhash(xml2str(_0x1503bb[_0x2eb8b2]))[_0x46d1fa(0x1a6)](0x10);_0x5ca58e['#'+attr(_0x1503bb[_0x2eb8b2],'id')]=_0x2f5b35,_0xe59b8b[_0x2f5b35]=_0x1503bb[_0x2eb8b2];}for(let _0x5e0659=0x0;_0x5e0659<_0x3bec1f[_0x46d1fa(0x16f)];_0x5e0659++){_0x5ca58e['#'+attr(_0x3bec1f[_0x5e0659],'id')]=okhash(xml2str(_0x3bec1f[_0x5e0659]))['toString'](0x10);const _0x5b553e=get(_0x3bec1f[_0x5e0659],_0x46d1fa(0x181)),_0x369435={};for(let _0x5f557f=0x0;_0x5f557f<_0x5b553e[_0x46d1fa(0x16f)];_0x5f557f++){_0x369435[nodeVal(get1(_0x5b553e[_0x5f557f],'key'))]=nodeVal(get1(_0x5b553e[_0x5f557f],_0x46d1fa(0x17c)));}_0x5d913d['#'+attr(_0x3bec1f[_0x5e0659],'id')]=_0x369435;}for(let _0x31b6ff=0x0;_0x31b6ff<_0x69da7f[_0x46d1fa(0x16f)];_0x31b6ff++){_0x4927b0['features']=_0x4927b0[_0x46d1fa(0x18b)]['concat'](_0x100355(_0x69da7f[_0x31b6ff]));}function _0x49555e(_0x22cdf7){const _0x2647c7=_0x46d1fa;let _0x2b861a,_0x51cfba=0x0;return _0x22cdf7=_0x22cdf7||'',_0x22cdf7[_0x2647c7(0x1a1)](0x0,0x1)==='#'&&(_0x22cdf7=_0x22cdf7[_0x2647c7(0x1a1)](0x1)),(_0x22cdf7[_0x2647c7(0x16f)]===0x6||_0x22cdf7[_0x2647c7(0x16f)]===0x3)&&(_0x2b861a=_0x22cdf7),_0x22cdf7[_0x2647c7(0x16f)]===0x8&&(_0x51cfba=parseInt(_0x22cdf7['substr'](0x0,0x2),0x10)/0xff,_0x2b861a='#'+_0x22cdf7[_0x2647c7(0x1a1)](0x6,0x2)+_0x22cdf7['substr'](0x4,0x2)+_0x22cdf7['substr'](0x2,0x2)),[_0x2b861a,isNaN(_0x51cfba)?undefined:_0x51cfba];}function _0x3cda0a(_0x167166){const _0x431508=_0x46d1fa;return numarray(_0x167166[_0x431508(0x179)]('\x20'));}function _0xbdd319(_0x1ed667){const _0x189683=_0x46d1fa;let _0x38c9eb=get(_0x1ed667,'coord');const _0x3aad20=[],_0x5b4cb3=[];_0x38c9eb['length']===0x0&&(_0x38c9eb=get(_0x1ed667,'gx:coord'));for(let _0x408aa0=0x0;_0x408aa0<_0x38c9eb['length'];_0x408aa0++){_0x3aad20['push'](_0x3cda0a(nodeVal(_0x38c9eb[_0x408aa0])));}const _0x19041c=get(_0x1ed667,_0x189683(0x182));for(let _0x25613f=0x0;_0x25613f<_0x19041c[_0x189683(0x16f)];_0x25613f++){_0x5b4cb3[_0x189683(0x1a8)](nodeVal(_0x19041c[_0x25613f]));}return{'coords':_0x3aad20,'times':_0x5b4cb3};}function _0x3f9967(_0x136cf6){const _0x6bd116=_0x46d1fa;let _0x1416de,_0x36dce6,_0x43187e,_0x29c4fa,_0x434d8e;const _0x4b0871=[],_0x3bd512=[];if(get1(_0x136cf6,_0x6bd116(0x19d)))return _0x3f9967(get1(_0x136cf6,_0x6bd116(0x19d)));if(get1(_0x136cf6,_0x6bd116(0x17e)))return _0x3f9967(get1(_0x136cf6,_0x6bd116(0x17e)));if(get1(_0x136cf6,'gx:MultiTrack'))return _0x3f9967(get1(_0x136cf6,_0x6bd116(0x187)));for(_0x43187e=0x0;_0x43187e<_0x91ca32[_0x6bd116(0x16f)];_0x43187e++){_0x36dce6=get(_0x136cf6,_0x91ca32[_0x43187e]);if(_0x36dce6)for(_0x29c4fa=0x0;_0x29c4fa<_0x36dce6[_0x6bd116(0x16f)];_0x29c4fa++){_0x1416de=_0x36dce6[_0x29c4fa];if(_0x91ca32[_0x43187e]===_0x6bd116(0x190))_0x4b0871[_0x6bd116(0x1a8)]({'type':_0x6bd116(0x190),'coordinates':coord1(nodeVal(get1(_0x1416de,'coordinates')))});else{if(_0x91ca32[_0x43187e]===_0x6bd116(0x17d))_0x4b0871[_0x6bd116(0x1a8)]({'type':_0x6bd116(0x17d),'coordinates':coord(nodeVal(get1(_0x1416de,_0x6bd116(0x183))))});else{if(_0x91ca32[_0x43187e]===_0x6bd116(0x1a7)){const _0x568d4c=get(_0x1416de,_0x6bd116(0x191)),_0x18e32d=[];for(_0x434d8e=0x0;_0x434d8e<_0x568d4c[_0x6bd116(0x16f)];_0x434d8e++){_0x18e32d[_0x6bd116(0x1a8)](coord(nodeVal(get1(_0x568d4c[_0x434d8e],'coordinates'))));}_0x4b0871['push']({'type':_0x6bd116(0x1a7),'coordinates':_0x18e32d});}else{if(_0x91ca32[_0x43187e]==='Track'||_0x91ca32[_0x43187e]==='gx:Track'){const _0x526506=_0xbdd319(_0x1416de);_0x4b0871[_0x6bd116(0x1a8)]({'type':_0x6bd116(0x17d),'coordinates':_0x526506[_0x6bd116(0x1a9)]}),_0x526506[_0x6bd116(0x18e)]['length']&&_0x3bd512[_0x6bd116(0x1a8)](_0x526506['times']);}}}}}}return{'geoms':_0x4b0871,'coordTimes':_0x3bd512};}function _0x100355(_0x154e5a){const _0x343f34=_0x46d1fa,_0x4e2cf0=_0x3f9967(_0x154e5a);let _0x30a402;const _0x32f479={},_0x15ccfd=nodeVal(get1(_0x154e5a,_0x343f34(0x17b)));let _0xbf4199=nodeVal(get1(_0x154e5a,_0x343f34(0x17c)));const _0x1dedf1=nodeVal(get1(_0x154e5a,_0x343f34(0x1a2))),_0x32d720=get1(_0x154e5a,_0x343f34(0x193)),_0x41c80a=get1(_0x154e5a,'TimeStamp'),_0x3dbc5f=get1(_0x154e5a,_0x343f34(0x172));let _0x34cdfa=get1(_0x154e5a,'LineStyle'),_0x4bcf86=get1(_0x154e5a,_0x343f34(0x171));const _0x4e0048=get1(_0x154e5a,_0x343f34(0x197));if(!_0x4e2cf0[_0x343f34(0x177)]['length'])return[];_0x15ccfd&&(_0x32f479[_0x343f34(0x17b)]=_0x15ccfd);if(_0xbf4199){_0xbf4199[0x0]!=='#'&&(_0xbf4199='#'+_0xbf4199);_0x32f479[_0x343f34(0x17c)]=_0xbf4199;_0x5ca58e[_0xbf4199]&&(_0x32f479[_0x343f34(0x1a5)]=_0x5ca58e[_0xbf4199]);_0x5d913d[_0xbf4199]&&(_0x32f479[_0x343f34(0x17a)]=_0x5d913d[_0xbf4199],_0x32f479['styleHash']=_0x5ca58e[_0x5d913d[_0xbf4199][_0x343f34(0x1a4)]]);const _0x9cb1c8=_0xe59b8b[_0x32f479[_0x343f34(0x1a5)]];_0x9cb1c8&&(!_0x34cdfa&&(_0x34cdfa=get1(_0x9cb1c8,'LineStyle')),!_0x4bcf86&&(_0x4bcf86=get1(_0x9cb1c8,'PolyStyle')));}_0x1dedf1&&(_0x32f479[_0x343f34(0x1a2)]=_0x1dedf1);if(_0x32d720){const _0x3a0670=nodeVal(get1(_0x32d720,_0x343f34(0x174))),_0x42d1e4=nodeVal(get1(_0x32d720,'end'));_0x32f479[_0x343f34(0x180)]={'begin':_0x3a0670,'end':_0x42d1e4};}_0x41c80a&&(_0x32f479[_0x343f34(0x184)]=nodeVal(get1(_0x41c80a,_0x343f34(0x182))));if(_0x34cdfa){const _0x15fff6=_0x49555e(nodeVal(get1(_0x34cdfa,_0x343f34(0x178)))),_0x31744f=_0x15fff6[0x0],_0xc478f1=_0x15fff6[0x1],_0x4c0cda=parseFloat(nodeVal(get1(_0x34cdfa,'width')));_0x31744f&&(_0x32f479[_0x343f34(0x198)]=_0x31744f),!isNaN(_0xc478f1)&&(_0x32f479[_0x343f34(0x1a0)]=_0xc478f1),!isNaN(_0x4c0cda)&&(_0x32f479[_0x343f34(0x170)]=_0x4c0cda);}if(_0x4bcf86){const _0x1d4105=_0x49555e(nodeVal(get1(_0x4bcf86,_0x343f34(0x178)))),_0x58a2c1=_0x1d4105[0x0],_0x525369=_0x1d4105[0x1],_0xd585bc=nodeVal(get1(_0x4bcf86,_0x343f34(0x176))),_0x319abe=nodeVal(get1(_0x4bcf86,_0x343f34(0x18f)));_0x58a2c1&&(_0x32f479[_0x343f34(0x176)]=_0x58a2c1),!isNaN(_0x525369)&&(_0x32f479[_0x343f34(0x16d)]=_0x525369),_0xd585bc&&(_0x32f479[_0x343f34(0x16d)]=_0xd585bc==='1'?_0x32f479[_0x343f34(0x16d)]||0x1:0x0),_0x319abe&&(_0x32f479[_0x343f34(0x1a0)]=_0x319abe==='1'?_0x32f479['stroke-opacity']||0x1:0x0);}if(_0x3dbc5f){const _0x460f44=get(_0x3dbc5f,_0x343f34(0x19f)),_0x369e12=get(_0x3dbc5f,_0x343f34(0x18d));for(_0x30a402=0x0;_0x30a402<_0x460f44[_0x343f34(0x16f)];_0x30a402++){const _0x373296=_0x460f44[_0x30a402][_0x343f34(0x185)](_0x343f34(0x17b));let _0x50fac7=nodeVal(get1(_0x460f44[_0x30a402],'value'));try{_0x50fac7=JSON[_0x343f34(0x19e)](_0x50fac7);}catch(_0x530bd7){}_0x32f479[_0x373296]=_0x50fac7;}for(_0x30a402=0x0;_0x30a402<_0x369e12[_0x343f34(0x16f)];_0x30a402++){const _0x9e78b6=_0x369e12[_0x30a402][_0x343f34(0x185)](_0x343f34(0x17b));let _0x49db7a=nodeVal(_0x369e12[_0x30a402]);try{_0x49db7a=JSON[_0x343f34(0x19e)](_0x49db7a);}catch(_0x159a1f){}_0x32f479[_0x9e78b6]=_0x49db7a;}}_0x4e0048&&(_0x32f479['visibility']=nodeVal(_0x4e0048));_0x4e2cf0[_0x343f34(0x188)][_0x343f34(0x16f)]&&(_0x32f479[_0x343f34(0x188)]=_0x4e2cf0[_0x343f34(0x188)][_0x343f34(0x16f)]===0x1?_0x4e2cf0[_0x343f34(0x188)][0x0]:_0x4e2cf0['coordTimes']);const _0x3a7ec9={'type':'Feature','geometry':_0x4e2cf0[_0x343f34(0x177)][_0x343f34(0x16f)]===0x1?_0x4e2cf0[_0x343f34(0x177)][0x0]:{'type':'GeometryCollection','geometries':_0x4e2cf0[_0x343f34(0x177)]},'properties':_0x32f479};return attr(_0x154e5a,'id')&&(_0x3a7ec9['id']=attr(_0x154e5a,'id')),[_0x3a7ec9];}return _0x4927b0;}
1
+ const a7_0x884db9=a7_0x11ee;(function(_0x3ae38e,_0x420f7e){const _0x143fce=a7_0x11ee,_0x131ec1=_0x3ae38e();while(!![]){try{const _0x9f9796=-parseInt(_0x143fce(0xd7))/0x1*(parseInt(_0x143fce(0xd2))/0x2)+parseInt(_0x143fce(0xcc))/0x3*(parseInt(_0x143fce(0xac))/0x4)+parseInt(_0x143fce(0xa8))/0x5+-parseInt(_0x143fce(0x97))/0x6+parseInt(_0x143fce(0xa9))/0x7*(parseInt(_0x143fce(0xd0))/0x8)+parseInt(_0x143fce(0xd5))/0x9*(parseInt(_0x143fce(0xb4))/0xa)+-parseInt(_0x143fce(0x95))/0xb;if(_0x9f9796===_0x420f7e)break;else _0x131ec1['push'](_0x131ec1['shift']());}catch(_0x165736){_0x131ec1['push'](_0x131ec1['shift']());}}}(a7_0x47e8,0x80560));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function okhash(_0x243e04){const _0x731bf2=a7_0x11ee;if(!_0x243e04||!_0x243e04[_0x731bf2(0xca)])return 0x0;for(var _0x251198=0x0,_0x1d2505=0x0;_0x251198<_0x243e04[_0x731bf2(0xca)];_0x251198++){_0x1d2505=(_0x1d2505<<0x5)-_0x1d2505+_0x243e04[_0x731bf2(0xce)](_0x251198)|0x0;}return _0x1d2505;}function get(_0x4ddaf8,_0x3a7e1f){return _0x4ddaf8['getElementsByTagName'](_0x3a7e1f);}function attr(_0x32bc0a,_0x42a8a4){const _0x305c37=a7_0x11ee;return _0x32bc0a[_0x305c37(0xcd)](_0x42a8a4);}function a7_0x11ee(_0x1fa323,_0x2f5cbf){const _0x47e8a5=a7_0x47e8();return a7_0x11ee=function(_0x11eec1,_0x27a370){_0x11eec1=_0x11eec1-0x95;let _0x1f46b5=_0x47e8a5[_0x11eec1];return _0x1f46b5;},a7_0x11ee(_0x1fa323,_0x2f5cbf);}function attrf(_0x1946af,_0x77d5a){return parseFloat(attr(_0x1946af,_0x77d5a));}function get1(_0x10e57b,_0x260679){const _0x8c17b4=a7_0x11ee,_0x3514da=get(_0x10e57b,_0x260679);return _0x3514da[_0x8c17b4(0xca)]?_0x3514da[0x0]:null;}function a7_0x47e8(){const _0x58b28e=['when','LinearRing','outline','coordTimes','FeatureCollection','SimpleData','toString','substr','styleHash','push','XMLSerializer','name','serializeToString','undefined','parse','coord','length','key','714885SRTIKg','getAttribute','charCodeAt','xml','8OkXVZu','begin','1507174RBOkKe','times','coords','6469803nYFMuj','normalize','1JTyDDv','geoms','coordinates','visibility','9893818VILKuJ','styleUrl','3139572pJvIpI','timestamp','PolyStyle','color','Track','LineStyle','object','styleMapHash','features','fill-opacity','Feature','gx:Track','LineString','TimeStamp','xmldom','StyleMap','fill','3839610FvJDCM','1833874WFPoAR','Polygon','gx:coord','16qYzsYJ','gx:MultiTrack','timespan','GeometryCollection','stroke-opacity','MultiGeometry','Placemark','Data','10SHwEuZ','Point','split','width','MultiTrack','description'];a7_0x47e8=function(){return _0x58b28e;};return a7_0x47e8();}function norm(_0x5e991b){const _0x19cd85=a7_0x11ee;return _0x5e991b[_0x19cd85(0xd6)]&&_0x5e991b[_0x19cd85(0xd6)](),_0x5e991b;}function numarray(_0x226021){for(var _0xb29760=0x0,_0x26ee23=[];_0xb29760<_0x226021['length'];_0xb29760++){_0x26ee23[_0xb29760]=parseFloat(_0x226021[_0xb29760]);}return _0x26ee23;}function nodeVal(_0x26a960){return _0x26a960&&norm(_0x26a960),_0x26a960&&_0x26a960['textContent']||'';}function coord1(_0xd12400){const _0x39a45a=a7_0x11ee;return numarray(_0xd12400['replace'](removeSpace,'')[_0x39a45a(0xb6)](','));}function coord(_0x88e5af){const _0x198c07=a7_0x11ee,_0x5de944=_0x88e5af['replace'](trimSpace,'')[_0x198c07(0xb6)](splitSpace),_0x5d10bf=[];for(let _0xbea21f=0x0;_0xbea21f<_0x5de944[_0x198c07(0xca)];_0xbea21f++){_0x5d10bf[_0x198c07(0xc3)](coord1(_0x5de944[_0xbea21f]));}return _0x5d10bf;}function fc(){const _0x32f536=a7_0x11ee;return{'type':_0x32f536(0xbe),'features':[]};}let serializer;if(typeof XMLSerializer!==a7_0x884db9(0xc7))serializer=new XMLSerializer();else typeof exports===a7_0x884db9(0x9d)&&typeof process===a7_0x884db9(0x9d)&&!process['browser']&&(serializer=new(require(a7_0x884db9(0xa5)))[(a7_0x884db9(0xc4))]());function xml2str(_0x4a7f97){const _0x2410bc=a7_0x884db9;if(_0x4a7f97[_0x2410bc(0xcf)]!==undefined)return _0x4a7f97[_0x2410bc(0xcf)];return serializer[_0x2410bc(0xc6)](_0x4a7f97);}export function kmlToGeoJSON(_0x423017){const _0x5b4523=a7_0x884db9,_0x2def58=fc(),_0xe8d88={},_0x4b6696={},_0x56cd2e={},_0x31bfd=[_0x5b4523(0xaa),'LineString','Point',_0x5b4523(0x9b),_0x5b4523(0xa2)],_0x5663e3=get(_0x423017,_0x5b4523(0xb2)),_0xf41046=get(_0x423017,'Style'),_0x4d9d47=get(_0x423017,_0x5b4523(0xa6));for(let _0x5c54f2=0x0;_0x5c54f2<_0xf41046[_0x5b4523(0xca)];_0x5c54f2++){const _0x27a6b1=okhash(xml2str(_0xf41046[_0x5c54f2]))[_0x5b4523(0xc0)](0x10);_0xe8d88['#'+attr(_0xf41046[_0x5c54f2],'id')]=_0x27a6b1,_0x4b6696[_0x27a6b1]=_0xf41046[_0x5c54f2];}for(let _0x48bb38=0x0;_0x48bb38<_0x4d9d47['length'];_0x48bb38++){_0xe8d88['#'+attr(_0x4d9d47[_0x48bb38],'id')]=okhash(xml2str(_0x4d9d47[_0x48bb38]))[_0x5b4523(0xc0)](0x10);const _0x426507=get(_0x4d9d47[_0x48bb38],'Pair'),_0x5b1829={};for(let _0x208b93=0x0;_0x208b93<_0x426507[_0x5b4523(0xca)];_0x208b93++){_0x5b1829[nodeVal(get1(_0x426507[_0x208b93],_0x5b4523(0xcb)))]=nodeVal(get1(_0x426507[_0x208b93],_0x5b4523(0x96)));}_0x56cd2e['#'+attr(_0x4d9d47[_0x48bb38],'id')]=_0x5b1829;}for(let _0x5e09ad=0x0;_0x5e09ad<_0x5663e3[_0x5b4523(0xca)];_0x5e09ad++){_0x2def58['features']=_0x2def58[_0x5b4523(0x9f)]['concat'](_0x51c742(_0x5663e3[_0x5e09ad]));}function _0x43f06f(_0x3d7afc){const _0x8972ab=_0x5b4523;let _0x29cb2b,_0x206d12=0x0;return _0x3d7afc=_0x3d7afc||'',_0x3d7afc['substr'](0x0,0x1)==='#'&&(_0x3d7afc=_0x3d7afc[_0x8972ab(0xc1)](0x1)),(_0x3d7afc[_0x8972ab(0xca)]===0x6||_0x3d7afc[_0x8972ab(0xca)]===0x3)&&(_0x29cb2b=_0x3d7afc),_0x3d7afc[_0x8972ab(0xca)]===0x8&&(_0x206d12=parseInt(_0x3d7afc['substr'](0x0,0x2),0x10)/0xff,_0x29cb2b='#'+_0x3d7afc[_0x8972ab(0xc1)](0x6,0x2)+_0x3d7afc['substr'](0x4,0x2)+_0x3d7afc[_0x8972ab(0xc1)](0x2,0x2)),[_0x29cb2b,isNaN(_0x206d12)?undefined:_0x206d12];}function _0x286ec2(_0x95ebe8){const _0x3792f3=_0x5b4523;return numarray(_0x95ebe8[_0x3792f3(0xb6)]('\x20'));}function _0x579fd0(_0xa51d6){const _0x56c8f8=_0x5b4523;let _0x500307=get(_0xa51d6,_0x56c8f8(0xc9));const _0xb806e0=[],_0x2faa72=[];_0x500307[_0x56c8f8(0xca)]===0x0&&(_0x500307=get(_0xa51d6,_0x56c8f8(0xab)));for(let _0x243658=0x0;_0x243658<_0x500307[_0x56c8f8(0xca)];_0x243658++){_0xb806e0[_0x56c8f8(0xc3)](_0x286ec2(nodeVal(_0x500307[_0x243658])));}const _0x4fc0c5=get(_0xa51d6,_0x56c8f8(0xba));for(let _0x1af685=0x0;_0x1af685<_0x4fc0c5[_0x56c8f8(0xca)];_0x1af685++){_0x2faa72['push'](nodeVal(_0x4fc0c5[_0x1af685]));}return{'coords':_0xb806e0,'times':_0x2faa72};}function _0x368e37(_0x311ef8){const _0x57ba96=_0x5b4523;let _0x396468,_0x2a6a1f,_0x31beef,_0x309be5,_0x40a899;const _0x150855=[],_0x3fc9af=[];if(get1(_0x311ef8,_0x57ba96(0xb1)))return _0x368e37(get1(_0x311ef8,_0x57ba96(0xb1)));if(get1(_0x311ef8,_0x57ba96(0xb8)))return _0x368e37(get1(_0x311ef8,_0x57ba96(0xb8)));if(get1(_0x311ef8,_0x57ba96(0xad)))return _0x368e37(get1(_0x311ef8,_0x57ba96(0xad)));for(_0x31beef=0x0;_0x31beef<_0x31bfd[_0x57ba96(0xca)];_0x31beef++){_0x2a6a1f=get(_0x311ef8,_0x31bfd[_0x31beef]);if(_0x2a6a1f)for(_0x309be5=0x0;_0x309be5<_0x2a6a1f[_0x57ba96(0xca)];_0x309be5++){_0x396468=_0x2a6a1f[_0x309be5];if(_0x31bfd[_0x31beef]==='Point')_0x150855[_0x57ba96(0xc3)]({'type':_0x57ba96(0xb5),'coordinates':coord1(nodeVal(get1(_0x396468,'coordinates')))});else{if(_0x31bfd[_0x31beef]==='LineString')_0x150855[_0x57ba96(0xc3)]({'type':_0x57ba96(0xa3),'coordinates':coord(nodeVal(get1(_0x396468,_0x57ba96(0xd9))))});else{if(_0x31bfd[_0x31beef]===_0x57ba96(0xaa)){const _0x1274ed=get(_0x396468,_0x57ba96(0xbb)),_0xe9f14d=[];for(_0x40a899=0x0;_0x40a899<_0x1274ed[_0x57ba96(0xca)];_0x40a899++){_0xe9f14d['push'](coord(nodeVal(get1(_0x1274ed[_0x40a899],'coordinates'))));}_0x150855[_0x57ba96(0xc3)]({'type':_0x57ba96(0xaa),'coordinates':_0xe9f14d});}else{if(_0x31bfd[_0x31beef]==='Track'||_0x31bfd[_0x31beef]===_0x57ba96(0xa2)){const _0xa08145=_0x579fd0(_0x396468);_0x150855[_0x57ba96(0xc3)]({'type':_0x57ba96(0xa3),'coordinates':_0xa08145[_0x57ba96(0xd4)]}),_0xa08145[_0x57ba96(0xd3)][_0x57ba96(0xca)]&&_0x3fc9af[_0x57ba96(0xc3)](_0xa08145[_0x57ba96(0xd3)]);}}}}}}return{'geoms':_0x150855,'coordTimes':_0x3fc9af};}function _0x51c742(_0x93f328){const _0x33c7f1=_0x5b4523,_0x3df0e5=_0x368e37(_0x93f328);let _0x274191;const _0x5e534d={},_0x49a397=nodeVal(get1(_0x93f328,_0x33c7f1(0xc5)));let _0x4cb8e9=nodeVal(get1(_0x93f328,'styleUrl'));const _0x42be77=nodeVal(get1(_0x93f328,'description')),_0x5d298a=get1(_0x93f328,'TimeSpan'),_0x39ba74=get1(_0x93f328,_0x33c7f1(0xa4)),_0x4f81a6=get1(_0x93f328,'ExtendedData');let _0x25eeec=get1(_0x93f328,_0x33c7f1(0x9c)),_0x1443ab=get1(_0x93f328,_0x33c7f1(0x99));const _0x5cfcf2=get1(_0x93f328,_0x33c7f1(0xda));if(!_0x3df0e5[_0x33c7f1(0xd8)]['length'])return[];_0x49a397&&(_0x5e534d[_0x33c7f1(0xc5)]=_0x49a397);if(_0x4cb8e9){_0x4cb8e9[0x0]!=='#'&&(_0x4cb8e9='#'+_0x4cb8e9);_0x5e534d[_0x33c7f1(0x96)]=_0x4cb8e9;_0xe8d88[_0x4cb8e9]&&(_0x5e534d['styleHash']=_0xe8d88[_0x4cb8e9]);_0x56cd2e[_0x4cb8e9]&&(_0x5e534d[_0x33c7f1(0x9e)]=_0x56cd2e[_0x4cb8e9],_0x5e534d[_0x33c7f1(0xc2)]=_0xe8d88[_0x56cd2e[_0x4cb8e9]['normal']]);const _0x560dcd=_0x4b6696[_0x5e534d[_0x33c7f1(0xc2)]];_0x560dcd&&(!_0x25eeec&&(_0x25eeec=get1(_0x560dcd,_0x33c7f1(0x9c))),!_0x1443ab&&(_0x1443ab=get1(_0x560dcd,_0x33c7f1(0x99))));}_0x42be77&&(_0x5e534d[_0x33c7f1(0xb9)]=_0x42be77);if(_0x5d298a){const _0x28a641=nodeVal(get1(_0x5d298a,_0x33c7f1(0xd1))),_0x48d1bc=nodeVal(get1(_0x5d298a,'end'));_0x5e534d[_0x33c7f1(0xae)]={'begin':_0x28a641,'end':_0x48d1bc};}_0x39ba74&&(_0x5e534d[_0x33c7f1(0x98)]=nodeVal(get1(_0x39ba74,_0x33c7f1(0xba))));if(_0x25eeec){const _0x43edf4=_0x43f06f(nodeVal(get1(_0x25eeec,'color'))),_0x670b61=_0x43edf4[0x0],_0x7062e6=_0x43edf4[0x1],_0x4293e8=parseFloat(nodeVal(get1(_0x25eeec,_0x33c7f1(0xb7))));_0x670b61&&(_0x5e534d['stroke']=_0x670b61),!isNaN(_0x7062e6)&&(_0x5e534d[_0x33c7f1(0xb0)]=_0x7062e6),!isNaN(_0x4293e8)&&(_0x5e534d['stroke-width']=_0x4293e8);}if(_0x1443ab){const _0x38bd52=_0x43f06f(nodeVal(get1(_0x1443ab,_0x33c7f1(0x9a)))),_0x4e0637=_0x38bd52[0x0],_0x54d0e8=_0x38bd52[0x1],_0x47abcb=nodeVal(get1(_0x1443ab,_0x33c7f1(0xa7))),_0x2a22ad=nodeVal(get1(_0x1443ab,_0x33c7f1(0xbc)));_0x4e0637&&(_0x5e534d[_0x33c7f1(0xa7)]=_0x4e0637),!isNaN(_0x54d0e8)&&(_0x5e534d[_0x33c7f1(0xa0)]=_0x54d0e8),_0x47abcb&&(_0x5e534d['fill-opacity']=_0x47abcb==='1'?_0x5e534d[_0x33c7f1(0xa0)]||0x1:0x0),_0x2a22ad&&(_0x5e534d[_0x33c7f1(0xb0)]=_0x2a22ad==='1'?_0x5e534d[_0x33c7f1(0xb0)]||0x1:0x0);}if(_0x4f81a6){const _0x74508e=get(_0x4f81a6,_0x33c7f1(0xb3)),_0x47caba=get(_0x4f81a6,_0x33c7f1(0xbf));for(_0x274191=0x0;_0x274191<_0x74508e[_0x33c7f1(0xca)];_0x274191++){const _0x580d4c=_0x74508e[_0x274191][_0x33c7f1(0xcd)]('name');let _0x13d51d=nodeVal(get1(_0x74508e[_0x274191],'value'));try{_0x13d51d=JSON[_0x33c7f1(0xc8)](_0x13d51d);}catch(_0x3dd1db){}_0x5e534d[_0x580d4c]=_0x13d51d;}for(_0x274191=0x0;_0x274191<_0x47caba[_0x33c7f1(0xca)];_0x274191++){const _0x202785=_0x47caba[_0x274191][_0x33c7f1(0xcd)](_0x33c7f1(0xc5));let _0x22c43c=nodeVal(_0x47caba[_0x274191]);try{_0x22c43c=JSON['parse'](_0x22c43c);}catch(_0x2613c6){}_0x5e534d[_0x202785]=_0x22c43c;}}_0x5cfcf2&&(_0x5e534d[_0x33c7f1(0xda)]=nodeVal(_0x5cfcf2));_0x3df0e5[_0x33c7f1(0xbd)][_0x33c7f1(0xca)]&&(_0x5e534d[_0x33c7f1(0xbd)]=_0x3df0e5[_0x33c7f1(0xbd)][_0x33c7f1(0xca)]===0x1?_0x3df0e5[_0x33c7f1(0xbd)][0x0]:_0x3df0e5[_0x33c7f1(0xbd)]);const _0x7128ad={'type':_0x33c7f1(0xa1),'geometry':_0x3df0e5[_0x33c7f1(0xd8)][_0x33c7f1(0xca)]===0x1?_0x3df0e5[_0x33c7f1(0xd8)][0x0]:{'type':_0x33c7f1(0xaf),'geometries':_0x3df0e5[_0x33c7f1(0xd8)]},'properties':_0x5e534d};return attr(_0x93f328,'id')&&(_0x7128ad['id']=attr(_0x93f328,'id')),[_0x7128ad];}return _0x2def58;}
package/entity/Feature.js CHANGED
@@ -1 +1 @@
1
- function a9_0x4212(_0x511e61,_0x5bd830){var _0x308838=a9_0x3088();return a9_0x4212=function(_0x4212f4,_0x36be26){_0x4212f4=_0x4212f4-0xdb;var _0x580971=_0x308838[_0x4212f4];return _0x580971;},a9_0x4212(_0x511e61,_0x5bd830);}function a9_0x3088(){var _0x48327a=['12zxDHyv','1672342AGGccM','1214020ftfVar','2535340PnUAuo','8neoUqM','2bkjoNu','124527ItpoRI','2396403kYxayb','841192TQbPNY','1064133TdqDuL'];a9_0x3088=function(){return _0x48327a;};return a9_0x3088();}(function(_0x2f9872,_0x123124){var _0x522444=a9_0x4212,_0x3f6587=_0x2f9872();while(!![]){try{var _0x275100=parseInt(_0x522444(0xe1))/0x1+parseInt(_0x522444(0xe0))/0x2*(parseInt(_0x522444(0xe4))/0x3)+parseInt(_0x522444(0xe3))/0x4+-parseInt(_0x522444(0xde))/0x5+-parseInt(_0x522444(0xdb))/0x6*(-parseInt(_0x522444(0xdc))/0x7)+parseInt(_0x522444(0xdf))/0x8*(-parseInt(_0x522444(0xe2))/0x9)+-parseInt(_0x522444(0xdd))/0xa;if(_0x275100===_0x123124)break;else _0x3f6587['push'](_0x3f6587['shift']());}catch(_0x1b367b){_0x3f6587['push'](_0x3f6587['shift']());}}}(a9_0x3088,0x428e3));import{Feature as a9_0x21845e}from'ol';export default class Feature extends a9_0x21845e{constructor(){super();}}
1
+ (function(_0x33a506,_0x3294b8){var _0x43546a=a9_0x56c2,_0x59015c=_0x33a506();while(!![]){try{var _0x312948=parseInt(_0x43546a(0x189))/0x1*(-parseInt(_0x43546a(0x184))/0x2)+parseInt(_0x43546a(0x186))/0x3+parseInt(_0x43546a(0x183))/0x4+parseInt(_0x43546a(0x187))/0x5*(-parseInt(_0x43546a(0x18a))/0x6)+-parseInt(_0x43546a(0x182))/0x7*(parseInt(_0x43546a(0x18c))/0x8)+parseInt(_0x43546a(0x18d))/0x9*(-parseInt(_0x43546a(0x18b))/0xa)+-parseInt(_0x43546a(0x185))/0xb*(-parseInt(_0x43546a(0x188))/0xc);if(_0x312948===_0x3294b8)break;else _0x59015c['push'](_0x59015c['shift']());}catch(_0x24a8d0){_0x59015c['push'](_0x59015c['shift']());}}}(a9_0x4904,0x1bb37));import{Feature as a9_0xdc887b}from'ol';function a9_0x56c2(_0x2881ea,_0x4dfb63){var _0x4904f9=a9_0x4904();return a9_0x56c2=function(_0x56c289,_0x11cebb){_0x56c289=_0x56c289-0x182;var _0x3908a6=_0x4904f9[_0x56c289];return _0x3908a6;},a9_0x56c2(_0x2881ea,_0x4dfb63);}function a9_0x4904(){var _0x3aee77=['6SsYhDZ','767170hbfDAz','8mVbsYw','18UyrxVN','556787fzsqmn','276280IHScYe','778kvAsZn','77gUAxAl','626565AVkALJ','503845RiRmSr','349548nvlAUL','89usrjOo'];a9_0x4904=function(){return _0x3aee77;};return a9_0x4904();}export default class Feature extends a9_0xdc887b{constructor(){super();}}
@@ -1 +1 @@
1
- var a10_0x23a28c=a10_0x1d9e;(function(_0x24ae72,_0x16b9ba){var _0x70bff3=a10_0x1d9e,_0x2193dc=_0x24ae72();while(!![]){try{var _0x3afaa7=-parseInt(_0x70bff3(0xd2))/0x1*(parseInt(_0x70bff3(0xe2))/0x2)+parseInt(_0x70bff3(0xcf))/0x3+parseInt(_0x70bff3(0xdd))/0x4*(-parseInt(_0x70bff3(0xd0))/0x5)+parseInt(_0x70bff3(0xe3))/0x6*(parseInt(_0x70bff3(0xdc))/0x7)+parseInt(_0x70bff3(0xdf))/0x8+parseInt(_0x70bff3(0xd7))/0x9+-parseInt(_0x70bff3(0xd5))/0xa*(parseInt(_0x70bff3(0xe7))/0xb);if(_0x3afaa7===_0x16b9ba)break;else _0x2193dc['push'](_0x2193dc['shift']());}catch(_0x3b92e1){_0x2193dc['push'](_0x2193dc['shift']());}}}(a10_0x152d,0x9039d));class GeometryType{}GeometryType['Point']=a10_0x23a28c(0xe0),GeometryType[a10_0x23a28c(0xe4)]='polyline',GeometryType['Polygon']='polygon',GeometryType['Rectangle']='rectangle',GeometryType['Circle']='circle',GeometryType[a10_0x23a28c(0xd8)]=a10_0x23a28c(0xce),GeometryType[a10_0x23a28c(0xe6)]=a10_0x23a28c(0xd3),GeometryType['Ellipsoid']=a10_0x23a28c(0xe5),GeometryType[a10_0x23a28c(0xe1)]='arrow',GeometryType[a10_0x23a28c(0xdb)]='arrow_attack',GeometryType[a10_0x23a28c(0xde)]=a10_0x23a28c(0xd9),GeometryType[a10_0x23a28c(0xd6)]=a10_0x23a28c(0xd4),GeometryType[a10_0x23a28c(0xda)]=a10_0x23a28c(0xd1);export default GeometryType;function a10_0x1d9e(_0x30c981,_0x28da6c){var _0x152d84=a10_0x152d();return a10_0x1d9e=function(_0x1d9eb2,_0x4cb67b){_0x1d9eb2=_0x1d9eb2-0xce;var _0x3c6e7b=_0x152d84[_0x1d9eb2];return _0x3c6e7b;},a10_0x1d9e(_0x30c981,_0x28da6c);}function a10_0x152d(){var _0x287aa9=['surface-closed','15461Ppygop','ellipse','assembly_site','189870lobNRj','AssemblySite','1416744bTcORD','Curve','arrow_pincerlike','SurfaceClosed','ArrowAttack','7mxzjEr','96MqZEmV','ArrowPincerlike','3244032qrAGlY','point','Arrow','26gFUHcz','6701742XsfTMi','PolyLine','ellipsoid','Ellipse','495gNtUfZ','curve','986184mMbsvP','75510SZHMyq'];a10_0x152d=function(){return _0x287aa9;};return a10_0x152d();}
1
+ var a10_0x2f1f34=a10_0x2475;function a10_0x32ca(){var _0x3b1ec7=['Rectangle','599056eSZSyE','PolyLine','AssemblySite','12VefLUc','Curve','Circle','32qimbmX','arrow_attack','Point','point','5072832PiFeuW','101302MyeeED','3867895YFVIzq','71782690hHKmZk','ArrowAttack','curve','Arrow','arrow','Polygon','28qfdRDo','ArrowPincerlike','polygon','polyline','Ellipse','assembly_site','ellipsoid','rectangle','5401940CfbjMQ','14311539pvYcmZ'];a10_0x32ca=function(){return _0x3b1ec7;};return a10_0x32ca();}(function(_0x13abaa,_0x38e1bc){var _0x44c1a6=a10_0x2475,_0x31bab3=_0x13abaa();while(!![]){try{var _0x2e637a=-parseInt(_0x44c1a6(0xd2))/0x1*(-parseInt(_0x44c1a6(0xd7))/0x2)+parseInt(_0x44c1a6(0xd6))/0x3+parseInt(_0x44c1a6(0xc9))/0x4+-parseInt(_0x44c1a6(0xd8))/0x5*(-parseInt(_0x44c1a6(0xcf))/0x6)+parseInt(_0x44c1a6(0xc1))/0x7*(parseInt(_0x44c1a6(0xcc))/0x8)+parseInt(_0x44c1a6(0xca))/0x9+-parseInt(_0x44c1a6(0xd9))/0xa;if(_0x2e637a===_0x38e1bc)break;else _0x31bab3['push'](_0x31bab3['shift']());}catch(_0x394c18){_0x31bab3['push'](_0x31bab3['shift']());}}}(a10_0x32ca,0xe0d11));class GeometryType{}GeometryType[a10_0x2f1f34(0xd4)]=a10_0x2f1f34(0xd5),GeometryType[a10_0x2f1f34(0xcd)]=a10_0x2f1f34(0xc4),GeometryType[a10_0x2f1f34(0xde)]=a10_0x2f1f34(0xc3),GeometryType[a10_0x2f1f34(0xcb)]=a10_0x2f1f34(0xc8),GeometryType[a10_0x2f1f34(0xd1)]='circle',GeometryType[a10_0x2f1f34(0xd0)]=a10_0x2f1f34(0xdb),GeometryType[a10_0x2f1f34(0xc5)]='ellipse',GeometryType['Ellipsoid']=a10_0x2f1f34(0xc7),GeometryType[a10_0x2f1f34(0xdc)]=a10_0x2f1f34(0xdd),GeometryType[a10_0x2f1f34(0xda)]=a10_0x2f1f34(0xd3),GeometryType[a10_0x2f1f34(0xc2)]='arrow_pincerlike',GeometryType[a10_0x2f1f34(0xce)]=a10_0x2f1f34(0xc6),GeometryType['SurfaceClosed']='surface-closed';function a10_0x2475(_0x2f5cca,_0x304b02){var _0x32ca5d=a10_0x32ca();return a10_0x2475=function(_0x247544,_0x3942ee){_0x247544=_0x247544-0xc1;var _0x20fb08=_0x32ca5d[_0x247544];return _0x20fb08;},a10_0x2475(_0x2f5cca,_0x304b02);}export default GeometryType;
@@ -1 +1 @@
1
- const a27_0x46d342=a27_0x5fa2;(function(_0x1aa1b0,_0x34a1ce){const _0xbf1212=a27_0x5fa2,_0xdf9ec=_0x1aa1b0();while(!![]){try{const _0x105357=-parseInt(_0xbf1212(0x154))/0x1+-parseInt(_0xbf1212(0x157))/0x2+parseInt(_0xbf1212(0x172))/0x3*(parseInt(_0xbf1212(0x16b))/0x4)+parseInt(_0xbf1212(0x175))/0x5*(-parseInt(_0xbf1212(0x15f))/0x6)+-parseInt(_0xbf1212(0x156))/0x7*(parseInt(_0xbf1212(0x167))/0x8)+-parseInt(_0xbf1212(0x168))/0x9+parseInt(_0xbf1212(0x160))/0xa*(parseInt(_0xbf1212(0x171))/0xb);if(_0x105357===_0x34a1ce)break;else _0xdf9ec['push'](_0xdf9ec['shift']());}catch(_0x4bf639){_0xdf9ec['push'](_0xdf9ec['shift']());}}}(a27_0x5c28,0xaca72));import a27_0x514a58 from'ol/layer/Vector';function a27_0x5fa2(_0x28d1d8,_0x526a00){const _0x5c2898=a27_0x5c28();return a27_0x5fa2=function(_0x5fa28b,_0x126e5b){_0x5fa28b=_0x5fa28b-0x153;let _0x357d6c=_0x5c2898[_0x5fa28b];return _0x357d6c;},a27_0x5fa2(_0x28d1d8,_0x526a00);}import a27_0x3dbfd3 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a27_0x17ba15 from'ol/format/GeoJSON';function a27_0x5c28(){const _0x2aaa07=['getSource','getVisible','29764559tmyOkr','3ksiHtk','map','getFeatures','5nigPKJ','tag','forEach','getTempSelectedFeatures','46372yRZeBp','push','7NoaOlg','2439430NhURrm','tempLayer','addLayer','getPolygonTempLayer','getLineTempLayer','flashFeatures','layerId','readFeature','116574ATrzKb','10dyELfl','setVisible','flash_layer','isSelected','getPointTempLayer','getSelectedFeatures','layerInfo','7818016Tijjij','5520591sEAXSc','removeFeature','removeLayer','3509936HVsoes','filter','geometryType','getLayersById'];a27_0x5c28=function(){return _0x2aaa07;};return a27_0x5c28();}export default class FeatureManager{constructor(_0xc12f91){const _0x503c42=a27_0x5fa2;this[_0x503c42(0x173)]=_0xc12f91;}[a27_0x46d342(0x165)](_0x46c75a,_0x3b3b94){const _0x2c454f=a27_0x46d342;if(_0x46c75a){const _0xa238ca=this[_0x2c454f(0x173)][_0x2c454f(0x16e)](_0x46c75a);if(!_0xa238ca||!_0xa238ca['layerInfo'])return;let _0x2dab07;switch(_0xa238ca[_0x2c454f(0x166)][_0x2c454f(0x16d)]){case 0x1:_0x2dab07=this['getTempSelectedFeatures'](this[_0x2c454f(0x173)]['getPointTempLayer'](),_0x46c75a,_0x3b3b94);break;case 0x2:_0x2dab07=this[_0x2c454f(0x153)](this[_0x2c454f(0x173)][_0x2c454f(0x15b)](),_0x46c75a,_0x3b3b94);break;case 0x3:_0x2dab07=this[_0x2c454f(0x153)](this['map'][_0x2c454f(0x15a)](),_0x46c75a,_0x3b3b94);break;default:break;}return _0x2dab07;}else{const _0x1c1af7=this[_0x2c454f(0x153)](this[_0x2c454f(0x173)][_0x2c454f(0x164)](),_0x46c75a,_0x3b3b94),_0x372eaf=this[_0x2c454f(0x153)](this['map'][_0x2c454f(0x15b)](),_0x46c75a,_0x3b3b94),_0x30583a=this['getTempSelectedFeatures'](this['map']['getPolygonTempLayer'](),_0x46c75a,_0x3b3b94);let _0x6d770e=[];return _0x1c1af7&&(_0x6d770e=[..._0x6d770e,..._0x1c1af7]),_0x372eaf&&(_0x6d770e=[..._0x6d770e,..._0x372eaf]),_0x30583a&&(_0x6d770e=[..._0x6d770e,..._0x30583a]),_0x6d770e;}}['getTempSelectedFeatures'](_0x4d4c2d,_0x58d929,_0x48a60f){const _0x2e629e=a27_0x46d342;var _0x43afaa;let _0x218c42=(_0x43afaa=_0x4d4c2d['getSource']())===null||_0x43afaa===void 0x0?void 0x0:_0x43afaa[_0x2e629e(0x174)]();if(!_0x218c42)return;_0x218c42[_0x2e629e(0x177)]((_0x57e569,_0x3c1a89,_0x1eea99)=>{const _0xc85d6d=_0x2e629e;_0x57e569[_0xc85d6d(0x158)]=_0x4d4c2d;});_0x48a60f!=undefined&&(_0x218c42=_0x218c42[_0x2e629e(0x16c)](_0x2da763=>_0x2da763[_0x2e629e(0x163)]==_0x48a60f));if(_0x58d929)return _0x218c42[_0x2e629e(0x16c)](_0x1910cc=>_0x1910cc[_0x2e629e(0x15d)]==_0x58d929);return _0x218c42;}[a27_0x46d342(0x15c)](_0x456e4b,_0x4c0e57=0x3){const _0xe37a4a=a27_0x46d342;var _0x4474cc;let _0x512f4e=new a27_0x514a58({'zIndex':0x270f,'source':new a27_0x3dbfd3()});_0x512f4e['id']=_0xe37a4a(0x162),this[_0xe37a4a(0x173)][_0xe37a4a(0x159)](_0x512f4e,![]),(_0x4474cc=_0x512f4e[_0xe37a4a(0x16f)]())===null||_0x4474cc===void 0x0?void 0x0:_0x4474cc['addFeatures'](_0x456e4b);let _0x46588f=0x0,_0x37a048=setInterval(()=>{const _0x359150=_0xe37a4a;if(_0x46588f===_0x4c0e57){_0x37a048&&clearInterval(_0x37a048);const _0x4e27bf=this[_0x359150(0x173)][_0x359150(0x16e)](_0x512f4e['id']);_0x4e27bf&&this['map'][_0x359150(0x16a)](_0x4e27bf);return;}if(_0x512f4e[_0x359150(0x170)]())_0x512f4e[_0x359150(0x161)](![]);else _0x512f4e[_0x359150(0x161)](!![]);_0x46588f++;},0x190);}async['kmlImport'](_0x430e38){const _0x48dcbb=a27_0x46d342;let _0xb5d4c9=await toGeoJSON(_0x430e38,null);if(!_0xb5d4c9)return[];let _0x222abd=[];var _0x1eca9b=new a27_0x17ba15();return _0xb5d4c9['features'][_0x48dcbb(0x177)](_0x40642f=>{const _0x2d2fc3=_0x48dcbb;_0x222abd[_0x2d2fc3(0x155)](_0x1eca9b[_0x2d2fc3(0x15e)](_0x40642f,null));}),_0x222abd;}['clearTempFeatures'](_0x5af016){const _0x58fefc=a27_0x46d342,_0x192e15=this[_0x58fefc(0x165)]();if(_0x192e15&&_0x192e15['length']>0x0)for(const _0x4eaadc of _0x192e15){if(_0x4eaadc&&_0x4eaadc['tempLayer']){const _0x53709c=_0x4eaadc[_0x58fefc(0x158)][_0x58fefc(0x16f)]();_0x53709c&&(_0x5af016!=undefined?_0x4eaadc[_0x58fefc(0x176)]==_0x5af016&&_0x53709c['removeFeature'](_0x4eaadc):_0x53709c[_0x58fefc(0x169)](_0x4eaadc));}}}}
1
+ function a27_0x163c(){const _0x8d1a47=['770BAfYZM','layerId','length','setVisible','871137pifgOc','38742BwnJiA','removeFeature','tag','getLayersById','getPolygonTempLayer','clearTempFeatures','getTempSelectedFeatures','getSelectedFeatures','flashFeatures','5276640XzsUCZ','getSource','2828409odnYGb','readFeature','filter','1355erbibv','getVisible','12565182wcftCf','4750884XSbKQL','addFeatures','forEach','getLineTempLayer','131066iNmcmY','map','layerInfo','getFeatures','tempLayer','removeLayer','flash_layer','isSelected','kmlImport','2fejzwm','getPointTempLayer','geometryType','addLayer'];a27_0x163c=function(){return _0x8d1a47;};return a27_0x163c();}const a27_0x454120=a27_0x4b5a;(function(_0x3b2ed1,_0x3700ac){const _0x4986aa=a27_0x4b5a,_0xd9b440=_0x3b2ed1();while(!![]){try{const _0x421860=parseInt(_0x4986aa(0x1f2))/0x1*(-parseInt(_0x4986aa(0x210))/0x2)+-parseInt(_0x4986aa(0x206))/0x3+-parseInt(_0x4986aa(0x20c))/0x4+parseInt(_0x4986aa(0x209))/0x5*(-parseInt(_0x4986aa(0x1fb))/0x6)+-parseInt(_0x4986aa(0x20b))/0x7+-parseInt(_0x4986aa(0x204))/0x8+parseInt(_0x4986aa(0x1fa))/0x9*(parseInt(_0x4986aa(0x1f6))/0xa);if(_0x421860===_0x3700ac)break;else _0xd9b440['push'](_0xd9b440['shift']());}catch(_0x111c23){_0xd9b440['push'](_0xd9b440['shift']());}}}(a27_0x163c,0xf0f8a));import a27_0x9970d from'ol/layer/Vector';function a27_0x4b5a(_0x1d79cd,_0x471713){const _0x163c31=a27_0x163c();return a27_0x4b5a=function(_0x4b5ad7,_0x5d37ec){_0x4b5ad7=_0x4b5ad7-0x1ef;let _0x1af80b=_0x163c31[_0x4b5ad7];return _0x1af80b;},a27_0x4b5a(_0x1d79cd,_0x471713);}import a27_0x4e19a5 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a27_0x4cff8e from'ol/format/GeoJSON';export default class FeatureManager{constructor(_0x2539ef){this['map']=_0x2539ef;}[a27_0x454120(0x202)](_0x3ce0c7,_0x5ab2cd){const _0xa32bf7=a27_0x454120;if(_0x3ce0c7){const _0x5c12fa=this['map'][_0xa32bf7(0x1fe)](_0x3ce0c7);if(!_0x5c12fa||!_0x5c12fa['layerInfo'])return;let _0x4364e4;switch(_0x5c12fa[_0xa32bf7(0x212)][_0xa32bf7(0x1f4)]){case 0x1:_0x4364e4=this[_0xa32bf7(0x201)](this[_0xa32bf7(0x211)][_0xa32bf7(0x1f3)](),_0x3ce0c7,_0x5ab2cd);break;case 0x2:_0x4364e4=this[_0xa32bf7(0x201)](this[_0xa32bf7(0x211)][_0xa32bf7(0x20f)](),_0x3ce0c7,_0x5ab2cd);break;case 0x3:_0x4364e4=this[_0xa32bf7(0x201)](this[_0xa32bf7(0x211)][_0xa32bf7(0x1ff)](),_0x3ce0c7,_0x5ab2cd);break;default:break;}return _0x4364e4;}else{const _0x5614f0=this[_0xa32bf7(0x201)](this[_0xa32bf7(0x211)][_0xa32bf7(0x1f3)](),_0x3ce0c7,_0x5ab2cd),_0x196a33=this[_0xa32bf7(0x201)](this[_0xa32bf7(0x211)]['getLineTempLayer'](),_0x3ce0c7,_0x5ab2cd),_0x3b3c30=this[_0xa32bf7(0x201)](this['map'][_0xa32bf7(0x1ff)](),_0x3ce0c7,_0x5ab2cd);let _0x53d58b=[];return _0x5614f0&&(_0x53d58b=[..._0x53d58b,..._0x5614f0]),_0x196a33&&(_0x53d58b=[..._0x53d58b,..._0x196a33]),_0x3b3c30&&(_0x53d58b=[..._0x53d58b,..._0x3b3c30]),_0x53d58b;}}[a27_0x454120(0x201)](_0x2228b9,_0x595d24,_0x5091fc){const _0x56b13e=a27_0x454120;var _0x25725f;let _0x2bc15b=(_0x25725f=_0x2228b9[_0x56b13e(0x205)]())===null||_0x25725f===void 0x0?void 0x0:_0x25725f[_0x56b13e(0x213)]();if(!_0x2bc15b)return;_0x2bc15b[_0x56b13e(0x20e)]((_0x87e75c,_0x5281bb,_0x5ee0a1)=>{const _0x3de0ca=_0x56b13e;_0x87e75c[_0x3de0ca(0x214)]=_0x2228b9;});_0x5091fc!=undefined&&(_0x2bc15b=_0x2bc15b[_0x56b13e(0x208)](_0x55f140=>_0x55f140[_0x56b13e(0x1f0)]==_0x5091fc));if(_0x595d24)return _0x2bc15b['filter'](_0x3ff753=>_0x3ff753[_0x56b13e(0x1f7)]==_0x595d24);return _0x2bc15b;}[a27_0x454120(0x203)](_0x2fec9f,_0x2f0285=0x3){const _0x46e44e=a27_0x454120;var _0x168a91;let _0x423ce4=new a27_0x9970d({'zIndex':0x270f,'source':new a27_0x4e19a5()});_0x423ce4['id']=_0x46e44e(0x1ef),this[_0x46e44e(0x211)][_0x46e44e(0x1f5)](_0x423ce4,![]),(_0x168a91=_0x423ce4['getSource']())===null||_0x168a91===void 0x0?void 0x0:_0x168a91[_0x46e44e(0x20d)](_0x2fec9f);let _0x15ae9b=0x0,_0x525d1=setInterval(()=>{const _0x138f9d=_0x46e44e;if(_0x15ae9b===_0x2f0285){_0x525d1&&clearInterval(_0x525d1);const _0x31c86e=this['map'][_0x138f9d(0x1fe)](_0x423ce4['id']);_0x31c86e&&this[_0x138f9d(0x211)][_0x138f9d(0x215)](_0x31c86e);return;}if(_0x423ce4[_0x138f9d(0x20a)]())_0x423ce4[_0x138f9d(0x1f9)](![]);else _0x423ce4[_0x138f9d(0x1f9)](!![]);_0x15ae9b++;},0x190);}async[a27_0x454120(0x1f1)](_0x86aaf4){let _0x4d19e8=await toGeoJSON(_0x86aaf4,null);if(!_0x4d19e8)return[];let _0x8fdd34=[];var _0x2187cf=new a27_0x4cff8e();return _0x4d19e8['features']['forEach'](_0x194c3e=>{const _0x514a68=a27_0x4b5a;_0x8fdd34['push'](_0x2187cf[_0x514a68(0x207)](_0x194c3e,null));}),_0x8fdd34;}[a27_0x454120(0x200)](_0x1490b0){const _0x46504d=a27_0x454120,_0x510724=this[_0x46504d(0x202)]();if(_0x510724&&_0x510724[_0x46504d(0x1f8)]>0x0)for(const _0x108d4c of _0x510724){if(_0x108d4c&&_0x108d4c[_0x46504d(0x214)]){const _0x1a6460=_0x108d4c[_0x46504d(0x214)][_0x46504d(0x205)]();_0x1a6460&&(_0x1490b0!=undefined?_0x108d4c[_0x46504d(0x1fd)]==_0x1490b0&&_0x1a6460[_0x46504d(0x1fc)](_0x108d4c):_0x1a6460[_0x46504d(0x1fc)](_0x108d4c));}}}}
package/index.js CHANGED
@@ -1 +1 @@
1
- function a28_0x5700(_0x3dfd17,_0x264e2){var _0x22e2cc=a28_0x22e2();return a28_0x5700=function(_0x5700b1,_0x59751e){_0x5700b1=_0x5700b1-0x106;var _0x1d1a3f=_0x22e2cc[_0x5700b1];return _0x1d1a3f;},a28_0x5700(_0x3dfd17,_0x264e2);}(function(_0x581f4f,_0xda4618){var _0x301584=a28_0x5700,_0x11dbf3=_0x581f4f();while(!![]){try{var _0x53bc83=-parseInt(_0x301584(0x10b))/0x1+-parseInt(_0x301584(0x10f))/0x2*(parseInt(_0x301584(0x110))/0x3)+-parseInt(_0x301584(0x106))/0x4+parseInt(_0x301584(0x109))/0x5*(-parseInt(_0x301584(0x10a))/0x6)+-parseInt(_0x301584(0x107))/0x7+parseInt(_0x301584(0x10c))/0x8*(parseInt(_0x301584(0x108))/0x9)+-parseInt(_0x301584(0x10e))/0xa*(-parseInt(_0x301584(0x10d))/0xb);if(_0x53bc83===_0xda4618)break;else _0x11dbf3['push'](_0x11dbf3['shift']());}catch(_0x4e0a34){_0x11dbf3['push'](_0x11dbf3['shift']());}}}(a28_0x22e2,0x823f3));function a28_0x22e2(){var _0xcd0fbb=['1926dJHJAt','199590xlZsLk','789064hQEGnk','12716Svjcgo','14990iVZjvr','383676SPMOQU','3EvPIoA','1200772mCzrMd','1040494owavvo','45qaEKbX','13275WwbUaT'];a28_0x22e2=function(){return _0xcd0fbb;};return a28_0x22e2();}import a28_0x2cad11 from'./mapView/Map';export{a28_0x2cad11 as Map2D};
1
+ (function(_0x5e33b0,_0x5c2301){var _0x659169=a28_0x4338,_0x1c5142=_0x5e33b0();while(!![]){try{var _0x3523ef=parseInt(_0x659169(0x1aa))/0x1+parseInt(_0x659169(0x1a7))/0x2+-parseInt(_0x659169(0x1af))/0x3+parseInt(_0x659169(0x1ad))/0x4+parseInt(_0x659169(0x1a9))/0x5*(-parseInt(_0x659169(0x1ae))/0x6)+parseInt(_0x659169(0x1ab))/0x7*(parseInt(_0x659169(0x1a8))/0x8)+-parseInt(_0x659169(0x1ac))/0x9;if(_0x3523ef===_0x5c2301)break;else _0x1c5142['push'](_0x1c5142['shift']());}catch(_0x5c7ab3){_0x1c5142['push'](_0x1c5142['shift']());}}}(a28_0x31a2,0x4c1d1));function a28_0x31a2(){var _0x248354=['229596GkvAGa','32PcNoyC','198205ibtaAz','597321PrxUmO','950873VTevwf','6073893DXWXCa','988312JLOjmR','42ojjaMe','715284piCtLU'];a28_0x31a2=function(){return _0x248354;};return a28_0x31a2();}function a28_0x4338(_0x2ae9af,_0x5793a0){var _0x31a217=a28_0x31a2();return a28_0x4338=function(_0x43385f,_0x450b7){_0x43385f=_0x43385f-0x1a7;var _0x29af3c=_0x31a217[_0x43385f];return _0x29af3c;},a28_0x4338(_0x2ae9af,_0x5793a0);}import a28_0xde5c1f from'./mapView/Map';export{a28_0xde5c1f as Map2D};
@@ -1 +1 @@
1
- const a29_0x3fc37b=a29_0x53a6;(function(_0x2a7be6,_0x6944a1){const _0x9178e4=a29_0x53a6,_0x538803=_0x2a7be6();while(!![]){try{const _0x1b9b50=parseInt(_0x9178e4(0xaa))/0x1*(-parseInt(_0x9178e4(0xc3))/0x2)+-parseInt(_0x9178e4(0x7e))/0x3+-parseInt(_0x9178e4(0x86))/0x4+-parseInt(_0x9178e4(0xd4))/0x5+parseInt(_0x9178e4(0x8b))/0x6*(parseInt(_0x9178e4(0xa1))/0x7)+-parseInt(_0x9178e4(0xb6))/0x8+parseInt(_0x9178e4(0xc1))/0x9*(parseInt(_0x9178e4(0x8d))/0xa);if(_0x1b9b50===_0x6944a1)break;else _0x538803['push'](_0x538803['shift']());}catch(_0x57d3da){_0x538803['push'](_0x538803['shift']());}}}(a29_0x3032,0x3332c));import a29_0x5dc155 from'ol/events/Event';import a29_0x53ebde from'ol/interaction/Pointer';function a29_0x53a6(_0x52ea42,_0x3783e3){const _0x30321b=a29_0x3032();return a29_0x53a6=function(_0x53a600,_0x13a4bb){_0x53a600=_0x53a600-0x7d;let _0x57f5e9=_0x30321b[_0x53a600];return _0x57f5e9;},a29_0x53a6(_0x52ea42,_0x3783e3);}import{MultiPoint,Point}from'ol/geom';import a29_0x49ae0e from'ol/Feature';import a29_0x45a7b7,{createEditingStyle}from'ol/style/Style';import a29_0x5a4bbe from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0x309231 from'ol/style/Text';import a29_0x585a8a from'ol/style/Fill';import a29_0x1138bd from'ol/interaction/Property';function a29_0x3032(){const _0x28c831=['setGeometry','originalEvent','updateSketchFeatures_','button','length','Circle','handleMoveEvent','3917421HVZyDx','pixel','2fvdgND','getProjection','coordinate','abortDrawing','addFeature','getGeometry','push','addChangeListener','getText','showTip','buildDrawingFeature','atFinish_','setText','12px\x20Calibre,sans-serif','sqrt','_showTip','preventDefault','165005VfVPgW','wrapX','stopDown','_tipFeature','startDrawing_','dispatchEvent','setMap','drawstart','fixPoint','drawmoving','snapTolerance','finishDrawing','_minPoints','DRAWSTART','DRAWEND','drawaddpoint','_type','MAX_VALUE','ACTIVE','getType','34017BkgNUB','单击拖动绘制','_tipStyle','getCode','once','_snapTolerance','tipText','rectangle','1112740EufvZl','handleDownEvent','Rectangle','_sketchFeature','source','649182sosTgO','left','20ULOAqK','pointermove','indexOf','getView','getMap','单击开始绘制','rgba(255,\x20255,\x20255,\x201)','pop','Ellipsoid','DRAWMOVING','createMultiPointFeature','单击增加点,右击删除点','updateTip_','minPoint','setStyle','style','getOverlay','revert','point','DRAWADDPOINT','14QlTrCJ','handleUpEvent','_tipOverlay','unInternal','updateState_','DRAWABORT','addPoint','abortDrawing_','_isStayDraw','209123OpbCpV','rgba(0,\x200,\x200,\x200.4)','type','coordinates','_style','_overlay','getActive','clear','_drawingCoordinates','_fixPoint','getSource','_source','2764608kPqzWd','Ellipse','_features','drawend'];a29_0x3032=function(){return _0x28c831;};return a29_0x3032();}import a29_0x4e3ab4 from'ol/layer/Vector';import a29_0x1f3f69 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a29_0x3fc37b(0xdb),'DRAWEND':a29_0x3fc37b(0xb9),'DRAWABORT':'drawabort','DRAWADDPOINT':a29_0x3fc37b(0xe3),'DRAWMOVING':a29_0x3fc37b(0xdd)};export class DrawEvent extends a29_0x5dc155{constructor(_0x50280c,_0x9f227f,_0x57a4ec){const _0x551328=a29_0x3fc37b;super(_0x50280c),this['feature']=_0x9f227f,this[_0x551328(0xad)]=_0x57a4ec;}}export class ShEvent extends a29_0x5dc155{constructor(_0x56a606,_0xd5c5b2,_0x58d568,_0x32c9f3,_0xe38ed2){const _0x1cce00=a29_0x3fc37b;super(_0x56a606),this['projection']=_0xe38ed2,this[_0x1cce00(0xac)]=_0xd5c5b2,this[_0x1cce00(0xc5)]=_0x58d568,this[_0x1cce00(0xad)]=_0x32c9f3;}}export default class Draw extends a29_0x53ebde{constructor(_0x19ca74,_0x562e78){const _0x559766=a29_0x3fc37b,_0x2cda31=_0x562e78?_0x562e78:{};!_0x2cda31[_0x559766(0xd6)]&&(_0x2cda31['stopDown']=![]);super(_0x562e78),this['on']=this['onInternal'],this[_0x559766(0x82)]=this['onceInternal'],this['un']=this[_0x559766(0xa4)],this[_0x559766(0xa9)]=![],this[_0x559766(0xe4)]=_0x19ca74,this[_0x559766(0xae)]=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0x9c)],this[_0x559766(0xb5)]=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0x8a)],this[_0x559766(0xb8)]=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78['features'];const _0x52f970=getPlotCount(this['_type']);this[_0x559766(0xe0)]=_0x52f970[_0x559766(0x9a)],this['_fixPoint']=_0x52f970[_0x559766(0xdc)],this['tipText']=_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0x84)],this[_0x559766(0xd2)]=(_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0xcc)])==![]?![]:!![],this['_snapTolerance']=_0x2cda31[_0x559766(0xde)]?_0x2cda31[_0x559766(0xde)]:0x6,this[_0x559766(0xd7)]=new a29_0x49ae0e(),this[_0x559766(0x80)]=new a29_0x45a7b7({'text':new a29_0x309231({'font':_0x559766(0xd0),'fill':new a29_0x585a8a({'color':_0x559766(0x93)}),'backgroundFill':new a29_0x585a8a({'color':_0x559766(0xab)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x559766(0x8c),'offsetX':0xf})}),this[_0x559766(0xb2)]=[],this[_0x559766(0xa3)]=new a29_0x4e3ab4({'source':new a29_0x5a4bbe({'useSpatialIndex':![],'wrapX':(_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0xd5)])?_0x562e78[_0x559766(0xd5)]:![]})}),this[_0x559766(0xaf)]=new a29_0x4e3ab4({'source':new a29_0x5a4bbe({'useSpatialIndex':![],'wrapX':(_0x562e78===null||_0x562e78===void 0x0?void 0x0:_0x562e78[_0x559766(0xd5)])?_0x562e78[_0x559766(0xd5)]:![]}),'updateWhileInteracting':!![]}),this[_0x559766(0xca)](a29_0x1138bd[_0x559766(0xe6)],this[_0x559766(0xa5)]);}[a29_0x3fc37b(0xa5)](){const _0x3595ac=a29_0x3fc37b,_0x3dbea5=this['getMap'](),_0x49dfb3=this[_0x3595ac(0xb0)]();(!_0x3dbea5||!_0x49dfb3)&&this[_0x3595ac(0xc6)](),this[_0x3595ac(0xaf)]['setMap'](_0x49dfb3?_0x3dbea5:null),this[_0x3595ac(0xa3)][_0x3595ac(0xda)](_0x49dfb3?_0x3dbea5:null);}[a29_0x3fc37b(0xda)](_0x37454b){const _0x108938=a29_0x3fc37b;super['setMap'](_0x37454b),this[_0x108938(0xa5)]();}[a29_0x3fc37b(0x9b)](_0x15997c){const _0x51e483=a29_0x3fc37b;this[_0x51e483(0xae)]=_0x15997c?_0x15997c:{};}[a29_0x3fc37b(0x9d)](){const _0x1d3d33=a29_0x3fc37b;return this[_0x1d3d33(0xaf)];}[a29_0x3fc37b(0x87)](_0xb2be43){const _0x43cf3b=a29_0x3fc37b;if(_0xb2be43['originalEvent'][_0x43cf3b(0xbd)]===0x2)return _0xb2be43[_0x43cf3b(0xbb)][_0x43cf3b(0xd3)](),this[_0x43cf3b(0x9e)](),this[_0x43cf3b(0xc0)](_0xb2be43),![];return!![];}[a29_0x3fc37b(0xa2)](_0x530726){const _0x431301=a29_0x3fc37b;var _0x1ad396,_0xda28e0;if(this[_0x431301(0xe4)]==_0x431301(0x85)&&this[_0x431301(0xb2)][_0x431301(0xbe)]<0x1)return this[_0x431301(0xd9)](new DrawEvent(DrawEventType[_0x431301(0xe2)],undefined,[_0x530726['coordinate']])),![];if(!this['_isStayDraw'])this[_0x431301(0xd8)](_0x530726[_0x431301(0xc5)]),this[_0x431301(0xd9)](new ShEvent(DrawEventType[_0x431301(0xa0)],this['_type'],_0x530726[_0x431301(0xc5)],this[_0x431301(0xb2)],(_0x1ad396=this[_0x431301(0x91)]())===null||_0x1ad396===void 0x0?void 0x0:_0x1ad396[_0x431301(0x90)]()[_0x431301(0xc4)]()[_0x431301(0x81)]())),this[_0x431301(0xe4)]==_0x431301(0x9f)&&this[_0x431301(0xdf)]();else{if(this[_0x431301(0xb2)]&&this[_0x431301(0xb2)][_0x431301(0xbe)]>0x0){if(this[_0x431301(0xce)](_0x530726[_0x431301(0xc2)]))return this[_0x431301(0xdf)](),_0x530726[_0x431301(0xd3)](),![];let _0x2b1484=this[_0x431301(0xb2)][_0x431301(0xbe)]+0x1;_0x2b1484<=this[_0x431301(0xb3)]&&this[_0x431301(0xa7)](_0x530726[_0x431301(0xc5)]),this[_0x431301(0xd9)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x431301(0xe4)],_0x530726[_0x431301(0xc5)],this[_0x431301(0xb2)],(_0xda28e0=this[_0x431301(0x91)]())===null||_0xda28e0===void 0x0?void 0x0:_0xda28e0['getView']()[_0x431301(0xc4)]()['getCode']())),_0x2b1484>=this[_0x431301(0xe0)]&&this[_0x431301(0xcd)](this[_0x431301(0xb2)]),_0x2b1484===this['_fixPoint']&&this[_0x431301(0xdf)]();}}return _0x530726[_0x431301(0xd3)](),![];}['handleDragEvent'](_0x2cb72d){const _0x4ffccc=a29_0x3fc37b;var _0x299626;if(this[_0x4ffccc(0xe4)]==_0x4ffccc(0x85)&&_0x2cb72d[_0x4ffccc(0xbb)][_0x4ffccc(0xac)]==_0x4ffccc(0x8e)){if(!this[_0x4ffccc(0xa9)]){this[_0x4ffccc(0xd8)](_0x2cb72d[_0x4ffccc(0xc5)]),this[_0x4ffccc(0xd9)](new ShEvent(DrawEventType[_0x4ffccc(0xa0)],this[_0x4ffccc(0xe4)],_0x2cb72d[_0x4ffccc(0xc5)],this[_0x4ffccc(0xb2)],(_0x299626=this[_0x4ffccc(0x91)]())===null||_0x299626===void 0x0?void 0x0:_0x299626[_0x4ffccc(0x90)]()['getProjection']()[_0x4ffccc(0x81)]()));return;}let _0x28725f=[...this[_0x4ffccc(0xb2)],_0x2cb72d[_0x4ffccc(0xc5)]];this[_0x4ffccc(0xcd)](_0x28725f),this[_0x4ffccc(0xd9)](new DrawEvent(DrawEventType[_0x4ffccc(0x96)],this[_0x4ffccc(0x89)],this['_drawingCoordinates']));}}[a29_0x3fc37b(0xc0)](_0x50e2ca){const _0x117143=a29_0x3fc37b;var _0x19c746,_0x3a9a3b,_0x1f3ac6;let _0x2356be='';this[_0x117143(0xe4)]==_0x117143(0x8e)&&(this[_0x117143(0xd8)](_0x50e2ca['coordinate']),this[_0x117143(0xd9)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x117143(0xe4)],_0x50e2ca[_0x117143(0xc5)],this['_drawingCoordinates'],(_0x19c746=this[_0x117143(0x91)]())===null||_0x19c746===void 0x0?void 0x0:_0x19c746[_0x117143(0x90)]()[_0x117143(0xc4)]()[_0x117143(0x81)]())),this[_0x117143(0xdf)]());!this[_0x117143(0xa9)]?_0x2356be=this['_type']==_0x117143(0x85)?_0x117143(0x7f):_0x117143(0x92):(_0x2356be=_0x117143(0x98),((_0x3a9a3b=this[_0x117143(0xb2)])===null||_0x3a9a3b===void 0x0?void 0x0:_0x3a9a3b[_0x117143(0xbe)])===this[_0x117143(0xb3)]-0x1&&(_0x2356be='单击结束绘制,右击删除点'),((_0x1f3ac6=this[_0x117143(0xb2)])===null||_0x1f3ac6===void 0x0?void 0x0:_0x1f3ac6['length'])>=this['_minPoints']&&this['_fixPoint']===Number[_0x117143(0xe5)]&&(_0x2356be='单击增加点,右击删除点双击完成绘制'));this[_0x117143(0x84)]!=undefined&&(_0x2356be=this[_0x117143(0x84)]);this[_0x117143(0x99)](_0x50e2ca['coordinate'],_0x2356be);if(this[_0x117143(0xa9)]&&this[_0x117143(0xe4)]!=_0x117143(0x85)){let _0x46fa4e=[...this[_0x117143(0xb2)],_0x50e2ca[_0x117143(0xc5)]];this['buildDrawingFeature'](_0x46fa4e),this[_0x117143(0xd9)](new DrawEvent(DrawEventType[_0x117143(0x96)],this['_sketchFeature'],this[_0x117143(0xb2)]));}}[a29_0x3fc37b(0xce)](_0x1ea7bf){const _0x25d5c0=a29_0x3fc37b;var _0x176ba2;let _0x18846e=![],_0x266c22=this['_drawingCoordinates']['length'];if(_0x266c22>this[_0x25d5c0(0xe0)]&&this[_0x25d5c0(0xb3)]===Number['MAX_VALUE']){const _0x3be93a=this[_0x25d5c0(0xb2)][this['_drawingCoordinates'][_0x25d5c0(0xbe)]-0x1],_0x22c74d=(_0x176ba2=this[_0x25d5c0(0x91)]())===null||_0x176ba2===void 0x0?void 0x0:_0x176ba2['getPixelFromCoordinate'](_0x3be93a),_0x34a709=_0x1ea7bf[0x0]-(_0x22c74d?_0x22c74d[0x0]:0x0),_0xd8c62b=_0x1ea7bf[0x1]-(_0x22c74d?_0x22c74d[0x1]:0x0);_0x18846e=Math[_0x25d5c0(0xd1)](_0x34a709*_0x34a709+_0xd8c62b*_0xd8c62b)<=this[_0x25d5c0(0x83)];}return _0x18846e;}[a29_0x3fc37b(0xd8)](_0x4104a4){const _0x325de2=a29_0x3fc37b;this[_0x325de2(0xa9)]=!![],this[_0x325de2(0xb2)]=[_0x4104a4['slice']()],this[_0x325de2(0x89)]=this[_0x325de2(0x97)](),this['updateSketchFeatures_'](),this[_0x325de2(0xd9)](new DrawEvent(DrawEventType[_0x325de2(0xe1)],this[_0x325de2(0x89)],this[_0x325de2(0xb2)]));}[a29_0x3fc37b(0xdf)](){const _0x35e931=a29_0x3fc37b;if(this['_drawingCoordinates'][_0x35e931(0xbe)]>this[_0x35e931(0xe0)]){this[_0x35e931(0xcd)](this[_0x35e931(0xb2)]);let _0x1a4042=this['_drawingCoordinates'];const _0x266de8=this[_0x35e931(0xa8)]();if(!_0x266de8)return;this[_0x35e931(0xd9)](new DrawEvent(DrawEventType['DRAWEND'],_0x266de8,_0x1a4042)),this[_0x35e931(0xb8)]&&this[_0x35e931(0xb8)][_0x35e931(0xc9)](_0x266de8),this[_0x35e931(0xb5)]&&this['_source'][_0x35e931(0xc7)](_0x266de8);}}[a29_0x3fc37b(0xa7)](_0x2dc8c3){const _0x5d6be4=a29_0x3fc37b;this[_0x5d6be4(0xb2)]['push'](_0x2dc8c3),this['_sketchFeature']=this[_0x5d6be4(0x97)](),this[_0x5d6be4(0xbc)]();}[a29_0x3fc37b(0x97)](){const _0x6689b6=a29_0x3fc37b,_0x137fd5=new MultiPoint(this[_0x6689b6(0xb2)]);let _0x355881=new a29_0x49ae0e();return _0x355881[_0x6689b6(0xba)](_0x137fd5),_0x355881;}[a29_0x3fc37b(0xa8)](){const _0xe48714=a29_0x3fc37b;var _0x5ada4e,_0x1eaa9c;this['_isStayDraw']=![];const _0x26358c=this[_0xe48714(0x89)];return this['_sketchFeature']=undefined,this['_drawingCoordinates']=[],(_0x5ada4e=this[_0xe48714(0xaf)]['getSource']())===null||_0x5ada4e===void 0x0?void 0x0:_0x5ada4e[_0xe48714(0xb1)](!![]),(_0x1eaa9c=this[_0xe48714(0xa3)][_0xe48714(0xb4)]())===null||_0x1eaa9c===void 0x0?void 0x0:_0x1eaa9c[_0xe48714(0xb1)](!![]),_0x26358c;}[a29_0x3fc37b(0xc6)](){const _0x1dc526=a29_0x3fc37b,_0x38bd76=this[_0x1dc526(0xa8)]();_0x38bd76&&this[_0x1dc526(0xd9)](new DrawEvent(DrawEventType[_0x1dc526(0xa6)],_0x38bd76,this[_0x1dc526(0xb2)]));}[a29_0x3fc37b(0xcd)](_0x281da1){const _0xf163bd=a29_0x3fc37b;this['_sketchFeature']=new a29_0x49ae0e();let _0x15cf0d=createPlot(this[_0xf163bd(0xe4)],_0x281da1);if(!_0x15cf0d)return;this[_0xf163bd(0x89)][_0xf163bd(0xba)](_0x15cf0d);let _0x2ccb34=[a29_0x1f3f69[_0xf163bd(0xbf)],a29_0x1f3f69[_0xf163bd(0x95)],a29_0x1f3f69[_0xf163bd(0xb7)]];if(_0x2ccb34[_0xf163bd(0x8f)](this['_type'])>-0x1&&this[_0xf163bd(0xae)]){}const _0xbb165=this[_0xf163bd(0x91)]();this[_0xf163bd(0x89)]['setStyle'](getStyle(this[_0xf163bd(0xe4)],this[_0xf163bd(0xae)],this[_0xf163bd(0x91)]())),this[_0xf163bd(0xbc)]();}['updateSketchFeatures_'](){const _0x4b6a0e=a29_0x3fc37b,_0x1bc8b2=this['_overlay']['getSource']();_0x1bc8b2&&this[_0x4b6a0e(0x89)]&&(_0x1bc8b2[_0x4b6a0e(0xb1)](!![]),_0x1bc8b2['addFeature'](this[_0x4b6a0e(0x89)]));}['revert'](){const _0x312e85=a29_0x3fc37b;if(this[_0x312e85(0xa9)]){if(this[_0x312e85(0xb2)]&&this['_drawingCoordinates'][_0x312e85(0xbe)]>0x0){const _0x527748=this[_0x312e85(0xaf)][_0x312e85(0xb4)]();_0x527748===null||_0x527748===void 0x0?void 0x0:_0x527748[_0x312e85(0xb1)](!![]),this[_0x312e85(0xb2)][_0x312e85(0x94)](),this['_drawingCoordinates']['length']>=this[_0x312e85(0xe0)]&&this[_0x312e85(0xcd)](this[_0x312e85(0xb2)]),this[_0x312e85(0xb2)][_0x312e85(0xbe)]===0x0&&(this[_0x312e85(0xa9)]=![]);}}}[a29_0x3fc37b(0x99)](_0x3ddb1b,_0x5db1ed){const _0x5a33ec=a29_0x3fc37b;var _0x518ded,_0x127ff2,_0x5f55d6,_0x128181;if(!this[_0x5a33ec(0xd2)])return;const _0x41c8db=this[_0x5a33ec(0xa3)][_0x5a33ec(0xb4)]();_0x41c8db===null||_0x41c8db===void 0x0?void 0x0:_0x41c8db[_0x5a33ec(0xb1)](!![]),(_0x518ded=this[_0x5a33ec(0xd7)])===null||_0x518ded===void 0x0?void 0x0:_0x518ded[_0x5a33ec(0xba)](new Point(_0x3ddb1b)),(_0x5f55d6=(_0x127ff2=this['_tipStyle'])===null||_0x127ff2===void 0x0?void 0x0:_0x127ff2[_0x5a33ec(0xcb)]())===null||_0x5f55d6===void 0x0?void 0x0:_0x5f55d6[_0x5a33ec(0xcf)](_0x5db1ed),(_0x128181=this[_0x5a33ec(0xd7)])===null||_0x128181===void 0x0?void 0x0:_0x128181[_0x5a33ec(0x9b)](this['_tipStyle']),this[_0x5a33ec(0xd7)]&&(_0x41c8db===null||_0x41c8db===void 0x0?void 0x0:_0x41c8db[_0x5a33ec(0xc7)](this[_0x5a33ec(0xd7)]));}}function getDefaultStyleFunction(){const _0x4e0ee2=createEditingStyle();return function(_0x32dd89,_0x1c91d5){const _0x2ceabd=a29_0x53a6,_0x1307a5=_0x4e0ee2[_0x32dd89[_0x2ceabd(0xc8)]()['getType']()];if(_0x1307a5&&_0x2ceabd(0x88)==_0x32dd89['getGeometry']()[_0x2ceabd(0x7d)]()){}};}
1
+ const a29_0x18600e=a29_0x5873;function a29_0x5873(_0x5280fe,_0x57da64){const _0x2acde9=a29_0x2acd();return a29_0x5873=function(_0x587356,_0x297425){_0x587356=_0x587356-0x11d;let _0x4feeee=_0x2acde9[_0x587356];return _0x4feeee;},a29_0x5873(_0x5280fe,_0x57da64);}(function(_0x184b26,_0x4fd83d){const _0x3ebf13=a29_0x5873,_0xad05b8=_0x184b26();while(!![]){try{const _0x4df8c3=parseInt(_0x3ebf13(0x155))/0x1*(-parseInt(_0x3ebf13(0x129))/0x2)+-parseInt(_0x3ebf13(0x177))/0x3*(parseInt(_0x3ebf13(0x150))/0x4)+parseInt(_0x3ebf13(0x14f))/0x5*(parseInt(_0x3ebf13(0x14c))/0x6)+parseInt(_0x3ebf13(0x12a))/0x7*(-parseInt(_0x3ebf13(0x152))/0x8)+-parseInt(_0x3ebf13(0x127))/0x9*(parseInt(_0x3ebf13(0x13c))/0xa)+parseInt(_0x3ebf13(0x17b))/0xb*(parseInt(_0x3ebf13(0x136))/0xc)+parseInt(_0x3ebf13(0x182))/0xd*(parseInt(_0x3ebf13(0x132))/0xe);if(_0x4df8c3===_0x4fd83d)break;else _0xad05b8['push'](_0xad05b8['shift']());}catch(_0x13fed8){_0xad05b8['push'](_0xad05b8['shift']());}}}(a29_0x2acd,0x28026));import a29_0xe46ccc from'ol/events/Event';import a29_0x182f72 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a29_0x488d6b from'ol/Feature';import a29_0x20ace2,{createEditingStyle}from'ol/style/Style';import a29_0x2c0abc from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0x1ed062 from'ol/style/Text';import a29_0x269e5d from'ol/style/Fill';import a29_0x46e7d3 from'ol/interaction/Property';import a29_0x6ffa6c from'ol/layer/Vector';function a29_0x2acd(){const _0x258635=['clear','push','_style','features','snapTolerance','DRAWADDPOINT','atFinish_','preventDefault','MAX_VALUE','once','_drawingCoordinates','Circle','_type','rgba(0,\x200,\x200,\x200.4)','12px\x20Calibre,sans-serif','getMap','rgba(255,\x20255,\x20255,\x201)','type','getProjection','getActive','44349MJZXrV','getOverlay','_tipFeature','abortDrawing','1192851KNxupH','pointermove','drawend','updateState_','abortDrawing_','_sketchFeature','addFeature','524459BYlypz','DRAWEND','getSource','pixel','rectangle','startDrawing_','showTip','_tipStyle','addPoint','length','tipText','dispatchEvent','_isStayDraw','addChangeListener','onceInternal','1143iaGUnP','drawstart','4cLuxje','232953UEdFYx','_source','indexOf','_overlay','button','fixPoint','DRAWSTART','_minPoints','70gyANKT','source','Ellipse','getGeometry','24VGLvcC','DRAWABORT','originalEvent','drawaddpoint','updateSketchFeatures_','setStyle','3620lMVuZd','stopDown','Ellipsoid','createMultiPointFeature','_tipOverlay','getPixelFromCoordinate','pop','getCode','slice','getType','单击增加点,右击删除点','wrapX','单击增加点,右击删除点双击完成绘制','coordinate','finishDrawing','sqrt','6yJZgnA','_features','setGeometry','513870pdsfPK','32PKEqeH','point','8UTzDHJ','handleMoveEvent','单击结束绘制,右击删除点','79988FxZPUc','_fixPoint','_snapTolerance','onInternal','单击拖动绘制','setMap','coordinates','_showTip','projection','单击开始绘制','buildDrawingFeature','getView','revert','style'];a29_0x2acd=function(){return _0x258635;};return a29_0x2acd();}import a29_0x40278c from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a29_0x18600e(0x128),'DRAWEND':a29_0x18600e(0x17d),'DRAWABORT':'drawabort','DRAWADDPOINT':a29_0x18600e(0x139),'DRAWMOVING':'drawmoving'};export class DrawEvent extends a29_0xe46ccc{constructor(_0x4a210b,_0xb3649f,_0x3ebd22){const _0x61fa0b=a29_0x18600e;super(_0x4a210b),this['feature']=_0xb3649f,this[_0x61fa0b(0x15b)]=_0x3ebd22;}}export class ShEvent extends a29_0xe46ccc{constructor(_0x15684c,_0x3164e7,_0x2e08cf,_0x5cd28f,_0x4e7e1b){const _0x5a5f4a=a29_0x18600e;super(_0x15684c),this[_0x5a5f4a(0x15d)]=_0x4e7e1b,this[_0x5a5f4a(0x174)]=_0x3164e7,this[_0x5a5f4a(0x149)]=_0x2e08cf,this[_0x5a5f4a(0x15b)]=_0x5cd28f;}}export default class Draw extends a29_0x182f72{constructor(_0xe5c907,_0x57e503){const _0x5e5c5b=a29_0x18600e,_0x2c8ec5=_0x57e503?_0x57e503:{};!_0x2c8ec5[_0x5e5c5b(0x13d)]&&(_0x2c8ec5[_0x5e5c5b(0x13d)]=![]);super(_0x57e503),this['on']=this[_0x5e5c5b(0x158)],this[_0x5e5c5b(0x16c)]=this[_0x5e5c5b(0x126)],this['un']=this['unInternal'],this[_0x5e5c5b(0x124)]=![],this['_type']=_0xe5c907,this[_0x5e5c5b(0x165)]=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x162)],this[_0x5e5c5b(0x12b)]=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x133)],this['_features']=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x166)];const _0x18c6c3=getPlotCount(this[_0x5e5c5b(0x16f)]);this['_minPoints']=_0x18c6c3['minPoint'],this['_fixPoint']=_0x18c6c3[_0x5e5c5b(0x12f)],this[_0x5e5c5b(0x122)]=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x122)],this['_showTip']=(_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x11e)])==![]?![]:!![],this[_0x5e5c5b(0x157)]=_0x2c8ec5['snapTolerance']?_0x2c8ec5[_0x5e5c5b(0x167)]:0x6,this[_0x5e5c5b(0x179)]=new a29_0x488d6b(),this[_0x5e5c5b(0x11f)]=new a29_0x20ace2({'text':new a29_0x1ed062({'font':_0x5e5c5b(0x171),'fill':new a29_0x269e5d({'color':_0x5e5c5b(0x173)}),'backgroundFill':new a29_0x269e5d({'color':_0x5e5c5b(0x170)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x5e5c5b(0x16d)]=[],this[_0x5e5c5b(0x140)]=new a29_0x6ffa6c({'source':new a29_0x2c0abc({'useSpatialIndex':![],'wrapX':(_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x147)])?_0x57e503[_0x5e5c5b(0x147)]:![]})}),this[_0x5e5c5b(0x12d)]=new a29_0x6ffa6c({'source':new a29_0x2c0abc({'useSpatialIndex':![],'wrapX':(_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x147)])?_0x57e503[_0x5e5c5b(0x147)]:![]}),'updateWhileInteracting':!![]}),this[_0x5e5c5b(0x125)](a29_0x46e7d3['ACTIVE'],this[_0x5e5c5b(0x17e)]);}[a29_0x18600e(0x17e)](){const _0x1bfb22=a29_0x18600e,_0x502755=this[_0x1bfb22(0x172)](),_0x479dbc=this[_0x1bfb22(0x176)]();(!_0x502755||!_0x479dbc)&&this['abortDrawing'](),this['_overlay'][_0x1bfb22(0x15a)](_0x479dbc?_0x502755:null),this[_0x1bfb22(0x140)][_0x1bfb22(0x15a)](_0x479dbc?_0x502755:null);}[a29_0x18600e(0x15a)](_0x579d4c){const _0x3190ee=a29_0x18600e;super[_0x3190ee(0x15a)](_0x579d4c),this['updateState_']();}[a29_0x18600e(0x13b)](_0x14b871){const _0x2fef4a=a29_0x18600e;this[_0x2fef4a(0x165)]=_0x14b871?_0x14b871:{};}[a29_0x18600e(0x178)](){const _0x169598=a29_0x18600e;return this[_0x169598(0x12d)];}['handleDownEvent'](_0x2199e6){const _0xbaf932=a29_0x18600e;if(_0x2199e6['originalEvent'][_0xbaf932(0x12e)]===0x2)return _0x2199e6[_0xbaf932(0x138)][_0xbaf932(0x16a)](),this['revert'](),this[_0xbaf932(0x153)](_0x2199e6),![];return!![];}['handleUpEvent'](_0x1783dc){const _0x3db66c=a29_0x18600e;var _0x39c9b4,_0x4f1e99;if(this[_0x3db66c(0x16f)]=='rectangle'&&this[_0x3db66c(0x16d)][_0x3db66c(0x121)]<0x1)return this[_0x3db66c(0x123)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x1783dc[_0x3db66c(0x149)]])),![];if(!this[_0x3db66c(0x124)])this[_0x3db66c(0x11d)](_0x1783dc['coordinate']),this[_0x3db66c(0x123)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x3db66c(0x16f)],_0x1783dc[_0x3db66c(0x149)],this[_0x3db66c(0x16d)],(_0x39c9b4=this[_0x3db66c(0x172)]())===null||_0x39c9b4===void 0x0?void 0x0:_0x39c9b4['getView']()[_0x3db66c(0x175)]()[_0x3db66c(0x143)]())),this[_0x3db66c(0x16f)]==_0x3db66c(0x151)&&this[_0x3db66c(0x14a)]();else{if(this[_0x3db66c(0x16d)]&&this[_0x3db66c(0x16d)][_0x3db66c(0x121)]>0x0){if(this[_0x3db66c(0x169)](_0x1783dc[_0x3db66c(0x185)]))return this['finishDrawing'](),_0x1783dc[_0x3db66c(0x16a)](),![];let _0x2019fc=this[_0x3db66c(0x16d)][_0x3db66c(0x121)]+0x1;_0x2019fc<=this['_fixPoint']&&this[_0x3db66c(0x120)](_0x1783dc['coordinate']),this[_0x3db66c(0x123)](new ShEvent(DrawEventType[_0x3db66c(0x168)],this['_type'],_0x1783dc[_0x3db66c(0x149)],this[_0x3db66c(0x16d)],(_0x4f1e99=this[_0x3db66c(0x172)]())===null||_0x4f1e99===void 0x0?void 0x0:_0x4f1e99[_0x3db66c(0x160)]()[_0x3db66c(0x175)]()[_0x3db66c(0x143)]())),_0x2019fc>=this[_0x3db66c(0x131)]&&this['buildDrawingFeature'](this[_0x3db66c(0x16d)]),_0x2019fc===this['_fixPoint']&&this['finishDrawing']();}}return _0x1783dc[_0x3db66c(0x16a)](),![];}['handleDragEvent'](_0x4bc88d){const _0xbd7243=a29_0x18600e;var _0x307291;if(this['_type']=='rectangle'&&_0x4bc88d[_0xbd7243(0x138)][_0xbd7243(0x174)]==_0xbd7243(0x17c)){if(!this['_isStayDraw']){this[_0xbd7243(0x11d)](_0x4bc88d[_0xbd7243(0x149)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0xbd7243(0x168)],this['_type'],_0x4bc88d[_0xbd7243(0x149)],this[_0xbd7243(0x16d)],(_0x307291=this[_0xbd7243(0x172)]())===null||_0x307291===void 0x0?void 0x0:_0x307291['getView']()[_0xbd7243(0x175)]()[_0xbd7243(0x143)]()));return;}let _0x427a60=[...this[_0xbd7243(0x16d)],_0x4bc88d[_0xbd7243(0x149)]];this['buildDrawingFeature'](_0x427a60),this[_0xbd7243(0x123)](new DrawEvent(DrawEventType['DRAWMOVING'],this['_sketchFeature'],this[_0xbd7243(0x16d)]));}}[a29_0x18600e(0x153)](_0x13046b){const _0x24798b=a29_0x18600e;var _0x16c78b,_0x3fb348,_0x157806;let _0x4f5897='';this['_type']==_0x24798b(0x17c)&&(this[_0x24798b(0x11d)](_0x13046b[_0x24798b(0x149)]),this[_0x24798b(0x123)](new ShEvent(DrawEventType[_0x24798b(0x168)],this['_type'],_0x13046b[_0x24798b(0x149)],this[_0x24798b(0x16d)],(_0x16c78b=this['getMap']())===null||_0x16c78b===void 0x0?void 0x0:_0x16c78b['getView']()[_0x24798b(0x175)]()[_0x24798b(0x143)]())),this[_0x24798b(0x14a)]());!this[_0x24798b(0x124)]?_0x4f5897=this[_0x24798b(0x16f)]==_0x24798b(0x186)?_0x24798b(0x159):_0x24798b(0x15e):(_0x4f5897=_0x24798b(0x146),((_0x3fb348=this[_0x24798b(0x16d)])===null||_0x3fb348===void 0x0?void 0x0:_0x3fb348[_0x24798b(0x121)])===this['_fixPoint']-0x1&&(_0x4f5897=_0x24798b(0x154)),((_0x157806=this['_drawingCoordinates'])===null||_0x157806===void 0x0?void 0x0:_0x157806['length'])>=this[_0x24798b(0x131)]&&this[_0x24798b(0x156)]===Number[_0x24798b(0x16b)]&&(_0x4f5897=_0x24798b(0x148)));this[_0x24798b(0x122)]!=undefined&&(_0x4f5897=this[_0x24798b(0x122)]);this['updateTip_'](_0x13046b[_0x24798b(0x149)],_0x4f5897);if(this['_isStayDraw']&&this[_0x24798b(0x16f)]!=_0x24798b(0x186)){let _0x7487fc=[...this[_0x24798b(0x16d)],_0x13046b[_0x24798b(0x149)]];this[_0x24798b(0x15f)](_0x7487fc),this[_0x24798b(0x123)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x24798b(0x180)],this['_drawingCoordinates']));}}['atFinish_'](_0xd5851b){const _0xe12f09=a29_0x18600e;var _0x653919;let _0x3951b1=![],_0x1d07e2=this[_0xe12f09(0x16d)][_0xe12f09(0x121)];if(_0x1d07e2>this[_0xe12f09(0x131)]&&this['_fixPoint']===Number[_0xe12f09(0x16b)]){const _0x27db71=this[_0xe12f09(0x16d)][this['_drawingCoordinates'][_0xe12f09(0x121)]-0x1],_0x37e938=(_0x653919=this[_0xe12f09(0x172)]())===null||_0x653919===void 0x0?void 0x0:_0x653919[_0xe12f09(0x141)](_0x27db71),_0x504ebf=_0xd5851b[0x0]-(_0x37e938?_0x37e938[0x0]:0x0),_0x4b7f17=_0xd5851b[0x1]-(_0x37e938?_0x37e938[0x1]:0x0);_0x3951b1=Math[_0xe12f09(0x14b)](_0x504ebf*_0x504ebf+_0x4b7f17*_0x4b7f17)<=this[_0xe12f09(0x157)];}return _0x3951b1;}[a29_0x18600e(0x11d)](_0x52f593){const _0x3d676e=a29_0x18600e;this[_0x3d676e(0x124)]=!![],this[_0x3d676e(0x16d)]=[_0x52f593[_0x3d676e(0x144)]()],this['_sketchFeature']=this['createMultiPointFeature'](),this['updateSketchFeatures_'](),this[_0x3d676e(0x123)](new DrawEvent(DrawEventType[_0x3d676e(0x130)],this[_0x3d676e(0x180)],this[_0x3d676e(0x16d)]));}[a29_0x18600e(0x14a)](){const _0x49cb35=a29_0x18600e;if(this['_drawingCoordinates'][_0x49cb35(0x121)]>this[_0x49cb35(0x131)]){this[_0x49cb35(0x15f)](this[_0x49cb35(0x16d)]);let _0xbede98=this['_drawingCoordinates'];const _0x24ff7a=this[_0x49cb35(0x17f)]();if(!_0x24ff7a)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x49cb35(0x183)],_0x24ff7a,_0xbede98)),this['_features']&&this[_0x49cb35(0x14d)][_0x49cb35(0x164)](_0x24ff7a),this[_0x49cb35(0x12b)]&&this[_0x49cb35(0x12b)]['addFeature'](_0x24ff7a);}}[a29_0x18600e(0x120)](_0x4619){const _0x5d0450=a29_0x18600e;this[_0x5d0450(0x16d)][_0x5d0450(0x164)](_0x4619),this['_sketchFeature']=this[_0x5d0450(0x13f)](),this[_0x5d0450(0x13a)]();}[a29_0x18600e(0x13f)](){const _0x55c7fb=a29_0x18600e,_0x5476f2=new MultiPoint(this['_drawingCoordinates']);let _0x30babf=new a29_0x488d6b();return _0x30babf[_0x55c7fb(0x14e)](_0x5476f2),_0x30babf;}[a29_0x18600e(0x17f)](){const _0x49541f=a29_0x18600e;var _0x22f495,_0x29d301;this['_isStayDraw']=![];const _0x1bb279=this[_0x49541f(0x180)];return this[_0x49541f(0x180)]=undefined,this[_0x49541f(0x16d)]=[],(_0x22f495=this['_overlay'][_0x49541f(0x184)]())===null||_0x22f495===void 0x0?void 0x0:_0x22f495[_0x49541f(0x163)](!![]),(_0x29d301=this[_0x49541f(0x140)][_0x49541f(0x184)]())===null||_0x29d301===void 0x0?void 0x0:_0x29d301[_0x49541f(0x163)](!![]),_0x1bb279;}[a29_0x18600e(0x17a)](){const _0x774c21=a29_0x18600e,_0x3d3d4f=this[_0x774c21(0x17f)]();_0x3d3d4f&&this[_0x774c21(0x123)](new DrawEvent(DrawEventType[_0x774c21(0x137)],_0x3d3d4f,this['_drawingCoordinates']));}[a29_0x18600e(0x15f)](_0x128668){const _0x562bc3=a29_0x18600e;this[_0x562bc3(0x180)]=new a29_0x488d6b();let _0x5af6fe=createPlot(this[_0x562bc3(0x16f)],_0x128668);if(!_0x5af6fe)return;this[_0x562bc3(0x180)][_0x562bc3(0x14e)](_0x5af6fe);let _0x31367f=[a29_0x40278c[_0x562bc3(0x16e)],a29_0x40278c[_0x562bc3(0x13e)],a29_0x40278c[_0x562bc3(0x134)]];if(_0x31367f[_0x562bc3(0x12c)](this[_0x562bc3(0x16f)])>-0x1&&this[_0x562bc3(0x165)]){}const _0x350808=this['getMap']();this['_sketchFeature'][_0x562bc3(0x13b)](getStyle(this[_0x562bc3(0x16f)],this[_0x562bc3(0x165)],this['getMap']())),this[_0x562bc3(0x13a)]();}[a29_0x18600e(0x13a)](){const _0x122f0c=a29_0x18600e,_0xf90509=this[_0x122f0c(0x12d)][_0x122f0c(0x184)]();_0xf90509&&this[_0x122f0c(0x180)]&&(_0xf90509[_0x122f0c(0x163)](!![]),_0xf90509[_0x122f0c(0x181)](this['_sketchFeature']));}[a29_0x18600e(0x161)](){const _0x119089=a29_0x18600e;if(this[_0x119089(0x124)]){if(this['_drawingCoordinates']&&this['_drawingCoordinates'][_0x119089(0x121)]>0x0){const _0x5df830=this[_0x119089(0x12d)][_0x119089(0x184)]();_0x5df830===null||_0x5df830===void 0x0?void 0x0:_0x5df830[_0x119089(0x163)](!![]),this['_drawingCoordinates'][_0x119089(0x142)](),this['_drawingCoordinates'][_0x119089(0x121)]>=this['_minPoints']&&this['buildDrawingFeature'](this[_0x119089(0x16d)]),this[_0x119089(0x16d)][_0x119089(0x121)]===0x0&&(this[_0x119089(0x124)]=![]);}}}['updateTip_'](_0x385251,_0x58e785){const _0x37deb6=a29_0x18600e;var _0x2936ec,_0x1d58a4,_0x512925,_0x197554;if(!this[_0x37deb6(0x15c)])return;const _0x3e0a36=this[_0x37deb6(0x140)][_0x37deb6(0x184)]();_0x3e0a36===null||_0x3e0a36===void 0x0?void 0x0:_0x3e0a36[_0x37deb6(0x163)](!![]),(_0x2936ec=this['_tipFeature'])===null||_0x2936ec===void 0x0?void 0x0:_0x2936ec['setGeometry'](new Point(_0x385251)),(_0x512925=(_0x1d58a4=this[_0x37deb6(0x11f)])===null||_0x1d58a4===void 0x0?void 0x0:_0x1d58a4['getText']())===null||_0x512925===void 0x0?void 0x0:_0x512925['setText'](_0x58e785),(_0x197554=this['_tipFeature'])===null||_0x197554===void 0x0?void 0x0:_0x197554[_0x37deb6(0x13b)](this[_0x37deb6(0x11f)]),this[_0x37deb6(0x179)]&&(_0x3e0a36===null||_0x3e0a36===void 0x0?void 0x0:_0x3e0a36[_0x37deb6(0x181)](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x381984=createEditingStyle();return function(_0x2371e5,_0x251740){const _0x30b5ce=a29_0x5873,_0x42d6b6=_0x381984[_0x2371e5[_0x30b5ce(0x135)]()[_0x30b5ce(0x145)]()];if(_0x42d6b6&&'Rectangle'==_0x2371e5[_0x30b5ce(0x135)]()[_0x30b5ce(0x145)]()){}};}