gis-map-szdp 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gismap.es.js CHANGED
@@ -18652,15 +18652,15 @@ function HO(n, t, e, r, i, a, o) {
18652
18652
  }, Bi = () => {
18653
18653
  M.value && (n.value.removeLayer(M.value), M.value = null);
18654
18654
  }, Vi = [
18655
- { 京九通道: "rgba(174, 93, 57, 0.8)" },
18656
- { 京沪通道: "rgba(174, 93, 57, 0.8)" },
18657
- { 滨临通道: "rgba(174, 93, 57, 0.8)" },
18655
+ { 京九通道: "rgba(145,223,24,1)" },
18656
+ { 京沪通道: "rgba(145,223,24,1)" },
18657
+ { 滨临通道: "rgba(145,223,24,1)" },
18658
18658
  { 京沪二通道: "rgba(145,223,24,1)" },
18659
18659
  { 济青通道: "rgba(227,172,29,1)" },
18660
- { 鲁中通道: "rgba(139, 72, 213, 0.8)" },
18660
+ { 鲁中通道: "rgba(227,172,29,1)" },
18661
18661
  { 鲁北通道: "rgba(227,172,29,1)" },
18662
- { 鲁南通道: "rgba(139, 72, 213, 0.8)" },
18663
- { 沿海通道: "rgba(174, 93, 57, 0.8)" },
18662
+ { 鲁南通道: "rgba(227,172,29,1)" },
18663
+ { 沿海通道: "rgba(13,189,248, 1)" },
18664
18664
  { 沿黄达海通道: "rgba(13,189,248, 1)" }
18665
18665
  ], Wi = [
18666
18666
  { 京九通道: "#FFB1A0" },
@@ -125,7 +125,7 @@
125
125
  gl_FragColor.rgb *= gl_FragColor.a;
126
126
  }`,uniforms:{u_gradientTexture:(function(){return this.gradient_}).bind(this),u_opacity:(function(){return this.getOpacity()}).bind(this)}}]})},t.prototype.renderDeclutter=function(){},t}(mp);function L8(n){for(var t=1,e=256,r=Fn(t,e),i=r.createLinearGradient(0,0,t,e),a=1/(n.length-1),o=0,s=n.length;o<s;++o)i.addColorStop(o*a,n[o]);return r.fillStyle=i,r.fillRect(0,0,t,e),r.canvas}var JC=function(){function n(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return n.prototype.getReadOptions=function(t,e){var r;if(e){var i=e.dataProjection?gr(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===wn.TILE_PIXELS&&(i=gr(i),i.setWorldExtent(e.extent)),r={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(r)},n.prototype.adaptOptions=function(t){return Bt({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},n.prototype.getType=function(){return et()},n.prototype.readFeature=function(t,e){return et()},n.prototype.readFeatures=function(t,e){return et()},n.prototype.readGeometry=function(t,e){return et()},n.prototype.readProjection=function(t){return et()},n.prototype.writeFeature=function(t,e){return et()},n.prototype.writeFeatures=function(t,e){return et()},n.prototype.writeGeometry=function(t,e){return et()},n}();function G0(n,t,e){var r=e?gr(e.featureProjection):null,i=e?gr(e.dataProjection):null,a;if(r&&i&&!qs(r,i)?a=(t?n.clone():n).transform(t?r:i,t?i:r):a=n,t&&e&&e.decimals!==void 0){var o=Math.pow(10,e.decimals),s=function(l){for(var u=0,c=l.length;u<c;++u)l[u]=Math.round(l[u]*o)/o;return l};a===n&&(a=n.clone()),a.applyTransform(s)}return a}var P8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qC(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var B0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */B0.read=function(n,t,e,r,i){var a,o,s=i*8-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=e?i-1:0,f=e?-1:1,d=n[t+h];for(h+=f,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+n[t+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=o*256+n[t+h],h+=f,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-u}return(d?-1:1)*o*Math.pow(2,a-r)},B0.write=function(n,t,e,r,i,a){var o,s,l,u=a*8-i-1,c=(1<<u)-1,h=c>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,p=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+h>=1?t+=f/l:t+=f*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o=o+h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;n[e+d]=s&255,d+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;n[e+d]=o&255,d+=p,o/=256,u-=8);n[e+d-p]|=v*128};var k8=zt,kp=B0;function zt(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}zt.Varint=0,zt.Fixed64=1,zt.Bytes=2,zt.Fixed32=5;var V0=65536*65536,QC=1/V0,O8=12,$C=typeof TextDecoder>"u"?null:new TextDecoder("utf8");zt.prototype={destroy:function(){this.buf=null},readFields:function(n,t,e){for(e=e||this.length;this.pos<e;){var r=this.readVarint(),i=r>>3,a=this.pos;this.type=r&7,n(i,t,this),this.pos===a&&this.skip(r)}return t},readMessage:function(n,t){return this.readFields(n,t,this.readVarint()+this.pos)},readFixed32:function(){var n=Op(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=tE(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=Op(this.buf,this.pos)+Op(this.buf,this.pos+4)*V0;return this.pos+=8,n},readSFixed64:function(){var n=Op(this.buf,this.pos)+tE(this.buf,this.pos+4)*V0;return this.pos+=8,n},readFloat:function(){var n=kp.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=kp.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var t=this.buf,e,r;return r=t[this.pos++],e=r&127,r<128||(r=t[this.pos++],e|=(r&127)<<7,r<128)||(r=t[this.pos++],e|=(r&127)<<14,r<128)||(r=t[this.pos++],e|=(r&127)<<21,r<128)?e:(r=t[this.pos],e|=(r&15)<<28,R8(e,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var n=this.readVarint()+this.pos,t=this.pos;return this.pos=n,n-t>=O8&&$C?K8(this.buf,t,n):Z8(this.buf,t,n)},readBytes:function(){var n=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,n);return this.pos=n,t},readPackedVarint:function(n,t){if(this.type!==zt.Bytes)return n.push(this.readVarint(t));var e=eo(this);for(n=n||[];this.pos<e;)n.push(this.readVarint(t));return n},readPackedSVarint:function(n){if(this.type!==zt.Bytes)return n.push(this.readSVarint());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readSVarint());return n},readPackedBoolean:function(n){if(this.type!==zt.Bytes)return n.push(this.readBoolean());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readBoolean());return n},readPackedFloat:function(n){if(this.type!==zt.Bytes)return n.push(this.readFloat());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readFloat());return n},readPackedDouble:function(n){if(this.type!==zt.Bytes)return n.push(this.readDouble());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readDouble());return n},readPackedFixed32:function(n){if(this.type!==zt.Bytes)return n.push(this.readFixed32());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readFixed32());return n},readPackedSFixed32:function(n){if(this.type!==zt.Bytes)return n.push(this.readSFixed32());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readSFixed32());return n},readPackedFixed64:function(n){if(this.type!==zt.Bytes)return n.push(this.readFixed64());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readFixed64());return n},readPackedSFixed64:function(n){if(this.type!==zt.Bytes)return n.push(this.readSFixed64());var t=eo(this);for(n=n||[];this.pos<t;)n.push(this.readSFixed64());return n},skip:function(n){var t=n&7;if(t===zt.Varint)for(;this.buf[this.pos++]>127;);else if(t===zt.Bytes)this.pos=this.readVarint()+this.pos;else if(t===zt.Fixed32)this.pos+=4;else if(t===zt.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+t)},writeTag:function(n,t){this.writeVarint(n<<3|t)},realloc:function(n){for(var t=this.length||16;t<this.pos+n;)t*=2;if(t!==this.length){var e=new Uint8Array(t);e.set(this.buf),this.buf=e,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(n){this.realloc(4),ju(this.buf,n,this.pos),this.pos+=4},writeSFixed32:function(n){this.realloc(4),ju(this.buf,n,this.pos),this.pos+=4},writeFixed64:function(n){this.realloc(8),ju(this.buf,n&-1,this.pos),ju(this.buf,Math.floor(n*QC),this.pos+4),this.pos+=8},writeSFixed64:function(n){this.realloc(8),ju(this.buf,n&-1,this.pos),ju(this.buf,Math.floor(n*QC),this.pos+4),this.pos+=8},writeVarint:function(n){if(n=+n||0,n>268435455||n<0){N8(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(!!n)},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var t=this.pos;this.pos=J8(this.buf,n,this.pos);var e=this.pos-t;e>=128&&eE(t,e,this),this.pos=t-1,this.writeVarint(e),this.pos+=e},writeFloat:function(n){this.realloc(4),kp.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),kp.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var t=n.length;this.writeVarint(t),this.realloc(t);for(var e=0;e<t;e++)this.buf[this.pos++]=n[e]},writeRawMessage:function(n,t){this.pos++;var e=this.pos;n(t,this);var r=this.pos-e;r>=128&&eE(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeMessage:function(n,t,e){this.writeTag(n,zt.Bytes),this.writeRawMessage(t,e)},writePackedVarint:function(n,t){t.length&&this.writeMessage(n,G8,t)},writePackedSVarint:function(n,t){t.length&&this.writeMessage(n,B8,t)},writePackedBoolean:function(n,t){t.length&&this.writeMessage(n,Y8,t)},writePackedFloat:function(n,t){t.length&&this.writeMessage(n,V8,t)},writePackedDouble:function(n,t){t.length&&this.writeMessage(n,W8,t)},writePackedFixed32:function(n,t){t.length&&this.writeMessage(n,H8,t)},writePackedSFixed32:function(n,t){t.length&&this.writeMessage(n,U8,t)},writePackedFixed64:function(n,t){t.length&&this.writeMessage(n,X8,t)},writePackedSFixed64:function(n,t){t.length&&this.writeMessage(n,j8,t)},writeBytesField:function(n,t){this.writeTag(n,zt.Bytes),this.writeBytes(t)},writeFixed32Field:function(n,t){this.writeTag(n,zt.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(n,t){this.writeTag(n,zt.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(n,t){this.writeTag(n,zt.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(n,t){this.writeTag(n,zt.Fixed64),this.writeSFixed64(t)},writeVarintField:function(n,t){this.writeTag(n,zt.Varint),this.writeVarint(t)},writeSVarintField:function(n,t){this.writeTag(n,zt.Varint),this.writeSVarint(t)},writeStringField:function(n,t){this.writeTag(n,zt.Bytes),this.writeString(t)},writeFloatField:function(n,t){this.writeTag(n,zt.Fixed32),this.writeFloat(t)},writeDoubleField:function(n,t){this.writeTag(n,zt.Fixed64),this.writeDouble(t)},writeBooleanField:function(n,t){this.writeVarintField(n,!!t)}};function R8(n,t,e){var r=e.buf,i,a;if(a=r[e.pos++],i=(a&112)>>4,a<128||(a=r[e.pos++],i|=(a&127)<<3,a<128)||(a=r[e.pos++],i|=(a&127)<<10,a<128)||(a=r[e.pos++],i|=(a&127)<<17,a<128)||(a=r[e.pos++],i|=(a&127)<<24,a<128)||(a=r[e.pos++],i|=(a&1)<<31,a<128))return Xu(n,i,t);throw new Error("Expected varint not more than 10 bytes")}function eo(n){return n.type===zt.Bytes?n.readVarint()+n.pos:n.pos+1}function Xu(n,t,e){return e?t*4294967296+(n>>>0):(t>>>0)*4294967296+(n>>>0)}function N8(n,t){var e,r;if(n>=0?(e=n%4294967296|0,r=n/4294967296|0):(e=~(-n%4294967296),r=~(-n/4294967296),e^4294967295?e=e+1|0:(e=0,r=r+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),F8(e,r,t),z8(r,t)}function F8(n,t,e){e.buf[e.pos++]=n&127|128,n>>>=7,e.buf[e.pos++]=n&127|128,n>>>=7,e.buf[e.pos++]=n&127|128,n>>>=7,e.buf[e.pos++]=n&127|128,n>>>=7,e.buf[e.pos]=n&127}function z8(n,t){var e=(n&7)<<4;t.buf[t.pos++]|=e|((n>>>=3)?128:0),n&&(t.buf[t.pos++]=n&127|((n>>>=7)?128:0),n&&(t.buf[t.pos++]=n&127|((n>>>=7)?128:0),n&&(t.buf[t.pos++]=n&127|((n>>>=7)?128:0),n&&(t.buf[t.pos++]=n&127|((n>>>=7)?128:0),n&&(t.buf[t.pos++]=n&127)))))}function eE(n,t,e){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(Math.LN2*7));e.realloc(r);for(var i=e.pos-1;i>=n;i--)e.buf[i+r]=e.buf[i]}function G8(n,t){for(var e=0;e<n.length;e++)t.writeVarint(n[e])}function B8(n,t){for(var e=0;e<n.length;e++)t.writeSVarint(n[e])}function V8(n,t){for(var e=0;e<n.length;e++)t.writeFloat(n[e])}function W8(n,t){for(var e=0;e<n.length;e++)t.writeDouble(n[e])}function Y8(n,t){for(var e=0;e<n.length;e++)t.writeBoolean(n[e])}function H8(n,t){for(var e=0;e<n.length;e++)t.writeFixed32(n[e])}function U8(n,t){for(var e=0;e<n.length;e++)t.writeSFixed32(n[e])}function X8(n,t){for(var e=0;e<n.length;e++)t.writeFixed64(n[e])}function j8(n,t){for(var e=0;e<n.length;e++)t.writeSFixed64(n[e])}function Op(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16)+n[t+3]*16777216}function ju(n,t,e){n[e]=t,n[e+1]=t>>>8,n[e+2]=t>>>16,n[e+3]=t>>>24}function tE(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16)+(n[t+3]<<24)}function Z8(n,t,e){for(var r="",i=t;i<e;){var a=n[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s>e)break;var l,u,c;s===1?a<128&&(o=a):s===2?(l=n[i+1],(l&192)===128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=n[i+1],u=n[i+2],(l&192)===128&&(u&192)===128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=n[i+1],u=n[i+2],c=n[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,r+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),r+=String.fromCharCode(o),i+=s}return r}function K8(n,t,e){return $C.decode(n.subarray(t,e))}function J8(n,t,e){for(var r=0,i,a;r<t.length;r++){if(i=t.charCodeAt(r),i>55295&&i<57344)if(a)if(i<56320){n[e++]=239,n[e++]=191,n[e++]=189,a=i;continue}else i=a-55296<<10|i-56320|65536,a=null;else{i>56319||r+1===t.length?(n[e++]=239,n[e++]=191,n[e++]=189):a=i;continue}else a&&(n[e++]=239,n[e++]=191,n[e++]=189,a=null);i<128?n[e++]=i:(i<2048?n[e++]=i>>6|192:(i<65536?n[e++]=i>>12|224:(n[e++]=i>>18|240,n[e++]=i>>12&63|128),n[e++]=i>>6&63|128),n[e++]=i&63|128)}return e}const q8=qC(k8);var Q8=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$8=function(n){Q8(t,n);function t(e){var r=n.call(this)||this;return r.geometries_=e||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return t.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(Ut),this.changeEventsKeys_.length=0},t.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var e=0,r=this.geometries_.length;e<r;++e)this.changeEventsKeys_.push(pt(this.geometries_[e],tt.CHANGE,this.changed,this))},t.prototype.clone=function(){var e=new t(null);return e.setGeometries(this.geometries_),e.applyProperties(this),e},t.prototype.closestPointXY=function(e,r,i,a){if(a<Vs(this.getExtent(),e,r))return a;for(var o=this.geometries_,s=0,l=o.length;s<l;++s)a=o[s].closestPointXY(e,r,i,a);return a},t.prototype.containsXY=function(e,r){for(var i=this.geometries_,a=0,o=i.length;a<o;++a)if(i[a].containsXY(e,r))return!0;return!1},t.prototype.computeExtent=function(e){yh(e);for(var r=this.geometries_,i=0,a=r.length;i<a;++i)WA(e,r[i].getExtent());return e},t.prototype.getGeometries=function(){return rE(this.geometries_)},t.prototype.getGeometriesArray=function(){return this.geometries_},t.prototype.getGeometriesArrayRecursive=function(){for(var e=[],r=this.geometries_,i=0,a=r.length;i<a;++i)r[i].getType()===this.getType()?e=e.concat(r[i].getGeometriesArrayRecursive()):e.push(r[i]);return e},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var r=[],i=this.geometries_,a=!1,o=0,s=i.length;o<s;++o){var l=i[o],u=l.getSimplifiedGeometry(e);r.push(u),u!==l&&(a=!0)}if(a){var c=new t(null);return c.setGeometriesArray(r),c}else return this.simplifiedGeometryMaxMinSquaredTolerance=e,this},t.prototype.getType=function(){return J.GEOMETRY_COLLECTION},t.prototype.intersectsExtent=function(e){for(var r=this.geometries_,i=0,a=r.length;i<a;++i)if(r[i].intersectsExtent(e))return!0;return!1},t.prototype.isEmpty=function(){return this.geometries_.length===0},t.prototype.rotate=function(e,r){for(var i=this.geometries_,a=0,o=i.length;a<o;++a)i[a].rotate(e,r);this.changed()},t.prototype.scale=function(e,r,i){var a=i;a||(a=Ha(this.getExtent()));for(var o=this.geometries_,s=0,l=o.length;s<l;++s)o[s].scale(e,r,a);this.changed()},t.prototype.setGeometries=function(e){this.setGeometriesArray(rE(e))},t.prototype.setGeometriesArray=function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()},t.prototype.applyTransform=function(e){for(var r=this.geometries_,i=0,a=r.length;i<a;++i)r[i].applyTransform(e);this.changed()},t.prototype.translate=function(e,r){for(var i=this.geometries_,a=0,o=i.length;a<o;++a)i[a].translate(e,r);this.changed()},t.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),n.prototype.disposeInternal.call(this)},t}(TT);function rE(n){for(var t=[],e=0,r=n.length;e<r;++e)t.push(n[e].clone());return t}var nE=Or(),Zu=function(){function n(t,e,r,i,a){this.styleFunction,this.extent_,this.id_=a,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=i}return n.prototype.get=function(t){return this.properties_[t]},n.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===J.POINT?Eu(this.flatCoordinates_):om(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},n.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Ha(this.getExtent());this.flatInteriorPoints_=Km(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},n.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=rC(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=kT(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},n.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=pp(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},n.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,r=this.ends_,i=0,a=r.length;i<a;++i){var o=r[i],s=pp(t,e,o,2,.5);si(this.flatMidpoints_,s),e=o}}return this.flatMidpoints_},n.prototype.getId=function(){return this.id_},n.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},n.prototype.getGeometry=function(){return this},n.prototype.getSimplifiedGeometry=function(t){return this},n.prototype.simplifyTransformed=function(t,e){return this},n.prototype.getProperties=function(){return this.properties_},n.prototype.getStride=function(){return 2},n.prototype.getStyleFunction=function(){return this.styleFunction},n.prototype.getType=function(){return this.type_},n.prototype.transform=function(t){t=gr(t);var e=t.getExtent(),r=t.getWorldExtent();if(e&&r){var i=jn(r)/jn(e);ui(nE,r[0],r[3],i,-i,0,0,0),Bo(this.flatCoordinates_,0,this.flatCoordinates_.length,2,nE,this.flatCoordinates_)}},n.prototype.getEnds=function(){return this.ends_},n}();Zu.prototype.getEndss=Zu.prototype.getEnds,Zu.prototype.getFlatCoordinates=Zu.prototype.getOrientedFlatCoordinates;var e6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),t6=function(n){e6(t,n);function t(e){var r=n.call(this)||this,i=e||{};return r.dataProjection=new Am({code:"",units:wn.TILE_PIXELS}),r.featureClass_=i.featureClass?i.featureClass:Zu,r.geometryName_=i.geometryName,r.layerName_=i.layerName?i.layerName:"layer",r.layers_=i.layers?i.layers:null,r.idProperty_=i.idProperty,r.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],r}return t.prototype.readRawGeometry_=function(e,r,i,a){e.pos=r.geometry;for(var o=e.readVarint()+e.pos,s=1,l=0,u=0,c=0,h=0,f=0;e.pos<o;){if(!l){var d=e.readVarint();s=d&7,l=d>>3}l--,s===1||s===2?(u+=e.readSVarint(),c+=e.readSVarint(),s===1&&h>f&&(a.push(h),f=h),i.push(u,c),h+=2):s===7?h>f&&(i.push(i[f],i[f+1]),h+=2):yt(!1,59)}h>f&&(a.push(h),f=h)},t.prototype.createFeature_=function(e,r,i){var a=r.type;if(a===0)return null;var o,s=r.properties,l;this.idProperty_?(l=s[this.idProperty_],delete s[this.idProperty_]):l=r.id,s[this.layerName_]=r.layer.name;var u=[],c=[];this.readRawGeometry_(e,r,u,c);var h=o6(a,c.length);if(this.featureClass_===Zu)o=new this.featureClass_(h,u,c,s,l),o.transform(i.dataProjection);else{var f=void 0;if(h==J.POLYGON){var d=AB(u,c);f=d.length>1?new h0(u,qt.XY,d):new Kn(u,qt.XY,c)}else f=h===J.POINT?new Kr(u,qt.XY):h===J.LINE_STRING?new Bi(u,qt.XY):h===J.POLYGON?new Kn(u,qt.XY,c):h===J.MULTI_POINT?new vp(u,qt.XY):h===J.MULTI_LINE_STRING?new c0(u,qt.XY,c):null;var p=this.featureClass_;o=new p,this.geometryName_&&o.setGeometryName(this.geometryName_);var v=G0(f,!1,i);o.setGeometry(v),l!==void 0&&o.setId(l),o.setProperties(s,!0)}return o},t.prototype.getType=function(){return nl.ARRAY_BUFFER},t.prototype.readFeatures=function(e,r){var i=this.layers_,a=this.adaptOptions(r),o=gr(a.dataProjection);o.setWorldExtent(a.extent),a.dataProjection=o;var s=new q8(e),l=s.readFields(r6,{}),u=[];for(var c in l)if(!(i&&i.indexOf(c)==-1)){var h=l[c],f=h?[0,0,h.extent,h.extent]:null;o.setExtent(f);for(var d=0,p=h.length;d<p;++d){var v=a6(s,h,d),g=this.createFeature_(s,v,a);g!==null&&u.push(g)}}return u},t.prototype.readProjection=function(e){return this.dataProjection},t.prototype.setLayers=function(e){this.layers_=e},t}(JC);function r6(n,t,e){if(n===3){var r={keys:[],values:[],features:[]},i=e.readVarint()+e.pos;e.readFields(n6,r,i),r.length=r.features.length,r.length&&(t[r.name]=r)}}function n6(n,t,e){if(n===15)t.version=e.readVarint();else if(n===1)t.name=e.readString();else if(n===5)t.extent=e.readVarint();else if(n===2)t.features.push(e.pos);else if(n===3)t.keys.push(e.readString());else if(n===4){for(var r=null,i=e.readVarint()+e.pos;e.pos<i;)n=e.readVarint()>>3,r=n===1?e.readString():n===2?e.readFloat():n===3?e.readDouble():n===4?e.readVarint64():n===5?e.readVarint():n===6?e.readSVarint():n===7?e.readBoolean():null;t.values.push(r)}}function i6(n,t,e){if(n==1)t.id=e.readVarint();else if(n==2)for(var r=e.readVarint()+e.pos;e.pos<r;){var i=t.layer.keys[e.readVarint()],a=t.layer.values[e.readVarint()];t.properties[i]=a}else n==3?t.type=e.readVarint():n==4&&(t.geometry=e.pos)}function a6(n,t,e){n.pos=t.features[e];var r=n.readVarint()+n.pos,i={layer:t,type:0,properties:{}};return n.readFields(i6,i,r),i}function o6(n,t){var e;return n===1?e=t===1?J.POINT:J.MULTI_POINT:n===2?e=t===1?J.LINE_STRING:J.MULTI_LINE_STRING:n===3&&(e=J.POLYGON),e}const Jo={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};var s6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),l6={image:[Tt.POLYGON,Tt.CIRCLE,Tt.LINE_STRING,Tt.IMAGE,Tt.TEXT],hybrid:[Tt.POLYGON,Tt.LINE_STRING],vector:[]},u6={hybrid:[Tt.IMAGE,Tt.TEXT,Tt.DEFAULT],vector:[Tt.POLYGON,Tt.CIRCLE,Tt.LINE_STRING,Tt.IMAGE,Tt.TEXT,Tt.DEFAULT]},c6=function(n){s6(t,n);function t(e){var r=n.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.dirty_=!1,r.renderedLayerRevision_,r.renderedPixelToCoordinateTransform_=null,r.renderedRotation_,r.tmpTransform_=Or(),r}return t.prototype.prepareTile=function(e,r,i){var a,o=e.getState();return(o===De.LOADED||o===De.ERROR)&&(this.updateExecutorGroup_(e,r,i),this.tileImageNeedsRender_(e)&&(a=!0)),a},t.prototype.getTile=function(e,r,i,a){var o=a.pixelRatio,s=a.viewState,l=s.resolution,u=s.projection,c=this.getLayer(),h=c.getSource().getTile(e,r,i,o,u),f=a.viewHints,d=!(f[lr.ANIMATING]||f[lr.INTERACTING]);(d||!h.wantedResolution)&&(h.wantedResolution=l);var p=this.prepareTile(h,o,u);return p&&(d||Date.now()-a.time<8)&&c.getRenderMode()!==Jo.VECTOR&&this.renderTileImage_(h,a),n.prototype.getTile.call(this,e,r,i,a)},t.prototype.isDrawableTile=function(e){var r=this.getLayer();return n.prototype.isDrawableTile.call(this,e)&&(r.getRenderMode()===Jo.VECTOR?Fe(r)in e.executorGroups:e.hasContext(r))},t.prototype.getTileImage=function(e){return e.getImage(this.getLayer())},t.prototype.prepareFrame=function(e){var r=this.getLayer().getRevision();return this.renderedLayerRevision_!=r&&(this.renderedTiles.length=0),this.renderedLayerRevision_=r,n.prototype.prepareFrame.call(this,e)},t.prototype.updateExecutorGroup_=function(e,r,i){var a=this.getLayer(),o=a.getRevision(),s=a.getRenderOrder()||null,l=e.wantedResolution,u=e.getReplayState(a);if(!(!u.dirty&&u.renderedResolution===l&&u.renderedRevision==o&&u.renderedRenderOrder==s)){var c=a.getSource(),h=a.getDeclutter(),f=c.getTileGrid(),d=c.getTileGridForProjection(i),p=d.getTileCoordExtent(e.wrappedTileCoord),v=c.getSourceTiles(r,i,e),g=Fe(a);delete e.hitDetectionImageData[g],e.executorGroups[g]=[],h&&(e.declutterExecutorGroups[g]=[]);for(var y=function(b,w){var S=v[b];if(S.getState()!=De.LOADED)return"continue";var A=S.tileCoord,T=f.getTileCoordExtent(A),C=Ys(p,T),E=bn(C,a.getRenderBuffer()*l,m.tmpExtent),M=Ws(T,C)?null:E;u.dirty=!1;var D=new bp(0,E,l,r),L=h?new bp(0,C,l,r):void 0,P=bC(l,r),k=function(Q){var de,Ae=Q.getStyleFunction()||a.getStyleFunction();if(Ae&&(de=Ae(Q,l)),de){var le=this.renderFeature(Q,P,de,D,L);this.dirty_=this.dirty_||le,u.dirty=u.dirty||le}},R=S.getFeatures();s&&s!==u.renderedRenderOrder&&R.sort(s);for(var F=0,z=R.length;F<z;++F){var W=R[F];(!M||_r(M,W.getGeometry().getExtent()))&&k.call(m,W)}var O=D.finish(),N=a.getRenderMode()!==Jo.VECTOR&&h&&v.length===1?null:C,X=new wp(N,l,r,c.getOverlaps(),O,a.getRenderBuffer());if(e.executorGroups[g].push(X),L){var j=new wp(null,l,r,c.getOverlaps(),L.finish(),a.getRenderBuffer());e.declutterExecutorGroups[g].push(j)}},m=this,_=0,x=v.length;_<x;++_)y(_);u.renderedRevision=o,u.renderedRenderOrder=s,u.renderedResolution=l}},t.prototype.forEachFeatureAtCoordinate=function(e,r,i,a,o){var s=r.viewState.resolution,l=r.viewState.rotation;i=i??0;var u=this.getLayer(),c=u.getSource(),h=c.getTileGridForProjection(r.viewState.projection),f=xn([e]);bn(f,s*i,f);for(var d={},p=function(x,b,w){var S=x.getId();S===void 0&&(S=Fe(x));var A=d[S];if(A){if(A!==!0&&w<A.distanceSq){if(w===0)return d[S]=!0,o.splice(o.lastIndexOf(A),1),a(x,u,b);A.geometry=b,A.distanceSq=w}}else{if(w===0)return d[S]=!0,a(x,u,b);o.push(d[S]={feature:x,layer:u,geometry:b,distanceSq:w,callback:a})}},v=this.renderedTiles,g,y=function(x,b){var w=v[x],S=h.getTileCoordExtent(w.wrappedTileCoord);if(!_r(S,f))return"continue";var A=Fe(u),T=[w.executorGroups[A]],C=w.declutterExecutorGroups[A];C&&T.push(C),T.some(function(E){for(var M=E===C?r.declutterTree.all().map(function(k){return k.value}):null,D=0,L=E.length;D<L;++D){var P=E[D];if(g=P.forEachFeatureAtCoordinate(e,s,l,i,p,M),g)return!0}})},m=0,_=v.length;!g&&m<_;++m)y(m);return g},t.prototype.getFeatures=function(e){return new Promise((function(r,i){for(var a=this.getLayer(),o=Fe(a),s=a.getSource(),l=this.renderedProjection,u=l.getExtent(),c=this.renderedResolution,h=s.getTileGridForProjection(l),f=ir(this.renderedPixelToCoordinateTransform_,e.slice()),d=h.getTileCoordForCoordAndResolution(f,c),p,v=0,g=this.renderedTiles.length;v<g;++v)if(d.toString()===this.renderedTiles[v].tileCoord.toString()){if(p=this.renderedTiles[v],p.getState()===De.LOADED){var y=h.getTileCoordExtent(p.tileCoord);s.getWrapX()&&l.canWrapX()&&!ko(u,y)&&ym(f,l);break}p=void 0}if(!p||p.loadingSourceTiles>0){r([]);return}var m=h.getTileCoordExtent(p.wrappedTileCoord),_=Oo(m),x=[(f[0]-_[0])/c,(_[1]-f[1])/c],b=p.getSourceTiles().reduce(function(C,E){return C.concat(E.getFeatures())},[]),w=p.hitDetectionImageData[o];if(!w&&!this.animatingOrInteracting_){var S=Jr(h.getTileSize(h.getZForResolution(c))),A=this.renderedRotation_,T=[this.getRenderTransform(h.getTileCoordCenter(p.wrappedTileCoord),c,0,qn,S[0]*qn,S[1]*qn,0)];w=mC(S,T,b,a.getStyleFunction(),h.getTileCoordExtent(p.wrappedTileCoord),p.getReplayState(a).renderedResolution,A),p.hitDetectionImageData[o]=w}r(_C(x,b,w))}).bind(this))},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.renderedLayerRevision_!==void 0&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.renderDeclutter=function(e){var r=this.context,i=r.globalAlpha;r.globalAlpha=this.getLayer().getOpacity();for(var a=e.viewHints,o=!(a[lr.ANIMATING]||a[lr.INTERACTING]),s=this.renderedTiles,l=0,u=s.length;l<u;++l){var c=s[l],h=c.declutterExecutorGroups[Fe(this.getLayer())];if(h)for(var f=h.length-1;f>=0;--f)h[f].execute(this.context,1,this.getTileRenderTransform(c,e),e.viewState.rotation,o,void 0,e.declutterTree)}r.globalAlpha=i},t.prototype.getTileRenderTransform=function(e,r){var i=r.pixelRatio,a=r.viewState,o=a.center,s=a.resolution,l=a.rotation,u=r.size,c=Math.round(u[0]*i),h=Math.round(u[1]*i),f=this.getLayer().getSource(),d=f.getTileGridForProjection(r.viewState.projection),p=e.tileCoord,v=d.getTileCoordExtent(e.wrappedTileCoord),g=d.getTileCoordExtent(p,this.tmpExtent)[0]-v[0],y=Tu(Vd(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(o,s,l,i,c,h,g));return y},t.prototype.renderFrame=function(e,r){var i=e.viewHints,a=!(i[lr.ANIMATING]||i[lr.INTERACTING]);n.prototype.renderFrame.call(this,e,r),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),s=o.getRenderMode(),l=this.context,u=l.globalAlpha;l.globalAlpha=o.getOpacity();for(var c=u6[s],h=e.viewState,f=h.rotation,d=o.getSource(),p=d.getTileGridForProjection(h.projection),v=p.getZForResolution(h.resolution,d.zDirection),g=this.renderedTiles,y=[],m=[],_=g.length-1;_>=0;--_){var x=g[_],b=x.executorGroups[Fe(o)].filter(function(k){return k.hasExecutors(c)});if(b.length!==0){for(var w=this.getTileRenderTransform(x,e),S=x.tileCoord[0],A=!1,T=b[0].getClipCoords(w),C=0,E=y.length;C<E;++C)if(v!==S&&S<m[C]){var M=y[C];_r([T[0],T[3],T[4],T[7]],[M[0],M[3],M[4],M[7]])&&(A||(l.save(),A=!0),l.beginPath(),l.moveTo(T[0],T[1]),l.lineTo(T[2],T[3]),l.lineTo(T[4],T[5]),l.lineTo(T[6],T[7]),l.moveTo(M[6],M[7]),l.lineTo(M[4],M[5]),l.lineTo(M[2],M[3]),l.lineTo(M[0],M[1]),l.clip())}y.push(T),m.push(S);for(var D=0,L=b.length;D<L;++D){var P=b[D];P.execute(l,1,w,f,a,c)}A&&l.restore()}}return l.globalAlpha=u,this.container},t.prototype.renderFeature=function(e,r,i,a,o){if(!i)return!1;var s=!1;if(Array.isArray(i))for(var l=0,u=i.length;l<u;++l)s=Sp(a,e,i[l],r,this.boundHandleStyleImageChange_,void 0,o)||s;else s=Sp(a,e,i,r,this.boundHandleStyleImageChange_,void 0,o);return s},t.prototype.tileImageNeedsRender_=function(e){var r=this.getLayer();if(r.getRenderMode()===Jo.VECTOR)return!1;var i=e.getReplayState(r),a=r.getRevision(),o=e.wantedResolution;return i.renderedTileResolution!==o||i.renderedTileRevision!==a},t.prototype.renderTileImage_=function(e,r){var i=this.getLayer(),a=e.getReplayState(i),o=i.getRevision(),s=e.executorGroups[Fe(i)];a.renderedTileRevision=o;var l=e.wrappedTileCoord,u=l[0],c=i.getSource(),h=r.pixelRatio,f=r.viewState,d=f.projection,p=c.getTileGridForProjection(d),v=p.getResolution(e.tileCoord[0]),g=r.pixelRatio/e.wantedResolution*v,y=p.getResolution(u),m=e.getContext(i);h=Math.round(Math.max(h,g/h));var _=c.getTilePixelSize(u,h,d);m.canvas.width=_[0],m.canvas.height=_[1];var x=h/g;if(x!==1){var b=vh(this.tmpTransform_);Vd(b,x,x),m.setTransform.apply(m,b)}var w=p.getTileCoordExtent(l,this.tmpExtent),S=g/y,A=vh(this.tmpTransform_);Vd(A,S,-S),Oz(A,-w[0],-w[3]);for(var T=0,C=s.length;T<C;++T){var E=s[T];E.execute(m,x,A,0,!0,l6[i.getRenderMode()])}a.renderedTileResolution=e.wantedResolution},t}(WC),h6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),f6=function(n){h6(t,n);function t(e){var r=this,i=e||{},a=Bt({},i);delete a.preload,delete a.useInterimTilesOnError,r=n.call(this,a)||this,r.on,r.once,r.un,i.renderMode===Jo.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),i.renderMode=void 0);var o=i.renderMode||Jo.HYBRID;return yt(o==Jo.HYBRID||o==Jo.VECTOR,28),r.renderMode_=o,r.setPreload(i.preload?i.preload:0),r.setUseInterimTilesOnError(i.useInterimTilesOnError!==void 0?i.useInterimTilesOnError:!0),r.getBackground,r.setBackground,r}return t.prototype.createRenderer=function(){return new c6(this)},t.prototype.getFeatures=function(e){return n.prototype.getFeatures.call(this,e)},t.prototype.getRenderMode=function(){return this.renderMode_},t.prototype.getPreload=function(){return this.get(Ko.PRELOAD)},t.prototype.getUseInterimTilesOnError=function(){return this.get(Ko.USE_INTERIM_TILES_ON_ERROR)},t.prototype.setPreload=function(e){this.set(Ko.PRELOAD,e)},t.prototype.setUseInterimTilesOnError=function(e){this.set(Ko.USE_INTERIM_TILES_ON_ERROR,e)},t}(mp),d6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),p6=function(n){d6(t,n);function t(e,r,i,a,o,s){var l=n.call(this,e,r,s)||this;return l.extent=null,l.format_=a,l.features_=null,l.loader_,l.projection=null,l.resolution,l.tileLoadFunction_=o,l.url_=i,l.key=i,l}return t.prototype.getFormat=function(){return this.format_},t.prototype.getFeatures=function(){return this.features_},t.prototype.load=function(){this.state==De.IDLE&&(this.setState(De.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},t.prototype.onLoad=function(e,r){this.setFeatures(e)},t.prototype.onError=function(){this.setState(De.ERROR)},t.prototype.setFeatures=function(e){this.features_=e,this.setState(De.LOADED)},t.prototype.setLoader=function(e){this.loader_=e},t}(Mp),v6=function(){function n(t){this.highWaterMark=t!==void 0?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return n.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},n.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},n.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},n.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},n.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},n.prototype.get=function(t,e){var r=this.entries_[t];return yt(r!==void 0,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},n.prototype.remove=function(t){var e=this.entries_[t];return yt(e!==void 0,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},n.prototype.getCount=function(){return this.count_},n.prototype.getKeys=function(){var t=new Array(this.count_),e=0,r;for(r=this.newest_;r;r=r.older)t[e++]=r.key_;return t},n.prototype.getValues=function(){var t=new Array(this.count_),e=0,r;for(r=this.newest_;r;r=r.older)t[e++]=r.value_;return t},n.prototype.peekLast=function(){return this.oldest_.value_},n.prototype.peekLastKey=function(){return this.oldest_.key_},n.prototype.peekFirstKey=function(){return this.newest_.key_},n.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},n.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},n.prototype.set=function(t,e){yt(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},n.prototype.setSize=function(t){this.highWaterMark=t},n}();function iE(n,t,e,r){return r!==void 0?(r[0]=n,r[1]=t,r[2]=e,r):[n,t,e]}function Ku(n,t,e){return n+"/"+t+"/"+e}function aE(n){return Ku(n[0],n[1],n[2])}function g6(n){var t=n.substring(n.lastIndexOf("/")+1,n.length).split(",").map(Number),e=t[0],r=t[1],i=t[2];return Ku(e,r,i)}function oE(n){return n.split("/").map(Number)}function sE(n){return(n[1]<<n[0])+n[2]}function y6(n,t){var e=n[0],r=n[1],i=n[2];if(t.getMinZoom()>e||e>t.getMaxZoom())return!1;var a=t.getFullTileRange(e);return a?a.containsXY(r,i):!0}var m6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),W0=function(n){m6(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.expireCache=function(e){for(;this.canExpireCache();){var r=this.peekLast();if(r.getKey()in e)break;this.pop().release()}},t.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var e=this.peekFirstKey(),r=oE(e),i=r[0];this.forEach((function(a){a.tileCoord[0]!==i&&(this.remove(aE(a.tileCoord)),a.release())}).bind(this))}},t}(v6);const Y0={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};var _6=[0,0,0],qo=5,lE=function(){function n(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,yt(bz(this.resolutions_,function(o,s){return s-o}),17);var e;if(!t.origins){for(var r=0,i=this.resolutions_.length-1;r<i;++r)if(!e)e=this.resolutions_[r]/this.resolutions_[r+1];else if(this.resolutions_[r]/this.resolutions_[r+1]!==e){e=void 0;break}}this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=t.origin!==void 0?t.origin:null,this.origins_=null,t.origins!==void 0&&(this.origins_=t.origins,yt(this.origins_.length==this.resolutions_.length,20));var a=t.extent;a!==void 0&&!this.origin_&&!this.origins_&&(this.origin_=Oo(a)),yt(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,t.tileSizes!==void 0&&(this.tileSizes_=t.tileSizes,yt(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=t.tileSize!==void 0?t.tileSize:this.tileSizes_?null:Sm,yt(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=a!==void 0?a:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],t.sizes!==void 0?this.fullTileRanges_=t.sizes.map(function(o,s){var l=new P0(Math.min(0,o[0]),Math.max(o[0]-1,-1),Math.min(0,o[1]),Math.max(o[1]-1,-1));if(a){var u=this.getTileRangeForExtentAndZ(a,s);l.minX=Math.max(u.minX,l.minX),l.maxX=Math.min(u.maxX,l.maxX),l.minY=Math.max(u.minY,l.minY),l.maxY=Math.min(u.maxY,l.maxY)}return l},this):a&&this.calculateTileRanges_(a)}return n.prototype.forEachTileCoord=function(t,e,r){for(var i=this.getTileRangeForExtentAndZ(t,e),a=i.minX,o=i.maxX;a<=o;++a)for(var s=i.minY,l=i.maxY;s<=l;++s)r([e,a,s])},n.prototype.forEachTileCoordParentTileRange=function(t,e,r,i){var a,o,s,l=null,u=t[0]-1;for(this.zoomFactor_===2?(o=t[1],s=t[2]):l=this.getTileCoordExtent(t,i);u>=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=Hu(o,o,s,s,r)):a=this.getTileRangeForExtentAndZ(l,u,r),e(u,a))return!0;--u}return!1},n.prototype.getExtent=function(){return this.extent_},n.prototype.getMaxZoom=function(){return this.maxZoom},n.prototype.getMinZoom=function(){return this.minZoom},n.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},n.prototype.getResolution=function(t){return this.resolutions_[t]},n.prototype.getResolutions=function(){return this.resolutions_},n.prototype.getTileCoordChildTileRange=function(t,e,r){if(t[0]<this.maxZoom){if(this.zoomFactor_===2){var i=t[1]*2,a=t[2]*2;return Hu(i,i+1,a,a+1,e)}var o=this.getTileCoordExtent(t,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},n.prototype.getTileRangeForTileCoordAndZ=function(t,e,r){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],a=t[1],o=t[2];if(e===i)return Hu(a,o,a,o,r);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,e-i),l=Math.floor(a*s),u=Math.floor(o*s);if(e<i)return Hu(l,l,u,u,r);var c=Math.floor(s*(a+1))-1,h=Math.floor(s*(o+1))-1;return Hu(l,c,u,h,r)}var f=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(f,e,r)},n.prototype.getTileRangeExtent=function(t,e,r){var i=this.getOrigin(t),a=this.getResolution(t),o=Jr(this.getTileSize(t),this.tmpSize_),s=i[0]+e.minX*o[0]*a,l=i[0]+(e.maxX+1)*o[0]*a,u=i[1]+e.minY*o[1]*a,c=i[1]+(e.maxY+1)*o[1]*a;return Fi(s,u,l,c,r)},n.prototype.getTileRangeForExtentAndZ=function(t,e,r){var i=_6;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var a=i[1],o=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),Hu(a,i[1],o,i[2],r)},n.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),r=this.getResolution(t[0]),i=Jr(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*r,e[1]-(t[2]+.5)*i[1]*r]},n.prototype.getTileCoordExtent=function(t,e){var r=this.getOrigin(t[0]),i=this.getResolution(t[0]),a=Jr(this.getTileSize(t[0]),this.tmpSize_),o=r[0]+t[1]*a[0]*i,s=r[1]-(t[2]+1)*a[1]*i,l=o+a[0]*i,u=s+a[1]*i;return Fi(o,s,l,u,e)},n.prototype.getTileCoordForCoordAndResolution=function(t,e,r){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,r)},n.prototype.getTileCoordForXYAndResolution_=function(t,e,r,i,a){var o=this.getZForResolution(r),s=r/this.getResolution(o),l=this.getOrigin(o),u=Jr(this.getTileSize(o),this.tmpSize_),c=s*(t-l[0])/r/u[0],h=s*(l[1]-e)/r/u[1];return i?(c=Hd(c,qo)-1,h=Hd(h,qo)-1):(c=Yd(c,qo),h=Yd(h,qo)),iE(o,c,h,a)},n.prototype.getTileCoordForXYAndZ_=function(t,e,r,i,a){var o=this.getOrigin(r),s=this.getResolution(r),l=Jr(this.getTileSize(r),this.tmpSize_),u=(t-o[0])/s/l[0],c=(o[1]-e)/s/l[1];return i?(u=Hd(u,qo)-1,c=Hd(c,qo)-1):(u=Yd(u,qo),c=Yd(c,qo)),iE(r,u,c,a)},n.prototype.getTileCoordForCoordAndZ=function(t,e,r){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,r)},n.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},n.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},n.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},n.prototype.getZForResolution=function(t,e){var r=rm(this.resolutions_,t,e||0);return xr(r,this.minZoom,this.maxZoom)},n.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,r=new Array(e),i=this.minZoom;i<e;++i)r[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=r},n}();function uE(n){var t=n.getDefaultTileGrid();return t||(t=fE(n),n.setDefaultTileGrid(t)),t}function x6(n,t,e){var r=t[0],i=n.getTileCoordCenter(t),a=Rp(e);if(Cu(a,i))return t;var o=pr(a),s=Math.ceil((a[0]-i[0])/o);return i[0]+=o*s,n.getTileCoordForCoordAndZ(i,r)}function b6(n,t,e,r){var i=hE(n,t,e);return new lE({extent:n,origin:zz(n),resolutions:i,tileSize:e})}function cE(n){var t=n||{},e=t.extent||gr("EPSG:3857").getExtent(),r={extent:e,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:hE(e,t.maxZoom,t.tileSize,t.maxResolution)};return new lE(r)}function hE(n,t,e,r){for(var i=t!==void 0?t:PG,a=jn(n),o=pr(n),s=Jr(e!==void 0?e:Sm),l=r>0?r:Math.max(o/s[0],a/s[1]),u=i+1,c=new Array(u),h=0;h<u;++h)c[h]=l/Math.pow(2,h);return c}function fE(n,t,e,r){var i=Rp(n);return b6(i,t,e)}function Rp(n){n=gr(n);var t=n.getExtent();if(!t){var e=180*zo[wn.DEGREES]/n.getMetersPerUnit();t=Fi(-e,-e,e,e)}return t}var dE=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),w6=function(n){dE(t,n);function t(e){var r=n.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;r.on,r.once,r.un,r.opaque_=e.opaque!==void 0?e.opaque:!1,r.tilePixelRatio_=e.tilePixelRatio!==void 0?e.tilePixelRatio:1,r.tileGrid=e.tileGrid!==void 0?e.tileGrid:null;var i=[256,256];return r.tileGrid&&Jr(r.tileGrid.getTileSize(r.tileGrid.getMinZoom()),i),r.tileCache=new W0(e.cacheSize||0),r.tmpSize=[0,0],r.key_=e.key||"",r.tileOptions={transition:e.transition,interpolate:e.interpolate},r.zDirection=e.zDirection?e.zDirection:0,r}return t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,r){var i=this.getTileCacheForProjection(e);i&&i.expireCache(r)},t.prototype.forEachLoadedTile=function(e,r,i,a){var o=this.getTileCacheForProjection(e);if(!o)return!1;for(var s=!0,l,u,c,h=i.minX;h<=i.maxX;++h)for(var f=i.minY;f<=i.maxY;++f)u=Ku(r,h,f),c=!1,o.containsKey(u)&&(l=o.get(u),c=l.getState()===De.LOADED,c&&(c=a(l)!==!1)),c||(s=!1);return s},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},t.prototype.getTile=function(e,r,i,a,o){return et()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:uE(e)},t.prototype.getTileCacheForProjection=function(e){return yt(qs(this.getProjection(),e),68),this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,r,i){var a=this.getTileGridForProjection(i),o=this.getTilePixelRatio(r),s=Jr(a.getTileSize(e),this.tmpSize);return o==1?s:WT(s,o,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,r){var i=r!==void 0?r:this.getProjection(),a=this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(e=x6(a,e,i)),y6(e,a)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),n.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,r){var i=this.getTileCacheForProjection(r);e>i.highWaterMark&&(i.highWaterMark=e)},t.prototype.useTile=function(e,r,i,a){},t}(SC),S6=function(n){dE(t,n);function t(e,r){var i=n.call(this,e)||this;return i.tile=r,i}return t}(Zn);function A6(n,t){var e=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,a=/\{-y\}/g;return function(o,s,l){if(o)return n.replace(e,o[0].toString()).replace(r,o[1].toString()).replace(i,o[2].toString()).replace(a,function(){var u=o[0],c=t.getFullTileRange(u);yt(c,55);var h=c.getHeight()-o[2]-1;return h.toString()})}}function T6(n,t){for(var e=n.length,r=new Array(e),i=0;i<e;++i)r[i]=A6(n[i],t);return H0(r)}function H0(n){return n.length===1?n[0]:function(t,e,r){if(t){var i=sE(t),a=Ro(i,n.length);return n[a](t,e,r)}else return}}function pE(n){var t=[],e=/\{([a-z])-([a-z])\}/.exec(n);if(e){var r=e[1].charCodeAt(0),i=e[2].charCodeAt(0),a=void 0;for(a=r;a<=i;++a)t.push(n.replace(e[0],String.fromCharCode(a)));return t}if(e=/\{(\d+)-(\d+)\}/.exec(n),e){for(var o=parseInt(e[2],10),s=parseInt(e[1],10);s<=o;s++)t.push(n.replace(e[0],s.toString()));return t}return t.push(n),t}var C6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vE=function(n){C6(t,n);function t(e){var r=n.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(r.tileUrlFunction=e.tileUrlFunction),r.urls=null,e.urls?r.setUrls(e.urls):e.url&&r.setUrl(e.url),r.tileLoadingKeys_={},r}return t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var r=e.target,i=Fe(r),a=r.getState(),o;a==De.LOADING?(this.tileLoadingKeys_[i]=!0,o=Y0.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],o=a==De.ERROR?Y0.TILELOADERROR:a==De.LOADED?Y0.TILELOADEND:void 0),o!=null&&this.dispatchEvent(new S6(o,r))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,r){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),typeof r<"u"?this.setKey(r):this.changed()},t.prototype.setUrl=function(e){var r=pE(e);this.urls=r,this.setUrls(r)},t.prototype.setUrls=function(e){this.urls=e;var r=e.join(`
127
127
  `);this.generateTileUrlFunction_?this.setTileUrlFunction(T6(e,this.tileGrid),r):this.setKey(r)},t.prototype.tileUrlFunction=function(e,r,i){},t.prototype.useTile=function(e,r,i){var a=Ku(e,r,i);this.tileCache.containsKey(a)&&this.tileCache.get(a)},t}(w6),E6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gE=[],I6=function(n){E6(t,n);function t(e,r,i,a){var o=n.call(this,e,r,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=a.bind(void 0,o),o.wrappedTileCoord=i,o}return t.prototype.getContext=function(e){var r=Fe(e);return r in this.context_||(this.context_[r]=Fn(1,1,gE)),this.context_[r]},t.prototype.hasContext=function(e){return Fe(e)in this.context_},t.prototype.getImage=function(e){return this.hasContext(e)?this.getContext(e).canvas:null},t.prototype.getReplayState=function(e){var r=Fe(e);return r in this.replayState_||(this.replayState_[r]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[r]},t.prototype.load=function(){this.getSourceTiles()},t.prototype.release=function(){for(var e in this.context_)gE.push(this.context_[e].canvas),delete this.context_[e];n.prototype.release.call(this)},t}(Mp),M6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),D6=function(n){M6(t,n);function t(e){var r=this,i=e.projection||"EPSG:3857",a=e.extent||Rp(i),o=e.tileGrid||cE({extent:a,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return r=n.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:i,state:e.state,tileGrid:o,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:L6,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection})||this,r.format_=e.format?e.format:null,r.sourceTileCache=new W0(r.tileCache.highWaterMark),r.overlaps_=e.overlaps==null?!0:e.overlaps,r.tileClass=e.tileClass?e.tileClass:p6,r.tileGrids_={},r}return t.prototype.getFeaturesInExtent=function(e){var r=[],i=this.tileCache;if(i.getCount()===0)return r;var a=oE(i.peekFirstKey())[0],o=this.tileGrid;return i.forEach(function(s){if(!(s.tileCoord[0]!==a||s.getState()!==De.LOADED))for(var l=s.getSourceTiles(),u=0,c=l.length;u<c;++u){var h=l[u],f=h.tileCoord;if(_r(e,o.getTileCoordExtent(f))){var d=h.getFeatures();if(d)for(var p=0,v=d.length;p<v;++p){var g=d[p],y=g.getGeometry();_r(e,y.getExtent())&&r.push(g)}}}}),r},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},t.prototype.expireCache=function(e,r){var i=this.getTileCacheForProjection(e),a=Object.keys(r).reduce(function(o,s){var l=g6(s);if(i.containsKey(l))for(var u=i.get(l).sourceTiles,c=0,h=u.length;c<h;++c)o[u[c].getKey()]=!0;return o},{});n.prototype.expireCache.call(this,e,r),this.sourceTileCache.expireCache(a)},t.prototype.getSourceTiles=function(e,r,i){var a=this;if(i.getState()===De.IDLE){i.setState(De.LOADING);var o=i.wrappedTileCoord,s=this.getTileGridForProjection(r),l=s.getTileCoordExtent(o),u=o[0],c=s.getResolution(u);bn(l,-c,l);var h=this.tileGrid,f=h.getExtent();f&&Ys(l,f,l);var d=h.getZForResolution(c,1);h.forEachTileCoord(l,d,function(p){var v=a.tileUrlFunction(p,e,r),g=a.sourceTileCache.containsKey(v)?a.sourceTileCache.get(v):new a.tileClass(p,v?De.IDLE:De.EMPTY,v,a.format_,a.tileLoadFunction);i.sourceTiles.push(g);var y=g.getState();if(y<De.LOADED){var m=function(_){a.handleTileChange(_);var x=g.getState();if(x===De.LOADED||x===De.ERROR){var b=g.getKey();b in i.errorTileKeys?g.getState()===De.LOADED&&delete i.errorTileKeys[b]:i.loadingSourceTiles--,x===De.ERROR?i.errorTileKeys[b]=!0:g.removeEventListener(tt.CHANGE,m),i.loadingSourceTiles===0&&i.setState(js(i.errorTileKeys)?De.LOADED:De.ERROR)}};g.addEventListener(tt.CHANGE,m),i.loadingSourceTiles++}y===De.IDLE&&(g.extent=h.getTileCoordExtent(p),g.projection=r,g.resolution=h.getResolution(p[0]),a.sourceTileCache.set(v,g),g.load())}),i.loadingSourceTiles||i.setState(i.sourceTiles.some(function(p){return p.getState()===De.ERROR})?De.ERROR:De.LOADED)}return i.sourceTiles},t.prototype.getTile=function(e,r,i,a,o){var s=Ku(e,r,i),l=this.getKey(),u;if(this.tileCache.containsKey(s)&&(u=this.tileCache.get(s),u.key===l))return u;var c=[e,r,i],h=this.getTileCoordForTileUrlFunction(c,o),f=this.getTileGrid().getExtent(),d=this.getTileGridForProjection(o);if(h&&f){var p=d.getTileCoordExtent(h);bn(p,-d.getResolution(e),p),_r(f,p)||(h=null)}var v=!0;if(h!==null){var g=this.tileGrid,y=d.getResolution(e),m=g.getZForResolution(y,1),_=d.getTileCoordExtent(h);bn(_,-y,_),g.forEachTileCoord(_,m,(function(b){v=v&&!this.tileUrlFunction(b,a,o)}).bind(this))}var x=new I6(c,v?De.EMPTY:De.IDLE,h,this.getSourceTiles.bind(this,a,o));return x.key=l,u?(x.interimTile=u,x.refreshInterimChain(),this.tileCache.replace(s,x)):this.tileCache.set(s,x),x},t.prototype.getTileGridForProjection=function(e){var r=e.getCode(),i=this.tileGrids_[r];if(!i){var a=this.tileGrid;i=fE(e,void 0,a?a.getTileSize(a.getMinZoom()):void 0),this.tileGrids_[r]=i}return i},t.prototype.getTilePixelRatio=function(e){return e},t.prototype.getTilePixelSize=function(e,r,i){var a=this.getTileGridForProjection(i),o=Jr(a.getTileSize(e),this.tmpSize);return[Math.round(o[0]*r),Math.round(o[1]*r)]},t.prototype.updateCacheSize=function(e,r){n.prototype.updateCacheSize.call(this,e*2,r),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(r).highWaterMark},t}(vE);function L6(n,t){n.setLoader(function(e,r,i){TC(t,n.getFormat(),e,r,i,n.onLoad.bind(n),n.onError.bind(n))})}var P6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),k6=function(n){P6(t,n);function t(){return n.call(this)||this}return t.prototype.getType=function(){return nl.JSON},t.prototype.readFeature=function(e,r){return this.readFeatureFromObject(Np(e),this.getReadOptions(e,r))},t.prototype.readFeatures=function(e,r){return this.readFeaturesFromObject(Np(e),this.getReadOptions(e,r))},t.prototype.readFeatureFromObject=function(e,r){return et()},t.prototype.readFeaturesFromObject=function(e,r){return et()},t.prototype.readGeometry=function(e,r){return this.readGeometryFromObject(Np(e),this.getReadOptions(e,r))},t.prototype.readGeometryFromObject=function(e,r){return et()},t.prototype.readProjection=function(e){return this.readProjectionFromObject(Np(e))},t.prototype.readProjectionFromObject=function(e){return et()},t.prototype.writeFeature=function(e,r){return JSON.stringify(this.writeFeatureObject(e,r))},t.prototype.writeFeatureObject=function(e,r){return et()},t.prototype.writeFeatures=function(e,r){return JSON.stringify(this.writeFeaturesObject(e,r))},t.prototype.writeFeaturesObject=function(e,r){return et()},t.prototype.writeGeometry=function(e,r){return JSON.stringify(this.writeGeometryObject(e,r))},t.prototype.writeGeometryObject=function(e,r){return et()},t}(JC);function Np(n){if(typeof n=="string"){var t=JSON.parse(n);return t||null}else return n!==null?n:null}var O6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),br=function(n){O6(t,n);function t(e){var r=this,i=e||{};return r=n.call(this)||this,r.dataProjection=gr(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(r.defaultFeatureProjection=gr(i.featureProjection)),r.geometryName_=i.geometryName,r.extractGeometryName_=i.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return t.prototype.readFeatureFromObject=function(e,r){var i=null;e.type==="Feature"?i=e:i={type:"Feature",geometry:e,properties:null};var a=U0(i.geometry,r),o=new fa;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in i!==void 0&&o.setGeometryName(i.geometry_name),o.setGeometry(a),"id"in i&&o.setId(i.id),i.properties&&o.setProperties(i.properties,!0),o},t.prototype.readFeaturesFromObject=function(e,r){var i=e,a=null;if(i.type==="FeatureCollection"){var o=e;a=[];for(var s=o.features,l=0,u=s.length;l<u;++l)a.push(this.readFeatureFromObject(s[l],r))}else a=[this.readFeatureFromObject(e,r)];return a},t.prototype.readGeometryFromObject=function(e,r){return U0(e,r)},t.prototype.readProjectionFromObject=function(e){var r=e.crs,i;return r?r.type=="name"?i=gr(r.properties.name):r.type==="EPSG"?i=gr("EPSG:"+r.properties.code):yt(!1,36):i=this.dataProjection,i},t.prototype.writeFeatureObject=function(e,r){r=this.adaptOptions(r);var i={type:"Feature",geometry:null,properties:null},a=e.getId();if(a!==void 0&&(i.id=a),!e.hasProperties())return i;var o=e.getProperties(),s=e.getGeometry();return s&&(i.geometry=X0(s,r),delete o[e.getGeometryName()]),js(o)||(i.properties=o),i},t.prototype.writeFeaturesObject=function(e,r){r=this.adaptOptions(r);for(var i=[],a=0,o=e.length;a<o;++a)i.push(this.writeFeatureObject(e[a],r));return{type:"FeatureCollection",features:i}},t.prototype.writeGeometryObject=function(e,r){return X0(e,this.adaptOptions(r))},t}(k6);function U0(n,t){if(!n)return null;var e;switch(n.type){case J.POINT:{e=N6(n);break}case J.LINE_STRING:{e=F6(n);break}case J.POLYGON:{e=V6(n);break}case J.MULTI_POINT:{e=G6(n);break}case J.MULTI_LINE_STRING:{e=z6(n);break}case J.MULTI_POLYGON:{e=B6(n);break}case J.GEOMETRY_COLLECTION:{e=R6(n);break}default:throw new Error("Unsupported GeoJSON type: "+n.type)}return G0(e,!1,t)}function R6(n,t){var e=n.geometries.map(function(r){return U0(r,t)});return new $8(e)}function N6(n){return new Kr(n.coordinates)}function F6(n){return new Bi(n.coordinates)}function z6(n){return new c0(n.coordinates)}function G6(n){return new vp(n.coordinates)}function B6(n){return new h0(n.coordinates)}function V6(n){return new Kn(n.coordinates)}function X0(n,t){n=G0(n,!0,t);var e=n.getType(),r;switch(e){case J.POINT:{r=j6(n);break}case J.LINE_STRING:{r=Y6(n);break}case J.POLYGON:{r=Z6(n,t);break}case J.MULTI_POINT:{r=U6(n);break}case J.MULTI_LINE_STRING:{r=H6(n);break}case J.MULTI_POLYGON:{r=X6(n,t);break}case J.GEOMETRY_COLLECTION:{r=W6(n,t);break}case J.CIRCLE:{r={type:"GeometryCollection",geometries:[]};break}default:throw new Error("Unsupported geometry type: "+e)}return r}function W6(n,t){var e=n.getGeometriesArray().map(function(r){var i=Bt({},t);return delete i.featureProjection,X0(r,i)});return{type:"GeometryCollection",geometries:e}}function Y6(n,t){return{type:"LineString",coordinates:n.getCoordinates()}}function H6(n,t){return{type:"MultiLineString",coordinates:n.getCoordinates()}}function U6(n,t){return{type:"MultiPoint",coordinates:n.getCoordinates()}}function X6(n,t){var e;return t&&(e=t.rightHanded),{type:"MultiPolygon",coordinates:n.getCoordinates(e)}}function j6(n,t){return{type:"Point",coordinates:n.getCoordinates()}}function Z6(n,t){var e;return t&&(e=t.rightHanded),{type:"Polygon",coordinates:n.getCoordinates(e)}}var K6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),j0=function(n){K6(t,n);function t(e){var r=this,i=e.imageSmoothing!==void 0?e.imageSmoothing:!0;return e.interpolate!==void 0&&(i=e.interpolate),r=n.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:J6,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:i,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this,r.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,r.tileClass=e.tileClass!==void 0?e.tileClass:zC,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return t.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},t.prototype.expireCache=function(e,r){var i=this.getTileCacheForProjection(e);this.tileCache.expireCache(this.tileCache==i?r:{});for(var a in this.tileCacheForProjection){var o=this.tileCacheForProjection[a];o.expireCache(o==i?r:{})}},t.prototype.getGutterForProjection=function(e){return this.getProjection()&&e&&!qs(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var e=n.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},t.prototype.getOpaque=function(e){return this.getProjection()&&e&&!qs(this.getProjection(),e)?!1:n.prototype.getOpaque.call(this,e)},t.prototype.getTileGridForProjection=function(e){var r=this.getProjection();if(this.tileGrid&&(!r||qs(r,e)))return this.tileGrid;var i=Fe(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=uE(e)),this.tileGridForProjection[i]},t.prototype.getTileCacheForProjection=function(e){var r=this.getProjection();if(!r||qs(r,e))return this.tileCache;var i=Fe(e);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new W0(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},t.prototype.createTile_=function(e,r,i,a,o,s){var l=[e,r,i],u=this.getTileCoordForTileUrlFunction(l,o),c=u?this.tileUrlFunction(u,a,o):void 0,h=new this.tileClass(l,c!==void 0?De.IDLE:De.EMPTY,c!==void 0?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=s,h.addEventListener(tt.CHANGE,this.handleTileChange.bind(this)),h},t.prototype.getTile=function(e,r,i,a,o){var s=this.getProjection();if(!s||!o||qs(s,o))return this.getTileInternal(e,r,i,a,s||o);var l=this.getTileCacheForProjection(o),u=[e,r,i],c=void 0,h=aE(u);l.containsKey(h)&&(c=l.get(h));var f=this.getKey();if(c&&c.key==f)return c;var d=this.getTileGridForProjection(s),p=this.getTileGridForProjection(o),v=this.getTileCoordForTileUrlFunction(u,o),g=new VC(s,d,o,p,u,v,this.getTilePixelRatio(a),this.getGutter(),(function(y,m,_,x){return this.getTileInternal(y,m,_,x,s)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return g.key=f,c?(g.interimTile=c,g.refreshInterimChain(),l.replace(h,g)):l.set(h,g),g},t.prototype.getTileInternal=function(e,r,i,a,o){var s=null,l=Ku(e,r,i),u=this.getKey();if(!this.tileCache.containsKey(l))s=this.createTile_(e,r,i,a,o,u),this.tileCache.set(l,s);else if(s=this.tileCache.get(l),s.key!=u){var c=s;s=this.createTile_(e,r,i,a,o,u),c.getState()==De.IDLE?s.interimTile=c.interimTile:s.interimTile=c,s.refreshInterimChain(),this.tileCache.replace(l,s)}return s},t.prototype.setRenderReprojectionEdges=function(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(var r in this.tileCacheForProjection)this.tileCacheForProjection[r].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,r){{var i=gr(e);if(i){var a=Fe(i);a in this.tileGridForProjection||(this.tileGridForProjection[a]=r)}}},t}(vE);function J6(n,t){n.getImage().src=t}var q6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yE=function(n){q6(t,n);function t(e){var r=e||{},i=r.imageSmoothing!==void 0?r.imageSmoothing:!0;r.interpolate!==void 0&&(i=r.interpolate);var a=r.projection!==void 0?r.projection:"EPSG:3857",o=r.tileGrid!==void 0?r.tileGrid:cE({extent:Rp(a),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return n.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,opaque:r.opaque,projection:a,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:r.wrapX!==void 0?r.wrapX:!0,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this}return t}(j0),Q6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Z0=function(n){Q6(t,n);function t(e){var r=n.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return r.resolution=void 0,r.distance=e.distance!==void 0?e.distance:20,r.minDistance=e.minDistance||0,r.interpolationRatio=0,r.features=[],r.geometryFunction=e.geometryFunction||function(i){var a=i.getGeometry();return yt(a.getType()==J.POINT,10),a},r.createCustomCluster_=e.createCluster,r.source=null,r.boundRefresh_=r.refresh.bind(r),r.updateDistance(r.distance,r.minDistance),r.setSource(e.source||null),r}return t.prototype.clear=function(e){this.features.length=0,n.prototype.clear.call(this,e)},t.prototype.getDistance=function(){return this.distance},t.prototype.getSource=function(){return this.source},t.prototype.loadFeatures=function(e,r,i){this.source.loadFeatures(e,r,i),r!==this.resolution&&(this.resolution=r,this.refresh())},t.prototype.setDistance=function(e){this.updateDistance(e,this.minDistance)},t.prototype.setMinDistance=function(e){this.updateDistance(this.distance,e)},t.prototype.getMinDistance=function(){return this.minDistance},t.prototype.setSource=function(e){this.source&&this.source.removeEventListener(tt.CHANGE,this.boundRefresh_),this.source=e,e&&e.addEventListener(tt.CHANGE,this.boundRefresh_),this.refresh()},t.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},t.prototype.updateDistance=function(e,r){var i=e===0?0:Math.min(r,e)/e,a=e!==this.distance||this.interpolationRatio!==i;this.distance=e,this.minDistance=r,this.interpolationRatio=i,a&&this.refresh()},t.prototype.cluster=function(){if(!(this.resolution===void 0||!this.source))for(var e=ln(),r=this.distance*this.resolution,i=this.source.getFeatures(),a={},o=0,s=i.length;o<s;o++){var l=i[o];if(!(Fe(l)in a)){var u=this.geometryFunction(l);if(u){var c=u.getCoordinates();Eu(c,e),bn(e,r,e);var h=this.source.getFeaturesInExtent(e).filter(function(f){var d=Fe(f);return d in a?!1:(a[d]=!0,!0)});this.features.push(this.createCluster(h,e))}}}},t.prototype.createCluster=function(e,r){for(var i=[0,0],a=e.length-1;a>=0;--a){var o=this.geometryFunction(e[a]);o?qA(i,o.getCoordinates()):e.splice(a,1)}QA(i,1/e.length);var s=Ha(r),l=this.interpolationRatio,u=new Kr([i[0]*(1-l)+s[0]*l,i[1]*(1-l)+s[1]*l]);return this.createCustomCluster_?this.createCustomCluster_(u,e):new fa({geometry:u,features:e})},t}(Pt);function Fp(n,t){var e=[];Object.keys(t).forEach(function(i){t[i]!==null&&t[i]!==void 0&&e.push(i+"="+encodeURIComponent(t[i]))});var r=e.join("&");return n=n.replace(/[?&]$/,""),n=n.indexOf("?")===-1?n+"?":n+"&",n+r}var zp="1.3.0";const Gp={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"};var $6=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),e9=function(n){$6(t,n);function t(e){var r=this,i=e||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;i.interpolate!==void 0&&(a=i.interpolate);var o=i.params||{},s="TRANSPARENT"in o?o.TRANSPARENT:!0;return r=n.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:i.wrapX!==void 0?i.wrapX:!0,transition:i.transition,zDirection:i.zDirection})||this,r.gutter_=i.gutter!==void 0?i.gutter:0,r.params_=o,r.v13_=!0,r.serverType_=i.serverType,r.hidpi_=i.hidpi!==void 0?i.hidpi:!0,r.tmpExtent_=ln(),r.updateV13_(),r.setKey(r.getKeyForParams_()),r}return t.prototype.getFeatureInfoUrl=function(e,r,i,a){var o=gr(i),s=this.getProjection(),l=this.getTileGrid();l||(l=this.getTileGridForProjection(o));var u=l.getZForResolution(r,this.zDirection),c=l.getTileCoordForCoordAndZ(e,u);if(!(l.getResolutions().length<=c[0])){var h=l.getResolution(c[0]),f=l.getTileCoordExtent(c,this.tmpExtent_),d=Jr(l.getTileSize(c[0]),this.tmpSize),p=this.gutter_;p!==0&&(d=BT(d,p,this.tmpSize),f=bn(f,h*p,f)),s&&s!==o&&(h=L0(s,o,e,h),f=ZG(f,o,s),e=mT(e,o,s));var v={SERVICE:"WMS",VERSION:zp,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Bt(v,this.params_,a);var g=Math.floor((e[0]-f[0])/h),y=Math.floor((f[3]-e[1])/h);return v[this.v13_?"I":"X"]=g,v[this.v13_?"J":"Y"]=y,this.getRequestUrl_(c,d,f,1,s||o,v)}},t.prototype.getLegendUrl=function(e,r){if(this.urls[0]!==void 0){var i={SERVICE:"WMS",VERSION:zp,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(r===void 0||r.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(e!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,l=28e-5;i.SCALE=e*s/l}return Bt(i,r),Fp(this.urls[0],i)}},t.prototype.getGutter=function(){return this.gutter_},t.prototype.getParams=function(){return this.params_},t.prototype.getRequestUrl_=function(e,r,i,a,o,s){var l=this.urls;if(l){if(s.WIDTH=r[0],s.HEIGHT=r[1],s[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(s.STYLES=""),a!=1)switch(this.serverType_){case Gp.GEOSERVER:var u=90*a+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+u:s.FORMAT_OPTIONS="dpi:"+u;break;case Gp.MAPSERVER:s.MAP_RESOLUTION=90*a;break;case Gp.CARMENTA_SERVER:case Gp.QGIS:s.DPI=90*a;break;default:yt(!1,52);break}var c=o.getAxisOrientation(),h=i;if(this.v13_&&c.substr(0,2)=="ne"){var f=void 0;f=i[0],h[0]=i[1],h[1]=f,f=i[2],h[2]=i[3],h[3]=f}s.BBOX=h.join(",");var d;if(l.length==1)d=l[0];else{var p=Ro(sE(e),l.length);d=l[p]}return Fp(d,s)}},t.prototype.getTilePixelRatio=function(e){return!this.hidpi_||this.serverType_===void 0?1:e},t.prototype.getKeyForParams_=function(){var e=0,r=[];for(var i in this.params_)r[e++]=i+"-"+this.params_[i];return r.join("/")},t.prototype.updateParams=function(e){Bt(this.params_,e),this.updateV13_(),this.setKey(this.getKeyForParams_())},t.prototype.updateV13_=function(){var e=this.params_.VERSION||zp;this.v13_=nG(e,"1.3")>=0},t.prototype.tileUrlFunction=function(e,r,i){var a=this.getTileGrid();if(a||(a=this.getTileGridForProjection(i)),!(a.getResolutions().length<=e[0])){r!=1&&(!this.hidpi_||this.serverType_===void 0)&&(r=1);var o=a.getResolution(e[0]),s=a.getTileCoordExtent(e,this.tmpExtent_),l=Jr(a.getTileSize(e[0]),this.tmpSize),u=this.gutter_;u!==0&&(l=BT(l,u,this.tmpSize),s=bn(s,o*u,s)),r!=1&&(l=WT(l,r,this.tmpSize));var c={SERVICE:"WMS",VERSION:zp,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Bt(c,this.params_),this.getRequestUrl_(e,l,s,r,i,c)}},t}(j0);const Bp={KVP:"KVP"};var t9=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mE=function(n){t9(t,n);function t(e){var r=this,i=e.imageSmoothing!==void 0?e.imageSmoothing:!0;e.interpolate!==void 0&&(i=e.interpolate);var a=e.requestEncoding!==void 0?e.requestEncoding:Bp.KVP,o=e.tileGrid,s=e.urls;return s===void 0&&e.url!==void 0&&(s=pE(e.url)),r=n.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:i,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:s,wrapX:e.wrapX!==void 0?e.wrapX:!1,transition:e.transition,zDirection:e.zDirection})||this,r.version_=e.version!==void 0?e.version:"1.0.0",r.format_=e.format!==void 0?e.format:"image/jpeg",r.dimensions_=e.dimensions!==void 0?e.dimensions:{},r.layer_=e.layer,r.matrixSet_=e.matrixSet,r.style_=e.style,r.requestEncoding_=a,r.setKey(r.getKeyForDimensions_()),s&&s.length>0&&(r.tileUrlFunction=H0(s.map(r.createFromWMTSTemplate.bind(r)))),r}return t.prototype.setUrls=function(e){this.urls=e;var r=e.join(`
128
- `);this.setTileUrlFunction(H0(e.map(this.createFromWMTSTemplate.bind(this))),r)},t.prototype.getDimensions=function(){return this.dimensions_},t.prototype.getFormat=function(){return this.format_},t.prototype.getLayer=function(){return this.layer_},t.prototype.getMatrixSet=function(){return this.matrixSet_},t.prototype.getRequestEncoding=function(){return this.requestEncoding_},t.prototype.getStyle=function(){return this.style_},t.prototype.getVersion=function(){return this.version_},t.prototype.getKeyForDimensions_=function(){var e=0,r=[];for(var i in this.dimensions_)r[e++]=i+"-"+this.dimensions_[i];return r.join("/")},t.prototype.updateDimensions=function(e){Bt(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())},t.prototype.createFromWMTSTemplate=function(e){var r=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};r==Bp.KVP&&Bt(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=r==Bp.KVP?Fp(e,i):e.replace(/\{(\w+?)\}/g,function(s,l){return l.toLowerCase()in i?i[l.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,l,u){if(s){var c={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};Bt(c,o);var h=e;return r==Bp.KVP?h=Fp(h,c):h=h.replace(/\{(\w+?)\}/g,function(f,d){return c[d]}),h}else return}},t}(j0),Ju=class extends st{constructor(t){super(),t=t||{};var e,r=this.canvas_=document.createElement("canvas"),i=Number(t.scale)>0?Number(t.scale):1,a=i*Au||Au,o=r.getContext("2d");if(t.image){t.image.load();var s,l=t.image.getImage();if(l.width)r.width=Math.round(l.width*a),r.height=Math.round(l.height*a),o.globalAlpha=typeof t.opacity=="number"?t.opacity:1,o.drawImage(l,0,0,l.width,l.height,0,0,r.width,r.height),e=o.createPattern(r,"repeat");else{var u=this;e=[0,0,0,0],l.onload=function(){r.width=Math.round(l.width*a),r.height=Math.round(l.height*a),o.globalAlpha=typeof t.opacity=="number"?t.opacity:1,o.drawImage(l,0,0,l.width,l.height,0,0,r.width,r.height),e=o.createPattern(r,"repeat"),u.setColor(e)}}}else{var c=this.getPattern_(t);if(r.width=Math.round(c.width*a),r.height=Math.round(c.height*a),o.beginPath(),t.fill&&(o.fillStyle=No(t.fill.getColor()),o.fillRect(0,0,r.width,r.height)),o.scale(a,a),o.lineCap="round",o.lineWidth=c.stroke||1,o.fillStyle=No(t.color||"#000"),o.strokeStyle=No(t.color||"#000"),c.circles)for(s=0;s<c.circles.length;s++){var h=c.circles[s];o.beginPath(),o.arc(h[0],h[1],h[2],0,2*Math.PI),c.fill&&o.fill(),c.stroke&&o.stroke()}if(c.repeat||(c.repeat=[[0,0]]),c.char&&(o.font=c.font||c.width+"px Arial",o.textAlign="center",o.textBaseline="middle",c.angle?(o.fillText(c.char,c.width/4,c.height/4),o.fillText(c.char,5*c.width/4,5*c.height/4),o.fillText(c.char,c.width/4,5*c.height/4),o.fillText(c.char,5*c.width/4,c.height/4),o.fillText(c.char,3*c.width/4,3*c.height/4),o.fillText(c.char,-c.width/4,-c.height/4),o.fillText(c.char,3*c.width/4,-c.height/4),o.fillText(c.char,-c.width/4,3*c.height/4)):o.fillText(c.char,c.width/2,c.height/2)),c.lines)for(s=0;s<c.lines.length;s++)for(var f=0;f<c.repeat.length;f++){var d=c.lines[s];o.beginPath(),o.moveTo(d[0]+c.repeat[f][0],d[1]+c.repeat[f][1]);for(var p=2;p<d.length;p+=2)o.lineTo(d[p]+c.repeat[f][0],d[p+1]+c.repeat[f][1]);c.fill&&o.fill(),c.stroke&&o.stroke(),o.save(),o.strokeStyle="red",o.strokeWidth=.1,o.restore()}if(e=o.createPattern(r,"repeat"),t.offset){var v=t.offset;if(typeof v=="number"&&(v=[v,v]),v instanceof Array){var g=Math.round(v[0]*a),y=Math.round(v[1]*a);o.scale(1/a,1/a),o.clearRect(0,0,r.width,r.height),o.translate(g,y),o.fillStyle=e,o.fillRect(-g,-y,r.width,r.height),e=o.createPattern(r,"repeat")}}}this.setColor(e)}static addPattern(t,e){e||(e={}),Ju.patterns[t||e.char]={width:e.width||e.size||10,height:e.height||e.size||10,font:e.font,char:e.char,circles:e.circles,lines:e.lines,repeat:e.repeat,stroke:e.stroke,angle:e.angle,fill:e.fill}}clone(){var t=super.clone();return t.canvas_=this.canvas_,t}getImage(){return this.canvas_}getPattern_(t){var e=Ju.patterns[t.pattern]||Ju.patterns.dot,r=Math.round(t.spacing)||10,i;switch(t.pattern){case"dot":case"circle":{i=t.size===0?0:t.size/2||2,t.angle?(r=e.width=e.height=Math.round(r*1.4),e.circles=[[r/4,r/4,i],[3*r/4,3*r/4,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/4+r,r/4,i],[r/4,r/4+r,i],[3*r/4-r,3*r/4,i],[3*r/4,3*r/4-r,i],[r/4+r,r/4+r,i],[3*r/4-r,3*r/4-r,i]]))):(e.width=e.height=r,e.circles=[[r/2,r/2,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/2+r,r/2,i],[r/2-r,r/2,i],[r/2,r/2+r,i],[r/2,r/2-r,i],[r/2+r,r/2+r,i],[r/2+r,r/2-r,i],[r/2-r,r/2+r,i],[r/2-r,r/2-r,i]])));break}case"tile":case"square":{i=t.size===0?0:t.size/2||2,t.angle?(e.width=e.height=r,e.lines=[[r/2-i,r/2,r/2,r/2-i,r/2+i,r/2,r/2,r/2+i,r/2-i,r/2]]):(e.width=e.height=r,e.lines=[[r/2-i,r/2-i,r/2+i,r/2-i,r/2+i,r/2+i,r/2-i,r/2+i,r/2-i,r/2-i]]),t.pattern=="square"&&(e.repeat=[[0,0],[0,r],[r,0],[0,-r],[-r,0],[-r,-r],[r,r],[-r,r],[r,-r]]);break}case"cross":t.angle&&(t.angle=45);case"hatch":{var a=Math.round(((t.angle||0)-90)%360);a>180&&(a-=360),a*=Math.PI/180;var o=Math.cos(a),s=Math.sin(a);if(Math.abs(s)<1e-4)e.width=e.height=r,e.lines=[[0,.5,r,.5]],e.repeat=[[0,0],[0,r]];else if(Math.abs(o)<1e-4)e.width=e.height=r,e.lines=[[.5,0,.5,r]],e.repeat=[[0,0],[r,0]],t.pattern=="cross"&&(e.lines.push([0,.5,r,.5]),e.repeat.push([0,r]));else{var l=e.width=Math.round(Math.abs(r/s))||1,u=e.height=Math.round(Math.abs(r/o))||1;t.pattern=="cross"?(e.lines=[[-l,-u,2*l,2*u],[2*l,-u,-l,2*u]],e.repeat=[[0,0]]):o*s>0?(e.lines=[[-l,-u,2*l,2*u]],e.repeat=[[0,0],[l,0],[0,u]]):(e.lines=[[2*l,-u,-l,2*u]],e.repeat=[[0,0],[-l,0],[0,u]])}e.stroke=t.size===0?0:t.size||4;break}}return e}};Ju.patterns={hatch:{width:5,height:5,lines:[[0,2.5,5,2.5]],stroke:1},cross:{width:7,height:7,lines:[[0,3,10,3],[3,0,3,10]],stroke:1},dot:{width:8,height:8,circles:[[5,5,2]],stroke:!1,fill:!0},circle:{width:10,height:10,circles:[[5,5,2]],stroke:1,fill:!1},square:{width:10,height:10,lines:[[3,3,3,8,8,8,8,3,3,3]],stroke:1,fill:!1},tile:{width:10,height:10,lines:[[3,3,3,8,8,8,8,3,3,3]],fill:!0},woven:{width:12,height:12,lines:[[3,3,9,9],[0,12,3,9],[9,3,12,0],[-1,1,1,-1],[13,11,11,13]],stroke:1},crosses:{width:8,height:8,lines:[[2,2,6,6],[2,6,6,2]],stroke:1},caps:{width:8,height:8,lines:[[2,6,4,2,6,6]],stroke:1},nylon:{width:20,height:20,lines:[[1,6,1,1,6,1],[6,11,11,11,11,6],[11,16,11,21,16,21],[16,11,21,11,21,16]],repeat:[[0,0],[-20,0],[0,-20]],stroke:1},hexagon:{width:20,height:12,lines:[[0,10,4,4,10,4,14,10,10,16,4,16,0,10]],stroke:1,repeat:[[0,0],[10,6],[10,-6],[-10,-6]]},cemetry:{width:15,height:19,lines:[[0,3.5,7,3.5],[3.5,0,3.5,10]],stroke:1,repeat:[[0,0],[7,9]]},sand:{width:20,height:20,circles:[[1,2,1],[9,3,1],[2,16,1],[7,8,1],[6,14,1],[4,19,1],[14,2,1],[12,10,1],[14,18,1],[18,8,1],[18,14,1]],fill:1},conglomerate:{width:60,height:40,circles:[[2,4,1],[17,3,1],[26,18,1],[12,17,1],[5,17,2],[28,11,2]],lines:[[7,5,6,7,9,9,11,8,11,6,9,5,7,5],[16,10,15,13,16,14,19,15,21,13,22,9,20,8,19,8,16,10],[24,6,26,7,27,5,26,4,24,4,24,6]],repeat:[[30,0],[-15,20],[15,20],[45,20]],stroke:1},conglomerate2:{width:60,height:40,circles:[[2,4,1],[17,3,1],[26,18,1],[12,17,1],[5,17,2],[28,11,2]],lines:[[7,5,6,7,9,9,11,8,11,6,9,5,7,5],[16,10,15,13,16,14,19,15,21,13,22,9,20,8,19,8,16,10],[24,6,26,7,27,5,26,4,24,4,24,6]],repeat:[[30,0],[-15,20],[15,20],[45,20]],fill:1},gravel:{width:15,height:10,circles:[[4,2,1],[5,9,1],[1,7,1]],lines:[[7,5,6,6,7,7,8,7,9,7,10,5,9,4,7,5],[11,2,14,4,14,1,12,1,11,2]],stroke:1},brick:{width:18,height:16,lines:[[0,1,18,1],[0,10,18,10],[6,1,6,10],[12,10,12,18],[12,0,12,1]],stroke:1},dolomite:{width:20,height:16,lines:[[0,1,20,1],[0,9,20,9],[1,9,6,1],[11,9,14,16],[14,0,14.4,1]],stroke:1},coal:{width:20,height:16,lines:[[1,5,7,1,7,7],[11,10,12,5,18,9],[5,10,2,15,9,15],[15,16,15,13,20,16],[15,0,15,2,20,0]],fill:1},breccia:{width:20,height:16,lines:[[1,5,7,1,7,7,1,5],[11,10,12,5,18,9,11,10],[5,10,2,15,9,15,5,10],[15,16,15,13,22,18],[15,0,15,2,20,0]],stroke:1},clay:{width:20,height:20,lines:[[0,0,3,11,0,20],[11,0,10,3,13,13,11,20],[0,0,10,3,20,0],[0,12,3,11,13,13,20,12]],stroke:1},flooded:{width:15,height:10,lines:[[0,1,10,1],[0,6,5,6],[10,6,15,6]],stroke:1},chaos:{width:40,height:40,lines:[[40,2,40,0,38,0,40,2],[4,0,3,2,2,5,0,0,0,3,2,7,5,6,7,7,8,10,9,12,9,13,9,14,8,14,6,15,2,15,0,20,0,22,2,20,5,19,8,15,10,14,11,12.25,10,12,10,10,12,9,13,7,12,6,13,4,16,7,17,4,20,0,18,0,15,3,14,2,14,0,12,1,11,0,10,1,11,4,10,7,9,8,8,5,6,4,5,3,5,1,5,0,4,0],[7,1,7,3,8,3,8,2,7,1],[4,3,5,5,4,5,4,3],[34,5,33,7,38,10,38,8,36,5,34,5],[27,0,23,2,21,8,30,0,27,0],[25,8,26,12,26,16,22.71875,15.375,20,13,18,15,17,18,13,22,17,21,19,22,21,20,19,18,22,17,30,25,26,26,24,28,21.75,33.34375,20,36,18,40,20,40,24,37,25,32,27,31,26,38,27,37,30,32,32,35,36,37,38,40,38,39,40,40,37,36,34,32,37,31,36,29,33,27,34,24,39,21,40,21,40,16,37,20,31,22,32,25,27,20,29,15,30,20,32,20,34,18,33,12,31,11,29,14,26,9,25,8],[39,24,37,26,40,28,39,24],[13,15,9,19,14,18,13,15],[18,23,14,27,16,27,17,25,20,26,18,23],[6,24,2,26,1,28,2,30,5,28,12,30,16,32,18,30,15,30,12,28,9,25,7,27,6,24],[29,27,32,28,33,31,30,29,27,28,29,27],[5,35,1,33,3,36,13,38,15,35,10,36,5,35]],fill:1},grass:{width:27,height:22,lines:[[0,10.5,13,10.5],[2.5,10,1.5,7],[4.5,10,4.5,5,3.5,4],[7,10,7.5,6,8.5,3],[10,10,11,6]],repeat:[[0,0],[14,10]],stroke:1},swamp:{width:24,height:23,lines:[[0,10.5,9.5,10.5],[2.5,10,2.5,7],[4.5,10,4.5,4],[6.5,10,6.5,6],[3,12.5,7,12.5]],repeat:[[0,0],[14,10]],stroke:1},reed:{width:26,height:23,lines:[[2.5,10,2,7],[4.5,10,4.2,4],[6.5,10,6.8,4],[8.5,10,9,6],[3.7,4,3.7,2.5],[4.7,4,4.7,2.5],[6.3,4,6.3,2.5],[7.3,4,7.3,2.5]],circles:[[4.2,2.5,.5],[18.2,12.5,.5],[6.8,2.5,.5],[20.8,12.5,.5],[9,6,.5],[23,16,.5]],repeat:[[0,0],[14,10]],stroke:1},wave:{width:10,height:8,lines:[[0,0,5,4,10,0]],stroke:1},vine:{width:13,height:13,lines:[[3,0,3,6],[9,7,9,13]],stroke:1},forest:{width:55,height:30,circles:[[7,7,3.5],[20,20,1.5],[42,22,3.5],[35,5,1.5]],stroke:1},forest2:{width:55,height:30,circles:[[7,7,3.5],[20,20,1.5],[42,22,3.5],[35,5,1.5]],fill:1,stroke:1},scrub:{width:26,height:20,lines:[[1,4,4,8,6,4]],circles:[[20,13,1.5]],stroke:1},tree:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78]],repeat:[[3,1],[18,16]],stroke:1},tree2:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78,4.95,10.61,7.78,10.61]],repeat:[[3,1],[18,16]],fill:1,stroke:1},pine:{width:30,height:30,lines:[[5.66,11.31,2.83,11.31,2.83,8.49,0,8.49,2.83,0,5.66,8.49,2.83,8.49]],repeat:[[3,1],[18,16]],stroke:1},pine2:{width:30,height:30,lines:[[5.66,11.31,2.83,11.31,2.83,8.49,0,8.49,2.83,0,5.66,8.49,2.83,8.49,2.83,11.31,5.66,11.31]],repeat:[[3,1],[18,16]],fill:1,stroke:1},mixtree:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78,4.95,10.61,7.78,10.61],[23.66,27.31,20.83,27.31,20.83,24.49,18,24.49,20.83,16,23.66,24.49,20.83,24.49,20.83,27.31,23.66,27.31]],repeat:[[3,1]],stroke:1},mixtree2:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78,4.95,10.61,7.78,10.61],[23.66,27.31,20.83,27.31,20.83,24.49,18,24.49,20.83,16,23.66,24.49,20.83,24.49,20.83,27.31,23.66,27.31]],repeat:[[3,1]],fill:1,stroke:1},pines:{width:22,height:20,lines:[[1,4,3.5,1,6,4],[1,8,3.5,5,6,8],[3.5,1,3.5,11],[12,14.5,14.5,14,17,14.5],[12,18,17,18],[14.5,12,14.5,18]],repeat:[[2,1]],stroke:1},rock:{width:20,height:20,lines:[[1,0,1,9],[4,0,4,9],[7,0,7,9],[10,1,19,1],[10,4,19,4],[10,7,19,7],[0,11,9,11],[0,14,9,14],[0,17,9,17],[12,10,12,19],[15,10,15,19],[18,10,18,19]],repeat:[[.5,.5]],stroke:1},rocks:{width:20,height:20,lines:[[5,0,3,0,5,4,4,6,0,3,0,5,3,6,5,9,3.75,10,2.5,10,0,9,0,10,4,11,5,14,4,15,0,13,0,13,0,13,0,14,0,14,5,16,5,18,3,19,0,19,-.25,19.9375,5,20,10,19,10,20,11,20,12,19,14,20,15,20,17,19,20,20,20,19,19,16,20,15,20,11,20,10,19,8,20,5,20,0,19,0,20,2,19,4,17,4,16,3,15,0,14,0,15,4,11,5,10,4,11,0,10,0,9,4,6,5,5,0],[18,5,19,6,18,10,16,10,14,9,16,5,18,5],[5,6,9,5,10,6,10,9,6,10,5,6],[14,5,14,8,13,9,12,9,11,7,12,5,14,5],[5,11,8,10,9,11,10,14,6,15,6,15,5,11],[13,10,14,11,15,14,15,14,15,14,11,15,10,11,11,10,13,10],[15,12,16,11,19,11,19,15,16,14,16,14,15,12],[6,16,9,15,10,18,5,19,6,16],[10,16,14,16,14,18,13,19,11,18,10,16],[15,15,18,16,18,18,16,19,15,18,15,15]],stroke:1}};var r9=class extends ft{constructor(t){super(t),t=t||{};var e,r,i=this.canvas_=document.createElement("canvas"),a=Number(t.scale)>0?Number(t.scale):1,o=a*Au||Au,s=i.getContext("2d");if(t.image){t.image.load();var l=t.image.getImage();if(l.width)i.width=Math.round(l.width*o),i.height=Math.round(l.height*o),s.globalAlpha=typeof t.opacity=="number"?t.opacity:1,s.drawImage(l,0,0,l.width,l.height,0,0,i.width,i.height),e=s.createPattern(i,"repeat");else{var u=this;e=[0,0,0,0],l.onload=function(){i.width=Math.round(l.width*o),i.height=Math.round(l.height*o),s.globalAlpha=typeof t.opacity=="number"?t.opacity:1,s.drawImage(l,0,0,l.width,l.height,0,0,i.width,i.height),e=s.createPattern(i,"repeat"),u.setColor(e)}}}else{var c=this.getPattern_(t);if(i.width=Math.round(c.width*o),i.height=Math.round(c.height*o),s.beginPath(),t.fill&&(s.fillStyle=No(t.fill.getColor()),s.fillRect(0,0,i.width,i.height)),s.scale(o,o),s.lineCap="round",s.lineWidth=c.stroke||1,s.fillStyle=No(t.color||"#000"),s.strokeStyle=No(t.color||"#000"),c.circles)for(r=0;r<c.circles.length;r++){var h=c.circles[r];s.beginPath(),s.arc(h[0],h[1],h[2],0,2*Math.PI),c.fill&&s.fill(),c.stroke&&s.stroke()}if(c.repeat||(c.repeat=[[0,0]]),c.char&&(s.font=c.font||c.width+"px Arial",s.textAlign="center",s.textBaseline="middle",c.angle?(s.fillText(c.char,c.width/4,c.height/4),s.fillText(c.char,5*c.width/4,5*c.height/4),s.fillText(c.char,c.width/4,5*c.height/4),s.fillText(c.char,5*c.width/4,c.height/4),s.fillText(c.char,3*c.width/4,3*c.height/4),s.fillText(c.char,-c.width/4,-c.height/4),s.fillText(c.char,3*c.width/4,-c.height/4),s.fillText(c.char,-c.width/4,3*c.height/4)):s.fillText(c.char,c.width/2,c.height/2)),c.lines)for(r=0;r<c.lines.length;r++)for(var f=0;f<c.repeat.length;f++){var d=c.lines[r];s.beginPath(),s.moveTo(d[0]+c.repeat[f][0],d[1]+c.repeat[f][1]);for(var p=2;p<d.length;p+=2)s.lineTo(d[p]+c.repeat[f][0],d[p+1]+c.repeat[f][1]);c.fill&&s.fill(),c.stroke&&s.stroke(),s.save(),s.strokeStyle="red",s.strokeWidth=.1,s.restore()}if(e=s.createPattern(i,"repeat"),t.offset){var v=t.offset;if(typeof v=="number"&&(v=[v,v]),v instanceof Array){var g=Math.round(v[0]*o),y=Math.round(v[1]*o);s.scale(1/o,1/o),s.clearRect(0,0,i.width,i.height),s.translate(g,y),s.fillStyle=e,s.fillRect(-g,-y,i.width,i.height),e=s.createPattern(i,"repeat")}}}this.setColor(e)}clone(){var t=super.clone();return t.canvas_=this.canvas_,t}getImage(){return this.canvas_}getPattern_(t){var e=Ju.patterns[t.pattern]||Ju.patterns.dot,r=Math.round(t.spacing)||10,i;switch(t.pattern){case"dot":case"circle":{i=t.size===0?0:t.size/2||2,t.angle?(r=e.width=e.height=Math.round(r*1.4),e.circles=[[r/4,r/4,i],[3*r/4,3*r/4,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/4+r,r/4,i],[r/4,r/4+r,i],[3*r/4-r,3*r/4,i],[3*r/4,3*r/4-r,i],[r/4+r,r/4+r,i],[3*r/4-r,3*r/4-r,i]]))):(e.width=e.height=r,e.circles=[[r/2,r/2,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/2+r,r/2,i],[r/2-r,r/2,i],[r/2,r/2+r,i],[r/2,r/2-r,i],[r/2+r,r/2+r,i],[r/2+r,r/2-r,i],[r/2-r,r/2+r,i],[r/2-r,r/2-r,i]])));break}case"tile":case"square":{i=t.size===0?0:t.size/2||2,t.angle?(e.width=e.height=r,e.lines=[[r/2-i,r/2,r/2,r/2-i,r/2+i,r/2,r/2,r/2+i,r/2-i,r/2]]):(e.width=e.height=r,e.lines=[[r/2-i,r/2-i,r/2+i,r/2-i,r/2+i,r/2+i,r/2-i,r/2+i,r/2-i,r/2-i]]),t.pattern=="square"&&(e.repeat=[[0,0],[0,r],[r,0],[0,-r],[-r,0],[-r,-r],[r,r],[-r,r],[r,-r]]);break}case"cross":t.angle&&(t.angle=45);case"hatch":{var a=Math.round(((t.angle||0)-90)%360);a>180&&(a-=360),a*=Math.PI/180;var o=Math.cos(a),s=Math.sin(a);if(Math.abs(s)<1e-4)e.width=e.height=r,e.lines=[[0,.5,r,.5]],e.repeat=[[0,0],[0,r]];else if(Math.abs(o)<1e-4)e.width=e.height=r,e.lines=[[.5,0,.5,r]],e.repeat=[[0,0],[r,0]],t.pattern=="cross"&&(e.lines.push([0,.5,r,.5]),e.repeat.push([0,r]));else{var l=e.width=Math.round(Math.abs(r/s))||1,u=e.height=Math.round(Math.abs(r/o))||1;t.pattern=="cross"?(e.lines=[[-l,-u,2*l,2*u],[2*l,-u,-l,2*u]],e.repeat=[[0,0]]):o*s>0?(e.lines=[[-l,-u,2*l,2*u]],e.repeat=[[0,0],[l,0],[0,u]]):(e.lines=[[2*l,-u,-l,2*u]],e.repeat=[[0,0],[-l,0],[0,u]])}e.stroke=t.size===0?0:t.size||4;break}}return e}};const Vp=(n,t)=>{const e=n.__vccOpts||n;for(const[r,i]of t)e[r]=i;return e},n9=["onClick"],i9=["title"],a9={key:0},o9={key:1},s9=Vp({__name:"ClusterList",props:{popupAttr:Array,styleConfig:{type:Object,default:()=>({})}},emits:["clickPointEvent"],setup(n,{emit:t}){const e=n,r=t,i=V.ref([]),a=V.ref(null),o={popupWidth:"250px",popupHeight:"99px",fontSize:"14px",itemHeight:"22px",itemPadding:"5px 0 5px 15px"},s=V.computed(()=>({...o,...e.styleConfig})),l=V.computed(()=>({width:s.value.popupWidth,height:s.value.popupHeight,fontSize:s.value.fontSize})),u=V.computed(()=>({fontSize:s.value.fontSize})),c=V.computed(()=>({height:s.value.itemHeight,padding:s.value.itemPadding})),h=(f,d)=>{a.value=d,r("clickPointEvent",f)};return V.watch(()=>e.popupAttr,f=>{f&&Array.isArray(f)?(i.value=f.map(d=>d.getProperties()),a.value=0):(i.value=[],a.value=null)},{immediate:!0}),(f,d)=>(V.openBlock(),V.createElementBlock("div",{class:"clusterListPopup",style:V.normalizeStyle(l.value)},[V.createElementVNode("ul",{class:"paginate-list",style:V.normalizeStyle(u.value)},[(V.openBlock(!0),V.createElementBlock(V.Fragment,null,V.renderList(i.value,(p,v)=>(V.openBlock(),V.createElementBlock("li",{class:V.normalizeClass(["list-item",{active:a.value===v}]),key:v,onClick:g=>h(p,v),style:V.normalizeStyle(c.value)},[V.createElementVNode("div",{class:"item-content",title:p.type==="qbb"?p.PILE:p.dev_no},[p.type==="qbb"?(V.openBlock(),V.createElementBlock("span",a9,"情报板桩号:"+V.toDisplayString(p.PILE),1)):(V.openBlock(),V.createElementBlock("span",o9,"摄像机编号:"+V.toDisplayString(p.dev_no),1))],8,i9)],14,n9))),128))],4)],4))}},[["__scopeId","data-v-dc994c1c"]]),l9=["src"],K0={__name:"customPointLayer",props:{popupAttr:Object},setup(n,{expose:t}){const e=n,r=V.ref(null),i=V.computed(()=>e.popupAttr?e.popupAttr.popupHeight+"px":"0px"),a=V.computed(()=>e.popupAttr?e.popupAttr.popupWidth+"px":"0px");return t({customComponentRef:r,destroyFlv:()=>{r.value&&typeof r.value.destroyFlv=="function"&&r.value.destroyFlv()},destroy:()=>{r.value&&typeof r.value.destroy=="function"&&r.value.destroy()}}),(o,s)=>n.popupAttr?(V.openBlock(),V.createElementBlock("div",{key:0,style:V.normalizeStyle({height:i.value,width:a.value})},[n.popupAttr.popupComponent?(V.openBlock(),V.createBlock(V.resolveDynamicComponent(n.popupAttr.popupComponent),V.mergeProps({key:0},n.popupAttr.popupComponentProps||{},{ref_key:"customComponentRef",ref:r}),null,16)):n.popupAttr.popupUrl?(V.openBlock(),V.createElementBlock("iframe",{key:1,style:{width:"100%",height:"100%",border:"none"},src:n.popupAttr.popupUrl},null,8,l9)):V.renderSlot(o.$slots,"default",{key:2})],4)):V.createCommentVNode("",!0)}};function J0(n,t,e,r,i,a,o){const l=o||"cb48e2a640a7b1c9b559da93318b633c",u=V.ref(null),c=V.ref(!1),h=V.ref(null),f=V.ref(null),d=V.ref(null),p=V.ref(null),v=V.ref("standard"),g=V.ref(null),y=V.ref(null),m=V.ref(null),_=V.ref(null),x=V.ref(null),b=V.ref(!0),w=V.ref(null),S=V.ref(null);V.ref(null);const A=V.ref(null),T=V.ref(null),C=V.ref(null),E=V.ref(null),M=V.ref(null),D=V.ref(null),L=V.ref(null),P=V.ref(null),k=V.ref(null),R=V.ref(null),F=V.ref(null),z=V.ref(null),W=V.ref(null),O=V.ref(null),N=V.ref({distance:500,color:"rgba(255, 0, 0, 0.3)"}),X="http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?",j="https://service.sdmap.gov.cn/tileservice/dsfg_qsb?",Q="https://service.sdmap.gov.cn/tileservice/sdrasterpubmap?",de="https://t0.tianditu.gov.cn/vec_c/wmts?",Ae="https://t0.tianditu.gov.cn/cva_c/wmts?",le="353e7369f7c02e2f8c3096523133395b",se="https://service.sdmap.gov.cn/tileservice/sdrasterpubmapdj?",we="http://10.166.157.209:8090/iserver/services/map-road20/rest/maps/roadData",te="http://jsgl.sdgsbim.com:8602/iserver/services/map-JiNanGaoSuLuWangv4/rest/maps/dashLine@济南高速路网v4",oe="http://124.128.27.156:18085/arcgis/services/BaseService/roadBZ01/MapServer/WMSServer",B={all:"0,1,2",shengdao:"0",guodao:"1",other:"2"},G="http://10.166.157.209:8090/iserver/services/map-ZH20/rest/maps/ZHData20",U="/china_full.json",$="#1b2639",ue="#eeeee9",Te="#edf1f3",Xe="#3578E0",vt="#b4b4b1",Rt="#d3d3d3",nr=V.computed(()=>["dark","light","yingxiang"].includes(t.value)?t.value:"dark"),Pr=()=>nr.value==="light"?{fillColor:ue,strokeColor:vt}:nr.value==="yingxiang"?{fillColor:Te,strokeColor:Rt}:{fillColor:$,strokeColor:Xe},yn=(Z,K,fe=11)=>n.value?(x.value&&(n.value.removeLayer(x.value),x.value=null),fetch(U).then(me=>me.json()).then(me=>{const He=new br;return x.value=new kt({layerName:"china_full_Layer",source:new Pt({format:He,features:He.readFeatures(me,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:fe,style:function(){return new Ge({fill:new st({color:Z}),stroke:new ft({color:K,width:1})})}}),n.value.addLayer(x.value),x.value}).catch(me=>(console.error("加载中国省界线数据失败:",me),null))):Promise.resolve(null),ki="#1b2639",ai=(Z,K,fe={})=>{const me=fe&&typeof fe=="object"&&!Array.isArray(fe)?fe:{},He=me.baseColor??null;if(!He)return new dr.Tianditu({crossOrigin:"anonymous",key:K,projection:"EPSG:4326",url:Z,layerType:me.layerType||"vec",isLabel:me.isLabel===!0});const Me=Z.includes("?")?Z.endsWith("?")||Z.endsWith("&")?"":"&":"?",Ye=/[?&]tk=/.test(Z)?Z:`${Z}${Me}tk=${K}`;return new mE({url:Ye,layer:me.layerType||"vec",matrixSet:me.matrixSet||"c",format:me.format||"tiles",style:me.style||"default",projection:"EPSG:4326",tileGrid:dr.Tianditu.getTileGrid("EPSG:4326"),crossOrigin:"anonymous",wrapX:!0,tileLoadFunction:Co(me.filter||null,He)})},na=(Z={})=>{const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{};K.showChinaBoundary!==void 0&&(b.value=K.showChinaBoundary!==!1);let fe,me,He;nr.value==="light"?(fe=j,me=ue,He=vt):nr.value==="yingxiang"?(fe=Q,me=Te,He=Rt):(fe=X,me=$,He=Xe),d.value=new zn({layerName:"baseMapLayer",source:ai(fe,l,{baseColor:nr.value==="dark"?ki:null}),zIndex:1}),n.value.addLayer(d.value),Wa(),b.value&&yn(me,He,11);let Me=r.value;g.value=new Dh({element:Me,positioning:"bottom-center",stopEvent:!0,autoPan:!1}),n.value.addOverlay(g.value),n.value.on("click",Pe=>{let ke=Pe.coordinate;y.value=ke;let qe=document.getElementById("popupHeaderTitle"),ct=n.value.forEachFeatureAtPixel(Pe.pixel,(ht,sr)=>{if(sr){const Jt=sr.get("layerName");return Jt==="xinjiangDQLayer"||Jt==="xinjiangSJLayer"||Jt==="china_full_Layer"||Jt==null?null:ht}});if(ct)if(ct.getProperties().features)if(ct.getProperties().features.length>1){const ht=ct.getProperties().features;if(n.value.getView().getZoom()>=18){m.value=350,_.value=430,w.value=s9,S.value=ht,qe&&(qe.innerHTML="",qe.innerHTML="点位列表"),i();let sr=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),Jt=m.value/153.6*sr,on=_.value/153.6*sr;g.value.setPosition(ke),g.value.setOffset([-on/2,-Jt-25]);let Mr=n.value.getPixelFromCoordinate(ke),Un=[Mr[0],Mr[1]-150],ua=n.value.getCoordinateFromPixel(Un);n.value.getView().animate({center:ua,duration:800})}else n.value.getView().animate({center:ct.getGeometry().getCoordinates(),zoom:n.value.getView().getZoom()*2,duration:1200})}else{let ht=ct.getProperties().features[0].getProperties();if(ht){if(ht.isDrawn)return;if(ht.popoup===!1){e("clickPointEvent",ht,ke);return}const ca=ht.type,kr=ht;if(i(),ca)switch(ca){case"customPoint":m.value=kr.popupHeight,_.value=kr.popupWidth,w.value=K0,S.value={...kr,popupComponent:kr.popupComponent,popupComponentProps:kr.popupComponentProps},qe&&(qe.innerHTML="",qe.innerHTML=kr.popupTitle);break}else a()}else a();let sr=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),Jt=m.value/153.6*sr,on=_.value/153.6*sr;g.value.setPosition(ke),g.value.setOffset([-on/2,-Jt]);let Mr=n.value.getPixelFromCoordinate(ke),Un=[Mr[0],Mr[1]-(ht.popupOffsetY||150)],ua=n.value.getCoordinateFromPixel(Un);n.value.getView().animate({center:ua,duration:800})}else{let ht=ct.getProperties();if(ht){if(ht.isDrawn)return;if(ht.popoup===!1){e("clickPointEvent",ht,ke);return}i();const ca=ht.type,kr=ht;if(ca)switch(ca){case"customPoint":m.value=kr.popupHeight,_.value=kr.popupWidth,w.value=K0,S.value={...kr,popupComponent:kr.popupComponent,popupComponentProps:kr.popupComponentProps},qe.innerHTML="",qe.innerHTML=kr.popupTitle;break}else a()}else a();let sr=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),Jt=m.value/192*sr,on=_.value/192*sr;g.value.setPosition(ke),g.value.setOffset([-on/2,-Jt]);let Mr=n.value.getPixelFromCoordinate(ke),Un=[Mr[0],Mr[1]-(ht.popupOffsetY||120)],ua=n.value.getCoordinateFromPixel(Un);n.value.getView().animate({center:ua,duration:800})}else a()});let Ye=null;n.value.on("pointermove",Pe=>{if(Ye)return;Ye=setTimeout(()=>{Ye=null},50);let ke=n.value.forEachFeatureAtPixel(Pe.pixel,qe=>qe);if(ke!==u.value){if(u.value&&e("pointerOutEvent",u.value.getProperties()),ke){let qe=null;if(ke.getProperties().longitude&&ke.getProperties().latitude){let ct=[ke.getProperties().longitude,ke.getProperties().latitude];qe=n.value.getPixelFromCoordinate(ct)}e("pointerMoveEvent",ke.getProperties(),qe)}u.value=ke}})},Zr=(Z,K,fe)=>{d.value&&n.value.removeLayer(d.value),x.value&&(n.value.removeLayer(x.value),x.value=null),d.value=new zn({layerName:"baseMapLayer",source:ai(Z,l,{baseColor:Z===X?ki:null}),zIndex:1}),n.value.addLayer(d.value),b.value&&yn(K,fe,3)},mn=Z=>{if(b.value=Z!==!1,!n.value)return b.value;if(!b.value)x.value&&(n.value.removeLayer(x.value),x.value=null);else if(!x.value){const{fillColor:K,strokeColor:fe}=Pr();yn(K,fe,11)}return b.value},_n={standard:{fill:"#ffffff",labelUrl:Ae,stroke:vt,url:de,key:le,layerType:"vec",isLabel:!0},light:{fill:ue,labelUrl:"",stroke:vt,url:j},dark:{fill:$,labelUrl:"",stroke:Xe,url:X,baseColor:ki},image:{fill:Te,labelUrl:se,stroke:Rt,url:Q}},ia=(Z=vt)=>{n.value&&(x.value&&(n.value.removeLayer(x.value),x.value=null),fetch(U).then(K=>K.json()).then(K=>{x.value=new kt({layerName:"china_full_Layer",source:new Pt({features:new br().readFeatures(K,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:function(){return new Ge({fill:new st({color:"rgba(0, 0, 0, 0)"}),stroke:new ft({color:Z,width:1})})},zIndex:11}),n.value.addLayer(x.value)}).catch(K=>{console.error("加载行政区划边界失败:",K)}))},Ir=(Z="standard",K={})=>{if(!n.value)return console.error("switchBaseMap: Map reference is not valid"),null;const fe=_n[Z]||_n.standard,me=n.value;d.value&&(me.removeLayer(d.value),d.value=null),p.value&&(me.removeLayer(p.value),p.value=null);const He=fe.key||l,Me=ai(fe.url,He,{layerType:fe.layerType||"vec",baseColor:fe.baseColor??null});return d.value=new zn({layerName:"baseMapLayer",source:Me,zIndex:0}),me.addLayer(d.value),fe.labelUrl&&(p.value=new zn({layerName:"baseMapLabelLayer",source:new dr.Tianditu({crossOrigin:"anonymous",key:fe.key||l,projection:"EPSG:4326",url:fe.labelUrl,layerType:fe.layerType||"vec",isLabel:fe.isLabel===!0}),zIndex:1}),me.addLayer(p.value)),K.showDistrict&&ia(K.districtColor||fe.stroke),v.value=Z,Z},Va=()=>Object.keys(_n).map(Z=>({type:Z,url:_n[Z].url})),Kt=V.ref(null),rn="invert(1) hue-rotate(195deg) saturate(0.65) contrast(1.4)",Hn=ki,Co=(Z,K)=>{let fe=null,me=null;return(He,Me)=>{const Ye=He.getImage(),Pe=new Image;Pe.crossOrigin="anonymous",Pe.onload=()=>{if(fe||(fe=document.createElement("canvas"),me=fe.getContext("2d")),!me||typeof me.filter>"u"){Ye.src=Me;return}fe.width=Pe.naturalWidth||Pe.width,fe.height=Pe.naturalHeight||Pe.height,me.filter=Z||"none",me.drawImage(Pe,0,0),me.filter="none",K&&(me.globalCompositeOperation="lighten",me.fillStyle=K,me.fillRect(0,0,fe.width,fe.height),me.globalCompositeOperation="destination-in",me.drawImage(Pe,0,0),me.globalCompositeOperation="source-over");try{Ye.src=fe.toDataURL("image/png")}catch(ke){console.warn("暗色底图瓦片处理失败,回退原图:",ke),Ye.src=Me}},Pe.onerror=()=>{Ye.src=Me},Pe.src=Me}},Eo=(Z={})=>{if(!n.value)return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.url??"https://t0.tianditu.gov.cn/vec_c/wmts?",me=K.key||le,He=K.filter??rn,Me=K.baseColor===void 0?Hn:K.baseColor,Ye=K.layerName??"darkNoLabelLayer",Pe=Number(K.zIndex??0),ke=K.replaceBaseMap??!0;let qe=Number(K.opacity??1);Number.isNaN(qe)&&(qe=1),qe=Math.min(Math.max(qe,0),1);const ct=fe.includes("?")?fe.endsWith("?")||fe.endsWith("&")?"":"&":"?",ht=/[?&]tk=/.test(fe)?fe:`${fe}${ct}tk=${me}`;return aa(),ke&&d.value&&(n.value.removeLayer(d.value),d.value=null),Kt.value=new zn({layerName:Ye,source:new mE({url:ht,layer:K.wmtsLayer??"vec",matrixSet:K.matrixSet??"c",format:K.format??"tiles",style:K.style??"default",projection:"EPSG:4326",tileGrid:dr.Tianditu.getTileGrid("EPSG:4326"),crossOrigin:"anonymous",wrapX:!1,tileLoadFunction:Co(He,Me)}),zIndex:Pe,opacity:qe}),n.value.addLayer(Kt.value),Kt.value},aa=()=>{var Z;Kt.value&&((Z=n.value)==null||Z.removeLayer(Kt.value),Kt.value=null)},Io=Z=>{if(!n.value||!Z)return!1;const K=n.value.getLayers().getArray();let fe=null;return K.forEach(me=>{me.get("layerName")===Z&&(fe=me)}),fe?(n.value.removeLayer(fe),!0):!1},_u=(Z={})=>{const{fillColor:K="rgba(1, 153, 255, 0.25)",strokeColor:fe="#0199ff",strokeWidth:me=1.5,pointColor:He="#ff7a45",pointRadius:Me=4,labelField:Ye="",labelColor:Pe="#1f2d3d"}=Z;return ke=>{const qe=[new Ge({fill:new st({color:K}),stroke:new ft({color:fe,width:me}),image:new pa({radius:Me,fill:new st({color:He}),stroke:new ft({color:"#ffffff",width:1})})})];if(Ye){const ct=ke.get(Ye);ct!=null&&ct!==""&&qe.push(new Ge({text:new jo({text:String(ct),font:"12px sans-serif",offsetY:-14,fill:new st({color:Pe}),stroke:new ft({color:"rgba(255, 255, 255, 0.9)",width:3})})}))}return qe}},Oi=(Z={})=>{const{layerName:K,opacity:fe=1,projection:me="EPSG:4326",type:He="raster",url:Me,zIndex:Ye=5}=Z;if(!n.value||!K||!Me)return console.error("addTileLayerByUrl: 参数不完整(layerName / url 必填)"),null;if(Io(K),He==="vector"){const ke=new f6({layerName:K,opacity:fe,declutter:!0,style:_u(Z),source:new D6({crossOrigin:"anonymous",format:new t6,projection:me,url:Me,minZoom:Z.minZoom??0,maxZoom:Z.maxZoom??18}),zIndex:Ye});return n.value.addLayer(ke),ke}const Pe=new zn({layerName:K,opacity:fe,source:new yE({crossOrigin:"anonymous",projection:me,url:Me}),zIndex:Ye});return n.value.addLayer(Pe),Pe},Os=(Z,K,fe,me={})=>fe?Oi({layerName:Z,url:K,...me}):Io(Z),Wa=()=>{C.value&&n.value.removeLayer(C.value),C.value=new zn({layerName:"baseRoadlayer",source:new dr.TileSuperMapRest({url:we,wrapX:!0,cacheEnabled:!0,crossOrigin:"anonymous"}),zIndex:15,projection:"EPSG:4326",maxTilesLoading:8,preload:0}),n.value.addLayer(C.value),E.value&&n.value.removeLayer(E.value),E.value=new zn({layerName:"roadLinelayer",source:new dr.TileSuperMapRest({url:te,wrapX:!0,cacheEnabled:!0,crossOrigin:"anonymous"}),zIndex:9,projection:"EPSG:4326",visible:!1,maxTilesLoading:8,preload:0}),n.value.addLayer(E.value);const Z=n.value.getView();let K=null;const fe=()=>{Z.getZoom()<15?(C.value.getVisible()||C.value.setVisible(!0),E.value.getVisible()&&E.value.setVisible(!1)):(C.value.getVisible()&&C.value.setVisible(!1),E.value.getVisible()||E.value.setVisible(!0))};return fe(),Z.on("change:resolution",()=>{K&&clearTimeout(K),K=setTimeout(fe,150)}),{baseRoadlayer:C.value,roadLinelayer:E.value}},Rs=()=>{C.value&&(n.value.removeLayer(C.value),C.value=null),E.value&&(n.value.removeLayer(E.value),E.value=null)},Mo=(Z={})=>{if(!(n!=null&&n.value))return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.url??oe,me=K.layers??B.all,He=K.zIndex??12,Me=K.layerName??"binzhouRoadLayer",Ye=K.visible??!0;let Pe=Number(K.opacity??1);return Number.isNaN(Pe)&&(Pe=1),Pe=Math.min(Math.max(Pe,0),1),M.value&&(n.value.removeLayer(M.value),M.value=null),M.value=new zn({layerName:Me,source:new e9({url:fe,params:{LAYERS:me,STYLES:K.styles??"",FORMAT:K.format??"image/png",VERSION:K.version??"1.1.1",TRANSPARENT:K.transparent??!0,...K.params||{}},projection:"EPSG:4326",crossOrigin:"anonymous"}),zIndex:He,opacity:Pe,visible:Ye}),n.value.addLayer(M.value),M.value},oa=()=>{M.value&&(n.value.removeLayer(M.value),M.value=null)},sa=[{京九通道:"rgba(174, 93, 57, 0.8)"},{京沪通道:"rgba(174, 93, 57, 0.8)"},{滨临通道:"rgba(174, 93, 57, 0.8)"},{京沪二通道:"rgba(145,223,24,1)"},{济青通道:"rgba(227,172,29,1)"},{鲁中通道:"rgba(139, 72, 213, 0.8)"},{鲁北通道:"rgba(227,172,29,1)"},{鲁南通道:"rgba(139, 72, 213, 0.8)"},{沿海通道:"rgba(174, 93, 57, 0.8)"},{沿黄达海通道:"rgba(13,189,248, 1)"}],la=[{京九通道:"#FFB1A0"},{京沪通道:"#FFB1A0"},{滨临通道:"#FFB1A0"},{京沪二通道:"#FFB1A0"},{济青通道:"#E4CDFF"},{鲁中通道:"#E4CDFF"},{鲁北通道:"#E4CDFF"},{鲁南通道:"#E4CDFF"},{沿海通道:"#FFB1A0"},{沿黄达海通道:"#BCEBFF"}],Do=[{京九通道:90},{京沪通道:90},{滨临通道:90},{京沪二通道:90},{济青通道:0},{鲁中通道:0},{鲁北通道:0},{鲁南通道:0},{沿海通道:0},{沿黄达海通道:0}],nn=Z=>{const K={};return(Z||[]).forEach(fe=>{fe&&typeof fe=="object"&&Object.keys(fe).forEach(me=>{K[me]=fe[me]})}),K},xu=(Z={})=>{if(!n.value)return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.baseImgURL??"",me=K.geoJSONUrl??"/std.json",He=K.projection??"EPSG:4326",Me=K.layerName??"roadNetworkLayer",Ye=K.zIndex??5,Pe=K.strokeWidth??15,ke=K.defaultColor??"rgba(23, 136, 185, 0.8)",qe=K.defaultTextColor??"#BCEBFF",ct=K.defaultAngle??0,ht=nn(K.colors||sa),sr=nn(K.textColors||la),Jt=nn(K.angles||Do);return Ns(),D.value=new kt({layerName:Me,source:new Pt({url:`${fe||""}${me}`,format:new br({dataProjection:"EPSG:4326",featureProjection:He})}),style:function(on){const Mr=on.getProperties().name,Un={stroke:new r9({width:Pe,pattern:"hatch",color:ht[Mr]??ke,offset:0,scale:.9,fill:new st({color:"rgba(0,0,0,0)"}),size:1.5,spacing:4,angle:Jt[Mr]??ct,lineCap:"square"})};return Mr&&(Un.text=new jo({text:Mr,font:"bold 18px sans-serif",fill:new st({color:sr[Mr]??qe}),rotateWithView:!0,placement:"line",textAlign:"center",backgroundFill:new st({color:"rgba(0, 30, 68, 0.6)"}),backgroundStroke:new ft({color:"#FF8066",width:2}),padding:[5,10,5,10]})),new Ge(Un)},zIndex:Ye}),n.value.addLayer(D.value),D.value},Ns=()=>{var Z;D.value&&((Z=n.value)==null||Z.removeLayer(D.value),D.value=null)},Ri=["#f04b3f","#3b6ca6"],Ni=(Z,K)=>!Z||!K?0:Math.atan2(K[0]-Z[0],K[1]-Z[1]),Y=Z=>{let K=Z;for(;K>Math.PI/2;)K-=Math.PI;for(;K<-Math.PI/2;)K+=Math.PI;return K},ee=(Z={})=>{if(!n.value)return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.baseImgURL??"",me=K.geoJSONUrl??"/sanheng.json",He=K.projection??"EPSG:4326",Me=K.layerName??"sanhengLayer",Ye=K.zIndex??6,Pe=Array.isArray(K.colors)&&K.colors.length?K.colors:Ri,ke=Pe[0],qe=Pe[1]??Pe[0],ct=K.squareSize??18,ht=K.dashLength??Math.round(ct*1.2),sr=K.dashGap??Math.round(ct*.85),Jt=K.arrowSize??16,on=K.labelFont??"bold 16px sans-serif",Mr=K.labelOffsetY??0,Un=K.showArrow!==!1,ua=K.showLabel!==!1,ca=K.arrowColors||{},kr=K.labelColors||{},Nd=[ht,sr],sn=[sr,ht];return ie(),L.value=new kt({layerName:Me,source:new Pt({url:`${fe||""}${me}`,format:new br({dataProjection:"EPSG:4326",featureProjection:He})}),style:function(oi){const Lo=oi.get("name")??"",Qy=Lo.startsWith("纵")?qe:ke,MA=ca[Lo]??Qy,$y=kr[Lo]??Qy,bu=[new Ge({stroke:new ft({color:ke,width:ct,lineCap:"butt",lineDash:Nd,lineDashOffset:0})}),new Ge({stroke:new ft({color:qe,width:ct,lineCap:"butt",lineDash:sn,lineDashOffset:sr})})],Fd=oi.getGeometry();if(!Fd||Fd.getType()!=="LineString")return bu;const Wr=Fd.getCoordinates();if(Wr.length<2)return bu;if(Un&&[{coord:Wr[0],rotation:Ni(Wr[0],Wr[1])+Math.PI},{coord:Wr[Wr.length-1],rotation:Ni(Wr[Wr.length-2],Wr[Wr.length-1])}].forEach(fh=>{bu.push(new Ge({geometry:new Kr(fh.coord),image:new p0({points:3,radius:Jt,rotation:fh.rotation,fill:new st({color:MA}),stroke:new ft({color:"#ffffff",width:1})})}))}),ua&&Lo){const hh=Math.floor(Wr.length/2),fh=Wr[hh],DA=Wr[hh-1]??Wr[0],LA=Wr[hh+1]??Wr[Wr.length-1],PA=Y(Ni(DA,LA)-Math.PI/2);bu.push(new Ge({geometry:new Kr(fh),text:new jo({text:Lo,font:on,fill:new st({color:$y}),backgroundFill:new st({color:"rgba(255, 255, 255, 0.96)"}),backgroundStroke:new ft({color:$y,width:2}),padding:[6,12,6,12],rotation:PA,rotateWithView:!1,textAlign:"center",textBaseline:"middle",overflow:!0,offsetY:Mr})}))}return bu},zIndex:Ye}),n.value.addLayer(L.value),L.value},ie=()=>{var Z;L.value&&((Z=n.value)==null||Z.removeLayer(L.value),L.value=null)},pe=()=>(P.value&&n.value.removeLayer(P.value),P.value=new zn({layerName:"pileLayer",source:new dr.TileSuperMapRest({url:G,wrapX:!0,cacheEnabled:!0,crossOrigin:"anonymous"}),zIndex:10,projection:"EPSG:4326",maxTilesLoading:8,preload:0}),n.value.addLayer(P.value),P.value),ye=()=>{P.value&&(n.value.removeLayer(P.value),P.value=null)},_e=()=>{const Z=new Date,K=Z.getFullYear();let fe=Z.getMonth()+1,me=Z.getDate();const He=Z.getHours(),Me=Z.getMinutes(),Ye=Z.getSeconds();fe>=1&&fe<=9&&(fe="0"+fe),me>=1&&me<=9&&(me="0"+me);const Pe=K+"-"+fe+"-"+me+" "+He+":"+Me+":"+Ye;return new Date(Pe.replace(new RegExp("-","gm"),"/")).getTime()},Ze=(Z={})=>{k.value&&n.value.removeLayer(k.value);const K=-.00575;return k.value=new zn({layerName:"gaodeTrafficLayer",source:new yE({url:`http://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0&;t=1&x={x}&y={y}&z={z}&&t=${_e()}`,crossOrigin:"anonymous"}),zIndex:Z.zIndex||9,minZoom:Z.minZoom??13}),k.value.on("prerender",fe=>{const me=fe.context,He=n.value.getView().getZoom(),Me=K*(256*Math.pow(2,He))/360,Ye=5e-5*(256*Math.pow(2,He))/360;me.save(),me.translate(Me,Ye)}),k.value.on("postrender",fe=>{fe.context.restore()}),n.value.addLayer(k.value),k.value},he=()=>{k.value&&(n.value.removeLayer(k.value),k.value=null)},Ie=()=>(A.value&&n.value.removeLayer(A.value),A.value=new zn({source:new dr.Tianditu({layerType:"img",key:"2356a0d8a94aae5abf2a0bcb689d1d26",crossOrigin:"anonymous"}),zIndex:1,maxTilesLoading:8,preload:0}),n.value.addLayer(A.value),T.value&&n.value.removeLayer(T.value),T.value=new zn({source:new dr.Tianditu({layerType:"img",isLabel:!0,key:"2356a0d8a94aae5abf2a0bcb689d1d26",crossOrigin:"anonymous"}),zIndex:2,maxTilesLoading:8,preload:0}),n.value.addLayer(T.value),{yingxiangLayer:A.value,yingxiangBZLayer:T.value}),Ke=()=>{A.value&&(n.value.removeLayer(A.value),A.value=null),T.value&&(n.value.removeLayer(T.value),T.value=null)},Nt="path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z",Et=(Z={})=>{if(!n.value)return console.error("地图实例未就绪,无法绘制迁徙线"),null;const K=Z.cityData||[],fe=Z.startIndex??0;return K.length?(F.value={cityData:K,startIndex:fe,cityColors:Z.cityColors,lineColor:Z.lineColor,planePath:Z.planePath,lineWidth:Z.lineWidth,symbolSize:Z.symbolSize,period:Z.period},R.value||(R.value=new tm(null,{stopEvent:!1,hideOnMoving:!1,hideOnZooming:!1,forcedPrecomposeRerender:!0}),R.value.appendTo(n.value)),nt(F.value),R.value):(console.error("迁徙线城市数据不能为空"),null)},nt=Z=>{if(!R.value||!Z)return;const{cityData:K,cityColors:fe,planePath:me,lineWidth:He,symbolSize:Me,period:Ye}=Z,Pe=Z.startIndex??0,ke=K[Pe];if(!ke){console.error("起点城市索引超出范围");return}const qe=fe||{},ct=Z.lineColor,ht=me||Nt,sr=He??2,Jt=Me??6,on=Ye??5,Mr=[];K.forEach((sn,oi)=>{oi!==Pe&&Mr.push({coords:[ke.name,sn.name]})});const Un=sn=>{const oi=K.find(Lo=>Lo.name===sn);return oi?oi.value:null},ua=Mr.map(sn=>({coords:sn.coords.map(Un).filter(Boolean)})).filter(sn=>sn.coords.length===2),ca=[{name:ke.name,value:ke.value,symbolSize:Jt}],kr=K.filter((sn,oi)=>oi!==Pe).map(sn=>({name:sn.name,value:sn.value,symbolSize:Jt})),Nd={series:[{type:"lines",zlevel:2,coordinateSystem:"geo",symbol:["none","arrow"],data:ua,effect:{show:!0,period:on,trailLength:0,symbol:ht,symbolSize:15,color:ct},lineStyle:{color:ct,opacity:1,width:sr,curveness:.4}},{type:"effectScatter",zlevel:1,coordinateSystem:"geo",symbolSize:Jt,itemStyle:{color:qe[ke.name]||"#ff3333"},rippleEffect:{brushType:"stroke",period:4,scale:3},label:{show:!0,position:"bottom",color:"#39b3ff",fontSize:16,distance:10,formatter:"{b}"},data:ca},{type:"effectScatter",zlevel:1,coordinateSystem:"geo",symbolSize:Jt,itemStyle:{color:sn=>{const oi=kr[sn.dataIndex].name;return qe[oi]||"#83cdff"}},rippleEffect:{brushType:"stroke",period:4,scale:3},label:{show:!0,position:"bottom",color:"#39b3ff",fontSize:16,distance:10,formatter:"{b}"},data:kr}]};R.value.setChartOptions(Nd)},xt=(Z={})=>{if(!R.value){console.warn("迁徙线图层尚未初始化,无法更新数据,请先调用 initMigrationLinesLayer");return}if(!F.value){console.warn("未找到迁徙线原始数据,无法更新");return}F.value={...F.value,...Z},nt(F.value)},ce=()=>{if(R.value){try{R.value.remove()}catch(Z){console.error("移除迁徙线图层失败:",Z)}R.value=null}F.value=null},ae=(Z={})=>{if(!n.value){console.error("地图实例未就绪,无法启动缓冲区绘制");return}N.value={distance:Z.distance??500,color:Z.color??"rgba(255, 0, 0, 0.3)",type:Z.type??"LineString"},Ht(),O.value?(O.value.getSource().clear(),O.value.setStyle(new Ge({fill:new st({color:N.value.color}),stroke:new ft({color:N.value.color.replace(/[\d.]+\)$/,"1)"),width:2})}))):(O.value=new kt({source:new Pt,style:new Ge({fill:new st({color:N.value.color}),stroke:new ft({color:N.value.color.replace(/[\d.]+\)$/,"1)"),width:2})}),zIndex:99}),n.value.addLayer(O.value)),W.value?W.value.getSource().clear():(W.value=new kt({source:new Pt,style:new Ge({stroke:new ft({color:"#39b3ff",width:3}),image:new pa({radius:6,fill:new st({color:"#39b3ff"})})}),zIndex:100}),n.value.addLayer(W.value)),z.value=new Ep({source:W.value.getSource(),type:N.value.type,style:new Ge({stroke:new ft({color:"rgba(57, 179, 255, 0.8)",lineDash:[10,10],width:3}),image:new pa({radius:6,fill:new st({color:"rgba(57, 179, 255, 0.8)"})})})}),z.value.on("drawend",K=>{gt(K.feature),setTimeout(()=>{Ht()},100)}),n.value.addInteraction(z.value)},Se=(Z,K,fe,me)=>{const He=63710088e-1,Me=on=>on*Math.PI/180,Ye=on=>on*180/Math.PI,Pe=Me(fe),ke=Me(K),qe=Me(Z),ct=me/He,ht=Math.asin(Math.sin(ke)*Math.cos(ct)+Math.cos(ke)*Math.sin(ct)*Math.cos(Pe)),Jt=(qe+Math.atan2(Math.sin(Pe)*Math.sin(ct)*Math.cos(ke),Math.cos(ct)-Math.sin(ke)*Math.sin(ht))+3*Math.PI)%(2*Math.PI)-Math.PI;return[Ye(Jt),Ye(ht)]},Ce=(Z,K,fe,me)=>{const He=ht=>ht*Math.PI/180,Me=ht=>ht*180/Math.PI,Ye=He(fe-Z),Pe=He(K),ke=He(me),qe=Math.sin(Ye)*Math.cos(me),ct=Math.cos(Pe)*Math.sin(ke)-Math.sin(Pe)*Math.cos(ke)*Math.cos(Ye);return(Me(Math.atan2(qe,ct))+360)%360},dt=(Z,K)=>{if(!Z||Z.length<2){if(Z&&Z.length===1){const[Me,Ye]=Z[0],Pe=[],ke=64;for(let qe=0;qe<=ke;qe++){const ct=qe*360/ke,ht=Se(Me,Ye,ct,K);Pe.push(ht)}return Pe}return null}const fe=[],me=[];for(let Me=0;Me<Z.length;Me++){const[Ye,Pe]=Z[Me];let ke;if(Me===0)ke=Ce(Ye,Pe,Z[Me+1][0],Z[Me+1][1]);else if(Me===Z.length-1)ke=Ce(Z[Me-1][0],Z[Me-1][1],Ye,Pe);else{const ht=Ce(Z[Me-1][0],Z[Me-1][1],Ye,Pe);let Jt=Ce(Ye,Pe,Z[Me+1][0],Z[Me+1][1])-ht;Jt>180&&(Jt-=360),Jt<-180&&(Jt+=360),ke=(ht+Jt/2+360)%360}const qe=(ke-90+360)%360,ct=(ke+90)%360;fe.push(Se(Ye,Pe,qe,K)),me.push(Se(Ye,Pe,ct,K))}return[...fe,...me.slice().reverse(),fe[0]].filter(Me=>Number.isFinite(Me[0])&&Number.isFinite(Me[1]))},gt=Z=>{if(!Z||!O.value)return;const K=N.value.distance,fe=Z.getGeometry();if(!fe)return;const me=fe.getType();let He=null;try{if(me==="LineString"){const Pe=fe.getCoordinates();He=dt(Pe,K)}else if(me==="Point"){const[Pe,ke]=fe.getCoordinates();He=[];const qe=64;for(let ct=0;ct<=qe;ct++){const ht=ct*360/qe;He.push(Se(Pe,ke,ht,K))}}else if(me==="Polygon"){const Pe=fe.getCoordinates(),ke=Pe[0],qe=Pe.slice(1),ct=dt(ke,K),ht=qe.map(sr=>dt(sr,-K)).filter(Boolean);He=ct,ht.length&&(He=ct)}else{console.error("不支持的几何类型:",me);return}if(!He||He.length<4){console.warn("缓冲区生成结果为空");return}const Me=new Kn([He]),Ye=new fa({geometry:Me});O.value.getSource().addFeature(Ye)}catch(Me){console.error("生成缓冲区失败:",Me)}},Yt=(Z={})=>{Z.distance!==void 0&&(N.value.distance=Z.distance),Z.color!==void 0&&(N.value.color=Z.color,O.value&&O.value.setStyle(new Ge({fill:new st({color:Z.color}),stroke:new ft({color:Z.color.replace(/[\d.]+\)$/,"1)"),width:2})})))},Ht=()=>{z.value&&(n.value.removeInteraction(z.value),z.value=null)},an=()=>{Ht(),W.value&&(W.value.getSource().clear(),n.value.removeLayer(W.value),W.value=null),O.value&&(O.value.getSource().clear(),n.value.removeLayer(O.value),O.value=null)};return V.watch(t,Z=>{Z==="dark"?Zr(X,$,Xe):Z==="light"?Zr(j,ue,vt):Z==="yingxiang"&&Zr(Q,Te,Rt)}),{lastHoverFeature:u,isCluster:c,echartslayer:h,congestedRoadLayer:f,tiandituLayer:d,overlayPopup:g,initialPoint:y,popupHeight:m,popupWidth:_,china_full_Layer:x,showChinaBoundary:b,setShowChinaBoundary:mn,currentTabComponent:w,popupAttributes:S,shandongYingxiangLayer:A,shandongYingxiangBZLayer:T,baseRoadlayer:C,roadLinelayer:E,binzhouRoadLayer:M,binzhouRoadSubLayers:B,pileLayer:P,gaodeTrafficLayer:k,normalizedThemeStyle:nr,initBaseLayers:na,loadShandongYingxiangLayer:Ie,removeShandongYingxiangLayer:Ke,loadShandongRoadLayer:Wa,removeShandongRoadLayer:Rs,loadBinzhouRoadLayer:Mo,removeBinzhouRoadLayer:oa,roadNetworkLayer:D,initRoadNetwork:xu,removeRoadNetworkLayer:Ns,sanhengLayer:L,initSanhengLayer:ee,removeSanhengLayer:ie,loadPileLayer:pe,removePileLayer:ye,loadGaodeTrafficLayer:Ze,removeGaodeTrafficLayer:he,baseLabelLayer:p,currentBaseMap:v,switchBaseMap:Ir,getBaseMapTypes:Va,darkNoLabelLayer:Kt,loadDarkNoLabelLayer:Eo,removeDarkNoLabelLayer:aa,addTileLayerByUrl:Oi,removeTileLayerByName:Io,setTileLayerVisible:Os,migrationLinesLayer:R,migrationLinesData:F,initMigrationLinesLayer:Et,updateMigrationLinesData:xt,removeMigrationLinesLayer:ce,bufferConfig:N,startBufferDraw:ae,stopBufferDraw:Ht,updateBufferConfig:Yt,clearBufferLayer:an}}const ga={background:"#f5543f",color:"#ffffff",borderColor:"#ffffff",borderWidth:2,padding:[4,10,4,10],font:"bold 16px sans-serif",offsetX:10,offsetY:-20,scale:1},_E=new Map,xE=()=>{const n=typeof window<"u"&&window.devicePixelRatio?window.devicePixelRatio:1;return Math.min(Math.max(n,1),3)},u9=(n,t,e,r,i,a)=>{const o=Math.min(a,r/2,i/2);n.beginPath(),n.moveTo(t+o,e),n.lineTo(t+r-o,e),n.arcTo(t+r,e,t+r,e+o,o),n.lineTo(t+r,e+i-o),n.arcTo(t+r,e+i,t+r-o,e+i,o),n.lineTo(t+o,e+i),n.arcTo(t,e+i,t,e+i-o,o),n.lineTo(t,e+o),n.arcTo(t,e,t+o,e,o),n.closePath()},c9=(n,t)=>{const{background:e,color:r,borderColor:i,borderWidth:a,padding:o,font:s}=t,[l,u,c,h]=o,f=Number((/(\d+(?:\.\d+)?)px/.exec(s)||[])[1])||16,d=document.createElement("canvas").getContext("2d");d.font=s;const p=d.measureText(n).width,v=Math.ceil(p+h+u+a*2),g=Math.ceil(f*1.2),y=Math.ceil(g+l+c+a*2),m=xE(),_=document.createElement("canvas");_.width=Math.ceil(v*m),_.height=Math.ceil(y*m);const x=_.getContext("2d");x.scale(m,m);const b=a/2;return u9(x,b,b,v-a,y-a,y/2),x.fillStyle=e,x.fill(),a>0&&(x.lineWidth=a,x.strokeStyle=i,x.stroke()),x.font=s,x.textAlign="center",x.textBaseline="middle",x.fillStyle=r,x.fillText(n,v/2,y/2),{canvas:_,width:v,height:y}},q0=(n,t={})=>{const e={...ga,...t},r=n==null?"":n.toString();if(e.pill===!1){const f={text:r,font:e.font,offsetX:e.offsetX,offsetY:e.offsetY,fill:new st({color:e.color})};return e.textStrokeColor&&(f.stroke=new ft({color:e.textStrokeColor,width:e.textStrokeWidth===void 0?2:e.textStrokeWidth})),new Ge({text:new jo(f)})}const i=xE(),a=Array.isArray(e.padding)?e.padding:ga.padding,o=e.scale===void 0?1:e.scale,s=e.offsetX===void 0?0:e.offsetX,l=e.offsetY===void 0?0:e.offsetY,u=[r,e.background,e.color,e.borderColor,e.borderWidth,e.font,a.join("-"),i].join("|");let c=_E.get(u);c||(c=c9(r,{...e,padding:a}),_E.set(u,c));const h=[c.canvas.width,c.canvas.height];return new Ge({image:new ur({img:c.canvas,imgSize:h,size:h,scale:o/i,displacement:[s*i,-l*i]})})},Q0=(n={})=>{const t=n.clusterPill!==!1;return{pill:t,background:n.clusterColor||ga.background,color:t?n.clusterTextColor||ga.color:n.clusterColor||"red",borderColor:n.clusterBorderColor||ga.borderColor,borderWidth:n.clusterBorderWidth===void 0?ga.borderWidth:n.clusterBorderWidth,padding:n.clusterPadding||ga.padding,font:n.clusterFont||ga.font,offsetX:n.clusterOffsetX===void 0?ga.offsetX:n.clusterOffsetX,offsetY:n.clusterOffsetY===void 0?ga.offsetY:n.clusterOffsetY,textStrokeColor:n.clusterTextStrokeColor,textStrokeWidth:n.clusterTextStrokeWidth}};function $0(n,t,e,r,i,a,o,s,l,u){const c=V.ref(!1),h=V.ref([]),f=V.ref([]),d=V.ref(null),p="/qu.json",v=V.ref(null),g=V.ref(null),y=V.ref(null),m=(Y,ee)=>{if(!ee||!ee.longitude||!ee.latitude){console.error("openPopupByattr: data 缺少经纬度信息");return}let ie=[ee.longitude,ee.latitude],pe=document.getElementById("popupHeaderTitle");switch(r(),Y){case"customPoint":a.value=ee.popupHeight,o.value=ee.popupWidth,s.value=K0,l.value={...ee,component:ee.component,componentProps:ee.componentProps},pe&&(pe.innerHTML=ee.popupTitle||"");break}if(!u.value)return;let ye=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),_e=a.value/153.6*ye,Ze=o.value/153.6*ye;u.value.setPosition(ie),u.value.setOffset([-Ze/2,-_e-ee.iconHeight]);let he=n.value.value.getPixelFromCoordinate(ie),Ie=[he[0],he[1]-ee.popupOffsetY],Ke=n.value.value.getCoordinateFromPixel(Ie);setTimeout(()=>{n.value.value.getView().animate({center:Ke,duration:800})},10)},_=(Y,ee)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}n.value.value.getView().animate({center:Y,zoom:ee,duration:800})},x=()=>!n||!n.value||!n.value.value?(console.error("Map reference is not valid"),null):n.value.value.getView().getZoom(),b=(Y,ee,ie,pe)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ye=n.value.value.getLayers().getArray(),_e=null;for(let he=0;he<ye.length;he++){let Ie=ye[he];if(Ie.get("layerName")===ee){_e=Ie;break}}let Ze=new Pt;if(Y.pointList.forEach(he=>{let Ie=new Fs.Feature({title:"要素点",geometry:new Kr([he.longitude,he.latitude])});Ie.set("type",he.type),Ie.set("iconUrl",he.iconUrl),Ie.set("popoup",he.popoup),Ie.set("popupTitle",he.popupTitle),Ie.set("popupUrl",he.popupUrl),Ie.set("popupWidth",he.popupWidth),Ie.set("popupHeight",he.popupHeight),Ie.set("popupOffsetY",he.popupOffsetY),Ie.set("otherInfo",he.otherInfo),Ie.set("longitude",he.longitude),Ie.set("latitude",he.latitude),Ie.set("isVisible",!1),Ie.set("layerId",ee),Ie.set("popupComponent",he.popupComponent),Ie.set("popupComponentProps",he.popupComponentProps);let Ke=[new Ge({image:new ur({src:he.iconUrl,scale:he.scale,offset:he.offset,offsetOrigin:"bottom-right",size:he.size})}),new Ge({text:new jo({font:he.textFontSize||"14px sans-serif",fill:new st({color:he.textColor||"rgb(255, 255, 255)"}),stroke:new ft({color:"rgb(33, 33, 33)",width:0}),backgroundFill:new st({color:he.textBGColor||"rgba(94, 110, 158, 0.6)"}),backgroundStroke:new ft({color:"rgba(173, 173, 173, 0.1)",width:1}),text:he.name||"",textAlign:"center",textBaseline:"bottom",offsetX:he.textOffsetX||0,offsetY:he.textOffsetY||40,overflow:!0,padding:[0,2,0,2]}),zIndex:60})];Ie.setStyle(Ke),Ze.addFeature(Ie)}),ie){pe.value=new kt({layerName:ee,zIndex:999,style:function(Et){if(!Et.get("features"))return Et.getStyle();const nt=Et.get("features").length;let xt;if(nt>1){new Ge({image:new p0({fill:new st({color:[233,188,38,.7]}),stroke:new ft({color:[233,188,38,1],width:1}),points:6,radius:27}),text:new jo({fill:new st({color:"#ffffff"}),offsetY:2,font:"bold 16px sans-serif",text:nt.toString()})});let ce=new Ge({image:new ur({src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzNCA0MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IiYjMjMwOyYjMTUwOyYjMTg5OyYjMjI5OyYjMTgzOyYjMTY1OyIgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzQ0M18zNDkpIj4KPGcgaWQ9IiYjMjMzOyYjMTYxOyYjMTgxOyYjMjMzOyYjMTU3OyYjMTYyOy0xIj4KPGcgaWQ9IiYjMjMzOyYjMTY2OyYjMTUwOyYjMjMzOyYjMTYxOyYjMTgxOy0mIzIzMTsmIzE1MzsmIzE4OTsmIzIzMjsmIzEzNzsmIzE3ODsmIzIyOTsmIzE4NTsmIzE3OTsmIzIzMzsmIzE1NzsmIzE2MjsxIj4KPGcgaWQ9IiYjMjI5OyYjMTU1OyYjMTkwOyYjMjMwOyYjMTYwOyYjMTM1OyI+CjxnIGlkPSImIzIzMDsmIzE1MDsmIzE4OTsmIzIyOTsmIzE4MzsmIzE2NTtfMiI+CjxnIGlkPSImIzIzMDsmIzE2NDsmIzE3MzsmIzIyOTsmIzE1NjsmIzEzNDsmIzIyOTsmIzE4OTsmIzE2MjsiPgo8cGF0aCBpZD0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terScale||.6})});const Ce=q0(nt,Q0(Y));if(n.value.value.getView().getZoom()<18)return[Se,Ce];{let dt=1;return Et.get("features").forEach(gt=>{gt.getProperties().otherInfo.state===0&&(dt=0)}),dt===1?[ce,Ce]:[ae,Ce]}}else return xt=Et.get("features")[0].getStyle(),xt}});const he=new Z0({distance:80,minDistance:200,source:Ze}),Ie=_e||pe.value;Ie.set("clusterSource",he),Ie.set("rawSource",Ze),Ie.set("clusterZoomThreshold",16),Ie.set("isClusterLayer",!0);const Ke=n.value.value.getView().getZoom();Ie.setSource(Ke>16?Ze:he);const Nt=n.value.value;Nt.get("clusterZoomListenerBound")||(Nt.set("clusterZoomListenerBound",!0),Nt.on("moveend",()=>{const Et=Nt.getView().getZoom();Nt.getLayers().forEach(nt=>{if(!nt.get("isClusterLayer"))return;const xt=nt.get("clusterZoomThreshold")||16,ce=nt.get("clusterSource"),ae=nt.get("rawSource");if(!ce||!ae)return;const Se=nt.getSource();Et>xt&&Se!==ae?nt.setSource(ae):Et<=xt&&Se!==ce&&nt.setSource(ce)})}))}else pe.value=new kt({layerName:ee,zIndex:999}),_e?_e.setSource(Ze):pe.value.setSource(Ze);_e||n.value.value.addLayer(pe.value)},w=(Y,ee,ie)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let pe=[];Y.forEach(_e=>{let Ze=_e.xyArr.map(Ie=>Ie),he=new Fs.Feature({geometry:new Bi(Ze)});he.set("popoup",_e.popoup),he.set("otherInfo",_e.otherInfo),he.setStyle(new Ge({stroke:new ft({color:_e.color,width:_e.width,lineDash:_e.lineDash?[10,10]:void 0})})),pe.push(he)});let ye=new Pt({features:pe});ie.value=new kt({layerName:ee,zIndex:999,source:ye}),n.value.value.addLayer(ie.value)},S=(Y,ee)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ie=T(ee);ie&&n.value.value.removeLayer(ie);let pe=[];Y.forEach(_e=>{if(_e.longitude!==void 0&&_e.latitude!==void 0){let Ze=new Fs.Feature({geometry:new Kr([_e.longitude,_e.latitude]),weight:_e.weight||1});Ze.set("popoup",!1),pe.push(Ze)}});let ye=new D8({layerName:ee,zIndex:900,source:new Pt({features:pe}),blur:16,radius:15,weight:_e=>_e.get("weight")||1,gradient:["#00f","#0ff","#0f0","#ff0","#f00"]});n.value.value.addLayer(ye)},A=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ee=n.value.value.getLayers().getArray(),ie=null;for(let pe=0;pe<ee.length;pe++){let ye=ee[pe];if(ye.get("layerName")===Y){ie=ye;break}}n.value.value.removeLayer(ie)},T=Y=>{if(!n||!n.value||!n.value.value)return console.error("Map reference is not valid"),null;let ee=n.value.value.getLayers().getArray(),ie=null;for(let pe=0;pe<ee.length;pe++){let ye=ee[pe];if(ye.get("layerName")===Y){ie=ye;break}}return ie},C=Y=>{if(!n||!n.value||!n.value.value)return console.error("Map reference is not valid"),!1;var ee=n.value.value.getLayers().getArray();return ee.some(function(ie){return ie===Y})},E=V.ref([]),M=Y=>(Y&&!E.value.includes(Y)&&E.value.push(Y),Y),D=()=>{E.value.forEach(Y=>{try{Y&&typeof Y.remove=="function"&&Y.remove(),Y&&Y.$container&&Y.$container.parentNode&&Y.$container.parentNode.removeChild(Y.$container)}catch(ee){console.error("清除 echarts 图层失败:",ee)}}),E.value=[]},L=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ee=Y,ie={};Y&&typeof Y=="object"&&Y.data&&Y.settings&&(ee=Y.data,ie=Y.settings);let pe=new tm(null,{hideOnZooming:!0});pe.appendTo(n.value.value);let ye=function(ce){let ae=[];for(let Se=0;Se<ce.length;Se++){let Ce=ce[Se].latlng;if(Ce){let dt=ce[Se].bar_data||[0];Array.isArray(dt)||(dt=[dt]);let gt=ce[Se].bar_names||["数据1"];Array.isArray(gt)||(gt=[gt]);let Yt=ce[Se].bar_units||["单位"];Array.isArray(Yt)||(Yt=[Yt]),ae.push({name:ce[Se].city,value:Ce,bar_count:ce[Se].bar_count||1,color:Array.isArray(ce[Se].color)?ce[Se].color:ce[Se].color?[ce[Se].color,"#ff7f00"]:["#efda18","#ff7f00"],bar_data:dt,bar_names:gt,bar_units:Yt})}}return ae};const _e=ye(ee).reduce((ce,ae)=>ce.concat(ae.bar_data),[]),Ze=Math.max(..._e,1),he=ce=>{let ae;if(typeof ce=="string"&&ce.startsWith("#")){const Se=ce.replace("#",""),Ce=parseInt(Se.substring(0,2),16),dt=parseInt(Se.substring(2,4),16),gt=parseInt(Se.substring(4,6),16);ae=`rgba(${Ce}, ${dt}, ${gt}, 1)`}else ae=ce;return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:ae.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 1)")},{offset:.6,color:ae.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0.4)")},{offset:1,color:ae.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0)")}]}},Ie=ye(ee).filter(ce=>ce.bar_count===1),Ke=ye(ee).filter(ce=>ce.bar_count>1),Nt=Ke.map(ce=>({...ce,value:[ce.value[0],ce.value[1],ce.bar_data[0]]})),Et=Ke.map(ce=>({...ce,value:[ce.value[0],ce.value[1],ce.bar_data[1]||0]})),nt=Ie.map(ce=>({...ce,value:[ce.value[0],ce.value[1],ce.bar_data[0]]}));let xt={tooltip:{show:!0,trigger:"item",formatter:function(ce){if(ce.seriesName==="车流量"){const ae=ce.data.bar_names[0]||"数据",Se=ce.data.bar_data[0]||0,Ce=ce.data.bar_units[0]||"";return`${ce.data.name}<br/>${ae}: ${Se}${Ce}`}else if(ce.seriesName==="车流量1"){const ae=ce.data.bar_names[0]||"数据1",Se=ce.data.bar_data[0]||0,Ce=ce.data.bar_units[0]||"";return`${ce.data.name}<br/>${ae}: ${Se}${Ce}`}else if(ce.seriesName==="车流量2"){const ae=ce.data.bar_names[1]||"数据2",Se=ce.data.bar_data[1]||0,Ce=ce.data.bar_units[1]||"";return`${ce.data.name}<br/>${ae}: ${Se}${Ce}`}return`${ce.data.name}<br/>数据: ${ce.data.bar_data[0]||0}${ce.data.bar_units[0]||""}`},backgroundColor:"rgba(0, 0, 0, 0.7)",textStyle:{color:"#fff",fontSize:ie.tooltipFontSize||12},padding:ie.tooltipPadding||8},series:[{name:"车流量",type:"scatter",coordinateSystem:"geo",data:nt,symbolSize:function(ce){const ae=ce[2]||0,Se=Math.max(10,ae/Ze*150);return[ie.barWidth||15,Se]},symbolOffset:[0,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(ce){return he(ce.data.color[0])}}},{name:"车流量1",type:"scatter",coordinateSystem:"geo",data:Nt,symbolSize:function(ce){const ae=ce[2]||0,Se=Math.max(10,ae/Ze*150);return[ie.barWidth||15,Se]},symbolOffset:[-8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(ce){return he(ce.data.color[0])}}},{name:"车流量2",type:"scatter",coordinateSystem:"geo",data:Et,symbolSize:function(ce){const ae=ce[2]||0,Se=Math.max(10,ae/Ze*150);return[ie.barWidth||15,Se]},symbolOffset:[8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(ce){return he(ce.data.color[1])}}}]};return pe&&(pe.setChartOptions(xt),setTimeout(()=>{pe.$chart&&pe.$chart.on("click",function(ce){if(e&&typeof e=="function"){let ae=ce.data,Se=ae.value[0],Ce=ae.value[1],dt=null;if(Se&&Ce){let gt=[Se,Ce];n&&n.value&&n.value.value&&(dt=n.value.value.getPixelFromCoordinate(gt))}e("barClick",ae,dt)}})},0)),M(pe)},P=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ee=Y,ie={};Y&&typeof Y=="object"&&Y.data&&Y.settings&&(ee=Y.data,ie=Y.settings);let pe=new tm(null,{hideOnZooming:!0});pe.appendTo(n.value.value);let ye=function(ae){let Se=[];for(let Ce=0;Ce<ae.length;Ce++){let dt=ae[Ce].latlng;if(dt){let gt=ae[Ce].bar_data||[0];Array.isArray(gt)||(gt=[gt]);let Yt=ae[Ce].bar_names||["数据1"];Array.isArray(Yt)||(Yt=[Yt]);let Ht=ae[Ce].bar_units||["单位"];Array.isArray(Ht)||(Ht=[Ht]),Se.push({name:ae[Ce].city,value:dt,bar_count:ae[Ce].bar_count||1,color:Array.isArray(ae[Ce].color)?ae[Ce].color:ae[Ce].color?[ae[Ce].color,"#ff7f00"]:["#0097fb","#30eca6"],bar_data:gt,bar_names:Yt,bar_units:Ht})}}return Se};const _e=ye(ee).reduce((ae,Se)=>ae.concat(Se.bar_data),[]),Ze=Math.max(..._e,1),he=ae=>{const Se=ae||0;let Ce=[];return Se<300?Ce=[{offset:0,color:"rgba(44, 104, 226, 1)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}]:Se<1e3?Ce=[{offset:0,color:"rgba(23, 221, 174, 1)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}]:Se<2e3?Ce=[{offset:0,color:"rgba(255, 213, 114, 1)"},{offset:.5,color:"rgba(23, 221, 174, 0.8)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}]:Ce=[{offset:0,color:"rgba(245, 54, 96, 1)"},{offset:.33,color:"rgba(255, 213, 114, 0.9)"},{offset:.66,color:"rgba(23, 221, 174, 0.8)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}],{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:Ce,globalCoord:!1}},Ie=ye(ee).filter(ae=>ae.bar_count===1),Ke=ye(ee).filter(ae=>ae.bar_count>1),Nt=Ie.map(ae=>({...ae,value:[ae.value[0],ae.value[1],ae.bar_data[0]]})),Et=Ke.map(ae=>({...ae,value:[ae.value[0],ae.value[1],ae.bar_data[0]]})),nt=Ke.map(ae=>({...ae,value:[ae.value[0],ae.value[1],ae.bar_data[1]||0]})),xt="path://M12.000,-0.000 C12.000,-0.000 16.074,60.121 22.731,60.121 C26.173,60.121 -3.234,60.121 0.511,60.121 C7.072,60.121 12.000,-0.000 12.000,-0.000 Z";ie.barWidth&&`${ie.barWidth}`;let ce={tooltip:{show:!0,trigger:"item",formatter:function(ae){if(ae.seriesName==="singleBar"){const Se=ae.data.bar_names[0]||"数据",Ce=ae.data.bar_data[0]||0,dt=ae.data.bar_units[0]||"";return`${ae.data.name}<br/>${Se}: ${Ce}${dt}`}else if(ae.seriesName==="doubleBar1"){const Se=ae.data.bar_names[0]||"数据1",Ce=ae.data.bar_data[0]||0,dt=ae.data.bar_units[0]||"";return`${ae.data.name}<br/>${Se}: ${Ce}${dt}`}else if(ae.seriesName==="doubleBar2"){const Se=ae.data.bar_names[1]||"数据2",Ce=ae.data.bar_data[1]||0,dt=ae.data.bar_units[1]||"";return`${ae.data.name}<br/>${Se}: ${Ce}${dt}`}return`${ae.data.name}`},backgroundColor:"rgba(0, 49, 85, 1)",borderColor:"rgba(0, 151, 251, 1)",borderWidth:1,borderRadius:0,textStyle:{color:"#BCE9FC",fontSize:ie.tooltipFontSize||12},padding:ie.tooltipPadding||8},series:[{name:"singleBar",type:"scatter",coordinateSystem:"geo",data:Nt,symbolSize:function(ae){const Se=ae[2]||0,Ce=Math.max(10,Se/Ze*150);return[ie.barWidth||15,Ce]},symbolOffset:[0,"-50%"],symbol:xt,label:{show:!1},itemStyle:{color:function(ae){return he(ae.data.bar_data[0])}}},{name:"doubleBar1",type:"scatter",coordinateSystem:"geo",data:Et,symbolSize:function(ae){const Se=ae[2]||0,Ce=Math.max(10,Se/Ze*150);return[ie.barWidth||15,Ce]},symbolOffset:[-8,"-50%"],symbol:xt,label:{show:!1},itemStyle:{color:function(ae){return he(ae.data.bar_data[0])}}},{name:"doubleBar2",type:"scatter",coordinateSystem:"geo",data:nt,symbolSize:function(ae){const Se=ae[2]||0,Ce=Math.max(10,Se/Ze*150);return[ie.barWidth||15,Ce]},symbolOffset:[8,"-50%"],symbol:xt,label:{show:!1},itemStyle:{color:function(ae){return he(ae.data.bar_data[1])}}}]};return pe&&(pe.setChartOptions(ce),setTimeout(()=>{pe.$chart&&pe.$chart.on("click",function(ae){if(e&&typeof e=="function"){let Se=ae.data,Ce=Se.value[0],dt=Se.value[1],gt=null;if(Ce&&dt){let Yt=[Ce,dt];n&&n.value&&n.value.value&&(gt=n.value.value.getPixelFromCoordinate(Yt))}e("barClick",Se,gt)}})},0)),M(pe)},k=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}if(!Y){console.error("ECharts layer is not valid");return}const ee=E.value.indexOf(Y);ee>-1&&E.value.splice(ee,1);try{Y.remove&&typeof Y.remove=="function"&&(Y.remove(),Y=null)}catch(ie){console.error("Error removing ECharts layer:",ie)}},R=Y=>{const ee=3.141592653589793,ie=6378245,pe=.006693421622965943,ye=(he,Ie)=>!(he>73.66&&he<135.05&&Ie>3.86&&Ie<53.55),_e=(he,Ie)=>{let Ke=-100+2*he+3*Ie+.2*Ie*Ie+.1*he*Ie+.2*Math.sqrt(Math.abs(he));return Ke+=(20*Math.sin(6*he*ee)+20*Math.sin(2*he*ee))*2/3,Ke+=(20*Math.sin(Ie*ee)+40*Math.sin(Ie/3*ee))*2/3,Ke+=(160*Math.sin(Ie/12*ee)+320*Math.sin(Ie*ee/30))*2/3,Ke},Ze=(he,Ie)=>{let Ke=300+he+2*Ie+.1*he*he+.1*he*Ie+.1*Math.sqrt(Math.abs(he));return Ke+=(20*Math.sin(6*he*ee)+20*Math.sin(2*he*ee))*2/3,Ke+=(20*Math.sin(he*ee)+40*Math.sin(he/3*ee))*2/3,Ke+=(150*Math.sin(he/12*ee)+300*Math.sin(he/30*ee))*2/3,Ke};if(!Array.isArray(Y)||Y.length===0)throw new Error("Invalid coordinates: must be a non-empty array");if(typeof Y[0]=="number"&&typeof Y[1]=="number"){const[he,Ie]=Y;if(ye(he,Ie))return[he,Ie];let Ke=_e(he-105,Ie-35),Nt=Ze(he-105,Ie-35);const Et=Ie/180*ee;let nt=Math.sin(Et);nt=1-pe*nt*nt;const xt=Math.sqrt(nt);Ke=Ke*180/(ie*(1-pe)/(nt*xt)*ee),Nt=Nt*180/(ie/xt*Math.cos(Et)*ee);const ce=Ie+Ke,ae=he+Nt;return[he*2-ae,Ie*2-ce]}else{if(Array.isArray(Y[0]))return Y.map(he=>R(he));throw new Error("Invalid coordinates format: expected [lng, lat] or [[lng, lat], [lng, lat], ...]")}},F=5,z=19,W=()=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}const Y=n.value.value.getView(),ee=Y.getZoom();if(ee==null)return;const ie=Math.min(ee+1,z);Y.animate({zoom:ie,duration:300})},O=()=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}const Y=n.value.value.getView(),ee=Y.getZoom();if(ee==null)return;const ie=Math.max(ee-1,F);Y.animate({zoom:ie,duration:300})};let N=V.ref(null),X=null,j=null,Q=null,de=null,Ae=null,le=null,se=V.ref(null),we=[],te=null,oe=null,B=null;const G=V.ref([]);let U=null,$=null,ue=V.ref(null),Te=null;const Xe="__measure_layer__",vt="点击继续绘制多边形",Rt="点击继续绘制线条",nr="点击开始绘制",Pr=function(Y){const ie=n.value.value.getView().getProjection(),pe=Mm(Y,{projection:ie});let ye;return pe>100?ye=Math.round(pe/1e3*100)/100+" km":ye=Math.round(pe*100)/100+" m",ye},yn=function(Y){const ie=n.value.value.getView().getProjection(),pe=Dm(Y,{projection:ie});let ye;return pe>1e4?ye=Math.round(pe/1e6*100)/100+" km<sup>2</sup>":ye=Math.round(pe*100)/100+" m<sup>2</sup>",ye},ki=()=>{const Y=n.value.value;de&&de.parentNode.removeChild(de),de=document.createElement("div"),de.className="ol-tooltip hidden",Ae=new Dh({element:de,offset:[15,0],positioning:"center-left"}),Y.addOverlay(Ae)},ai=()=>{const Y=n.value.value;le&&le.parentNode.removeChild(le),le=document.createElement("div"),le.className="ol-tooltip ol-tooltip-measure",se.value=new Dh({element:le,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),Y.addOverlay(se.value),we.push(se.value)},na=function(Y){if(Y.dragging)return;let ee=nr;if(X){const ie=X.getGeometry();ie instanceof Kn?ee=vt:ie instanceof Bi&&(ee=Rt)}de&&(de.innerHTML=ee,Ae.setPosition(Y.coordinate),de.classList.remove("hidden"))},Zr=function(){de&&de.classList.add("hidden")},mn=Y=>{const ee=n.value.value;j||(j=new Pt),Q||(Q=new kt({layerName:Xe,source:j,zIndex:9999,style:new Ge({fill:new st({color:"rgba(255, 255, 255, 0.2)"}),stroke:new ft({color:"#ffcc33",width:2}),image:new pa({radius:7,fill:new st({color:"#ffcc33"})})})}),ee.addLayer(Q)),N.value=new Ep({source:j,type:Y,style:new Ge({fill:new st({color:"rgba(255, 255, 255, 0.2)"}),stroke:new ft({color:"rgba(0, 0, 0, 0.5)",lineDash:[10,10],width:2}),image:new pa({radius:5,stroke:new ft({color:"rgba(0, 0, 0, 0.7)"}),fill:new st({color:"rgba(255, 255, 255, 0.2)"})})})}),ee.addInteraction(N.value),ai(),ki(),N.value.on("drawstart",function(ie){X=ie.feature;let pe=ie.coordinate;te=X.getGeometry().on("change",function(ye){const _e=ye.target;let Ze;_e instanceof Kn?(Ze=yn(_e),pe=_e.getInteriorPoint().getCoordinates()):_e instanceof Bi&&(Ze=Pr(_e),pe=_e.getLastCoordinate()),le&&(le.innerHTML=Ze,se.value.setPosition(pe))})}),N.value.on("drawend",function(){le&&(le.className="ol-tooltip ol-tooltip-static",se.value.setOffset([0,-7])),X=null,le=null,ai(),te&&(Du(te),te=null)})},_n=()=>{if(document.getElementById("measure-tooltip-styles"))return;const Y=document.createElement("style");Y.id="measure-tooltip-styles",Y.textContent=`
128
+ `);this.setTileUrlFunction(H0(e.map(this.createFromWMTSTemplate.bind(this))),r)},t.prototype.getDimensions=function(){return this.dimensions_},t.prototype.getFormat=function(){return this.format_},t.prototype.getLayer=function(){return this.layer_},t.prototype.getMatrixSet=function(){return this.matrixSet_},t.prototype.getRequestEncoding=function(){return this.requestEncoding_},t.prototype.getStyle=function(){return this.style_},t.prototype.getVersion=function(){return this.version_},t.prototype.getKeyForDimensions_=function(){var e=0,r=[];for(var i in this.dimensions_)r[e++]=i+"-"+this.dimensions_[i];return r.join("/")},t.prototype.updateDimensions=function(e){Bt(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())},t.prototype.createFromWMTSTemplate=function(e){var r=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};r==Bp.KVP&&Bt(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=r==Bp.KVP?Fp(e,i):e.replace(/\{(\w+?)\}/g,function(s,l){return l.toLowerCase()in i?i[l.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,l,u){if(s){var c={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};Bt(c,o);var h=e;return r==Bp.KVP?h=Fp(h,c):h=h.replace(/\{(\w+?)\}/g,function(f,d){return c[d]}),h}else return}},t}(j0),Ju=class extends st{constructor(t){super(),t=t||{};var e,r=this.canvas_=document.createElement("canvas"),i=Number(t.scale)>0?Number(t.scale):1,a=i*Au||Au,o=r.getContext("2d");if(t.image){t.image.load();var s,l=t.image.getImage();if(l.width)r.width=Math.round(l.width*a),r.height=Math.round(l.height*a),o.globalAlpha=typeof t.opacity=="number"?t.opacity:1,o.drawImage(l,0,0,l.width,l.height,0,0,r.width,r.height),e=o.createPattern(r,"repeat");else{var u=this;e=[0,0,0,0],l.onload=function(){r.width=Math.round(l.width*a),r.height=Math.round(l.height*a),o.globalAlpha=typeof t.opacity=="number"?t.opacity:1,o.drawImage(l,0,0,l.width,l.height,0,0,r.width,r.height),e=o.createPattern(r,"repeat"),u.setColor(e)}}}else{var c=this.getPattern_(t);if(r.width=Math.round(c.width*a),r.height=Math.round(c.height*a),o.beginPath(),t.fill&&(o.fillStyle=No(t.fill.getColor()),o.fillRect(0,0,r.width,r.height)),o.scale(a,a),o.lineCap="round",o.lineWidth=c.stroke||1,o.fillStyle=No(t.color||"#000"),o.strokeStyle=No(t.color||"#000"),c.circles)for(s=0;s<c.circles.length;s++){var h=c.circles[s];o.beginPath(),o.arc(h[0],h[1],h[2],0,2*Math.PI),c.fill&&o.fill(),c.stroke&&o.stroke()}if(c.repeat||(c.repeat=[[0,0]]),c.char&&(o.font=c.font||c.width+"px Arial",o.textAlign="center",o.textBaseline="middle",c.angle?(o.fillText(c.char,c.width/4,c.height/4),o.fillText(c.char,5*c.width/4,5*c.height/4),o.fillText(c.char,c.width/4,5*c.height/4),o.fillText(c.char,5*c.width/4,c.height/4),o.fillText(c.char,3*c.width/4,3*c.height/4),o.fillText(c.char,-c.width/4,-c.height/4),o.fillText(c.char,3*c.width/4,-c.height/4),o.fillText(c.char,-c.width/4,3*c.height/4)):o.fillText(c.char,c.width/2,c.height/2)),c.lines)for(s=0;s<c.lines.length;s++)for(var f=0;f<c.repeat.length;f++){var d=c.lines[s];o.beginPath(),o.moveTo(d[0]+c.repeat[f][0],d[1]+c.repeat[f][1]);for(var p=2;p<d.length;p+=2)o.lineTo(d[p]+c.repeat[f][0],d[p+1]+c.repeat[f][1]);c.fill&&o.fill(),c.stroke&&o.stroke(),o.save(),o.strokeStyle="red",o.strokeWidth=.1,o.restore()}if(e=o.createPattern(r,"repeat"),t.offset){var v=t.offset;if(typeof v=="number"&&(v=[v,v]),v instanceof Array){var g=Math.round(v[0]*a),y=Math.round(v[1]*a);o.scale(1/a,1/a),o.clearRect(0,0,r.width,r.height),o.translate(g,y),o.fillStyle=e,o.fillRect(-g,-y,r.width,r.height),e=o.createPattern(r,"repeat")}}}this.setColor(e)}static addPattern(t,e){e||(e={}),Ju.patterns[t||e.char]={width:e.width||e.size||10,height:e.height||e.size||10,font:e.font,char:e.char,circles:e.circles,lines:e.lines,repeat:e.repeat,stroke:e.stroke,angle:e.angle,fill:e.fill}}clone(){var t=super.clone();return t.canvas_=this.canvas_,t}getImage(){return this.canvas_}getPattern_(t){var e=Ju.patterns[t.pattern]||Ju.patterns.dot,r=Math.round(t.spacing)||10,i;switch(t.pattern){case"dot":case"circle":{i=t.size===0?0:t.size/2||2,t.angle?(r=e.width=e.height=Math.round(r*1.4),e.circles=[[r/4,r/4,i],[3*r/4,3*r/4,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/4+r,r/4,i],[r/4,r/4+r,i],[3*r/4-r,3*r/4,i],[3*r/4,3*r/4-r,i],[r/4+r,r/4+r,i],[3*r/4-r,3*r/4-r,i]]))):(e.width=e.height=r,e.circles=[[r/2,r/2,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/2+r,r/2,i],[r/2-r,r/2,i],[r/2,r/2+r,i],[r/2,r/2-r,i],[r/2+r,r/2+r,i],[r/2+r,r/2-r,i],[r/2-r,r/2+r,i],[r/2-r,r/2-r,i]])));break}case"tile":case"square":{i=t.size===0?0:t.size/2||2,t.angle?(e.width=e.height=r,e.lines=[[r/2-i,r/2,r/2,r/2-i,r/2+i,r/2,r/2,r/2+i,r/2-i,r/2]]):(e.width=e.height=r,e.lines=[[r/2-i,r/2-i,r/2+i,r/2-i,r/2+i,r/2+i,r/2-i,r/2+i,r/2-i,r/2-i]]),t.pattern=="square"&&(e.repeat=[[0,0],[0,r],[r,0],[0,-r],[-r,0],[-r,-r],[r,r],[-r,r],[r,-r]]);break}case"cross":t.angle&&(t.angle=45);case"hatch":{var a=Math.round(((t.angle||0)-90)%360);a>180&&(a-=360),a*=Math.PI/180;var o=Math.cos(a),s=Math.sin(a);if(Math.abs(s)<1e-4)e.width=e.height=r,e.lines=[[0,.5,r,.5]],e.repeat=[[0,0],[0,r]];else if(Math.abs(o)<1e-4)e.width=e.height=r,e.lines=[[.5,0,.5,r]],e.repeat=[[0,0],[r,0]],t.pattern=="cross"&&(e.lines.push([0,.5,r,.5]),e.repeat.push([0,r]));else{var l=e.width=Math.round(Math.abs(r/s))||1,u=e.height=Math.round(Math.abs(r/o))||1;t.pattern=="cross"?(e.lines=[[-l,-u,2*l,2*u],[2*l,-u,-l,2*u]],e.repeat=[[0,0]]):o*s>0?(e.lines=[[-l,-u,2*l,2*u]],e.repeat=[[0,0],[l,0],[0,u]]):(e.lines=[[2*l,-u,-l,2*u]],e.repeat=[[0,0],[-l,0],[0,u]])}e.stroke=t.size===0?0:t.size||4;break}}return e}};Ju.patterns={hatch:{width:5,height:5,lines:[[0,2.5,5,2.5]],stroke:1},cross:{width:7,height:7,lines:[[0,3,10,3],[3,0,3,10]],stroke:1},dot:{width:8,height:8,circles:[[5,5,2]],stroke:!1,fill:!0},circle:{width:10,height:10,circles:[[5,5,2]],stroke:1,fill:!1},square:{width:10,height:10,lines:[[3,3,3,8,8,8,8,3,3,3]],stroke:1,fill:!1},tile:{width:10,height:10,lines:[[3,3,3,8,8,8,8,3,3,3]],fill:!0},woven:{width:12,height:12,lines:[[3,3,9,9],[0,12,3,9],[9,3,12,0],[-1,1,1,-1],[13,11,11,13]],stroke:1},crosses:{width:8,height:8,lines:[[2,2,6,6],[2,6,6,2]],stroke:1},caps:{width:8,height:8,lines:[[2,6,4,2,6,6]],stroke:1},nylon:{width:20,height:20,lines:[[1,6,1,1,6,1],[6,11,11,11,11,6],[11,16,11,21,16,21],[16,11,21,11,21,16]],repeat:[[0,0],[-20,0],[0,-20]],stroke:1},hexagon:{width:20,height:12,lines:[[0,10,4,4,10,4,14,10,10,16,4,16,0,10]],stroke:1,repeat:[[0,0],[10,6],[10,-6],[-10,-6]]},cemetry:{width:15,height:19,lines:[[0,3.5,7,3.5],[3.5,0,3.5,10]],stroke:1,repeat:[[0,0],[7,9]]},sand:{width:20,height:20,circles:[[1,2,1],[9,3,1],[2,16,1],[7,8,1],[6,14,1],[4,19,1],[14,2,1],[12,10,1],[14,18,1],[18,8,1],[18,14,1]],fill:1},conglomerate:{width:60,height:40,circles:[[2,4,1],[17,3,1],[26,18,1],[12,17,1],[5,17,2],[28,11,2]],lines:[[7,5,6,7,9,9,11,8,11,6,9,5,7,5],[16,10,15,13,16,14,19,15,21,13,22,9,20,8,19,8,16,10],[24,6,26,7,27,5,26,4,24,4,24,6]],repeat:[[30,0],[-15,20],[15,20],[45,20]],stroke:1},conglomerate2:{width:60,height:40,circles:[[2,4,1],[17,3,1],[26,18,1],[12,17,1],[5,17,2],[28,11,2]],lines:[[7,5,6,7,9,9,11,8,11,6,9,5,7,5],[16,10,15,13,16,14,19,15,21,13,22,9,20,8,19,8,16,10],[24,6,26,7,27,5,26,4,24,4,24,6]],repeat:[[30,0],[-15,20],[15,20],[45,20]],fill:1},gravel:{width:15,height:10,circles:[[4,2,1],[5,9,1],[1,7,1]],lines:[[7,5,6,6,7,7,8,7,9,7,10,5,9,4,7,5],[11,2,14,4,14,1,12,1,11,2]],stroke:1},brick:{width:18,height:16,lines:[[0,1,18,1],[0,10,18,10],[6,1,6,10],[12,10,12,18],[12,0,12,1]],stroke:1},dolomite:{width:20,height:16,lines:[[0,1,20,1],[0,9,20,9],[1,9,6,1],[11,9,14,16],[14,0,14.4,1]],stroke:1},coal:{width:20,height:16,lines:[[1,5,7,1,7,7],[11,10,12,5,18,9],[5,10,2,15,9,15],[15,16,15,13,20,16],[15,0,15,2,20,0]],fill:1},breccia:{width:20,height:16,lines:[[1,5,7,1,7,7,1,5],[11,10,12,5,18,9,11,10],[5,10,2,15,9,15,5,10],[15,16,15,13,22,18],[15,0,15,2,20,0]],stroke:1},clay:{width:20,height:20,lines:[[0,0,3,11,0,20],[11,0,10,3,13,13,11,20],[0,0,10,3,20,0],[0,12,3,11,13,13,20,12]],stroke:1},flooded:{width:15,height:10,lines:[[0,1,10,1],[0,6,5,6],[10,6,15,6]],stroke:1},chaos:{width:40,height:40,lines:[[40,2,40,0,38,0,40,2],[4,0,3,2,2,5,0,0,0,3,2,7,5,6,7,7,8,10,9,12,9,13,9,14,8,14,6,15,2,15,0,20,0,22,2,20,5,19,8,15,10,14,11,12.25,10,12,10,10,12,9,13,7,12,6,13,4,16,7,17,4,20,0,18,0,15,3,14,2,14,0,12,1,11,0,10,1,11,4,10,7,9,8,8,5,6,4,5,3,5,1,5,0,4,0],[7,1,7,3,8,3,8,2,7,1],[4,3,5,5,4,5,4,3],[34,5,33,7,38,10,38,8,36,5,34,5],[27,0,23,2,21,8,30,0,27,0],[25,8,26,12,26,16,22.71875,15.375,20,13,18,15,17,18,13,22,17,21,19,22,21,20,19,18,22,17,30,25,26,26,24,28,21.75,33.34375,20,36,18,40,20,40,24,37,25,32,27,31,26,38,27,37,30,32,32,35,36,37,38,40,38,39,40,40,37,36,34,32,37,31,36,29,33,27,34,24,39,21,40,21,40,16,37,20,31,22,32,25,27,20,29,15,30,20,32,20,34,18,33,12,31,11,29,14,26,9,25,8],[39,24,37,26,40,28,39,24],[13,15,9,19,14,18,13,15],[18,23,14,27,16,27,17,25,20,26,18,23],[6,24,2,26,1,28,2,30,5,28,12,30,16,32,18,30,15,30,12,28,9,25,7,27,6,24],[29,27,32,28,33,31,30,29,27,28,29,27],[5,35,1,33,3,36,13,38,15,35,10,36,5,35]],fill:1},grass:{width:27,height:22,lines:[[0,10.5,13,10.5],[2.5,10,1.5,7],[4.5,10,4.5,5,3.5,4],[7,10,7.5,6,8.5,3],[10,10,11,6]],repeat:[[0,0],[14,10]],stroke:1},swamp:{width:24,height:23,lines:[[0,10.5,9.5,10.5],[2.5,10,2.5,7],[4.5,10,4.5,4],[6.5,10,6.5,6],[3,12.5,7,12.5]],repeat:[[0,0],[14,10]],stroke:1},reed:{width:26,height:23,lines:[[2.5,10,2,7],[4.5,10,4.2,4],[6.5,10,6.8,4],[8.5,10,9,6],[3.7,4,3.7,2.5],[4.7,4,4.7,2.5],[6.3,4,6.3,2.5],[7.3,4,7.3,2.5]],circles:[[4.2,2.5,.5],[18.2,12.5,.5],[6.8,2.5,.5],[20.8,12.5,.5],[9,6,.5],[23,16,.5]],repeat:[[0,0],[14,10]],stroke:1},wave:{width:10,height:8,lines:[[0,0,5,4,10,0]],stroke:1},vine:{width:13,height:13,lines:[[3,0,3,6],[9,7,9,13]],stroke:1},forest:{width:55,height:30,circles:[[7,7,3.5],[20,20,1.5],[42,22,3.5],[35,5,1.5]],stroke:1},forest2:{width:55,height:30,circles:[[7,7,3.5],[20,20,1.5],[42,22,3.5],[35,5,1.5]],fill:1,stroke:1},scrub:{width:26,height:20,lines:[[1,4,4,8,6,4]],circles:[[20,13,1.5]],stroke:1},tree:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78]],repeat:[[3,1],[18,16]],stroke:1},tree2:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78,4.95,10.61,7.78,10.61]],repeat:[[3,1],[18,16]],fill:1,stroke:1},pine:{width:30,height:30,lines:[[5.66,11.31,2.83,11.31,2.83,8.49,0,8.49,2.83,0,5.66,8.49,2.83,8.49]],repeat:[[3,1],[18,16]],stroke:1},pine2:{width:30,height:30,lines:[[5.66,11.31,2.83,11.31,2.83,8.49,0,8.49,2.83,0,5.66,8.49,2.83,8.49,2.83,11.31,5.66,11.31]],repeat:[[3,1],[18,16]],fill:1,stroke:1},mixtree:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78,4.95,10.61,7.78,10.61],[23.66,27.31,20.83,27.31,20.83,24.49,18,24.49,20.83,16,23.66,24.49,20.83,24.49,20.83,27.31,23.66,27.31]],repeat:[[3,1]],stroke:1},mixtree2:{width:30,height:30,lines:[[7.78,10.61,4.95,10.61,4.95,7.78,3.54,7.78,2.12,6.36,.71,6.36,0,4.24,.71,2.12,4.24,0,7.78,.71,9.19,3.54,7.78,4.95,7.07,7.07,4.95,7.78,4.95,10.61,7.78,10.61],[23.66,27.31,20.83,27.31,20.83,24.49,18,24.49,20.83,16,23.66,24.49,20.83,24.49,20.83,27.31,23.66,27.31]],repeat:[[3,1]],fill:1,stroke:1},pines:{width:22,height:20,lines:[[1,4,3.5,1,6,4],[1,8,3.5,5,6,8],[3.5,1,3.5,11],[12,14.5,14.5,14,17,14.5],[12,18,17,18],[14.5,12,14.5,18]],repeat:[[2,1]],stroke:1},rock:{width:20,height:20,lines:[[1,0,1,9],[4,0,4,9],[7,0,7,9],[10,1,19,1],[10,4,19,4],[10,7,19,7],[0,11,9,11],[0,14,9,14],[0,17,9,17],[12,10,12,19],[15,10,15,19],[18,10,18,19]],repeat:[[.5,.5]],stroke:1},rocks:{width:20,height:20,lines:[[5,0,3,0,5,4,4,6,0,3,0,5,3,6,5,9,3.75,10,2.5,10,0,9,0,10,4,11,5,14,4,15,0,13,0,13,0,13,0,14,0,14,5,16,5,18,3,19,0,19,-.25,19.9375,5,20,10,19,10,20,11,20,12,19,14,20,15,20,17,19,20,20,20,19,19,16,20,15,20,11,20,10,19,8,20,5,20,0,19,0,20,2,19,4,17,4,16,3,15,0,14,0,15,4,11,5,10,4,11,0,10,0,9,4,6,5,5,0],[18,5,19,6,18,10,16,10,14,9,16,5,18,5],[5,6,9,5,10,6,10,9,6,10,5,6],[14,5,14,8,13,9,12,9,11,7,12,5,14,5],[5,11,8,10,9,11,10,14,6,15,6,15,5,11],[13,10,14,11,15,14,15,14,15,14,11,15,10,11,11,10,13,10],[15,12,16,11,19,11,19,15,16,14,16,14,15,12],[6,16,9,15,10,18,5,19,6,16],[10,16,14,16,14,18,13,19,11,18,10,16],[15,15,18,16,18,18,16,19,15,18,15,15]],stroke:1}};var r9=class extends ft{constructor(t){super(t),t=t||{};var e,r,i=this.canvas_=document.createElement("canvas"),a=Number(t.scale)>0?Number(t.scale):1,o=a*Au||Au,s=i.getContext("2d");if(t.image){t.image.load();var l=t.image.getImage();if(l.width)i.width=Math.round(l.width*o),i.height=Math.round(l.height*o),s.globalAlpha=typeof t.opacity=="number"?t.opacity:1,s.drawImage(l,0,0,l.width,l.height,0,0,i.width,i.height),e=s.createPattern(i,"repeat");else{var u=this;e=[0,0,0,0],l.onload=function(){i.width=Math.round(l.width*o),i.height=Math.round(l.height*o),s.globalAlpha=typeof t.opacity=="number"?t.opacity:1,s.drawImage(l,0,0,l.width,l.height,0,0,i.width,i.height),e=s.createPattern(i,"repeat"),u.setColor(e)}}}else{var c=this.getPattern_(t);if(i.width=Math.round(c.width*o),i.height=Math.round(c.height*o),s.beginPath(),t.fill&&(s.fillStyle=No(t.fill.getColor()),s.fillRect(0,0,i.width,i.height)),s.scale(o,o),s.lineCap="round",s.lineWidth=c.stroke||1,s.fillStyle=No(t.color||"#000"),s.strokeStyle=No(t.color||"#000"),c.circles)for(r=0;r<c.circles.length;r++){var h=c.circles[r];s.beginPath(),s.arc(h[0],h[1],h[2],0,2*Math.PI),c.fill&&s.fill(),c.stroke&&s.stroke()}if(c.repeat||(c.repeat=[[0,0]]),c.char&&(s.font=c.font||c.width+"px Arial",s.textAlign="center",s.textBaseline="middle",c.angle?(s.fillText(c.char,c.width/4,c.height/4),s.fillText(c.char,5*c.width/4,5*c.height/4),s.fillText(c.char,c.width/4,5*c.height/4),s.fillText(c.char,5*c.width/4,c.height/4),s.fillText(c.char,3*c.width/4,3*c.height/4),s.fillText(c.char,-c.width/4,-c.height/4),s.fillText(c.char,3*c.width/4,-c.height/4),s.fillText(c.char,-c.width/4,3*c.height/4)):s.fillText(c.char,c.width/2,c.height/2)),c.lines)for(r=0;r<c.lines.length;r++)for(var f=0;f<c.repeat.length;f++){var d=c.lines[r];s.beginPath(),s.moveTo(d[0]+c.repeat[f][0],d[1]+c.repeat[f][1]);for(var p=2;p<d.length;p+=2)s.lineTo(d[p]+c.repeat[f][0],d[p+1]+c.repeat[f][1]);c.fill&&s.fill(),c.stroke&&s.stroke(),s.save(),s.strokeStyle="red",s.strokeWidth=.1,s.restore()}if(e=s.createPattern(i,"repeat"),t.offset){var v=t.offset;if(typeof v=="number"&&(v=[v,v]),v instanceof Array){var g=Math.round(v[0]*o),y=Math.round(v[1]*o);s.scale(1/o,1/o),s.clearRect(0,0,i.width,i.height),s.translate(g,y),s.fillStyle=e,s.fillRect(-g,-y,i.width,i.height),e=s.createPattern(i,"repeat")}}}this.setColor(e)}clone(){var t=super.clone();return t.canvas_=this.canvas_,t}getImage(){return this.canvas_}getPattern_(t){var e=Ju.patterns[t.pattern]||Ju.patterns.dot,r=Math.round(t.spacing)||10,i;switch(t.pattern){case"dot":case"circle":{i=t.size===0?0:t.size/2||2,t.angle?(r=e.width=e.height=Math.round(r*1.4),e.circles=[[r/4,r/4,i],[3*r/4,3*r/4,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/4+r,r/4,i],[r/4,r/4+r,i],[3*r/4-r,3*r/4,i],[3*r/4,3*r/4-r,i],[r/4+r,r/4+r,i],[3*r/4-r,3*r/4-r,i]]))):(e.width=e.height=r,e.circles=[[r/2,r/2,i]],t.pattern=="circle"&&(e.circles=e.circles.concat([[r/2+r,r/2,i],[r/2-r,r/2,i],[r/2,r/2+r,i],[r/2,r/2-r,i],[r/2+r,r/2+r,i],[r/2+r,r/2-r,i],[r/2-r,r/2+r,i],[r/2-r,r/2-r,i]])));break}case"tile":case"square":{i=t.size===0?0:t.size/2||2,t.angle?(e.width=e.height=r,e.lines=[[r/2-i,r/2,r/2,r/2-i,r/2+i,r/2,r/2,r/2+i,r/2-i,r/2]]):(e.width=e.height=r,e.lines=[[r/2-i,r/2-i,r/2+i,r/2-i,r/2+i,r/2+i,r/2-i,r/2+i,r/2-i,r/2-i]]),t.pattern=="square"&&(e.repeat=[[0,0],[0,r],[r,0],[0,-r],[-r,0],[-r,-r],[r,r],[-r,r],[r,-r]]);break}case"cross":t.angle&&(t.angle=45);case"hatch":{var a=Math.round(((t.angle||0)-90)%360);a>180&&(a-=360),a*=Math.PI/180;var o=Math.cos(a),s=Math.sin(a);if(Math.abs(s)<1e-4)e.width=e.height=r,e.lines=[[0,.5,r,.5]],e.repeat=[[0,0],[0,r]];else if(Math.abs(o)<1e-4)e.width=e.height=r,e.lines=[[.5,0,.5,r]],e.repeat=[[0,0],[r,0]],t.pattern=="cross"&&(e.lines.push([0,.5,r,.5]),e.repeat.push([0,r]));else{var l=e.width=Math.round(Math.abs(r/s))||1,u=e.height=Math.round(Math.abs(r/o))||1;t.pattern=="cross"?(e.lines=[[-l,-u,2*l,2*u],[2*l,-u,-l,2*u]],e.repeat=[[0,0]]):o*s>0?(e.lines=[[-l,-u,2*l,2*u]],e.repeat=[[0,0],[l,0],[0,u]]):(e.lines=[[2*l,-u,-l,2*u]],e.repeat=[[0,0],[-l,0],[0,u]])}e.stroke=t.size===0?0:t.size||4;break}}return e}};const Vp=(n,t)=>{const e=n.__vccOpts||n;for(const[r,i]of t)e[r]=i;return e},n9=["onClick"],i9=["title"],a9={key:0},o9={key:1},s9=Vp({__name:"ClusterList",props:{popupAttr:Array,styleConfig:{type:Object,default:()=>({})}},emits:["clickPointEvent"],setup(n,{emit:t}){const e=n,r=t,i=V.ref([]),a=V.ref(null),o={popupWidth:"250px",popupHeight:"99px",fontSize:"14px",itemHeight:"22px",itemPadding:"5px 0 5px 15px"},s=V.computed(()=>({...o,...e.styleConfig})),l=V.computed(()=>({width:s.value.popupWidth,height:s.value.popupHeight,fontSize:s.value.fontSize})),u=V.computed(()=>({fontSize:s.value.fontSize})),c=V.computed(()=>({height:s.value.itemHeight,padding:s.value.itemPadding})),h=(f,d)=>{a.value=d,r("clickPointEvent",f)};return V.watch(()=>e.popupAttr,f=>{f&&Array.isArray(f)?(i.value=f.map(d=>d.getProperties()),a.value=0):(i.value=[],a.value=null)},{immediate:!0}),(f,d)=>(V.openBlock(),V.createElementBlock("div",{class:"clusterListPopup",style:V.normalizeStyle(l.value)},[V.createElementVNode("ul",{class:"paginate-list",style:V.normalizeStyle(u.value)},[(V.openBlock(!0),V.createElementBlock(V.Fragment,null,V.renderList(i.value,(p,v)=>(V.openBlock(),V.createElementBlock("li",{class:V.normalizeClass(["list-item",{active:a.value===v}]),key:v,onClick:g=>h(p,v),style:V.normalizeStyle(c.value)},[V.createElementVNode("div",{class:"item-content",title:p.type==="qbb"?p.PILE:p.dev_no},[p.type==="qbb"?(V.openBlock(),V.createElementBlock("span",a9,"情报板桩号:"+V.toDisplayString(p.PILE),1)):(V.openBlock(),V.createElementBlock("span",o9,"摄像机编号:"+V.toDisplayString(p.dev_no),1))],8,i9)],14,n9))),128))],4)],4))}},[["__scopeId","data-v-dc994c1c"]]),l9=["src"],K0={__name:"customPointLayer",props:{popupAttr:Object},setup(n,{expose:t}){const e=n,r=V.ref(null),i=V.computed(()=>e.popupAttr?e.popupAttr.popupHeight+"px":"0px"),a=V.computed(()=>e.popupAttr?e.popupAttr.popupWidth+"px":"0px");return t({customComponentRef:r,destroyFlv:()=>{r.value&&typeof r.value.destroyFlv=="function"&&r.value.destroyFlv()},destroy:()=>{r.value&&typeof r.value.destroy=="function"&&r.value.destroy()}}),(o,s)=>n.popupAttr?(V.openBlock(),V.createElementBlock("div",{key:0,style:V.normalizeStyle({height:i.value,width:a.value})},[n.popupAttr.popupComponent?(V.openBlock(),V.createBlock(V.resolveDynamicComponent(n.popupAttr.popupComponent),V.mergeProps({key:0},n.popupAttr.popupComponentProps||{},{ref_key:"customComponentRef",ref:r}),null,16)):n.popupAttr.popupUrl?(V.openBlock(),V.createElementBlock("iframe",{key:1,style:{width:"100%",height:"100%",border:"none"},src:n.popupAttr.popupUrl},null,8,l9)):V.renderSlot(o.$slots,"default",{key:2})],4)):V.createCommentVNode("",!0)}};function J0(n,t,e,r,i,a,o){const l=o||"cb48e2a640a7b1c9b559da93318b633c",u=V.ref(null),c=V.ref(!1),h=V.ref(null),f=V.ref(null),d=V.ref(null),p=V.ref(null),v=V.ref("standard"),g=V.ref(null),y=V.ref(null),m=V.ref(null),_=V.ref(null),x=V.ref(null),b=V.ref(!0),w=V.ref(null),S=V.ref(null);V.ref(null);const A=V.ref(null),T=V.ref(null),C=V.ref(null),E=V.ref(null),M=V.ref(null),D=V.ref(null),L=V.ref(null),P=V.ref(null),k=V.ref(null),R=V.ref(null),F=V.ref(null),z=V.ref(null),W=V.ref(null),O=V.ref(null),N=V.ref({distance:500,color:"rgba(255, 0, 0, 0.3)"}),X="http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?",j="https://service.sdmap.gov.cn/tileservice/dsfg_qsb?",Q="https://service.sdmap.gov.cn/tileservice/sdrasterpubmap?",de="https://t0.tianditu.gov.cn/vec_c/wmts?",Ae="https://t0.tianditu.gov.cn/cva_c/wmts?",le="353e7369f7c02e2f8c3096523133395b",se="https://service.sdmap.gov.cn/tileservice/sdrasterpubmapdj?",we="http://10.166.157.209:8090/iserver/services/map-road20/rest/maps/roadData",te="http://jsgl.sdgsbim.com:8602/iserver/services/map-JiNanGaoSuLuWangv4/rest/maps/dashLine@济南高速路网v4",oe="http://124.128.27.156:18085/arcgis/services/BaseService/roadBZ01/MapServer/WMSServer",B={all:"0,1,2",shengdao:"0",guodao:"1",other:"2"},G="http://10.166.157.209:8090/iserver/services/map-ZH20/rest/maps/ZHData20",U="/china_full.json",$="#1b2639",ue="#eeeee9",Te="#edf1f3",Xe="#3578E0",vt="#b4b4b1",Rt="#d3d3d3",nr=V.computed(()=>["dark","light","yingxiang"].includes(t.value)?t.value:"dark"),Pr=()=>nr.value==="light"?{fillColor:ue,strokeColor:vt}:nr.value==="yingxiang"?{fillColor:Te,strokeColor:Rt}:{fillColor:$,strokeColor:Xe},yn=(Z,K,fe=11)=>n.value?(x.value&&(n.value.removeLayer(x.value),x.value=null),fetch(U).then(me=>me.json()).then(me=>{const He=new br;return x.value=new kt({layerName:"china_full_Layer",source:new Pt({format:He,features:He.readFeatures(me,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:fe,style:function(){return new Ge({fill:new st({color:Z}),stroke:new ft({color:K,width:1})})}}),n.value.addLayer(x.value),x.value}).catch(me=>(console.error("加载中国省界线数据失败:",me),null))):Promise.resolve(null),ki="#1b2639",ai=(Z,K,fe={})=>{const me=fe&&typeof fe=="object"&&!Array.isArray(fe)?fe:{},He=me.baseColor??null;if(!He)return new dr.Tianditu({crossOrigin:"anonymous",key:K,projection:"EPSG:4326",url:Z,layerType:me.layerType||"vec",isLabel:me.isLabel===!0});const Me=Z.includes("?")?Z.endsWith("?")||Z.endsWith("&")?"":"&":"?",Ye=/[?&]tk=/.test(Z)?Z:`${Z}${Me}tk=${K}`;return new mE({url:Ye,layer:me.layerType||"vec",matrixSet:me.matrixSet||"c",format:me.format||"tiles",style:me.style||"default",projection:"EPSG:4326",tileGrid:dr.Tianditu.getTileGrid("EPSG:4326"),crossOrigin:"anonymous",wrapX:!0,tileLoadFunction:Co(me.filter||null,He)})},na=(Z={})=>{const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{};K.showChinaBoundary!==void 0&&(b.value=K.showChinaBoundary!==!1);let fe,me,He;nr.value==="light"?(fe=j,me=ue,He=vt):nr.value==="yingxiang"?(fe=Q,me=Te,He=Rt):(fe=X,me=$,He=Xe),d.value=new zn({layerName:"baseMapLayer",source:ai(fe,l,{baseColor:nr.value==="dark"?ki:null}),zIndex:1}),n.value.addLayer(d.value),Wa(),b.value&&yn(me,He,11);let Me=r.value;g.value=new Dh({element:Me,positioning:"bottom-center",stopEvent:!0,autoPan:!1}),n.value.addOverlay(g.value),n.value.on("click",Pe=>{let ke=Pe.coordinate;y.value=ke;let qe=document.getElementById("popupHeaderTitle"),ct=n.value.forEachFeatureAtPixel(Pe.pixel,(ht,sr)=>{if(sr){const Jt=sr.get("layerName");return Jt==="xinjiangDQLayer"||Jt==="xinjiangSJLayer"||Jt==="china_full_Layer"||Jt==null?null:ht}});if(ct)if(ct.getProperties().features)if(ct.getProperties().features.length>1){const ht=ct.getProperties().features;if(n.value.getView().getZoom()>=18){m.value=350,_.value=430,w.value=s9,S.value=ht,qe&&(qe.innerHTML="",qe.innerHTML="点位列表"),i();let sr=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),Jt=m.value/153.6*sr,on=_.value/153.6*sr;g.value.setPosition(ke),g.value.setOffset([-on/2,-Jt-25]);let Mr=n.value.getPixelFromCoordinate(ke),Un=[Mr[0],Mr[1]-150],ua=n.value.getCoordinateFromPixel(Un);n.value.getView().animate({center:ua,duration:800})}else n.value.getView().animate({center:ct.getGeometry().getCoordinates(),zoom:n.value.getView().getZoom()*2,duration:1200})}else{let ht=ct.getProperties().features[0].getProperties();if(ht){if(ht.isDrawn)return;if(ht.popoup===!1){e("clickPointEvent",ht,ke);return}const ca=ht.type,kr=ht;if(i(),ca)switch(ca){case"customPoint":m.value=kr.popupHeight,_.value=kr.popupWidth,w.value=K0,S.value={...kr,popupComponent:kr.popupComponent,popupComponentProps:kr.popupComponentProps},qe&&(qe.innerHTML="",qe.innerHTML=kr.popupTitle);break}else a()}else a();let sr=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),Jt=m.value/153.6*sr,on=_.value/153.6*sr;g.value.setPosition(ke),g.value.setOffset([-on/2,-Jt]);let Mr=n.value.getPixelFromCoordinate(ke),Un=[Mr[0],Mr[1]-(ht.popupOffsetY||150)],ua=n.value.getCoordinateFromPixel(Un);n.value.getView().animate({center:ua,duration:800})}else{let ht=ct.getProperties();if(ht){if(ht.isDrawn)return;if(ht.popoup===!1){e("clickPointEvent",ht,ke);return}i();const ca=ht.type,kr=ht;if(ca)switch(ca){case"customPoint":m.value=kr.popupHeight,_.value=kr.popupWidth,w.value=K0,S.value={...kr,popupComponent:kr.popupComponent,popupComponentProps:kr.popupComponentProps},qe.innerHTML="",qe.innerHTML=kr.popupTitle;break}else a()}else a();let sr=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),Jt=m.value/192*sr,on=_.value/192*sr;g.value.setPosition(ke),g.value.setOffset([-on/2,-Jt]);let Mr=n.value.getPixelFromCoordinate(ke),Un=[Mr[0],Mr[1]-(ht.popupOffsetY||120)],ua=n.value.getCoordinateFromPixel(Un);n.value.getView().animate({center:ua,duration:800})}else a()});let Ye=null;n.value.on("pointermove",Pe=>{if(Ye)return;Ye=setTimeout(()=>{Ye=null},50);let ke=n.value.forEachFeatureAtPixel(Pe.pixel,qe=>qe);if(ke!==u.value){if(u.value&&e("pointerOutEvent",u.value.getProperties()),ke){let qe=null;if(ke.getProperties().longitude&&ke.getProperties().latitude){let ct=[ke.getProperties().longitude,ke.getProperties().latitude];qe=n.value.getPixelFromCoordinate(ct)}e("pointerMoveEvent",ke.getProperties(),qe)}u.value=ke}})},Zr=(Z,K,fe)=>{d.value&&n.value.removeLayer(d.value),x.value&&(n.value.removeLayer(x.value),x.value=null),d.value=new zn({layerName:"baseMapLayer",source:ai(Z,l,{baseColor:Z===X?ki:null}),zIndex:1}),n.value.addLayer(d.value),b.value&&yn(K,fe,3)},mn=Z=>{if(b.value=Z!==!1,!n.value)return b.value;if(!b.value)x.value&&(n.value.removeLayer(x.value),x.value=null);else if(!x.value){const{fillColor:K,strokeColor:fe}=Pr();yn(K,fe,11)}return b.value},_n={standard:{fill:"#ffffff",labelUrl:Ae,stroke:vt,url:de,key:le,layerType:"vec",isLabel:!0},light:{fill:ue,labelUrl:"",stroke:vt,url:j},dark:{fill:$,labelUrl:"",stroke:Xe,url:X,baseColor:ki},image:{fill:Te,labelUrl:se,stroke:Rt,url:Q}},ia=(Z=vt)=>{n.value&&(x.value&&(n.value.removeLayer(x.value),x.value=null),fetch(U).then(K=>K.json()).then(K=>{x.value=new kt({layerName:"china_full_Layer",source:new Pt({features:new br().readFeatures(K,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:function(){return new Ge({fill:new st({color:"rgba(0, 0, 0, 0)"}),stroke:new ft({color:Z,width:1})})},zIndex:11}),n.value.addLayer(x.value)}).catch(K=>{console.error("加载行政区划边界失败:",K)}))},Ir=(Z="standard",K={})=>{if(!n.value)return console.error("switchBaseMap: Map reference is not valid"),null;const fe=_n[Z]||_n.standard,me=n.value;d.value&&(me.removeLayer(d.value),d.value=null),p.value&&(me.removeLayer(p.value),p.value=null);const He=fe.key||l,Me=ai(fe.url,He,{layerType:fe.layerType||"vec",baseColor:fe.baseColor??null});return d.value=new zn({layerName:"baseMapLayer",source:Me,zIndex:0}),me.addLayer(d.value),fe.labelUrl&&(p.value=new zn({layerName:"baseMapLabelLayer",source:new dr.Tianditu({crossOrigin:"anonymous",key:fe.key||l,projection:"EPSG:4326",url:fe.labelUrl,layerType:fe.layerType||"vec",isLabel:fe.isLabel===!0}),zIndex:1}),me.addLayer(p.value)),K.showDistrict&&ia(K.districtColor||fe.stroke),v.value=Z,Z},Va=()=>Object.keys(_n).map(Z=>({type:Z,url:_n[Z].url})),Kt=V.ref(null),rn="invert(1) hue-rotate(195deg) saturate(0.65) contrast(1.4)",Hn=ki,Co=(Z,K)=>{let fe=null,me=null;return(He,Me)=>{const Ye=He.getImage(),Pe=new Image;Pe.crossOrigin="anonymous",Pe.onload=()=>{if(fe||(fe=document.createElement("canvas"),me=fe.getContext("2d")),!me||typeof me.filter>"u"){Ye.src=Me;return}fe.width=Pe.naturalWidth||Pe.width,fe.height=Pe.naturalHeight||Pe.height,me.filter=Z||"none",me.drawImage(Pe,0,0),me.filter="none",K&&(me.globalCompositeOperation="lighten",me.fillStyle=K,me.fillRect(0,0,fe.width,fe.height),me.globalCompositeOperation="destination-in",me.drawImage(Pe,0,0),me.globalCompositeOperation="source-over");try{Ye.src=fe.toDataURL("image/png")}catch(ke){console.warn("暗色底图瓦片处理失败,回退原图:",ke),Ye.src=Me}},Pe.onerror=()=>{Ye.src=Me},Pe.src=Me}},Eo=(Z={})=>{if(!n.value)return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.url??"https://t0.tianditu.gov.cn/vec_c/wmts?",me=K.key||le,He=K.filter??rn,Me=K.baseColor===void 0?Hn:K.baseColor,Ye=K.layerName??"darkNoLabelLayer",Pe=Number(K.zIndex??0),ke=K.replaceBaseMap??!0;let qe=Number(K.opacity??1);Number.isNaN(qe)&&(qe=1),qe=Math.min(Math.max(qe,0),1);const ct=fe.includes("?")?fe.endsWith("?")||fe.endsWith("&")?"":"&":"?",ht=/[?&]tk=/.test(fe)?fe:`${fe}${ct}tk=${me}`;return aa(),ke&&d.value&&(n.value.removeLayer(d.value),d.value=null),Kt.value=new zn({layerName:Ye,source:new mE({url:ht,layer:K.wmtsLayer??"vec",matrixSet:K.matrixSet??"c",format:K.format??"tiles",style:K.style??"default",projection:"EPSG:4326",tileGrid:dr.Tianditu.getTileGrid("EPSG:4326"),crossOrigin:"anonymous",wrapX:!1,tileLoadFunction:Co(He,Me)}),zIndex:Pe,opacity:qe}),n.value.addLayer(Kt.value),Kt.value},aa=()=>{var Z;Kt.value&&((Z=n.value)==null||Z.removeLayer(Kt.value),Kt.value=null)},Io=Z=>{if(!n.value||!Z)return!1;const K=n.value.getLayers().getArray();let fe=null;return K.forEach(me=>{me.get("layerName")===Z&&(fe=me)}),fe?(n.value.removeLayer(fe),!0):!1},_u=(Z={})=>{const{fillColor:K="rgba(1, 153, 255, 0.25)",strokeColor:fe="#0199ff",strokeWidth:me=1.5,pointColor:He="#ff7a45",pointRadius:Me=4,labelField:Ye="",labelColor:Pe="#1f2d3d"}=Z;return ke=>{const qe=[new Ge({fill:new st({color:K}),stroke:new ft({color:fe,width:me}),image:new pa({radius:Me,fill:new st({color:He}),stroke:new ft({color:"#ffffff",width:1})})})];if(Ye){const ct=ke.get(Ye);ct!=null&&ct!==""&&qe.push(new Ge({text:new jo({text:String(ct),font:"12px sans-serif",offsetY:-14,fill:new st({color:Pe}),stroke:new ft({color:"rgba(255, 255, 255, 0.9)",width:3})})}))}return qe}},Oi=(Z={})=>{const{layerName:K,opacity:fe=1,projection:me="EPSG:4326",type:He="raster",url:Me,zIndex:Ye=5}=Z;if(!n.value||!K||!Me)return console.error("addTileLayerByUrl: 参数不完整(layerName / url 必填)"),null;if(Io(K),He==="vector"){const ke=new f6({layerName:K,opacity:fe,declutter:!0,style:_u(Z),source:new D6({crossOrigin:"anonymous",format:new t6,projection:me,url:Me,minZoom:Z.minZoom??0,maxZoom:Z.maxZoom??18}),zIndex:Ye});return n.value.addLayer(ke),ke}const Pe=new zn({layerName:K,opacity:fe,source:new yE({crossOrigin:"anonymous",projection:me,url:Me}),zIndex:Ye});return n.value.addLayer(Pe),Pe},Os=(Z,K,fe,me={})=>fe?Oi({layerName:Z,url:K,...me}):Io(Z),Wa=()=>{C.value&&n.value.removeLayer(C.value),C.value=new zn({layerName:"baseRoadlayer",source:new dr.TileSuperMapRest({url:we,wrapX:!0,cacheEnabled:!0,crossOrigin:"anonymous"}),zIndex:15,projection:"EPSG:4326",maxTilesLoading:8,preload:0}),n.value.addLayer(C.value),E.value&&n.value.removeLayer(E.value),E.value=new zn({layerName:"roadLinelayer",source:new dr.TileSuperMapRest({url:te,wrapX:!0,cacheEnabled:!0,crossOrigin:"anonymous"}),zIndex:9,projection:"EPSG:4326",visible:!1,maxTilesLoading:8,preload:0}),n.value.addLayer(E.value);const Z=n.value.getView();let K=null;const fe=()=>{Z.getZoom()<15?(C.value.getVisible()||C.value.setVisible(!0),E.value.getVisible()&&E.value.setVisible(!1)):(C.value.getVisible()&&C.value.setVisible(!1),E.value.getVisible()||E.value.setVisible(!0))};return fe(),Z.on("change:resolution",()=>{K&&clearTimeout(K),K=setTimeout(fe,150)}),{baseRoadlayer:C.value,roadLinelayer:E.value}},Rs=()=>{C.value&&(n.value.removeLayer(C.value),C.value=null),E.value&&(n.value.removeLayer(E.value),E.value=null)},Mo=(Z={})=>{if(!(n!=null&&n.value))return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.url??oe,me=K.layers??B.all,He=K.zIndex??12,Me=K.layerName??"binzhouRoadLayer",Ye=K.visible??!0;let Pe=Number(K.opacity??1);return Number.isNaN(Pe)&&(Pe=1),Pe=Math.min(Math.max(Pe,0),1),M.value&&(n.value.removeLayer(M.value),M.value=null),M.value=new zn({layerName:Me,source:new e9({url:fe,params:{LAYERS:me,STYLES:K.styles??"",FORMAT:K.format??"image/png",VERSION:K.version??"1.1.1",TRANSPARENT:K.transparent??!0,...K.params||{}},projection:"EPSG:4326",crossOrigin:"anonymous"}),zIndex:He,opacity:Pe,visible:Ye}),n.value.addLayer(M.value),M.value},oa=()=>{M.value&&(n.value.removeLayer(M.value),M.value=null)},sa=[{京九通道:"rgba(145,223,24,1)"},{京沪通道:"rgba(145,223,24,1)"},{滨临通道:"rgba(145,223,24,1)"},{京沪二通道:"rgba(145,223,24,1)"},{济青通道:"rgba(227,172,29,1)"},{鲁中通道:"rgba(227,172,29,1)"},{鲁北通道:"rgba(227,172,29,1)"},{鲁南通道:"rgba(227,172,29,1)"},{沿海通道:"rgba(13,189,248, 1)"},{沿黄达海通道:"rgba(13,189,248, 1)"}],la=[{京九通道:"#FFB1A0"},{京沪通道:"#FFB1A0"},{滨临通道:"#FFB1A0"},{京沪二通道:"#FFB1A0"},{济青通道:"#E4CDFF"},{鲁中通道:"#E4CDFF"},{鲁北通道:"#E4CDFF"},{鲁南通道:"#E4CDFF"},{沿海通道:"#FFB1A0"},{沿黄达海通道:"#BCEBFF"}],Do=[{京九通道:90},{京沪通道:90},{滨临通道:90},{京沪二通道:90},{济青通道:0},{鲁中通道:0},{鲁北通道:0},{鲁南通道:0},{沿海通道:0},{沿黄达海通道:0}],nn=Z=>{const K={};return(Z||[]).forEach(fe=>{fe&&typeof fe=="object"&&Object.keys(fe).forEach(me=>{K[me]=fe[me]})}),K},xu=(Z={})=>{if(!n.value)return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.baseImgURL??"",me=K.geoJSONUrl??"/std.json",He=K.projection??"EPSG:4326",Me=K.layerName??"roadNetworkLayer",Ye=K.zIndex??5,Pe=K.strokeWidth??15,ke=K.defaultColor??"rgba(23, 136, 185, 0.8)",qe=K.defaultTextColor??"#BCEBFF",ct=K.defaultAngle??0,ht=nn(K.colors||sa),sr=nn(K.textColors||la),Jt=nn(K.angles||Do);return Ns(),D.value=new kt({layerName:Me,source:new Pt({url:`${fe||""}${me}`,format:new br({dataProjection:"EPSG:4326",featureProjection:He})}),style:function(on){const Mr=on.getProperties().name,Un={stroke:new r9({width:Pe,pattern:"hatch",color:ht[Mr]??ke,offset:0,scale:.9,fill:new st({color:"rgba(0,0,0,0)"}),size:1.5,spacing:4,angle:Jt[Mr]??ct,lineCap:"square"})};return Mr&&(Un.text=new jo({text:Mr,font:"bold 18px sans-serif",fill:new st({color:sr[Mr]??qe}),rotateWithView:!0,placement:"line",textAlign:"center",backgroundFill:new st({color:"rgba(0, 30, 68, 0.6)"}),backgroundStroke:new ft({color:"#FF8066",width:2}),padding:[5,10,5,10]})),new Ge(Un)},zIndex:Ye}),n.value.addLayer(D.value),D.value},Ns=()=>{var Z;D.value&&((Z=n.value)==null||Z.removeLayer(D.value),D.value=null)},Ri=["#f04b3f","#3b6ca6"],Ni=(Z,K)=>!Z||!K?0:Math.atan2(K[0]-Z[0],K[1]-Z[1]),Y=Z=>{let K=Z;for(;K>Math.PI/2;)K-=Math.PI;for(;K<-Math.PI/2;)K+=Math.PI;return K},ee=(Z={})=>{if(!n.value)return null;const K=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:{},fe=K.baseImgURL??"",me=K.geoJSONUrl??"/sanheng.json",He=K.projection??"EPSG:4326",Me=K.layerName??"sanhengLayer",Ye=K.zIndex??6,Pe=Array.isArray(K.colors)&&K.colors.length?K.colors:Ri,ke=Pe[0],qe=Pe[1]??Pe[0],ct=K.squareSize??18,ht=K.dashLength??Math.round(ct*1.2),sr=K.dashGap??Math.round(ct*.85),Jt=K.arrowSize??16,on=K.labelFont??"bold 16px sans-serif",Mr=K.labelOffsetY??0,Un=K.showArrow!==!1,ua=K.showLabel!==!1,ca=K.arrowColors||{},kr=K.labelColors||{},Nd=[ht,sr],sn=[sr,ht];return ie(),L.value=new kt({layerName:Me,source:new Pt({url:`${fe||""}${me}`,format:new br({dataProjection:"EPSG:4326",featureProjection:He})}),style:function(oi){const Lo=oi.get("name")??"",Qy=Lo.startsWith("纵")?qe:ke,MA=ca[Lo]??Qy,$y=kr[Lo]??Qy,bu=[new Ge({stroke:new ft({color:ke,width:ct,lineCap:"butt",lineDash:Nd,lineDashOffset:0})}),new Ge({stroke:new ft({color:qe,width:ct,lineCap:"butt",lineDash:sn,lineDashOffset:sr})})],Fd=oi.getGeometry();if(!Fd||Fd.getType()!=="LineString")return bu;const Wr=Fd.getCoordinates();if(Wr.length<2)return bu;if(Un&&[{coord:Wr[0],rotation:Ni(Wr[0],Wr[1])+Math.PI},{coord:Wr[Wr.length-1],rotation:Ni(Wr[Wr.length-2],Wr[Wr.length-1])}].forEach(fh=>{bu.push(new Ge({geometry:new Kr(fh.coord),image:new p0({points:3,radius:Jt,rotation:fh.rotation,fill:new st({color:MA}),stroke:new ft({color:"#ffffff",width:1})})}))}),ua&&Lo){const hh=Math.floor(Wr.length/2),fh=Wr[hh],DA=Wr[hh-1]??Wr[0],LA=Wr[hh+1]??Wr[Wr.length-1],PA=Y(Ni(DA,LA)-Math.PI/2);bu.push(new Ge({geometry:new Kr(fh),text:new jo({text:Lo,font:on,fill:new st({color:$y}),backgroundFill:new st({color:"rgba(255, 255, 255, 0.96)"}),backgroundStroke:new ft({color:$y,width:2}),padding:[6,12,6,12],rotation:PA,rotateWithView:!1,textAlign:"center",textBaseline:"middle",overflow:!0,offsetY:Mr})}))}return bu},zIndex:Ye}),n.value.addLayer(L.value),L.value},ie=()=>{var Z;L.value&&((Z=n.value)==null||Z.removeLayer(L.value),L.value=null)},pe=()=>(P.value&&n.value.removeLayer(P.value),P.value=new zn({layerName:"pileLayer",source:new dr.TileSuperMapRest({url:G,wrapX:!0,cacheEnabled:!0,crossOrigin:"anonymous"}),zIndex:10,projection:"EPSG:4326",maxTilesLoading:8,preload:0}),n.value.addLayer(P.value),P.value),ye=()=>{P.value&&(n.value.removeLayer(P.value),P.value=null)},_e=()=>{const Z=new Date,K=Z.getFullYear();let fe=Z.getMonth()+1,me=Z.getDate();const He=Z.getHours(),Me=Z.getMinutes(),Ye=Z.getSeconds();fe>=1&&fe<=9&&(fe="0"+fe),me>=1&&me<=9&&(me="0"+me);const Pe=K+"-"+fe+"-"+me+" "+He+":"+Me+":"+Ye;return new Date(Pe.replace(new RegExp("-","gm"),"/")).getTime()},Ze=(Z={})=>{k.value&&n.value.removeLayer(k.value);const K=-.00575;return k.value=new zn({layerName:"gaodeTrafficLayer",source:new yE({url:`http://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0&;t=1&x={x}&y={y}&z={z}&&t=${_e()}`,crossOrigin:"anonymous"}),zIndex:Z.zIndex||9,minZoom:Z.minZoom??13}),k.value.on("prerender",fe=>{const me=fe.context,He=n.value.getView().getZoom(),Me=K*(256*Math.pow(2,He))/360,Ye=5e-5*(256*Math.pow(2,He))/360;me.save(),me.translate(Me,Ye)}),k.value.on("postrender",fe=>{fe.context.restore()}),n.value.addLayer(k.value),k.value},he=()=>{k.value&&(n.value.removeLayer(k.value),k.value=null)},Ie=()=>(A.value&&n.value.removeLayer(A.value),A.value=new zn({source:new dr.Tianditu({layerType:"img",key:"2356a0d8a94aae5abf2a0bcb689d1d26",crossOrigin:"anonymous"}),zIndex:1,maxTilesLoading:8,preload:0}),n.value.addLayer(A.value),T.value&&n.value.removeLayer(T.value),T.value=new zn({source:new dr.Tianditu({layerType:"img",isLabel:!0,key:"2356a0d8a94aae5abf2a0bcb689d1d26",crossOrigin:"anonymous"}),zIndex:2,maxTilesLoading:8,preload:0}),n.value.addLayer(T.value),{yingxiangLayer:A.value,yingxiangBZLayer:T.value}),Ke=()=>{A.value&&(n.value.removeLayer(A.value),A.value=null),T.value&&(n.value.removeLayer(T.value),T.value=null)},Nt="path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z",Et=(Z={})=>{if(!n.value)return console.error("地图实例未就绪,无法绘制迁徙线"),null;const K=Z.cityData||[],fe=Z.startIndex??0;return K.length?(F.value={cityData:K,startIndex:fe,cityColors:Z.cityColors,lineColor:Z.lineColor,planePath:Z.planePath,lineWidth:Z.lineWidth,symbolSize:Z.symbolSize,period:Z.period},R.value||(R.value=new tm(null,{stopEvent:!1,hideOnMoving:!1,hideOnZooming:!1,forcedPrecomposeRerender:!0}),R.value.appendTo(n.value)),nt(F.value),R.value):(console.error("迁徙线城市数据不能为空"),null)},nt=Z=>{if(!R.value||!Z)return;const{cityData:K,cityColors:fe,planePath:me,lineWidth:He,symbolSize:Me,period:Ye}=Z,Pe=Z.startIndex??0,ke=K[Pe];if(!ke){console.error("起点城市索引超出范围");return}const qe=fe||{},ct=Z.lineColor,ht=me||Nt,sr=He??2,Jt=Me??6,on=Ye??5,Mr=[];K.forEach((sn,oi)=>{oi!==Pe&&Mr.push({coords:[ke.name,sn.name]})});const Un=sn=>{const oi=K.find(Lo=>Lo.name===sn);return oi?oi.value:null},ua=Mr.map(sn=>({coords:sn.coords.map(Un).filter(Boolean)})).filter(sn=>sn.coords.length===2),ca=[{name:ke.name,value:ke.value,symbolSize:Jt}],kr=K.filter((sn,oi)=>oi!==Pe).map(sn=>({name:sn.name,value:sn.value,symbolSize:Jt})),Nd={series:[{type:"lines",zlevel:2,coordinateSystem:"geo",symbol:["none","arrow"],data:ua,effect:{show:!0,period:on,trailLength:0,symbol:ht,symbolSize:15,color:ct},lineStyle:{color:ct,opacity:1,width:sr,curveness:.4}},{type:"effectScatter",zlevel:1,coordinateSystem:"geo",symbolSize:Jt,itemStyle:{color:qe[ke.name]||"#ff3333"},rippleEffect:{brushType:"stroke",period:4,scale:3},label:{show:!0,position:"bottom",color:"#39b3ff",fontSize:16,distance:10,formatter:"{b}"},data:ca},{type:"effectScatter",zlevel:1,coordinateSystem:"geo",symbolSize:Jt,itemStyle:{color:sn=>{const oi=kr[sn.dataIndex].name;return qe[oi]||"#83cdff"}},rippleEffect:{brushType:"stroke",period:4,scale:3},label:{show:!0,position:"bottom",color:"#39b3ff",fontSize:16,distance:10,formatter:"{b}"},data:kr}]};R.value.setChartOptions(Nd)},xt=(Z={})=>{if(!R.value){console.warn("迁徙线图层尚未初始化,无法更新数据,请先调用 initMigrationLinesLayer");return}if(!F.value){console.warn("未找到迁徙线原始数据,无法更新");return}F.value={...F.value,...Z},nt(F.value)},ce=()=>{if(R.value){try{R.value.remove()}catch(Z){console.error("移除迁徙线图层失败:",Z)}R.value=null}F.value=null},ae=(Z={})=>{if(!n.value){console.error("地图实例未就绪,无法启动缓冲区绘制");return}N.value={distance:Z.distance??500,color:Z.color??"rgba(255, 0, 0, 0.3)",type:Z.type??"LineString"},Ht(),O.value?(O.value.getSource().clear(),O.value.setStyle(new Ge({fill:new st({color:N.value.color}),stroke:new ft({color:N.value.color.replace(/[\d.]+\)$/,"1)"),width:2})}))):(O.value=new kt({source:new Pt,style:new Ge({fill:new st({color:N.value.color}),stroke:new ft({color:N.value.color.replace(/[\d.]+\)$/,"1)"),width:2})}),zIndex:99}),n.value.addLayer(O.value)),W.value?W.value.getSource().clear():(W.value=new kt({source:new Pt,style:new Ge({stroke:new ft({color:"#39b3ff",width:3}),image:new pa({radius:6,fill:new st({color:"#39b3ff"})})}),zIndex:100}),n.value.addLayer(W.value)),z.value=new Ep({source:W.value.getSource(),type:N.value.type,style:new Ge({stroke:new ft({color:"rgba(57, 179, 255, 0.8)",lineDash:[10,10],width:3}),image:new pa({radius:6,fill:new st({color:"rgba(57, 179, 255, 0.8)"})})})}),z.value.on("drawend",K=>{gt(K.feature),setTimeout(()=>{Ht()},100)}),n.value.addInteraction(z.value)},Se=(Z,K,fe,me)=>{const He=63710088e-1,Me=on=>on*Math.PI/180,Ye=on=>on*180/Math.PI,Pe=Me(fe),ke=Me(K),qe=Me(Z),ct=me/He,ht=Math.asin(Math.sin(ke)*Math.cos(ct)+Math.cos(ke)*Math.sin(ct)*Math.cos(Pe)),Jt=(qe+Math.atan2(Math.sin(Pe)*Math.sin(ct)*Math.cos(ke),Math.cos(ct)-Math.sin(ke)*Math.sin(ht))+3*Math.PI)%(2*Math.PI)-Math.PI;return[Ye(Jt),Ye(ht)]},Ce=(Z,K,fe,me)=>{const He=ht=>ht*Math.PI/180,Me=ht=>ht*180/Math.PI,Ye=He(fe-Z),Pe=He(K),ke=He(me),qe=Math.sin(Ye)*Math.cos(me),ct=Math.cos(Pe)*Math.sin(ke)-Math.sin(Pe)*Math.cos(ke)*Math.cos(Ye);return(Me(Math.atan2(qe,ct))+360)%360},dt=(Z,K)=>{if(!Z||Z.length<2){if(Z&&Z.length===1){const[Me,Ye]=Z[0],Pe=[],ke=64;for(let qe=0;qe<=ke;qe++){const ct=qe*360/ke,ht=Se(Me,Ye,ct,K);Pe.push(ht)}return Pe}return null}const fe=[],me=[];for(let Me=0;Me<Z.length;Me++){const[Ye,Pe]=Z[Me];let ke;if(Me===0)ke=Ce(Ye,Pe,Z[Me+1][0],Z[Me+1][1]);else if(Me===Z.length-1)ke=Ce(Z[Me-1][0],Z[Me-1][1],Ye,Pe);else{const ht=Ce(Z[Me-1][0],Z[Me-1][1],Ye,Pe);let Jt=Ce(Ye,Pe,Z[Me+1][0],Z[Me+1][1])-ht;Jt>180&&(Jt-=360),Jt<-180&&(Jt+=360),ke=(ht+Jt/2+360)%360}const qe=(ke-90+360)%360,ct=(ke+90)%360;fe.push(Se(Ye,Pe,qe,K)),me.push(Se(Ye,Pe,ct,K))}return[...fe,...me.slice().reverse(),fe[0]].filter(Me=>Number.isFinite(Me[0])&&Number.isFinite(Me[1]))},gt=Z=>{if(!Z||!O.value)return;const K=N.value.distance,fe=Z.getGeometry();if(!fe)return;const me=fe.getType();let He=null;try{if(me==="LineString"){const Pe=fe.getCoordinates();He=dt(Pe,K)}else if(me==="Point"){const[Pe,ke]=fe.getCoordinates();He=[];const qe=64;for(let ct=0;ct<=qe;ct++){const ht=ct*360/qe;He.push(Se(Pe,ke,ht,K))}}else if(me==="Polygon"){const Pe=fe.getCoordinates(),ke=Pe[0],qe=Pe.slice(1),ct=dt(ke,K),ht=qe.map(sr=>dt(sr,-K)).filter(Boolean);He=ct,ht.length&&(He=ct)}else{console.error("不支持的几何类型:",me);return}if(!He||He.length<4){console.warn("缓冲区生成结果为空");return}const Me=new Kn([He]),Ye=new fa({geometry:Me});O.value.getSource().addFeature(Ye)}catch(Me){console.error("生成缓冲区失败:",Me)}},Yt=(Z={})=>{Z.distance!==void 0&&(N.value.distance=Z.distance),Z.color!==void 0&&(N.value.color=Z.color,O.value&&O.value.setStyle(new Ge({fill:new st({color:Z.color}),stroke:new ft({color:Z.color.replace(/[\d.]+\)$/,"1)"),width:2})})))},Ht=()=>{z.value&&(n.value.removeInteraction(z.value),z.value=null)},an=()=>{Ht(),W.value&&(W.value.getSource().clear(),n.value.removeLayer(W.value),W.value=null),O.value&&(O.value.getSource().clear(),n.value.removeLayer(O.value),O.value=null)};return V.watch(t,Z=>{Z==="dark"?Zr(X,$,Xe):Z==="light"?Zr(j,ue,vt):Z==="yingxiang"&&Zr(Q,Te,Rt)}),{lastHoverFeature:u,isCluster:c,echartslayer:h,congestedRoadLayer:f,tiandituLayer:d,overlayPopup:g,initialPoint:y,popupHeight:m,popupWidth:_,china_full_Layer:x,showChinaBoundary:b,setShowChinaBoundary:mn,currentTabComponent:w,popupAttributes:S,shandongYingxiangLayer:A,shandongYingxiangBZLayer:T,baseRoadlayer:C,roadLinelayer:E,binzhouRoadLayer:M,binzhouRoadSubLayers:B,pileLayer:P,gaodeTrafficLayer:k,normalizedThemeStyle:nr,initBaseLayers:na,loadShandongYingxiangLayer:Ie,removeShandongYingxiangLayer:Ke,loadShandongRoadLayer:Wa,removeShandongRoadLayer:Rs,loadBinzhouRoadLayer:Mo,removeBinzhouRoadLayer:oa,roadNetworkLayer:D,initRoadNetwork:xu,removeRoadNetworkLayer:Ns,sanhengLayer:L,initSanhengLayer:ee,removeSanhengLayer:ie,loadPileLayer:pe,removePileLayer:ye,loadGaodeTrafficLayer:Ze,removeGaodeTrafficLayer:he,baseLabelLayer:p,currentBaseMap:v,switchBaseMap:Ir,getBaseMapTypes:Va,darkNoLabelLayer:Kt,loadDarkNoLabelLayer:Eo,removeDarkNoLabelLayer:aa,addTileLayerByUrl:Oi,removeTileLayerByName:Io,setTileLayerVisible:Os,migrationLinesLayer:R,migrationLinesData:F,initMigrationLinesLayer:Et,updateMigrationLinesData:xt,removeMigrationLinesLayer:ce,bufferConfig:N,startBufferDraw:ae,stopBufferDraw:Ht,updateBufferConfig:Yt,clearBufferLayer:an}}const ga={background:"#f5543f",color:"#ffffff",borderColor:"#ffffff",borderWidth:2,padding:[4,10,4,10],font:"bold 16px sans-serif",offsetX:10,offsetY:-20,scale:1},_E=new Map,xE=()=>{const n=typeof window<"u"&&window.devicePixelRatio?window.devicePixelRatio:1;return Math.min(Math.max(n,1),3)},u9=(n,t,e,r,i,a)=>{const o=Math.min(a,r/2,i/2);n.beginPath(),n.moveTo(t+o,e),n.lineTo(t+r-o,e),n.arcTo(t+r,e,t+r,e+o,o),n.lineTo(t+r,e+i-o),n.arcTo(t+r,e+i,t+r-o,e+i,o),n.lineTo(t+o,e+i),n.arcTo(t,e+i,t,e+i-o,o),n.lineTo(t,e+o),n.arcTo(t,e,t+o,e,o),n.closePath()},c9=(n,t)=>{const{background:e,color:r,borderColor:i,borderWidth:a,padding:o,font:s}=t,[l,u,c,h]=o,f=Number((/(\d+(?:\.\d+)?)px/.exec(s)||[])[1])||16,d=document.createElement("canvas").getContext("2d");d.font=s;const p=d.measureText(n).width,v=Math.ceil(p+h+u+a*2),g=Math.ceil(f*1.2),y=Math.ceil(g+l+c+a*2),m=xE(),_=document.createElement("canvas");_.width=Math.ceil(v*m),_.height=Math.ceil(y*m);const x=_.getContext("2d");x.scale(m,m);const b=a/2;return u9(x,b,b,v-a,y-a,y/2),x.fillStyle=e,x.fill(),a>0&&(x.lineWidth=a,x.strokeStyle=i,x.stroke()),x.font=s,x.textAlign="center",x.textBaseline="middle",x.fillStyle=r,x.fillText(n,v/2,y/2),{canvas:_,width:v,height:y}},q0=(n,t={})=>{const e={...ga,...t},r=n==null?"":n.toString();if(e.pill===!1){const f={text:r,font:e.font,offsetX:e.offsetX,offsetY:e.offsetY,fill:new st({color:e.color})};return e.textStrokeColor&&(f.stroke=new ft({color:e.textStrokeColor,width:e.textStrokeWidth===void 0?2:e.textStrokeWidth})),new Ge({text:new jo(f)})}const i=xE(),a=Array.isArray(e.padding)?e.padding:ga.padding,o=e.scale===void 0?1:e.scale,s=e.offsetX===void 0?0:e.offsetX,l=e.offsetY===void 0?0:e.offsetY,u=[r,e.background,e.color,e.borderColor,e.borderWidth,e.font,a.join("-"),i].join("|");let c=_E.get(u);c||(c=c9(r,{...e,padding:a}),_E.set(u,c));const h=[c.canvas.width,c.canvas.height];return new Ge({image:new ur({img:c.canvas,imgSize:h,size:h,scale:o/i,displacement:[s*i,-l*i]})})},Q0=(n={})=>{const t=n.clusterPill!==!1;return{pill:t,background:n.clusterColor||ga.background,color:t?n.clusterTextColor||ga.color:n.clusterColor||"red",borderColor:n.clusterBorderColor||ga.borderColor,borderWidth:n.clusterBorderWidth===void 0?ga.borderWidth:n.clusterBorderWidth,padding:n.clusterPadding||ga.padding,font:n.clusterFont||ga.font,offsetX:n.clusterOffsetX===void 0?ga.offsetX:n.clusterOffsetX,offsetY:n.clusterOffsetY===void 0?ga.offsetY:n.clusterOffsetY,textStrokeColor:n.clusterTextStrokeColor,textStrokeWidth:n.clusterTextStrokeWidth}};function $0(n,t,e,r,i,a,o,s,l,u){const c=V.ref(!1),h=V.ref([]),f=V.ref([]),d=V.ref(null),p="/qu.json",v=V.ref(null),g=V.ref(null),y=V.ref(null),m=(Y,ee)=>{if(!ee||!ee.longitude||!ee.latitude){console.error("openPopupByattr: data 缺少经纬度信息");return}let ie=[ee.longitude,ee.latitude],pe=document.getElementById("popupHeaderTitle");switch(r(),Y){case"customPoint":a.value=ee.popupHeight,o.value=ee.popupWidth,s.value=K0,l.value={...ee,component:ee.component,componentProps:ee.componentProps},pe&&(pe.innerHTML=ee.popupTitle||"");break}if(!u.value)return;let ye=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),_e=a.value/153.6*ye,Ze=o.value/153.6*ye;u.value.setPosition(ie),u.value.setOffset([-Ze/2,-_e-ee.iconHeight]);let he=n.value.value.getPixelFromCoordinate(ie),Ie=[he[0],he[1]-ee.popupOffsetY],Ke=n.value.value.getCoordinateFromPixel(Ie);setTimeout(()=>{n.value.value.getView().animate({center:Ke,duration:800})},10)},_=(Y,ee)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}n.value.value.getView().animate({center:Y,zoom:ee,duration:800})},x=()=>!n||!n.value||!n.value.value?(console.error("Map reference is not valid"),null):n.value.value.getView().getZoom(),b=(Y,ee,ie,pe)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ye=n.value.value.getLayers().getArray(),_e=null;for(let he=0;he<ye.length;he++){let Ie=ye[he];if(Ie.get("layerName")===ee){_e=Ie;break}}let Ze=new Pt;if(Y.pointList.forEach(he=>{let Ie=new Fs.Feature({title:"要素点",geometry:new Kr([he.longitude,he.latitude])});Ie.set("type",he.type),Ie.set("iconUrl",he.iconUrl),Ie.set("popoup",he.popoup),Ie.set("popupTitle",he.popupTitle),Ie.set("popupUrl",he.popupUrl),Ie.set("popupWidth",he.popupWidth),Ie.set("popupHeight",he.popupHeight),Ie.set("popupOffsetY",he.popupOffsetY),Ie.set("otherInfo",he.otherInfo),Ie.set("longitude",he.longitude),Ie.set("latitude",he.latitude),Ie.set("isVisible",!1),Ie.set("layerId",ee),Ie.set("popupComponent",he.popupComponent),Ie.set("popupComponentProps",he.popupComponentProps);let Ke=[new Ge({image:new ur({src:he.iconUrl,scale:he.scale,offset:he.offset,offsetOrigin:"bottom-right",size:he.size})}),new Ge({text:new jo({font:he.textFontSize||"14px sans-serif",fill:new st({color:he.textColor||"rgb(255, 255, 255)"}),stroke:new ft({color:"rgb(33, 33, 33)",width:0}),backgroundFill:new st({color:he.textBGColor||"rgba(94, 110, 158, 0.6)"}),backgroundStroke:new ft({color:"rgba(173, 173, 173, 0.1)",width:1}),text:he.name||"",textAlign:"center",textBaseline:"bottom",offsetX:he.textOffsetX||0,offsetY:he.textOffsetY||40,overflow:!0,padding:[0,2,0,2]}),zIndex:60})];Ie.setStyle(Ke),Ze.addFeature(Ie)}),ie){pe.value=new kt({layerName:ee,zIndex:999,style:function(Et){if(!Et.get("features"))return Et.getStyle();const nt=Et.get("features").length;let xt;if(nt>1){new Ge({image:new p0({fill:new st({color:[233,188,38,.7]}),stroke:new ft({color:[233,188,38,1],width:1}),points:6,radius:27}),text:new jo({fill:new st({color:"#ffffff"}),offsetY:2,font:"bold 16px sans-serif",text:nt.toString()})});let ce=new Ge({image:new ur({src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzNCA0MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IiYjMjMwOyYjMTUwOyYjMTg5OyYjMjI5OyYjMTgzOyYjMTY1OyIgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzQ0M18zNDkpIj4KPGcgaWQ9IiYjMjMzOyYjMTYxOyYjMTgxOyYjMjMzOyYjMTU3OyYjMTYyOy0xIj4KPGcgaWQ9IiYjMjMzOyYjMTY2OyYjMTUwOyYjMjMzOyYjMTYxOyYjMTgxOy0mIzIzMTsmIzE1MzsmIzE4OTsmIzIzMjsmIzEzNzsmIzE3ODsmIzIyOTsmIzE4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4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QxX2lubmVyU2hhZG93XzQ0M18zMTAiLz4KPC9maWx0ZXI+CjxjbGlwUGF0aCBpZD0iY2xpcDBfNDQzXzMxMCI+CjxyZWN0IHdpZHRoPSIzNCIgaGVpZ2h0PSI0MiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"})}),Se=new Ge({image:new ur({src:Et.get("features")[0].getProperties().iconUrl,scale:Y.clusterScale||.6})});const Ce=q0(nt,Q0(Y));if(n.value.value.getView().getZoom()<18)return[Se,Ce];{let dt=1;return Et.get("features").forEach(gt=>{gt.getProperties().otherInfo.state===0&&(dt=0)}),dt===1?[ce,Ce]:[ae,Ce]}}else return xt=Et.get("features")[0].getStyle(),xt}});const he=new Z0({distance:80,minDistance:200,source:Ze}),Ie=_e||pe.value;Ie.set("clusterSource",he),Ie.set("rawSource",Ze),Ie.set("clusterZoomThreshold",16),Ie.set("isClusterLayer",!0);const Ke=n.value.value.getView().getZoom();Ie.setSource(Ke>16?Ze:he);const Nt=n.value.value;Nt.get("clusterZoomListenerBound")||(Nt.set("clusterZoomListenerBound",!0),Nt.on("moveend",()=>{const Et=Nt.getView().getZoom();Nt.getLayers().forEach(nt=>{if(!nt.get("isClusterLayer"))return;const xt=nt.get("clusterZoomThreshold")||16,ce=nt.get("clusterSource"),ae=nt.get("rawSource");if(!ce||!ae)return;const Se=nt.getSource();Et>xt&&Se!==ae?nt.setSource(ae):Et<=xt&&Se!==ce&&nt.setSource(ce)})}))}else pe.value=new kt({layerName:ee,zIndex:999}),_e?_e.setSource(Ze):pe.value.setSource(Ze);_e||n.value.value.addLayer(pe.value)},w=(Y,ee,ie)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let pe=[];Y.forEach(_e=>{let Ze=_e.xyArr.map(Ie=>Ie),he=new Fs.Feature({geometry:new Bi(Ze)});he.set("popoup",_e.popoup),he.set("otherInfo",_e.otherInfo),he.setStyle(new Ge({stroke:new ft({color:_e.color,width:_e.width,lineDash:_e.lineDash?[10,10]:void 0})})),pe.push(he)});let ye=new Pt({features:pe});ie.value=new kt({layerName:ee,zIndex:999,source:ye}),n.value.value.addLayer(ie.value)},S=(Y,ee)=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ie=T(ee);ie&&n.value.value.removeLayer(ie);let pe=[];Y.forEach(_e=>{if(_e.longitude!==void 0&&_e.latitude!==void 0){let Ze=new Fs.Feature({geometry:new Kr([_e.longitude,_e.latitude]),weight:_e.weight||1});Ze.set("popoup",!1),pe.push(Ze)}});let ye=new D8({layerName:ee,zIndex:900,source:new Pt({features:pe}),blur:16,radius:15,weight:_e=>_e.get("weight")||1,gradient:["#00f","#0ff","#0f0","#ff0","#f00"]});n.value.value.addLayer(ye)},A=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ee=n.value.value.getLayers().getArray(),ie=null;for(let pe=0;pe<ee.length;pe++){let ye=ee[pe];if(ye.get("layerName")===Y){ie=ye;break}}n.value.value.removeLayer(ie)},T=Y=>{if(!n||!n.value||!n.value.value)return console.error("Map reference is not valid"),null;let ee=n.value.value.getLayers().getArray(),ie=null;for(let pe=0;pe<ee.length;pe++){let ye=ee[pe];if(ye.get("layerName")===Y){ie=ye;break}}return ie},C=Y=>{if(!n||!n.value||!n.value.value)return console.error("Map reference is not valid"),!1;var ee=n.value.value.getLayers().getArray();return ee.some(function(ie){return ie===Y})},E=V.ref([]),M=Y=>(Y&&!E.value.includes(Y)&&E.value.push(Y),Y),D=()=>{E.value.forEach(Y=>{try{Y&&typeof Y.remove=="function"&&Y.remove(),Y&&Y.$container&&Y.$container.parentNode&&Y.$container.parentNode.removeChild(Y.$container)}catch(ee){console.error("清除 echarts 图层失败:",ee)}}),E.value=[]},L=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ee=Y,ie={};Y&&typeof Y=="object"&&Y.data&&Y.settings&&(ee=Y.data,ie=Y.settings);let pe=new tm(null,{hideOnZooming:!0});pe.appendTo(n.value.value);let ye=function(ce){let ae=[];for(let Se=0;Se<ce.length;Se++){let Ce=ce[Se].latlng;if(Ce){let dt=ce[Se].bar_data||[0];Array.isArray(dt)||(dt=[dt]);let gt=ce[Se].bar_names||["数据1"];Array.isArray(gt)||(gt=[gt]);let Yt=ce[Se].bar_units||["单位"];Array.isArray(Yt)||(Yt=[Yt]),ae.push({name:ce[Se].city,value:Ce,bar_count:ce[Se].bar_count||1,color:Array.isArray(ce[Se].color)?ce[Se].color:ce[Se].color?[ce[Se].color,"#ff7f00"]:["#efda18","#ff7f00"],bar_data:dt,bar_names:gt,bar_units:Yt})}}return ae};const _e=ye(ee).reduce((ce,ae)=>ce.concat(ae.bar_data),[]),Ze=Math.max(..._e,1),he=ce=>{let ae;if(typeof ce=="string"&&ce.startsWith("#")){const Se=ce.replace("#",""),Ce=parseInt(Se.substring(0,2),16),dt=parseInt(Se.substring(2,4),16),gt=parseInt(Se.substring(4,6),16);ae=`rgba(${Ce}, ${dt}, ${gt}, 1)`}else ae=ce;return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:ae.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 1)")},{offset:.6,color:ae.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0.4)")},{offset:1,color:ae.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0)")}]}},Ie=ye(ee).filter(ce=>ce.bar_count===1),Ke=ye(ee).filter(ce=>ce.bar_count>1),Nt=Ke.map(ce=>({...ce,value:[ce.value[0],ce.value[1],ce.bar_data[0]]})),Et=Ke.map(ce=>({...ce,value:[ce.value[0],ce.value[1],ce.bar_data[1]||0]})),nt=Ie.map(ce=>({...ce,value:[ce.value[0],ce.value[1],ce.bar_data[0]]}));let xt={tooltip:{show:!0,trigger:"item",formatter:function(ce){if(ce.seriesName==="车流量"){const ae=ce.data.bar_names[0]||"数据",Se=ce.data.bar_data[0]||0,Ce=ce.data.bar_units[0]||"";return`${ce.data.name}<br/>${ae}: ${Se}${Ce}`}else if(ce.seriesName==="车流量1"){const ae=ce.data.bar_names[0]||"数据1",Se=ce.data.bar_data[0]||0,Ce=ce.data.bar_units[0]||"";return`${ce.data.name}<br/>${ae}: ${Se}${Ce}`}else if(ce.seriesName==="车流量2"){const ae=ce.data.bar_names[1]||"数据2",Se=ce.data.bar_data[1]||0,Ce=ce.data.bar_units[1]||"";return`${ce.data.name}<br/>${ae}: ${Se}${Ce}`}return`${ce.data.name}<br/>数据: ${ce.data.bar_data[0]||0}${ce.data.bar_units[0]||""}`},backgroundColor:"rgba(0, 0, 0, 0.7)",textStyle:{color:"#fff",fontSize:ie.tooltipFontSize||12},padding:ie.tooltipPadding||8},series:[{name:"车流量",type:"scatter",coordinateSystem:"geo",data:nt,symbolSize:function(ce){const ae=ce[2]||0,Se=Math.max(10,ae/Ze*150);return[ie.barWidth||15,Se]},symbolOffset:[0,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(ce){return he(ce.data.color[0])}}},{name:"车流量1",type:"scatter",coordinateSystem:"geo",data:Nt,symbolSize:function(ce){const ae=ce[2]||0,Se=Math.max(10,ae/Ze*150);return[ie.barWidth||15,Se]},symbolOffset:[-8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(ce){return he(ce.data.color[0])}}},{name:"车流量2",type:"scatter",coordinateSystem:"geo",data:Et,symbolSize:function(ce){const ae=ce[2]||0,Se=Math.max(10,ae/Ze*150);return[ie.barWidth||15,Se]},symbolOffset:[8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(ce){return he(ce.data.color[1])}}}]};return pe&&(pe.setChartOptions(xt),setTimeout(()=>{pe.$chart&&pe.$chart.on("click",function(ce){if(e&&typeof e=="function"){let ae=ce.data,Se=ae.value[0],Ce=ae.value[1],dt=null;if(Se&&Ce){let gt=[Se,Ce];n&&n.value&&n.value.value&&(dt=n.value.value.getPixelFromCoordinate(gt))}e("barClick",ae,dt)}})},0)),M(pe)},P=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}let ee=Y,ie={};Y&&typeof Y=="object"&&Y.data&&Y.settings&&(ee=Y.data,ie=Y.settings);let pe=new tm(null,{hideOnZooming:!0});pe.appendTo(n.value.value);let ye=function(ae){let Se=[];for(let Ce=0;Ce<ae.length;Ce++){let dt=ae[Ce].latlng;if(dt){let gt=ae[Ce].bar_data||[0];Array.isArray(gt)||(gt=[gt]);let Yt=ae[Ce].bar_names||["数据1"];Array.isArray(Yt)||(Yt=[Yt]);let Ht=ae[Ce].bar_units||["单位"];Array.isArray(Ht)||(Ht=[Ht]),Se.push({name:ae[Ce].city,value:dt,bar_count:ae[Ce].bar_count||1,color:Array.isArray(ae[Ce].color)?ae[Ce].color:ae[Ce].color?[ae[Ce].color,"#ff7f00"]:["#0097fb","#30eca6"],bar_data:gt,bar_names:Yt,bar_units:Ht})}}return Se};const _e=ye(ee).reduce((ae,Se)=>ae.concat(Se.bar_data),[]),Ze=Math.max(..._e,1),he=ae=>{const Se=ae||0;let Ce=[];return Se<300?Ce=[{offset:0,color:"rgba(44, 104, 226, 1)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}]:Se<1e3?Ce=[{offset:0,color:"rgba(23, 221, 174, 1)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}]:Se<2e3?Ce=[{offset:0,color:"rgba(255, 213, 114, 1)"},{offset:.5,color:"rgba(23, 221, 174, 0.8)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}]:Ce=[{offset:0,color:"rgba(245, 54, 96, 1)"},{offset:.33,color:"rgba(255, 213, 114, 0.9)"},{offset:.66,color:"rgba(23, 221, 174, 0.8)"},{offset:1,color:"rgba(44, 104, 226, 0.5)"}],{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:Ce,globalCoord:!1}},Ie=ye(ee).filter(ae=>ae.bar_count===1),Ke=ye(ee).filter(ae=>ae.bar_count>1),Nt=Ie.map(ae=>({...ae,value:[ae.value[0],ae.value[1],ae.bar_data[0]]})),Et=Ke.map(ae=>({...ae,value:[ae.value[0],ae.value[1],ae.bar_data[0]]})),nt=Ke.map(ae=>({...ae,value:[ae.value[0],ae.value[1],ae.bar_data[1]||0]})),xt="path://M12.000,-0.000 C12.000,-0.000 16.074,60.121 22.731,60.121 C26.173,60.121 -3.234,60.121 0.511,60.121 C7.072,60.121 12.000,-0.000 12.000,-0.000 Z";ie.barWidth&&`${ie.barWidth}`;let ce={tooltip:{show:!0,trigger:"item",formatter:function(ae){if(ae.seriesName==="singleBar"){const Se=ae.data.bar_names[0]||"数据",Ce=ae.data.bar_data[0]||0,dt=ae.data.bar_units[0]||"";return`${ae.data.name}<br/>${Se}: ${Ce}${dt}`}else if(ae.seriesName==="doubleBar1"){const Se=ae.data.bar_names[0]||"数据1",Ce=ae.data.bar_data[0]||0,dt=ae.data.bar_units[0]||"";return`${ae.data.name}<br/>${Se}: ${Ce}${dt}`}else if(ae.seriesName==="doubleBar2"){const Se=ae.data.bar_names[1]||"数据2",Ce=ae.data.bar_data[1]||0,dt=ae.data.bar_units[1]||"";return`${ae.data.name}<br/>${Se}: ${Ce}${dt}`}return`${ae.data.name}`},backgroundColor:"rgba(0, 49, 85, 1)",borderColor:"rgba(0, 151, 251, 1)",borderWidth:1,borderRadius:0,textStyle:{color:"#BCE9FC",fontSize:ie.tooltipFontSize||12},padding:ie.tooltipPadding||8},series:[{name:"singleBar",type:"scatter",coordinateSystem:"geo",data:Nt,symbolSize:function(ae){const Se=ae[2]||0,Ce=Math.max(10,Se/Ze*150);return[ie.barWidth||15,Ce]},symbolOffset:[0,"-50%"],symbol:xt,label:{show:!1},itemStyle:{color:function(ae){return he(ae.data.bar_data[0])}}},{name:"doubleBar1",type:"scatter",coordinateSystem:"geo",data:Et,symbolSize:function(ae){const Se=ae[2]||0,Ce=Math.max(10,Se/Ze*150);return[ie.barWidth||15,Ce]},symbolOffset:[-8,"-50%"],symbol:xt,label:{show:!1},itemStyle:{color:function(ae){return he(ae.data.bar_data[0])}}},{name:"doubleBar2",type:"scatter",coordinateSystem:"geo",data:nt,symbolSize:function(ae){const Se=ae[2]||0,Ce=Math.max(10,Se/Ze*150);return[ie.barWidth||15,Ce]},symbolOffset:[8,"-50%"],symbol:xt,label:{show:!1},itemStyle:{color:function(ae){return he(ae.data.bar_data[1])}}}]};return pe&&(pe.setChartOptions(ce),setTimeout(()=>{pe.$chart&&pe.$chart.on("click",function(ae){if(e&&typeof e=="function"){let Se=ae.data,Ce=Se.value[0],dt=Se.value[1],gt=null;if(Ce&&dt){let Yt=[Ce,dt];n&&n.value&&n.value.value&&(gt=n.value.value.getPixelFromCoordinate(Yt))}e("barClick",Se,gt)}})},0)),M(pe)},k=Y=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}if(!Y){console.error("ECharts layer is not valid");return}const ee=E.value.indexOf(Y);ee>-1&&E.value.splice(ee,1);try{Y.remove&&typeof Y.remove=="function"&&(Y.remove(),Y=null)}catch(ie){console.error("Error removing ECharts layer:",ie)}},R=Y=>{const ee=3.141592653589793,ie=6378245,pe=.006693421622965943,ye=(he,Ie)=>!(he>73.66&&he<135.05&&Ie>3.86&&Ie<53.55),_e=(he,Ie)=>{let Ke=-100+2*he+3*Ie+.2*Ie*Ie+.1*he*Ie+.2*Math.sqrt(Math.abs(he));return Ke+=(20*Math.sin(6*he*ee)+20*Math.sin(2*he*ee))*2/3,Ke+=(20*Math.sin(Ie*ee)+40*Math.sin(Ie/3*ee))*2/3,Ke+=(160*Math.sin(Ie/12*ee)+320*Math.sin(Ie*ee/30))*2/3,Ke},Ze=(he,Ie)=>{let Ke=300+he+2*Ie+.1*he*he+.1*he*Ie+.1*Math.sqrt(Math.abs(he));return Ke+=(20*Math.sin(6*he*ee)+20*Math.sin(2*he*ee))*2/3,Ke+=(20*Math.sin(he*ee)+40*Math.sin(he/3*ee))*2/3,Ke+=(150*Math.sin(he/12*ee)+300*Math.sin(he/30*ee))*2/3,Ke};if(!Array.isArray(Y)||Y.length===0)throw new Error("Invalid coordinates: must be a non-empty array");if(typeof Y[0]=="number"&&typeof Y[1]=="number"){const[he,Ie]=Y;if(ye(he,Ie))return[he,Ie];let Ke=_e(he-105,Ie-35),Nt=Ze(he-105,Ie-35);const Et=Ie/180*ee;let nt=Math.sin(Et);nt=1-pe*nt*nt;const xt=Math.sqrt(nt);Ke=Ke*180/(ie*(1-pe)/(nt*xt)*ee),Nt=Nt*180/(ie/xt*Math.cos(Et)*ee);const ce=Ie+Ke,ae=he+Nt;return[he*2-ae,Ie*2-ce]}else{if(Array.isArray(Y[0]))return Y.map(he=>R(he));throw new Error("Invalid coordinates format: expected [lng, lat] or [[lng, lat], [lng, lat], ...]")}},F=5,z=19,W=()=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}const Y=n.value.value.getView(),ee=Y.getZoom();if(ee==null)return;const ie=Math.min(ee+1,z);Y.animate({zoom:ie,duration:300})},O=()=>{if(!n||!n.value||!n.value.value){console.error("Map reference is not valid");return}const Y=n.value.value.getView(),ee=Y.getZoom();if(ee==null)return;const ie=Math.max(ee-1,F);Y.animate({zoom:ie,duration:300})};let N=V.ref(null),X=null,j=null,Q=null,de=null,Ae=null,le=null,se=V.ref(null),we=[],te=null,oe=null,B=null;const G=V.ref([]);let U=null,$=null,ue=V.ref(null),Te=null;const Xe="__measure_layer__",vt="点击继续绘制多边形",Rt="点击继续绘制线条",nr="点击开始绘制",Pr=function(Y){const ie=n.value.value.getView().getProjection(),pe=Mm(Y,{projection:ie});let ye;return pe>100?ye=Math.round(pe/1e3*100)/100+" km":ye=Math.round(pe*100)/100+" m",ye},yn=function(Y){const ie=n.value.value.getView().getProjection(),pe=Dm(Y,{projection:ie});let ye;return pe>1e4?ye=Math.round(pe/1e6*100)/100+" km<sup>2</sup>":ye=Math.round(pe*100)/100+" m<sup>2</sup>",ye},ki=()=>{const Y=n.value.value;de&&de.parentNode.removeChild(de),de=document.createElement("div"),de.className="ol-tooltip hidden",Ae=new Dh({element:de,offset:[15,0],positioning:"center-left"}),Y.addOverlay(Ae)},ai=()=>{const Y=n.value.value;le&&le.parentNode.removeChild(le),le=document.createElement("div"),le.className="ol-tooltip ol-tooltip-measure",se.value=new Dh({element:le,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),Y.addOverlay(se.value),we.push(se.value)},na=function(Y){if(Y.dragging)return;let ee=nr;if(X){const ie=X.getGeometry();ie instanceof Kn?ee=vt:ie instanceof Bi&&(ee=Rt)}de&&(de.innerHTML=ee,Ae.setPosition(Y.coordinate),de.classList.remove("hidden"))},Zr=function(){de&&de.classList.add("hidden")},mn=Y=>{const ee=n.value.value;j||(j=new Pt),Q||(Q=new kt({layerName:Xe,source:j,zIndex:9999,style:new Ge({fill:new st({color:"rgba(255, 255, 255, 0.2)"}),stroke:new ft({color:"#ffcc33",width:2}),image:new pa({radius:7,fill:new st({color:"#ffcc33"})})})}),ee.addLayer(Q)),N.value=new Ep({source:j,type:Y,style:new Ge({fill:new st({color:"rgba(255, 255, 255, 0.2)"}),stroke:new ft({color:"rgba(0, 0, 0, 0.5)",lineDash:[10,10],width:2}),image:new pa({radius:5,stroke:new ft({color:"rgba(0, 0, 0, 0.7)"}),fill:new st({color:"rgba(255, 255, 255, 0.2)"})})})}),ee.addInteraction(N.value),ai(),ki(),N.value.on("drawstart",function(ie){X=ie.feature;let pe=ie.coordinate;te=X.getGeometry().on("change",function(ye){const _e=ye.target;let Ze;_e instanceof Kn?(Ze=yn(_e),pe=_e.getInteriorPoint().getCoordinates()):_e instanceof Bi&&(Ze=Pr(_e),pe=_e.getLastCoordinate()),le&&(le.innerHTML=Ze,se.value.setPosition(pe))})}),N.value.on("drawend",function(){le&&(le.className="ol-tooltip ol-tooltip-static",se.value.setOffset([0,-7])),X=null,le=null,ai(),te&&(Du(te),te=null)})},_n=()=>{if(document.getElementById("measure-tooltip-styles"))return;const Y=document.createElement("style");Y.id="measure-tooltip-styles",Y.textContent=`
129
129
  .ol-tooltip {
130
130
  position: relative;
131
131
  background: rgba(0, 0, 0, 0.5);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-map-szdp",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "GIS通用组件 - Vue 3 超图版本",
5
5
  "main": "dist/gismap.umd.js",
6
6
  "module": "dist/gismap.es.js",