rk-web-core 0.9.78 → 0.9.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rk-web-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rk-web-core",[],e):"object"==typeof exports?exports["rk-web-core"]=e():t["rk-web-core"]=e()}(window,(function(){return function(t){function e(e){for(var n,r,i=e[0],o=e[1],a=0,s=[];a<i.length;a++)r=i[a],Object.prototype.hasOwnProperty.call(P,r)&&P[r]&&s.push(P[r][0]),P[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);for(D&&D(e);s.length;)s.shift()()}var n=window.webpackHotUpdaterk_web_core;window.webpackHotUpdaterk_web_core=function(t,e){!function(t,e){if(!w[t]||!b[t])return;for(var n in b[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n]);0==--y&&0===_&&C()}(t,e),n&&n(t,e)};var r,i=!0,o="bd4d75af2e864f4ad023",a={},s=[],c=[];function u(t){var e=L[t];if(!e)return R;var n=function(n){return e.hot.active?(L[n]?-1===L[n].parents.indexOf(t)&&L[n].parents.push(t):(s=[t],r=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),s=[]),R(n)},i=function(t){return{configurable:!0,enumerable:!0,get:function(){return R[t]},set:function(e){R[t]=e}}};for(var o in R)Object.prototype.hasOwnProperty.call(R,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(n,o,i(o));return n.e=function(t){return"ready"===f&&d("prepare"),_++,R.e(t).then(e,(function(t){throw e(),t}));function e(){_--,"prepare"===f&&(x[t]||A(t),0===_&&0===y&&C())}},n.t=function(t,e){return 1&e&&(t=n(t)),R.t(t,-2&e)},n}function l(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(t,e){if(void 0===t)n._selfAccepted=!0;else if("function"==typeof t)n._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)n._acceptedDependencies[t[r]]=e||function(){};else n._acceptedDependencies[t]=e||function(){}},decline:function(t){if(void 0===t)n._selfDeclined=!0;else if("object"==typeof t)for(var e=0;e<t.length;e++)n._declinedDependencies[t[e]]=!0;else n._declinedDependencies[t]=!0},dispose:function(t){n._disposeHandlers.push(t)},addDisposeHandler:function(t){n._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=n._disposeHandlers.indexOf(t);e>=0&&n._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,f){case"idle":(m={})[e]=t[e],d("ready");break;case"ready":I(e);break;case"prepare":case"check":case"dispose":case"apply":(v=v||[]).push(e)}},check:S,apply:E,status:function(t){if(!t)return f;h.push(t)},addStatusHandler:function(t){h.push(t)},removeStatusHandler:function(t){var e=h.indexOf(t);e>=0&&h.splice(e,1)},data:a[e]};return r=void 0,n}var h=[],f="idle";function d(t){f=t;for(var e=0;e<h.length;e++)h[e].call(null,t)}var p,m,g,v,y=0,_=0,x={},b={},w={};function M(t){return+t+""===t?+t:t}function S(t){if("idle"!==f)throw new Error("check() is only allowed in idle status");return i=t,d("check"),(e=1e4,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=R.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(t){return n(t)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return d(T()?"ready":"idle"),null;b={},x={},w=t.c,g=t.h,d("prepare");var e=new Promise((function(t,e){p={resolve:t,reject:e}}));for(var n in m={},P)A(n);return"prepare"===f&&0===_&&0===y&&C(),e}));var e}function A(t){w[t]?(b[t]=!0,y++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=R.p+""+t+"."+o+".hot-update.js",e.crossOrigin="anonymous",document.head.appendChild(e)}(t)):x[t]=!0}function C(){d("ready");var t=p;if(p=null,t)if(i)Promise.resolve().then((function(){return E(i)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&e.push(M(n));t.resolve(e)}}function E(e){if("ready"!==f)throw new Error("apply() is only allowed in ready status");return function e(n){var i,c,u,l,h;function f(t){for(var e=[t],n={},r=e.map((function(t){return{chain:[t],id:t}}));r.length>0;){var i=r.pop(),o=i.id,a=i.chain;if((l=L[o])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s<l.parents.length;s++){var c=l.parents[s],u=L[c];if(u){if(u.hot._declinedDependencies[o])return{type:"declined",chain:a.concat([c]),moduleId:o,parentId:c};-1===e.indexOf(c)&&(u.hot._acceptedDependencies[o]?(n[c]||(n[c]=[]),p(n[c],[o])):(delete n[c],e.push(c),r.push({chain:a.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];-1===t.indexOf(r)&&t.push(r)}}T();var y={},_=[],x={},b=function(){console.warn("[HMR] unexpected require("+A.moduleId+") to disposed module")};for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var A;h=M(S),A=m[S]?f(h):{type:"disposed",moduleId:S};var C=!1,E=!1,I=!1,O="";switch(A.chain&&(O="\nUpdate propagation: "+A.chain.join(" -> ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of self decline: "+A.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(C=new Error("Aborted because "+h+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(A),E=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),I=!0;break;default:throw new Error("Unexception type "+A.type)}if(C)return d("abort"),Promise.reject(C);if(E)for(h in x[h]=m[h],p(_,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,h)&&(y[h]||(y[h]=[]),p(y[h],A.outdatedDependencies[h]));I&&(p(_,[A.moduleId]),x[h]=b)}var k,B=[];for(c=0;c<_.length;c++)h=_[c],L[h]&&L[h].hot._selfAccepted&&x[h]!==b&&!L[h].hot._selfInvalidated&&B.push({module:h,parents:L[h].parents.slice(),errorHandler:L[h].hot._selfAccepted});d("dispose"),Object.keys(w).forEach((function(t){!1===w[t]&&function(t){delete P[t]}(t)}));var D,F,U=_.slice();for(;U.length>0;)if(h=U.pop(),l=L[h]){var j={},N=l.hot._disposeHandlers;for(u=0;u<N.length;u++)(i=N[u])(j);for(a[h]=j,l.hot.active=!1,delete L[h],delete y[h],u=0;u<l.children.length;u++){var z=L[l.children[u]];z&&((k=z.parents.indexOf(h))>=0&&z.parents.splice(k,1))}}for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(l=L[h]))for(F=y[h],u=0;u<F.length;u++)D=F[u],(k=l.children.indexOf(D))>=0&&l.children.splice(k,1);d("apply"),void 0!==g&&(o=g,g=void 0);for(h in m=void 0,x)Object.prototype.hasOwnProperty.call(x,h)&&(t[h]=x[h]);var G=null;for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(l=L[h])){F=y[h];var H=[];for(c=0;c<F.length;c++)if(D=F[c],i=l.hot._acceptedDependencies[D]){if(-1!==H.indexOf(i))continue;H.push(i)}for(c=0;c<H.length;c++){i=H[c];try{i(F)}catch(t){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:h,dependencyId:F[c],error:t}),n.ignoreErrored||G||(G=t)}}}for(c=0;c<B.length;c++){var W=B[c];h=W.module,s=W.parents,r=h;try{R(h)}catch(t){if("function"==typeof W.errorHandler)try{W.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:h,error:e,originalError:t}),n.ignoreErrored||G||(G=e),G||(G=t)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:h,error:t}),n.ignoreErrored||G||(G=t)}}if(G)return d("fail"),Promise.reject(G);if(v)return e(n).then((function(t){return _.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t}));return d("idle"),new Promise((function(t){t(_)}))}(e=e||{})}function T(){if(v)return m||(m={}),v.forEach(I),v=void 0,!0}function I(e){Object.prototype.hasOwnProperty.call(m,e)||(m[e]=t[e])}var L={},P={0:0};function R(e){if(L[e])return L[e].exports;var n=L[e]={i:e,l:!1,exports:{},hot:l(e),parents:(c=s,s=[],c),children:[]};return t[e].call(n.exports,n,n.exports,u(e)),n.l=!0,n.exports}R.e=function(t){var e=[],n=P[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=P[t]=[e,r]}));e.push(n[2]=r);var i,a=document.createElement("script");a.charset="utf-8",a.timeout=120,R.nc&&a.setAttribute("nonce",R.nc),a.src=function(t){return R.p+""+t+"."+o+".js"}(t),0!==a.src.indexOf(window.location.origin+"/")&&(a.crossOrigin="anonymous");var s=new Error;i=function(e){a.onerror=a.onload=null,clearTimeout(c);var n=P[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}P[t]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:a})}),12e4);a.onerror=a.onload=i,document.head.appendChild(a)}return Promise.all(e)},R.m=t,R.c=L,R.d=function(t,e,n){R.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},R.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},R.t=function(t,e){if(1&e&&(t=R(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(R.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)R.d(n,r,function(e){return t[e]}.bind(null,r));return n},R.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return R.d(e,"a",e),e},R.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},R.p="./",R.oe=function(t){throw console.error(t),t},R.h=function(){return o};var O=window.webpackJsonprk_web_core=window.webpackJsonprk_web_core||[],k=O.push.bind(O);O.push=e,O=O.slice();for(var B=0;B<O.length;B++)e(O[B]);var D=k;return u(116)(R.s=116)}([function(t,e,n){(function(e){var r;t.exports=(r=r||function(t,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=n(207)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},c=s.lib={},u=c.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=c.WordArray=u.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new l.init(e,t)}}),h=s.enc={},f=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},d=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},m=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*c,o);if(c){for(var h=0;h<c;h+=a)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(c.Hasher=m.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math),r)}).call(this,n(14))},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r,i,o,a,s,c,u,l,h,f,d,p,m,g,v,y,_,x,b;t.exports=(r=n(0),n(21),void(r.lib.Cipher||(i=r,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,u=i.enc,u.Utf8,l=u.Base64,h=i.algo.EvpKDF,f=o.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:_}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),o.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},p=o.BlockCipherMode=a.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=d.CBC=function(){var t=p.extend();function e(t,e,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],a=0;a<r;a+=4)o.push(i);var c=s.create(o,r);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:m,padding:g}),reset:function(){var t;f.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),v=o.CipherParams=a.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(e):e).toString(l)},parse:function(t){var e,n=l.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=s.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},_=o.SerializableCipher=a.extend({cfg:a.extend({format:y}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),a=i.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),x=(i.kdf={}).OpenSSL={execute:function(t,e,n,r){r||(r=s.random(8));var i=h.create({keySize:e+n}).compute(t,r),o=s.create(i.words.slice(e),4*n);return i.sigBytes=4*e,v.create({key:i,iv:o,salt:r})}},b=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:x}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize);r.iv=i.iv;var o=_.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);return r.iv=i.iv,_.decrypt.call(this,t,e,i.key,r)}}))))},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(52)("wks"),i=n(36),o=n(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";var r=n(97),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function n(n,r){c(e[r])&&c(n)?e[r]=t(e[r],n):c(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){var r=n(3),i=n(1),o=n(31),a=n(18),s=n(16),c=function(t,e,n){var u,l,h,f=t&c.F,d=t&c.G,p=t&c.S,m=t&c.P,g=t&c.B,v=t&c.W,y=d?i:i[e]||(i[e]={}),_=y.prototype,x=d?r:p?r[e]:(r[e]||{}).prototype;for(u in d&&(n=e),n)(l=!f&&x&&void 0!==x[u])&&s(y,u)||(h=l?x[u]:n[u],y[u]=d&&"function"!=typeof x[u]?n[u]:g&&l?o(h,r):v&&x[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&_&&!_[u]&&a(_,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treeFindPath=e.prefixCls=void 0;var r,i=n(45),o=(r=i)&&r.__esModule?r:{default:r};e.prefixCls="rk-web-core",e.treeFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,a=!1,s=void 0;try{for(var c,u=(0,o.default)(e);!(i=(c=u.next()).done);i=!0){var l=c.value;if(r.push(l),n(l))return r;if(l.children){var h=t(l.children,n,r);if(h.length)return h}r.pop()}}catch(t){a=!0,s=t}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return[]}},function(t,e,n){t.exports=!n(23)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(10),i=n(76),o=n(55),a=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(19);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){(function(t,r){var i;
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rk-web-core",[],e):"object"==typeof exports?exports["rk-web-core"]=e():t["rk-web-core"]=e()}(window,(function(){return function(t){function e(e){for(var n,r,i=e[0],o=e[1],a=0,s=[];a<i.length;a++)r=i[a],Object.prototype.hasOwnProperty.call(P,r)&&P[r]&&s.push(P[r][0]),P[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);for(D&&D(e);s.length;)s.shift()()}var n=window.webpackHotUpdaterk_web_core;window.webpackHotUpdaterk_web_core=function(t,e){!function(t,e){if(!w[t]||!b[t])return;for(var n in b[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n]);0==--y&&0===_&&C()}(t,e),n&&n(t,e)};var r,i=!0,o="e0e9eec4dac686ef8533",a={},s=[],c=[];function u(t){var e=L[t];if(!e)return R;var n=function(n){return e.hot.active?(L[n]?-1===L[n].parents.indexOf(t)&&L[n].parents.push(t):(s=[t],r=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),s=[]),R(n)},i=function(t){return{configurable:!0,enumerable:!0,get:function(){return R[t]},set:function(e){R[t]=e}}};for(var o in R)Object.prototype.hasOwnProperty.call(R,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(n,o,i(o));return n.e=function(t){return"ready"===f&&d("prepare"),_++,R.e(t).then(e,(function(t){throw e(),t}));function e(){_--,"prepare"===f&&(x[t]||A(t),0===_&&0===y&&C())}},n.t=function(t,e){return 1&e&&(t=n(t)),R.t(t,-2&e)},n}function l(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(t,e){if(void 0===t)n._selfAccepted=!0;else if("function"==typeof t)n._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)n._acceptedDependencies[t[r]]=e||function(){};else n._acceptedDependencies[t]=e||function(){}},decline:function(t){if(void 0===t)n._selfDeclined=!0;else if("object"==typeof t)for(var e=0;e<t.length;e++)n._declinedDependencies[t[e]]=!0;else n._declinedDependencies[t]=!0},dispose:function(t){n._disposeHandlers.push(t)},addDisposeHandler:function(t){n._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=n._disposeHandlers.indexOf(t);e>=0&&n._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,f){case"idle":(m={})[e]=t[e],d("ready");break;case"ready":I(e);break;case"prepare":case"check":case"dispose":case"apply":(v=v||[]).push(e)}},check:S,apply:E,status:function(t){if(!t)return f;h.push(t)},addStatusHandler:function(t){h.push(t)},removeStatusHandler:function(t){var e=h.indexOf(t);e>=0&&h.splice(e,1)},data:a[e]};return r=void 0,n}var h=[],f="idle";function d(t){f=t;for(var e=0;e<h.length;e++)h[e].call(null,t)}var p,m,g,v,y=0,_=0,x={},b={},w={};function M(t){return+t+""===t?+t:t}function S(t){if("idle"!==f)throw new Error("check() is only allowed in idle status");return i=t,d("check"),(e=1e4,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=R.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(t){return n(t)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return d(T()?"ready":"idle"),null;b={},x={},w=t.c,g=t.h,d("prepare");var e=new Promise((function(t,e){p={resolve:t,reject:e}}));for(var n in m={},P)A(n);return"prepare"===f&&0===_&&0===y&&C(),e}));var e}function A(t){w[t]?(b[t]=!0,y++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=R.p+""+t+"."+o+".hot-update.js",e.crossOrigin="anonymous",document.head.appendChild(e)}(t)):x[t]=!0}function C(){d("ready");var t=p;if(p=null,t)if(i)Promise.resolve().then((function(){return E(i)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&e.push(M(n));t.resolve(e)}}function E(e){if("ready"!==f)throw new Error("apply() is only allowed in ready status");return function e(n){var i,c,u,l,h;function f(t){for(var e=[t],n={},r=e.map((function(t){return{chain:[t],id:t}}));r.length>0;){var i=r.pop(),o=i.id,a=i.chain;if((l=L[o])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s<l.parents.length;s++){var c=l.parents[s],u=L[c];if(u){if(u.hot._declinedDependencies[o])return{type:"declined",chain:a.concat([c]),moduleId:o,parentId:c};-1===e.indexOf(c)&&(u.hot._acceptedDependencies[o]?(n[c]||(n[c]=[]),p(n[c],[o])):(delete n[c],e.push(c),r.push({chain:a.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];-1===t.indexOf(r)&&t.push(r)}}T();var y={},_=[],x={},b=function(){console.warn("[HMR] unexpected require("+A.moduleId+") to disposed module")};for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var A;h=M(S),A=m[S]?f(h):{type:"disposed",moduleId:S};var C=!1,E=!1,I=!1,O="";switch(A.chain&&(O="\nUpdate propagation: "+A.chain.join(" -> ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of self decline: "+A.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(C=new Error("Aborted because "+h+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(A),E=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),I=!0;break;default:throw new Error("Unexception type "+A.type)}if(C)return d("abort"),Promise.reject(C);if(E)for(h in x[h]=m[h],p(_,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,h)&&(y[h]||(y[h]=[]),p(y[h],A.outdatedDependencies[h]));I&&(p(_,[A.moduleId]),x[h]=b)}var k,B=[];for(c=0;c<_.length;c++)h=_[c],L[h]&&L[h].hot._selfAccepted&&x[h]!==b&&!L[h].hot._selfInvalidated&&B.push({module:h,parents:L[h].parents.slice(),errorHandler:L[h].hot._selfAccepted});d("dispose"),Object.keys(w).forEach((function(t){!1===w[t]&&function(t){delete P[t]}(t)}));var D,F,U=_.slice();for(;U.length>0;)if(h=U.pop(),l=L[h]){var j={},N=l.hot._disposeHandlers;for(u=0;u<N.length;u++)(i=N[u])(j);for(a[h]=j,l.hot.active=!1,delete L[h],delete y[h],u=0;u<l.children.length;u++){var z=L[l.children[u]];z&&((k=z.parents.indexOf(h))>=0&&z.parents.splice(k,1))}}for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(l=L[h]))for(F=y[h],u=0;u<F.length;u++)D=F[u],(k=l.children.indexOf(D))>=0&&l.children.splice(k,1);d("apply"),void 0!==g&&(o=g,g=void 0);for(h in m=void 0,x)Object.prototype.hasOwnProperty.call(x,h)&&(t[h]=x[h]);var G=null;for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(l=L[h])){F=y[h];var H=[];for(c=0;c<F.length;c++)if(D=F[c],i=l.hot._acceptedDependencies[D]){if(-1!==H.indexOf(i))continue;H.push(i)}for(c=0;c<H.length;c++){i=H[c];try{i(F)}catch(t){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:h,dependencyId:F[c],error:t}),n.ignoreErrored||G||(G=t)}}}for(c=0;c<B.length;c++){var W=B[c];h=W.module,s=W.parents,r=h;try{R(h)}catch(t){if("function"==typeof W.errorHandler)try{W.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:h,error:e,originalError:t}),n.ignoreErrored||G||(G=e),G||(G=t)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:h,error:t}),n.ignoreErrored||G||(G=t)}}if(G)return d("fail"),Promise.reject(G);if(v)return e(n).then((function(t){return _.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t}));return d("idle"),new Promise((function(t){t(_)}))}(e=e||{})}function T(){if(v)return m||(m={}),v.forEach(I),v=void 0,!0}function I(e){Object.prototype.hasOwnProperty.call(m,e)||(m[e]=t[e])}var L={},P={0:0};function R(e){if(L[e])return L[e].exports;var n=L[e]={i:e,l:!1,exports:{},hot:l(e),parents:(c=s,s=[],c),children:[]};return t[e].call(n.exports,n,n.exports,u(e)),n.l=!0,n.exports}R.e=function(t){var e=[],n=P[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=P[t]=[e,r]}));e.push(n[2]=r);var i,a=document.createElement("script");a.charset="utf-8",a.timeout=120,R.nc&&a.setAttribute("nonce",R.nc),a.src=function(t){return R.p+""+t+"."+o+".js"}(t),0!==a.src.indexOf(window.location.origin+"/")&&(a.crossOrigin="anonymous");var s=new Error;i=function(e){a.onerror=a.onload=null,clearTimeout(c);var n=P[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}P[t]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:a})}),12e4);a.onerror=a.onload=i,document.head.appendChild(a)}return Promise.all(e)},R.m=t,R.c=L,R.d=function(t,e,n){R.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},R.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},R.t=function(t,e){if(1&e&&(t=R(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(R.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)R.d(n,r,function(e){return t[e]}.bind(null,r));return n},R.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return R.d(e,"a",e),e},R.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},R.p="./",R.oe=function(t){throw console.error(t),t},R.h=function(){return o};var O=window.webpackJsonprk_web_core=window.webpackJsonprk_web_core||[],k=O.push.bind(O);O.push=e,O=O.slice();for(var B=0;B<O.length;B++)e(O[B]);var D=k;return u(116)(R.s=116)}([function(t,e,n){(function(e){var r;t.exports=(r=r||function(t,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=n(207)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},c=s.lib={},u=c.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=c.WordArray=u.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new l.init(e,t)}}),h=s.enc={},f=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},d=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},m=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*c,o);if(c){for(var h=0;h<c;h+=a)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(c.Hasher=m.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math),r)}).call(this,n(14))},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r,i,o,a,s,c,u,l,h,f,d,p,m,g,v,y,_,x,b;t.exports=(r=n(0),n(21),void(r.lib.Cipher||(i=r,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,u=i.enc,u.Utf8,l=u.Base64,h=i.algo.EvpKDF,f=o.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:_}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),o.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},p=o.BlockCipherMode=a.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=d.CBC=function(){var t=p.extend();function e(t,e,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],a=0;a<r;a+=4)o.push(i);var c=s.create(o,r);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:m,padding:g}),reset:function(){var t;f.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),v=o.CipherParams=a.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(e):e).toString(l)},parse:function(t){var e,n=l.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=s.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},_=o.SerializableCipher=a.extend({cfg:a.extend({format:y}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),a=i.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),x=(i.kdf={}).OpenSSL={execute:function(t,e,n,r){r||(r=s.random(8));var i=h.create({keySize:e+n}).compute(t,r),o=s.create(i.words.slice(e),4*n);return i.sigBytes=4*e,v.create({key:i,iv:o,salt:r})}},b=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:x}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize);r.iv=i.iv;var o=_.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);return r.iv=i.iv,_.decrypt.call(this,t,e,i.key,r)}}))))},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(52)("wks"),i=n(36),o=n(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";var r=n(97),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function n(n,r){c(e[r])&&c(n)?e[r]=t(e[r],n):c(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){var r=n(3),i=n(1),o=n(31),a=n(18),s=n(16),c=function(t,e,n){var u,l,h,f=t&c.F,d=t&c.G,p=t&c.S,m=t&c.P,g=t&c.B,v=t&c.W,y=d?i:i[e]||(i[e]={}),_=y.prototype,x=d?r:p?r[e]:(r[e]||{}).prototype;for(u in d&&(n=e),n)(l=!f&&x&&void 0!==x[u])&&s(y,u)||(h=l?x[u]:n[u],y[u]=d&&"function"!=typeof x[u]?n[u]:g&&l?o(h,r):v&&x[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&_&&!_[u]&&a(_,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treeFindPath=e.prefixCls=void 0;var r,i=n(45),o=(r=i)&&r.__esModule?r:{default:r};e.prefixCls="rk-web-core",e.treeFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,a=!1,s=void 0;try{for(var c,u=(0,o.default)(e);!(i=(c=u.next()).done);i=!0){var l=c.value;if(r.push(l),n(l))return r;if(l.children){var h=t(l.children,n,r);if(h.length)return h}r.pop()}}catch(t){a=!0,s=t}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return[]}},function(t,e,n){t.exports=!n(23)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(10),i=n(76),o=n(55),a=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(19);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){(function(t,r){var i;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Lodash <https://lodash.com/>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* Released under MIT license <https://lodash.com/license>
|
|
20
20
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
21
21
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
22
|
-
*/(function(){var o,a="Expected a function",s="__lodash_hash_undefined__",c="__lodash_placeholder__",u=16,l=32,h=64,f=128,d=256,p=1/0,m=9007199254740991,g=NaN,v=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",l],["partialRight",h],["rearg",d]],_="[object Arguments]",x="[object Array]",b="[object Boolean]",w="[object Date]",M="[object Error]",S="[object Function]",A="[object GeneratorFunction]",C="[object Map]",E="[object Number]",T="[object Object]",I="[object Promise]",L="[object RegExp]",P="[object Set]",R="[object String]",O="[object Symbol]",k="[object WeakMap]",B="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",j="[object Int8Array]",N="[object Int16Array]",z="[object Int32Array]",G="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",V="[object Uint32Array]",Z=/\b__p \+= '';/g,Q=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,q=RegExp(Y.source),K=RegExp(J.source),$=/<%-([\s\S]+?)%>/g,tt=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,at=RegExp(ot.source),st=/^\s+/,ct=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lt=/\{\n\/\* \[wrapped with (.+)\] \*/,ht=/,? & /,ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,xt=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,At="\\ud800-\\udfff",Ct="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",It="A-Z\\xc0-\\xd6\\xd8-\\xde",Lt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="['’]",Ot="["+At+"]",kt="["+Pt+"]",Bt="["+Ct+"]",Dt="\\d+",Ft="["+Et+"]",Ut="["+Tt+"]",jt="[^"+At+Pt+Dt+Et+Tt+It+"]",Nt="\\ud83c[\\udffb-\\udfff]",zt="[^"+At+"]",Gt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+It+"]",Vt="(?:"+Ut+"|"+jt+")",Zt="(?:"+Wt+"|"+jt+")",Qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Xt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yt="(?:"+Bt+"|"+Nt+")?",Jt="["+Lt+"]?",qt=Jt+Yt+"(?:\\u200d(?:"+[zt,Gt,Ht].join("|")+")"+Jt+Yt+")*",Kt="(?:"+[Ft,Gt,Ht].join("|")+")"+qt,$t="(?:"+[zt+Bt+"?",Bt,Gt,Ht,Ot].join("|")+")",te=RegExp(Rt,"g"),ee=RegExp(Bt,"g"),ne=RegExp(Nt+"(?="+Nt+")|"+$t+qt,"g"),re=RegExp([Wt+"?"+Ut+"+"+Qt+"(?="+[kt,Wt,"$"].join("|")+")",Zt+"+"+Xt+"(?="+[kt,Wt+Vt,"$"].join("|")+")",Wt+"?"+Vt+"+"+Qt,Wt+"+"+Xt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt,Kt].join("|"),"g"),ie=RegExp("[\\u200d"+At+Ct+Lt+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],se=-1,ce={};ce[F]=ce[U]=ce[j]=ce[N]=ce[z]=ce[G]=ce[H]=ce[W]=ce[V]=!0,ce[_]=ce[x]=ce[B]=ce[b]=ce[D]=ce[w]=ce[M]=ce[S]=ce[C]=ce[E]=ce[T]=ce[L]=ce[P]=ce[R]=ce[k]=!1;var ue={};ue[_]=ue[x]=ue[B]=ue[D]=ue[b]=ue[w]=ue[F]=ue[U]=ue[j]=ue[N]=ue[z]=ue[C]=ue[E]=ue[T]=ue[L]=ue[P]=ue[R]=ue[O]=ue[G]=ue[H]=ue[W]=ue[V]=!0,ue[M]=ue[S]=ue[k]=!1;var le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},he=parseFloat,fe=parseInt,de="object"==typeof t&&t&&t.Object===Object&&t,pe="object"==typeof self&&self&&self.Object===Object&&self,me=de||pe||Function("return this")(),ge=e&&!e.nodeType&&e,ve=ge&&"object"==typeof r&&r&&!r.nodeType&&r,ye=ve&&ve.exports===ge,_e=ye&&de.process,xe=function(){try{return ve&&ve.require&&ve.require("util").types||_e&&_e.binding&&_e.binding("util")}catch(t){}}(),be=xe&&xe.isArrayBuffer,we=xe&&xe.isDate,Me=xe&&xe.isMap,Se=xe&&xe.isRegExp,Ae=xe&&xe.isSet,Ce=xe&&xe.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Te(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Ie(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Le(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Re(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Oe(t,e){return!(null==t||!t.length)&&We(t,e,0)>-1}function ke(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Be(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function De(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Fe(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Ue(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function je(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Ne=Xe("length");function ze(t){return t.match(ft)||[]}function Ge(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function He(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function We(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):He(t,Ze,n)}function Ve(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ze(t){return t!=t}function Qe(t,e){var n=null==t?0:t.length;return n?qe(t,e)/n:g}function Xe(t){return function(e){return null==e?o:e[t]}}function Ye(t){return function(e){return null==t?o:t[e]}}function Je(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function qe(t,e){for(var n,r=-1,i=t.length;++r<i;){var a=e(t[r]);a!==o&&(n=n===o?a:n+a)}return n}function Ke(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function $e(t){return t?t.slice(0,yn(t)+1).replace(st,""):t}function tn(t){return function(e){return t(e)}}function en(t,e){return Be(e,(function(e){return t[e]}))}function nn(t,e){return t.has(e)}function rn(t,e){for(var n=-1,r=t.length;++n<r&&We(e,t[n],0)>-1;);return n}function on(t,e){for(var n=t.length;n--&&We(e,t[n],0)>-1;);return n}function an(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var sn=Ye({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),cn=Ye({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(t){return"\\"+le[t]}function ln(t){return ie.test(t)}function hn(t){return oe.test(t)}function fn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function dn(t,e){return function(n){return t(e(n))}}function pn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==c||(t[n]=c,o[i++]=n)}return o}function mn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function gn(t){return ln(t)?function(t){for(var e=ne.lastIndex=0;ne.test(t);)++e;return e}(t):Ne(t)}function vn(t){return ln(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.split("")}(t)}function yn(t){for(var e=t.length;e--&&ct.test(t.charAt(e)););return e}var _n=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"});function xn(t){return t.match(re)||[]}var bn=function t(e){var n=(e=null==e?me:bn.defaults(me.Object(),e,bn.pick(me,ae))).Array,r=e.Date,i=e.Error,ct=e.Function,ft=e.Math,At=e.Object,Ct=e.RegExp,Et=e.String,Tt=e.TypeError,It=n.prototype,Lt=ct.prototype,Pt=At.prototype,Rt=e["__core-js_shared__"],Ot=Lt.toString,kt=Pt.hasOwnProperty,Bt=0,Dt=function(){var t=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ft=Pt.toString,Ut=Ot.call(At),jt=me._,Nt=Ct("^"+Ot.call(kt).replace(ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=ye?e.Buffer:o,Gt=e.Symbol,Ht=e.Uint8Array,Wt=zt?zt.allocUnsafe:o,Vt=dn(At.getPrototypeOf,At),Zt=At.create,Qt=Pt.propertyIsEnumerable,Xt=It.splice,Yt=Gt?Gt.isConcatSpreadable:o,Jt=Gt?Gt.iterator:o,qt=Gt?Gt.toStringTag:o,Kt=function(){try{var t=go(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),$t=e.clearTimeout!==me.clearTimeout&&e.clearTimeout,ne=r&&r.now!==me.Date.now&&r.now,re=e.setTimeout!==me.setTimeout&&e.setTimeout,ie=ft.ceil,oe=ft.floor,le=At.getOwnPropertySymbols,de=zt?zt.isBuffer:o,pe=e.isFinite,ge=It.join,ve=dn(At.keys,At),_e=ft.max,xe=ft.min,Ne=r.now,Ye=e.parseInt,wn=ft.random,Mn=It.reverse,Sn=go(e,"DataView"),An=go(e,"Map"),Cn=go(e,"Promise"),En=go(e,"Set"),Tn=go(e,"WeakMap"),In=go(At,"create"),Ln=Tn&&new Tn,Pn={},Rn=Wo(Sn),On=Wo(An),kn=Wo(Cn),Bn=Wo(En),Dn=Wo(Tn),Fn=Gt?Gt.prototype:o,Un=Fn?Fn.valueOf:o,jn=Fn?Fn.toString:o;function Nn(t){if(ss(t)&&!Ja(t)&&!(t instanceof Wn)){if(t instanceof Hn)return t;if(kt.call(t,"__wrapped__"))return Vo(t)}return new Hn(t)}var zn=function(){function t(){}return function(e){if(!as(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function Gn(){}function Hn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qn;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new Zn(t);this.size=e.size}function Jn(t,e){var n=Ja(t),r=!n&&Ya(t),i=!n&&!r&&ts(t),o=!n&&!r&&!i&&ms(t),a=n||r||i||o,s=a?Ke(t.length,Et):[],c=s.length;for(var u in t)!e&&!kt.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Mo(u,c))||s.push(u);return s}function qn(t){var e=t.length;return e?t[Xr(0,e-1)]:o}function Kn(t,e){return zo(Li(t),sr(e,0,t.length))}function $n(t){return zo(Li(t))}function tr(t,e,n){(n!==o&&!Za(t[e],n)||n===o&&!(e in t))&&or(t,e,n)}function er(t,e,n){var r=t[e];kt.call(t,e)&&Za(r,n)&&(n!==o||e in t)||or(t,e,n)}function nr(t,e){for(var n=t.length;n--;)if(Za(t[n][0],e))return n;return-1}function rr(t,e,n,r){return fr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ir(t,e){return t&&Pi(e,Fs(e),t)}function or(t,e,n){"__proto__"==e&&Kt?Kt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(t,e){for(var r=-1,i=e.length,a=n(i),s=null==t;++r<i;)a[r]=s?o:Rs(t,e[r]);return a}function sr(t,e,n){return t==t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function cr(t,e,n,r,i,a){var s,c=1&e,u=2&e,l=4&e;if(n&&(s=i?n(t,r,i,a):n(t)),s!==o)return s;if(!as(t))return t;var h=Ja(t);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&kt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!c)return Li(t,s)}else{var f=_o(t),d=f==S||f==A;if(ts(t))return Si(t,c);if(f==T||f==_||d&&!i){if(s=u||d?{}:bo(t),!c)return u?function(t,e){return Pi(t,yo(t),e)}(t,function(t,e){return t&&Pi(e,Us(e),t)}(s,t)):function(t,e){return Pi(t,vo(t),e)}(t,ir(s,t))}else{if(!ue[f])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case B:return Ai(t);case b:case w:return new r(+t);case D:return function(t,e){var n=e?Ai(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case F:case U:case j:case N:case z:case G:case H:case W:case V:return Ci(t,n);case C:return new r;case E:case R:return new r(t);case L:return function(t){var e=new t.constructor(t.source,gt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new r;case O:return function(t){return Un?At(Un.call(t)):{}}(t)}}(t,f,c)}}a||(a=new Yn);var p=a.get(t);if(p)return p;a.set(t,s),fs(t)?t.forEach((function(r){s.add(cr(r,e,n,r,t,a))})):cs(t)&&t.forEach((function(r,i){s.set(i,cr(r,e,n,i,t,a))}));var m=h?o:(l?u?co:so:u?Us:Fs)(t);return Ie(m||t,(function(r,i){m&&(r=t[i=r]),er(s,i,cr(r,e,n,i,t,a))})),s}function ur(t,e,n){var r=n.length;if(null==t)return!r;for(t=At(t);r--;){var i=n[r],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function lr(t,e,n){if("function"!=typeof t)throw new Tt(a);return Fo((function(){t.apply(o,n)}),e)}function hr(t,e,n,r){var i=-1,o=Oe,a=!0,s=t.length,c=[],u=e.length;if(!s)return c;n&&(e=Be(e,tn(n))),r?(o=ke,a=!1):e.length>=200&&(o=nn,a=!1,e=new Xn(e));t:for(;++i<s;){var l=t[i],h=null==n?l:n(l);if(l=r||0!==l?l:0,a&&h==h){for(var f=u;f--;)if(e[f]===h)continue t;c.push(l)}else o(e,h,r)||c.push(l)}return c}Nn.templateSettings={escape:$,evaluate:tt,interpolate:et,variable:"",imports:{_:Nn}},Nn.prototype=Gn.prototype,Nn.prototype.constructor=Nn,Hn.prototype=zn(Gn.prototype),Hn.prototype.constructor=Hn,Wn.prototype=zn(Gn.prototype),Wn.prototype.constructor=Wn,Vn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Vn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Vn.prototype.get=function(t){var e=this.__data__;if(In){var n=e[t];return n===s?o:n}return kt.call(e,t)?e[t]:o},Vn.prototype.has=function(t){var e=this.__data__;return In?e[t]!==o:kt.call(e,t)},Vn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=In&&e===o?s:e,this},Zn.prototype.clear=function(){this.__data__=[],this.size=0},Zn.prototype.delete=function(t){var e=this.__data__,n=nr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Zn.prototype.get=function(t){var e=this.__data__,n=nr(e,t);return n<0?o:e[n][1]},Zn.prototype.has=function(t){return nr(this.__data__,t)>-1},Zn.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(An||Zn),string:new Vn}},Qn.prototype.delete=function(t){var e=po(this,t).delete(t);return this.size-=e?1:0,e},Qn.prototype.get=function(t){return po(this,t).get(t)},Qn.prototype.has=function(t){return po(this,t).has(t)},Qn.prototype.set=function(t,e){var n=po(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,s),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new Zn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Zn){var r=n.__data__;if(!An||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(t,e),this.size=n.size,this};var fr=ki(xr),dr=ki(br,!0);function pr(t,e){var n=!0;return fr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function mr(t,e,n){for(var r=-1,i=t.length;++r<i;){var a=t[r],s=e(a);if(null!=s&&(c===o?s==s&&!ps(s):n(s,c)))var c=s,u=a}return u}function gr(t,e){var n=[];return fr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function vr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=wo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?vr(s,e-1,n,r,i):De(i,s):r||(i[i.length]=s)}return i}var yr=Bi(),_r=Bi(!0);function xr(t,e){return t&&yr(t,e,Fs)}function br(t,e){return t&&_r(t,e,Fs)}function wr(t,e){return Re(e,(function(e){return rs(t[e])}))}function Mr(t,e){for(var n=0,r=(e=xi(e,t)).length;null!=t&&n<r;)t=t[Ho(e[n++])];return n&&n==r?t:o}function Sr(t,e,n){var r=e(t);return Ja(t)?r:De(r,n(t))}function Ar(t){return null==t?t===o?"[object Undefined]":"[object Null]":qt&&qt in At(t)?function(t){var e=kt.call(t,qt),n=t[qt];try{t[qt]=o;var r=!0}catch(t){}var i=Ft.call(t);return r&&(e?t[qt]=n:delete t[qt]),i}(t):function(t){return Ft.call(t)}(t)}function Cr(t,e){return t>e}function Er(t,e){return null!=t&&kt.call(t,e)}function Tr(t,e){return null!=t&&e in At(t)}function Ir(t,e,r){for(var i=r?ke:Oe,a=t[0].length,s=t.length,c=s,u=n(s),l=1/0,h=[];c--;){var f=t[c];c&&e&&(f=Be(f,tn(e))),l=xe(f.length,l),u[c]=!r&&(e||a>=120&&f.length>=120)?new Xn(c&&f):o}f=t[0];var d=-1,p=u[0];t:for(;++d<a&&h.length<l;){var m=f[d],g=e?e(m):m;if(m=r||0!==m?m:0,!(p?nn(p,g):i(h,g,r))){for(c=s;--c;){var v=u[c];if(!(v?nn(v,g):i(t[c],g,r)))continue t}p&&p.push(g),h.push(m)}}return h}function Lr(t,e,n){var r=null==(t=Oo(t,e=xi(e,t)))?t:t[Ho(na(e))];return null==r?o:Ee(r,t,n)}function Pr(t){return ss(t)&&Ar(t)==_}function Rr(t,e,n,r,i){return t===e||(null==t||null==e||!ss(t)&&!ss(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=Ja(t),s=Ja(e),c=a?x:_o(t),u=s?x:_o(e),l=(c=c==_?T:c)==T,h=(u=u==_?T:u)==T,f=c==u;if(f&&ts(t)){if(!ts(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new Yn),a||ms(t)?io(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case D:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case B:return!(t.byteLength!=e.byteLength||!o(new Ht(t),new Ht(e)));case b:case w:case E:return Za(+t,+e);case M:return t.name==e.name&&t.message==e.message;case L:case R:return t==e+"";case C:var s=fn;case P:var c=1&r;if(s||(s=mn),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var l=io(s(t),s(e),r,i,o,a);return a.delete(t),l;case O:if(Un)return Un.call(t)==Un.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var d=l&&kt.call(t,"__wrapped__"),p=h&&kt.call(e,"__wrapped__");if(d||p){var m=d?t.value():t,g=p?e.value():e;return o||(o=new Yn),i(m,g,n,r,o)}}return!!f&&(o||(o=new Yn),oo(t,e,n,r,i,o))}(t,e,n,r,Rr,i))}function Or(t,e,n,r){var i=n.length,a=i,s=!r;if(null==t)return!a;for(t=At(t);i--;){var c=n[i];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<a;){var u=(c=n[i])[0],l=t[u],h=c[1];if(s&&c[2]){if(l===o&&!(u in t))return!1}else{var f=new Yn;if(r)var d=r(l,h,u,t,e,f);if(!(d===o?Rr(h,l,3,r,f):d))return!1}}return!0}function kr(t){return!(!as(t)||function(t){return!!Dt&&Dt in t}(t))&&(rs(t)?Nt:_t).test(Wo(t))}function Br(t){return"function"==typeof t?t:null==t?uc:"object"==typeof t?Ja(t)?zr(t[0],t[1]):Nr(t):yc(t)}function Dr(t){if(!To(t))return ve(t);var e=[];for(var n in At(t))kt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Fr(t){if(!as(t))return function(t){var e=[];if(null!=t)for(var n in At(t))e.push(n);return e}(t);var e=To(t),n=[];for(var r in t)("constructor"!=r||!e&&kt.call(t,r))&&n.push(r);return n}function Ur(t,e){return t<e}function jr(t,e){var r=-1,i=Ka(t)?n(t.length):[];return fr(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Nr(t){var e=mo(t);return 1==e.length&&e[0][2]?Lo(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function zr(t,e){return Ao(t)&&Io(e)?Lo(Ho(t),e):function(n){var r=Rs(n,t);return r===o&&r===e?Os(n,t):Rr(e,r,3)}}function Gr(t,e,n,r,i){t!==e&&yr(e,(function(a,s){if(i||(i=new Yn),as(a))!function(t,e,n,r,i,a,s){var c=Bo(t,n),u=Bo(e,n),l=s.get(u);if(l)tr(t,n,l);else{var h=a?a(c,u,n+"",t,e,s):o,f=h===o;if(f){var d=Ja(u),p=!d&&ts(u),m=!d&&!p&&ms(u);h=u,d||p||m?Ja(c)?h=c:$a(c)?h=Li(c):p?(f=!1,h=Si(u,!0)):m?(f=!1,h=Ci(u,!0)):h=[]:ls(u)||Ya(u)?(h=c,Ya(c)?h=Ms(c):as(c)&&!rs(c)||(h=bo(u))):f=!1}f&&(s.set(u,h),i(h,u,r,a,s),s.delete(u)),tr(t,n,h)}}(t,e,s,n,Gr,r,i);else{var c=r?r(Bo(t,s),a,s+"",t,e,i):o;c===o&&(c=a),tr(t,s,c)}}),Us)}function Hr(t,e){var n=t.length;if(n)return Mo(e+=e<0?n:0,n)?t[e]:o}function Wr(t,e,n){e=e.length?Be(e,(function(t){return Ja(t)?function(e){return Mr(e,1===t.length?t[0]:t)}:t})):[uc];var r=-1;return e=Be(e,tn(fo())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(jr(t,(function(t,n,i){return{criteria:Be(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var c=Ei(i[r],o[r]);if(c){if(r>=s)return c;var u=n[r];return c*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)}))}function Vr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Mr(t,a);n(s,a)&&ti(o,xi(a,t),s)}return o}function Zr(t,e,n,r){var i=r?Ve:We,o=-1,a=e.length,s=t;for(t===e&&(e=Li(e)),n&&(s=Be(t,tn(n)));++o<a;)for(var c=0,u=e[o],l=n?n(u):u;(c=i(s,l,c,r))>-1;)s!==t&&Xt.call(s,c,1),Xt.call(t,c,1);return t}function Qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Mo(i)?Xt.call(t,i,1):fi(t,i)}}return t}function Xr(t,e){return t+oe(wn()*(e-t+1))}function Yr(t,e,r,i){for(var o=-1,a=_e(ie((e-t)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=t,t+=r;return s}function Jr(t,e){var n="";if(!t||e<1||e>m)return n;do{e%2&&(n+=t),(e=oe(e/2))&&(t+=t)}while(e);return n}function qr(t,e){return Uo(Ro(t,e,uc),t+"")}function Kr(t){return qn(Zs(t))}function $r(t,e){var n=Zs(t);return zo(n,sr(e,0,n.length))}function ti(t,e,n,r){if(!as(t))return t;for(var i=-1,a=(e=xi(e,t)).length,s=a-1,c=t;null!=c&&++i<a;){var u=Ho(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=s){var h=c[u];(l=r?r(h,u,c):o)===o&&(l=as(h)?h:Mo(e[i+1])?[]:{})}er(c,u,l),c=c[u]}return t}var ei=Ln?function(t,e){return Ln.set(t,e),t}:uc,ni=Kt?function(t,e){return Kt(t,"toString",{configurable:!0,enumerable:!1,value:ac(e),writable:!0})}:uc;function ri(t){return zo(Zs(t))}function ii(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=n(o);++i<o;)a[i]=t[i+e];return a}function oi(t,e){var n;return fr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!ps(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return si(t,e,uc,n)}function si(t,e,n,r){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,c=null===e,u=ps(e),l=e===o;i<a;){var h=oe((i+a)/2),f=n(t[h]),d=f!==o,p=null===f,m=f==f,g=ps(f);if(s)var v=r||m;else v=l?m&&(r||d):c?m&&d&&(r||!p):u?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);v?i=h+1:a=h}return xe(a,4294967294)}function ci(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Za(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function ui(t){return"number"==typeof t?t:ps(t)?g:+t}function li(t){if("string"==typeof t)return t;if(Ja(t))return Be(t,li)+"";if(ps(t))return jn?jn.call(t):"";var e=t+"";return"0"==e&&1/t==-p?"-0":e}function hi(t,e,n){var r=-1,i=Oe,o=t.length,a=!0,s=[],c=s;if(n)a=!1,i=ke;else if(o>=200){var u=e?null:Ki(t);if(u)return mn(u);a=!1,i=nn,c=new Xn}else c=e?[]:s;t:for(;++r<o;){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue t;e&&c.push(h),s.push(l)}else i(c,h,n)||(c!==s&&c.push(h),s.push(l))}return s}function fi(t,e){return null==(t=Oo(t,e=xi(e,t)))||delete t[Ho(na(e))]}function di(t,e,n,r){return ti(t,e,n(Mr(t,e)),r)}function pi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ii(t,r?0:o,r?o+1:i):ii(t,r?o+1:0,r?i:o)}function mi(t,e){var n=t;return n instanceof Wn&&(n=n.value()),Fe(e,(function(t,e){return e.func.apply(e.thisArg,De([t],e.args))}),n)}function gi(t,e,r){var i=t.length;if(i<2)return i?hi(t[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=t[o],c=-1;++c<i;)c!=o&&(a[o]=hr(a[o]||s,t[c],e,r));return hi(vr(a,1),e,r)}function vi(t,e,n){for(var r=-1,i=t.length,a=e.length,s={};++r<i;){var c=r<a?e[r]:o;n(s,t[r],c)}return s}function yi(t){return $a(t)?t:[]}function _i(t){return"function"==typeof t?t:uc}function xi(t,e){return Ja(t)?t:Ao(t,e)?[t]:Go(Ss(t))}var bi=qr;function wi(t,e,n){var r=t.length;return n=n===o?r:n,!e&&n>=r?t:ii(t,e,n)}var Mi=$t||function(t){return me.clearTimeout(t)};function Si(t,e){if(e)return t.slice();var n=t.length,r=Wt?Wt(n):new t.constructor(n);return t.copy(r),r}function Ai(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ci(t,e){var n=e?Ai(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,a=ps(t),s=e!==o,c=null===e,u=e==e,l=ps(e);if(!c&&!l&&!a&&t>e||a&&s&&u&&!c&&!l||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!l&&t<e||l&&n&&i&&!r&&!a||c&&n&&i||!s&&i||!u)return-1}return 0}function Ti(t,e,r,i){for(var o=-1,a=t.length,s=r.length,c=-1,u=e.length,l=_e(a-s,0),h=n(u+l),f=!i;++c<u;)h[c]=e[c];for(;++o<s;)(f||o<a)&&(h[r[o]]=t[o]);for(;l--;)h[c++]=t[o++];return h}function Ii(t,e,r,i){for(var o=-1,a=t.length,s=-1,c=r.length,u=-1,l=e.length,h=_e(a-c,0),f=n(h+l),d=!i;++o<h;)f[o]=t[o];for(var p=o;++u<l;)f[p+u]=e[u];for(;++s<c;)(d||o<a)&&(f[p+r[s]]=t[o++]);return f}function Li(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function Pi(t,e,n,r){var i=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var c=e[a],u=r?r(n[c],t[c],c,n,t):o;u===o&&(u=t[c]),i?or(n,c,u):er(n,c,u)}return n}function Ri(t,e){return function(n,r){var i=Ja(n)?Te:rr,o=e?e():{};return i(n,t,fo(r,2),o)}}function Oi(t){return qr((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,s&&So(n[0],n[1],s)&&(a=i<3?o:a,i=1),e=At(e);++r<i;){var c=n[r];c&&t(e,c,r,a)}return e}))}function ki(t,e){return function(n,r){if(null==n)return n;if(!Ka(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=At(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Bi(t){return function(e,n,r){for(var i=-1,o=At(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}function Di(t){return function(e){var n=ln(e=Ss(e))?vn(e):o,r=n?n[0]:e.charAt(0),i=n?wi(n,1).join(""):e.slice(1);return r[t]()+i}}function Fi(t){return function(e){return Fe(rc(Ys(e).replace(te,"")),t,"")}}function Ui(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=zn(t.prototype),r=t.apply(n,e);return as(r)?r:n}}function ji(t,e,r){var i=Ui(t);return function a(){for(var s=arguments.length,c=n(s),u=s,l=ho(a);u--;)c[u]=arguments[u];var h=s<3&&c[0]!==l&&c[s-1]!==l?[]:pn(c,l);if((s-=h.length)<r)return Ji(t,e,Gi,a.placeholder,o,c,h,o,o,r-s);var f=this&&this!==me&&this instanceof a?i:t;return Ee(f,this,c)}}function Ni(t){return function(e,n,r){var i=At(e);if(!Ka(e)){var a=fo(n,3);e=Fs(e),n=function(t){return a(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[a?e[s]:s]:o}}function zi(t){return ao((function(e){var n=e.length,r=n,i=Hn.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new Tt(a);if(i&&!c&&"wrapper"==lo(s))var c=new Hn([],!0)}for(r=c?r:n;++r<n;){var u=lo(s=e[r]),l="wrapper"==u?uo(s):o;c=l&&Co(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[lo(l[0])].apply(c,l[3]):1==s.length&&Co(s)?c[u]():c.thru(s)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&Ja(r))return c.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Gi(t,e,r,i,a,s,c,u,l,h){var d=e&f,p=1&e,m=2&e,g=24&e,v=512&e,y=m?o:Ui(t);return function o(){for(var f=arguments.length,_=n(f),x=f;x--;)_[x]=arguments[x];if(g)var b=ho(o),w=an(_,b);if(i&&(_=Ti(_,i,a,g)),s&&(_=Ii(_,s,c,g)),f-=w,g&&f<h){var M=pn(_,b);return Ji(t,e,Gi,o.placeholder,r,_,M,u,l,h-f)}var S=p?r:this,A=m?S[t]:t;return f=_.length,u?_=ko(_,u):v&&f>1&&_.reverse(),d&&l<f&&(_.length=l),this&&this!==me&&this instanceof o&&(A=y||Ui(A)),A.apply(S,_)}}function Hi(t,e){return function(n,r){return function(t,e,n,r){return xr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Wi(t,e){return function(n,r){var i;if(n===o&&r===o)return e;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ui(n),r=ui(r)),i=t(n,r)}return i}}function Vi(t){return ao((function(e){return e=Be(e,tn(fo())),qr((function(n){var r=this;return t(e,(function(t){return Ee(t,r,n)}))}))}))}function Zi(t,e){var n=(e=e===o?" ":li(e)).length;if(n<2)return n?Jr(e,t):e;var r=Jr(e,ie(t/gn(e)));return ln(e)?wi(vn(r),0,t).join(""):r.slice(0,t)}function Qi(t,e,r,i){var o=1&e,a=Ui(t);return function e(){for(var s=-1,c=arguments.length,u=-1,l=i.length,h=n(l+c),f=this&&this!==me&&this instanceof e?a:t;++u<l;)h[u]=i[u];for(;c--;)h[u++]=arguments[++s];return Ee(f,o?r:this,h)}}function Xi(t){return function(e,n,r){return r&&"number"!=typeof r&&So(e,n,r)&&(n=r=o),e=_s(e),n===o?(n=e,e=0):n=_s(n),Yr(e,n,r=r===o?e<n?1:-1:_s(r),t)}}function Yi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ws(e),n=ws(n)),t(e,n)}}function Ji(t,e,n,r,i,a,s,c,u,f){var d=8&e;e|=d?l:h,4&(e&=~(d?h:l))||(e&=-4);var p=[t,e,i,d?a:o,d?s:o,d?o:a,d?o:s,c,u,f],m=n.apply(o,p);return Co(t)&&Do(m,p),m.placeholder=r,jo(m,t,e)}function qi(t){var e=ft[t];return function(t,n){if(t=ws(t),(n=null==n?0:xe(xs(n),292))&&pe(t)){var r=(Ss(t)+"e").split("e");return+((r=(Ss(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ki=En&&1/mn(new En([,-0]))[1]==p?function(t){return new En(t)}:pc;function $i(t){return function(e){var n=_o(e);return n==C?fn(e):n==P?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return Be(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function to(t,e,n,r,i,s,c,f){var d=2&e;if(!d&&"function"!=typeof t)throw new Tt(a);var p=r?r.length:0;if(p||(e&=-97,r=i=o),c=c===o?c:_e(xs(c),0),f=f===o?f:xs(f),p-=i?i.length:0,e&h){var m=r,g=i;r=i=o}var v=d?o:uo(t),y=[t,e,n,r,i,m,g,s,c,f];if(v&&Po(y,v),t=y[0],e=y[1],n=y[2],r=y[3],i=y[4],!(f=y[9]=y[9]===o?d?0:t.length:_e(y[9]-p,0))&&24&e&&(e&=-25),e&&1!=e)_=8==e||e==u?ji(t,e,f):e!=l&&33!=e||i.length?Gi.apply(o,y):Qi(t,e,n,r);else var _=function(t,e,n){var r=1&e,i=Ui(t);return function e(){var o=this&&this!==me&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return jo((v?ei:Do)(_,y),t,e)}function eo(t,e,n,r){return t===o||Za(t,Pt[n])&&!kt.call(r,n)?e:t}function no(t,e,n,r,i,a){return as(t)&&as(e)&&(a.set(e,t),Gr(t,e,o,no,a),a.delete(e)),t}function ro(t){return ls(t)?o:t}function io(t,e,n,r,i,a){var s=1&n,c=t.length,u=e.length;if(c!=u&&!(s&&u>c))return!1;var l=a.get(t),h=a.get(e);if(l&&h)return l==e&&h==t;var f=-1,d=!0,p=2&n?new Xn:o;for(a.set(t,e),a.set(e,t);++f<c;){var m=t[f],g=e[f];if(r)var v=s?r(g,m,f,e,t,a):r(m,g,f,t,e,a);if(v!==o){if(v)continue;d=!1;break}if(p){if(!je(e,(function(t,e){if(!nn(p,e)&&(m===t||i(m,t,n,r,a)))return p.push(e)}))){d=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function oo(t,e,n,r,i,a){var s=1&n,c=so(t),u=c.length;if(u!=so(e).length&&!s)return!1;for(var l=u;l--;){var h=c[l];if(!(s?h in e:kt.call(e,h)))return!1}var f=a.get(t),d=a.get(e);if(f&&d)return f==e&&d==t;var p=!0;a.set(t,e),a.set(e,t);for(var m=s;++l<u;){var g=t[h=c[l]],v=e[h];if(r)var y=s?r(v,g,h,e,t,a):r(g,v,h,t,e,a);if(!(y===o?g===v||i(g,v,n,r,a):y)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var _=t.constructor,x=e.constructor;_==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(p=!1)}return a.delete(t),a.delete(e),p}function ao(t){return Uo(Ro(t,o,qo),t+"")}function so(t){return Sr(t,Fs,vo)}function co(t){return Sr(t,Us,yo)}var uo=Ln?function(t){return Ln.get(t)}:pc;function lo(t){for(var e=t.name+"",n=Pn[e],r=kt.call(Pn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ho(t){return(kt.call(Nn,"placeholder")?Nn:t).placeholder}function fo(){var t=Nn.iteratee||lc;return t=t===lc?Br:t,arguments.length?t(arguments[0],arguments[1]):t}function po(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function mo(t){for(var e=Fs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Io(i)]}return e}function go(t,e){var n=function(t,e){return null==t?o:t[e]}(t,e);return kr(n)?n:o}var vo=le?function(t){return null==t?[]:(t=At(t),Re(le(t),(function(e){return Qt.call(t,e)})))}:bc,yo=le?function(t){for(var e=[];t;)De(e,vo(t)),t=Vt(t);return e}:bc,_o=Ar;function xo(t,e,n){for(var r=-1,i=(e=xi(e,t)).length,o=!1;++r<i;){var a=Ho(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&os(i)&&Mo(a,i)&&(Ja(t)||Ya(t))}function bo(t){return"function"!=typeof t.constructor||To(t)?{}:zn(Vt(t))}function wo(t){return Ja(t)||Ya(t)||!!(Yt&&t&&t[Yt])}function Mo(t,e){var n=typeof t;return!!(e=null==e?m:e)&&("number"==n||"symbol"!=n&&bt.test(t))&&t>-1&&t%1==0&&t<e}function So(t,e,n){if(!as(n))return!1;var r=typeof e;return!!("number"==r?Ka(n)&&Mo(e,n.length):"string"==r&&e in n)&&Za(n[e],t)}function Ao(t,e){if(Ja(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ps(t))||rt.test(t)||!nt.test(t)||null!=e&&t in At(e)}function Co(t){var e=lo(t),n=Nn[e];if("function"!=typeof n||!(e in Wn.prototype))return!1;if(t===n)return!0;var r=uo(n);return!!r&&t===r[0]}(Sn&&_o(new Sn(new ArrayBuffer(1)))!=D||An&&_o(new An)!=C||Cn&&_o(Cn.resolve())!=I||En&&_o(new En)!=P||Tn&&_o(new Tn)!=k)&&(_o=function(t){var e=Ar(t),n=e==T?t.constructor:o,r=n?Wo(n):"";if(r)switch(r){case Rn:return D;case On:return C;case kn:return I;case Bn:return P;case Dn:return k}return e});var Eo=Rt?rs:wc;function To(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Pt)}function Io(t){return t==t&&!as(t)}function Lo(t,e){return function(n){return null!=n&&n[t]===e&&(e!==o||t in At(n))}}function Po(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,a=r==f&&8==n||r==f&&n==d&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var s=e[3];if(s){var u=t[3];t[3]=u?Ti(u,s,e[4]):s,t[4]=u?pn(t[3],c):e[4]}return(s=e[5])&&(u=t[5],t[5]=u?Ii(u,s,e[6]):s,t[6]=u?pn(t[5],c):e[6]),(s=e[7])&&(t[7]=s),r&f&&(t[8]=null==t[8]?e[8]:xe(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function Ro(t,e,r){return e=_e(e===o?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=_e(i.length-e,0),s=n(a);++o<a;)s[o]=i[e+o];o=-1;for(var c=n(e+1);++o<e;)c[o]=i[o];return c[e]=r(s),Ee(t,this,c)}}function Oo(t,e){return e.length<2?t:Mr(t,ii(e,0,-1))}function ko(t,e){for(var n=t.length,r=xe(e.length,n),i=Li(t);r--;){var a=e[r];t[r]=Mo(a,n)?i[a]:o}return t}function Bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Do=No(ei),Fo=re||function(t,e){return me.setTimeout(t,e)},Uo=No(ni);function jo(t,e,n){var r=e+"";return Uo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ut,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ie(y,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(lt);return e?e[1].split(ht):[]}(r),n)))}function No(t){var e=0,n=0;return function(){var r=Ne(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function zo(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n<e;){var a=Xr(n,i),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Go=function(t){var e=Na(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(it,(function(t,n,r,i){e.push(r?i.replace(pt,"$1"):n||t)})),e}));function Ho(t){if("string"==typeof t||ps(t))return t;var e=t+"";return"0"==e&&1/t==-p?"-0":e}function Wo(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Vo(t){if(t instanceof Wn)return t.clone();var e=new Hn(t.__wrapped__,t.__chain__);return e.__actions__=Li(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Zo=qr((function(t,e){return $a(t)?hr(t,vr(e,1,$a,!0)):[]})),Qo=qr((function(t,e){var n=na(e);return $a(n)&&(n=o),$a(t)?hr(t,vr(e,1,$a,!0),fo(n,2)):[]})),Xo=qr((function(t,e){var n=na(e);return $a(n)&&(n=o),$a(t)?hr(t,vr(e,1,$a,!0),o,n):[]}));function Yo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:xs(n);return i<0&&(i=_e(r+i,0)),He(t,fo(e,3),i)}function Jo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==o&&(i=xs(n),i=n<0?_e(r+i,0):xe(i,r-1)),He(t,fo(e,3),i,!0)}function qo(t){return null!=t&&t.length?vr(t,1):[]}function Ko(t){return t&&t.length?t[0]:o}var $o=qr((function(t){var e=Be(t,yi);return e.length&&e[0]===t[0]?Ir(e):[]})),ta=qr((function(t){var e=na(t),n=Be(t,yi);return e===na(n)?e=o:n.pop(),n.length&&n[0]===t[0]?Ir(n,fo(e,2)):[]})),ea=qr((function(t){var e=na(t),n=Be(t,yi);return(e="function"==typeof e?e:o)&&n.pop(),n.length&&n[0]===t[0]?Ir(n,o,e):[]}));function na(t){var e=null==t?0:t.length;return e?t[e-1]:o}var ra=qr(ia);function ia(t,e){return t&&t.length&&e&&e.length?Zr(t,e):t}var oa=ao((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return Qr(t,Be(e,(function(t){return Mo(t,n)?+t:t})).sort(Ei)),r}));function aa(t){return null==t?t:Mn.call(t)}var sa=qr((function(t){return hi(vr(t,1,$a,!0))})),ca=qr((function(t){var e=na(t);return $a(e)&&(e=o),hi(vr(t,1,$a,!0),fo(e,2))})),ua=qr((function(t){var e=na(t);return e="function"==typeof e?e:o,hi(vr(t,1,$a,!0),o,e)}));function la(t){if(!t||!t.length)return[];var e=0;return t=Re(t,(function(t){if($a(t))return e=_e(t.length,e),!0})),Ke(e,(function(e){return Be(t,Xe(e))}))}function ha(t,e){if(!t||!t.length)return[];var n=la(t);return null==e?n:Be(n,(function(t){return Ee(e,o,t)}))}var fa=qr((function(t,e){return $a(t)?hr(t,e):[]})),da=qr((function(t){return gi(Re(t,$a))})),pa=qr((function(t){var e=na(t);return $a(e)&&(e=o),gi(Re(t,$a),fo(e,2))})),ma=qr((function(t){var e=na(t);return e="function"==typeof e?e:o,gi(Re(t,$a),o,e)})),ga=qr(la),va=qr((function(t){var e=t.length,n=e>1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,ha(t,n)}));function ya(t){var e=Nn(t);return e.__chain__=!0,e}function _a(t,e){return e(t)}var xa=ao((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return ar(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Wn&&Mo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:_a,args:[i],thisArg:o}),new Hn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)})),ba=Ri((function(t,e,n){kt.call(t,n)?++t[n]:or(t,n,1)})),wa=Ni(Yo),Ma=Ni(Jo);function Sa(t,e){return(Ja(t)?Ie:fr)(t,fo(e,3))}function Aa(t,e){return(Ja(t)?Le:dr)(t,fo(e,3))}var Ca=Ri((function(t,e,n){kt.call(t,n)?t[n].push(e):or(t,n,[e])})),Ea=qr((function(t,e,r){var i=-1,o="function"==typeof e,a=Ka(t)?n(t.length):[];return fr(t,(function(t){a[++i]=o?Ee(e,t,r):Lr(t,e,r)})),a})),Ta=Ri((function(t,e,n){or(t,n,e)}));function Ia(t,e){return(Ja(t)?Be:jr)(t,fo(e,3))}var La=Ri((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Pa=qr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&So(t,e[0],e[1])?e=[]:n>2&&So(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,vr(e,1),[])})),Ra=ne||function(){return me.Date.now()};function Oa(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,to(t,f,o,o,o,o,e)}function ka(t,e){var n;if("function"!=typeof e)throw new Tt(a);return t=xs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Ba=qr((function(t,e,n){var r=1;if(n.length){var i=pn(n,ho(Ba));r|=l}return to(t,r,e,n,i)})),Da=qr((function(t,e,n){var r=3;if(n.length){var i=pn(n,ho(Da));r|=l}return to(e,r,t,n,i)}));function Fa(t,e,n){var r,i,s,c,u,l,h=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Tt(a);function m(e){var n=r,a=i;return r=i=o,h=e,c=t.apply(a,n)}function g(t){return h=t,u=Fo(y,e),f?m(t):c}function v(t){var n=t-l;return l===o||n>=e||n<0||d&&t-h>=s}function y(){var t=Ra();if(v(t))return _(t);u=Fo(y,function(t){var n=e-(t-l);return d?xe(n,s-(t-h)):n}(t))}function _(t){return u=o,p&&r?m(t):(r=i=o,c)}function x(){var t=Ra(),n=v(t);if(r=arguments,i=this,l=t,n){if(u===o)return g(l);if(d)return Mi(u),u=Fo(y,e),m(l)}return u===o&&(u=Fo(y,e)),c}return e=ws(e)||0,as(n)&&(f=!!n.leading,s=(d="maxWait"in n)?_e(ws(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),x.cancel=function(){u!==o&&Mi(u),h=0,r=l=i=u=o},x.flush=function(){return u===o?c:_(Ra())},x}var Ua=qr((function(t,e){return lr(t,1,e)})),ja=qr((function(t,e,n){return lr(t,ws(e)||0,n)}));function Na(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Tt(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Na.Cache||Qn),n}function za(t){if("function"!=typeof t)throw new Tt(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Na.Cache=Qn;var Ga=bi((function(t,e){var n=(e=1==e.length&&Ja(e[0])?Be(e[0],tn(fo())):Be(vr(e,1),tn(fo()))).length;return qr((function(r){for(var i=-1,o=xe(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ee(t,this,r)}))})),Ha=qr((function(t,e){var n=pn(e,ho(Ha));return to(t,l,o,e,n)})),Wa=qr((function(t,e){var n=pn(e,ho(Wa));return to(t,h,o,e,n)})),Va=ao((function(t,e){return to(t,d,o,o,o,e)}));function Za(t,e){return t===e||t!=t&&e!=e}var Qa=Yi(Cr),Xa=Yi((function(t,e){return t>=e})),Ya=Pr(function(){return arguments}())?Pr:function(t){return ss(t)&&kt.call(t,"callee")&&!Qt.call(t,"callee")},Ja=n.isArray,qa=be?tn(be):function(t){return ss(t)&&Ar(t)==B};function Ka(t){return null!=t&&os(t.length)&&!rs(t)}function $a(t){return ss(t)&&Ka(t)}var ts=de||wc,es=we?tn(we):function(t){return ss(t)&&Ar(t)==w};function ns(t){if(!ss(t))return!1;var e=Ar(t);return e==M||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ls(t)}function rs(t){if(!as(t))return!1;var e=Ar(t);return e==S||e==A||"[object AsyncFunction]"==e||"[object Proxy]"==e}function is(t){return"number"==typeof t&&t==xs(t)}function os(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=m}function as(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ss(t){return null!=t&&"object"==typeof t}var cs=Me?tn(Me):function(t){return ss(t)&&_o(t)==C};function us(t){return"number"==typeof t||ss(t)&&Ar(t)==E}function ls(t){if(!ss(t)||Ar(t)!=T)return!1;var e=Vt(t);if(null===e)return!0;var n=kt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==Ut}var hs=Se?tn(Se):function(t){return ss(t)&&Ar(t)==L},fs=Ae?tn(Ae):function(t){return ss(t)&&_o(t)==P};function ds(t){return"string"==typeof t||!Ja(t)&&ss(t)&&Ar(t)==R}function ps(t){return"symbol"==typeof t||ss(t)&&Ar(t)==O}var ms=Ce?tn(Ce):function(t){return ss(t)&&os(t.length)&&!!ce[Ar(t)]},gs=Yi(Ur),vs=Yi((function(t,e){return t<=e}));function ys(t){if(!t)return[];if(Ka(t))return ds(t)?vn(t):Li(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=_o(t);return(e==C?fn:e==P?mn:Zs)(t)}function _s(t){return t?(t=ws(t))===p||t===-p?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function xs(t){var e=_s(t),n=e%1;return e==e?n?e-n:e:0}function bs(t){return t?sr(xs(t),0,v):0}function ws(t){if("number"==typeof t)return t;if(ps(t))return g;if(as(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=as(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=$e(t);var n=yt.test(t);return n||xt.test(t)?fe(t.slice(2),n?2:8):vt.test(t)?g:+t}function Ms(t){return Pi(t,Us(t))}function Ss(t){return null==t?"":li(t)}var As=Oi((function(t,e){if(To(e)||Ka(e))Pi(e,Fs(e),t);else for(var n in e)kt.call(e,n)&&er(t,n,e[n])})),Cs=Oi((function(t,e){Pi(e,Us(e),t)})),Es=Oi((function(t,e,n,r){Pi(e,Us(e),t,r)})),Ts=Oi((function(t,e,n,r){Pi(e,Fs(e),t,r)})),Is=ao(ar),Ls=qr((function(t,e){t=At(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&So(e[0],e[1],i)&&(r=1);++n<r;)for(var a=e[n],s=Us(a),c=-1,u=s.length;++c<u;){var l=s[c],h=t[l];(h===o||Za(h,Pt[l])&&!kt.call(t,l))&&(t[l]=a[l])}return t})),Ps=qr((function(t){return t.push(o,no),Ee(Ns,o,t)}));function Rs(t,e,n){var r=null==t?o:Mr(t,e);return r===o?n:r}function Os(t,e){return null!=t&&xo(t,e,Tr)}var ks=Hi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=n}),ac(uc)),Bs=Hi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),kt.call(t,e)?t[e].push(n):t[e]=[n]}),fo),Ds=qr(Lr);function Fs(t){return Ka(t)?Jn(t):Dr(t)}function Us(t){return Ka(t)?Jn(t,!0):Fr(t)}var js=Oi((function(t,e,n){Gr(t,e,n)})),Ns=Oi((function(t,e,n,r){Gr(t,e,n,r)})),zs=ao((function(t,e){var n={};if(null==t)return n;var r=!1;e=Be(e,(function(e){return e=xi(e,t),r||(r=e.length>1),e})),Pi(t,co(t),n),r&&(n=cr(n,7,ro));for(var i=e.length;i--;)fi(n,e[i]);return n})),Gs=ao((function(t,e){return null==t?{}:function(t,e){return Vr(t,e,(function(e,n){return Os(t,n)}))}(t,e)}));function Hs(t,e){if(null==t)return{};var n=Be(co(t),(function(t){return[t]}));return e=fo(e),Vr(t,n,(function(t,n){return e(t,n[0])}))}var Ws=$i(Fs),Vs=$i(Us);function Zs(t){return null==t?[]:en(t,Fs(t))}var Qs=Fi((function(t,e,n){return e=e.toLowerCase(),t+(n?Xs(e):e)}));function Xs(t){return nc(Ss(t).toLowerCase())}function Ys(t){return(t=Ss(t))&&t.replace(wt,sn).replace(ee,"")}var Js=Fi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qs=Fi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ks=Di("toLowerCase"),$s=Fi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),tc=Fi((function(t,e,n){return t+(n?" ":"")+nc(e)})),ec=Fi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),nc=Di("toUpperCase");function rc(t,e,n){return t=Ss(t),(e=n?o:e)===o?hn(t)?xn(t):ze(t):t.match(e)||[]}var ic=qr((function(t,e){try{return Ee(t,o,e)}catch(t){return ns(t)?t:new i(t)}})),oc=ao((function(t,e){return Ie(e,(function(e){e=Ho(e),or(t,e,Ba(t[e],t))})),t}));function ac(t){return function(){return t}}var sc=zi(),cc=zi(!0);function uc(t){return t}function lc(t){return Br("function"==typeof t?t:cr(t,1))}var hc=qr((function(t,e){return function(n){return Lr(n,t,e)}})),fc=qr((function(t,e){return function(n){return Lr(t,n,e)}}));function dc(t,e,n){var r=Fs(e),i=wr(e,r);null!=n||as(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=wr(e,Fs(e)));var o=!(as(n)&&"chain"in n&&!n.chain),a=rs(t);return Ie(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Li(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,De([this.value()],arguments))})})),t}function pc(){}var mc=Vi(Be),gc=Vi(Pe),vc=Vi(je);function yc(t){return Ao(t)?Xe(Ho(t)):function(t){return function(e){return Mr(e,t)}}(t)}var _c=Xi(),xc=Xi(!0);function bc(){return[]}function wc(){return!1}var Mc=Wi((function(t,e){return t+e}),0),Sc=qi("ceil"),Ac=Wi((function(t,e){return t/e}),1),Cc=qi("floor"),Ec=Wi((function(t,e){return t*e}),1),Tc=qi("round"),Ic=Wi((function(t,e){return t-e}),0);return Nn.after=function(t,e){if("function"!=typeof e)throw new Tt(a);return t=xs(t),function(){if(--t<1)return e.apply(this,arguments)}},Nn.ary=Oa,Nn.assign=As,Nn.assignIn=Cs,Nn.assignInWith=Es,Nn.assignWith=Ts,Nn.at=Is,Nn.before=ka,Nn.bind=Ba,Nn.bindAll=oc,Nn.bindKey=Da,Nn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ja(t)?t:[t]},Nn.chain=ya,Nn.chunk=function(t,e,r){e=(r?So(t,e,r):e===o)?1:_e(xs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,s=0,c=n(ie(i/e));a<i;)c[s++]=ii(t,a,a+=e);return c},Nn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Nn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return De(Ja(r)?Li(r):[r],vr(e,1))},Nn.cond=function(t){var e=null==t?0:t.length,n=fo();return t=e?Be(t,(function(t){if("function"!=typeof t[1])throw new Tt(a);return[n(t[0]),t[1]]})):[],qr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ee(i[0],this,n))return Ee(i[1],this,n)}}))},Nn.conforms=function(t){return function(t){var e=Fs(t);return function(n){return ur(n,t,e)}}(cr(t,1))},Nn.constant=ac,Nn.countBy=ba,Nn.create=function(t,e){var n=zn(t);return null==e?n:ir(n,e)},Nn.curry=function t(e,n,r){var i=to(e,8,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},Nn.curryRight=function t(e,n,r){var i=to(e,u,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},Nn.debounce=Fa,Nn.defaults=Ls,Nn.defaultsDeep=Ps,Nn.defer=Ua,Nn.delay=ja,Nn.difference=Zo,Nn.differenceBy=Qo,Nn.differenceWith=Xo,Nn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=n||e===o?1:xs(e))<0?0:e,r):[]},Nn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,0,(e=r-(e=n||e===o?1:xs(e)))<0?0:e):[]},Nn.dropRightWhile=function(t,e){return t&&t.length?pi(t,fo(e,3),!0,!0):[]},Nn.dropWhile=function(t,e){return t&&t.length?pi(t,fo(e,3),!0):[]},Nn.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&So(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=xs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:xs(r))<0&&(r+=i),r=n>r?0:bs(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Nn.filter=function(t,e){return(Ja(t)?Re:gr)(t,fo(e,3))},Nn.flatMap=function(t,e){return vr(Ia(t,e),1)},Nn.flatMapDeep=function(t,e){return vr(Ia(t,e),p)},Nn.flatMapDepth=function(t,e,n){return n=n===o?1:xs(n),vr(Ia(t,e),n)},Nn.flatten=qo,Nn.flattenDeep=function(t){return null!=t&&t.length?vr(t,p):[]},Nn.flattenDepth=function(t,e){return null!=t&&t.length?vr(t,e=e===o?1:xs(e)):[]},Nn.flip=function(t){return to(t,512)},Nn.flow=sc,Nn.flowRight=cc,Nn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Nn.functions=function(t){return null==t?[]:wr(t,Fs(t))},Nn.functionsIn=function(t){return null==t?[]:wr(t,Us(t))},Nn.groupBy=Ca,Nn.initial=function(t){return null!=t&&t.length?ii(t,0,-1):[]},Nn.intersection=$o,Nn.intersectionBy=ta,Nn.intersectionWith=ea,Nn.invert=ks,Nn.invertBy=Bs,Nn.invokeMap=Ea,Nn.iteratee=lc,Nn.keyBy=Ta,Nn.keys=Fs,Nn.keysIn=Us,Nn.map=Ia,Nn.mapKeys=function(t,e){var n={};return e=fo(e,3),xr(t,(function(t,r,i){or(n,e(t,r,i),t)})),n},Nn.mapValues=function(t,e){var n={};return e=fo(e,3),xr(t,(function(t,r,i){or(n,r,e(t,r,i))})),n},Nn.matches=function(t){return Nr(cr(t,1))},Nn.matchesProperty=function(t,e){return zr(t,cr(e,1))},Nn.memoize=Na,Nn.merge=js,Nn.mergeWith=Ns,Nn.method=hc,Nn.methodOf=fc,Nn.mixin=dc,Nn.negate=za,Nn.nthArg=function(t){return t=xs(t),qr((function(e){return Hr(e,t)}))},Nn.omit=zs,Nn.omitBy=function(t,e){return Hs(t,za(fo(e)))},Nn.once=function(t){return ka(2,t)},Nn.orderBy=function(t,e,n,r){return null==t?[]:(Ja(e)||(e=null==e?[]:[e]),Ja(n=r?o:n)||(n=null==n?[]:[n]),Wr(t,e,n))},Nn.over=mc,Nn.overArgs=Ga,Nn.overEvery=gc,Nn.overSome=vc,Nn.partial=Ha,Nn.partialRight=Wa,Nn.partition=La,Nn.pick=Gs,Nn.pickBy=Hs,Nn.property=yc,Nn.propertyOf=function(t){return function(e){return null==t?o:Mr(t,e)}},Nn.pull=ra,Nn.pullAll=ia,Nn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Zr(t,e,fo(n,2)):t},Nn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Zr(t,e,o,n):t},Nn.pullAt=oa,Nn.range=_c,Nn.rangeRight=xc,Nn.rearg=Va,Nn.reject=function(t,e){return(Ja(t)?Re:gr)(t,za(fo(e,3)))},Nn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=fo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Qr(t,i),n},Nn.rest=function(t,e){if("function"!=typeof t)throw new Tt(a);return qr(t,e=e===o?e:xs(e))},Nn.reverse=aa,Nn.sampleSize=function(t,e,n){return e=(n?So(t,e,n):e===o)?1:xs(e),(Ja(t)?Kn:$r)(t,e)},Nn.set=function(t,e,n){return null==t?t:ti(t,e,n)},Nn.setWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:ti(t,e,n,r)},Nn.shuffle=function(t){return(Ja(t)?$n:ri)(t)},Nn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&So(t,e,n)?(e=0,n=r):(e=null==e?0:xs(e),n=n===o?r:xs(n)),ii(t,e,n)):[]},Nn.sortBy=Pa,Nn.sortedUniq=function(t){return t&&t.length?ci(t):[]},Nn.sortedUniqBy=function(t,e){return t&&t.length?ci(t,fo(e,2)):[]},Nn.split=function(t,e,n){return n&&"number"!=typeof n&&So(t,e,n)&&(e=n=o),(n=n===o?v:n>>>0)?(t=Ss(t))&&("string"==typeof e||null!=e&&!hs(e))&&!(e=li(e))&&ln(t)?wi(vn(t),0,n):t.split(e,n):[]},Nn.spread=function(t,e){if("function"!=typeof t)throw new Tt(a);return e=null==e?0:_e(xs(e),0),qr((function(n){var r=n[e],i=wi(n,0,e);return r&&De(i,r),Ee(t,this,i)}))},Nn.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},Nn.take=function(t,e,n){return t&&t.length?ii(t,0,(e=n||e===o?1:xs(e))<0?0:e):[]},Nn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=r-(e=n||e===o?1:xs(e)))<0?0:e,r):[]},Nn.takeRightWhile=function(t,e){return t&&t.length?pi(t,fo(e,3),!1,!0):[]},Nn.takeWhile=function(t,e){return t&&t.length?pi(t,fo(e,3)):[]},Nn.tap=function(t,e){return e(t),t},Nn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Tt(a);return as(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Fa(t,e,{leading:r,maxWait:e,trailing:i})},Nn.thru=_a,Nn.toArray=ys,Nn.toPairs=Ws,Nn.toPairsIn=Vs,Nn.toPath=function(t){return Ja(t)?Be(t,Ho):ps(t)?[t]:Li(Go(Ss(t)))},Nn.toPlainObject=Ms,Nn.transform=function(t,e,n){var r=Ja(t),i=r||ts(t)||ms(t);if(e=fo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:as(t)&&rs(o)?zn(Vt(t)):{}}return(i?Ie:xr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Nn.unary=function(t){return Oa(t,1)},Nn.union=sa,Nn.unionBy=ca,Nn.unionWith=ua,Nn.uniq=function(t){return t&&t.length?hi(t):[]},Nn.uniqBy=function(t,e){return t&&t.length?hi(t,fo(e,2)):[]},Nn.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?hi(t,o,e):[]},Nn.unset=function(t,e){return null==t||fi(t,e)},Nn.unzip=la,Nn.unzipWith=ha,Nn.update=function(t,e,n){return null==t?t:di(t,e,_i(n))},Nn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:di(t,e,_i(n),r)},Nn.values=Zs,Nn.valuesIn=function(t){return null==t?[]:en(t,Us(t))},Nn.without=fa,Nn.words=rc,Nn.wrap=function(t,e){return Ha(_i(e),t)},Nn.xor=da,Nn.xorBy=pa,Nn.xorWith=ma,Nn.zip=ga,Nn.zipObject=function(t,e){return vi(t||[],e||[],er)},Nn.zipObjectDeep=function(t,e){return vi(t||[],e||[],ti)},Nn.zipWith=va,Nn.entries=Ws,Nn.entriesIn=Vs,Nn.extend=Cs,Nn.extendWith=Es,dc(Nn,Nn),Nn.add=Mc,Nn.attempt=ic,Nn.camelCase=Qs,Nn.capitalize=Xs,Nn.ceil=Sc,Nn.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=ws(n))==n?n:0),e!==o&&(e=(e=ws(e))==e?e:0),sr(ws(t),e,n)},Nn.clone=function(t){return cr(t,4)},Nn.cloneDeep=function(t){return cr(t,5)},Nn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:o)},Nn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:o)},Nn.conformsTo=function(t,e){return null==e||ur(t,e,Fs(e))},Nn.deburr=Ys,Nn.defaultTo=function(t,e){return null==t||t!=t?e:t},Nn.divide=Ac,Nn.endsWith=function(t,e,n){t=Ss(t),e=li(e);var r=t.length,i=n=n===o?r:sr(xs(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Nn.eq=Za,Nn.escape=function(t){return(t=Ss(t))&&K.test(t)?t.replace(J,cn):t},Nn.escapeRegExp=function(t){return(t=Ss(t))&&at.test(t)?t.replace(ot,"\\$&"):t},Nn.every=function(t,e,n){var r=Ja(t)?Pe:pr;return n&&So(t,e,n)&&(e=o),r(t,fo(e,3))},Nn.find=wa,Nn.findIndex=Yo,Nn.findKey=function(t,e){return Ge(t,fo(e,3),xr)},Nn.findLast=Ma,Nn.findLastIndex=Jo,Nn.findLastKey=function(t,e){return Ge(t,fo(e,3),br)},Nn.floor=Cc,Nn.forEach=Sa,Nn.forEachRight=Aa,Nn.forIn=function(t,e){return null==t?t:yr(t,fo(e,3),Us)},Nn.forInRight=function(t,e){return null==t?t:_r(t,fo(e,3),Us)},Nn.forOwn=function(t,e){return t&&xr(t,fo(e,3))},Nn.forOwnRight=function(t,e){return t&&br(t,fo(e,3))},Nn.get=Rs,Nn.gt=Qa,Nn.gte=Xa,Nn.has=function(t,e){return null!=t&&xo(t,e,Er)},Nn.hasIn=Os,Nn.head=Ko,Nn.identity=uc,Nn.includes=function(t,e,n,r){t=Ka(t)?t:Zs(t),n=n&&!r?xs(n):0;var i=t.length;return n<0&&(n=_e(i+n,0)),ds(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&We(t,e,n)>-1},Nn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:xs(n);return i<0&&(i=_e(r+i,0)),We(t,e,i)},Nn.inRange=function(t,e,n){return e=_s(e),n===o?(n=e,e=0):n=_s(n),function(t,e,n){return t>=xe(e,n)&&t<_e(e,n)}(t=ws(t),e,n)},Nn.invoke=Ds,Nn.isArguments=Ya,Nn.isArray=Ja,Nn.isArrayBuffer=qa,Nn.isArrayLike=Ka,Nn.isArrayLikeObject=$a,Nn.isBoolean=function(t){return!0===t||!1===t||ss(t)&&Ar(t)==b},Nn.isBuffer=ts,Nn.isDate=es,Nn.isElement=function(t){return ss(t)&&1===t.nodeType&&!ls(t)},Nn.isEmpty=function(t){if(null==t)return!0;if(Ka(t)&&(Ja(t)||"string"==typeof t||"function"==typeof t.splice||ts(t)||ms(t)||Ya(t)))return!t.length;var e=_o(t);if(e==C||e==P)return!t.size;if(To(t))return!Dr(t).length;for(var n in t)if(kt.call(t,n))return!1;return!0},Nn.isEqual=function(t,e){return Rr(t,e)},Nn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:o)?n(t,e):o;return r===o?Rr(t,e,o,n):!!r},Nn.isError=ns,Nn.isFinite=function(t){return"number"==typeof t&&pe(t)},Nn.isFunction=rs,Nn.isInteger=is,Nn.isLength=os,Nn.isMap=cs,Nn.isMatch=function(t,e){return t===e||Or(t,e,mo(e))},Nn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:o,Or(t,e,mo(e),n)},Nn.isNaN=function(t){return us(t)&&t!=+t},Nn.isNative=function(t){if(Eo(t))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(t)},Nn.isNil=function(t){return null==t},Nn.isNull=function(t){return null===t},Nn.isNumber=us,Nn.isObject=as,Nn.isObjectLike=ss,Nn.isPlainObject=ls,Nn.isRegExp=hs,Nn.isSafeInteger=function(t){return is(t)&&t>=-m&&t<=m},Nn.isSet=fs,Nn.isString=ds,Nn.isSymbol=ps,Nn.isTypedArray=ms,Nn.isUndefined=function(t){return t===o},Nn.isWeakMap=function(t){return ss(t)&&_o(t)==k},Nn.isWeakSet=function(t){return ss(t)&&"[object WeakSet]"==Ar(t)},Nn.join=function(t,e){return null==t?"":ge.call(t,e)},Nn.kebabCase=Js,Nn.last=na,Nn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=xs(n))<0?_e(r+i,0):xe(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):He(t,Ze,i,!0)},Nn.lowerCase=qs,Nn.lowerFirst=Ks,Nn.lt=gs,Nn.lte=vs,Nn.max=function(t){return t&&t.length?mr(t,uc,Cr):o},Nn.maxBy=function(t,e){return t&&t.length?mr(t,fo(e,2),Cr):o},Nn.mean=function(t){return Qe(t,uc)},Nn.meanBy=function(t,e){return Qe(t,fo(e,2))},Nn.min=function(t){return t&&t.length?mr(t,uc,Ur):o},Nn.minBy=function(t,e){return t&&t.length?mr(t,fo(e,2),Ur):o},Nn.stubArray=bc,Nn.stubFalse=wc,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=Ec,Nn.nth=function(t,e){return t&&t.length?Hr(t,xs(e)):o},Nn.noConflict=function(){return me._===this&&(me._=jt),this},Nn.noop=pc,Nn.now=Ra,Nn.pad=function(t,e,n){t=Ss(t);var r=(e=xs(e))?gn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Zi(oe(i),n)+t+Zi(ie(i),n)},Nn.padEnd=function(t,e,n){t=Ss(t);var r=(e=xs(e))?gn(t):0;return e&&r<e?t+Zi(e-r,n):t},Nn.padStart=function(t,e,n){t=Ss(t);var r=(e=xs(e))?gn(t):0;return e&&r<e?Zi(e-r,n)+t:t},Nn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Ye(Ss(t).replace(st,""),e||0)},Nn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&So(t,e,n)&&(e=n=o),n===o&&("boolean"==typeof e?(n=e,e=o):"boolean"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=_s(t),e===o?(e=t,t=0):e=_s(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=wn();return xe(t+i*(e-t+he("1e-"+((i+"").length-1))),e)}return Xr(t,e)},Nn.reduce=function(t,e,n){var r=Ja(t)?Fe:Je,i=arguments.length<3;return r(t,fo(e,4),n,i,fr)},Nn.reduceRight=function(t,e,n){var r=Ja(t)?Ue:Je,i=arguments.length<3;return r(t,fo(e,4),n,i,dr)},Nn.repeat=function(t,e,n){return e=(n?So(t,e,n):e===o)?1:xs(e),Jr(Ss(t),e)},Nn.replace=function(){var t=arguments,e=Ss(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Nn.result=function(t,e,n){var r=-1,i=(e=xi(e,t)).length;for(i||(i=1,t=o);++r<i;){var a=null==t?o:t[Ho(e[r])];a===o&&(r=i,a=n),t=rs(a)?a.call(t):a}return t},Nn.round=Tc,Nn.runInContext=t,Nn.sample=function(t){return(Ja(t)?qn:Kr)(t)},Nn.size=function(t){if(null==t)return 0;if(Ka(t))return ds(t)?gn(t):t.length;var e=_o(t);return e==C||e==P?t.size:Dr(t).length},Nn.snakeCase=$s,Nn.some=function(t,e,n){var r=Ja(t)?je:oi;return n&&So(t,e,n)&&(e=o),r(t,fo(e,3))},Nn.sortedIndex=function(t,e){return ai(t,e)},Nn.sortedIndexBy=function(t,e,n){return si(t,e,fo(n,2))},Nn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&Za(t[r],e))return r}return-1},Nn.sortedLastIndex=function(t,e){return ai(t,e,!0)},Nn.sortedLastIndexBy=function(t,e,n){return si(t,e,fo(n,2),!0)},Nn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ai(t,e,!0)-1;if(Za(t[n],e))return n}return-1},Nn.startCase=tc,Nn.startsWith=function(t,e,n){return t=Ss(t),n=null==n?0:sr(xs(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},Nn.subtract=Ic,Nn.sum=function(t){return t&&t.length?qe(t,uc):0},Nn.sumBy=function(t,e){return t&&t.length?qe(t,fo(e,2)):0},Nn.template=function(t,e,n){var r=Nn.templateSettings;n&&So(t,e,n)&&(e=o),t=Ss(t),e=Es({},e,r,eo);var a,s,c=Es({},e.imports,r.imports,eo),u=Fs(c),l=en(c,u),h=0,f=e.interpolate||Mt,d="__p += '",p=Ct((e.escape||Mt).source+"|"+f.source+"|"+(f===et?mt:Mt).source+"|"+(e.evaluate||Mt).source+"|$","g"),m="//# sourceURL="+(kt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++se+"]")+"\n";t.replace(p,(function(e,n,r,i,o,c){return r||(r=i),d+=t.slice(h,c).replace(St,un),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),o&&(s=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=c+e.length,e})),d+="';\n";var g=kt.call(e,"variable")&&e.variable;if(g){if(dt.test(g))throw new i("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(Z,""):d).replace(Q,"$1").replace(X,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=ic((function(){return ct(u,m+"return "+d).apply(o,l)}));if(v.source=d,ns(v))throw v;return v},Nn.times=function(t,e){if((t=xs(t))<1||t>m)return[];var n=v,r=xe(t,v);e=fo(e),t-=v;for(var i=Ke(r,e);++n<t;)e(n);return i},Nn.toFinite=_s,Nn.toInteger=xs,Nn.toLength=bs,Nn.toLower=function(t){return Ss(t).toLowerCase()},Nn.toNumber=ws,Nn.toSafeInteger=function(t){return t?sr(xs(t),-m,m):0===t?t:0},Nn.toString=Ss,Nn.toUpper=function(t){return Ss(t).toUpperCase()},Nn.trim=function(t,e,n){if((t=Ss(t))&&(n||e===o))return $e(t);if(!t||!(e=li(e)))return t;var r=vn(t),i=vn(e);return wi(r,rn(r,i),on(r,i)+1).join("")},Nn.trimEnd=function(t,e,n){if((t=Ss(t))&&(n||e===o))return t.slice(0,yn(t)+1);if(!t||!(e=li(e)))return t;var r=vn(t);return wi(r,0,on(r,vn(e))+1).join("")},Nn.trimStart=function(t,e,n){if((t=Ss(t))&&(n||e===o))return t.replace(st,"");if(!t||!(e=li(e)))return t;var r=vn(t);return wi(r,rn(r,vn(e))).join("")},Nn.truncate=function(t,e){var n=30,r="...";if(as(e)){var i="separator"in e?e.separator:i;n="length"in e?xs(e.length):n,r="omission"in e?li(e.omission):r}var a=(t=Ss(t)).length;if(ln(t)){var s=vn(t);a=s.length}if(n>=a)return t;var c=n-gn(r);if(c<1)return r;var u=s?wi(s,0,c).join(""):t.slice(0,c);if(i===o)return u+r;if(s&&(c+=u.length-c),hs(i)){if(t.slice(c).search(i)){var l,h=u;for(i.global||(i=Ct(i.source,Ss(gt.exec(i))+"g")),i.lastIndex=0;l=i.exec(h);)var f=l.index;u=u.slice(0,f===o?c:f)}}else if(t.indexOf(li(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Nn.unescape=function(t){return(t=Ss(t))&&q.test(t)?t.replace(Y,_n):t},Nn.uniqueId=function(t){var e=++Bt;return Ss(t)+e},Nn.upperCase=ec,Nn.upperFirst=nc,Nn.each=Sa,Nn.eachRight=Aa,Nn.first=Ko,dc(Nn,function(){var t={};return xr(Nn,(function(e,n){kt.call(Nn.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),Nn.VERSION="4.17.21",Ie(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Nn[t].placeholder=Nn})),Ie(["drop","take"],(function(t,e){Wn.prototype[t]=function(n){n=n===o?1:_e(xs(n),0);var r=this.__filtered__&&!e?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=xe(n,r.__takeCount__):r.__views__.push({size:xe(n,v),type:t+(r.__dir__<0?"Right":"")}),r},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ie(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:fo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),Ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(uc)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=qr((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return Lr(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(za(fo(t)))},Wn.prototype.slice=function(t,e){t=xs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Wn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=xs(e))<0?n.dropRight(-e):n.take(e-t)),n)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(v)},xr(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Nn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(Nn.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,c=e instanceof Wn,u=s[0],l=c||Ja(e),h=function(t){var e=i.apply(Nn,De([t],s));return r&&f?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=a&&!f,m=c&&!d;if(!a&&l){e=m?e:new Wn(this);var g=t.apply(e,s);return g.__actions__.push({func:_a,args:[h],thisArg:o}),new Hn(g,f)}return p&&m?t.apply(this,s):(g=this.thru(h),p?r?g.value()[0]:g.value():g)})})),Ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=It[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Nn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ja(i)?i:[],t)}return this[n]((function(n){return e.apply(Ja(n)?n:[],t)}))}})),xr(Wn.prototype,(function(t,e){var n=Nn[e];if(n){var r=n.name+"";kt.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:e,func:n})}})),Pn[Gi(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var t=new Wn(this.__wrapped__);return t.__actions__=Li(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Li(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Li(this.__views__),t},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ja(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=xe(e,t+a);break;case"takeRight":t=_e(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,h=l.length,f=0,d=xe(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return mi(t,this.__actions__);var p=[];t:for(;c--&&f<d;){for(var m=-1,g=t[u+=e];++m<h;){var v=l[m],y=v.iteratee,_=v.type,x=y(g);if(2==_)g=x;else if(!x){if(1==_)continue t;break t}}p[f++]=g}return p},Nn.prototype.at=xa,Nn.prototype.chain=function(){return ya(this)},Nn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Nn.prototype.next=function(){this.__values__===o&&(this.__values__=ys(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},Nn.prototype.plant=function(t){for(var e,n=this;n instanceof Gn;){var r=Vo(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Nn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:_a,args:[aa],thisArg:o}),new Hn(e,this.__chain__)}return this.thru(aa)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Jt&&(Nn.prototype[Jt]=function(){return this}),Nn}();me._=bn,(i=function(){return bn}.call(e,n,e,r))===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},3053:function(t,e,n){(function(e){var n=Object.assign?Object.assign:function(t,e,n,r){for(var i=1;i<arguments.length;i++)s(Object(arguments[i]),(function(e,n){t[n]=e}));return t},r=function(){if(Object.create)return function(t,e,r,i){var o=a(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,r,i,o){var s=a(arguments,1);return t.prototype=e,n.apply(this,[new t].concat(s))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function a(t,e){return Array.prototype.slice.call(t,e||0)}function s(t,e){c(t,(function(t,n){return e(t,n),!1}))}function c(t,e){if(u(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function u(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:r,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:a,each:s,map:function(t,e){var n=u(t)?[]:{};return c(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:c,isList:u,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n("c8ba"))},3280:function(t,e,n){"use strict";var r=n("ebb5"),i=n("2ba4"),o=n("e58c"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(o,a(this),e>1?[t,arguments[1]]:[t])}))},3410:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177");r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("dc4a"),o=n("3f8c"),a=n("b622")("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},"35ff":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAUCAYAAABvVQZ0AAAAAXNSR0IArs4c6QAAAUVJREFUOBGdkjFuAjEQRUmBqJC4AvWWSCm24xp0EX3Sp9uLIOUQaejSUXEMGhSJGyzvOx7Ha3mMxEgf2+M/j/HAbNaIcRxXaECnuK4a9vpVBrmxz0NnwR9DZYrmHHIkt0NaLXwoDg/S573j65EP5fIDlZ1MIDlQewf6rosrsvhm83gef0C9Rn6Lq2Ab5LdetIXXG8kmWTE159GA/I8EU4dejepAv8i7c1U96vTMC1L8oG0DKo/GkTqRH6lOcRFsj351ilGDDtx5EJWpfh8aYbNEnzHJEmIClZHsFilvIYjqlgZacJhHswd9w+NCVI8W+rYz0nAHFP5jrDUo6fCc1In8SHWqPwt2QBYeVF15EKs92FN7MkfLsk6gwcQH+bwTs6su/TjmldmDrrmz57QhiRY3FagBtNY7KSHluYA+B6lAX8pc7XwHMYFxBb/kUuEAAAAASUVORK5CYII="},3729:function(t,e,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("fc6a"),s=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),c=s(e),u=c.length,l=0;u>l;)i.f(t,n=c[l++],r[n]);return t}},3835:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");var r=n("06c5");function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||Object(r.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"3a7b":function(t,e,n){"use strict";var r=n("ebb5"),i=n("b727").findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("da84"),i=n("1626"),o=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},"3c3f":function(t,e){t.exports={name:"memoryStorage",read:function(t){return n[t]},write:function(t,e){n[t]=e},each:function(t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)},remove:function(t){delete n[t]},clearAll:function(t){n={}}};var n={}},"3c5d":function(t,e,n){"use strict";var r=n("da84"),i=n("ebb5"),o=n("07fa"),a=n("182d"),s=n("7b0b"),c=n("d039"),u=r.RangeError,l=i.aTypedArray;(0,i.exportTypedArrayMethod)("set",(function(t){l(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=s(t),i=o(r),c=0;if(i+e>n)throw u("Wrong length");for(;c<i;)this[e+c]=r[c++]}),c((function(){new Int8Array(1).set({})})))},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("7dd0"),s="String Iterator",c=o.set,u=o.getterFor(s);a(String,"String",(function(t){c(this,{type:s,string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3d0e":function(t,e,n){var r=n("a0c5");r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("6cd29bbe",r,!0,{sourceMap:!1,shadowMode:!1})},"3d4f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0NTE4ZWRhOC03NjQ5LTNjNGUtYjYxZi0xNjVhZmQzNmJmMzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MUJCN0UxQjY3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MUJCN0UxQjU3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDUxOGVkYTgtNzY0OS0zYzRlLWI2MWYtMTY1YWZkMzZiZjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ1MThlZGE4LTc2NDktM2M0ZS1iNjFmLTE2NWFmZDM2YmYzNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pvm07Z8AAADSSURBVHjaYvj//z8DPswIBI6Ojiz41LAwEAAzpk1bw83Lyw5k+uBUhM+GyRMnzv3+/ft/EJ4+dWodLnU4Dejr6en+9OnTfxh48eLF/6amJneiDelsb6969+7df3Rw+fLln+np6XIEDWloaMgA2YoL7N6163lYWBgnTkPqa2oiHz169J8QWLx48RFQrGEYUlpa6n379u1//4kAP378+D9xwoR+FEPy8vJsr1y58uc/CeDly5f/66qrw8CGZGZmSp85ffrVfzLA5UuXvuakpMgDBBgAQbLv2dsvRWYAAAAASUVORK5CYII="},"3ee2":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".rk-map{position:relative;overflow:hidden}.rk-map,.rk-map-spin{width:100%;height:100%}.rk-map-spin{position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.rk-map-core{width:100%;height:100%}.maptalks-wrapper{transition:all .5s}",""]),t.exports=e},"3f13":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("5a89"),o=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n={}),t.call(this,e,n)||this}return r(e,t),e.prototype.raycast=function(){this.mesh.raycast.apply(this.mesh,arguments)},e.prototype.updateText=function(){this.cleanUp(),this.canvas.drawText(this._text,{font:this._font,fillStyle:this._fillStyle,shadowBlur:this._shadowBlur,shadowColor:this._shadowColor,shadowOffsetX:this._shadowOffsetX,shadowOffsetY:this._shadowOffsetY,lineHeight:this._lineHeight,align:this.align,backgroundColor:this._backgroundColor,horizontalPadding:this._horizontalPadding,verticalPadding:this._verticalPadding}),this.texture=new i.Texture(this.canvas.canvas),this.texture.needsUpdate=!0,this.applyAntiAlias(),this.material?this.material.map=this.texture:(this.material=new i.MeshBasicMaterial({map:this.texture,side:this.side}),this.material.transparent=!0),this.mesh||(this.geometry=new i.PlaneGeometry(this.canvas.width,this.canvas.height),this.mesh=new i.Mesh(this.geometry,this.material),this.add(this.mesh)),this.mesh.position.x=this.canvas.width/2-this.canvas.textWidth/2+this.canvas.textWidth/2*this.align.x,this.mesh.position.y=-this.canvas.height/2+this.canvas.textHeight/2*this.align.y,this.geometry.vertices[0].x=this.geometry.vertices[2].x=-this.canvas.width/2,this.geometry.vertices[1].x=this.geometry.vertices[3].x=this.canvas.width/2,this.geometry.vertices[0].y=this.geometry.vertices[1].y=this.canvas.height/2,this.geometry.vertices[2].y=this.geometry.vertices[3].y=-this.canvas.height/2,this.geometry.verticesNeedUpdate=!0},e}(n("6ab7").Text2D);e.MeshText2D=o},"3f8c":function(t,e){t.exports={}},"3fcc":function(t,e,n){"use strict";var r=n("ebb5"),i=n("b727").map,o=n("b6b7"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},4069:function(t,e,n){n("44d2")("flat")},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},4442:function(t,e,n){var r=n("3053").Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(!s){var n=u(t);a((function(t){t.setAttribute(n,e),t.save(i)}))}},read:function(t){if(!s){var e=u(t),n=null;return a((function(t){n=t.getAttribute(e)})),n}},each:function(t){a((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))},remove:function(t){var e=u(t);a((function(t){t.removeAttribute(e),t.save(i)}))},clearAll:function(){a((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(i);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(i)}))}};var i="storejs",o=r.document,a=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var t,e,n;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=o.createElement("div"),t=o.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load(i),e.apply(this,r),t.removeChild(n)}}(),s=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(t){return t.replace(/^\d/,"___$&").replace(c,"___")}},"44ad":function(t,e,n){var r=n("da84"),i=n("e330"),o=n("d039"),a=n("c6b6"),s=r.Object,c=i("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?c(t,""):s(t)}:s},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},"45eb":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n("d3b7"),n("f8c9"),n("5d41"),n("e439");var r=n("7e84");function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(r.a)(t)););return t}function o(){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=i(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}},"466d":function(t,e,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("50c4"),s=n("577e"),c=n("1d80"),u=n("dc4a"),l=n("8aa5"),h=n("14c3");i("match",(function(t,e,n){return[function(e){var n=c(this),i=null==e?void 0:u(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=o(this),i=s(t),c=n(e,r,i);if(c.done)return c.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;for(var f,d=[],p=0;null!==(f=h(r,i));){var m=s(f[0]);d[p]=m,""===m&&(r.lastIndex=l(i,a(r.lastIndex),u)),p++}return 0===p?null:d}]}))},4703:function(t,e,n){"use strict";function r(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function i(t){return"Feature"===t.type?t.geometry:t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n("d30b")},"47c9":function(module,__webpack_exports__,__webpack_require__){"use strict";var C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("1da1"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("d4ec"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("bee2"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("45eb"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("7e84"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("262e"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("2caf"),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("96cf"),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("4de4"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("caad"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("2532"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("ddb0"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_array_flat_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("0481"),core_js_modules_es_array_flat_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_array_flat_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_array_unscopables_flat_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("4069"),core_js_modules_es_array_unscopables_flat_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_array_unscopables_flat_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("5319"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("5b81"),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("fb6a"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_23__),_gisCommon__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("bb7e"),_Points__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("0514"),_baseMark_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("f62a"),_pollutionFactors__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("a6a2"),three__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("5a89"),maptalks__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("ec60"),simpleMark=function(_baseMark){Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__.a)(simpleMark,_baseMark);var _super=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__.a)(simpleMark),t;function simpleMark(t,e,n){var r;return Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__.a)(this,simpleMark),(r=_super.call(this,t,e,n)).InforItems=[],r.curZoom=9,r.clusterMinZoom=9,r.name=e.labelLayerName,r.zoomPara=.05,r.canvasSize=e.canvasSize||40,r._bound=e.bound,r.pLen=t.length-1,r.updateIndex=0,r}return Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__.a)(simpleMark,[{key:"_initChildVar",value:function(t,e){!0===t.addValueLabel&&(this.bzlayerNum=new maptalks__WEBPACK_IMPORTED_MODULE_29__.VectorLayer(maptalks__WEBPACK_IMPORTED_MODULE_29__.Util.GUID(),{minZoom:t.valueMinZoom||11,geometryEvents:!1,hitDetect:!1,visible:!1,zIndex:1001}).addTo(e.map),this.bz_all_nums=[],this.valueFaceName=t.valueFaceName||"microsoft yahei",this.valueFontSize=t.valueFontSize||12,this.valueDy=t.valueDy||0,this.valueDx=t.valueDx||0),this.interactive=void 0===t.interactive||t.interactive,this.beginSizeZoom=t.beginSizeZoom||3,this.endSizeZoom=t.endSizeZoom||12,this.spanSizeZoom=this.endSizeZoom-this.beginSizeZoom,this.stepSize=1/(this.endSizeZoom-this.beginSizeZoom+1),this.paraName=t.paraName||"pm25",this.typeImgNum=-1}},{key:"_bindDataItem",value:function(t,e,n){var r=parseFloat(e.value)||0,i=parseFloat(e.opavalue)?parseFloat(e.opavalue):1,o=0;e.imgSrc&&(o=e.imgSrc.length);var a=.9,s="#fff";e.imgColor&&e.imgColor.length>=1&&(a=1.9,s=e.imgColor[0]);var c=.9,u="#fff";e.imgColor&&e.imgColor.length>=2&&(c=1.9,u=e.imgColor[1]);var l=(parseFloat(e.windDirection)||0)+.01,h=parseFloat(l*(Math.PI/180));if(t.push({coordinate:[parseFloat(e.longitude),parseFloat(e.latitude)],height:0,color:s,colorflag:a,fcolorflag:c,fcolor1:u,imgnum:o,value:e.name,imgflag:n,rotation:h,visibility:1==e.visibility?1:.1,code:e.code,opavalue:i,pvalue:e.value||0,data:e.data}),this.bzlayerNum){var f=e.valueFontColr||Object(_pollutionFactors__WEBPACK_IMPORTED_MODULE_27__.a)(r,this.paraName),d=new maptalks__WEBPACK_IMPORTED_MODULE_29__.Marker([parseFloat(e.longitude),parseFloat(e.latitude)],{properties:{name:r,type:e.businessType,pvalue:r},symbol:{textFaceName:this.valueFaceName,textName:"{name}",textSize:this.valueFontSize,textFill:f,textDx:this.valueDx,textDy:this.valueDy}});1==e.visibility&&this.bzlayerNum.addGeometry(d),this.bz_all_nums.push(d)}}},{key:"_getRate",value:function(){var t=this.map.getZoom()-this.beginSizeZoom;return(t=t>this.spanSizeZoom?this.spanSizeZoom:t)*this.stepSize+this.stepSize}},{key:"_getImgType",value:function(t,e,n){return void 0===this.typeValues[t]&&(0===Object.keys(this.typeValues).length?this.initTypeValue=.9:this.initTypeValue+=this.typeImgNum,this.typeImgNum=e.length,this.typeValues[t]={v:this.initTypeValue,img:e,inImgWidth:parseInt(n.inImgWidth)||16}),this.typeValues[t].v}},{key:"_pointShowHide",value:function(t,e,n,r,i){var o=this;this.layerLabel&&this.layerLabel.clear();var a=function(a){var s=t.filter((function(t){return t===a}));o._itemHide(s,e,n,r,i,o.typeValues[a].v)};for(var s in this.typeValues)a(s)}},{key:"pointFindByCode",value:function(t,e,n){var r=this.dataItems.filter((function(e){return e.code===t}));r.length>0&&(e&&this.map.fitExtent(new maptalks__WEBPACK_IMPORTED_MODULE_29__.Extent(r[0].coordinate[0]-this.zoomPara,r[0].coordinate[1]-this.zoomPara,r[0].coordinate[0]+this.zoomPara,r[0].coordinate[1]+this.zoomPara),0),n&&this.iconFile&&this._addIcon(r[0]))}},{key:"pointAddInfos",value:function(t,e,n,r){if(void 0!==e){this.clearIcon();for(var i=[],o=0;o<this.dataItems.length;o++){var a=this.dataItems[o];t.includes(a.code)&&i.push(o)}this.addInfoNew(i,e,n,r)}}},{key:"_loadTexture",value:(t=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.a)(regeneratorRuntime.mark((function t(){var e,n,r,i,o,a,s,c,u,l,h,f,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],t.t0=regeneratorRuntime.keys(this.typeValues);case 2:if((t.t1=t.t0()).done){t.next=32;break}if(n=t.t1.value,!this.typeValues[n].img||!Array.isArray(this.typeValues[n].img)){t.next=30;break}r=0;case 6:if(!(r<this.typeValues[n].img.length)){t.next=30;break}if(i=this.typeValues[n].img[r],o=i,!i.includes(".svg")){t.next=16;break}return t.next=12,fetch(i);case 12:return a=t.sent,t.next=15,a.text();case 15:o=t.sent;case 16:return s=new DOMParser,c=s.parseFromString(o,"image/svg+xml"),u=1*(c.documentElement.getAttribute("width")||1),l=1*(c.documentElement.getAttribute("height")||1),h=l/u,f=parseInt(this.canvasSize/h),d=parseInt(f*h),t.next=25,_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.addImageProcess(o);case 25:p=t.sent,0===r?e.push({type:"img",src:p,w:this.canvasSize,h:this.canvasSize,iw:f,ih:d}):(f=parseInt(this.typeValues[n].inImgWidth/h),d=parseInt(f*h),e.push({type:"img1",src:p,w:this.canvasSize,h:this.canvasSize,iw:f,ih:d}));case 27:r++,t.next=6;break;case 30:t.next=2;break;case 32:return t.abrupt("return",_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.generateTexture(e));case 33:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"addPoint",value:function(){var t=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.a)(regeneratorRuntime.mark((function t(){var e,n,r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.dataItems){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this._loadTexture();case 4:return e=t.sent,this.textures||(this.textures=[]),this.textures.push(e.texture),n=this._getRate(),this.m.onBeforeCompile=function(t){r=o._createShaderPol(t,e.texture,e.xys,e.textureSize,o.markSize*n),o.shader=r},i=new _Points__WEBPACK_IMPORTED_MODULE_25__.a(this.dataItems,{minZoom:this.minZoom,bound:this._bound,interactive:this.interactive},this.m,this._getMarkSize,this.threeLayer),this.isToolTip&&i.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),i.object3d.renderOrder=this.order,this.point=i,this.point.parent=this,this.threeLayer.addMesh(this.point),this._bindMapEvents(),t.abrupt("return",i);case 17:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"addInfoNew",value:function(){var t=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.a)(regeneratorRuntime.mark((function t(e,n,r,i){var o,a,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.length!==this.InforItems.length){t.next=2;break}return t.abrupt("return");case 2:o=0;case 3:if(!(o<this.dataItems.length)){t.next=16;break}if(!e.includes(o)){t.next=13;break}return a=this.dataItems[o],s={single:!1,custom:!0,dy:i||-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,content:""},c=new maptalks__WEBPACK_IMPORTED_MODULE_29__.ui.InfoWindow(s),this.InforItems.push(c),c.addTo(this.map),t.next=12,n(c,a);case 12:c.show({x:a.coordinate[0],y:a.coordinate[1]});case 13:o++,t.next=3;break;case 16:case"end":return t.stop()}}),t,this)})));return function(e,n,r,i){return t.apply(this,arguments)}}()},{key:"addInfo",value:function(t){if(t.length!==this.InforItems.length)for(var e=0;e<this.dataItems.length;e++)if(t.includes(e)){var n=this.dataItems[e],r=n.data.infoWindowData;if(n.data.law_num&&n.data.punish_num&&(r=[{key:"案件数",value:n.data.law_num},{key:"处罚金额",value:"".concat(n.data.punish_num,"万元")}]),!r||!r.length)continue;var i={single:!1,custom:!0,dy:-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,content:'<div style="background: rgba(0,0,0,0.42); border-radius: 6px; font-size: 12px; color: #ffffff; padding: 6px;display: flex;\n flex-direction: column;\n align-items: center; width: 128px">\n <span>'.concat(r[0].key,":").concat(r[0].value,"</span>\n <span>").concat(r[1].key,":").concat(r[1].value,"</span>\n </div>")},o=new maptalks__WEBPACK_IMPORTED_MODULE_29__.ui.InfoWindow(i);this.InforItems.push(o),o.addTo(this.map).show({x:n.coordinate[0],y:n.coordinate[1]})}}},{key:"hideInfoWindows",value:function(){this.InforItems.length>0&&(this.InforItems.forEach((function(t){t.remove()})),this.InforItems=[])}},{key:"pointShowStatisticsByeCodeMultiple",value:function(t,e,n,r,i){var o=this;this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this.hideInfoWindows(),this._deleteFunsKey();for(var a=[],s=[],c=0;c<e.length;c++)a.push({code:c,geo:e[c],geojson:e[c].toGeoJSON(),ptnum:0,val:t,sum:0,ptids:[]});a.forEach((function(e){for(var r=0;r<o.dataItems.length;r++){var i=o.dataItems[r];t.includes(i.code)&&_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.containsCoordinate2(o.dataItems[r].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(r),s.push(r),o.dataItems[r].data[n]?(e.sum+=parseFloat(o.dataItems[r].data[n])||0,e.sum=Math.floor(100*e.sum)/100):e.sum+=0)}})),this._clearClusterCache();var u=this.clusterMinZoom;this.clusterItemsCache[u]=a,this.testMinClusterZoom1(this.clusterItemsCache[u],r,i),this.funcsNew.c=function(){var t=o.getClosestZoom(o.map.pixelToDistance(1,0));if(!(t<9||t>18)&&o.curZoom!==t)if(o.curZoom=t,o.clusterItemsCache[t])if(t===o.clusterMinZoom)o.hideInfoWindows(),o.testMinClusterZoom1(o.clusterItemsCache[t],r,i);else{var e=o.clusterItemsCache[t];o.testCluster1(e,r,i,n)}else{var s=[];a.forEach((function(e){o.calColNum(t,e.ptids,s)})),o.clusterItemsCache[t]=s.flat(),o.testCluster1(o.clusterItemsCache[t],r,i,n)}}}},{key:"testMinClusterZoom1",value:function(t,e,n){var r=this;this.layerPointNumLabel.clear(),t.forEach((function(t){r._addClusterLabel(t.geo.getCenter(),t.sum,t,e,n)})),this.dataItems.forEach((function(t){t.visibility=.1})),this._changePtVisible([])}},{key:"testCluster1",value:function(t,e,n,r){var i=this;this.layerPointNumLabel.clear();var o=[];t.forEach((function(t){if(t.length>1){var a=1/0,s=1/0,c=-1/0,u=-1/0,l=0;t.forEach((function(t){a=Math.min(a,i.dataItems[t].coordinate[0]),s=Math.min(s,i.dataItems[t].coordinate[1]),c=Math.max(c,i.dataItems[t].coordinate[0]),u=Math.max(u,i.dataItems[t].coordinate[1]),i.dataItems[t].visibility=.1,i.dataItems[t].data[r]?(l+=parseFloat(i.dataItems[t].data[r])||0,l=Math.floor(100*l)/100):l+=0}));var h=[(a+c)/2,(s+u)/2];i._addClusterLabelSmall(h,l,{},e,n)}else i.dataItems[t[0]].visibility=1,o.push(t[0])})),this._changePtVisible([]),this.hideInfoWindows(),this.addInfo(o)}},{key:"pointShowStatisticsByeTypeMultiple",value:function(t,e,n){var r=this;this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();for(var i=[],o=0;o<e.length;o++)i.push({code:o,geo:e[o],geojson:e[o].toGeoJSON(),sum:0,val:t,ptnum:0});i.forEach((function(e){for(var i=function(i){var o=r.dataItems[i];t.filter((function(t){return t.includes(o.type)})).length>0&&_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.containsCoordinate2(r.dataItems[i].coordinate,e.geojson)&&(e.ptnum+=1,r.dataItems[i].data[n]?e.sum+=parseFloat(r.dataItems[i].data[n])||0:e.sum+=0)},o=0;o<r.dataItems.length;o++)i(o)})),i.forEach((function(e){r._addClusterLabel(e.geo.getCenter(),e.sum,e).on("click",(function(e){r.selectItems=[];var n=e.target.properties.item;n.ptnum>0&&(setTimeout((function(){r.point.show()}),500),r._pointShowHide(n.val,n.geo),r._zoomSelect(t,n.geo))}))})),this._pointShowHide(t),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=function(){r.isCtrol&&(r.map.getZoom()<9.4?(r.point.hide(),r.layerPointNumLabel.show()):(r.point.show(),r.layerPointNumLabel.hide()))}}},{key:"showValue",value:function showValue(flag,closeForeFlag,where){if(this.shader){if(void 0===closeForeFlag){var v=!0===flag?0:1;this.shader.uniforms.flag.value=v}if(where){this.bzlayerNum&&this.bzlayerNum.clear();for(var i=0;i<this.dataItems.length;i++){var item=this.dataItems[i],boolFlag=void 0;try{boolFlag=eval(where.replaceAll("{}",item.pvalue))}catch(t){boolFlag=!1}1===item.visibility&&!0===boolFlag&&this.bzlayerNum.addGeometry(this.bz_all_nums[i])}}this.bzlayerNum&&(this.bzlayerNum.options.visible=flag)}}},{key:"show",value:function(){this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear();for(var t=[],e=0;e<this.dataItems.length;e++)t.push(e);this._changePtVisible(t)}},{key:"hide",value:function(){this.pointShowHide([])}},{key:"showName",value:function(t){this.layerLabel&&(this.layerLabel.options.visible=t)}},{key:"setPointsOn",value:function(t,e,n){if(this.point){for(var r=[],i=this.point.object3d.geometry.attributes.visibility.array,o=0;o<this.dataItems.length;o++){var a=this.dataItems[o];a.data[t]&&1*a.data[t]===e&&(r.push(o),i[o]=1,this.point._indexs_hide[o]=!0)}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0,n&&n(r)}}},{key:"changePositionValueOne",value:function(t,e){if(this.point){this.paraName=e||this.paraName;var n=this.point.object3d.geometry.attributes.color.array,r=parseFloat(t.value)||0,i="#fff";t.imgColor&&t.imgColor.length>=1&&(i=t.imgColor[0]),void 0!==this.updateIndex&&(this.dataItems[this.updateIndex].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],this.dataItems[this.updateIndex].color=i,this.dataItems[this.updateIndex].pvalue=r,this.bz_all_nums[this.updateIndex].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]));try{this.point.updatepoints(this.dataItems);for(var o=0;o<this.dataItems.length;o++){var a=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[o].color);n[3*o+0]=a.r,n[3*o+1]=a.g,n[3*o+2]=a.b}this.point.object3d.geometry.attributes.color.needsUpdate=!0,this.updateIndex=this.updateIndex+1>this.pLen?0:this.updateIndex+1}catch(t){throw t}}}},{key:"changePositionValue",value:function(t,e){var n=this;if(this.point){this.paraName=e||this.paraName;var r=this.point.object3d.geometry.attributes.color.array,i=this.point.object3d.geometry.attributes.rotation.array,o=this.point.object3d.geometry.attributes.opavalue.array;t.slice(0,1/0).map((function(t){var e=parseFloat(t.value)||0,r=parseFloat(t.opavalue)?parseFloat(t.opavalue):1,i="#fff";t.imgColor&&t.imgColor.length>=1&&(i=t.imgColor[0]);var o=(parseFloat(t.windDirection)||0)+.01,a=parseFloat(o*(Math.PI/180)),s=n.findItemByCode(t.code);void 0!==s&&(n.dataItems[s].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],n.dataItems[s].color=i,n.dataItems[s].rotation=a,n.dataItems[s].pvalue=e,n.dataItems[s].opavalue=r,n.layerLabel&&n.all_labels[s].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]),n.Infolayer&&n.Infolayer.options.iconCode===t.code)&&n.Infolayer.getGeometries().forEach((function(e){e.setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)])}))}));try{this.point.updatepoints(this.dataItems);for(var a=0;a<this.dataItems.length;a++){var s=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[a].color);r[3*a+0]=s.r,r[3*a+1]=s.g,r[3*a+2]=s.b,i[a]=this.dataItems[a].rotation,o[a]=this.dataItems[a].opavalue}this.point.object3d.geometry.attributes.color.needsUpdate=!0,this.point.object3d.geometry.attributes.rotation.needsUpdate=!0,this.point.object3d.geometry.attributes.opavalue.needsUpdate=!0}catch(t){throw t}}}},{key:"changeParaValue",value:function(t,e){var n=this;if(this.point){this.paraName=e||this.paraName;var r=this.point.object3d.geometry.attributes.color.array,i=this.point.object3d.geometry.attributes.fcolor1.array,o=this.point.object3d.geometry.attributes.opavalue.array,a=this.point.object3d.geometry.attributes.rotation.array;t.slice(0,1/0).map((function(t){var e=parseFloat(t.value)||0,r=parseFloat(t.opavalue)?parseFloat(t.opavalue):1,i="#fff";t.imgColor&&t.imgColor.length>=1&&(i=t.imgColor[0]);var o="#fff";t.imgColor&&t.imgColor.length>=2&&(o=t.imgColor[1]);var a=(parseFloat(t.windDirection)||0)+.01,s=parseFloat(a*(Math.PI/180)),c=n.findItemByCode(t.code);if(void 0!==c&&(n.dataItems[c].color=i,n.dataItems[c].rotation=s,n.dataItems[c].fcolor1=o,n.dataItems[c].pvalue=e,n.dataItems[c].opavalue=r,n.bzlayerNum)){var u=Object(_pollutionFactors__WEBPACK_IMPORTED_MODULE_27__.a)(e,n.paraName);n.bz_all_nums[c].getProperties().name=e,n.bz_all_nums[c].updateSymbol({textName:"{name}",textFill:u})}}));for(var s=0;s<this.dataItems.length;s++){var c=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[s].color);r[3*s+0]=c.r,r[3*s+1]=c.g,r[3*s+2]=c.b,a[s]=this.dataItems[s].rotation;var u=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[s].fcolor1);i[3*s+0]=u.r,i[3*s+1]=u.g,i[3*s+2]=u.b,o[s]=this.dataItems[s].opavalue}this.point.object3d.geometry.attributes.color.needsUpdate=!0,this.point.object3d.geometry.attributes.rotation.needsUpdate=!0,this.point.object3d.geometry.attributes.fcolor1.needsUpdate=!0,this.point.object3d.geometry.attributes.opavalue.needsUpdate=!0}}},{key:"dispose",value:function(){this.InforItems.length>0&&this.hideInfoWindows(),this.bzlayerNum&&(this.map.removeLayer(this.bzlayerNum),this.bz_all_nums=[]),this.bound&&delete this.bound,Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_4__.a)(simpleMark.prototype),"dispose",this).call(this)}},{key:"_createShaderPol",value:function(t,e,n,r,i){return t.uniforms.imgdatas={value:n},t.uniforms.texture1={value:e},t.uniforms.textureSize={value:r},t.uniforms.size1={value:i},t.uniforms.flag={value:1},t.vertexShader="uniform float size1;\n attribute float imgflag;\n attribute float rotation;\n attribute vec3 color;\n attribute vec3 fcolor1;\n varying float vimgflag;\n attribute float visibility;\n varying float vVisible;\n varying float vRotation;\n varying vec3 vColor;\n varying vec3 vFcolor;\n attribute float opavalue;\n varying float vOpavalue;\n attribute float colorflag;\n varying float vColorflag;\n attribute float fcolorflag;\n varying float vFcolorflag;\n attribute float imgnum;\n varying float vImgnum;\n "+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <project_vertex>","\n #include <project_vertex>\n vimgflag = imgflag;\n vVisible = visibility;\n vRotation = rotation;\n vColor = color;\n vOpavalue = opavalue;\n vColorflag = colorflag;\n vFcolorflag = fcolorflag;\n vFcolor = fcolor1;\n vImgnum = imgnum;\n ").replace("gl_PointSize = size;","\n gl_PointSize = size1;\n "),t.fragmentShader="struct imgdata {\n float u;\n float v;\n float w;\n float h;\n };\n uniform imgdata imgdatas[".concat(n.length,"];\n uniform sampler2D texture1;\n uniform float textureSize;\n varying float vimgflag;\n varying float vVisible;\n varying float vRotation;\n varying vec3 vColor;\n varying float vOpavalue;\n varying float vColorflag;\n varying float vFcolorflag;\n varying float vImgnum;\n varying vec3 vFcolor;\n uniform int flag;\n ")+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("gl_FragColor = vec4( outgoingLight, diffuseColor.a );","\n highp int index = int(vimgflag);\n float width = gl_PointCoord.x / textureSize * imgdatas[index].w;\n float height = gl_PointCoord.y / textureSize * imgdatas[index].h;\n float x = imgdatas[index].u;\n float y = 1.0 - imgdatas[index].v;\n vec2 uv = vec2(x + width, y - height);\n\n float xx = x + 0.5 / textureSize * imgdatas[index].w;\n float yy = y - 0.5 / textureSize * imgdatas[index].h;\n float angle = 1.0;\n float s = sin(vRotation);\n float c = cos(vRotation);\n mat2 rotationMatrix = mat2( c, s,\n -s, c);\n vec2 pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n\n vec4 rotatedTexture = texture2D( texture1, uv);\n vec4 texColor;\n if (vColorflag > 1.0) {\n texColor = vec4(vColor, vOpavalue) * rotatedTexture;\n } else {\n texColor = rotatedTexture;\n }\n\n if (vImgnum > 1.0 && flag == 1) {\n index += 1;\n width = gl_PointCoord.x / textureSize * imgdatas[index].w;\n height = gl_PointCoord.y / textureSize * imgdatas[index].h;\n x = imgdatas[index].u;\n y = 1.0 - imgdatas[index].v;\n vec4 img = texture2D( texture1, vec2(x + width, y - height) );\n vec4 Ca;\n img.a *= img.r;\n if(vFcolorflag > 1.0){\n Ca = vec4(vFcolor, 1.0) * img;\n }\n else{\n Ca = img;\n }\n //Ca.a *= Ca.r;\n\n\n // 第三种\n /*texColor.xyz *= texColor.a; //premultiply source \n gl_FragColor = mix(texColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n \n vec3 rgb = mix(texColor.xyz * texColor.a, Ca.xyz, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb / a, a);\n gl_FragColor = dst;\n\n /*vec3 rgb = mix(texColor.xyz * texColor.a, Ca.rgb, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb, a);\n gl_FragColor = dst;*/\n \n // 第一种\n /*vec4 out_Color;\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n gl_FragColor = mix(gl_FragColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n \n } else {\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n }\n\n if (vVisible < 0.5) discard;\n "),t}}]),simpleMark}(_baseMark_js__WEBPACK_IMPORTED_MODULE_26__.a);__webpack_exports__.a=simpleMark},4840:function(t,e,n){var r=n("825a"),i=n("5087"),o=n("b622")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},"485a":function(t,e,n){var r=n("da84"),i=n("c65b"),o=n("1626"),a=n("861d"),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},4930:function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},h=null,f="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){u=n,h=i||{};var a=r(t,e);return m(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=a[i],c=o[s.id];c.refs--,n.push(c)}for(e?m(a=r(t,e)):a=[],i=0;i<n.length;i++)if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function v(t){var e,n,r=document.querySelector("style["+f+'~="'+t.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(d){var i=c++;r=s||(s=g()),e=_.bind(null,r,i,!1),n=_.bind(null,r,i,!0)}else r=g(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function _(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function x(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(f,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}return{get:n,add:function(n,r){var i=t.get(n);e[i]||(e[i]=[]),e[i].push(r)},removeListener:function(t,e){for(var r=n(t),i=0,o=r.length;i<o;++i)if(r[i]===e){r.splice(i,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4a76":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAKN2lDQ1BzUkdCIElFQzYxOTY2LTIuMQAAeJydlndUU9kWh8+9N71QkhCKlNBraFICSA29SJEuKjEJEErAkAAiNkRUcERRkaYIMijggKNDkbEiioUBUbHrBBlE1HFwFBuWSWStGd+8ee/Nm98f935rn73P3Wfvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPAAA2wA4HCzs0IW+EYCmQJ82IxsmRP4F726DiD5+yrTP4zBAP+flLlZIjEAUJiM5/L42VwZF8k4PVecJbdPyZi2NE3OMErOIlmCMlaTc/IsW3z2mWUPOfMyhDwZy3PO4mXw5Nwn4405Er6MkWAZF+cI+LkyviZjg3RJhkDGb+SxGXxONgAoktwu5nNTZGwtY5IoMoIt43kA4EjJX/DSL1jMzxPLD8XOzFouEiSniBkmXFOGjZMTi+HPz03ni8XMMA43jSPiMdiZGVkc4XIAZs/8WRR5bRmyIjvYODk4MG0tbb4o1H9d/JuS93aWXoR/7hlEH/jD9ld+mQ0AsKZltdn6h21pFQBd6wFQu/2HzWAvAIqyvnUOfXEeunxeUsTiLGcrq9zcXEsBn2spL+jv+p8Of0NffM9Svt3v5WF485M4knQxQ143bmZ6pkTEyM7icPkM5p+H+B8H/nUeFhH8JL6IL5RFRMumTCBMlrVbyBOIBZlChkD4n5r4D8P+pNm5lona+BHQllgCpSEaQH4eACgqESAJe2Qr0O99C8ZHA/nNi9GZmJ37z4L+fVe4TP7IFiR/jmNHRDK4ElHO7Jr8WgI0IABFQAPqQBvoAxPABLbAEbgAD+ADAkEoiARxYDHgghSQAUQgFxSAtaAYlIKtYCeoBnWgETSDNnAYdIFj4DQ4By6By2AE3AFSMA6egCnwCsxAEISFyBAVUod0IEPIHLKFWJAb5AMFQxFQHJQIJUNCSAIVQOugUqgcqobqoWboW+godBq6AA1Dt6BRaBL6FXoHIzAJpsFasBFsBbNgTzgIjoQXwcnwMjgfLoK3wJVwA3wQ7oRPw5fgEVgKP4GnEYAQETqiizARFsJGQpF4JAkRIauQEqQCaUDakB6kH7mKSJGnyFsUBkVFMVBMlAvKHxWF4qKWoVahNqOqUQdQnag+1FXUKGoK9RFNRmuizdHO6AB0LDoZnYsuRlegm9Ad6LPoEfQ4+hUGg6FjjDGOGH9MHCYVswKzGbMb0445hRnGjGGmsVisOtYc64oNxXKwYmwxtgp7EHsSewU7jn2DI+J0cLY4X1w8TogrxFXgWnAncFdwE7gZvBLeEO+MD8Xz8MvxZfhGfA9+CD+OnyEoE4wJroRIQiphLaGS0EY4S7hLeEEkEvWITsRwooC4hlhJPEQ8TxwlviVRSGYkNimBJCFtIe0nnSLdIr0gk8lGZA9yPFlM3kJuJp8h3ye/UaAqWCoEKPAUVivUKHQqXFF4pohXNFT0VFysmK9YoXhEcUjxqRJeyUiJrcRRWqVUo3RU6YbStDJV2UY5VDlDebNyi/IF5UcULMWI4kPhUYoo+yhnKGNUhKpPZVO51HXURupZ6jgNQzOmBdBSaaW0b2iDtCkVioqdSrRKnkqNynEVKR2hG9ED6On0Mvph+nX6O1UtVU9Vvuom1TbVK6qv1eaoeajx1UrU2tVG1N6pM9R91NPUt6l3qd/TQGmYaYRr5Grs0Tir8XQObY7LHO6ckjmH59zWhDXNNCM0V2ju0xzQnNbS1vLTytKq0jqj9VSbru2hnaq9Q/uE9qQOVcdNR6CzQ+ekzmOGCsOTkc6oZPQxpnQ1df11Jbr1uoO6M3rGelF6hXrtevf0Cfos/ST9Hfq9+lMGOgYhBgUGrQa3DfGGLMMUw12G/YavjYyNYow2GHUZPTJWMw4wzjduNb5rQjZxN1lm0mByzRRjyjJNM91tetkMNrM3SzGrMRsyh80dzAXmu82HLdAWThZCiwaLG0wS05OZw2xljlrSLYMtCy27LJ9ZGVjFW22z6rf6aG1vnW7daH3HhmITaFNo02Pzq62ZLde2xvbaXPJc37mr53bPfW5nbse322N3055qH2K/wb7X/oODo4PIoc1h0tHAMdGx1vEGi8YKY21mnXdCO3k5rXY65vTW2cFZ7HzY+RcXpkuaS4vLo3nG8/jzGueNueq5clzrXaVuDLdEt71uUnddd457g/sDD30PnkeTx4SnqWeq50HPZ17WXiKvDq/XbGf2SvYpb8Tbz7vEe9CH4hPlU+1z31fPN9m31XfKz95vhd8pf7R/kP82/xsBWgHcgOaAqUDHwJWBfUGkoAVB1UEPgs2CRcE9IXBIYMj2kLvzDecL53eFgtCA0O2h98KMw5aFfR+OCQ8Lrwl/GGETURDRv4C6YMmClgWvIr0iyyLvRJlESaJ6oxWjE6Kbo1/HeMeUx0hjrWJXxl6K04gTxHXHY+Oj45vipxf6LNy5cDzBPqE44foi40V5iy4s1licvvj4EsUlnCVHEtGJMYktie85oZwGzvTSgKW1S6e4bO4u7hOeB28Hb5Lvyi/nTyS5JpUnPUp2Td6ePJninlKR8lTAFlQLnqf6p9alvk4LTduf9ik9Jr09A5eRmHFUSBGmCfsytTPzMoezzLOKs6TLnJftXDYlChI1ZUPZi7K7xTTZz9SAxESyXjKa45ZTk/MmNzr3SJ5ynjBvYLnZ8k3LJ/J9879egVrBXdFboFuwtmB0pefK+lXQqqWrelfrry5aPb7Gb82BtYS1aWt/KLQuLC98uS5mXU+RVtGaorH1futbixWKRcU3NrhsqNuI2ijYOLhp7qaqTR9LeCUXS61LK0rfb+ZuvviVzVeVX33akrRlsMyhbM9WzFbh1uvb3LcdKFcuzy8f2x6yvXMHY0fJjpc7l+y8UGFXUbeLsEuyS1oZXNldZVC1tep9dUr1SI1XTXutZu2m2te7ebuv7PHY01anVVda926vYO/Ner/6zgajhop9mH05+x42Rjf2f836urlJo6m06cN+4X7pgYgDfc2Ozc0tmi1lrXCrpHXyYMLBy994f9Pdxmyrb6e3lx4ChySHHn+b+O31w0GHe4+wjrR9Z/hdbQe1o6QT6lzeOdWV0iXtjusePhp4tLfHpafje8vv9x/TPVZzXOV42QnCiaITn07mn5w+lXXq6enk02O9S3rvnIk9c60vvG/wbNDZ8+d8z53p9+w/ed71/LELzheOXmRd7LrkcKlzwH6g4wf7HzoGHQY7hxyHui87Xe4Znjd84or7ldNXva+euxZw7dLI/JHh61HXb95IuCG9ybv56Fb6ree3c27P3FlzF3235J7SvYr7mvcbfjT9sV3qID0+6j068GDBgztj3LEnP2X/9H686CH5YcWEzkTzI9tHxyZ9Jy8/Xvh4/EnWk5mnxT8r/1z7zOTZd794/DIwFTs1/lz0/NOvm1+ov9j/0u5l73TY9P1XGa9mXpe8UX9z4C3rbf+7mHcTM7nvse8rP5h+6PkY9PHup4xPn34D94Tz+49wZioAAAAJcEhZcwAACxIAAAsSAdLdfvwAAADrSURBVHicY/n//z8DqYAFRDAxMTESq+Hfv3//WUi2BmYTMmhqatL7+/fv5cbGxv/19fWSbGxsf6urq1/h1ARU5A+0fj0jI+MsILsXKLTv169fP1atWqUeFhb2D6smFhaWi3/+/HkMZKYBNcYBA4kDyJ6NrAFDU21t7QOgDSlA5k6QBqDGW0A6C6+fmpublYA2zQOxgRq+ATWoAZnTgDgdpyagBk0gJQXUMI2ZmbkPyN8P5DsAbWcFBsxvrJqAEluBtmkDFd8EOvV/a2urOTAg/iJrwNAE9dcNGBsY1C/Q5bFqIgaANYGSBimaAADgbhvLwt8+AAAAAElFTkSuQmCC"},"4ae1":function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("0538"),s=n("5087"),c=n("825a"),u=n("861d"),l=n("7c73"),h=n("d039"),f=i("Reflect","construct"),d=Object.prototype,p=[].push,m=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),g=!h((function(){f((function(){}))})),v=m||g;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){s(t),c(e);var n=arguments.length<3?t:s(arguments[2]);if(g&&!m)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(p,r,e),new(o(a,t,r))}var i=n.prototype,h=l(u(i)?i:d),v=o(t,h,e);return u(v)?v:h}})},"4c53":function(t,e,n){"use strict";var r=n("23e7"),i=n("857a");r({target:"String",proto:!0,forced:n("af03")("sub")},{sub:function(){return i(this,"sub","","")}})},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,c=r(e),u=o(c),l=i(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4dae":function(t,e,n){var r=n("da84"),i=n("23cb"),o=n("07fa"),a=n("8418"),s=r.Array,c=Math.max;t.exports=function(t,e,n){for(var r=o(t),u=i(e,r),l=i(void 0===n?r:n,r),h=s(c(l-u,0)),f=0;u<l;u++,f++)a(h,f,t[u]);return h.length=f,h}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter;r({target:"Array",proto:!0,forced:!n("1dde")("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("da84"),i=n("0366"),o=n("c65b"),a=n("7b0b"),s=n("9bdd"),c=n("e95a"),u=n("68ee"),l=n("07fa"),h=n("8418"),f=n("9a1f"),d=n("35a1"),p=r.Array;t.exports=function(t){var e=a(t),n=u(this),r=arguments.length,m=r>1?arguments[1]:void 0,g=void 0!==m;g&&(m=i(m,r>2?arguments[2]:void 0));var v,y,_,x,b,w,M=d(e),S=0;if(!M||this==p&&c(M))for(v=l(e),y=n?new this(v):p(v);v>S;S++)w=g?m(e[S],S):e[S],h(y,S,w);else for(b=(x=f(e,M)).next,y=n?new this:[];!(_=o(b,x)).done;S++)w=g?s(x,m,[_.value,S],!0):_.value,h(y,S,w);return y.length=S,y}},"4e82":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),c=n("577e"),u=n("d039"),l=n("addb"),h=n("a640"),f=n("04d1"),d=n("d998"),p=n("2d00"),m=n("512c"),g=[],v=i(g.sort),y=i(g.push),_=u((function(){g.sort(void 0)})),x=u((function(){g.sort(null)})),b=h("sort"),w=!u((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(m)return m<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:e+r,v:n})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}})),M=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}};r({target:"Array",proto:!0,forced:_||!x||!b||!w},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(w)return void 0===t?v(e):v(e,t);var n,r,i=[],c=s(e);for(r=0;r<c;r++)r in e&&y(i,e[r]);for(l(i,M(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<c;)delete e[r++];return e}})},"4fad":function(t,e,n){var r=n("23e7"),i=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}},5087:function(t,e,n){var r=n("da84"),i=n("68ee"),o=n("0d51"),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a constructor")}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];return null!=r||void 0===n?r:n}},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"512c":function(t,e,n){var r=n("342f").match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),c=n("825a"),u=n("1626"),l=n("5926"),h=n("50c4"),f=n("577e"),d=n("1d80"),p=n("8aa5"),m=n("dc4a"),g=n("0cb2"),v=n("14c3"),y=n("b622")("replace"),_=Math.max,x=Math.min,b=o([].concat),w=o([].push),M=o("".indexOf),S=o("".slice),A=function(t){return void 0===t?t:String(t)},C="$0"==="a".replace(/./,"$0"),E=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(t,e,n){var o=E?"$":"$0";return[function(t,n){var r=d(this),o=null==t?void 0:m(t,y);return o?i(o,t,r,n):i(e,f(r),t,n)},function(t,i){var a=c(this),s=f(t);if("string"==typeof i&&-1===M(i,o)&&-1===M(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var m=u(i);m||(i=f(i));var y=a.global;if(y){var C=a.unicode;a.lastIndex=0}for(var E=[];;){var T=v(a,s);if(null===T)break;if(w(E,T),!y)break;""===f(T[0])&&(a.lastIndex=p(s,h(a.lastIndex),C))}for(var I="",L=0,P=0;P<E.length;P++){for(var R=f((T=E[P])[0]),O=_(x(l(T.index),s.length),0),k=[],B=1;B<T.length;B++)w(k,A(T[B]));var D=T.groups;if(m){var F=b([R],k,O,s);void 0!==D&&w(F,D);var U=f(r(i,void 0,F))}else U=g(R,s,O,k,D,i);O>=L&&(I+=S(s,L,O)+U,L=O+R.length)}return I+S(s,L)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!C||E)},5453:function(t,e,n){var r=n("138f");r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("33cc2b47",r,!0,{sourceMap:!1,shadowMode:!1})},5664:function(t,e,n){"use strict";function r(t,e,n){n=n||2;var r,o,s,c,u,l,f,d=e&&e.length,p=d?e[0]*n:t.length,m=i(t,0,p,n,!0),g=[];if(!m||m.next===m.prev)return g;if(d&&(m=h(t,e,m,n)),t.length>80*n){r=s=t[0],o=c=t[1];for(var v=n;v<p;v+=n)(u=t[v])<r&&(r=u),(l=t[v+1])<o&&(o=l),u>s&&(s=u),l>c&&(c=l);f=0!==(f=Math.max(s-r,c-o))?1/f:0}return a(m,g,n,r,o,f),g}function i(t,e,n,r,i){var o,a;if(i===I(t,e,n,r)>0)for(o=e;o<n;o+=r)a=C(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=C(o,t[o],t[o+1],a);return a&&x(a,a.next)&&(E(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!x(r,r.next)&&0!==_(r.prev,r,r.next))r=r.next;else{if(E(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function a(t,e,n,r,i,h,f){if(t){!f&&h&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=m(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,c,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<u&&(s++,r=r.nextZ);e++);for(c=u;s>0||c>0&&r;)0!==s&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(a>1)}(i)}(t,r,i,h);for(var d,p,g=t;t.prev!==t.next;)if(d=t.prev,p=t.next,h?c(t,r,i,h):s(t))e.push(d.i/n),e.push(t.i/n),e.push(p.i/n),E(t),t=p.next,g=p.next;else if((t=p)===g){f?1===f?a(t=u(o(t),e,n),e,n,r,i,h,2):2===f&&l(t,e,n,r,i,h):a(o(t),e,n,r,i,h,1);break}}}function s(t){var e=t.prev,n=t,r=t.next;if(_(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(v(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&_(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function c(t,e,n,r){var i=t.prev,o=t,a=t.next;if(_(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,c=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,u=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,h=m(s,c,e,n,r),f=m(u,l,e,n,r),d=t.prevZ,p=t.nextZ;d&&d.z>=h&&p&&p.z<=f;){if(d!==t.prev&&d!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==t.prev&&p!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;d&&d.z>=h;){if(d!==t.prev&&d!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;p&&p.z<=f;){if(p!==t.prev&&p!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function u(t,e,n){var r=t;do{var i=r.prev,a=r.next.next;!x(i,a)&&b(i,r,r.next,a)&&S(i,a)&&S(a,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(a.i/n),E(r),E(r.next),r=t=a),r=r.next}while(r!==t);return o(r)}function l(t,e,n,r,i,s){var c=t;do{for(var u=c.next.next;u!==c.prev;){if(c.i!==u.i&&y(c,u)){var l=A(c,u);return c=o(c,c.next),l=o(l,l.next),a(c,e,n,r,i,s),void a(l,e,n,r,i,s)}u=u.next}c=c.next}while(c!==t)}function h(t,e,n,r){var a,s,c,u=[];for(a=0,s=e.length;a<s;a++)(c=i(t,e[a]*r,a<s-1?e[a+1]*r:t.length,r,!1))===c.next&&(c.steiner=!0),u.push(g(c));for(u.sort(f),a=0;a<u.length;a++)n=o(n=d(u[a],n),n.next);return n}function f(t,e){return t.x-e.x}function d(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n;var c,u=n,l=n.x,h=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=l&&i!==r.x&&v(o<h?i:a,o,l,h,o<h?a:i,o,r.x,r.y)&&(c=Math.abs(o-r.y)/(i-r.x),S(r,t)&&(c<f||c===f&&(r.x>n.x||r.x===n.x&&p(n,r)))&&(n=r,f=c)),r=r.next}while(r!==u);return n}(t,e);if(!n)return e;var r=A(n,t),i=o(n,n.next);return o(r,r.next),e===n?i:e}function p(t,e){return _(t.prev,t,e.prev)<0&&_(e.next,t,t.next)<0}function m(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function v(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&b(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(S(t,e)&&S(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(_(t.prev,t,e.prev)||_(t,e.prev,e))||x(t,e)&&_(t.prev,t,t.next)>0&&_(e.prev,e,e.next)>0)}function _(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function x(t,e){return t.x===e.x&&t.y===e.y}function b(t,e,n,r){var i=M(_(t,e,n)),o=M(_(t,e,r)),a=M(_(n,r,t)),s=M(_(n,r,e));return i!==o&&a!==s||!(0!==i||!w(t,n,e))||!(0!==o||!w(t,r,e))||!(0!==a||!w(n,t,r))||!(0!==s||!w(n,e,r))}function w(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function M(t){return t>0?1:t<0?-1:0}function S(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function A(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function C(t,e,n,r){var i=new T(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}t.exports=r,t.exports.default=r,r.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(I(t,0,o,n));if(i)for(var s=0,c=e.length;s<c;s++){var u=e[s]*n,l=s<c-1?e[s+1]*n:t.length;a-=Math.abs(I(t,u,l,n))}var h=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,d=r[s+1]*n,p=r[s+2]*n;h+=Math.abs((t[f]-t[p])*(t[d+1]-t[f+1])-(t[f]-t[d])*(t[p+1]-t[f+1]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},5765:function(t,e,n){"use strict";n.d(e,"c",(function(){return An})),n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return se}));var r=n("ec60"),i=n("5a89");const o=parseInt(i.REVISION.replace("dev",""));function a(t,e,n){return o>109?t.setAttribute(e,n):t.addAttribute(e,n),t}function s(t,e){o>113?t.params.Line.threshold=e:t.linePrecision=e}function c(){return!i.VertexColors||i.VertexColors}console.log("maptalks.three log: current three.js version is %c"+o,"color:red;font-size: 16px;font-weight: bold;");class u extends i.InstancedBufferGeometry{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),a(this,"position",new i.Float32BufferAttribute([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),a(this,"uv",new i.Float32BufferAttribute([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}applyMatrix(t){var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==e&&(t.applyToBufferAttribute(e),t.applyToBufferAttribute(n),e.data.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}setPositions(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new i.InstancedInterleavedBuffer(e,6,1);return a(this,"instanceStart",new i.InterleavedBufferAttribute(n,3,0)),a(this,"instanceEnd",new i.InterleavedBufferAttribute(n,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new i.InstancedInterleavedBuffer(e,6,1);return a(this,"instanceColorStart",new i.InterleavedBufferAttribute(n,3,0)),a(this,"instanceColorEnd",new i.InterleavedBufferAttribute(n,3,3)),this}fromWireframeGeometry(t){return this.setPositions(t.attributes.position.array),this}fromEdgesGeometry(t){return this.setPositions(t.attributes.position.array),this}fromMesh(t){return this.fromWireframeGeometry(new i.WireframeGeometry(t.geometry)),this}fromLineSegements(t){var e=t.geometry;return e.isGeometry?this.setPositions(e.vertices):e.isBufferGeometry&&this.setPositions(e.position.array),this}computeBoundingBox(){var t=new i.Box3;null===this.boundingBox&&(this.boundingBox=new i.Box3);var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;void 0!==e&&void 0!==n&&(this.boundingBox.setFromBufferAttribute(e),t.setFromBufferAttribute(n),this.boundingBox.union(t))}computeBoundingSphere(){var t=new i.Vector3;null===this.boundingSphere&&(this.boundingSphere=new i.Sphere),null===this.boundingBox&&this.computeBoundingBox();var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;if(void 0!==e&&void 0!==n){var r=this.boundingSphere.center;this.boundingBox.getCenter(r);for(var o=0,a=0,s=e.count;a<s;a++)t.fromBufferAttribute(e,a),o=Math.max(o,r.distanceToSquared(t)),t.fromBufferAttribute(n,a),o=Math.max(o,r.distanceToSquared(t));this.boundingSphere.radius=Math.sqrt(o),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}copy(t){return this}}var l=u;const h={},f={};h.line={linewidth:{value:1},resolution:{value:new i.Vector2(1,1)},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},f.line={uniforms:i.UniformsUtils.merge([i.UniformsLib.common,i.UniformsLib.fog,h.line]),vertexShader:"\n\t\t#include <common>\n\t\t#include <color_pars_vertex>\n\t\t#include <fog_pars_vertex>\n\t\t#include <logdepthbuf_pars_vertex>\n\t\t#include <clipping_planes_pars_vertex>\n\n\t\tuniform float linewidth;\n\t\tuniform vec2 resolution;\n\n\t\tattribute vec3 instanceStart;\n\t\tattribute vec3 instanceEnd;\n\n\t\tattribute vec3 instanceColorStart;\n\t\tattribute vec3 instanceColorEnd;\n\n\t\tvarying vec2 vUv;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashScale;\n\t\t\tattribute float instanceDistanceStart;\n\t\t\tattribute float instanceDistanceEnd;\n\t\t\tvarying float vLineDistance;\n\n\t\t#endif\n\n\t\tvoid trimSegment( const in vec4 start, inout vec4 end ) {\n\n\t\t\t// trim end segment so it terminates between the camera plane and the near plane\n\n\t\t\t// conservative estimate of the near plane\n\t\t\tfloat a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n\t\t\tfloat b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n\t\t\tfloat nearEstimate = - 0.5 * b / a;\n\n\t\t\tfloat alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n\t\t\tend.xyz = mix( start.xyz, end.xyz, alpha );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#ifdef USE_COLOR\n\n\t\t\t\tvColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n\t\t\t#endif\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\n\t\t\t#endif\n\n\t\t\tfloat aspect = resolution.x / resolution.y;\n\n\t\t\tvUv = uv;\n\n\t\t\t// camera space\n\t\t\tvec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n\t\t\tvec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n\t\t\t// special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n\t\t\t// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n\t\t\t// but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n\t\t\t// perhaps there is a more elegant solution -- WestLangley\n\n\t\t\tbool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n\t\t\tif ( perspective ) {\n\n\t\t\t\tif ( start.z < 0.0 && end.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( start, end );\n\n\t\t\t\t} else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( end, start );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// clip space\n\t\t\tvec4 clipStart = projectionMatrix * start;\n\t\t\tvec4 clipEnd = projectionMatrix * end;\n\n\t\t\t// ndc space\n\t\t\tvec2 ndcStart = clipStart.xy / clipStart.w;\n\t\t\tvec2 ndcEnd = clipEnd.xy / clipEnd.w;\n\n\t\t\t// direction\n\t\t\tvec2 dir = ndcEnd - ndcStart;\n\n\t\t\t// account for clip-space aspect ratio\n\t\t\tdir.x *= aspect;\n\t\t\tdir = normalize( dir );\n\n\t\t\t// perpendicular to dir\n\t\t\tvec2 offset = vec2( dir.y, - dir.x );\n\n\t\t\t// undo aspect ratio adjustment\n\t\t\tdir.x /= aspect;\n\t\t\toffset.x /= aspect;\n\n\t\t\t// sign flip\n\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t// endcaps\n\t\t\tif ( position.y < 0.0 ) {\n\n\t\t\t\toffset += - dir;\n\n\t\t\t} else if ( position.y > 1.0 ) {\n\n\t\t\t\toffset += dir;\n\n\t\t\t}\n\n\t\t\t// adjust for linewidth\n\t\t\toffset *= linewidth;\n\n\t\t\t// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n\t\t\toffset /= resolution.y;\n\n\t\t\t// select end\n\t\t\tvec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n\t\t\t// back to clip space\n\t\t\toffset *= clip.w;\n\n\t\t\tclip.xy += offset;\n\n\t\t\tgl_Position = clip;\n\n\t\t\tvec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n\t\t\t#include <logdepthbuf_vertex>\n\t\t\t#include <clipping_planes_vertex>\n\t\t\t#include <fog_vertex>\n\n\t\t}\n\t\t",fragmentShader:"\n\t\tuniform vec3 diffuse;\n\t\tuniform float opacity;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashSize;\n\t\t\tuniform float gapSize;\n\n\t\t#endif\n\n\t\tvarying float vLineDistance;\n\n\t\t#include <common>\n\t\t#include <color_pars_fragment>\n\t\t#include <fog_pars_fragment>\n\t\t#include <logdepthbuf_pars_fragment>\n\t\t#include <clipping_planes_pars_fragment>\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\t#include <clipping_planes_fragment>\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tif ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n\t\t\t\tif ( mod( vLineDistance, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n\t\t\t#endif\n\n\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\tfloat a = vUv.x;\n\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\tfloat len2 = a * a + b * b;\n\n\t\t\t\tif ( len2 > 1.0 ) discard;\n\n\t\t\t}\n\n\t\t\tvec4 diffuseColor = vec4( diffuse, opacity );\n\n\t\t\t#include <logdepthbuf_fragment>\n\t\t\t#include <color_fragment>\n\n\t\t\tgl_FragColor = vec4( diffuseColor.rgb, diffuseColor.a );\n\n\t\t\t#include <premultiplied_alpha_fragment>\n\t\t\t#include <tonemapping_fragment>\n\t\t\t#include <encodings_fragment>\n\t\t\t#include <fog_fragment>\n\n\t\t}\n\t\t"};class d extends i.ShaderMaterial{constructor(t){super({uniforms:i.UniformsUtils.clone(f.line.uniforms),vertexShader:f.line.vertexShader,fragmentShader:f.line.fragmentShader}),this.dashed=!0,this.isLineMaterial=!0,this.type="LineMaterial",Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(t){this.uniforms.diffuse.value=t}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(t){this.uniforms.linewidth.value=t}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(t){this.uniforms.dashScale.value=t}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(t){this.uniforms.dashSize.value=t}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(t){this.uniforms.gapSize.value=t}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(t){this.uniforms.resolution.value.copy(t)}}}),this.setValues(t)}}var p=d;class m extends i.Mesh{constructor(t,e){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2",this.geometry=void 0!==t?t:new l,this.material=void 0!==e?e:new p({color:16777215*Math.random()})}computeLineDistances(){for(var t=new i.Vector3,e=new i.Vector3,n=this.geometry,r=n.attributes.instanceStart,o=n.attributes.instanceEnd,s=new Float32Array(2*r.data.count),c=0,u=0,l=r.data.count;c<l;c++,u+=2)t.fromBufferAttribute(r,c),e.fromBufferAttribute(o,c),s[u]=0===u?0:s[u-1],s[u+1]=s[u]+t.distanceTo(e);var h=new i.InstancedInterleavedBuffer(s,2,1);return a(n,"instanceDistanceStart",new i.InterleavedBufferAttribute(h,1,0)),a(n,"instanceDistanceEnd",new i.InterleavedBufferAttribute(h,1,1)),this}}var g=m,v=class extends l{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}fromLine(t){var e=t.geometry;return e.isGeometry?this.setPositions(e.vertices):e.isBufferGeometry&&this.setPositions(e.position.array),this}},y=class extends g{constructor(t,e){super(t,e),this.isLine2=!0,this.type="Line2",this.geometry=void 0!==t?t:new v,this.material=void 0!==e?e:new p({color:16777215*Math.random()})}copy(t){return this}};const _={interactive:!0,altitude:0,minZoom:0,maxZoom:30,asynchronous:!1};function x(){}class b extends(r.Eventable(x)){constructor(t){super(),this.isAdd=!1,this._mouseover=!1,this._visible=!0,this._zoomVisible=!0,this.picked=!1,this.isBaseObject=!0,void 0===t&&(t=r.Util.GUID()),this.id=t}addTo(t){return t&&"ThreeLayer"===t.type?t.addMesh([this]):console.error("layer only support maptalks.ThreeLayer"),this}remove(){const t=this.getLayer();return t&&t.removeMesh([this]),this}getObject3d(){return this.object3d}getId(){return this.id}setId(t){const e=this.getId();return this.id=t,this._fire("idchange",{old:e,new:t,target:this}),this}getType(){return this.type}getOptions(){return this.options}getProperties(){return(this.options||{}).properties}setProperties(t){const e=Object.assign({},this.getProperties());return this.options.properties=t,this._fire("propertieschange",{old:e,new:t,target:this}),this}getLayer(){return this.options.layer}getMap(){const t=this.getLayer();if(t)return t.getMap()}getCenter(){const t=this.getOptions(),{coordinate:e,lineString:n,polygon:i}=t;if(e)return e instanceof r.Coordinate?e:new r.Coordinate(e);{const t=i||n;if(t&&t.getCenter)return t.getCenter()}}getAltitude(){return this.getOptions().altitude}setAltitude(t){if(r.Util.isNumber(t)){const e=this.getLayer().distanceToVector3(t,t).x;if(this.getObject3d().position.z=e,this.options.altitude=t,this.pickObject3d&&(this.pickObject3d.position.z=e),this._baseObjects&&Array.isArray(this._baseObjects))for(let t=0,n=this._baseObjects.length;t<n;t++)this._baseObjects[t]&&(this._baseObjects[t].getObject3d().position.z=e)}return this}show(){return this._zoomVisible&&(this.getObject3d().visible=!0,this._fire("show")),this._visible=!0,this}hide(){return this.getObject3d().visible=!1,this._fire("hide"),this._visible=!1,this}isVisible(){return!!this.getObject3d().visible}getSymbol(){return this.getObject3d().material}setSymbol(t){if(t&&t instanceof i.Material){t.needsUpdate=!0,t.vertexColors=this.getObject3d().material.vertexColors;const e=this.getObject3d().material.clone();this.getObject3d().material=t,this._fire("symbolchange",{old:e,new:t,target:this})}return this}setInfoWindow(t){return this.removeInfoWindow(),this.infoWindow=new r.ui.InfoWindow(t),this.infoWindow.addTo(this),this}getInfoWindow(){return this.infoWindow}openInfoWindow(t){return(t=t||this.getCenter())instanceof r.Coordinate||(t=new r.Coordinate(t)),t&&this.infoWindow&&this.infoWindow.show(t),this}closeInfoWindow(){return this.infoWindow&&this.infoWindow.hide(),this}removeInfoWindow(){return this.infoWindow&&(this.infoWindow.remove(),delete this.infoWindow),this}setToolTip(t,e){return this.removeToolTip(),this.toolTip=new r.ui.ToolTip(t,e),this.toolTip.addTo(this),this}getToolTip(){return this.toolTip}openToolTip(t){return(t=t||this.getCenter())instanceof r.Coordinate||(t=new r.Coordinate(t)),t&&this.toolTip&&this.toolTip.show(t),this}closeToolTip(){return this.toolTip&&this.toolTip.hide(),this}removeToolTip(){return this.toolTip&&(this.toolTip.remove(),delete this.toolTip),this}animateShow(t={},e){this._showPlayer&&this._showPlayer.cancel(),r.Util.isFunction(t)&&(e=t={});const n=t.duration||1e3,i=t.easing||"out",o=this._showPlayer=r.animation.Animation.animate({scale:1},{duration:n,easing:i},t=>{const n=t.styles.scale;n>0&&(this.getObject3d().scale.z=n),e&&e(t,n)});return o.play(),o}getMinZoom(){return this.getOptions().minZoom}getMaxZoom(){return this.getOptions().maxZoom}isAsynchronous(){return this.getOptions().asynchronous}fire(t,e){return this._fire(t,e),this._vt&&this._vt.onSelectMesh&&this._vt.onSelectMesh(t,e),this}config(){return this}setPickObject3d(t){return this.pickObject3d=t,this.pickObject3d.__parent=this,this}_initOptions(t){return this.options=r.Util.extend({},_,t),this}_createMesh(t,e){return this.object3d=new i.Mesh(t,e),this.object3d.__parent=this,this}_createGroup(){return this.object3d=new i.Group,this.object3d.__parent=this,this}_createLine(t,e){return this.object3d=new i.Line(t,e),this.object3d.computeLineDistances(),this.object3d.__parent=this,this}_createLine2(t,e){return this.object3d=new y(t,e),this.object3d.computeLineDistances(),this.object3d.__parent=this,this}_createPoints(t,e){return this.object3d=new i.Points(t,e),this.object3d.__parent=this,this}_createLineSegments(t,e){return this.object3d=new i.LineSegments(t,e),this.object3d.computeLineDistances(),this.object3d.__parent=this,this}}var w=b;function M(t){const{position:e,normal:n,uv:r,indices:o}=S(t),s=new i.BufferGeometry,c=new Float32Array(e.length);return c.fill(1,0,e.length),a(s,"color",new i.BufferAttribute(c,3)),a(s,"normal",new i.BufferAttribute(n,3)),a(s,"position",new i.BufferAttribute(e,3)),r&&r.length&&a(s,"uv",new i.BufferAttribute(r,2)),s.setIndex(new i.BufferAttribute(o,1)),s}function S(t){const e={},n={};for(let r=0;r<t.length;++r){const i=t[r];for(const t in i)void 0===e[t]&&(e[t]=[],n[t]=0),e[t].push(i[t]),n[t]+=i[t].length}const r={};let i=0;const o=[];for(const t in e)if("indices"===t){const n=e[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];for(let t=0,e=r.length;t<e;t++)o.push(r[t]+i);i+=e.position[t].length/3}}else{const i=A(e[t],n[t]);if(!i)return null;r[t]=i}return r.indices=new Uint32Array(o),r}function A(t,e){const n=new Float32Array(e);let r=0;for(let e=0;e<t.length;++e)n.set(t[e],r),r+=t[e].length;return n}function C(t){const{position:e,normal:n,uv:r,indices:o}=t,s=new i.BufferGeometry;return a(s,"normal",new i.BufferAttribute(new Float32Array(n),3)),a(s,"position",new i.BufferAttribute(new Float32Array(e),3)),a(s,"uv",new i.BufferAttribute(new Float32Array(r),2)),s.setIndex(new i.BufferAttribute(new Uint32Array(o),1)),s}function E(t){const e=new i.BufferGeometry;return a(e,"normal",t.getAttribute("normal")),a(e,"position",t.getAttribute("position").clone()),e.setIndex(t.getIndex()),e}let T;function I(){if(!T){const t=1e-6;T=new i.BoxBufferGeometry(t,t,t)}return T}const L={},P=new i.BoxBufferGeometry(1,1,1);P.translate(0,0,.5);const R=new i.Color("#fff"),O=new i.Color("#fff");function k(t=6){if(!L[t]){const e=new i.CylinderBufferGeometry(1,1,1,t,1);e.rotateX(Math.PI/2),e.translate(0,0,.5),e.rotateZ(Math.PI/6),L[t]=e}return L[t]}function B(t){const{height:e,radialSegments:n,radius:r}=t,i=k(n).clone();return i.scale(r,r,e),i}function D(t,e,n,r="y",o=0){let s=0;"y"===r?s=1:"z"===r&&(s=2);const c=t.attributes.position.array,u=c.length;O.setStyle(e),R.setStyle(n);const l=[];for(let t=0;t<u;t+=3)c[t+s]>o?l.push(R.r,R.g,R.b):l.push(O.r,O.g,O.b);return a(t,"color",new i.Float32BufferAttribute(l,3,!0)),l}function F(t){const e=[],n=[];for(let r=0,i=t.length;r<i;r++){const{color:i,normal:o,position:a,uv:s}=t[r].attributes,c=t[r].index;if(i)for(let t=0,e=i.array.length;t<e;t++)n.push(i.array[t]);e.push({normal:o.array,uv:s.array,position:a.array,indices:c.array})}const r=M(e);n.length&&a(r,"color",new i.Float32BufferAttribute(n,3,!0));for(let e=0,n=t.length;e<n;e++)t[e].dispose();return r}function U(){return P}const j={radius:10,height:100,radialSegments:6,altitude:0,topColor:"",bottomColor:"#2d2f61"};var N=class extends w{constructor(t,e,n,i){e=r.Util.extend({},j,e,{layer:i,coordinate:t}),super(),this._initOptions(e);const{height:o,radius:a,topColor:s,bottomColor:u,altitude:l}=e;e.height=i.distanceToVector3(o,o).x,e.radius=i.distanceToVector3(a,a).x,e._radius=this.options.radius,e._height=this.options.height;const h=B(e);s&&(D(h,u,s,"z",e.height/2),n.vertexColors=c()),this._createMesh(h,n);const f=i.distanceToVector3(l,l).x,d=i.coordinateToVector3(t,f);this.getObject3d().position.copy(d),this.type="Bar"}};function z(t,e,n={}){return void 0===n[t]&&(n[t]=e.distanceToVector3(t,t).x),n[t]}function G(t=[]){let e=0,n=0;const i=t.length;for(let o=0;o<i;o++){const{coordinate:i,lnglat:a,lnglats:s,xy:c,xys:u}=t[o],l=i||a||s||c||u||t[o];let h,f;Array.isArray(l)?(h=l[0],f=l[1]):l instanceof r.Coordinate&&(h=l.x,f=l.y),e+=h,n+=f}return new r.Coordinate(e/i,n/i)}function H(t,e,n,r){if(void 0===e||"number"!=typeof e||0===e)return 0;let o;o=t instanceof i.BufferGeometry?t.attributes.position.array:Array.isArray(t)?t:t.position;let a=0;if(o){r?(void 0===r[e]&&(r[e]=n.distanceToVector3(e,e).x),a=r[e]):a=n.distanceToVector3(e,e).x;const t=o.length;if(o[0]instanceof i.Vector3)for(let e=0;e<t;e++)o[e].z+=a;else for(let e=0;e<t;e+=3)o[e+2]+=a}return a}var W=n("5664"),V=n.n(W);function Z(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function Q(t,e,n){var r=e[0],i=e[1],o=n[0]-r,a=n[1]-i;if(0!==o||0!==a){var s=((t[0]-r)*o+(t[1]-i)*a)/(o*o+a*a);s>1?(r=n[0],i=n[1]):s>0&&(r+=o*s,i+=a*s)}return(o=t[0]-r)*o+(a=t[1]-i)*a}function X(t,e){var n=t.length-1,r=[t[0]];return function t(e,n,r,i,o){for(var a,s=i,c=n+1;c<r;c++){var u=Q(e[c],e[n],e[r]);u>s&&(a=c,s=u)}s>i&&(a-n>1&&t(e,n,a,i,o),o.push(e[a]),r-a>1&&t(e,a,r,i,o))}(t,0,n,e,r),r.push(t[n]),r}var Y=function(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return t=X(t=n?t:function(t,e){for(var n,r=t[0],i=[r],o=1,a=t.length;o<a;o++)Z(n=t[o],r)>e&&(i.push(n),r=n);return r!==n&&i.push(n),i}(t,r),r)};function J(t,e){return t[0]*e[0]+t[1]*e[1]}function q(t,e){const n=e[0],r=e[1],i=Math.sqrt(n*n+r*r);return t[0]=n/i,t[1]=r/i,t}function K(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function $(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function tt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function et(t,e){const n=e[0],r=e[1],i=e[2],o=Math.sqrt(n*n+r*r+i*i);return t[0]=n/o,t[1]=r/o,t[2]=i/o,t}function nt(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a,t}const rt=[];function it(t,e,n,r){const i=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}(e,n),o=Math.acos(i)*r;return K(rt,n,e,-i),function(t,e){const n=e[0],r=e[1],i=e[2],o=Math.sqrt(n*n+r*r+i*i);t[0]=n/o,t[1]=r/o,t[2]=i/o}(rt,rt),function(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}(t,e,Math.cos(o)),K(t,t,rt,Math.sin(o)),t}function ot(t,e,n){if(n-e<3)return 0;let r=0;for(let i=2*(n-1),o=2*e;o<2*n;){const e=t[i],n=t[i+1],a=t[o],s=t[o+1];i=o,o+=2,r+=e*s-a*n}return r}function at(t,e,n=2){return V()(t,e,n)}const st=[],ct=[],ut=[];function lt(t,e,n,r,i,o,a,s){const c=null!=a;let u=i,l=null;c&&(l=new Uint32Array(r-n));for(let i=n;i<r;i++){const h=i===r-1?n:i+1,f=i===n?r-1:i-1,d=t[2*f],p=t[2*f+1],m=t[2*i],g=t[2*i+1],v=t[2*h],y=t[2*h+1];if(st[0]=m-d,st[1]=g-p,ct[0]=v-m,ct[1]=y-g,q(st,st),q(ct,ct),c&&(l[i]=u),s||i!==n)if(s||i!==r-1){$(ut,ct,st);const t=ut[1];ut[1]=-ut[0],ut[0]=t,q(ut,ut);const n=J(ut,ct),r=Math.sqrt(1-n*n),i=o*Math.min(10,1/r),s=o*n<0;if(c&&1/r>a&&s){const t=m+ut[0]*o,n=g+ut[1]*o,i=Math.acos(r)/2,a=Math.tan(i)*Math.abs(o);e[2*u]=t+ut[1]*a,e[2*u+1]=n-ut[0]*a,u++,e[2*u]=t-ut[1]*a,e[2*u+1]=n+ut[0]*a,u++}else e[2*u]=m+ut[0]*i,e[2*u+1]=g+ut[1]*i,u++}else ut[0]=st[1],ut[1]=-st[0],q(ut,ut),e[2*u]=m+ut[0]*o,e[2*u+1]=g+ut[1]*o,u++;else ut[0]=ct[1],ut[1]=-ct[0],q(ut,ut),e[2*u]=m+ut[0]*o,e[2*u+1]=g+ut[1]*o,u++}return l}function ht(t,e,n,r,i){const o=null!=r?[]:new Float32Array(t.length);if(lt(t,o,0,e&&e.length?e[0]:t.length/2,0,n,r,i),e)for(let a=0;a<e.length;a++){const s=e[a];lt(t,o,s,e[a+1]||t.length/2,null!=r?o.length/2:s,n,r,i)}return o}function ft(t,e,n,r){for(let i=0;i<Math.floor((r-n)/2);i++)for(let o=0;o<e;o++){const a=(i+n)*e+o,s=(r-i-1)*e+o,c=t[a];t[a]=t[s],t[s]=c}return t}function dt(t,e){let n=t.length/2,r=0,i=e&&e.length?e[0]:n;ot(t,r,i)>0&&ft(t,2,r,i);for(let o=1;o<(e?e.length:0)+1;o++)r=e[o-1],i=e[o]||n,ot(t,r,i)<0&&ft(t,2,r,i)}function pt(t){t.depth=t.depth||1,t.bevelSize=t.bevelSize||0,t.bevelSegments=null==t.bevelSegments?2:t.bevelSegments,t.smoothSide=t.smoothSide||!1,t.smoothBevel=t.smoothBevel||!1,t.simplify=t.simplify||0,"number"==typeof t.depth&&(t.bevelSize=Math.min(t.bevelSegments>0?t.bevelSize:0,t.depth/2)),t.bevelSize>0||(t.bevelSegments=0),t.bevelSegments=Math.round(t.bevelSegments);const e=t.boundingRect;if(t.translate=t.translate||[0,0],t.scale=t.scale||[1,1],t.fitRect){let n=null==t.fitRect.x?e.x||0:t.fitRect.x,r=null==t.fitRect.y?e.y||0:t.fitRect.y,i=t.fitRect.width,o=t.fitRect.height;null==i?null!=o?i=o/e.height*e.width:(i=e.width,o=e.height):null==o&&(o=i/e.width*e.height),t.scale=[i/e.width,o/e.height],t.translate=[(n-e.x)*t.scale[0],(r-e.y)*t.scale[1]]}}const mt=[[0,0],[1,0],[1,1],[0,0],[1,1],[0,1]];function gt(t,{vertices:e,topVertices:n,depth:r,rect:i},o,a,s,c){const u=a-o,l=c.smoothSide?1:2,h=u*l,f=c.smoothBevel?1:2,d=Math.min(r/2,c.bevelSize),p=c.bevelSegments,m=s.vertex,g=Math.max(i.width,i.height,r);if(d>0){const i=[0,0,1],a=[],c=[0,0,-1],v=[];let y=0,_=new Float32Array(u);for(let x=0;x<2;x++){const b=0===x?r-d:d;for(let r=0;r<=p*f;r++){let w,M,S=0;for(let A=0;A<u;A++){for(let m=0;m<l;m++){let l=2*((A+m)%u+o);a[0]=e[l]-n[l],a[1]=e[l+1]-n[l+1],a[2]=0;const y=Math.sqrt(a[0]*a[0]+a[1]*a[1]);a[0]/=y,a[1]/=y;const C=(Math.floor(r/f)+r%f)/p;0===x?it(v,i,a,C):it(v,a,c,C);const E=0===x?C:1-C,T=d*Math.sin(E*Math.PI/2),I=y*Math.cos(E*Math.PI/2),L=d*y/Math.sqrt(T*T+I*I),P=v[0]*L+n[l],R=v[1]*L+n[l+1],O=v[2]*L+b;if(t.position[3*s.vertex]=P,t.position[3*s.vertex+1]=R,t.position[3*s.vertex+2]=O,(A>0||m>0)&&(S+=Math.sqrt((w-P)*(w-P)+(M-R)*(M-R))),r>0||x>0){let e=3*(s.vertex-h),n=t.position[e],r=t.position[e+1],i=t.position[e+2];_[A]+=Math.sqrt((n-P)*(n-P)+(r-R)*(r-R)+(i-O)*(i-O))}t.uv[2*s.vertex]=S/g,t.uv[2*s.vertex+1]=_[A]/g,w=P,M=R,s.vertex++}if(f>1&&r%f||1===f&&r>=1)for(let e=0;e<6;e++){const n=(mt[e][0]+A*l)%h,r=mt[e][1]+y;t.indices[s.index++]=(r-1)*h+n+m}}y++}}}else for(let n=0;n<2;n++){const i=0===n?r-d:d;let a,c,h=0;for(let n=0;n<u;n++)for(let r=0;r<l;r++){const l=2*((n+r)%u+o),f=e[l],d=e[l+1];t.position[3*s.vertex]=f,t.position[3*s.vertex+1]=d,t.position[3*s.vertex+2]=i,(n>0||r>0)&&(h+=Math.sqrt((a-f)*(a-f)+(c-d)*(c-d))),t.uv[2*s.vertex]=h/g,t.uv[2*s.vertex+1]=i/g,a=f,c=d,s.vertex++}}const v=d>0?p*f+1:1;for(let e=0;e<u;e++)for(let n=0;n<6;n++){const r=(mt[n][0]+e*l)%h,i=mt[n][1]+v;t.indices[s.index++]=(i-1)*h+r+m}}function vt({indices:t,vertices:e,topVertices:n,rect:r,depth:i},o,a,s){if(e.length<=4)return;const c=a.vertex,u=t.length;for(let e=0;e<u;e++)o.indices[a.index++]=c+t[e];const l=Math.max(r.width,r.height);for(let t=0;t<(s.excludeBottom?1:2);t++)for(let e=0;e<n.length;e+=2){const s=n[e],c=n[e+1];o.position[3*a.vertex]=s,o.position[3*a.vertex+1]=c,o.position[3*a.vertex+2]=(1-t)*i,o.uv[2*a.vertex]=(s-r.x)/l,o.uv[2*a.vertex+1]=(c-r.y)/l,a.vertex++}if(!s.excludeBottom){const n=e.length/2;for(let e=0;e<u;e+=3)for(let r=0;r<3;r++)o.indices[a.index++]=c+n+t[e+2-r]}}function yt(t,e){let n=0,r=0;for(let i=0;i<t.length;i++){const{indices:o,vertices:a,holes:s,depth:c}=t[i],u=a.length/2,l=Math.min(c/2,e.bevelSize)>0?e.bevelSegments:0;n+=o.length*(e.excludeBottom?1:2),r+=u*(e.excludeBottom?1:2);const h=2+2*l;let f=0,d=0;for(let t=0;t<(s?s.length:0)+1;t++){0===t?d=s&&s.length?s[0]:u:(f=s[t-1],d=s[t]||u),n+=6*(d-f)*(h-1);const i=(d-f)*(e.smoothSide?1:2);r+=i*h+(e.smoothBevel?0:l*i*2)}}const i={position:new Float32Array(3*r),indices:new(r>65535?Uint32Array:Uint16Array)(n),uv:new Float32Array(2*r)},o={vertex:0,index:0};for(let n=0;n<t.length;n++)vt(t[n],i,o,e);for(let n=0;n<t.length;n++){const{holes:r,vertices:a}=t[n],s=a.length/2;let c=0,u=r&&r.length?r[0]:s;if(gt(i,t[n],c,u,o,e),r)for(let a=0;a<r.length;a++)c=r[a],u=r[a+1]||s,gt(i,t[n],c,u,o,e)}for(let t=0;t<i.uv.length;t++){const e=i.uv[t];e>0&&Math.round(e)===e?i.uv[t]=1:i.uv[t]=e%1}return i.normal=function(t,e){function n(t,e,n,r){t[0]=e,t[1]=n,t[2]=r}const r=[],i=[],o=[],a=[],s=[],c=[],u=t.length,l=new Float32Array(e.length);for(let h=0;h<u;){const u=3*t[h++],f=3*t[h++],d=3*t[h++];n(r,e[u],e[u+1],e[u+2]),n(i,e[f],e[f+1],e[f+2]),n(o,e[d],e[d+1],e[d+2]),tt(a,r,i),tt(s,i,o),nt(c,a,s);for(let t=0;t<3;t++)l[u+t]=l[u+t]+c[t],l[f+t]=l[f+t]+c[t],l[d+t]=l[d+t]+c[t]}for(var h=0;h<l.length;)n(c,l[h],l[h+1],l[h+2]),et(c,c),l[h++]=c[0],l[h++]=c[1],l[h++]=c[2];return l}(i.indices,i.position),i.boundingRect=t[0]&&t[0].rect,i}function _t(t,e,n){const r=n.lineWidth,i=t.length,o=new Float32Array(2*i),a=n.translate||[0,0],s=n.scale||[1,1];for(let e=0,n=0;e<i;e++)o[n++]=t[e][0]*s[0]+a[0],o[n++]=t[e][1]*s[1]+a[1];ot(o,0,i)<0&&ft(o,2,0,i);const c=[],u=[],l=n.miterLimit,h=lt(o,u,0,i,0,-r/2,l,!1);ft(o,2,0,i);const f=lt(o,c,0,i,0,-r/2,l,!1),d=(c.length+u.length)/2,p=new Float32Array(2*d);let m=0;const g=u.length/2;for(let t=0;t<u.length;t++)p[m++]=u[t];for(let t=0;t<c.length;t++)p[m++]=c[t];const v=new(d>65535?Uint32Array:Uint16Array)(3*(2*(i-1)+(d-2*i)));let y=0;for(let t=0;t<i-1;t++){const e=t+1;v[y++]=g-1-h[t],v[y++]=g-1-h[t]-1,v[y++]=f[t]+1+g,v[y++]=g-1-h[t],v[y++]=f[t]+1+g,v[y++]=f[t]+g,f[e]-f[t]==2?(v[y++]=f[t]+2+g,v[y++]=f[t]+1+g,v[y++]=g-h[e]-1):h[e]-h[t]==2&&(v[y++]=f[e]+g,v[y++]=g-1-(h[t]+1),v[y++]=g-1-(h[t]+2))}const _=n.bevelSize>0?ht(p,[],n.bevelSize,null,!0):p,x=n.boundingRect;return{vertices:p,indices:v,topVertices:_,rect:{x:x.x*s[0]+a[0],y:x.y*s[1]+a[1],width:x.width*s[0],height:x.height*s[1]},depth:"function"==typeof n.depth?n.depth(e):n.depth,holes:[]}}function xt(t,e){const n=[];for(let r=0;r<t.length;r++){const i=t[r],o=[],a=i.length;let s=i[a-1][0],c=i[a-1][1],u=0;for(let t=0;t<a;t++){let n=i[t][0],r=i[t][1];const a=n-s,l=r-c;u+=Math.sqrt(a*a+l*l),u>e&&(o.push(i[t]),u=0),s=n,c=r}o.length>=3&&n.push(o)}return n.length>0?n:null}function bt(t,e){const n=[];for(let r=0;r<t.length;r++){let i=t[r];i=Y(i,e,!0),i.length>=3&&n.push(i)}return n.length>0?n:null}function wt(t,e,n){for(let r=0;r<t.length;r++)e[0]=Math.min(t[r][0],e[0]),e[1]=Math.min(t[r][1],e[1]),n[0]=Math.max(t[r][0],n[0]),n[1]=Math.max(t[r][1],n[1])}const Mt=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"];function St(t){return t.geometry?t.geometry.type:null}function At(t){const e=St(t);if(e)for(let t=0,n=Mt.length;t<n;t++)if(Mt[t]===e)return!0;return!1}function Ct(t){const e=St(t);return!(!e||e!==Mt[4]&&e!==Mt[5])}function Et(t){const e=St(t);return!(!e||e!==Mt[2]&&e!==Mt[3])}function Tt(t){const e=St(t);return!(!e||e!==Mt[0]&&e!==Mt[1])}function It(t){const e=St(t);return!!(e&&e.indexOf("Multi")>-1)}function Lt(t){return t.geometry?t.geometry.coordinates:[]}function Pt(t,e){const n=St(t);if(!n||!t.geometry)return null;const i=t.geometry.coordinates;if(!i)return null;let o=0,a=0,s=0;switch(n){case"Point":o=i[0],a=i[1],s++;break;case"MultiPoint":case"LineString":for(let t=0,e=i.length;t<e;t++)o+=i[t][0],a+=i[t][1],s++;break;case"MultiLineString":case"Polygon":for(let t=0,e=i.length;t<e;t++)for(let e=0,n=i[t].length;e<n;e++)o+=i[t][e][0],a+=i[t][e][1],s++;break;case"MultiPolygon":for(let t=0,e=i.length;t<e;t++)for(let e=0,n=i[t].length;e<n;e++)for(let n=0,r=i[t][e].length;n<r;n++)o+=i[t][e][n][0],a+=i[t][e][n][1],s++}const c=o/s,u=a/s;return e?(e.x=c,e.y=u,e):new r.Coordinate(c,u)}function Rt(t){const e=St(t);if(!e||!t.geometry)return null;const n=t.geometry,r=t.properties||{},i=n.coordinates;if(!i)return null;const o=[];let a;switch(e){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}if(a)for(let t=0,e=i.length;t<e;t++)o.push({type:"Feature",geometry:{type:a,coordinates:i[t]},properties:r});else o.push(t);return o}function Ot(t,e,n){const o=[],a=[];if(Array.isArray(t)&&t[0]instanceof i.Vector3)for(let e=0,n=t.length;e<n;e++){const n=t[e];o.push(n.x,n.y,n.z),a.push(n)}else{Array.isArray(t)&&(t=new r.LineString(t));const i=0;let s,c;At(t)?(s=Lt(t),c=Pt(t)):t instanceof r.LineString&&(s=t.getCoordinates(),c=t.getCenter());const u=e.coordinateToVector3(n||c);for(let t=0,n=s.length;t<n;t++){let n=s[t];Array.isArray(n)&&(n=new r.Coordinate(n));const c=e.coordinateToVector3(n,i).sub(u);o.push(c.x,c.y,c.z),a.push(c)}}return{positions:o,positionsV:a}}function kt(t,e,n,r){const i=[],o=[],a=[];for(let e=0,n=t.length;e<n;e++){const n=t[e];for(let t=0,e=n.length;t<e;t++){const e=n[t];a.length>0?e.join(",").toString()!==a[a.length-1].join(",").toString()&&a.push(e):a.push(e)}}for(let t=0,s=a.length;t<s;t++){const s=a[t];let c;const u=s.join(",").toString();c=n&&n[u]?n[u]:e.coordinateToVector3(s,0).sub(r),o.push(c),i.push(c.x,c.y,c.z)}return{positions:i,positionsV:o,lnglats:a}}function Bt(t,e=1,n=1,r,i){const o=Ot(t,r,i).positionsV,a=[];for(let t=0,e=o.length;t<e;t++){const e=o[t];a.push([e.x,e.y])}const{indices:s,position:c,normal:u,uv:l}=function(t,e){e=Object.assign({},e);const n=[1/0,1/0],r=[-1/0,-1/0];for(let e=0;e<t.length;e++)wt(t[e],n,r);e.boundingRect=e.boundingRect||{x:n[0],y:n[1],width:r[0]-n[0],height:r[1]-n[1]},pt(e);const i=e.scale||[1,1];null==e.lineWidth&&(e.lineWidth=1),null==e.miterLimit&&(e.miterLimit=2);const o=[];for(let n=0;n<t.length;n++){let r=t[n];const a=e.simplify/Math.max(i[0],i[1]);a>0&&(r=Y(r,a,!0)),o.push(_t(r,n,e))}return yt(o,e)}([a],{lineWidth:e,depth:n});return{position:c,normal:u,indices:s,uv:l}}function Dt(t){let e,n=[];return t instanceof r.MultiLineString?(n=t.getGeometries(),e=t.getCenter()):t instanceof r.LineString?(n.push(t),e=t.getCenter()):At(t)&&(e=Pt(t),It(t)?n=Rt(t):n.push(t)),{lineStrings:n,center:e}}const Ft={altitude:0,bottomHeight:0,colors:null};var Ut=class extends w{constructor(t,e,n,o){e=r.Util.extend({},Ft,e,{layer:o,lineString:t}),super(),this._initOptions(e);const{lineStrings:s,center:u}=Dt(t),l=[];for(let t=0,e=s.length;t<e;t++){const e=s[t],{positionsV:n}=Ot(e,o,u);for(let t=0,e=n.length;t<e;t++){const r=n[t];t>0&&t<e-1&&l.push(r.x,r.y,r.z),l.push(r.x,r.y,r.z)}}const h=new i.BufferGeometry;a(h,"position",new i.Float32BufferAttribute(l,3)),H(h,e.bottomHeight,o);const f=function(t){const e=[];return t&&t.length&&t.forEach(t=>{t=t instanceof i.Color?t:new i.Color(t),e.push(t.r,t.g,t.b)}),e}(e.colors);f&&f.length&&(a(h,"color",new i.Float32BufferAttribute(f,3)),n.vertexColors=c()),this._createLineSegments(h,n);const{altitude:d}=e,p=o.distanceToVector3(d,d).x,m=o.coordinateToVector3(u,p);this.getObject3d().position.copy(m),this.type="Line"}};const jt=new i.Color("#fff"),Nt=new i.Color("#fff");function zt(t,e,n,r){const{position:o,normal:s,uv:c,indices:u}=Gt(t,e,n,r),l=new Float32Array(o.length);l.fill(1,0,o.length);const h=new i.BufferGeometry;return a(h,"color",new i.BufferAttribute(l,3)),a(h,"normal",new i.BufferAttribute(s,3)),a(h,"position",new i.BufferAttribute(o,3)),a(h,"uv",new i.BufferAttribute(c,2)),h.setIndex(new i.Uint32BufferAttribute(u,1)),h}function Gt(t,e,n,r,i,o){const a=Wt(t,n,r,i,!1);if(!a)return null;o?(null==o[e]&&(o[e]=n.distanceToVector3(e,e).x),e=o[e]):e=n.distanceToVector3(e,e).x;const{position:s,normal:c,uv:u,indices:l}=function(t,e){e=Object.assign({},e);const n=[1/0,1/0],r=[-1/0,-1/0];for(let e=0;e<t.length;e++)wt(t[e][0],n,r);e.boundingRect=e.boundingRect||{x:n[0],y:n[1],width:r[0]-n[0],height:r[1]-n[1]},pt(e);const i=[],o=e.translate||[0,0],a=e.scale||[1,1],s=e.boundingRect,c={x:s.x*a[0]+o[0],y:s.y*a[1]+o[1],width:s.width*a[0],height:s.height*a[1]},u=Math.min(s.width,s.height)/1e5;for(let n=0;n<t.length;n++){let r=xt(t[n],u);if(!r)continue;const s=e.simplify/Math.max(a[0],a[1]);if(s>0&&(r=bt(r,s)),!r)continue;const{vertices:l,holes:h,dimensions:f}=V.a.flatten(r);for(let t=0;t<l.length;)l[t]=l[t++]*a[0]+o[0],l[t]=l[t++]*a[1]+o[1];if(dt(l,h),2!==f)throw new Error("Only 2D polygon points are supported");const d=e.bevelSize>0?ht(l,h,e.bevelSize,null,!0):l,p=at(d,h,f);i.push({indices:p,vertices:l,topVertices:d,holes:h,rect:c,depth:"function"==typeof e.depth?e.depth(n):e.depth})}return yt(i,e)}(a,{depth:e});return{position:s,normal:c,uv:u,indices:l}}function Ht(t,e,n,r){void 0===r&&(r=0);const o=t.attributes.position.array,s=o.length;Nt.setStyle(e),jt.setStyle(n);const c=[];if(Array.isArray(r))for(let t=0,e=r.length;t<e;t++){const{middleZ:e,start:n,end:i}=r[t].position;for(let t=n;t<i;t+=3)o[t+2]>e?(c[t]=jt.r,c[t+1]=jt.g,c[t+2]=jt.b):(c[t]=Nt.r,c[t+1]=Nt.g,c[t+2]=Nt.b)}else for(let t=0;t<s;t+=3)o[t+2]>r?c.push(jt.r,jt.g,jt.b):c.push(Nt.r,Nt.g,Nt.b);return a(t,"color",new i.Float32BufferAttribute(c,3,!0)),c}function Wt(t,e,n,i,o=!1){if(!t)return null;let a=[];if(t instanceof r.MultiPolygon)a=t.getGeometries().map(r=>Vt(r,e,n||t.getCenter(),i,o));else if(t instanceof r.Polygon){const r=Vt(t,e,n||t.getCenter(),i,o);a.push(r)}else if(Ct(t))if(It(t)){const r=Rt(t);for(let s=0,c=r.length;s<c;s++)a.push(Vt(r[s],e,n||Pt(t),i,o))}else{const r=Vt(t,e,n||Pt(t),i,o);a.push(r)}return a}function Vt(t,e,n,i,o=!1){let a,s,c;if(Ct(t)){const e=Lt(t);a=e[0],s=e.slice(1,e.length),n=n||Pt(t)}else t instanceof r.Polygon&&(a=t.getShell(),s=t.getHoles(),n=n||t.getCenter());i=i||e.coordinateToVector3(n),c=o?new Float32Array(2*a.length):[];for(let t=0,n=a.length;t<n;t++){const n=a[t],r=e.coordinateToVector3(n).sub(i);if(o){const e=2*t;c[e]=r.x,c[e+1]=r.y}else c.push([r.x,r.y])}const u=[o?c.buffer:c];if(s&&s.length>0)for(let t=0,n=s.length;t<n;t++){const n=o?new Float32Array(2*s[t].length):[];for(let r=0,a=s[t].length;r<a;r++){const a=s[t][r],c=e.coordinateToVector3(a).sub(i);if(o){const t=2*r;n[t]=c.x,n[t+1]=c.y}else n.push([c.x,c.y])}u.push(o?n.buffer:n)}return u}const Zt={bottomHeight:0,width:3,height:1,altitude:0,topColor:null,bottomColor:"#2d2f61"};var Qt=class extends w{constructor(t,e,n,i){e=r.Util.extend({},Zt,e,{layer:i,lineString:t}),super(),this._initOptions(e);const{height:o,width:a,bottomColor:s,topColor:u,bottomHeight:l,altitude:h}=e,f=i.distanceToVector3(o,o).x,d=i.distanceToVector3(a,a).x,{lineStrings:p,center:m}=Dt(t),g=[];let v=0;const y={};for(let t=0,e=p.length;t<e;t++){const e=Bt(p[t],d,f,i,m);v=H(e,l,i,y),g.push(e)}const _=M(g);u&&(Ht(_,s,u,v+f/2),n.vertexColors=c()),this._createMesh(_,n);const x=i.distanceToVector3(h,h).x,b=i.coordinateToVector3(m,x);this.getObject3d().position.copy(b),this.type="ExtrudeLine"}};const Xt={altitude:0,height:1,bottomHeight:0,topColor:null,bottomColor:"#2d2f61"};var Yt=class extends w{constructor(t,e,n,i){e=r.Util.extend({},Xt,e,{layer:i,polygon:t}),super(),this._initOptions(e);const{height:o,topColor:a,bottomColor:s,altitude:u,bottomHeight:l}=e,h=zt(t,o,i),f=Ct(t)?Pt(t):t.getCenter(),d=H(h,l,i);a&&(Ht(h,s,a,d+i.distanceToVector3(o,o).x/2),n.vertexColors=c()),this._createMesh(h,n);const p=i.distanceToVector3(u,u).x,m=i.coordinateToVector3(f,p);this.getObject3d().position.copy(m),this.type="ExtrudePolygon"}};const Jt={altitude:0,coordinate:null};var qt=class extends w{constructor(t,e={},n){e.coordinate||(console.warn("coordinate is null,it is important to locate the model"),e.coordinate=n.getMap().getCenter()),e=r.Util.extend({},Jt,e,{layer:n,model:t}),super(),this._initOptions(e),this._createGroup(),this.getObject3d().add(t);const{altitude:i,coordinate:o}=e,a=n.distanceToVector3(i,i).x,s=n.coordinateToVector3(o,a);this.getObject3d().position.copy(s),this.type="Model"}};const Kt=Math.PI/180;function $t(t){return t*Kt}function te(t,e){if(!t||!e)return 0;Array.isArray(t)||(t=t.toArray()),Array.isArray(e)||(e=e.toArray());let n=$t(t[1]);const r=$t(e[1]),i=n-r,o=$t(t[0])-$t(e[0]);return n=2*Math.asin(Math.sqrt(Math.pow(Math.sin(i/2),2)+Math.cos(n)*Math.cos(r)*Math.pow(Math.sin(o/2),2))),n*=6378137,Math.round(1e5*n)/1e5}function ee(t,e){const{len:n,c1:r,c2:i}=t,o=i[0]-r[0],a=i[1]-r[1],s=e/n;return[r[0]+s*o,r[1]+s*a]}function ne(t,e,n,r){const i=e.length;t.attributes.normal.count=i,t.attributes.position.count=i;const o=t.attributes.position.array,a=t.attributes.normal.array;for(let t=0;t<i;t++)o[t]=e[t],a[t]=n[t];t.index.count=r.length;for(let e=0,n=r.length;e<n;e++)t.index.array[e]=r[e]}const re={trail:5,chunkLength:50,width:2,height:1,speed:1,altitude:0,interactive:!1};var ie=class extends w{constructor(t,e,n,o){e=r.Util.extend({},re,e,{layer:o,lineString:t}),super(),this._initOptions(e);const{width:s,height:c,altitude:u,speed:l,chunkLength:h,trail:f}=e;let d,p;At(t)?(d=Pt(t),p=Lt(t)):(d=t.getCenter(),p=t);const m=function(t,e=10){e=Math.max(e,1),Array.isArray(t)||(t=function(t){return t.getCoordinates().map(t=>t.toArray())}(t));const n=t.length;let r=[],i=0;for(let e=0;e<n-1;e++){const n=te(t[e],t[e+1]),o=Math.floor(n);r.push({c1:t[e],len:o,c2:t[e+1]}),i+=o}if(i<=e)return r.map(t=>[t.c1,t.c2]);if(1===r.length&&r[0].len<=e)return[[r[0].c1,r[0].c2]];const o=r.length;let a,s=0,c=0;const u=[];let l=[r[0].c1];for(;s<o;){const{len:t,c2:n}=r[s];if(c+=t,c<e&&(l.push(n),s===o-1&&u.push(l),s++),c===e&&(l.push(n),c=0,u.push(l),l=[n],s++),c>e){const n=t-c+e;a=ee(r[s],n),l.push(a),u.push(l),c=0,r[s].c1=a,r[s].len=t-n,l=[],l.push(a)}}return u}(p,h),g=o.coordinateToVector3(d),v={};for(let t=0,e=m.length;t<e;t++){const e=m[t];for(let t=0,n=e.length;t<n;t++){const n=e[t],r=n.join(",").toString();v[r]||(v[r]=o.coordinateToVector3(n).sub(g))}}const y=kt(m.slice(0,1),o,v,g).positionsV,_=new i.BufferGeometry,x=new Float32Array(3e3),b=new Float32Array(3e3),w=new Uint16Array(1e3);a(_,"position",new i.BufferAttribute(x,3)),a(_,"normal",new i.BufferAttribute(b,3)),_.setIndex(new i.BufferAttribute(w,1));const M=o.distanceToVector3(s,s).x,S=o.distanceToVector3(c,c).x,A=Bt(y,M,S,o);ne(_,A.position,A.normal,A.indices),this._createMesh(_,n);const C=o.distanceToVector3(u,u).x,E=o.coordinateToVector3(d,C);this.getObject3d().position.copy(E),this._params={index:0,chunkLines:m,geometries:[],layer:o,trail:Math.max(1,f),lineWidth:M,depth:S,speed:Math.min(1,l),idx:0,loaded:!1,positionMap:v,centerPt:g},this._init(this._params),this.type="ExtrudeLineTrail"}_init(t){const{layer:e,trail:n,lineWidth:r,depth:i,chunkLines:o,positionMap:a,centerPt:s}=t,c=o.length,u=[];for(let t=0;t<c;t++){const c=kt(o.slice(t,t+n),e,a,s).positionsV;u.push(Bt(c,r,i,e))}this._params.geometries=u,this._params.loaded=!0}_animation(){const{index:t,geometries:e,speed:n,idx:r,chunkLines:i,trail:o,lineWidth:a,depth:s,loaded:c,layer:u,positionMap:l,centerPt:h}=this._params;if(!c)return;const f=Math.round(t);if(f>r){this._params.idx++;let t=e[f];t||(t=Bt(kt(i.slice(f,f+o),u,l,h).positionsV,a,s,u),e[f]=t);const n=this.getObject3d();ne(n.geometry,t.position,t.normal,t.indices),n.geometry.attributes.position.needsUpdate=!0,n.geometry.attributes.normal.needsUpdate=!0,n.geometry.index.needsUpdate=!0}t>=i.length-1&&(this._params.index=-1,this._params.idx=-1),this._params.index+=n}};const oe=["click","mousemove","mousedown","mouseup","dblclick","contextmenu"].join(" ").toString(),ae=new i.MeshBasicMaterial;ae.vertexColors=c();var se=t=>class extends t{_initBaseObjectsEvent(t){if(t&&Array.isArray(t)&&t.length)for(let e=0,n=t.length;e<n;e++){const n=t[e];this._proxyEvent(n)}return this}_proxyEvent(t){t.on("add",t=>{this._showGeometry(t.target,!0)}),t.on("remove",t=>{this._showGeometry(t.target,!1)}),t.on("mouseout",t=>{this._mouseover=!1,this.fire("mouseout",Object.assign({},t,{target:this,selectMesh:this.getSelectMesh?this.getSelectMesh():null}))}),t.on(oe,t=>{this.fire(t.type,Object.assign({},t,{target:this,selectMesh:this.getSelectMesh?this.getSelectMesh():null}))})}_getHideGeometryIndex(t){const e=[];let n=0;for(let r=0,i=this._geometriesAttributes.length;r<i;r++)!0===this._geometriesAttributes[r].hide&&(e.push(r),n+=this._geometriesAttributes[r][t].count);return{indexs:e,count:n}}_updateAttribute(t,e){const{indexs:n}=this._getHideGeometryIndex(e),r=this._geometryCache.attributes[e].array,o=r.length;for(let e=0;e<o;e++)t.array[e]=r[e];let a=NaN;this.getObject3d()instanceof i.LineSegments&&(a=0);for(let r=0;r<n.length;r++){const i=n[r],{start:o,end:s}=this._geometriesAttributes[i][e];for(let e=o;e<s;e++)t.array[e]=a}return this}_showGeometry(t,e){let n;if(t&&(n=t.getOptions().index),null!=n){const t=this._geometriesAttributes[n],{hide:r}=t;if(r===e)return this;t.hide=e;const i=this.getObject3d().geometry;this._updateAttribute(i.attributes.position,"position"),i.attributes.position.needsUpdate=!0,this.isHide=e}return this}getSelectMesh(){const t=this._getIndex();if(null!=t)return{data:this._datas[t],baseObject:this._baseObjects[t]}}_getIndex(t){return null==t&&(t=this.faceIndex||this.index),t}_init(){const t=this.getLayer().getPick();this.on("add",()=>{t.add(this.pickObject3d)}),this.on("remove",()=>{t.remove(this.pickObject3d)})}_setPickObject3d(){const t=this._geometryCache||this.getObject3d().geometry.clone(),e=this.getLayer().getPick(),{_geometriesAttributes:n}=this,r=[];for(let t=0,i=n.length;t<i;t++){const i=e.getColor(),o=i.getHex();this._colorMap[o]=t;const{count:a}=n[t].position;this._datas[t].colorIndex=o;for(let t=0;t<a;t++)r.push(i.r,i.g,i.b)}a(t,"color",new i.Float32BufferAttribute(r,3,!0));const o=e.getColor().getHex(),s=new i.Mesh(t,ae);s.position.copy(this.getObject3d().position),s._colorIndex=o,this.setPickObject3d(s)}};let ce;var ue;function le(){return r.worker||console.error("maptalks.worker is not defined,You can't use ThreeVectorTileLayer"),ue||(ue=new ce("__maptalks.three__")),ue}r.worker&&(ce=class extends r.worker.Actor{test(t,e){this.send(t,null,e)}pushQueue(t={}){const{type:e,data:n,callback:r,layer:i,key:o,center:a,lineStrings:s}=t;let c;"Polygon"===e?c=function(t=[],e,n){const r=n.coordinateToVector3(e),i=t.length,o=[],a=[],s={};for(let c=0;c<i;c++){const i=t[c],u=Wt(i,n,e,r,!0);for(let t=0,e=u.length;t<e;t++){const e=u[t];for(let t=0,n=e.length;t<n;t++)a.push(e[t])}const l=Ct(i)?i.properties:i.getProperties()||{};let h=l.height||1,f=l.bottomHeight||0;void 0!==f&&"number"==typeof f&&0!==f&&(void 0===s[f]&&(s[f]=n.distanceToVector3(f,f).x),f=s[f]),void 0===s[h]&&(s[h]=n.distanceToVector3(h,h).x),h=s[h],o.push({data:u,height:h,bottomHeight:f})}return{datas:o,transfer:a}}(n,a,i):"LineString"===e&&(c=function(t,e,n,r){const i=[],o=[],a={},s=t.length;for(let c=0;c<s;c++){const s=t[c],u=Et(r[c])?r[c].properties:r[c].getProperties()||{},l=u.width||1,h=u.height||1;let f=u.bottomHeight||0;void 0!==f&&"number"==typeof f&&0!==f&&(void 0===a[f]&&(a[f]=n.distanceToVector3(f,f).x),f=a[f]),void 0===a[h]&&(a[h]=n.distanceToVector3(h,h).x),void 0===a[l]&&(a[l]=n.distanceToVector3(l,l).x);const d=[];for(let t=0,r=s.length;t<r;t++){const r=Ot(s[t],n,e).positionsV,i=new Float32Array(2*r.length);for(let t=0,e=r.length;t<e;t++)i[2*t]=r[t].x,i[2*t+1]=r[t].y;o.push(i),d.push(i)}i.push({data:d,height:a[h],width:a[l],bottomHeight:f})}return{datas:i,transfer:o}}(n,a,i,s)),this.send({type:e,datas:c.datas},c.transfe,(function(t,e){t&&console.error(t),e.key=o,r(e)}))}});const he={altitude:0,height:1,bottomHeight:0,topColor:null,bottomColor:"#2d2f61"},fe=new r.Coordinate(0,0);class de extends(se(w)){constructor(t,e,n,i){Array.isArray(t)||(t=[t]);const o=t.length;0===o&&console.error("polygons is empty");let a=1/0,s=1/0,u=-1/0,l=-1/0;for(let e=0;e<o;e++){const n=t[e],i=n.getCenter?n.getCenter():Pt(n,fe);let o,c;Array.isArray(i)?(o=i[0],c=i[1]):i instanceof r.Coordinate&&(o=i.x,c=i.y),a=Math.min(a,o),s=Math.min(s,c),u=Math.max(u,o),l=Math.max(l,c)}const h=new r.Coordinate((a+u)/2,(s+l)/2);e=r.Util.extend({},he,e,{layer:i,polygons:t,coordinate:h});const{topColor:f,bottomColor:d,altitude:p,asynchronous:m}=e;let g;const v=[],y=[],_=[];if(m){var x=le();g=I(),x.pushQueue({type:"Polygon",layer:i,key:e.key,center:h,data:t,callback:t=>{const{faceMap:e,geometriesAttributes:r}=t;this._faceMap=e,this._geometriesAttributes=r;const i=C(t);this._geometryCache=E(i),f&&(Ht(i,d,f,r),n.vertexColors=c());const o=this.getObject3d();o.geometry=i,o.material.needsUpdate=!0,this._setPickObject3d(),this._init(),this.isAdd&&this.getLayer().getPick().add(this.pickObject3d),this._fire("workerload",{target:this})}})}else{const e=i.coordinateToVector3(h),r=[];let a=0,s=0,u=0,l=0;const p={};for(let n=0;n<o;n++){const o=t[n],c=Ct(o)?o.properties:o.getProperties()||{},f=c.height||1,d=c.bottomHeight||0,m=Gt(o,f,i,h,e,p);r.push(m);const g=H(m,d,i,p),{position:v,normal:x,uv:b,indices:w}=m,M=w.length/3;y[n]=[a+1,a+M],a+=M;const S=v.length/3,A=x.length/3,C=b.length/2;_[n]={position:{middleZ:g+p[f]/2,count:S,start:s,end:s+3*S},normal:{count:A,start:u,end:u+3*A},uv:{count:C,start:l,end:l+2*C},hide:!1},s+=3*S,u+=3*A,l+=2*C}g=M(r),f&&(Ht(g,d,f,_),n.vertexColors=c())}super(),this._initOptions(e),this._createMesh(g,n);const b=i.distanceToVector3(p,p).x,w=i.coordinateToVector3(h,b);this.getObject3d().position.copy(w),this._faceMap=y,this._baseObjects=v,this._datas=t,this._geometriesAttributes=_,this.faceIndex=null,this._geometryCache=g.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(v),m||(this._setPickObject3d(),this._init()),this.type="ExtrudePolygons"}getSelectMesh(){const t=this._getIndex();if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],n=Object.assign({},this.options,Ct(e)?e.properties:e.getProperties(),{index:t});this._baseObjects[t]=new Yt(e,n,this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}identify(t){return this.picked}}var pe=de;function me(t,e,n){const r=t.project(n),i=e.width/2,o=e.height/2;return{x:Math.round(r.x*i+i),y:Math.round(-r.y*o+o)}}const ge={altitude:0,height:0,color:null},ve=new i.Vector3;var ye=class extends w{constructor(t,e,n,o){e=r.Util.extend({},ge,e,{layer:o,coordinate:t}),super();let{height:s,altitude:c,color:u,size:l}=e;const h=[],f=[];u&&(u=u instanceof i.Color?u:new i.Color(u),f.push(u.r,u.g,u.b));const d=o.distanceToVector3(s,s).x,p=o.coordinateToVector3(t,d);h.push(0,0,p.z);const m=new i.BufferGeometry;a(m,"position",new i.Float32BufferAttribute(h,3,!0)),f.length&&a(m,"color",new i.Float32BufferAttribute(f,3,!0)),void 0!==l&&a(m,"size",new i.Float32BufferAttribute([l],1,!0)),e.positions=p,this._initOptions(e),this._createPoints(m,n);const g=o.distanceToVector3(c,c).x,v=new i.Vector3(p.x,p.y,g);this.getObject3d().position.copy(v),this.type="Point"}identify(t){const e=this.getLayer(),n=this.getMap().getSize(),r=this.getLayer().getCamera(),i=this.getOptions().positions,o=this.getOptions().altitude;let a=this.getObject3d().material.size;void 0===a&&(a=this.options.size||1);const s=this.getMap().coordToContainerPoint(t),c=e.distanceToVector3(o,o).x;ve.x=i.x,ve.y=i.y,ve.z=i.z+c;const u=me(ve,n,r);return Math.sqrt(Math.pow(s.x-u.x,2)+Math.pow(s.y-u.y,2))<=a/2}};function _e(t,e){const{minx:n,miny:r,maxx:i,maxy:o}=t,[a,s]=e;return n<=a&&a<=i&&r<=s&&s<=o}class xe{constructor(t,e,n,r){this.minlng=t,this.minlat=e,this.maxlng=n,this.maxlat=r,this.minx=1/0,this.miny=1/0,this.maxx=-1/0,this.maxy=-1/0,this.coordinates=[],this.positions=[],this.indexs=[],this.key=null}updateBBoxPixel(t){let e=1/0,n=1/0,i=-1/0,o=-1/0;const{minlng:a,minlat:s,maxlng:c,maxlat:u}=this;return[[a,s],[a,u],[c,s],[c,u]].map(t=>new r.Coordinate(t)).map(e=>t.coordToContainerPoint(e)).forEach(t=>{e=Math.min(e,t.x),n=Math.min(n,t.y),i=Math.max(i,t.x),o=Math.max(o,t.y)}),this.minx=e,this.miny=n,this.maxx=i,this.maxy=o,this}containsCoordinate(t){let e,n;Array.isArray(t)?(e=t[0],n=t[1]):t instanceof r.Coordinate&&(e=t.x,n=t.y);const{minlng:i,minlat:o,maxlng:a,maxlat:s}=this;return i<=e&&e<=a&&o<=n&&n<=s}isRecCross(t,e){const{x:n,y:r}=t,i={minx:n-e/2,miny:r-e/2,maxx:n+e/2,maxy:r+e/2},{minx:o,miny:a,maxx:s,maxy:c}=i;return!!(_e(this,[o,a])||_e(this,[o,c])||_e(this,[s,a])||_e(this,[s,c])||_e(i,[this.minx,this.miny])||_e(i,[this.minx,this.maxy])||_e(i,[this.maxx,this.miny])||_e(i,[this.maxx,this.maxy]))}static initGrids(t,e,n,r){const i=[],o=(n-t)/30,a=(r-e)/30;let s=t,c=e;for(let n=0;n<30;n++){s=t+n*o;for(let t=0;t<30;t++){c=e+t*a;const r=new xe(s,c,s+o,c+a);r.key=t+"-"+n,i.push(r)}}return i}}var be=xe;const we={altitude:0},Me=new i.Vector3;class Se extends(se(w)){constructor(t,e,n,o){Array.isArray(t)||(t=[t]),e=r.Util.extend({},we,e,{layer:o,points:t});let s=1/0,c=1/0,u=-1/0,l=-1/0;for(let e=0,n=t.length;e<n;e++){const{coordinate:n}=t[e];let i,o;Array.isArray(n)?(i=n[0],o=n[1]):n instanceof r.Coordinate&&(i=n.x,o=n.y),s=Math.min(s,i),c=Math.min(c,o),u=Math.max(u,i),l=Math.max(l,o)}const h=o.coordinateToVector3([(s+u)/2,(c+l)/2]),f=be.initGrids(s,c,u,l),d=f.length,p=[],m=[],g=[],v=[],y=[],_=[],x={};let b=0;for(let e=0,n=t.length;e<n;e++){let{coordinate:n,height:r,color:a,size:s}=t[e];a&&(a=a instanceof i.Color?a:new i.Color(a),g.push(a.r,a.g,a.b)),s&&(v.push(s),b=Math.max(b,s));const c=z(r,o,x),u=o.coordinateToVector3(n,c),l=u.clone().sub(h);p.push(l.x,l.y,l.z),m.push(u),_[e]={position:{count:1,start:3*e,end:3*e+3},hide:!1};for(let t=0;t<d;t++)if(f[t].containsCoordinate(n)){f[t].positions.push(u),f[t].indexs.push(e);break}}const w=new i.BufferGeometry;a(w,"position",new i.Float32BufferAttribute(p,3,!0)),g.length&&a(w,"color",new i.Float32BufferAttribute(g,3,!0)),v.length&&a(w,"size",new i.Float32BufferAttribute(v,1,!0)),e.positions=m,super(),this._initOptions(e),this._createPoints(w,n);const M=e.altitude,S=o.distanceToVector3(M,M).x,A=h.clone();A.z=S,this.getObject3d().position.copy(A),this._baseObjects=y,this._datas=t,this.faceIndex=null,this._geometriesAttributes=_,this._geometryCache=w.clone(),this.isHide=!1,this._initBaseObjectsEvent(y),this._grids=f,this._bindMapEvents(),this.type="Points",this.maxSize=b}_bindMapEvents(){const t=this.getMap(),e="zoomstart zooming zoomend movestart moving moveend pitch rotate";this.on("add",()=>{this._updateGrids(),t.on(e,this._updateGrids,this)}),this.on("remove",()=>{t.off(e,this._updateGrids,this)})}_updateGrids(){const t=this.getMap();this._grids.forEach(e=>{e.indexs.length&&e.updateBBoxPixel(t)})}getSelectMesh(){const t=this.faceIndex;if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],{coordinate:n,height:r,color:i,size:o}=e;this._baseObjects[t]=new ye(n,{height:r,index:t,color:i,size:o},this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}identify(t){const e=this.getLayer(),n=this.getMap().getSize(),r=this.getLayer().getCamera(),i=this.getOptions().altitude,o=this.getMap(),a=e.distanceToVector3(i,i).x;let s=this.getObject3d().material.size;const c=void 0===s,u=o.coordToContainerPoint(t),l=[];if(this._grids.forEach(t=>{t.indexs.length&&t.isRecCross(u,c?this.maxSize:s)&&l.push(t)}),l.length<1)return!1;for(let t=0,e=l.length;t<e;t++)for(let e=l[t].positions.length-1;e>=0;e--){c&&(s=this._datas[l[t].indexs[e]].size||1);const i=l[t].positions[e];Me.x=i.x,Me.y=i.y,Me.z=i.z+a;const o=me(Me,n,r);if(Math.sqrt(Math.pow(u.x-o.x,2)+Math.pow(u.y-o.y,2))<=s/2)return this.faceIndex=l[t].indexs[e],!0}return!1}}var Ae=Se;const Ce={coordinate:"",radius:10,height:100,radialSegments:6,altitude:0,topColor:"",bottomColor:"#2d2f61"};class Ee extends(se(w)){constructor(t,e,n,i){Array.isArray(t)||(t=[t]);const o=t.length,a=G(t),s=i.coordinateToVector3(a),u=[],l=[],h=[],f=[];let d=0,p=0,m=0,g=0;const v={};for(let e=0;e<o;e++){const o=r.Util.extend({index:e},Ce,t[e]),{radius:a,radialSegments:y,altitude:_,topColor:x,bottomColor:b,height:w,coordinate:M}=o,S=z(a,i,v),A=z(w,i,v),C=z(_,i,v),E=B({radius:S,height:A,radialSegments:y});x&&(D(E,b,x,"z",A/2),n.vertexColors=c());const T=i.coordinateToVector3(M).sub(s),I=E.attributes.position.array;for(let t=0,e=I.length;t<e;t+=3)I[t+2]+=C,I[t]+=T.x,I[t+1]+=T.y,I[t+2]+=T.z;u.push(E);const L=new N(M,o,n,i);l.push(L);const P=E.index.count/3;f[e]=[d+1,d+P],d+=P;const R=E.attributes.position.count,O=E.attributes.normal.count,k=E.attributes.uv.count;h[e]={position:{count:R,start:p,end:p+3*R},normal:{count:O,start:m,end:m+3*O},uv:{count:k,start:g,end:g+2*k},hide:!1},p+=3*R,m+=3*O,g+=2*k}super(),e=r.Util.extend({},{altitude:0,layer:i,points:t},e),this._initOptions(e);const y=F(u);this._createMesh(y,n);const _=e.altitude,x=i.distanceToVector3(_,_).x,b=s.clone();b.z=x,this.getObject3d().position.copy(b),this._faceMap=f,this._baseObjects=l,this._datas=t,this._geometriesAttributes=h,this.faceIndex=null,this._geometryCache=y.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(l),this._setPickObject3d(),this._init(),this.type="Bars"}identify(){return this.picked}}var Te=Ee;const Ie={width:3,height:1,altitude:0,topColor:null,bottomColor:"#2d2f61"};class Le extends(se(w)){constructor(t,e,n,i){Array.isArray(t)||(t=[t]);const o=[],a=[],s=t.length;for(let e=0;e<s;e++){const n=Dt(t[e]);o.push(n.center),a.push(n.lineStrings)}const u=G(o);e=r.Util.extend({},Ie,e,{layer:i,lineStrings:t,coordinate:u});const{altitude:l,topColor:h,bottomColor:f,asynchronous:d}=e;let p;const m=[],g=[];if(d){var v=le();p=I(),v.pushQueue({type:"LineString",layer:i,key:e.key,center:u,data:a,lineStrings:t,callback:t=>{const{faceMap:e,geometriesAttributes:r}=t;this._faceMap=e,this._geometriesAttributes=r;const i=C(t);this._geometryCache=E(i),h&&(Ht(i,f,h,r),n.vertexColors=c()),this.getObject3d().geometry=i,this.getObject3d().material.needsUpdate=!0,this._setPickObject3d(),this._init(),this.isAdd&&this.getLayer().getPick().add(this.pickObject3d),this._fire("workerload",{target:this})}})}else{const e=[];let o=0,l=[],d=0,m=0;const v={};for(let n=0;n<s;n++){const s=t[n],c=r.Util.extend({},Ie,At(s)?s.properties:s.getProperties(),{index:n}),{height:h,width:f,bottomHeight:p}=c,y=z(f,i,v),_=z(h,i,v),x=a[n],b=[];let w=0;for(let t=0,e=x.length;t<e;t++){const e=Bt(x[t],y,_,i,u);w=H(e,p,i,v),b.push(e)}const M=S(b);e.push(M);const{position:A,normal:C,indices:E}=M,T=E.length/3;l[n]=[o+1,o+T],o+=T;const I=A.length/3,L=C.length/3;g[n]={position:{middleZ:w+_/2,count:I,start:d,end:d+3*I},normal:{count:L,start:m,end:m+3*L},hide:!1},d+=3*I,m+=3*L}p=M(e),h&&(Ht(p,f,h,g),n.vertexColors=c())}super(),this._initOptions(e),this._createMesh(p,n);const y=i.distanceToVector3(l,l).x,_=i.coordinateToVector3(u,y);this.getObject3d().position.copy(_),this._faceMap=[],this._baseObjects=m,this._datas=t,this._geometriesAttributes=g,this.faceIndex=null,this._geometryCache=p.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(m),d||(this._setPickObject3d(),this._init()),this.type="ExtrudeLines"}getSelectMesh(){const t=this._getIndex();if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],n=Object.assign({},this.options,Et(e)?e.properties:e.getProperties(),{index:t});this._baseObjects[t]=new Qt(e,n,this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}identify(t){return this.picked}}var Pe=Le;const Re={altitude:0,colors:null};class Oe extends(se(w)){constructor(t,e,n,o){Array.isArray(t)||(t=[t]);const s=[],c=[],u=t.length;for(let e=0;e<u;e++){const n=Dt(t[e]);s.push(n.center),c.push(n.lineStrings)}const l=G(s);e=r.Util.extend({},Re,e,{layer:o,lineStrings:t,coordinate:l});const h=[],f={};let d=0,p=[],m=[],g=0,v=[];for(let t=0;t<u;t++){const e=c[t];let n=0;for(let t=0,r=e.length;t<r;t++){const r=Et(e[t])?e[t].properties:e[t].getProperties()||{},{positionsV:i}=Ot(e[t],o,l);H(i,r.bottomHeight,o,f),n+=2*i.length-2;for(let t=0,e=i.length;t<e;t++){const n=i[t];t>0&&t<e-1&&v.push(n.x,n.y,n.z),v.push(n.x,n.y,n.z)}}const r=n;p[t]=[d,d+r],d+=r,m[t]={position:{count:n,start:g,end:g+3*n},hide:!1},g+=3*n}const y=new i.BufferGeometry;a(y,"position",new i.Float32BufferAttribute(v,3)),super(),this._initOptions(e),this._createLineSegments(y,n);const{altitude:_}=e,x=o.distanceToVector3(_,_).x,b=o.coordinateToVector3(l,x);this.getObject3d().position.copy(b),this._faceMap=p,this._baseObjects=h,this._datas=t,this._geometriesAttributes=m,this.faceIndex=null,this.index=null,this._geometryCache=y.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(h),this._setPickObject3d(),this._init(),this.type="Lines"}getSelectMesh(){const t=this._getIndex();if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],n=r.Util.extend({},this.getOptions(),{index:t},Et(e)?e.properties:e.getProperties());this._baseObjects[t]=new Ut(e,n,this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}_setPickObject3d(){const t=this._geometryCache||this.getObject3d().geometry.clone(),e=this.getLayer().getPick(),{_geometriesAttributes:n}=this,r=[];for(let t=0,i=n.length;t<i;t++){const i=e.getColor(),o=i.getHex();this._colorMap[o]=t;const{count:a}=n[t].position;this._datas[t].colorIndex=o;for(let t=0;t<a;t++)r.push(i.r,i.g,i.b)}a(t,"color",new i.Float32BufferAttribute(r,3,!0));const o=this.getObject3d().material.clone();o.color.set("#fff"),o.vertexColors=c();const s=e.getColor().getHex(),u=new i.LineSegments(t,o);u.position.copy(this.getObject3d().position),u._colorIndex=s,this.setPickObject3d(u)}identify(t){return this.picked}}var ke=Oe;const Be=[],De=[];function Fe(t,e){for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r){const{key:i,callback:o}=r;if(e===i)return t.splice(n,1),o}}return null}const Ue=document.createElement("canvas");function je(t,e=!1){const n=Ue.getContext("2d");if(n.clearRect(0,0,256,256),n.save(),e){n.fillStyle="red",n.strokeStyle="rgba(255,0,0,0.4)",n.lineWidth=.2;const e=t||"tile";n.font="18px sans-serif",n.rect(0,0,256,256),n.stroke(),n.fillText(e,15,128)}return Ue.toDataURL()}function Ne(t=1,e=1){let n;return"undefined"==typeof document||(n=document.createElement("canvas"),t&&(n.width=t),e&&(n.height=e)),n}Ue.width=Ue.height=256;class ze extends r.TileLayer{constructor(t,e={}){super(r.Util.GUID(),r.Util.extend({urlTemplate:t},e)),this._opts=null,this._layer=null,this.material=null,this.getMaterial=null,this._baseObjectKeys={},this._loadTiles={},this._add=null,this._layerLaodTime=(new Date).getTime()}isAsynchronous(){return this._opts.worker}getBaseObjects(){const t=this._loadTiles,e=[];for(let n in t){const t=this._baseObjectKeys[n];if(t&&Array.isArray(t)&&t.length)for(let n=0,r=t.length;n<r;n++)e.push(t[n])}return e}onSelectMesh(t,e){}formatBaseObjects(t,e){return[]}loopMessage(t){}getTileData(t){const{key:e,url:n,callback:i,img:o}=t;r.Ajax.getJSON(n,{},(function(t,n){t?(console.error(t),i(e,null,o)):i(e,n,o)}))}_getCurentTileKeys(){const t=this.getTiles().tileGrids||[],e=[],n={};for(let r=0,i=t.length;r<i;r++){const i=t[r].tiles||[];for(let t=0,r=i.length;t<r;t++){const{id:r}=i[t];e.push(r),n[r]=!0}}return{keys:e,keysMap:n}}_isLoad(){const{keys:t}=this._getCurentTileKeys(),e=Object.keys(this._renderer.tilesInView);return t.length===e.length}_layerOnLoad(){const t=(new Date).getTime();if(t-this._layerLaodTime<20)return;this._layerLaodTime=t;const e=this._renderer.tilesInView,n=this._loadTiles,r=this._layer,i=this._baseObjectKeys,o=Object.keys(e).length,a=Object.keys(n).length,s=[];if(o&&a)for(let t in n)e[t]||i[t]&&(i[t]||[]).forEach(t=>{s.push(t)});if(s.length&&r.removeMesh(s,!1),o&&a)for(let t in e)if(!n[t])if(i[t]){const e=i[t];r.addMesh(e)}else{const{x:e,y:n,z:r}=this._getXYZOfIndex(t);this.getTileUrl(e,n,r)}this._loadTiles=Object.assign({},e),this._diffCache()}_init(){}_workerLoad(t){const e=t.target._img;e.currentCount++,e.currentCount===e.needCount&&(e.src=je(e._key,this._opts.debug))}_generateBaseObjects(t,e,n){if(e&&n){const{keysMap:r}=this._getCurentTileKeys();if(!r[t])return void(n.src=je(t,this._opts.debug));const i=this.formatBaseObjects(t,e);if(i.length){n.needCount=i.length,n.currentCount=0;for(let e=0,r=i.length;e<r;e++){const r=i[e];r._img=n,r._vt=this,this.isVisible()||r.hide(),this._cachetile(t,r),r.isAsynchronous()||n.currentCount++}this._layer.addMesh(i,!1),n.needCount===n.currentCount&&(n.src=je(t,this._opts.debug)),this.isAsynchronous()?i.filter(t=>t.isAsynchronous()).forEach(t=>{t.on("workerload",this._workerLoad,this)}):n.src=je(t,this._opts.debug)}else n.src=je(t,this._opts.debug);this._loadTiles[t]=!0}else n&&(n.src=je(t,this._opts.debug))}_diffCache(){if(Object.keys(this._baseObjectKeys).length>this._renderer.tileCache.max){const t=this._renderer.tileCache.data,e=this._renderer.tilesInView,n=[];for(let r in this._baseObjectKeys)t[r]||e[r]||((this._baseObjectKeys[r]||[]).forEach(t=>{t.isAdd&&n.push(t)}),this._diposeBaseObject(r),delete this._baseObjectKeys[r]);n.length&&this._layer.removeMesh(n,!1)}}_diposeBaseObject(t){const e=this._baseObjectKeys[t];e&&e.length&&e.forEach(t=>{t.getObject3d().geometry.dispose(),t._geometryCache&&t._geometryCache.dispose();const e=t._baseObjects;e&&e.length&&e.forEach(t=>{t.getObject3d().geometry.dispose(),t=null}),t._datas=null,t._geometriesAttributes=null,t._faceMap=null,t._colorMap=null,t.pickObject3d&&t.pickObject3d.geometry.dispose(),t=null})}_cachetile(t,e){this._baseObjectKeys[t]||(this._baseObjectKeys[t]=[]),this._baseObjectKeys[t].push(e)}_getXYZOfIndex(t){const e=t.indexOf("_")>-1?"_":"-";let[n,r,i]=t.split(e).slice(1,4);return{x:parseInt(r),y:parseInt(n),z:parseInt(i)}}_getTileExtent(t,e,n){const r=this.getMap()._getResolution(n);return this._getTileConfig().getTilePrjExtent(t,e,r)}_getTileLngLatExtent(t,e,n){const i=this._getTileExtent(t,e,n);let o=i.getMax(),a=i.getMin();const s=this.getMap().getProjection();return a=s.unproject(a),o=s.unproject(o),new r.Extent(a,o)}}var Ge=ze;const He={worker:!1};var We=class extends Ge{constructor(t,e={},n,i){super(r.Util.GUID(),r.Util.extend({urlTemplate:t},He,e)),this._opts=e,this._layer=i,this.getMaterial=n,this._baseObjectKeys={},this._loadTiles={},this._add=null,this._layerLaodTime=(new Date).getTime(),this._init()}formatBaseObjects(t,e){const n=this._opts,o=[],a=this.isAsynchronous();for(let s in e){const c=e[s]||{};let u;if(Array.isArray(c)?u=c:"FeatureCollection"===c.type&&(u=c.features),u&&u.length){const e=[],l=[],h=[];for(let t=0,n=u.length;t<n;t++){const n=u[t];if(Ct(n))e.push(n);else if(Et(n)){const t=Rt(n);for(let e=0,n=t.length;e<n;e++)l.push(t[e])}else if(Tt(n)){const t=Rt(n);for(let e=0,n=t.length;e<n;e++)h.push(r.Util.extend({},t[e].properties,t[e],{coordinate:Lt(t[e])}))}}if(e.length){const i=this._getMaterial(s,e,t,c);if(i){const c=this._layer.toExtrudePolygons(e,r.Util.extend({},{topColor:"#fff",layerName:s,asynchronous:a,key:t},n),i);o.push(c)}}if(l.length){const e=this._getMaterial(s,l,t,c);if(e&&(e instanceof i.LineBasicMaterial||e instanceof i.LineDashedMaterial)){const t=this._layer.toLines(l,r.Util.extend({},{layerName:s},n),e);o.push(t)}}if(h.length){const e=this._getMaterial(s,h,t,c);if(e&&e instanceof i.PointsMaterial){const t=this._layer.toPoints(h,r.Util.extend({},{layerName:s},n),e);o.push(t)}}}}return o}loopMessage(t){const{currentQueue:e}={waitingQueue:Be,currentQueue:De};e.length>0&&this.getTileData(t)}_init(){this.on("layerload",this._layerOnLoad),this.on("add",()=>{if(!1===this._add){const t=this.getBaseObjects();this._layer.addMesh(t)}this._add=!0,this.intervalId=setInterval(()=>{this._isLoad()&&!this._layer.getMap().isInteracting()&&this.fire("layerload")},1e3)}),this.on("remove",()=>{this._add=!1;const t=this.getBaseObjects();this._layer.removeMesh(t),clearInterval(this.intervalId)}),this.on("show",()=>{this.getBaseObjects().forEach(t=>{t.show()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.show()})}),this.on("hide",()=>{this.getBaseObjects().forEach(t=>{t.hide()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.hide()})}),this.on("renderercreate",t=>{t.renderer.loadTile=function(t){var e=this.layer.getTileSize(),n=new Image;return n.width=e.width,n.height=e.height,n.onload=this.onTileLoad.bind(this,n,t),n.onerror=this.onTileError.bind(this,n,t),this.loadTileImage(n,t.url,t.id),n},t.renderer.deleteTile=function(t){t&&t.image&&(t.image.onload=null,t.image.onerror=null,function(t){const e=Fe(Be,t);e&&e(t)}((t.info||{}).id))},t.renderer.loadTileImage=(t,e,n)=>{t._key=n,function(t,e,n,r,i){const o={key:t,url:e,callback:n,img:r,vt:i};De.length<10?(De.push(o),i.loopMessage(o)):Be.push(o)}(n,e,(t,e,n)=>{this._generateBaseObjects(t,e,n),function(t,e){if(Fe(De,t),Be.length){De.push(Be[0]),Be.splice(0,1);const t=De[De.length-1];e.loopMessage(t)}}(t,this)},t,this)}})}_getMaterial(t,e,n,i){return this.getMaterial&&r.Util.isFunction(this.getMaterial)?this.getMaterial(t,e,n,i):null}};const Ve=new i.TextureLoader,Ze=document.createElement("canvas");function Qe(t){if(!t)return null;let e;return"string"==typeof t?(e=new Image,e.src=t):t instanceof HTMLCanvasElement?(e=new Image,e.src=t.toDataURL()):t instanceof Image&&(e=new Image,e.src=t.src,e.crossOrigin=t.crossOrigin),e&&!e.crossOrigin&&(e.crossOrigin="Anonymous"),e}const Xe={interactive:!1,altitude:0,image:null,imageWidth:256,imageHeight:256,texture:null};var Ye=class extends w{constructor(t,e,n,o){e=r.Util.extend({},Xe,e,{layer:o,extent:t});const{texture:a,image:s,altitude:c,imageHeight:u,imageWidth:l}=e;s||console.error("not find image"),t instanceof r.Extent||(t=new r.Extent(t));const{xmin:h,ymin:f,xmax:d,ymax:p}=t;let m=1/0,g=1/0,v=-1/0,y=-1/0;[[h,f],[h,p],[d,p],[d,f]].forEach(t=>{const e=o.coordinateToVector3(t),{x:n,y:r}=e;m=Math.min(n,m),g=Math.min(r,g),v=Math.max(n,v),y=Math.max(r,y)});const _=Math.abs(v-m),x=Math.abs(y-g),b=Qe(s),w=Qe(a),M=new i.PlaneBufferGeometry(_,x,l-1,u-1);super(),this._initOptions(e),this._createMesh(M,n);const S=o.distanceToVector3(c,c).x,A=o.coordinateToVector3(t.getCenter(),S);this.getObject3d().position.copy(A),n.transparent=!0,b&&(n.opacity=0,b.onload=()=>{const t=function(t,e=256,n=256){Ze.width=e,Ze.height=n;const r=Ze.getContext("2d");return r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n).data}(b,l,u);let e=0;const r={};for(let n=0,i=t.length;n<i;n+=4){const i=z(.1*(256*t[n]*256+256*t[n+1]+t[n+2])-1e4,o,r);M.attributes.position.array[3*e+2]=i,e++}M.attributes.position.needsUpdate=!0,w?Ve.load(w.src,t=>{n.map=t,n.opacity=1,n.needsUpdate=!0}):n.opacity=1},b.onerror=function(){console.error("not load "+b.src)}),this.type="Terrain"}};const Je={scale:1,tileDivisor:4};var qe=class extends Ge{constructor(t,e={},n,i){super(r.Util.GUID(),r.Util.extend({urlTemplate:t},Je,e)),this._opts=e,this._layer=i,this.material=n,this._baseObjectKeys={},this._loadTiles={},this._add=null,this._imgQueue={},this._layerLaodTime=(new Date).getTime(),this._init()}isAsynchronous(){return!1}formatBaseObjects(t,e){const n=this.options,r=[],{scale:i,tileDivisor:o}=n,{x:a,y:s,z:c}=this._getXYZOfIndex(t),u=this.getMap().getZoom(),l=this.getTileUrl(a,s,c),[h,f]=this.options.tileSize,d=this._getTileLngLatExtent(a,s,c),p=this.material.clone();if(c+1>=Math.round(u)){const t=new Ye(d,{image:e,imageWidth:h/o,imageHeight:f/o,texture:l},p,this._layer);t.getObject3d().scale.set(i,i,1),r.push(t)}return r}loopMessage(t){this.getTileData(t)}_init(){this.on("layerload",this._layerOnLoad),this.on("add",()=>{if(!1===this._add){const t=this.getBaseObjects();this._layer.addMesh(t)}this._add=!0,this.intervalId=setInterval(()=>{this._isLoad()&&!this._layer.getMap().isInteracting()&&this.fire("layerload")},1e3)}),this.on("remove",()=>{this._add=!1;const t=this.getBaseObjects();this._layer.removeMesh(t),clearInterval(this.intervalId)}),this.on("show",()=>{this.getBaseObjects().forEach(t=>{t.show()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.show()})}),this.on("hide",()=>{this.getBaseObjects().forEach(t=>{t.hide()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.hide()})}),this.on("renderercreate",t=>{t.renderer.loadTile=function(t){var e=this.layer.getTileSize(),n=new Image;return n.width=e.width,n.height=e.height,n.onload=this.onTileLoad.bind(this,n,t),n.onerror=this.onTileError.bind(this,n,t),this.loadTileImage(n,t.url,t.id),n},t.renderer.deleteTile=t=>{if(!t||!t.image)return;t.image.onload=null,t.image.onerror=null;const e=t.info||{},n=this._imgQueue[e.id];n&&(n.src="",n.onload=null,n.onerror=null,delete this._imgQueue[e.id])},t.renderer.loadTileImage=(t,e,n)=>{t._key=n;const r=new Image;this._imgQueue[n]=r;const i={key:n,url:e,rgbImage:r,callback:(t,e,n)=>{this._generateBaseObjects(t,e,n)},img:t,vt:this};this.loopMessage(i)}})}};
|
|
22
|
+
*/(function(){var o,a="Expected a function",s="__lodash_hash_undefined__",c="__lodash_placeholder__",u=16,l=32,h=64,f=128,d=256,p=1/0,m=9007199254740991,g=NaN,v=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",l],["partialRight",h],["rearg",d]],_="[object Arguments]",x="[object Array]",b="[object Boolean]",w="[object Date]",M="[object Error]",S="[object Function]",A="[object GeneratorFunction]",C="[object Map]",E="[object Number]",T="[object Object]",I="[object Promise]",L="[object RegExp]",P="[object Set]",R="[object String]",O="[object Symbol]",k="[object WeakMap]",B="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",j="[object Int8Array]",N="[object Int16Array]",z="[object Int32Array]",G="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",V="[object Uint32Array]",Z=/\b__p \+= '';/g,Q=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,q=RegExp(Y.source),K=RegExp(J.source),$=/<%-([\s\S]+?)%>/g,tt=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,at=RegExp(ot.source),st=/^\s+/,ct=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lt=/\{\n\/\* \[wrapped with (.+)\] \*/,ht=/,? & /,ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,xt=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,At="\\ud800-\\udfff",Ct="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",It="A-Z\\xc0-\\xd6\\xd8-\\xde",Lt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="['’]",Ot="["+At+"]",kt="["+Pt+"]",Bt="["+Ct+"]",Dt="\\d+",Ft="["+Et+"]",Ut="["+Tt+"]",jt="[^"+At+Pt+Dt+Et+Tt+It+"]",Nt="\\ud83c[\\udffb-\\udfff]",zt="[^"+At+"]",Gt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+It+"]",Vt="(?:"+Ut+"|"+jt+")",Zt="(?:"+Wt+"|"+jt+")",Qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Xt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yt="(?:"+Bt+"|"+Nt+")?",Jt="["+Lt+"]?",qt=Jt+Yt+"(?:\\u200d(?:"+[zt,Gt,Ht].join("|")+")"+Jt+Yt+")*",Kt="(?:"+[Ft,Gt,Ht].join("|")+")"+qt,$t="(?:"+[zt+Bt+"?",Bt,Gt,Ht,Ot].join("|")+")",te=RegExp(Rt,"g"),ee=RegExp(Bt,"g"),ne=RegExp(Nt+"(?="+Nt+")|"+$t+qt,"g"),re=RegExp([Wt+"?"+Ut+"+"+Qt+"(?="+[kt,Wt,"$"].join("|")+")",Zt+"+"+Xt+"(?="+[kt,Wt+Vt,"$"].join("|")+")",Wt+"?"+Vt+"+"+Qt,Wt+"+"+Xt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt,Kt].join("|"),"g"),ie=RegExp("[\\u200d"+At+Ct+Lt+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],se=-1,ce={};ce[F]=ce[U]=ce[j]=ce[N]=ce[z]=ce[G]=ce[H]=ce[W]=ce[V]=!0,ce[_]=ce[x]=ce[B]=ce[b]=ce[D]=ce[w]=ce[M]=ce[S]=ce[C]=ce[E]=ce[T]=ce[L]=ce[P]=ce[R]=ce[k]=!1;var ue={};ue[_]=ue[x]=ue[B]=ue[D]=ue[b]=ue[w]=ue[F]=ue[U]=ue[j]=ue[N]=ue[z]=ue[C]=ue[E]=ue[T]=ue[L]=ue[P]=ue[R]=ue[O]=ue[G]=ue[H]=ue[W]=ue[V]=!0,ue[M]=ue[S]=ue[k]=!1;var le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},he=parseFloat,fe=parseInt,de="object"==typeof t&&t&&t.Object===Object&&t,pe="object"==typeof self&&self&&self.Object===Object&&self,me=de||pe||Function("return this")(),ge=e&&!e.nodeType&&e,ve=ge&&"object"==typeof r&&r&&!r.nodeType&&r,ye=ve&&ve.exports===ge,_e=ye&&de.process,xe=function(){try{return ve&&ve.require&&ve.require("util").types||_e&&_e.binding&&_e.binding("util")}catch(t){}}(),be=xe&&xe.isArrayBuffer,we=xe&&xe.isDate,Me=xe&&xe.isMap,Se=xe&&xe.isRegExp,Ae=xe&&xe.isSet,Ce=xe&&xe.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Te(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Ie(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Le(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Re(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Oe(t,e){return!(null==t||!t.length)&&We(t,e,0)>-1}function ke(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Be(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function De(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Fe(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Ue(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function je(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Ne=Xe("length");function ze(t){return t.match(ft)||[]}function Ge(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function He(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function We(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):He(t,Ze,n)}function Ve(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ze(t){return t!=t}function Qe(t,e){var n=null==t?0:t.length;return n?qe(t,e)/n:g}function Xe(t){return function(e){return null==e?o:e[t]}}function Ye(t){return function(e){return null==t?o:t[e]}}function Je(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function qe(t,e){for(var n,r=-1,i=t.length;++r<i;){var a=e(t[r]);a!==o&&(n=n===o?a:n+a)}return n}function Ke(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function $e(t){return t?t.slice(0,yn(t)+1).replace(st,""):t}function tn(t){return function(e){return t(e)}}function en(t,e){return Be(e,(function(e){return t[e]}))}function nn(t,e){return t.has(e)}function rn(t,e){for(var n=-1,r=t.length;++n<r&&We(e,t[n],0)>-1;);return n}function on(t,e){for(var n=t.length;n--&&We(e,t[n],0)>-1;);return n}function an(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var sn=Ye({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),cn=Ye({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(t){return"\\"+le[t]}function ln(t){return ie.test(t)}function hn(t){return oe.test(t)}function fn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function dn(t,e){return function(n){return t(e(n))}}function pn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==c||(t[n]=c,o[i++]=n)}return o}function mn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function gn(t){return ln(t)?function(t){for(var e=ne.lastIndex=0;ne.test(t);)++e;return e}(t):Ne(t)}function vn(t){return ln(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.split("")}(t)}function yn(t){for(var e=t.length;e--&&ct.test(t.charAt(e)););return e}var _n=Ye({"&":"&","<":"<",">":">",""":'"',"'":"'"});function xn(t){return t.match(re)||[]}var bn=function t(e){var n=(e=null==e?me:bn.defaults(me.Object(),e,bn.pick(me,ae))).Array,r=e.Date,i=e.Error,ct=e.Function,ft=e.Math,At=e.Object,Ct=e.RegExp,Et=e.String,Tt=e.TypeError,It=n.prototype,Lt=ct.prototype,Pt=At.prototype,Rt=e["__core-js_shared__"],Ot=Lt.toString,kt=Pt.hasOwnProperty,Bt=0,Dt=function(){var t=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ft=Pt.toString,Ut=Ot.call(At),jt=me._,Nt=Ct("^"+Ot.call(kt).replace(ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=ye?e.Buffer:o,Gt=e.Symbol,Ht=e.Uint8Array,Wt=zt?zt.allocUnsafe:o,Vt=dn(At.getPrototypeOf,At),Zt=At.create,Qt=Pt.propertyIsEnumerable,Xt=It.splice,Yt=Gt?Gt.isConcatSpreadable:o,Jt=Gt?Gt.iterator:o,qt=Gt?Gt.toStringTag:o,Kt=function(){try{var t=go(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),$t=e.clearTimeout!==me.clearTimeout&&e.clearTimeout,ne=r&&r.now!==me.Date.now&&r.now,re=e.setTimeout!==me.setTimeout&&e.setTimeout,ie=ft.ceil,oe=ft.floor,le=At.getOwnPropertySymbols,de=zt?zt.isBuffer:o,pe=e.isFinite,ge=It.join,ve=dn(At.keys,At),_e=ft.max,xe=ft.min,Ne=r.now,Ye=e.parseInt,wn=ft.random,Mn=It.reverse,Sn=go(e,"DataView"),An=go(e,"Map"),Cn=go(e,"Promise"),En=go(e,"Set"),Tn=go(e,"WeakMap"),In=go(At,"create"),Ln=Tn&&new Tn,Pn={},Rn=Wo(Sn),On=Wo(An),kn=Wo(Cn),Bn=Wo(En),Dn=Wo(Tn),Fn=Gt?Gt.prototype:o,Un=Fn?Fn.valueOf:o,jn=Fn?Fn.toString:o;function Nn(t){if(ss(t)&&!Ja(t)&&!(t instanceof Wn)){if(t instanceof Hn)return t;if(kt.call(t,"__wrapped__"))return Vo(t)}return new Hn(t)}var zn=function(){function t(){}return function(e){if(!as(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function Gn(){}function Hn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qn;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new Zn(t);this.size=e.size}function Jn(t,e){var n=Ja(t),r=!n&&Ya(t),i=!n&&!r&&ts(t),o=!n&&!r&&!i&&ms(t),a=n||r||i||o,s=a?Ke(t.length,Et):[],c=s.length;for(var u in t)!e&&!kt.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Mo(u,c))||s.push(u);return s}function qn(t){var e=t.length;return e?t[Xr(0,e-1)]:o}function Kn(t,e){return zo(Li(t),sr(e,0,t.length))}function $n(t){return zo(Li(t))}function tr(t,e,n){(n!==o&&!Za(t[e],n)||n===o&&!(e in t))&&or(t,e,n)}function er(t,e,n){var r=t[e];kt.call(t,e)&&Za(r,n)&&(n!==o||e in t)||or(t,e,n)}function nr(t,e){for(var n=t.length;n--;)if(Za(t[n][0],e))return n;return-1}function rr(t,e,n,r){return fr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ir(t,e){return t&&Pi(e,Fs(e),t)}function or(t,e,n){"__proto__"==e&&Kt?Kt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(t,e){for(var r=-1,i=e.length,a=n(i),s=null==t;++r<i;)a[r]=s?o:Rs(t,e[r]);return a}function sr(t,e,n){return t==t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function cr(t,e,n,r,i,a){var s,c=1&e,u=2&e,l=4&e;if(n&&(s=i?n(t,r,i,a):n(t)),s!==o)return s;if(!as(t))return t;var h=Ja(t);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&kt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!c)return Li(t,s)}else{var f=_o(t),d=f==S||f==A;if(ts(t))return Si(t,c);if(f==T||f==_||d&&!i){if(s=u||d?{}:bo(t),!c)return u?function(t,e){return Pi(t,yo(t),e)}(t,function(t,e){return t&&Pi(e,Us(e),t)}(s,t)):function(t,e){return Pi(t,vo(t),e)}(t,ir(s,t))}else{if(!ue[f])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case B:return Ai(t);case b:case w:return new r(+t);case D:return function(t,e){var n=e?Ai(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case F:case U:case j:case N:case z:case G:case H:case W:case V:return Ci(t,n);case C:return new r;case E:case R:return new r(t);case L:return function(t){var e=new t.constructor(t.source,gt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new r;case O:return function(t){return Un?At(Un.call(t)):{}}(t)}}(t,f,c)}}a||(a=new Yn);var p=a.get(t);if(p)return p;a.set(t,s),fs(t)?t.forEach((function(r){s.add(cr(r,e,n,r,t,a))})):cs(t)&&t.forEach((function(r,i){s.set(i,cr(r,e,n,i,t,a))}));var m=h?o:(l?u?co:so:u?Us:Fs)(t);return Ie(m||t,(function(r,i){m&&(r=t[i=r]),er(s,i,cr(r,e,n,i,t,a))})),s}function ur(t,e,n){var r=n.length;if(null==t)return!r;for(t=At(t);r--;){var i=n[r],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function lr(t,e,n){if("function"!=typeof t)throw new Tt(a);return Fo((function(){t.apply(o,n)}),e)}function hr(t,e,n,r){var i=-1,o=Oe,a=!0,s=t.length,c=[],u=e.length;if(!s)return c;n&&(e=Be(e,tn(n))),r?(o=ke,a=!1):e.length>=200&&(o=nn,a=!1,e=new Xn(e));t:for(;++i<s;){var l=t[i],h=null==n?l:n(l);if(l=r||0!==l?l:0,a&&h==h){for(var f=u;f--;)if(e[f]===h)continue t;c.push(l)}else o(e,h,r)||c.push(l)}return c}Nn.templateSettings={escape:$,evaluate:tt,interpolate:et,variable:"",imports:{_:Nn}},Nn.prototype=Gn.prototype,Nn.prototype.constructor=Nn,Hn.prototype=zn(Gn.prototype),Hn.prototype.constructor=Hn,Wn.prototype=zn(Gn.prototype),Wn.prototype.constructor=Wn,Vn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Vn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Vn.prototype.get=function(t){var e=this.__data__;if(In){var n=e[t];return n===s?o:n}return kt.call(e,t)?e[t]:o},Vn.prototype.has=function(t){var e=this.__data__;return In?e[t]!==o:kt.call(e,t)},Vn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=In&&e===o?s:e,this},Zn.prototype.clear=function(){this.__data__=[],this.size=0},Zn.prototype.delete=function(t){var e=this.__data__,n=nr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Zn.prototype.get=function(t){var e=this.__data__,n=nr(e,t);return n<0?o:e[n][1]},Zn.prototype.has=function(t){return nr(this.__data__,t)>-1},Zn.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(An||Zn),string:new Vn}},Qn.prototype.delete=function(t){var e=po(this,t).delete(t);return this.size-=e?1:0,e},Qn.prototype.get=function(t){return po(this,t).get(t)},Qn.prototype.has=function(t){return po(this,t).has(t)},Qn.prototype.set=function(t,e){var n=po(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,s),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new Zn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Zn){var r=n.__data__;if(!An||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(t,e),this.size=n.size,this};var fr=ki(xr),dr=ki(br,!0);function pr(t,e){var n=!0;return fr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function mr(t,e,n){for(var r=-1,i=t.length;++r<i;){var a=t[r],s=e(a);if(null!=s&&(c===o?s==s&&!ps(s):n(s,c)))var c=s,u=a}return u}function gr(t,e){var n=[];return fr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function vr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=wo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?vr(s,e-1,n,r,i):De(i,s):r||(i[i.length]=s)}return i}var yr=Bi(),_r=Bi(!0);function xr(t,e){return t&&yr(t,e,Fs)}function br(t,e){return t&&_r(t,e,Fs)}function wr(t,e){return Re(e,(function(e){return rs(t[e])}))}function Mr(t,e){for(var n=0,r=(e=xi(e,t)).length;null!=t&&n<r;)t=t[Ho(e[n++])];return n&&n==r?t:o}function Sr(t,e,n){var r=e(t);return Ja(t)?r:De(r,n(t))}function Ar(t){return null==t?t===o?"[object Undefined]":"[object Null]":qt&&qt in At(t)?function(t){var e=kt.call(t,qt),n=t[qt];try{t[qt]=o;var r=!0}catch(t){}var i=Ft.call(t);return r&&(e?t[qt]=n:delete t[qt]),i}(t):function(t){return Ft.call(t)}(t)}function Cr(t,e){return t>e}function Er(t,e){return null!=t&&kt.call(t,e)}function Tr(t,e){return null!=t&&e in At(t)}function Ir(t,e,r){for(var i=r?ke:Oe,a=t[0].length,s=t.length,c=s,u=n(s),l=1/0,h=[];c--;){var f=t[c];c&&e&&(f=Be(f,tn(e))),l=xe(f.length,l),u[c]=!r&&(e||a>=120&&f.length>=120)?new Xn(c&&f):o}f=t[0];var d=-1,p=u[0];t:for(;++d<a&&h.length<l;){var m=f[d],g=e?e(m):m;if(m=r||0!==m?m:0,!(p?nn(p,g):i(h,g,r))){for(c=s;--c;){var v=u[c];if(!(v?nn(v,g):i(t[c],g,r)))continue t}p&&p.push(g),h.push(m)}}return h}function Lr(t,e,n){var r=null==(t=Oo(t,e=xi(e,t)))?t:t[Ho(na(e))];return null==r?o:Ee(r,t,n)}function Pr(t){return ss(t)&&Ar(t)==_}function Rr(t,e,n,r,i){return t===e||(null==t||null==e||!ss(t)&&!ss(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=Ja(t),s=Ja(e),c=a?x:_o(t),u=s?x:_o(e),l=(c=c==_?T:c)==T,h=(u=u==_?T:u)==T,f=c==u;if(f&&ts(t)){if(!ts(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new Yn),a||ms(t)?io(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case D:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case B:return!(t.byteLength!=e.byteLength||!o(new Ht(t),new Ht(e)));case b:case w:case E:return Za(+t,+e);case M:return t.name==e.name&&t.message==e.message;case L:case R:return t==e+"";case C:var s=fn;case P:var c=1&r;if(s||(s=mn),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var l=io(s(t),s(e),r,i,o,a);return a.delete(t),l;case O:if(Un)return Un.call(t)==Un.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var d=l&&kt.call(t,"__wrapped__"),p=h&&kt.call(e,"__wrapped__");if(d||p){var m=d?t.value():t,g=p?e.value():e;return o||(o=new Yn),i(m,g,n,r,o)}}return!!f&&(o||(o=new Yn),oo(t,e,n,r,i,o))}(t,e,n,r,Rr,i))}function Or(t,e,n,r){var i=n.length,a=i,s=!r;if(null==t)return!a;for(t=At(t);i--;){var c=n[i];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<a;){var u=(c=n[i])[0],l=t[u],h=c[1];if(s&&c[2]){if(l===o&&!(u in t))return!1}else{var f=new Yn;if(r)var d=r(l,h,u,t,e,f);if(!(d===o?Rr(h,l,3,r,f):d))return!1}}return!0}function kr(t){return!(!as(t)||function(t){return!!Dt&&Dt in t}(t))&&(rs(t)?Nt:_t).test(Wo(t))}function Br(t){return"function"==typeof t?t:null==t?uc:"object"==typeof t?Ja(t)?zr(t[0],t[1]):Nr(t):yc(t)}function Dr(t){if(!To(t))return ve(t);var e=[];for(var n in At(t))kt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Fr(t){if(!as(t))return function(t){var e=[];if(null!=t)for(var n in At(t))e.push(n);return e}(t);var e=To(t),n=[];for(var r in t)("constructor"!=r||!e&&kt.call(t,r))&&n.push(r);return n}function Ur(t,e){return t<e}function jr(t,e){var r=-1,i=Ka(t)?n(t.length):[];return fr(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Nr(t){var e=mo(t);return 1==e.length&&e[0][2]?Lo(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function zr(t,e){return Ao(t)&&Io(e)?Lo(Ho(t),e):function(n){var r=Rs(n,t);return r===o&&r===e?Os(n,t):Rr(e,r,3)}}function Gr(t,e,n,r,i){t!==e&&yr(e,(function(a,s){if(i||(i=new Yn),as(a))!function(t,e,n,r,i,a,s){var c=Bo(t,n),u=Bo(e,n),l=s.get(u);if(l)tr(t,n,l);else{var h=a?a(c,u,n+"",t,e,s):o,f=h===o;if(f){var d=Ja(u),p=!d&&ts(u),m=!d&&!p&&ms(u);h=u,d||p||m?Ja(c)?h=c:$a(c)?h=Li(c):p?(f=!1,h=Si(u,!0)):m?(f=!1,h=Ci(u,!0)):h=[]:ls(u)||Ya(u)?(h=c,Ya(c)?h=Ms(c):as(c)&&!rs(c)||(h=bo(u))):f=!1}f&&(s.set(u,h),i(h,u,r,a,s),s.delete(u)),tr(t,n,h)}}(t,e,s,n,Gr,r,i);else{var c=r?r(Bo(t,s),a,s+"",t,e,i):o;c===o&&(c=a),tr(t,s,c)}}),Us)}function Hr(t,e){var n=t.length;if(n)return Mo(e+=e<0?n:0,n)?t[e]:o}function Wr(t,e,n){e=e.length?Be(e,(function(t){return Ja(t)?function(e){return Mr(e,1===t.length?t[0]:t)}:t})):[uc];var r=-1;return e=Be(e,tn(fo())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(jr(t,(function(t,n,i){return{criteria:Be(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var c=Ei(i[r],o[r]);if(c){if(r>=s)return c;var u=n[r];return c*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)}))}function Vr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Mr(t,a);n(s,a)&&ti(o,xi(a,t),s)}return o}function Zr(t,e,n,r){var i=r?Ve:We,o=-1,a=e.length,s=t;for(t===e&&(e=Li(e)),n&&(s=Be(t,tn(n)));++o<a;)for(var c=0,u=e[o],l=n?n(u):u;(c=i(s,l,c,r))>-1;)s!==t&&Xt.call(s,c,1),Xt.call(t,c,1);return t}function Qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Mo(i)?Xt.call(t,i,1):fi(t,i)}}return t}function Xr(t,e){return t+oe(wn()*(e-t+1))}function Yr(t,e,r,i){for(var o=-1,a=_e(ie((e-t)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=t,t+=r;return s}function Jr(t,e){var n="";if(!t||e<1||e>m)return n;do{e%2&&(n+=t),(e=oe(e/2))&&(t+=t)}while(e);return n}function qr(t,e){return Uo(Ro(t,e,uc),t+"")}function Kr(t){return qn(Zs(t))}function $r(t,e){var n=Zs(t);return zo(n,sr(e,0,n.length))}function ti(t,e,n,r){if(!as(t))return t;for(var i=-1,a=(e=xi(e,t)).length,s=a-1,c=t;null!=c&&++i<a;){var u=Ho(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=s){var h=c[u];(l=r?r(h,u,c):o)===o&&(l=as(h)?h:Mo(e[i+1])?[]:{})}er(c,u,l),c=c[u]}return t}var ei=Ln?function(t,e){return Ln.set(t,e),t}:uc,ni=Kt?function(t,e){return Kt(t,"toString",{configurable:!0,enumerable:!1,value:ac(e),writable:!0})}:uc;function ri(t){return zo(Zs(t))}function ii(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=n(o);++i<o;)a[i]=t[i+e];return a}function oi(t,e){var n;return fr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!ps(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return si(t,e,uc,n)}function si(t,e,n,r){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,c=null===e,u=ps(e),l=e===o;i<a;){var h=oe((i+a)/2),f=n(t[h]),d=f!==o,p=null===f,m=f==f,g=ps(f);if(s)var v=r||m;else v=l?m&&(r||d):c?m&&d&&(r||!p):u?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);v?i=h+1:a=h}return xe(a,4294967294)}function ci(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Za(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function ui(t){return"number"==typeof t?t:ps(t)?g:+t}function li(t){if("string"==typeof t)return t;if(Ja(t))return Be(t,li)+"";if(ps(t))return jn?jn.call(t):"";var e=t+"";return"0"==e&&1/t==-p?"-0":e}function hi(t,e,n){var r=-1,i=Oe,o=t.length,a=!0,s=[],c=s;if(n)a=!1,i=ke;else if(o>=200){var u=e?null:Ki(t);if(u)return mn(u);a=!1,i=nn,c=new Xn}else c=e?[]:s;t:for(;++r<o;){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue t;e&&c.push(h),s.push(l)}else i(c,h,n)||(c!==s&&c.push(h),s.push(l))}return s}function fi(t,e){return null==(t=Oo(t,e=xi(e,t)))||delete t[Ho(na(e))]}function di(t,e,n,r){return ti(t,e,n(Mr(t,e)),r)}function pi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ii(t,r?0:o,r?o+1:i):ii(t,r?o+1:0,r?i:o)}function mi(t,e){var n=t;return n instanceof Wn&&(n=n.value()),Fe(e,(function(t,e){return e.func.apply(e.thisArg,De([t],e.args))}),n)}function gi(t,e,r){var i=t.length;if(i<2)return i?hi(t[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=t[o],c=-1;++c<i;)c!=o&&(a[o]=hr(a[o]||s,t[c],e,r));return hi(vr(a,1),e,r)}function vi(t,e,n){for(var r=-1,i=t.length,a=e.length,s={};++r<i;){var c=r<a?e[r]:o;n(s,t[r],c)}return s}function yi(t){return $a(t)?t:[]}function _i(t){return"function"==typeof t?t:uc}function xi(t,e){return Ja(t)?t:Ao(t,e)?[t]:Go(Ss(t))}var bi=qr;function wi(t,e,n){var r=t.length;return n=n===o?r:n,!e&&n>=r?t:ii(t,e,n)}var Mi=$t||function(t){return me.clearTimeout(t)};function Si(t,e){if(e)return t.slice();var n=t.length,r=Wt?Wt(n):new t.constructor(n);return t.copy(r),r}function Ai(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ci(t,e){var n=e?Ai(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,a=ps(t),s=e!==o,c=null===e,u=e==e,l=ps(e);if(!c&&!l&&!a&&t>e||a&&s&&u&&!c&&!l||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!l&&t<e||l&&n&&i&&!r&&!a||c&&n&&i||!s&&i||!u)return-1}return 0}function Ti(t,e,r,i){for(var o=-1,a=t.length,s=r.length,c=-1,u=e.length,l=_e(a-s,0),h=n(u+l),f=!i;++c<u;)h[c]=e[c];for(;++o<s;)(f||o<a)&&(h[r[o]]=t[o]);for(;l--;)h[c++]=t[o++];return h}function Ii(t,e,r,i){for(var o=-1,a=t.length,s=-1,c=r.length,u=-1,l=e.length,h=_e(a-c,0),f=n(h+l),d=!i;++o<h;)f[o]=t[o];for(var p=o;++u<l;)f[p+u]=e[u];for(;++s<c;)(d||o<a)&&(f[p+r[s]]=t[o++]);return f}function Li(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function Pi(t,e,n,r){var i=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var c=e[a],u=r?r(n[c],t[c],c,n,t):o;u===o&&(u=t[c]),i?or(n,c,u):er(n,c,u)}return n}function Ri(t,e){return function(n,r){var i=Ja(n)?Te:rr,o=e?e():{};return i(n,t,fo(r,2),o)}}function Oi(t){return qr((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,s&&So(n[0],n[1],s)&&(a=i<3?o:a,i=1),e=At(e);++r<i;){var c=n[r];c&&t(e,c,r,a)}return e}))}function ki(t,e){return function(n,r){if(null==n)return n;if(!Ka(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=At(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Bi(t){return function(e,n,r){for(var i=-1,o=At(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}function Di(t){return function(e){var n=ln(e=Ss(e))?vn(e):o,r=n?n[0]:e.charAt(0),i=n?wi(n,1).join(""):e.slice(1);return r[t]()+i}}function Fi(t){return function(e){return Fe(rc(Ys(e).replace(te,"")),t,"")}}function Ui(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=zn(t.prototype),r=t.apply(n,e);return as(r)?r:n}}function ji(t,e,r){var i=Ui(t);return function a(){for(var s=arguments.length,c=n(s),u=s,l=ho(a);u--;)c[u]=arguments[u];var h=s<3&&c[0]!==l&&c[s-1]!==l?[]:pn(c,l);if((s-=h.length)<r)return Ji(t,e,Gi,a.placeholder,o,c,h,o,o,r-s);var f=this&&this!==me&&this instanceof a?i:t;return Ee(f,this,c)}}function Ni(t){return function(e,n,r){var i=At(e);if(!Ka(e)){var a=fo(n,3);e=Fs(e),n=function(t){return a(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[a?e[s]:s]:o}}function zi(t){return ao((function(e){var n=e.length,r=n,i=Hn.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new Tt(a);if(i&&!c&&"wrapper"==lo(s))var c=new Hn([],!0)}for(r=c?r:n;++r<n;){var u=lo(s=e[r]),l="wrapper"==u?uo(s):o;c=l&&Co(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[lo(l[0])].apply(c,l[3]):1==s.length&&Co(s)?c[u]():c.thru(s)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&Ja(r))return c.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Gi(t,e,r,i,a,s,c,u,l,h){var d=e&f,p=1&e,m=2&e,g=24&e,v=512&e,y=m?o:Ui(t);return function o(){for(var f=arguments.length,_=n(f),x=f;x--;)_[x]=arguments[x];if(g)var b=ho(o),w=an(_,b);if(i&&(_=Ti(_,i,a,g)),s&&(_=Ii(_,s,c,g)),f-=w,g&&f<h){var M=pn(_,b);return Ji(t,e,Gi,o.placeholder,r,_,M,u,l,h-f)}var S=p?r:this,A=m?S[t]:t;return f=_.length,u?_=ko(_,u):v&&f>1&&_.reverse(),d&&l<f&&(_.length=l),this&&this!==me&&this instanceof o&&(A=y||Ui(A)),A.apply(S,_)}}function Hi(t,e){return function(n,r){return function(t,e,n,r){return xr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Wi(t,e){return function(n,r){var i;if(n===o&&r===o)return e;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ui(n),r=ui(r)),i=t(n,r)}return i}}function Vi(t){return ao((function(e){return e=Be(e,tn(fo())),qr((function(n){var r=this;return t(e,(function(t){return Ee(t,r,n)}))}))}))}function Zi(t,e){var n=(e=e===o?" ":li(e)).length;if(n<2)return n?Jr(e,t):e;var r=Jr(e,ie(t/gn(e)));return ln(e)?wi(vn(r),0,t).join(""):r.slice(0,t)}function Qi(t,e,r,i){var o=1&e,a=Ui(t);return function e(){for(var s=-1,c=arguments.length,u=-1,l=i.length,h=n(l+c),f=this&&this!==me&&this instanceof e?a:t;++u<l;)h[u]=i[u];for(;c--;)h[u++]=arguments[++s];return Ee(f,o?r:this,h)}}function Xi(t){return function(e,n,r){return r&&"number"!=typeof r&&So(e,n,r)&&(n=r=o),e=_s(e),n===o?(n=e,e=0):n=_s(n),Yr(e,n,r=r===o?e<n?1:-1:_s(r),t)}}function Yi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ws(e),n=ws(n)),t(e,n)}}function Ji(t,e,n,r,i,a,s,c,u,f){var d=8&e;e|=d?l:h,4&(e&=~(d?h:l))||(e&=-4);var p=[t,e,i,d?a:o,d?s:o,d?o:a,d?o:s,c,u,f],m=n.apply(o,p);return Co(t)&&Do(m,p),m.placeholder=r,jo(m,t,e)}function qi(t){var e=ft[t];return function(t,n){if(t=ws(t),(n=null==n?0:xe(xs(n),292))&&pe(t)){var r=(Ss(t)+"e").split("e");return+((r=(Ss(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ki=En&&1/mn(new En([,-0]))[1]==p?function(t){return new En(t)}:pc;function $i(t){return function(e){var n=_o(e);return n==C?fn(e):n==P?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return Be(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function to(t,e,n,r,i,s,c,f){var d=2&e;if(!d&&"function"!=typeof t)throw new Tt(a);var p=r?r.length:0;if(p||(e&=-97,r=i=o),c=c===o?c:_e(xs(c),0),f=f===o?f:xs(f),p-=i?i.length:0,e&h){var m=r,g=i;r=i=o}var v=d?o:uo(t),y=[t,e,n,r,i,m,g,s,c,f];if(v&&Po(y,v),t=y[0],e=y[1],n=y[2],r=y[3],i=y[4],!(f=y[9]=y[9]===o?d?0:t.length:_e(y[9]-p,0))&&24&e&&(e&=-25),e&&1!=e)_=8==e||e==u?ji(t,e,f):e!=l&&33!=e||i.length?Gi.apply(o,y):Qi(t,e,n,r);else var _=function(t,e,n){var r=1&e,i=Ui(t);return function e(){var o=this&&this!==me&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return jo((v?ei:Do)(_,y),t,e)}function eo(t,e,n,r){return t===o||Za(t,Pt[n])&&!kt.call(r,n)?e:t}function no(t,e,n,r,i,a){return as(t)&&as(e)&&(a.set(e,t),Gr(t,e,o,no,a),a.delete(e)),t}function ro(t){return ls(t)?o:t}function io(t,e,n,r,i,a){var s=1&n,c=t.length,u=e.length;if(c!=u&&!(s&&u>c))return!1;var l=a.get(t),h=a.get(e);if(l&&h)return l==e&&h==t;var f=-1,d=!0,p=2&n?new Xn:o;for(a.set(t,e),a.set(e,t);++f<c;){var m=t[f],g=e[f];if(r)var v=s?r(g,m,f,e,t,a):r(m,g,f,t,e,a);if(v!==o){if(v)continue;d=!1;break}if(p){if(!je(e,(function(t,e){if(!nn(p,e)&&(m===t||i(m,t,n,r,a)))return p.push(e)}))){d=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function oo(t,e,n,r,i,a){var s=1&n,c=so(t),u=c.length;if(u!=so(e).length&&!s)return!1;for(var l=u;l--;){var h=c[l];if(!(s?h in e:kt.call(e,h)))return!1}var f=a.get(t),d=a.get(e);if(f&&d)return f==e&&d==t;var p=!0;a.set(t,e),a.set(e,t);for(var m=s;++l<u;){var g=t[h=c[l]],v=e[h];if(r)var y=s?r(v,g,h,e,t,a):r(g,v,h,t,e,a);if(!(y===o?g===v||i(g,v,n,r,a):y)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var _=t.constructor,x=e.constructor;_==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(p=!1)}return a.delete(t),a.delete(e),p}function ao(t){return Uo(Ro(t,o,qo),t+"")}function so(t){return Sr(t,Fs,vo)}function co(t){return Sr(t,Us,yo)}var uo=Ln?function(t){return Ln.get(t)}:pc;function lo(t){for(var e=t.name+"",n=Pn[e],r=kt.call(Pn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ho(t){return(kt.call(Nn,"placeholder")?Nn:t).placeholder}function fo(){var t=Nn.iteratee||lc;return t=t===lc?Br:t,arguments.length?t(arguments[0],arguments[1]):t}function po(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function mo(t){for(var e=Fs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Io(i)]}return e}function go(t,e){var n=function(t,e){return null==t?o:t[e]}(t,e);return kr(n)?n:o}var vo=le?function(t){return null==t?[]:(t=At(t),Re(le(t),(function(e){return Qt.call(t,e)})))}:bc,yo=le?function(t){for(var e=[];t;)De(e,vo(t)),t=Vt(t);return e}:bc,_o=Ar;function xo(t,e,n){for(var r=-1,i=(e=xi(e,t)).length,o=!1;++r<i;){var a=Ho(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&os(i)&&Mo(a,i)&&(Ja(t)||Ya(t))}function bo(t){return"function"!=typeof t.constructor||To(t)?{}:zn(Vt(t))}function wo(t){return Ja(t)||Ya(t)||!!(Yt&&t&&t[Yt])}function Mo(t,e){var n=typeof t;return!!(e=null==e?m:e)&&("number"==n||"symbol"!=n&&bt.test(t))&&t>-1&&t%1==0&&t<e}function So(t,e,n){if(!as(n))return!1;var r=typeof e;return!!("number"==r?Ka(n)&&Mo(e,n.length):"string"==r&&e in n)&&Za(n[e],t)}function Ao(t,e){if(Ja(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ps(t))||rt.test(t)||!nt.test(t)||null!=e&&t in At(e)}function Co(t){var e=lo(t),n=Nn[e];if("function"!=typeof n||!(e in Wn.prototype))return!1;if(t===n)return!0;var r=uo(n);return!!r&&t===r[0]}(Sn&&_o(new Sn(new ArrayBuffer(1)))!=D||An&&_o(new An)!=C||Cn&&_o(Cn.resolve())!=I||En&&_o(new En)!=P||Tn&&_o(new Tn)!=k)&&(_o=function(t){var e=Ar(t),n=e==T?t.constructor:o,r=n?Wo(n):"";if(r)switch(r){case Rn:return D;case On:return C;case kn:return I;case Bn:return P;case Dn:return k}return e});var Eo=Rt?rs:wc;function To(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Pt)}function Io(t){return t==t&&!as(t)}function Lo(t,e){return function(n){return null!=n&&n[t]===e&&(e!==o||t in At(n))}}function Po(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,a=r==f&&8==n||r==f&&n==d&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var s=e[3];if(s){var u=t[3];t[3]=u?Ti(u,s,e[4]):s,t[4]=u?pn(t[3],c):e[4]}return(s=e[5])&&(u=t[5],t[5]=u?Ii(u,s,e[6]):s,t[6]=u?pn(t[5],c):e[6]),(s=e[7])&&(t[7]=s),r&f&&(t[8]=null==t[8]?e[8]:xe(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function Ro(t,e,r){return e=_e(e===o?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=_e(i.length-e,0),s=n(a);++o<a;)s[o]=i[e+o];o=-1;for(var c=n(e+1);++o<e;)c[o]=i[o];return c[e]=r(s),Ee(t,this,c)}}function Oo(t,e){return e.length<2?t:Mr(t,ii(e,0,-1))}function ko(t,e){for(var n=t.length,r=xe(e.length,n),i=Li(t);r--;){var a=e[r];t[r]=Mo(a,n)?i[a]:o}return t}function Bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Do=No(ei),Fo=re||function(t,e){return me.setTimeout(t,e)},Uo=No(ni);function jo(t,e,n){var r=e+"";return Uo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ut,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ie(y,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(lt);return e?e[1].split(ht):[]}(r),n)))}function No(t){var e=0,n=0;return function(){var r=Ne(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function zo(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n<e;){var a=Xr(n,i),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Go=function(t){var e=Na(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(it,(function(t,n,r,i){e.push(r?i.replace(pt,"$1"):n||t)})),e}));function Ho(t){if("string"==typeof t||ps(t))return t;var e=t+"";return"0"==e&&1/t==-p?"-0":e}function Wo(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Vo(t){if(t instanceof Wn)return t.clone();var e=new Hn(t.__wrapped__,t.__chain__);return e.__actions__=Li(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Zo=qr((function(t,e){return $a(t)?hr(t,vr(e,1,$a,!0)):[]})),Qo=qr((function(t,e){var n=na(e);return $a(n)&&(n=o),$a(t)?hr(t,vr(e,1,$a,!0),fo(n,2)):[]})),Xo=qr((function(t,e){var n=na(e);return $a(n)&&(n=o),$a(t)?hr(t,vr(e,1,$a,!0),o,n):[]}));function Yo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:xs(n);return i<0&&(i=_e(r+i,0)),He(t,fo(e,3),i)}function Jo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==o&&(i=xs(n),i=n<0?_e(r+i,0):xe(i,r-1)),He(t,fo(e,3),i,!0)}function qo(t){return null!=t&&t.length?vr(t,1):[]}function Ko(t){return t&&t.length?t[0]:o}var $o=qr((function(t){var e=Be(t,yi);return e.length&&e[0]===t[0]?Ir(e):[]})),ta=qr((function(t){var e=na(t),n=Be(t,yi);return e===na(n)?e=o:n.pop(),n.length&&n[0]===t[0]?Ir(n,fo(e,2)):[]})),ea=qr((function(t){var e=na(t),n=Be(t,yi);return(e="function"==typeof e?e:o)&&n.pop(),n.length&&n[0]===t[0]?Ir(n,o,e):[]}));function na(t){var e=null==t?0:t.length;return e?t[e-1]:o}var ra=qr(ia);function ia(t,e){return t&&t.length&&e&&e.length?Zr(t,e):t}var oa=ao((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return Qr(t,Be(e,(function(t){return Mo(t,n)?+t:t})).sort(Ei)),r}));function aa(t){return null==t?t:Mn.call(t)}var sa=qr((function(t){return hi(vr(t,1,$a,!0))})),ca=qr((function(t){var e=na(t);return $a(e)&&(e=o),hi(vr(t,1,$a,!0),fo(e,2))})),ua=qr((function(t){var e=na(t);return e="function"==typeof e?e:o,hi(vr(t,1,$a,!0),o,e)}));function la(t){if(!t||!t.length)return[];var e=0;return t=Re(t,(function(t){if($a(t))return e=_e(t.length,e),!0})),Ke(e,(function(e){return Be(t,Xe(e))}))}function ha(t,e){if(!t||!t.length)return[];var n=la(t);return null==e?n:Be(n,(function(t){return Ee(e,o,t)}))}var fa=qr((function(t,e){return $a(t)?hr(t,e):[]})),da=qr((function(t){return gi(Re(t,$a))})),pa=qr((function(t){var e=na(t);return $a(e)&&(e=o),gi(Re(t,$a),fo(e,2))})),ma=qr((function(t){var e=na(t);return e="function"==typeof e?e:o,gi(Re(t,$a),o,e)})),ga=qr(la),va=qr((function(t){var e=t.length,n=e>1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,ha(t,n)}));function ya(t){var e=Nn(t);return e.__chain__=!0,e}function _a(t,e){return e(t)}var xa=ao((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return ar(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Wn&&Mo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:_a,args:[i],thisArg:o}),new Hn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)})),ba=Ri((function(t,e,n){kt.call(t,n)?++t[n]:or(t,n,1)})),wa=Ni(Yo),Ma=Ni(Jo);function Sa(t,e){return(Ja(t)?Ie:fr)(t,fo(e,3))}function Aa(t,e){return(Ja(t)?Le:dr)(t,fo(e,3))}var Ca=Ri((function(t,e,n){kt.call(t,n)?t[n].push(e):or(t,n,[e])})),Ea=qr((function(t,e,r){var i=-1,o="function"==typeof e,a=Ka(t)?n(t.length):[];return fr(t,(function(t){a[++i]=o?Ee(e,t,r):Lr(t,e,r)})),a})),Ta=Ri((function(t,e,n){or(t,n,e)}));function Ia(t,e){return(Ja(t)?Be:jr)(t,fo(e,3))}var La=Ri((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Pa=qr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&So(t,e[0],e[1])?e=[]:n>2&&So(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,vr(e,1),[])})),Ra=ne||function(){return me.Date.now()};function Oa(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,to(t,f,o,o,o,o,e)}function ka(t,e){var n;if("function"!=typeof e)throw new Tt(a);return t=xs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Ba=qr((function(t,e,n){var r=1;if(n.length){var i=pn(n,ho(Ba));r|=l}return to(t,r,e,n,i)})),Da=qr((function(t,e,n){var r=3;if(n.length){var i=pn(n,ho(Da));r|=l}return to(e,r,t,n,i)}));function Fa(t,e,n){var r,i,s,c,u,l,h=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Tt(a);function m(e){var n=r,a=i;return r=i=o,h=e,c=t.apply(a,n)}function g(t){return h=t,u=Fo(y,e),f?m(t):c}function v(t){var n=t-l;return l===o||n>=e||n<0||d&&t-h>=s}function y(){var t=Ra();if(v(t))return _(t);u=Fo(y,function(t){var n=e-(t-l);return d?xe(n,s-(t-h)):n}(t))}function _(t){return u=o,p&&r?m(t):(r=i=o,c)}function x(){var t=Ra(),n=v(t);if(r=arguments,i=this,l=t,n){if(u===o)return g(l);if(d)return Mi(u),u=Fo(y,e),m(l)}return u===o&&(u=Fo(y,e)),c}return e=ws(e)||0,as(n)&&(f=!!n.leading,s=(d="maxWait"in n)?_e(ws(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),x.cancel=function(){u!==o&&Mi(u),h=0,r=l=i=u=o},x.flush=function(){return u===o?c:_(Ra())},x}var Ua=qr((function(t,e){return lr(t,1,e)})),ja=qr((function(t,e,n){return lr(t,ws(e)||0,n)}));function Na(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Tt(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Na.Cache||Qn),n}function za(t){if("function"!=typeof t)throw new Tt(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Na.Cache=Qn;var Ga=bi((function(t,e){var n=(e=1==e.length&&Ja(e[0])?Be(e[0],tn(fo())):Be(vr(e,1),tn(fo()))).length;return qr((function(r){for(var i=-1,o=xe(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ee(t,this,r)}))})),Ha=qr((function(t,e){var n=pn(e,ho(Ha));return to(t,l,o,e,n)})),Wa=qr((function(t,e){var n=pn(e,ho(Wa));return to(t,h,o,e,n)})),Va=ao((function(t,e){return to(t,d,o,o,o,e)}));function Za(t,e){return t===e||t!=t&&e!=e}var Qa=Yi(Cr),Xa=Yi((function(t,e){return t>=e})),Ya=Pr(function(){return arguments}())?Pr:function(t){return ss(t)&&kt.call(t,"callee")&&!Qt.call(t,"callee")},Ja=n.isArray,qa=be?tn(be):function(t){return ss(t)&&Ar(t)==B};function Ka(t){return null!=t&&os(t.length)&&!rs(t)}function $a(t){return ss(t)&&Ka(t)}var ts=de||wc,es=we?tn(we):function(t){return ss(t)&&Ar(t)==w};function ns(t){if(!ss(t))return!1;var e=Ar(t);return e==M||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ls(t)}function rs(t){if(!as(t))return!1;var e=Ar(t);return e==S||e==A||"[object AsyncFunction]"==e||"[object Proxy]"==e}function is(t){return"number"==typeof t&&t==xs(t)}function os(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=m}function as(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ss(t){return null!=t&&"object"==typeof t}var cs=Me?tn(Me):function(t){return ss(t)&&_o(t)==C};function us(t){return"number"==typeof t||ss(t)&&Ar(t)==E}function ls(t){if(!ss(t)||Ar(t)!=T)return!1;var e=Vt(t);if(null===e)return!0;var n=kt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==Ut}var hs=Se?tn(Se):function(t){return ss(t)&&Ar(t)==L},fs=Ae?tn(Ae):function(t){return ss(t)&&_o(t)==P};function ds(t){return"string"==typeof t||!Ja(t)&&ss(t)&&Ar(t)==R}function ps(t){return"symbol"==typeof t||ss(t)&&Ar(t)==O}var ms=Ce?tn(Ce):function(t){return ss(t)&&os(t.length)&&!!ce[Ar(t)]},gs=Yi(Ur),vs=Yi((function(t,e){return t<=e}));function ys(t){if(!t)return[];if(Ka(t))return ds(t)?vn(t):Li(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=_o(t);return(e==C?fn:e==P?mn:Zs)(t)}function _s(t){return t?(t=ws(t))===p||t===-p?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function xs(t){var e=_s(t),n=e%1;return e==e?n?e-n:e:0}function bs(t){return t?sr(xs(t),0,v):0}function ws(t){if("number"==typeof t)return t;if(ps(t))return g;if(as(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=as(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=$e(t);var n=yt.test(t);return n||xt.test(t)?fe(t.slice(2),n?2:8):vt.test(t)?g:+t}function Ms(t){return Pi(t,Us(t))}function Ss(t){return null==t?"":li(t)}var As=Oi((function(t,e){if(To(e)||Ka(e))Pi(e,Fs(e),t);else for(var n in e)kt.call(e,n)&&er(t,n,e[n])})),Cs=Oi((function(t,e){Pi(e,Us(e),t)})),Es=Oi((function(t,e,n,r){Pi(e,Us(e),t,r)})),Ts=Oi((function(t,e,n,r){Pi(e,Fs(e),t,r)})),Is=ao(ar),Ls=qr((function(t,e){t=At(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&So(e[0],e[1],i)&&(r=1);++n<r;)for(var a=e[n],s=Us(a),c=-1,u=s.length;++c<u;){var l=s[c],h=t[l];(h===o||Za(h,Pt[l])&&!kt.call(t,l))&&(t[l]=a[l])}return t})),Ps=qr((function(t){return t.push(o,no),Ee(Ns,o,t)}));function Rs(t,e,n){var r=null==t?o:Mr(t,e);return r===o?n:r}function Os(t,e){return null!=t&&xo(t,e,Tr)}var ks=Hi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=n}),ac(uc)),Bs=Hi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),kt.call(t,e)?t[e].push(n):t[e]=[n]}),fo),Ds=qr(Lr);function Fs(t){return Ka(t)?Jn(t):Dr(t)}function Us(t){return Ka(t)?Jn(t,!0):Fr(t)}var js=Oi((function(t,e,n){Gr(t,e,n)})),Ns=Oi((function(t,e,n,r){Gr(t,e,n,r)})),zs=ao((function(t,e){var n={};if(null==t)return n;var r=!1;e=Be(e,(function(e){return e=xi(e,t),r||(r=e.length>1),e})),Pi(t,co(t),n),r&&(n=cr(n,7,ro));for(var i=e.length;i--;)fi(n,e[i]);return n})),Gs=ao((function(t,e){return null==t?{}:function(t,e){return Vr(t,e,(function(e,n){return Os(t,n)}))}(t,e)}));function Hs(t,e){if(null==t)return{};var n=Be(co(t),(function(t){return[t]}));return e=fo(e),Vr(t,n,(function(t,n){return e(t,n[0])}))}var Ws=$i(Fs),Vs=$i(Us);function Zs(t){return null==t?[]:en(t,Fs(t))}var Qs=Fi((function(t,e,n){return e=e.toLowerCase(),t+(n?Xs(e):e)}));function Xs(t){return nc(Ss(t).toLowerCase())}function Ys(t){return(t=Ss(t))&&t.replace(wt,sn).replace(ee,"")}var Js=Fi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qs=Fi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ks=Di("toLowerCase"),$s=Fi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),tc=Fi((function(t,e,n){return t+(n?" ":"")+nc(e)})),ec=Fi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),nc=Di("toUpperCase");function rc(t,e,n){return t=Ss(t),(e=n?o:e)===o?hn(t)?xn(t):ze(t):t.match(e)||[]}var ic=qr((function(t,e){try{return Ee(t,o,e)}catch(t){return ns(t)?t:new i(t)}})),oc=ao((function(t,e){return Ie(e,(function(e){e=Ho(e),or(t,e,Ba(t[e],t))})),t}));function ac(t){return function(){return t}}var sc=zi(),cc=zi(!0);function uc(t){return t}function lc(t){return Br("function"==typeof t?t:cr(t,1))}var hc=qr((function(t,e){return function(n){return Lr(n,t,e)}})),fc=qr((function(t,e){return function(n){return Lr(t,n,e)}}));function dc(t,e,n){var r=Fs(e),i=wr(e,r);null!=n||as(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=wr(e,Fs(e)));var o=!(as(n)&&"chain"in n&&!n.chain),a=rs(t);return Ie(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Li(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,De([this.value()],arguments))})})),t}function pc(){}var mc=Vi(Be),gc=Vi(Pe),vc=Vi(je);function yc(t){return Ao(t)?Xe(Ho(t)):function(t){return function(e){return Mr(e,t)}}(t)}var _c=Xi(),xc=Xi(!0);function bc(){return[]}function wc(){return!1}var Mc=Wi((function(t,e){return t+e}),0),Sc=qi("ceil"),Ac=Wi((function(t,e){return t/e}),1),Cc=qi("floor"),Ec=Wi((function(t,e){return t*e}),1),Tc=qi("round"),Ic=Wi((function(t,e){return t-e}),0);return Nn.after=function(t,e){if("function"!=typeof e)throw new Tt(a);return t=xs(t),function(){if(--t<1)return e.apply(this,arguments)}},Nn.ary=Oa,Nn.assign=As,Nn.assignIn=Cs,Nn.assignInWith=Es,Nn.assignWith=Ts,Nn.at=Is,Nn.before=ka,Nn.bind=Ba,Nn.bindAll=oc,Nn.bindKey=Da,Nn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ja(t)?t:[t]},Nn.chain=ya,Nn.chunk=function(t,e,r){e=(r?So(t,e,r):e===o)?1:_e(xs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,s=0,c=n(ie(i/e));a<i;)c[s++]=ii(t,a,a+=e);return c},Nn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Nn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return De(Ja(r)?Li(r):[r],vr(e,1))},Nn.cond=function(t){var e=null==t?0:t.length,n=fo();return t=e?Be(t,(function(t){if("function"!=typeof t[1])throw new Tt(a);return[n(t[0]),t[1]]})):[],qr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ee(i[0],this,n))return Ee(i[1],this,n)}}))},Nn.conforms=function(t){return function(t){var e=Fs(t);return function(n){return ur(n,t,e)}}(cr(t,1))},Nn.constant=ac,Nn.countBy=ba,Nn.create=function(t,e){var n=zn(t);return null==e?n:ir(n,e)},Nn.curry=function t(e,n,r){var i=to(e,8,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},Nn.curryRight=function t(e,n,r){var i=to(e,u,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},Nn.debounce=Fa,Nn.defaults=Ls,Nn.defaultsDeep=Ps,Nn.defer=Ua,Nn.delay=ja,Nn.difference=Zo,Nn.differenceBy=Qo,Nn.differenceWith=Xo,Nn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=n||e===o?1:xs(e))<0?0:e,r):[]},Nn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,0,(e=r-(e=n||e===o?1:xs(e)))<0?0:e):[]},Nn.dropRightWhile=function(t,e){return t&&t.length?pi(t,fo(e,3),!0,!0):[]},Nn.dropWhile=function(t,e){return t&&t.length?pi(t,fo(e,3),!0):[]},Nn.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&So(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=xs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:xs(r))<0&&(r+=i),r=n>r?0:bs(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Nn.filter=function(t,e){return(Ja(t)?Re:gr)(t,fo(e,3))},Nn.flatMap=function(t,e){return vr(Ia(t,e),1)},Nn.flatMapDeep=function(t,e){return vr(Ia(t,e),p)},Nn.flatMapDepth=function(t,e,n){return n=n===o?1:xs(n),vr(Ia(t,e),n)},Nn.flatten=qo,Nn.flattenDeep=function(t){return null!=t&&t.length?vr(t,p):[]},Nn.flattenDepth=function(t,e){return null!=t&&t.length?vr(t,e=e===o?1:xs(e)):[]},Nn.flip=function(t){return to(t,512)},Nn.flow=sc,Nn.flowRight=cc,Nn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Nn.functions=function(t){return null==t?[]:wr(t,Fs(t))},Nn.functionsIn=function(t){return null==t?[]:wr(t,Us(t))},Nn.groupBy=Ca,Nn.initial=function(t){return null!=t&&t.length?ii(t,0,-1):[]},Nn.intersection=$o,Nn.intersectionBy=ta,Nn.intersectionWith=ea,Nn.invert=ks,Nn.invertBy=Bs,Nn.invokeMap=Ea,Nn.iteratee=lc,Nn.keyBy=Ta,Nn.keys=Fs,Nn.keysIn=Us,Nn.map=Ia,Nn.mapKeys=function(t,e){var n={};return e=fo(e,3),xr(t,(function(t,r,i){or(n,e(t,r,i),t)})),n},Nn.mapValues=function(t,e){var n={};return e=fo(e,3),xr(t,(function(t,r,i){or(n,r,e(t,r,i))})),n},Nn.matches=function(t){return Nr(cr(t,1))},Nn.matchesProperty=function(t,e){return zr(t,cr(e,1))},Nn.memoize=Na,Nn.merge=js,Nn.mergeWith=Ns,Nn.method=hc,Nn.methodOf=fc,Nn.mixin=dc,Nn.negate=za,Nn.nthArg=function(t){return t=xs(t),qr((function(e){return Hr(e,t)}))},Nn.omit=zs,Nn.omitBy=function(t,e){return Hs(t,za(fo(e)))},Nn.once=function(t){return ka(2,t)},Nn.orderBy=function(t,e,n,r){return null==t?[]:(Ja(e)||(e=null==e?[]:[e]),Ja(n=r?o:n)||(n=null==n?[]:[n]),Wr(t,e,n))},Nn.over=mc,Nn.overArgs=Ga,Nn.overEvery=gc,Nn.overSome=vc,Nn.partial=Ha,Nn.partialRight=Wa,Nn.partition=La,Nn.pick=Gs,Nn.pickBy=Hs,Nn.property=yc,Nn.propertyOf=function(t){return function(e){return null==t?o:Mr(t,e)}},Nn.pull=ra,Nn.pullAll=ia,Nn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Zr(t,e,fo(n,2)):t},Nn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Zr(t,e,o,n):t},Nn.pullAt=oa,Nn.range=_c,Nn.rangeRight=xc,Nn.rearg=Va,Nn.reject=function(t,e){return(Ja(t)?Re:gr)(t,za(fo(e,3)))},Nn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=fo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Qr(t,i),n},Nn.rest=function(t,e){if("function"!=typeof t)throw new Tt(a);return qr(t,e=e===o?e:xs(e))},Nn.reverse=aa,Nn.sampleSize=function(t,e,n){return e=(n?So(t,e,n):e===o)?1:xs(e),(Ja(t)?Kn:$r)(t,e)},Nn.set=function(t,e,n){return null==t?t:ti(t,e,n)},Nn.setWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:ti(t,e,n,r)},Nn.shuffle=function(t){return(Ja(t)?$n:ri)(t)},Nn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&So(t,e,n)?(e=0,n=r):(e=null==e?0:xs(e),n=n===o?r:xs(n)),ii(t,e,n)):[]},Nn.sortBy=Pa,Nn.sortedUniq=function(t){return t&&t.length?ci(t):[]},Nn.sortedUniqBy=function(t,e){return t&&t.length?ci(t,fo(e,2)):[]},Nn.split=function(t,e,n){return n&&"number"!=typeof n&&So(t,e,n)&&(e=n=o),(n=n===o?v:n>>>0)?(t=Ss(t))&&("string"==typeof e||null!=e&&!hs(e))&&!(e=li(e))&&ln(t)?wi(vn(t),0,n):t.split(e,n):[]},Nn.spread=function(t,e){if("function"!=typeof t)throw new Tt(a);return e=null==e?0:_e(xs(e),0),qr((function(n){var r=n[e],i=wi(n,0,e);return r&&De(i,r),Ee(t,this,i)}))},Nn.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},Nn.take=function(t,e,n){return t&&t.length?ii(t,0,(e=n||e===o?1:xs(e))<0?0:e):[]},Nn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=r-(e=n||e===o?1:xs(e)))<0?0:e,r):[]},Nn.takeRightWhile=function(t,e){return t&&t.length?pi(t,fo(e,3),!1,!0):[]},Nn.takeWhile=function(t,e){return t&&t.length?pi(t,fo(e,3)):[]},Nn.tap=function(t,e){return e(t),t},Nn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Tt(a);return as(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Fa(t,e,{leading:r,maxWait:e,trailing:i})},Nn.thru=_a,Nn.toArray=ys,Nn.toPairs=Ws,Nn.toPairsIn=Vs,Nn.toPath=function(t){return Ja(t)?Be(t,Ho):ps(t)?[t]:Li(Go(Ss(t)))},Nn.toPlainObject=Ms,Nn.transform=function(t,e,n){var r=Ja(t),i=r||ts(t)||ms(t);if(e=fo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:as(t)&&rs(o)?zn(Vt(t)):{}}return(i?Ie:xr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Nn.unary=function(t){return Oa(t,1)},Nn.union=sa,Nn.unionBy=ca,Nn.unionWith=ua,Nn.uniq=function(t){return t&&t.length?hi(t):[]},Nn.uniqBy=function(t,e){return t&&t.length?hi(t,fo(e,2)):[]},Nn.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?hi(t,o,e):[]},Nn.unset=function(t,e){return null==t||fi(t,e)},Nn.unzip=la,Nn.unzipWith=ha,Nn.update=function(t,e,n){return null==t?t:di(t,e,_i(n))},Nn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:di(t,e,_i(n),r)},Nn.values=Zs,Nn.valuesIn=function(t){return null==t?[]:en(t,Us(t))},Nn.without=fa,Nn.words=rc,Nn.wrap=function(t,e){return Ha(_i(e),t)},Nn.xor=da,Nn.xorBy=pa,Nn.xorWith=ma,Nn.zip=ga,Nn.zipObject=function(t,e){return vi(t||[],e||[],er)},Nn.zipObjectDeep=function(t,e){return vi(t||[],e||[],ti)},Nn.zipWith=va,Nn.entries=Ws,Nn.entriesIn=Vs,Nn.extend=Cs,Nn.extendWith=Es,dc(Nn,Nn),Nn.add=Mc,Nn.attempt=ic,Nn.camelCase=Qs,Nn.capitalize=Xs,Nn.ceil=Sc,Nn.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=ws(n))==n?n:0),e!==o&&(e=(e=ws(e))==e?e:0),sr(ws(t),e,n)},Nn.clone=function(t){return cr(t,4)},Nn.cloneDeep=function(t){return cr(t,5)},Nn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:o)},Nn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:o)},Nn.conformsTo=function(t,e){return null==e||ur(t,e,Fs(e))},Nn.deburr=Ys,Nn.defaultTo=function(t,e){return null==t||t!=t?e:t},Nn.divide=Ac,Nn.endsWith=function(t,e,n){t=Ss(t),e=li(e);var r=t.length,i=n=n===o?r:sr(xs(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Nn.eq=Za,Nn.escape=function(t){return(t=Ss(t))&&K.test(t)?t.replace(J,cn):t},Nn.escapeRegExp=function(t){return(t=Ss(t))&&at.test(t)?t.replace(ot,"\\$&"):t},Nn.every=function(t,e,n){var r=Ja(t)?Pe:pr;return n&&So(t,e,n)&&(e=o),r(t,fo(e,3))},Nn.find=wa,Nn.findIndex=Yo,Nn.findKey=function(t,e){return Ge(t,fo(e,3),xr)},Nn.findLast=Ma,Nn.findLastIndex=Jo,Nn.findLastKey=function(t,e){return Ge(t,fo(e,3),br)},Nn.floor=Cc,Nn.forEach=Sa,Nn.forEachRight=Aa,Nn.forIn=function(t,e){return null==t?t:yr(t,fo(e,3),Us)},Nn.forInRight=function(t,e){return null==t?t:_r(t,fo(e,3),Us)},Nn.forOwn=function(t,e){return t&&xr(t,fo(e,3))},Nn.forOwnRight=function(t,e){return t&&br(t,fo(e,3))},Nn.get=Rs,Nn.gt=Qa,Nn.gte=Xa,Nn.has=function(t,e){return null!=t&&xo(t,e,Er)},Nn.hasIn=Os,Nn.head=Ko,Nn.identity=uc,Nn.includes=function(t,e,n,r){t=Ka(t)?t:Zs(t),n=n&&!r?xs(n):0;var i=t.length;return n<0&&(n=_e(i+n,0)),ds(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&We(t,e,n)>-1},Nn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:xs(n);return i<0&&(i=_e(r+i,0)),We(t,e,i)},Nn.inRange=function(t,e,n){return e=_s(e),n===o?(n=e,e=0):n=_s(n),function(t,e,n){return t>=xe(e,n)&&t<_e(e,n)}(t=ws(t),e,n)},Nn.invoke=Ds,Nn.isArguments=Ya,Nn.isArray=Ja,Nn.isArrayBuffer=qa,Nn.isArrayLike=Ka,Nn.isArrayLikeObject=$a,Nn.isBoolean=function(t){return!0===t||!1===t||ss(t)&&Ar(t)==b},Nn.isBuffer=ts,Nn.isDate=es,Nn.isElement=function(t){return ss(t)&&1===t.nodeType&&!ls(t)},Nn.isEmpty=function(t){if(null==t)return!0;if(Ka(t)&&(Ja(t)||"string"==typeof t||"function"==typeof t.splice||ts(t)||ms(t)||Ya(t)))return!t.length;var e=_o(t);if(e==C||e==P)return!t.size;if(To(t))return!Dr(t).length;for(var n in t)if(kt.call(t,n))return!1;return!0},Nn.isEqual=function(t,e){return Rr(t,e)},Nn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:o)?n(t,e):o;return r===o?Rr(t,e,o,n):!!r},Nn.isError=ns,Nn.isFinite=function(t){return"number"==typeof t&&pe(t)},Nn.isFunction=rs,Nn.isInteger=is,Nn.isLength=os,Nn.isMap=cs,Nn.isMatch=function(t,e){return t===e||Or(t,e,mo(e))},Nn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:o,Or(t,e,mo(e),n)},Nn.isNaN=function(t){return us(t)&&t!=+t},Nn.isNative=function(t){if(Eo(t))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(t)},Nn.isNil=function(t){return null==t},Nn.isNull=function(t){return null===t},Nn.isNumber=us,Nn.isObject=as,Nn.isObjectLike=ss,Nn.isPlainObject=ls,Nn.isRegExp=hs,Nn.isSafeInteger=function(t){return is(t)&&t>=-m&&t<=m},Nn.isSet=fs,Nn.isString=ds,Nn.isSymbol=ps,Nn.isTypedArray=ms,Nn.isUndefined=function(t){return t===o},Nn.isWeakMap=function(t){return ss(t)&&_o(t)==k},Nn.isWeakSet=function(t){return ss(t)&&"[object WeakSet]"==Ar(t)},Nn.join=function(t,e){return null==t?"":ge.call(t,e)},Nn.kebabCase=Js,Nn.last=na,Nn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=xs(n))<0?_e(r+i,0):xe(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):He(t,Ze,i,!0)},Nn.lowerCase=qs,Nn.lowerFirst=Ks,Nn.lt=gs,Nn.lte=vs,Nn.max=function(t){return t&&t.length?mr(t,uc,Cr):o},Nn.maxBy=function(t,e){return t&&t.length?mr(t,fo(e,2),Cr):o},Nn.mean=function(t){return Qe(t,uc)},Nn.meanBy=function(t,e){return Qe(t,fo(e,2))},Nn.min=function(t){return t&&t.length?mr(t,uc,Ur):o},Nn.minBy=function(t,e){return t&&t.length?mr(t,fo(e,2),Ur):o},Nn.stubArray=bc,Nn.stubFalse=wc,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=Ec,Nn.nth=function(t,e){return t&&t.length?Hr(t,xs(e)):o},Nn.noConflict=function(){return me._===this&&(me._=jt),this},Nn.noop=pc,Nn.now=Ra,Nn.pad=function(t,e,n){t=Ss(t);var r=(e=xs(e))?gn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Zi(oe(i),n)+t+Zi(ie(i),n)},Nn.padEnd=function(t,e,n){t=Ss(t);var r=(e=xs(e))?gn(t):0;return e&&r<e?t+Zi(e-r,n):t},Nn.padStart=function(t,e,n){t=Ss(t);var r=(e=xs(e))?gn(t):0;return e&&r<e?Zi(e-r,n)+t:t},Nn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Ye(Ss(t).replace(st,""),e||0)},Nn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&So(t,e,n)&&(e=n=o),n===o&&("boolean"==typeof e?(n=e,e=o):"boolean"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=_s(t),e===o?(e=t,t=0):e=_s(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=wn();return xe(t+i*(e-t+he("1e-"+((i+"").length-1))),e)}return Xr(t,e)},Nn.reduce=function(t,e,n){var r=Ja(t)?Fe:Je,i=arguments.length<3;return r(t,fo(e,4),n,i,fr)},Nn.reduceRight=function(t,e,n){var r=Ja(t)?Ue:Je,i=arguments.length<3;return r(t,fo(e,4),n,i,dr)},Nn.repeat=function(t,e,n){return e=(n?So(t,e,n):e===o)?1:xs(e),Jr(Ss(t),e)},Nn.replace=function(){var t=arguments,e=Ss(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Nn.result=function(t,e,n){var r=-1,i=(e=xi(e,t)).length;for(i||(i=1,t=o);++r<i;){var a=null==t?o:t[Ho(e[r])];a===o&&(r=i,a=n),t=rs(a)?a.call(t):a}return t},Nn.round=Tc,Nn.runInContext=t,Nn.sample=function(t){return(Ja(t)?qn:Kr)(t)},Nn.size=function(t){if(null==t)return 0;if(Ka(t))return ds(t)?gn(t):t.length;var e=_o(t);return e==C||e==P?t.size:Dr(t).length},Nn.snakeCase=$s,Nn.some=function(t,e,n){var r=Ja(t)?je:oi;return n&&So(t,e,n)&&(e=o),r(t,fo(e,3))},Nn.sortedIndex=function(t,e){return ai(t,e)},Nn.sortedIndexBy=function(t,e,n){return si(t,e,fo(n,2))},Nn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&Za(t[r],e))return r}return-1},Nn.sortedLastIndex=function(t,e){return ai(t,e,!0)},Nn.sortedLastIndexBy=function(t,e,n){return si(t,e,fo(n,2),!0)},Nn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ai(t,e,!0)-1;if(Za(t[n],e))return n}return-1},Nn.startCase=tc,Nn.startsWith=function(t,e,n){return t=Ss(t),n=null==n?0:sr(xs(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},Nn.subtract=Ic,Nn.sum=function(t){return t&&t.length?qe(t,uc):0},Nn.sumBy=function(t,e){return t&&t.length?qe(t,fo(e,2)):0},Nn.template=function(t,e,n){var r=Nn.templateSettings;n&&So(t,e,n)&&(e=o),t=Ss(t),e=Es({},e,r,eo);var a,s,c=Es({},e.imports,r.imports,eo),u=Fs(c),l=en(c,u),h=0,f=e.interpolate||Mt,d="__p += '",p=Ct((e.escape||Mt).source+"|"+f.source+"|"+(f===et?mt:Mt).source+"|"+(e.evaluate||Mt).source+"|$","g"),m="//# sourceURL="+(kt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++se+"]")+"\n";t.replace(p,(function(e,n,r,i,o,c){return r||(r=i),d+=t.slice(h,c).replace(St,un),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),o&&(s=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=c+e.length,e})),d+="';\n";var g=kt.call(e,"variable")&&e.variable;if(g){if(dt.test(g))throw new i("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(Z,""):d).replace(Q,"$1").replace(X,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=ic((function(){return ct(u,m+"return "+d).apply(o,l)}));if(v.source=d,ns(v))throw v;return v},Nn.times=function(t,e){if((t=xs(t))<1||t>m)return[];var n=v,r=xe(t,v);e=fo(e),t-=v;for(var i=Ke(r,e);++n<t;)e(n);return i},Nn.toFinite=_s,Nn.toInteger=xs,Nn.toLength=bs,Nn.toLower=function(t){return Ss(t).toLowerCase()},Nn.toNumber=ws,Nn.toSafeInteger=function(t){return t?sr(xs(t),-m,m):0===t?t:0},Nn.toString=Ss,Nn.toUpper=function(t){return Ss(t).toUpperCase()},Nn.trim=function(t,e,n){if((t=Ss(t))&&(n||e===o))return $e(t);if(!t||!(e=li(e)))return t;var r=vn(t),i=vn(e);return wi(r,rn(r,i),on(r,i)+1).join("")},Nn.trimEnd=function(t,e,n){if((t=Ss(t))&&(n||e===o))return t.slice(0,yn(t)+1);if(!t||!(e=li(e)))return t;var r=vn(t);return wi(r,0,on(r,vn(e))+1).join("")},Nn.trimStart=function(t,e,n){if((t=Ss(t))&&(n||e===o))return t.replace(st,"");if(!t||!(e=li(e)))return t;var r=vn(t);return wi(r,rn(r,vn(e))).join("")},Nn.truncate=function(t,e){var n=30,r="...";if(as(e)){var i="separator"in e?e.separator:i;n="length"in e?xs(e.length):n,r="omission"in e?li(e.omission):r}var a=(t=Ss(t)).length;if(ln(t)){var s=vn(t);a=s.length}if(n>=a)return t;var c=n-gn(r);if(c<1)return r;var u=s?wi(s,0,c).join(""):t.slice(0,c);if(i===o)return u+r;if(s&&(c+=u.length-c),hs(i)){if(t.slice(c).search(i)){var l,h=u;for(i.global||(i=Ct(i.source,Ss(gt.exec(i))+"g")),i.lastIndex=0;l=i.exec(h);)var f=l.index;u=u.slice(0,f===o?c:f)}}else if(t.indexOf(li(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Nn.unescape=function(t){return(t=Ss(t))&&q.test(t)?t.replace(Y,_n):t},Nn.uniqueId=function(t){var e=++Bt;return Ss(t)+e},Nn.upperCase=ec,Nn.upperFirst=nc,Nn.each=Sa,Nn.eachRight=Aa,Nn.first=Ko,dc(Nn,function(){var t={};return xr(Nn,(function(e,n){kt.call(Nn.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),Nn.VERSION="4.17.21",Ie(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Nn[t].placeholder=Nn})),Ie(["drop","take"],(function(t,e){Wn.prototype[t]=function(n){n=n===o?1:_e(xs(n),0);var r=this.__filtered__&&!e?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=xe(n,r.__takeCount__):r.__views__.push({size:xe(n,v),type:t+(r.__dir__<0?"Right":"")}),r},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ie(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:fo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),Ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(uc)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=qr((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return Lr(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(za(fo(t)))},Wn.prototype.slice=function(t,e){t=xs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Wn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=xs(e))<0?n.dropRight(-e):n.take(e-t)),n)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(v)},xr(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Nn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(Nn.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,c=e instanceof Wn,u=s[0],l=c||Ja(e),h=function(t){var e=i.apply(Nn,De([t],s));return r&&f?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=a&&!f,m=c&&!d;if(!a&&l){e=m?e:new Wn(this);var g=t.apply(e,s);return g.__actions__.push({func:_a,args:[h],thisArg:o}),new Hn(g,f)}return p&&m?t.apply(this,s):(g=this.thru(h),p?r?g.value()[0]:g.value():g)})})),Ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=It[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Nn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ja(i)?i:[],t)}return this[n]((function(n){return e.apply(Ja(n)?n:[],t)}))}})),xr(Wn.prototype,(function(t,e){var n=Nn[e];if(n){var r=n.name+"";kt.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:e,func:n})}})),Pn[Gi(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var t=new Wn(this.__wrapped__);return t.__actions__=Li(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Li(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Li(this.__views__),t},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ja(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=xe(e,t+a);break;case"takeRight":t=_e(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,h=l.length,f=0,d=xe(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return mi(t,this.__actions__);var p=[];t:for(;c--&&f<d;){for(var m=-1,g=t[u+=e];++m<h;){var v=l[m],y=v.iteratee,_=v.type,x=y(g);if(2==_)g=x;else if(!x){if(1==_)continue t;break t}}p[f++]=g}return p},Nn.prototype.at=xa,Nn.prototype.chain=function(){return ya(this)},Nn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Nn.prototype.next=function(){this.__values__===o&&(this.__values__=ys(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},Nn.prototype.plant=function(t){for(var e,n=this;n instanceof Gn;){var r=Vo(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Nn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:_a,args:[aa],thisArg:o}),new Hn(e,this.__chain__)}return this.thru(aa)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Jt&&(Nn.prototype[Jt]=function(){return this}),Nn}();me._=bn,(i=function(){return bn}.call(e,n,e,r))===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},3053:function(t,e,n){(function(e){var n=Object.assign?Object.assign:function(t,e,n,r){for(var i=1;i<arguments.length;i++)s(Object(arguments[i]),(function(e,n){t[n]=e}));return t},r=function(){if(Object.create)return function(t,e,r,i){var o=a(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,r,i,o){var s=a(arguments,1);return t.prototype=e,n.apply(this,[new t].concat(s))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function a(t,e){return Array.prototype.slice.call(t,e||0)}function s(t,e){c(t,(function(t,n){return e(t,n),!1}))}function c(t,e){if(u(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function u(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:r,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:a,each:s,map:function(t,e){var n=u(t)?[]:{};return c(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:c,isList:u,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n("c8ba"))},3280:function(t,e,n){"use strict";var r=n("ebb5"),i=n("2ba4"),o=n("e58c"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(o,a(this),e>1?[t,arguments[1]]:[t])}))},3410:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177");r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("dc4a"),o=n("3f8c"),a=n("b622")("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},"35ff":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAUCAYAAABvVQZ0AAAAAXNSR0IArs4c6QAAAUVJREFUOBGdkjFuAjEQRUmBqJC4AvWWSCm24xp0EX3Sp9uLIOUQaejSUXEMGhSJGyzvOx7Ha3mMxEgf2+M/j/HAbNaIcRxXaECnuK4a9vpVBrmxz0NnwR9DZYrmHHIkt0NaLXwoDg/S573j65EP5fIDlZ1MIDlQewf6rosrsvhm83gef0C9Rn6Lq2Ab5LdetIXXG8kmWTE159GA/I8EU4dejepAv8i7c1U96vTMC1L8oG0DKo/GkTqRH6lOcRFsj351ilGDDtx5EJWpfh8aYbNEnzHJEmIClZHsFilvIYjqlgZacJhHswd9w+NCVI8W+rYz0nAHFP5jrDUo6fCc1In8SHWqPwt2QBYeVF15EKs92FN7MkfLsk6gwcQH+bwTs6su/TjmldmDrrmz57QhiRY3FagBtNY7KSHluYA+B6lAX8pc7XwHMYFxBb/kUuEAAAAASUVORK5CYII="},3729:function(t,e,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("fc6a"),s=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),c=s(e),u=c.length,l=0;u>l;)i.f(t,n=c[l++],r[n]);return t}},3835:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");var r=n("06c5");function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||Object(r.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"3a7b":function(t,e,n){"use strict";var r=n("ebb5"),i=n("b727").findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("da84"),i=n("1626"),o=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},"3c3f":function(t,e){t.exports={name:"memoryStorage",read:function(t){return n[t]},write:function(t,e){n[t]=e},each:function(t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)},remove:function(t){delete n[t]},clearAll:function(t){n={}}};var n={}},"3c5d":function(t,e,n){"use strict";var r=n("da84"),i=n("ebb5"),o=n("07fa"),a=n("182d"),s=n("7b0b"),c=n("d039"),u=r.RangeError,l=i.aTypedArray;(0,i.exportTypedArrayMethod)("set",(function(t){l(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=s(t),i=o(r),c=0;if(i+e>n)throw u("Wrong length");for(;c<i;)this[e+c]=r[c++]}),c((function(){new Int8Array(1).set({})})))},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("7dd0"),s="String Iterator",c=o.set,u=o.getterFor(s);a(String,"String",(function(t){c(this,{type:s,string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3d0e":function(t,e,n){var r=n("a0c5");r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("6cd29bbe",r,!0,{sourceMap:!1,shadowMode:!1})},"3d4f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0NTE4ZWRhOC03NjQ5LTNjNGUtYjYxZi0xNjVhZmQzNmJmMzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MUJCN0UxQjY3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MUJCN0UxQjU3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDUxOGVkYTgtNzY0OS0zYzRlLWI2MWYtMTY1YWZkMzZiZjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ1MThlZGE4LTc2NDktM2M0ZS1iNjFmLTE2NWFmZDM2YmYzNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pvm07Z8AAADSSURBVHjaYvj//z8DPswIBI6Ojiz41LAwEAAzpk1bw83Lyw5k+uBUhM+GyRMnzv3+/ft/EJ4+dWodLnU4Dejr6en+9OnTfxh48eLF/6amJneiDelsb6969+7df3Rw+fLln+np6XIEDWloaMgA2YoL7N6163lYWBgnTkPqa2oiHz169J8QWLx48RFQrGEYUlpa6n379u1//4kAP378+D9xwoR+FEPy8vJsr1y58uc/CeDly5f/66qrw8CGZGZmSp85ffrVfzLA5UuXvuakpMgDBBgAQbLv2dsvRWYAAAAASUVORK5CYII="},"3ee2":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".rk-map{position:relative;overflow:hidden}.rk-map,.rk-map-spin{width:100%;height:100%}.rk-map-spin{position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.rk-map-core{width:100%;height:100%}.maptalks-wrapper{transition:all .5s}",""]),t.exports=e},"3f13":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("5a89"),o=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n={}),t.call(this,e,n)||this}return r(e,t),e.prototype.raycast=function(){this.mesh.raycast.apply(this.mesh,arguments)},e.prototype.updateText=function(){this.cleanUp(),this.canvas.drawText(this._text,{font:this._font,fillStyle:this._fillStyle,shadowBlur:this._shadowBlur,shadowColor:this._shadowColor,shadowOffsetX:this._shadowOffsetX,shadowOffsetY:this._shadowOffsetY,lineHeight:this._lineHeight,align:this.align,backgroundColor:this._backgroundColor,horizontalPadding:this._horizontalPadding,verticalPadding:this._verticalPadding}),this.texture=new i.Texture(this.canvas.canvas),this.texture.needsUpdate=!0,this.applyAntiAlias(),this.material?this.material.map=this.texture:(this.material=new i.MeshBasicMaterial({map:this.texture,side:this.side}),this.material.transparent=!0),this.mesh||(this.geometry=new i.PlaneGeometry(this.canvas.width,this.canvas.height),this.mesh=new i.Mesh(this.geometry,this.material),this.add(this.mesh)),this.mesh.position.x=this.canvas.width/2-this.canvas.textWidth/2+this.canvas.textWidth/2*this.align.x,this.mesh.position.y=-this.canvas.height/2+this.canvas.textHeight/2*this.align.y,this.geometry.vertices[0].x=this.geometry.vertices[2].x=-this.canvas.width/2,this.geometry.vertices[1].x=this.geometry.vertices[3].x=this.canvas.width/2,this.geometry.vertices[0].y=this.geometry.vertices[1].y=this.canvas.height/2,this.geometry.vertices[2].y=this.geometry.vertices[3].y=-this.canvas.height/2,this.geometry.verticesNeedUpdate=!0},e}(n("6ab7").Text2D);e.MeshText2D=o},"3f8c":function(t,e){t.exports={}},"3fcc":function(t,e,n){"use strict";var r=n("ebb5"),i=n("b727").map,o=n("b6b7"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},4069:function(t,e,n){n("44d2")("flat")},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},4442:function(t,e,n){var r=n("3053").Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(!s){var n=u(t);a((function(t){t.setAttribute(n,e),t.save(i)}))}},read:function(t){if(!s){var e=u(t),n=null;return a((function(t){n=t.getAttribute(e)})),n}},each:function(t){a((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))},remove:function(t){var e=u(t);a((function(t){t.removeAttribute(e),t.save(i)}))},clearAll:function(){a((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(i);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(i)}))}};var i="storejs",o=r.document,a=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var t,e,n;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=o.createElement("div"),t=o.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load(i),e.apply(this,r),t.removeChild(n)}}(),s=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(t){return t.replace(/^\d/,"___$&").replace(c,"___")}},"44ad":function(t,e,n){var r=n("da84"),i=n("e330"),o=n("d039"),a=n("c6b6"),s=r.Object,c=i("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?c(t,""):s(t)}:s},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},"45eb":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n("d3b7"),n("f8c9"),n("5d41"),n("e439");var r=n("7e84");function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(r.a)(t)););return t}function o(){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=i(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}},"466d":function(t,e,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("50c4"),s=n("577e"),c=n("1d80"),u=n("dc4a"),l=n("8aa5"),h=n("14c3");i("match",(function(t,e,n){return[function(e){var n=c(this),i=null==e?void 0:u(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=o(this),i=s(t),c=n(e,r,i);if(c.done)return c.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;for(var f,d=[],p=0;null!==(f=h(r,i));){var m=s(f[0]);d[p]=m,""===m&&(r.lastIndex=l(i,a(r.lastIndex),u)),p++}return 0===p?null:d}]}))},4703:function(t,e,n){"use strict";function r(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function i(t){return"Feature"===t.type?t.geometry:t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n("d30b")},"47c9":function(module,__webpack_exports__,__webpack_require__){"use strict";var C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("1da1"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("d4ec"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("bee2"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("45eb"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("7e84"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("262e"),C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("2caf"),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("96cf"),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("4de4"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("caad"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("2532"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("ddb0"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_array_flat_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("0481"),core_js_modules_es_array_flat_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_array_flat_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_array_unscopables_flat_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("4069"),core_js_modules_es_array_unscopables_flat_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_array_unscopables_flat_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("5319"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("5b81"),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("fb6a"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_23__),_gisCommon__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("bb7e"),_Points__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("0514"),_baseMark_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("f62a"),_pollutionFactors__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("a6a2"),three__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("5a89"),maptalks__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("ec60"),simpleMark=function(_baseMark){Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__.a)(simpleMark,_baseMark);var _super=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__.a)(simpleMark),t;function simpleMark(t,e,n){var r;return Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__.a)(this,simpleMark),(r=_super.call(this,t,e,n)).InforItems=[],r.curZoom=9,r.clusterMinZoom=9,r.name=e.labelLayerName,r.zoomPara=.05,r.canvasSize=e.canvasSize||40,r._bound=e.bound,r.pLen=t.length-1,r.updateIndex=0,r}return Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__.a)(simpleMark,[{key:"_initChildVar",value:function(t,e){!0===t.addValueLabel&&(this.bzlayerNum=new maptalks__WEBPACK_IMPORTED_MODULE_29__.VectorLayer(maptalks__WEBPACK_IMPORTED_MODULE_29__.Util.GUID(),{minZoom:t.valueMinZoom||11,geometryEvents:!1,hitDetect:!1,visible:!1,zIndex:1001}).addTo(e.map),this.bz_all_nums=[],this.valueFaceName=t.valueFaceName||"microsoft yahei",this.valueFontSize=t.valueFontSize||12,this.valueDy=t.valueDy||0,this.valueDx=t.valueDx||0),this.interactive=void 0===t.interactive||t.interactive,this.beginSizeZoom=t.beginSizeZoom||3,this.endSizeZoom=t.endSizeZoom||12,this.spanSizeZoom=this.endSizeZoom-this.beginSizeZoom,this.stepSize=1/(this.endSizeZoom-this.beginSizeZoom+1),this.paraName=t.paraName||"pm25",this.typeImgNum=-1}},{key:"_bindDataItem",value:function(t,e,n){var r=parseFloat(e.value)||0,i=parseFloat(e.opavalue)?parseFloat(e.opavalue):1,o=0;e.imgSrc&&(o=e.imgSrc.length);var a=.9,s="#fff";e.imgColor&&e.imgColor.length>=1&&(a=1.9,s=e.imgColor[0]);var c=.9,u="#fff";e.imgColor&&e.imgColor.length>=2&&(c=1.9,u=e.imgColor[1]);var l=(parseFloat(e.windDirection)||0)+.01,h=parseFloat(l*(Math.PI/180));if(t.push({coordinate:[parseFloat(e.longitude),parseFloat(e.latitude)],height:0,color:s,colorflag:a,fcolorflag:c,fcolor1:u,imgnum:o,value:e.name,imgflag:n,rotation:h,visibility:1==e.visibility?1:.1,code:e.code,opavalue:i,pvalue:e.value||0,data:e.data}),this.bzlayerNum){var f=e.valueFontColr||Object(_pollutionFactors__WEBPACK_IMPORTED_MODULE_27__.a)(r,this.paraName),d=new maptalks__WEBPACK_IMPORTED_MODULE_29__.Marker([parseFloat(e.longitude),parseFloat(e.latitude)],{properties:{name:r,type:e.businessType,pvalue:r},symbol:{textFaceName:this.valueFaceName,textName:"{name}",textSize:this.valueFontSize,textFill:f,textDx:this.valueDx,textDy:this.valueDy}});1==e.visibility&&this.bzlayerNum.addGeometry(d),this.bz_all_nums.push(d)}}},{key:"_getRate",value:function(){var t=this.map.getZoom()-this.beginSizeZoom;return(t=t>this.spanSizeZoom?this.spanSizeZoom:t)*this.stepSize+this.stepSize}},{key:"_getImgType",value:function(t,e,n){return void 0===this.typeValues[t]&&(0===Object.keys(this.typeValues).length?this.initTypeValue=.9:this.initTypeValue+=this.typeImgNum,this.typeImgNum=e.length,this.typeValues[t]={v:this.initTypeValue,img:e,inImgWidth:parseInt(n.inImgWidth)||16}),this.typeValues[t].v}},{key:"_pointShowHide",value:function(t,e,n,r,i){var o=this;this.layerLabel&&this.layerLabel.clear();var a=function(a){var s=t.filter((function(t){return t===a}));o._itemHide(s,e,n,r,i,o.typeValues[a].v)};for(var s in this.typeValues)a(s)}},{key:"pointFindByCode",value:function(t,e,n){var r=this.dataItems.filter((function(e){return e.code===t}));r.length>0&&(e&&this.map.fitExtent(new maptalks__WEBPACK_IMPORTED_MODULE_29__.Extent(r[0].coordinate[0]-this.zoomPara,r[0].coordinate[1]-this.zoomPara,r[0].coordinate[0]+this.zoomPara,r[0].coordinate[1]+this.zoomPara),0),n&&this.iconFile&&this._addIcon(r[0]))}},{key:"pointAddInfos",value:function(t,e,n,r){if(void 0!==e){this.clearIcon();for(var i=[],o=0;o<this.dataItems.length;o++){var a=this.dataItems[o];t.includes(a.code)&&i.push(o)}this.addInfoNew(i,e,n,r)}}},{key:"_loadTexture",value:(t=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.a)(regeneratorRuntime.mark((function t(){var e,n,r,i,o,a,s,c,u,l,h,f,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],t.t0=regeneratorRuntime.keys(this.typeValues);case 2:if((t.t1=t.t0()).done){t.next=32;break}if(n=t.t1.value,!this.typeValues[n].img||!Array.isArray(this.typeValues[n].img)){t.next=30;break}r=0;case 6:if(!(r<this.typeValues[n].img.length)){t.next=30;break}if(i=this.typeValues[n].img[r],o=i,!i.includes(".svg")){t.next=16;break}return t.next=12,fetch(i);case 12:return a=t.sent,t.next=15,a.text();case 15:o=t.sent;case 16:return s=new DOMParser,c=s.parseFromString(o,"image/svg+xml"),u=1*(c.documentElement.getAttribute("width")||1),l=1*(c.documentElement.getAttribute("height")||1),h=l/u,f=parseInt(this.canvasSize/h),d=parseInt(f*h),t.next=25,_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.addImageProcess(o);case 25:p=t.sent,0===r?e.push({type:"img",src:p,w:this.canvasSize,h:this.canvasSize,iw:f,ih:d}):(f=parseInt(this.typeValues[n].inImgWidth/h),d=parseInt(f*h),e.push({type:"img1",src:p,w:this.canvasSize,h:this.canvasSize,iw:f,ih:d}));case 27:r++,t.next=6;break;case 30:t.next=2;break;case 32:return t.abrupt("return",_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.generateTexture(e));case 33:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"addPoint",value:function(){var t=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.a)(regeneratorRuntime.mark((function t(){var e,n,r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.dataItems){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this._loadTexture();case 4:return e=t.sent,this.textures||(this.textures=[]),this.textures.push(e.texture),n=this._getRate(),this.m.onBeforeCompile=function(t){r=o._createShaderPol(t,e.texture,e.xys,e.textureSize,o.markSize*n),o.shader=r},i=new _Points__WEBPACK_IMPORTED_MODULE_25__.a(this.dataItems,{minZoom:this.minZoom,bound:this._bound,interactive:this.interactive},this.m,this._getMarkSize,this.threeLayer),this.isToolTip&&i.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),i.object3d.renderOrder=this.order,this.point=i,this.point.parent=this,this.threeLayer.addMesh(this.point),this._bindMapEvents(),t.abrupt("return",i);case 17:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"addInfoNew",value:function(){var t=Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.a)(regeneratorRuntime.mark((function t(e,n,r,i){var o,a,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.length!==this.InforItems.length){t.next=2;break}return t.abrupt("return");case 2:o=0;case 3:if(!(o<this.dataItems.length)){t.next=16;break}if(!e.includes(o)){t.next=13;break}return a=this.dataItems[o],s={single:!1,custom:!0,dx:r||0,dy:i||-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,content:""},c=new maptalks__WEBPACK_IMPORTED_MODULE_29__.ui.InfoWindow(s),this.InforItems.push(c),c.addTo(this.map),t.next=12,n(c,a);case 12:c.show({x:a.coordinate[0],y:a.coordinate[1]});case 13:o++,t.next=3;break;case 16:case"end":return t.stop()}}),t,this)})));return function(e,n,r,i){return t.apply(this,arguments)}}()},{key:"addInfo",value:function(t){if(t.length!==this.InforItems.length)for(var e=0;e<this.dataItems.length;e++)if(t.includes(e)){var n=this.dataItems[e],r=n.data.infoWindowData;if(n.data.law_num&&n.data.punish_num&&(r=[{key:"案件数",value:n.data.law_num},{key:"处罚金额",value:"".concat(n.data.punish_num,"万元")}]),!r||!r.length)continue;var i={single:!1,custom:!0,dy:-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,content:'<div style="background: rgba(0,0,0,0.42); border-radius: 6px; font-size: 12px; color: #ffffff; padding: 6px;display: flex;\n flex-direction: column;\n align-items: center; width: 128px">\n <span>'.concat(r[0].key,":").concat(r[0].value,"</span>\n <span>").concat(r[1].key,":").concat(r[1].value,"</span>\n </div>")},o=new maptalks__WEBPACK_IMPORTED_MODULE_29__.ui.InfoWindow(i);this.InforItems.push(o),o.addTo(this.map).show({x:n.coordinate[0],y:n.coordinate[1]})}}},{key:"hideInfoWindows",value:function(){this.InforItems.length>0&&(this.InforItems.forEach((function(t){t.remove()})),this.InforItems=[])}},{key:"pointShowStatisticsByeCodeMultiple",value:function(t,e,n,r,i){var o=this;this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this.hideInfoWindows(),this._deleteFunsKey();for(var a=[],s=[],c=0;c<e.length;c++)a.push({code:c,geo:e[c],geojson:e[c].toGeoJSON(),ptnum:0,val:t,sum:0,ptids:[]});a.forEach((function(e){for(var r=0;r<o.dataItems.length;r++){var i=o.dataItems[r];t.includes(i.code)&&_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.containsCoordinate2(o.dataItems[r].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(r),s.push(r),o.dataItems[r].data[n]?(e.sum+=parseFloat(o.dataItems[r].data[n])||0,e.sum=Math.floor(100*e.sum)/100):e.sum+=0)}})),this._clearClusterCache();var u=this.clusterMinZoom;this.clusterItemsCache[u]=a,this.testMinClusterZoom1(this.clusterItemsCache[u],r,i),this.funcsNew.c=function(){var t=o.getClosestZoom(o.map.pixelToDistance(1,0));if(!(t<9||t>18)&&o.curZoom!==t)if(o.curZoom=t,o.clusterItemsCache[t])if(t===o.clusterMinZoom)o.hideInfoWindows(),o.testMinClusterZoom1(o.clusterItemsCache[t],r,i);else{var e=o.clusterItemsCache[t];o.testCluster1(e,r,i,n)}else{var s=[];a.forEach((function(e){o.calColNum(t,e.ptids,s)})),o.clusterItemsCache[t]=s.flat(),o.testCluster1(o.clusterItemsCache[t],r,i,n)}}}},{key:"testMinClusterZoom1",value:function(t,e,n){var r=this;this.layerPointNumLabel.clear(),t.forEach((function(t){r._addClusterLabel(t.geo.getCenter(),t.sum,t,e,n)})),this.dataItems.forEach((function(t){t.visibility=.1})),this._changePtVisible([])}},{key:"testCluster1",value:function(t,e,n,r){var i=this;this.layerPointNumLabel.clear();var o=[];t.forEach((function(t){if(t.length>1){var a=1/0,s=1/0,c=-1/0,u=-1/0,l=0;t.forEach((function(t){a=Math.min(a,i.dataItems[t].coordinate[0]),s=Math.min(s,i.dataItems[t].coordinate[1]),c=Math.max(c,i.dataItems[t].coordinate[0]),u=Math.max(u,i.dataItems[t].coordinate[1]),i.dataItems[t].visibility=.1,i.dataItems[t].data[r]?(l+=parseFloat(i.dataItems[t].data[r])||0,l=Math.floor(100*l)/100):l+=0}));var h=[(a+c)/2,(s+u)/2];i._addClusterLabelSmall(h,l,{},e,n)}else i.dataItems[t[0]].visibility=1,o.push(t[0])})),this._changePtVisible([]),this.hideInfoWindows(),this.addInfo(o)}},{key:"pointShowStatisticsByeTypeMultiple",value:function(t,e,n){var r=this;this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();for(var i=[],o=0;o<e.length;o++)i.push({code:o,geo:e[o],geojson:e[o].toGeoJSON(),sum:0,val:t,ptnum:0});i.forEach((function(e){for(var i=function(i){var o=r.dataItems[i];t.filter((function(t){return t.includes(o.type)})).length>0&&_gisCommon__WEBPACK_IMPORTED_MODULE_24__.a.containsCoordinate2(r.dataItems[i].coordinate,e.geojson)&&(e.ptnum+=1,r.dataItems[i].data[n]?e.sum+=parseFloat(r.dataItems[i].data[n])||0:e.sum+=0)},o=0;o<r.dataItems.length;o++)i(o)})),i.forEach((function(e){r._addClusterLabel(e.geo.getCenter(),e.sum,e).on("click",(function(e){r.selectItems=[];var n=e.target.properties.item;n.ptnum>0&&(setTimeout((function(){r.point.show()}),500),r._pointShowHide(n.val,n.geo),r._zoomSelect(t,n.geo))}))})),this._pointShowHide(t),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=function(){r.isCtrol&&(r.map.getZoom()<9.4?(r.point.hide(),r.layerPointNumLabel.show()):(r.point.show(),r.layerPointNumLabel.hide()))}}},{key:"showValue",value:function showValue(flag,closeForeFlag,where){if(this.shader){if(void 0===closeForeFlag){var v=!0===flag?0:1;this.shader.uniforms.flag.value=v}if(where){this.bzlayerNum&&this.bzlayerNum.clear();for(var i=0;i<this.dataItems.length;i++){var item=this.dataItems[i],boolFlag=void 0;try{boolFlag=eval(where.replaceAll("{}",item.pvalue))}catch(t){boolFlag=!1}1===item.visibility&&!0===boolFlag&&this.bzlayerNum.addGeometry(this.bz_all_nums[i])}}this.bzlayerNum&&(this.bzlayerNum.options.visible=flag)}}},{key:"show",value:function(){this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear();for(var t=[],e=0;e<this.dataItems.length;e++)t.push(e);this._changePtVisible(t)}},{key:"hide",value:function(){this.pointShowHide([])}},{key:"showName",value:function(t){this.layerLabel&&(this.layerLabel.options.visible=t)}},{key:"setPointsOn",value:function(t,e,n){if(this.point){for(var r=[],i=this.point.object3d.geometry.attributes.visibility.array,o=0;o<this.dataItems.length;o++){var a=this.dataItems[o];a.data[t]&&1*a.data[t]===e&&(r.push(o),i[o]=1,this.point._indexs_hide[o]=!0)}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0,n&&n(r)}}},{key:"changePositionValueOne",value:function(t,e){if(this.point){this.paraName=e||this.paraName;var n=this.point.object3d.geometry.attributes.color.array,r=parseFloat(t.value)||0,i="#fff";t.imgColor&&t.imgColor.length>=1&&(i=t.imgColor[0]),void 0!==this.updateIndex&&(this.dataItems[this.updateIndex].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],this.dataItems[this.updateIndex].color=i,this.dataItems[this.updateIndex].pvalue=r,this.bz_all_nums[this.updateIndex].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]));try{this.point.updatepoints(this.dataItems);for(var o=0;o<this.dataItems.length;o++){var a=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[o].color);n[3*o+0]=a.r,n[3*o+1]=a.g,n[3*o+2]=a.b}this.point.object3d.geometry.attributes.color.needsUpdate=!0,this.updateIndex=this.updateIndex+1>this.pLen?0:this.updateIndex+1}catch(t){throw t}}}},{key:"changePositionValue",value:function(t,e){var n=this;if(this.point){this.paraName=e||this.paraName;var r=this.point.object3d.geometry.attributes.color.array,i=this.point.object3d.geometry.attributes.rotation.array,o=this.point.object3d.geometry.attributes.opavalue.array;t.slice(0,1/0).map((function(t){var e=parseFloat(t.value)||0,r=parseFloat(t.opavalue)?parseFloat(t.opavalue):1,i="#fff";t.imgColor&&t.imgColor.length>=1&&(i=t.imgColor[0]);var o=(parseFloat(t.windDirection)||0)+.01,a=parseFloat(o*(Math.PI/180)),s=n.findItemByCode(t.code);void 0!==s&&(n.dataItems[s].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],n.dataItems[s].color=i,n.dataItems[s].rotation=a,n.dataItems[s].pvalue=e,n.dataItems[s].opavalue=r,n.layerLabel&&n.all_labels[s].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]),n.Infolayer&&n.Infolayer.options.iconCode===t.code)&&n.Infolayer.getGeometries().forEach((function(e){e.setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)])}))}));try{this.point.updatepoints(this.dataItems);for(var a=0;a<this.dataItems.length;a++){var s=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[a].color);r[3*a+0]=s.r,r[3*a+1]=s.g,r[3*a+2]=s.b,i[a]=this.dataItems[a].rotation,o[a]=this.dataItems[a].opavalue}this.point.object3d.geometry.attributes.color.needsUpdate=!0,this.point.object3d.geometry.attributes.rotation.needsUpdate=!0,this.point.object3d.geometry.attributes.opavalue.needsUpdate=!0}catch(t){throw t}}}},{key:"changeParaValue",value:function(t,e){var n=this;if(this.point){this.paraName=e||this.paraName;var r=this.point.object3d.geometry.attributes.color.array,i=this.point.object3d.geometry.attributes.fcolor1.array,o=this.point.object3d.geometry.attributes.opavalue.array,a=this.point.object3d.geometry.attributes.rotation.array;t.slice(0,1/0).map((function(t){var e=parseFloat(t.value)||0,r=parseFloat(t.opavalue)?parseFloat(t.opavalue):1,i="#fff";t.imgColor&&t.imgColor.length>=1&&(i=t.imgColor[0]);var o="#fff";t.imgColor&&t.imgColor.length>=2&&(o=t.imgColor[1]);var a=(parseFloat(t.windDirection)||0)+.01,s=parseFloat(a*(Math.PI/180)),c=n.findItemByCode(t.code);if(void 0!==c&&(n.dataItems[c].color=i,n.dataItems[c].rotation=s,n.dataItems[c].fcolor1=o,n.dataItems[c].pvalue=e,n.dataItems[c].opavalue=r,n.bzlayerNum)){var u=Object(_pollutionFactors__WEBPACK_IMPORTED_MODULE_27__.a)(e,n.paraName);n.bz_all_nums[c].getProperties().name=e,n.bz_all_nums[c].updateSymbol({textName:"{name}",textFill:u})}}));for(var s=0;s<this.dataItems.length;s++){var c=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[s].color);r[3*s+0]=c.r,r[3*s+1]=c.g,r[3*s+2]=c.b,a[s]=this.dataItems[s].rotation;var u=new three__WEBPACK_IMPORTED_MODULE_28__.Color(this.dataItems[s].fcolor1);i[3*s+0]=u.r,i[3*s+1]=u.g,i[3*s+2]=u.b,o[s]=this.dataItems[s].opavalue}this.point.object3d.geometry.attributes.color.needsUpdate=!0,this.point.object3d.geometry.attributes.rotation.needsUpdate=!0,this.point.object3d.geometry.attributes.fcolor1.needsUpdate=!0,this.point.object3d.geometry.attributes.opavalue.needsUpdate=!0}}},{key:"dispose",value:function(){this.InforItems.length>0&&this.hideInfoWindows(),this.bzlayerNum&&(this.map.removeLayer(this.bzlayerNum),this.bz_all_nums=[]),this.bound&&delete this.bound,Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(C_works_rock_ep_core_rk_web_map_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_4__.a)(simpleMark.prototype),"dispose",this).call(this)}},{key:"_createShaderPol",value:function(t,e,n,r,i){return t.uniforms.imgdatas={value:n},t.uniforms.texture1={value:e},t.uniforms.textureSize={value:r},t.uniforms.size1={value:i},t.uniforms.flag={value:1},t.vertexShader="uniform float size1;\n attribute float imgflag;\n attribute float rotation;\n attribute vec3 color;\n attribute vec3 fcolor1;\n varying float vimgflag;\n attribute float visibility;\n varying float vVisible;\n varying float vRotation;\n varying vec3 vColor;\n varying vec3 vFcolor;\n attribute float opavalue;\n varying float vOpavalue;\n attribute float colorflag;\n varying float vColorflag;\n attribute float fcolorflag;\n varying float vFcolorflag;\n attribute float imgnum;\n varying float vImgnum;\n "+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <project_vertex>","\n #include <project_vertex>\n vimgflag = imgflag;\n vVisible = visibility;\n vRotation = rotation;\n vColor = color;\n vOpavalue = opavalue;\n vColorflag = colorflag;\n vFcolorflag = fcolorflag;\n vFcolor = fcolor1;\n vImgnum = imgnum;\n ").replace("gl_PointSize = size;","\n gl_PointSize = size1;\n "),t.fragmentShader="struct imgdata {\n float u;\n float v;\n float w;\n float h;\n };\n uniform imgdata imgdatas[".concat(n.length,"];\n uniform sampler2D texture1;\n uniform float textureSize;\n varying float vimgflag;\n varying float vVisible;\n varying float vRotation;\n varying vec3 vColor;\n varying float vOpavalue;\n varying float vColorflag;\n varying float vFcolorflag;\n varying float vImgnum;\n varying vec3 vFcolor;\n uniform int flag;\n ")+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("gl_FragColor = vec4( outgoingLight, diffuseColor.a );","\n highp int index = int(vimgflag);\n float width = gl_PointCoord.x / textureSize * imgdatas[index].w;\n float height = gl_PointCoord.y / textureSize * imgdatas[index].h;\n float x = imgdatas[index].u;\n float y = 1.0 - imgdatas[index].v;\n vec2 uv = vec2(x + width, y - height);\n\n float xx = x + 0.5 / textureSize * imgdatas[index].w;\n float yy = y - 0.5 / textureSize * imgdatas[index].h;\n float angle = 1.0;\n float s = sin(vRotation);\n float c = cos(vRotation);\n mat2 rotationMatrix = mat2( c, s,\n -s, c);\n vec2 pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n\n vec4 rotatedTexture = texture2D( texture1, uv);\n vec4 texColor;\n if (vColorflag > 1.0) {\n texColor = vec4(vColor, vOpavalue) * rotatedTexture;\n } else {\n texColor = rotatedTexture;\n }\n\n if (vImgnum > 1.0 && flag == 1) {\n index += 1;\n width = gl_PointCoord.x / textureSize * imgdatas[index].w;\n height = gl_PointCoord.y / textureSize * imgdatas[index].h;\n x = imgdatas[index].u;\n y = 1.0 - imgdatas[index].v;\n vec4 img = texture2D( texture1, vec2(x + width, y - height) );\n vec4 Ca;\n img.a *= img.r;\n if(vFcolorflag > 1.0){\n Ca = vec4(vFcolor, 1.0) * img;\n }\n else{\n Ca = img;\n }\n //Ca.a *= Ca.r;\n\n\n // 第三种\n /*texColor.xyz *= texColor.a; //premultiply source \n gl_FragColor = mix(texColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n \n vec3 rgb = mix(texColor.xyz * texColor.a, Ca.xyz, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb / a, a);\n gl_FragColor = dst;\n\n /*vec3 rgb = mix(texColor.xyz * texColor.a, Ca.rgb, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb, a);\n gl_FragColor = dst;*/\n \n // 第一种\n /*vec4 out_Color;\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n gl_FragColor = mix(gl_FragColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n \n } else {\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n }\n\n if (vVisible < 0.5) discard;\n "),t}}]),simpleMark}(_baseMark_js__WEBPACK_IMPORTED_MODULE_26__.a);__webpack_exports__.a=simpleMark},4840:function(t,e,n){var r=n("825a"),i=n("5087"),o=n("b622")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},"485a":function(t,e,n){var r=n("da84"),i=n("c65b"),o=n("1626"),a=n("861d"),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},4930:function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},h=null,f="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){u=n,h=i||{};var a=r(t,e);return m(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=a[i],c=o[s.id];c.refs--,n.push(c)}for(e?m(a=r(t,e)):a=[],i=0;i<n.length;i++)if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function v(t){var e,n,r=document.querySelector("style["+f+'~="'+t.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(d){var i=c++;r=s||(s=g()),e=_.bind(null,r,i,!1),n=_.bind(null,r,i,!0)}else r=g(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function _(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function x(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(f,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}return{get:n,add:function(n,r){var i=t.get(n);e[i]||(e[i]=[]),e[i].push(r)},removeListener:function(t,e){for(var r=n(t),i=0,o=r.length;i<o;++i)if(r[i]===e){r.splice(i,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4a76":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAKN2lDQ1BzUkdCIElFQzYxOTY2LTIuMQAAeJydlndUU9kWh8+9N71QkhCKlNBraFICSA29SJEuKjEJEErAkAAiNkRUcERRkaYIMijggKNDkbEiioUBUbHrBBlE1HFwFBuWSWStGd+8ee/Nm98f935rn73P3Wfvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPAAA2wA4HCzs0IW+EYCmQJ82IxsmRP4F726DiD5+yrTP4zBAP+flLlZIjEAUJiM5/L42VwZF8k4PVecJbdPyZi2NE3OMErOIlmCMlaTc/IsW3z2mWUPOfMyhDwZy3PO4mXw5Nwn4405Er6MkWAZF+cI+LkyviZjg3RJhkDGb+SxGXxONgAoktwu5nNTZGwtY5IoMoIt43kA4EjJX/DSL1jMzxPLD8XOzFouEiSniBkmXFOGjZMTi+HPz03ni8XMMA43jSPiMdiZGVkc4XIAZs/8WRR5bRmyIjvYODk4MG0tbb4o1H9d/JuS93aWXoR/7hlEH/jD9ld+mQ0AsKZltdn6h21pFQBd6wFQu/2HzWAvAIqyvnUOfXEeunxeUsTiLGcrq9zcXEsBn2spL+jv+p8Of0NffM9Svt3v5WF485M4knQxQ143bmZ6pkTEyM7icPkM5p+H+B8H/nUeFhH8JL6IL5RFRMumTCBMlrVbyBOIBZlChkD4n5r4D8P+pNm5lona+BHQllgCpSEaQH4eACgqESAJe2Qr0O99C8ZHA/nNi9GZmJ37z4L+fVe4TP7IFiR/jmNHRDK4ElHO7Jr8WgI0IABFQAPqQBvoAxPABLbAEbgAD+ADAkEoiARxYDHgghSQAUQgFxSAtaAYlIKtYCeoBnWgETSDNnAYdIFj4DQ4By6By2AE3AFSMA6egCnwCsxAEISFyBAVUod0IEPIHLKFWJAb5AMFQxFQHJQIJUNCSAIVQOugUqgcqobqoWboW+godBq6AA1Dt6BRaBL6FXoHIzAJpsFasBFsBbNgTzgIjoQXwcnwMjgfLoK3wJVwA3wQ7oRPw5fgEVgKP4GnEYAQETqiizARFsJGQpF4JAkRIauQEqQCaUDakB6kH7mKSJGnyFsUBkVFMVBMlAvKHxWF4qKWoVahNqOqUQdQnag+1FXUKGoK9RFNRmuizdHO6AB0LDoZnYsuRlegm9Ad6LPoEfQ4+hUGg6FjjDGOGH9MHCYVswKzGbMb0445hRnGjGGmsVisOtYc64oNxXKwYmwxtgp7EHsSewU7jn2DI+J0cLY4X1w8TogrxFXgWnAncFdwE7gZvBLeEO+MD8Xz8MvxZfhGfA9+CD+OnyEoE4wJroRIQiphLaGS0EY4S7hLeEEkEvWITsRwooC4hlhJPEQ8TxwlviVRSGYkNimBJCFtIe0nnSLdIr0gk8lGZA9yPFlM3kJuJp8h3ye/UaAqWCoEKPAUVivUKHQqXFF4pohXNFT0VFysmK9YoXhEcUjxqRJeyUiJrcRRWqVUo3RU6YbStDJV2UY5VDlDebNyi/IF5UcULMWI4kPhUYoo+yhnKGNUhKpPZVO51HXURupZ6jgNQzOmBdBSaaW0b2iDtCkVioqdSrRKnkqNynEVKR2hG9ED6On0Mvph+nX6O1UtVU9Vvuom1TbVK6qv1eaoeajx1UrU2tVG1N6pM9R91NPUt6l3qd/TQGmYaYRr5Grs0Tir8XQObY7LHO6ckjmH59zWhDXNNCM0V2ju0xzQnNbS1vLTytKq0jqj9VSbru2hnaq9Q/uE9qQOVcdNR6CzQ+ekzmOGCsOTkc6oZPQxpnQ1df11Jbr1uoO6M3rGelF6hXrtevf0Cfos/ST9Hfq9+lMGOgYhBgUGrQa3DfGGLMMUw12G/YavjYyNYow2GHUZPTJWMw4wzjduNb5rQjZxN1lm0mByzRRjyjJNM91tetkMNrM3SzGrMRsyh80dzAXmu82HLdAWThZCiwaLG0wS05OZw2xljlrSLYMtCy27LJ9ZGVjFW22z6rf6aG1vnW7daH3HhmITaFNo02Pzq62ZLde2xvbaXPJc37mr53bPfW5nbse322N3055qH2K/wb7X/oODo4PIoc1h0tHAMdGx1vEGi8YKY21mnXdCO3k5rXY65vTW2cFZ7HzY+RcXpkuaS4vLo3nG8/jzGueNueq5clzrXaVuDLdEt71uUnddd457g/sDD30PnkeTx4SnqWeq50HPZ17WXiKvDq/XbGf2SvYpb8Tbz7vEe9CH4hPlU+1z31fPN9m31XfKz95vhd8pf7R/kP82/xsBWgHcgOaAqUDHwJWBfUGkoAVB1UEPgs2CRcE9IXBIYMj2kLvzDecL53eFgtCA0O2h98KMw5aFfR+OCQ8Lrwl/GGETURDRv4C6YMmClgWvIr0iyyLvRJlESaJ6oxWjE6Kbo1/HeMeUx0hjrWJXxl6K04gTxHXHY+Oj45vipxf6LNy5cDzBPqE44foi40V5iy4s1licvvj4EsUlnCVHEtGJMYktie85oZwGzvTSgKW1S6e4bO4u7hOeB28Hb5Lvyi/nTyS5JpUnPUp2Td6ePJninlKR8lTAFlQLnqf6p9alvk4LTduf9ik9Jr09A5eRmHFUSBGmCfsytTPzMoezzLOKs6TLnJftXDYlChI1ZUPZi7K7xTTZz9SAxESyXjKa45ZTk/MmNzr3SJ5ynjBvYLnZ8k3LJ/J9879egVrBXdFboFuwtmB0pefK+lXQqqWrelfrry5aPb7Gb82BtYS1aWt/KLQuLC98uS5mXU+RVtGaorH1futbixWKRcU3NrhsqNuI2ijYOLhp7qaqTR9LeCUXS61LK0rfb+ZuvviVzVeVX33akrRlsMyhbM9WzFbh1uvb3LcdKFcuzy8f2x6yvXMHY0fJjpc7l+y8UGFXUbeLsEuyS1oZXNldZVC1tep9dUr1SI1XTXutZu2m2te7ebuv7PHY01anVVda926vYO/Ner/6zgajhop9mH05+x42Rjf2f836urlJo6m06cN+4X7pgYgDfc2Ozc0tmi1lrXCrpHXyYMLBy994f9Pdxmyrb6e3lx4ChySHHn+b+O31w0GHe4+wjrR9Z/hdbQe1o6QT6lzeOdWV0iXtjusePhp4tLfHpafje8vv9x/TPVZzXOV42QnCiaITn07mn5w+lXXq6enk02O9S3rvnIk9c60vvG/wbNDZ8+d8z53p9+w/ed71/LELzheOXmRd7LrkcKlzwH6g4wf7HzoGHQY7hxyHui87Xe4Znjd84or7ldNXva+euxZw7dLI/JHh61HXb95IuCG9ybv56Fb6ree3c27P3FlzF3235J7SvYr7mvcbfjT9sV3qID0+6j068GDBgztj3LEnP2X/9H686CH5YcWEzkTzI9tHxyZ9Jy8/Xvh4/EnWk5mnxT8r/1z7zOTZd794/DIwFTs1/lz0/NOvm1+ov9j/0u5l73TY9P1XGa9mXpe8UX9z4C3rbf+7mHcTM7nvse8rP5h+6PkY9PHup4xPn34D94Tz+49wZioAAAAJcEhZcwAACxIAAAsSAdLdfvwAAADrSURBVHicY/n//z8DqYAFRDAxMTESq+Hfv3//WUi2BmYTMmhqatL7+/fv5cbGxv/19fWSbGxsf6urq1/h1ARU5A+0fj0jI+MsILsXKLTv169fP1atWqUeFhb2D6smFhaWi3/+/HkMZKYBNcYBA4kDyJ6NrAFDU21t7QOgDSlA5k6QBqDGW0A6C6+fmpublYA2zQOxgRq+ATWoAZnTgDgdpyagBk0gJQXUMI2ZmbkPyN8P5DsAbWcFBsxvrJqAEluBtmkDFd8EOvV/a2urOTAg/iJrwNAE9dcNGBsY1C/Q5bFqIgaANYGSBimaAADgbhvLwt8+AAAAAElFTkSuQmCC"},"4ae1":function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("0538"),s=n("5087"),c=n("825a"),u=n("861d"),l=n("7c73"),h=n("d039"),f=i("Reflect","construct"),d=Object.prototype,p=[].push,m=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),g=!h((function(){f((function(){}))})),v=m||g;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){s(t),c(e);var n=arguments.length<3?t:s(arguments[2]);if(g&&!m)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(p,r,e),new(o(a,t,r))}var i=n.prototype,h=l(u(i)?i:d),v=o(t,h,e);return u(v)?v:h}})},"4c53":function(t,e,n){"use strict";var r=n("23e7"),i=n("857a");r({target:"String",proto:!0,forced:n("af03")("sub")},{sub:function(){return i(this,"sub","","")}})},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,c=r(e),u=o(c),l=i(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4dae":function(t,e,n){var r=n("da84"),i=n("23cb"),o=n("07fa"),a=n("8418"),s=r.Array,c=Math.max;t.exports=function(t,e,n){for(var r=o(t),u=i(e,r),l=i(void 0===n?r:n,r),h=s(c(l-u,0)),f=0;u<l;u++,f++)a(h,f,t[u]);return h.length=f,h}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter;r({target:"Array",proto:!0,forced:!n("1dde")("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("da84"),i=n("0366"),o=n("c65b"),a=n("7b0b"),s=n("9bdd"),c=n("e95a"),u=n("68ee"),l=n("07fa"),h=n("8418"),f=n("9a1f"),d=n("35a1"),p=r.Array;t.exports=function(t){var e=a(t),n=u(this),r=arguments.length,m=r>1?arguments[1]:void 0,g=void 0!==m;g&&(m=i(m,r>2?arguments[2]:void 0));var v,y,_,x,b,w,M=d(e),S=0;if(!M||this==p&&c(M))for(v=l(e),y=n?new this(v):p(v);v>S;S++)w=g?m(e[S],S):e[S],h(y,S,w);else for(b=(x=f(e,M)).next,y=n?new this:[];!(_=o(b,x)).done;S++)w=g?s(x,m,[_.value,S],!0):_.value,h(y,S,w);return y.length=S,y}},"4e82":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),c=n("577e"),u=n("d039"),l=n("addb"),h=n("a640"),f=n("04d1"),d=n("d998"),p=n("2d00"),m=n("512c"),g=[],v=i(g.sort),y=i(g.push),_=u((function(){g.sort(void 0)})),x=u((function(){g.sort(null)})),b=h("sort"),w=!u((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(m)return m<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:e+r,v:n})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}})),M=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}};r({target:"Array",proto:!0,forced:_||!x||!b||!w},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(w)return void 0===t?v(e):v(e,t);var n,r,i=[],c=s(e);for(r=0;r<c;r++)r in e&&y(i,e[r]);for(l(i,M(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<c;)delete e[r++];return e}})},"4fad":function(t,e,n){var r=n("23e7"),i=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}},5087:function(t,e,n){var r=n("da84"),i=n("68ee"),o=n("0d51"),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a constructor")}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];return null!=r||void 0===n?r:n}},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"512c":function(t,e,n){var r=n("342f").match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),c=n("825a"),u=n("1626"),l=n("5926"),h=n("50c4"),f=n("577e"),d=n("1d80"),p=n("8aa5"),m=n("dc4a"),g=n("0cb2"),v=n("14c3"),y=n("b622")("replace"),_=Math.max,x=Math.min,b=o([].concat),w=o([].push),M=o("".indexOf),S=o("".slice),A=function(t){return void 0===t?t:String(t)},C="$0"==="a".replace(/./,"$0"),E=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(t,e,n){var o=E?"$":"$0";return[function(t,n){var r=d(this),o=null==t?void 0:m(t,y);return o?i(o,t,r,n):i(e,f(r),t,n)},function(t,i){var a=c(this),s=f(t);if("string"==typeof i&&-1===M(i,o)&&-1===M(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var m=u(i);m||(i=f(i));var y=a.global;if(y){var C=a.unicode;a.lastIndex=0}for(var E=[];;){var T=v(a,s);if(null===T)break;if(w(E,T),!y)break;""===f(T[0])&&(a.lastIndex=p(s,h(a.lastIndex),C))}for(var I="",L=0,P=0;P<E.length;P++){for(var R=f((T=E[P])[0]),O=_(x(l(T.index),s.length),0),k=[],B=1;B<T.length;B++)w(k,A(T[B]));var D=T.groups;if(m){var F=b([R],k,O,s);void 0!==D&&w(F,D);var U=f(r(i,void 0,F))}else U=g(R,s,O,k,D,i);O>=L&&(I+=S(s,L,O)+U,L=O+R.length)}return I+S(s,L)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!C||E)},5453:function(t,e,n){var r=n("138f");r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("33cc2b47",r,!0,{sourceMap:!1,shadowMode:!1})},5664:function(t,e,n){"use strict";function r(t,e,n){n=n||2;var r,o,s,c,u,l,f,d=e&&e.length,p=d?e[0]*n:t.length,m=i(t,0,p,n,!0),g=[];if(!m||m.next===m.prev)return g;if(d&&(m=h(t,e,m,n)),t.length>80*n){r=s=t[0],o=c=t[1];for(var v=n;v<p;v+=n)(u=t[v])<r&&(r=u),(l=t[v+1])<o&&(o=l),u>s&&(s=u),l>c&&(c=l);f=0!==(f=Math.max(s-r,c-o))?1/f:0}return a(m,g,n,r,o,f),g}function i(t,e,n,r,i){var o,a;if(i===I(t,e,n,r)>0)for(o=e;o<n;o+=r)a=C(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=C(o,t[o],t[o+1],a);return a&&x(a,a.next)&&(E(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!x(r,r.next)&&0!==_(r.prev,r,r.next))r=r.next;else{if(E(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function a(t,e,n,r,i,h,f){if(t){!f&&h&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=m(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,c,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<u&&(s++,r=r.nextZ);e++);for(c=u;s>0||c>0&&r;)0!==s&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(a>1)}(i)}(t,r,i,h);for(var d,p,g=t;t.prev!==t.next;)if(d=t.prev,p=t.next,h?c(t,r,i,h):s(t))e.push(d.i/n),e.push(t.i/n),e.push(p.i/n),E(t),t=p.next,g=p.next;else if((t=p)===g){f?1===f?a(t=u(o(t),e,n),e,n,r,i,h,2):2===f&&l(t,e,n,r,i,h):a(o(t),e,n,r,i,h,1);break}}}function s(t){var e=t.prev,n=t,r=t.next;if(_(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(v(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&_(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function c(t,e,n,r){var i=t.prev,o=t,a=t.next;if(_(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,c=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,u=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,h=m(s,c,e,n,r),f=m(u,l,e,n,r),d=t.prevZ,p=t.nextZ;d&&d.z>=h&&p&&p.z<=f;){if(d!==t.prev&&d!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==t.prev&&p!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;d&&d.z>=h;){if(d!==t.prev&&d!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;p&&p.z<=f;){if(p!==t.prev&&p!==t.next&&v(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function u(t,e,n){var r=t;do{var i=r.prev,a=r.next.next;!x(i,a)&&b(i,r,r.next,a)&&S(i,a)&&S(a,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(a.i/n),E(r),E(r.next),r=t=a),r=r.next}while(r!==t);return o(r)}function l(t,e,n,r,i,s){var c=t;do{for(var u=c.next.next;u!==c.prev;){if(c.i!==u.i&&y(c,u)){var l=A(c,u);return c=o(c,c.next),l=o(l,l.next),a(c,e,n,r,i,s),void a(l,e,n,r,i,s)}u=u.next}c=c.next}while(c!==t)}function h(t,e,n,r){var a,s,c,u=[];for(a=0,s=e.length;a<s;a++)(c=i(t,e[a]*r,a<s-1?e[a+1]*r:t.length,r,!1))===c.next&&(c.steiner=!0),u.push(g(c));for(u.sort(f),a=0;a<u.length;a++)n=o(n=d(u[a],n),n.next);return n}function f(t,e){return t.x-e.x}function d(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n;var c,u=n,l=n.x,h=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=l&&i!==r.x&&v(o<h?i:a,o,l,h,o<h?a:i,o,r.x,r.y)&&(c=Math.abs(o-r.y)/(i-r.x),S(r,t)&&(c<f||c===f&&(r.x>n.x||r.x===n.x&&p(n,r)))&&(n=r,f=c)),r=r.next}while(r!==u);return n}(t,e);if(!n)return e;var r=A(n,t),i=o(n,n.next);return o(r,r.next),e===n?i:e}function p(t,e){return _(t.prev,t,e.prev)<0&&_(e.next,t,t.next)<0}function m(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function v(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&b(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(S(t,e)&&S(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(_(t.prev,t,e.prev)||_(t,e.prev,e))||x(t,e)&&_(t.prev,t,t.next)>0&&_(e.prev,e,e.next)>0)}function _(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function x(t,e){return t.x===e.x&&t.y===e.y}function b(t,e,n,r){var i=M(_(t,e,n)),o=M(_(t,e,r)),a=M(_(n,r,t)),s=M(_(n,r,e));return i!==o&&a!==s||!(0!==i||!w(t,n,e))||!(0!==o||!w(t,r,e))||!(0!==a||!w(n,t,r))||!(0!==s||!w(n,e,r))}function w(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function M(t){return t>0?1:t<0?-1:0}function S(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function A(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function C(t,e,n,r){var i=new T(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}t.exports=r,t.exports.default=r,r.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(I(t,0,o,n));if(i)for(var s=0,c=e.length;s<c;s++){var u=e[s]*n,l=s<c-1?e[s+1]*n:t.length;a-=Math.abs(I(t,u,l,n))}var h=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,d=r[s+1]*n,p=r[s+2]*n;h+=Math.abs((t[f]-t[p])*(t[d+1]-t[f+1])-(t[f]-t[d])*(t[p+1]-t[f+1]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},5765:function(t,e,n){"use strict";n.d(e,"c",(function(){return An})),n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return se}));var r=n("ec60"),i=n("5a89");const o=parseInt(i.REVISION.replace("dev",""));function a(t,e,n){return o>109?t.setAttribute(e,n):t.addAttribute(e,n),t}function s(t,e){o>113?t.params.Line.threshold=e:t.linePrecision=e}function c(){return!i.VertexColors||i.VertexColors}console.log("maptalks.three log: current three.js version is %c"+o,"color:red;font-size: 16px;font-weight: bold;");class u extends i.InstancedBufferGeometry{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),a(this,"position",new i.Float32BufferAttribute([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),a(this,"uv",new i.Float32BufferAttribute([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}applyMatrix(t){var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==e&&(t.applyToBufferAttribute(e),t.applyToBufferAttribute(n),e.data.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}setPositions(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new i.InstancedInterleavedBuffer(e,6,1);return a(this,"instanceStart",new i.InterleavedBufferAttribute(n,3,0)),a(this,"instanceEnd",new i.InterleavedBufferAttribute(n,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new i.InstancedInterleavedBuffer(e,6,1);return a(this,"instanceColorStart",new i.InterleavedBufferAttribute(n,3,0)),a(this,"instanceColorEnd",new i.InterleavedBufferAttribute(n,3,3)),this}fromWireframeGeometry(t){return this.setPositions(t.attributes.position.array),this}fromEdgesGeometry(t){return this.setPositions(t.attributes.position.array),this}fromMesh(t){return this.fromWireframeGeometry(new i.WireframeGeometry(t.geometry)),this}fromLineSegements(t){var e=t.geometry;return e.isGeometry?this.setPositions(e.vertices):e.isBufferGeometry&&this.setPositions(e.position.array),this}computeBoundingBox(){var t=new i.Box3;null===this.boundingBox&&(this.boundingBox=new i.Box3);var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;void 0!==e&&void 0!==n&&(this.boundingBox.setFromBufferAttribute(e),t.setFromBufferAttribute(n),this.boundingBox.union(t))}computeBoundingSphere(){var t=new i.Vector3;null===this.boundingSphere&&(this.boundingSphere=new i.Sphere),null===this.boundingBox&&this.computeBoundingBox();var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;if(void 0!==e&&void 0!==n){var r=this.boundingSphere.center;this.boundingBox.getCenter(r);for(var o=0,a=0,s=e.count;a<s;a++)t.fromBufferAttribute(e,a),o=Math.max(o,r.distanceToSquared(t)),t.fromBufferAttribute(n,a),o=Math.max(o,r.distanceToSquared(t));this.boundingSphere.radius=Math.sqrt(o),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}copy(t){return this}}var l=u;const h={},f={};h.line={linewidth:{value:1},resolution:{value:new i.Vector2(1,1)},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},f.line={uniforms:i.UniformsUtils.merge([i.UniformsLib.common,i.UniformsLib.fog,h.line]),vertexShader:"\n\t\t#include <common>\n\t\t#include <color_pars_vertex>\n\t\t#include <fog_pars_vertex>\n\t\t#include <logdepthbuf_pars_vertex>\n\t\t#include <clipping_planes_pars_vertex>\n\n\t\tuniform float linewidth;\n\t\tuniform vec2 resolution;\n\n\t\tattribute vec3 instanceStart;\n\t\tattribute vec3 instanceEnd;\n\n\t\tattribute vec3 instanceColorStart;\n\t\tattribute vec3 instanceColorEnd;\n\n\t\tvarying vec2 vUv;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashScale;\n\t\t\tattribute float instanceDistanceStart;\n\t\t\tattribute float instanceDistanceEnd;\n\t\t\tvarying float vLineDistance;\n\n\t\t#endif\n\n\t\tvoid trimSegment( const in vec4 start, inout vec4 end ) {\n\n\t\t\t// trim end segment so it terminates between the camera plane and the near plane\n\n\t\t\t// conservative estimate of the near plane\n\t\t\tfloat a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n\t\t\tfloat b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n\t\t\tfloat nearEstimate = - 0.5 * b / a;\n\n\t\t\tfloat alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n\t\t\tend.xyz = mix( start.xyz, end.xyz, alpha );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#ifdef USE_COLOR\n\n\t\t\t\tvColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n\t\t\t#endif\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\n\t\t\t#endif\n\n\t\t\tfloat aspect = resolution.x / resolution.y;\n\n\t\t\tvUv = uv;\n\n\t\t\t// camera space\n\t\t\tvec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n\t\t\tvec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n\t\t\t// special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n\t\t\t// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n\t\t\t// but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n\t\t\t// perhaps there is a more elegant solution -- WestLangley\n\n\t\t\tbool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n\t\t\tif ( perspective ) {\n\n\t\t\t\tif ( start.z < 0.0 && end.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( start, end );\n\n\t\t\t\t} else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( end, start );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// clip space\n\t\t\tvec4 clipStart = projectionMatrix * start;\n\t\t\tvec4 clipEnd = projectionMatrix * end;\n\n\t\t\t// ndc space\n\t\t\tvec2 ndcStart = clipStart.xy / clipStart.w;\n\t\t\tvec2 ndcEnd = clipEnd.xy / clipEnd.w;\n\n\t\t\t// direction\n\t\t\tvec2 dir = ndcEnd - ndcStart;\n\n\t\t\t// account for clip-space aspect ratio\n\t\t\tdir.x *= aspect;\n\t\t\tdir = normalize( dir );\n\n\t\t\t// perpendicular to dir\n\t\t\tvec2 offset = vec2( dir.y, - dir.x );\n\n\t\t\t// undo aspect ratio adjustment\n\t\t\tdir.x /= aspect;\n\t\t\toffset.x /= aspect;\n\n\t\t\t// sign flip\n\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t// endcaps\n\t\t\tif ( position.y < 0.0 ) {\n\n\t\t\t\toffset += - dir;\n\n\t\t\t} else if ( position.y > 1.0 ) {\n\n\t\t\t\toffset += dir;\n\n\t\t\t}\n\n\t\t\t// adjust for linewidth\n\t\t\toffset *= linewidth;\n\n\t\t\t// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n\t\t\toffset /= resolution.y;\n\n\t\t\t// select end\n\t\t\tvec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n\t\t\t// back to clip space\n\t\t\toffset *= clip.w;\n\n\t\t\tclip.xy += offset;\n\n\t\t\tgl_Position = clip;\n\n\t\t\tvec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n\t\t\t#include <logdepthbuf_vertex>\n\t\t\t#include <clipping_planes_vertex>\n\t\t\t#include <fog_vertex>\n\n\t\t}\n\t\t",fragmentShader:"\n\t\tuniform vec3 diffuse;\n\t\tuniform float opacity;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashSize;\n\t\t\tuniform float gapSize;\n\n\t\t#endif\n\n\t\tvarying float vLineDistance;\n\n\t\t#include <common>\n\t\t#include <color_pars_fragment>\n\t\t#include <fog_pars_fragment>\n\t\t#include <logdepthbuf_pars_fragment>\n\t\t#include <clipping_planes_pars_fragment>\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\t#include <clipping_planes_fragment>\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tif ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n\t\t\t\tif ( mod( vLineDistance, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n\t\t\t#endif\n\n\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\tfloat a = vUv.x;\n\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\tfloat len2 = a * a + b * b;\n\n\t\t\t\tif ( len2 > 1.0 ) discard;\n\n\t\t\t}\n\n\t\t\tvec4 diffuseColor = vec4( diffuse, opacity );\n\n\t\t\t#include <logdepthbuf_fragment>\n\t\t\t#include <color_fragment>\n\n\t\t\tgl_FragColor = vec4( diffuseColor.rgb, diffuseColor.a );\n\n\t\t\t#include <premultiplied_alpha_fragment>\n\t\t\t#include <tonemapping_fragment>\n\t\t\t#include <encodings_fragment>\n\t\t\t#include <fog_fragment>\n\n\t\t}\n\t\t"};class d extends i.ShaderMaterial{constructor(t){super({uniforms:i.UniformsUtils.clone(f.line.uniforms),vertexShader:f.line.vertexShader,fragmentShader:f.line.fragmentShader}),this.dashed=!0,this.isLineMaterial=!0,this.type="LineMaterial",Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(t){this.uniforms.diffuse.value=t}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(t){this.uniforms.linewidth.value=t}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(t){this.uniforms.dashScale.value=t}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(t){this.uniforms.dashSize.value=t}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(t){this.uniforms.gapSize.value=t}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(t){this.uniforms.resolution.value.copy(t)}}}),this.setValues(t)}}var p=d;class m extends i.Mesh{constructor(t,e){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2",this.geometry=void 0!==t?t:new l,this.material=void 0!==e?e:new p({color:16777215*Math.random()})}computeLineDistances(){for(var t=new i.Vector3,e=new i.Vector3,n=this.geometry,r=n.attributes.instanceStart,o=n.attributes.instanceEnd,s=new Float32Array(2*r.data.count),c=0,u=0,l=r.data.count;c<l;c++,u+=2)t.fromBufferAttribute(r,c),e.fromBufferAttribute(o,c),s[u]=0===u?0:s[u-1],s[u+1]=s[u]+t.distanceTo(e);var h=new i.InstancedInterleavedBuffer(s,2,1);return a(n,"instanceDistanceStart",new i.InterleavedBufferAttribute(h,1,0)),a(n,"instanceDistanceEnd",new i.InterleavedBufferAttribute(h,1,1)),this}}var g=m,v=class extends l{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}fromLine(t){var e=t.geometry;return e.isGeometry?this.setPositions(e.vertices):e.isBufferGeometry&&this.setPositions(e.position.array),this}},y=class extends g{constructor(t,e){super(t,e),this.isLine2=!0,this.type="Line2",this.geometry=void 0!==t?t:new v,this.material=void 0!==e?e:new p({color:16777215*Math.random()})}copy(t){return this}};const _={interactive:!0,altitude:0,minZoom:0,maxZoom:30,asynchronous:!1};function x(){}class b extends(r.Eventable(x)){constructor(t){super(),this.isAdd=!1,this._mouseover=!1,this._visible=!0,this._zoomVisible=!0,this.picked=!1,this.isBaseObject=!0,void 0===t&&(t=r.Util.GUID()),this.id=t}addTo(t){return t&&"ThreeLayer"===t.type?t.addMesh([this]):console.error("layer only support maptalks.ThreeLayer"),this}remove(){const t=this.getLayer();return t&&t.removeMesh([this]),this}getObject3d(){return this.object3d}getId(){return this.id}setId(t){const e=this.getId();return this.id=t,this._fire("idchange",{old:e,new:t,target:this}),this}getType(){return this.type}getOptions(){return this.options}getProperties(){return(this.options||{}).properties}setProperties(t){const e=Object.assign({},this.getProperties());return this.options.properties=t,this._fire("propertieschange",{old:e,new:t,target:this}),this}getLayer(){return this.options.layer}getMap(){const t=this.getLayer();if(t)return t.getMap()}getCenter(){const t=this.getOptions(),{coordinate:e,lineString:n,polygon:i}=t;if(e)return e instanceof r.Coordinate?e:new r.Coordinate(e);{const t=i||n;if(t&&t.getCenter)return t.getCenter()}}getAltitude(){return this.getOptions().altitude}setAltitude(t){if(r.Util.isNumber(t)){const e=this.getLayer().distanceToVector3(t,t).x;if(this.getObject3d().position.z=e,this.options.altitude=t,this.pickObject3d&&(this.pickObject3d.position.z=e),this._baseObjects&&Array.isArray(this._baseObjects))for(let t=0,n=this._baseObjects.length;t<n;t++)this._baseObjects[t]&&(this._baseObjects[t].getObject3d().position.z=e)}return this}show(){return this._zoomVisible&&(this.getObject3d().visible=!0,this._fire("show")),this._visible=!0,this}hide(){return this.getObject3d().visible=!1,this._fire("hide"),this._visible=!1,this}isVisible(){return!!this.getObject3d().visible}getSymbol(){return this.getObject3d().material}setSymbol(t){if(t&&t instanceof i.Material){t.needsUpdate=!0,t.vertexColors=this.getObject3d().material.vertexColors;const e=this.getObject3d().material.clone();this.getObject3d().material=t,this._fire("symbolchange",{old:e,new:t,target:this})}return this}setInfoWindow(t){return this.removeInfoWindow(),this.infoWindow=new r.ui.InfoWindow(t),this.infoWindow.addTo(this),this}getInfoWindow(){return this.infoWindow}openInfoWindow(t){return(t=t||this.getCenter())instanceof r.Coordinate||(t=new r.Coordinate(t)),t&&this.infoWindow&&this.infoWindow.show(t),this}closeInfoWindow(){return this.infoWindow&&this.infoWindow.hide(),this}removeInfoWindow(){return this.infoWindow&&(this.infoWindow.remove(),delete this.infoWindow),this}setToolTip(t,e){return this.removeToolTip(),this.toolTip=new r.ui.ToolTip(t,e),this.toolTip.addTo(this),this}getToolTip(){return this.toolTip}openToolTip(t){return(t=t||this.getCenter())instanceof r.Coordinate||(t=new r.Coordinate(t)),t&&this.toolTip&&this.toolTip.show(t),this}closeToolTip(){return this.toolTip&&this.toolTip.hide(),this}removeToolTip(){return this.toolTip&&(this.toolTip.remove(),delete this.toolTip),this}animateShow(t={},e){this._showPlayer&&this._showPlayer.cancel(),r.Util.isFunction(t)&&(e=t={});const n=t.duration||1e3,i=t.easing||"out",o=this._showPlayer=r.animation.Animation.animate({scale:1},{duration:n,easing:i},t=>{const n=t.styles.scale;n>0&&(this.getObject3d().scale.z=n),e&&e(t,n)});return o.play(),o}getMinZoom(){return this.getOptions().minZoom}getMaxZoom(){return this.getOptions().maxZoom}isAsynchronous(){return this.getOptions().asynchronous}fire(t,e){return this._fire(t,e),this._vt&&this._vt.onSelectMesh&&this._vt.onSelectMesh(t,e),this}config(){return this}setPickObject3d(t){return this.pickObject3d=t,this.pickObject3d.__parent=this,this}_initOptions(t){return this.options=r.Util.extend({},_,t),this}_createMesh(t,e){return this.object3d=new i.Mesh(t,e),this.object3d.__parent=this,this}_createGroup(){return this.object3d=new i.Group,this.object3d.__parent=this,this}_createLine(t,e){return this.object3d=new i.Line(t,e),this.object3d.computeLineDistances(),this.object3d.__parent=this,this}_createLine2(t,e){return this.object3d=new y(t,e),this.object3d.computeLineDistances(),this.object3d.__parent=this,this}_createPoints(t,e){return this.object3d=new i.Points(t,e),this.object3d.__parent=this,this}_createLineSegments(t,e){return this.object3d=new i.LineSegments(t,e),this.object3d.computeLineDistances(),this.object3d.__parent=this,this}}var w=b;function M(t){const{position:e,normal:n,uv:r,indices:o}=S(t),s=new i.BufferGeometry,c=new Float32Array(e.length);return c.fill(1,0,e.length),a(s,"color",new i.BufferAttribute(c,3)),a(s,"normal",new i.BufferAttribute(n,3)),a(s,"position",new i.BufferAttribute(e,3)),r&&r.length&&a(s,"uv",new i.BufferAttribute(r,2)),s.setIndex(new i.BufferAttribute(o,1)),s}function S(t){const e={},n={};for(let r=0;r<t.length;++r){const i=t[r];for(const t in i)void 0===e[t]&&(e[t]=[],n[t]=0),e[t].push(i[t]),n[t]+=i[t].length}const r={};let i=0;const o=[];for(const t in e)if("indices"===t){const n=e[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];for(let t=0,e=r.length;t<e;t++)o.push(r[t]+i);i+=e.position[t].length/3}}else{const i=A(e[t],n[t]);if(!i)return null;r[t]=i}return r.indices=new Uint32Array(o),r}function A(t,e){const n=new Float32Array(e);let r=0;for(let e=0;e<t.length;++e)n.set(t[e],r),r+=t[e].length;return n}function C(t){const{position:e,normal:n,uv:r,indices:o}=t,s=new i.BufferGeometry;return a(s,"normal",new i.BufferAttribute(new Float32Array(n),3)),a(s,"position",new i.BufferAttribute(new Float32Array(e),3)),a(s,"uv",new i.BufferAttribute(new Float32Array(r),2)),s.setIndex(new i.BufferAttribute(new Uint32Array(o),1)),s}function E(t){const e=new i.BufferGeometry;return a(e,"normal",t.getAttribute("normal")),a(e,"position",t.getAttribute("position").clone()),e.setIndex(t.getIndex()),e}let T;function I(){if(!T){const t=1e-6;T=new i.BoxBufferGeometry(t,t,t)}return T}const L={},P=new i.BoxBufferGeometry(1,1,1);P.translate(0,0,.5);const R=new i.Color("#fff"),O=new i.Color("#fff");function k(t=6){if(!L[t]){const e=new i.CylinderBufferGeometry(1,1,1,t,1);e.rotateX(Math.PI/2),e.translate(0,0,.5),e.rotateZ(Math.PI/6),L[t]=e}return L[t]}function B(t){const{height:e,radialSegments:n,radius:r}=t,i=k(n).clone();return i.scale(r,r,e),i}function D(t,e,n,r="y",o=0){let s=0;"y"===r?s=1:"z"===r&&(s=2);const c=t.attributes.position.array,u=c.length;O.setStyle(e),R.setStyle(n);const l=[];for(let t=0;t<u;t+=3)c[t+s]>o?l.push(R.r,R.g,R.b):l.push(O.r,O.g,O.b);return a(t,"color",new i.Float32BufferAttribute(l,3,!0)),l}function F(t){const e=[],n=[];for(let r=0,i=t.length;r<i;r++){const{color:i,normal:o,position:a,uv:s}=t[r].attributes,c=t[r].index;if(i)for(let t=0,e=i.array.length;t<e;t++)n.push(i.array[t]);e.push({normal:o.array,uv:s.array,position:a.array,indices:c.array})}const r=M(e);n.length&&a(r,"color",new i.Float32BufferAttribute(n,3,!0));for(let e=0,n=t.length;e<n;e++)t[e].dispose();return r}function U(){return P}const j={radius:10,height:100,radialSegments:6,altitude:0,topColor:"",bottomColor:"#2d2f61"};var N=class extends w{constructor(t,e,n,i){e=r.Util.extend({},j,e,{layer:i,coordinate:t}),super(),this._initOptions(e);const{height:o,radius:a,topColor:s,bottomColor:u,altitude:l}=e;e.height=i.distanceToVector3(o,o).x,e.radius=i.distanceToVector3(a,a).x,e._radius=this.options.radius,e._height=this.options.height;const h=B(e);s&&(D(h,u,s,"z",e.height/2),n.vertexColors=c()),this._createMesh(h,n);const f=i.distanceToVector3(l,l).x,d=i.coordinateToVector3(t,f);this.getObject3d().position.copy(d),this.type="Bar"}};function z(t,e,n={}){return void 0===n[t]&&(n[t]=e.distanceToVector3(t,t).x),n[t]}function G(t=[]){let e=0,n=0;const i=t.length;for(let o=0;o<i;o++){const{coordinate:i,lnglat:a,lnglats:s,xy:c,xys:u}=t[o],l=i||a||s||c||u||t[o];let h,f;Array.isArray(l)?(h=l[0],f=l[1]):l instanceof r.Coordinate&&(h=l.x,f=l.y),e+=h,n+=f}return new r.Coordinate(e/i,n/i)}function H(t,e,n,r){if(void 0===e||"number"!=typeof e||0===e)return 0;let o;o=t instanceof i.BufferGeometry?t.attributes.position.array:Array.isArray(t)?t:t.position;let a=0;if(o){r?(void 0===r[e]&&(r[e]=n.distanceToVector3(e,e).x),a=r[e]):a=n.distanceToVector3(e,e).x;const t=o.length;if(o[0]instanceof i.Vector3)for(let e=0;e<t;e++)o[e].z+=a;else for(let e=0;e<t;e+=3)o[e+2]+=a}return a}var W=n("5664"),V=n.n(W);function Z(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function Q(t,e,n){var r=e[0],i=e[1],o=n[0]-r,a=n[1]-i;if(0!==o||0!==a){var s=((t[0]-r)*o+(t[1]-i)*a)/(o*o+a*a);s>1?(r=n[0],i=n[1]):s>0&&(r+=o*s,i+=a*s)}return(o=t[0]-r)*o+(a=t[1]-i)*a}function X(t,e){var n=t.length-1,r=[t[0]];return function t(e,n,r,i,o){for(var a,s=i,c=n+1;c<r;c++){var u=Q(e[c],e[n],e[r]);u>s&&(a=c,s=u)}s>i&&(a-n>1&&t(e,n,a,i,o),o.push(e[a]),r-a>1&&t(e,a,r,i,o))}(t,0,n,e,r),r.push(t[n]),r}var Y=function(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return t=X(t=n?t:function(t,e){for(var n,r=t[0],i=[r],o=1,a=t.length;o<a;o++)Z(n=t[o],r)>e&&(i.push(n),r=n);return r!==n&&i.push(n),i}(t,r),r)};function J(t,e){return t[0]*e[0]+t[1]*e[1]}function q(t,e){const n=e[0],r=e[1],i=Math.sqrt(n*n+r*r);return t[0]=n/i,t[1]=r/i,t}function K(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function $(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function tt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function et(t,e){const n=e[0],r=e[1],i=e[2],o=Math.sqrt(n*n+r*r+i*i);return t[0]=n/o,t[1]=r/o,t[2]=i/o,t}function nt(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a,t}const rt=[];function it(t,e,n,r){const i=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}(e,n),o=Math.acos(i)*r;return K(rt,n,e,-i),function(t,e){const n=e[0],r=e[1],i=e[2],o=Math.sqrt(n*n+r*r+i*i);t[0]=n/o,t[1]=r/o,t[2]=i/o}(rt,rt),function(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}(t,e,Math.cos(o)),K(t,t,rt,Math.sin(o)),t}function ot(t,e,n){if(n-e<3)return 0;let r=0;for(let i=2*(n-1),o=2*e;o<2*n;){const e=t[i],n=t[i+1],a=t[o],s=t[o+1];i=o,o+=2,r+=e*s-a*n}return r}function at(t,e,n=2){return V()(t,e,n)}const st=[],ct=[],ut=[];function lt(t,e,n,r,i,o,a,s){const c=null!=a;let u=i,l=null;c&&(l=new Uint32Array(r-n));for(let i=n;i<r;i++){const h=i===r-1?n:i+1,f=i===n?r-1:i-1,d=t[2*f],p=t[2*f+1],m=t[2*i],g=t[2*i+1],v=t[2*h],y=t[2*h+1];if(st[0]=m-d,st[1]=g-p,ct[0]=v-m,ct[1]=y-g,q(st,st),q(ct,ct),c&&(l[i]=u),s||i!==n)if(s||i!==r-1){$(ut,ct,st);const t=ut[1];ut[1]=-ut[0],ut[0]=t,q(ut,ut);const n=J(ut,ct),r=Math.sqrt(1-n*n),i=o*Math.min(10,1/r),s=o*n<0;if(c&&1/r>a&&s){const t=m+ut[0]*o,n=g+ut[1]*o,i=Math.acos(r)/2,a=Math.tan(i)*Math.abs(o);e[2*u]=t+ut[1]*a,e[2*u+1]=n-ut[0]*a,u++,e[2*u]=t-ut[1]*a,e[2*u+1]=n+ut[0]*a,u++}else e[2*u]=m+ut[0]*i,e[2*u+1]=g+ut[1]*i,u++}else ut[0]=st[1],ut[1]=-st[0],q(ut,ut),e[2*u]=m+ut[0]*o,e[2*u+1]=g+ut[1]*o,u++;else ut[0]=ct[1],ut[1]=-ct[0],q(ut,ut),e[2*u]=m+ut[0]*o,e[2*u+1]=g+ut[1]*o,u++}return l}function ht(t,e,n,r,i){const o=null!=r?[]:new Float32Array(t.length);if(lt(t,o,0,e&&e.length?e[0]:t.length/2,0,n,r,i),e)for(let a=0;a<e.length;a++){const s=e[a];lt(t,o,s,e[a+1]||t.length/2,null!=r?o.length/2:s,n,r,i)}return o}function ft(t,e,n,r){for(let i=0;i<Math.floor((r-n)/2);i++)for(let o=0;o<e;o++){const a=(i+n)*e+o,s=(r-i-1)*e+o,c=t[a];t[a]=t[s],t[s]=c}return t}function dt(t,e){let n=t.length/2,r=0,i=e&&e.length?e[0]:n;ot(t,r,i)>0&&ft(t,2,r,i);for(let o=1;o<(e?e.length:0)+1;o++)r=e[o-1],i=e[o]||n,ot(t,r,i)<0&&ft(t,2,r,i)}function pt(t){t.depth=t.depth||1,t.bevelSize=t.bevelSize||0,t.bevelSegments=null==t.bevelSegments?2:t.bevelSegments,t.smoothSide=t.smoothSide||!1,t.smoothBevel=t.smoothBevel||!1,t.simplify=t.simplify||0,"number"==typeof t.depth&&(t.bevelSize=Math.min(t.bevelSegments>0?t.bevelSize:0,t.depth/2)),t.bevelSize>0||(t.bevelSegments=0),t.bevelSegments=Math.round(t.bevelSegments);const e=t.boundingRect;if(t.translate=t.translate||[0,0],t.scale=t.scale||[1,1],t.fitRect){let n=null==t.fitRect.x?e.x||0:t.fitRect.x,r=null==t.fitRect.y?e.y||0:t.fitRect.y,i=t.fitRect.width,o=t.fitRect.height;null==i?null!=o?i=o/e.height*e.width:(i=e.width,o=e.height):null==o&&(o=i/e.width*e.height),t.scale=[i/e.width,o/e.height],t.translate=[(n-e.x)*t.scale[0],(r-e.y)*t.scale[1]]}}const mt=[[0,0],[1,0],[1,1],[0,0],[1,1],[0,1]];function gt(t,{vertices:e,topVertices:n,depth:r,rect:i},o,a,s,c){const u=a-o,l=c.smoothSide?1:2,h=u*l,f=c.smoothBevel?1:2,d=Math.min(r/2,c.bevelSize),p=c.bevelSegments,m=s.vertex,g=Math.max(i.width,i.height,r);if(d>0){const i=[0,0,1],a=[],c=[0,0,-1],v=[];let y=0,_=new Float32Array(u);for(let x=0;x<2;x++){const b=0===x?r-d:d;for(let r=0;r<=p*f;r++){let w,M,S=0;for(let A=0;A<u;A++){for(let m=0;m<l;m++){let l=2*((A+m)%u+o);a[0]=e[l]-n[l],a[1]=e[l+1]-n[l+1],a[2]=0;const y=Math.sqrt(a[0]*a[0]+a[1]*a[1]);a[0]/=y,a[1]/=y;const C=(Math.floor(r/f)+r%f)/p;0===x?it(v,i,a,C):it(v,a,c,C);const E=0===x?C:1-C,T=d*Math.sin(E*Math.PI/2),I=y*Math.cos(E*Math.PI/2),L=d*y/Math.sqrt(T*T+I*I),P=v[0]*L+n[l],R=v[1]*L+n[l+1],O=v[2]*L+b;if(t.position[3*s.vertex]=P,t.position[3*s.vertex+1]=R,t.position[3*s.vertex+2]=O,(A>0||m>0)&&(S+=Math.sqrt((w-P)*(w-P)+(M-R)*(M-R))),r>0||x>0){let e=3*(s.vertex-h),n=t.position[e],r=t.position[e+1],i=t.position[e+2];_[A]+=Math.sqrt((n-P)*(n-P)+(r-R)*(r-R)+(i-O)*(i-O))}t.uv[2*s.vertex]=S/g,t.uv[2*s.vertex+1]=_[A]/g,w=P,M=R,s.vertex++}if(f>1&&r%f||1===f&&r>=1)for(let e=0;e<6;e++){const n=(mt[e][0]+A*l)%h,r=mt[e][1]+y;t.indices[s.index++]=(r-1)*h+n+m}}y++}}}else for(let n=0;n<2;n++){const i=0===n?r-d:d;let a,c,h=0;for(let n=0;n<u;n++)for(let r=0;r<l;r++){const l=2*((n+r)%u+o),f=e[l],d=e[l+1];t.position[3*s.vertex]=f,t.position[3*s.vertex+1]=d,t.position[3*s.vertex+2]=i,(n>0||r>0)&&(h+=Math.sqrt((a-f)*(a-f)+(c-d)*(c-d))),t.uv[2*s.vertex]=h/g,t.uv[2*s.vertex+1]=i/g,a=f,c=d,s.vertex++}}const v=d>0?p*f+1:1;for(let e=0;e<u;e++)for(let n=0;n<6;n++){const r=(mt[n][0]+e*l)%h,i=mt[n][1]+v;t.indices[s.index++]=(i-1)*h+r+m}}function vt({indices:t,vertices:e,topVertices:n,rect:r,depth:i},o,a,s){if(e.length<=4)return;const c=a.vertex,u=t.length;for(let e=0;e<u;e++)o.indices[a.index++]=c+t[e];const l=Math.max(r.width,r.height);for(let t=0;t<(s.excludeBottom?1:2);t++)for(let e=0;e<n.length;e+=2){const s=n[e],c=n[e+1];o.position[3*a.vertex]=s,o.position[3*a.vertex+1]=c,o.position[3*a.vertex+2]=(1-t)*i,o.uv[2*a.vertex]=(s-r.x)/l,o.uv[2*a.vertex+1]=(c-r.y)/l,a.vertex++}if(!s.excludeBottom){const n=e.length/2;for(let e=0;e<u;e+=3)for(let r=0;r<3;r++)o.indices[a.index++]=c+n+t[e+2-r]}}function yt(t,e){let n=0,r=0;for(let i=0;i<t.length;i++){const{indices:o,vertices:a,holes:s,depth:c}=t[i],u=a.length/2,l=Math.min(c/2,e.bevelSize)>0?e.bevelSegments:0;n+=o.length*(e.excludeBottom?1:2),r+=u*(e.excludeBottom?1:2);const h=2+2*l;let f=0,d=0;for(let t=0;t<(s?s.length:0)+1;t++){0===t?d=s&&s.length?s[0]:u:(f=s[t-1],d=s[t]||u),n+=6*(d-f)*(h-1);const i=(d-f)*(e.smoothSide?1:2);r+=i*h+(e.smoothBevel?0:l*i*2)}}const i={position:new Float32Array(3*r),indices:new(r>65535?Uint32Array:Uint16Array)(n),uv:new Float32Array(2*r)},o={vertex:0,index:0};for(let n=0;n<t.length;n++)vt(t[n],i,o,e);for(let n=0;n<t.length;n++){const{holes:r,vertices:a}=t[n],s=a.length/2;let c=0,u=r&&r.length?r[0]:s;if(gt(i,t[n],c,u,o,e),r)for(let a=0;a<r.length;a++)c=r[a],u=r[a+1]||s,gt(i,t[n],c,u,o,e)}for(let t=0;t<i.uv.length;t++){const e=i.uv[t];e>0&&Math.round(e)===e?i.uv[t]=1:i.uv[t]=e%1}return i.normal=function(t,e){function n(t,e,n,r){t[0]=e,t[1]=n,t[2]=r}const r=[],i=[],o=[],a=[],s=[],c=[],u=t.length,l=new Float32Array(e.length);for(let h=0;h<u;){const u=3*t[h++],f=3*t[h++],d=3*t[h++];n(r,e[u],e[u+1],e[u+2]),n(i,e[f],e[f+1],e[f+2]),n(o,e[d],e[d+1],e[d+2]),tt(a,r,i),tt(s,i,o),nt(c,a,s);for(let t=0;t<3;t++)l[u+t]=l[u+t]+c[t],l[f+t]=l[f+t]+c[t],l[d+t]=l[d+t]+c[t]}for(var h=0;h<l.length;)n(c,l[h],l[h+1],l[h+2]),et(c,c),l[h++]=c[0],l[h++]=c[1],l[h++]=c[2];return l}(i.indices,i.position),i.boundingRect=t[0]&&t[0].rect,i}function _t(t,e,n){const r=n.lineWidth,i=t.length,o=new Float32Array(2*i),a=n.translate||[0,0],s=n.scale||[1,1];for(let e=0,n=0;e<i;e++)o[n++]=t[e][0]*s[0]+a[0],o[n++]=t[e][1]*s[1]+a[1];ot(o,0,i)<0&&ft(o,2,0,i);const c=[],u=[],l=n.miterLimit,h=lt(o,u,0,i,0,-r/2,l,!1);ft(o,2,0,i);const f=lt(o,c,0,i,0,-r/2,l,!1),d=(c.length+u.length)/2,p=new Float32Array(2*d);let m=0;const g=u.length/2;for(let t=0;t<u.length;t++)p[m++]=u[t];for(let t=0;t<c.length;t++)p[m++]=c[t];const v=new(d>65535?Uint32Array:Uint16Array)(3*(2*(i-1)+(d-2*i)));let y=0;for(let t=0;t<i-1;t++){const e=t+1;v[y++]=g-1-h[t],v[y++]=g-1-h[t]-1,v[y++]=f[t]+1+g,v[y++]=g-1-h[t],v[y++]=f[t]+1+g,v[y++]=f[t]+g,f[e]-f[t]==2?(v[y++]=f[t]+2+g,v[y++]=f[t]+1+g,v[y++]=g-h[e]-1):h[e]-h[t]==2&&(v[y++]=f[e]+g,v[y++]=g-1-(h[t]+1),v[y++]=g-1-(h[t]+2))}const _=n.bevelSize>0?ht(p,[],n.bevelSize,null,!0):p,x=n.boundingRect;return{vertices:p,indices:v,topVertices:_,rect:{x:x.x*s[0]+a[0],y:x.y*s[1]+a[1],width:x.width*s[0],height:x.height*s[1]},depth:"function"==typeof n.depth?n.depth(e):n.depth,holes:[]}}function xt(t,e){const n=[];for(let r=0;r<t.length;r++){const i=t[r],o=[],a=i.length;let s=i[a-1][0],c=i[a-1][1],u=0;for(let t=0;t<a;t++){let n=i[t][0],r=i[t][1];const a=n-s,l=r-c;u+=Math.sqrt(a*a+l*l),u>e&&(o.push(i[t]),u=0),s=n,c=r}o.length>=3&&n.push(o)}return n.length>0?n:null}function bt(t,e){const n=[];for(let r=0;r<t.length;r++){let i=t[r];i=Y(i,e,!0),i.length>=3&&n.push(i)}return n.length>0?n:null}function wt(t,e,n){for(let r=0;r<t.length;r++)e[0]=Math.min(t[r][0],e[0]),e[1]=Math.min(t[r][1],e[1]),n[0]=Math.max(t[r][0],n[0]),n[1]=Math.max(t[r][1],n[1])}const Mt=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"];function St(t){return t.geometry?t.geometry.type:null}function At(t){const e=St(t);if(e)for(let t=0,n=Mt.length;t<n;t++)if(Mt[t]===e)return!0;return!1}function Ct(t){const e=St(t);return!(!e||e!==Mt[4]&&e!==Mt[5])}function Et(t){const e=St(t);return!(!e||e!==Mt[2]&&e!==Mt[3])}function Tt(t){const e=St(t);return!(!e||e!==Mt[0]&&e!==Mt[1])}function It(t){const e=St(t);return!!(e&&e.indexOf("Multi")>-1)}function Lt(t){return t.geometry?t.geometry.coordinates:[]}function Pt(t,e){const n=St(t);if(!n||!t.geometry)return null;const i=t.geometry.coordinates;if(!i)return null;let o=0,a=0,s=0;switch(n){case"Point":o=i[0],a=i[1],s++;break;case"MultiPoint":case"LineString":for(let t=0,e=i.length;t<e;t++)o+=i[t][0],a+=i[t][1],s++;break;case"MultiLineString":case"Polygon":for(let t=0,e=i.length;t<e;t++)for(let e=0,n=i[t].length;e<n;e++)o+=i[t][e][0],a+=i[t][e][1],s++;break;case"MultiPolygon":for(let t=0,e=i.length;t<e;t++)for(let e=0,n=i[t].length;e<n;e++)for(let n=0,r=i[t][e].length;n<r;n++)o+=i[t][e][n][0],a+=i[t][e][n][1],s++}const c=o/s,u=a/s;return e?(e.x=c,e.y=u,e):new r.Coordinate(c,u)}function Rt(t){const e=St(t);if(!e||!t.geometry)return null;const n=t.geometry,r=t.properties||{},i=n.coordinates;if(!i)return null;const o=[];let a;switch(e){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}if(a)for(let t=0,e=i.length;t<e;t++)o.push({type:"Feature",geometry:{type:a,coordinates:i[t]},properties:r});else o.push(t);return o}function Ot(t,e,n){const o=[],a=[];if(Array.isArray(t)&&t[0]instanceof i.Vector3)for(let e=0,n=t.length;e<n;e++){const n=t[e];o.push(n.x,n.y,n.z),a.push(n)}else{Array.isArray(t)&&(t=new r.LineString(t));const i=0;let s,c;At(t)?(s=Lt(t),c=Pt(t)):t instanceof r.LineString&&(s=t.getCoordinates(),c=t.getCenter());const u=e.coordinateToVector3(n||c);for(let t=0,n=s.length;t<n;t++){let n=s[t];Array.isArray(n)&&(n=new r.Coordinate(n));const c=e.coordinateToVector3(n,i).sub(u);o.push(c.x,c.y,c.z),a.push(c)}}return{positions:o,positionsV:a}}function kt(t,e,n,r){const i=[],o=[],a=[];for(let e=0,n=t.length;e<n;e++){const n=t[e];for(let t=0,e=n.length;t<e;t++){const e=n[t];a.length>0?e.join(",").toString()!==a[a.length-1].join(",").toString()&&a.push(e):a.push(e)}}for(let t=0,s=a.length;t<s;t++){const s=a[t];let c;const u=s.join(",").toString();c=n&&n[u]?n[u]:e.coordinateToVector3(s,0).sub(r),o.push(c),i.push(c.x,c.y,c.z)}return{positions:i,positionsV:o,lnglats:a}}function Bt(t,e=1,n=1,r,i){const o=Ot(t,r,i).positionsV,a=[];for(let t=0,e=o.length;t<e;t++){const e=o[t];a.push([e.x,e.y])}const{indices:s,position:c,normal:u,uv:l}=function(t,e){e=Object.assign({},e);const n=[1/0,1/0],r=[-1/0,-1/0];for(let e=0;e<t.length;e++)wt(t[e],n,r);e.boundingRect=e.boundingRect||{x:n[0],y:n[1],width:r[0]-n[0],height:r[1]-n[1]},pt(e);const i=e.scale||[1,1];null==e.lineWidth&&(e.lineWidth=1),null==e.miterLimit&&(e.miterLimit=2);const o=[];for(let n=0;n<t.length;n++){let r=t[n];const a=e.simplify/Math.max(i[0],i[1]);a>0&&(r=Y(r,a,!0)),o.push(_t(r,n,e))}return yt(o,e)}([a],{lineWidth:e,depth:n});return{position:c,normal:u,indices:s,uv:l}}function Dt(t){let e,n=[];return t instanceof r.MultiLineString?(n=t.getGeometries(),e=t.getCenter()):t instanceof r.LineString?(n.push(t),e=t.getCenter()):At(t)&&(e=Pt(t),It(t)?n=Rt(t):n.push(t)),{lineStrings:n,center:e}}const Ft={altitude:0,bottomHeight:0,colors:null};var Ut=class extends w{constructor(t,e,n,o){e=r.Util.extend({},Ft,e,{layer:o,lineString:t}),super(),this._initOptions(e);const{lineStrings:s,center:u}=Dt(t),l=[];for(let t=0,e=s.length;t<e;t++){const e=s[t],{positionsV:n}=Ot(e,o,u);for(let t=0,e=n.length;t<e;t++){const r=n[t];t>0&&t<e-1&&l.push(r.x,r.y,r.z),l.push(r.x,r.y,r.z)}}const h=new i.BufferGeometry;a(h,"position",new i.Float32BufferAttribute(l,3)),H(h,e.bottomHeight,o);const f=function(t){const e=[];return t&&t.length&&t.forEach(t=>{t=t instanceof i.Color?t:new i.Color(t),e.push(t.r,t.g,t.b)}),e}(e.colors);f&&f.length&&(a(h,"color",new i.Float32BufferAttribute(f,3)),n.vertexColors=c()),this._createLineSegments(h,n);const{altitude:d}=e,p=o.distanceToVector3(d,d).x,m=o.coordinateToVector3(u,p);this.getObject3d().position.copy(m),this.type="Line"}};const jt=new i.Color("#fff"),Nt=new i.Color("#fff");function zt(t,e,n,r){const{position:o,normal:s,uv:c,indices:u}=Gt(t,e,n,r),l=new Float32Array(o.length);l.fill(1,0,o.length);const h=new i.BufferGeometry;return a(h,"color",new i.BufferAttribute(l,3)),a(h,"normal",new i.BufferAttribute(s,3)),a(h,"position",new i.BufferAttribute(o,3)),a(h,"uv",new i.BufferAttribute(c,2)),h.setIndex(new i.Uint32BufferAttribute(u,1)),h}function Gt(t,e,n,r,i,o){const a=Wt(t,n,r,i,!1);if(!a)return null;o?(null==o[e]&&(o[e]=n.distanceToVector3(e,e).x),e=o[e]):e=n.distanceToVector3(e,e).x;const{position:s,normal:c,uv:u,indices:l}=function(t,e){e=Object.assign({},e);const n=[1/0,1/0],r=[-1/0,-1/0];for(let e=0;e<t.length;e++)wt(t[e][0],n,r);e.boundingRect=e.boundingRect||{x:n[0],y:n[1],width:r[0]-n[0],height:r[1]-n[1]},pt(e);const i=[],o=e.translate||[0,0],a=e.scale||[1,1],s=e.boundingRect,c={x:s.x*a[0]+o[0],y:s.y*a[1]+o[1],width:s.width*a[0],height:s.height*a[1]},u=Math.min(s.width,s.height)/1e5;for(let n=0;n<t.length;n++){let r=xt(t[n],u);if(!r)continue;const s=e.simplify/Math.max(a[0],a[1]);if(s>0&&(r=bt(r,s)),!r)continue;const{vertices:l,holes:h,dimensions:f}=V.a.flatten(r);for(let t=0;t<l.length;)l[t]=l[t++]*a[0]+o[0],l[t]=l[t++]*a[1]+o[1];if(dt(l,h),2!==f)throw new Error("Only 2D polygon points are supported");const d=e.bevelSize>0?ht(l,h,e.bevelSize,null,!0):l,p=at(d,h,f);i.push({indices:p,vertices:l,topVertices:d,holes:h,rect:c,depth:"function"==typeof e.depth?e.depth(n):e.depth})}return yt(i,e)}(a,{depth:e});return{position:s,normal:c,uv:u,indices:l}}function Ht(t,e,n,r){void 0===r&&(r=0);const o=t.attributes.position.array,s=o.length;Nt.setStyle(e),jt.setStyle(n);const c=[];if(Array.isArray(r))for(let t=0,e=r.length;t<e;t++){const{middleZ:e,start:n,end:i}=r[t].position;for(let t=n;t<i;t+=3)o[t+2]>e?(c[t]=jt.r,c[t+1]=jt.g,c[t+2]=jt.b):(c[t]=Nt.r,c[t+1]=Nt.g,c[t+2]=Nt.b)}else for(let t=0;t<s;t+=3)o[t+2]>r?c.push(jt.r,jt.g,jt.b):c.push(Nt.r,Nt.g,Nt.b);return a(t,"color",new i.Float32BufferAttribute(c,3,!0)),c}function Wt(t,e,n,i,o=!1){if(!t)return null;let a=[];if(t instanceof r.MultiPolygon)a=t.getGeometries().map(r=>Vt(r,e,n||t.getCenter(),i,o));else if(t instanceof r.Polygon){const r=Vt(t,e,n||t.getCenter(),i,o);a.push(r)}else if(Ct(t))if(It(t)){const r=Rt(t);for(let s=0,c=r.length;s<c;s++)a.push(Vt(r[s],e,n||Pt(t),i,o))}else{const r=Vt(t,e,n||Pt(t),i,o);a.push(r)}return a}function Vt(t,e,n,i,o=!1){let a,s,c;if(Ct(t)){const e=Lt(t);a=e[0],s=e.slice(1,e.length),n=n||Pt(t)}else t instanceof r.Polygon&&(a=t.getShell(),s=t.getHoles(),n=n||t.getCenter());i=i||e.coordinateToVector3(n),c=o?new Float32Array(2*a.length):[];for(let t=0,n=a.length;t<n;t++){const n=a[t],r=e.coordinateToVector3(n).sub(i);if(o){const e=2*t;c[e]=r.x,c[e+1]=r.y}else c.push([r.x,r.y])}const u=[o?c.buffer:c];if(s&&s.length>0)for(let t=0,n=s.length;t<n;t++){const n=o?new Float32Array(2*s[t].length):[];for(let r=0,a=s[t].length;r<a;r++){const a=s[t][r],c=e.coordinateToVector3(a).sub(i);if(o){const t=2*r;n[t]=c.x,n[t+1]=c.y}else n.push([c.x,c.y])}u.push(o?n.buffer:n)}return u}const Zt={bottomHeight:0,width:3,height:1,altitude:0,topColor:null,bottomColor:"#2d2f61"};var Qt=class extends w{constructor(t,e,n,i){e=r.Util.extend({},Zt,e,{layer:i,lineString:t}),super(),this._initOptions(e);const{height:o,width:a,bottomColor:s,topColor:u,bottomHeight:l,altitude:h}=e,f=i.distanceToVector3(o,o).x,d=i.distanceToVector3(a,a).x,{lineStrings:p,center:m}=Dt(t),g=[];let v=0;const y={};for(let t=0,e=p.length;t<e;t++){const e=Bt(p[t],d,f,i,m);v=H(e,l,i,y),g.push(e)}const _=M(g);u&&(Ht(_,s,u,v+f/2),n.vertexColors=c()),this._createMesh(_,n);const x=i.distanceToVector3(h,h).x,b=i.coordinateToVector3(m,x);this.getObject3d().position.copy(b),this.type="ExtrudeLine"}};const Xt={altitude:0,height:1,bottomHeight:0,topColor:null,bottomColor:"#2d2f61"};var Yt=class extends w{constructor(t,e,n,i){e=r.Util.extend({},Xt,e,{layer:i,polygon:t}),super(),this._initOptions(e);const{height:o,topColor:a,bottomColor:s,altitude:u,bottomHeight:l}=e,h=zt(t,o,i),f=Ct(t)?Pt(t):t.getCenter(),d=H(h,l,i);a&&(Ht(h,s,a,d+i.distanceToVector3(o,o).x/2),n.vertexColors=c()),this._createMesh(h,n);const p=i.distanceToVector3(u,u).x,m=i.coordinateToVector3(f,p);this.getObject3d().position.copy(m),this.type="ExtrudePolygon"}};const Jt={altitude:0,coordinate:null};var qt=class extends w{constructor(t,e={},n){e.coordinate||(console.warn("coordinate is null,it is important to locate the model"),e.coordinate=n.getMap().getCenter()),e=r.Util.extend({},Jt,e,{layer:n,model:t}),super(),this._initOptions(e),this._createGroup(),this.getObject3d().add(t);const{altitude:i,coordinate:o}=e,a=n.distanceToVector3(i,i).x,s=n.coordinateToVector3(o,a);this.getObject3d().position.copy(s),this.type="Model"}};const Kt=Math.PI/180;function $t(t){return t*Kt}function te(t,e){if(!t||!e)return 0;Array.isArray(t)||(t=t.toArray()),Array.isArray(e)||(e=e.toArray());let n=$t(t[1]);const r=$t(e[1]),i=n-r,o=$t(t[0])-$t(e[0]);return n=2*Math.asin(Math.sqrt(Math.pow(Math.sin(i/2),2)+Math.cos(n)*Math.cos(r)*Math.pow(Math.sin(o/2),2))),n*=6378137,Math.round(1e5*n)/1e5}function ee(t,e){const{len:n,c1:r,c2:i}=t,o=i[0]-r[0],a=i[1]-r[1],s=e/n;return[r[0]+s*o,r[1]+s*a]}function ne(t,e,n,r){const i=e.length;t.attributes.normal.count=i,t.attributes.position.count=i;const o=t.attributes.position.array,a=t.attributes.normal.array;for(let t=0;t<i;t++)o[t]=e[t],a[t]=n[t];t.index.count=r.length;for(let e=0,n=r.length;e<n;e++)t.index.array[e]=r[e]}const re={trail:5,chunkLength:50,width:2,height:1,speed:1,altitude:0,interactive:!1};var ie=class extends w{constructor(t,e,n,o){e=r.Util.extend({},re,e,{layer:o,lineString:t}),super(),this._initOptions(e);const{width:s,height:c,altitude:u,speed:l,chunkLength:h,trail:f}=e;let d,p;At(t)?(d=Pt(t),p=Lt(t)):(d=t.getCenter(),p=t);const m=function(t,e=10){e=Math.max(e,1),Array.isArray(t)||(t=function(t){return t.getCoordinates().map(t=>t.toArray())}(t));const n=t.length;let r=[],i=0;for(let e=0;e<n-1;e++){const n=te(t[e],t[e+1]),o=Math.floor(n);r.push({c1:t[e],len:o,c2:t[e+1]}),i+=o}if(i<=e)return r.map(t=>[t.c1,t.c2]);if(1===r.length&&r[0].len<=e)return[[r[0].c1,r[0].c2]];const o=r.length;let a,s=0,c=0;const u=[];let l=[r[0].c1];for(;s<o;){const{len:t,c2:n}=r[s];if(c+=t,c<e&&(l.push(n),s===o-1&&u.push(l),s++),c===e&&(l.push(n),c=0,u.push(l),l=[n],s++),c>e){const n=t-c+e;a=ee(r[s],n),l.push(a),u.push(l),c=0,r[s].c1=a,r[s].len=t-n,l=[],l.push(a)}}return u}(p,h),g=o.coordinateToVector3(d),v={};for(let t=0,e=m.length;t<e;t++){const e=m[t];for(let t=0,n=e.length;t<n;t++){const n=e[t],r=n.join(",").toString();v[r]||(v[r]=o.coordinateToVector3(n).sub(g))}}const y=kt(m.slice(0,1),o,v,g).positionsV,_=new i.BufferGeometry,x=new Float32Array(3e3),b=new Float32Array(3e3),w=new Uint16Array(1e3);a(_,"position",new i.BufferAttribute(x,3)),a(_,"normal",new i.BufferAttribute(b,3)),_.setIndex(new i.BufferAttribute(w,1));const M=o.distanceToVector3(s,s).x,S=o.distanceToVector3(c,c).x,A=Bt(y,M,S,o);ne(_,A.position,A.normal,A.indices),this._createMesh(_,n);const C=o.distanceToVector3(u,u).x,E=o.coordinateToVector3(d,C);this.getObject3d().position.copy(E),this._params={index:0,chunkLines:m,geometries:[],layer:o,trail:Math.max(1,f),lineWidth:M,depth:S,speed:Math.min(1,l),idx:0,loaded:!1,positionMap:v,centerPt:g},this._init(this._params),this.type="ExtrudeLineTrail"}_init(t){const{layer:e,trail:n,lineWidth:r,depth:i,chunkLines:o,positionMap:a,centerPt:s}=t,c=o.length,u=[];for(let t=0;t<c;t++){const c=kt(o.slice(t,t+n),e,a,s).positionsV;u.push(Bt(c,r,i,e))}this._params.geometries=u,this._params.loaded=!0}_animation(){const{index:t,geometries:e,speed:n,idx:r,chunkLines:i,trail:o,lineWidth:a,depth:s,loaded:c,layer:u,positionMap:l,centerPt:h}=this._params;if(!c)return;const f=Math.round(t);if(f>r){this._params.idx++;let t=e[f];t||(t=Bt(kt(i.slice(f,f+o),u,l,h).positionsV,a,s,u),e[f]=t);const n=this.getObject3d();ne(n.geometry,t.position,t.normal,t.indices),n.geometry.attributes.position.needsUpdate=!0,n.geometry.attributes.normal.needsUpdate=!0,n.geometry.index.needsUpdate=!0}t>=i.length-1&&(this._params.index=-1,this._params.idx=-1),this._params.index+=n}};const oe=["click","mousemove","mousedown","mouseup","dblclick","contextmenu"].join(" ").toString(),ae=new i.MeshBasicMaterial;ae.vertexColors=c();var se=t=>class extends t{_initBaseObjectsEvent(t){if(t&&Array.isArray(t)&&t.length)for(let e=0,n=t.length;e<n;e++){const n=t[e];this._proxyEvent(n)}return this}_proxyEvent(t){t.on("add",t=>{this._showGeometry(t.target,!0)}),t.on("remove",t=>{this._showGeometry(t.target,!1)}),t.on("mouseout",t=>{this._mouseover=!1,this.fire("mouseout",Object.assign({},t,{target:this,selectMesh:this.getSelectMesh?this.getSelectMesh():null}))}),t.on(oe,t=>{this.fire(t.type,Object.assign({},t,{target:this,selectMesh:this.getSelectMesh?this.getSelectMesh():null}))})}_getHideGeometryIndex(t){const e=[];let n=0;for(let r=0,i=this._geometriesAttributes.length;r<i;r++)!0===this._geometriesAttributes[r].hide&&(e.push(r),n+=this._geometriesAttributes[r][t].count);return{indexs:e,count:n}}_updateAttribute(t,e){const{indexs:n}=this._getHideGeometryIndex(e),r=this._geometryCache.attributes[e].array,o=r.length;for(let e=0;e<o;e++)t.array[e]=r[e];let a=NaN;this.getObject3d()instanceof i.LineSegments&&(a=0);for(let r=0;r<n.length;r++){const i=n[r],{start:o,end:s}=this._geometriesAttributes[i][e];for(let e=o;e<s;e++)t.array[e]=a}return this}_showGeometry(t,e){let n;if(t&&(n=t.getOptions().index),null!=n){const t=this._geometriesAttributes[n],{hide:r}=t;if(r===e)return this;t.hide=e;const i=this.getObject3d().geometry;this._updateAttribute(i.attributes.position,"position"),i.attributes.position.needsUpdate=!0,this.isHide=e}return this}getSelectMesh(){const t=this._getIndex();if(null!=t)return{data:this._datas[t],baseObject:this._baseObjects[t]}}_getIndex(t){return null==t&&(t=this.faceIndex||this.index),t}_init(){const t=this.getLayer().getPick();this.on("add",()=>{t.add(this.pickObject3d)}),this.on("remove",()=>{t.remove(this.pickObject3d)})}_setPickObject3d(){const t=this._geometryCache||this.getObject3d().geometry.clone(),e=this.getLayer().getPick(),{_geometriesAttributes:n}=this,r=[];for(let t=0,i=n.length;t<i;t++){const i=e.getColor(),o=i.getHex();this._colorMap[o]=t;const{count:a}=n[t].position;this._datas[t].colorIndex=o;for(let t=0;t<a;t++)r.push(i.r,i.g,i.b)}a(t,"color",new i.Float32BufferAttribute(r,3,!0));const o=e.getColor().getHex(),s=new i.Mesh(t,ae);s.position.copy(this.getObject3d().position),s._colorIndex=o,this.setPickObject3d(s)}};let ce;var ue;function le(){return r.worker||console.error("maptalks.worker is not defined,You can't use ThreeVectorTileLayer"),ue||(ue=new ce("__maptalks.three__")),ue}r.worker&&(ce=class extends r.worker.Actor{test(t,e){this.send(t,null,e)}pushQueue(t={}){const{type:e,data:n,callback:r,layer:i,key:o,center:a,lineStrings:s}=t;let c;"Polygon"===e?c=function(t=[],e,n){const r=n.coordinateToVector3(e),i=t.length,o=[],a=[],s={};for(let c=0;c<i;c++){const i=t[c],u=Wt(i,n,e,r,!0);for(let t=0,e=u.length;t<e;t++){const e=u[t];for(let t=0,n=e.length;t<n;t++)a.push(e[t])}const l=Ct(i)?i.properties:i.getProperties()||{};let h=l.height||1,f=l.bottomHeight||0;void 0!==f&&"number"==typeof f&&0!==f&&(void 0===s[f]&&(s[f]=n.distanceToVector3(f,f).x),f=s[f]),void 0===s[h]&&(s[h]=n.distanceToVector3(h,h).x),h=s[h],o.push({data:u,height:h,bottomHeight:f})}return{datas:o,transfer:a}}(n,a,i):"LineString"===e&&(c=function(t,e,n,r){const i=[],o=[],a={},s=t.length;for(let c=0;c<s;c++){const s=t[c],u=Et(r[c])?r[c].properties:r[c].getProperties()||{},l=u.width||1,h=u.height||1;let f=u.bottomHeight||0;void 0!==f&&"number"==typeof f&&0!==f&&(void 0===a[f]&&(a[f]=n.distanceToVector3(f,f).x),f=a[f]),void 0===a[h]&&(a[h]=n.distanceToVector3(h,h).x),void 0===a[l]&&(a[l]=n.distanceToVector3(l,l).x);const d=[];for(let t=0,r=s.length;t<r;t++){const r=Ot(s[t],n,e).positionsV,i=new Float32Array(2*r.length);for(let t=0,e=r.length;t<e;t++)i[2*t]=r[t].x,i[2*t+1]=r[t].y;o.push(i),d.push(i)}i.push({data:d,height:a[h],width:a[l],bottomHeight:f})}return{datas:i,transfer:o}}(n,a,i,s)),this.send({type:e,datas:c.datas},c.transfe,(function(t,e){t&&console.error(t),e.key=o,r(e)}))}});const he={altitude:0,height:1,bottomHeight:0,topColor:null,bottomColor:"#2d2f61"},fe=new r.Coordinate(0,0);class de extends(se(w)){constructor(t,e,n,i){Array.isArray(t)||(t=[t]);const o=t.length;0===o&&console.error("polygons is empty");let a=1/0,s=1/0,u=-1/0,l=-1/0;for(let e=0;e<o;e++){const n=t[e],i=n.getCenter?n.getCenter():Pt(n,fe);let o,c;Array.isArray(i)?(o=i[0],c=i[1]):i instanceof r.Coordinate&&(o=i.x,c=i.y),a=Math.min(a,o),s=Math.min(s,c),u=Math.max(u,o),l=Math.max(l,c)}const h=new r.Coordinate((a+u)/2,(s+l)/2);e=r.Util.extend({},he,e,{layer:i,polygons:t,coordinate:h});const{topColor:f,bottomColor:d,altitude:p,asynchronous:m}=e;let g;const v=[],y=[],_=[];if(m){var x=le();g=I(),x.pushQueue({type:"Polygon",layer:i,key:e.key,center:h,data:t,callback:t=>{const{faceMap:e,geometriesAttributes:r}=t;this._faceMap=e,this._geometriesAttributes=r;const i=C(t);this._geometryCache=E(i),f&&(Ht(i,d,f,r),n.vertexColors=c());const o=this.getObject3d();o.geometry=i,o.material.needsUpdate=!0,this._setPickObject3d(),this._init(),this.isAdd&&this.getLayer().getPick().add(this.pickObject3d),this._fire("workerload",{target:this})}})}else{const e=i.coordinateToVector3(h),r=[];let a=0,s=0,u=0,l=0;const p={};for(let n=0;n<o;n++){const o=t[n],c=Ct(o)?o.properties:o.getProperties()||{},f=c.height||1,d=c.bottomHeight||0,m=Gt(o,f,i,h,e,p);r.push(m);const g=H(m,d,i,p),{position:v,normal:x,uv:b,indices:w}=m,M=w.length/3;y[n]=[a+1,a+M],a+=M;const S=v.length/3,A=x.length/3,C=b.length/2;_[n]={position:{middleZ:g+p[f]/2,count:S,start:s,end:s+3*S},normal:{count:A,start:u,end:u+3*A},uv:{count:C,start:l,end:l+2*C},hide:!1},s+=3*S,u+=3*A,l+=2*C}g=M(r),f&&(Ht(g,d,f,_),n.vertexColors=c())}super(),this._initOptions(e),this._createMesh(g,n);const b=i.distanceToVector3(p,p).x,w=i.coordinateToVector3(h,b);this.getObject3d().position.copy(w),this._faceMap=y,this._baseObjects=v,this._datas=t,this._geometriesAttributes=_,this.faceIndex=null,this._geometryCache=g.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(v),m||(this._setPickObject3d(),this._init()),this.type="ExtrudePolygons"}getSelectMesh(){const t=this._getIndex();if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],n=Object.assign({},this.options,Ct(e)?e.properties:e.getProperties(),{index:t});this._baseObjects[t]=new Yt(e,n,this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}identify(t){return this.picked}}var pe=de;function me(t,e,n){const r=t.project(n),i=e.width/2,o=e.height/2;return{x:Math.round(r.x*i+i),y:Math.round(-r.y*o+o)}}const ge={altitude:0,height:0,color:null},ve=new i.Vector3;var ye=class extends w{constructor(t,e,n,o){e=r.Util.extend({},ge,e,{layer:o,coordinate:t}),super();let{height:s,altitude:c,color:u,size:l}=e;const h=[],f=[];u&&(u=u instanceof i.Color?u:new i.Color(u),f.push(u.r,u.g,u.b));const d=o.distanceToVector3(s,s).x,p=o.coordinateToVector3(t,d);h.push(0,0,p.z);const m=new i.BufferGeometry;a(m,"position",new i.Float32BufferAttribute(h,3,!0)),f.length&&a(m,"color",new i.Float32BufferAttribute(f,3,!0)),void 0!==l&&a(m,"size",new i.Float32BufferAttribute([l],1,!0)),e.positions=p,this._initOptions(e),this._createPoints(m,n);const g=o.distanceToVector3(c,c).x,v=new i.Vector3(p.x,p.y,g);this.getObject3d().position.copy(v),this.type="Point"}identify(t){const e=this.getLayer(),n=this.getMap().getSize(),r=this.getLayer().getCamera(),i=this.getOptions().positions,o=this.getOptions().altitude;let a=this.getObject3d().material.size;void 0===a&&(a=this.options.size||1);const s=this.getMap().coordToContainerPoint(t),c=e.distanceToVector3(o,o).x;ve.x=i.x,ve.y=i.y,ve.z=i.z+c;const u=me(ve,n,r);return Math.sqrt(Math.pow(s.x-u.x,2)+Math.pow(s.y-u.y,2))<=a/2}};function _e(t,e){const{minx:n,miny:r,maxx:i,maxy:o}=t,[a,s]=e;return n<=a&&a<=i&&r<=s&&s<=o}class xe{constructor(t,e,n,r){this.minlng=t,this.minlat=e,this.maxlng=n,this.maxlat=r,this.minx=1/0,this.miny=1/0,this.maxx=-1/0,this.maxy=-1/0,this.coordinates=[],this.positions=[],this.indexs=[],this.key=null}updateBBoxPixel(t){let e=1/0,n=1/0,i=-1/0,o=-1/0;const{minlng:a,minlat:s,maxlng:c,maxlat:u}=this;return[[a,s],[a,u],[c,s],[c,u]].map(t=>new r.Coordinate(t)).map(e=>t.coordToContainerPoint(e)).forEach(t=>{e=Math.min(e,t.x),n=Math.min(n,t.y),i=Math.max(i,t.x),o=Math.max(o,t.y)}),this.minx=e,this.miny=n,this.maxx=i,this.maxy=o,this}containsCoordinate(t){let e,n;Array.isArray(t)?(e=t[0],n=t[1]):t instanceof r.Coordinate&&(e=t.x,n=t.y);const{minlng:i,minlat:o,maxlng:a,maxlat:s}=this;return i<=e&&e<=a&&o<=n&&n<=s}isRecCross(t,e){const{x:n,y:r}=t,i={minx:n-e/2,miny:r-e/2,maxx:n+e/2,maxy:r+e/2},{minx:o,miny:a,maxx:s,maxy:c}=i;return!!(_e(this,[o,a])||_e(this,[o,c])||_e(this,[s,a])||_e(this,[s,c])||_e(i,[this.minx,this.miny])||_e(i,[this.minx,this.maxy])||_e(i,[this.maxx,this.miny])||_e(i,[this.maxx,this.maxy]))}static initGrids(t,e,n,r){const i=[],o=(n-t)/30,a=(r-e)/30;let s=t,c=e;for(let n=0;n<30;n++){s=t+n*o;for(let t=0;t<30;t++){c=e+t*a;const r=new xe(s,c,s+o,c+a);r.key=t+"-"+n,i.push(r)}}return i}}var be=xe;const we={altitude:0},Me=new i.Vector3;class Se extends(se(w)){constructor(t,e,n,o){Array.isArray(t)||(t=[t]),e=r.Util.extend({},we,e,{layer:o,points:t});let s=1/0,c=1/0,u=-1/0,l=-1/0;for(let e=0,n=t.length;e<n;e++){const{coordinate:n}=t[e];let i,o;Array.isArray(n)?(i=n[0],o=n[1]):n instanceof r.Coordinate&&(i=n.x,o=n.y),s=Math.min(s,i),c=Math.min(c,o),u=Math.max(u,i),l=Math.max(l,o)}const h=o.coordinateToVector3([(s+u)/2,(c+l)/2]),f=be.initGrids(s,c,u,l),d=f.length,p=[],m=[],g=[],v=[],y=[],_=[],x={};let b=0;for(let e=0,n=t.length;e<n;e++){let{coordinate:n,height:r,color:a,size:s}=t[e];a&&(a=a instanceof i.Color?a:new i.Color(a),g.push(a.r,a.g,a.b)),s&&(v.push(s),b=Math.max(b,s));const c=z(r,o,x),u=o.coordinateToVector3(n,c),l=u.clone().sub(h);p.push(l.x,l.y,l.z),m.push(u),_[e]={position:{count:1,start:3*e,end:3*e+3},hide:!1};for(let t=0;t<d;t++)if(f[t].containsCoordinate(n)){f[t].positions.push(u),f[t].indexs.push(e);break}}const w=new i.BufferGeometry;a(w,"position",new i.Float32BufferAttribute(p,3,!0)),g.length&&a(w,"color",new i.Float32BufferAttribute(g,3,!0)),v.length&&a(w,"size",new i.Float32BufferAttribute(v,1,!0)),e.positions=m,super(),this._initOptions(e),this._createPoints(w,n);const M=e.altitude,S=o.distanceToVector3(M,M).x,A=h.clone();A.z=S,this.getObject3d().position.copy(A),this._baseObjects=y,this._datas=t,this.faceIndex=null,this._geometriesAttributes=_,this._geometryCache=w.clone(),this.isHide=!1,this._initBaseObjectsEvent(y),this._grids=f,this._bindMapEvents(),this.type="Points",this.maxSize=b}_bindMapEvents(){const t=this.getMap(),e="zoomstart zooming zoomend movestart moving moveend pitch rotate";this.on("add",()=>{this._updateGrids(),t.on(e,this._updateGrids,this)}),this.on("remove",()=>{t.off(e,this._updateGrids,this)})}_updateGrids(){const t=this.getMap();this._grids.forEach(e=>{e.indexs.length&&e.updateBBoxPixel(t)})}getSelectMesh(){const t=this.faceIndex;if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],{coordinate:n,height:r,color:i,size:o}=e;this._baseObjects[t]=new ye(n,{height:r,index:t,color:i,size:o},this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}identify(t){const e=this.getLayer(),n=this.getMap().getSize(),r=this.getLayer().getCamera(),i=this.getOptions().altitude,o=this.getMap(),a=e.distanceToVector3(i,i).x;let s=this.getObject3d().material.size;const c=void 0===s,u=o.coordToContainerPoint(t),l=[];if(this._grids.forEach(t=>{t.indexs.length&&t.isRecCross(u,c?this.maxSize:s)&&l.push(t)}),l.length<1)return!1;for(let t=0,e=l.length;t<e;t++)for(let e=l[t].positions.length-1;e>=0;e--){c&&(s=this._datas[l[t].indexs[e]].size||1);const i=l[t].positions[e];Me.x=i.x,Me.y=i.y,Me.z=i.z+a;const o=me(Me,n,r);if(Math.sqrt(Math.pow(u.x-o.x,2)+Math.pow(u.y-o.y,2))<=s/2)return this.faceIndex=l[t].indexs[e],!0}return!1}}var Ae=Se;const Ce={coordinate:"",radius:10,height:100,radialSegments:6,altitude:0,topColor:"",bottomColor:"#2d2f61"};class Ee extends(se(w)){constructor(t,e,n,i){Array.isArray(t)||(t=[t]);const o=t.length,a=G(t),s=i.coordinateToVector3(a),u=[],l=[],h=[],f=[];let d=0,p=0,m=0,g=0;const v={};for(let e=0;e<o;e++){const o=r.Util.extend({index:e},Ce,t[e]),{radius:a,radialSegments:y,altitude:_,topColor:x,bottomColor:b,height:w,coordinate:M}=o,S=z(a,i,v),A=z(w,i,v),C=z(_,i,v),E=B({radius:S,height:A,radialSegments:y});x&&(D(E,b,x,"z",A/2),n.vertexColors=c());const T=i.coordinateToVector3(M).sub(s),I=E.attributes.position.array;for(let t=0,e=I.length;t<e;t+=3)I[t+2]+=C,I[t]+=T.x,I[t+1]+=T.y,I[t+2]+=T.z;u.push(E);const L=new N(M,o,n,i);l.push(L);const P=E.index.count/3;f[e]=[d+1,d+P],d+=P;const R=E.attributes.position.count,O=E.attributes.normal.count,k=E.attributes.uv.count;h[e]={position:{count:R,start:p,end:p+3*R},normal:{count:O,start:m,end:m+3*O},uv:{count:k,start:g,end:g+2*k},hide:!1},p+=3*R,m+=3*O,g+=2*k}super(),e=r.Util.extend({},{altitude:0,layer:i,points:t},e),this._initOptions(e);const y=F(u);this._createMesh(y,n);const _=e.altitude,x=i.distanceToVector3(_,_).x,b=s.clone();b.z=x,this.getObject3d().position.copy(b),this._faceMap=f,this._baseObjects=l,this._datas=t,this._geometriesAttributes=h,this.faceIndex=null,this._geometryCache=y.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(l),this._setPickObject3d(),this._init(),this.type="Bars"}identify(){return this.picked}}var Te=Ee;const Ie={width:3,height:1,altitude:0,topColor:null,bottomColor:"#2d2f61"};class Le extends(se(w)){constructor(t,e,n,i){Array.isArray(t)||(t=[t]);const o=[],a=[],s=t.length;for(let e=0;e<s;e++){const n=Dt(t[e]);o.push(n.center),a.push(n.lineStrings)}const u=G(o);e=r.Util.extend({},Ie,e,{layer:i,lineStrings:t,coordinate:u});const{altitude:l,topColor:h,bottomColor:f,asynchronous:d}=e;let p;const m=[],g=[];if(d){var v=le();p=I(),v.pushQueue({type:"LineString",layer:i,key:e.key,center:u,data:a,lineStrings:t,callback:t=>{const{faceMap:e,geometriesAttributes:r}=t;this._faceMap=e,this._geometriesAttributes=r;const i=C(t);this._geometryCache=E(i),h&&(Ht(i,f,h,r),n.vertexColors=c()),this.getObject3d().geometry=i,this.getObject3d().material.needsUpdate=!0,this._setPickObject3d(),this._init(),this.isAdd&&this.getLayer().getPick().add(this.pickObject3d),this._fire("workerload",{target:this})}})}else{const e=[];let o=0,l=[],d=0,m=0;const v={};for(let n=0;n<s;n++){const s=t[n],c=r.Util.extend({},Ie,At(s)?s.properties:s.getProperties(),{index:n}),{height:h,width:f,bottomHeight:p}=c,y=z(f,i,v),_=z(h,i,v),x=a[n],b=[];let w=0;for(let t=0,e=x.length;t<e;t++){const e=Bt(x[t],y,_,i,u);w=H(e,p,i,v),b.push(e)}const M=S(b);e.push(M);const{position:A,normal:C,indices:E}=M,T=E.length/3;l[n]=[o+1,o+T],o+=T;const I=A.length/3,L=C.length/3;g[n]={position:{middleZ:w+_/2,count:I,start:d,end:d+3*I},normal:{count:L,start:m,end:m+3*L},hide:!1},d+=3*I,m+=3*L}p=M(e),h&&(Ht(p,f,h,g),n.vertexColors=c())}super(),this._initOptions(e),this._createMesh(p,n);const y=i.distanceToVector3(l,l).x,_=i.coordinateToVector3(u,y);this.getObject3d().position.copy(_),this._faceMap=[],this._baseObjects=m,this._datas=t,this._geometriesAttributes=g,this.faceIndex=null,this._geometryCache=p.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(m),d||(this._setPickObject3d(),this._init()),this.type="ExtrudeLines"}getSelectMesh(){const t=this._getIndex();if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],n=Object.assign({},this.options,Et(e)?e.properties:e.getProperties(),{index:t});this._baseObjects[t]=new Qt(e,n,this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}identify(t){return this.picked}}var Pe=Le;const Re={altitude:0,colors:null};class Oe extends(se(w)){constructor(t,e,n,o){Array.isArray(t)||(t=[t]);const s=[],c=[],u=t.length;for(let e=0;e<u;e++){const n=Dt(t[e]);s.push(n.center),c.push(n.lineStrings)}const l=G(s);e=r.Util.extend({},Re,e,{layer:o,lineStrings:t,coordinate:l});const h=[],f={};let d=0,p=[],m=[],g=0,v=[];for(let t=0;t<u;t++){const e=c[t];let n=0;for(let t=0,r=e.length;t<r;t++){const r=Et(e[t])?e[t].properties:e[t].getProperties()||{},{positionsV:i}=Ot(e[t],o,l);H(i,r.bottomHeight,o,f),n+=2*i.length-2;for(let t=0,e=i.length;t<e;t++){const n=i[t];t>0&&t<e-1&&v.push(n.x,n.y,n.z),v.push(n.x,n.y,n.z)}}const r=n;p[t]=[d,d+r],d+=r,m[t]={position:{count:n,start:g,end:g+3*n},hide:!1},g+=3*n}const y=new i.BufferGeometry;a(y,"position",new i.Float32BufferAttribute(v,3)),super(),this._initOptions(e),this._createLineSegments(y,n);const{altitude:_}=e,x=o.distanceToVector3(_,_).x,b=o.coordinateToVector3(l,x);this.getObject3d().position.copy(b),this._faceMap=p,this._baseObjects=h,this._datas=t,this._geometriesAttributes=m,this.faceIndex=null,this.index=null,this._geometryCache=y.clone(),this.isHide=!1,this._colorMap={},this._initBaseObjectsEvent(h),this._setPickObject3d(),this._init(),this.type="Lines"}getSelectMesh(){const t=this._getIndex();if(null!=t){if(!this._baseObjects[t]){const e=this._datas[t],n=r.Util.extend({},this.getOptions(),{index:t},Et(e)?e.properties:e.getProperties());this._baseObjects[t]=new Ut(e,n,this.getObject3d().material,this.getLayer()),this._proxyEvent(this._baseObjects[t])}return{data:this._datas[t],baseObject:this._baseObjects[t]}}}_setPickObject3d(){const t=this._geometryCache||this.getObject3d().geometry.clone(),e=this.getLayer().getPick(),{_geometriesAttributes:n}=this,r=[];for(let t=0,i=n.length;t<i;t++){const i=e.getColor(),o=i.getHex();this._colorMap[o]=t;const{count:a}=n[t].position;this._datas[t].colorIndex=o;for(let t=0;t<a;t++)r.push(i.r,i.g,i.b)}a(t,"color",new i.Float32BufferAttribute(r,3,!0));const o=this.getObject3d().material.clone();o.color.set("#fff"),o.vertexColors=c();const s=e.getColor().getHex(),u=new i.LineSegments(t,o);u.position.copy(this.getObject3d().position),u._colorIndex=s,this.setPickObject3d(u)}identify(t){return this.picked}}var ke=Oe;const Be=[],De=[];function Fe(t,e){for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r){const{key:i,callback:o}=r;if(e===i)return t.splice(n,1),o}}return null}const Ue=document.createElement("canvas");function je(t,e=!1){const n=Ue.getContext("2d");if(n.clearRect(0,0,256,256),n.save(),e){n.fillStyle="red",n.strokeStyle="rgba(255,0,0,0.4)",n.lineWidth=.2;const e=t||"tile";n.font="18px sans-serif",n.rect(0,0,256,256),n.stroke(),n.fillText(e,15,128)}return Ue.toDataURL()}function Ne(t=1,e=1){let n;return"undefined"==typeof document||(n=document.createElement("canvas"),t&&(n.width=t),e&&(n.height=e)),n}Ue.width=Ue.height=256;class ze extends r.TileLayer{constructor(t,e={}){super(r.Util.GUID(),r.Util.extend({urlTemplate:t},e)),this._opts=null,this._layer=null,this.material=null,this.getMaterial=null,this._baseObjectKeys={},this._loadTiles={},this._add=null,this._layerLaodTime=(new Date).getTime()}isAsynchronous(){return this._opts.worker}getBaseObjects(){const t=this._loadTiles,e=[];for(let n in t){const t=this._baseObjectKeys[n];if(t&&Array.isArray(t)&&t.length)for(let n=0,r=t.length;n<r;n++)e.push(t[n])}return e}onSelectMesh(t,e){}formatBaseObjects(t,e){return[]}loopMessage(t){}getTileData(t){const{key:e,url:n,callback:i,img:o}=t;r.Ajax.getJSON(n,{},(function(t,n){t?(console.error(t),i(e,null,o)):i(e,n,o)}))}_getCurentTileKeys(){const t=this.getTiles().tileGrids||[],e=[],n={};for(let r=0,i=t.length;r<i;r++){const i=t[r].tiles||[];for(let t=0,r=i.length;t<r;t++){const{id:r}=i[t];e.push(r),n[r]=!0}}return{keys:e,keysMap:n}}_isLoad(){const{keys:t}=this._getCurentTileKeys(),e=Object.keys(this._renderer.tilesInView);return t.length===e.length}_layerOnLoad(){const t=(new Date).getTime();if(t-this._layerLaodTime<20)return;this._layerLaodTime=t;const e=this._renderer.tilesInView,n=this._loadTiles,r=this._layer,i=this._baseObjectKeys,o=Object.keys(e).length,a=Object.keys(n).length,s=[];if(o&&a)for(let t in n)e[t]||i[t]&&(i[t]||[]).forEach(t=>{s.push(t)});if(s.length&&r.removeMesh(s,!1),o&&a)for(let t in e)if(!n[t])if(i[t]){const e=i[t];r.addMesh(e)}else{const{x:e,y:n,z:r}=this._getXYZOfIndex(t);this.getTileUrl(e,n,r)}this._loadTiles=Object.assign({},e),this._diffCache()}_init(){}_workerLoad(t){const e=t.target._img;e.currentCount++,e.currentCount===e.needCount&&(e.src=je(e._key,this._opts.debug))}_generateBaseObjects(t,e,n){if(e&&n){const{keysMap:r}=this._getCurentTileKeys();if(!r[t])return void(n.src=je(t,this._opts.debug));const i=this.formatBaseObjects(t,e);if(i.length){n.needCount=i.length,n.currentCount=0;for(let e=0,r=i.length;e<r;e++){const r=i[e];r._img=n,r._vt=this,this.isVisible()||r.hide(),this._cachetile(t,r),r.isAsynchronous()||n.currentCount++}this._layer.addMesh(i,!1),n.needCount===n.currentCount&&(n.src=je(t,this._opts.debug)),this.isAsynchronous()?i.filter(t=>t.isAsynchronous()).forEach(t=>{t.on("workerload",this._workerLoad,this)}):n.src=je(t,this._opts.debug)}else n.src=je(t,this._opts.debug);this._loadTiles[t]=!0}else n&&(n.src=je(t,this._opts.debug))}_diffCache(){if(Object.keys(this._baseObjectKeys).length>this._renderer.tileCache.max){const t=this._renderer.tileCache.data,e=this._renderer.tilesInView,n=[];for(let r in this._baseObjectKeys)t[r]||e[r]||((this._baseObjectKeys[r]||[]).forEach(t=>{t.isAdd&&n.push(t)}),this._diposeBaseObject(r),delete this._baseObjectKeys[r]);n.length&&this._layer.removeMesh(n,!1)}}_diposeBaseObject(t){const e=this._baseObjectKeys[t];e&&e.length&&e.forEach(t=>{t.getObject3d().geometry.dispose(),t._geometryCache&&t._geometryCache.dispose();const e=t._baseObjects;e&&e.length&&e.forEach(t=>{t.getObject3d().geometry.dispose(),t=null}),t._datas=null,t._geometriesAttributes=null,t._faceMap=null,t._colorMap=null,t.pickObject3d&&t.pickObject3d.geometry.dispose(),t=null})}_cachetile(t,e){this._baseObjectKeys[t]||(this._baseObjectKeys[t]=[]),this._baseObjectKeys[t].push(e)}_getXYZOfIndex(t){const e=t.indexOf("_")>-1?"_":"-";let[n,r,i]=t.split(e).slice(1,4);return{x:parseInt(r),y:parseInt(n),z:parseInt(i)}}_getTileExtent(t,e,n){const r=this.getMap()._getResolution(n);return this._getTileConfig().getTilePrjExtent(t,e,r)}_getTileLngLatExtent(t,e,n){const i=this._getTileExtent(t,e,n);let o=i.getMax(),a=i.getMin();const s=this.getMap().getProjection();return a=s.unproject(a),o=s.unproject(o),new r.Extent(a,o)}}var Ge=ze;const He={worker:!1};var We=class extends Ge{constructor(t,e={},n,i){super(r.Util.GUID(),r.Util.extend({urlTemplate:t},He,e)),this._opts=e,this._layer=i,this.getMaterial=n,this._baseObjectKeys={},this._loadTiles={},this._add=null,this._layerLaodTime=(new Date).getTime(),this._init()}formatBaseObjects(t,e){const n=this._opts,o=[],a=this.isAsynchronous();for(let s in e){const c=e[s]||{};let u;if(Array.isArray(c)?u=c:"FeatureCollection"===c.type&&(u=c.features),u&&u.length){const e=[],l=[],h=[];for(let t=0,n=u.length;t<n;t++){const n=u[t];if(Ct(n))e.push(n);else if(Et(n)){const t=Rt(n);for(let e=0,n=t.length;e<n;e++)l.push(t[e])}else if(Tt(n)){const t=Rt(n);for(let e=0,n=t.length;e<n;e++)h.push(r.Util.extend({},t[e].properties,t[e],{coordinate:Lt(t[e])}))}}if(e.length){const i=this._getMaterial(s,e,t,c);if(i){const c=this._layer.toExtrudePolygons(e,r.Util.extend({},{topColor:"#fff",layerName:s,asynchronous:a,key:t},n),i);o.push(c)}}if(l.length){const e=this._getMaterial(s,l,t,c);if(e&&(e instanceof i.LineBasicMaterial||e instanceof i.LineDashedMaterial)){const t=this._layer.toLines(l,r.Util.extend({},{layerName:s},n),e);o.push(t)}}if(h.length){const e=this._getMaterial(s,h,t,c);if(e&&e instanceof i.PointsMaterial){const t=this._layer.toPoints(h,r.Util.extend({},{layerName:s},n),e);o.push(t)}}}}return o}loopMessage(t){const{currentQueue:e}={waitingQueue:Be,currentQueue:De};e.length>0&&this.getTileData(t)}_init(){this.on("layerload",this._layerOnLoad),this.on("add",()=>{if(!1===this._add){const t=this.getBaseObjects();this._layer.addMesh(t)}this._add=!0,this.intervalId=setInterval(()=>{this._isLoad()&&!this._layer.getMap().isInteracting()&&this.fire("layerload")},1e3)}),this.on("remove",()=>{this._add=!1;const t=this.getBaseObjects();this._layer.removeMesh(t),clearInterval(this.intervalId)}),this.on("show",()=>{this.getBaseObjects().forEach(t=>{t.show()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.show()})}),this.on("hide",()=>{this.getBaseObjects().forEach(t=>{t.hide()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.hide()})}),this.on("renderercreate",t=>{t.renderer.loadTile=function(t){var e=this.layer.getTileSize(),n=new Image;return n.width=e.width,n.height=e.height,n.onload=this.onTileLoad.bind(this,n,t),n.onerror=this.onTileError.bind(this,n,t),this.loadTileImage(n,t.url,t.id),n},t.renderer.deleteTile=function(t){t&&t.image&&(t.image.onload=null,t.image.onerror=null,function(t){const e=Fe(Be,t);e&&e(t)}((t.info||{}).id))},t.renderer.loadTileImage=(t,e,n)=>{t._key=n,function(t,e,n,r,i){const o={key:t,url:e,callback:n,img:r,vt:i};De.length<10?(De.push(o),i.loopMessage(o)):Be.push(o)}(n,e,(t,e,n)=>{this._generateBaseObjects(t,e,n),function(t,e){if(Fe(De,t),Be.length){De.push(Be[0]),Be.splice(0,1);const t=De[De.length-1];e.loopMessage(t)}}(t,this)},t,this)}})}_getMaterial(t,e,n,i){return this.getMaterial&&r.Util.isFunction(this.getMaterial)?this.getMaterial(t,e,n,i):null}};const Ve=new i.TextureLoader,Ze=document.createElement("canvas");function Qe(t){if(!t)return null;let e;return"string"==typeof t?(e=new Image,e.src=t):t instanceof HTMLCanvasElement?(e=new Image,e.src=t.toDataURL()):t instanceof Image&&(e=new Image,e.src=t.src,e.crossOrigin=t.crossOrigin),e&&!e.crossOrigin&&(e.crossOrigin="Anonymous"),e}const Xe={interactive:!1,altitude:0,image:null,imageWidth:256,imageHeight:256,texture:null};var Ye=class extends w{constructor(t,e,n,o){e=r.Util.extend({},Xe,e,{layer:o,extent:t});const{texture:a,image:s,altitude:c,imageHeight:u,imageWidth:l}=e;s||console.error("not find image"),t instanceof r.Extent||(t=new r.Extent(t));const{xmin:h,ymin:f,xmax:d,ymax:p}=t;let m=1/0,g=1/0,v=-1/0,y=-1/0;[[h,f],[h,p],[d,p],[d,f]].forEach(t=>{const e=o.coordinateToVector3(t),{x:n,y:r}=e;m=Math.min(n,m),g=Math.min(r,g),v=Math.max(n,v),y=Math.max(r,y)});const _=Math.abs(v-m),x=Math.abs(y-g),b=Qe(s),w=Qe(a),M=new i.PlaneBufferGeometry(_,x,l-1,u-1);super(),this._initOptions(e),this._createMesh(M,n);const S=o.distanceToVector3(c,c).x,A=o.coordinateToVector3(t.getCenter(),S);this.getObject3d().position.copy(A),n.transparent=!0,b&&(n.opacity=0,b.onload=()=>{const t=function(t,e=256,n=256){Ze.width=e,Ze.height=n;const r=Ze.getContext("2d");return r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n).data}(b,l,u);let e=0;const r={};for(let n=0,i=t.length;n<i;n+=4){const i=z(.1*(256*t[n]*256+256*t[n+1]+t[n+2])-1e4,o,r);M.attributes.position.array[3*e+2]=i,e++}M.attributes.position.needsUpdate=!0,w?Ve.load(w.src,t=>{n.map=t,n.opacity=1,n.needsUpdate=!0}):n.opacity=1},b.onerror=function(){console.error("not load "+b.src)}),this.type="Terrain"}};const Je={scale:1,tileDivisor:4};var qe=class extends Ge{constructor(t,e={},n,i){super(r.Util.GUID(),r.Util.extend({urlTemplate:t},Je,e)),this._opts=e,this._layer=i,this.material=n,this._baseObjectKeys={},this._loadTiles={},this._add=null,this._imgQueue={},this._layerLaodTime=(new Date).getTime(),this._init()}isAsynchronous(){return!1}formatBaseObjects(t,e){const n=this.options,r=[],{scale:i,tileDivisor:o}=n,{x:a,y:s,z:c}=this._getXYZOfIndex(t),u=this.getMap().getZoom(),l=this.getTileUrl(a,s,c),[h,f]=this.options.tileSize,d=this._getTileLngLatExtent(a,s,c),p=this.material.clone();if(c+1>=Math.round(u)){const t=new Ye(d,{image:e,imageWidth:h/o,imageHeight:f/o,texture:l},p,this._layer);t.getObject3d().scale.set(i,i,1),r.push(t)}return r}loopMessage(t){this.getTileData(t)}_init(){this.on("layerload",this._layerOnLoad),this.on("add",()=>{if(!1===this._add){const t=this.getBaseObjects();this._layer.addMesh(t)}this._add=!0,this.intervalId=setInterval(()=>{this._isLoad()&&!this._layer.getMap().isInteracting()&&this.fire("layerload")},1e3)}),this.on("remove",()=>{this._add=!1;const t=this.getBaseObjects();this._layer.removeMesh(t),clearInterval(this.intervalId)}),this.on("show",()=>{this.getBaseObjects().forEach(t=>{t.show()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.show()})}),this.on("hide",()=>{this.getBaseObjects().forEach(t=>{t.hide()});for(let t in this._baseObjectKeys)(this._baseObjectKeys[t]||[]).forEach(t=>{t.hide()})}),this.on("renderercreate",t=>{t.renderer.loadTile=function(t){var e=this.layer.getTileSize(),n=new Image;return n.width=e.width,n.height=e.height,n.onload=this.onTileLoad.bind(this,n,t),n.onerror=this.onTileError.bind(this,n,t),this.loadTileImage(n,t.url,t.id),n},t.renderer.deleteTile=t=>{if(!t||!t.image)return;t.image.onload=null,t.image.onerror=null;const e=t.info||{},n=this._imgQueue[e.id];n&&(n.src="",n.onload=null,n.onerror=null,delete this._imgQueue[e.id])},t.renderer.loadTileImage=(t,e,n)=>{t._key=n;const r=new Image;this._imgQueue[n]=r;const i={key:n,url:e,rgbImage:r,callback:(t,e,n)=>{this._generateBaseObjects(t,e,n)},img:t,vt:this};this.loopMessage(i)}})}};
|
|
23
23
|
/*!
|
|
24
24
|
* Code from baidu mapv
|
|
25
25
|
* License: BSD-3
|
|
@@ -109,7 +109,7 @@ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,h=n?i-1:0,f=
|
|
|
109
109
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
110
110
|
* @license MIT
|
|
111
111
|
*/
|
|
112
|
-
var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=f(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(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 h(t,e){if(l(e),t=s(t,e<0?0:0|d(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(c.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 n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return N(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var h=!0,f=0;f<c;f++)if(u(t,o+f)!==u(e,f)){h=!1;break}if(h)return o}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function x(t,e,n,r){return G(N(e,t.length-n),t,n,r)}function b(t,e,n,r){return G(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return b(t,e,n,r)}function M(t,e,n,r){return G(z(e),t,n,r)}function S(t,e,n,r){return G(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,c,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=j(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.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(n+r>t.length)throw new RangeError("Index out of range")}function O(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function k(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function B(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||B(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,o){return o||B(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.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)g(this,e,e+1);return this},c.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)g(this,e,e+3),g(this,e+1,e+2);return this},c.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)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),h=0;h<s;++h)if(u[h]!==l[h]){o=u[h],a=l[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return b(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):k(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--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+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):k(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=c.isBuffer(t)?t:N(new c(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function j(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("c8ba"))},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){o(1)}))},{keys:function(t){return o(i(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("5926"),s=n("408a"),c=n("1148"),u=n("d039"),l=i.RangeError,h=i.String,f=Math.floor,d=o(c),p=o("".slice),m=o(1..toFixed),g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)},v=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},y=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},_=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=h(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)}))||!u((function(){m({})}))},{toFixed:function(t){var e,n,r,i,o=s(this),c=a(t),u=[0,0,0,0,0,0],f="",m="0";if(c<0||c>20)throw l("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return h(o);if(o<0&&(f="-",o=-o),o>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(o*g(2,69,1))-69,n=e<0?o*g(2,-e,1):o/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(u,0,n),r=c;r>=7;)v(u,1e7,0),r-=7;for(v(u,g(10,r,1),0),r=e-1;r>=23;)y(u,1<<23),r-=23;y(u,1<<r),v(u,1,1),y(u,2),m=_(u)}else v(u,0,n),v(u,1<<-e,0),m=_(u)+d("0",c);return m=c>0?f+((i=m.length)<=c?"0."+d("0",c-i)+m:p(m,0,i-c)+"."+p(m,i-c)):f+m}})},b693:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA0ppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTM3QjEyRDNBOTZDMTFFNUE2QTA4M0M3MDI4QUVDMTQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTM3QjEyRDJBOTZDMTFFNUE2QTA4M0M3MDI4QUVDMTQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo3ZmI2MGZkMi1hOTZjLTExZTUtYWU4Yi1kYzQ2ODQxNzA1ZmIiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo3ZmI2MGZkMi1hOTZjLTExZTUtYWU4Yi1kYzQ2ODQxNzA1ZmIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4r2gBAAAAASklEQVR42mL4////HCBmB2IGGAYRIHACiKXRBUHgORBbgwQZ/4Ol4OA3EOcxMaCCf2AJJO1PgNgC2cyjQCyJbNEMIGZDdhJAgAEACP9sQulYHrwAAAAASUVORK5CYII="},b6b7:function(t,e,n){var r=n("ebb5"),i=n("4840"),o=r.TYPED_ARRAY_CONSTRUCTOR,a=r.aTypedArrayConstructor;t.exports=function(t){return a(i(t,t[o]))}},b727:function(t,e,n){var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),c=n("65f0"),u=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,m,g,v){for(var y,_,x=a(p),b=o(x),w=r(m,g),M=s(b),S=0,A=v||c,C=e?A(p,M):n||f?A(p,0):void 0;M>S;S++)if((d||S in b)&&(_=w(y=b[S],S,x),t))if(e)C[S]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:u(C,y)}else switch(t){case 4:return!1;case 7:u(C,y)}return h?-1:i||l?l:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}},b904:function(t,e,n){t.exports=function(){return n("81a5"),{}}},bb7e:function(t,e,n){"use strict";var r=n("d4ec"),i=n("bee2"),o=(n("d3b7"),n("d81d"),n("fb6a"),n("159b"),n("9767"),n("1913"),n("ac1f"),n("5319"),n("4703")),a=n("d30b"),s=function(t,e,n){void 0===n&&(n={});var r=Object(o.a)(t),i=Object(o.a)(e),s=Object(a.a)(i[1]-r[1]),c=Object(a.a)(i[0]-r[0]),u=Object(a.a)(r[1]),l=Object(a.a)(i[1]),h=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(c/2),2)*Math.cos(u)*Math.cos(l);return Object(a.d)(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)),n.units)};function c(t,e,n){var r=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var i=0,o=e.length-1;i<e.length;o=i++){var a=e[i][0],s=e[i][1],c=e[o][0],u=e[o][1];if(t[1]*(a-c)+s*(c-t[0])+u*(t[0]-a)==0&&(a-t[0])*(c-t[0])<=0&&(s-t[1])*(u-t[1])<=0)return!n;s>t[1]!=u>t[1]&&t[0]<(c-a)*(t[1]-s)/(u-s)+a&&(r=!r)}return r}var u=n("5a89"),l=n("ec60"),h=document.createElement("canvas"),f=function(){function t(){Object(r.a)(this,t),this.type="gisCommon"}return Object(i.a)(t,null,[{key:"getTexture",value:function(t,e,n,r){var i=t.getContext("2d");i.drawImage(e,n,r);var o=new u.Texture(i.getImageData(0,0,t.width,t.height));return o.minFilter=u.LinearFilter,o.generateMipmaps=!1,o.needsUpdate=!0,o}},{key:"getTexture1",value:function(t,e,n,r,i,o){var a=t.getContext("2d");a.drawImage(e,n,r,i,o);var s=new u.Texture(a.getImageData(0,0,t.width,t.height));return s.minFilter=u.LinearFilter,s.generateMipmaps=!1,s.needsUpdate=!0,s}},{key:"addImageProcessImage",value:function(t){return new Promise((function(e,n){var r=document.createElement("img");r.onload=function(){return e(r)},r.onerror=n,r.setAttribute("src",t)}))}},{key:"addImageProcess",value:function(t){return new Promise((function(e,n){var r=document.createElement("img");r.onload=function(){return e(r)},r.onerror=n,r.setAttribute("src","data:image/svg+xml;base64,"+window.btoa(unescape(encodeURIComponent(t))))}))}},{key:"containsCoordinate1",value:function(t,e){var n={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[e.getCenter().x,e.getCenter().y]}};return 1e3*s(n,{type:"Feature",properties:{},geometry:{type:"Point",coordinates:t}},"kilometers")<e.getRadius()}},{key:"containsCoordinate2",value:function(t,e){return function(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=Object(o.a)(t),i=Object(o.b)(e),a=i.type,s=e.bbox,u=i.coordinates;if(s&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,s))return!1;"Polygon"===a&&(u=[u]);for(var l=!1,h=0;h<u.length&&!l;h++)if(c(r,u[h][0],n.ignoreBoundary)){for(var f=!1,d=1;d<u[h].length&&!f;)c(r,u[h][d],!n.ignoreBoundary)&&(f=!0),d++;f||(l=!0)}return l}({type:"Feature",geometry:{type:"Point",coordinates:t}},{type:"Feature",geometry:{type:"Polygon",coordinates:e.geometry.coordinates[0]}})}},{key:"containsCoordinate",value:function(t,e){var n,r;Array.isArray(t)?(n=t[0],r=t[1]):t instanceof l.Coordinate&&(n=t.x,r=t.y);var i=e.xmin,o=e.ymin,a=e.xmax,s=e.ymax;return i<=n&&n<=a&&o<=r&&r<=s}},{key:"isInLevels",value:function(t,e){for(var n=!1,r=0;r<t.rangeArr.length;r+=2){var i=1*t.rangeArr[r],o=1*t.rangeArr[r+1];if(e>i&&e<=o){n=!0;break}}return n}},{key:"getExtent",value:function(t){if(0!==t.length){var e=1/0,n=1/0,r=-1/0,i=-1/0;return 1===t.length?(e=1*t[0].longitude-.5,n=1*t[0].latitude-.5,r=1*t[0].longitude+.5,i=1*t[0].latitude+.5):t.length>1&&t.slice(0,1/0).map((function(t){var o=1*t.longitude,a=1*t.latitude;e=Math.min(e,o),n=Math.min(n,a),r=Math.max(r,o),i=Math.max(i,a)})),{minX:e,minY:n,maxX:r,maxY:i}}}},{key:"vector2Pixel",value:function(t,e,n){var r=t.project(n),i=e.width/2,o=e.height/2;return{x:Math.round(r.x*i+i),y:Math.round(-r.y*o+o)}}},{key:"generateTextureOne",value:function(t,e,n){h.width=e,h.height=n;var r=h.getContext("2d");r.drawImage(t,0,0,e,n);var i=new u.Texture(r.getImageData(0,0,h.width,h.height));return i.magFilter=u.NearestFilter,i.minFilter=u.NearestFilter,i.generateMipmaps=!1,i.needsUpdate=!0,i}},{key:"generateTexture",value:function(t){var e=[64,128,256,512,1024],n=-1/0;t.forEach((function(t){n=Math.max(n,t.w),Math.max(n,t.h)}));var r=Math.sqrt(t.length),i=parseInt(r);r>i&&(i+=1);for(var o=(r=i)*n+5*r,a=0,s=0;s<e.length;s++){if(o<e[s]){a=e[s];break}a=1024}h.width=h.height=a;for(var c=h.getContext("2d"),l=0,f=0,d=[],p=0;p<r;p++){for(var m=5*(p+1)+p*l,g=0;g<r;g++){var v=5*(g+1)+g*t[f].w;if("img"===t[f].type){var y=(t[f].w-t[f].iw)/2,_=(t[f].h-t[f].ih)/2;c.drawImage(t[f].src,v+y,m+_,t[f].iw,t[f].ih)}else if("txt"===t[f].type)c.fillStyle=t[f].color,"#fff"===t[f].color?(c.font="lighter "+t[f].size+"px Microsoft YaHei",c.fillText(t[f].src,v+t[f].offx,m+t[f].offy),c.strokeStyle=t[f].color,c.strokeText(t[f].src,v+t[f].offx,m+t[f].offy)):(c.font="normal "+t[f].size+"px Microsoft YaHei",c.fillText(t[f].src,v+t[f].offx,m+t[f].offy));else{var x=(t[f].w-t[f].iw)/2,b=(t[f].h-t[f].ih)/2;c.drawImage(t[f].src,v+x,m+b,t[f].iw,t[f].ih)}if(d.push({w:t[f].w,h:t[f].h,u:v/a,v:m/a}),l=Math.max(l,t[f].h),(f+=1)>=t.length)break}if(f>=t.length)break}var w=new u.Texture(c.getImageData(0,0,h.width,h.height));if(w.minFilter=u.LinearFilter,w.generateMipmaps=!1,w.needsUpdate=!0,d.length<100)for(var M=100-d.length,S=0;S<M;S++)d.push({w:0,h:0,u:0,v:0});return{xys:d,texture:w,textureSize:a}}},{key:"setPointEventStatus",value:function(t,e){t&&t.getMeshes().forEach((function(t){"Points"===t.type&&(t.options.interactive=e)}))}},{key:"createTextTexture",value:function(t,e){h.width=h.height=t;var n=h.width/2,r=h.height/2;if(e){var i=0;e.forEach((function(t){var e=h.getContext("2d");e.fillStyle=t.fontcolor,e.font="".concat(t.fontsize,"px Arial"),e.textAlign="center",e.textBaseline="middle",e.fillText(t.txt,n,r+i),i+=t.fontsize}))}var o=new u.Texture(h);return o.minFilter=u.LinearFilter,o.generateMipmaps=!1,o.needsUpdate=!0,o}},{key:"createSimpleShader",value:function(t,e,n){return t.uniforms.texture1={value:e},t.uniforms.size1={value:n},t.uniforms.flag={value:1},t.vertexShader="uniform float size1;\n attribute float imgflag;\n varying float vimgflag;\n attribute float visibility;\n varying float vVisible;\n "+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <project_vertex>","\n #include <project_vertex>\n vimgflag = imgflag;\n vVisible = visibility;\n ").replace("gl_PointSize = size;","\n gl_PointSize = size1;\n "),t.fragmentShader="\n uniform sampler2D texture1;\n varying float vimgflag;\n varying float vVisible;\n "+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("gl_FragColor = vec4( outgoingLight, diffuseColor.a );","\n\n vec2 pUv = gl_PointCoord;\n pUv.y = 1. - pUv.y;\n\n if(vimgflag < 1.0){\n vec4 texColor = texture2D( texture1, pUv );\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n }\n\n if (vVisible < 0.5) discard;\n "),t}}]),t}();e.a=f},bee2:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},c04e:function(t,e,n){var r=n("da84"),i=n("c65b"),o=n("861d"),a=n("d9b5"),s=n("dc4a"),c=n("485a"),u=n("b622"),l=r.TypeError,h=u("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,h);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},c1ac:function(t,e,n){"use strict";var r=n("ebb5"),i=n("b727").filter,o=n("1448"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},c274:function(t,e,n){"use strict";var r=n("50bf");function i(){var t={},e=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),t[i]||(t[i]=[]),t[i].push(o),e++},process:function(){for(var e=r;e<=n;e++)for(var i=t[e],o=0;o<i.length;o++)(0,i[o])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=r.getOption(t,"async",!0),o=r.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=i(),c=!1;function u(){for(c=!0;s.size();){var t=s;s=i(),t.process()}c=!1}function l(){a=function(t){return function(t){return setTimeout(t,0)}(t)}(u)}return{add:function(t,e){!c&&o&&n&&0===s.size()&&l(),s.add(t,e)},force:function(t){c||(void 0===t&&(t=n),a&&(function(t){clearTimeout(t)}(a),a=null),t?l():u())}}}},c430:function(t,e){t.exports=!1},c60d:function(t,e,n){var r=n("1a2d");t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},c65b:function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c7b2:function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return ie})),n.d(e,"GMap",(function(){return ne}));var r=n("d4ec"),i=n("bee2"),o=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d81d"),n("d3b7"),n("b0c0"),n("1da1")),a=(n("96cf"),n("ac1f"),n("466d"),n("5319"),n("5b81"),n("2ef0")),s=function(){function t(){Object(r.a)(this,t)}return Object(i.a)(t,[{key:"getSvgDict",value:function(t){var e=this;return Object(a.isEmpty)(t)?(console.error("svg javascript file is not null"),!1):new Promise((function(n){var r=[];e.getJSON(t).then((function(t){t.match(/<symbol id=.*?symbol>/g).map((function(t,n){var i=t.match(/id=".*?"/gi),o=t.match(/(?<=viewBox=".*?">).*?(?=<\/symbol>)/gi);r.push({id:i[0].replaceAll('"',"").replace("id=icon-",""),svg:e.createSvg(o[0])})})),n(r)}))}))}},{key:"getJSON",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(e);case 3:return n=t.sent,t.next=6,n.text();case 6:return t.abrupt("return",t.sent);case 9:t.prev=9,t.t0=t.catch(0),console.log("Request Failed",t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}()},{key:"createSvg",value:function(t){return'<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15737">'.concat(t,"</svg>")}}]),t}(),c=(n("159b"),n("b64b"),n("acb4"),n("5a89")),u=n("ec60"),l={name:"Spin",props:{visible:Boolean},render:function(t,e){var n=arguments[0];return n("div",{class:"sk-chase-box"},[this.visible?null:n("div",{class:"sk-chase-core"},[n("div",{class:"sk-chase"},[n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"})])]),this.$slots.default])}};n("93b5");var h=function(t,e,n,r,i,o,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}(l,void 0,void 0,!1,null,"c8c2036e",null).exports,f=n("e675"),d=n.n(f),p=(n("8ded"),n("add5")),m=n.n(p),g=n("0ab6"),v=n.n(g),y=n("0e54"),_=n.n(y),x=n("ee7c"),b=n.n(x),w=d.a.createStore(v.a,b.a),M=(d.a.createStore(m.a,b.a),d.a.createStore(_.a,b.a),n("fb6a"),n("3ca3"),n("ddb0"),n("47c9")),S=(n("1276"),n("262e")),A=n("2caf"),C=n("5765"),E={altitude:0,imageWidth:512,imageHeight:512,texture:null},T=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n);var l=i=u.Util.extend({},E,i),h=l.altitude;l.imageHeight,l.imageWidth,t instanceof u.Extent||(t=new u.Extent(t));var f=t,d=f.xmin,p=f.ymin,m=f.xmax,g=f.ymax,v=1/0,y=1/0,_=-1/0,x=-1/0;[[d,p],[d,g],[m,g],[m,p]].forEach((function(t){var e=a.coordinateToVector3(t),n=e.x,r=e.y;v=Math.min(n,v),y=Math.min(r,y),_=Math.max(n,_),x=Math.max(r,x)}));var b=Math.abs(_-v),w=Math.abs(x-y),M=new c.PlaneBufferGeometry(b,w);(s=e.call(this))._initOptions(i),s._createMesh(M,o);var S=a.distanceToVector3(h,h).x,A=a.coordinateToVector3(t.getCenter(),S);return s.getObject3d().position.copy(A),s.parent=null,s.type="Image",s}return n}(C.a),I=function(){function t(e,n,i,o,a){var s=this;Object(r.a)(this,t),this.threelayer=a,this.textureLoader=new c.TextureLoader;var l=e.split(","),h=n.split(","),f=parseFloat(l[0]),d=parseFloat(l[1]),p=parseFloat(h[0]),m=parseFloat(h[1]),g=o.maxZoom||11,v=o.renderOrder||0,y=o.opacity||1,_=o.minZoom||3,x=new u.Extent(f,d,p,m);this.textureLoader.load(i,(function(t){var e=new c.MeshBasicMaterial({map:t,transparent:!0,opacity:y}),n=new T(x,{imageWidth:512,imageHeight:512,maxZoom:g,minZoom:_,interactive:void 0!==o.interactive&&o.interactive},e,s.threelayer);n.object3d.renderOrder=v,s.imgMesh=n,s.imgMesh.parent=s,s.m=e,s.texture=t,s.threelayer.addMesh(s.imgMesh)}))}return Object(i.a)(t,[{key:"updateImage",value:function(t){var e=this;this.textureLoader.load(t,(function(t){e.texture&&e.texture.dispose(),delete e.texture,t.magFilter=c.NearestFilter,t.minFilter=c.NearestFilter,e.imgMesh.object3d.material.map=t,e.imgMesh.object3d.material.map.needsUpdate=!0,e.texture=t,!1===e.imgMesh.isAdd&&e.threelayer.addMesh(e.imgMesh)}))}},{key:"clearImage",value:function(){this.imgMesh&&this.threelayer.removeMesh(this.imgMesh)}},{key:"dispose",value:function(){this.imgMesh&&(this.threelayer.removeMesh(this.imgMesh),this.imgMesh.object3d.geometry&&this.imgMesh.object3d.geometry.dispose(),this.imgMesh.object3d.material&&(this.imgMesh.object3d.material.dispose(),delete this.m)),this.texture&&(this.texture&&this.texture.dispose(),delete this.texture),this.threelayer=null,this.textureLoader&&delete this.textureLoader}}]),t}(),L=(n("99af"),n("b680"),n("8a79"),n("65d4")),P={0:.05,1:.05,2:.05,3:.003,4:.003,5:.003,6:.003,7:.003,8:.002,9:.001,10:5e-4,11:3e-4,12:15e-5,13:1e-4,14:5e-5,15:25e-6,16:1e-5,16.99:1e-5,17:5e-6,18:2e-6,19:1e-6,20:5e-7,21:2e-7,22:1e-7},R=Object(a.map)(["南","东南偏南","东南","东南偏东","东","东北偏东","东北","东北偏北","北","西北偏北","西北","西北偏西","西","西南偏西","西南","西南偏南"],(function(t,e){var n=22.5,r=n*e;return{bearing:r,range:[r-n/2,r+n/2],label:t}})),O=function(t,e,n){return t>=e&&t<n},k=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.map=i,this.windLayer=this.map.getLayer("windLayer"),this.windLayer?this.windLayer.setData(e):(this.windLayer=new L.a("windLayer",e,{windOptions:{colorScale:["rgba(68,162,255,1)","rgba(110,223,255,1)","rgba(142,228,187,1)","rgba(179,253,163,1)","rgba(213,247,176,1)","rgba(255,252,213,1)","rgba(255,238,159,1)","rgba(252,217,125,1)","rgba(255,182,100,1)","rgba(252,150,75,1)","rgba(250,112,52,1)","rgba(245,64,32,1)","rgba(237,45,28,1)","rgba(220,24,32,1)","rgba(180,0,35,1)"],velocityScale:function(){var t=o.map.getZoom();return P[parseInt(t)]||1/40},frameRate:16,maxAge:60,globalAlpha:.9,paths:3782*i.options.devicePixelRatio}}),this.map.addLayer(this.windLayer)),this.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),this._bindMapEvents()}return Object(i.a)(t,[{key:"_bindMapEvents",value:function(){this.map.on("mousemove",this._onWind,this)}},{key:"_closeEvent",value:function(){this.map.off("mousemove",this._onWind,this)}},{key:"_onWind",value:function(t){var e,n=this.windLayer.field.interpolatedValueAt(t.coordinate.x,t.coordinate.y);if(n){var r=this.vectorToDegrees(n.u,n.v,"bearingCCW"),i=this.vectorToSpeed(n.u,n.v,"m/s");this.toolTip._content="".concat(null===(e=function(t){return Object(a.find)(R,(function(e){return O(t,e.range[0],e.range[1])||O(t-360,e.range[0],e.range[1])}))}(r))||void 0===e?void 0:e.label).concat(this.windLevel(i),"级;速度").concat(i.toFixed(2),"m/s;高度10米")}}},{key:"windLevel",value:function(t){return t<=0?0:t<=.3?1:t<=1.6?2:t<=3.4?3:t<=5.5?4:t<=8?5:t<=10.8?6:t<=13.9?7:t<=17.2?8:t<=20.8?9:t<=24.5?10:t<=28.5?11:12}},{key:"setToolTip",value:function(t,e){this.removeToolTip(),this.toolTip=new u.ui.ToolTip(t,e),this.toolTip.addTo(this.map)}},{key:"removeToolTip",value:function(){var t;this.toolTip&&(null===(t=this.toolTip)||void 0===t||t.remove(),this.toolTip=null)}},{key:"vectorToDegrees",value:function(t,e,n){n.endsWith("CCW")&&(e=e>0?e=-e:Math.abs(e));var r=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),i=180*Math.atan2(t/r,e/r)/Math.PI+180;return"bearingCW"!==n&&"meteoCCW"!==n||(i+=180)>=360&&(i-=360),i}},{key:"vectorToSpeed",value:function(t,e,n){var r=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return"k/h"===n?3.6*r:"kt"===n?r/.514:r}},{key:"closeWind",value:function(){this._closeEvent(),this.removeToolTip(),this.map.removeLayer(this.windLayer),delete this.windLayer,this.windLayer=null}}]),t}(),B=n("bb7e"),D=function(){function t(e,n,i,o,a,s){if(Object(r.a)(this,t),this.map=s,this.tlayer=a,this.geometry=null,void 0===i)this.drawTool=new u.DrawTool({mode:e,symbol:{lineColor:o.lineColor||"#E40D56",lineWidth:2,lineDasharray:[5,5],polygonFill:o.polygonFill||"#E40D56",polygonOpacity:.2}}).addTo(this.map).enable(),this._bindEvent(),B.a.setPointEventStatus(a,!1);else{var c={lineColor:o.lineColor||"#1bbc9b",lineWidth:o.lineWidth||1,lineOpacity:o.lineOpacity||1,polygonOpacity:o.polygonOpacity||1};o.colors?c.polygonFill={type:"linear",places:[0,0,1,1],colorStops:o.colors}:c.polygonFill=o.polygonFill||"#1bbc9b",o.lineDasharray&&(c.lineDasharray=[5,5,5]),"Polygon"===e?this.geometry=new u.MultiPolygon(i,{symbol:c}):"Circle"===e&&(this.geometry=new u.Circle(i,o.radius||1e3,{symbol:c}))}this._drawEnd=n,this.mode=e,this.toolLayer=this.map.getLayer("toolLayer"),this.toolLayer||(this.toolLayer=new u.VectorLayer("toolLayer",{geometryEvents:!1,hitDetect:!1}).addTo(this.map),this.geometry&&(this.toolLayer.addGeometry(this.geometry),this._drawEnd&&("Circle"===this.mode?this._drawEnd(this.geometry.getCoordinates(),this.geometry.getRadius()):this._drawEnd(this.geometry.getCoordinates())))),this.type="drawTool"}return Object(i.a)(t,[{key:"_bindEvent",value:function(){this.drawTool.on("drawend",this.drawEnd,this)}},{key:"_closeEvent",value:function(){this.drawTool.off("drawend",this.drawEnd,this)}},{key:"drawEnd",value:function(t){this.toolLayer&&this.toolLayer.addGeometry(t.geometry),this._drawEnd&&("Circle"===this.mode?this._drawEnd(t.geometry.getCoordinates(),t.geometry.getRadius()):this._drawEnd(t.geometry.getCoordinates())),this.geometry=t.geometry}},{key:"disableTool",value:function(){this.drawTool.disable(),B.a.setPointEventStatus(this.tlayer,!0)}},{key:"clearGeometry",value:function(){this.toolLayer&&this.toolLayer.clear()}},{key:"setMode",value:function(t,e){B.a.setPointEventStatus(this.tlayer,!1),this._drawEnd&&delete this._drawEnd,this._drawEnd=e,this.drawTool.setMode(t).enable(),this.mode=t}},{key:"startEdit",value:function(){this.disableTool(),this.geometry&&this.geometry.startEdit()}},{key:"endEdit",value:function(t){this.geometry&&(this.geometry.endEdit(),t&&("Circle"===this.mode?t(this.geometry.getCoordinates(),this.geometry.getRadius()):t(this.geometry.getCoordinates())))}},{key:"dispose",value:function(){this.drawTool&&(this._closeEvent(),delete this.drawTool),this._drawEnd&&delete this._drawEnd,this.geometry&&delete this.geometry,this.map.removeLayer(this.toolLayer),delete this.toolLayer}}]),t}(),F=function(){function t(e,n,i){Object(r.a)(this,t),this.tlayer=n,this.map=i,this.distanceTool=new u.DistanceTool({symbol:{lineColor:"#fff",lineWidth:2},vertexSymbol:{markerType:"ellipse",markerFill:"#1bbc9b",markerLineColor:"#000",markerLineWidth:3,markerWidth:10,markerHeight:10},labelOptions:{textSymbol:{textFaceName:"monospace",textFill:"#fff",textLineSpacing:1,textHorizontalAlignment:"right",textDx:15,markerLineColor:"#b4b3b3",markerFill:"#000"},boxStyle:{padding:[6,2],symbol:{markerType:"square",markerFill:"#000",markerFillOpacity:.9,markerLineColor:"#b4b3b3"}}},clearButtonSymbol:[{markerType:"square",markerFill:"#000",markerLineColor:"#b4b3b3",markerLineWidth:2,markerWidth:15,markerHeight:15,markerDx:20},{markerType:"x",markerWidth:10,markerHeight:10,markerLineColor:"#fff",markerDx:20}],language:"zh-CN"}).addTo(this.map),B.a.setPointEventStatus(n,!1)}return Object(i.a)(t,[{key:"dispose",value:function(){this.distanceTool&&(this.distanceTool.clear(),delete this.distanceTool),this.tlayer=null,this.map=null}},{key:"disable",value:function(){this.distanceTool.disable(),B.a.setPointEventStatus(this.tlayer,!0)}},{key:"enable",value:function(){B.a.setPointEventStatus(this.tlayer,!1),this.distanceTool.enable()}},{key:"clear",value:function(){this.distanceTool.clear()}}]),t}(),U=(n("4e82"),n("25a5")),j=n.n(U),N=n("ad2f"),z={fontSize:20,altitude:0,color:"#fff",text:"hello",weight:0,zoomFilter:!1},G={positionsConvert:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=[],i=0,o=t.length;i<o;i+=3){var a=t[i],s=t[i+1],u=t[i+2];e>0&&(u+=n.distanceToVector3(e,e).x),r.push(new c.Vector3(a,s,u))}return r},vectors2Pixel:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0;t[0]instanceof c.Vector3||(t=G.positionsConvert(t,r,i));var o=t.map((function(t){return G.vector2Pixel(t,e,n)}));return o},vector2Pixel:function(t,e,n){var r=t.project(n),i=e.width/2,o=e.height/2;return{x:Math.round(r.x*i+i),y:Math.round(-r.y*o+o)}}},H=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o){var a;Object(r.a)(this,n),i=u.Util.extend({},z,i,{layer:o,position:t}),(a=e.call(this))._initOptions(i);var s=i,l=(s.altitude,s.fontSize),h=s.color,f=s.text,d=s.rotation,p=d*(Math.PI/180);a._createGroup();var m=new N.SpriteText2D(f,{align:N.textAlign.center,font:"".concat(2*l,"px Arial"),fillStyle:h,antialias:!1});m.children[0].material.sizeAttenuation=!1,m.children[0].material.rotation=p;var g=.001/3;return m.scale.set(g,g,g),a.getObject3d().add(m),a.getObject3d().name=d,a.getObject3d().position.copy(t),a.textRect={width:a.calTextWidth(f,l)+3*l,height:l+3*l},a._vector=new c.Vector3,a._pixel={x:0,y:0},a}return Object(i.a)(n,[{key:"getTextRect",value:function(){this.getPixel();var t=this._pixel,e=t.x,n=t.y,r=this.textRect,i=r.width,o=r.height;return{minX:e-i/2,minY:n-o/2,maxX:e+i/2,maxY:n+o/2}}},{key:"calTextWidth",value:function(t,e){var n=(t.match(/[\u4e00-\u9fa5]/g)||"").length;return n*e+.5*(t.length-n)*e}},{key:"getPixel",value:function(){var t=this.getMap().getSize(),e=this.getLayer().getCamera(),n=this.getObject3d().position;this._vector.x=n.x,this._vector.y=n.y,this._vector.z=n.z,this._pixel=G.vector2Pixel(this._vector,t,e)}},{key:"identify",value:function(t){var e=this.getTextRect(),n=e.minX,r=e.minY,i=e.maxX,o=e.maxY,a=this.getMap().coordToContainerPoint(t);return a.x>=n&&a.x<=i&&a.y>=r&&a.y<=o}}]),n}(C.a),W={radius:100,altitude:0},V=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},W,i,{layer:a,coordinate:t}),(s=e.call(this))._initOptions(i);var l=i,h=l.altitude,f=l.radius,d=a.distanceToVector3(f,f).x,p=new c.CircleBufferGeometry(d,128,0,90*Math.PI/180);s._createMesh(p,o);var m=a.distanceToVector3(h,h).x,g=a.coordinateToVector3(t,m);return s.getObject3d().position.copy(g),s}return n}(C.a),Z=function(){function t(e,n,i,o,a){var s=this;Object(r.a)(this,t),this.threelayer=a,this.map=a.map,this.all_cirles=[],this.rItems={},this.all_texts={},this.all_sectors={},this.textSprites=[],this.rbush=new j.a,this.material=new c.MeshBasicMaterial({color:"#233F75",transparent:!0,opacity:.5,depthTest:!1}),this.vector_circle_layer=this.map.getLayer("vector_circle"),this.vector_circle_layer||(this.vector_circle_layer=new u.VectorLayer("vector_circle",{geometryEvents:!1,hitDetect:!1}).addTo(a.map)),this.sector=null;for(var l=this.threelayer.coordinateToVector3([e,n],0),h=(new c.Matrix4).makeTranslation(l.x,l.y,l.z),f=1e3;f<=1e4;f+=1e3){this.createLine([e,n],f);var d=this.threelayer.distanceToVector3(f,f).x;this.rItems[f]=d,this.all_texts[f]=[]}for(var p=this.vector_circle_layer.getGeometries(),m=0;m<p.length;m++)this.all_cirles.push(p[m]);for(var g=3;g<=360;){for(var v in this.rItems){var y=this.createLabel("".concat(v/1e3,"km"),g,this.rItems[v],h,5,a);this.all_texts[v].push(y)}g+=24}var _=this.createParty(e,n,3e3);this.all_sectors[3e3]=_;var x=this.createParty(e,n,5e3);this.all_sectors[5e3]=x;var b=this.createParty(e,n,1e4);this.all_sectors[1e4]=b,this.vector_circle_layer.clear();for(var w=i/1e3,M=void 0,S=0;S<w;S++){var A=this.all_texts[1e3*(S+1)];A&&A.forEach((function(t){s.textSprites.push(t)})),this.vector_circle_layer.addGeometry(this.all_cirles[S]),S===w-1&&(M=this.all_cirles[S])}if(this.vector_circle_layer.options.visible=!0,this.threelayer.addMesh(this.textSprites),o.rotation){var C=this.all_sectors[i],E=this.calDirection(o.rotation);C.object3d.rotation.z=E*Math.PI/180,this.threelayer.addMesh(C),this.sector=C}this.collides(),this._bindEvent(),o.callback&&o.callback(M)}return Object(i.a)(t,[{key:"update",value:function(t,e,n,r){var i=this;this._closeEvent();var o=this.threelayer.coordinateToVector3([t,e],0),a=(new c.Matrix4).makeTranslation(o.x,o.y,o.z);this.all_cirles.forEach((function(n){n.setCoordinates([t,e])}));for(var s=3,u=0;s<=360;){for(var l in this.rItems){var h=this.getPsVec(s,this.rItems[l],a);this.all_texts[l][u].object3d.position.copy(h)}s+=24,u+=1}for(var f in this.all_sectors)this.all_sectors[f].object3d.position.copy(o);this.threelayer.removeMesh(this.textSprites),this.textSprites=[],this.vector_circle_layer.clear(),this.threelayer.removeMesh(this.sector);for(var d=n/1e3,p=void 0,m=0;m<d;m++){var g=this.all_texts[1e3*(m+1)];g&&g.forEach((function(t){i.textSprites.push(t)})),this.vector_circle_layer.addGeometry(this.all_cirles[m]),m===d-1&&(p=this.all_cirles[m])}if(this.vector_circle_layer.show(),this.threelayer.addMesh(this.textSprites),r.rotation){var v=this.all_sectors[n],y=this.calDirection(r.rotation);v.object3d.rotation.z=y*Math.PI/180,this.threelayer.addMesh(v),this.sector=v}this.collides(),this._bindEvent(),r.callback&&r.callback(p)}},{key:"_bindEvent",value:function(){this.map.on("zooming zoomend moveend animateend",this.circleTextOn,this),this.map.on("rotate",this.circleTextRotationOn,this)}},{key:"_closeEvent",value:function(){this.map.off("zooming zoomend moveend animateend",this.circleTextOn,this),this.map.off("rotate",this.circleTextRotationOn,this)}},{key:"circleTextOn",value:function(){this.textSprites.sort((function(t,e){return e.getOptions().weight-t.getOptions().weight})),this.collides()}},{key:"circleTextRotationOn",value:function(){for(var t=0;t<this.textSprites.length;t++)this.textSprites[t].object3d.children[0].material.rotation=(parseFloat(this.textSprites[t].object3d.name)+this.map.getBearing())*(Math.PI/180);this.textSprites.sort((function(t,e){return e.getOptions().weight-t.getOptions().weight})),this.collides()}},{key:"dispose",value:function(){for(var t in this._closeEvent(),this.all_cirles=[],this.rItems)delete this.rItems[t];for(var e in this.threelayer.removeMesh(this.textSprites),this.sector&&this.threelayer.removeMesh(this.sector),this.rbush.clear(),delete this.rbush,this.textSprites=[],this.all_texts)this.all_texts[e].forEach((function(t){t.object3d.children[0].sprite&&t.object3d.children[0].sprite.geometry&&t.object3d.children[0].sprite.geometry.dispose(),t.object3d.children[0].material&&t.object3d.children[0].material.dispose(),t.object3d.children[0].texture&&t.object3d.children[0].texture.dispose()})),delete this.all_texts[e];for(var n in this.sector=null,this.all_sectors){var r=this.all_sectors[n];r.object3d.geometry&&r.object3d.geometry.dispose(),delete this.all_sectors[n]}this.material&&this.material.dispose(),this.map.removeLayer(this.vector_circle_layer)}},{key:"createLine",value:function(t,e){1e3===e?new u.Circle(t,e,{symbol:{lineColor:"#1bbc9b",lineWidth:1,lineOpacity:1,polygonFill:"#1bbc9b",polygonOpacity:0}}).addTo(this.vector_circle_layer):new u.Circle(t,e,{symbol:{lineColor:"#1bbc9b",lineWidth:1,lineDasharray:[5,5,5],lineOpacity:1,polygonFill:"#1bbc9b",polygonOpacity:0}}).addTo(this.vector_circle_layer)}},{key:"createParty",value:function(t,e,n){return new V([t,e],{radius:n,interactive:!1},this.material,this.threelayer)}},{key:"createLabel",value:function(t,e,n,r,i,o){var a=this.getArrowPs(e,1),s=this.getPsVec(e,n,r),c=new H(s,{text:t,color:"white",fontSize:18,weight:i,interactive:!1,rotation:a.rotation,minZoom:11},o);return c.object3d.renderOrder=3,c}},{key:"collides",value:function(){this.rbush.clear();for(var t=0,e=this.textSprites.length;t<e;t++){var n=this.textSprites[t],r=n.getTextRect();this.rbush.collides(r)?n.hide():(n.show(),this.rbush.insert(r))}}},{key:"getPsVec",value:function(t,e,n){var r=t*(Math.PI/180),i=new c.Vector3(Math.sin(r)*e,Math.cos(r)*e,0);return i=i.applyMatrix4(n)}},{key:"calDirection",value:function(t){return t<=22.5&&t>337.5?45:t<=67.5&&t>22.5?0:t<=112.5&&t>67.5?315:t<=157.5&&t>112.5?270:t<=202.5&&t>157.5?225:t<=247.5&&t>202.5?180:t<=292.5&&t>247.5?135:t<=337.5&&t>292.5?90:0}},{key:"getArrowPs",value:function(t,e){var n=0;return t<=90?n=-t:t>90&&t<=180||t>180&&t<=270?n=180-t:t>270&&t<360&&(n=360-t),{rotation:n}}}]),t}(),Q={altitude:0,height:0},X=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),t=u.Util.extend({},Q,t,{layer:a}),s=e.call(this);var c=t;return c.width,c.height,c.altitude,s._initOptions(t),s._createMesh(i,o),s}return n}(C.a),Y={computeTangents:function(t){t.computeTangents(),console.warn("THREE.BufferGeometryUtils: .computeTangents() has been removed. Use BufferGeometry.computeTangents() instead.")},mergeBufferGeometries:function(t,e){for(var n=null!==t[0].index,r=new Set(Object.keys(t[0].attributes)),i=new Set(Object.keys(t[0].morphAttributes)),o={},a={},s=t[0].morphTargetsRelative,u=new c.BufferGeometry,l=0,h=0;h<t.length;++h){var f=t[h],d=0;if(n!==(null!==f.index))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(var p in f.attributes){if(!r.has(p))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+'. All geometries must have compatible attributes; make sure "'+p+'" attribute exists among all geometries, or in none of them.'),null;void 0===o[p]&&(o[p]=[]),o[p].push(f.attributes[p]),d++}if(d!==r.size)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". Make sure all geometries have the same number of attributes."),null;if(s!==f.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(var p in f.morphAttributes){if(!i.has(p))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". .morphAttributes must be consistent throughout all geometries."),null;void 0===a[p]&&(a[p]=[]),a[p].push(f.morphAttributes[p])}if(u.userData.mergedUserData=u.userData.mergedUserData||[],u.userData.mergedUserData.push(f.userData),e){var m;if(n)m=f.index.count;else{if(void 0===f.attributes.position)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". The geometry must have either an index or a position attribute"),null;m=f.attributes.position.count}u.addGroup(l,m,h),l+=m}}if(n){var g=0,v=[];for(h=0;h<t.length;++h){for(var y=t[h].index,_=0;_<y.count;++_)v.push(y.getX(_)+g);g+=t[h].attributes.position.count}u.setIndex(v)}for(var p in o){var x=this.mergeBufferAttributes(o[p]);if(!x)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+p+" attribute."),null;u.setAttribute(p,x)}for(var p in a){var b=a[p][0].length;if(0===b)break;for(u.morphAttributes=u.morphAttributes||{},u.morphAttributes[p]=[],h=0;h<b;++h){var w=[];for(_=0;_<a[p].length;++_)w.push(a[p][_][h]);var M=this.mergeBufferAttributes(w);if(!M)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+p+" morphAttribute."),null;u.morphAttributes[p].push(M)}}return u},mergeBufferAttributes:function(t){for(var e,n,r,i=0,o=0;o<t.length;++o){var a=t[o];if(a.isInterleavedBufferAttribute)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. InterleavedBufferAttributes are not supported."),null;if(void 0===e&&(e=a.array.constructor),e!==a.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(void 0===n&&(n=a.itemSize),n!==a.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(void 0===r&&(r=a.normalized),r!==a.normalized)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;i+=a.array.length}var s=new e(i),u=0;for(o=0;o<t.length;++o)s.set(t[o].array,u),u+=t[o].array.length;return new c.BufferAttribute(s,n,r)},interleaveAttributes:function(t){for(var e,n=0,r=0,i=0,o=t.length;i<o;++i){var a=t[i];if(void 0===e&&(e=a.array.constructor),e!==a.array.constructor)return console.error("AttributeBuffers of different types cannot be interleaved"),null;n+=a.array.length,r+=a.itemSize}var s=new c.InterleavedBuffer(new e(n),r),u=0,l=[],h=["getX","getY","getZ","getW"],f=["setX","setY","setZ","setW"],d=0;for(o=t.length;d<o;d++){var p=(a=t[d]).itemSize,m=a.count,g=new c.InterleavedBufferAttribute(s,p,u,a.normalized);l.push(g),u+=p;for(var v=0;v<m;v++)for(var y=0;y<p;y++)g[f[y]](v,a[h[y]](v))}return l},estimateBytesUsed:function(t){var e=0;for(var n in t.attributes){var r=t.getAttribute(n);e+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}var i=t.getIndex();return e+=i?i.count*i.itemSize*i.array.BYTES_PER_ELEMENT:0},mergeVertices:function(t,e=1e-4){e=Math.max(e,Number.EPSILON);for(var n={},r=t.getIndex(),i=t.getAttribute("position"),o=r?r.count:i.count,a=0,s=Object.keys(t.attributes),u={},l={},h=[],f=["getX","getY","getZ","getW"],d=0,p=s.length;d<p;d++){var m=s[d];u[m]=[];var g=t.morphAttributes[m];g&&(l[m]=new Array(g.length).fill().map(()=>[]))}var v=Math.log10(1/e),y=Math.pow(10,v);for(d=0;d<o;d++){var _=r?r.getX(d):d,x="",b=0;for(p=s.length;b<p;b++){m=s[b];for(var w=t.getAttribute(m),M=w.itemSize,S=0;S<M;S++)x+=~~(w[f[S]](_)*y)+","}if(x in n)h.push(n[x]);else{for(b=0,p=s.length;b<p;b++){m=s[b],w=t.getAttribute(m),g=t.morphAttributes[m],M=w.itemSize;var A=u[m],C=l[m];for(S=0;S<M;S++){var E=f[S];if(A.push(w[E](_)),g)for(var T=0,I=g.length;T<I;T++)C[T].push(g[T][E](_))}}n[x]=a,h.push(a),a++}}const L=t.clone();for(d=0,p=s.length;d<p;d++){m=s[d];var P=t.getAttribute(m),R=new P.array.constructor(u[m]);if(w=new c.BufferAttribute(R,P.itemSize,P.normalized),L.setAttribute(m,w),m in l)for(b=0;b<l[m].length;b++){var O=t.morphAttributes[m][b],k=(R=new O.array.constructor(l[m][b]),new c.BufferAttribute(R,O.itemSize,O.normalized));L.morphAttributes[m][b]=k}}return L.setIndex(h),L},toTrianglesDrawMode:function(t,e){if(e===c.TrianglesDrawMode)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e===c.TriangleFanDrawMode||e===c.TriangleStripDrawMode){var n=t.getIndex();if(null===n){var r=[],i=t.getAttribute("position");if(void 0===i)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(var o=0;o<i.count;o++)r.push(o);t.setIndex(r),n=t.getIndex()}var a=n.count-2,s=[];if(e===c.TriangleFanDrawMode)for(o=1;o<=a;o++)s.push(n.getX(0)),s.push(n.getX(o)),s.push(n.getX(o+1));else for(o=0;o<a;o++)o%2==0?(s.push(n.getX(o)),s.push(n.getX(o+1)),s.push(n.getX(o+2))):(s.push(n.getX(o+2)),s.push(n.getX(o+1)),s.push(n.getX(o)));s.length/3!==a&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");var u=t.clone();return u.setIndex(s),u.clearGroups(),u}return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t},computeMorphedAttributes:function(t){if(!0!==t.geometry.isBufferGeometry)return console.error("THREE.BufferGeometryUtils: Geometry is not of type BufferGeometry."),null;var e=new c.Vector3,n=new c.Vector3,r=new c.Vector3,i=new c.Vector3,o=new c.Vector3,a=new c.Vector3,s=new c.Vector3,u=new c.Vector3,l=new c.Vector3;function h(t,c,h,f,d,p,m,g,v){e.fromBufferAttribute(h,p),n.fromBufferAttribute(h,m),r.fromBufferAttribute(h,g);var y=t.morphTargetInfluences;if(c.morphTargets&&f&&y){s.set(0,0,0),u.set(0,0,0),l.set(0,0,0);for(var _=0,x=f.length;_<x;_++){var b=y[_],w=f[_];0!==b&&(i.fromBufferAttribute(w,p),o.fromBufferAttribute(w,m),a.fromBufferAttribute(w,g),d?(s.addScaledVector(i,b),u.addScaledVector(o,b),l.addScaledVector(a,b)):(s.addScaledVector(i.sub(e),b),u.addScaledVector(o.sub(n),b),l.addScaledVector(a.sub(r),b)))}e.add(s),n.add(u),r.add(l)}t.isSkinnedMesh&&(t.boneTransform(p,e),t.boneTransform(m,n),t.boneTransform(g,r)),v[3*p+0]=e.x,v[3*p+1]=e.y,v[3*p+2]=e.z,v[3*m+0]=n.x,v[3*m+1]=n.y,v[3*m+2]=n.z,v[3*g+0]=r.x,v[3*g+1]=r.y,v[3*g+2]=r.z}var f,d,p,m,g,v,y,_,x,b=t.geometry,w=t.material,M=b.index,S=b.attributes.position,A=b.morphAttributes.position,C=b.morphTargetsRelative,E=b.attributes.normal,T=b.morphAttributes.position,I=b.groups,L=b.drawRange,P=new Float32Array(S.count*S.itemSize),R=new Float32Array(E.count*E.itemSize);if(null!==M)if(Array.isArray(w))for(m=0,v=I.length;m<v;m++)for(x=w[(_=I[m]).materialIndex],g=Math.max(_.start,L.start),y=Math.min(_.start+_.count,L.start+L.count);g<y;g+=3)h(t,x,S,A,C,f=M.getX(g),d=M.getX(g+1),p=M.getX(g+2),P),h(t,x,E,T,C,f,d,p,R);else for(m=Math.max(0,L.start),v=Math.min(M.count,L.start+L.count);m<v;m+=3)h(t,w,S,A,C,f=M.getX(m),d=M.getX(m+1),p=M.getX(m+2),P),h(t,w,E,T,C,f,d,p,R);else if(void 0!==S)if(Array.isArray(w))for(m=0,v=I.length;m<v;m++)for(x=w[(_=I[m]).materialIndex],g=Math.max(_.start,L.start),y=Math.min(_.start+_.count,L.start+L.count);g<y;g+=3)h(t,x,S,A,C,f=g,d=g+1,p=g+2,P),h(t,x,E,T,C,f,d,p,R);else for(m=Math.max(0,L.start),v=Math.min(S.count,L.start+L.count);m<v;m+=3)h(t,w,S,A,C,f=m,d=m+1,p=m+2,P),h(t,w,E,T,C,f,d,p,R);return{positionAttribute:S,normalAttribute:E,morphedPositionAttribute:new c.Float32BufferAttribute(P,3),morphedNormalAttribute:new c.Float32BufferAttribute(R,3)}}},J=n("22b5"),q=function(){function t(e,n,i){var o=this;Object(r.a)(this,t);var a=n.width||64,s=e.length>100?100:e.length,u=new c.PlaneBufferGeometry(a,a);this.texture=this._createBackGround(a),this.radius=a/3;var l,h=new c.MeshStandardMaterial({map:this.texture}),f=[];this.impacts=[],this.tweens=[],e.slice(0,s).map((function(t){var e=u.clone(),n=i.coordinateToVector3(t,0),r=(new c.Matrix4).makeTranslation(n.x,n.y,n.z);e.applyMatrix4(r),f.push(e),o.impacts.push({impactPosition:new c.Vector3(0,0,0).applyMatrix4(r),impactMaxRadius:o.radius,impactRatio:1})})),h.onBeforeCompile=function(t){t.uniforms.impacts={value:o.impacts},t.uniforms.impactRadius={value:a/2},t.vertexShader="varying vec3 vPosition;\n"+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <worldpos_vertex>","#include <worldpos_vertex>\n vPosition = transformed.xyz;"),t.fragmentShader="struct impact {\n vec3 impactPosition;\n float impactMaxRadius;\n float impactRatio;\n };\n uniform impact impacts[".concat(s,"];\n uniform float impactRadius;\n varying vec3 vPosition;\n ")+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("#include <dithering_fragment>","#include <dithering_fragment>\n float finalStep = 0.0;\n for (int i = 0; i < ".concat(s,";i++){\n \n float dist = distance(vPosition, impacts[i].impactPosition);\n //float curRadius = impacts[i].impactMaxRadius * impacts[i].impactRatio;\n float curRadius = impactRadius * impacts[i].impactRatio;\n float sstep = smoothstep(0., curRadius, dist) - smoothstep(curRadius - ( 0.25 * impacts[i].impactRatio ), curRadius, dist);\n sstep *= 1. - impacts[i].impactRatio;\n finalStep += sstep;\n\n }\n finalStep = 1. - clamp(finalStep, 0., 1.);\n\n //vec3 col = mix(vec3(1., 0.5, 0.0625), vec3(1.,0.125, 0.0625), finalStep);\n vec3 col = mix(vec3(1.,0., 0.), vec3(1.,0., 0.), finalStep);\n gl_FragColor = vec4( mix( col, gl_FragColor.rgb, finalStep), diffuseColor.a );")),l=t,o.materialShader=t};var d=Y.mergeBufferGeometries(f),p=new X({interactive:!1},d,h,i);i.addMesh(p),this.map=i.map,this.curscale=this.map.getScale();for(var m=this,g=function(t){o.tweens.push({runTween:function(){new J.a({value:0}).to({value:1},c.Math.randInt(2500,5e3)).delay(c.Math.randInt(500,2e3)).onUpdate((function(e){l&&l.uniforms.impacts.value[t]&&(l.uniforms.impacts.value[t].impactRatio=e.value)})).onComplete((function(){var e;null===(e=m.tweens[t])||void 0===e||e.runTween()})).start()}})},v=0;v<s;v++)g(v);this.tweens.forEach((function(t){t.runTween()})),this.width=a,this.shockMeshs=p,this.threelayer=i,this.points=e,this._geom=u,this._bindMapEvents()}return Object(i.a)(t,[{key:"_bindMapEvents",value:function(){this.map&&this.map.on("zooming zoomend",this._setSizeOn,this)}},{key:"_closeEvent",value:function(){this.map&&this.map.off("zooming zoomend",this._setSizeOn,this)}},{key:"_setSizeOn",value:function(){if(this.materialShader){var t=this.map.getScale()/this.curscale;t=(t=t>1?1:t)<.5?.5:t,this.materialShader.uniforms.impactRadius.value=this.radius*t}}},{key:"_createBackGround",value:function(t){var e=document.createElement("canvas");e.width=e.height=t;var n=e.getContext("2d");n.globalCompositeOperation,n.globalAlpha=0,n.fillRect(0,0,e.width,e.height);var r=new c.Texture(e);return r.needsUpdate=!0,r}},{key:"hide",value:function(){this.shockMeshs&&this.threelayer.removeMesh(this.shockMeshs)}},{key:"show",value:function(){this.shockMeshs&&this.threelayer.addMesh(this.shockMeshs)}},{key:"dispose",value:function(){if(this.shockMeshs&&(this.threelayer.removeMesh(this.shockMeshs),this.shockMeshs.object3d.geometry&&this.shockMeshs.object3d.geometry.dispose(),delete this.shockMeshs,this.texture&&this.texture.dispose(),this.material&&(this.material.dispose(),delete this.material)),this.tweens.length>0){for(var t=0;t<this.tweens.length;t++)delete this.tweens[t];this.tweens=[]}if(this.impacts.length>0){for(var e=0;e<this.impacts.length;e++)delete this.impacts[e];this.impacts=[]}this._geom&&(this._geom.dispose(),delete this._geom),this._closeEvent(),this.points=[],this.materialShader&&delete this.materialShader,this.map=null}}]),t}();n("1913"),c.UniformsLib.line={linewidth:{value:1},resolution:{value:new c.Vector2(1,1)},dashScale:{value:1},dashSize:{value:1},dashOffset:{value:0},gapSize:{value:1},opacity:{value:1}},c.ShaderLib.line={uniforms:c.UniformsUtils.merge([c.UniformsLib.common,c.UniformsLib.fog,c.UniformsLib.line]),vertexShader:"\n\t\t#include <common>\n\t\t#include <color_pars_vertex>\n\t\t#include <fog_pars_vertex>\n\t\t#include <logdepthbuf_pars_vertex>\n\t\t#include <clipping_planes_pars_vertex>\n\n\t\tuniform float linewidth;\n\t\tuniform vec2 resolution;\n\n\t\tattribute vec3 instanceStart;\n\t\tattribute vec3 instanceEnd;\n\n\t\tattribute vec3 instanceColorStart;\n\t\tattribute vec3 instanceColorEnd;\n\n\t\tvarying vec2 vUv;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashScale;\n\t\t\tattribute float instanceDistanceStart;\n\t\t\tattribute float instanceDistanceEnd;\n\t\t\tvarying float vLineDistance;\n\n\t\t#endif\n\n\t\tvoid trimSegment( const in vec4 start, inout vec4 end ) {\n\n\t\t\t// trim end segment so it terminates between the camera plane and the near plane\n\n\t\t\t// conservative estimate of the near plane\n\t\t\tfloat a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n\t\t\tfloat b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n\t\t\tfloat nearEstimate = - 0.5 * b / a;\n\n\t\t\tfloat alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n\t\t\tend.xyz = mix( start.xyz, end.xyz, alpha );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#ifdef USE_COLOR\n\n\t\t\t\tvColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n\t\t\t#endif\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\n\t\t\t#endif\n\n\t\t\tfloat aspect = resolution.x / resolution.y;\n\n\t\t\tvUv = uv;\n\n\t\t\t// camera space\n\t\t\tvec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n\t\t\tvec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n\t\t\t// special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n\t\t\t// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n\t\t\t// but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n\t\t\t// perhaps there is a more elegant solution -- WestLangley\n\n\t\t\tbool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n\t\t\tif ( perspective ) {\n\n\t\t\t\tif ( start.z < 0.0 && end.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( start, end );\n\n\t\t\t\t} else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( end, start );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// clip space\n\t\t\tvec4 clipStart = projectionMatrix * start;\n\t\t\tvec4 clipEnd = projectionMatrix * end;\n\n\t\t\t// ndc space\n\t\t\tvec2 ndcStart = clipStart.xy / clipStart.w;\n\t\t\tvec2 ndcEnd = clipEnd.xy / clipEnd.w;\n\n\t\t\t// direction\n\t\t\tvec2 dir = ndcEnd - ndcStart;\n\n\t\t\t// account for clip-space aspect ratio\n\t\t\tdir.x *= aspect;\n\t\t\tdir = normalize( dir );\n\n\t\t\t// perpendicular to dir\n\t\t\tvec2 offset = vec2( dir.y, - dir.x );\n\n\t\t\t// undo aspect ratio adjustment\n\t\t\tdir.x /= aspect;\n\t\t\toffset.x /= aspect;\n\n\t\t\t// sign flip\n\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t// endcaps\n\t\t\tif ( position.y < 0.0 ) {\n\n\t\t\t\toffset += - dir;\n\n\t\t\t} else if ( position.y > 1.0 ) {\n\n\t\t\t\toffset += dir;\n\n\t\t\t}\n\n\t\t\t// adjust for linewidth\n\t\t\toffset *= linewidth;\n\n\t\t\t// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n\t\t\toffset /= resolution.y;\n\n\t\t\t// select end\n\t\t\tvec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n\t\t\t// back to clip space\n\t\t\toffset *= clip.w;\n\n\t\t\tclip.xy += offset;\n\n\t\t\tgl_Position = clip;\n\n\t\t\tvec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n\t\t\t#include <logdepthbuf_vertex>\n\t\t\t#include <clipping_planes_vertex>\n\t\t\t#include <fog_vertex>\n\n\t\t}\n\t\t",fragmentShader:"\n\t\tuniform vec3 diffuse;\n\t\tuniform float opacity;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashSize;\n\t\t\tuniform float dashOffset;\n\t\t\tuniform float gapSize;\n\n\t\t#endif\n\n\t\tvarying float vLineDistance;\n\n\t\t#include <common>\n\t\t#include <color_pars_fragment>\n\t\t#include <fog_pars_fragment>\n\t\t#include <logdepthbuf_pars_fragment>\n\t\t#include <clipping_planes_pars_fragment>\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\t#include <clipping_planes_fragment>\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tif ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n\t\t\t\tif ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n\t\t\t#endif\n\n\t\t\tfloat alpha = opacity;\n\n\t\t\t#ifdef ALPHA_TO_COVERAGE\n\n\t\t\t// artifacts appear on some hardware if a derivative is taken within a conditional\n\t\t\tfloat a = vUv.x;\n\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\tfloat len2 = a * a + b * b;\n\t\t\tfloat dlen = fwidth( len2 );\n\n\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\talpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );\n\n\t\t\t}\n\n\t\t\t#else\n\n\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\tfloat a = vUv.x;\n\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\tfloat len2 = a * a + b * b;\n\n\t\t\t\tif ( len2 > 1.0 ) discard;\n\n\t\t\t}\n\n\t\t\t#endif\n\n\t\t\tvec4 diffuseColor = vec4( diffuse, alpha );\n\n\t\t\t#include <logdepthbuf_fragment>\n\t\t\t#include <color_fragment>\n\n\t\t\tgl_FragColor = vec4( diffuseColor.rgb, alpha );\n\n\t\t\t#include <tonemapping_fragment>\n\t\t\t#include <encodings_fragment>\n\t\t\t#include <fog_fragment>\n\t\t\t#include <premultiplied_alpha_fragment>\n\n\t\t}\n\t\t"};var K=function(t){c.ShaderMaterial.call(this,{type:"LineMaterial",uniforms:c.UniformsUtils.clone(c.ShaderLib.line.uniforms),vertexShader:c.ShaderLib.line.vertexShader,fragmentShader:c.ShaderLib.line.fragmentShader,clipping:!0}),this.dashed=!1,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(t){this.uniforms.diffuse.value=t}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(t){this.uniforms.linewidth.value=t}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(t){this.uniforms.dashScale.value=t}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(t){this.uniforms.dashSize.value=t}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(t){this.uniforms.dashOffset.value=t}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(t){this.uniforms.gapSize.value=t}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(t){this.uniforms.resolution.value.copy(t)}},alphaToCoverage:{enumerable:!0,get:function(){return Boolean("ALPHA_TO_COVERAGE"in this.defines)},set:function(t){Boolean(t)!==Boolean("ALPHA_TO_COVERAGE"in this.defines)&&(this.needsUpdate=!0),t?(this.defines.ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(t)};(K.prototype=Object.create(c.ShaderMaterial.prototype)).constructor=K,K.prototype.isLineMaterial=!0;var $=function(){c.InstancedBufferGeometry.call(this),this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),this.setAttribute("position",new c.Float32BufferAttribute([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),this.setAttribute("uv",new c.Float32BufferAttribute([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))};$.prototype=Object.assign(Object.create(c.InstancedBufferGeometry.prototype),{constructor:$,isLineSegmentsGeometry:!0,applyMatrix4:function(t){var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==e&&(e.applyMatrix4(t),n.applyMatrix4(t),e.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},setPositions:function(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new c.InstancedInterleavedBuffer(e,6,1);return this.setAttribute("instanceStart",new c.InterleavedBufferAttribute(n,3,0)),this.setAttribute("instanceEnd",new c.InterleavedBufferAttribute(n,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this},setColors:function(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new c.InstancedInterleavedBuffer(e,6,1);return this.setAttribute("instanceColorStart",new c.InterleavedBufferAttribute(n,3,0)),this.setAttribute("instanceColorEnd",new c.InterleavedBufferAttribute(n,3,3)),this},fromWireframeGeometry:function(t){return this.setPositions(t.attributes.position.array),this},fromEdgesGeometry:function(t){return this.setPositions(t.attributes.position.array),this},fromMesh:function(t){return this.fromWireframeGeometry(new c.WireframeGeometry(t.geometry)),this},fromLineSegments:function(t){var e=t.geometry;if(!e.isGeometry)return e.isBufferGeometry&&this.setPositions(e.attributes.position.array),this;console.error("THREE.LineSegmentsGeometry no longer supports Geometry. Use THREE.BufferGeometry instead.")},computeBoundingBox:function(){var t=new c.Box3;return function(){null===this.boundingBox&&(this.boundingBox=new c.Box3);var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;void 0!==e&&void 0!==n&&(this.boundingBox.setFromBufferAttribute(e),t.setFromBufferAttribute(n),this.boundingBox.union(t))}}(),computeBoundingSphere:function(){var t=new c.Vector3;return function(){null===this.boundingSphere&&(this.boundingSphere=new c.Sphere),null===this.boundingBox&&this.computeBoundingBox();var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;if(void 0!==e&&void 0!==n){var r=this.boundingSphere.center;this.boundingBox.getCenter(r);for(var i=0,o=0,a=e.count;o<a;o++)t.fromBufferAttribute(e,o),i=Math.max(i,r.distanceToSquared(t)),t.fromBufferAttribute(n,o),i=Math.max(i,r.distanceToSquared(t));this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}}(),toJSON:function(){},applyMatrix:function(t){return console.warn("THREE.LineSegmentsGeometry: applyMatrix() has been renamed to applyMatrix4()."),this.applyMatrix4(t)}});var tt=function(){$.call(this),this.type="LineGeometry"};tt.prototype=Object.assign(Object.create($.prototype),{constructor:tt,isLineGeometry:!0,setPositions:function(t){for(var e=t.length-3,n=new Float32Array(2*e),r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return $.prototype.setPositions.call(this,n),this},setColors:function(t){for(var e=t.length-3,n=new Float32Array(2*e),r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return $.prototype.setColors.call(this,n),this},fromLine:function(t){var e=t.geometry;if(!e.isGeometry)return e.isBufferGeometry&&this.setPositions(e.attributes.position.array),this;console.error("THREE.LineGeometry no longer supports Geometry. Use THREE.BufferGeometry instead.")},copy:function(){return this}});var et={altitude:0,height:0},nt=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o){var a;Object(r.a)(this,n),t=u.Util.extend({},et,t,{layer:o}),a=e.call(this);var s=t,l=s.width,h=s.height;s.altitude,a._initOptions(t);var f=new c.PlaneBufferGeometry(l,h);return a._createMesh(f,i),a}return n}(C.a),rt=n("257e"),it=function(t,e){void 0===t&&(t=new $),void 0===e&&(e=new K({color:16777215*Math.random()})),c.Mesh.call(this,t,e),this.type="LineSegments2"};it.prototype=Object.assign(Object.create(c.Mesh.prototype),{constructor:it,isLineSegments2:!0,computeLineDistances:function(){var t=new c.Vector3,e=new c.Vector3;return function(){for(var n=this.geometry,r=n.attributes.instanceStart,i=n.attributes.instanceEnd,o=new Float32Array(2*r.count),a=0,s=0,u=r.count;a<u;a++,s+=2)t.fromBufferAttribute(r,a),e.fromBufferAttribute(i,a),o[s]=0===s?0:o[s-1],o[s+1]=o[s]+t.distanceTo(e);var l=new c.InstancedInterleavedBuffer(o,2,1);return n.setAttribute("instanceDistanceStart",new c.InterleavedBufferAttribute(l,1,0)),n.setAttribute("instanceDistanceEnd",new c.InterleavedBufferAttribute(l,1,1)),this}}(),raycast:function(){var t=new c.Vector4,e=new c.Vector4,n=new c.Vector4,r=new c.Vector3,i=new c.Matrix4,o=new c.Line3,a=new c.Vector3,s=new c.Box3,u=new c.Sphere,l=new c.Vector4;return function(h,f){null===h.camera&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2.');var d=void 0!==h.params.Line2&&h.params.Line2.threshold||0,p=h.ray,m=h.camera,g=m.projectionMatrix,v=this.matrixWorld,y=this.geometry,_=this.material,x=_.resolution,b=_.linewidth+d,w=y.attributes.instanceStart,M=y.attributes.instanceEnd,S=-m.near,A=2*Math.max(b/x.width,b/x.height);null===y.boundingSphere&&y.computeBoundingSphere(),u.copy(y.boundingSphere).applyMatrix4(v);var C=Math.max(m.near,u.distanceToPoint(p.origin));l.set(0,0,-C,1).applyMatrix4(m.projectionMatrix),l.multiplyScalar(1/l.w),l.applyMatrix4(m.projectionMatrixInverse);var E=.5*Math.abs(A/l.w);if(u.radius+=E,!1!==h.ray.intersectsSphere(u)){null===y.boundingBox&&y.computeBoundingBox(),s.copy(y.boundingBox).applyMatrix4(v);var T=Math.max(m.near,s.distanceToPoint(p.origin));l.set(0,0,-T,1).applyMatrix4(m.projectionMatrix),l.multiplyScalar(1/l.w),l.applyMatrix4(m.projectionMatrixInverse);var I=.5*Math.abs(A/l.w);if(s.max.x+=I,s.max.y+=I,s.max.z+=I,s.min.x-=I,s.min.y-=I,s.min.z-=I,!1!==h.ray.intersectsBox(s)){p.at(1,n),n.w=1,n.applyMatrix4(m.matrixWorldInverse),n.applyMatrix4(g),n.multiplyScalar(1/n.w),n.x*=x.x/2,n.y*=x.y/2,n.z=0,r.copy(n),i.multiplyMatrices(m.matrixWorldInverse,v);for(var L=0,P=w.count;L<P;L++)if(t.fromBufferAttribute(w,L),e.fromBufferAttribute(M,L),t.w=1,e.w=1,t.applyMatrix4(i),e.applyMatrix4(i),!(t.z>S&&e.z>S)){if(t.z>S){const n=t.z-e.z,r=(t.z-S)/n;t.lerp(e,r)}else if(e.z>S){const n=e.z-t.z,r=(e.z-S)/n;e.lerp(t,r)}t.applyMatrix4(g),e.applyMatrix4(g),t.multiplyScalar(1/t.w),e.multiplyScalar(1/e.w),t.x*=x.x/2,t.y*=x.y/2,e.x*=x.x/2,e.y*=x.y/2,o.start.copy(t),o.start.z=0,o.end.copy(e),o.end.z=0;var R=o.closestPointToPointParameter(r,!0);o.at(R,a);var O=c.MathUtils.lerp(t.z,e.z,R),k=O>=-1&&O<=1,B=r.distanceTo(a)<.5*b;if(k&&B){o.start.fromBufferAttribute(w,L),o.end.fromBufferAttribute(M,L),o.start.applyMatrix4(v),o.end.applyMatrix4(v);var D=new c.Vector3,F=new c.Vector3;p.distanceSqToSegment(o.start,o.end,F,D),f.push({point:F,pointOnLine:D,distance:p.origin.distanceTo(F),object:this,face:null,faceIndex:L,uv:null,uv2:null})}}}}}}()});var ot=function(t,e){void 0===t&&(t=new tt),void 0===e&&(e=new K({color:16777215*Math.random()})),it.call(this,t,e),this.type="Line2"};ot.prototype=Object.assign(Object.create(it.prototype),{constructor:ot,isLine2:!0});var at={radius:100,altitude:0},st=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a,s){var c;Object(r.a)(this,n),i=u.Util.extend({},at,i,{layer:s,coordinate:t}),(c=e.call(this))._initOptions(i);var l=i.altitude;c.object3d=new ot(o,a),c.object3d.computeLineDistances(),c.object3d.scale.set(1,1,1),c.object3d.__parent=Object(rt.a)(c);var h=s.distanceToVector3(l,l).x,f=s.coordinateToVector3(t,h);return c.getObject3d().position.copy(f),c}return n}(C.a),ct={radius:100,altitude:0},ut=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},ct,i,{layer:a,coordinate:t}),(s=e.call(this))._initOptions(i);var l=i,h=l.altitude,f=l.inradius,d=l.outradius,p=l.start,m=a.distanceToVector3(f,f).x,g=a.distanceToVector3(d,d).x,v=new c.RingBufferGeometry(m,g,14,1,p*Math.PI/180,45*Math.PI/180);s._createMesh(v,o);var y=a.distanceToVector3(h,h).x,_=a.coordinateToVector3(t,y);return s.getObject3d().position.copy(_),s}return n}(C.a),lt={radius:100,altitude:0},ht=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},lt,i,{layer:a,coordinate:t}),(s=e.call(this))._initOptions(i);var l=i,h=l.altitude,f=l.radius,d=l.start,p=a.distanceToVector3(f,f).x,m=new c.CircleBufferGeometry(p,128,d*Math.PI/180,45*Math.PI/180);s._createMesh(m,o);var g=a.distanceToVector3(h,h).x,v=a.coordinateToVector3(t,g);return s.getObject3d().position.copy(v),s}return n}(C.a),ft=function(){function t(e,n,i,o){Object(r.a)(this,t),this.tlayer=o,this.map=o.map;var a=o.coordinateToVector3(e,0),s=i.maxdis||15e3,l=i.middis||1e4,h=i.mindis||5e3,f=s/2e3,d=i.fontsize||80,p=4*f,m=1*f,g=o.distanceToVector3(s,s).x;this.global_r=g;var v=o.distanceToVector3(l,l).x,y=o.distanceToVector3(h,h).x,_=(new c.Matrix4).makeTranslation(a.x,a.y,a.z);this.matLine=new K({color:i.color||4227327,linewidth:i.lineWidth||.002,dashed:!1,transparent:!0}),this.matLine.uniforms.opacity.value=i.opacity||.65,this.meshitems=[],this.textures=[],this.lineItems=[],this.psItems=[];var x={type:"label",x_offset:0,y_offset:m,name:"N",degree:0};this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:m,y_offset:m,name:"EN",degree:45},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:m,y_offset:0,name:"E",degree:90},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:m,y_offset:-m,name:"ES",degree:135},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:0,y_offset:-m,name:"S",degree:180},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:-m,y_offset:-m,name:"WS",degree:225},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:-m,y_offset:0,name:"W",degree:270},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:-m,y_offset:m,name:"WN",degree:315},this.createLabelNew(g,d,p,_,x),this.createCircle(g,e),this.createCircle(v,e),this.createCircle(y,e);for(var b=0;b<360;b+=45)this.lineItems.push({x1:0*Math.sin(Math.PI/180*0),y1:0*Math.cos(Math.PI/180*0),z1:0,x2:Math.sin(b*(Math.PI/180))*g,y2:Math.cos(b*(Math.PI/180))*g,z2:0});this.createLine(e);for(var w=0;w<n.length;w++)-1!=n[w].name.indexOf("A")?this.createMinPoly(h,e,n[w].color,this.getDegree(n[w].name),Object.assign(n[w],{type:"poly"})):-1!=n[w].name.indexOf("B")?this.createRing(h,l,e,n[w].color,this.getDegree(n[w].name),Object.assign(n[w],{type:"poly"})):-1!=n[w].name.indexOf("C")&&this.createRing(l,s,e,n[w].color,this.getDegree(n[w].name),Object.assign(n[w],{type:"poly"}));if(o.addMesh(this.meshitems),this.callback=i.callback,this.callback){var M={custom:!0,dy:i.dy||-48,content:"",autoOpenOn:null};this.infoWindow=new u.ui.InfoWindow(M).addTo(this.map)}this._translation=_}return Object(i.a)(t,[{key:"clearInfo",value:function(){this.infoWindow&&this.infoWindow.hide()}},{key:"updateRing",value:function(t,e,n){var r=this,i=this.tlayer.coordinateToVector3([t,e],0),o=(new c.Matrix4).makeTranslation(i.x,i.y,i.z);this.meshitems.forEach((function(t){var e=t.getProperties();if(e&&"label"===e.type){var a=r.getPsVec(e.degree,r.global_r,o);r.psItems.push(a),t.object3d.position.set(a.x+e.x_offset,a.y+e.y_offset,0)}else if(e&&"poly"===e.type){var s=r.getPropertiesByName(e.name,n);if(s){e.color=s.color,e.value=s.value;var u=new c.Color(e.color);t.object3d.material.color=u,t.object3d.material.color.needsUpdate=!0,t.object3d.position.set(i.x,i.y,i.z)}}else t.object3d.position.set(i.x,i.y,i.z)}))}},{key:"dispose",value:function(){var t=this;if(this.infoWindow&&(this.infoWindow.remove(),delete this.infoWindow),this.meshitems){this.tlayer.removeMesh(this.meshitems),this.meshitems.forEach((function(e){var n=e.getProperties();n&&"poly"===n.type&&t.closeClick(e),n&&e.getProperties()})),this.textures.length>0&&(this.textures.forEach((function(t){t.dispose()})),this.textures=[]),this.meshitems.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()}));for(var e=0;e<this.lineItems.length;e++)delete this.lineItems[e];this.lineItems=[];for(var n=0;n<this.psItems.length;n++)delete this.psItems[n];this.psItems=[]}delete this._translation}},{key:"createMinPoly",value:function(t,e,n,r,i){var o=new c.MeshBasicMaterial({color:n,transparent:!0,opacity:.5,depthTest:!1}),a=new ht(e,{radius:t,start:r},o,this.tlayer);a.setProperties(i),this.attachClick(a),this.meshitems.push(a)}},{key:"createRing",value:function(t,e,n,r,i,o){var a=new c.MeshBasicMaterial({color:r,transparent:!0,opacity:.5,depthTest:!1}),s=new ut(n,{inradius:t,outradius:e,start:i},a,this.tlayer);s.setProperties(o),this.meshitems.push(s),this.attachClick(s)}},{key:"closeClick",value:function(t){t.off("click",this._setItemEvent,this)}},{key:"attachClick",value:function(t){t.on("click",this._setItemEvent,this)}},{key:"_setItemEvent",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.callback){t.next=5;break}return n=e.target.getProperties(),t.next=4,this.callback(this.infoWindow,n);case 4:this.infoWindow.show({x:e.coordinate.x,y:e.coordinate.y});case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getPropertiesByName",value:function(t,e){for(var n=0;n<e.length;n++)if(e[n].name===t)return e[n]}},{key:"getDegree",value:function(t){switch(t){case"A1":case"B1":case"C1":return 45;case"A2":case"B2":case"C2":return 0;case"A8":case"B8":case"C8":return 90;case"A7":case"B7":case"C7":return 135;case"A6":case"B6":case"C6":return 180;case"A5":case"B5":case"C5":return 225;case"A4":case"B4":case"C4":return 270;case"A3":case"B3":case"C3":return 315}}},{key:"createLine",value:function(t){for(var e=[],n=0;n<this.lineItems.length;n++){(e=[]).push(this.lineItems[n].x1,this.lineItems[n].y1,this.lineItems[n].z1),e.push(this.lineItems[n].x2,this.lineItems[n].y2,this.lineItems[n].z2);var r=new tt;r.setPositions(e);var i=new st(t,{interactive:!1},r,this.matLine,this.tlayer);this.meshitems.push(i)}}},{key:"createCircle",value:function(t,e){for(var n=[],r=0;r<=360;r++)n.push(Math.sin(r*(Math.PI/180))*t,Math.cos(r*(Math.PI/180))*t,0);var i=new tt;i.setPositions(n);var o=new st(e,{interactive:!1},i,this.matLine,this.tlayer);this.meshitems.push(o)}},{key:"createLabelNew",value:function(t,e,n,r,i){var o=new nt({interactive:!1,width:n,height:n},this.getTextMaterial(i.name,e,"#fff"),this.tlayer),a=this.getPsVec(i.degree,t,r);o.object3d.position.set(a.x+i.x_offset,a.y+i.y_offset,0),this.psItems.push(a),o.setProperties(i),this.meshitems.push(o)}},{key:"getPsVec",value:function(t,e,n){var r=t*(Math.PI/180),i=new c.Vector3(Math.sin(r)*e,Math.cos(r)*e,0);return i=i.applyMatrix4(n)}},{key:"getTextMaterial",value:function(t,e,n){var r=document.createElement("canvas");r.width=r.height=256;var i=r.getContext("2d");i.fillStyle=n,i.font="".concat(e,"px Aria"),i.textAlign="center",i.textBaseline="middle",i.fillText(t,128,128);var o=new c.Texture(r);return o.needsUpdate=!0,this.textures.push(o),new c.MeshPhongMaterial({map:o,transparent:!0,depthTest:!1})}}]),t}(),dt=(n("25f0"),n("a15b"),n("4c53"),Math.PI/180);function pt(t){return t.getCoordinates().map((function(t){return t.toArray()}))}function mt(t){return t*dt}function gt(t,e){if(!t||!e)return 0;Array.isArray(t)||(t=t.toArray()),Array.isArray(e)||(e=e.toArray());var n=mt(t[1]),r=mt(e[1]),i=n-r,o=mt(t[0])-mt(e[0]);return n=2*Math.asin(Math.sqrt(Math.pow(Math.sin(i/2),2)+Math.cos(n)*Math.cos(r)*Math.pow(Math.sin(o/2),2))),n*=6378137,Math.round(1e5*n)/1e5}function vt(t,e){var n=t.len,r=t.c1,i=t.c2,o=i[0]-r[0],a=i[1]-r[1],s=(i[2]||0)-(r[2]||0),c=e/n;return[r[0]+c*o,r[1]+c*a,(r[2]||0)+c*s]}var yt=n("d30b"),_t=n("4703");function xt(t,e,n){if(void 0===n&&(n={}),!0===n.final)return function(t,e){var n=xt(e,t);return n=(n+180)%360}(t,e);var r=Object(_t.a)(t),i=Object(_t.a)(e),o=Object(yt.a)(r[0]),a=Object(yt.a)(i[0]),s=Object(yt.a)(r[1]),c=Object(yt.a)(i[1]),u=Math.sin(a-o)*Math.cos(c),l=Math.cos(s)*Math.sin(c)-Math.sin(s)*Math.cos(c)*Math.cos(a-o);return Object(yt.c)(Math.atan2(u,l))}var bt=n("77cd"),wt=n.n(bt),Mt={altitude:0,height:0},St=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),o=u.Util.extend({},Mt,o,{layer:a}),s=e.call(this);var l=o,h=l.width,f=l.height,d=l.altitude;s._initOptions(o);var p=new c.PlaneBufferGeometry(h,f);s._createMesh(p,i);var m=a.distanceToVector3(d,d).x,g=a.coordinateToVector3(t,m);return s.getObject3d().position.copy(g),s}return n}(C.a),At=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.tlayer=i,this.map=i.map,n.color;var a=void 0!==n.smoothFlag&&!0===n.smoothFlag,s=void 0!==n.lineFlag&&!0===n.lineFlag;this.material=null,this.texture=null,this.curve=null,this.meshs=[],this.pts=[],this.newPts=[],this.arrows=[],this.lines=null,this.coordinates=null,this.positions=null,this.bearings=[],s&&(this.lineMaterial=new K({color:n.lineColor||"red",transparent:!0,linewidth:n.linewidth||4,blending:c.AdditiveBlending})),this.loadTexture().then((function(t){var r=null;if(a?(e.forEach((function(t){var e=i.coordinateToVector3(t);o.pts.push(e)})),o.curve=new c.CatmullRomCurve3(o.pts,!1),o.curve.getPoints(20).forEach((function(t){var e=o.map.pointToCoordinate(t,o.map.getGLZoom());o.newPts.push(e)})),r=new u.LineString(o.newPts)):r=new u.LineString(e),s){var l=i.toFatLine(r,{},o.lineMaterial);o.meshs.push(l),o.tlayer.addMesh(o.meshs)}var h=r.getLength(),f=parseInt(h/30);f=f>10?10:f,o.ArrowNum=f;var d=1/o.ArrowNum;o.addSpan=Math.floor(100*d)/100;for(var p=0;p<o.ArrowNum;p++){var m=new St(e[0],t,{width:n.width||.2,height:n.height||.1},o.tlayer);m.object3d.renderOrder=n.arrowOrder||1,o.arrows.push(m)}o.tlayer.addMesh(o.arrows),o.lines=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;e=Math.max(e,1),Array.isArray(t)||(t=pt(t));for(var n=t.length,r=[],i=0,o=0;o<n-1;o++){var a=gt(t[o],t[o+1]),s=Math.floor(a);r.push({c1:t[o],len:s,c2:t[o+1]}),i+=s}if(i<=e){var c=r.map((function(t){return[t.c1,t.c2]}));return c}if(1===r.length&&r[0].len<=e)return[[r[0].c1,r[0].c2]];for(var u,l=r.length,h=r[0],f=0,d=0,p=[],m=[h.c1];f<l;){var g=r[f],v=g.len,y=g.c2;if((d+=v)<e&&(m.push(y),f===l-1&&p.push(m),f++),d==e&&(m.push(y),d=0,p.push(m),m=[y],f++),d>e){var _=v-d+e;u=vt(r[f],_),m.push(u),p.push(m),d=0,r[f].c1=u,r[f].len=v-_,(m=[]).push(u)}}return p}(r,1);var g=o.lines[0][0],v=o.tlayer.coordinateToVector3(g);o.coordinates=[g],o.positions=[v],o.lines.forEach((function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.join(",").toString()!==o.coordinates[o.coordinates.length-1].join(",").toString()){o.coordinates.push(n);var r=o.tlayer.coordinateToVector3(n);r.z=.02,o.positions.push(r)}}}));for(var y=0;y<o.coordinates.length-1;y++){var _=o.coordinates[y],x=o.coordinates[y+1],b=xt(wt()(_),wt()(x));o.bearings.push((180-b)*Math.PI/180)}}))}return Object(i.a)(t,[{key:"loadTexture",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.promiseToDoSomething();case 2:return e=t.sent,this.texture=new c.CanvasTexture(e.canvas),this.material=new c.MeshBasicMaterial({map:this.texture,side:c.DoubleSide,depthWrite:!1,depthTest:!1}),t.abrupt("return",this.material);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"promiseToDoSomething",value:function(){return new Promise((function(t){var e=document.createElement("canvas").getContext("2d");e.canvas.width=64,e.canvas.height=64,e.translate(29,32),e.rotate(.5*Math.PI),e.fillStyle="rgb(0,255,255)",e.textAlign="center",e.textBaseline="middle",e.font="48px sans-serif",e.fillText("➡︎",0,0),setTimeout((function(){return t(e)}),4)}))}},{key:"naimationFunc",value:function(){if(this.coordinates)for(var t=1e-4*performance.now(),e=0;e<this.ArrowNum;e++){var n=(t+this.addSpan*e)%1,r=Math.floor(n*this.coordinates.length);this.arrows[e].getObject3d().position.copy(this.positions[r]);var i=this.bearings[r];null!=i&&(this.arrows[e].getObject3d().rotation.z=i)}}},{key:"dispose",value:function(){this.meshs&&(this.tlayer.removeMesh(this.meshs),this.meshs.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose()}))),this.arrows&&(this.tlayer.removeMesh(this.arrows),this.arrows.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose()}))),this.material&&this.material.dispose(),this.texture&&this.texture.dispose(),this.curve&&delete this.curve;for(var t=0;t<this.pts.length;t++)delete this.pts[t];this.pts=[],this.newPts=[];for(var e=0;e<this.lines.length;e++)delete this.lines[e];this.lines=[],this.coordinates=[],this.positions=[],this.bearings=[]}}]),t}(),Ct=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.tlayer=i,this.map=i.map;var a=i.coordinateToVector3(e,0),s=n.distince||15e3,u=s/2,l=s/2e3,h=n.fontsize||80,f=4*l,d=1*l,p=i.distanceToVector3(s,s).x,m=i.distanceToVector3(u,u).x,g=(new c.Matrix4).makeTranslation(a.x,a.y,a.z);if(this.meshitems=[],this.textures=[],this.lineItems=[],this.psItems=[],this.arrowitems=[],this.matLine=new K({color:n.color||4227327,linewidth:n.lineWidth||.001,dashed:!1,transparent:!0}),this.matLine.uniforms.opacity.value=n.opacity||.65,this.textureLoader=new c.TextureLoader,n.arrowImgPath){var v=n.windSpeed||0,y=n.windDirection||0;console.log(y),this.textureLoader.load(n.arrowImgPath,(function(t){o.textures.push(t),o.arrowMaterial=new c.MeshBasicMaterial({map:t});var e=new nt({interactive:!1,width:2*l,height:2*l},o.arrowMaterial,o.tlayer),n=o.getArrowPs(y,l),r=n.rotation*(Math.PI/180),i=o.getPsVec(y,p,g);o.psItems.push(i),o.psItems.push(n),e.object3d.position.set(i.x,i.y,a.z),e.object3d.rotation.z=r,o.arrowitems.push(e);var s=o.createTexture("".concat(v,"级"),60,"#fff");o.textures.push(s);var u=new nt({interactive:!1,width:f,height:f},o.getArrowTextMaterial(s),o.tlayer);u.object3d.position.set(i.x+n.offx,i.y+n.offy,a.z),o.arrowitems.push(u),o.tlayer.addMesh(o.arrowitems)}))}var _={type:"label",x_offset:0,y_offset:d,name:"N",degree:0};this.createLabelNew(p,h,f,g,_),_={type:"label",x_offset:d,y_offset:d,name:"EN",degree:45},this.createLabelNew(p,h,f,g,_),_={type:"label",x_offset:d,y_offset:0,name:"E",degree:90},this.createLabelNew(p,h,f,g,_),_={type:"label",x_offset:d,y_offset:-d,name:"ES",degree:135},this.createLabelNew(p,h,f,g,_),_={type:"label",x_offset:0,y_offset:-d,name:"S",degree:180},this.createLabelNew(p,h,f,g,_),_={type:"label",x_offset:-d,y_offset:-d,name:"WS",degree:225},this.createLabelNew(p,h,f,g,_),_={type:"label",x_offset:-d,y_offset:0,name:"W",degree:270},this.createLabelNew(p,h,f,g,_),_={type:"label",x_offset:-d,y_offset:d,name:"WN",degree:315},this.createLabelNew(p,h,f,g,_),this.createCircle(p,e),this.createCircle(m,e);for(var x=0;x<360;x+=22.5)this.lineItems.push({x1:0*Math.sin(Math.PI/180*0),y1:0*Math.cos(Math.PI/180*0),z1:0,x2:Math.sin(x*(Math.PI/180))*p,y2:Math.cos(x*(Math.PI/180))*p,z2:0});this.createLine(e),i.addMesh(this.meshitems),this._translation=g,this._r=p,this._factor=l}return Object(i.a)(t,[{key:"dispose",value:function(){if(this.meshitems){this.tlayer.removeMesh(this.meshitems),this.meshitems.forEach((function(t){t.getProperties()&&t.getProperties()})),this.textures.length>0&&(this.textures.forEach((function(t){t.dispose()})),this.textures=[]),this.meshitems.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()}));for(var t=0;t<this.lineItems.length;t++)delete this.lineItems[t];this.lineItems=[];for(var e=0;e<this.psItems.length;e++)delete this.psItems[e];this.psItems=[]}this.arrowitems&&(this.tlayer.removeMesh(this.arrowitems),this.arrowitems.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()}))),this.textureLoader&&delete this.textureLoader,delete this._translation}},{key:"createLine",value:function(t){for(var e=[],n=0;n<this.lineItems.length;n++){(e=[]).push(this.lineItems[n].x1,this.lineItems[n].y1,this.lineItems[n].z1),e.push(this.lineItems[n].x2,this.lineItems[n].y2,this.lineItems[n].z2);var r=new tt;r.setPositions(e);var i=new st(t,{interactive:!1},r,this.matLine,this.tlayer);this.meshitems.push(i)}}},{key:"updateDirection",value:function(t,e){if(2===this.arrowitems.length){var n=this.arrowitems[0],r=this.arrowitems[1],i=this.createTexture("".concat(e||0,"级"),60,"#fff");r.object3d.material.map=i,this.textures.push(i),r.object3d.material.map.needsUpdate=!0;var o=this.getArrowPs(t,this._factor),a=o.rotation*(Math.PI/180),s=this.getPsVec(t,this._r,this._translation);n.object3d.position.set(s.x,s.y,0),this.psItems.push(s),this.psItems.push(o),n.object3d.position.set(s.x,s.y,0),n.object3d.rotation.z=a,r.object3d.position.set(s.x+o.offx,s.y+o.offy,0)}}},{key:"createCircle",value:function(t,e){for(var n=[],r=0;r<=360;r++)n.push(Math.sin(r*(Math.PI/180))*t,Math.cos(r*(Math.PI/180))*t,0);var i=new tt;i.setPositions(n);var o=new st(e,{interactive:!1},i,this.matLine,this.tlayer);this.meshitems.push(o)}},{key:"createLabelNew",value:function(t,e,n,r,i){var o=new nt({interactive:!1,width:n,height:n},this.getTextMaterial(i.name,e,"#fff"),this.tlayer),a=this.getPsVec(i.degree,t,r);o.object3d.position.set(a.x+i.x_offset,a.y+i.y_offset,0),this.psItems.push(a),o.setProperties(i),this.meshitems.push(o)}},{key:"getPsVec",value:function(t,e,n){var r=t*(Math.PI/180),i=new c.Vector3(Math.sin(r)*e,Math.cos(r)*e,0);return i=i.applyMatrix4(n)}},{key:"getTextMaterial",value:function(t,e,n){var r=document.createElement("canvas");r.width=r.height=256;var i=r.getContext("2d");i.fillStyle=n,i.font="".concat(e,"px Aria"),i.textAlign="center",i.textBaseline="middle",i.fillText(t,128,128);var o=new c.Texture(r);return o.needsUpdate=!0,this.textures.push(o),new c.MeshPhongMaterial({map:o,transparent:!0,depthTest:!1})}},{key:"getArrowPs",value:function(t,e){var n=0,r=0,i=0;return t>180?(n=360-t+180,r=2*e,i=0):n=180-t,0==t?(r=0,i=-2*e):180==t?(i=0,i=2*e):t>0&&t<180&&(r=-2*e,i=0),{rotation:n,offx:r,offy:i}}},{key:"createTexture",value:function(t,e,n){var r=document.createElement("canvas");r.width=r.height=256;var i=r.getContext("2d");i.fillStyle=n,i.font="".concat(e,"px Aria"),i.textAlign="center",i.textBaseline="middle",i.fillText(t,128,128);var o=new c.Texture(r);return o.needsUpdate=!0,o}},{key:"getArrowTextMaterial",value:function(t){return new c.MeshPhongMaterial({map:t,transparent:!0,depthTest:!1})}}]),t}(),Et={altitude:0,height:0},Tt=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},Et,i,{layer:a}),(s=e.call(this))._initOptions(i);var l=i.altitude;console.log(l),s._createGroup();var h=new c.Sprite(o);h.material.sizeAttenuation=!1;var f=.005/3;h.scale.set(36*f,36*f,1),console.log(36*f/2*200),s.getObject3d().add(h);var d=a.distanceToVector3(l,l).x,p=a.coordinateToVector3(t,d);return s.getObject3d().position.copy(p),s}return n}(C.a),It=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.map=i.map,this.threeLayer=i,this.lineStrings=[],this.meshs=[],this.properties=[],this.lineMaterial=new c.LineBasicMaterial({color:n.lineColor||"rgb(0,160,233)"}),this.rfields=null,this.fields=[],this.isToolTip=n.isToolTip,this.isExtrusion=n.isExtrusion,this.oriColor={},this.selectColor=n.selectColor?new c.Color(n.selectColor):null,this.geojson=e,this.iconPath=n.iconPath,this.iconCidName=n.iconCidValue,this.codeFild=void 0!==n.codeField?n.codeField:"name",this.fontConfig=n.fontConfig,n.text&&(this.txtLabel=new u.VectorLayer(u.Util.GUID(),{hitDetect:!1,enableAltitude:!0,zIndex:1001}).addTo(i.map),this.rfields=n.text.match(/\{(.+?)\}/g),this.rfields.forEach((function(t){o.fields.push(t.substring(1,t.length-1))})),this.geoItems=[]),this.textureLoader=new c.TextureLoader,e.forEach((function(t){var e=t.geometry,r=u.GeoJSON.toGeometry(t),a=t.properties;o.oriColor[a[o.codeFild]]||(o.oriColor[a[o.codeFild]]=new c.Color(a.color));var s=new c.MeshPhongMaterial({transparent:!0,opacity:void 0!==a.opacity?a.opacity:1,color:o.oriColor[a[o.codeFild]]}),l=.1;o.isExtrusion&&(l=a.height?200*a.height:.1);var h=i.toExtrudePolygon(r,{height:l,interactive:void 0===n.interactive||n.interactive},s);h.setProperties(t.properties),h.object3d.renderOrder=n.renderOrder||0,o.isToolTip&&h.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),o.meshs.push(h),n.isAddLine&&e.coordinates.forEach((function(e){var n=new u.LineString(e[0]),r=i.toLine(n,{altitude:.1===l?1:l,interactive:!1},o.lineMaterial);r.setProperties(t.properties),o.meshs.push(r),o.lineStrings.push(n)}));var f=r.getCenter();if(o.iconPath&&o.iconCidName&&o.iconCidName===a[o.codeFild]){var d=new u.Marker(f,{properties:{altitude:.1===l?1:l,code:a[o.codeFild]},symbol:{markerFile:o.iconPath,markerWidth:64,markerHeight:64,markerDx:0,markerDy:0,markerOpacity:1}});o.geoItems.push(d),o.txtLabel.addGeometry(d)}n.text&&o.createMark(f,l,a)})),this.clickFunc=n.clickFunc,i.addMesh(this.meshs),this._bindEvent()}return Object(i.a)(t,[{key:"createMark",value:function(t,e,n){var r=null;1===this.fields.length?r=new u.Marker(t,{properties:{name:n[this.fields[0]],altitude:.1===e?1:e,code:n[this.codeFild]},symbol:[{textFaceName:"sans-serif",textName:"{name}",textWeight:"normal",textStyle:"normal",textSize:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontSize?this.fontConfig[0].fontSize:12,textFont:null,textFill:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontColor?this.fontConfig[0].fontColor:"#fff",textOpacity:1,textWrapWidth:null,textWrapCharacter:"\n",textLineSpacing:0,textDx:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dx?this.fontConfig[0].dx:20,textDy:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dy?this.fontConfig[0].dy:0,textHorizontalAlignment:"top",textVerticalAlignment:"middle",textAlign:"center"}]}):2===this.fields.length&&(r=new u.Marker(t,{properties:{name:n[this.fields[0]],index:n[this.fields[1]],altitude:.1===e?1:e,code:n[this.codeFild]},symbol:[{textFaceName:"sans-serif",textName:"{name}",textWeight:"normal",textStyle:"normal",textSize:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontSize?this.fontConfig[0].fontSize:12,textFont:null,textFill:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontColor?this.fontConfig[0].fontColor:"#fff",textOpacity:1,textWrapWidth:null,textWrapCharacter:"\n",textLineSpacing:0,textDx:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dx?this.fontConfig[0].dx:20,textDy:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dy?this.fontConfig[0].dy:0,textHorizontalAlignment:"top",textVerticalAlignment:"middle",textAlign:"center"},{textFaceName:"sans-serif",textName:"{index}",textWeight:"bold",textStyle:"normal",textSize:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].fontSize?this.fontConfig[1].fontSize:20,textFont:null,textFill:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].fontColor?this.fontConfig[1].fontColor:"#fff",textOpacity:1,textWrapWidth:null,textWrapCharacter:"\n",textLineSpacing:0,textDx:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].dx?this.fontConfig[1].dx:20,textDy:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].dy?this.fontConfig[1].dy:-20,textHorizontalAlignment:"top",textVerticalAlignment:"middle",textAlign:"center"}]})),r&&(this.geoItems.push(r),this.txtLabel.addGeometry(r))}},{key:"addIcon",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e,n){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,B.a.addImageProcessImage(this.iconPath);case 2:r=t.sent,i=B.a.generateTextureOne(r,128,128),this.iconMaterial=new c.SpriteMaterial({map:i}),(o=new Tt(e,{altitude:n+=2400},this.iconMaterial,this.threeLayer)).zoomChange=function(){o.getMap()},this.threeLayer.addMesh(o);case 8:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"_bindEvent",value:function(){var t=this;this.meshs.forEach((function(e){"ExtrudePolygon"===e.type&&e.on("click mousemove mouseout",t._setEvent,t)}))}},{key:"_closeEvent",value:function(){var t=this;this.meshs.forEach((function(e){"ExtrudePolygon"===e.type&&e.off("click mousemove mouseout",t._setEvent,t)}))}},{key:"_setEvent",value:function(t){var e=t.target.getProperties();"mousemove"===t.type&&t.target&&(this.isToolTip&&(t.target.getToolTip()._content="".concat(e.name)),this.selectColor&&(t.target.object3d.material.color=this.selectColor,t.target.object3d.material.color.needsUpdate=!0)),"mouseout"===t.type&&t.target&&this.selectColor&&(t.target.object3d.material.color=this.oriColor[e.name],t.target.object3d.material.color.needsUpdate=!0),"click"===t.type&&t.target&&this.clickFunc&&this.clickFunc(e)}},{key:"dispose",value:function(){for(var t in this.threeLayer.removeMesh(this.meshs),this._closeEvent(),this.meshs.forEach((function(t){"ExtrudePolygon"===t.type&&t.removeToolTip(),t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()})),this.lineMaterial&&this.lineMaterial.dispose(),this.selectColor&&delete this.selectColor,this.oriColor)delete this.oriColor[t];if(this.txtLabel&&this.map.removeLayer(this.txtLabel),this.geoItems)for(var e=0;e<this.geoItems.length;e++)delete this.geoItems[e];if(this.geoItems=[],this.geojson)for(var n=0;n<this.geojson.length;n++)delete this.geojson[n]}},{key:"findMesh",value:function(t){for(var e=0;e<this.meshs.length;e++)if("ExtrudePolygon"===this.meshs[e].type&&this.meshs[e].getProperties()[this.codeFild]===t)return this.meshs[e]}},{key:"setOpacity",value:function(t,e){for(var n=0;n<this.meshs.length;n++)"ExtrudePolygon"===this.meshs[n].type&&this.meshs[n].getProperties()[this.codeFild]===t&&(this.meshs[n].object3d.material.opacity=e)}},{key:"update",value:function(t){var e=this;this.geojson.forEach((function(n){for(var r=u.GeoJSON.toGeometry(n),i=n.properties,o=function(n){if(t[n][e.codeFild]===i[e.codeFild]){e.oriColor[i[e.codeFild]]&&(delete e.oriColor[i[e.codeFild]],e.oriColor[i[e.codeFild]]=new c.Color(t[n].color));var o=new c.MeshBasicMaterial({transparent:!0,opacity:i.opacity||1,color:e.oriColor[i[e.codeFild]]}),a=.1;e.isExtrusion&&(a=t[n].height?200*t[n].height:.1);for(var s=e.threeLayer.toExtrudePolygon(r,{height:a},o),u=e.findMesh(t[n][e.codeFild]),l=s.object3d.geometry.attributes.position.array,h=u.object3d.geometry.attributes.position.array,f=0;f<h.length;f++)h[f]=l[f];u.object3d.geometry.attributes.position.needsUpdate=!0,u.object3d.material.color=e.oriColor[i[e.codeFild]],u.object3d.material.color.needsUpdate=!0;var d=e.threeLayer.distanceToVector3(a,a).x;e.meshs.forEach((function(r){"Line"===r.type&&r.getProperties()[e.codeFild]===t[n][e.codeFild]&&(r.object3d.position.z=d)})),s.object3d.geometry&&s.object3d.geometry.dispose(),s.object3d.material&&s.object3d.material.dispose();for(var p=0;p<e.geoItems.length;p++)e.geoItems[p].getProperties().code===t[n][e.codeFild]&&(e.geoItems[p].getProperties().index&&(e.geoItems[p].getProperties().index=t[n].rank),e.geoItems[p].getProperties().altitude=a,e.geoItems[p].updateSymbol({index:"{index}"}));return"break"}},a=0;a<t.length&&"break"!==o(a);a++);}))}}]),t}();function Lt(){var t="xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}));return"iep".concat(t,"layer")}n("a4d3"),n("e01a"),n("d28b"),n("06c5"),n("3835"),n("4fad"),n("1bf2"),n("f8c9"),n("e439"),n("60ed");var Pt=function(){function t(e,n){var i=this;Object(r.a)(this,t),this.map=n,this.animationId=null,this.func=[];var o=Lt();this.threeLayer=new C.c(o,{forceRenderOnMoving:!0,forceRenderOnRotating:!0,identifyCountOnEvent:1});var a=function t(){var e,n;i.threeLayer._needsUpdate=!i.threeLayer._needsUpdate,i.threeLayer._needsUpdate&&(null===(e=i.threeLayer)||void 0===e||null===(n=e.getRenderer())||void 0===n||n.clearCanvas(),i.threeLayer.renderScene()),i.func.forEach((function(t){return t()})),J.c(),i.animationId=requestAnimationFrame(t)};this.threeLayer.prepareToDraw=function(t,e,n){var r=new c.DirectionalLight(16777215);r.position.set(0,-10,10).normalize(),e.add(r),a()},this.threeLayer.addTo(n),n.getLayer(o).setZIndex(1e3),this.layerId=o,this.layerName=e,this.dirty=!1,this.polygonObjs=[],this.polylineObjs=[],this.circleObj=null,this.directionObj=null,this.trips=[],this.ringObj=null,this.shockObj=null,this.initFlag=!1}return Object(i.a)(t,[{key:"getLayerId",value:function(){return this.layerId}},{key:"changeLayerId",value:function(){if(this.threeLayer){var t=Lt();this.threeLayer.setId(t),this.layerId=t}}},{key:"setVisible",value:function(t,e){this.threeLayer&&(!0===t?(this.threeLayer.show(),e&&e()):(this.threeLayer.hide(),e&&e()))}},{key:"prepareToDraw",value:function(){var t=this,e=function e(){var n,r;t.threeLayer._needsUpdate=!t.threeLayer._needsUpdate,t.threeLayer._needsUpdate&&(null===(n=t.threeLayer)||void 0===n||null===(r=n.getRenderer())||void 0===r||r.clearCanvas(),t.threeLayer.renderScene()),t.func.forEach((function(t){return t()})),J.c(),t.animationId=requestAnimationFrame(e)};return new Promise((function(n){t.threeLayer.prepareToDraw=function(t,r,i){var o=new c.DirectionalLight(16777215);o.position.set(0,-10,10).normalize(),r.add(o),e(),n()}}))}},{key:"removeIepLayer",value:function(){this.threeLayer&&this.threeLayer.getMeshes().forEach((function(t){var e;"Points"!==t.type&&"Image"!==t.type||null===(e=t.parent)||void 0===e||e.dispose()})),this.directionObj&&(this.directionObj.dispose(),delete this.directionObj),this.trips.length>0&&(this.func=[],this.trips.forEach((function(t){t.dispose()})),this.trips=[]),this.circleObj&&(this.circleObj.dispose(),delete this.circleObj),this.ringObj&&(this.ringObj.dispose(),delete this.ringObj),this.clearShock(),this.clearPolygon(),this.clearPolyline()}},{key:"getPointObjByName",value:function(t,e){this.threeLayer&&this.threeLayer.getMeshes().forEach((function(n){"Points"===n.type&&n.parent.name===t&&e(n.parent)}))}},{key:"updateDirection",value:function(t,e){this.directionObj&&this.directionObj.updateDirection(t,e)}},{key:"clearDirection",value:function(){this.directionObj&&(this.directionObj.dispose(),delete this.directionObj)}},{key:"drawDirection",value:function(t,e,n){var r=this,i=n||{};this.threeLayer.getScene()?(this.directionObj&&(this.directionObj.dispose(),delete this.directionObj),setTimeout((function(){r.directionObj=new Ct([t,e],i,r.threeLayer)}),500)):(this.initFlag=!0,this.prepareToDraw().then((function(){r.directionObj||(r.directionObj=new Ct([t,e],i,r.threeLayer))})))}},{key:"clearCircle",value:function(){this.circleObj&&(this.circleObj.dispose(),delete this.circleObj)}},{key:"drawCircle",value:function(t,e,n,r){var i=this,o=r||{};this.threeLayer.getScene()?this.circleObj?this.circleObj.update(t,e,n,o):this.circleObj=new Z(t,e,n,o,this.threeLayer):(this.initFlag=!0,this.prepareToDraw().then((function(){i.circleObj?i.circleObj.update(t,e,n,o):i.circleObj=new Z(t,e,n,o,i.threeLayer)})))}},{key:"drawImage",value:function(t,e,n,r,i){var o=this;if(this.threeLayer.getScene()){var a=new I(t,e,n,r,this.threeLayer);i(a)}else this.initFlag=!0,this.prepareToDraw().then((function(){var a=new I(t,e,n,r,o.threeLayer);i(a)}))}},{key:"drawPoint",value:function(t,e,n){var r=this;if(this.threeLayer.getScene()){var i=null;t.length>0?(i=new M.a(t,e,this.threeLayer)).addPoint().then((function(){!1===r.threeLayer.options.visible&&i.hide(),n(i)})):n(i)}else this.initFlag=!0,this.prepareToDraw().then((function(){var i=null;t.length>0?(i=new M.a(t,e,r.threeLayer)).addPoint().then((function(){!1===r.threeLayer.options.visible&&i.hide(),n(i)})):n(i)}))}},{key:"updatePolygonOpacity",value:function(t,e){this.polygonObjs.forEach((function(n){n.setOpacity(t,e)}))}},{key:"clearTrip",value:function(){this.func=[],this.trips.forEach((function(t){t.dispose()})),this.trips=[]}},{key:"drawTrip",value:function(t,e){var n=this,r=e||{};if(this.threeLayer.getScene()){var i=new At(t,r,this.threeLayer);this.trips.push(i),this.func.push((function(){i.naimationFunc()}))}else this.initFlag=!0,this.prepareToDraw().then((function(){var e=new At(t,r,n.threeLayer);n.trips.push(e),n.func.push((function(){e.naimationFunc()}))}))}},{key:"updatePolygon",value:function(t){console.log(t),this.polygonObjs.forEach((function(e){e.update(t)}))}},{key:"clearPolygon",value:function(){for(var t=0;t<this.polygonObjs.length;t++)this.polygonObjs[t].dispose(),delete this.polygonObjs[t];this.polygonObjs=[]}},{key:"drawPolygon",value:function(t,e){var n=this,r=e||{};if(this.threeLayer.getScene()){var i=new It(t,r,this.threeLayer);this.polygonObjs.push(i)}else this.initFlag=!0,this.prepareToDraw().then((function(){var e=new It(t,r,n.threeLayer);n.polygonObjs.push(e)}))}},{key:"clearPolyline",value:function(){for(var t=0;t<this.polylineObjs.length;t++)this.polylineObjs[t].dispose(),delete this.polylineObjs[t];this.polylineObjs=[]}},{key:"drawPolyline",value:function(t,e){var n=this,r=e||{};if(this.threeLayer.getScene()){var i=new Rt(t,r,this.threeLayer);this.polylineObjs.push(i)}else this.initFlag=!0,this.prepareToDraw().then((function(){var e=new Rt(t,r,n.threeLayer);n.polylineObjs.push(e)}))}},{key:"clearRing",value:function(){this.ringObj&&(this.ringObj.dispose(),delete this.ringObj)}},{key:"clearRingInfo",value:function(){this.ringObj&&this.ringObj.clearInfo()}},{key:"updateRing",value:function(t,e,n){this.ringObj&&this.ringObj.updateRing(t,e,n)}},{key:"drawRing",value:function(t,e,n,r){var i=this,o=r||{};this.threeLayer.getScene()?(this.ringObj&&(this.ringObj.dispose(),delete this.ringObj),setTimeout((function(){i.ringObj=new ft([t,e],n,o,i.threeLayer)}),500)):(this.initFlag=!0,this.prepareToDraw().then((function(){i.ringObj||(i.ringObj=new ft([t,e],n,o,i.threeLayer))})))}},{key:"drawShock",value:function(t,e){var n=this;this.threeLayer.getScene()?this.shockObj&&(this.shockObj.dispose(),this.shockObj=null,setTimeout((function(){n.shockObj=new q(t,e||{},n.threeLayer)}),500)):(this.initFlag=!0,this.prepareToDraw().then((function(){n.shockObj=new q(t,e||{},n.threeLayer)})))}},{key:"clearShock",value:function(){this.shockObj&&(J.b(),this.shockObj.dispose(),this.shockObj=null)}}]),t}(),Rt=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.map=i.map,this.threeLayer=i,this.meshs=[],this.lineMaterial=new K({color:n.lineColor||"red",transparent:!0,linewidth:n.linewidth||4,blending:c.AdditiveBlending}),e.forEach((function(t){var e=u.GeoJSON.toGeometry(t),r=i.toFatLine(e,{interactive:void 0!==n.interactive&&n.interactive},o.lineMaterial);r.object3d.renderOrder=n.renderOrder||0,o.meshs.push(r)})),i.addMesh(this.meshs)}return Object(i.a)(t,[{key:"dispose",value:function(){this.threeLayer.removeMesh(this.meshs),this.meshs.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()})),this.lineMaterial&&this.lineMaterial.dispose()}}]),t}(),Ot=function(){function t(e){Object(r.a)(this,t),this.map=e,this.windObj=null,this.drawTool=null,this.distanceTool=null,this.trafficLayer=null,this.threeLayers=[]}return Object(i.a)(t,[{key:"isLayerExist",value:function(t){if(0===this.threeLayers.length)return!1;if(void 0===t)return!1;for(var e=0;e<this.threeLayers.length;e++)if(this.threeLayers[e].layerId===t)return!0;return!1}},{key:"getLayer",value:function(t){if(0===this.threeLayers.length){var e=new Pt(t,this.map);return this.threeLayers.push(e),e.layerId}if(void 0===t){for(var n=0;n<this.threeLayers.length;n++)if(!1===this.threeLayers[n].dirty)return this.threeLayers[n].layerId}else for(var r=0;r<this.threeLayers.length;r++)if(this.threeLayers[r].layerName===t)return this.threeLayers[r].layerId;if(!(this.threeLayers.length>=2)){var i=new Pt(t,this.map);return this.threeLayers.push(i),i.layerId}}},{key:"removeAllLayer",value:function(){this.windObj&&(this.windObj.closeWind(),delete this.windObj),this.drawTool&&(this.drawTool.dispose(),delete this.drawTool),this.distanceTool&&(this.distanceTool.dispose(),delete this.distanceTool),this.trafficLayer&&(this.trafficLayer.setMap(null),delete this.trafficLayer);for(var t=0;t<this.threeLayers.length;t++)this.threeLayers[t].removeIepLayer()}},{key:"clearPolygon",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearPolygon()}}},{key:"findLayerById",value:function(t){for(var e=0;e<this.threeLayers.length;e++)if(this.threeLayers[e].layerId==t)return this.threeLayers[e]}},{key:"findLayerByName",value:function(t){for(var e=0;e<this.threeLayers.length;e++)if(this.threeLayers[e].layerName==t)return this.threeLayers[e]}},{key:"setLayerVisible",value:function(t,e,n){if(void 0!==t){var r=this.findLayerByName(t);void 0!==r&&r.setVisible(e,n)}}},{key:"clearLayerById",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&(e.changeLayerId(),e.removeIepLayer())}}},{key:"setLayerDirty",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&(e.dirty=!0)}}},{key:"drawPolygon",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&(!0===r.initFlag&&void 0===r.threeLayer.getScene()?setTimeout((function(){r.drawPolygon(t,e)}),200):r.drawPolygon(t,e))}}},{key:"updatePolygon",value:function(t,e){if(void 0!==e){var n=this.findLayerById(e);void 0!==n&&n.updatePolygon(t)}}},{key:"updatePolygonOpacity",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&r.updatePolygonOpacity(t,e)}}},{key:"clearPolyline",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearPolyline()}}},{key:"drawPolyline",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&(!0===r.initFlag&&void 0===r.threeLayer.getScene()?setTimeout((function(){r.drawPolyline(t,e)}),200):r.drawPolyline(t,e))}}},{key:"clearTrip",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearTrip()}}},{key:"drawTrip",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&r.drawTrip(t,e)}}},{key:"updateRing",value:function(t,e,n,r){if(void 0!==r){var i=this.findLayerById(r);void 0!==i&&i.updateRing(t,e,n)}}},{key:"clearRing",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearRing()}}},{key:"clearRingInfo",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearRingInfo()}}},{key:"drawRing",value:function(t,e,n,r,i){if(void 0!==i){var o=this.findLayerById(i);void 0!==o&&o.drawRing(t,e,n,r)}}},{key:"updateDirection",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&r.updateDirection(t,e)}}},{key:"clearDirection",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearDirection()}}},{key:"drawDirection",value:function(t,e,n,r){if(void 0!==r){var i=this.findLayerById(r);void 0!==i&&(!0===i.initFlag&&void 0===i.threeLayer.getScene()?setTimeout((function(){i.drawDirection(t,e,n)}),200):i.drawDirection(t,e,n))}}},{key:"clearCircle",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearCircle()}}},{key:"drawCircle",value:function(t,e,n,r,i){if(void 0!==i){var o=this.findLayerById(i);void 0!==o&&o.drawCircle(t,e,n,r)}}},{key:"Traffic",value:function(t){var e=this.map.getBaseLayer();if(e){var n=e.getAMap();n&&(this.trafficLayer||(this.trafficLayer=new AMap.TileLayer.Traffic({zIndex:10})),!0===t?this.trafficLayer.setMap(n):this.trafficLayer.setMap(null))}}},{key:"distance",value:function(t){var e=this;return new Promise((function(n){var r=null;if(t){var i=e.findLayerByName(t);i&&(r=i.threeLayer)}e.distanceTool?(e.distanceTool.enable(),n(e.distanceTool)):(e.distanceTool=new F({},r,e.map),n(e.distanceTool))}))}},{key:"drawGeometry",value:function(t,e,n,r,i){var o=this;return new Promise((function(a){var s=null;if(n){var c=o.findLayerByName(n);c&&(s=c.threeLayer)}"Polygon"!==t&&"Circle"!==t&&a(null),o.drawTool?(o.drawTool.setMode(t,e),a(o.drawTool)):(o.drawTool=new D(t,e,r,i||{},s,o.map),a(o.drawTool))}))}},{key:"drawWeatherData",value:function(t,e){var n=this;return new Promise((function(r){var i=null;r(t?i=new k(t,e||{},n.map):i),n.windObj=i}))}},{key:"drawImage",value:function(t,e,n,r,i){var o=this;return new Promise((function(a){void 0===i&&a(null);var s=o.findLayerById(i);void 0===s&&a(null),!0===s.initFlag&&void 0===s.threeLayer.getScene()?setTimeout((function(){s.drawImage(t,e,n,r,a)}),200):s.drawImage(t,e,n,r,a)}))}},{key:"getPointObjByName",value:function(t,e){var n=this;return new Promise((function(r){void 0===t&&r(null);var i=n.findLayerByName(t);void 0===i&&r(null),i.getPointObjByName(e,r)}))}},{key:"drawShock",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&(!0===r.initFlag&&void 0===r.threeLayer.getScene()?setTimeout((function(){r.drawShock(t,e)}),200):r.drawShock(t,e))}}},{key:"clearShock",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearShock()}}},{key:"drawPoint",value:function(t,e,n){var r=this;return new Promise((function(i){void 0===n&&i(null);var o=r.findLayerById(n);void 0===o&&i(null),!0===o.initFlag&&void 0===o.threeLayer.getScene()?setTimeout((function(){o.drawPoint(t,e,i)}),200):o.drawPoint(t,e,i)}))}},{key:"changeAMapStyle",value:function(t){var e;null===(e=this.map.getBaseLayer().getAMap())||void 0===e||e.setMapStyle(t)}},{key:"saveIndexedDb",value:function(){return new Promise((function(t,e){var n=window.indexedDB.open("iep_db");n.onsuccess=function(e){var n=e.target.result;t(n)},n.onerror=function(t){e(t)},n.onupgradeneeded=function(t){var e=t.target.result;if(!e.objectStoreNames.contains("svg_dict")){var n=e.createObjectStore("svg_dict",{keyPath:"code"});n.createIndex("code","code",{unique:!0}),n.createIndex("file","file",{unique:!1})}}}))}},{key:"getType",value:function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}},{key:"getDbRecord",value:function(t){var e=this,n="string"===this.getType(t)?[t]:t;return new Promise((function(t){e.saveIndexedDb().then((function(e){var r=e.transaction("svg_dict","readwrite").objectStore("svg_dict");Promise.all(n.map((function(t){return new Promise((function(e){var n=r.get(t);n.onsuccess=function(t){e(t.target.result)},n.onerror=function(t){e()}}))}))).then((function(e){t(e)}))}))}))}}]),t}(),kt=function(t){return new Ot(t)};
|
|
112
|
+
var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=f(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(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 h(t,e){if(l(e),t=s(t,e<0?0:0|d(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(c.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 n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return N(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var h=!0,f=0;f<c;f++)if(u(t,o+f)!==u(e,f)){h=!1;break}if(h)return o}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function x(t,e,n,r){return G(N(e,t.length-n),t,n,r)}function b(t,e,n,r){return G(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return b(t,e,n,r)}function M(t,e,n,r){return G(z(e),t,n,r)}function S(t,e,n,r){return G(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,c,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=j(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.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(n+r>t.length)throw new RangeError("Index out of range")}function O(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function k(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function B(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||B(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,o){return o||B(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.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)g(this,e,e+1);return this},c.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)g(this,e,e+3),g(this,e+1,e+2);return this},c.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)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),h=0;h<s;++h)if(u[h]!==l[h]){o=u[h],a=l[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return b(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):k(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--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+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):k(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=c.isBuffer(t)?t:N(new c(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function j(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("c8ba"))},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){o(1)}))},{keys:function(t){return o(i(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("5926"),s=n("408a"),c=n("1148"),u=n("d039"),l=i.RangeError,h=i.String,f=Math.floor,d=o(c),p=o("".slice),m=o(1..toFixed),g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)},v=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},y=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},_=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=h(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)}))||!u((function(){m({})}))},{toFixed:function(t){var e,n,r,i,o=s(this),c=a(t),u=[0,0,0,0,0,0],f="",m="0";if(c<0||c>20)throw l("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return h(o);if(o<0&&(f="-",o=-o),o>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(o*g(2,69,1))-69,n=e<0?o*g(2,-e,1):o/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(u,0,n),r=c;r>=7;)v(u,1e7,0),r-=7;for(v(u,g(10,r,1),0),r=e-1;r>=23;)y(u,1<<23),r-=23;y(u,1<<r),v(u,1,1),y(u,2),m=_(u)}else v(u,0,n),v(u,1<<-e,0),m=_(u)+d("0",c);return m=c>0?f+((i=m.length)<=c?"0."+d("0",c-i)+m:p(m,0,i-c)+"."+p(m,i-c)):f+m}})},b693:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA0ppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTM3QjEyRDNBOTZDMTFFNUE2QTA4M0M3MDI4QUVDMTQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTM3QjEyRDJBOTZDMTFFNUE2QTA4M0M3MDI4QUVDMTQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo3ZmI2MGZkMi1hOTZjLTExZTUtYWU4Yi1kYzQ2ODQxNzA1ZmIiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo3ZmI2MGZkMi1hOTZjLTExZTUtYWU4Yi1kYzQ2ODQxNzA1ZmIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4r2gBAAAAASklEQVR42mL4////HCBmB2IGGAYRIHACiKXRBUHgORBbgwQZ/4Ol4OA3EOcxMaCCf2AJJO1PgNgC2cyjQCyJbNEMIGZDdhJAgAEACP9sQulYHrwAAAAASUVORK5CYII="},b6b7:function(t,e,n){var r=n("ebb5"),i=n("4840"),o=r.TYPED_ARRAY_CONSTRUCTOR,a=r.aTypedArrayConstructor;t.exports=function(t){return a(i(t,t[o]))}},b727:function(t,e,n){var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),c=n("65f0"),u=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,m,g,v){for(var y,_,x=a(p),b=o(x),w=r(m,g),M=s(b),S=0,A=v||c,C=e?A(p,M):n||f?A(p,0):void 0;M>S;S++)if((d||S in b)&&(_=w(y=b[S],S,x),t))if(e)C[S]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:u(C,y)}else switch(t){case 4:return!1;case 7:u(C,y)}return h?-1:i||l?l:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}},b904:function(t,e,n){t.exports=function(){return n("81a5"),{}}},bb7e:function(t,e,n){"use strict";var r=n("d4ec"),i=n("bee2"),o=(n("d3b7"),n("d81d"),n("fb6a"),n("159b"),n("9767"),n("1913"),n("ac1f"),n("5319"),n("4703")),a=n("d30b"),s=function(t,e,n){void 0===n&&(n={});var r=Object(o.a)(t),i=Object(o.a)(e),s=Object(a.a)(i[1]-r[1]),c=Object(a.a)(i[0]-r[0]),u=Object(a.a)(r[1]),l=Object(a.a)(i[1]),h=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(c/2),2)*Math.cos(u)*Math.cos(l);return Object(a.d)(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)),n.units)};function c(t,e,n){var r=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var i=0,o=e.length-1;i<e.length;o=i++){var a=e[i][0],s=e[i][1],c=e[o][0],u=e[o][1];if(t[1]*(a-c)+s*(c-t[0])+u*(t[0]-a)==0&&(a-t[0])*(c-t[0])<=0&&(s-t[1])*(u-t[1])<=0)return!n;s>t[1]!=u>t[1]&&t[0]<(c-a)*(t[1]-s)/(u-s)+a&&(r=!r)}return r}var u=n("5a89"),l=n("ec60"),h=document.createElement("canvas"),f=function(){function t(){Object(r.a)(this,t),this.type="gisCommon"}return Object(i.a)(t,null,[{key:"getTexture",value:function(t,e,n,r){var i=t.getContext("2d");i.drawImage(e,n,r);var o=new u.Texture(i.getImageData(0,0,t.width,t.height));return o.minFilter=u.LinearFilter,o.generateMipmaps=!1,o.needsUpdate=!0,o}},{key:"getTexture1",value:function(t,e,n,r,i,o){var a=t.getContext("2d");a.drawImage(e,n,r,i,o);var s=new u.Texture(a.getImageData(0,0,t.width,t.height));return s.minFilter=u.LinearFilter,s.generateMipmaps=!1,s.needsUpdate=!0,s}},{key:"addImageProcessImage",value:function(t){return new Promise((function(e,n){var r=document.createElement("img");r.onload=function(){return e(r)},r.onerror=n,r.setAttribute("src",t)}))}},{key:"addImageProcess",value:function(t){return new Promise((function(e,n){var r=document.createElement("img");r.onload=function(){return e(r)},r.onerror=n,r.setAttribute("src","data:image/svg+xml;base64,"+window.btoa(unescape(encodeURIComponent(t))))}))}},{key:"containsCoordinate1",value:function(t,e){var n={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[e.getCenter().x,e.getCenter().y]}};return 1e3*s(n,{type:"Feature",properties:{},geometry:{type:"Point",coordinates:t}},"kilometers")<e.getRadius()}},{key:"containsCoordinate2",value:function(t,e){return function(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=Object(o.a)(t),i=Object(o.b)(e),a=i.type,s=e.bbox,u=i.coordinates;if(s&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,s))return!1;"Polygon"===a&&(u=[u]);for(var l=!1,h=0;h<u.length&&!l;h++)if(c(r,u[h][0],n.ignoreBoundary)){for(var f=!1,d=1;d<u[h].length&&!f;)c(r,u[h][d],!n.ignoreBoundary)&&(f=!0),d++;f||(l=!0)}return l}({type:"Feature",geometry:{type:"Point",coordinates:t}},{type:"Feature",geometry:{type:"Polygon",coordinates:e.geometry.coordinates[0]}})}},{key:"containsCoordinate",value:function(t,e){var n,r;Array.isArray(t)?(n=t[0],r=t[1]):t instanceof l.Coordinate&&(n=t.x,r=t.y);var i=e.xmin,o=e.ymin,a=e.xmax,s=e.ymax;return i<=n&&n<=a&&o<=r&&r<=s}},{key:"isInLevels",value:function(t,e){for(var n=!1,r=0;r<t.rangeArr.length;r+=2){var i=1*t.rangeArr[r],o=1*t.rangeArr[r+1];if(e>i&&e<=o){n=!0;break}}return n}},{key:"getExtent",value:function(t){if(0!==t.length){var e=1/0,n=1/0,r=-1/0,i=-1/0;return 1===t.length?(e=1*t[0].longitude-.5,n=1*t[0].latitude-.5,r=1*t[0].longitude+.5,i=1*t[0].latitude+.5):t.length>1&&t.slice(0,1/0).map((function(t){var o=1*t.longitude,a=1*t.latitude;e=Math.min(e,o),n=Math.min(n,a),r=Math.max(r,o),i=Math.max(i,a)})),{minX:e,minY:n,maxX:r,maxY:i}}}},{key:"vector2Pixel",value:function(t,e,n){var r=t.project(n),i=e.width/2,o=e.height/2;return{x:Math.round(r.x*i+i),y:Math.round(-r.y*o+o)}}},{key:"generateTextureOne",value:function(t,e,n){h.width=e,h.height=n;var r=h.getContext("2d");r.drawImage(t,0,0,e,n);var i=new u.Texture(r.getImageData(0,0,h.width,h.height));return i.magFilter=u.NearestFilter,i.minFilter=u.NearestFilter,i.generateMipmaps=!1,i.needsUpdate=!0,i}},{key:"generateTexture",value:function(t){var e=[64,128,256,512,1024],n=-1/0;t.forEach((function(t){n=Math.max(n,t.w),Math.max(n,t.h)}));var r=Math.sqrt(t.length),i=parseInt(r);r>i&&(i+=1);for(var o=(r=i)*n+5*r,a=0,s=0;s<e.length;s++){if(o<e[s]){a=e[s];break}a=1024}h.width=h.height=a;for(var c=h.getContext("2d"),l=0,f=0,d=[],p=0;p<r;p++){for(var m=5*(p+1)+p*l,g=0;g<r;g++){var v=5*(g+1)+g*t[f].w;if("img"===t[f].type){var y=(t[f].w-t[f].iw)/2,_=(t[f].h-t[f].ih)/2;c.drawImage(t[f].src,v+y,m+_,t[f].iw,t[f].ih)}else if("txt"===t[f].type)c.fillStyle=t[f].color,"#fff"===t[f].color?(c.font="lighter "+t[f].size+"px Microsoft YaHei",c.fillText(t[f].src,v+t[f].offx,m+t[f].offy),c.strokeStyle=t[f].color,c.strokeText(t[f].src,v+t[f].offx,m+t[f].offy)):(c.font="normal "+t[f].size+"px Microsoft YaHei",c.fillText(t[f].src,v+t[f].offx,m+t[f].offy));else{var x=(t[f].w-t[f].iw)/2,b=(t[f].h-t[f].ih)/2;c.drawImage(t[f].src,v+x,m+b,t[f].iw,t[f].ih)}if(d.push({w:t[f].w,h:t[f].h,u:v/a,v:m/a}),l=Math.max(l,t[f].h),(f+=1)>=t.length)break}if(f>=t.length)break}var w=new u.Texture(c.getImageData(0,0,h.width,h.height));if(w.minFilter=u.LinearFilter,w.generateMipmaps=!1,w.needsUpdate=!0,d.length<100)for(var M=100-d.length,S=0;S<M;S++)d.push({w:0,h:0,u:0,v:0});return{xys:d,texture:w,textureSize:a}}},{key:"setPointEventStatus",value:function(t,e){t&&t.getMeshes().forEach((function(t){"Points"===t.type&&(t.options.interactive=e)}))}},{key:"createTextTexture",value:function(t,e){h.width=h.height=t;var n=h.width/2,r=h.height/2;if(e){var i=0;e.forEach((function(t){var e=h.getContext("2d");e.fillStyle=t.fontcolor,e.font="".concat(t.fontsize,"px Arial"),e.textAlign="center",e.textBaseline="middle",e.fillText(t.txt,n,r+i),i+=t.fontsize}))}var o=new u.Texture(h);return o.minFilter=u.LinearFilter,o.generateMipmaps=!1,o.needsUpdate=!0,o}},{key:"createSimpleShader",value:function(t,e,n){return t.uniforms.texture1={value:e},t.uniforms.size1={value:n},t.uniforms.flag={value:1},t.vertexShader="uniform float size1;\n attribute float imgflag;\n varying float vimgflag;\n attribute float visibility;\n varying float vVisible;\n "+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <project_vertex>","\n #include <project_vertex>\n vimgflag = imgflag;\n vVisible = visibility;\n ").replace("gl_PointSize = size;","\n gl_PointSize = size1;\n "),t.fragmentShader="\n uniform sampler2D texture1;\n varying float vimgflag;\n varying float vVisible;\n "+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("gl_FragColor = vec4( outgoingLight, diffuseColor.a );","\n\n vec2 pUv = gl_PointCoord;\n pUv.y = 1. - pUv.y;\n\n if(vimgflag < 1.0){\n vec4 texColor = texture2D( texture1, pUv );\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n }\n\n if (vVisible < 0.5) discard;\n "),t}}]),t}();e.a=f},bee2:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},c04e:function(t,e,n){var r=n("da84"),i=n("c65b"),o=n("861d"),a=n("d9b5"),s=n("dc4a"),c=n("485a"),u=n("b622"),l=r.TypeError,h=u("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,h);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},c1ac:function(t,e,n){"use strict";var r=n("ebb5"),i=n("b727").filter,o=n("1448"),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},c274:function(t,e,n){"use strict";var r=n("50bf");function i(){var t={},e=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),t[i]||(t[i]=[]),t[i].push(o),e++},process:function(){for(var e=r;e<=n;e++)for(var i=t[e],o=0;o<i.length;o++)(0,i[o])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=r.getOption(t,"async",!0),o=r.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=i(),c=!1;function u(){for(c=!0;s.size();){var t=s;s=i(),t.process()}c=!1}function l(){a=function(t){return function(t){return setTimeout(t,0)}(t)}(u)}return{add:function(t,e){!c&&o&&n&&0===s.size()&&l(),s.add(t,e)},force:function(t){c||(void 0===t&&(t=n),a&&(function(t){clearTimeout(t)}(a),a=null),t?l():u())}}}},c430:function(t,e){t.exports=!1},c60d:function(t,e,n){var r=n("1a2d");t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},c65b:function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c7b2:function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return ie})),n.d(e,"GMap",(function(){return ne}));var r=n("d4ec"),i=n("bee2"),o=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d81d"),n("d3b7"),n("b0c0"),n("1da1")),a=(n("96cf"),n("ac1f"),n("466d"),n("5319"),n("5b81"),n("2ef0")),s=function(){function t(){Object(r.a)(this,t)}return Object(i.a)(t,[{key:"getSvgDict",value:function(t){var e=this;return Object(a.isEmpty)(t)?(console.error("svg javascript file is not null"),!1):new Promise((function(n){var r=[];e.getJSON(t).then((function(t){t.match(/<symbol id=.*?symbol>/g).map((function(t,n){var i=t.match(/id=".*?"/gi),o=t.match(/(?<=viewBox=".*?">).*?(?=<\/symbol>)/gi);r.push({id:i[0].replaceAll('"',"").replace("id=icon-",""),svg:e.createSvg(o[0])})})),n(r)}))}))}},{key:"getJSON",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(e);case 3:return n=t.sent,t.next=6,n.text();case 6:return t.abrupt("return",t.sent);case 9:t.prev=9,t.t0=t.catch(0),console.log("Request Failed",t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}()},{key:"createSvg",value:function(t){return'<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15737">'.concat(t,"</svg>")}}]),t}(),c=(n("159b"),n("b64b"),n("acb4"),n("5a89")),u=n("ec60"),l={name:"Spin",props:{visible:Boolean},render:function(t,e){var n=arguments[0];return n("div",{class:"sk-chase-box"},[this.visible?null:n("div",{class:"sk-chase-core"},[n("div",{class:"sk-chase"},[n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"}),n("div",{class:"sk-chase-dot"})])]),this.$slots.default])}};n("93b5");var h=function(t,e,n,r,i,o,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}(l,void 0,void 0,!1,null,"c8c2036e",null).exports,f=n("e675"),d=n.n(f),p=(n("8ded"),n("add5")),m=n.n(p),g=n("0ab6"),v=n.n(g),y=n("0e54"),_=n.n(y),x=n("ee7c"),b=n.n(x),w=d.a.createStore(v.a,b.a),M=(d.a.createStore(m.a,b.a),d.a.createStore(_.a,b.a),n("fb6a"),n("3ca3"),n("ddb0"),n("47c9")),S=(n("1276"),n("262e")),A=n("2caf"),C=n("5765"),E={altitude:0,imageWidth:512,imageHeight:512,texture:null},T=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n);var l=i=u.Util.extend({},E,i),h=l.altitude;l.imageHeight,l.imageWidth,t instanceof u.Extent||(t=new u.Extent(t));var f=t,d=f.xmin,p=f.ymin,m=f.xmax,g=f.ymax,v=1/0,y=1/0,_=-1/0,x=-1/0;[[d,p],[d,g],[m,g],[m,p]].forEach((function(t){var e=a.coordinateToVector3(t),n=e.x,r=e.y;v=Math.min(n,v),y=Math.min(r,y),_=Math.max(n,_),x=Math.max(r,x)}));var b=Math.abs(_-v),w=Math.abs(x-y),M=new c.PlaneBufferGeometry(b,w);(s=e.call(this))._initOptions(i),s._createMesh(M,o);var S=a.distanceToVector3(h,h).x,A=a.coordinateToVector3(t.getCenter(),S);return s.getObject3d().position.copy(A),s.parent=null,s.type="Image",s}return n}(C.a),I=function(){function t(e,n,i,o,a){var s=this;Object(r.a)(this,t),this.threelayer=a,this.textureLoader=new c.TextureLoader;var l=e.split(","),h=n.split(","),f=parseFloat(l[0]),d=parseFloat(l[1]),p=parseFloat(h[0]),m=parseFloat(h[1]),g=o.maxZoom||11,v=o.renderOrder||0,y=o.opacity||1,_=o.minZoom||3,x=new u.Extent(f,d,p,m);this.textureLoader.load(i,(function(t){var e=new c.MeshBasicMaterial({map:t,transparent:!0,opacity:y}),n=new T(x,{imageWidth:512,imageHeight:512,maxZoom:g,minZoom:_,interactive:void 0!==o.interactive&&o.interactive},e,s.threelayer);n.object3d.renderOrder=v,s.imgMesh=n,s.imgMesh.parent=s,s.m=e,s.texture=t,s.threelayer.addMesh(s.imgMesh)}))}return Object(i.a)(t,[{key:"updateImage",value:function(t){var e=this;this.textureLoader.load(t,(function(t){e.texture&&e.texture.dispose(),delete e.texture,t.magFilter=c.NearestFilter,t.minFilter=c.NearestFilter,e.imgMesh.object3d.material.map=t,e.imgMesh.object3d.material.map.needsUpdate=!0,e.texture=t,!1===e.imgMesh.isAdd&&e.threelayer.addMesh(e.imgMesh)}))}},{key:"clearImage",value:function(){this.imgMesh&&this.threelayer.removeMesh(this.imgMesh)}},{key:"dispose",value:function(){this.imgMesh&&(this.threelayer.removeMesh(this.imgMesh),this.imgMesh.object3d.geometry&&this.imgMesh.object3d.geometry.dispose(),this.imgMesh.object3d.material&&(this.imgMesh.object3d.material.dispose(),delete this.m)),this.texture&&(this.texture&&this.texture.dispose(),delete this.texture),this.threelayer=null,this.textureLoader&&delete this.textureLoader}}]),t}(),L=(n("99af"),n("b680"),n("8a79"),n("65d4")),P={0:.05,1:.05,2:.05,3:.003,4:.003,5:.003,6:.003,7:.003,8:.002,9:.001,10:5e-4,11:3e-4,12:15e-5,13:1e-4,14:5e-5,15:25e-6,16:1e-5,16.99:1e-5,17:5e-6,18:2e-6,19:1e-6,20:5e-7,21:2e-7,22:1e-7},R=Object(a.map)(["南","东南偏南","东南","东南偏东","东","东北偏东","东北","东北偏北","北","西北偏北","西北","西北偏西","西","西南偏西","西南","西南偏南"],(function(t,e){var n=22.5,r=n*e;return{bearing:r,range:[r-n/2,r+n/2],label:t}})),O=function(t,e,n){return t>=e&&t<n},k=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.map=i,this.windLayer=this.map.getLayer("windLayer"),this.windLayer?this.windLayer.setData(e):(this.windLayer=new L.a("windLayer",e,{windOptions:{colorScale:["rgba(68,162,255,1)","rgba(110,223,255,1)","rgba(142,228,187,1)","rgba(179,253,163,1)","rgba(213,247,176,1)","rgba(255,252,213,1)","rgba(255,238,159,1)","rgba(252,217,125,1)","rgba(255,182,100,1)","rgba(252,150,75,1)","rgba(250,112,52,1)","rgba(245,64,32,1)","rgba(237,45,28,1)","rgba(220,24,32,1)","rgba(180,0,35,1)"],velocityScale:function(){var t=o.map.getZoom();return P[parseInt(t)]||1/40},frameRate:16,maxAge:60,globalAlpha:.9,paths:3782*i.options.devicePixelRatio}}),this.map.addLayer(this.windLayer)),this.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),this._bindMapEvents()}return Object(i.a)(t,[{key:"_bindMapEvents",value:function(){this.map.on("mousemove",this._onWind,this)}},{key:"_closeEvent",value:function(){this.map.off("mousemove",this._onWind,this)}},{key:"_onWind",value:function(t){var e,n=this.windLayer.field.interpolatedValueAt(t.coordinate.x,t.coordinate.y);if(n){var r=this.vectorToDegrees(n.u,n.v,"bearingCCW"),i=this.vectorToSpeed(n.u,n.v,"m/s");this.toolTip._content="".concat(null===(e=function(t){return Object(a.find)(R,(function(e){return O(t,e.range[0],e.range[1])||O(t-360,e.range[0],e.range[1])}))}(r))||void 0===e?void 0:e.label).concat(this.windLevel(i),"级;速度").concat(i.toFixed(2),"m/s;高度10米")}}},{key:"windLevel",value:function(t){return t<=0?0:t<=.3?1:t<=1.6?2:t<=3.4?3:t<=5.5?4:t<=8?5:t<=10.8?6:t<=13.9?7:t<=17.2?8:t<=20.8?9:t<=24.5?10:t<=28.5?11:12}},{key:"setToolTip",value:function(t,e){this.removeToolTip(),this.toolTip=new u.ui.ToolTip(t,e),this.toolTip.addTo(this.map)}},{key:"removeToolTip",value:function(){var t;this.toolTip&&(null===(t=this.toolTip)||void 0===t||t.remove(),this.toolTip=null)}},{key:"vectorToDegrees",value:function(t,e,n){n.endsWith("CCW")&&(e=e>0?e=-e:Math.abs(e));var r=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),i=180*Math.atan2(t/r,e/r)/Math.PI+180;return"bearingCW"!==n&&"meteoCCW"!==n||(i+=180)>=360&&(i-=360),i}},{key:"vectorToSpeed",value:function(t,e,n){var r=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return"k/h"===n?3.6*r:"kt"===n?r/.514:r}},{key:"closeWind",value:function(){this._closeEvent(),this.removeToolTip(),this.map.removeLayer(this.windLayer),delete this.windLayer,this.windLayer=null}}]),t}(),B=n("bb7e"),D=function(){function t(e,n,i,o,a,s){if(Object(r.a)(this,t),this.map=s,this.tlayer=a,this.geometry=null,void 0===i)this.drawTool=new u.DrawTool({mode:e,symbol:{lineColor:o.lineColor||"#E40D56",lineWidth:2,lineDasharray:[5,5],polygonFill:o.polygonFill||"#E40D56",polygonOpacity:.2}}).addTo(this.map).enable(),this._bindEvent(),B.a.setPointEventStatus(a,!1);else{var c={lineColor:o.lineColor||"#1bbc9b",lineWidth:o.lineWidth||1,lineOpacity:o.lineOpacity||1,polygonOpacity:o.polygonOpacity||1};o.colors?c.polygonFill={type:"linear",places:[0,0,1,1],colorStops:o.colors}:c.polygonFill=o.polygonFill||"#1bbc9b",o.lineDasharray&&(c.lineDasharray=[5,5,5]),"Polygon"===e?this.geometry=new u.MultiPolygon(i,{symbol:c}):"Circle"===e&&(this.geometry=new u.Circle(i,o.radius||1e3,{symbol:c}))}this._drawEnd=n,this.mode=e,this.toolLayer=this.map.getLayer("toolLayer"),this.toolLayer||(this.toolLayer=new u.VectorLayer("toolLayer",{geometryEvents:!1,hitDetect:!1}).addTo(this.map),this.geometry&&(this.toolLayer.addGeometry(this.geometry),this._drawEnd&&("Circle"===this.mode?this._drawEnd(this.geometry.getCoordinates(),this.geometry.getRadius()):this._drawEnd(this.geometry.getCoordinates())))),this.type="drawTool"}return Object(i.a)(t,[{key:"_bindEvent",value:function(){this.drawTool.on("drawend",this.drawEnd,this)}},{key:"_closeEvent",value:function(){this.drawTool.off("drawend",this.drawEnd,this)}},{key:"drawEnd",value:function(t){this.toolLayer&&this.toolLayer.addGeometry(t.geometry),this._drawEnd&&("Circle"===this.mode?this._drawEnd(t.geometry.getCoordinates(),t.geometry.getRadius()):this._drawEnd(t.geometry.getCoordinates())),this.geometry=t.geometry}},{key:"disableTool",value:function(){this.drawTool.disable(),B.a.setPointEventStatus(this.tlayer,!0)}},{key:"clearGeometry",value:function(){this.toolLayer&&this.toolLayer.clear()}},{key:"setMode",value:function(t,e){B.a.setPointEventStatus(this.tlayer,!1),this._drawEnd&&delete this._drawEnd,this._drawEnd=e,this.drawTool.setMode(t).enable(),this.mode=t}},{key:"startEdit",value:function(){this.disableTool(),this.geometry&&this.geometry.startEdit()}},{key:"endEdit",value:function(t){this.geometry&&(this.geometry.endEdit(),t&&("Circle"===this.mode?t(this.geometry.getCoordinates(),this.geometry.getRadius()):t(this.geometry.getCoordinates())))}},{key:"dispose",value:function(){this.drawTool&&(this._closeEvent(),delete this.drawTool),this._drawEnd&&delete this._drawEnd,this.geometry&&delete this.geometry,this.map.removeLayer(this.toolLayer),delete this.toolLayer}}]),t}(),F=function(){function t(e,n,i){Object(r.a)(this,t),this.tlayer=n,this.map=i,this.distanceTool=new u.DistanceTool({symbol:{lineColor:"#fff",lineWidth:2},vertexSymbol:{markerType:"ellipse",markerFill:"#1bbc9b",markerLineColor:"#000",markerLineWidth:3,markerWidth:10,markerHeight:10},labelOptions:{textSymbol:{textFaceName:"monospace",textFill:"#fff",textLineSpacing:1,textHorizontalAlignment:"right",textDx:15,markerLineColor:"#b4b3b3",markerFill:"#000"},boxStyle:{padding:[6,2],symbol:{markerType:"square",markerFill:"#000",markerFillOpacity:.9,markerLineColor:"#b4b3b3"}}},clearButtonSymbol:[{markerType:"square",markerFill:"#000",markerLineColor:"#b4b3b3",markerLineWidth:2,markerWidth:15,markerHeight:15,markerDx:20},{markerType:"x",markerWidth:10,markerHeight:10,markerLineColor:"#fff",markerDx:20}],language:"zh-CN"}).addTo(this.map),B.a.setPointEventStatus(n,!1)}return Object(i.a)(t,[{key:"dispose",value:function(){this.distanceTool&&(this.distanceTool.clear(),delete this.distanceTool),this.tlayer=null,this.map=null}},{key:"disable",value:function(){this.distanceTool.disable(),B.a.setPointEventStatus(this.tlayer,!0)}},{key:"enable",value:function(){B.a.setPointEventStatus(this.tlayer,!1),this.distanceTool.enable()}},{key:"clear",value:function(){this.distanceTool.clear()}}]),t}(),U=(n("4e82"),n("25a5")),j=n.n(U),N=n("ad2f"),z={fontSize:20,altitude:0,color:"#fff",text:"hello",weight:0,zoomFilter:!1},G={positionsConvert:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=[],i=0,o=t.length;i<o;i+=3){var a=t[i],s=t[i+1],u=t[i+2];e>0&&(u+=n.distanceToVector3(e,e).x),r.push(new c.Vector3(a,s,u))}return r},vectors2Pixel:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0;t[0]instanceof c.Vector3||(t=G.positionsConvert(t,r,i));var o=t.map((function(t){return G.vector2Pixel(t,e,n)}));return o},vector2Pixel:function(t,e,n){var r=t.project(n),i=e.width/2,o=e.height/2;return{x:Math.round(r.x*i+i),y:Math.round(-r.y*o+o)}}},H=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o){var a;Object(r.a)(this,n),i=u.Util.extend({},z,i,{layer:o,position:t}),(a=e.call(this))._initOptions(i);var s=i,l=(s.altitude,s.fontSize),h=s.color,f=s.text,d=s.rotation,p=d*(Math.PI/180);a._createGroup();var m=new N.SpriteText2D(f,{align:N.textAlign.center,font:"".concat(2*l,"px Arial"),fillStyle:h,antialias:!1});m.children[0].material.sizeAttenuation=!1,m.children[0].material.rotation=p;var g=.001/3;return m.scale.set(g,g,g),a.getObject3d().add(m),a.getObject3d().name=d,a.getObject3d().position.copy(t),a.textRect={width:a.calTextWidth(f,l)+3*l,height:l+3*l},a._vector=new c.Vector3,a._pixel={x:0,y:0},a}return Object(i.a)(n,[{key:"getTextRect",value:function(){this.getPixel();var t=this._pixel,e=t.x,n=t.y,r=this.textRect,i=r.width,o=r.height;return{minX:e-i/2,minY:n-o/2,maxX:e+i/2,maxY:n+o/2}}},{key:"calTextWidth",value:function(t,e){var n=(t.match(/[\u4e00-\u9fa5]/g)||"").length;return n*e+.5*(t.length-n)*e}},{key:"getPixel",value:function(){var t=this.getMap().getSize(),e=this.getLayer().getCamera(),n=this.getObject3d().position;this._vector.x=n.x,this._vector.y=n.y,this._vector.z=n.z,this._pixel=G.vector2Pixel(this._vector,t,e)}},{key:"identify",value:function(t){var e=this.getTextRect(),n=e.minX,r=e.minY,i=e.maxX,o=e.maxY,a=this.getMap().coordToContainerPoint(t);return a.x>=n&&a.x<=i&&a.y>=r&&a.y<=o}}]),n}(C.a),W={radius:100,altitude:0},V=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},W,i,{layer:a,coordinate:t}),(s=e.call(this))._initOptions(i);var l=i,h=l.altitude,f=l.radius,d=a.distanceToVector3(f,f).x,p=new c.CircleBufferGeometry(d,128,0,90*Math.PI/180);s._createMesh(p,o);var m=a.distanceToVector3(h,h).x,g=a.coordinateToVector3(t,m);return s.getObject3d().position.copy(g),s}return n}(C.a),Z=function(){function t(e,n,i,o,a){var s=this;Object(r.a)(this,t),this.threelayer=a,this.map=a.map,this.all_cirles=[],this.rItems={},this.all_texts={},this.all_sectors={},this.textSprites=[],this.rbush=new j.a,this.material=new c.MeshBasicMaterial({color:"#233F75",transparent:!0,opacity:.5,depthTest:!1}),this.vector_circle_layer=this.map.getLayer("vector_circle"),this.vector_circle_layer||(this.vector_circle_layer=new u.VectorLayer("vector_circle",{geometryEvents:!1,hitDetect:!1}).addTo(a.map)),this.sector=null;for(var l=this.threelayer.coordinateToVector3([e,n],0),h=(new c.Matrix4).makeTranslation(l.x,l.y,l.z),f=1e3;f<=1e4;f+=1e3){this.createLine([e,n],f);var d=this.threelayer.distanceToVector3(f,f).x;this.rItems[f]=d,this.all_texts[f]=[]}for(var p=this.vector_circle_layer.getGeometries(),m=0;m<p.length;m++)this.all_cirles.push(p[m]);for(var g=3;g<=360;){for(var v in this.rItems){var y=this.createLabel("".concat(v/1e3,"km"),g,this.rItems[v],h,5,a);this.all_texts[v].push(y)}g+=24}var _=this.createParty(e,n,3e3);this.all_sectors[3e3]=_;var x=this.createParty(e,n,5e3);this.all_sectors[5e3]=x;var b=this.createParty(e,n,1e4);this.all_sectors[1e4]=b,this.vector_circle_layer.clear();for(var w=i/1e3,M=void 0,S=0;S<w;S++){var A=this.all_texts[1e3*(S+1)];A&&A.forEach((function(t){s.textSprites.push(t)})),this.vector_circle_layer.addGeometry(this.all_cirles[S]),S===w-1&&(M=this.all_cirles[S])}if(this.vector_circle_layer.options.visible=!0,this.threelayer.addMesh(this.textSprites),o.rotation){var C=this.all_sectors[i],E=this.calDirection(o.rotation);C.object3d.rotation.z=E*Math.PI/180,this.threelayer.addMesh(C),this.sector=C}this.collides(),this._bindEvent(),o.callback&&o.callback(M)}return Object(i.a)(t,[{key:"update",value:function(t,e,n,r){var i=this;this._closeEvent();var o=this.threelayer.coordinateToVector3([t,e],0),a=(new c.Matrix4).makeTranslation(o.x,o.y,o.z);this.all_cirles.forEach((function(n){n.setCoordinates([t,e])}));for(var s=3,u=0;s<=360;){for(var l in this.rItems){var h=this.getPsVec(s,this.rItems[l],a);this.all_texts[l][u].object3d.position.copy(h)}s+=24,u+=1}for(var f in this.all_sectors)this.all_sectors[f].object3d.position.copy(o);this.threelayer.removeMesh(this.textSprites),this.textSprites=[],this.vector_circle_layer.clear(),this.threelayer.removeMesh(this.sector);for(var d=n/1e3,p=void 0,m=0;m<d;m++){var g=this.all_texts[1e3*(m+1)];g&&g.forEach((function(t){i.textSprites.push(t)})),this.vector_circle_layer.addGeometry(this.all_cirles[m]),m===d-1&&(p=this.all_cirles[m])}if(this.vector_circle_layer.show(),this.threelayer.addMesh(this.textSprites),r.rotation){var v=this.all_sectors[n],y=this.calDirection(r.rotation);v.object3d.rotation.z=y*Math.PI/180,this.threelayer.addMesh(v),this.sector=v}this.collides(),this._bindEvent(),r.callback&&r.callback(p)}},{key:"_bindEvent",value:function(){this.map.on("zooming zoomend moveend animateend",this.circleTextOn,this),this.map.on("rotate",this.circleTextRotationOn,this)}},{key:"_closeEvent",value:function(){this.map.off("zooming zoomend moveend animateend",this.circleTextOn,this),this.map.off("rotate",this.circleTextRotationOn,this)}},{key:"circleTextOn",value:function(){this.textSprites.sort((function(t,e){return e.getOptions().weight-t.getOptions().weight})),this.collides()}},{key:"circleTextRotationOn",value:function(){for(var t=0;t<this.textSprites.length;t++)this.textSprites[t].object3d.children[0].material.rotation=(parseFloat(this.textSprites[t].object3d.name)+this.map.getBearing())*(Math.PI/180);this.textSprites.sort((function(t,e){return e.getOptions().weight-t.getOptions().weight})),this.collides()}},{key:"dispose",value:function(){for(var t in this._closeEvent(),this.all_cirles=[],this.rItems)delete this.rItems[t];for(var e in this.threelayer.removeMesh(this.textSprites),this.sector&&this.threelayer.removeMesh(this.sector),this.rbush.clear(),delete this.rbush,this.textSprites=[],this.all_texts)this.all_texts[e].forEach((function(t){t.object3d.children[0].sprite&&t.object3d.children[0].sprite.geometry&&t.object3d.children[0].sprite.geometry.dispose(),t.object3d.children[0].material&&t.object3d.children[0].material.dispose(),t.object3d.children[0].texture&&t.object3d.children[0].texture.dispose()})),delete this.all_texts[e];for(var n in this.sector=null,this.all_sectors){var r=this.all_sectors[n];r.object3d.geometry&&r.object3d.geometry.dispose(),delete this.all_sectors[n]}this.material&&this.material.dispose(),this.map.removeLayer(this.vector_circle_layer)}},{key:"createLine",value:function(t,e){1e3===e?new u.Circle(t,e,{symbol:{lineColor:"#1bbc9b",lineWidth:1,lineOpacity:1,polygonFill:"#1bbc9b",polygonOpacity:0}}).addTo(this.vector_circle_layer):new u.Circle(t,e,{symbol:{lineColor:"#1bbc9b",lineWidth:1,lineDasharray:[5,5,5],lineOpacity:1,polygonFill:"#1bbc9b",polygonOpacity:0}}).addTo(this.vector_circle_layer)}},{key:"createParty",value:function(t,e,n){return new V([t,e],{radius:n,interactive:!1},this.material,this.threelayer)}},{key:"createLabel",value:function(t,e,n,r,i,o){var a=this.getArrowPs(e,1),s=this.getPsVec(e,n,r),c=new H(s,{text:t,color:"white",fontSize:18,weight:i,interactive:!1,rotation:a.rotation,minZoom:11},o);return c.object3d.renderOrder=3,c}},{key:"collides",value:function(){this.rbush.clear();for(var t=0,e=this.textSprites.length;t<e;t++){var n=this.textSprites[t],r=n.getTextRect();this.rbush.collides(r)?n.hide():(n.show(),this.rbush.insert(r))}}},{key:"getPsVec",value:function(t,e,n){var r=t*(Math.PI/180),i=new c.Vector3(Math.sin(r)*e,Math.cos(r)*e,0);return i=i.applyMatrix4(n)}},{key:"calDirection",value:function(t){return t<=22.5&&t>337.5?45:t<=67.5&&t>22.5?0:t<=112.5&&t>67.5?315:t<=157.5&&t>112.5?270:t<=202.5&&t>157.5?225:t<=247.5&&t>202.5?180:t<=292.5&&t>247.5?135:t<=337.5&&t>292.5?90:0}},{key:"getArrowPs",value:function(t,e){var n=0;return t<=90?n=-t:t>90&&t<=180||t>180&&t<=270?n=180-t:t>270&&t<360&&(n=360-t),{rotation:n}}}]),t}(),Q={altitude:0,height:0},X=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),t=u.Util.extend({},Q,t,{layer:a}),s=e.call(this);var c=t;return c.width,c.height,c.altitude,s._initOptions(t),s._createMesh(i,o),s}return n}(C.a),Y={computeTangents:function(t){t.computeTangents(),console.warn("THREE.BufferGeometryUtils: .computeTangents() has been removed. Use BufferGeometry.computeTangents() instead.")},mergeBufferGeometries:function(t,e){for(var n=null!==t[0].index,r=new Set(Object.keys(t[0].attributes)),i=new Set(Object.keys(t[0].morphAttributes)),o={},a={},s=t[0].morphTargetsRelative,u=new c.BufferGeometry,l=0,h=0;h<t.length;++h){var f=t[h],d=0;if(n!==(null!==f.index))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(var p in f.attributes){if(!r.has(p))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+'. All geometries must have compatible attributes; make sure "'+p+'" attribute exists among all geometries, or in none of them.'),null;void 0===o[p]&&(o[p]=[]),o[p].push(f.attributes[p]),d++}if(d!==r.size)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". Make sure all geometries have the same number of attributes."),null;if(s!==f.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(var p in f.morphAttributes){if(!i.has(p))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". .morphAttributes must be consistent throughout all geometries."),null;void 0===a[p]&&(a[p]=[]),a[p].push(f.morphAttributes[p])}if(u.userData.mergedUserData=u.userData.mergedUserData||[],u.userData.mergedUserData.push(f.userData),e){var m;if(n)m=f.index.count;else{if(void 0===f.attributes.position)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+h+". The geometry must have either an index or a position attribute"),null;m=f.attributes.position.count}u.addGroup(l,m,h),l+=m}}if(n){var g=0,v=[];for(h=0;h<t.length;++h){for(var y=t[h].index,_=0;_<y.count;++_)v.push(y.getX(_)+g);g+=t[h].attributes.position.count}u.setIndex(v)}for(var p in o){var x=this.mergeBufferAttributes(o[p]);if(!x)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+p+" attribute."),null;u.setAttribute(p,x)}for(var p in a){var b=a[p][0].length;if(0===b)break;for(u.morphAttributes=u.morphAttributes||{},u.morphAttributes[p]=[],h=0;h<b;++h){var w=[];for(_=0;_<a[p].length;++_)w.push(a[p][_][h]);var M=this.mergeBufferAttributes(w);if(!M)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+p+" morphAttribute."),null;u.morphAttributes[p].push(M)}}return u},mergeBufferAttributes:function(t){for(var e,n,r,i=0,o=0;o<t.length;++o){var a=t[o];if(a.isInterleavedBufferAttribute)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. InterleavedBufferAttributes are not supported."),null;if(void 0===e&&(e=a.array.constructor),e!==a.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(void 0===n&&(n=a.itemSize),n!==a.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(void 0===r&&(r=a.normalized),r!==a.normalized)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;i+=a.array.length}var s=new e(i),u=0;for(o=0;o<t.length;++o)s.set(t[o].array,u),u+=t[o].array.length;return new c.BufferAttribute(s,n,r)},interleaveAttributes:function(t){for(var e,n=0,r=0,i=0,o=t.length;i<o;++i){var a=t[i];if(void 0===e&&(e=a.array.constructor),e!==a.array.constructor)return console.error("AttributeBuffers of different types cannot be interleaved"),null;n+=a.array.length,r+=a.itemSize}var s=new c.InterleavedBuffer(new e(n),r),u=0,l=[],h=["getX","getY","getZ","getW"],f=["setX","setY","setZ","setW"],d=0;for(o=t.length;d<o;d++){var p=(a=t[d]).itemSize,m=a.count,g=new c.InterleavedBufferAttribute(s,p,u,a.normalized);l.push(g),u+=p;for(var v=0;v<m;v++)for(var y=0;y<p;y++)g[f[y]](v,a[h[y]](v))}return l},estimateBytesUsed:function(t){var e=0;for(var n in t.attributes){var r=t.getAttribute(n);e+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}var i=t.getIndex();return e+=i?i.count*i.itemSize*i.array.BYTES_PER_ELEMENT:0},mergeVertices:function(t,e=1e-4){e=Math.max(e,Number.EPSILON);for(var n={},r=t.getIndex(),i=t.getAttribute("position"),o=r?r.count:i.count,a=0,s=Object.keys(t.attributes),u={},l={},h=[],f=["getX","getY","getZ","getW"],d=0,p=s.length;d<p;d++){var m=s[d];u[m]=[];var g=t.morphAttributes[m];g&&(l[m]=new Array(g.length).fill().map(()=>[]))}var v=Math.log10(1/e),y=Math.pow(10,v);for(d=0;d<o;d++){var _=r?r.getX(d):d,x="",b=0;for(p=s.length;b<p;b++){m=s[b];for(var w=t.getAttribute(m),M=w.itemSize,S=0;S<M;S++)x+=~~(w[f[S]](_)*y)+","}if(x in n)h.push(n[x]);else{for(b=0,p=s.length;b<p;b++){m=s[b],w=t.getAttribute(m),g=t.morphAttributes[m],M=w.itemSize;var A=u[m],C=l[m];for(S=0;S<M;S++){var E=f[S];if(A.push(w[E](_)),g)for(var T=0,I=g.length;T<I;T++)C[T].push(g[T][E](_))}}n[x]=a,h.push(a),a++}}const L=t.clone();for(d=0,p=s.length;d<p;d++){m=s[d];var P=t.getAttribute(m),R=new P.array.constructor(u[m]);if(w=new c.BufferAttribute(R,P.itemSize,P.normalized),L.setAttribute(m,w),m in l)for(b=0;b<l[m].length;b++){var O=t.morphAttributes[m][b],k=(R=new O.array.constructor(l[m][b]),new c.BufferAttribute(R,O.itemSize,O.normalized));L.morphAttributes[m][b]=k}}return L.setIndex(h),L},toTrianglesDrawMode:function(t,e){if(e===c.TrianglesDrawMode)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e===c.TriangleFanDrawMode||e===c.TriangleStripDrawMode){var n=t.getIndex();if(null===n){var r=[],i=t.getAttribute("position");if(void 0===i)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(var o=0;o<i.count;o++)r.push(o);t.setIndex(r),n=t.getIndex()}var a=n.count-2,s=[];if(e===c.TriangleFanDrawMode)for(o=1;o<=a;o++)s.push(n.getX(0)),s.push(n.getX(o)),s.push(n.getX(o+1));else for(o=0;o<a;o++)o%2==0?(s.push(n.getX(o)),s.push(n.getX(o+1)),s.push(n.getX(o+2))):(s.push(n.getX(o+2)),s.push(n.getX(o+1)),s.push(n.getX(o)));s.length/3!==a&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");var u=t.clone();return u.setIndex(s),u.clearGroups(),u}return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t},computeMorphedAttributes:function(t){if(!0!==t.geometry.isBufferGeometry)return console.error("THREE.BufferGeometryUtils: Geometry is not of type BufferGeometry."),null;var e=new c.Vector3,n=new c.Vector3,r=new c.Vector3,i=new c.Vector3,o=new c.Vector3,a=new c.Vector3,s=new c.Vector3,u=new c.Vector3,l=new c.Vector3;function h(t,c,h,f,d,p,m,g,v){e.fromBufferAttribute(h,p),n.fromBufferAttribute(h,m),r.fromBufferAttribute(h,g);var y=t.morphTargetInfluences;if(c.morphTargets&&f&&y){s.set(0,0,0),u.set(0,0,0),l.set(0,0,0);for(var _=0,x=f.length;_<x;_++){var b=y[_],w=f[_];0!==b&&(i.fromBufferAttribute(w,p),o.fromBufferAttribute(w,m),a.fromBufferAttribute(w,g),d?(s.addScaledVector(i,b),u.addScaledVector(o,b),l.addScaledVector(a,b)):(s.addScaledVector(i.sub(e),b),u.addScaledVector(o.sub(n),b),l.addScaledVector(a.sub(r),b)))}e.add(s),n.add(u),r.add(l)}t.isSkinnedMesh&&(t.boneTransform(p,e),t.boneTransform(m,n),t.boneTransform(g,r)),v[3*p+0]=e.x,v[3*p+1]=e.y,v[3*p+2]=e.z,v[3*m+0]=n.x,v[3*m+1]=n.y,v[3*m+2]=n.z,v[3*g+0]=r.x,v[3*g+1]=r.y,v[3*g+2]=r.z}var f,d,p,m,g,v,y,_,x,b=t.geometry,w=t.material,M=b.index,S=b.attributes.position,A=b.morphAttributes.position,C=b.morphTargetsRelative,E=b.attributes.normal,T=b.morphAttributes.position,I=b.groups,L=b.drawRange,P=new Float32Array(S.count*S.itemSize),R=new Float32Array(E.count*E.itemSize);if(null!==M)if(Array.isArray(w))for(m=0,v=I.length;m<v;m++)for(x=w[(_=I[m]).materialIndex],g=Math.max(_.start,L.start),y=Math.min(_.start+_.count,L.start+L.count);g<y;g+=3)h(t,x,S,A,C,f=M.getX(g),d=M.getX(g+1),p=M.getX(g+2),P),h(t,x,E,T,C,f,d,p,R);else for(m=Math.max(0,L.start),v=Math.min(M.count,L.start+L.count);m<v;m+=3)h(t,w,S,A,C,f=M.getX(m),d=M.getX(m+1),p=M.getX(m+2),P),h(t,w,E,T,C,f,d,p,R);else if(void 0!==S)if(Array.isArray(w))for(m=0,v=I.length;m<v;m++)for(x=w[(_=I[m]).materialIndex],g=Math.max(_.start,L.start),y=Math.min(_.start+_.count,L.start+L.count);g<y;g+=3)h(t,x,S,A,C,f=g,d=g+1,p=g+2,P),h(t,x,E,T,C,f,d,p,R);else for(m=Math.max(0,L.start),v=Math.min(S.count,L.start+L.count);m<v;m+=3)h(t,w,S,A,C,f=m,d=m+1,p=m+2,P),h(t,w,E,T,C,f,d,p,R);return{positionAttribute:S,normalAttribute:E,morphedPositionAttribute:new c.Float32BufferAttribute(P,3),morphedNormalAttribute:new c.Float32BufferAttribute(R,3)}}},J=n("22b5"),q=function(){function t(e,n,i){var o=this;Object(r.a)(this,t);var a=n.width||64,s=e.length>100?100:e.length,u=new c.PlaneBufferGeometry(a,a);this.texture=this._createBackGround(a),this.radius=a/3;var l,h=new c.MeshStandardMaterial({map:this.texture}),f=[];this.impacts=[],this.tweens=[],e.slice(0,s).map((function(t){var e=u.clone(),n=i.coordinateToVector3(t,0),r=(new c.Matrix4).makeTranslation(n.x,n.y,n.z);e.applyMatrix4(r),f.push(e),o.impacts.push({impactPosition:new c.Vector3(0,0,0).applyMatrix4(r),impactMaxRadius:o.radius,impactRatio:1})})),h.onBeforeCompile=function(t){t.uniforms.impacts={value:o.impacts},t.uniforms.impactRadius={value:a/2},t.vertexShader="varying vec3 vPosition;\n"+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <worldpos_vertex>","#include <worldpos_vertex>\n vPosition = transformed.xyz;"),t.fragmentShader="struct impact {\n vec3 impactPosition;\n float impactMaxRadius;\n float impactRatio;\n };\n uniform impact impacts[".concat(s,"];\n uniform float impactRadius;\n varying vec3 vPosition;\n ")+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("#include <dithering_fragment>","#include <dithering_fragment>\n float finalStep = 0.0;\n for (int i = 0; i < ".concat(s,";i++){\n \n float dist = distance(vPosition, impacts[i].impactPosition);\n //float curRadius = impacts[i].impactMaxRadius * impacts[i].impactRatio;\n float curRadius = impactRadius * impacts[i].impactRatio;\n float sstep = smoothstep(0., curRadius, dist) - smoothstep(curRadius - ( 0.25 * impacts[i].impactRatio ), curRadius, dist);\n sstep *= 1. - impacts[i].impactRatio;\n finalStep += sstep;\n\n }\n finalStep = 1. - clamp(finalStep, 0., 1.);\n\n //vec3 col = mix(vec3(1., 0.5, 0.0625), vec3(1.,0.125, 0.0625), finalStep);\n vec3 col = mix(vec3(1.,0., 0.), vec3(1.,0., 0.), finalStep);\n gl_FragColor = vec4( mix( col, gl_FragColor.rgb, finalStep), diffuseColor.a );")),l=t,o.materialShader=t};var d=Y.mergeBufferGeometries(f),p=new X({interactive:!1},d,h,i);i.addMesh(p),this.map=i.map,this.curscale=this.map.getScale();for(var m=this,g=function(t){o.tweens.push({runTween:function(){new J.a({value:0}).to({value:1},c.Math.randInt(2500,5e3)).delay(c.Math.randInt(500,2e3)).onUpdate((function(e){l&&l.uniforms.impacts.value[t]&&(l.uniforms.impacts.value[t].impactRatio=e.value)})).onComplete((function(){var e;null===(e=m.tweens[t])||void 0===e||e.runTween()})).start()}})},v=0;v<s;v++)g(v);this.tweens.forEach((function(t){t.runTween()})),this.width=a,this.shockMeshs=p,this.threelayer=i,this.points=e,this._geom=u,this._bindMapEvents()}return Object(i.a)(t,[{key:"_bindMapEvents",value:function(){this.map&&this.map.on("zooming zoomend",this._setSizeOn,this)}},{key:"_closeEvent",value:function(){this.map&&this.map.off("zooming zoomend",this._setSizeOn,this)}},{key:"_setSizeOn",value:function(){if(this.materialShader){var t=this.map.getScale()/this.curscale;t=(t=t>1?1:t)<.5?.5:t,this.materialShader.uniforms.impactRadius.value=this.radius*t}}},{key:"_createBackGround",value:function(t){var e=document.createElement("canvas");e.width=e.height=t;var n=e.getContext("2d");n.globalCompositeOperation,n.globalAlpha=0,n.fillRect(0,0,e.width,e.height);var r=new c.Texture(e);return r.needsUpdate=!0,r}},{key:"hide",value:function(){this.shockMeshs&&this.threelayer.removeMesh(this.shockMeshs)}},{key:"show",value:function(){this.shockMeshs&&this.threelayer.addMesh(this.shockMeshs)}},{key:"dispose",value:function(){if(this.shockMeshs&&(this.threelayer.removeMesh(this.shockMeshs),this.shockMeshs.object3d.geometry&&this.shockMeshs.object3d.geometry.dispose(),delete this.shockMeshs,this.texture&&this.texture.dispose(),this.material&&(this.material.dispose(),delete this.material)),this.tweens.length>0){for(var t=0;t<this.tweens.length;t++)delete this.tweens[t];this.tweens=[]}if(this.impacts.length>0){for(var e=0;e<this.impacts.length;e++)delete this.impacts[e];this.impacts=[]}this._geom&&(this._geom.dispose(),delete this._geom),this._closeEvent(),this.points=[],this.materialShader&&delete this.materialShader,this.map=null}}]),t}();n("1913"),c.UniformsLib.line={linewidth:{value:1},resolution:{value:new c.Vector2(1,1)},dashScale:{value:1},dashSize:{value:1},dashOffset:{value:0},gapSize:{value:1},opacity:{value:1}},c.ShaderLib.line={uniforms:c.UniformsUtils.merge([c.UniformsLib.common,c.UniformsLib.fog,c.UniformsLib.line]),vertexShader:"\n\t\t#include <common>\n\t\t#include <color_pars_vertex>\n\t\t#include <fog_pars_vertex>\n\t\t#include <logdepthbuf_pars_vertex>\n\t\t#include <clipping_planes_pars_vertex>\n\n\t\tuniform float linewidth;\n\t\tuniform vec2 resolution;\n\n\t\tattribute vec3 instanceStart;\n\t\tattribute vec3 instanceEnd;\n\n\t\tattribute vec3 instanceColorStart;\n\t\tattribute vec3 instanceColorEnd;\n\n\t\tvarying vec2 vUv;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashScale;\n\t\t\tattribute float instanceDistanceStart;\n\t\t\tattribute float instanceDistanceEnd;\n\t\t\tvarying float vLineDistance;\n\n\t\t#endif\n\n\t\tvoid trimSegment( const in vec4 start, inout vec4 end ) {\n\n\t\t\t// trim end segment so it terminates between the camera plane and the near plane\n\n\t\t\t// conservative estimate of the near plane\n\t\t\tfloat a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n\t\t\tfloat b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n\t\t\tfloat nearEstimate = - 0.5 * b / a;\n\n\t\t\tfloat alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n\t\t\tend.xyz = mix( start.xyz, end.xyz, alpha );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#ifdef USE_COLOR\n\n\t\t\t\tvColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n\t\t\t#endif\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\n\t\t\t#endif\n\n\t\t\tfloat aspect = resolution.x / resolution.y;\n\n\t\t\tvUv = uv;\n\n\t\t\t// camera space\n\t\t\tvec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n\t\t\tvec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n\t\t\t// special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n\t\t\t// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n\t\t\t// but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n\t\t\t// perhaps there is a more elegant solution -- WestLangley\n\n\t\t\tbool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n\t\t\tif ( perspective ) {\n\n\t\t\t\tif ( start.z < 0.0 && end.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( start, end );\n\n\t\t\t\t} else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( end, start );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// clip space\n\t\t\tvec4 clipStart = projectionMatrix * start;\n\t\t\tvec4 clipEnd = projectionMatrix * end;\n\n\t\t\t// ndc space\n\t\t\tvec2 ndcStart = clipStart.xy / clipStart.w;\n\t\t\tvec2 ndcEnd = clipEnd.xy / clipEnd.w;\n\n\t\t\t// direction\n\t\t\tvec2 dir = ndcEnd - ndcStart;\n\n\t\t\t// account for clip-space aspect ratio\n\t\t\tdir.x *= aspect;\n\t\t\tdir = normalize( dir );\n\n\t\t\t// perpendicular to dir\n\t\t\tvec2 offset = vec2( dir.y, - dir.x );\n\n\t\t\t// undo aspect ratio adjustment\n\t\t\tdir.x /= aspect;\n\t\t\toffset.x /= aspect;\n\n\t\t\t// sign flip\n\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t// endcaps\n\t\t\tif ( position.y < 0.0 ) {\n\n\t\t\t\toffset += - dir;\n\n\t\t\t} else if ( position.y > 1.0 ) {\n\n\t\t\t\toffset += dir;\n\n\t\t\t}\n\n\t\t\t// adjust for linewidth\n\t\t\toffset *= linewidth;\n\n\t\t\t// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n\t\t\toffset /= resolution.y;\n\n\t\t\t// select end\n\t\t\tvec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n\t\t\t// back to clip space\n\t\t\toffset *= clip.w;\n\n\t\t\tclip.xy += offset;\n\n\t\t\tgl_Position = clip;\n\n\t\t\tvec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n\t\t\t#include <logdepthbuf_vertex>\n\t\t\t#include <clipping_planes_vertex>\n\t\t\t#include <fog_vertex>\n\n\t\t}\n\t\t",fragmentShader:"\n\t\tuniform vec3 diffuse;\n\t\tuniform float opacity;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashSize;\n\t\t\tuniform float dashOffset;\n\t\t\tuniform float gapSize;\n\n\t\t#endif\n\n\t\tvarying float vLineDistance;\n\n\t\t#include <common>\n\t\t#include <color_pars_fragment>\n\t\t#include <fog_pars_fragment>\n\t\t#include <logdepthbuf_pars_fragment>\n\t\t#include <clipping_planes_pars_fragment>\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\t#include <clipping_planes_fragment>\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tif ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n\t\t\t\tif ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n\t\t\t#endif\n\n\t\t\tfloat alpha = opacity;\n\n\t\t\t#ifdef ALPHA_TO_COVERAGE\n\n\t\t\t// artifacts appear on some hardware if a derivative is taken within a conditional\n\t\t\tfloat a = vUv.x;\n\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\tfloat len2 = a * a + b * b;\n\t\t\tfloat dlen = fwidth( len2 );\n\n\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\talpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );\n\n\t\t\t}\n\n\t\t\t#else\n\n\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\tfloat a = vUv.x;\n\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\tfloat len2 = a * a + b * b;\n\n\t\t\t\tif ( len2 > 1.0 ) discard;\n\n\t\t\t}\n\n\t\t\t#endif\n\n\t\t\tvec4 diffuseColor = vec4( diffuse, alpha );\n\n\t\t\t#include <logdepthbuf_fragment>\n\t\t\t#include <color_fragment>\n\n\t\t\tgl_FragColor = vec4( diffuseColor.rgb, alpha );\n\n\t\t\t#include <tonemapping_fragment>\n\t\t\t#include <encodings_fragment>\n\t\t\t#include <fog_fragment>\n\t\t\t#include <premultiplied_alpha_fragment>\n\n\t\t}\n\t\t"};var K=function(t){c.ShaderMaterial.call(this,{type:"LineMaterial",uniforms:c.UniformsUtils.clone(c.ShaderLib.line.uniforms),vertexShader:c.ShaderLib.line.vertexShader,fragmentShader:c.ShaderLib.line.fragmentShader,clipping:!0}),this.dashed=!1,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(t){this.uniforms.diffuse.value=t}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(t){this.uniforms.linewidth.value=t}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(t){this.uniforms.dashScale.value=t}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(t){this.uniforms.dashSize.value=t}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(t){this.uniforms.dashOffset.value=t}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(t){this.uniforms.gapSize.value=t}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(t){this.uniforms.resolution.value.copy(t)}},alphaToCoverage:{enumerable:!0,get:function(){return Boolean("ALPHA_TO_COVERAGE"in this.defines)},set:function(t){Boolean(t)!==Boolean("ALPHA_TO_COVERAGE"in this.defines)&&(this.needsUpdate=!0),t?(this.defines.ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(t)};(K.prototype=Object.create(c.ShaderMaterial.prototype)).constructor=K,K.prototype.isLineMaterial=!0;var $=function(){c.InstancedBufferGeometry.call(this),this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),this.setAttribute("position",new c.Float32BufferAttribute([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),this.setAttribute("uv",new c.Float32BufferAttribute([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))};$.prototype=Object.assign(Object.create(c.InstancedBufferGeometry.prototype),{constructor:$,isLineSegmentsGeometry:!0,applyMatrix4:function(t){var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==e&&(e.applyMatrix4(t),n.applyMatrix4(t),e.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},setPositions:function(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new c.InstancedInterleavedBuffer(e,6,1);return this.setAttribute("instanceStart",new c.InterleavedBufferAttribute(n,3,0)),this.setAttribute("instanceEnd",new c.InterleavedBufferAttribute(n,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this},setColors:function(t){var e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));var n=new c.InstancedInterleavedBuffer(e,6,1);return this.setAttribute("instanceColorStart",new c.InterleavedBufferAttribute(n,3,0)),this.setAttribute("instanceColorEnd",new c.InterleavedBufferAttribute(n,3,3)),this},fromWireframeGeometry:function(t){return this.setPositions(t.attributes.position.array),this},fromEdgesGeometry:function(t){return this.setPositions(t.attributes.position.array),this},fromMesh:function(t){return this.fromWireframeGeometry(new c.WireframeGeometry(t.geometry)),this},fromLineSegments:function(t){var e=t.geometry;if(!e.isGeometry)return e.isBufferGeometry&&this.setPositions(e.attributes.position.array),this;console.error("THREE.LineSegmentsGeometry no longer supports Geometry. Use THREE.BufferGeometry instead.")},computeBoundingBox:function(){var t=new c.Box3;return function(){null===this.boundingBox&&(this.boundingBox=new c.Box3);var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;void 0!==e&&void 0!==n&&(this.boundingBox.setFromBufferAttribute(e),t.setFromBufferAttribute(n),this.boundingBox.union(t))}}(),computeBoundingSphere:function(){var t=new c.Vector3;return function(){null===this.boundingSphere&&(this.boundingSphere=new c.Sphere),null===this.boundingBox&&this.computeBoundingBox();var e=this.attributes.instanceStart,n=this.attributes.instanceEnd;if(void 0!==e&&void 0!==n){var r=this.boundingSphere.center;this.boundingBox.getCenter(r);for(var i=0,o=0,a=e.count;o<a;o++)t.fromBufferAttribute(e,o),i=Math.max(i,r.distanceToSquared(t)),t.fromBufferAttribute(n,o),i=Math.max(i,r.distanceToSquared(t));this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}}(),toJSON:function(){},applyMatrix:function(t){return console.warn("THREE.LineSegmentsGeometry: applyMatrix() has been renamed to applyMatrix4()."),this.applyMatrix4(t)}});var tt=function(){$.call(this),this.type="LineGeometry"};tt.prototype=Object.assign(Object.create($.prototype),{constructor:tt,isLineGeometry:!0,setPositions:function(t){for(var e=t.length-3,n=new Float32Array(2*e),r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return $.prototype.setPositions.call(this,n),this},setColors:function(t){for(var e=t.length-3,n=new Float32Array(2*e),r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return $.prototype.setColors.call(this,n),this},fromLine:function(t){var e=t.geometry;if(!e.isGeometry)return e.isBufferGeometry&&this.setPositions(e.attributes.position.array),this;console.error("THREE.LineGeometry no longer supports Geometry. Use THREE.BufferGeometry instead.")},copy:function(){return this}});var et={altitude:0,height:0},nt=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o){var a;Object(r.a)(this,n),t=u.Util.extend({},et,t,{layer:o}),a=e.call(this);var s=t,l=s.width,h=s.height;s.altitude,a._initOptions(t);var f=new c.PlaneBufferGeometry(l,h);return a._createMesh(f,i),a}return n}(C.a),rt=n("257e"),it=function(t,e){void 0===t&&(t=new $),void 0===e&&(e=new K({color:16777215*Math.random()})),c.Mesh.call(this,t,e),this.type="LineSegments2"};it.prototype=Object.assign(Object.create(c.Mesh.prototype),{constructor:it,isLineSegments2:!0,computeLineDistances:function(){var t=new c.Vector3,e=new c.Vector3;return function(){for(var n=this.geometry,r=n.attributes.instanceStart,i=n.attributes.instanceEnd,o=new Float32Array(2*r.count),a=0,s=0,u=r.count;a<u;a++,s+=2)t.fromBufferAttribute(r,a),e.fromBufferAttribute(i,a),o[s]=0===s?0:o[s-1],o[s+1]=o[s]+t.distanceTo(e);var l=new c.InstancedInterleavedBuffer(o,2,1);return n.setAttribute("instanceDistanceStart",new c.InterleavedBufferAttribute(l,1,0)),n.setAttribute("instanceDistanceEnd",new c.InterleavedBufferAttribute(l,1,1)),this}}(),raycast:function(){var t=new c.Vector4,e=new c.Vector4,n=new c.Vector4,r=new c.Vector3,i=new c.Matrix4,o=new c.Line3,a=new c.Vector3,s=new c.Box3,u=new c.Sphere,l=new c.Vector4;return function(h,f){null===h.camera&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2.');var d=void 0!==h.params.Line2&&h.params.Line2.threshold||0,p=h.ray,m=h.camera,g=m.projectionMatrix,v=this.matrixWorld,y=this.geometry,_=this.material,x=_.resolution,b=_.linewidth+d,w=y.attributes.instanceStart,M=y.attributes.instanceEnd,S=-m.near,A=2*Math.max(b/x.width,b/x.height);null===y.boundingSphere&&y.computeBoundingSphere(),u.copy(y.boundingSphere).applyMatrix4(v);var C=Math.max(m.near,u.distanceToPoint(p.origin));l.set(0,0,-C,1).applyMatrix4(m.projectionMatrix),l.multiplyScalar(1/l.w),l.applyMatrix4(m.projectionMatrixInverse);var E=.5*Math.abs(A/l.w);if(u.radius+=E,!1!==h.ray.intersectsSphere(u)){null===y.boundingBox&&y.computeBoundingBox(),s.copy(y.boundingBox).applyMatrix4(v);var T=Math.max(m.near,s.distanceToPoint(p.origin));l.set(0,0,-T,1).applyMatrix4(m.projectionMatrix),l.multiplyScalar(1/l.w),l.applyMatrix4(m.projectionMatrixInverse);var I=.5*Math.abs(A/l.w);if(s.max.x+=I,s.max.y+=I,s.max.z+=I,s.min.x-=I,s.min.y-=I,s.min.z-=I,!1!==h.ray.intersectsBox(s)){p.at(1,n),n.w=1,n.applyMatrix4(m.matrixWorldInverse),n.applyMatrix4(g),n.multiplyScalar(1/n.w),n.x*=x.x/2,n.y*=x.y/2,n.z=0,r.copy(n),i.multiplyMatrices(m.matrixWorldInverse,v);for(var L=0,P=w.count;L<P;L++)if(t.fromBufferAttribute(w,L),e.fromBufferAttribute(M,L),t.w=1,e.w=1,t.applyMatrix4(i),e.applyMatrix4(i),!(t.z>S&&e.z>S)){if(t.z>S){const n=t.z-e.z,r=(t.z-S)/n;t.lerp(e,r)}else if(e.z>S){const n=e.z-t.z,r=(e.z-S)/n;e.lerp(t,r)}t.applyMatrix4(g),e.applyMatrix4(g),t.multiplyScalar(1/t.w),e.multiplyScalar(1/e.w),t.x*=x.x/2,t.y*=x.y/2,e.x*=x.x/2,e.y*=x.y/2,o.start.copy(t),o.start.z=0,o.end.copy(e),o.end.z=0;var R=o.closestPointToPointParameter(r,!0);o.at(R,a);var O=c.MathUtils.lerp(t.z,e.z,R),k=O>=-1&&O<=1,B=r.distanceTo(a)<.5*b;if(k&&B){o.start.fromBufferAttribute(w,L),o.end.fromBufferAttribute(M,L),o.start.applyMatrix4(v),o.end.applyMatrix4(v);var D=new c.Vector3,F=new c.Vector3;p.distanceSqToSegment(o.start,o.end,F,D),f.push({point:F,pointOnLine:D,distance:p.origin.distanceTo(F),object:this,face:null,faceIndex:L,uv:null,uv2:null})}}}}}}()});var ot=function(t,e){void 0===t&&(t=new tt),void 0===e&&(e=new K({color:16777215*Math.random()})),it.call(this,t,e),this.type="Line2"};ot.prototype=Object.assign(Object.create(it.prototype),{constructor:ot,isLine2:!0});var at={radius:100,altitude:0},st=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a,s){var c;Object(r.a)(this,n),i=u.Util.extend({},at,i,{layer:s,coordinate:t}),(c=e.call(this))._initOptions(i);var l=i.altitude;c.object3d=new ot(o,a),c.object3d.computeLineDistances(),c.object3d.scale.set(1,1,1),c.object3d.__parent=Object(rt.a)(c);var h=s.distanceToVector3(l,l).x,f=s.coordinateToVector3(t,h);return c.getObject3d().position.copy(f),c}return n}(C.a),ct={radius:100,altitude:0},ut=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},ct,i,{layer:a,coordinate:t}),(s=e.call(this))._initOptions(i);var l=i,h=l.altitude,f=l.inradius,d=l.outradius,p=l.start,m=a.distanceToVector3(f,f).x,g=a.distanceToVector3(d,d).x,v=new c.RingBufferGeometry(m,g,14,1,p*Math.PI/180,45*Math.PI/180);s._createMesh(v,o);var y=a.distanceToVector3(h,h).x,_=a.coordinateToVector3(t,y);return s.getObject3d().position.copy(_),s}return n}(C.a),lt={radius:100,altitude:0},ht=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},lt,i,{layer:a,coordinate:t}),(s=e.call(this))._initOptions(i);var l=i,h=l.altitude,f=l.radius,d=l.start,p=a.distanceToVector3(f,f).x,m=new c.CircleBufferGeometry(p,128,d*Math.PI/180,45*Math.PI/180);s._createMesh(m,o);var g=a.distanceToVector3(h,h).x,v=a.coordinateToVector3(t,g);return s.getObject3d().position.copy(v),s}return n}(C.a),ft=function(){function t(e,n,i,o){Object(r.a)(this,t),this.tlayer=o,this.map=o.map;var a=o.coordinateToVector3(e,0),s=i.maxdis||15e3,l=i.middis||1e4,h=i.mindis||5e3,f=s/2e3,d=i.fontsize||80,p=4*f,m=1*f,g=o.distanceToVector3(s,s).x;this.global_r=g;var v=o.distanceToVector3(l,l).x,y=o.distanceToVector3(h,h).x,_=(new c.Matrix4).makeTranslation(a.x,a.y,a.z);this.matLine=new K({color:i.color||4227327,linewidth:i.lineWidth||.002,dashed:!1,transparent:!0}),this.matLine.uniforms.opacity.value=i.opacity||.65,this.meshitems=[],this.textures=[],this.lineItems=[],this.psItems=[];var x={type:"label",x_offset:0,y_offset:m,name:"N",degree:0};this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:m,y_offset:m,name:"EN",degree:45},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:m,y_offset:0,name:"E",degree:90},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:m,y_offset:-m,name:"ES",degree:135},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:0,y_offset:-m,name:"S",degree:180},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:-m,y_offset:-m,name:"WS",degree:225},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:-m,y_offset:0,name:"W",degree:270},this.createLabelNew(g,d,p,_,x),x={type:"label",x_offset:-m,y_offset:m,name:"WN",degree:315},this.createLabelNew(g,d,p,_,x),this.createCircle(g,e),this.createCircle(v,e),this.createCircle(y,e);for(var b=0;b<360;b+=45)this.lineItems.push({x1:0*Math.sin(Math.PI/180*0),y1:0*Math.cos(Math.PI/180*0),z1:0,x2:Math.sin(b*(Math.PI/180))*g,y2:Math.cos(b*(Math.PI/180))*g,z2:0});this.createLine(e);for(var w=0;w<n.length;w++)-1!=n[w].name.indexOf("A")?this.createMinPoly(h,e,n[w].color,this.getDegree(n[w].name),Object.assign(n[w],{type:"poly"})):-1!=n[w].name.indexOf("B")?this.createRing(h,l,e,n[w].color,this.getDegree(n[w].name),Object.assign(n[w],{type:"poly"})):-1!=n[w].name.indexOf("C")&&this.createRing(l,s,e,n[w].color,this.getDegree(n[w].name),Object.assign(n[w],{type:"poly"}));if(o.addMesh(this.meshitems),this.callback=i.callback,this.callback){var M={custom:!0,dy:i.dy||-48,content:"",autoOpenOn:null};this.infoWindow=new u.ui.InfoWindow(M).addTo(this.map)}this._translation=_}return Object(i.a)(t,[{key:"clearInfo",value:function(){this.infoWindow&&this.infoWindow.hide()}},{key:"updateRing",value:function(t,e,n){var r=this,i=this.tlayer.coordinateToVector3([t,e],0),o=(new c.Matrix4).makeTranslation(i.x,i.y,i.z);this.meshitems.forEach((function(t){var e=t.getProperties();if(e&&"label"===e.type){var a=r.getPsVec(e.degree,r.global_r,o);r.psItems.push(a),t.object3d.position.set(a.x+e.x_offset,a.y+e.y_offset,0)}else if(e&&"poly"===e.type){var s=r.getPropertiesByName(e.name,n);if(s){e.color=s.color,e.value=s.value;var u=new c.Color(e.color);t.object3d.material.color=u,t.object3d.material.color.needsUpdate=!0,t.object3d.position.set(i.x,i.y,i.z)}}else t.object3d.position.set(i.x,i.y,i.z)}))}},{key:"dispose",value:function(){var t=this;if(this.infoWindow&&(this.infoWindow.remove(),delete this.infoWindow),this.meshitems){this.tlayer.removeMesh(this.meshitems),this.meshitems.forEach((function(e){var n=e.getProperties();n&&"poly"===n.type&&t.closeClick(e),n&&e.getProperties()})),this.textures.length>0&&(this.textures.forEach((function(t){t.dispose()})),this.textures=[]),this.meshitems.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()}));for(var e=0;e<this.lineItems.length;e++)delete this.lineItems[e];this.lineItems=[];for(var n=0;n<this.psItems.length;n++)delete this.psItems[n];this.psItems=[]}delete this._translation}},{key:"createMinPoly",value:function(t,e,n,r,i){var o=new c.MeshBasicMaterial({color:n,transparent:!0,opacity:.5,depthTest:!1}),a=new ht(e,{radius:t,start:r},o,this.tlayer);a.setProperties(i),this.attachClick(a),this.meshitems.push(a)}},{key:"createRing",value:function(t,e,n,r,i,o){var a=new c.MeshBasicMaterial({color:r,transparent:!0,opacity:.5,depthTest:!1}),s=new ut(n,{inradius:t,outradius:e,start:i},a,this.tlayer);s.setProperties(o),this.meshitems.push(s),this.attachClick(s)}},{key:"closeClick",value:function(t){t.off("click",this._setItemEvent,this)}},{key:"attachClick",value:function(t){t.on("click",this._setItemEvent,this)}},{key:"_setItemEvent",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.callback){t.next=5;break}return n=e.target.getProperties(),t.next=4,this.callback(this.infoWindow,n);case 4:this.infoWindow.show({x:e.coordinate.x,y:e.coordinate.y});case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getPropertiesByName",value:function(t,e){for(var n=0;n<e.length;n++)if(e[n].name===t)return e[n]}},{key:"getDegree",value:function(t){switch(t){case"A1":case"B1":case"C1":return 45;case"A2":case"B2":case"C2":return 0;case"A8":case"B8":case"C8":return 90;case"A7":case"B7":case"C7":return 135;case"A6":case"B6":case"C6":return 180;case"A5":case"B5":case"C5":return 225;case"A4":case"B4":case"C4":return 270;case"A3":case"B3":case"C3":return 315}}},{key:"createLine",value:function(t){for(var e=[],n=0;n<this.lineItems.length;n++){(e=[]).push(this.lineItems[n].x1,this.lineItems[n].y1,this.lineItems[n].z1),e.push(this.lineItems[n].x2,this.lineItems[n].y2,this.lineItems[n].z2);var r=new tt;r.setPositions(e);var i=new st(t,{interactive:!1},r,this.matLine,this.tlayer);this.meshitems.push(i)}}},{key:"createCircle",value:function(t,e){for(var n=[],r=0;r<=360;r++)n.push(Math.sin(r*(Math.PI/180))*t,Math.cos(r*(Math.PI/180))*t,0);var i=new tt;i.setPositions(n);var o=new st(e,{interactive:!1},i,this.matLine,this.tlayer);this.meshitems.push(o)}},{key:"createLabelNew",value:function(t,e,n,r,i){var o=new nt({interactive:!1,width:n,height:n},this.getTextMaterial(i.name,e,"#fff"),this.tlayer),a=this.getPsVec(i.degree,t,r);o.object3d.position.set(a.x+i.x_offset,a.y+i.y_offset,0),this.psItems.push(a),o.setProperties(i),this.meshitems.push(o)}},{key:"getPsVec",value:function(t,e,n){var r=t*(Math.PI/180),i=new c.Vector3(Math.sin(r)*e,Math.cos(r)*e,0);return i=i.applyMatrix4(n)}},{key:"getTextMaterial",value:function(t,e,n){var r=document.createElement("canvas");r.width=r.height=256;var i=r.getContext("2d");i.fillStyle=n,i.font="".concat(e,"px Aria"),i.textAlign="center",i.textBaseline="middle",i.fillText(t,128,128);var o=new c.Texture(r);return o.needsUpdate=!0,this.textures.push(o),new c.MeshPhongMaterial({map:o,transparent:!0,depthTest:!1})}}]),t}(),dt=(n("25f0"),n("a15b"),n("4c53"),Math.PI/180);function pt(t){return t.getCoordinates().map((function(t){return t.toArray()}))}function mt(t){return t*dt}function gt(t,e){if(!t||!e)return 0;Array.isArray(t)||(t=t.toArray()),Array.isArray(e)||(e=e.toArray());var n=mt(t[1]),r=mt(e[1]),i=n-r,o=mt(t[0])-mt(e[0]);return n=2*Math.asin(Math.sqrt(Math.pow(Math.sin(i/2),2)+Math.cos(n)*Math.cos(r)*Math.pow(Math.sin(o/2),2))),n*=6378137,Math.round(1e5*n)/1e5}function vt(t,e){var n=t.len,r=t.c1,i=t.c2,o=i[0]-r[0],a=i[1]-r[1],s=(i[2]||0)-(r[2]||0),c=e/n;return[r[0]+c*o,r[1]+c*a,(r[2]||0)+c*s]}var yt=n("d30b"),_t=n("4703");function xt(t,e,n){if(void 0===n&&(n={}),!0===n.final)return function(t,e){var n=xt(e,t);return n=(n+180)%360}(t,e);var r=Object(_t.a)(t),i=Object(_t.a)(e),o=Object(yt.a)(r[0]),a=Object(yt.a)(i[0]),s=Object(yt.a)(r[1]),c=Object(yt.a)(i[1]),u=Math.sin(a-o)*Math.cos(c),l=Math.cos(s)*Math.sin(c)-Math.sin(s)*Math.cos(c)*Math.cos(a-o);return Object(yt.c)(Math.atan2(u,l))}var bt=n("77cd"),wt=n.n(bt),Mt={altitude:0,height:0},St=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),o=u.Util.extend({},Mt,o,{layer:a}),s=e.call(this);var l=o,h=l.width,f=l.height,d=l.altitude;s._initOptions(o);var p=new c.PlaneBufferGeometry(h,f);s._createMesh(p,i);var m=a.distanceToVector3(d,d).x,g=a.coordinateToVector3(t,m);return s.getObject3d().position.copy(g),s}return n}(C.a),At=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.tlayer=i,this.map=i.map,n.color;var a=void 0!==n.smoothFlag&&!0===n.smoothFlag,s=void 0!==n.lineFlag&&!0===n.lineFlag;this.material=null,this.texture=null,this.curve=null,this.meshs=[],this.pts=[],this.newPts=[],this.arrows=[],this.lines=null,this.coordinates=null,this.positions=null,this.bearings=[],s&&(this.lineMaterial=new K({color:n.lineColor||"red",transparent:!0,linewidth:n.linewidth||4,blending:c.AdditiveBlending})),this.loadTexture().then((function(t){var r=null;if(a?(e.forEach((function(t){var e=i.coordinateToVector3(t);o.pts.push(e)})),o.curve=new c.CatmullRomCurve3(o.pts,!1),o.curve.getPoints(20).forEach((function(t){var e=o.map.pointToCoordinate(t,o.map.getGLZoom());o.newPts.push(e)})),r=new u.LineString(o.newPts)):r=new u.LineString(e),s){var l=i.toFatLine(r,{},o.lineMaterial);o.meshs.push(l),o.tlayer.addMesh(o.meshs)}var h=r.getLength(),f=parseInt(h/30);f=f>10?10:f,o.ArrowNum=f;var d=1/o.ArrowNum;o.addSpan=Math.floor(100*d)/100;for(var p=0;p<o.ArrowNum;p++){var m=new St(e[0],t,{width:n.width||.2,height:n.height||.1},o.tlayer);m.object3d.renderOrder=n.arrowOrder||1,o.arrows.push(m)}o.tlayer.addMesh(o.arrows),o.lines=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;e=Math.max(e,1),Array.isArray(t)||(t=pt(t));for(var n=t.length,r=[],i=0,o=0;o<n-1;o++){var a=gt(t[o],t[o+1]),s=Math.floor(a);r.push({c1:t[o],len:s,c2:t[o+1]}),i+=s}if(i<=e){var c=r.map((function(t){return[t.c1,t.c2]}));return c}if(1===r.length&&r[0].len<=e)return[[r[0].c1,r[0].c2]];for(var u,l=r.length,h=r[0],f=0,d=0,p=[],m=[h.c1];f<l;){var g=r[f],v=g.len,y=g.c2;if((d+=v)<e&&(m.push(y),f===l-1&&p.push(m),f++),d==e&&(m.push(y),d=0,p.push(m),m=[y],f++),d>e){var _=v-d+e;u=vt(r[f],_),m.push(u),p.push(m),d=0,r[f].c1=u,r[f].len=v-_,(m=[]).push(u)}}return p}(r,1);var g=o.lines[0][0],v=o.tlayer.coordinateToVector3(g);o.coordinates=[g],o.positions=[v],o.lines.forEach((function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.join(",").toString()!==o.coordinates[o.coordinates.length-1].join(",").toString()){o.coordinates.push(n);var r=o.tlayer.coordinateToVector3(n);r.z=.02,o.positions.push(r)}}}));for(var y=0;y<o.coordinates.length-1;y++){var _=o.coordinates[y],x=o.coordinates[y+1],b=xt(wt()(_),wt()(x));o.bearings.push((180-b)*Math.PI/180)}}))}return Object(i.a)(t,[{key:"loadTexture",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.promiseToDoSomething();case 2:return e=t.sent,this.texture=new c.CanvasTexture(e.canvas),this.material=new c.MeshBasicMaterial({map:this.texture,side:c.DoubleSide,depthWrite:!1,depthTest:!1}),t.abrupt("return",this.material);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"promiseToDoSomething",value:function(){return new Promise((function(t){var e=document.createElement("canvas").getContext("2d");e.canvas.width=64,e.canvas.height=64,e.translate(29,32),e.rotate(.5*Math.PI),e.fillStyle="rgb(0,255,255)",e.textAlign="center",e.textBaseline="middle",e.font="48px sans-serif",e.fillText("➡︎",0,0),setTimeout((function(){return t(e)}),4)}))}},{key:"naimationFunc",value:function(){if(this.coordinates)for(var t=1e-4*performance.now(),e=0;e<this.ArrowNum;e++){var n=(t+this.addSpan*e)%1,r=Math.floor(n*this.coordinates.length);this.arrows[e].getObject3d().position.copy(this.positions[r]);var i=this.bearings[r];null!=i&&(this.arrows[e].getObject3d().rotation.z=i)}}},{key:"dispose",value:function(){this.meshs&&(this.tlayer.removeMesh(this.meshs),this.meshs.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose()}))),this.arrows&&(this.tlayer.removeMesh(this.arrows),this.arrows.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose()}))),this.material&&this.material.dispose(),this.texture&&this.texture.dispose(),this.curve&&delete this.curve;for(var t=0;t<this.pts.length;t++)delete this.pts[t];this.pts=[],this.newPts=[];for(var e=0;e<this.lines.length;e++)delete this.lines[e];this.lines=[],this.coordinates=[],this.positions=[],this.bearings=[]}}]),t}(),Ct=function(){function t(e,n,i,o){var a=this;Object(r.a)(this,t),this.tlayer=i,this.map=i.map,this.layerP=o;var s=i.coordinateToVector3(e,0),u=n.distince||15e3,l=u/2,h=u/2e3,f=n.fontsize||80,d=4*h,p=1*h,m=i.distanceToVector3(u,u).x,g=i.distanceToVector3(l,l).x,v=(new c.Matrix4).makeTranslation(s.x,s.y,s.z);if(this.meshitems=[],this.textures=[],this.lineItems=[],this.psItems=[],this.arrowitems=[],this.matLine=new K({color:n.color||4227327,linewidth:n.lineWidth||.001,dashed:!1,transparent:!0,opacity:n.opacity||1}),this.matLine.uniforms.opacity.value=n.opacity||.65,this.textureLoader=new c.TextureLoader,n.arrowImgPath){var y=n.windSpeed||0,_=n.windDirection||0;this.textureLoader.load(n.arrowImgPath,(function(t){a.textures.push(t),a.arrowMaterial=new c.MeshBasicMaterial({map:t});var n=new nt({interactive:!1,width:2*h,height:2*h},a.arrowMaterial,a.tlayer),r=a.getArrowPs(_,h),o=r.rotation*(Math.PI/180),u=a.getPsVec(_,m,v);a.psItems.push(u),a.psItems.push(r),n.object3d.position.set(u.x,u.y,s.z),n.object3d.rotation.z=o,a.arrowitems.push(n);var l=a.createTexture("".concat(y,"级"),60,"#fff");a.textures.push(l);var x=new nt({interactive:!1,width:d,height:d},a.getArrowTextMaterial(l),a.tlayer);x.object3d.position.set(u.x+r.offx,u.y+r.offy,s.z),a.arrowitems.push(x);var b={type:"label",x_offset:0,y_offset:p,name:"N",degree:0};a.createLabelNew(m,f,d,v,b),b={type:"label",x_offset:p,y_offset:p,name:"EN",degree:45},a.createLabelNew(m,f,d,v,b),b={type:"label",x_offset:p,y_offset:0,name:"E",degree:90},a.createLabelNew(m,f,d,v,b),b={type:"label",x_offset:p,y_offset:-p,name:"ES",degree:135},a.createLabelNew(m,f,d,v,b),b={type:"label",x_offset:0,y_offset:-p,name:"S",degree:180},a.createLabelNew(m,f,d,v,b),b={type:"label",x_offset:-p,y_offset:-p,name:"WS",degree:225},a.createLabelNew(m,f,d,v,b),b={type:"label",x_offset:-p,y_offset:0,name:"W",degree:270},a.createLabelNew(m,f,d,v,b),b={type:"label",x_offset:-p,y_offset:p,name:"WN",degree:315},a.createLabelNew(m,f,d,v,b),a.createCircle(m,e),a.createCircle(g,e);for(var w=0;w<360;w+=22.5)a.lineItems.push({x1:0*Math.sin(Math.PI/180*0),y1:0*Math.cos(Math.PI/180*0),z1:0,x2:Math.sin(w*(Math.PI/180))*m,y2:Math.cos(w*(Math.PI/180))*m,z2:0});a.createLine(e),a.tlayer.addMesh(a.arrowitems),i.addMesh(a.meshitems),!1===a.layerP.directionObjVisible&&a.setDirectionVisible(!1)}))}this._translation=v,this._r=m,this._factor=h}return Object(i.a)(t,[{key:"dispose",value:function(){if(this.meshitems){this.tlayer.removeMesh(this.meshitems),this.meshitems.forEach((function(t){t.getProperties()&&t.getProperties()})),this.textures.length>0&&(this.textures.forEach((function(t){t.dispose()})),this.textures=[]),this.meshitems.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()}));for(var t=0;t<this.lineItems.length;t++)delete this.lineItems[t];this.lineItems=[];for(var e=0;e<this.psItems.length;e++)delete this.psItems[e];this.psItems=[]}this.arrowitems&&(this.tlayer.removeMesh(this.arrowitems),this.arrowitems.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()}))),this.textureLoader&&delete this.textureLoader,delete this._translation}},{key:"createLine",value:function(t){for(var e=[],n=0;n<this.lineItems.length;n++){(e=[]).push(this.lineItems[n].x1,this.lineItems[n].y1,this.lineItems[n].z1),e.push(this.lineItems[n].x2,this.lineItems[n].y2,this.lineItems[n].z2);var r=new tt;r.setPositions(e);var i=new st(t,{interactive:!1},r,this.matLine,this.tlayer);this.meshitems.push(i)}}},{key:"updateDirection",value:function(t,e){if(2===this.arrowitems.length){var n=this.arrowitems[0],r=this.arrowitems[1],i=this.createTexture("".concat(e||0,"级"),60,"#fff");r.object3d.material.map=i,this.textures.push(i),r.object3d.material.map.needsUpdate=!0;var o=this.getArrowPs(t,this._factor),a=o.rotation*(Math.PI/180),s=this.getPsVec(t,this._r,this._translation);n.object3d.position.set(s.x,s.y,0),this.psItems.push(s),this.psItems.push(o),n.object3d.position.set(s.x,s.y,0),n.object3d.rotation.z=a,r.object3d.position.set(s.x+o.offx,s.y+o.offy,0)}}},{key:"setDirectionVisible",value:function(t){this.meshitems&&(t?this.tlayer.addMesh(this.meshitems):this.tlayer.removeMesh(this.meshitems)),this.arrowitems&&(t?this.tlayer.addMesh(this.arrowitems):this.tlayer.removeMesh(this.arrowitems))}},{key:"createCircle",value:function(t,e){for(var n=[],r=0;r<=360;r++)n.push(Math.sin(r*(Math.PI/180))*t,Math.cos(r*(Math.PI/180))*t,0);var i=new tt;i.setPositions(n);var o=new st(e,{interactive:!1},i,this.matLine,this.tlayer);this.meshitems.push(o)}},{key:"createLabelNew",value:function(t,e,n,r,i){var o=new nt({interactive:!1,width:n,height:n},this.getTextMaterial(i.name,e,"#fff"),this.tlayer),a=this.getPsVec(i.degree,t,r);o.object3d.position.set(a.x+i.x_offset,a.y+i.y_offset,0),this.psItems.push(a),o.setProperties(i),this.meshitems.push(o)}},{key:"getPsVec",value:function(t,e,n){var r=t*(Math.PI/180),i=new c.Vector3(Math.sin(r)*e,Math.cos(r)*e,0);return i=i.applyMatrix4(n)}},{key:"getTextMaterial",value:function(t,e,n){var r=document.createElement("canvas");r.width=r.height=256;var i=r.getContext("2d");i.fillStyle=n,i.font="".concat(e,"px Aria"),i.textAlign="center",i.textBaseline="middle",i.fillText(t,128,128);var o=new c.Texture(r);return o.needsUpdate=!0,this.textures.push(o),new c.MeshPhongMaterial({map:o,transparent:!0,depthTest:!1})}},{key:"getArrowPs",value:function(t,e){var n=0,r=0,i=0;return t>180?(n=360-t+180,r=2*e,i=0):n=180-t,0==t?(r=0,i=-2*e):180==t?(i=0,i=2*e):t>0&&t<180&&(r=-2*e,i=0),{rotation:n,offx:r,offy:i}}},{key:"createTexture",value:function(t,e,n){var r=document.createElement("canvas");r.width=r.height=256;var i=r.getContext("2d");i.fillStyle=n,i.font="".concat(e,"px Aria"),i.textAlign="center",i.textBaseline="middle",i.fillText(t,128,128);var o=new c.Texture(r);return o.needsUpdate=!0,o}},{key:"getArrowTextMaterial",value:function(t){return new c.MeshPhongMaterial({map:t,transparent:!0,depthTest:!1})}}]),t}(),Et={altitude:0,height:0},Tt=function(t){Object(S.a)(n,t);var e=Object(A.a)(n);function n(t,i,o,a){var s;Object(r.a)(this,n),i=u.Util.extend({},Et,i,{layer:a}),(s=e.call(this))._initOptions(i);var l=i.altitude;console.log(l),s._createGroup();var h=new c.Sprite(o);h.material.sizeAttenuation=!1;var f=.005/3;h.scale.set(36*f,36*f,1),console.log(36*f/2*200),s.getObject3d().add(h);var d=a.distanceToVector3(l,l).x,p=a.coordinateToVector3(t,d);return s.getObject3d().position.copy(p),s}return n}(C.a),It=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.map=i.map,this.threeLayer=i,this.lineStrings=[],this.meshs=[],this.properties=[],this.lineMaterial=new c.LineBasicMaterial({color:n.lineColor||"rgb(0,160,233)"}),this.rfields=null,this.fields=[],this.isToolTip=n.isToolTip,this.isExtrusion=n.isExtrusion,this.oriColor={},this.selectColor=n.selectColor?new c.Color(n.selectColor):null,this.geojson=e,this.iconPath=n.iconPath,this.iconCidName=n.iconCidValue,this.codeFild=void 0!==n.codeField?n.codeField:"name",this.fontConfig=n.fontConfig,n.text&&(this.txtLabel=new u.VectorLayer(u.Util.GUID(),{hitDetect:!1,enableAltitude:!0,zIndex:1001}).addTo(i.map),this.rfields=n.text.match(/\{(.+?)\}/g),this.rfields.forEach((function(t){o.fields.push(t.substring(1,t.length-1))})),this.geoItems=[]),this.textureLoader=new c.TextureLoader,e.forEach((function(t){var e=t.geometry,r=u.GeoJSON.toGeometry(t),a=t.properties;o.oriColor[a[o.codeFild]]||(o.oriColor[a[o.codeFild]]=new c.Color(a.color));var s=new c.MeshPhongMaterial({transparent:!0,opacity:void 0!==a.opacity?a.opacity:1,color:o.oriColor[a[o.codeFild]]}),l=.1;o.isExtrusion&&(l=a.height?200*a.height:.1);var h=i.toExtrudePolygon(r,{height:l,interactive:void 0===n.interactive||n.interactive},s);h.setProperties(t.properties),h.object3d.renderOrder=n.renderOrder||0,o.isToolTip&&h.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),o.meshs.push(h),n.isAddLine&&e.coordinates.forEach((function(e){var n=new u.LineString(e[0]),r=i.toLine(n,{altitude:.1===l?1:l,interactive:!1},o.lineMaterial);r.setProperties(t.properties),o.meshs.push(r),o.lineStrings.push(n)}));var f=r.getCenter();if(o.iconPath&&o.iconCidName&&o.iconCidName===a[o.codeFild]){var d=new u.Marker(f,{properties:{altitude:.1===l?1:l,code:a[o.codeFild]},symbol:{markerFile:o.iconPath,markerWidth:64,markerHeight:64,markerDx:0,markerDy:0,markerOpacity:1}});o.geoItems.push(d),o.txtLabel.addGeometry(d)}n.text&&o.createMark(f,l,a)})),this.clickFunc=n.clickFunc,i.addMesh(this.meshs),this._bindEvent()}return Object(i.a)(t,[{key:"createMark",value:function(t,e,n){var r=null;1===this.fields.length?r=new u.Marker(t,{properties:{name:n[this.fields[0]],altitude:.1===e?1:e,code:n[this.codeFild]},symbol:[{textFaceName:"sans-serif",textName:"{name}",textWeight:"normal",textStyle:"normal",textSize:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontSize?this.fontConfig[0].fontSize:12,textFont:null,textFill:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontColor?this.fontConfig[0].fontColor:"#fff",textOpacity:1,textWrapWidth:null,textWrapCharacter:"\n",textLineSpacing:0,textDx:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dx?this.fontConfig[0].dx:20,textDy:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dy?this.fontConfig[0].dy:0,textHorizontalAlignment:"top",textVerticalAlignment:"middle",textAlign:"center"}]}):2===this.fields.length&&(r=new u.Marker(t,{properties:{name:n[this.fields[0]],index:n[this.fields[1]],altitude:.1===e?1:e,code:n[this.codeFild]},symbol:[{textFaceName:"sans-serif",textName:"{name}",textWeight:"normal",textStyle:"normal",textSize:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontSize?this.fontConfig[0].fontSize:12,textFont:null,textFill:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].fontColor?this.fontConfig[0].fontColor:"#fff",textOpacity:1,textWrapWidth:null,textWrapCharacter:"\n",textLineSpacing:0,textDx:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dx?this.fontConfig[0].dx:20,textDy:this.fontConfig&&this.fontConfig[0]&&this.fontConfig[0].dy?this.fontConfig[0].dy:0,textHorizontalAlignment:"top",textVerticalAlignment:"middle",textAlign:"center"},{textFaceName:"sans-serif",textName:"{index}",textWeight:"bold",textStyle:"normal",textSize:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].fontSize?this.fontConfig[1].fontSize:20,textFont:null,textFill:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].fontColor?this.fontConfig[1].fontColor:"#fff",textOpacity:1,textWrapWidth:null,textWrapCharacter:"\n",textLineSpacing:0,textDx:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].dx?this.fontConfig[1].dx:20,textDy:this.fontConfig&&this.fontConfig[1]&&this.fontConfig[1].dy?this.fontConfig[1].dy:-20,textHorizontalAlignment:"top",textVerticalAlignment:"middle",textAlign:"center"}]})),r&&(this.geoItems.push(r),this.txtLabel.addGeometry(r))}},{key:"addIcon",value:function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e,n){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,B.a.addImageProcessImage(this.iconPath);case 2:r=t.sent,i=B.a.generateTextureOne(r,128,128),this.iconMaterial=new c.SpriteMaterial({map:i}),(o=new Tt(e,{altitude:n+=2400},this.iconMaterial,this.threeLayer)).zoomChange=function(){o.getMap()},this.threeLayer.addMesh(o);case 8:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"_bindEvent",value:function(){var t=this;this.meshs.forEach((function(e){"ExtrudePolygon"===e.type&&e.on("click mousemove mouseout",t._setEvent,t)}))}},{key:"_closeEvent",value:function(){var t=this;this.meshs.forEach((function(e){"ExtrudePolygon"===e.type&&e.off("click mousemove mouseout",t._setEvent,t)}))}},{key:"_setEvent",value:function(t){var e=t.target.getProperties();"mousemove"===t.type&&t.target&&(this.isToolTip&&(t.target.getToolTip()._content="".concat(e.name)),this.selectColor&&(t.target.object3d.material.color=this.selectColor,t.target.object3d.material.color.needsUpdate=!0)),"mouseout"===t.type&&t.target&&this.selectColor&&(t.target.object3d.material.color=this.oriColor[e.name],t.target.object3d.material.color.needsUpdate=!0),"click"===t.type&&t.target&&this.clickFunc&&this.clickFunc(e)}},{key:"dispose",value:function(){for(var t in this.threeLayer.removeMesh(this.meshs),this._closeEvent(),this.meshs.forEach((function(t){"ExtrudePolygon"===t.type&&t.removeToolTip(),t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()})),this.lineMaterial&&this.lineMaterial.dispose(),this.selectColor&&delete this.selectColor,this.oriColor)delete this.oriColor[t];if(this.txtLabel&&this.map.removeLayer(this.txtLabel),this.geoItems)for(var e=0;e<this.geoItems.length;e++)delete this.geoItems[e];if(this.geoItems=[],this.geojson)for(var n=0;n<this.geojson.length;n++)delete this.geojson[n]}},{key:"findMesh",value:function(t){for(var e=0;e<this.meshs.length;e++)if("ExtrudePolygon"===this.meshs[e].type&&this.meshs[e].getProperties()[this.codeFild]===t)return this.meshs[e]}},{key:"setOpacity",value:function(t,e){for(var n=0;n<this.meshs.length;n++)"ExtrudePolygon"===this.meshs[n].type&&this.meshs[n].getProperties()[this.codeFild]===t&&(this.meshs[n].object3d.material.opacity=e)}},{key:"update",value:function(t){var e=this;this.geojson.forEach((function(n){for(var r=u.GeoJSON.toGeometry(n),i=n.properties,o=function(n){if(t[n][e.codeFild]===i[e.codeFild]){e.oriColor[i[e.codeFild]]&&(delete e.oriColor[i[e.codeFild]],e.oriColor[i[e.codeFild]]=new c.Color(t[n].color));var o=new c.MeshBasicMaterial({transparent:!0,opacity:i.opacity||1,color:e.oriColor[i[e.codeFild]]}),a=.1;e.isExtrusion&&(a=t[n].height?200*t[n].height:.1);for(var s=e.threeLayer.toExtrudePolygon(r,{height:a},o),u=e.findMesh(t[n][e.codeFild]),l=s.object3d.geometry.attributes.position.array,h=u.object3d.geometry.attributes.position.array,f=0;f<h.length;f++)h[f]=l[f];u.object3d.geometry.attributes.position.needsUpdate=!0,u.object3d.material.color=e.oriColor[i[e.codeFild]],u.object3d.material.color.needsUpdate=!0;var d=e.threeLayer.distanceToVector3(a,a).x;e.meshs.forEach((function(r){"Line"===r.type&&r.getProperties()[e.codeFild]===t[n][e.codeFild]&&(r.object3d.position.z=d)})),s.object3d.geometry&&s.object3d.geometry.dispose(),s.object3d.material&&s.object3d.material.dispose();for(var p=0;p<e.geoItems.length;p++)e.geoItems[p].getProperties().code===t[n][e.codeFild]&&(e.geoItems[p].getProperties().index&&(e.geoItems[p].getProperties().index=t[n].rank),e.geoItems[p].getProperties().altitude=a,e.geoItems[p].updateSymbol({index:"{index}"}));return"break"}},a=0;a<t.length&&"break"!==o(a);a++);}))}}]),t}();function Lt(){var t="xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}));return"iep".concat(t,"layer")}n("a4d3"),n("e01a"),n("d28b"),n("06c5"),n("3835"),n("4fad"),n("1bf2"),n("f8c9"),n("e439"),n("60ed");var Pt=function(){function t(e,n){var i=this;Object(r.a)(this,t),this.map=n,this.animationId=null,this.func=[];var o=Lt();this.threeLayer=new C.c(o,{forceRenderOnMoving:!0,forceRenderOnRotating:!0,identifyCountOnEvent:1});var a=function t(){var e,n;i.threeLayer._needsUpdate=!i.threeLayer._needsUpdate,i.threeLayer._needsUpdate&&(null===(e=i.threeLayer)||void 0===e||null===(n=e.getRenderer())||void 0===n||n.clearCanvas(),i.threeLayer.renderScene()),i.func.forEach((function(t){return t()})),J.c(),i.animationId=requestAnimationFrame(t)};this.threeLayer.prepareToDraw=function(t,e,n){var r=new c.DirectionalLight(16777215);r.position.set(0,-10,10).normalize(),e.add(r),a()},this.threeLayer.addTo(n),n.getLayer(o).setZIndex(1e3),this.layerId=o,this.layerName=e,this.dirty=!1,this.polygonObjs=[],this.polylineObjs=[],this.circleObj=null,this.directionObj=null,this.directionObjVisible=!0,this.trips=[],this.ringObj=null,this.shockObj=null,this.initFlag=!1}return Object(i.a)(t,[{key:"getLayerId",value:function(){return this.layerId}},{key:"changeLayerId",value:function(){if(this.threeLayer){var t=Lt();this.threeLayer.setId(t),this.layerId=t}}},{key:"setVisible",value:function(t,e){this.threeLayer&&(!0===t?(this.threeLayer.show(),e&&e()):(this.threeLayer.hide(),e&&e()))}},{key:"prepareToDraw",value:function(){var t=this,e=function e(){var n,r;t.threeLayer._needsUpdate=!t.threeLayer._needsUpdate,t.threeLayer._needsUpdate&&(null===(n=t.threeLayer)||void 0===n||null===(r=n.getRenderer())||void 0===r||r.clearCanvas(),t.threeLayer.renderScene()),t.func.forEach((function(t){return t()})),J.c(),t.animationId=requestAnimationFrame(e)};return new Promise((function(n){t.threeLayer.prepareToDraw=function(t,r,i){var o=new c.DirectionalLight(16777215);o.position.set(0,-10,10).normalize(),r.add(o),e(),n()}}))}},{key:"removeIepLayer",value:function(){this.threeLayer&&this.threeLayer.getMeshes().forEach((function(t){var e;"Points"!==t.type&&"Image"!==t.type||null===(e=t.parent)||void 0===e||e.dispose()})),this.directionObj&&(this.directionObj.dispose(),delete this.directionObj),this.trips.length>0&&(this.func=[],this.trips.forEach((function(t){t.dispose()})),this.trips=[]),this.circleObj&&(this.circleObj.dispose(),delete this.circleObj),this.ringObj&&(this.ringObj.dispose(),delete this.ringObj),this.clearShock(),this.clearPolygon(),this.clearPolyline()}},{key:"getPointObjByName",value:function(t,e){this.threeLayer&&this.threeLayer.getMeshes().forEach((function(n){"Points"===n.type&&n.parent.name===t&&e(n.parent)}))}},{key:"updateDirection",value:function(t,e){this.directionObj&&this.directionObj.updateDirection(t,e)}},{key:"clearDirection",value:function(){this.directionObj&&(this.directionObj.dispose(),delete this.directionObj)}},{key:"setDirectionVisible",value:function(t){this.directionObjVisible=t,this.directionObj&&this.directionObj.setDirectionVisible(t)}},{key:"drawDirection",value:function(t,e,n){var r=this,i=n||{};this.threeLayer.getScene()?(this.directionObj&&(this.directionObj.dispose(),delete this.directionObj),setTimeout((function(){r.directionObj=new Ct([t,e],i,r.threeLayer,r)}),500)):(this.initFlag=!0,this.prepareToDraw().then((function(){r.directionObj||(r.directionObj=new Ct([t,e],i,r.threeLayer,r))})))}},{key:"clearCircle",value:function(){this.circleObj&&(this.circleObj.dispose(),delete this.circleObj)}},{key:"drawCircle",value:function(t,e,n,r){var i=this,o=r||{};this.threeLayer.getScene()?this.circleObj?this.circleObj.update(t,e,n,o):this.circleObj=new Z(t,e,n,o,this.threeLayer):(this.initFlag=!0,this.prepareToDraw().then((function(){i.circleObj?i.circleObj.update(t,e,n,o):i.circleObj=new Z(t,e,n,o,i.threeLayer)})))}},{key:"drawImage",value:function(t,e,n,r,i){var o=this;if(this.threeLayer.getScene()){var a=new I(t,e,n,r,this.threeLayer);i(a)}else this.initFlag=!0,this.prepareToDraw().then((function(){var a=new I(t,e,n,r,o.threeLayer);i(a)}))}},{key:"drawPoint",value:function(t,e,n){var r=this;if(this.threeLayer.getScene()){var i=null;t.length>0?(i=new M.a(t,e,this.threeLayer)).addPoint().then((function(){!1===r.threeLayer.options.visible&&i.hide(),n(i)})):n(i)}else this.initFlag=!0,this.prepareToDraw().then((function(){var i=null;t.length>0?(i=new M.a(t,e,r.threeLayer)).addPoint().then((function(){!1===r.threeLayer.options.visible&&i.hide(),n(i)})):n(i)}))}},{key:"updatePolygonOpacity",value:function(t,e){this.polygonObjs.forEach((function(n){n.setOpacity(t,e)}))}},{key:"clearTrip",value:function(){this.func=[],this.trips.forEach((function(t){t.dispose()})),this.trips=[]}},{key:"drawTrip",value:function(t,e){var n=this,r=e||{};if(this.threeLayer.getScene()){var i=new At(t,r,this.threeLayer);this.trips.push(i),this.func.push((function(){i.naimationFunc()}))}else this.initFlag=!0,this.prepareToDraw().then((function(){var e=new At(t,r,n.threeLayer);n.trips.push(e),n.func.push((function(){e.naimationFunc()}))}))}},{key:"updatePolygon",value:function(t){console.log(t),this.polygonObjs.forEach((function(e){e.update(t)}))}},{key:"clearPolygon",value:function(){for(var t=0;t<this.polygonObjs.length;t++)this.polygonObjs[t].dispose(),delete this.polygonObjs[t];this.polygonObjs=[]}},{key:"drawPolygon",value:function(t,e){var n=this,r=e||{};if(this.threeLayer.getScene()){var i=new It(t,r,this.threeLayer);this.polygonObjs.push(i)}else this.initFlag=!0,this.prepareToDraw().then((function(){var e=new It(t,r,n.threeLayer);n.polygonObjs.push(e)}))}},{key:"clearPolyline",value:function(){for(var t=0;t<this.polylineObjs.length;t++)this.polylineObjs[t].dispose(),delete this.polylineObjs[t];this.polylineObjs=[]}},{key:"drawPolyline",value:function(t,e){var n=this,r=e||{};if(this.threeLayer.getScene()){var i=new Rt(t,r,this.threeLayer);this.polylineObjs.push(i)}else this.initFlag=!0,this.prepareToDraw().then((function(){var e=new Rt(t,r,n.threeLayer);n.polylineObjs.push(e)}))}},{key:"clearRing",value:function(){this.ringObj&&(this.ringObj.dispose(),delete this.ringObj)}},{key:"clearRingInfo",value:function(){this.ringObj&&this.ringObj.clearInfo()}},{key:"updateRing",value:function(t,e,n){this.ringObj&&this.ringObj.updateRing(t,e,n)}},{key:"drawRing",value:function(t,e,n,r){var i=this,o=r||{};this.threeLayer.getScene()?(this.ringObj&&(this.ringObj.dispose(),delete this.ringObj),setTimeout((function(){i.ringObj=new ft([t,e],n,o,i.threeLayer)}),500)):(this.initFlag=!0,this.prepareToDraw().then((function(){i.ringObj||(i.ringObj=new ft([t,e],n,o,i.threeLayer))})))}},{key:"drawShock",value:function(t,e){var n=this;this.threeLayer.getScene()?this.shockObj&&(this.shockObj.dispose(),this.shockObj=null,setTimeout((function(){n.shockObj=new q(t,e||{},n.threeLayer)}),500)):(this.initFlag=!0,this.prepareToDraw().then((function(){n.shockObj=new q(t,e||{},n.threeLayer)})))}},{key:"clearShock",value:function(){this.shockObj&&(J.b(),this.shockObj.dispose(),this.shockObj=null)}}]),t}(),Rt=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.map=i.map,this.threeLayer=i,this.meshs=[],this.lineMaterial=new K({color:n.lineColor||"red",transparent:!0,linewidth:n.linewidth||4,blending:c.AdditiveBlending}),e.forEach((function(t){var e=u.GeoJSON.toGeometry(t),r=i.toFatLine(e,{interactive:void 0!==n.interactive&&n.interactive},o.lineMaterial);r.object3d.renderOrder=n.renderOrder||0,o.meshs.push(r)})),i.addMesh(this.meshs)}return Object(i.a)(t,[{key:"dispose",value:function(){this.threeLayer.removeMesh(this.meshs),this.meshs.forEach((function(t){t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose()})),this.lineMaterial&&this.lineMaterial.dispose()}}]),t}(),Ot=function(){function t(e){Object(r.a)(this,t),this.map=e,this.windObj=null,this.drawTool=null,this.distanceTool=null,this.trafficLayer=null,this.threeLayers=[]}return Object(i.a)(t,[{key:"isLayerExist",value:function(t){if(0===this.threeLayers.length)return!1;if(void 0===t)return!1;for(var e=0;e<this.threeLayers.length;e++)if(this.threeLayers[e].layerId===t)return!0;return!1}},{key:"getLayer",value:function(t){if(0===this.threeLayers.length){var e=new Pt(t,this.map);return this.threeLayers.push(e),e.layerId}if(void 0===t){for(var n=0;n<this.threeLayers.length;n++)if(!1===this.threeLayers[n].dirty)return this.threeLayers[n].layerId}else for(var r=0;r<this.threeLayers.length;r++)if(this.threeLayers[r].layerName===t)return this.threeLayers[r].layerId;if(!(this.threeLayers.length>=2)){var i=new Pt(t,this.map);return this.threeLayers.push(i),i.layerId}}},{key:"removeAllLayer",value:function(){this.windObj&&(this.windObj.closeWind(),delete this.windObj),this.drawTool&&(this.drawTool.dispose(),delete this.drawTool),this.distanceTool&&(this.distanceTool.dispose(),delete this.distanceTool),this.trafficLayer&&(this.trafficLayer.setMap(null),delete this.trafficLayer);for(var t=0;t<this.threeLayers.length;t++)this.threeLayers[t].removeIepLayer()}},{key:"clearPolygon",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearPolygon()}}},{key:"findLayerById",value:function(t){for(var e=0;e<this.threeLayers.length;e++)if(this.threeLayers[e].layerId==t)return this.threeLayers[e]}},{key:"findLayerByName",value:function(t){for(var e=0;e<this.threeLayers.length;e++)if(this.threeLayers[e].layerName==t)return this.threeLayers[e]}},{key:"setLayerVisible",value:function(t,e,n){if(void 0!==t){var r=this.findLayerByName(t);void 0!==r&&r.setVisible(e,n)}}},{key:"clearLayerById",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&(e.changeLayerId(),e.removeIepLayer())}}},{key:"setLayerDirty",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&(e.dirty=!0)}}},{key:"drawPolygon",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&(!0===r.initFlag&&void 0===r.threeLayer.getScene()?setTimeout((function(){r.drawPolygon(t,e)}),200):r.drawPolygon(t,e))}}},{key:"updatePolygon",value:function(t,e){if(void 0!==e){var n=this.findLayerById(e);void 0!==n&&n.updatePolygon(t)}}},{key:"updatePolygonOpacity",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&r.updatePolygonOpacity(t,e)}}},{key:"clearPolyline",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearPolyline()}}},{key:"drawPolyline",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&(!0===r.initFlag&&void 0===r.threeLayer.getScene()?setTimeout((function(){r.drawPolyline(t,e)}),200):r.drawPolyline(t,e))}}},{key:"clearTrip",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearTrip()}}},{key:"drawTrip",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&r.drawTrip(t,e)}}},{key:"updateRing",value:function(t,e,n,r){if(void 0!==r){var i=this.findLayerById(r);void 0!==i&&i.updateRing(t,e,n)}}},{key:"clearRing",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearRing()}}},{key:"clearRingInfo",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearRingInfo()}}},{key:"drawRing",value:function(t,e,n,r,i){if(void 0!==i){var o=this.findLayerById(i);void 0!==o&&o.drawRing(t,e,n,r)}}},{key:"updateDirection",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&r.updateDirection(t,e)}}},{key:"clearDirection",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearDirection()}}},{key:"setDirectionVisible",value:function(t,e){if(void 0!==e){var n=this.findLayerById(e);void 0!==n&&n.setDirectionVisible(t)}}},{key:"drawDirection",value:function(t,e,n,r){if(void 0!==r){var i=this.findLayerById(r);void 0!==i&&(!0===i.initFlag&&void 0===i.threeLayer.getScene()?setTimeout((function(){i.drawDirection(t,e,n)}),200):i.drawDirection(t,e,n))}}},{key:"clearCircle",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearCircle()}}},{key:"drawCircle",value:function(t,e,n,r,i){if(void 0!==i){var o=this.findLayerById(i);void 0!==o&&o.drawCircle(t,e,n,r)}}},{key:"Traffic",value:function(t){var e=this.map.getBaseLayer();if(e){var n=e.getAMap();n&&(this.trafficLayer||(this.trafficLayer=new AMap.TileLayer.Traffic({zIndex:10})),!0===t?this.trafficLayer.setMap(n):this.trafficLayer.setMap(null))}}},{key:"distance",value:function(t){var e=this;return new Promise((function(n){var r=null;if(t){var i=e.findLayerByName(t);i&&(r=i.threeLayer)}e.distanceTool?(e.distanceTool.enable(),n(e.distanceTool)):(e.distanceTool=new F({},r,e.map),n(e.distanceTool))}))}},{key:"drawGeometry",value:function(t,e,n,r,i){var o=this;return new Promise((function(a){var s=null;if(n){var c=o.findLayerByName(n);c&&(s=c.threeLayer)}"Polygon"!==t&&"Circle"!==t&&a(null),o.drawTool?(o.drawTool.setMode(t,e),a(o.drawTool)):(o.drawTool=new D(t,e,r,i||{},s,o.map),a(o.drawTool))}))}},{key:"drawWeatherData",value:function(t,e){var n=this;return new Promise((function(r){var i=null;r(t?i=new k(t,e||{},n.map):i),n.windObj=i}))}},{key:"drawImage",value:function(t,e,n,r,i){var o=this;return new Promise((function(a){void 0===i&&a(null);var s=o.findLayerById(i);void 0===s&&a(null),!0===s.initFlag&&void 0===s.threeLayer.getScene()?setTimeout((function(){s.drawImage(t,e,n,r,a)}),200):s.drawImage(t,e,n,r,a)}))}},{key:"getPointObjByName",value:function(t,e){var n=this;return new Promise((function(r){void 0===t&&r(null);var i=n.findLayerByName(t);void 0===i&&r(null),i.getPointObjByName(e,r)}))}},{key:"drawShock",value:function(t,e,n){if(void 0!==n){var r=this.findLayerById(n);void 0!==r&&(!0===r.initFlag&&void 0===r.threeLayer.getScene()?setTimeout((function(){r.drawShock(t,e)}),200):r.drawShock(t,e))}}},{key:"clearShock",value:function(t){if(void 0!==t){var e=this.findLayerById(t);void 0!==e&&e.clearShock()}}},{key:"drawPoint",value:function(t,e,n){var r=this;return new Promise((function(i){void 0===n&&i(null);var o=r.findLayerById(n);void 0===o&&i(null),!0===o.initFlag&&void 0===o.threeLayer.getScene()?setTimeout((function(){o.drawPoint(t,e,i)}),200):o.drawPoint(t,e,i)}))}},{key:"changeAMapStyle",value:function(t){var e;null===(e=this.map.getBaseLayer().getAMap())||void 0===e||e.setMapStyle(t)}},{key:"saveIndexedDb",value:function(){return new Promise((function(t,e){var n=window.indexedDB.open("iep_db");n.onsuccess=function(e){var n=e.target.result;t(n)},n.onerror=function(t){e(t)},n.onupgradeneeded=function(t){var e=t.target.result;if(!e.objectStoreNames.contains("svg_dict")){var n=e.createObjectStore("svg_dict",{keyPath:"code"});n.createIndex("code","code",{unique:!0}),n.createIndex("file","file",{unique:!1})}}}))}},{key:"getType",value:function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}},{key:"getDbRecord",value:function(t){var e=this,n="string"===this.getType(t)?[t]:t;return new Promise((function(t){e.saveIndexedDb().then((function(e){var r=e.transaction("svg_dict","readwrite").objectStore("svg_dict");Promise.all(n.map((function(t){return new Promise((function(e){var n=r.get(t);n.onsuccess=function(t){e(t.target.result)},n.onerror=function(t){e()}}))}))).then((function(e){t(e)}))}))}))}}]),t}(),kt=function(t){return new Ot(t)};
|
|
113
113
|
/*!
|
|
114
114
|
* maptalks.amap v0.10.1
|
|
115
115
|
* LICENSE : MIT
|