ry-vue-map 0.2.5 → 0.2.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.
@@ -10,4 +10,4 @@ e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=r?i-1:0,f=
10
10
  */
11
11
  var n=r("1fb5"),i=r("9152"),o=r("2335");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,r,n):"string"===typeof e?d(t,e,r):v(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,r,n){return h(e),e<=0?l(t,e):void 0!==r?"string"===typeof n?l(t,e).fill(r,n):l(t,e).fill(r):l(t,e)}function p(t,e){if(h(e),t=l(t,e<0?0:0|m(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(e,r);t=l(t,n);var i=t.write(e,r);return i!==n&&(t=t.slice(0,i)),t}function g(t,e){var r=e.length<0?0:0|m(e.length);t=l(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function y(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function v(t,e){if(u.isBuffer(e)){var r=0|m(e.length);return t=l(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return Z(t).length;e=(""+e).toLowerCase(),n=!0}}function x(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return F(this,e,r);case"base64":return M(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function O(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:E(t,e,r,n,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):E(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function E(t,e,r,n,i){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(u(t,o+f)!==u(e,f)){h=!1;break}if(h)return o}return-1}function S(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function C(t,e,r,n){return tt(Z(e,t.length-r),t,r,n)}function T(t,e,r,n){return tt(J(e),t,r,n)}function P(t,e,r,n){return T(t,e,r,n)}function j(t,e,r,n){return tt(Q(e),t,r,n)}function R(t,e,r,n){return tt($(e,t.length-r),t,r,n)}function M(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);var n=[],i=e;while(i<r){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return I(n)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return f(null,t,e,r)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):x.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,s=Math.min(o,a),l=this.slice(n,i),c=t.slice(e,r),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return O(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return O(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return S(this,t,e,r);case"utf8":case"utf-8":return C(this,t,e,r);case"ascii":return T(this,t,e,r);case"latin1":case"binary":return P(this,t,e,r);case"base64":return j(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=L));return r}function k(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function F(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function D(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=K(t[o]);return i}function N(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function G(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function B(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function U(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function V(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function X(t,e,r,n,o){return o||V(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function W(t,e,r,n,o){return o||V(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||G(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||G(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||G(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||G(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||G(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||G(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||G(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||G(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||G(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||G(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||G(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||G(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||G(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||G(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;z(this,t,e,r,i,0)}var o=1,a=0;this[e]=255&t;while(++a<r&&(o*=256))this[e+a]=t/o&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;z(this,t,e,r,i,0)}var o=r-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<r&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return X(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return X(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return W(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return W(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:Z(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function Y(t){if(t=q(t).replace(H,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function $(t,e){for(var r,n,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}function Q(t){return n.toByteArray(Y(t))}function tt(t,e,r,n){for(var i=0;i<n;++i){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function et(t){return t!==t}}).call(this,r("c8ba"))},b739:function(t,e,r){"use strict";var n=r("0af5"),i=r("256f"),o=r("7fc9"),a=10,s=.25,l=function(){function t(t,e,r,s,l,u){this.sourceProj_=t,this.targetProj_=e;var c={},h=Object(i["getTransform"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return c[e]||(c[e]=h(t)),c[e]},this.maxSourceExtent_=s,this.errorThresholdSquared_=l*l,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&Object(n["getWidth"])(s)==Object(n["getWidth"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(n["getWidth"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(n["getWidth"])(this.targetProj_.getExtent()):null;var f=Object(n["getTopLeft"])(r),p=Object(n["getTopRight"])(r),d=Object(n["getBottomRight"])(r),g=Object(n["getBottomLeft"])(r),y=this.transformInv_(f),v=this.transformInv_(p),m=this.transformInv_(d),_=this.transformInv_(g),b=a+(u?Math.max(0,Math.ceil(Object(o["f"])(Object(n["getArea"])(r)/(u*u*256*256)))):0);if(this.addQuad_(f,p,d,g,y,v,m,_,b),this.wrapsXInSource_){var x=1/0;this.triangles_.forEach((function(t,e,r){x=Math.min(x,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-x>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-x>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-x>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-x>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var r=Math.min(e[0][0],e[1][0],e[2][0]),n=Math.max(e[0][0],e[1][0],e[2][0]);n-r<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}c={}}return t.prototype.addTriangle_=function(t,e,r,n,i,o){this.triangles_.push({source:[n,i,o],target:[t,e,r]})},t.prototype.addQuad_=function(t,e,r,i,a,l,u,c,h){var f=Object(n["boundingExtent"])([a,l,u,c]),p=this.sourceWorldWidth_?Object(n["getWidth"])(f)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&p>.5&&p<1,y=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=Object(n["boundingExtent"])([t,e,r,i]),m=Object(n["getWidth"])(v)/this.targetWorldWidth_;y=m>s||y}!g&&this.sourceProj_.isGlobal()&&p&&(y=p>s||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(f[0])&&isFinite(f[1])&&isFinite(f[2])&&isFinite(f[3]))||Object(n["intersects"])(f,this.maxSourceExtent_)){var _=0;if(!y&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(u[0])||!isFinite(u[1])||!isFinite(c[0])||!isFinite(c[1])))if(h>0)y=!0;else if(_=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(l[0])&&isFinite(l[1])?0:4)+(isFinite(u[0])&&isFinite(u[1])?0:2)+(isFinite(c[0])&&isFinite(c[1])?0:1),1!=_&&2!=_&&4!=_&&8!=_)return;if(h>0){if(!y){var b=[(t[0]+r[0])/2,(t[1]+r[1])/2],x=this.transformInv_(b),w=void 0;if(g){var O=(Object(o["g"])(a[0],d)+Object(o["g"])(u[0],d))/2;w=O-Object(o["g"])(x[0],d)}else w=(a[0]+u[0])/2-x[0];var E=(a[1]+u[1])/2-x[1],S=w*w+E*E;y=S>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-r[0])<=Math.abs(t[1]-r[1])){var C=[(e[0]+r[0])/2,(e[1]+r[1])/2],T=this.transformInv_(C),P=[(i[0]+t[0])/2,(i[1]+t[1])/2],j=this.transformInv_(P);this.addQuad_(t,e,C,P,a,l,T,j,h-1),this.addQuad_(P,C,r,i,j,T,u,c,h-1)}else{var R=[(t[0]+e[0])/2,(t[1]+e[1])/2],M=this.transformInv_(R),A=[(r[0]+i[0])/2,(r[1]+i[1])/2],L=this.transformInv_(A);this.addQuad_(t,R,A,i,a,M,L,c,h-1),this.addQuad_(R,e,r,A,M,l,u,L,h-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&_)&&this.addTriangle_(t,r,i,a,u,c),0==(14&_)&&this.addTriangle_(t,r,e,a,u,l),_&&(0==(13&_)&&this.addTriangle_(e,i,t,l,c,a),0==(7&_)&&this.addTriangle_(e,i,r,l,c,u))}},t.prototype.calculateSourceExtent=function(){var t=Object(n["createEmpty"])();return this.triangles_.forEach((function(e,r,i){var o=e.source;Object(n["extendCoordinate"])(t,o[0]),Object(n["extendCoordinate"])(t,o[1]),Object(n["extendCoordinate"])(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();e["a"]=l},b75d:function(t,e,r){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},b7df:function(t,e,r){"use strict";r.d(e,"b",(function(){return l}));var n=r("fced"),i=r("1300"),o=r("38f3"),a=r("256f"),s=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var r;if(e){var i=e.dataProjection?Object(a["get"])(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===n["b"].TILE_PIXELS&&(i=Object(a["get"])(i),i.setWorldExtent(e.extent)),r={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(r)},t.prototype.adaptOptions=function(t){return Object(o["a"])({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return Object(i["b"])()},t.prototype.readFeature=function(t,e){return Object(i["b"])()},t.prototype.readFeatures=function(t,e){return Object(i["b"])()},t.prototype.readGeometry=function(t,e){return Object(i["b"])()},t.prototype.readProjection=function(t){return Object(i["b"])()},t.prototype.writeFeature=function(t,e){return Object(i["b"])()},t.prototype.writeFeatures=function(t,e){return Object(i["b"])()},t.prototype.writeGeometry=function(t,e){return Object(i["b"])()},t}();function l(t,e,r){var n,i=r?Object(a["get"])(r.featureProjection):null,o=r?Object(a["get"])(r.dataProjection):null;if(n=i&&o&&!Object(a["equivalent"])(i,o)?(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&r&&void 0!==r.decimals){var s=Math.pow(10,r.decimals),l=function(t){for(var e=0,r=t.length;e<r;++e)t[e]=Math.round(t[e]*s)/s;return t};n===t&&(n=t.clone()),n.applyTransform(l)}return n}e["a"]=s},b9ec:function(t,e,r){"use strict";var n=r("137e"),i=r("7f98"),o=r("2efc"),a=r("dc07"),s=r("acc1"),l=r("0b0e"),u=r("a896"),c=r("38f3"),h=r("0af5"),f=r("256f"),p=r("1300"),d=r("9f5e"),g=r("345d"),y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e){var r=t.call(this,e)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedPixelRatio,r.renderedProjection=null,r.renderedRevision,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=Object(h["createEmpty"])(),r.tmpTileRange_=new a["b"](0,0,0,0),r}return y(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==s["a"].LOADED||r==s["a"].EMPTY||r==s["a"].ERROR&&!n},e.prototype.getTile=function(t,e,r,n){var i=n.pixelRatio,o=n.viewState.projection,a=this.getLayer(),l=a.getSource(),u=l.getTile(t,e,r,i,o);return u.getState()==s["a"].ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):u.setState(s["a"].LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=Object(u["a"])(e.pixelToCoordinateTransform,t.slice()),a=r.getExtent();if(a&&!Object(h["containsCoordinate"])(a,n))return null;for(var l=e.pixelRatio,c=e.viewState.projection,f=e.viewState,p=r.getRenderSource(),d=p.getTileGridForProjection(f.projection),y=p.getTilePixelRatio(e.pixelRatio),v=d.getZForResolution(f.resolution);v>=d.getMinZoom();--v){var m=d.getTileCoordForCoordAndZ(n,v),_=p.getTile(v,m[1],m[2],l,c);if(!(_ instanceof i["a"]||_ instanceof o["a"]))return null;if(_.getState()===s["a"].LOADED){var b=d.getOrigin(v),x=Object(g["d"])(d.getTileSize(v)),w=d.getResolution(v),O=Math.floor(y*((n[0]-b[0])/w-m[1]*x[0])),E=Math.floor(y*((b[1]-n[1])/w-m[2]*x[1])),S=Math.round(y*p.getGutterForProjection(f.projection));return this.getImageData(_.getImage(),O+S,E+S)}}return null},e.prototype.loadedTileCallback=function(e,r,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,r,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var r=t.layerStatesArray[t.layerIndex],n=t.viewState,i=n.projection,o=n.resolution,a=n.center,g=n.rotation,y=t.pixelRatio,v=this.getLayer(),m=v.getSource(),_=m.getRevision(),b=m.getTileGridForProjection(i),x=b.getZForResolution(o,m.zDirection),w=b.getResolution(x),O=t.extent,E=t.viewState.resolution,S=m.getTilePixelRatio(y),C=Math.round(Object(h["getWidth"])(O)/E*y),T=Math.round(Object(h["getHeight"])(O)/E*y),P=r.extent&&Object(f["fromUserExtent"])(r.extent,i);P&&(O=Object(h["getIntersection"])(O,Object(f["fromUserExtent"])(r.extent,i)));var j=w*C/2/S,R=w*T/2/S,M=[a[0]-j,a[1]-R,a[0]+j,a[1]+R],A=b.getTileRangeForExtentAndZ(O,x),L={};L[x]={};var I=this.createLoadedTileFinder(m,i,L),k=this.tmpExtent,F=this.tmpTileRange_;this.newTiles_=!1;for(var D=g?Object(h["getRotatedViewport"])(n.center,E,g,t.size):void 0,N=A.minX;N<=A.maxX;++N)for(var G=A.minY;G<=A.maxY;++G)if(!g||b.tileCoordIntersectsViewport([x,N,G],D)){var z=this.getTile(x,N,G,t);if(this.isDrawableTile(z)){var B=Object(p["c"])(this);if(z.getState()==s["a"].LOADED){L[x][z.tileCoord.toString()]=z;var U=z.inTransition(B);U&&1!==r.opacity&&(z.endTransition(B),U=!1),this.newTiles_||!U&&-1!==this.renderedTiles.indexOf(z)||(this.newTiles_=!0)}if(1===z.getAlpha(B,t.time))continue}var V=b.getTileCoordChildTileRange(z.tileCoord,F,k),X=!1;V&&(X=I(x+1,V)),X||b.forEachTileCoordParentTileRange(z.tileCoord,I,F,k)}var W=w/o*y/S;Object(u["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/y,1/y,g,-C/2,-T/2);var H=Object(u["k"])(this.pixelTransform);this.useContainer(e,H,this.getBackground(t));var Y=this.context,q=Y.canvas;Object(u["d"])(this.inversePixelTransform,this.pixelTransform),Object(u["b"])(this.tempTransform,C/2,T/2,W,W,0,-C/2,-T/2),q.width!=C||q.height!=T?(q.width=C,q.height=T):this.containerReused||Y.clearRect(0,0,C,T),P&&this.clipUnrotated(Y,t,P),m.getInterpolate()||Object(c["a"])(Y,l["a"]),this.preRender(Y,t),this.renderedTiles.length=0;var K,Z,J,$=Object.keys(L).map(Number);$.sort(d["i"]),1!==r.opacity||this.containerReused&&!m.getOpaque(t.viewState.projection)?(K=[],Z=[]):$=$.reverse();for(var Q=$.length-1;Q>=0;--Q){var tt=$[Q],et=m.getTilePixelSize(tt,y,i),rt=b.getResolution(tt),nt=rt/w,it=et[0]*nt*W,ot=et[1]*nt*W,at=b.getTileCoordForCoordAndZ(Object(h["getTopLeft"])(M),tt),st=b.getTileCoordExtent(at),lt=Object(u["a"])(this.tempTransform,[S*(st[0]-M[0])/w,S*(M[3]-st[3])/w]),ut=S*m.getGutterForProjection(i),ct=L[tt];for(var ht in ct){z=ct[ht];var ft=z.tileCoord,pt=at[1]-ft[1],dt=Math.round(lt[0]-(pt-1)*it),gt=at[2]-ft[2],yt=Math.round(lt[1]-(gt-1)*ot),vt=(N=Math.round(lt[0]-pt*it),G=Math.round(lt[1]-gt*ot),dt-N),mt=yt-G,_t=x===tt,bt=(U=_t&&1!==z.getAlpha(Object(p["c"])(this),t.time),!1);if(!U)if(K){J=[N,G,N+vt,G,N+vt,G+mt,N,G+mt];for(var xt=0,wt=K.length;xt<wt;++xt)if(x!==tt&&tt<Z[xt]){var Ot=K[xt];Object(h["intersects"])([N,G,N+vt,G+mt],[Ot[0],Ot[3],Ot[4],Ot[7]])&&(bt||(Y.save(),bt=!0),Y.beginPath(),Y.moveTo(J[0],J[1]),Y.lineTo(J[2],J[3]),Y.lineTo(J[4],J[5]),Y.lineTo(J[6],J[7]),Y.moveTo(Ot[6],Ot[7]),Y.lineTo(Ot[4],Ot[5]),Y.lineTo(Ot[2],Ot[3]),Y.lineTo(Ot[0],Ot[1]),Y.clip())}K.push(J),Z.push(tt)}else Y.clearRect(N,G,vt,mt);this.drawTileImage(z,t,N,G,vt,mt,ut,_t),K&&!U?(bt&&Y.restore(),this.renderedTiles.unshift(z)):this.renderedTiles.push(z),this.updateUsedTiles(t.usedTiles,m,z)}}return this.renderedRevision=_,this.renderedResolution=w,this.extentChanged=!this.renderedExtent_||!Object(h["equals"])(this.renderedExtent_,M),this.renderedExtent_=M,this.renderedPixelRatio=y,this.renderedProjection=i,this.manageTilePyramid(t,m,b,y,i,O,x,v.getPreload()),this.scheduleExpireCache(t,m),this.postRender(Y,t),r.extent&&Y.restore(),Object(c["a"])(Y,l["b"]),H!==q.style.transform&&(q.style.transform=H),this.container},e.prototype.drawTileImage=function(t,e,r,n,i,o,a,s){var l=this.getTileImage(t);if(l){var u=Object(p["c"])(this),c=e.layerStatesArray[e.layerIndex],h=c.opacity*(s?t.getAlpha(u,e.time):1),f=h!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,r,n,i,o),f&&this.context.restore(),h!==c.opacity?e.animate=!0:s&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var r=function(t,e,r){var n=Object(p["c"])(t);n in r.usedTiles&&t.expireCache(r.viewState.projection,r.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(r)}},e.prototype.updateUsedTiles=function(t,e,r){var n=Object(p["c"])(e);n in t||(t[n]={}),t[n][r.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,r,n,i,o,a,l,u){var c=Object(p["c"])(e);c in t.wantedTiles||(t.wantedTiles[c]={});var f,d,g,y,v,m,_=t.wantedTiles[c],b=t.tileQueue,x=r.getMinZoom(),w=t.viewState.rotation,O=w?Object(h["getRotatedViewport"])(t.viewState.center,t.viewState.resolution,w,t.size):void 0,E=0;for(m=x;m<=a;++m)for(d=r.getTileRangeForExtentAndZ(o,m,d),g=r.getResolution(m),y=d.minX;y<=d.maxX;++y)for(v=d.minY;v<=d.maxY;++v)w&&!r.tileCoordIntersectsViewport([m,y,v],O)||(a-m<=l?(++E,f=e.getTile(m,y,v,n,i),f.getState()==s["a"].IDLE&&(_[f.getKey()]=!0,b.isKeyQueued(f.getKey())||b.enqueue([f,c,r.getTileCoordCenter(f.tileCoord),g])),void 0!==u&&u(f)):e.useTile(m,y,v,i));e.updateCacheSize(E,i)},e}(n["b"]);e["a"]=v},bab7:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("13e2");function i(t,e){var r,n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length)return n&&(t=n),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s={PI:3.141592653589793,x_pi:52.35987755982988,delta:function(t,e){var r=6378245,n=.006693421622965943,i=this.transformLat(e-105,t-35),o=(e=this.transformLon(e-105,t-35),t=t/180*this.PI,1-n*(o=Math.sin(t))*o),a=Math.sqrt(o);return{lat:180*i/(r*(1-n)/(o*a)*this.PI),lon:180*e/(r/a*Math.cos(t)*this.PI)}},gcj_encrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};var r=this.delta(e,t);return{lon:t+r.lon,lat:e+r.lat}},gcj_decrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};var r=this.delta(e,t);return{lon:t-r.lon,lat:e-r.lat}},gcj_decrypt_exact:function(t,e){for(var r=e-.01,n=t-.01,i=e+.01,o=t+.01,a=0;;){var s=(r+i)/2,l=(n+o)/2,u=this.gcj_encrypt(s,l),c=u.lat-e;u=u.lon-t;if(Math.abs(c)<1e-9&&Math.abs(u)<1e-9)break;if(0<c?i=s:r=s,0<u?o=l:n=l,1e4<++a)break}return{lat:s,lon:l}},bd_encrypt:function(t,e){var r=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*this.x_pi);e=Math.atan2(e,t)+3e-6*Math.cos(t*this.x_pi);return{lat:r*Math.cos(e)+.0065,lon:r*Math.sin(e)+.006}},bd_decrypt:function(t,e){e-=.0065,t-=.006;var r=Math.sqrt(e*e+t*t)-2e-5*Math.sin(t*this.x_pi);t=Math.atan2(t,e)-3e-6*Math.cos(e*this.x_pi),e=r*Math.cos(t);return{lat:r*Math.sin(t),lon:e}},distance:function(t,e,r,n){return e=Math.cos(t*Math.PI/180)*Math.cos(r*Math.PI/180)*Math.cos((e-n)*Math.PI/180)+Math.sin(t*Math.PI/180)*Math.sin(r*Math.PI/180),(e=1<e?1:e)<-1&&(e=-1),6371e3*Math.acos(e)},outOfChina:function(t,e){return e<72.004||137.8347<e||t<.8293||55.8271<t},transformLat:function(t,e){var r=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return(r+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3)+2*(20*Math.sin(e*this.PI)+40*Math.sin(e/3*this.PI))/3+2*(160*Math.sin(e/12*this.PI)+320*Math.sin(e*this.PI/30))/3},transformLon:function(t,e){return e=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t)),(e+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3)+2*(20*Math.sin(t*this.PI)+40*Math.sin(t/3*this.PI))/3+2*(150*Math.sin(t/12*this.PI)+300*Math.sin(t/30*this.PI))/3},gauss:function(t,e){var r,n,i,o=.0174532925199433,a=1/298.3,s=6*(i=t/6)+3;return s*=o,t*=o,e*=o,o=2*a-a*a,a=6378245/Math.sqrt(1-o*Math.sin(e)*Math.sin(e)),r=Math.tan(e)*Math.tan(e),n=.006738525414683491*Math.cos(e)*Math.cos(e),s=a*((t=(t-s)*Math.cos(e))+(1-r+n)*t*t*t/6+(5-18*r+r*r+14*n-58*r*n)*t*t*t*t*t/120),o=6378245*(.9983245386485315*e-.0025142464643137575*Math.sin(2*e)+2638289149946452e-21*Math.sin(4*e)-35*o*o*o/3072*Math.sin(6*e))+a*Math.tan(e)*(t*t/2+(5-r+9*n+4*n*n)*t*t*t*t/24+(61-58*r+r*r+270*n-330*r*n)*t*t*t*t*t*t/720),{xval:s+=1e6*(1+i)+5e5,yval:o}},wgsToBd:function(t,e){return e=this.gcj_encrypt(parseFloat(e.toString()),parseFloat(t.toString())),this.bd_encrypt(e.lon,e.lat)},bdToWgs:function(t,e){return e=this.bd_decrypt(e,t),this.gcj_decrypt(e.lat,e.lon)},convertGCJ02:function(t){var e=new Array,r=new Array,n=t.geometry.coordinates,o=t.bbox,a=t.properties,s=new Array;if(o)for(var l=0;l<2;l++){var u=this.gcj_encrypt(o[l+1],o[l+l]);e.push(u.lon,u.lat)}var c,h,f=i(n);try{for(f.s();!(c=f.n()).done;){var p,d=i(c.value);try{for(d.s();!(p=d.n()).done;){var g=p.value,y=this.gcj_encrypt(g[0],g[1]),v=y.lat,m=y.lon;r.push([m,v])}}catch(t){d.e(t)}finally{d.f()}}}catch(t){f.e(t)}finally{f.f()}return a&&a.center&&a.center.length&&(h=(n=this.gcj_encrypt(a.center[0],a.center[1])).lat,n=n.lon,s.push(n),s.push(h),a.center.properties=s),t.bbox=e,t.geometry.coordinates=[r],t},convertWGS84:function(t){var e=new Array,r=new Array,n=new Array,o=t.geometry.coordinates,a=t.bbox,s=t.properties;if(a)for(var l=0;l<2;l++){var u=this.gcj_decrypt(a[l+1],a[l+l]);e.push(u.lon,u.lat)}var c,h,f=i(o);try{for(f.s();!(c=f.n()).done;){var p,d=i(c.value);try{for(d.s();!(p=d.n()).done;){var g=p.value,y=this.gcj_decrypt(g[0],g[1]),v=y.lat,m=y.lon;r.push([m,v])}}catch(t){d.e(t)}finally{d.f()}}}catch(t){f.e(t)}finally{f.f()}return s&&s.center&&s.center.length&&(h=(o=this.gcj_decrypt(s.center[0],s.center[1])).lat,o=o.lon,n.push(o),n.push(h),s.center.properties=n),t.bbox=e,t.geometry.coordinates=[r],t},convertCoordinatesGCJ02:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a,s=i(e.value);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=n.GPS.gcj_encrypt(l[0],l[1]),c=u.lat,h=u.lon;r.push([h,c])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}return[r]},convertCoordinatesWGS84:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a,s=i(e.value);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=n.GPS.gcj_decrypt(l[0],l[1]),c=u.lat,h=u.lon;r.push([h,c])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}return[r]},convertBBoxWGS84:function(t){var e=[],r=n.GPS.gcj_decrypt(t[0],t[1]),i=r.lat,o=(r=r.lon,t=n.GPS.gcj_decrypt(t[2],t[3]),t.lon);t=t.lat;return e.push(r),e.push(i),e.push(o),e.push(t),e},convertBBoxGCJ02:function(t){var e=[],r=n.GPS.gcj_encrypt(t[0],t[1]),i=r.lat,o=(r=r.lon,t=n.GPS.gcj_encrypt(t[2],t[3]),t.lon);t=t.lat;return e.push(r),e.push(i),e.push(o),e.push(t),e},convertLineGCJ02:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=n.GPS.gcj_encrypt(a[0],a[1]),l=s.lat,u=s.lon;r.push([u,l])}}catch(t){o.e(t)}finally{o.f()}return r},convertLineWGS84:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=n.GPS.gcj_decrypt(a[0],a[1]),l=s.lat,u=s.lon;r.push([u,l])}}catch(t){o.e(t)}finally{o.f()}return r}};e.default=s},bae2:function(t,e,r){},bb6c:function(t,e,r){"use strict";function n(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=e;s<r;s+=n)o[a++]=t.slice(s,s+n);return o.length=a,o}function i(t,e,r,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var c=r[l];a[s++]=n(t,e,c,i,a[s]),e=c}return a.length=s,a}function o(t,e,r,n,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var c=r[l];a[s++]=i(t,e,c,n,a[s]),e=c[c.length-1]}return a.length=s,a}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o}))},bd02:function(t,e,r){"use strict";(function(t){var n,i=r("da5c"),o=r("cef7"),a=r("01d4"),s=r("ed9b"),l=r("c810"),u=r("2c15"),c=r("ff80"),h=r("480c"),f=r("57cc"),p=r("d0fc"),d=r("38f3"),g=r("0999"),y=r("a896"),v=r("0af5"),m=r("1300"),_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=!0;try{new ImageData(10,10)}catch(k){b=!1}function x(t,e,r){if(b)return new ImageData(t,e,r);n||(n=document.createElement("canvas").getContext("2d"));var i=n.createImageData(e,r);return i.data.set(t),i}function w(t){var e=!0;try{new ImageData(10,10)}catch(k){e=!1}function r(t,r,n){return e?new ImageData(t,r,n):{data:t,width:r,height:n}}return function(e){var n=e["buffers"],i=e["meta"],o=e["imageOps"],a=e["width"],s=e["height"],l=n.length,u=n[0].byteLength;if(o){for(var c=new Array(l),h=0;h<l;++h)c[h]=r(new Uint8ClampedArray(n[h]),a,s);var f=t(c,i).data;return f.buffer}var p=new Uint8ClampedArray(u),d=new Array(l),g=new Array(l);for(h=0;h<l;++h)d[h]=new Uint8ClampedArray(n[h]),g[h]=[0,0,0,0];for(var y=0;y<u;y+=4){for(var v=0;v<l;++v){var m=d[v];g[v][0]=m[y],g[v][1]=m[y+1],g[v][2]=m[y+2],g[v][3]=m[y+3]}var _=t(g,i);p[y]=_[0],p[y+1]=_[1],p[y+2]=_[2],p[y+3]=_[3]}return p.buffer}}function O(e,r){var n=Object.keys(e.lib||{}).map((function(t){return"var "+t+" = "+e.lib[t].toString()+";"})),i=n.concat(["var __minion__ = ("+w.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=new Worker("undefined"===typeof Blob?"data:text/javascript;base64,"+t.from(i.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return o.addEventListener("message",r),o}function E(t,e){var r=w(t.operation),n=!1;return{postMessage:function(t){setTimeout((function(){n||e({data:{buffer:r(t),meta:t["meta"]}})}),0)},terminate:function(){n=!0}}}var S=function(t){function e(e){var r,n=t.call(this)||this;n._imageOps=!!e.imageOps,r=0===e.threads?0:n._imageOps?1:e.threads||1;var i=new Array(r);if(r)for(var o=0;o<r;++o)i[o]=O(e,n._onWorkerMessage.bind(n,o));else i[0]=E(e,n._onWorkerMessage.bind(n,0));return n._workers=i,n._queue=[],n._maxQueueLength=e.queue||1/0,n._running=0,n._dataLookup={},n._job=null,n}return _(e,t),e.prototype.process=function(t,e,r){this._enqueue({inputs:t,meta:e,callback:r}),this._dispatch()},e.prototype._enqueue=function(t){this._queue.push(t);while(this._queue.length>this._maxQueueLength)this._queue.shift().callback(null,null)},e.prototype._dispatch=function(){if(!this._running&&0!==this._queue.length){var t=this._queue.shift();this._job=t;var e=t.inputs[0].width,r=t.inputs[0].height,n=t.inputs.map((function(t){return t.data.buffer})),i=this._workers.length;if(this._running=i,1!==i)for(var o=t.inputs[0].data.length,a=4*Math.ceil(o/4/i),s=0;s<i;++s){for(var l=s*a,u=[],c=0,h=n.length;c<h;++c)u.push(n[c].slice(l,l+a));this._workers[s].postMessage({buffers:u,meta:t.meta,imageOps:this._imageOps,width:e,height:r},u)}else this._workers[0].postMessage({buffers:n,meta:t.meta,imageOps:this._imageOps,width:e,height:r},n)}},e.prototype._onWorkerMessage=function(t,e){this.disposed||(this._dataLookup[t]=e.data,--this._running,0===this._running&&this._resolveJob())},e.prototype._resolveJob=function(){var t,e,r=this._job,n=this._workers.length;if(1===n)t=new Uint8ClampedArray(this._dataLookup[0]["buffer"]),e=this._dataLookup[0]["meta"];else{var i=r.inputs[0].data.length;t=new Uint8ClampedArray(i),e=new Array(n);for(var o=4*Math.ceil(i/4/n),a=0;a<n;++a){var s=this._dataLookup[a]["buffer"],l=a*o;t.set(new Uint8ClampedArray(s),l),e[a]=this._dataLookup[a]["meta"]}}this._job=null,this._dataLookup={},r.callback(null,x(t,r.inputs[0].width,r.inputs[0].height),e),this._dispatch()},e.prototype.disposeInternal=function(){for(var t=0;t<this._workers.length;++t)this._workers[t].terminate();this._workers.length=0},e}(i["a"]),C={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"},T={PIXEL:"pixel",IMAGE:"image"},P=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.extent=r.extent,i.resolution=r.viewState.resolution/r.pixelRatio,i.data=n,i}return _(e,t),e}(o["a"]),j=function(t){function e(e){var r=t.call(this,{projection:null})||this;r.on,r.once,r.un,r.processor_=null,r.operationType_=void 0!==e.operationType?e.operationType:T.PIXEL,r.threads_=void 0!==e.threads?e.threads:1,r.layers_=L(e.sources);for(var n=r.changed.bind(r),i=0,o=r.layers_.length;i<o;++i)r.layers_[i].addEventListener(a["a"].CHANGE,n);return r.tileQueue_=new f["a"]((function(){return 1}),r.changed.bind(r)),r.requestedFrameState_,r.renderedImageCanvas_=null,r.renderedRevision_,r.frameState_={animate:!1,coordinateToPixelTransform:Object(y["c"])(),declutterTree:null,extent:null,index:0,layerIndex:0,layerStatesArray:A(r.layers_),pixelRatio:1,pixelToCoordinateTransform:Object(y["c"])(),postRenderFunctions:[],size:[0,0],tileQueue:r.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Object(m["c"])(r),renderTargets:{}},r.setAttributions((function(t){for(var r=[],n=0,i=e.sources.length;n<i;++n){var o=e.sources[n],a=o instanceof c["a"]?o:o.getSource(),s=a.getAttributions();if("function"===typeof s){var l=s(t);r.push.apply(r,l)}}return 0!==r.length?r:null})),void 0!==e.operation&&r.setOperation(e.operation,e.lib),r}return _(e,t),e.prototype.setOperation=function(t,e){this.processor_&&this.processor_.dispose(),this.processor_=new S({operation:t,imageOps:this.operationType_===T.IMAGE,queue:1,lib:e,threads:this.threads_}),this.changed()},e.prototype.updateFrameState_=function(t,e,r){var n=Object(d["a"])({},this.frameState_);n.viewState=Object(d["a"])({},n.viewState);var i=Object(v["getCenter"])(t);n.extent=t.slice(),n.size[0]=Math.round(Object(v["getWidth"])(t)/e),n.size[1]=Math.round(Object(v["getHeight"])(t)/e),n.time=Date.now();var o=n.viewState;return o.center=i,o.projection=r,o.resolution=e,n},e.prototype.allSourcesReady_=function(){for(var t,e=!0,r=0,n=this.layers_.length;r<n;++r)if(t=this.layers_[r].getSource(),"ready"!==t.getState()){e=!1;break}return e},e.prototype.getImage=function(t,e,r,n){if(!this.allSourcesReady_())return null;var i=this.updateFrameState_(t,e,n);if(this.requestedFrameState_=i,this.renderedImageCanvas_){var o=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();e===o&&Object(v["equals"])(t,a)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),i.tileQueue.loadMoreTiles(16,16),i.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_},e.prototype.processSources_=function(){for(var t=this.requestedFrameState_,e=this.layers_.length,r=new Array(e),n=0;n<e;++n){t.layerIndex=n;var i=M(this.layers_[n],t);if(!i)return;r[n]=i}var o={};this.dispatchEvent(new P(C.BEFOREOPERATIONS,t,o)),this.processor_.process(r,o,this.onWorkerComplete_.bind(this,t))},e.prototype.onWorkerComplete_=function(t,e,r,n){if(!e&&r){var i=t.extent,o=t.viewState.resolution;if(o===this.requestedFrameState_.viewState.resolution&&Object(v["equals"])(i,this.requestedFrameState_.extent)){var a;if(this.renderedImageCanvas_)a=this.renderedImageCanvas_.getImage().getContext("2d");else{var l=Math.round(Object(v["getWidth"])(i)/o),u=Math.round(Object(v["getHeight"])(i)/o);a=Object(g["a"])(l,u),this.renderedImageCanvas_=new s["a"](i,o,1,a.canvas)}a.putImageData(r,0,0),this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new P(C.AFTEROPERATIONS,t,n)),t.animate&&requestAnimationFrame(this.changed.bind(this))}}},e.prototype.disposeInternal=function(){this.processor_&&this.processor_.dispose(),t.prototype.disposeInternal.call(this)},e}(u["a"]);j.prototype.dispose;var R=null;function M(t,e){var r=t.getRenderer();if(!r)throw new Error("Unsupported layer type: "+t);if(!r.prepareFrame(e))return null;var n=e.size[0],i=e.size[1];if(0===n||0===i)return null;var o,a=r.renderFrame(e,null);if(a instanceof HTMLCanvasElement)o=a;else{if(a&&(o=a.firstElementChild),!(o instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+o);if(o.width===n&&o.height===i){var s=o.getContext("2d");return s.getImageData(0,0,n,i)}}if(R){var l=R.canvas;l.width!==n||l.height!==i?R=Object(g["a"])(n,i):R.clearRect(0,0,n,i)}else R=Object(g["a"])(n,i);return R.drawImage(o,0,0,n,i),R.getImageData(0,0,n,i)}function A(t){return t.map((function(t){return t.getLayerState()}))}function L(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=I(t[n]);return r}function I(t){var e;return t instanceof c["a"]?t instanceof p["b"]?e=new h["default"]({source:t}):t instanceof u["a"]&&(e=new l["default"]({source:t})):e=t,e}e["a"]=j}).call(this,r("b639").Buffer)},be99:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("a34a"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("5eee")),l=n(r("480c")),u=n(r("2ef1")),c=n(r("a2c7")),h=r("b12f"),f=r("834d"),p=n(r("6c77")),d=n(r("83a6")),g=n(r("a2e1")),y=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},v=function(){function t(e){(0,o.default)(this,t),this.mapOptians=e,this._ele=null,this._map=null,this._lastLayres=[],this._view=null}return(0,a.default)(t,[{key:"onLoad",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return y(this,void 0,void 0,i.default.mark((function r(){var n,o=this;return i.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this._ele=t,n=this.initLayers(e),r.next=4,new Promise((function(e,r){o._lastLayres=n;var i=new s.default(Object.assign({target:t},Object.assign(Object.assign({},o.mapOptians),{layers:n})));(o._map=i)?e({map:i,layers:n}):r(null)}));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r,this)})))}},{key:"setView",value:function(t,e){t=new c.default({center:t,zoom:18,minZoom:1,maxZoom:18,projection:"EPSG:4326",extent:[e[0]-.4,e[1]-.4,e[2]+.4,e[3]+.4]}),this._view=t,this._map.setView(t)}},{key:"getView",value:function(){return this._view}},{key:"getLayers",get:function(){return this._lastLayres}},{key:"initLayers",value:function(){var t=this,e=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(r){r=t.initLayer(r),e.push(r)})),e}},{key:"initLayer",value:function(t){return new l.default({source:new u.default({url:t}),zIndex:-10})}},{key:"removeLayers",value:function(){var t=this;this._lastLayres.forEach((function(e){t._map.removeLayer(e)}))}},{key:"createGeojson",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new h.PolygonModel;return(0,h.createPolygonBoundary)(t,e)}},{key:"initMapMaskEvent",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:4,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"#00adfd",i=this.getGeoJSON().readFeatures(e)[0].getGeometry(),o=this.getStyle();t.forEach((function(t){t.on("prerender",(function(t){var e=t.context;t=(0,f.getVectorContext)(t);e.save(),t.setStyle(o),t.drawGeometry(i),e.lineWidth=r,e.strokeStyle=n,e.stroke(),e.clip()})),t.on("postrender",(function(t){t.context.restore()}))}))}},{key:"getStyle",value:function(){var t=new d.default({color:0<arguments.length&&void 0!==arguments[0]?arguments[0]:[0,0,0,0]});return new p.default({fill:t})}},{key:"olMap",get:function(){return this._map}},{key:"ele",get:function(){return this._ele}},{key:"getGeoJSON",value:function(){return new g.default({featureProjection:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"EPSG:4326"})}}]),t}();e.default=v},beb2:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("448a"))),o=n(r("970b")),a=n(r("5bc3")),s=r("15e0"),l=n(r("3e6b")),u=n(r("55bd")),c=r("0af5"),h=function(){function t(e,r){var n=this;(0,o.default)(this,t),this.callback=e,this.maxFeatureCount=0,this.vector=null,this.vectorSource=null,this.currentResolution=0,this.textFill=null,this.aggregationCallback=null,this.removeAggregationCallback=null,this.clearfeatureMap=new Map,this.featureMap=new Map,this.styleFunction=null,this.src=null,this.color=null,this.offsetX=0,this.offsetY=0,this.fontSize=null,this._fontFamily="Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif",this.text=r.text,this.textFill=null,this.aggregationCallback=r.aggregationCallback,this.removeAggregationCallback=r.removeAggregationCallback,this.src=r.src||null,this.fontSize="".concat(r.fontSize,"px")||!1,this.offsetX=r.offsetX||0,this.offsetY=r.offsetY||0,this.color=r.color||"#fff",this._init(),this.styleFunction=function(t,e){var r=t.get("features").length;return e!=n.currentResolution&&(n.calculateClusterInfo(e,r),n.currentResolution=e),1<r?new s.Style({text:new s.Text({text:"".concat(r.toString()).concat(n.text),fill:n.textFill,offsetX:n.offsetX,offsetY:n.offsetY,font:"".concat(n.fontSize," ").concat(n._fontFamily)}),image:new s.Icon({src:n.src,crossOrigin:"anonymous"})}):(t.get("features")[0],null)}}return(0,a.default)(t,[{key:"_init",value:function(){this.textFill=new s.Fill({color:this.color})}},{key:"calculateClusterInfo",value:function(t,e){this.maxFeatureCount=0;for(var r=this.vector.getSource().getFeatures(),n=r.length-1;0<=n;--n){for(var o=r[n].get("features"),a=(0,c.createEmpty)(),s=void 0,l=[],u=(s=0,o.length);s<u;++s)this.callback&&(l.push(o[s]),this.callback(o[s],t,1==o.length)),(0,c.extend)(a,o[s].getGeometry().getExtent());this.aggregationCallback&&(1<o.length?this.aggregationCallback((0,i.default)(l)):this.removeAggregationCallback&&this.removeAggregationCallback(l[0])),l=[],this.maxFeatureCount=Math.max(this.maxFeatureCount,u)}}},{key:"getVectorLayer",value:function(t){return this.vector=new l.default({zIndex:999,source:new u.default({distance:1<arguments.length&&void 0!==arguments[1]?arguments[1]:30,source:t}),style:this.styleFunction}),this.vector}}]),t}();e.default=h},beb7:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FeaturePolygonModel=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("4cdf")),s=n(r("5831")),l=n(r("f403")),u=n(r("bab7")),c=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;(0,i.default)(this,t),this.gpsType=e,this._features=[],this._coordinates=[],this._coordinatesGCJ02C=[]}return(0,o.default)(t,[{key:"createPolygon",value:function(t,e){var r=t[0],n=(t=t[1],this._coordinates.push([r,t]),u.default.gcj_encrypt(r,t)),i=n.lon;n=n.lat,this._coordinatesGCJ02C.push([i,n]),i=this.gpsType?[i,n]:[r,t],n=new a.default(new l.default(i));e&&n.setId(e),this._features.push(n)}},{key:"getVectorSource",value:function(t){var e=this;return t.forEach((function(t){e.createPolygon(t.coordinates,t.id)})),new s.default({features:this._features})}},{key:"selectGPSAll",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;this.gpsType=e,this._features.forEach((function(r,n){n=(e?t._coordinatesGCJ02C:t._coordinates)[n],r.setGeometry(new l.default(n))}))}}]),t}(),h=(e.default=c,(0,o.default)((function t(e,r){(0,i.default)(this,t),this.coordinates=e,this.id=r})));e.FeaturePolygonModel=h},bef8:function(t,e,r){"use strict";function n(t,e,r,n,i,o){for(var a=o||[],s=0,l=e;l<r;l+=n){var u=t[l],c=t[l+1];a[s++]=i[0]*u+i[2]*c+i[4],a[s++]=i[1]*u+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(t,e,r,n,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),c=o[0],h=o[1],f=0,p=e;p<r;p+=n){var d=t[p]-c,g=t[p+1]-h;s[f++]=c+d*l-g*u,s[f++]=h+d*u+g*l;for(var y=p+2;y<p+n;++y)s[f++]=t[y]}return a&&s.length!=f&&(s.length=f),s}function o(t,e,r,n,i,o,a,s){for(var l=s||[],u=a[0],c=a[1],h=0,f=e;f<r;f+=n){var p=t[f]-u,d=t[f+1]-c;l[h++]=u+i*p,l[h++]=c+o*d;for(var g=f+2;g<f+n;++g)l[h++]=t[g]}return s&&l.length!=h&&(l.length=h),l}function a(t,e,r,n,i,o,a){for(var s=a||[],l=0,u=e;u<r;u+=n){s[l++]=t[u]+i,s[l++]=t[u+1]+o;for(var c=u+2;c<u+n;++c)s[l++]=t[c]}return a&&s.length!=l&&(s.length=l),s}r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return a}))},bf62:function(t,e,r){"use strict";e["a"]={ACTIVE:"active"}},c12a:function(t,e,r){"use strict";var n,i,o=r("4ea4"),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MapTypeEnum=e.MapLayersEnum=void 0,o(r("a34a"))),s=o(r("970b")),l=o(r("5bc3")),u=o(r("5eee")),c=o(r("5c9f")),h=r("3a39"),f=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},p=(function(t){t[t.TMap=0]="TMap",t[t.GDMap=1]="GDMap",t[t.BINGMap=2]="BINGMap",t[t.BDMap=3]="BDMap",t[t.ARGMap=4]="ARGMap"}((e.MapTypeEnum=n)||(e.MapTypeEnum=n={})),function(t){t[t.VectorLayer=0]="VectorLayer",t[t.SatelliteLayer=1]="SatelliteLayer",t[t.LlendLayer=2]="LlendLayer"}((e.MapLayersEnum=i)||(e.MapLayersEnum=i={})),function(){function t(e){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];(0,s.default)(this,t),this.mapOptians=e,this.isApp=r,this._ele=null,this._map=null,this._layresMap=new Map,this._lastLayres=[],this._layeTypeLength=0,this._initMapLayers()}return(0,l.default)(t,[{key:"_initMapLayers",value:function(){this._layresMap.clear(),this._layresMap.set(n.TMap,this.isApp?c.default.TMapLayerArr_uniApp:c.default.TMapLayerArr),this._layresMap.set(n.GDMap,c.default.GMapLayerArr),this._layresMap.set(n.BINGMap,c.default.BingLayers),this._layresMap.set(n.BDMap,c.default.BDMapLayerArr)}},{key:"getMapTypeLength",get:function(){return this._layresMap.size}},{key:"getLayeTypeLength",get:function(){return this._layeTypeLength}},{key:"onLoad",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2;return f(this,void 0,void 0,a.default.mark((function n(){var i=this;return a.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this._ele=t,n.next=3,new Promise((function(n,o){var a=i.getMapLayres(e,r),s=(i._lastLayres=a,new u.default(Object.assign({target:t},Object.assign(Object.assign({},i.mapOptians),{layers:a}))));(i._map=s)?n({map:s,layers:a}):o(null)}));case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n,this)})))}},{key:"onLoad_uniApp",value:function(t){return f(this,void 0,void 0,a.default.mark((function e(){var r=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,e.next=3,new Promise((function(e,n){var i=new u.default(Object.assign({target:t,interactions:(0,h.defaults)({pinchRotate:!1})},r.mapOptians));i?e({map:i,layres:r.mapOptians.layers}):n(null)}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getMapLayres",value:function(t,e){return this._layresMap.has(t)?(t=this._layresMap.get(t),this._layeTypeLength=t.length,t[e]):[]}},{key:"selectLayers",value:function(t,e){return this.removeLayers(),this._layresMap.has(t)?(t=this.getMapLayres(t,e),this._lastLayres=t,this.setLayers(t),t):[]}},{key:"getLayers",get:function(){return this._lastLayres}},{key:"setLayers",value:function(t){var e=this;t.forEach((function(t){e.olMap.addLayer(t)}))}},{key:"removeLayers",value:function(){var t=this;this._lastLayres.forEach((function(e){t._map.removeLayer(e)}))}},{key:"olMap",get:function(){return this._map}},{key:"layresMap",get:function(){return this._layresMap}},{key:"ele",get:function(){return this._ele}},{key:"setIsApp",set:function(t){this.isApp=t}}]),t}());e.default=p},c135:function(t,e){function r(t){if(Array.isArray(t))return t}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},c240:function(t,e){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},c560:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"e",(function(){return c}));var n=r("0af5"),i=r("fd4d"),o=r("25f1");function a(t,e,r,o,a){var s=Object(n["extendFlatCoordinates"])(Object(n["createEmpty"])(),t,e,r,o);return!!Object(n["intersects"])(a,s)&&(!!Object(n["containsExtent"])(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(i["a"])(t,e,r,o,(function(t,e){return Object(n["intersectsSegment"])(a,t,e)})))))}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){if(a(t,e,r[o],n,i))return!0;e=r[o]}return!1}function l(t,e,r,n,i){return!!a(t,e,r,n,i)||(!!Object(o["b"])(t,e,r,n,i[0],i[1])||(!!Object(o["b"])(t,e,r,n,i[0],i[3])||(!!Object(o["b"])(t,e,r,n,i[2],i[1])||!!Object(o["b"])(t,e,r,n,i[2],i[3]))))}function u(t,e,r,n,i){if(!l(t,e,r[0],n,i))return!1;if(1===r.length)return!0;for(var s=1,u=r.length;s<u;++s)if(Object(o["a"])(t,r[s-1],r[s],n,i)&&!a(t,r[s-1],r[s],n,i))return!1;return!0}function c(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];if(u(t,e,s,n,i))return!0;e=s[s.length-1]}return!1}},c810:function(t,e,r){"use strict";r.r(e);var n=r("1af9"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e){var r=e||{};return t.call(this,r)||this}return i(e,t),e}(n["a"]),a=o,s=r("39cf"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e.prototype.createRenderer=function(){return new s["a"](this)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(a);e["default"]=u},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},c946:function(t,e,r){"use strict";var n=r("f78c"),i=r("e98d"),o=r("a896"),a=r("ddea"),s=r("9f5e"),l=r("0af5"),u=r("bef8"),c=r("9abc"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r,n,i,a,s,l){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=r,u.extent_=n,u.transform_=i,u.viewRotation_=a,u.squaredTolerance_=s,u.userTransform_=l,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=[0,0],u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=[0,0],u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=Object(o["c"])(),u}return h(e,t),e.prototype.drawImages_=function(t,e,r,n){if(this.image_){var i=Object(u["c"])(t,e,r,n,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.tmpLocalTransform_,l=a.globalAlpha;1!=this.imageOpacity_&&(a.globalAlpha=l*this.imageOpacity_);var c=this.imageRotation_;this.imageRotateWithView_&&(c+=this.viewRotation_);for(var h=0,f=i.length;h<f;h+=2){var p=i[h]-this.imageAnchorX_,d=i[h+1]-this.imageAnchorY_;if(0!==c||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var g=p+this.imageAnchorX_,y=d+this.imageAnchorY_;Object(o["b"])(s,g,y,1,1,c,-g,-y),a.setTransform.apply(a,s),a.translate(g,y),a.scale(this.imageScale_[0],this.imageScale_[1]),a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),a.setTransform(1,0,0,1,0,0)}else a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,p,d,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(a.globalAlpha=l)}},e.prototype.drawText_=function(t,e,r,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Object(u["c"])(t,e,r,n,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<r;e+=n){var l=i[e]+this.textOffsetX_,c=i[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var h=Object(o["b"])(this.tmpLocalTransform_,l,c,1,1,s,-l,-c);a.setTransform.apply(a,h),a.translate(l,c),a.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&a.strokeText(this.text_,0,0),this.textFillState_&&a.fillText(this.text_,0,0),a.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&a.strokeText(this.text_,l,c),this.textFillState_&&a.fillText(this.text_,l,c)}}},e.prototype.moveToLineTo_=function(t,e,r,n,i){var o=this.context_,a=Object(u["c"])(t,e,r,n,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),r},e.prototype.drawRings_=function(t,e,r,n){for(var i=0,o=r.length;i<o;++i)e=this.moveToLineTo_(t,e,r[i],n,!0);return e},e.prototype.drawCircle=function(t){if(Object(l["intersects"])(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(c["c"])(t,this.transform_,this.pixelCoordinates_),r=e[2]-e[0],n=e[3]-e[1],i=Math.sqrt(r*r+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){var e=t.getType();switch(e){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t);break;default:}},e.prototype.drawFeature=function(t,e){var r=e.getGeometryFunction()(t);r&&Object(l["intersects"])(this.extent_,r.getExtent())&&(this.setStyle(e),this.drawGeometry(r))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),r=0,n=e.length;r<n;++r)this.drawGeometry(e[r])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(l["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(r,0,r.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(l["intersects"])(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var r=this.context_,n=t.getFlatCoordinates(),i=0,o=t.getEnds(),a=t.getStride();r.beginPath();for(var s=0,u=o.length;s<u;++s)i=this.moveToLineTo_(n,i,o[s],a,!1);r.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(l["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var r=t.getFlatInteriorPoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(l["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getOrientedFlatCoordinates(),n=0,i=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=i.length;a<s;++a){var u=i[a];n=this.drawRings_(r,n,u,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,r=this.contextFillState_;r?r.fillStyle!=t.fillStyle&&(r.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,r=this.contextStrokeState_;r?(r.lineCap!=t.lineCap&&(r.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(s["b"])(r.lineDash,t.lineDash)||e.setLineDash(r.lineDash=t.lineDash),r.lineDashOffset!=t.lineDashOffset&&(r.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),r.lineJoin!=t.lineJoin&&(r.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),r.lineWidth!=t.lineWidth&&(r.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),r.miterLimit!=t.miterLimit&&(r.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),r.strokeStyle!=t.strokeStyle&&(r.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,r=this.contextTextState_,n=t.textAlign?t.textAlign:a["l"];r?(r.font!=t.font&&(r.font=t.font,e.font=t.font),r.textAlign!=n&&(r.textAlign=n,e.textAlign=n),r.textBaseline!=t.textBaseline&&(r.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var r=this;if(t){var n=t.getColor();this.fillState_={fillStyle:Object(i["a"])(n||a["b"])}}else this.fillState_=null;if(e){var o=e.getColor(),s=e.getLineCap(),l=e.getLineDash(),u=e.getLineDashOffset(),c=e.getLineJoin(),h=e.getWidth(),f=e.getMiterLimit(),p=l||a["e"];this.strokeState_={lineCap:void 0!==s?s:a["d"],lineDash:1===this.pixelRatio_?p:p.map((function(t){return t*r.pixelRatio_})),lineDashOffset:(u||a["f"])*this.pixelRatio_,lineJoin:void 0!==c?c:a["g"],lineWidth:(void 0!==h?h:a["h"])*this.pixelRatio_,miterLimit:void 0!==f?f:a["i"],strokeStyle:Object(i["a"])(o||a["k"])}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var r=t.getAnchor(),n=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*this.pixelRatio_,this.imageAnchorY_=r[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var r=e.getColor();this.textFillState_={fillStyle:Object(i["a"])(r||a["b"])}}else this.textFillState_=null;var n=t.getStroke();if(n){var o=n.getColor(),s=n.getLineCap(),l=n.getLineDash(),u=n.getLineDashOffset(),c=n.getLineJoin(),h=n.getWidth(),f=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==s?s:a["d"],lineDash:l||a["e"],lineDashOffset:u||a["f"],lineJoin:void 0!==c?c:a["g"],lineWidth:void 0!==h?h:a["h"],miterLimit:void 0!==f?f:a["i"],strokeStyle:Object(i["a"])(o||a["k"])}}else this.textStrokeState_=null;var p=t.getFont(),d=t.getOffsetX(),g=t.getOffsetY(),y=t.getRotateWithView(),v=t.getRotation(),m=t.getScaleArray(),_=t.getText(),b=t.getTextAlign(),x=t.getTextBaseline();this.textState_={font:void 0!==p?p:a["c"],textAlign:void 0!==b?b:a["l"],textBaseline:void 0!==x?x:a["m"]},this.text_=void 0!==_?Array.isArray(_)?_.reduce((function(t,e,r){return t+(r%2?" ":e)}),""):_:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==g?this.pixelRatio_*g:0,this.textRotateWithView_=void 0!==y&&y,this.textRotation_=void 0!==v?v:0,this.textScale_=[this.pixelRatio_*m[0],this.pixelRatio_*m[1]]}else this.text_=""},e}(n["a"]);e["a"]=f},ca42:function(t,e,r){"use strict";function n(t){return Math.pow(t,3)}function i(t){return 1-n(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}))},cb76:function(t,e,r){"use strict";r.r(e);var n=r("4105"),i=r("57cb"),o=r("06f8"),a=r("ca42"),s=r("a568"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){var r=t.call(this,{stopDown:i["a"]})||this,n=e||{};r.kinetic_=n.kinetic,r.lastCentroid=null,r.lastPointersCount_,r.panning_=!1;var a=n.condition?n.condition:Object(o["all"])(o["noModifierKeys"],o["primaryAction"]);return r.condition_=n.onFocusOnly?Object(o["all"])(o["focusWithTabindex"],a):a,r.noKinetic_=!1,r}return l(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,r=Object(n["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){var i=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],o=t.map,a=o.getView();Object(s["i"])(i,a.getResolution()),Object(s["h"])(i,a.getRotation()),a.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,r=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=r.getCenterInternal(),s=e.getPixelFromCoordinateInternal(o),l=e.getCoordinateFromPixelInternal([s[0]-n*Math.cos(i),s[1]-n*Math.sin(i)]);r.animateInternal({center:r.getConstrainedCenter(l),duration:500,easing:a["b"]})}return this.panning_&&(this.panning_=!1,r.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,r=e.getView();return this.lastCentroid=null,r.getAnimating()&&r.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(n["b"]);e["default"]=u},cd7e:function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"a",(function(){return l})),r.d(e,"g",(function(){return h}));var n="ol-hidden",i="ol-selectable",o="ol-unselectable",a="ol-unsupported",s="ol-control",l="ol-collapsed",u=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],h=function(t){var e=t.match(u);if(!e)return null;for(var r={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=c.length;n<i;++n){var o=e[n+1];void 0!==o&&(r[c[n]]=o)}return r.families=r.family.split(/,\s?/),r}},ce2c:function(t,e,r){"use strict";r.r(e);var n=r("35d8"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e){var r=e||{};return t.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,scale:void 0!==r.scale?r.scale:1,rotation:void 0!==r.rotation?r.rotation:0,rotateWithView:void 0!==r.rotateWithView&&r.rotateWithView,displacement:void 0!==r.displacement?r.displacement:[0,0],declutterMode:r.declutterMode})||this}return i(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(n["a"]);e["default"]=o},cef7:function(t,e,r){"use strict";r.d(e,"b",(function(){return i}));var n=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();function i(t){t.stopPropagation()}e["a"]=n},d079:function(t,e,r){"use strict";e["a"]={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},d0fc:function(t,e,r){"use strict";r.d(e,"a",(function(){return g}));var n=r("cef7"),i=r("ff80"),o=r("8d87"),a=r("acc1"),s=r("1300"),l=r("92fa"),u=r("256f"),c=r("2c30"),h=r("089b"),f=r("345d"),p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e){var r=t.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_=void 0!==e.opaque&&e.opaque,r.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,r.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var n=[256,256];return r.tileGrid&&Object(f["d"])(r.tileGrid.getTileSize(r.tileGrid.getMinZoom()),n),r.tileCache=new o["a"](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 p(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var r=this.getTileCacheForProjection(t);r&&r.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,r,n){var i=this.getTileCacheForProjection(t);if(!i)return!1;for(var o,s,l,u=!0,h=r.minX;h<=r.maxX;++h)for(var f=r.minY;f<=r.maxY;++f)s=Object(c["e"])(e,h,f),l=!1,i.containsKey(s)&&(o=i.get(s),l=o.getState()===a["a"].LOADED,l&&(l=!1!==n(o))),l||(u=!1);return u},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,r,n,i){return Object(s["b"])()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Object(h["c"])(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return Object(l["a"])(null===e||Object(u["equivalent"])(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=this.getTilePixelRatio(e),o=Object(f["d"])(n.getTileSize(t),this.tmpSize);return 1==i?o:Object(f["c"])(o,i,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var r=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(r);return this.getWrapX()&&r.isGlobal()&&(t=Object(h["d"])(n,t,r)),Object(c["g"])(t,n)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var r=this.getTileCacheForProjection(e);t>r.highWaterMark&&(r.highWaterMark=t)},e.prototype.useTile=function(t,e,r,n){},e}(i["a"]),g=function(t){function e(e,r){var n=t.call(this,e)||this;return n.tile=r,n}return p(e,t),e}(n["a"]);e["b"]=d},d202:function(t,e,r){"use strict";e["a"]={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},d30b:function(t,e,r){"use strict";r.r(e),r.d(e,"earthRadius",(function(){return n})),r.d(e,"factors",(function(){return i})),r.d(e,"unitsFactors",(function(){return o})),r.d(e,"areaFactors",(function(){return a})),r.d(e,"feature",(function(){return s})),r.d(e,"geometry",(function(){return l})),r.d(e,"point",(function(){return u})),r.d(e,"points",(function(){return c})),r.d(e,"polygon",(function(){return h})),r.d(e,"polygons",(function(){return f})),r.d(e,"lineString",(function(){return p})),r.d(e,"lineStrings",(function(){return d})),r.d(e,"featureCollection",(function(){return g})),r.d(e,"multiLineString",(function(){return y})),r.d(e,"multiPoint",(function(){return v})),r.d(e,"multiPolygon",(function(){return m})),r.d(e,"geometryCollection",(function(){return _})),r.d(e,"round",(function(){return b})),r.d(e,"radiansToLength",(function(){return x})),r.d(e,"lengthToRadians",(function(){return w})),r.d(e,"lengthToDegrees",(function(){return O})),r.d(e,"bearingToAzimuth",(function(){return E})),r.d(e,"radiansToDegrees",(function(){return S})),r.d(e,"degreesToRadians",(function(){return C})),r.d(e,"convertLength",(function(){return T})),r.d(e,"convertArea",(function(){return P})),r.d(e,"isNumber",(function(){return j})),r.d(e,"isObject",(function(){return R})),r.d(e,"validateBBox",(function(){return M})),r.d(e,"validateId",(function(){return A}));var n=6371008.8,i={centimeters:100*n,centimetres:100*n,degrees:n/111325,feet:3.28084*n,inches:39.37*n,kilometers:n/1e3,kilometres:n/1e3,meters:n,metres:n,miles:n/1609.344,millimeters:1e3*n,millimetres:1e3*n,nauticalmiles:n/1852,radians:1,yards:1.0936*n},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/n,yards:1.0936133},a={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(t,e,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function l(t,e,r){switch(void 0===r&&(r={}),t){case"Point":return u(e).geometry;case"LineString":return p(e).geometry;case"Polygon":return h(e).geometry;case"MultiPoint":return v(e).geometry;case"MultiLineString":return y(e).geometry;case"MultiPolygon":return m(e).geometry;default:throw new Error(t+" is invalid")}}function u(t,e,r){if(void 0===r&&(r={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!j(t[0])||!j(t[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:t};return s(n,e,r)}function c(t,e,r){return void 0===r&&(r={}),g(t.map((function(t){return u(t,e)})),r)}function h(t,e,r){void 0===r&&(r={});for(var n=0,i=t;n<i.length;n++){var o=i[n];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return s(l,e,r)}function f(t,e,r){return void 0===r&&(r={}),g(t.map((function(t){return h(t,e)})),r)}function p(t,e,r){if(void 0===r&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:t};return s(n,e,r)}function d(t,e,r){return void 0===r&&(r={}),g(t.map((function(t){return p(t,e)})),r)}function g(t,e){void 0===e&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function y(t,e,r){void 0===r&&(r={});var n={type:"MultiLineString",coordinates:t};return s(n,e,r)}function v(t,e,r){void 0===r&&(r={});var n={type:"MultiPoint",coordinates:t};return s(n,e,r)}function m(t,e,r){void 0===r&&(r={});var n={type:"MultiPolygon",coordinates:t};return s(n,e,r)}function _(t,e,r){void 0===r&&(r={});var n={type:"GeometryCollection",geometries:t};return s(n,e,r)}function b(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r}function x(t,e){void 0===e&&(e="kilometers");var r=i[e];if(!r)throw new Error(e+" units is invalid");return t*r}function w(t,e){void 0===e&&(e="kilometers");var r=i[e];if(!r)throw new Error(e+" units is invalid");return t/r}function O(t,e){return S(w(t,e))}function E(t){var e=t%360;return e<0&&(e+=360),e}function S(t){var e=t%(2*Math.PI);return 180*e/Math.PI}function C(t){var e=t%360;return e*Math.PI/180}function T(t,e,r){if(void 0===e&&(e="kilometers"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return x(w(t,e),r)}function P(t,e,r){if(void 0===e&&(e="meters"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var n=a[e];if(!n)throw new Error("invalid original units");var i=a[r];if(!i)throw new Error("invalid final units");return t/n*i}function j(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function R(t){return!!t&&t.constructor===Object}function M(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!j(t))throw new Error("bbox must only contain numbers")}))}function A(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},d352:function(t,e,r){"use strict";var n=r("01d4"),i=r("8f37"),o=r("0af5"),a=r("1e8d"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;return r.geometries_=e||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return s(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(a["c"]),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(Object(a["a"])(this.geometries_[t],n["a"].CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<Object(o["closestSquaredDistanceXY"])(this.getExtent(),t,e))return n;for(var i=this.geometries_,a=0,s=i.length;a<s;++a)n=i[a].closestPointXY(t,e,r,n);return n},e.prototype.containsXY=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)if(r[n].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){Object(o["createOrUpdateEmpty"])(t);for(var e=this.geometries_,r=0,n=e.length;r<n;++r)Object(o["extend"])(t,e[r].getExtent());return t},e.prototype.getGeometries=function(){return u(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].getType()===this.getType()?t=t.concat(e[r].getGeometriesArrayRecursive()):t.push(e[r]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var r=[],n=this.geometries_,i=!1,o=0,a=n.length;o<a;++o){var s=n[o],l=s.getSimplifiedGeometry(t);r.push(l),l!==s&&(i=!0)}if(i){var u=new e(null);return u.setGeometriesArray(r),u}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)if(e[r].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,r){var n=r;n||(n=Object(o["getCenter"])(this.getExtent()));for(var i=this.geometries_,a=0,s=i.length;a<s;++a)i[a].scale(t,e,n);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(u(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(i["a"]);function u(t){for(var e=[],r=0,n=t.length;r<n;++r)e.push(t[r].clone());return e}e["a"]=l},d8bd:function(t,e,r){"use strict";r("44d5")},da2f:function(t,e,r){"use strict";var n=r("dbba"),i=r("137e"),o=r("e8b8"),a=r("496f"),s=r("399c"),l=r("a896"),u=r("0af5"),c=r("0999"),h=r("30d1"),f=r("9f5e"),p=r("256f"),d=r("1300"),g=r("a568"),y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.animatingOrInteracting_,r.hitDetectionImageData_=null,r.renderedFeatures_=null,r.renderedRevision_=-1,r.renderedResolution_=NaN,r.renderedExtent_=Object(u["createEmpty"])(),r.wrappedRenderedExtent_=Object(u["createEmpty"])(),r.renderedRotation_,r.renderedCenter_=null,r.renderedProjection_=null,r.renderedRenderOrder_=null,r.replayGroup_=null,r.replayGroupChanged=!0,r.declutterExecutorGroup=null,r.clipping=!0,r.compositionContext_=null,r.opacity_=1,r}return y(e,t),e.prototype.renderWorlds=function(t,e,r){var n=e.extent,i=e.viewState,o=i.center,s=i.resolution,l=i.projection,c=i.rotation,h=l.getExtent(),f=this.getLayer().getSource(),p=e.pixelRatio,d=e.viewHints,g=!(d[a["a"].ANIMATING]||d[a["a"].INTERACTING]),y=this.compositionContext_,v=Math.round(e.size[0]*p),m=Math.round(e.size[1]*p),_=f.getWrapX()&&l.canWrapX(),b=_?Object(u["getWidth"])(h):null,x=_?Math.ceil((n[2]-h[2])/b)+1:1,w=_?Math.floor((n[0]-h[0])/b):0;do{var O=this.getRenderTransform(o,s,c,p,v,m,w*b);t.execute(y,1,O,c,g,void 0,r)}while(++w<x)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=Object(c["a"])(this.context.canvas.width,this.context.canvas.height,i["a"]);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,Object(c["d"])(this.compositionContext_),i["a"].push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var r=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];Object(l["e"])(this.pixelTransform,1/r,1/r),Object(l["d"])(this.inversePixelTransform,this.pixelTransform);var i=Object(l["k"])(this.pixelTransform);this.useContainer(e,i,this.getBackground(t));var o=this.context,a=o.canvas,s=this.replayGroup_,c=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!c||c.isEmpty()))return null;var h=Math.round(t.size[0]*r),f=Math.round(t.size[1]*r);a.width!=h||a.height!=f?(a.width=h,a.height=f,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,h,f),this.preRender(o,t);var d=t.viewState,g=d.projection;this.opacity_=n.opacity,this.setupCompositionContext_();var y=!1,v=!0;if(n.extent&&this.clipping){var m=Object(p["fromUserExtent"])(n.extent,g);v=Object(u["intersects"])(m,t.extent),y=v&&!Object(u["containsExtent"])(m,t.extent),y&&this.clipUnrotated(this.compositionContext_,t,m)}return v&&this.renderWorlds(s,t),y&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var r=[this.context.canvas.width,this.context.canvas.height];Object(l["a"])(this.pixelTransform,r);var n=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,c=this.wrappedRenderedExtent_,h=this.getLayer(),f=[],p=r[0]*s["a"],d=r[1]*s["a"];f.push(this.getRenderTransform(n,i,o,s["a"],p,d,0).slice());var g=h.getSource(),y=a.getExtent();if(g.getWrapX()&&a.canWrapX()&&!Object(u["containsExtent"])(y,c)){var v=c[0],m=Object(u["getWidth"])(y),_=0,b=void 0;while(v<y[0])--_,b=m*_,f.push(this.getRenderTransform(n,i,o,s["a"],p,d,b).slice()),v+=m;_=0,v=c[2];while(v>y[2])++_,b=m*_,f.push(this.getRenderTransform(n,i,o,s["a"],p,d,b).slice()),v-=m}this.hitDetectionImageData_=Object(s["b"])(r,f,this.renderedFeatures_,h.getStyleFunction(),c,i,o)}e(Object(s["c"])(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),c={},h=function(t,e,r){var o=Object(d["c"])(t),a=c[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return c[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,u,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return c[o]=!0,n(t,u,e);i.push(c[o]={feature:t,layer:u,geometry:e,distanceSq:r,callback:n})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(n){return a=n.forEachFeatureAtCoordinate(t,s,l,r,h,n===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),a}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),r=e.getSource();if(!r)return!1;var i=t.viewHints[a["a"].ANIMATING],s=t.viewHints[a["a"].INTERACTING],l=e.getUpdateWhileAnimating(),c=e.getUpdateWhileInteracting();if(this.ready&&!l&&i||!c&&s)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var d=t.extent,y=t.viewState,v=y.projection,m=y.resolution,_=t.pixelRatio,b=e.getRevision(),x=e.getRenderBuffer(),w=e.getRenderOrder();void 0===w&&(w=h["a"]);var O=y.center.slice(),E=Object(u["buffer"])(d,x*m),S=E.slice(),C=[E.slice()],T=v.getExtent();if(r.getWrapX()&&v.canWrapX()&&!Object(u["containsExtent"])(T,t.extent)){var P=Object(u["getWidth"])(T),j=Math.max(Object(u["getWidth"])(E)/2,P);E[0]=T[0]-j,E[2]=T[2]+j,Object(g["l"])(O,v);var R=Object(u["wrapX"])(C[0],v);R[0]<T[0]&&R[2]<T[2]?C.push([R[0]+P,R[1],R[2]+P,R[3]]):R[0]>T[0]&&R[2]>T[2]&&C.push([R[0]-P,R[1],R[2]-P,R[3]])}if(this.ready&&this.renderedResolution_==m&&this.renderedRevision_==b&&this.renderedRenderOrder_==w&&Object(u["containsExtent"])(this.wrappedRenderedExtent_,E))return Object(f["b"])(this.renderedExtent_,S)||(this.hitDetectionImageData_=null,this.renderedExtent_=S),this.renderedCenter_=O,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var M,A=new n["a"](Object(h["c"])(m,_),E,m,_);this.getLayer().getDeclutter()&&(M=new n["a"](Object(h["c"])(m,_),E,m,_));var L,I=Object(p["getUserProjection"])();if(I){for(var k=0,F=C.length;k<F;++k){var D=C[k],N=Object(p["toUserExtent"])(D,v);r.loadFeatures(N,Object(p["toUserResolution"])(m,v),I)}L=Object(p["getTransformFromProjections"])(I,v)}else for(k=0,F=C.length;k<F;++k)r.loadFeatures(C[k],m,v);var G=Object(h["b"])(m,_),z=!0,B=function(t){var r,n=t.getStyleFunction()||e.getStyleFunction();if(n&&(r=n(t,m)),r){var i=this.renderFeature(t,G,r,A,L,M);z=z&&!i}}.bind(this),U=Object(p["toUserExtent"])(E,v),V=r.getFeaturesInExtent(U);w&&V.sort(w);for(k=0,F=V.length;k<F;++k)B(V[k]);this.renderedFeatures_=V,this.ready=z;var X=A.finish(),W=new o["a"](E,m,_,r.getOverlaps(),X,e.getRenderBuffer());return M&&(this.declutterExecutorGroup=new o["a"](E,m,_,r.getOverlaps(),M.finish(),e.getRenderBuffer())),this.renderedResolution_=m,this.renderedRevision_=b,this.renderedRenderOrder_=w,this.renderedExtent_=S,this.wrappedRenderedExtent_=E,this.renderedCenter_=O,this.renderedProjection_=v,this.replayGroup_=W,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,r,n,i,o){if(!r)return!1;var a=!1;if(Array.isArray(r))for(var s=0,l=r.length;s<l;++s)a=Object(h["d"])(n,t,r[s],e,this.boundHandleStyleImageChange_,i,o)||a;else a=Object(h["d"])(n,t,r,e,this.boundHandleStyleImageChange_,i,o);return a},e}(i["b"]);e["a"]=v},da5c:function(t,e,r){"use strict";var n=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e["a"]=n},dafa:function(t,e,r){},dbba:function(t,e,r){"use strict";var n=r("dd32"),i=r("6573"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return o(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([i["c"].DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([i["c"].DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([i["c"].DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([i["c"].DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var r=t.getAnchor(),n=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(n["a"]),s=a,l=r("ddea"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return u(e,t),e.prototype.drawFlatCoordinates_=function(t,e,r,n){var o=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,r,n,!1,!1),s=[i["c"].MOVE_TO_LINE_TO,o,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),r},e.prototype.drawLineString=function(t,e){var r=this.state,n=r.strokeStyle,o=r.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,l["e"],l["f"]],i["a"]);var a=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(i["e"]),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var r=this.state,n=r.strokeStyle,o=r.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],i["a"]);for(var a=t.getEnds(),s=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=a.length;c<h;++c)u=this.drawFlatCoordinates_(s,u,a[c],l);this.hitDetectionInstructions.push(i["e"]),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(i["e"]),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(i["e"]),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(i["a"])},e}(n["a"]),h=c,f=r("1c48"),p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return p(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,r,n){var o=this.state,a=void 0!==o.fillStyle,s=void 0!==o.strokeStyle,l=r.length;this.instructions.push(i["a"]),this.hitDetectionInstructions.push(i["a"]);for(var u=0;u<l;++u){var c=r[u],h=this.coordinates.length,f=this.appendFlatLineCoordinates(t,e,c,n,!0,!s),p=[i["c"].MOVE_TO_LINE_TO,h,f];this.instructions.push(p),this.hitDetectionInstructions.push(p),s&&(this.instructions.push(i["b"]),this.hitDetectionInstructions.push(i["b"])),e=c}return a&&(this.instructions.push(i["d"]),this.hitDetectionInstructions.push(i["d"])),s&&(this.instructions.push(i["e"]),this.hitDetectionInstructions.push(i["e"])),e},e.prototype.drawCircle=function(t,e){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i["c"].SET_FILL_STYLE,l["b"]]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=t.getFlatCoordinates(),s=t.getStride(),u=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,s,!1,!1);var c=[i["c"].CIRCLE,u];this.instructions.push(i["a"],c),this.hitDetectionInstructions.push(i["a"],c),void 0!==r.fillStyle&&(this.instructions.push(i["d"]),this.hitDetectionInstructions.push(i["d"])),void 0!==r.strokeStyle&&(this.instructions.push(i["e"]),this.hitDetectionInstructions.push(i["e"])),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i["c"].SET_FILL_STYLE,l["b"]]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=t.getEnds(),s=t.getOrientedFlatCoordinates(),u=t.getStride();this.drawFlatCoordinatess_(s,0,a,u),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i["c"].SET_FILL_STYLE,l["b"]]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);for(var a=t.getEndss(),s=t.getOrientedFlatCoordinates(),u=t.getStride(),c=0,h=0,f=a.length;h<f;++h)c=this.drawFlatCoordinatess_(s,c,a[h],u);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var r=this.coordinates,n=0,i=r.length;n<i;++n)r[n]=Object(f["e"])(r[n],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(n["a"]),g=d,y=r("0e69"),v={Circle:g,Default:n["a"],Image:s,LineString:h,Polygon:g,Text:y["b"]},m=function(){function t(t,e,r,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=r,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var r=this.buildersByZIndex_[e];for(var n in r){var i=r[n].finish();t[e][n]=i}}return t},t.prototype.getBuilder=function(t,e){var r=void 0!==t?t.toString():"0",n=this.buildersByZIndex_[r];void 0===n&&(n={},this.buildersByZIndex_[r]=n);var i=n[e];if(void 0===i){var o=v[e];i=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=i}return i},t}();e["a"]=m},dc07:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=function(){function t(t,e,r,n){this.minX=t,this.maxX=e,this.minY=r,this.maxY=n}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function i(t,e,r,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=r,o.maxY=i,o):new n(t,e,r,i)}e["b"]=n},dd32:function(t,e,r){"use strict";var n=r("6573"),i=r("045d"),o=r("f78c"),a=r("e98d"),s=r("0af5"),l=r("ddea"),u=r("9f5e"),c=r("bb6c"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=r,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=n,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return h(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var r=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,l=t.length;a<l;a+=e)n[0]=t[a],n[1]=t[a+1],Object(s["containsCoordinate"])(r,n)&&(i[o++]=n[0],i[o++]=n[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,r,n,o,a){var l=this.coordinates,u=l.length,c=this.getBufferedMaxExtent();a&&(e+=n);var h,f,p,d=t[e],g=t[e+1],y=this.tmpCoordinate_,v=!0;for(h=e+n;h<r;h+=n)y[0]=t[h],y[1]=t[h+1],p=Object(s["coordinateRelationship"])(c,y),p!==f?(v&&(l[u++]=d,l[u++]=g,v=!1),l[u++]=y[0],l[u++]=y[1]):p===i["a"].INTERSECTING?(l[u++]=y[0],l[u++]=y[1],v=!1):v=!0,d=y[0],g=y[1],f=p;return(o&&v||h===e+n)&&(l[u++]=d,l[u++]=g),u},e.prototype.drawCustomCoordinates_=function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o],l=this.appendFlatLineCoordinates(t,e,s,n,!1,!1);i.push(l),e=s}return e},e.prototype.drawCustom=function(t,e,r,i){this.beginGeometry(t,e);var o,a,s,l,u,h=t.getType(),f=t.getStride(),p=this.coordinates.length;switch(h){case"MultiPolygon":o=t.getOrientedFlatCoordinates(),l=[];var d=t.getEndss();u=0;for(var g=0,y=d.length;g<y;++g){var v=[];u=this.drawCustomCoordinates_(o,u,d[g],f,v),l.push(v)}this.instructions.push([n["c"].CUSTOM,p,l,t,r,c["c"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,l,t,i||r,c["c"]]);break;case"Polygon":case"MultiLineString":s=[],o="Polygon"==h?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(o,0,t.getEnds(),f,s),this.instructions.push([n["c"].CUSTOM,p,s,t,r,c["b"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,s,t,i||r,c["b"]]);break;case"LineString":case"Circle":o=t.getFlatCoordinates(),a=this.appendFlatLineCoordinates(o,0,o.length,f,!1,!1),this.instructions.push([n["c"].CUSTOM,p,a,t,r,c["a"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,a,t,i||r,c["a"]]);break;case"MultiPoint":o=t.getFlatCoordinates(),a=this.appendFlatPointCoordinates(o,f),a>p&&(this.instructions.push([n["c"].CUSTOM,p,a,t,r,c["a"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,a,t,i||r,c["a"]]));break;case"Point":o=t.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),a=this.coordinates.length,this.instructions.push([n["c"].CUSTOM,p,a,t,r]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,a,t,i||r]);break;default:}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[n["c"].BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[n["c"].BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var r,i,o=e.length,a=-1;for(t=0;t<o;++t)r=e[t],i=r[0],i==n["c"].END_GEOMETRY?a=t:i==n["c"].BEGIN_GEOMETRY&&(r[2]=t,Object(u["j"])(this.hitDetectionInstructions,a,t),a=-1)},e.prototype.setFillStrokeStyle=function(t,e){var r=this.state;if(t){var n=t.getColor();r.fillStyle=Object(a["a"])(n||l["b"])}else r.fillStyle=void 0;if(e){var i=e.getColor();r.strokeStyle=Object(a["a"])(i||l["k"]);var o=e.getLineCap();r.lineCap=void 0!==o?o:l["d"];var s=e.getLineDash();r.lineDash=s?s.slice():l["e"];var u=e.getLineDashOffset();r.lineDashOffset=u||l["f"];var c=e.getLineJoin();r.lineJoin=void 0!==c?c:l["g"];var h=e.getWidth();r.lineWidth=void 0!==h?h:l["h"];var f=e.getMiterLimit();r.miterLimit=void 0!==f?f:l["i"],r.lineWidth>this.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,r=[n["c"].SET_FILL_STYLE,e];return"string"!==typeof e&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[n["c"].SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var r=t.fillStyle;"string"===typeof r&&t.currentFillStyle==r||(void 0!==r&&this.instructions.push(e.call(this,t)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,e){var r=t.strokeStyle,n=t.lineCap,i=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=r||t.currentLineCap!=n||i!=t.currentLineDash&&!Object(u["b"])(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==r&&e.call(this,t),t.currentStrokeStyle=r,t.currentLineCap=n,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[n["c"].END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(s["clone"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(s["buffer"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(o["a"]);e["a"]=f},ddea:function(t,e,r){"use strict";r.d(e,"c",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"d",(function(){return h})),r.d(e,"e",(function(){return f})),r.d(e,"f",(function(){return p})),r.d(e,"g",(function(){return d})),r.d(e,"i",(function(){return g})),r.d(e,"k",(function(){return y})),r.d(e,"l",(function(){return v})),r.d(e,"m",(function(){return m})),r.d(e,"j",(function(){return _})),r.d(e,"h",(function(){return b})),r.d(e,"a",(function(){return x})),r.d(e,"q",(function(){return C})),r.d(e,"p",(function(){return R})),r.d(e,"o",(function(){return M})),r.d(e,"n",(function(){return A}));var n=r("e269"),i=r("0ec0"),o=r("617d"),a=r("38f3"),s=r("0999"),l=r("cd7e"),u="10px sans-serif",c="#000",h="round",f=[],p=0,d="round",g=10,y="#000",v="center",m="middle",_=[0,0,0,0],b=1,x=new n["a"],w=new i["a"];w.setSize=function(){console.warn("labelCache is deprecated.")};var O,E=null,S={},C=function(){var t,e,r=100,n="32px ",i=["monospace","serif"],o=i.length,s="wmytzilWMYTZIL@#/&?$%10";function u(t,r,a){for(var l=!0,u=0;u<o;++u){var c=i[u];if(e=j(t+" "+r+" "+n+c,s),a!=c){var h=j(t+" "+r+" "+n+a+","+c,s);l=l&&h!=e}}return!!l}function c(){for(var e=!0,n=x.getKeys(),i=0,o=n.length;i<o;++i){var s=n[i];x.get(s)<r&&(u.apply(this,s.split("\n"))?(Object(a["b"])(S),E=null,O=void 0,x.set(s,r)):(x.set(s,x.get(s)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var n=Object(l["g"])(e);if(n)for(var i=n.families,o=0,a=i.length;o<a;++o){var s=i[o],h=n.style+"\n"+n.weight+"\n"+s;void 0===x.get(h)&&(x.set(h,r,!0),u(n.style,n.weight,s)||(x.set(h,0,!0),void 0===t&&(t=setInterval(c,32))))}}}(),T=function(){var t;return function(e){var r=S[e];if(void 0==r){if(o["h"]){var n=Object(l["g"])(e),i=P(e,"Žg"),a=isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight);r=a*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),r=t.offsetHeight,document.body.removeChild(t);S[e]=r}return r}}();function P(t,e){return E||(E=Object(s["a"])(1,1)),t!=O&&(E.font=t,O=E.font),E.measureText(e)}function j(t,e){return P(t,e).width}function R(t,e,r){if(e in r)return r[e];var n=e.split("\n").reduce((function(e,r){return Math.max(e,j(t,r))}),0);return r[e]=n,n}function M(t,e){for(var r=[],n=[],i=[],o=0,a=0,s=0,l=0,u=0,c=e.length;u<=c;u+=2){var h=e[u];if("\n"!==h&&u!==c){var f=e[u+1]||t.font,p=j(f,h);r.push(p),a+=p;var d=T(f);n.push(d),l=Math.max(l,d)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:r,heights:n,lineWidths:i}}function A(t,e,r,n,i,o,a,s,l,u,c){t.save(),1!==r&&(t.globalAlpha*=r),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(l,u),t.scale(c[0],c[1]),L(n,t)):c[0]<0||c[1]<0?(t.translate(l,u),t.scale(c[0],c[1]),t.drawImage(n,i,o,a,s,0,0,a,s)):t.drawImage(n,i,o,a,s,l,u,a*c[0],s*c[1]),t.restore()}function L(t,e){for(var r=t.contextInstructions,n=0,i=r.length;n<i;n+=2)Array.isArray(r[n+1])?e[r[n]].apply(e,r[n+1]):e[r[n]]=r[n+1]}},ddec:function(t,e){function r(t,e){const r=new RegExp(e,"g"),n=t.match(r);return n?n.length:0}t.exports=r,t.exports.default=r},de47:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t,n){var o;return(0,i.default)(this,r),(o=e.call(this))._datas=[],o._popupStyles=n.popupStyles||{},o._labelStyles=n.labelStyles||{},o._spanStyles=n.spanStyles||{},o._closeClassName=n.closeClassName||"",o._closeStyles=n.closeStyles||{},o._datas=t.datas||[],o._closeCallback=t.closeCallback,o.init(),o}return(0,o.default)(r,[{key:"init",value:function(){this.setDivStyle(),this.loadRows(),this.ele.appendChild(this.createAside()),this.ele.appendChild(this.createCloseElement())}},{key:"setDivStyle",value:function(){var t=this._popupStyles;this.ele.style.width="".concat(t.width,"px"),this.ele.style.height="".concat(t.height,"px"),this.ele.style.backgroundColor=t.backgroundColor,this.ele.style.position="relative",this.ele.style.boxSizing="border-box",this.ele.style.padding=t.padding}},{key:"loadRows",value:function(){var t=this;this._datas.forEach((function(e,r){t.ele.appendChild(t.createRow(e,0!=r?5:0))}))}},{key:"setHeight",value:function(t){this.ele.style.height="".concat(t,"px")}},{key:"createRow",value:function(t,e){var r=document.createElement("section");return r.style.marginTop="".concat(e,"px"),r.appendChild(this.ceateLabel(t.label||"")),r.appendChild(this.createSpan(t.value||"")),r}},{key:"ceateLabel",value:function(t){var e=this._labelStyles,r=document.createElement("label");r.style.display="inline-block",r.style.minWidth="".concat(e.minWidth,"px")||!1,r.style.color=e.color||"#fff",r.style.textAlign=e.textAlign||"left",e=e.fontSize?"".concat(e.fontSize,"px"):null;return r.style.fontSize=e||"12px",r.innerHTML=t,r}},{key:"setHTMLElementStyle",value:function(){}},{key:"createSpan",value:function(t){var e=this._spanStyles,r=document.createElement("span");r.style.display="inline-block",r.style.color=e.color||"#fff",r.style.textAlign=e.textAlign||"left",e=e.fontSize?"".concat(e.fontSize,"px"):null;return r.style.fontSize=e||"12px",r.innerHTML=t,r}},{key:"createAside",value:function(){var t=this._popupStyles,e=document.createElement("aside");return e.style.border="20px solid transparent",e.style.borderTop="20px solid ".concat(t.backgroundColor),e.style.position="absolute",e.style.bottom="-40px",e.style.left="50%",e.style.marginLeft="-20px",e}},{key:"createCloseElement",value:function(){var t=this._closeStyles,e=t.fontSize?"".concat(t.fontSize,"px"):null,r=t.top?"".concat(t.top,"px"):null,n=t.right?"".concat(t.right,"px"):null,i=document.createElement("aside");return i.className=this._closeClassName,i.style.width=e||"18px",i.style.height=e||"18px",i.style.fontSize=e||"18px",i.style.position="absolute",i.style.top=r||"8px",i.style.right=n||"8px",i.style.color=t.color||"#fff",i.style.cursor="pointer",this.bingClickEvent(i,this._closeCallback),i}},{key:"bingClickEvent",value:function(t,e){var r=this;t.addEventListener("click",(function(t){e&&e(r.getId()),t.stopPropagation()}),!1)}},{key:"setDatas",value:function(t,e){var r=this;this._datas=t,this._datas.forEach((function(t){r.ele.appendChild(r.createRow(t,e))}))}}]),r}(u.LOverlay);e.default=f},df4c:function(t,e,r){"use strict";e["a"]={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},e134:function(t,e,r){"use strict";var n=r("5e31"),i=r("acc1"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=this,n=i["a"].IDLE;return r=t.call(this,e.tileCoord,n,{transition:e.transition,interpolate:e.interpolate})||this,r.loader_=e.loader,r.data_=null,r.error_=null,r.size_=e.size||[256,256],r}return o(e,t),e.prototype.getSize=function(){return this.size_},e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){if(this.state===i["a"].IDLE||this.state===i["a"].ERROR){this.state=i["a"].LOADING,this.changed();var t=this;this.loader_().then((function(e){t.data_=e,t.state=i["a"].LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=i["a"].ERROR,t.changed()}))}},e}(n["a"]);e["a"]=a},e1f2:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("278c"))),o=n(r("970b")),a=n(r("5bc3")),s=r("5897"),l=r("b12f"),u=r("13e2"),c=function(){function t(e,r){(0,o.default)(this,t),this.layer=null,this.source=null,this.lineFeature=null,this.coordinates=[],this.polygon=null,this.polygonFeature=null,this.lineDash=[],this.ids=[],this.isShowPolygon=!0,this.type=0,this.fillColor=e.fillColor,this.stroke=e.stroke,this.width=e.width||2,this.coordinates=e.coordinates,this.zIndex=e.zIndex||0,this.id=e.id,this.map=r,this.lineDash=e.lineDash||[],this.ids=e.ids,this.isHidePolygon=e.isHidePolygon||!1,e&&e.type&&(this.type=e.type)}return(0,a.default)(t,[{key:"getLayer",value:function(){return this.layer}},{key:"setPolygonColor",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"],e=this.layer.getStyle();e.getFill().setColor(t[0]),e.getStroke().setColor(t[1])}},{key:"show",value:function(){this.isShowPolygon||(this.map.addLayer(this.layer),this.isShowPolygon=!0)}},{key:"hide",value:function(){this.isShowPolygon&&(this.map.removeLayer(this.layer),this.isShowPolygon=!1)}},{key:"Id",get:function(){return this.id}},{key:"ShowState",get:function(){return this.isShowPolygon}},{key:"Ids",get:function(){return this.ids}},{key:"Vector",get:function(){return this.layer}},{key:"getGeometry",value:function(){return this.Vector&&this.polygonFeature?this.polygonFeature.getGeometry():null}},{key:"formatLengthNew",value:function(){var t=this.getGeometry();return t?(0,l.formatLengthNew)(t):0}},{key:"getAreaMu",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=this.getGeometry();return e?(0,l.formatArea)(e,t):"".concat(0)}},{key:"isPolygon",value:function(){var t=this.getGeometry();if(!t)return!1;try{var e=(0,l.calculateCenter)(t),r=e.coordinates;return e.center,(0,s.isTruePolygon)(r)}catch(t){return!1}}},{key:"getGeoJson",value:function(){var t=this.getCoordinates();if(!t.length)return null;var e=this.getCenterPoint(),r=(e=(0,i.default)(e,2),e[0]);e=e[1];return(0,l.createGeoJson)(t,{ruleId:"",centerlon:r,centerlat:e})}},{key:"getCenterPoint",value:function(){var t=this.getCoordinates();if(!t.length)return[];var e;t=(0,l.getCenterPoint)(t);return this.type?[(e=u.GPS.gcj_decrypt(t[0],t[1])).lon,e.lat]:t}},{key:"getExtent",value:function(){var t=this.getGeometry();return t?this.type?u.GPS.convertBBoxWGS84(t.getExtent()):t.getExtent():[]}},{key:"getCoordinates",value:function(){var t=this.getGeometry(),e=this.deleteDuplicateData(t.getCoordinates());return this.type?u.GPS.convertCoordinatesWGS84(e):t?e:[]}},{key:"setCoordinates",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=(this.coordinates=this.deleteDuplicateData(t),this.type=e,new Array);this.coordinates[0].length?(this.coordinates[0].forEach((function(t){n.push(t)})),r&&n.push(this.coordinates[0][0]),t=[n],e?this.polygon.setCoordinates(u.GPS.convertCoordinatesGCJ02(t)):this.polygon.setCoordinates(t)):this.polygon.setCoordinates([])}},{key:"selectGPS",value:function(){this.setCoordinates(this.coordinates,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{key:"isConvertCoordinatesGCJ02",value:function(){return this.type?u.GPS.convertCoordinatesGCJ02(this.coordinates):this.coordinates}},{key:"setZIndex",value:function(t){this.layer.setZIndex(t)}},{key:"setType",set:function(t){this.type=t}},{key:"deleteDuplicateData",value:function(t){t=t[0];var e=new Array,r=[0,0];return t.forEach((function(t){t[0]!=r[0]&&t[1]!=r[1]&&e.push(t),r=t})),[e]}}]),t}();e.default=c},e269:function(t,e,r){"use strict";var n=r("cef7"),i=r("7b4f"),o=r("35a7"),a=r("38f3"),s=r("1300"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.key=r,i.oldValue=n,i}return l(e,t),e}(n["a"]),c=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,Object(s["c"])(r),r.values_=null,void 0!==e&&r.setProperties(e),r}return l(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&Object(a["a"])({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var r;r="change:".concat(t),this.hasListener(r)&&this.dispatchEvent(new u(r,t,e)),r=i["a"].PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new u(r,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,r){var n=this.values_||(this.values_={});if(r)n[t]=e;else{var i=n[t];n[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var r in t)this.set(r,t[r],e)},e.prototype.applyProperties=function(t){t.values_&&Object(a["a"])(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var r=this.values_[t];delete this.values_[t],Object(a["d"])(this.values_)&&(this.values_=null),e||this.notify(t,r)}},e}(o["a"]);e["a"]=c},e300:function(t,e,r){"use strict";var n=r("835b"),i=r("e269"),o=r("183a"),a=r("cef7"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l={LENGTH:"length"},u=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.element=r,i.index=n,i}return s(e,t),e}(a["a"]),c=function(t){function e(e,r){var n=t.call(this)||this;n.on,n.once,n.un;var i=r||{};if(n.unique_=!!i.unique,n.array_=e||[],n.unique_)for(var o=0,a=n.array_.length;o<a;++o)n.assertUnique_(n.array_[o],o);return n.updateLength_(),n}return s(e,t),e.prototype.clear=function(){while(this.getLength()>0)this.pop()},e.prototype.extend=function(t){for(var e=0,r=t.length;e<r;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)t(e[r],r,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(l.LENGTH)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new u(o["a"].ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)if(e[r]===t)return this.removeAt(r)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new u(o["a"].REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var r=this.getLength();if(t<r){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new u(o["a"].REMOVE,n,t)),this.dispatchEvent(new u(o["a"].ADD,e,t))}else{for(var i=r;i<t;++i)this.insertAt(i,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(l.LENGTH,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var r=0,i=this.array_.length;r<i;++r)if(this.array_[r]===t&&r!==e)throw new n["a"](58)},e}(i["a"]);e["a"]=c},e318:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("a34a"))),o=n(r("448a")),a=n(r("970b")),s=n(r("5bc3")),l=n(r("5eee")),u=n(r("5c9f")),c=r("b12f"),h=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},f=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{isAnalysisBBOX:!1,isAnalysisCenter:!1,isDrag:!1,isFistData:!1};(0,a.default)(this,t),this._ele=null,this._map=null,this._layersMap=new Map,this._view=null,this.modelArr=[],this.isAnalysisBBOX=!1,this.isAnalysisCenter=!1,this._callback=null,this._layerArr=[],this._isDrag=!1,this._isFistData=!1,this.isAnalysisBBOX=e.isAnalysisBBOX,this.isAnalysisCenter=e.isAnalysisCenter,this._callback=e.callback,this._isDrag=e.isDrag,this._isFistData=e.isFistData}return(0,s.default)(t,[{key:"onLoad",value:function(t){return h(this,void 0,void 0,i.default.mark((function e(){var r=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,e.next=3,new Promise((function(e,n){var i=new l.default(Object.assign({target:t,controls:r._isDrag?null:u.default.Defaults,interactions:r._isDrag?null:u.default.InteractionsDeft}));r._map=i,r._view=u.default.getVectorLayerView,r._map.setView(r._view),i?e(i):n(null)}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getLayerMap",get:function(){return this._layersMap}},{key:"getLayers",get:function(){return this._layerArr}},{key:"initLayers",value:function(t){var e=this,r=(this.removeLayers(),this.modelArr=t,[]);t.forEach((function(t){var n=t.geo,i=e.analysisBBOX(n);e.createPolygon(t),r=[].concat((0,o.default)(r),(0,o.default)(i)),e._callback&&!e._isFistData&&e._callback(Object.assign(Object.assign({bbox:i,center:e.analysisCenter(n)},e.analysisProperties(n)),{id:t.id}))})),this.fit(r)}},{key:"createPolygon",value:function(t){var e=(0,c.createPolygonBoundaryNew)(t);this._layerArr.push(e),this._map.addLayer(e),t.id&&(t.id.toString(),t="string"==typeof t.id?t.id:t.id.toString(),this._layersMap.set(t,e))}},{key:"fit",value:function(t){this._view.fit(t,{padding:[10,10,10,10],nearest:!1})}},{key:"removeLayers",value:function(){var t=this;this._layerArr.forEach((function(e){t._map.removeLayer(e)})),this._layersMap.clear(),this._layerArr=[]}},{key:"setPolygonColor",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"];this._layersMap.has(t)&&((t=this._layersMap.get(t).getStyle()).getFill().setColor(e[0]),t.getStroke().setColor(e[1]))}},{key:"olMap",get:function(){return this._map}},{key:"ele",get:function(){return this._ele}},{key:"analysisGeoJson",value:function(t){if(!t)return null;var e=t.geometry?t.geometry.coordinates:null,r=t.bbox||null;return{properties:t.properties||null,bbox:r,coordinates:e}}},{key:"analysisBBOX",value:function(t){t=this.analysisGeoJson(t);var e=t.bbox;t=t.coordinates;return this.isAnalysisBBOX?e:this.getbbox(t)}},{key:"analysisCenter",value:function(t){t=this.analysisGeoJson(t);var e=t.properties;t=t.coordinates;return this.isAnalysisCenter?e?[e.lon||0,e.lat||0]:null:this.getCenterPoint(t)}},{key:"analysisProperties",value:function(t){return t=this.analysisGeoJson(t).properties,t?{code:t.code||null,level:t.level||0,name:t.name||null,parent_code:t.parent_code||null}:null}},{key:"getbbox",value:function(t){return t=(0,c.getLngAndLatMaxMin)(t),[t[2],t[3],t[0],t[1]]}},{key:"getCenterPoint",value:function(t){return(0,c.getCenterPoint)(t)}},{key:"resetSize",value:function(){this._map&&this.initLayers(this.modelArr)}}]),t}();e.default=f},e4e0:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n=r("1300"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function o(t,e,r,i){var o=document.createElement("script"),a="olc_"+Object(n["c"])(e);function s(){delete window[a],o.parentNode.removeChild(o)}o.async=!0,o.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+a;var l=setTimeout((function(){s(),r&&r()}),1e4);window[a]=function(t){clearTimeout(l),s(),e(t)},document.head.appendChild(o)}(function(t){function e(e){var r=this,n="Unexpected response status: "+e.status;return r=t.call(this,n)||this,r.name="ResponseError",r.response=e,r}i(e,t)})(Error),function(t){function e(e){var r=t.call(this,"Failed to issue request")||this;return r.name="ClientError",r.client=e,r}i(e,t)}(Error)}).call(this,r("c8ba"))},e504:function(t,e){
12
12
  /*! @petamoriken/float16 v3.6.6 | MIT License - https://github.com/petamoriken/float16 */
13
- (function(t){"use strict";const e="This is not an object",r="This is not a Float16Array object",n="This constructor is not a subclass of Float16Array",i="The constructor property value is not an object",o="Species constructor didn't return TypedArray object",a="Derived constructor created TypedArray object which was too small length",s="Attempting to access detached ArrayBuffer",l="Cannot convert undefined or null to object",u="Cannot mix BigInt and other types, use explicit conversions",c="@@iterator property is not callable",h="Reduce of empty array with no initial value",f="Offset is out of bounds";function p(t){return(e,...r)=>g(t,e,r)}function d(t,e){return p(_(t,e).get)}const{apply:g,construct:y,defineProperty:v,get:m,getOwnPropertyDescriptor:_,getPrototypeOf:b,has:x,ownKeys:w,set:O,setPrototypeOf:E}=Reflect,S=Proxy,{MAX_SAFE_INTEGER:C,isFinite:T,isNaN:P}=Number,{iterator:j,species:R,toStringTag:M,for:A}=Symbol,L=Object,{create:I,defineProperty:k,freeze:F,is:D}=L,N=L.prototype,G=N.__lookupGetter__?p(N.__lookupGetter__):(t,e)=>{if(null==t)throw At(l);let r=L(t);do{const t=_(r,e);if(void 0!==t)return z(t,"get")?t.get:void 0}while(null!==(r=b(r)))},z=L.hasOwn||p(N.hasOwnProperty),B=Array,U=B.isArray,V=B.prototype,X=p(V.join),W=p(V.push),H=p(V.toLocaleString),Y=V[j],q=p(Y),K=Math.trunc,Z=ArrayBuffer,J=Z.isView,$=Z.prototype,Q=p($.slice),tt=d($,"byteLength"),et="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:null,rt=et&&d(et.prototype,"byteLength"),nt=b(Uint8Array),it=nt.from,ot=nt.prototype,at=ot[j],st=p(ot.keys),lt=p(ot.values),ut=p(ot.entries),ct=p(ot.set),ht=p(ot.reverse),ft=p(ot.fill),pt=p(ot.copyWithin),dt=p(ot.sort),gt=p(ot.slice),yt=p(ot.subarray),vt=d(ot,"buffer"),mt=d(ot,"byteOffset"),_t=d(ot,"length"),bt=d(ot,M),xt=Uint16Array,wt=(...t)=>g(it,xt,t),Ot=Uint32Array,Et=Float32Array,St=b([][j]()),Ct=p(St.next),Tt=p(function*(){}().next),Pt=b(St),jt=DataView.prototype,Rt=p(jt.getUint16),Mt=p(jt.setUint16),At=TypeError,Lt=RangeError,It=WeakSet,kt=It.prototype,Ft=p(kt.add),Dt=p(kt.has),Nt=WeakMap,Gt=Nt.prototype,zt=p(Gt.get),Bt=p(Gt.has),Ut=p(Gt.set),Vt=new Nt,Xt=I(null,{next:{value:function(){const t=zt(Vt,this);return Ct(t)}},[j]:{value:function(){return this}}});function Wt(t){if(t[j]===Y)return t;const e=I(Xt);return Ut(Vt,e,q(t)),e}const Ht=new Nt,Yt=I(Pt,{next:{value:function(){const t=zt(Ht,this);return Tt(t)},writable:!0,configurable:!0}});for(const Fe of w(St))"next"!==Fe&&k(Yt,Fe,_(St,Fe));function qt(t){const e=I(Yt);return Ut(Ht,e,t),e}function Kt(t){return null!==t&&"object"===typeof t||"function"===typeof t}function Zt(t){return null!==t&&"object"===typeof t}function Jt(t){return void 0!==bt(t)}function $t(t){const e=bt(t);return"BigInt64Array"===e||"BigUint64Array"===e}function Qt(t){try{return tt(t),!0}catch(e){return!1}}function te(t){if(null===et)return!1;try{return rt(t),!0}catch(e){return!1}}function ee(t){if(!U(t))return!1;if(t[j]===Y)return!0;const e=t[j]();return"Array Iterator"===e[M]}function re(t){if(!Jt(t))return!1;if(t[j]===at)return!0;const e=t[j]();return"Array Iterator"===e[M]}function ne(t){if("string"!==typeof t)return!1;const e=+t;return t===e+""&&(!!T(e)&&e===K(e))}const ie=A("__Float16Array__");function oe(t){if(!Zt(t))return!1;const e=b(t);if(!Zt(e))return!1;const r=e.constructor;if(void 0===r)return!1;if(!Kt(r))throw At(i);return x(r,ie)}const ae=new Z(4),se=new Et(ae),le=new Ot(ae),ue=new Ot(512),ce=new Ot(512);for(let Fe=0;Fe<256;++Fe){const t=Fe-127;t<-27?(ue[Fe]=0,ue[256|Fe]=32768,ce[Fe]=24,ce[256|Fe]=24):t<-14?(ue[Fe]=1024>>-t-14,ue[256|Fe]=1024>>-t-14|32768,ce[Fe]=-t-1,ce[256|Fe]=-t-1):t<=15?(ue[Fe]=t+15<<10,ue[256|Fe]=t+15<<10|32768,ce[Fe]=13,ce[256|Fe]=13):t<128?(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=24,ce[256|Fe]=24):(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=13,ce[256|Fe]=13)}function he(t){se[0]=t;const e=le[0],r=e>>23&511;return ue[r]+((8388607&e)>>ce[r])}const fe=new Ot(2048),pe=new Ot(64),de=new Ot(64);for(let Fe=1;Fe<1024;++Fe){let t=Fe<<13,e=0;while(0===(8388608&t))t<<=1,e-=8388608;t&=-8388609,e+=947912704,fe[Fe]=t|e}for(let Fe=1024;Fe<2048;++Fe)fe[Fe]=939524096+(Fe-1024<<13);for(let Fe=1;Fe<31;++Fe)pe[Fe]=Fe<<23;pe[31]=1199570944,pe[32]=2147483648;for(let Fe=33;Fe<63;++Fe)pe[Fe]=2147483648+(Fe-32<<23);pe[63]=3347054592;for(let Fe=1;Fe<64;++Fe)32!==Fe&&(de[Fe]=1024);function ge(t){const e=t>>10;return le[0]=fe[de[e]+(1023&t)]+pe[e],se[0]}function ye(t){const e=+t;return P(e)||0===e?0:K(e)}function ve(t){const e=ye(t);return e<0?0:e<C?e:C}function me(t,r){if(!Kt(t))throw At(e);const n=t.constructor;if(void 0===n)return r;if(!Kt(n))throw At(i);const o=n[R];return null==o?r:o}function _e(t){if(te(t))return!1;try{return Q(t,0,0),!1}catch(e){}return!0}function be(t,e){const r=P(t),n=P(e);if(r&&n)return 0;if(r)return 1;if(n)return-1;if(t<e)return-1;if(t>e)return 1;if(0===t&&0===e){const r=D(t,0),n=D(e,0);if(!r&&n)return-1;if(r&&!n)return 1}return 0}const xe=2,we=new Nt;function Oe(t){return Bt(we,t)||!J(t)&&oe(t)}function Ee(t){if(!Oe(t))throw At(r)}function Se(t,e){const r=Oe(t),n=Jt(t);if(!r&&!n)throw At(o);if("number"===typeof e){let n;if(r){const e=Ce(t);n=_t(e)}else n=_t(t);if(n<e)throw At(a)}if($t(t))throw At(u)}function Ce(t){const e=zt(we,t);if(void 0!==e){const t=vt(e);if(_e(t))throw At(s);return e}const r=t.buffer;if(_e(r))throw At(s);const n=y(Re,[r,t.byteOffset,t.length],t.constructor);return zt(we,n)}function Te(t){const e=_t(t),r=[];for(let n=0;n<e;++n)r[n]=ge(t[n]);return r}const Pe=new It;for(const Fe of w(ot)){if(Fe===M)continue;const t=_(ot,Fe);z(t,"get")&&"function"===typeof t.get&&Ft(Pe,t.get)}const je=F({get(t,e,r){return ne(e)&&z(t,e)?ge(m(t,e)):Dt(Pe,G(t,e))?m(t,e):m(t,e,r)},set(t,e,r,n){return ne(e)&&z(t,e)?O(t,e,he(r)):O(t,e,r,n)},getOwnPropertyDescriptor(t,e){if(ne(e)&&z(t,e)){const r=_(t,e);return r.value=ge(r.value),r}return _(t,e)},defineProperty(t,e,r){return ne(e)&&z(t,e)&&z(r,"value")?(r.value=he(r.value),v(t,e,r)):v(t,e,r)}});class Re{constructor(t,e,r){let n;if(Oe(t))n=y(xt,[Ce(t)],new.target);else if(Kt(t)&&!Qt(t)){let e,r;if(Jt(t)){e=t,r=_t(t);const i=vt(t),o=te(i)?Z:me(i,Z);if(_e(i))throw At(s);if($t(t))throw At(u);const a=new o(r*xe);n=y(xt,[a],new.target)}else{const i=t[j];if(null!=i&&"function"!==typeof i)throw At(c);null!=i?ee(t)?(e=t,r=t.length):(e=[...t],r=e.length):(e=t,r=ve(e.length)),n=y(xt,[r],new.target)}for(let t=0;t<r;++t)n[t]=he(e[t])}else n=y(xt,arguments,new.target);const i=new S(n,je);return Ut(we,i,n),i}static from(t,...e){const r=this;if(!x(r,ie))throw At(n);if(r===Re){if(Oe(t)&&0===e.length){const e=Ce(t),r=new xt(vt(e),mt(e),_t(e));return new Re(vt(gt(r)))}if(0===e.length)return new Re(vt(wt(t,he)));const r=e[0],n=e[1];return new Re(vt(wt(t,(function(t,...e){return he(g(r,this,[t,...Wt(e)]))}),n)))}let i,o;const a=t[j];if(null!=a&&"function"!==typeof a)throw At(c);if(null!=a)ee(t)?(i=t,o=t.length):re(t)?(i=t,o=_t(t)):(i=[...t],o=i.length);else{if(null==t)throw At(l);i=L(t),o=ve(i.length)}const s=new r(o);if(0===e.length)for(let n=0;n<o;++n)s[n]=i[n];else{const t=e[0],r=e[1];for(let e=0;e<o;++e)s[e]=g(t,r,[i[e],e])}return s}static of(...t){const e=this;if(!x(e,ie))throw At(n);const r=t.length;if(e===Re){const e=new Re(r),n=Ce(e);for(let i=0;i<r;++i)n[i]=he(t[i]);return e}const i=new e(r);for(let n=0;n<r;++n)i[n]=t[n];return i}keys(){Ee(this);const t=Ce(this);return st(t)}values(){Ee(this);const t=Ce(this);return qt(function*(){for(const e of lt(t))yield ge(e)}())}entries(){Ee(this);const t=Ce(this);return qt(function*(){for(const[e,r]of ut(t))yield[e,ge(r)]}())}at(t){Ee(this);const e=Ce(this),r=_t(e),n=ye(t),i=n>=0?n:r+n;if(!(i<0||i>=r))return ge(e[i])}map(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0],o=me(r,Re);if(o===Re){const e=new Re(n),o=Ce(e);for(let a=0;a<n;++a){const e=ge(r[a]);o[a]=he(g(t,i,[e,a,this]))}return e}const a=new o(n);Se(a,n);for(let s=0;s<n;++s){const e=ge(r[s]);a[s]=g(t,i,[e,s,this])}return a}filter(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0],o=[];for(let l=0;l<n;++l){const e=ge(r[l]);g(t,i,[e,l,this])&&W(o,e)}const a=me(r,Re),s=new a(o);return Se(s),s}reduce(t,...e){Ee(this);const r=Ce(this),n=_t(r);if(0===n&&0===e.length)throw At(h);let i,o;0===e.length?(i=ge(r[0]),o=1):(i=e[0],o=0);for(let a=o;a<n;++a)i=t(i,ge(r[a]),a,this);return i}reduceRight(t,...e){Ee(this);const r=Ce(this),n=_t(r);if(0===n&&0===e.length)throw At(h);let i,o;0===e.length?(i=ge(r[n-1]),o=n-2):(i=e[0],o=n-1);for(let a=o;a>=0;--a)i=t(i,ge(r[a]),a,this);return i}forEach(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)g(t,i,[ge(r[o]),o,this])}find(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return e}}findIndex(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return o}return-1}findLast(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=n-1;o>=0;--o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return e}}findLastIndex(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=n-1;o>=0;--o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return o}return-1}every(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)if(!g(t,i,[ge(r[o]),o,this]))return!1;return!0}some(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)if(g(t,i,[ge(r[o]),o,this]))return!0;return!1}set(t,...e){Ee(this);const r=Ce(this),n=ye(e[0]);if(n<0)throw Lt(f);if(null==t)throw At(l);if($t(t))throw At(u);if(Oe(t))return ct(Ce(this),Ce(t),n);if(Jt(t)){const e=vt(t);if(_e(e))throw At(s)}const i=_t(r),o=L(t),a=ve(o.length);if(n===1/0||a+n>i)throw Lt(f);for(let s=0;s<a;++s)r[s+n]=he(o[s])}reverse(){Ee(this);const t=Ce(this);return ht(t),this}fill(t,...e){Ee(this);const r=Ce(this);return ft(r,he(t),...Wt(e)),this}copyWithin(t,e,...r){Ee(this);const n=Ce(this);return pt(n,t,e,...Wt(r)),this}sort(t){Ee(this);const e=Ce(this),r=void 0!==t?t:be;return dt(e,(t,e)=>r(ge(t),ge(e))),this}slice(t,e){Ee(this);const r=Ce(this),n=me(r,Re);if(n===Re){const n=new xt(vt(r),mt(r),_t(r));return new Re(vt(gt(n,t,e)))}const i=_t(r),o=ye(t),a=void 0===e?i:ye(e);let l,u;l=o===-1/0?0:o<0?i+o>0?i+o:0:i<o?i:o,u=a===-1/0?0:a<0?i+a>0?i+a:0:i<a?i:a;const c=u-l>0?u-l:0,h=new n(c);if(Se(h,c),0===c)return h;const f=vt(r);if(_e(f))throw At(s);let p=0;while(l<u)h[p]=ge(r[l]),++l,++p;return h}subarray(t,e){Ee(this);const r=Ce(this),n=me(r,Re),i=new xt(vt(r),mt(r),_t(r)),o=yt(i,t,e),a=new n(vt(o),mt(o),_t(o));return Se(a),a}indexOf(t,...e){Ee(this);const r=Ce(this),n=_t(r);let i=ye(e[0]);if(i===1/0)return-1;i<0&&(i+=n,i<0&&(i=0));for(let o=i;o<n;++o)if(z(r,o)&&ge(r[o])===t)return o;return-1}lastIndexOf(t,...e){Ee(this);const r=Ce(this),n=_t(r);let i=e.length>=1?ye(e[0]):n-1;if(i===-1/0)return-1;i>=0?i=i<n-1?i:n-1:i+=n;for(let o=i;o>=0;--o)if(z(r,o)&&ge(r[o])===t)return o;return-1}includes(t,...e){Ee(this);const r=Ce(this),n=_t(r);let i=ye(e[0]);if(i===1/0)return!1;i<0&&(i+=n,i<0&&(i=0));const o=P(t);for(let a=i;a<n;++a){const e=ge(r[a]);if(o&&P(e))return!0;if(e===t)return!0}return!1}join(t){Ee(this);const e=Ce(this),r=Te(e);return X(r,t)}toLocaleString(...t){Ee(this);const e=Ce(this),r=Te(e);return H(r,...Wt(t))}get[M](){if(Oe(this))return"Float16Array"}}k(Re,"BYTES_PER_ELEMENT",{value:xe}),k(Re,ie,{}),E(Re,nt);const Me=Re.prototype;function Ae(t){return Jt(t)||Oe(t)}function Le(t,e,...r){return ge(Rt(t,e,...Wt(r)))}function Ie(t,e,r,...n){return Mt(t,e,he(r),...Wt(n))}function ke(t){const e=+t;if(!T(e)||0===e)return e;const r=he(e);return ge(r)}k(Me,"BYTES_PER_ELEMENT",{value:xe}),k(Me,j,{value:Me.values,writable:!0,configurable:!0}),E(Me,ot),t.Float16Array=Re,t.getFloat16=Le,t.hfround=ke,t.isFloat16Array=Oe,t.isTypedArray=Ae,t.setFloat16=Ie,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})({})},e637:function(t,e,r){"use strict";e["a"]={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},e63e:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("21bc");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t){t.style.height="30px",t.style.width="30px",t.style.left="50%",t.style.top="50%",t.style.color="red",t.style.position="absolute",t.style.marginTop="-15px",t.style.marginLeft="-15px",t.style.cursor="pointer"}function p(t,e){t.addEventListener("click",(function(t){e&&e(),t.stopPropagation()}),!1)}function d(t,e){var r=document.createElement("i");r.style.fontSize="30px",r.className=e,e=document.createElement("div");return f(e),p(e,t),e.appendChild(r),{element:e,icon_i:r}}var g=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"el-icon--zhunxin1",o=(t=((0,i.default)(this,r),d(t,n)),n=t.element,t=t.icon_i,e.call(this,{element:n,target:null}));return o._ele=n,o._icon_i=t,o}return(0,o.default)(r,[{key:"show",value:function(){this._ele.style.display="block"}},{key:"hide",value:function(){this._ele.style.display="none"}},{key:"ele",get:function(){return this._ele}},{key:"setIconName",value:function(){this._icon_i.className=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"el-icon--zhunxin1"}},{key:"setIconColor",value:function(t){this._icon_i.style.fontSize="30px"}}]),r}(u.Control);e.default=g},e6f1:function(t,e,r){"use strict";r("2c08")},e7df:function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("2c15"),o=r("869f"),a=r("6611"),s=r("0b0e"),l=r("38f3"),u=r("0999"),c=r("0af5"),h=r("256f"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){var r=this,o=void 0!==e.crossOrigin?e.crossOrigin:null,s=void 0!==e.imageLoadFunction?e.imageLoadFunction:i["b"],l=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(l=e.interpolate),r=t.call(this,{attributions:e.attributions,interpolate:l,projection:Object(h["get"])(e.projection)})||this,r.url_=e.url,r.imageExtent_=e.imageExtent,r.image_=new a["a"](r.imageExtent_,void 0,1,r.url_,o,s),r.imageSize_=e.imageSize?e.imageSize:null,r.image_.addEventListener(n["a"].CHANGE,r.handleImageChange.bind(r)),r}return f(e,t),e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,r,n){return Object(c["intersects"])(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==o["a"].LOADED){var r=this.image_.getExtent(),n=this.image_.getImage(),i=void 0,a=void 0;this.imageSize_?(i=this.imageSize_[0],a=this.imageSize_[1]):(i=n.width,a=n.height);var h=Object(c["getWidth"])(r),f=Object(c["getHeight"])(r),p=h/i,d=f/a,g=i,y=a;if(p>d?g=Math.round(h/d):y=Math.round(f/p),g!==i||y!==a){var v=Object(u["a"])(g,y);this.getInterpolate()||Object(l["a"])(v,s["a"]);var m=v.canvas;v.drawImage(n,0,0,i,a,0,0,m.width,m.height),this.image_.setImage(m)}}t.prototype.handleImageChange.call(this,e)},e}(i["a"]);e["default"]=p},e8b8:function(t,e,r){"use strict";var n=r("6573"),i=r("0e69"),o=r("617d"),a=r("a896"),s=r("0af5"),l=r("ddea"),u=r("7fc9"),c=r("bef8");function h(t,e,r,n,i,o,a,s,l,h,f,p){var d=t[e],g=t[e+1],y=0,v=0,m=0,_=0;function b(){y=d,v=g,e+=n,d=t[e],g=t[e+1],_+=m,m=Math.sqrt((d-y)*(d-y)+(g-v)*(g-v))}do{b()}while(e<r-n&&_+m<o);var x=0===m?0:(o-_)/m,w=Object(u["e"])(y,d,x),O=Object(u["e"])(v,g,x),E=e-n,S=_,C=o+s*l(h,i,f);while(e<r-n&&_+m<C)b();x=0===m?0:(C-_)/m;var T,P=Object(u["e"])(y,d,x),j=Object(u["e"])(v,g,x);if(p){var R=[w,O,P,j];Object(c["a"])(R,0,4,2,p,R,R),T=R[0]>R[2]}else T=w>P;var M,A=Math.PI,L=[],I=E+n===e;if(e=E,m=0,_=S,d=t[e],g=t[e+1],I){b(),M=Math.atan2(g-v,d-y),T&&(M+=M>0?-A:A);var k=(P+w)/2,F=(j+O)/2;return L[0]=[k,F,(C-o)/2,M,i],L}i=i.replace(/\n/g," ");for(var D=0,N=i.length;D<N;){b();var G=Math.atan2(g-v,d-y);if(T&&(G+=G>0?-A:A),void 0!==M){var z=G-M;if(z+=z>A?-2*A:z<-A?2*A:0,Math.abs(z)>a)return null}M=G;for(var B=D,U=0;D<N;++D){var V=T?N-D-1:D,X=s*l(h,i[V],f);if(e+n<r&&_+m<o+U+X/2)break;U+=X}if(D!==B){var W=T?i.substring(N-B,N-D):i.substring(B,D);x=0===m?0:(o+U/2-_)/m;k=Object(u["e"])(y,d,x),F=Object(u["e"])(v,g,x);L.push([k,F,U/2,G,W]),o+=U}}return L}var f=r("9f5e"),p=r("5938"),d=Object(s["createEmpty"])(),g=[],y=[],v=[],m=[];function _(t){return t[3].declutterBox}var b=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function x(t,e){return"start"!==e&&"end"!==e||b.test(t)||(e="start"===e?"left":"right"),i["a"][e]}function w(t,e,r){return r>0&&t.push("\n",""),t.push(e,""),t}var O=function(){function t(t,e,r,n){this.overlaps=r,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(a["c"])(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,r,n){var a=t+e+r+n;if(this.labels_[a])return this.labels_[a];var s=n?this.strokeStates[n]:null,u=r?this.fillStates[r]:null,c=this.textStates[e],h=this.pixelRatio,f=[c.scale[0]*h,c.scale[1]*h],p=Array.isArray(t),d=c.justify?i["a"][c.justify]:x(Array.isArray(t)?t[0]:t,c.textAlign||l["l"]),g=n&&s.lineWidth?s.lineWidth:0,y=p?t:t.split("\n").reduce(w,[]),v=Object(l["o"])(c,y),m=v.width,_=v.height,b=v.widths,O=v.heights,E=v.lineWidths,S=m+g,C=[],T=(S+2)*f[0],P=(_+g)*f[1],j={width:T<0?Math.floor(T):Math.ceil(T),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:C};if(1==f[0]&&1==f[1]||C.push("scale",f),n){C.push("strokeStyle",s.strokeStyle),C.push("lineWidth",g),C.push("lineCap",s.lineCap),C.push("lineJoin",s.lineJoin),C.push("miterLimit",s.miterLimit);var R=o["h"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;R.prototype.setLineDash&&(C.push("setLineDash",[s.lineDash]),C.push("lineDashOffset",s.lineDashOffset))}r&&C.push("fillStyle",u.fillStyle),C.push("textBaseline","middle"),C.push("textAlign","center");for(var M,A=.5-d,L=d*S+A*g,I=[],k=[],F=0,D=0,N=0,G=0,z=0,B=y.length;z<B;z+=2){var U=y[z];if("\n"!==U){var V=y[z+1]||c.font;V!==M&&(n&&I.push("font",V),r&&k.push("font",V),M=V),F=Math.max(F,O[N]);var X=[U,L+A*b[N]+d*(b[N]-E[G]),.5*(g+F)+D];L+=b[N],n&&I.push("strokeText",X),r&&k.push("fillText",X),++N}else D+=F,F=0,L=d*S+A*g,++G}return Array.prototype.push.apply(C,I),Array.prototype.push.apply(C,k),this.labels_[a]=j,j},t.prototype.replayTextBackground_=function(t,e,r,n,i,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,r,n,i,o,l,u,c,h,f,p,_,b,x,w){l*=p[0],u*=p[1];var O,E=r-l,S=n-u,C=i+c>t?t-c:i,T=o+h>e?e-h:o,P=b[3]+C*p[0]+b[1],j=b[0]+T*p[1]+b[2],R=E-b[3],M=S-b[0];return(x||0!==f)&&(g[0]=R,m[0]=R,g[1]=M,y[1]=M,y[0]=R+P,v[0]=y[0],v[1]=M+j,m[1]=v[1]),0!==f?(O=Object(a["b"])(Object(a["c"])(),r,n,1,1,f,-r,-n),Object(a["a"])(O,g),Object(a["a"])(O,y),Object(a["a"])(O,v),Object(a["a"])(O,m),Object(s["createOrUpdate"])(Math.min(g[0],y[0],v[0],m[0]),Math.min(g[1],y[1],v[1],m[1]),Math.max(g[0],y[0],v[0],m[0]),Math.max(g[1],y[1],v[1],m[1]),d)):Object(s["createOrUpdate"])(Math.min(R,R+P),Math.min(M,M+j),Math.max(R,R+P),Math.max(M,M+j),d),_&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:C,drawImageH:T,originX:c,originY:h,declutterBox:{minX:d[0],minY:d[1],maxX:d[2],maxY:d[3],value:w},canvasTransform:O,scale:p}},t.prototype.replayImageOrLabel_=function(t,e,r,n,i,o,a){var s=!(!o&&!a),u=n.declutterBox,c=t.canvas,h=a?a[2]*n.scale[0]/2:0,f=u.minX-h<=c.width/e&&u.maxX+h>=0&&u.minY-h<=c.height/e&&u.maxY+h>=0;return f&&(s&&this.replayTextBackground_(t,g,y,v,m,o,a),Object(l["n"])(t,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(a["a"])(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,r,n){var o=this.textStates[e],a=this.createLabel(t,e,n,r),s=this.strokeStates[r],u=this.pixelRatio,c=x(Array.isArray(t)?t[0]:t,o.textAlign||l["l"]),h=i["a"][o.textBaseline||l["m"]],f=s&&s.lineWidth?s.lineWidth:0,p=a.width/u-2*o.scale[0],d=c*p+2*(.5-c)*f,g=h*a.height/u+2*(.5-h)*f;return{label:a,anchorX:d,anchorY:g}},t.prototype.execute_=function(t,e,r,o,u,d,g,y){var v;this.pixelCoordinates_&&Object(f["b"])(r,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=Object(c["c"])(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),Object(a["j"])(this.renderedTransform_,r));var m,b,x,w,O,E,S,C,T,P,j,R,M,A,L,I,k=0,F=o.length,D=0,N=0,G=0,z=null,B=null,U=this.coordinateCache_,V=this.viewRotation_,X=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,W={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:V},H=this.instructions!=o||this.overlaps?0:200;while(k<F){var Y=o[k],q=Y[0];switch(q){case n["c"].BEGIN_GEOMETRY:M=Y[1],I=Y[3],M.getGeometry()?void 0===g||Object(s["intersects"])(g,I.getExtent())?++k:k=Y[2]+1:k=Y[2];break;case n["c"].BEGIN_PATH:N>H&&(this.fill_(t),N=0),G>H&&(t.stroke(),G=0),N||G||(t.beginPath(),w=NaN,O=NaN),++k;break;case n["c"].CIRCLE:D=Y[1];var K=v[D],Z=v[D+1],J=v[D+2],$=v[D+3],Q=J-K,tt=$-Z,et=Math.sqrt(Q*Q+tt*tt);t.moveTo(K+et,Z),t.arc(K,Z,et,0,2*Math.PI,!0),++k;break;case n["c"].CLOSE_PATH:t.closePath(),++k;break;case n["c"].CUSTOM:D=Y[1],m=Y[2];var rt=Y[3],nt=Y[4],it=6==Y.length?Y[5]:void 0;W.geometry=rt,W.feature=M,k in U||(U[k]=[]);var ot=U[k];it?it(v,D,m,2,ot):(ot[0]=v[D],ot[1]=v[D+1],ot.length=2),nt(ot,W),++k;break;case n["c"].DRAW_IMAGE:D=Y[1],m=Y[2],C=Y[3],b=Y[4],x=Y[5];var at=Y[6],st=Y[7],lt=Y[8],ut=Y[9],ct=Y[10],ht=Y[11],ft=Y[12],pt=Y[13],dt=Y[14],gt=Y[15];if(!C&&Y.length>=20){T=Y[19],P=Y[20],j=Y[21],R=Y[22];var yt=this.drawLabelWithPointPlacement_(T,P,j,R);C=yt.label,Y[3]=C;var vt=Y[23];b=(yt.anchorX-vt)*this.pixelRatio,Y[4]=b;var mt=Y[24];x=(yt.anchorY-mt)*this.pixelRatio,Y[5]=x,at=C.height,Y[6]=at,pt=C.width,Y[13]=pt}var _t=void 0;Y.length>25&&(_t=Y[25]);var bt=void 0,xt=void 0,wt=void 0;Y.length>17?(bt=Y[16],xt=Y[17],wt=Y[18]):(bt=l["j"],xt=!1,wt=!1),ct&&X?ht+=V:ct||X||(ht-=V);for(var Ot=0;D<m;D+=2)if(!(_t&&_t[Ot++]<pt/this.pixelRatio)){var Et=this.calculateImageOrLabelDimensions_(C.width,C.height,v[D],v[D+1],pt,at,b,x,lt,ut,ht,ft,u,bt,xt||wt,M),St=[t,e,C,Et,st,xt?z:null,wt?B:null];if(y){if("none"===dt)continue;if("obstacle"===dt){y.insert(Et.declutterBox);continue}var Ct=void 0,Tt=void 0;if(gt){var Pt=m-D;if(!gt[Pt]){gt[Pt]=St;continue}if(Ct=gt[Pt],delete gt[Pt],Tt=_(Ct),y.collides(Tt))continue}if(y.collides(Et.declutterBox))continue;Ct&&(y.insert(Tt),this.replayImageOrLabel_.apply(this,Ct)),y.insert(Et.declutterBox)}this.replayImageOrLabel_.apply(this,St)}++k;break;case n["c"].DRAW_CHARS:var jt=Y[1],Rt=Y[2],Mt=Y[3],At=Y[4];R=Y[5];var Lt=Y[6],It=Y[7],kt=Y[8];j=Y[9];var Ft=Y[10];T=Y[11],P=Y[12];var Dt=[Y[13],Y[13]],Nt=this.textStates[P],Gt=Nt.font,zt=[Nt.scale[0]*It,Nt.scale[1]*It],Bt=void 0;Gt in this.widths_?Bt=this.widths_[Gt]:(Bt={},this.widths_[Gt]=Bt);var Ut=Object(p["a"])(v,jt,Rt,2),Vt=Math.abs(zt[0])*Object(l["p"])(Gt,T,Bt);if(At||Vt<=Ut){var Xt=this.textStates[P].textAlign,Wt=(Ut-Vt)*i["a"][Xt],Ht=h(v,jt,Rt,2,T,Wt,Lt,Math.abs(zt[0]),l["p"],Gt,Bt,X?0:this.viewRotation_);t:if(Ht){var Yt=[],qt=void 0,Kt=void 0,Zt=void 0,Jt=void 0,$t=void 0;if(j)for(qt=0,Kt=Ht.length;qt<Kt;++qt){$t=Ht[qt],Zt=$t[4],Jt=this.createLabel(Zt,P,"",j),b=$t[2]+(zt[0]<0?-Ft:Ft),x=Mt*Jt.height+2*(.5-Mt)*Ft*zt[1]/zt[0]-kt;Et=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,b,x,0,0,$t[3],Dt,!1,l["j"],!1,M);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}if(R)for(qt=0,Kt=Ht.length;qt<Kt;++qt){$t=Ht[qt],Zt=$t[4],Jt=this.createLabel(Zt,P,R,""),b=$t[2],x=Mt*Jt.height-kt;Et=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,b,x,0,0,$t[3],Dt,!1,l["j"],!1,M);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}y&&y.load(Yt.map(_));for(var Qt=0,te=Yt.length;Qt<te;++Qt)this.replayImageOrLabel_.apply(this,Yt[Qt])}}++k;break;case n["c"].END_GEOMETRY:if(void 0!==d){M=Y[1];var ee=d(M,I);if(ee)return ee}++k;break;case n["c"].FILL:H?N++:this.fill_(t),++k;break;case n["c"].MOVE_TO_LINE_TO:for(D=Y[1],m=Y[2],A=v[D],L=v[D+1],E=A+.5|0,S=L+.5|0,E===w&&S===O||(t.moveTo(A,L),w=E,O=S),D+=2;D<m;D+=2)A=v[D],L=v[D+1],E=A+.5|0,S=L+.5|0,D!=m-2&&E===w&&S===O||(t.lineTo(A,L),w=E,O=S);++k;break;case n["c"].SET_FILL_STYLE:z=Y,this.alignFill_=Y[2],N&&(this.fill_(t),N=0,G&&(t.stroke(),G=0)),t.fillStyle=Y[1],++k;break;case n["c"].SET_STROKE_STYLE:B=Y,G&&(t.stroke(),G=0),this.setStrokeStyle_(t,Y),++k;break;case n["c"].STROKE:H?G++:t.stroke(),++k;break;default:++k;break}}N&&this.fill_(t),G&&t.stroke()},t.prototype.execute=function(t,e,r,n,i,o){this.viewRotation_=n,this.execute_(t,e,r,this.instructions,i,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,r,n,i){return this.viewRotation_=r,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,i)},t}(),E=O,S=r("0999"),C=r("38f3"),T=["Polygon","Circle","LineString","Image","Text","Default"],P=function(){function t(t,e,r,n,i,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=r,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(a["c"])(),this.createExecutors_(i)}return t.prototype.clip=function(t,e){var r=this.getClipCoords(e);t.beginPath(),t.moveTo(r[0],r[1]),t.lineTo(r[2],r[3]),t.lineTo(r[4],r[5]),t.lineTo(r[6],r[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var r=this.executorsByZIndex_[e];void 0===r&&(r={},this.executorsByZIndex_[e]=r);var n=t[e];for(var i in n){var o=n[i];r[i]=new E(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var r=this.executorsByZIndex_[e],n=0,i=t.length;n<i;++n)if(t[n]in r)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o){n=Math.round(n);var l=2*n+1,u=Object(a["b"])(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-r,-t[0],-t[1]),c=!this.hitDetectionContext_;c&&(this.hitDetectionContext_=Object(S["a"])(l,l));var h,p=this.hitDetectionContext_;p.canvas.width!==l||p.canvas.height!==l?(p.canvas.width=l,p.canvas.height=l):c||p.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(h=Object(s["createEmpty"])(),Object(s["extendCoordinate"])(h,t),Object(s["buffer"])(h,e*(this.renderBuffer_+n),h));var d,g=R(n);function y(t,e){for(var r=p.getImageData(0,0,l,l).data,a=0,s=g.length;a<s;a++)if(r[g[a]]>0){if(!o||"Image"!==d&&"Text"!==d||-1!==o.indexOf(t)){var u=(g[a]-3)/4,c=n-u%l,h=n-(u/l|0),f=i(t,e,c*c+h*h);if(f)return f}p.clearRect(0,0,l,l);break}}var v,m,_,b,x,w=Object.keys(this.executorsByZIndex_).map(Number);for(w.sort(f["i"]),v=w.length-1;v>=0;--v){var O=w[v].toString();for(_=this.executorsByZIndex_[O],m=T.length-1;m>=0;--m)if(d=T[m],b=_[d],void 0!==b&&(x=b.executeHitDetection(p,u,r,y,h),x))return x}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var r=e[0],n=e[1],i=e[2],o=e[3],a=[r,n,r,o,i,o,i,n];return Object(c["c"])(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return Object(C["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,r,n,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(f["i"]),this.maxExtent_&&(t.save(),this.clip(t,r));var l,u,c,h,p,d,g=o||T;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var y=s[l].toString();for(p=this.executorsByZIndex_[y],c=0,h=g.length;c<h;++c){var v=g[c];d=p[v],void 0!==d&&d.execute(t,e,r,n,i,a)}}this.maxExtent_&&t.restore()},t}(),j={};function R(t){if(void 0!==j[t])return j[t];for(var e=2*t+1,r=t*t,n=new Array(r+1),i=0;i<=t;++i)for(var o=0;o<=t;++o){var a=i*i+o*o;if(a>r)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((t+i)*e+(t+o))+3),i>0&&s.push(4*((t-i)*e+(t+o))+3),o>0&&(s.push(4*((t+i)*e+(t-o))+3),i>0&&s.push(4*((t-i)*e+(t-o))+3))}for(var l=[],u=(i=0,n.length);i<u;++i)n[i]&&l.push.apply(l,n[i]);return j[t]=l,l}e["a"]=P},e98d:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("5c38");function i(t){return Array.isArray(t)?Object(n["e"])(t):t}},ebea:function(t,e,r){const n=r("f460"),i=r("658e"),o=r("ddec");function a(t,e,r){const a=r&&r.debug||!1,s=!(r&&!1===typeof r.nested),l=r&&r.startIndex||0;a&&console.log("[xml-utils] starting findTagByName with",e," and ",r);const u=n(t,`<${e}[ >/]`,l);if(a&&console.log("[xml-utils] start:",u),-1===u)return;const c=t.slice(u+e.length);let h=i(c,"^[^<]*[ /]>",0);const f=-1!==h&&"/"===c[h-1];if(a&&console.log("[xml-utils] selfClosing:",f),!1===f)if(s){let t=0,r=1,n=0;while(-1!==(h=i(c,"[ /]"+e+">",t))){const i=c.substring(t,h+1);if(r+=o(i,"<"+e),n+=o(i,"/"+e+">"),n>=r)break;t=h}}else h=i(c,"[ /]"+e+">",0);const p=u+e.length+h+1;if(a&&console.log("[xml-utils] end:",p),-1===p)return;const d=t.slice(u,p);let g;return g=f?null:d.slice(d.indexOf(">")+1,d.lastIndexOf("<")),{inner:g,outer:d,start:u,end:p}}t.exports=a,t.exports.default=a},ed05:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f={width:160,height:74,padding:"2px 0 7px 14px",border:"0.3px solid #FF744C",backgroundColor:"rgba(60,30,20,0.3)"},p={color:"#FF744C",fontSize:32},d={color:"#fff",fontSize:16,marginLeft:"rgba(60,30,20,0.3)"},g={backgroundColor:" #FF744C",left:0,top:16.6,width:1.66,height:44.8},y={color:"#fff",fontSize:16},v={popupStyle:f,spanStyle:p,labelStyle:d,asideStyle:g,areaStyle:y},m=function(t){(0,a.default)(r,t);var e=c(r);function r(){var t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:v;return(0,i.default)(this,r),(t=e.call(this))._label=null,t._span=null,t._area=null,t._popupStyles=n.popupStyle,t._labelStyles=n.labelStyle,t._spanStyles=n.spanStyle,t._asideStyle=n.asideStyle,t._areaStyle=n.areaStyle,t.init(),t}return(0,o.default)(r,[{key:"init",value:function(){this.setDivStyle(),this.ele.appendChild(this.createAside());var t=this.createSection();this._span=this.createSpan(),this._label=this.ceateLabel(),this._area=this.createArea(),t.appendChild(this._span),t.appendChild(this._label),this.ele.appendChild(t),this.ele.appendChild(this._area)}},{key:"setDivStyle",value:function(){var t=this._popupStyles;this.ele.style.width="".concat(t.width,"px"),this.ele.style.height="".concat(t.height,"px"),this.ele.style.backgroundColor=t.backgroundColor,this.ele.style.position="relative",this.ele.style.boxSizing="border-box",this.ele.style.padding=t.padding,this.ele.style.borderRadius="2.36px",this.ele.style.border=t.border}},{key:"ceateLabel",value:function(){var t=this._labelStyles,e=document.createElement("label");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e.style.marginLeft="8px",e}},{key:"setHTMLElementStyle",value:function(){}},{key:"createSpan",value:function(){var t=this._spanStyles,e=document.createElement("span");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e}},{key:"createSection",value:function(){var t=document.createElement("section");return t.style.display="flex",t.style.alignItems="center",t}},{key:"createArea",value:function(){var t=this._areaStyle,e=document.createElement("section");return e.style.fontSize="".concat(t.fontSize,"px"),e.style.color=t.color||"#fff",e}},{key:"createAside",value:function(){var t=this._asideStyle,e=document.createElement("aside");return e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.backgroundColor=t.backgroundColor,e.style.position="absolute",e.style.top="".concat(t.top,"px"),e.style.left="".concat(t.left,"px"),e}},{key:"setData",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{unit:"台"};this._span&&(this._span.innerHTML=t.total),this._label&&(this._label.innerHTML=t.unit),this._area&&(this._area.innerHTML=t.areaName)}}]),r}(u.LOverlay);e.default=m},ed6d:function(t,e,r){var n=r("4a4b");function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},ed9b:function(t,e,r){"use strict";var n=r("8778"),i=r("869f"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e,r,n,o,a){var s=this,l=void 0!==a?i["a"].IDLE:i["a"].LOADED;return s=t.call(this,e,r,n,l)||this,s.loader_=void 0!==a?a:null,s.canvas_=o,s.error_=null,s}return o(e,t),e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=i["a"].ERROR):this.state=i["a"].LOADED,this.changed()},e.prototype.load=function(){this.state==i["a"].IDLE&&(this.state=i["a"].LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(n["a"]);e["a"]=a},efee:function(t,e,r){"use strict";const n=r("800c"),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),d=()=>1;class g{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||d;if(this[a]="function"!==typeof e?d:e,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,m(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,m(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!==typeof t&&(t=d),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach(t=>{t.length=this[a](t.value,t.key),this[o]+=t.length})),m(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const n=r.prev;x(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;x(this,t,r,e),r=n}}keys(){return this[h].toArray().map(t=>t.key)}values(){return this[h].toArray().map(t=>t.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(t=>this[u](t.key,t.value)),this[f]=new Map,this[h]=new n,this[o]=0}dump(){return this[h].map(t=>!v(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[h]}set(t,e,r){if(r=r||this[l],r&&"number"!==typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return _(this,this[f].get(t)),!1;const a=this[f].get(t),l=a.value;return this[u]&&(this[c]||this[u](t,l.value)),l.now=n,l.maxAge=r,l.value=e,this[o]+=s-l.length,l.length=s,this.get(t),m(this),!0}const p=new b(t,e,s,n,r);return p.length>this[i]?(this[u]&&this[u](t,e),!1):(this[o]+=p.length,this[h].unshift(p),this[f].set(t,this[h].head),m(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!v(this,e)}get(t){return y(this,t,!0)}peek(t){return y(this,t,!1)}pop(){const t=this[h].tail;return t?(_(this,t),t.value):null}del(t){_(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[f].forEach((t,e)=>y(this,e,!1))}}const y=(t,e,r)=>{const n=t[f].get(e);if(n){const e=n.value;if(v(t,e)){if(_(t,n),!t[s])return}else r&&(t[p]&&(n.value.now=Date.now()),t[h].unshiftNode(n));return e.value}},v=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},m=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const r=e.prev;_(t,e),e=r}},_=(t,e)=>{if(e){const r=e.value;t[u]&&t[u](r.key,r.value),t[o]-=r.length,t[f].delete(r.key),t[h].removeNode(e)}};class b{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const x=(t,e,r,n)=>{let i=r.value;v(t,i)&&(_(t,r),t[s]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=g},f367:function(t,e,r){"use strict";r("bae2")},f403:function(t,e,r){"use strict";r.r(e);var n=r("9abc"),i=r("0af5"),o=r("abb7"),a=r("7fc9"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r){var n=t.call(this)||this;return n.setCoordinates(e,r),n}return s(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=Object(a["j"])(t,e,i[0],i[1]);if(o<n){for(var s=this.stride,l=0;l<s;++l)r[l]=i[l];return r.length=s,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(i["createOrUpdateFromCoordinate"])(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return Object(i["containsXY"])(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(o["a"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(n["a"]);e["default"]=l},f460:function(t,e){function r(t,e,r){const n=new RegExp(e),i=n.exec(t.slice(r));return i?r+i.index:-1}t.exports=r,t.exports.default=r},f542:function(t,e,r){"use strict";r("31ea")},f5dd:function(t,e,r){"use strict";var n=r("fced"),i=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||n["a"][this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}();e["a"]=i},f78c:function(t,e,r){"use strict";var n=function(){function t(){}return t.prototype.drawCustom=function(t,e,r,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();e["a"]=n},f8b5:function(t,e,r){"use strict";e["a"]={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},fa2b:function(t,e,r){"use strict";r.r(e),r.d(e,"Graticule",(function(){return P})),r.d(e,"Group",(function(){return j["b"]})),r.d(e,"Heatmap",(function(){return Vt})),r.d(e,"Image",(function(){return Xt["default"]})),r.d(e,"Layer",(function(){return Wt["a"]})),r.d(e,"MapboxVector",(function(){return Da})),r.d(e,"Tile",(function(){return Xe["default"]})),r.d(e,"Vector",(function(){return p["default"]})),r.d(e,"VectorImage",(function(){return Ka})),r.d(e,"VectorTile",(function(){return Fe})),r.d(e,"WebGLPoints",(function(){return tl})),r.d(e,"WebGLTile",(function(){return ol}));var n=r("e300"),i=r("070d"),o=r("4cdf"),a=r("83a6"),s=r("521b"),l=r("7a09"),u=r("f403"),c=r("8682"),h=r("6c77"),f=r("8295"),p=r("3e6b"),d=r("5831"),g=r("0af5"),y=r("38f3"),v=r("7fc9"),m=r("a568"),_=r("256f"),b=r("834d");function x(t,e,r){var n,i,o,a,s,l,u=[],c=t(0),h=t(1),f=e(c),p=e(h),d=[h,c],g=[p,f],y=[1,0],m={},_=1e5;while(--_>0&&y.length>0)o=y.pop(),c=d.pop(),f=g.pop(),l=o.toString(),l in m||(u.push(f[0],f[1]),m[l]=!0),a=y.pop(),h=d.pop(),p=g.pop(),s=(o+a)/2,n=t(s),i=e(n),Object(v["k"])(i[0],i[1],f[0],f[1],p[0],p[1])<r?(u.push(p[0],p[1]),l=a.toString(),m[l]=!0):(y.push(a,s,s,o),g.push(p,i,i,f),d.push(h,n,n,c));return u}function w(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[t,e+(r-e)*n]}),Object(_["getTransform"])(o,n),i)}function O(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[e+(r-e)*n,t]}),Object(_["getTransform"])(o,n),i)}var E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),S=new c["default"]({color:"rgba(0,0,0,0.2)"}),C=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],T=function(t){function e(e){var r=this,o=e||{},s=Object(y["a"])({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},o);return delete s.maxLines,delete s.strokeStyle,delete s.targetSize,delete s.showLabels,delete s.lonLabelFormatter,delete s.latLabelFormatter,delete s.lonLabelPosition,delete s.latLabelPosition,delete s.lonLabelStyle,delete s.latLabelStyle,delete s.intervals,r=t.call(this,s)||this,r.projection_=null,r.maxLat_=1/0,r.maxLon_=1/0,r.minLat_=-1/0,r.minLon_=-1/0,r.maxX_=1/0,r.maxY_=1/0,r.minX_=-1/0,r.minY_=-1/0,r.targetSize_=void 0!==o.targetSize?o.targetSize:100,r.maxLines_=void 0!==o.maxLines?o.maxLines:100,r.meridians_=[],r.parallels_=[],r.strokeStyle_=void 0!==o.strokeStyle?o.strokeStyle:S,r.fromLonLatTransform_=void 0,r.toLonLatTransform_=void 0,r.projectionCenterLonLat_=null,r.bottomLeft_=null,r.bottomRight_=null,r.topLeft_=null,r.topRight_=null,r.meridiansLabels_=null,r.parallelsLabels_=null,o.showLabels&&(r.lonLabelFormatter_=void 0==o.lonLabelFormatter?m["d"].bind(r,"EW"):o.lonLabelFormatter,r.latLabelFormatter_=void 0==o.latLabelFormatter?m["d"].bind(r,"NS"):o.latLabelFormatter,r.lonLabelPosition_=void 0==o.lonLabelPosition?0:o.lonLabelPosition,r.latLabelPosition_=void 0==o.latLabelPosition?1:o.latLabelPosition,r.lonLabelStyleBase_=new h["default"]({text:void 0!==o.lonLabelStyle?o.lonLabelStyle.clone():new f["a"]({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new a["default"]({color:"rgba(0,0,0,1)"}),stroke:new c["default"]({color:"rgba(255,255,255,1)",width:3})})}),r.lonLabelStyle_=function(t){var e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_}.bind(r),r.latLabelStyleBase_=new h["default"]({text:void 0!==o.latLabelStyle?o.latLabelStyle.clone():new f["a"]({font:"12px Calibri,sans-serif",textAlign:"right",fill:new a["default"]({color:"rgba(0,0,0,1)"}),stroke:new c["default"]({color:"rgba(255,255,255,1)",width:3})})}),r.latLabelStyle_=function(t){var e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_}.bind(r),r.meridiansLabels_=[],r.parallelsLabels_=[],r.addEventListener(i["a"].POSTRENDER,r.drawLabels_.bind(r))),r.intervals_=void 0!==o.intervals?o.intervals:C,r.setSource(new d["default"]({loader:r.loaderFunction.bind(r),strategy:r.strategyFunction.bind(r),features:new n["a"],overlaps:!1,useSpatialIndex:!1,wrapX:o.wrapX})),r.featurePool_=[],r.lineStyle_=new h["default"]({stroke:r.strokeStyle_}),r.loadedExtent_=null,r.renderedExtent_=null,r.renderedResolution_=null,r.setRenderOrder(null),r}return E(e,t),e.prototype.strategyFunction=function(t,e){var r=t.slice();return this.projection_&&this.getSource().getWrapX()&&Object(g["wrapX"])(r,this.projection_),this.loadedExtent_&&(Object(g["approximatelyEquals"])(this.loadedExtent_,r,e)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]},e.prototype.loaderFunction=function(t,e,r){this.loadedExtent_=t;var n=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],a=Object(g["getIntersection"])(i,t);if((!this.renderedExtent_||!Object(g["equals"])(this.renderedExtent_,a)||this.renderedResolution_!==e)&&(this.renderedExtent_=a,this.renderedResolution_=e,!Object(g["isEmpty"])(a))){var s=Object(g["getCenter"])(a),l=e*e/4,u=!this.projection_||!Object(_["equivalent"])(this.projection_,r);u&&this.updateProjectionInfo_(r),this.createGraticule_(a,s,e,l);var c,h=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(h+=this.meridians_.length),this.parallelsLabels_&&(h+=this.parallels_.length);while(h>this.featurePool_.length)c=new o["default"],this.featurePool_.push(c);var f=n.getFeaturesCollection();f.clear();var p,d,y=0;for(p=0,d=this.meridians_.length;p<d;++p)c=this.featurePool_[y++],c.setGeometry(this.meridians_[p]),c.setStyle(this.lineStyle_),f.push(c);for(p=0,d=this.parallels_.length;p<d;++p)c=this.featurePool_[y++],c.setGeometry(this.parallels_[p]),c.setStyle(this.lineStyle_),f.push(c)}},e.prototype.addMeridian_=function(t,e,r,n,i,o){var a=this.getMeridian_(t,e,r,n,o);if(Object(g["intersects"])(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(t);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new u["default"]([]),text:s}}this.meridians_[o++]=a}return o},e.prototype.addParallel_=function(t,e,r,n,i,o){var a=this.getParallel_(t,e,r,n,o);if(Object(g["intersects"])(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(t);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new u["default"]([]),text:s}}this.parallels_[o++]=a}return o},e.prototype.drawLabels_=function(t){var e=t.frameState.viewState.rotation,r=t.frameState.viewState.resolution,n=t.frameState.size,i=t.frameState.extent,o=Object(g["getCenter"])(i),a=i;if(e){var s=n[0]*r,l=n[1]*r;a=[o[0]-s/2,o[1]-l/2,o[0]+s/2,o[1]+l/2]}var u=0,c=0,h=this.latLabelPosition_<.5,f=this.projection_.getExtent(),p=Object(g["getWidth"])(f);if(this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(g["containsExtent"])(f,i)){u=Math.floor((i[0]-f[0])/p),c=Math.ceil((i[2]-f[2])/p);var d=Math.abs(e)>Math.PI/2;h=h!==d}for(var y=Object(b["getVectorContext"])(t),v=u;v<=c;++v){var m=this.meridians_.length+this.parallels_.length,_=void 0,x=void 0,w=void 0,O=void 0;if(this.meridiansLabels_)for(x=0,w=this.meridiansLabels_.length;x<w;++x){var E=this.meridians_[x];if(e||0!==v){var S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getMeridianPoint_(S,a,x),O.rotate(e,o)}else O=this.getMeridianPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.meridiansLabels_[x].text),y.drawFeature(_,this.lonLabelStyle_(_))}if(this.parallelsLabels_&&(v===u&&h||v===c&&!h))for(x=0,w=this.parallels_.length;x<w;++x){E=this.parallels_[x];if(e||0!==v){S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getParallelPoint_(S,a,x),O.rotate(e,o)}else O=this.getParallelPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.parallelsLabels_[x].text),y.drawFeature(_,this.latLabelStyle_(_))}}},e.prototype.createGraticule_=function(t,e,r,n){var i=this.getInterval_(r);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=Object(g["getWidth"])(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(g["containsExtent"])(a,t)&&(Object(g["getWidth"])(t)>=s?(t[0]=a[0],t[2]=a[2]):o=!0);var l=[Object(v["b"])(e[0],this.minX_,this.maxX_),Object(v["b"])(e[1],this.minY_,this.maxY_)],u=this.toLonLatTransform_(l);isNaN(u[1])&&(u[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var c,h,f,p,d=Object(v["b"])(u[0],this.minLon_,this.maxLon_),y=Object(v["b"])(u[1],this.minLat_,this.maxLat_),m=this.maxLines_,_=t;o||(_=[Object(v["b"])(t[0],this.minX_,this.maxX_),Object(v["b"])(t[1],this.minY_,this.maxY_),Object(v["b"])(t[2],this.minX_,this.maxX_),Object(v["b"])(t[3],this.minY_,this.maxY_)]);var b=Object(g["applyTransform"])(_,this.toLonLatTransform_,void 0,8),x=b[3],w=b[2],O=b[1],E=b[0];if(o||(Object(g["containsCoordinate"])(_,this.bottomLeft_)&&(E=this.minLon_,O=this.minLat_),Object(g["containsCoordinate"])(_,this.bottomRight_)&&(w=this.maxLon_,O=this.minLat_),Object(g["containsCoordinate"])(_,this.topLeft_)&&(E=this.minLon_,x=this.maxLat_),Object(g["containsCoordinate"])(_,this.topRight_)&&(w=this.maxLon_,x=this.maxLat_),x=Object(v["b"])(x,y,this.maxLat_),w=Object(v["b"])(w,d,this.maxLon_),O=Object(v["b"])(O,this.minLat_,y),E=Object(v["b"])(E,this.minLon_,d)),d=Math.floor(d/i)*i,p=Object(v["b"])(d,this.minLon_,this.maxLon_),h=this.addMeridian_(p,O,x,n,t,0),c=0,o)while((p-=i)>=E&&c++<m)h=this.addMeridian_(p,O,x,n,t,h);else while(p!=this.minLon_&&c++<m)p=Math.max(p-i,this.minLon_),h=this.addMeridian_(p,O,x,n,t,h);if(p=Object(v["b"])(d,this.minLon_,this.maxLon_),c=0,o)while((p+=i)<=w&&c++<m)h=this.addMeridian_(p,O,x,n,t,h);else while(p!=this.maxLon_&&c++<m)p=Math.min(p+i,this.maxLon_),h=this.addMeridian_(p,O,x,n,t,h);this.meridians_.length=h,this.meridiansLabels_&&(this.meridiansLabels_.length=h),y=Math.floor(y/i)*i,f=Object(v["b"])(y,this.minLat_,this.maxLat_),h=this.addParallel_(f,E,w,n,t,0),c=0;while(f!=this.minLat_&&c++<m)f=Math.max(f-i,this.minLat_),h=this.addParallel_(f,E,w,n,t,h);f=Object(v["b"])(y,this.minLat_,this.maxLat_),c=0;while(f!=this.maxLat_&&c++<m)f=Math.min(f+i,this.maxLat_),h=this.addParallel_(f,E,w,n,t,h);this.parallels_.length=h,this.parallelsLabels_&&(this.parallelsLabels_.length=h)},e.prototype.getInterval_=function(t){for(var e=this.projectionCenterLonLat_[0],r=this.projectionCenterLonLat_[1],n=-1,i=Math.pow(this.targetSize_*t,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var u=Object(v["b"])(this.intervals_[s]/2,0,90),c=Object(v["b"])(r,-90+u,90-u);o[0]=e-u,o[1]=c-u,a[0]=e+u,a[1]=c+u,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a);var h=Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2);if(h<=i)break;n=this.intervals_[s]}return n},e.prototype.getMeridian_=function(t,e,r,n,i){var o=w(t,e,r,this.projection_,n),a=this.meridians_[i];return a?(a.setFlatCoordinates(s["a"].XY,o),a.changed()):(a=new l["default"](o,s["a"].XY),this.meridians_[i]=a),a},e.prototype.getMeridianPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=1,o=n.length-1;n[i]>n[o]&&(i=o,o=1);var a=Math.max(e[1],n[i]),s=Math.min(e[3],n[o]),l=Object(v["b"])(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,s),u=n[i-1]+(n[o-1]-n[i-1])*(l-n[i])/(n[o]-n[i]),c=[u,l],h=this.meridiansLabels_[r].geom;return h.setCoordinates(c),h},e.prototype.getMeridians=function(){return this.meridians_},e.prototype.getParallel_=function(t,e,r,n,i){var o=O(t,e,r,this.projection_,n),a=this.parallels_[i];return a?(a.setFlatCoordinates(s["a"].XY,o),a.changed()):a=new l["default"](o,s["a"].XY),a},e.prototype.getParallelPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=0,o=n.length-2;n[i]>n[o]&&(i=o,o=0);var a=Math.max(e[0],n[i]),s=Math.min(e[2],n[o]),l=Object(v["b"])(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,s),u=n[i+1]+(n[o+1]-n[i+1])*(l-n[i])/(n[o]-n[i]),c=[l,u],h=this.parallelsLabels_[r].geom;return h.setCoordinates(c),h},e.prototype.getParallels=function(){return this.parallels_},e.prototype.updateProjectionInfo_=function(t){var e=Object(_["get"])("EPSG:4326"),r=t.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];var n=Object(_["getTransform"])(t,e);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=n;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(t,e,r){for(var o=r||2,a=n(t,e,o),s=0,l=a.length;s<l;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=Object(_["getTransform"])(e,t);var o=Object(g["applyTransform"])([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_(Object(g["getCenter"])(t.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t},e}(p["default"]),P=T,j=r("9c78"),R=r("ae50"),M=r("a43f"),A=r("496f"),L=r("617d"),I=34962,k=34963,F=35040,D=35044,N=35048,G=5121,z=5123,B=5125,U=5126,V=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function X(t,e){for(var r=Object(y["a"])({preserveDrawingBuffer:!0,antialias:!L["f"]},e),n=V.length,i=0;i<n;++i)try{var o=t.getContext(V[i],r);if(o)return o}catch(a){}return null}var W=r("92fa"),H={STATIC_DRAW:D,STREAM_DRAW:F,DYNAMIC_DRAW:N},Y=function(){function t(t,e){this.array=null,this.type=t,Object(W["a"])(t===I||t===k,62),this.usage=void 0!==e?e:H.STATIC_DRAW}return t.prototype.ofSize=function(t){this.array=new(q(this.type))(t)},t.prototype.fromArray=function(t){var e=q(this.type);this.array=e.from?e.from(t):new e(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(q(this.type))(t)},t.prototype.getType=function(){return this.type},t.prototype.getArray=function(){return this.array},t.prototype.getUsage=function(){return this.usage},t.prototype.getSize=function(){return this.array?this.array.length:0},t}();function q(t){switch(t){case I:return Float32Array;case k:return Uint32Array;default:return Float32Array}}var K=Y,Z=r("df4c"),J=r("faf4"),$=r("3333"),Q={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},tt=r("da5c"),et=r("1300"),rt="\n precision mediump float;\n \n attribute vec2 a_position;\n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n uniform vec2 u_screenSize;\n \n void main() {\n v_texCoord = a_position * 0.5 + 0.5;\n v_screenCoord = v_texCoord * u_screenSize;\n gl_Position = vec4(a_position, 0.0, 1.0);\n }\n",nt="\n precision mediump float;\n \n uniform sampler2D u_image;\n uniform float u_opacity;\n \n varying vec2 v_texCoord;\n \n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n }\n",it=function(){function t(t){this.gl_=t.webGlContext;var e=this.gl_;this.scaleRatio_=t.scaleRatio||1,this.renderTargetTexture_=e.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=e.createFramebuffer();var r=e.createShader(e.VERTEX_SHADER);e.shaderSource(r,t.vertexShader||rt),e.compileShader(r);var n=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(n,t.fragmentShader||nt),e.compileShader(n),this.renderTargetProgram_=e.createProgram(),e.attachShader(this.renderTargetProgram_,r),e.attachShader(this.renderTargetProgram_,n),e.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=e.createBuffer();var i=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];e.bindBuffer(e.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),e.bufferData(e.ARRAY_BUFFER,new Float32Array(i),e.STATIC_DRAW),this.renderTargetAttribLocation_=e.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],t.uniforms&&Object.keys(t.uniforms).forEach(function(r){this.uniforms_.push({value:t.uniforms[r],location:e.getUniformLocation(this.renderTargetProgram_,r)})}.bind(this))}return t.prototype.getGL=function(){return this.gl_},t.prototype.init=function(t){var e=this.getGL(),r=[e.drawingBufferWidth*this.scaleRatio_,e.drawingBufferHeight*this.scaleRatio_];if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.viewport(0,0,r[0],r[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==r[0]||this.renderTargetTextureSize_[1]!==r[1]){this.renderTargetTextureSize_=r;var n=0,i=e.RGBA,o=0,a=e.RGBA,s=e.UNSIGNED_BYTE,l=null;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,n,i,r[0],r[1],o,a,s,l),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0)}},t.prototype.apply=function(t,e,r,n){var i=this.getGL(),o=t.size;if(i.bindFramebuffer(i.FRAMEBUFFER,e?e.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!e){var a=Object(et["c"])(i.canvas);if(!t.renderTargets[a]){var s=i.getContextAttributes();s&&s.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT)),t.renderTargets[a]=!0}}i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);var l=t.layerStatesArray[t.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(t),r&&r(i,t),i.drawArrays(i.TRIANGLES,0,6),n&&n(i,t)},t.prototype.getFrameBuffer=function(){return this.frameBuffer_},t.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=1;this.uniforms_.forEach((function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof ImageData)i.texture||(i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),e instanceof ImageData?r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,e.width,e.height,0,r.UNSIGNED_BYTE,new Uint8Array(e.data)):r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),r.uniform1i(i.location,n++);else if(Array.isArray(e))switch(e.length){case 2:return void r.uniform2f(i.location,e[0],e[1]);case 3:return void r.uniform3f(i.location,e[0],e[1],e[2]);case 4:return void r.uniform4f(i.location,e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&r.uniform1f(i.location,e)}))},t}(),ot=it,at=r("a896");function st(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function lt(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}var ut=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ct={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},ht={UNSIGNED_BYTE:G,UNSIGNED_SHORT:z,UNSIGNED_INT:B,FLOAT:U},ft={};function pt(t){return"shared/"+t}var dt=0;function gt(){var t="unique/"+dt;return dt+=1,t}function yt(t){var e=ft[t];if(!e){var r=document.createElement("canvas");r.style.position="absolute",r.style.left="0",e={users:0,canvas:r},ft[t]=e}return e.users+=1,e.canvas}function vt(t){var e=ft[t];if(e&&(e.users-=1,!(e.users>0))){var r=e.canvas,n=X(r),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete ft[t]}}var mt=function(t){function e(e){var r=t.call(this)||this,n=e||{};r.boundHandleWebGLContextLost_=r.handleWebGLContextLost.bind(r),r.boundHandleWebGLContextRestored_=r.handleWebGLContextRestored.bind(r),r.canvasCacheKey_=n.canvasCacheKey?pt(n.canvasCacheKey):gt(),r.canvas_=yt(r.canvasCacheKey_),r.gl_=X(r.canvas_),r.bufferCache_={},r.extensionCache_={},r.currentProgram_=null,r.canvas_.addEventListener(Q.LOST,r.boundHandleWebGLContextLost_),r.canvas_.addEventListener(Q.RESTORED,r.boundHandleWebGLContextRestored_),r.offsetRotateMatrix_=Object(at["c"])(),r.offsetScaleMatrix_=Object(at["c"])(),r.tmpMat4_=st(),r.uniformLocations_={},r.attribLocations_={},r.uniforms_=[],n.uniforms&&r.setUniforms(n.uniforms);var i=r.getGL();return r.postProcessPasses_=n.postProcesses?n.postProcesses.map((function(t){return new ot({webGlContext:i,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})})):[new ot({webGlContext:i})],r.shaderCompileErrors_=null,r.startTime_=Date.now(),r}return ut(e,t),e.prototype.setUniforms=function(t){for(var e in this.uniforms_=[],t)this.uniforms_.push({name:e,value:t[e]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===pt(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var e=this.gl_.getExtension(t);return this.extensionCache_[t]=e,e},e.prototype.bindBuffer=function(t){var e=this.getGL(),r=Object(et["c"])(t),n=this.bufferCache_[r];if(!n){var i=e.createBuffer();n={buffer:t,webGlBuffer:i},this.bufferCache_[r]=n}e.bindBuffer(t.getType(),n.webGlBuffer)},e.prototype.flushBufferData=function(t){var e=this.getGL();this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var e=this.getGL(),r=Object(et["c"])(t),n=this.bufferCache_[r];n&&!e.isContextLost()&&e.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Q.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Q.RESTORED,this.boundHandleWebGLContextRestored_),vt(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,e){var r=this.getGL(),n=this.getCanvas(),i=t.size,o=t.pixelRatio;n.width=i[0]*o,n.height=i[1]*o,n.style.width=i[0]+"px",n.style.height=i[1]+"px",r.useProgram(this.currentProgram_);for(var a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(t);r.bindTexture(r.TEXTURE_2D,null),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,e?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,e,r){var n=this.getGL(),i=e.getSize();n.bindFramebuffer(n.FRAMEBUFFER,e.getFramebuffer()),n.viewport(0,0,i[0],i[1]),n.bindTexture(n.TEXTURE_2D,e.getTexture()),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,r?n.ZERO:n.ONE_MINUS_SRC_ALPHA),n.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,e){var r=this.getGL();this.getExtension("OES_element_index_uint");var n=r.UNSIGNED_INT,i=4,o=e-t,a=t*i;r.drawElements(r.TRIANGLES,o,n,a)},e.prototype.finalizeDraw=function(t,e,r){for(var n=0,i=this.postProcessPasses_.length;n<i;n++)n===i-1?this.postProcessPasses_[n].apply(t,null,e,r):this.postProcessPasses_[n].apply(t,this.postProcessPasses_[n+1])},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.applyFrameState=function(t){var e=t.size,r=t.viewState.rotation,n=Object(at["g"])(this.offsetScaleMatrix_);Object(at["i"])(n,2/e[0],2/e[1]);var i=Object(at["g"])(this.offsetRotateMatrix_);0!==r&&Object(at["h"])(i,-r),this.setUniformMatrixValue(ct.OFFSET_SCALE_MATRIX,lt(this.tmpMat4_,n)),this.setUniformMatrixValue(ct.OFFSET_ROTATION_MATRIX,lt(this.tmpMat4_,i)),this.setUniformFloatValue(ct.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(ct.ZOOM,t.viewState.zoom),this.setUniformFloatValue(ct.RESOLUTION,t.viewState.resolution)},e.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=0;this.uniforms_.forEach(function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof ImageData){i.texture||(i.prevValue=void 0,i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);var o=!(e instanceof HTMLImageElement)||e.complete;o&&i.prevValue!==e&&(i.prevValue=e,r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e)),r.uniform1i(this.getUniformLocation(i.name),n++)}else if(Array.isArray(e)&&6===e.length)this.setUniformMatrixValue(i.name,lt(this.tmpMat4_,e));else if(Array.isArray(e)&&e.length<=4)switch(e.length){case 2:return void r.uniform2f(this.getUniformLocation(i.name),e[0],e[1]);case 3:return void r.uniform3f(this.getUniformLocation(i.name),e[0],e[1],e[2]);case 4:return void r.uniform4f(this.getUniformLocation(i.name),e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&r.uniform1f(this.getUniformLocation(i.name),e)}.bind(this))},e.prototype.useProgram=function(t){if(t==this.currentProgram_)return!1;var e=this.getGL();return e.useProgram(t),this.currentProgram_=t,this.uniformLocations_={},this.attribLocations_={},!0},e.prototype.compileShader=function(t,e){var r=this.getGL(),n=r.createShader(e);return r.shaderSource(n,t),r.compileShader(n),n},e.prototype.getProgram=function(t,e){var r=this.getGL(),n=this.compileShader(t,r.FRAGMENT_SHADER),i=this.compileShader(e,r.VERTEX_SHADER),o=r.createProgram();if(r.attachShader(o,n),r.attachShader(o,i),r.linkProgram(o),!r.getShaderParameter(n,r.COMPILE_STATUS)){var a="Fragment shader compliation failed: ".concat(r.getShaderInfoLog(n));throw new Error(a)}if(r.deleteShader(n),!r.getShaderParameter(i,r.COMPILE_STATUS)){a="Vertex shader compilation failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}if(r.deleteShader(i),!r.getProgramParameter(o,r.LINK_STATUS)){a="GL program linking failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}return o},e.prototype.getUniformLocation=function(t){return void 0===this.uniformLocations_[t]&&(this.uniformLocations_[t]=this.getGL().getUniformLocation(this.currentProgram_,t)),this.uniformLocations_[t]},e.prototype.getAttributeLocation=function(t){return void 0===this.attribLocations_[t]&&(this.attribLocations_[t]=this.getGL().getAttribLocation(this.currentProgram_,t)),this.attribLocations_[t]},e.prototype.makeProjectionTransform=function(t,e){var r=t.size,n=t.viewState.rotation,i=t.viewState.resolution,o=t.viewState.center;return Object(at["g"])(e),Object(at["b"])(e,0,0,2/(i*r[0]),2/(i*r[1]),-n,-o[0],-o[1]),e},e.prototype.setUniformFloatValue=function(t,e){this.getGL().uniform1f(this.getUniformLocation(t),e)},e.prototype.setUniformFloatVec4=function(t,e){this.getGL().uniform4fv(this.getUniformLocation(t),e)},e.prototype.setUniformMatrixValue=function(t,e){this.getGL().uniformMatrix4fv(this.getUniformLocation(t),!1,e)},e.prototype.enableAttributeArray_=function(t,e,r,n,i){var o=this.getAttributeLocation(t);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,e,r,!1,n,i))},e.prototype.enableAttributes=function(t){for(var e=_t(t),r=0,n=0;n<t.length;n++){var i=t[n];this.enableAttributeArray_(i.name,i.size,i.type||U,e,r),r+=i.size*bt(i.type)}},e.prototype.handleWebGLContextLost=function(){Object(y["b"])(this.bufferCache_),this.currentProgram_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.createTexture=function(t,e,r){var n=this.getGL(),i=r||n.createTexture(),o=0,a=n.RGBA,s=0,l=n.RGBA,u=n.UNSIGNED_BYTE;return n.bindTexture(n.TEXTURE_2D,i),e?n.texImage2D(n.TEXTURE_2D,o,a,l,u,e):n.texImage2D(n.TEXTURE_2D,o,a,t[0],t[1],s,l,u,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),i},e}(tt["a"]);function _t(t){for(var e=0,r=0;r<t.length;r++){var n=t[r];e+=n.size*bt(n.type)}return e}function bt(t){switch(t){case ht.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case ht.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var xt=mt,wt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ot={GENERATE_BUFFERS:"GENERATE_BUFFERS"},Et=function(t){function e(e,r){var n=t.call(this,e)||this,i=r||{};return n.inversePixelTransform_=Object(at["c"])(),n.pixelContext_=null,n.postProcesses_=i.postProcesses,n.uniforms_=i.uniforms,n.helper,e.addChangeListener(Z["a"].MAP,n.removeHelper.bind(n)),n.dispatchPreComposeEvent=n.dispatchPreComposeEvent.bind(n),n.dispatchPostComposeEvent=n.dispatchPostComposeEvent.bind(n),n}return wt(e,t),e.prototype.dispatchPreComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].PRECOMPOSE)){var n=new $["a"](i["a"].PRECOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.dispatchPostComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].POSTCOMPOSE)){var n=new $["a"](i["a"].POSTCOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.reset=function(t){this.uniforms_=t.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)},e.prototype.removeHelper=function(){this.helper&&(this.helper.dispose(),delete this.helper)},e.prototype.prepareFrame=function(t){if(this.getLayer().getRenderSource()){for(var r=!0,n=-1,i=void 0,o=0,a=t.layerStatesArray.length;o<a;o++){var s=t.layerStatesArray[o].layer,l=s.getRenderer();if(l instanceof e){var u=s.getClassName();if((r||u!==i)&&(n+=1,r=!1),i=u,l===this)break}else r=!0}var c="map/"+t.mapId+"/group/"+n;this.helper&&this.helper.canvasCacheKeyMatches(c)||(this.removeHelper(),this.helper=new xt({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:c}),i&&(this.helper.getCanvas().className=i),this.afterHelperCreated())}return this.prepareFrameInternal(t)},e.prototype.afterHelperCreated=function(){},e.prototype.prepareFrameInternal=function(t){return!0},e.prototype.disposeInternal=function(){this.removeHelper(),t.prototype.disposeInternal.call(this)},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){Object(at["b"])(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);var i=new $["a"](t,this.inversePixelTransform_,r,e);n.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(i["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(i["a"].POSTRENDER,t,e)},e.prototype.getDataAtPixel=function(t,e,r){var n=Object(at["a"])([e.pixelRatio,0,0,e.pixelRatio,0,0],t.slice()),i=this.helper.getGL();if(!i)return null;var o=this.getLayer(),a=o.getExtent();if(a){var s=Object(at["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(g["containsCoordinate"])(a,s))return null}var l=i.getContextAttributes();if(!l||!l.preserveDrawingBuffer)return new Uint8Array;var u,c=Math.round(n[0]),h=Math.round(n[1]),f=this.pixelContext_;if(!f){var p=document.createElement("canvas");p.width=1,p.height=1,f=p.getContext("2d"),this.pixelContext_=f}f.clearRect(0,0,1,1);try{f.drawImage(i.canvas,c,h,1,1,0,0,1,1),u=f.getImageData(0,0,1,1).data}catch(d){return u}return 0===u[3]?null:u},e}(J["a"]);function St(t,e){var r=e||[],n=256,i=n-1;return r[0]=Math.floor(t/n/n/n)/i,r[1]=Math.floor(t/n/n)%n/i,r[2]=Math.floor(t/n)%n/i,r[3]=t%n/i,r}function Ct(t){var e=0,r=256,n=r-1;return e+=Math.round(t[0]*r*r*r*n),e+=Math.round(t[1]*r*r*n),e+=Math.round(t[2]*r*n),e+=Math.round(t[3]*n),e}var Tt=Et,Pt=r("9f5e"),jt=new Uint8Array(4),Rt=function(){function t(t,e){this.helper_=t;var r=t.getGL();this.texture_=r.createTexture(),this.framebuffer_=r.createFramebuffer(),this.size_=e||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return t.prototype.setSize=function(t){Object(Pt["b"])(t,this.size_)||(this.size_[0]=t[0],this.size_[1]=t[1],this.updateSize_())},t.prototype.getSize=function(){return this.size_},t.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},t.prototype.readAll=function(){if(this.dataCacheDirty_){var t=this.size_,e=this.helper_.getGL();e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.readPixels(0,0,t[0],t[1],e.RGBA,e.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},t.prototype.readPixel=function(t,e){if(t<0||e<0||t>this.size_[0]||e>=this.size_[1])return jt[0]=0,jt[1]=0,jt[2]=0,jt[3]=0,jt;this.readAll();var r=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return jt[0]=this.data_[4*r],jt[1]=this.data_[4*r+1],jt[2]=this.data_[4*r+2],jt[3]=this.data_[4*r+3],jt},t.prototype.getTexture=function(){return this.texture_},t.prototype.getFramebuffer=function(){return this.framebuffer_},t.prototype.updateSize_=function(){var t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(t[0]*t[1]*4)},t}(),Mt=Rt,At=r("7fd1"),Lt=r("1e8d"),It=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),kt=function(t){function e(e,r){var n=this,i=r.uniforms||{},o=Object(at["c"])();i[ct.PROJECTION_MATRIX]=o,n=t.call(this,e,{uniforms:i,postProcesses:r.postProcesses})||this,n.ready=!1,n.sourceRevision_=-1,n.verticesBuffer_=new K(I,N),n.hitVerticesBuffer_=new K(I,N),n.indicesBuffer_=new K(k,N),n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.program_,n.hitDetectionEnabled_=!(!r.hitFragmentShader||!r.hitVertexShader),n.hitVertexShader_=r.hitVertexShader,n.hitFragmentShader_=r.hitFragmentShader,n.hitProgram_;var a=r.attributes?r.attributes.map((function(t){return{name:"a_"+t.name,size:1,type:ht.FLOAT}})):[];n.attributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT}].concat(a),n.hitDetectionAttributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT},{name:"a_hitColor",size:4,type:ht.FLOAT},{name:"a_featureUid",size:1,type:ht.FLOAT}].concat(a),n.customAttributes=r.attributes?r.attributes:[],n.previousExtent_=Object(g["createEmpty"])(),n.currentTransform_=o,n.renderTransform_=Object(at["c"])(),n.invertRenderTransform_=Object(at["c"])(),n.renderInstructions_=new Float32Array(0),n.hitRenderInstructions_=new Float32Array(0),n.hitRenderTarget_,n.generateBuffersRun_=0,n.worker_=Object(At["a"])(),n.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===Ot.GENERATE_BUFFERS){var r=e.projectionTransform;e.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(e.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=r,Object(at["d"])(this.invertRenderTransform_,this.renderTransform_),e.hitDetection?this.hitRenderInstructions_=new Float32Array(t.data.renderInstructions):(this.renderInstructions_=new Float32Array(t.data.renderInstructions),e.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(n)),n.featureCache_={},n.featureCount_=0;var s=n.getLayer().getSource();return n.sourceListenKeys_=[Object(Lt["a"])(s,M["a"].ADDFEATURE,n.handleSourceFeatureAdded_,n),Object(Lt["a"])(s,M["a"].CHANGEFEATURE,n.handleSourceFeatureChanged_,n),Object(Lt["a"])(s,M["a"].REMOVEFEATURE,n.handleSourceFeatureDelete_,n),Object(Lt["a"])(s,M["a"].CLEAR,n.handleSourceFeatureClear_,n)],s.forEachFeature(function(t){this.featureCache_[Object(et["c"])(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(n)),n}return It(e,t),e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new Mt(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[Object(et["c"])(e)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var e=this.helper.getGL();this.preRender(e,t);var r=t.viewState.projection,n=this.getLayer(),i=n.getSource(),o=i.getWrapX()&&r.canWrapX(),a=r.getExtent(),s=t.extent,l=o?Object(g["getWidth"])(a):null,u=o?Math.ceil((s[2]-a[2])/l)+1:1,c=o?Math.floor((s[0]-a[0])/l):0,h=c,f=this.indicesBuffer_.getSize();do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(at["l"])(this.currentTransform_,h*l,0),Object(at["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t),this.helper.drawElements(0,f)}while(++h<u);this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var p=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t,c,u,l),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),p},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getSource(),n=t.viewState,i=!t.viewHints[A["a"].ANIMATING]&&!t.viewHints[A["a"].INTERACTING],o=!Object(g["equals"])(this.previousExtent_,t.extent),a=this.sourceRevision_<r.getRevision();if(a&&(this.sourceRevision_=r.getRevision()),i&&(o||a)){var s=n.projection,l=n.resolution,u=e instanceof R["a"]?e.getRenderBuffer():0,c=Object(g["buffer"])(t.extent,u*l);r.loadFeatures(c,l,s),this.rebuildBuffers_(t),this.previousExtent_=t.extent.slice()}return this.helper.useProgram(this.program_),this.helper.prepareDraw(t),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},e.prototype.rebuildBuffers_=function(t){var e=Object(at["c"])();this.helper.makeProjectionTransform(t,e);var r,n,i=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var a,s=[],l=[],u=0,c=0;for(var h in this.featureCache_)if(r=this.featureCache_[h],n=r.geometry,n&&"Point"===n.getType()){s[0]=n.getFlatCoordinates()[0],s[1]=n.getFlatCoordinates()[1],Object(at["a"])(e,s),a=St(c+6,l),this.renderInstructions_[u++]=s[0],this.renderInstructions_[u++]=s[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=s[0],this.hitRenderInstructions_[c++]=s[1],this.hitRenderInstructions_[c++]=a[0],this.hitRenderInstructions_[c++]=a[1],this.hitRenderInstructions_[c++]=a[2],this.hitRenderInstructions_[c++]=a[3],this.hitRenderInstructions_[c++]=Number(h));for(var f=void 0,p=0;p<this.customAttributes.length;p++)f=this.customAttributes[p].callback(r.feature,r.properties),this.renderInstructions_[u++]=f,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=f)}var d={type:Ot.GENERATE_BUFFERS,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(d["projectionTransform"]=e,d["generateBuffersRun"]=++this.generateBuffersRun_,this.ready=!1,this.worker_.postMessage(d,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:Ot.GENERATE_BUFFERS,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g["projectionTransform"]=e,g["hitDetection"]=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){if(Object(W["a"])(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Object(at["a"])(e.coordinateToPixelTransform,t.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=[a[0]/255,a[1]/255,a[2]/255,a[3]/255],l=Ct(s),u=this.hitRenderInstructions_[l],c=Math.floor(u).toString(),h=this.getLayer().getSource(),f=h.getFeatureByUid(c);return f?n(f,this.getLayer(),null):void 0}},e.prototype.renderHitDetection=function(t,e,r,n){if(this.hitVerticesBuffer_.getSize()){var i=e;this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(at["l"])(this.currentTransform_,i*n,0),Object(at["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t);var o=this.indicesBuffer_.getSize();this.helper.drawElements(0,o)}while(++i<r)}},e.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(t){Object(Lt["c"])(t)})),this.sourceListenKeys_=null,t.prototype.disposeInternal.call(this)},e}(Tt),Ft=kt,Dt=r("0999"),Nt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gt={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},zt=["#00f","#0ff","#0f0","#ff0","#f00"],Bt=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,r=t.call(this,i)||this,r.gradient_=null,r.addChangeListener(Gt.GRADIENT,r.handleGradientChanged_),r.setGradient(n.gradient?n.gradient:zt),r.setBlur(void 0!==n.blur?n.blur:15),r.setRadius(void 0!==n.radius?n.radius:8);var o=n.weight?n.weight:"weight";return r.weightFunction_="string"===typeof o?function(t){return t.get(o)}:o,r.setRenderOrder(null),r}return Nt(e,t),e.prototype.getBlur=function(){return this.get(Gt.BLUR)},e.prototype.getGradient=function(){return this.get(Gt.GRADIENT)},e.prototype.getRadius=function(){return this.get(Gt.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=Ut(this.getGradient())},e.prototype.setBlur=function(t){this.set(Gt.BLUR,t)},e.prototype.setGradient=function(t){this.set(Gt.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(Gt.RADIUS,t)},e.prototype.createRenderer=function(){return new Ft(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var e=this.weightFunction_(t);return void 0!==e?Object(v["b"])(e,0,1):1}.bind(this)}],vertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_weight = a_weight;\n }",fragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n }",hitVertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n attribute vec4 a_hitColor;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_weight = a_weight;\n }",hitFragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n if (alpha < 0.05) {\n discard;\n }\n\n gl_FragColor = v_hitColor;\n }",uniforms:{u_size:function(){return 2*(this.get(Gt.RADIUS)+this.get(Gt.BLUR))}.bind(this),u_blurSlope:function(){return this.get(Gt.RADIUS)/Math.max(1,this.get(Gt.BLUR))}.bind(this)},postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n uniform float u_opacity;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a * u_opacity;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(R["a"]);function Ut(t){for(var e=1,r=256,n=Object(Dt["a"])(e,r),i=n.createLinearGradient(0,0,e,r),o=1/(t.length-1),a=0,s=t.length;a<s;++a)i.addColorStop(a*o,t[a]);return n.fillStyle=i,n.fillRect(0,0,e,r),n.canvas}var Vt=Bt,Xt=r("c810"),Wt=r("1af9"),Ht=r("cef7"),Yt=r("01d4"),qt=r("b7df"),Kt=r("47e4"),Zt=r("9a44"),Jt=r("88da"),$t=r("7915"),Qt=r.n($t),te=r("5bc33"),ee=r("f5dd"),re=r("0a9d"),ne=r("4d98"),ie=r("b1a2"),oe=r("9159"),ae=r("bef8"),se=Object(at["c"])(),le=function(){function t(t,e,r,n,i){this.styleFunction,this.extent_,this.id_=i,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=n}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?Object(g["createOrUpdateFromCoordinate"])(this.flatCoordinates_):Object(g["createOrUpdateFromFlatCoordinates"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Object(g["getCenter"])(this.getExtent());this.flatInteriorPoints_=Object(re["a"])(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=Object(oe["a"])(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(re["b"])(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(ie["a"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,r=this.ends_,n=0,i=r.length;n<i;++n){var o=r[n],a=Object(ie["a"])(t,e,o,2,.5);Object(Pt["c"])(this.flatMidpoints_,a),e=o}}return this.flatMidpoints_},t.prototype.getId=function(){return this.id_},t.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},t.prototype.getGeometry=function(){return this},t.prototype.getSimplifiedGeometry=function(t){return this},t.prototype.simplifyTransformed=function(t,e){return this},t.prototype.getProperties=function(){return this.properties_},t.prototype.getStride=function(){return 2},t.prototype.getStyleFunction=function(){return this.styleFunction},t.prototype.getType=function(){return this.type_},t.prototype.transform=function(t){t=Object(_["get"])(t);var e=t.getExtent(),r=t.getWorldExtent();if(e&&r){var n=Object(g["getHeight"])(r)/Object(g["getHeight"])(e);Object(at["b"])(se,r[0],r[3],n,-n,0,0,0),Object(ae["c"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,se,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();le.prototype.getEndss=le.prototype.getEnds,le.prototype.getFlatCoordinates=le.prototype.getOrientedFlatCoordinates;var ue=le,ce=r("fced"),he=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fe=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.dataProjection=new ee["a"]({code:"",units:ce["b"].TILE_PIXELS}),r.featureClass_=n.featureClass?n.featureClass:ue,r.geometryName_=n.geometryName,r.layerName_=n.layerName?n.layerName:"layer",r.layers_=n.layers?n.layers:null,r.idProperty_=n.idProperty,r.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],r}return he(e,t),e.prototype.readRawGeometry_=function(t,e,r,n){t.pos=e.geometry;var i=t.readVarint()+t.pos,o=1,a=0,s=0,l=0,u=0,c=0;while(t.pos<i){if(!a){var h=t.readVarint();o=7&h,a=h>>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>c&&(n.push(u),c=u),r.push(s,l),u+=2):7===o?u>c&&(r.push(r[c],r[c+1]),u+=2):Object(W["a"])(!1,59)}u>c&&(n.push(u),c=u)},e.prototype.createFeature_=function(t,e,r){var n,i=e.type;if(0===i)return null;var o,a=e.properties;this.idProperty_?(o=a[this.idProperty_],delete a[this.idProperty_]):o=e.id,a[this.layerName_]=e.layer.name;var c=[],h=[];this.readRawGeometry_(t,e,c,h);var f=ve(i,h.length);if(this.featureClass_===ue)n=new this.featureClass_(f,c,h,a,o),n.transform(r.dataProjection);else{var p=void 0;if("Polygon"==f){var d=Object(ne["a"])(c,h);p=d.length>1?new Jt["a"](c,s["a"].XY,d):new te["default"](c,s["a"].XY,h)}else p="Point"===f?new u["default"](c,s["a"].XY):"LineString"===f?new l["default"](c,s["a"].XY):"MultiPoint"===f?new Zt["default"](c,s["a"].XY):"MultiLineString"===f?new Kt["a"](c,s["a"].XY,h):null;var g=this.featureClass_;n=new g,this.geometryName_&&n.setGeometryName(this.geometryName_);var y=Object(qt["b"])(p,!1,r);n.setGeometry(y),void 0!==o&&n.setId(o),n.setProperties(a,!0)}return n},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var r=this.layers_,n=this.adaptOptions(e),i=Object(_["get"])(n.dataProjection);i.setWorldExtent(n.extent),n.dataProjection=i;var o=new Qt.a(t),a=o.readFields(pe,{}),s=[];for(var l in a)if(!r||-1!=r.indexOf(l)){var u=a[l],c=u?[0,0,u.extent,u.extent]:null;i.setExtent(c);for(var h=0,f=u.length;h<f;++h){var p=ye(o,u,h),d=this.createFeature_(o,p,n);null!==d&&s.push(d)}}return s},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(qt["a"]);function pe(t,e,r){if(3===t){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(de,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function de(t,e,r){if(15===t)e.version=r.readVarint();else if(1===t)e.name=r.readString();else if(5===t)e.extent=r.readVarint();else if(2===t)e.features.push(r.pos);else if(3===t)e.keys.push(r.readString());else if(4===t){var n=null,i=r.readVarint()+r.pos;while(r.pos<i)t=r.readVarint()>>3,n=1===t?r.readString():2===t?r.readFloat():3===t?r.readDouble():4===t?r.readVarint64():5===t?r.readVarint():6===t?r.readSVarint():7===t?r.readBoolean():null;e.values.push(n)}}function ge(t,e,r){if(1==t)e.id=r.readVarint();else if(2==t){var n=r.readVarint()+r.pos;while(r.pos<n){var i=e.layer.keys[r.readVarint()],o=e.layer.values[r.readVarint()];e.properties[i]=o}}else 3==t?e.type=r.readVarint():4==t&&(e.geometry=r.pos)}function ye(t,e,r){t.pos=e.features[r];var n=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(ge,i,n),i}function ve(t,e){var r;return 1===t?r=1===e?"Point":"MultiPoint":2===t?r=1===e?"LineString":"MultiLineString":3===t&&(r="Polygon"),r}var me,_e=fe,be=r("dbba"),xe=r("e8b8"),we=r("b9ec"),Oe=r("acc1"),Ee={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},Se=r("399c"),Ce=r("30d1"),Te=r("345d"),Pe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),je={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Re={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Me=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.renderedLayerRevision_,r.renderedPixelToCoordinateTransform_=null,r.renderedRotation_,r.tmpTransform_=Object(at["c"])(),r}return Pe(e,t),e.prototype.prepareTile=function(t,e,r){var n,i=t.getState();return i!==Oe["a"].LOADED&&i!==Oe["a"].ERROR||(this.updateExecutorGroup_(t,e,r),this.tileImageNeedsRender_(t)&&(n=!0)),n},e.prototype.getTile=function(e,r,n,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,u=this.getLayer(),c=u.getSource().getTile(e,r,n,o,l),h=i.viewHints,f=!(h[A["a"].ANIMATING]||h[A["a"].INTERACTING]);!f&&c.wantedResolution||(c.wantedResolution=s);var p=this.prepareTile(c,o,l);return p&&(f||Date.now()-i.time<8)&&u.getRenderMode()!==Ee.VECTOR&&this.renderTileImage_(c,i),t.prototype.getTile.call(this,e,r,n,i)},e.prototype.isDrawableTile=function(e){var r=this.getLayer();return t.prototype.isDrawableTile.call(this,e)&&(r.getRenderMode()===Ee.VECTOR?Object(et["c"])(r)in e.executorGroups:e.hasContext(r))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(e){var r=this.getLayer().getRevision();return this.renderedLayerRevision_!==r&&(this.renderedLayerRevision_=r,this.renderedTiles.length=0),t.prototype.prepareFrame.call(this,e)},e.prototype.updateExecutorGroup_=function(t,e,r){var n=this.getLayer(),i=n.getRevision(),o=n.getRenderOrder()||null,a=t.wantedResolution,s=t.getReplayState(n);if(s.dirty||s.renderedResolution!==a||s.renderedRevision!=i||s.renderedRenderOrder!=o){var l=n.getSource(),u=n.getDeclutter(),c=l.getTileGrid(),h=l.getTileGridForProjection(r),f=h.getTileCoordExtent(t.wrappedTileCoord),p=l.getSourceTiles(e,r,t),d=Object(et["c"])(n);delete t.hitDetectionImageData[d],t.executorGroups[d]=[],u&&(t.declutterExecutorGroups[d]=[]),s.dirty=!1;for(var y=function(r,i){var h=p[r];if(h.getState()!=Oe["a"].LOADED)return"continue";var y=h.tileCoord,m=c.getTileCoordExtent(y),_=Object(g["getIntersection"])(f,m),b=Object(g["buffer"])(_,n.getRenderBuffer()*a,v.tmpExtent),x=Object(g["equals"])(m,_)?null:b,w=new be["a"](0,b,a,e),O=u?new be["a"](0,_,a,e):void 0,E=Object(Ce["b"])(a,e),S=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,a)),e){var i=this.renderFeature(t,E,e,w,O);s.dirty=s.dirty||i}},C=h.getFeatures();o&&o!==s.renderedRenderOrder&&C.sort(o);for(var T=0,P=C.length;T<P;++T){var j=C[T];x&&!Object(g["intersects"])(x,j.getGeometry().getExtent())||S.call(v,j)}var R=w.finish(),M=n.getRenderMode()!==Ee.VECTOR&&u&&1===p.length?null:_,A=new xe["a"](M,a,e,l.getOverlaps(),R,n.getRenderBuffer());if(t.executorGroups[d].push(A),O){var L=new xe["a"](null,a,e,l.getOverlaps(),O.finish(),n.getRenderBuffer());t.declutterExecutorGroups[d].push(L)}},v=this,m=0,_=p.length;m<_;++m)y(m,_);s.renderedRevision=i,s.renderedRenderOrder=o,s.renderedResolution=a}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=e.viewState.resolution,a=e.viewState.rotation;r=void 0==r?0:r;var s=this.getLayer(),l=s.getSource(),u=l.getTileGridForProjection(e.viewState.projection),c=Object(g["boundingExtent"])([t]);Object(g["buffer"])(c,o*r,c);for(var h,f={},p=function(t,e,r){var o=t.getId();void 0===o&&(o=Object(et["c"])(t));var a=f[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return f[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,s,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return f[o]=!0,n(t,s,e);i.push(f[o]={feature:t,layer:s,geometry:e,distanceSq:r,callback:n})}},d=this.renderedTiles,y=function(n,i){var l=d[n],f=u.getTileCoordExtent(l.wrappedTileCoord);if(!Object(g["intersects"])(f,c))return"continue";var y=Object(et["c"])(s),v=[l.executorGroups[y]],m=l.declutterExecutorGroups[y];m&&v.push(m),v.some((function(n){for(var i=n===m?e.declutterTree.all().map((function(t){return t.value})):null,s=0,l=n.length;s<l;++s){var u=n[s];if(h=u.forEachFeatureAtCoordinate(t,o,a,r,p,i),h)return!0}}))},v=0,m=d.length;!h&&v<m;++v)y(v,m);return h},e.prototype.getFeatures=function(t){return new Promise(function(e,r){for(var n,i=this.getLayer(),o=Object(et["c"])(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),u=this.renderedResolution,c=a.getTileGridForProjection(s),h=Object(at["a"])(this.renderedPixelToCoordinateTransform_,t.slice()),f=c.getTileCoordForCoordAndResolution(h,u),p=0,d=this.renderedTiles.length;p<d;++p)if(f.toString()===this.renderedTiles[p].tileCoord.toString()){if(n=this.renderedTiles[p],n.getState()===Oe["a"].LOADED){var y=c.getTileCoordExtent(n.tileCoord);a.getWrapX()&&s.canWrapX()&&!Object(g["containsExtent"])(l,y)&&Object(m["l"])(h,s);break}n=void 0}if(!n||n.loadingSourceTiles>0)e([]);else{var v=c.getTileCoordExtent(n.wrappedTileCoord),_=Object(g["getTopLeft"])(v),b=[(h[0]-_[0])/u,(_[1]-h[1])/u],x=n.getSourceTiles().reduce((function(t,e){return t.concat(e.getFeatures())}),[]),w=n.hitDetectionImageData[o];if(!w&&!this.animatingOrInteracting_){var O=Object(Te["d"])(c.getTileSize(c.getZForResolution(u,a.zDirection))),E=this.renderedRotation_,S=[this.getRenderTransform(c.getTileCoordCenter(n.wrappedTileCoord),u,0,Se["a"],O[0]*Se["a"],O[1]*Se["a"],0)];w=Object(Se["b"])(O,S,x,i.getStyleFunction(),c.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,E),n.hitDetectionImageData[o]=w}e(Object(Se["c"])(b,x,w))}}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var e=this.context,r=e.globalAlpha;e.globalAlpha=this.getLayer().getOpacity();for(var n=t.viewHints,i=!(n[A["a"].ANIMATING]||n[A["a"].INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],u=l.declutterExecutorGroups[Object(et["c"])(this.getLayer())];if(u)for(var c=u.length-1;c>=0;--c)u[c].execute(this.context,1,this.getTileRenderTransform(l,t),t.viewState.rotation,i,void 0,t.declutterTree)}e.globalAlpha=r},e.prototype.getTileRenderTransform=function(t,e){var r=e.pixelRatio,n=e.viewState,i=n.center,o=n.resolution,a=n.rotation,s=e.size,l=Math.round(s[0]*r),u=Math.round(s[1]*r),c=this.getLayer().getSource(),h=c.getTileGridForProjection(e.viewState.projection),f=t.tileCoord,p=h.getTileCoordExtent(t.wrappedTileCoord),d=h.getTileCoordExtent(f,this.tmpExtent)[0]-p[0],g=Object(at["f"])(Object(at["i"])(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(i,o,a,r,l,u,d));return g},e.prototype.renderFrame=function(e,r){var n=e.viewHints,i=!(n[A["a"].ANIMATING]||n[A["a"].INTERACTING]);t.prototype.renderFrame.call(this,e,r),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=this.context,l=s.globalAlpha;s.globalAlpha=o.getOpacity();for(var u=Re[a],c=e.viewState,h=c.rotation,f=o.getSource(),p=f.getTileGridForProjection(c.projection),d=p.getZForResolution(c.resolution,f.zDirection),y=this.renderedTiles,v=[],m=[],_=!0,b=y.length-1;b>=0;--b){var x=y[b];_=_&&!x.getReplayState(o).dirty;var w=x.executorGroups[Object(et["c"])(o)].filter((function(t){return t.hasExecutors(u)}));if(0!==w.length){var O=this.getTileRenderTransform(x,e),E=x.tileCoord[0],S=!1,C=w[0].getClipCoords(O);if(C){for(var T=0,P=v.length;T<P;++T)if(d!==E&&E<m[T]){var j=v[T];Object(g["intersects"])([C[0],C[3],C[4],C[7]],[j[0],j[3],j[4],j[7]])&&(S||(s.save(),S=!0),s.beginPath(),s.moveTo(C[0],C[1]),s.lineTo(C[2],C[3]),s.lineTo(C[4],C[5]),s.lineTo(C[6],C[7]),s.moveTo(j[6],j[7]),s.lineTo(j[4],j[5]),s.lineTo(j[2],j[3]),s.lineTo(j[0],j[1]),s.clip())}v.push(C),m.push(E)}for(var R=0,M=w.length;R<M;++R){var L=w[R];L.execute(s,1,O,h,i,u)}S&&s.restore()}}return s.globalAlpha=l,this.ready=_,this.container},e.prototype.renderFeature=function(t,e,r,n,i){if(!r)return!1;var o=!1;if(Array.isArray(r))for(var a=0,s=r.length;a<s;++a)o=Object(Ce["d"])(n,t,r[a],e,this.boundHandleStyleImageChange_,void 0,i)||o;else o=Object(Ce["d"])(n,t,r,e,this.boundHandleStyleImageChange_,void 0,i);return o},e.prototype.tileImageNeedsRender_=function(t){var e=this.getLayer();if(e.getRenderMode()===Ee.VECTOR)return!1;var r=t.getReplayState(e),n=e.getRevision(),i=t.wantedResolution;return r.renderedTileResolution!==i||r.renderedTileRevision!==n},e.prototype.renderTileImage_=function(t,e){var r=this.getLayer(),n=t.getReplayState(r),i=r.getRevision(),o=t.executorGroups[Object(et["c"])(r)];n.renderedTileRevision=i;var a=t.wrappedTileCoord,s=a[0],l=r.getSource(),u=e.pixelRatio,c=e.viewState,h=c.projection,f=l.getTileGridForProjection(h),p=f.getResolution(t.tileCoord[0]),d=e.pixelRatio/t.wantedResolution*p,g=f.getResolution(s),y=t.getContext(r);u=Math.round(Math.max(u,d/u));var v=l.getTilePixelSize(s,u,h);y.canvas.width=v[0],y.canvas.height=v[1];var m=u/d;if(1!==m){var _=Object(at["g"])(this.tmpTransform_);Object(at["i"])(_,m,m),y.setTransform.apply(y,_)}var b=f.getTileCoordExtent(a,this.tmpExtent),x=d/g,w=Object(at["g"])(this.tmpTransform_);Object(at["i"])(w,x,-x),Object(at["l"])(w,-b[0],-b[3]);for(var O=0,E=o.length;O<E;++O){var S=o[O];S.execute(y,m,w,0,!0,je[r.getRenderMode()])}n.renderedTileResolution=t.wantedResolution},e}(we["a"]),Ae=Me,Le=r("a194"),Ie=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ke=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);delete i.preload,delete i.useInterimTilesOnError,r=t.call(this,i)||this,r.on,r.once,r.un,n.renderMode===Ee.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),n.renderMode=void 0);var o=n.renderMode||Ee.HYBRID;return Object(W["a"])(o==Ee.HYBRID||o==Ee.VECTOR,28),r.renderMode_=o,r.setPreload(n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r.getBackground,r.setBackground,r}return Ie(e,t),e.prototype.createRenderer=function(){return new Ae(this)},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderMode=function(){return this.renderMode_},e.prototype.getPreload=function(){return this.get(Le["a"].PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Le["a"].USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(Le["a"].PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Le["a"].USE_INTERIM_TILES_ON_ERROR,t)},e}(R["a"]),Fe=ke,De=r("78db2"),Ne=r("ce2c"),Ge=r("6cbf"),ze=r("ddea"),Be=r("a2e1"),Ue=(r("5eee"),r("78db")),Ve=r("6cf3"),Xe=r("480c"),We=(r("a2c7"),r("089b"),{}),He={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ye(t){return t=Math.round(t),t<0?0:t>255?255:t}function qe(t){return t<0?0:t>1?1:t}function Ke(t){return"%"===t[t.length-1]?Ye(parseFloat(t)/100*255):Ye(parseInt(t))}function Ze(t){return"%"===t[t.length-1]?qe(parseFloat(t)/100):qe(parseFloat(t))}function Je(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function $e(t){var e=t.replace(/ /g,"").toLowerCase();if(e in He)return He[e].slice();if("#"===e[0]){if(4===e.length){var r=parseInt(e.substr(1),16);return r>=0&&r<=4095?[(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1]:null}if(7===e.length){r=parseInt(e.substr(1),16);return r>=0&&r<=16777215?[(16711680&r)>>16,(65280&r)>>8,255&r,1]:null}return null}var n=e.indexOf("("),i=e.indexOf(")");if(-1!==n&&i+1===e.length){var o=e.substr(0,n),a=e.substr(n+1,i-(n+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=Ze(a.pop());case"rgb":return 3!==a.length?null:[Ke(a[0]),Ke(a[1]),Ke(a[2]),s];case"hsla":if(4!==a.length)return null;s=Ze(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=Ze(a[1]),c=Ze(a[2]),h=c<=.5?c*(u+1):c+u-c*u,f=2*c-h;return[Ye(255*Je(f,h,l+1/3)),Ye(255*Je(f,h,l)),Ye(255*Je(f,h,l-1/3)),s];default:return null}}return null}try{me=We.parseCSSColor=$e}catch(al){}var Qe=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};function tr(t){return"object"===typeof t?["literal",t]:t}function er(t,e){var r=t.stops;if(!r)return rr(t,e);var n=r&&"object"===typeof r[0][0],i=n||void 0!==t.property,o=n||!i;return r=r.map((function(t){return!i&&e.tokens&&"string"===typeof t[1]?[t[0],fr(t[1])]:[t[0],tr(t[1])]})),n?ir(t,e,r):o?lr(t,e,r):sr(t,e,r)}function rr(t,e){var r=["get",t.property];if(void 0===t.default)return"string"===e.type?["string",r]:r;if("enum"===e.type)return["match",r,Object.keys(e.values),r,t.default];var n=["color"===e.type?"to-color":e.type,r,tr(t.default)];return"array"===e.type&&n.splice(1,0,e.value,e.length||null),n}function nr(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function ir(t,e,r){for(var n={},i={},o=[],a=0;a<r.length;a++){var s=r[a],l=s[0].zoom;void 0===n[l]&&(n[l]={zoom:l,type:t.type,property:t.property,default:t.default},i[l]=[],o.push(l)),i[l].push([s[0].value,s[1]])}var u=hr({},e);if("exponential"===u){for(var c=[nr(t),["linear"],["zoom"]],h=0,f=o;h<f.length;h+=1){var p=f[h],d=sr(n[p],e,i[p]);cr(c,p,d,!1)}return c}for(var g=["step",["zoom"]],y=0,v=o;y<v.length;y+=1){var m=v[y],_=sr(n[m],e,i[m]);cr(g,m,_,!0)}return ur(g),g}function or(t,e){return void 0!==t?t:void 0!==e?e:void 0}function ar(t,e){var r=tr(or(t.default,e.default));return void 0===r&&"resolvedImage"===e.type?"":r}function sr(t,e,r){var n=hr(t,e),i=["get",t.property];if("categorical"===n&&"boolean"===typeof r[0][0]){for(var o=["case"],a=0,s=r;a<s.length;a+=1){var l=s[a];o.push(["==",i,l[0]],l[1])}return o.push(ar(t,e)),o}if("categorical"===n){for(var u=["match",i],c=0,h=r;c<h.length;c+=1){var f=h[c];cr(u,f[0],f[1],!1)}return u.push(ar(t,e)),u}if("interval"===n){for(var p=["step",["number",i]],d=0,g=r;d<g.length;d+=1){var y=g[d];cr(p,y[0],y[1],!0)}return ur(p),void 0===t.default?p:["case",["==",["typeof",i],"number"],p,tr(t.default)]}if("exponential"===n){for(var v=void 0!==t.base?t.base:1,m=[nr(t),1===v?["linear"]:["exponential",v],["number",i]],_=0,b=r;_<b.length;_+=1){var x=b[_];cr(m,x[0],x[1],!1)}return void 0===t.default?m:["case",["==",["typeof",i],"number"],m,tr(t.default)]}throw new Error("Unknown property function type "+n)}function lr(t,e,r,n){void 0===n&&(n=["zoom"]);var i,o=hr(t,e),a=!1;if("interval"===o)i=["step",n],a=!0;else{if("exponential"!==o)throw new Error('Unknown zoom function type "'+o+'"');var s=void 0!==t.base?t.base:1;i=[nr(t),1===s?["linear"]:["exponential",s],n]}for(var l=0,u=r;l<u.length;l+=1){var c=u[l];cr(i,c[0],c[1],a)}return ur(i),i}function ur(t){"step"===t[0]&&3===t.length&&(t.push(0),t.push(t[3]))}function cr(t,e,r,n){t.length>3&&e===t[t.length-2]||(n&&2===t.length||t.push(e),t.push(r))}function hr(t,e){return t.type?t.type:e.expression.interpolated?"exponential":"interval"}function fr(t){for(var e=["concat"],r=/{([^{}]+)}/g,n=0,i=r.exec(t);null!==i;i=r.exec(t)){var o=t.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(1===e.length)return t;if(n<t.length)e.push(t.slice(n));else if(2===e.length)return["to-string",e[1]];return e}Qe.parse=function(t){if(t){if(t instanceof Qe)return t;if("string"===typeof t){var e=me(t);if(e)return new Qe(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Qe.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(n)+","+i+")"},Qe.prototype.toArray=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[255*e/i,255*r/i,255*n/i,i]},Qe.prototype.toArray01=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[e/i,r/i,n/i,i]},Qe.prototype.toArray01PremultipliedAlpha=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return[e,r,n,i]},Qe.black=new Qe(0,0,0,1),Qe.white=new Qe(1,1,1,1),Qe.transparent=new Qe(0,0,0,0),Qe.red=new Qe(1,0,0,1),Qe.blue=new Qe(0,0,1,1);var pr=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),dr=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var i=n[r],o=i[0],a=i[1];this.bindings[o]=a}};dr.prototype.concat=function(t){return new dr(this,t)},dr.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},dr.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var gr={kind:"null"},yr={kind:"number"},vr={kind:"string"},mr={kind:"boolean"},_r={kind:"color"},br={kind:"object"},xr={kind:"value"},wr={kind:"error"},Or={kind:"collator"},Er={kind:"formatted"},Sr={kind:"resolvedImage"};function Cr(t,e){return{kind:"array",itemType:t,N:e}}function Tr(t){if("array"===t.kind){var e=Tr(t.itemType);return"number"===typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Pr=[gr,yr,vr,mr,_r,Er,br,Cr(xr),Sr];function jr(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!jr(t.itemType,e.itemType))&&("number"!==typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=Pr;r<n.length;r+=1){var i=n[r];if(!jr(i,e))return null}}return"Expected "+Tr(t)+" but found "+Tr(e)+" instead."}function Rr(t,e){return e.some((function(e){return e.kind===t.kind}))}function Mr(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"===typeof t:e===typeof t}))}var Ar=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Ar.prototype.compare=function(t,e){return this.collator.compare(t,e)},Ar.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Lr=function(t,e,r,n,i){this.text=t.normalize?t.normalize():t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},Ir=function(t){this.sections=t};Ir.fromString=function(t){return new Ir([new Lr(t,null,null,null,null)])},Ir.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},Ir.factory=function(t){return t instanceof Ir?t:Ir.fromString(t)},Ir.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},Ir.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}return t};var kr=function(t){this.name=t.name,this.available=t.available};function Fr(t,e,r,n){if(!("number"===typeof t&&t>=0&&t<=255&&"number"===typeof e&&e>=0&&e<=255&&"number"===typeof r&&r>=0&&r<=255)){var i="number"===typeof n?[t,e,r,n]:[t,e,r];return"Invalid rgba value ["+i.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return"undefined"===typeof n||"number"===typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1."}function Dr(t){if(null===t)return!0;if("string"===typeof t)return!0;if("boolean"===typeof t)return!0;if("number"===typeof t)return!0;if(t instanceof Qe)return!0;if(t instanceof Ar)return!0;if(t instanceof Ir)return!0;if(t instanceof kr)return!0;if(Array.isArray(t)){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(!Dr(n))return!1}return!0}if("object"===typeof t){for(var i in t)if(!Dr(t[i]))return!1;return!0}return!1}function Nr(t){if(null===t)return gr;if("string"===typeof t)return vr;if("boolean"===typeof t)return mr;if("number"===typeof t)return yr;if(t instanceof Qe)return _r;if(t instanceof Ar)return Or;if(t instanceof Ir)return Er;if(t instanceof kr)return Sr;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var o=i[n],a=Nr(o);if(e){if(e===a)continue;e=xr;break}e=a}return Cr(e||xr,r)}return br}function Gr(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Qe||t instanceof Ir||t instanceof kr?t.toString():JSON.stringify(t)}kr.prototype.toString=function(){return this.name},kr.fromString=function(t){return t?new kr({name:t,available:!1}):null},kr.prototype.serialize=function(){return["image",this.name]};var zr=function(t,e){this.type=t,this.value=e};zr.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!Dr(t[1]))return e.error("invalid value");var r=t[1],n=Nr(r),i=e.expectedType;return"array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"===typeof i.N&&0!==i.N||(n=i),new zr(n,r)},zr.prototype.evaluate=function(){return this.value},zr.prototype.eachChild=function(){},zr.prototype.outputDefined=function(){return!0},zr.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof Ir?this.value.serialize():this.value};var Br=function(t){this.name="ExpressionEvaluationError",this.message=t};Br.prototype.toJSON=function(){return this.message};var Ur={string:vr,number:yr,boolean:mr,object:br},Vr=function(t,e){this.type=t,this.args=e};Vr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r,n=1,i=t[0];if("array"===i){var o,a;if(t.length>2){var s=t[1];if("string"!==typeof s||!(s in Ur)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=Ur[s],n++}else o=xr;if(t.length>3){if(null!==t[2]&&("number"!==typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],n++}r=Cr(o,a)}else r=Ur[i];for(var l=[];n<t.length;n++){var u=e.parse(t[n],n,xr);if(!u)return null;l.push(u)}return new Vr(r,l)},Vr.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t),n=jr(this.type,Nr(r));if(!n)return r;if(e===this.args.length-1)throw new Br("Expected value to be of type "+Tr(this.type)+", but found "+Tr(Nr(r))+" instead.")}return null},Vr.prototype.eachChild=function(t){this.args.forEach(t)},Vr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Vr.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var n=t.N;("number"===typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var Xr=function(t){this.type=Er,this.sections=t};Xr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"===typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"===typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&(s=e.parse(a["font-scale"],1,yr),!s))return null;var l=null;if(a["text-font"]&&(l=e.parse(a["text-font"],1,Cr(vr)),!l))return null;var u=null;if(a["text-color"]&&(u=e.parse(a["text-color"],1,_r),!u))return null;var c=n[n.length-1];c.scale=s,c.font=l,c.textColor=u}else{var h=e.parse(t[o],1,xr);if(!h)return null;var f=h.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:h,scale:null,font:null,textColor:null})}}return new Xr(n)},Xr.prototype.evaluate=function(t){var e=function(e){var r=e.content.evaluate(t);return Nr(r)===Sr?new Lr("",r,null,null,null):new Lr(Gr(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)};return new Ir(this.sections.map(e))},Xr.prototype.eachChild=function(t){for(var e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t(n.content),n.scale&&t(n.scale),n.font&&t(n.font),n.textColor&&t(n.textColor)}},Xr.prototype.outputDefined=function(){return!1},Xr.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&&(i["font-scale"]=n.scale.serialize()),n.font&&(i["text-font"]=n.font.serialize()),n.textColor&&(i["text-color"]=n.textColor.serialize()),t.push(i)}return t};var Wr=function(t){this.type=Sr,this.input=t};Wr.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,vr);return r?new Wr(r):e.error("No image name provided.")},Wr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=kr.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r},Wr.prototype.eachChild=function(t){t(this.input)},Wr.prototype.outputDefined=function(){return!1},Wr.prototype.serialize=function(){return["image",this.input.serialize()]};var Hr={"to-boolean":mr,"to-color":_r,"to-number":yr,"to-string":vr},Yr=function(t,e){this.type=t,this.args=e};Yr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=Hr[r],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,xr);if(!a)return null;i.push(a)}return new Yr(n,i)},Yr.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,n=0,i=this.args;n<i.length;n+=1){var o=i[n];if(e=o.evaluate(t),r=null,e instanceof Qe)return e;if("string"===typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&(r=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":Fr(e[0],e[1],e[2],e[3]),!r))return new Qe(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new Br(r||"Could not parse color from value '"+("string"===typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var s=null,l=0,u=this.args;l<u.length;l+=1){var c=u[l];if(s=c.evaluate(t),null===s)return 0;var h=Number(s);if(!isNaN(h))return h}throw new Br("Could not convert "+JSON.stringify(s)+" to number.")}return"formatted"===this.type.kind?Ir.fromString(Gr(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?kr.fromString(Gr(this.args[0].evaluate(t))):Gr(this.args[0].evaluate(t))},Yr.prototype.eachChild=function(t){this.args.forEach(t)},Yr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Yr.prototype.serialize=function(){if("formatted"===this.type.kind)return new Xr([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Wr(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var qr=["Unknown","Point","LineString","Polygon"],Kr=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null};Kr.prototype.id=function(){return this.feature&&"id"in this.feature&&this.feature.id?this.feature.id:null},Kr.prototype.geometryType=function(){return this.feature?"number"===typeof this.feature.type?qr[this.feature.type]:this.feature.type:null},Kr.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Kr.prototype.canonicalID=function(){return this.canonical},Kr.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Kr.prototype.distanceFromCenter=function(){if(this.featureTileCoord&&this.featureDistanceData){var t=this.featureDistanceData.center,e=this.featureDistanceData.scale,r=this.featureTileCoord,n=r.x,i=r.y,o=n*e-t[0],a=i*e-t[1],s=this.featureDistanceData.bearing[0],l=this.featureDistanceData.bearing[1],u=s*o+l*a;return u}return 0},Kr.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Qe.parse(t)),e};var Zr=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function Jr(t){return Array.isArray(t)?"("+t.map(Tr).join(", ")+")":"("+Tr(t.type)+"...)"}Zr.prototype.evaluate=function(t){return this._evaluate(t,this.args)},Zr.prototype.eachChild=function(t){this.args.forEach(t)},Zr.prototype.outputDefined=function(){return!1},Zr.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},Zr.parse=function(t,e){var r,n=t[0],i=Zr.definitions[n];if(!i)return e.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,u=0,c=s;u<c.length;u+=1){var h=c[u],f=h[0],p=h[1];l=new jn(e.registry,e.path,null,e.scope);for(var d=[],g=!1,y=1;y<t.length;y++){var v=t[y],m=Array.isArray(f)?f[y-1]:f.type,_=l.parse(v,1+d.length,m);if(!_){g=!0;break}d.push(_)}if(!g)if(Array.isArray(f)&&f.length!==d.length)l.error("Expected "+f.length+" arguments, but found "+d.length+" instead.");else{for(var b=0;b<d.length;b++){var x=Array.isArray(f)?f[b]:f.type,w=d[b];l.concat(b+1).checkSubtype(x,w.type)}if(0===l.errors.length)return new Zr(n,o,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var O=s.length?s:a,E=O.map((function(t){var e=t[0];return Jr(e)})).join(" | "),S=[],C=1;C<t.length;C++){var T=e.parse(t[C],1+S.length);if(!T)return null;S.push(Tr(T.type))}e.error("Expected arguments of type "+E+", but found ("+S.join(", ")+") instead.")}return null},Zr.register=function(t,e){for(var r in Zr.definitions=e,e)t[r]=Zr};var $r=function(t,e,r){this.type=Or,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};$r.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!==typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,mr);if(!n)return null;var i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,mr);if(!i)return null;var o=null;return r["locale"]&&(o=e.parse(r["locale"],1,vr),!o)?null:new $r(n,i,o)},$r.prototype.evaluate=function(t){return new Ar(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},$r.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},$r.prototype.outputDefined=function(){return!1},$r.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t["locale"]=this.locale.serialize()),["collator",t]};var Qr=8192;function tn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function en(t){return(180+t)/360}function rn(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function nn(t,e){return!(t[0]<=e[0])&&(!(t[2]>=e[2])&&(!(t[1]<=e[1])&&!(t[3]>=e[3])))}function on(t,e){var r=en(t[0]),n=rn(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*Qr),Math.round(n*i*Qr)]}function an(t,e,r){var n=t[0]-e[0],i=t[1]-e[1],o=t[0]-r[0],a=t[1]-r[1];return n*a-o*i===0&&n*o<=0&&i*a<=0}function sn(t,e,r){return e[1]>t[1]!==r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function ln(t,e){for(var r=!1,n=0,i=e.length;n<i;n++)for(var o=e[n],a=0,s=o.length;a<s-1;a++){if(an(t,o[a],o[a+1]))return!1;sn(t,o[a],o[a+1])&&(r=!r)}return r}function un(t,e){for(var r=0;r<e.length;r++)if(ln(t,e[r]))return!0;return!1}function cn(t,e){return t[0]*e[1]-t[1]*e[0]}function hn(t,e,r,n){var i=t[0]-r[0],o=t[1]-r[1],a=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],u=n[1]-r[1],c=i*u-l*o,h=a*u-l*s;return c>0&&h<0||c<0&&h>0}function fn(t,e,r,n){var i=[e[0]-t[0],e[1]-t[1]],o=[n[0]-r[0],n[1]-r[1]];return 0!==cn(o,i)&&!(!hn(t,e,r,n)||!hn(r,n,t,e))}function pn(t,e,r){for(var n=0,i=r;n<i.length;n+=1)for(var o=i[n],a=0;a<o.length-1;++a)if(fn(t,e,o[a],o[a+1]))return!0;return!1}function dn(t,e){for(var r=0;r<t.length;++r)if(!ln(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(pn(t[n],t[n+1],e))return!1;return!0}function gn(t,e){for(var r=0;r<e.length;r++)if(dn(t,e[r]))return!0;return!1}function yn(t,e,r){for(var n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=on(t[i][a],r);tn(e,s),o.push(s)}n.push(o)}return n}function vn(t,e,r){for(var n=[],i=0;i<t.length;i++){var o=yn(t[i],e,r);n.push(o)}return n}function mn(t,e,r,n){if(t[0]<r[0]||t[0]>r[2]){var i=.5*n,o=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===o&&(o=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=o}tn(e,t)}function _n(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function bn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],a=[];if(!t)return a;for(var s=0,l=t;s<l.length;s+=1)for(var u=l[s],c=0,h=u;c<h.length;c+=1){var f=h[c],p=[f.x+o[0],f.y+o[1]];mn(p,e,r,i),a.push(p)}return a}function xn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],a=[];if(!t)return a;for(var s=0,l=t;s<l.length;s+=1){for(var u=l[s],c=[],h=0,f=u;h<f.length;h+=1){var p=f[h],d=[p.x+o[0],p.y+o[1]];tn(e,d),c.push(d)}a.push(c)}if(e[2]-e[0]<=i/2){_n(e);for(var g=0,y=a;g<y.length;g+=1)for(var v=y[g],m=0,_=v;m<_.length;m+=1){var b=_[m];mn(b,e,r,i)}}return a}function wn(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=yn(e.coordinates,n,i),a=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!ln(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!un(d,c))return!1}}return!0}function On(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=yn(e.coordinates,n,i),a=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!dn(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!gn(d,c))return!1}}return!0}var En=function(t,e){this.type=mr,this.geojson=t,this.geometries=e};function Sn(t){if(t instanceof Zr){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof En)return!1;var e=!0;return t.eachChild((function(t){e&&!Sn(t)&&(e=!1)})),e}function Cn(t){if(t instanceof Zr&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Cn(t)&&(e=!1)})),e}function Tn(t,e){if(t instanceof Zr&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Tn(t,e)&&(r=!1)})),r}En.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(Dr(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;n<r.features.length;++n){var i=r.features[n].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new En(r,r.features[n].geometry)}else if("Feature"===r.type){var o=r.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new En(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new En(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},En.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return wn(t,this.geometries);if("LineString"===t.geometryType())return On(t,this.geometries)}return!1},En.prototype.eachChild=function(){},En.prototype.outputDefined=function(){return!0},En.prototype.serialize=function(){return["within",this.geojson]};var Pn=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Pn.parse=function(t,e){if(2!==t.length||"string"!==typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new Pn(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},Pn.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Pn.prototype.eachChild=function(){},Pn.prototype.outputDefined=function(){return!1},Pn.prototype.serialize=function(){return["var",this.name]};var jn=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new dr),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=n,this.errors=i,this.expectedType=r};function Rn(t){if(t instanceof Pn)return Rn(t.boundExpression);if(t instanceof Zr&&"error"===t.name)return!1;if(t instanceof $r)return!1;if(t instanceof En)return!1;var e=t instanceof Yr||t instanceof Vr,r=!0;return t.eachChild((function(t){r=e?r&&Rn(t):r&&t instanceof zr})),!!r&&(Sn(t)&&Tn(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function Mn(t,e){var r,n,i=t.length-1,o=0,a=i,s=0;while(o<=a)if(s=Math.floor((o+a)/2),r=t[s],n=t[s+1],r<=e){if(s===i||e<n)return s;o=s+1}else{if(!(r>e))throw new Br("Input is not a number.");a=s-1}return 0}jn.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},jn.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new Vr(e,[t]):"coerce"===r?new Yr(e,[t]):t}if(null!==t&&"string"!==typeof t&&"boolean"!==typeof t&&"number"!==typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!==typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,e.typeAnnotation||"coerce");else o=r(o,a,e.typeAnnotation||"assert")}if(!(o instanceof zr)&&"resolvedImage"!==o.type.kind&&Rn(o)){var l=new Kr;try{o=new zr(o.type,o.evaluate(l))}catch(al){return this.error(al.message),null}}return o}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return"undefined"===typeof t?this.error("'undefined' value invalid. Use null instead."):"object"===typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},jn.prototype.concat=function(t,e,r){var n="number"===typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new jn(this.registry,n,e||null,i,this.errors)},jn.prototype.error=function(t){var e=[],r=arguments.length-1;while(r-- >0)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new pr(n,t))},jn.prototype.checkSubtype=function(t,e){var r=jr(t,e);return r&&this.error(r),r};var An=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n<i.length;n+=1){var o=i[n],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};An.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");var r=e.parse(t[1],1,yr);if(!r)return null;var n=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!==typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&&n[n.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,i);if(!c)return null;i=i||c.type,n.push([a,c])}return new An(i,r,n)},An.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var o=Mn(e,n);return r[o].evaluate(t)},An.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1){var n=r[e];t(n)}},An.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},An.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ln=In;function In(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}function kn(t,e,r){return t*(1-r)+e*r}function Fn(t,e,r){return new Qe(kn(t.r,e.r,r),kn(t.g,e.g,r),kn(t.b,e.b,r),kn(t.a,e.a,r))}function Dn(t,e,r){return t.map((function(t,n){return kn(t,e[n],r)}))}In.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},In.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},In.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},In.prototype.solveCurveX=function(t,e){var r,n,i,o,a;for("undefined"===typeof e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if(r=0,n=1,i=t,i<r)return r;if(i>n)return n;while(r<n){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?r=i:n=i,i=.5*(n-r)+r}return i},In.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var Nn=Object.freeze({__proto__:null,number:kn,color:Fn,array:Dn}),Gn=.95047,zn=1,Bn=1.08883,Un=4/29,Vn=6/29,Xn=3*Vn*Vn,Wn=Vn*Vn*Vn,Hn=Math.PI/180,Yn=180/Math.PI;function qn(t){return t>Wn?Math.pow(t,1/3):t/Xn+Un}function Kn(t){return t>Vn?t*t*t:Xn*(t-Un)}function Zn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Jn(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $n(t){var e=Jn(t.r),r=Jn(t.g),n=Jn(t.b),i=qn((.4124564*e+.3575761*r+.1804375*n)/Gn),o=qn((.2126729*e+.7151522*r+.072175*n)/zn),a=qn((.0193339*e+.119192*r+.9503041*n)/Bn);return{l:116*o-16,a:500*(i-o),b:200*(o-a),alpha:t.a}}function Qn(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=zn*Kn(e),r=Gn*Kn(r),n=Bn*Kn(n),new Qe(Zn(3.2404542*r-1.5371385*e-.4985314*n),Zn(-.969266*r+1.8760108*e+.041556*n),Zn(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function ti(t,e,r){return{l:kn(t.l,e.l,r),a:kn(t.a,e.a,r),b:kn(t.b,e.b,r),alpha:kn(t.alpha,e.alpha,r)}}function ei(t){var e=$n(t),r=e.l,n=e.a,i=e.b,o=Math.atan2(i,n)*Yn;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}}function ri(t){var e=t.h*Hn,r=t.c,n=t.l;return Qn({l:n,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function ni(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function ii(t,e,r){return{h:ni(t.h,e.h,r),c:kn(t.c,e.c,r),l:kn(t.l,e.l,r),alpha:kn(t.alpha,e.alpha,r)}}var oi={forward:$n,reverse:Qn,interpolate:ti},ai={forward:ei,reverse:ri,interpolate:ii},si=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function li(t,e,r,n){var i=n-r,o=t-r;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}si.interpolationFactor=function(t,e,r,n){var i=0;if("exponential"===t.name)i=li(e,t.base,r,n);else if("linear"===t.name)i=li(e,1,r,n);else if("cubic-bezier"===t.name){var o=t.controlPoints,a=new Ln(o[0],o[1],o[2],o[3]);i=a.solve(li(e,1,r,n))}return i},si.parse=function(t,e){var r=t[0],n=t[1],i=t[2],o=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!==typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return"number"!==typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");if(i=e.parse(i,2,yr),!i)return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=_r:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],f=o[c+1],p=c+3,d=c+4;if("number"!==typeof h)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&&l[l.length-1][0]>=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(f,d,u);if(!g)return null;u=u||g.type,l.push([h,g])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"===typeof u.N?new si(u,r,n,i,l):e.error("Type "+Tr(u)+" is not interpolatable.")},si.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var o=Mn(e,n),a=e[o],s=e[o+1],l=si.interpolationFactor(this.interpolation,n,a,s),u=r[o].evaluate(t),c=r[o+1].evaluate(t);return"interpolate"===this.operator?Nn[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?ai.reverse(ai.interpolate(ai.forward(u),ai.forward(c),l)):oi.reverse(oi.interpolate(oi.forward(u),oi.forward(c),l))},si.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1){var n=r[e];t(n)}},si.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},si.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r<this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ui=function(t,e){this.type=t,this.args=e};ui.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var r=null,n=e.expectedType;n&&"value"!==n.kind&&(r=n);for(var i=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!l)return null;r=r||l.type,i.push(l)}var u=n&&i.some((function(t){return jr(n,t.type)}));return new ui(u?xr:r,i)},ui.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,o=this.args;i<o.length;i+=1){var a=o[i];if(n++,r=a.evaluate(t),r&&r instanceof kr&&!r.available&&(e||(e=r),r=null,n===this.args.length))return e;if(null!==r)break}return r},ui.prototype.eachChild=function(t){this.args.forEach(t)},ui.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ui.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ci=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ci.prototype.evaluate=function(t){return this.result.evaluate(t)},ci.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1){var n=r[e];t(n[1])}t(this.result)},ci.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],n=1;n<t.length-1;n+=2){var i=t[n];if("string"!==typeof i)return e.error("Expected string, but found "+typeof i+" instead.",n);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);var o=e.parse(t[n+1],n+1);if(!o)return null;r.push([i,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return a?new ci(r,a):null},ci.prototype.outputDefined=function(){return this.result.outputDefined()},ci.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t.push(i,o.serialize())}return t.push(this.result.serialize()),t};var hi=function(t,e,r){this.type=t,this.index=e,this.input=r};hi.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,yr),n=e.parse(t[2],2,Cr(e.expectedType||xr));if(!r||!n)return null;var i=n.type;return new hi(i.itemType,r,n)},hi.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new Br("Array index out of bounds: "+e+" < 0.");if(e>=r.length)throw new Br("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new Br("Array index must be an integer, but found "+e+" instead.");return r[e]},hi.prototype.eachChild=function(t){t(this.index),t(this.input)},hi.prototype.outputDefined=function(){return!1},hi.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var fi=function(t,e){this.type=mr,this.needle=t,this.haystack=e};fi.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,xr),n=e.parse(t[2],2,xr);return r&&n?Rr(r.type,[mr,vr,yr,gr,xr])?new fi(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead"):null},fi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(null==r)return!1;if(!Mr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Nr(e))+" instead.");if(!Mr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Nr(r))+" instead.");return r.indexOf(e)>=0},fi.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fi.prototype.outputDefined=function(){return!0},fi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pi=function(t,e,r){this.type=yr,this.needle=t,this.haystack=e,this.fromIndex=r};pi.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,xr),n=e.parse(t[2],2,xr);if(!r||!n)return null;if(!Rr(r.type,[mr,vr,yr,gr,xr]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new pi(r,n,i):null}return new pi(r,n)},pi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Mr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Nr(e))+" instead.");if(!Mr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Nr(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},pi.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},pi.prototype.outputDefined=function(){return!1},pi.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var di=function(t,e,r,n,i,o){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=o};di.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!==1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var f=h[c];if("number"!==typeof f&&"string"!==typeof f)return u.error("Branch labels must be numbers or strings.");if("number"===typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"===typeof f&&Math.floor(f)!==f)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,Nr(f)))return null}else r=Nr(f);if("undefined"!==typeof i[String(f)])return u.error("Branch labels must be unique.");i[String(f)]=o.length}var p=e.parse(l,a,n);if(!p)return null;n=n||p.type,o.push(p)}var d=e.parse(t[1],1,xr);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new di(r,n,d,i,o,g):null},di.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=Nr(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise;return r.evaluate(t)},di.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},di.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},di.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=Object.keys(this.cases).sort(),n=[],i={},o=0,a=r;o<a.length;o+=1){var s=a[o],l=i[this.cases[s]];void 0===l?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[l][1].push(s)}for(var u=function(e){return"number"===t.inputType.kind?Number(e):e},c=0,h=n;c<h.length;c+=1){var f=h[c],p=(l=f[0],f[1]);1===p.length?e.push(u(p[0])):e.push(p.map(u)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var gi=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};gi.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!==0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],i=1;i<t.length-1;i+=2){var o=e.parse(t[i],i,mr);if(!o)return null;var a=e.parse(t[i+1],i+1,r);if(!a)return null;n.push([o,a]),r=r||a.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new gi(r,n,s):null},gi.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];if(i.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},gi.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t(i),t(o)}t(this.otherwise)},gi.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];var e=t[1];return e.outputDefined()}))&&this.otherwise.outputDefined()},gi.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var yi=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function vi(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function mi(t,e,r){return e===r}function _i(t,e,r){return e!==r}function bi(t,e,r){return e<r}function xi(t,e,r){return e>r}function wi(t,e,r){return e<=r}function Oi(t,e,r){return e>=r}function Ei(t,e,r,n){return 0===n.compare(e,r)}function Si(t,e,r,n){return!Ei(t,e,r,n)}function Ci(t,e,r,n){return n.compare(e,r)<0}function Ti(t,e,r,n){return n.compare(e,r)>0}function Pi(t,e,r,n){return n.compare(e,r)<=0}function ji(t,e,r,n){return n.compare(e,r)>=0}function Ri(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=mr,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],o=e.parse(t[1],1,xr);if(!o)return null;if(!vi(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Tr(o.type)+"'.");var a=e.parse(t[2],2,xr);if(!a)return null;if(!vi(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Tr(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Tr(o.type)+"' and '"+Tr(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Vr(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Vr(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(s=e.parse(t[3],3,Or),!s)return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=Nr(o),l=Nr(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Br('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var u=Nr(o),c=Nr(a);if("string"!==u.kind||"string"!==c.kind)return e(i,o,a)}return this.collator?r(i,o,a,this.collator.evaluate(i)):e(i,o,a)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}yi.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,xr),n=e.parse(t[2],2,yr);if(!r||!n)return null;if(!Rr(r.type,[Cr(xr),vr,xr]))return e.error("Expected first argument to be of type array or string, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new yi(r.type,r,n,i):null}return new yi(r.type,r,n)},yi.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Mr(e,["string","array"]))throw new Br("Expected first argument to be of type array or string, but found "+Tr(Nr(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},yi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},yi.prototype.outputDefined=function(){return!1},yi.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Mi=Ri("==",mi,Ei),Ai=Ri("!=",_i,Si),Li=Ri("<",bi,Ci),Ii=Ri(">",xi,Ti),ki=Ri("<=",wi,Pi),Fi=Ri(">=",Oi,ji),Di=function(t,e,r,n,i){this.type=vr,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Di.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,yr);if(!r)return null;var n=t[2];if("object"!==typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n["locale"]&&(i=e.parse(n["locale"],1,vr),!i))return null;var o=null;if(n["currency"]&&(o=e.parse(n["currency"],1,vr),!o))return null;var a=null;if(n["min-fraction-digits"]&&(a=e.parse(n["min-fraction-digits"],1,yr),!a))return null;var s=null;return n["max-fraction-digits"]&&(s=e.parse(n["max-fraction-digits"],1,yr),!s)?null:new Di(r,i,o,a,s)},Di.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Di.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Di.prototype.outputDefined=function(){return!1},Di.prototype.serialize=function(){var t={};return this.locale&&(t["locale"]=this.locale.serialize()),this.currency&&(t["currency"]=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Ni=function(t){this.type=yr,this.input=t};Ni.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Tr(r.type)+" instead."):new Ni(r):null},Ni.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"===typeof e)return e.length;if(Array.isArray(e))return e.length;throw new Br("Expected value to be of type string or array, but found "+Tr(Nr(e))+" instead.")},Ni.prototype.eachChild=function(t){t(this.input)},Ni.prototype.outputDefined=function(){return!1},Ni.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Gi={"==":Mi,"!=":Ai,">":Ii,"<":Li,">=":Fi,"<=":ki,array:Vr,at:hi,boolean:Vr,case:gi,coalesce:ui,collator:$r,format:Xr,image:Wr,in:fi,"index-of":pi,interpolate:si,"interpolate-hcl":si,"interpolate-lab":si,length:Ni,let:ci,literal:zr,match:di,number:Vr,"number-format":Di,object:Vr,slice:yi,step:An,string:Vr,"to-boolean":Yr,"to-color":Yr,"to-number":Yr,"to-string":Yr,var:Pn,within:En};function zi(t,e){var r=e[0],n=e[1],i=e[2],o=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=Fr(r,n,i,a);if(s)throw new Br(s);return new Qe(r/255*a,n/255*a,i/255*a,a)}function Bi(t,e){return t in e}function Ui(t,e){var r=e[t];return"undefined"===typeof r?null:r}function Vi(t,e,r,n){while(r<=n){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}function Xi(t){return{type:t}}function Wi(t){return{result:"success",value:t}}function Hi(t){return{result:"error",value:t}}function Yi(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function qi(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Ki(t){return!!t.expression&&t.expression.interpolated}function Zi(t){return"object"===typeof t&&null!==t&&!Array.isArray(t)}Zr.register(Gi,{error:[wr,[vr],function(t,e){var r=e[0];throw new Br(r.evaluate(t))}],typeof:[vr,[xr],function(t,e){var r=e[0];return Tr(Nr(r.evaluate(t)))}],"to-rgba":[Cr(yr,4),[_r],function(t,e){var r=e[0];return r.evaluate(t).toArray()}],rgb:[_r,[yr,yr,yr],zi],rgba:[_r,[yr,yr,yr,yr],zi],has:{type:mr,overloads:[[[vr],function(t,e){var r=e[0];return Bi(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Bi(r.evaluate(t),n.evaluate(t))}]]},get:{type:xr,overloads:[[[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Ui(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[xr,[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.featureState||{})}],properties:[br,[],function(t){return t.properties()}],"geometry-type":[vr,[],function(t){return t.geometryType()}],id:[xr,[],function(t){return t.id()}],zoom:[yr,[],function(t){return t.globals.zoom}],pitch:[yr,[],function(t){return t.globals.pitch||0}],"distance-from-center":[yr,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[yr,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[yr,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[yr,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[xr,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[yr,Xi(yr),function(t,e){for(var r=0,n=0,i=e;n<i.length;n+=1){var o=i[n];r+=o.evaluate(t)}return r}],"*":[yr,Xi(yr),function(t,e){for(var r=1,n=0,i=e;n<i.length;n+=1){var o=i[n];r*=o.evaluate(t)}return r}],"-":{type:yr,overloads:[[[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[yr],function(t,e){var r=e[0];return-r.evaluate(t)}]]},"/":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],"%":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[yr,[],function(){return Math.LN2}],pi:[yr,[],function(){return Math.PI}],e:[yr,[],function(){return Math.E}],"^":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[yr,[yr],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[yr,[yr],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[yr,[yr],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[yr,[yr],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[yr,[yr],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[yr,[yr],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[yr,[yr],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[yr,Xi(yr),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[yr,Xi(yr),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[yr,[yr],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[yr,[yr],function(t,e){var r=e[0],n=r.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[yr,[yr],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[yr,[yr],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[mr,[xr],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[mr,[vr],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i<o}],"filter-id-<":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<i}],"filter->":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i>o}],"filter-id->":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>i}],"filter-<=":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i<=o}],"filter-id-<=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<=i}],"filter->=":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i>=o}],"filter-id->=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>=i}],"filter-has":[mr,[xr],function(t,e){var r=e[0];return r.value in t.properties()}],"filter-has-id":[mr,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[mr,[Cr(vr)],function(t,e){var r=e[0];return r.value.indexOf(t.geometryType())>=0}],"filter-id-in":[mr,[Cr(xr)],function(t,e){var r=e[0];return r.value.indexOf(t.id())>=0}],"filter-in-small":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return n.value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return Vi(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Xi(mr),function(t,e){for(var r=0,n=e;r<n.length;r+=1){var i=n[r];if(!i.evaluate(t))return!1}return!0}]]},any:{type:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Xi(mr),function(t,e){for(var r=0,n=e;r<n.length;r+=1){var i=n[r];if(i.evaluate(t))return!0}return!1}]]},"!":[mr,[mr],function(t,e){var r=e[0];return!r.evaluate(t)}],"is-supported-script":[mr,[vr],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toUpperCase()}],downcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toLowerCase()}],concat:[vr,Xi(xr),function(t,e){return e.map((function(e){return Gr(e.evaluate(t))})).join("")}],"resolved-locale":[vr,[Or],function(t,e){var r=e[0];return r.evaluate(t).resolvedLocale()}]});var Ji=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Kr,this._defaultValue=e?oo(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function $i(t){return Array.isArray(t)&&t.length>0&&"string"===typeof t[0]&&t[0]in Gi}function Qi(t,e){var r=new jn(Gi,[],e?io(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Wi(new Ji(n,e)):Hi(r.errors)}Ji.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o,a,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},Ji.prototype.evaluate=function(t,e,r,n,i,o,a,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{var l=this.expression.evaluate(this._evaluator);if(null===l||void 0===l||"number"===typeof l&&l!==l)return this._defaultValue;if(this._enumValues&&!(l in this._enumValues))throw new Br("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(l)+" instead.");return l}catch(al){return this._warningHistory[al.message]||(this._warningHistory[al.message]=!0,"undefined"!==typeof console&&console.warn(al.message)),this._defaultValue}};var to=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Cn(e.expression)};to.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},to.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)};var eo=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Cn(e.expression),this.interpolationType=n};function ro(t,e){if(t=Qi(t,e),"error"===t.result)return t;var r=t.value.expression,n=Sn(r);if(!n&&!Yi(e))return Hi([new pr("","data expressions not supported")]);var i=Tn(r,["zoom","pitch","distance-from-center"]);if(!i&&!qi(e))return Hi([new pr("","zoom expressions not supported")]);var o=no(r);if(!o&&!i)return Hi([new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof pr)return Hi([o]);if(o instanceof si&&!Ki(e))return Hi([new pr("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Wi(new to(n?"constant":"source",t.value));var a=o instanceof si?o.interpolation:void 0;return Wi(new eo(n?"camera":"composite",t.value,o.labels,a))}function no(t){var e=null;if(t instanceof ci)e=no(t.result);else if(t instanceof ui)for(var r=0,n=t.args;r<n.length;r+=1){var i=n[r];if(e=no(i),e)break}else(t instanceof An||t instanceof si)&&t.input instanceof Zr&&"zoom"===t.input.name&&(e=t);return e instanceof pr||t.eachChild((function(t){var r=no(t);r instanceof pr?e=r:!e&&r?e=new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new pr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function io(t){var e={color:_r,string:vr,number:yr,enum:vr,boolean:mr,formatted:Er,resolvedImage:Sr};return"array"===t.type?Cr(e[t.value]||xr,t.length):e[t.type]}function oo(t){return"color"===t.type&&(Zi(t.default)||Array.isArray(t.default))?new Qe(0,0,0,0):"color"===t.type?Qe.parse(t.default)||null:void 0===t.default?null:t.default}function ao(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function so(t){if(Array.isArray(t))return t.map(so);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=so(t[r]);return e}return ao(t)}eo.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},eo.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)},eo.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?si.interpolationFactor(this.interpolationType,t,e,r):0};var lo={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function uo(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!==typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!uo(n)&&"boolean"!==typeof n)return!1}return!0;default:return!0}}function co(t,e){if(void 0===e&&(e="fill"),null===t||void 0===t)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};uo(t)||(t=xo(t));var r=t,n=!0;try{n=ho(r)}catch(al){console.warn("Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n"+JSON.stringify(r,null,2)+"\n ")}var i=lo["filter_"+e],o=Qi(n,i),a=null;if("error"===o.result)throw new Error(o.value.map((function(t){return t.key+": "+t.message})).join(", "));a=function(t,e,r){return o.value.evaluate(t,e,{},r)};var s=null,l=null;if(n!==r){var u=Qi(r,i);if("error"===u.result)throw new Error(u.value.map((function(t){return t.key+": "+t.message})).join(", "));s=function(t,e,r,n,i){return u.value.evaluate(t,e,{},r,void 0,void 0,n,i)},l=!Sn(u.value.expression)}a=a;var c=bo(n);return{filter:a,dynamicFilter:s||void 0,needGeometry:c,needFeature:!!l}}function ho(t){if(!go(t))return t;var e=so(t);return po(e),e=fo(e),e}function fo(t){if(!Array.isArray(t))return t;var e=mo(t);return!0===e?e:e.map((function(t){return fo(t)}))}function po(t){var e=!1,r=[];if("case"===t[0]){for(var n=1;n<t.length-1;n+=2)e=e||go(t[n]),r.push(t[n+1]);r.push(t[t.length-1])}else if("match"===t[0]){e=e||go(t[1]);for(var i=2;i<t.length-1;i+=2)r.push(t[i+1]);r.push(t[t.length-1])}else if("step"===t[0]){e=e||go(t[1]);for(var o=1;o<t.length-1;o+=2)r.push(t[o+1])}e&&(t.length=0,t.push.apply(t,["any"].concat(r)));for(var a=1;a<t.length;a++)po(t[a])}function go(t){if(!Array.isArray(t))return!1;if(yo(t[0]))return!0;for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return!1}function yo(t){return"pitch"===t||"distance-from-center"===t}var vo=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function mo(t){if(vo.has(t[0]))for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return t}function _o(t,e){return t<e?-1:t>e?1:0}function bo(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if(bo(t[e]))return!0;return!1}function xo(t){if(!t)return!0;var e=t[0];if(t.length<=1)return"any"!==e;var r="=="===e?wo(t[1],t[2],"=="):"!="===e?Co(wo(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?wo(t[1],t[2],e):"any"===e?Oo(t.slice(1)):"all"===e?["all"].concat(t.slice(1).map(xo)):"none"===e?["all"].concat(t.slice(1).map(xo).map(Co)):"in"===e?Eo(t[1],t.slice(2)):"!in"===e?Co(Eo(t[1],t.slice(2))):"has"===e?So(t[1]):"!has"===e?Co(So(t[1])):"within"!==e||t;return r}function wo(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function Oo(t){return["any"].concat(t.map(xo))}function Eo(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!==typeof e[0]}))?["filter-in-large",t,["literal",e.sort(_o)]]:["filter-in-small",t,["literal",e]]}}function So(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Co(t){return["!",t]}var To=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Po(t,e){var r={};for(var n in t)"ref"!==n&&(r[n]=t[n]);return To.forEach((function(t){t in e&&(r[t]=e[t])})),r}function jo(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=Po(t[n],e[t[n].ref]));return t}var Ro={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},Mo=" ",Ao=/(italic|oblique)$/i,Lo={},Io=function(t,e,r){var n=Lo[t];if(!n){Array.isArray(t)||(t=[t]);for(var i,o,a=400,s="normal",l=[],u=0,c=t.length;u<c;++u){var h=t[u],f=h.split(" "),p=f[f.length-1].toLowerCase();for(var d in"normal"==p||"italic"==p||"oblique"==p?(s=o?s:p,f.pop(),p=f[f.length-1].toLowerCase()):Ao.test(p)&&(p=p.replace(Ao,""),s=o?s:f[f.length-1].replace(p,"")),Ro){var g=f.length>1?f[f.length-2].toLowerCase():"";if(p==d||p==d.replace("-","")||g+"-"+p==d){a=i?a:Ro[d],f.pop(),g&&d.startsWith(g)&&f.pop();break}}i||"number"!=typeof p||(a=p);var y=f.join(Mo).replace("Klokantech Noto Sans","Noto Sans");-1!==y.indexOf(Mo)&&(y='"'+y+'"'),l.push(y)}n=Lo[t]=[s,a,l]}return n[0]+Mo+n[1]+Mo+e+"px"+(r?"/"+r:"")+Mo+n[2]},ko="https://api.mapbox.com";function Fo(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Do(t,e,r){var n=Fo(t);if(!n)return decodeURI(new URL(t,r).href);var i="sprites/";if(0!==n.indexOf(i))throw new Error("unexpected sprites url: "+t);var o=n.slice(i.length);return ko+"/styles/v1/"+o+"/sprite?access_token="+e}function No(t,e){var r=Fo(t);if(!r)return decodeURI(new URL(t,location.href).href);var n="styles/";if(0!==r.indexOf(n))throw new Error("unexpected style url: "+t);var i=r.slice(n.length);return ko+"/styles/v1/"+i+"?&access_token="+e}function Go(t,e,r,n){var i=new URL(t,n),o=Fo(t);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+e:e?(i.searchParams.set(r,e),decodeURI(i.href)):decodeURI(i.href)}function zo(t){return t*Math.PI/180}var Bo=function(){for(var t=[],e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function Uo(t,e){if("undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas)return new OffscreenCanvas(t,e);var r=document.createElement("canvas");return r.width=t,r.height=e,r}function Vo(t,e){for(var r=0,n=e.length;r<n;++r){var i=e[r];if(i<t&&r+1<n){var o=e[r]/e[r+1];return r+Math.log(e[r]/t)/Math.log(o)}}return n-1}var Xo={};function Wo(t,e,r){if(void 0===r&&(r={}),e in Xo)return Xo[e];var n=r.transformRequest&&r.transformRequest(e,t)||new Request(e);n.headers.get("Accept")||n.headers.set("Accept","application/json");var i=fetch(n).then((function(t){return delete Xo[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete Xo[e],Promise.reject(new Error("Error fetching source "+e))}));return Xo[e]=i,i}function Ho(t,e){if("string"!==typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return t=No(t,e.accessToken),Wo("Style",t,e);try{var r=JSON.parse(t);return Promise.resolve(r)}catch(n){return Promise.reject(n)}}var Yo={};function qo(t,e,r){void 0===r&&(r={});var n=[e,JSON.stringify(t)].toString(),i=Yo[n];if(!i||r.transformRequest){var o=t.url;if(o&&!t.tiles){var a=Go(o,r.accessToken,r.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},t,{url:void 0,tiles:a})):Wo("Source",a,r).then((function(t){for(var e=0,n=t.tiles.length;e<n;++e){var i=t.tiles[e];if(r.transformRequest){var o=r.transformRequest(a,"Source");o&&(a=o.url)}var s=Go(i,r.accessToken,r.accessTokenParam||"access_token",a);if(r.transformRequest){var l=r.transformRequest(s,"Tiles");l instanceof Request&&(s=decodeURI(l.url))}t.tiles[e]=s}return Promise.resolve(t)}))}else t=Object.assign({},t,{tiles:t.tiles.map((function(t){return Go(t,r.accessToken,r.accessTokenParam||"access_token",e||location.href)}))}),i=Promise.resolve(Object.assign({},t));Yo[n]=i}return i}var Ko,Zo=Array(256).join(" ");function Jo(t,e){if(e>=.05){for(var r="",n=t.split("\n"),i=Zo.slice(0,Math.round(e/.1)),o=0,a=n.length;o<a;++o)o>0&&(r+="\n"),r+=n[o].split("").join(i);return r}return t}function $o(){return Ko||(Ko=Uo(1,1).getContext("2d")),Ko}function Qo(t,e){return $o().measureText(t).width+(t.length-1)*e}var ta={};function ea(t,e,r,n){if(-1!==t.indexOf("\n")){for(var i=t.split("\n"),o=[],a=0,s=i.length;a<s;++a)o.push(ea(i[a],e,r,n));return o.join("\n")}var l=r+","+e+","+t+","+n,u=ta[l];if(!u){var c=t.split(" ");if(c.length>1){var h=$o();h.font=e;for(var f=h.measureText("M").width,p=f*r,d="",g=[],y=0,v=c.length;y<v;++y){var m=c[y],_=d+(d?" ":"")+m;Qo(_,n)<=p?d=_:(d&&g.push(d),d=m)}d&&g.push(d);for(var b=0,x=g.length;b<x&&x>1;++b){var w=g[b];if(Qo(w,n)<.35*p){var O=b>0?Qo(g[b-1],n):1/0,E=b<x-1?Qo(g[b+1],n):1/0;g.splice(b,1),x-=1,O<E?(g[b-1]+=" "+w,b-=1):g[b]=w+" "+g[b]}}for(var S=0,C=g.length-1;S<C;++S){var T=g[S],P=g[S+1];if(Qo(T,n)>.7*p&&Qo(P,n)<.6*p){var j=T.split(" "),R=j.pop();Qo(R,n)<.2*p&&(g[S]=j.join(" "),g[S+1]=R+" "+P),C-=1}}u=g.join("\n")}else u=t;u=Jo(u,n),ta[l]=u}return u}var ra,na=/font-family: ?([^;]*);/,ia=/("|')/g;function oa(t){if(!ra){ra={};for(var e=document.styleSheets,r=0,n=e.length;r<n;++r){var i=e[r];try{var o=i.rules||i.cssRules;if(o)for(var a=0,s=o.length;a<s;++a){var l=o[a];if(5==l.type){var u=l.cssText.match(na);ra[u[1].replace(ia,"")]=!0}}}catch(al){}}}return t in ra}var aa={};function sa(t){var e=t.toString();if(e in aa)return aa[e];for(var r=[],n=0,i=t.length;n<i;++n){t[n]=t[n].replace("Arial Unicode MS","Arial");var o=t[n],a=Io(o,1);Object(ze["q"])(a);var s=a.split(" ");r.push([s.slice(3).join(" ").replace(/"/g,""),s[1],s[0]])}for(var l=0,u=r.length;l<u;++l){var c=r[l],h=c[0];if(!oa(h)&&100!==ze["a"].get(c[2]+"\n"+c[1]+" \n"+h)){var f="https://fonts.googleapis.com/css?family="+h.replace(/ /g,"+")+":"+c[1]+c[2];if(!document.querySelector('link[href="'+f+'"]')){var p=document.createElement("link");p.href=f,p.rel="stylesheet",document.head.appendChild(p)}}}return aa[e]=t,t}var la,ua,ca={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ha={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},fa=function(t,e){var r=ro(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value},pa={},da={zoom:0};function ga(t,e,r,n,i,o,a){var s=t.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var l=o[s];if(!l[r]){var u=(t[e]||pa)[r],c=lo[e+"_"+t.type][r];void 0===u&&(u=c.default);var h=$i(u);if(!h&&Zi(u)&&(u=er(u,c),h=!0),h){var f=fa(u,c);l[r]=f.evaluate.bind(f)}else"color"==c.type&&(u=Qe.parse(u)),l[r]=function(){return u}}return da.zoom=n,l[r](da,i,a)}function ya(t,e,r,n){var i=ga(t,"layout","icon-allow-overlap",e,r,n);if(!i)return"declutter";var o=ga(t,"layout","icon-ignore-placement",e,r,n);return o?"none":"obstacle"}function va(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=co(e).filter),da.zoom=n,i[t](da,r)}var ma=!1;function _a(t,e){if(t){if(!ma&&(0===t.a||0===e))return;var r=t.a;return e=void 0===e?1:e,0===r?"transparent":"rgba("+Math.round(255*t.r/r)+","+Math.round(255*t.g/r)+","+Math.round(255*t.b/r)+","+r*e+")"}return t}var ba=/\{[^{}}]*\}/g;function xa(t,e){return t.replace(ba,(function(t){return e[t.slice(1,-1)]||""}))}var wa=!1;function Oa(t,e,r,n,i,o,s){if(void 0===n&&(n=Bo),void 0===i&&(i=void 0),void 0===o&&(o=void 0),void 0===s&&(s=void 0),"string"==typeof e&&(e=JSON.parse(e)),8!=e.version)throw new Error("glStyle version 8 required.");var l,u;if(o)if("undefined"!==typeof Image){var p=new Image;p.crossOrigin="anonymous",p.onload=function(){l=p,u=[p.width,p.height],t.changed(),p.onload=null},p.src=o}else if("undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var d=self;d.postMessage({action:"loadImage",src:o}),d.addEventListener("message",(function(t){"imageLoaded"===t.data.action&&t.data.src===o&&(l=t.data.image,u=[l.width,l.height])}))}for(var g,y=jo(e.layers),v={},m=[],_={},b={},x={},w={},O=0,E=y.length;O<E;++O){var S=y[O],C=S.id;if("string"==typeof r&&S.source==r||-1!==r.indexOf(C)){var T=S["source-layer"];if(g){if(S.source!==g)throw new Error('Layer "'+C+'" does not use source "'+g)}else{g=S.source;var P=e.sources[g];if(!P)throw new Error('Source "'+g+'" is not defined');var j=P.type;if("vector"!==j&&"geojson"!==j)throw new Error('Source "'+g+'" is not of type "vector" or "geojson", but "'+j+'"')}var R=v[T];R||(R=[],v[T]=R),R.push({layer:S,index:O}),m.push(C)}}var M=new c["default"],A=new a["default"],L=[],I=function(e,r){var o=e.getProperties(),p=v[o.layer];if(p){var d=n.indexOf(r);-1==d&&(d=Vo(r,n));for(var g,y=ca[e.getGeometry().getType()],m={properties:o,type:y},O=t.get("mapbox-featurestate")[e.getId()],E=-1,S=0,C=p.length;S<C;++S){var T=p[S],P=T.layer,j=P.id,R=P.layout||pa,I=P.paint||pa;if(!("none"===R.visibility||"minzoom"in P&&d<P.minzoom||"maxzoom"in P&&d>=P.maxzoom)){var k=P.filter;if(!k||va(j,k,m,d,w)){g=P;var F=void 0,D=void 0,N=void 0,G=void 0,z=void 0,B=void 0,U=T.index;if(3==y&&("fill"==P.type||"fill-extrusion"==P.type))if(D=ga(P,"paint",P.type+"-opacity",d,m,x,O),P.type+"-pattern"in I){var V=ga(P,"paint",P.type+"-pattern",d,m,x,O);if(V){var X="string"===typeof V?xa(V,o):V.toString();if(l&&i&&i[X]){++E,B=L[E],B&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new h["default"]({fill:new a["default"]}),L[E]=B),N=B.getFill(),B.setZIndex(U);var W=X+"."+D,H=b[W];if(!H){var Y=i[X],q=Uo(Y.width,Y.height),K=q.getContext("2d");K.globalAlpha=D,K.drawImage(l,Y.x,Y.y,Y.width,Y.height,0,0,Y.width,Y.height),H=K.createPattern(q,"repeat"),b[W]=H}N.setColor(H)}}}else F=_a(ga(P,"paint",P.type+"-color",d,m,x,O),D),P.type+"-outline-color"in I&&(z=_a(ga(P,"paint",P.type+"-outline-color",d,m,x,O),D)),z||(z=F),(F||z)&&(++E,B=L[E],(!B||F&&!B.getFill()||!F&&B.getFill()||z&&!B.getStroke()||!z&&B.getStroke()||B.getText())&&(B=new h["default"]({fill:F?new a["default"]:void 0,stroke:z?new c["default"]:void 0}),L[E]=B),F&&(N=B.getFill(),N.setColor(F)),z&&(G=B.getStroke(),G.setColor(z),G.setWidth(.5)),B.setZIndex(U));if(1!=y&&"line"==P.type){F=!("line-pattern"in I)&&"line-color"in I?_a(ga(P,"paint","line-color",d,m,x,O),ga(P,"paint","line-opacity",d,m,x,O)):void 0;var Z=ga(P,"paint","line-width",d,m,x,O);F&&Z>0&&(++E,B=L[E],B&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new h["default"]({stroke:new c["default"]}),L[E]=B),G=B.getStroke(),G.setLineCap(ga(P,"layout","line-cap",d,m,x,O)),G.setLineJoin(ga(P,"layout","line-join",d,m,x,O)),G.setMiterLimit(ga(P,"layout","line-miter-limit",d,m,x,O)),G.setColor(F),G.setWidth(Z),G.setLineDash(I["line-dasharray"]?ga(P,"paint","line-dasharray",d,m,x,O).map((function(t){return t*Z})):null),B.setZIndex(U))}var J=!1,$=null,Q=0,tt=void 0,et=void 0,rt=void 0;if((1==y||2==y)&&"icon-image"in R){var nt=ga(P,"layout","icon-image",d,m,x,O);if(nt){tt="string"===typeof nt?xa(nt,o):nt.toString();var it=void 0;if(l&&i&&i[tt]){var ot=ga(P,"layout","icon-rotation-alignment",d,m,x,O);if(2==y){var at=e.getGeometry();if(at.getFlatMidpoint||at.getFlatMidpoints){var st=at.getExtent(),lt=Math.sqrt(Math.max(Math.pow((st[2]-st[0])/r,2),Math.pow((st[3]-st[1])/r,2)));if(lt>150){var ut="MultiLineString"===at.getType()?at.getFlatMidpoints():at.getFlatMidpoint();ua||(la=[NaN,NaN],ua=new ue("Point",la,[],{},null)),it=ua,la[0]=ut[0],la[1]=ut[1];var ct=ga(P,"layout","symbol-placement",d,m,x,O);if("line"===ct&&"map"===ot)for(var ht=at.getStride(),ft=at.getFlatCoordinates(),pt=0,dt=ft.length-ht;pt<dt;pt+=ht){var gt=ft[pt],yt=ft[pt+1],vt=ft[pt+ht],mt=ft[pt+ht+1],_t=Math.min(gt,vt),bt=Math.min(yt,mt),xt=Math.max(gt,vt),wt=Math.max(yt,mt);if(ut[0]>=_t&&ut[0]<=xt&&ut[1]>=bt&&ut[1]<=wt){Q=Math.atan2(yt-mt,vt-gt);break}}}}}if(2!==y||it){var Ot=ga(P,"layout","icon-size",d,m,x,O),Et=void 0!==I["icon-color"]?ga(P,"paint","icon-color",d,m,x,O):null;if(!Et||0!==Et.a){var St=tt+"."+Ot;if(null!==Et&&(St+="."+Et),et=_[St],!et){var Ct=i[tt],Tt=ya(P,d,m,x);et=new Ge["a"]({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:l,imgSize:u,size:[Ct.width,Ct.height],offset:[Ct.x,Ct.y],rotateWithView:"map"===ot,scale:Ot/Ct.pixelRatio,displacement:"icon-offset"in R?ga(P,"layout","icon-offset",d,m,x,O).map((function(t){return-t*Ct.pixelRatio})):void 0,declutterMode:Tt}),_[St]=et}}et&&(++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setGeometry(it),et.setRotation(Q+zo(ga(P,"layout","icon-rotate",d,m,x,O))),et.setOpacity(ga(P,"paint","icon-opacity",d,m,x,O)),et.setAnchor(ha[ga(P,"layout","icon-anchor",d,m,x,O)]),B.setImage(et),$=B.getText(),B.setText(void 0),B.setZIndex(U),J=!0,rt=!1)}else rt=!0}}}if(1==y&&"circle"===P.type){++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B);var Pt="circle-radius"in I?ga(P,"paint","circle-radius",d,m,x,O):5,jt=_a(ga(P,"paint","circle-stroke-color",d,m,x,O),ga(P,"paint","circle-stroke-opacity",d,m,x,O)),Rt=_a(ga(P,"paint","circle-color",d,m,x,O),ga(P,"paint","circle-opacity",d,m,x,O)),Mt=ga(P,"paint","circle-stroke-width",d,m,x,O),At=Pt+"."+jt+"."+Rt+"."+Mt;et=_[At],et||(et=new Ne["default"]({radius:Pt,stroke:jt&&Mt>0?new c["default"]({width:Mt,color:jt}):void 0,fill:Rt?new a["default"]({color:Rt}):void 0,declutterMode:"none"}),_[At]=et),B.setImage(et),$=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(U),J=!0}var Lt=void 0,It=void 0,kt=void 0,Ft=void 0,Dt=void 0,Nt=void 0;if("text-field"in R){Ft=Math.round(ga(P,"layout","text-size",d,m,x,O));var Gt=ga(P,"layout","text-font",d,m,x,O);kt=ga(P,"layout","text-line-height",d,m,x,O),It=Io(s?s(Gt):Gt,Ft,kt),It.includes("sans-serif")||(It+=",sans-serif"),Dt=ga(P,"layout","text-letter-spacing",d,m,x,O),Nt=ga(P,"layout","text-max-width",d,m,x,O);var zt=ga(P,"layout","text-field",d,m,x,O);Lt="object"===typeof zt&&zt.sections?1===zt.sections.length?zt.toString():zt.sections.reduce((function(t,e,r){var n=e.fontStack?e.fontStack.split(","):Gt,i=Io(s?s(n):n,Ft*(e.scale||1),kt),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=y){o=ea(o,i,Nt,Dt).split("\n");for(var a=0,l=o.length;a<l;++a)a>0&&t.push("\n",""),t.push(o[a],i);return t}t.push(Jo(o,Dt),i)}),[]):xa(zt,o).trim(),D=ga(P,"paint","text-opacity",d,m,x,O)}if(Lt&&D&&!rt){J||(++E,B=L[E],B&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setImage(void 0),B.setGeometry(void 0)),B.getText()||B.setText($||new f["a"]({padding:[2,2,2,2]})),$=B.getText();var Bt=R["text-transform"];"uppercase"==Bt?Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toUpperCase()})):Lt.toUpperCase():"lowercase"==Bt&&(Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toLowerCase()})):Lt.toLowerCase());var Ut=Array.isArray(Lt)?Lt:2==y?Jo(Lt,Dt):ea(Lt,It,Nt,Dt);$.setText(Ut),$.setFont(It),$.setRotation(zo(ga(P,"layout","text-rotate",d,m,x,O)));var Vt=ga(P,"layout","text-anchor",d,m,x,O),Xt=J||1==y?"point":ga(P,"layout","symbol-placement",d,m,x,O);$.setPlacement(Xt),$.setOverflow("point"===Xt);var Wt=ga(P,"paint","text-halo-width",d,m,x,O),Ht=ga(P,"layout","text-offset",d,m,x,O),Yt=ga(P,"paint","text-translate",d,m,x,O),qt=0,Kt=0;if("point"==Xt){var Zt="center";-1!==Vt.indexOf("left")?(Zt="left",Kt=Wt):-1!==Vt.indexOf("right")&&(Zt="right",Kt=-Wt),$.setTextAlign(Zt);var Jt=ga(P,"layout","text-rotation-alignment",d,m,x,O);$.setRotateWithView("map"==Jt)}else $.setMaxAngle(zo(ga(P,"layout","text-max-angle",d,m,x,O))*Lt.length/Ut.length),$.setTextAlign(),$.setRotateWithView(!1);var $t="middle";0==Vt.indexOf("bottom")?($t="bottom",qt=-Wt-.5*(kt-1)*Ft):0==Vt.indexOf("top")&&($t="top",qt=Wt+.5*(kt-1)*Ft),$.setTextBaseline($t),$.setOffsetX(Ht[0]*Ft+Kt+Yt[0]),$.setOffsetY(Ht[1]*Ft+qt+Yt[1]),A.setColor(_a(ga(P,"paint","text-color",d,m,x,O),D)),$.setFill(A);var Qt=_a(ga(P,"paint","text-halo-color",d,m,x,O),D);if(Qt){M.setColor(Qt),Wt*=2;var te=.5*Ft;M.setWidth(Wt<=te?Wt:te),$.setStroke(M)}else $.setStroke(void 0);var ee=ga(P,"layout","text-padding",d,m,x,O),re=$.getPadding();ee!==re[0]&&(re[0]=ee,re[1]=ee,re[2]=ee,re[3]=ee),B.setZIndex(U)}}}}return E>-1?(L.length=E+1,wa&&("function"===typeof e.set?e.set("mapbox-layer",g):e.getProperties()["mapbox-layer"]=g),L):void 0}};return t.setStyle(I),t.set("mapbox-source",g),t.set("mapbox-layers",m),t.set("mapbox-featurestate",{}),I}function Ea(t,e){if(!e.accessToken){e=Object.assign({},e);var r=new URL(t).searchParams;r.forEach((function(t,r){e.accessToken=t,e.accessTokenParam=r}))}return e}function Sa(t,e,r,n,i){var o,a,s;return void 0===r&&(r=""),void 0===n&&(n={}),void 0===i&&(i=void 0),"string"===typeof n?(o=n,s={}):(o=n.styleUrl,s=n),i||(i=s.resolutions),o||"string"!==typeof e||e.trim().startsWith("{")||(o=e),o&&(o=o.startsWith("data:")?location.href:No(o,s.accessToken),s=Ea(o,s)),new Promise((function(n,l){Ho(e,s).then((function(e){if(8!=e.version)return l(new Error("glStyle version 8 required."));if(!(t instanceof p["default"]||t instanceof Fe))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var u,c,h,f,d=t instanceof Fe?"vector":"geojson";if(r?a=Array.isArray(r)?e.layers.find((function(t){return t.id===r[0]})).source:r:(a=Object.keys(e.sources).find((function(t){return e.sources[t].type===d})),r=a),!a)return l(new Error("No "+d+" source found in the glStyle."));function g(){if(t instanceof Fe)return Ma(e.sources[a],o,s).then((function(e){var r=t.getSource();if(r?e!==r&&(r.setTileUrlFunction(e.getTileUrlFunction()),r.format_||(r.format_=e.format_),r.getAttributions()||r.setAttributions(e.getAttributions()),r.getTileLoadFunction()===De["b"]&&r.setTileLoadFunction(e.getTileLoadFunction()),Object(_["equivalent"])(r.getProjection(),e.getProjection())&&(r.tileGrid=e.getTileGrid())):t.setSource(e),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){var n=t.getSource().getTileGrid();t.setMaxResolution(n.getResolution(n.getMinZoom()))}}));var r=e.sources[a],n=t.getSource();n&&n.get("mapbox-source")===r||(n=La(r,o,s));var i=t.getSource();return i?n!==i&&(i.getAttributions()||i.setAttributions(n.getAttributions()),i.format_||(i.format_=n.getFormat()),i.url_=n.getUrl()):t.setSource(n),Promise.resolve()}function y(){f||e.sprite&&!c?f?(t.setStyle(f),g().then(n).catch(l)):l(new Error("Something went wrong trying to apply style.")):(f=Oa(t,e,r,i,c,h,sa),t.getStyle()?g().then(n).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(e.sprite){var v=new URL(Do(e.sprite,s.accessToken,o||location.href));u=window.devicePixelRatio>=1.5?.5:1;var m=.5==u?"@2x":"",b=v.origin+v.pathname+m+".json"+v.search;new Promise((function(t,e){Wo("Sprite",b,s).then(t).catch((function(r){b=v.origin+v.pathname+".json"+v.search,Wo("Sprite",b,s).then(t).catch(e)}))})).then((function(t){if(void 0===t&&l(new Error("No sprites found.")),c=t,h=v.origin+v.pathname+m+".png"+v.search,s.transformRequest){var e=s.transformRequest(h,"SpriteImage");e instanceof Request&&(h=encodeURI(e.url))}y()})).catch((function(t){l(new Error("Sprites cannot be loaded: "+b+": "+t.message))}))}else y()})).catch(l)}))}var Ca={};function Ta(t,e){var r={id:e.id,type:e.type},n={};function i(i){var o=e.layout||{},a=e.paint||{};r["paint"]=a;var s,l,u="function"===typeof t.getSource?t.getSource().getTileGrid().getZForResolution(i):t.getView().getZoom(),c="function"===typeof t.getTargetElement?t.getTargetElement():void 0;if(void 0!==a["background-color"]&&(s=ga(r,"paint","background-color",u,Ca,n),c&&(c.style.background=Qe.parse(s).toString())),void 0!==a["background-opacity"]&&(l=ga(r,"paint","background-opacity",u,Ca,n),c&&(c.style.opacity=l)),"none"!=o.visibility)return _a(s,l);c&&(c.style.backgroundColor="",c.style.opacity="")}if("function"===typeof t.getTargetElement)t.getTargetElement()&&i(),t.on(["change:resolution","change:target"],i);else{if("function"!==typeof t.setBackground)throw new Error("Unable to apply background.");t.setBackground(i)}}function Pa(t,e){e.layers.some((function(e){if("background"===e.type)return Ta(t,e),!0}))}function ja(t,e,r){return void 0===r&&(r={}),"object"===typeof e?(Pa(t,e),Promise.resolve()):Ho(e,r).then((function(e){Pa(t,e)}))}function Ra(t){var e=t.bounds;if(e){var r=Object(_["fromLonLat"])([e[0],e[1]]),n=Object(_["fromLonLat"])([e[2],e[3]]);return[r[0],r[1],n[0],n[1]]}}function Ma(t,e,r){return new Promise((function(n,i){qo(t,e,r).then((function(t){var e=new Ve["a"]({tileJSON:t}),r=e.getTileJSON(),i=e.getTileGrid(),o=Ra(r),a=r.minzoom||0,s=r.maxzoom||22,l={attributions:e.getAttributions(),format:new _e,tileGrid:new Ue["default"]({origin:i.getOrigin(0),extent:o||i.getExtent(),minZoom:a,resolutions:Bo.slice(0,s+1),tileSize:512})};Array.isArray(r.tiles)?l.urls=r.tiles:l.url=r.tiles,t.olSourceOptions&&Object.assign(l,t.olSourceOptions),n(new De["a"](l))})).catch(i)}))}var Aa=new Be["default"];function La(t,e,r){var n=t.data,i={};if("string"==typeof n){var o=Go(n,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(r.transformRequest){var a=r.transformRequest(o,"GeoJSON");a instanceof Request&&(o=encodeURI(a.url))}i.url=o}else i.features=Aa.readFeatures(n,{featureProjection:Object(_["getUserProjection"])()||"EPSG:3857"});var s=new d["default"](Object.assign({attributions:t.attribution,format:Aa},i));return s.set("mapbox-source",t),s}var Ia=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ka=function(t){function e(e){var r=t.call(this,Yt["a"].ERROR)||this;return r.error=e,r}return Ia(e,t),e}(Ht["a"]),Fa=function(t){function e(e){var r=this,n=!("declutter"in e)||e.declutter,i=new De["a"]({state:"loading",format:new _e});r=t.call(this,{source:i,background:e.background,declutter:n,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties})||this,e.accessToken&&(r.accessToken=e.accessToken);var o=e.styleUrl;return Sa(r,o,e.layers||e.source,{accessToken:r.accessToken}).then((function(){i.setState("ready")})).catch((function(t){r.dispatchEvent(new ka(t));var e=r.getSource();e.setState("error")})),void 0===r.getBackground()&&ja(r,e.styleUrl,{accessToken:r.accessToken}),r}return Ia(e,t),e}(Fe),Da=Fa,Na=r("39cf"),Ga=r("da2f"),za=r("ed9b"),Ba=r("869f"),Ua=r("25a5"),Va=r.n(Ua),Xa=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Wa=function(t){function e(e){var r=t.call(this,e)||this;return r.vectorRenderer_=new Ga["a"](e),r.layerImageRatio_=e.getImageRatio(),r.coordinateToVectorPixelTransform_=Object(at["c"])(),r.renderedPixelToCoordinateTransform_=null,r}return Xa(e,t),e.prototype.disposeInternal=function(){this.vectorRenderer_.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getFeatures=function(t){if(!this.vectorRenderer_)return new Promise((function(t){return t([])}));var e=Object(at["a"])(this.coordinateToVectorPixelTransform_,Object(at["a"])(this.renderedPixelToCoordinateTransform_,t.slice()));return this.vectorRenderer_.getFeatures(e)},e.prototype.handleFontsChanged=function(){this.vectorRenderer_.handleFontsChanged()},e.prototype.prepareFrame=function(t){var e=t.pixelRatio,r=t.viewState,n=r.resolution,i=t.viewHints,o=this.vectorRenderer_,a=t.extent;1!==this.layerImageRatio_&&(a=a.slice(0),Object(g["scaleFromCenter"])(a,this.layerImageRatio_));var s=Object(g["getWidth"])(a)/n,l=Object(g["getHeight"])(a)/n;if(!i[A["a"].ANIMATING]&&!i[A["a"].INTERACTING]&&!Object(g["isEmpty"])(a)){o.useContainer(null,null);var u=o.context,c=t.layerStatesArray[t.layerIndex];u.globalAlpha=c.opacity;var h=Object(y["a"])({},c,{opacity:1}),f=Object(y["a"])({},t,{declutterTree:new Va.a(9),extent:a,size:[s,l],viewState:Object(y["a"])({},t.viewState,{rotation:0}),layerStatesArray:[h],layerIndex:0}),p=!0,d=new za["a"](a,n,e,u.canvas,(function(t){o.prepareFrame(f)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(f,null)&&(o.renderDeclutter(f),p=!1),t())}));d.addEventListener(Yt["a"].CHANGE,function(){if(d.getState()===Ba["a"].LOADED){this.image_=p?null:d;var t=d.getResolution(),n=d.getPixelRatio(),i=t*e/n;this.renderedResolution=i,this.coordinateToVectorPixelTransform_=Object(at["b"])(this.coordinateToVectorPixelTransform_,s/2,l/2,1/i,-1/i,0,-r.center[0],-r.center[1])}}.bind(this)),d.load()}return this.image_&&(this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice()),!!this.image_},e.prototype.preRender=function(){},e.prototype.postRender=function(){},e.prototype.renderDeclutter=function(){},e.prototype.forEachFeatureAtCoordinate=function(e,r,n,i,o){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,r,n,i,o):t.prototype.forEachFeatureAtCoordinate.call(this,e,r,n,i,o)},e}(Na["a"]),Ha=Wa,Ya=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),qa=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);return delete i.imageRatio,r=t.call(this,i)||this,r.imageRatio_=void 0!==n.imageRatio?n.imageRatio:1,r}return Ya(e,t),e.prototype.getImageRatio=function(){return this.imageRatio_},e.prototype.createRenderer=function(){return new Ha(this)},e}(R["a"]),Ka=qa,Za=function(){function t(t,e){this.name=t,this.data=e,this.texture_=null}return t.prototype.getTexture=function(t){if(!this.texture_){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.data.length/4,1,0,t.RGBA,t.UNSIGNED_BYTE,this.data),this.texture_=e}return this.texture_},t}(),Ja=Za,$a=r("5116"),Qa=r("dc07"),ts=r("e134"),es=r("0ec0"),rs=r("7f98"),ns=r("2efc"),is=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function os(t,e,r){var n=r?t.LINEAR:t.NEAREST;t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n)}function as(t,e,r,n){os(t,e,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r)}function ss(t,e,r,n,i,o){var a,s,l=t.getGL();if(r instanceof Float32Array){a=l.FLOAT,t.getExtension("OES_texture_float");var u=t.getExtension("OES_texture_float_linear");s=null!==u}else a=l.UNSIGNED_BYTE,s=!0;os(l,e,o&&s);var c,h=r.byteLength/n[1],f=1;switch(h%8===0?f=8:h%4===0?f=4:h%2===0&&(f=2),i){case 1:c=l.LUMINANCE;break;case 2:c=l.LUMINANCE_ALPHA;break;case 3:c=l.RGB;break;case 4:c=l.RGBA;break;default:throw new Error("Unsupported number of bands: ".concat(i))}var p=l.getParameter(l.UNPACK_ALIGNMENT);l.pixelStorei(l.UNPACK_ALIGNMENT,f),l.texImage2D(l.TEXTURE_2D,0,c,n[0],n[1],0,c,a,r),l.pixelStorei(l.UNPACK_ALIGNMENT,p)}var ls=null;function us(){var t=document.createElement("canvas");t.width=1,t.height=1,ls=t.getContext("2d")}var cs=function(t){function e(e){var r=t.call(this)||this;r.tile,r.textures=[],r.handleTileChange_=r.handleTileChange_.bind(r),r.renderSize_=Object(Te["d"])(e.grid.getTileSize(e.tile.tileCoord[0])),r.gutter_=e.gutter||0,r.bandCount=NaN,r.helper_=e.helper;var n=new K(I,D);return n.fromArray([0,1,1,1,1,0,0,0]),r.helper_.flushBufferData(n),r.coords=n,r.setTile(e.tile),r}return is(e,t),e.prototype.setTile=function(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(Yt["a"].CHANGE,this.handleTileChange_),this.tile=t,this.textures.length=0,this.loaded=t.getState()===Oe["a"].LOADED,this.loaded)this.uploadTile_();else{if(t instanceof rs["a"]){var e=t.getImage();e instanceof Image&&!e.crossOrigin&&(e.crossOrigin="anonymous")}t.addEventListener(Yt["a"].CHANGE,this.handleTileChange_)}},e.prototype.uploadTile_=function(){var t=this.helper_,e=t.getGL(),r=this.tile;if(r instanceof rs["a"]||r instanceof ns["a"]){var n=e.createTexture();return this.textures.push(n),this.bandCount=4,void as(e,n,r.getImage(),r.interpolate)}var i=r.getSize(),o=[i[0]+2*this.gutter_,i[1]+2*this.gutter_],a=r.getData(),s=a instanceof Float32Array,l=o[0]*o[1],u=s?Float32Array:Uint8Array,c=u.BYTES_PER_ELEMENT,h=a.byteLength/o[1];this.bandCount=Math.floor(h/c/o[0]);var f=Math.ceil(this.bandCount/4);if(1===f){n=e.createTexture();return this.textures.push(n),void ss(t,n,a,o,this.bandCount,r.interpolate)}for(var p=new Array(f),d=0;d<f;++d){n=e.createTexture();this.textures.push(n);var g=d<f-1?4:this.bandCount%4;p[d]=new u(l*g)}for(var y=0,v=0,m=o[0]*this.bandCount,_=0;_<o[1];++_){for(var b=0;b<m;++b){var x=a[v+b],w=Math.floor(y/this.bandCount),O=b%this.bandCount,E=(d=Math.floor(O/4),p[d]),S=(g=E.length/l,O%4);E[w*g+S]=x,++y}v+=h/c}for(d=0;d<f;++d){n=this.textures[d],E=p[d],g=E.length/l;ss(t,n,E,o,g,r.interpolate)}},e.prototype.handleTileChange_=function(){this.tile.getState()===Oe["a"].LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(Yt["a"].CHANGE))},e.prototype.disposeInternal=function(){var t=this.helper_.getGL();this.helper_.deleteBuffer(this.coords);for(var e=0;e<this.textures.length;++e)t.deleteTexture(this.textures[e]);this.tile.removeEventListener(Yt["a"].CHANGE,this.handleTileChange_)},e.prototype.getPixelData=function(t,e){if(!this.loaded)return null;var r=this.renderSize_[0],n=this.renderSize_[1],i=this.gutter_;if(this.tile instanceof ts["a"]){var o=this.tile.getSize(),a=o[0],s=o[1],l=a+2*i,u=s+2*i,c=i+Math.floor(a*(t/r)),h=i+Math.floor(s*(e/n)),f=this.tile.getData();if(f instanceof DataView){var p=f.byteLength/(l*u),d=p*(h*l+c),g=f.buffer.slice(d,d+p);return new DataView(g)}var y=this.bandCount*(h*l+c);return f.slice(y,y+this.bandCount)}ls||us(),ls.clearRect(0,0,1,1);var v,m=this.tile.getImage(),_=m.width,b=m.height,x=_-2*i,w=b-2*i,O=i+Math.floor(x*(t/r)),E=i+Math.floor(w*(e/n));try{ls.drawImage(m,O,E,1,1,0,0,1,1),v=ls.getImageData(0,0,1,1).data}catch(S){return ls=null,null}return v},e}(es["a"]),hs=cs,fs=r("2c30"),ps=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ds={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},gs={TEXTURE_COORD:"a_textureCoord"},ys=[{name:gs.TEXTURE_COORD,size:2,type:ht.FLOAT}],vs={};function ms(t){return 2*(1-1/(t+1))-1}function _s(t,e,r){r in t||(t[r]=[]),t[r].push(e)}function bs(t,e){var r=t.layerStatesArray[t.layerIndex];r.extent&&(e=Object(g["getIntersection"])(e,Object(_["fromUserExtent"])(r.extent,t.viewState.projection)));var n=r.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(t.viewState.projection).getExtent();i&&(e=Object(g["getIntersection"])(e,i))}return e}function xs(t,e){return"".concat(t.getKey(),",").concat(Object(fs["d"])(e))}var ws=function(t){function e(e,r){var n=t.call(this,e,{uniforms:r.uniforms})||this;n.renderComplete=!1,n.tileTransform_=Object(at["c"])(),n.tempMat4_=st(),n.tempTileRange_=new Qa["b"](0,0,0,0),n.tempTileCoord_=Object(fs["a"])(0,0,0),n.tempSize_=[0,0],n.program_,n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.indices_=new K(k,D),n.indices_.fromArray([0,1,3,1,2,3]);var i=void 0!==r.cacheSize?r.cacheSize:512;return n.tileTextureCache_=new $a["a"](i),n.paletteTextures_=r.paletteTextures||[],n.frameState_=null,n}return ps(e,t),e.prototype.reset=function(e){t.prototype.reset.call(this,{uniforms:e.uniforms}),this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.paletteTextures_=e.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==Oe["a"].LOADED||r==Oe["a"].EMPTY||r==Oe["a"].ERROR&&!n},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getRenderSource();return!!r&&(!Object(g["isEmpty"])(bs(t,t.extent))&&"ready"===r.getState())},e.prototype.enqueueTiles=function(t,e,r,n){var i=t.viewState,o=this.getLayer(),a=o.getRenderSource(),s=a.getTileGridForProjection(i.projection),l=a.getGutterForProjection(i.projection),u=Object(et["c"])(a);u in t.wantedTiles||(t.wantedTiles[u]={});for(var c=t.wantedTiles[u],h=this.tileTextureCache_,f=Math.max(r-o.getPreload(),s.getMinZoom(),o.getMinZoom()),p=r;p>=f;--p)for(var d=s.getTileRangeForExtentAndZ(e,p,this.tempTileRange_),g=s.getResolution(p),y=d.minX;y<=d.maxX;++y)for(var v=d.minY;v<=d.maxY;++v){var m=Object(fs["a"])(p,y,v,this.tempTileCoord_),_=xs(a,m),b=void 0,x=void 0;if(h.containsKey(_)&&(b=h.get(_),x=b.tile),!b||b.tile.key!==a.getKey())if(x=a.getTile(p,y,v,t.pixelRatio,i.projection),b)if(this.isDrawableTile_(x))b.setTile(x);else{var w=x.getInterimTile();b.setTile(w)}else b=new hs({tile:x,grid:s,helper:this.helper,gutter:l}),h.set(_,b);_s(n,b,p);var O=x.getKey();c[O]=!0,x.getState()===Oe["a"].IDLE&&(t.tileQueue.isKeyQueued(O)||t.tileQueue.enqueue([x,u,s.getTileCoordCenter(m),g]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var e=this.helper.getGL();this.preRender(e,t);var r=t.viewState,n=this.getLayer(),i=n.getRenderSource(),o=i.getTileGridForProjection(r.projection),a=i.getGutterForProjection(r.projection),s=bs(t,t.extent),l=o.getZForResolution(r.resolution,i.zDirection),u={};if(t.nextExtent){var c=o.getZForResolution(r.nextResolution,i.zDirection),h=bs(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,s,l,u);for(var f={},p=Object(et["c"])(this),d=t.time,y=!1,v=u[l],m=0,_=v.length;m<_;++m){var b=v[m],x=b.tile,w=x.tileCoord;if(b.loaded){var O=x.getAlpha(p,d);if(1===O){x.endTransition(p);continue}y=!0;var E=Object(fs["d"])(w);f[E]=O}this.renderComplete=!1;var S=this.findAltTiles_(o,w,l+1,u);if(!S)for(var C=o.getMinZoom(),T=l-1;T>=C;--T){var P=this.findAltTiles_(o,w,T,u);if(P)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!y);for(var j=Object.keys(u).map(Number).sort(Pt["i"]),R=r.center[0],M=r.center[1],A=0,L=j.length;A<L;++A){var I=j[A],k=o.getResolution(I),F=Object(Te["d"])(o.getTileSize(I),this.tempSize_),D=o.getOrigin(I),N=F[0]+2*a,G=F[1]+2*a,z=N/G,B=(R-D[0])/(F[0]*k),U=(D[1]-M)/(F[1]*k),V=r.resolution/k,X=ms(I),W=u[I];for(m=0,_=W.length;m<_;++m){b=W[m];if(b.loaded){x=b.tile,w=x.tileCoord,E=Object(fs["d"])(w);var H=w[1],Y=w[2];Object(at["g"])(this.tileTransform_),Object(at["i"])(this.tileTransform_,2/(t.size[0]*V/N),-2/(t.size[1]*V/N)),Object(at["h"])(this.tileTransform_,r.rotation),Object(at["i"])(this.tileTransform_,1,1/z),Object(at["l"])(this.tileTransform_,(F[0]*(H-B)-a)/N,(F[1]*(Y-U)-a)/G),this.helper.setUniformMatrixValue(ds.TILE_TRANSFORM,lt(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(b.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(ys);var q=0;while(q<b.textures.length){var K="TEXTURE"+q,Z="".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(q,"]");e.activeTexture(e[K]),e.bindTexture(e.TEXTURE_2D,b.textures[q]),e.uniform1i(this.helper.getUniformLocation(Z),q),++q}for(var J=0;J<this.paletteTextures_.length;++J){var $=this.paletteTextures_[J];e.activeTexture(e["TEXTURE"+q]);var Q=$.getTexture(e);e.bindTexture(e.TEXTURE_2D,Q),e.uniform1i(this.helper.getUniformLocation($.name),q),++q}O=E in f?f[E]:1;O<1&&(t.animate=!0),this.helper.setUniformFloatValue(ds.TRANSITION_ALPHA,O),this.helper.setUniformFloatValue(ds.DEPTH,X),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_WIDTH,N),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_HEIGHT,G),this.helper.setUniformFloatValue(ds.TEXTURE_RESOLUTION,k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_X,D[0]+H*F[0]*k-a*k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_Y,D[1]-Y*F[1]*k+a*k);var tt=s;a>0&&(tt=o.getTileCoordExtent(w),Object(g["getIntersection"])(tt,s,tt)),this.helper.setUniformFloatVec4(ds.RENDER_EXTENT,tt),this.helper.setUniformFloatValue(ds.RESOLUTION,r.resolution),this.helper.setUniformFloatValue(ds.ZOOM,r.zoom),this.helper.drawElements(0,this.indices_.getSize())}}}this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var rt=this.helper.getCanvas(),nt=this.tileTextureCache_;while(nt.canExpireCache()){b=nt.pop();b.dispose()}var it=function(t,e){i.expireCache(e.viewState.projection,vs)};return t.postRenderFunctions.push(it),this.postRender(e,t),rt},e.prototype.getData=function(t){var e=this.helper.getGL();if(!e)return null;var r=this.frameState_;if(!r)return null;var n=this.getLayer(),i=Object(at["a"])(r.pixelToCoordinateTransform,t.slice()),o=r.viewState,a=n.getExtent();if(a&&!Object(g["containsCoordinate"])(Object(_["fromUserExtent"])(a,o.projection),i))return null;var s,l,u,c=n.getSources(Object(g["boundingExtent"])([i]),o.resolution);for(s=c.length-1;s>=0;--s)if(l=c[s],"ready"===l.getState()){if(u=l.getTileGridForProjection(o.projection),l.getWrapX())break;var h=u.getExtent();if(!h||Object(g["containsCoordinate"])(h,i))break}if(s<0)return null;for(var f=this.tileTextureCache_,p=u.getZForResolution(o.resolution);p>=u.getMinZoom();--p){var d=u.getTileCoordForCoordAndZ(i,p),y=xs(l,d);if(f.containsKey(y)){var v=f.get(y);if(v.loaded){var m=u.getOrigin(p),b=Object(Te["d"])(u.getTileSize(p)),x=u.getResolution(p),w=(i[0]-m[0])/x-d[1]*b[0],O=(m[1]-i[1])/x-d[2]*b[1];return v.getPixelData(w,O)}}}return null},e.prototype.findAltTiles_=function(t,e,r,n){var i=t.getTileRangeForTileCoordAndZ(e,r,this.tempTileRange_);if(!i)return!1;for(var o=!0,a=this.tileTextureCache_,s=this.getLayer().getRenderSource(),l=i.minX;l<=i.maxX;++l)for(var u=i.minY;u<=i.maxY;++u){var c=xs(s,[r,l,u]),h=!1;if(a.containsKey(c)){var f=a.get(c);f.loaded&&(_s(n,f,r),h=!0)}h||(o=!1)}return o},e.prototype.removeHelper=function(){if(this.helper){var e=this.tileTextureCache_;e.forEach((function(t){return t.dispose()})),e.clear()}t.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var e=this.helper;if(e){var r=e.getGL();r.deleteProgram(this.program_),delete this.program_,e.deleteBuffer(this.indices_)}t.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(Tt),Os=ws,Es=r("5c38"),Ss={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},Cs={};function Ts(t){if("number"===typeof t)return Ss.NUMBER;if("boolean"===typeof t)return Ss.BOOLEAN;if("string"===typeof t)return Object(Es["d"])(t)?Ss.COLOR|Ss.STRING:Ss.STRING;if(!Array.isArray(t))throw new Error("Unhandled value type: ".concat(JSON.stringify(t)));var e=t,r=e.every((function(t){return"number"===typeof t}));if(r)return 3===e.length||4===e.length?Ss.COLOR|Ss.NUMBER_ARRAY:Ss.NUMBER_ARRAY;if("string"!==typeof e[0])throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=Cs[e[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function Ps(t){return Object(v["f"])(t)%1===0}function js(t){var e=t.toString();return-1===e.indexOf(".")?e+".0":e}function Rs(t){if(t.length<2||t.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(t.length,"(").concat(t.map(js).join(", "),")")}function Ms(t){var e=Object(Es["a"])(t).slice();return e.length<4&&e.push(1),Rs(e.map((function(t,e){return e<3?t/255:t})))}function As(t,e){return void 0===t.stringLiteralsMap[e]&&(t.stringLiteralsMap[e]=Object.keys(t.stringLiteralsMap).length),t.stringLiteralsMap[e]}function Ls(t,e){return js(As(t,e))}function Is(t,e,r){if(Array.isArray(e)&&"string"===typeof e[0]){var n=Cs[e[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(t,e.slice(1),r)}var i=Ts(e);if((i&Ss.NUMBER)>0)return js(e);if((i&Ss.BOOLEAN)>0)return e.toString();if((i&Ss.STRING)>0&&(void 0===r||r==Ss.STRING))return Ls(t,e.toString());if((i&Ss.COLOR)>0&&(void 0===r||r==Ss.COLOR))return Ms(e);if((i&Ss.NUMBER_ARRAY)>0)return Rs(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(r,")"))}function ks(t){if(!(Ts(t)&Ss.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(t)," instead"))}function Fs(t){for(var e=0;e<t.length;e++)ks(t[e])}function Ds(t){if(!(Ts(t)&Ss.STRING))throw new Error("A string value was expected, got ".concat(JSON.stringify(t)," instead"))}function Ns(t){if(!(Ts(t)&Ss.BOOLEAN))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(t)," instead"))}function Gs(t,e){if(t.length!==e)throw new Error("Exactly ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function zs(t,e){if(t.length<e)throw new Error("At least ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function Bs(t,e){if(t.length>e)throw new Error("At most ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function Us(t){if(t.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(t," instead"))}function Vs(t){if(t.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(t," instead"))}function Xs(t,e){if(!Ps(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(t)))}function Ws(t){return"u_var_"+t}Cs["get"]={getReturnType:function(t){return Ss.ANY},toGlsl:function(t,e){Gs(e,1),Ds(e[0]);var r=e[0].toString();-1===t.attributes.indexOf(r)&&t.attributes.push(r);var n=t.inFragmentShader?"v_":"a_";return n+r}},Cs["var"]={getReturnType:function(t){return Ss.ANY},toGlsl:function(t,e){Gs(e,1),Ds(e[0]);var r=e[0].toString();return-1===t.variables.indexOf(r)&&t.variables.push(r),Ws(r)}};var Hs="u_paletteTextures";Cs["palette"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){Gs(e,2),ks(e[0]);var r=Is(t,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,o=new Uint8Array(4*i),a=0;a<i;a++){var s=n[a],l=void 0;if("string"===typeof s)l=Object(Es["c"])(s);else{if(!Array.isArray(s))throw new Error("The second argument of palette must be an array of strings or colors");var u=s.length;if(4===u)l=s;else{if(3!==u)throw new Error("Expected palette color to have 3 or 4 values, got ".concat(u));l=[s[0],s[1],s[2],1]}}var c=4*a;o[c]=l[0],o[c+1]=l[1],o[c+2]=l[2],o[c+3]=255*l[3]}t.paletteTextures||(t.paletteTextures=[]);var h="".concat(Hs,"[").concat(t.paletteTextures.length,"]"),f=new Ja(h,o);return t.paletteTextures.push(f),"texture2D(".concat(h,", vec2((").concat(r," + 0.5) / ").concat(i,".0, 0.5))")}};var Ys="getBandValue";function qs(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){Gs(r,2);for(var n=Ss.ANY,i=0;i<r.length;i++)n&=Ts(r[i]);if(n===Ss.NONE)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(r)," instead"));return n&=~Ss.COLOR,"(".concat(Is(e,r[0],n)," ").concat(t," ").concat(Is(e,r[1],n),")")}}}function Ks(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){zs(r,2);for(var n=0;n<r.length;n++)Ns(r[n]);var i="";return i=r.map((function(t){return Is(e,t)})).join(" ".concat(t," ")),i="(".concat(i,")"),i}}}Cs["band"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){zs(e,1),Bs(e,3);var r=e[0];if(!(Ys in t.functions)){for(var n="",i=t.bandCount||1,o=0;o<i;o++){var a=Math.floor(o/4),s=o%4;s===i-1&&1===s&&(s=3);var l="".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(a,"]");n+="\n if (band == ".concat(o+1,".0) {\n return texture2D(").concat(l,", v_textureCoord + vec2(dx, dy))[").concat(s,"];\n }\n ")}t.functions[Ys]="\n float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ".concat(ds.TEXTURE_PIXEL_WIDTH,";\n float dy = yOffset / ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n ").concat(n,"\n }\n ")}var u=Is(t,r),c=Is(t,e[1]||0),h=Is(t,e[2]||0);return"".concat(Ys,"(").concat(u,", ").concat(c,", ").concat(h,")")}},Cs["time"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,0),"u_time"}},Cs["zoom"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,0),"u_zoom"}},Cs["resolution"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,0),"u_resolution"}},Cs["*"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," * ").concat(Is(t,e[1]),")")}},Cs["/"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," / ").concat(Is(t,e[1]),")")}},Cs["+"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," + ").concat(Is(t,e[1]),")")}},Cs["-"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," - ").concat(Is(t,e[1]),")")}},Cs["clamp"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){Gs(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]);return"clamp(".concat(Is(t,e[0]),", ").concat(r,", ").concat(n,")")}},Cs["%"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"mod(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["^"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"pow(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["abs"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"abs(".concat(Is(t,e[0]),")")}},Cs["floor"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"floor(".concat(Is(t,e[0]),")")}},Cs["round"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"floor(".concat(Is(t,e[0])," + 0.5)")}},Cs["ceil"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"ceil(".concat(Is(t,e[0]),")")}},Cs["sin"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"sin(".concat(Is(t,e[0]),")")}},Cs["cos"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"cos(".concat(Is(t,e[0]),")")}},Cs["atan"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return zs(e,1),Bs(e,2),Fs(e),2===e.length?"atan(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")"):"atan(".concat(Is(t,e[0]),")")}},Cs[">"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," > ").concat(Is(t,e[1]),")")}},Cs[">="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," >= ").concat(Is(t,e[1]),")")}},Cs["<"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," < ").concat(Is(t,e[1]),")")}},Cs["<="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," <= ").concat(Is(t,e[1]),")")}},Cs["=="]=qs("=="),Cs["!="]=qs("!="),Cs["!"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,1),Ns(e[0]),"(!".concat(Is(t,e[0]),")")}},Cs["all"]=Ks("&&"),Cs["any"]=Ks("||"),Cs["between"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){Gs(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]),i=Is(t,e[0]);return"(".concat(i," >= ").concat(r," && ").concat(i," <= ").concat(n,")")}},Cs["array"]={getReturnType:function(t){return Ss.NUMBER_ARRAY},toGlsl:function(t,e){zs(e,2),Bs(e,4),Fs(e);var r=e.map((function(e){return Is(t,e,Ss.NUMBER)}));return"vec".concat(e.length,"(").concat(r.join(", "),")")}},Cs["color"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){zs(e,3),Bs(e,4),Fs(e);var r=e;3===e.length&&r.push(1);var n=e.map((function(e,r){return Is(t,e,Ss.NUMBER)+(r<3?" / 255.0":"")}));return"vec".concat(e.length,"(").concat(n.join(", "),")")}},Cs["interpolate"]={getReturnType:function(t){for(var e=Ss.COLOR|Ss.NUMBER,r=3;r<t.length;r+=2)e&=Ts(t[r]);return e},toGlsl:function(t,e,r){Us(e),zs(e,6);var n,i=e[0];switch(i[0]){case"linear":n=1;break;case"exponential":n=i[1];break;default:n=null}if(!n)throw new Error('Invalid interpolation type for "interpolate" operator, received: '.concat(JSON.stringify(i)));var o=void 0!==r?r:Ss.ANY,a=Cs["interpolate"].getReturnType(e)&o;Xs(e,a);for(var s=Is(t,e[1]),l=js(n),u="",c=2;c<e.length-2;c+=2){var h=Is(t,e[c]),f=u||Is(t,e[c+1],a),p=Is(t,e[c+2]),d=Is(t,e[c+3],a);u="mix(".concat(f,", ").concat(d,", pow(clamp((").concat(s," - ").concat(h,") / (").concat(p," - ").concat(h,"), 0.0, 1.0), ").concat(l,"))")}return u}},Cs["match"]={getReturnType:function(t){for(var e=Ss.ANY,r=2;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Us(e),zs(e,4);var n=void 0!==r?r:Ss.ANY,i=Cs["match"].getReturnType(e)&n;Xs(e,i);for(var o=Is(t,e[0]),a=Is(t,e[e.length-1],i),s=null,l=e.length-3;l>=1;l-=2){var u=Is(t,e[l]),c=Is(t,e[l+1],i);s="(".concat(o," == ").concat(u," ? ").concat(c," : ").concat(s||a,")")}return s}},Cs["case"]={getReturnType:function(t){for(var e=Ss.ANY,r=1;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Vs(e),zs(e,3);var n=void 0!==r?r:Ss.ANY,i=Cs["case"].getReturnType(e)&n;Xs(e,i);for(var o=0;o<e.length-1;o+=2)Ns(e[o]);var a=Is(t,e[e.length-1],i),s=null;for(o=e.length-3;o>=0;o-=2){var l=Is(t,e[o]),u=Is(t,e[o+1],i);s="(".concat(l," ? ").concat(u," : ").concat(s||a,")")}return s}};var Zs=function(){function t(){this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.rotationExpression="0.0",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}return t.prototype.addUniform=function(t){return this.uniforms.push(t),this},t.prototype.addAttribute=function(t){return this.attributes.push(t),this},t.prototype.addVarying=function(t,e,r){return this.varyings.push({name:t,type:e,expression:r}),this},t.prototype.setSizeExpression=function(t){return this.sizeExpression=t,this},t.prototype.setRotationExpression=function(t){return this.rotationExpression=t,this},t.prototype.setSymbolOffsetExpression=function(t){return this.offsetExpression=t,this},t.prototype.setColorExpression=function(t){return this.colorExpression=t,this},t.prototype.setTextureCoordinateExpression=function(t){return this.texCoordExpression=t,this},t.prototype.setFragmentDiscardExpression=function(t){return this.discardExpression=t,this},t.prototype.setSymbolRotateWithView=function(t){return this.rotateWithView=t,this},t.prototype.getSizeExpression=function(){return this.sizeExpression},t.prototype.getOffsetExpression=function(){return this.offsetExpression},t.prototype.getColorExpression=function(){return this.colorExpression},t.prototype.getTextureCoordinateExpression=function(){return this.texCoordExpression},t.prototype.getFragmentDiscardExpression=function(){return this.discardExpression},t.prototype.getSymbolVertexShader=function(t){var e=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",r=this.attributes,n=this.varyings;return t&&(r=r.concat("vec4 a_hitColor"),n=n.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(t){return"uniform "+t+";"})).join("\n"),"\nattribute vec2 a_position;\nattribute float a_index;\n").concat(r.map((function(t){return"attribute "+t+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(n.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n"),"\nvoid main(void) {\n mat4 offsetMatrix = ").concat(e,";\n vec2 halfSize = ").concat(this.sizeExpression," * 0.5;\n vec2 offset = ").concat(this.offsetExpression,";\n float angle = ").concat(this.rotationExpression,";\n float offsetX;\n float offsetY;\n if (a_index == 0.0) {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n } else if (a_index == 1.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else if (a_index == 2.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n }\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n vec4 texCoord = ").concat(this.texCoordExpression,";\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;\n v_quadCoord = vec2(u, v);\n").concat(n.map((function(t){return" "+t.name+" = "+t.expression+";"})).join("\n"),"\n}")},t.prototype.getSymbolFragmentShader=function(t){var e=t?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",r=this.varyings;return t&&(r=r.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(t){return"uniform "+t+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(r.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n"),"\nvoid main(void) {\n if (").concat(this.discardExpression,") { discard; }\n gl_FragColor = ").concat(this.colorExpression,";\n gl_FragColor.rgb *= gl_FragColor.a;\n").concat(e,"\n}")},t}();function Js(t){var e=t.symbol,r=void 0!==e.size?e.size:1,n=e.color||"white",i=e.textureCoord||[0,0,1,1],o=e.offset||[0,0],a=void 0!==e.opacity?e.opacity:1,s=void 0!==e.rotation?e.rotation:0,l={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},u=Is(l,r,Ss.NUMBER_ARRAY|Ss.NUMBER),c=Is(l,o,Ss.NUMBER_ARRAY),h=Is(l,i,Ss.NUMBER_ARRAY),f=Is(l,s,Ss.NUMBER),p={inFragmentShader:!0,variables:l.variables,attributes:[],stringLiteralsMap:l.stringLiteralsMap,functions:{}},d=Is(p,n,Ss.COLOR),g=Is(p,a,Ss.NUMBER),y="1.0",v="vec2(".concat(Is(p,r,Ss.NUMBER_ARRAY|Ss.NUMBER),").x");switch(e.symbolType){case"square":break;case"image":break;case"circle":y="(1.0-smoothstep(1.-4./".concat(v,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var m="(v_quadCoord*2.-1.)",_="(atan(".concat(m,".x,").concat(m,".y))");y="(1.0-smoothstep(.5-3./".concat(v,",.5,cos(floor(.5+").concat(_,"/2.094395102)*2.094395102-").concat(_,")*length(").concat(m,")))");break;default:throw new Error("Unexpected symbol type: "+e.symbolType)}var b=(new Zs).setSizeExpression("vec2(".concat(u,")")).setRotationExpression(f).setSymbolOffsetExpression(c).setTextureCoordinateExpression(h).setSymbolRotateWithView(!!e.rotateWithView).setColorExpression("vec4(".concat(d,".rgb, ").concat(d,".a * ").concat(g," * ").concat(y,")"));if(t.filter){var x=Is(p,t.filter,Ss.BOOLEAN);b.setFragmentDiscardExpression("!".concat(x))}var w={};if(p.variables.forEach((function(e){var r=Ws(e);b.addUniform("float ".concat(r)),w[r]=function(){if(!t.variables||void 0===t.variables[e])throw new Error("The following variable is missing from the style: ".concat(e));var r=t.variables[e];return"string"===typeof r&&(r=As(l,r)),void 0!==r?r:-9999999}})),"image"===e.symbolType&&e.src){var O=new Image;O.crossOrigin=void 0===e.crossOrigin?"anonymous":e.crossOrigin,O.src=e.src,b.addUniform("sampler2D u_texture").setColorExpression(b.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),w["u_texture"]=O}return p.attributes.forEach((function(t){-1===l.attributes.indexOf(t)&&l.attributes.push(t),b.addVarying("v_".concat(t),"float","a_".concat(t))})),l.attributes.forEach((function(t){b.addAttribute("float a_".concat(t))})),{builder:b,attributes:l.attributes.map((function(t){return{name:t,callback:function(e,r){var n=r[t];return"string"===typeof n&&(n=As(l,n)),void 0!==n?n:-9999999}}})),uniforms:w}}var $s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qs=function(t){function e(e){var r=this,n=Object(y["a"])({},e);return r=t.call(this,n)||this,r.parseResult_=Js(e.style),r.styleVariables_=e.style.variables||{},r.hitDetectionDisabled_=!!e.disableHitDetection,r}return $s(e,t),e.prototype.createRenderer=function(){return new Ft(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},e.prototype.updateStyleVariables=function(t){Object(y["a"])(this.styleVariables_,t),this.changed()},e}(Wt["a"]),tl=Qs,el=r("2300"),rl=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function nl(t,e){var r="\n attribute vec2 ".concat(gs.TEXTURE_COORD,";\n uniform mat4 ").concat(ds.TILE_TRANSFORM,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.TEXTURE_RESOLUTION,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_X,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_Y,";\n uniform float ").concat(ds.DEPTH,";\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ").concat(gs.TEXTURE_COORD,";\n v_mapCoord = vec2(\n ").concat(ds.TEXTURE_ORIGIN_X," + ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_WIDTH," * v_textureCoord[0],\n ").concat(ds.TEXTURE_ORIGIN_Y," - ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_HEIGHT," * v_textureCoord[1]\n );\n gl_Position = ").concat(ds.TILE_TRANSFORM," * vec4(").concat(gs.TEXTURE_COORD,", ").concat(ds.DEPTH,", 1.0);\n }\n "),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:e},i=[];if(void 0!==t.color){var o=Is(n,t.color,Ss.COLOR);i.push("color = ".concat(o,";"))}if(void 0!==t.contrast){var a=Is(n,t.contrast,Ss.NUMBER);i.push("color.rgb = clamp((".concat(a," + 1.0) * color.rgb - (").concat(a," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==t.exposure){var s=Is(n,t.exposure,Ss.NUMBER);i.push("color.rgb = clamp((".concat(s," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==t.saturation){var l=Is(n,t.saturation,Ss.NUMBER);i.push("\n float saturation = ".concat(l," + 1.0;\n float sr = (1.0 - saturation) * 0.2126;\n float sg = (1.0 - saturation) * 0.7152;\n float sb = (1.0 - saturation) * 0.0722;\n mat3 saturationMatrix = mat3(\n sr + saturation, sr, sr,\n sg, sg + saturation, sg,\n sb, sb, sb + saturation\n );\n color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));\n "))}if(void 0!==t.gamma){var u=Is(n,t.gamma,Ss.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(u,"));"))}if(void 0!==t.brightness){var c=Is(n,t.brightness,Ss.NUMBER);i.push("color.rgb = clamp(color.rgb + ".concat(c,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var h={},f=n.variables.length;if(f>1&&!t.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var p=function(e){var r=n.variables[e];if(!(r in t.variables))throw new Error("Missing '".concat(r,"' in style variables"));var i=Ws(r);h[i]=function(){var e=t.variables[r];return"string"===typeof e&&(e=As(n,e)),void 0!==e?e:-9999999}},d=0;d<f;++d)p(d);var g=Object.keys(h).map((function(t){return"uniform float ".concat(t,";")})),y=Math.ceil(e/4);g.push("uniform sampler2D ".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(y,"];")),n.paletteTextures&&g.push("uniform sampler2D ".concat(Hs,"[").concat(n.paletteTextures.length,"];"));var v=Object.keys(n.functions).map((function(t){return n.functions[t]})),m="\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n #endif\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n uniform vec4 ".concat(ds.RENDER_EXTENT,";\n uniform float ").concat(ds.TRANSITION_ALPHA,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.RESOLUTION,";\n uniform float ").concat(ds.ZOOM,";\n\n ").concat(g.join("\n"),"\n\n ").concat(v.join("\n"),"\n\n void main() {\n if (\n v_mapCoord[0] < ").concat(ds.RENDER_EXTENT,"[0] ||\n v_mapCoord[1] < ").concat(ds.RENDER_EXTENT,"[1] ||\n v_mapCoord[0] > ").concat(ds.RENDER_EXTENT,"[2] ||\n v_mapCoord[1] > ").concat(ds.RENDER_EXTENT,"[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(").concat(ds.TILE_TEXTURE_ARRAY,"[0], v_textureCoord);\n\n ").concat(i.join("\n"),"\n\n if (color.a == 0.0) {\n discard;\n }\n\n gl_FragColor = color;\n gl_FragColor.rgb *= gl_FragColor.a;\n gl_FragColor *= ").concat(ds.TRANSITION_ALPHA,";\n }");return{vertexShader:r,fragmentShader:m,uniforms:h,paletteTextures:n.paletteTextures}}var il=function(t){function e(e){var r=this,n=e?Object(y["a"])({},e):{},i=n.style||{};delete n.style;var o=n.cacheSize;return delete n.cacheSize,r=t.call(this,n)||this,r.sources_=n.sources,r.renderedSource_=null,r.renderedResolution_=NaN,r.style_=i,r.cacheSize_=o,r.styleVariables_=r.style_.variables||{},r.addChangeListener(Z["a"].SOURCE,r.handleSourceUpdate_),r}return rl(e,t),e.prototype.getSources=function(t,e){var r=this.getSource();return this.sources_?"function"===typeof this.sources_?this.sources_(t,e):this.sources_:r?[r]:[]},e.prototype.getRenderSource=function(){return this.renderedSource_||this.getSource()},e.prototype.getSourceState=function(){var t=this.getRenderSource();return t?t.getState():"undefined"},e.prototype.handleSourceUpdate_=function(){this.getSource()&&this.setStyle(this.style_)},e.prototype.getSourceBandCount_=function(){var t=Number.MAX_SAFE_INTEGER,e=this.getSources([-t,-t,t,t],t);return e&&e.length&&"bandCount"in e[0]?e[0].bandCount:4},e.prototype.createRenderer=function(){var t=nl(this.style_,this.getSourceBandCount_());return new Os(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.cacheSize_,paletteTextures:t.paletteTextures})},e.prototype.renderSources=function(t,e){for(var r,n=this.getRenderer(),i=0,o=e.length;i<o;++i)this.renderedSource_=e[i],n.prepareFrame(t)&&(r=n.renderFrame(t));return r},e.prototype.render=function(t,e){var r=this;this.rendered=!0;for(var n=t.viewState,i=this.getSources(t.extent,n.resolution),o=!0,a=function(t,e){var n=i[t],a=n.getState();if("loading"==a){var s=function(){"ready"==n.getState()&&(n.removeEventListener("change",s),r.changed())};n.addEventListener("change",s)}o=o&&"ready"==a},s=0,l=i.length;s<l;++s)a(s,l);var u=this.renderSources(t,i);if(this.getRenderer().renderComplete&&o)return this.renderedResolution_=n.resolution,u;if(this.renderedResolution_>.5*n.resolution){var c=this.getSources(t.extent,this.renderedResolution_).filter((function(t){return!i.includes(t)}));if(c.length>0)return this.renderSources(t,c)}return u},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var e=nl(this.style_,this.getSourceBandCount_()),r=this.getRenderer();r.reset({vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,paletteTextures:e.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){Object(y["a"])(this.styleVariables_,t),this.changed()},e}(el["a"]);il.prototype.dispose;var ol=il},faf4:function(t,e,r){"use strict";var n=r("01d4"),i=r("869f"),o=r("35a7"),a=r("1300"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;return r.ready=!0,r.boundHandleImageChange_=r.handleImageChange_.bind(r),r.layer_=e,r.declutterExecutorGroup=null,r}return s(e,t),e.prototype.getFeatures=function(t){return Object(a["b"])()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return Object(a["b"])()},e.prototype.renderFrame=function(t,e){return Object(a["b"])()},e.prototype.loadedTileCallback=function(t,e,r){t[e]||(t[e]={}),t[e][r.tileCoord.toString()]=r},e.prototype.createLoadedTileFinder=function(t,e,r){return function(n,i){var o=this.loadedTileCallback.bind(this,r,n);return t.forEachLoadedTile(e,n,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){},e.prototype.getDataAtPixel=function(t,e,r){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){var e=t.target;e.getState()===i["a"].LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=i["a"].LOADED&&e!=i["a"].ERROR&&t.addEventListener(n["a"].CHANGE,this.boundHandleImageChange_),e==i["a"].IDLE&&(t.load(),e=t.getState()),e==i["a"].LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(o["a"]);e["a"]=l},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"map-box"},[r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?r("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,gpsType:t.lastMapType},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}}),t._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e(),t.isSwitchMapTool&&t.isShowSwitchMap?r("SwitchMap",{staticClass:"move-box",style:{top:t.switchMapPosTop+"px",right:t.isSwitchMapRight?t.switchMapPosLeftOrRight+"px":"none",left:t.isSwitchMapRight?"none":t.switchMapPosLeftOrRight+"px"},attrs:{height:t.switchMapHeight,switchMapDefaultTypeOrLayer:t.switchMapDefaultTypeOrLayer,mapTypeAndLayer:t.mapTypeAndLayer,"bottom-right":t.isSwitchMapRight,isDisabled:t.isDisabledSwitchMapTabEvent},on:{changeSwitchMap:t.changeSwitchMap}}):t._e()],2)},a=[],s=(r("5bc0"),r("5eee")),l=r("13e2"),u=r("3a39");class c{constructor(){this.map=null,this._lPolygon=null,this._measureTooltip=null,this.currentLayer=[!1,!1,!0],this.polygonGeojsonArr=[],this.polygonGeojson=null,this.lModifyEventArr=[],this.lmap=null,this.lMEvent=null,this.am=new l["AM"],this.type=2,this.lPolygonNewArr=new Array,this.polygonGeojsonMap=new s["default"],this.drawPolygonArr=new Set,this.drawLineArr=new Set,this._lRectangle=null,this.layers=null}init(t){const{el:e,type:r,callback:n,viewOptions:i,layerType:o,mapType:a}=t;this.initMap({el:e,callback:n,viewOptions:i,type:r,layerType:o})}initMap({el:t,callback:e,type:r,viewOptions:n,layerType:i}){this.lmap||(this.lmap=new l["LMap"]({controls:l["MapConfig"].Defaults,interactions:Object(u["defaults"])({pinchRotate:!1})})),setTimeout(()=>{const o=async()=>{this.map&&(this.map=null);const{map:o,layers:a}=await this.lmap.onLoad(t,r,i);this.map=o,this.layers=a,l["MapConfig"].View=n,this.map.setView(l["MapConfig"].View),e&&e(this.map,a)};o()},100)}get getMapTypeLength(){return this.lmap.getMapTypeLength}get getLayeTypeLength(){return this.lmap.getLayeTypeLength}selectMapLayer(t,e){return this.lmap?this.lmap.selectLayers(t,e):0}initBingMap(t,e,r){this.lmap||(this.lmap=new l["LMap"]({controls:l["MapConfig"].Defaults})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null);const{map:n,layers:i}=await this.lmap.onLoad(t,2,2);this.map=n,this.layers=i,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}initBingMapNew(t,e,r){this.lmap||(this.lmap=new l["LMap"]({controls:l["MapConfig"].Defaults})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null);const{map:n,layers:i}=await this.lmap.onLoad(t,0,2);this.map=n,this.layers=i,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}async initVectorMap(t){const{el:e,isAnalysisBBOX:r,isAnalysisCenter:n,callback:i,delaytime:o,isDrag:a}=t,s=new l["VectorMap"]({isAnalysisBBOX:r,isAnalysisCenter:n,isDrag:a,callback:t=>{i&&i(t)}});return new Promise(t=>{setTimeout(async()=>{const r=await s.onLoad(e);t({map:r,vmap:s})},o||100)})}async initStaticMap(t,e){return await new Promise((r,n)=>{setTimeout(i=>{const o=new s["default"]({target:t,view:e.view,layers:[e.layer]});this.map=o,this.layers=[e.layer],o?r(o):n(null)},30)})}getVectorLayerView(){return l["MapConfig"].getVectorLayerView}onSetLayers(t){this.type=t,this.currentLayer=this.currentLayer.map(t=>!1),this.currentLayer[t]=!0,this.removeLayers(t),this.addLayers(t)}removeLayers(t){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.removeLayer(t)})}addLayers(t){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.addLayer(t)})}onCreatePolygon(t,e=!1){this.polygonGeojson&&this.map.removeLayer(this.polygonGeojson),this._lPolygon&&this.clearlPolygon();return this._lPolygon=new l["LPolygon"](this.map,{strokeColor:"rgba(255,201,14, 1)",fillColor:"rgba(255,201,14, 0.4)"},e),this._lPolygon}skipCurrentDraw(){this._lPolygon&&this._lPolygon.skipCurrentDraw()}onCancel(){this._lPolygon&&this._lPolygon.removeLastPoint()}onDelete(t){this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null,this._removeMeasureTooltip(),t&&t())}getGeoJson(){if(this._lPolygon){const[t,e]=this._lPolygon.getCenterPoint(),r=Object(l["createGeoJson"])(this._lPolygon.getCoordinates(),{ruleId:"",centerlon:t,centerlat:e});return r}return null}getGeoJsonNew(t){if(this.polygonGeojson){const t=this.polygonGeojson,e=Object(l["createGeoJson"])(t.getSource().getFeatures()[0].getGeometry().getCoordinates(),{ruleId:"",centerlon:0,centerlat:0});return e}return null}getPolygonGeoJson(){return this._lPolygon?this._lPolygon.getGeoJson():null}onCreateLine(){if(this.map){let t=new l["LDraw"]("LineString",t=>{},this.map);this.drawLineArr.add(t)}}onCreateArea(){this.map&&this.drawPolygonArr.add(new l["LDraw"]("Polygon",t=>{},this.map))}removeDrawArr(){this.drawLineArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawLineArr.clear(),this.drawPolygonArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawPolygonArr.clear()}clearlPolygon(){this.map&&this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null)}_createMeasureTooltip(){const t=new l["MeasureTooltip"];return t.setOffset([0,-30]),this._measureTooltip=t,t}_removeMeasureTooltip(){this.map&&this._measureTooltip&&this.map.removeOverlay(this._measureTooltip.getMarker())}createPolygonGeojson(t,e="rgba(255, 255, 255, 0.3)",r="rgba(00, 131, 241, 1)",n,i=!1,o=[]){if(this.map){const a=Object(l["createPolygonGeojson"])(t,e,r,n,i,o);this.polygonGeojsonArr.push(a),this.polygonGeojson=null,this.map.addLayer(a)}}createPolygonGeojsonNew(t,e="rgba(255, 255, 255, 0.3)",r="rgba(00, 131, 241, 1)",n,i=!1){if(this.polygonGeojson&&(this.polygonGeojson=null),this.map){const o=Object(l["createPolygonGeojson"])(t,e,r,n,i);this.polygonGeojson=o,this.map.addLayer(o)}}removePolygonGeojsons(){if(!this.polygonGeojsonArr.length)return;let t=null;while(t=this.polygonGeojsonArr.shift())this.map.removeLayer(t),t=null}removePolygonGeojsonNew(){this.polygonGeojson&&(this.map.removeLayer(this.polygonGeojson),this.polygonGeojson=null)}clear(){this.map&&(this.am&&(this.am=null,this.am=new l["AM"]),this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew(),this.removeMapsLayers())}clearNew(){this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew()}getMap(){return this.map}setCenter([t,e],r){if(!this.map)return;const n=this.map.getView();n.setCenter([t,e]),r>0&&n.setZoom(r)}setZoom(t){if(!this.map)return;const e=this.map.getView();e.setZoom(t)}setMaxZoom(t){if(!this.map)return;const e=this.map.getView();e.setMaxZoom(t)}setMinZoom(){if(!this.map)return;const t=this.map.getView();t.setMinZoom(zoom)}get getZoom(){if(!this.map)return 0;const t=this.map.getView();return t.getZoom()}getCenter(){if(!this.map)return;const t=this.map.getView();let[e,r]=t.getCenter();return[e,r]}fit(t){Object(l["fitNew"])(this.map,t)}createMarker(t,e=15,r=15){return new l["LMarker"](t,e,r)}removeMarker(t){this.map.removeOverlay(t.getMarker())}lModifyEventArr(){this.lModifyEventArr.length=0,this.polygonGeojsonArr.forEach((t,e)=>{const r=new l["LModifyEvent"](t,this.map);r.setActive(),this.lModifyEventArr.push(r)})}removeLModifyEventArr(){if(!this.lModifyEventArr.length)return;let t=null;while(t=this.lModifyEventArr.shift())t.setActive(!1),t.remove(),t=null}lModifyEvent(){if(this.map&&this.polygonGeojson){const t=new l["LModifyEvent"](this.polygonGeojson,this.map);t.setActive(),this.lMEvent=t}}removeLModifyEvent(){this.lMEvent&&(this.lMEvent.setActive(!1),this.lMEvent.remove())}convertWGS84GeoJSONgcj_encrypt(t){const{bbox:e,geometry:r,properties:n}=t,i=[];for(let s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_encrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_encrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["GPS"].gcj_encrypt(e,r);t.properties.center=[i,o]}return t}gcj_encryptConvertWGS84GeoJSON(t){const{bbox:e,geometry:r,properties:n}=t,i=[];for(let s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_decrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_decrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["GPS"].gcj_decrypt(e,r);t.properties.center=[i,o]}return t}gcj_encrypt(t,e){return l["GPS"].gcj_encrypt(t,e)}gcj_decrypt(t,e){return l["GPS"].gcj_decrypt(t,e)}formatArea(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatArea"])(this._lPolygon.getGeometry()):0}formatLength(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatLength"])(this._lPolygon.getGeometry()):0}createPolylinePointList(t,e=!1,r=!0,n=null,i=0){let o=new Array;const a=Object(l["createPolylinePoints"])(t,e);o=Object(l["addPolylinePoint"])(a,this.map);const s=Object(l["createGPSPoints"])(t,e,this.am);if(null!=s){let t=this.am.getLngLats();i&&(t=this.am.getLngLatGCJ02()),Object(l["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return o}async setAreaCenterPoint(){let t="3301";if(window.localStorage.getItem("user")){const e=JSON.parse(window.localStorage.getItem("user"));t=e["areaCode"]}const{data:e}=await getAreaCenter(t),{areaCode:r,areaName:n,centerLongitude:i,centerLatitude:o}=e;window.localStorage.setItem("createPointData",JSON.stringify(e))}async getAreaCenterPoint(t=!1){return obj}removeAreaCenterPoint(){window.localStorage.removeItem("createPointData")}polygonStyle(){return l["polygonStyle"]}removeMapsLayers(){const t=this.map.getLayers().getArray();for(let e=t.length;0<=e;e--)this.map.removeLayer(t[e])}removeOverlays(){if(!this.map)return;const t=this.map.getOverlays().getArray();for(let e=t.length;0<=e;e--)this.map.removeOverlay(t[e])}resetAM(){this.am=null,this.am=new l["AM"]}createPolygonBoundary(t,e){const r=Object(l["createPolygonBoundary"])(t,e);this.polygonGeojsonArr.push(r),this.map.addLayer(r)}createPolylinePointListNew(t,e,r={isGCJ02Point:!1,isFit:!1}){let n=new Array;const i=Object(l["createPolylinePoints"])(t,!1);n=Object(l["addPolylinePointNew"])(i,this.map,e);const o=Object(l["createGPSPoints"])(t,!1,this.am);if(null!=o&&r.isFit){let t=this.am.getLngLats();e.type&&(t=this.am.getLngLatGCJ02()),Object(l["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return n}createLPolygonNew(t,e){this.lPolygonNewArr.push(new l["LPolygonNew"](t,e))}setPolygonColor(t,e=["rgba(255,201,14, 0.4)","rgba(255,201,14, 1)"]){this.lPolygonNewArr.forEach(r=>{r.Id!=t||r.setPolygonColor(e)})}setPolygonColorAll(t=["rgba(184, 233, 134, 0.56)","rgba(23, 168, 162, 0.56)"]){this.lPolygonNewArr.forEach(e=>{e.setPolygonColor(t)})}removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr=[]}caculateLL(t,e,r,n){return Object(l["caculateLL"])(t,e,r,n)}get LPolygonNewArr(){return this.lPolygonNewArr}get isTruePolygon(){return!!this._lPolygon&&this._lPolygon.isTruePolygon}onCreateRectangle(t){this._lRectangle&&this.clearRectangle();return this._lRectangle=new l["LRectangle"]("Circle",this.map,t=>{}),this._lRectangle}getRectangleData(){if(!this._lRectangle)return[];const t=this._lRectangle.getCoordinates(),e=t[0];if(e.length){const t=[];return t.push([e[0][0],e[1][1]]),t.push([e[1][0],e[2][1]]),t}return[]}getRectangleDataNew(){if(!this._lRectangle)return[];const t=this._lRectangle.getCoordinates(),e=t[0];if(e.length){const t=[];return t.push([e[0][0],e[1][1]]),t.push([e[1][0],e[2][1]]),t}return[]}clearRectangle(){if(this.map&&this._lRectangle){this._lRectangle.getCoordinates();this._lRectangle.remove(),this._lRectangle=null}}async initOfflineMap(t,e){const{el:r,urls:n,callback:i}=e;this.lmap=new l["OfflineMap"],setTimeout(async t=>{const{map:e,layers:o}=await this.lmap.onLoad(r,n);this.map=e,this.layers=o,i({map:e,lMap:this.lmap})},50)}}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f{constructor(){h(this,"isShowSwitchMap",{type:Boolean,default:!0}),this.mapType={type:Number,default:0},this.layerType={type:Number,default:2},this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.bindMapMoveend={type:Boolean,default:!1},this.isDisabledSwitchMapTabEvent={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null},this.m={type:Number,default:()=>3e3},this.switchMapDefaultTypeOrLayer={type:Array,default:()=>null},this.mapTypeAndLayer={type:Array,default:()=>[{id:0,icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:1,icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:2,icon:"el-icon--Bing",activeIcon:"el-icon--Bing-copy",name:"Bing地图",layer:[{id:1,name:"卫星"},{id:2,name:"卫星组合"}]}]}}}class p{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:18},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[116.40769,39.89945]},this.projection={type:String,default:"EPSG:4326"},this.bbox={type:Array,default:()=>[]}}}class d{constructor(){h(this,"isHideAreaAndKM",{type:Boolean,default:!1}),h(this,"switchMapPosTop",{type:Number,default:50}),h(this,"switchMapPosLeftOrRight",{type:Number,default:20}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"switchMapHeight",{type:Number,default:40}),h(this,"isShowRangingTool",{type:Boolean,default:!0}),h(this,"isShowDrawTool",{type:Boolean,default:!1}),h(this,"isRight",{type:Boolean,default:!0}),h(this,"isCrossHair",{type:Boolean,default:!1}),h(this,"initModifyPolygon",{type:[String,Object],default:()=>null}),h(this,"hideAdd",{type:Boolean,default:!1}),h(this,"hidePoint",{type:Boolean,default:!1}),h(this,"hideCancel",{type:Boolean,default:!1}),h(this,"hideDelete",{type:Boolean,default:!1}),h(this,"hideSave",{type:Boolean,default:!1}),h(this,"hideLine",{type:Boolean,default:!1}),h(this,"hideArea",{type:Boolean,default:!1}),h(this,"isSwitchMap",{type:Boolean,default:!0}),h(this,"gpsType",{type:Number,default:0})}}var g=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"draw-tool-box"},[t.isRight?[t.isShowRangingTool?r("aside",{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[t.hideLine?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e(),t.isShowDrawTool?r("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e()]:[t.isShowDrawTool?r("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e(),t.isShowRangingTool?r("aside",{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[t.hideLine?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e()],t.lMap?r("ry-cross-hair",{attrs:{isHide:t.isCrossHair,map:t.lMap.map},on:{click:function(e){return t.onClick(e)}}}):t._e()],2)},y=[],v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},m=[],_=(r("3e8f"),{name:"RyCrossHair",props:{map:{type:Object,default:()=>null},isHide:{type:Boolean,default:!1}},created(){this.isHide&&!this.crossHair&&this.createCrossHair()},watch:{isHide(t){!t||this.crossHair?this.removeControl():this.createCrossHair()}},data(){return{crossHair:null}},methods:{getCenter(){if(!this.map)return;const t=this.map.getView();let[e,r]=t.getCenter();return[e,r]},createCrossHair(){this.crossHair=new l["CrossHair"](()=>{this.$emit("click",this.getCenter())}),this.map.addControl(this.crossHair)},removeControl(){this.map&&this.crossHair&&(this.map.removeControl(this.crossHair),this.crossHair=null)}}}),b=_;function x(t,e,r,n,i,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var w=x(b,v,m,!1,null,null,null),O=w.exports,E={name:"RyMapTool",components:{RyCrossHair:O},props:{lMap:{type:Object,default:()=>null},...new d},watch:{initModifyPolygon(t){this.initModifyPolygon=t,this._init()},isShowRangingTool(t){this.isShowRangingTool=t},isShowDrawTool(t){this.isShowDrawTool=t,this.isCrossHair=t},isRight(t){this.isShowDrawTool=t},isCrossHair(t){this.isCrossHair=t},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.drawPolygon&&(this.drawPolygon.type=t),this.selectGPSAll(this.gpsType))}},data(){return{drawPolygon:null,isEdit:!0,lastType:-1}},created(){this._initPolygon()},methods:{_initPolygon(){if(!this.lMap||!this.initModifyPolygon||!this.isShowDrawTool)return;const{coordinates:t,bbox:e}=this._serializeGeoJson();if(this.onDelete(),this.drawPolygon=this.lMap.onCreatePolygon(()=>{},this.isHideAreaAndKM),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.drawPolygon.initCoordinates(t),this.isEdit=!0,this.$emit("loadDrawPolygonEvent",this),e){const t=[e[0],e[3],e[2],e[1]],r=[e[2],e[1],e[0],e[3]];this.lMap.fit([t,r])}},_serializeGeoJson(){let t=null;if(this.initModifyPolygon instanceof Object)t=this.initModifyPolygon;else{if("string"!==typeof this.initModifyPolygon)return t;t=JSON.parse(this.initModifyPolygon)}const{geometry:e,bbox:r}=t;return{coordinates:e.coordinates,bbox:r}},setFit(t){t&&t.length&&this.lMap&&Object(l["fitNew"])(this.lMap.map,[t])},onCreatePolygon(){this.lMap&&(this.drawPolygon=this.lMap.onCreatePolygon(()=>{},this.isHideAreaAndKM),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.$emit("loadDrawPolygonEvent",this))},onDelete(){this.lMap&&this.drawPolygon&&(this.lMap.onDelete(),this.drawPolygon=null)},onPointEvent(){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:r,lat:n}=l["GPS"].gcj_decrypt(t[0],t[1]);e=[r,n]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},onSave(){const t=this.lMap.getPolygonGeoJson();t?this.lMap.isTruePolygon?t&&this.$emit("success",{geoJson:t,delete:this.onDelete}):this.error(t,1):this.error(t)},error(t,e=0){this.$emit("error",{geoJson:t,delete:this.onDelete,type:e})},onClick(t){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:r,lat:n}=l["GPS"].gcj_decrypt(t[0],t[1]);e=[r,n]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},getGeoJson(){if(this.lMap)return this.lMap.getPolygonGeoJson()},onCancel(){this.lMap&&this.lMap.onCancel()},selectGPSAll(t){this.lMap.removeDrawArr(),this.drawPolygon&&this.drawPolygon.selectGPS(t,!0)}}},S=E,C=(r("f542"),x(S,g,y,!1,null,"5b062201",null)),T=C.exports,P=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.mapTypeAndLayer&&t.mapTypeAndLayer.length>0?r("div",{staticClass:"switch-map"},[r("div",{staticClass:"top",style:{height:t.height+"px"}},[t.isDisabled?r("p",{staticStyle:{width:"10px"}}):[r("p",{class:t.bottomRight?t.isExpand?"el-icon-arrow-left":"el-icon-arrow-right":t.isExpand?"el-icon-arrow-right":"el-icon-arrow-left",on:{click:t.changeExpand}})],r("ul",t._l(t.mapTypeCopy,(function(e,n){return r("li",{key:n,class:{color:!!t.isExpand||t.mapTypeActive===e.id},on:{click:function(r){return t.mapTypeClick(e)}}},[r("i",{class:t.isExpand||t.mapTypeActive===e.id?e.activeIcon:e.icon}),t._v(" "+t._s(e.name)+" ")])})),0)],2),r("ul",{class:{bottom:!0,marginLeft:t.bottomRight}},t._l(t.mapStyleCopy,(function(e,n){return r("li",{key:n,class:{color:!!t.isTop||t.mapStyleActive===e.id},style:{height:t.height+"px",lineHeight:t.height+"px"}},[r("span",{on:{click:function(r){return t.mapStyleClick(e)}}},[t._v(" "+t._s(e.name)+" ")]),r("i",{directives:[{name:"show",rawName:"v-show",value:0===n,expression:"index===0"}],class:t.isTop?"el-icon-arrow-down":"el-icon-arrow-up",on:{click:t.changeDirectionArrow}})])})),0)]):t._e()},j=[];class R{constructor(){h(this,"switchMapDefaultTypeOrLayer",{type:Array,default:()=>null}),h(this,"height",{type:Number,default:40}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"bottomRight",{type:Boolean,default:!0}),h(this,"isDisabled",{type:Boolean,default:!1}),h(this,"mapTypeAndLayer",{type:Array,default:()=>null}),h(this,"mapType",{type:Array,default:()=>[{icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图"},{icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图"}]}),h(this,"mapStyle",{type:Array,default:()=>["地图","卫星","卫星组合"]})}}var M={name:"SwitchMap",props:{...new R},data(){return{isExpand:!0,mapTypeActive:1,mapStyleActive:2,isTop:!0,mapTypeCopy:[],mapStyleCopy:[]}},watch:{switchMapDefaultTypeOrLayer(t){if(!t)return;const e=this.formatToJudge(t);if(!e)return;const r=this.mapStyleActive,n=e||0===e?t[0]:1,i=e||1===e?r:2;setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:n,layerType:i})},100)},mapTypeAndLayer:{handler(t){console.log("111111"),Array.isArray(t)&&t[1]&&t.forEach((t,e)=>{1!==e||this.switchMapDefaultTypeOrLayer||(this.mapStyleCopy=[t.layer[2]],this.mapTypeCopy=[t])})},immediate:!0}},created(){},mounted(){this._switchMapDefaultTypeOrLayer(this.switchMapDefaultTypeOrLayer),this.switchMapDefaultTypeOrLayer||setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:1,layerType:2})},100)},methods:{formatToJudge(t){var e;const r=[1,2],n=Array.isArray(t),i=r.includes(t.length),o=t[0]>=0&&t[0]<=this.mapTypeAndLayer.length-1,a=t[1]>=0&&t[1]<=(null===(e=this.mapTypeAndLayer[t[0]])||void 0===e?void 0:e.layer.length)-1;if(!n||!i)return!1;if(!o||!a){var s,l;const t=this.mapTypeActive,e=this.mapStyleActive;return this.mapTypeCopy=[this.mapTypeAndLayer[t]],this.mapStyleCopy=[null===(s=this.mapTypeAndLayer[t])||void 0===s?void 0:s.layer[e]],this.mapStyleActive=null===(l=this.mapStyleCopy[0])||void 0===l?void 0:l.id,!1}return o&&!a?(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],0):a&&!o?(this.mapStyleCopy=[null===(u=this.mapTypeAndLayer[t[0]])||void 0===u?void 0:u.layer[t[1]]],this.mapStyleActive=this.mapStyleCopy[0].id,1):!(!o||!a)&&(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],this.mapStyleCopy=[null===(c=this.mapTypeAndLayer[t[0]])||void 0===c?void 0:c.layer[t[1]]],this.mapStyleActive=null===(h=this.mapStyleCopy[0])||void 0===h?void 0:h.id,!0);var u,c,h},changeExpand(){if(!this.isDisabled){if(this.isExpand=!this.isExpand,this.isExpand)return this.mapTypeCopy=this.mapTypeAndLayer.filter((t,e)=>this.mapTypeActive===e),void(this.isTop||(this.isTop=!0,this.mapStyleCopy=this.mapTypeAndLayer[this.mapTypeActive].layer.filter(t=>this.mapStyleActive===t.id)));this.mapTypeCopy=[...this.mapTypeAndLayer]}},changeDirectionArrow(){this.isTop=!this.isTop;const t=this.mapTypeActive,e=this.mapTypeAndLayer[t].layer;this.isTop?this.mapStyleCopy=e.filter(e=>t===e.id):this.mapStyleCopy=[...e]},mapTypeClick({id:t}){if(this.mapTypeActive===t||this.isExpand)return;const e=this.mapTypeAndLayer[t].layer;this.mapTypeActive=t,this.mapStyleActive=e[e.length-1].id,this.isTop?this.mapStyleCopy=e.filter(t=>this.mapStyleActive===t.id):this.mapStyleCopy=e,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive,cisDisabled:!1})},mapStyleClick({id:t}){this.mapStyleActive===t||this.isTop||(this.mapStyleActive=t,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive}))},_switchMapDefaultTypeOrLayer(t){if(!t)return;const e=this.formatToJudge(t);if(!e)return;const r=this.mapStyleActive,n=e||0===e?t[0]:1,i=e||1===e?r:2;setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:n,layerType:i})},100)}}},A=M,L=(r("d8bd"),x(A,P,j,!1,null,"bb9d499c",null)),I=L.exports,k={name:"RyMap",components:{RyMapTool:T,SwitchMap:I},props:{...new f,...new p,...new d},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},bindMapMoveend(t){this.bindMapMoveend!==t&&(this.bindMapMoveend=t,this._bingMapMoveend())},m(t){this.m=t}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{changeSwitchMap({mapType:t,layerType:e}){this.lMap.selectMapLayer(t,e),this._setMaxZoom(t,e);let r=t;if(t>1&&(r=0),this.lastMapType==r)return;this.lastMapType=r;const n=this.lMap.getCenter();if(n&&n.length)if(0==r){const{lon:t,lat:e}=l["GPS"].gcj_decrypt(n[0],n[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=l["GPS"].gcj_encrypt(n[0],n[1]);this.lMap.setCenter([t,e])}this.$emit("changeSwitchMap",{mapType:r,layerType:e,type:t})},_setMaxZoom(t,e){2==t||0==e?this.setMaxZoom(28):this.setMaxZoom(18)},loadMap(t){this.lMap.init({el:t,type:this.mapType,layerType:this.layerType,viewOptions:this.getViewOptions(),callback:(t,e)=>{this.map=t,this.bbox.length>0&&this.setFit(this.bbox);try{const[t,e]=this.lMap.getCenter();this.lastX=t,this.lastY=e}catch(r){}this._bingMapEvent(),this._bingMapMoveend(),this.$emit("load",{map:t,mapServices:this.lMap,layers:e,ryMapTool:this.$refs.mapTool}),this.isShowSwitchMap||(this.lastMapType=this.mapType>2?0:this.mapType)}})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},_bingMapMoveend(){this.bindMapMoveend?this._mapMoveend():this._mapMoveend(!0)},getViewOptions(){return{projection:this.projection,center:this.center,zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom}},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_mapMoveend(t=!1){this.moveend=t=>{const[e,r]=this.lMap.getCenter();let n=0;if(this.lastX!==e&&this.lastY!==r)return n=Object(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},F=k,D=(r("8e2d"),x(F,o,a,!1,null,"2da723f6",null)),N=D.exports;N.install=t=>{t.install(N.name,N)};var G=N;O.install=t=>{t.install(O.name,O)};var z=O;T.install=t=>{t.install(T.name,T)};var B=T,U=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},V=[];class X{constructor(){h(this,"map",{type:Object,default:()=>null}),h(this,"gpsType",{type:Number,default:0})}}class W extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Boolean,default:!1}),h(this,"polygonColor",{type:Array,default:()=>[]}),h(this,"text",{type:String,default:null}),h(this,"isFit",{type:Boolean,default:!0})}}var H={name:"RyPolygon",props:{...new W},data(){return{polygon:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isCheckPointHide(t){t?this.hideCheckPoint():this.showCheckPoint()},polygonColor(t){t.length&&this.setPolygonColor(t)},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo&&!this.model.coordinates)return;let t=[];if(this.model.geo){const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson();this.model.coordinates=e,this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=new l["LPolygonNew"]({...this.model,type:this.gpsType},this.map),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.model.text&&(this.checkPoint||(this.checkPoint=this.createCheckPoint(this.model.text,t.length?t:Object(l["getCenterPoint"])(this.model.coordinates))),this.isCheckPointHide&&this.hideCheckPoint()),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon,checkPoint:this.checkPoint})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:r,properties:n}=t;let i=[];return n&&n.center&&(i=n.center),{bbox:e,coordinates:r.coordinates,center:i.length?i:Object(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["CheckPoint"](t,12,"#fff");return r.setOffset([0,-5]),r.setPosition(e,this.gpsType),this.map.addOverlay(r.getMarker()),r},show(){this.polygon.show()},hide(){this.polygon.hide()},remove(){this.polygon&&(this.polygon.removePolygon(),this.polygon=null),this.checkPoint&&(this.map.removeOverlay(this.checkPoint.getMarker()),this.checkPoint=null),this.bbox=[],this.bboxGCJ02=[]},setPolygonColor(t){if(this.polygon){this.polygon.setPolygonColor(t);const e=this.map.getView().getZoom();this.map.getView().setZoom(e+1e-5),this.map.getView().setZoom(e-1e-4)}},getId(){return this.polygon._id},showCheckPoint(){this.checkPoint&&this.checkPoint.show()},hideCheckPoint(){this.checkPoint&&this.checkPoint.hide()},setText(t){this.checkPoint&&this.checkPoint.setText(t)},selectGPSAll(t){this.checkPoint&&this.checkPoint.selectGPS(t),this.polygon&&this.polygon.selectGPS(t)}}},Y=H,q=x(Y,U,V,!1,null,null,null),K=q.exports;K.install=t=>{t.install(K.name,K)};var Z=K,J=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},$=[];class Q extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShowPolygon",{type:Object,default:()=>null}),h(this,"isShowPolygons",{type:Array,default:()=>[]}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHideAll",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Object,default:()=>null}),h(this,"isCheckPointHides",{type:Array,default:()=>[]}),h(this,"polygonColor",{type:Object,default:()=>null}),h(this,"polygonColors",{type:Array,default:()=>[]}),h(this,"text",{type:Object,default:()=>null}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"remove",{type:[String,Number,Object],default:()=>null}),h(this,"removes",{type:Array,default:()=>[]}),h(this,"ranges",{type:Array,default:()=>[]}),h(this,"range",{type:[String,Number,Object],default:()=>null}),h(this,"restFit",{type:Boolean,default:!1})}}var tt={name:"RyPolygons",props:{...new Q},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,polygonMap:new Map,checkPointMap:new Map,isCreate:!0,lastType:-1}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init())},isShowAll(t){t?this.showAll():this.hideAll()},isShowPolygon(t){this.isShowPolygon=t,t&&this._isShowPolygon(t)},isShowPolygons(t){this.isShowPolygons=t,(t||t.length)&&this._isShowPolygons(t)},clear(t){t&&this._remove()},isCheckPointHideAll(t){t?this.hideCheckPointAll():this.showCheckPointAll()},isCheckPointHide(t){this.isCheckPointHide=t,t&&this._isCheckPointHide(t)},isCheckPointHides(t){this.isCheckPointHides=t,(t||t.length)&&this._isCheckPointHides(t)},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)},polygonColors(t){t&&this.setPolygonColors(t)},isFit(t){this.isFit=t,t&&this.setFit()},remove(t){this.remove=t,this.removePolygonAndCheckPoint(t)},removes(t){this.removes=t,this.removePolygonsAndCheckPoints(t)},ranges(t){this.ranges=t,this._ranges(t)},range(t){this.range=t,this._range(t)},insert(t){this.insert=t,this._insert(t)},inserts(t){this.inserts=t,this._inserts(t)},restFit(t){this.restFit=t},text(t){t&&t.id&&t.text&&this.setText(t.id,t.text)},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){(this.modelArr||this.modelArr.length)&&(this.modelArr.forEach(t=>{this._insert(t)}),this.polygonColor&&this.setPolygonColor(this.polygonColor),this.setPolygonColors(this.polygonColors),this.removePolygonAndCheckPoint(this.remove),this.removePolygonsAndCheckPoints(this.removes),this._ranges(this.ranges),this._range(this.range),this._insert(this.insert),this._inserts(this.inserts),this.isFit&&this.setFit(),this.isShowAll||this.hideAll(),this.isCheckPointHideAll&&this.hideCheckPointAll(),this.isShowPolygon&&this._isShowPolygon(this.isShowPolygon),this._isShowPolygons(this.isShowPolygons),this.isCheckPointHide&&this._isCheckPointHide(this.isCheckPointHide),this._isCheckPointHides(this.isCheckPointHides),this._onLoad())},initPolygon(t){if(!this.polygonMap.has(t.id)){const e=new l["LPolygonNew"]({...t,type:this.gpsType},this.map);e.isShowPolygon=!0,this.polygonMap.set(t.id,e)}},selectGPSAll(t){this.polygonMap.forEach(e=>{e.selectGPS(t)}),this.checkPointMap.forEach(e=>{e.selectGPS(t)})},initCheckPoint(t,e){if(!this.checkPointMap.has(t.id)&&t.text){const r=this.createCheckPoint(t.text,e);this.checkPointMap.set(t.id,r)}},setBBOXArr(t,e){if(this.bboxMap.has(t)||(this.bbox.push(e),this.bboxMap.set(t,e)),!this.bboxMapGCJ02.has(t)){const r=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(r),this.bboxMapGCJ02.set(t,r)}},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["fitNew"])(this.map,1==this.gpsType?this.bboxGCJ02:this.bbox):this.setFitFist(1==this.gpsType?this.bboxGCJ02[0]:this.bbox[0]))},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:r,geometry:n,properties:i}=e;let o=[];return i&&i.center&&(o=i.center),{bbox:r,coordinates:n.coordinates,center:o.length?o:Object(l["getCenterPoint"])(n.coordinates)}},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["CheckPoint"](t,12,"#fff");return r.setOffset([0,-5]),r.setPosition(e,this.gpsType),this.map.addOverlay(r.getMarker()),r},showAll(){this.polygonMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.polygonMap.forEach(t=>t.hide())},_remove(){this.checkPointMap.forEach(t=>{this.map.removeOverlay(t.getMarker()),t=null}),this.polygonMap.forEach(t=>{t.removePolygon(),t=null}),this.checkPointMap.clear(),this.polygonMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear()},setPolygonColor(t,e,r=!0){if(this.polygonMap.has(t)){const n=this.polygonMap.get(t);n.setPolygonColor(e),r&&this._setZoom()}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)},setPolygonColors(t){t.forEach(t=>{this.setPolygonColor(t.id,t.colorArr,!1)}),t.length&&this._setZoom()},showCheckPointAll(){this.map&&this.checkPointMap.forEach(t=>t.show())},_isShowPolygon(t){const e=t.id;if(this.polygonMap.has(e)){const r=this.polygonMap.get(e);if(t.isShow)return void r.show();r.hide()}},_isShowPolygons(t){t.forEach(t=>{this._isShowPolygon(t)}),this.restFit&&this._restFit()},hideCheckPointAll(){this.checkPointMap.forEach(t=>t.hide())},_isCheckPointHide(t){const e=t.id;if(this.checkPointMap.has(e)){const r=this.checkPointMap.get(e);if(t.isShow)return void r.show();r.hide()}},_isCheckPointHides(t){t.forEach(t=>{this._isCheckPointHide(t)})},setText(t,e){if(this.checkPointMap.has(t)){const r=this.checkPointMap.get(t);r.setText(e)}},restBBOXArr(){this.bbox=[],this.bboxGCJ02=[],this.bboxMap.forEach(t=>{this.bbox.push(t)}),this.bboxMapGCJ02.forEach(t=>{this.bboxGCJ02.push(t)})},removePolygonsAndCheckPoints(t){t.forEach((t,e)=>{this.removePolygonAndCheckPoint(t)}),t.length&&this.restBBOXArr()},removePolygonAndCheckPoint(t,e=!0){if(this.checkPointMap.has(t)){const r=this.checkPointMap.get(t);this.map.removeOverlay(r.getMarker()),this.checkPointMap.delete(t),e&&this.restBBOXArr()}if(this.polygonMap.has(t)){const e=this.polygonMap.get(t);e.removePolygon(),this.polygonMap.delete(t)}this.bboxMap.has(t)&&this.bboxMap.delete(t),this.bboxMapGCJ02.has(t)&&this.bboxMapGCJ02.delete(t)},_ranges(t){const e=[];t.forEach(t=>{if(this.bboxMap.has(t)&&1!=this.gpsType){const r=this.bboxMap.get(t);e.push(r)}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const r=this.bboxMapGCJ02.get(t);e.push(r)}}),e.length&&Object(l["fitNew"])(this.map,e)},_range(t){if(this.bboxMap.has(t)&&1!=this.gpsType){const e=this.bboxMap.get(t);Object(l["fitNew"])(this.map,[e])}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const e=this.bboxMapGCJ02.get(t);Object(l["fitNew"])(this.map,[e])}},_insert(t,e){if(!t)return;let r=[],n=[];if(!t.coordinates){const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson(t.geo);t.coordinates=e,r=n}this.initPolygon(t),this.initCheckPoint(t,r.length?r:Object(l["getCenterPoint"])(t.coordinates)),this.setBBOXArr(t.id,n.length?n:Object(l["getLngAndLatMaxMin"])(t.coordinates)),e&&this._onLoad()},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),t.length&&this._onLoad()},_onLoad(){this.$emit("onLoad",{polygonMap:this.polygonMap,checkPointMap:this.checkPointMap,bboxMap:this.bboxMap,bboxMapGCJ02:this.bboxMapGCJ02})},_restFit(){let t=[];1!=this.gpsType?this.bboxMap.forEach((e,r)=>{-1===this.isShowPolygons.findIndex(t=>t.id==r)&&t.push(this.bboxMap.get(r))}):1==this.gpsType&&this.bboxMapGCJ02.forEach((e,r)=>{-1===this.isShowPolygons.findIndex(t=>t.id==r)&&t.push(this.bboxMapGCJ02.get(r))}),t.length&&(t.length>1?Object(l["fitNew"])(this.map,t):this.setFitFist(t[0]))},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e}}},et=tt,rt=x(et,J,$,!1,null,null,null),nt=rt.exports;nt.install=t=>{t.install(nt.name,nt)};var it=nt,ot=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},at=[];const st={fillColor:"rgba(184, 233, 134, 0.56)",stroke:"rgba(23, 168, 162, 0.56)",width:3,text:"块"};var lt={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},clusterPolygonModel:{type:Object,default:()=>st},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},color:{type:String,default:"#fff"},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},distance:{type:Number,default:30}},data(){return{checkPointArr:new Map,currentArr:Array(),fpModelArr:[],featurePolygon:null,multiPolygonMap:new Map,scan:new l["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.featurePolygon=new l["FeaturePolygon"](this.gpsType),this.clear(),this.init()},methods:{mergeGeoJson(t){let e=[],r=new Set;t.forEach(t=>{if(t){const n=t.getId();if(this.multiPolygonMap.has(n)){const t=this.multiPolygonMap.get(n);r.add(n),t.forEach(t=>{e.push(t)})}}}),this.scan.setPoints(e),this.scan.getHull(),r.forEach(t=>{this.removeAggregation(t)});const n={...this.clusterPolygonModel,coordinates:[this.scan.getHull()],ids:r};this.polygonSet.add(new l["LPolygonNew"]({...n,gpsType:this.gpsType},this.map))},removeAggregation(t){let e=[];0!==this.polygonSet.size&&(this.polygonSet.forEach(r=>{r.Ids.has(t)&&(r.removePolygon(),e.push(r))}),e.forEach(t=>{this.polygonSet.has(t)&&this.polygonSet.delete(t)}))},removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr.length=0},clear(){},createFeaturePolygonModel(t,e){return new l["FeaturePolygonModel"](e,t)},async init(){this.initPolygon(),this.initCluster()},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:r,geometry:n,properties:i}=e;let o=[];return i&&i.center&&(o=i.center),{bbox:r,coordinates:n.coordinates,center:o.length?o:Object(l["getCenterPoint"])(n.coordinates)}},initPolygon(){this.modelArr.forEach(t=>{t.geo;const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson(t.geo),i=this.createFeaturePolygonModel(t.id,r);this.fpModelArr.push(i)})},initCluster(){const t=new l["LCluster"]((t,e,r)=>{const n=t.getId();if(r)return this.$emit("callback",{id:n,isShow:!0}),void(this.multiPolygonMap.has(n)&&this.multiPolygonMap.delete(n));if(!this.multiPolygonMap.has(n)){var i;const t=null===(i=this.modelArr.find(t=>t.id==n))||void 0===i?void 0:i.geo;if(t){const{coordinates:e}=this._serializeGeoJson(t);this.multiPolygonMap.set(n,e[0])}}this.$emit("callback",{id:n,isShow:!1})},{text:this.clusterPolygonModel.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,aggregationCallback:t=>{this.mergeGeoJson(t)},removeAggregationCallback:t=>{const e=t.getId();e&&this.removeAggregation(e)}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),r=t.getVectorLayer(e,this.distance);this.map.addLayer(r)},selectGPSAll(t){this.polygonSet.forEach(e=>{e.selectGPS(t)}),this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},ut=lt,ct=x(ut,ot,at,!1,null,"148ba5e7",null),ht=ct.exports;ht.install=t=>{t.install(ht.name,ht)};var ft=ht,pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},dt=[];var gt={name:"RyClustersMarker",props:{modelArr:{type:Array,default:()=>[]},text:{type:String,default:()=>"台"},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},distance:{type:Number,default:200},fontColor:{type:String,default:"#fff"},src:{type:String,default:()=>null},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0}},data(){return{fpModelArr:[],featurePolygon:new l["FeaturePolygon"](this.gpsType),scan:new l["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.clear(),this.init()},methods:{clear(){},createFeaturePolygonModel(t,e){return new l["FeaturePolygonModel"](e,t)},async init(){this.initFeature(),this.initCluster()},initFeature(){this.modelArr.forEach(t=>{const e=this.createFeaturePolygonModel(t.id,[t.x,t.y]);this.fpModelArr.push(e)})},initCluster(){const t=new l["LClusterMarker"]((t,e,r)=>{const n=t.getId();r?this.$emit("callback",{id:n,isShow:!0}):this.$emit("callback",{id:n,isShow:!1})},{text:this.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,src:this.src,aggregationCallback:t=>{},removeAggregationCallback:t=>{}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),r=t.getVectorLayer(e,this.distance);this.map.addLayer(r)},selectGPSAll(t){this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},yt=gt,vt=x(yt,pt,dt,!1,null,"64b08b64",null),mt=vt.exports;mt.install=t=>{t.install(mt.name,mt)};var _t=mt,bt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},xt=[];class wt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var Ot={name:"RyPolygonGeo",props:{...new wt},data(){return{polygon:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo)return;let t=[];if(this.model.geo){const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson();this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=Object(l["createPolygonBoundary"])(this.model.geo,this.model),this.map.addLayer(this.polygon),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:r,properties:n}=t;let i=[];return n&&n.center&&(i=n.center),{bbox:e,coordinates:r.coordinates,center:i.length?i:Object(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},show(){},hide(){},selectGPSAll(t){},remove(){this.map&&this.polygon&&(this.map.removeLayer(this.polygon),this.polygon=null)},getId(){return this.id}}},Et=Ot,St=x(Et,bt,xt,!1,null,null,null),Ct=St.exports;Ct.install=t=>{t.install(Ct.name,Ct)};var Tt=Ct,Pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"vector-map"})},jt=[],Rt={name:"RyVectorMap",props:{isAnalysisBBOX:{type:Boolean,default:!0},isAnalysisCenter:{type:Boolean,default:!0},modelArr:{type:Array,default:()=>[]},delayTime:{type:Number,default:()=>50},bindMapClick:{type:Boolean,default:!1},isDrag:{type:Boolean,default:!0}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,vmap:null,lastX:0,lastY:0,moveend:null,polygonMap:null}},watch:{modelArr(t){this.initLayers(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)}},mounted(){},methods:{async loadMap(t){const{map:e,vmap:r}=await this.lMap.initVectorMap({el:t,isAnalysisBBOX:this.isAnalysisBBOX,isAnalysisCenter:this.isAnalysisCenter,delayTime:this.delayTime,isDrag:this.isDrag,callback:t=>this.$emit("initLayersEvent",t)});this.map=e,this.vmap=r,this.polygonMap=r.getLayerMap,this._bingMapEvent(),this.$emit("load",{map:e,vmap:r}),this.modelArr.length&&this.initLayers(val)},initLayers(t){this.vmap&&this.vmap.initLayers(t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getProperties(),n=this.map.getView(),[i,o]=n.getCenter(),a=e.getId();r&&this.$emit("mapClick",{...r,id:a||null,currentX:i,currentY:o})}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},setPolygonColor(t,e,r=!0){if(this.polygonMap.has(t)){const n=this.polygonMap.get(t);n.setPolygonColor(e),r&&this._setZoom()}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)}}},Mt=Rt,At=(r("e6f1"),x(Mt,Pt,jt,!1,null,"38afeddc",null)),Lt=At.exports;Lt.install=t=>{t.install(Lt.name,Lt)};var It=Lt,kt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Ft=[];const Dt={color:"red",width:2,zIndex:1};class Nt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"linenIsert",{type:Object,default:()=>null}),h(this,"isLineFit",{type:Boolean,default:!0}),h(this,"lineAppend",{type:Array,default:()=>[]}),h(this,"startMarkerDto",{type:Object,default:()=>null}),h(this,"endMarkerDto",{type:Object,default:()=>null}),h(this,"moveMarkerDto",{type:Object,default:()=>null}),h(this,"clearLiens",{type:Boolean,default:!1}),h(this,"endMarkerPoint",{type:Array,default:()=>[]}),h(this,"lineDto",{type:Object,default:()=>Dt})}}var Gt={name:"RyLines",props:{...new Nt},data(){return{lines:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1,lastLinesDto:null,moveMarker:null,endMarker:null,startMarker:null,pineArr:[],lastLineX:0,lastLineY:0,cachePointArr:new Array,drawingEnd:!1,isFist:!0,lastColor:null,am:new l["AM"]}},watch:{model(t){this.init()},linenIsert(t){this.map&&t&&this._insertLineAndMarker(t)},gpsType(t){},clearLiens(t){t&&this.clearLine()},lineAppend(t){t.length>0&&this.map&&(this.appendCoordinate(t),this.setMarkerPoint(this.endMarker,t))}},created(){this.init()},methods:{init(){this.map&&(this.clearLine(),this.model&&(this.lastType=this.gpsType,this._insertLineAndMarker(this.model)))},_insertLineAndMarker(t){t.color;const e=t.pointArr;if(this.isLineFit&&this.calculateLineBBOX(e),this.initMarker(e[0]),!t.isAppend||!this.pineArr.length){this._insertPoint(t);const r=this.createPolyline(t),n=e.length-1;return this.setMarkerPoint(this.endMarker,e[n]),this.restLastData(e),void this.pineArr.push(r)}e.forEach(t=>{this.appendCoordinate(t)});const r=e.length-1;this.setMarkerPoint(this.endMarker,e[r]),this.restLastData(e)},async calculateLineBBOX(t){return await new Promise(e=>{t.forEach(t=>{this.am.getLngAndLatMaxMin({X:t[0],Y:t[1]})});const r=this.am.getLngLats();Object(l["fitNew"])(this.map,[[r[0],r[1]],[r[2],r[3]]]),e()})},initMarker(t){(this.startMarkerDto||this.endMarkerDto)&&(this.startMarker||this.endMarker||(this.startMarker=this.createStartMarker(this.startMarkerDto,t),this.endMarker=this.createStartMarker(this.endMarkerDto)))},setMarkerPoint(t,e){t&&e.length>1&&t.setPosition(e,this.gpsType)},restLastData(t){if(t.length>0){const[e,r]=t[t.length-1];this.lastLineX=e,this.lastLineY=r}},_insertPoint(t){this.lastLineX>0&&this.lastLineY>0&&t&&t.pointArr.unshift([this.lastLineX,this.lastLineY])},createPolyline(t={color:"rgb(0,0,255)",width:2,pointArr:[],zIndex:1e3}){return new l["Polyline"]({...t,type:this.gpsType},this.map)},createStartMarker({offset:t,url:e,width:r,height:n},i=[]){const o=new l["LMarker"](e,r,n);return o.setOffset(t),i.length&&o.setPosition(i,this.gpsType),this.map.addOverlay(o.getMarker()),o},getLngLatGCJ02(t){const e=[];return t.forEach(t=>{const{lon:r,lat:n}=l["GPS"].gcj_encrypt(t[0],t[1]);e.push([r,n])}),e},removeLines(){this.pineArr.forEach(t=>{t.removePolyline()}),this.pineArr=[]},removeLineMarker(){this.map&&(this.endMarker&&this.map.removeOverlay(this.endMarker.getMarker()),this.startMarker&&this.map.removeOverlay(this.startMarker.getMarker()),this.moveMarker&&this.map.removeOverlay(this.moveMarker.getMarker()),this.moveMarker=null,this.endMarker=null,this.startMarker=null)},clearLine(){this.removeLines(),this.removeLineMarker(),this.cachePointArr=[],this.lastColor=null,this.lastLineX=0,this.lastLineY=0,this.am=null,this.am=new l["AM"]},appendCoordinate(t=[]){if(!t.length)return;this.pineArr.length||this._insertLineAndMarker({...this.lineDto,pointArr:[t],isAppend:!1});const e=this.pineArr[this.pineArr.length-1];e.appendCoordinate(t)},selectGPSAll(t){}}},zt=Gt,Bt=x(zt,kt,Ft,!1,null,null,null),Ut=Bt.exports;Ut.install=t=>{t.install(Ut.name,Ut)};var Vt=Ut,Xt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"map-box"},[r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?r("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,isHideAreaAndKM:t.isHideAreaAndKM},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}}),t._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},Wt=[];class Ht{constructor(){this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null}}}class Yt{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:28},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[2575,1450]},this.bbox={type:Array,default:()=>[]},this.url={type:String,default:()=>null},this.imageSize={type:Array,default:()=>[0,0,7247,3562]},this.imageExtent={type:Array,default:()=>[500,400,5e3,2700]}}}var qt=r("c810"),Kt=r("e7df"),Zt=r("a2c7"),Jt=r("f5dd"),$t={name:"RyStaticMap",components:{RyMapTool:T},props:{...new Ht,...new Yt,...new d},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0}},methods:{getImageLayer(){return new qt["default"]({source:new Kt["default"]({crossOrigin:"anonymous",imageSize:this.imageSize,imageExtent:this.imageExtent,url:this.url})})},getProjection(){return new Jt["a"]({code:3875,extent:this.imageExtent,units:"m"})},getView(){return new Zt["default"]({projection:"EPSG:3857",center:this.center,Projection:this.getProjection(),zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom})},async loadMap(t){const e=await this.lMap.initStaticMap(t,{view:this.getView(),layer:this.getImageLayer()});this.map=e,this.$emit("load",{map:e,mapServices:this.lMap,ryMapTool:this.$refs.mapTool})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},Qt=$t,te=(r("b302"),x(Qt,Xt,Wt,!1,null,"a77ac42c",null)),ee=te.exports;ee.install=t=>{t.install(ee.name,ee)};var re=ee,ne=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"map-box"},[r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?r("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,gpsType:t.lastMapType},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}}),t._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},ie=[];class oe{constructor(){h(this,"isShowSwitchMap",{type:Boolean,default:!0}),h(this,"urls",{type:Array,default:()=>[]}),h(this,"boundaryModel",{type:Object,default:()=>null}),this.mapType={type:Number,default:0},this.layerType={type:Number,default:2},this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.bindMapMoveend={type:Boolean,default:!1},this.isDisabledSwitchMapTabEvent={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null},this.m={type:Number,default:()=>3e3},this.switchMapDefaultTypeOrLayer={type:Array,default:()=>null},this.mapTypeAndLayer={type:Array,default:()=>[{id:0,icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:1,icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:2,icon:"el-icon--Bing",activeIcon:"el-icon--Bing-copy",name:"Bing地图",layer:[{id:1,name:"卫星"},{id:2,name:"卫星组合"}]}]}}}var ae={name:"RyOfflineMap",components:{RyMapTool:T},props:{...new oe,...new p,...new d},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},bindMapMoveend(t){this.bindMapMoveend!==t&&(this.bindMapMoveend=t,this._bingMapMoveend())},m(t){this.m=t},boundaryModel(t){this.map}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{changeSwitchMap({mapType:t,layerType:e}){this.lMap.selectMapLayer(t,e),this._setMaxZoom(t,e);let r=t;if(t>1&&(r=0),this.lastMapType==r)return;this.lastMapType=r;const n=this.lMap.getCenter();if(n&&n.length)if(0==r){const{lon:t,lat:e}=l["GPS"].gcj_decrypt(n[0],n[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=l["GPS"].gcj_encrypt(n[0],n[1]);this.lMap.setCenter([t,e])}this.$emit("changeSwitchMap",{mapType:r,layerType:e,type:t})},_setMaxZoom(t,e){this.setMaxZoom(18)},async loadMap(t){this.lMap.initOfflineMap(100,{el:t,urls:this.urls,callback:({map:t,lMap:e})=>{e.setView(this.center,this.bbox),e.getView().fit(this.bbox,[50,50,50,50]);const{geo:r,width:n,color:i}=this.boundaryModel;e.initMapMaskEvent(t.getLayers(),r,n,i)}})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},_bingMapMoveend(){this.bindMapMoveend?this._mapMoveend():this._mapMoveend(!0)},getViewOptions(){return{projection:this.projection,center:this.center,zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom}},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_mapMoveend(t=!1){this.moveend=t=>{const[e,r]=this.lMap.getCenter();let n=0;if(this.lastX!==e&&this.lastY!==r)return n=Object(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},se=ae,le=(r("f367"),x(se,ne,ie,!1,null,"110d9690",null)),ue=le.exports;ue.install=t=>{t.install(RyMap.name,ue)};var ce=ue,he=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},fe=[];class pe extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var de={name:"RyKMLs",props:{...new pe},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,kmlMap:new Map,isCreate:!0,lastType:-1,urls:new Map,gcj02Urls:new Map}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init(t))},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},insert(t){this.insert=t,this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},inserts(t){this.inserts=t,this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()}},created(){this.lastType=this.gpsType,this.init(this.modelArr)},methods:{init(t){t&&t.length&&(t.forEach(t=>{this._insert(t)}),this.isFit&&setTimeout(()=>{this.setFit()},50))},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t;if(!this.kmlMap.has(e)){const t=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);this.kmlMap.set(e,t),this.urls.set(e,r),h&&this.gcj02Urls.set(e,h)}this.setBBOXArr(t.id,n)},setBBOXArr(t,e){if(this.bboxMap.has(t)||(this.bbox.push(e),this.bboxMap.set(t,e)),!this.bboxMapGCJ02.has(t)){const r=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(r),this.bboxMapGCJ02.set(t,r)}},setUrl(t,e){this.kmlMap.has(t)&&this.kmlMap.get(t).setUrl(e)},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["fitNew"])(this.map,1==this.gpsType?this.bboxGCJ02:this.bbox):this.setFitFist(1==this.gpsType?this.bboxGCJ02[0]:this.bbox[0]))},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kmlMap.forEach(t=>{t.removeKML(),t=null}),this.kmlMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear(),this.urls.clear(),this.gcj02Urls.clear()},selectGPSAll(t){const e=1==t?this.gcj02Urls:this.urls;e.forEach((t,e)=>{this.setUrl(e,t)})},showAll(){this.kmlMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.kmlMap.forEach(t=>t.hide())}}},ge=de,ye=x(ge,he,fe,!1,null,null,null),ve=ye.exports;ve.install=t=>{t.install(ve.name,ve)};var me=ve,_e=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},be=[];class xe extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var we={name:"RyKMLs",props:{...new xe},data(){return{bbox:[],bboxGCJ02:[],kml:null,lastType:-1,url:null,gcj02Url:null}},watch:{model(t){this._remove(),t.length&&(this.model=t,this.init(t))},clear(t){t&&this._remove()},isShow(t){t?this.showAll():this.hideAll()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.lastType=this.gpsType,this.model&&this.init(this.model)},methods:{init(t){this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t,f=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);this.kml=f,this.url=r,this.gcj02Url=h,this.setBBOXArr(n)},setBBOXArr(t){this.bbox=t;const e=this.convertBBoxGCJ02(t);this.bboxGCJ02=e},setUrl(t){this.kml&&this.kml.setUrl(t)},setFit(){this.bbox.length&&this.map&&this.setFitFist(1==this.gpsType?this.bboxGCJ02:this.bbox)},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kml&&(this.kml.removeKML(),this.bbox=[],this.bboxGCJ02=[],this.url=null,this.gcj02Url=null)},selectGPSAll(t){const e=1==t?this.gcj02Url:this.url;this.setUrl(e)},show(){this.kml&&(this.kml.show(),this.isFit&&setTimeout(()=>{this.setFit()},50))},hide(){this.kml&&this.kml.hide()}}},Oe=we,Ee=x(Oe,_e,be,!1,null,null,null),Se=Ee.exports;Se.install=t=>{t.install(Se.name,Se)};var Ce=Se;const Te=[G,z,B,Z,it,ft,Tt,_t,It,Vt,re,ce,me,Ce],Pe=(t,e)=>{Te.forEach(e=>{t.component(e.name,e)})};"undefined"!==typeof window&&window.Vue&&Pe(window.Vue);var je={install:Pe};e["default"]=je},fced:function(t,e,r){"use strict";r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return a}));var n={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={9001:n.METERS,9002:n.FEET,9003:n.USFEET,9101:n.RADIANS,9102:n.DEGREES};function o(t){return i[t]}var a={};a[n.RADIANS]=6370997/(2*Math.PI),a[n.DEGREES]=2*Math.PI*6370997/360,a[n.FEET]=.3048,a[n.METERS]=1,a[n.USFEET]=1200/3937,e["b"]=n},fd4d:function(t,e,r){"use strict";function n(t,e,r,n,i){var o;for(e+=n;e<r;e+=n)if(o=i(t.slice(e-n,e),t.slice(e,e+n)),o)return o;return!1}r.d(e,"a",(function(){return n}))},fe37:function(t,e,r){"use strict";var n=r("e269"),i=r("e300"),o=r("183a"),a=r("01d4"),s=r("1af9"),l=r("9c78"),u=r("509b"),c=r("0b2d"),h=r("d079"),f=r("0ec0"),p=r("617d"),d=r("57cb"),g=r("38f3"),y=r("1e8d"),v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=function(t){function e(e,r){var n=t.call(this,e)||this;n.map_=e,n.clickTimeoutId_,n.emulateClicks_=!1,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=void 0===r?1:r,n.down_=null;var i=n.map_.getViewport();return n.activePointers_=[],n.trackedTouches_={},n.element_=i,n.pointerdownListenerKey_=Object(y["a"])(i,h["a"].POINTERDOWN,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=Object(y["a"])(i,h["a"].POINTERMOVE,n.relayMoveEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(a["a"].TOUCHMOVE,n.boundHandleTouchMove_,!!p["e"]&&{passive:!1}),n}return v(e,t),e.prototype.emulateClick_=function(t){var e=new u["a"](c["a"].CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new u["a"](c["a"].DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new u["a"](c["a"].SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,r=e.pointerId;if(e.type==c["a"].POINTERUP||e.type==c["a"].POINTERCANCEL){for(var n in delete this.trackedTouches_[r],this.trackedTouches_)if(this.trackedTouches_[n].target!==e.target){delete this.trackedTouches_[n];break}}else e.type!=c["a"].POINTERDOWN&&e.type!=c["a"].POINTERMOVE||(this.trackedTouches_[r]=e);this.activePointers_=Object(g["c"])(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new u["a"](c["a"].POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(y["c"]),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);var e=new u["a"](c["a"].POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var r in this.dispatchEvent(e),this.down_={},t){var n=t[r];this.down_[r]="function"===typeof n?d["c"]:n}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(y["a"])(i,c["a"].POINTERMOVE,this.handlePointerMove_,this),Object(y["a"])(i,c["a"].POINTERUP,this.handlePointerUp_,this),Object(y["a"])(this.element_,c["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(Object(y["a"])(this.element_.getRootNode(),c["a"].POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new u["a"](c["a"].POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new u["a"](c["a"].POINTERMOVE,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(y["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(a["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(y["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(y["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(f["a"]),_=m,b=r("7238"),x=r("592d"),w=r("e637"),O=r("7b4f"),E=r("070d"),S=r("57cc"),C=r("a2c7"),T=r("496f"),P=r("a896"),j=r("92fa"),R=r("0af5"),M=r("256f"),A=r("1300"),L=r("345d"),I=r("0999"),k=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function F(t){t instanceof s["a"]?t.setMapInternal(null):t instanceof l["b"]&&t.getLayers().forEach(F)}function D(t,e){if(t instanceof s["a"])t.setMapInternal(e);else if(t instanceof l["b"])for(var r=t.getLayers().getArray(),n=0,i=r.length;n<i;++n)D(r[n],e)}var N=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=G(e);r.renderComplete_,r.loaded_=!0,r.boundHandleBrowserEvent_=r.handleBrowserEvent.bind(r),r.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,r.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:p["a"],r.postRenderTimeoutHandle_,r.animationDelayKey_,r.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(r),r.coordinateToPixelTransform_=Object(P["c"])(),r.pixelToCoordinateTransform_=Object(P["c"])(),r.frameIndex_=0,r.frameState_=null,r.previousExtent_=null,r.viewPropertyListenerKey_=null,r.viewChangeListenerKey_=null,r.layerGroupPropertyListenerKeys_=null,r.viewport_=document.createElement("div"),r.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),r.viewport_.style.position="relative",r.viewport_.style.overflow="hidden",r.viewport_.style.width="100%",r.viewport_.style.height="100%",r.overlayContainer_=document.createElement("div"),r.overlayContainer_.style.position="absolute",r.overlayContainer_.style.zIndex="0",r.overlayContainer_.style.width="100%",r.overlayContainer_.style.height="100%",r.overlayContainer_.style.pointerEvents="none",r.overlayContainer_.className="ol-overlaycontainer",r.viewport_.appendChild(r.overlayContainer_),r.overlayContainerStopEvent_=document.createElement("div"),r.overlayContainerStopEvent_.style.position="absolute",r.overlayContainerStopEvent_.style.zIndex="0",r.overlayContainerStopEvent_.style.width="100%",r.overlayContainerStopEvent_.style.height="100%",r.overlayContainerStopEvent_.style.pointerEvents="none",r.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",r.viewport_.appendChild(r.overlayContainerStopEvent_),r.mapBrowserEventHandler_=null,r.moveTolerance_=e.moveTolerance,r.keyboardEventTarget_=n.keyboardEventTarget,r.targetChangeHandlerKeys_=null,r.controls=n.controls||new i["a"],r.interactions=n.interactions||new i["a"],r.overlays_=n.overlays,r.overlayIdIndex_={},r.renderer_=null,r.postRenderFunctions_=[],r.tileQueue_=new S["a"](r.getTilePriority.bind(r),r.handleTileChange_.bind(r)),r.addChangeListener(w["a"].LAYERGROUP,r.handleLayerGroupChanged_),r.addChangeListener(w["a"].VIEW,r.handleViewChanged_),r.addChangeListener(w["a"].SIZE,r.handleSizeChanged_),r.addChangeListener(w["a"].TARGET,r.handleTargetChanged_),r.setProperties(n.values);var a=r;return!e.view||e.view instanceof C["default"]||e.view.then((function(t){a.setView(new C["default"](t))})),r.controls.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(r)),r.controls.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.interactions.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(r)),r.interactions.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.overlays_.addEventListener(o["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(r)),r.overlays_.addEventListener(o["a"].REMOVE,function(t){var e=t.element,r=e.getId();void 0!==r&&delete this.overlayIdIndex_[r.toString()],t.element.setMap(null)}.bind(r)),r.controls.forEach(function(t){t.setMap(this)}.bind(r)),r.interactions.forEach(function(t){t.setMap(this)}.bind(r)),r.overlays_.forEach(r.addOverlayInternal_.bind(r)),r}return k(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){var e=this.getLayerGroup().getLayers();e.push(t)},e.prototype.handleLayerAdd_=function(t){D(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=this.getCoordinateFromPixelInternal(t);r=void 0!==r?r:{};var i=void 0!==r.hitTolerance?r.hitTolerance:0,o=void 0!==r.layerFilter?r.layerFilter:d["b"],a=!1!==r.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,a,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var r=[];return this.forEachFeatureAtPixel(t,(function(t){r.push(t)}),e),r},e.prototype.getAllLayers=function(){var t=[];function e(r){r.forEach((function(r){r instanceof l["b"]?e(r.getLayers()):t.push(r)}))}return e(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=r||{},i=void 0!==n.hitTolerance?n.hitTolerance:0,o=n.layerFilter||d["b"];return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,o)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var r=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};var n=void 0!==e.layerFilter?e.layerFilter:d["b"],i=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,o,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),r="changedTouches"in t?t.changedTouches[0]:t;return[r.clientX-e.left,r.clientY-e.top]},e.prototype.getTarget=function(){return this.get(w["a"].TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object(M["toUserCoordinate"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(P["a"])(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(w["a"].LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof i["a"])e.setLayers(t);else{var r=e.getLayers();r.clear(),r.extend(t)}},e.prototype.getLayers=function(){var t=this.getLayerGroup().getLayers();return t},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e];if(n.visible){var i=n.layer.getRenderer();if(i&&!i.ready)return!0;var o=n.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(M["fromUserCoordinate"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(P["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(w["a"].SIZE)},e.prototype.getView=function(){return this.get(w["a"].VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,r,n){return Object(S["b"])(this.frameState_,t,e,r,n)},e.prototype.handleBrowserEvent=function(t,e){var r=e||t.type,n=new u["a"](r,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,r=e.type;if(r===h["a"].POINTERDOWN||r===a["a"].WHEEL||r===a["a"].KEYDOWN){var n=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():n,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===n?n.documentElement:i).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var s=this.getInteractions().getArray().slice(),l=s.length-1;l>=0;l--){var u=s[l];if(u.getMap()===this&&u.getActive()&&this.getTargetElement()){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var r=this.maxTilesLoading_,n=r;if(t){var i=t.viewHints;if(i[T["a"].ANIMATING]||i[T["a"].INTERACTING]){var o=Date.now()-t.time>8;r=o?0:8,n=o?0:2}}e.getTilesLoading()<r&&(e.reprioritize(),e.loadMoreTiles(r,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(E["a"].RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(E["a"].RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new b["a"](x["a"].LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new b["a"](x["a"].LOADSTART,this,t))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)Object(y["c"])(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(I["f"])(this.viewport_)}var r=this.getTargetElement();if(r){for(var n in r.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new _(this,this.moveTolerance_),c["a"])this.mapBrowserEventHandler_.addEventListener(c["a"][n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_,!!p["e"]&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:r;this.targetChangeHandlerKeys_=[Object(y["a"])(o,a["a"].KEYDOWN,this.handleBrowserEvent,this),Object(y["a"])(o,a["a"].KEYPRESS,this.handleBrowserEvent,this),Object(y["a"])(i,a["a"].RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(y["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(y["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(y["a"])(t,O["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(y["a"])(t,a["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(y["c"]),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new l["a"]("addlayer",t)),this.layerGroupPropertyListenerKeys_=[Object(y["a"])(t,O["a"].PROPERTYCHANGE,this.render,this),Object(y["a"])(t,a["a"].CHANGE,this.render,this),Object(y["a"])(t,"addlayer",this.handleLayerAdd_,this),Object(y["a"])(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){var e=this.getLayerGroup().getLayers();return e.remove(t)},e.prototype.handleLayerRemove_=function(t){F(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,r=this.getSize(),n=this.getView(),i=this.frameState_,o=null;if(void 0!==r&&Object(L["b"])(r)&&n&&n.isDef()){var a=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=n.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(R["getForViewAndSize"])(s.center,s.resolution,s.rotation,r),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:r,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:Object(A["c"])(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=Object(R["getForViewAndSize"])(s.nextCenter,s.nextResolution,l,r)}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i){var u=!this.previousExtent_||!Object(R["isEmpty"])(this.previousExtent_)&&!Object(R["equals"])(o.extent,this.previousExtent_);u&&(this.dispatchEvent(new b["a"](x["a"].MOVESTART,this,i)),this.previousExtent_=Object(R["createOrUpdateEmpty"])(this.previousExtent_))}var c=this.previousExtent_&&!o.viewHints[T["a"].ANIMATING]&&!o.viewHints[T["a"].INTERACTING]&&!Object(R["equals"])(o.extent,this.previousExtent_);c&&(this.dispatchEvent(new b["a"](x["a"].MOVEEND,this,o)),Object(R["clone"])(o.extent,this.previousExtent_))}this.dispatchEvent(new b["a"](x["a"].POSTRENDER,this,o)),this.renderComplete_=this.hasListener(x["a"].LOADSTART)||this.hasListener(x["a"].LOADEND)||this.hasListener(E["a"].RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new l["a"]("removelayer",e)),this.set(w["a"].LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(w["a"].SIZE,t)},e.prototype.setTarget=function(t){this.set(w["a"].TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof C["default"])this.set(w["a"].VIEW,t);else{this.set(w["a"].VIEW,new C["default"]);var e=this;t.then((function(t){e.setView(new C["default"](t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var r=getComputedStyle(t),n=t.offsetWidth-parseFloat(r["borderLeftWidth"])-parseFloat(r["paddingLeft"])-parseFloat(r["paddingRight"])-parseFloat(r["borderRightWidth"]),i=t.offsetHeight-parseFloat(r["borderTopWidth"])-parseFloat(r["paddingTop"])-parseFloat(r["paddingBottom"])-parseFloat(r["borderBottomWidth"]);isNaN(n)||isNaN(i)||(e=[n,i],!Object(L["b"])(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,r=getComputedStyle(this.viewport_);r.width&&r.height&&(e=[parseInt(r.width,10),parseInt(r.height,10)]),t.setViewportSize(e)}},e}(n["a"]);function G(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var r,n,o,a={},s=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new l["b"]({layers:t.layers});return a[w["a"].LAYERGROUP]=s,a[w["a"].TARGET]=t.target,a[w["a"].VIEW]=t.view instanceof C["default"]?t.view:new C["default"],void 0!==t.controls&&(Array.isArray(t.controls)?r=new i["a"](t.controls.slice()):(Object(j["a"])("function"===typeof t.controls.getArray,47),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new i["a"](t.interactions.slice()):(Object(j["a"])("function"===typeof t.interactions.getArray,48),n=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?o=new i["a"](t.overlays.slice()):(Object(j["a"])("function"===typeof t.overlays.getArray,49),o=t.overlays):o=new i["a"],{controls:r,interactions:n,keyboardEventTarget:e,overlays:o,values:a}}e["a"]=N},ff80:function(t,e,r){"use strict";var n=r("e269"),i=r("1300"),o=r("256f"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=t.call(this)||this;r.projection=Object(o["get"])(e.projection),r.attributions_=l(e.attributions),r.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,r.loading=!1,r.state_=void 0!==e.state?e.state:"ready",r.wrapX_=void 0!==e.wrapX&&e.wrapX,r.interpolate_=!!e.interpolate,r.viewResolver=null,r.viewRejector=null;var n=r;return r.viewPromise_=new Promise((function(t,e){n.viewResolver=t,n.viewRejector=e})),r}return a(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return Object(i["b"])()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(n["a"]);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=s}})}));
13
+ (function(t){"use strict";const e="This is not an object",r="This is not a Float16Array object",n="This constructor is not a subclass of Float16Array",i="The constructor property value is not an object",o="Species constructor didn't return TypedArray object",a="Derived constructor created TypedArray object which was too small length",s="Attempting to access detached ArrayBuffer",l="Cannot convert undefined or null to object",u="Cannot mix BigInt and other types, use explicit conversions",c="@@iterator property is not callable",h="Reduce of empty array with no initial value",f="Offset is out of bounds";function p(t){return(e,...r)=>g(t,e,r)}function d(t,e){return p(_(t,e).get)}const{apply:g,construct:y,defineProperty:v,get:m,getOwnPropertyDescriptor:_,getPrototypeOf:b,has:x,ownKeys:w,set:O,setPrototypeOf:E}=Reflect,S=Proxy,{MAX_SAFE_INTEGER:C,isFinite:T,isNaN:P}=Number,{iterator:j,species:R,toStringTag:M,for:A}=Symbol,L=Object,{create:I,defineProperty:k,freeze:F,is:D}=L,N=L.prototype,G=N.__lookupGetter__?p(N.__lookupGetter__):(t,e)=>{if(null==t)throw At(l);let r=L(t);do{const t=_(r,e);if(void 0!==t)return z(t,"get")?t.get:void 0}while(null!==(r=b(r)))},z=L.hasOwn||p(N.hasOwnProperty),B=Array,U=B.isArray,V=B.prototype,X=p(V.join),W=p(V.push),H=p(V.toLocaleString),Y=V[j],q=p(Y),K=Math.trunc,Z=ArrayBuffer,J=Z.isView,$=Z.prototype,Q=p($.slice),tt=d($,"byteLength"),et="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:null,rt=et&&d(et.prototype,"byteLength"),nt=b(Uint8Array),it=nt.from,ot=nt.prototype,at=ot[j],st=p(ot.keys),lt=p(ot.values),ut=p(ot.entries),ct=p(ot.set),ht=p(ot.reverse),ft=p(ot.fill),pt=p(ot.copyWithin),dt=p(ot.sort),gt=p(ot.slice),yt=p(ot.subarray),vt=d(ot,"buffer"),mt=d(ot,"byteOffset"),_t=d(ot,"length"),bt=d(ot,M),xt=Uint16Array,wt=(...t)=>g(it,xt,t),Ot=Uint32Array,Et=Float32Array,St=b([][j]()),Ct=p(St.next),Tt=p(function*(){}().next),Pt=b(St),jt=DataView.prototype,Rt=p(jt.getUint16),Mt=p(jt.setUint16),At=TypeError,Lt=RangeError,It=WeakSet,kt=It.prototype,Ft=p(kt.add),Dt=p(kt.has),Nt=WeakMap,Gt=Nt.prototype,zt=p(Gt.get),Bt=p(Gt.has),Ut=p(Gt.set),Vt=new Nt,Xt=I(null,{next:{value:function(){const t=zt(Vt,this);return Ct(t)}},[j]:{value:function(){return this}}});function Wt(t){if(t[j]===Y)return t;const e=I(Xt);return Ut(Vt,e,q(t)),e}const Ht=new Nt,Yt=I(Pt,{next:{value:function(){const t=zt(Ht,this);return Tt(t)},writable:!0,configurable:!0}});for(const Fe of w(St))"next"!==Fe&&k(Yt,Fe,_(St,Fe));function qt(t){const e=I(Yt);return Ut(Ht,e,t),e}function Kt(t){return null!==t&&"object"===typeof t||"function"===typeof t}function Zt(t){return null!==t&&"object"===typeof t}function Jt(t){return void 0!==bt(t)}function $t(t){const e=bt(t);return"BigInt64Array"===e||"BigUint64Array"===e}function Qt(t){try{return tt(t),!0}catch(e){return!1}}function te(t){if(null===et)return!1;try{return rt(t),!0}catch(e){return!1}}function ee(t){if(!U(t))return!1;if(t[j]===Y)return!0;const e=t[j]();return"Array Iterator"===e[M]}function re(t){if(!Jt(t))return!1;if(t[j]===at)return!0;const e=t[j]();return"Array Iterator"===e[M]}function ne(t){if("string"!==typeof t)return!1;const e=+t;return t===e+""&&(!!T(e)&&e===K(e))}const ie=A("__Float16Array__");function oe(t){if(!Zt(t))return!1;const e=b(t);if(!Zt(e))return!1;const r=e.constructor;if(void 0===r)return!1;if(!Kt(r))throw At(i);return x(r,ie)}const ae=new Z(4),se=new Et(ae),le=new Ot(ae),ue=new Ot(512),ce=new Ot(512);for(let Fe=0;Fe<256;++Fe){const t=Fe-127;t<-27?(ue[Fe]=0,ue[256|Fe]=32768,ce[Fe]=24,ce[256|Fe]=24):t<-14?(ue[Fe]=1024>>-t-14,ue[256|Fe]=1024>>-t-14|32768,ce[Fe]=-t-1,ce[256|Fe]=-t-1):t<=15?(ue[Fe]=t+15<<10,ue[256|Fe]=t+15<<10|32768,ce[Fe]=13,ce[256|Fe]=13):t<128?(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=24,ce[256|Fe]=24):(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=13,ce[256|Fe]=13)}function he(t){se[0]=t;const e=le[0],r=e>>23&511;return ue[r]+((8388607&e)>>ce[r])}const fe=new Ot(2048),pe=new Ot(64),de=new Ot(64);for(let Fe=1;Fe<1024;++Fe){let t=Fe<<13,e=0;while(0===(8388608&t))t<<=1,e-=8388608;t&=-8388609,e+=947912704,fe[Fe]=t|e}for(let Fe=1024;Fe<2048;++Fe)fe[Fe]=939524096+(Fe-1024<<13);for(let Fe=1;Fe<31;++Fe)pe[Fe]=Fe<<23;pe[31]=1199570944,pe[32]=2147483648;for(let Fe=33;Fe<63;++Fe)pe[Fe]=2147483648+(Fe-32<<23);pe[63]=3347054592;for(let Fe=1;Fe<64;++Fe)32!==Fe&&(de[Fe]=1024);function ge(t){const e=t>>10;return le[0]=fe[de[e]+(1023&t)]+pe[e],se[0]}function ye(t){const e=+t;return P(e)||0===e?0:K(e)}function ve(t){const e=ye(t);return e<0?0:e<C?e:C}function me(t,r){if(!Kt(t))throw At(e);const n=t.constructor;if(void 0===n)return r;if(!Kt(n))throw At(i);const o=n[R];return null==o?r:o}function _e(t){if(te(t))return!1;try{return Q(t,0,0),!1}catch(e){}return!0}function be(t,e){const r=P(t),n=P(e);if(r&&n)return 0;if(r)return 1;if(n)return-1;if(t<e)return-1;if(t>e)return 1;if(0===t&&0===e){const r=D(t,0),n=D(e,0);if(!r&&n)return-1;if(r&&!n)return 1}return 0}const xe=2,we=new Nt;function Oe(t){return Bt(we,t)||!J(t)&&oe(t)}function Ee(t){if(!Oe(t))throw At(r)}function Se(t,e){const r=Oe(t),n=Jt(t);if(!r&&!n)throw At(o);if("number"===typeof e){let n;if(r){const e=Ce(t);n=_t(e)}else n=_t(t);if(n<e)throw At(a)}if($t(t))throw At(u)}function Ce(t){const e=zt(we,t);if(void 0!==e){const t=vt(e);if(_e(t))throw At(s);return e}const r=t.buffer;if(_e(r))throw At(s);const n=y(Re,[r,t.byteOffset,t.length],t.constructor);return zt(we,n)}function Te(t){const e=_t(t),r=[];for(let n=0;n<e;++n)r[n]=ge(t[n]);return r}const Pe=new It;for(const Fe of w(ot)){if(Fe===M)continue;const t=_(ot,Fe);z(t,"get")&&"function"===typeof t.get&&Ft(Pe,t.get)}const je=F({get(t,e,r){return ne(e)&&z(t,e)?ge(m(t,e)):Dt(Pe,G(t,e))?m(t,e):m(t,e,r)},set(t,e,r,n){return ne(e)&&z(t,e)?O(t,e,he(r)):O(t,e,r,n)},getOwnPropertyDescriptor(t,e){if(ne(e)&&z(t,e)){const r=_(t,e);return r.value=ge(r.value),r}return _(t,e)},defineProperty(t,e,r){return ne(e)&&z(t,e)&&z(r,"value")?(r.value=he(r.value),v(t,e,r)):v(t,e,r)}});class Re{constructor(t,e,r){let n;if(Oe(t))n=y(xt,[Ce(t)],new.target);else if(Kt(t)&&!Qt(t)){let e,r;if(Jt(t)){e=t,r=_t(t);const i=vt(t),o=te(i)?Z:me(i,Z);if(_e(i))throw At(s);if($t(t))throw At(u);const a=new o(r*xe);n=y(xt,[a],new.target)}else{const i=t[j];if(null!=i&&"function"!==typeof i)throw At(c);null!=i?ee(t)?(e=t,r=t.length):(e=[...t],r=e.length):(e=t,r=ve(e.length)),n=y(xt,[r],new.target)}for(let t=0;t<r;++t)n[t]=he(e[t])}else n=y(xt,arguments,new.target);const i=new S(n,je);return Ut(we,i,n),i}static from(t,...e){const r=this;if(!x(r,ie))throw At(n);if(r===Re){if(Oe(t)&&0===e.length){const e=Ce(t),r=new xt(vt(e),mt(e),_t(e));return new Re(vt(gt(r)))}if(0===e.length)return new Re(vt(wt(t,he)));const r=e[0],n=e[1];return new Re(vt(wt(t,(function(t,...e){return he(g(r,this,[t,...Wt(e)]))}),n)))}let i,o;const a=t[j];if(null!=a&&"function"!==typeof a)throw At(c);if(null!=a)ee(t)?(i=t,o=t.length):re(t)?(i=t,o=_t(t)):(i=[...t],o=i.length);else{if(null==t)throw At(l);i=L(t),o=ve(i.length)}const s=new r(o);if(0===e.length)for(let n=0;n<o;++n)s[n]=i[n];else{const t=e[0],r=e[1];for(let e=0;e<o;++e)s[e]=g(t,r,[i[e],e])}return s}static of(...t){const e=this;if(!x(e,ie))throw At(n);const r=t.length;if(e===Re){const e=new Re(r),n=Ce(e);for(let i=0;i<r;++i)n[i]=he(t[i]);return e}const i=new e(r);for(let n=0;n<r;++n)i[n]=t[n];return i}keys(){Ee(this);const t=Ce(this);return st(t)}values(){Ee(this);const t=Ce(this);return qt(function*(){for(const e of lt(t))yield ge(e)}())}entries(){Ee(this);const t=Ce(this);return qt(function*(){for(const[e,r]of ut(t))yield[e,ge(r)]}())}at(t){Ee(this);const e=Ce(this),r=_t(e),n=ye(t),i=n>=0?n:r+n;if(!(i<0||i>=r))return ge(e[i])}map(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0],o=me(r,Re);if(o===Re){const e=new Re(n),o=Ce(e);for(let a=0;a<n;++a){const e=ge(r[a]);o[a]=he(g(t,i,[e,a,this]))}return e}const a=new o(n);Se(a,n);for(let s=0;s<n;++s){const e=ge(r[s]);a[s]=g(t,i,[e,s,this])}return a}filter(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0],o=[];for(let l=0;l<n;++l){const e=ge(r[l]);g(t,i,[e,l,this])&&W(o,e)}const a=me(r,Re),s=new a(o);return Se(s),s}reduce(t,...e){Ee(this);const r=Ce(this),n=_t(r);if(0===n&&0===e.length)throw At(h);let i,o;0===e.length?(i=ge(r[0]),o=1):(i=e[0],o=0);for(let a=o;a<n;++a)i=t(i,ge(r[a]),a,this);return i}reduceRight(t,...e){Ee(this);const r=Ce(this),n=_t(r);if(0===n&&0===e.length)throw At(h);let i,o;0===e.length?(i=ge(r[n-1]),o=n-2):(i=e[0],o=n-1);for(let a=o;a>=0;--a)i=t(i,ge(r[a]),a,this);return i}forEach(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)g(t,i,[ge(r[o]),o,this])}find(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return e}}findIndex(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return o}return-1}findLast(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=n-1;o>=0;--o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return e}}findLastIndex(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=n-1;o>=0;--o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return o}return-1}every(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)if(!g(t,i,[ge(r[o]),o,this]))return!1;return!0}some(t,...e){Ee(this);const r=Ce(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)if(g(t,i,[ge(r[o]),o,this]))return!0;return!1}set(t,...e){Ee(this);const r=Ce(this),n=ye(e[0]);if(n<0)throw Lt(f);if(null==t)throw At(l);if($t(t))throw At(u);if(Oe(t))return ct(Ce(this),Ce(t),n);if(Jt(t)){const e=vt(t);if(_e(e))throw At(s)}const i=_t(r),o=L(t),a=ve(o.length);if(n===1/0||a+n>i)throw Lt(f);for(let s=0;s<a;++s)r[s+n]=he(o[s])}reverse(){Ee(this);const t=Ce(this);return ht(t),this}fill(t,...e){Ee(this);const r=Ce(this);return ft(r,he(t),...Wt(e)),this}copyWithin(t,e,...r){Ee(this);const n=Ce(this);return pt(n,t,e,...Wt(r)),this}sort(t){Ee(this);const e=Ce(this),r=void 0!==t?t:be;return dt(e,(t,e)=>r(ge(t),ge(e))),this}slice(t,e){Ee(this);const r=Ce(this),n=me(r,Re);if(n===Re){const n=new xt(vt(r),mt(r),_t(r));return new Re(vt(gt(n,t,e)))}const i=_t(r),o=ye(t),a=void 0===e?i:ye(e);let l,u;l=o===-1/0?0:o<0?i+o>0?i+o:0:i<o?i:o,u=a===-1/0?0:a<0?i+a>0?i+a:0:i<a?i:a;const c=u-l>0?u-l:0,h=new n(c);if(Se(h,c),0===c)return h;const f=vt(r);if(_e(f))throw At(s);let p=0;while(l<u)h[p]=ge(r[l]),++l,++p;return h}subarray(t,e){Ee(this);const r=Ce(this),n=me(r,Re),i=new xt(vt(r),mt(r),_t(r)),o=yt(i,t,e),a=new n(vt(o),mt(o),_t(o));return Se(a),a}indexOf(t,...e){Ee(this);const r=Ce(this),n=_t(r);let i=ye(e[0]);if(i===1/0)return-1;i<0&&(i+=n,i<0&&(i=0));for(let o=i;o<n;++o)if(z(r,o)&&ge(r[o])===t)return o;return-1}lastIndexOf(t,...e){Ee(this);const r=Ce(this),n=_t(r);let i=e.length>=1?ye(e[0]):n-1;if(i===-1/0)return-1;i>=0?i=i<n-1?i:n-1:i+=n;for(let o=i;o>=0;--o)if(z(r,o)&&ge(r[o])===t)return o;return-1}includes(t,...e){Ee(this);const r=Ce(this),n=_t(r);let i=ye(e[0]);if(i===1/0)return!1;i<0&&(i+=n,i<0&&(i=0));const o=P(t);for(let a=i;a<n;++a){const e=ge(r[a]);if(o&&P(e))return!0;if(e===t)return!0}return!1}join(t){Ee(this);const e=Ce(this),r=Te(e);return X(r,t)}toLocaleString(...t){Ee(this);const e=Ce(this),r=Te(e);return H(r,...Wt(t))}get[M](){if(Oe(this))return"Float16Array"}}k(Re,"BYTES_PER_ELEMENT",{value:xe}),k(Re,ie,{}),E(Re,nt);const Me=Re.prototype;function Ae(t){return Jt(t)||Oe(t)}function Le(t,e,...r){return ge(Rt(t,e,...Wt(r)))}function Ie(t,e,r,...n){return Mt(t,e,he(r),...Wt(n))}function ke(t){const e=+t;if(!T(e)||0===e)return e;const r=he(e);return ge(r)}k(Me,"BYTES_PER_ELEMENT",{value:xe}),k(Me,j,{value:Me.values,writable:!0,configurable:!0}),E(Me,ot),t.Float16Array=Re,t.getFloat16=Le,t.hfround=ke,t.isFloat16Array=Oe,t.isTypedArray=Ae,t.setFloat16=Ie,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})({})},e637:function(t,e,r){"use strict";e["a"]={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},e63e:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("21bc");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t){t.style.height="30px",t.style.width="30px",t.style.left="50%",t.style.top="50%",t.style.color="red",t.style.position="absolute",t.style.marginTop="-15px",t.style.marginLeft="-15px",t.style.cursor="pointer"}function p(t,e){t.addEventListener("click",(function(t){e&&e(),t.stopPropagation()}),!1)}function d(t,e){var r=document.createElement("i");r.style.fontSize="30px",r.className=e,e=document.createElement("div");return f(e),p(e,t),e.appendChild(r),{element:e,icon_i:r}}var g=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"el-icon--zhunxin1",o=(t=((0,i.default)(this,r),d(t,n)),n=t.element,t=t.icon_i,e.call(this,{element:n,target:null}));return o._ele=n,o._icon_i=t,o}return(0,o.default)(r,[{key:"show",value:function(){this._ele.style.display="block"}},{key:"hide",value:function(){this._ele.style.display="none"}},{key:"ele",get:function(){return this._ele}},{key:"setIconName",value:function(){this._icon_i.className=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"el-icon--zhunxin1"}},{key:"setIconColor",value:function(t){this._icon_i.style.fontSize="30px"}}]),r}(u.Control);e.default=g},e6f1:function(t,e,r){"use strict";r("2c08")},e7df:function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("2c15"),o=r("869f"),a=r("6611"),s=r("0b0e"),l=r("38f3"),u=r("0999"),c=r("0af5"),h=r("256f"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){var r=this,o=void 0!==e.crossOrigin?e.crossOrigin:null,s=void 0!==e.imageLoadFunction?e.imageLoadFunction:i["b"],l=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(l=e.interpolate),r=t.call(this,{attributions:e.attributions,interpolate:l,projection:Object(h["get"])(e.projection)})||this,r.url_=e.url,r.imageExtent_=e.imageExtent,r.image_=new a["a"](r.imageExtent_,void 0,1,r.url_,o,s),r.imageSize_=e.imageSize?e.imageSize:null,r.image_.addEventListener(n["a"].CHANGE,r.handleImageChange.bind(r)),r}return f(e,t),e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,r,n){return Object(c["intersects"])(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==o["a"].LOADED){var r=this.image_.getExtent(),n=this.image_.getImage(),i=void 0,a=void 0;this.imageSize_?(i=this.imageSize_[0],a=this.imageSize_[1]):(i=n.width,a=n.height);var h=Object(c["getWidth"])(r),f=Object(c["getHeight"])(r),p=h/i,d=f/a,g=i,y=a;if(p>d?g=Math.round(h/d):y=Math.round(f/p),g!==i||y!==a){var v=Object(u["a"])(g,y);this.getInterpolate()||Object(l["a"])(v,s["a"]);var m=v.canvas;v.drawImage(n,0,0,i,a,0,0,m.width,m.height),this.image_.setImage(m)}}t.prototype.handleImageChange.call(this,e)},e}(i["a"]);e["default"]=p},e8b8:function(t,e,r){"use strict";var n=r("6573"),i=r("0e69"),o=r("617d"),a=r("a896"),s=r("0af5"),l=r("ddea"),u=r("7fc9"),c=r("bef8");function h(t,e,r,n,i,o,a,s,l,h,f,p){var d=t[e],g=t[e+1],y=0,v=0,m=0,_=0;function b(){y=d,v=g,e+=n,d=t[e],g=t[e+1],_+=m,m=Math.sqrt((d-y)*(d-y)+(g-v)*(g-v))}do{b()}while(e<r-n&&_+m<o);var x=0===m?0:(o-_)/m,w=Object(u["e"])(y,d,x),O=Object(u["e"])(v,g,x),E=e-n,S=_,C=o+s*l(h,i,f);while(e<r-n&&_+m<C)b();x=0===m?0:(C-_)/m;var T,P=Object(u["e"])(y,d,x),j=Object(u["e"])(v,g,x);if(p){var R=[w,O,P,j];Object(c["a"])(R,0,4,2,p,R,R),T=R[0]>R[2]}else T=w>P;var M,A=Math.PI,L=[],I=E+n===e;if(e=E,m=0,_=S,d=t[e],g=t[e+1],I){b(),M=Math.atan2(g-v,d-y),T&&(M+=M>0?-A:A);var k=(P+w)/2,F=(j+O)/2;return L[0]=[k,F,(C-o)/2,M,i],L}i=i.replace(/\n/g," ");for(var D=0,N=i.length;D<N;){b();var G=Math.atan2(g-v,d-y);if(T&&(G+=G>0?-A:A),void 0!==M){var z=G-M;if(z+=z>A?-2*A:z<-A?2*A:0,Math.abs(z)>a)return null}M=G;for(var B=D,U=0;D<N;++D){var V=T?N-D-1:D,X=s*l(h,i[V],f);if(e+n<r&&_+m<o+U+X/2)break;U+=X}if(D!==B){var W=T?i.substring(N-B,N-D):i.substring(B,D);x=0===m?0:(o+U/2-_)/m;k=Object(u["e"])(y,d,x),F=Object(u["e"])(v,g,x);L.push([k,F,U/2,G,W]),o+=U}}return L}var f=r("9f5e"),p=r("5938"),d=Object(s["createEmpty"])(),g=[],y=[],v=[],m=[];function _(t){return t[3].declutterBox}var b=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function x(t,e){return"start"!==e&&"end"!==e||b.test(t)||(e="start"===e?"left":"right"),i["a"][e]}function w(t,e,r){return r>0&&t.push("\n",""),t.push(e,""),t}var O=function(){function t(t,e,r,n){this.overlaps=r,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(a["c"])(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,r,n){var a=t+e+r+n;if(this.labels_[a])return this.labels_[a];var s=n?this.strokeStates[n]:null,u=r?this.fillStates[r]:null,c=this.textStates[e],h=this.pixelRatio,f=[c.scale[0]*h,c.scale[1]*h],p=Array.isArray(t),d=c.justify?i["a"][c.justify]:x(Array.isArray(t)?t[0]:t,c.textAlign||l["l"]),g=n&&s.lineWidth?s.lineWidth:0,y=p?t:t.split("\n").reduce(w,[]),v=Object(l["o"])(c,y),m=v.width,_=v.height,b=v.widths,O=v.heights,E=v.lineWidths,S=m+g,C=[],T=(S+2)*f[0],P=(_+g)*f[1],j={width:T<0?Math.floor(T):Math.ceil(T),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:C};if(1==f[0]&&1==f[1]||C.push("scale",f),n){C.push("strokeStyle",s.strokeStyle),C.push("lineWidth",g),C.push("lineCap",s.lineCap),C.push("lineJoin",s.lineJoin),C.push("miterLimit",s.miterLimit);var R=o["h"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;R.prototype.setLineDash&&(C.push("setLineDash",[s.lineDash]),C.push("lineDashOffset",s.lineDashOffset))}r&&C.push("fillStyle",u.fillStyle),C.push("textBaseline","middle"),C.push("textAlign","center");for(var M,A=.5-d,L=d*S+A*g,I=[],k=[],F=0,D=0,N=0,G=0,z=0,B=y.length;z<B;z+=2){var U=y[z];if("\n"!==U){var V=y[z+1]||c.font;V!==M&&(n&&I.push("font",V),r&&k.push("font",V),M=V),F=Math.max(F,O[N]);var X=[U,L+A*b[N]+d*(b[N]-E[G]),.5*(g+F)+D];L+=b[N],n&&I.push("strokeText",X),r&&k.push("fillText",X),++N}else D+=F,F=0,L=d*S+A*g,++G}return Array.prototype.push.apply(C,I),Array.prototype.push.apply(C,k),this.labels_[a]=j,j},t.prototype.replayTextBackground_=function(t,e,r,n,i,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,r,n,i,o,l,u,c,h,f,p,_,b,x,w){l*=p[0],u*=p[1];var O,E=r-l,S=n-u,C=i+c>t?t-c:i,T=o+h>e?e-h:o,P=b[3]+C*p[0]+b[1],j=b[0]+T*p[1]+b[2],R=E-b[3],M=S-b[0];return(x||0!==f)&&(g[0]=R,m[0]=R,g[1]=M,y[1]=M,y[0]=R+P,v[0]=y[0],v[1]=M+j,m[1]=v[1]),0!==f?(O=Object(a["b"])(Object(a["c"])(),r,n,1,1,f,-r,-n),Object(a["a"])(O,g),Object(a["a"])(O,y),Object(a["a"])(O,v),Object(a["a"])(O,m),Object(s["createOrUpdate"])(Math.min(g[0],y[0],v[0],m[0]),Math.min(g[1],y[1],v[1],m[1]),Math.max(g[0],y[0],v[0],m[0]),Math.max(g[1],y[1],v[1],m[1]),d)):Object(s["createOrUpdate"])(Math.min(R,R+P),Math.min(M,M+j),Math.max(R,R+P),Math.max(M,M+j),d),_&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:C,drawImageH:T,originX:c,originY:h,declutterBox:{minX:d[0],minY:d[1],maxX:d[2],maxY:d[3],value:w},canvasTransform:O,scale:p}},t.prototype.replayImageOrLabel_=function(t,e,r,n,i,o,a){var s=!(!o&&!a),u=n.declutterBox,c=t.canvas,h=a?a[2]*n.scale[0]/2:0,f=u.minX-h<=c.width/e&&u.maxX+h>=0&&u.minY-h<=c.height/e&&u.maxY+h>=0;return f&&(s&&this.replayTextBackground_(t,g,y,v,m,o,a),Object(l["n"])(t,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(a["a"])(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,r,n){var o=this.textStates[e],a=this.createLabel(t,e,n,r),s=this.strokeStates[r],u=this.pixelRatio,c=x(Array.isArray(t)?t[0]:t,o.textAlign||l["l"]),h=i["a"][o.textBaseline||l["m"]],f=s&&s.lineWidth?s.lineWidth:0,p=a.width/u-2*o.scale[0],d=c*p+2*(.5-c)*f,g=h*a.height/u+2*(.5-h)*f;return{label:a,anchorX:d,anchorY:g}},t.prototype.execute_=function(t,e,r,o,u,d,g,y){var v;this.pixelCoordinates_&&Object(f["b"])(r,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=Object(c["c"])(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),Object(a["j"])(this.renderedTransform_,r));var m,b,x,w,O,E,S,C,T,P,j,R,M,A,L,I,k=0,F=o.length,D=0,N=0,G=0,z=null,B=null,U=this.coordinateCache_,V=this.viewRotation_,X=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,W={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:V},H=this.instructions!=o||this.overlaps?0:200;while(k<F){var Y=o[k],q=Y[0];switch(q){case n["c"].BEGIN_GEOMETRY:M=Y[1],I=Y[3],M.getGeometry()?void 0===g||Object(s["intersects"])(g,I.getExtent())?++k:k=Y[2]+1:k=Y[2];break;case n["c"].BEGIN_PATH:N>H&&(this.fill_(t),N=0),G>H&&(t.stroke(),G=0),N||G||(t.beginPath(),w=NaN,O=NaN),++k;break;case n["c"].CIRCLE:D=Y[1];var K=v[D],Z=v[D+1],J=v[D+2],$=v[D+3],Q=J-K,tt=$-Z,et=Math.sqrt(Q*Q+tt*tt);t.moveTo(K+et,Z),t.arc(K,Z,et,0,2*Math.PI,!0),++k;break;case n["c"].CLOSE_PATH:t.closePath(),++k;break;case n["c"].CUSTOM:D=Y[1],m=Y[2];var rt=Y[3],nt=Y[4],it=6==Y.length?Y[5]:void 0;W.geometry=rt,W.feature=M,k in U||(U[k]=[]);var ot=U[k];it?it(v,D,m,2,ot):(ot[0]=v[D],ot[1]=v[D+1],ot.length=2),nt(ot,W),++k;break;case n["c"].DRAW_IMAGE:D=Y[1],m=Y[2],C=Y[3],b=Y[4],x=Y[5];var at=Y[6],st=Y[7],lt=Y[8],ut=Y[9],ct=Y[10],ht=Y[11],ft=Y[12],pt=Y[13],dt=Y[14],gt=Y[15];if(!C&&Y.length>=20){T=Y[19],P=Y[20],j=Y[21],R=Y[22];var yt=this.drawLabelWithPointPlacement_(T,P,j,R);C=yt.label,Y[3]=C;var vt=Y[23];b=(yt.anchorX-vt)*this.pixelRatio,Y[4]=b;var mt=Y[24];x=(yt.anchorY-mt)*this.pixelRatio,Y[5]=x,at=C.height,Y[6]=at,pt=C.width,Y[13]=pt}var _t=void 0;Y.length>25&&(_t=Y[25]);var bt=void 0,xt=void 0,wt=void 0;Y.length>17?(bt=Y[16],xt=Y[17],wt=Y[18]):(bt=l["j"],xt=!1,wt=!1),ct&&X?ht+=V:ct||X||(ht-=V);for(var Ot=0;D<m;D+=2)if(!(_t&&_t[Ot++]<pt/this.pixelRatio)){var Et=this.calculateImageOrLabelDimensions_(C.width,C.height,v[D],v[D+1],pt,at,b,x,lt,ut,ht,ft,u,bt,xt||wt,M),St=[t,e,C,Et,st,xt?z:null,wt?B:null];if(y){if("none"===dt)continue;if("obstacle"===dt){y.insert(Et.declutterBox);continue}var Ct=void 0,Tt=void 0;if(gt){var Pt=m-D;if(!gt[Pt]){gt[Pt]=St;continue}if(Ct=gt[Pt],delete gt[Pt],Tt=_(Ct),y.collides(Tt))continue}if(y.collides(Et.declutterBox))continue;Ct&&(y.insert(Tt),this.replayImageOrLabel_.apply(this,Ct)),y.insert(Et.declutterBox)}this.replayImageOrLabel_.apply(this,St)}++k;break;case n["c"].DRAW_CHARS:var jt=Y[1],Rt=Y[2],Mt=Y[3],At=Y[4];R=Y[5];var Lt=Y[6],It=Y[7],kt=Y[8];j=Y[9];var Ft=Y[10];T=Y[11],P=Y[12];var Dt=[Y[13],Y[13]],Nt=this.textStates[P],Gt=Nt.font,zt=[Nt.scale[0]*It,Nt.scale[1]*It],Bt=void 0;Gt in this.widths_?Bt=this.widths_[Gt]:(Bt={},this.widths_[Gt]=Bt);var Ut=Object(p["a"])(v,jt,Rt,2),Vt=Math.abs(zt[0])*Object(l["p"])(Gt,T,Bt);if(At||Vt<=Ut){var Xt=this.textStates[P].textAlign,Wt=(Ut-Vt)*i["a"][Xt],Ht=h(v,jt,Rt,2,T,Wt,Lt,Math.abs(zt[0]),l["p"],Gt,Bt,X?0:this.viewRotation_);t:if(Ht){var Yt=[],qt=void 0,Kt=void 0,Zt=void 0,Jt=void 0,$t=void 0;if(j)for(qt=0,Kt=Ht.length;qt<Kt;++qt){$t=Ht[qt],Zt=$t[4],Jt=this.createLabel(Zt,P,"",j),b=$t[2]+(zt[0]<0?-Ft:Ft),x=Mt*Jt.height+2*(.5-Mt)*Ft*zt[1]/zt[0]-kt;Et=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,b,x,0,0,$t[3],Dt,!1,l["j"],!1,M);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}if(R)for(qt=0,Kt=Ht.length;qt<Kt;++qt){$t=Ht[qt],Zt=$t[4],Jt=this.createLabel(Zt,P,R,""),b=$t[2],x=Mt*Jt.height-kt;Et=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,b,x,0,0,$t[3],Dt,!1,l["j"],!1,M);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}y&&y.load(Yt.map(_));for(var Qt=0,te=Yt.length;Qt<te;++Qt)this.replayImageOrLabel_.apply(this,Yt[Qt])}}++k;break;case n["c"].END_GEOMETRY:if(void 0!==d){M=Y[1];var ee=d(M,I);if(ee)return ee}++k;break;case n["c"].FILL:H?N++:this.fill_(t),++k;break;case n["c"].MOVE_TO_LINE_TO:for(D=Y[1],m=Y[2],A=v[D],L=v[D+1],E=A+.5|0,S=L+.5|0,E===w&&S===O||(t.moveTo(A,L),w=E,O=S),D+=2;D<m;D+=2)A=v[D],L=v[D+1],E=A+.5|0,S=L+.5|0,D!=m-2&&E===w&&S===O||(t.lineTo(A,L),w=E,O=S);++k;break;case n["c"].SET_FILL_STYLE:z=Y,this.alignFill_=Y[2],N&&(this.fill_(t),N=0,G&&(t.stroke(),G=0)),t.fillStyle=Y[1],++k;break;case n["c"].SET_STROKE_STYLE:B=Y,G&&(t.stroke(),G=0),this.setStrokeStyle_(t,Y),++k;break;case n["c"].STROKE:H?G++:t.stroke(),++k;break;default:++k;break}}N&&this.fill_(t),G&&t.stroke()},t.prototype.execute=function(t,e,r,n,i,o){this.viewRotation_=n,this.execute_(t,e,r,this.instructions,i,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,r,n,i){return this.viewRotation_=r,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,i)},t}(),E=O,S=r("0999"),C=r("38f3"),T=["Polygon","Circle","LineString","Image","Text","Default"],P=function(){function t(t,e,r,n,i,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=r,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(a["c"])(),this.createExecutors_(i)}return t.prototype.clip=function(t,e){var r=this.getClipCoords(e);t.beginPath(),t.moveTo(r[0],r[1]),t.lineTo(r[2],r[3]),t.lineTo(r[4],r[5]),t.lineTo(r[6],r[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var r=this.executorsByZIndex_[e];void 0===r&&(r={},this.executorsByZIndex_[e]=r);var n=t[e];for(var i in n){var o=n[i];r[i]=new E(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var r=this.executorsByZIndex_[e],n=0,i=t.length;n<i;++n)if(t[n]in r)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o){n=Math.round(n);var l=2*n+1,u=Object(a["b"])(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-r,-t[0],-t[1]),c=!this.hitDetectionContext_;c&&(this.hitDetectionContext_=Object(S["a"])(l,l));var h,p=this.hitDetectionContext_;p.canvas.width!==l||p.canvas.height!==l?(p.canvas.width=l,p.canvas.height=l):c||p.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(h=Object(s["createEmpty"])(),Object(s["extendCoordinate"])(h,t),Object(s["buffer"])(h,e*(this.renderBuffer_+n),h));var d,g=R(n);function y(t,e){for(var r=p.getImageData(0,0,l,l).data,a=0,s=g.length;a<s;a++)if(r[g[a]]>0){if(!o||"Image"!==d&&"Text"!==d||-1!==o.indexOf(t)){var u=(g[a]-3)/4,c=n-u%l,h=n-(u/l|0),f=i(t,e,c*c+h*h);if(f)return f}p.clearRect(0,0,l,l);break}}var v,m,_,b,x,w=Object.keys(this.executorsByZIndex_).map(Number);for(w.sort(f["i"]),v=w.length-1;v>=0;--v){var O=w[v].toString();for(_=this.executorsByZIndex_[O],m=T.length-1;m>=0;--m)if(d=T[m],b=_[d],void 0!==b&&(x=b.executeHitDetection(p,u,r,y,h),x))return x}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var r=e[0],n=e[1],i=e[2],o=e[3],a=[r,n,r,o,i,o,i,n];return Object(c["c"])(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return Object(C["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,r,n,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(f["i"]),this.maxExtent_&&(t.save(),this.clip(t,r));var l,u,c,h,p,d,g=o||T;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var y=s[l].toString();for(p=this.executorsByZIndex_[y],c=0,h=g.length;c<h;++c){var v=g[c];d=p[v],void 0!==d&&d.execute(t,e,r,n,i,a)}}this.maxExtent_&&t.restore()},t}(),j={};function R(t){if(void 0!==j[t])return j[t];for(var e=2*t+1,r=t*t,n=new Array(r+1),i=0;i<=t;++i)for(var o=0;o<=t;++o){var a=i*i+o*o;if(a>r)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((t+i)*e+(t+o))+3),i>0&&s.push(4*((t-i)*e+(t+o))+3),o>0&&(s.push(4*((t+i)*e+(t-o))+3),i>0&&s.push(4*((t-i)*e+(t-o))+3))}for(var l=[],u=(i=0,n.length);i<u;++i)n[i]&&l.push.apply(l,n[i]);return j[t]=l,l}e["a"]=P},e98d:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("5c38");function i(t){return Array.isArray(t)?Object(n["e"])(t):t}},ebea:function(t,e,r){const n=r("f460"),i=r("658e"),o=r("ddec");function a(t,e,r){const a=r&&r.debug||!1,s=!(r&&!1===typeof r.nested),l=r&&r.startIndex||0;a&&console.log("[xml-utils] starting findTagByName with",e," and ",r);const u=n(t,`<${e}[ >/]`,l);if(a&&console.log("[xml-utils] start:",u),-1===u)return;const c=t.slice(u+e.length);let h=i(c,"^[^<]*[ /]>",0);const f=-1!==h&&"/"===c[h-1];if(a&&console.log("[xml-utils] selfClosing:",f),!1===f)if(s){let t=0,r=1,n=0;while(-1!==(h=i(c,"[ /]"+e+">",t))){const i=c.substring(t,h+1);if(r+=o(i,"<"+e),n+=o(i,"/"+e+">"),n>=r)break;t=h}}else h=i(c,"[ /]"+e+">",0);const p=u+e.length+h+1;if(a&&console.log("[xml-utils] end:",p),-1===p)return;const d=t.slice(u,p);let g;return g=f?null:d.slice(d.indexOf(">")+1,d.lastIndexOf("<")),{inner:g,outer:d,start:u,end:p}}t.exports=a,t.exports.default=a},ed05:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f={width:160,height:74,padding:"2px 0 7px 14px",border:"0.3px solid #FF744C",backgroundColor:"rgba(60,30,20,0.3)"},p={color:"#FF744C",fontSize:32},d={color:"#fff",fontSize:16,marginLeft:"rgba(60,30,20,0.3)"},g={backgroundColor:" #FF744C",left:0,top:16.6,width:1.66,height:44.8},y={color:"#fff",fontSize:16},v={popupStyle:f,spanStyle:p,labelStyle:d,asideStyle:g,areaStyle:y},m=function(t){(0,a.default)(r,t);var e=c(r);function r(){var t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:v;return(0,i.default)(this,r),(t=e.call(this))._label=null,t._span=null,t._area=null,t._popupStyles=n.popupStyle,t._labelStyles=n.labelStyle,t._spanStyles=n.spanStyle,t._asideStyle=n.asideStyle,t._areaStyle=n.areaStyle,t.init(),t}return(0,o.default)(r,[{key:"init",value:function(){this.setDivStyle(),this.ele.appendChild(this.createAside());var t=this.createSection();this._span=this.createSpan(),this._label=this.ceateLabel(),this._area=this.createArea(),t.appendChild(this._span),t.appendChild(this._label),this.ele.appendChild(t),this.ele.appendChild(this._area)}},{key:"setDivStyle",value:function(){var t=this._popupStyles;this.ele.style.width="".concat(t.width,"px"),this.ele.style.height="".concat(t.height,"px"),this.ele.style.backgroundColor=t.backgroundColor,this.ele.style.position="relative",this.ele.style.boxSizing="border-box",this.ele.style.padding=t.padding,this.ele.style.borderRadius="2.36px",this.ele.style.border=t.border}},{key:"ceateLabel",value:function(){var t=this._labelStyles,e=document.createElement("label");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e.style.marginLeft="8px",e}},{key:"setHTMLElementStyle",value:function(){}},{key:"createSpan",value:function(){var t=this._spanStyles,e=document.createElement("span");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e}},{key:"createSection",value:function(){var t=document.createElement("section");return t.style.display="flex",t.style.alignItems="center",t}},{key:"createArea",value:function(){var t=this._areaStyle,e=document.createElement("section");return e.style.fontSize="".concat(t.fontSize,"px"),e.style.color=t.color||"#fff",e}},{key:"createAside",value:function(){var t=this._asideStyle,e=document.createElement("aside");return e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.backgroundColor=t.backgroundColor,e.style.position="absolute",e.style.top="".concat(t.top,"px"),e.style.left="".concat(t.left,"px"),e}},{key:"setData",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{unit:"台"};this._span&&(this._span.innerHTML=t.total),this._label&&(this._label.innerHTML=t.unit),this._area&&(this._area.innerHTML=t.areaName)}}]),r}(u.LOverlay);e.default=m},ed6d:function(t,e,r){var n=r("4a4b");function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},ed9b:function(t,e,r){"use strict";var n=r("8778"),i=r("869f"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e,r,n,o,a){var s=this,l=void 0!==a?i["a"].IDLE:i["a"].LOADED;return s=t.call(this,e,r,n,l)||this,s.loader_=void 0!==a?a:null,s.canvas_=o,s.error_=null,s}return o(e,t),e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=i["a"].ERROR):this.state=i["a"].LOADED,this.changed()},e.prototype.load=function(){this.state==i["a"].IDLE&&(this.state=i["a"].LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(n["a"]);e["a"]=a},efee:function(t,e,r){"use strict";const n=r("800c"),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),d=()=>1;class g{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||d;if(this[a]="function"!==typeof e?d:e,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,m(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,m(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!==typeof t&&(t=d),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach(t=>{t.length=this[a](t.value,t.key),this[o]+=t.length})),m(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const n=r.prev;x(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;x(this,t,r,e),r=n}}keys(){return this[h].toArray().map(t=>t.key)}values(){return this[h].toArray().map(t=>t.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(t=>this[u](t.key,t.value)),this[f]=new Map,this[h]=new n,this[o]=0}dump(){return this[h].map(t=>!v(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[h]}set(t,e,r){if(r=r||this[l],r&&"number"!==typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return _(this,this[f].get(t)),!1;const a=this[f].get(t),l=a.value;return this[u]&&(this[c]||this[u](t,l.value)),l.now=n,l.maxAge=r,l.value=e,this[o]+=s-l.length,l.length=s,this.get(t),m(this),!0}const p=new b(t,e,s,n,r);return p.length>this[i]?(this[u]&&this[u](t,e),!1):(this[o]+=p.length,this[h].unshift(p),this[f].set(t,this[h].head),m(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!v(this,e)}get(t){return y(this,t,!0)}peek(t){return y(this,t,!1)}pop(){const t=this[h].tail;return t?(_(this,t),t.value):null}del(t){_(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[f].forEach((t,e)=>y(this,e,!1))}}const y=(t,e,r)=>{const n=t[f].get(e);if(n){const e=n.value;if(v(t,e)){if(_(t,n),!t[s])return}else r&&(t[p]&&(n.value.now=Date.now()),t[h].unshiftNode(n));return e.value}},v=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},m=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const r=e.prev;_(t,e),e=r}},_=(t,e)=>{if(e){const r=e.value;t[u]&&t[u](r.key,r.value),t[o]-=r.length,t[f].delete(r.key),t[h].removeNode(e)}};class b{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const x=(t,e,r,n)=>{let i=r.value;v(t,i)&&(_(t,r),t[s]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=g},f367:function(t,e,r){"use strict";r("bae2")},f403:function(t,e,r){"use strict";r.r(e);var n=r("9abc"),i=r("0af5"),o=r("abb7"),a=r("7fc9"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r){var n=t.call(this)||this;return n.setCoordinates(e,r),n}return s(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=Object(a["j"])(t,e,i[0],i[1]);if(o<n){for(var s=this.stride,l=0;l<s;++l)r[l]=i[l];return r.length=s,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(i["createOrUpdateFromCoordinate"])(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return Object(i["containsXY"])(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(o["a"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(n["a"]);e["default"]=l},f460:function(t,e){function r(t,e,r){const n=new RegExp(e),i=n.exec(t.slice(r));return i?r+i.index:-1}t.exports=r,t.exports.default=r},f542:function(t,e,r){"use strict";r("31ea")},f5dd:function(t,e,r){"use strict";var n=r("fced"),i=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||n["a"][this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}();e["a"]=i},f78c:function(t,e,r){"use strict";var n=function(){function t(){}return t.prototype.drawCustom=function(t,e,r,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();e["a"]=n},f8b5:function(t,e,r){"use strict";e["a"]={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},fa2b:function(t,e,r){"use strict";r.r(e),r.d(e,"Graticule",(function(){return P})),r.d(e,"Group",(function(){return j["b"]})),r.d(e,"Heatmap",(function(){return Vt})),r.d(e,"Image",(function(){return Xt["default"]})),r.d(e,"Layer",(function(){return Wt["a"]})),r.d(e,"MapboxVector",(function(){return Da})),r.d(e,"Tile",(function(){return Xe["default"]})),r.d(e,"Vector",(function(){return p["default"]})),r.d(e,"VectorImage",(function(){return Ka})),r.d(e,"VectorTile",(function(){return Fe})),r.d(e,"WebGLPoints",(function(){return tl})),r.d(e,"WebGLTile",(function(){return ol}));var n=r("e300"),i=r("070d"),o=r("4cdf"),a=r("83a6"),s=r("521b"),l=r("7a09"),u=r("f403"),c=r("8682"),h=r("6c77"),f=r("8295"),p=r("3e6b"),d=r("5831"),g=r("0af5"),y=r("38f3"),v=r("7fc9"),m=r("a568"),_=r("256f"),b=r("834d");function x(t,e,r){var n,i,o,a,s,l,u=[],c=t(0),h=t(1),f=e(c),p=e(h),d=[h,c],g=[p,f],y=[1,0],m={},_=1e5;while(--_>0&&y.length>0)o=y.pop(),c=d.pop(),f=g.pop(),l=o.toString(),l in m||(u.push(f[0],f[1]),m[l]=!0),a=y.pop(),h=d.pop(),p=g.pop(),s=(o+a)/2,n=t(s),i=e(n),Object(v["k"])(i[0],i[1],f[0],f[1],p[0],p[1])<r?(u.push(p[0],p[1]),l=a.toString(),m[l]=!0):(y.push(a,s,s,o),g.push(p,i,i,f),d.push(h,n,n,c));return u}function w(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[t,e+(r-e)*n]}),Object(_["getTransform"])(o,n),i)}function O(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[e+(r-e)*n,t]}),Object(_["getTransform"])(o,n),i)}var E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),S=new c["default"]({color:"rgba(0,0,0,0.2)"}),C=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],T=function(t){function e(e){var r=this,o=e||{},s=Object(y["a"])({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},o);return delete s.maxLines,delete s.strokeStyle,delete s.targetSize,delete s.showLabels,delete s.lonLabelFormatter,delete s.latLabelFormatter,delete s.lonLabelPosition,delete s.latLabelPosition,delete s.lonLabelStyle,delete s.latLabelStyle,delete s.intervals,r=t.call(this,s)||this,r.projection_=null,r.maxLat_=1/0,r.maxLon_=1/0,r.minLat_=-1/0,r.minLon_=-1/0,r.maxX_=1/0,r.maxY_=1/0,r.minX_=-1/0,r.minY_=-1/0,r.targetSize_=void 0!==o.targetSize?o.targetSize:100,r.maxLines_=void 0!==o.maxLines?o.maxLines:100,r.meridians_=[],r.parallels_=[],r.strokeStyle_=void 0!==o.strokeStyle?o.strokeStyle:S,r.fromLonLatTransform_=void 0,r.toLonLatTransform_=void 0,r.projectionCenterLonLat_=null,r.bottomLeft_=null,r.bottomRight_=null,r.topLeft_=null,r.topRight_=null,r.meridiansLabels_=null,r.parallelsLabels_=null,o.showLabels&&(r.lonLabelFormatter_=void 0==o.lonLabelFormatter?m["d"].bind(r,"EW"):o.lonLabelFormatter,r.latLabelFormatter_=void 0==o.latLabelFormatter?m["d"].bind(r,"NS"):o.latLabelFormatter,r.lonLabelPosition_=void 0==o.lonLabelPosition?0:o.lonLabelPosition,r.latLabelPosition_=void 0==o.latLabelPosition?1:o.latLabelPosition,r.lonLabelStyleBase_=new h["default"]({text:void 0!==o.lonLabelStyle?o.lonLabelStyle.clone():new f["a"]({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new a["default"]({color:"rgba(0,0,0,1)"}),stroke:new c["default"]({color:"rgba(255,255,255,1)",width:3})})}),r.lonLabelStyle_=function(t){var e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_}.bind(r),r.latLabelStyleBase_=new h["default"]({text:void 0!==o.latLabelStyle?o.latLabelStyle.clone():new f["a"]({font:"12px Calibri,sans-serif",textAlign:"right",fill:new a["default"]({color:"rgba(0,0,0,1)"}),stroke:new c["default"]({color:"rgba(255,255,255,1)",width:3})})}),r.latLabelStyle_=function(t){var e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_}.bind(r),r.meridiansLabels_=[],r.parallelsLabels_=[],r.addEventListener(i["a"].POSTRENDER,r.drawLabels_.bind(r))),r.intervals_=void 0!==o.intervals?o.intervals:C,r.setSource(new d["default"]({loader:r.loaderFunction.bind(r),strategy:r.strategyFunction.bind(r),features:new n["a"],overlaps:!1,useSpatialIndex:!1,wrapX:o.wrapX})),r.featurePool_=[],r.lineStyle_=new h["default"]({stroke:r.strokeStyle_}),r.loadedExtent_=null,r.renderedExtent_=null,r.renderedResolution_=null,r.setRenderOrder(null),r}return E(e,t),e.prototype.strategyFunction=function(t,e){var r=t.slice();return this.projection_&&this.getSource().getWrapX()&&Object(g["wrapX"])(r,this.projection_),this.loadedExtent_&&(Object(g["approximatelyEquals"])(this.loadedExtent_,r,e)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]},e.prototype.loaderFunction=function(t,e,r){this.loadedExtent_=t;var n=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],a=Object(g["getIntersection"])(i,t);if((!this.renderedExtent_||!Object(g["equals"])(this.renderedExtent_,a)||this.renderedResolution_!==e)&&(this.renderedExtent_=a,this.renderedResolution_=e,!Object(g["isEmpty"])(a))){var s=Object(g["getCenter"])(a),l=e*e/4,u=!this.projection_||!Object(_["equivalent"])(this.projection_,r);u&&this.updateProjectionInfo_(r),this.createGraticule_(a,s,e,l);var c,h=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(h+=this.meridians_.length),this.parallelsLabels_&&(h+=this.parallels_.length);while(h>this.featurePool_.length)c=new o["default"],this.featurePool_.push(c);var f=n.getFeaturesCollection();f.clear();var p,d,y=0;for(p=0,d=this.meridians_.length;p<d;++p)c=this.featurePool_[y++],c.setGeometry(this.meridians_[p]),c.setStyle(this.lineStyle_),f.push(c);for(p=0,d=this.parallels_.length;p<d;++p)c=this.featurePool_[y++],c.setGeometry(this.parallels_[p]),c.setStyle(this.lineStyle_),f.push(c)}},e.prototype.addMeridian_=function(t,e,r,n,i,o){var a=this.getMeridian_(t,e,r,n,o);if(Object(g["intersects"])(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(t);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new u["default"]([]),text:s}}this.meridians_[o++]=a}return o},e.prototype.addParallel_=function(t,e,r,n,i,o){var a=this.getParallel_(t,e,r,n,o);if(Object(g["intersects"])(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(t);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new u["default"]([]),text:s}}this.parallels_[o++]=a}return o},e.prototype.drawLabels_=function(t){var e=t.frameState.viewState.rotation,r=t.frameState.viewState.resolution,n=t.frameState.size,i=t.frameState.extent,o=Object(g["getCenter"])(i),a=i;if(e){var s=n[0]*r,l=n[1]*r;a=[o[0]-s/2,o[1]-l/2,o[0]+s/2,o[1]+l/2]}var u=0,c=0,h=this.latLabelPosition_<.5,f=this.projection_.getExtent(),p=Object(g["getWidth"])(f);if(this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(g["containsExtent"])(f,i)){u=Math.floor((i[0]-f[0])/p),c=Math.ceil((i[2]-f[2])/p);var d=Math.abs(e)>Math.PI/2;h=h!==d}for(var y=Object(b["getVectorContext"])(t),v=u;v<=c;++v){var m=this.meridians_.length+this.parallels_.length,_=void 0,x=void 0,w=void 0,O=void 0;if(this.meridiansLabels_)for(x=0,w=this.meridiansLabels_.length;x<w;++x){var E=this.meridians_[x];if(e||0!==v){var S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getMeridianPoint_(S,a,x),O.rotate(e,o)}else O=this.getMeridianPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.meridiansLabels_[x].text),y.drawFeature(_,this.lonLabelStyle_(_))}if(this.parallelsLabels_&&(v===u&&h||v===c&&!h))for(x=0,w=this.parallels_.length;x<w;++x){E=this.parallels_[x];if(e||0!==v){S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getParallelPoint_(S,a,x),O.rotate(e,o)}else O=this.getParallelPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.parallelsLabels_[x].text),y.drawFeature(_,this.latLabelStyle_(_))}}},e.prototype.createGraticule_=function(t,e,r,n){var i=this.getInterval_(r);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=Object(g["getWidth"])(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(g["containsExtent"])(a,t)&&(Object(g["getWidth"])(t)>=s?(t[0]=a[0],t[2]=a[2]):o=!0);var l=[Object(v["b"])(e[0],this.minX_,this.maxX_),Object(v["b"])(e[1],this.minY_,this.maxY_)],u=this.toLonLatTransform_(l);isNaN(u[1])&&(u[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var c,h,f,p,d=Object(v["b"])(u[0],this.minLon_,this.maxLon_),y=Object(v["b"])(u[1],this.minLat_,this.maxLat_),m=this.maxLines_,_=t;o||(_=[Object(v["b"])(t[0],this.minX_,this.maxX_),Object(v["b"])(t[1],this.minY_,this.maxY_),Object(v["b"])(t[2],this.minX_,this.maxX_),Object(v["b"])(t[3],this.minY_,this.maxY_)]);var b=Object(g["applyTransform"])(_,this.toLonLatTransform_,void 0,8),x=b[3],w=b[2],O=b[1],E=b[0];if(o||(Object(g["containsCoordinate"])(_,this.bottomLeft_)&&(E=this.minLon_,O=this.minLat_),Object(g["containsCoordinate"])(_,this.bottomRight_)&&(w=this.maxLon_,O=this.minLat_),Object(g["containsCoordinate"])(_,this.topLeft_)&&(E=this.minLon_,x=this.maxLat_),Object(g["containsCoordinate"])(_,this.topRight_)&&(w=this.maxLon_,x=this.maxLat_),x=Object(v["b"])(x,y,this.maxLat_),w=Object(v["b"])(w,d,this.maxLon_),O=Object(v["b"])(O,this.minLat_,y),E=Object(v["b"])(E,this.minLon_,d)),d=Math.floor(d/i)*i,p=Object(v["b"])(d,this.minLon_,this.maxLon_),h=this.addMeridian_(p,O,x,n,t,0),c=0,o)while((p-=i)>=E&&c++<m)h=this.addMeridian_(p,O,x,n,t,h);else while(p!=this.minLon_&&c++<m)p=Math.max(p-i,this.minLon_),h=this.addMeridian_(p,O,x,n,t,h);if(p=Object(v["b"])(d,this.minLon_,this.maxLon_),c=0,o)while((p+=i)<=w&&c++<m)h=this.addMeridian_(p,O,x,n,t,h);else while(p!=this.maxLon_&&c++<m)p=Math.min(p+i,this.maxLon_),h=this.addMeridian_(p,O,x,n,t,h);this.meridians_.length=h,this.meridiansLabels_&&(this.meridiansLabels_.length=h),y=Math.floor(y/i)*i,f=Object(v["b"])(y,this.minLat_,this.maxLat_),h=this.addParallel_(f,E,w,n,t,0),c=0;while(f!=this.minLat_&&c++<m)f=Math.max(f-i,this.minLat_),h=this.addParallel_(f,E,w,n,t,h);f=Object(v["b"])(y,this.minLat_,this.maxLat_),c=0;while(f!=this.maxLat_&&c++<m)f=Math.min(f+i,this.maxLat_),h=this.addParallel_(f,E,w,n,t,h);this.parallels_.length=h,this.parallelsLabels_&&(this.parallelsLabels_.length=h)},e.prototype.getInterval_=function(t){for(var e=this.projectionCenterLonLat_[0],r=this.projectionCenterLonLat_[1],n=-1,i=Math.pow(this.targetSize_*t,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var u=Object(v["b"])(this.intervals_[s]/2,0,90),c=Object(v["b"])(r,-90+u,90-u);o[0]=e-u,o[1]=c-u,a[0]=e+u,a[1]=c+u,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a);var h=Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2);if(h<=i)break;n=this.intervals_[s]}return n},e.prototype.getMeridian_=function(t,e,r,n,i){var o=w(t,e,r,this.projection_,n),a=this.meridians_[i];return a?(a.setFlatCoordinates(s["a"].XY,o),a.changed()):(a=new l["default"](o,s["a"].XY),this.meridians_[i]=a),a},e.prototype.getMeridianPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=1,o=n.length-1;n[i]>n[o]&&(i=o,o=1);var a=Math.max(e[1],n[i]),s=Math.min(e[3],n[o]),l=Object(v["b"])(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,s),u=n[i-1]+(n[o-1]-n[i-1])*(l-n[i])/(n[o]-n[i]),c=[u,l],h=this.meridiansLabels_[r].geom;return h.setCoordinates(c),h},e.prototype.getMeridians=function(){return this.meridians_},e.prototype.getParallel_=function(t,e,r,n,i){var o=O(t,e,r,this.projection_,n),a=this.parallels_[i];return a?(a.setFlatCoordinates(s["a"].XY,o),a.changed()):a=new l["default"](o,s["a"].XY),a},e.prototype.getParallelPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=0,o=n.length-2;n[i]>n[o]&&(i=o,o=0);var a=Math.max(e[0],n[i]),s=Math.min(e[2],n[o]),l=Object(v["b"])(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,s),u=n[i+1]+(n[o+1]-n[i+1])*(l-n[i])/(n[o]-n[i]),c=[l,u],h=this.parallelsLabels_[r].geom;return h.setCoordinates(c),h},e.prototype.getParallels=function(){return this.parallels_},e.prototype.updateProjectionInfo_=function(t){var e=Object(_["get"])("EPSG:4326"),r=t.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];var n=Object(_["getTransform"])(t,e);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=n;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(t,e,r){for(var o=r||2,a=n(t,e,o),s=0,l=a.length;s<l;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=Object(_["getTransform"])(e,t);var o=Object(g["applyTransform"])([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_(Object(g["getCenter"])(t.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t},e}(p["default"]),P=T,j=r("9c78"),R=r("ae50"),M=r("a43f"),A=r("496f"),L=r("617d"),I=34962,k=34963,F=35040,D=35044,N=35048,G=5121,z=5123,B=5125,U=5126,V=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function X(t,e){for(var r=Object(y["a"])({preserveDrawingBuffer:!0,antialias:!L["f"]},e),n=V.length,i=0;i<n;++i)try{var o=t.getContext(V[i],r);if(o)return o}catch(a){}return null}var W=r("92fa"),H={STATIC_DRAW:D,STREAM_DRAW:F,DYNAMIC_DRAW:N},Y=function(){function t(t,e){this.array=null,this.type=t,Object(W["a"])(t===I||t===k,62),this.usage=void 0!==e?e:H.STATIC_DRAW}return t.prototype.ofSize=function(t){this.array=new(q(this.type))(t)},t.prototype.fromArray=function(t){var e=q(this.type);this.array=e.from?e.from(t):new e(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(q(this.type))(t)},t.prototype.getType=function(){return this.type},t.prototype.getArray=function(){return this.array},t.prototype.getUsage=function(){return this.usage},t.prototype.getSize=function(){return this.array?this.array.length:0},t}();function q(t){switch(t){case I:return Float32Array;case k:return Uint32Array;default:return Float32Array}}var K=Y,Z=r("df4c"),J=r("faf4"),$=r("3333"),Q={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},tt=r("da5c"),et=r("1300"),rt="\n precision mediump float;\n \n attribute vec2 a_position;\n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n uniform vec2 u_screenSize;\n \n void main() {\n v_texCoord = a_position * 0.5 + 0.5;\n v_screenCoord = v_texCoord * u_screenSize;\n gl_Position = vec4(a_position, 0.0, 1.0);\n }\n",nt="\n precision mediump float;\n \n uniform sampler2D u_image;\n uniform float u_opacity;\n \n varying vec2 v_texCoord;\n \n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n }\n",it=function(){function t(t){this.gl_=t.webGlContext;var e=this.gl_;this.scaleRatio_=t.scaleRatio||1,this.renderTargetTexture_=e.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=e.createFramebuffer();var r=e.createShader(e.VERTEX_SHADER);e.shaderSource(r,t.vertexShader||rt),e.compileShader(r);var n=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(n,t.fragmentShader||nt),e.compileShader(n),this.renderTargetProgram_=e.createProgram(),e.attachShader(this.renderTargetProgram_,r),e.attachShader(this.renderTargetProgram_,n),e.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=e.createBuffer();var i=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];e.bindBuffer(e.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),e.bufferData(e.ARRAY_BUFFER,new Float32Array(i),e.STATIC_DRAW),this.renderTargetAttribLocation_=e.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],t.uniforms&&Object.keys(t.uniforms).forEach(function(r){this.uniforms_.push({value:t.uniforms[r],location:e.getUniformLocation(this.renderTargetProgram_,r)})}.bind(this))}return t.prototype.getGL=function(){return this.gl_},t.prototype.init=function(t){var e=this.getGL(),r=[e.drawingBufferWidth*this.scaleRatio_,e.drawingBufferHeight*this.scaleRatio_];if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.viewport(0,0,r[0],r[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==r[0]||this.renderTargetTextureSize_[1]!==r[1]){this.renderTargetTextureSize_=r;var n=0,i=e.RGBA,o=0,a=e.RGBA,s=e.UNSIGNED_BYTE,l=null;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,n,i,r[0],r[1],o,a,s,l),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0)}},t.prototype.apply=function(t,e,r,n){var i=this.getGL(),o=t.size;if(i.bindFramebuffer(i.FRAMEBUFFER,e?e.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!e){var a=Object(et["c"])(i.canvas);if(!t.renderTargets[a]){var s=i.getContextAttributes();s&&s.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT)),t.renderTargets[a]=!0}}i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);var l=t.layerStatesArray[t.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(t),r&&r(i,t),i.drawArrays(i.TRIANGLES,0,6),n&&n(i,t)},t.prototype.getFrameBuffer=function(){return this.frameBuffer_},t.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=1;this.uniforms_.forEach((function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof ImageData)i.texture||(i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),e instanceof ImageData?r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,e.width,e.height,0,r.UNSIGNED_BYTE,new Uint8Array(e.data)):r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),r.uniform1i(i.location,n++);else if(Array.isArray(e))switch(e.length){case 2:return void r.uniform2f(i.location,e[0],e[1]);case 3:return void r.uniform3f(i.location,e[0],e[1],e[2]);case 4:return void r.uniform4f(i.location,e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&r.uniform1f(i.location,e)}))},t}(),ot=it,at=r("a896");function st(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function lt(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}var ut=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ct={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},ht={UNSIGNED_BYTE:G,UNSIGNED_SHORT:z,UNSIGNED_INT:B,FLOAT:U},ft={};function pt(t){return"shared/"+t}var dt=0;function gt(){var t="unique/"+dt;return dt+=1,t}function yt(t){var e=ft[t];if(!e){var r=document.createElement("canvas");r.style.position="absolute",r.style.left="0",e={users:0,canvas:r},ft[t]=e}return e.users+=1,e.canvas}function vt(t){var e=ft[t];if(e&&(e.users-=1,!(e.users>0))){var r=e.canvas,n=X(r),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete ft[t]}}var mt=function(t){function e(e){var r=t.call(this)||this,n=e||{};r.boundHandleWebGLContextLost_=r.handleWebGLContextLost.bind(r),r.boundHandleWebGLContextRestored_=r.handleWebGLContextRestored.bind(r),r.canvasCacheKey_=n.canvasCacheKey?pt(n.canvasCacheKey):gt(),r.canvas_=yt(r.canvasCacheKey_),r.gl_=X(r.canvas_),r.bufferCache_={},r.extensionCache_={},r.currentProgram_=null,r.canvas_.addEventListener(Q.LOST,r.boundHandleWebGLContextLost_),r.canvas_.addEventListener(Q.RESTORED,r.boundHandleWebGLContextRestored_),r.offsetRotateMatrix_=Object(at["c"])(),r.offsetScaleMatrix_=Object(at["c"])(),r.tmpMat4_=st(),r.uniformLocations_={},r.attribLocations_={},r.uniforms_=[],n.uniforms&&r.setUniforms(n.uniforms);var i=r.getGL();return r.postProcessPasses_=n.postProcesses?n.postProcesses.map((function(t){return new ot({webGlContext:i,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})})):[new ot({webGlContext:i})],r.shaderCompileErrors_=null,r.startTime_=Date.now(),r}return ut(e,t),e.prototype.setUniforms=function(t){for(var e in this.uniforms_=[],t)this.uniforms_.push({name:e,value:t[e]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===pt(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var e=this.gl_.getExtension(t);return this.extensionCache_[t]=e,e},e.prototype.bindBuffer=function(t){var e=this.getGL(),r=Object(et["c"])(t),n=this.bufferCache_[r];if(!n){var i=e.createBuffer();n={buffer:t,webGlBuffer:i},this.bufferCache_[r]=n}e.bindBuffer(t.getType(),n.webGlBuffer)},e.prototype.flushBufferData=function(t){var e=this.getGL();this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var e=this.getGL(),r=Object(et["c"])(t),n=this.bufferCache_[r];n&&!e.isContextLost()&&e.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Q.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Q.RESTORED,this.boundHandleWebGLContextRestored_),vt(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,e){var r=this.getGL(),n=this.getCanvas(),i=t.size,o=t.pixelRatio;n.width=i[0]*o,n.height=i[1]*o,n.style.width=i[0]+"px",n.style.height=i[1]+"px",r.useProgram(this.currentProgram_);for(var a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(t);r.bindTexture(r.TEXTURE_2D,null),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,e?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,e,r){var n=this.getGL(),i=e.getSize();n.bindFramebuffer(n.FRAMEBUFFER,e.getFramebuffer()),n.viewport(0,0,i[0],i[1]),n.bindTexture(n.TEXTURE_2D,e.getTexture()),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,r?n.ZERO:n.ONE_MINUS_SRC_ALPHA),n.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,e){var r=this.getGL();this.getExtension("OES_element_index_uint");var n=r.UNSIGNED_INT,i=4,o=e-t,a=t*i;r.drawElements(r.TRIANGLES,o,n,a)},e.prototype.finalizeDraw=function(t,e,r){for(var n=0,i=this.postProcessPasses_.length;n<i;n++)n===i-1?this.postProcessPasses_[n].apply(t,null,e,r):this.postProcessPasses_[n].apply(t,this.postProcessPasses_[n+1])},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.applyFrameState=function(t){var e=t.size,r=t.viewState.rotation,n=Object(at["g"])(this.offsetScaleMatrix_);Object(at["i"])(n,2/e[0],2/e[1]);var i=Object(at["g"])(this.offsetRotateMatrix_);0!==r&&Object(at["h"])(i,-r),this.setUniformMatrixValue(ct.OFFSET_SCALE_MATRIX,lt(this.tmpMat4_,n)),this.setUniformMatrixValue(ct.OFFSET_ROTATION_MATRIX,lt(this.tmpMat4_,i)),this.setUniformFloatValue(ct.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(ct.ZOOM,t.viewState.zoom),this.setUniformFloatValue(ct.RESOLUTION,t.viewState.resolution)},e.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=0;this.uniforms_.forEach(function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof ImageData){i.texture||(i.prevValue=void 0,i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);var o=!(e instanceof HTMLImageElement)||e.complete;o&&i.prevValue!==e&&(i.prevValue=e,r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e)),r.uniform1i(this.getUniformLocation(i.name),n++)}else if(Array.isArray(e)&&6===e.length)this.setUniformMatrixValue(i.name,lt(this.tmpMat4_,e));else if(Array.isArray(e)&&e.length<=4)switch(e.length){case 2:return void r.uniform2f(this.getUniformLocation(i.name),e[0],e[1]);case 3:return void r.uniform3f(this.getUniformLocation(i.name),e[0],e[1],e[2]);case 4:return void r.uniform4f(this.getUniformLocation(i.name),e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&r.uniform1f(this.getUniformLocation(i.name),e)}.bind(this))},e.prototype.useProgram=function(t){if(t==this.currentProgram_)return!1;var e=this.getGL();return e.useProgram(t),this.currentProgram_=t,this.uniformLocations_={},this.attribLocations_={},!0},e.prototype.compileShader=function(t,e){var r=this.getGL(),n=r.createShader(e);return r.shaderSource(n,t),r.compileShader(n),n},e.prototype.getProgram=function(t,e){var r=this.getGL(),n=this.compileShader(t,r.FRAGMENT_SHADER),i=this.compileShader(e,r.VERTEX_SHADER),o=r.createProgram();if(r.attachShader(o,n),r.attachShader(o,i),r.linkProgram(o),!r.getShaderParameter(n,r.COMPILE_STATUS)){var a="Fragment shader compliation failed: ".concat(r.getShaderInfoLog(n));throw new Error(a)}if(r.deleteShader(n),!r.getShaderParameter(i,r.COMPILE_STATUS)){a="Vertex shader compilation failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}if(r.deleteShader(i),!r.getProgramParameter(o,r.LINK_STATUS)){a="GL program linking failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}return o},e.prototype.getUniformLocation=function(t){return void 0===this.uniformLocations_[t]&&(this.uniformLocations_[t]=this.getGL().getUniformLocation(this.currentProgram_,t)),this.uniformLocations_[t]},e.prototype.getAttributeLocation=function(t){return void 0===this.attribLocations_[t]&&(this.attribLocations_[t]=this.getGL().getAttribLocation(this.currentProgram_,t)),this.attribLocations_[t]},e.prototype.makeProjectionTransform=function(t,e){var r=t.size,n=t.viewState.rotation,i=t.viewState.resolution,o=t.viewState.center;return Object(at["g"])(e),Object(at["b"])(e,0,0,2/(i*r[0]),2/(i*r[1]),-n,-o[0],-o[1]),e},e.prototype.setUniformFloatValue=function(t,e){this.getGL().uniform1f(this.getUniformLocation(t),e)},e.prototype.setUniformFloatVec4=function(t,e){this.getGL().uniform4fv(this.getUniformLocation(t),e)},e.prototype.setUniformMatrixValue=function(t,e){this.getGL().uniformMatrix4fv(this.getUniformLocation(t),!1,e)},e.prototype.enableAttributeArray_=function(t,e,r,n,i){var o=this.getAttributeLocation(t);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,e,r,!1,n,i))},e.prototype.enableAttributes=function(t){for(var e=_t(t),r=0,n=0;n<t.length;n++){var i=t[n];this.enableAttributeArray_(i.name,i.size,i.type||U,e,r),r+=i.size*bt(i.type)}},e.prototype.handleWebGLContextLost=function(){Object(y["b"])(this.bufferCache_),this.currentProgram_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.createTexture=function(t,e,r){var n=this.getGL(),i=r||n.createTexture(),o=0,a=n.RGBA,s=0,l=n.RGBA,u=n.UNSIGNED_BYTE;return n.bindTexture(n.TEXTURE_2D,i),e?n.texImage2D(n.TEXTURE_2D,o,a,l,u,e):n.texImage2D(n.TEXTURE_2D,o,a,t[0],t[1],s,l,u,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),i},e}(tt["a"]);function _t(t){for(var e=0,r=0;r<t.length;r++){var n=t[r];e+=n.size*bt(n.type)}return e}function bt(t){switch(t){case ht.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case ht.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var xt=mt,wt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ot={GENERATE_BUFFERS:"GENERATE_BUFFERS"},Et=function(t){function e(e,r){var n=t.call(this,e)||this,i=r||{};return n.inversePixelTransform_=Object(at["c"])(),n.pixelContext_=null,n.postProcesses_=i.postProcesses,n.uniforms_=i.uniforms,n.helper,e.addChangeListener(Z["a"].MAP,n.removeHelper.bind(n)),n.dispatchPreComposeEvent=n.dispatchPreComposeEvent.bind(n),n.dispatchPostComposeEvent=n.dispatchPostComposeEvent.bind(n),n}return wt(e,t),e.prototype.dispatchPreComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].PRECOMPOSE)){var n=new $["a"](i["a"].PRECOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.dispatchPostComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].POSTCOMPOSE)){var n=new $["a"](i["a"].POSTCOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.reset=function(t){this.uniforms_=t.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)},e.prototype.removeHelper=function(){this.helper&&(this.helper.dispose(),delete this.helper)},e.prototype.prepareFrame=function(t){if(this.getLayer().getRenderSource()){for(var r=!0,n=-1,i=void 0,o=0,a=t.layerStatesArray.length;o<a;o++){var s=t.layerStatesArray[o].layer,l=s.getRenderer();if(l instanceof e){var u=s.getClassName();if((r||u!==i)&&(n+=1,r=!1),i=u,l===this)break}else r=!0}var c="map/"+t.mapId+"/group/"+n;this.helper&&this.helper.canvasCacheKeyMatches(c)||(this.removeHelper(),this.helper=new xt({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:c}),i&&(this.helper.getCanvas().className=i),this.afterHelperCreated())}return this.prepareFrameInternal(t)},e.prototype.afterHelperCreated=function(){},e.prototype.prepareFrameInternal=function(t){return!0},e.prototype.disposeInternal=function(){this.removeHelper(),t.prototype.disposeInternal.call(this)},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){Object(at["b"])(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);var i=new $["a"](t,this.inversePixelTransform_,r,e);n.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(i["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(i["a"].POSTRENDER,t,e)},e.prototype.getDataAtPixel=function(t,e,r){var n=Object(at["a"])([e.pixelRatio,0,0,e.pixelRatio,0,0],t.slice()),i=this.helper.getGL();if(!i)return null;var o=this.getLayer(),a=o.getExtent();if(a){var s=Object(at["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(g["containsCoordinate"])(a,s))return null}var l=i.getContextAttributes();if(!l||!l.preserveDrawingBuffer)return new Uint8Array;var u,c=Math.round(n[0]),h=Math.round(n[1]),f=this.pixelContext_;if(!f){var p=document.createElement("canvas");p.width=1,p.height=1,f=p.getContext("2d"),this.pixelContext_=f}f.clearRect(0,0,1,1);try{f.drawImage(i.canvas,c,h,1,1,0,0,1,1),u=f.getImageData(0,0,1,1).data}catch(d){return u}return 0===u[3]?null:u},e}(J["a"]);function St(t,e){var r=e||[],n=256,i=n-1;return r[0]=Math.floor(t/n/n/n)/i,r[1]=Math.floor(t/n/n)%n/i,r[2]=Math.floor(t/n)%n/i,r[3]=t%n/i,r}function Ct(t){var e=0,r=256,n=r-1;return e+=Math.round(t[0]*r*r*r*n),e+=Math.round(t[1]*r*r*n),e+=Math.round(t[2]*r*n),e+=Math.round(t[3]*n),e}var Tt=Et,Pt=r("9f5e"),jt=new Uint8Array(4),Rt=function(){function t(t,e){this.helper_=t;var r=t.getGL();this.texture_=r.createTexture(),this.framebuffer_=r.createFramebuffer(),this.size_=e||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return t.prototype.setSize=function(t){Object(Pt["b"])(t,this.size_)||(this.size_[0]=t[0],this.size_[1]=t[1],this.updateSize_())},t.prototype.getSize=function(){return this.size_},t.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},t.prototype.readAll=function(){if(this.dataCacheDirty_){var t=this.size_,e=this.helper_.getGL();e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.readPixels(0,0,t[0],t[1],e.RGBA,e.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},t.prototype.readPixel=function(t,e){if(t<0||e<0||t>this.size_[0]||e>=this.size_[1])return jt[0]=0,jt[1]=0,jt[2]=0,jt[3]=0,jt;this.readAll();var r=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return jt[0]=this.data_[4*r],jt[1]=this.data_[4*r+1],jt[2]=this.data_[4*r+2],jt[3]=this.data_[4*r+3],jt},t.prototype.getTexture=function(){return this.texture_},t.prototype.getFramebuffer=function(){return this.framebuffer_},t.prototype.updateSize_=function(){var t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(t[0]*t[1]*4)},t}(),Mt=Rt,At=r("7fd1"),Lt=r("1e8d"),It=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),kt=function(t){function e(e,r){var n=this,i=r.uniforms||{},o=Object(at["c"])();i[ct.PROJECTION_MATRIX]=o,n=t.call(this,e,{uniforms:i,postProcesses:r.postProcesses})||this,n.ready=!1,n.sourceRevision_=-1,n.verticesBuffer_=new K(I,N),n.hitVerticesBuffer_=new K(I,N),n.indicesBuffer_=new K(k,N),n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.program_,n.hitDetectionEnabled_=!(!r.hitFragmentShader||!r.hitVertexShader),n.hitVertexShader_=r.hitVertexShader,n.hitFragmentShader_=r.hitFragmentShader,n.hitProgram_;var a=r.attributes?r.attributes.map((function(t){return{name:"a_"+t.name,size:1,type:ht.FLOAT}})):[];n.attributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT}].concat(a),n.hitDetectionAttributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT},{name:"a_hitColor",size:4,type:ht.FLOAT},{name:"a_featureUid",size:1,type:ht.FLOAT}].concat(a),n.customAttributes=r.attributes?r.attributes:[],n.previousExtent_=Object(g["createEmpty"])(),n.currentTransform_=o,n.renderTransform_=Object(at["c"])(),n.invertRenderTransform_=Object(at["c"])(),n.renderInstructions_=new Float32Array(0),n.hitRenderInstructions_=new Float32Array(0),n.hitRenderTarget_,n.generateBuffersRun_=0,n.worker_=Object(At["a"])(),n.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===Ot.GENERATE_BUFFERS){var r=e.projectionTransform;e.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(e.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=r,Object(at["d"])(this.invertRenderTransform_,this.renderTransform_),e.hitDetection?this.hitRenderInstructions_=new Float32Array(t.data.renderInstructions):(this.renderInstructions_=new Float32Array(t.data.renderInstructions),e.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(n)),n.featureCache_={},n.featureCount_=0;var s=n.getLayer().getSource();return n.sourceListenKeys_=[Object(Lt["a"])(s,M["a"].ADDFEATURE,n.handleSourceFeatureAdded_,n),Object(Lt["a"])(s,M["a"].CHANGEFEATURE,n.handleSourceFeatureChanged_,n),Object(Lt["a"])(s,M["a"].REMOVEFEATURE,n.handleSourceFeatureDelete_,n),Object(Lt["a"])(s,M["a"].CLEAR,n.handleSourceFeatureClear_,n)],s.forEachFeature(function(t){this.featureCache_[Object(et["c"])(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(n)),n}return It(e,t),e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new Mt(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[Object(et["c"])(e)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var e=this.helper.getGL();this.preRender(e,t);var r=t.viewState.projection,n=this.getLayer(),i=n.getSource(),o=i.getWrapX()&&r.canWrapX(),a=r.getExtent(),s=t.extent,l=o?Object(g["getWidth"])(a):null,u=o?Math.ceil((s[2]-a[2])/l)+1:1,c=o?Math.floor((s[0]-a[0])/l):0,h=c,f=this.indicesBuffer_.getSize();do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(at["l"])(this.currentTransform_,h*l,0),Object(at["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t),this.helper.drawElements(0,f)}while(++h<u);this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var p=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t,c,u,l),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),p},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getSource(),n=t.viewState,i=!t.viewHints[A["a"].ANIMATING]&&!t.viewHints[A["a"].INTERACTING],o=!Object(g["equals"])(this.previousExtent_,t.extent),a=this.sourceRevision_<r.getRevision();if(a&&(this.sourceRevision_=r.getRevision()),i&&(o||a)){var s=n.projection,l=n.resolution,u=e instanceof R["a"]?e.getRenderBuffer():0,c=Object(g["buffer"])(t.extent,u*l);r.loadFeatures(c,l,s),this.rebuildBuffers_(t),this.previousExtent_=t.extent.slice()}return this.helper.useProgram(this.program_),this.helper.prepareDraw(t),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},e.prototype.rebuildBuffers_=function(t){var e=Object(at["c"])();this.helper.makeProjectionTransform(t,e);var r,n,i=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var a,s=[],l=[],u=0,c=0;for(var h in this.featureCache_)if(r=this.featureCache_[h],n=r.geometry,n&&"Point"===n.getType()){s[0]=n.getFlatCoordinates()[0],s[1]=n.getFlatCoordinates()[1],Object(at["a"])(e,s),a=St(c+6,l),this.renderInstructions_[u++]=s[0],this.renderInstructions_[u++]=s[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=s[0],this.hitRenderInstructions_[c++]=s[1],this.hitRenderInstructions_[c++]=a[0],this.hitRenderInstructions_[c++]=a[1],this.hitRenderInstructions_[c++]=a[2],this.hitRenderInstructions_[c++]=a[3],this.hitRenderInstructions_[c++]=Number(h));for(var f=void 0,p=0;p<this.customAttributes.length;p++)f=this.customAttributes[p].callback(r.feature,r.properties),this.renderInstructions_[u++]=f,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=f)}var d={type:Ot.GENERATE_BUFFERS,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(d["projectionTransform"]=e,d["generateBuffersRun"]=++this.generateBuffersRun_,this.ready=!1,this.worker_.postMessage(d,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:Ot.GENERATE_BUFFERS,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g["projectionTransform"]=e,g["hitDetection"]=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){if(Object(W["a"])(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Object(at["a"])(e.coordinateToPixelTransform,t.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=[a[0]/255,a[1]/255,a[2]/255,a[3]/255],l=Ct(s),u=this.hitRenderInstructions_[l],c=Math.floor(u).toString(),h=this.getLayer().getSource(),f=h.getFeatureByUid(c);return f?n(f,this.getLayer(),null):void 0}},e.prototype.renderHitDetection=function(t,e,r,n){if(this.hitVerticesBuffer_.getSize()){var i=e;this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(at["l"])(this.currentTransform_,i*n,0),Object(at["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t);var o=this.indicesBuffer_.getSize();this.helper.drawElements(0,o)}while(++i<r)}},e.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(t){Object(Lt["c"])(t)})),this.sourceListenKeys_=null,t.prototype.disposeInternal.call(this)},e}(Tt),Ft=kt,Dt=r("0999"),Nt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gt={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},zt=["#00f","#0ff","#0f0","#ff0","#f00"],Bt=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,r=t.call(this,i)||this,r.gradient_=null,r.addChangeListener(Gt.GRADIENT,r.handleGradientChanged_),r.setGradient(n.gradient?n.gradient:zt),r.setBlur(void 0!==n.blur?n.blur:15),r.setRadius(void 0!==n.radius?n.radius:8);var o=n.weight?n.weight:"weight";return r.weightFunction_="string"===typeof o?function(t){return t.get(o)}:o,r.setRenderOrder(null),r}return Nt(e,t),e.prototype.getBlur=function(){return this.get(Gt.BLUR)},e.prototype.getGradient=function(){return this.get(Gt.GRADIENT)},e.prototype.getRadius=function(){return this.get(Gt.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=Ut(this.getGradient())},e.prototype.setBlur=function(t){this.set(Gt.BLUR,t)},e.prototype.setGradient=function(t){this.set(Gt.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(Gt.RADIUS,t)},e.prototype.createRenderer=function(){return new Ft(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var e=this.weightFunction_(t);return void 0!==e?Object(v["b"])(e,0,1):1}.bind(this)}],vertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_weight = a_weight;\n }",fragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n }",hitVertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n attribute vec4 a_hitColor;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_weight = a_weight;\n }",hitFragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n if (alpha < 0.05) {\n discard;\n }\n\n gl_FragColor = v_hitColor;\n }",uniforms:{u_size:function(){return 2*(this.get(Gt.RADIUS)+this.get(Gt.BLUR))}.bind(this),u_blurSlope:function(){return this.get(Gt.RADIUS)/Math.max(1,this.get(Gt.BLUR))}.bind(this)},postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n uniform float u_opacity;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a * u_opacity;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(R["a"]);function Ut(t){for(var e=1,r=256,n=Object(Dt["a"])(e,r),i=n.createLinearGradient(0,0,e,r),o=1/(t.length-1),a=0,s=t.length;a<s;++a)i.addColorStop(a*o,t[a]);return n.fillStyle=i,n.fillRect(0,0,e,r),n.canvas}var Vt=Bt,Xt=r("c810"),Wt=r("1af9"),Ht=r("cef7"),Yt=r("01d4"),qt=r("b7df"),Kt=r("47e4"),Zt=r("9a44"),Jt=r("88da"),$t=r("7915"),Qt=r.n($t),te=r("5bc33"),ee=r("f5dd"),re=r("0a9d"),ne=r("4d98"),ie=r("b1a2"),oe=r("9159"),ae=r("bef8"),se=Object(at["c"])(),le=function(){function t(t,e,r,n,i){this.styleFunction,this.extent_,this.id_=i,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=n}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?Object(g["createOrUpdateFromCoordinate"])(this.flatCoordinates_):Object(g["createOrUpdateFromFlatCoordinates"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Object(g["getCenter"])(this.getExtent());this.flatInteriorPoints_=Object(re["a"])(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=Object(oe["a"])(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(re["b"])(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(ie["a"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,r=this.ends_,n=0,i=r.length;n<i;++n){var o=r[n],a=Object(ie["a"])(t,e,o,2,.5);Object(Pt["c"])(this.flatMidpoints_,a),e=o}}return this.flatMidpoints_},t.prototype.getId=function(){return this.id_},t.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},t.prototype.getGeometry=function(){return this},t.prototype.getSimplifiedGeometry=function(t){return this},t.prototype.simplifyTransformed=function(t,e){return this},t.prototype.getProperties=function(){return this.properties_},t.prototype.getStride=function(){return 2},t.prototype.getStyleFunction=function(){return this.styleFunction},t.prototype.getType=function(){return this.type_},t.prototype.transform=function(t){t=Object(_["get"])(t);var e=t.getExtent(),r=t.getWorldExtent();if(e&&r){var n=Object(g["getHeight"])(r)/Object(g["getHeight"])(e);Object(at["b"])(se,r[0],r[3],n,-n,0,0,0),Object(ae["c"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,se,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();le.prototype.getEndss=le.prototype.getEnds,le.prototype.getFlatCoordinates=le.prototype.getOrientedFlatCoordinates;var ue=le,ce=r("fced"),he=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fe=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.dataProjection=new ee["a"]({code:"",units:ce["b"].TILE_PIXELS}),r.featureClass_=n.featureClass?n.featureClass:ue,r.geometryName_=n.geometryName,r.layerName_=n.layerName?n.layerName:"layer",r.layers_=n.layers?n.layers:null,r.idProperty_=n.idProperty,r.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],r}return he(e,t),e.prototype.readRawGeometry_=function(t,e,r,n){t.pos=e.geometry;var i=t.readVarint()+t.pos,o=1,a=0,s=0,l=0,u=0,c=0;while(t.pos<i){if(!a){var h=t.readVarint();o=7&h,a=h>>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>c&&(n.push(u),c=u),r.push(s,l),u+=2):7===o?u>c&&(r.push(r[c],r[c+1]),u+=2):Object(W["a"])(!1,59)}u>c&&(n.push(u),c=u)},e.prototype.createFeature_=function(t,e,r){var n,i=e.type;if(0===i)return null;var o,a=e.properties;this.idProperty_?(o=a[this.idProperty_],delete a[this.idProperty_]):o=e.id,a[this.layerName_]=e.layer.name;var c=[],h=[];this.readRawGeometry_(t,e,c,h);var f=ve(i,h.length);if(this.featureClass_===ue)n=new this.featureClass_(f,c,h,a,o),n.transform(r.dataProjection);else{var p=void 0;if("Polygon"==f){var d=Object(ne["a"])(c,h);p=d.length>1?new Jt["a"](c,s["a"].XY,d):new te["default"](c,s["a"].XY,h)}else p="Point"===f?new u["default"](c,s["a"].XY):"LineString"===f?new l["default"](c,s["a"].XY):"MultiPoint"===f?new Zt["default"](c,s["a"].XY):"MultiLineString"===f?new Kt["a"](c,s["a"].XY,h):null;var g=this.featureClass_;n=new g,this.geometryName_&&n.setGeometryName(this.geometryName_);var y=Object(qt["b"])(p,!1,r);n.setGeometry(y),void 0!==o&&n.setId(o),n.setProperties(a,!0)}return n},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var r=this.layers_,n=this.adaptOptions(e),i=Object(_["get"])(n.dataProjection);i.setWorldExtent(n.extent),n.dataProjection=i;var o=new Qt.a(t),a=o.readFields(pe,{}),s=[];for(var l in a)if(!r||-1!=r.indexOf(l)){var u=a[l],c=u?[0,0,u.extent,u.extent]:null;i.setExtent(c);for(var h=0,f=u.length;h<f;++h){var p=ye(o,u,h),d=this.createFeature_(o,p,n);null!==d&&s.push(d)}}return s},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(qt["a"]);function pe(t,e,r){if(3===t){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(de,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function de(t,e,r){if(15===t)e.version=r.readVarint();else if(1===t)e.name=r.readString();else if(5===t)e.extent=r.readVarint();else if(2===t)e.features.push(r.pos);else if(3===t)e.keys.push(r.readString());else if(4===t){var n=null,i=r.readVarint()+r.pos;while(r.pos<i)t=r.readVarint()>>3,n=1===t?r.readString():2===t?r.readFloat():3===t?r.readDouble():4===t?r.readVarint64():5===t?r.readVarint():6===t?r.readSVarint():7===t?r.readBoolean():null;e.values.push(n)}}function ge(t,e,r){if(1==t)e.id=r.readVarint();else if(2==t){var n=r.readVarint()+r.pos;while(r.pos<n){var i=e.layer.keys[r.readVarint()],o=e.layer.values[r.readVarint()];e.properties[i]=o}}else 3==t?e.type=r.readVarint():4==t&&(e.geometry=r.pos)}function ye(t,e,r){t.pos=e.features[r];var n=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(ge,i,n),i}function ve(t,e){var r;return 1===t?r=1===e?"Point":"MultiPoint":2===t?r=1===e?"LineString":"MultiLineString":3===t&&(r="Polygon"),r}var me,_e=fe,be=r("dbba"),xe=r("e8b8"),we=r("b9ec"),Oe=r("acc1"),Ee={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},Se=r("399c"),Ce=r("30d1"),Te=r("345d"),Pe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),je={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Re={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Me=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.renderedLayerRevision_,r.renderedPixelToCoordinateTransform_=null,r.renderedRotation_,r.tmpTransform_=Object(at["c"])(),r}return Pe(e,t),e.prototype.prepareTile=function(t,e,r){var n,i=t.getState();return i!==Oe["a"].LOADED&&i!==Oe["a"].ERROR||(this.updateExecutorGroup_(t,e,r),this.tileImageNeedsRender_(t)&&(n=!0)),n},e.prototype.getTile=function(e,r,n,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,u=this.getLayer(),c=u.getSource().getTile(e,r,n,o,l),h=i.viewHints,f=!(h[A["a"].ANIMATING]||h[A["a"].INTERACTING]);!f&&c.wantedResolution||(c.wantedResolution=s);var p=this.prepareTile(c,o,l);return p&&(f||Date.now()-i.time<8)&&u.getRenderMode()!==Ee.VECTOR&&this.renderTileImage_(c,i),t.prototype.getTile.call(this,e,r,n,i)},e.prototype.isDrawableTile=function(e){var r=this.getLayer();return t.prototype.isDrawableTile.call(this,e)&&(r.getRenderMode()===Ee.VECTOR?Object(et["c"])(r)in e.executorGroups:e.hasContext(r))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(e){var r=this.getLayer().getRevision();return this.renderedLayerRevision_!==r&&(this.renderedLayerRevision_=r,this.renderedTiles.length=0),t.prototype.prepareFrame.call(this,e)},e.prototype.updateExecutorGroup_=function(t,e,r){var n=this.getLayer(),i=n.getRevision(),o=n.getRenderOrder()||null,a=t.wantedResolution,s=t.getReplayState(n);if(s.dirty||s.renderedResolution!==a||s.renderedRevision!=i||s.renderedRenderOrder!=o){var l=n.getSource(),u=n.getDeclutter(),c=l.getTileGrid(),h=l.getTileGridForProjection(r),f=h.getTileCoordExtent(t.wrappedTileCoord),p=l.getSourceTiles(e,r,t),d=Object(et["c"])(n);delete t.hitDetectionImageData[d],t.executorGroups[d]=[],u&&(t.declutterExecutorGroups[d]=[]),s.dirty=!1;for(var y=function(r,i){var h=p[r];if(h.getState()!=Oe["a"].LOADED)return"continue";var y=h.tileCoord,m=c.getTileCoordExtent(y),_=Object(g["getIntersection"])(f,m),b=Object(g["buffer"])(_,n.getRenderBuffer()*a,v.tmpExtent),x=Object(g["equals"])(m,_)?null:b,w=new be["a"](0,b,a,e),O=u?new be["a"](0,_,a,e):void 0,E=Object(Ce["b"])(a,e),S=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,a)),e){var i=this.renderFeature(t,E,e,w,O);s.dirty=s.dirty||i}},C=h.getFeatures();o&&o!==s.renderedRenderOrder&&C.sort(o);for(var T=0,P=C.length;T<P;++T){var j=C[T];x&&!Object(g["intersects"])(x,j.getGeometry().getExtent())||S.call(v,j)}var R=w.finish(),M=n.getRenderMode()!==Ee.VECTOR&&u&&1===p.length?null:_,A=new xe["a"](M,a,e,l.getOverlaps(),R,n.getRenderBuffer());if(t.executorGroups[d].push(A),O){var L=new xe["a"](null,a,e,l.getOverlaps(),O.finish(),n.getRenderBuffer());t.declutterExecutorGroups[d].push(L)}},v=this,m=0,_=p.length;m<_;++m)y(m,_);s.renderedRevision=i,s.renderedRenderOrder=o,s.renderedResolution=a}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=e.viewState.resolution,a=e.viewState.rotation;r=void 0==r?0:r;var s=this.getLayer(),l=s.getSource(),u=l.getTileGridForProjection(e.viewState.projection),c=Object(g["boundingExtent"])([t]);Object(g["buffer"])(c,o*r,c);for(var h,f={},p=function(t,e,r){var o=t.getId();void 0===o&&(o=Object(et["c"])(t));var a=f[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return f[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,s,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return f[o]=!0,n(t,s,e);i.push(f[o]={feature:t,layer:s,geometry:e,distanceSq:r,callback:n})}},d=this.renderedTiles,y=function(n,i){var l=d[n],f=u.getTileCoordExtent(l.wrappedTileCoord);if(!Object(g["intersects"])(f,c))return"continue";var y=Object(et["c"])(s),v=[l.executorGroups[y]],m=l.declutterExecutorGroups[y];m&&v.push(m),v.some((function(n){for(var i=n===m?e.declutterTree.all().map((function(t){return t.value})):null,s=0,l=n.length;s<l;++s){var u=n[s];if(h=u.forEachFeatureAtCoordinate(t,o,a,r,p,i),h)return!0}}))},v=0,m=d.length;!h&&v<m;++v)y(v,m);return h},e.prototype.getFeatures=function(t){return new Promise(function(e,r){for(var n,i=this.getLayer(),o=Object(et["c"])(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),u=this.renderedResolution,c=a.getTileGridForProjection(s),h=Object(at["a"])(this.renderedPixelToCoordinateTransform_,t.slice()),f=c.getTileCoordForCoordAndResolution(h,u),p=0,d=this.renderedTiles.length;p<d;++p)if(f.toString()===this.renderedTiles[p].tileCoord.toString()){if(n=this.renderedTiles[p],n.getState()===Oe["a"].LOADED){var y=c.getTileCoordExtent(n.tileCoord);a.getWrapX()&&s.canWrapX()&&!Object(g["containsExtent"])(l,y)&&Object(m["l"])(h,s);break}n=void 0}if(!n||n.loadingSourceTiles>0)e([]);else{var v=c.getTileCoordExtent(n.wrappedTileCoord),_=Object(g["getTopLeft"])(v),b=[(h[0]-_[0])/u,(_[1]-h[1])/u],x=n.getSourceTiles().reduce((function(t,e){return t.concat(e.getFeatures())}),[]),w=n.hitDetectionImageData[o];if(!w&&!this.animatingOrInteracting_){var O=Object(Te["d"])(c.getTileSize(c.getZForResolution(u,a.zDirection))),E=this.renderedRotation_,S=[this.getRenderTransform(c.getTileCoordCenter(n.wrappedTileCoord),u,0,Se["a"],O[0]*Se["a"],O[1]*Se["a"],0)];w=Object(Se["b"])(O,S,x,i.getStyleFunction(),c.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,E),n.hitDetectionImageData[o]=w}e(Object(Se["c"])(b,x,w))}}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var e=this.context,r=e.globalAlpha;e.globalAlpha=this.getLayer().getOpacity();for(var n=t.viewHints,i=!(n[A["a"].ANIMATING]||n[A["a"].INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],u=l.declutterExecutorGroups[Object(et["c"])(this.getLayer())];if(u)for(var c=u.length-1;c>=0;--c)u[c].execute(this.context,1,this.getTileRenderTransform(l,t),t.viewState.rotation,i,void 0,t.declutterTree)}e.globalAlpha=r},e.prototype.getTileRenderTransform=function(t,e){var r=e.pixelRatio,n=e.viewState,i=n.center,o=n.resolution,a=n.rotation,s=e.size,l=Math.round(s[0]*r),u=Math.round(s[1]*r),c=this.getLayer().getSource(),h=c.getTileGridForProjection(e.viewState.projection),f=t.tileCoord,p=h.getTileCoordExtent(t.wrappedTileCoord),d=h.getTileCoordExtent(f,this.tmpExtent)[0]-p[0],g=Object(at["f"])(Object(at["i"])(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(i,o,a,r,l,u,d));return g},e.prototype.renderFrame=function(e,r){var n=e.viewHints,i=!(n[A["a"].ANIMATING]||n[A["a"].INTERACTING]);t.prototype.renderFrame.call(this,e,r),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=this.context,l=s.globalAlpha;s.globalAlpha=o.getOpacity();for(var u=Re[a],c=e.viewState,h=c.rotation,f=o.getSource(),p=f.getTileGridForProjection(c.projection),d=p.getZForResolution(c.resolution,f.zDirection),y=this.renderedTiles,v=[],m=[],_=!0,b=y.length-1;b>=0;--b){var x=y[b];_=_&&!x.getReplayState(o).dirty;var w=x.executorGroups[Object(et["c"])(o)].filter((function(t){return t.hasExecutors(u)}));if(0!==w.length){var O=this.getTileRenderTransform(x,e),E=x.tileCoord[0],S=!1,C=w[0].getClipCoords(O);if(C){for(var T=0,P=v.length;T<P;++T)if(d!==E&&E<m[T]){var j=v[T];Object(g["intersects"])([C[0],C[3],C[4],C[7]],[j[0],j[3],j[4],j[7]])&&(S||(s.save(),S=!0),s.beginPath(),s.moveTo(C[0],C[1]),s.lineTo(C[2],C[3]),s.lineTo(C[4],C[5]),s.lineTo(C[6],C[7]),s.moveTo(j[6],j[7]),s.lineTo(j[4],j[5]),s.lineTo(j[2],j[3]),s.lineTo(j[0],j[1]),s.clip())}v.push(C),m.push(E)}for(var R=0,M=w.length;R<M;++R){var L=w[R];L.execute(s,1,O,h,i,u)}S&&s.restore()}}return s.globalAlpha=l,this.ready=_,this.container},e.prototype.renderFeature=function(t,e,r,n,i){if(!r)return!1;var o=!1;if(Array.isArray(r))for(var a=0,s=r.length;a<s;++a)o=Object(Ce["d"])(n,t,r[a],e,this.boundHandleStyleImageChange_,void 0,i)||o;else o=Object(Ce["d"])(n,t,r,e,this.boundHandleStyleImageChange_,void 0,i);return o},e.prototype.tileImageNeedsRender_=function(t){var e=this.getLayer();if(e.getRenderMode()===Ee.VECTOR)return!1;var r=t.getReplayState(e),n=e.getRevision(),i=t.wantedResolution;return r.renderedTileResolution!==i||r.renderedTileRevision!==n},e.prototype.renderTileImage_=function(t,e){var r=this.getLayer(),n=t.getReplayState(r),i=r.getRevision(),o=t.executorGroups[Object(et["c"])(r)];n.renderedTileRevision=i;var a=t.wrappedTileCoord,s=a[0],l=r.getSource(),u=e.pixelRatio,c=e.viewState,h=c.projection,f=l.getTileGridForProjection(h),p=f.getResolution(t.tileCoord[0]),d=e.pixelRatio/t.wantedResolution*p,g=f.getResolution(s),y=t.getContext(r);u=Math.round(Math.max(u,d/u));var v=l.getTilePixelSize(s,u,h);y.canvas.width=v[0],y.canvas.height=v[1];var m=u/d;if(1!==m){var _=Object(at["g"])(this.tmpTransform_);Object(at["i"])(_,m,m),y.setTransform.apply(y,_)}var b=f.getTileCoordExtent(a,this.tmpExtent),x=d/g,w=Object(at["g"])(this.tmpTransform_);Object(at["i"])(w,x,-x),Object(at["l"])(w,-b[0],-b[3]);for(var O=0,E=o.length;O<E;++O){var S=o[O];S.execute(y,m,w,0,!0,je[r.getRenderMode()])}n.renderedTileResolution=t.wantedResolution},e}(we["a"]),Ae=Me,Le=r("a194"),Ie=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ke=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);delete i.preload,delete i.useInterimTilesOnError,r=t.call(this,i)||this,r.on,r.once,r.un,n.renderMode===Ee.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),n.renderMode=void 0);var o=n.renderMode||Ee.HYBRID;return Object(W["a"])(o==Ee.HYBRID||o==Ee.VECTOR,28),r.renderMode_=o,r.setPreload(n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r.getBackground,r.setBackground,r}return Ie(e,t),e.prototype.createRenderer=function(){return new Ae(this)},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderMode=function(){return this.renderMode_},e.prototype.getPreload=function(){return this.get(Le["a"].PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Le["a"].USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(Le["a"].PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Le["a"].USE_INTERIM_TILES_ON_ERROR,t)},e}(R["a"]),Fe=ke,De=r("78db2"),Ne=r("ce2c"),Ge=r("6cbf"),ze=r("ddea"),Be=r("a2e1"),Ue=(r("5eee"),r("78db")),Ve=r("6cf3"),Xe=r("480c"),We=(r("a2c7"),r("089b"),{}),He={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ye(t){return t=Math.round(t),t<0?0:t>255?255:t}function qe(t){return t<0?0:t>1?1:t}function Ke(t){return"%"===t[t.length-1]?Ye(parseFloat(t)/100*255):Ye(parseInt(t))}function Ze(t){return"%"===t[t.length-1]?qe(parseFloat(t)/100):qe(parseFloat(t))}function Je(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function $e(t){var e=t.replace(/ /g,"").toLowerCase();if(e in He)return He[e].slice();if("#"===e[0]){if(4===e.length){var r=parseInt(e.substr(1),16);return r>=0&&r<=4095?[(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1]:null}if(7===e.length){r=parseInt(e.substr(1),16);return r>=0&&r<=16777215?[(16711680&r)>>16,(65280&r)>>8,255&r,1]:null}return null}var n=e.indexOf("("),i=e.indexOf(")");if(-1!==n&&i+1===e.length){var o=e.substr(0,n),a=e.substr(n+1,i-(n+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=Ze(a.pop());case"rgb":return 3!==a.length?null:[Ke(a[0]),Ke(a[1]),Ke(a[2]),s];case"hsla":if(4!==a.length)return null;s=Ze(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=Ze(a[1]),c=Ze(a[2]),h=c<=.5?c*(u+1):c+u-c*u,f=2*c-h;return[Ye(255*Je(f,h,l+1/3)),Ye(255*Je(f,h,l)),Ye(255*Je(f,h,l-1/3)),s];default:return null}}return null}try{me=We.parseCSSColor=$e}catch(al){}var Qe=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};function tr(t){return"object"===typeof t?["literal",t]:t}function er(t,e){var r=t.stops;if(!r)return rr(t,e);var n=r&&"object"===typeof r[0][0],i=n||void 0!==t.property,o=n||!i;return r=r.map((function(t){return!i&&e.tokens&&"string"===typeof t[1]?[t[0],fr(t[1])]:[t[0],tr(t[1])]})),n?ir(t,e,r):o?lr(t,e,r):sr(t,e,r)}function rr(t,e){var r=["get",t.property];if(void 0===t.default)return"string"===e.type?["string",r]:r;if("enum"===e.type)return["match",r,Object.keys(e.values),r,t.default];var n=["color"===e.type?"to-color":e.type,r,tr(t.default)];return"array"===e.type&&n.splice(1,0,e.value,e.length||null),n}function nr(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function ir(t,e,r){for(var n={},i={},o=[],a=0;a<r.length;a++){var s=r[a],l=s[0].zoom;void 0===n[l]&&(n[l]={zoom:l,type:t.type,property:t.property,default:t.default},i[l]=[],o.push(l)),i[l].push([s[0].value,s[1]])}var u=hr({},e);if("exponential"===u){for(var c=[nr(t),["linear"],["zoom"]],h=0,f=o;h<f.length;h+=1){var p=f[h],d=sr(n[p],e,i[p]);cr(c,p,d,!1)}return c}for(var g=["step",["zoom"]],y=0,v=o;y<v.length;y+=1){var m=v[y],_=sr(n[m],e,i[m]);cr(g,m,_,!0)}return ur(g),g}function or(t,e){return void 0!==t?t:void 0!==e?e:void 0}function ar(t,e){var r=tr(or(t.default,e.default));return void 0===r&&"resolvedImage"===e.type?"":r}function sr(t,e,r){var n=hr(t,e),i=["get",t.property];if("categorical"===n&&"boolean"===typeof r[0][0]){for(var o=["case"],a=0,s=r;a<s.length;a+=1){var l=s[a];o.push(["==",i,l[0]],l[1])}return o.push(ar(t,e)),o}if("categorical"===n){for(var u=["match",i],c=0,h=r;c<h.length;c+=1){var f=h[c];cr(u,f[0],f[1],!1)}return u.push(ar(t,e)),u}if("interval"===n){for(var p=["step",["number",i]],d=0,g=r;d<g.length;d+=1){var y=g[d];cr(p,y[0],y[1],!0)}return ur(p),void 0===t.default?p:["case",["==",["typeof",i],"number"],p,tr(t.default)]}if("exponential"===n){for(var v=void 0!==t.base?t.base:1,m=[nr(t),1===v?["linear"]:["exponential",v],["number",i]],_=0,b=r;_<b.length;_+=1){var x=b[_];cr(m,x[0],x[1],!1)}return void 0===t.default?m:["case",["==",["typeof",i],"number"],m,tr(t.default)]}throw new Error("Unknown property function type "+n)}function lr(t,e,r,n){void 0===n&&(n=["zoom"]);var i,o=hr(t,e),a=!1;if("interval"===o)i=["step",n],a=!0;else{if("exponential"!==o)throw new Error('Unknown zoom function type "'+o+'"');var s=void 0!==t.base?t.base:1;i=[nr(t),1===s?["linear"]:["exponential",s],n]}for(var l=0,u=r;l<u.length;l+=1){var c=u[l];cr(i,c[0],c[1],a)}return ur(i),i}function ur(t){"step"===t[0]&&3===t.length&&(t.push(0),t.push(t[3]))}function cr(t,e,r,n){t.length>3&&e===t[t.length-2]||(n&&2===t.length||t.push(e),t.push(r))}function hr(t,e){return t.type?t.type:e.expression.interpolated?"exponential":"interval"}function fr(t){for(var e=["concat"],r=/{([^{}]+)}/g,n=0,i=r.exec(t);null!==i;i=r.exec(t)){var o=t.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(1===e.length)return t;if(n<t.length)e.push(t.slice(n));else if(2===e.length)return["to-string",e[1]];return e}Qe.parse=function(t){if(t){if(t instanceof Qe)return t;if("string"===typeof t){var e=me(t);if(e)return new Qe(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Qe.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(n)+","+i+")"},Qe.prototype.toArray=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[255*e/i,255*r/i,255*n/i,i]},Qe.prototype.toArray01=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[e/i,r/i,n/i,i]},Qe.prototype.toArray01PremultipliedAlpha=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return[e,r,n,i]},Qe.black=new Qe(0,0,0,1),Qe.white=new Qe(1,1,1,1),Qe.transparent=new Qe(0,0,0,0),Qe.red=new Qe(1,0,0,1),Qe.blue=new Qe(0,0,1,1);var pr=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),dr=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var i=n[r],o=i[0],a=i[1];this.bindings[o]=a}};dr.prototype.concat=function(t){return new dr(this,t)},dr.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},dr.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var gr={kind:"null"},yr={kind:"number"},vr={kind:"string"},mr={kind:"boolean"},_r={kind:"color"},br={kind:"object"},xr={kind:"value"},wr={kind:"error"},Or={kind:"collator"},Er={kind:"formatted"},Sr={kind:"resolvedImage"};function Cr(t,e){return{kind:"array",itemType:t,N:e}}function Tr(t){if("array"===t.kind){var e=Tr(t.itemType);return"number"===typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Pr=[gr,yr,vr,mr,_r,Er,br,Cr(xr),Sr];function jr(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!jr(t.itemType,e.itemType))&&("number"!==typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=Pr;r<n.length;r+=1){var i=n[r];if(!jr(i,e))return null}}return"Expected "+Tr(t)+" but found "+Tr(e)+" instead."}function Rr(t,e){return e.some((function(e){return e.kind===t.kind}))}function Mr(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"===typeof t:e===typeof t}))}var Ar=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Ar.prototype.compare=function(t,e){return this.collator.compare(t,e)},Ar.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Lr=function(t,e,r,n,i){this.text=t.normalize?t.normalize():t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},Ir=function(t){this.sections=t};Ir.fromString=function(t){return new Ir([new Lr(t,null,null,null,null)])},Ir.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},Ir.factory=function(t){return t instanceof Ir?t:Ir.fromString(t)},Ir.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},Ir.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}return t};var kr=function(t){this.name=t.name,this.available=t.available};function Fr(t,e,r,n){if(!("number"===typeof t&&t>=0&&t<=255&&"number"===typeof e&&e>=0&&e<=255&&"number"===typeof r&&r>=0&&r<=255)){var i="number"===typeof n?[t,e,r,n]:[t,e,r];return"Invalid rgba value ["+i.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return"undefined"===typeof n||"number"===typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1."}function Dr(t){if(null===t)return!0;if("string"===typeof t)return!0;if("boolean"===typeof t)return!0;if("number"===typeof t)return!0;if(t instanceof Qe)return!0;if(t instanceof Ar)return!0;if(t instanceof Ir)return!0;if(t instanceof kr)return!0;if(Array.isArray(t)){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(!Dr(n))return!1}return!0}if("object"===typeof t){for(var i in t)if(!Dr(t[i]))return!1;return!0}return!1}function Nr(t){if(null===t)return gr;if("string"===typeof t)return vr;if("boolean"===typeof t)return mr;if("number"===typeof t)return yr;if(t instanceof Qe)return _r;if(t instanceof Ar)return Or;if(t instanceof Ir)return Er;if(t instanceof kr)return Sr;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var o=i[n],a=Nr(o);if(e){if(e===a)continue;e=xr;break}e=a}return Cr(e||xr,r)}return br}function Gr(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Qe||t instanceof Ir||t instanceof kr?t.toString():JSON.stringify(t)}kr.prototype.toString=function(){return this.name},kr.fromString=function(t){return t?new kr({name:t,available:!1}):null},kr.prototype.serialize=function(){return["image",this.name]};var zr=function(t,e){this.type=t,this.value=e};zr.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!Dr(t[1]))return e.error("invalid value");var r=t[1],n=Nr(r),i=e.expectedType;return"array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"===typeof i.N&&0!==i.N||(n=i),new zr(n,r)},zr.prototype.evaluate=function(){return this.value},zr.prototype.eachChild=function(){},zr.prototype.outputDefined=function(){return!0},zr.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof Ir?this.value.serialize():this.value};var Br=function(t){this.name="ExpressionEvaluationError",this.message=t};Br.prototype.toJSON=function(){return this.message};var Ur={string:vr,number:yr,boolean:mr,object:br},Vr=function(t,e){this.type=t,this.args=e};Vr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r,n=1,i=t[0];if("array"===i){var o,a;if(t.length>2){var s=t[1];if("string"!==typeof s||!(s in Ur)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=Ur[s],n++}else o=xr;if(t.length>3){if(null!==t[2]&&("number"!==typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],n++}r=Cr(o,a)}else r=Ur[i];for(var l=[];n<t.length;n++){var u=e.parse(t[n],n,xr);if(!u)return null;l.push(u)}return new Vr(r,l)},Vr.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t),n=jr(this.type,Nr(r));if(!n)return r;if(e===this.args.length-1)throw new Br("Expected value to be of type "+Tr(this.type)+", but found "+Tr(Nr(r))+" instead.")}return null},Vr.prototype.eachChild=function(t){this.args.forEach(t)},Vr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Vr.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var n=t.N;("number"===typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var Xr=function(t){this.type=Er,this.sections=t};Xr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"===typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"===typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&(s=e.parse(a["font-scale"],1,yr),!s))return null;var l=null;if(a["text-font"]&&(l=e.parse(a["text-font"],1,Cr(vr)),!l))return null;var u=null;if(a["text-color"]&&(u=e.parse(a["text-color"],1,_r),!u))return null;var c=n[n.length-1];c.scale=s,c.font=l,c.textColor=u}else{var h=e.parse(t[o],1,xr);if(!h)return null;var f=h.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:h,scale:null,font:null,textColor:null})}}return new Xr(n)},Xr.prototype.evaluate=function(t){var e=function(e){var r=e.content.evaluate(t);return Nr(r)===Sr?new Lr("",r,null,null,null):new Lr(Gr(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)};return new Ir(this.sections.map(e))},Xr.prototype.eachChild=function(t){for(var e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t(n.content),n.scale&&t(n.scale),n.font&&t(n.font),n.textColor&&t(n.textColor)}},Xr.prototype.outputDefined=function(){return!1},Xr.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&&(i["font-scale"]=n.scale.serialize()),n.font&&(i["text-font"]=n.font.serialize()),n.textColor&&(i["text-color"]=n.textColor.serialize()),t.push(i)}return t};var Wr=function(t){this.type=Sr,this.input=t};Wr.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,vr);return r?new Wr(r):e.error("No image name provided.")},Wr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=kr.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r},Wr.prototype.eachChild=function(t){t(this.input)},Wr.prototype.outputDefined=function(){return!1},Wr.prototype.serialize=function(){return["image",this.input.serialize()]};var Hr={"to-boolean":mr,"to-color":_r,"to-number":yr,"to-string":vr},Yr=function(t,e){this.type=t,this.args=e};Yr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=Hr[r],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,xr);if(!a)return null;i.push(a)}return new Yr(n,i)},Yr.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,n=0,i=this.args;n<i.length;n+=1){var o=i[n];if(e=o.evaluate(t),r=null,e instanceof Qe)return e;if("string"===typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&(r=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":Fr(e[0],e[1],e[2],e[3]),!r))return new Qe(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new Br(r||"Could not parse color from value '"+("string"===typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var s=null,l=0,u=this.args;l<u.length;l+=1){var c=u[l];if(s=c.evaluate(t),null===s)return 0;var h=Number(s);if(!isNaN(h))return h}throw new Br("Could not convert "+JSON.stringify(s)+" to number.")}return"formatted"===this.type.kind?Ir.fromString(Gr(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?kr.fromString(Gr(this.args[0].evaluate(t))):Gr(this.args[0].evaluate(t))},Yr.prototype.eachChild=function(t){this.args.forEach(t)},Yr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Yr.prototype.serialize=function(){if("formatted"===this.type.kind)return new Xr([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Wr(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var qr=["Unknown","Point","LineString","Polygon"],Kr=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null};Kr.prototype.id=function(){return this.feature&&"id"in this.feature&&this.feature.id?this.feature.id:null},Kr.prototype.geometryType=function(){return this.feature?"number"===typeof this.feature.type?qr[this.feature.type]:this.feature.type:null},Kr.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Kr.prototype.canonicalID=function(){return this.canonical},Kr.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Kr.prototype.distanceFromCenter=function(){if(this.featureTileCoord&&this.featureDistanceData){var t=this.featureDistanceData.center,e=this.featureDistanceData.scale,r=this.featureTileCoord,n=r.x,i=r.y,o=n*e-t[0],a=i*e-t[1],s=this.featureDistanceData.bearing[0],l=this.featureDistanceData.bearing[1],u=s*o+l*a;return u}return 0},Kr.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Qe.parse(t)),e};var Zr=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function Jr(t){return Array.isArray(t)?"("+t.map(Tr).join(", ")+")":"("+Tr(t.type)+"...)"}Zr.prototype.evaluate=function(t){return this._evaluate(t,this.args)},Zr.prototype.eachChild=function(t){this.args.forEach(t)},Zr.prototype.outputDefined=function(){return!1},Zr.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},Zr.parse=function(t,e){var r,n=t[0],i=Zr.definitions[n];if(!i)return e.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,u=0,c=s;u<c.length;u+=1){var h=c[u],f=h[0],p=h[1];l=new jn(e.registry,e.path,null,e.scope);for(var d=[],g=!1,y=1;y<t.length;y++){var v=t[y],m=Array.isArray(f)?f[y-1]:f.type,_=l.parse(v,1+d.length,m);if(!_){g=!0;break}d.push(_)}if(!g)if(Array.isArray(f)&&f.length!==d.length)l.error("Expected "+f.length+" arguments, but found "+d.length+" instead.");else{for(var b=0;b<d.length;b++){var x=Array.isArray(f)?f[b]:f.type,w=d[b];l.concat(b+1).checkSubtype(x,w.type)}if(0===l.errors.length)return new Zr(n,o,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var O=s.length?s:a,E=O.map((function(t){var e=t[0];return Jr(e)})).join(" | "),S=[],C=1;C<t.length;C++){var T=e.parse(t[C],1+S.length);if(!T)return null;S.push(Tr(T.type))}e.error("Expected arguments of type "+E+", but found ("+S.join(", ")+") instead.")}return null},Zr.register=function(t,e){for(var r in Zr.definitions=e,e)t[r]=Zr};var $r=function(t,e,r){this.type=Or,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};$r.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!==typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,mr);if(!n)return null;var i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,mr);if(!i)return null;var o=null;return r["locale"]&&(o=e.parse(r["locale"],1,vr),!o)?null:new $r(n,i,o)},$r.prototype.evaluate=function(t){return new Ar(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},$r.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},$r.prototype.outputDefined=function(){return!1},$r.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t["locale"]=this.locale.serialize()),["collator",t]};var Qr=8192;function tn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function en(t){return(180+t)/360}function rn(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function nn(t,e){return!(t[0]<=e[0])&&(!(t[2]>=e[2])&&(!(t[1]<=e[1])&&!(t[3]>=e[3])))}function on(t,e){var r=en(t[0]),n=rn(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*Qr),Math.round(n*i*Qr)]}function an(t,e,r){var n=t[0]-e[0],i=t[1]-e[1],o=t[0]-r[0],a=t[1]-r[1];return n*a-o*i===0&&n*o<=0&&i*a<=0}function sn(t,e,r){return e[1]>t[1]!==r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function ln(t,e){for(var r=!1,n=0,i=e.length;n<i;n++)for(var o=e[n],a=0,s=o.length;a<s-1;a++){if(an(t,o[a],o[a+1]))return!1;sn(t,o[a],o[a+1])&&(r=!r)}return r}function un(t,e){for(var r=0;r<e.length;r++)if(ln(t,e[r]))return!0;return!1}function cn(t,e){return t[0]*e[1]-t[1]*e[0]}function hn(t,e,r,n){var i=t[0]-r[0],o=t[1]-r[1],a=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],u=n[1]-r[1],c=i*u-l*o,h=a*u-l*s;return c>0&&h<0||c<0&&h>0}function fn(t,e,r,n){var i=[e[0]-t[0],e[1]-t[1]],o=[n[0]-r[0],n[1]-r[1]];return 0!==cn(o,i)&&!(!hn(t,e,r,n)||!hn(r,n,t,e))}function pn(t,e,r){for(var n=0,i=r;n<i.length;n+=1)for(var o=i[n],a=0;a<o.length-1;++a)if(fn(t,e,o[a],o[a+1]))return!0;return!1}function dn(t,e){for(var r=0;r<t.length;++r)if(!ln(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(pn(t[n],t[n+1],e))return!1;return!0}function gn(t,e){for(var r=0;r<e.length;r++)if(dn(t,e[r]))return!0;return!1}function yn(t,e,r){for(var n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=on(t[i][a],r);tn(e,s),o.push(s)}n.push(o)}return n}function vn(t,e,r){for(var n=[],i=0;i<t.length;i++){var o=yn(t[i],e,r);n.push(o)}return n}function mn(t,e,r,n){if(t[0]<r[0]||t[0]>r[2]){var i=.5*n,o=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===o&&(o=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=o}tn(e,t)}function _n(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function bn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],a=[];if(!t)return a;for(var s=0,l=t;s<l.length;s+=1)for(var u=l[s],c=0,h=u;c<h.length;c+=1){var f=h[c],p=[f.x+o[0],f.y+o[1]];mn(p,e,r,i),a.push(p)}return a}function xn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],a=[];if(!t)return a;for(var s=0,l=t;s<l.length;s+=1){for(var u=l[s],c=[],h=0,f=u;h<f.length;h+=1){var p=f[h],d=[p.x+o[0],p.y+o[1]];tn(e,d),c.push(d)}a.push(c)}if(e[2]-e[0]<=i/2){_n(e);for(var g=0,y=a;g<y.length;g+=1)for(var v=y[g],m=0,_=v;m<_.length;m+=1){var b=_[m];mn(b,e,r,i)}}return a}function wn(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=yn(e.coordinates,n,i),a=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!ln(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!un(d,c))return!1}}return!0}function On(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=yn(e.coordinates,n,i),a=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!dn(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!gn(d,c))return!1}}return!0}var En=function(t,e){this.type=mr,this.geojson=t,this.geometries=e};function Sn(t){if(t instanceof Zr){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof En)return!1;var e=!0;return t.eachChild((function(t){e&&!Sn(t)&&(e=!1)})),e}function Cn(t){if(t instanceof Zr&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Cn(t)&&(e=!1)})),e}function Tn(t,e){if(t instanceof Zr&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Tn(t,e)&&(r=!1)})),r}En.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(Dr(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;n<r.features.length;++n){var i=r.features[n].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new En(r,r.features[n].geometry)}else if("Feature"===r.type){var o=r.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new En(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new En(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},En.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return wn(t,this.geometries);if("LineString"===t.geometryType())return On(t,this.geometries)}return!1},En.prototype.eachChild=function(){},En.prototype.outputDefined=function(){return!0},En.prototype.serialize=function(){return["within",this.geojson]};var Pn=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Pn.parse=function(t,e){if(2!==t.length||"string"!==typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new Pn(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},Pn.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Pn.prototype.eachChild=function(){},Pn.prototype.outputDefined=function(){return!1},Pn.prototype.serialize=function(){return["var",this.name]};var jn=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new dr),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=n,this.errors=i,this.expectedType=r};function Rn(t){if(t instanceof Pn)return Rn(t.boundExpression);if(t instanceof Zr&&"error"===t.name)return!1;if(t instanceof $r)return!1;if(t instanceof En)return!1;var e=t instanceof Yr||t instanceof Vr,r=!0;return t.eachChild((function(t){r=e?r&&Rn(t):r&&t instanceof zr})),!!r&&(Sn(t)&&Tn(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function Mn(t,e){var r,n,i=t.length-1,o=0,a=i,s=0;while(o<=a)if(s=Math.floor((o+a)/2),r=t[s],n=t[s+1],r<=e){if(s===i||e<n)return s;o=s+1}else{if(!(r>e))throw new Br("Input is not a number.");a=s-1}return 0}jn.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},jn.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new Vr(e,[t]):"coerce"===r?new Yr(e,[t]):t}if(null!==t&&"string"!==typeof t&&"boolean"!==typeof t&&"number"!==typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!==typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,e.typeAnnotation||"coerce");else o=r(o,a,e.typeAnnotation||"assert")}if(!(o instanceof zr)&&"resolvedImage"!==o.type.kind&&Rn(o)){var l=new Kr;try{o=new zr(o.type,o.evaluate(l))}catch(al){return this.error(al.message),null}}return o}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return"undefined"===typeof t?this.error("'undefined' value invalid. Use null instead."):"object"===typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},jn.prototype.concat=function(t,e,r){var n="number"===typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new jn(this.registry,n,e||null,i,this.errors)},jn.prototype.error=function(t){var e=[],r=arguments.length-1;while(r-- >0)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new pr(n,t))},jn.prototype.checkSubtype=function(t,e){var r=jr(t,e);return r&&this.error(r),r};var An=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n<i.length;n+=1){var o=i[n],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};An.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");var r=e.parse(t[1],1,yr);if(!r)return null;var n=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!==typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&&n[n.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,i);if(!c)return null;i=i||c.type,n.push([a,c])}return new An(i,r,n)},An.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var o=Mn(e,n);return r[o].evaluate(t)},An.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1){var n=r[e];t(n)}},An.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},An.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ln=In;function In(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}function kn(t,e,r){return t*(1-r)+e*r}function Fn(t,e,r){return new Qe(kn(t.r,e.r,r),kn(t.g,e.g,r),kn(t.b,e.b,r),kn(t.a,e.a,r))}function Dn(t,e,r){return t.map((function(t,n){return kn(t,e[n],r)}))}In.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},In.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},In.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},In.prototype.solveCurveX=function(t,e){var r,n,i,o,a;for("undefined"===typeof e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if(r=0,n=1,i=t,i<r)return r;if(i>n)return n;while(r<n){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?r=i:n=i,i=.5*(n-r)+r}return i},In.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var Nn=Object.freeze({__proto__:null,number:kn,color:Fn,array:Dn}),Gn=.95047,zn=1,Bn=1.08883,Un=4/29,Vn=6/29,Xn=3*Vn*Vn,Wn=Vn*Vn*Vn,Hn=Math.PI/180,Yn=180/Math.PI;function qn(t){return t>Wn?Math.pow(t,1/3):t/Xn+Un}function Kn(t){return t>Vn?t*t*t:Xn*(t-Un)}function Zn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Jn(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $n(t){var e=Jn(t.r),r=Jn(t.g),n=Jn(t.b),i=qn((.4124564*e+.3575761*r+.1804375*n)/Gn),o=qn((.2126729*e+.7151522*r+.072175*n)/zn),a=qn((.0193339*e+.119192*r+.9503041*n)/Bn);return{l:116*o-16,a:500*(i-o),b:200*(o-a),alpha:t.a}}function Qn(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=zn*Kn(e),r=Gn*Kn(r),n=Bn*Kn(n),new Qe(Zn(3.2404542*r-1.5371385*e-.4985314*n),Zn(-.969266*r+1.8760108*e+.041556*n),Zn(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function ti(t,e,r){return{l:kn(t.l,e.l,r),a:kn(t.a,e.a,r),b:kn(t.b,e.b,r),alpha:kn(t.alpha,e.alpha,r)}}function ei(t){var e=$n(t),r=e.l,n=e.a,i=e.b,o=Math.atan2(i,n)*Yn;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}}function ri(t){var e=t.h*Hn,r=t.c,n=t.l;return Qn({l:n,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function ni(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function ii(t,e,r){return{h:ni(t.h,e.h,r),c:kn(t.c,e.c,r),l:kn(t.l,e.l,r),alpha:kn(t.alpha,e.alpha,r)}}var oi={forward:$n,reverse:Qn,interpolate:ti},ai={forward:ei,reverse:ri,interpolate:ii},si=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function li(t,e,r,n){var i=n-r,o=t-r;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}si.interpolationFactor=function(t,e,r,n){var i=0;if("exponential"===t.name)i=li(e,t.base,r,n);else if("linear"===t.name)i=li(e,1,r,n);else if("cubic-bezier"===t.name){var o=t.controlPoints,a=new Ln(o[0],o[1],o[2],o[3]);i=a.solve(li(e,1,r,n))}return i},si.parse=function(t,e){var r=t[0],n=t[1],i=t[2],o=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!==typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return"number"!==typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");if(i=e.parse(i,2,yr),!i)return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=_r:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],f=o[c+1],p=c+3,d=c+4;if("number"!==typeof h)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&&l[l.length-1][0]>=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(f,d,u);if(!g)return null;u=u||g.type,l.push([h,g])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"===typeof u.N?new si(u,r,n,i,l):e.error("Type "+Tr(u)+" is not interpolatable.")},si.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var o=Mn(e,n),a=e[o],s=e[o+1],l=si.interpolationFactor(this.interpolation,n,a,s),u=r[o].evaluate(t),c=r[o+1].evaluate(t);return"interpolate"===this.operator?Nn[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?ai.reverse(ai.interpolate(ai.forward(u),ai.forward(c),l)):oi.reverse(oi.interpolate(oi.forward(u),oi.forward(c),l))},si.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1){var n=r[e];t(n)}},si.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},si.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r<this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ui=function(t,e){this.type=t,this.args=e};ui.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var r=null,n=e.expectedType;n&&"value"!==n.kind&&(r=n);for(var i=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!l)return null;r=r||l.type,i.push(l)}var u=n&&i.some((function(t){return jr(n,t.type)}));return new ui(u?xr:r,i)},ui.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,o=this.args;i<o.length;i+=1){var a=o[i];if(n++,r=a.evaluate(t),r&&r instanceof kr&&!r.available&&(e||(e=r),r=null,n===this.args.length))return e;if(null!==r)break}return r},ui.prototype.eachChild=function(t){this.args.forEach(t)},ui.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ui.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ci=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ci.prototype.evaluate=function(t){return this.result.evaluate(t)},ci.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1){var n=r[e];t(n[1])}t(this.result)},ci.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],n=1;n<t.length-1;n+=2){var i=t[n];if("string"!==typeof i)return e.error("Expected string, but found "+typeof i+" instead.",n);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);var o=e.parse(t[n+1],n+1);if(!o)return null;r.push([i,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return a?new ci(r,a):null},ci.prototype.outputDefined=function(){return this.result.outputDefined()},ci.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t.push(i,o.serialize())}return t.push(this.result.serialize()),t};var hi=function(t,e,r){this.type=t,this.index=e,this.input=r};hi.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,yr),n=e.parse(t[2],2,Cr(e.expectedType||xr));if(!r||!n)return null;var i=n.type;return new hi(i.itemType,r,n)},hi.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new Br("Array index out of bounds: "+e+" < 0.");if(e>=r.length)throw new Br("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new Br("Array index must be an integer, but found "+e+" instead.");return r[e]},hi.prototype.eachChild=function(t){t(this.index),t(this.input)},hi.prototype.outputDefined=function(){return!1},hi.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var fi=function(t,e){this.type=mr,this.needle=t,this.haystack=e};fi.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,xr),n=e.parse(t[2],2,xr);return r&&n?Rr(r.type,[mr,vr,yr,gr,xr])?new fi(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead"):null},fi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(null==r)return!1;if(!Mr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Nr(e))+" instead.");if(!Mr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Nr(r))+" instead.");return r.indexOf(e)>=0},fi.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fi.prototype.outputDefined=function(){return!0},fi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pi=function(t,e,r){this.type=yr,this.needle=t,this.haystack=e,this.fromIndex=r};pi.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,xr),n=e.parse(t[2],2,xr);if(!r||!n)return null;if(!Rr(r.type,[mr,vr,yr,gr,xr]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new pi(r,n,i):null}return new pi(r,n)},pi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Mr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Nr(e))+" instead.");if(!Mr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Nr(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},pi.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},pi.prototype.outputDefined=function(){return!1},pi.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var di=function(t,e,r,n,i,o){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=o};di.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!==1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var f=h[c];if("number"!==typeof f&&"string"!==typeof f)return u.error("Branch labels must be numbers or strings.");if("number"===typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"===typeof f&&Math.floor(f)!==f)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,Nr(f)))return null}else r=Nr(f);if("undefined"!==typeof i[String(f)])return u.error("Branch labels must be unique.");i[String(f)]=o.length}var p=e.parse(l,a,n);if(!p)return null;n=n||p.type,o.push(p)}var d=e.parse(t[1],1,xr);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new di(r,n,d,i,o,g):null},di.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=Nr(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise;return r.evaluate(t)},di.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},di.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},di.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=Object.keys(this.cases).sort(),n=[],i={},o=0,a=r;o<a.length;o+=1){var s=a[o],l=i[this.cases[s]];void 0===l?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[l][1].push(s)}for(var u=function(e){return"number"===t.inputType.kind?Number(e):e},c=0,h=n;c<h.length;c+=1){var f=h[c],p=(l=f[0],f[1]);1===p.length?e.push(u(p[0])):e.push(p.map(u)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var gi=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};gi.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!==0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],i=1;i<t.length-1;i+=2){var o=e.parse(t[i],i,mr);if(!o)return null;var a=e.parse(t[i+1],i+1,r);if(!a)return null;n.push([o,a]),r=r||a.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new gi(r,n,s):null},gi.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];if(i.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},gi.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t(i),t(o)}t(this.otherwise)},gi.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];var e=t[1];return e.outputDefined()}))&&this.otherwise.outputDefined()},gi.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var yi=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function vi(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function mi(t,e,r){return e===r}function _i(t,e,r){return e!==r}function bi(t,e,r){return e<r}function xi(t,e,r){return e>r}function wi(t,e,r){return e<=r}function Oi(t,e,r){return e>=r}function Ei(t,e,r,n){return 0===n.compare(e,r)}function Si(t,e,r,n){return!Ei(t,e,r,n)}function Ci(t,e,r,n){return n.compare(e,r)<0}function Ti(t,e,r,n){return n.compare(e,r)>0}function Pi(t,e,r,n){return n.compare(e,r)<=0}function ji(t,e,r,n){return n.compare(e,r)>=0}function Ri(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=mr,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],o=e.parse(t[1],1,xr);if(!o)return null;if(!vi(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Tr(o.type)+"'.");var a=e.parse(t[2],2,xr);if(!a)return null;if(!vi(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Tr(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Tr(o.type)+"' and '"+Tr(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Vr(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Vr(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(s=e.parse(t[3],3,Or),!s)return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=Nr(o),l=Nr(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Br('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var u=Nr(o),c=Nr(a);if("string"!==u.kind||"string"!==c.kind)return e(i,o,a)}return this.collator?r(i,o,a,this.collator.evaluate(i)):e(i,o,a)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}yi.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,xr),n=e.parse(t[2],2,yr);if(!r||!n)return null;if(!Rr(r.type,[Cr(xr),vr,xr]))return e.error("Expected first argument to be of type array or string, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new yi(r.type,r,n,i):null}return new yi(r.type,r,n)},yi.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Mr(e,["string","array"]))throw new Br("Expected first argument to be of type array or string, but found "+Tr(Nr(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},yi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},yi.prototype.outputDefined=function(){return!1},yi.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Mi=Ri("==",mi,Ei),Ai=Ri("!=",_i,Si),Li=Ri("<",bi,Ci),Ii=Ri(">",xi,Ti),ki=Ri("<=",wi,Pi),Fi=Ri(">=",Oi,ji),Di=function(t,e,r,n,i){this.type=vr,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Di.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,yr);if(!r)return null;var n=t[2];if("object"!==typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n["locale"]&&(i=e.parse(n["locale"],1,vr),!i))return null;var o=null;if(n["currency"]&&(o=e.parse(n["currency"],1,vr),!o))return null;var a=null;if(n["min-fraction-digits"]&&(a=e.parse(n["min-fraction-digits"],1,yr),!a))return null;var s=null;return n["max-fraction-digits"]&&(s=e.parse(n["max-fraction-digits"],1,yr),!s)?null:new Di(r,i,o,a,s)},Di.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Di.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Di.prototype.outputDefined=function(){return!1},Di.prototype.serialize=function(){var t={};return this.locale&&(t["locale"]=this.locale.serialize()),this.currency&&(t["currency"]=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Ni=function(t){this.type=yr,this.input=t};Ni.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Tr(r.type)+" instead."):new Ni(r):null},Ni.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"===typeof e)return e.length;if(Array.isArray(e))return e.length;throw new Br("Expected value to be of type string or array, but found "+Tr(Nr(e))+" instead.")},Ni.prototype.eachChild=function(t){t(this.input)},Ni.prototype.outputDefined=function(){return!1},Ni.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Gi={"==":Mi,"!=":Ai,">":Ii,"<":Li,">=":Fi,"<=":ki,array:Vr,at:hi,boolean:Vr,case:gi,coalesce:ui,collator:$r,format:Xr,image:Wr,in:fi,"index-of":pi,interpolate:si,"interpolate-hcl":si,"interpolate-lab":si,length:Ni,let:ci,literal:zr,match:di,number:Vr,"number-format":Di,object:Vr,slice:yi,step:An,string:Vr,"to-boolean":Yr,"to-color":Yr,"to-number":Yr,"to-string":Yr,var:Pn,within:En};function zi(t,e){var r=e[0],n=e[1],i=e[2],o=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=Fr(r,n,i,a);if(s)throw new Br(s);return new Qe(r/255*a,n/255*a,i/255*a,a)}function Bi(t,e){return t in e}function Ui(t,e){var r=e[t];return"undefined"===typeof r?null:r}function Vi(t,e,r,n){while(r<=n){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}function Xi(t){return{type:t}}function Wi(t){return{result:"success",value:t}}function Hi(t){return{result:"error",value:t}}function Yi(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function qi(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Ki(t){return!!t.expression&&t.expression.interpolated}function Zi(t){return"object"===typeof t&&null!==t&&!Array.isArray(t)}Zr.register(Gi,{error:[wr,[vr],function(t,e){var r=e[0];throw new Br(r.evaluate(t))}],typeof:[vr,[xr],function(t,e){var r=e[0];return Tr(Nr(r.evaluate(t)))}],"to-rgba":[Cr(yr,4),[_r],function(t,e){var r=e[0];return r.evaluate(t).toArray()}],rgb:[_r,[yr,yr,yr],zi],rgba:[_r,[yr,yr,yr,yr],zi],has:{type:mr,overloads:[[[vr],function(t,e){var r=e[0];return Bi(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Bi(r.evaluate(t),n.evaluate(t))}]]},get:{type:xr,overloads:[[[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Ui(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[xr,[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.featureState||{})}],properties:[br,[],function(t){return t.properties()}],"geometry-type":[vr,[],function(t){return t.geometryType()}],id:[xr,[],function(t){return t.id()}],zoom:[yr,[],function(t){return t.globals.zoom}],pitch:[yr,[],function(t){return t.globals.pitch||0}],"distance-from-center":[yr,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[yr,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[yr,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[yr,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[xr,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[yr,Xi(yr),function(t,e){for(var r=0,n=0,i=e;n<i.length;n+=1){var o=i[n];r+=o.evaluate(t)}return r}],"*":[yr,Xi(yr),function(t,e){for(var r=1,n=0,i=e;n<i.length;n+=1){var o=i[n];r*=o.evaluate(t)}return r}],"-":{type:yr,overloads:[[[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[yr],function(t,e){var r=e[0];return-r.evaluate(t)}]]},"/":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],"%":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[yr,[],function(){return Math.LN2}],pi:[yr,[],function(){return Math.PI}],e:[yr,[],function(){return Math.E}],"^":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[yr,[yr],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[yr,[yr],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[yr,[yr],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[yr,[yr],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[yr,[yr],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[yr,[yr],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[yr,[yr],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[yr,Xi(yr),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[yr,Xi(yr),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[yr,[yr],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[yr,[yr],function(t,e){var r=e[0],n=r.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[yr,[yr],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[yr,[yr],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[mr,[xr],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[mr,[vr],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i<o}],"filter-id-<":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<i}],"filter->":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i>o}],"filter-id->":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>i}],"filter-<=":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i<=o}],"filter-id-<=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<=i}],"filter->=":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i>=o}],"filter-id->=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>=i}],"filter-has":[mr,[xr],function(t,e){var r=e[0];return r.value in t.properties()}],"filter-has-id":[mr,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[mr,[Cr(vr)],function(t,e){var r=e[0];return r.value.indexOf(t.geometryType())>=0}],"filter-id-in":[mr,[Cr(xr)],function(t,e){var r=e[0];return r.value.indexOf(t.id())>=0}],"filter-in-small":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return n.value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return Vi(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Xi(mr),function(t,e){for(var r=0,n=e;r<n.length;r+=1){var i=n[r];if(!i.evaluate(t))return!1}return!0}]]},any:{type:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Xi(mr),function(t,e){for(var r=0,n=e;r<n.length;r+=1){var i=n[r];if(i.evaluate(t))return!0}return!1}]]},"!":[mr,[mr],function(t,e){var r=e[0];return!r.evaluate(t)}],"is-supported-script":[mr,[vr],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toUpperCase()}],downcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toLowerCase()}],concat:[vr,Xi(xr),function(t,e){return e.map((function(e){return Gr(e.evaluate(t))})).join("")}],"resolved-locale":[vr,[Or],function(t,e){var r=e[0];return r.evaluate(t).resolvedLocale()}]});var Ji=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Kr,this._defaultValue=e?oo(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function $i(t){return Array.isArray(t)&&t.length>0&&"string"===typeof t[0]&&t[0]in Gi}function Qi(t,e){var r=new jn(Gi,[],e?io(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Wi(new Ji(n,e)):Hi(r.errors)}Ji.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o,a,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},Ji.prototype.evaluate=function(t,e,r,n,i,o,a,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{var l=this.expression.evaluate(this._evaluator);if(null===l||void 0===l||"number"===typeof l&&l!==l)return this._defaultValue;if(this._enumValues&&!(l in this._enumValues))throw new Br("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(l)+" instead.");return l}catch(al){return this._warningHistory[al.message]||(this._warningHistory[al.message]=!0,"undefined"!==typeof console&&console.warn(al.message)),this._defaultValue}};var to=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Cn(e.expression)};to.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},to.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)};var eo=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Cn(e.expression),this.interpolationType=n};function ro(t,e){if(t=Qi(t,e),"error"===t.result)return t;var r=t.value.expression,n=Sn(r);if(!n&&!Yi(e))return Hi([new pr("","data expressions not supported")]);var i=Tn(r,["zoom","pitch","distance-from-center"]);if(!i&&!qi(e))return Hi([new pr("","zoom expressions not supported")]);var o=no(r);if(!o&&!i)return Hi([new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof pr)return Hi([o]);if(o instanceof si&&!Ki(e))return Hi([new pr("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Wi(new to(n?"constant":"source",t.value));var a=o instanceof si?o.interpolation:void 0;return Wi(new eo(n?"camera":"composite",t.value,o.labels,a))}function no(t){var e=null;if(t instanceof ci)e=no(t.result);else if(t instanceof ui)for(var r=0,n=t.args;r<n.length;r+=1){var i=n[r];if(e=no(i),e)break}else(t instanceof An||t instanceof si)&&t.input instanceof Zr&&"zoom"===t.input.name&&(e=t);return e instanceof pr||t.eachChild((function(t){var r=no(t);r instanceof pr?e=r:!e&&r?e=new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new pr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function io(t){var e={color:_r,string:vr,number:yr,enum:vr,boolean:mr,formatted:Er,resolvedImage:Sr};return"array"===t.type?Cr(e[t.value]||xr,t.length):e[t.type]}function oo(t){return"color"===t.type&&(Zi(t.default)||Array.isArray(t.default))?new Qe(0,0,0,0):"color"===t.type?Qe.parse(t.default)||null:void 0===t.default?null:t.default}function ao(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function so(t){if(Array.isArray(t))return t.map(so);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=so(t[r]);return e}return ao(t)}eo.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},eo.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)},eo.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?si.interpolationFactor(this.interpolationType,t,e,r):0};var lo={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function uo(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!==typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!uo(n)&&"boolean"!==typeof n)return!1}return!0;default:return!0}}function co(t,e){if(void 0===e&&(e="fill"),null===t||void 0===t)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};uo(t)||(t=xo(t));var r=t,n=!0;try{n=ho(r)}catch(al){console.warn("Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n"+JSON.stringify(r,null,2)+"\n ")}var i=lo["filter_"+e],o=Qi(n,i),a=null;if("error"===o.result)throw new Error(o.value.map((function(t){return t.key+": "+t.message})).join(", "));a=function(t,e,r){return o.value.evaluate(t,e,{},r)};var s=null,l=null;if(n!==r){var u=Qi(r,i);if("error"===u.result)throw new Error(u.value.map((function(t){return t.key+": "+t.message})).join(", "));s=function(t,e,r,n,i){return u.value.evaluate(t,e,{},r,void 0,void 0,n,i)},l=!Sn(u.value.expression)}a=a;var c=bo(n);return{filter:a,dynamicFilter:s||void 0,needGeometry:c,needFeature:!!l}}function ho(t){if(!go(t))return t;var e=so(t);return po(e),e=fo(e),e}function fo(t){if(!Array.isArray(t))return t;var e=mo(t);return!0===e?e:e.map((function(t){return fo(t)}))}function po(t){var e=!1,r=[];if("case"===t[0]){for(var n=1;n<t.length-1;n+=2)e=e||go(t[n]),r.push(t[n+1]);r.push(t[t.length-1])}else if("match"===t[0]){e=e||go(t[1]);for(var i=2;i<t.length-1;i+=2)r.push(t[i+1]);r.push(t[t.length-1])}else if("step"===t[0]){e=e||go(t[1]);for(var o=1;o<t.length-1;o+=2)r.push(t[o+1])}e&&(t.length=0,t.push.apply(t,["any"].concat(r)));for(var a=1;a<t.length;a++)po(t[a])}function go(t){if(!Array.isArray(t))return!1;if(yo(t[0]))return!0;for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return!1}function yo(t){return"pitch"===t||"distance-from-center"===t}var vo=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function mo(t){if(vo.has(t[0]))for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return t}function _o(t,e){return t<e?-1:t>e?1:0}function bo(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if(bo(t[e]))return!0;return!1}function xo(t){if(!t)return!0;var e=t[0];if(t.length<=1)return"any"!==e;var r="=="===e?wo(t[1],t[2],"=="):"!="===e?Co(wo(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?wo(t[1],t[2],e):"any"===e?Oo(t.slice(1)):"all"===e?["all"].concat(t.slice(1).map(xo)):"none"===e?["all"].concat(t.slice(1).map(xo).map(Co)):"in"===e?Eo(t[1],t.slice(2)):"!in"===e?Co(Eo(t[1],t.slice(2))):"has"===e?So(t[1]):"!has"===e?Co(So(t[1])):"within"!==e||t;return r}function wo(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function Oo(t){return["any"].concat(t.map(xo))}function Eo(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!==typeof e[0]}))?["filter-in-large",t,["literal",e.sort(_o)]]:["filter-in-small",t,["literal",e]]}}function So(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Co(t){return["!",t]}var To=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Po(t,e){var r={};for(var n in t)"ref"!==n&&(r[n]=t[n]);return To.forEach((function(t){t in e&&(r[t]=e[t])})),r}function jo(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=Po(t[n],e[t[n].ref]));return t}var Ro={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},Mo=" ",Ao=/(italic|oblique)$/i,Lo={},Io=function(t,e,r){var n=Lo[t];if(!n){Array.isArray(t)||(t=[t]);for(var i,o,a=400,s="normal",l=[],u=0,c=t.length;u<c;++u){var h=t[u],f=h.split(" "),p=f[f.length-1].toLowerCase();for(var d in"normal"==p||"italic"==p||"oblique"==p?(s=o?s:p,f.pop(),p=f[f.length-1].toLowerCase()):Ao.test(p)&&(p=p.replace(Ao,""),s=o?s:f[f.length-1].replace(p,"")),Ro){var g=f.length>1?f[f.length-2].toLowerCase():"";if(p==d||p==d.replace("-","")||g+"-"+p==d){a=i?a:Ro[d],f.pop(),g&&d.startsWith(g)&&f.pop();break}}i||"number"!=typeof p||(a=p);var y=f.join(Mo).replace("Klokantech Noto Sans","Noto Sans");-1!==y.indexOf(Mo)&&(y='"'+y+'"'),l.push(y)}n=Lo[t]=[s,a,l]}return n[0]+Mo+n[1]+Mo+e+"px"+(r?"/"+r:"")+Mo+n[2]},ko="https://api.mapbox.com";function Fo(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Do(t,e,r){var n=Fo(t);if(!n)return decodeURI(new URL(t,r).href);var i="sprites/";if(0!==n.indexOf(i))throw new Error("unexpected sprites url: "+t);var o=n.slice(i.length);return ko+"/styles/v1/"+o+"/sprite?access_token="+e}function No(t,e){var r=Fo(t);if(!r)return decodeURI(new URL(t,location.href).href);var n="styles/";if(0!==r.indexOf(n))throw new Error("unexpected style url: "+t);var i=r.slice(n.length);return ko+"/styles/v1/"+i+"?&access_token="+e}function Go(t,e,r,n){var i=new URL(t,n),o=Fo(t);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+e:e?(i.searchParams.set(r,e),decodeURI(i.href)):decodeURI(i.href)}function zo(t){return t*Math.PI/180}var Bo=function(){for(var t=[],e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function Uo(t,e){if("undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas)return new OffscreenCanvas(t,e);var r=document.createElement("canvas");return r.width=t,r.height=e,r}function Vo(t,e){for(var r=0,n=e.length;r<n;++r){var i=e[r];if(i<t&&r+1<n){var o=e[r]/e[r+1];return r+Math.log(e[r]/t)/Math.log(o)}}return n-1}var Xo={};function Wo(t,e,r){if(void 0===r&&(r={}),e in Xo)return Xo[e];var n=r.transformRequest&&r.transformRequest(e,t)||new Request(e);n.headers.get("Accept")||n.headers.set("Accept","application/json");var i=fetch(n).then((function(t){return delete Xo[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete Xo[e],Promise.reject(new Error("Error fetching source "+e))}));return Xo[e]=i,i}function Ho(t,e){if("string"!==typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return t=No(t,e.accessToken),Wo("Style",t,e);try{var r=JSON.parse(t);return Promise.resolve(r)}catch(n){return Promise.reject(n)}}var Yo={};function qo(t,e,r){void 0===r&&(r={});var n=[e,JSON.stringify(t)].toString(),i=Yo[n];if(!i||r.transformRequest){var o=t.url;if(o&&!t.tiles){var a=Go(o,r.accessToken,r.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},t,{url:void 0,tiles:a})):Wo("Source",a,r).then((function(t){for(var e=0,n=t.tiles.length;e<n;++e){var i=t.tiles[e];if(r.transformRequest){var o=r.transformRequest(a,"Source");o&&(a=o.url)}var s=Go(i,r.accessToken,r.accessTokenParam||"access_token",a);if(r.transformRequest){var l=r.transformRequest(s,"Tiles");l instanceof Request&&(s=decodeURI(l.url))}t.tiles[e]=s}return Promise.resolve(t)}))}else t=Object.assign({},t,{tiles:t.tiles.map((function(t){return Go(t,r.accessToken,r.accessTokenParam||"access_token",e||location.href)}))}),i=Promise.resolve(Object.assign({},t));Yo[n]=i}return i}var Ko,Zo=Array(256).join(" ");function Jo(t,e){if(e>=.05){for(var r="",n=t.split("\n"),i=Zo.slice(0,Math.round(e/.1)),o=0,a=n.length;o<a;++o)o>0&&(r+="\n"),r+=n[o].split("").join(i);return r}return t}function $o(){return Ko||(Ko=Uo(1,1).getContext("2d")),Ko}function Qo(t,e){return $o().measureText(t).width+(t.length-1)*e}var ta={};function ea(t,e,r,n){if(-1!==t.indexOf("\n")){for(var i=t.split("\n"),o=[],a=0,s=i.length;a<s;++a)o.push(ea(i[a],e,r,n));return o.join("\n")}var l=r+","+e+","+t+","+n,u=ta[l];if(!u){var c=t.split(" ");if(c.length>1){var h=$o();h.font=e;for(var f=h.measureText("M").width,p=f*r,d="",g=[],y=0,v=c.length;y<v;++y){var m=c[y],_=d+(d?" ":"")+m;Qo(_,n)<=p?d=_:(d&&g.push(d),d=m)}d&&g.push(d);for(var b=0,x=g.length;b<x&&x>1;++b){var w=g[b];if(Qo(w,n)<.35*p){var O=b>0?Qo(g[b-1],n):1/0,E=b<x-1?Qo(g[b+1],n):1/0;g.splice(b,1),x-=1,O<E?(g[b-1]+=" "+w,b-=1):g[b]=w+" "+g[b]}}for(var S=0,C=g.length-1;S<C;++S){var T=g[S],P=g[S+1];if(Qo(T,n)>.7*p&&Qo(P,n)<.6*p){var j=T.split(" "),R=j.pop();Qo(R,n)<.2*p&&(g[S]=j.join(" "),g[S+1]=R+" "+P),C-=1}}u=g.join("\n")}else u=t;u=Jo(u,n),ta[l]=u}return u}var ra,na=/font-family: ?([^;]*);/,ia=/("|')/g;function oa(t){if(!ra){ra={};for(var e=document.styleSheets,r=0,n=e.length;r<n;++r){var i=e[r];try{var o=i.rules||i.cssRules;if(o)for(var a=0,s=o.length;a<s;++a){var l=o[a];if(5==l.type){var u=l.cssText.match(na);ra[u[1].replace(ia,"")]=!0}}}catch(al){}}}return t in ra}var aa={};function sa(t){var e=t.toString();if(e in aa)return aa[e];for(var r=[],n=0,i=t.length;n<i;++n){t[n]=t[n].replace("Arial Unicode MS","Arial");var o=t[n],a=Io(o,1);Object(ze["q"])(a);var s=a.split(" ");r.push([s.slice(3).join(" ").replace(/"/g,""),s[1],s[0]])}for(var l=0,u=r.length;l<u;++l){var c=r[l],h=c[0];if(!oa(h)&&100!==ze["a"].get(c[2]+"\n"+c[1]+" \n"+h)){var f="https://fonts.googleapis.com/css?family="+h.replace(/ /g,"+")+":"+c[1]+c[2];if(!document.querySelector('link[href="'+f+'"]')){var p=document.createElement("link");p.href=f,p.rel="stylesheet",document.head.appendChild(p)}}}return aa[e]=t,t}var la,ua,ca={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ha={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},fa=function(t,e){var r=ro(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value},pa={},da={zoom:0};function ga(t,e,r,n,i,o,a){var s=t.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var l=o[s];if(!l[r]){var u=(t[e]||pa)[r],c=lo[e+"_"+t.type][r];void 0===u&&(u=c.default);var h=$i(u);if(!h&&Zi(u)&&(u=er(u,c),h=!0),h){var f=fa(u,c);l[r]=f.evaluate.bind(f)}else"color"==c.type&&(u=Qe.parse(u)),l[r]=function(){return u}}return da.zoom=n,l[r](da,i,a)}function ya(t,e,r,n){var i=ga(t,"layout","icon-allow-overlap",e,r,n);if(!i)return"declutter";var o=ga(t,"layout","icon-ignore-placement",e,r,n);return o?"none":"obstacle"}function va(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=co(e).filter),da.zoom=n,i[t](da,r)}var ma=!1;function _a(t,e){if(t){if(!ma&&(0===t.a||0===e))return;var r=t.a;return e=void 0===e?1:e,0===r?"transparent":"rgba("+Math.round(255*t.r/r)+","+Math.round(255*t.g/r)+","+Math.round(255*t.b/r)+","+r*e+")"}return t}var ba=/\{[^{}}]*\}/g;function xa(t,e){return t.replace(ba,(function(t){return e[t.slice(1,-1)]||""}))}var wa=!1;function Oa(t,e,r,n,i,o,s){if(void 0===n&&(n=Bo),void 0===i&&(i=void 0),void 0===o&&(o=void 0),void 0===s&&(s=void 0),"string"==typeof e&&(e=JSON.parse(e)),8!=e.version)throw new Error("glStyle version 8 required.");var l,u;if(o)if("undefined"!==typeof Image){var p=new Image;p.crossOrigin="anonymous",p.onload=function(){l=p,u=[p.width,p.height],t.changed(),p.onload=null},p.src=o}else if("undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var d=self;d.postMessage({action:"loadImage",src:o}),d.addEventListener("message",(function(t){"imageLoaded"===t.data.action&&t.data.src===o&&(l=t.data.image,u=[l.width,l.height])}))}for(var g,y=jo(e.layers),v={},m=[],_={},b={},x={},w={},O=0,E=y.length;O<E;++O){var S=y[O],C=S.id;if("string"==typeof r&&S.source==r||-1!==r.indexOf(C)){var T=S["source-layer"];if(g){if(S.source!==g)throw new Error('Layer "'+C+'" does not use source "'+g)}else{g=S.source;var P=e.sources[g];if(!P)throw new Error('Source "'+g+'" is not defined');var j=P.type;if("vector"!==j&&"geojson"!==j)throw new Error('Source "'+g+'" is not of type "vector" or "geojson", but "'+j+'"')}var R=v[T];R||(R=[],v[T]=R),R.push({layer:S,index:O}),m.push(C)}}var M=new c["default"],A=new a["default"],L=[],I=function(e,r){var o=e.getProperties(),p=v[o.layer];if(p){var d=n.indexOf(r);-1==d&&(d=Vo(r,n));for(var g,y=ca[e.getGeometry().getType()],m={properties:o,type:y},O=t.get("mapbox-featurestate")[e.getId()],E=-1,S=0,C=p.length;S<C;++S){var T=p[S],P=T.layer,j=P.id,R=P.layout||pa,I=P.paint||pa;if(!("none"===R.visibility||"minzoom"in P&&d<P.minzoom||"maxzoom"in P&&d>=P.maxzoom)){var k=P.filter;if(!k||va(j,k,m,d,w)){g=P;var F=void 0,D=void 0,N=void 0,G=void 0,z=void 0,B=void 0,U=T.index;if(3==y&&("fill"==P.type||"fill-extrusion"==P.type))if(D=ga(P,"paint",P.type+"-opacity",d,m,x,O),P.type+"-pattern"in I){var V=ga(P,"paint",P.type+"-pattern",d,m,x,O);if(V){var X="string"===typeof V?xa(V,o):V.toString();if(l&&i&&i[X]){++E,B=L[E],B&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new h["default"]({fill:new a["default"]}),L[E]=B),N=B.getFill(),B.setZIndex(U);var W=X+"."+D,H=b[W];if(!H){var Y=i[X],q=Uo(Y.width,Y.height),K=q.getContext("2d");K.globalAlpha=D,K.drawImage(l,Y.x,Y.y,Y.width,Y.height,0,0,Y.width,Y.height),H=K.createPattern(q,"repeat"),b[W]=H}N.setColor(H)}}}else F=_a(ga(P,"paint",P.type+"-color",d,m,x,O),D),P.type+"-outline-color"in I&&(z=_a(ga(P,"paint",P.type+"-outline-color",d,m,x,O),D)),z||(z=F),(F||z)&&(++E,B=L[E],(!B||F&&!B.getFill()||!F&&B.getFill()||z&&!B.getStroke()||!z&&B.getStroke()||B.getText())&&(B=new h["default"]({fill:F?new a["default"]:void 0,stroke:z?new c["default"]:void 0}),L[E]=B),F&&(N=B.getFill(),N.setColor(F)),z&&(G=B.getStroke(),G.setColor(z),G.setWidth(.5)),B.setZIndex(U));if(1!=y&&"line"==P.type){F=!("line-pattern"in I)&&"line-color"in I?_a(ga(P,"paint","line-color",d,m,x,O),ga(P,"paint","line-opacity",d,m,x,O)):void 0;var Z=ga(P,"paint","line-width",d,m,x,O);F&&Z>0&&(++E,B=L[E],B&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new h["default"]({stroke:new c["default"]}),L[E]=B),G=B.getStroke(),G.setLineCap(ga(P,"layout","line-cap",d,m,x,O)),G.setLineJoin(ga(P,"layout","line-join",d,m,x,O)),G.setMiterLimit(ga(P,"layout","line-miter-limit",d,m,x,O)),G.setColor(F),G.setWidth(Z),G.setLineDash(I["line-dasharray"]?ga(P,"paint","line-dasharray",d,m,x,O).map((function(t){return t*Z})):null),B.setZIndex(U))}var J=!1,$=null,Q=0,tt=void 0,et=void 0,rt=void 0;if((1==y||2==y)&&"icon-image"in R){var nt=ga(P,"layout","icon-image",d,m,x,O);if(nt){tt="string"===typeof nt?xa(nt,o):nt.toString();var it=void 0;if(l&&i&&i[tt]){var ot=ga(P,"layout","icon-rotation-alignment",d,m,x,O);if(2==y){var at=e.getGeometry();if(at.getFlatMidpoint||at.getFlatMidpoints){var st=at.getExtent(),lt=Math.sqrt(Math.max(Math.pow((st[2]-st[0])/r,2),Math.pow((st[3]-st[1])/r,2)));if(lt>150){var ut="MultiLineString"===at.getType()?at.getFlatMidpoints():at.getFlatMidpoint();ua||(la=[NaN,NaN],ua=new ue("Point",la,[],{},null)),it=ua,la[0]=ut[0],la[1]=ut[1];var ct=ga(P,"layout","symbol-placement",d,m,x,O);if("line"===ct&&"map"===ot)for(var ht=at.getStride(),ft=at.getFlatCoordinates(),pt=0,dt=ft.length-ht;pt<dt;pt+=ht){var gt=ft[pt],yt=ft[pt+1],vt=ft[pt+ht],mt=ft[pt+ht+1],_t=Math.min(gt,vt),bt=Math.min(yt,mt),xt=Math.max(gt,vt),wt=Math.max(yt,mt);if(ut[0]>=_t&&ut[0]<=xt&&ut[1]>=bt&&ut[1]<=wt){Q=Math.atan2(yt-mt,vt-gt);break}}}}}if(2!==y||it){var Ot=ga(P,"layout","icon-size",d,m,x,O),Et=void 0!==I["icon-color"]?ga(P,"paint","icon-color",d,m,x,O):null;if(!Et||0!==Et.a){var St=tt+"."+Ot;if(null!==Et&&(St+="."+Et),et=_[St],!et){var Ct=i[tt],Tt=ya(P,d,m,x);et=new Ge["a"]({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:l,imgSize:u,size:[Ct.width,Ct.height],offset:[Ct.x,Ct.y],rotateWithView:"map"===ot,scale:Ot/Ct.pixelRatio,displacement:"icon-offset"in R?ga(P,"layout","icon-offset",d,m,x,O).map((function(t){return-t*Ct.pixelRatio})):void 0,declutterMode:Tt}),_[St]=et}}et&&(++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setGeometry(it),et.setRotation(Q+zo(ga(P,"layout","icon-rotate",d,m,x,O))),et.setOpacity(ga(P,"paint","icon-opacity",d,m,x,O)),et.setAnchor(ha[ga(P,"layout","icon-anchor",d,m,x,O)]),B.setImage(et),$=B.getText(),B.setText(void 0),B.setZIndex(U),J=!0,rt=!1)}else rt=!0}}}if(1==y&&"circle"===P.type){++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B);var Pt="circle-radius"in I?ga(P,"paint","circle-radius",d,m,x,O):5,jt=_a(ga(P,"paint","circle-stroke-color",d,m,x,O),ga(P,"paint","circle-stroke-opacity",d,m,x,O)),Rt=_a(ga(P,"paint","circle-color",d,m,x,O),ga(P,"paint","circle-opacity",d,m,x,O)),Mt=ga(P,"paint","circle-stroke-width",d,m,x,O),At=Pt+"."+jt+"."+Rt+"."+Mt;et=_[At],et||(et=new Ne["default"]({radius:Pt,stroke:jt&&Mt>0?new c["default"]({width:Mt,color:jt}):void 0,fill:Rt?new a["default"]({color:Rt}):void 0,declutterMode:"none"}),_[At]=et),B.setImage(et),$=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(U),J=!0}var Lt=void 0,It=void 0,kt=void 0,Ft=void 0,Dt=void 0,Nt=void 0;if("text-field"in R){Ft=Math.round(ga(P,"layout","text-size",d,m,x,O));var Gt=ga(P,"layout","text-font",d,m,x,O);kt=ga(P,"layout","text-line-height",d,m,x,O),It=Io(s?s(Gt):Gt,Ft,kt),It.includes("sans-serif")||(It+=",sans-serif"),Dt=ga(P,"layout","text-letter-spacing",d,m,x,O),Nt=ga(P,"layout","text-max-width",d,m,x,O);var zt=ga(P,"layout","text-field",d,m,x,O);Lt="object"===typeof zt&&zt.sections?1===zt.sections.length?zt.toString():zt.sections.reduce((function(t,e,r){var n=e.fontStack?e.fontStack.split(","):Gt,i=Io(s?s(n):n,Ft*(e.scale||1),kt),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=y){o=ea(o,i,Nt,Dt).split("\n");for(var a=0,l=o.length;a<l;++a)a>0&&t.push("\n",""),t.push(o[a],i);return t}t.push(Jo(o,Dt),i)}),[]):xa(zt,o).trim(),D=ga(P,"paint","text-opacity",d,m,x,O)}if(Lt&&D&&!rt){J||(++E,B=L[E],B&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setImage(void 0),B.setGeometry(void 0)),B.getText()||B.setText($||new f["a"]({padding:[2,2,2,2]})),$=B.getText();var Bt=R["text-transform"];"uppercase"==Bt?Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toUpperCase()})):Lt.toUpperCase():"lowercase"==Bt&&(Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toLowerCase()})):Lt.toLowerCase());var Ut=Array.isArray(Lt)?Lt:2==y?Jo(Lt,Dt):ea(Lt,It,Nt,Dt);$.setText(Ut),$.setFont(It),$.setRotation(zo(ga(P,"layout","text-rotate",d,m,x,O)));var Vt=ga(P,"layout","text-anchor",d,m,x,O),Xt=J||1==y?"point":ga(P,"layout","symbol-placement",d,m,x,O);$.setPlacement(Xt),$.setOverflow("point"===Xt);var Wt=ga(P,"paint","text-halo-width",d,m,x,O),Ht=ga(P,"layout","text-offset",d,m,x,O),Yt=ga(P,"paint","text-translate",d,m,x,O),qt=0,Kt=0;if("point"==Xt){var Zt="center";-1!==Vt.indexOf("left")?(Zt="left",Kt=Wt):-1!==Vt.indexOf("right")&&(Zt="right",Kt=-Wt),$.setTextAlign(Zt);var Jt=ga(P,"layout","text-rotation-alignment",d,m,x,O);$.setRotateWithView("map"==Jt)}else $.setMaxAngle(zo(ga(P,"layout","text-max-angle",d,m,x,O))*Lt.length/Ut.length),$.setTextAlign(),$.setRotateWithView(!1);var $t="middle";0==Vt.indexOf("bottom")?($t="bottom",qt=-Wt-.5*(kt-1)*Ft):0==Vt.indexOf("top")&&($t="top",qt=Wt+.5*(kt-1)*Ft),$.setTextBaseline($t),$.setOffsetX(Ht[0]*Ft+Kt+Yt[0]),$.setOffsetY(Ht[1]*Ft+qt+Yt[1]),A.setColor(_a(ga(P,"paint","text-color",d,m,x,O),D)),$.setFill(A);var Qt=_a(ga(P,"paint","text-halo-color",d,m,x,O),D);if(Qt){M.setColor(Qt),Wt*=2;var te=.5*Ft;M.setWidth(Wt<=te?Wt:te),$.setStroke(M)}else $.setStroke(void 0);var ee=ga(P,"layout","text-padding",d,m,x,O),re=$.getPadding();ee!==re[0]&&(re[0]=ee,re[1]=ee,re[2]=ee,re[3]=ee),B.setZIndex(U)}}}}return E>-1?(L.length=E+1,wa&&("function"===typeof e.set?e.set("mapbox-layer",g):e.getProperties()["mapbox-layer"]=g),L):void 0}};return t.setStyle(I),t.set("mapbox-source",g),t.set("mapbox-layers",m),t.set("mapbox-featurestate",{}),I}function Ea(t,e){if(!e.accessToken){e=Object.assign({},e);var r=new URL(t).searchParams;r.forEach((function(t,r){e.accessToken=t,e.accessTokenParam=r}))}return e}function Sa(t,e,r,n,i){var o,a,s;return void 0===r&&(r=""),void 0===n&&(n={}),void 0===i&&(i=void 0),"string"===typeof n?(o=n,s={}):(o=n.styleUrl,s=n),i||(i=s.resolutions),o||"string"!==typeof e||e.trim().startsWith("{")||(o=e),o&&(o=o.startsWith("data:")?location.href:No(o,s.accessToken),s=Ea(o,s)),new Promise((function(n,l){Ho(e,s).then((function(e){if(8!=e.version)return l(new Error("glStyle version 8 required."));if(!(t instanceof p["default"]||t instanceof Fe))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var u,c,h,f,d=t instanceof Fe?"vector":"geojson";if(r?a=Array.isArray(r)?e.layers.find((function(t){return t.id===r[0]})).source:r:(a=Object.keys(e.sources).find((function(t){return e.sources[t].type===d})),r=a),!a)return l(new Error("No "+d+" source found in the glStyle."));function g(){if(t instanceof Fe)return Ma(e.sources[a],o,s).then((function(e){var r=t.getSource();if(r?e!==r&&(r.setTileUrlFunction(e.getTileUrlFunction()),r.format_||(r.format_=e.format_),r.getAttributions()||r.setAttributions(e.getAttributions()),r.getTileLoadFunction()===De["b"]&&r.setTileLoadFunction(e.getTileLoadFunction()),Object(_["equivalent"])(r.getProjection(),e.getProjection())&&(r.tileGrid=e.getTileGrid())):t.setSource(e),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){var n=t.getSource().getTileGrid();t.setMaxResolution(n.getResolution(n.getMinZoom()))}}));var r=e.sources[a],n=t.getSource();n&&n.get("mapbox-source")===r||(n=La(r,o,s));var i=t.getSource();return i?n!==i&&(i.getAttributions()||i.setAttributions(n.getAttributions()),i.format_||(i.format_=n.getFormat()),i.url_=n.getUrl()):t.setSource(n),Promise.resolve()}function y(){f||e.sprite&&!c?f?(t.setStyle(f),g().then(n).catch(l)):l(new Error("Something went wrong trying to apply style.")):(f=Oa(t,e,r,i,c,h,sa),t.getStyle()?g().then(n).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(e.sprite){var v=new URL(Do(e.sprite,s.accessToken,o||location.href));u=window.devicePixelRatio>=1.5?.5:1;var m=.5==u?"@2x":"",b=v.origin+v.pathname+m+".json"+v.search;new Promise((function(t,e){Wo("Sprite",b,s).then(t).catch((function(r){b=v.origin+v.pathname+".json"+v.search,Wo("Sprite",b,s).then(t).catch(e)}))})).then((function(t){if(void 0===t&&l(new Error("No sprites found.")),c=t,h=v.origin+v.pathname+m+".png"+v.search,s.transformRequest){var e=s.transformRequest(h,"SpriteImage");e instanceof Request&&(h=encodeURI(e.url))}y()})).catch((function(t){l(new Error("Sprites cannot be loaded: "+b+": "+t.message))}))}else y()})).catch(l)}))}var Ca={};function Ta(t,e){var r={id:e.id,type:e.type},n={};function i(i){var o=e.layout||{},a=e.paint||{};r["paint"]=a;var s,l,u="function"===typeof t.getSource?t.getSource().getTileGrid().getZForResolution(i):t.getView().getZoom(),c="function"===typeof t.getTargetElement?t.getTargetElement():void 0;if(void 0!==a["background-color"]&&(s=ga(r,"paint","background-color",u,Ca,n),c&&(c.style.background=Qe.parse(s).toString())),void 0!==a["background-opacity"]&&(l=ga(r,"paint","background-opacity",u,Ca,n),c&&(c.style.opacity=l)),"none"!=o.visibility)return _a(s,l);c&&(c.style.backgroundColor="",c.style.opacity="")}if("function"===typeof t.getTargetElement)t.getTargetElement()&&i(),t.on(["change:resolution","change:target"],i);else{if("function"!==typeof t.setBackground)throw new Error("Unable to apply background.");t.setBackground(i)}}function Pa(t,e){e.layers.some((function(e){if("background"===e.type)return Ta(t,e),!0}))}function ja(t,e,r){return void 0===r&&(r={}),"object"===typeof e?(Pa(t,e),Promise.resolve()):Ho(e,r).then((function(e){Pa(t,e)}))}function Ra(t){var e=t.bounds;if(e){var r=Object(_["fromLonLat"])([e[0],e[1]]),n=Object(_["fromLonLat"])([e[2],e[3]]);return[r[0],r[1],n[0],n[1]]}}function Ma(t,e,r){return new Promise((function(n,i){qo(t,e,r).then((function(t){var e=new Ve["a"]({tileJSON:t}),r=e.getTileJSON(),i=e.getTileGrid(),o=Ra(r),a=r.minzoom||0,s=r.maxzoom||22,l={attributions:e.getAttributions(),format:new _e,tileGrid:new Ue["default"]({origin:i.getOrigin(0),extent:o||i.getExtent(),minZoom:a,resolutions:Bo.slice(0,s+1),tileSize:512})};Array.isArray(r.tiles)?l.urls=r.tiles:l.url=r.tiles,t.olSourceOptions&&Object.assign(l,t.olSourceOptions),n(new De["a"](l))})).catch(i)}))}var Aa=new Be["default"];function La(t,e,r){var n=t.data,i={};if("string"==typeof n){var o=Go(n,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(r.transformRequest){var a=r.transformRequest(o,"GeoJSON");a instanceof Request&&(o=encodeURI(a.url))}i.url=o}else i.features=Aa.readFeatures(n,{featureProjection:Object(_["getUserProjection"])()||"EPSG:3857"});var s=new d["default"](Object.assign({attributions:t.attribution,format:Aa},i));return s.set("mapbox-source",t),s}var Ia=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ka=function(t){function e(e){var r=t.call(this,Yt["a"].ERROR)||this;return r.error=e,r}return Ia(e,t),e}(Ht["a"]),Fa=function(t){function e(e){var r=this,n=!("declutter"in e)||e.declutter,i=new De["a"]({state:"loading",format:new _e});r=t.call(this,{source:i,background:e.background,declutter:n,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties})||this,e.accessToken&&(r.accessToken=e.accessToken);var o=e.styleUrl;return Sa(r,o,e.layers||e.source,{accessToken:r.accessToken}).then((function(){i.setState("ready")})).catch((function(t){r.dispatchEvent(new ka(t));var e=r.getSource();e.setState("error")})),void 0===r.getBackground()&&ja(r,e.styleUrl,{accessToken:r.accessToken}),r}return Ia(e,t),e}(Fe),Da=Fa,Na=r("39cf"),Ga=r("da2f"),za=r("ed9b"),Ba=r("869f"),Ua=r("25a5"),Va=r.n(Ua),Xa=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Wa=function(t){function e(e){var r=t.call(this,e)||this;return r.vectorRenderer_=new Ga["a"](e),r.layerImageRatio_=e.getImageRatio(),r.coordinateToVectorPixelTransform_=Object(at["c"])(),r.renderedPixelToCoordinateTransform_=null,r}return Xa(e,t),e.prototype.disposeInternal=function(){this.vectorRenderer_.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getFeatures=function(t){if(!this.vectorRenderer_)return new Promise((function(t){return t([])}));var e=Object(at["a"])(this.coordinateToVectorPixelTransform_,Object(at["a"])(this.renderedPixelToCoordinateTransform_,t.slice()));return this.vectorRenderer_.getFeatures(e)},e.prototype.handleFontsChanged=function(){this.vectorRenderer_.handleFontsChanged()},e.prototype.prepareFrame=function(t){var e=t.pixelRatio,r=t.viewState,n=r.resolution,i=t.viewHints,o=this.vectorRenderer_,a=t.extent;1!==this.layerImageRatio_&&(a=a.slice(0),Object(g["scaleFromCenter"])(a,this.layerImageRatio_));var s=Object(g["getWidth"])(a)/n,l=Object(g["getHeight"])(a)/n;if(!i[A["a"].ANIMATING]&&!i[A["a"].INTERACTING]&&!Object(g["isEmpty"])(a)){o.useContainer(null,null);var u=o.context,c=t.layerStatesArray[t.layerIndex];u.globalAlpha=c.opacity;var h=Object(y["a"])({},c,{opacity:1}),f=Object(y["a"])({},t,{declutterTree:new Va.a(9),extent:a,size:[s,l],viewState:Object(y["a"])({},t.viewState,{rotation:0}),layerStatesArray:[h],layerIndex:0}),p=!0,d=new za["a"](a,n,e,u.canvas,(function(t){o.prepareFrame(f)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(f,null)&&(o.renderDeclutter(f),p=!1),t())}));d.addEventListener(Yt["a"].CHANGE,function(){if(d.getState()===Ba["a"].LOADED){this.image_=p?null:d;var t=d.getResolution(),n=d.getPixelRatio(),i=t*e/n;this.renderedResolution=i,this.coordinateToVectorPixelTransform_=Object(at["b"])(this.coordinateToVectorPixelTransform_,s/2,l/2,1/i,-1/i,0,-r.center[0],-r.center[1])}}.bind(this)),d.load()}return this.image_&&(this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice()),!!this.image_},e.prototype.preRender=function(){},e.prototype.postRender=function(){},e.prototype.renderDeclutter=function(){},e.prototype.forEachFeatureAtCoordinate=function(e,r,n,i,o){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,r,n,i,o):t.prototype.forEachFeatureAtCoordinate.call(this,e,r,n,i,o)},e}(Na["a"]),Ha=Wa,Ya=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),qa=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);return delete i.imageRatio,r=t.call(this,i)||this,r.imageRatio_=void 0!==n.imageRatio?n.imageRatio:1,r}return Ya(e,t),e.prototype.getImageRatio=function(){return this.imageRatio_},e.prototype.createRenderer=function(){return new Ha(this)},e}(R["a"]),Ka=qa,Za=function(){function t(t,e){this.name=t,this.data=e,this.texture_=null}return t.prototype.getTexture=function(t){if(!this.texture_){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.data.length/4,1,0,t.RGBA,t.UNSIGNED_BYTE,this.data),this.texture_=e}return this.texture_},t}(),Ja=Za,$a=r("5116"),Qa=r("dc07"),ts=r("e134"),es=r("0ec0"),rs=r("7f98"),ns=r("2efc"),is=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function os(t,e,r){var n=r?t.LINEAR:t.NEAREST;t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n)}function as(t,e,r,n){os(t,e,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r)}function ss(t,e,r,n,i,o){var a,s,l=t.getGL();if(r instanceof Float32Array){a=l.FLOAT,t.getExtension("OES_texture_float");var u=t.getExtension("OES_texture_float_linear");s=null!==u}else a=l.UNSIGNED_BYTE,s=!0;os(l,e,o&&s);var c,h=r.byteLength/n[1],f=1;switch(h%8===0?f=8:h%4===0?f=4:h%2===0&&(f=2),i){case 1:c=l.LUMINANCE;break;case 2:c=l.LUMINANCE_ALPHA;break;case 3:c=l.RGB;break;case 4:c=l.RGBA;break;default:throw new Error("Unsupported number of bands: ".concat(i))}var p=l.getParameter(l.UNPACK_ALIGNMENT);l.pixelStorei(l.UNPACK_ALIGNMENT,f),l.texImage2D(l.TEXTURE_2D,0,c,n[0],n[1],0,c,a,r),l.pixelStorei(l.UNPACK_ALIGNMENT,p)}var ls=null;function us(){var t=document.createElement("canvas");t.width=1,t.height=1,ls=t.getContext("2d")}var cs=function(t){function e(e){var r=t.call(this)||this;r.tile,r.textures=[],r.handleTileChange_=r.handleTileChange_.bind(r),r.renderSize_=Object(Te["d"])(e.grid.getTileSize(e.tile.tileCoord[0])),r.gutter_=e.gutter||0,r.bandCount=NaN,r.helper_=e.helper;var n=new K(I,D);return n.fromArray([0,1,1,1,1,0,0,0]),r.helper_.flushBufferData(n),r.coords=n,r.setTile(e.tile),r}return is(e,t),e.prototype.setTile=function(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(Yt["a"].CHANGE,this.handleTileChange_),this.tile=t,this.textures.length=0,this.loaded=t.getState()===Oe["a"].LOADED,this.loaded)this.uploadTile_();else{if(t instanceof rs["a"]){var e=t.getImage();e instanceof Image&&!e.crossOrigin&&(e.crossOrigin="anonymous")}t.addEventListener(Yt["a"].CHANGE,this.handleTileChange_)}},e.prototype.uploadTile_=function(){var t=this.helper_,e=t.getGL(),r=this.tile;if(r instanceof rs["a"]||r instanceof ns["a"]){var n=e.createTexture();return this.textures.push(n),this.bandCount=4,void as(e,n,r.getImage(),r.interpolate)}var i=r.getSize(),o=[i[0]+2*this.gutter_,i[1]+2*this.gutter_],a=r.getData(),s=a instanceof Float32Array,l=o[0]*o[1],u=s?Float32Array:Uint8Array,c=u.BYTES_PER_ELEMENT,h=a.byteLength/o[1];this.bandCount=Math.floor(h/c/o[0]);var f=Math.ceil(this.bandCount/4);if(1===f){n=e.createTexture();return this.textures.push(n),void ss(t,n,a,o,this.bandCount,r.interpolate)}for(var p=new Array(f),d=0;d<f;++d){n=e.createTexture();this.textures.push(n);var g=d<f-1?4:this.bandCount%4;p[d]=new u(l*g)}for(var y=0,v=0,m=o[0]*this.bandCount,_=0;_<o[1];++_){for(var b=0;b<m;++b){var x=a[v+b],w=Math.floor(y/this.bandCount),O=b%this.bandCount,E=(d=Math.floor(O/4),p[d]),S=(g=E.length/l,O%4);E[w*g+S]=x,++y}v+=h/c}for(d=0;d<f;++d){n=this.textures[d],E=p[d],g=E.length/l;ss(t,n,E,o,g,r.interpolate)}},e.prototype.handleTileChange_=function(){this.tile.getState()===Oe["a"].LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(Yt["a"].CHANGE))},e.prototype.disposeInternal=function(){var t=this.helper_.getGL();this.helper_.deleteBuffer(this.coords);for(var e=0;e<this.textures.length;++e)t.deleteTexture(this.textures[e]);this.tile.removeEventListener(Yt["a"].CHANGE,this.handleTileChange_)},e.prototype.getPixelData=function(t,e){if(!this.loaded)return null;var r=this.renderSize_[0],n=this.renderSize_[1],i=this.gutter_;if(this.tile instanceof ts["a"]){var o=this.tile.getSize(),a=o[0],s=o[1],l=a+2*i,u=s+2*i,c=i+Math.floor(a*(t/r)),h=i+Math.floor(s*(e/n)),f=this.tile.getData();if(f instanceof DataView){var p=f.byteLength/(l*u),d=p*(h*l+c),g=f.buffer.slice(d,d+p);return new DataView(g)}var y=this.bandCount*(h*l+c);return f.slice(y,y+this.bandCount)}ls||us(),ls.clearRect(0,0,1,1);var v,m=this.tile.getImage(),_=m.width,b=m.height,x=_-2*i,w=b-2*i,O=i+Math.floor(x*(t/r)),E=i+Math.floor(w*(e/n));try{ls.drawImage(m,O,E,1,1,0,0,1,1),v=ls.getImageData(0,0,1,1).data}catch(S){return ls=null,null}return v},e}(es["a"]),hs=cs,fs=r("2c30"),ps=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ds={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},gs={TEXTURE_COORD:"a_textureCoord"},ys=[{name:gs.TEXTURE_COORD,size:2,type:ht.FLOAT}],vs={};function ms(t){return 2*(1-1/(t+1))-1}function _s(t,e,r){r in t||(t[r]=[]),t[r].push(e)}function bs(t,e){var r=t.layerStatesArray[t.layerIndex];r.extent&&(e=Object(g["getIntersection"])(e,Object(_["fromUserExtent"])(r.extent,t.viewState.projection)));var n=r.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(t.viewState.projection).getExtent();i&&(e=Object(g["getIntersection"])(e,i))}return e}function xs(t,e){return"".concat(t.getKey(),",").concat(Object(fs["d"])(e))}var ws=function(t){function e(e,r){var n=t.call(this,e,{uniforms:r.uniforms})||this;n.renderComplete=!1,n.tileTransform_=Object(at["c"])(),n.tempMat4_=st(),n.tempTileRange_=new Qa["b"](0,0,0,0),n.tempTileCoord_=Object(fs["a"])(0,0,0),n.tempSize_=[0,0],n.program_,n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.indices_=new K(k,D),n.indices_.fromArray([0,1,3,1,2,3]);var i=void 0!==r.cacheSize?r.cacheSize:512;return n.tileTextureCache_=new $a["a"](i),n.paletteTextures_=r.paletteTextures||[],n.frameState_=null,n}return ps(e,t),e.prototype.reset=function(e){t.prototype.reset.call(this,{uniforms:e.uniforms}),this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.paletteTextures_=e.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==Oe["a"].LOADED||r==Oe["a"].EMPTY||r==Oe["a"].ERROR&&!n},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getRenderSource();return!!r&&(!Object(g["isEmpty"])(bs(t,t.extent))&&"ready"===r.getState())},e.prototype.enqueueTiles=function(t,e,r,n){var i=t.viewState,o=this.getLayer(),a=o.getRenderSource(),s=a.getTileGridForProjection(i.projection),l=a.getGutterForProjection(i.projection),u=Object(et["c"])(a);u in t.wantedTiles||(t.wantedTiles[u]={});for(var c=t.wantedTiles[u],h=this.tileTextureCache_,f=Math.max(r-o.getPreload(),s.getMinZoom(),o.getMinZoom()),p=r;p>=f;--p)for(var d=s.getTileRangeForExtentAndZ(e,p,this.tempTileRange_),g=s.getResolution(p),y=d.minX;y<=d.maxX;++y)for(var v=d.minY;v<=d.maxY;++v){var m=Object(fs["a"])(p,y,v,this.tempTileCoord_),_=xs(a,m),b=void 0,x=void 0;if(h.containsKey(_)&&(b=h.get(_),x=b.tile),!b||b.tile.key!==a.getKey())if(x=a.getTile(p,y,v,t.pixelRatio,i.projection),b)if(this.isDrawableTile_(x))b.setTile(x);else{var w=x.getInterimTile();b.setTile(w)}else b=new hs({tile:x,grid:s,helper:this.helper,gutter:l}),h.set(_,b);_s(n,b,p);var O=x.getKey();c[O]=!0,x.getState()===Oe["a"].IDLE&&(t.tileQueue.isKeyQueued(O)||t.tileQueue.enqueue([x,u,s.getTileCoordCenter(m),g]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var e=this.helper.getGL();this.preRender(e,t);var r=t.viewState,n=this.getLayer(),i=n.getRenderSource(),o=i.getTileGridForProjection(r.projection),a=i.getGutterForProjection(r.projection),s=bs(t,t.extent),l=o.getZForResolution(r.resolution,i.zDirection),u={};if(t.nextExtent){var c=o.getZForResolution(r.nextResolution,i.zDirection),h=bs(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,s,l,u);for(var f={},p=Object(et["c"])(this),d=t.time,y=!1,v=u[l],m=0,_=v.length;m<_;++m){var b=v[m],x=b.tile,w=x.tileCoord;if(b.loaded){var O=x.getAlpha(p,d);if(1===O){x.endTransition(p);continue}y=!0;var E=Object(fs["d"])(w);f[E]=O}this.renderComplete=!1;var S=this.findAltTiles_(o,w,l+1,u);if(!S)for(var C=o.getMinZoom(),T=l-1;T>=C;--T){var P=this.findAltTiles_(o,w,T,u);if(P)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!y);for(var j=Object.keys(u).map(Number).sort(Pt["i"]),R=r.center[0],M=r.center[1],A=0,L=j.length;A<L;++A){var I=j[A],k=o.getResolution(I),F=Object(Te["d"])(o.getTileSize(I),this.tempSize_),D=o.getOrigin(I),N=F[0]+2*a,G=F[1]+2*a,z=N/G,B=(R-D[0])/(F[0]*k),U=(D[1]-M)/(F[1]*k),V=r.resolution/k,X=ms(I),W=u[I];for(m=0,_=W.length;m<_;++m){b=W[m];if(b.loaded){x=b.tile,w=x.tileCoord,E=Object(fs["d"])(w);var H=w[1],Y=w[2];Object(at["g"])(this.tileTransform_),Object(at["i"])(this.tileTransform_,2/(t.size[0]*V/N),-2/(t.size[1]*V/N)),Object(at["h"])(this.tileTransform_,r.rotation),Object(at["i"])(this.tileTransform_,1,1/z),Object(at["l"])(this.tileTransform_,(F[0]*(H-B)-a)/N,(F[1]*(Y-U)-a)/G),this.helper.setUniformMatrixValue(ds.TILE_TRANSFORM,lt(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(b.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(ys);var q=0;while(q<b.textures.length){var K="TEXTURE"+q,Z="".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(q,"]");e.activeTexture(e[K]),e.bindTexture(e.TEXTURE_2D,b.textures[q]),e.uniform1i(this.helper.getUniformLocation(Z),q),++q}for(var J=0;J<this.paletteTextures_.length;++J){var $=this.paletteTextures_[J];e.activeTexture(e["TEXTURE"+q]);var Q=$.getTexture(e);e.bindTexture(e.TEXTURE_2D,Q),e.uniform1i(this.helper.getUniformLocation($.name),q),++q}O=E in f?f[E]:1;O<1&&(t.animate=!0),this.helper.setUniformFloatValue(ds.TRANSITION_ALPHA,O),this.helper.setUniformFloatValue(ds.DEPTH,X),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_WIDTH,N),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_HEIGHT,G),this.helper.setUniformFloatValue(ds.TEXTURE_RESOLUTION,k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_X,D[0]+H*F[0]*k-a*k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_Y,D[1]-Y*F[1]*k+a*k);var tt=s;a>0&&(tt=o.getTileCoordExtent(w),Object(g["getIntersection"])(tt,s,tt)),this.helper.setUniformFloatVec4(ds.RENDER_EXTENT,tt),this.helper.setUniformFloatValue(ds.RESOLUTION,r.resolution),this.helper.setUniformFloatValue(ds.ZOOM,r.zoom),this.helper.drawElements(0,this.indices_.getSize())}}}this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var rt=this.helper.getCanvas(),nt=this.tileTextureCache_;while(nt.canExpireCache()){b=nt.pop();b.dispose()}var it=function(t,e){i.expireCache(e.viewState.projection,vs)};return t.postRenderFunctions.push(it),this.postRender(e,t),rt},e.prototype.getData=function(t){var e=this.helper.getGL();if(!e)return null;var r=this.frameState_;if(!r)return null;var n=this.getLayer(),i=Object(at["a"])(r.pixelToCoordinateTransform,t.slice()),o=r.viewState,a=n.getExtent();if(a&&!Object(g["containsCoordinate"])(Object(_["fromUserExtent"])(a,o.projection),i))return null;var s,l,u,c=n.getSources(Object(g["boundingExtent"])([i]),o.resolution);for(s=c.length-1;s>=0;--s)if(l=c[s],"ready"===l.getState()){if(u=l.getTileGridForProjection(o.projection),l.getWrapX())break;var h=u.getExtent();if(!h||Object(g["containsCoordinate"])(h,i))break}if(s<0)return null;for(var f=this.tileTextureCache_,p=u.getZForResolution(o.resolution);p>=u.getMinZoom();--p){var d=u.getTileCoordForCoordAndZ(i,p),y=xs(l,d);if(f.containsKey(y)){var v=f.get(y);if(v.loaded){var m=u.getOrigin(p),b=Object(Te["d"])(u.getTileSize(p)),x=u.getResolution(p),w=(i[0]-m[0])/x-d[1]*b[0],O=(m[1]-i[1])/x-d[2]*b[1];return v.getPixelData(w,O)}}}return null},e.prototype.findAltTiles_=function(t,e,r,n){var i=t.getTileRangeForTileCoordAndZ(e,r,this.tempTileRange_);if(!i)return!1;for(var o=!0,a=this.tileTextureCache_,s=this.getLayer().getRenderSource(),l=i.minX;l<=i.maxX;++l)for(var u=i.minY;u<=i.maxY;++u){var c=xs(s,[r,l,u]),h=!1;if(a.containsKey(c)){var f=a.get(c);f.loaded&&(_s(n,f,r),h=!0)}h||(o=!1)}return o},e.prototype.removeHelper=function(){if(this.helper){var e=this.tileTextureCache_;e.forEach((function(t){return t.dispose()})),e.clear()}t.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var e=this.helper;if(e){var r=e.getGL();r.deleteProgram(this.program_),delete this.program_,e.deleteBuffer(this.indices_)}t.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(Tt),Os=ws,Es=r("5c38"),Ss={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},Cs={};function Ts(t){if("number"===typeof t)return Ss.NUMBER;if("boolean"===typeof t)return Ss.BOOLEAN;if("string"===typeof t)return Object(Es["d"])(t)?Ss.COLOR|Ss.STRING:Ss.STRING;if(!Array.isArray(t))throw new Error("Unhandled value type: ".concat(JSON.stringify(t)));var e=t,r=e.every((function(t){return"number"===typeof t}));if(r)return 3===e.length||4===e.length?Ss.COLOR|Ss.NUMBER_ARRAY:Ss.NUMBER_ARRAY;if("string"!==typeof e[0])throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=Cs[e[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function Ps(t){return Object(v["f"])(t)%1===0}function js(t){var e=t.toString();return-1===e.indexOf(".")?e+".0":e}function Rs(t){if(t.length<2||t.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(t.length,"(").concat(t.map(js).join(", "),")")}function Ms(t){var e=Object(Es["a"])(t).slice();return e.length<4&&e.push(1),Rs(e.map((function(t,e){return e<3?t/255:t})))}function As(t,e){return void 0===t.stringLiteralsMap[e]&&(t.stringLiteralsMap[e]=Object.keys(t.stringLiteralsMap).length),t.stringLiteralsMap[e]}function Ls(t,e){return js(As(t,e))}function Is(t,e,r){if(Array.isArray(e)&&"string"===typeof e[0]){var n=Cs[e[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(t,e.slice(1),r)}var i=Ts(e);if((i&Ss.NUMBER)>0)return js(e);if((i&Ss.BOOLEAN)>0)return e.toString();if((i&Ss.STRING)>0&&(void 0===r||r==Ss.STRING))return Ls(t,e.toString());if((i&Ss.COLOR)>0&&(void 0===r||r==Ss.COLOR))return Ms(e);if((i&Ss.NUMBER_ARRAY)>0)return Rs(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(r,")"))}function ks(t){if(!(Ts(t)&Ss.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(t)," instead"))}function Fs(t){for(var e=0;e<t.length;e++)ks(t[e])}function Ds(t){if(!(Ts(t)&Ss.STRING))throw new Error("A string value was expected, got ".concat(JSON.stringify(t)," instead"))}function Ns(t){if(!(Ts(t)&Ss.BOOLEAN))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(t)," instead"))}function Gs(t,e){if(t.length!==e)throw new Error("Exactly ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function zs(t,e){if(t.length<e)throw new Error("At least ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function Bs(t,e){if(t.length>e)throw new Error("At most ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function Us(t){if(t.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(t," instead"))}function Vs(t){if(t.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(t," instead"))}function Xs(t,e){if(!Ps(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(t)))}function Ws(t){return"u_var_"+t}Cs["get"]={getReturnType:function(t){return Ss.ANY},toGlsl:function(t,e){Gs(e,1),Ds(e[0]);var r=e[0].toString();-1===t.attributes.indexOf(r)&&t.attributes.push(r);var n=t.inFragmentShader?"v_":"a_";return n+r}},Cs["var"]={getReturnType:function(t){return Ss.ANY},toGlsl:function(t,e){Gs(e,1),Ds(e[0]);var r=e[0].toString();return-1===t.variables.indexOf(r)&&t.variables.push(r),Ws(r)}};var Hs="u_paletteTextures";Cs["palette"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){Gs(e,2),ks(e[0]);var r=Is(t,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,o=new Uint8Array(4*i),a=0;a<i;a++){var s=n[a],l=void 0;if("string"===typeof s)l=Object(Es["c"])(s);else{if(!Array.isArray(s))throw new Error("The second argument of palette must be an array of strings or colors");var u=s.length;if(4===u)l=s;else{if(3!==u)throw new Error("Expected palette color to have 3 or 4 values, got ".concat(u));l=[s[0],s[1],s[2],1]}}var c=4*a;o[c]=l[0],o[c+1]=l[1],o[c+2]=l[2],o[c+3]=255*l[3]}t.paletteTextures||(t.paletteTextures=[]);var h="".concat(Hs,"[").concat(t.paletteTextures.length,"]"),f=new Ja(h,o);return t.paletteTextures.push(f),"texture2D(".concat(h,", vec2((").concat(r," + 0.5) / ").concat(i,".0, 0.5))")}};var Ys="getBandValue";function qs(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){Gs(r,2);for(var n=Ss.ANY,i=0;i<r.length;i++)n&=Ts(r[i]);if(n===Ss.NONE)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(r)," instead"));return n&=~Ss.COLOR,"(".concat(Is(e,r[0],n)," ").concat(t," ").concat(Is(e,r[1],n),")")}}}function Ks(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){zs(r,2);for(var n=0;n<r.length;n++)Ns(r[n]);var i="";return i=r.map((function(t){return Is(e,t)})).join(" ".concat(t," ")),i="(".concat(i,")"),i}}}Cs["band"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){zs(e,1),Bs(e,3);var r=e[0];if(!(Ys in t.functions)){for(var n="",i=t.bandCount||1,o=0;o<i;o++){var a=Math.floor(o/4),s=o%4;s===i-1&&1===s&&(s=3);var l="".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(a,"]");n+="\n if (band == ".concat(o+1,".0) {\n return texture2D(").concat(l,", v_textureCoord + vec2(dx, dy))[").concat(s,"];\n }\n ")}t.functions[Ys]="\n float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ".concat(ds.TEXTURE_PIXEL_WIDTH,";\n float dy = yOffset / ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n ").concat(n,"\n }\n ")}var u=Is(t,r),c=Is(t,e[1]||0),h=Is(t,e[2]||0);return"".concat(Ys,"(").concat(u,", ").concat(c,", ").concat(h,")")}},Cs["time"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,0),"u_time"}},Cs["zoom"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,0),"u_zoom"}},Cs["resolution"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,0),"u_resolution"}},Cs["*"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," * ").concat(Is(t,e[1]),")")}},Cs["/"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," / ").concat(Is(t,e[1]),")")}},Cs["+"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," + ").concat(Is(t,e[1]),")")}},Cs["-"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," - ").concat(Is(t,e[1]),")")}},Cs["clamp"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){Gs(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]);return"clamp(".concat(Is(t,e[0]),", ").concat(r,", ").concat(n,")")}},Cs["%"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"mod(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["^"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,2),Fs(e),"pow(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["abs"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"abs(".concat(Is(t,e[0]),")")}},Cs["floor"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"floor(".concat(Is(t,e[0]),")")}},Cs["round"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"floor(".concat(Is(t,e[0])," + 0.5)")}},Cs["ceil"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"ceil(".concat(Is(t,e[0]),")")}},Cs["sin"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"sin(".concat(Is(t,e[0]),")")}},Cs["cos"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Gs(e,1),Fs(e),"cos(".concat(Is(t,e[0]),")")}},Cs["atan"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return zs(e,1),Bs(e,2),Fs(e),2===e.length?"atan(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")"):"atan(".concat(Is(t,e[0]),")")}},Cs[">"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," > ").concat(Is(t,e[1]),")")}},Cs[">="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," >= ").concat(Is(t,e[1]),")")}},Cs["<"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," < ").concat(Is(t,e[1]),")")}},Cs["<="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,2),Fs(e),"(".concat(Is(t,e[0])," <= ").concat(Is(t,e[1]),")")}},Cs["=="]=qs("=="),Cs["!="]=qs("!="),Cs["!"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Gs(e,1),Ns(e[0]),"(!".concat(Is(t,e[0]),")")}},Cs["all"]=Ks("&&"),Cs["any"]=Ks("||"),Cs["between"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){Gs(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]),i=Is(t,e[0]);return"(".concat(i," >= ").concat(r," && ").concat(i," <= ").concat(n,")")}},Cs["array"]={getReturnType:function(t){return Ss.NUMBER_ARRAY},toGlsl:function(t,e){zs(e,2),Bs(e,4),Fs(e);var r=e.map((function(e){return Is(t,e,Ss.NUMBER)}));return"vec".concat(e.length,"(").concat(r.join(", "),")")}},Cs["color"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){zs(e,3),Bs(e,4),Fs(e);var r=e;3===e.length&&r.push(1);var n=e.map((function(e,r){return Is(t,e,Ss.NUMBER)+(r<3?" / 255.0":"")}));return"vec".concat(e.length,"(").concat(n.join(", "),")")}},Cs["interpolate"]={getReturnType:function(t){for(var e=Ss.COLOR|Ss.NUMBER,r=3;r<t.length;r+=2)e&=Ts(t[r]);return e},toGlsl:function(t,e,r){Us(e),zs(e,6);var n,i=e[0];switch(i[0]){case"linear":n=1;break;case"exponential":n=i[1];break;default:n=null}if(!n)throw new Error('Invalid interpolation type for "interpolate" operator, received: '.concat(JSON.stringify(i)));var o=void 0!==r?r:Ss.ANY,a=Cs["interpolate"].getReturnType(e)&o;Xs(e,a);for(var s=Is(t,e[1]),l=js(n),u="",c=2;c<e.length-2;c+=2){var h=Is(t,e[c]),f=u||Is(t,e[c+1],a),p=Is(t,e[c+2]),d=Is(t,e[c+3],a);u="mix(".concat(f,", ").concat(d,", pow(clamp((").concat(s," - ").concat(h,") / (").concat(p," - ").concat(h,"), 0.0, 1.0), ").concat(l,"))")}return u}},Cs["match"]={getReturnType:function(t){for(var e=Ss.ANY,r=2;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Us(e),zs(e,4);var n=void 0!==r?r:Ss.ANY,i=Cs["match"].getReturnType(e)&n;Xs(e,i);for(var o=Is(t,e[0]),a=Is(t,e[e.length-1],i),s=null,l=e.length-3;l>=1;l-=2){var u=Is(t,e[l]),c=Is(t,e[l+1],i);s="(".concat(o," == ").concat(u," ? ").concat(c," : ").concat(s||a,")")}return s}},Cs["case"]={getReturnType:function(t){for(var e=Ss.ANY,r=1;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Vs(e),zs(e,3);var n=void 0!==r?r:Ss.ANY,i=Cs["case"].getReturnType(e)&n;Xs(e,i);for(var o=0;o<e.length-1;o+=2)Ns(e[o]);var a=Is(t,e[e.length-1],i),s=null;for(o=e.length-3;o>=0;o-=2){var l=Is(t,e[o]),u=Is(t,e[o+1],i);s="(".concat(l," ? ").concat(u," : ").concat(s||a,")")}return s}};var Zs=function(){function t(){this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.rotationExpression="0.0",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}return t.prototype.addUniform=function(t){return this.uniforms.push(t),this},t.prototype.addAttribute=function(t){return this.attributes.push(t),this},t.prototype.addVarying=function(t,e,r){return this.varyings.push({name:t,type:e,expression:r}),this},t.prototype.setSizeExpression=function(t){return this.sizeExpression=t,this},t.prototype.setRotationExpression=function(t){return this.rotationExpression=t,this},t.prototype.setSymbolOffsetExpression=function(t){return this.offsetExpression=t,this},t.prototype.setColorExpression=function(t){return this.colorExpression=t,this},t.prototype.setTextureCoordinateExpression=function(t){return this.texCoordExpression=t,this},t.prototype.setFragmentDiscardExpression=function(t){return this.discardExpression=t,this},t.prototype.setSymbolRotateWithView=function(t){return this.rotateWithView=t,this},t.prototype.getSizeExpression=function(){return this.sizeExpression},t.prototype.getOffsetExpression=function(){return this.offsetExpression},t.prototype.getColorExpression=function(){return this.colorExpression},t.prototype.getTextureCoordinateExpression=function(){return this.texCoordExpression},t.prototype.getFragmentDiscardExpression=function(){return this.discardExpression},t.prototype.getSymbolVertexShader=function(t){var e=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",r=this.attributes,n=this.varyings;return t&&(r=r.concat("vec4 a_hitColor"),n=n.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(t){return"uniform "+t+";"})).join("\n"),"\nattribute vec2 a_position;\nattribute float a_index;\n").concat(r.map((function(t){return"attribute "+t+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(n.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n"),"\nvoid main(void) {\n mat4 offsetMatrix = ").concat(e,";\n vec2 halfSize = ").concat(this.sizeExpression," * 0.5;\n vec2 offset = ").concat(this.offsetExpression,";\n float angle = ").concat(this.rotationExpression,";\n float offsetX;\n float offsetY;\n if (a_index == 0.0) {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n } else if (a_index == 1.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else if (a_index == 2.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n }\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n vec4 texCoord = ").concat(this.texCoordExpression,";\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;\n v_quadCoord = vec2(u, v);\n").concat(n.map((function(t){return" "+t.name+" = "+t.expression+";"})).join("\n"),"\n}")},t.prototype.getSymbolFragmentShader=function(t){var e=t?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",r=this.varyings;return t&&(r=r.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(t){return"uniform "+t+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(r.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n"),"\nvoid main(void) {\n if (").concat(this.discardExpression,") { discard; }\n gl_FragColor = ").concat(this.colorExpression,";\n gl_FragColor.rgb *= gl_FragColor.a;\n").concat(e,"\n}")},t}();function Js(t){var e=t.symbol,r=void 0!==e.size?e.size:1,n=e.color||"white",i=e.textureCoord||[0,0,1,1],o=e.offset||[0,0],a=void 0!==e.opacity?e.opacity:1,s=void 0!==e.rotation?e.rotation:0,l={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},u=Is(l,r,Ss.NUMBER_ARRAY|Ss.NUMBER),c=Is(l,o,Ss.NUMBER_ARRAY),h=Is(l,i,Ss.NUMBER_ARRAY),f=Is(l,s,Ss.NUMBER),p={inFragmentShader:!0,variables:l.variables,attributes:[],stringLiteralsMap:l.stringLiteralsMap,functions:{}},d=Is(p,n,Ss.COLOR),g=Is(p,a,Ss.NUMBER),y="1.0",v="vec2(".concat(Is(p,r,Ss.NUMBER_ARRAY|Ss.NUMBER),").x");switch(e.symbolType){case"square":break;case"image":break;case"circle":y="(1.0-smoothstep(1.-4./".concat(v,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var m="(v_quadCoord*2.-1.)",_="(atan(".concat(m,".x,").concat(m,".y))");y="(1.0-smoothstep(.5-3./".concat(v,",.5,cos(floor(.5+").concat(_,"/2.094395102)*2.094395102-").concat(_,")*length(").concat(m,")))");break;default:throw new Error("Unexpected symbol type: "+e.symbolType)}var b=(new Zs).setSizeExpression("vec2(".concat(u,")")).setRotationExpression(f).setSymbolOffsetExpression(c).setTextureCoordinateExpression(h).setSymbolRotateWithView(!!e.rotateWithView).setColorExpression("vec4(".concat(d,".rgb, ").concat(d,".a * ").concat(g," * ").concat(y,")"));if(t.filter){var x=Is(p,t.filter,Ss.BOOLEAN);b.setFragmentDiscardExpression("!".concat(x))}var w={};if(p.variables.forEach((function(e){var r=Ws(e);b.addUniform("float ".concat(r)),w[r]=function(){if(!t.variables||void 0===t.variables[e])throw new Error("The following variable is missing from the style: ".concat(e));var r=t.variables[e];return"string"===typeof r&&(r=As(l,r)),void 0!==r?r:-9999999}})),"image"===e.symbolType&&e.src){var O=new Image;O.crossOrigin=void 0===e.crossOrigin?"anonymous":e.crossOrigin,O.src=e.src,b.addUniform("sampler2D u_texture").setColorExpression(b.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),w["u_texture"]=O}return p.attributes.forEach((function(t){-1===l.attributes.indexOf(t)&&l.attributes.push(t),b.addVarying("v_".concat(t),"float","a_".concat(t))})),l.attributes.forEach((function(t){b.addAttribute("float a_".concat(t))})),{builder:b,attributes:l.attributes.map((function(t){return{name:t,callback:function(e,r){var n=r[t];return"string"===typeof n&&(n=As(l,n)),void 0!==n?n:-9999999}}})),uniforms:w}}var $s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qs=function(t){function e(e){var r=this,n=Object(y["a"])({},e);return r=t.call(this,n)||this,r.parseResult_=Js(e.style),r.styleVariables_=e.style.variables||{},r.hitDetectionDisabled_=!!e.disableHitDetection,r}return $s(e,t),e.prototype.createRenderer=function(){return new Ft(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},e.prototype.updateStyleVariables=function(t){Object(y["a"])(this.styleVariables_,t),this.changed()},e}(Wt["a"]),tl=Qs,el=r("2300"),rl=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function nl(t,e){var r="\n attribute vec2 ".concat(gs.TEXTURE_COORD,";\n uniform mat4 ").concat(ds.TILE_TRANSFORM,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.TEXTURE_RESOLUTION,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_X,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_Y,";\n uniform float ").concat(ds.DEPTH,";\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ").concat(gs.TEXTURE_COORD,";\n v_mapCoord = vec2(\n ").concat(ds.TEXTURE_ORIGIN_X," + ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_WIDTH," * v_textureCoord[0],\n ").concat(ds.TEXTURE_ORIGIN_Y," - ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_HEIGHT," * v_textureCoord[1]\n );\n gl_Position = ").concat(ds.TILE_TRANSFORM," * vec4(").concat(gs.TEXTURE_COORD,", ").concat(ds.DEPTH,", 1.0);\n }\n "),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:e},i=[];if(void 0!==t.color){var o=Is(n,t.color,Ss.COLOR);i.push("color = ".concat(o,";"))}if(void 0!==t.contrast){var a=Is(n,t.contrast,Ss.NUMBER);i.push("color.rgb = clamp((".concat(a," + 1.0) * color.rgb - (").concat(a," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==t.exposure){var s=Is(n,t.exposure,Ss.NUMBER);i.push("color.rgb = clamp((".concat(s," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==t.saturation){var l=Is(n,t.saturation,Ss.NUMBER);i.push("\n float saturation = ".concat(l," + 1.0;\n float sr = (1.0 - saturation) * 0.2126;\n float sg = (1.0 - saturation) * 0.7152;\n float sb = (1.0 - saturation) * 0.0722;\n mat3 saturationMatrix = mat3(\n sr + saturation, sr, sr,\n sg, sg + saturation, sg,\n sb, sb, sb + saturation\n );\n color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));\n "))}if(void 0!==t.gamma){var u=Is(n,t.gamma,Ss.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(u,"));"))}if(void 0!==t.brightness){var c=Is(n,t.brightness,Ss.NUMBER);i.push("color.rgb = clamp(color.rgb + ".concat(c,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var h={},f=n.variables.length;if(f>1&&!t.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var p=function(e){var r=n.variables[e];if(!(r in t.variables))throw new Error("Missing '".concat(r,"' in style variables"));var i=Ws(r);h[i]=function(){var e=t.variables[r];return"string"===typeof e&&(e=As(n,e)),void 0!==e?e:-9999999}},d=0;d<f;++d)p(d);var g=Object.keys(h).map((function(t){return"uniform float ".concat(t,";")})),y=Math.ceil(e/4);g.push("uniform sampler2D ".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(y,"];")),n.paletteTextures&&g.push("uniform sampler2D ".concat(Hs,"[").concat(n.paletteTextures.length,"];"));var v=Object.keys(n.functions).map((function(t){return n.functions[t]})),m="\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n #endif\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n uniform vec4 ".concat(ds.RENDER_EXTENT,";\n uniform float ").concat(ds.TRANSITION_ALPHA,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.RESOLUTION,";\n uniform float ").concat(ds.ZOOM,";\n\n ").concat(g.join("\n"),"\n\n ").concat(v.join("\n"),"\n\n void main() {\n if (\n v_mapCoord[0] < ").concat(ds.RENDER_EXTENT,"[0] ||\n v_mapCoord[1] < ").concat(ds.RENDER_EXTENT,"[1] ||\n v_mapCoord[0] > ").concat(ds.RENDER_EXTENT,"[2] ||\n v_mapCoord[1] > ").concat(ds.RENDER_EXTENT,"[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(").concat(ds.TILE_TEXTURE_ARRAY,"[0], v_textureCoord);\n\n ").concat(i.join("\n"),"\n\n if (color.a == 0.0) {\n discard;\n }\n\n gl_FragColor = color;\n gl_FragColor.rgb *= gl_FragColor.a;\n gl_FragColor *= ").concat(ds.TRANSITION_ALPHA,";\n }");return{vertexShader:r,fragmentShader:m,uniforms:h,paletteTextures:n.paletteTextures}}var il=function(t){function e(e){var r=this,n=e?Object(y["a"])({},e):{},i=n.style||{};delete n.style;var o=n.cacheSize;return delete n.cacheSize,r=t.call(this,n)||this,r.sources_=n.sources,r.renderedSource_=null,r.renderedResolution_=NaN,r.style_=i,r.cacheSize_=o,r.styleVariables_=r.style_.variables||{},r.addChangeListener(Z["a"].SOURCE,r.handleSourceUpdate_),r}return rl(e,t),e.prototype.getSources=function(t,e){var r=this.getSource();return this.sources_?"function"===typeof this.sources_?this.sources_(t,e):this.sources_:r?[r]:[]},e.prototype.getRenderSource=function(){return this.renderedSource_||this.getSource()},e.prototype.getSourceState=function(){var t=this.getRenderSource();return t?t.getState():"undefined"},e.prototype.handleSourceUpdate_=function(){this.getSource()&&this.setStyle(this.style_)},e.prototype.getSourceBandCount_=function(){var t=Number.MAX_SAFE_INTEGER,e=this.getSources([-t,-t,t,t],t);return e&&e.length&&"bandCount"in e[0]?e[0].bandCount:4},e.prototype.createRenderer=function(){var t=nl(this.style_,this.getSourceBandCount_());return new Os(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.cacheSize_,paletteTextures:t.paletteTextures})},e.prototype.renderSources=function(t,e){for(var r,n=this.getRenderer(),i=0,o=e.length;i<o;++i)this.renderedSource_=e[i],n.prepareFrame(t)&&(r=n.renderFrame(t));return r},e.prototype.render=function(t,e){var r=this;this.rendered=!0;for(var n=t.viewState,i=this.getSources(t.extent,n.resolution),o=!0,a=function(t,e){var n=i[t],a=n.getState();if("loading"==a){var s=function(){"ready"==n.getState()&&(n.removeEventListener("change",s),r.changed())};n.addEventListener("change",s)}o=o&&"ready"==a},s=0,l=i.length;s<l;++s)a(s,l);var u=this.renderSources(t,i);if(this.getRenderer().renderComplete&&o)return this.renderedResolution_=n.resolution,u;if(this.renderedResolution_>.5*n.resolution){var c=this.getSources(t.extent,this.renderedResolution_).filter((function(t){return!i.includes(t)}));if(c.length>0)return this.renderSources(t,c)}return u},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var e=nl(this.style_,this.getSourceBandCount_()),r=this.getRenderer();r.reset({vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,paletteTextures:e.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){Object(y["a"])(this.styleVariables_,t),this.changed()},e}(el["a"]);il.prototype.dispose;var ol=il},faf4:function(t,e,r){"use strict";var n=r("01d4"),i=r("869f"),o=r("35a7"),a=r("1300"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;return r.ready=!0,r.boundHandleImageChange_=r.handleImageChange_.bind(r),r.layer_=e,r.declutterExecutorGroup=null,r}return s(e,t),e.prototype.getFeatures=function(t){return Object(a["b"])()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return Object(a["b"])()},e.prototype.renderFrame=function(t,e){return Object(a["b"])()},e.prototype.loadedTileCallback=function(t,e,r){t[e]||(t[e]={}),t[e][r.tileCoord.toString()]=r},e.prototype.createLoadedTileFinder=function(t,e,r){return function(n,i){var o=this.loadedTileCallback.bind(this,r,n);return t.forEachLoadedTile(e,n,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){},e.prototype.getDataAtPixel=function(t,e,r){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){var e=t.target;e.getState()===i["a"].LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=i["a"].LOADED&&e!=i["a"].ERROR&&t.addEventListener(n["a"].CHANGE,this.boundHandleImageChange_),e==i["a"].IDLE&&(t.load(),e=t.getState()),e==i["a"].LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(o["a"]);e["a"]=l},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"map-box"},[r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?r("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,gpsType:t.lastMapType},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}}),t._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e(),t.isSwitchMapTool&&t.isShowSwitchMap?r("SwitchMap",{staticClass:"move-box",style:{top:t.switchMapPosTop+"px",right:t.isSwitchMapRight?t.switchMapPosLeftOrRight+"px":"none",left:t.isSwitchMapRight?"none":t.switchMapPosLeftOrRight+"px"},attrs:{height:t.switchMapHeight,switchMapDefaultTypeOrLayer:t.switchMapDefaultTypeOrLayer,mapTypeAndLayer:t.mapTypeAndLayer,"bottom-right":t.isSwitchMapRight,isDisabled:t.isDisabledSwitchMapTabEvent},on:{changeSwitchMap:t.changeSwitchMap}}):t._e()],2)},a=[],s=(r("5bc0"),r("5eee")),l=r("13e2"),u=r("3a39");class c{constructor(){this.map=null,this._lPolygon=null,this._measureTooltip=null,this.currentLayer=[!1,!1,!0],this.polygonGeojsonArr=[],this.polygonGeojson=null,this.lModifyEventArr=[],this.lmap=null,this.lMEvent=null,this.am=new l["AM"],this.type=2,this.lPolygonNewArr=new Array,this.polygonGeojsonMap=new s["default"],this.drawPolygonArr=new Set,this.drawLineArr=new Set,this._lRectangle=null,this.layers=null}init(t){const{el:e,type:r,callback:n,viewOptions:i,layerType:o,mapType:a}=t;this.initMap({el:e,callback:n,viewOptions:i,type:r,layerType:o})}initMap({el:t,callback:e,type:r,viewOptions:n,layerType:i}){this.lmap||(this.lmap=new l["LMap"]({controls:l["MapConfig"].Defaults,interactions:Object(u["defaults"])({pinchRotate:!1})})),setTimeout(()=>{const o=async()=>{this.map&&(this.map=null);const{map:o,layers:a}=await this.lmap.onLoad(t,r,i);this.map=o,this.layers=a,l["MapConfig"].View=n,this.map.setView(l["MapConfig"].View),e&&e(this.map,a)};o()},100)}get getMapTypeLength(){return this.lmap.getMapTypeLength}get getLayeTypeLength(){return this.lmap.getLayeTypeLength}selectMapLayer(t,e){return this.lmap?this.lmap.selectLayers(t,e):0}initBingMap(t,e,r){this.lmap||(this.lmap=new l["LMap"]({controls:l["MapConfig"].Defaults})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null);const{map:n,layers:i}=await this.lmap.onLoad(t,2,2);this.map=n,this.layers=i,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}initBingMapNew(t,e,r){this.lmap||(this.lmap=new l["LMap"]({controls:l["MapConfig"].Defaults})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null);const{map:n,layers:i}=await this.lmap.onLoad(t,0,2);this.map=n,this.layers=i,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}async initVectorMap(t){const{el:e,isAnalysisBBOX:r,isAnalysisCenter:n,callback:i,delaytime:o,isDrag:a}=t,s=new l["VectorMap"]({isAnalysisBBOX:r,isAnalysisCenter:n,isDrag:a,callback:t=>{i&&i(t)}});return new Promise(t=>{setTimeout(async()=>{const r=await s.onLoad(e);t({map:r,vmap:s})},o||100)})}async initStaticMap(t,e){return await new Promise((r,n)=>{setTimeout(i=>{const o=new s["default"]({target:t,view:e.view,layers:[e.layer]});this.map=o,this.layers=[e.layer],o?r(o):n(null)},30)})}getVectorLayerView(){return l["MapConfig"].getVectorLayerView}onSetLayers(t){this.type=t,this.currentLayer=this.currentLayer.map(t=>!1),this.currentLayer[t]=!0,this.removeLayers(t),this.addLayers(t)}removeLayers(t){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.removeLayer(t)})}addLayers(t){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.addLayer(t)})}onCreatePolygon(t,e=!1){this.polygonGeojson&&this.map.removeLayer(this.polygonGeojson),this._lPolygon&&this.clearlPolygon();return this._lPolygon=new l["LPolygon"](this.map,{strokeColor:"rgba(255,201,14, 1)",fillColor:"rgba(255,201,14, 0.4)"},e),this._lPolygon}skipCurrentDraw(){this._lPolygon&&this._lPolygon.skipCurrentDraw()}onCancel(){this._lPolygon&&this._lPolygon.removeLastPoint()}onDelete(t){this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null,this._removeMeasureTooltip(),t&&t())}getGeoJson(){if(this._lPolygon){const[t,e]=this._lPolygon.getCenterPoint(),r=Object(l["createGeoJson"])(this._lPolygon.getCoordinates(),{ruleId:"",centerlon:t,centerlat:e});return r}return null}getGeoJsonNew(t){if(this.polygonGeojson){const t=this.polygonGeojson,e=Object(l["createGeoJson"])(t.getSource().getFeatures()[0].getGeometry().getCoordinates(),{ruleId:"",centerlon:0,centerlat:0});return e}return null}getPolygonGeoJson(){return this._lPolygon?this._lPolygon.getGeoJson():null}onCreateLine(){if(this.map){let t=new l["LDraw"]("LineString",t=>{},this.map);this.drawLineArr.add(t)}}onCreateArea(){this.map&&this.drawPolygonArr.add(new l["LDraw"]("Polygon",t=>{},this.map))}removeDrawArr(){this.drawLineArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawLineArr.clear(),this.drawPolygonArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawPolygonArr.clear()}clearlPolygon(){this.map&&this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null)}_createMeasureTooltip(){const t=new l["MeasureTooltip"];return t.setOffset([0,-30]),this._measureTooltip=t,t}_removeMeasureTooltip(){this.map&&this._measureTooltip&&this.map.removeOverlay(this._measureTooltip.getMarker())}createPolygonGeojson(t,e="rgba(255, 255, 255, 0.3)",r="rgba(00, 131, 241, 1)",n,i=!1,o=[]){if(this.map){const a=Object(l["createPolygonGeojson"])(t,e,r,n,i,o);this.polygonGeojsonArr.push(a),this.polygonGeojson=null,this.map.addLayer(a)}}createPolygonGeojsonNew(t,e="rgba(255, 255, 255, 0.3)",r="rgba(00, 131, 241, 1)",n,i=!1){if(this.polygonGeojson&&(this.polygonGeojson=null),this.map){const o=Object(l["createPolygonGeojson"])(t,e,r,n,i);this.polygonGeojson=o,this.map.addLayer(o)}}removePolygonGeojsons(){if(!this.polygonGeojsonArr.length)return;let t=null;while(t=this.polygonGeojsonArr.shift())this.map.removeLayer(t),t=null}removePolygonGeojsonNew(){this.polygonGeojson&&(this.map.removeLayer(this.polygonGeojson),this.polygonGeojson=null)}clear(){this.map&&(this.am&&(this.am=null,this.am=new l["AM"]),this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew(),this.removeMapsLayers())}clearNew(){this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew()}getMap(){return this.map}setCenter([t,e],r){if(!this.map)return;const n=this.map.getView();n.setCenter([t,e]),r>0&&n.setZoom(r)}setZoom(t){if(!this.map)return;const e=this.map.getView();e.setZoom(t)}setMaxZoom(t){if(!this.map)return;const e=this.map.getView();e.setMaxZoom(t)}setMinZoom(){if(!this.map)return;const t=this.map.getView();t.setMinZoom(zoom)}get getZoom(){if(!this.map)return 0;const t=this.map.getView();return t.getZoom()}getCenter(){if(!this.map)return;const t=this.map.getView();let[e,r]=t.getCenter();return[e,r]}fit(t){Object(l["fitNew"])(this.map,t)}createMarker(t,e=15,r=15){return new l["LMarker"](t,e,r)}removeMarker(t){this.map.removeOverlay(t.getMarker())}lModifyEventArr(){this.lModifyEventArr.length=0,this.polygonGeojsonArr.forEach((t,e)=>{const r=new l["LModifyEvent"](t,this.map);r.setActive(),this.lModifyEventArr.push(r)})}removeLModifyEventArr(){if(!this.lModifyEventArr.length)return;let t=null;while(t=this.lModifyEventArr.shift())t.setActive(!1),t.remove(),t=null}lModifyEvent(){if(this.map&&this.polygonGeojson){const t=new l["LModifyEvent"](this.polygonGeojson,this.map);t.setActive(),this.lMEvent=t}}removeLModifyEvent(){this.lMEvent&&(this.lMEvent.setActive(!1),this.lMEvent.remove())}convertWGS84GeoJSONgcj_encrypt(t){const{bbox:e,geometry:r,properties:n}=t,i=[];for(let s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_encrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_encrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["GPS"].gcj_encrypt(e,r);t.properties.center=[i,o]}return t}gcj_encryptConvertWGS84GeoJSON(t){const{bbox:e,geometry:r,properties:n}=t,i=[];for(let s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_decrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_decrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["GPS"].gcj_decrypt(e,r);t.properties.center=[i,o]}return t}gcj_encrypt(t,e){return l["GPS"].gcj_encrypt(t,e)}gcj_decrypt(t,e){return l["GPS"].gcj_decrypt(t,e)}formatArea(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatArea"])(this._lPolygon.getGeometry()):0}formatLength(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatLength"])(this._lPolygon.getGeometry()):0}createPolylinePointList(t,e=!1,r=!0,n=null,i=0){let o=new Array;const a=Object(l["createPolylinePoints"])(t,e);o=Object(l["addPolylinePoint"])(a,this.map);const s=Object(l["createGPSPoints"])(t,e,this.am);if(null!=s){let t=this.am.getLngLats();i&&(t=this.am.getLngLatGCJ02()),Object(l["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return o}async setAreaCenterPoint(){let t="3301";if(window.localStorage.getItem("user")){const e=JSON.parse(window.localStorage.getItem("user"));t=e["areaCode"]}const{data:e}=await getAreaCenter(t),{areaCode:r,areaName:n,centerLongitude:i,centerLatitude:o}=e;window.localStorage.setItem("createPointData",JSON.stringify(e))}async getAreaCenterPoint(t=!1){return obj}removeAreaCenterPoint(){window.localStorage.removeItem("createPointData")}polygonStyle(){return l["polygonStyle"]}removeMapsLayers(){const t=this.map.getLayers().getArray();for(let e=t.length;0<=e;e--)this.map.removeLayer(t[e])}removeOverlays(){if(!this.map)return;const t=this.map.getOverlays().getArray();for(let e=t.length;0<=e;e--)this.map.removeOverlay(t[e])}resetAM(){this.am=null,this.am=new l["AM"]}createPolygonBoundary(t,e){const r=Object(l["createPolygonBoundary"])(t,e);this.polygonGeojsonArr.push(r),this.map.addLayer(r)}createPolylinePointListNew(t,e,r={isGCJ02Point:!1,isFit:!1}){let n=new Array;const i=Object(l["createPolylinePoints"])(t,!1);n=Object(l["addPolylinePointNew"])(i,this.map,e);const o=Object(l["createGPSPoints"])(t,!1,this.am);if(null!=o&&r.isFit){let t=this.am.getLngLats();e.type&&(t=this.am.getLngLatGCJ02()),Object(l["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return n}createLPolygonNew(t,e){this.lPolygonNewArr.push(new l["LPolygonNew"](t,e))}setPolygonColor(t,e=["rgba(255,201,14, 0.4)","rgba(255,201,14, 1)"]){this.lPolygonNewArr.forEach(r=>{r.Id!=t||r.setPolygonColor(e)})}setPolygonColorAll(t=["rgba(184, 233, 134, 0.56)","rgba(23, 168, 162, 0.56)"]){this.lPolygonNewArr.forEach(e=>{e.setPolygonColor(t)})}removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr=[]}caculateLL(t,e,r,n){return Object(l["caculateLL"])(t,e,r,n)}get LPolygonNewArr(){return this.lPolygonNewArr}get isTruePolygon(){return!!this._lPolygon&&this._lPolygon.isTruePolygon}onCreateRectangle(t){this._lRectangle&&this.clearRectangle();return this._lRectangle=new l["LRectangle"]("Circle",this.map,t=>{}),this._lRectangle}getRectangleData(){if(!this._lRectangle)return[];const t=this._lRectangle.getCoordinates(),e=t[0];if(e.length){const t=[];return t.push([e[0][0],e[1][1]]),t.push([e[1][0],e[2][1]]),t}return[]}getRectangleDataNew(){if(!this._lRectangle)return[];const t=this._lRectangle.getCoordinates(),e=t[0];if(e.length){const t=[];return t.push([e[0][0],e[1][1]]),t.push([e[1][0],e[2][1]]),t}return[]}clearRectangle(){if(this.map&&this._lRectangle){this._lRectangle.getCoordinates();this._lRectangle.remove(),this._lRectangle=null}}async initOfflineMap(t,e){const{el:r,urls:n,callback:i}=e;this.lmap=new l["OfflineMap"],setTimeout(async t=>{const{map:e,layers:o}=await this.lmap.onLoad(r,n);this.map=e,this.layers=o,i({map:e,lMap:this.lmap})},50)}}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f{constructor(){h(this,"isShowSwitchMap",{type:Boolean,default:!0}),this.mapType={type:Number,default:0},this.layerType={type:Number,default:2},this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.bindMapMoveend={type:Boolean,default:!1},this.isDisabledSwitchMapTabEvent={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null},this.m={type:Number,default:()=>3e3},this.switchMapDefaultTypeOrLayer={type:Array,default:()=>null},this.mapTypeAndLayer={type:Array,default:()=>[{id:0,icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:1,icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:2,icon:"el-icon--Bing",activeIcon:"el-icon--Bing-copy",name:"Bing地图",layer:[{id:1,name:"卫星"},{id:2,name:"卫星组合"}]}]}}}class p{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:18},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[116.40769,39.89945]},this.projection={type:String,default:"EPSG:4326"},this.bbox={type:Array,default:()=>[]}}}class d{constructor(){h(this,"isHideAreaAndKM",{type:Boolean,default:!1}),h(this,"switchMapPosTop",{type:Number,default:50}),h(this,"switchMapPosLeftOrRight",{type:Number,default:20}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"switchMapHeight",{type:Number,default:40}),h(this,"isShowRangingTool",{type:Boolean,default:!0}),h(this,"isShowDrawTool",{type:Boolean,default:!1}),h(this,"isRight",{type:Boolean,default:!0}),h(this,"isCrossHair",{type:Boolean,default:!1}),h(this,"initModifyPolygon",{type:[String,Object],default:()=>null}),h(this,"hideAdd",{type:Boolean,default:!1}),h(this,"hidePoint",{type:Boolean,default:!1}),h(this,"hideCancel",{type:Boolean,default:!1}),h(this,"hideDelete",{type:Boolean,default:!1}),h(this,"hideSave",{type:Boolean,default:!1}),h(this,"hideLine",{type:Boolean,default:!1}),h(this,"hideArea",{type:Boolean,default:!1}),h(this,"isSwitchMap",{type:Boolean,default:!0}),h(this,"gpsType",{type:Number,default:0})}}var g=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"draw-tool-box"},[t.isRight?[t.isShowRangingTool?r("aside",{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[t.hideLine?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e(),t.isShowDrawTool?r("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e()]:[t.isShowDrawTool?r("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e(),t.isShowRangingTool?r("aside",{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[t.hideLine?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e()],t.lMap?r("ry-cross-hair",{attrs:{isHide:t.isCrossHair,map:t.lMap.map},on:{click:function(e){return t.onClick(e)}}}):t._e()],2)},y=[],v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},m=[],_=(r("3e8f"),{name:"RyCrossHair",props:{map:{type:Object,default:()=>null},isHide:{type:Boolean,default:!1}},created(){this.isHide&&!this.crossHair&&this.createCrossHair()},watch:{isHide(t){!t||this.crossHair?this.removeControl():this.createCrossHair()}},data(){return{crossHair:null}},methods:{getCenter(){if(!this.map)return;const t=this.map.getView();let[e,r]=t.getCenter();return[e,r]},createCrossHair(){this.crossHair=new l["CrossHair"](()=>{this.$emit("click",this.getCenter())}),this.map.addControl(this.crossHair)},removeControl(){this.map&&this.crossHair&&(this.map.removeControl(this.crossHair),this.crossHair=null)}}}),b=_;function x(t,e,r,n,i,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var w=x(b,v,m,!1,null,null,null),O=w.exports,E={name:"RyMapTool",components:{RyCrossHair:O},props:{lMap:{type:Object,default:()=>null},...new d},watch:{initModifyPolygon(t){this.initModifyPolygon=t,this._init()},isShowRangingTool(t){this.isShowRangingTool=t},isShowDrawTool(t){this.isShowDrawTool=t,this.isCrossHair=t},isRight(t){this.isShowDrawTool=t},isCrossHair(t){this.isCrossHair=t},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.drawPolygon&&(this.drawPolygon.type=t),this.selectGPSAll(this.gpsType))}},data(){return{drawPolygon:null,isEdit:!0,lastType:-1}},created(){this._initPolygon()},methods:{_initPolygon(){if(!this.lMap||!this.initModifyPolygon||!this.isShowDrawTool)return;const{coordinates:t,bbox:e}=this._serializeGeoJson();if(this.onDelete(),this.drawPolygon=this.lMap.onCreatePolygon(()=>{},this.isHideAreaAndKM),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.drawPolygon.initCoordinates(t),this.isEdit=!0,this.$emit("loadDrawPolygonEvent",this),e){const t=[e[0],e[3],e[2],e[1]],r=[e[2],e[1],e[0],e[3]];this.lMap.fit([t,r])}},_serializeGeoJson(){let t=null;if(this.initModifyPolygon instanceof Object)t=this.initModifyPolygon;else{if("string"!==typeof this.initModifyPolygon)return t;t=JSON.parse(this.initModifyPolygon)}const{geometry:e,bbox:r}=t;return{coordinates:e.coordinates,bbox:r}},setFit(t){t&&t.length&&this.lMap&&Object(l["fitNew"])(this.lMap.map,[t])},onCreatePolygon(){this.lMap&&(this.drawPolygon=this.lMap.onCreatePolygon(()=>{},this.isHideAreaAndKM),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.$emit("loadDrawPolygonEvent",this))},onDelete(){this.lMap&&this.drawPolygon&&(this.lMap.onDelete(),this.drawPolygon=null)},onPointEvent(){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:r,lat:n}=l["GPS"].gcj_decrypt(t[0],t[1]);e=[r,n]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},onSave(){const t=this.lMap.getPolygonGeoJson();t?this.lMap.isTruePolygon?t&&this.$emit("success",{geoJson:t,delete:this.onDelete}):this.error(t,1):this.error(t)},error(t,e=0){this.$emit("error",{geoJson:t,delete:this.onDelete,type:e})},onClick(t){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:r,lat:n}=l["GPS"].gcj_decrypt(t[0],t[1]);e=[r,n]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},getGeoJson(){if(this.lMap)return this.lMap.getPolygonGeoJson()},onCancel(){this.lMap&&this.lMap.onCancel()},selectGPSAll(t){this.lMap.removeDrawArr(),this.drawPolygon&&this.drawPolygon.selectGPS(t,!0)}}},S=E,C=(r("f542"),x(S,g,y,!1,null,"5b062201",null)),T=C.exports,P=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.mapTypeAndLayer&&t.mapTypeAndLayer.length>0?r("div",{staticClass:"switch-map"},[r("div",{staticClass:"top",style:{height:t.height+"px"}},[t.isDisabled?r("p",{staticStyle:{width:"10px"}}):[r("p",{class:t.bottomRight?t.isExpand?"el-icon-arrow-left":"el-icon-arrow-right":t.isExpand?"el-icon-arrow-right":"el-icon-arrow-left",on:{click:t.changeExpand}})],r("ul",t._l(t.mapTypeCopy,(function(e,n){return r("li",{key:n,class:{color:!!t.isExpand||t.mapTypeActive===e.id},on:{click:function(r){return t.mapTypeClick(e)}}},[r("i",{class:t.isExpand||t.mapTypeActive===e.id?e.activeIcon:e.icon}),t._v(" "+t._s(e.name)+" ")])})),0)],2),r("ul",{class:{bottom:!0,marginLeft:t.bottomRight}},t._l(t.mapStyleCopy,(function(e,n){return r("li",{key:n,class:{color:!!t.isTop||t.mapStyleActive===e.id},style:{height:t.height+"px",lineHeight:t.height+"px"}},[r("span",{on:{click:function(r){return t.mapStyleClick(e)}}},[t._v(" "+t._s(e.name)+" ")]),r("i",{directives:[{name:"show",rawName:"v-show",value:0===n,expression:"index===0"}],class:t.isTop?"el-icon-arrow-down":"el-icon-arrow-up",on:{click:t.changeDirectionArrow}})])})),0)]):t._e()},j=[];class R{constructor(){h(this,"switchMapDefaultTypeOrLayer",{type:Array,default:()=>null}),h(this,"height",{type:Number,default:40}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"bottomRight",{type:Boolean,default:!0}),h(this,"isDisabled",{type:Boolean,default:!1}),h(this,"mapTypeAndLayer",{type:Array,default:()=>null}),h(this,"mapType",{type:Array,default:()=>[{icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图"},{icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图"}]}),h(this,"mapStyle",{type:Array,default:()=>["地图","卫星","卫星组合"]})}}var M={name:"SwitchMap",props:{...new R},data(){return{isExpand:!0,mapTypeActive:1,mapStyleActive:2,isTop:!0,mapTypeCopy:[],mapStyleCopy:[]}},watch:{switchMapDefaultTypeOrLayer(t){if(!t)return;const e=this.formatToJudge(t);if(!e)return;const r=this.mapStyleActive,n=e||0===e?t[0]:1,i=e||1===e?r:2;setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:n,layerType:i})},100)},mapTypeAndLayer:{handler(t){console.log("111111"),Array.isArray(t)&&t[1]&&t.forEach((t,e)=>{1!==e||this.switchMapDefaultTypeOrLayer||(this.mapStyleCopy=[t.layer[2]],this.mapTypeCopy=[t])})},immediate:!0}},created(){},mounted(){this._switchMapDefaultTypeOrLayer(this.switchMapDefaultTypeOrLayer),this.switchMapDefaultTypeOrLayer||setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:1,layerType:2})},100)},methods:{formatToJudge(t){var e;const r=[1,2],n=Array.isArray(t),i=r.includes(t.length),o=t[0]>=0&&t[0]<=this.mapTypeAndLayer.length-1,a=t[1]>=0&&t[1]<=(null===(e=this.mapTypeAndLayer[t[0]])||void 0===e?void 0:e.layer.length)-1;if(!n||!i)return!1;if(!o||!a){var s,l;const t=this.mapTypeActive,e=this.mapStyleActive;return this.mapTypeCopy=[this.mapTypeAndLayer[t]],this.mapStyleCopy=[null===(s=this.mapTypeAndLayer[t])||void 0===s?void 0:s.layer[e]],this.mapStyleActive=null===(l=this.mapStyleCopy[0])||void 0===l?void 0:l.id,!1}return o&&!a?(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],0):a&&!o?(this.mapStyleCopy=[null===(u=this.mapTypeAndLayer[t[0]])||void 0===u?void 0:u.layer[t[1]]],this.mapStyleActive=this.mapStyleCopy[0].id,1):!(!o||!a)&&(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],this.mapStyleCopy=[null===(c=this.mapTypeAndLayer[t[0]])||void 0===c?void 0:c.layer[t[1]]],this.mapStyleActive=null===(h=this.mapStyleCopy[0])||void 0===h?void 0:h.id,!0);var u,c,h},changeExpand(){if(!this.isDisabled){if(this.isExpand=!this.isExpand,this.isExpand)return this.mapTypeCopy=this.mapTypeAndLayer.filter((t,e)=>this.mapTypeActive===e),void(this.isTop||(this.isTop=!0,this.mapStyleCopy=this.mapTypeAndLayer[this.mapTypeActive].layer.filter(t=>this.mapStyleActive===t.id)));this.mapTypeCopy=[...this.mapTypeAndLayer]}},changeDirectionArrow(){this.isTop=!this.isTop;const t=this.mapTypeActive,e=this.mapTypeAndLayer[t].layer;this.isTop?this.mapStyleCopy=e.filter(e=>t===e.id):this.mapStyleCopy=[...e]},mapTypeClick({id:t}){if(this.mapTypeActive===t||this.isExpand)return;const e=this.mapTypeAndLayer[t].layer;this.mapTypeActive=t,this.mapStyleActive=e[e.length-1].id,this.isTop?this.mapStyleCopy=e.filter(t=>this.mapStyleActive===t.id):this.mapStyleCopy=e,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive,cisDisabled:!1})},mapStyleClick({id:t}){this.mapStyleActive===t||this.isTop||(this.mapStyleActive=t,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive}))},_switchMapDefaultTypeOrLayer(t){if(!t)return;const e=this.formatToJudge(t);if(!e)return;const r=this.mapStyleActive,n=e||0===e?t[0]:1,i=e||1===e?r:2;setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:n,layerType:i})},100)}}},A=M,L=(r("d8bd"),x(A,P,j,!1,null,"bb9d499c",null)),I=L.exports,k={name:"RyMap",components:{RyMapTool:T,SwitchMap:I},props:{...new f,...new p,...new d},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},bindMapMoveend(t){this.bindMapMoveend!==t&&(this.bindMapMoveend=t,this._bingMapMoveend())},m(t){this.m=t}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{changeSwitchMap({mapType:t,layerType:e}){this.lMap.selectMapLayer(t,e),this._setMaxZoom(t,e);let r=t;if(t>1&&(r=0),this.lastMapType==r)return;this.lastMapType=r;const n=this.lMap.getCenter();if(n&&n.length)if(0==r){const{lon:t,lat:e}=l["GPS"].gcj_decrypt(n[0],n[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=l["GPS"].gcj_encrypt(n[0],n[1]);this.lMap.setCenter([t,e])}this.$emit("changeSwitchMap",{mapType:r,layerType:e,type:t})},_setMaxZoom(t,e){2==t||0==e?this.setMaxZoom(28):this.setMaxZoom(18)},loadMap(t){this.lMap.init({el:t,type:this.mapType,layerType:this.layerType,viewOptions:this.getViewOptions(),callback:(t,e)=>{this.map=t,this.bbox.length>0&&this.setFit(this.bbox);try{const[t,e]=this.lMap.getCenter();this.lastX=t,this.lastY=e}catch(r){}this._bingMapEvent(),this._bingMapMoveend(),this.$emit("load",{map:t,mapServices:this.lMap,layers:e,ryMapTool:this.$refs.mapTool}),this.isShowSwitchMap||(this.lastMapType=this.mapType>2?0:this.mapType)}})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},_bingMapMoveend(){this.bindMapMoveend?this._mapMoveend():this._mapMoveend(!0)},getViewOptions(){return{projection:this.projection,center:this.center,zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom}},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_mapMoveend(t=!1){this.moveend=t=>{const[e,r]=this.lMap.getCenter();let n=0;if(this.lastX!==e&&this.lastY!==r)return n=Object(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},F=k,D=(r("8e2d"),x(F,o,a,!1,null,"2da723f6",null)),N=D.exports;N.install=t=>{t.install(N.name,N)};var G=N;O.install=t=>{t.install(O.name,O)};var z=O;T.install=t=>{t.install(T.name,T)};var B=T,U=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},V=[];class X{constructor(){h(this,"map",{type:Object,default:()=>null}),h(this,"gpsType",{type:Number,default:0})}}class W extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Boolean,default:!1}),h(this,"polygonColor",{type:Array,default:()=>[]}),h(this,"text",{type:String,default:null}),h(this,"isFit",{type:Boolean,default:!0})}}var H={name:"RyPolygon",props:{...new W},data(){return{polygon:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isCheckPointHide(t){t?this.hideCheckPoint():this.showCheckPoint()},polygonColor(t){t.length&&this.setPolygonColor(t)},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo&&!this.model.coordinates)return;let t=[];if(this.model.geo){const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson();this.model.coordinates=e,this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=new l["LPolygonNew"]({...this.model,type:this.gpsType},this.map),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.model.text&&(this.checkPoint||(this.checkPoint=this.createCheckPoint(this.model.text,t.length?t:Object(l["getCenterPoint"])(this.model.coordinates))),this.isCheckPointHide&&this.hideCheckPoint()),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon,checkPoint:this.checkPoint})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:r,properties:n}=t;let i=[];return n&&n.center&&(i=n.center),{bbox:e,coordinates:r.coordinates,center:i.length?i:Object(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["CheckPoint"](t,12,"#fff");return r.setOffset([0,-5]),r.setPosition(e,this.gpsType),this.map.addOverlay(r.getMarker()),r},show(){this.polygon.show()},hide(){this.polygon.hide()},remove(){this.polygon&&(this.polygon.removePolygon(),this.polygon=null),this.checkPoint&&(this.map.removeOverlay(this.checkPoint.getMarker()),this.checkPoint=null),this.bbox=[],this.bboxGCJ02=[]},setPolygonColor(t){if(this.polygon){this.polygon.setPolygonColor(t);const e=this.map.getView().getZoom();this.map.getView().setZoom(e+1e-5),this.map.getView().setZoom(e-1e-4)}},getId(){return this.polygon._id},showCheckPoint(){this.checkPoint&&this.checkPoint.show()},hideCheckPoint(){this.checkPoint&&this.checkPoint.hide()},setText(t){this.checkPoint&&this.checkPoint.setText(t)},selectGPSAll(t){this.checkPoint&&this.checkPoint.selectGPS(t),this.polygon&&this.polygon.selectGPS(t)}}},Y=H,q=x(Y,U,V,!1,null,null,null),K=q.exports;K.install=t=>{t.install(K.name,K)};var Z=K,J=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},$=[];class Q extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShowPolygon",{type:Object,default:()=>null}),h(this,"isShowPolygons",{type:Array,default:()=>[]}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHideAll",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Object,default:()=>null}),h(this,"isCheckPointHides",{type:Array,default:()=>[]}),h(this,"polygonColor",{type:Object,default:()=>null}),h(this,"polygonColors",{type:Array,default:()=>[]}),h(this,"text",{type:Object,default:()=>null}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"remove",{type:[String,Number,Object],default:()=>null}),h(this,"removes",{type:Array,default:()=>[]}),h(this,"ranges",{type:Array,default:()=>[]}),h(this,"range",{type:[String,Number,Object],default:()=>null}),h(this,"restFit",{type:Boolean,default:!1})}}var tt={name:"RyPolygons",props:{...new Q},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,polygonMap:new Map,checkPointMap:new Map,isCreate:!0,lastType:-1}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init())},isShowAll(t){t?this.showAll():this.hideAll()},isShowPolygon(t){this.isShowPolygon=t,t&&this._isShowPolygon(t)},isShowPolygons(t){this.isShowPolygons=t,(t||t.length)&&this._isShowPolygons(t)},clear(t){t&&this._remove()},isCheckPointHideAll(t){t?this.hideCheckPointAll():this.showCheckPointAll()},isCheckPointHide(t){this.isCheckPointHide=t,t&&this._isCheckPointHide(t)},isCheckPointHides(t){this.isCheckPointHides=t,(t||t.length)&&this._isCheckPointHides(t)},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)},polygonColors(t){t&&this.setPolygonColors(t)},isFit(t){this.isFit=t,t&&this.setFit()},remove(t){this.remove=t,this.removePolygonAndCheckPoint(t)},removes(t){this.removes=t,this.removePolygonsAndCheckPoints(t)},ranges(t){this.ranges=t,this._ranges(t)},range(t){this.range=t,this._range(t)},insert(t){this.insert=t,this._insert(t)},inserts(t){this.inserts=t,this._inserts(t)},restFit(t){this.restFit=t},text(t){t&&t.id&&t.text&&this.setText(t.id,t.text)},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){(this.modelArr||this.modelArr.length)&&(this.modelArr.forEach(t=>{this._insert(t)}),this.polygonColor&&this.setPolygonColor(this.polygonColor),this.setPolygonColors(this.polygonColors),this.removePolygonAndCheckPoint(this.remove),this.removePolygonsAndCheckPoints(this.removes),this._ranges(this.ranges),this._range(this.range),this._insert(this.insert),this._inserts(this.inserts),this.isFit&&this.setFit(),this.isShowAll||this.hideAll(),this.isCheckPointHideAll&&this.hideCheckPointAll(),this.isShowPolygon&&this._isShowPolygon(this.isShowPolygon),this._isShowPolygons(this.isShowPolygons),this.isCheckPointHide&&this._isCheckPointHide(this.isCheckPointHide),this._isCheckPointHides(this.isCheckPointHides),this._onLoad())},initPolygon(t){if(!this.polygonMap.has(t.id)){const e=new l["LPolygonNew"]({...t,type:this.gpsType},this.map);e.isShowPolygon=!0,this.polygonMap.set(t.id,e)}},selectGPSAll(t){this.polygonMap.forEach(e=>{e.selectGPS(t)}),this.checkPointMap.forEach(e=>{e.selectGPS(t)})},initCheckPoint(t,e){if(!this.checkPointMap.has(t.id)&&t.text){const r=this.createCheckPoint(t.text,e);this.checkPointMap.set(t.id,r)}},setBBOXArr(t,e){if(this.bboxMap.has(t)||(this.bbox.push(e),this.bboxMap.set(t,e)),!this.bboxMapGCJ02.has(t)){const r=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(r),this.bboxMapGCJ02.set(t,r)}},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["fitNew"])(this.map,1==this.gpsType?this.bboxGCJ02:this.bbox):this.setFitFist(1==this.gpsType?this.bboxGCJ02[0]:this.bbox[0]))},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:r,geometry:n,properties:i}=e;let o=[];return i&&i.center&&(o=i.center),{bbox:r,coordinates:n.coordinates,center:o.length?o:Object(l["getCenterPoint"])(n.coordinates)}},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["CheckPoint"](t,12,"#fff");return r.setOffset([0,-5]),r.setPosition(e,this.gpsType),this.map.addOverlay(r.getMarker()),r},showAll(){this.polygonMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.polygonMap.forEach(t=>t.hide())},_remove(){this.checkPointMap.forEach(t=>{this.map.removeOverlay(t.getMarker()),t=null}),this.polygonMap.forEach(t=>{t.removePolygon(),t=null}),this.checkPointMap.clear(),this.polygonMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear()},setPolygonColor(t,e,r=!0){if(this.polygonMap.has(t)){const n=this.polygonMap.get(t);n.setPolygonColor(e),r&&this._setZoom()}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)},setPolygonColors(t){t.forEach(t=>{this.setPolygonColor(t.id,t.colorArr,!1)}),t.length&&this._setZoom()},showCheckPointAll(){this.map&&this.checkPointMap.forEach(t=>t.show())},_isShowPolygon(t){const e=t.id;if(this.polygonMap.has(e)){const r=this.polygonMap.get(e);if(t.isShow)return void r.show();r.hide()}},_isShowPolygons(t){t.forEach(t=>{this._isShowPolygon(t)}),this.restFit&&this._restFit()},hideCheckPointAll(){this.checkPointMap.forEach(t=>t.hide())},_isCheckPointHide(t){const e=t.id;if(this.checkPointMap.has(e)){const r=this.checkPointMap.get(e);if(t.isShow)return void r.show();r.hide()}},_isCheckPointHides(t){t.forEach(t=>{this._isCheckPointHide(t)})},setText(t,e){if(this.checkPointMap.has(t)){const r=this.checkPointMap.get(t);r.setText(e)}},restBBOXArr(){this.bbox=[],this.bboxGCJ02=[],this.bboxMap.forEach(t=>{this.bbox.push(t)}),this.bboxMapGCJ02.forEach(t=>{this.bboxGCJ02.push(t)})},removePolygonsAndCheckPoints(t){t.forEach((t,e)=>{this.removePolygonAndCheckPoint(t)}),t.length&&this.restBBOXArr()},removePolygonAndCheckPoint(t,e=!0){if(this.checkPointMap.has(t)){const r=this.checkPointMap.get(t);this.map.removeOverlay(r.getMarker()),this.checkPointMap.delete(t),e&&this.restBBOXArr()}if(this.polygonMap.has(t)){const e=this.polygonMap.get(t);e.removePolygon(),this.polygonMap.delete(t)}this.bboxMap.has(t)&&this.bboxMap.delete(t),this.bboxMapGCJ02.has(t)&&this.bboxMapGCJ02.delete(t)},_ranges(t){const e=[];t.forEach(t=>{if(this.bboxMap.has(t)&&1!=this.gpsType){const r=this.bboxMap.get(t);e.push(r)}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const r=this.bboxMapGCJ02.get(t);e.push(r)}}),e.length&&Object(l["fitNew"])(this.map,e)},_range(t){if(this.bboxMap.has(t)&&1!=this.gpsType){const e=this.bboxMap.get(t);Object(l["fitNew"])(this.map,[e])}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const e=this.bboxMapGCJ02.get(t);Object(l["fitNew"])(this.map,[e])}},_insert(t,e){if(!t)return;let r=[],n=[];if(!t.coordinates){const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson(t.geo);t.coordinates=e,r=n}this.initPolygon(t),this.initCheckPoint(t,r.length?r:Object(l["getCenterPoint"])(t.coordinates)),this.setBBOXArr(t.id,n.length?n:Object(l["getLngAndLatMaxMin"])(t.coordinates)),e&&this._onLoad()},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),t.length&&this._onLoad()},_onLoad(){this.$emit("onLoad",{polygonMap:this.polygonMap,checkPointMap:this.checkPointMap,bboxMap:this.bboxMap,bboxMapGCJ02:this.bboxMapGCJ02})},_restFit(){let t=[];1!=this.gpsType?this.bboxMap.forEach((e,r)=>{-1===this.isShowPolygons.findIndex(t=>t.id==r)&&t.push(this.bboxMap.get(r))}):1==this.gpsType&&this.bboxMapGCJ02.forEach((e,r)=>{-1===this.isShowPolygons.findIndex(t=>t.id==r)&&t.push(this.bboxMapGCJ02.get(r))}),t.length&&(t.length>1?Object(l["fitNew"])(this.map,t):this.setFitFist(t[0]))},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e}}},et=tt,rt=x(et,J,$,!1,null,null,null),nt=rt.exports;nt.install=t=>{t.install(nt.name,nt)};var it=nt,ot=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},at=[];const st={fillColor:"rgba(184, 233, 134, 0.56)",stroke:"rgba(23, 168, 162, 0.56)",width:3,text:"块"};var lt={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},clusterPolygonModel:{type:Object,default:()=>st},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},color:{type:String,default:"#fff"},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},distance:{type:Number,default:30}},data(){return{checkPointArr:new Map,currentArr:Array(),fpModelArr:[],featurePolygon:null,multiPolygonMap:new Map,scan:new l["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.featurePolygon=new l["FeaturePolygon"](this.gpsType),this.clear(),this.init()},methods:{mergeGeoJson(t){let e=[],r=new Set;t.forEach(t=>{if(t){const n=t.getId();if(this.multiPolygonMap.has(n)){const t=this.multiPolygonMap.get(n);r.add(n),t.forEach(t=>{e.push(t)})}}}),this.scan.setPoints(e),this.scan.getHull(),r.forEach(t=>{this.removeAggregation(t)});const n={...this.clusterPolygonModel,coordinates:[this.scan.getHull()],ids:r};this.polygonSet.add(new l["LPolygonNew"]({...n,gpsType:this.gpsType},this.map))},removeAggregation(t){let e=[];0!==this.polygonSet.size&&(this.polygonSet.forEach(r=>{r.Ids.has(t)&&(r.removePolygon(),e.push(r))}),e.forEach(t=>{this.polygonSet.has(t)&&this.polygonSet.delete(t)}))},removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr.length=0},clear(){},createFeaturePolygonModel(t,e){return new l["FeaturePolygonModel"](e,t)},async init(){this.initPolygon(),this.initCluster()},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:r,geometry:n,properties:i}=e;let o=[];return i&&i.center&&(o=i.center),{bbox:r,coordinates:n.coordinates,center:o.length?o:Object(l["getCenterPoint"])(n.coordinates)}},initPolygon(){this.modelArr.forEach(t=>{t.geo;const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson(t.geo),i=this.createFeaturePolygonModel(t.id,r);this.fpModelArr.push(i)})},initCluster(){const t=new l["LCluster"]((t,e,r)=>{const n=t.getId();if(r)return this.$emit("callback",{id:n,isShow:!0}),void(this.multiPolygonMap.has(n)&&this.multiPolygonMap.delete(n));if(!this.multiPolygonMap.has(n)){var i;const t=null===(i=this.modelArr.find(t=>t.id==n))||void 0===i?void 0:i.geo;if(t){const{coordinates:e}=this._serializeGeoJson(t);this.multiPolygonMap.set(n,e[0])}}this.$emit("callback",{id:n,isShow:!1})},{text:this.clusterPolygonModel.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,aggregationCallback:t=>{this.mergeGeoJson(t)},removeAggregationCallback:t=>{const e=t.getId();e&&this.removeAggregation(e)}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),r=t.getVectorLayer(e,this.distance);this.map.addLayer(r)},selectGPSAll(t){this.polygonSet.forEach(e=>{e.selectGPS(t)}),this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},ut=lt,ct=x(ut,ot,at,!1,null,"148ba5e7",null),ht=ct.exports;ht.install=t=>{t.install(ht.name,ht)};var ft=ht,pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},dt=[];var gt={name:"RyClustersMarker",props:{modelArr:{type:Array,default:()=>[]},text:{type:String,default:()=>"台"},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},distance:{type:Number,default:200},fontColor:{type:String,default:"#fff"},src:{type:String,default:()=>null},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0}},data(){return{fpModelArr:[],featurePolygon:new l["FeaturePolygon"](this.gpsType),scan:new l["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.clear(),this.init()},methods:{clear(){},createFeaturePolygonModel(t,e){return new l["FeaturePolygonModel"](e,t)},async init(){this.initFeature(),this.initCluster()},initFeature(){this.modelArr.forEach(t=>{const e=this.createFeaturePolygonModel(t.id,[t.x,t.y]);this.fpModelArr.push(e)})},initCluster(){const t=new l["LClusterMarker"]((t,e,r)=>{const n=t.getId();r?this.$emit("callback",{id:n,isShow:!0}):this.$emit("callback",{id:n,isShow:!1})},{text:this.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,src:this.src,aggregationCallback:t=>{},removeAggregationCallback:t=>{}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),r=t.getVectorLayer(e,this.distance);this.map.addLayer(r)},selectGPSAll(t){this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},yt=gt,vt=x(yt,pt,dt,!1,null,"64b08b64",null),mt=vt.exports;mt.install=t=>{t.install(mt.name,mt)};var _t=mt,bt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},xt=[];class wt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var Ot={name:"RyPolygonGeo",props:{...new wt},data(){return{polygon:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo)return;let t=[];if(this.model.geo){const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson();this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=Object(l["createPolygonBoundary"])(this.model.geo,this.model),this.map.addLayer(this.polygon),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:r,properties:n}=t;let i=[];return n&&n.center&&(i=n.center),{bbox:e,coordinates:r.coordinates,center:i.length?i:Object(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},show(){},hide(){},selectGPSAll(t){},remove(){this.map&&this.polygon&&(this.map.removeLayer(this.polygon),this.polygon=null)},getId(){return this.id}}},Et=Ot,St=x(Et,bt,xt,!1,null,null,null),Ct=St.exports;Ct.install=t=>{t.install(Ct.name,Ct)};var Tt=Ct,Pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"vector-map"})},jt=[],Rt={name:"RyVectorMap",props:{isAnalysisBBOX:{type:Boolean,default:!0},isAnalysisCenter:{type:Boolean,default:!0},modelArr:{type:Array,default:()=>[]},delayTime:{type:Number,default:()=>50},bindMapClick:{type:Boolean,default:!1},isDrag:{type:Boolean,default:!0}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,vmap:null,lastX:0,lastY:0,moveend:null,polygonMap:null}},watch:{modelArr(t){this.initLayers(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)}},mounted(){},methods:{async loadMap(t){const{map:e,vmap:r}=await this.lMap.initVectorMap({el:t,isAnalysisBBOX:this.isAnalysisBBOX,isAnalysisCenter:this.isAnalysisCenter,delayTime:this.delayTime,isDrag:this.isDrag,callback:t=>this.$emit("initLayersEvent",t)});this.map=e,this.vmap=r,this.polygonMap=r.getLayerMap,this._bingMapEvent(),this.$emit("load",{map:e,vmap:r}),this.modelArr.length&&this.initLayers(val)},initLayers(t){this.vmap&&this.vmap.initLayers(t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getProperties(),n=this.map.getView(),[i,o]=n.getCenter(),a=e.getId();r&&this.$emit("mapClick",{...r,id:a||null,currentX:i,currentY:o})}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},setPolygonColor(t,e,r=!0){if(this.polygonMap.has(t)){const n=this.polygonMap.get(t);n.setPolygonColor(e),r&&this._setZoom()}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)}}},Mt=Rt,At=(r("e6f1"),x(Mt,Pt,jt,!1,null,"38afeddc",null)),Lt=At.exports;Lt.install=t=>{t.install(Lt.name,Lt)};var It=Lt,kt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Ft=[];const Dt={color:"red",width:2,zIndex:1};class Nt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"linenIsert",{type:Object,default:()=>null}),h(this,"isLineFit",{type:Boolean,default:!0}),h(this,"lineAppend",{type:Array,default:()=>[]}),h(this,"startMarkerDto",{type:Object,default:()=>null}),h(this,"endMarkerDto",{type:Object,default:()=>null}),h(this,"moveMarkerDto",{type:Object,default:()=>null}),h(this,"clearLiens",{type:Boolean,default:!1}),h(this,"endMarkerPoint",{type:Array,default:()=>[]}),h(this,"lineDto",{type:Object,default:()=>Dt})}}var Gt={name:"RyLines",props:{...new Nt},data(){return{lines:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1,lastLinesDto:null,moveMarker:null,endMarker:null,startMarker:null,pineArr:[],lastLineX:0,lastLineY:0,cachePointArr:new Array,drawingEnd:!1,isFist:!0,lastColor:null,am:new l["AM"]}},watch:{model(t){this.init()},linenIsert(t){this.map&&t&&this._insertLineAndMarker(t)},gpsType(t){},clearLiens(t){t&&this.clearLine()},lineAppend(t){t.length>0&&this.map&&(this.appendCoordinate(t),this.setMarkerPoint(this.endMarker,t))}},created(){this.init()},methods:{init(){this.map&&(this.clearLine(),this.model&&(this.lastType=this.gpsType,this._insertLineAndMarker(this.model)))},_insertLineAndMarker(t){t.color;const e=t.pointArr;if(this.isLineFit&&this.calculateLineBBOX(e),this.initMarker(e[0]),!t.isAppend||!this.pineArr.length){this._insertPoint(t);const r=this.createPolyline(t),n=e.length-1;return this.setMarkerPoint(this.endMarker,e[n]),this.restLastData(e),void this.pineArr.push(r)}e.forEach(t=>{this.appendCoordinate(t)});const r=e.length-1;this.setMarkerPoint(this.endMarker,e[r]),this.restLastData(e)},async calculateLineBBOX(t){return await new Promise(e=>{t.forEach(t=>{this.am.getLngAndLatMaxMin({X:t[0],Y:t[1]})});const r=this.am.getLngLats();Object(l["fitNew"])(this.map,[[r[0],r[1]],[r[2],r[3]]]),e()})},initMarker(t){(this.startMarkerDto||this.endMarkerDto)&&(this.startMarker||this.endMarker||(this.startMarker=this.createStartMarker(this.startMarkerDto,t),this.endMarker=this.createStartMarker(this.endMarkerDto)))},setMarkerPoint(t,e){t&&e.length>1&&t.setPosition(e,this.gpsType)},restLastData(t){if(t.length>0){const[e,r]=t[t.length-1];this.lastLineX=e,this.lastLineY=r}},_insertPoint(t){this.lastLineX>0&&this.lastLineY>0&&t&&t.pointArr.unshift([this.lastLineX,this.lastLineY])},createPolyline(t={color:"rgb(0,0,255)",width:2,pointArr:[],zIndex:1e3}){return new l["Polyline"]({...t,type:this.gpsType},this.map)},createStartMarker({offset:t,url:e,width:r,height:n},i=[]){const o=new l["LMarker"](e,r,n);return o.setOffset(t),i.length&&o.setPosition(i,this.gpsType),this.map.addOverlay(o.getMarker()),o},getLngLatGCJ02(t){const e=[];return t.forEach(t=>{const{lon:r,lat:n}=l["GPS"].gcj_encrypt(t[0],t[1]);e.push([r,n])}),e},removeLines(){this.pineArr.forEach(t=>{t.removePolyline()}),this.pineArr=[]},removeLineMarker(){this.map&&(this.endMarker&&this.map.removeOverlay(this.endMarker.getMarker()),this.startMarker&&this.map.removeOverlay(this.startMarker.getMarker()),this.moveMarker&&this.map.removeOverlay(this.moveMarker.getMarker()),this.moveMarker=null,this.endMarker=null,this.startMarker=null)},clearLine(){this.removeLines(),this.removeLineMarker(),this.cachePointArr=[],this.lastColor=null,this.lastLineX=0,this.lastLineY=0,this.am=null,this.am=new l["AM"]},appendCoordinate(t=[]){if(!t.length)return;this.pineArr.length||this._insertLineAndMarker({...this.lineDto,pointArr:[t],isAppend:!1});const e=this.pineArr[this.pineArr.length-1];e.appendCoordinate(t)},selectGPSAll(t){}}},zt=Gt,Bt=x(zt,kt,Ft,!1,null,null,null),Ut=Bt.exports;Ut.install=t=>{t.install(Ut.name,Ut)};var Vt=Ut,Xt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"map-box"},[r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?r("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,isHideAreaAndKM:t.isHideAreaAndKM},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}}),t._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},Wt=[];class Ht{constructor(){this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null}}}class Yt{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:28},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[2575,1450]},this.bbox={type:Array,default:()=>[]},this.url={type:String,default:()=>null},this.imageSize={type:Array,default:()=>[0,0,7247,3562]},this.imageExtent={type:Array,default:()=>[500,400,5e3,2700]}}}var qt=r("c810"),Kt=r("e7df"),Zt=r("a2c7"),Jt=r("f5dd"),$t={name:"RyStaticMap",components:{RyMapTool:T},props:{...new Ht,...new Yt,...new d},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0}},methods:{getImageLayer(){return new qt["default"]({source:new Kt["default"]({crossOrigin:"anonymous",imageSize:this.imageSize,imageExtent:this.imageExtent,url:this.url})})},getProjection(){return new Jt["a"]({code:3875,extent:this.imageExtent,units:"m"})},getView(){return new Zt["default"]({projection:"EPSG:3857",center:this.center,Projection:this.getProjection(),zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom})},async loadMap(t){const e=await this.lMap.initStaticMap(t,{view:this.getView(),layer:this.getImageLayer()});this.map=e,this.$emit("load",{map:e,mapServices:this.lMap,ryMapTool:this.$refs.mapTool})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},Qt=$t,te=(r("b302"),x(Qt,Xt,Wt,!1,null,"a77ac42c",null)),ee=te.exports;ee.install=t=>{t.install(ee.name,ee)};var re=ee,ne=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"map-box"},[r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?r("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,gpsType:t.lastMapType},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}}),t._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},ie=[];class oe{constructor(){h(this,"isShowSwitchMap",{type:Boolean,default:!0}),h(this,"urls",{type:Array,default:()=>[]}),h(this,"boundaryModel",{type:Object,default:()=>null}),this.mapType={type:Number,default:0},this.layerType={type:Number,default:2},this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.bindMapMoveend={type:Boolean,default:!1},this.isDisabledSwitchMapTabEvent={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null},this.m={type:Number,default:()=>3e3},this.switchMapDefaultTypeOrLayer={type:Array,default:()=>null},this.mapTypeAndLayer={type:Array,default:()=>[{id:0,icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:1,icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:2,icon:"el-icon--Bing",activeIcon:"el-icon--Bing-copy",name:"Bing地图",layer:[{id:1,name:"卫星"},{id:2,name:"卫星组合"}]}]}}}var ae={name:"RyOfflineMap",components:{RyMapTool:T},props:{...new oe,...new p,...new d},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},bindMapMoveend(t){this.bindMapMoveend!==t&&(this.bindMapMoveend=t,this._bingMapMoveend())},m(t){this.m=t},boundaryModel(t){this.map}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{changeSwitchMap({mapType:t,layerType:e}){this.lMap.selectMapLayer(t,e),this._setMaxZoom(t,e);let r=t;if(t>1&&(r=0),this.lastMapType==r)return;this.lastMapType=r;const n=this.lMap.getCenter();if(n&&n.length)if(0==r){const{lon:t,lat:e}=l["GPS"].gcj_decrypt(n[0],n[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=l["GPS"].gcj_encrypt(n[0],n[1]);this.lMap.setCenter([t,e])}this.$emit("changeSwitchMap",{mapType:r,layerType:e,type:t})},_setMaxZoom(t,e){this.setMaxZoom(18)},async loadMap(t){this.lMap.initOfflineMap(100,{el:t,urls:this.urls,callback:({map:t,lMap:e})=>{e.setView(this.center,this.bbox),e.getView().fit(this.bbox,[50,50,50,50]);const{geo:r,width:n,color:i}=this.boundaryModel;e.initMapMaskEvent(t.getLayers(),r,n,i)}})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},_bingMapMoveend(){this.bindMapMoveend?this._mapMoveend():this._mapMoveend(!0)},getViewOptions(){return{projection:this.projection,center:this.center,zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom}},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_mapMoveend(t=!1){this.moveend=t=>{const[e,r]=this.lMap.getCenter();let n=0;if(this.lastX!==e&&this.lastY!==r)return n=Object(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},se=ae,le=(r("f367"),x(se,ne,ie,!1,null,"110d9690",null)),ue=le.exports;ue.install=t=>{t.install(RyMap.name,ue)};var ce=ue,he=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},fe=[];class pe extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var de={name:"RyKMLs",props:{...new pe},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,kmlMap:new Map,isCreate:!0,lastType:-1,urls:new Map,gcj02Urls:new Map}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init(t))},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},insert(t){this.insert=t,this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},inserts(t){this.inserts=t,this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()}},created(){this.lastType=this.gpsType,this.init(this.modelArr)},methods:{init(t){t&&t.length&&(t.forEach(t=>{this._insert(t)}),this.isFit&&setTimeout(()=>{this.setFit()},50))},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t;if(!this.kmlMap.has(e)){const t=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);this.kmlMap.set(e,t),this.urls.set(e,r),h&&this.gcj02Urls.set(e,h)}this.setBBOXArr(t.id,n)},setBBOXArr(t,e){if(this.bboxMap.has(t)||(this.bbox.push(e),this.bboxMap.set(t,e)),!this.bboxMapGCJ02.has(t)){const r=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(r),this.bboxMapGCJ02.set(t,r)}},setUrl(t,e){this.kmlMap.has(t)&&this.kmlMap.get(t).setUrl(e)},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["fitNew"])(this.map,1==this.gpsType?this.bboxGCJ02:this.bbox):this.setFitFist(1==this.gpsType?this.bboxGCJ02[0]:this.bbox[0]))},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kmlMap.forEach(t=>{t.removeKML(),t=null}),this.kmlMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear(),this.urls.clear(),this.gcj02Urls.clear()},selectGPSAll(t){const e=1==t?this.gcj02Urls:this.urls;e.forEach((t,e)=>{this.setUrl(e,t)})},showAll(){this.kmlMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.kmlMap.forEach(t=>t.hide())}}},ge=de,ye=x(ge,he,fe,!1,null,null,null),ve=ye.exports;ve.install=t=>{t.install(ve.name,ve)};var me=ve,_e=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},be=[];class xe extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var we={name:"RyKML",props:{...new xe},data(){return{bbox:[],bboxGCJ02:[],kml:null,lastType:-1,url:null,gcj02Url:null}},watch:{model(t){this._remove(),t.length&&(this.model=t,this.init(t))},clear(t){t&&this._remove()},isShow(t){t?this.showAll():this.hideAll()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.lastType=this.gpsType,this.model&&this.init(this.model)},methods:{init(t){this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t,f=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);this.kml=f,this.url=r,this.gcj02Url=h,this.setBBOXArr(n)},setBBOXArr(t){this.bbox=t;const e=this.convertBBoxGCJ02(t);this.bboxGCJ02=e},setUrl(t){this.kml&&this.kml.setUrl(t)},setFit(){this.bbox.length&&this.map&&this.setFitFist(1==this.gpsType?this.bboxGCJ02:this.bbox)},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kml&&(this.kml.removeKML(),this.bbox=[],this.bboxGCJ02=[],this.url=null,this.gcj02Url=null)},selectGPSAll(t){const e=1==t?this.gcj02Url:this.url;this.setUrl(e)},show(){this.kml&&(this.kml.show(),this.isFit&&setTimeout(()=>{this.setFit()},50))},hide(){this.kml&&this.kml.hide()}}},Oe=we,Ee=x(Oe,_e,be,!1,null,null,null),Se=Ee.exports;Se.install=t=>{t.install(Se.name,Se)};var Ce=Se;const Te=[G,z,B,Z,it,ft,Tt,_t,It,Vt,re,ce,me,Ce],Pe=(t,e)=>{Te.forEach(e=>{t.component(e.name,e)})};"undefined"!==typeof window&&window.Vue&&Pe(window.Vue);var je={install:Pe};e["default"]=je},fced:function(t,e,r){"use strict";r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return a}));var n={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={9001:n.METERS,9002:n.FEET,9003:n.USFEET,9101:n.RADIANS,9102:n.DEGREES};function o(t){return i[t]}var a={};a[n.RADIANS]=6370997/(2*Math.PI),a[n.DEGREES]=2*Math.PI*6370997/360,a[n.FEET]=.3048,a[n.METERS]=1,a[n.USFEET]=1200/3937,e["b"]=n},fd4d:function(t,e,r){"use strict";function n(t,e,r,n,i){var o;for(e+=n;e<r;e+=n)if(o=i(t.slice(e-n,e),t.slice(e,e+n)),o)return o;return!1}r.d(e,"a",(function(){return n}))},fe37:function(t,e,r){"use strict";var n=r("e269"),i=r("e300"),o=r("183a"),a=r("01d4"),s=r("1af9"),l=r("9c78"),u=r("509b"),c=r("0b2d"),h=r("d079"),f=r("0ec0"),p=r("617d"),d=r("57cb"),g=r("38f3"),y=r("1e8d"),v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=function(t){function e(e,r){var n=t.call(this,e)||this;n.map_=e,n.clickTimeoutId_,n.emulateClicks_=!1,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=void 0===r?1:r,n.down_=null;var i=n.map_.getViewport();return n.activePointers_=[],n.trackedTouches_={},n.element_=i,n.pointerdownListenerKey_=Object(y["a"])(i,h["a"].POINTERDOWN,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=Object(y["a"])(i,h["a"].POINTERMOVE,n.relayMoveEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(a["a"].TOUCHMOVE,n.boundHandleTouchMove_,!!p["e"]&&{passive:!1}),n}return v(e,t),e.prototype.emulateClick_=function(t){var e=new u["a"](c["a"].CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new u["a"](c["a"].DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new u["a"](c["a"].SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,r=e.pointerId;if(e.type==c["a"].POINTERUP||e.type==c["a"].POINTERCANCEL){for(var n in delete this.trackedTouches_[r],this.trackedTouches_)if(this.trackedTouches_[n].target!==e.target){delete this.trackedTouches_[n];break}}else e.type!=c["a"].POINTERDOWN&&e.type!=c["a"].POINTERMOVE||(this.trackedTouches_[r]=e);this.activePointers_=Object(g["c"])(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new u["a"](c["a"].POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(y["c"]),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);var e=new u["a"](c["a"].POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var r in this.dispatchEvent(e),this.down_={},t){var n=t[r];this.down_[r]="function"===typeof n?d["c"]:n}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(y["a"])(i,c["a"].POINTERMOVE,this.handlePointerMove_,this),Object(y["a"])(i,c["a"].POINTERUP,this.handlePointerUp_,this),Object(y["a"])(this.element_,c["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(Object(y["a"])(this.element_.getRootNode(),c["a"].POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new u["a"](c["a"].POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new u["a"](c["a"].POINTERMOVE,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(y["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(a["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(y["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(y["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(f["a"]),_=m,b=r("7238"),x=r("592d"),w=r("e637"),O=r("7b4f"),E=r("070d"),S=r("57cc"),C=r("a2c7"),T=r("496f"),P=r("a896"),j=r("92fa"),R=r("0af5"),M=r("256f"),A=r("1300"),L=r("345d"),I=r("0999"),k=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function F(t){t instanceof s["a"]?t.setMapInternal(null):t instanceof l["b"]&&t.getLayers().forEach(F)}function D(t,e){if(t instanceof s["a"])t.setMapInternal(e);else if(t instanceof l["b"])for(var r=t.getLayers().getArray(),n=0,i=r.length;n<i;++n)D(r[n],e)}var N=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=G(e);r.renderComplete_,r.loaded_=!0,r.boundHandleBrowserEvent_=r.handleBrowserEvent.bind(r),r.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,r.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:p["a"],r.postRenderTimeoutHandle_,r.animationDelayKey_,r.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(r),r.coordinateToPixelTransform_=Object(P["c"])(),r.pixelToCoordinateTransform_=Object(P["c"])(),r.frameIndex_=0,r.frameState_=null,r.previousExtent_=null,r.viewPropertyListenerKey_=null,r.viewChangeListenerKey_=null,r.layerGroupPropertyListenerKeys_=null,r.viewport_=document.createElement("div"),r.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),r.viewport_.style.position="relative",r.viewport_.style.overflow="hidden",r.viewport_.style.width="100%",r.viewport_.style.height="100%",r.overlayContainer_=document.createElement("div"),r.overlayContainer_.style.position="absolute",r.overlayContainer_.style.zIndex="0",r.overlayContainer_.style.width="100%",r.overlayContainer_.style.height="100%",r.overlayContainer_.style.pointerEvents="none",r.overlayContainer_.className="ol-overlaycontainer",r.viewport_.appendChild(r.overlayContainer_),r.overlayContainerStopEvent_=document.createElement("div"),r.overlayContainerStopEvent_.style.position="absolute",r.overlayContainerStopEvent_.style.zIndex="0",r.overlayContainerStopEvent_.style.width="100%",r.overlayContainerStopEvent_.style.height="100%",r.overlayContainerStopEvent_.style.pointerEvents="none",r.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",r.viewport_.appendChild(r.overlayContainerStopEvent_),r.mapBrowserEventHandler_=null,r.moveTolerance_=e.moveTolerance,r.keyboardEventTarget_=n.keyboardEventTarget,r.targetChangeHandlerKeys_=null,r.controls=n.controls||new i["a"],r.interactions=n.interactions||new i["a"],r.overlays_=n.overlays,r.overlayIdIndex_={},r.renderer_=null,r.postRenderFunctions_=[],r.tileQueue_=new S["a"](r.getTilePriority.bind(r),r.handleTileChange_.bind(r)),r.addChangeListener(w["a"].LAYERGROUP,r.handleLayerGroupChanged_),r.addChangeListener(w["a"].VIEW,r.handleViewChanged_),r.addChangeListener(w["a"].SIZE,r.handleSizeChanged_),r.addChangeListener(w["a"].TARGET,r.handleTargetChanged_),r.setProperties(n.values);var a=r;return!e.view||e.view instanceof C["default"]||e.view.then((function(t){a.setView(new C["default"](t))})),r.controls.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(r)),r.controls.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.interactions.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(r)),r.interactions.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.overlays_.addEventListener(o["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(r)),r.overlays_.addEventListener(o["a"].REMOVE,function(t){var e=t.element,r=e.getId();void 0!==r&&delete this.overlayIdIndex_[r.toString()],t.element.setMap(null)}.bind(r)),r.controls.forEach(function(t){t.setMap(this)}.bind(r)),r.interactions.forEach(function(t){t.setMap(this)}.bind(r)),r.overlays_.forEach(r.addOverlayInternal_.bind(r)),r}return k(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){var e=this.getLayerGroup().getLayers();e.push(t)},e.prototype.handleLayerAdd_=function(t){D(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=this.getCoordinateFromPixelInternal(t);r=void 0!==r?r:{};var i=void 0!==r.hitTolerance?r.hitTolerance:0,o=void 0!==r.layerFilter?r.layerFilter:d["b"],a=!1!==r.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,a,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var r=[];return this.forEachFeatureAtPixel(t,(function(t){r.push(t)}),e),r},e.prototype.getAllLayers=function(){var t=[];function e(r){r.forEach((function(r){r instanceof l["b"]?e(r.getLayers()):t.push(r)}))}return e(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=r||{},i=void 0!==n.hitTolerance?n.hitTolerance:0,o=n.layerFilter||d["b"];return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,o)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var r=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};var n=void 0!==e.layerFilter?e.layerFilter:d["b"],i=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,o,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),r="changedTouches"in t?t.changedTouches[0]:t;return[r.clientX-e.left,r.clientY-e.top]},e.prototype.getTarget=function(){return this.get(w["a"].TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object(M["toUserCoordinate"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(P["a"])(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(w["a"].LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof i["a"])e.setLayers(t);else{var r=e.getLayers();r.clear(),r.extend(t)}},e.prototype.getLayers=function(){var t=this.getLayerGroup().getLayers();return t},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e];if(n.visible){var i=n.layer.getRenderer();if(i&&!i.ready)return!0;var o=n.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(M["fromUserCoordinate"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(P["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(w["a"].SIZE)},e.prototype.getView=function(){return this.get(w["a"].VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,r,n){return Object(S["b"])(this.frameState_,t,e,r,n)},e.prototype.handleBrowserEvent=function(t,e){var r=e||t.type,n=new u["a"](r,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,r=e.type;if(r===h["a"].POINTERDOWN||r===a["a"].WHEEL||r===a["a"].KEYDOWN){var n=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():n,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===n?n.documentElement:i).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var s=this.getInteractions().getArray().slice(),l=s.length-1;l>=0;l--){var u=s[l];if(u.getMap()===this&&u.getActive()&&this.getTargetElement()){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var r=this.maxTilesLoading_,n=r;if(t){var i=t.viewHints;if(i[T["a"].ANIMATING]||i[T["a"].INTERACTING]){var o=Date.now()-t.time>8;r=o?0:8,n=o?0:2}}e.getTilesLoading()<r&&(e.reprioritize(),e.loadMoreTiles(r,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(E["a"].RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(E["a"].RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new b["a"](x["a"].LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new b["a"](x["a"].LOADSTART,this,t))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)Object(y["c"])(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(I["f"])(this.viewport_)}var r=this.getTargetElement();if(r){for(var n in r.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new _(this,this.moveTolerance_),c["a"])this.mapBrowserEventHandler_.addEventListener(c["a"][n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_,!!p["e"]&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:r;this.targetChangeHandlerKeys_=[Object(y["a"])(o,a["a"].KEYDOWN,this.handleBrowserEvent,this),Object(y["a"])(o,a["a"].KEYPRESS,this.handleBrowserEvent,this),Object(y["a"])(i,a["a"].RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(y["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(y["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(y["a"])(t,O["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(y["a"])(t,a["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(y["c"]),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new l["a"]("addlayer",t)),this.layerGroupPropertyListenerKeys_=[Object(y["a"])(t,O["a"].PROPERTYCHANGE,this.render,this),Object(y["a"])(t,a["a"].CHANGE,this.render,this),Object(y["a"])(t,"addlayer",this.handleLayerAdd_,this),Object(y["a"])(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){var e=this.getLayerGroup().getLayers();return e.remove(t)},e.prototype.handleLayerRemove_=function(t){F(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,r=this.getSize(),n=this.getView(),i=this.frameState_,o=null;if(void 0!==r&&Object(L["b"])(r)&&n&&n.isDef()){var a=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=n.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(R["getForViewAndSize"])(s.center,s.resolution,s.rotation,r),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:r,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:Object(A["c"])(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=Object(R["getForViewAndSize"])(s.nextCenter,s.nextResolution,l,r)}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i){var u=!this.previousExtent_||!Object(R["isEmpty"])(this.previousExtent_)&&!Object(R["equals"])(o.extent,this.previousExtent_);u&&(this.dispatchEvent(new b["a"](x["a"].MOVESTART,this,i)),this.previousExtent_=Object(R["createOrUpdateEmpty"])(this.previousExtent_))}var c=this.previousExtent_&&!o.viewHints[T["a"].ANIMATING]&&!o.viewHints[T["a"].INTERACTING]&&!Object(R["equals"])(o.extent,this.previousExtent_);c&&(this.dispatchEvent(new b["a"](x["a"].MOVEEND,this,o)),Object(R["clone"])(o.extent,this.previousExtent_))}this.dispatchEvent(new b["a"](x["a"].POSTRENDER,this,o)),this.renderComplete_=this.hasListener(x["a"].LOADSTART)||this.hasListener(x["a"].LOADEND)||this.hasListener(E["a"].RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new l["a"]("removelayer",e)),this.set(w["a"].LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(w["a"].SIZE,t)},e.prototype.setTarget=function(t){this.set(w["a"].TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof C["default"])this.set(w["a"].VIEW,t);else{this.set(w["a"].VIEW,new C["default"]);var e=this;t.then((function(t){e.setView(new C["default"](t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var r=getComputedStyle(t),n=t.offsetWidth-parseFloat(r["borderLeftWidth"])-parseFloat(r["paddingLeft"])-parseFloat(r["paddingRight"])-parseFloat(r["borderRightWidth"]),i=t.offsetHeight-parseFloat(r["borderTopWidth"])-parseFloat(r["paddingTop"])-parseFloat(r["paddingBottom"])-parseFloat(r["borderBottomWidth"]);isNaN(n)||isNaN(i)||(e=[n,i],!Object(L["b"])(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,r=getComputedStyle(this.viewport_);r.width&&r.height&&(e=[parseInt(r.width,10),parseInt(r.height,10)]),t.setViewportSize(e)}},e}(n["a"]);function G(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var r,n,o,a={},s=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new l["b"]({layers:t.layers});return a[w["a"].LAYERGROUP]=s,a[w["a"].TARGET]=t.target,a[w["a"].VIEW]=t.view instanceof C["default"]?t.view:new C["default"],void 0!==t.controls&&(Array.isArray(t.controls)?r=new i["a"](t.controls.slice()):(Object(j["a"])("function"===typeof t.controls.getArray,47),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new i["a"](t.interactions.slice()):(Object(j["a"])("function"===typeof t.interactions.getArray,48),n=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?o=new i["a"](t.overlays.slice()):(Object(j["a"])("function"===typeof t.overlays.getArray,49),o=t.overlays):o=new i["a"],{controls:r,interactions:n,keyboardEventTarget:e,overlays:o,values:a}}e["a"]=N},ff80:function(t,e,r){"use strict";var n=r("e269"),i=r("1300"),o=r("256f"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=t.call(this)||this;r.projection=Object(o["get"])(e.projection),r.attributions_=l(e.attributions),r.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,r.loading=!1,r.state_=void 0!==e.state?e.state:"ready",r.wrapX_=void 0!==e.wrapX&&e.wrapX,r.interpolate_=!!e.interpolate,r.viewResolver=null,r.viewRejector=null;var n=r;return r.viewPromise_=new Promise((function(t,e){n.viewResolver=t,n.viewRejector=e})),r}return a(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return Object(i["b"])()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(n["a"]);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=s}})}));