ym-gis-2d 1.0.7 → 1.0.8
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/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/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.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/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +5 -0
- 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/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/UrlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3683cb,_0xe210b2){const _0x191699=a80_0x58de,_0x56eafe=_0x3683cb();while(!![]){try{const _0x2e7599=-parseInt(_0x191699(0x189))/0x1+parseInt(_0x191699(0x187))/0x2+-parseInt(_0x191699(0x178))/0x3*(-parseInt(_0x191699(0x17c))/0x4)+-parseInt(_0x191699(0x18a))/0x5+parseInt(_0x191699(0x172))/0x6*(-parseInt(_0x191699(0x177))/0x7)+parseInt(_0x191699(0x170))/0x8*(-parseInt(_0x191699(0x179))/0x9)+-parseInt(_0x191699(0x17f))/0xa*(-parseInt(_0x191699(0x17b))/0xb);if(_0x2e7599===_0xe210b2)break;else _0x56eafe['push'](_0x56eafe['shift']());}catch(_0x54a015){_0x56eafe['push'](_0x56eafe['shift']());}}}(a80_0x170e,0xa185c));function a80_0x58de(_0x3a8fed,_0x266cfa){const _0x170ecb=a80_0x170e();return a80_0x58de=function(_0x58def4,_0x5e822b){_0x58def4=_0x58def4-0x16f;let _0x32a21d=_0x170ecb[_0x58def4];return _0x32a21d;},a80_0x58de(_0x3a8fed,_0x266cfa);}export function addArgument(_0x3fb574,_0xc4a124,_0x21e6e9){const _0x1c971e=a80_0x58de,_0x5edc02=new RegExp(_0x1c971e(0x17a)+_0xc4a124+_0x1c971e(0x183),'gi');if(_0x3fb574['match'](_0x5edc02))_0x3fb574=_0x3fb574[_0x1c971e(0x181)](_0x5edc02,_0x925156=>_0x925156[0x0]+_0xc4a124+'='+_0x21e6e9);else{var _0x5de816=_0xc4a124+'='+_0x21e6e9,_0x51a6dd=_0x3fb574[_0x1c971e(0x174)]('?');let _0x5ad6ac=_0x3fb574;_0x51a6dd>-0x1&&_0x3fb574[_0x1c971e(0x174)](_0x1c971e(0x186))>-0x1&&(_0x5ad6ac=_0x3fb574[_0x1c971e(0x184)](_0x51a6dd+0x1),_0x51a6dd=_0x5ad6ac['indexOf']('?'));if(_0x51a6dd<0x0)_0x3fb574+='?';else _0x51a6dd>=0x0&&_0x51a6dd!==_0x5ad6ac[_0x1c971e(0x17d)]-0x1&&(_0x3fb574+='&');_0x3fb574=_0x3fb574+_0x5de816;}return _0x3fb574;}export function appendParam(_0x1e6641,_0x45055a){const _0x3fb184=a80_0x58de;var _0x52ab9d=_0x1e6641[_0x3fb184(0x174)]('?');let _0x4b3e84=_0x1e6641;if(_0x52ab9d>-0x1&&_0x1e6641[_0x3fb184(0x174)](_0x3fb184(0x186))>-0x1){let _0x57d31c=_0x52ab9d+0x1;_0x4b3e84=_0x1e6641['substring'](_0x52ab9d+0x1),_0x52ab9d=_0x4b3e84['indexOf']('?');}return _0x52ab9d>-0x1?_0x1e6641+'&'+_0x45055a:_0x1e6641+'?'+_0x45055a;}export function appendPath(_0x5b7f33,_0x20fcd3){const _0x40c58e=a80_0x58de;var _0x4dba41=_0x5b7f33['indexOf']('?');let _0x27de67=_0x5b7f33;if(_0x4dba41>-0x1&&_0x5b7f33[_0x40c58e(0x174)](_0x40c58e(0x186))>-0x1){let _0x442e4a=_0x4dba41+0x1;_0x27de67=_0x5b7f33[_0x40c58e(0x184)](_0x4dba41+0x1),_0x4dba41=_0x27de67[_0x40c58e(0x174)]('?'),_0x4dba41>-0x1&&(_0x4dba41+=_0x442e4a);}return _0x4dba41>-0x1?_0x5b7f33['substring'](0x0,_0x4dba41)+'/'+_0x20fcd3+_0x5b7f33[_0x40c58e(0x184)](_0x4dba41):_0x5b7f33+'/'+_0x20fcd3;}export function getUrlParams(_0x1fadf1){const _0x4a53e4=a80_0x58de;var _0x547118,_0x598422;let _0x32c448=_0x1fadf1[_0x4a53e4(0x174)]('?http'),_0x2e5faf;_0x32c448>-0x1?_0x1fadf1[_0x4a53e4(0x174)]('?',_0x32c448+0x3)>-0x1&&(_0x2e5faf=(_0x547118=_0x1fadf1[_0x4a53e4(0x171)]('?'))===null||_0x547118===void 0x0?void 0x0:_0x547118[0x2]):_0x1fadf1[_0x4a53e4(0x174)]('?')>-0x1&&(_0x2e5faf=(_0x598422=_0x1fadf1['split']('?'))===null||_0x598422===void 0x0?void 0x0:_0x598422[0x1]);if(_0x2e5faf)return createParamByQuery(_0x2e5faf);return[];}function createParamByQuery(_0x48a1a7){const _0x15de1d=a80_0x58de;let _0x24fa1f=_0x48a1a7[_0x15de1d(0x171)]('&');return _0x24fa1f[_0x15de1d(0x185)](_0x1c3a42=>{const _0x4bd72b=_0x15de1d;var _0x137c19=_0x1c3a42[_0x4bd72b(0x171)]('=');return{'name':_0x137c19[0x0],'value':_0x137c19[0x1]};});}function a80_0x170e(){const _0x341452=['?http','1431662rhPCha','click','1283874LuKSfT','4749300IwGIpm','target','1952FdtABP','split','6VnStAc','href','indexOf','removeChild','body','8956843AuvFlD','15QTORwq','35010tERCiP','[\x5c?&](','11ZNfjHy','872324UoZzDx','length','createElement','33178030vEpjuQ','setAttribute','replace','appendChild','=)([^&]*)','substring','map'];a80_0x170e=function(){return _0x341452;};return a80_0x170e();}export function parseImage(_0x34f29f,_0x32e51e){let _0xaeed44='';if(_0x34f29f){if(_0x34f29f['match'](/^(data|http|https)/))_0xaeed44=_0x34f29f;else{if(_0x34f29f['match'](/Assets/))_0xaeed44=_0x34f29f;else{}}}return _0xaeed44;}export function downloadBlob(_0x443f8a,_0x1305cb){const _0x18bf7b=a80_0x58de,_0x3790cc=URL['createObjectURL'](_0x443f8a);var _0x1ae1cd=document[_0x18bf7b(0x17e)]('a');_0x1ae1cd[_0x18bf7b(0x180)](_0x18bf7b(0x173),_0x3790cc),_0x1ae1cd[_0x18bf7b(0x180)](_0x18bf7b(0x16f),'_blank'),_0x1ae1cd['setAttribute']('download',_0x1305cb),document[_0x18bf7b(0x176)][_0x18bf7b(0x182)](_0x1ae1cd),_0x1ae1cd[_0x18bf7b(0x188)](),document[_0x18bf7b(0x176)][_0x18bf7b(0x175)](_0x1ae1cd),URL['revokeObjectURL'](_0x3790cc);}
|
package/utils/XmlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a81_0x1a5e(_0x25dd8b,_0x3722ce){const _0x491f06=a81_0x491f();return a81_0x1a5e=function(_0x1a5e76,_0x3000b2){_0x1a5e76=_0x1a5e76-0xa4;let _0x1e880a=_0x491f06[_0x1a5e76];return _0x1e880a;},a81_0x1a5e(_0x25dd8b,_0x3722ce);}(function(_0x1bc241,_0x3180d1){const _0x33bebe=a81_0x1a5e,_0x25d65b=_0x1bc241();while(!![]){try{const _0x330782=parseInt(_0x33bebe(0xad))/0x1+-parseInt(_0x33bebe(0xa8))/0x2+parseInt(_0x33bebe(0xb2))/0x3+parseInt(_0x33bebe(0xab))/0x4*(parseInt(_0x33bebe(0xa5))/0x5)+parseInt(_0x33bebe(0xaa))/0x6+parseInt(_0x33bebe(0xb0))/0x7+-parseInt(_0x33bebe(0xa7))/0x8;if(_0x330782===_0x3180d1)break;else _0x25d65b['push'](_0x25d65b['shift']());}catch(_0x1977b9){_0x25d65b['push'](_0x25d65b['shift']());}}}(a81_0x491f,0xcaec7));function a81_0x491f(){const _0x2bc5e0=['text/xml','8931230ARAZlA','DOMParser','680775ApxqZp','parseFromString','55QqBXqs','false','28897976xTXoli','691908oYyIXc','loadXML','9951198EnDouN','330604sGkzZk','Microsoft.XMLDOM','718867dzwGQU','async'];a81_0x491f=function(){return _0x2bc5e0;};return a81_0x491f();}export function readXml(_0x4eb4d8){const _0x13a355=a81_0x1a5e;let _0x42b733;return window[_0x13a355(0xb1)]?_0x42b733=new DOMParser()[_0x13a355(0xa4)](_0x4eb4d8,_0x13a355(0xaf)):(_0x42b733=new ActiveXObject(_0x13a355(0xac)),_0x42b733[_0x13a355(0xae)]=_0x13a355(0xa6),_0x42b733[_0x13a355(0xa9)](_0x4eb4d8)),_0x42b733;}
|
package/utils/format/CQL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62_0x1332be=a62_0x54a9;(function(_0x43f3e7,_0x4b3156){const _0x3d5249=a62_0x54a9,_0x232af3=_0x43f3e7();while(!![]){try{const _0x4928e0=parseInt(_0x3d5249(0x113))/0x1*(-parseInt(_0x3d5249(0x108))/0x2)+parseInt(_0x3d5249(0xf8))/0x3*(parseInt(_0x3d5249(0x114))/0x4)+parseInt(_0x3d5249(0x117))/0x5+-parseInt(_0x3d5249(0x104))/0x6*(-parseInt(_0x3d5249(0x11f))/0x7)+-parseInt(_0x3d5249(0x12e))/0x8*(parseInt(_0x3d5249(0xde))/0x9)+-parseInt(_0x3d5249(0xf9))/0xa+parseInt(_0x3d5249(0xe9))/0xb;if(_0x4928e0===_0x4b3156)break;else _0x232af3['push'](_0x232af3['shift']());}catch(_0x6eb501){_0x232af3['push'](_0x232af3['shift']());}}}(a62_0x4f8e,0xc00bc));function a62_0x54a9(_0x30628c,_0x2fae3e){const _0x4f8e3f=a62_0x4f8e();return a62_0x54a9=function(_0x54a9cf,_0x2f70fd){_0x54a9cf=_0x54a9cf-0xdb;let _0x37d6e0=_0x4f8e3f[_0x54a9cf];return _0x37d6e0;},a62_0x54a9(_0x30628c,_0x2fae3e);}import*as a62_0x156155 from'ol/format/filter';import{WKT}from'ol/format';import a62_0x55382c from'ol/geom/Geometry';function a62_0x4f8e(){const _0x18a6a3=['VALUE','LOGICAL','2625260znRiOU','geometryName','nextToken','follows','replace','push','Intersects','tokenize','7OUhErB','Within','COMPARISON','srsName','isNull','CQL解析失败:','like','write','string','toLowerCase','not','BETWEEN','Unknown\x20token\x20type\x20','conditions','lessThanOrEqualTo','11416KUQZDY','readGeometry','PropertyIsLike','length','And','BBOX','substring','PROPERTY','replaceAll','toUpperCase','inPatterns','greaterThanOrEqualTo','bbox','and','WITHIN(','upperBoundary','extent','lastIndexOf','NOT\x20(','pop','index','RPAREN','END','type','INTERSECTS(','tokens','\x20AND\x20','PropertyIsNull','text','patterns','3789KwJxTJ','\x20BETWEEN\x20','IS\x20NULL','CONTAINS','Contains','PropertyIsBetween','within','expression','buildAst','SPATIAL','LIKE','26720210gwdrfP','operators','indexOf','operatorReverse','between','PropertyIsLessThanOrEqualTo','剩余的节点无法解析:\x20\x0a','BBOX(','NOT','GEOMETRY','intersects','\x0a\x20\x20\x20\x20','COMMA','property','shift','4410knOGsA','15041950AICgLE','\x20or\x20','IS_NULL','PropertyIsGreaterThan','ERROR:\x20In\x20parsing:\x20[','],\x20expected\x20one\x20of:\x20','contains','Not','tryToken','precedence','exec','841332QujxoP','Can\x27t\x20encode:\x20','warn','tagName_','8meVeIW','geometry','split','notEqualTo','PropertyIsNotEqualTo','PropertyIsLessThan','condition','INTERSECTS','lessThan','lowerBoundary','LPAREN','54008qeiBwh','36CfKxRB'];a62_0x4f8e=function(){return _0x18a6a3;};return a62_0x4f8e();}export default class CQL{constructor(){const _0x3423ef=a62_0x54a9;this[_0x3423ef(0x138)]=/ (IN) /i,this[_0x3423ef(0x147)]=[_0x3423ef(0x135),_0x3423ef(0x121),_0x3423ef(0x115),_0x3423ef(0x116)],this['patterns']={'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(_0x5ac34e){const _0x3992f1=_0x3423ef;let _0x445717=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/['exec'](_0x5ac34e);if(_0x445717){let _0x303bdf=_0x5ac34e['length'],_0x51d76f=_0x5ac34e[_0x3992f1(0xeb)]('(',_0x445717[0x0][_0x3992f1(0x131)]);if(_0x51d76f>-0x1){let _0x3b22e2=0x1;while(_0x51d76f<_0x303bdf&&_0x3b22e2>0x0){_0x51d76f++;switch(_0x5ac34e['charAt'](_0x51d76f)){case'(':_0x3b22e2++;break;case')':_0x3b22e2--;break;default:}}}return[_0x5ac34e[_0x3992f1(0x134)](0x0,_0x51d76f+0x1)];}},'END':/^$/},this['follows']={'LPAREN':[_0x3423ef(0xf2),_0x3423ef(0xe7),_0x3423ef(0x135),_0x3423ef(0x115),'LPAREN'],'RPAREN':[_0x3423ef(0xf1),'LOGICAL',_0x3423ef(0x144),'RPAREN'],'PROPERTY':[_0x3423ef(0x121),_0x3423ef(0x12a),'COMMA',_0x3423ef(0xfb)],'BETWEEN':[_0x3423ef(0x115)],'IS_NULL':[_0x3423ef(0x144)],'COMPARISON':[_0x3423ef(0x115)],'COMMA':[_0x3423ef(0xf2),_0x3423ef(0x115),_0x3423ef(0x135)],'VALUE':['LOGICAL',_0x3423ef(0xf5),_0x3423ef(0x143),_0x3423ef(0x144)],'SPATIAL':[_0x3423ef(0x112)],'LOGICAL':['NOT','VALUE',_0x3423ef(0xe7),_0x3423ef(0x135),_0x3423ef(0x112)],'NOT':[_0x3423ef(0x135),'LPAREN'],'GEOMETRY':[_0x3423ef(0xf5),'RPAREN']},this['operators']={'=':a62_0x156155['equalTo'],'<>':a62_0x156155[_0x3423ef(0x10b)],'<':a62_0x156155[_0x3423ef(0x110)],'<=':a62_0x156155[_0x3423ef(0x12d)],'>':a62_0x156155['greaterThan'],'>=':a62_0x156155[_0x3423ef(0x139)],'LIKE':a62_0x156155[_0x3423ef(0x125)],'BETWEEN':a62_0x156155[_0x3423ef(0xed)],'IS\x20NULL':a62_0x156155[_0x3423ef(0x123)]},this[_0x3423ef(0xec)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x3423ef(0xe8),'PropertyIsNull':_0x3423ef(0xe0),'PropertyIsBetween':'BETWEEN'},this['logicals']={'AND':a62_0x156155[_0x3423ef(0x13b)],'OR':a62_0x156155['or']},this[_0x3423ef(0x102)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}['tryToken'](_0x41c81f,_0x334a32){const _0x39809a=a62_0x54a9;return _0x334a32 instanceof RegExp?_0x334a32[_0x39809a(0x103)](_0x41c81f):_0x334a32(_0x41c81f);}[a62_0x1332be(0x119)](_0x317f4b,_0x11a551){const _0x2094a3=a62_0x1332be;let _0x538bc6,_0x4967a1,_0x40cbe6=_0x11a551[_0x2094a3(0x131)];for(_0x538bc6=0x0;_0x538bc6<_0x40cbe6;_0x538bc6++){_0x4967a1=_0x11a551[_0x538bc6];let _0x1a4b64=this[_0x2094a3(0xdd)][_0x4967a1],_0x4c4c65=this[_0x2094a3(0x101)](_0x317f4b,_0x1a4b64);if(_0x4c4c65){let _0x54aebf=_0x4c4c65[0x0],_0x5d238e=_0x317f4b['substring'](_0x54aebf['length'])[_0x2094a3(0x11b)](/^\s*/,'');return{'type':_0x4967a1,'text':_0x54aebf,'remainder':_0x5d238e};}}let _0x1c7789=_0x2094a3(0xfd)+_0x317f4b+_0x2094a3(0xfe);for(_0x538bc6=0x0;_0x538bc6<_0x40cbe6;_0x538bc6++){_0x4967a1=_0x11a551[_0x538bc6],_0x1c7789+=_0x2094a3(0xf4)+_0x4967a1+':\x20'+this[_0x2094a3(0xdd)][_0x4967a1];}throw new Error(_0x1c7789);}[a62_0x1332be(0x11e)](_0x30d740){const _0x25a27c=a62_0x1332be;_0x30d740=_0x30d740[_0x25a27c(0x136)]('[','')['replaceAll'](']','');let _0x1a89a3=this[_0x25a27c(0x101)](_0x30d740,this[_0x25a27c(0x138)]);_0x1a89a3&&(_0x30d740=this['parseInToOr'](_0x30d740,_0x1a89a3));let _0x50bdc6=[],_0x36d310,_0x891ec4=[_0x25a27c(0xf1),_0x25a27c(0xf2),_0x25a27c(0xe7),_0x25a27c(0x135),_0x25a27c(0x112)];do{_0x36d310=this[_0x25a27c(0x119)](_0x30d740,_0x891ec4),_0x30d740=_0x36d310['remainder'],_0x891ec4=this[_0x25a27c(0x11a)][_0x36d310[_0x25a27c(0x145)]];if(_0x36d310[_0x25a27c(0x145)]!==_0x25a27c(0x144)&&!_0x891ec4)throw new Error('No\x20follows\x20list\x20for\x20'+_0x36d310[_0x25a27c(0x145)]);_0x50bdc6[_0x25a27c(0x11c)](_0x36d310);}while(_0x36d310[_0x25a27c(0x145)]!==_0x25a27c(0x144));return _0x50bdc6;}['parseInToOr'](_0x481ddd,_0x54b7c0){const _0x4efc7c=a62_0x1332be;let _0x5d1c94=this[_0x4efc7c(0x101)](_0x481ddd,/\((.+?)\)/g);if(_0x5d1c94){let _0x9ab3d8=_0x481ddd[_0x4efc7c(0x134)](0x0,_0x54b7c0[_0x4efc7c(0x142)]),_0xcc9f71=_0x5d1c94[0x1],_0x9ca5f8=_0xcc9f71['replaceAll']('\x20','')[_0x4efc7c(0x10a)](','),_0x2fa952='',_0x4493f7='';if(_0x9ab3d8[_0x4efc7c(0xeb)]('\x20')>-0x1){let _0xe2e410=_0x9ab3d8[_0x4efc7c(0x13f)]('\x20');_0x4493f7=_0x9ab3d8[_0x4efc7c(0x134)](0x0,_0xe2e410+0x1),_0x2fa952=_0x9ab3d8[_0x4efc7c(0x134)](_0xe2e410+0x1,_0x9ab3d8[_0x4efc7c(0x131)]);}else _0x2fa952=_0x9ab3d8;let _0x213370=_0x4493f7;for(let _0x48a90a=0x0;_0x48a90a<_0x9ca5f8['length'];_0x48a90a++){let _0x57b501=_0x9ca5f8[_0x48a90a];_0x213370+=_0x2fa952+'='+_0x57b501,_0x48a90a<_0x9ca5f8['length']-0x1&&(_0x213370+=_0x4efc7c(0xfa));}return _0x213370;}return _0x481ddd;}[a62_0x1332be(0xe6)](_0x4db8e8){const _0x1849b8=a62_0x1332be;let _0x32d18c=this,_0x37256a=[],_0x337c6d=[];while(_0x4db8e8[_0x1849b8(0x131)]){let _0x31bf67=_0x4db8e8[_0x1849b8(0xf7)]();switch(_0x31bf67[_0x1849b8(0x145)]){case _0x1849b8(0x135):case _0x1849b8(0xf2):case'VALUE':_0x337c6d[_0x1849b8(0x11c)](_0x31bf67);break;case _0x1849b8(0x121):case _0x1849b8(0x12a):case'IS_NULL':case _0x1849b8(0x116):{let _0x4f8467=this[_0x1849b8(0x102)][_0x31bf67[_0x1849b8(0x145)]];while(_0x37256a[_0x1849b8(0x131)]>0x0&&this[_0x1849b8(0x102)][_0x37256a[_0x37256a[_0x1849b8(0x131)]-0x1]['type']]<=_0x4f8467){_0x337c6d[_0x1849b8(0x11c)](_0x37256a[_0x1849b8(0x141)]());}_0x37256a[_0x1849b8(0x11c)](_0x31bf67);break;}case _0x1849b8(0xe7):case _0x1849b8(0xf1):case'LPAREN':_0x37256a[_0x1849b8(0x11c)](_0x31bf67);break;case'RPAREN':while(_0x37256a[_0x1849b8(0x131)]>0x0&&_0x37256a[_0x37256a['length']-0x1][_0x1849b8(0x145)]!=='LPAREN'){_0x337c6d[_0x1849b8(0x11c)](_0x37256a[_0x1849b8(0x141)]());}_0x37256a[_0x1849b8(0x141)]();_0x37256a[_0x1849b8(0x131)]>0x0&&(_0x37256a[_0x37256a[_0x1849b8(0x131)]-0x1][_0x1849b8(0x145)]==='SPATIAL'||_0x37256a[_0x37256a[_0x1849b8(0x131)]-0x1][_0x1849b8(0x145)]===_0x1849b8(0xf1))&&_0x337c6d[_0x1849b8(0x11c)](_0x37256a[_0x1849b8(0x141)]());break;case _0x1849b8(0xf5):case _0x1849b8(0x144):break;default:throw new Error(_0x1849b8(0x12b)+_0x31bf67[_0x1849b8(0x145)]);}}while(_0x37256a[_0x1849b8(0x131)]>0x0){_0x337c6d[_0x1849b8(0x11c)](_0x37256a['pop']());}function _0x58b7b0(){const _0x9a0125=_0x1849b8;let _0x1542d0,_0x49503e,_0x4aadc5=_0x337c6d['pop']();switch(_0x4aadc5[_0x9a0125(0x145)]){case _0x9a0125(0x116):{let _0x56f701=_0x58b7b0(),_0x20c52c=_0x58b7b0();return new _0x32d18c['logicals'][(_0x4aadc5['text'][_0x9a0125(0x137)]())](_0x20c52c,_0x56f701);}case _0x9a0125(0xf1):{let _0x3b04c6=_0x58b7b0();return a62_0x156155[_0x9a0125(0x129)](_0x3b04c6);}case'BETWEEN':{let _0x1ac733,_0x3bfa87;return _0x337c6d[_0x9a0125(0x141)](),_0x3bfa87=_0x58b7b0(),_0x1ac733=_0x58b7b0(),_0x49503e=_0x58b7b0(),a62_0x156155[_0x9a0125(0xed)](_0x49503e,_0x1ac733,_0x3bfa87);}case _0x9a0125(0x121):{return _0x1542d0=_0x58b7b0(),_0x49503e=_0x58b7b0(),new _0x32d18c[(_0x9a0125(0xea))][(_0x4aadc5['text'][_0x9a0125(0x137)]())](_0x49503e,_0x1542d0);}case'IS_NULL':_0x49503e=_0x58b7b0();return new _0x32d18c[(_0x9a0125(0xea))][(_0x4aadc5[_0x9a0125(0xdc)][_0x9a0125(0x137)]())](_0x49503e);case _0x9a0125(0x115):{let _0xf0f2eb=_0x4aadc5[_0x9a0125(0xdc)]['match'](/^'(.*)'$/);return _0xf0f2eb?_0xf0f2eb[0x1]['replace'](/''/g,'\x27'):Number(_0x4aadc5[_0x9a0125(0xdc)]);}case'SPATIAL':switch(_0x4aadc5[_0x9a0125(0xdc)][_0x9a0125(0x137)]()){case _0x9a0125(0x133):{let _0xc43c49=_0x58b7b0(),_0x2cbd1=_0x58b7b0(),_0x32ad4f=_0x58b7b0(),_0xf9ca8d=_0x58b7b0(),_0x16d8ae=_0x58b7b0();return a62_0x156155[_0x9a0125(0x13a)](_0x16d8ae,[_0xf9ca8d,_0x32ad4f,_0x2cbd1,_0xc43c49]);}case _0x9a0125(0x10f):_0x1542d0=_0x58b7b0(),_0x49503e=_0x58b7b0();return a62_0x156155[_0x9a0125(0xf3)](_0x49503e,_0x1542d0);case'WITHIN':_0x1542d0=_0x58b7b0(),_0x49503e=_0x58b7b0();return a62_0x156155[_0x9a0125(0xe4)](_0x49503e,_0x1542d0);case _0x9a0125(0xe1):_0x1542d0=_0x58b7b0(),_0x49503e=_0x58b7b0();return a62_0x156155[_0x9a0125(0xff)](_0x49503e,_0x1542d0);}break;case _0x9a0125(0xf2):return new WKT()['readGeometry'](_0x4aadc5['text'],{});default:return _0x4aadc5['text'];}}let _0x2082b2=_0x58b7b0();if(_0x337c6d['length']>0x0){let _0x9f7f2f=_0x1849b8(0xef);for(let _0x2bfc27=_0x337c6d[_0x1849b8(0x131)]-0x1;_0x2bfc27>=0x0;_0x2bfc27--){_0x9f7f2f+=_0x337c6d[_0x2bfc27][_0x1849b8(0x145)]+':\x20'+_0x337c6d[_0x2bfc27][_0x1849b8(0xdc)]+'\x0a';}throw new Error(_0x9f7f2f);}return _0x2082b2;}['read'](_0x1b0195){const _0x13d20d=a62_0x1332be;try{return this[_0x13d20d(0xe6)](this[_0x13d20d(0x11e)](_0x1b0195));}catch(_0x1a195e){console['warn'](_0x13d20d(0x124)+_0x1b0195),console[_0x13d20d(0x106)](_0x1a195e);}}[a62_0x1332be(0x126)](_0x432718){const _0xad0602=a62_0x1332be;switch(_0x432718[_0xad0602(0x107)]){case'BBOX':return _0xad0602(0xf0)+_0x432718[_0xad0602(0x118)]+','+_0x432718[_0xad0602(0x13e)]['join'](',')+','+_0x432718[_0xad0602(0x122)]+')';case _0xad0602(0x120):return _0xad0602(0x13c)+_0x432718[_0xad0602(0x118)]+',\x20'+this[_0xad0602(0x12f)](_0x432718[_0xad0602(0x109)])+')';case _0xad0602(0x11d):return _0xad0602(0x146)+_0x432718[_0xad0602(0x118)]+',\x20'+this[_0xad0602(0x12f)](_0x432718[_0xad0602(0x109)])+')';case _0xad0602(0xe2):return'CONTAINS('+_0x432718[_0xad0602(0x118)]+',\x20'+this[_0xad0602(0x12f)](_0x432718[_0xad0602(0x109)])+')';case _0xad0602(0x100):return _0xad0602(0x140)+this[_0xad0602(0x126)](_0x432718[_0xad0602(0x10e)])+')';case _0xad0602(0x132):case'Or':{let _0x50482c='(',_0x198859=!![];for(let _0x7c0058=0x0;_0x7c0058<_0x432718[_0xad0602(0x12c)][_0xad0602(0x131)];_0x7c0058++){_0x198859?_0x198859=![]:_0x50482c+=')\x20'+_0x432718['tagName_'][_0xad0602(0x128)]()+'\x20(',_0x50482c+=this['write'](_0x432718[_0xad0602(0x12c)][_0x7c0058]);}return _0x50482c+')';}case _0xad0602(0xe3):return _0x432718[_0xad0602(0xf6)]+_0xad0602(0xdf)+this[_0xad0602(0x126)](_0x432718[_0xad0602(0x111)])+_0xad0602(0x148)+this[_0xad0602(0x126)](_0x432718[_0xad0602(0x13d)]);case'PropertyIsEqualTo':case _0xad0602(0x10c):case _0xad0602(0x10d):case _0xad0602(0xee):case _0xad0602(0xfc):case'PropertyIsGreaterThanOrEqualTo':case _0xad0602(0x130):case _0xad0602(0xdb):{return _0x432718['expression']!==null?_0x432718['propertyName']+'\x20'+this['operatorReverse'][_0x432718[_0xad0602(0x107)]]+'\x20'+this[_0xad0602(0x126)](_0x432718[_0xad0602(0xe5)]):_0x432718['propertyName']+'\x20'+this[_0xad0602(0xec)][_0x432718[_0xad0602(0x107)]];}case undefined:if(typeof _0x432718===_0xad0602(0x127))return'\x27'+_0x432718[_0xad0602(0x11b)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x432718==='number')return String(_0x432718);}break;default:throw new Error(_0xad0602(0x105)+_0x432718['CLASS_NAME']+'\x20'+_0x432718);}}[a62_0x1332be(0x12f)](_0x2cd528){if(_0x2cd528 instanceof a62_0x55382c)return new WKT()['writeGeometry'](_0x2cd528);}}
|
|
1
|
+
function a62_0x4365(){const _0x3bd7ca=['operatorReverse','writeGeometry','LPAREN','PropertyIsLessThanOrEqualTo','write','geometry','3475928IPIXYt','5053450iHlCsb','index','parseInToOr','exec','greaterThan','WITHIN','PropertyIsEqualTo','patterns','match','substring','like','PropertyIsNull','COMMA','number','propertyName','intersects','toUpperCase','shift','CQL解析失败:','6742211rEieyL','lastIndexOf','PropertyIsNotEqualTo','INTERSECTS(','read','precedence','and','ERROR:\x20In\x20parsing:\x20[','Unknown\x20token\x20type\x20','type','within','bbox','follows','lessThanOrEqualTo','tryToken','WITHIN(','equalTo','remainder','NOT\x20(','conditions','IS_NULL','No\x20follows\x20list\x20for\x20','extent','COMPARISON','BBOX','push','tagName_','Intersects','tokens','2xsOdsK','And','394374znvDXw','inPatterns','warn','length','PropertyIsLike','text','indexOf','454962aQtvjW','PROPERTY','PropertyIsBetween','\x0a\x20\x20\x20\x20','between','19323864zWUSKd','toLowerCase','BETWEEN','lessThan','END','readGeometry','BBOX(','replace','GEOMETRY','condition','VALUE','剩余的节点无法解析:\x20\x0a','Within','\x20AND\x20','pop','nextToken','RPAREN','\x20BETWEEN\x20','PropertyIsLessThan','SPATIAL','NOT','not','PropertyIsGreaterThan','PropertyIsGreaterThanOrEqualTo','LOGICAL','replaceAll','split','tokenize','Contains','1086555CfdFmx','lowerBoundary','logicals','],\x20expected\x20one\x20of:\x20','operators','geometryName','expression'];a62_0x4365=function(){return _0x3bd7ca;};return a62_0x4365();}const a62_0x2008bd=a62_0x5b22;(function(_0x337d5b,_0x56b37b){const _0x495bf2=a62_0x5b22,_0x4a2a48=_0x337d5b();while(!![]){try{const _0x274b9a=-parseInt(_0x495bf2(0x1fe))/0x1*(-parseInt(_0x495bf2(0x1fc))/0x2)+-parseInt(_0x495bf2(0x1be))/0x3+parseInt(_0x495bf2(0x1cb))/0x4+parseInt(_0x495bf2(0x1cc))/0x5+parseInt(_0x495bf2(0x19c))/0x6+parseInt(_0x495bf2(0x1df))/0x7+-parseInt(_0x495bf2(0x1a1))/0x8;if(_0x274b9a===_0x56b37b)break;else _0x4a2a48['push'](_0x4a2a48['shift']());}catch(_0x4d9905){_0x4a2a48['push'](_0x4a2a48['shift']());}}}(a62_0x4365,0x82b52));import*as a62_0x515559 from'ol/format/filter';import{WKT}from'ol/format';import a62_0x53fb92 from'ol/geom/Geometry';function a62_0x5b22(_0x362093,_0xae18a){const _0x43659e=a62_0x4365();return a62_0x5b22=function(_0x5b22dd,_0x3b312e){_0x5b22dd=_0x5b22dd-0x19b;let _0x30eed2=_0x43659e[_0x5b22dd];return _0x30eed2;},a62_0x5b22(_0x362093,_0xae18a);}export default class CQL{constructor(){const _0x2011d3=a62_0x5b22;this[_0x2011d3(0x1ff)]=/ (IN) /i,this[_0x2011d3(0x1fb)]=[_0x2011d3(0x19d),_0x2011d3(0x1f6),_0x2011d3(0x1ab),_0x2011d3(0x1b9)],this['patterns']={'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(_0x55aacb){const _0x23f082=_0x2011d3;let _0x4c2fc3=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x23f082(0x1cf)](_0x55aacb);if(_0x4c2fc3){let _0x1f4afb=_0x55aacb[_0x23f082(0x201)],_0x191188=_0x55aacb[_0x23f082(0x19b)]('(',_0x4c2fc3[0x0][_0x23f082(0x201)]);if(_0x191188>-0x1){let _0x3afc3f=0x1;while(_0x191188<_0x1f4afb&&_0x3afc3f>0x0){_0x191188++;switch(_0x55aacb['charAt'](_0x191188)){case'(':_0x3afc3f++;break;case')':_0x3afc3f--;break;default:}}}return[_0x55aacb[_0x23f082(0x1d5)](0x0,_0x191188+0x1)];}},'END':/^$/},this[_0x2011d3(0x1eb)]={'LPAREN':[_0x2011d3(0x1a9),'SPATIAL',_0x2011d3(0x19d),_0x2011d3(0x1ab),_0x2011d3(0x1c7)],'RPAREN':[_0x2011d3(0x1b5),_0x2011d3(0x1b9),'END','RPAREN'],'PROPERTY':[_0x2011d3(0x1f6),_0x2011d3(0x1a3),'COMMA',_0x2011d3(0x1f3)],'BETWEEN':[_0x2011d3(0x1ab)],'IS_NULL':[_0x2011d3(0x1a5)],'COMPARISON':[_0x2011d3(0x1ab)],'COMMA':[_0x2011d3(0x1a9),_0x2011d3(0x1ab),_0x2011d3(0x19d)],'VALUE':['LOGICAL',_0x2011d3(0x1d8),_0x2011d3(0x1b1),'END'],'SPATIAL':['LPAREN'],'LOGICAL':['NOT','VALUE',_0x2011d3(0x1b4),'PROPERTY',_0x2011d3(0x1c7)],'NOT':[_0x2011d3(0x19d),_0x2011d3(0x1c7)],'GEOMETRY':[_0x2011d3(0x1d8),'RPAREN']},this[_0x2011d3(0x1c2)]={'=':a62_0x515559[_0x2011d3(0x1ef)],'<>':a62_0x515559['notEqualTo'],'<':a62_0x515559[_0x2011d3(0x1a4)],'<=':a62_0x515559[_0x2011d3(0x1ec)],'>':a62_0x515559[_0x2011d3(0x1d0)],'>=':a62_0x515559['greaterThanOrEqualTo'],'LIKE':a62_0x515559[_0x2011d3(0x1d6)],'BETWEEN':a62_0x515559[_0x2011d3(0x1a0)],'IS\x20NULL':a62_0x515559['isNull']},this['operatorReverse']={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':'LIKE','PropertyIsNull':'IS\x20NULL','PropertyIsBetween':'BETWEEN'},this[_0x2011d3(0x1c0)]={'AND':a62_0x515559[_0x2011d3(0x1e5)],'OR':a62_0x515559['or']},this['precedence']={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a62_0x2008bd(0x1ed)](_0x2b3bec,_0x3bef96){return _0x3bef96 instanceof RegExp?_0x3bef96['exec'](_0x2b3bec):_0x3bef96(_0x2b3bec);}[a62_0x2008bd(0x1b0)](_0x1452d2,_0x2803d0){const _0x3d5757=a62_0x2008bd;let _0x389e59,_0x1b8284,_0x1107b1=_0x2803d0[_0x3d5757(0x201)];for(_0x389e59=0x0;_0x389e59<_0x1107b1;_0x389e59++){_0x1b8284=_0x2803d0[_0x389e59];let _0x17356b=this[_0x3d5757(0x1d3)][_0x1b8284],_0x3f212f=this[_0x3d5757(0x1ed)](_0x1452d2,_0x17356b);if(_0x3f212f){let _0x20eb3f=_0x3f212f[0x0],_0x230bff=_0x1452d2[_0x3d5757(0x1d5)](_0x20eb3f[_0x3d5757(0x201)])[_0x3d5757(0x1a8)](/^\s*/,'');return{'type':_0x1b8284,'text':_0x20eb3f,'remainder':_0x230bff};}}let _0x518565=_0x3d5757(0x1e6)+_0x1452d2+_0x3d5757(0x1c1);for(_0x389e59=0x0;_0x389e59<_0x1107b1;_0x389e59++){_0x1b8284=_0x2803d0[_0x389e59],_0x518565+=_0x3d5757(0x19f)+_0x1b8284+':\x20'+this[_0x3d5757(0x1d3)][_0x1b8284];}throw new Error(_0x518565);}[a62_0x2008bd(0x1bc)](_0x19d3c8){const _0x276185=a62_0x2008bd;_0x19d3c8=_0x19d3c8[_0x276185(0x1ba)]('[','')['replaceAll'](']','');let _0x3ab1c3=this['tryToken'](_0x19d3c8,this[_0x276185(0x1ff)]);_0x3ab1c3&&(_0x19d3c8=this[_0x276185(0x1ce)](_0x19d3c8,_0x3ab1c3));let _0x14a80f=[],_0x5eb304,_0x14b63e=['NOT',_0x276185(0x1a9),_0x276185(0x1b4),_0x276185(0x19d),_0x276185(0x1c7)];do{_0x5eb304=this[_0x276185(0x1b0)](_0x19d3c8,_0x14b63e),_0x19d3c8=_0x5eb304[_0x276185(0x1f0)],_0x14b63e=this[_0x276185(0x1eb)][_0x5eb304[_0x276185(0x1e8)]];if(_0x5eb304['type']!==_0x276185(0x1a5)&&!_0x14b63e)throw new Error(_0x276185(0x1f4)+_0x5eb304[_0x276185(0x1e8)]);_0x14a80f[_0x276185(0x1f8)](_0x5eb304);}while(_0x5eb304[_0x276185(0x1e8)]!==_0x276185(0x1a5));return _0x14a80f;}[a62_0x2008bd(0x1ce)](_0xfd5bbb,_0xf4a4ba){const _0x288645=a62_0x2008bd;let _0x579d4b=this[_0x288645(0x1ed)](_0xfd5bbb,/\((.+?)\)/g);if(_0x579d4b){let _0x537025=_0xfd5bbb[_0x288645(0x1d5)](0x0,_0xf4a4ba[_0x288645(0x1cd)]),_0x9ab407=_0x579d4b[0x1],_0x55f0f3=_0x9ab407[_0x288645(0x1ba)]('\x20','')[_0x288645(0x1bb)](','),_0x3e4f89='',_0x520f80='';if(_0x537025[_0x288645(0x19b)]('\x20')>-0x1){let _0x5b36f3=_0x537025[_0x288645(0x1e0)]('\x20');_0x520f80=_0x537025['substring'](0x0,_0x5b36f3+0x1),_0x3e4f89=_0x537025['substring'](_0x5b36f3+0x1,_0x537025[_0x288645(0x201)]);}else _0x3e4f89=_0x537025;let _0xcb8115=_0x520f80;for(let _0x3fdd52=0x0;_0x3fdd52<_0x55f0f3[_0x288645(0x201)];_0x3fdd52++){let _0x40c820=_0x55f0f3[_0x3fdd52];_0xcb8115+=_0x3e4f89+'='+_0x40c820,_0x3fdd52<_0x55f0f3['length']-0x1&&(_0xcb8115+='\x20or\x20');}return _0xcb8115;}return _0xfd5bbb;}['buildAst'](_0x2fe7b0){const _0x4702f9=a62_0x2008bd;let _0x2a18df=this,_0x3d9209=[],_0x8e0454=[];while(_0x2fe7b0[_0x4702f9(0x201)]){let _0x3825b1=_0x2fe7b0[_0x4702f9(0x1dd)]();switch(_0x3825b1['type']){case _0x4702f9(0x19d):case _0x4702f9(0x1a9):case _0x4702f9(0x1ab):_0x8e0454[_0x4702f9(0x1f8)](_0x3825b1);break;case'COMPARISON':case'BETWEEN':case _0x4702f9(0x1f3):case _0x4702f9(0x1b9):{let _0x4e0386=this[_0x4702f9(0x1e4)][_0x3825b1['type']];while(_0x3d9209[_0x4702f9(0x201)]>0x0&&this[_0x4702f9(0x1e4)][_0x3d9209[_0x3d9209[_0x4702f9(0x201)]-0x1]['type']]<=_0x4e0386){_0x8e0454[_0x4702f9(0x1f8)](_0x3d9209['pop']());}_0x3d9209[_0x4702f9(0x1f8)](_0x3825b1);break;}case _0x4702f9(0x1b4):case _0x4702f9(0x1b5):case _0x4702f9(0x1c7):_0x3d9209[_0x4702f9(0x1f8)](_0x3825b1);break;case'RPAREN':while(_0x3d9209['length']>0x0&&_0x3d9209[_0x3d9209[_0x4702f9(0x201)]-0x1]['type']!=='LPAREN'){_0x8e0454[_0x4702f9(0x1f8)](_0x3d9209[_0x4702f9(0x1af)]());}_0x3d9209['pop']();_0x3d9209[_0x4702f9(0x201)]>0x0&&(_0x3d9209[_0x3d9209[_0x4702f9(0x201)]-0x1][_0x4702f9(0x1e8)]===_0x4702f9(0x1b4)||_0x3d9209[_0x3d9209[_0x4702f9(0x201)]-0x1]['type']===_0x4702f9(0x1b5))&&_0x8e0454[_0x4702f9(0x1f8)](_0x3d9209[_0x4702f9(0x1af)]());break;case _0x4702f9(0x1d8):case'END':break;default:throw new Error(_0x4702f9(0x1e7)+_0x3825b1[_0x4702f9(0x1e8)]);}}while(_0x3d9209[_0x4702f9(0x201)]>0x0){_0x8e0454[_0x4702f9(0x1f8)](_0x3d9209[_0x4702f9(0x1af)]());}function _0x4dc4f5(){const _0x343a33=_0x4702f9;let _0x336c3d,_0x3f4231,_0x7b5414=_0x8e0454[_0x343a33(0x1af)]();switch(_0x7b5414['type']){case _0x343a33(0x1b9):{let _0x18a0b0=_0x4dc4f5(),_0x3a6969=_0x4dc4f5();return new _0x2a18df[(_0x343a33(0x1c0))][(_0x7b5414['text']['toUpperCase']())](_0x3a6969,_0x18a0b0);}case _0x343a33(0x1b5):{let _0x381e23=_0x4dc4f5();return a62_0x515559[_0x343a33(0x1b6)](_0x381e23);}case _0x343a33(0x1a3):{let _0x2e9aad,_0x34d88b;return _0x8e0454[_0x343a33(0x1af)](),_0x34d88b=_0x4dc4f5(),_0x2e9aad=_0x4dc4f5(),_0x3f4231=_0x4dc4f5(),a62_0x515559[_0x343a33(0x1a0)](_0x3f4231,_0x2e9aad,_0x34d88b);}case _0x343a33(0x1f6):{return _0x336c3d=_0x4dc4f5(),_0x3f4231=_0x4dc4f5(),new _0x2a18df['operators'][(_0x7b5414[_0x343a33(0x203)][_0x343a33(0x1dc)]())](_0x3f4231,_0x336c3d);}case _0x343a33(0x1f3):_0x3f4231=_0x4dc4f5();return new _0x2a18df[(_0x343a33(0x1c2))][(_0x7b5414[_0x343a33(0x203)][_0x343a33(0x1dc)]())](_0x3f4231);case'VALUE':{let _0x90bb05=_0x7b5414[_0x343a33(0x203)][_0x343a33(0x1d4)](/^'(.*)'$/);return _0x90bb05?_0x90bb05[0x1][_0x343a33(0x1a8)](/''/g,'\x27'):Number(_0x7b5414[_0x343a33(0x203)]);}case _0x343a33(0x1b4):switch(_0x7b5414[_0x343a33(0x203)]['toUpperCase']()){case'BBOX':{let _0x1b7433=_0x4dc4f5(),_0xcedec8=_0x4dc4f5(),_0x2dbad6=_0x4dc4f5(),_0x45f0e8=_0x4dc4f5(),_0x56de0a=_0x4dc4f5();return a62_0x515559[_0x343a33(0x1ea)](_0x56de0a,[_0x45f0e8,_0x2dbad6,_0xcedec8,_0x1b7433]);}case'INTERSECTS':_0x336c3d=_0x4dc4f5(),_0x3f4231=_0x4dc4f5();return a62_0x515559[_0x343a33(0x1db)](_0x3f4231,_0x336c3d);case _0x343a33(0x1d1):_0x336c3d=_0x4dc4f5(),_0x3f4231=_0x4dc4f5();return a62_0x515559[_0x343a33(0x1e9)](_0x3f4231,_0x336c3d);case'CONTAINS':_0x336c3d=_0x4dc4f5(),_0x3f4231=_0x4dc4f5();return a62_0x515559['contains'](_0x3f4231,_0x336c3d);}break;case _0x343a33(0x1a9):return new WKT()['readGeometry'](_0x7b5414[_0x343a33(0x203)],{});default:return _0x7b5414[_0x343a33(0x203)];}}let _0x20463f=_0x4dc4f5();if(_0x8e0454['length']>0x0){let _0x3d05c8=_0x4702f9(0x1ac);for(let _0x1f7ad5=_0x8e0454['length']-0x1;_0x1f7ad5>=0x0;_0x1f7ad5--){_0x3d05c8+=_0x8e0454[_0x1f7ad5][_0x4702f9(0x1e8)]+':\x20'+_0x8e0454[_0x1f7ad5][_0x4702f9(0x203)]+'\x0a';}throw new Error(_0x3d05c8);}return _0x20463f;}[a62_0x2008bd(0x1e3)](_0x593ac4){const _0x49b98d=a62_0x2008bd;try{return this['buildAst'](this[_0x49b98d(0x1bc)](_0x593ac4));}catch(_0x53038b){console['warn'](_0x49b98d(0x1de)+_0x593ac4),console[_0x49b98d(0x200)](_0x53038b);}}[a62_0x2008bd(0x1c9)](_0x3f4c08){const _0xec05e1=a62_0x2008bd;switch(_0x3f4c08[_0xec05e1(0x1f9)]){case _0xec05e1(0x1f7):return _0xec05e1(0x1a7)+_0x3f4c08[_0xec05e1(0x1c3)]+','+_0x3f4c08[_0xec05e1(0x1f5)]['join'](',')+','+_0x3f4c08['srsName']+')';case _0xec05e1(0x1ad):return _0xec05e1(0x1ee)+_0x3f4c08[_0xec05e1(0x1c3)]+',\x20'+this[_0xec05e1(0x1a6)](_0x3f4c08['geometry'])+')';case _0xec05e1(0x1fa):return _0xec05e1(0x1e2)+_0x3f4c08[_0xec05e1(0x1c3)]+',\x20'+this[_0xec05e1(0x1a6)](_0x3f4c08[_0xec05e1(0x1ca)])+')';case _0xec05e1(0x1bd):return'CONTAINS('+_0x3f4c08[_0xec05e1(0x1c3)]+',\x20'+this['readGeometry'](_0x3f4c08[_0xec05e1(0x1ca)])+')';case'Not':return _0xec05e1(0x1f1)+this['write'](_0x3f4c08[_0xec05e1(0x1aa)])+')';case _0xec05e1(0x1fd):case'Or':{let _0x561b59='(',_0x1267d7=!![];for(let _0x16b877=0x0;_0x16b877<_0x3f4c08[_0xec05e1(0x1f2)]['length'];_0x16b877++){_0x1267d7?_0x1267d7=![]:_0x561b59+=')\x20'+_0x3f4c08['tagName_'][_0xec05e1(0x1a2)]()+'\x20(',_0x561b59+=this['write'](_0x3f4c08[_0xec05e1(0x1f2)][_0x16b877]);}return _0x561b59+')';}case _0xec05e1(0x19e):return _0x3f4c08['property']+_0xec05e1(0x1b2)+this[_0xec05e1(0x1c9)](_0x3f4c08[_0xec05e1(0x1bf)])+_0xec05e1(0x1ae)+this[_0xec05e1(0x1c9)](_0x3f4c08['upperBoundary']);case _0xec05e1(0x1d2):case _0xec05e1(0x1e1):case _0xec05e1(0x1b3):case _0xec05e1(0x1c8):case _0xec05e1(0x1b7):case _0xec05e1(0x1b8):case _0xec05e1(0x202):case _0xec05e1(0x1d7):{return _0x3f4c08[_0xec05e1(0x1c4)]!==null?_0x3f4c08['propertyName']+'\x20'+this[_0xec05e1(0x1c5)][_0x3f4c08[_0xec05e1(0x1f9)]]+'\x20'+this[_0xec05e1(0x1c9)](_0x3f4c08[_0xec05e1(0x1c4)]):_0x3f4c08[_0xec05e1(0x1da)]+'\x20'+this[_0xec05e1(0x1c5)][_0x3f4c08['tagName_']];}case undefined:if(typeof _0x3f4c08==='string')return'\x27'+_0x3f4c08[_0xec05e1(0x1a8)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x3f4c08===_0xec05e1(0x1d9))return String(_0x3f4c08);}break;default:throw new Error('Can\x27t\x20encode:\x20'+_0x3f4c08['CLASS_NAME']+'\x20'+_0x3f4c08);}}[a62_0x2008bd(0x1a6)](_0x20d267){const _0xd6a0d7=a62_0x2008bd;if(_0x20d267 instanceof a62_0x53fb92)return new WKT()[_0xd6a0d7(0x1c6)](_0x20d267);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3edd99,_0x222729){const _0x36b3bc=a63_0x2dd5,_0x32596f=_0x3edd99();while(!![]){try{const _0x5184d1=parseInt(_0x36b3bc(0xb2))/0x1+parseInt(_0x36b3bc(0xca))/0x2*(-parseInt(_0x36b3bc(0xbe))/0x3)+parseInt(_0x36b3bc(0xc5))/0x4+-parseInt(_0x36b3bc(0xb0))/0x5+-parseInt(_0x36b3bc(0xbc))/0x6*(-parseInt(_0x36b3bc(0xcc))/0x7)+-parseInt(_0x36b3bc(0xc7))/0x8+parseInt(_0x36b3bc(0xc0))/0x9*(parseInt(_0x36b3bc(0xc6))/0xa);if(_0x5184d1===_0x222729)break;else _0x32596f['push'](_0x32596f['shift']());}catch(_0x2ded60){_0x32596f['push'](_0x32596f['shift']());}}}(a63_0x3599,0x2ddfb));import a63_0x325632 from'./CQL';export function isMatchCql(_0x3ccd5a,_0x44baf8){const _0x727772=a63_0x2dd5;let _0x17ab41=new a63_0x325632()[_0x727772(0xcd)](_0x44baf8);return isMatchFilter(_0x3ccd5a,_0x17ab41);}export function isMatchFilter(_0x15cba0,_0x1fa879){const _0x20efa6=a63_0x2dd5;switch(_0x1fa879[_0x20efa6(0xbf)]){case _0x20efa6(0xc3):return!isMatchFilter(_0x15cba0,_0x1fa879[_0x20efa6(0xbb)]);case _0x20efa6(0xd4):{let _0x531a6e=!![];for(let _0x4efbed=0x0;_0x4efbed<_0x1fa879[_0x20efa6(0xc9)][_0x20efa6(0xbd)];_0x4efbed++){_0x531a6e=_0x531a6e&&isMatchFilter(_0x15cba0,_0x1fa879[_0x20efa6(0xc9)][_0x4efbed]);}return _0x531a6e;}case'Or':{let _0x512dd4=![];for(let _0x46787d=0x0;_0x46787d<_0x1fa879['conditions'][_0x20efa6(0xbd)];_0x46787d++){_0x512dd4=_0x512dd4||isMatchFilter(_0x15cba0,_0x1fa879['conditions'][_0x46787d]);}return _0x512dd4;}case _0x20efa6(0xb6):return _0x15cba0[_0x1fa879[_0x20efa6(0xb3)]]>_0x1fa879[_0x20efa6(0xb1)]&&_0x15cba0[_0x1fa879[_0x20efa6(0xb3)]]<_0x1fa879[_0x20efa6(0xd3)];case _0x20efa6(0xd1):return _0x15cba0[_0x1fa879[_0x20efa6(0xb5)]]===_0x1fa879['expression'];case _0x20efa6(0xcb):return _0x15cba0[_0x1fa879[_0x20efa6(0xb5)]]!==_0x1fa879[_0x20efa6(0xb9)];case _0x20efa6(0xb8):return _0x15cba0[_0x1fa879['propertyName']]<_0x1fa879['expression'];case _0x20efa6(0xb7):return _0x15cba0[_0x1fa879[_0x20efa6(0xb5)]]<=_0x1fa879[_0x20efa6(0xb9)];case _0x20efa6(0xc8):return _0x15cba0[_0x1fa879['propertyName']]>_0x1fa879[_0x20efa6(0xb9)];case'PropertyIsGreaterThanOrEqualTo':return _0x15cba0[_0x1fa879['propertyName']]>=_0x1fa879['expression'];case _0x20efa6(0xce):return _0x15cba0[_0x1fa879[_0x20efa6(0xb5)]][_0x20efa6(0xba)](_0x1fa879[_0x20efa6(0xb9)])>-0x1;case _0x20efa6(0xd2):{return!_0x15cba0[_0x1fa879['propertyName']];}default:return![];}}export function isEqualFilter(_0x2a1b9c,_0x17b862){const _0x343dd2=a63_0x2dd5;switch(_0x2a1b9c[_0x343dd2(0xbf)]){case _0x343dd2(0xc3):return _0x2a1b9c[_0x343dd2(0xbf)]===_0x17b862['tagName_']&&isEqualFilter(_0x2a1b9c['condition'],_0x17b862['condition']);case'Or':case _0x343dd2(0xd4):{let _0xeeeb88=_0x2a1b9c[_0x343dd2(0xbf)]===_0x17b862[_0x343dd2(0xbf)]&&_0x2a1b9c['conditions'][_0x343dd2(0xbd)]===_0x17b862['conditions'][_0x343dd2(0xbd)];for(let _0x56b47a=0x0;_0x56b47a<_0x2a1b9c[_0x343dd2(0xc9)][_0x343dd2(0xbd)];_0x56b47a++){_0xeeeb88=_0xeeeb88&&isEqualFilter(_0x2a1b9c[_0x343dd2(0xc9)][_0x56b47a],_0x17b862[_0x343dd2(0xc9)][_0x56b47a]);}return _0xeeeb88;}case'PropertyIsBetween':return _0x2a1b9c['tagName_']===_0x17b862[_0x343dd2(0xbf)]&&_0x2a1b9c[_0x343dd2(0xb3)]===_0x17b862['property'];case _0x343dd2(0xd1):case _0x343dd2(0xcb):case _0x343dd2(0xb8):case'PropertyIsLessThanOrEqualTo':case'PropertyIsGreaterThan':case _0x343dd2(0xd0):case'PropertyIsLike':case _0x343dd2(0xd2):return _0x2a1b9c[_0x343dd2(0xbf)]===_0x17b862[_0x343dd2(0xbf)]&&_0x2a1b9c[_0x343dd2(0xb5)]===_0x17b862[_0x343dd2(0xb5)];default:return![];}}export function indexOfFilter(_0x77c274,_0x277f3d){let _0x26431b=-0x1;if((_0x77c274===null||_0x77c274===void 0x0?void 0x0:_0x77c274['length'])>0x0)for(let _0x5b46dc in _0x77c274){if(isEqualFilter(_0x77c274[_0x5b46dc]['template'],_0x277f3d))return _0x5b46dc;}return _0x26431b;}function a63_0x2dd5(_0x15cc12,_0x1caaef){const _0x3599e5=a63_0x3599();return a63_0x2dd5=function(_0x2dd5ac,_0x1e0375){_0x2dd5ac=_0x2dd5ac-0xb0;let _0x2d8b77=_0x3599e5[_0x2dd5ac];return _0x2d8b77;},a63_0x2dd5(_0x15cc12,_0x1caaef);}function a63_0x3599(){const _0x511da3=['PropertyIsBetween','PropertyIsLessThanOrEqualTo','PropertyIsLessThan','expression','indexOf','condition','12JSKhIG','length','6zZSVRK','tagName_','405rMvIiW','idMapLength','join','Not','idMap','753904muRMrQ','55340qEsZCo','1123016hhTcYo','PropertyIsGreaterThan','conditions','368810dkSHxA','PropertyIsNotEqualTo','344274qgYUBu','read','PropertyIsLike','template','PropertyIsGreaterThanOrEqualTo','PropertyIsEqualTo','PropertyIsNull','upperBoundary','And','807725AAySTB','lowerBoundary','322761AbhFyQ','property','push','propertyName'];a63_0x3599=function(){return _0x511da3;};return a63_0x3599();}export function getIndexByTemplate(_0x29c6c3,_0x1aaa6f){const _0x1310e3=a63_0x2dd5;let _0x3e99e2=_0x1aaa6f[_0x1310e3(0xcf)];if(_0x1aaa6f[_0x1310e3(0xc1)]>0x0){let _0x4121ba=getKeyByTemplate(_0x29c6c3,_0x3e99e2);if(_0x4121ba instanceof Array)for(let _0x313c9a in _0x4121ba){let _0x5b0e06=_0x1aaa6f[_0x1310e3(0xc4)][_0x4121ba[_0x313c9a]+'_'+_0x313c9a];if(_0x5b0e06)return _0x5b0e06;}else return _0x1aaa6f[_0x1310e3(0xc4)][_0x4121ba];}return null;}export function getKeyByTemplate(_0x28b3be,_0x1c3c87){const _0x9469c1=a63_0x2dd5;switch(_0x1c3c87[_0x9469c1(0xbf)]){case _0x9469c1(0xd1):{return _0x28b3be[_0x1c3c87[_0x9469c1(0xb5)]];}case'And':{let _0x3b8521=[];for(let _0x18491c=0x0;_0x18491c<_0x1c3c87['conditions']['length'];_0x18491c++){let _0x2a3719=getKeyByTemplate(_0x28b3be,_0x1c3c87[_0x9469c1(0xc9)][_0x18491c]);_0x2a3719&&_0x3b8521[_0x9469c1(0xb4)](_0x2a3719);}return _0x3b8521[_0x9469c1(0xc2)](',');}case'Or':{let _0x35074d=[];for(let _0x579417=0x0;_0x579417<_0x1c3c87[_0x9469c1(0xc9)][_0x9469c1(0xbd)];_0x579417++){let _0xf4867f=getKeyByTemplate(_0x28b3be,_0x1c3c87[_0x9469c1(0xc9)][_0x579417]);_0xf4867f&&_0x35074d[_0x9469c1(0xb4)](_0xf4867f);}return _0x35074d;}default:return null;}}export function createKeyFromFilter(_0x4bab33){const _0x4dcc28=a63_0x2dd5;switch(_0x4bab33[_0x4dcc28(0xbf)]){case _0x4dcc28(0xd1):return _0x4bab33['expression'];case _0x4dcc28(0xd4):{let _0x13f386=[];for(let _0x1da2d1=0x0;_0x1da2d1<_0x4bab33['conditions'][_0x4dcc28(0xbd)];_0x1da2d1++){let _0x2fcc87=createKeyFromFilter(_0x4bab33[_0x4dcc28(0xc9)][_0x1da2d1]);if(_0x2fcc87)_0x13f386['push'](_0x2fcc87);else return null;}return _0x13f386['join'](',');}case'Or':{let _0x122476=[];for(let _0x33392c=0x0;_0x33392c<_0x4bab33['conditions'][_0x4dcc28(0xbd)];_0x33392c++){let _0x3cb5da=createKeyFromFilter(_0x4bab33[_0x4dcc28(0xc9)][_0x33392c]);_0x3cb5da&&_0x122476[_0x4dcc28(0xb4)](_0x3cb5da);}return _0x122476;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a66_0x4483(){const _0x3dcfd4=['2450814WjSIqb','7zkqlbK','579256INwpar','1931215heaQYn','279760wBRCDy','436Macbuh','markerLabel','set','114nCsxrX','4059352zKRCYN','null','image','207SXuNao','8867ACzQZu','markerSize','cacheSize_','6189IGqeYX','markerColor','get','cache_'];a66_0x4483=function(){return _0x3dcfd4;};return a66_0x4483();}const a66_0x3375b7=a66_0x5277;(function(_0x45c258,_0x1d6368){const _0x7d397d=a66_0x5277,_0x480ecf=_0x45c258();while(!![]){try{const _0x1acfc7=parseInt(_0x7d397d(0x15a))/0x1*(-parseInt(_0x7d397d(0x169))/0x2)+-parseInt(_0x7d397d(0x15d))/0x3*(parseInt(_0x7d397d(0x166))/0x4)+parseInt(_0x7d397d(0x164))/0x5+-parseInt(_0x7d397d(0x161))/0x6+-parseInt(_0x7d397d(0x162))/0x7*(-parseInt(_0x7d397d(0x163))/0x8)+parseInt(_0x7d397d(0x159))/0x9*(parseInt(_0x7d397d(0x165))/0xa)+parseInt(_0x7d397d(0x16a))/0xb;if(_0x1acfc7===_0x1d6368)break;else _0x480ecf['push'](_0x480ecf['shift']());}catch(_0x2d18be){_0x480ecf['push'](_0x480ecf['shift']());}}}(a66_0x4483,0x51257));import{asString}from'ol/color';function a66_0x5277(_0xe78f68,_0x3740fe){const _0x4483c3=a66_0x4483();return a66_0x5277=function(_0x527717,_0x20bf45){_0x527717=_0x527717-0x159;let _0xda747c=_0x4483c3[_0x527717];return _0xda747c;},a66_0x5277(_0xe78f68,_0x3740fe);}class ImageCache{constructor(){const _0x81fc2d=a66_0x5277;this[_0x81fc2d(0x160)]={},this[_0x81fc2d(0x15c)]=0x0;}['clear'](){const _0x490c0c=a66_0x5277;this[_0x490c0c(0x160)]={},this[_0x490c0c(0x15c)]=0x0;}[a66_0x3375b7(0x15f)](_0x174984){const _0x230372=a66_0x3375b7,_0xc277e1=getKey(_0x174984[_0x230372(0x167)],_0x174984[_0x230372(0x15b)],_0x174984[_0x230372(0x15e)],_0x174984['image']);return _0xc277e1 in this[_0x230372(0x160)]?this['cache_'][_0xc277e1]:null;}[a66_0x3375b7(0x168)](_0x238152,_0x3c947b){const _0x4360d7=a66_0x3375b7,_0x21a79a=getKey(_0x238152[_0x4360d7(0x167)],_0x238152['markerSize'],_0x238152[_0x4360d7(0x15e)],_0x238152[_0x4360d7(0x16c)]);this[_0x4360d7(0x160)][_0x21a79a]=_0x3c947b,++this['cacheSize_'];}}function getKey(_0x867f6c,_0x75ad3c,_0x442230,_0x52813b){const _0x23118f=a66_0x3375b7,_0x2d7d83=_0x442230?asString(_0x442230):_0x23118f(0x16b);return _0x867f6c+':'+_0x52813b+':'+_0x2d7d83+':'+_0x75ad3c;}export default ImageCache;export const shared=new ImageCache();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x3950dc=a67_0x3eb8;(function(_0x17dee6,_0x1ee4b6){const _0x35ec38=a67_0x3eb8,_0xaae1f3=_0x17dee6();while(!![]){try{const _0x406f58=parseInt(_0x35ec38(0x1ec))/0x1+parseInt(_0x35ec38(0x200))/0x2+parseInt(_0x35ec38(0x1e4))/0x3+-parseInt(_0x35ec38(0x1f1))/0x4*(parseInt(_0x35ec38(0x212))/0x5)+-parseInt(_0x35ec38(0x1fd))/0x6*(-parseInt(_0x35ec38(0x215))/0x7)+-parseInt(_0x35ec38(0x1f4))/0x8*(-parseInt(_0x35ec38(0x1f5))/0x9)+-parseInt(_0x35ec38(0x1ed))/0xa*(parseInt(_0x35ec38(0x205))/0xb);if(_0x406f58===_0x1ee4b6)break;else _0xaae1f3['push'](_0xaae1f3['shift']());}catch(_0x4eca5c){_0xaae1f3['push'](_0xaae1f3['shift']());}}}(a67_0xb9bb,0xea059));import a67_0x100a1b from'color';import a67_0x159036 from'./writeTextToCanvas';function a67_0x3eb8(_0x4d3293,_0x4b12fb){const _0xb9bbeb=a67_0xb9bb();return a67_0x3eb8=function(_0x3eb8ac,_0x4a2cc2){_0x3eb8ac=_0x3eb8ac-0x1e4;let _0x132555=_0xb9bbeb[_0x3eb8ac];return _0x132555;},a67_0x3eb8(_0x4d3293,_0x4b12fb);}import{Icon}from'ol/style';import a67_0x4a77ee from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';function a67_0xb9bb(){const _0x55bedf=['color\x20is\x20required','destination-out','beginPath','globalCompositeOperation','ERROR','fromColor','getImage','fromText','_cache','1959710bimRzD','stroke','getContext','7Xjebxe','createElement','fill','px\x20sans-serif','drawImage','687033gNawRu','LOADED','round','restore','IDLE','bold\x20','load','toDataURL','125834BzdcHc','20HYCgpq','moveTo','destination-over','bezierCurveTo','16jwVsaH','fillRect','fillStyle','8Dglpkj','8232534ZFsUHX','id\x20is\x20required','strokeStyle','size\x20is\x20required','text\x20is\x20required','target','fromMakiIconId','stringify','3485754tRCEZF','width','lighten','2240022eFGISk','getImageState','scale','save','height','2443210GnTXSL','lineTo','listenImageChange','canvas'];a67_0xb9bb=function(){return _0x55bedf;};return a67_0xb9bb();}class PinBuilder{constructor(){this['_cache']={};}[a67_0x3950dc(0x20e)](_0x1478a0,_0x23a83e){const _0x77235b=a67_0x3950dc;if(!_0x1478a0)throw new Error('color\x20is\x20required');if(!_0x23a83e)throw new Error(_0x77235b(0x1f8));return createPin('','',_0x1478a0,_0x23a83e,this[_0x77235b(0x211)]);}['fromUrl'](_0x5dec67,_0x370e48,_0x2180fe){const _0x4953a2=a67_0x3950dc;if(!_0x5dec67)throw new Error('url\x20is\x20required');if(!_0x370e48)throw new Error(_0x4953a2(0x209));if(!_0x2180fe)throw new Error(_0x4953a2(0x1f8));return createPin(_0x5dec67,'',_0x370e48,_0x2180fe,this[_0x4953a2(0x211)]);}[a67_0x3950dc(0x1fb)](_0x2700d3,_0x2e7364,_0x4557c1){const _0x52091c=a67_0x3950dc;if(!_0x2700d3)throw new Error(_0x52091c(0x1f6));if(!_0x2e7364)throw new Error(_0x52091c(0x209));if(!_0x4557c1)throw new Error(_0x52091c(0x1f8));return createPin(parseImage(_0x2700d3),'',_0x2e7364,_0x4557c1,this[_0x52091c(0x211)]);}[a67_0x3950dc(0x210)](_0x3e7932,_0x585821,_0x4f23f3){const _0x59ffc0=a67_0x3950dc;if(!_0x3e7932)throw new Error(_0x59ffc0(0x1f9));if(!_0x585821)throw new Error(_0x59ffc0(0x209));if(!_0x4f23f3)throw new Error(_0x59ffc0(0x1f8));return createPin('',_0x3e7932,_0x585821,_0x4f23f3,this[_0x59ffc0(0x211)]);}}function drawPin(_0x277ec3,_0x443813,_0x40b7ed){const _0xca0757=a67_0x3950dc;_0x277ec3[_0xca0757(0x203)](),_0x277ec3[_0xca0757(0x202)](_0x40b7ed/0x18,_0x40b7ed/0x18),_0x277ec3[_0xca0757(0x1f3)]=_0x443813,_0x277ec3[_0xca0757(0x1f7)]=a67_0x100a1b(_0x443813)[_0xca0757(0x1ff)](0.6)['hexa'](),_0x277ec3['lineWidth']=0.846,_0x277ec3[_0xca0757(0x20b)](),_0x277ec3[_0xca0757(0x1ee)](6.72,0.422),_0x277ec3[_0xca0757(0x206)](17.28,0.422),_0x277ec3[_0xca0757(0x1f0)](18.553,0.422,19.577,1.758,19.577,3.415),_0x277ec3[_0xca0757(0x206)](19.577,10.973),_0x277ec3['bezierCurveTo'](19.577,12.63,18.553,13.966,17.282,13.966),_0x277ec3[_0xca0757(0x206)](14.386,14.008),_0x277ec3[_0xca0757(0x206)](11.826,23.578),_0x277ec3[_0xca0757(0x206)](9.614,14.008),_0x277ec3['lineTo'](6.719,13.965),_0x277ec3[_0xca0757(0x1f0)](5.446,13.983,4.422,12.629,4.422,10.972),_0x277ec3['lineTo'](4.422,3.416),_0x277ec3['bezierCurveTo'](4.423,1.76,5.447,0.423,6.718,0.423),_0x277ec3['closePath'](),_0x277ec3[_0xca0757(0x217)](),_0x277ec3[_0xca0757(0x213)](),_0x277ec3[_0xca0757(0x1e7)]();}function drawIcon(_0x588c9d,_0x2b4996,_0xd274c5){const _0x4e84e2=a67_0x3950dc,_0x4f154a=_0xd274c5/2.5;let _0x33754d=_0x4f154a,_0x3acd63=_0x4f154a;if(_0x2b4996[_0x4e84e2(0x1fe)]>_0x2b4996[_0x4e84e2(0x204)])_0x3acd63=_0x4f154a*(_0x2b4996[_0x4e84e2(0x204)]/_0x2b4996['width']);else _0x2b4996['width']<_0x2b4996['height']&&(_0x33754d=_0x4f154a*(_0x2b4996[_0x4e84e2(0x1fe)]/_0x2b4996[_0x4e84e2(0x204)]));const _0x2a5132=Math[_0x4e84e2(0x1e6)]((_0xd274c5-_0x33754d)/0x2),_0x13a90f=Math[_0x4e84e2(0x1e6)](0x7/0x18*_0xd274c5-_0x3acd63/0x2);_0x588c9d[_0x4e84e2(0x20c)]=_0x4e84e2(0x20a),_0x588c9d[_0x4e84e2(0x219)](_0x2b4996,_0x2a5132-0x1,_0x13a90f,_0x33754d,_0x3acd63),_0x588c9d['drawImage'](_0x2b4996,_0x2a5132,_0x13a90f-0x1,_0x33754d,_0x3acd63),_0x588c9d['drawImage'](_0x2b4996,_0x2a5132+0x1,_0x13a90f,_0x33754d,_0x3acd63),_0x588c9d[_0x4e84e2(0x219)](_0x2b4996,_0x2a5132,_0x13a90f+0x1,_0x33754d,_0x3acd63),_0x588c9d[_0x4e84e2(0x20c)]=_0x4e84e2(0x1ef),_0x588c9d[_0x4e84e2(0x1f3)]='#000000',_0x588c9d[_0x4e84e2(0x1f2)](_0x2a5132-0x1,_0x13a90f-0x1,_0x33754d+0x2,_0x3acd63+0x2),_0x588c9d[_0x4e84e2(0x20c)]='destination-out',_0x588c9d[_0x4e84e2(0x219)](_0x2b4996,_0x2a5132,_0x13a90f,_0x33754d,_0x3acd63),_0x588c9d[_0x4e84e2(0x20c)]=_0x4e84e2(0x1ef),_0x588c9d[_0x4e84e2(0x1f3)]='#FFFFFF',_0x588c9d[_0x4e84e2(0x1f2)](_0x2a5132-0x1,_0x13a90f-0x2,_0x33754d+0x2,_0x3acd63+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x323964,_0x3157fe,_0x214eb6,_0xd0ef77,_0x4ddced){const _0x345d95=a67_0x3950dc;stringifyScratch[0x0]=_0x323964,stringifyScratch[0x1]=_0x3157fe,stringifyScratch[0x2]=_0x214eb6,stringifyScratch[0x3]=_0xd0ef77;const _0x3b35bc=JSON[_0x345d95(0x1fc)](stringifyScratch),_0x4a4e92=_0x4ddced[_0x3b35bc];if(_0x4a4e92)return _0x4a4e92;const _0x22a9c9=document[_0x345d95(0x216)](_0x345d95(0x208));_0x22a9c9[_0x345d95(0x1fe)]=_0xd0ef77,_0x22a9c9['height']=_0xd0ef77;const _0xb626d3=_0x22a9c9[_0x345d95(0x214)]('2d');drawPin(_0xb626d3,_0x214eb6,_0xd0ef77);if(_0x323964)return new Promise(_0x3e9165=>{const _0x266bbf=_0x345d95;let _0x5c5401=new Icon({'src':_0x323964}),_0x2356e=_0x5c5401['getImageState']();_0x2356e===a67_0x4a77ee[_0x266bbf(0x1e5)]||_0x2356e===a67_0x4a77ee['ERROR']?(drawIcon(_0xb626d3,_0x5c5401[_0x266bbf(0x20f)](0x60),_0xd0ef77),_0x4ddced[_0x3b35bc]=_0x22a9c9['toDataURL'](),_0x3e9165(_0x22a9c9[_0x266bbf(0x1eb)]())):(_0x2356e===a67_0x4a77ee[_0x266bbf(0x1e8)]&&_0x5c5401[_0x266bbf(0x1ea)](),_0x5c5401[_0x266bbf(0x207)](_0x519daf=>{const _0x5d5b03=_0x266bbf;_0x2356e=_0x519daf[_0x5d5b03(0x1fa)][_0x5d5b03(0x201)](),(_0x2356e===a67_0x4a77ee[_0x5d5b03(0x1e5)]||_0x2356e===a67_0x4a77ee[_0x5d5b03(0x20d)])&&(drawIcon(_0xb626d3,_0x5c5401['getImage'](0x60),_0xd0ef77),_0x4ddced[_0x3b35bc]=_0x22a9c9['toDataURL'](),_0x3e9165(_0x22a9c9[_0x5d5b03(0x1eb)]()));}));});else{if(_0x3157fe){const _0xda2b6=a67_0x159036(_0x3157fe,{'font':_0x345d95(0x1e9)+_0xd0ef77+_0x345d95(0x218)});drawIcon(_0xb626d3,_0xda2b6,_0xd0ef77);}}return _0x4ddced[_0x3b35bc]=_0x22a9c9[_0x345d95(0x1eb)](),_0x22a9c9[_0x345d95(0x1eb)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x136268=a68_0x203f;function a68_0x203f(_0xd566ba,_0xc05b9e){const _0xd601f=a68_0xd601();return a68_0x203f=function(_0x203f53,_0x14a993){_0x203f53=_0x203f53-0x1ab;let _0x4ae87a=_0xd601f[_0x203f53];return _0x4ae87a;},a68_0x203f(_0xd566ba,_0xc05b9e);}(function(_0x2816f5,_0x5b971e){const _0x469c5e=a68_0x203f,_0x378838=_0x2816f5();while(!![]){try{const _0x4993db=parseInt(_0x469c5e(0x1c6))/0x1+-parseInt(_0x469c5e(0x1b7))/0x2+parseInt(_0x469c5e(0x1b3))/0x3*(parseInt(_0x469c5e(0x1b4))/0x4)+-parseInt(_0x469c5e(0x1bf))/0x5*(parseInt(_0x469c5e(0x1b2))/0x6)+-parseInt(_0x469c5e(0x1af))/0x7*(-parseInt(_0x469c5e(0x1cc))/0x8)+-parseInt(_0x469c5e(0x1c3))/0x9+-parseInt(_0x469c5e(0x1c2))/0xa*(-parseInt(_0x469c5e(0x1be))/0xb);if(_0x4993db===_0x5b971e)break;else _0x378838['push'](_0x378838['shift']());}catch(_0x4eb49f){_0x378838['push'](_0x378838['shift']());}}}(a68_0xd601,0x3116b));import a68_0xcd2cb9 from'./PinBuilder';import{Icon}from'ol/style';import a68_0x353898 from'ol/ImageState';import a68_0x1fe0fd from'ol/events/Event';import{shared as a68_0x34e297}from'./ImageCache';function a68_0xd601(){const _0x57b832=['308458JKXJwU','_icon','options','error','target','markerLabel','8jNtqrv','fromUrl','loadIcon','getImageState','image','load','2446843kuKKkH','warn','LOADED','67974MwWblu','23937RGgdsr','12JPhkXu','set','get','25010cRIdZx','IDLE','ERROR','markerSize','getImage','listenImageChange','_listener','11fkwZRt','110NZPFRY','markerColor','dispatchEvent','274220IKZYUp','2219004OdHSUH','_imageState','fromText'];a68_0xd601=function(){return _0x57b832;};return a68_0xd601();}export default class PinIcon{constructor(_0x4d607e){const _0x5231a5=a68_0x203f;this[_0x5231a5(0x1c8)]=_0x4d607e||{},this[_0x5231a5(0x1c4)]=a68_0x353898[_0x5231a5(0x1b8)],this[_0x5231a5(0x1c7)]=a68_0x34e297[_0x5231a5(0x1b6)](this['options']),this[_0x5231a5(0x1c7)]&&(this[_0x5231a5(0x1c4)]=a68_0x353898[_0x5231a5(0x1b1)]);}[a68_0x136268(0x1ae)](){const _0x123659=a68_0x136268;try{let _0x18982b,_0x4f3ab1=new a68_0xcd2cb9();if(this[_0x123659(0x1c8)][_0x123659(0x1cb)])_0x18982b=_0x4f3ab1[_0x123659(0x1c5)](this[_0x123659(0x1c8)][_0x123659(0x1cb)],this[_0x123659(0x1c8)][_0x123659(0x1c0)],this[_0x123659(0x1c8)][_0x123659(0x1ba)]||0x30);else this[_0x123659(0x1c8)][_0x123659(0x1ad)]&&(_0x18982b=_0x4f3ab1[_0x123659(0x1cd)](this[_0x123659(0x1c8)][_0x123659(0x1ad)],this[_0x123659(0x1c8)][_0x123659(0x1c0)],this[_0x123659(0x1c8)][_0x123659(0x1ba)]||0x30));Promise['resolve'](_0x18982b)['then'](_0x2d2519=>{const _0x4aa199=_0x123659;this[_0x4aa199(0x1ab)](_0x2d2519);})['catch'](_0x359853=>{const _0x4ea583=_0x123659;console[_0x4ea583(0x1b0)](_0x359853),this[_0x4ea583(0x1c4)]=a68_0x353898[_0x4ea583(0x1b9)],this[_0x4ea583(0x1c1)]('error');});}catch(_0x4a35f6){console[_0x123659(0x1b0)](_0x4a35f6),this[_0x123659(0x1c4)]=a68_0x353898['ERROR'],this[_0x123659(0x1c1)](_0x123659(0x1c9));}}[a68_0x136268(0x1ab)](_0xd7d36f){const _0x3fb635=a68_0x136268;this[_0x3fb635(0x1c7)]=new Icon({'src':_0xd7d36f}),a68_0x34e297[_0x3fb635(0x1b5)](this[_0x3fb635(0x1c8)],this[_0x3fb635(0x1c7)]);let _0xfe903c=this[_0x3fb635(0x1c7)][_0x3fb635(0x1ac)]();_0xfe903c===a68_0x353898[_0x3fb635(0x1b1)]||_0xfe903c===a68_0x353898[_0x3fb635(0x1b9)]?(this[_0x3fb635(0x1c4)]=this[_0x3fb635(0x1c7)][_0x3fb635(0x1ac)](),this[_0x3fb635(0x1c1)](_0x3fb635(0x1ae))):(_0xfe903c===a68_0x353898[_0x3fb635(0x1b8)]&&this[_0x3fb635(0x1c7)]['load'](),this[_0x3fb635(0x1c7)][_0x3fb635(0x1bc)](_0x4e9fda=>{const _0x51c95d=_0x3fb635;_0xfe903c=_0x4e9fda[_0x51c95d(0x1ca)][_0x51c95d(0x1ac)](),(_0xfe903c===a68_0x353898['LOADED']||_0xfe903c===a68_0x353898[_0x51c95d(0x1b9)])&&(this[_0x51c95d(0x1c4)]=this[_0x51c95d(0x1c7)][_0x51c95d(0x1ac)](),this[_0x51c95d(0x1c1)](_0x51c95d(0x1ae)));}));}[a68_0x136268(0x1ac)](){const _0x1f1f8e=a68_0x136268;return this[_0x1f1f8e(0x1c4)];}[a68_0x136268(0x1bb)](){const _0x43a28b=a68_0x136268;var _0x4ea55b;return(_0x4ea55b=this[_0x43a28b(0x1c7)])===null||_0x4ea55b===void 0x0?void 0x0:_0x4ea55b[_0x43a28b(0x1bb)]();}['listenImageChange'](_0x56fef8){const _0x4fa851=a68_0x136268;this[_0x4fa851(0x1bd)]=_0x56fef8;}[a68_0x136268(0x1c1)](_0x476970){const _0x139394=a68_0x136268;if(this[_0x139394(0x1bd)]){let _0x464505=new a68_0x1fe0fd(_0x476970);_0x464505['target']=this,this[_0x139394(0x1bd)](_0x464505);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45ee93,_0x482aea){const _0x2e1494=a69_0x5e81,_0x318a9b=_0x45ee93();while(!![]){try{const _0x476c45=parseInt(_0x2e1494(0x159))/0x1*(-parseInt(_0x2e1494(0x15a))/0x2)+-parseInt(_0x2e1494(0x154))/0x3*(-parseInt(_0x2e1494(0x152))/0x4)+-parseInt(_0x2e1494(0x16b))/0x5*(-parseInt(_0x2e1494(0x150))/0x6)+parseInt(_0x2e1494(0x158))/0x7*(-parseInt(_0x2e1494(0x170))/0x8)+-parseInt(_0x2e1494(0x15e))/0x9+-parseInt(_0x2e1494(0x141))/0xa*(parseInt(_0x2e1494(0x153))/0xb)+-parseInt(_0x2e1494(0x16e))/0xc*(-parseInt(_0x2e1494(0x140))/0xd);if(_0x476c45===_0x482aea)break;else _0x318a9b['push'](_0x318a9b['shift']());}catch(_0x2aff4a){_0x318a9b['push'](_0x318a9b['shift']());}}}(a69_0x4174,0xc58b3));function a69_0x5e81(_0x143ce8,_0x44328f){const _0x4174d=a69_0x4174();return a69_0x5e81=function(_0x5e811d,_0x25807f){_0x5e811d=_0x5e811d-0x140;let _0x14bdc0=_0x4174d[_0x5e811d];return _0x14bdc0;},a69_0x5e81(_0x143ce8,_0x44328f);}function measureText(_0x16be65,_0x298597,_0x3566f8,_0x59442e,_0x2eb798){const _0x550280=a69_0x5e81,_0x41d8f1=_0x16be65['measureText'](_0x298597),_0x145f6f=!/\S/[_0x550280(0x169)](_0x298597);if(!_0x145f6f&&document['defaultView']){const _0x1f66fe=document['defaultView']['getComputedStyle'](_0x16be65[_0x550280(0x166)])[_0x550280(0x162)]('font-size')['replace']('px',''),_0x16bb0c=document[_0x550280(0x155)](_0x550280(0x166)),_0x2034f7=0x64,_0x5a1b7e=_0x41d8f1['width']+_0x2034f7|0x0,_0x470532=0x3*(_0x1f66fe-0x0),_0x35f9c1=_0x470532/0x2;_0x16bb0c[_0x550280(0x163)]=_0x5a1b7e,_0x16bb0c['height']=_0x470532;const _0x125cbb=_0x16bb0c[_0x550280(0x160)]('2d');if(!_0x125cbb)return{};_0x125cbb[_0x550280(0x164)]=_0x3566f8,_0x125cbb[_0x550280(0x144)]=_0x550280(0x14b),_0x125cbb[_0x550280(0x167)](0x0,0x0,_0x16bb0c[_0x550280(0x163)]+0x1,_0x16bb0c['height']+0x1);_0x59442e&&(_0x125cbb[_0x550280(0x168)]=_0x550280(0x16a),_0x125cbb[_0x550280(0x14e)]=_0x16be65[_0x550280(0x14e)],_0x125cbb['strokeText'](_0x298597,_0x2034f7/0x2,_0x35f9c1));_0x2eb798&&(_0x125cbb[_0x550280(0x144)]=_0x550280(0x16a),_0x125cbb[_0x550280(0x174)](_0x298597,_0x2034f7/0x2,_0x35f9c1));const _0x337a99=_0x125cbb[_0x550280(0x161)](0x0,0x0,_0x5a1b7e,_0x470532)[_0x550280(0x145)],_0x31059c=_0x337a99[_0x550280(0x15f)],_0x10d466=_0x5a1b7e*0x4;let _0x4c61a0,_0x2dfc6b,_0x45d41a=0x0,_0x1e6ca2=0x0;for(_0x4c61a0=0x0;_0x4c61a0<_0x31059c;++_0x4c61a0){if(_0x337a99[_0x4c61a0]!==0xff){_0x45d41a=_0x4c61a0/_0x10d466|0x0;break;}}for(_0x4c61a0=_0x31059c-0x1;_0x4c61a0>=0x0;--_0x4c61a0){if(_0x337a99[_0x4c61a0]!==0xff){_0x1e6ca2=_0x4c61a0/_0x10d466|0x0;break;}}let _0x642c93=-0x1;for(_0x4c61a0=0x0;_0x4c61a0<_0x5a1b7e&&_0x642c93===-0x1;++_0x4c61a0){for(_0x2dfc6b=0x0;_0x2dfc6b<_0x470532;++_0x2dfc6b){const _0x183507=_0x4c61a0*0x4+_0x2dfc6b*_0x10d466;if(_0x337a99[_0x183507]!==0xff||_0x337a99[_0x183507+0x1]!==0xff||_0x337a99[_0x183507+0x2]!==0xff||_0x337a99[_0x183507+0x3]!==0xff){_0x642c93=_0x4c61a0;break;}}}return{'width':_0x41d8f1[_0x550280(0x163)],'height':_0x1e6ca2-_0x45d41a,'ascent':_0x35f9c1-_0x45d41a,'descent':_0x1e6ca2-_0x35f9c1,'minx':_0x642c93-_0x2034f7/0x2};}return{'width':_0x41d8f1[_0x550280(0x163)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x192122,_0x4230af){const _0x10158e=a69_0x5e81;if(!_0x192122)throw new Error(_0x10158e(0x165));if(_0x192122==='')return undefined;_0x4230af=defaultValue(_0x4230af,{});const _0x4d7ec8=defaultValue(_0x4230af[_0x10158e(0x164)],'10px\x20sans-serif'),_0x16685e=defaultValue(_0x4230af[_0x10158e(0x16f)],![]),_0x3f4637=defaultValue(_0x4230af[_0x10158e(0x14f)],!![]),_0x4199bf=defaultValue(_0x4230af[_0x10158e(0x16c)],0x1),_0x1c364d=defaultValue(_0x4230af[_0x10158e(0x15b)],_0x10158e(0x14d)),_0x1b432f=defaultValue(_0x4230af['padding'],0x0),_0x5c82ea=_0x1b432f*0x2,_0x4c7c3e=document[_0x10158e(0x155)]('canvas');_0x4c7c3e[_0x10158e(0x163)]=0x1,_0x4c7c3e[_0x10158e(0x151)]=0x1,_0x4c7c3e['style'][_0x10158e(0x164)]=_0x4d7ec8;const _0x3b185a=_0x4c7c3e[_0x10158e(0x160)]('2d');if(!imageSmoothingEnabledName&&_0x3b185a){if(_0x3b185a[_0x10158e(0x15c)])imageSmoothingEnabledName=_0x10158e(0x15c);else{if(_0x3b185a[_0x10158e(0x14a)])imageSmoothingEnabledName=_0x10158e(0x14a);else{if(_0x3b185a[_0x10158e(0x148)])imageSmoothingEnabledName='webkitImageSmoothingEnabled';else _0x3b185a[_0x10158e(0x156)]&&(imageSmoothingEnabledName='msImageSmoothingEnabled');}}}_0x3b185a['font']=_0x4d7ec8,_0x3b185a[_0x10158e(0x149)]=_0x10158e(0x157),_0x3b185a[_0x10158e(0x14e)]=_0x4199bf,_0x3b185a[imageSmoothingEnabledName]=![],_0x4c7c3e[_0x10158e(0x15d)]['visibility']='hidden',document['body'][_0x10158e(0x172)](_0x4c7c3e);const _0x5df8ce=measureText(_0x3b185a,_0x192122,_0x4d7ec8,_0x16685e,_0x3f4637);if(!_0x5df8ce)return;_0x4c7c3e[_0x10158e(0x143)]=_0x5df8ce,document['body'][_0x10158e(0x173)](_0x4c7c3e),_0x4c7c3e[_0x10158e(0x15d)][_0x10158e(0x171)]='';const _0x5c87ba=-(_0x5df8ce['minx']?_0x5df8ce[_0x10158e(0x147)]:0x0),_0x3ab66f=Math[_0x10158e(0x146)](_0x5df8ce[_0x10158e(0x163)])+_0x5c87ba+_0x5c82ea,_0x581412=(_0x5df8ce[_0x10158e(0x151)]?_0x5df8ce[_0x10158e(0x151)]:0x0)+_0x5c82ea,_0x259e50=_0x581412-(_0x5df8ce[_0x10158e(0x14c)]?_0x5df8ce[_0x10158e(0x14c)]:0x0)+_0x1b432f,_0x448119=_0x581412-_0x259e50+_0x5c82ea;return _0x4c7c3e[_0x10158e(0x163)]=_0x3ab66f,_0x4c7c3e[_0x10158e(0x151)]=_0x581412,_0x3b185a[_0x10158e(0x164)]=_0x4d7ec8,_0x3b185a[_0x10158e(0x149)]=_0x10158e(0x157),_0x3b185a[_0x10158e(0x14e)]=_0x4199bf,_0x3b185a[imageSmoothingEnabledName]=![],_0x1c364d!==_0x10158e(0x14d)&&(_0x3b185a[_0x10158e(0x144)]=_0x1c364d,_0x3b185a[_0x10158e(0x167)](0x0,0x0,_0x4c7c3e[_0x10158e(0x163)],_0x4c7c3e[_0x10158e(0x151)])),_0x16685e&&(_0x3b185a[_0x10158e(0x168)]=defaultValue(_0x4230af[_0x10158e(0x16d)],'#000000'),_0x3b185a['strokeText'](_0x192122,_0x5c87ba+_0x1b432f,_0x448119)),_0x3f4637&&(_0x3b185a[_0x10158e(0x144)]=defaultValue(_0x4230af['fillColor'],_0x10158e(0x142)),_0x3b185a[_0x10158e(0x174)](_0x192122,_0x5c87ba+_0x1b432f,_0x448119)),_0x4c7c3e;}function a69_0x4174(){const _0x10a3cb=['dimensions','fillStyle','data','ceil','minx','webkitImageSmoothingEnabled','lineJoin','mozImageSmoothingEnabled','white','ascent','#00000000','lineWidth','fill','632748Axnhda','height','417244CDuqzJ','2531617hoZgcv','15ovIvLR','createElement','msImageSmoothingEnabled','round','4018qmHODQ','167jXdMUH','8988HuBkRv','backgroundColor','imageSmoothingEnabled','style','13260303cddKYG','length','getContext','getImageData','getPropertyValue','width','font','text\x20is\x20required.','canvas','fillRect','strokeStyle','test','black','55hnjMRA','strokeWidth','strokeColor','25266792MWesdj','stroke','888CDIJtH','visibility','appendChild','removeChild','fillText','13KTPFnS','30dPpvkZ','#FFFFFF'];a69_0x4174=function(){return _0x10a3cb;};return a69_0x4174();}function defaultValue(_0x755e53,_0x43feac){if(_0x755e53!==undefined&&_0x755e53!==null)return _0x755e53;return _0x43feac;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ef779,_0x2e5e17){const _0x14cc97=a74_0x2ebf,_0x4ecbb3=_0x5ef779();while(!![]){try{const _0x191376=parseInt(_0x14cc97(0x87))/0x1+parseInt(_0x14cc97(0x89))/0x2*(-parseInt(_0x14cc97(0x9f))/0x3)+parseInt(_0x14cc97(0x80))/0x4+parseInt(_0x14cc97(0x9e))/0x5+-parseInt(_0x14cc97(0x8d))/0x6+-parseInt(_0x14cc97(0x97))/0x7*(parseInt(_0x14cc97(0xa3))/0x8)+parseInt(_0x14cc97(0x88))/0x9;if(_0x191376===_0x2e5e17)break;else _0x4ecbb3['push'](_0x4ecbb3['shift']());}catch(_0x489ed7){_0x4ecbb3['push'](_0x4ecbb3['shift']());}}}(a74_0x534f,0xa4426));import a74_0x5f4d78 from'ol/format/EsriJSON';function a74_0x534f(){const _0x4ec019=['getType','valueOf','getResolution','3578115umLFNc','3YiZcxs','imageDisplay','getCode','resolution','8tkVpXt','inSR','4418124iaTwgA','geometryType','path','returnGeometry','all','_setGeometryParams','getView','8131dDlSOi','10198692qdiuuJ','1261354WYutpo','url','getSize','geojsonTypeToArcGIS','2551530gDsTbp','returnZ','calculateExtent','time','params','request','geometry','getCenter','getProjection','layerDefs','8629145ItuoFK','returnM','layers','tolerance'];a74_0x534f=function(){return _0x4ec019;};return a74_0x534f();}function a74_0x2ebf(_0x3fb2e6,_0x17c14e){const _0x534f42=a74_0x534f();return a74_0x2ebf=function(_0x2ebf52,_0x1b5a74){_0x2ebf52=_0x2ebf52-0x80;let _0x28091c=_0x534f42[_0x2ebf52];return _0x28091c;},a74_0x2ebf(_0x3fb2e6,_0x17c14e);}import a74_0x328374 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a74_0x5543a9 from'./Task';import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a74_0x5543a9{constructor(_0x36abaa,_0x443606,_0x4c48e7){const _0x16eaa7=a74_0x2ebf;super(_0x36abaa,_0x443606,_0x4c48e7),this[_0x16eaa7(0x82)]='identify',this[_0x16eaa7(0x91)]={'layers':_0x16eaa7(0x84),'tolerance':0x0,'returnGeometry':!![]},this[_0x16eaa7(0x9a)]=0x3,this[_0x16eaa7(0xa2)]=0x0,this[_0x16eaa7(0x8a)]=appendPath(this['url'],this[_0x16eaa7(0x82)]),_0x443606&&((_0x443606[_0x16eaa7(0x83)]===!![]||_0x443606['returnGeometry']===![])&&(this[_0x16eaa7(0x91)][_0x16eaa7(0x83)]=_0x443606[_0x16eaa7(0x83)]),_0x443606[_0x16eaa7(0x99)]&&(this[_0x16eaa7(0x91)]['layers']=_0x443606[_0x16eaa7(0x99)]),_0x443606[_0x16eaa7(0x96)]&&(this[_0x16eaa7(0x91)][_0x16eaa7(0x96)]=_0x443606[_0x16eaa7(0x96)]),(_0x443606[_0x16eaa7(0x8e)]===!![]||_0x443606[_0x16eaa7(0x8e)]===![])&&(this['params'][_0x16eaa7(0x8e)]=_0x443606[_0x16eaa7(0x8e)]),(_0x443606['returnM']===!![]||_0x443606[_0x16eaa7(0x98)]===![])&&(this['params'][_0x16eaa7(0x98)]=_0x443606['returnM']));}['at'](_0x507cb2,_0x35ec1e){const _0x3d083a=a74_0x2ebf;let _0x2702e6,_0x100c43;const _0x529f47=new a74_0x328374();_0x2702e6=_0x507cb2,_0x100c43=getEsriSpatialReference(_0x35ec1e[_0x3d083a(0x86)]()[_0x3d083a(0x95)]()[_0x3d083a(0xa1)]());const _0x881c51=_0x35ec1e[_0x3d083a(0x8b)]();_0x881c51&&(this[_0x3d083a(0x91)][_0x3d083a(0xa0)]=[_0x881c51[0x0],_0x881c51[0x1],0x60]);this[_0x3d083a(0x91)]['sr']=_0x100c43;const _0xc82740=_0x35ec1e[_0x3d083a(0x86)]()[_0x3d083a(0x8f)](_0x35ec1e['getSize']());this['params']['mapExtent']={'xmin':_0xc82740[0x0],'ymin':_0xc82740[0x1],'xmax':_0xc82740[0x2],'ymax':_0xc82740[0x3],'spatialReference':_0x100c43};const _0x567f81=_0x35ec1e['getView']()[_0x3d083a(0x9d)](),_0x154843=_0x35ec1e[_0x3d083a(0x86)]()[_0x3d083a(0x94)]();return _0x567f81&&_0x154843&&(this[_0x3d083a(0xa2)]=getPointResolution(_0x35ec1e[_0x3d083a(0x86)]()['getProjection'](),_0x567f81,_0x154843)),this[_0x3d083a(0x85)](_0x2702e6,_0x35ec1e[_0x3d083a(0x86)]()[_0x3d083a(0x95)]()[_0x3d083a(0xa1)]()),this;}['between'](_0x38fc3e,_0x33b505){const _0xcc1b92=a74_0x2ebf;return this['params'][_0xcc1b92(0x90)]=[_0x38fc3e[_0xcc1b92(0x9c)](),_0x33b505[_0xcc1b92(0x9c)]()],this;}['run'](){const _0x18d38a=a74_0x2ebf;this[_0x18d38a(0x92)]();}['_setGeometryParams'](_0x5216be,_0xe21ddf){const _0x60ebdb=a74_0x2ebf;var _0x5be995=new a74_0x5f4d78();const _0x58b9b2=_0x5be995['writeGeometryObject'](_0x5216be);this[_0x60ebdb(0x91)][_0x60ebdb(0xa4)]=getEsriSpatialReference(_0xe21ddf),this['params'][_0x60ebdb(0x93)]=_0x58b9b2,this[_0x60ebdb(0x91)][_0x60ebdb(0x81)]=this[_0x60ebdb(0x8c)](_0x5216be[_0x60ebdb(0x9b)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x526f1c=a75_0x1ad9;function a75_0x1ad9(_0x4df36b,_0x500d64){const _0x30e1c1=a75_0x30e1();return a75_0x1ad9=function(_0x1ad9a5,_0x3815db){_0x1ad9a5=_0x1ad9a5-0x1ca;let _0x385539=_0x30e1c1[_0x1ad9a5];return _0x385539;},a75_0x1ad9(_0x4df36b,_0x500d64);}(function(_0x125778,_0x4b97c1){const _0xe052aa=a75_0x1ad9,_0x5e0a05=_0x125778();while(!![]){try{const _0x521045=-parseInt(_0xe052aa(0x204))/0x1*(-parseInt(_0xe052aa(0x1cc))/0x2)+-parseInt(_0xe052aa(0x1e1))/0x3+-parseInt(_0xe052aa(0x200))/0x4+parseInt(_0xe052aa(0x1e4))/0x5+-parseInt(_0xe052aa(0x20a))/0x6+-parseInt(_0xe052aa(0x1e9))/0x7*(parseInt(_0xe052aa(0x1df))/0x8)+parseInt(_0xe052aa(0x1f2))/0x9;if(_0x521045===_0x4b97c1)break;else _0x5e0a05['push'](_0x5e0a05['shift']());}catch(_0xf75d37){_0x5e0a05['push'](_0x5e0a05['shift']());}}}(a75_0x30e1,0xeb3fc));import a75_0x3b7b67 from'ol/format/EsriJSON';import a75_0x13e712 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';import{appendPath}from'../../UrlUtil';export default class Query extends a75_0x13e712{constructor(_0x537cb4,_0x15d4fe,_0x277d9a){const _0x29e2bb=a75_0x1ad9;super(_0x537cb4,_0x15d4fe,_0x277d9a),this[_0x29e2bb(0x1d6)]='query',this[_0x29e2bb(0x1dd)]={'returnGeometry':!![],'where':_0x29e2bb(0x1fd),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x29e2bb(0x20d)]()},this[_0x29e2bb(0x1d2)]=appendPath(this['url'],this[_0x29e2bb(0x1d6)]),_0x15d4fe&&((_0x15d4fe[_0x29e2bb(0x207)]===!![]||_0x15d4fe[_0x29e2bb(0x207)]===![])&&(this[_0x29e2bb(0x1dd)][_0x29e2bb(0x207)]=_0x15d4fe[_0x29e2bb(0x207)]),_0x15d4fe[_0x29e2bb(0x1f1)]&&(this['params']['where']=_0x15d4fe[_0x29e2bb(0x1f1)]),_0x15d4fe['outSR']&&(this[_0x29e2bb(0x1dd)][_0x29e2bb(0x208)]=getEsriSpatialReference(_0x15d4fe[_0x29e2bb(0x208)])),(_0x15d4fe[_0x29e2bb(0x1e7)]===!![]||_0x15d4fe['returnZ']===![])&&(this[_0x29e2bb(0x1dd)][_0x29e2bb(0x1e7)]=_0x15d4fe[_0x29e2bb(0x1e7)]),(_0x15d4fe[_0x29e2bb(0x1d4)]===!![]||_0x15d4fe[_0x29e2bb(0x1d4)]===![])&&(this[_0x29e2bb(0x1dd)][_0x29e2bb(0x1d4)]=_0x15d4fe[_0x29e2bb(0x1d4)]));}[a75_0x526f1c(0x1db)](_0x542b27,_0x552194){const _0x2f4180=a75_0x526f1c;return this[_0x2f4180(0x202)](_0x542b27,_0x552194),this['params'][_0x2f4180(0x1f3)]='esriSpatialRelContains',this;}[a75_0x526f1c(0x1ed)](_0x551007,_0xc201e9){const _0x50c566=a75_0x526f1c;return this[_0x50c566(0x202)](_0x551007,_0xc201e9),this[_0x50c566(0x1dd)][_0x50c566(0x1f3)]=_0x50c566(0x1ce),this;}[a75_0x526f1c(0x1f6)](_0x2a617c,_0x4a5f29){const _0x894804=a75_0x526f1c;return this[_0x894804(0x202)](_0x2a617c,_0x4a5f29),this[_0x894804(0x1dd)]['spatialRel']=_0x894804(0x1de),this;}[a75_0x526f1c(0x1d8)](_0x2c851b,_0x44bc89){const _0x1725db=a75_0x526f1c;return this[_0x1725db(0x202)](_0x2c851b,_0x44bc89),this[_0x1725db(0x1dd)]['spatialRel']=_0x1725db(0x1d1),this;}['touches'](_0x43ce7f,_0x4da09e){const _0xadbf1d=a75_0x526f1c;return this['_setGeometryParams'](_0x43ce7f,_0x4da09e),this['params'][_0xadbf1d(0x1f3)]=_0xadbf1d(0x1fb),this;}['overlaps'](_0x37241a,_0x78ec58){const _0x410815=a75_0x526f1c;return this[_0x410815(0x202)](_0x37241a,_0x78ec58),this[_0x410815(0x1dd)][_0x410815(0x1f3)]='esriSpatialRelOverlaps',this;}[a75_0x526f1c(0x1f5)](_0xe13bbf,_0x22a4fa){const _0x52bc2e=a75_0x526f1c;return this[_0x52bc2e(0x202)](_0xe13bbf,_0x22a4fa),this['params']['spatialRel']=_0x52bc2e(0x1dc),this;}[a75_0x526f1c(0x1e2)](_0x1908d8,_0x8e25d5){const _0x48eed5=a75_0x526f1c;return this[_0x48eed5(0x202)](_0x1908d8,_0x8e25d5),this[_0x48eed5(0x1dd)][_0x48eed5(0x1f3)]=_0x48eed5(0x1eb),this;}[a75_0x526f1c(0x1ef)](_0x3cc2ed,_0x3b9544,_0x167607){const _0x29d960=a75_0x526f1c;return this[_0x29d960(0x202)](_0x3cc2ed,_0x3b9544),this[_0x29d960(0x1dd)][_0x29d960(0x1f3)]=_0x29d960(0x1ce),this[_0x29d960(0x1dd)][_0x29d960(0x203)]='esriSRUnit_Meter',this['params'][_0x29d960(0x1d0)]=_0x167607,this;}['where'](_0x101f2e){const _0x5933d4=a75_0x526f1c;return this[_0x5933d4(0x1dd)][_0x5933d4(0x1f1)]=_0x101f2e,this;}['between'](_0x3f74be,_0xebf4f6){const _0x220f22=a75_0x526f1c;return this[_0x220f22(0x1dd)][_0x220f22(0x1e5)]=[_0x3f74be[_0x220f22(0x1f0)](),_0xebf4f6[_0x220f22(0x1f0)]()],this;}['simplify'](_0x224ad7,_0x9623c2){const _0x227713=a75_0x526f1c,_0xbbe6ea=_0x224ad7[_0x227713(0x1cd)]();var _0x2257de=Math['abs'](_0xbbe6ea[0x2]-_0xbbe6ea[0x0]);const _0xe80996=_0x224ad7['getSize']();if(_0xe80996)return this[_0x227713(0x1dd)]['maxAllowableOffset']=_0x2257de/_0xe80996[0x1]*_0x9623c2,this;}[a75_0x526f1c(0x1fe)](_0x5109a2,_0x351bd4){const _0x2272b0=a75_0x526f1c;return _0x351bd4=_0x351bd4||_0x2272b0(0x1e8),this[_0x2272b0(0x1dd)][_0x2272b0(0x1f7)]=this[_0x2272b0(0x1dd)][_0x2272b0(0x1f7)]?this[_0x2272b0(0x1dd)][_0x2272b0(0x1f7)]+',':'',this['params'][_0x2272b0(0x1f7)]+=[_0x5109a2,_0x351bd4][_0x2272b0(0x20b)]('\x20'),this;}async[a75_0x526f1c(0x1cb)](){const _0x2c0263=a75_0x526f1c;this[_0x2c0263(0x1ca)]();const _0x5b10a5=await this[_0x2c0263(0x1f8)]()[_0x2c0263(0x1fc)](_0x112577=>{throw new Error(_0x112577);});if(_0x5b10a5[_0x2c0263(0x20c)]!==0xc8)throw new Error('No\x20features\x20found');if(_0x5b10a5[_0x2c0263(0x1e0)]&&_0x5b10a5[_0x2c0263(0x1e0)][_0x2c0263(0x1f4)]&&_0x5b10a5[_0x2c0263(0x1e0)][_0x2c0263(0x1f4)][_0x2c0263(0x1e3)]>0x0){var _0x9a8f5e=new a75_0x3b7b67();let _0x16e53b=[];return _0x5b10a5[_0x2c0263(0x1e0)][_0x2c0263(0x1f4)][_0x2c0263(0x1d7)](_0x28d7cf=>{const _0x189162=_0x2c0263,_0x190380=_0x9a8f5e[_0x189162(0x1da)](_0x28d7cf);_0x16e53b[_0x189162(0x205)](_0x190380);}),_0x16e53b;}return[];}[a75_0x526f1c(0x1ea)](){const _0x32ac5f=a75_0x526f1c;this[_0x32ac5f(0x1ca)](),this[_0x32ac5f(0x1dd)][_0x32ac5f(0x1d9)]=!![],this[_0x32ac5f(0x1f8)]();}['ids'](){const _0x5e18e2=a75_0x526f1c;this[_0x5e18e2(0x1ca)](),this[_0x5e18e2(0x1dd)][_0x5e18e2(0x201)]=!![],this[_0x5e18e2(0x1f8)]();}[a75_0x526f1c(0x1d3)](){const _0x592a6e=a75_0x526f1c;return this[_0x592a6e(0x1dd)][_0x592a6e(0x207)]=![],this[_0x592a6e(0x1dd)][_0x592a6e(0x20e)]=!![],this;}[a75_0x526f1c(0x1f9)](_0x319b17){const _0x5783cf=a75_0x526f1c;return this[_0x5783cf(0x1d6)]=_0x319b17+_0x5783cf(0x1ec),this;}[a75_0x526f1c(0x1e6)](_0x3fe6b2){const _0x5ab11e=a75_0x526f1c;_0x3fe6b2&&(_0x3fe6b2['code']==='400'&&console[_0x5ab11e(0x1ff)][_0x5ab11e(0x209)](_0x5ab11e(0x1ee)));}['_cleanParams'](){const _0x495bd4=a75_0x526f1c;delete this['params'][_0x495bd4(0x201)],delete this[_0x495bd4(0x1dd)][_0x495bd4(0x1fa)],delete this['params']['returnCountOnly'];}['_setGeometryParams'](_0x9af6e5,_0x94582a){const _0x2a5eda=a75_0x526f1c;var _0x5065af=new a75_0x3b7b67();const _0x157e58=_0x5065af[_0x2a5eda(0x1cf)](_0x9af6e5);this[_0x2a5eda(0x1dd)][_0x2a5eda(0x1d5)]=getEsriSpatialReference(_0x94582a),this[_0x2a5eda(0x1dd)]['geometry']=_0x157e58,this[_0x2a5eda(0x1dd)][_0x2a5eda(0x206)]=this['geojsonTypeToArcGIS'](_0x9af6e5['getType']());}}function a75_0x30e1(){const _0x192d83=['layer','returnExtentOnly','esriSpatialRelTouches','catch','1=1','orderBy','warn','6749812FKMdnE','returnIdsOnly','_setGeometryParams','units','4931DdyMjV','push','geometryType','returnGeometry','outSR','apply','7393140HLVtml','join','status','getTime','returnDistinctValues','_cleanParams','run','710FERFqA','getExtent','esriSpatialRelIntersects','writeGeometryObject','distance','esriSpatialRelCrosses','url','distinct','returnM','inSR','path','forEach','crosses','returnCountOnly','readFeature','within','esriSpatialRelEnvelopeIntersects','params','esriSpatialRelWithin','4054672ccVDQl','data','1046670ASzPOA','indexIntersects','length','1549845papalT','time','_trapSQLerrors','returnZ','ASC','21OFiBXY','count','esriSpatialRelIndexIntersects','/query','intersects','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','nearby','valueOf','where','33229269zVFLuY','spatialRel','features','bboxIntersects','contains','orderByFields','request'];a75_0x30e1=function(){return _0x192d83;};return a75_0x30e1();}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a76_0x148fff=a76_0x3c14;function a76_0x3c14(_0x53bc83,_0x1dfe8d){var _0x3d872b=a76_0x3d87();return a76_0x3c14=function(_0x3c14c6,_0x16495a){_0x3c14c6=_0x3c14c6-0x130;var _0x2d16df=_0x3d872b[_0x3c14c6];return _0x2d16df;},a76_0x3c14(_0x53bc83,_0x1dfe8d);}function a76_0x3d87(){var _0x341915=['[object\x20Object]','9HvWgUl','1330216bkTRlH','1386128JGVTro','get','GET','url','params','[object\x20Date]','6597432LDqzCh','[object\x20Array]','returnUnformattedValues','indexOf','serialize','40024721GsGXlx','stringify','5XjBjrn','9URRUHu','MultiLineString','esriGeometryPoint','isArcgisOnline','LineString','geojsonTypeToArcGIS','length','json','valueOf','MultiPoint','method','1596084DjnkYX','JSONP','format','request','call','toString','6186380iRVJKq','2UJCbOS','prototype','esriGeometryPolygon','esriGeometryPolyline','test','esriGeometryMultipoint','1088798qsDaqC'];a76_0x3d87=function(){return _0x341915;};return a76_0x3d87();}(function(_0x3ff517,_0x414019){var _0x1fa996=a76_0x3c14,_0x2efaf7=_0x3ff517();while(!![]){try{var _0x3c7e43=-parseInt(_0x1fa996(0x143))/0x1*(parseInt(_0x1fa996(0x149))/0x2)+-parseInt(_0x1fa996(0x131))/0x3*(parseInt(_0x1fa996(0x14c))/0x4)+parseInt(_0x1fa996(0x130))/0x5*(-parseInt(_0x1fa996(0x153))/0x6)+-parseInt(_0x1fa996(0x13c))/0x7+-parseInt(_0x1fa996(0x14d))/0x8+-parseInt(_0x1fa996(0x14b))/0x9*(-parseInt(_0x1fa996(0x142))/0xa)+parseInt(_0x1fa996(0x158))/0xb;if(_0x3c7e43===_0x414019)break;else _0x2efaf7['push'](_0x2efaf7['shift']());}catch(_0x3549cd){_0x2efaf7['push'](_0x2efaf7['shift']());}}}(a76_0x3d87,0xa38f3));import a76_0x391506 from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x1dc2c9,_0x34c83c,_0x26487c){var _0x4c1e2f=a76_0x3c14;this[_0x4c1e2f(0x150)]=_0x1dc2c9,this[_0x4c1e2f(0x151)]=_0x34c83c||{},this[_0x4c1e2f(0x13b)]=!_0x26487c?'GET':_0x26487c;}[a76_0x148fff(0x136)](_0x2541c4){var _0x557bf1=a76_0x148fff,_0x3f1545;switch(_0x2541c4){case'Point':_0x3f1545=_0x557bf1(0x133);break;case _0x557bf1(0x13a):_0x3f1545=_0x557bf1(0x148);break;case _0x557bf1(0x135):_0x3f1545=_0x557bf1(0x146);break;case _0x557bf1(0x132):_0x3f1545='esriGeometryPolyline';break;case'Polygon':_0x3f1545=_0x557bf1(0x145);break;case'MultiPolygon':_0x3f1545=_0x557bf1(0x145);break;}return _0x3f1545;}[a76_0x148fff(0x134)](_0x3eb2d7){var _0x19e6c4=a76_0x148fff;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x19e6c4(0x147)](_0x3eb2d7);}[a76_0x148fff(0x157)](_0x311b06){var _0x3e5257=a76_0x148fff,_0x19e3a9='';_0x311b06['f']=_0x311b06['f']||_0x3e5257(0x138);for(var _0x28a2c1 in _0x311b06){if(Object[_0x3e5257(0x144)]['hasOwnProperty'][_0x3e5257(0x140)](_0x311b06,_0x28a2c1)){var _0x329a86=_0x311b06[_0x28a2c1],_0x4289ae=Object[_0x3e5257(0x144)][_0x3e5257(0x141)][_0x3e5257(0x140)](_0x329a86),_0x13865d;_0x19e3a9[_0x3e5257(0x137)]&&(_0x19e3a9+='&');if(_0x4289ae===_0x3e5257(0x154))_0x13865d=Object['prototype'][_0x3e5257(0x141)]['call'](_0x329a86[0x0])===_0x3e5257(0x14a)?JSON[_0x3e5257(0x159)](_0x329a86):_0x329a86['join'](',');else{if(_0x4289ae===_0x3e5257(0x14a))_0x13865d=JSON[_0x3e5257(0x159)](_0x329a86);else _0x4289ae===_0x3e5257(0x152)?_0x13865d=_0x329a86[_0x3e5257(0x139)]():_0x13865d=_0x329a86;}_0x19e3a9+=encodeURIComponent(_0x28a2c1)+'='+encodeURIComponent(_0x13865d);}}return _0x19e3a9;}[a76_0x148fff(0x13e)](_0x5549ed){var _0x3892c4=a76_0x148fff;return this[_0x3892c4(0x151)][_0x3892c4(0x155)]=!_0x5549ed,this;}async[a76_0x148fff(0x13f)](){var _0x39f5f9=a76_0x148fff,_0x584283=this['serialize'](this[_0x39f5f9(0x151)]);const _0x5c8a69=this[_0x39f5f9(0x150)][_0x39f5f9(0x156)]('?')>-0x1?this[_0x39f5f9(0x150)]+'&'+_0x584283:this[_0x39f5f9(0x150)]+'?'+_0x584283;if(this['method']===_0x39f5f9(0x14f))return a76_0x391506[_0x39f5f9(0x14e)](_0x5c8a69);else{if(this[_0x39f5f9(0x13b)]===_0x39f5f9(0x13d))return jsonp(_0x5c8a69);else{const _0x2e4845=stringify(this[_0x39f5f9(0x151)]);return a76_0x391506['post'](this[_0x39f5f9(0x150)],_0x2e4845);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a78_0x3d0c(){const _0x1241b3=['features','geometry','25264510coZADi','2115714glzIGN','2DWajFm','2721596qFMWoM','queryParameters','readFeature','stringify','1827270fsLAMJ','240dDmQNY','15kfwDMJ','serializeToString','url','writeGetFeature','map','where','732746MMHHCv','catch','geometryName','POST','268497sSvdbw','read','application/json','then','execute','srsName\x20is\x20required','288670OZNThN','srsName'];a78_0x3d0c=function(){return _0x1241b3;};return a78_0x3d0c();}const a78_0x11c4b2=a78_0x703f;(function(_0x4ef3f0,_0x52a4f9){const _0x2663f2=a78_0x703f,_0x2b8beb=_0x4ef3f0();while(!![]){try{const _0x35a134=parseInt(_0x2663f2(0x146))/0x1*(-parseInt(_0x2663f2(0x140))/0x2)+-parseInt(_0x2663f2(0x145))/0x3+-parseInt(_0x2663f2(0x147))/0x4+parseInt(_0x2663f2(0x14d))/0x5*(-parseInt(_0x2663f2(0x14b))/0x6)+-parseInt(_0x2663f2(0x153))/0x7+parseInt(_0x2663f2(0x14c))/0x8*(parseInt(_0x2663f2(0x157))/0x9)+parseInt(_0x2663f2(0x144))/0xa;if(_0x35a134===_0x52a4f9)break;else _0x2b8beb['push'](_0x2b8beb['shift']());}catch(_0x3244dc){_0x2b8beb['push'](_0x2b8beb['shift']());}}}(a78_0x3d0c,0xb1ef5));import{and,intersects}from'ol/format/filter';import a78_0x500331 from'../../format/CQL';import a78_0x14972d from'ol/format/WFS';function a78_0x703f(_0x24f0ca,_0x1d4b90){const _0x3d0cde=a78_0x3d0c();return a78_0x703f=function(_0x703fb8,_0x585e44){_0x703fb8=_0x703fb8-0x13d;let _0x38fc2a=_0x3d0cde[_0x703fb8];return _0x38fc2a;},a78_0x703f(_0x24f0ca,_0x1d4b90);}import a78_0x52d59d from'ol/format/GeoJSON';export default class QueryTask{constructor(_0xe8ebd0){const _0x5e240c=a78_0x703f;this[_0x5e240c(0x148)]={},this[_0x5e240c(0x14f)]=_0xe8ebd0;}async[a78_0x11c4b2(0x13e)](_0x39605d){const _0x33ac8e=a78_0x11c4b2;this[_0x33ac8e(0x148)]=_0x39605d||{};const _0x1a4146=this['queryParameters'][_0x33ac8e(0x155)]||'the_geom';let _0x40a1fd=this[_0x33ac8e(0x148)]['where'],_0x37601a;_0x40a1fd&&(_0x37601a=new a78_0x500331()[_0x33ac8e(0x158)](_0x40a1fd));let _0x2ec018=_0x37601a;if(this[_0x33ac8e(0x148)]['geometry']){if(!this[_0x33ac8e(0x148)][_0x33ac8e(0x141)])throw new Error(_0x33ac8e(0x13f));const _0x3d7f16=intersects(_0x1a4146,this[_0x33ac8e(0x148)][_0x33ac8e(0x143)]);_0x2ec018=_0x37601a?and(_0x37601a,_0x3d7f16):_0x3d7f16;}let _0x26a3c6=new a78_0x14972d()[_0x33ac8e(0x150)]({'srsName':this[_0x33ac8e(0x148)][_0x33ac8e(0x141)],'featureNS':'','featurePrefix':'','featureTypes':[this['queryParameters']['tableName']],'outputFormat':_0x33ac8e(0x159),'geometryName':_0x1a4146,'filter':_0x2ec018});const _0x50474e=await fetch(this[_0x33ac8e(0x14f)],{'method':'POST','body':new XMLSerializer()[_0x33ac8e(0x14e)](_0x26a3c6)}),_0x5d1683=await _0x50474e['json']();let _0x37f420=[];const _0x36039d=new a78_0x52d59d();return _0x37f420=_0x5d1683['features'][_0x33ac8e(0x151)](_0x5731fe=>{const _0xb5d6a6=_0x33ac8e;return _0x36039d[_0xb5d6a6(0x149)](JSON['stringify'](_0x5731fe));}),_0x37f420;}['_geoserverQuery'](){const _0x3f7cd3=a78_0x11c4b2,_0x434afd=this['queryParameters'][_0x3f7cd3(0x155)]||'the_geom';let _0x24c324=this['queryParameters'][_0x3f7cd3(0x152)],_0x56294a;_0x24c324&&(_0x56294a=new a78_0x500331()[_0x3f7cd3(0x158)](_0x24c324));let _0x311c2a=_0x56294a;if(this['queryParameters'][_0x3f7cd3(0x143)]){const _0x375d30=intersects(_0x434afd,this['queryParameters']['geometry']);_0x311c2a=_0x56294a?and(_0x56294a,_0x375d30):_0x375d30;}let _0x10c9b9=new a78_0x14972d()[_0x3f7cd3(0x150)]({'srsName':this[_0x3f7cd3(0x148)][_0x3f7cd3(0x141)],'featureNS':'','featurePrefix':'','featureTypes':[this['queryParameters']['tableName']],'outputFormat':_0x3f7cd3(0x159),'geometryName':_0x434afd,'filter':_0x311c2a});return new Promise(_0x792a3=>{const _0x3df6b6=_0x3f7cd3;fetch(this[_0x3df6b6(0x14f)],{'method':_0x3df6b6(0x156),'body':new XMLSerializer()[_0x3df6b6(0x14e)](_0x10c9b9)})[_0x3df6b6(0x13d)](_0x52f30b=>{return _0x52f30b['json']();})[_0x3df6b6(0x13d)](_0x30102a=>{const _0x2453e9=_0x3df6b6;let _0xee0861=[];const _0x972660=new a78_0x52d59d();_0xee0861=_0x30102a[_0x2453e9(0x142)][_0x2453e9(0x151)](_0x30aaff=>{const _0x4f49d2=_0x2453e9;return _0x972660['readFeature'](JSON[_0x4f49d2(0x14a)](_0x30aaff));}),_0x792a3(_0xee0861);})[_0x3df6b6(0x154)](_0x193a7c=>{_0x792a3([]),console['error'](_0x193a7c);});});}}
|