ym-gis-2d 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/entity/layer/IMapService.d.ts +2 -0
- package/entity/layer/IMapService.d.ts.map +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.d.ts.map +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js.map +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +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/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.d.ts +8 -0
- package/utils/ResolutionUtil.d.ts.map +1 -0
- package/utils/ResolutionUtil.js +1 -0
- package/utils/ResolutionUtil.js.map +1 -0
- 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/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(_0x57ed37,_0x4d215b){const _0x4c23be=a79_0x116a,_0x14ff25=_0x57ed37();while(!![]){try{const _0x515b66=parseInt(_0x4c23be(0x18c))/0x1+-parseInt(_0x4c23be(0x17e))/0x2*(-parseInt(_0x4c23be(0x180))/0x3)+-parseInt(_0x4c23be(0x17d))/0x4+parseInt(_0x4c23be(0x185))/0x5+parseInt(_0x4c23be(0x184))/0x6+-parseInt(_0x4c23be(0x177))/0x7*(parseInt(_0x4c23be(0x18d))/0x8)+parseInt(_0x4c23be(0x17c))/0x9*(-parseInt(_0x4c23be(0x18a))/0xa);if(_0x515b66===_0x4d215b)break;else _0x14ff25['push'](_0x14ff25['shift']());}catch(_0x295d9c){_0x14ff25['push'](_0x14ff25['shift']());}}}(a79_0x129c,0xb7e4b));export function addArgument(_0x344dfe,_0x389c29,_0x128b39){const _0x48256d=a79_0x116a,_0x126b06=new RegExp(_0x48256d(0x18b)+_0x389c29+'=)([^&]*)','gi');if(_0x344dfe[_0x48256d(0x188)](_0x126b06))_0x344dfe=_0x344dfe[_0x48256d(0x187)](_0x126b06,_0x340e15=>_0x340e15[0x0]+_0x389c29+'='+_0x128b39);else{var _0x40c55f=_0x389c29+'='+_0x128b39,_0x4f43ca=_0x344dfe[_0x48256d(0x181)]('?');let _0x5743b4=_0x344dfe;_0x4f43ca>-0x1&&_0x344dfe['indexOf'](_0x48256d(0x175))>-0x1&&(_0x5743b4=_0x344dfe[_0x48256d(0x178)](_0x4f43ca+0x1),_0x4f43ca=_0x5743b4['indexOf']('?'));if(_0x4f43ca<0x0)_0x344dfe+='?';else _0x4f43ca>=0x0&&_0x4f43ca!==_0x5743b4[_0x48256d(0x182)]-0x1&&(_0x344dfe+='&');_0x344dfe=_0x344dfe+_0x40c55f;}return _0x344dfe;}export function appendParam(_0x1770f0,_0x1dd1da){const _0x241e29=a79_0x116a;var _0x9ccc10=_0x1770f0['indexOf']('?');let _0x5ef1fa=_0x1770f0;if(_0x9ccc10>-0x1&&_0x1770f0['indexOf'](_0x241e29(0x175))>-0x1){let _0x16ffc1=_0x9ccc10+0x1;_0x5ef1fa=_0x1770f0[_0x241e29(0x178)](_0x9ccc10+0x1),_0x9ccc10=_0x5ef1fa[_0x241e29(0x181)]('?');}return _0x9ccc10>-0x1?_0x1770f0+'&'+_0x1dd1da:_0x1770f0+'?'+_0x1dd1da;}function a79_0x129c(){const _0x3124d3=['body','3446271AEOdUD','475592WuhLVl','12244xuCVuU','split','573tHiNuF','indexOf','length','map','6198264Lcgbwp','6364195LfEEAR','_blank','replace','match','target','40kQHFyK','[\x5c?&](','48290yyjiLg','8957392JaBvmj','createElement','?http','setAttribute','7lVeqPW','substring','href','createObjectURL'];a79_0x129c=function(){return _0x3124d3;};return a79_0x129c();}function a79_0x116a(_0x4f8f86,_0x5cd764){const _0x129ce6=a79_0x129c();return a79_0x116a=function(_0x116a74,_0x259e9b){_0x116a74=_0x116a74-0x174;let _0x46d8ca=_0x129ce6[_0x116a74];return _0x46d8ca;},a79_0x116a(_0x4f8f86,_0x5cd764);}export function appendPath(_0x5b08d2,_0x251e27){const _0x5b9146=a79_0x116a;var _0x51eb34=_0x5b08d2[_0x5b9146(0x181)]('?');let _0x13fa04=_0x5b08d2;if(_0x51eb34>-0x1&&_0x5b08d2['indexOf'](_0x5b9146(0x175))>-0x1){let _0x1f25c6=_0x51eb34+0x1;_0x13fa04=_0x5b08d2[_0x5b9146(0x178)](_0x51eb34+0x1),_0x51eb34=_0x13fa04['indexOf']('?'),_0x51eb34>-0x1&&(_0x51eb34+=_0x1f25c6);}return _0x51eb34>-0x1?_0x5b08d2[_0x5b9146(0x178)](0x0,_0x51eb34)+'/'+_0x251e27+_0x5b08d2[_0x5b9146(0x178)](_0x51eb34):_0x5b08d2+'/'+_0x251e27;}export function getUrlParams(_0x9b69d2){const _0x257944=a79_0x116a;var _0x22aa67,_0x105cc0;let _0x371d72=_0x9b69d2[_0x257944(0x181)]('?http'),_0x30f962;_0x371d72>-0x1?_0x9b69d2['indexOf']('?',_0x371d72+0x3)>-0x1&&(_0x30f962=(_0x22aa67=_0x9b69d2[_0x257944(0x17f)]('?'))===null||_0x22aa67===void 0x0?void 0x0:_0x22aa67[0x2]):_0x9b69d2[_0x257944(0x181)]('?')>-0x1&&(_0x30f962=(_0x105cc0=_0x9b69d2[_0x257944(0x17f)]('?'))===null||_0x105cc0===void 0x0?void 0x0:_0x105cc0[0x1]);if(_0x30f962)return createParamByQuery(_0x30f962);return[];}function createParamByQuery(_0x49d1a3){const _0x57cbf4=a79_0x116a;let _0x463f14=_0x49d1a3[_0x57cbf4(0x17f)]('&');return _0x463f14[_0x57cbf4(0x183)](_0x5d69b2=>{var _0x591ca1=_0x5d69b2['split']('=');return{'name':_0x591ca1[0x0],'value':_0x591ca1[0x1]};});}export function parseImage(_0x650170,_0x4263a1){const _0x4ca862=a79_0x116a;let _0x43fa7c='';if(_0x650170){if(_0x650170[_0x4ca862(0x188)](/^(data|http|https)/))_0x43fa7c=_0x650170;else{if(_0x650170[_0x4ca862(0x188)](/Assets/))_0x43fa7c=_0x650170;else{}}}return _0x43fa7c;}export function downloadBlob(_0xa58c0,_0x3a77b4){const _0x321e1b=a79_0x116a,_0x12539e=URL[_0x321e1b(0x17a)](_0xa58c0);var _0x1c37aa=document[_0x321e1b(0x174)]('a');_0x1c37aa[_0x321e1b(0x176)](_0x321e1b(0x179),_0x12539e),_0x1c37aa[_0x321e1b(0x176)](_0x321e1b(0x189),_0x321e1b(0x186)),_0x1c37aa[_0x321e1b(0x176)]('download',_0x3a77b4),document[_0x321e1b(0x17b)]['appendChild'](_0x1c37aa),_0x1c37aa['click'](),document[_0x321e1b(0x17b)]['removeChild'](_0x1c37aa),URL['revokeObjectURL'](_0x12539e);}
|
package/utils/XmlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xd75634,_0x57cfbc){const _0x439b53=a80_0x1bc6,_0x393fa7=_0xd75634();while(!![]){try{const _0x3e0212=parseInt(_0x439b53(0x10d))/0x1+parseInt(_0x439b53(0x111))/0x2+parseInt(_0x439b53(0x110))/0x3*(parseInt(_0x439b53(0x10f))/0x4)+-parseInt(_0x439b53(0x118))/0x5*(parseInt(_0x439b53(0x114))/0x6)+-parseInt(_0x439b53(0x116))/0x7+parseInt(_0x439b53(0x115))/0x8*(-parseInt(_0x439b53(0x117))/0x9)+parseInt(_0x439b53(0x10c))/0xa;if(_0x3e0212===_0x57cfbc)break;else _0x393fa7['push'](_0x393fa7['shift']());}catch(_0x213784){_0x393fa7['push'](_0x393fa7['shift']());}}}(a80_0x2452,0x285c8));function a80_0x1bc6(_0x10c278,_0x5daed5){const _0x245204=a80_0x2452();return a80_0x1bc6=function(_0x1bc6e9,_0x3b6883){_0x1bc6e9=_0x1bc6e9-0x10c;let _0x587ac1=_0x245204[_0x1bc6e9];return _0x587ac1;},a80_0x1bc6(_0x10c278,_0x5daed5);}function a80_0x2452(){const _0x2d79c7=['407876RMwuiy','parseFromString','Microsoft.XMLDOM','245442wFPBfp','136pKczvj','1162035EYUwvW','86625CvYJej','35QwBPUM','1343970xxfojc','128502JdolAE','DOMParser','1257848layWQC','3YotVMu'];a80_0x2452=function(){return _0x2d79c7;};return a80_0x2452();}export function readXml(_0x1f7dc9){const _0xa89e8=a80_0x1bc6;let _0x3627c7;return window[_0xa89e8(0x10e)]?_0x3627c7=new DOMParser()[_0xa89e8(0x112)](_0x1f7dc9,'text/xml'):(_0x3627c7=new ActiveXObject(_0xa89e8(0x113)),_0x3627c7['async']='false',_0x3627c7['loadXML'](_0x1f7dc9)),_0x3627c7;}
|
package/utils/format/CQL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62_0x57cbb3=a62_0x1653;(function(_0x39fde7,_0x1ed199){const _0x3d488a=a62_0x1653,_0xee080=_0x39fde7();while(!![]){try{const _0x7f3103=-parseInt(_0x3d488a(0x129))/0x1*(parseInt(_0x3d488a(0xc5))/0x2)+-parseInt(_0x3d488a(0xf0))/0x3*(-parseInt(_0x3d488a(0x119))/0x4)+-parseInt(_0x3d488a(0x104))/0x5*(parseInt(_0x3d488a(0xd5))/0x6)+-parseInt(_0x3d488a(0x111))/0x7+parseInt(_0x3d488a(0x10f))/0x8*(parseInt(_0x3d488a(0x121))/0x9)+-parseInt(_0x3d488a(0x10d))/0xa*(parseInt(_0x3d488a(0xc3))/0xb)+parseInt(_0x3d488a(0xe7))/0xc;if(_0x7f3103===_0x1ed199)break;else _0xee080['push'](_0xee080['shift']());}catch(_0x337a86){_0xee080['push'](_0xee080['shift']());}}}(a62_0x1b40,0x942e5));function a62_0x1653(_0x5491b8,_0x4d6ae6){const _0x1b40a3=a62_0x1b40();return a62_0x1653=function(_0x1653c8,_0x3ba420){_0x1653c8=_0x1653c8-0xc0;let _0x42f860=_0x1b40a3[_0x1653c8];return _0x42f860;},a62_0x1653(_0x5491b8,_0x4d6ae6);}import*as a62_0x2aba56 from'ol/format/filter';import{WKT}from'ol/format';function a62_0x1b40(){const _0x4c540e=['],\x20expected\x20one\x20of:\x20','replaceAll','shift','2hVIchH','PropertyIsNotEqualTo','BBOX(','operators','not','readGeometry','isNull','toUpperCase','inPatterns','66Opklcd','precedence','250872yKtkGL','pop','LOGICAL','CLASS_NAME','remainder','SPATIAL','Can\x27t\x20encode:\x20','intersects','greaterThanOrEqualTo','and','PropertyIsNull','BETWEEN','geometry','push','between','length','2118EllezC','COMMA','Unknown\x20token\x20type\x20','substring','RPAREN','charAt','split','expression','\x20or\x20','\x20BETWEEN\x20','follows','PropertyIsLessThan','LIKE','string','VALUE','IS_NULL','INTERSECTS(','ERROR:\x20In\x20parsing:\x20[','15329832ublWxb','tokens','GEOMETRY','buildAst','PropertyIsBetween','geometryName','replace','PropertyIsLike','Within','201kzyPoG','tryToken','NOT','notEqualTo','contains','WITHIN(','CONTAINS(','END','LPAREN','PropertyIsGreaterThanOrEqualTo','write','COMPARISON','Not','PropertyIsGreaterThan','nextToken','tokenize','CQL解析失败:','index','lessThanOrEqualTo','PropertyIsEqualTo','4450HijoOx','conditions','patterns','No\x20follows\x20list\x20for\x20','lastIndexOf','upperBoundary','operatorReverse','like','tagName_','210DXCAgl','parseInToOr','1400xVriaS','match','5849242VrekxA','writeGeometry','property','type','propertyName','WITHIN','greaterThan','INTERSECTS','18344reFfvM','toLowerCase','extent','text','CONTAINS','PROPERTY','IS\x20NULL','NOT\x20(','21753SUuaxy','logicals','Contains','join','\x20AND\x20'];a62_0x1b40=function(){return _0x4c540e;};return a62_0x1b40();}import a62_0x2c5953 from'ol/geom/Geometry';export default class CQL{constructor(){const _0x1a386b=a62_0x1653;this[_0x1a386b(0xc2)]=/ (IN) /i,this[_0x1a386b(0xe8)]=[_0x1a386b(0x11e),'COMPARISON',_0x1a386b(0xe3),'LOGICAL'],this[_0x1a386b(0x106)]={'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(_0x4e8db7){const _0x3732a5=_0x1a386b;let _0x93f1a2=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/['exec'](_0x4e8db7);if(_0x93f1a2){let _0x2e372f=_0x4e8db7[_0x3732a5(0xd4)],_0x4e2c08=_0x4e8db7['indexOf']('(',_0x93f1a2[0x0]['length']);if(_0x4e2c08>-0x1){let _0x42f71a=0x1;while(_0x4e2c08<_0x2e372f&&_0x42f71a>0x0){_0x4e2c08++;switch(_0x4e8db7[_0x3732a5(0xda)](_0x4e2c08)){case'(':_0x42f71a++;break;case')':_0x42f71a--;break;default:}}}return[_0x4e8db7['substring'](0x0,_0x4e2c08+0x1)];}},'END':/^$/},this[_0x1a386b(0xdf)]={'LPAREN':[_0x1a386b(0xe9),_0x1a386b(0xca),'PROPERTY','VALUE',_0x1a386b(0xf8)],'RPAREN':[_0x1a386b(0xf2),'LOGICAL',_0x1a386b(0xf7),_0x1a386b(0xd9)],'PROPERTY':[_0x1a386b(0xfb),_0x1a386b(0xd0),_0x1a386b(0xd6),_0x1a386b(0xe4)],'BETWEEN':[_0x1a386b(0xe3)],'IS_NULL':[_0x1a386b(0xf7)],'COMPARISON':[_0x1a386b(0xe3)],'COMMA':[_0x1a386b(0xe9),_0x1a386b(0xe3),_0x1a386b(0x11e)],'VALUE':[_0x1a386b(0xc7),_0x1a386b(0xd6),_0x1a386b(0xd9),_0x1a386b(0xf7)],'SPATIAL':['LPAREN'],'LOGICAL':[_0x1a386b(0xf2),_0x1a386b(0xe3),'SPATIAL',_0x1a386b(0x11e),_0x1a386b(0xf8)],'NOT':['PROPERTY','LPAREN'],'GEOMETRY':['COMMA',_0x1a386b(0xd9)]},this['operators']={'=':a62_0x2aba56['equalTo'],'<>':a62_0x2aba56[_0x1a386b(0xf3)],'<':a62_0x2aba56['lessThan'],'<=':a62_0x2aba56[_0x1a386b(0x102)],'>':a62_0x2aba56[_0x1a386b(0x117)],'>=':a62_0x2aba56[_0x1a386b(0xcd)],'LIKE':a62_0x2aba56[_0x1a386b(0x10b)],'BETWEEN':a62_0x2aba56[_0x1a386b(0xd3)],'IS\x20NULL':a62_0x2aba56[_0x1a386b(0xc0)]},this['operatorReverse']={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x1a386b(0xe1),'PropertyIsNull':_0x1a386b(0x11f),'PropertyIsBetween':_0x1a386b(0xd0)},this['logicals']={'AND':a62_0x2aba56[_0x1a386b(0xce)],'OR':a62_0x2aba56['or']},this[_0x1a386b(0xc4)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}['tryToken'](_0x5be321,_0x598b05){return _0x598b05 instanceof RegExp?_0x598b05['exec'](_0x5be321):_0x598b05(_0x5be321);}[a62_0x57cbb3(0xfe)](_0x285e09,_0x6e4ff6){const _0x5f6b3f=a62_0x57cbb3;let _0x5d39e3,_0xc04321,_0x432f03=_0x6e4ff6[_0x5f6b3f(0xd4)];for(_0x5d39e3=0x0;_0x5d39e3<_0x432f03;_0x5d39e3++){_0xc04321=_0x6e4ff6[_0x5d39e3];let _0x4894b7=this[_0x5f6b3f(0x106)][_0xc04321],_0x48299c=this[_0x5f6b3f(0xf1)](_0x285e09,_0x4894b7);if(_0x48299c){let _0x897c3f=_0x48299c[0x0],_0x16bd42=_0x285e09[_0x5f6b3f(0xd8)](_0x897c3f[_0x5f6b3f(0xd4)])[_0x5f6b3f(0xed)](/^\s*/,'');return{'type':_0xc04321,'text':_0x897c3f,'remainder':_0x16bd42};}}let _0x4efae0=_0x5f6b3f(0xe6)+_0x285e09+_0x5f6b3f(0x126);for(_0x5d39e3=0x0;_0x5d39e3<_0x432f03;_0x5d39e3++){_0xc04321=_0x6e4ff6[_0x5d39e3],_0x4efae0+='\x0a\x20\x20\x20\x20'+_0xc04321+':\x20'+this[_0x5f6b3f(0x106)][_0xc04321];}throw new Error(_0x4efae0);}[a62_0x57cbb3(0xff)](_0x4cfa8a){const _0x1a33e8=a62_0x57cbb3;_0x4cfa8a=_0x4cfa8a[_0x1a33e8(0x127)]('[','')['replaceAll'](']','');let _0x5845e3=this[_0x1a33e8(0xf1)](_0x4cfa8a,this[_0x1a33e8(0xc2)]);_0x5845e3&&(_0x4cfa8a=this[_0x1a33e8(0x10e)](_0x4cfa8a,_0x5845e3));let _0x2a1a15=[],_0x30a48c,_0x4a7902=[_0x1a33e8(0xf2),_0x1a33e8(0xe9),_0x1a33e8(0xca),'PROPERTY',_0x1a33e8(0xf8)];do{_0x30a48c=this[_0x1a33e8(0xfe)](_0x4cfa8a,_0x4a7902),_0x4cfa8a=_0x30a48c[_0x1a33e8(0xc9)],_0x4a7902=this[_0x1a33e8(0xdf)][_0x30a48c[_0x1a33e8(0x114)]];if(_0x30a48c[_0x1a33e8(0x114)]!=='END'&&!_0x4a7902)throw new Error(_0x1a33e8(0x107)+_0x30a48c[_0x1a33e8(0x114)]);_0x2a1a15['push'](_0x30a48c);}while(_0x30a48c['type']!==_0x1a33e8(0xf7));return _0x2a1a15;}['parseInToOr'](_0x1387ac,_0x254b49){const _0x162188=a62_0x57cbb3;let _0x148178=this[_0x162188(0xf1)](_0x1387ac,/\((.+?)\)/g);if(_0x148178){let _0xd7a730=_0x1387ac[_0x162188(0xd8)](0x0,_0x254b49[_0x162188(0x101)]),_0x9d531a=_0x148178[0x1],_0x28e03b=_0x9d531a['replaceAll']('\x20','')[_0x162188(0xdb)](','),_0x2242f2='',_0x51e9e9='';if(_0xd7a730['indexOf']('\x20')>-0x1){let _0x2d5f0f=_0xd7a730[_0x162188(0x108)]('\x20');_0x51e9e9=_0xd7a730[_0x162188(0xd8)](0x0,_0x2d5f0f+0x1),_0x2242f2=_0xd7a730[_0x162188(0xd8)](_0x2d5f0f+0x1,_0xd7a730[_0x162188(0xd4)]);}else _0x2242f2=_0xd7a730;let _0x3b4a51=_0x51e9e9;for(let _0x5be212=0x0;_0x5be212<_0x28e03b['length'];_0x5be212++){let _0x199564=_0x28e03b[_0x5be212];_0x3b4a51+=_0x2242f2+'='+_0x199564,_0x5be212<_0x28e03b['length']-0x1&&(_0x3b4a51+=_0x162188(0xdd));}return _0x3b4a51;}return _0x1387ac;}['buildAst'](_0x3ca8f5){const _0x152b42=a62_0x57cbb3;let _0xe00967=this,_0x1b6f7b=[],_0x3dc1d8=[];while(_0x3ca8f5[_0x152b42(0xd4)]){let _0x55fa8d=_0x3ca8f5[_0x152b42(0x128)]();switch(_0x55fa8d[_0x152b42(0x114)]){case'PROPERTY':case _0x152b42(0xe9):case _0x152b42(0xe3):_0x3dc1d8['push'](_0x55fa8d);break;case'COMPARISON':case _0x152b42(0xd0):case'IS_NULL':case _0x152b42(0xc7):{let _0x2f9852=this[_0x152b42(0xc4)][_0x55fa8d[_0x152b42(0x114)]];while(_0x1b6f7b[_0x152b42(0xd4)]>0x0&&this['precedence'][_0x1b6f7b[_0x1b6f7b[_0x152b42(0xd4)]-0x1][_0x152b42(0x114)]]<=_0x2f9852){_0x3dc1d8[_0x152b42(0xd2)](_0x1b6f7b['pop']());}_0x1b6f7b[_0x152b42(0xd2)](_0x55fa8d);break;}case _0x152b42(0xca):case'NOT':case _0x152b42(0xf8):_0x1b6f7b[_0x152b42(0xd2)](_0x55fa8d);break;case _0x152b42(0xd9):while(_0x1b6f7b[_0x152b42(0xd4)]>0x0&&_0x1b6f7b[_0x1b6f7b[_0x152b42(0xd4)]-0x1][_0x152b42(0x114)]!=='LPAREN'){_0x3dc1d8[_0x152b42(0xd2)](_0x1b6f7b['pop']());}_0x1b6f7b[_0x152b42(0xc6)]();_0x1b6f7b[_0x152b42(0xd4)]>0x0&&(_0x1b6f7b[_0x1b6f7b[_0x152b42(0xd4)]-0x1]['type']==='SPATIAL'||_0x1b6f7b[_0x1b6f7b[_0x152b42(0xd4)]-0x1][_0x152b42(0x114)]===_0x152b42(0xf2))&&_0x3dc1d8[_0x152b42(0xd2)](_0x1b6f7b['pop']());break;case _0x152b42(0xd6):case'END':break;default:throw new Error(_0x152b42(0xd7)+_0x55fa8d[_0x152b42(0x114)]);}}while(_0x1b6f7b[_0x152b42(0xd4)]>0x0){_0x3dc1d8[_0x152b42(0xd2)](_0x1b6f7b['pop']());}function _0xd6c64b(){const _0x1e14fc=_0x152b42;let _0x46d2d4,_0x554d0b,_0x117283=_0x3dc1d8[_0x1e14fc(0xc6)]();switch(_0x117283[_0x1e14fc(0x114)]){case _0x1e14fc(0xc7):{let _0x3679bc=_0xd6c64b(),_0x46bdf9=_0xd6c64b();return new _0xe00967[(_0x1e14fc(0x122))][(_0x117283['text']['toUpperCase']())](_0x46bdf9,_0x3679bc);}case _0x1e14fc(0xf2):{let _0x281175=_0xd6c64b();return a62_0x2aba56[_0x1e14fc(0x12d)](_0x281175);}case'BETWEEN':{let _0x38a8fb,_0x12a450;return _0x3dc1d8[_0x1e14fc(0xc6)](),_0x12a450=_0xd6c64b(),_0x38a8fb=_0xd6c64b(),_0x554d0b=_0xd6c64b(),a62_0x2aba56['between'](_0x554d0b,_0x38a8fb,_0x12a450);}case _0x1e14fc(0xfb):{return _0x46d2d4=_0xd6c64b(),_0x554d0b=_0xd6c64b(),new _0xe00967[(_0x1e14fc(0x12c))][(_0x117283[_0x1e14fc(0x11c)][_0x1e14fc(0xc1)]())](_0x554d0b,_0x46d2d4);}case'IS_NULL':_0x554d0b=_0xd6c64b();return new _0xe00967[(_0x1e14fc(0x12c))][(_0x117283[_0x1e14fc(0x11c)][_0x1e14fc(0xc1)]())](_0x554d0b);case _0x1e14fc(0xe3):{let _0x4beb60=_0x117283['text'][_0x1e14fc(0x110)](/^'(.*)'$/);return _0x4beb60?_0x4beb60[0x1][_0x1e14fc(0xed)](/''/g,'\x27'):Number(_0x117283[_0x1e14fc(0x11c)]);}case _0x1e14fc(0xca):switch(_0x117283[_0x1e14fc(0x11c)][_0x1e14fc(0xc1)]()){case'BBOX':{let _0x37ccc0=_0xd6c64b(),_0x1e458a=_0xd6c64b(),_0x306bbf=_0xd6c64b(),_0x43226d=_0xd6c64b(),_0x1ce6cd=_0xd6c64b();return a62_0x2aba56['bbox'](_0x1ce6cd,[_0x43226d,_0x306bbf,_0x1e458a,_0x37ccc0]);}case _0x1e14fc(0x118):_0x46d2d4=_0xd6c64b(),_0x554d0b=_0xd6c64b();return a62_0x2aba56[_0x1e14fc(0xcc)](_0x554d0b,_0x46d2d4);case _0x1e14fc(0x116):_0x46d2d4=_0xd6c64b(),_0x554d0b=_0xd6c64b();return a62_0x2aba56['within'](_0x554d0b,_0x46d2d4);case _0x1e14fc(0x11d):_0x46d2d4=_0xd6c64b(),_0x554d0b=_0xd6c64b();return a62_0x2aba56[_0x1e14fc(0xf4)](_0x554d0b,_0x46d2d4);}break;case'GEOMETRY':return new WKT()[_0x1e14fc(0x12e)](_0x117283[_0x1e14fc(0x11c)],{});default:return _0x117283['text'];}}let _0x2568ee=_0xd6c64b();if(_0x3dc1d8[_0x152b42(0xd4)]>0x0){let _0xc3fc34='剩余的节点无法解析:\x20\x0a';for(let _0x1fb502=_0x3dc1d8['length']-0x1;_0x1fb502>=0x0;_0x1fb502--){_0xc3fc34+=_0x3dc1d8[_0x1fb502][_0x152b42(0x114)]+':\x20'+_0x3dc1d8[_0x1fb502]['text']+'\x0a';}throw new Error(_0xc3fc34);}return _0x2568ee;}['read'](_0x951877){const _0x1f7e36=a62_0x57cbb3;try{return this[_0x1f7e36(0xea)](this['tokenize'](_0x951877));}catch(_0x10a345){console['warn'](_0x1f7e36(0x100)+_0x951877),console['warn'](_0x10a345);}}[a62_0x57cbb3(0xfa)](_0x26ef4d){const _0x1c35c3=a62_0x57cbb3;switch(_0x26ef4d[_0x1c35c3(0x10c)]){case'BBOX':return _0x1c35c3(0x12b)+_0x26ef4d[_0x1c35c3(0xec)]+','+_0x26ef4d[_0x1c35c3(0x11b)][_0x1c35c3(0x124)](',')+','+_0x26ef4d['srsName']+')';case _0x1c35c3(0xef):return _0x1c35c3(0xf5)+_0x26ef4d[_0x1c35c3(0xec)]+',\x20'+this[_0x1c35c3(0x12e)](_0x26ef4d['geometry'])+')';case'Intersects':return _0x1c35c3(0xe5)+_0x26ef4d['geometryName']+',\x20'+this[_0x1c35c3(0x12e)](_0x26ef4d[_0x1c35c3(0xd1)])+')';case _0x1c35c3(0x123):return _0x1c35c3(0xf6)+_0x26ef4d[_0x1c35c3(0xec)]+',\x20'+this[_0x1c35c3(0x12e)](_0x26ef4d[_0x1c35c3(0xd1)])+')';case _0x1c35c3(0xfc):return _0x1c35c3(0x120)+this[_0x1c35c3(0xfa)](_0x26ef4d['condition'])+')';case'And':case'Or':{let _0x440af4='(',_0x55add6=!![];for(let _0x17038e=0x0;_0x17038e<_0x26ef4d[_0x1c35c3(0x105)][_0x1c35c3(0xd4)];_0x17038e++){_0x55add6?_0x55add6=![]:_0x440af4+=')\x20'+_0x26ef4d[_0x1c35c3(0x10c)][_0x1c35c3(0x11a)]()+'\x20(',_0x440af4+=this[_0x1c35c3(0xfa)](_0x26ef4d[_0x1c35c3(0x105)][_0x17038e]);}return _0x440af4+')';}case _0x1c35c3(0xeb):return _0x26ef4d[_0x1c35c3(0x113)]+_0x1c35c3(0xde)+this['write'](_0x26ef4d['lowerBoundary'])+_0x1c35c3(0x125)+this[_0x1c35c3(0xfa)](_0x26ef4d[_0x1c35c3(0x109)]);case _0x1c35c3(0x103):case _0x1c35c3(0x12a):case _0x1c35c3(0xe0):case'PropertyIsLessThanOrEqualTo':case _0x1c35c3(0xfd):case _0x1c35c3(0xf9):case _0x1c35c3(0xee):case _0x1c35c3(0xcf):{return _0x26ef4d[_0x1c35c3(0xdc)]!==null?_0x26ef4d['propertyName']+'\x20'+this[_0x1c35c3(0x10a)][_0x26ef4d[_0x1c35c3(0x10c)]]+'\x20'+this[_0x1c35c3(0xfa)](_0x26ef4d[_0x1c35c3(0xdc)]):_0x26ef4d[_0x1c35c3(0x115)]+'\x20'+this[_0x1c35c3(0x10a)][_0x26ef4d[_0x1c35c3(0x10c)]];}case undefined:if(typeof _0x26ef4d===_0x1c35c3(0xe2))return'\x27'+_0x26ef4d[_0x1c35c3(0xed)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x26ef4d==='number')return String(_0x26ef4d);}break;default:throw new Error(_0x1c35c3(0xcb)+_0x26ef4d[_0x1c35c3(0xc8)]+'\x20'+_0x26ef4d);}}[a62_0x57cbb3(0x12e)](_0x48b9c7){const _0x8d0c81=a62_0x57cbb3;if(_0x48b9c7 instanceof a62_0x2c5953)return new WKT()[_0x8d0c81(0x112)](_0x48b9c7);}}
|
|
1
|
+
const a62_0x5664ec=a62_0x164d;function a62_0x164d(_0x491710,_0x39d202){const _0x137470=a62_0x1374();return a62_0x164d=function(_0x164ded,_0x13b15f){_0x164ded=_0x164ded-0x120;let _0xaa4b02=_0x137470[_0x164ded];return _0xaa4b02;},a62_0x164d(_0x491710,_0x39d202);}(function(_0x349561,_0x278da3){const _0x24b9df=a62_0x164d,_0x22d247=_0x349561();while(!![]){try{const _0x4144b8=parseInt(_0x24b9df(0x16a))/0x1+parseInt(_0x24b9df(0x124))/0x2*(parseInt(_0x24b9df(0x185))/0x3)+parseInt(_0x24b9df(0x15a))/0x4+parseInt(_0x24b9df(0x188))/0x5+parseInt(_0x24b9df(0x14d))/0x6+parseInt(_0x24b9df(0x159))/0x7+-parseInt(_0x24b9df(0x17a))/0x8;if(_0x4144b8===_0x278da3)break;else _0x22d247['push'](_0x22d247['shift']());}catch(_0x46cd55){_0x22d247['push'](_0x22d247['shift']());}}}(a62_0x1374,0x58fbb));import*as a62_0x5a5530 from'ol/format/filter';import{WKT}from'ol/format';function a62_0x1374(){const _0xcac803=['IS\x20NULL','tagName_','LOGICAL','INTERSECTS','IS_NULL','CQL解析失败:','WITHIN(','LPAREN','WITHIN','CONTAINS','PropertyIsLike','toUpperCase','PropertyIsGreaterThan','patterns','indexOf','No\x20follows\x20list\x20for\x20','warn','propertyName','and','match','geometryName','NOT\x20(','nextToken','charAt','PROPERTY','property','replace','text','conditions','equalTo','parseInToOr','inPatterns','BETWEEN','],\x20expected\x20one\x20of:\x20','exec','GEOMETRY','follows','END','3601950uEmapQ','not','PropertyIsNotEqualTo','readGeometry','operators','between','Within','lowerBoundary','RPAREN','\x20AND\x20','replaceAll','logicals','1212680tYorja','161788auNHQj','pop','geometry','BBOX(','type','expression','substring','precedence','PropertyIsGreaterThanOrEqualTo','ERROR:\x20In\x20parsing:\x20[','condition','operatorReverse','length','string','Can\x27t\x20encode:\x20','CLASS_NAME','418575NfNsQc','isNull','number','upperBoundary','PropertyIsLessThanOrEqualTo','write','剩余的节点无法解析:\x20\x0a','PropertyIsLessThan','PropertyIsNull','NOT','toLowerCase','shift','lastIndexOf','COMMA','\x20or\x20','bbox','11667384mKqTsT','COMPARISON','And','Intersects','greaterThan','push','Not','tokenize','read','tryToken','VALUE','3786FwnHXo','index','buildAst','23715rUsLlr','writeGeometry','INTERSECTS(','PropertyIsBetween','CONTAINS(','notEqualTo','LIKE','928NKyowd','Contains','SPATIAL'];a62_0x1374=function(){return _0xcac803;};return a62_0x1374();}import a62_0x907c43 from'ol/geom/Geometry';export default class CQL{constructor(){const _0x144bb7=a62_0x164d;this[_0x144bb7(0x146)]=/ (IN) /i,this['tokens']=[_0x144bb7(0x13f),_0x144bb7(0x17b),_0x144bb7(0x184),_0x144bb7(0x129)],this[_0x144bb7(0x134)]={'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(_0x1e12f8){const _0x562198=_0x144bb7;let _0x50a333=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x562198(0x149)](_0x1e12f8);if(_0x50a333){let _0x272450=_0x1e12f8[_0x562198(0x166)],_0x1488a3=_0x1e12f8[_0x562198(0x135)]('(',_0x50a333[0x0][_0x562198(0x166)]);if(_0x1488a3>-0x1){let _0x4e3159=0x1;while(_0x1488a3<_0x272450&&_0x4e3159>0x0){_0x1488a3++;switch(_0x1e12f8[_0x562198(0x13e)](_0x1488a3)){case'(':_0x4e3159++;break;case')':_0x4e3159--;break;default:}}}return[_0x1e12f8[_0x562198(0x160)](0x0,_0x1488a3+0x1)];}},'END':/^$/},this[_0x144bb7(0x14b)]={'LPAREN':[_0x144bb7(0x14a),_0x144bb7(0x126),_0x144bb7(0x13f),_0x144bb7(0x184),_0x144bb7(0x12e)],'RPAREN':[_0x144bb7(0x173),'LOGICAL',_0x144bb7(0x14c),_0x144bb7(0x155)],'PROPERTY':[_0x144bb7(0x17b),'BETWEEN',_0x144bb7(0x177),'IS_NULL'],'BETWEEN':[_0x144bb7(0x184)],'IS_NULL':['END'],'COMPARISON':['VALUE'],'COMMA':[_0x144bb7(0x14a),_0x144bb7(0x184),'PROPERTY'],'VALUE':['LOGICAL',_0x144bb7(0x177),_0x144bb7(0x155),_0x144bb7(0x14c)],'SPATIAL':[_0x144bb7(0x12e)],'LOGICAL':[_0x144bb7(0x173),_0x144bb7(0x184),_0x144bb7(0x126),_0x144bb7(0x13f),_0x144bb7(0x12e)],'NOT':[_0x144bb7(0x13f),_0x144bb7(0x12e)],'GEOMETRY':['COMMA','RPAREN']},this[_0x144bb7(0x151)]={'=':a62_0x5a5530[_0x144bb7(0x144)],'<>':a62_0x5a5530[_0x144bb7(0x122)],'<':a62_0x5a5530['lessThan'],'<=':a62_0x5a5530['lessThanOrEqualTo'],'>':a62_0x5a5530[_0x144bb7(0x17e)],'>=':a62_0x5a5530['greaterThanOrEqualTo'],'LIKE':a62_0x5a5530['like'],'BETWEEN':a62_0x5a5530['between'],'IS\x20NULL':a62_0x5a5530[_0x144bb7(0x16b)]},this['operatorReverse']={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x144bb7(0x123),'PropertyIsNull':_0x144bb7(0x127),'PropertyIsBetween':_0x144bb7(0x147)},this[_0x144bb7(0x158)]={'AND':a62_0x5a5530[_0x144bb7(0x139)],'OR':a62_0x5a5530['or']},this['precedence']={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a62_0x5664ec(0x183)](_0xac7109,_0x599a9b){const _0x16cb56=a62_0x5664ec;return _0x599a9b instanceof RegExp?_0x599a9b[_0x16cb56(0x149)](_0xac7109):_0x599a9b(_0xac7109);}['nextToken'](_0x9d7ef0,_0x5b7a69){const _0x197a1f=a62_0x5664ec;let _0x38850f,_0x15cd2e,_0x1f0047=_0x5b7a69[_0x197a1f(0x166)];for(_0x38850f=0x0;_0x38850f<_0x1f0047;_0x38850f++){_0x15cd2e=_0x5b7a69[_0x38850f];let _0x20f8e8=this[_0x197a1f(0x134)][_0x15cd2e],_0x35d362=this['tryToken'](_0x9d7ef0,_0x20f8e8);if(_0x35d362){let _0x352edb=_0x35d362[0x0],_0x16fd8e=_0x9d7ef0[_0x197a1f(0x160)](_0x352edb[_0x197a1f(0x166)])['replace'](/^\s*/,'');return{'type':_0x15cd2e,'text':_0x352edb,'remainder':_0x16fd8e};}}let _0x3c3a2b=_0x197a1f(0x163)+_0x9d7ef0+_0x197a1f(0x148);for(_0x38850f=0x0;_0x38850f<_0x1f0047;_0x38850f++){_0x15cd2e=_0x5b7a69[_0x38850f],_0x3c3a2b+='\x0a\x20\x20\x20\x20'+_0x15cd2e+':\x20'+this['patterns'][_0x15cd2e];}throw new Error(_0x3c3a2b);}[a62_0x5664ec(0x181)](_0x594677){const _0x94077a=a62_0x5664ec;_0x594677=_0x594677[_0x94077a(0x157)]('[','')[_0x94077a(0x157)](']','');let _0x48b138=this['tryToken'](_0x594677,this['inPatterns']);_0x48b138&&(_0x594677=this[_0x94077a(0x145)](_0x594677,_0x48b138));let _0x1f3ac9=[],_0x101682,_0x3ac4dd=[_0x94077a(0x173),_0x94077a(0x14a),_0x94077a(0x126),_0x94077a(0x13f),_0x94077a(0x12e)];do{_0x101682=this[_0x94077a(0x13d)](_0x594677,_0x3ac4dd),_0x594677=_0x101682['remainder'],_0x3ac4dd=this[_0x94077a(0x14b)][_0x101682['type']];if(_0x101682[_0x94077a(0x15e)]!==_0x94077a(0x14c)&&!_0x3ac4dd)throw new Error(_0x94077a(0x136)+_0x101682[_0x94077a(0x15e)]);_0x1f3ac9[_0x94077a(0x17f)](_0x101682);}while(_0x101682[_0x94077a(0x15e)]!=='END');return _0x1f3ac9;}['parseInToOr'](_0x29166f,_0x494839){const _0x299c24=a62_0x5664ec;let _0x44126d=this[_0x299c24(0x183)](_0x29166f,/\((.+?)\)/g);if(_0x44126d){let _0x1b3ca5=_0x29166f[_0x299c24(0x160)](0x0,_0x494839[_0x299c24(0x186)]),_0x162848=_0x44126d[0x1],_0x484b14=_0x162848[_0x299c24(0x157)]('\x20','')['split'](','),_0x173039='',_0x51031b='';if(_0x1b3ca5[_0x299c24(0x135)]('\x20')>-0x1){let _0x284ca7=_0x1b3ca5[_0x299c24(0x176)]('\x20');_0x51031b=_0x1b3ca5['substring'](0x0,_0x284ca7+0x1),_0x173039=_0x1b3ca5['substring'](_0x284ca7+0x1,_0x1b3ca5[_0x299c24(0x166)]);}else _0x173039=_0x1b3ca5;let _0x41acf3=_0x51031b;for(let _0x59a614=0x0;_0x59a614<_0x484b14['length'];_0x59a614++){let _0x2c3b90=_0x484b14[_0x59a614];_0x41acf3+=_0x173039+'='+_0x2c3b90,_0x59a614<_0x484b14['length']-0x1&&(_0x41acf3+=_0x299c24(0x178));}return _0x41acf3;}return _0x29166f;}['buildAst'](_0x5a8801){const _0x16264d=a62_0x5664ec;let _0x4d2ee0=this,_0x279c27=[],_0x2e686d=[];while(_0x5a8801['length']){let _0x287d60=_0x5a8801[_0x16264d(0x175)]();switch(_0x287d60[_0x16264d(0x15e)]){case _0x16264d(0x13f):case _0x16264d(0x14a):case _0x16264d(0x184):_0x2e686d[_0x16264d(0x17f)](_0x287d60);break;case _0x16264d(0x17b):case _0x16264d(0x147):case'IS_NULL':case _0x16264d(0x129):{let _0x4eee8e=this[_0x16264d(0x161)][_0x287d60[_0x16264d(0x15e)]];while(_0x279c27[_0x16264d(0x166)]>0x0&&this['precedence'][_0x279c27[_0x279c27[_0x16264d(0x166)]-0x1][_0x16264d(0x15e)]]<=_0x4eee8e){_0x2e686d[_0x16264d(0x17f)](_0x279c27['pop']());}_0x279c27['push'](_0x287d60);break;}case _0x16264d(0x126):case'NOT':case _0x16264d(0x12e):_0x279c27[_0x16264d(0x17f)](_0x287d60);break;case _0x16264d(0x155):while(_0x279c27[_0x16264d(0x166)]>0x0&&_0x279c27[_0x279c27[_0x16264d(0x166)]-0x1][_0x16264d(0x15e)]!==_0x16264d(0x12e)){_0x2e686d[_0x16264d(0x17f)](_0x279c27[_0x16264d(0x15b)]());}_0x279c27['pop']();_0x279c27[_0x16264d(0x166)]>0x0&&(_0x279c27[_0x279c27['length']-0x1][_0x16264d(0x15e)]===_0x16264d(0x126)||_0x279c27[_0x279c27[_0x16264d(0x166)]-0x1][_0x16264d(0x15e)]===_0x16264d(0x173))&&_0x2e686d['push'](_0x279c27[_0x16264d(0x15b)]());break;case _0x16264d(0x177):case _0x16264d(0x14c):break;default:throw new Error('Unknown\x20token\x20type\x20'+_0x287d60[_0x16264d(0x15e)]);}}while(_0x279c27[_0x16264d(0x166)]>0x0){_0x2e686d[_0x16264d(0x17f)](_0x279c27[_0x16264d(0x15b)]());}function _0x46a824(){const _0x508f4e=_0x16264d;let _0x2d3e78,_0x1ae8ca,_0x298f0f=_0x2e686d[_0x508f4e(0x15b)]();switch(_0x298f0f[_0x508f4e(0x15e)]){case _0x508f4e(0x129):{let _0x17282f=_0x46a824(),_0x50f446=_0x46a824();return new _0x4d2ee0['logicals'][(_0x298f0f[_0x508f4e(0x142)][_0x508f4e(0x132)]())](_0x50f446,_0x17282f);}case _0x508f4e(0x173):{let _0x533bea=_0x46a824();return a62_0x5a5530[_0x508f4e(0x14e)](_0x533bea);}case _0x508f4e(0x147):{let _0x2aa71b,_0x558566;return _0x2e686d[_0x508f4e(0x15b)](),_0x558566=_0x46a824(),_0x2aa71b=_0x46a824(),_0x1ae8ca=_0x46a824(),a62_0x5a5530[_0x508f4e(0x152)](_0x1ae8ca,_0x2aa71b,_0x558566);}case _0x508f4e(0x17b):{return _0x2d3e78=_0x46a824(),_0x1ae8ca=_0x46a824(),new _0x4d2ee0[(_0x508f4e(0x151))][(_0x298f0f[_0x508f4e(0x142)][_0x508f4e(0x132)]())](_0x1ae8ca,_0x2d3e78);}case _0x508f4e(0x12b):_0x1ae8ca=_0x46a824();return new _0x4d2ee0[(_0x508f4e(0x151))][(_0x298f0f[_0x508f4e(0x142)][_0x508f4e(0x132)]())](_0x1ae8ca);case'VALUE':{let _0x4aad51=_0x298f0f[_0x508f4e(0x142)][_0x508f4e(0x13a)](/^'(.*)'$/);return _0x4aad51?_0x4aad51[0x1]['replace'](/''/g,'\x27'):Number(_0x298f0f[_0x508f4e(0x142)]);}case _0x508f4e(0x126):switch(_0x298f0f[_0x508f4e(0x142)][_0x508f4e(0x132)]()){case'BBOX':{let _0x691a9d=_0x46a824(),_0x32cee6=_0x46a824(),_0x5c576f=_0x46a824(),_0x557b6c=_0x46a824(),_0x12407f=_0x46a824();return a62_0x5a5530[_0x508f4e(0x179)](_0x12407f,[_0x557b6c,_0x5c576f,_0x32cee6,_0x691a9d]);}case _0x508f4e(0x12a):_0x2d3e78=_0x46a824(),_0x1ae8ca=_0x46a824();return a62_0x5a5530['intersects'](_0x1ae8ca,_0x2d3e78);case _0x508f4e(0x12f):_0x2d3e78=_0x46a824(),_0x1ae8ca=_0x46a824();return a62_0x5a5530['within'](_0x1ae8ca,_0x2d3e78);case _0x508f4e(0x130):_0x2d3e78=_0x46a824(),_0x1ae8ca=_0x46a824();return a62_0x5a5530['contains'](_0x1ae8ca,_0x2d3e78);}break;case _0x508f4e(0x14a):return new WKT()[_0x508f4e(0x150)](_0x298f0f[_0x508f4e(0x142)],{});default:return _0x298f0f[_0x508f4e(0x142)];}}let _0x5a3049=_0x46a824();if(_0x2e686d[_0x16264d(0x166)]>0x0){let _0x3f8acd=_0x16264d(0x170);for(let _0x316334=_0x2e686d[_0x16264d(0x166)]-0x1;_0x316334>=0x0;_0x316334--){_0x3f8acd+=_0x2e686d[_0x316334]['type']+':\x20'+_0x2e686d[_0x316334]['text']+'\x0a';}throw new Error(_0x3f8acd);}return _0x5a3049;}[a62_0x5664ec(0x182)](_0x22d895){const _0x4b05aa=a62_0x5664ec;try{return this[_0x4b05aa(0x187)](this[_0x4b05aa(0x181)](_0x22d895));}catch(_0x217656){console[_0x4b05aa(0x137)](_0x4b05aa(0x12c)+_0x22d895),console[_0x4b05aa(0x137)](_0x217656);}}[a62_0x5664ec(0x16f)](_0x217ac5){const _0x177286=a62_0x5664ec;switch(_0x217ac5[_0x177286(0x128)]){case'BBOX':return _0x177286(0x15d)+_0x217ac5[_0x177286(0x13b)]+','+_0x217ac5['extent']['join'](',')+','+_0x217ac5['srsName']+')';case _0x177286(0x153):return _0x177286(0x12d)+_0x217ac5[_0x177286(0x13b)]+',\x20'+this[_0x177286(0x150)](_0x217ac5[_0x177286(0x15c)])+')';case _0x177286(0x17d):return _0x177286(0x18a)+_0x217ac5['geometryName']+',\x20'+this[_0x177286(0x150)](_0x217ac5[_0x177286(0x15c)])+')';case _0x177286(0x125):return _0x177286(0x121)+_0x217ac5[_0x177286(0x13b)]+',\x20'+this[_0x177286(0x150)](_0x217ac5[_0x177286(0x15c)])+')';case _0x177286(0x180):return _0x177286(0x13c)+this[_0x177286(0x16f)](_0x217ac5[_0x177286(0x164)])+')';case _0x177286(0x17c):case'Or':{let _0x2722fb='(',_0x314ffe=!![];for(let _0x36c9cd=0x0;_0x36c9cd<_0x217ac5[_0x177286(0x143)]['length'];_0x36c9cd++){_0x314ffe?_0x314ffe=![]:_0x2722fb+=')\x20'+_0x217ac5[_0x177286(0x128)][_0x177286(0x174)]()+'\x20(',_0x2722fb+=this['write'](_0x217ac5[_0x177286(0x143)][_0x36c9cd]);}return _0x2722fb+')';}case _0x177286(0x120):return _0x217ac5[_0x177286(0x140)]+'\x20BETWEEN\x20'+this[_0x177286(0x16f)](_0x217ac5[_0x177286(0x154)])+_0x177286(0x156)+this[_0x177286(0x16f)](_0x217ac5[_0x177286(0x16d)]);case'PropertyIsEqualTo':case _0x177286(0x14f):case _0x177286(0x171):case _0x177286(0x16e):case _0x177286(0x133):case _0x177286(0x162):case _0x177286(0x131):case _0x177286(0x172):{return _0x217ac5[_0x177286(0x15f)]!==null?_0x217ac5['propertyName']+'\x20'+this[_0x177286(0x165)][_0x217ac5[_0x177286(0x128)]]+'\x20'+this[_0x177286(0x16f)](_0x217ac5[_0x177286(0x15f)]):_0x217ac5[_0x177286(0x138)]+'\x20'+this[_0x177286(0x165)][_0x217ac5['tagName_']];}case undefined:if(typeof _0x217ac5===_0x177286(0x167))return'\x27'+_0x217ac5[_0x177286(0x141)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x217ac5===_0x177286(0x16c))return String(_0x217ac5);}break;default:throw new Error(_0x177286(0x168)+_0x217ac5[_0x177286(0x169)]+'\x20'+_0x217ac5);}}['readGeometry'](_0x342ea9){const _0x4a22fa=a62_0x5664ec;if(_0x342ea9 instanceof a62_0x907c43)return new WKT()[_0x4a22fa(0x189)](_0x342ea9);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f0ae2,_0x274cfe){const _0x3ff18c=a63_0x3d04,_0x264250=_0x5f0ae2();while(!![]){try{const _0x176114=parseInt(_0x3ff18c(0x110))/0x1+-parseInt(_0x3ff18c(0xf8))/0x2+parseInt(_0x3ff18c(0x10a))/0x3+parseInt(_0x3ff18c(0xf3))/0x4+parseInt(_0x3ff18c(0x101))/0x5*(-parseInt(_0x3ff18c(0xf7))/0x6)+-parseInt(_0x3ff18c(0x107))/0x7*(parseInt(_0x3ff18c(0x103))/0x8)+parseInt(_0x3ff18c(0x109))/0x9;if(_0x176114===_0x274cfe)break;else _0x264250['push'](_0x264250['shift']());}catch(_0x11b9c2){_0x264250['push'](_0x264250['shift']());}}}(a63_0x2711,0xd8d82));function a63_0x3d04(_0x3a42a1,_0x1534b4){const _0x2711e9=a63_0x2711();return a63_0x3d04=function(_0x3d04d2,_0x47ab1b){_0x3d04d2=_0x3d04d2-0xef;let _0x5e5c3d=_0x2711e9[_0x3d04d2];return _0x5e5c3d;},a63_0x3d04(_0x3a42a1,_0x1534b4);}import a63_0x4baa54 from'./CQL';function a63_0x2711(){const _0x409dee=['44952Pbtblf','PropertyIsNotEqualTo','push','PropertyIsNull','1512ISlCUs','PropertyIsEqualTo','15263910HgyXfH','3566433nomfXD','tagName_','lowerBoundary','And','read','condition','661642YfmCkD','conditions','PropertyIsLessThan','length','upperBoundary','1280224uQrNwD','propertyName','template','indexOf','368922VcvtXZ','1930540EZIPHB','expression','PropertyIsLessThanOrEqualTo','Not','property','PropertyIsLike','PropertyIsBetween','idMap','join','65kqxEiV','PropertyIsGreaterThan'];a63_0x2711=function(){return _0x409dee;};return a63_0x2711();}export function isMatchCql(_0x2a427e,_0x5b6768){const _0xe4a2aa=a63_0x3d04;let _0x2de127=new a63_0x4baa54()[_0xe4a2aa(0x10e)](_0x5b6768);return isMatchFilter(_0x2a427e,_0x2de127);}export function isMatchFilter(_0x40ceb3,_0x1ab1a9){const _0x4c0814=a63_0x3d04;switch(_0x1ab1a9[_0x4c0814(0x10b)]){case'Not':return!isMatchFilter(_0x40ceb3,_0x1ab1a9['condition']);case'And':{let _0x344cb2=!![];for(let _0x5796f6=0x0;_0x5796f6<_0x1ab1a9[_0x4c0814(0xef)][_0x4c0814(0xf1)];_0x5796f6++){_0x344cb2=_0x344cb2&&isMatchFilter(_0x40ceb3,_0x1ab1a9[_0x4c0814(0xef)][_0x5796f6]);}return _0x344cb2;}case'Or':{let _0x59b37f=![];for(let _0x1e92ae=0x0;_0x1e92ae<_0x1ab1a9[_0x4c0814(0xef)][_0x4c0814(0xf1)];_0x1e92ae++){_0x59b37f=_0x59b37f||isMatchFilter(_0x40ceb3,_0x1ab1a9[_0x4c0814(0xef)][_0x1e92ae]);}return _0x59b37f;}case _0x4c0814(0xfe):return _0x40ceb3[_0x1ab1a9[_0x4c0814(0xfc)]]>_0x1ab1a9[_0x4c0814(0x10c)]&&_0x40ceb3[_0x1ab1a9[_0x4c0814(0xfc)]]<_0x1ab1a9[_0x4c0814(0xf2)];case _0x4c0814(0x108):return _0x40ceb3[_0x1ab1a9[_0x4c0814(0xf4)]]===_0x1ab1a9['expression'];case'PropertyIsNotEqualTo':return _0x40ceb3[_0x1ab1a9['propertyName']]!==_0x1ab1a9[_0x4c0814(0xf9)];case _0x4c0814(0xf0):return _0x40ceb3[_0x1ab1a9['propertyName']]<_0x1ab1a9['expression'];case _0x4c0814(0xfa):return _0x40ceb3[_0x1ab1a9[_0x4c0814(0xf4)]]<=_0x1ab1a9[_0x4c0814(0xf9)];case _0x4c0814(0x102):return _0x40ceb3[_0x1ab1a9[_0x4c0814(0xf4)]]>_0x1ab1a9[_0x4c0814(0xf9)];case'PropertyIsGreaterThanOrEqualTo':return _0x40ceb3[_0x1ab1a9[_0x4c0814(0xf4)]]>=_0x1ab1a9[_0x4c0814(0xf9)];case _0x4c0814(0xfd):return _0x40ceb3[_0x1ab1a9[_0x4c0814(0xf4)]][_0x4c0814(0xf6)](_0x1ab1a9[_0x4c0814(0xf9)])>-0x1;case _0x4c0814(0x106):{return!_0x40ceb3[_0x1ab1a9[_0x4c0814(0xf4)]];}default:return![];}}export function isEqualFilter(_0x44ccbe,_0xc1e66b){const _0xebe14b=a63_0x3d04;switch(_0x44ccbe['tagName_']){case _0xebe14b(0xfb):return _0x44ccbe['tagName_']===_0xc1e66b['tagName_']&&isEqualFilter(_0x44ccbe[_0xebe14b(0x10f)],_0xc1e66b['condition']);case'Or':case _0xebe14b(0x10d):{let _0x4b97f7=_0x44ccbe[_0xebe14b(0x10b)]===_0xc1e66b[_0xebe14b(0x10b)]&&_0x44ccbe['conditions'][_0xebe14b(0xf1)]===_0xc1e66b[_0xebe14b(0xef)][_0xebe14b(0xf1)];for(let _0x4736b2=0x0;_0x4736b2<_0x44ccbe[_0xebe14b(0xef)][_0xebe14b(0xf1)];_0x4736b2++){_0x4b97f7=_0x4b97f7&&isEqualFilter(_0x44ccbe[_0xebe14b(0xef)][_0x4736b2],_0xc1e66b[_0xebe14b(0xef)][_0x4736b2]);}return _0x4b97f7;}case'PropertyIsBetween':return _0x44ccbe[_0xebe14b(0x10b)]===_0xc1e66b[_0xebe14b(0x10b)]&&_0x44ccbe[_0xebe14b(0xfc)]===_0xc1e66b[_0xebe14b(0xfc)];case _0xebe14b(0x108):case _0xebe14b(0x104):case _0xebe14b(0xf0):case _0xebe14b(0xfa):case _0xebe14b(0x102):case'PropertyIsGreaterThanOrEqualTo':case _0xebe14b(0xfd):case _0xebe14b(0x106):return _0x44ccbe['tagName_']===_0xc1e66b[_0xebe14b(0x10b)]&&_0x44ccbe[_0xebe14b(0xf4)]===_0xc1e66b[_0xebe14b(0xf4)];default:return![];}}export function indexOfFilter(_0x396f4b,_0x4e644e){const _0xe09250=a63_0x3d04;let _0x3af41f=-0x1;if((_0x396f4b===null||_0x396f4b===void 0x0?void 0x0:_0x396f4b[_0xe09250(0xf1)])>0x0)for(let _0x9d5db2 in _0x396f4b){if(isEqualFilter(_0x396f4b[_0x9d5db2][_0xe09250(0xf5)],_0x4e644e))return _0x9d5db2;}return _0x3af41f;}export function getIndexByTemplate(_0x3b3d13,_0x1bc3cd){const _0x32b40f=a63_0x3d04;let _0x52e13b=_0x1bc3cd[_0x32b40f(0xf5)];if(_0x1bc3cd['idMapLength']>0x0){let _0xa6f4f5=getKeyByTemplate(_0x3b3d13,_0x52e13b);if(_0xa6f4f5 instanceof Array)for(let _0x2054a9 in _0xa6f4f5){let _0x28a9be=_0x1bc3cd[_0x32b40f(0xff)][_0xa6f4f5[_0x2054a9]+'_'+_0x2054a9];if(_0x28a9be)return _0x28a9be;}else return _0x1bc3cd[_0x32b40f(0xff)][_0xa6f4f5];}return null;}export function getKeyByTemplate(_0x43afcf,_0x887ee8){const _0x5278df=a63_0x3d04;switch(_0x887ee8['tagName_']){case _0x5278df(0x108):{return _0x43afcf[_0x887ee8[_0x5278df(0xf4)]];}case'And':{let _0x174d2c=[];for(let _0x5b7a3f=0x0;_0x5b7a3f<_0x887ee8['conditions'][_0x5278df(0xf1)];_0x5b7a3f++){let _0x1f10e0=getKeyByTemplate(_0x43afcf,_0x887ee8[_0x5278df(0xef)][_0x5b7a3f]);_0x1f10e0&&_0x174d2c[_0x5278df(0x105)](_0x1f10e0);}return _0x174d2c[_0x5278df(0x100)](',');}case'Or':{let _0xe346f3=[];for(let _0x34e124=0x0;_0x34e124<_0x887ee8[_0x5278df(0xef)][_0x5278df(0xf1)];_0x34e124++){let _0x324d57=getKeyByTemplate(_0x43afcf,_0x887ee8[_0x5278df(0xef)][_0x34e124]);_0x324d57&&_0xe346f3['push'](_0x324d57);}return _0xe346f3;}default:return null;}}export function createKeyFromFilter(_0x432652){const _0x5bab70=a63_0x3d04;switch(_0x432652['tagName_']){case _0x5bab70(0x108):return _0x432652[_0x5bab70(0xf9)];case _0x5bab70(0x10d):{let _0x41b5aa=[];for(let _0x571e9c=0x0;_0x571e9c<_0x432652[_0x5bab70(0xef)]['length'];_0x571e9c++){let _0x480ee5=createKeyFromFilter(_0x432652[_0x5bab70(0xef)][_0x571e9c]);if(_0x480ee5)_0x41b5aa['push'](_0x480ee5);else return null;}return _0x41b5aa[_0x5bab70(0x100)](',');}case'Or':{let _0xccc474=[];for(let _0x5dba90=0x0;_0x5dba90<_0x432652[_0x5bab70(0xef)][_0x5bab70(0xf1)];_0x5dba90++){let _0x3ae1da=createKeyFromFilter(_0x432652[_0x5bab70(0xef)][_0x5dba90]);_0x3ae1da&&_0xccc474['push'](_0x3ae1da);}return _0xccc474;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x46216a=a66_0x1b40;(function(_0x4700a2,_0x143eb0){const _0x1e50fe=a66_0x1b40,_0x4a8c9c=_0x4700a2();while(!![]){try{const _0x472b84=-parseInt(_0x1e50fe(0x75))/0x1+-parseInt(_0x1e50fe(0x74))/0x2*(-parseInt(_0x1e50fe(0x6d))/0x3)+parseInt(_0x1e50fe(0x69))/0x4+parseInt(_0x1e50fe(0x66))/0x5*(-parseInt(_0x1e50fe(0x6c))/0x6)+parseInt(_0x1e50fe(0x70))/0x7+parseInt(_0x1e50fe(0x67))/0x8+-parseInt(_0x1e50fe(0x72))/0x9*(parseInt(_0x1e50fe(0x68))/0xa);if(_0x472b84===_0x143eb0)break;else _0x4a8c9c['push'](_0x4a8c9c['shift']());}catch(_0x629ab9){_0x4a8c9c['push'](_0x4a8c9c['shift']());}}}(a66_0x526d,0x404bf));import{asString}from'ol/color';class ImageCache{constructor(){const _0x27c033=a66_0x1b40;this[_0x27c033(0x71)]={},this[_0x27c033(0x6f)]=0x0;}['clear'](){const _0x133fda=a66_0x1b40;this['cache_']={},this[_0x133fda(0x6f)]=0x0;}[a66_0x46216a(0x6a)](_0x1669a3){const _0x4db54e=a66_0x46216a,_0x956915=getKey(_0x1669a3[_0x4db54e(0x76)],_0x1669a3['markerSize'],_0x1669a3[_0x4db54e(0x6e)],_0x1669a3[_0x4db54e(0x73)]);return _0x956915 in this['cache_']?this[_0x4db54e(0x71)][_0x956915]:null;}['set'](_0x1ff73d,_0x1f4c3e){const _0xdb0853=a66_0x46216a,_0x477677=getKey(_0x1ff73d[_0xdb0853(0x76)],_0x1ff73d['markerSize'],_0x1ff73d[_0xdb0853(0x6e)],_0x1ff73d[_0xdb0853(0x73)]);this['cache_'][_0x477677]=_0x1f4c3e,++this[_0xdb0853(0x6f)];}}function getKey(_0x4b2b8d,_0x2bab37,_0xac9d7b,_0x5f3623){const _0x263875=a66_0x46216a,_0x268401=_0xac9d7b?asString(_0xac9d7b):_0x263875(0x6b);return _0x4b2b8d+':'+_0x5f3623+':'+_0x268401+':'+_0x2bab37;}export default ImageCache;function a66_0x1b40(_0x568cf5,_0x1880a9){const _0x526dfc=a66_0x526d();return a66_0x1b40=function(_0x1b40bf,_0x253596){_0x1b40bf=_0x1b40bf-0x66;let _0x398225=_0x526dfc[_0x1b40bf];return _0x398225;},a66_0x1b40(_0x568cf5,_0x1880a9);}function a66_0x526d(){const _0x566855=['image','2qJakhy','499340MckSuE','markerLabel','905elsKog','3804144vfEbCh','2522230BKDcQc','1675444orGczc','get','null','2286Nvfmre','1244793JycSFF','markerColor','cacheSize_','187572UKnWZt','cache_','18KnFzBL'];a66_0x526d=function(){return _0x566855;};return a66_0x526d();}export const shared=new ImageCache();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x1b6d1b=a67_0x1db4;(function(_0x9ec5b7,_0x4f997a){const _0x6487b6=a67_0x1db4,_0x12a3f5=_0x9ec5b7();while(!![]){try{const _0x1c7bad=parseInt(_0x6487b6(0x181))/0x1*(parseInt(_0x6487b6(0x17b))/0x2)+-parseInt(_0x6487b6(0x198))/0x3*(-parseInt(_0x6487b6(0x17f))/0x4)+parseInt(_0x6487b6(0x190))/0x5*(-parseInt(_0x6487b6(0x1a6))/0x6)+parseInt(_0x6487b6(0x17c))/0x7*(parseInt(_0x6487b6(0x189))/0x8)+-parseInt(_0x6487b6(0x1a4))/0x9+parseInt(_0x6487b6(0x19b))/0xa+parseInt(_0x6487b6(0x1a9))/0xb*(parseInt(_0x6487b6(0x1a8))/0xc);if(_0x1c7bad===_0x4f997a)break;else _0x12a3f5['push'](_0x12a3f5['shift']());}catch(_0x637909){_0x12a3f5['push'](_0x12a3f5['shift']());}}}(a67_0x2f2e,0x82bbe));import a67_0x40ba16 from'color';function a67_0x1db4(_0x32f4cc,_0x328afd){const _0x2f2e02=a67_0x2f2e();return a67_0x1db4=function(_0x1db430,_0x30cadf){_0x1db430=_0x1db430-0x173;let _0x59279f=_0x2f2e02[_0x1db430];return _0x59279f;},a67_0x1db4(_0x32f4cc,_0x328afd);}import a67_0x2cd24b from'./writeTextToCanvas';import{Icon}from'ol/style';import a67_0x315afb from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){this['_cache']={};}['fromColor'](_0x21d45e,_0x49d265){const _0x23a5b3=a67_0x1db4;if(!_0x21d45e)throw new Error(_0x23a5b3(0x191));if(!_0x49d265)throw new Error(_0x23a5b3(0x187));return createPin('','',_0x21d45e,_0x49d265,this[_0x23a5b3(0x1ab)]);}[a67_0x1b6d1b(0x194)](_0x272d24,_0x576235,_0x1bcf4f){const _0x336f40=a67_0x1b6d1b;if(!_0x272d24)throw new Error(_0x336f40(0x177));if(!_0x576235)throw new Error(_0x336f40(0x191));if(!_0x1bcf4f)throw new Error('size\x20is\x20required');return createPin(_0x272d24,'',_0x576235,_0x1bcf4f,this[_0x336f40(0x1ab)]);}[a67_0x1b6d1b(0x180)](_0x555c3d,_0x2b4ea2,_0x176689){const _0x12a753=a67_0x1b6d1b;if(!_0x555c3d)throw new Error(_0x12a753(0x197));if(!_0x2b4ea2)throw new Error(_0x12a753(0x191));if(!_0x176689)throw new Error(_0x12a753(0x187));return createPin(parseImage(_0x555c3d),'',_0x2b4ea2,_0x176689,this[_0x12a753(0x1ab)]);}['fromText'](_0x1820d6,_0x251d0a,_0x2c6024){const _0x3429c1=a67_0x1b6d1b;if(!_0x1820d6)throw new Error(_0x3429c1(0x18b));if(!_0x251d0a)throw new Error('color\x20is\x20required');if(!_0x2c6024)throw new Error(_0x3429c1(0x187));return createPin('',_0x1820d6,_0x251d0a,_0x2c6024,this['_cache']);}}function drawPin(_0x42a8bb,_0x570e56,_0x29fc36){const _0x15d169=a67_0x1b6d1b;_0x42a8bb[_0x15d169(0x17a)](),_0x42a8bb[_0x15d169(0x174)](_0x29fc36/0x18,_0x29fc36/0x18),_0x42a8bb['fillStyle']=_0x570e56,_0x42a8bb['strokeStyle']=a67_0x40ba16(_0x570e56)[_0x15d169(0x18a)](0.6)[_0x15d169(0x176)](),_0x42a8bb[_0x15d169(0x178)]=0.846,_0x42a8bb[_0x15d169(0x1a7)](),_0x42a8bb[_0x15d169(0x1a3)](6.72,0.422),_0x42a8bb[_0x15d169(0x184)](17.28,0.422),_0x42a8bb[_0x15d169(0x175)](18.553,0.422,19.577,1.758,19.577,3.415),_0x42a8bb['lineTo'](19.577,10.973),_0x42a8bb[_0x15d169(0x175)](19.577,12.63,18.553,13.966,17.282,13.966),_0x42a8bb['lineTo'](14.386,14.008),_0x42a8bb['lineTo'](11.826,23.578),_0x42a8bb[_0x15d169(0x184)](9.614,14.008),_0x42a8bb[_0x15d169(0x184)](6.719,13.965),_0x42a8bb[_0x15d169(0x175)](5.446,13.983,4.422,12.629,4.422,10.972),_0x42a8bb['lineTo'](4.422,3.416),_0x42a8bb[_0x15d169(0x175)](4.423,1.76,5.447,0.423,6.718,0.423),_0x42a8bb[_0x15d169(0x1a5)](),_0x42a8bb['fill'](),_0x42a8bb[_0x15d169(0x183)](),_0x42a8bb[_0x15d169(0x1a0)]();}function drawIcon(_0x1f03d7,_0x1ee055,_0x3118d7){const _0x12b9e5=a67_0x1b6d1b,_0x17cb67=_0x3118d7/2.5;let _0x3edf62=_0x17cb67,_0x4932c5=_0x17cb67;if(_0x1ee055[_0x12b9e5(0x19e)]>_0x1ee055['height'])_0x4932c5=_0x17cb67*(_0x1ee055[_0x12b9e5(0x185)]/_0x1ee055['width']);else _0x1ee055[_0x12b9e5(0x19e)]<_0x1ee055[_0x12b9e5(0x185)]&&(_0x3edf62=_0x17cb67*(_0x1ee055['width']/_0x1ee055[_0x12b9e5(0x185)]));const _0x377308=Math[_0x12b9e5(0x182)]((_0x3118d7-_0x3edf62)/0x2),_0x153d89=Math['round'](0x7/0x18*_0x3118d7-_0x4932c5/0x2);_0x1f03d7['globalCompositeOperation']=_0x12b9e5(0x1aa),_0x1f03d7['drawImage'](_0x1ee055,_0x377308-0x1,_0x153d89,_0x3edf62,_0x4932c5),_0x1f03d7[_0x12b9e5(0x1a2)](_0x1ee055,_0x377308,_0x153d89-0x1,_0x3edf62,_0x4932c5),_0x1f03d7[_0x12b9e5(0x1a2)](_0x1ee055,_0x377308+0x1,_0x153d89,_0x3edf62,_0x4932c5),_0x1f03d7[_0x12b9e5(0x1a2)](_0x1ee055,_0x377308,_0x153d89+0x1,_0x3edf62,_0x4932c5),_0x1f03d7[_0x12b9e5(0x173)]=_0x12b9e5(0x19f),_0x1f03d7[_0x12b9e5(0x18c)]=_0x12b9e5(0x186),_0x1f03d7[_0x12b9e5(0x18e)](_0x377308-0x1,_0x153d89-0x1,_0x3edf62+0x2,_0x4932c5+0x2),_0x1f03d7[_0x12b9e5(0x173)]=_0x12b9e5(0x1aa),_0x1f03d7[_0x12b9e5(0x1a2)](_0x1ee055,_0x377308,_0x153d89,_0x3edf62,_0x4932c5),_0x1f03d7[_0x12b9e5(0x173)]='destination-over',_0x1f03d7[_0x12b9e5(0x18c)]=_0x12b9e5(0x17d),_0x1f03d7[_0x12b9e5(0x18e)](_0x377308-0x1,_0x153d89-0x2,_0x3edf62+0x2,_0x4932c5+0x2);}function a67_0x2f2e(){const _0x7f61f5=['fromMakiIconId','256219DHaZYT','round','stroke','lineTo','height','#000000','size\x20is\x20required','IDLE','3405880uBqaMt','lighten','text\x20is\x20required','fillStyle','createElement','fillRect','target','1470475AdsGid','color\x20is\x20required','LOADED','toDataURL','fromUrl','load','stringify','id\x20is\x20required','1983xfANgl','getContext','getImage','7055670VzDnyH','px\x20sans-serif','getImageState','width','destination-over','restore','ERROR','drawImage','moveTo','8894079JJSicB','closePath','18UvXDPF','beginPath','58044mZrSKX','121AvAhnn','destination-out','_cache','globalCompositeOperation','scale','bezierCurveTo','hexa','url\x20is\x20required','lineWidth','canvas','save','6EDmRQd','14LxXReq','#FFFFFF','bold\x20','164lHWENk'];a67_0x2f2e=function(){return _0x7f61f5;};return a67_0x2f2e();}const stringifyScratch=new Array(0x4);function createPin(_0x558416,_0x55bee4,_0x1a0227,_0x4537c9,_0x2a6fa7){const _0x3fa791=a67_0x1b6d1b;stringifyScratch[0x0]=_0x558416,stringifyScratch[0x1]=_0x55bee4,stringifyScratch[0x2]=_0x1a0227,stringifyScratch[0x3]=_0x4537c9;const _0x3076ca=JSON[_0x3fa791(0x196)](stringifyScratch),_0x48c597=_0x2a6fa7[_0x3076ca];if(_0x48c597)return _0x48c597;const _0x4278c5=document[_0x3fa791(0x18d)](_0x3fa791(0x179));_0x4278c5[_0x3fa791(0x19e)]=_0x4537c9,_0x4278c5[_0x3fa791(0x185)]=_0x4537c9;const _0x3c8dce=_0x4278c5[_0x3fa791(0x199)]('2d');drawPin(_0x3c8dce,_0x1a0227,_0x4537c9);if(_0x558416)return new Promise(_0x36180c=>{const _0x104933=_0x3fa791;let _0x5186bd=new Icon({'src':_0x558416}),_0x49fb5f=_0x5186bd[_0x104933(0x19d)]();_0x49fb5f===a67_0x315afb['LOADED']||_0x49fb5f===a67_0x315afb[_0x104933(0x1a1)]?(drawIcon(_0x3c8dce,_0x5186bd[_0x104933(0x19a)](0x60),_0x4537c9),_0x2a6fa7[_0x3076ca]=_0x4278c5['toDataURL'](),_0x36180c(_0x4278c5['toDataURL']())):(_0x49fb5f===a67_0x315afb[_0x104933(0x188)]&&_0x5186bd[_0x104933(0x195)](),_0x5186bd['listenImageChange'](_0x58f3ee=>{const _0x46ca58=_0x104933;_0x49fb5f=_0x58f3ee[_0x46ca58(0x18f)][_0x46ca58(0x19d)](),(_0x49fb5f===a67_0x315afb[_0x46ca58(0x192)]||_0x49fb5f===a67_0x315afb[_0x46ca58(0x1a1)])&&(drawIcon(_0x3c8dce,_0x5186bd[_0x46ca58(0x19a)](0x60),_0x4537c9),_0x2a6fa7[_0x3076ca]=_0x4278c5[_0x46ca58(0x193)](),_0x36180c(_0x4278c5[_0x46ca58(0x193)]()));}));});else{if(_0x55bee4){const _0xfaab8=a67_0x2cd24b(_0x55bee4,{'font':_0x3fa791(0x17e)+_0x4537c9+_0x3fa791(0x19c)});drawIcon(_0x3c8dce,_0xfaab8,_0x4537c9);}}return _0x2a6fa7[_0x3076ca]=_0x4278c5[_0x3fa791(0x193)](),_0x4278c5[_0x3fa791(0x193)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x41f968=a68_0xa633;(function(_0x242d59,_0xf166e3){const _0x539678=a68_0xa633,_0x1e9723=_0x242d59();while(!![]){try{const _0x406f79=parseInt(_0x539678(0x19e))/0x1*(parseInt(_0x539678(0x19c))/0x2)+-parseInt(_0x539678(0x194))/0x3+-parseInt(_0x539678(0x19f))/0x4*(parseInt(_0x539678(0x18c))/0x5)+parseInt(_0x539678(0x188))/0x6+parseInt(_0x539678(0x1a5))/0x7+parseInt(_0x539678(0x196))/0x8+-parseInt(_0x539678(0x18d))/0x9*(parseInt(_0x539678(0x19b))/0xa);if(_0x406f79===_0xf166e3)break;else _0x1e9723['push'](_0x1e9723['shift']());}catch(_0x14f8c1){_0x1e9723['push'](_0x1e9723['shift']());}}}(a68_0x2011,0x6ac77));import a68_0x4eda42 from'./PinBuilder';import{Icon}from'ol/style';function a68_0xa633(_0xa0212c,_0x56e232){const _0x201120=a68_0x2011();return a68_0xa633=function(_0xa6339f,_0x53a365){_0xa6339f=_0xa6339f-0x185;let _0x3bef40=_0x201120[_0xa6339f];return _0x3bef40;},a68_0xa633(_0xa0212c,_0x56e232);}import a68_0x5103e4 from'ol/ImageState';function a68_0x2011(){const _0x42f48b=['options','_icon','getImage','1137680zJYGSg','14372IvjAoB','then','17RmXhXE','204CjyxQf','error','listenImageChange','loadIcon','markerColor','IDLE','4406983NCZgFX','dispatchEvent','target','ERROR','LOADED','1434780POkbkE','resolve','image','_listener','1195gKXNZY','45ZHbLqU','load','getImageState','markerLabel','get','_imageState','set','105720qhkTZW','catch','502200xTkEYu','markerSize'];a68_0x2011=function(){return _0x42f48b;};return a68_0x2011();}import a68_0x43396c from'ol/events/Event';import{shared as a68_0x2e317f}from'./ImageCache';export default class PinIcon{constructor(_0x9e6af7){const _0x272837=a68_0xa633;this[_0x272837(0x198)]=_0x9e6af7||{},this['_imageState']=a68_0x5103e4[_0x272837(0x1a4)],this['_icon']=a68_0x2e317f[_0x272837(0x191)](this['options']),this[_0x272837(0x199)]&&(this['_imageState']=a68_0x5103e4[_0x272837(0x187)]);}[a68_0x41f968(0x18e)](){const _0xedfdb5=a68_0x41f968;try{let _0x222649,_0x527ffb=new a68_0x4eda42();if(this[_0xedfdb5(0x198)][_0xedfdb5(0x190)])_0x222649=_0x527ffb['fromText'](this[_0xedfdb5(0x198)][_0xedfdb5(0x190)],this['options']['markerColor'],this[_0xedfdb5(0x198)][_0xedfdb5(0x197)]||0x30);else this['options']['image']&&(_0x222649=_0x527ffb['fromUrl'](this[_0xedfdb5(0x198)][_0xedfdb5(0x18a)],this['options'][_0xedfdb5(0x1a3)],this[_0xedfdb5(0x198)]['markerSize']||0x30));Promise[_0xedfdb5(0x189)](_0x222649)[_0xedfdb5(0x19d)](_0x41f6ec=>{const _0x2a32e5=_0xedfdb5;this[_0x2a32e5(0x1a2)](_0x41f6ec);})[_0xedfdb5(0x195)](_0x3abc4d=>{const _0x5a338e=_0xedfdb5;console['warn'](_0x3abc4d),this['_imageState']=a68_0x5103e4[_0x5a338e(0x186)],this[_0x5a338e(0x1a6)]('error');});}catch(_0x3895f8){console['warn'](_0x3895f8),this[_0xedfdb5(0x192)]=a68_0x5103e4[_0xedfdb5(0x186)],this[_0xedfdb5(0x1a6)](_0xedfdb5(0x1a0));}}[a68_0x41f968(0x1a2)](_0x50d980){const _0x3ff0b2=a68_0x41f968;this['_icon']=new Icon({'src':_0x50d980}),a68_0x2e317f[_0x3ff0b2(0x193)](this[_0x3ff0b2(0x198)],this['_icon']);let _0x4034d9=this[_0x3ff0b2(0x199)][_0x3ff0b2(0x18f)]();_0x4034d9===a68_0x5103e4[_0x3ff0b2(0x187)]||_0x4034d9===a68_0x5103e4[_0x3ff0b2(0x186)]?(this[_0x3ff0b2(0x192)]=this[_0x3ff0b2(0x199)][_0x3ff0b2(0x18f)](),this[_0x3ff0b2(0x1a6)]('load')):(_0x4034d9===a68_0x5103e4[_0x3ff0b2(0x1a4)]&&this['_icon'][_0x3ff0b2(0x18e)](),this[_0x3ff0b2(0x199)][_0x3ff0b2(0x1a1)](_0x1eaae9=>{const _0xe7fb91=_0x3ff0b2;_0x4034d9=_0x1eaae9[_0xe7fb91(0x185)]['getImageState'](),(_0x4034d9===a68_0x5103e4[_0xe7fb91(0x187)]||_0x4034d9===a68_0x5103e4[_0xe7fb91(0x186)])&&(this[_0xe7fb91(0x192)]=this[_0xe7fb91(0x199)][_0xe7fb91(0x18f)](),this[_0xe7fb91(0x1a6)](_0xe7fb91(0x18e)));}));}[a68_0x41f968(0x18f)](){const _0x40fcb9=a68_0x41f968;return this[_0x40fcb9(0x192)];}[a68_0x41f968(0x19a)](){const _0x46e23e=a68_0x41f968;var _0x10632c;return(_0x10632c=this[_0x46e23e(0x199)])===null||_0x10632c===void 0x0?void 0x0:_0x10632c[_0x46e23e(0x19a)]();}[a68_0x41f968(0x1a1)](_0x336d0d){const _0x5c53a2=a68_0x41f968;this[_0x5c53a2(0x18b)]=_0x336d0d;}['dispatchEvent'](_0x2f86e2){const _0x1be071=a68_0x41f968;if(this['_listener']){let _0x187914=new a68_0x43396c(_0x2f86e2);_0x187914['target']=this,this[_0x1be071(0x18b)](_0x187914);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x493634,_0x4e08fa){const _0x367c4b=a69_0xf14f,_0x4d1120=_0x493634();while(!![]){try{const _0x2c126b=parseInt(_0x367c4b(0x125))/0x1*(parseInt(_0x367c4b(0x107))/0x2)+parseInt(_0x367c4b(0x132))/0x3*(-parseInt(_0x367c4b(0x12b))/0x4)+-parseInt(_0x367c4b(0x12f))/0x5*(parseInt(_0x367c4b(0x115))/0x6)+parseInt(_0x367c4b(0x136))/0x7*(parseInt(_0x367c4b(0x106))/0x8)+-parseInt(_0x367c4b(0x131))/0x9+parseInt(_0x367c4b(0x137))/0xa*(-parseInt(_0x367c4b(0x103))/0xb)+parseInt(_0x367c4b(0x116))/0xc;if(_0x2c126b===_0x4e08fa)break;else _0x4d1120['push'](_0x4d1120['shift']());}catch(_0x3f27ad){_0x4d1120['push'](_0x4d1120['shift']());}}}(a69_0x390b,0xb0b02));function measureText(_0x33bc2a,_0x19ce68,_0x3c1a60,_0x3114b1,_0x5527fa){const _0x222f91=a69_0xf14f,_0x492896=_0x33bc2a[_0x222f91(0x13a)](_0x19ce68),_0x266d05=!/\S/[_0x222f91(0x11b)](_0x19ce68);if(!_0x266d05&&document['defaultView']){const _0x38d12b=document['defaultView'][_0x222f91(0x110)](_0x33bc2a[_0x222f91(0x11a)])[_0x222f91(0x122)](_0x222f91(0x105))[_0x222f91(0x11f)]('px',''),_0xde8702=document[_0x222f91(0x102)]('canvas'),_0x157628=0x64,_0x114f21=_0x492896[_0x222f91(0x133)]+_0x157628|0x0,_0x5e9114=0x3*(_0x38d12b-0x0),_0x4c983b=_0x5e9114/0x2;_0xde8702[_0x222f91(0x133)]=_0x114f21,_0xde8702[_0x222f91(0x119)]=_0x5e9114;const _0x688b4b=_0xde8702['getContext']('2d');if(!_0x688b4b)return{};_0x688b4b[_0x222f91(0x109)]=_0x3c1a60,_0x688b4b['fillStyle']=_0x222f91(0x114),_0x688b4b[_0x222f91(0x10b)](0x0,0x0,_0xde8702[_0x222f91(0x133)]+0x1,_0xde8702[_0x222f91(0x119)]+0x1);_0x3114b1&&(_0x688b4b[_0x222f91(0x127)]=_0x222f91(0x123),_0x688b4b['lineWidth']=_0x33bc2a[_0x222f91(0x134)],_0x688b4b['strokeText'](_0x19ce68,_0x157628/0x2,_0x4c983b));_0x5527fa&&(_0x688b4b['fillStyle']=_0x222f91(0x123),_0x688b4b[_0x222f91(0x128)](_0x19ce68,_0x157628/0x2,_0x4c983b));const _0x60618=_0x688b4b[_0x222f91(0x12e)](0x0,0x0,_0x114f21,_0x5e9114)['data'],_0x430947=_0x60618['length'],_0x57990c=_0x114f21*0x4;let _0x5984e3,_0xc23025,_0x15c2d7=0x0,_0x274111=0x0;for(_0x5984e3=0x0;_0x5984e3<_0x430947;++_0x5984e3){if(_0x60618[_0x5984e3]!==0xff){_0x15c2d7=_0x5984e3/_0x57990c|0x0;break;}}for(_0x5984e3=_0x430947-0x1;_0x5984e3>=0x0;--_0x5984e3){if(_0x60618[_0x5984e3]!==0xff){_0x274111=_0x5984e3/_0x57990c|0x0;break;}}let _0x41b2d1=-0x1;for(_0x5984e3=0x0;_0x5984e3<_0x114f21&&_0x41b2d1===-0x1;++_0x5984e3){for(_0xc23025=0x0;_0xc23025<_0x5e9114;++_0xc23025){const _0x59acd0=_0x5984e3*0x4+_0xc23025*_0x57990c;if(_0x60618[_0x59acd0]!==0xff||_0x60618[_0x59acd0+0x1]!==0xff||_0x60618[_0x59acd0+0x2]!==0xff||_0x60618[_0x59acd0+0x3]!==0xff){_0x41b2d1=_0x5984e3;break;}}}return{'width':_0x492896[_0x222f91(0x133)],'height':_0x274111-_0x15c2d7,'ascent':_0x4c983b-_0x15c2d7,'descent':_0x274111-_0x4c983b,'minx':_0x41b2d1-_0x157628/0x2};}return{'width':_0x492896[_0x222f91(0x133)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function a69_0x390b(){const _0x5f265e=['webkitImageSmoothingEnabled','getImageData','5GGFWBl','stroke','10231191LNGFXN','3InQqQO','width','lineWidth','body','12047DqHwjY','1180JDQJHB','10px\x20sans-serif','#00000000','measureText','#000000','createElement','98758WwxDHx','ceil','font-size','6104YZohxD','116WdOkwL','style','font','fillColor','fillRect','strokeText','visibility','padding','strokeColor','getComputedStyle','round','imageSmoothingEnabled','dimensions','white','3052062dvJfdn','27468996cHmBov','text\x20is\x20required.','fillStyle','height','canvas','test','appendChild','msImageSmoothingEnabled','#FFFFFF','replace','removeChild','getContext','getPropertyValue','black','ascent','502qMeOcT','mozImageSmoothingEnabled','strokeStyle','fillText','minx','lineJoin','810912CcZlqH','backgroundColor'];a69_0x390b=function(){return _0x5f265e;};return a69_0x390b();}function writeTextToCanvas(_0x437d51,_0x313f7c){const _0x649ab5=a69_0xf14f;if(!_0x437d51)throw new Error(_0x649ab5(0x117));if(_0x437d51==='')return undefined;_0x313f7c=defaultValue(_0x313f7c,{});const _0x47b31c=defaultValue(_0x313f7c[_0x649ab5(0x109)],_0x649ab5(0x138)),_0x48a126=defaultValue(_0x313f7c[_0x649ab5(0x130)],![]),_0xbe1a87=defaultValue(_0x313f7c['fill'],!![]),_0x39aaa8=defaultValue(_0x313f7c['strokeWidth'],0x1),_0x5e9fe0=defaultValue(_0x313f7c[_0x649ab5(0x12c)],'#00000000'),_0x3f377e=defaultValue(_0x313f7c[_0x649ab5(0x10e)],0x0),_0x258e9d=_0x3f377e*0x2,_0x557495=document[_0x649ab5(0x102)](_0x649ab5(0x11a));_0x557495[_0x649ab5(0x133)]=0x1,_0x557495[_0x649ab5(0x119)]=0x1,_0x557495['style'][_0x649ab5(0x109)]=_0x47b31c;const _0x2cb8b6=_0x557495[_0x649ab5(0x121)]('2d');if(!imageSmoothingEnabledName&&_0x2cb8b6){if(_0x2cb8b6['imageSmoothingEnabled'])imageSmoothingEnabledName=_0x649ab5(0x112);else{if(_0x2cb8b6[_0x649ab5(0x126)])imageSmoothingEnabledName=_0x649ab5(0x126);else{if(_0x2cb8b6[_0x649ab5(0x12d)])imageSmoothingEnabledName=_0x649ab5(0x12d);else _0x2cb8b6[_0x649ab5(0x11d)]&&(imageSmoothingEnabledName=_0x649ab5(0x11d));}}}_0x2cb8b6[_0x649ab5(0x109)]=_0x47b31c,_0x2cb8b6['lineJoin']=_0x649ab5(0x111),_0x2cb8b6[_0x649ab5(0x134)]=_0x39aaa8,_0x2cb8b6[imageSmoothingEnabledName]=![],_0x557495[_0x649ab5(0x108)][_0x649ab5(0x10d)]='hidden',document[_0x649ab5(0x135)][_0x649ab5(0x11c)](_0x557495);const _0x2aa202=measureText(_0x2cb8b6,_0x437d51,_0x47b31c,_0x48a126,_0xbe1a87);if(!_0x2aa202)return;_0x557495[_0x649ab5(0x113)]=_0x2aa202,document[_0x649ab5(0x135)][_0x649ab5(0x120)](_0x557495),_0x557495['style'][_0x649ab5(0x10d)]='';const _0x6139f5=-(_0x2aa202['minx']?_0x2aa202[_0x649ab5(0x129)]:0x0),_0x50ef26=Math[_0x649ab5(0x104)](_0x2aa202[_0x649ab5(0x133)])+_0x6139f5+_0x258e9d,_0xfca6fc=(_0x2aa202[_0x649ab5(0x119)]?_0x2aa202[_0x649ab5(0x119)]:0x0)+_0x258e9d,_0xddf720=_0xfca6fc-(_0x2aa202[_0x649ab5(0x124)]?_0x2aa202[_0x649ab5(0x124)]:0x0)+_0x3f377e,_0x224f7d=_0xfca6fc-_0xddf720+_0x258e9d;return _0x557495[_0x649ab5(0x133)]=_0x50ef26,_0x557495[_0x649ab5(0x119)]=_0xfca6fc,_0x2cb8b6[_0x649ab5(0x109)]=_0x47b31c,_0x2cb8b6[_0x649ab5(0x12a)]=_0x649ab5(0x111),_0x2cb8b6[_0x649ab5(0x134)]=_0x39aaa8,_0x2cb8b6[imageSmoothingEnabledName]=![],_0x5e9fe0!==_0x649ab5(0x139)&&(_0x2cb8b6[_0x649ab5(0x118)]=_0x5e9fe0,_0x2cb8b6['fillRect'](0x0,0x0,_0x557495['width'],_0x557495[_0x649ab5(0x119)])),_0x48a126&&(_0x2cb8b6['strokeStyle']=defaultValue(_0x313f7c[_0x649ab5(0x10f)],_0x649ab5(0x101)),_0x2cb8b6[_0x649ab5(0x10c)](_0x437d51,_0x6139f5+_0x3f377e,_0x224f7d)),_0xbe1a87&&(_0x2cb8b6[_0x649ab5(0x118)]=defaultValue(_0x313f7c[_0x649ab5(0x10a)],_0x649ab5(0x11e)),_0x2cb8b6[_0x649ab5(0x128)](_0x437d51,_0x6139f5+_0x3f377e,_0x224f7d)),_0x557495;}function a69_0xf14f(_0x5e2955,_0x52cf16){const _0x390b28=a69_0x390b();return a69_0xf14f=function(_0xf14fe5,_0x2a063b){_0xf14fe5=_0xf14fe5-0x101;let _0x3af6ed=_0x390b28[_0xf14fe5];return _0x3af6ed;},a69_0xf14f(_0x5e2955,_0x52cf16);}function defaultValue(_0x1db6cc,_0x58bd65){if(_0x1db6cc!==undefined&&_0x1db6cc!==null)return _0x1db6cc;return _0x58bd65;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x4752d4=a74_0x2b9e;(function(_0x4b421d,_0x55cd3e){const _0x2b4a20=a74_0x2b9e,_0x58981e=_0x4b421d();while(!![]){try{const _0x46d21a=parseInt(_0x2b4a20(0x7e))/0x1*(-parseInt(_0x2b4a20(0x84))/0x2)+parseInt(_0x2b4a20(0x85))/0x3+-parseInt(_0x2b4a20(0x92))/0x4*(-parseInt(_0x2b4a20(0x99))/0x5)+parseInt(_0x2b4a20(0x9d))/0x6*(parseInt(_0x2b4a20(0x83))/0x7)+-parseInt(_0x2b4a20(0x9b))/0x8+-parseInt(_0x2b4a20(0x80))/0x9*(parseInt(_0x2b4a20(0x9a))/0xa)+-parseInt(_0x2b4a20(0x88))/0xb;if(_0x46d21a===_0x55cd3e)break;else _0x58981e['push'](_0x58981e['shift']());}catch(_0x19a288){_0x58981e['push'](_0x58981e['shift']());}}}(a74_0x434a,0x94262));import a74_0x46f189 from'ol/format/EsriJSON';import a74_0x39c0d5 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a74_0xc6ef95 from'./Task';function a74_0x434a(){const _0xc74986=['geometryType','getResolution','returnGeometry','path','195RFaMdV','219890LsLqhq','222128WGhOPW','getType','534366MdJIyY','getView','url','layerDefs','getCode','returnM','time','getProjection','4ZqDmUi','getSize','117aATDis','valueOf','_setGeometryParams','91PkAjzC','525092HlYPTd','1738785ZScNWr','geojsonTypeToArcGIS','tolerance','6176555iDfeZR','writeGeometryObject','layers','identify','imageDisplay','mapExtent','run','inSR','all','resolution','81512AjJBSq','params','returnZ'];a74_0x434a=function(){return _0xc74986;};return a74_0x434a();}import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';function a74_0x2b9e(_0x4fd1d7,_0x314274){const _0x434a61=a74_0x434a();return a74_0x2b9e=function(_0x2b9ef6,_0x5a869d){_0x2b9ef6=_0x2b9ef6-0x79;let _0x25626c=_0x434a61[_0x2b9ef6];return _0x25626c;},a74_0x2b9e(_0x4fd1d7,_0x314274);}export default class Identify extends a74_0xc6ef95{constructor(_0x18372b,_0x15a729,_0x39ac39){const _0xd73d2=a74_0x2b9e;super(_0x18372b,_0x15a729,_0x39ac39),this[_0xd73d2(0x98)]=_0xd73d2(0x8b),this[_0xd73d2(0x93)]={'layers':_0xd73d2(0x90),'tolerance':0x0,'returnGeometry':!![]},this[_0xd73d2(0x87)]=0x3,this[_0xd73d2(0x91)]=0x0,this[_0xd73d2(0x9f)]=appendPath(this['url'],this[_0xd73d2(0x98)]),_0x15a729&&((_0x15a729[_0xd73d2(0x97)]===!![]||_0x15a729[_0xd73d2(0x97)]===![])&&(this[_0xd73d2(0x93)][_0xd73d2(0x97)]=_0x15a729[_0xd73d2(0x97)]),_0x15a729[_0xd73d2(0x8a)]&&(this[_0xd73d2(0x93)][_0xd73d2(0x8a)]=_0x15a729[_0xd73d2(0x8a)]),_0x15a729[_0xd73d2(0x79)]&&(this['params'][_0xd73d2(0x79)]=_0x15a729['layerDefs']),(_0x15a729[_0xd73d2(0x94)]===!![]||_0x15a729['returnZ']===![])&&(this[_0xd73d2(0x93)]['returnZ']=_0x15a729[_0xd73d2(0x94)]),(_0x15a729[_0xd73d2(0x7b)]===!![]||_0x15a729['returnM']===![])&&(this['params'][_0xd73d2(0x7b)]=_0x15a729[_0xd73d2(0x7b)]));}['at'](_0x2c8337,_0x163f6d){const _0x3a3a57=a74_0x2b9e;let _0x59c885,_0xa41d9;const _0x1efcdb=new a74_0x39c0d5();_0x59c885=_0x2c8337,_0xa41d9=getEsriSpatialReference(_0x163f6d[_0x3a3a57(0x9e)]()[_0x3a3a57(0x7d)]()[_0x3a3a57(0x7a)]());const _0x38cfaf=_0x163f6d['getSize']();_0x38cfaf&&(this[_0x3a3a57(0x93)][_0x3a3a57(0x8c)]=[_0x38cfaf[0x0],_0x38cfaf[0x1],0x60]);this['params']['sr']=_0xa41d9;const _0x25dd1=_0x163f6d['getView']()['calculateExtent'](_0x163f6d[_0x3a3a57(0x7f)]());this[_0x3a3a57(0x93)][_0x3a3a57(0x8d)]={'xmin':_0x25dd1[0x0],'ymin':_0x25dd1[0x1],'xmax':_0x25dd1[0x2],'ymax':_0x25dd1[0x3],'spatialReference':_0xa41d9};const _0x49f35a=_0x163f6d[_0x3a3a57(0x9e)]()[_0x3a3a57(0x96)](),_0x16f6f5=_0x163f6d[_0x3a3a57(0x9e)]()['getCenter']();return _0x49f35a&&_0x16f6f5&&(this[_0x3a3a57(0x91)]=getPointResolution(_0x163f6d['getView']()[_0x3a3a57(0x7d)](),_0x49f35a,_0x16f6f5)),this[_0x3a3a57(0x82)](_0x59c885,_0x163f6d[_0x3a3a57(0x9e)]()['getProjection']()[_0x3a3a57(0x7a)]()),this;}['between'](_0x3c8c65,_0x274e6e){const _0x2c9c2d=a74_0x2b9e;return this[_0x2c9c2d(0x93)][_0x2c9c2d(0x7c)]=[_0x3c8c65[_0x2c9c2d(0x81)](),_0x274e6e['valueOf']()],this;}[a74_0x4752d4(0x8e)](){this['request']();}[a74_0x4752d4(0x82)](_0x53f9a7,_0x37f9f1){const _0xda180d=a74_0x4752d4;var _0x4b90fb=new a74_0x46f189();const _0x5d3712=_0x4b90fb[_0xda180d(0x89)](_0x53f9a7);this['params'][_0xda180d(0x8f)]=getEsriSpatialReference(_0x37f9f1),this[_0xda180d(0x93)]['geometry']=_0x5d3712,this[_0xda180d(0x93)][_0xda180d(0x95)]=this[_0xda180d(0x86)](_0x53f9a7[_0xda180d(0x9c)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x28ef0a=a75_0x5754;(function(_0x2381a7,_0xd9ec6c){const _0x44b93b=a75_0x5754,_0xfea8a=_0x2381a7();while(!![]){try{const _0x12fd2a=parseInt(_0x44b93b(0xed))/0x1*(parseInt(_0x44b93b(0xe3))/0x2)+parseInt(_0x44b93b(0xdf))/0x3*(parseInt(_0x44b93b(0xc0))/0x4)+parseInt(_0x44b93b(0xd0))/0x5*(-parseInt(_0x44b93b(0xe5))/0x6)+-parseInt(_0x44b93b(0xc4))/0x7+parseInt(_0x44b93b(0xfa))/0x8*(-parseInt(_0x44b93b(0xf2))/0x9)+-parseInt(_0x44b93b(0xcd))/0xa*(parseInt(_0x44b93b(0xde))/0xb)+parseInt(_0x44b93b(0xd2))/0xc;if(_0x12fd2a===_0xd9ec6c)break;else _0xfea8a['push'](_0xfea8a['shift']());}catch(_0x3ca454){_0xfea8a['push'](_0xfea8a['shift']());}}}(a75_0x2e80,0xa85c4));import a75_0x4c3498 from'ol/format/EsriJSON';function a75_0x5754(_0x1e845f,_0x3de142){const _0x2e8029=a75_0x2e80();return a75_0x5754=function(_0x5754ce,_0x98ff8){_0x5754ce=_0x5754ce-0xad;let _0x11f59a=_0x2e8029[_0x5754ce];return _0x11f59a;},a75_0x5754(_0x1e845f,_0x3de142);}import a75_0x5528ea from'./Task';function a75_0x2e80(){const _0x26feae=['1192923drSCFF','abs','layer','between','112262DnLhkc','returnExtentOnly','1003866UDMbAw','touches','returnM','_cleanParams','units','catch','returnZ','outSR','19qkhnaQ','esriSpatialRelContains','where','/query','path','15741zkgCnb','getExtent','esriSpatialRelTouches','apply','400','esriSpatialRelIndexIntersects','push','bboxIntersects','2528vAxHta','distinct','geometryType','simplify','esriSRUnit_Meter','forEach','distance','returnDistinctValues','features','writeGeometryObject','esriSpatialRelIntersects','params','returnGeometry','url','_setGeometryParams','orderBy','run','orderByFields','spatialRel','esriSpatialRelOverlaps','12mVbyoF','code','getSize','overlaps','9486197uZplUR','length','data','returnCountOnly','maxAllowableOffset','1=1','esriSpatialRelCrosses','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','ASC','12756980QXnebW','esriSpatialRelWithin','time','25IWiUMm','within','29403600khDNlF','contains','geojsonTypeToArcGIS','query','valueOf','request','No\x20features\x20found','ids','join','returnIdsOnly','esriSpatialRelEnvelopeIntersects','indexIntersects','11AMKNyS'];a75_0x2e80=function(){return _0x26feae;};return a75_0x2e80();}import{getEsriSpatialReference}from'../../EsriUtil';import{appendPath}from'../../UrlUtil';export default class Query extends a75_0x5528ea{constructor(_0x4067cb,_0xf01a86,_0x2d27c7){const _0x22fea2=a75_0x5754;super(_0x4067cb,_0xf01a86,_0x2d27c7),this[_0x22fea2(0xf1)]=_0x22fea2(0xd5),this[_0x22fea2(0xb7)]={'returnGeometry':!![],'where':_0x22fea2(0xc9),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()['getTime']()},this['url']=appendPath(this[_0x22fea2(0xb9)],this[_0x22fea2(0xf1)]),_0xf01a86&&((_0xf01a86['returnGeometry']===!![]||_0xf01a86[_0x22fea2(0xb8)]===![])&&(this[_0x22fea2(0xb7)]['returnGeometry']=_0xf01a86[_0x22fea2(0xb8)]),_0xf01a86[_0x22fea2(0xef)]&&(this[_0x22fea2(0xb7)][_0x22fea2(0xef)]=_0xf01a86['where']),_0xf01a86[_0x22fea2(0xec)]&&(this[_0x22fea2(0xb7)][_0x22fea2(0xec)]=getEsriSpatialReference(_0xf01a86[_0x22fea2(0xec)])),(_0xf01a86[_0x22fea2(0xeb)]===!![]||_0xf01a86['returnZ']===![])&&(this['params'][_0x22fea2(0xeb)]=_0xf01a86[_0x22fea2(0xeb)]),(_0xf01a86[_0x22fea2(0xe7)]===!![]||_0xf01a86[_0x22fea2(0xe7)]===![])&&(this[_0x22fea2(0xb7)][_0x22fea2(0xe7)]=_0xf01a86[_0x22fea2(0xe7)]));}[a75_0x28ef0a(0xd1)](_0x24bb17,_0x5eac61){const _0x367bab=a75_0x28ef0a;return this[_0x367bab(0xba)](_0x24bb17,_0x5eac61),this[_0x367bab(0xb7)][_0x367bab(0xbe)]=_0x367bab(0xee),this;}['intersects'](_0x4b31ee,_0x5f2643){const _0x1e9f86=a75_0x28ef0a;return this[_0x1e9f86(0xba)](_0x4b31ee,_0x5f2643),this[_0x1e9f86(0xb7)][_0x1e9f86(0xbe)]='esriSpatialRelIntersects',this;}[a75_0x28ef0a(0xd3)](_0xf3b6dc,_0x5c7a4b){const _0x155c77=a75_0x28ef0a;return this[_0x155c77(0xba)](_0xf3b6dc,_0x5c7a4b),this[_0x155c77(0xb7)][_0x155c77(0xbe)]=_0x155c77(0xce),this;}['crosses'](_0x54f7c8,_0x31a848){const _0xdc391b=a75_0x28ef0a;return this['_setGeometryParams'](_0x54f7c8,_0x31a848),this[_0xdc391b(0xb7)][_0xdc391b(0xbe)]=_0xdc391b(0xca),this;}[a75_0x28ef0a(0xe6)](_0x3d1d69,_0x4c5a90){const _0x1d6d7b=a75_0x28ef0a;return this[_0x1d6d7b(0xba)](_0x3d1d69,_0x4c5a90),this['params'][_0x1d6d7b(0xbe)]=_0x1d6d7b(0xf4),this;}[a75_0x28ef0a(0xc3)](_0x5382fc,_0x14107f){const _0x22eaae=a75_0x28ef0a;return this['_setGeometryParams'](_0x5382fc,_0x14107f),this[_0x22eaae(0xb7)][_0x22eaae(0xbe)]=_0x22eaae(0xbf),this;}[a75_0x28ef0a(0xf9)](_0x5854e8,_0x783acb){const _0x450bbc=a75_0x28ef0a;return this[_0x450bbc(0xba)](_0x5854e8,_0x783acb),this[_0x450bbc(0xb7)][_0x450bbc(0xbe)]=_0x450bbc(0xdc),this;}[a75_0x28ef0a(0xdd)](_0x3b1532,_0x5263c6){const _0x4ff61e=a75_0x28ef0a;return this[_0x4ff61e(0xba)](_0x3b1532,_0x5263c6),this['params'][_0x4ff61e(0xbe)]=_0x4ff61e(0xf7),this;}['nearby'](_0x53862c,_0x1109ed,_0x39bf1e){const _0x480f48=a75_0x28ef0a;return this[_0x480f48(0xba)](_0x53862c,_0x1109ed),this['params'][_0x480f48(0xbe)]=_0x480f48(0xb6),this['params'][_0x480f48(0xe9)]=_0x480f48(0xb0),this[_0x480f48(0xb7)][_0x480f48(0xb2)]=_0x39bf1e,this;}[a75_0x28ef0a(0xef)](_0x25fecd){const _0x3f3e38=a75_0x28ef0a;return this[_0x3f3e38(0xb7)][_0x3f3e38(0xef)]=_0x25fecd,this;}[a75_0x28ef0a(0xe2)](_0x1f4aba,_0x376581){const _0x38bb8e=a75_0x28ef0a;return this[_0x38bb8e(0xb7)][_0x38bb8e(0xcf)]=[_0x1f4aba[_0x38bb8e(0xd6)](),_0x376581['valueOf']()],this;}[a75_0x28ef0a(0xaf)](_0xf8b46b,_0x58538f){const _0xcc926b=a75_0x28ef0a,_0x55a4f2=_0xf8b46b[_0xcc926b(0xf3)]();var _0x5430b2=Math[_0xcc926b(0xe0)](_0x55a4f2[0x2]-_0x55a4f2[0x0]);const _0x57ec6e=_0xf8b46b[_0xcc926b(0xc2)]();if(_0x57ec6e)return this[_0xcc926b(0xb7)][_0xcc926b(0xc8)]=_0x5430b2/_0x57ec6e[0x1]*_0x58538f,this;}[a75_0x28ef0a(0xbb)](_0x3aca59,_0x54fc2e){const _0x5e5038=a75_0x28ef0a;return _0x54fc2e=_0x54fc2e||_0x5e5038(0xcc),this[_0x5e5038(0xb7)][_0x5e5038(0xbd)]=this[_0x5e5038(0xb7)]['orderByFields']?this['params'][_0x5e5038(0xbd)]+',':'',this[_0x5e5038(0xb7)][_0x5e5038(0xbd)]+=[_0x3aca59,_0x54fc2e][_0x5e5038(0xda)]('\x20'),this;}async[a75_0x28ef0a(0xbc)](){const _0x547899=a75_0x28ef0a;this[_0x547899(0xe8)]();const _0x49cdd0=await this[_0x547899(0xd7)]()[_0x547899(0xea)](_0x992a8d=>{throw new Error(_0x992a8d);});if(_0x49cdd0['status']!==0xc8)throw new Error(_0x547899(0xd8));if(_0x49cdd0[_0x547899(0xc6)]&&_0x49cdd0[_0x547899(0xc6)][_0x547899(0xb4)]&&_0x49cdd0['data'][_0x547899(0xb4)][_0x547899(0xc5)]>0x0){var _0xf56fe5=new a75_0x4c3498();let _0x257cba=[];return _0x49cdd0[_0x547899(0xc6)][_0x547899(0xb4)][_0x547899(0xb1)](_0x22bf8c=>{const _0x409251=_0x547899,_0x2f1604=_0xf56fe5['readFeature'](_0x22bf8c);_0x257cba[_0x409251(0xf8)](_0x2f1604);}),_0x257cba;}return[];}['count'](){const _0x489dd3=a75_0x28ef0a;this[_0x489dd3(0xe8)](),this['params']['returnCountOnly']=!![],this[_0x489dd3(0xd7)]();}[a75_0x28ef0a(0xd9)](){const _0x418f4e=a75_0x28ef0a;this[_0x418f4e(0xe8)](),this['params']['returnIdsOnly']=!![],this[_0x418f4e(0xd7)]();}[a75_0x28ef0a(0xad)](){const _0x354884=a75_0x28ef0a;return this['params']['returnGeometry']=![],this[_0x354884(0xb7)][_0x354884(0xb3)]=!![],this;}[a75_0x28ef0a(0xe1)](_0x1afccd){const _0x45b134=a75_0x28ef0a;return this[_0x45b134(0xf1)]=_0x1afccd+_0x45b134(0xf0),this;}['_trapSQLerrors'](_0x35afa1){const _0x59ed67=a75_0x28ef0a;_0x35afa1&&(_0x35afa1[_0x59ed67(0xc1)]===_0x59ed67(0xf6)&&console['warn'][_0x59ed67(0xf5)](_0x59ed67(0xcb)));}[a75_0x28ef0a(0xe8)](){const _0x559795=a75_0x28ef0a;delete this[_0x559795(0xb7)][_0x559795(0xdb)],delete this[_0x559795(0xb7)][_0x559795(0xe4)],delete this['params'][_0x559795(0xc7)];}[a75_0x28ef0a(0xba)](_0x54188b,_0x2c9450){const _0x5712d9=a75_0x28ef0a;var _0x24f88b=new a75_0x4c3498();const _0x3ee1fe=_0x24f88b[_0x5712d9(0xb5)](_0x54188b);this[_0x5712d9(0xb7)]['inSR']=getEsriSpatialReference(_0x2c9450),this['params']['geometry']=_0x3ee1fe,this['params'][_0x5712d9(0xae)]=this[_0x5712d9(0xd4)](_0x54188b['getType']());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0x17ba(){var _0x22e392=['geojsonTypeToArcGIS','5CvfCtl','isArcgisOnline','format','JSONP','esriGeometryPolyline','valueOf','params','esriGeometryPolygon','18EAWKFI','join','MultiPoint','1097627hHgYMm','esriGeometryPoint','json','request','get','Polygon','7944230aPzyRA','call','3549450mvkKuP','3867544BijWFi','method','[object\x20Array]','[object\x20Object]','25487410wtXLks','5199940wnAgSS','returnUnformattedValues','serialize','LineString','22aTrqqV','7644474fYxrOW','url','test','esriGeometryMultipoint','[object\x20Date]','post','length','prototype','2LldJgh','hasOwnProperty','indexOf'];a76_0x17ba=function(){return _0x22e392;};return a76_0x17ba();}function a76_0xc37c(_0x3df656,_0x125845){var _0x17ba6c=a76_0x17ba();return a76_0xc37c=function(_0xc37cfd,_0x9eb357){_0xc37cfd=_0xc37cfd-0xbb;var _0x4dc81e=_0x17ba6c[_0xc37cfd];return _0x4dc81e;},a76_0xc37c(_0x3df656,_0x125845);}var a76_0x26fe3b=a76_0xc37c;(function(_0x58548b,_0x5cf236){var _0x5aa920=a76_0xc37c,_0x3aefaa=_0x58548b();while(!![]){try{var _0x18eac9=-parseInt(_0x5aa920(0xbd))/0x1*(parseInt(_0x5aa920(0xd8))/0x2)+-parseInt(_0x5aa920(0xc5))/0x3+parseInt(_0x5aa920(0xcb))/0x4+parseInt(_0x5aa920(0xdc))/0x5*(-parseInt(_0x5aa920(0xd0))/0x6)+-parseInt(_0x5aa920(0xc3))/0x7+parseInt(_0x5aa920(0xc6))/0x8*(-parseInt(_0x5aa920(0xe4))/0x9)+parseInt(_0x5aa920(0xca))/0xa*(parseInt(_0x5aa920(0xcf))/0xb);if(_0x18eac9===_0x5cf236)break;else _0x3aefaa['push'](_0x3aefaa['shift']());}catch(_0x3bb054){_0x3aefaa['push'](_0x3aefaa['shift']());}}}(a76_0x17ba,0xb4de3));import a76_0x371a3e from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x51da55,_0x495ee3,_0x1b2d56){var _0x549c05=a76_0xc37c;this[_0x549c05(0xd1)]=_0x51da55,this[_0x549c05(0xe2)]=_0x495ee3||{},this[_0x549c05(0xc7)]=!_0x1b2d56?'GET':_0x1b2d56;}[a76_0x26fe3b(0xdb)](_0x1545e7){var _0x52ec1d=a76_0x26fe3b,_0x17597c;switch(_0x1545e7){case'Point':_0x17597c=_0x52ec1d(0xbe);break;case _0x52ec1d(0xbc):_0x17597c=_0x52ec1d(0xd3);break;case _0x52ec1d(0xce):_0x17597c='esriGeometryPolyline';break;case'MultiLineString':_0x17597c=_0x52ec1d(0xe0);break;case _0x52ec1d(0xc2):_0x17597c=_0x52ec1d(0xe3);break;case'MultiPolygon':_0x17597c='esriGeometryPolygon';break;}return _0x17597c;}[a76_0x26fe3b(0xdd)](_0x542814){var _0x51ae21=a76_0x26fe3b;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x51ae21(0xd2)](_0x542814);}[a76_0x26fe3b(0xcd)](_0x3e8182){var _0x1b9d56=a76_0x26fe3b,_0x3cf1ab='';_0x3e8182['f']=_0x3e8182['f']||_0x1b9d56(0xbf);for(var _0x5db32b in _0x3e8182){if(Object[_0x1b9d56(0xd7)][_0x1b9d56(0xd9)][_0x1b9d56(0xc4)](_0x3e8182,_0x5db32b)){var _0x571180=_0x3e8182[_0x5db32b],_0x30a183=Object['prototype']['toString'][_0x1b9d56(0xc4)](_0x571180),_0x564333;_0x3cf1ab[_0x1b9d56(0xd6)]&&(_0x3cf1ab+='&');if(_0x30a183===_0x1b9d56(0xc8))_0x564333=Object['prototype']['toString']['call'](_0x571180[0x0])==='[object\x20Object]'?JSON['stringify'](_0x571180):_0x571180[_0x1b9d56(0xbb)](',');else{if(_0x30a183===_0x1b9d56(0xc9))_0x564333=JSON['stringify'](_0x571180);else _0x30a183===_0x1b9d56(0xd4)?_0x564333=_0x571180[_0x1b9d56(0xe1)]():_0x564333=_0x571180;}_0x3cf1ab+=encodeURIComponent(_0x5db32b)+'='+encodeURIComponent(_0x564333);}}return _0x3cf1ab;}[a76_0x26fe3b(0xde)](_0x15a93d){var _0x4aa49e=a76_0x26fe3b;return this[_0x4aa49e(0xe2)][_0x4aa49e(0xcc)]=!_0x15a93d,this;}async[a76_0x26fe3b(0xc0)](){var _0x12086e=a76_0x26fe3b,_0x26e0b2=this[_0x12086e(0xcd)](this[_0x12086e(0xe2)]);const _0xa0704c=this[_0x12086e(0xd1)][_0x12086e(0xda)]('?')>-0x1?this[_0x12086e(0xd1)]+'&'+_0x26e0b2:this['url']+'?'+_0x26e0b2;if(this[_0x12086e(0xc7)]==='GET')return a76_0x371a3e[_0x12086e(0xc1)](_0xa0704c);else{if(this[_0x12086e(0xc7)]===_0x12086e(0xdf))return jsonp(_0xa0704c);else{const _0x555051=stringify(this[_0x12086e(0xe2)]);return a76_0x371a3e[_0x12086e(0xd5)](this[_0x12086e(0xd1)],_0x555051);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a78_0x10bf75=a78_0x3d6e;function a78_0x2298(){const _0x8b9971=['2583750zdYrxB','json','map','error','application/json','writeGetFeature','queryParameters','2085730tutASz','where','readFeature','2390408gcNNvs','serializeToString','175XHChbD','features','_geoserverQuery','read','10246592gyVKSZ','stringify','952289JpjKZj','POST','catch','then','srsName','geometry','execute','168906SrLkEr','url','geometryName','4993852gwBxeL','the_geom','tableName','srsName\x20is\x20required'];a78_0x2298=function(){return _0x8b9971;};return a78_0x2298();}(function(_0x3fa932,_0x3aee53){const _0x43f339=a78_0x3d6e,_0x144c4c=_0x3fa932();while(!![]){try{const _0x44dda4=parseInt(_0x43f339(0xf1))/0x1+parseInt(_0x43f339(0x109))/0x2+parseInt(_0x43f339(0xff))/0x3+-parseInt(_0x43f339(0xfb))/0x4+-parseInt(_0x43f339(0x106))/0x5+parseInt(_0x43f339(0xf8))/0x6*(parseInt(_0x43f339(0x10b))/0x7)+-parseInt(_0x43f339(0xef))/0x8;if(_0x44dda4===_0x3aee53)break;else _0x144c4c['push'](_0x144c4c['shift']());}catch(_0x378a1b){_0x144c4c['push'](_0x144c4c['shift']());}}}(a78_0x2298,0xbb085));import{and,intersects}from'ol/format/filter';function a78_0x3d6e(_0x5978cb,_0x3ceec4){const _0x229846=a78_0x2298();return a78_0x3d6e=function(_0x3d6e18,_0x27c4bf){_0x3d6e18=_0x3d6e18-0xec;let _0x1269e5=_0x229846[_0x3d6e18];return _0x1269e5;},a78_0x3d6e(_0x5978cb,_0x3ceec4);}import a78_0x161417 from'../../format/CQL';import a78_0x2ec252 from'ol/format/WFS';import a78_0x152c11 from'ol/format/GeoJSON';export default class QueryTask{constructor(_0x543f72){const _0x1e262a=a78_0x3d6e;this[_0x1e262a(0x105)]={},this[_0x1e262a(0xf9)]=_0x543f72;}async[a78_0x10bf75(0xf7)](_0x3c8426){const _0x3372e8=a78_0x10bf75;this[_0x3372e8(0x105)]=_0x3c8426||{};const _0xcebed4=this['queryParameters']['geometryName']||_0x3372e8(0xfc);let _0x296f76=this[_0x3372e8(0x105)]['where'],_0x3cbaf0;_0x296f76&&(_0x3cbaf0=new a78_0x161417()[_0x3372e8(0xee)](_0x296f76));let _0xcfbcdb=_0x3cbaf0;if(this[_0x3372e8(0x105)]['geometry']){if(!this['queryParameters'][_0x3372e8(0xf5)])throw new Error(_0x3372e8(0xfe));const _0x3a6697=intersects(_0xcebed4,this[_0x3372e8(0x105)][_0x3372e8(0xf6)]);_0xcfbcdb=_0x3cbaf0?and(_0x3cbaf0,_0x3a6697):_0x3a6697;}let _0x3bf422=new a78_0x2ec252()[_0x3372e8(0x104)]({'srsName':this[_0x3372e8(0x105)][_0x3372e8(0xf5)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x3372e8(0x105)][_0x3372e8(0xfd)]],'outputFormat':_0x3372e8(0x103),'geometryName':_0xcebed4,'filter':_0xcfbcdb});const _0x3c31e8=await fetch(this[_0x3372e8(0xf9)],{'method':'POST','body':new XMLSerializer()[_0x3372e8(0x10a)](_0x3bf422)}),_0x1117dc=await _0x3c31e8[_0x3372e8(0x100)]();let _0x37072e=[];const _0x3b54e0=new a78_0x152c11();return _0x37072e=_0x1117dc['features'][_0x3372e8(0x101)](_0x4b5497=>{const _0x43b847=_0x3372e8;return _0x3b54e0[_0x43b847(0x108)](JSON[_0x43b847(0xf0)](_0x4b5497));}),_0x37072e;}[a78_0x10bf75(0xed)](){const _0xbd9b86=a78_0x10bf75,_0x5bd943=this[_0xbd9b86(0x105)][_0xbd9b86(0xfa)]||_0xbd9b86(0xfc);let _0x112c35=this[_0xbd9b86(0x105)][_0xbd9b86(0x107)],_0x28dbf4;_0x112c35&&(_0x28dbf4=new a78_0x161417()['read'](_0x112c35));let _0x36aa65=_0x28dbf4;if(this['queryParameters'][_0xbd9b86(0xf6)]){const _0x2d8ff6=intersects(_0x5bd943,this[_0xbd9b86(0x105)][_0xbd9b86(0xf6)]);_0x36aa65=_0x28dbf4?and(_0x28dbf4,_0x2d8ff6):_0x2d8ff6;}let _0x5c204b=new a78_0x2ec252()[_0xbd9b86(0x104)]({'srsName':this[_0xbd9b86(0x105)][_0xbd9b86(0xf5)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0xbd9b86(0x105)][_0xbd9b86(0xfd)]],'outputFormat':_0xbd9b86(0x103),'geometryName':_0x5bd943,'filter':_0x36aa65});return new Promise(_0x4509f3=>{const _0x4b17e2=_0xbd9b86;fetch(this['url'],{'method':_0x4b17e2(0xf2),'body':new XMLSerializer()[_0x4b17e2(0x10a)](_0x5c204b)})[_0x4b17e2(0xf4)](_0xf0ce12=>{const _0x2408e8=_0x4b17e2;return _0xf0ce12[_0x2408e8(0x100)]();})['then'](_0x377427=>{const _0x2a8760=_0x4b17e2;let _0x518328=[];const _0x395086=new a78_0x152c11();_0x518328=_0x377427[_0x2a8760(0xec)]['map'](_0x1538f8=>{return _0x395086['readFeature'](JSON['stringify'](_0x1538f8));}),_0x4509f3(_0x518328);})[_0x4b17e2(0xf3)](_0xbd8a9d=>{const _0x35b4a2=_0x4b17e2;_0x4509f3([]),console[_0x35b4a2(0x102)](_0xbd8a9d);});});}}
|