ym-gis-2d 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/MapTileLayer.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +1 -1
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PointStyleFormat.js.map +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/utils/format/CQL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a83_0x54764e=a83_0x5638;function a83_0x5638(_0x16a3f6,_0x2d3ac4){const _0x25593d=a83_0x2559();return a83_0x5638=function(_0x563817,_0x57407f){_0x563817=_0x563817-0x170;let _0x182eb3=_0x25593d[_0x563817];return _0x182eb3;},a83_0x5638(_0x16a3f6,_0x2d3ac4);}(function(_0x3cc048,_0x511cdd){const _0x7ccca3=a83_0x5638,_0x385145=_0x3cc048();while(!![]){try{const _0x433bd8=-parseInt(_0x7ccca3(0x1b1))/0x1+parseInt(_0x7ccca3(0x1a1))/0x2+-parseInt(_0x7ccca3(0x175))/0x3+-parseInt(_0x7ccca3(0x1ce))/0x4*(-parseInt(_0x7ccca3(0x1b2))/0x5)+parseInt(_0x7ccca3(0x1bd))/0x6*(-parseInt(_0x7ccca3(0x1b8))/0x7)+-parseInt(_0x7ccca3(0x1dc))/0x8+-parseInt(_0x7ccca3(0x1a8))/0x9*(-parseInt(_0x7ccca3(0x1b9))/0xa);if(_0x433bd8===_0x511cdd)break;else _0x385145['push'](_0x385145['shift']());}catch(_0x2627da){_0x385145['push'](_0x385145['shift']());}}}(a83_0x2559,0x3f12a));import*as a83_0x1d6f09 from'ol/format/filter';import{WKT}from'ol/format';function a83_0x2559(){const _0x28ae20=['join','replace','warn','property','pop','RPAREN','NOT','COMPARISON','LIKE','expression','toUpperCase','replaceAll','exec','within','\x20AND\x20','tagName_','between','indexOf','IS_NULL','LPAREN','intersects','END','lastIndexOf','upperBoundary','lowerBoundary','\x20BETWEEN\x20','type','727948uNgLAl','WITHIN(','CLASS_NAME','\x0a\x20\x20\x20\x20','greaterThanOrEqualTo','propertyName','Unknown\x20token\x20type\x20','1231209dwZfOr','Can\x27t\x20encode:\x20','CQL解析失败:','greaterThan','buildAst','No\x20follows\x20list\x20for\x20','LOGICAL','match','BBOX(','250051FgqwvA','1008310cxtGMF','NOT\x20(','readGeometry','PROPERTY','GEOMETRY','SPATIAL','7pWILmx','70VlLhbd','split','string','number','1932396zJMnEm','],\x20expected\x20one\x20of:\x20','push','remainder','Contains','shift','lessThanOrEqualTo','charAt','\x20or\x20','PropertyIsNotEqualTo','PropertyIsGreaterThan','length','geometry','index','contains','tryToken','extent','4RqpBjw','BBOX','Intersects','VALUE','write','lessThan','substring','geometryName','equalTo','operators','ERROR:\x20In\x20parsing:\x20[','toLowerCase','follows','condition','1655832CMZQjg','operatorReverse','CONTAINS(','PropertyIsEqualTo','and','PropertyIsBetween','not','WITHIN','logicals','1457403kUHvEP','PropertyIsGreaterThanOrEqualTo','nextToken','conditions','patterns','COMMA','CONTAINS','BETWEEN','like','INTERSECTS(','read','precedence','isNull','notEqualTo','text','tokenize','PropertyIsLessThan'];a83_0x2559=function(){return _0x28ae20;};return a83_0x2559();}import a83_0x297c29 from'ol/geom/Geometry';export default class CQL{constructor(){const _0x18726c=a83_0x5638;this['inPatterns']=/ (IN) /i,this['tokens']=['PROPERTY',_0x18726c(0x18d),_0x18726c(0x1d1),_0x18726c(0x1ae)],this[_0x18726c(0x179)]={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0x4ddd9c){const _0x17e0bc=_0x18726c;let _0x1cae35=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/['exec'](_0x4ddd9c);if(_0x1cae35){let _0x5b05c7=_0x4ddd9c[_0x17e0bc(0x1c8)],_0x541b72=_0x4ddd9c['indexOf']('(',_0x1cae35[0x0][_0x17e0bc(0x1c8)]);if(_0x541b72>-0x1){let _0x2a6ecb=0x1;while(_0x541b72<_0x5b05c7&&_0x2a6ecb>0x0){_0x541b72++;switch(_0x4ddd9c[_0x17e0bc(0x1c4)](_0x541b72)){case'(':_0x2a6ecb++;break;case')':_0x2a6ecb--;break;default:}}}return[_0x4ddd9c['substring'](0x0,_0x541b72+0x1)];}},'END':/^$/},this[_0x18726c(0x1da)]={'LPAREN':['GEOMETRY',_0x18726c(0x1b7),_0x18726c(0x1b5),_0x18726c(0x1d1),_0x18726c(0x199)],'RPAREN':[_0x18726c(0x18c),_0x18726c(0x1ae),_0x18726c(0x19b),_0x18726c(0x18b)],'PROPERTY':['COMPARISON',_0x18726c(0x17c),_0x18726c(0x17a),_0x18726c(0x198)],'BETWEEN':['VALUE'],'IS_NULL':[_0x18726c(0x19b)],'COMPARISON':[_0x18726c(0x1d1)],'COMMA':['GEOMETRY',_0x18726c(0x1d1),_0x18726c(0x1b5)],'VALUE':['LOGICAL',_0x18726c(0x17a),_0x18726c(0x18b),_0x18726c(0x19b)],'SPATIAL':[_0x18726c(0x199)],'LOGICAL':['NOT',_0x18726c(0x1d1),_0x18726c(0x1b7),_0x18726c(0x1b5),_0x18726c(0x199)],'NOT':[_0x18726c(0x1b5),'LPAREN'],'GEOMETRY':[_0x18726c(0x17a),'RPAREN']},this[_0x18726c(0x1d7)]={'=':a83_0x1d6f09[_0x18726c(0x1d6)],'<>':a83_0x1d6f09[_0x18726c(0x182)],'<':a83_0x1d6f09[_0x18726c(0x1d3)],'<=':a83_0x1d6f09[_0x18726c(0x1c3)],'>':a83_0x1d6f09[_0x18726c(0x1ab)],'>=':a83_0x1d6f09[_0x18726c(0x1a5)],'LIKE':a83_0x1d6f09[_0x18726c(0x17d)],'BETWEEN':a83_0x1d6f09[_0x18726c(0x196)],'IS\x20NULL':a83_0x1d6f09[_0x18726c(0x181)]},this[_0x18726c(0x1dd)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x18726c(0x18e),'PropertyIsNull':'IS\x20NULL','PropertyIsBetween':'BETWEEN'},this[_0x18726c(0x174)]={'AND':a83_0x1d6f09[_0x18726c(0x170)],'OR':a83_0x1d6f09['or']},this[_0x18726c(0x180)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a83_0x54764e(0x1cc)](_0x2f98fd,_0x3e210b){const _0x188c5d=a83_0x54764e;return _0x3e210b instanceof RegExp?_0x3e210b[_0x188c5d(0x192)](_0x2f98fd):_0x3e210b(_0x2f98fd);}[a83_0x54764e(0x177)](_0x12156f,_0x2a13c9){const _0x47f552=a83_0x54764e;let _0x4d32ad,_0x50c62e,_0xbf3712=_0x2a13c9[_0x47f552(0x1c8)];for(_0x4d32ad=0x0;_0x4d32ad<_0xbf3712;_0x4d32ad++){_0x50c62e=_0x2a13c9[_0x4d32ad];let _0x8c0061=this[_0x47f552(0x179)][_0x50c62e],_0x1a6df9=this['tryToken'](_0x12156f,_0x8c0061);if(_0x1a6df9){let _0x236718=_0x1a6df9[0x0],_0x12051d=_0x12156f[_0x47f552(0x1d4)](_0x236718[_0x47f552(0x1c8)])[_0x47f552(0x187)](/^\s*/,'');return{'type':_0x50c62e,'text':_0x236718,'remainder':_0x12051d};}}let _0x2073da=_0x47f552(0x1d8)+_0x12156f+_0x47f552(0x1be);for(_0x4d32ad=0x0;_0x4d32ad<_0xbf3712;_0x4d32ad++){_0x50c62e=_0x2a13c9[_0x4d32ad],_0x2073da+=_0x47f552(0x1a4)+_0x50c62e+':\x20'+this[_0x47f552(0x179)][_0x50c62e];}throw new Error(_0x2073da);}[a83_0x54764e(0x184)](_0x38b0a8){const _0x2f7df2=a83_0x54764e;_0x38b0a8=_0x38b0a8['replaceAll']('[','')[_0x2f7df2(0x191)](']','');let _0x26fa22=this['tryToken'](_0x38b0a8,this['inPatterns']);_0x26fa22&&(_0x38b0a8=this['parseInToOr'](_0x38b0a8,_0x26fa22));let _0x153ef3=[],_0x285d5b,_0x438fc3=[_0x2f7df2(0x18c),_0x2f7df2(0x1b6),'SPATIAL',_0x2f7df2(0x1b5),_0x2f7df2(0x199)];do{_0x285d5b=this[_0x2f7df2(0x177)](_0x38b0a8,_0x438fc3),_0x38b0a8=_0x285d5b[_0x2f7df2(0x1c0)],_0x438fc3=this[_0x2f7df2(0x1da)][_0x285d5b[_0x2f7df2(0x1a0)]];if(_0x285d5b[_0x2f7df2(0x1a0)]!==_0x2f7df2(0x19b)&&!_0x438fc3)throw new Error(_0x2f7df2(0x1ad)+_0x285d5b[_0x2f7df2(0x1a0)]);_0x153ef3[_0x2f7df2(0x1bf)](_0x285d5b);}while(_0x285d5b[_0x2f7df2(0x1a0)]!==_0x2f7df2(0x19b));return _0x153ef3;}['parseInToOr'](_0xe1852a,_0x58016f){const _0x3ae7e4=a83_0x54764e;let _0x4f8364=this['tryToken'](_0xe1852a,/\((.+?)\)/g);if(_0x4f8364){let _0x3316a4=_0xe1852a['substring'](0x0,_0x58016f[_0x3ae7e4(0x1ca)]),_0x54ae37=_0x4f8364[0x1],_0x1ef900=_0x54ae37[_0x3ae7e4(0x191)]('\x20','')[_0x3ae7e4(0x1ba)](','),_0xc7f995='',_0x2b60ff='';if(_0x3316a4[_0x3ae7e4(0x197)]('\x20')>-0x1){let _0x527417=_0x3316a4[_0x3ae7e4(0x19c)]('\x20');_0x2b60ff=_0x3316a4[_0x3ae7e4(0x1d4)](0x0,_0x527417+0x1),_0xc7f995=_0x3316a4[_0x3ae7e4(0x1d4)](_0x527417+0x1,_0x3316a4['length']);}else _0xc7f995=_0x3316a4;let _0x17b3f7=_0x2b60ff;for(let _0x3d734c=0x0;_0x3d734c<_0x1ef900[_0x3ae7e4(0x1c8)];_0x3d734c++){let _0x2226ca=_0x1ef900[_0x3d734c];_0x17b3f7+=_0xc7f995+'='+_0x2226ca,_0x3d734c<_0x1ef900[_0x3ae7e4(0x1c8)]-0x1&&(_0x17b3f7+=_0x3ae7e4(0x1c5));}return _0x17b3f7;}return _0xe1852a;}[a83_0x54764e(0x1ac)](_0x3c0caa){const _0x3323a5=a83_0x54764e;let _0x113607=this,_0x11e11b=[],_0x2c342d=[];while(_0x3c0caa[_0x3323a5(0x1c8)]){let _0x572b83=_0x3c0caa[_0x3323a5(0x1c2)]();switch(_0x572b83[_0x3323a5(0x1a0)]){case _0x3323a5(0x1b5):case'GEOMETRY':case'VALUE':_0x2c342d['push'](_0x572b83);break;case _0x3323a5(0x18d):case'BETWEEN':case _0x3323a5(0x198):case'LOGICAL':{let _0x2bad9e=this[_0x3323a5(0x180)][_0x572b83[_0x3323a5(0x1a0)]];while(_0x11e11b[_0x3323a5(0x1c8)]>0x0&&this[_0x3323a5(0x180)][_0x11e11b[_0x11e11b[_0x3323a5(0x1c8)]-0x1]['type']]<=_0x2bad9e){_0x2c342d[_0x3323a5(0x1bf)](_0x11e11b[_0x3323a5(0x18a)]());}_0x11e11b['push'](_0x572b83);break;}case _0x3323a5(0x1b7):case _0x3323a5(0x18c):case'LPAREN':_0x11e11b[_0x3323a5(0x1bf)](_0x572b83);break;case _0x3323a5(0x18b):while(_0x11e11b[_0x3323a5(0x1c8)]>0x0&&_0x11e11b[_0x11e11b['length']-0x1][_0x3323a5(0x1a0)]!==_0x3323a5(0x199)){_0x2c342d['push'](_0x11e11b[_0x3323a5(0x18a)]());}_0x11e11b[_0x3323a5(0x18a)]();_0x11e11b[_0x3323a5(0x1c8)]>0x0&&(_0x11e11b[_0x11e11b[_0x3323a5(0x1c8)]-0x1][_0x3323a5(0x1a0)]===_0x3323a5(0x1b7)||_0x11e11b[_0x11e11b[_0x3323a5(0x1c8)]-0x1]['type']===_0x3323a5(0x18c))&&_0x2c342d[_0x3323a5(0x1bf)](_0x11e11b[_0x3323a5(0x18a)]());break;case _0x3323a5(0x17a):case'END':break;default:throw new Error(_0x3323a5(0x1a7)+_0x572b83[_0x3323a5(0x1a0)]);}}while(_0x11e11b[_0x3323a5(0x1c8)]>0x0){_0x2c342d[_0x3323a5(0x1bf)](_0x11e11b[_0x3323a5(0x18a)]());}function _0x33a159(){const _0xd878a1=_0x3323a5;let _0xcd4acf,_0x3dcb93,_0x5f42d0=_0x2c342d[_0xd878a1(0x18a)]();switch(_0x5f42d0[_0xd878a1(0x1a0)]){case _0xd878a1(0x1ae):{let _0x1192a5=_0x33a159(),_0x392e02=_0x33a159();return new _0x113607['logicals'][(_0x5f42d0['text'][_0xd878a1(0x190)]())](_0x392e02,_0x1192a5);}case _0xd878a1(0x18c):{let _0x23db7e=_0x33a159();return a83_0x1d6f09[_0xd878a1(0x172)](_0x23db7e);}case _0xd878a1(0x17c):{let _0x3ee96b,_0x251dd6;return _0x2c342d[_0xd878a1(0x18a)](),_0x251dd6=_0x33a159(),_0x3ee96b=_0x33a159(),_0x3dcb93=_0x33a159(),a83_0x1d6f09[_0xd878a1(0x196)](_0x3dcb93,_0x3ee96b,_0x251dd6);}case _0xd878a1(0x18d):{return _0xcd4acf=_0x33a159(),_0x3dcb93=_0x33a159(),new _0x113607['operators'][(_0x5f42d0[_0xd878a1(0x183)][_0xd878a1(0x190)]())](_0x3dcb93,_0xcd4acf);}case _0xd878a1(0x198):_0x3dcb93=_0x33a159();return new _0x113607[(_0xd878a1(0x1d7))][(_0x5f42d0[_0xd878a1(0x183)][_0xd878a1(0x190)]())](_0x3dcb93);case _0xd878a1(0x1d1):{let _0x50886b=_0x5f42d0[_0xd878a1(0x183)][_0xd878a1(0x1af)](/^'(.*)'$/);return _0x50886b?_0x50886b[0x1][_0xd878a1(0x187)](/''/g,'\x27'):Number(_0x5f42d0[_0xd878a1(0x183)]);}case _0xd878a1(0x1b7):switch(_0x5f42d0[_0xd878a1(0x183)][_0xd878a1(0x190)]()){case _0xd878a1(0x1cf):{let _0x316a99=_0x33a159(),_0x4d96d3=_0x33a159(),_0x3a5622=_0x33a159(),_0x13b8b8=_0x33a159(),_0x496785=_0x33a159();return a83_0x1d6f09['bbox'](_0x496785,[_0x13b8b8,_0x3a5622,_0x4d96d3,_0x316a99]);}case'INTERSECTS':_0xcd4acf=_0x33a159(),_0x3dcb93=_0x33a159();return a83_0x1d6f09[_0xd878a1(0x19a)](_0x3dcb93,_0xcd4acf);case _0xd878a1(0x173):_0xcd4acf=_0x33a159(),_0x3dcb93=_0x33a159();return a83_0x1d6f09[_0xd878a1(0x193)](_0x3dcb93,_0xcd4acf);case _0xd878a1(0x17b):_0xcd4acf=_0x33a159(),_0x3dcb93=_0x33a159();return a83_0x1d6f09[_0xd878a1(0x1cb)](_0x3dcb93,_0xcd4acf);}break;case'GEOMETRY':return new WKT()[_0xd878a1(0x1b4)](_0x5f42d0['text'],{});default:return _0x5f42d0[_0xd878a1(0x183)];}}let _0xcde767=_0x33a159();if(_0x2c342d['length']>0x0){let _0xdf85c1='剩余的节点无法解析:\x20\x0a';for(let _0x1eb45a=_0x2c342d['length']-0x1;_0x1eb45a>=0x0;_0x1eb45a--){_0xdf85c1+=_0x2c342d[_0x1eb45a][_0x3323a5(0x1a0)]+':\x20'+_0x2c342d[_0x1eb45a]['text']+'\x0a';}throw new Error(_0xdf85c1);}return _0xcde767;}[a83_0x54764e(0x17f)](_0x406241){const _0x347e9d=a83_0x54764e;try{return this[_0x347e9d(0x1ac)](this[_0x347e9d(0x184)](_0x406241));}catch(_0x53f727){console['warn'](_0x347e9d(0x1aa)+_0x406241),console[_0x347e9d(0x188)](_0x53f727);}}[a83_0x54764e(0x1d2)](_0x34f0cd){const _0x1727ab=a83_0x54764e;switch(_0x34f0cd[_0x1727ab(0x195)]){case _0x1727ab(0x1cf):return _0x1727ab(0x1b0)+_0x34f0cd[_0x1727ab(0x1d5)]+','+_0x34f0cd[_0x1727ab(0x1cd)][_0x1727ab(0x186)](',')+','+_0x34f0cd['srsName']+')';case'Within':return _0x1727ab(0x1a2)+_0x34f0cd[_0x1727ab(0x1d5)]+',\x20'+this['readGeometry'](_0x34f0cd['geometry'])+')';case _0x1727ab(0x1d0):return _0x1727ab(0x17e)+_0x34f0cd[_0x1727ab(0x1d5)]+',\x20'+this[_0x1727ab(0x1b4)](_0x34f0cd['geometry'])+')';case _0x1727ab(0x1c1):return _0x1727ab(0x1de)+_0x34f0cd[_0x1727ab(0x1d5)]+',\x20'+this[_0x1727ab(0x1b4)](_0x34f0cd[_0x1727ab(0x1c9)])+')';case'Not':return _0x1727ab(0x1b3)+this[_0x1727ab(0x1d2)](_0x34f0cd[_0x1727ab(0x1db)])+')';case'And':case'Or':{let _0x1bc085='(',_0x7a96b0=!![];for(let _0x2ce0f2=0x0;_0x2ce0f2<_0x34f0cd[_0x1727ab(0x178)]['length'];_0x2ce0f2++){_0x7a96b0?_0x7a96b0=![]:_0x1bc085+=')\x20'+_0x34f0cd['tagName_'][_0x1727ab(0x1d9)]()+'\x20(',_0x1bc085+=this['write'](_0x34f0cd[_0x1727ab(0x178)][_0x2ce0f2]);}return _0x1bc085+')';}case _0x1727ab(0x171):return _0x34f0cd[_0x1727ab(0x189)]+_0x1727ab(0x19f)+this[_0x1727ab(0x1d2)](_0x34f0cd[_0x1727ab(0x19e)])+_0x1727ab(0x194)+this[_0x1727ab(0x1d2)](_0x34f0cd[_0x1727ab(0x19d)]);case _0x1727ab(0x1df):case _0x1727ab(0x1c6):case _0x1727ab(0x185):case'PropertyIsLessThanOrEqualTo':case _0x1727ab(0x1c7):case _0x1727ab(0x176):case'PropertyIsLike':case'PropertyIsNull':{return _0x34f0cd[_0x1727ab(0x18f)]!==null?_0x34f0cd[_0x1727ab(0x1a6)]+'\x20'+this['operatorReverse'][_0x34f0cd[_0x1727ab(0x195)]]+'\x20'+this[_0x1727ab(0x1d2)](_0x34f0cd[_0x1727ab(0x18f)]):_0x34f0cd[_0x1727ab(0x1a6)]+'\x20'+this[_0x1727ab(0x1dd)][_0x34f0cd[_0x1727ab(0x195)]];}case undefined:if(typeof _0x34f0cd===_0x1727ab(0x1bb))return'\x27'+_0x34f0cd[_0x1727ab(0x187)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x34f0cd===_0x1727ab(0x1bc))return String(_0x34f0cd);}break;default:throw new Error(_0x1727ab(0x1a9)+_0x34f0cd[_0x1727ab(0x1a3)]+'\x20'+_0x34f0cd);}}[a83_0x54764e(0x1b4)](_0x56f49b){if(_0x56f49b instanceof a83_0x297c29)return new WKT()['writeGeometry'](_0x56f49b);}}
|
|
1
|
+
const a83_0x121050=a83_0x43f2;(function(_0x2acacf,_0x434f0e){const _0x55b057=a83_0x43f2,_0x39efb7=_0x2acacf();while(!![]){try{const _0x3cd62d=parseInt(_0x55b057(0x200))/0x1*(parseInt(_0x55b057(0x22a))/0x2)+parseInt(_0x55b057(0x21b))/0x3+-parseInt(_0x55b057(0x232))/0x4+parseInt(_0x55b057(0x21d))/0x5+-parseInt(_0x55b057(0x225))/0x6*(parseInt(_0x55b057(0x1e8))/0x7)+-parseInt(_0x55b057(0x241))/0x8*(-parseInt(_0x55b057(0x1e5))/0x9)+-parseInt(_0x55b057(0x20e))/0xa*(parseInt(_0x55b057(0x20b))/0xb);if(_0x3cd62d===_0x434f0e)break;else _0x39efb7['push'](_0x39efb7['shift']());}catch(_0xa6f46d){_0x39efb7['push'](_0x39efb7['shift']());}}}(a83_0x462a,0x32682));import*as a83_0x308323 from'ol/format/filter';import{WKT}from'ol/format';import a83_0x1adcff from'ol/geom/Geometry';function a83_0x462a(){const _0x440e55=['match','Within','INTERSECTS','patterns','END','231454jSbroM','No\x20follows\x20list\x20for\x20','WITHIN','\x20AND\x20','CLASS_NAME','contains','WITHIN(','inPatterns','number','LIKE','between','5588TEVtdy','buildAst','text','8090WNdjUb','shift','write','tagName_','COMPARISON','remainder','lessThanOrEqualTo','exec','IS_NULL','LPAREN','COMMA','not','pop','80928EQVjDS','condition','1848485fZRHjS','Not','RPAREN','greaterThanOrEqualTo','剩余的节点无法解析:\x20\x0a','toUpperCase','isNull','\x0a\x20\x20\x20\x20','192846ymSEBn','BBOX','greaterThan','NOT','lowerBoundary','2Vopnmf','tokens','parseInToOr','replace','CONTAINS','upperBoundary','PropertyIsNotEqualTo','PropertyIsLessThanOrEqualTo','1247612cqmKqc','PropertyIsNull','PROPERTY','indexOf','geometryName','],\x20expected\x20one\x20of:\x20','PropertyIsEqualTo','expression','substring','lessThan','within','warn','extent','equalTo','IS\x20NULL','1672ZmGUnD','\x20BETWEEN\x20','index','precedence','push','BBOX(','operators','readGeometry','CONTAINS(','nextToken','VALUE','SPATIAL','CQL解析失败:','writeGeometry','notEqualTo','And','tryToken','14355OcOkUG','like','operatorReverse','7WpPmkn','and','geometry','type','tokenize','propertyName','PropertyIsLike','\x20or\x20','follows','ERROR:\x20In\x20parsing:\x20[','Intersects','length','LOGICAL','GEOMETRY','BETWEEN','toLowerCase','conditions','intersects','split'];a83_0x462a=function(){return _0x440e55;};return a83_0x462a();}function a83_0x43f2(_0x40ef6b,_0x1f68c1){const _0x462a8c=a83_0x462a();return a83_0x43f2=function(_0x43f24e,_0x49765c){_0x43f24e=_0x43f24e-0x1e1;let _0x35b446=_0x462a8c[_0x43f24e];return _0x35b446;},a83_0x43f2(_0x40ef6b,_0x1f68c1);}export default class CQL{constructor(){const _0x345e1c=a83_0x43f2;this[_0x345e1c(0x207)]=/ (IN) /i,this[_0x345e1c(0x22b)]=[_0x345e1c(0x234),_0x345e1c(0x212),'VALUE',_0x345e1c(0x1f4)],this[_0x345e1c(0x1fe)]={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0x5c937a){const _0x4d96f2=_0x345e1c;let _0xcdd315=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x4d96f2(0x215)](_0x5c937a);if(_0xcdd315){let _0x53f346=_0x5c937a[_0x4d96f2(0x1f3)],_0xddfe17=_0x5c937a[_0x4d96f2(0x235)]('(',_0xcdd315[0x0][_0x4d96f2(0x1f3)]);if(_0xddfe17>-0x1){let _0x2e4992=0x1;while(_0xddfe17<_0x53f346&&_0x2e4992>0x0){_0xddfe17++;switch(_0x5c937a['charAt'](_0xddfe17)){case'(':_0x2e4992++;break;case')':_0x2e4992--;break;default:}}}return[_0x5c937a['substring'](0x0,_0xddfe17+0x1)];}},'END':/^$/},this[_0x345e1c(0x1f0)]={'LPAREN':[_0x345e1c(0x1f5),'SPATIAL',_0x345e1c(0x234),'VALUE',_0x345e1c(0x217)],'RPAREN':['NOT',_0x345e1c(0x1f4),'END',_0x345e1c(0x21f)],'PROPERTY':[_0x345e1c(0x212),_0x345e1c(0x1f6),_0x345e1c(0x218),_0x345e1c(0x216)],'BETWEEN':[_0x345e1c(0x24b)],'IS_NULL':[_0x345e1c(0x1ff)],'COMPARISON':[_0x345e1c(0x24b)],'COMMA':['GEOMETRY',_0x345e1c(0x24b),'PROPERTY'],'VALUE':['LOGICAL','COMMA',_0x345e1c(0x21f),_0x345e1c(0x1ff)],'SPATIAL':[_0x345e1c(0x217)],'LOGICAL':[_0x345e1c(0x228),_0x345e1c(0x24b),_0x345e1c(0x24c),_0x345e1c(0x234),_0x345e1c(0x217)],'NOT':[_0x345e1c(0x234),_0x345e1c(0x217)],'GEOMETRY':[_0x345e1c(0x218),'RPAREN']},this[_0x345e1c(0x247)]={'=':a83_0x308323[_0x345e1c(0x23f)],'<>':a83_0x308323[_0x345e1c(0x1e2)],'<':a83_0x308323[_0x345e1c(0x23b)],'<=':a83_0x308323[_0x345e1c(0x214)],'>':a83_0x308323[_0x345e1c(0x227)],'>=':a83_0x308323[_0x345e1c(0x220)],'LIKE':a83_0x308323[_0x345e1c(0x1e6)],'BETWEEN':a83_0x308323[_0x345e1c(0x20a)],'IS\x20NULL':a83_0x308323[_0x345e1c(0x223)]},this[_0x345e1c(0x1e7)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x345e1c(0x209),'PropertyIsNull':_0x345e1c(0x240),'PropertyIsBetween':'BETWEEN'},this['logicals']={'AND':a83_0x308323[_0x345e1c(0x1e9)],'OR':a83_0x308323['or']},this[_0x345e1c(0x244)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a83_0x121050(0x1e4)](_0x13fa27,_0x34102c){return _0x34102c instanceof RegExp?_0x34102c['exec'](_0x13fa27):_0x34102c(_0x13fa27);}[a83_0x121050(0x24a)](_0x580aa8,_0x1bf282){const _0x2515bc=a83_0x121050;let _0x4ed22f,_0x4e3384,_0x45ed10=_0x1bf282[_0x2515bc(0x1f3)];for(_0x4ed22f=0x0;_0x4ed22f<_0x45ed10;_0x4ed22f++){_0x4e3384=_0x1bf282[_0x4ed22f];let _0x1e1c5d=this[_0x2515bc(0x1fe)][_0x4e3384],_0x2a2bc0=this[_0x2515bc(0x1e4)](_0x580aa8,_0x1e1c5d);if(_0x2a2bc0){let _0xe2116c=_0x2a2bc0[0x0],_0x2891fd=_0x580aa8[_0x2515bc(0x23a)](_0xe2116c[_0x2515bc(0x1f3)])[_0x2515bc(0x22d)](/^\s*/,'');return{'type':_0x4e3384,'text':_0xe2116c,'remainder':_0x2891fd};}}let _0x5ac96e=_0x2515bc(0x1f1)+_0x580aa8+_0x2515bc(0x237);for(_0x4ed22f=0x0;_0x4ed22f<_0x45ed10;_0x4ed22f++){_0x4e3384=_0x1bf282[_0x4ed22f],_0x5ac96e+=_0x2515bc(0x224)+_0x4e3384+':\x20'+this[_0x2515bc(0x1fe)][_0x4e3384];}throw new Error(_0x5ac96e);}[a83_0x121050(0x1ec)](_0x3bfd0d){const _0x1cf3e4=a83_0x121050;_0x3bfd0d=_0x3bfd0d['replaceAll']('[','')['replaceAll'](']','');let _0x479489=this[_0x1cf3e4(0x1e4)](_0x3bfd0d,this[_0x1cf3e4(0x207)]);_0x479489&&(_0x3bfd0d=this[_0x1cf3e4(0x22c)](_0x3bfd0d,_0x479489));let _0x1bd0b9=[],_0x357b67,_0x397298=[_0x1cf3e4(0x228),'GEOMETRY',_0x1cf3e4(0x24c),_0x1cf3e4(0x234),_0x1cf3e4(0x217)];do{_0x357b67=this['nextToken'](_0x3bfd0d,_0x397298),_0x3bfd0d=_0x357b67[_0x1cf3e4(0x213)],_0x397298=this[_0x1cf3e4(0x1f0)][_0x357b67[_0x1cf3e4(0x1eb)]];if(_0x357b67[_0x1cf3e4(0x1eb)]!==_0x1cf3e4(0x1ff)&&!_0x397298)throw new Error(_0x1cf3e4(0x201)+_0x357b67[_0x1cf3e4(0x1eb)]);_0x1bd0b9[_0x1cf3e4(0x245)](_0x357b67);}while(_0x357b67['type']!==_0x1cf3e4(0x1ff));return _0x1bd0b9;}['parseInToOr'](_0x254cab,_0x3b257a){const _0x131ec5=a83_0x121050;let _0x175fe6=this[_0x131ec5(0x1e4)](_0x254cab,/\((.+?)\)/g);if(_0x175fe6){let _0x59c65f=_0x254cab[_0x131ec5(0x23a)](0x0,_0x3b257a[_0x131ec5(0x243)]),_0x2ba9ad=_0x175fe6[0x1],_0x3f30d3=_0x2ba9ad['replaceAll']('\x20','')[_0x131ec5(0x1fa)](','),_0x398f7a='',_0xacdcbb='';if(_0x59c65f['indexOf']('\x20')>-0x1){let _0x144e16=_0x59c65f['lastIndexOf']('\x20');_0xacdcbb=_0x59c65f[_0x131ec5(0x23a)](0x0,_0x144e16+0x1),_0x398f7a=_0x59c65f[_0x131ec5(0x23a)](_0x144e16+0x1,_0x59c65f['length']);}else _0x398f7a=_0x59c65f;let _0x205235=_0xacdcbb;for(let _0x19cdb2=0x0;_0x19cdb2<_0x3f30d3[_0x131ec5(0x1f3)];_0x19cdb2++){let _0x6fa13f=_0x3f30d3[_0x19cdb2];_0x205235+=_0x398f7a+'='+_0x6fa13f,_0x19cdb2<_0x3f30d3[_0x131ec5(0x1f3)]-0x1&&(_0x205235+=_0x131ec5(0x1ef));}return _0x205235;}return _0x254cab;}[a83_0x121050(0x20c)](_0x149495){const _0x272857=a83_0x121050;let _0x1f6d95=this,_0x1e85a7=[],_0x3703a0=[];while(_0x149495[_0x272857(0x1f3)]){let _0x1d8f11=_0x149495[_0x272857(0x20f)]();switch(_0x1d8f11[_0x272857(0x1eb)]){case _0x272857(0x234):case _0x272857(0x1f5):case _0x272857(0x24b):_0x3703a0[_0x272857(0x245)](_0x1d8f11);break;case _0x272857(0x212):case'BETWEEN':case _0x272857(0x216):case _0x272857(0x1f4):{let _0x4aa120=this[_0x272857(0x244)][_0x1d8f11['type']];while(_0x1e85a7[_0x272857(0x1f3)]>0x0&&this[_0x272857(0x244)][_0x1e85a7[_0x1e85a7['length']-0x1][_0x272857(0x1eb)]]<=_0x4aa120){_0x3703a0[_0x272857(0x245)](_0x1e85a7[_0x272857(0x21a)]());}_0x1e85a7[_0x272857(0x245)](_0x1d8f11);break;}case _0x272857(0x24c):case _0x272857(0x228):case _0x272857(0x217):_0x1e85a7[_0x272857(0x245)](_0x1d8f11);break;case'RPAREN':while(_0x1e85a7[_0x272857(0x1f3)]>0x0&&_0x1e85a7[_0x1e85a7[_0x272857(0x1f3)]-0x1][_0x272857(0x1eb)]!==_0x272857(0x217)){_0x3703a0[_0x272857(0x245)](_0x1e85a7[_0x272857(0x21a)]());}_0x1e85a7[_0x272857(0x21a)]();_0x1e85a7[_0x272857(0x1f3)]>0x0&&(_0x1e85a7[_0x1e85a7[_0x272857(0x1f3)]-0x1][_0x272857(0x1eb)]===_0x272857(0x24c)||_0x1e85a7[_0x1e85a7['length']-0x1][_0x272857(0x1eb)]===_0x272857(0x228))&&_0x3703a0[_0x272857(0x245)](_0x1e85a7[_0x272857(0x21a)]());break;case _0x272857(0x218):case'END':break;default:throw new Error('Unknown\x20token\x20type\x20'+_0x1d8f11[_0x272857(0x1eb)]);}}while(_0x1e85a7[_0x272857(0x1f3)]>0x0){_0x3703a0[_0x272857(0x245)](_0x1e85a7[_0x272857(0x21a)]());}function _0x4c490c(){const _0x1e15be=_0x272857;let _0x43ea84,_0x270f9a,_0x37c1eb=_0x3703a0['pop']();switch(_0x37c1eb[_0x1e15be(0x1eb)]){case'LOGICAL':{let _0x19338c=_0x4c490c(),_0xabeec2=_0x4c490c();return new _0x1f6d95['logicals'][(_0x37c1eb[_0x1e15be(0x20d)][_0x1e15be(0x222)]())](_0xabeec2,_0x19338c);}case'NOT':{let _0x510a05=_0x4c490c();return a83_0x308323[_0x1e15be(0x219)](_0x510a05);}case _0x1e15be(0x1f6):{let _0x3e924c,_0x2c694c;return _0x3703a0[_0x1e15be(0x21a)](),_0x2c694c=_0x4c490c(),_0x3e924c=_0x4c490c(),_0x270f9a=_0x4c490c(),a83_0x308323['between'](_0x270f9a,_0x3e924c,_0x2c694c);}case _0x1e15be(0x212):{return _0x43ea84=_0x4c490c(),_0x270f9a=_0x4c490c(),new _0x1f6d95[(_0x1e15be(0x247))][(_0x37c1eb[_0x1e15be(0x20d)][_0x1e15be(0x222)]())](_0x270f9a,_0x43ea84);}case _0x1e15be(0x216):_0x270f9a=_0x4c490c();return new _0x1f6d95[(_0x1e15be(0x247))][(_0x37c1eb[_0x1e15be(0x20d)][_0x1e15be(0x222)]())](_0x270f9a);case _0x1e15be(0x24b):{let _0x3ed07f=_0x37c1eb[_0x1e15be(0x20d)][_0x1e15be(0x1fb)](/^'(.*)'$/);return _0x3ed07f?_0x3ed07f[0x1][_0x1e15be(0x22d)](/''/g,'\x27'):Number(_0x37c1eb['text']);}case _0x1e15be(0x24c):switch(_0x37c1eb[_0x1e15be(0x20d)][_0x1e15be(0x222)]()){case _0x1e15be(0x226):{let _0x4c291c=_0x4c490c(),_0x478e86=_0x4c490c(),_0x510f0d=_0x4c490c(),_0x138583=_0x4c490c(),_0x40f373=_0x4c490c();return a83_0x308323['bbox'](_0x40f373,[_0x138583,_0x510f0d,_0x478e86,_0x4c291c]);}case _0x1e15be(0x1fd):_0x43ea84=_0x4c490c(),_0x270f9a=_0x4c490c();return a83_0x308323[_0x1e15be(0x1f9)](_0x270f9a,_0x43ea84);case _0x1e15be(0x202):_0x43ea84=_0x4c490c(),_0x270f9a=_0x4c490c();return a83_0x308323[_0x1e15be(0x23c)](_0x270f9a,_0x43ea84);case _0x1e15be(0x22e):_0x43ea84=_0x4c490c(),_0x270f9a=_0x4c490c();return a83_0x308323[_0x1e15be(0x205)](_0x270f9a,_0x43ea84);}break;case _0x1e15be(0x1f5):return new WKT()[_0x1e15be(0x248)](_0x37c1eb[_0x1e15be(0x20d)],{});default:return _0x37c1eb['text'];}}let _0x53da8d=_0x4c490c();if(_0x3703a0[_0x272857(0x1f3)]>0x0){let _0xead1d1=_0x272857(0x221);for(let _0x3a9fb3=_0x3703a0[_0x272857(0x1f3)]-0x1;_0x3a9fb3>=0x0;_0x3a9fb3--){_0xead1d1+=_0x3703a0[_0x3a9fb3][_0x272857(0x1eb)]+':\x20'+_0x3703a0[_0x3a9fb3]['text']+'\x0a';}throw new Error(_0xead1d1);}return _0x53da8d;}['read'](_0x350042){const _0x1aba48=a83_0x121050;try{return this['buildAst'](this[_0x1aba48(0x1ec)](_0x350042));}catch(_0x5ebe3f){console[_0x1aba48(0x23d)](_0x1aba48(0x24d)+_0x350042),console[_0x1aba48(0x23d)](_0x5ebe3f);}}[a83_0x121050(0x210)](_0xa9e6a5){const _0xd02d29=a83_0x121050;switch(_0xa9e6a5['tagName_']){case'BBOX':return _0xd02d29(0x246)+_0xa9e6a5[_0xd02d29(0x236)]+','+_0xa9e6a5[_0xd02d29(0x23e)]['join'](',')+','+_0xa9e6a5['srsName']+')';case _0xd02d29(0x1fc):return _0xd02d29(0x206)+_0xa9e6a5[_0xd02d29(0x236)]+',\x20'+this['readGeometry'](_0xa9e6a5['geometry'])+')';case _0xd02d29(0x1f2):return'INTERSECTS('+_0xa9e6a5['geometryName']+',\x20'+this[_0xd02d29(0x248)](_0xa9e6a5[_0xd02d29(0x1ea)])+')';case'Contains':return _0xd02d29(0x249)+_0xa9e6a5['geometryName']+',\x20'+this[_0xd02d29(0x248)](_0xa9e6a5['geometry'])+')';case _0xd02d29(0x21e):return'NOT\x20('+this['write'](_0xa9e6a5[_0xd02d29(0x21c)])+')';case _0xd02d29(0x1e3):case'Or':{let _0x1f0005='(',_0x1581de=!![];for(let _0x4edba0=0x0;_0x4edba0<_0xa9e6a5[_0xd02d29(0x1f8)][_0xd02d29(0x1f3)];_0x4edba0++){_0x1581de?_0x1581de=![]:_0x1f0005+=')\x20'+_0xa9e6a5[_0xd02d29(0x211)][_0xd02d29(0x1f7)]()+'\x20(',_0x1f0005+=this[_0xd02d29(0x210)](_0xa9e6a5[_0xd02d29(0x1f8)][_0x4edba0]);}return _0x1f0005+')';}case'PropertyIsBetween':return _0xa9e6a5['property']+_0xd02d29(0x242)+this[_0xd02d29(0x210)](_0xa9e6a5[_0xd02d29(0x229)])+_0xd02d29(0x203)+this[_0xd02d29(0x210)](_0xa9e6a5[_0xd02d29(0x22f)]);case _0xd02d29(0x238):case _0xd02d29(0x230):case'PropertyIsLessThan':case _0xd02d29(0x231):case'PropertyIsGreaterThan':case'PropertyIsGreaterThanOrEqualTo':case _0xd02d29(0x1ee):case _0xd02d29(0x233):{return _0xa9e6a5[_0xd02d29(0x239)]!==null?_0xa9e6a5[_0xd02d29(0x1ed)]+'\x20'+this['operatorReverse'][_0xa9e6a5[_0xd02d29(0x211)]]+'\x20'+this[_0xd02d29(0x210)](_0xa9e6a5[_0xd02d29(0x239)]):_0xa9e6a5[_0xd02d29(0x1ed)]+'\x20'+this[_0xd02d29(0x1e7)][_0xa9e6a5['tagName_']];}case undefined:if(typeof _0xa9e6a5==='string')return'\x27'+_0xa9e6a5[_0xd02d29(0x22d)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0xa9e6a5===_0xd02d29(0x208))return String(_0xa9e6a5);}break;default:throw new Error('Can\x27t\x20encode:\x20'+_0xa9e6a5[_0xd02d29(0x204)]+'\x20'+_0xa9e6a5);}}[a83_0x121050(0x248)](_0x4599e7){const _0x3705ba=a83_0x121050;if(_0x4599e7 instanceof a83_0x1adcff)return new WKT()[_0x3705ba(0x1e1)](_0x4599e7);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f6153,_0x55e8bf){const _0x454f5d=a84_0x4c9b,_0x1a0420=_0x2f6153();while(!![]){try{const _0x4f7df1=-parseInt(_0x454f5d(0x1c6))/0x1+parseInt(_0x454f5d(0x1d4))/0x2*(-parseInt(_0x454f5d(0x1d8))/0x3)+-parseInt(_0x454f5d(0x1cb))/0x4+parseInt(_0x454f5d(0x1cd))/0x5+parseInt(_0x454f5d(0x1e3))/0x6+-parseInt(_0x454f5d(0x1c7))/0x7*(parseInt(_0x454f5d(0x1cc))/0x8)+parseInt(_0x454f5d(0x1db))/0x9;if(_0x4f7df1===_0x55e8bf)break;else _0x1a0420['push'](_0x1a0420['shift']());}catch(_0x3fde1c){_0x1a0420['push'](_0x1a0420['shift']());}}}(a84_0xa7bb,0xb41b2));import a84_0x243492 from'./CQL';export function isMatchCql(_0x712eda,_0x552a85){const _0x3e9c36=a84_0x4c9b;let _0x4d21df=new a84_0x243492()[_0x3e9c36(0x1d6)](_0x552a85);return isMatchFilter(_0x712eda,_0x4d21df);}export function isMatchFilter(_0x213b6e,_0x3d44da){const _0xb91d8e=a84_0x4c9b;switch(_0x3d44da['tagName_']){case _0xb91d8e(0x1e0):return!isMatchFilter(_0x213b6e,_0x3d44da[_0xb91d8e(0x1c9)]);case _0xb91d8e(0x1da):{let _0x49c5c6=!![];for(let _0x57adb2=0x0;_0x57adb2<_0x3d44da[_0xb91d8e(0x1ca)][_0xb91d8e(0x1e1)];_0x57adb2++){_0x49c5c6=_0x49c5c6&&isMatchFilter(_0x213b6e,_0x3d44da['conditions'][_0x57adb2]);}return _0x49c5c6;}case'Or':{let _0x24e175=![];for(let _0x1b0cbb=0x0;_0x1b0cbb<_0x3d44da[_0xb91d8e(0x1ca)][_0xb91d8e(0x1e1)];_0x1b0cbb++){_0x24e175=_0x24e175||isMatchFilter(_0x213b6e,_0x3d44da[_0xb91d8e(0x1ca)][_0x1b0cbb]);}return _0x24e175;}case _0xb91d8e(0x1c4):return _0x213b6e[_0x3d44da[_0xb91d8e(0x1d3)]]>_0x3d44da[_0xb91d8e(0x1e2)]&&_0x213b6e[_0x3d44da[_0xb91d8e(0x1d3)]]<_0x3d44da['upperBoundary'];case _0xb91d8e(0x1d0):return _0x213b6e[_0x3d44da[_0xb91d8e(0x1d2)]]===_0x3d44da['expression'];case'PropertyIsNotEqualTo':return _0x213b6e[_0x3d44da['propertyName']]!==_0x3d44da['expression'];case _0xb91d8e(0x1e4):return _0x213b6e[_0x3d44da[_0xb91d8e(0x1d2)]]<_0x3d44da[_0xb91d8e(0x1cf)];case'PropertyIsLessThanOrEqualTo':return _0x213b6e[_0x3d44da['propertyName']]<=_0x3d44da[_0xb91d8e(0x1cf)];case'PropertyIsGreaterThan':return _0x213b6e[_0x3d44da[_0xb91d8e(0x1d2)]]>_0x3d44da[_0xb91d8e(0x1cf)];case _0xb91d8e(0x1d5):return _0x213b6e[_0x3d44da['propertyName']]>=_0x3d44da[_0xb91d8e(0x1cf)];case _0xb91d8e(0x1d9):return _0x213b6e[_0x3d44da[_0xb91d8e(0x1d2)]]['indexOf'](_0x3d44da[_0xb91d8e(0x1cf)])>-0x1;case _0xb91d8e(0x1c5):{return!_0x213b6e[_0x3d44da[_0xb91d8e(0x1d2)]];}default:return![];}}function a84_0x4c9b(_0x50114d,_0x2ea1bb){const _0xa7bb18=a84_0xa7bb();return a84_0x4c9b=function(_0x4c9b20,_0x2acfeb){_0x4c9b20=_0x4c9b20-0x1c4;let _0x1d64c0=_0xa7bb18[_0x4c9b20];return _0x1d64c0;},a84_0x4c9b(_0x50114d,_0x2ea1bb);}export function isEqualFilter(_0x15de4a,_0x2fa05b){const _0x41fa46=a84_0x4c9b;switch(_0x15de4a[_0x41fa46(0x1df)]){case _0x41fa46(0x1e0):return _0x15de4a['tagName_']===_0x2fa05b[_0x41fa46(0x1df)]&&isEqualFilter(_0x15de4a[_0x41fa46(0x1c9)],_0x2fa05b[_0x41fa46(0x1c9)]);case'Or':case _0x41fa46(0x1da):{let _0x4bca7b=_0x15de4a[_0x41fa46(0x1df)]===_0x2fa05b['tagName_']&&_0x15de4a[_0x41fa46(0x1ca)]['length']===_0x2fa05b[_0x41fa46(0x1ca)][_0x41fa46(0x1e1)];for(let _0x71dd85=0x0;_0x71dd85<_0x15de4a[_0x41fa46(0x1ca)][_0x41fa46(0x1e1)];_0x71dd85++){_0x4bca7b=_0x4bca7b&&isEqualFilter(_0x15de4a[_0x41fa46(0x1ca)][_0x71dd85],_0x2fa05b[_0x41fa46(0x1ca)][_0x71dd85]);}return _0x4bca7b;}case _0x41fa46(0x1c4):return _0x15de4a['tagName_']===_0x2fa05b[_0x41fa46(0x1df)]&&_0x15de4a['property']===_0x2fa05b[_0x41fa46(0x1d3)];case _0x41fa46(0x1d0):case _0x41fa46(0x1c8):case _0x41fa46(0x1e4):case _0x41fa46(0x1de):case _0x41fa46(0x1ce):case _0x41fa46(0x1d5):case _0x41fa46(0x1d9):case'PropertyIsNull':return _0x15de4a[_0x41fa46(0x1df)]===_0x2fa05b[_0x41fa46(0x1df)]&&_0x15de4a['propertyName']===_0x2fa05b[_0x41fa46(0x1d2)];default:return![];}}export function indexOfFilter(_0x398b8b,_0x12e5b9){const _0xa190c0=a84_0x4c9b;let _0x2dcf00=-0x1;if((_0x398b8b===null||_0x398b8b===void 0x0?void 0x0:_0x398b8b[_0xa190c0(0x1e1)])>0x0)for(let _0x210eb8 in _0x398b8b){if(isEqualFilter(_0x398b8b[_0x210eb8][_0xa190c0(0x1d7)],_0x12e5b9))return _0x210eb8;}return _0x2dcf00;}export function getIndexByTemplate(_0x16e6d9,_0x526ee0){const _0x39bfb4=a84_0x4c9b;let _0x391496=_0x526ee0['template'];if(_0x526ee0[_0x39bfb4(0x1d1)]>0x0){let _0x2931d1=getKeyByTemplate(_0x16e6d9,_0x391496);if(_0x2931d1 instanceof Array)for(let _0x363250 in _0x2931d1){let _0x5a6e81=_0x526ee0['idMap'][_0x2931d1[_0x363250]+'_'+_0x363250];if(_0x5a6e81)return _0x5a6e81;}else return _0x526ee0[_0x39bfb4(0x1e5)][_0x2931d1];}return null;}function a84_0xa7bb(){const _0x95cdf4=['1916664YiGuCK','PropertyIsLessThan','idMap','PropertyIsBetween','PropertyIsNull','446253ZULBTQ','168eMEiAg','PropertyIsNotEqualTo','condition','conditions','1361656fEuOiG','166512RYnbUT','721675BpFoKX','PropertyIsGreaterThan','expression','PropertyIsEqualTo','idMapLength','propertyName','property','14dgFSAS','PropertyIsGreaterThanOrEqualTo','read','template','368439cvoSqf','PropertyIsLike','And','21778461vKsUWV','push','join','PropertyIsLessThanOrEqualTo','tagName_','Not','length','lowerBoundary'];a84_0xa7bb=function(){return _0x95cdf4;};return a84_0xa7bb();}export function getKeyByTemplate(_0x160e06,_0x5921cf){const _0xcf81e8=a84_0x4c9b;switch(_0x5921cf[_0xcf81e8(0x1df)]){case _0xcf81e8(0x1d0):{return _0x160e06[_0x5921cf[_0xcf81e8(0x1d2)]];}case _0xcf81e8(0x1da):{let _0x5dfc35=[];for(let _0xd7d7f2=0x0;_0xd7d7f2<_0x5921cf['conditions'][_0xcf81e8(0x1e1)];_0xd7d7f2++){let _0x3bd817=getKeyByTemplate(_0x160e06,_0x5921cf[_0xcf81e8(0x1ca)][_0xd7d7f2]);_0x3bd817&&_0x5dfc35[_0xcf81e8(0x1dc)](_0x3bd817);}return _0x5dfc35[_0xcf81e8(0x1dd)](',');}case'Or':{let _0xdfce7f=[];for(let _0x4c811e=0x0;_0x4c811e<_0x5921cf[_0xcf81e8(0x1ca)][_0xcf81e8(0x1e1)];_0x4c811e++){let _0x43ca5e=getKeyByTemplate(_0x160e06,_0x5921cf[_0xcf81e8(0x1ca)][_0x4c811e]);_0x43ca5e&&_0xdfce7f[_0xcf81e8(0x1dc)](_0x43ca5e);}return _0xdfce7f;}default:return null;}}export function createKeyFromFilter(_0x31af82){const _0x36e149=a84_0x4c9b;switch(_0x31af82[_0x36e149(0x1df)]){case'PropertyIsEqualTo':return _0x31af82[_0x36e149(0x1cf)];case _0x36e149(0x1da):{let _0x118418=[];for(let _0x36baf2=0x0;_0x36baf2<_0x31af82['conditions'][_0x36e149(0x1e1)];_0x36baf2++){let _0xdc32d=createKeyFromFilter(_0x31af82['conditions'][_0x36baf2]);if(_0xdc32d)_0x118418[_0x36e149(0x1dc)](_0xdc32d);else return null;}return _0x118418[_0x36e149(0x1dd)](',');}case'Or':{let _0x3f76fe=[];for(let _0x1cf2c4=0x0;_0x1cf2c4<_0x31af82[_0x36e149(0x1ca)][_0x36e149(0x1e1)];_0x1cf2c4++){let _0x55d06d=createKeyFromFilter(_0x31af82['conditions'][_0x1cf2c4]);_0x55d06d&&_0x3f76fe['push'](_0x55d06d);}return _0x3f76fe;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x3181(){const _0x3276f4=['1247032rRpBbT','clear','5204355lfODDR','cacheSize_','get','6734945oUaGtE','markerLabel','null','1020168sjoAMt','cache_','2655296kLtKIX','111522hoJWHq','markerColor','set','image','63JbuTCK','markerSize','733476yrIxBh'];a87_0x3181=function(){return _0x3276f4;};return a87_0x3181();}const a87_0x20a9f5=a87_0x173f;(function(_0x1e7f8b,_0x4c7415){const _0x56dfe9=a87_0x173f,_0x171c71=_0x1e7f8b();while(!![]){try{const _0x1ee6e6=parseInt(_0x56dfe9(0x19a))/0x1+parseInt(_0x56dfe9(0x19d))/0x2*(-parseInt(_0x56dfe9(0x18f))/0x3)+parseInt(_0x56dfe9(0x192))/0x4+parseInt(_0x56dfe9(0x194))/0x5+parseInt(_0x56dfe9(0x191))/0x6+-parseInt(_0x56dfe9(0x197))/0x7+parseInt(_0x56dfe9(0x19c))/0x8;if(_0x1ee6e6===_0x4c7415)break;else _0x171c71['push'](_0x171c71['shift']());}catch(_0x2e61f0){_0x171c71['push'](_0x171c71['shift']());}}}(a87_0x3181,0xa964f));import{asString}from'ol/color';class ImageCache{constructor(){const _0x24598e=a87_0x173f;this[_0x24598e(0x19b)]={},this['cacheSize_']=0x0;}[a87_0x20a9f5(0x193)](){const _0x291ecf=a87_0x20a9f5;this[_0x291ecf(0x19b)]={},this['cacheSize_']=0x0;}[a87_0x20a9f5(0x196)](_0x36f24c){const _0x3e5795=a87_0x20a9f5,_0x4dd0a1=getKey(_0x36f24c[_0x3e5795(0x198)],_0x36f24c[_0x3e5795(0x190)],_0x36f24c[_0x3e5795(0x19e)],_0x36f24c[_0x3e5795(0x1a0)]);return _0x4dd0a1 in this[_0x3e5795(0x19b)]?this['cache_'][_0x4dd0a1]:null;}[a87_0x20a9f5(0x19f)](_0x502ff0,_0x5a995a){const _0x487b93=a87_0x20a9f5,_0x3385d7=getKey(_0x502ff0[_0x487b93(0x198)],_0x502ff0[_0x487b93(0x190)],_0x502ff0[_0x487b93(0x19e)],_0x502ff0['image']);this[_0x487b93(0x19b)][_0x3385d7]=_0x5a995a,++this[_0x487b93(0x195)];}}function getKey(_0xf153d0,_0x399767,_0x5a5da2,_0x37446a){const _0x5b3c62=a87_0x20a9f5,_0x222354=_0x5a5da2?asString(_0x5a5da2):_0x5b3c62(0x199);return _0xf153d0+':'+_0x37446a+':'+_0x222354+':'+_0x399767;}export default ImageCache;function a87_0x173f(_0x289bf9,_0x148ba7){const _0x3181b2=a87_0x3181();return a87_0x173f=function(_0x173fde,_0x17a29a){_0x173fde=_0x173fde-0x18f;let _0x153ffd=_0x3181b2[_0x173fde];return _0x153ffd;},a87_0x173f(_0x289bf9,_0x148ba7);}export const shared=new ImageCache();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x21e02c=a88_0x4703;(function(_0x54f95e,_0xa72026){const _0x21172f=a88_0x4703,_0x3017c=_0x54f95e();while(!![]){try{const _0x2fcdc6=parseInt(_0x21172f(0x193))/0x1+-parseInt(_0x21172f(0x1a8))/0x2+parseInt(_0x21172f(0x1aa))/0x3+parseInt(_0x21172f(0x1a5))/0x4*(parseInt(_0x21172f(0x1b9))/0x5)+-parseInt(_0x21172f(0x1a3))/0x6+parseInt(_0x21172f(0x1a2))/0x7+-parseInt(_0x21172f(0x1a7))/0x8;if(_0x2fcdc6===_0xa72026)break;else _0x3017c['push'](_0x3017c['shift']());}catch(_0x250362){_0x3017c['push'](_0x3017c['shift']());}}}(a88_0x5771,0x42341));import a88_0x43e0ea from'color';function a88_0x4703(_0xaa8309,_0x5b3378){const _0x5771b8=a88_0x5771();return a88_0x4703=function(_0x470322,_0x4efd27){_0x470322=_0x470322-0x18c;let _0x1d9dc2=_0x5771b8[_0x470322];return _0x1d9dc2;},a88_0x4703(_0xaa8309,_0x5b3378);}import a88_0x9df820 from'./writeTextToCanvas';import{Icon}from'ol/style';import a88_0x34d59d from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x3a73a1=a88_0x4703;this[_0x3a73a1(0x198)]={};}[a88_0x21e02c(0x1a6)](_0x5c7dfe,_0x2666e9){const _0x202c0b=a88_0x21e02c;if(!_0x5c7dfe)throw new Error(_0x202c0b(0x1b6));if(!_0x2666e9)throw new Error(_0x202c0b(0x1b3));return createPin('','',_0x5c7dfe,_0x2666e9,this[_0x202c0b(0x198)]);}[a88_0x21e02c(0x18c)](_0x427d30,_0x474b30,_0x253d28){const _0x50263a=a88_0x21e02c;if(!_0x427d30)throw new Error(_0x50263a(0x1b5));if(!_0x474b30)throw new Error(_0x50263a(0x1b6));if(!_0x253d28)throw new Error(_0x50263a(0x1b3));return createPin(_0x427d30,'',_0x474b30,_0x253d28,this['_cache']);}[a88_0x21e02c(0x194)](_0x18ac14,_0x3284d8,_0x280278){const _0x28a0d8=a88_0x21e02c;if(!_0x18ac14)throw new Error(_0x28a0d8(0x1a4));if(!_0x3284d8)throw new Error('color\x20is\x20required');if(!_0x280278)throw new Error('size\x20is\x20required');return createPin(parseImage(_0x18ac14),'',_0x3284d8,_0x280278,this[_0x28a0d8(0x198)]);}[a88_0x21e02c(0x18f)](_0x10f8d7,_0x48e5d2,_0x3707a6){const _0x5d403c=a88_0x21e02c;if(!_0x10f8d7)throw new Error('text\x20is\x20required');if(!_0x48e5d2)throw new Error('color\x20is\x20required');if(!_0x3707a6)throw new Error('size\x20is\x20required');return createPin('',_0x10f8d7,_0x48e5d2,_0x3707a6,this[_0x5d403c(0x198)]);}}function drawPin(_0x7071f9,_0x2f2891,_0x40a74d){const _0x34c4ec=a88_0x21e02c;_0x7071f9['save'](),_0x7071f9['scale'](_0x40a74d/0x18,_0x40a74d/0x18),_0x7071f9[_0x34c4ec(0x1a9)]=_0x2f2891,_0x7071f9['strokeStyle']=a88_0x43e0ea(_0x2f2891)[_0x34c4ec(0x199)](0.6)[_0x34c4ec(0x19f)](),_0x7071f9[_0x34c4ec(0x195)]=0.846,_0x7071f9[_0x34c4ec(0x1a1)](),_0x7071f9[_0x34c4ec(0x19e)](6.72,0.422),_0x7071f9[_0x34c4ec(0x1ab)](17.28,0.422),_0x7071f9[_0x34c4ec(0x19b)](18.553,0.422,19.577,1.758,19.577,3.415),_0x7071f9[_0x34c4ec(0x1ab)](19.577,10.973),_0x7071f9['bezierCurveTo'](19.577,12.63,18.553,13.966,17.282,13.966),_0x7071f9[_0x34c4ec(0x1ab)](14.386,14.008),_0x7071f9[_0x34c4ec(0x1ab)](11.826,23.578),_0x7071f9['lineTo'](9.614,14.008),_0x7071f9['lineTo'](6.719,13.965),_0x7071f9[_0x34c4ec(0x19b)](5.446,13.983,4.422,12.629,4.422,10.972),_0x7071f9['lineTo'](4.422,3.416),_0x7071f9[_0x34c4ec(0x19b)](4.423,1.76,5.447,0.423,6.718,0.423),_0x7071f9[_0x34c4ec(0x190)](),_0x7071f9[_0x34c4ec(0x1af)](),_0x7071f9['stroke'](),_0x7071f9['restore']();}function drawIcon(_0x54db7c,_0x3cf289,_0x516590){const _0x435b3f=a88_0x21e02c,_0x134473=_0x516590/2.5;let _0x125514=_0x134473,_0xed684a=_0x134473;if(_0x3cf289[_0x435b3f(0x197)]>_0x3cf289[_0x435b3f(0x1b7)])_0xed684a=_0x134473*(_0x3cf289['height']/_0x3cf289[_0x435b3f(0x197)]);else _0x3cf289[_0x435b3f(0x197)]<_0x3cf289[_0x435b3f(0x1b7)]&&(_0x125514=_0x134473*(_0x3cf289['width']/_0x3cf289[_0x435b3f(0x1b7)]));const _0x2206b9=Math[_0x435b3f(0x19d)]((_0x516590-_0x125514)/0x2),_0xeab5a2=Math['round'](0x7/0x18*_0x516590-_0xed684a/0x2);_0x54db7c[_0x435b3f(0x191)]=_0x435b3f(0x192),_0x54db7c[_0x435b3f(0x1b1)](_0x3cf289,_0x2206b9-0x1,_0xeab5a2,_0x125514,_0xed684a),_0x54db7c[_0x435b3f(0x1b1)](_0x3cf289,_0x2206b9,_0xeab5a2-0x1,_0x125514,_0xed684a),_0x54db7c[_0x435b3f(0x1b1)](_0x3cf289,_0x2206b9+0x1,_0xeab5a2,_0x125514,_0xed684a),_0x54db7c['drawImage'](_0x3cf289,_0x2206b9,_0xeab5a2+0x1,_0x125514,_0xed684a),_0x54db7c[_0x435b3f(0x191)]=_0x435b3f(0x19c),_0x54db7c[_0x435b3f(0x1a9)]=_0x435b3f(0x1a0),_0x54db7c[_0x435b3f(0x1ae)](_0x2206b9-0x1,_0xeab5a2-0x1,_0x125514+0x2,_0xed684a+0x2),_0x54db7c[_0x435b3f(0x191)]=_0x435b3f(0x192),_0x54db7c[_0x435b3f(0x1b1)](_0x3cf289,_0x2206b9,_0xeab5a2,_0x125514,_0xed684a),_0x54db7c[_0x435b3f(0x191)]=_0x435b3f(0x19c),_0x54db7c[_0x435b3f(0x1a9)]=_0x435b3f(0x1ba),_0x54db7c['fillRect'](_0x2206b9-0x1,_0xeab5a2-0x2,_0x125514+0x2,_0xed684a+0x2);}function a88_0x5771(){const _0x18e445=['798351NhGSHF','lineTo','getImage','load','fillRect','fill','stringify','drawImage','canvas','size\x20is\x20required','toDataURL','url\x20is\x20required','color\x20is\x20required','height','createElement','11795tBxwaW','#FFFFFF','fromUrl','ERROR','IDLE','fromText','closePath','globalCompositeOperation','destination-out','511422XWqqtT','fromMakiIconId','lineWidth','bold\x20','width','_cache','lighten','px\x20sans-serif','bezierCurveTo','destination-over','round','moveTo','hexa','#000000','beginPath','3206154TVscRN','1382862PJNiqQ','id\x20is\x20required','56yFJNEt','fromColor','2257648hteLdy','969470bpgIyb','fillStyle'];a88_0x5771=function(){return _0x18e445;};return a88_0x5771();}const stringifyScratch=new Array(0x4);function createPin(_0x54f323,_0x4e34e2,_0x50e34c,_0x6b9a4b,_0x15f122){const _0x5aa797=a88_0x21e02c;stringifyScratch[0x0]=_0x54f323,stringifyScratch[0x1]=_0x4e34e2,stringifyScratch[0x2]=_0x50e34c,stringifyScratch[0x3]=_0x6b9a4b;const _0x1c3694=JSON[_0x5aa797(0x1b0)](stringifyScratch),_0x291c37=_0x15f122[_0x1c3694];if(_0x291c37)return _0x291c37;const _0x136651=document[_0x5aa797(0x1b8)](_0x5aa797(0x1b2));_0x136651['width']=_0x6b9a4b,_0x136651[_0x5aa797(0x1b7)]=_0x6b9a4b;const _0x1daafa=_0x136651['getContext']('2d');drawPin(_0x1daafa,_0x50e34c,_0x6b9a4b);if(_0x54f323)return new Promise(_0x4e6445=>{const _0xc225c2=_0x5aa797;let _0x439eb7=new Icon({'src':_0x54f323}),_0x452194=_0x439eb7['getImageState']();_0x452194===a88_0x34d59d['LOADED']||_0x452194===a88_0x34d59d[_0xc225c2(0x18d)]?(drawIcon(_0x1daafa,_0x439eb7[_0xc225c2(0x1ac)](0x60),_0x6b9a4b),_0x15f122[_0x1c3694]=_0x136651['toDataURL'](),_0x4e6445(_0x136651[_0xc225c2(0x1b4)]())):(_0x452194===a88_0x34d59d[_0xc225c2(0x18e)]&&_0x439eb7[_0xc225c2(0x1ad)](),_0x439eb7['listenImageChange'](_0x5e0814=>{const _0x1c73a8=_0xc225c2;_0x452194=_0x5e0814['target']['getImageState'](),(_0x452194===a88_0x34d59d['LOADED']||_0x452194===a88_0x34d59d[_0x1c73a8(0x18d)])&&(drawIcon(_0x1daafa,_0x439eb7['getImage'](0x60),_0x6b9a4b),_0x15f122[_0x1c3694]=_0x136651[_0x1c73a8(0x1b4)](),_0x4e6445(_0x136651[_0x1c73a8(0x1b4)]()));}));});else{if(_0x4e34e2){const _0x5db220=a88_0x9df820(_0x4e34e2,{'font':_0x5aa797(0x196)+_0x6b9a4b+_0x5aa797(0x19a)});drawIcon(_0x1daafa,_0x5db220,_0x6b9a4b);}}return _0x15f122[_0x1c3694]=_0x136651['toDataURL'](),_0x136651[_0x5aa797(0x1b4)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a89_0x12d2(_0x2edfe6,_0x4e8b84){const _0x50bc6d=a89_0x50bc();return a89_0x12d2=function(_0x12d2d3,_0x18863f){_0x12d2d3=_0x12d2d3-0xb9;let _0xb09c39=_0x50bc6d[_0x12d2d3];return _0xb09c39;},a89_0x12d2(_0x2edfe6,_0x4e8b84);}const a89_0x1a0425=a89_0x12d2;(function(_0x54f508,_0xf340a5){const _0x534dfb=a89_0x12d2,_0x5029a9=_0x54f508();while(!![]){try{const _0x30534a=parseInt(_0x534dfb(0xd3))/0x1+-parseInt(_0x534dfb(0xc6))/0x2+parseInt(_0x534dfb(0xd8))/0x3*(parseInt(_0x534dfb(0xd4))/0x4)+-parseInt(_0x534dfb(0xb9))/0x5*(-parseInt(_0x534dfb(0xcb))/0x6)+parseInt(_0x534dfb(0xca))/0x7*(parseInt(_0x534dfb(0xce))/0x8)+parseInt(_0x534dfb(0xd0))/0x9+-parseInt(_0x534dfb(0xd1))/0xa;if(_0x30534a===_0xf340a5)break;else _0x5029a9['push'](_0x5029a9['shift']());}catch(_0x2deda1){_0x5029a9['push'](_0x5029a9['shift']());}}}(a89_0x50bc,0xc7097));import a89_0x18abca from'./PinBuilder';import{Icon}from'ol/style';import a89_0x7ac24e from'ol/ImageState';import a89_0x55c33f from'ol/events/Event';import{shared as a89_0x5d1ce0}from'./ImageCache';export default class PinIcon{constructor(_0xc11085){const _0x56e118=a89_0x12d2;this['options']=_0xc11085||{},this[_0x56e118(0xc5)]=a89_0x7ac24e['IDLE'],this[_0x56e118(0xda)]=a89_0x5d1ce0[_0x56e118(0xc1)](this[_0x56e118(0xd6)]),this['_icon']&&(this['_imageState']=a89_0x7ac24e['LOADED']);}[a89_0x1a0425(0xd7)](){const _0x2cce0b=a89_0x1a0425;try{let _0x3d453c,_0xb1ecc2=new a89_0x18abca();if(this['options'][_0x2cce0b(0xcc)])_0x3d453c=_0xb1ecc2[_0x2cce0b(0xbd)](this[_0x2cce0b(0xd6)]['markerLabel'],this[_0x2cce0b(0xd6)][_0x2cce0b(0xbf)],this[_0x2cce0b(0xd6)][_0x2cce0b(0xd9)]||0x30);else this[_0x2cce0b(0xd6)]['image']&&(_0x3d453c=_0xb1ecc2[_0x2cce0b(0xc8)](this[_0x2cce0b(0xd6)][_0x2cce0b(0xc4)],this[_0x2cce0b(0xd6)][_0x2cce0b(0xbf)],this[_0x2cce0b(0xd6)][_0x2cce0b(0xd9)]||0x30));Promise[_0x2cce0b(0xc2)](_0x3d453c)['then'](_0x2434e0=>{const _0x5dfe7e=_0x2cce0b;this[_0x5dfe7e(0xcd)](_0x2434e0);})['catch'](_0x59350a=>{const _0x4c6f9e=_0x2cce0b;console['warn'](_0x59350a),this[_0x4c6f9e(0xc5)]=a89_0x7ac24e[_0x4c6f9e(0xc3)],this[_0x4c6f9e(0xbc)](_0x4c6f9e(0xd2));});}catch(_0x17fc12){console[_0x2cce0b(0xbb)](_0x17fc12),this[_0x2cce0b(0xc5)]=a89_0x7ac24e[_0x2cce0b(0xc3)],this['dispatchEvent']('error');}}[a89_0x1a0425(0xcd)](_0x5efedf){const _0x43c5e2=a89_0x1a0425;this[_0x43c5e2(0xda)]=new Icon({'src':_0x5efedf}),a89_0x5d1ce0[_0x43c5e2(0xd5)](this[_0x43c5e2(0xd6)],this[_0x43c5e2(0xda)]);let _0x2bb110=this[_0x43c5e2(0xda)][_0x43c5e2(0xc0)]();_0x2bb110===a89_0x7ac24e[_0x43c5e2(0xc9)]||_0x2bb110===a89_0x7ac24e[_0x43c5e2(0xc3)]?(this[_0x43c5e2(0xc5)]=this['_icon'][_0x43c5e2(0xc0)](),this['dispatchEvent'](_0x43c5e2(0xd7))):(_0x2bb110===a89_0x7ac24e[_0x43c5e2(0xcf)]&&this[_0x43c5e2(0xda)][_0x43c5e2(0xd7)](),this['_icon'][_0x43c5e2(0xba)](_0x39f84a=>{const _0x4d8c63=_0x43c5e2;_0x2bb110=_0x39f84a['target'][_0x4d8c63(0xc0)](),(_0x2bb110===a89_0x7ac24e['LOADED']||_0x2bb110===a89_0x7ac24e[_0x4d8c63(0xc3)])&&(this['_imageState']=this[_0x4d8c63(0xda)][_0x4d8c63(0xc0)](),this[_0x4d8c63(0xbc)](_0x4d8c63(0xd7)));}));}[a89_0x1a0425(0xc0)](){const _0xc4b8a5=a89_0x1a0425;return this[_0xc4b8a5(0xc5)];}[a89_0x1a0425(0xbe)](){const _0x5207e0=a89_0x1a0425;var _0x34789d;return(_0x34789d=this['_icon'])===null||_0x34789d===void 0x0?void 0x0:_0x34789d[_0x5207e0(0xbe)]();}[a89_0x1a0425(0xba)](_0x2e1c0b){const _0x1e1f2a=a89_0x1a0425;this[_0x1e1f2a(0xc7)]=_0x2e1c0b;}['dispatchEvent'](_0x172e0b){const _0x43fa19=a89_0x1a0425;if(this[_0x43fa19(0xc7)]){let _0x909b07=new a89_0x55c33f(_0x172e0b);_0x909b07['target']=this,this['_listener'](_0x909b07);}}}function a89_0x50bc(){const _0x6d2fd=['4NUoNka','set','options','load','4173582kYqwzU','markerSize','_icon','280MRaqct','listenImageChange','warn','dispatchEvent','fromText','getImage','markerColor','getImageState','get','resolve','ERROR','image','_imageState','1137636pqSRPs','_listener','fromUrl','LOADED','2524991JTxikz','150210xCOkHF','markerLabel','loadIcon','24ReAMBq','IDLE','2502459CgbKQT','28573410AVgQbu','error','88070ficyYo'];a89_0x50bc=function(){return _0x6d2fd;};return a89_0x50bc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a90_0x29d5(_0x2c7793,_0x4346c5){const _0x6742f2=a90_0x6742();return a90_0x29d5=function(_0x29d5f5,_0x1c0f22){_0x29d5f5=_0x29d5f5-0x1f1;let _0x357b46=_0x6742f2[_0x29d5f5];return _0x357b46;},a90_0x29d5(_0x2c7793,_0x4346c5);}(function(_0x1f606d,_0x41be3c){const _0x4b33c8=a90_0x29d5,_0x205d68=_0x1f606d();while(!![]){try{const _0x4f7e22=parseInt(_0x4b33c8(0x203))/0x1+parseInt(_0x4b33c8(0x20d))/0x2*(parseInt(_0x4b33c8(0x216))/0x3)+-parseInt(_0x4b33c8(0x217))/0x4*(-parseInt(_0x4b33c8(0x202))/0x5)+-parseInt(_0x4b33c8(0x214))/0x6*(-parseInt(_0x4b33c8(0x224))/0x7)+-parseInt(_0x4b33c8(0x212))/0x8+parseInt(_0x4b33c8(0x201))/0x9+-parseInt(_0x4b33c8(0x21f))/0xa;if(_0x4f7e22===_0x41be3c)break;else _0x205d68['push'](_0x205d68['shift']());}catch(_0x2ec785){_0x205d68['push'](_0x205d68['shift']());}}}(a90_0x6742,0x6d406));function measureText(_0x48cf9c,_0x5e1217,_0x47fe93,_0x24b03b,_0x5233f0){const _0x1b503=a90_0x29d5,_0x1e4ffc=_0x48cf9c['measureText'](_0x5e1217),_0x4f82ff=!/\S/[_0x1b503(0x221)](_0x5e1217);if(!_0x4f82ff&&document[_0x1b503(0x20c)]){const _0x524663=document[_0x1b503(0x20c)]['getComputedStyle'](_0x48cf9c[_0x1b503(0x21e)])[_0x1b503(0x205)](_0x1b503(0x219))['replace']('px',''),_0x54aec6=document[_0x1b503(0x1f1)]('canvas'),_0x2792fd=0x64,_0x1c4faa=_0x1e4ffc['width']+_0x2792fd|0x0,_0x177aa5=0x3*(_0x524663-0x0),_0xdd9175=_0x177aa5/0x2;_0x54aec6['width']=_0x1c4faa,_0x54aec6['height']=_0x177aa5;const _0x18d1ea=_0x54aec6[_0x1b503(0x21d)]('2d');if(!_0x18d1ea)return{};_0x18d1ea[_0x1b503(0x209)]=_0x47fe93,_0x18d1ea[_0x1b503(0x211)]=_0x1b503(0x20f),_0x18d1ea['fillRect'](0x0,0x0,_0x54aec6[_0x1b503(0x1f9)]+0x1,_0x54aec6[_0x1b503(0x1f4)]+0x1);_0x24b03b&&(_0x18d1ea[_0x1b503(0x1ff)]=_0x1b503(0x206),_0x18d1ea[_0x1b503(0x1fb)]=_0x48cf9c[_0x1b503(0x1fb)],_0x18d1ea[_0x1b503(0x1f2)](_0x5e1217,_0x2792fd/0x2,_0xdd9175));_0x5233f0&&(_0x18d1ea[_0x1b503(0x211)]=_0x1b503(0x206),_0x18d1ea[_0x1b503(0x220)](_0x5e1217,_0x2792fd/0x2,_0xdd9175));const _0x473443=_0x18d1ea[_0x1b503(0x20b)](0x0,0x0,_0x1c4faa,_0x177aa5)['data'],_0x443f64=_0x473443['length'],_0x589d3c=_0x1c4faa*0x4;let _0xaedd39,_0x3f43a8,_0x1cb06e=0x0,_0x1603d2=0x0;for(_0xaedd39=0x0;_0xaedd39<_0x443f64;++_0xaedd39){if(_0x473443[_0xaedd39]!==0xff){_0x1cb06e=_0xaedd39/_0x589d3c|0x0;break;}}for(_0xaedd39=_0x443f64-0x1;_0xaedd39>=0x0;--_0xaedd39){if(_0x473443[_0xaedd39]!==0xff){_0x1603d2=_0xaedd39/_0x589d3c|0x0;break;}}let _0x2edf17=-0x1;for(_0xaedd39=0x0;_0xaedd39<_0x1c4faa&&_0x2edf17===-0x1;++_0xaedd39){for(_0x3f43a8=0x0;_0x3f43a8<_0x177aa5;++_0x3f43a8){const _0x2e6249=_0xaedd39*0x4+_0x3f43a8*_0x589d3c;if(_0x473443[_0x2e6249]!==0xff||_0x473443[_0x2e6249+0x1]!==0xff||_0x473443[_0x2e6249+0x2]!==0xff||_0x473443[_0x2e6249+0x3]!==0xff){_0x2edf17=_0xaedd39;break;}}}return{'width':_0x1e4ffc[_0x1b503(0x1f9)],'height':_0x1603d2-_0x1cb06e,'ascent':_0xdd9175-_0x1cb06e,'descent':_0x1603d2-_0xdd9175,'minx':_0x2edf17-_0x2792fd/0x2};}return{'width':_0x1e4ffc['width'],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function a90_0x6742(){const _0x46fa5b=['strokeColor','getContext','canvas','23753690XzFAgG','fillText','test','padding','ascent','2666153AExUYw','hidden','ceil','createElement','strokeText','10px\x20sans-serif','height','msImageSmoothingEnabled','round','backgroundColor','stroke','width','minx','lineWidth','style','#00000000','fill','strokeStyle','text\x20is\x20required.','5232780yltIyQ','25HsEUoK','731331ULQgCu','visibility','getPropertyValue','black','#FFFFFF','imageSmoothingEnabled','font','dimensions','getImageData','defaultView','3260MgviMw','removeChild','white','appendChild','fillStyle','1211136JdMbHB','mozImageSmoothingEnabled','6LYiFET','webkitImageSmoothingEnabled','1017mGBSXZ','582444pTXtYJ','body','font-size','fillRect','fillColor'];a90_0x6742=function(){return _0x46fa5b;};return a90_0x6742();}function writeTextToCanvas(_0xa3e589,_0x5ca57e){const _0x4ba627=a90_0x29d5;if(!_0xa3e589)throw new Error(_0x4ba627(0x200));if(_0xa3e589==='')return undefined;_0x5ca57e=defaultValue(_0x5ca57e,{});const _0x32ccc1=defaultValue(_0x5ca57e[_0x4ba627(0x209)],_0x4ba627(0x1f3)),_0x249cfc=defaultValue(_0x5ca57e[_0x4ba627(0x1f8)],![]),_0x26d3d3=defaultValue(_0x5ca57e[_0x4ba627(0x1fe)],!![]),_0x379f1b=defaultValue(_0x5ca57e['strokeWidth'],0x1),_0x184fec=defaultValue(_0x5ca57e[_0x4ba627(0x1f7)],_0x4ba627(0x1fd)),_0x2602b4=defaultValue(_0x5ca57e[_0x4ba627(0x222)],0x0),_0x42d807=_0x2602b4*0x2,_0x2c914e=document[_0x4ba627(0x1f1)]('canvas');_0x2c914e['width']=0x1,_0x2c914e['height']=0x1,_0x2c914e[_0x4ba627(0x1fc)]['font']=_0x32ccc1;const _0x30805e=_0x2c914e['getContext']('2d');if(!imageSmoothingEnabledName&&_0x30805e){if(_0x30805e[_0x4ba627(0x208)])imageSmoothingEnabledName=_0x4ba627(0x208);else{if(_0x30805e[_0x4ba627(0x213)])imageSmoothingEnabledName='mozImageSmoothingEnabled';else{if(_0x30805e[_0x4ba627(0x215)])imageSmoothingEnabledName=_0x4ba627(0x215);else _0x30805e[_0x4ba627(0x1f5)]&&(imageSmoothingEnabledName=_0x4ba627(0x1f5));}}}_0x30805e[_0x4ba627(0x209)]=_0x32ccc1,_0x30805e['lineJoin']='round',_0x30805e[_0x4ba627(0x1fb)]=_0x379f1b,_0x30805e[imageSmoothingEnabledName]=![],_0x2c914e['style']['visibility']=_0x4ba627(0x225),document[_0x4ba627(0x218)][_0x4ba627(0x210)](_0x2c914e);const _0x2b492a=measureText(_0x30805e,_0xa3e589,_0x32ccc1,_0x249cfc,_0x26d3d3);if(!_0x2b492a)return;_0x2c914e[_0x4ba627(0x20a)]=_0x2b492a,document[_0x4ba627(0x218)][_0x4ba627(0x20e)](_0x2c914e),_0x2c914e[_0x4ba627(0x1fc)][_0x4ba627(0x204)]='';const _0xe287df=-(_0x2b492a[_0x4ba627(0x1fa)]?_0x2b492a[_0x4ba627(0x1fa)]:0x0),_0x374451=Math[_0x4ba627(0x226)](_0x2b492a[_0x4ba627(0x1f9)])+_0xe287df+_0x42d807,_0x6f673=(_0x2b492a[_0x4ba627(0x1f4)]?_0x2b492a[_0x4ba627(0x1f4)]:0x0)+_0x42d807,_0x19f94b=_0x6f673-(_0x2b492a['ascent']?_0x2b492a[_0x4ba627(0x223)]:0x0)+_0x2602b4,_0x21c103=_0x6f673-_0x19f94b+_0x42d807;return _0x2c914e[_0x4ba627(0x1f9)]=_0x374451,_0x2c914e[_0x4ba627(0x1f4)]=_0x6f673,_0x30805e[_0x4ba627(0x209)]=_0x32ccc1,_0x30805e['lineJoin']=_0x4ba627(0x1f6),_0x30805e[_0x4ba627(0x1fb)]=_0x379f1b,_0x30805e[imageSmoothingEnabledName]=![],_0x184fec!=='#00000000'&&(_0x30805e[_0x4ba627(0x211)]=_0x184fec,_0x30805e[_0x4ba627(0x21a)](0x0,0x0,_0x2c914e[_0x4ba627(0x1f9)],_0x2c914e[_0x4ba627(0x1f4)])),_0x249cfc&&(_0x30805e[_0x4ba627(0x1ff)]=defaultValue(_0x5ca57e[_0x4ba627(0x21c)],'#000000'),_0x30805e['strokeText'](_0xa3e589,_0xe287df+_0x2602b4,_0x21c103)),_0x26d3d3&&(_0x30805e['fillStyle']=defaultValue(_0x5ca57e[_0x4ba627(0x21b)],_0x4ba627(0x207)),_0x30805e[_0x4ba627(0x220)](_0xa3e589,_0xe287df+_0x2602b4,_0x21c103)),_0x2c914e;}function defaultValue(_0x907938,_0x2482de){if(_0x907938!==undefined&&_0x907938!==null)return _0x907938;return _0x2482de;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3358d5,_0x26be45){const _0x30a0f3=a95_0x1bad,_0x3a8f54=_0x3358d5();while(!![]){try{const _0x498716=parseInt(_0x30a0f3(0x149))/0x1+parseInt(_0x30a0f3(0x143))/0x2+parseInt(_0x30a0f3(0x13c))/0x3+parseInt(_0x30a0f3(0x151))/0x4+parseInt(_0x30a0f3(0x14b))/0x5*(-parseInt(_0x30a0f3(0x14f))/0x6)+parseInt(_0x30a0f3(0x145))/0x7*(-parseInt(_0x30a0f3(0x132))/0x8)+parseInt(_0x30a0f3(0x154))/0x9;if(_0x498716===_0x26be45)break;else _0x3a8f54['push'](_0x3a8f54['shift']());}catch(_0x546ef6){_0x3a8f54['push'](_0x3a8f54['shift']());}}}(a95_0x33f4,0x7ecd4));import a95_0x5ee3f6 from'ol/format/EsriJSON';import a95_0x3bbf27 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a95_0x17f6c6 from'./Task';import{appendPath}from'../../UrlUtil';function a95_0x33f4(){const _0x3a9b54=['writeGeometryObject','all','getProjection','447556rwYyVD','resolution','16435CULdbd','returnZ','path','geojsonTypeToArcGIS','1734Jorhac','time','570140ivLWLs','getResolution','geometry','5630004WWgnir','getView','4063208qwfMZg','getCenter','returnM','layers','geometryType','inSR','valueOf','imageDisplay','url','getSize','983154SWrobU','returnGeometry','_setGeometryParams','layerDefs','getType','getCode','params','1883520RlpYIk','identify','14uYzJfg'];a95_0x33f4=function(){return _0x3a9b54;};return a95_0x33f4();}import{getEsriSpatialReference}from'../../EsriUtil';function a95_0x1bad(_0xd2580f,_0x5c9142){const _0x33f4c0=a95_0x33f4();return a95_0x1bad=function(_0x1bad34,_0x1bfa81){_0x1bad34=_0x1bad34-0x131;let _0x2fc946=_0x33f4c0[_0x1bad34];return _0x2fc946;},a95_0x1bad(_0xd2580f,_0x5c9142);}export default class Identify extends a95_0x17f6c6{constructor(_0x3f9bdd,_0xb0e25e,_0x3af350){const _0x24d298=a95_0x1bad;super(_0x3f9bdd,_0xb0e25e,_0x3af350),this[_0x24d298(0x14d)]=_0x24d298(0x144),this[_0x24d298(0x142)]={'layers':_0x24d298(0x147),'tolerance':0x0,'returnGeometry':!![]},this['tolerance']=0x3,this[_0x24d298(0x14a)]=0x0,this[_0x24d298(0x13a)]=appendPath(this[_0x24d298(0x13a)],this['path']),_0xb0e25e&&((_0xb0e25e[_0x24d298(0x13d)]===!![]||_0xb0e25e[_0x24d298(0x13d)]===![])&&(this['params'][_0x24d298(0x13d)]=_0xb0e25e[_0x24d298(0x13d)]),_0xb0e25e[_0x24d298(0x135)]&&(this[_0x24d298(0x142)][_0x24d298(0x135)]=_0xb0e25e[_0x24d298(0x135)]),_0xb0e25e[_0x24d298(0x13f)]&&(this['params'][_0x24d298(0x13f)]=_0xb0e25e[_0x24d298(0x13f)]),(_0xb0e25e[_0x24d298(0x14c)]===!![]||_0xb0e25e[_0x24d298(0x14c)]===![])&&(this[_0x24d298(0x142)]['returnZ']=_0xb0e25e[_0x24d298(0x14c)]),(_0xb0e25e['returnM']===!![]||_0xb0e25e[_0x24d298(0x134)]===![])&&(this['params'][_0x24d298(0x134)]=_0xb0e25e['returnM']));}['at'](_0x39e0ee,_0x2ad98b){const _0x47108c=a95_0x1bad;let _0x48f7e5,_0x2e6c11;const _0x39c89d=new a95_0x3bbf27();_0x48f7e5=_0x39e0ee,_0x2e6c11=getEsriSpatialReference(_0x2ad98b[_0x47108c(0x131)]()[_0x47108c(0x148)]()['getCode']());const _0x762e3=_0x2ad98b['getSize']();_0x762e3&&(this['params'][_0x47108c(0x139)]=[_0x762e3[0x0],_0x762e3[0x1],0x60]);this[_0x47108c(0x142)]['sr']=_0x2e6c11;const _0x1baec0=_0x2ad98b[_0x47108c(0x131)]()['calculateExtent'](_0x2ad98b[_0x47108c(0x13b)]());this[_0x47108c(0x142)]['mapExtent']={'xmin':_0x1baec0[0x0],'ymin':_0x1baec0[0x1],'xmax':_0x1baec0[0x2],'ymax':_0x1baec0[0x3],'spatialReference':_0x2e6c11};const _0x42ff10=_0x2ad98b[_0x47108c(0x131)]()[_0x47108c(0x152)](),_0x1183e0=_0x2ad98b[_0x47108c(0x131)]()[_0x47108c(0x133)]();return _0x42ff10&&_0x1183e0&&(this[_0x47108c(0x14a)]=getPointResolution(_0x2ad98b[_0x47108c(0x131)]()['getProjection'](),_0x42ff10,_0x1183e0)),this[_0x47108c(0x13e)](_0x48f7e5,_0x2ad98b[_0x47108c(0x131)]()[_0x47108c(0x148)]()[_0x47108c(0x141)]()),this;}['between'](_0x3dd405,_0x11f2e4){const _0x1a71e8=a95_0x1bad;return this['params'][_0x1a71e8(0x150)]=[_0x3dd405[_0x1a71e8(0x138)](),_0x11f2e4[_0x1a71e8(0x138)]()],this;}['run'](){this['request']();}['_setGeometryParams'](_0x365e72,_0x2a1757){const _0x364cbc=a95_0x1bad;var _0x301cc3=new a95_0x5ee3f6();const _0x297fb5=_0x301cc3[_0x364cbc(0x146)](_0x365e72);this[_0x364cbc(0x142)][_0x364cbc(0x137)]=getEsriSpatialReference(_0x2a1757),this['params'][_0x364cbc(0x153)]=_0x297fb5,this[_0x364cbc(0x142)][_0x364cbc(0x136)]=this[_0x364cbc(0x14e)](_0x365e72[_0x364cbc(0x140)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x13ced5=a96_0x1e29;(function(_0x142c15,_0xeabd33){const _0x2ae9a0=a96_0x1e29,_0x32345b=_0x142c15();while(!![]){try{const _0x289c0d=-parseInt(_0x2ae9a0(0xc0))/0x1+parseInt(_0x2ae9a0(0xbf))/0x2*(parseInt(_0x2ae9a0(0xc9))/0x3)+parseInt(_0x2ae9a0(0xdd))/0x4*(parseInt(_0x2ae9a0(0xb9))/0x5)+-parseInt(_0x2ae9a0(0xa8))/0x6*(-parseInt(_0x2ae9a0(0xcb))/0x7)+-parseInt(_0x2ae9a0(0xac))/0x8+parseInt(_0x2ae9a0(0xce))/0x9*(-parseInt(_0x2ae9a0(0xa5))/0xa)+-parseInt(_0x2ae9a0(0xb4))/0xb*(-parseInt(_0x2ae9a0(0xbb))/0xc);if(_0x289c0d===_0xeabd33)break;else _0x32345b['push'](_0x32345b['shift']());}catch(_0x3026ff){_0x32345b['push'](_0x32345b['shift']());}}}(a96_0x1ed2,0xafefb));import a96_0x196256 from'ol/format/EsriJSON';import a96_0xe08cf3 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a96_0x1ed2(){const _0x21e819=['1474fnJygD','141237JGatVF','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','inSR','count','status','push','returnIdsOnly','esriSpatialRelIndexIntersects','readFeature','1257YclWAr','esriSpatialRelContains','471331HLrEyt','ids','path','981441ACkVvM','distance','1=1','getTime','warn','esriSpatialRelCrosses','request','esriSpatialRelIntersects','getSize','ASC','abs','data','bboxIntersects','length','url','1868fszWet','/query','features','params','returnExtentOnly','outSR','returnCountOnly','getExtent','join','between','geojsonTypeToArcGIS','geometryType','nearby','forEach','esriSpatialRelOverlaps','overlaps','writeGeometryObject','40eeVtzh','returnGeometry','maxAllowableOffset','114kmbBdG','esriSpatialRelEnvelopeIntersects','valueOf','intersects','6709288lmsABS','returnM','time','returnZ','esriSpatialRelTouches','indexIntersects','_cleanParams','orderByFields','1903zmbWLR','crosses','units','run','_setGeometryParams','930INReFh','esriSRUnit_Meter','32028QMmdwJ','spatialRel','layer','where'];a96_0x1ed2=function(){return _0x21e819;};return a96_0x1ed2();}import{appendPath}from'../../UrlUtil';function a96_0x1e29(_0x52bb64,_0x53b38a){const _0x1ed243=a96_0x1ed2();return a96_0x1e29=function(_0x1e2989,_0x39bab5){_0x1e2989=_0x1e2989-0x96;let _0x29349b=_0x1ed243[_0x1e2989];return _0x29349b;},a96_0x1e29(_0x52bb64,_0x53b38a);}export default class Query extends a96_0xe08cf3{constructor(_0x349316,_0x46bc4a,_0x14578b){const _0x467e82=a96_0x1e29;super(_0x349316,_0x46bc4a,_0x14578b),this['path']='query',this[_0x467e82(0x97)]={'returnGeometry':!![],'where':_0x467e82(0xd0),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x467e82(0xd1)]()},this[_0x467e82(0xdc)]=appendPath(this[_0x467e82(0xdc)],this['path']),_0x46bc4a&&((_0x46bc4a[_0x467e82(0xa6)]===!![]||_0x46bc4a[_0x467e82(0xa6)]===![])&&(this[_0x467e82(0x97)][_0x467e82(0xa6)]=_0x46bc4a[_0x467e82(0xa6)]),_0x46bc4a[_0x467e82(0xbe)]&&(this[_0x467e82(0x97)][_0x467e82(0xbe)]=_0x46bc4a['where']),_0x46bc4a[_0x467e82(0x99)]&&(this[_0x467e82(0x97)][_0x467e82(0x99)]=getEsriSpatialReference(_0x46bc4a['outSR'])),(_0x46bc4a['returnZ']===!![]||_0x46bc4a['returnZ']===![])&&(this[_0x467e82(0x97)][_0x467e82(0xaf)]=_0x46bc4a[_0x467e82(0xaf)]),(_0x46bc4a[_0x467e82(0xad)]===!![]||_0x46bc4a['returnM']===![])&&(this[_0x467e82(0x97)]['returnM']=_0x46bc4a['returnM']));}['within'](_0x50c017,_0x1ddaf0){const _0x486b73=a96_0x1e29;return this['_setGeometryParams'](_0x50c017,_0x1ddaf0),this[_0x486b73(0x97)][_0x486b73(0xbc)]=_0x486b73(0xca),this;}[a96_0x13ced5(0xab)](_0x4cf458,_0x2ee008){const _0x183759=a96_0x13ced5;return this[_0x183759(0xb8)](_0x4cf458,_0x2ee008),this['params'][_0x183759(0xbc)]=_0x183759(0xd5),this;}['contains'](_0x227ec3,_0x49ac39){const _0x489c75=a96_0x13ced5;return this['_setGeometryParams'](_0x227ec3,_0x49ac39),this[_0x489c75(0x97)][_0x489c75(0xbc)]='esriSpatialRelWithin',this;}[a96_0x13ced5(0xb5)](_0x5858c,_0x56ed20){const _0x2486f5=a96_0x13ced5;return this[_0x2486f5(0xb8)](_0x5858c,_0x56ed20),this[_0x2486f5(0x97)][_0x2486f5(0xbc)]=_0x2486f5(0xd3),this;}['touches'](_0x33f00a,_0x53afcb){const _0x3257c0=a96_0x13ced5;return this[_0x3257c0(0xb8)](_0x33f00a,_0x53afcb),this['params'][_0x3257c0(0xbc)]=_0x3257c0(0xb0),this;}[a96_0x13ced5(0xa3)](_0x28f9e7,_0x89ba64){const _0x119148=a96_0x13ced5;return this['_setGeometryParams'](_0x28f9e7,_0x89ba64),this[_0x119148(0x97)][_0x119148(0xbc)]=_0x119148(0xa2),this;}[a96_0x13ced5(0xda)](_0x8811d4,_0x52fd4a){const _0x3518e5=a96_0x13ced5;return this[_0x3518e5(0xb8)](_0x8811d4,_0x52fd4a),this['params']['spatialRel']=_0x3518e5(0xa9),this;}[a96_0x13ced5(0xb1)](_0x36fd16,_0x5a98b4){const _0x3bcba5=a96_0x13ced5;return this[_0x3bcba5(0xb8)](_0x36fd16,_0x5a98b4),this[_0x3bcba5(0x97)][_0x3bcba5(0xbc)]=_0x3bcba5(0xc7),this;}[a96_0x13ced5(0xa0)](_0x58cfe2,_0x3381e5,_0x11ad94){const _0xe190f7=a96_0x13ced5;return this[_0xe190f7(0xb8)](_0x58cfe2,_0x3381e5),this[_0xe190f7(0x97)][_0xe190f7(0xbc)]='esriSpatialRelIntersects',this[_0xe190f7(0x97)][_0xe190f7(0xb6)]=_0xe190f7(0xba),this[_0xe190f7(0x97)][_0xe190f7(0xcf)]=_0x11ad94,this;}[a96_0x13ced5(0xbe)](_0xf6d40){const _0x3108dc=a96_0x13ced5;return this[_0x3108dc(0x97)][_0x3108dc(0xbe)]=_0xf6d40,this;}[a96_0x13ced5(0x9d)](_0x2919f6,_0x1480a9){const _0x124446=a96_0x13ced5;return this[_0x124446(0x97)][_0x124446(0xae)]=[_0x2919f6['valueOf'](),_0x1480a9[_0x124446(0xaa)]()],this;}['simplify'](_0x3feb8c,_0x2aae68){const _0x512b44=a96_0x13ced5,_0x1841d1=_0x3feb8c[_0x512b44(0x9b)]();var _0xfb5d56=Math[_0x512b44(0xd8)](_0x1841d1[0x2]-_0x1841d1[0x0]);const _0x19b22c=_0x3feb8c[_0x512b44(0xd6)]();if(_0x19b22c)return this[_0x512b44(0x97)][_0x512b44(0xa7)]=_0xfb5d56/_0x19b22c[0x1]*_0x2aae68,this;}['orderBy'](_0x13844d,_0x38e35a){const _0x4241fd=a96_0x13ced5;return _0x38e35a=_0x38e35a||_0x4241fd(0xd7),this[_0x4241fd(0x97)][_0x4241fd(0xb3)]=this[_0x4241fd(0x97)][_0x4241fd(0xb3)]?this[_0x4241fd(0x97)][_0x4241fd(0xb3)]+',':'',this[_0x4241fd(0x97)][_0x4241fd(0xb3)]+=[_0x13844d,_0x38e35a][_0x4241fd(0x9c)]('\x20'),this;}async[a96_0x13ced5(0xb7)](){const _0x35e6ef=a96_0x13ced5;this['_cleanParams']();const _0xc710be=await this[_0x35e6ef(0xd4)]()['catch'](_0x16fa84=>{throw new Error(_0x16fa84);});if(_0xc710be[_0x35e6ef(0xc4)]!==0xc8)throw new Error('No\x20features\x20found');if(_0xc710be[_0x35e6ef(0xd9)]&&_0xc710be[_0x35e6ef(0xd9)][_0x35e6ef(0x96)]&&_0xc710be[_0x35e6ef(0xd9)]['features'][_0x35e6ef(0xdb)]>0x0){var _0x51ecac=new a96_0x196256();let _0x57d257=[];return _0xc710be['data'][_0x35e6ef(0x96)][_0x35e6ef(0xa1)](_0x4e9f67=>{const _0x3a9773=_0x35e6ef,_0x2c946d=_0x51ecac[_0x3a9773(0xc8)](_0x4e9f67);_0x57d257[_0x3a9773(0xc5)](_0x2c946d);}),_0x57d257;}return[];}[a96_0x13ced5(0xc3)](){const _0x1e1907=a96_0x13ced5;this[_0x1e1907(0xb2)](),this[_0x1e1907(0x97)][_0x1e1907(0x9a)]=!![],this[_0x1e1907(0xd4)]();}[a96_0x13ced5(0xcc)](){const _0x5d67c3=a96_0x13ced5;this[_0x5d67c3(0xb2)](),this[_0x5d67c3(0x97)][_0x5d67c3(0xc6)]=!![],this[_0x5d67c3(0xd4)]();}['distinct'](){const _0x45ac6d=a96_0x13ced5;return this['params'][_0x45ac6d(0xa6)]=![],this[_0x45ac6d(0x97)]['returnDistinctValues']=!![],this;}[a96_0x13ced5(0xbd)](_0x1a9bfb){const _0x2e9247=a96_0x13ced5;return this[_0x2e9247(0xcd)]=_0x1a9bfb+_0x2e9247(0xde),this;}['_trapSQLerrors'](_0x285cfb){const _0x3a8c13=a96_0x13ced5;_0x285cfb&&(_0x285cfb['code']==='400'&&console[_0x3a8c13(0xd2)]['apply'](_0x3a8c13(0xc1)));}[a96_0x13ced5(0xb2)](){const _0x2dd229=a96_0x13ced5;delete this[_0x2dd229(0x97)][_0x2dd229(0xc6)],delete this[_0x2dd229(0x97)][_0x2dd229(0x98)],delete this['params'][_0x2dd229(0x9a)];}[a96_0x13ced5(0xb8)](_0x997d0,_0x56971c){const _0x16a8db=a96_0x13ced5;if(!_0x997d0)return;var _0x39135f=new a96_0x196256();const _0x1248b0=_0x39135f[_0x16a8db(0xa4)](_0x997d0);this[_0x16a8db(0x97)][_0x16a8db(0xc2)]=getEsriSpatialReference(_0x56971c),this[_0x16a8db(0x97)]['geometry']=_0x1248b0,this['params'][_0x16a8db(0x9f)]=this[_0x16a8db(0x9e)](_0x997d0['getType']());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a97_0xcdb1b7=a97_0x413d;(function(_0x77776f,_0x5636d5){var _0x208b11=a97_0x413d,_0x59e1d0=_0x77776f();while(!![]){try{var _0x49d95d=-parseInt(_0x208b11(0x83))/0x1*(parseInt(_0x208b11(0xaa))/0x2)+parseInt(_0x208b11(0x9c))/0x3*(parseInt(_0x208b11(0x8c))/0x4)+parseInt(_0x208b11(0xa7))/0x5+parseInt(_0x208b11(0x88))/0x6+-parseInt(_0x208b11(0x99))/0x7*(-parseInt(_0x208b11(0xa1))/0x8)+parseInt(_0x208b11(0x8a))/0x9+-parseInt(_0x208b11(0x96))/0xa*(parseInt(_0x208b11(0xa2))/0xb);if(_0x49d95d===_0x5636d5)break;else _0x59e1d0['push'](_0x59e1d0['shift']());}catch(_0x2f4476){_0x59e1d0['push'](_0x59e1d0['shift']());}}}(a97_0x4104,0x7bc2d));function a97_0x4104(){var _0x205ab4=['format','2021480oqNWfH','esriGeometryPolygon','isArcgisOnline','826YFAICj','MultiPoint','GET','stringify','geojsonTypeToArcGIS','hasOwnProperty','1179NZfQTU','[object\x20Array]','MultiPolygon','request','esriGeometryPoint','2619762icehta','call','3158910gQXvnj','[object\x20Object]','871924bmHIht','LineString','json','esriGeometryPolyline','get','post','MultiLineString','url','join','returnUnformattedValues','190PNBZue','serialize','prototype','21RnKVYY','Point','method','6EzGeZe','toString','length','valueOf','[object\x20Date]','1683824utVaQu','732633FTxHTr','params','Polygon','esriGeometryMultipoint'];a97_0x4104=function(){return _0x205ab4;};return a97_0x4104();}function a97_0x413d(_0x5880ed,_0x12c838){var _0x410471=a97_0x4104();return a97_0x413d=function(_0x413dba,_0xe5c6f3){_0x413dba=_0x413dba-0x7e;var _0x4e69e0=_0x410471[_0x413dba];return _0x4e69e0;},a97_0x413d(_0x5880ed,_0x12c838);}import a97_0xc67df8 from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x301979,_0x31e695,_0x3cecd0){var _0x2f92e2=a97_0x413d;this['url']=_0x301979,this[_0x2f92e2(0xa3)]=_0x31e695||{},this[_0x2f92e2(0x9b)]=!_0x3cecd0?_0x2f92e2(0x7f):_0x3cecd0;}[a97_0xcdb1b7(0x81)](_0x11fde6){var _0xd8ace1=a97_0xcdb1b7,_0x421450;switch(_0x11fde6){case _0xd8ace1(0x9a):_0x421450=_0xd8ace1(0x87);break;case _0xd8ace1(0x7e):_0x421450=_0xd8ace1(0xa5);break;case _0xd8ace1(0x8d):_0x421450='esriGeometryPolyline';break;case _0xd8ace1(0x92):_0x421450=_0xd8ace1(0x8f);break;case _0xd8ace1(0xa4):_0x421450=_0xd8ace1(0xa8);break;case _0xd8ace1(0x85):_0x421450='esriGeometryPolygon';break;}return _0x421450;}[a97_0xcdb1b7(0xa9)](_0x1539e7){return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i['test'](_0x1539e7);}[a97_0xcdb1b7(0x97)](_0x205c26){var _0x582b2a=a97_0xcdb1b7,_0x31919f='';_0x205c26['f']=_0x205c26['f']||_0x582b2a(0x8e);for(var _0x5cee34 in _0x205c26){if(Object[_0x582b2a(0x98)][_0x582b2a(0x82)]['call'](_0x205c26,_0x5cee34)){var _0x37652d=_0x205c26[_0x5cee34],_0x558f11=Object[_0x582b2a(0x98)]['toString'][_0x582b2a(0x89)](_0x37652d),_0x203fdb;_0x31919f[_0x582b2a(0x9e)]&&(_0x31919f+='&');if(_0x558f11===_0x582b2a(0x84))_0x203fdb=Object['prototype'][_0x582b2a(0x9d)]['call'](_0x37652d[0x0])===_0x582b2a(0x8b)?JSON[_0x582b2a(0x80)](_0x37652d):_0x37652d[_0x582b2a(0x94)](',');else{if(_0x558f11===_0x582b2a(0x8b))_0x203fdb=JSON[_0x582b2a(0x80)](_0x37652d);else _0x558f11===_0x582b2a(0xa0)?_0x203fdb=_0x37652d[_0x582b2a(0x9f)]():_0x203fdb=_0x37652d;}_0x31919f+=encodeURIComponent(_0x5cee34)+'='+encodeURIComponent(_0x203fdb);}}return _0x31919f;}[a97_0xcdb1b7(0xa6)](_0x588253){var _0x3dfab3=a97_0xcdb1b7;return this[_0x3dfab3(0xa3)][_0x3dfab3(0x95)]=!_0x588253,this;}async[a97_0xcdb1b7(0x86)](){var _0x12bccb=a97_0xcdb1b7,_0xa4693f=this[_0x12bccb(0x97)](this[_0x12bccb(0xa3)]);const _0x25dd1a=this[_0x12bccb(0x93)]['indexOf']('?')>-0x1?this['url']+'&'+_0xa4693f:this[_0x12bccb(0x93)]+'?'+_0xa4693f;if(this['method']===_0x12bccb(0x7f))return a97_0xc67df8[_0x12bccb(0x90)](_0x25dd1a);else{if(this[_0x12bccb(0x9b)]==='JSONP')return jsonp(_0x25dd1a);else{const _0x45755c=stringify(this[_0x12bccb(0xa3)]);return a97_0xc67df8[_0x12bccb(0x91)](this[_0x12bccb(0x93)],_0x45755c);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99_0x4e67(_0x474bc7,_0x5bc4a5){const _0x5edb95=a99_0x5edb();return a99_0x4e67=function(_0x4e677a,_0x17d325){_0x4e677a=_0x4e677a-0xb2;let _0x3f1906=_0x5edb95[_0x4e677a];return _0x3f1906;},a99_0x4e67(_0x474bc7,_0x5bc4a5);}const a99_0x4c11d5=a99_0x4e67;(function(_0x42ce30,_0x58fd0a){const _0xdc12ba=a99_0x4e67,_0x328948=_0x42ce30();while(!![]){try{const _0x51ce1f=-parseInt(_0xdc12ba(0xcd))/0x1*(-parseInt(_0xdc12ba(0xb2))/0x2)+parseInt(_0xdc12ba(0xc3))/0x3*(-parseInt(_0xdc12ba(0xc6))/0x4)+parseInt(_0xdc12ba(0xd1))/0x5+-parseInt(_0xdc12ba(0xc1))/0x6+-parseInt(_0xdc12ba(0xcf))/0x7+parseInt(_0xdc12ba(0xda))/0x8+parseInt(_0xdc12ba(0xd5))/0x9*(-parseInt(_0xdc12ba(0xd2))/0xa);if(_0x51ce1f===_0x58fd0a)break;else _0x328948['push'](_0x328948['shift']());}catch(_0x177719){_0x328948['push'](_0x328948['shift']());}}}(a99_0x5edb,0xa86b3));import{and,intersects}from'ol/format/filter';function a99_0x5edb(){const _0x840101=['read','anonymous','catch','where','json','stringify','geometry','execute','then','2170692jMPRPE','geometry\x20is\x20invalid','7902ZJOgaf','geometry\x20is\x20required','map','884PXfuVa','tableName','1.1.1','features','url','serializeToString','writeGetFeature','18633ACahzs','_geoserverQuery','1999550NqgVln','queryParameters','4582980zmGzgh','9210VAGJlj','readFeature','srsName','5337OjFNiV','geometryName','POST','error','application/json','10751864dKswiO','22SBqXTY','getCoordinates','the_geom','geoserver','EPSG:4326','getFeatureInfoUrl'];a99_0x5edb=function(){return _0x840101;};return a99_0x5edb();}import a99_0x5d92bb from'../../format/CQL';import a99_0x330a5e from'ol/format/WFS';import a99_0xfaa876 from'ol/format/GeoJSON';import a99_0x5b9a0a from'ol/source/TileWMS';import{getGeometryCenter}from'../../GeometryUtil';export default class QueryTask{constructor(_0x3b5dc4){const _0x3c2194=a99_0x4e67;this['queryParameters']={},this[_0x3c2194(0xca)]=_0x3b5dc4;}async['executeRaster'](_0x3ed8a4){const _0x2c0673=a99_0x4e67,_0x2b61b4=new a99_0x5b9a0a({'url':this[_0x2c0673(0xca)],'params':{'LAYERS':_0x3ed8a4[_0x2c0673(0xc7)],'TILED':!![],'VERSION':_0x2c0673(0xc8)},'serverType':_0x2c0673(0xb5),'crossOrigin':_0x2c0673(0xb9)}),_0x10fb71=_0x3ed8a4['resolution']||0.001,_0x50ecf7=_0x3ed8a4[_0x2c0673(0xbe)];if(!_0x50ecf7)throw new Error(_0x2c0673(0xc4));let _0xc52330=getGeometryCenter(_0x50ecf7);if(!_0xc52330)throw new Error(_0x2c0673(0xc2));const _0xc58d1e=_0x2b61b4[_0x2c0673(0xb7)](_0xc52330[_0x2c0673(0xb3)](),_0x10fb71,_0x2c0673(0xb6),{'INFO_FORMAT':_0x2c0673(0xd9)}),_0x169c40=await fetch(_0xc58d1e,{'method':_0x2c0673(0xd7)}),_0x3ad230=await _0x169c40[_0x2c0673(0xbc)]();let _0x227e94=[];const _0x567156=new a99_0xfaa876();return _0x227e94=_0x3ad230[_0x2c0673(0xc9)][_0x2c0673(0xc5)](_0x229594=>{const _0x2c32ec=_0x2c0673;return _0x567156[_0x2c32ec(0xd3)](JSON[_0x2c32ec(0xbd)](_0x229594));}),_0x227e94;}async[a99_0x4c11d5(0xbf)](_0x58e518){const _0x4c9866=a99_0x4c11d5;this[_0x4c9866(0xd0)]=_0x58e518||{};const _0x57d72d=this[_0x4c9866(0xd0)]['geometryName']||_0x4c9866(0xb4);let _0x228b71=this[_0x4c9866(0xd0)]['where'],_0x409f7d;_0x228b71&&(_0x409f7d=new a99_0x5d92bb()[_0x4c9866(0xb8)](_0x228b71));let _0x2e413c=_0x409f7d;if(this['queryParameters']['geometry']){if(!this[_0x4c9866(0xd0)][_0x4c9866(0xd4)])throw new Error('srsName\x20is\x20required');const _0x3383e3=intersects(_0x57d72d,this[_0x4c9866(0xd0)][_0x4c9866(0xbe)]);_0x2e413c=_0x409f7d?and(_0x409f7d,_0x3383e3):_0x3383e3;}let _0x1abc1a=new a99_0x330a5e()[_0x4c9866(0xcc)]({'srsName':this[_0x4c9866(0xd0)][_0x4c9866(0xd4)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x4c9866(0xd0)][_0x4c9866(0xc7)]],'outputFormat':'application/json','geometryName':_0x57d72d,'filter':_0x2e413c});const _0x4a5dc7=await fetch(this[_0x4c9866(0xca)],{'method':_0x4c9866(0xd7),'body':new XMLSerializer()[_0x4c9866(0xcb)](_0x1abc1a)}),_0x50f7ff=await _0x4a5dc7['json']();let _0x224c65=[];const _0x2d505c=new a99_0xfaa876();return _0x224c65=_0x50f7ff[_0x4c9866(0xc9)][_0x4c9866(0xc5)](_0x4da488=>{const _0x32675e=_0x4c9866;return _0x2d505c[_0x32675e(0xd3)](JSON[_0x32675e(0xbd)](_0x4da488));}),_0x224c65;}[a99_0x4c11d5(0xce)](){const _0x25adde=a99_0x4c11d5,_0x207490=this[_0x25adde(0xd0)][_0x25adde(0xd6)]||_0x25adde(0xb4);let _0x3169d9=this[_0x25adde(0xd0)][_0x25adde(0xbb)],_0x4087f9;_0x3169d9&&(_0x4087f9=new a99_0x5d92bb()[_0x25adde(0xb8)](_0x3169d9));let _0x2ac00d=_0x4087f9;if(this[_0x25adde(0xd0)]['geometry']){const _0x4f953d=intersects(_0x207490,this[_0x25adde(0xd0)][_0x25adde(0xbe)]);_0x2ac00d=_0x4087f9?and(_0x4087f9,_0x4f953d):_0x4f953d;}let _0x1448aa=new a99_0x330a5e()[_0x25adde(0xcc)]({'srsName':this[_0x25adde(0xd0)]['srsName'],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x25adde(0xd0)][_0x25adde(0xc7)]],'outputFormat':'application/json','geometryName':_0x207490,'filter':_0x2ac00d});return new Promise(_0x86f56c=>{const _0x13fc4c=_0x25adde;fetch(this[_0x13fc4c(0xca)],{'method':'POST','body':new XMLSerializer()[_0x13fc4c(0xcb)](_0x1448aa)})['then'](_0x567141=>{const _0x3ca7c7=_0x13fc4c;return _0x567141[_0x3ca7c7(0xbc)]();})[_0x13fc4c(0xc0)](_0x2247d8=>{const _0x1d0993=_0x13fc4c;let _0x286150=[];const _0x56b9c5=new a99_0xfaa876();_0x286150=_0x2247d8[_0x1d0993(0xc9)][_0x1d0993(0xc5)](_0x1c24f5=>{const _0x3dbbba=_0x1d0993;return _0x56b9c5[_0x3dbbba(0xd3)](JSON[_0x3dbbba(0xbd)](_0x1c24f5));}),_0x86f56c(_0x286150);})[_0x13fc4c(0xba)](_0x4ebac4=>{const _0x2d0ced=_0x13fc4c;_0x86f56c([]),console[_0x2d0ced(0xd8)](_0x4ebac4);});});}}
|
package/utils/tasks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a100_0x1922(){const _0x616584=['85592RqsQXf','7117kPJXgk','4690JbJswT','fieldType','execute','gwc/service/wmts','1086VaipPr','intersects','find','replace','run','arcgis-dynamic','geoserver-wms','155480ReCGLN','name','5UbfTSL','executeRaster','6202rckKEs','wms','layerFields','333ffWfsV','1182128gsedwy','3859045boXpLz','geoserver-wmts','950814dmqjcv'];a100_0x1922=function(){return _0x616584;};return a100_0x1922();}(function(_0x229fd4,_0x215fe9){const _0x55a13d=a100_0x1909,_0x1ed8ac=_0x229fd4();while(!![]){try{const _0x36f843=-parseInt(_0x55a13d(0x1d6))/0x1*(-parseInt(_0x55a13d(0x1e0))/0x2)+-parseInt(_0x55a13d(0x1df))/0x3+parseInt(_0x55a13d(0x1dc))/0x4+parseInt(_0x55a13d(0x1dd))/0x5+parseInt(_0x55a13d(0x1e6))/0x6*(-parseInt(_0x55a13d(0x1d8))/0x7)+parseInt(_0x55a13d(0x1d4))/0x8*(-parseInt(_0x55a13d(0x1db))/0x9)+parseInt(_0x55a13d(0x1e2))/0xa*(parseInt(_0x55a13d(0x1e1))/0xb);if(_0x36f843===_0x215fe9)break;else _0x1ed8ac['push'](_0x1ed8ac['shift']());}catch(_0x3aadb8){_0x1ed8ac['push'](_0x1ed8ac['shift']());}}}(a100_0x1922,0x5ed0d));import{appendPath}from'../UrlUtil';import a100_0xddc2ed from'./esri/Query';import a100_0xdf555f from'./geoserver/QueryTask';function a100_0x1909(_0x5dcb2c,_0x367f79){const _0x19222d=a100_0x1922();return a100_0x1909=function(_0x190933,_0x4069c6){_0x190933=_0x190933-0x1d1;let _0x460bb9=_0x19222d[_0x190933];return _0x460bb9;},a100_0x1909(_0x5dcb2c,_0x367f79);}import{getWFSLayerCapabilities}from'../../capabilities';export async function selectFeaturesByGeo(_0x538436,_0x342251,_0x519e08,_0x3fb8ae,_0x2f223,_0x4172f8,_0x2645af){const _0x2c109c=a100_0x1909;if(!_0x519e08||!_0x3fb8ae||!_0x2f223||!_0x2f223)return[];let _0x371be9=[];try{if(_0x2f223==_0x2c109c(0x1d2)||_0x2f223=='arcgis-feature'){const _0x2a3001=appendPath(_0x519e08,_0x3fb8ae),_0x50c787=new a100_0xddc2ed(_0x2a3001,{'outSR':_0x342251,'where':_0x4172f8});_0x538436&&_0x342251&&_0x50c787[_0x2c109c(0x1e7)](_0x538436,_0x342251),_0x371be9=await _0x50c787[_0x2c109c(0x1d1)]();}else{if(_0x2f223=='geoserver-wfs'||_0x2f223==_0x2c109c(0x1d3)){const _0xa7ac5=new a100_0xdf555f(_0x519e08),_0x2796fb=await getWFSLayerCapabilities(_0x519e08,_0x3fb8ae);if(_0x2796fb&&_0x2796fb[_0x2c109c(0x1da)]){const _0x2b34e8=_0x2796fb[_0x2c109c(0x1da)][_0x2c109c(0x1e8)](_0x2ea56a=>_0x2ea56a[_0x2c109c(0x1e3)]==0x6);_0x371be9=await _0xa7ac5['execute']({'geometry':_0x538436,'tableName':_0x3fb8ae,'geometryName':_0x2b34e8?_0x2b34e8[_0x2c109c(0x1d5)]:'','srsName':_0x342251,'where':_0x4172f8});}else _0x371be9=await _0xa7ac5[_0x2c109c(0x1d7)]({'geometry':_0x538436,'tableName':_0x3fb8ae,'geometryName':'','srsName':_0x342251,'where':_0x4172f8,'resolution':_0x2645af});}else{if(_0x2f223==_0x2c109c(0x1de)){_0x519e08=_0x519e08[_0x2c109c(0x1e9)](_0x2c109c(0x1e5),_0x2c109c(0x1d9));const _0x2cf536=new a100_0xdf555f(_0x519e08),_0x50ceea=await getWFSLayerCapabilities(_0x519e08,_0x3fb8ae);if(_0x50ceea&&_0x50ceea[_0x2c109c(0x1da)]){let _0x22deb9=_0x50ceea[_0x2c109c(0x1da)][_0x2c109c(0x1e8)](_0x12761f=>_0x12761f['fieldType']==0x6);_0x371be9=await _0x2cf536[_0x2c109c(0x1e4)]({'geometry':_0x538436,'tableName':_0x3fb8ae,'geometryName':_0x22deb9?_0x22deb9[_0x2c109c(0x1d5)]:'','srsName':_0x342251,'where':_0x4172f8});}else _0x371be9=await _0x2cf536[_0x2c109c(0x1d7)]({'geometry':_0x538436,'tableName':_0x3fb8ae,'geometryName':'','srsName':_0x342251,'where':_0x4172f8,'resolution':_0x2645af});}}}}catch(_0x5cf5c8){}return _0x371be9;}
|