(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["rail"],{"011d":function(t,e,n){e=t.exports=n("2350")(!0),e.push([t.i,".station-types[data-v-7371422c]{width:100%;background:rgba(233,242,235,.768627451);position:fixed;top:0;z-index:999}.station-types .content[data-v-7371422c]{border-bottom:1px solid #bdcfde;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:15px 15px 0;height:65px}.station-types .content .top[data-v-7371422c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:16px 0 19px 0}.station-types .content .top .title[data-v-7371422c]{font-size:16px;font-weight:500;color:#0e71ff}.station-types .content .type-icon[data-v-7371422c]{width:16px;height:16px}.station-types .content[data-v-7371422c] .el-radio,.station-types .content[data-v-7371422c] .el-radio .el-radio__label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.station-types .content[data-v-7371422c] .el-radio .el-radio__label{padding-left:8px;font-size:16px;color:#666}.station-types .content .areaContent[data-v-7371422c],.station-types .content .areaContent-block[data-v-7371422c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.station-types .content .areaContent-block[data-v-7371422c]{width:128px;height:32px;line-height:32px;border-radius:6px;opacity:1;border:1px solid #b2a7a7;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px;background-color:#f0f8ff;cursor:pointer}.station-types .content .areaContent-block[data-v-7371422c]:nth-child(3){margin-right:0}.station-types .content .areaContent-block-img[data-v-7371422c]{width:24px;height:24px}.station-types .content .areaContent-block-img img[data-v-7371422c]{width:100%;height:100%;vertical-align:baseline}.station-types .content .areaContent-block-text[data-v-7371422c]{margin-left:8px;color:#333;font-size:14px}.station-types .content .areaContent-block-active[data-v-7371422c],.station-types .content .areaContent-block[data-v-7371422c]:hover{background:rgba(14,113,255,.1);border:1px solid #0e71ff}.station-types .content .peopleContent[data-v-7371422c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.station-types .content .peopleContent-block[data-v-7371422c]{width:128px;height:32px;line-height:32px}.station-types .content .peopleNum[data-v-7371422c]{width:50px;font-size:14px;color:#0e70ff;text-decoration:underline;cursor:pointer}.station-types .content .btnContent[data-v-7371422c],.station-types .content .btnContent-block[data-v-7371422c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.station-types .content .btnContent-block[data-v-7371422c]{width:128px;height:32px;line-height:32px;border-radius:6px;opacity:1;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px;cursor:pointer;color:#333;font-size:14px}.station-types .content .btnContent-block[data-v-7371422c]:nth-child(3){margin-right:0}.station-types .content .btnContent .success[data-v-7371422c]{color:#00b40c;border:1px solid #00b40c}.station-types .content .btnContent .success[data-v-7371422c]:hover{color:#fff;background:#00b40c}.station-types .content .btnContent .primary[data-v-7371422c]{color:#1677ff;border:1px solid #1677ff}.station-types .content .btnContent .primary[data-v-7371422c]:hover{color:#fff;background:#1677ff}.station-types .content .btnContent .danger[data-v-7371422c]{background:#ff4d4f;color:#fff;border:1px solid #ff4d4f}.station-types .content .btn-row[data-v-7371422c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.station-types .content .btn-row-btn[data-v-7371422c]{width:38px;height:38px;line-height:38px;text-align:center;border-radius:4px;border:1px solid #d9d9d9}.station-types .content .btn-row-btnAc[data-v-7371422c]{background:rgba(22,119,255,.1);border-radius:4px;border:1px solid #1677ff}.station-types .content .btn-row-btnSelf[data-v-7371422c]{width:70px;height:38px}.station-types .content .btn-row-btnSelf[data-v-7371422c] .el-input{width:70px;height:38px;line-height:38px;font-weight:500;color:#666;font-size:14px}.station-types .content .btn-row-btnSelf[data-v-7371422c] .el-input__inner{border:0}.station-types .footer[data-v-7371422c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:20px;margin-bottom:20px}.station-types .footer-left .del[data-v-7371422c]{color:#ff4d4f;background-color:#fff;border-color:#ff4d4f}.station-types .footer-left .del[data-v-7371422c]:hover{color:#fff}.station-types .footer-left .del[data-v-7371422c]:focus,.station-types .footer-left .del[data-v-7371422c]:hover{background-color:#ff4d4f;border-color:#ff4d4f}","",{version:3,sources:["/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/electronicFenceEdit.vue"],names:[],mappings:"AACA,gCACE,WACA,wCACA,eACA,MACA,WAAA,CACA,yCACE,gCACA,oBAAA,oBAAA,aACA,yBAAA,sBAAA,8BACA,oBACA,WAAA,CACA,8CACE,oBAAA,oBAAA,aACA,0BAAA,uBAAA,oBACA,uBAAA,oBAAA,2BACA,oBAAA,CACA,qDACE,eACA,gBACA,aAAA,CAIJ,oDACE,WACA,WAAA,CAOA,uHAHA,oBAAA,oBAAA,aACA,yBAAA,sBAAA,kBAOE,CALF,oEAGE,iBACA,eACA,UAAA,CAQF,kHAHA,oBAAA,oBAAA,aACA,yBAAA,sBAAA,kBAcE,CAZF,4DACE,YACA,YACA,iBACA,kBACA,UACA,yBAGA,wBAAA,qBAAA,uBACA,kBACA,yBACA,cAAA,CAEA,yEACE,cAAA,CAGF,gEACE,WACA,WAAA,CAEA,oEACE,WACA,YACA,uBAAA,CAIJ,iEACE,gBACA,WACA,cAAA,CAQJ,qIACE,+BACA,wBAAA,CAIJ,wDACE,oBAAA,oBAAA,aACA,yBAAA,sBAAA,kBAAA,CAEA,8DACE,YACA,YACA,gBAAA,CAIJ,oDACE,WACA,eACA,cACA,0BACA,cAAA,CAOA,gHAHA,oBAAA,oBAAA,aACA,yBAAA,sBAAA,kBAeE,CAbF,2DACE,YACA,YACA,iBACA,kBACA,UAIA,wBAAA,qBAAA,uBACA,kBACA,eACA,WACA,cAAA,CAEA,wEACE,cAAA,CAIJ,8DACE,cACA,wBAAA,CAEA,oEACE,WACA,kBAAA,CAIJ,8DACE,cACA,wBAAA,CAEA,oEACE,WACA,kBAAA,CAIJ,6DACE,mBACA,WACA,wBAAA,CAIJ,kDACE,oBAAA,oBAAA,aACA,yBAAA,sBAAA,kBAAA,CAEA,sDACE,WACA,YACA,iBACA,kBACA,kBACA,wBAAA,CAGF,wDACE,+BACA,kBACA,wBAAA,CAGF,0DACE,WACA,WAAA,CAEA,oEACE,WACA,YACA,iBACA,gBACA,WACA,cAAA,CAGF,2EACE,QAAA,CAMR,wCACE,oBAAA,oBAAA,aACA,yBAAA,sBAAA,mBACA,yBAAA,sBAAA,8BACA,gBACA,kBAAA,CAGE,kDACE,cACA,sBACA,oBAAA,CAEA,wDACE,UAEA,CAGF,gHAJE,yBACA,oBAKA,CAAA",file:"electronicFenceEdit.vue?vue&type=style&index=0&id=7371422c&prod&lang=scss&scoped=true&",sourcesContent:["\n.station-types {\n width: 100%;\n background: #e9f2ebc4;\n position: fixed;\n top: 0;\n z-index: 999;\n .content {\n border-bottom: 1px solid #bdcfde;\n display: flex;\n justify-content: space-between;\n padding: 15px 15px 0;\n height: 65px;\n .top {\n display: flex;\n align-items: stretch;\n justify-content: flex-start;\n margin: 16px 0 19px 0;\n .title {\n font-size: 16px;\n font-weight: 500;\n color: #0e71ff;\n }\n }\n\n .type-icon {\n width: 16px;\n height: 16px;\n }\n\n ::v-deep .el-radio {\n display: flex;\n align-items: center;\n\n .el-radio__label {\n display: flex;\n align-items: center;\n padding-left: 8px;\n font-size: 16px;\n color: #666666;\n }\n }\n\n .areaContent {\n display: flex;\n align-items: center;\n\n &-block {\n width: 128px;\n height: 32px;\n line-height: 32px;\n border-radius: 6px;\n opacity: 1;\n border: 1px solid #b2a7a7;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n background-color: aliceblue;\n cursor: pointer;\n\n &:nth-child(3) {\n margin-right: 0;\n }\n\n &-img {\n width: 24px;\n height: 24px;\n\n img {\n width: 100%;\n height: 100%;\n vertical-align: baseline;\n }\n }\n\n &-text {\n margin-left: 8px;\n color: #333333;\n font-size: 14px;\n }\n\n &-active {\n background: rgba(14, 113, 255, 0.1);\n border: 1px solid #0e71ff;\n }\n }\n &-block:hover {\n background: rgba(14, 113, 255, 0.1);\n border: 1px solid #0e71ff;\n }\n }\n\n .peopleContent {\n display: flex;\n align-items: center;\n\n &-block {\n width: 128px;\n height: 32px;\n line-height: 32px;\n }\n }\n\n .peopleNum {\n width: 50px;\n font-size: 14px;\n color: #0e70ff;\n text-decoration: underline;\n cursor: pointer;\n }\n\n .btnContent {\n display: flex;\n align-items: center;\n\n &-block {\n width: 128px;\n height: 32px;\n line-height: 32px;\n border-radius: 6px;\n opacity: 1;\n\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n cursor: pointer;\n color: #333333;\n font-size: 14px;\n\n &:nth-child(3) {\n margin-right: 0;\n }\n }\n\n .success {\n color: #00b40c;\n border: 1px solid #00b40c;\n\n &:hover {\n color: #ffffff;\n background: #00b40c;\n }\n }\n\n .primary {\n color: #1677ff;\n border: 1px solid #1677ff;\n\n &:hover {\n color: #ffffff;\n background: #1677ff;\n }\n }\n\n .danger {\n background: #ff4d4f;\n color: #ffffff;\n border: 1px solid #ff4d4f;\n }\n }\n\n .btn-row {\n display: flex;\n align-items: center;\n\n &-btn {\n width: 38px;\n height: 38px;\n line-height: 38px;\n text-align: center;\n border-radius: 4px;\n border: 1px solid #d9d9d9;\n }\n\n &-btnAc {\n background: rgba(22, 119, 255, 0.1);\n border-radius: 4px;\n border: 1px solid #1677ff;\n }\n\n &-btnSelf {\n width: 70px;\n height: 38px;\n\n ::v-deep .el-input {\n width: 70px;\n height: 38px;\n line-height: 38px;\n font-weight: 500;\n color: #666666;\n font-size: 14px;\n }\n\n ::v-deep .el-input__inner {\n border: 0;\n }\n }\n }\n }\n\n .footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 20px;\n margin-bottom: 20px;\n\n &-left {\n .del {\n color: rgba(255, 77, 79, 1);\n background-color: #ffffff;\n border-color: rgba(255, 77, 79, 1);\n\n &:hover {\n color: #ffffff;\n background-color: rgba(255, 77, 79, 1);\n border-color: rgba(255, 77, 79, 1);\n }\n\n &:focus {\n background-color: rgba(255, 77, 79, 1);\n border-color: rgba(255, 77, 79, 1);\n }\n }\n }\n }\n}\n"],sourceRoot:""}])},"071b":function(t,e,n){(function(t,n,i,r){(function(t,n){n(e)})(0,(function(t){"use strict";var e=Object.defineProperty,o=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,u=Math.pow,c=(t,n,i)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,g=(t,e)=>{for(var n in e||(e={}))l.call(e,n)&&c(t,n,e[n]);if(a)for(var n of a(e))h.call(e,n)&&c(t,n,e[n]);return t},d=(t,e)=>o(t,s(e)),f=(t,e)=>{var n={};for(var i in t)l.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&a)for(var i of a(t))e.indexOf(i)<0&&h.call(t,i)&&(n[i]=t[i]);return n},A=(t,e,n)=>(c(t,"symbol"!=typeof e?e+"":e,n),n),p=(t,e,n)=>new Promise((i,r)=>{var o=t=>{try{a(n.next(t))}catch(C){r(C)}},s=t=>{try{a(n.throw(t))}catch(C){r(C)}},a=t=>t.done?i(t.value):Promise.resolve(t.value).then(o,s);a((n=n.apply(t,e)).next())});"undefined"==typeof window.global&&(window.global=window);let m=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((t,e)=>(e&=63,t+=e<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_",t),"");class y{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}function v(t){t.stopPropagation()}const _=y,x={PROPERTYCHANGE:"propertychange"};class I{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const w=I;function C(t,e,n){let i,r;n=n||E;let o=0,s=t.length,a=!1;for(;o>1),r=+n(t[i],e),r<0?o=i+1:(s=i,a=!r);return a?o:~o}function E(t,e){return t>e?1:te?-1:0}function S(t,e,n){if(t[0]<=e)return 0;const i=t.length;if(e<=t[i-1])return i-1;if("function"==typeof n){for(let r=1;r0?r-1:r}return i-1}if(n>0){for(let n=1;n0||n&&0===o)}))}function R(){return!0}function k(){return!1}function L(){}function P(t){let e,n,i;return function(){const r=Array.prototype.slice.call(arguments);return(!n||this!==i||!T(r,n))&&(i=this,n=r,e=t.apply(this,arguments)),e}}function Q(t){function e(){let e;try{e=t()}catch(n){return Promise.reject(n)}return e instanceof Promise?e:Promise.resolve(e)}return e()}function z(t){for(const e in t)delete t[e]}function F(t){let e;for(e in t)return!1;return!e}class O extends w{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);i.includes(e)||i.push(e)}dispatchEvent(t){const e="string"==typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(!i)return;const r=e?new _(t):t;r.target||(r.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),s=this.pendingRemovals_||(this.pendingRemovals_={});let a;n in o||(o[n]=0,s[n]=0),++o[n];for(let l=0,h=i.length;l0)}removeEventListener(t,e){if(!this.listeners_)return;const n=this.listeners_[t];if(!n)return;const i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=L,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}}const N=O,G={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function j(t,e,n,i,r){if(r){const r=n;n=function(){t.removeEventListener(e,n),r.apply(null!=i?i:this,arguments)}}else i&&i!==t&&(n=n.bind(i));const o={target:t,type:e,listener:n};return t.addEventListener(e,n),o}function U(t,e,n,i){return j(t,e,n,i,!0)}function q(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),z(t))}class V extends N{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(G.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let r=0;r0;)this.pop()}extend(t){for(let e=0,n=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new nt(tt.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,i=e.length;n=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new nt(tt.REMOVE,e,t)),e}setAt(t,e){const n=this.getLength();if(t>=n)return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new nt(tt.REMOVE,i,t)),this.dispatchEvent(new nt(tt.ADD,e,t))}updateLength_(){this.set(et.LENGTH,this.array_.length)}assertUnique_(t,e){for(let n=0,i=this.array_.length;nMath.round(t*It[e])/It[e]).join(", ")+")"}const Ct={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Et(t){const e=Lt();for(let n=0,i=t.length;nr&&(l|=Ct.RIGHT),ao&&(l|=Ct.ABOVE),l===Ct.UNKNOWN&&(l=Ct.INTERSECTING),l}function Lt(){return[1/0,1/0,-1/0,-1/0]}function Pt(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function Qt(t){return Pt(1/0,1/0,-1/0,-1/0,t)}function zt(t,e){const n=t[0],i=t[1];return Pt(n,i,n,i,e)}function Ft(t,e,n,i,r){const o=Qt(r);return jt(o,t,e,n,i)}function Ot(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Nt(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function Gt(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function jt(t,e,n,i,r){for(;ne[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function re(t){return t[2]=s&&A<=l),!i&&!!(o&Ct.RIGHT)&&!(r&Ct.RIGHT)&&(p=d-(g-l)*f,i=p>=a&&p<=h),!i&&!!(o&Ct.BELOW)&&!(r&Ct.BELOW)&&(A=g-(d-a)/f,i=A>=s&&A<=l),!i&&o&Ct.LEFT&&!(r&Ct.LEFT)&&(p=d-(g-s)*f,i=p>=a&&p<=h)}return i}function le(t,e,n,i){if(re(t))return Qt(n);let r=[];if(i>1){const e=t[2]-t[0],n=t[3]-t[1];for(let o=0;o=n[2])){const e=ne(n),r=Math.floor((i[0]-n[0])/e)*e;t[0]-=r,t[2]-=r}return t}function ue(t,e,n){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];he(t,e);const r=ne(i);if(ne(t)>r&&!n)return[[i[0],t[1],i[2],t[3]]];if(t[0]i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-r,t[3]]]}return[t]}const ce={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function ge(t){return ce[t]}const de={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class fe{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||de[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const Ae=fe,pe=6378137,me=Math.PI*pe,ye=[-me,-me,me,me],ve=[-180,-85,180,85],_e=pe*Math.log(Math.tan(Math.PI/2));class xe extends Ae{constructor(t){super({code:t,units:"m",extent:ye,global:!0,worldExtent:ve,getPointResolution:function(t,e){return t/Math.cosh(e[1]/pe)}})}}const Ie=[new xe("EPSG:3857"),new xe("EPSG:102100"),new xe("EPSG:102113"),new xe("EPSG:900913"),new xe("http://www.opengis.net/def/crs/EPSG/0/3857"),new xe("http://www.opengis.net/gml/srs/epsg.xml#3857")];function we(t,e,n,i){const r=t.length;n=n>1?n:2,i=null!=i?i:n,void 0===e&&(e=n>2?t.slice():new Array(r));for(let o=0;o_e?n=_e:n<-_e&&(n=-_e),e[o+1]=n}return e}function Ce(t,e,n,i){const r=t.length;n=n>1?n:2,i=null!=i?i:n,void 0===e&&(e=n>2?t.slice():new Array(r));for(let o=0;o1?(n=r,i=o):l>0&&(n+=s*l,i+=a*l)}return Fe(t,e,n,i)}function Fe(t,e,n,i){const r=n-t,o=i-e;return r*r+o*o}function Oe(t){const e=t.length;for(let i=0;ir&&(r=e,n=s)}if(0===r)return null;const o=t[n];t[n]=t[i],t[i]=o;for(let s=i+1;s=0;i--){n[i]=t[i][e]/t[i][i];for(let r=i-1;r>=0;r--)t[r][e]-=t[r][i]*n[i]}return n}function Ne(t){return 180*t/Math.PI}function Ge(t){return t*Math.PI/180}function je(t,e){const n=t%e;return n*e<0?n+e:n}function Ue(t,e,n){return t+n*(e-t)}function qe(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function Ve(t,e){return Math.round(qe(t,e))}function He(t,e){return Math.floor(qe(t,e))}function Ye(t,e){return Math.ceil(qe(t,e))}function We(t,e,n){if(t>=e&&te)return 1;if(e>t)return-1}return 0}function Ze(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function Ke(t,e){const n=e.getRadius(),i=e.getCenter(),r=i[0],o=i[1],s=t[0],a=t[1];let l=s-r;const h=a-o;0===l&&0===h&&(l=1);const u=Math.sqrt(l*l+h*h),c=r+n*l/u,g=o+n*h/u;return[c,g]}function Je(t,e){const n=t[0],i=t[1],r=e[0],o=e[1],s=r[0],a=r[1],l=o[0],h=o[1],u=l-s,c=h-a,g=0===u&&0===c?0:(u*(n-s)+c*(i-a))/(u*u+c*c||0);let d,f;return g<=0?(d=s,f=a):g>=1?(d=l,f=h):(d=s+g*u,f=a+g*c),[d,f]}function $e(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function tn(t,e){const n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function en(t,e){return t[0]*=e,t[1]*=e,t}function nn(t,e){const n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function rn(t,e){return Math.sqrt(nn(t,e))}function on(t,e){return nn(t,Je(t,e))}function sn(t,e){if(e.canWrapX()){const n=ne(e.getExtent()),i=an(t,e,n);i&&(t[0]-=i*n)}return t}function an(t,e,n){const i=e.getExtent();let r=0;return e.canWrapX()&&(t[0]i[2])&&(n=n||ne(i),r=Math.floor((t[0]-i[0])/n)),r}const ln=6371008.8;function hn(t,e,n){n=n||ln;const i=Ge(t[1]),r=Ge(e[1]),o=(r-i)/2,s=Ge(e[0]-t[0])/2,a=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(i)*Math.cos(r);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function un(t,e){let n=0;for(let i=0,r=t.length;iQn&&(e=Qn);const i=Ge(e),r=Math.sin(i),o=Math.cos(i),s=r/o,a=s*s,l=a*a,h=Ge(t),c=Nn(n.number),g=Ge(c),d=kn/Math.sqrt(1-An*u(r,2)),f=yn*u(o,2),A=o*We(h-g,-Math.PI,Math.PI),p=A*A,m=p*A,y=m*A,v=y*A,_=v*A,x=kn*(En*i-bn*Math.sin(2*i)+Sn*Math.sin(4*i)-Bn*Math.sin(6*i)),I=fn*d*(A+m/6*(1-a+f)+v/120*(5-18*a+l+72*f-58*yn))+5e5;let w=fn*(x+d*s*(p/2+y/24*(5-a+9*f+4*u(f,2))+_/720*(61-58*a+l+600*f-330*yn)));return n.north||(w+=1e7),[I,w]}function Nn(t){return 6*(t-1)-180+3}const Gn=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function jn(t){let e=0;for(const r of Gn){const n=t.match(r);if(n){e=parseInt(n[1]);break}}if(!e)return null;let n=0,i=!1;return e>32700&&e<32761?n=e-32700:e>32600&&e<32661&&(i=!0,n=e-32600),n?{number:n,north:i}:null}function Un(t,e){return function(n,i,r,o){const s=n.length;r=r>1?r:2,o=null!=o?o:r,i||(i=r>2?n.slice():new Array(s));for(let a=0;a=a?e[s+t]:o[t]}return n}}function li(t,e,n,i){const r=ni(t),o=ni(e);Le(r,o,ai(n)),Le(o,r,ai(i))}function hi(t,e){return Jn(),Ai(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function ui(t,e){const n=Ai(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),i=n[0];return(i<-180||i>180)&&(n[0]=je(i+180,360)-180),n}function ci(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||gi(t,e)===$n)&&n}function gi(t,e){const n=t.getCode(),i=e.getCode();let r=Pe(n,i);if(r)return r;let o=null,s=null;for(const l of Xn)o||(o=l(t)),s||(s=l(e));if(!o&&!s)return null;const a="EPSG:4326";if(s)if(o)r=di(o.inverse,s.forward);else{const t=Pe(n,a);t&&(r=di(t,s.forward))}else{const t=Pe(a,i);t&&(r=di(o.inverse,t))}return r&&(ti(t),ti(e),Le(t,e,r)),r}function di(t,e){return function(n,i,r,o){return i=t(n,i,r,o),e(i,i,r,o)}}function fi(t,e){const n=ni(t),i=ni(e);return gi(n,i)}function Ai(t,e,n){const i=fi(e,n);if(!i){const t=ni(e).getCode(),i=ni(n).getCode();throw new Error(`No transform available between ${t} and ${i}`)}return i(t,void 0,t.length)}function pi(t,e,n,i){const r=fi(e,n);return le(t,r,void 0,i)}let mi=null;function yi(){return mi}function vi(t,e){return t}function _i(t,e){return Kn&&!$e(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(Kn=!1,Yn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function xi(t,e){return t}function Ii(t,e){return t}function wi(t,e,n){return function(i){let r,o;if(t.canWrapX()){const e=t.getExtent(),s=ne(e);i=i.slice(0),o=an(i,t,s),o&&(i[0]=i[0]-o*s),i[0]=Qe(i[0],e[0],e[2]),i[1]=Qe(i[1],e[1],e[3]),r=n(i)}else r=n(i);return o&&e.canWrapX()&&(r[0]+=o*ne(e.getExtent())),r}}function Ci(){ri(Ie),ri(Me),oi(Me,Ie,we,Ce)}function Ei(t,e,n,i,r,o,s){o=o||[],s=s||2;let a=0;for(let l=e;l{if(!n)return this.getSimplifiedGeometry(e);const i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return Y()}closestPointXY(t,e,n,i){return Y()}containsXY(t,e){const n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return Y()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Qt(t),this.extentRevision_=this.getRevision()}return oe(this.extent_,t)}rotate(t,e){Y()}scale(t,e,n){Y()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return Y()}getType(){return Y()}applyTransform(t){Y()}intersectsExtent(t){return Y()}translate(t,e){Y()}transform(t,e){const n=ni(t),i="tile-pixels"==n.getUnits()?function(t,i,r){const o=n.getExtent(),s=n.getWorldExtent(),a=Jt(s)/Jt(o);vt(Mi,s[0],s[3],a,-a,0,0,0);const l=Ei(t,0,t.length,r,Mi,i),h=fi(n,e);return h?h(l,l,r):l}:fi(n,e);return this.applyTransform(i),this}}const Di=Ti;class Ri extends Di{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return Ft(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return Y()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length1)c=n;else{if(g>0){for(let r=0;rr&&(r=a),o=n,s=i}return r}function Oi(t,e,n,i,r){for(let o=0,s=n.length;o0;){const n=h.pop(),o=h.pop();let s=0;const a=t[o],c=t[o+1],g=t[n],d=t[n+1];for(let e=o+i;es&&(u=e,s=r)}s>r&&(l[(u-e)/i]=1,o+i0&&f>g)&&(d<0&&A0&&A>d)?(a=n,l=c):(o[s++]=a,o[s++]=l,h=a,u=l,a=n,l=c)}return o[s++]=a,o[s++]=l,s}function Ji(t,e,n,i,r,o,s,a){for(let l=0,h=n.length;lo&&(n-a)*(o-l)-(r-a)*(i-l)>0&&s++:i<=o&&(n-a)*(o-l)-(r-a)*(i-l)<0&&s--,a=n,l=i}return 0!==s}function gr(t,e,n,i,r,o){if(0===n.length||!cr(t,e,n[0],i,r,o))return!1;for(let s=1,a=n.length;sm&&(h=(u+c)/2,gr(t,e,n,i,h,f)&&(p=h,m=r)),u=c}return isNaN(p)&&(p=r[o]),s?(s.push(p,f,m),s):[p,f,m]}function Ar(t,e,n,i,r){let o=[];for(let s=0,a=n.length;s=r[0]&&o[2]<=r[2]||o[1]>=r[1]&&o[3]<=r[3])||pr(t,e,n,i,(function(t,e){return ae(r,t,e)})))}function yr(t,e,n,i,r){for(let o=0,s=n.length;o0}function Cr(t,e,n,i,r){r=void 0!==r&&r;for(let o=0,s=n.length;o.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[255*n,255*i,255*r]},Qr.xyz=function(t,e){var n=t[0]/255,i=t[1]/255,r=t[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var o=.41239079926595*n+.35758433938387*i+.18048078840183*r,s=.21263900587151*n+.71516867876775*i+.072192315360733*r,a=.019330818715591*n+.11919477979462*i+.95053215224966*r;return e=e||zr.whitepoint[2].E,[o*e[0],s*e[1],a*e[2]]};var Fr={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,n){var i,r,o,s,a,l,h,u,c,g,d,f,A;if(o=t[0],s=t[1],a=t[2],0===o)return[0,0,0];var p=.0011070564598794539;return e=e||"D65",n=n||2,c=zr.whitepoint[n][e][0],g=zr.whitepoint[n][e][1],d=zr.whitepoint[n][e][2],f=4*c/(c+15*g+3*d),A=9*g/(c+15*g+3*d),i=s/(13*o)+f||0,r=a/(13*o)+A||0,h=o>8?g*Math.pow((o+16)/116,3):g*o*p,l=9*h*i/(4*r)||0,u=h*(12-3*i-20*r)/(4*r)||0,[l,h,u]}};zr.luv=function(t,e,n){var i,r,o,s,a,l,h,u,c,g,d,f,A,p=.008856451679035631,m=903.2962962962961;e=e||"D65",n=n||2,c=zr.whitepoint[n][e][0],g=zr.whitepoint[n][e][1],d=zr.whitepoint[n][e][2],f=4*c/(c+15*g+3*d),A=9*g/(c+15*g+3*d),l=t[0],h=t[1],u=t[2],i=4*l/(l+15*h+3*u)||0,r=9*h/(l+15*h+3*u)||0;var y=h/g;return o=y<=p?m*y:116*Math.pow(y,1/3)-16,s=13*o*(i-f),a=13*o*(r-A),[o,s,a]};var Or={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(t){var e,n,i,r=t[0],o=t[1],s=t[2];return i=s/360*2*Math.PI,e=o*Math.cos(i),n=o*Math.sin(i),[r,e,n]},xyz:function(t){return Fr.xyz(Or.luv(t))}};Fr.lchuv=function(t){var e=t[0],n=t[1],i=t[2],r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n),s=360*o/2/Math.PI;return s<0&&(s+=360),[e,r,s]},zr.lchuv=function(t){return Fr.lchuv(zr.luv(t))};const Nr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var Gr={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function jr(t){var e,n,i,r,o=[],s=1;if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),Nr[t])o=Nr[t].slice(),r="rgb";else if("transparent"===t)s=0,r="rgb",o=[0,0,0];else if("#"===t[0]){var a=t.slice(1),l=a.length,h=l<=4;s=1,h?(o=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],4===l&&(s=parseInt(a[3]+a[3],16)/255)):(o=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],8===l&&(s=parseInt(a[6]+a[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),r="rgb"}else if(i=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var u=i[1];r=u.replace(/a$/,"");var c="cmyk"===r?4:"gray"===r?1:3;o=i[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===r&&(r=o.shift()),o=o.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===r?255*t:"h"===r[0]||"l"===r[0]&&!e?100*t:"lab"===r?125*t:"lch"===r?e<2?150*t:360*t:"o"!==r[0]||e?"oklab"===r?.4*t:"oklch"===r?e<2?.4*t:360*t:t:t;if("h"===r[e]||2===e&&"h"===r[r.length-1]){if(void 0!==Gr[t])return Gr[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)})),s=o.length>c?o.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(o=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),r=(null==(n=null==(e=t.match(/([a-z])/gi))?void 0:e.join(""))?void 0:n.toLowerCase())||"rgb");return{space:r,values:o,alpha:s}}var Ur={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,n,i,r,o,s=t[0]/360,a=t[1]/100,l=t[2]/100,h=0;if(0===a)return o=255*l,[o,o,o];for(n=l<.5?l*(1+a):l+a-l*a,e=2*l-n,r=[0,0,0];h<3;)i=s+1/3*-(h-1),i<0?i++:i>1&&i--,o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[h++]=255*o;return r}};function qr(t){Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var e,n=jr(t);if(!n.space)return[];const i="h"===n.space[0]?Ur.min:Qr.min,r="h"===n.space[0]?Ur.max:Qr.max;return e=Array(3),e[0]=Math.min(Math.max(n.values[0],i[0]),r[0]),e[1]=Math.min(Math.max(n.values[1],i[1]),r[1]),e[2]=Math.min(Math.max(n.values[2],i[2]),r[2]),"h"===n.space[0]&&(e=Ur.rgb(e)),e.push(Math.min(Math.max(n.alpha,0),1)),e}Qr.hsl=function(t){var e,n,i,r=t[0]/255,o=t[1]/255,s=t[2]/255,a=Math.min(r,o,s),l=Math.max(r,o,s),h=l-a;return l===a?e=0:r===l?e=(o-s)/h:o===l?e=2+(s-r)/h:s===l&&(e=4+(r-o)/h),e=Math.min(60*e,360),e<0&&(e+=360),i=(a+l)/2,n=l===a?0:i<=.5?h/(l+a):h/(2-l-a),[e,100*n,100*i]};const Vr=[NaN,NaN,NaN,0];function Hr(t){return"string"==typeof t?t:no(t)}const Yr=1024,Wr={};let Xr=0;function Zr(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function Kr(t){const e=zr.lchuv(Qr.xyz(t));return e[3]=t[3],e}function Jr(t){const e=zr.rgb(Or.xyz(t));return e[3]=t[3],e}function $r(t){if("none"===t)return Vr;if(Wr.hasOwnProperty(t))return Wr[t];if(Xr>=Yr){let t=0;for(const e in Wr)0===(3&t++)&&(delete Wr[e],--Xr)}const e=qr(t);if(4!==e.length)throw new Error('failed to parse "'+t+'" as color');for(const n of e)if(isNaN(n))throw new Error('failed to parse "'+t+'" as color');return eo(e),Wr[t]=e,++Xr,e}function to(t){return Array.isArray(t)?t:$r(t)}function eo(t){return t[0]=Qe(t[0]+.5|0,0,255),t[1]=Qe(t[1]+.5|0,0,255),t[2]=Qe(t[2]+.5|0,0,255),t[3]=Qe(t[3],0,1),t}function no(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let n=t[1];n!=(0|n)&&(n=n+.5|0);let i=t[2];i!=(0|i)&&(i=i+.5|0);const r=void 0===t[3]?1:Math.round(1e3*t[3])/1e3;return"rgba("+e+","+n+","+i+","+r+")"}const io="undefined"!=typeof navigator&&"undefined"!=typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",ro=io.includes("firefox"),oo=io.includes("safari")&&!io.includes("chrom")&&(io.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(io)),so=io.includes("webkit")&&!io.includes("edge"),ao=io.includes("macintosh"),lo="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,ho="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,uo="undefined"!=typeof Image&&Image.prototype.decode,co="function"==typeof createImageBitmap,go=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(e){}return t}();function fo(t,e,n,i){let r;return r=n&&n.length?n.shift():ho?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(r.width=t),e&&(r.height=e),r.getContext("2d",i)}let Ao;function po(){return Ao||(Ao=fo(1,1)),Ao}function mo(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function yo(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function vo(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function _o(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function xo(t){for(;t.lastChild;)t.lastChild.remove()}function Io(t,e){const n=t.childNodes;for(let i=0;;++i){const r=n[i],o=e[i];if(!r&&!o)break;if(r!==o){if(!r){t.appendChild(o);continue}if(!o){t.removeChild(r),--i;continue}t.insertBefore(o,r)}}}class wo extends N{constructor(t,e,n,i){super(),this.extent=t,this.pixelRatio_=n,this.resolution=e,this.state="function"==typeof i?Pr.IDLE:i,this.image_=null,this.loader="function"==typeof i?i:null}changed(){this.dispatchEvent(G.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==Pr.IDLE&&this.loader){this.state=Pr.LOADING,this.changed();const t=this.getResolution(),e=Array.isArray(t)?t[0]:t;Q(()=>this.loader(this.getExtent(),e,this.getPixelRatio())).then(t=>{"image"in t&&(this.image_=t.image),"extent"in t&&(this.extent=t.extent),"resolution"in t&&(this.resolution=t.resolution),"pixelRatio"in t&&(this.pixelRatio_=t.pixelRatio),(t instanceof HTMLImageElement||t instanceof ImageBitmap||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement)&&(this.image_=t),this.state=Pr.LOADED}).catch(t=>{this.state=Pr.ERROR}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}}function Co(t,e,n){const i=t;let r=!0,o=!1,s=!1;const a=[U(i,G.LOAD,(function(){s=!0,o||e()}))];return i.src&&uo?(o=!0,i.decode().then((function(){r&&e()})).catch((function(t){r&&(s?e():n())}))):a.push(U(i,G.ERROR,n)),function(){r=!1,a.forEach(q)}}function Eo(t,e){return new Promise((n,i)=>{function r(){s(),n(t)}function o(){s(),i(new Error("Image load error"))}function s(){t.removeEventListener("load",r),t.removeEventListener("error",o)}t.addEventListener("load",r),t.addEventListener("error",o),e&&(t.src=e)})}function bo(t,e){return e&&(t.src=e),t.src&&uo?new Promise((e,n)=>t.decode().then(()=>e(t)).catch(i=>t.complete&&t.width?e(t):n(i))):Eo(t)}function So(t,e){return e&&(t.src=e),t.src&&uo&&co?t.decode().then(()=>createImageBitmap(t)).catch(e=>{if(t.complete&&t.width)return t;throw e}):bo(t)}const Bo=wo;class Mo{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];0===(3&t++)&&!n.hasListener()&&(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,n){const i=To(t,e,n);return i in this.cache_?this.cache_[i]:null}getPattern(t,e,n){const i=To(t,e,n);return i in this.patternCache_?this.patternCache_[i]:null}set(t,e,n,i,r){const o=To(t,e,n),s=o in this.cache_;this.cache_[o]=i,r&&(i.getImageState()===Pr.IDLE&&i.load(),i.getImageState()===Pr.LOADING?i.ready().then(()=>{this.patternCache_[o]=po().createPattern(i.getImage(1),"repeat")}):this.patternCache_[o]=po().createPattern(i.getImage(1),"repeat")),s||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function To(t,e,n){const i=n?to(n):"null";return e+":"+t+":"+i}const Do=new Mo;let Ro=null;class ko extends N{constructor(t,e,n,i,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n,this.canvas_={},this.color_=r,this.imageState_=void 0===i?Pr.IDLE:i,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===Pr.LOADED){Ro||(Ro=fo(1,1,void 0,{willReadFrequently:!0})),Ro.drawImage(this.image_,0,0);try{Ro.getImageData(0,0,1,1),this.tainted_=!1}catch(t){Ro=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(G.CHANGE)}handleImageError_(){this.imageState_=Pr.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=Pr.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],n=fo(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===Pr.IDLE){this.image_||this.initializeImage_(),this.imageState_=Pr.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&bo(this.image_,this.src_).then(t=>{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==Pr.LOADED)return;const e=this.image_,n=fo(Math.ceil(e.width*t),Math.ceil(e.height*t)),i=n.canvas;n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=Hr(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}ready(){return this.ready_||(this.ready_=new Promise(t=>{if(this.imageState_===Pr.LOADED||this.imageState_===Pr.ERROR)t();else{const e=()=>{(this.imageState_===Pr.LOADED||this.imageState_===Pr.ERROR)&&(this.removeEventListener(G.CHANGE,e),t())};this.addEventListener(G.CHANGE,e)}})),this.ready_}}function Lo(t,e,n,i,r,o){let s=void 0===e?void 0:Do.get(e,n,r);return s||(s=new ko(t,t&&"src"in t?t.src||void 0:e,n,i,r),Do.set(e,n,r,s,o)),o&&s&&!Do.getPattern(e,n,r)&&Do.set(e,n,r,s,o),s}class Po{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new Po({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"==typeof t&&"src"in t){const e=Lo(null,t.src,"anonymous",void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then(()=>{this.patternImage_=null}),e.getImageState()===Pr.IDLE&&e.load(),e.getImageState()===Pr.LOADING&&(this.patternImage_=e)}this.color_=t}getKey(){const t=this.getColor();return t?t instanceof CanvasPattern||t instanceof CanvasGradient?X(t):"object"==typeof t&&"src"in t?t.src+":"+t.offset:to(t).toString():""}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const Qo=Po;function zo(t,e,n,i,r,o,s){let a,l;const h=(n-e)/i;if(1===h)a=e;else if(2===h)a=e,l=r;else if(0!==h){let o=t[e],s=t[e+1],h=0;const u=[0];for(let r=e+i;r1?s:2,o=o||new Array(s);for(let u=0;u>1;r0&&t[1]>0}function Ho(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function Yo(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}class Wo{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Yo(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Wo({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Y()}getImage(t){return Y()}getHitDetectionImage(){return Y()}getPixelRatio(t){return 1}getImageState(){return Y()}getImageSize(){return Y()}getOrigin(){return Y()}getSize(){return Y()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=Yo(t)}listenImageChange(t){Y()}load(){Y()}unlistenImageChange(t){Y()}ready(){return Promise.resolve()}}const Xo=Wo;function Zo(t){return t?Array.isArray(t)?no(t):"object"==typeof t&&"src"in t?Ko(t):t:null}function Ko(t){if(!t.offset||!t.size)return Do.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=Do.getPattern(e,void 0,t.color);if(n)return n;const i=Do.get(t.src,"anonymous",null);if(i.getImageState()!==Pr.LOADED)return null;const r=fo(t.size[0],t.size[1]);return r.drawImage(i.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),Lo(r.canvas,e,void 0,Pr.LOADED,t.color,!0),Do.getPattern(e,void 0,t.color)}const Jo="ol-hidden",$o="ol-selectable",ts="ol-unselectable",es="ol-unsupported",ns="ol-control",is="ol-collapsed",rs=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),os=["style","variant","weight","size","lineHeight","family"],ss=function(t){const e=t.match(rs);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,r=os.length;iMath.max(e,bs(t,n)),0);return n[e]=i,i}function Bs(t,e){const n=[],i=[],r=[];let o=0,s=0,a=0,l=0;for(let h=0,u=e.length;h<=u;h+=2){const c=e[h];if("\n"===c||h===u){o=Math.max(o,s),r.push(s),s=0,a+=l,l=0;continue}const g=e[h+1]||t.font,d=bs(g,c);n.push(d),s+=d;const f=Cs(g);i.push(f),l=Math.max(l,f)}return{width:o,height:a,widths:n,heights:i,lineWidths:r}}function Ms(t,e,n,i,r,o,s,a,l,h,u){t.save(),1!==n&&(void 0===t.globalAlpha?t.globalAlpha=t=>t.globalAlpha*=n:t.globalAlpha*=n),e&&t.transform.apply(t,e),i.contextInstructions?(t.translate(l,h),t.scale(u[0],u[1]),Ts(i,t)):u[0]<0||u[1]<0?(t.translate(l,h),t.scale(u[0],u[1]),t.drawImage(i,r,o,s,a,0,0,s,a)):t.drawImage(i,r,o,s,a,l,h,s*u[0],a*u[1]),t.restore()}function Ts(t,e){const n=t.contextInstructions;for(let i=0,r=n.length;ithis.imageState_=Pr.LOADED),this.render()}clone(){const t=this.getScale(),e=new Ds({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),n=this.getScaleArray();return[t[0]/2-e[0]/n[0],t[1]/2+e[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){var e,n;const i=null==(e=this.fill_)?void 0:e.getKey(),r=`${t},${this.angle_},${this.radius},${this.radius2_},${this.points_},${i}`+Object.values(this.renderOptions_).join(",");let o=null==(n=Do.get(r,null,null))?void 0:n.getImage(1);if(!o){const e=this.renderOptions_,n=Math.ceil(e.size*t),i=fo(n,n);this.draw_(e,i,t),o=i.canvas,Do.set(r,null,null,new ko(o,void 0,null,Pr.LOADED,null))}return o}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let i=this.radius,r=void 0===this.radius2_?i:this.radius2_;if(id&&(g=(d+g)/2,d=g),f>A&&(f=(A+f)/2,A=f);let p=Qe(i[0],g,d),m=Qe(i[1],f,A);if(s&&n&&r){const t=30*r;p+=-t*Math.log(1+Math.max(0,g-i[0])/t)+t*Math.log(1+Math.max(0,i[0]-d)/t),m+=-t*Math.log(1+Math.max(0,f-i[1])/t)+t*Math.log(1+Math.max(0,i[1]-A)/t)}return[p,m]}}function $s(t){return t}function ta(t,e,n,i){const r=ne(e)/n[0],o=Jt(e)/n[1];return i?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function ea(t,e,n){let i=Math.min(t,e);const r=50;return i*=Math.log(1+r*Math.max(0,t/e-1))/r+1,n&&(i=Math.max(i,n),i/=Math.log(1+r*Math.max(0,n/t-1))/r+1),Qe(i,n/2,2*e)}function na(t,e,n,i){return e=void 0===e||e,function(r,o,s,a){if(void 0!==r){const l=t[0],h=t[t.length-1],u=n?ta(l,n,s,i):l;if(a)return e?ea(r,u,h):Qe(r,h,u);const c=Math.min(u,r),g=Math.floor(S(t,c,o));return t[g]>u&&g1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);let i=0;for(;i0}getInteracting(){return this.hints_[Ws.INTERACTING]>0}cancelAnimations(){let t;this.setHint(Ws.ANIMATING,-this.hints_[Ws.ANIMATING]);for(let e=0,n=this.animations_.length;e=0;--n){const i=this.animations_[n];let r=!0;for(let n=0,o=i.length;n0?s/o.duration:1;a>=1?(o.complete=!0,a=1):r=!1;const l=o.easing(a);if(o.sourceCenter){const t=o.sourceCenter[0],e=o.sourceCenter[1],n=o.targetCenter[0],i=o.targetCenter[1];this.nextCenter_=o.targetCenter;const r=t+l*(n-t),s=e+l*(i-e);this.targetCenter_=[r,s]}if(o.sourceResolution&&o.targetResolution){const t=1===l?o.targetResolution:o.sourceResolution+l*(o.targetResolution-o.sourceResolution);if(o.anchor){const e=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(n,o.anchor)}this.nextResolution_=o.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==o.sourceRotation&&void 0!==o.targetRotation){const t=1===l?je(o.targetRotation+Math.PI,2*Math.PI)-Math.PI:o.sourceRotation+l*(o.targetRotation-o.sourceRotation);if(o.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,o.anchor)}this.nextRotation_=o.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!o.complete)break}if(r){this.animations_[n]=null,this.setHint(Ws.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=i[0].callback;t&&ma(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],tn(n,t-this.getRotation()),Ze(n,e)),n}calculateCenterZoom(t,e){let n;const i=this.getCenterInternal(),r=this.getResolution();if(void 0!==i&&void 0!==r){const o=e[0]-t*(e[0]-i[0])/r,s=e[1]-t*(e[1]-i[1])/r;n=[o,s]}return n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&vi(t,this.getProjection())}getCenterInternal(){return this.get(Xs.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return xi(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();ot(e,"The view center is not defined");const n=this.getResolution();ot(void 0!==n,"The view resolution is not defined");const i=this.getRotation();return ot(void 0!==i,"The view rotation is not defined"),Zt(e,n,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Xs.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(Ii(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=ne(t)/e[0],i=Jt(t)/e[1];return Math.max(n,i)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(e/n)/Math.log(t);return function(n){return e/Math.pow(t,n*i)}}getRotation(){return this.get(Xs.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){return Math.log(n/t)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let i=this.getCenterInternal();const r=this.padding_;if(r){const t=this.getViewportSizeMinusPadding_();i=Ia(i,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,n,i=this.minZoom_||0;if(this.resolutions_){const r=S(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)}getResolutionForZoom(t){var e;if(null!=(e=this.resolutions_)&&e.length){if(1===this.resolutions_.length)return this.resolutions_[0];const e=Qe(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Qe(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if(ot(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){ot(!re(t),"Cannot fit empty extent provided as `geometry`");const e=Ii(t,this.getProjection());n=Dr(e)}else if("Circle"===t.getType()){const e=Ii(t.getExtent(),this.getProjection());n=Dr(e),n.rotate(this.getRotation(),Wt(e))}else n=t;this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let s=1/0,a=1/0,l=-1/0,h=-1/0;for(let u=0,c=r.length;u{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let i;if(!t&&n&&(t=n.getView()),e=t instanceof wa?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),e.layerStatesArray){if(i=e.layerStatesArray.find(t=>t.layer===this),!i)return!1}else i=this.getLayerState();const r=this.getExtent();return Ea(i,e.viewState)&&(!r||ie(r,e.extent))}getAttributions(t){var e;if(!this.isVisible(t))return[];const n=null==(e=this.getSource())?void 0:e.getAttributions();if(!n)return[];const i=t instanceof wa?t.getViewStateAndExtent():t;let r=n(i);return Array.isArray(r)||(r=[r]),r}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();!e||e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(Vs.MAP,t)}getMapInternal(){return this.get(Vs.MAP)}setMap(t){this.mapPrecomposeKey_&&(q(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(q(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=j(t,Lr.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=j(this,G.CHANGE,t.render,t),this.changed())}handlePrecompose_(t){const e=t.frameState.layerStatesArray,n=this.getLayerState(!1);ot(!e.some(t=>t.layer===n.layer),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(n)}setSource(t){this.set(Vs.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}}function Ea(t,e){if(!t.visible)return!1;const n=e.resolution;if(n=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}const ba=Ca;function Sa(t,e,n=0,i=t.length-1,r=Ma){for(;i>n;){if(i-n>600){const o=i-n+1,s=e-n+1,a=Math.log(o),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1),u=Math.max(n,Math.floor(e-s*l/o+h)),c=Math.min(i,Math.floor(e+(o-s)*l/o+h));Sa(t,e,u,c,r)}const o=t[e];let s=n,a=i;for(Ba(t,n,e),r(t[i],o)>0&&Ba(t,n,i);s0;)a--}0===r(t[n],o)?Ba(t,n,a):(a++,Ba(t,a,i)),a<=e&&(n=a+1),e<=a&&(i=a-1)}}function Ba(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function Ma(t,e){return te?1:0}class Ta{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const n=[];if(!ja(t,e))return n;const i=this.toBBox,r=[];for(;e;){for(let o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)}_split(t,e){const n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const o=this._chooseSplitIndex(n,r,i),s=Ua(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,Ra(n,this.toBBox),Ra(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)}_splitRoot(t,e){this.data=Ua([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Ra(this.data,this.toBBox)}_chooseSplitIndex(t,e,n){let i,r=1/0,o=1/0;for(let s=e;s<=n-e;s++){const e=ka(t,0,s,this.toBBox),a=ka(t,s,n,this.toBBox),l=Na(e,a),h=za(e)+za(a);l=e;l--){const e=t.children[l];La(s,t.leaf?r(e):e),a+=Fa(s)}return a}_adjustParentBBoxes(t,e,n){for(let i=n;i>=0;i--)La(e[i],t)}_condense(t){for(let e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():Ra(t[n],this.toBBox)}}function Da(t,e,n){if(!n)return e.indexOf(t);for(let i=0;i=t.minX&&e.maxY>=t.minY}function Ua(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function qa(t,e,n,i,r){const o=[e,n];for(;o.length;){if(n=o.pop(),e=o.pop(),n-e<=i)continue;const s=e+Math.ceil((n-e)/i/2)*i;Sa(t,s,e,n,r),o.push(e,s,s,n)}}function Va(t,e,n,i){return void 0!==n&&void 0!==i?[n/t,i/e]:void 0!==n?n/t:void 0!==i?i/e:1}class Ha extends Xo{constructor(t){t=t||{};const e=void 0!==t.opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,i=void 0!==t.scale?t.scale:1,r=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:n,scale:i,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const o=void 0!==t.img?t.img:null;let s,a=t.src;if(ot(!(void 0!==a&&o),"`image` and `src` cannot be provided at the same time"),(void 0===a||0===a.length)&&o&&(a=o.src||X(o)),ot(void 0!==a&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),ot(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?s=Pr.IDLE:void 0!==o&&(s="complete"in o?o.complete?o.src?Pr.LOADED:Pr.IDLE:Pr.LOADING:Pr.LOADED),this.color_=void 0!==t.color?to(t.color):null,this.iconImage_=Lo(o,a,this.crossOrigin_,s,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,n;if(t.size)[e,n]=t.size;else{const i=this.getImage(1);if(i.width&&i.height)e=i.width,n=i.height;else if(i instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(Va(n[0],n[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(Va(e,n,t.width,t.height))}}clone(){let t,e,n;return this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new Ha({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(t[0]=-t[0]+e[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[0]=n[0]-e[0]-t[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==Pr.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==Pr.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(G.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(G.CHANGE,t)}ready(){return this.iconImage_.ready()}}const Ya=Ha;let Wa=0;const Xa=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},fl={[dl.Get]:Tl(_l(1,1/0),Al),[dl.Var]:Tl(_l(1,1),pl),[dl.Has]:Tl(_l(1,1/0),Al),[dl.Id]:Tl(ml,vl),[dl.Concat]:Tl(_l(2,1/0),Il(Ka)),[dl.GeometryType]:Tl(yl,vl),[dl.LineMetric]:Tl(vl),[dl.Resolution]:Tl(vl),[dl.Zoom]:Tl(vl),[dl.Time]:Tl(vl),[dl.Any]:Tl(_l(2,1/0),Il(Xa)),[dl.All]:Tl(_l(2,1/0),Il(Xa)),[dl.Not]:Tl(_l(1,1),Il(Xa)),[dl.Equal]:Tl(_l(2,2),Il(el)),[dl.NotEqual]:Tl(_l(2,2),Il(el)),[dl.GreaterThan]:Tl(_l(2,2),Il(Za)),[dl.GreaterThanOrEqualTo]:Tl(_l(2,2),Il(Za)),[dl.LessThan]:Tl(_l(2,2),Il(Za)),[dl.LessThanOrEqualTo]:Tl(_l(2,2),Il(Za)),[dl.Multiply]:Tl(_l(2,1/0),xl),[dl.Coalesce]:Tl(_l(2,1/0),xl),[dl.Divide]:Tl(_l(2,2),Il(Za)),[dl.Add]:Tl(_l(2,1/0),Il(Za)),[dl.Subtract]:Tl(_l(2,2),Il(Za)),[dl.Clamp]:Tl(_l(3,3),Il(Za)),[dl.Mod]:Tl(_l(2,2),Il(Za)),[dl.Pow]:Tl(_l(2,2),Il(Za)),[dl.Abs]:Tl(_l(1,1),Il(Za)),[dl.Floor]:Tl(_l(1,1),Il(Za)),[dl.Ceil]:Tl(_l(1,1),Il(Za)),[dl.Round]:Tl(_l(1,1),Il(Za)),[dl.Sin]:Tl(_l(1,1),Il(Za)),[dl.Cos]:Tl(_l(1,1),Il(Za)),[dl.Atan]:Tl(_l(1,2),Il(Za)),[dl.Sqrt]:Tl(_l(1,1),Il(Za)),[dl.Match]:Tl(_l(4,1/0),Cl,El),[dl.Between]:Tl(_l(3,3),Il(Za)),[dl.Interpolate]:Tl(_l(6,1/0),Cl,bl),[dl.Case]:Tl(_l(3,1/0),wl,Sl),[dl.In]:Tl(_l(2,2),Bl),[dl.Number]:Tl(_l(1,1/0),Il(el)),[dl.String]:Tl(_l(1,1/0),Il(el)),[dl.Array]:Tl(_l(1,1/0),Il(Za)),[dl.Color]:Tl(_l(1,4),Il(Za)),[dl.Band]:Tl(_l(1,3),Il(Za)),[dl.Palette]:Tl(_l(2,2),Ml),[dl.ToString]:Tl(_l(1,1),Il(Xa|Za|Ka|Ja))};function Al(t,e,n){const i=t.length-1,r=new Array(i);for(let o=0;oe){const n=e===1/0?t+" or more":`${t} to ${e}`;throw new Error(`expected ${n} arguments for ${o}, got ${s}`)}}}function xl(t,e,n){const i=t.length-1,r=new Array(i);for(let o=0;ot.featureId;case dl.GeometryType:return t=>t.geometryType;case dl.Concat:{const e=t.args.map(t=>Pl(t));return t=>"".concat(...e.map(e=>e(t).toString()))}case dl.Resolution:return t=>t.resolution;case dl.Any:case dl.All:case dl.Between:case dl.In:case dl.Not:return Ol(t);case dl.Equal:case dl.NotEqual:case dl.LessThan:case dl.LessThanOrEqualTo:case dl.GreaterThan:case dl.GreaterThanOrEqualTo:return Fl(t);case dl.Multiply:case dl.Divide:case dl.Add:case dl.Subtract:case dl.Clamp:case dl.Mod:case dl.Pow:case dl.Abs:case dl.Floor:case dl.Ceil:case dl.Round:case dl.Sin:case dl.Cos:case dl.Atan:case dl.Sqrt:return Nl(t);case dl.Case:return Gl(t);case dl.Match:return jl(t);case dl.Interpolate:return Ul(t);case dl.ToString:return ql(t);default:throw new Error("Unsupported operator "+n)}}function Ql(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o{for(let e=0;e{for(let e=0;e{const i=t.args;let r=e.properties[n];for(let t=1,n=i.length;tt.variables[n];case dl.Has:return e=>{const i=t.args;if(!(n in e.properties))return!1;let r=e.properties[n];for(let t=1,n=i.length;ti(t)===r(t);case dl.NotEqual:return t=>i(t)!==r(t);case dl.LessThan:return t=>i(t)i(t)<=r(t);case dl.GreaterThan:return t=>i(t)>r(t);case dl.GreaterThanOrEqualTo:return t=>i(t)>=r(t);default:throw new Error("Unsupported comparison operator "+n)}}function Ol(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o{for(let e=0;e{for(let e=0;e{const e=r[0](t),n=r[1](t),i=r[2](t);return e>=n&&e<=i};case dl.In:return t=>{const e=r[0](t);for(let n=1;n!r[0](t);default:throw new Error("Unsupported logical operator "+n)}}function Nl(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o{let e=1;for(let n=0;nr[0](t)/r[1](t);case dl.Add:return t=>{let e=0;for(let n=0;nr[0](t)-r[1](t);case dl.Clamp:return t=>{const e=r[0](t),n=r[1](t);if(ei?i:e};case dl.Mod:return t=>r[0](t)%r[1](t);case dl.Pow:return t=>Math.pow(r[0](t),r[1](t));case dl.Abs:return t=>Math.abs(r[0](t));case dl.Floor:return t=>Math.floor(r[0](t));case dl.Ceil:return t=>Math.ceil(r[0](t));case dl.Round:return t=>Math.round(r[0](t));case dl.Sin:return t=>Math.sin(r[0](t));case dl.Cos:return t=>Math.cos(r[0](t));case dl.Atan:return 2===i?t=>Math.atan2(r[0](t),r[1](t)):t=>Math.atan(r[0](t));case dl.Sqrt:return t=>Math.sqrt(r[0](t));default:throw new Error("Unsupported numeric operator "+n)}}function Gl(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r{for(let e=0;e{const e=i[0](t);for(let r=1;r{const e=i[0](t),r=i[1](t);let o,s;for(let a=2;a=r)return 2===a?l:h?Hl(e,r,o,s,n,l):Vl(e,r,o,s,n,l);o=n,s=l}return s}}function ql(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let o=0;o{const n=r[0](e);return t.args[0].type===Ja?no(n):n.toString()};default:throw new Error("Unsupported convert operator "+n)}}function Vl(t,e,n,i,r,o){const s=r-n;if(0===s)return i;const a=e-n,l=1===t?a/s:(Math.pow(t,a)-1)/(Math.pow(t,s)-1);return i+l*(o-i)}function Hl(t,e,n,i,r,o){if(r-n===0)return i;const s=Kr(i),a=Kr(o);let l=a[2]-s[2];l>180?l-=360:l<-180&&(l+=360);const h=[Vl(t,e,n,s[0],r,a[0]),Vl(t,e,n,s[1],r,a[1]),s[2]+Vl(t,e,n,0,r,l),Vl(t,e,n,i[3],r,o[3])];return eo(Jr(h))}function Yl(t){return!0}function Wl(t){const e=cl(),n=Zl(t,e),i=kl();return function(t,r){if(i.properties=t.getPropertiesInternal(),i.resolution=r,e.featureId){const e=t.getId();i.featureId=void 0!==e?e:null}return e.geometryType&&(i.geometryType=Rl(t.getGeometry())),n(i)}}function Xl(t){const e=cl(),n=t.length,i=new Array(n);for(let s=0;snull;i=hh(t,e+"fill-color",n)}if(!i)return null;const r=new Qo;return function(t){const e=i(t);return e===Vr?null:(r.setColor(e),r)}}function $l(t,e,n){const i=oh(t,e+"stroke-width",n),r=hh(t,e+"stroke-color",n);if(!i&&!r)return null;const o=sh(t,e+"stroke-line-cap",n),s=sh(t,e+"stroke-line-join",n),a=uh(t,e+"stroke-line-dash",n),l=oh(t,e+"stroke-line-dash-offset",n),h=oh(t,e+"stroke-miter-limit",n),u=new qo;return function(t){if(r){const e=r(t);if(e===Vr)return null;u.setColor(e)}if(i&&u.setWidth(i(t)),o){const e=o(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw new Error("Expected butt, round, or square line cap");u.setLineCap(e)}if(s){const e=s(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw new Error("Expected bevel, round, or miter line join");u.setLineJoin(e)}return a&&u.setLineDash(a(t)),l&&u.setLineDashOffset(l(t)),h&&u.setMiterLimit(h(t)),u}}function th(t,e){const n="text-",i=sh(t,n+"value",e);if(!i)return null;const r=Jl(t,n,e),o=Jl(t,n+"background-",e),s=$l(t,n,e),a=$l(t,n+"background-",e),l=sh(t,n+"font",e),h=oh(t,n+"max-angle",e),u=oh(t,n+"offset-x",e),c=oh(t,n+"offset-y",e),g=lh(t,n+"overflow",e),d=sh(t,n+"placement",e),f=oh(t,n+"repeat",e),A=dh(t,n+"scale",e),p=lh(t,n+"rotate-with-view",e),m=oh(t,n+"rotation",e),y=sh(t,n+"align",e),v=sh(t,n+"justify",e),_=sh(t,n+"baseline",e),x=lh(t,n+"keep-upright",e),I=uh(t,n+"padding",e),w=_h(t,n+"declutter-mode"),C=new qs({declutterMode:w});return function(t){if(C.setText(i(t)),r&&C.setFill(r(t)),o&&C.setBackgroundFill(o(t)),s&&C.setStroke(s(t)),a&&C.setBackgroundStroke(a(t)),l&&C.setFont(l(t)),h&&C.setMaxAngle(h(t)),u&&C.setOffsetX(u(t)),c&&C.setOffsetY(c(t)),g&&C.setOverflow(g(t)),d){const e=d(t);if("point"!==e&&"line"!==e)throw new Error("Expected point or line for text-placement");C.setPlacement(e)}if(f&&C.setRepeat(f(t)),A&&C.setScale(A(t)),p&&C.setRotateWithView(p(t)),m&&C.setRotation(m(t)),y){const e=y(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw new Error("Expected left, right, center, start, or end for text-align");C.setTextAlign(e)}if(v){const e=v(t);if("left"!==e&&"right"!==e&&"center"!==e)throw new Error("Expected left, right, or center for text-justify");C.setJustify(e)}if(_){const e=_(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");C.setTextBaseline(e)}return I&&C.setPadding(I(t)),x&&C.setKeepUpright(x(t)),C}}function eh(t,e){return"icon-src"in t?nh(t,e):"shape-points"in t?ih(t,e):"circle-radius"in t?rh(t,e):null}function nh(t,e){const n="icon-",i=n+"src",r=wh(t[i],i),o=ch(t,n+"anchor",e),s=dh(t,n+"scale",e),a=oh(t,n+"opacity",e),l=ch(t,n+"displacement",e),h=oh(t,n+"rotation",e),u=lh(t,n+"rotate-with-view",e),c=mh(t,n+"anchor-origin"),g=yh(t,n+"anchor-x-units"),d=yh(t,n+"anchor-y-units"),f=xh(t,n+"color"),A=ph(t,n+"cross-origin"),p=vh(t,n+"offset"),m=mh(t,n+"offset-origin"),y=fh(t,n+"width"),v=fh(t,n+"height"),_=Ah(t,n+"size"),x=_h(t,n+"declutter-mode"),I=new Ya({src:r,anchorOrigin:c,anchorXUnits:g,anchorYUnits:d,color:f,crossOrigin:A,offset:p,offsetOrigin:m,height:v,width:y,size:_,declutterMode:x});return function(t){return a&&I.setOpacity(a(t)),l&&I.setDisplacement(l(t)),h&&I.setRotation(h(t)),u&&I.setRotateWithView(u(t)),s&&I.setScale(s(t)),o&&I.setAnchor(o(t)),I}}function ih(t,e){const n="shape-",i=n+"points",r=n+"radius",o=Ch(t[i],i),s=Ch(t[r],r),a=Jl(t,n,e),l=$l(t,n,e),h=dh(t,n+"scale",e),u=ch(t,n+"displacement",e),c=oh(t,n+"rotation",e),g=lh(t,n+"rotate-with-view",e),d=fh(t,n+"radius2"),f=fh(t,n+"angle"),A=_h(t,n+"declutter-mode"),p=new Rs({points:o,radius:s,radius2:d,angle:f,declutterMode:A});return function(t){return a&&p.setFill(a(t)),l&&p.setStroke(l(t)),u&&p.setDisplacement(u(t)),c&&p.setRotation(c(t)),g&&p.setRotateWithView(g(t)),h&&p.setScale(h(t)),p}}function rh(t,e){const n="circle-",i=Jl(t,n,e),r=$l(t,n,e),o=oh(t,n+"radius",e),s=dh(t,n+"scale",e),a=ch(t,n+"displacement",e),l=oh(t,n+"rotation",e),h=lh(t,n+"rotate-with-view",e),u=_h(t,n+"declutter-mode"),c=new Ls({radius:5,declutterMode:u});return function(t){return o&&c.setRadius(o(t)),i&&c.setFill(i(t)),r&&c.setStroke(r(t)),a&&c.setDisplacement(a(t)),l&&c.setRotation(l(t)),h&&c.setRotateWithView(h(t)),s&&c.setScale(s(t)),c}}function oh(t,e,n){if(!(e in t))return;const i=Ll(t[e],Za,n);return function(t){return Ch(i(t),e)}}function sh(t,e,n){if(!(e in t))return null;const i=Ll(t[e],Ka,n);return function(t){return wh(i(t),e)}}function ah(t,e,n){const i=sh(t,e+"pattern-src",n),r=gh(t,e+"pattern-offset",n),o=gh(t,e+"pattern-size",n),s=hh(t,e+"color",n);return function(t){return{src:i(t),offset:r&&r(t),size:o&&o(t),color:s&&s(t)}}}function lh(t,e,n){if(!(e in t))return null;const i=Ll(t[e],Xa,n);return function(t){const n=i(t);if("boolean"!=typeof n)throw new Error("Expected a boolean for "+e);return n}}function hh(t,e,n){if(!(e in t))return null;const i=Ll(t[e],Ja,n);return function(t){return Eh(i(t),e)}}function uh(t,e,n){if(!(e in t))return null;const i=Ll(t[e],$a,n);return function(t){return Ih(i(t),e)}}function ch(t,e,n){if(!(e in t))return null;const i=Ll(t[e],$a,n);return function(t){const n=Ih(i(t),e);if(2!==n.length)throw new Error("Expected two numbers for "+e);return n}}function gh(t,e,n){if(!(e in t))return null;const i=Ll(t[e],$a,n);return function(t){return bh(i(t),e)}}function dh(t,e,n){if(!(e in t))return null;const i=Ll(t[e],$a|Za,n);return function(t){return Sh(i(t),e)}}function fh(t,e){const n=t[e];if(void 0!==n){if("number"!=typeof n)throw new Error("Expected a number for "+e);return n}}function Ah(t,e){const n=t[e];if(void 0!==n){if("number"==typeof n)return Yo(n);if(!Array.isArray(n))throw new Error("Expected a number or size array for "+e);if(2!==n.length||"number"!=typeof n[0]||"number"!=typeof n[1])throw new Error("Expected a number or size array for "+e);return n}}function ph(t,e){const n=t[e];if(void 0!==n){if("string"!=typeof n)throw new Error("Expected a string for "+e);return n}}function mh(t,e){const n=t[e];if(void 0!==n){if("bottom-left"!==n&&"bottom-right"!==n&&"top-left"!==n&&"top-right"!==n)throw new Error("Expected bottom-left, bottom-right, top-left, or top-right for "+e);return n}}function yh(t,e){const n=t[e];if(void 0!==n){if("pixels"!==n&&"fraction"!==n)throw new Error("Expected pixels or fraction for "+e);return n}}function vh(t,e){const n=t[e];if(void 0!==n)return Ih(n,e)}function _h(t,e){const n=t[e];if(void 0!==n){if("string"!=typeof n)throw new Error("Expected a string for "+e);if("declutter"!==n&&"obstacle"!==n&&"none"!==n)throw new Error("Expected declutter, obstacle, or none for "+e);return n}}function xh(t,e){const n=t[e];if(void 0!==n)return Eh(n,e)}function Ih(t,e){if(!Array.isArray(t))throw new Error("Expected an array for "+e);const n=t.length;for(let i=0;i4)throw new Error("Expected a color with 3 or 4 values for "+e);return n}function bh(t,e){const n=Ih(t,e);if(2!==n.length)throw new Error("Expected an array of two numbers for "+e);return n}function Sh(t,e){return"number"==typeof t?t:bh(t,e)}const Bh={RENDER_ORDER:"renderOrder"};class Mh extends ba{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(Bh.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const n=this.getDeclutter();n in t.declutter||(t.declutter[n]=new Ta(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(Bh.RENDER_ORDER,t)}setStyle(t){this.style_=void 0===t?Fs:t;const e=Th(t);this.styleFunction_=null===t?void 0:Qs(e),this.changed()}setDeclutter(t){this.declutter_=t?String(t):void 0,this.changed()}}function Th(t){if(void 0===t)return Fs;if(!t)return null;if("function"==typeof t||t instanceof Gs)return t;if(!Array.isArray(t))return Xl([t]);if(0===t.length)return[];const e=t.length,n=t[0];if(n instanceof Gs){const n=new Array(e);for(let i=0;ia&&(this.instructions.push([zh.CUSTOM,a,h,t,n,tr,r]),this.hitDetectionInstructions.push([zh.CUSTOM,a,h,t,i||n,tr,r]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([zh.CUSTOM,a,h,t,n,void 0,r]),this.hitDetectionInstructions.push([zh.CUSTOM,a,h,t,i||n,void 0,r]);break}this.endGeometry(e)}beginGeometry(t,e,n){this.beginGeometryInstruction1_=[zh.BEGIN_GEOMETRY,e,0,t,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[zh.BEGIN_GEOMETRY,e,0,t,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const n=t.length;let i,r,o=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(t){const e=t.fillStyle,n=[zh.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(t.fillPatternScale),n}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[zh.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const n=t.fillStyle;("string"!=typeof n||t.currentFillStyle!=n)&&(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)}updateStrokeStyle(t,e){const n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!T(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=l)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[zh.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Bt(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;St(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const Gh=Nh;class jh extends Gh{constructor(t,e,n,i){super(t,e,n,i),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e,n){if(!this.image_||this.maxExtent&&!Tt(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,n);const i=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,r);this.instructions.push([zh.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([zh.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e,n){if(!this.image_)return;this.beginGeometry(t,e,n);const i=t.getFlatCoordinates(),r=[];for(let a=0,l=i.length;a=t){const e=(t-a+c)/c,g=Ue(n,h,e),d=Ue(i,u,e);l.push(g,d),o.push(l),l=[g,d],a==t&&(s+=r),a=0}else if(a0&&o.push(l),o}function Xh(t,e,n,i,r){let o,s,a,l,h,u,c,g,d,f,A=n,p=n,m=0,y=0,v=n;for(s=n;st&&(y>m&&(m=y,A=v,p=s),y=0,v=s-r)),a=l,c=d,g=f),h=n,u=i}return y+=l,y>m?[v,s]:[A,p]}const Zh={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class Kh extends Gh{constructor(t,e,n,i){super(t,e,n,i),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textKeepUpright_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[ls]={fillStyle:ls},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,n){const i=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(""===this.text_||!o||!i&&!r)return;const s=this.coordinates;let a=s.length;const l=t.getType();let h=null,u=t.getStride();if("line"!==o.placement||"LineString"!=l&&"MultiLineString"!=l&&"Polygon"!=l&&"MultiPolygon"!=l){let i=o.overflow?null:[];switch(l){case"Point":case"MultiPoint":h=t.getFlatCoordinates();break;case"LineString":h=t.getFlatMidpoint();break;case"Circle":h=t.getCenter();break;case"MultiLineString":h=t.getFlatMidpoints(),u=2;break;case"Polygon":h=t.getFlatInteriorPoint(),o.overflow||i.push(h[2]/this.resolution),u=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();h=[];for(let t=0,n=e.length;t{const i=s[2*(t+n)]===h[n*u]&&s[2*(t+n)+1]===h[n*u+1];return i||--t,i})}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e,n);let c=o.padding;if(c!=ms&&(o.scale[0]<0||o.scale[1]<0)){let t=o.padding[0],e=o.padding[1],n=o.padding[2],i=o.padding[3];o.scale[0]<0&&(e=-e,i=-i),o.scale[1]<0&&(t=-t,n=-n),c=[t,e,n,i]}const g=this.pixelRatio;this.instructions.push([zh.DRAW_IMAGE,a,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,c==ms?ms:c.map((function(t){return t*g})),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]);const d=1/g,f=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=ls,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([zh.DRAW_IMAGE,a,r,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[d,d],NaN,this.declutterMode_,this.declutterImageWithText_,c,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?ls:this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]),o.backgroundFill&&(this.state.fillStyle=f,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!ie(this.maxExtent,t.getExtent()))return;let i;if(h=t.getFlatCoordinates(),"LineString"==l)i=[h.length];else if("MultiLineString"==l)i=t.getEnds();else if("Polygon"==l)i=t.getEnds().slice(0,1);else if("MultiPolygon"==l){const e=t.getEndss();i=[];for(let t=0,n=e.length;tthis.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(t){return Y()}getData(t){return null}prepareFrame(t){return Y()}renderFrame(t,e){return Y()}forEachFeatureAtCoordinate(t,e,n,i,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;(e.getState()===Pr.LOADED||e.getState()===Pr.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=Pr.LOADED&&e!=Pr.ERROR&&t.addEventListener(G.CHANGE,this.boundHandleImageChange_),e==Pr.IDLE&&(t.load(),e=t.getState()),e==Pr.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}const iu=nu;class ru extends _{constructor(t,e,n,i){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=i}}const ou=ru;class su{constructor(){A(this,"pushMethodArgs_",(...t)=>(this.instructions_[this.zIndex+this.offset_].push(t),this)),this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(po(),{get:(t,e)=>{if("function"==typeof po()[e])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,n)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,n),!0)})}pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach(e=>{for(let n=0,i=e.length;nt[2]}else B=x>b;const M=Math.PI,T=[],D=w+i===e;let R;if(e=w,m=0,y=C,d=t[e],f=t[e+1],D){v(),R=Math.atan2(f-p,d-A),B&&(R+=R>0?-M:M);const t=(b+x)/2,e=(S+I)/2;return T[0]=[t,e,(E-o)/2,R,r],T}r=r.replace(/\n/g," ");for(let k=0,L=r.length;k0?-M:M),void 0!==R){let e=t-R;if(e+=e>M?-2*M:e<-M?2*M:0,Math.abs(e)>s)return null}R=t;const c=k;let g=0;for(;k0&&t.push("\n",""),t.push(e,""),t}class wu{constructor(t,e,n,i,r){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=ut(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=r?new au:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,n,i){const r=t+e+n+i;if(this.labels_[r])return this.labels_[r];const o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,a=this.textStates[e],l=this.pixelRatio,h=[a.scale[0]*l,a.scale[1]*l],u=a.justify?Zh[a.justify]:xu(Array.isArray(t)?t[0]:t,a.textAlign||As),c=i&&o.lineWidth?o.lineWidth:0,g=Array.isArray(t)?t:String(t).split("\n").reduce(Iu,[]),{width:d,height:f,widths:A,heights:p,lineWidths:m}=Bs(a,g),y=d+c,v=[],_=(y+2)*h[0],x=(f+c)*h[1],I={width:_<0?Math.floor(_):Math.ceil(_),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:v};(1!=h[0]||1!=h[1])&&v.push("scale",h),i&&(v.push("strokeStyle",o.strokeStyle),v.push("lineWidth",c),v.push("lineCap",o.lineCap),v.push("lineJoin",o.lineJoin),v.push("miterLimit",o.miterLimit),v.push("setLineDash",[o.lineDash]),v.push("lineDashOffset",o.lineDashOffset)),n&&v.push("fillStyle",s.fillStyle),v.push("textBaseline","middle"),v.push("textAlign","center");const w=.5-u;let C=u*y+w*c;const E=[],b=[];let S,B=0,M=0,T=0,D=0;for(let R=0,k=g.length;Rt?t-l:r,v=o+h>e?e-h:o,_=d[3]+y*c[0]+d[1],x=d[0]+v*c[1]+d[2],I=p-d[3],w=m-d[0];let C;return(f||0!==u)&&(Au[0]=I,yu[0]=I,Au[1]=w,pu[1]=w,pu[0]=I+_,mu[0]=pu[0],mu[1]=w+x,yu[1]=mu[1]),0!==u?(C=vt(ut(),n,i,1,1,u,-n,-i),At(C,Au),At(C,pu),At(C,mu),At(C,yu),Pt(Math.min(Au[0],pu[0],mu[0],yu[0]),Math.min(Au[1],pu[1],mu[1],yu[1]),Math.max(Au[0],pu[0],mu[0],yu[0]),Math.max(Au[1],pu[1],mu[1],yu[1]),fu)):Pt(Math.min(I,I+_),Math.min(w,w+x),Math.max(I,I+_),Math.max(w,w+x),fu),g&&(p=Math.round(p),m=Math.round(m)),{drawImageX:p,drawImageY:m,drawImageW:y,drawImageH:v,originX:l,originY:h,declutterBox:{minX:fu[0],minY:fu[1],maxX:fu[2],maxY:fu[3],value:A},canvasTransform:C,scale:c}}replayImageOrLabel_(t,e,n,i,r,o,s){const a=!(!o&&!s),l=i.declutterBox,h=s?s[2]*i.scale[0]/2:0;return l.minX-h<=e[0]&&l.maxX+h>=0&&l.minY-h<=e[1]&&l.maxY+h>=0&&(a&&this.replayTextBackground_(t,Au,pu,mu,yu,o,s),Ms(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const n=At(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(n[0]%i,n[1]%i),1!==e&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,n,i){const r=this.textStates[e],o=this.createLabel(t,e,i,n),s=this.strokeStates[n],a=this.pixelRatio,l=xu(Array.isArray(t)?t[0]:t,r.textAlign||As),h=Zh[r.textBaseline||ps],u=s&&s.lineWidth?s.lineWidth:0,c=o.width/a-2*r.scale[0],g=l*c+2*(.5-l)*u,d=h*o.height/a+2*(.5-h)*u;return{label:o,anchorX:g,anchorY:d}}execute_(t,e,n,i,r,o,s,a){const l=this.zIndexContext_;let h;this.pixelCoordinates_&&T(n,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Ei(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),ft(this.renderedTransform_,n));let u=0;const c=i.length;let g,d,f,A,p,m,y,v,_,x,I,w,C,E=0,b=0,S=0,B=null,M=null;const D=this.coordinateCache_,R=this.viewRotation_,k=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,L={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},P=this.instructions!=i||this.overlaps?0:200;let Q,z,F,O;for(;uP&&(this.fill_(t),b=0),S>P&&(t.stroke(),S=0),!b&&!S&&(t.beginPath(),p=NaN,m=NaN),++u;break;case zh.CIRCLE:E=n[1];const i=h[E],c=h[E+1],T=h[E+2],N=h[E+3],G=T-i,j=N-c,U=Math.sqrt(G*G+j*j);t.moveTo(i+U,c),t.arc(i,c,U,0,2*Math.PI,!0),++u;break;case zh.CLOSE_PATH:t.closePath(),++u;break;case zh.CUSTOM:E=n[1],g=n[2];const q=n[3],V=n[4],H=n[5];L.geometry=q,L.feature=Q,u in D||(D[u]=[]);const Y=D[u];H?H(h,E,g,2,Y):(Y[0]=h[E],Y[1]=h[E+1],Y.length=2),l&&(l.zIndex=n[6]),V(Y,L),++u;break;case zh.DRAW_IMAGE:E=n[1],g=n[2],_=n[3],d=n[4],f=n[5];let W=n[6];const X=n[7],Z=n[8],K=n[9],J=n[10];let $=n[11];const tt=n[12];let et=n[13];A=n[14]||"declutter";const nt=n[15];if(!_&&n.length>=20){x=n[19],I=n[20],w=n[21],C=n[22];const t=this.drawLabelWithPointPlacement_(x,I,w,C);_=t.label,n[3]=_;const e=n[23];d=(t.anchorX-e)*this.pixelRatio,n[4]=d;const i=n[24];f=(t.anchorY-i)*this.pixelRatio,n[5]=f,W=_.height,n[6]=W,et=_.width,n[13]=et}let it,rt,ot,st;n.length>25&&(it=n[25]),n.length>17?(rt=n[16],ot=n[17],st=n[18]):(rt=ms,ot=!1,st=!1),J&&k?$+=R:!J&&!k&&($-=R);let at=0;for(;E!bu.includes(t));class Bu{constructor(t,e,n,i,r,o,s){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=ut(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(r,s)}clip(t,e){const n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()}createExecutors_(t,e){for(const n in t){let i=this.executorsByZIndex_[n];void 0===i&&(i={},this.executorsByZIndex_[n]=i);const r=t[n];for(const t in r){const n=r[t];i[t]=new Cu(this.resolution_,this.pixelRatio_,this.overlaps_,n,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const n=this.executorsByZIndex_[e];for(let e=0,i=t.length;e0){if(!o||"none"===n||"Image"!==g&&"Text"!==g||o.includes(t)){const n=(c[l]-3)/4,o=i-n%s,a=i-(n/s|0),h=r(t,e,o*o+a*a);if(h)return h}h.clearRect(0,0,s,s);break}}const f=Object.keys(this.executorsByZIndex_).map(Number);let A,p,m,y,v;for(f.sort(E),A=f.length-1;A>=0;--A){const t=f[A].toString();for(m=this.executorsByZIndex_[t],p=Eu.length-1;p>=0;--p)if(g=Eu[p],y=m[g],void 0!==y&&(v=y.executeHitDetection(h,a,n,d,u),v))return v}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const n=e[0],i=e[1],r=e[2],o=e[3],s=[n,i,n,o,r,o,r,i];return Ei(s,0,8,2,t,s),s}isEmpty(){return F(this.executorsByZIndex_)}execute(t,e,n,i,r,o,s){const a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(s?b:E),o=o||Eu;const l=Eu.length;for(let h=0,u=a.length;hd.execute(t,e,n,i,r,s)):d.execute(c,e,n,i,r,s),f&&c.restore(),o){o.offset();const t=a[h]*l+g;this.deferredZIndexContexts_[t]||(this.deferredZIndexContexts_[t]=[]),this.deferredZIndexContexts_[t].push(o)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(E);for(let n=0,i=e.length;n{t.draw(this.renderedContext_),t.clear()}),t[e[n]].length=0}}const Mu={};function Tu(t){if(void 0!==Mu[t])return Mu[t];const e=2*t+1,n=t*t,i=new Array(n+1);for(let o=0;o<=t;++o)for(let r=0;r<=t;++r){const s=o*o+r*r;if(s>n)break;let a=i[s];a||(a=[],i[s]=a),a.push(4*((t+o)*e+(t+r))+3),o>0&&a.push(4*((t-o)*e+(t+r))+3),r>0&&(a.push(4*((t+o)*e+(t-r))+3),o>0&&a.push(4*((t-o)*e+(t-r))+3))}const r=[];for(let o=0,s=i.length;ot*this.pixelRatio_),lineDashOffset:(r||cs)*this.pixelRatio_,lineJoin:void 0!==o?o:gs,lineWidth:(void 0!==s?s:ys)*this.pixelRatio_,miterLimit:void 0!==a?a:ds,strokeStyle:Zo(t||fs)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const n=t.getPixelRatio(this.pixelRatio_),i=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*n,this.imageAnchorY_=i[1]*n,this.imageHeight_=e[1]*n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=e[0]*n}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:Zo(t||ls)}}else this.textFillState_=null;const n=t.getStroke();if(n){const t=n.getColor(),e=n.getLineCap(),i=n.getLineDash(),r=n.getLineDashOffset(),o=n.getLineJoin(),s=n.getWidth(),a=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:hs,lineDash:i||us,lineDashOffset:r||cs,lineJoin:void 0!==o?o:gs,lineWidth:void 0!==s?s:ys,miterLimit:void 0!==a?a:ds,strokeStyle:Zo(t||fs)}}else this.textStrokeState_=null;const i=t.getFont(),r=t.getOffsetX(),o=t.getOffsetY(),s=t.getRotateWithView(),a=t.getRotation(),l=t.getScaleArray(),h=t.getText(),u=t.getTextAlign(),c=t.getTextBaseline();this.textState_={font:void 0!==i?i:as,textAlign:void 0!==u?u:As,textBaseline:void 0!==c?c:ps},this.text_=void 0!==h?Array.isArray(h)?h.reduce((t,e,n)=>t+(n%2?" ":e),""):h:"",this.textOffsetX_=void 0!==r?this.pixelRatio_*r:0,this.textOffsetY_=void 0!==o?this.pixelRatio_*o:0,this.textRotateWithView_=void 0!==s&&s,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}}const ku=Ru,Lu=.5;function Pu(t,e,n,i,r,o,s,a,l){const h=l?xi(r):r,u=t[0]*Lu,c=t[1]*Lu,g=fo(u,c);g.imageSmoothingEnabled=!1;const d=g.canvas,f=new ku(g,Lu,r,null,s,a,l?gi(yi(),l):null),A=n.length,p=Math.floor(16777215/A),m={};for(let v=1;v<=A;++v){const t=n[v-1],e=t.getStyleFunction()||i;if(!e)continue;let r=e(t,o);if(!r)continue;Array.isArray(r)||(r=[r]);const s=(v*p).toString(16).padStart(7,"#00000");for(let n=0,i=r.length;n0;return c&&Promise.all(l).then(()=>r(null)),qu(t,e,n,i,o,s,a),c}function qu(t,e,n,i,r,o,s){const a=n.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(i,r);if(n.getRenderer())Vu(t,l,n,e,s);else{const i=Fu[l.getType()];i(t,l,n,e,s,o)}}function Vu(t,e,n,i,r){if("GeometryCollection"!=e.getType())t.getBuilder(n.getZIndex(),"Default").drawCustom(e,i,n.getRenderer(),n.getHitDetectionRenderer(),r);else{const o=e.getGeometries();for(let e=0,s=o.length;e{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=this.frameState.size.slice(),e=this.renderedCenter_,n=this.renderedResolution_,i=this.renderedRotation_,r=this.renderedProjection_,o=this.wrappedRenderedExtent_,s=this.getLayer(),a=[],l=t[0]*Lu,h=t[1]*Lu;a.push(this.getRenderTransform(e,n,i,Lu,l,h,0).slice());const u=s.getSource(),c=r.getExtent();if(u.getWrapX()&&r.canWrapX()&&!Dt(c,o)){let t=o[0];const r=ne(c);let s,u=0;for(;tc[2];)++u,s=r*u,a.push(this.getRenderTransform(e,n,i,Lu,l,h,s).slice()),t-=r}this.hitDetectionImageData_=Pu(t,a,this.renderedFeatures_,s.getStyleFunction(),o,n,i,Nu(n,this.renderedPixelRatio_),null)}e(Qu(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,n,i,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,s=e.viewState.rotation,a=this.getLayer(),l={},h=function(t,e,n){const o=X(t),s=l[o];if(s){if(!0!==s&&nt.value):null)}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),n=e.getSource();if(!n)return!1;const i=t.viewHints[Ws.ANIMATING],r=t.viewHints[Ws.INTERACTING],o=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(this.ready&&!o&&i||!s&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const a=t.extent,l=t.viewState,h=l.projection,u=l.resolution,c=t.pixelRatio,g=e.getRevision(),d=e.getRenderBuffer();let f=e.getRenderOrder();void 0===f&&(f=Ou);const A=l.center.slice(),p=St(a,d*u),m=p.slice(),y=[p.slice()],v=h.getExtent();if(n.getWrapX()&&h.canWrapX()&&!Dt(v,t.extent)){const t=ne(v),e=Math.max(ne(p)/2,t);p[0]=v[0]-e,p[2]=v[2]+e,sn(A,h);const n=he(y[0],h);n[0]v[0]&&n[2]>v[2]&&y.push([n[0]-t,n[1],n[2]-t,n[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==g&&this.renderedRenderOrder_==f&&this.renderedFrameDeclutter_===!!t.declutter&&Dt(this.wrappedRenderedExtent_,p))return T(this.renderedExtent_,m)||(this.hitDetectionImageData_=null,this.renderedExtent_=m),this.renderedCenter_=A,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const _=new tu(Gu(u,c),p,u,c);let x;for(let M=0,T=y.length;M{let i;const r=t.getStyleFunction()||e.getStyleFunction();if(r&&(i=r(t,u)),i){const e=this.renderFeature(t,I,i,_,x,this.getLayer().getDeclutter(),n);w=w&&!e}},E=xi(p),b=n.getFeaturesInExtent(E);f&&b.sort(f);for(let M=0,T=b.length;M=e[0]||t[1]<=e[1]&&t[3]>=e[1]||qt(t,this.intersectsCoordinate.bind(this))}return!1}setCenter(t){const e=this.stride,n=this.flatCoordinates[e]-this.flatCoordinates[0],i=t.slice();i[e]=i[0]+n;for(let r=1;rt.clone())}const hc=ac;class uc extends Qi{constructor(t,e,n){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(void 0!==e&&n)this.setFlatCoordinates(e,t),this.ends_=n;else{const e=t,n=[],i=[];for(let t=0,o=e.length;t{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const n=this.simplifiedGeometry_.getFlatCoordinates();let i;switch(this.type_){case"LineString":n.length=Wi(n,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,n,0),i=[n.length];break;case"MultiLineString":i=[],n.length=Xi(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,n,0,i);break;case"Polygon":i=[],n.length=Ji(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),n,0,i);break}return i&&(this.simplifiedGeometry_=new yc(this.type_,n,i,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_}),this}}yc.prototype.getFlatCoordinates=yc.prototype.getOrientedFlatCoordinates;const vc=yc;class _c extends ${constructor(t){var e;super(),this.projection=ni(t.projection),this.attributions_=xc(t.attributions),this.attributionsCollapsible_=null==(e=t.attributionsCollapsible)||e,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const n=this;this.viewPromise_=new Promise((function(t,e){n.viewResolver=t,n.viewRejector=e}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=xc(t),this.changed()}setState(t){this.state_=t,this.changed()}}function xc(t){return t?"function"==typeof t?t:(Array.isArray(t)||(t=[t]),e=>t):null}const Ic=_c,wc={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function Cc(t,e){return[[-1/0,-1/0,1/0,1/0]]}function Ec(t,e){return[t]}let bc=!1;function Sc(t,e,n,i,r,o,s){const a=new XMLHttpRequest;a.open("GET","function"==typeof t?t(n,i,r):t,!0),"arraybuffer"==e.getType()&&(a.responseType="arraybuffer"),a.withCredentials=bc,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){const t=e.getType();try{let i;"text"==t||"json"==t?i=a.responseText:"xml"==t?i=a.responseXML||a.responseText:"arraybuffer"==t&&(i=a.response),i?o(e.readFeatures(i,{extent:n,featureProjection:r}),e.readProjection(i)):s()}catch(i){s()}}else s()},a.onerror=s,a.send()}function Bc(t,e){return function(n,i,r,o,s){const a=this;Sc(t,e,n,i,r,(function(t,e){a.addFeatures(t),void 0!==o&&o(t)}),s||L)}}class Mc extends _{constructor(t,e,n){super(t),this.feature=e,this.features=n}}class Tc extends Ic{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=L,this.format_=t.format||null,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&(ot(this.format_,"`format` must be set when `url` is set"),this.loader_=Bc(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:Cc;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let n,i;this.featuresRtree_=e?new rc:null,this.loadedExtentsRtree_=new rc,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?i=t.features:t.features&&(n=t.features,i=n.getArray()),!e&&void 0===n&&(n=new rt(i)),void 0!==i&&this.addFeaturesInternal(i),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=X(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const n=t.getGeometry();if(n){const e=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new Mc(wc.ADDFEATURE,t))}setupChangeEvents_(t,e){e instanceof vc||(this.featureChangeKeys_[t]=[j(e,G.CHANGE,this.handleFeatureChange_,this),j(e,x.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let n=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof vc){const i=this.idIndex_[t];i instanceof vc?Array.isArray(i)?i.push(e):this.idIndex_[t]=[i,e]:n=!1}else n=!1;else this.idIndex_[t]=e}return n&&(ot(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),n}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],n=[],i=[];for(let r=0,o=t.length;r{e||(e=!0,this.addFeature(t.element),e=!1)}),t.addEventListener(tt.REMOVE,t=>{e||(e=!0,this.removeFeature(t.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(q);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach(t=>{this.removeFeatureInternal(t)});for(const t in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new Mc(wc.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){const i=n.getGeometry();if(i instanceof vc||i.intersectsCoordinate(t))return e(n)}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(n){const i=n.getGeometry();if(i instanceof vc||i.intersectsExtent(t)){const t=e(n);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),F(this.nullGeometryFeatures_)||M(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const n=ue(t,e);return[].concat(...n.map(t=>this.featuresRtree_.getInExtent(t)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const n=t[0],i=t[1];let r=null;const o=[NaN,NaN];let s=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||R,this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),l=s;if(s=e instanceof vc?0:e.closestPointXY(n,i,o,s),s{--this.loadingExtentsCount_,this.dispatchEvent(new Mc(wc.FEATURESLOADEND,void 0,t))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new Mc(wc.FEATURESLOADERROR))}),i.insert(t,{extent:t.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_,n=e.forEachInExtent(t,(function(e){if(Ot(e.extent,t))return e}));n&&e.remove(n)}removeFeatures(t){let e=!1;for(let n=0,i=t.length;nt)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Y()}getAlpha(t,e){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;const i=e-n+1e3/60;return i>=this.transition_?1:ha(i/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}disposeInternal(){this.release(),super.disposeInternal()}}const Fc=zc;class Oc extends Fc{constructor(t,e,n,i,r,o){super(t,e,o),this.crossOrigin_=i,this.src_=n,this.key=n,this.image_=new Image,null!==i&&(this.image_.crossOrigin=i),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=Qc.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=Qc.ERROR,this.unlistenImage_(),this.image_=Nc(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=Qc.LOADED:this.state=Qc.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==Qc.ERROR&&(this.state=Qc.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Qc.IDLE&&(this.state=Qc.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Co(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}}function Nc(){const t=fo(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}const Gc=Oc;class jc{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[n+2]>t;)n-=3;const i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;const r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const Uc=jc;class qc extends w{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){Y()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;vt(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),_t(i,n)}forEachFeatureAtCoordinate(t,e,n,i,r,o,s,a){let l;const h=e.viewState;function u(t,e,n,i){return r.call(o,e,t?n:null,i)}const c=h.projection,g=sn(t.slice(),c),d=[[0,0]];if(c.canWrapX()&&i){const t=c.getExtent(),e=ne(t);d.push([-e,0],[e,0])}const f=e.layerStatesArray,A=f.length,p=[],m=[];for(let v=0;v=0;--i){const r=f[i],o=r.layer;if(o.hasRenderer()&&Ea(r,h)&&s.call(a,o)){const i=o.getRenderer(),s=o.getSource();if(i&&s){const o=s.getWrapX()?g:t,a=u.bind(null,r.managed);m[0]=o[0]+d[v][0],m[1]=o[1]+d[v][1],l=i.forEachFeatureAtCoordinate(m,e,n,a,p)}if(l)return l}}if(0===p.length)return;const y=1/p.length;return p.forEach((t,e)=>t.distanceSq+=e*y),p.sort((t,e)=>t.distanceSq-e.distanceSq),p.some(t=>l=t.callback(t.feature,t.layer,t.geometry)),l}hasFeatureAtCoordinate(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,R,this,r,o)}getMap(){return this.map_}renderFrame(t){Y()}scheduleExpireIconCache(t){Do.canExpireCache()&&t.postRenderFunctions.push(Vc)}}function Vc(t,e){Do.expire()}const Hc=qc;class Yc extends Hc{constructor(t){super(t),this.fontChangeListenerKey_=j(vs,x.PROPERTYCHANGE,t.redrawText,t),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=ts+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const i=new ou(t,void 0,e);n.dispatchEvent(i)}}disposeInternal(){q(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(Lr.PRECOMPOSE,t);const e=t.layerStatesArray.sort((t,e)=>t.zIndex-e.zIndex);e.some(t=>t.layer instanceof Dh&&t.layer.getDeclutter())&&(t.declutter={});const n=t.viewState;this.children_.length=0;const i=[];let r=null;for(let o=0,s=e.length;o=0;--n){const i=e[n],r=i.layer;r.getDeclutter()&&r.renderDeclutter(t,i)}e.forEach(e=>e.layer.renderDeferred(t))}}}const Wc=Yc;class Xc extends _{constructor(t,e){super(t),this.layer=e}}const Zc={LAYERS:"layers"};class Kc extends Ys{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Zc.LAYERS,this.handleLayersChanged_),n?Array.isArray(n)?n=new rt(n.slice(),{unique:!0}):ot("function"==typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new rt(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(q),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(j(t,tt.ADD,this.handleLayersAdd_,this),j(t,tt.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(q);z(this.listenerKeys_);const e=t.getArray();for(let n=0,i=e.length;n{this.clickTimeoutId_=void 0;const e=new ng(ig.SINGLECLICK,this.map_,t);this.dispatchEvent(e)},250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==ig.POINTERUP||e.type==ig.POINTERCANCEL){delete this.trackedTouches_[n];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else(e.type==ig.POINTERDOWN||e.type==ig.POINTERMOVE)&&(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new ng(ig.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(q),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new ng(ig.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push(j(t,ig.POINTERMOVE,this.handlePointerMove_,this),j(t,ig.POINTERUP,this.handlePointerUp_,this),j(this.element_,ig.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push(j(this.element_.getRootNode(),ig.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new ng(ig.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new ng(ig.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;(!e||e.defaultPrevented)&&("boolean"!=typeof t.cancelable||!0===t.cancelable)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(q(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(G.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(q(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(q),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const sg=og,ag={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},lg={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},hg=1/0;class ug{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,z(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const i=this.keyFunction_(n);return delete this.queuedElements_[i],n}enqueue(t){ot(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=hg&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],s=t;for(;t>1;){const r=this.getLeftChildIndex_(t),o=this.getRightChildIndex_(t),s=ot;){const t=this.getParentIndex_(e);if(!(i[t]>o))break;n[e]=n[t],i[e]=i[t],e=t}n[e]=r,i[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let i=0;const r=e.length;let o,s,a;for(s=0;s0;){const t=this.dequeue()[0],e=t.getKey();t.getState()===Qc.IDLE&&!(e in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[e]=!0,++this.tilesLoading_,++n,t.load())}}}const dg=gg;function fg(t,e,n,i,r){if(!t||!(n in t.wantedTiles)||!t.wantedTiles[n][e.getKey()])return hg;const o=t.viewState.center,s=i[0]-o[0],a=i[1]-o[1];return 65536*Math.log(r)+Math.sqrt(s*s+a*a)/r}class Ag extends ${constructor(t){super();const e=t.element;e&&!t.target&&!e.style.pointerEvents&&(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){var t;null==(t=this.element)||t.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){var e,n;this.map_&&(null==(e=this.element)||e.remove());for(let i=0,r=this.listenerKeys.length;ie.getAttributions(t)));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach(t=>n.add(t)):n.add(this.attributions_)),!this.overrideCollapsible_){const t=!e.some(t=>{var e;return!1===(null==(e=t.getSource())?void 0:e.getAttributionsCollapsible())});this.setCollapsible(t)}return Array.from(n)}updateElement_(t){return p(this,null,(function*(){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=yield Promise.all(this.collectSourceAttributions_(t).map(t=>Q(()=>t))),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!T(e,this.renderedAttributions_)){xo(this.ulElement_);for(let t=0,n=e.length;t0&&e%(2*Math.PI)!==0?t.animate({rotation:0,duration:this.duration_,easing:ua}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const t="rotate("+n+"rad)";if(this.autoHide_){const t=this.element.classList.contains(Jo);t||0!==n?t&&0!==n&&this.element.classList.remove(Jo):this.element.classList.add(Jo)}this.label_.style.transform=t}this.rotation_=n}}const _g=vg;class xg extends pg{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",r=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",o=void 0!==t.zoomInLabel?t.zoomInLabel:"+",s=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=i,h.setAttribute("type","button"),h.title=a,h.appendChild("string"==typeof o?document.createTextNode(o):o),h.addEventListener(G.CLICK,this.handleClick_.bind(this,n),!1);const u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=l,u.appendChild("string"==typeof s?document.createTextNode(s):s),u.addEventListener(G.CLICK,this.handleClick_.bind(this,-n),!1);const c=e+" "+ts+" "+ns,g=this.element;g.className=c,g.appendChild(h),g.appendChild(u),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const n=e.getZoom();if(void 0!==n){const i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:ua})):e.setZoom(i)}}}const Ig=xg;function wg(t){t=t||{};const e=new rt;return(void 0===t.zoom||t.zoom)&&e.push(new Ig(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new _g(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new yg(t.attributionOptions)),e}const Cg={ACTIVE:"active"};class Eg extends ${constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Cg.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(Cg.ACTIVE,t)}setMap(t){this.map_=t}}function bg(t,e,n){const i=t.getCenterInternal();if(i){const r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:ga,center:t.getConstrainedCenter(r)})}}function Sg(t,e,n,i){const r=t.getZoom();if(void 0===r)return;const o=t.getConstrainedZoom(r+e),s=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:n,duration:void 0!==i?i:250,easing:ua})}const Bg=Eg;class Mg extends Bg{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==ig.DBLCLICK){const n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_,s=i.getView();Sg(s,o,r,this.duration_),n.preventDefault(),e=!0}return!e}}const Tg=Mg;class Dg extends Bg{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==ig.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==ig.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==ig.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==ig.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function Rg(t){const e=t.length;let n=0,i=0;for(let r=0;r0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const Zg=Xg;class Kg extends kg{constructor(t){t=t||{},super({stopDown:k}),this.condition_=t.condition?t.condition:Qg,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!Yg(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===oa)return;const i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){const t=o-this.lastAngle_;n.adjustRotationInternal(-t)}this.lastAngle_=o}handleUpEvent(t){return!Yg(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!(Yg(t)&&Ng(t)&&this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}}const Jg=Kg;class $g extends w{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Tr([n])}getGeometry(){return this.geometry_}}const td=$g,ed={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class nd extends _{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}class id extends kg{constructor(t){var e,n,i;super(),this.on,this.once,this.un,t=null!=t?t:{},this.box_=new td(t.className||"ol-dragbox"),this.minArea_=null!=(e=t.minArea)?e:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=null!=(n=t.condition)?n:Ng,this.boxEndCondition_=null!=(i=t.boxEndCondition)?i:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){!this.startPixel_||(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new nd(ed.BOXDRAG,t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new nd(e?ed.BOXEND:ed.BOXCANCEL,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new nd(ed.BOXSTART,t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new nd(ed.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new nd(ed.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}}const rd=id;class od extends rd{constructor(t){t=t||{};const e=t.condition?t.condition:Vg;super({condition:e,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let n=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(n),i=e.getResolutionForExtentInternal(t),r=e.getResolution()/i;n=n.clone(),n.scale(r*r)}e.fitInternal(n,{duration:this.duration_,easing:ua})}}const sd=od,ad={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class ld extends Bg{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return Ug(t)&&Hg(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==G.KEYDOWN){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&(i==ad.DOWN||i==ad.LEFT||i==ad.RIGHT||i==ad.UP)){const r=t.map.getView(),o=r.getResolution()*this.pixelDelta_;let s=0,a=0;i==ad.DOWN?a=-o:i==ad.LEFT?s=-o:i==ad.RIGHT?s=o:a=o;const l=[s,a];tn(l,r.getRotation()),bg(r,l,this.duration_),n.preventDefault(),e=!0}}return!e}}const hd=ld;class ud extends Bg{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!qg(t)&&Hg(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==G.KEYDOWN||t.type==G.KEYPRESS){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&("+"===i||"-"===i)){const r=t.map,o="+"===i?this.delta_:-this.delta_,s=r.getView();Sg(s,o,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}}const cd=ud;class gd extends Bg{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:Og;this.condition_=t.onFocusOnly?Lg(Fg,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(t){if(!this.condition_(t)||t.type!==G.WHEEL)return!0;const e=t.map,n=t.originalEvent;let i;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.pixel),t.type==G.WHEEL&&(i=n.deltaY,ro&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(i/=lo),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(i*=40)),0===i)return!1;this.lastDelta_=i;const r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?"trackpad":"wheel");const o=e.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-i/this.deltaPerZoom_,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=r,!1;this.totalDelta_+=i;const s=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),s),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-Qe(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Sg(e,n,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}}const dd=gd;class fd extends kg{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=k),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;const o=t.map,s=o.getView();s.getConstraints().rotation!==oa&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(Rg(this.targetPointers))),this.rotating_&&(o.render(),s.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}const Ad=fd;class pd extends kg{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=k),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,s=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(Rg(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}const md=pd;function yd(t){t=t||{};const e=new rt,n=new Uc(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new Jg),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new Tg({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new Zg({onFocusOnly:t.onFocusOnly,kinetic:n})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new Ad),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new md({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new hd),e.push(new cd({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new dd({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new sd({duration:t.zoomDuration})),e}function vd(t){t instanceof ba?t.setMapInternal(null):t instanceof Jc&&t.getLayers().forEach(vd)}function _d(t,e){if(t instanceof ba)t.setMapInternal(e);else if(t instanceof Jc){const n=t.getLayers().getArray();for(let t=0,i=n.length;tthis.updateSize()),this.controls=e.controls||wg(),this.interactions=e.interactions||yd({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new dg(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(lg.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(lg.VIEW,this.handleViewChanged_),this.addChangeListener(lg.SIZE,this.handleSizeChanged_),this.addChangeListener(lg.TARGET,this.handleTargetChanged_),this.setProperties(e.values);const n=this;t.view&&!(t.view instanceof wa)&&t.view.then((function(t){n.setView(new wa(t))})),this.controls.addEventListener(tt.ADD,t=>{t.element.setMap(this)}),this.controls.addEventListener(tt.REMOVE,t=>{t.element.setMap(null)}),this.interactions.addEventListener(tt.ADD,t=>{t.element.setMap(this)}),this.interactions.addEventListener(tt.REMOVE,t=>{t.element.setMap(null)}),this.overlays_.addEventListener(tt.ADD,t=>{this.addOverlayInternal_(t.element)}),this.overlays_.addEventListener(tt.REMOVE,t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}),this.controls.forEach(t=>{t.setMap(this)}),this.interactions.forEach(t=>{t.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){_d(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const i=this.getCoordinateFromPixelInternal(t);n=void 0!==n?n:{};const r=void 0!==n.hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:R,s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,s,e,null,o,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n}getAllLayers(){const t=[];function e(n){n.forEach((function(n){n instanceof Jc?e(n.getLayers()):t.push(n)}))}return e(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};const i=void 0!==e.layerFilter?e.layerFilter:R,r=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,o,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),n=this.getSize(),i=e.width/n[0],r=e.height/n[1],o="changedTouches"in t?t.changedTouches[0]:t;return[(o.clientX-e.left)/i,(o.clientY-e.top)/r]}getTarget(){return this.get(lg.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return vi(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?At(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(lg.LAYERGROUP)}setLayers(t){const e=this.getLayerGroup();if(t instanceof rt)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e=0;n--){const i=e[n];if(i.getMap()===this&&i.getActive()&&this.getTargetElement()&&(!i.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,i=n;if(t){const e=t.viewHints;if(e[Ws.ANIMATING]||e[Ws.INTERACTING]){const e=Date.now()-t.time>8;n=e?0:8,i=e?0:2}}e.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Xc("removelayer",e)),this.set(lg.LAYERGROUP,t)}setSize(t){this.set(lg.SIZE,t)}setTarget(t){this.set(lg.TARGET,t)}setView(t){if(!t||t instanceof wa)return void this.set(lg.VIEW,t);this.set(lg.VIEW,new wa);const e=this;t.then((function(t){e.setView(new wa(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const n=getComputedStyle(t),i=t.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),r=t.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);!isNaN(i)&&!isNaN(r)&&(e=[Math.max(0,i),Math.max(0,r)],!Vo(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&Yn("No map visible because the map container's width or height are 0."))}const n=this.getSize();e&&(!n||!T(e,n))&&(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}}function Id(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Jc({layers:t.layers});let r,o,s;return n[lg.LAYERGROUP]=i,n[lg.TARGET]=t.target,n[lg.VIEW]=t.view instanceof wa?t.view:new wa,void 0!==t.controls&&(Array.isArray(t.controls)?r=new rt(t.controls.slice()):(ot("function"==typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new rt(t.interactions.slice()):(ot("function"==typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),o=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?s=new rt(t.overlays.slice()):(ot("function"==typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),s=t.overlays):s=new rt,{controls:r,interactions:o,keyboardEventTarget:e,overlays:s,values:n}}const wd=xd,Cd={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};class Ed extends ${constructor(t){super(),this.on,this.once,this.un,this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+$o,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===t.autoPan?{}:t.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(Cd.ELEMENT,this.handleElementChanged),this.addChangeListener(Cd.MAP,this.handleMapChanged),this.addChangeListener(Cd.OFFSET,this.handleOffsetChanged),this.addChangeListener(Cd.POSITION,this.handlePositionChanged),this.addChangeListener(Cd.POSITIONING,this.handlePositioningChanged),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(t.positioning||"top-left"),void 0!==t.position&&this.setPosition(t.position)}getElement(){return this.get(Cd.ELEMENT)}getId(){return this.id}getMap(){return this.get(Cd.MAP)||null}getOffset(){return this.get(Cd.OFFSET)}getPosition(){return this.get(Cd.POSITION)}getPositioning(){return this.get(Cd.POSITIONING)}handleElementChanged(){xo(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){var t;this.mapPostrenderListenerKey&&(null==(t=this.element)||t.remove(),q(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const e=this.getMap();if(e){this.mapPostrenderListenerKey=j(e,ag.POSTRENDER,this.render,this),this.updatePixelPosition();const t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(t){this.set(Cd.ELEMENT,t)}setMap(t){this.set(Cd.MAP,t)}setOffset(t){this.set(Cd.OFFSET,t)}setPosition(t){this.set(Cd.POSITION,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(Cd.POSITION))return;const n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),r=this.getRect(i,[yo(i),vo(i)]);t=t||{};const o=void 0===t.margin?20:t.margin;if(!Dt(n,r)){const i=r[0]-n[0],s=n[2]-r[2],a=r[1]-n[1],l=n[3]-r[3],h=[0,0];if(i<0?h[0]=i-o:s<0&&(h[0]=Math.abs(s)+o),a<0?h[1]=a-o:l<0&&(h[1]=Math.abs(l)+o),0!==h[0]||0!==h[1]){const n=e.getView().getCenterInternal(),i=e.getPixelFromCoordinateInternal(n);if(!i)return;const r=[i[0]+h[0],i[1]+h[1]],o=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(r),duration:o.duration,easing:o.easing})}}}getRect(t,e){const n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]}setPositioning(t){this.set(Cd.POSITIONING,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);const n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}updateRenderedPosition(t,e){const n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);const o=Math.round(t[0]+i[0])+"px",s=Math.round(t[1]+i[1])+"px";let a="0%",l="0%";"bottom-right"==r||"center-right"==r||"top-right"==r?a="-100%":("bottom-center"==r||"center-center"==r||"top-center"==r)&&(a="-50%"),"bottom-left"==r||"bottom-center"==r||"bottom-right"==r?l="-100%":("center-left"==r||"center-center"==r||"center-right"==r)&&(l="-50%");const h=`translate(${a}, ${l}) translate(${o}, ${s})`;this.rendered.transform_!=h&&(this.rendered.transform_=h,n.transform=h)}getOptions(){return this.options}}const bd=Ed;class Sd{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}deleteOldest(){const t=this.pop();t instanceof w&&t.dispose()}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.deleteOldest()}clear(){for(;this.oldest_;)this.deleteOldest()}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const n=this.entries_[t];return ot(void 0!==n,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const e=this.entries_[t];return ot(void 0!==e,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){var e;return null==(e=this.entries_[t])?void 0:e.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){ot(!(t in this.entries_),"Tried to set a value for a key that is used already");const n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}}const Bd=Sd;function Md(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function Td(t,e,n){return t+"/"+e+"/"+n}function Dd(t){return Td(t[0],t[1],t[2])}function Rd(t){return kd(t[0],t[1],t[2])}function kd(t,e,n){return(e<n||n>e.getMaxZoom())return!1;const o=e.getFullTileRange(n);return!o||o.containsXY(i,r)}class Pd{constructor(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function Qd(t,e,n,i,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=n,r.maxY=i,r):new Pd(t,e,n,i)}const zd=Pd,Fd=[];class Od extends Fc{constructor(t,e,n,i,r){super(t,e,{transition:0}),this.context_=null,this.executorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=i.bind(void 0,this),this.removeSourceTiles_=r,this.wrappedTileCoord=n}getContext(){return this.context_||(this.context_=fo(1,1,Fd)),this.context_}hasContext(){return!!this.context_}getImage(){return this.hasContext()?this.getContext().canvas:null}getReplayState(t){const e=X(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]}load(){this.getSourceTiles()}release(){this.context_&&(mo(this.context_),Fd.push(this.context_.canvas),this.context_=null),this.removeSourceTiles_(this),this.sourceTiles.length=0,super.release()}}const Nd=Od;class Gd extends Fc{constructor(t,e,n,i,r,o){super(t,e,o),this.extent=null,this.format_=i,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=r,this.url_=n,this.key=n}getTileUrl(){return this.url_}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==Qc.IDLE&&(this.setState(Qc.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(t,e){this.setFeatures(t)}onError(){this.setState(Qc.ERROR)}setFeatures(t){this.features_=t,this.setState(Qc.LOADED)}setLoader(t){this.loader_=t}}const jd=Gd;class Ud extends kg{constructor(t){t=t||{},super(t),this.condition_=t.condition?t.condition:Vg,this.lastAngle_=void 0,this.lastMagnitude_=void 0,this.lastScaleDelta_=0,this.duration_=void 0!==t.duration?t.duration:400}handleDragEvent(t){if(!Yg(t))return;const e=t.map,n=e.getSize(),i=t.pixel,r=i[0]-n[0]/2,o=n[1]/2-i[1],s=Math.atan2(o,r),a=Math.sqrt(r*r+o*o),l=e.getView();if(void 0!==this.lastAngle_){const t=this.lastAngle_-s;l.adjustRotationInternal(t)}this.lastAngle_=s,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/a),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/a),this.lastMagnitude_=a}handleUpEvent(t){if(!Yg(t))return!0;const e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1}handleDownEvent(t){return!(!Yg(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0)}}const qd=Ud,Vd={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"};class Hd extends _{constructor(t,e){super(t),this.feature=e}}function Yd(t,e){const n=[];for(let i=0;i=n?t[e-n]:t[e]}function Zd(t,e,n){let i,r;es){const e=rf(t,i),n=rf(t,r);return Wd(e,n)}let a=0;if(it.startIndex?it.startIndex&&(i-=n.length)),l=i,a=c)}const h=e.targets[a];let u=h.ring;if(e.targetIndex===a&&u){const t=rf(h.coordinates,l),r=n.getPixelFromCoordinate(t);rn(r,e.startPx)>i&&(u=!1)}if(u){const t=h.coordinates,e=t.length,n=h.startIndex,i=l;if(n=n?i-=n:i<0&&(i+=n);let o=i+1;o>=n&&(o-=n);const s=t[i],a=s[0],l=s[1],h=t[o],u=h[0]-a,c=h[1]-l;return[a+u*r,l+c*r]}class of extends kg{constructor(t){const e=t;e.stopDown||(e.stopDown=k),super(e),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=t.source?t.source:null,this.features_=t.features?t.features:null,this.snapTolerance_=t.snapTolerance?t.snapTolerance:12,this.type_=t.type,this.mode_=hf(this.type_),this.stopClick_=!!t.stopClick,this.minPoints_=t.minPoints?t.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:t.maxPoints?t.maxPoints:1/0,this.finishCondition_=t.finishCondition?t.finishCondition:R,this.geometryLayout_=t.geometryLayout?t.geometryLayout:"XY";let n=t.geometryFunction;if(!n){const t=this.mode_;if("Circle"===t)n=(t,e,n)=>{const i=e||new sc([NaN,NaN]),r=_i(t[0]),o=nn(r,_i(t[t.length-1]));return i.setCenterAndRadius(r,Math.sqrt(o),this.geometryLayout_),i};else{let e;"Point"===t?e=hr:"LineString"===t?e=jo:"Polygon"===t&&(e=Tr),n=(n,i,r)=>(i?"Polygon"===t?n[0].length?i.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):i.setCoordinates([],this.geometryLayout_):i.setCoordinates(n,this.geometryLayout_):i=new e(n,this.geometryLayout_),i)}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.overlay_=new nc({source:new Dc({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:sf(),updateWhileInteracting:!0}),this.geometryName_=t.geometryName,this.condition_=t.condition?t.condition:Ug,this.freehandCondition_,t.freehand?this.freehandCondition_=Og:this.freehandCondition_=t.freehandCondition?t.freehandCondition:Vg,this.traceCondition_,this.setTrace(t.trace||!1),this.traceState_={active:!1},this.traceSource_=t.traceSource||t.source||null,this.addChangeListener(Cg.ACTIVE,this.updateState_)}setTrace(t){let e;e=t?!0===t?Og:t:Gg,this.traceCondition_=e}setMap(t){super.setMap(t),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(t){t.originalEvent.type===G.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(t);let e=t.type===ig.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&t.type===ig.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,e=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&t.type===ig.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t.coordinate),n=!1):this.freehand_&&t.type===ig.POINTERDOWN?n=!1:e&&this.getPointerCount()<2?(n=t.type===ig.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):("mouse"===t.originalEvent.pointerType||t.type===ig.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t)):t.type===ig.DBLCLICK&&(n=!1),super.handleEvent(t)&&n}handleDownEvent(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new ng(ig.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))},this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(t){if(!this.traceSource_||!this.traceCondition_(t))return;if(this.traceState_.active)return void this.deactivateTrace_();const e=this.getMap(),n=e.getCoordinateFromPixel([t.pixel[0]-this.snapTolerance_,t.pixel[1]+this.snapTolerance_]),i=e.getCoordinateFromPixel([t.pixel[0]+this.snapTolerance_,t.pixel[1]-this.snapTolerance_]),r=Et([n,i]),o=this.traceSource_.getFeaturesInExtent(r);if(0===o.length)return;const s=Yd(t.coordinate,o);s.length&&(this.traceState_={active:!0,startPx:t.pixel.slice(),targets:s,targetIndex:-1})}addOrRemoveTracedCoordinates_(t,e){const n=t.startIndex<=t.endIndex,i=t.startIndex<=e;n===i?n&&e>t.endIndex||!n&&et.endIndex)&&this.removeTracedCoordinates_(e,t.endIndex):(this.removeTracedCoordinates_(t.startIndex,t.endIndex),this.addTracedCoordinates_(t,t.startIndex,e))}removeTracedCoordinates_(t,e){if(t===e)return;let n=0;if(t0&&this.removeLastPoints_(n)}addTracedCoordinates_(t,e,n){if(e===n)return;const i=[];if(e=o;--e)i.push(Xd(t.coordinates,e))}i.length&&this.appendCoordinates(i)}updateTrace_(t){const e=this.traceState_;if(!e.active||-1===e.targetIndex&&rn(e.startPx,t.pixel)this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(t),this.modifyDrawing_(t.coordinate)):this.createOrUpdateSketchPoint_(t.coordinate.slice())}atFinish_(t,e){let n=!1;if(this.sketchFeature_){let i=!1,r=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)i=!e&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const t=this.sketchCoords_;i=t[0].length>this.minPoints_,r=[t[0][0],t[0][t[0].length-2]],r=e?[t[0][0]]:[t[0][0],t[0][t[0].length-2]]}if(i){const e=this.getMap();for(let i=0,o=r.length;i=this.maxPoints_&&(this.freehand_?r.pop():i=!0),r.push(t.slice()),this.geometryFunction_(r,e,n)):"Polygon"===o&&(r=this.sketchCoords_[0],r.length>=this.maxPoints_&&(this.freehand_?r.pop():i=!0),r.push(t.slice()),i&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,e,n)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),i?this.finishDrawing():this.sketchFeature_}removeLastPoints_(t){if(!this.sketchFeature_)return;const e=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i=this.mode_;for(let r=0;r=2){this.finishCoordinate_=t[t.length-2].slice();const e=this.finishCoordinate_.slice();t[t.length-1]=e,this.createOrUpdateSketchPoint_(e)}this.geometryFunction_(t,e,n),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if("Polygon"===i){t=this.sketchCoords_[0],t.splice(-2,1);const i=this.sketchLine_.getGeometry();if(t.length>=2){const e=t[t.length-2].slice();t[t.length-1]=e,this.createOrUpdateSketchPoint_(e)}i.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,n)}if(1===t.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const t=this.abortDrawing_();if(!t)return null;let e=this.sketchCoords_;const n=t.getGeometry(),i=this.getMap().getView().getProjection();return"LineString"===this.mode_?(e.pop(),this.geometryFunction_(e,n,i)):"Polygon"===this.mode_&&(e[0].pop(),this.geometryFunction_(e,n,i),e=n.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new dc([e])):"MultiLineString"===this.type_?t.setGeometry(new cc([e])):"MultiPolygon"===this.type_&&t.setGeometry(new pc([e])),this.dispatchEvent(new Hd(Vd.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t),t}abortDrawing_(){this.finishCoordinate_=null;const t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),t}abortDrawing(){const t=this.abortDrawing_();t&&this.dispatchEvent(new Hd(Vd.DRAWABORT,t))}appendCoordinates(t){const e=this.mode_,n=!this.sketchFeature_;let i;if(n&&this.startDrawing_(t[0]),"LineString"===e||"Circle"===e)i=this.sketchCoords_;else{if("Polygon"!==e)return;i=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&i.shift(),i.pop();for(let o=0;o=0;--i){const t=n[i];for(let e=this.dragSegments_.length-1;e>=0;--e)this.dragSegments_[e][0]===t&&this.dragSegments_.splice(e,1);e.remove(t)}}setActive(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(t)}setMap(t){this.overlay_.setMap(t),super.setMap(t)}getOverlay(){return this.overlay_}handleSourceAdd_(t){t.feature&&this.features_.push(t.feature)}handleSourceRemove_(t){t.feature&&this.features_.remove(t.feature)}handleFeatureAdd_(t){this.addFeature_(t.element)}handleFeatureChange_(t){if(!this.changingFeature_){const e=t.target;this.removeFeature_(e),this.addFeature_(e)}}handleFeatureRemove_(t){this.removeFeature_(t.element)}writePointGeometry_(t,e){const n=e.getCoordinates(),i={feature:t,geometry:e,segment:[n,n]};this.rBush_.insert(e.getExtent(),i)}writeMultiPointGeometry_(t,e){const n=e.getCoordinates();for(let i=0,r=n.length;it));const e=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],n=[],i=[];for(let r=0,o=this.dragSegments_.length;r=0;--e)this.insertVertex_(n[e],t);this.ignoreNextSingleClick_=!0}return!!this.vertexFeature_}handleUpEvent(t){for(let e=this.dragSegments_.length-1;e>=0;--e){const t=this.dragSegments_[e][0],n=t.geometry;if("Circle"===n.getType()){const e=n,i=e.getCenter(),r=t.featureSegments[0],o=t.featureSegments[1];r.segment[0]=i,r.segment[1]=i,o.segment[0]=i,o.segment[1]=i,this.rBush_.update(zt(i),r);let s=e;this.rBush_.update(s.getExtent(),o)}else this.rBush_.update(Et(t.segment),t)}return this.featuresBeingModified_&&(this.dispatchEvent(new pf(Af.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1}handlePointerMove_(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.coordinate)}handlePointerAtPixel_(t){const e=this.getMap(),n=e.getPixelFromCoordinate(t);e.getView().getProjection();const i=function(e,n){return vf(t,e)-vf(t,n)};let r,o;if(this.hitDetection_){const t="object"==typeof this.hitDetection_?t=>t===this.hitDetection_:void 0;e.forEachFeatureAtPixel(n,(t,e,n)=>{n&&"Point"===n.getType()&&(n=new hr(vi(n.getCoordinates())));const i=n||t.getGeometry();if(i&&"Point"===i.getType()&&t instanceof lt&&this.features_.getArray().includes(t)){o=i;const e=t.getGeometry().getFlatCoordinates().slice(0,2);r=[{feature:t,geometry:o,segment:[e,e]}]}return!0},{layerFilter:t})}if(!r){const n=Ii(zt(t,df)),i=e.getView().getResolution()*this.pixelTolerance_,o=xi(St(n,i,df));r=this.rBush_.getInExtent(o)}if(r&&r.length>0){const s=r.sort(i)[0],a=s.segment;let l=_f(t,s);const h=e.getPixelFromCoordinate(l);let u=rn(n,h);if(o||u<=this.pixelTolerance_){const n={};if(n[X(a)]=!0,this.snapToPointer_||(this.delta_[0]=l[0]-t[0],this.delta_[1]=l[1]-t[1]),"Circle"===s.geometry.getType()&&s.index===gf)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(l,[s.feature],[s.geometry],this.snappedToVertex_);else{const t=e.getPixelFromCoordinate(a[0]),i=e.getPixelFromCoordinate(a[1]),o=nn(h,t),c=nn(h,i);u=Math.sqrt(Math.min(o,c)),this.snappedToVertex_=u<=this.pixelTolerance_,this.snappedToVertex_&&(l=o>c?a[1]:a[0]),this.createOrUpdateVertexFeature_(l,[s.feature],[s.geometry],this.snappedToVertex_);const g={};g[X(s.geometry)]=!0;for(let e=1,s=r.length;e"Circle"===t.getType()||t.getType().endsWith("Point")))return!1;const t=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(Et([t])).some(({segment:e})=>$e(e[0],t)||$e(e[1],t))}removePoint(t){if(t&&(t=_i(t,this.getMap().getView().getProjection()),this.updatePointer_(t)),!this.lastPointerEvent_||this.lastPointerEvent_&&this.lastPointerEvent_.type!=ig.POINTERDRAG){const t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_.map(([t])=>t));const e=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new pf(Af.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1}removeVertex_(){const t=this.dragSegments_,e={};let n,i,r,o,s,a,l,h,u,c,g,d=!1;for(s=t.length-1;s>=0;--s)r=t[s],c=r[0],g=X(c.feature),c.depth&&(g+="-"+c.depth.join("-")),g in e||(e[g]={}),0===r[1]?(e[g].right=c,e[g].index=c.index):1==r[1]&&(e[g].left=c,e[g].index=c.index+1);for(g in e){switch(u=e[g].right,l=e[g].left,a=e[g].index,h=a-1,c=void 0!==l?l:u,h<0&&(h=0),o=c.geometry,i=o.getCoordinates(),n=i,d=!1,o.getType()){case"MultiLineString":i[c.depth[0]].length>2&&(i[c.depth[0]].splice(a,1),d=!0);break;case"LineString":i.length>2&&(i.splice(a,1),d=!0);break;case"MultiPolygon":n=n[c.depth[1]];case"Polygon":n=n[c.depth[0]],n.length>4&&(a==n.length-1&&(a=0),n.splice(a,1),d=!0,0===a&&(n.pop(),n.push(n[0]),h=n.length-1));break}if(d){this.setGeometryCoordinates_(o,i);const e=[];if(void 0!==l&&(this.rBush_.remove(l),e.push(l.segment[0])),void 0!==u&&(this.rBush_.remove(u),e.push(u.segment[1])),void 0!==l&&void 0!==u){const t={depth:c.depth,feature:c.feature,geometry:c.geometry,index:h,segment:e};this.rBush_.insert(Et(t.segment),t)}this.updateSegmentIndices_(o,a,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return d}canInsertPoint(){if(!this.vertexFeature_||this.vertexFeature_.get("geometries").every(t=>"Circle"===t.getType()||t.getType().endsWith("Point")))return!1;const t=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(Et([t])).some(({segment:e})=>!($e(e[0],t)||$e(e[1],t)))}insertPoint(t){var e;const n=t?_i(t,this.getMap().getView().getProjection()):null==(e=this.vertexFeature_)?void 0:e.getGeometry().getCoordinates();return!!n&&this.findInsertVerticesAndUpdateDragSegments_(n).reduce((t,e)=>t||this.insertVertex_(e,n),!1)}setGeometryCoordinates_(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1}updateSegmentIndices_(t,e,n,i){this.rBush_.forEachInExtent(t.getExtent(),(function(r){r.geometry===t&&(void 0===n||void 0===r.depth||T(r.depth,n))&&r.index>e&&(r.index+=i)}))}}function yf(t,e){return t.index-e.index}function vf(t,e,n){const i=e.geometry;if("Circle"===i.getType()){let n=i;if(e.index===gf){const e=nn(n.getCenter(),_i(t)),i=Math.sqrt(e)-n.getRadius();return i*i}}const r=_i(t);return ff[0]=_i(e.segment[0]),ff[1]=_i(e.segment[1]),on(r,ff)}function _f(t,e,n){const i=e.geometry;if("Circle"===i.getType()&&e.index===gf)return vi(i.getClosestPoint(_i(t)));const r=_i(t);return ff[0]=_i(e.segment[0]),ff[1]=_i(e.segment[1]),vi(Je(r,ff))}function xf(){const t=Os();return function(e,n){return t.Point}}const If=mf,wf={SELECT:"select"};class Cf extends _{constructor(t,e,n,i){super(t),this.selected=e,this.deselected=n,this.mapBrowserEvent=i}}const Ef={};class bf extends Bg{constructor(t){let e;if(super(),this.on,this.once,this.un,t=t||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=t.condition?t.condition:jg,this.addCondition_=t.addCondition?t.addCondition:Gg,this.removeCondition_=t.removeCondition?t.removeCondition:Gg,this.toggleCondition_=t.toggleCondition?t.toggleCondition:Vg,this.multi_=!!t.multi&&t.multi,this.filter_=t.filter?t.filter:R,this.hitTolerance_=t.hitTolerance?t.hitTolerance:0,this.style_=void 0!==t.style?t.style:Sf(),this.features_=t.features||new rt,t.layers)if("function"==typeof t.layers)e=t.layers;else{const n=t.layers;e=function(t){return n.includes(t)}}else e=R;this.layerFilter_=e,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(t,e){this.featureLayerAssociation_[X(t)]=e}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(t){return this.featureLayerAssociation_[X(t)]}setHitTolerance(t){this.hitTolerance_=t}setMap(t){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(t),t?(this.features_.addEventListener(tt.ADD,this.boundAddFeature_),this.features_.addEventListener(tt.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(tt.ADD,this.boundAddFeature_),this.features_.removeEventListener(tt.REMOVE,this.boundRemoveFeature_))}addFeature_(t){const e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){const t=this.getMap().getAllLayers().find((function(t){if(t instanceof nc&&t.getSource()&&t.getSource().hasFeature(e))return t}));t&&this.addFeatureLayerAssociation_(e,t)}}removeFeature_(t){this.style_&&this.restorePreviousStyle_(t.element)}getStyle(){return this.style_}applySelectedStyle_(t){const e=X(t);e in Ef||(Ef[e]=t.getStyle()),t.setStyle(this.style_)}restorePreviousStyle_(t){const e=this.getMap().getInteractions().getArray();for(let i=e.length-1;i>=0;--i){const n=e[i];if(n!==this&&n instanceof bf&&n.getStyle()&&-1!==n.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(n.getStyle())}const n=X(t);t.setStyle(Ef[n]),delete Ef[n]}removeFeatureLayerAssociation_(t){delete this.featureLayerAssociation_[X(t)]}handleEvent(t){if(!this.condition_(t))return!0;const e=this.addCondition_(t),n=this.removeCondition_(t),i=this.toggleCondition_(t),r=!e&&!n&&!i,o=t.map,s=this.getFeatures(),a=[],l=[];if(r){z(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,(t,e)=>{if(t instanceof lt&&this.filter_(t,e))return this.addFeatureLayerAssociation_(t,e),l.push(t),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let t=s.getLength()-1;t>=0;--t){const e=s.item(t),n=l.indexOf(e);n>-1?l.splice(n,1):(s.remove(e),a.push(e))}0!==l.length&&s.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,(t,r)=>{if(t instanceof lt&&this.filter_(t,r))return!e&&!i||s.getArray().includes(t)?(n||i)&&s.getArray().includes(t)&&(a.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,r),l.push(t)),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let t=a.length-1;t>=0;--t)s.remove(a[t]);s.extend(l)}return(l.length>0||a.length>0)&&this.dispatchEvent(new Cf(wf.SELECT,l,a,t)),!0}}function Sf(){const t=Os();return M(t.Polygon,t.LineString),M(t.GeometryCollection,t.LineString),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}const Bf=bf,Mf={SNAP:"snap"};class Tf extends _{constructor(t,e){super(t),this.vertex=e.vertex,this.vertexPixel=e.vertexPixel,this.feature=e.feature,this.segment=e.segment}}function Df(t){return t.feature?t.feature:t.element?t.element:null}const Rf=[];class kf extends kg{constructor(t){t=t||{};const e=t;e.handleDownEvent||(e.handleDownEvent=R),e.stopDown||(e.stopDown=k),super(e),this.on,this.once,this.un,this.source_=t.source?t.source:null,this.vertex_=void 0===t.vertex||t.vertex,this.edge_=void 0===t.edge||t.edge,this.features_=t.features?t.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.rBush_=new rc,this.GEOMETRY_SEGMENTERS_={Point:this.segmentPointGeometry_.bind(this),LineString:this.segmentLineStringGeometry_.bind(this),LinearRing:this.segmentLineStringGeometry_.bind(this),Polygon:this.segmentPolygonGeometry_.bind(this),MultiPoint:this.segmentMultiPointGeometry_.bind(this),MultiLineString:this.segmentMultiLineStringGeometry_.bind(this),MultiPolygon:this.segmentMultiPolygonGeometry_.bind(this),GeometryCollection:this.segmentGeometryCollectionGeometry_.bind(this),Circle:this.segmentCircleGeometry_.bind(this)}}addFeature(t,e){e=void 0===e||e;const n=X(t),i=t.getGeometry();if(i){const e=this.GEOMETRY_SEGMENTERS_[i.getType()];if(e){this.indexedFeaturesExtents_[n]=i.getExtent(Lt());const r=[];if(e(r,i),1===r.length)this.rBush_.insert(Et(r[0]),{feature:t,segment:r[0]});else if(r.length>1){const e=r.map(t=>Et(t)),n=r.map(e=>({feature:t,segment:e}));this.rBush_.load(e,n)}}}e&&(this.featureChangeListenerKeys_[n]=j(t,G.CHANGE,this.handleFeatureChange_,this))}getFeatures_(){let t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t}handleEvent(t){const e=this.snapTo(t.pixel,t.coordinate,t.map);return e&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.vertexPixel,this.dispatchEvent(new Tf(Mf.SNAP,{vertex:t.coordinate,vertexPixel:t.pixel,feature:e.feature,segment:e.segment}))),super.handleEvent(t)}handleFeatureAdd_(t){const e=Df(t);e&&this.addFeature(e)}handleFeatureRemove_(t){const e=Df(t);e&&this.removeFeature(e)}handleFeatureChange_(t){const e=t.target;if(this.handlingDownUpSequence){const t=X(e);t in this.pendingFeatures_||(this.pendingFeatures_[t]=e)}else this.updateFeature_(e)}handleUpEvent(t){const e=Object.values(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1}removeFeature(t,e){const n=void 0===e||e,i=X(t),r=this.indexedFeaturesExtents_[i];if(r){const e=this.rBush_,n=[];e.forEachInExtent(r,(function(e){t===e.feature&&n.push(e)}));for(let t=n.length-1;t>=0;--t)e.remove(n[t])}n&&(q(this.featureChangeListenerKeys_[i]),delete this.featureChangeListenerKeys_[i])}setMap(t){const e=this.getMap(),n=this.featuresListenerKeys_,i=this.getFeatures_();e&&(n.forEach(q),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(q),this.featureChangeListenerKeys_={}),super.setMap(t),t&&(this.features_?n.push(j(this.features_,tt.ADD,this.handleFeatureAdd_,this),j(this.features_,tt.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(j(this.source_,wc.ADDFEATURE,this.handleFeatureAdd_,this),j(this.source_,wc.REMOVEFEATURE,this.handleFeatureRemove_,this)),i.forEach(t=>this.addFeature(t)))}snapTo(t,e,n){n.getView().getProjection();const i=_i(e),r=xi(St(Et([i]),n.getView().getResolution()*this.pixelTolerance_)),o=this.rBush_.getInExtent(r),s=o.length;if(0===s)return null;let a,l,h=1/0,u=null;const c=this.pixelTolerance_*this.pixelTolerance_,g=()=>{if(a){const e=n.getPixelFromCoordinate(a);if(nn(t,e)<=c)return{vertex:a,vertexPixel:[Math.round(e[0]),Math.round(e[1])],feature:l,segment:u}}return null};if(this.vertex_){for(let e=0;e{const n=_i(e),r=nn(i,n);r{t.push([e])})}segmentMultiPolygonGeometry_(t,e){const n=e.getCoordinates();for(let i=0,r=n.length;iu*qf||h>c*qf?this.resetExtent_():Dt(o,i)||this.recenter_()}resetExtent_(){const t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView().calculateExtentInternal(n),r=e.getView(),o=Math.log(qf/Vf)/Math.LN2,s=1/(Math.pow(2,o/2)*Vf);se(i,s),r.fitInternal(Dr(i))}recenter_(){const t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const t=this.getMap(),e=this.ovmap_;if(!t.isRendered()||!e.isRendered())return;const n=t.getSize(),i=t.getView(),r=e.getView(),o=this.rotateWithView_?0:-i.getRotation(),s=this.boxOverlay_,a=this.boxOverlay_.getElement(),l=i.getCenter(),h=i.getResolution(),u=r.getResolution(),c=n[0]*h/u,g=n[1]*h/u;if(s.setPosition(l),a){a.style.width=c+"px",a.style.height=g+"px";const t="rotate("+o+"rad)";a.style.transform=t}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=U(this.ovmap_,ag.POSTRENDER,t=>{delete this.ovmapPostrenderKey_,this.updateBox_()}))}handleClick_(t){t.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(is),this.collapsed_?_o(this.collapseLabel_,this.label_):_o(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())}setCollapsed(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(t){this.validateExtent_(),this.updateBox_()}}const Yf=Hf,Wf="units",Xf=[1,2,5],Zf=25.4/.28;class Kf extends pg{constructor(t){t=t||{};const e=document.createElement("div");e.style.pointerEvents="none",super({element:e,render:t.render,target:t.target}),this.on,this.once,this.un;const n=void 0!==t.className?t.className:t.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+ts,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==t.minWidth?t.minWidth:64,this.maxWidth_=t.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(Wf,this.handleUnitsChanged_),this.setUnits(t.units||"metric"),this.scaleBar_=t.bar||!1,this.scaleBarSteps_=t.steps||4,this.scaleBarText_=t.text||!1,this.dpi_=t.dpi||void 0}getUnits(){return this.get(Wf)}handleUnitsChanged_(){this.updateElement_()}setUnits(t){this.set(Wf,t)}setDpi(t){this.dpi_=t}updateElement_(){const t=this.viewState_;if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=t.center,n=t.projection,i=this.getUnits(),r="degrees"==i?"degrees":"m";let o=ii(n,t.resolution,e,r);const s=this.minWidth_*(this.dpi_||Zf)/Zf,a=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||Zf)/Zf:void 0;let l=s*o,h="";if("degrees"==i){const t=de.degrees;l*=t,l=a){u=d,c=f,g=A;break}if(c>=s)break;d=u,f=c,A=g,++p}const m=this.scaleBar_?this.createScaleBar(c,u,h):u.toFixed(g<0?-g:0)+" "+h;this.renderedHTML_!=m&&(this.innerElement_.innerHTML=m,this.renderedHTML_=m),this.renderedWidth_!=c&&(this.innerElement_.style.width=c+"px",this.renderedWidth_=c),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(t,e,n){const i=this.getScaleForResolution(),r=i<1?Math.round(1/i).toLocaleString()+" : 1":"1 : "+Math.round(i).toLocaleString(),o=this.scaleBarSteps_,s=t/o,a=[this.createMarker("absolute")];for(let l=0;l
`+this.createMarker("relative")+(l%2===0||2===o?this.createStepText(l,t,!1,e,n):"")+"")}return a.push(this.createStepText(o,t,!0,e,n)),(this.scaleBarText_?`
`+r+"
":"")+a.join("")}createMarker(t){return`
`}createStepText(t,e,n,i,r){const o=(0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+r),s=0===t?-3:e/this.scaleBarSteps_*-1,a=0===t?0:e/this.scaleBarSteps_*2;return`
`+o+"
"}getScaleForResolution(){const t=ii(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),e=this.dpi_||Zf,n=1e3/25.4;return t*n*e}render(t){const e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}}const Jf=Kf,$f={VERTICAL:0,HORIZONTAL:1};class tA extends pg{constructor(t){t=t||{},super({target:t.target,element:document.createElement("div"),render:t.render}),this.dragListenerKeys_=[],this.currentResolution_=void 0,this.direction_=$f.VERTICAL,this.dragging_,this.heightLimit_=0,this.widthLimit_=0,this.startX_,this.startY_,this.thumbSize_=null,this.sliderInitialized_=!1,this.duration_=void 0!==t.duration?t.duration:200;const e=void 0!==t.className?t.className:"ol-zoomslider",n=document.createElement("button");n.setAttribute("type","button"),n.className=e+"-thumb "+ts;const i=this.element;i.className=e+" "+ts+" "+ns,i.appendChild(n),i.addEventListener(rg.POINTERDOWN,this.handleDraggerStart_.bind(this),!1),i.addEventListener(rg.POINTERMOVE,this.handleDraggerDrag_.bind(this),!1),i.addEventListener(rg.POINTERUP,this.handleDraggerEnd_.bind(this),!1),i.addEventListener(G.CLICK,this.handleContainerClick_.bind(this),!1),n.addEventListener(G.CLICK,v,!1)}setMap(t){super.setMap(t),t&&t.render()}initSlider_(){const t=this.element;let e=t.offsetWidth,n=t.offsetHeight;if(0===e&&0===n)return this.sliderInitialized_=!1;const i=getComputedStyle(t);e-=parseFloat(i.paddingRight)+parseFloat(i.paddingLeft),n-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom);const r=t.firstElementChild,o=getComputedStyle(r),s=r.offsetWidth+parseFloat(o.marginRight)+parseFloat(o.marginLeft),a=r.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);return this.thumbSize_=[s,a],e>n?(this.direction_=$f.HORIZONTAL,this.widthLimit_=e-s):(this.direction_=$f.VERTICAL,this.heightLimit_=n-a),this.sliderInitialized_=!0}handleContainerClick_(t){const e=this.getMap().getView(),n=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),i=this.getResolutionForPosition_(n),r=e.getConstrainedZoom(e.getZoomForResolution(i));e.animateInternal({zoom:r,duration:this.duration_,easing:ua})}handleDraggerStart_(t){if(!this.dragging_&&t.target===this.element.firstElementChild){const e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){const t=this.handleDraggerDrag_,e=this.handleDraggerEnd_,n=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(j(n,rg.POINTERMOVE,t,this),j(n,rg.POINTERUP,e,this))}}}handleDraggerDrag_(t){if(this.dragging_){const e=t.clientX-this.startX_,n=t.clientY-this.startY_,i=this.getRelativePosition_(e,n);this.currentResolution_=this.getResolutionForPosition_(i),this.getMap().getView().setResolution(this.currentResolution_)}}handleDraggerEnd_(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(q),this.dragListenerKeys_.length=0)}setThumbPosition_(t){const e=this.getPositionForResolution_(t),n=this.element.firstElementChild;this.direction_==$f.HORIZONTAL?n.style.left=this.widthLimit_*e+"px":n.style.top=this.heightLimit_*e+"px"}getRelativePosition_(t,e){let n;return n=this.direction_===$f.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Qe(n,0,1)}getResolutionForPosition_(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)}getPositionForResolution_(t){const e=this.getMap().getView().getValueForResolutionFunction();return Qe(1-e(t),0,1)}render(t){if(!t.frameState||!this.sliderInitialized_&&!this.initSlider_())return;const e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}}const eA=tA;var nA=["zh","ch","sh","z","c","s","b","p","m","f","d","t","n","l","g","k","h","j","q","x","r","y","w",""],iA={"南宫":"nán gōng","第五":"dì wǔ","万俟":"mò qí","司马":"sī mǎ","上官":"shàng guān","欧阳":"ōu yáng","夏侯":"xià hóu","诸葛":"zhū gě","闻人":"wén rén","东方":"dōng fāng","赫连":"hè lián","皇甫":"huáng pǔ","尉迟":"yù chí","公羊":"gōng yáng","澹台":"tán tái","公冶":"gōng yě","宗政":"zōng zhèng","濮阳":"pú yáng","淳于":"chún yú","单于":"chán yú","太叔":"tài shū","申屠":"shēn tú","公孙":"gōng sūn","仲孙":"zhòng sūn","轩辕":"xuān yuán","令狐":"líng hú","钟离":"zhōng lí","宇文":"yǔ wén","长孙":"zhǎng sūn","慕容":"mù róng","鲜于":"xiān yú","闾丘":"lǘ qiū","司徒":"sī tú","司空":"sī kōng","亓官":"qí guān","司寇":"sī kòu","仉督":"zhǎng dū","子车":"zǐ jū","颛孙":"zhuān sūn","端木":"duān mù","巫马":"wū mǎ","公西":"gōng xī","漆雕":"qī diāo","乐正":"yuè zhèng","壤驷":"rǎng sì","公良":"gōng liáng","拓跋":"tuò bá","夹谷":"jiá gǔ","宰父":"zǎi fǔ","榖梁":"gǔ liáng","段干":"duàn gān","百里":"bǎi lǐ","东郭":"dōng guō","南门":"nán mén","呼延":"hū yán","羊舌":"yáng shé","梁丘":"liáng qiū","左丘":"zuǒ qiū","东门":"dōng mén","西门":"xī mén","赵":"zhào","钱":"qián","孙":"sūn","李":"lǐ","周":"zhōu","吴":"wú","郑":"zhèng","王":"wáng","冯":"féng","陈":"chén","褚":"chǔ","卫":"wèi","蒋":"jiǎng","沈":"shěn","韩":"hán","杨":"yáng","朱":"zhū","秦":"qín","尤":"yóu","许":"xǔ","何":"hé","吕":"lǚ","施":"shī","张":"zhāng","孔":"kǒng","曹":"cáo","严":"yán","华":"huà","金":"jīn","魏":"wèi","陶":"táo","姜":"jiāng","戚":"qī","谢":"xiè","邹":"zōu","喻":"yù","柏":"bǎi","水":"shuǐ","窦":"dòu","章":"zhāng","云":"yún","苏":"sū","潘":"pān","葛":"gě","奚":"xī","范":"fàn","彭":"péng","郎":"láng","鲁":"lǔ","韦":"wéi","昌":"chāng","马":"mǎ","苗":"miáo","凤":"fèng","花":"huā","方":"fāng","俞":"yú","任":"rèn","袁":"yuán","柳":"liǔ","酆":"fēng","鲍":"bào","史":"shǐ","唐":"táng","费":"fèi","廉":"lián","岑":"cén","薛":"xuē","雷":"léi","贺":"hè","倪":"ní","汤":"tāng","滕":"téng","殷":"yīn","罗":"luó","毕":"bì","郝":"hǎo","邬":"wū","安":"ān","常":"cháng","乐":"yuè","于":"yú","时":"shí","傅":"fù","皮":"pí","卞":"biàn","齐":"qí","康":"kāng","伍":"wǔ","余":"yú","元":"yuán","卜":"bǔ","顾":"gù","孟":"mèng","平":"píng","黄":"huáng","和":"hé","穆":"mù","萧":"xiāo","尹":"yǐn","姚":"yáo","邵":"shào","湛":"zhàn","汪":"wāng","祁":"qí","毛":"máo","禹":"yǔ","狄":"dí","米":"mǐ","贝":"bèi","明":"míng","臧":"zāng","计":"jì","伏":"fú","成":"chéng","戴":"dài","谈":"tán","宋":"sòng","茅":"máo","庞":"páng","熊":"xióng","纪":"jì","舒":"shū","屈":"qū","项":"xiàng","祝":"zhù","董":"dǒng","梁":"liáng","杜":"dù","阮":"ruǎn","蓝":"lán","闵":"mǐn","席":"xí","季":"jì","麻":"má","强":"qiáng","贾":"jiǎ","路":"lù","娄":"lóu","危":"wēi","江":"jiāng","童":"tóng","颜":"yán","郭":"guō","梅":"méi","盛":"shèng","林":"lín","刁":"diāo","钟":"zhōng","徐":"xú","邱":"qiū","骆":"luò","高":"gāo","夏":"xià","蔡":"cài","田":"tián","樊":"fán","胡":"hú","凌":"líng","霍":"huò","虞":"yú","万":"wàn","支":"zhī","柯":"kē","昝":"zǎn","管":"guǎn","卢":"lú","莫":"mò","经":"jīng","房":"fáng","裘":"qiú","缪":"miào","干":"gān","解":"xiè","应":"yīng","宗":"zōng","丁":"dīng","宣":"xuān","贲":"bēn","邓":"dèng","郁":"yù","单":"shàn","杭":"háng","洪":"hóng","包":"bāo","诸":"zhū","左":"zuǒ","石":"shí","崔":"cuī","吉":"jí","钮":"niǔ","龚":"gōng","程":"chéng","嵇":"jī","邢":"xíng","滑":"huá","裴":"péi","陆":"lù","荣":"róng","翁":"wēng","荀":"xún","羊":"yáng","於":"yū","惠":"huì","甄":"zhēn","曲":"qū","家":"jiā","封":"fēng","芮":"ruì","羿":"yì","储":"chǔ","靳":"jìn","汲":"jí","邴":"bǐng","糜":"mí","松":"sōng","井":"jǐng","段":"duàn","富":"fù","巫":"wū","乌":"wū","焦":"jiāo","巴":"bā","弓":"gōng","牧":"mù","隗":"kuí","山":"shān","谷":"gǔ","车":"chē","侯":"hóu","宓":"mì","蓬":"péng","全":"quán","郗":"xī","班":"bān","仰":"yǎng","秋":"qiū","仲":"zhòng","伊":"yī","宫":"gōng","宁":"nìng","仇":"qiú","栾":"luán","暴":"bào","甘":"gān","钭":"tǒu","厉":"lì","戎":"róng","祖":"zǔ","武":"wǔ","符":"fú","刘":"liú","景":"jǐng","詹":"zhān","束":"shù","龙":"lóng","叶":"yè","幸":"xìng","司":"sī","韶":"sháo","郜":"gào","黎":"lí","蓟":"jì","薄":"bó","印":"yìn","宿":"sù","白":"bái","怀":"huái","蒲":"pú","邰":"tái","从":"cóng","鄂":"è","索":"suǒ","咸":"xián","籍":"jí","赖":"lài","卓":"zhuó","蔺":"lìn","屠":"tú","蒙":"méng","池":"chí","乔":"qiáo","阴":"yīn","鬱":"yù","胥":"xū","能":"nài","苍":"cāng","双":"shuāng","闻":"wén","莘":"shēn","党":"dǎng","翟":"zhái","谭":"tán","贡":"gòng","劳":"láo","逄":"páng","姬":"jī","申":"shēn","扶":"fú","堵":"dǔ","冉":"rǎn","宰":"zǎi","郦":"lì","雍":"yōng","郤":"xì","璩":"qú","桑":"sāng","桂":"guì","濮":"pú","牛":"niú","寿":"shòu","通":"tōng","边":"biān","扈":"hù","燕":"yān","冀":"jì","郏":"jiá","浦":"pǔ","尚":"shàng","农":"nóng","温":"wēn","别":"bié","庄":"zhuāng","晏":"yàn","柴":"chái","瞿":"qú","阎":"yán","充":"chōng","慕":"mù","连":"lián","茹":"rú","习":"xí","宦":"huàn","艾":"ài","鱼":"yú","容":"róng","向":"xiàng","古":"gǔ","易":"yì","慎":"shèn","戈":"gē","廖":"liào","庾":"yǔ","终":"zhōng","暨":"jì","居":"jū","衡":"héng","步":"bù","都":"dū","耿":"gěng","满":"mǎn","弘":"hóng","匡":"kuāng","国":"guó","文":"wén","寇":"kòu","广":"guǎng","禄":"lù","阙":"quē","东":"dōng","欧":"ōu","殳":"shū","沃":"wò","利":"lì","蔚":"wèi","越":"yuè","夔":"kuí","隆":"lóng","师":"shī","巩":"gǒng","厍":"shè","聂":"niè","晁":"cháo","勾":"gōu","敖":"áo","融":"róng","冷":"lěng","訾":"zǐ","辛":"xīn","阚":"kàn","那":"nā","简":"jiǎn","饶":"ráo","空":"kōng","曾":"zēng","母":"mǔ","沙":"shā","乜":"niè","养":"yǎng","鞠":"jū","须":"xū","丰":"fēng","巢":"cháo","关":"guān","蒯":"kuǎi","相":"xiàng","查":"zhā","后":"hòu","荆":"jīng","红":"hóng","游":"yóu","竺":"zhú","权":"quán","逯":"lù","盖":"gài","益":"yì","桓":"huán","公":"gōng","牟":"móu","哈":"hǎ","言":"yán","福":"fú"},rA={"líng":[12295,20278,20940,21026,22265,22397,22796,22984,23112,23361,23738,24446,25493,26148,26382,26563,26818,27386,27422,27872,28137,28586,28789,29167,29223,29393,29618,29708,29940,30346,30769,31102,31202,31451,31533,32055,32190,32491,32656,32666,32718,32838,33330,33491,33777,34020,34054,34166,34505,34897,35052,35397,36297,36584,36632,37187,37309,37428,37634,38083,38301,38517,38646,38666,38679,38683,38685,38728,39382,39807,39914,40110,40210,40496,40567,40610,40801,40802,40836,40855],"yī":[19968,20042,20234,20381,21307,21530,21695,22123,22769,22777,22785,23259,23300,24332,25558,25742,27321,27593,27938,28175,28458,29823,30057,31054,31125,31270,32324,34524,34916,35689,36791,37116,37291,37541,38129,40406,40549,40671,40691],"dīng zhēng":[19969],"kǎo qiǎo yú":[19970],"qī":[19971,20507,20699,20932,22017,22660,23096,24765,24956,24957,25114,25471,26578,26724,26748,26866,27071,27450,27791,28114,28422,32042,32192,33803,35076,35526,36809,37098,37850,38667,39756,40328],"shàng":[19972,23577,23578,24678,32212,32497],"xià":[19973,19979,20068,22327,22799,22803,25047,26810,30108,30577,32581,37820,37868],"hǎn":[19974,21898,28011,32597,35907],"wàn mò":[19975],"zhàng":[19976,20183,22663,23938,24080,24115,24155,25177,26454,28081,30190,30252,30260,30613,31872,32960,33081,36076,36134,38556],"sān":[19977,21377,21441,24334,27637,27638,27647,29337,39702],"shàng shǎng shang":[19978],"qí jī":[19980,20854,22855],"bù fǒu":[19981],"yǔ yù yú":[19982],"miǎn":[19983,20589,20813,20885,21193,21204,21909,23081,24848,27717,27796,28238,30540,32236,32517,33148,33858,38758,39864],"gài":[19984,20066,21251,21252,25124,27010,27113,27114,28297,28433,29890,33890,37411,38041],"chǒu":[19985,19986,20404,21532,26493,30597,30657,37276,39767],"zhuān":[19987,21440,23269,23554,23560,29820,29966,30742,30935,30938,34788,35567,37151,38995,39067,40004],"qiě jū":[19988],"pī":[19989,20243,20286,22140,22383,23727,25013,25209,25259,28811,29385,29395,30738,30919,30996,30997,31195,31200,32794,35966,37043,37402,37471,37524,37635,37645,38713,39379,39660,39806],"shì":[19990,19991,20106,20107,20181,20365,20895,21183,21218,21323,21609,21980,22124,22763,22893,23317,23460,24066,24335,24337,24338,24640,24643,25146,25325,25555,26159,26160,26558,26623,26683,28584,28882,29046,30466,30478,30497,30551,31034,31035,31598,31789,33296,33299,35179,35222,35270,35298,35430,35475,35553,35610,35797,35877,36016,36147,36606,36732,36893,36990,37320,37322,37323,37424,37443,37501,38088,39166,39193,39197,39280,39960],"qiū":[19992,2e4,22389,23197,24664,24695,27e3,31179,31180,31312,31693,32231,33833,34322,34479,34677,34775,34852,36261,37041,38822,38823,39948,39949,40133,40342,40537,40861],"bǐng":[19993,23643,24626,25254,26142,26170,26564,26821,28851,31104,31177,31263,33514,34499,37044,37429,38467,38790,39173,39200,39292],"yè":[19994,20145,20727,22711,22812,23978,23979,25268,25433,25819,25834,25835,26196,26308,26309,26327,26355,26357,26556,26557,26989,27906,28082,28594,28904,29121,29207,29837,30371,30641,30648,30991,33099,33865,35585,35858,37050,37172,37745,37943,38757,38760,38913,39029,39203,39233,39308,39516,40314,40456],"cóng":[19995,20174,21474,23107,23406,24467,24468,24470,24752,27191,27401,28121,28743,29212,29742,34242,35508,36072,36073,37661],"dōng":[19996,20530,20908,21658,22508,23741,23852,24474,26168,26481,27681,27693,28087,31511,33523,33732,34624,39831,39903,40327,40363,40491,40725],"sī":[19997,20460,20952,21422,21496,21661,22070,22109,23204,24285,24662,25749,26031,26962,27840,28556,29133,31127,31136,31169,31993,32114,32230,32415,32524,32627,34156,34386,34547,34596,34692,34774,34804,37488,37551,37750,37889,38198,39096,39124,39462,40421,40502,40758],"chéng":[19998,21576,22478,22485,22552,22605,22614,23468,23800,24809,25074,25104,25215,25392,25473,25576,26536,26838,27225,27289,27910,28311,28546,29685,29689,30075,31243,31386,31596,32126,33069,33663,35488,35802,37077,37234,37614,38102,39468,39886],"diū":[19999,20002,37545,38117],"liǎng":[20001,20004,20841,21858,25498,32201,33084,34621,35058,39753,39758],"yǒu":[20003,21347,21451,26756,28277,29270,31113,32657,32840,33475,33696,34575,37193,37546,38101,40669],"yán":[20005,21427,21873,21926,22196,22633,22747,22759,22925,23032,23083,23086,23721,23890,23891,24012,24022,24023,24310,25541,26134,26956,27280,27369,27413,27839,28814,28815,29439,29698,30416,30878,31605,31799,33690,34053,34404,34578,35328,35329,35374,35453,35744,37076,38278,38331,38379,38414,38991,38996,39068,40573,40611],"bìng":[20006,20341,20482,20641,22442,25682,26660,30149,31369,31453,35457,38736,39849],"sàng sāng":[20007],"gǔn":[20008,24771,28378,28414,30937,32196,32498,34008,34057,34926,34974,36645,36746,39820,39872,40103],"jiū":[20009,21244,21886,25578,25579,26427,31350,31998,32416,33819,36211,38404,39695,39726,40169,40480],"gè gě":[20010,20491,21508],"yā":[20011,22311,23410,24216,25276,26514,26720,26895,37647,37914,40201,40232,40310,40486,40493],"pán":[20012,23227,24139,27075,27904,28682,29247,30424,30436,30928,32271,33968,34784,36434,36451,37788,38838],"zhōng zhòng":[20013],"jǐ":[20014,22912,24049,25119,25380,25486,25760,25824,27254,27890,29361,33034,34414,34787,39778,40062,40578],"jiè":[20015,20171,20511,21814,22586,23622,23626,23701,24206,24483,25106,26960,29335,29600,29758,30028,30029,30117,30734,34471,34550,34936,35119,35489,35819,37765,39601,39786],"fēng":[20016,20217,20561,20732,20968,20972,20974,22950,23543,23553,23791,23792,23862,26539,26963,27282,27811,27816,28194,28739,28925,29326,29478,29714,30127,30219,30461,30748,30904,31688,34356,34562,34861,35920,37175,37190,37586,37821,37856,38155,38715,38730,39116,40631],"guàn kuàng":[20017],"chuàn":[20018,27724,29588,36055,37351,38031],"chǎn":[20019,20135,20865,21111,22213,23932,26101,27984,28411,28763,29986,29987,31749,33927,34118,35522,35650,35719,35844,37855,38130,38323,38369,38416,39587],"lín":[20020,20903,22755,23818,23961,26036,26237,26301,26519,28542,28726,29136,29747,29848,30645,30852,30967,31910,31932,32343,32759,33256,36692,36762,36980,37051,37168,37883,38462,38563,38678,39502,40023,40158,40592,40607],"zhuó":[20021,21125,21331,21828,22324,22960,23098,25775,25798,25826,26027,26030,26033,26034,26037,26219,26899,27978,27998,28609,28796,28917,29752,30842,31130,31393,31831,31857,32620,33537,34839,34879,35521,35537,35638,35836,37196,37938,38255,40299,40415],"zhǔ":[20022,20027,21167,22065,22225,23444,24126,25284,28186,28624,29009,29038,29149,30633,30682,32604,35421,38524,40448,40584],"bā":[20023,20168,20843,21485,21749,22847,23708,24052,25420,26419,29584,30116,31494,31889,32659,33453,34438,35933,37343],"wán":[20024,21011,23436,23695,25231,25430,27725,28919,29609,29715,31490,32008,32424,32747,33412,36006,38929,39037],"dān":[20025,21231,21296,21336,22921,23173,27546,27563,29972,30472,30723,31658,31774,32828,32829,32835,32888,35101,35148,36525,37112,37170,37206,38933],"wèi wéi":[20026],"jǐng dǎn":[20028],"lì lí":[20029],"jǔ":[20030,24326,25369,25831,26887,27017,27032,27384,27397,30697,31589,32869,33289,33682,33951,35191,36413,40799,40835],"piě":[20031,33508,37893],"fú":[20032,20239,20440,20971,21020,21264,21640,21753,22424,23386,23722,24063,24087,24133,24158,24343,24447,24619,25206,26603,26687,26740,27679,27885,28014,28074,28563,28837,29624,30006,30025,30273,31059,31119,31274,31526,31641,32049,32060,32101,32141,32450,32459,32600,32614,32711,33344,33433,33443,33531,33536,33583,33748,33869,34393,34472,34569,34656,34970,34993,35142,35173,35560,35943,36414,36667,36752,37083,37464,37468,38861,38888,39083,39668,39812,39858,40167,40172,40212,40297,40699],"yí jí":[20033],"yì":[20034,20041,20100,20134,20159,20231,20287,20350,20427,20740,20863,21e3,21139,21166,21210,21225,21255,21587,21613,21625,21768,22216,22299,22340,22460,22520,22869,23253,23313,23537,23673,23748,23975,24095,24096,24134,24281,24322,24328,24331,24441,24518,24584,24639,24722,24847,25014,25036,25087,25233,25401,25953,26131,26233,26304,26318,26457,26509,26861,27023,27128,27277,27485,27540,27562,27577,27589,27970,28005,28019,28249,28322,28521,28602,28727,28808,28978,29088,29092,29116,29146,29153,29169,29512,29620,30064,30123,30188,30231,30238,30257,30292,30410,30614,31315,31465,31698,32266,32374,32377,32462,32546,32681,32703,32714,32716,32755,32764,32820,32900,32906,33161,33222,33367,33402,33413,33477,33823,34042,34191,34265,34269,34329,34377,34612,34720,34922,34979,35028,35035,35129,35196,35378,35379,35405,35427,35516,35695,35696,35739,35758,35793,35811,35850,35929,35931,35959,35990,36096,36295,36726,36920,37009,37139,37303,37364,37408,37808,37951,38226,38257,38435,38591,38700,39248,39365,39515,39551,39598,39848,40322,40323,40333,40385,40394,40423,40446,40451,40541,40546,40659,40824],"nǎi":[20035,20535,22902,23341,24316,27670,30099,33407,36858,37346],"wǔ":[20036,20116,20213,20237,20398,20533,20763,21320,21838,22953,23084,23285,24209,24289,24548,24579,25006,25664,27494,28501,29075,29310,29597,29687,29798,29970,30868,33310,36492,36821,36892,38490,40289,40521],"jiǔ":[20037,20038,20061,20067,22906,26470,27747,28792,29590,32036,33295,37202,38265,38893,38894],"tuō zhé":[20039,26452,39346],"me mó ma yāo":[20040],"zhī":[20043,20481,21358,24053,25624,25903,26624,26772,26917,27056,27713,27868,30135,31063,31084,31187,31257,32149,32930,32977,32989,33026,33437,34357,34584,34940,38587,40183,40242,40709],"wū wù":[20044],"zhà":[20045,21668,23473,25662,27048,28320,30148,34481,35408,35784,37281,38661],"hū":[20046,20079,21282,21291,21628,21823,22033,22400,23523,24160,24573,24794,26130,27473,27864,28148,28409,28864,33528,34381,34390,35644,36580,36727,38608],"fá":[20047,20240,20640,22394,22433,22690,22978,26672,27980,30594,31529,31567,32602,32624,32632,34245,38309,38400],"lè yuè yào lào":[20048,27138],"yín":[20049,21535,22102,22170,22273,22432,22820,23148,23493,23806,23839,23855,27309,27557,27903,28139,28379,28878,29374,29434,29836,30797,30866,33654,34089,35348,35354,35361,35518,37150,37405,37504,38134,38698,40419,40806],"pīng":[20050,20444,23049,28036,30009,30767,32864,33397,38953],"pāng":[20051,28354,33006,33174,38641,38710],"qiáo":[20052,20392,20689,23286,24980,26725,27095,27189,27211,27381,29342,30631,30810,30980,33613,33630,34126,34286,35673,36267,37896,38802,38845,39014],"hǔ":[20053,29733,33792,34382,34397,37695,39921],"guāi":[20054],"chéng shèng":[20055,20056,23053],"yǐ":[20057,20059,20197,20506,20591,23327,23866,24050,24225,25158,25914,25980,26065,26070,27301,30691,30994,31510,33315,33380,33505,33506,34433,34712,34811,35071,36390,36642,36697,36888,37199,37332,37400,37487,38023,38999,40166,40814],"háo yǐ":[20058],"niè miē":[20060],"qǐ":[20062,20225,21551,21784,21843,21844,21855,23117,23674,26462,26856,29592,30400,32186,32494,33425,35564,36215,37012,38361],"yě":[20063,20918,22050,22492,22724,28444,37326],"xí":[20064,21946,23219,23949,24109,26938,27268,28445,32722,33990,34989,35186,35233,35275,35637,36248,37067,37812,38576,38699,39105,39473,39485,39528,39996,40155],"xiāng":[20065,21410,24258,24512,27007,27392,28248,29910,31269,31665,32215,32515,33207,33431,33835,33881,34188,35140,37111,37129,37130,37141,38002,38262,39321,39524,39591,40028,40600],"shū":[20070,20495,20496,20789,21460,23005,23575,25234,25491,25669,25860,26360,26530,26803,27166,27530,27571,27641,27642,28113,28717,28930,30094,30095,32019,32128,32446,33298,33789,34092,36360,36567,36664,36755,37123,38478,39835,40296],"dǒu":[20071,25238,26515,34474,37380,38439,38497],"shǐ":[20072,20351,20824,21490,22987,23465,23630,27009,30690,31542,35925,37442,39387,39542],"jī":[20073,20703,20987,21001,21007,21086,21501,21799,21918,21976,22064,22334,22522,22716,23020,23632,23878,23879,25731,25802,26398,26426,26501,27181,27231,27588,28608,29316,29585,29859,30072,30079,30314,30710,30959,31215,31309,31492,31571,31637,31754,32193,32641,32647,32648,32813,32908,33448,34368,35209,35210,35663,35684,35749,36075,36087,36173,36347,36369,36491,36536,37512,37668,37910,37959,37977,38574,38622,38847,38898,39138,39249,39269,39765,40174,40335,40378,40388,40452,40481,40782,40783,40785],"náng":[20074,22178,27420,34864,39266],"jiā":[20075,20339,20642,21152,22025,25272,26551,26780,27616,27847,27971,28025,29324,29491,29640,30146,31539,31960,32798,33141,33901,34952,35949,35985,36303,36838,37483,37813,38227,40208,40602],"jù":[20076,20520,20534,20855,21095,21127,21230,22503,22526,22729,22998,23654,23656,23712,24040,24042,24583,24807,24883,25029,25084,25298,25312,26139,27499,27952,28605,28844,28901,29323,31212,31405,31414,31796,31892,32799,32858,34401,34487,35406,35765,35942,36317,36382,36486,36989,37037,37301,37445,37947,38044,39094,39123,39375,39828],"shí":[20077,21313,22488,22610,23036,23454,23455,23508,23526,23765,23925,26102,26105,26178,27055,28252,28321,28859,31055,31437,34432,34645,36795,36936,37456,39136,39267,39830,39971,40101,40747,40749],"mǎo":[20078,20871,21359,23745,25148,26164,27862,31543,34025,37466,38086],"mǎi":[20080,22058,33644,34130,36023,40438],"luàn":[20081,20098,37344],"rǔ":[20083,25833,27741,32919,36785,37135],"xué":[20084,23398,23416,23747,23976,25992,27894,28585,29154,31348,33555,34965,36357,40445,40500],"yǎn":[20085,20456,20547,20796,20822,20823,21411,21428,22110,23373,23875,24024,24026,24327,24861,25133,25162,25217,25513,25564,26350,26940,27327,27783,28215,28436,29744,29975,30524,32616,33810,34648,34893,35095,36541,36931,37118,38546,39017,39751,39768,39947,40352,40673,40676,40684,40685,40694,40756,40761,40820,40849],"fǔ":[20086,20428,20443,20463,24220,24355,25242,25290,25771,26023,26920,28367,28964,29995,30425,31776,33104,33105,34565,36628,36741,37081,37340,37345,38429,38955,39732,40700],"shā":[20087,21798,26432,26732,27578,27630,29440,30183,30722,30832,32023,32378,32433,34097,35039,37801,38121,38327,39679,39782,39882,39883,40104],"nǎ":[20088,38635],"qián":[20089,20097,20209,20546,21069,22680,23178,23698,25297,25518,27049,27244,27500,28507,28508,28659,28746,31645,33893,34388,36577,37392,37463,37549,37666,37766,38052,38065,38067,38764,39450,39453,39980,40660,40666],"suǒ":[20090,21794,21993,25152,26267,28305,28345,29712,29713,29795,32034,35112,37782,37819,37825,38145],"yú":[20091,20110,20112,20227,20313,22563,22572,22948,23067,23087,23089,23337,23859,23886,23899,24858,25205,25540,26079,26977,26992,27014,27428,27464,27487,27510,28180,28189,28257,28417,28574,29263,29427,29591,29593,29788,29877,30402,30574,31404,31485,31813,32685,33140,33278,33281,33286,33349,33584,33838,33848,34125,34331,34398,34422,34643,34744,34919,35093,35238,35278,35547,35619,35840,36400,36671,36701,36926,37016,37201,37725,38533,38611,38633,39192,39296,39455,39596,39619,39770,39779,39869,39922,39941,40060,40416,40454,40821],"zhù":[20092,20267,20295,20303,22398,22712,22772,23872,25280,26492,26609,27174,27574,27880,28855,30128,30493,31069,31081,31450,31599,31672,31723,31767,32053,32056,32443,32668,32741,33486,33671,34496,35387,36015,36142,36307,36596,37458,37619,37956,38136,39349,39376,39547],"zhě":[20093,32773,35126,35189,36205,36407,37754,38167],"qián gān":[20094],"zhì luàn":[20095],"guī":[20096,22317,22955,23215,23266,23296,24112,24402,25707,26909,27131,27132,27383,27512,29674,29808,29853,29900,30344,30625,30789,33573,34348,35215,35268,37053,37068,38312,38394,39465,39734,39737],"lǐn lìn":[20099],"jué":[20101,20915,21012,21122,21303,21413,22090,23378,23379,23835,23851,23973,24399,24992,25008,25092,25225,25367,25496,25899,26743,27227,27228,27438,27666,27770,28749,28979,29094,29201,29236,29237,29527,29571,29606,29608,29647,29812,30234,30669,30689,30724,32085,32118,32477,33220,33461,34141,34152,34419,34792,34793,35286,35310,35324,35363,35662,35776,35890,35996,36221,36233,36471,36521,37388,37901,37917,38017,38242,40194,40195,40418],"le liǎo":[20102],"gè mā":[20103],"yǔ yú":[20104,25049],"zhēng":[20105,20290,20967,22979,23196,23781,23837,23842,24449,24496,28833,28893,29229,29424,29465,30309,30480,30529,30556,31581,31631,31708,32839,33024,33976,36397,37478,37658,37875,39687],"èr":[20108,21045,21665,24333,24336,27186,35456,36014,36019,36144,39670],"chù":[20109,20631,20746,24629,25015,25616,26038,27484,29695,29729,30679,31436,32064,32460,33221,35302,35320,35926,37136,38310,40668],"kuī":[20111,21042,23743,24011,30420,31397,31418,32871,34407,38362,39005],"yún":[20113,20253,21243,21248,22249,22936,24874,25251,26112,27218,27780,28066,28339,28560,29065,30023,31184,31612,31700,32028,32284,32429,32792,33464,33975,34131,37095,37142,37574,38642],"hù":[20114,20913,21952,22171,23135,23277,23278,23733,24077,24342,24601,25142,25143,25144,25149,25160,25252,26120,27124,27789,27818,28396,29097,29920,31068,31503,31748,31888,32148,34096,35703,35952,37152,37721,38912,40047,40160,40184,40460,40561],"qí":[20115,21080,22524,23696,23699,23822,23900,24877,25489,25993,25994,26050,26071,26826,26827,27313,27328,27495,28103,28637,29449,29570,29734,29738,29826,30054,30119,30849,30869,31041,31048,31098,31141,31442,31791,31793,31823,31928,32165,32166,32949,33040,33229,33385,33450,33793,33813,34162,34244,34308,34449,34458,34548,34589,34590,34727,34832,35072,36573,37183,37358,37665,38172,38509,38926,39040,39438,39439,39481,39568,39569,39696,39743,39893,39981,40111,40141,40312,40320,40594,40609],"jǐng":[20117,20742,21037,21060,22355,23441,24156,25004,26299,27532,27755,27756,28555,29828,29855,29861,31357,32956,34812,35686,38449,38938,38968],"sì":[20118,20288,20385,20777,20821,21987,22235,22994,23088,23392,23546,24051,26614,27065,27740,27863,27876,27917,27936,28056,28675,29293,31040,31145,31458,31525,32796,32898,32902,34172,35223,35972,37362,37430,37435,39140,39164,39282,39391,39427,39543],"suì":[20119,23320,23681,23895,26078,27286,27506,27507,28603,29035,29159,29874,30741,30862,31071,31149,31298,31319,31327,32320,32336,32376,35162,35510,35682,35847,36069,36995,37894,37929,38567,38882],"gèn":[20120,20121,25583,25604,33563],"yà":[20122,20124,20473,20916,21148,22292,22304,22497,23045,23149,25568,27689,27692,29373,30737,31247,32848,35198,35200,35357,35766,36711,36819,40830],"xiē suò":[20123],"qí zhāi":[20125,40778],"yā yà":[20126,21387,22445,22739,38100],"jí qì":[20127,28943],"tóu":[20128,25237,38957,39600],"wáng wú":[20129],"kàng háng gāng":[20130],"dà":[20131,30484],"jiāo":[20132,20716,23047,23308,23783,23957,23971,24973,26898,27975,28550,28966,30977,31322,31781,33014,33184,33202,33581,33582,34121,34400,34527,34797,36324,36679,37066,37902,39509,39556,39851,40091,40257,40422,40430,40554],"hài":[20133,21968,23475,27686,39168,39258,39405,39412,39559],"hēng pēng":[20136],"mǔ":[20137,22982,23764,25287,27597,29281,29299,30018,30022,30034,30045,30046,30062,30762,32991,36359,37479],ye:[20138],"xiǎng":[20139,20143,21709,24819,26193,34435,34817,38911,39144,39177,39255,39287,39837,39895,40054,40094],"jīng":[20140,20144,20834,22357,22361,23131,24778,26060,26061,26230,27256,27902,28039,29444,30555,31188,31241,31923,31934,32076,32147,32161,32857,33096,33550,33606,33610,33729,33871,39514,39912,40120,40321,40324,40598,40608,40753],"tíng":[20141,20572,23159,23881,24237,24311,26975,27059,31603,32868,33691,33910,34579,34639,35562,37010,38662,40750],"liàng":[20142,21928,24738,26238,28280,35538,35845,36620,36635,36742,37700],"qīn qìng":[20146,35242],"bó":[20147,20194,20412,20720,21338,24091,24893,25066,25388,25615,27394,28001,28159,28196,29055,29268,29403,29917,31028,31201,31636,31769,31978,32969,33046,33162,33334,33354,33825,33895,34991,35151,35182,35592,36387,37091,37432,37457,37581,37787,37998,38073,38082,38216,39226,39310,39323,39326,39361,39406,39539,39622,40275,40513],"yòu":[20148,20305,20326,20369,21448,21491,21706,21760,22271,23031,23461,23775,24188,29398,31056,34484,35480,35825,35969,36854,37229,37321,40748],"xiè":[20149,20275,20574,20592,20673,21352,21368,22119,22638,22801,23199,23633,23655,24296,24482,25032,26284,26800,27021,27053,27899,27945,28203,28581,28681,28707,28794,28839,28840,29166,29205,29548,31044,31164,31951,32050,32079,32108,32370,32392,32449,32567,34210,34212,34809,34831,35081,35131,35613,35874,36510,36994,38782,38896,40770,40792,40795,40805],"dǎn dàn":[20150,39358],"lián":[20151,21126,21298,21299,22009,22098,22849,22889,23294,24088,24265,24604,24976,28063,28451,28610,28627,28718,29073,29163,31806,31842,31848,32314,32756,32852,32872,32875,32878,32879,33217,33714,34030,34197,34698,34826,35042,35123,35229,35632,36453,36830,36899,37772,37934,38256,39697,39985,40098],"duǒ":[20152,21722,22194,22517,23836,26421,26422,32158,32525,36243,36529,36530,36547],"wěi mén":[20153,26006],"rén":[20154,20155,20161,22764,24520,24526,26418,31170,33442,39772,40256],"jí":[20156,20157,20235,20342,20590,21337,21363,21373,21450,21469,21513,22578,22601,23006,23241,23692,23924,23983,24438,24547,24613,24881,25122,25572,26497,26840,26987,26997,27081,27293,27547,27762,28242,28503,30142,30240,30349,31496,31679,31821,32026,32423,33164,33381,33978,34112,34170,34637,34703,35147,35289,35899,36374,36432,36516,36655,36698,36753,37062,37537,37715,37878,38598,38631,38709,40545],"wáng":[20158,20220,20838,33699,34463],"shén shí":[20160],"lè":[20162,21499,24519,27707,27856,29583,30771,31765,33403,38430,38903,39182,39987,40051,40147],"dīng":[20163,21486,24068,29582,30100,30447,32821,34416,38762],"zè":[20164,23857,24194,25425,26115,26135,27716],"jǐn jìn":[20165,20677,23268],"pú pū":[20166],"chóu qiú":[20167],"zhǎng":[20169,24165,25484,30979],"jīn":[20170,22587,24062,24781,26020,27941,29650,29755,29857,30747,31563,33621,34943,35167,35284,37329,37330,37375,38021,40566,40645],"bīng":[20172,20178,20853,20907,20912,25508,27703,37618],"réng":[20173,31037,33471,36792,38526],"fó":[20175,22386,26811],"jīn sǎn":[20176],"lún":[20177,20262,20374,20523,22261,22279,23144,23832,23833,26822,27814,28138,30958,33088,33749,34598,36378,36650,36718,37632,38511,39913],"cāng":[20179,20218,20489,20948,23906,27815,28356,28664,29514,33329,33369,33485,33980,34725,40487],"zǎi zǐ zī":[20180],"tā":[20182,22604,23427,27033,28347,29280,31042,35103,36287,36962],"fù":[20184,20585,20613,20904,21103,21648,22399,22797,22919,23142,23181,23316,23500,24489,26929,31060,31139,31438,32238,32283,32538,33145,33839,34151,34489,34519,34652,34670,34973,35079,35204,35206,35331,35394,35747,36e3,36070,36091,36127,36171,36185,36212,36665,37713,37730,38428,38468,39333,39385,39544,39826,39954,40075,40134],"xiān":[20185,20186,20321,20682,20722,20808,22037,22910,23667,24303,24570,25016,25472,26297,26484,27673,29655,31046,31176,31868,32330,32398,32406,33518,35132,35187,36345,36462,36506,37232,37697,38184,38895,38897,39334,40059,40369],"tuō chà duó":[20187],"hóng":[20188,21552,22444,22917,23042,23439,23446,24344,24395,27759,27859,27946,28004,28209,28482,29586,29596,30804,31441,31460,31690,31904,32024,32045,32139,32430,32707,32733,32830,33520,33645,33874,33875,35897,35900,37404,37495,37584,38286,38387,38672,38687,38787,39775,40251,40511,40649,40652],"tóng":[20189,20319,21699,23746,23773,24221,24420,26189,26312,26704,27651,28021,28540,29341,29534,30510,30643,30780,31217,31461,31905,33191,33596,34450,35447,36200,37230,37462,37493,37509,38108,39175,39846,40086],"rèn":[20190,20205,20995,20996,22922,23001,23675,23683,25192,29283,31053,32009,32029,32077,32427,32436,32917,33101,34941,34997,35346,35469,35748,35761,36564,36715,37395,38765,38769,38860,38887,39146,39169,39274],"qiān":[20191,20325,20681,21315,22322,22903,23407,23693,24749,24838,24947,25190,25322,25652,25729,25872,25873,25875,26436,27343,27736,27751,29301,29309,31439,31614,31805,31830,31844,31873,33418,33598,34440,35120,35536,35609,35878,35896,36801,36983,37370,37382,37467,37874,38030,38433,38854,38981,39467,39582,39708,39709,40302,40528],"gǎn hàn":[20192],"yì gē":[20193],"dài":[20195,20386,21447,22408,22509,23729,24082,24102,24111,24118,24279,24608,25140,26307,26571,27526,28731,29619,29767,29977,31780,32063,32255,32464,33372,34675,34955,35190,36003,36151,36443,36561,36570,36585,36714,36840,38708,38726,40207,40667,40689],"lìng líng lǐng":[20196],"chào":[20198,32790,35288],"cháng zhǎng":[20199,20815,38263,38271],"sā":[20200],"cháng":[20201,20607,20767,22039,22160,23270,23581,24120,24476,29818,29946,29982,32928,33144,33171,33484,33799,38264,40040,40127],"yí":[20202,20359,20736,20893,21276,21670,22319,22839,23016,23440,23452,23463,23538,23763,23980,23991,24056,24411,24412,24413,24414,24609,24670,25157,26246,26648,26924,26936,27778,27935,29098,29941,30157,31227,31747,31822,32672,33008,33811,34534,34708,35322,35643,36029,36155,36320,36859,36986,37844,38921,38948,38949,38986,39056,39284,39847,40250],"mù":[20203,20969,21215,22675,24149,24153,24916,24917,26286,26287,26408,26968,27619,27792,28817,29287,29383,30446,30566,31302,33362,33500,33711,34462,37484,38076,38638,38658],"men mén":[20204],"fǎn":[20206,21453,27214,36820],"chào miǎo":[20207],"yǎng áng":[20208],"zhòng":[20210,20247,22585,22933,23185,29382,30526,31052,31575,33597,34459,34886,34934,35557],"pǐ pí":[20211],"wò":[20212,20563,21351,23177,24132,25569,26947,27779,28197,28643,29889,30595,30826,32927,33115,33253,40823,40844],"jiàn":[20214,20468,20581,20717,21073,21091,21105,21133,21134,21138,21140,22713,23499,24314,24484,25846,26068,26967,27645,27914,28071,28567,29294,29652,30647,30965,30976,31661,31947,32349,33137,33270,33328,33382,33616,34214,35256,35539,35563,35675,35855,36046,36068,36145,36253,36341,36368,36410,36702,37492,37747,37749,37937,37969,37970,37996,38003,38190,38291,39198,39279],"jià jiè jie":[20215],"yǎo fó":[20216],"rèn rén":[20219],"fèn bīn":[20221],"dī":[20222,20302,21874,22494,22564,23739,24445,27136,28404,30974,31210,32669,34971,36230,38532,38830],"fǎng":[20223,20515,26058,26121,26136,29932,30470,32033,32442,33323,35370,35775,39651,40365],"zhōng":[20224,21027,22928,24146,24440,24544,26570,27767,27848,28802,30405,31846,32066,32456,33327,34080,34585,34724,34749,34931,34935,36465,37409,37758,37912,38047,38202,40228,40744],"pèi":[20226,20329,23029,24084,26046,26054,27803,28031,29678,34012,36705,36756,37197,38664,39351],"diào":[20228,21514,24340,25481,30265,30404,31374,31413,31464,35339,37347,37407,37553,37629,37955,38035,38110,38655,39777],"dùn":[20229,28513,28822,29129,30462,30744,30903,36402,36871,36929,36975,37389,38045],"wěn":[20230,21006,21563,21573,25222,26749,31283,31311,31337,32010,32947,33047],"xǐn":[20232],"kàng":[20233,21279,22245,25239,28821,37415,38058],"ài":[20236,20734,22631,22738,23250,23329,24859,25043,26279,26326,29233,29815,29862,30375,30649,30777,30795,30861,31001,34182,35706,36089,37952,38552,38729,39218,39332,40043,40241],"jì qí":[20238,34234],"xiū xǔ":[20241],"jìn yín":[20242],"dǎn":[20244,21008,25762,29612,29933,32030,32966,33213,34932,36071,36181,40661],"fū":[20245,21579,23056,23413,23555,24612,25071,25975,26057,29598,30726,31235,31583,31952,32146,32932,33178,33602,33652,34925,36282,36311,37022,37148,37212,37383,40617,40620,40625,40632],"tǎng":[20246,20645,20795,22507,25091,26349,29219,30680,36538,37810,38018,38219],"yōu":[20248,20778,21606,22168,23795,24189,24551,24736,24962,25912,27340,28410,28672,32395,32682,32816,36876,37182,40576],"huǒ":[20249,22821,28779,29047,37033,37413,38060],"huì kuài":[20250,26371,27981,29871],"yǔ":[20251,20417,20451,20554,20660,21292,22131,22276,22281,23431,23513,23679,23996,24254,25383,25940,26014,26944,29760,30224,31076,31161,31333,31411,32701,33287,33837,35984,37125,38952,40588,40812,40841],"cuì":[20252,21851,24560,24756,27635,28140,28960,30121,30209,31425,31883,31929,32035,32183,32710,32736,33027,33030,33082,33196,33205,33230,33795,35146,38983],"sǎn":[20254,20632,31972,32342,39242,39315],"wěi":[20255,20266,20553,20605,20702,20784,23059,23530,23843,23945,24491,24839,25444,26256,26806,27943,27992,28200,28828,29010,29477,29614,29771,30207,32239,32428,33138,33353,33435,33479,33649,33806,33894,33933,34111,34620,35529,35839,36371,37729,38865,38873,38881,38890,38944,39097,39593,39594,39595,39850,40084],"chuán zhuàn":[20256,20659],"chē jū":[20257,20453,36554,36710],"yá":[20258,21393,21395,22544,23688,23829,23830,28079,28420,29273,29601,29706,30554,31500,33469,34460,34905,40790],"qiàn":[20259,20436,20521,20761,21003,22733,23345,24723,26824,26912,27111,27424,27465,30360,31695,31711,32308,33441,33960,34099,36644],"shāng":[20260,20663,21830,22674,24943,27527,27556,28403,28449,29109,34063,34730,35294,35316,35626,39738],"chāng":[20261,20480,23100,26124,26905,28112,29462,29737,33750,35054,37673,38176,38326,38410,39911,40115,40730],"chen cāng":[20263],"xùn":[20264,20378,21314,22080,24058,24061,24455,24891,27529,27582,27739,28512,29413,34120,35338,35347,35353,35757,35759,36805,36863,36874,36956,37954,39016,39348,39535],"xìn":[20265,22239,23390,33066,33291,34885,35371,37313,38432,38998],"chǐ":[20268,20360,21366,21498,22417,24677,27503,32827,32916,32995,34439,35053,35115,35913,37497,40786,40831],"xián xuán":[20269],"nú nǔ":[20270],"bǎi bó":[20271],"gū gù":[20272],"nǐ":[20273,20320,20766,23412,25311,25836,26062,26226,29396,33512,34239,38572],"nì ní":[20274],"bàn":[20276,21150,21322,22981,24593,25198,29923,31194,32070,32458,36774,37473,38781],"xù":[20277,20368,21206,21207,21369,21465,22463,22779,23167,24207,24676,25933,25944,26093,26155,26370,27090,27440,27528,27775,27776,27947,28294,28469,28490,28869,28924,29030,29533,29676,30434,30593,31288,32110,32154,32210,32214,32396,32490,32493,32851,32863,33988,34266,35385,36041,37207,38922,40046],"zhòu":[20279,20733,20881,21610,21650,21678,23449,26172,26205,29955,30385,30394,31808,31826,31829,31897,32002,32272,32419,32457,32964,33646,33892,35403,37198,39374,39519,39588],"shēn":[20280,20353,20831,21627,22548,22973,23072,23678,23799,25183,25938,26321,26587,27680,28145,29130,29637,29985,29991,30003,30482,30775,31356,31862,31864,31938,32051,32453,32601,32615,33888,34017,34072,34195,35025,35383,35445,35804,36523,39402,39891,39925,39994,40121,40290],"qū":[20281,20297,21284,21631,22373,23624,23702,23732,23943,24968,25278,25978,27968,28992,31067,31553,31916,32992,34502,34512,34986,35259,35416,35790,36237,36527,36544,38457,39366,39368,39493,39537,39671,39804,39992,40011,40332,40623,40628,40633,40674],"sì cì":[20282],"bēng":[20283,22051,22879,23849,23917,38285],"sì shì":[20284],"jiā qié gā":[20285],"yǐ chì":[20289],"diàn tián":[20291,38079],"hān gàn":[20292],"mài":[20293,21154,21233,21334,21787,22770,33032,34887,36067,36808,36993,38689,38690,40613,40614],"dàn":[20294,20708,21846,21847,21887,22089,22186,24078,25018,26086,26598,27694,27786,27897,28129,29402,30093,30298,31147,31390,33093,33807,34014,34507,34577,35291,35345,35477,35806,36105,38702,39204,39247,39411,39655,40224],"bù":[20296,21199,21541,21656,22487,22496,24067,24269,24598,24721,27493,27496,27497,29951,31728,33657,34048,36356,37096,37110,37384,38042,39202],"bǐ":[20298,20478,21269,22838,22947,24444,26428,26560,27604,27614,27800,30101,31189,31508,31558,31875,32859,33325,35983,37145],"zhāo shào":[20299],"cǐ":[20300,27492,27866,30345],"wèi":[20301,21355,21619,21890,22683,23206,24944,25024,26410,28205,29023,29101,29338,29484,30031,32237,32635,32963,33535,33739,34287,34358,34655,34737,34907,34910,35133,35586,35718,35727,35859,36503,36507,36558,36682,37839,38696,39207,39221,39254,39759,39815,40154],"zuǒ":[20304,24038,32339],"yǎng":[20306,20639,20859,22385,23711,24899,25065,25857,27687,27697,28852,30162,30306,31010,32059,34630,36590,39178,39386],"tǐ tī":[20307,39636],"zhàn":[20308,20577,23960,25112,25126,25136,26632,26719,26855,28251,31449,32187,32509,33754,34360,34405,34406,35687,36687,39503],"hé hē hè":[20309],"bì":[20310,21639,21716,22006,22354,22555,22721,22896,22972,23138,23318,24065,24163,24164,24199,24243,24294,24330,24379,24380,24387,24517,24621,24842,24846,25949,25987,26768,27605,27606,27609,28258,28375,28397,28535,29007,29082,29428,29528,29529,29644,29863,30016,30050,30122,30201,30202,30357,30564,30887,31578,31621,31622,31718,31731,31882,32188,32298,32372,32636,33143,33534,33628,33798,33822,34006,34045,34109,34204,34572,34960,35141,35166,35171,35313,35414,35792,36017,36116,36177,36344,36437,36483,36484,36991,37042,37160,37162,37453,37838,37940,38091,38279,38281,38303,38381,38491,38880,39158,39238,39325,39388,39494,39616,39763,39813,40413,40425,40714],"tuó":[20311,22376,22582,23726,27094,27216,27825,30755,30756,30882,32061,35409,36302,37217,38436,38464,38465,39389,39390,39464,39506,39517,39548,39808,40213,40501,40713,40717,40743],"shé":[20312,33292,34421,34533],"yì dié":[20314,26163,27846,36604],"fó fú bì bó":[20315],"zuò zuō":[20316],"gōu":[20317,27807,28317,30144,31709,31804,32241,32529,34983,35104,37390,37476,38057,38834,38877],"nìng":[20318,20395,20543,23509,27870,28573,28632],"qú":[20322,21164,25141,26026,27403,27412,27661,28141,28744,29216,29846,29865,30319,30962,31847,32071,32970,33246,33731,33867,34134,34343,34781,34871,34876,34896,34914,36515,36581,38010,40221,40476,40498,40745],"yōng yòng":[20323],"wǎ":[20324,21651,30745,37047],"kǎ":[20327,22448,33001,35011,37490],"bāo":[20328,21241,21253,23394,29042,31523,32990,33502,34132,35046,35090,35139,38337,40793,40837],"huái huí":[20330],"gé hè":[20331],"lǎo":[20332,21694,24645,26675,29419,29679,30803,32769,32770,33622,34543,36689,37536,38097,39857],"xiáng":[20333,24224,26649,31077,32116,32724,35443,36333],"gé":[20334,21260,21572,21981,22629,24837,25356,25663,27077,27338,28358,33160,33269,33558,35297,35581,36661,36693,38307,38401,38548,38839,38864,38874,39444,39612,39855],"yáng":[20335,21175,22431,23864,24457,25196,25562,25965,26104,26140,26264,26472,26954,27915,28800,29660,30113,30221,30523,34520,35577,36656,37722,38038,38438,38451,38525,38711,39098,39119,39953,40249,40457],"bǎi":[20336,25453,25670,25850,26658,30334,31457,31912,35180],"fǎ":[20337,23772,27861,28747,30749,37701],"mǐng":[20338,20949,23027,24911,37225],"èr nài":[20340],"hěn":[20343,24456,29408,35434],"huó":[20344,27963],"guǐ":[20345,21286,21293,21420,22429,23037,23428,24203,24234,24657,26231,28224,30328,31082,31755,34539,34785,35300,35437,35809,36556,36712,38482,39740],"quán":[20346,20840,21875,22498,23038,23761,24015,25331,25660,26435,27006,27177,27402,27849,27940,28278,29303,29320,29780,30154,30786,31564,32275,33603,33906,34615,34872,35296,35438,35808,36327,36385,36615,36737,37275,37523,38120,38350,39028,39079,39401,39457,39688,39937,40136,40804],"tiāo":[20347,24227,26091,31079,32846],"jiǎo":[20348,20748,23362,25378,25605,25759,25785,25898,25963,25981,25983,26184,26270,26322,28762,29150,29409,29868,30350,30374,32094,32400,32478,33139,33259,34780,35665,36043,36363,37496,38128,39171,39290,40014,40867],"cì":[20349,21054,24219,26431,26664,27425,32088,33574,33727,34515,34694,36060,36176],"xíng":[20352,21009,21720,22411,23065,24418,27920,30798,34549,37026,37065,37379,37494,37522,38040,38095,38473,38488,39219],"tuō":[20354,21635,21660,22315,25176,25301,25302,27729,33067,33073,33676,34981,35351,35756,39141,39270,39776,39861],"kǎn":[20355,20568,20890,22350,24770,30733,33712,36641,36695,38993],"zhí":[20356,20516,20540,22516,22519,23018,23298,25120,25191,25709,26893,27188,28116,28432,30452,31107,32119,32310,32832,32844,32887,33201,34777,36310,36399,36448,36497,36548,37342,39357],"gāi":[20357,22419,23007,23760,26192,30049,31092,33604,35442,35813,35941,36037,36044,36165,38484],"lái":[20358,20459,20488,23811,23821,24242,26469,26814,26870,28062,28150,29453,29724,31577,31618,33713,33802,36904,37106,37688,38140,39435,39904,40326,40627],"kuǎ":[20361,21685,22446,37529],"gōng":[20362,20844,21151,21265,21268,22632,23467,23470,24037,24138,24339,24685,25915,26459,30909,31996,31999,32945,35301,35317,36524,36531,39672,40852,40858],"lì":[20363,20432,20458,20616,20782,20791,20947,21033,21147,21169,21237,21382,21385,21412,21423,21426,21459,21519,21590,21774,21811,22182,22215,22364,22619,22754,23091,23151,23668,23718,24743,24759,24900,25150,25646,26278,26310,26334,26424,26533,26627,26647,26651,27306,27348,27370,27408,27508,27511,27813,27828,28054,28327,28671,28701,29199,29345,29441,29653,29806,29893,29905,29925,30124,30178,30311,30445,30553,30725,30778,30782,30975,31018,31019,31024,31154,31197,31435,31520,31717,31890,31901,31986,33079,33480,33560,33620,33669,33673,33946,33950,34294,34488,34510,34528,34599,34679,34823,34851,35400,35720,36210,36706,36707,36729,37192,37469,38582,38583,38643,38722,38731,39681,40168,40215,40389,40604],"yīn":[20364,20944,21905,22142,22233,22240,22420,22553,23035,23139,24852,24903,26678,27684,27911,28341,28646,30230,31115,31221,31555,32106,32248,33589,33937,34093,35008,35570,37542,38111,38345,38437,38452,38512,38523,38530,38674,38688,38791,38899,38910,39408,39555,40791],"mǐ":[20366,23370,24365,25929,27939,28211,28758,31859,31886,32651,33042,33416,33886,34077,37540],"zhū":[20367,26666,27104,27237,27367,27371,27929,28532,28710,29482,29664,30787,31228,32081,33585,34127,34523,34667,34857,35006,35461,35576,35803,35832,35948,36326,37054,37526,38114,39407,39842,39930,40248,40708],"ān":[20370,20579,23189,23433,23766,24245,26697,27688,30438,30443,33124,33780,33851,33866,34029,35485,35571,35865,38796,38797,38909,39331,39839,40298,40341,40524],"lù":[20371,20679,21198,21216,22309,22388,22646,23101,23757,24280,24404,24405,25134,25693,26882,27162,28117,28133,28172,28425,28510,29741,29840,29994,30429,30569,30793,31103,31108,31249,31307,31635,31759,31788,31797,31798,31833,31926,34061,34135,34370,34736,36034,36162,36258,36335,36379,36439,36613,36678,36738,36760,36911,37249,37636,37682,37684,37876,38520,39428,39484,39909,40252,40294,40305,40442,40557,40575,40595],"móu":[20372,21178,24648,30520,34513,35584,35851,36366,37738,40254,40624],"ér":[20373,20799,20816,20818,23759,26669,27919,31915,32780,33017,33611,35003,36608,36700,38481,38573,39669,39838,40085,40239,40504],"dòng tǒng tóng":[20375],"chà":[20376,22908,23033,23700,27722,35435,35815],"chì":[20377,20666,21189,21201,21489,21883,24435,24668,24919,24975,25048,25270,25941,26021,26456,28225,28795,28861,28926,29118,30163,30200,30235,32708,32709,32740,32744,33119,36196,36265,36971,37459,38644,39149,39276,40338,40408],"gòng gōng":[20379,20849],"zhōu":[20380,21608,21900,24030,24479,27954,28109,28863,28880,29656,30698,33311,35589,35704,35788,36057,36178,36616,36630,36736,36913,37102,37506,38668,39410,39430,40259,40508],"rú":[20382,20754,22149,22914,23340,23418,24100,26328,26695,28202,28641,31566,33593,34144,34231,34657,34837,35005,35174,37018,37305,37539,38135,39020,39077,40044,40209,40253],"jiàn cún":[20383],"xiá":[20384,20448,21283,23777,23805,25966,26247,26585,28832,28890,29390,29421,29433,29672,29781,30806,30820,30892,31083,31594,32278,32712,33309,33338,34168,36206,36676,36758,36944,37724,37771,38492,38527,38686,39458,39803,40375,40672],"lǚ":[20387,20406,20770,21525,21570,23649,23650,23653,25364,25435,26053,26784,28946,31075,31238,31341,32125,32311,32533,33154,33168,35099,35128,37080,37569,38109],ta:[20388],"jiǎo yáo":[20389,20709,24506],"zhēn":[20390,20597,23498,24103,24106,24128,25656,26015,26722,26984,27035,27196,27549,27976,28254,28519,28597,29513,29645,29646,29799,29956,30494,30495,30759,30890,31087,31118,31131,31668,32983,33275,33908,33942,33985,34237,35998,36126,36675,36937,37209,37341,37441,37681,37756,38024,40053],"cè zè zhāi":[20391,20596],"kuài":[20393,20744,20983,21721,22130,22310,22359,22602,24028,24293,24555,26077,27443,29423,29546,31607,31977,33037,33214,37072,37174,40032,40089],"chái":[20394,20757,21901,26612,29362,31073,35962],"nóng":[20396,20738,20892,21725,22117,27266,27393,27987,28611,29174,31151,31230,31328,33043,33215,34173,35163,35688,36786,36787,37298,39710],"jǐn":[20397,20760,21370,21418,24057,27135,28428,29822,32039,32202,33771,34035,35641,35880,37670,38182,39241,39313],"hóu hòu":[20399,30694],"jiǒng":[20400,20690,20879,22247,27842,28547,28847,28913,29018,29019,29106,29147,31384,32151,35111,36837,36872,38984,39054],"chěng tǐng":[20401],"zhèn zhēn":[20402,25557],"zuò":[20403,20570,21777,22352,23709,23710,24231,31066,31987,32985,33859,33860,34009,34959,38460],"qīn":[20405,20819,23175,23898,23956,27453,34942,35483,38054,38985,39416,39566,39868],"jú":[20407,21881,23109,23616,24008,26888,27224,27878,28119,28264,28951,29329,29386,31927,33738,34332,36252,36348,36459,36610,37113,38320,39414,39527,40281,40308,40362,40752,40755],"shù dōu":[20408],"tǐng":[20409,22306,23063,25402,28047,28918,29693,33057,33351,35476,38962,39051],"shèn":[20410,24892,24910,26138,28033,28183,28402,30214,30254,30488,31091,32958,32962,33060,33102,34563,34564,37600],"tuì tuó":[20411],"nán":[20413,21891,23066,25257,26260,26511,26591,26976,30007,30040,33710,33843,36950],"xiāo":[20414,21715,22069,22203,22210,23115,23471,23477,24232,24391,25585,26541,26549,26783,27385,27466,27594,28040,28487,28703,28785,28786,28875,28935,29447,29538,30170,30175,30813,30819,31385,31659,31768,31787,32131,32481,32731,33198,33831,34157,34376,34387,34754,34767,34800,34856,36355,36877,37559,38144,38660,39093,39501,39553,39623,39632,39752,40222,40245,40397,40494],"biàn pián":[20415,32246,32527],"tuǐ":[20416,33151,36422,39613],"xì":[20418,21304,21324,21612,22669,23619,23635,23661,24549,24620,24644,26910,28509,28511,28569,29058,29332,30966,31114,32048,32140,32280,32454,32484,33283,33284,34158,34409,34891,35236,36201,36231,37092,37363,38411,38553,38559,38716,39228,39273,39721,40662],"cù":[20419,23208,25009,29469,30212,30255,31751,32300,33064,34079,35470,36247,36391,36415,36441,36468,36469,37259,39011,40704],"é":[20420,22254,23077,23753,23784,23785,28048,29684,30354,30539,30912,33706,35355,35472,35660,35769,36823,37387,37608,38151,38943,38989,39069,39780,40285,40286,40517],"qiú":[20421,21492,21778,22234,23863,24047,24048,25167,26754,27535,27628,27714,27731,27845,27991,28269,29034,29360,29580,29699,29830,30387,30426,32012,32127,32909,33409,33677,34412,34415,34551,35032,35283,35305,35332,35333,36053,36167,36878,36881,36946,37195,37338,37371,37558,38916,39810,39876,39997,40765],"xú":[20422,24464,31121],"guàng kuāng":[20423],"kù":[20424,21950,22195,24211,24235,24292,30228,32093,32468,34996,35044,35122,37239],"wù":[20425,21153,21209,21247,21372,22366,22626,22886,23162,23524,23676,23689,23912,24546,24734,24735,24750,25098,25188,26212,26444,28329,28944,29059,29289,30182,30713,31417,31877,34305,35492,35823,37576,38434,38550,38654,38682,38695,38768,39446,39579,40361,40540,40767,40768],"jùn":[20426,20737,21569,22472,23535,23803,25039,25411,25887,26201,26846,29127,29690,30063,31459,31647,34592,36048,37089,38486,39189,39298,39423,39567,40276,40277,40280],"liáng":[20429,22682,26753,26891,27153,31918,31921,31975,33391,36652,36748],"zǔ":[20430,21800,29244,31062,32068,32452,35419,35781,37818,38459,38779],"qiào xiào":[20431],"yǒng":[20433,21191,21192,21647,22471,22606,23921,24430,24634,24703,24704,24805,24849,24889,24898,26593,26640,27704,27891,28263,29996,34553,35424,36362,36404,39890,40108],"hùn":[20434,20529,22274,23585,24897,25485,28343,28957,30580,35304,35554,35816],"jìng":[20435,20665,22659,22924,23129,23143,24362,24371,24452,24465,25964,26324,26737,26807,27972,28702,29517,30153,30169,31454,31455,31467,31478,31480,33003,33051,33686,35497,36353,36851,36885,37857,38236,38742,38745,38748,40283],"sàn":[20437,38288],"pěi":[20438],"sú":[20439],"xī":[20441,20694,20846,20958,21349,21376,21560,21775,21821,22075,22095,22193,22805,22874,23302,23305,23638,23904,24007,24076,24454,24495,24687,24713,24725,24769,24796,26132,26206,26224,26227,26342,26512,26744,27069,27176,27200,27447,27685,27728,28e3,28101,28179,28330,28911,28929,28936,28959,29060,29064,29081,29113,29114,29115,29160,29204,29306,29312,29344,29351,29707,30236,30361,30542,30630,30717,30802,30926,30978,31232,31352,31416,31902,31974,32198,32357,32690,32725,32726,32952,32953,33181,33342,33667,33765,33952,34597,34693,34763,34869,35199,35321,35325,35327,35654,35903,35904,35944,35951,35989,36197,37020,37134,37189,37295,37368,37675,37869,37898,38004,38177,38581,39183,39246,39291,39889,40279,40450,40759],"lǐ":[20442,23052,23778,23794,26446,27418,28012,28583,29702,31036,31150,31924,35023,35041,35914,36902,37008,37300,37616,38146,39881,40039,40049,40100,40162],"bǎo":[20445,22562,23212,23453,23514,23539,23542,29668,32229,33862,34293,35091,36082,38732,39161,39165,39281,39362,40181,40199,40488],"yú shù yù":[20446],"sì qí":[20447],"xìn shēn":[20449],"xiū":[20450,20462,21691,24229,27143,28876,32670,33049,33065,33273,35973,37533,37760,39117,39240,39312,39652,39673,39860,40003,40258,40506],"dì":[20452,20569,20672,22474,22673,22700,23075,24093,24607,26099,26762,28941,29587,29963,30513,30535,30898,31094,31128,31532,32224,32532,33123,33730,33922,34069,34627,34669,34734,35558,35867,36406,36882,36883,36958,36976,37482],"chóu":[20454,20756,23334,24774,24833,25060,26662,29181,30068,30087,30359,31264,31609,31820,32082,32162,32504,33751,35446,35726,35728,36364,36490,37223,37228,37307,38612,38624,38630],"zhì":[20455,20587,20776,21046,21141,22401,23073,23512,24089,24092,24159,24226,24228,24268,24408,24463,24477,24535,24558,25061,25067,25347,25370,25527,25711,25842,26072,26186,26234,26633,26702,26813,27341,27355,27835,27959,28365,28382,28399,28492,28676,28825,29099,29438,29464,29839,29894,30164,30179,31017,31057,31209,31223,31258,31290,31305,31378,32041,32251,32622,32720,33187,33267,33268,33430,34541,34975,34976,35069,35231,35287,35311,35318,35468,35921,35922,36013,36074,36100,36136,36157,36337,36396,36499,36618,36734,37061,37517,37589,37973,38106,38183,38495,38578,38601,39396,39469,39482,39495,39576,39919,40217,40409,40503],"liǎ liǎng":[20457],"jiǎn":[20461,20537,20745,20943,21098,22591,24383,24389,25129,25132,25315,25400,25441,25536,25791,26535,26604,26776,26816,26908,27298,28187,28245,28733,29776,30545,30652,30839,30897,30982,31509,31591,31616,31777,32120,32365,32742,33575,34246,34834,35045,35143,35145,35194,35395,35591,35629,35710,35883,36284,36423,37911,39691,39950,40568,40571,40572],"huò":[20464,21663,22191,22207,22895,24416,24785,25110,25837,26084,26340,27316,27790,28273,28694,29554,30312,30483,30672,31096,31117,31339,31394,32815,33243,33383,33719,33958,34303,34838,35595,36008,36135,37699,37962,38252,38616,38669,38723,38852],"jù jū":[20465,25454,37624,38191],"xiào":[20466,20634,21177,21682,21742,21880,22027,22056,22063,23389,25928,25989,25990,27479,28045,29117,31505,35432,35487],"pái":[20467,24472,29260,29348,29445,31792,31794,36651],"biào":[20469,39998,40148],"chù tì":[20470],"fèi":[20471,21077,21406,21536,23645,24223,24259,24290,26162,26314,27360,27832,28663,29394,30280,32954,33801,36027,36153,37928,38212,38507,38725,40739],"fèng":[20472,20964,22857,28247,28968,29e3,36085,36183,40175,40179,40204],"ǎn":[20474,21813,22511,25566,32623,37544,38133],"bèi":[20475,20493,20573,20601,20633,20675,22791,24726,24811,24834,24970,26113,26774,28953,29292,29333,29384,29437,29692,29746,30874,31129,31954,33501,34003,34557,35097,35997,36125,36592,36649,36744,37046,37093,37121,37575,37950,38049,38785,38836],"yù":[20476,20773,21893,21929,21947,22495,22537,22954,23255,23507,23786,23950,24253,24423,24481,24840,24958,25131,26161,26843,26844,26859,27378,27406,27421,27442,27603,28020,28143,28394,28495,28582,28778,28980,29020,29135,29152,29225,29425,29508,29577,29721,30217,30290,30753,30818,30834,30983,30998,31004,31142,31191,31266,31286,31741,31838,31858,31894,32206,32621,32895,32896,33352,33419,33420,33567,33966,34019,34041,34167,34316,34591,34606,34988,35029,35465,35565,35709,35861,35947,36553,36621,36915,36935,36985,37057,37287,37434,37578,37669,37933,38064,38334,38408,38628,38705,38928,39044,39147,39239,39275,39341,39496,39533,39728,39729,39739,39754,40010,40191,40229,40231,40234,40274,40440,40466,40518,40556],"xīn":[20477,22138,22945,23324,24286,24515,24516,24571,24798,26032,26133,26490,27427,27462,28824,30458,34218,35362,36763,37028,37386,37573,37995,38156,39336,39339],"hǔ chí":[20479],"jiù":[20483,20710,21267,21275,21302,21417,21646,23601,24260,24271,24272,24934,25412,25937,26087,26601,26622,26709,27405,27559,30106,33276,33285,33290,39910,40434,40555,40596,40808],"yáo":[20484,20636,21954,22426,22575,23002,23217,23591,23597,23779,23970,23972,24493,25594,25622,25671,25727,26266,27043,28391,28881,29243,29498,29671,29796,29814,30936,31377,31407,31408,32948,34344,35616,35617,35875,36602,36730,36953,36965,37006,39012,39099,39126,39174,39194,39977,40025,40144],"cuì zú":[20485],"liǎng liǎ":[20486],"wǎn":[20487,21773,23113,24779,25405,26202,26213,26217,26236,26778,26880,29740,30073,30358,30412,30871,32169,32176,32510,33048,33814,36384,36627,37588],"zǒng":[20490,20588,20655,23928,24635,24803,25460,25603,25696,29162,32207,32235,32258,32317,34007],"guān":[20492,20851,23448,26874,30237,30287,31396,33924,38306,38359,38364,39973,40030,40143],"tiǎn":[20494,21818,24541,24767,26218,27524,28127,30547,33094,33300,35237,35277,36063,37674,39170],"mén":[20497,25194,25451,29834,33755,34379,37702,38036,38272,38277,38376],"dǎo dào":[20498],"tán tàn":[20499,22510],"juè jué":[20500],"chuí":[20501,22402,22464,25462,25637,26712,26864,27084,31648,33092,33753,37656,37786,38180,38514,38976],"xìng":[20502,22995,23134,23353,24184,24615,24763,26447,28076,32200,33238,33607,33685,33877],"péng":[20503,20656,22620,22643,24376,24969,25408,26379,26842,26902,27173,30844,31261,31484,31735,32388,33192,33411,34028,34325,34778,34779,34998,36643,37643,37981,38904,38908,39471,39676,39685,39700,40300,40527],"tǎng cháng":[20504],"hòu":[20505,21402,21518,22421,22560,24460,27913,33577,35934,36869,37064,39836,40031,40078,40088],"tì":[20508,21059,22159,22164,23625,23644,24716,24720,24789,24790,25147,25510,26367,26385,27474,27554,28053,29899,31545,31818,34201,35077,36886,36919,39664,39680,39684],"gàn":[20509,20942,24185,27046,27274,28134,28776,30448,32058,32448,35404,36113,36195,39597],"liàng jìng":[20510,38739],"suī":[20512,21752,22794,28374,28617,30509,30562,33429,33661,33662,34429,38614,38806],"chàng chāng":[20513],"jié":[20514,20604,20625,21030,21031,21052,21163,21180,21353,21354,23125,23211,23377,23690,23848,23909,23995,24e3,24175,25130,25463,25526,25838,26117,26466,26480,26688,26717,26988,26998,27044,27905,28368,28500,29412,30571,30989,31469,31680,32687,33709,34037,34531,34576,34840,34846,34877,34929,35002,35344,35440,35505,35750,36373,36860,37475,37755,38268,38945,39834,40082],"kǒng kōng":[20517],"juàn":[20518,21173,22854,24955,26698,28099,29431,29543,30519,30538,30560,32109,32121,32482,32613,32642,33091,34088,37124,39179],"zōng":[20519,22571,23447,23887,23893,24830,26401,26837,26934,29095,29475,30955,32195,32746,33113,33916,34668,35957,36392,36394,36452,37712,37953,39436,39459,39572,39683,39689,39735,39918,39932],"ní":[20522,22381,22527,23612,23636,24617,28131,29450,31870,32867,34477,34618,35308,35982,36316,36631,37107,37422,38092,38675,39324,39906,40117,40593,40815],"zhuō":[20524,25305,25417,26700,26802,26817,26867,27093,28095,31399,37935],"wō wēi":[20525],"luǒ":[20526,21062,26346,30256,30323,33245,33999,34819,35064,36534],"sōng":[20527,20935,23040,23847,23913,24250,25021,26494,26496,26537,26583,26789,27303,28126,28621,30841,33752,39686],"lèng":[20528,22542,24867,30550,36380],"zì":[20531,21082,23383,24675,28173,28460,29304,30501,30502,32980,33022,33258,33569,33634],"bèn":[20532,22348,25465,25770,28160,31528,36905],"cǎi":[20536,21835,23111,24425,25505,26828,27613,30572,32181,36340,36393],"zhài":[20538,20661,23528,30261,30758],"yē":[20539,21524,22094,25832,26253,26928,27467,28529,34862],"shà":[20541,21820,21922,27459,31633,32732,32739,33808,38319,38670],"qīng":[20542,20670,21375,22282,23496,27682,27691,28152,28165,34619,36605,36629,36731,37100,37638,37963,38737,38738,39894],"yīng":[20544,22052,22111,22198,23156,23190,23240,23344,23366,23422,24869,25732,25878,26400,26716,27185,27387,28214,29008,29681,29787,29838,29908,29959,29974,30884,31023,32211,32403,32492,32552,32578,32579,32588,33210,33521,33722,34337,34663,34867,35118,35707,36047,36552,37965,38195,38681,38906,40236,40337,40359,40367,40426,40441,40462,40474,40550,40560],"chēng chèn":[20545,29231],"ruǎn":[20548,26378,29772,29888,30877,31005,33117,36575,36653,36719,38446],"zhòng tóng":[20549],"chǔn":[20550,24823,30582,33846,34850,36080],"jiǎ jià":[20551],"jì jié":[20552],"bǐng bìng":[20555],"ruò":[20556,21458,23926,24369,26953,28971,29191,31660,31707,33979,37120,39961,39983,40376],"tí":[20557,21399,21884,21953,23865,28477,29765,30588,31157,31242,32249,32519,32612,34139,35078,35605,36263,36420,36431,37261,37719,38988,39064,39456,39863,39927,40128,40284,40420,40520],"wēi":[20558,21361,21940,23041,23193,23990,24013,24494,24836,25547,25595,26931,26994,28326,28883,29032,29168,30291,32261,33896,33907,34183,34610,34651,35235,35444,36918,38535,38536,38714,39939,39940,40130],"piān":[20559,22248,23205,26948,29327,31687,32745,37698],"yàn":[20560,21388,21421,21761,21933,22152,22181,22576,22943,23026,23306,23359,23476,24421,24422,25957,26191,26277,26325,26339,28383,28750,28756,28775,28777,28948,28976,28977,29078,29124,29290,29458,30746,30831,33395,33398,33399,35214,35267,35326,35578,35724,35742,35866,35891,35923,35924,36107,36119,36189,36549,37184,37245,37308,37317,38593,39181,39260,39440,39443,39476,39511,39520,39564,39731,40171,40200,40243,40387,40432,40798],"tǎng dàng":[20562],"è":[20564,21262,21374,21380,21597,21666,22121,22441,22538,22574,23691,23871,24261,24746,24853,25145,25212,25636,25657,25820,27374,27486,27514,28226,29735,30728,30736,30790,33133,33482,33852,34138,34437,34625,35240,35556,35725,35860,35935,36571,36598,36717,36940,36943,36987,37122,37418,37716,37993,38199,38440,38456,38942,38990,39066,39187,39209,39295,39952,39978,40055,40132,40346,40535,40771,40822],"xié":[20565,21232,21327,21332,21963,22437,22858,24650,24886,25337,25658,25783,25813,25847,25884,26012,26090,29057,29170,32138,32243,32256,32556,32723,32961,33029,33031,33035,33166,34658,34938,35181,35559,35735,35856,38795,38837,40868],"chě":[20566,25199,25766],"shěng":[20567,28219,30490],"chā":[20571,21967,25184,25407,25554,25591,30080,33279,33366,37535,37732,38200,39223],"huáng":[20575,20976,21924,22573,22708,23187,23858,24488,24822,27003,28255,29004,29530,29789,29852,30272,30343,30970,31316,31681,31783,33358,33887,34647,34789,35579,36266,36945,37728,37892,38205,38541,38905,39213,39452,39945,40017,40135,40428,40643,40644],"yǎo":[20576,21676,23161,23438,23686,26483,26620,27034,28308,29397,31365,31368,33280,33517,38340,39445,40405,40809],"chǒu qiào":[20578],"yóu":[20580,23588,24238,24611,27787,27833,27999,28216,29369,29494,29495,30001,30115,31198,32940,33692,33720,34133,34480,34659,35367,36623,36662,36912,36938,37038,37109,37438,38080,39360,39799,39819,40063,40073],"xū":[20582,22687,23213,23299,26952,27432,27476,29176,30110,30449,32135,32259,32379,32997,34150,34391,34394,34395,34641,35015,35343,35377,35549,35651,35870,37968,38656,38920,39035,39036,39497,39706,39750,39766],"zhā":[20583,21747,25263,25363,25592,25699,27165,28195,30390,35312,35655,40772,40775],"cī":[20584,30133,34816,36224,39604,39626,40825],"bī":[20586,23620,26949,27636,35917,36924,39951,40126,40278],"xún":[20593,22106,23547,23563,23755,24033,24309,24490,24642,25559,25907,26092,26442,26642,26730,27187,27957,27988,28527,29125,29142,29667,29845,30019,32003,33600,34803,35426,35810,37161,40015,40024,40095],"cāi sī":[20594],"duān":[20595,23183,31471,35085,37748],"ǒu":[20598,21528,22036,32806,33122,34117,34261],"tōu":[20599,20600,37742],"zán zá zǎ":[20602],"lǚ lóu":[20603,20674],"fèn":[20606,20712,22859,22894,24325,24575,24868,24996,28725,30611,31182,31914,31966,33209,40029,40124],"kuǐ guī":[20608],"sǒu":[20609,21468,21471,22014,27362,30605,34222,34282],"zhì sī tí":[20610],"sù":[20611,20723,21961,22608,22609,22809,23242,24875,24991,27041,27150,27157,27536,27869,28049,28335,28344,28506,28517,29578,29663,29851,31756,31899,31903,32032,32292,32899,32901,33158,34060,34263,35307,35380,35606,35785,35873,36250,36444,36895,36961,36972,37577,39191,39500,39573,40016,40427,40532],"xiā":[20612,28998,30606,35898,39084,39957],"yuàn yuán":[20614,23195],"rǒng":[20615,20887,23426,27652,36597],"nù":[20617,24594],"yùn":[20618,23381,24701,24818,24864,24909,26527,33130,34164,34176,34292,34314,35102,35999,36816,36939,37075,37126,37213,37270,37278,38871,38878,38901,38907,39211],"gòu jiǎng":[20619],"mà":[20620,22044,27050,30576,31043,31137,32629,38273,39393,39554,39701],"bàng":[20621,22621,26834,29604,31254,33365,33953,34607,35607,35876,37770,38225],"diān":[20622,21415,23918,24005,24019,24020,25474,25895,25921,27079,28359,30315,30322,36430,39002,39003,39072,40827],"táng":[20623,21776,21882,22371,22530,22616,25642,26848,27062,28303,28447,29051,29805,30916,31135,31702,31939,31958,31963,33157,33179,33998,34711,34739,36207,36412,37132,37283,37781,38554,39225,39236,40374],"hào":[20624,21728,24655,26122,26150,26215,26272,26276,26285,26317,28009,28111,28564,28751,28765,30355,30364,30366,30369,30373,32791,32853,34179,34399,37143,39013,39074,39965],"xī xì":[20626],"shān":[20627,21024,21034,21116,22328,23665,25403,25639,26613,27270,28536,28568,29053,29414,29642,31512,32319,32692,32694,33056,33314,33439,34923,36314,36565,37014,38282,39877],"qiàn jiān":[20628],"què jué":[20629,22470],"cāng chen":[20630],"róng":[20635,23222,23238,23339,23481,23797,23896,23992,25102,25608,26343,26628,27029,27054,27061,27623,28342,28700,28927,29076,29416,29794,31297,32104,32466,32674,32924,33561,33592,33635,33993,34686,34701,34702,34833,35107,37780,38229,39397],"tà tàn":[20637],"suō":[20638,21766,21965,21990,23057,25677,26731,26797,30531,31761,31764,32679,33679,34001,36246,39867],"dǎi":[20643,27513],"zài":[20644,20750,20877,22312,25175,27909,36617,37224],"gǔ":[20646,21476,21842,23603,24882,27030,27070,27753,28104,28658,28692,29295,30391,30396,30444,30653,31296,32607,32662,32929,33077,33228,34211,34506,34865,35393,35778,36674,36903,37431,38068,39222,39305,40723,40724],"bīn":[20647,23486,24428,25996,26901,28392,28626,28657,28661,28693,32381,32548,34408,35945,35955,36051,36052,37024,37964,38228,38694,39022],"chǔ":[20648,20786,26485,26904,26970,26990,27290,28619,29876,30784,30990,31111,34389,40813,40828],"nuó":[20649,20794,25386,26779,27232],"cān càn":[20650],"lěi":[20651,20769,21437,22418,22593,22744,22760,27344,28741,30295,30667,30922,31016,32786,34124,34174,34271,34365,34845,35460,35716,35796,38008,40467],"cuī":[20652,20951,22676,23828,23903,24923,25703,27057,29525,30954,37849],"yōng":[20653,21960,22665,22725,23262,24248,24305,24949,25317,25793,28413,28745,29253,30152,30293,30320,33219,37013,37114,37144,37854,38235,38605,38621,39252,40005,40153,40411],"zāo cáo":[20654],"sǒng":[20657,23927,24578,24730,24879,24939,31462,32824,32883,39415],"ào":[20658,22387,22407,22714,22881,23279,23705,23728,23988,25034,25817,28595,37834,39489,39580],"qī còu":[20662],"chuǎng":[20664,30946,38358,38383],"shǎ":[20667,20749],"hàn":[20668,22462,24717,25022,25182,25421,25750,25788,26097,26200,26293,27721,28038,28450,28698,28938,29442,30356,30533,32752,33695,33761,34559,34605,34706,35648,36634,37356,37554,37582,38615,38967,38980,39060,39419,40382],"zhāng":[20669,23260,24352,24373,24432,24926,26290,27167,28467,29520,29835,31456,31931,34049,34769,36967,37155,37873,39206,39487,40006,40606],"yān yàn":[20671,22677,23342],"piào biāo":[20676,39584],"liàn":[20678,22556,23201,24651,25088,26973,27539,27566,28229,28491,28592,28722,28860,29001,29779,32244,32414,32451,33840,37676,37706,37832,38142,39946],"màn":[20680,22657,24148,24930,26364,28459,28599,29107,29516,32309,32550,34052,34352,37156,37853,38232],"tàn tǎn":[20683],"yíng":[20684,21942,22603,23348,25869,27001,27391,28289,28299,28386,28486,28633,28634,28660,28677,28699,28704,28719,28752,28764,29074,29151,29801,30401,30408,31132,31837,31855,32264,33556,33639,33721,33828,33829,33830,33854,34021,34240,34509,34631,34687,34722,34821,35597,36111,36194,36814,37795],"dòng":[20685,20923,20941,21160,21205,23003,25113,25359,26635,26847,28265,30800,33e3,33012,33110,36853,38680,39399],"zhuàn":[20686,21869,22208,22559,25776,28791,29777,31686,33118,33923,35144,35668,39244,39316],"xiàng":[20687,21224,21521,22190,23008,23953,26319,27233,29670,32575,34771,34902,35152,35937,37900,38917,39033,40012],"shàn":[20688,21892,22688,22689,23319,25797,25982,26923,27199,27482,27733,28759,30109,30960,32341,32558,33203,34798,34810,35349,35590,35697,35754,36109,36193,36216,37167,37925,39245,39480,39583,40019,40020,40157],"tuí tuǐ":[20691],"zǔn":[20692,22082,25753,35664],"pú":[20693,21261,22308,22691,28654,29531,29854,30632,31321,33670,33744,33769,33889,33969,33970,36108,37242,37879,38244],"láo":[20695,21171,21172,21214,21744,23810,23959,24997,26405,28022,29282,30184,30278,31362,31785,37290,37906,38137,39007,39645],"chǎng":[20696,21424,24288,25950,26166,27653,37625],"guāng":[20697,20809,21667,22425,23023,27960,28782,28823,28826,28827,28897,29654,33009,33578,36612,37543,40646],"liáo":[20698,22073,23293,23525,23534,23582,23658,23930,23962,23963,24299,24960,25977,26296,27217,29536,29849,30103,30274,31426,31773,32346,32557,32842,33163,33195,34260,34783,35906,36095,36440,36797,36988,39113,39630,40431,40553],"dèng":[20700,20979,22705,23965,27336,30634,30964,35252,37011,37159,38565],"chán zhàn zhuàn":[20701],"bō":[20704,23955,25320,25765,25773,27874,28298,29627,30326,30411,30773,30854,31009,32573,33760,34992,36467,37474,38069,39185,39293,39499,40013],"huì":[20705,21295,21321,21913,22034,22166,22298,23314,23533,23670,23671,24407,24409,24410,24507,24666,24693,24800,24935,24979,25075,26214,26291,27109,27230,27269,27352,27719,27851,28377,28499,28905,29172,29545,29860,30650,30794,31229,31330,31730,32117,32362,32472,32729,32765,33631,34087,34137,34184,34185,34794,35439,35496,35569,35667,35711,35763,35826,36036,36159,37932,38368,38419,38759,38958,39018,39058,39215],"chuǎn":[20706,21912,33307,33608,36403],"tiě jiàn":[20707],"sēng":[20711,39705],"xiàn":[20713,20724,21743,22455,22634,23021,23050,23466,23704,23796,25010,25738,26203,27212,27258,28032,28695,29486,29563,29616,29694,30476,30541,31919,31982,32100,32171,32218,32447,32528,32673,32680,33146,33236,33277,33483,33703,35490,35919,37607,37646,38480,38501,38519,38704,39201,39301,40626,40760],"yù jú":[20714],"è wū":[20715],"tóng zhuàng":[20718],"lǐn":[20719,20955,20956,24297,24298,25037,25044,25755,27265,27305,28575,30299,30301],"gù":[20721,20933,22266,22540,23827,23854,25925,26767,26845,29311,30204,31099,37678,38178,38599,39015,39038,39901,40116],"jiāng":[20725,22723,23004,27263,27565,27743,30037,30085,30995,32366,32560,32734,33587,33857,34193,34688,34751,35911,38849,40002,40137],"mǐn":[20726,20922,21025,21188,24751,24829,24845,24924,25003,25279,25923,25935,25967,27887,28515,30399,31522,31549,31778,34848,38292,38313,38389,38397,39989,40152,40701],"jìn":[20728,20954,22116,22157,22672,22743,22935,23335,25634,26185,26187,26499,27555,27989,28024,28301,28613,28636,28908,29025,29180,29710,29800,29878,30433,31090,32265,32537,33641,34254,35250,35280,36078,36112,36166,36817,36827,36914,38771,40829],"jià jie":[20729],"qiào":[20730,23789,24105,25772,27579,31373,31429,35482,35822,36488,38487,38825,38866,39642],"pì":[20731,23218,23251,23617,28604,29971,30088,35692,38370,40447,40458],"sài":[20735,31802,36093,36187],"chán tǎn shàn":[20739],"dāng dàng":[20741,24403,38371],"xuān":[20743,21927,22599,23191,23459,24835,24843,25550,26125,26244,29002,29014,29764,30587,30670,31140,31662,32743,32766,33841,33842,34002,34175,34300,34320,34646,34825,35552,35580,35678,35862,36562,36713,37753,39421,39962],"dān dàn":[20747,25812,30213],"càn":[20751,28591,28799,29158,29864,31922,34194,35634],"bīn bìn":[20752],"án àn":[20753],"tái":[20755,22382,23343,25260,25825,27311,28849,28850,31817,33274,34233,36294,37040,39089,39824,40080],"lán":[20758,20848,22226,23146,23706,23888,24177,25318,25876,26003,26005,26639,27396,27415,28572,28734,28742,28769,29155,29175,29884,31726,31811,31843,32383,33915,34013,34253,34347,34349,35124,35157,35172,35188,35197,35659,35733,35888,36509,37997,38247,38348,38417,38858],"nǐ yì ài yí":[20759],"méng":[20762,24170,26330,26406,27223,27308,27659,28309,28635,29965,30015,30431,31006,33384,33684,33804,34116,34427,34673,37171,37176,38719,38720,39021,39259,39885,40463,40562],"níng":[20764,20957,21659,22144,23331,26592,27235,27320,29406,29552,32845,32889,34228,37967,39713,40459],"qióng":[20765,21357,23430,24824,24972,26703,27241,28970,28973,29026,29069,29756,29898,30552,31351,31353,31406,31430,31547,31559,33340,33557,34257,34285,34537,34540,36217,36331,37019,37518],"liè":[20768,20925,21015,21155,21181,22482,22483,23028,23771,24036,25362,25449,26677,27916,27990,28872,28910,29037,29347,29454,29471,29557,32855,33055,33570,34522,36244,36496,36862,39090,39707,39715,39844,40050,40247],"kuǎng":[20771,22844,25069],"bào":[20772,21245,22577,24513,25253,25265,26323,29190,29350,33762,34403,34475,35961,37451,37988,38087,39602,39665,39825,40077],"biāo":[20774,22658,24150,24426,26631,27161,28398,28684,29083,29186,29451,30253,30950,33176,33237,35620,36102,37858,37987,38230,38259,39086,39095,39110,39111,39112,39114,39121,39129,39130,39531,39561,39647],"zǎn":[20775,20793,22086,25861,26141,36273,36274],"háo":[20779,21989,22071,22097,22158,22741,26883,27612,27627,28640,29510,29524,31443,31815,34461,34836,35705,35946],"qìng":[20780,20938,24198,24950,27366,28650,30851,30956,32580,38744],"chèn":[20781,22187,27015,27372,30114,34924,35183,35734,35894,36225,36226,40787,40788,40832],"téng":[20783,24144,28373,28443,30140,31824,31832,32290,33150,34276,34373,34723,35466,35588,36998,39398,39472,39523,39975],"lǒng lóng lòng":[20785],"chán chàn":[20787],"ráng xiāng":[20788,21239],"huì xié":[20790],"luó":[20792,25886,26916,27407,29473,29568,31657,31854,32599,32645,33078,33121,33821,34367,34746,35260,36923,37007,37837,38012,38179,38233,39264,39486,39512,39585,40449],"léi":[20797,23256,27281,27417,29891,30078,32306,32397,32413,32551,32589,32696,34050,34354,34374,36704,37939,37976,38253,38647,38721,40041,40762],"nàng nāng":[20798],"wù wū":[20800],"yǔn":[20801,21911,22845,25230,27538,27550,29377,30930,33658,36081,37399,38445,38504,38549,38691,39355,40811,40819],"zān":[20802,27253,31786,31790,31948,37909,37919,40292],"yuán":[20803,20870,21407,21409,21429,22253,22278,22286,22290,22291,22435,22636,23220,23236,25588,27038,27052,27260,27358,27781,28274,28304,28306,29232,29480,29503,31502,32227,32257,32536,32689,33554,34199,34653,34671,34696,34945,35108,35612,36677,36757,37005,37031,37211,37416,37809,39477,39789,40354,40368,40703,40715],"xiōng":[20804,20807,20982,21250,21256,21701,24567,24671,27769,27958,33015,33016,33422,35369,35454,35771],"chōng":[20805,22019,24545,24963,24999,25679,27798,28026,29675,32639,32704,33282,33375,33594,34909,36438],"zhào":[20806,22423,26064,26316,26523,27330,29031,29171,29411,30654,31498,32576,32617,32644,32897,32903,32904,35412,35791,36213,36249,39841],"duì ruì yuè":[20810,20812,20817],"kè":[20811,21051,21184,21194,22529,23060,23458,24682,24857,27690,28312,30886,32217,32514,33360,34889,35506,35838,37633,38174,39437,39570],"tù":[20814,20820,22541,36812,40309],"dǎng":[20826,25897,27411,35681,35740,35872,40680],"dōu":[20828,20832,21783,27255,31740,34104],"huǎng":[20836,22875,24140,24627,24653,26180,28862,29056,32296,35428,35594,35854],"rù":[20837,21973,23223,25174,26433,27955,28349,32287,32539,34e3,35109,40176],"nèi":[20839,27677,27678,37655],"yú shù":[20842],"liù lù":[20845],han:[20847,29235],"tiān":[20850,22825,23126,28155,37215,38740,38749,40647],"xīng xìng":[20852],"diǎn":[20856,22200,22860,23152,25951,26915,28857,30872,33959,34119,36398,40670],"zī cí":[20857],"jiān":[20860,20927,22223,22362,22533,22904,23014,23015,23574,24181,24804,25099,25108,25627,26942,27179,27388,27516,27569,27570,28244,28688,28728,29006,29086,29112,29259,29770,30583,31003,31031,31546,31627,32216,32273,32516,32547,32937,33392,33393,33733,33786,33868,33977,34090,34129,34163,34371,35708,35932,37999,38595,38831,38848,38857,39216,39330,39956,39964,39993,40099,40146,40273,40307,40380,40547,40585],"shòu":[20861,21463,21806,22781,22784,23551,25480,29417,29539,29560,30185,30246,32172,32502,33156],"jì":[20862,20864,21058,21092,21137,21219,22358,22413,22600,22931,23395,23490,23492,24301,24401,24475,24524,24760,24782,25083,25216,26081,26082,26083,26280,26281,26305,26782,27285,27317,27918,28419,28424,28721,30197,30304,31133,31273,31287,31300,31306,31335,32e3,32153,32318,32331,32380,32487,32489,32637,33262,33456,33549,33572,33898,34015,34055,34186,34318,34350,34363,35034,35136,35244,35274,35336,35352,35467,35745,35760,36321,36349,36447,36857,38469,38555,38657,38717,39525,39589,39675,39742,39773,39781,39898,39933,39990,39999,4e4,40045,40090,40107,40267,40401,40780],"jiōng":[20866,20875,22384,22491,25155,34319,34324,39369,39403],"mào":[20867,20880,23202,24125,24855,25035,26259,26581,26969,27639,29761,30339,30474,30592,32772,33538,33850,34640,34980,35218,35980,36031,36152,37146,37166],"rǎn":[20868,20873,22988,23203,26579,29635,33490,33925],"nèi nà":[20869],"gāng":[20872,20910,21018,21083,22536,22589,23713,25478,25667,26849,29288,29317,30104,32177,32434,32568,32577,32609,32923,37357,37792],"cè":[20874,20876,21397,21408,22824,24257,24699,24827,24993,25927,27979,28204,31527,31574,31582,31604,31651,33629,33815,33844,34011],"guǎ":[20878,21072,21102,21479,23521],"mào mò":[20882],"gòu":[20883,21826,22392,22434,22815,22816,23230,24384,25606,25728,26500,27083,29049,35247,35279,35389,35436,35807,36092,36141,36952,38602],"xǔ":[20884,21923,26250,26665,29661,30440,31944,35425,35583,35817,37158,37265],"mì":[20886,20906,22055,22611,23483,23494,23770,24130,24142,24166,24637,27027,27154,27329,27752,28135,28405,28446,28631,29072,32643,34084,34588,35219,35220,35227,35269,35600,35879,40719],"yóu yín":[20888],"xiě":[20889,20905,34267],"jūn":[20891,21531,22343,26750,27758,30386,30392,30393,30853,33689,34448,34944,35232,36557,37406,37505,37534,37717,38055,38965,39862,40106,40591],"mí":[20894,25823,28720,29218,29461,29564,31074,31152,32315,33982,34252,34346,34364,34990,35448,35598,36855,37274,37310,37311,37316,38270,40461,40586,40587,40603],"guān guàn":[20896,35212,35251,35264,35266],"měng":[20897,21200,25077,25529,29467,29556,33355,34594,34835,37683,38192,39917,40710],"zhǒng":[20898,22618,23600,27505,28996,30215,32959,33131,36405],"zuì":[20899,23989,26220,26368,26668,27100,27271,27276,31101,32074,32618,34142,36768,37204,37243,37257,37642],"yuān":[20900,21064,22246,23357,23491,26857,28149,28161,28166,28170,28181,28737,30498,32921,33918,33964,34574,34613,39372,40182,40219,40311,40482,40499,40531,40728,40733],"míng":[20901,21517,26126,26269,26393,27040,27962,28319,29501,30464,30515,30609,33559,34719,35245,35450,37133,37528,38125,40180,40483],"kòu":[20902,21481,23484,23495,25187,25922,28401,31387,31576,31750,34098,34107,37350,40391],"tài":[20909,22826,22835,24562,24577,24907,27760,27761,27888,28313,32957,33318,37214,37414,38043],"féng píng":[20911,39342],"chōng chòng":[20914],"kuàng":[20917,22329,22745,23730,25068,26103,26175,26336,26694,27841,29196,30486,30518,30719,30783,31014,31340,32075,32086,32394,32425,36026,36150,36582,37021,37178,37489,37595,37979,40651],"lěng":[20919],"pàn":[20920,21028,21467,27804,27886,28351,28813,29257,30036,30460,34978,35195,35402,37612,38011,38934,40293],"fā":[20921,24386,27831,30330,30332],"xiǎn":[20924,23583,23584,23812,23982,24176,25863,26174,27382,27624,28774,28877,29177,29405,29443,29547,29550,29569,31122,31557,31666,34259,34330,34476,34566,35683,36219,36323,37708,38505,38522,38570,38853,38997,39023],"qià":[20926,22326,24098,24688,27534,27965,30792,32994,39618],"jìng chēng":[20928,20936,28136],"sōu":[20929,21974,24256,24267,25436,25628,25673,28338,29504,33368,33936,34699,37131,37273,37802,38204,39100,39125,39231,39306,39466],"měi":[20930,23172,23226,23309,23876,25396,27598,27599,28028,28220,29144,32654,36542,37762,38209,40675],"tú":[20931,22259,22270,22294,22295,22615,23648,23801,23902,24233,24284,24466,24711,25580,28034,30223,31585,33135,33660,33956,36351,36884,37236,37423,37710,39327,39420,40268,40351,40395,40437],"zhǔn":[20934,20950,22523,28310],"liáng liàng":[20937,28092,37327],"diāo":[20939,20993,21023,21500,22877,24372,24427,27720,29745,30857,31763,34413,34497,35970,37677,38613,39817,39899,40119,40304,40742],"còu":[20945,28234,33120,36659,36751],"ái":[20946,21824,22026,25457,28336,30284,30353,30362],"duó":[20953,21099,22842,22890,30181,36401,37420,37944,38094],"dú":[20959,21301,23355,26911,27357,27568,28060,29261,29272,29322,29346,29420,29544,29892,30398,35067,35501,35712,35743,35908,36117,37654,37983,38855,38883,38885,39475,39633,40681,40695],"jǐ jī":[20960],"fán":[20961,20962,20963,21285,22694,26443,26569,26853,27146,28735,28902,29033,29140,29856,30718,31020,31538,31861,32208,32691,33316,33319,34208,34345,34844,35150,36463,37353,37895,37922,38034,40429],"jū":[20965,21258,23093,23150,23621,23820,25221,25398,25516,26798,26896,27275,27625,27633,27843,28090,29401,29722,30141,30752,32605,33106,33357,34587,35070,35530,36308,36376,36537,38513,38606,38816,38827,39378,39545,39816,40225,40331],"chù chǔ":[20966,22788],"zhǐ":[20970,21159,21675,22336,22375,24075,24649,25210,25351,26088,26547,27490,27750,27802,27924,28157,30139,30731,31049,31190,32025,32440,33463,33547,34274,34937,35175,35368,36286,36601,36725,37231,38447,40697],"píng":[20973,20980,21615,22378,22592,23740,24097,24114,24136,24179,24959,24977,26544,27956,28969,29622,29942,29953,31470,31667,31752,32574,33619,33805,34033,34482,34530,35413,35780,36607,36647,37105,39811,40070],"kǎi":[20975,20977,21056,21108,22450,22607,24698,24887,24936,26271,33928,36614,37703,37799,38112,38196,38355,38399,39101],"gān":[20978,22377,23602,23604,23606,23607,26577,27860,28455,29589,29976,30131,30712,31487,31608,31891,32925,33527,36800,37200,39760],"kǎn qiǎn":[20981],"tū":[20984,22551,23936,25464,28043,28261,30172,31167,31171,31361,33878,37621,40282,40757],"āo wā":[20985],"chū":[20986,21021,23680,25716,27019,27159,35993,40803],"dàng":[20988,22325,22449,22731,26723,27284,27705,29847,29949,30442,30602,30720,30893,30993,31772,33633,33770,34153,34351,36260,36927,38652],"hán":[20989,20990,21547,22277,23074,23506,23841,26199,26770,27995,28085,28559,28947,29696,29981,31592,34604,37015,37039,37601,38867,38889],"záo":[20991,38015],"dāo":[20992,20994,24521,27672,33312,34729,37334,39771,40061],"chuāng":[20997,25680,29262,29269,30126,30241,31379,31383,31419],"fēn fèn":[20998],"qiè qiē":[20999],"kān":[21002,21208,22570,25121,26654,40853,40859],"cǔn":[21004,24534],"chú":[21005,21416,24174,24282,27249,27337,27365,28353,29331,31720,32801,33467,33954,33965,34573,34805,35936,36238,36464,36487,36501,37455,37604,38148,38500,38607,38619,40373],"huà huá":[21010],"lí":[21013,21075,21114,21145,21400,21937,22175,22212,23264,23415,24306,24737,26792,26808,26819,28435,28757,29313,29314,29432,29709,29827,29896,30432,30557,31163,31346,31472,31587,31729,31852,31950,32301,32545,32633,33347,33650,33758,34016,34110,34268,34362,34570,34765,34808,34859,35125,35623,35981,37288,37611,37637,37867,37975,38626,39530,39562,39887,39916,40058,40097,40313,40477,40514,40654,40679],"yuè":[21014,23347,23684,23731,23997,24689,24709,24742,25097,25224,25459,26376,27198,28729,29210,29605,31039,31156,31703,31814,31845,31856,31908,31925,34341,34446,34447,35500,36234,36288,36291,36493,36559,37381,37470,38e3,38074,38321,38322,38405,40465,40473,40678,40864],"liú":[21016,21129,22176,23225,23911,26056,26066,27060,27210,27969,27983,28687,29705,29792,29804,29858,30020,30041,30065,30081,30244,30277,30827,33957,33989,34761,35031,37775,37840,37890,38240,39104,39109,39127,39392,39413,39470,39505,39581,39969,40377,40544,40589],"zé":[21017,21063,21863,22038,23271,24123,24152,25246,27149,27509,27810,27854,28333,30367,30612,30688,30987,31654,31744,33332,34102,34828,35159,35630,36094,36188,36846,40453,40794,40816],"chuàng chuāng":[21019,21109],"qù":[21022,21434,21435,38324,38339,38418,40622,40705],"bié biè":[21029,21035],"páo bào":[21032],"chǎn chàn":[21036,21079,24157],"guā":[21038,21120,26736,27460,29041,29916,32973,36411,39082,39091,39463,40240,40505],"gēng":[21039,24218,26921,28013,28991,30026,32090,32686,32697,32789,33774,36065,36179,40330,40530],"dào":[21040,22133,24764,26913,27300,29182,29913,30423,30428,31282,31291,32411,32767,33364,33791,34908,34911,36551,36947],"chuàng":[21041,21071,21081,24582,24884],"kū":[21043,21741,22288,22528,26543,26701,30715,31391,36301,37056,39607,39852],"duò":[21044,21057,22703,23598,24816,24988,25349,26711,33333,36325,36346,38474,38479,39167,39283,40317],"shuā shuà":[21047],"quàn xuàn":[21048],"chà shā":[21049,21070],"cì cī":[21050],"guì":[21053,21055,21130,21132,25740,25904,26123,26690,26914,27126,27195,27331,29476,31148,31552,34005,35160,36020,36149,36330,37888,37966,38844,40022,40037],"lóu":[21061,23044,23105,24276,27004,27155,28295,28426,29089,32807,32812,33371,33932,34078,34684,34747,35633,36545,36977,38843,39621,39631],"cuò":[21065,21074,21405,22798,25387,25514,26852,33693,33697,33996,36906,37564,37679,38153,38169],"xiāo xuē":[21066],"kēi kè":[21067,23557],"là lá":[21068],"tī":[21076,26799,36386,37563,38161,40392,40393],"pōu":[21078],"wān":[21084,22598,22762,24117,24367,24398,28286,28523,28771,30549,34623,35916],"bāo bō":[21085,21093],"duō":[21087,21636,21702,22153,22810,22811,25479,27634,30035,35056],"qíng":[21088,21197,22813,24773,25806,26228,26258,26878,27144,27296,27696,29984,30808,33885,40677],"yǎn shàn":[21089],"dū zhuó":[21090],"yān":[21094,23267,23846,23958,24697,25045,25064,27182,28106,28153,28473,28895,28937,28945,29017,29658,31734,33005,33241,33784,37154,37251,38329,38409,40683],"huō":[21096,21136,21529,25865,31220,32800,38186,39454],"shèng":[21097,21104,21213,22307,22701,23882,26208,27066,27251,29726,32854,34114,36025,36088],"duān zhì":[21100],"wū":[21101,21596,21978,22316,23627,24043,24345,26439,27469,27737,27738,27745,27967,28879,31375,31676,34704,35464,35491,35820,37036,37140,37794,38056,39966,40238],"gē":[21106,21733,22314,24385,25096,25107,25128,27468,28370,29365,32912,35004,35596,37814,40218,40255,40509],"dá zhá":[21107],"chuán":[21110,26295,26941,31685,33313,33321,33337,36658,36932],"tuán zhuān":[21112,28441,31743],"lù jiū":[21113],"pēng":[21115,21257,22061,24614,24690,25256,26760,28921,30768,36591,39373],"piāo":[21117,21217,24915,26074,29349,32754,34741,39107,39108,39128,39762],"kōu":[21118,24388,25248,25715,30477,30616,33444],"jiǎo chāo":[21119,21131,21222,25719],"qiāo":[21121,21226,22685,24167,25970,27207,27587,29126,30807,30973,32337,36268,36343,36365,36474,36475,37115,37153,37157,37739,37740,37936,38201,38941],"huá huà":[21123],"zhā zhá":[21124],"pī pǐ":[21128,24706],"tāng":[21135,22049,32688,34202,34666,36442,38842,40734],"chán":[21142,22197,22757,23157,23307,24009,24283,26830,27610,28281,28537,28538,28598,28685,28730,29016,29521,30939,32254,32399,32402,32544,33388,34633,34768,34796,34814,35479,35730,35863,36500,37181,37185,37579,38001,38261,39262,39307],"zuān":[21143,36508,36518,37446,37978],"mó":[21144,23275,23332,23351,23579,25721,25845,27205,31970,33180,34278,34321,35624,35625,35871,39235,39261,39309,39629,39764,39801],"zhú":[21146,26040,26351,27416,28767,28834,28891,29165,29221,30211,31481,31489,31516,33331,33599,34027,34827,34878,36485,36880,36907,38019,40001],"quàn":[21149,21223,21240,29302,38863],"jìn jìng":[21156,21170,21185],"kēng":[21157,22353,29308,30785,30812,35481,37557,37726,37847,38143,38444],"xié liè":[21158],"zhù chú":[21161],"nǔ":[21162,24361,30766,33004],"shào":[21165,21362,21736,28530,32057,32164,32461,34961,37045],"miǎo":[21168,26474,28156,28218,30471,31186,31694,32242,32520,34256,37e3],"kǒu":[21174,21475],"wā":[21176,22380,23090,23207,23666,25366,25896,27964,28315,28453,29950,30038,31349,31370,31402,34521,38856,40707],"kuāng":[21179,21281,21289,21712,24647,27949,31568,31610,35462,35795,36589,37052],"hé":[21182,21642,21853,22976,23750,25926,26359,26567,26945,27644,27827,28088,28206,28565,29062,30380,30407,30409,30413,30418,31166,31701,31866,31917,32750,33743,33794,35208,35384,35429,37059,37339,37452,37961,38305,38356,38402,38422,38824,38940,39172,39288,39802,40534,40615,40789,40833,40866],"gào":[21186,21567,21578,23804,31086,31088,31134,31606,35493,35824,37084,37615,38150],"bó bèi":[21187],"láng":[21190,23247,24266,25999,26745,27028,27139,27444,29436,29701,29807,30816,31234,33350,33992,34571,34690,36532,37074,37086,37571,37807,38162],"xūn":[21195,21211,21234,21235,22161,22339,22489,22628,22734,22758,26331,29179,29551,30660,32385,33232,34219,34224,34317,37306],"juàn juān":[21196,29945],"lè lēi":[21202],"kài":[21203,28812,28887,37774],"wěng yǎng":[21212],"qín":[21220,21994,22105,23964,24200,25027,25028,25446,25810,26035,27278,28607,29665,29748,29753,30269,31165,31206,32825,33449,33465,33766,34707,34820,37401,37419,38594,38770,40185,40301],"jiàng":[21221,21278,21280,23929,24348,24374,25726,27364,27930,28400,29343,31969,31976,32115,32475,35645,37233,37284,37292],"fān":[21227,23311,24070,24161,24539,24995,26073,26075,32345,32763,34281,36691,39103,39132,40021],"juān":[21228,23010,23071,25424,28051,34866,35024,37816,37931,38220,40515],"tóng dòng":[21229,28884,29137,29418],"lǜ":[21236,22415,23874,24459,24942,27695,28388,28670,29192,31675,32160,32322,33183,33870,34385,37986],"chè":[21238,22396,24443,24505,25507,25764,28552,28898,29217,30638,30825,32837,36832,38937],"sháo":[21242,29631,38902],"gōu gòu":[21246],"cōng":[21254,22250,22257,24553,24625,24740,26288,27180,28439,29821,29825,30619,31733,32369,32865,32870,32874,32880,33473,33552,33905,34031,34085,34764,37743,37843,37862,39448,39492,39586],"táo yáo":[21259,38518],"páo":[21263,21638,22409,24214,29230,29389,34957,35100,36595,38788,40581],"dá":[21266,22962,24603,28831,29173,30051,31530,32653,33625,34200,34813,35418,36798,36815,36822,36826,36921,36948,37949,38780,38801,38851,40854,40856],"huà huā":[21270],"běi bèi":[21271],"nǎo":[21272,22452,22550,23248,24700,24745,24817,29785,30895,33041,33075,33126],"chí shi":[21273],"fāng":[21274,22543,26041,28115,29285,33459,37025,37377,37690,38059,40203],"zā":[21277,21634,24064,27806,33244,33250,36810,37460,39795],"qiè":[21287,21394,22974,24623,24719,24812,24860,25352,31317,31363,31434,31521,31655,31691,31841,36389,37733,38194,39900],"zāng cáng":[21288],"fěi":[21290,22876,24753,26832,27047,31706,32737,34140,35513,35837],"kuì guì":[21294,21297],"suǎn":[21300],"pǐ":[21305,22141,22189,22318,24192,30174,30294,33076,33481,37538,40196],"qū ōu":[21306,21312],"kē qià":[21308],"yǎn yàn":[21309,26858],"biǎn":[21310,24828,25561,30885,31272,31366,34250,35082,36022,36140,40216],"nì":[21311,22532,23263,23354,24772,24885,26165,26289,27708,30500,30568,32268,32978,33147,33193,36870],"niàn":[21316,21816,22493,24319,24565,24791,33356],"sà":[21317,27346,33038,33832,34159,34217,37394,38561,39087,39122,39354],"zú":[21318,21739,23850,26063,31652,36275,36388,38238],"shēng":[21319,21583,22768,26008,26119,26363,26529,27525,27881,28262,28986,29298,29636,29983,29989,31444,31513,32882,37454,37727,38441,38494,38521,40319,40746],"wàn":[21325,21328,24552,26468,30627,33045,33109,33836,34755,36110,36624,37693],"huá huà huā":[21326,33775],"bēi":[21329,24754,25593,26479,26734,30403,30865,34275,40303,40526],"zú cù":[21330],"dān shàn chán":[21333,21934],"nán nā":[21335],"shuài lǜ":[21339],"bǔ bo pú":[21340],"kuàng guàn":[21341],"biàn":[21342,21464,22793,23749,24321,24487,24557,25219,26154,27763,27764,29603,33361,33476,35213,35546,35722,36769,36775,36776,36777,36779,36782,36783,36941,37318],"bǔ":[21343,21754,25429,34917,35036,40468],"zhàn zhān":[21344,35249],"kǎ qiǎ":[21345],"lú":[21346,22183,22406,22746,24208,24300,26341,26534,26636,27368,27896,28696,28809,29200,29561,29576,29904,30439,30673,31834,32401,32591,33002,33242,33326,33339,33387,33446,34310,34854,36708,36723,37417,37994,39025,39045,39359,39639,39794,40056,40072,40469,40492,40696],"lǔ":[21348,22647,25523,25796,27152,27257,27347,27660,28407,28571,28674,30837,30944,31326,33379,33386,34046,34383,34396,37824,37930,37989,38245,39791,40065,40565],"guà":[21350,21865,25346,25499,32611,35074,35455,35798],"áng yǎng":[21356],"yìn":[21360,22461,22583,24277,24941,24982,24983,25050,27925,28250,29452,30282,32996,33562,37235,39843],"què":[21364,21371,22617,23813,24747,24872,24932,25609,27063,29161,29751,30389,30830,30906,31021,38347,38421,40306,40522],"luǎn":[21365],"juàn juǎn":[21367,24059],"chǎng ān hàn":[21378],"wěi yán":[21379],"tīng":[21381,21403,21548,24193,24304,24307,27712,28867,28916,32142,32787,32884,32892,32893,38803],"zhé zhái":[21383],"hàn àn":[21384,23677],"yǎ":[21386,21782,24204,30166,30210,34149],"shè":[21389,21401,24381,24913,24948,25086,25666,27399,28041,28091,28169,28384,28740,31038,33294,34062,34818,35373,35774,36198,39431,40605],"dǐ":[21390,21607,22360,24356,25269,25310,25483,29300,30757,33767,35293,35398,35787,36583,37048,38458,39606,39923],"zhǎ zhǎi":[21391],"páng":[21392,23246,24222,24492,33152,33341,34691,36868,39967,40145,40846,40848],"zhì shī":[21396],"máng":[21398,21506,21732,23055,24537,24702,26455,26471,27730,27997,29307,30173,30450,30829,31488,33426,33579,34313,37017,37359,37609,38099,39417],"zuī":[21404,27190,32407,34773],"shà xià":[21414,24264],"áo":[21419,22007,22008,24274,25942,28406,29522,29523,29832,32753,32758,32762,32881,34076,34735,35639,35640,36968,37846,38558,39986,40140,40404,40711],"lán qiān":[21425],"sī mǒu":[21430],"gōng hóng":[21431],"lín miǎo":[21432],"qiú róu":[21433],"dū":[21438,22047,30563,37263],"xiàn xuán":[21439,32291],"cān shēn cēn sān":[21442,21443,21444,21445],"ài yǐ":[21446],"chā chà chǎ chá":[21449],"shuāng":[21452,23360,23367,27398,31029,33389,38617,38684,39483,39526,39590,40414,40472,40564],"shōu":[21454,25910],"guái":[21455],"bá":[21456,22957,25244,25300,28838,30329,32968,33543,33757,35417,36299,36599,39747,40741],"fā fà":[21457],"zhuó yǐ lì jué":[21461],"qǔ":[21462,23094,31468,34682,35411,40818,40843],"jiǎ xiá":[21466,24486],"wèi yù":[21470,23561,34074],"dié":[21472,22436,22558,23756,24137,24654,24821,25116,26337,27548,27662,29251,29266,29918,30067,30082,30089,30090,30879,32112,32470,32778,32779,32965,33363,33525,34600,34678,35083,35396,35548,35853,36334,36416,36845,38267,39944,40125,40233],"ruì":[21473,26520,27757,29790,30591,33454,34443,34617,37555,37613,38160],"jù gōu":[21477],"lìng":[21478,21604,28841,34342],"dāo dáo tāo":[21480],"zhī zhǐ":[21482],"jiào":[21483,21580,22018,22054,22093,23315,25997,26016,28376,28438,29541,29651,30381,31382,34272,35334,35685,36269,36611,36686,36735,36739,37237,37294,37314],"zhào shào":[21484],"kě kè":[21487],"tái tāi":[21488,33492],"pǒ":[21493,23552,31544,31653,37461,38071,39370],"yè xié":[21494],"hào háo":[21495],"tàn":[21497,22022,25506,27470,28256,28845,30899,33301],"hōng hóng":[21503],"miē":[21504,21673,21750,23405],"xū yū yù":[21505],"chī":[21507,21735,21931,21988,22084,22939,23224,24424,24434,25691,25889,27558,29947,30196,30305,30517,30621,31518,31898,33013,34473,34733,35381,39761,40223,40260,40497,40656,40797],"xuān sòng":[21509],"yāo":[21510,21907,22829,22934,24186,26950,27520,31045,33136,33917,35358,36992,40193,40226],"zǐ":[21511,22985,22986,23376,26445,26771,27039,27252,28371,30711,31213,31531,31869,32043,32788,34424,35391,37352],"hé gě":[21512,40068],"cùn yīngcùn":[21515],"tóng tòng":[21516],"tǔ tù":[21520,21771],"zhà zhā":[21522,22867],"xià hè":[21523],"ā yā":[21526],"ma má mǎ":[21527],"lìn":[21533,24673,24715,27209,28955,29968,33190,34106,34298,36035,36161,36472,36495,36505,36522,36709,38325],"tūn":[21534,26302,26396,28958],"bǐ pǐ":[21537],"qìn":[21538,21539,21786,25227,25599,25607,25779,27777,28697,33763,34301],"jiè gè":[21540],"fǒu pǐ":[21542],"ba bā":[21543],"dūn":[21544,22136,22697,22698,24775,25737,25780,29340,29540,30981,34611,36478,39504],"fēn":[21545,24073,26128,26374,26788,26875,27675,31445,32027,32439,32706,33452,34927,35356,36526,37210,37398,38640,39220,39257,39322],"é huā":[21546],"kēng háng":[21549,22932],"shǔn":[21550],"zhī zī":[21553],"yǐn shěn":[21554],"wú":[21555,21556,21577,22706,23807,26791,27206,27595,27926,28015,28961,29688,29841,31078,33436,33571,33665,34154,34568,34801,35669,37082,37593,38139,39875,40272,40417,40512,40751],"chǎo chāo":[21557],"nà nè":[21558],"xuè chuò jué":[21559],"chuī":[21561,28810,40865],"dōu rú":[21562],"hǒu":[21564,29372],"hōng hǒu ōu":[21565],"wú yù":[21566],"ya yā":[21568],"è e":[21571],"dāi":[21574,25051,29507],"mèn qǐ":[21575],"hōng":[21581,22173,25544,28788,28888,28962,30817,34216,35335,35902,36579,36663,36703,36720,37735],"chǐ yīngchǐ":[21582],"nà":[21584,25466,31517,32013,32435,32941,33971,34930,35965,35968,36572,37069,37385,38048,38777,39798],"tūn tiān":[21585],"ḿ":[21586],"dāi tǎi":[21588],"ǒu ōu òu":[21589],"bài bei":[21591],"yuán yún yùn":[21592,21729],"guō":[21593,21871,22035,22490,22557,22670,23838,24393,24397,25046,29459,30225,32850,34632,34760,37101,37403,37707,38149],"huá qì":[21594],"qiàng qiāng":[21595,36292],"shī":[21598,22833,23608,23629,24072,24107,26045,27977,28260,28287,28334,28348,28629,29422,29509,29793,32065,33913,33938,33997,34417,34664,35127,35193,35433,35799,37055,37315,37447,37734,39924,39972,40122,40178,40190,40371,40484],"juǎn":[21599,22477,33223,33764,37640,38185],"pěn":[21600,32760],"wěn mǐn":[21601],"ne ní":[21602],"ḿ m̀":[21603],"rán":[21605,22059,28982,29123,32334,32944,34470,34490,34939,34951,34977,39653,39663],"tiè chè":[21611],"qì zhī":[21614],"zǐ cī":[21616],"guā gū guǎ":[21617],"cī zī":[21618],"hǒu xǔ gòu":[21620],"hē ā á ǎ à a":[21621],"náo":[21622,22802,23793,23977,24014,25376,25747,29489,30791,34546,34799,35401,35658,37891,38105],"xiā gā":[21623],"pēi":[21624,24588,32935,32986,34883,37253],"háo xiāo":[21626],"mìng":[21629,25525],"dá dàn":[21630],"zuǐ jǔ":[21632],"xián gān":[21633],"pǒu":[21637,21731,29315],"yǎng yāng":[21641],"zǎ zé zhā":[21643],"hé hè huó huò hú":[21644],"hāi":[21645],"dā":[21649,21714,22112,22710,25645,25752,32823,35105,37789],"kǎ kā":[21652],"gū":[21653,21762,21763,22993,23284,23396,24044,24045,26599,27245,27837,27858,31250,31519,31629,31643,31696,32603,33533,33735,33776,33991,35290,36593,36594,36721,36764,37220,37426,39829,40227,40490],"kā gā":[21654],zuo:[21655],"lóng":[21657,22184,23952,24003,24004,26173,26344,26407,26634,27102,27379,28272,28381,28427,29206,29649,29903,30275,30508,30675,30779,31025,31026,31423,31452,32843,32894,32999,33551,34338,34858,34860,35185,35909,37863,37992,38707,38727,39521,40471,40845,40850,40857],"xiàn xián":[21662],"qì":[21664,21805,22096,22120,22817,24323,24967,25001,26275,26820,27435,27668,27671,27683,27732,27773,27875,28230,28231,28801,29960,30453,30709,30875,30902,30940,30951,32586,33438,33914,34258,34815,35350,35755,36804,37905],"xì dié":[21669],"liē liě lié lie":[21671],"zī":[21672,21982,22997,23039,23388,23411,23414,23856,23915,26661,26900,28100,28285,28363,28588,29574,31116,31222,31906,32014,32199,32213,32387,32513,33546,33586,33880,35566,35864,36018,36039,36160,36164,36220,36241,36262,36636,36666,36750,37137,37421,37657,37759,37793,38193,38211,38974,38975,39661,39892,39974,40123,40325,40722,40781,40796,40839],"mī":[21674],"jī xī qià":[21677],"gē luò kǎ lo":[21679],"shù xún":[21680],"zán zá zǎ zan":[21681],"hāi ké":[21683],"huī":[21684,22085,22101,23118,23176,24145,24509,24674,25339,25381,25582,26198,26249,26958,27907,28680,28784,28787,28899,30579,31112,32730,32748,34355,34950,35096,35452,35801,35927,36637,36745,39988,40638],"huài shì":[21686],"táo":[21687,21845,26691,27310,27950,28120,31097,32175,32505,33796,34602,35050,36847,36867,37252,37630,38784,38793,39232,39395,39434,40727],"xián":[21688,21859,23092,23097,23153,23244,23290,23291,24358,25382,25743,28046,28282,28566,29961,30187,30279,30286,32067,32984,33335,34262,34495,34525,34900,34904,35512,35572,36066,36114,36132,36657,37262,37532,37990,38289,38386,40435,40436,40444,40519,40569,40601],"è àn":[21689],"xuān xuǎn":[21690,28892],"wāi hé wǒ guǎ guō":[21692],"yàn yè yān":[21693],"āi":[21696,21710,22467,28350,37552,37764,38207],"pǐn":[21697,27008],"shěn":[21698,23158,23352,23457,23479,23529,24350,26315,28182,28683,30635,30692,30695,35262,35360,35543,35717,35842,35849,37029,38947,39787],"hǒng hōng hòng":[21700],"wā wa":[21703],"hā hǎ hà":[21704],"zāi":[21705,26685,28221,28328,28797,28798,28886,30581,36083],"dì diè":[21707],"pài":[21708,27808,27966,28178,28227,33934,37763],"gén hěn":[21711],"yǎ yā":[21713,38597],"yuě huì":[21717,22118],"nián":[21718,24180,31178,31205,39822,39920,40071,40118,40263,40655],"huá huā":[21719,22057],"jì jiē zhāi":[21724,22156],"mōu":[21726],"yō yo":[21727,21938],"lòng":[21730,26759,36122],"ò ó é":[21734],"lī lǐ li":[21737],"nǎ na nǎi né něi":[21738],"hè":[21740,22414,22737,23497,24786,28931,28994,29178,29184,30283,30859,32751,35088,35614,36032,36154,36203,38733,38734,38735,40372,40470,40548],"bō pò bā":[21745],"zhé":[21746,21856,21894,22174,22481,24714,25722,26210,26211,27517,30714,30739,30932,31863,31885,34420,34544,34756,34985,35423,35627,35642,35713,35723,35882,36626,36633,36685,36740,36761,39871],"liàng láng":[21748],"liè lǜ":[21751],"hān":[21755,25e3,34486,35901,37219,38919,39032,39328,39805,40766],"hēng hng":[21756],"gěng":[21757,22466,23802,25389,26775,32134,32480,32831,33668,37088,39614,39873,40096],"chuò yuè":[21758],"gě jiā":[21759],"bei bài":[21764],"hán hàn":[21765],"chún":[21767,28017,28283,28387,28440,29321,32020,32431,33059,33724,33939,34036,37255,37269,37662,38489,39897,40329,40529],"ài āi":[21769],"jiá qiǎn":[21770],"yán dàn xián":[21772],"chē":[21779,30743,30824,33687,34556],"wú ńg ń":[21780],"zào":[21781,21795,22122,24933,26765,28790,29040,29157,30337,30338,31427,31432,31753,33345,35679,36270,36481,36896],"dí":[21785,21831,22016,22145,23265,24312,25932,25973,26769,28068,28364,29380,31515,31860,31988,33494,33659,34059,34064,34273,35263,35276,35956,36842,38766,38932,39344,39650,40464],"gòng hǒng gǒng":[21789,21962],"dóu":[21790],"lào láo":[21792,22062,24998],"liǎng yīngliǎng":[21793],"huàn":[21796,21914,22850,22864,23462,23880,24187,24739,24844,25442,25563,25808,25868,26777,27125,28003,28067,28185,28470,28579,28873,28949,29029,29773,30186,30227,30534,32914,34279,35938,36696,36909,39879,39926,39936,40105],"léng":[21797,22596,26974,30864,34192],"wō wěi":[21801],"fěng":[21802,35202,35575,35773],"yín jìn":[21803],"hǔ xià":[21804],"wéi":[21807,22260,22285,22749,23767,23774,23916,24079,24119,24131,24799,26693,27817,27912,28064,28235,28296,28493,28505,28543,28656,29353,30656,32173,32500,34038,35257,36829,36949,37164,37248,37711,38344,38385,38859,38886,39840],"shuā":[21808],"chàng":[21809,24581,24757,26274,28987,30021,30076,35503,38868,39727],"ér wā":[21810],"qiàng":[21812,28829,29079,32699],"yō":[21815],"yū":[21817,28132,30208,30419,31626,32006,32417,36796,36802,36803,38483],"lài":[21819,28625,28712,28716,30302,30313,30544,30558,31809,31839,34302,36058,36084,36169,36182,38972,38978,40291],"tuò":[21822,23966,26589,27620,27643,31656,31836,33818,34304,36293],"zhōu zhāo tiào":[21825],"kěn":[21827,22438,22718,24691,25031,32910,32943,32955,35940,37689],"zhuó zhào":[21829,28655],"hēng hèng":[21832,24729],"lín lán":[21833],"a ā á ǎ à":[21834],"qiāng":[21836,22004,23944,25109,25700,26024,26538,27085,28332,29252,29456,29511,32652,32663,33108,34595,35602,37848,38166,38197],"tūn zhūn xiāng duǐ":[21837],"wèn":[21839,22927,25598,25653,29882,38382,38992],"cuì qi":[21840],"dié shà jié tì":[21841],"yuē wā":[21848],"zǐ cǐ":[21849],"bǐ tú":[21850],"chuò chuài":[21852],"yǎ yā è":[21854],"fēi":[21857,23123,23124,25161,26243,28164,29446,32203,32495,35062,38671,38750,38751,39131,39133,39134,39205,39329,39441,39451,39905,40113],"pí":[21860,22720,26503,27607,27608,28983,29749,30130,30382,31738,32628,32646,33086,33111,33165,34445,34493,34609,34743,34863,35964,35988,37099,37433,38448,38516,38566,39790,39821,40079,40295,40729],"shá":[21861],"lā la":[21862],"yīng qíng":[21864],"pā":[21866,22929,33317,33897,36276],"zhě shì":[21867],"sè":[21868,21959,25038,25804,26652,27502,28073,28171,28544,28545,28615,28623,28690,29791,29873,30263,31313,31329,31343,32364,35653,36694,37547,37884,38127,39115],"niè":[21870,21995,22107,22169,22209,22227,22332,23420,23421,23922,23981,24021,24071,25948,26559,27127,27377,28037,28284,30150,31710,31819,31985,31989,32834,32886,33260,33266,34326,34853,35736,36354,36375,36377,36433,36513,37660,37811,37960,38007,38016,38218,38221,38353,38503,38537,39027,39070,40807],"luō luó luo":[21872,22217],"tān chǎn tuō":[21876],bo:[21877,34068],"dìng":[21878,23450,26903,30708,30855,30880,30968,32866,33114,33827,35330,35746,37664,38189,38977,39139,39268],"lāng":[21879],"án ān":[21885],"kā":[21888,25814],"yóng yú":[21889],"lā lá lǎ":[21895],"jiē":[21896,21948,21983,22566,23192,25509,25522,25809,28253,29039,30102,30158,30308,30342,31224,31277,33083,34644,34903,35631,38454,38542,38786,40347],"hóu":[21897,24127,29492,30218,30586,31692,31943,32749,33876,37127,37741,39217,39610,39928],"dié zhá":[21899],"wāi":[21902,27498,31477],"nuò rě":[21903],"xù huò guó":[21904],"zán":[21906],"wō ō":[21908],"hú":[21910,22045,22251,22774,22775,22778,23209,24359,25648,26011,26972,27122,28246,28715,28928,29043,29392,29474,29786,29939,31670,32087,32288,32993,33899,34075,34676,34716,34906,35315,37264,37752,38966,39212,39693,39793,39959,40288,40344,40358,40533],"huàn yuán xuǎn hé":[21915],"xǐ":[21916,22221,22736,23651,24473,24985,26546,27250,27478,28423,29626,29885,30678,31143,32304,33864,33912,34032,34786,35601,36445,36519,37410,37480,37481,40026],"hē hè yè":[21917],"kuì":[21919,22067,23231,23303,24870,24871,24978,31697,31779,31812,32873,32877,32885,33197,34146,35593,39229,39243,39304],"zhǒng chuáng":[21920],"wéi wèi":[21921,28858,29234],"duó zhà":[21925],"sāng sàng":[21930],"qiáo jiāo":[21932],"pèn bēn":[21935],"cān sūn qī":[21936],"zhā chā":[21939],"miāo":[21941],"pēn pèn":[21943],"kuí":[21945,22804,22862,24025,25123,25542,26182,26252,26959,26961,27334,29354,30589,33909,34248,34359,34369,34672,36520,36917,37128,37736,37751,38959,39319,39460,39577,39745],"lou lóu":[21949],"zào qiāo":[21951],"hè xiāo xiào hù":[21955],"á shà":[21956],"xiù":[21957,23723,23744,28340,29659,29703,29843,31168,32137,32333,32353,32483,34705,34966,35086,35087,37561,37861,37885,38152,40773],"qiāng qiàng":[21958,25111,25127,36428,36449],"ài yì":[21964,33406],"má mǎ ma":[21966],"kè kē":[21969],"dā tà":[21970,37769],"sǎng":[21971,25633,30921,35116,37791,39001,39073],"chēn":[21972,25275,29723,30603,35523,35603,36061,37108],"wā gǔ":[21975],"pǎng bēng":[21977],"xián qiǎn qiān":[21979],"lào":[21984,23274,27247,28061,28551,32802,32814,36540,36546,37226],"wēng":[21985,32705,32876,34697,37779,40370,40543],"wà":[21986,33149,33155,34972,35178,38884],"hēi hāi":[21992],"hē":[21996,27441,34842,35382,35779],zi:[21997],"sǎi":[21998],"ǹg ńg ňg":[21999],"gě":[22e3,33336],"ná":[22001,25295,25343,37823,38222],"diǎ":[22002],"ài ǎi āi":[22003],"tōng":[22005,27147,28853,34026],"zuī suī":[22010],"zhē zhè zhù zhe":[22011],"mò":[22012,22333,22651,22696,22970,23292,23518,24094,26153,26411,26554,27519,27521,27819,28448,29189,29519,30268,30348,30525,30527,30608,30617,30750,31027,31203,32072,32390,32817,33545,33672,34022,34536,34772,35971,35978,35992,37510,37836,38214,38476,38778,39488,39785,40664,40665],"sòu":[22013,30262],"tǎn":[22015,22374,24528,25011,25019,26298,27631,29870,33788,34962,35170,37267,37485,38077],"jiào dǎo":[22020],"kǎi gě":[22021],"shān càn":[22023],"cáo":[22024,23942,26361,26362,27133,28437,33370,34040,34732,35135,37866],"piào":[22028,24497,34056,39491],"lóu lou":[22029],"gǎ":[22030,23573,29581],"gǔ jiǎ":[22031],"jiāo xiāo":[22032],"xū shī":[22040,22099],"pó":[22041,22185,23110,27335,30372,37169],"dē dēi":[22042],"ma má":[22043],"lē lei":[22046],"gā gá gǎ":[22048],"sāi":[22053,22139,27618,33134,38987,39955],"zuō chuài":[22060],"cháo zhāo":[22066,26397,40706],"zuǐ":[22068,22143,23946,29883],"fǔ ḿ":[22072],"qiáo qiào":[22074,32761,35887],"chù xù shòu":[22076],"tān chǎn":[22077],"dàn tán":[22078,24382,24392,24788,28601],"hēi mò":[22079],"ě":[22081,30760,38923,39424,40264],"fān bo":[22083],"chuáng":[22087,24202,29248],"cù zā hé":[22088],"tūn kuò":[22091],"cēng chēng":[22092],"dēng":[22100,23297,28783,29128,29842,30331,31475,31782,33376,35915],"pū":[22103,25169,25778,25908,25909,28541,28807,38496],"juē":[22104,23657,23659,25767],"lū":[22108,22165,25784,25852,35618],"zhān":[22113,23742,24777,26051,26076,26540,26676,27617,27656,27658,27838,30651,34205,34501,35392,35449,35691,35893,36232,36997,38298,38673,39142,39256,39513,39769,40035,40455,40559],"ō":[22114],"zhòu zhuó":[22115],"jiào qiào chī":[22125],"yuàn":[22126,22964,24616,24895,25534,29783,31120,33489,34895,35051,35089,38498,39e3],"ǎi ài āi":[22127],"yōng yǒng":[22128,28589],"jué xué":[22129],"pēn pèn fèn":[22132],"gá":[22134,23580,37331,37687,38022],"hm hěn xīn hèn":[22135],"dāng":[22137,28578,29680,29867,31580,31801,33377,34807,35014,35168],"làn":[22146,28389,28651,28866,29143,29185,29211,29220,29907,31991,38020],"tà":[22147,22202,23817,25374,25640,25787,27067,27261,27646,28094,28606,28620,31138,31887,35515,35702,36427,36473,36482,36514,36957,37652,38354,38373,38396,38424,38812,38835],"huō huò ǒ":[22148],"hāo":[22150,33568,33983,34181],"hè xià":[22151],"xiù pì":[22154],"zhōu chóu":[22155,30441,35818],"mē":[22162],"chā cā":[22163],"bó pào bào":[22167],"me mèi mò":[22172],"xié hái":[22177],"áo xiāo":[22179],"mō":[22180,25720],"pín":[22188,23078,23252,23338,29613,30665,34226,34841,36007,36139,39024,39078],"mè":[22192,28665],"rǎng rāng":[22199],"lá":[22201,26095],"jiáo jué jiào":[22204],"chuò":[22205,23062,25801,27488,28080,30957,36352,36639,36749,36789,36790,37227,37985,39199,40810,40842],"huān huàn":[22206],"zá cà":[22211],"chài":[22214,34431,34822,34947,35341],"náng nāng":[22218],"zá zàn cān":[22219],"sū":[22220,27375,29990,31267,31308,31395,34311,34323,37221,39874],"zèng":[22222,29111,29969,36104,36192,37605,38147],"zá niè yàn":[22224],"nāng":[22228],"luó luō luo":[22230],"wéi guó":[22231],"huí":[22232,22238,22252,24315,24317,24667,27908,30160,33588,34456,34516,34517,34582,36852,36901,39856],"nín":[22236,24744,33036],"jiǎn nān":[22237],"nān":[22241],"tuán":[22242,22243,22296,24945,25247,25718,27314,31984,37828,40402,40443],"tún dùn":[22244,22345],"guó":[22255,22262,22267,22269,22272,22283,24124,24151,24918,25681,28429,32861,33112,33173,34094,34402,39320],"kùn":[22256,28035,30543],"wéi tōng":[22258],"qūn":[22263,22795,36897],"rì":[22264,26085,34933,37412,39353,39538],"tāi":[22268,23393,32974],"pǔ":[22275,22289,25800,26222,26268,27192,27279,27654,28006,28325,28915,35561,35676,35889,36476,37920,38248],"quān juàn juān":[22280,22287],"chuí chuán":[22284],"tuǎn":[22293,30077,30083],"lüè":[22297,25504,30053,30055,31268,37597,37602,38154],"huán yuán":[22300],"luán":[22301,22302,22897,23048,23372,23402,23423,23782,24018,25371,25891,26347,26686,27410,28390,28772,30324,30325,32649,33044,33248,34378,37550,38014,40265,40478,40510],"tǔ":[22303,22305,37367,38029],"xū wéi":[22313],"dì de":[22320,23987],"qiān sú":[22321],"zhèn":[22323,22630,25355,25391,26389,26650,30013,30521,32022,32124,32444,35499,36049,36168,37620,37805,37806,38215,38453,38499,38663,40198,40489],"chǎng cháng":[22330,22580,22642],"qí yín":[22331],"jiá":[22335,24550,24669,25118,25204,33061,33626,33698,34545,34554,35020,36338,37071,37087,37583,38103,38956,38960,39050,40246,40266],"zhǐ zhì":[22337],"bǎn":[22338,23685,26116,26495,29256,29930,31876,33320,34626,37393,38051,38442,39788],"qǐn":[22341,23505,23517,23522,26129,26795,31497,34748,36222,37599,38163],"méi fén":[22342],"rǒng kēng":[22344],"fāng fáng":[22346],"fèn bèn":[22347],"tān":[22349,24633,25674,25849,25892,28393,28760,30251,30321,33297,36010,36138],"huài pēi pī péi":[22351],"dì làn":[22356],"tán":[22363,22704,22709,22727,22748,23122,24987,26137,26311,27011,27264,28525,29122,30192,30969,32584,32590,34283,35527,35674,35680,35848,35885,35994,37103,37296,37663,38979],"bà":[22365,22459,22761,24349,27419,28766,29240,30706,35207,38712,39809,40069],"fén":[22367,22707,22946,23694,24169,26508,26876,27774,28954,29132,29139,32658,32693,33974,34145,34464,34465,35950,35958,36690,37948,38571,39337,39797,40642,40726,40738],"zhuì":[22368,22684,24820,29952,30071,30984,32180,32267,32512,32530,33103,33159,35528,36101,36184,37258,37667,37958],"pō":[22369,23717,27900,28300,28497,37337,37882,38027,38935,39047],"pǎn bàn":[22370],"kūn":[22372,22531,22546,23824,23825,26118,26204,28489,28956,29108,29457,29736,29819,33742,34603,35016,35049,35084,37260,37653,38175,39433,39648,39649,39656,39908,40114,40318,40356,40525],"diàn":[22379,22443,22666,22722,22880,23133,24215,24806,25154,27202,27583,28096,28593,29623,29716,30005,30300,31775,34580,37439,38651,38747,39508],"mù mǔ":[22390],"kē kě":[22391,36603],"xuè":[22393,23716,26710,28709,29400,30642,35604,35857,36240],"dǐ chí":[22395,26594],"lā":[22403,26566,33736,37003],"lǒng":[22404,22405,22751,22752,25314,25871,31433,38471,38580],"mín":[22410,22980,23735,23823,25450,26107,26108,27665,29641,29720,29725,29769,30203,30463,30727,32205,32225,32535,32608,33504,37425,37641,37746,40214],"dòng tóng":[22412,23762,27934],"cí":[22416,23336,24904,26572,28648,29633,29943,29958,30913,31008,31072,31949,33576,35422,35789,36765,36766,36772,36781,38604,39162,39176,40220,40383,40384,40538],"duī":[22422,22534,22624,30205,30931,37907,37916,40237],"duò duǒ":[22427],"duǒ duò":[22428,25350],"chá":[22430,23519,23894,25661,27086,27307,29497,33580,33590,35431,38763],"shǎng":[22439,26188,27145,36062,36120,36175,37631,37851,37980],"shǒu":[22440,23432,25163,25164,33359,39318],da:[22447,32360,36342],"háng":[22451,26043,26477,31573,32078,32471,33322,33472,34466,35012,36005,36818,38927,39043,39783],"ān ǎn":[22453],"xīng":[22454,24826,26143,26320,29003,29481,29766,30376,31682,33125,33288,35306,35314,35587,39426,39565,39823,39929],"yuàn huán":[22456],"bāng":[22457,24110,24135,24154,24171,25440,26758,27996,37030,37035,38820],"póu fú":[22458],"cén":[22465,23697,28052],"běng fēng":[22468],"dì fáng":[22469],"xiá jiā":[22473],"mái mán":[22475],"làng":[22476,23808,28010,33943,38316],"shān yán":[22479],"qín jīn":[22480],"pǔ bù":[22484],"huā":[22486,23154,26907,30836,31936,33457,33930,34340,35502,37685],"suì sù":[22499],"pí pì":[22500],"qīng zhēng":[22501,40109],"wǎn wān":[22502],"lǔn":[22504,31248],"zhēng chéng":[22505],"kōng":[22506,23814,31644,36539,37651,40316],"cǎi cài":[22512,23488,37319],"chù tòu":[22513],"běng":[22514,29739,33782,38811],"kǎn xiàn":[22515],"yì shì":[22518,37299],"péi":[22521,27632,35060,35061,36064,36180,37639,38187,38443,38506],"sào sǎo":[22525],"jǐn qīn jìn":[22535],"péng bèng":[22539],"qiàn zàn jiàn":[22545],"àn":[22547,23669,23736,25353,26263,26696,33018,33612,35963,35979,37644,38343,38540,40687],"duò huī":[22549,22702],"huán":[22554,23503,23536,23768,26707,27961,28596,29506,29615,29872,31979,32367,32563,32678,33601,33800,33809,35954,37744,37942,38206,38254,38372,38427,38600,39711,40558],"bǎo bǔ pù":[22561],"máo móu wǔ":[22565],"ruán":[22567,22742,25739],"ài è yè":[22568],"gèng":[22569,26245],"méi":[22579,22650,23186,23883,24510,25879,26522,26626,26757,26979,26995,27089,28228,28232,29028,29496,29611,29691,29762,30473,30530,31126,33028,33058,33116,33530,33683,33919,37119,37238,37767,38213,38665,40357,40539,40692],"dǔ":[22581,29757,30585,31491,31716,35241,36077,36172],"féng":[22584,32152,33346,36898],"hèng":[22588],"chūn":[22590,23179,26110,26149,26265,26486,26943,27078,27201,27332,29763,31674,33797,34685,36660,39942,40350],"jiǎng":[22594,22870,22888,22892,26728,27123,29518,32809,33177,33931,34083,35611,35762,39004],"huāng":[22595,24031,24908,32915,33618,34881],"duàn":[22597,26029,26039,26932,27573,27592,28997,29782,30891,31766,31850,32222,32526,33142,33902,36502,37723,38203],"tǎ":[22612,22678,29549,29562,39833,39976,40142],"wěng":[22613,22883,23905,25882,26273,30600,33994],"sāi sài sè":[22622],"zàng":[22623,24329,33235,33247,33900,34101,37562],"tián":[22625,23623,24684,27834,28233,29875,29979,29980,3e4,30027,30033,30901,30924,32971,38352,38423,40235,40390,40399],"zhèng":[22627,24129,25919,35388,35533,35657,35777,35812,37073,37165,38741,40202],"tián zhèn":[22635],"wēn":[22637,26167,27058,27551,28201,28331,29797,30239,34160,35953,36668,36672,36754,37822,39234,39963,39982,40129],"liù":[22639,24263,30943,32719,38625,38692,39230,39736,40410,40552],"hǎi":[22640,28023,28920,37244,37282],"lǎng":[22641,26390,26391,26404,28922,34018],"bèng":[22644,25596,27893,29967,32179,36454,36856,36908,37872,38234],"chén":[22645,23480,23576,24561,25936,25974,26216,26335,26645,27140,27785,28993,30222,33251,33566,33664,33680,34095,34236,34740,35366,35574,36569,36784,36839,37378,38472,38515,38659,40400,40590],"ōu qiū":[22648],"qiàn jiàn":[22649],"zhuān tuán":[22652],"shuǎng":[22653,24929,28474,29245,32276,37871],"shú":[22654,23116,23408,29881,31211,36118,36174],"lǒu":[22655,23901,23937,29962,31699,31757],"chí":[22656,24347,25345,27744,28454,31486,31554,31630,31722,33548,33614,34483,35608,36030,36223,36383,36831,36833,36933,36959,36978,37705,39347,39536],"shù":[22661,24246,24251,24631,24661,25101,26463,26641,27193,27821,28465,28484,28630,31446,31466,32073,33127,33623,33921,34410,34899,35019,35918,36848,37477,37680,37859,38676,40336],"dì zhì":[22662,30096],"kàn":[22664,23809,30640,30681,30945,34894,39723],"chěn":[22667,22822,30838,30876,30947,36098,36283,36408,37718],"zhǐ zhuó":[22668],"qiǎng":[22671,32328,32358,32677,35137],"zēng":[22679,22686,24974,29844,30704,30963,32638,35652,37163,40027],"qiáng":[22681,22715,23281,23321,27183,27299,28434,29254,33378,34051,34103,34336],"kuài tuí":[22692],"tuǎn dǒng":[22693],"qiáo què":[22695],"zūn dūn":[22699],"qiāo áo":[22717],"yì tú":[22719],"xué bó jué":[22726],"lǎn":[22728,23358,23364,23375,25042,25078,25597,25829,25900,27012,27414,28008,28452,28768,32412,32518,32625,35239,35261,35272,37250,39026],"huài":[22730,22750,34366],"rǎng":[22732,22756,25880,29209],"làn xiàn":[22735],"dǎo":[22740,23548,23566,23707,23798,23947,23948,23993,25443,25623,25827,27101,31095,31106,31153,36424,38502,38557,38575],"ruǐ":[22753,26741,27236,32352,34122,34123,34306,34307],san:[22765],"zhuàng":[22766,22767,22773,25758,28939,29366,29376],"ké qiào":[22771,27580],"kǔn":[22776,22780,24707,25414,26801,30833,31093,31239,31259,32145,35021,38315,38328,38403],"mǎng":[22782,28461,33595,33725,33726,34830],"cún":[22783,23384],"zhǐ zhōng":[22786],"gǔ yíng":[22787],"jiàng xiáng":[22789,38477],"páng féng fēng":[22790],"zhāi":[22792,25434,25688,25995,25998,27064,31874,40779],"xuàn xiòng":[22800],"wài":[22806,39009],"wǎn yuàn wān yuān":[22807],"mǎo wǎn":[22808],"mèng":[22818,22819,23391,26790,30310,38693],"dà dài":[22823],"fū fú":[22827,22983,26510,31920],"guài":[22828,24618,24672],"yāng":[22830,22990,25264,27523,27889,31207,32998,37472,37704,38645,40230,40495],"hāng bèn":[22831],"gǎo":[22832,25630,26482,27072,27073,27322,31233,31294,31295,32286,32543,33746,34241,34291],"tāo běn":[22834],"tóu tou":[22836],"yǎn tāo":[22837],"kuā kuà":[22840,35463],"jiá jiā gā xiá":[22841],"huà":[22843,23155,23295,23301,23819,25702,26489,26528,26726,27116,27194,28549,30011,30059,30069,32355,33305,35441,35545,35694,35805,40650],"jiā jiá gā xiá":[22846],"ēn":[22848,24681,33981],"dī tì":[22851],"yǎn yān":[22852,28208],"pào":[22853,30129,30384,30770,31007,31022,38756,40621],"nài":[22856,26608,28223,32784,33816,35110,37692,40720],"quān juàn":[22861,24366,26860],"zòu":[22863,25549],"qì qiè xiè":[22865],"kāi":[22866,24320,25577,37926,38158,38283],"bēn bèn":[22868,27853],"tào":[22871],"zàng zhuǎng":[22872],"běn":[22873,26412,26957,30042,32713,33519],"xùn zhuì":[22878],"shē":[22882,27304,29470,30061,30066,36050,36054,36170,36619],"hǎ pò tǎi":[22884],"ào yù":[22885,22887,28570],"yūn":[22891,27698,27699,33920,33941,34681,36103,36191],"duǒ chě":[22898],"nǚ rǔ":[22899],"nú":[22900,23397,31535,39377,39549],"dīng dǐng tiǎn":[22901],"tā jiě":[22905],"nuán":[22907],"hǎo hào":[22909],"fàn":[22911,23310,26805,27726,27867,28412,28714,29359,30024,30421,31541,31684,33539,35337,36009,36137,36588,36669,39151,39152,39277],"shuò":[22913,25632,26388,27082,28865,29197,30687,33972,37785,37984,38084],"fēi pèi":[22915],"wàng":[22916,24536,26106,26395,26402],"zhuāng":[22918,22941,23076,24196,24210,26729,26761,27137,31911,31962,33624,33674,35013,35037],"mā":[22920,23229],"fū yōu":[22923],"hài jiè":[22926],"dù":[22930,22956,26460,27564,28193,31226,33423,33648,34713,34855,34873,37709,38208,38767],"miào":[22937,24217,24255,24287,29573,31447],"fǒu pēi pī":[22938],"yuè jué":[22940],"niū":[22942],"nà nàn":[22944],"tuǒ":[22949,23287,24249,26925,26965,27234,39692,39958,40270],"wàn yuán":[22951],"fáng":[22952,25151,32938,38450,39796,40066],"nī":[22958],"zhóu":[22959,30881],"zhāo":[22961,24054,25307,26157,37335,37450,37731,38026,39371],"nǎi nǐ":[22963],"tǒu":[22965,25960,32015,34339,40648],"xián xuán xù":[22966],"zhí yì":[22967,31175],"ē":[22968,22975,23104,23641],"mèi":[22969,23194,23504,25274,26048,26151,27820,29021,30167,30491,30584,31065,31683,34654,34946,36298,39741,39749],"qī qì":[22971],"xū xǔ":[22977,31280],"shān shàn":[22989,22999,33515,37348,38032],"mán":[22991,24946,27168,34542,34875,35646,39237,39314,39703,39704,39995,40151],"jiě":[22992,23182,27294,27601,39159],"wěi wēi":[22996],"pīn":[23e3,25340,30999,31334,39338,39518],"huá huó":[23009],"jiāo xiáo":[23011],"gòu dù":[23012],"lǎo mǔ":[23013],"nián niàn":[23017],"zhěn":[23019,23634,24363,25262,26147,26517,30043,30137,30485,31289,32285,32293,32540,32836,33817,34967,35030,35225,35386,35786,36587,36728,36788,39383,39698],"héng":[23022,24646,24658,28870,29673,33019,34309,34913,37957,40244,40262,40507],"jūn xún":[23024],"kuā hù":[23025],"è yà":[23030],"xiān shēn":[23034],"wá":[23043],"ráo rǎo":[23046,23304],"shào shāo":[23051],"xiē":[23054,25587,26964,27463,34638,34829],"wǔ méi mǔ":[23058],"chuò lài":[23061],"niáng":[23064,23330,23363],"nà nuó":[23068],"pōu bǐ":[23069],"něi suī":[23070],"tuì":[23079,29050,34555,34581,36864,39422],"mǎn":[23080,23640,28288,28385,28415,34728,34766,35156,37835],"wú wù yú":[23082],"xī āi":[23085],"zhuì shuì":[23095],"dōng dòng":[23099],"ǎi ái è":[23102],"ē ě":[23103],"mián":[23106,23349,23424,26467,26825,27312,27339,30496,30664,30666,30671,32191,32220,32501,33415,34642],"pǒu péi bù":[23108],"biǎo":[23114,33087,34920,35057,35134,35544,37686],"fù fàn":[23119],"wǒ":[23120,23121,25105],"ní nǐ":[23127,26879],"quán juàn":[23128,24787],"hūn":[23130,26127,26156,26836,28093,30567,30575,30856,33636,33911,34066,36683,38333,38413],"qiān jǐn":[23132],"wān wà":[23136],"lái lài":[23137,24469,24480],"zhōu chōu":[23140],"chuò nào":[23141],"nüè àn":[23145],"hùn kūn":[23147],"dàng yáng":[23160],"nàn":[23163],"ruò chuò":[23164],"jiǎ":[23165,23724,26010,26013,27022,27098,27295,29630,30002,32987,37440,38078],"tōu yú":[23166,23214],"yù yú":[23168],"wéi wěi":[23169],"dì tí":[23170,29686,33488],"róu":[23171,25545,26580,28184,29027,29768,29895,31160,31880,31941,33052,33132,33863,34650,36418,36654,37714,38819,39461,39943,40340],"ruǎn nèn":[23174],"miáo":[23180,23289,25551,30596,33495,40339,40523],"yí pèi":[23184],"mián miǎn":[23188],"tí shì":[23198,24831],"duò tuó":[23200,27826],"ǎo":[23210,23228,33401,33466,34948,35158,38266],"chú zòu":[23216],"yìng":[23221,26144,26254,30828,33185,40038],"qín shēn":[23232],"jià":[23233,24143,26550,27042,31292,39381,39550],"sǎo":[23234],"zhēn zhěn":[23235],"jiē suǒ":[23237],"míng mǐng":[23239],"niǎo":[23243,23325,23346,33553,34086,34949,35018,35117,40479],"tāo":[23245,24141,24354,24902,25487,25647,27076,28059,28372,28644,29803,32091,32282,32295,32486,35420,35615,36673,38833,38876,38892,39160,39253],"biáo":[23249],"piáo piāo":[23254,34232],"xuán":[23257,24748,25080,26294,27272,28457,29572,29831,29887,30147,34561],"màn mān":[23258],"kāng":[23261,23931,24247,24951,27130,28462,30730,31301,31968,36543,37870,40007],"hān nǎn":[23272],"nèn":[23273,23280],"zhē":[23276,36974],"mā má":[23282],"piè":[23283],"zhǎn":[23288,23637,25612,26025,26028,29718,30415,30430,36670,37254,39085,39120],"xiān yǎn jìn":[23312],"liǎn":[23322,25947,25986,29711,29833,32695,33080,33225,34105,34333,34334,35043,35165,37179],"qióng huán xuān":[23323],"dǒng":[23326,25026,31677,33891,34155,35532],"cān":[23328,28236,29208,39137,39184,39490,39574],"tiǎo":[23333,23464,26176,26387,31409,33025],"bí":[23350,33656,40763],"liǔ":[23356,26611,26625,26718,26746,27246,29102,29643,32185,32506,32630,32640,37622,38157],"qiān xiān":[23365,27430],"xié huī":[23368],"huān quán":[23369],"lí lì":[23371,40599],"zhú chuò":[23374],"kǒng":[23380,24656],"mā zī":[23382],"sūn xùn":[23385,23403],"bèi bó":[23387,35478],"yòu niū":[23399],"zhuǎn":[23400,31473,36681],"hái":[23401,39608],"nāo":[23404],"chán càn":[23409],"bò":[23417,27287,34327,35666],"nái":[23419,33097],"níng nìng":[23425,23501,23511,23516,23527,29999],"zhái":[23429],"tū jiā":[23434],"sòng":[23435,35359,35494,35772,35829,36865,37817,38924,39042,39224],"ròu":[23437,32905,35699],"zhūn":[23442,31360,34912,35524,35846,36813],"mì fú":[23443],"dàng tàn":[23445],"wǎn yuān":[23451],"chǒng":[23456,23541],"qún":[23469,23790,24108,32675,32676,35033,35040],"zǎi":[23472,23869],"bǎo shí":[23474],"jiā jia jie":[23478],"huāng huǎng":[23482],"kuān":[23485,23515,23532,33239,37991,39627,39638],"sù xiǔ xiù":[23487],"jié zǎn":[23489],"bìng bǐng":[23502],"jìn qǐn":[23510],"lóu jù":[23520],"xiě xiè":[23531],"qīn qìn":[23540],"cùn":[23544,31871],"duì":[23545,23550,23565,24636,24989,25055,28647,28713,30867,31051,32144,34225,35656,35701,36699,38431,38510],"lüè luó":[23549],"shè yè yì":[23556],"jiāng jiàng qiāng":[23558],"jiāng jiàng":[23559,27974,28479,30074],"zūn":[23562,23967,27197,32583,36981,37903,40018,40159,40334,40439],"shù zhù":[23564,28557],"xiǎo":[23567,26195,26241,26313,30363,30370,31601,31615,31712,35599],"jié jí":[23568,35800,38794],"shǎo shào":[23569],"ěr":[23570,23571,23572,26670,27622,27953,29246,29669,32819,34238,34888,36272,36841,36999,37498,38098,39180,39285,39404],"wāng yóu":[23586],"wāng":[23587,23593,23594,23595,27754],"liào":[23589,23590,24278,25730,26009,28819,31415,37904,38243],"méng máng lóng páng":[23592],"gà":[23596,39744],"kuì kuǐ":[23599],"tuí":[23605,24346,31336,34312,36458,38564,38969,38970,38973,39059,39755],"yǐn":[23609,23998,24341,26372,27267,27324,27389,28158,28645,30270,30318,31884,34335,34451,34750,35732,36218,36251,36625,37391,38775],"chǐ chě":[23610],"kāo":[23611,39643],"jìn jǐn":[23613],"wěi yǐ":[23614],"niào suī":[23615],"céng":[23618,23652,23954,39507],"diǎo":[23628],"bīng píng bǐng":[23631],uu:[23639,26338,32833,34418,34634,38375],"lòu":[23642,28431,30232,30266,30267,37860,38210,38475],"shǔ zhǔ":[23646,23660],"xiè tì":[23647],"chè cǎo":[23662],"tún zhūn":[23663],"nì jǐ":[23664],"hóng lóng":[23672],"qǐ kǎi":[23682,35912],"áng":[23687,26114,26171],"gǎng gāng":[23703,23831],"kě":[23714,25956,28167,28212,28835],"gǒu":[23715,29399,29629,31537,32775,32776,32777,33503,35967],"tiáo":[23719,23737,27172,31058,31524,33408,33812,34010,34024,34601,36834,37594,37797,38807,39659,39880,39991,40102,40800,40838],"qū jū":[23720],"lǐng":[23725,23994,38936,39046],"pò":[23734,25920,27942,28240,28894,29632,30772,30774,31893,33962,39748],"bā kè":[23751],"luò":[23752,25694,27931,27932,29334,29662,31551,32409,33638,35451,38610,39409,39558,40261],"fù niè":[23754],"ěn":[23758],"zhì shì":[23769,23867],"qiǎ":[23776,36306,37216,38800],"qiáo jiào":[23780,30276],"xié yé":[23787],"bū":[23788,24239,26209,35495,36875,37437,37691,38072,39188,40271],"chóng":[23815,23816,29214,34411,34665,34802,35080,38528],"zú cuì":[23826,26890],"líng léng":[23834],"dòng dōng":[23840],"xiáo":[23844,27944,28102,35364,35509],"pí bǐ":[23845,33432],"zhǎn chán":[23853,23939,23940],"wǎi wēi":[23860],"yáng dàng":[23861],"shì dié":[23868],"yào":[23870,26332,29070,29183,30661,31358,31380,31556,32768,33374,33647,33903,34220,34277,34958,35230,35407,35729,38783,40386,40542,40764],"kān zhàn":[23873],"hán dǎng":[23877],"qiàn kàn":[23884],"wù máo":[23885],"kě jié":[23889,23985],"wēi wěi":[23892],"kē":[23897,26607,26869,27068,27158,29249,29297,29328,29634,30132,30604,30933,31002,31185,31262,31392,33834,34198,34485,34636,36279,36722,37272,37427,38070,38950,38982,39063,39617],"dàng táng":[23907],"róng yíng":[23908,29187],"ái kǎi":[23910],"kāo qiāo":[23914],"cuó":[23919,23923,30180,30700,33963,34070,34392,40570,40574],"qiǎn qīn":[23920],"dì dié":[23933],"cēn":[23934],"dǐng":[23935,33404,34209,37924,38914,39030,40718,40721],"áo ào":[23941],"pǐ pèi":[23951],"jiào qiáo":[23968,28496],"jué guì":[23969,40156],"zhān shàn":[23974,40163],"xiè jiè":[23984],"guī xī juàn":[23986],"rū":[23999],"lì liè":[24001,26841,29188,32159],"xī guī juàn":[24002],"yíng hōng":[24006],"yǐng":[24010,24302,24433,25708,26796,28481,30271,30317,30696,31310,37090,37915,38964,39053,39061,39062],"chǎo":[24016,28818,29052,30503,40616],"cuán":[24017,27349,27409],"chuān":[24027,24029,27674,29775,31359],"jīng xíng":[24032],"cháo":[24034,24035,26177,28421,28526,29258,31410,32634,35647,36680,37147,40716],"qiǎo":[24039,24832,39644],"gǒng":[24041,24318,25329,25330,26673,27742,29657,36609,38799],"chà chā chāi cī":[24046],"xiàng hàng":[24055],"shuài":[24069,24101,34752],"pà":[24074,24085,24597,34969],"tǎng nú":[24081],"mò wà":[24083],"tiē tiě tiè":[24086],"zhǒu":[24090,26221,30107,30573,31634,32920,33783,39902],"juǎn juàn":[24099],"shuì":[24104,28055,28058,30561,31237,31246,35038],"chóu dào":[24113,24172],"jiǎn jiān sàn":[24116],"shà qiè":[24121],"qí jì":[24122,33632],"shān qiāo shēn":[24147],"zhuàng chuáng":[24162],"chān chàn":[24168],"miè":[24173,25073,25635,28357,28781,28885,31011,31742,34065,34190,34843,34890,37974,40052,40211],"gān gàn":[24178],"bìng bīng":[24182,24183],"jī jǐ":[24190],"guǎng ān":[24191],"guǎng":[24195,24291,29367,29559],me:[24197],"dùn tún":[24201],"bài tīng":[24205],"yìng yīng":[24212],"dǐ de":[24213],"dù duó":[24230],"máng méng páng":[24236],"bìng píng":[24240],"chěng":[24241,24732,30536,36894,39425,39563],"jī cuò":[24244],"qǐng":[24252,24270,27326,28416,33496,35531,35622,35831,38915,39031],"guī wěi huì":[24262],"jǐn qín":[24273],"kuò":[24275,25193,25313,25844,28662,31560,33855,33856,34526,38346,38420,38697,38815,38841,38869,38946,39712],"qiáng sè":[24295,34196],"yǐn yìn":[24308,38544,38560,38577,39150,39154,39278],"pò pǎi":[24313,36843],"nòng lòng":[24324],"dì tì tuí":[24351],"jué zhāng":[24353],"mí mǐ":[24357,24396,38753],"chāo":[24360,24586,25220,27433,35372,36229,37396,38046],yi:[24364],"shāo":[24368,26067,28903,28988,29138,31602,33348,33847,34161,36622,39678,39865],"xuān yuān":[24370],"qiáng qiǎng jiàng":[24375,24378],"tán dàn":[24377,37256],"biè":[24390],"qiáng jiàng qiǎng":[24394],"jì xuě":[24400],"tuàn":[24406,35094],"yuē":[24415,26352,26353,30705],"shān xiǎn":[24417],"wén":[24419,25991,28806,29683,30226,32359,32862,33440,34441,34442,34721,34753,38330,38335,38341,38374,38395,38412,38639,39356,39367,39792,40188,40205,40740],"péng bāng":[24429],"piāo piào":[24431],"zhuó bó":[24436],"tuǒ yí":[24437],"páng fǎng":[24439],"wǎng":[24442,24448,24451,24792,26505,26850,32178,32593,32594,32595,32596,32598,33781,34535,34628,35511,36638,36747,39757],"cú":[24450,27522],"dài dāi":[24453],"huái":[24458,24576,25040,25079,27088,28142,32818,34361,35106,35121,36381],"wā wàng jiā":[24461],"chěng zhèng":[24462],"dé děi de":[24471],"cóng zòng":[24478],"shì tǐ":[24485],"tí chí":[24498,40343,40345],"dé":[24499,24503,24692,24755,24810,28098,37696,38173],"zhǐ zhēng":[24500,24501],"bié":[24502,30335,33666,34498,35154,36457],"chōng zhǒng":[24504],"jiǎo jiào":[24508,31493,31562],"lòng lǒng":[24511],"qú jù":[24514,28192,30655,34742],"dìng tìng":[24522],"gǎi":[24523,25913],"rěn":[24525,26656,26659,31225,31252,32155,33615,33653,36533],"chàn":[24527,25076,25082,30815,32700,38850,39019],"tè":[24529,24925,29305,34776,37617,38141],"tè tēi tuī":[24530],"gān hàn":[24531,25916],"yì qì":[24532],"tài shì":[24533],"xī liě":[24538],"yīng yìng":[24540,25033,35661],"mǐn wěn mín":[24542,24543],"sōng zhōng":[24554],"yù shū":[24556,24710],"qí shì":[24559,32774],"tún zhūn dùn":[24563],"qián qín":[24564,25202],"hún":[24566,27985,28222,39195,39300,39746,40754],"niǔ":[24568,25197,28804,29379,32016,32445,33701,37397,38062,38773],"kuáng wǎng":[24569],"kāng hàng":[24572],"kài xì":[24574,24894],"òu":[24580,24938],"bǎo bào":[24585],"mín mén":[24587],"zuò zhà":[24589],"zěn":[24590],"yàng":[24591,24665,26679,27096,27171,28478,32661,35399],"kòu jù":[24592],"náo niú":[24595],"zhēng zhèng":[24596,25497,38066,38126],"tiē zhān":[24599],"hù gù":[24600],"cū jù zū":[24602],"sī sāi":[24605],"yóu chóu":[24606],"tū dié":[24610],"yōu yào":[24622],"xuàn":[24624,26145,26982,27883,28210,28843,29700,30505,30905,32098,32316,32335,32474,34073,34898,34984,36121,37449,37831,38089,38239,39092],"xù xuè":[24628],"bì pī":[24630],"xī shù":[24632],"nèn nín":[24641],"tiāo yáo":[24652],"xī qī xù":[24659],"xiào jiǎo":[24660],"hū kuā":[24663],"nǜ":[24679,26386,34882,34884],"hèn":[24680],"dòng tōng":[24683],"quán zhuān":[24686],"è wù ě wū":[24694,24801],"tòng":[24696,24927,24965,30171,34901],"yuān juàn":[24705],"qiāo qiǎo":[24708],"jiè kè":[24712],"hào jiào":[24718],"huǐ":[24724,27283,27584,27585,27591,29164,35693],"mán mèn":[24727,38804],"yī yì":[24728,34915],"quān":[24731,31646,37897],"kuī lǐ":[24733],"yì niàn":[24741],"mèn mēn":[24758],"guàn":[24761,24762,24815,24931,25532,25692,27148,27423,27892,28075,28485,28748,29215,29912,30437,31030,31100,32582,32592,36011,36143,36480,36966,37830,38005,40057,40475,40563],"kōng kǒng":[24766],"lǔn lùn":[24768],"guǒ":[24776,26524,26881,27112,31935,32182,33747,34622,35065,35073,36640,39196,39299],"yuān wǎn":[24780,31650],"lán lín":[24783],"yù xù":[24784,28130],"chuò chuì":[24793],"hūn mèn":[24795],"chǎng tǎng":[24797],"suǒ ruǐ":[24802],"cǎn":[24808,24920,25007,40682,40690],"cán":[24813,24921,24922,27531,27544,34453,34629,34870,34874],"dàn dá":[24814,24986],"rě":[24825],"yú tōu":[24841],"kài qì":[24850],"dàng táng shāng yáng":[24851],"chén xìn dān":[24854],"kè qià":[24856],"nuò":[24862,25062,25063,25535,25638,27026,31276,31332,31953,31973,31983,35582,35834,36419,36925,37737,38168],"gǎn":[24863,25792,25954,26751,27204,28553,28600,30383,31174,31240,31540,33417,34918,36214,36245,40036,40161],"còng sōng":[24865],"sāi sī sǐ":[24866],"gōng gòng hǒng":[24873,24912],"shuò sù":[24876,27948],"yáo yào":[24878],"huàng":[24880,26306,27045,28361,30365,30377,37796],"zhěng":[24888,25229,25327,25972,26232],"cǎo":[24890,33400,33609,39474],"xì xié":[24896],"cǎo sāo":[24901],"xù chù":[24905],"qiè qiàn":[24906],"cáo cóng":[24914],"ào áo":[24928],"lián liǎn":[24937,26815,27108,27363],"jìn qín jǐn":[24940],"dì chì":[24952],"zhí zhé":[24953],"lóu lǚ":[24954,40412],"còng":[24961,35621],"zhī zhì":[24964,30693,32340,32455],"chēng":[24966,25690,25744,25745,26239,26621,26854,27221,27273,27871,28030,29732,30624,30848,32253,32585,34511,34806,36202,36204,37887,37923,38455,38743,38963,39251],"biē":[24971,34380,40009,40150,40712,40862],"chéng dèng zhèng":[24981],"xǐ xī":[24984],"duì dùn tūn":[24990],"xiāo jiāo":[24994],"xián xiàn":[25002],"liáo liǎo":[25005,29134,29198,29202],"shéng":[25012,32260,32329,32361,32499,35677],"náo nǎo náng":[25017],"jǐng jìng":[25020],"jǐ jiǎo":[25023],"xuān huān":[25025],"cǎo sāo sào":[25030],"mèn":[25041,25059,26282,28950,29148],"mèng méng měng":[25052],"ài yì nǐ":[25053],"méng měng":[25054,30626,30674],"qí jī jì":[25056],"mǒ":[25057],"lán xiàn":[25058],"yōu yǒu":[25070],"liú liǔ":[25072,34288],"ràng":[25081,35698,35731,35753],"huān":[25085,27426,27475,27489,29566,35737,35995,37188,39529,40197,40269],"nǎn":[25089,25543,28275,29045,33129,34683,36199],"mí mó":[25090],"gàng zhuàng":[25093,25094],"zhuàng gàng":[25095],"qu xū":[25100],"xì hū":[25103,25135,25138],"jiá gā":[25115],"zéi":[25117,34824,36042,36156,39938,40033,40087],"děng":[25125,31561],"hū xì":[25137],"chuō":[25139,36372,36916],"biǎn piān":[25153],"shǎng jiōng":[25156],"shàn shān":[25159],"cái":[25165,26448,32404,35009,36001,36130],"zhā zā zhá":[25166],"lè lì cái":[25168],"bā pá":[25170],"dǎ dá":[25171],"rēng":[25172],"fǎn fú":[25173],"diǎo dí yuē lì":[25178],"káng gāng":[25179],"yū wū":[25180],"yū wū kū":[25181],"tuō chǐ yǐ":[25185],"gǔ jié xì gē":[25186],"dèn":[25189,25213],"sǎo sào":[25195,25475],"rǎo":[25200,25854,38562],"xī chā qì":[25201],"bān pān":[25203],"bā ào":[25207],"xī zhé":[25208],"zhì sǔn kǎn":[25211],"zhǎo":[25214,27836,29813],"kuáng wǎng zài":[25218],"hú gǔ":[25223,40516,40536],"bǎ bà":[25226],"dǎn shěn":[25228],"nè nì ruì nà":[25232],"zhuā":[25235,27291,31803,33212,39677],"póu":[25236,35026],"zhé shé zhē":[25240],"póu pōu fū":[25241,25418],"pāo":[25243,25291,33068,33826],"ǎo ào niù":[25245],"lūn lún":[25249,25476],"qiǎng qiāng chēng":[25250],"zhǐ zhǎi":[25255],"bù pū":[25258,26600],"yǎo tāo":[25261],"hē hè qiā":[25266],"nǐ ní":[25267],"pī pēi":[25271],"mǒ mò mā":[25273],"chōu":[25277,29352,29355,30259,31704],"jiā yá":[25281],"fú bì":[25282,30032,40349],"zhǎ":[25283,30504,30751,39866,40093],"dān dàn dǎn":[25285],"chāi cā":[25286],"niān":[25288,34091],"lā lá lǎ là":[25289],"bàn pàn":[25292],"pāi":[25293],"līn":[25294],"guǎi":[25296,26548,26618],"tuò tà zhí":[25299],"ào ǎo niù":[25303],"jū gōu":[25304],"pīn pàn fān":[25306],"bài bái":[25308],"bài":[25309,25943,31255,31930,34221,36097,36133,38875],"qiá":[25316],"nǐng níng nìng":[25319],"zé zhái":[25321,25799],"hén":[25323,30165,38798],"kuò guā":[25324],"jié jiá":[25326],"nǐn":[25328],"shuān":[25332,26643,38274,38377],"cún zùn":[25333],"zā zǎn":[25334,26714],"kǎo":[25335,25911,26674,28900,32771],"yí chǐ hài":[25336],"cè sè chuò":[25338],"zhuài zhuāi yè":[25341],"shí shè":[25342],"bāi":[25344,25520],"kuò guāng":[25348],"nòng":[25354,25397,40776],"jiào jiāo":[25357,25934,25945],"kuà kū":[25358],"ná rú":[25360],"tiāo tiǎo":[25361],"dié shè":[25365],"liě":[25368,27615],"yà yǎ":[25372,25495],"wō zhuā":[25373],"xié jiā":[25375,25406],"dǎng dàng":[25377,25803],"zhèng zhēng":[25379,27491,30151],"āi ái":[25384],"tuō shuì":[25385,25437],"tǐ tì":[25390],"suō shā":[25393],"sā shā suō":[25394],"kēng qiān":[25395,25724],"bàng péng":[25399],"ruó ruá":[25404],"jiǎo kù":[25409],"wǔ wú":[25410],"tǒng":[25413,26742,31570,31593,32113,32130,32479],"huò chì":[25415],"tú shū chá":[25416],"lǚ luō":[25419],"shāo shào":[25422,31245],"niē":[25423,25553],"shù sǒng sōu":[25426],"yé yú":[25427],"jué zhuó":[25428],"bù pú zhì":[25431],"zùn":[25432,37516],"lāo":[25438,25736,31913],"sǔn":[25439,25613,27051,31499,31565,31664,37800,38588],"wàn wǎn wān yù":[25445],"pěng":[25447,28110,30351],"shě":[25448],"fǔ fù bǔ":[25452],"dáo":[25455],"luò luǒ wǒ":[25456],"juǎn quán":[25458],"chēn tiǎn":[25461],"niǎn niē":[25467],"ruó wěi ré":[25468],"zuó":[25469,26152,31208,31251,31600,33675,37436],"wò xiá":[25470],"qìng qiàn":[25477],"póu pǒu":[25482],"qiā":[25488,33884],"pái pǎi":[25490],"qiān wàn":[25492],"yè yē":[25494],"niè nǐ yì":[25500],"huò xù":[25501],"yàn shàn yǎn":[25502],"zhěng dìng":[25503],"kòng":[25511,38810],"tuī":[25512,34039,34284],"zōu zhōu chōu":[25515],"tiàn":[25517,33306],"kèn":[25519,35017,35075],"pá":[25521,26487,28502,29228,29750,31586],"guó guāi":[25524],"dǎn shàn":[25528,25763],"chān xiān càn shǎn":[25530],"sāo":[25531,25620,28318,32325,32555,34726,39442,39479,39968,40034,40139],"pèng":[25533,26922,27120,30896,36395],"zhēng kēng":[25537],"jiū yóu":[25538],"jiān jiǎn":[25539,31835],"pì chè":[25546],"sāi zǒng cāi":[25548],"tí dī dǐ":[25552],"zǒng sōng":[25556],"huáng yóng":[25560],"zǎn zuàn":[25565],"xū jū":[25567],"ké qiā":[25570],"chuāi chuǎi chuài tuán zhuī":[25571],"dì tì":[25573],"lá là":[25574],"là":[25575,26955,28290,29902,30220,32715,33240,34635,34674,34847,36770,36771,37982,38260,39694,39931],"jiē qì":[25581],"chòng dǒng":[25584],"dié shé yè":[25586],"jiàn qián jiǎn":[25589],"yé":[25590,29239,29242,29784,37603,37761,38104],"chān":[25600,25723,25881,35047,35164,35224,35271,36799,37587],"gē gé":[25601,25841],"lǒu lōu":[25602,25695],"chōu zǒu":[25610],"chuāi":[25611],"sūn":[25614,27074,29426,29499,33642,33984,34165,34206,39143,39153],"róng náng nǎng":[25617],"péng bàng":[25618],"cuō":[25619,29811,30923,36425,36979,37277],"kē è":[25621],"nù nuò nòu":[25625],"lā xié xiàn":[25626],"qiǔ":[25629,31959],"xiǎn xiān":[25631],"jié zhé":[25641],"pán bān pó":[25643],"bān":[25644,25917,26001,26002,29677,30242,30285,32934,34689,34700,35113,36780,38930,39041],"zhì nái":[25649],"wā wǎ wà":[25650],"huá":[25651,25782,28369,29502,34128,34710,35649,37877,38119,39498,39557,40424],"qiāng qiǎng chēng":[25654],"tián shēn":[25655],"ná nuò":[25659],"èn":[25665],"shè niè":[25668,25885],"bìn":[25672,25839,27553,27567,33169,33231,39628,39637,39657,39682,39699,39714],"shā sà shǎi":[25675],"chǎn sùn":[25676],"jiū liú liáo jiǎo náo":[25678],"féng pěng":[25683],"shuāi":[25684],"dì tú zhí":[25685],"qì jì chá":[25686],"sōu sǒng":[25687],"liǎn liàn":[25689],"gài xì":[25697],"hù chū":[25698],"tàng":[25701,28907,29145,37899],"nái zhì":[25704],"mó mā":[25705],"jiāng qiàng":[25706],"áo qiáo":[25710],"niè chè":[25712],"mán màn":[25713],"chàn cán":[25714],"sè mí sù":[25717],"biāo biào":[25725],"juē jué":[25733],"piē":[25734,26300,27669,30629],"piě piē":[25735],"zǎn zān zēn qián":[25741],"sā sǎ":[25746],"hòng":[25748,35340,35751,38336,39720],"héng guàng":[25751],"niǎn":[25754,25781,25862,28042,28990,30910,31760,36429,36456,36494,36646,36743],"chéng zhěng":[25756],"huī wéi":[25757],"cāo":[25761,25805,31961],"xiāo sōu":[25768],"liáo liāo":[25769],"cuō zuǒ":[25774],"wěi tuǒ":[25777],"cuān":[25786,25883,27718,36479,36517,38009,38249],"qiào yāo jī":[25789],"zhuā wō":[25790],"lèi léi":[25794],"nǎng":[25795,25902,26345,28770],"qíng jǐng":[25807],"kuǎi":[25811,33967],"pǐ bò":[25815],"bò bāi":[25816],"jù jǐ":[25818],"mēng":[25821],"sǒu sòu":[25822],"xǐng":[25828,31669,37266],"cā":[25830],"níng nǐng nìng":[25840],"zhì jié":[25843],"là liè":[25848,29193],"sòu sǒu":[25851],"lì luò yuè":[25853],"tī zhāi zhì":[25855],"pān":[25856,28504,30469,33824],"lèi":[25858,27882,28057,28122,31159,31867,32391,34353,37241,37511,37649,38939,38954,39006,39075],"cā sǎ":[25859],"jùn pèi":[25864],"lì luò":[25866,36498],"là lài":[25867,27380],"lú luó":[25870],"zǎn cuán":[25874],"xiān jiān":[25877],"mí mǐ mó":[25888],"zǎn cuán zàn zuān":[25890],"zuàn":[25893],"lì shài":[25894],"lì luǒ":[25901],"guǐ guì":[25905],"jī qī yǐ":[25906],"fàng":[25918],"wù móu":[25924],"chù shōu":[25930],"gé guó è":[25931],"duó duì":[25939,25946],"duō què":[25952,25962],"sàn sǎn":[25955],"dūn duì":[25958,38246],"qī yǐ jī":[25959],"xiào xué":[25961],"shù shǔ shuò":[25968,25976],"ái zhú":[25969,25971],"xiòng xuàn":[25979],"zhuó zhú":[25984],"yì dù":[25985],"lí tái":[25988],"fěi fēi":[26e3],"yǔ zhōng":[26004],"dòu dǒu":[26007],"wò guǎn":[26017],"tǒu tiǎo":[26018],"dòu":[26019,26794,28002,30168,31398,31431,33072,33651,35910,36887,37078,37208,38295,38360,39190,39294,39717,39718,39722,39724,39725],"yín zhì":[26022],"chǎn jiè":[26042],"wū yū yú":[26044],"yóu liú":[26047],"páng bàng":[26049],"máo mào":[26052],"pī bì":[26055],"xuán xuàn":[26059],"wú mó":[26080],"zǎo":[26089,26531,26630,26839,28577,29866,34235,34299,34468],"gā":[26094],"gàn hàn":[26096],"tái yīng":[26098],"xū xù":[26100],"tūn zhùn":[26109],"wù wǔ":[26111],"pò pèi":[26146],"zòng":[26158,29460,30125,30258,31933,31945,31981,32294],"ǎi":[26169,27600,30702,34108,34297,35690,36535,38701,38724],"huàng huǎng":[26179],"xuǎn":[26181,30307,30316,36873,36984],"xù kuā":[26183],"hǒng":[26190],"shài":[26194,26348],"yūn yùn":[26197,29044],"shèng chéng":[26207,26889,30427],"jǐng yǐng":[26223],"shǎn":[26225,29068,30546,35234,38275,38378,38485,38493],"qǐ dù":[26229],"ǎn àn yǎn":[26235],"wǎng wàng":[26240],"zàn":[26242,26283,29897,29906,29914,31158,35192,35715,35738,36059,36106,36190,36436,37180,37694,37864,39265],"yùn yūn":[26248],"mín mǐn":[26251],"dǔ shǔ":[26255],"shǔ":[26257,26329,28539,30297,31980,32626,34213,34223,34295,34560,34868,35169,35177,40042,40048,40653,40736,40737],"jiǎn lán":[26261],"nuǎn":[26262,29015,39210],"bào pù":[26292],"xī xǐ":[26303],"pù bào":[26333,28689],"qū qǔ":[26354,32054],"gèng gēng":[26356],"hū hù":[26358,38653],"zēng céng":[26365,27239],"céng zēng":[26366,31474],"cǎn qián jiàn":[26369],"qiè hé":[26373],"bì pí":[26375,31110,31507,35048],"yǒu yòu":[26377],"bān fén":[26380,40187],"fú fù":[26381,27921],"fěi kū":[26383,32976],"qú xù chǔn":[26384],"juān zuī":[26392],"huāng máng wáng":[26394],"qī jī":[26399],"tóng chuáng":[26403,27238],"zhá":[26413,29264,31642,34491,35671,37720,38113,38296,38392],"zhú shù shú":[26414],"shù shú zhú":[26415],"zhū shú":[26417],"pǔ pò pō piáo":[26420],"dāo tiáo mù":[26423],"guǐ qiú":[26425],"xiǔ":[26429,28395,28483,31956],"chéng chēng":[26430],"zá":[26434,27823,30776,35149,38609,38620,38629,38900],"yú wū":[26437],"gān gǎn":[26438],"chā chà":[26440],"shān shā":[26441],"cūn":[26449,30388,31476,33189,36358,37032],"rèn ér":[26450,26773],"sháo biāo":[26451],"dì duò":[26453,26532],"gū gài":[26458],"yí zhì lí duò":[26461],"gàng gāng":[26464],"tiáo tiāo":[26465,26781],"mà mǎ":[26473],"sì zhǐ xǐ":[26475],"yuán wán":[26476,34454],"bèi fèi":[26478],"shū duì":[26488],"niǔ chǒu":[26491],"wò yuè":[26498,33234],"máo":[26502,27611,27650,28213,29286,30683,32606,33541,33542,34661,34762,36574,37205,37502,37672,38170,39654,40348],"pī mì":[26504],"àng":[26506,30414,37280],"fāng bìng":[26507],"hù dǐ":[26513],"xín":[26516,35153,37908,39733],"yāo yǎo":[26518],"ě è":[26521],"zhī qí":[26525],"cōng zōng":[26526,27141],"xiān zhēn":[26542],"tái sì":[26545],"gǒu jǔ gōu":[26552],"bāo fú":[26553],"yì xiè":[26555,26663],"tuó duò":[26561,39345,39364,39534],"yí duò lí":[26562],"nǐ chì":[26565],"pán bàn":[26568,36312],"yǎng yàng yāng yīng":[26573],"fù fū fǔ":[26574],"bǎi bó bò":[26575],"mǒu":[26576],"sháo shào":[26582],"zhè":[26584,27164,27993,28123,34071,34757,36889,40403,40551],"yòu yóu":[26586,27390],"guì jǔ":[26588],"zhà zuò":[26590],"dié zhì":[26595,30512],"zhā zǔ zū":[26596],"chá zhā":[26597,26619],"āo ào":[26602,36586],"bā fú pèi bó biē":[26605],"duò zuó wù":[26606],"bì bié":[26610],"zhù chù":[26615],"bēi pēi":[26616],"shì fèi":[26617],"shān zhà shi cè":[26629],"lì yuè":[26638,27359],"qì qiè":[26644,30732],"qī xī":[26646,36426],"guā kuò":[26653],"bīng bēn":[26655],"xiào jiào":[26657],"jiàn zùn":[26667,35e3],"yǒu yù":[26671],"hé hú":[26680],"gēn":[26681,36319],"zhī yì":[26682],"gé gē":[26684],"héng háng":[26689],"guàng guāng":[26692],"yí tí":[26699,33617],"sāng":[26705,26706,27105],"jú jié":[26708],"yú móu":[26713],"ráo náo":[26721,27208],"guì huì":[26727,27292],"chén zhèn":[26733],"tīng yíng":[26735],po:[26738],"bèn fàn":[26739],"fēng fèng":[26747,33873],"sù yìn":[26752],"tǐng tìng":[26755],"xuān juān xié":[26763],"tú chá":[26764],"āo yòu":[26766],"kuǎn":[26785,27445,27454,27456],"shāo sào":[26786],"qín chén cén":[26787],"lí sì qǐ":[26793],"chān yán":[26804],"bīn bīng":[26809,27103,27315],"táo chóu dào":[26812],"cōng sōng":[26823],"gùn hùn":[26829],"dé zhé":[26831],"pái bèi pèi":[26833],"bàng pǒu bèi bēi":[26835],"dì dài tì":[26851],"sēn":[26862,26926,27118,35138],"rěn shěn":[26863],"léng lēng líng":[26865],"fú sù":[26868],"zōu sǒu":[26871],"zōu":[26872,31619,32197,35535,35833,37049,37104,37138,37177,38508,39478,39546,39915,40112,40640,40817,40826],"zhào zhuō":[26873],"chēn shēn":[26877],"jiē qiè":[26884],"yǐ yī":[26885],"chóu zhòu diāo":[26886],"qiāng kōng":[26892],"zhuī chuí":[26894],"bēi pí":[26897],"mēn":[26906],"quān juàn quán":[26918],"duǒ chuán":[26927],"wěi huī":[26930],"jiǎ jiā":[26933],"hán jiān":[26935],"shèn zhēn":[26937],"yàn yà":[26939],"zhā chá":[26946],"guō kuǎ":[26951],"jí zhì":[26966],"kǔ hù":[26971],"yóu yǒu":[26978],"sǒng cōng":[26980],"yuán xuàn":[26981],"yǎng yàng yīng":[26983],"pián":[26985,33020,33089,36038,36417,39394,39432,39560,39615],"dié yè":[26986],"dùn shǔn":[26991],"còu zòu":[26993],"dì dǐ shì":[26996],"kǎi jiē":[26999],"róu ròu":[27002],"lè yuè":[27005],"wēn yùn":[27013,38832],"lǘ":[27016,27354,27648,33186,34264,38317,38398,39522,39540],"shén":[27018,31070,37486,39984],"bī pi":[27020],"zhǎn niǎn zhèn":[27024],"fú fù bó":[27025],"jiàn jìn":[27031],"bǎng bàng":[27036],"shā xiè":[27037,27175],"nòu":[27080,32808,37778,37918],"qiǎn lián xiàn":[27087],"gàng":[27091,28981,28985,31611],"gāo":[27092,27129,27248,27356,30590,31705,31957,32660,33263,38879,39227,39640,39641,40398,40433,40731],"diān zhěn zhēn":[27097],"kǎn jiàn":[27099],"xí dié":[27106],"jī guī":[27107],"róng yōng":[27110],"tuán shuàn quán":[27115],"qì sè":[27117],"cuī zhǐ":[27119],"yǒu chǎo":[27121],"màn wàn":[27134],"lí chī":[27142],"léi lěi":[27151,27345,30988],"cháo jiǎo chāo":[27156],"chēng táng":[27160],"jiū liáo":[27163],"mó mú":[27169],"niǎo mù":[27170],"héng hèng":[27178,27243],"xuě":[27184,33188,33373,36684,38634,40008,40149],"fá fèi":[27203],"rùn":[27213,28070,28516,33206,38287,38304,38384],"zhǎn jiǎn":[27215],"shùn":[27219,30618,30636,33308,34147,38918,39034,39690],"tuí dūn":[27220],"táng chēng":[27222],"sù qiū":[27226],"tán diàn":[27229],"fén fèn fèi":[27240],"rǎn yān":[27242],"cū chu":[27259],"shū qiāo":[27262],"píng bò":[27288],"zhái shì tú":[27297],"biǎo biāo":[27302],"qiān lián":[27318],"nǐ mí":[27319],"jiàn kǎn":[27323],"nòu ruǎn rú":[27325],"jī jì":[27333,31144],"huǎng guǒ gǔ":[27342],"lǜ chū":[27350],"miè mèi":[27351],"ōu":[27353,27431,27472,27572,27590,29935,29964,33170,34290,35635,35764,37826,40206,40407,40485],"zhù zhuó":[27361],"jué jì":[27373],"huái guī":[27376],"chán zhàn":[27395],"wéi zuì":[27400],"cáng":[27404,38006],"yù yì":[27429],"chù qù xì":[27434],"kài ài":[27436],"yì yīn":[27437],"xì kài":[27439],"shuò sòu":[27446],"ǎi ēi éi ěi èi":[27448],"qī yī":[27449],"chuā xū":[27451],"chǐ chuài":[27452],"kǎn qiàn":[27455],"kǎn kè":[27457],"chuǎn chuán":[27458],"yīn yān":[27461],"jìn qūn":[27471],"pēn":[27477],"xū chuā":[27480],"xī shè":[27481],"liǎn hān":[27483],"zhì chí":[27501],"sè shà":[27504],"sǐ":[27515],"wěn mò":[27518],"piǎo":[27533,30379,30623,37285,39008],"qíng jìng":[27537],"fǒu bó":[27541],"zhí shi":[27542],"yè yān yàn":[27543],"hūn mèi":[27545],"chòu":[27552,33264,36954],"kuì huì":[27560,28291,28528],"cuàn":[27561,29110,29224,31388,31428,31713,31762],"yīn yān yǐn":[27575],"qìng kēng shēng":[27576],"yáo xiáo xiào":[27581],"gū gǔ":[27586,34500],"guàn wān":[27596],"dú dài":[27602],"xún xùn":[27621],"mú":[27626,27649],"dòu nuò":[27629],"sāi suī":[27640],lu:[27655],"sào":[27657,30233,30658,39646],"shì zhī":[27663],"dī dǐ":[27664],"máng méng":[27667],"yáng rì":[27676],"shuǐ":[27700,27701,27706,38294],"zhěng chéng zhèng":[27702],"tǔn":[27709],"fán fàn":[27710],"guǐ jiǔ":[27711],"bīn pà pā":[27715],"zhuó què":[27723],"dà tài":[27727],"pìn":[27734,29277,32856],"hàn hán":[27735,39343],tu:[27746],"tāng shāng":[27748,28271],"zhī jì":[27749],"gàn hán cén":[27765],"wèn mén":[27766],"fāng pāng":[27768],"hǔ huǎng":[27771],"niú yóu":[27772],"hàng":[27782],"shěn chén":[27784],"dùn zhuàn":[27788],"nǜ niǔ":[27793],"méi mò":[27794,27809],"tà dá":[27795],"mì wù":[27797],"hóng pāng":[27799],"shā shà":[27801],"zhuǐ zǐ":[27805],"ōu òu":[27812,28442],"jǔ jù":[27822],"tuō duó":[27824],"mǐ lì":[27829],"yí chí":[27830],"xiè yì":[27844],"bó pō":[27850],"mì bì":[27852,31192],"chù shè":[27855],"yōu yòu āo":[27857],"pēng píng":[27865,30801],"pào pāo":[27873],"ní nì":[27877,31196],"yuè sà":[27879],"jué xuè":[27884,30118],"lóng shuāng":[27895,28711],"luò pō":[27898,28668],"zé shì":[27901,28580],"sǎ xǐ":[27922],"sè qì zì":[27923],"xǐ xiǎn":[27927],"kǎo kào":[27928],"àn yàn è":[27933],"lěi lèi":[27937],"qiè jié":[27951],"qiǎn jiān":[27973],"jì jǐ":[27982,28168,28639,32426],"hǔ xǔ":[27986,28408],"jùn xùn":[27994,28652],"yǐng chéng yíng":[28007],"liàn lì":[28016],"féng hóng":[28018,28292],"jiǒng jiōng":[28027],"suī něi":[28029],"yǒng chōng":[28044],"tūn yūn":[28050],"wō guō":[28065,28198],"hēng":[28069,33053],"zhǎng zhàng":[28072,28466],"shòu tāo":[28077],"shuàn":[28078,33128],"kōng náng":[28083],"wò wǎn yuān":[28084],"tuō tuò":[28086],"wō":[28089,29479,31389,31401,33716,33845,34583,34680,36370],"qiè jí":[28097],"guǒ guàn":[28105],"lín lìn":[28107,29532,30084],"tǎng chǎng":[28108],"nào chuò zhuō":[28118],"péng píng":[28124],"féi":[28125,32933,33107,34608],"pì pèi":[28128],"niǎn shěn":[28144],"biāo hǔ":[28146],"chún zhūn":[28147],"hùn hún":[28151],"qiǎn":[28154,32382,32561,32951,33153,34616,35700,35892,36963,37971],"wèn mín":[28162],"rè ruò luò":[28163],"dú dòu":[28174,28678,35835],"jiàn jiān":[28176,28293,28472,28666],"miǎn shéng":[28177,28576],"nuǎn nuán":[28188],"qiú wù":[28190],"tíng tīng":[28191],"dì tí dī":[28199],"gǎng jiǎng":[28207],"hōng qìng":[28217],"tuān":[28237,29011],"huì mǐn xū":[28239],"xǔ xù":[28241],"pén":[28243,29931,30406,33872],"mǐn hūn":[28259],"tuàn nuǎn":[28266],"qiū jiǎo":[28267,28268],"yān yīn":[28270],"bàn pán":[28276],"zhuāng hún":[28279],"yàn guì":[28302],"lián liǎn nián xián xiàn":[28307],"dá tǎ":[28314],"liū liù":[28316,28561,36435],"lùn":[28323],"mǎ":[28324,29368,29505,29595,29802,30721,30908,36964,37815,39340,39532,39970,40396],"zhēn qín":[28337],"nì niào":[28346],"chù xù":[28352,30044],"wěng wēng":[28355],"hào xuè":[28360],"qì xì xiē":[28362],"xíng yíng":[28366],"zé hào":[28380],"piāo piào piǎo":[28418],"cóng sǒng":[28430],"féng péng":[28456],"luò tà":[28463],"pēng bēn":[28464],"chóng shuāng":[28468],"huǒ kuò huò":[28471],"liáo liú":[28475],"cuǐ cuī":[28476],"cóng zǒng":[28480],"cóng zōng":[28488],"pì piē":[28494],"dàng xiàng":[28498],"huáng guāng":[28514],"liáo lào lǎo":[28518],"cōng zòng":[28520],"zhí zhì":[28522],"tān shàn":[28524],"tú zhā":[28531],"sàn sǎ":[28533],"hēi":[28534,40657,40658],"chéng dèng":[28548,28691],"cūn cún":[28554],"péng pēng":[28558],"hòng gǒng":[28562,37566],"wàn màn":[28587],"kuài huì":[28590],"guō wō":[28612],"pēn fén":[28614],"jí shà":[28616],"huì huò":[28618],"dǐng tìng":[28622],"mǐ nǐ":[28628],"bì pì":[28638],"cuì zuǐ":[28642],"hù huò":[28649],"ǎi kài kè":[28653],"wěi duì":[28667,28706],"zàn cuán":[28669,28754],"yǎng yàng":[28673],"wǎng wāng":[28679],"mò miè":[28686,30492],"suǐ":[28705,33208,39635],"huái wāi":[28708],"zùn jiàn":[28723],"yīng yǐng yìng":[28724],"ráng ràng":[28732],"shuàng":[28736],"zhuó jiào zé":[28738],"sǎ":[28753,35375,38776],"luán luàn":[28755],"dǎng tǎng":[28761],"xún quán quàn":[28773],"huǒ biāo":[28780],"zhà yù":[28793],"fén bèn":[28803],"jiǒng guì":[28805],"pàng fēng":[28816],"quē":[28820,32570,32572,33947],"biān":[28830,29048,29954,30765,31550,31663,31849,32232,32534,34649,37001,37002,37757,38829,39934,39935,40138],"zhāo zhào":[28836],"zhuō chù":[28842],"pào páo bāo":[28846],"páo fǒu":[28848],"shǎn qián shān":[28854],"zhà zhá":[28856],"jiǎo yào":[28868],"quǎn":[28871,29356,29357,30030,32163,32507,34375],"yàng yáng":[28874],"lào luò":[28889],"huí huǐ":[28896],"rè":[28909,29105],"fú páo":[28912],"xiè chè":[28914,28942],"yàn shān":[28923],"hūn xūn":[28932],"kào":[28933,29330,37548,38096,38752,39859,39884,40083],"juān yè":[28934],"jùn qū":[28940],"tāo dào":[28952],"chǎo jù":[28963],"wò ài":[28965],"zǒng cōng":[28967],"xī yì":[28972],"xìn xīn":[28974],"chāo zhuō":[28975],"xiǒng yīng":[28984,28989],"kuǐ":[28995,36332,36446,38925],"huī yùn xūn":[28999],"jiǎo qiāo":[29005],"qián shǎn shān":[29012],"xī yí":[29013],"shà shā":[29022],"yè zhá":[29024],"yáng yàng":[29036],"ēn yūn":[29054],"yūn yǔn":[29061],"hè xiāo":[29063],"xióng":[29066,29067,38596],"xūn xùn":[29071,29195],"gòng":[29077,36002,36129],"liū":[29080],"cōng zǒng":[29084],"lù āo":[29085],"shú shóu":[29087],"fēng péng":[29090],"cuǐ suī":[29091],"tēng":[29093,33199,40735],"yùn yù":[29096],"áo āo":[29100],"hàn rǎn":[29103],"ōu ǒu":[29104],"huáng huǎng":[29119],"chǎn dǎn chàn":[29120],"jiāo zhuó qiáo jué":[29131],"yàn yān":[29141],"tài liè":[29156],"āo":[29194],"yàn xún":[29203],"jué jiào":[29213,35216,35226,35258,35273],"lǎn làn":[29222],"zhuǎ zhǎo":[29226],"zhǎo zhuǎ":[29227],"fù fǔ":[29238],"diē":[29241,35130,36300],"zāng":[29250,32664,33255,36045,36056,36115,36124,36163,39634],"piàn piān":[29255],"biān miàn":[29265],"bǎng":[29267,32129,32465],"yǒu yōng":[29271],"chēng chèng":[29274,31424],"niú":[29275,29276],"jiū lè":[29278],"mù móu":[29279],"māng":[29284],"gē qiú":[29291],"yòu chōu":[29296],"tè zhí":[29318],"bēn":[29319,37659,38171],"jiān qián":[29325,29610],"má":[29336,30194,34100,34759,40635],"máo lí":[29339],"bá quǎn":[29358],"zhuó bào":[29363],"àn hān":[29364],"kàng gǎng":[29370],"pèi fèi":[29371],"fān huān":[29375],"kuáng":[29378,29381,35473,35827,36566,36576,40287],"yí quán chí":[29387],"xīng shēng":[29388],"tuó yí":[29391],"kǔ":[29404,33510],"huán huān":[29407],"hé mò":[29410],"tà shì":[29415],"máng dòu":[29429],"xī shǐ":[29430],"suān":[29435,30176,37240],"bài pí":[29448],"jiān yàn":[29455,35939],"yī yǐ":[29463],"yá wèi":[29466],"cāi":[29468],"māo máo":[29483,35987],"chuàn chuān":[29485],"tuān tuàn":[29487,35986],"yà jiá qiè":[29488],"hè xiē gé hài":[29490],"biān piàn":[29493,29553],"bó pò":[29500],"háo gāo":[29515],"fén fèn":[29526],"yào xiāo":[29535],"shuò xī":[29537],"gé liè xiē":[29542],"nòu rú":[29555],"náo nǎo yōu":[29558],"ráng":[29565,29924,31155,31331,31344,34328,36511,39716],"náo yōu":[29567],"lǜ shuài":[29575],"wáng wàng":[29579],"yáng chàng":[29594],"mín wén":[29599],"bīn fēn":[29602],"mén yǔn":[29607],"qiāng cāng":[29617,29810,31724],"án gān":[29621],"xuán xián":[29625],"cī cǐ":[29628,36304],"yí tāi":[29638],"zǔ jù":[29639],"fà":[29648,29754,34143,39658,39662],"yín kèn":[29666],"huī hún":[29682],"xuán qióng":[29697],"fú fū":[29704],"bǐng pín":[29717],"cuì sè":[29719],"yù wéi":[29727],"tiǎn tiàn":[29728],"zhuó zuó":[29730],"běng pěi":[29731],"guǎn":[29743,29869,30191,31590,31649,33304,36648,37671,39208,39302,40164],"hún huī":[29759],"xié jiē":[29774],"chàng dàng yáng":[29778],"tiàn zhèn":[29809],"bīn pián":[29816,29880],"tú shū":[29817],"cuǐ":[29824,30368,36257],"zǎo suǒ":[29829],"jué qióng":[29850],"lú fū":[29879],"jì zī":[29886],"suí":[29901,32143,32485,36928,38543,38568,39620],"mí xǐ":[29909],"qióng wěi wèi":[29911],"huán yè yà":[29915],"bó páo":[29919],"zhí hú":[29921],"piáo":[29922,38365],"wǎ wà":[29926],"xiáng hóng":[29928],"wèng":[29934,29973,32587,34169,40774],"bǎiwǎ":[29944],"shèn shén":[29978],"ruí":[29988,32204,34148],"yòng":[29992,30781,33498,33935,37279],"shuǎi":[29993],"béng":[29997,29998],"yóu zhá":[30004],"diàn tián shèng":[30008],"tǐng dīng":[30010,30012],"zāi zī":[30014],"bì qí":[30017],"dá fú":[30039],"cè jì":[30047],"zāi zī tián":[30048],"zhì chóu shì":[30052],"fān pān":[30056,30058],"shē yú":[30060],"dāng dàng dǎng":[30070],"jiāng qiáng":[30086],"pǐ yǎ shū":[30091],"jié qiè":[30092],"yí nǐ":[30097],"nè":[30098,30514,35365,35767],"gē yì":[30105],"nüè yào":[30111,30247],"lì lài":[30112,30296],"yǎ xiā":[30120],"xuē":[30134,33926,34203,36773,36778,38772,38846],"dǎn da":[30136],"fá biǎn":[30138],"fèi féi":[30143,30193],"shān diàn":[30145],"téng chóng":[30155],"tōng tóng":[30156],"wěi yòu yù":[30159],"tān shǐ":[30161],"pū pù":[30177,37610],"bēng péng":[30189],"má lìn":[30195],"tiǎn diàn":[30198],"ān yè è":[30199],"kē ē":[30206],"zhì chì":[30216],"jiǎ xiá xiā":[30229],"lěi huì":[30243],"chài cuó":[30245],"diān chēn":[30248],"da dá":[30249],"biě biē":[30250],"qué":[30264],"dàn dān":[30281],"guì wēi":[30288],"nòng nóng":[30289],"biē biě":[30303],"bō bǒ":[30327],"bái":[30333],"jí bī":[30336],"de dì dí dī":[30340],"pā bà":[30341],"gāo háo":[30347],"gāo yáo":[30352],"lì luò bō":[30378],"zhā cǔ":[30395],"zhāo zhǎn dǎn":[30397],"jiān jiàn":[30417,30435,37627,38388,38828],"gài gě hé":[30422],"máng wàng":[30451],"yuǎn":[30454,36922,36960],"tián xián":[30455],"xiāng xiàng":[30456],"dǔn":[30457,36280,36489],"xì pǎn":[30459],"shěng xǐng":[30465],"yún hùn":[30467],"miǎn miàn":[30468],"kàn kān":[30475],"yìng yāng yǎng":[30479],"yǎo āo ǎo":[30481],"jū xū kōu":[30487],"yí chì":[30489],"dié tì":[30499],"bǐng fǎng":[30506],"pàng pán":[30507],"mī mí":[30511,30599],"xuàn shùn xún":[30516],"tiào":[30522,31900,31990,35228,36242],"zhe zhuó zháo zhāo":[30528],"qiáo shào xiāo":[30532],"cuó zhuài":[30537],"gùn":[30548,35636],"suì zuì":[30559],"pì bì":[30565,31275,36767],"yì zé gāo":[30570],"xǐng xìng":[30578],"guì wèi kuì":[30598],"kòu jì":[30601],"qióng huán":[30607],"mán mén":[30610,30622],"diāo dōu":[30615],"lou lóu lǘ":[30620],"shùn rún":[30628],"liào liǎo":[30637,38028],"jiàn xián":[30639],"wǔ mí":[30644],"guì kuì":[30646],"nǐng chēng":[30659],"huò yuè":[30662],"mēng méng":[30663],"kuàng guō":[30668],"guàn quán":[30676],"mǎn mán":[30677],"jīn guān qín":[30684],"jīn qín guān":[30685],"yù xù jué":[30686],"jiǎo jiáo":[30699,30703],"duǎn":[30701],"shí dàn":[30707],"gāng qiāng kòng":[30716],"huā xū":[30729],"pīn bīn fēn":[30735],"yán yàn":[30740,30799],"luǒ kē":[30754],"fú fèi":[30761,31536],"zhǔ zhù":[30763],"lá lì lā":[30764],"kuāng guāng":[30788],"gè luò":[30796],"shuò shí":[30805,30889],"wèi wéi ái":[30809],"què kè kù":[30814],"mǎng bàng":[30821],"luò lòng":[30822],"yǒng tóng":[30823],"nüè":[30840,34384],"kēng kěng":[30843],"yān yǎn":[30845],"zhuì chuí duǒ":[30846],"kōng kòng":[30847],"zòng cóng":[30850],"jiān zhàn":[30858],"lù liù":[30860,38470],"què xī":[30863],"lún lǔn lùn":[30870],"náo gāng":[30873],"jié yà":[30883],"wèi wěi":[30888],"tí dī":[30894],"chá chā":[30900],"qiāo què":[30907],"sù xiè":[30911],"liú liù":[30914,36955,37798,39311],"sī tí":[30915],"bàng páng":[30917],"huá kě gū":[30918],"wěi kuǐ":[30920],"xiá qià yà":[30925],"lián qiān":[30927],"wèi ái gài":[30929],"lá lā":[30934],"áo qiāo":[30941],"pēng pèng":[30942,38299],"yīn yǐn":[30948],"lěi léi":[30949],"mó mò":[30952],"qì zhú":[30953],"láo luò":[30961],"pán bō":[30971],"jí shé":[30972],"hé qiāo qiào":[30985],"kè huò":[30986],"què hú":[30992],"è qì":[31e3],"cǎ":[31012,31032],"xián xín":[31013],"léi lěi lèi":[31015],"yán yǎn":[31033],"qí zhǐ":[31047,34452],"bēng fāng":[31050],"bì mì":[31061],"suàn":[31064,31495,31597,31639,33948],"piào piāo":[31080],"jì zhài":[31085],"shuì lèi":[31089],"jìn jīn":[31105],"chán shàn":[31109],"yáng shāng":[31123],"zhī zhǐ tí":[31124],"shàn chán":[31146],"yú yù ǒu":[31162],"zǐ zì":[31172],"chá ná":[31173],"zhòng zhǒng chóng":[31181],"hào mào":[31183],"kù kū":[31193],"zū":[31199,33861],"chèng":[31204,31338],"huó kuò":[31214,31219],"chēng chèn chèng":[31216,31281],"shì zhì":[31218,37556],"fù pū":[31231],"xùn zè":[31236],"tú shǔ":[31244],"zhùn zhǔn":[31253],"jī qí":[31256,32168,35309],"léng líng":[31260],"zuì zú sū":[31265],"xì qiè":[31271,37060],"zhǒng zhòng":[31278],"zōng zǒng":[31279],"xián jiān liàn":[31284],"zī jiū":[31285],"jī qǐ":[31293],"ròng":[31299],"shān cǎn cēn":[31303],"mén méi":[31304],"jǐ jì":[31318],"xiāo rào":[31320],"zhuō bó":[31323],"tóng zhǒng zhòng":[31324],"zuō":[31325],"biāo pāo":[31342,34280],"zhuō jué":[31345],"cuán zàn":[31347],"kōng kòng kǒng":[31354],"yū yǔ":[31355],"zhǎi":[31364,37465],"báo":[31367,38649],"kū zhú":[31371],"jiào liáo liù":[31372],"wā guī":[31376],"tiǎo yáo":[31381],"xūn yìn":[31400],"yà yē":[31403],"tián diān yǎn":[31412],"chāo kē":[31420],"kuǎn cuàn":[31421,31422],"chù qì":[31440],"qǔ kǒu":[31448],"jìng zhěn":[31463],"kǎn kàn":[31479],"zhú dǔ":[31482],"lè jīn":[31483],"zhuì ruì":[31501],"háng hàng":[31504],"cén jìn hán":[31506],"dā xiá nà":[31514],"zé zuó":[31534],"lóng lǒng":[31548,31725,31840,36504,40851],"zhù zhú":[31569,31689],"dá dā":[31572,33605],"shāi":[31579,31721,31745,31853],"yún jūn":[31584],"láng làng":[31588,37070,38406],"zhì zhǐ":[31595],o:[31613],"póu bù fú pú":[31617],"pái bēi":[31620],"gè":[31623,34428,37499,38124],"tái chí":[31624],"guǎi dài":[31625],"zhào dào":[31628],"jīng qìng":[31632],"lín lǐn":[31638],"jùn qūn":[31640],"shī yí":[31671,37366],"yuē yào chuò":[31673],"xiāo shuò qiào":[31678],"gōng gǎn lǒng":[31714],"páng péng":[31715],"zhuó huò":[31719],"jiǎn jiān":[31727],"dí zhú":[31732],"zān cēn cǎn":[31736],"zhuàn suǎn zuàn":[31737],"piǎo biāo":[31739],"guó guì":[31746],"cè jí":[31758],"mì miè":[31770],"shāi sī":[31771],"sǔn zhuàn":[31784],"gàn gǎn":[31795],"bò bǒ":[31800],"bó bù":[31807],shi:[31810],"zhēn jiān":[31816],"zhuàn zuǎn":[31825],"fān pān biān":[31827],"sǒu shǔ":[31828],"zuǎn":[31851,32356,32386,32393,32408,32565],"nǚ":[31865,37369,38037],"shā chǎo":[31878],"kāng jīng":[31879],"fěn":[31881,40698],"cū":[31895,35285,40577,40580,40612],"nián zhān":[31896],"cè sè":[31907],"zhōu yù":[31909],"shēn sǎn":[31937],"biān biǎn":[31940,33849],"miàn":[31942,38754,38755,40618,40619,40629,40634],"hú hū hù":[31946],"gǔ gòu":[31955],"mí méi":[31964],"sǎn shēn":[31965,31971],"zāo":[31967,36455,36973,37289],"mì sī":[31992],"jiū jiǔ":[31994],"xì jì":[31995,32363],"zhēng zhěng":[31997],"chà chǎ":[32001,34921],"yuē yāo":[32004,32422],"hóng gōng":[32005,32418],"hé gē":[32007,32421],"wén wèn":[32011,32441],"fóu":[32017],"jì jié jiè":[32018],"pī pí bǐ":[32021,32432],"jīn jìn":[32031],"zhā zā":[32037,32046],"hā":[32038],"fū fù":[32040],"chōu chóu":[32044],"lèi léi lěi":[32047],"bō bì":[32052],"tiǎn zhěn":[32062],"jiōng jiǒng":[32069],"jié jiē":[32080,32467,33410],"guà kuā":[32083],"bǎi mò":[32084],"gēng huán":[32089],"jié xié":[32092],"quán shuān":[32095],"gǎi ǎi":[32096],"luò lào":[32097,32476],"bīng bēng pēng":[32099],"gěi jǐ":[32102,32473],"tóng tōng dòng":[32103],"tiào diào dào":[32105],"lěi lèi léi":[32107],"gāi hài":[32111],"chī zhǐ":[32122],"wèn miǎn mán wàn":[32123],"huán huàn wàn":[32132],"qīn xiān":[32133],"tì tí":[32136],"yán xiàn":[32150],"zōng zèng zòng":[32156],"chēn lín":[32157],"zhǔn zhùn":[32167],"qiàn qīng zhēng":[32170],"qìng qǐ":[32174],"lún guān":[32184,32438],"chuò chāo":[32189,32496],"tián tǎn chān":[32194],"lǜ lù":[32209,32511],"ruǎn ruàn":[32219],"jí qī":[32221],"zhòng chóng":[32223,37325],"miáo máo":[32226],"xiè yè":[32228],"huǎn":[32233,32531],"gēng gèng":[32234,32262],"tōu xū shū":[32240],"zōng zòng":[32245,32332],"yùn gǔn":[32247],"guā wō":[32250],"yùn yūn wēn":[32252,32277],"bāng bàng":[32269],"gǔ hú":[32270,40379],"cī cuò suǒ":[32274],"cuī shuāi":[32279],"róng rǒng ròng":[32281],"zài zēng":[32289],"cài":[32297,33756,34081],"féng fèng":[32299],"suō sù":[32302,32553],"yǎn yǐn":[32303,37203],"zòng zǒng":[32305,32437],"zhuàn juàn":[32307],"mò mù":[32312,33707],"piǎo piāo":[32313,32549],"fán pó":[32321],"bēng bèng":[32323],"móu miù miào liǎo":[32326],"yáo yóu zhòu":[32327],"zēng zèng":[32338,32559],"jú jué":[32344],"chuō chuò":[32347],"zūn zǔn":[32348],"rào":[32350,32469,36982],"chǎn chán":[32351],"huì huí":[32354,32523,34289],"qiāo sāo zǎo":[32368],"jiǎo zhuó":[32371,32564],"dàn tán chán":[32373],"nǒng":[32375],"pú fú":[32384],"yào lì":[32389],"rǎng xiāng":[32405],"lí sǎ xǐ lǐ":[32410],"xiān qiàn":[32420],"jīng jìng":[32463],"tí tì":[32488],"bēng běng bèng":[32503],"zōng zèng":[32508],"jī qī":[32521],"wēn yùn yūn":[32522],"fèng féng":[32541],"shuāi cuī suī":[32542],"miù móu liáo miào mù":[32554],"qiāo sāo":[32562],"fǒu":[32566,32569,32571,38636,40192],"bà ba pí":[32610,32631],"guà guǎi":[32619],"yáng xiáng":[32650,32655],"měi gāo":[32665],"yì xī":[32667],"qiǎng qiān":[32671],"qiāng kòng":[32683],"qián xián yán":[32684],"nóu":[32698],"hóng gòng":[32702],"pī bì pō":[32717],"qú yù":[32721],"ké":[32727],"qiào qiáo":[32728],"zhái dí":[32735],"dào zhōu":[32738],"hóu qú":[32757],"shuǎ":[32781],"ruǎn nuò":[32782],"ér nài":[32783],"zhuān duān":[32785],"pá bà":[32793],"chí sì":[32795],"qù chú":[32797],"lún lǔn":[32803],"jí jiè":[32804],"tāng tǎng":[32805],"pǎng":[32810,35243],"zhá zé":[32811],"yē yé":[32822],"yún yíng":[32826],"wà tuǐ zhuó":[32841],"ér nǜ":[32847],"tiē zhé":[32849],"dǐ zhì":[32860],"qié":[32890],"nǐ jiàn":[32891],"lèi lē":[32907],"cào":[32911,35161,37173,40732],"bó dí":[32913],"xiào xiāo":[32918],"dù dǔ":[32922],"chāi":[32926,37365,38039],"hán qín hàn":[32931],"pàng pán pàn":[32936,32982],"zhūn chún":[32939],"āng":[32942,39599],"yù yō":[32946],"pí bǐ bì":[32950],"fèi bì":[32967],"bèi bēi":[32972],"fèi zǐ":[32975],"píng pēng":[32979,33529],"fū fú zhǒu":[32981],"shèng shēng":[32988],"kuà":[33007,36328,39611],"gǎi hǎi":[33010],"gē gé gā":[33011],"néng nài":[33021],"guī kuì":[33023],"mài mò":[33033],"zāng zàng":[33039],"jiǎo jué":[33050,35282],"cuǒ":[33054],"de te":[33062],"zuī juān":[33063],"něi":[33070,33095,39186,39297,39870,39896],"pú fǔ":[33071],"niào":[33074],"shuí":[33085],"guò":[33090,36942,37945],"là xī":[33098],"yān ā":[33100],"gāo gào":[33167],"lù biāo":[33172],"chuái":[33175],"zhuān chuán chún zhuǎn":[33182],"chuài":[33194,36409],"fán pán":[33200],"wǔ hū":[33204],"shān dàn":[33211],"tún":[33216,33227,34508,35928,35930,36568,38677,39145,39272,39784,40064,40663],"bì bei":[33218],"là gé":[33224],"sào sāo":[33226],"nào":[33233,38297,38393,39719],"ní luán":[33249],"qiān xián":[33252],"guàng jiǒng":[33254],"guǎng jiǒng":[33257],"chòu xiù":[33261],"mián biān":[33265],"dié zhí":[33271],"zhī jìn":[33272],"shè shě":[33293],"pù":[33302,33303],"bān bō pán":[33324],"kuā":[33343],"gèn gěn":[33390],"sè shǎi":[33394],"fú bó":[33396],"jiāo qiú":[33405],"chāi chā":[33414],"sháo què":[33421],"hù xià":[33424],"zì zǐ":[33427],"huì hū":[33428],"tún chūn":[33434],"jiè gài":[33445],"xù zhù":[33447],"yuán yán":[33451],"xīn xìn":[33455],"lún huā":[33458],"wù hū":[33460],"gōu gǒu":[33462],"mào máo":[33468],"fèi fú":[33470],"chán yín":[33474],"qiē":[33478],"sū sù":[33487],"tiáo sháo":[33493],"lì jī":[33497],"kē hē":[33499],"jù qǔ":[33507],"ruò rě":[33509],"zhù níng":[33511],"pā bó":[33513],"xiú":[33516],"zhǎ zuó":[33522],"jū chá":[33524],"nié":[33526],"shēng ruí":[33532],"qié jiā":[33540],"zǐ cí":[33544],"qiàn xī":[33564],"chǎi":[33565],"fá pèi":[33591],"ráo":[33627,34136,35155,39250,39286],"yíng xíng":[33637],"qián xún":[33640,34113],"yìn yīn":[33643],"hé hè":[33655],"shā suō":[33678],"péng fēng":[33681],"shēn xīn":[33688],"wǎn guān guǎn":[33694],"yóu sù":[33700],"shāo xiāo":[33702,34552],"làng liáng":[33704],"piǎo fú":[33705],"wèn wǎn miǎn":[33708],"shì shí":[33715,33940],"tù tú":[33717],"xiān liǎn":[33718,34207],"wǎn yù":[33728],"zōu chù":[33734],"lù lǜ":[33737],"jūn jùn":[33740],"niè rěn":[33741],"zī zì zāi":[33745],"tú tù":[33759],"jiē shà":[33768],"qiáo zhǎo":[33772],"tái zhī chí":[33773],"fēi fěi":[33778,34586],"qín qīn jīn":[33779],"zū jù":[33785,33961],"lǐn má":[33787],"tián tiàn":[33790],"tiē":[33820,36028,36148],"luò là lào luō":[33853],"zhù zhuó zhe":[33879],"shèn rèn":[33882],"gě gé":[33883],"jùn suǒ":[33904],"kuì kuài":[33929],"rú ná":[33944],"méng mēng měng":[33945],"yuán huán":[33949],"xú shú":[33955],"xí xì":[33973],"mì míng":[33986],"sōu sǒu":[33987],"gài gě hé hài":[33995],"yǎo zhuó":[34004],"diào tiáo dí":[34023],"xū qiū fū":[34034],"zí jú":[34043],"liǎo lù":[34044],xu:[34047],"hàn hǎn":[34058],"màn wàn mán":[34067],"pó bò":[34082],"fān fán bō":[34115],"hóng hòng":[34171],"yù ào":[34177,38569],"xí xiào":[34178],"báo bó bò":[34180],"cí zī":[34187],"wàn luàn":[34189],"kǎo hāo":[34215],"yuǎn wěi":[34227],"zhòu chóu":[34229],"wō mái":[34230],"xiāo hào":[34243],"yù xù xū":[34247],"jiè jí":[34249],"diào zhuó":[34251],"cáng zàng":[34255],"lǎ":[34270],"chú zhū":[34296],"pín píng":[34315],"gān hán":[34423],"hóng jiàng":[34425],"huī huǐ":[34426],"xiā há":[34430],"mǎ mà mā":[34434],"fāng bàng":[34436],"bàng bèng":[34444],"jué quē":[34455],"qín qián":[34457],"gōng zhōng":[34467],"fǔ fù":[34469],"dài dé":[34478],"gǒu qú xù":[34492],"bǒ pí":[34494],"shé yí":[34503],"tiě":[34504,37444,37525,37921,37941,38081,39510],"gé luò":[34514],"máng bàng":[34518],"yì xǔ":[34529],"há gé":[34532],"qiè ní":[34538],"é yǐ":[34558],"zhē zhé":[34567],"là zhà":[34593],"suò":[34614,36900],"yóu qiú":[34660],"xiā hā":[34662],"xī qī":[34695],"bī pí":[34709],"nài něng":[34714],"hé xiá":[34715],"guì huǐ":[34717],"mǎ mā mà":[34718],"shì zhē":[34731],"zhì dié":[34738],"jiàn chán":[34745],"ma má mò":[34758],"mǎng měng":[34770],"biē bié":[34782],"bēn fèi":[34790],"láo liáo":[34791],"yín xún":[34795],"lí lǐ":[34849],"xuè xiě":[34880],"xíng háng hàng héng":[34892],"shuāi cuī":[34928],"tuó tuō":[34953],"lǐng líng":[34954],"bào páo pào":[34956],"jù jiē":[34963],"hè kè":[34964],"yí yì":[34968,36004],"nà jué":[34982],"bèi pī":[34987],"chǐ nuǒ":[34994],"chǐ qǐ duǒ nuǒ":[34995],"jiá qiā jié":[34999],"bó mò":[35001],"guī guà":[35007],"liè liě":[35010],"chéng chěng":[35022],"jiē gé":[35027],"dāo chóu":[35055],"shang cháng":[35059],"yuān gǔn":[35063],"yǎn ān":[35066],"tì xī":[35068],"fù fú":[35092],"chǔ zhǔ":[35098],"tuì tùn":[35114],"lǎi":[35184],"yào yāo":[35201],"qín tán":[35203],"jiàn xiàn":[35211,35265],"piǎn":[35217,35550,35869,36021],"piē miè":[35221],"yíng yǐng":[35246],"qù qū":[35248,35255,35281],"jiàn biǎn":[35253],"luó luǎn":[35254],"zī zuǐ":[35292],"huà xiè":[35295],"jiě jiè xiè":[35299,35303],"xué hù":[35319],"lì lù":[35323],"tǎo":[35342,35752],"zhùn":[35376],"zī zǐ":[35390],"yí dài":[35410,35794],"xiòng":[35415,35783],"diào tiǎo":[35458],"yí chǐ chì":[35459],"lǎng làng":[35471],"ēi éi ěi èi xī":[35474,35830],"shuà":[35484],"yǔ yù":[35486,35821,38632],"shuō shuì yuè":[35498,35828],"shuí shéi":[35504,35841],"qū juè":[35507],"chī lài":[35514],"nì ná":[35517],"diào tiáo":[35519],"pǐ bēi":[35520],"jì jī":[35525],"zé zuò zhǎ cuò":[35534],"chù jí":[35540],"háo xià":[35541],"lùn lún":[35542,35770],"shì dì":[35551],"huà guā":[35555],"xǐ shāi āi":[35568],"nán nàn":[35573,38627],"miù":[35628,35884],"zèn":[35670,35886],"shí zhì":[35672,35782],"juàn xuān":[35714],"yí tuī":[35721],"zhán":[35741],"xǔ hǔ":[35768],"xiáng yáng":[35814],"tiáo diào zhōu":[35843],"chén shèn":[35852],"mí mèi":[35868],"màn mán":[35881],"gǔ yù":[35895],"huō huò huá":[35905],"zhì zhài":[35960],"huān huán":[35974],"kěn kūn":[35975],"mò hé":[35976],"mò hé háo":[35977],"jù lóu":[35991],"zé zhài":[36012,36131],"dài tè":[36024],"bì bēn":[36033],"jiǎ gǔ jià":[36040],"xiōng mín":[36079],"càng":[36086],"zhuàn zuàn":[36090,36186],"wàn zhuàn":[36099],"gàn gòng zhuàng":[36123],"yuán yùn":[36128],"bēn bì":[36146],"jiǎ gǔ":[36158],"zǒu":[36208,36209,39888],"dié tú":[36227],"jū qiè":[36228],"qū cù":[36235,36264],"jí jié":[36236],"guā huó":[36239],"què qì jí":[36254],"tàng tāng":[36255],"chuō zhuó":[36256],"qù cù":[36259],"yuè tì":[36271],"bō bào":[36277],"kuà wù":[36278],"guì jué":[36281],"fāng fàng páng":[36285],"páo bà":[36289],"qí qǐ":[36290],"jiàn chén":[36296],"pǎo páo":[36305],"diǎn diē tiē":[36309],"jū jù qiè":[36313],"bǒ":[36315],"luò lì":[36318],"dài duò duō chí":[36322],"zhuǎi":[36329],"bèng pián":[36336],"tiào táo":[36339],"shū chōu":[36350],"liàng liáng":[36361],"tà tā":[36367],"chǎ":[36421,37972,38258],"dí zhí":[36450],"dēng dèng":[36460,37913,38251],"cèng":[36461],"dūn cún":[36466],"juě jué":[36470],"liāo":[36477],"xiè sǎ":[36512],"tǐ":[36528,36550,39605],"yà zhá gá":[36555],"xìn xiàn":[36560],"fàn guǐ":[36563],"zhuàn zhuǎn":[36578],"zhóu zhòu":[36600,36724],"bú":[36688,37293,40170],"zhuǎn zhuàn zhuǎi":[36716],"zǎi zài":[36733],"niǎn zhǎn":[36759],"biān bian":[36793],"dào biān":[36794],"yǐ yí":[36806,36836,36849],"guò guo guō":[36807],"wàng kuāng":[36811],"hái huán":[36824],"zhè zhèi":[36825],"yuǎn yuàn":[36828],"zhì lì":[36835],"zhù wǎng":[36844],"zhuī duī":[36861],"shì kuò":[36866],"tòu":[36879],"tōng tòng":[36890],"guàng":[36891],"dǎi dài":[36910],"suì suí":[36930],"tí dì":[36934],"yí wèi":[36951],"shì dí zhé":[36969],"cà":[36970],"huán hái":[36996],"lí chí":[37004],"kàng háng":[37023],"nà nèi nā":[37027],"xié yá yé yú xú":[37034],"gāi hái":[37058],"huán xún":[37063],"chī xī":[37079],"hǎo":[37085],"lì zhí":[37094],"xiáo ǎo":[37097],"dōu dū":[37117],"liǎo":[37149,38269],"zàn cuán cuó":[37186,37191],"dīng dǐng":[37194],"cù zuò":[37218],"fā pō":[37222],"shāi shī":[37246],"niàng":[37247,37304],"qiú chōu":[37268],"pō fā":[37271,37297],"chǎn chěn":[37286],"yàn liǎn xiān":[37302],"niàng niáng":[37312],"lǐ li":[37324],"lí xǐ xī":[37328],"liǎo liào":[37333],"dīng dìng":[37336,38025],"qiǎo jiǎo":[37349],"yú huá":[37354],"huá wū":[37355],"rì rèn jiàn":[37360,37372],"dì dài":[37361],"pī zhāo":[37373],"yá yé":[37374],"bǎ pá":[37376,38063],"tā tuó":[37448,38090],"běi":[37491],"bǐng píng":[37500],"hā kē":[37503,38122],"chòng":[37507,38131],"xiǎng jiōng":[37508],"yù sì":[37513],"xù huì":[37514],"rén rěn":[37515],"shàn shuò":[37519],"chì lì":[37520],"xiǎn xǐ":[37521,38115],"hóu xiàng":[37527],"diào tiáo yáo":[37530],"xiān kuò tiǎn guā":[37531,37565,38118],"zhé niè":[37560],"zhōng yōng":[37567],"tōu tù dòu":[37568],"méi méng":[37570],"wàn jiǎn":[37572,37803],"tǐng dìng":[37580,38116],"juān jiān cuān":[37585],"sī tuó":[37590],"juān xuān juàn":[37591],"wú huá wū":[37592],"zhuó chuò":[37596],"xíng xìng jīng":[37598],"jū jú":[37606,38164],"zuì niè":[37623],"yuān yuǎn wǎn wān":[37626],"gāng gàng":[37628,38050],"zhuī":[37648,38181,39429,39571,40315],"ā":[37650,38165],"cuō chā":[37768],"suǒ sè":[37773],"yáo zú":[37776],"yè tà gé":[37777],"qiāng chēng":[37783],"gé lì":[37784,38217,39730],"bī pī bì":[37790],"gǎo hào":[37804],"zú chuò":[37827],"xiū xiù":[37829],"shòu sōu":[37833],"dí dī":[37841,38237],"qiāo sǎn càn":[37842],"lù áo":[37845],"tāng táng":[37852],"jiàn zàn":[37865],"huì suì ruì":[37880],"qiǎng qiāng":[37881,38250],"sǎn xiàn sà":[37886],"jiǎn jiàn":[37927,38159],"dāng chēng":[37946,38107],"zuān zuàn":[38013],"sà xì":[38033],"yào yuè":[38053],"tǒu dǒu":[38061],"zuàn zuān":[38075],"qiān yán":[38085],"pí pī":[38093],"yáo diào tiáo":[38123],"tāng tàng":[38132],"pù pū":[38138],"tán xiān":[38188],"liù liú":[38223],"hào gǎo":[38224],"táng tāng":[38231],"tán chán xín":[38241],"huò shǎn":[38276],"hàn bì":[38280,38380],"kāng kàng":[38284,38390],"xián jiàn jiān jiǎn":[38290],"xiā xiǎ":[38293],"xiǎ kě":[38300],"biàn guān":[38302],"hé gé":[38308,39052],"hòng xiàng":[38311],"sē xī":[38314],"tíng tǐng":[38318],"è yān":[38332,38415],"hòng juǎn xiàng":[38338],"bǎn pàn":[38342],"dū shé":[38349,38407],"què quē":[38357],"tāng táng chāng":[38363],"kàn hǎn":[38366,38426],"xì sè tà":[38367],"mēn mèn":[38391],"quē què":[38425],"yán diàn":[38461],"ā ē":[38463],"bēi pō pí":[38466],"yàn yǎn":[38529],"yú yáo shù":[38531],"lóng lōng":[38534],"duì zhuì":[38538],"suí duò":[38539],"gāi qí ái":[38545],"huī duò":[38547,38579],"wěi kuí":[38551],"lì dài":[38584],"zhuī cuī wéi":[38585],"hè hú":[38586,40366],"jùn juàn":[38589,38603],"nán nàn nuó":[38590],"què qiāo qiǎo":[38592],"guàn huán":[38618],"guī xī":[38623],"sè xí":[38637],"án":[38648],"wù méng":[38650],"tèng":[38703],"lù lòu":[38706],"mái":[38718],"jìng liàng":[38746],"gé jí":[38761],"bǎ":[38774],"yāng yàng":[38789],"gé tà sǎ":[38792],"biān yìng":[38805],"qiào shāo":[38808],"juān xuān":[38809],"shàng zhǎng":[38813],"pí bǐng bì bēi":[38814],la:[38817],"xiè dié":[38818],"ēng":[38821],"móu mù":[38826],"bì bǐng":[38840],"mèi wà":[38862],"rǒu":[38870],"shè xiè":[38872],"yùn wēn":[38891],"dùn dú":[38931,39039],"duǐ":[38951],"luō":[38961],"bīn pín":[38971],"yóng":[38994,39065,39979],"mān":[39010,39071],"jǐng gěng":[39048],"jié xié jiá":[39049],"kē ké":[39055],"pín bīn":[39057],"chàn zhàn":[39076],"fēng fěng":[39080,39118],"biāo diū":[39081],"bá fú":[39088],"sāo sōu":[39102],"liù liáo":[39106],"shí sì yì":[39135],"yǎng juàn":[39148],"zhù tǒu":[39155],"yí sì":[39156],"zuò zé zhā":[39157],"tiè":[39163,39214],"xiǎng náng":[39263],"táng xíng":[39271],"gē le":[39289],"chā zha":[39303],"náng nǎng":[39317],"yūn wò":[39335],"zhī shì":[39350],"xìn jìn":[39352],"kuài jué":[39363],"zǎng":[39380,39541],"tái dài":[39384],"xún xuān":[39400],"liáng láng":[39418],"piàn":[39447,39449,39575,39800],"dài tái":[39552],"sāo sǎo":[39578],"gǔ gū":[39592],"bèi mó":[39603],"xiāo qiāo":[39609],"bǎng pǎng":[39624],"bó jué":[39625],"bì pǒ":[39666],"máo méng":[39667],"kuò yuè":[39674],"bā bà":[39774,40067],"jì cǐ":[39814],"bó bà":[39818],"zhǎ zhà":[39827,40074],"chóu dài":[39832],"luò gé":[39845],"guī xié wā kuí":[39853],"xiān xiǎn":[39854,40092],"pū bū":[39878],"yì sī":[39907],"bà bó":[40076],"guī xié":[40081],"sāi xǐ":[40131],"niǎo diǎo":[40165],"diāo zhāo":[40173],"gān hàn yàn":[40177],"fū guī":[40186],"jiān qiān zhān":[40189],"hé jiè":[40353],"piān biǎn":[40355],"chuàn zhì":[40360],"cāng qiāng":[40364],"sǔn xùn":[40381],"biāo páo":[40579],"zhù cū":[40582],"jūn qún":[40583,40597],chi:[40630],"mó me":[40636],"mó me ma":[40637],"mí mǒ":[40639],"dàn shèn":[40686],"zhěn yān":[40688],"dǎn zhǎn":[40693],"miǎn mǐn měng":[40702],"hōu":[40769],"nàng":[40777],"qí jì zī zhāi":[40784],"yín kěn yǎn":[40834],"yín kěn":[40840],"gōng wò":[40847],"guī jūn qiū":[40860,40863]},oA=[];Object.keys(rA).forEach((function(t){for(var e=0,n=rA[t];e=19968&&e<=40869}var hA={};function uA(t){void 0===t&&(t={}),hA={},Object.keys(t).sort((function(t,e){return aA(e)-aA(t)})).forEach((function(e){hA[e]=t[e]}))}var cA=function(){return hA};function gA(){for(var t in hA)return!0;return!1}var dA=[{},{},{"一个":"yí gè","这个":"zhè ge","不是":"bú shì","成为":"chéng wéi","一种":"yī zhǒng","认为":"rèn wéi","作为":"zuò wéi","部分":"bù fèn","要求":"yāo qiú","各种":"gè zhǒng","应该":"yīng gāi","增长":"zēng zhǎng","不会":"bú huì","提供":"tí gōng","那些":"nèi xiē","觉得":"jué de","任务":"rèn wu","那个":"nà ge","称为":"chēng wéi","为主":"wéi zhǔ","了解":"liǎo jiě","处理":"chǔ lǐ","皇上":"huáng shang","只要":"zhǐ yào","心里":"xīn li","大量":"dà liàng","力量":"lì liàng","几乎":"jī hū","干部":"gàn bù","目的":"mù dì","行为":"xíng wéi","只见":"zhǐ jiàn","认识":"rèn shi","市长":"shì zhǎng","师父":"shī fu","调查":"diào chá","重新":"chóng xīn","分为":"fēn wéi","知识":"zhī shi","导弹":"dǎo dàn","行业":"háng yè","质量":"zhì liàng","银行":"yín háng","参与":"cān yù","充分":"chōng fèn","尽管":"jǐn guǎn","生长":"shēng zhǎng","数量":"shù liàng","应当":"yīng dāng","院长":"yuàn zhǎng","强调":"qiáng diào","只能":"zhǐ néng","音乐":"yīn yuè","以为":"yǐ wéi","处于":"chǔ yú","分子":"fèn zǐ","晚上":"wǎn shang","部长":"bù zhǎng","蒙古":"měng gǔ","只有":"zhǐ yǒu","适当":"shì dàng","品种":"pǐn zhǒng","只好":"zhǐ hǎo","成长":"chéng zhǎng","高兴":"gāo xìng","不了":"bù liǎo","产量":"chǎn liàng","胖子":"pàng zi","种类":"zhǒng lèi","显得":"xiǎn de","只是":"zhǐ shì","似的":"shì de","率领":"shuài lǐng","改为":"gǎi wéi","不禁":"bù jīn","成分":"chéng fèn","答应":"dā yìng","少年":"shào nián","兴趣":"xìng qù","太监":"tài jiàn","休息":"xiū xi","校长":"xiào zhǎng","更新":"gēng xīn","合同":"hé tong","喝道":"hè dào","重庆":"chóng qìng","重建":"chóng jiàn","使得":"shǐ de","审查":"shěn zhā","累计":"lěi jì","给予":"jǐ yǔ","上去":"shǎng qù","行情":"háng qíng","种种":"zhǒng zhǒng","极为":"jí wéi","冠军":"guàn jūn","仿佛":"fǎng fú","头发":"tóu fa","投降":"tóu xiáng","家长":"jiā zhǎng","仔细":"zǐ xì","要是":"yào shi","将领":"jiàng lǐng","含量":"hán liàng","更为":"gèng wéi","只得":"zhǐ de","哪些":"něi xiē","积累":"jī lěi","地处":"dì chǔ","县长":"xiàn zhǎng","少女":"shào nǚ","路上":"lù shang","只怕":"zhǐ pà","能量":"néng liàng","一度":"yí dù","储量":"chǔ liàng","供应":"gōng yìng","挑战":"tiǎo zhàn","西藏":"xī zàng","记得":"jì de","影片":"yǐng piān","总量":"zǒng liàng","当真":"dàng zhēn","将士":"jiàng shì","差别":"chā bié","较为":"jiào wéi","一处":"yī chǔ","照片":"zhào piān","长老":"zhǎng lǎo","大夫":"dài fū","差异":"chā yì","懂得":"dǒng de","尽量":"jǐn liàng","模样":"mú yàng","的确":"dí què","鱼肚":"yú dǔ","种子":"zhǒng zi","为首":"wéi shǒu","便宜":"pián yí","更名":"gēng míng","石头":"shí tou","州长":"zhōu zhǎng","为止":"wéi zhǐ","漂亮":"piào liàng","炮弹":"pào dàn","藏族":"zàng zú","哪个":"něi gè","角色":"jué sè","当作":"dàng zuò","尽快":"jǐn kuài","人为":"rén wéi","重复":"chóng fù","胡同":"hú tòng","差距":"chā jù","弟兄":"dì xiong","大将":"dà jiàng","几种":"jǐ zhǒng","肚子":"dǔ zi","睡觉":"shuì jiào","团长":"tuán zhǎng","队长":"duì zhǎng","区长":"qū zhǎng","难得":"nán de","丫头":"yā tou","打听":"dǎ ting","会长":"huì zhǎng","弟弟":"dì di","王爷":"wáng ye","当天":"dàng tiān","重量":"zhòng liàng","鱼种":"yú zhǒng","誉为":"yù wéi","家伙":"jiā huo","华山":"huà shān","椅子":"yǐ zi","流量":"liú liàng","长大":"zhǎng dà","勉强":"miǎn qiǎng","会计":"kuài jì","分散":"fēn sǎn","过分":"guò fèn","三种":"sān zhǒng","济南":"jǐ nán","调动":"diào dòng","燕京":"yān jīng","少将":"shào jiàng","中毒":"zhòng dú","晓得":"xiǎo de","特种":"tè zhǒng","变更":"biàn gēng","认得":"rèn de","苹果":"pín guǒ","念头":"niàn tou","挣扎":"zhēng zhá","三藏":"sān zàng","剥削":"bō xuē","丞相":"chéng xiàng","少量":"shǎo liàng","寻思":"xín sī","夺得":"duó de","干线":"gàn xiàn","呼吁":"hū yù","戏曲":"xì qǔ","处罚":"chǔ fá","长官":"zhǎng guān","见长":"jiàn zhǎng","柏林":"bó lín","亲戚":"qīn qi","身分":"shēn fèn","胳膊":"gē bo","着手":"zhuó shǒu","炸弹":"zhà dàn","咳嗽":"ké sou","西边":"xī bian","赢得":"yíng de","叶子":"yè zi","外长":"wài zhǎng","供给":"gōng jǐ","师长":"shī zhǎng","变量":"biàn liàng","应有":"yīng yǒu","下载":"xià zài","乐器":"yuè qì","间接":"jiàn jiē","底下":"dǐ xia","种族":"zhǒng zú","打扮":"dǎ ban","子弹":"zǐ dàn","弹药":"dàn yào","热量":"rè liàng","削弱":"xuē ruò","骨干":"gǔ gàn","容量":"róng liàng","模糊":"mó hu","转动":"zhuàn dòng","落下":"là xià","称呼":"chēng hu","科长":"kē zhǎng","处置":"chǔ zhì","歌曲":"gē qǔ","着重":"zhuó zhòng","着急":"zháo jí","强迫":"qiǎng pò","庭长":"tíng zhǎng","首相":"shǒu xiàng","喇嘛":"lǎ ma","镇长":"zhèn zhǎng","只管":"zhǐ guǎn","重重":"chóng chóng","免得":"miǎn de","灾难":"zāi nàn","着实":"zhuó shí","所得":"suǒ de","度假":"dù jià","真相":"zhēn xiàng","相貌":"xiàng mào","处分":"chǔ fèn","干预":"gàn yù","委屈":"wěi qu","为期":"wéi qī","伯伯":"bó bo","圈子":"quān zi","见识":"jiàn shi","笼罩":"lǒng zhào","外边":"wài bian","与会":"yù huì","都督":"dū du","宰相":"zǎi xiàng","较量":"jiào liàng","对称":"duì chèn","总长":"zǒng zhǎng","相公":"xiàng gong","空白":"kòng bái","大王":"dài wáng","打量":"dǎ liang","水分":"shuǐ fèn","舌头":"shé tou","没收":"mò shōu","行李":"xíng li","判处":"pàn chǔ","散文":"sǎn wén","处境":"chǔ jìng","树种":"shù zhǒng","孙子":"sūn zi","拳头":"quán tou","打发":"dǎ fa","组长":"zǔ zhǎng","骨头":"gú tou","宁可":"nìng kě","更换":"gēng huàn","薄弱":"bó ruò","还原":"huán yuán","重修":"chóng xiū","东边":"dōng bian","同行":"tóng háng","只顾":"zhǐ gù","爱好":"ài hào","馒头":"mán tou","军长":"jūn zhǎng","散发":"sàn fà","首长":"shǒu zhǎng","厂长":"chǎng zhǎng","司长":"sī zhǎng","长子":"zhǎng zǐ","强劲":"qiáng jìng","恰当":"qià dàng","头儿":"tou er","站长":"zhàn zhǎng","折腾":"zhē teng","相处":"xiāng chǔ","统率":"tǒng shuài","中将":"zhōng jiàng","命中":"mìng zhòng","名将":"míng jiàng","左边":"zuǒ bian","木头":"mù tou","动弹":"dòng dàn","地壳":"dì qiào","干活":"gàn huó","少爷":"shào ye","难民":"nàn mín","水量":"shuǐ liàng","补给":"bǔ jǐ","尾巴":"wěi ba","来得":"lái de","好奇":"hào qí","钥匙":"yào shi","当做":"dàng zuò","沉着":"chén zhuó","哑巴":"yǎ ba","车子":"chē zi","上将":"shàng jiàng","播种":"bō zhǒng","恶心":"ě xin","不对":"bú duì","担子":"dàn zi","应届":"yīng jiè","行列":"háng liè","主角":"zhǔ jué","运转":"yùn zhuàn","兄长":"xiōng zhǎng","格式":"gé shi","正月":"zhēng yuè","营长":"yíng zhǎng","当成":"dàng chéng","右边":"yòu bian","女婿":"nǚ xu","咽喉":"yān hóu","当晚":"dàng wǎn","重阳":"chóng yáng","化为":"huà wéi","双重":"shuāng chóng","吐蕃":"tǔ bō","钻进":"zuān jìn","乐队":"yuè duì","不当":"bù dàng","亮相":"liàng xiàng","被子":"bèi zi","舍得":"shě de","杉木":"shā mù","击中":"jī zhòng","无处":"wú chǔ","里边":"lǐ bian","排长":"pái zhǎng","假期":"jià qī","分量":"fèn liàng","数次":"shuò cì","提防":"dī fáng","吆喝":"yāo he","查处":"chá chǔ","量子":"liàng zǐ","里头":"lǐ tou","两行":"liǎng háng","调研":"diào yán","伺候":"cì hou","重申":"chóng shēn","枕头":"zhěn tou","拚命":"pàn mìng","社长":"shè zhǎng","苦难":"kǔ nàn","归还":"guī huán","危难":"wēi nàn","批量":"pī liàng","畜牧":"xù mù","点着":"diǎn zháo","甚为":"shèn wéi","小将":"xiǎo jiàng","着眼":"zhuó yǎn","处死":"chǔ sǐ","厌恶":"yàn wù","鼓乐":"gǔ yuè","树干":"shù gàn","秘鲁":"bì lǔ","大方":"dà fang","外头":"wài tou","班长":"bān zhǎng","星宿":"xīng xiù","宁愿":"nìng yuàn","钦差":"qīn chāi","为数":"wéi shù","勾当":"gòu dàng","削减":"xuē jiǎn","一发":"yī fà","间谍":"jiàn dié","埋怨":"mán yuàn","结实":"jiē shi","计量":"jì liàng","淹没":"yān mò","村长":"cūn zhǎng","连长":"lián zhǎng","自给":"zì jǐ","下边":"xià bian","物种":"wù zhǒng","武将":"wǔ jiàng","温差":"wēn chā","直奔":"zhí bèn","供求":"gōng qiú","剂量":"jì liàng","道长":"dào zhǎng","泄露":"xiè lòu","王八":"wáng ba","切割":"qiē gē","间隔":"jiàn gé","一晃":"yī huǎng","长假":"cháng jià","令狐":"líng hú","为害":"wéi hài","句子":"jù zi","偿还":"cháng huán","疙瘩":"gē dā","燕山":"yān shān","堵塞":"dǔ sè","夺冠":"duó guàn","下调":"xià diào","扎实":"zhā shi","电荷":"diàn hè","看守":"kān shǒu","复辟":"fù bì","郁闷":"yù mèn","尽早":"jǐn zǎo","切断":"qiē duàn","指头":"zhǐ tou","为生":"wéi shēng","畜生":"chù sheng","切除":"qiē chú","着力":"zhuó lì","着想":"zhuó xiǎng","级差":"jí chā","投奔":"tóu bèn","棍子":"gùn zi","含糊":"hán hu","少妇":"shào fù","兴致":"xìng zhì","杂种":"zá zhǒng","四种":"sì zhǒng","纳闷":"nà mèn","干流":"gàn liú","卷起":"juǎn qǐ","扇子":"shàn zi","更改":"gēng gǎi","笼络":"lǒng luò","喇叭":"lǎ ba","载荷":"zài hè","妥当":"tuǒ dàng","为难":"wéi nán","着陆":"zhuó lù","燕子":"yàn zi","干吗":"gàn má","白发":"bái fà","总得":"zǒng děi","夹击":"jiā jī","曝光":"bào guāng","曲调":"qǔ diào","相机":"xiàng jī","叫化":"jiào huā","角逐":"jué zhú","啊哟":"ā yō","载重":"zài zhòng","长辈":"zhǎng bèi","出差":"chū chāi","垛口":"duǒ kǒu","撇开":"piē kāi","厅长":"tīng zhǎng","组分":"zǔ fèn","误差":"wù chā","家当":"jiā dàng","传记":"zhuàn jì","个子":"gè zi","铺设":"pū shè","干事":"gàn shì","杆菌":"gǎn jūn","五更":"wǔ gēng","定量":"dìng liàng","运载":"yùn zài","会儿":"huì er","酋长":"qiú zhǎng","重返":"chóng fǎn","差额":"chā é","露面":"lòu miàn","钻研":"zuān yán","大城":"dài chéng","上当":"shàng dàng","销量":"xiāo liàng","洋行":"yáng háng","作坊":"zuō fang","照相":"zhào xiàng","哎呀":"āi yā","调集":"diào jí","看中":"kàn zhòng","议长":"yì zhǎng","风筝":"fēng zheng","一应":"yī yīng","辟邪":"bì xié","空隙":"kòng xì","更迭":"gēng dié","偏差":"piān chā","声调":"shēng diào","农行":"nóng háng","适量":"shì liàng","屯子":"tún zi","搜查":"sōu zhā","无量":"wú liàng","空地":"kòng dì","调度":"diào dù","一曲":"yī qǔ","散射":"sǎn shè","种姓":"zhǒng xìng","太行":"tài háng","创伤":"chuāng shāng","海参":"hǎi shēn","满载":"mǎn zài","重叠":"chóng dié","军种":"jūn zhǒng","落差":"luò chā","单调":"dān diào","老将":"lǎo jiàng","人参":"rén shēn","间断":"jiàn duàn","重现":"chóng xiàn","夹杂":"jiā zá","调用":"diào yòng","萝卜":"luó bo","附着":"fù zhuó","应声":"yīng shēng","主将":"zhǔ jiàng","罪过":"zuì guo","咀嚼":"jǔ jué","为政":"wéi zhèng","过量":"guò liàng","乐曲":"yuè qǔ","负荷":"fù hè","枪弹":"qiāng dàn","悄然":"qiǎo rán","处方":"chǔ fāng","悄声":"qiǎo shēng","曲子":"qǔ zi","情调":"qíng diào","一着":"yī zhāo","挑衅":"tiǎo xìn","代为":"dài wéi","了结":"liǎo jié","打中":"dǎ zhòng","酒吧":"jiǔ bā","作曲":"zuò qǔ","懒得":"lǎn de","增量":"zēng liàng","衣着":"yī zhuó","部将":"bù jiàng","要塞":"yào sài","茶几":"chá jī","杠杆":"gàng gǎn","出没":"chū mò","鲜有":"xiǎn yǒu","间隙":"jiàn xì","重担":"zhòng dàn","重演":"chóng yǎn","应酬":"yìng chou","只当":"zhǐ dāng","毋宁":"wú nìng","包扎":"bāo zā","前头":"qián tou","卷烟":"juǎn yān","非得":"fēi děi","五种":"wǔ zhǒng","弹道":"dàn dào","上调":"shàng diào","杆子":"gān zi","门将":"mén jiàng","后头":"hòu tou","标识":"biāo zhì","喝彩":"hè cǎi","暖和":"nuǎn huo","更深":"gēng shēn","累积":"lěi jī","引得":"yǐn de","调遣":"diào qiǎn","倔强":"jué jiàng","宝藏":"bǎo zàng","丧事":"sāng shì","约莫":"yuē mo","纤夫":"qiàn fū","更替":"gēng tì","装载":"zhuāng zài","背包":"bēi bāo","帖子":"tiě zi","种群":"zhǒng qún","松散":"sōng sǎn","支行":"zhī háng","呼喝":"hū hè","可恶":"kě wù","自转":"zì zhuàn","供电":"gōng diàn","反省":"fǎn xǐng","坦率":"tǎn shuài","苏打":"sū dá","本分":"běn fèn","落得":"luò de","鄙薄":"bǐ bó","相间":"xiāng jiàn","单薄":"dān bó","混蛋":"hún dàn","发难":"fā nàn","贞观":"zhēn guàn","语种":"yǔ zhǒng","附和":"fù hè","育种":"yù zhǒng","能耐":"néng nai","吓唬":"xià hu","未了":"wèi liǎo","引着":"yǐn zháo","抽调":"chōu diào","沙子":"shā zi","席卷":"xí juǎn","标的":"biāo dì","人种":"rén zhǒng","别扭":"biè niu","思量":"sī liang","喝采":"hè cǎi","论语":"lún yǔ","盖子":"gài zi","曲艺":"qǔ yì","分外":"fèn wài","弄堂":"lòng táng","乐舞":"yuè wǔ","雨量":"yǔ liàng","毛发":"máo fà","差遣":"chāi qiǎn","曲目":"qǔ mù","背负":"bēi fù","转速":"zhuàn sù","声乐":"shēng yuè","夹攻":"jiā gōng","供水":"gōng shuǐ","主干":"zhǔ gàn","逃难":"táo nàn","惩处":"chéng chǔ","长相":"zhǎng xiàng","公差":"gōng chāi","行当":"háng dang","榴弹":"liú dàn","省得":"shěng de","条子":"tiáo zi","重围":"chóng wéi","阻塞":"zǔ sè","劲风":"jìng fēng","纠葛":"jiū gé","颠簸":"diān bǒ","点中":"diǎn zhòng","避难":"bì nàn","重创":"zhòng chuāng","姥姥":"lǎo lao","迷糊":"mí hu","公家":"gōng jia","几率":"jī lǜ","苦闷":"kǔ mèn","度量":"dù liàng","差错":"chā cuò","暑假":"shǔ jià","参差":"cēn cī","搭载":"dā zài","助长":"zhù zhǎng","相称":"xiāng chèn","红晕":"hóng yùn","舍命":"shě mìng","喜好":"xǐ hào","列传":"liè zhuàn","劲敌":"jìng dí","蛤蟆":"há má","三重":"sān chóng","请假":"qǐng jià","钉子":"dīng zi","剧种":"jù zhǒng","沉没":"chén mò","高丽":"gāo lí","休假":"xiū jià","无为":"wú wéi","巴结":"bā jì","了得":"liǎo de","变相":"biàn xiàng","核弹":"hé dàn","亲家":"qìng jia","承载":"chéng zài","行家":"háng jia","喝问":"hè wèn","还击":"huán jī","交还":"jiāo huán","当夜":"dàng yè","将令":"jiàng lìng","单于":"chán yú","空缺":"kòng quē","绿林":"lù lín","胆量":"dǎn liàng","执着":"zhí zhuó","低调":"dī diào","责难":"zé nàn","闭塞":"bì sè","轻薄":"qīng bó","得当":"dé dàng","占卜":"zhān bǔ","排行":"pái háng","扫帚":"sào zhou","龟兹":"qiū cí","年长":"nián zhǎng","外传":"wài zhuàn","头子":"tóu zi","裁缝":"cái féng","礼乐":"lǐ yuè","血泊":"xuè pō","散乱":"sǎn luàn","动量":"dòng liàng","倒腾":"dǎo teng","取舍":"qǔ shě","咱家":"zá jiā","长发":"cháng fà","爪哇":"zhǎo wā","弹壳":"dàn ké","省悟":"xǐng wù","嚷嚷":"rāng rang","连累":"lián lěi","应得":"yīng dé","族长":"zú zhǎng","患难":"huàn nàn","抽查":"chōu zhā","柜子":"guì zi","擂鼓":"léi gǔ","眩晕":"xuàn yùn","调配":"diào pèi","躯干":"qū gàn","差役":"chāi yì","坎坷":"kǎn kě","少儿":"shào ér","乐团":"yuè tuán","养分":"yǎng fèn","退还":"tuì huán","格调":"gé diào","语调":"yǔ diào","音调":"yīn diào","乐府":"yuè fǔ","古朴":"gǔ piáo","打点":"dǎ dian","差使":"chāi shǐ","磨难":"mó nàn","匀称":"yún chèn","瘦削":"shòu xuē","变种":"biàn zhǒng","膏药":"gāo yao","吞没":"tūn mò","调任":"diào rèn","散居":"sǎn jū","上头":"shàng tou","大难":"dà nàn","风靡":"fēng mǐ","放假":"fàng jià","估量":"gū liang","失当":"shī dàng","中弹":"zhòng dàn","妄为":"wàng wéi","长者":"zhǎng zhě","起哄":"qǐ hòng","末了":"mò liǎo","相声":"xiàng sheng","校正":"jiào zhèng","劝降":"quàn xiáng","矢量":"shǐ liàng","沉闷":"chén mèn","给与":"jǐ yǔ","解法":"xiè fǎ","塞外":"sài wài","将校":"jiàng xiào","嗜好":"shì hào","没落":"mò luò","朴刀":"pō dāo","良种":"liáng zhǒng","片子":"piān zi","切削":"qiē xiāo","弹丸":"dàn wán","昆曲":"kūn qǔ","雅致":"yǎ zhi","稀薄":"xī bó","亏得":"kuī de","死难":"sǐ nàn","间歇":"jiàn xiē","翘首":"qiáo shǒu","同种":"tóng zhǒng","色调":"sè diào","处决":"chǔ jué","表率":"biǎo shuài","尺子":"chǐ zi","兵种":"bīng zhǒng","招降":"zhāo xiáng","有种":"yǒu zhǒng","称职":"chèn zhí","斗篷":"dǒu peng","铺子":"pù zi","底子":"dǐ zi","负载":"fù zài","干警":"gàn jǐng","倒数":"dào shǔ","将官":"jiàng guān","锄头":"chú tou","归降":"guī xiáng","疟疾":"nüè ji","唠叨":"láo dao","限量":"xiàn liàng","一打":"yī dá","屏息":"bǐng xī","重逢":"chóng féng","器乐":"qì yuè","氢弹":"qīng dàn","脖颈":"bó gěng","妃子":"fēi zi","追查":"zhuī zhā","处事":"chǔ shì","参量":"cān liàng","轻率":"qīng shuài","缥缈":"piāo miǎo","幸得":"xìng de","中奖":"zhòng jiǎng","才干":"cái gàn","施舍":"shī shě","卷子":"juǎn zi","游说":"yóu shuì","巷子":"xiàng zi","臂膀":"bì bǎng","切勿":"qiē wù","看管":"kān guǎn","风头":"fēng tou","精干":"jīng gàn","高差":"gāo chā","恐吓":"kǒng hè","扁担":"biǎn dàn","给养":"jǐ yǎng","格子":"gé zi","供需":"gōng xū","反差":"fǎn chā","飞弹":"fēi dàn","微薄":"wēi bó","发型":"fà xíng","勘查":"kān zhā","即兴":"jí xìng","攒动":"cuán dòng","间或":"jiàn huò","浅薄":"qiǎn bó","乐章":"yuè zhāng","顺差":"shùn chā","调子":"diào zi","相位":"xiàng wèi","转子":"zhuàn zǐ","劲旅":"jìng lǚ","咔嚓":"kā chā","了事":"liǎo shì","转悠":"zhuàn you","芍药":"sháo yao","当铺":"dàng pù","爪子":"zhuǎ zi","单子":"dān zi","好战":"hào zhàn","燕麦":"yān mài","只许":"zhǐ xǔ","干练":"gàn liàn","女将":"nǚ jiàng","酒量":"jiǔ liàng","划船":"huá chuán","伎俩":"jì liǎng","挑拨":"tiǎo bō","少校":"shào xiào","着落":"zhuó luò","憎恶":"zēng wù","刻薄":"kè bó","口角":"kǒu jué","马尾":"mǎ yǐ","要挟":"yāo xié","引种":"yǐn zhǒng","用处":"yòng chǔ","还手":"huán shǒu","模具":"mú jù","执著":"zhí zhuó","喝令":"hè lìng","火种":"huǒ zhǒng","争得":"zhēng de","保长":"bǎo zhǎng","吸着":"xī zhuó","症结":"zhēng jié","公转":"gōng zhuàn","校勘":"jiào kān","重提":"chóng tí","扫兴":"sǎo xìng","舞曲":"wǔ qǔ","铺盖":"pū gài","长史":"zhǎng shǐ","差价":"chā jià","压根":"yà gēn","怔住":"zhèng zhù","强人":"qiǎng rén","应允":"yīng yǔn","切入":"qiē rù","战将":"zhàn jiàng","年少":"nián shào","舍身":"shě shēn","执拗":"zhí niù","处世":"chǔ shì","中风":"zhòng fēng","等量":"děng liàng","不菲":"bù fěi","放量":"fàng liàng","腔调":"qiāng diào","老少":"lǎo shào","没入":"mò rù","瓜葛":"guā gé","将帅":"jiàng shuài","车载":"chē zài","窝囊":"wō nāng","长进":"zhǎng jìn","可汗":"kè hán","并州":"bīng zhōu","供销":"gōng xiāo","切片":"qiē piàn","差事":"chāi shì","知会":"zhī hui","鹰爪":"yīng zhǎo","处女":"chǔ nǚ","切磋":"qiē cuō","日头":"rì tou","押解":"yā jiè","滋长":"zī zhǎng","道观":"dào guàn","脚色":"jué sè","当量":"dāng liàng","婆家":"pó jia","缘分":"yuán fèn","空闲":"kòng xián","曲牌":"qǔ pái","好色":"hào sè","行会":"háng huì","怒喝":"nù hè","笼统":"lǒng tǒng","边塞":"biān sài","何曾":"hé zēng","重合":"chóng hé","插曲":"chā qǔ","零散":"líng sǎn","轰隆":"hōng lōng","化子":"huā zi","内蒙":"nèi měng","数落":"shǔ luo","逆差":"nì chā","牟利":"móu lì","栅栏":"zhà lan","中标":"zhòng biāo","调档":"diào dàng","佝偻":"gōu lóu","场子":"chǎng zi","甲壳":"jiǎ qiào","重温":"chóng wēn","炮制":"páo zhì","返还":"fǎn huán","自传":"zì zhuàn","高调":"gāo diào","词曲":"cí qǔ","受难":"shòu nàn","殷红":"yān hóng","要约":"yāo yuē","固着":"gù zhuó","强求":"qiǎng qiú","本相":"běn xiàng","骄横":"jiāo hèng","草率":"cǎo shuài","气闷":"qì mèn","着色":"zhuó sè","宁肯":"nìng kěn","兴头":"xìng tou","拘泥":"jū nì","夹角":"jiā jiǎo","发髻":"fà jì","猛将":"měng jiàng","劫难":"jié nàn","约摸":"yuē mo","拖累":"tuō lěi","呢绒":"ní róng","钻探":"zuān tàn","夹层":"jiā céng","把子":"bà zi","落魄":"luò tuò","巷道":"hàng dào","运量":"yùn liàng","头里":"tóu li","解闷":"jiě mèn","空儿":"kòng ér","估摸":"gū mo","好客":"hào kè","小曲":"xiǎo qǔ","折衷":"shé zhōng","钻孔":"zuān kǒng","序曲":"xù qǔ","糊弄":"hù nong","荥阳":"xíng yáng","道行":"dào héng","烦闷":"fán mèn","仓卒":"cāng cù","分叉":"fēn chà","曲率":"qǔ lǜ","相片":"xiàng piān","内行":"nèi háng","工种":"gōng zhǒng","厂子":"chǎng zi","小调":"xiǎo diào","少阳":"shào yáng","受降":"shòu xiáng","染坊":"rǎn fáng","胳臂":"gē bei","将门":"jiàng mén","模板":"mú bǎn","配给":"pèi jǐ","为伍":"wéi wǔ","跟头":"gēn tou","划算":"huá suàn","累赘":"léi zhui","哄笑":"hōng xiào","晕眩":"yùn xuàn","干掉":"gàn diào","缝制":"féng zhì","难处":"nán chǔ","着意":"zhuó yì","蛮横":"mán hèng","干将":"gàn jiàng","奇数":"jī shù","短发":"duǎn fà","生还":"shēng huán","还清":"huán qīng","看护":"kān hù","直率":"zhí shuài","奏乐":"zòu yuè","载客":"zài kè","专横":"zhuān hèng","湮没":"yān mò","空格":"kòng gé","铺垫":"pū diàn","良将":"liáng jiàng","哗啦":"huā lā","散漫":"sǎn màn","脱发":"tuō fà","两重":"liǎng chóng","送还":"sòng huán","埋没":"mái mò","累及":"lěi jí","薄雾":"bó wù","调离":"diào lí","舌苔":"shé tāi","机长":"jī zhǎng","栓塞":"shuān sè","配角":"pèi jué","切口":"qiē kǒu","创口":"chuāng kǒu","哈欠":"hā qian","实弹":"shí dàn","铺平":"pū píng","哈达":"hǎ dá","懒散":"lǎn sǎn","实干":"shí gàn","填空":"tián kòng","刁钻":"diāo zuān","乐师":"yuè shī","量变":"liàng biàn","诱降":"yòu xiáng","搪塞":"táng sè","购得":"gòu de","征调":"zhēng diào","夹道":"jiā dào","干咳":"gān ké","乐工":"yuè gōng","商行":"shāng háng","划过":"huá guò","着火":"zháo huǒ","更正":"gēng zhèng","给付":"jǐ fù","空子":"kòng zi","哪吒":"né zhā","散曲":"sǎn qǔ","行规":"háng guī","正着":"zhèng zháo","刁难":"diāo nàn","刷子":"shuā zi","丧葬":"sāng zàng","夹带":"jiā dài","安分":"ān fèn","中意":"zhòng yì","长孙":"zhǎng sūn","校订":"jiào dìng","卷曲":"juǎn qū","载运":"zài yùn","投弹":"tóu dàn","柞蚕":"zuò cán","份量":"fèn liàng","外行":"wài háng","调换":"diào huàn","了然":"liǎo rán","咧嘴":"liě zuǐ","典当":"diǎn dàng","寒假":"hán jià","长兄":"zhǎng xiōng","给水":"jǐ shuǐ","须发":"xū fà","枝干":"zhī gàn","属相":"shǔ xiang","哄抢":"hōng qiǎng","刻划":"kè huá","手把":"shǒu bà","塞子":"sāi zi","单干":"dān gàn","还乡":"huán xiāng","兆头":"zhào tou","寺观":"sì guàn","督率":"dū shuài","受累":"shòu lěi","天台":"tiān tāi","啊哈":"ā hā","割舍":"gē shě","抹布":"mā bù","好恶":"hào wù","下处":"xià chǔ","消长":"xiāo zhǎng","离间":"lí jiàn","准头":"zhǔn tou","校对":"jiào duì","什物":"shí wù","番禺":"pān yú","佛爷":"fó ye","备查":"bèi zhā","吗啡":"mǎ fēi","盐分":"yán fèn","当月":"dàng yuè","虎将":"hǔ jiàng","薄荷":"bò he","独处":"dú chǔ","空位":"kòng wèi","铺路":"pū lù","乌拉":"wù la","调回":"diào huí","来头":"lái tou","闲散":"xián sǎn","胶卷":"jiāo juǎn","冒失":"mào shi","干劲":"gàn jìn","弦乐":"xián yuè","行伍":"háng wǔ","相国":"xiàng guó","查查":"zhā zhā","丹参":"dān shēn","助兴":"zhù xìng","铺开":"pū kāi","次长":"cì zhǎng","发卡":"fà qiǎ","拮据":"jié jū","刹车":"shā chē","生发":"shēng fà","重播":"chóng bō","缝合":"féng hé","音量":"yīn liàng","少尉":"shào wèi","殉难":"xùn nàn","冲压":"chòng yā","苍劲":"cāng jìng","厚薄":"hòu bó","威吓":"wēi hè","外相":"wài xiàng","曲谱":"qǔ pǔ","呼号":"hū háo","着迷":"zháo mí","挑担":"tiāo dàn","纹路":"wén lu","一沓":"yī dá","还俗":"huán sú","强横":"qiáng hèng","四行":"sì háng","着数":"zhāo shù","国难":"guó nàn","降顺":"xiáng shùn","挑明":"tiǎo míng","眯缝":"mī feng","分内":"fèn nèi","更衣":"gēng yī","软和":"ruǎn huo","尽兴":"jìn xìng","号子":"hào zi","爪牙":"zhǎo yá","败将":"bài jiàng","猜中":"cāi zhòng","结扎":"jié zā","没空":"méi kòng","夹缝":"jiā fèng","拾掇":"shí duo","掺和":"chān huo","簸箕":"bò ji","电量":"diàn liàng","荷载":"hè zǎi","漯河":"luò tà hé","调式":"diào shì","处身":"chǔ shēn","打手":"dǎ shou","弹弓":"dàn gōng","横蛮":"hèng mán","能干":"néng gàn","校点":"jiào diǎn","加载":"jiā zài","干校":"gàn xiào","哄传":"hōng chuán","校注":"jiào zhù","淤塞":"yū sè","马扎":"mǎ zhá","月氏":"yuè zhī","高干":"gāo gàn","经传":"jīng zhuàn","曾孙":"zēng sūn","好斗":"hào dòu","关卡":"guān qiǎ","逃奔":"táo bèn","磨蹭":"mó ceng","牟取":"móu qǔ","颤栗":"zhàn lì","蚂蚱":"mà zha","撮合":"cuō he","趔趄":"liè qie","摔打":"shuāi dá","台子":"tái zi","分得":"fēn de","粘着":"nián zhuó","采邑":"cài yì","散装":"sǎn zhuāng","婀娜":"ē nuó","兴味":"xìng wèi","行头":"xíng tou","气量":"qì liàng","调运":"diào yùn","处治":"chǔ zhì","乐音":"yuè yīn","组曲":"zǔ qǔ","充塞":"chōng sè","恫吓":"dòng hè","论调":"lùn diào","相中":"xiāng zhòng","民乐":"mín yuè","炮仗":"pào zhang","丧服":"sāng fú","骁将":"xiāo jiàng","量刑":"liàng xíng","缝补":"féng bǔ","财会":"cái kuài","大干":"dà gàn","呱呱":"gū gū","历数":"lì shǔ","校场":"jiào chǎng","塞北":"sài běi","识相":"shí xiàng","辱没":"rǔ mò","鲜亮":"xiān liang","语塞":"yǔ sè","露脸":"lòu liǎn","凉快":"liáng kuai","腰杆":"yāo gǎn","溜达":"liū da","嘎嘎":"gā gā","公干":"gōng gàn","桔梗":"jié gěng","挑逗":"tiǎo dòu","看门":"kān mén","海难":"hǎi nàn","乐歌":"yuè gē","拓片":"tà piàn","挑动":"tiǎo dòng","准将":"zhǔn jiàng","落难":"luò nàn","遒劲":"qiú jìng","磨坊":"mò fáng","逶迤":"wēi yí","搅和":"jiǎo huo","摩挲":"mā sā","作弄":"zuō nòng","苗头":"miáo tou","打颤":"dǎ zhàn","大藏":"dà zàng","畜牲":"chù sheng","勾搭":"gōu da","树荫":"shù yīn","树杈":"shù chà","铁杆":"tiě gǎn","将相":"jiàng xiàng","份子":"fèn zi","视差":"shì chā","绿荫":"lǜ yīn","枪杆":"qiāng gǎn","缝纫":"féng rèn","愁闷":"chóu mèn","点将":"diǎn jiàng","华佗":"huà tuó","劲射":"jìng shè","箱笼":"xiāng lǒng","终了":"zhōng liǎo","鬓发":"bìn fà","结巴":"jiē ba","苦干":"kǔ gàn","看家":"kān jiā","正旦":"zhēng dàn","中肯":"zhòng kěn","文种":"wén zhǒng","食量":"shí liàng","宫调":"gōng diào","间作":"jiàn zuò","弹片":"dàn piàn","差池":"chā chí","漂白":"piǎo bái","杠子":"gàng zi","调处":"tiáo chǔ","好动":"hào dòng","转炉":"zhuàn lú","屏气":"bǐng qì","夹板":"jiā bǎn","哀乐":"āi yuè","干道":"gàn dào","苦处":"kǔ chǔ","劈柴":"pǐ chái","长势":"zhǎng shì","天华":"tiān huā","共处":"gòng chǔ","严查":"yán zhā","校验":"jiào yàn","出塞":"chū sài","弹子":"dàn zǐ","磨盘":"mò pán","萎靡":"wěi mǐ","奔丧":"bēn sāng","唱和":"chàng hè","大调":"dà diào","非分":"fēi fèn","钻营":"zuān yíng","夹子":"jiā zi","超载":"chāo zài","更始":"gēng shǐ","铃铛":"líng dang","披散":"pī sǎn","遭难":"zāo nàn","发还":"fā huán","转轮":"zhuàn lún","横财":"hèng cái","泡桐":"pāo tóng","抛撒":"pāo sǎ","天呀":"tiān yā","糊糊":"hū hū","躯壳":"qū qiào","通量":"tōng liàng","奉还":"fèng huán","午觉":"wǔ jiào","闷棍":"mèn gùn","浪头":"làng tou","砚台":"yàn tāi","油坊":"yóu fáng","学长":"xué zhǎng","过载":"guò zài","笔调":"bǐ diào","衣被":"yì bèi","畜产":"xù chǎn","打更":"dǎ gēng","调阅":"diào yuè","蛮干":"mán gàn","曾祖":"zēng zǔ","本行":"běn háng","提干":"tí gàn","变调":"biàn diào","覆没":"fù mò","模子":"mú zi","乐律":"yuè lǜ","称心":"chèn xīn","木杆":"mù gǎn","套曲":"tào qǔ","重印":"chóng yìn","自省":"zì xǐng","提调":"tí diào","看相":"kàn xiàng","芋头":"yù tou","下切":"xià qiē","塞上":"sài shàng","铺张":"pū zhāng","藤蔓":"téng wàn","薄幸":"bó xìng","非难":"fēi nàn","解数":"xiè shù","劣种":"liè zhǒng","褪去":"tùn qù","霰弹":"xiàn dàn","柚木":"yóu mù","重载":"zhòng zài","二重":"èr chóng","痕量":"hén liàng","雅乐":"yǎ yuè","号哭":"háo kū","诈降":"zhà xiáng","猪圈":"zhū juàn","咋舌":"zé shé","铣床":"xǐ chuáng","防弹":"fáng dàn","健将":"jiàn jiàng","丽水":"lí shuǐ","削发":"xuē fà","空当":"kòng dāng","多相":"duō xiàng","鲜见":"xiǎn jiàn","划桨":"huá jiǎng","载波":"zài bō","跳蚤":"tiào zao","俏皮":"qiào pi","吧嗒":"bā dā","结发":"jié fà","了断":"liǎo duàn","同调":"tóng diào","石磨":"shí mò","时差":"shí chā","鼻塞":"bí sè","挑子":"tiāo zi","推磨":"tuī mò","武侯":"wǔ hòu","抹煞":"mǒ shā","调转":"diào zhuǎn","籍没":"jí mò","测度":"cè duó","还债":"huán zhài","调演":"diào yǎn","分划":"fēn huá","奇偶":"jī ǒu","断喝":"duàn hè","闷雷":"mèn léi","狼藉":"láng jí","饭量":"fàn liàng","还礼":"huán lǐ","转调":"zhuǎn diào","星相":"xīng xiàng","手相":"shǒu xiàng","配乐":"pèi yuè","盖头":"gài tou","连杆":"lián gǎn","簿记":"bù jì","刀把":"dāo bà","量词":"liàng cí","名角":"míng jué","步调":"bù diào","校本":"jiào běn","曲江":"qǔ jiāng","账簿":"zhàng bù","隽永":"juàn yǒng","哈罗":"hā luo","稍为":"shāo wéi","易传":"yì zhuàn","乐谱":"yuè pǔ","牵累":"qiān lěi","答理":"dā li","喝斥":"hè chì","吟哦":"yín é","干渠":"gàn qú","海量":"hǎi liàng","精当":"jīng dàng","着床":"zhuó chuáng","月相":"yuè xiàng","庶几":"shù jī","宫观":"gōng guàn","论处":"lùn chǔ","征辟":"zhēng bì","厚朴":"hòu pò","介壳":"jiè qiào","吭哧":"kēng chi","咯血":"kǎ xiě","铺陈":"pū chén","重生":"chóng shēng","乐理":"yuè lǐ","哀号":"āi háo","藏历":"zàng lì","琴曲":"qín qǔ","神曲":"shén qǔ","刚劲":"gāng jìng","削平":"xuē píng","浓荫":"nóng yīn","城垛":"chéng duǒ","钢种":"gāng zhǒng","识记":"zhì jì","当差":"dāng chāi","正传":"zhèng zhuàn","并处":"bìng chǔ","空难":"kōng nàn","创面":"chuāng miàn","旦角":"dàn jué","薄礼":"bó lǐ","晃荡":"huàng dang","臊子":"sào zi","家什":"jiā shí","闷头":"mèn tóu","美发":"měi fà","度数":"dù shu","着凉":"zháo liáng","闯将":"chuǎng jiàng","几案":"jī àn","姘头":"pīn tou","急难":"jí nàn","差数":"chā shù","散碎":"sǎn suì","壅塞":"yōng sè","寒颤":"hán zhàn","牵强":"qiān qiǎng","无间":"wú jiàn","轮转":"lún zhuàn","号叫":"háo jiào","铺排":"pū pái","降伏":"xiáng fú","轧钢":"zhá gāng","东阿":"dōng ē","病假":"bìng jià","累加":"lěi jiā","梗塞":"gěng sè","弹夹":"dàn jiā","钻心":"zuān xīn","晃眼":"huǎng yǎn","魔爪":"mó zhǎo","标量":"biāo liàng","憋闷":"biē mèn","猜度":"cāi duó","处士":"chǔ shì","官差":"guān chāi","讨还":"tǎo huán","长门":"zhǎng mén","馏分":"liú fèn","里弄":"lǐ lòng","色相":"sè xiàng","雅兴":"yǎ xìng","角力":"jué lì","弹坑":"dàn kēng","枝杈":"zhī chà","夹具":"jiā jù","处刑":"chǔ xíng","悍将":"hàn jiàng","好学":"hào xué","银发":"yín fà","扫把":"sào bǎ","法相":"fǎ xiàng","贵干":"guì gàn","供气":"gōng qì","空余":"kòng yú","捆扎":"kǔn zā","瘠薄":"jí bó","浆糊":"jiàng hu","嘎吱":"gā zhī","不遂":"bù suí","调令":"diào lìng","法帖":"fǎ tiè","淋病":"lìn bìng","调派":"diào pài","转盘":"zhuàn pán","供稿":"gōng gǎo","差官":"chāi guān","忧闷":"yōu mèn","重犯":"chóng fàn","教长":"jiào zhǎng","重唱":"chóng chàng","税种":"shuì zhǒng","绝种":"jué zhǒng","酒兴":"jiǔ xìng","乐坛":"yuè tán","花呢":"huā ní","叱喝":"chì hè","膀臂":"bǎng bì","重头":"chóng tóu","得空":"dé kòng","转圈":"zhuàn quān","横暴":"hèng bào","哄抬":"hōng tái","引吭":"yǐn háng","载货":"zài huò","中计":"zhòng jì","官长":"guān zhǎng","相面":"xiàng miàn","看头":"kàn tou","盼头":"pàn tou","意兴":"yì xìng","军乐":"jūn yuè","累次":"lěi cì","骨嘟":"gū dū","燕赵":"yān zhào","报丧":"bào sāng","弥撒":"mí sa","挨斗":"ái dòu","扁舟":"piān zhōu","丑角":"chǒu jué","吊丧":"diào sāng","强将":"qiáng jiàng","行号":"háng háo","重奏":"chóng zòu","发辫":"fà biàn","着魔":"zháo mó","着法":"zhāo fǎ","盛放":"chéng fàng","填塞":"tián sè","凶横":"xiōng hèng","稽首":"qǐ shǒu","碑帖":"bēi tiè","冲量":"chōng liàng","发菜":"fà cài","假发":"jiǎ fà","翻卷":"fān juǎn","小量":"xiǎo liàng","胶着":"jiāo zhuó","里子":"lǐ zi","调调":"diào diao","散兵":"sǎn bīng","高挑":"gāo tiǎo","播撒":"bō sǎ","夹心":"jiā xīn","扇动":"shān dòng","叨扰":"tāo rǎo","霓裳":"ní cháng","捻子":"niǎn zi","弥缝":"mí féng","撒布":"sǎ bù","元曲":"yuán qǔ","场院":"cháng yuàn","纯种":"chún zhǒng","省亲":"xǐng qīn","提拉":"dī le","惯量":"guàn liàng","强逼":"qiǎng bī","强征":"qiǎng zhēng","晕车":"yùn chē","数道":"shǔ dào","带累":"dài lěi","拓本":"tà běn","嫌恶":"xián wù","宿将":"sù jiàng","龟裂":"jūn liè","缠夹":"chán jiā","发式":"fà shì","隔扇":"gé shān","行货":"háng huò","天分":"tiān fèn","癖好":"pǐ hào","四通":"sì tòng","白术":"bái zhú","划伤":"huá shāng","角斗":"jué dòu","听差":"tīng chāi","岁差":"suì chā","丧礼":"sāng lǐ","脉脉":"mò mò","削瘦":"xuē shòu","撒播":"sǎ bō","莎草":"suō cǎo","犍为":"qián wéi","调头":"diào tóu","龙卷":"lóng juǎn","外调":"wài diào","字帖":"zì tiè","卷发":"juǎn fà","孬种":"nāo zhǒng","九种":"jiǔ zhǒng","揣度":"chuǎi duó","洋相":"yáng xiàng","散光":"sǎn guāng","骨碌":"gū lu","薄命":"bó mìng","笼头":"lóng tou","咽炎":"yān yán","碌碡":"liù zhou","片儿":"piān er","纤手":"qiàn shǒu","散体":"sǎn tǐ","内省":"nèi xǐng","强留":"qiǎng liú","解送":"jiè sòng","反间":"fǎn jiàn","少壮":"shào zhuàng","一服":"yī fù","留空":"liú kòng","告假":"gào jià","咳血":"ké xiě","薄暮":"bó mù","铺轨":"pū guǐ","磨削":"mó xuē","治丧":"zhì sāng","叉子":"chā zi","哄动":"hōng dòng","蛾子":"é zi","糜子":"méi zi","出落":"chū là","股长":"gǔ zhǎng","贵处":"guì chǔ","还魂":"huán hún","例假":"lì jià","曲池":"qǔ chí","刹住":"shā zhù","身量":"shēn liàng","懂行":"dǒng háng","同好":"tóng hào","孽种":"niè zhǒng","选种":"xuǎn zhǒng","小种":"xiǎo zhǒng","模量":"mó liàng","更生":"gēng shēng","服丧":"fú sāng","率直":"shuài zhí","字模":"zì mú","散架":"sǎn jià","答腔":"dā qiāng","交恶":"jiāo wù","薄情":"bó qíng","眼泡":"yǎn pāo","袅娜":"niǎo nuó","草垛":"cǎo duǒ","冲劲":"chòng jìn","呢喃":"ní nán","切中":"qiè zhòng","挑灯":"tiǎo dēng","还愿":"huán yuàn","激将":"jī jiàng","更鼓":"gēng gǔ","没药":"mò yào","难友":"nàn yǒu","败兴":"bài xìng","切面":"qiē miàn","散户":"sǎn hù","累进":"lěi jìn","背带":"bēi dài","秤杆":"chèng gǎn","碾坊":"niǎn fáng","簿子":"bù zi","扳手":"bān shou","铅山":"yán shān","儒将":"rú jiàng","重光":"chóng guāng","剪发":"jiǎn fà","行话":"háng huà","长上":"zhǎng shàng","配种":"pèi zhǒng","小传":"xiǎo zhuàn","压轴":"yā zhòu","谱曲":"pǔ qǔ","弱冠":"ruò guàn","花卷":"huā juǎn","横祸":"hèng huò","夹克":"jiā kè","光晕":"guāng yùn","披靡":"pī mǐ","对调":"duì diào","夹持":"jiā chí","空额":"kòng é","平调":"píng diào","铺床":"pū chuáng","丧钟":"sāng zhōng","作乐":"zuò yuè","少府":"shào fǔ","数数":"shuò shuò","奔头":"bèn tou","进给":"jìn jǐ","率性":"shuài xìng","乐子":"lè zi","绑扎":"bǎng zā","挑唆":"tiǎo suō","漂洗":"piǎo xǐ","夹墙":"jiā qiáng","咳喘":"ké chuǎn","乜斜":"miē xie","错处":"cuò chǔ","复种":"fù zhǒng","闷酒":"mèn jiǔ","时调":"shí diào","重孙":"chóng sūn","经幢":"jīng chuáng","圩场":"xū cháng","调门":"diào mén","花头":"huā tou","划拉":"huá la","套色":"tào shǎi","粗率":"cū shuài","相率":"xiāng shuài","款识":"kuǎn zhì","吁请":"yù qǐng","荫蔽":"yīn bì","文蛤":"wén gé","嘀嗒":"dī dā","调取":"diào qǔ","交差":"jiāo chāi","落子":"lào zǐ","相册":"xiàng cè","絮叨":"xù dáo","落发":"luò fà","异相":"yì xiàng","浸没":"jìn mò","角抵":"jué dǐ","卸载":"xiè zài","春卷":"chūn juǎn","扎挣":"zhá zheng","畜养":"xù yǎng","吡咯":"bǐ luò","垛子":"duǒ zi","恶少":"è shào","发际":"fà jì","红苕":"hóng sháo","糨糊":"jiàng hù","哭丧":"kū sang","泡子":"pāo zǐ","稍息":"shào xī","晕船":"yùn chuán","校样":"jiào yàng","外差":"wài chāi","红曲":"hóng qǔ","脚爪":"jiǎo zhǎo","铺展":"pū zhǎn","驮子":"duò zi","芫荽":"yán sui","夹紧":"jiā jǐn","尿泡":"suī pào","丧乱":"sāng luàn","凶相":"xiōng xiàng","华发":"huá fà","打场":"dǎ cháng","云量":"yún liàng","正切":"zhèng qiē","处子":"chǔ zǐ","留难":"liú nàn","划拳":"huá quán","划艇":"huá tǐng","评传":"píng zhuàn","拉纤":"lā qiàn","句读":"jù dòu","散剂":"sǎn jì","骨殖":"gǔ shi","塞音":"sè yīn","铺叙":"pū xù","阏氏":"yān zhī","冷颤":"lěng zhàn","煞住":"shā zhù","夜曲":"yè qǔ","种籽":"zhǒng zǐ","采种":"cǎi zhǒng","少男":"shào nán","格登":"gē dēng","管乐":"guǎn yuè","号啕":"háo táo","纳降":"nà xiáng","拥塞":"yōng sè","万乘":"wàn shèng","杆儿":"gǎn ér","葛藤":"gé téng","芯子":"xìn zi","簿籍":"bù jí","垫圈":"diàn juàn","皮夹":"pí jiā","校准":"jiào zhǔn","行款":"háng kuǎn","黑种":"hēi zhǒng","龙种":"lóng zhǒng","允当":"yǔn dàng","器量":"qì liàng","选调":"xuǎn diào","扮相":"bàn xiàng","干才":"gàn cái","基干":"jī gàn","三校":"sān jiào","割切":"gē qiē","国乐":"guó yuè","卡壳":"qiǎ ké","呢子":"ní zi","辟谷":"bì gǔ","磨房":"mò fáng","咿呀":"yī yā","芥末":"jiè mo","薄技":"bó jì","产假":"chǎn jià","诗兴":"shī xìng","重出":"chóng chū","转椅":"zhuàn yǐ","酌量":"zhuó liàng","簿册":"bù cè","藏青":"zàng qīng","的士":"dí shì","调人":"diào rén","解元":"jiè yuán","茎干":"jīng gàn","巨量":"jù liàng","榔头":"láng tou","率真":"shuài zhēn","喷香":"pèn xiāng","锁钥":"suǒ yuè","虾蟆":"há má","相图":"xiàng tú","兴会":"xìng huì","灶头":"zào tou","重婚":"chóng hūn","钻洞":"zuān dòng","忖度":"cǔn duó","党参":"dǎng shēn","调温":"diào wēn","杆塔":"gǎn tǎ","葛布":"gé bù","拱券":"gǒng xuàn","冠子":"guàn zi","划子":"huá zǐ","夹生":"jiā shēng","露馅":"lòu xiàn","恰切":"qià qiē","散见":"sǎn jiàn","哨卡":"shào qiǎ","烫发":"tàng fà","体量":"tǐ liàng","挺括":"tǐng guā","系带":"jì dài","相士":"xiàng shì","羊圈":"yáng juàn","转矩":"zhuàn jǔ","吧台":"bā tái","苍术":"cāng zhú","菲薄":"fěi bó","蛤蚧":"gé jiè","蛤蜊":"gé lí","瓜蔓":"guā wàn","怪相":"guài xiàng","罹难":"lí nàn","临帖":"lín tiè","女红":"nǚ gōng","刨床":"bào chuáng","翘楚":"qiáo chǔ","数九":"shǔ jiǔ","谈兴":"tán xìng","心曲":"xīn qǔ","雄劲":"xióng jìng","扎染":"zā rǎn","遮荫":"zhē yīn","周正":"zhōu zhēng","赚头":"zhuàn tou","扒手":"pá shǒu","搀和":"chān huo","诚朴":"chéng piáo","肚量":"dù liàng","干结":"gàn jié","工尺":"gōng chě","家累":"jiā lěi","曲水":"qǔ shuǐ","沙参":"shā shēn","挑花":"tiǎo huā","行距":"háng jù","种别":"zhǒng bié","种草":"zhǒng cǎo","阿门":"ā mēn","背篓":"bēi lǒu","瘪三":"biē sān","裁处":"cái chǔ","创痛":"chuāng tòng","福相":"fú xiàng","更动":"gēng dòng","豪兴":"háo xìng","还阳":"huán yáng","还嘴":"huán zuǐ","借调":"jiè diào","卷云":"juǎn yún","卡子":"qiǎ zi","流弹":"liú dàn","络子":"lào zi","磨子":"mò zǐ","下种":"xià zhǒng","想头":"xiǎng tou","削价":"xuē jià","校阅":"jiào yuè","八行":"bā háng","雅量":"yǎ liàng","别传":"bié zhuàn","薄酒":"bó jiǔ","春假":"chūn jià","发妻":"fà qī","哗哗":"huā huā","宽绰":"kuān chuo","了悟":"liǎo wù","切花":"qiē huā","审度":"shěn duó","应许":"yīng xǔ","转台":"zhuàn tái","仔猪":"zǐ zhū","奔命":"bèn mìng","裁量":"cái liàng","蚕种":"cán zhǒng","藏戏":"zàng xì","乘兴":"chéng xìng","绸缪":"chóu móu","摧折":"cuī shé","调经":"diào jīng","调职":"diào zhí","缝缀":"féng zhuì","骨朵":"gū duǒ","核儿":"hú ér","恒量":"héng liàng","还价":"huán jià","浑朴":"hún piáo","苦差":"kǔ chāi","面糊":"miàn hù","曲张":"qǔ zhāng","煞车":"shā chē","省视":"xǐng shì","什锦":"shí jǐn","信差":"xìn chāi","余切":"yú qiē","攒眉":"cuán méi","炸糕":"zhá gāo","钻杆":"zuàn gǎn","扒灰":"pá huī","白种":"bái zhǒng","拌和":"bàn huò","长调":"cháng diào","大溜":"dà liù","抖搂":"dǒu lōu","飞转":"fēi zhuàn","赴难":"fù nàn","干仗":"gàn zhàng","好胜":"hào shèng","画片":"huà piān","搅混":"jiǎo gǔn","螺杆":"luó gǎn","木模":"mù mú","怒号":"nù háo","频数":"pín shuò","无宁":"wú nìng","选曲":"xuǎn qǔ","遗少":"yí shào","邮差":"yóu chāi","占卦":"zhān guà","占星":"zhān xīng","重审":"chóng shěn","自量":"zì liàng","待查":"dài zhā","调防":"diào fáng","发廊":"fà láng","翻查":"fān zhā","反调":"fǎn diào","缝子":"fèng zi","更夫":"gēng fū","骨子":"gǔ zi","光杆":"guāng gǎn","夹棍":"jiā gùn","居丧":"jū sāng","巨贾":"jù gǔ","看押":"kān yā","空转":"kōng zhuàn","量力":"liàng lì","蒙尘":"meng chen","蒙难":"méng nàn","炮烙":"páo luò","赔还":"péi huán","扑扇":"pū shān","散记":"sǎn jì","散件":"sǎn jiàn","删削":"shān xuē","射干":"yè gàn","条几":"tiáo jī","偷空":"tōu kòng","削壁":"xuē bì","校核":"jiào hé","阴干":"yīn gàn","择菜":"zhái cài","种马":"zhǒng mǎ","重九":"chóng jiǔ","主调":"zhǔ diào","自禁":"zì jīn","吧唧":"bā jī","堡子":"bǔ zi","便溺":"biàn niào","词调":"cí diào","叨咕":"dáo gu","干粉":"gàn fěn","俚曲":"lǐ qǔ","落枕":"lào zhěn","铺砌":"pū qì","刷白":"shuà bái","委靡":"wěi mǐ","系泊":"jì bó","相马":"xiàng mǎ","行辈":"háng bèi","熨帖":"yù tiē","转筋":"zhuàn jīn","籽种":"zǐ zhǒng","棒喝":"bàng hè","傧相":"bīn xiàng","传种":"chuán zhǒng","镐头":"gǎo tóu","间苗":"jiàn miáo","乐池":"yuè chí","卖相":"mài xiàng","难为":"nán wéi","屏弃":"bǐng qì","铅弹":"qiān dàn","切变":"qiē biàn","请调":"qǐng diào","曲度":"qǔ dù","群氓":"qún méng","散板":"sǎn bǎn","省察":"xǐng chá","事假":"shì jià","纤绳":"qiàn shéng","种麻":"zhǒng má","重影":"chóng yǐng"},{"为什么":"wèi shén me","实际上":"shí jì shang","检察长":"jiǎn chá zhǎng","不由得":"bù yóu de","差不多":"chà bu duō","只不过":"zhǐ bu guò","国内外":"guó nèi wai","老人家":"lǎo ren jia","干什么":"gàn shén me","可不是":"kě bù shì","这会儿":"zhè huì er","尽可能":"jǐn kě néng","董事长":"dǒng shì zhǎng","了不起":"liǎo bù qǐ","参谋长":"cān móu zhǎng","舍不得":"shě bu de","朝鲜族":"cháo xiǎn zú","恨不得":"hèn bu de","海内外":"hǎi nèi wai","禁不住":"jīn bú zhù","柏拉图":"bó lā tú","怪不得":"guài bu de","不在乎":"bù zài hu","洛杉矶":"luò shān ji","有点儿":"yǒu diǎnr","迫击炮":"pǎi jī pào","大丈夫":"dà zhàng fu","进行曲":"jìn xíng qǔ","免不了":"miǎn bu liǎo","不得了":"bù dé liǎo","过日子":"guò rì zi","马尾松":"mǎ wěi sōng","运输量":"yùn shū liàng","发脾气":"fā pí qi","过不去":"guò bu qù","臭豆腐":"chòu dòu fu","士大夫":"shì dà fū","三部曲":"sān bù qǔ","少不了":"shǎo bu liǎo","仡佬族":"gē lǎo zú","交响曲":"jiāo xiǎng qǔ","分子式":"fēn zǐ shì","好日子":"hǎo rì zi","看样子":"kàn yàng zi","鸭绿江":"yā lù jiāng","巴不得":"bā bu de","协奏曲":"xié zòu qǔ","没关系":"méi guān xi","不见得":"bú jiàn de","压根儿":"yà gēnr","对得起":"duì de qǐ","那会儿":"nà huìr","自个儿":"zì gěr","物理量":"wù lǐ liàng","怎么着":"zěn me zhāo","明晃晃":"míng huǎng huǎng","节假日":"jié jià rì","心里话":"xīn lǐ huà","发行量":"fā xíng liàng","兴冲冲":"xìng chōng chōng","分子量":"fēn zǐ liàng","大不了":"dà bu liǎo","国子监":"guó zǐ jiàn","老大难":"lǎo dà nán","了不得":"liǎo bu dé","石狮子":"shí shī zi","莫不是":"mò bù shì","少不得":"shǎo bu dé","党内外":"dǎng nèi wai","这么着":"zhè me zhāo","少奶奶":"shào nǎi nai","暗地里":"àn dì li","看不起":"kàn bu qǐ","更年期":"gēng nián qī","工作量":"gōng zuò liàng","背地里":"bèi dì li","山里红":"shān li hóng","好好儿":"hǎo hāor","交响乐":"jiāo xiǎng yuè","好意思":"hǎo yì si","吐谷浑":"tǔ yù hún","没意思":"méi yì si","理发师":"lǐ fà shī","奏鸣曲":"zòu míng qǔ","塔什干":"tǎ shí gàn","充其量":"chōng qí liàng","靠得住":"kào de zhù","车行道":"chē háng dào","中郎将":"zhōng láng jiàng","犯不着":"fàn bu zháo","照明弹":"zhào míng dàn","一溜烟":"yī liù yān","烟幕弹":"yān mù dàn","没奈何":"mò nài hé","乱哄哄":"luàn hōng hōng","惠更斯":"huì gēng sī","载重量":"zài zhòng liàng","瞧得起":"qiáo de qǐ","纪传体":"jì zhuàn tǐ","蚌埠市":"bèng bù shì","冷不丁":"lěng bu dīng","阿房宫":"ē páng gōng","怨不得":"yuàn bu de","卷心菜":"juǎn xīn cài","戏班子":"xì bān zi","过得去":"guò děi qù","大肚子":"dà dù zi","花岗石":"huā gāng shí","外甥女":"wài sheng nǚ","团团转":"tuán tuán zhuàn","大堡礁":"dà pù jiāo","燃烧弹":"rán shāo dàn","劳什子":"láo shí zi","摇滚乐":"yáo gǔn yuè","身子骨":"shēn zi gǔ","夹竹桃":"jiā zhú táo","一刀切":"yī dāo qiē","闹哄哄":"nào hōng hōng","三连冠":"sān lián guàn","重头戏":"zhòng tóu xì","二人转":"èr rén zhuàn","节骨眼":"jiē gu yǎn","知识面":"zhī shī miàn","护士长":"hù shì zhǎng","架子车":"jià zi chē","信号弹":"xìn hào dàn","干电池":"gàn diàn chí","枪杆子":"qiāng gǎn zi","哭丧棒":"kū sāng bàng","鼻咽癌":"bí yān ái","瓦岗军":"wǎ gāng jūn","买得起":"mǎi de qǐ","拗不过":"niù bu guò","癞蛤蟆":"lài há ma","脊梁骨":"jǐ liang gǔ","子母弹":"zǐ mǔ dàn","开小差":"kāi xiǎo chāi","女强人":"nǚ qiáng rén","英雄传":"yīng xióng zhuàn","大嫂子":"dà sǎo zi","爵士乐":"jué shì yuè","说笑话":"shuō xiào hua","混日子":"hùn rì zi","大鼻子":"dà bí zi","碰头会":"pèng tóu kuài","玻璃钢":"bō li gāng","曳光弹":"yè guāng dàn","少林拳":"shào lín quán","咏叹调":"yǒng tàn diào","豆腐干":"dòu fǔ gàn","一个劲":"yī gè jìn","少先队":"shào xiān duì","灵长目":"líng zhǎng mù","对着干":"duì zhe gàn","蒙蒙亮":"mēng mēng liàng","软骨头":"ruǎn gǔ tou","不省得":"bù xǐng de","铺盖卷":"pū gài juǎn","和稀泥":"huò xī ní","亭子间":"tíng zi jiān","背黑锅":"bēi hēi guō","红彤彤":"hóng tōng tōng","武侯祠":"wǔ hóu cí","打哆嗦":"dǎ duō suo","地窨子":"dì yìn zi","狂想曲":"kuáng xiǎng qǔ","幻想曲":"huàn xiǎng qǔ","户口簿":"hù kǒu bù","腿肚子":"tuǐ dù zi","马尾藻":"mǎ wěi zǎo","练习曲":"liàn xí qǔ","夜猫子":"yè māo zi","折子戏":"zhé zi xì","打手势":"dǎ shǒu shì","龙王爷":"lóng wáng yé","要面子":"yào miàn zi","气头上":"qì tóu shang","糊涂虫":"hú tu chóng","笔杆子":"bǐ gǎn zi","占便宜":"zhàn pián yi","打主意":"dǎ zhǔ yi","多弹头":"duō dàn tóu","露一手":"lòu yī shǒu","堰塞湖":"yàn sè hú","保得住":"bǎo de zhù","趵突泉":"bào tū quán","钻空子":"zuān kòng zi","奥得河":"ào de hé","司务长":"sī wù zhǎng","禁不起":"jīn bu qǐ","什刹海":"shí chà hǎi","莲花落":"lián huā lào","一场空":"yī cháng kōng","前奏曲":"qián zòu qǔ","见世面":"xiàn shì miàn","分子筛":"fēn zǐ shāi","豁出去":"huō chu qu","电位差":"diàn wèi chā","挨个儿":"āi gèr","那阵儿":"nà zhènr","给面子":"gěi miàn zi","肺活量":"fèi huó liàng","大师傅":"dà shī fū","掷弹筒":"zhì dàn tǒng","打呼噜":"dǎ hū lu","广渠门":"ān qú mén","未见得":"wèi jiàn de","大婶儿":"dà shěnr","谈得来":"tán de lái","狮子头":"shī zi tóu","脚丫子":"jiǎo yā zi","变奏曲":"biàn zòu qǔ","空包弹":"kōng bāo dàn","窝里斗":"wō li dòu","弹着点":"dàn zhuó diǎn","免不得":"miǎn bu de","个头儿":"gè tóur","看得起":"kàn de qǐ","来不得":"lái bu de","糊涂账":"hú tu zhàng","大猩猩":"dà xīng xing","一溜儿":"yī liù ér","禁得起":"jīn de qǐ","法相宗":"fǎ xiāng zōng","可怜相":"kě lián xiàng","吃得下":"chī de xià","汉堡包":"hàn pù bāo","闹嚷嚷":"nào rāng rāng","数来宝":"shǔ lái bǎo","抹脖子":"mǒ bó zi","合得来":"hé de lái","干性油":"gàn xìng yóu","上辈子":"shàng bèi zi","闷葫芦":"mèn hú lú","呱呱叫":"guā guā jiào","西洋参":"xī yáng shēn","碰钉子":"pèng dìng zǐ","林荫道":"lín yīn dào","拉家常":"lá jiā cháng","卷铺盖":"juǎn pū gài","过得硬":"guò de yìng","飞将军":"fēi jiàng jūn","挑大梁":"tiǎo dà liáng","哈巴狗":"hǎ bā gǒu","过家家":"guō jiā jiā","催泪弹":"cuī lèi dàn","雨夹雪":"yǔ jiā xuě","敲竹杠":"qiāo zhū gàng","列车长":"liè chē zhǎng","回旋曲":"huí xuán qǔ","华达呢":"huá dá ní","犯得着":"fàn de zháo","土疙瘩":"tǔ gē da","煞风景":"shā fēng jǐng","轻量级":"qīng liàng jí","羞答答":"xiū dā dā","石子儿":"shí zǐ er","大帽子":"dà mào zi","达姆弹":"dá mǔ dàn","摇篮曲":"yáo lán qǔ","科教片":"kē jiào piān","侃大山":"kǎn tài shān","丁点儿":"dīng diǎn er","吃得消":"chī de xiāo","捋虎须":"luō hǔ xū","间奏曲":"jiàn zòu qǔ","高丽参":"gāo lí shēn","安魂曲":"ān hún qǔ","众生相":"zhòng shēng xiàng","咽峡炎":"yān xiá yán","禁得住":"jīn de zhù","打拍子":"dǎ pāi zi","催眠曲":"cuī mián qǔ","臭架子":"chòu jià zi","吃得开":"chī de kāi","柞丝绸":"zuò sī chóu","应声虫":"yìng shēng chóng","数得着":"shǔ de zháo","傻劲儿":"shǎ jìn er","铅玻璃":"qiān bō li","抹不开":"mò bù kāi","可的松":"kě dì sōng","划得来":"huá de lái","红帽子":"hóng mào zi","孩子王":"hái zi wáng","晕乎乎":"yùn hū hū","台柱子":"tái zhù zi","屎壳郎":"shǐ ke làng","尥蹶子":"liào jué zǐ","空架子":"kōng jià zi","藏红花":"zàng hóng huā","说不着":"shuō bù zháo","闷罐车":"mèn guàn chē","卡脖子":"qiǎ bó zi","红澄澄":"hóng deng deng","赶得及":"gǎn de jí","当间儿":"dāng jiàn ér","露马脚":"lòu mǎ jiǎo","鸡内金":"jī nà jīn","犯得上":"fàn děi shàng","钉齿耙":"dīng chǐ bà","饱和点":"bǎo huó diǎn","文曲星":"wén qǔ xīng","翘辫子":"qiào biàn zi","龙爪槐":"lóng zhǎo huái","喝倒彩":"hè dào cǎi","鸽子笼":"gē zi lóng","定冠词":"dìng guàn cí","担担面":"dàn dan miàn","吃得住":"chī de zhù","爪尖儿":"zhuǎ jiān er","支着儿":"zhī zhāo ér","折跟头":"zhē gēn tou","炸丸子":"zhá wán zǐ","阴着儿":"yīn zhāo ér","烟卷儿":"yān juǎn ér","宣传弹":"xuān chuán dàn","信皮儿":"xìn pí er","弦切角":"xián qiē jiǎo","跳房子":"tiào fáng zi","缩砂密":"sù shā mì","说得来":"shuō de lái","水漂儿":"shuǐ piǎo ér","耍笔杆":"shuǎ bǐ gǎn","数得上":"shǔ děi shàng","数不着":"shǔ bù zháo","数不清":"shǔ bù qīng","什件儿":"shí jiàn ér","狮子会":"shī zi huì","生死簿":"shēng sǐ bù","扇风机":"shān fēng jī","散摊子":"sàn tān zi","撒呓挣":"sā yì zhēng","日记簿":"rì jì bù","热得快":"rè de kuài","曲别针":"qǔ bié zhēn","亲家公":"qìng jiā gōng","奇函数":"jī hán shù","炮子儿":"pào zǐ er","拍纸簿":"pāi zhǐ bù","努劲儿":"nǔ jìn er","泥娃娃":"ní wá wa","内切圆":"nèi qiē yuán","哪会儿":"něi huì er","摸不着":"mō bù zháo","闷头儿":"mèn tou er","没谱儿":"méi pǔ er","铆劲儿":"mǎo jìn er","溜肩膀":"liū jiān bǎng","了望台":"liào wàng tái","老来少":"lǎo lái shào","坤角儿":"kūn jué ér","考勤簿":"kǎo qín bù","卷笔刀":"juǎn bǐ dāo","九重霄":"jiǔ chóng xiāo","进给量":"jìn jǐ liàng","划不来":"huá bù lái","汗褂儿":"hàn guà er","鼓囊囊":"gǔ nāng nang","够劲儿":"gòu jìn er","公切线":"gōng qiē xiàn","搁得住":"gé de zhù","搁不住":"gé bú zhù","赶浪头":"gǎn làng tóu","赶得上":"gǎn děi shàng","干酵母":"gàn jiào mǔ","嘎渣儿":"gā zhā ér","嘎嘣脆":"gā bēng cuì","对得住":"duì de zhù","逗闷子":"dòu mèn zǐ","豆角儿":"dòu jué ér","顶呱呱":"dǐng guā guā","滴溜儿":"dī liù ér","大轴子":"dà zhòu zǐ","打板子":"dǎ bǎn zi","寸劲儿":"cùn jìn er","醋劲儿":"cù jìn er","创牌子":"chuàng pái zi","揣手儿":"chuāi shǒu er","冲劲儿":"chòng jìn er","吃得来":"chī de lái","不更事":"bù gēng shì","奔头儿":"bèn tou er","百夫长":"bǎi fū zhǎng","娃娃亲":"wá wa qīn","死劲儿":"sǐ jìng er","骨朵儿":"gū duǒ er","功劳簿":"gōng láo bù"},{"成吉思汗":"chéng jí sī hán","四通八达":"sì tōng bā dá","一模一样":"yī mú yī yàng","青藏高原":"qīng zàng gāo yuán","阿弥陀佛":"ē mí tuó fó","解放思想":"jiè fàng sī xiǎng","多种多样":"duō zhǒng duō yàng","所作所为":"suǒ zuò suǒ wéi","迷迷糊糊":"mí mí hu hū","荷枪实弹":"hè qiāng shí dàn","兴高采烈":"xìng gāo cǎi liè","无能为力":"wú néng wéi lì","融为一体":"róng wéi yī tǐ","布鲁塞尔":"bù lǔ sài ěr","为所欲为":"wéi suǒ yù wéi","审时度势":"shěn shí duó shì","克什米尔":"kè shí mǐ ěr","没完没了":"méi wán méi liǎo","不为人知":"bù wéi rén zhī","结结巴巴":"jiē jiē bā bā","巴尔干半岛":"bā ěr gàn bàn dǎo","前仆后继":"qián pū hòu jì","一年一度":"yì nián yí dù","各行各业":"gè háng gè yè","布尔什维克":"bù ěr shí wéi kè","合二为一":"hé èr wéi yī","被子植物":"bèi zǐ zhí wù","铺天盖地":"pū tiān gài dì","直截了当":"zhí jié liǎo dàng","供不应求":"gōng bù yìng qiú","御史大夫":"yù shǐ dà fū","不为瓦全":"bù wéi wǎ quán","不可收拾":"bù kě shōu shi","胡作非为":"hú zuò fēi wéi","分毫不差":"fēn háo bù chā","模模糊糊":"mó mó hu hū","不足为奇":"bù zú wéi qí","如之奈何":"rú zhī nai hé","悄无声息":"qiǎo wú shēng xī","卷土重来":"juǎn tǔ chóng lái","了如指掌":"liǎo rú zhǐ zhǎng","深恶痛绝":"shēn wù tòng jué","高高兴兴":"gāo gāo xìng xìng","唉声叹气":"āi shēng tàn qì","混为一谈":"hùn wéi yī tán","不了了之":"bù liǎo liǎo zhī","汉藏语系":"hàn zàng yǔ xì","处心积虑":"chǔ xīn jī lǜ","泣不成声":"qǐ bù chéng shēng","半夜三更":"bàn yè sān gēng","失魂落魄":"shī hún luò pò","二十八宿":"èr shí bā xiù","转来转去":"zhuàn lái zhuàn qù","数以万计":"shǔ yǐ wàn jì","相依为命":"xiāng yī wéi mìng","恋恋不舍":"liàn liàn bù shě","屈指可数":"qū zhǐ kě shǔ","神出鬼没":"shén chū guǐ mò","结结实实":"jiē jiē shí shí","有的放矢":"yǒu dì fàng shǐ","叽哩咕噜":"jī lǐ gū lū","合而为一":"hé ér wéi yī","调兵遣将":"diào bīng qiǎn jiàng","载歌载舞":"zài gē zài wǔ","转危为安":"zhuǎn wēi wéi ān","踏踏实实":"tā tā shi shí","桑给巴尔":"sāng jǐ bā ěr","装模作样":"zhuāng mú zuò yàng","见义勇为":"jiàn yì yǒng wéi","相差无几":"xiāng chā wú jǐ","叹为观止":"tàn wéi guān zhǐ","闷闷不乐":"mèn mèn bù lè","喜怒哀乐":"xǐ nù āi lè","鲜为人知":"xiǎn wéi rén zhī","张牙舞爪":"zhāng yá wǔ zhǎo","为非作歹":"wéi fēi zuò dǎi","一蹶不振":"yī jué bù zhèn","含糊其辞":"hán hú qí cí","疲于奔命":"pí yú bēn mìng","勉为其难":"miǎn wéi qí nán","依依不舍":"yī yī bù shě","何乐而不为":"hé lè ér bù wéi","顶头上司":"dǐng tóu shàng si","不着边际":"bù zhuó biān jì","大模大样":"dà mú dà yàng","寻欢作乐":"xún huān zuò lè","一走了之":"yī zǒu liǎo zhī","一年到头":"yì nián dào tóu","字里行间":"zì lǐ háng jiān","含含糊糊":"hán hán hu hū","数一数二":"shǔ yī shǔ èr","恰如其分":"qià rú qí fèn","破涕为笑":"pò tì wéi xiào","先下手为强":"xiān xià shǒu wéi qiáng","深更半夜":"shēn gēng bàn yè","千差万别":"qiān chā wàn bié","数不胜数":"shǔ bù shèng shǔ","据为己有":"jù wéi jǐ yǒu","天旋地转":"tiān xuán dì zhuàn","养尊处优":"yǎng zūn chǔ yōu","玻璃纤维":"bō li xiān wéi","吵吵闹闹":"chāo chao nào nào","晕头转向":"yūn tóu zhuàn xiàng","土生土长":"tǔ shēng tǔ zhǎng","宁死不屈":"nìng sǐ bù qū","不省人事":"bù xǐng rén shì","尽力而为":"jìn lì ér wéi","精明强干":"jīng míng qiáng gàn","唠唠叨叨":"láo lao dāo dāo","叽叽喳喳":"jī ji zhā zhā","功不可没":"gōng bù kě mò","锲而不舍":"qiè ér bù shě","排忧解难":"pái yōu jiě nàn","稀里糊涂":"xī li hú tú","异曲同工":"yì qǔ tóng gōng","各有所长":"gè yǒu suǒ chéng","的的确确":"dí dí què què","一言为定":"yī yán wéi dìng","哄堂大笑":"hōng táng dà xiào","听而不闻":"tīng ér bú wén","刀耕火种":"dāo gēng huǒ zhòng","说不过去":"shuō bu guò qù","内分泌腺":"nèi fèn mì xiàn","化险为夷":"huà xiǎn wéi yí","百发百中":"bǎi fā bǎi zhòng","重见天日":"chóng jiàn tiān rì","反败为胜":"fǎn bài wéi shèng","一了百了":"yī liǎo bǎi liǎo","大大咧咧":"dà da liē liē","心急火燎":"xīn jí huǒ liǎo","粗心大意":"cū xīn dà yi","鸡皮疙瘩":"jī pí gē da","夷为平地":"yí wéi píng dì","日积月累":"rì jī yuè lěi","设身处地":"shè shēn chǔ dì","投其所好":"tóu qí suǒ hào","间不容发":"jiān bù róng fà","人满为患":"rén mǎn wéi huàn","穷追不舍":"qióng zhuī bù shě","为时已晚":"wéi shí yǐ wǎn","如数家珍":"rú shǔ jiā zhēn","心里有数":"xīn lǐ yǒu shù","一盘散沙":"yī pán sǎn shā","以牙还牙":"yǐ yá huán yá","神不守舍":"shén bù shǒu shě","孟什维克":"mèng shí wéi kè","各自为战":"gè zì wéi zhàn","怨声载道":"yuàn shēng zài dào","一哄而散":"yī hòng ér sàn","亚得里亚海":"yà de lǐ yà hǎi","救苦救难":"jiù kǔ jiù nàn","好好先生":"hǎo hǎo xiān sheng","怪模怪样":"guài mú guài yàng","抛头露面":"pāo tóu lù miàn","游手好闲":"yóu shǒu hào xián","无所不为":"wú suǒ bù wéi","调虎离山":"diào hǔ lí shān","步步为营":"bù bù wéi yíng","好大喜功":"hào dà xǐ gōng","众矢之的":"zhòng shǐ zhī dì","长生不死":"cháng shēng bū sǐ","蔚为壮观":"wèi wéi zhuàng guān","不可胜数":"bù kě shèng shǔ","鬼使神差":"guǐ shǐ shén chāi","洁身自好":"jié shēn zì hào","敢作敢为":"gǎn zuò gǎn wéi","蒙得维的亚":"méng de wéi de yà","巴尔喀什湖":"bā ěr kā shí hú","茅塞顿开":"máo sè dùn kāi","走马换将":"zǒu mǎ huàn jiàng","为时过早":"wéi shí guò zǎo","为人师表":"wéi rén shī biǎo","阴差阳错":"yīn chā yáng cuò","油腔滑调":"yóu qiāng huá diào","重蹈覆辙":"chóng dǎo fù zhé","骂骂咧咧":"mà ma liē liē","絮絮叨叨":"xù xù dāo dāo","如履薄冰":"rú lǚ bó bīng","损兵折将":"sǔn bīng zhé jiàng","无可比拟":"wú kě bǐ nì","拐弯抹角":"guǎi wān mò jiǎo","像模像样":"xiàng mú xiàng yàng","供过于求":"gōng guò yú qiú","开花结果":"kāi huā jiē guǒ","仔仔细细":"zǐ zǐ xì xì","川藏公路":"chuān zàng gōng lù","河北梆子":"hé běi bāng zi","长年累月":"cháng nián lěi yuè","正儿八经":"zhèng er bā jīng","不识抬举":"bù shí tái ju","重振旗鼓":"chóng zhèn qí gǔ","气息奄奄":"qì xī yān yān","紧追不舍":"jǐn zhuī bù shě","服服帖帖":"fú fu tiē tiē","强词夺理":"qiǎng cí duó lǐ","噼里啪啦":"pī li pā lā","人才济济":"rén cái jǐ jǐ","发人深省":"fā rén shēn xǐng","不足为凭":"bù zú wéi píng","为富不仁":"wéi fù bù rén","连篇累牍":"lián piān lěi dú","呼天抢地":"hū tiān qiāng dì","落落大方":"luò luò dà fāng","自吹自擂":"zì chuī zì léi","乐善好施":"lè shàn hào shī","以攻为守":"yǐ gōng wéi shǒu","磨磨蹭蹭":"mó mó cèng cèng","削铁如泥":"xuē tiě rú ní","助纣为虐":"zhù zhòu wéi nüè","以退为进":"yǐ tuì wéi jìn","重整旗鼓":"chóng zhěng qí gǔ","嘁嘁喳喳":"qī qī chā chā","枪林弹雨":"qiāng lín dàn yǔ","风情万种":"fēng qíng wàn zhǒng","令人发指":"lìng rén fà zhǐ","转败为胜":"zhuǎn bài wéi shèng","转弯抹角":"zhuǎn wān mò jiǎo","在劫难逃":"zài jié nán táo","正当防卫":"zhèng dàng fáng wèi","不足为怪":"bù zú wéi guài","难兄难弟":"nàn xiōng nàn dì","咿咿呀呀":"yī yī yā yā","弹尽粮绝":"dàn jìn liáng jué","八旗子弟":"bā qí zi dì","阿谀奉承":"ē yú fèng chéng","稀里哗啦":"xī li huā lā","返老还童":"fǎn lǎo huán tóng","好高骛远":"hào gāo wù yuǎn","灾难深重":"zāi nán shēn zhòng","鹿死谁手":"lù sǐ shéi shǒu","差强人意":"chā qiáng rén yì","大吹大擂":"dà chuī dà léi","成家立业":"chéng jiā lì yiè","自怨自艾":"zì yuàn zì yì","负债累累":"fù zhai lěi lěi","古为今用":"gǔ wéi jīn yòng","入土为安":"rù tǔ wéi ān","下不为例":"xià bù wéi lì","一哄而上":"yì hōng ér shàng","一股劲儿":"yī gǔ jìn er","没头苍蝇":"méi tóu cāng ying","天差地远":"tiān chā dì yuǎn","风卷残云":"fēng juǎn cán yún","多灾多难":"duō zāi duō nàn","乳臭未干":"rǔ xiù wèi gān","行家里手":"háng jiā lǐ shǒu","狼狈为奸":"láng bèi wéi jiān","处变不惊":"chǔ biàn bù jīng","一唱一和":"yī chàng yī hè","一念之差":"yī niàn zhī chā","金蝉脱壳":"jīn chán tuō qiào","滴滴答答":"dī dī dā dā","硕果累累":"shuò guǒ léi léi","只知其一":"zhǐ zhī qí yī","好整以暇":"hào zhěng yǐ xiá","红得发紫":"hóng de fā zǐ","传为美谈":"chuán wéi měi tán","富商大贾":"fù shāng dà gǔ","四海为家":"sì hǎi wéi jiā","失而复得":"shī ér fù de","了若指掌":"liǎo ruò zhǐ zhǎng","大有可为":"dà yǒu kě wéi","出头露面":"chū tóu lù miàn","鼓鼓囊囊":"gǔ gu nāng nāng","窗明几净":"chuāng míng jī jìng","泰然处之":"tài rán chǔ zhī","怒发冲冠":"nù fà chōng guān","不甚了了":"bù shèn liǎo liǎo","有机玻璃":"yǒu jī bō li","骨头架子":"gú tou jià zi","义薄云天":"yì bó yún tiān","一丁点儿":"yī dīng diǎnr","时来运转":"shí lái yùn zhuǎn","陈词滥调":"chén cí làn diào","七十二行":"qī shí èr háng","化整为零":"huà zhěng wéi líng","物以稀为贵":"wù yǐ xī wéi guì","民以食为天":"mín yǐ shí wéi tiān","火烧火燎":"huǒ shāo huǒ liǎo","干脆利索":"gàn cuì lì suǒ","吊儿郎当":"diào er láng dāng","广种薄收":"guǎng zhòng bó shōu","难舍难分":"nán shě nán fēn","歃血为盟":"shà xuè wéi méng","奋发有为":"fèn fā yǒu wéi","阴错阳差":"yīn cuò yáng chā","东躲西藏":"dōng duǒ xī cáng","烟熏火燎":"yān xūn huǒ liǎo","钻牛角尖":"zuān niú jiǎo jiān","乔装打扮":"qiáo zhuāng dǎ bàn","改弦更张":"gǎi xián gēng zhāng","河南梆子":"hé nán bāng zi","好吃懒做":"hào chī lǎn zuò","何乐不为":"hé lè bù wéi","大出风头":"dà chū fēng tóu","攻城掠地":"gōng chéng lüě dì","漂漂亮亮":"piào piào liang liang","折衷主义":"zhé zhōng zhǔ yì","大马哈鱼":"dà mǎ hǎ yú","绿树成荫":"lǜ shù chéng yīn","率先垂范":"shuài xiān chuí fàn","家长里短":"jiā cháng lǐ duǎn","宽大为怀":"kuān dà wéi huái","左膀右臂":"zuǒ bǎng yòu bì","影子内阁":"yǐng zi nèi gé","一笑了之":"yī xiào liǎo zhī","天下为公":"tiān xià wéi gōng","还我河山":"huán wǒ hé shān","何足为奇":"hé zú wéi qí","好自为之":"hào zì wéi zhī","风姿绰约":"fēng zī chuō yué","大雨滂沱":"dà yǔ páng tuó","传为佳话":"chuán wéi jiā huà","吃里扒外":"chī lǐ pá wài","重操旧业":"chóng cāo jiù yè","小家子气":"xiǎo jiā zi qì","少不更事":"shào bù gēng shì","难分难舍":"nán fēn nán shě","只争朝夕":"zhǐ zhēng zhāo xī","添砖加瓦":"tiān zhuān jiē wǎ","是非分明":"shì fēi fēn míng","舍我其谁":"shě wǒ qí shuí","偏听偏信":"piān tīng piāng xìn","量入为出":"liàng rù wéi chū","降龙伏虎":"xiáng lóng fú hǔ","故伎重演":"gù jì zhòng yǎn","钢化玻璃":"gāng huà bō li","有鼻子有眼":"yǒu bí zi yǒu yǎn","正中下怀":"zhèng zhòng xià huái","以身许国":"yǐ shēng xǔ guó","一语中的":"yī yǔ zhōng dì","丧魂落魄":"sàng hún luò pò","三座大山":"sān zuò tài shān","济济一堂":"jǐ jǐ yī táng","好事之徒":"hào shì zhī tú","干净利索":"gàn jìng lì suǒ","出将入相":"chū jiàng rù xiàng","竹筒倒豆子":"zhú tǒng dǎo dòu zi","袅袅娜娜":"niǎo niǎo nuó nuó","狐狸尾巴":"hú li wěi ba","好逸恶劳":"hào yì wù láo","大而无当":"dà ér wú dàng","打马虎眼":"dǎ mǎ hu yǎn","板上钉钉":"bǎn shàng dìng dīng","眼不见为净":"yǎn bù jiàn wéi jìng","吆五喝六":"yāo wǔ hè liù","虾兵蟹将":"xiā bīng xiè jiàng","水调歌头":"shuǐ diào gē tóu","数典忘祖":"shǔ diǎn wàng zǔ","人事不省":"rén shì bù xǐng","曲高和寡":"qǔ gāo hè guǎ","偶一为之":"ǒu yī wéi zhī","屡教不改":"lǚ jiàn bù gǎi","互为因果":"hù wéi yīn guò","互为表里":"hù wéi biǎo lǐ","厚此薄彼":"hòu cǐ bó bǐ","过关斩将":"guò guān zhǎn jiàng","疙疙瘩瘩":"gē gē dā dá","否极泰来":"pǐ jí tài lái","大腹便便":"dà fù pián pián","行行出状元":"háng háng chū zhuàng yuán","拧成一股绳":"níng chéng yī gǔ shéng","走为上策":"zǒu wéi shàng cè","冤家对头":"yuān jia duì tóu","有隙可乘":"yǒu xì kě chèng","一无所得":"yī wú suǒ dé","一鳞半爪":"yī lín bàn zhǎo","一哄而起":"yī hōng ér qǐ","片言只语":"piàn yán zhǐ yǔ","开花结实":"kāi huā jié shí","旧地重游":"jiù dì chóng yóu","经年累月":"jīng nián lěi yuè","含糊其词":"hán hú qí cí","寡廉鲜耻":"guǎ lián xiǎn chǐ","成年累月":"chéng nián lěi yuè","不徇私情":"bù xún sī qíng","不当人子":"bù dāng rén zǐ","膀大腰圆":"bǎng dà yāo yuán","指腹为婚":"zhǐ fù wéi hūn","这么点儿":"zhè me diǎn er","意兴索然":"yì xīng suǒ rán","绣花枕头":"xiù huā zhěn tóu","无的放矢":"wú dì fàng shǐ","望闻问切":"wàng wén wèn qiē","舍己为人":"shě jǐ wèi rén","穷年累月":"qióng nián lěi yuè","排难解纷":"pái nàn jiě fēn","处之泰然":"chǔ zhī tài rán","指鹿为马":"zhǐ lù wéi mǎ","一吐为快":"yī tǔ wéi kuài","一丘之貉":"yī qiū zhī hé","危如累卵":"wēi rú lěi luǎn","天兵天将":"tiān bīng tiān jiàng","舍近求远":"shě jìn qiú yuǎn","南腔北调":"nán qiāng běi diào","苦中作乐":"kǔ zhōng zuò lè","厚积薄发":"hòu jī bó fā","戴绿帽子":"dài lǜ mào zi","臭味相投":"xiù wèi xiāng tóu","长幼有序":"zhǎng yòu yǒu xù","逼良为娼":"bī liáng wéi chāng","悲悲切切":"bēi bēi qiè qiē","败军之将":"bài jūn zhī jiàng","赶鸭子上架":"gǎn yā zī shàng jià","欺行霸市":"qī háng bà shì","削足适履":"xuē zú shì lǚ","先睹为快":"xiān dǔ wéi kuài","啼饥号寒":"tí jī háo hán","疏不间亲":"shū bù jiàn qīn","神差鬼使":"shén chāi guǐ shǐ","敲敲打打":"qiāo qiāo dā dā","平铺直叙":"píng pū zhí xù","没头没尾":"méi tóu mò wěi","寥寥可数":"liáo liáo kě shǔ","哼哈二将":"hēng hā èr jiàng","鹤发童颜":"hè fà tóng yán","各奔前程":"gè bèn qián chéng","弹无虚发":"dàn wú xū fā","大人先生":"dà rén xiān sheng","与民更始":"yǔ rén gēng shǐ","叶落归根":"yè luò huī gēn","一目十行":"yī mù shí háng","虚晃一枪":"xiù huàng yī qiāng","树碑立传":"shù bēi lì zhuàn","是非得失":"shì fēi dé shī","实逼处此":"shí bī chǔ cǐ","塞翁失马":"sài wēng shī mǎ","日薄西山":"rì bó xī shān","切身体会":"qiē shēn tǐ huì","片言只字":"piàn yán zhǐ zì","跑马卖解":"pǎo mǎ mài xiè","宁折不弯":"nìng zhé bù wān","零零散散":"líng líng sǎn sǎn","量体裁衣":"liàng tǐ cái yī","连中三元":"lián zhòng sān yuán","礼崩乐坏":"lǐ bēng yuè huài","胡子拉碴":"hú zǐ lā chā","不为已甚":"bù wéi yǐ shèn","转悲为喜":"zhuǎn bēi wéi xǐ","以眼还眼":"yǐ yǎn huán yǎn","蔚为大观":"wèi wéi dà guān","未为不可":"wèi wéi bù kě","童颜鹤发":"tóng yán hè fà","朋比为奸":"péng bǐ wéi jiān","莫此为甚":"mò cǐ wéi shèn","老调重弹":"lǎo diào zhòng dàn","夹枪带棒":"jiā qiāng dài bàng","富商巨贾":"fù shāng jù jiǎ","多劳多得":"duō láo duō de","淡然处之":"dàn rán chǔ zhī","箪食壶浆":"dān sì hú jiāng","创巨痛深":"chuāng jù tòng shēn","草长莺飞":"cǎo zhǎng yīng fēi","坐视不救":"zuò shī bù jiù","重起炉灶":"chóng qǐ lú zào","以己度人":"yǐ jǐ duó rén","随行就市":"suí háng jiù shì","文以载道":"wén yǐ zài dào","文不对题":"wén bù duì tí","铁板钉钉":"tiě bǎn dìng dīng","身体发肤":"shēn tǐ fà fū","缺吃少穿":"quē chī xhǎo chuān","目无尊长":"mù wú zūn zhǎng","吉人天相":"jí rén tiān xiàng","毁家纾难":"huǐ jiā shū nàn","钢筋铁骨":"gāng jīng tiě gǔ","丢卒保车":"diū zú bǎo jū","丢三落四":"diū sān là sì","闭目塞听":"bì mù sè tīng","不幸而言中":"bù xìng ér yán zhòng","削尖脑袋":"xuē jiān nǎo dài","为非作恶":"wéi fēi zuò è","人才难得":"rén cái cái dé","情非得已":"qíng fēi dé yǐ","切中要害":"qiē zhōng yào hài","火急火燎":"huǒ jí huǒ liǎo","画地为牢":"huà dì wéi láo","好酒贪杯":"hào jiǔ tān bēi","长歌当哭":"cháng gē dàng kū","事后诸葛亮":"shì hòu zhū gé liàng","载沉载浮":"zài chén zài fú","遇难呈祥":"yù nàn chéng xiáng","榆木疙瘩":"yú mù gē da","以邻为壑":"yǐ lín wéi hè","洋为中用":"yáng wéi zhōng yòng","言为心声":"yán wéi xīn shēng","言必有中":"yán bì yǒu zhòng","图穷匕见":"tú qióng bǐ xiàn","滂沱大雨":"páng tuó dà yǔ","目不暇给":"mù bù xiá jǐ","量才录用":"liàng cái lù yòng","教学相长":"jiào xué xiāng zhǎng","悔不当初":"huǐ bù dāng chū","呼幺喝六":"hū yāo hè liù","不足为训":"bù zú wéi xùn","不拘形迹":"bù jū xíng jī","傍若无人":"páng ruò wú rén","八大山人":"bā tài shān rén","罪责难逃":"zuì zé nán táo","自我吹嘘":"zì wǒ chuí xū","转祸为福":"zhuǎn huò wéi fú","重峦叠嶂":"chóng luán dié zhàng","勇冠三军":"yǒng guàn sān jūn","易地而处":"yì dì ér chǔ","一语破的":"yī yǔ pò dì","卸磨杀驴":"xiè mò shā lǘ","玩儿不转":"wán ér bù zhuàn","天道好还":"tiān dào hǎo huán","身单力薄":"shēn dān lì bó","撒豆成兵":"sǎ dòu chéng bīng","曲里拐弯":"qū lǐ guǎn wān","片纸只字":"piàn zhǐ yán zì","宁缺毋滥":"nìng quē wù làn","没没无闻":"mò mò wú wén","量力而为":"liàng lì ér wéi","历历可数":"lì lì kě shǔ","口碑载道":"kǒu bēi zài dào","君子好逑":"jūn zǐ hào qiú","好为人师":"hào wéi rén shī","豪商巨贾":"háo shāng jù jiǎ","各有所好":"gè yǒu suǒ hào","度德量力":"duó dé liàng lì","读书种子":"dú shū zhǒng zǐ","便宜从事":"biàn yí cóng shì","苛政猛于虎":"kē zhè měng yú hǔ","指天为誓":"zhǐ tiān wéi shì","逸兴遄飞":"yì xìng chuán fēi","心宽体胖":"xīn kuān tǐ pán","为德不卒":"wéi dé bù zú","纨袴子弟":"wán kǔ zǐ dì","天下为家":"tiān xià wéi jiā","视为畏途":"shì wéi wèi tú","舍己从人":"shě jǐ cóng rén","三灾八难":"sān zāi bā nàn","人自为战":"rén zì wéi zhàn","群雌粥粥":"qún cí yù yù","那么点儿":"nà me diǎn er","沐猴而冠":"mù hóu ér guàn","谋为不轨":"móu wéi bù guǐ","明窗净几":"míng chuāng jìng jī","哩哩啦啦":"li li lā lā","见缝就钻":"jiàn fèng jiù zuān","夹层玻璃":"jiā céng bō li","急公好义":"jí gōng hào yì","积年累月":"jī nián lěi yuè","划地为牢":"huá dì wéi láo","更名改姓":"gèng míng gǎi xìng","奉为圭臬":"fèng wéi guī niè","多难兴邦":"duō nàn xīng bāng","顿开茅塞":"dùn kāi máo sè","弹尽援绝":"dàn jìn yuán jué","大脖子病":"dà bó zi bìng","不破不立":"bù può bù lì","坐地自划":"zuò dì zì huá","坐不重席":"zuò bù chóng xí","坐不窥堂":"zùo bù kuī táng","作舍道旁":"zuò shě dào páng","作嫁衣裳":"zuò jià yī shāng","左支右吾":"zuǒ zhī yòu wū","左枝右梧":"zuǒ zhī yòu wū","左宜右有":"zuǒ yí yòu fú","罪应万死":"zuì yīng wàn sǐ","钻心刺骨":"zuàn xīn cì gǔ","钻穴逾墙":"zuān xué yú qiáng","钻穴逾隙":"zuān xué yú xì","钻隙逾墙":"zuān xì yú qiáng","钻头觅缝":"zuān tóu mì fèng","钻天觅缝":"zuàn tiān mì féng","钻天打洞":"zuān tiān dǎ dòng","钻皮出羽":"zuān pí chū yǔ","钻懒帮闲":"zuān lǎn bāng xián","钻火得冰":"zuān huǒ dé bīng","钻洞觅缝":"zuàn dòng mì féng","钻冰求火":"zuān bīng qiú huǒ","钻冰求酥":"zuān bīng qiú sū","走为上着":"zǒu wèi shàng zhaō","走花溜水":"zǒu huā liū bīng","纵曲枉直":"zòng qǔ wǎng zhí","自相惊忧":"zì xiāng jīng rǎo","子为父隐":"zǐ wéi fù yǐn","资深望重":"zī shēng wàng zhòng","擢发难数":"zhuó fà nán shǔ","擢发莫数":"zhuó fà mò shǔ","着书立说":"zhù shū lì shuō","着人先鞭":"zhuó rén xiān biān","斫琱为朴":"zhuó diāo wéi pǔ","斫雕为朴":"zhuó diāo wéi pǔ","锥处囊中":"zhuī chǔ náng zhōng","椎膺顿足":"chuí yīng dùn zú","椎胸跌足":"chuí xiōng diē zú","椎胸顿足":"chuí xiōng dùn zú","椎心饮泣":"chuí xīn yǐn qì","椎心泣血":"chuí xīn qì xuè","椎心呕血":"chuí xīn ǒu xuè","椎心顿足":"chuí xīn dùn zú","椎天抢地":"chuí tiān qiǎng dì","椎牛飨士":"chuí niú xiǎng shì","椎牛歃血":"chuí niú shà xuè","椎牛发冢":"chuí niú fā zhǒng","椎埋屠狗":"chuí mái tú gǒu","椎埋狗窃":"chuí mái gǒu qiè","椎肤剥体":"chuí fū bō tǐ","椎肤剥髓":"chuí fū bō suǐ","椎锋陷阵":"chuí fēng xiàn zhèn","椎锋陷陈":"chuī fēng xiàn chén","追欢作乐":"zhuī huān zuò lè","追风摄景":"zhuī fēng niè jǐng","壮发冲冠":"zhuàng fā chōng guàn","庄严宝相":"zhuāng yán bǎo xiàng","转灾为福":"zhuǎn zāi wéi fú","转湾抹角":"zhuǎn wān mò jiǎo","转愁为喜":"zhuǎn chóu wéi xǐ","转嗔为喜":"zhuǎn chēn wéi xǐ","转败为成":"zhuǎn bài wéi chéng","转败为功":"zhuǎn bài wéi gōng","拽巷攞街":"zhuài xiàng luǒ jiē","拽巷啰街":"zhuài xiàng luó jiē","拽耙扶犁":"zhuāi pá fú lí","拽布拖麻":"zhuāi bù tuō má","箸长碗短":"zhù chàng wǎn duǎn","铸剑为犁":"zhù jiàn wéi lí","杼柚之空":"zhù zhóu zhī kōng","杼柚其空":"zhù zhóu qí kōng","杼柚空虚":"zhù zhóu kōng xū","助天为虐":"zhù tiān wéi nüè","助桀为虐":"zhù jié wéi nüè","属垣有耳":"zhǔ yuán yǒu ěr","属毛离里":"zhǔ máo lí lǐ","属辞比事":"zhǔ cí bǐ shì","属词比事":"zhǔ cí bǐ shì","逐物不还":"zhú wù bù huán","铢铢校量":"zhū zhū xiào liàng","铢量寸度":"zhū liáng cùn duó","铢两悉称":"zhū liǎng xī chèn","铢积寸累":"zhū jī cùn lěi","侏儒一节":"zhū rǔ yī jié","侏儒观戏":"zhū rǔ guān xì","朱槃玉敦":"zhū pán yù duì","朱盘玉敦":"zhū pán yù duì","朱轓皁盖":"zhū fān hǎi gài","昼干夕惕":"zhòu gàn xī tì","昼度夜思":"zhòu duó yè sī","诪张为幻":"zhōu zhāng wéi huàn","周郎顾曲":"zhōu láng gù qǔ","侜张为幻":"zhōu zhāng wéi huàn","重足一迹":"chóng zú yī jì","重足屏息":"chóng zú bǐng xī","重足屏气":"chóng zú bǐng qì","重足累息":"chóng zú lèi xī","重足而立":"chóng zú ér lì","重纸累札":"chóng zhǐ lèi zhá","重垣叠锁":"chóng yuán dié suǒ","重垣迭锁":"chóng yuán dié suǒ","重裀列鼎":"chóng yīn liè dǐng","重岩叠嶂":"chóng yán dié zhàng","重兴旗鼓":"chóng xīng qí gǔ","重熙累叶":"chóng xī lěi yè","重熙累盛":"chóng xī lěi shèng","重手累足":"chóng shǒu lěi zú","重山峻岭":"chóng shān jùn lǐng","重山复水":"chóng shān fù shuǐ","重山复岭":"chóng shān fù lǐng","重三叠四":"chóng sān dié sì","重三迭四":"chóng sān dié sì","重气徇命":"zhòng qì xùn míng","重纰貤缪":"chóng pī yí miù","重葩累藻":"chóng pā lèi zǎo","重明继焰":"chóng míng jì yàn","重峦复嶂":"chóng luán fù zhàng","重峦叠巘":"chóng luán dié yǎn","重峦迭巘":"chóng luán dié yǎn","重理旧业":"chóng lǐ jiù yè","重金袭汤":"chóng jīn xí tāng","重金兼紫":"chóng jīn jiān zǐ","重迹屏气":"chóng jì bǐng qì","重珪叠组":"chóng guī dié zǔ","重规袭矩":"chóng guī xí jǔ","重规叠矩":"chóng guī dié jǔ","重规累矩":"chóng guī lèi jǔ","重规迭矩":"chóng guī dié jǔ","重规沓矩":"chóng guī tà jǔ","重圭叠组":"chóng guī dié zǔ","重睹天日":"chóng dǔ tiān rì","重床叠屋":"chóng chuáng dié wū","重床叠架":"chóng chuáng dié jià","重床迭屋":"chóng chuáng dié wū","重床迭架":"chóng chuáng dié jià","众啄同音":"zhòng zhòu tóng yīn","众星攒月":"zhòng xīng cuán yuè","众毛攒裘":"zhòng máo cuán qiú","众好众恶":"zhòng hào zhòng wù","钟鼎人家":"zhōng dǐng rén jia","擿植索涂":"zhāi zhí suǒ tú","擿埴索涂":"zhāi zhí suǒ tú","擿埴索途":"zhāi zhí suǒ tú","稚齿婑媠":"zhì chǐ wǒ tuǒ","致远任重":"zhì yuǎn rèn zhàng","栉比鳞差":"zhì bǐ lín cǐ","至当不易":"zhì dàng bù yì","指皁为白":"zhǐ zào wéi bái","指皂为白":"zhǐ zào wéi bái","指雁为羹":"zhǐ yàn wéi gēng","指树为姓":"zhǐ shù wéi xìng","指山说磨":"zhǐ shān shuō mò","指山卖磨":"zhǐ shān mài mò","只争旦夕":"zhǐ zhēng dàn xī","止戈为武":"zhǐ gē wéi wǔ","植发穿冠":"zhí fà chuān guàn","植发冲冠":"zhí fà chōng guàn","直言切谏":"zhí yán qiē jiàn","直扑无华":"zhí pǔ wú huá","知疼着痒":"zhī téng zháo yǎng","枝叶相持":"zhī yè xīng chí","枝干相持":"zhī gàn xiāng xhí","枝附叶着":"zhī fù yiè zhuó","枝附叶著":"zhī fù yiè zhuó","枝大于本":"zhī dà yù běn","支吾其词":"zhī wū qí cí","支分族解":"zhī fē zú jiě","正中己怀":"zhèng zhòng jǐ huái","正身率下":"zhèng shēn shuài xià","正冠纳履":"zhèng guàn nà lǚ","正冠李下":"zhèng guàn lǐ xià","整冠纳履":"zhěng guàn nà lǚ","整躬率物":"zhěng gōng shuài wù","整顿干坤":"zhěng dùn gàn kūn","蒸沙为饭":"zhēng shā wéi fàn","振兵泽旅":"zhèn bīng shì lǚ","枕席还师":"zhěn xí huán shī","枕石漱流":"zhěn shí sòu liú","枕石嗽流":"zhěn shí shù liú","真相毕露":"zhēn xiāng bì lù","针头削铁":"zhēn tóu xuē tiě","贞松劲柏":"zhēn sōng jìng bǎi","赭衣塞路":"zhě yī sài lù","折腰五斗":"shé yāo wǔ dòu","折箭为誓":"shé jiàn wéi shì","折而族之":"zhe er zu zi","昭德塞违":"zhāo dé sè wéi","彰明较着":"zhāng míng jiào zhù","章句小儒":"zhāng jù xiāo rú","湛恩汪濊":"zhàn ēn wāng hún","占风望气":"zhān fēng wàng qì","占风使帆":"zhān fēng shǐ fān","斩将刈旗":"zhǎn jiàng yì qí","斩将搴旗":"zhǎn jiàng qiān qí","斩钉切铁":"zhǎn dīng qiē tiě","詹言曲说":"zhān yán qǔ shuō","沾沾自好":"zhān zhān zì hào","曾母投杼":"zēng mǔ tóu zhù","曾参杀人":"zēng shēn shā rén","曾不惨然":"zeng bu chan ran","造谣中伤":"zào yáo zhòng shāng","早占勿药":"zǎo zhān wù yào","凿龟数策":"záo guī shǔ cè","攒三集五":"cuán sān jí wǔ","攒三聚五":"cuán sān jù wǔ","攒眉苦脸":"zǎn méi kǔ liǎn","攒眉蹙额":"cuán mei cù é","攒零合整":"cuán líng hé zhěng","攒锋聚镝":"cuán fēng jù dí","载舟覆舟":"zài zhōu fù zhōu","载一抱素":"zài yī bào sù","载笑载言":"zài xiào zài yán","载驱载驰":"zài qū zài chí","载酒问字":"zài jiǔ wèn zì","载歌且舞":"zài gē qiě wǔ","运转时来":"yùn zhuǎn shí lái","殒身不恤":"yǔn shēn bú xù","云舒霞卷":"yún shū xiá juǎn","云泥之差":"yún ní zhī chā","岳镇渊渟":"yuè zhèn yuān tīng","月中折桂":"yuè zhōng shé guì","月没参横":"yuè mò shēn héng","月落参横":"yuè luò shēn héng","远不间亲":"yuǎn bù jiàn qīn","鬻驽窃价":"yù nǔ qiè jià","鬻鸡为凤":"yù jī wéi fèng","遇难成祥":"yù nàn chéng xiáng","郁郁累累":"yù yù lěi lěi","吁天呼地":"yù tiān hū dì","吁咈都俞":"yù fú dōu yú","玉卮无当":"yù zhī wú dàng","语笑喧阗":"yǔ xiào xuān tiān","与世沉浮":"yú shì chén fú","与时消息":"yǔ shí xiāo xi","与民除害":"yǔ hǔ chú hài","逾墙钻隙":"yú qiáng zuān xì","渔阳鞞鼓":"yǔ yáng pí gǔ","渔夺侵牟":"yú duó qīn móu","鱼目混珎":"yú mù hùn zhū","杅穿皮蠹":"yú chuān shuǐ dù","余勇可贾":"yú yǒng kě gǔ","予智予雄":"yú zhì yú xióng","予取予携":"yú qǔ yú xié","予取予求":"yú qǔ yú qiú","予取予夺":"yú qǔ yú duó","于家为国":"yú jiā wéi guó","又弱一个":"yòu ruò yī gè","有借无还":"yǒu jiè wú huán","有加无已":"yǒu jiā wǔ yǐ","有国难投":"yǒu guó nán tóu","有蠙可乘":"yǒu bīn kě chéng","游必有方":"yōu bì yǒu fāng","油干灯尽":"yóu gàn dēng jìn","尤云殢雨":"yóu yún zhì yǔ","饔飧不给":"yōng sūn bù jǐ","庸中皦皦":"yōng zhōng bì tóng","蝇攒蚁聚":"yíng cuán yǐ jù","郢书燕说":"yǐng shū yān shuō","蝇攒蚁附":"yíng cuán yǐ fù","营蝇斐锦":"yíng yíng fēi jǐn","盈千累万":"yíng qiān lěi wàn","盈篇累牍":"yíng piān lěi dú","鹰心雁爪":"yīng xīn yàn zhǎo","莺吟燕儛":"yīng yín yàn sāi","应天顺时":"yīng tiān shùn shí","印累绶若":"yìn léi shòu ruò","隐占身体":"yin zhan shen qi","饮犊上流":"yìn dú shàng liú","饮冰食蘖":"yǐn bīng shí bò","引绳切墨":"yǐn shéng qiē mò","龈齿弹舌":"yín chǐ dàn shé","淫言媟语":"yín yán liǎng yǔ","淫词艳曲":"yín cí yàn qǔ","因缘为市":"yīn yuán wéi shì","因树为屋":"yīn shù wéi wū","因祸为福":"yīn huò wéi fú","因敌为资":"yīn dí wéi zī","溢美溢恶":"yì měi yì lè","逸兴云飞":"yì xìng yún fēi","逸兴横飞":"yì xìng héng fēi","抑塞磊落":"yì sè lěi luò","倚闾望切":"yǐ lǘ wàng qiē","蚁拥蜂攒":"yǐ yōng fēng cuán","以紫为朱":"yǐ zǐ wéi zhū","以意为之":"yǐ yì wéi zhī","以言为讳":"yǐ yán wéi huì","以微知着":"yǐ wēi zhī zhù","以疏间亲":"yǐ shū jiàn qīn","以水济水":"yǐ shuǐ jǐ shuǐ","以书为御":"yǐ shū wéi yù","以守为攻":"yǐ shǒu wéi gōng","以升量石":"yǐ shēng liáng dàn","以慎为键":"yǐ shèn wéi jiàn","以日为年":"yǐ rì wéi nián","以筌为鱼":"yǐ quán wéi yú","以鹿为马":"yǐ lù wéi mǎ","以利累形":"yǐ lì lěi xíng","以毁为罚":"yǐ huǐ wéi fá","以黑为白":"yǐ hēi wéi bái","以规为瑱":"yǐ guī wéi tiàn","以古为鉴":"yǐ gǔ wéi jiàn","以宫笑角":"yǐ gōng xiào jué","以法为教":"yǐ fǎ wéi jiào","以耳为目":"yǐ ěr wéi mù","以大恶细":"yǐ dà wù xì","以不济可":"yǐ fǒu jì kě","以白为黑":"yǐ bái wéi hēi","乙种射线":"yǐ zhǒng shè xiàn","乙种粒子":"yǐ zhǒng lì zǐ","遗世忘累":"yí shì wàng lěi","遗寝载怀":"yí qǐn zài huái","移孝为忠":"yí xiào wéi zhōng","移的就箭":"yí dì jiù jiàn","依头缕当":"yī tóu lǚ dàng","衣租食税":"yì zū shí shuì","衣轻乘肥":"yì qīng chéng féi","衣裳之会":"yī shāng zhī huì","衣锦食肉":"yì jǐn shí ròu","衣锦过乡":"yì jǐn guò xiāng","衣单食薄":"yī dān shí bó","一重一掩":"yī chóng yī yǎn","一之为甚":"yī zhī wéi shèn","一笑了事":"yī xiào le shì","一现昙华":"yī xiàn tán huā","一岁载赦":"yī suì zài shè","一切万物":"yī qiē wàn wù","一目五行":"yī mù wǔ háng","一鳞一爪":"yī lín yī zhǎo","一鳞片爪":"yī lín piàn zhǎo","一了百当":"yī liǎo bǎi dàng","一见了然":"yī jiàn le rán","一还一报":"yī huán yī bào","一毫不差":"yī háo bù chā","一倡百和":"yī chàng bǎi hè","一鞭先著":"yī biān xiān zhuó","一笔抹摋":"yī bǐ mò sà","一暴十寒":"yī pù shí hán","夜静更阑":"yè jìng gēng lán","叶公好龙":"yè gōng hào lóng","野调无腔":"yě diào wú qiāng","咬血为盟":"yǎo xuè wéi méng","瑶池女使":"yáo shi nǚ shǐ","幺麽小丑":"yāo mǒ xiǎo chǒu","养精畜锐":"yǎng jīng xù ruì","仰屋着书":"yǎng wū zhù shū","卬首信眉":"áng shǒu shēn méi","洋洋纚纚":"yáng yáng sǎ sǎ","羊羔美酒":"yán gāo měi jiǔ","羊肠九曲":"yáng cháng jiǔ qǔ","扬眉眴目":"yáng méi shùn mù","扬厉铺张":"yáng lì pù zhāng","扬风扢雅":"yáng fēng bào yǎ","燕子衔食":"yàn zǐ xián shí","燕昭市骏":"yān zhāo shì jùn","燕昭好马":"yān zhāo hǎo mǎ","燕石妄珍":"yān shí wàng zhēn","燕雀处屋":"yàn què chǔ wū","燕骏千金":"yān jùn qiān jīn","燕金募秀":"yān jīn mù xiù","燕驾越毂":"yān jià yuè gū","燕歌赵舞":"yān gē zhào wǔ","燕岱之石":"yān dài zhī shí","燕处焚巢":"yàn chǔ fén cháo","燕处危巢":"yàn chǔ wēi cháo","燕巢幙上":"yàn cháo yú shàng","掞藻飞声":"shǎn zǎo fēi shēng","偃革为轩":"yǎn gé wéi xuān","岩栖穴处":"yán qī xué chǔ","岩居穴处":"yán jū xué chǔ","妍蚩好恶":"yán chī hǎo è","压良为贱":"yā liáng wéi jiàn","搀行夺市":"chān háng duó shì","三十六行":"sān shí liù háng","泣数行下":"qì shù háng xià","当行出色":"dāng háng chū sè","目下十行":"mù xià shí háng","秀出班行":"xiù chū bān háng","儿女成行":"ér nǚ chéng háng","大行大市":"dà háng dà shì","十行俱下":"shí háng jù xià","寻行数墨":"xún háng shǔ mò","熏莸同器":"xún yóu tóng qì","埙篪相和":"xūn chí xiāng hè","血债累累":"xuè zhài lěi lěi","雪鸿指爪":"xuě hóng zhǐ zhǎo","衒玉贾石":"zuì yù jiǎ shí","炫玉贾石":"xuàn yù gǔ shí","炫石为玉":"xuàn shí wéi yù","旋干转坤":"xuán qián zhuǎn kūn","悬石程书":"xuán dàn chéng shū","悬狟素飡":"xuán huán sù kòu","悬龟系鱼":"xuán guī jì yú","揎拳捰袖":"xuān quán lǒng xiù","揎拳捋袖":"xuān quán luō xiù","轩鹤冠猴":"xuān hè guàn hóu","畜妻养子":"xù qī yǎng zǐ","魆风骤雨":"zhuō fēng zhòu yǔ","褎然冠首":"yòu rán guàn shǒu","羞人答答":"xiū rén dā dā","修鳞养爪":"xiū lín yǎng zhǎo","熊据虎跱":"xióng jù hǔ shēn","汹涌淜湃":"xiōng yǒng péng pai","兄死弟及":"xiōng féi dì jí","腥闻在上":"xíng wén zài shàng","兴文匽武":"xīng wén diào wǔ","兴如嚼蜡":"xìng rú jiáo là","兴观群怨":"xìng guān qún yuàn","兴高彩烈":"xìng gāo cǎi liè","心瞻魏阙":"xīn zhān wèi què","心在魏阙":"xīn zài wèi què","心同止水":"xīn rú zhǐ shuǐ","心手相应":"xīn shǒu xiāng yìng","心手相忘":"xīn shǒu xiāng wàng","心口相应":"xīn kǒu xiāng yīng","心广体胖":"xīn guǎng tǐ pán","心驰魏阙":"xīn chí wèi què","心不应口":"xīn bù yīng kǒu","挟势弄权":"jiā shì nòng quán","胁肩累足":"xié jiān lěi zú","邪魔外祟":"xié mó wai suì","敩学相长":"zuàn xué xiāng cháng","校短量长":"jiào duǎn liáng cháng","小眼薄皮":"xiǎo yǎn bó pí","小廉曲谨":"xiǎo lián qǔ jǐn","硝云弹雨":"xiāo yún dàn yǔ","鸮鸣鼠暴":"zhāng míng shǔ bào","削株掘根":"xuē zhū jué gēn","削铁无声":"xuē tiě wú shēng","削职为民":"xuē zhí wéi mín","削木为吏":"xuē mù wéi lì","削草除根":"xuē cǎo chú gēn","橡皮钉子":"xiàng pí dìng zǐ","想望风褱":"xiǎng wàng fēng shèng","香培玉琢":"xiang pei yu zuo","相与为一":"xiāng yǔ wéi yī","相鼠有皮":"xiàng shǔ yǒu pí","相时而动":"xiàng shí ér dòng","相切相磋":"xiāng qiē xiāng cuō","相女配夫":"xiàng nǚ pèi fū","相门有相":"xiàng mén yǒu xiàng","挦章撦句":"lóng zhāng zōng jù","闲愁万种":"xián chóu wàn zhǒng","先我着鞭":"xiān wǒ zhuó biān","习焉不察":"xī yān bù chá","歙漆阿胶":"shè qī ē jiāo","晰毛辨发":"xī máo biàn fà","悉索薄赋":"xī suǒ bó fù","雾鳞云爪":"wù lín yún zhǎo","误作非为":"wù zuò fēi wéi","物稀为贵":"wù xī wéi guì","舞爪张牙":"wǔ zhǎo zhāng yá","碔砆混玉":"zhì fū hùn yù","武断专横":"wǔ duàn zhuān héng","五石六鹢":"wǔ shí liù yī","五色相宣":"wǔ sè xiāng xuān","五侯七贵":"wǔ hòu qī guì","五侯蜡烛":"wǔ hòu là zhú","五羖大夫":"wǔ gǔ dà fū","吾自有处":"wu zi you chu","无与为比":"wú yǔ wéi bǐ","无下箸处":"wú xià zhù chǔ","无適无莫":"wú dí wú mò","无伤无臭":"wú shēng wú xiù","无能为役":"wú néng wéi yì","无寇暴死":"wu kou bào shi","无孔不钻":"wú kǒng bù zuān","无间可伺":"wú jiān kě sì","无间可乘":"wú jiān kě chéng","无间冬夏":"wú jiān dōng xià","无缝天衣":"wú féng tiān yī","无恶不为":"wú è bù wéi","无动为大":"wú dòng wéi dà","无地自处":"wú dì zì chǔ","诬良为盗":"wū liáng wéi dào","握粟出卜":"wò sù chū bo","握拳透爪":"wò quán tòu zhǎo","稳操左券":"wén cāo zuǒ quàn","闻风响应":"wén fēng xiǎng yīng","文武差事":"wén wǔ chà shì","文身剪发":"wén shēn jiǎn fā","文房四侯":"wén fáng sì hòu","温枕扇席":"wēn zhěn shān xí","温席扇枕":"wēn xí shān zhěn","温凊定省":"wēn qǐng dìng shěng","温衾扇枕":"wēn qīn shān zhěn","亹亹不倦":"tān wěi bù juàn","委委佗佗":"wēi wēi tuó tuó","委曲成全":"wěi qǔ chéng quán","尾大难掉":"wěi dà nán diào","惟所欲为":"wéi suǒ yù wéi","惟日为岁":"wéi rì wéi suì","惟利是趋":"wéi lì shì qú","帷薄不修":"wéi bó bù xiū","唯唯否否":"wěi wěi fǒu fǒu","唯所欲为":"wéi suǒ yù wéi","为蛇添足":"wéi shé tiān zú","为善最乐":"wéi shàn zuì lè","为蛇画足":"wéi shé huà zú","为山止篑":"wéi shān zhǐ kuì","为仁不富":"wéi rén bù fù","为裘为箕":"wéi qiú wéi jī","为民父母":"wéi mín fù mǔ","为虺弗摧":"wéi huǐ fú cuī","为好成歉":"wéi hǎo chéng qiàn","为鬼为蜮":"wéi guǐ wéi yù","为法自弊":"wéi fǎ zì bì","为恶不悛":"wéi è bù quān","为德不终":"wéi dé bù zhōng","煨干就湿":"wēi gàn jiù shī","煨干避湿":"wēi gàn bì shī","危于累卵":"wēi yú lěi luǎn","望风响应":"wàng fēng xiǎng yīng","望尘僄声":"wàng chén bù shēng","枉曲直凑":"wǎng qǔ zhí còu","往渚还汀":"wǎng zhǔ huán tīng","王贡弹冠":"wáng gòng dàn guàn","亡魂失魄":"wáng hún shī hún","亡国大夫":"wáng guó dà fū","万载千秋":"wàn zài qiān qiū","万贯家私":"wàn guàn ji sī","万夫不当":"wàn fū bù dāng","万别千差":"wàn bié qiān chā","晚食当肉":"wǎn shí dàng ròu","晚节不保":"wǎn jíe bù bǎo","玩岁愒月":"wán suì yī yuè","玩岁愒时":"wán suì yī shí","玩时愒日":"wán shí ài rì","蛙蟆胜负":"wā má shèng fù","吞言咽理":"tūn yán yān lǐ","颓垣断堑":"tuí yuán duàn piàn","推枯折腐":"tuī kū shé fǔ","推干就湿":"tuī gàn jiù shī","剸繁治剧":"shí fán zhì jù","剸繁决剧":"shí fán jué jù","团头聚面":"tuàn tóu jù miàn","兔走鹘落":"tù zǒu gǔ luò","兔丝燕麦":"tù sī yàn mài","兔头麞脑":"tù tóu suō nǎo","兔葵燕麦":"tù kuí yàn mài","兔角龟毛":"tu jiao gui mao","吐哺握发":"tǔ bǔ wò fà","徒讬空言":"tú tún kōng yán","投传而去":"tóu zhuàn ér qù","头足异处":"tóu zú yì chǔ","头上著头":"tóu shàng zhuó tóu","头没杯案":"tóu mò bēi àn","头昏脑闷":"tóu hūn nǎo mèn","头会箕敛":"tóu kuàn jī liǎn","头会箕赋":"tóu kuài jī fù","头出头没":"tóu chū tóu mò","痛自创艾":"tòng zì chuāng yì","痛深恶绝":"tòng shēn wù jué","同源异派":"tóng yuán yì pai","同心僇力":"tóng xīn jié lì","同工异曲":"tóng gōng yì qǔ","同恶相助":"tóng wù xiāng zhù","同恶相恤":"tóng wù xiāng xù","痌瘝在抱":"tōng guān zào bào","通文调武":"tōng wén diào wǔ","通同一气":"tōng tóng yī yì","铤鹿走险":"dìng lù zǒu xiǎn","停留长智":"tíng liú zhǎng zhì","铁树开华":"tiě shù kāi huā","条贯部分":"tiáo guàn bù fēn","挑牙料唇":"tiǎo yá liào chún","挑么挑六":"tiāo yāo tiāo liù","挑唇料嘴":"tiǎo chún liào zuǐ","靦颜事仇":"tiǎn yán shì chóu","恬不为意":"tián bù wéi yì","恬不为怪":"tián bù wéi guài","天下为笼":"tiān xià wéi lóng","天台路迷":"tiān tái lù mí","天年不遂":"tiān nián bù suì","天宝当年":"tian bao dang nian","桃蹊柳曲":"táo qī liǔ qǔ","堂皇冠冕":"táng huáng guàn miǎn","探囊胠箧":"tàn náng wú qiè","谭言微中":"tán yán wēi zhòng","谈言微中":"tán yán wēi zhòng","贪夫狥财":"tān fū huái cái","泰山盘石":"tai shān pán shí","泰来否往":"tài lái pǐ wǎng","泰来否极":"tai lái fǒu jí","泰极而否":"tài jí ér pǐ","狧穅及米":"shì kǎn jí mǐ","损军折将":"sǔn jūn zhé jiàng","遂心应手":"suì xīn yīng shǒu","遂迷不窹":"suí méi bù wù","岁月不居":"suì yuè bù jú","岁聿其莫":"suì yù qí mù","随物应机":"suí wù yīng jī","随风而靡":"suí fēng ér mǐ","宿雨餐风":"xiǔ yǔ cān fēng","宿水飡风":"xiǔ shuǐ cān fēng","宿水餐风":"xiǔ shuǐ cān fēng","夙兴夜处":"sù xīng yè chǔ","搜岩采干":"sōu yán cǎi gàn","薮中荆曲":"sǒu zhōng jí qǔ","宋斤鲁削":"sòng jīn lǔ xuē","松筠之节":"sōng jūn zhī jié","騃童钝夫":"ái tóng dùn fū","騃女痴男":"ái nǚ chī nán","四亭八当":"sì tíng bā dàng","四马攒蹄":"sì mǎ cuán tí","四不拗六":"sì bù niù liù","斯事体大":"ī shì tǐ dà","思所逐之":"si shuo zhu zi","丝恩发怨":"sī ēn fà yuàn","硕望宿德":"shuò wàng xiǔ dé","铄古切今":"shuò gǔ qiē jīn","顺天应时":"shùn tiān yīng shí","顺风转舵":"shǔn fēng zhuǎn duò","顺风驶船":"shǔn fēng shǐ chuán","顺风使船":"shǔn fēng shǐ chuán","顺风而呼":"shǔn fēng ér hū","顺风吹火":"shǔn fēng chuī huǒ","水中捉月":"shui zhong zhuo yue","水中著盐":"shuǐ zhōng zhuó yán","水宿风餐":"shuǐ xiǔ fēng cān","水米无干":"shuǐ mǐ wú gàn","水长船高":"shuǐ zhǎng chuán gāo","双足重茧":"shuāng zú chóng jiǎn","双柑斗酒":"shuài gān dǒu jiǔ","数米而炊":"shǔ mǐ ér chuī","数往知来":"shǔ wǎng zhī lái","数米量柴":"shǔ mǐ ér chái","数理逻辑":"shù lǐ luó ji","数见不鲜":"shuò jiàn bù xiān","数黄道黑":"shu huang dao hei","数黑论黄":"shǔ hēi lùn huáng","数短论长":"shǔ duǎn lùn cháng","数白论黄":"shǔ bái lùn huáng","束缊还妇":"shù yūn huán fù","束缊举火":"shù yūn jǔ huǒ","束身自好":"shù shēn zì hào","束蒲为脯":"shù pú wéi pú","束带结发":"shù dài jié fā","束椽为柱":"shù chuán wéi zhù","书缺有间":"shū quē yǒu jiàn","瘦骨梭棱":"shòu gǔ léng léng","首足异处":"shǒu zú yì chǔ","手足重茧":"shǒu zú chóng jiǎn","手足异处":"shǒu zú yì chǔ","手脚干净":"shǒu jiǎo gàn jìng","手不应心":"shǒu bù yīng xīn","收因种果":"shōu yīn zhǒng guǒ","螫手解腕":"shì shǒu jǐe wǎn","释知遗形":"shì shì yí xíng","适时应务":"shì shí yīng wù","适如其分":"shì rú qí fèn","适情率意":"shì qíng shuài yì","适居其反":"shì jú qí fǎn","适当其时":"shì dāng qí shí","适当其冲":"shì dāng qí chōng","饰非遂过":"shì fēi suí guò","视为知己":"shì wéi zhī jǐ","视为儿戏":"shì wéi ér xì","视微知著":"shì wēi zhī zhuó","事与心违":"shì yù xīn wéi","使羊将狼":"shǐ yáng jiàng láng","食为民天":"shí wéi mín tiān","食不重味":"shí bù chóng wèi","食不重肉":"shí bù zhóng ròu","拾掇无遗":"shi duo wu yi","拾带重还":"shí dài zhòng huán","实与有力":"shí yù yǒu lì","实偪处此":"shí bèng chǔ cǐ","识微知著":"shí wēi zhī zhuó","时运不齐":"shí yùn bù jì","时亨运泰":"shí hēng yùn tai","石英玻璃":"shí yīng bō li","石室金匮":"shí shì jīn guì","什袭珍藏":"shí xí zhēn cáng","什袭以藏":"shí xí yǐ cáng","什伍东西":"shí wǔ dōng xī","什袭而藏":"shí xī ér cáng","什围伍攻":"shí wéi wǔ gōng","十魔九难":"shí mó jiǔ nàn","十夫楺椎":"shí fū zhī zhuī","十不当一":"shí bù huò yī","诗书发冢":"shī shū fà zhǒng","虱处裈中":"shī chǔ kūn zhōng","师直为壮":"shī zhí wéi zhuàng","失马塞翁":"shī mǎ sài wēng","尸居龙见":"shī jū lóng xiàn","盛水不漏":"chéng shuǐ bù lòu","圣经贤传":"shèng jīng xián zhuàn","圣君贤相":"shèng jīng xián xiàng","生拖死拽":"shēng tuō sǐ zhuāi","审曲面埶":"shěn qǔ miàn xīn","审己度人":"shěn jǐ duó rén","沈博绝丽":"chén bó jué lì","神武挂冠":"shén wǔ guà guàn","神龙失埶":"shén lóng shī zhì","神号鬼哭":"shén háo guǐ kū","神不收舍":"shén bù shōu shě","深文周内":"shēn wén zhōu nà","深文曲折":"shēn wén qǔ shé","深切着明":"shēn qiē zhe míng","深切着白":"shēn qiē zhe bái","深厉浅揭":"shēn lì qiǎn qì","深谷为陵":"shēn gǔ wéi líng","深恶痛疾":"shēn wù tòng jí","深恶痛嫉":"shēn wù tòng jí","深仇宿怨":"shēn chóu xiǔ yuàn","设心处虑":"shè xīn chǔ lǜ","舍近务远":"shě jìn wù yuǎn","舍己为公":"shě jǐ wèi gōng","舍近即远":"shě jìn jí yuǎn","舍短取长":"shě duǎn qǔ cháng","舍策追羊":"shě cè zhuī yáng","蛇蝎为心":"shé xiē wéi xīn","少年老诚":"shǎo nián lǎo chéng","少成若性":"shào chéng ruò xìng","少不经事":"shào bù jīng shì","上当学乖":"shàng dāng xué guāi","赏不当功":"shǎng bù dāng gōng","善自为谋":"shàn zì wéi móu","善为说辞":"shàn wéi shuō cí","善善恶恶":"shàn shàn wù è","善贾而沽":"shàn jià ér gū","善财难舍":"shàn cái nán shě","扇枕温席":"shān zhěn wēn xí","扇枕温被":"shān zhěn wēn chuáng","苫眼铺眉":"shān yǎn pū méi","讪牙闲嗑":"shàn yá xián kē","山峙渊渟":"shān zhì yuān zī","山阴乘兴":"shān yīn chéng xīng","山殽野湋":"shān yāo yě fù","山溜穿石":"shān liù chuān shí","山节藻棁":"shān jié zǎo lì","沙鸥翔集":"sha ou xiang ji","杀衣缩食":"shài yī suō shí","杀鸡为黍":"shā jī wéi shǔ","色厉胆薄":"sè lì dǎn bó","丧胆销魂":"sàng hún xiāo hún","桑荫未移":"sāng yīn wèi yí","桑荫不徙":"sāng yīn bù xǐ","桑土绸缪":"sāng tǔ chóu miù","桑户棬枢":"sāng hù juàn shū","三战三北":"sān zhān sān běi","三占从二":"sān zhān cóng èr","三瓦两舍":"sān wǎ liǎng shě","三人为众":"sān rén wèi zhòng","三差五错":"sān chā wǔ cuò","三差两错":"sān chā liǎng cuò","三不拗六":"sān bù niù liù","塞翁之马":"sài wēng zhī mǎ","塞翁得马":"sài wēng dé mǎ","塞井焚舍":"sāi jǐng fén shě","洒心更始":"sǎ xīn gèng shǐ","洒扫应对":"sǎ sào yìng duì","软红香土":"ruǎn hóng xiāng yù","入孝出弟":"rù xiào chū tì","入吾彀中":"rù wǔ gòu zhōng","入铁主簿":"rù tiě zhǔ bù","入理切情":"rù lǐ qiē qíng","汝成人耶":"nu cheng ren ye","如水投石":"rú shǔ tóu shí","如切如磋":"rú qiē rú cuō","如登春台":"rú dé chūn tái","肉薄骨并":"ròu bó gǔ bìng","柔情绰态":"róu qíng chuō tai","戎马劻勷":"róng mǎ dān xiào","日朘月削":"rì juān yuè xuē","日中为市":"rì zhōng wéi shì","日中必湲":"rì zhōng bì tóng","日月参辰":"rì yuè shēn chén","日省月修":"rì xǐng yuè xiū","日削月割":"rì xuē yuè gē","日削月朘":"rì xuē yuè juān","日省月试":"rì xǐng yuè shì","日省月课":"rì xǐng yuè kè","日不暇给":"rì bù xiá jǐ","认贼为父":"rèn zéi wéi fù","任达不拘":"rèn láo bù jū","认影为头":"rèn yǐng wéi tóu","认贼为子":"rèn zéi wéi zǐ","人足家给":"rén zú jiā jǐ","人言藉藉":"rén yán jí jí","人模狗样":"rén mú gǒu yàng","人莫予毒":"rén mò yú dú","人给家足":"rén jǐ jiā zú","热熬翻饼":"rě áo fān bǐng","染须种齿":"rǎn xū zhǒng chǐ","群居穴处":"qún jū xué chǔ","却老还童":"què lǎo huán tóng","权倾中外":"quán qīng zhōng wai","圈牢养物":"juàn láo yǎng wù","去太去甚":"qù tai qù shèn","取予有节":"qǔ yù yǒu jié","诎要桡腘":"qū yào ráo yù","曲终奏雅":"qǔ zhōng zòu yǎ","曲意迎合":"qǔ yì yíng hé","曲意奉迎":"qǔ yì fèng yíng","曲意承迎":"qǔ yì chéng yíng","曲学阿世":"qǔ xué ā shì","曲突移薪":"qǔ tū yí xīn","曲眉丰颊":"qǔ méi fēng jiá","曲肱而枕":"qǔ gōng ér zhěn","秋实春华":"qiū shí chūn huā","穷形尽相":"qióng xíng jìn xiàng","穷年累世":"qióng nián lěi shì","情凄意切":"qíng qī yì qiē","情见埶竭":"qíng jiàn zhōu jié","情见势屈":"qíng xiàn shì qū","情见力屈":"qíng xiàn lì qū","情见乎辞":"qíng xiàn hū cí","清风劲节":"qīng fēng jìng jié","清都绛阙":"qīng dōu jiàng què","清辞丽曲":"qīng cí lì qǔ","倾肠倒肚":"qīng cháng dào dǔ","轻嘴薄舌":"qīng zuǐ bó shé","轻傜薄赋":"qīng yāo báo fù","轻骑简从":"qīng jì jiǎn cóng","轻财好义":"qīng cái hào yì","轻薄无知":"qīng báo wú zhī","轻才好施":"qīng cái hào shī","轻薄无礼":"qīng báo wú lǐ","青紫被体":"qīng zǐ pī tǐ","青林黑塞":"qīng lín hēi sài","青红皁白":"qīng hóng tóu bái","寝苫枕干":"qǐn shān zhěn gàn","螓首蛾眉":"qín shǒu ér méi","擒奸擿伏":"qín jiān fā fú","琴瑟之好":"qí sè zhī hǎo","挈瓶之知":"qiè píng zhī zhì","且住为佳":"qiě zhù wéi jiā","切树倒根":"qiē shù dǎo gēn","切理餍心":"qiē lǐ yàn xīn","切理厌心":"qiē lǐ yàn xīn","切理会心":"qiē lǐ huì xīn","切近的当":"qiē jìn de dāng","切瑳琢磨":"qiē cùn zhuó mó","翘足引领":"qiáo zú yǐn lǐng","翘足而待":"qiáo zú ér dài","巧发奇中":"qiǎo fā qí zhòng","抢地呼天":"qiāng dì hū tiān","强嘴拗舌":"jiàng zuǐ niù shé","强自取折":"qiáng zì qǔ shé","强直自遂":"qiáng zhí zì suí","强文浉醋":"qiǎng wén jiǎ cù","强文假醋":"qiǎng wén jiǎ cù","强死强活":"qiǎng sǐ qiǎng huó","强死赖活":"qiǎng sǐ lài huó","强食自爱":"qiǎng shí zì ài","强食靡角":"qiǎng shí mí jiǎo","强识博闻":"qiǎng shí bó wén","强弓劲弩":"qiáng gōng jìng nǔ","强聒不舍":"qiǎng guō bù shě","强凫变鹤":"qiǎng fú biàn hè","强而后可":"qiǎng ér hòu kě","强词夺正":"qiǎng cí duó zhèng","强得易贫":"qiǎng dé yì pín","遣兴陶情":"qiǎn xìng táo qíng","遣将调兵":"qiǎn jiāng diào bīng","遣兵调将":"qiǎn bīng diào jiàng","前跋后疐":"qián bá hòu máo","搴旗斩将":"qiān qí zhǎn jiàng","搴旗取将":"qiān qí qǔ jiàng","牵羊担酒":"qiān yáng dàn jiǔ","牵强附合":"qiān qiáng fù hé","千姿万态":"qiān zī wàn tai","千状万态":"qiān zhuàng wàn tai","千载一合":"qiān zài yī hé","千载一弹":"qiān zǎi yī dàn","千态万状":"qiān tai wàn zhuàng","千磨百折":"qiān mó bǎi shé","千了万当":"qiān le wàn dàng","千了百当":"qiān liǎo bǎi dàng","千古绝调":"qiān gǔ jué diào","泣下如雨":"qǐ xià rú yǔ","弃之度外":"qì zhī dù wai","气克斗牛":"qì kè dǒu niú","起偃为竖":"qǐ yǎn wéi shù","岂弟君子":"kǎi tì jūn zǐ","綦溪利跂":"qí xī lì guì","棋输先着":"qí shū xiān zhāo","棋输先著":"qí shū xiān zhuó","奇葩异卉":"qí pā yì hùi","齐王舍牛":"qí wáng shě niú","齐量等观":"qí liàng děng guān","欺天诳地":"qī tiān kuāng dì","栖风宿雨":"qī fēng xiǔ yǔ","妻梅子鹤":"qī mén zǐ hè","妻儿老少":"qī ér lǎo shǎo","普天率土":"pǔ tiān shuài tǔ","铺胸纳地":"pū xiōng nà dì","铺眉苫眼":"pū méi shàn yǎn","铺眉蒙眼":"pū méi méng yǎn","铺锦列绣":"pū jǐn liè xiù","破矩为圆":"pò jǔ wéi yuán","破镜重合":"pò jìng zhòng hé","破家为国":"pò jiā wéi guó","破觚为圜":"pò gū wéi yuán","破愁为笑":"pò chóu wéi xiào","瓶坠簪折":"píng zhùi zān zhé","萍飘蓬转":"píng piāo péng zhuàn","帡天极地":"jú tiān jí dì","屏声息气":"bǐng shēng xī qì","屏气吞声":"píng qì tūn shēng","凭几据杖":"píng jī jù zhàng","娉婷婀娜":"pīng tíng ē nà","品竹调弦":"pǐn zhú diào xián","贫嘴薄舌":"pín zuǐ bó shé","骈肩累足":"pián jiān lěi zú","骈肩累迹":"pián jiān lěi jì","翩翩年少":"piān piān nián shǎo","片语只辞":"piàn yán zhǐ cí","片鳞半爪":"piàn lín bàn zhǎo","片甲不还":"piàn jiǎ bù huán","披发缨冠":"pī fā yīng guàn","披发文身":"pī fà wén shēn","批砉导窾":"pī huā dǎo táo","批隙导窾":"pī xì dǎo yín","批吭捣虚":"pī háng dǎo xū","批风抹月":"pī fēng mò yuè","烹龙炮凤":"pēng lóng páo fèng","炰鳖脍鲤":"fèng biē kuài lǐ","炮凤烹龙":"páo fèng pēng lóng","旁指曲谕":"páng zhǐ qǔ yù","旁引曲证":"páng yǐn qǔ zhèng","旁通曲畅":"páng tōng qǔ chàng","庞眉皓发":"páng méi hào fà","攀花折柳":"pān huā shé liǔ","攀蟾折桂":"pān chán shé guì","女大难留":"nǚ dà nán liú","女长须嫁":"nǚ zhǎng xū jià","女长当嫁":"nǚ zhǎng dāng jià","弄竹弹丝":"nòng zhú dàn sī","弄玉吹箫":"nòng yù chuí xiāo","弄管调弦":"nòng guǎn diào xián","弄粉调朱":"nòng fěn diào zhū","弄兵潢池":"nòng bīng huáng shi","浓装艳抹":"nóng zhuāng yàn mò","浓抹淡妆":"nóng mò dàn zhuāng","扭转干坤":"niǔ zhuǎn gàn kūn","扭直作曲":"niǔ zhí zuò qū","牛骥同皁":"niú jì tóng wěn","宁缺勿滥":"nìng quē wù làn","孽障种子":"niè zhàng zhǒng zǐ","啮血为盟":"niè xuè wéi méng","捻土为香":"niǎn tǔ wéi xiāng","年谊世好":"nián yì shì hào","年华垂暮":"nián huá thuí mù","儗不于伦":"lǐ bù yú lún","泥名失实":"nì míng shī shí","泥而不滓":"niè ér bù zǐ","能者为师":"néng zhě wéi shī","能不称官":"néng bù chèn guān","挠直为曲":"náo zhí wéi qū","囊萤照读":"náng yíng zhào shū","难进易退":"nan jin yi tui","难乎为继":"nán hū wéi jì","难乎为情":"nán hū wéi qíng","难更仆数":"nán gēng pú shǔ","难得糊涂":"nán dé hú tú","南蛮鴂舌":"nán mán xiāng shé","南贩北贾":"nán fàn běi gǔ","内修外攘":"nèi xiū wai rǎng","内柔外刚":"nèi róu wai gāng","内峻外和":"nèi jùn wai hé","拿腔作调":"ná qiāng zuò diào","拿粗夹细":"ná cū jiā xì","慕古薄今":"mù gǔ bó jīn","牧猪奴戏":"mù zhòu nú xì","沐猴衣冠":"mù hóu yī guàn","目眢心忳":"mù yuān xīn wǎng","目挑心招":"mù tiǎo xīn zhāo","目空余子":"mù kōng yú zǐ","目量意营":"mù liàng yì yíng","目瞪舌彊":"mù dèng shé jiàng","木头木脑":"mù tóu mù nǎo","木干鸟栖":"mù gàn niǎo qī","侔色揣称":"móu sè chuǎi chèn","莫知所为":"mò zhī suǒ wéi","莫予毒也":"mò yù dú yě","莫为已甚":"mò wéi yǐ shèn","抹月秕风":"mǒ yuè pī fēng","抹粉施脂":"mò fěn shī zhī","磨砻镌切":"mó lóng juān qiē","磨棱刓角":"mó léng liǎng jiǎo","摸头不着":"mō tóu bù zháo","摸门不着":"mō mén bù zháo","摸不着边":"mō bù zhuó biān","缪种流传":"miù zhǒng liú chuán","命中注定":"mìng zhōng zhù dìng","鸣鹤之应":"míng hè zhī yīng","鸣凤朝阳":"míng fèng zhāo yáng","明效大验":"míng xiào dà yà","名我固当":"ming wo gu dang","灭景追风":"miè yǐng zhuī fēng","邈处欿视":"miǎo chǔ jī shì","面折庭争":"miàn shé tíng zhēng","俛拾地芥":"bì shí dì jiè","俛首帖耳":"mǎ shǒu tiē ěr","黾穴鸲巢":"měng xué qú cháo","绵力薄材":"mián lì bó cái","绵里薄材":"mián lǐ bó cái","靡有孑遗":"mǐ yǒu jié yí","靡衣媮食":"mǐ yī tōu shí","靡衣偷食":"mǐ yī tōu shí","靡然从风":"mǐ rán cóng fēng","靡靡之乐":"mǐ mǐ zhī yuè","迷恋骸骨":"mí liàn hài gǔ","蒙头转向":"mēng tóu zhuàn xiàng","闷海愁山":"mèn hǎi chóu shān","扪参历井":"mén shēn lì jǐng","门单户薄":"mén dān hù bó","昧旦晨兴":"mèi dàn chún xīng","没衷一是":"mò zhōng yī shì","没金饮羽":"mò jīn yǐn yǔ","冒名接脚":"mào míng jiě jiǎo","毛头小子":"máo tóu xiǎo zi","毛遂堕井":"máo suí duò jǐng","毛发耸然":"máo fā sǒng rán","毛发倒竖":"máo fā dǎo shù","毛发不爽":"máo fā bù shuǎng","猫鼠同处":"māo shǔ tóng chǔ","尨眉皓发":"máng méi hào fà","漫天遍地":"màn shān biàn dì","脉脉相通":"mài mài xiāng tōng","卖文为生":"mài wén wéi shēn","卖李钻核":"mài lǐ zuān hé","买椟还珠":"mǎi dú huán zhū","埋天怨地":"mán tiān yuàn dì","埋三怨四":"mán sān yuàn sì","马上房子":"mǎ shàng fáng zi","马入华山":"mǎ rù huá shān","落魄江湖":"luò pò jīng hú","落魄不偶":"luo tuo bu ou","落魄不羁":"luò pò bù jī","落落难合":"luò luò nán hé","落草为寇":"luò cǎo wéi kòu","裸裎袒裼":"luǒ chéng tǎn xī","罗织构陷":"luò zhī gòu xiàn","捋袖揎拳":"luō xiù xuān quán","论黄数黑":"lùn huáng shǔ hēi","乱作胡为":"luàn zuò hú wéi","乱箭攒心":"luàn jiàn cuán xīn","鸾凤和鸣":"luán fèng hè míng","绿叶成荫":"lǜ yè chéng yīn","绿女红男":"lǜ nǚ hóng nán","率由旧章":"shuài yóu jiù zhāng","率由旧则":"shuài yóu jiù zé","率以为常":"shuài yǐ wéi cháng","率土宅心":"shuài tǔ zhái xīn","率土同庆":"shuài tǔ tóng qìng","率兽食人":"shuài shòu shí rén","率土归心":"shuài tǔ guī xīn","率马以骥":"shuài mǎ yǐ jì","率尔成章":"shuài ěr chéng zhāng","履薄临深":"lǚ bó lín shēn","鲁斤燕削":"lǔ jīn yàn xuē","露面抛头":"lù miàn pāo tóu","漏尽更阑":"lòu jìn gēng lán","笼鸟槛猿":"lóng niǎo jiàn yuán","笼鸟池鱼":"lóng niǎo shi yú","龙游曲沼":"long you qu zhao","龙血玄黄":"lóng xuě xuán huáng","龙雕凤咀":"lóng diāo fèng jǔ","龙雏凤种":"lóng chú fèng zhǒng","六神不安":"liù shén bǔ ān","六尺之讬":"liù chǐ zhī quàn","柳巷花街":"liǔ xiòng huā jiē","柳街花巷":"liǔ jiē huā xiòng","柳骨颜筋":"jiǔ gǔ yán jīn","流离颠疐":"liú lí diān shǔ","令原之戚":"líng yuán zhī qī","令人捧腹":"lìng rén pěng fǔ","陵劲淬砺":"líng jìng cuì lì","临难不惧":"lín nàn bù jǔ","临敌易将":"lín dí yì jiàng","裂裳衣疮":"liè sháng yī chuāng","裂裳裹足":"liè cháng guǒ zú","裂冠毁冕":"liè guàn huǐ miǎn","埒才角妙":"liè cái jué miào","了无惧色":"liǎo wū jǔ sè","了身达命":"liǎo shēn dá mìng","了然无闻":"le rán wú wén","了不可见":"liǎo bù kě jiàn","了不长进":"liǎo bù zhǎng jǐn","燎如观火":"liǎo rú guān huǒ","燎发摧枯":"liǎo fà cuī kū","量小力微":"liàng xiǎo lì wēi","量时度力":"liàng shí dù lì","量枘制凿":"liàng ruì zhì záo","量入计出":"liàng rù jì chū","量如江海":"liàng rú jiāng hǎi","量力度德":"liàng lì duó dé","量金买赋":"liàng jīn mǎi fù","量己审分":"liàng jǐ shěn fēn","量材录用":"liàng cái lù yòng","量才器使":"liàng cái qì shǐ","量才而为":"liàng cái ér wéi","梁孟相敬":"liáng mèng xiāng jìn","恋恋难舍":"liàn liàn nán shě","敛声屏息":"liǎn shēng píng xī","敛骨吹魂":"liǎn gǔ chuí hún","联篇累牍":"lián piān lěi dú","连编累牍":"lián biān lěi dú","詈夷为跖":"lì yí wéi zhí","利令志惛":"lì lìng zhì zào","历精为治":"lì jīng wéi zhì","历精更始":"lì jīng gèng shǐ","哩哩罗罗":"li li luō luō","李广不侯":"lǐ guǎng bù hòu","礼为情貌":"lǐ wéi qíng mào","礼让为国":"lǐ ràng wéi guó","礼坏乐崩":"lǐ huài yuè bēng","犁庭扫闾":"lí tíng sǎo lǚ","犁生骍角":"lí shēng yuè jiǎo","犁牛骍角":"lí niú mài jiǎo","离山调虎":"lí shān diào hǔ","离本趣末":"lí běn qū mò","离本徼末":"lí běn yāo mò","楞眉横眼":"lèng méi héng yǎn","擂天倒地":"léi tiān dǎo dì","累足成步":"lěi zú chéng bù","累月经年":"lěi yuè jīng nián","累屋重架":"lěi wū chóng jià","累瓦结绳":"lěi wǎ jié shéng","累土至山":"lěi tǔ zhì shān","累土聚沙":"lěi tǔ jù shā","累苏积块":"lěi sū jī kuài","累卵之危":"lěi luǎn zhī wēi","累累如珠":"lěi lěi rú zhū","累块积苏":"lěi kuài jī sū","累教不改":"lěi jiào bù gǎi","累牍连篇":"lěi dú lián piān","乐山乐水":"yào shān yào shuǐ","潦原浸天":"lǎo yuán jìn tiān","老师宿儒":"lǎo shī xiǔ rú","牢什古子":"láo shí gǔ zi","琅嬛福地":"láng huán fú dì","狼号鬼哭":"láng háo guǐ kū","狼飡虎咽":"láng cān hǔ yān","阑风长雨":"lán fēng zhàng yǔ","拉枯折朽":"lā kū shé xiǔ","揆情度理":"kuí qíng duó lǐ","揆理度情":"kuí lǐ duó qíng","窥间伺隙":"kuī jiàn sì xì","旷日累时":"kuàng rì lěi shí","匡救弥缝":"kuāng jiù mí fèng","枯树生华":"kū shù shēng huā","口轻舌薄":"kǒu qīng shé bó","口角生风":"kǒu jiǎo shēng fēng","口角春风":"kǒu jiǎo chūn fēng","口角风情":"kǒu jiǎo fēng qíng","口干舌焦":"kǒu gàn shé jiāo","口腹之累":"kǒu fù zhī lěi","口出大言":"kǒu chū dā yán","空腹便便":"kōng fù pián pián","嗑牙料嘴":"kē yá liào zuǐ","刻木为吏":"kè mù wéi lì","刻木为鹄":"kè mù wéi hú","咳珠唾玉":"ké zhū tuò yù","咳唾成珠":"ké tuò chéng zhū","抗颜为师":"kàng yán wéi shī","糠豆不赡":"kang dou bu shan","开华结果":"kāi huā jié guǒ","峻阪盐车":"jùn bǎn yún chē","攫为己有":"jué wéi jǐ yǒu","嚼铁咀金":"jiáo tiě jǔ jīn","嚼墨喷纸":"jué mò pēn zhǐ","倔头强脑":"juè tóu jiàng nǎo","倔头倔脑":"juè tou juè nǎo","倦鸟知还":"juàn niǎo zhī huán","卷席而葬":"juǎn xí ér zàng","卷旗息鼓":"juǎn qí xī gǔ","卷甲倍道":"juǎn jiǎ bèi dào","聚米为山":"jù mǐ wéi shān","聚米为谷":"jù mǐ wéi gǔ","锯牙钩爪":"jù yá gōu zhǎo","举手相庆":"jǔ shǒu xiāng qìng","举世混浊":"jǔ shì hún zhuó","鞫为茂草":"jū wéi mào cǎo","鞠为茂草":"jū wéi mào cǎo","拘神遣将":"jū shén qiǎn jiàng","居轴处中":"jū zhóu chǔ zhōng","居下讪上":"jú xià shàn shàng","居不重茵":"jū bù chóng yīn","居不重席":"jū bù chóng xí","旧事重提":"jiù shì zhòng tí","旧调重弹":"jiù diào chóng tán","灸艾分痛":"jiù ài fēn tòng","久要不忘":"jiǔ yāo bù wàng","九转功成":"jiǔ zhuàn gōng chéng","九蒸三熯":"jiǔ zhēng sān shēng","敬业乐群":"jìng yè yào qún","井底虾蟆":"jǐng dǐ xiā má","旌旗卷舒":"jīng qí juǎn shū","惊魂落魄":"jīng hún luò pò","荆棘载途":"jīng jí zài tú","荆棘塞途":"jīng jí sè tú","经纶济世":"jing lun ji shi","禁舍开塞":"jìn shě kāi sāi","祲威盛容":"lóng wēi shèng róng","进种善群":"jìn zhǒng shàn qún","进退中度":"jìn tuì zhòng dù","进退消长":"jìn tuì xiāo cháng","进退应矩":"jìn tuì yīng jǔ","进退触籓":"jìn tuì chù zǔ","进退出处":"jìn tuì chū chǔ","进退跋疐":"jìn tuì bá zǔ","进寸退尺":"jǐn cùn tuì chǐ","尽多尽少":"jǐn duō jǐn shǎo","锦囊还矢":"jǐn náng huán shǐ","矜名嫉能":"jīn míng jì néng","矜己自饰":"jīn jǐ zhì shì","矜功负气":"jīn gōng fǔ qì","津关险塞":"jīn guān xiǎn sài","金吾不禁":"jīn wú bù jìn","金匮石室":"jīn guì shí shì","金翅擘海":"jīn chì bāi hǎi","戒奢宁俭":"jiè shē nìng jiān","解衣衣人":"jiè yī yī rén","解人难得":"jiě rén nán dé","解铃系铃":"jiě líng jì líng","解发佯狂":"jiě fà yáng kuáng","截铁斩钉":"jié tiě zhǎn dìng","诘屈謷牙":"jié qū dà yá","诘屈磝碻":"jié qū bìng zhòu","诘曲聱牙":"jié qǔ áo yá","教一识百":"jiāo yī shí bǎi","教猱升木":"jiāo náo shēng mù","较瘦量肥":"jiào shòu liàng féi","矫矫不群":"jiǎo jiǎo bù qùn","矫国更俗":"jiǎo guó gēng sú","皎阳似火":"jiǎo yáng shì huǒ","挢抂过正":"jiǎo kuāng guò zhèng","角立杰出":"jiao li jie chu","焦沙烂石":"jiāo shā shí làn","焦唇干舌":"jiāo chún gàn shé","骄泰淫泆":"jiāo tai yín zhuàng","骄奢淫泆":"jiāo shē yín yí","骄儿騃女":"jiāo ér bā nǚ","浇风薄俗":"jiāo fēng bó sú","降妖捉怪":"xiáng yāo zhuō guài","将遇良材":"jiàng yù liáng cái","将取固予":"jiāng qǔ gū yǔ","将门有将":"jiàng mén yǒu jiàng","将功折过":"jiāng gōng shé guò","将夺固与":"jiāng duó gū yǔ","将伯之助":"qiāng bó zhī zhù","将伯之呼":"qiāng bó zhī hū","槛花笼鹤":"jiàn huā lóng hè","鉴影度形":"jiàn yǐng duó xíng","渐不可长":"jiàn bù kě zhǎng","剑首一吷":"jiàn shǒu yī guī","见义敢为":"jiàn yì gǎn wéi","见义当为":"jiàn yì dāng wéi","见义必为":"jiàn yì bì wéi","见素抱朴":"xiàn sù bào pǔ","见弃于人":"jiàn qì yǔ rén","见几而作":"jiàn jī ér zuò","见弹求鸮":"jiàn dàn qiú háo","简丝数米":"jiǎn sī shǔ mǐ","俭不中礼":"jiǎn bù zhòng lǐ","间见层出":"jiàn xiàn céng chū","间不容息":"jiàn bù róng xī","间不容瞚":"jiān bù róng xǐ","尖嘴薄舌":"jiān zuǐ bó shé","假洋鬼子":"jiǎ yáng guǐ zi","甲冠天下":"jiǎ guàn tiān xià","葭莩之亲":"jiā fú zhī qīn","家无担石":"jiā wú dàn shí","家累千金":"jiā lèi qiān jīn","家给人足":"jiā jǐ rén zú","家给民足":"jiā jǐ mín zú","家道从容":"jiā dào cōng róng","家长礼短":"jiā cháng lǐ duǎn","夹枪带棍":"jiā qiāng dài gùn","夹袋人物":"jiā dài rén wù","霁风朗月":"jī fēng lǎng yuè","寄兴寓情":"jì xìng yù qíng","纪纲人论":"jì gāng rén lún","计深虑远":"jì shēng lǜ yuǎn","计功量罪":"jì gōng liàng zuì","掎裳连襼":"jǐ shang lián zhēng","虮虱相吊":"jǐ shī xiēng diào","几不欲生":"jī bù yù shēng","集腋为裘":"jí yè wéi qiú","疾不可为":"jí bù kě wéi","急脉缓灸":"jí mài huǎn jiù","急景凋年":"jí yǐng diāo nián","急公好施":"jí gōng hào shī","极深研几":"jí shēn yán jī","及宾有鱼":"jí bīn yoǔ yú","激薄停浇":"jī bó tíng jiāo","稽古揆今":"jī gǔ zhèn jīn","赍志而没":"jī zhì ér mò","积铢累寸":"jī zhū lěi cùn","积岁累月":"jī suì lěi yuè","积素累旧":"jī sù lěi jiù","积时累日":"jī shí lěi rì","积日累岁":"jī rì lěi suì","积日累月":"jī rì lěi yuè","积日累久":"jī rì lěi jiǔ","积年累岁":"jī nián lěi suì","积露为波":"jī lù wéi bō","积德累仁":"jī dé lěi rén","积德累善":"jī dé lěi shàn","积德累功":"jī dé lěi gōng","积谗糜骨":"jī chán méi gǔ","鸡皮鹤发":"jī pí hè fà","饥寒交切":"jī hán jiāo qiē","饥冻交切":"jī dòng jiāo qiē","击排冒没":"jī pái mào mò","祸为福先":"huò wéi fú xiān","祸福相依":"huò fú xiāng yī","祸福相生":"huò fú xiāng shēng","获隽公车":"huò jūn gōng chē","货而不售":"huo er bu shou","火耕流种":"huǒ gēng liú zhǒng","混应滥应":"hùn yīng làn yīng","魂飞魄丧":"hún fēi pò sāng","魂不着体":"hún bù zhuó tǐ","魂不著体":"hún bù zhuó tǐ","浑抡吞枣":"hún lún tūn zǎo","昏迷不省":"hūn mí bù xǐng","昏镜重磨":"hūn jìng chóng mó","昏镜重明":"hūn jìng chóng míng","昏定晨省":"hūn dìng chén xǐng","毁舟为杕":"huǐ zhōu wéi duò","毁钟为铎":"huǐ zhōng wéi duó","毁冠裂裳":"huǐ guān liè cháng","晦盲否塞":"huì máng pǐ sè","诲人不惓":"huì rén bù tiě","悔过自责":"huǐ guò zì zè","回船转舵":"huí chuán zhǎn duò","潢池盗弄":"huáng shi dào nòng","黄冠野服":"huáng guàn yě fú","黄冠草履":"huáng guàn cǎo lǚ","黄冠草服":"huáng guàn cǎo fú","黄发儿齿":"huáng fà ér chǐ","黄发垂髫":"huáng fà chuí tiáo","还珠合浦":"huán zhū hé pǔ","还珠返璧":"huán zhū fǎn bì","还元返本":"huán yuán fǎn běn","还朴反古":"huán pǔ fǎn gǔ","还年驻色":"huán nián zhù sè","还年却老":"huán nián què lǎo","还年卻老":"huán nián què lǎo","还醇返朴":"huán chún fǎn pǔ","还淳返朴":"huán chún fǎn pǔ","还淳反素":"huán chún fǎn sù","还淳反朴":"huán chún fǎn pǔ","还淳反古":"huán chún fǎn gǔ","坏裳为裤":"huài shang wéi kù","槐南一梦":"huái nán yī mēng","画蛇著足":"huà shé zhuó zú","画地为狱":"huà dì wéi yù","画荻和丸":"huà dí huò wán","化枭为鸠":"huà xiāo wéi jiū","化零为整":"huà líng wéi zhěng","化腐为奇":"huà fǔ wéi qí","化鸱为凤":"huà chī wéi fèng","华亭鹤唳":"huà tíng hè lì","花攒锦聚":"huā cuán jǐn jù","花攒锦簇":"huā cuán jǐn cù","花簇锦攒":"huā cù jǐn cuán","花不棱登":"huā bù lēng dēng","户限为穿":"hù xiàn wéi chuān","胡作乱为":"hú zuò luàn wéi","胡作胡为":"hú zuò hú wéi","胡思乱量":"hú sī luàn liàng","呼天吁地":"hū tiān yù dì","呼卢喝雉":"hū lú hè zhì","呼来喝去":"hū lái hè qù","呼不给吸":"hū bù jǐ xī","厚味腊毒":"hòu wèi xī dú","厚今薄古":"hòu jīn bó gǔ","厚德载物":"hòu dé zài wù","鸿泥雪爪":"hóng ní xuě zhǎo","鸿渐于干":"hóng jiàn yú gàn","鸿飞雪爪":"hóng fēi xuě zhǎo","洪炉燎发":"hóng lú liáo fà","红绳系足":"hóng shéng jì zú","红不棱登":"hóng bù lēng dēng","衡石量书":"héng shí liàng shū","横征苛役":"hèng zhēng kē yì","横征苛敛":"hèng zhēng kē liǎn","横征暴赋":"hèng zhēng bào fù","横灾飞祸":"hèng zāi fēi huò","横殃飞祸":"hèng yāng fēi huò","横无忌惮":"hèng wú jì dàn","横拖倒拽":"héng tuō dào zhuāi","横抢硬夺":"hèng qiǎng yìng duó","横抢武夺":"hèng qiǎng wǔ duó","横科暴敛":"hèng kē bào liǎn","横恩滥赏":"hèng ēn làn shǎng","恨海难填":"hèn hǎi nán tián","黑更半夜":"hēi gēng bàn yè","鹤发松姿":"hè fà sōng zī","鹤发鸡皮":"hè fà jī pí","鹤处鸡群":"hè chǔ jī qún","涸思干虑":"hé sī qián lǜ","河涸海干":"hé hé hǎi qián","和颜说色":"hé yán yuè sè","何所不为":"hé suǒ bù wéi","合浦还珠":"hé pǔ huán zhū","合两为一":"hé liǎng wéi yī","合从连衡":"hé zòng lián héng","浩浩汤汤":"hào hào shāng shāng","号咷大哭":"háo táo dà kū","号寒啼饥":"háo hán tí jī","好勇斗狠":"hào yǒng dòu hěn","好佚恶劳":"hǎo yì wù láo","好问则裕":"hào wèn zé yù","好为事端":"hào wéi shì duān","好问决疑":"hào wèn jué yí","好生之德":"hào shēng zhī dé","好善乐施":"hào shàn lè shī","好善恶恶":"hǎo shàn wù è","好骑者堕":"hào qí zhě duò","好奇尚异":"hǎo qí shàng yì","好谋善断":"hào móu shàn duàn","好恶不同":"hǎo è bù tóng","好丹非素":"hào dān fēi sù","豪干暴取":"háo gàn bào qǔ","毫发不爽":"háo fà bù shuǎng","寒酸落魄":"hán suān luò pò","邯郸重步":"hán dān zhóng bù","含英咀华":"hán yīng jǔ huá","含商咀征":"hán shāng jǔ zhēng","含菁咀华":"hán jīng jǔ huá","含糊不明":"hán hú bù míng","含垢藏疾":"hán gǒu cáng jí","含宫咀征":"hán gōng jǔ zhēng","过隙白驹":"guò xī bái jū","过为已甚":"guò wéi yǐ shèn","桂折一枝":"guì shé yī zhī","桂折兰摧":"guì shé lán cuī","规重矩叠":"guī chóng jǔ dié","规旋矩折":"guī xuán jǔ shé","广文先生":"guǎng wén xiān sheng","广譬曲谕":"guǎng pì qǔ yù","广陵散绝":"guǎng líng sǎn jué","冠山戴粒":"guàn shān dài lì","冠绝一时":"guàn jué yī shí","冠屦倒施":"guàn jù dǎo shī","官官相为":"guān guān xiāng wéi","关情脉脉":"guān qíng mài mài","挂席为门":"guà xí wéi mén","寡见鲜闻":"guǎ jiàn xiǎn wén","瓜葛相连":"guā gě xiāng lián","顾曲周郎":"gù qǔ zhōu láng","顾景惭形":"gù yǐng cán xíng","故态复还":"gù tài fù huán","鼓吻奋爪":"gǔ wěn fèn zhǎo","鼓唇咋舌":"gǔ chún zǎ shé","古调单弹":"gǔ diào dān tán","古调不弹":"gǔ diào bù tán","沽名干誉":"gū míng gàn yù","孤独矜寡":"gū dú guān guǎ","姑射神人":"gū yè shén rén","苟合取容":"gǒu hé qǔ ān","狗续侯冠":"gǒu xù hòu guàn","钩爪锯牙":"gōu zhǎo jù yá","共枝别干":"gòng zhī bié gàn","共为唇齿":"gòng wéi chún chǐ","拱手而降":"gǒng shòu ér xiáng","拱肩缩背":"gǒng jān suō bèi","功薄蝉翼":"gōng bó chán yì","弓调马服":"gōng diào mǎ fú","更姓改物":"gēng xìng gǎi wù","更弦易辙":"gēng xián yì zhé","更弦改辙":"gēng xián gǎi zhé","更仆难终":"gēng pú nán zhōng","更仆难数":"gēng pú nán shǔ","更难仆数":"gēng nán pú shù","更令明号":"gēng lìng míng hào","更阑人静":"gēng lán rén jǐng","更待干罢":"gèng dài gàn bà","更唱叠和":"gēng chàng dié hé","更唱迭和":"gēng chàng dié hé","更长梦短":"gēng cháng mèng duǎn","亘古奇闻":"gèn gǔ qī wén","根生土长":"gēn shēn tǔ zhǎng","各色名样":"gè sè gè yàng","格格不纳":"gē gē bù nà","格格不吐":"gē gē bù tǔ","歌莺舞燕":"gē yíng wǔ yàn","告朔饩羊":"gù shuò xì yáng","告老还家":"gào lǎo huán jiā","膏唇岐舌":"gào chún qí shé","膏唇贩舌":"gào chún fàn shé","膏车秣马":"gào chē mò mǎ","高义薄云":"gāo yì bó yún","高风劲节":"gāo fēng jìng jié","岗头泽底":"gāng tóu zé dǐ","敢为敢做":"gǎn wéi gǎn zuò","竿头日上":"gān tóu rí shàng","甘分随时":"gān fèn suí shí","甘处下流":"gān chǔ xià liú","干霄蔽日":"gàn xiāo bì rì","干啼湿哭":"gàn tí shī kū","干名犯义":"gàn míng fàn yì","干将莫邪":"gān jiàng mò yé","干端坤倪":"gàn duān kūn ní","干城之将":"gān chéng zhī jiàng","改张易调":"gǎi zhāng yì diào","改弦易调":"gǎi xián yì diào","改曲易调":"gǎi qǔ yì diào","改恶为善":"gǎi è wéi shàn","腹载五车":"fù zài wǔ chē","富国彊兵":"fù guó jiāng bīng","父债子还":"fù zhài zǐ huán","父为子隐":"fù wéi zǐ yǐn","辅世长民":"fǔ shì zhǎng mín","拊背搤吭":"fǔ bèi hè kēng","福为祸先":"fú wéi huò xiān","福为祸始":"fú wéi huò shǐ","符号逻辑":"fú hào luó ji","浮收勒折":"fú shōu lè shé","伏虎降龙":"fú hǔ xiáng lóng","肤受之愬":"fū shòu zhī xiāng","肤皮潦草":"fū pǐ liǎo cǎo","肤见謭识":"fū jiàn guǎng shí","否终则泰":"pǐ zhōng zé tài","否终复泰":"pǐ zhōng fù tài","否往泰来":"pǐ wǎng tài lái","否去泰来":"pǐ qù tài lái","否极阳回":"pǐ jí yáng huí","否极泰回":"pǐ jí tài huí","佛头著粪":"fó tóu zhuó fèn","奉为楷模":"fèng wéi kǎi mó","凤鸣朝阳":"fèng míng zhāo yáng","凤靡鸾吪":"fèng mǐ luán é","逢场作乐":"féng chǎng zuò lè","蜂攒蚁聚":"fēng cuán yǐ jù","蜂攒蚁集":"fēng cuán yǐ jí","蜂腰削背":"fēng yāo xuē bèi","蜂扇蚁聚":"fēng shān yǐ jù","封豨修蛇":"fēng xī yǒu shé","风影敷衍":"fēng yǐng fū yān","风驰云卷":"fēng chí yún juǎn","风驰电卷":"fēng chí diàn juǎn","风驰草靡":"fēng chí cǎo mǐ","丰屋蔀家":"fēng wū zhī jiā","粪土不如":"fèn tú bù rú","分风劈流":"fēn fēng pǐ liú","沸沸汤汤":"fèi fèi shāng shāng","匪伊朝夕":"fěi yí zhāo xī","菲食薄衣":"fěi shí bó yī","飞沙走砾":"fēi shē zǒu lì","飞将数奇":"fē jiàng shù jī","飞鸿雪爪":"fēi hóng xuě zhǎo","放辟邪侈":"fàng pì xié chǐ","方领圆冠":"fāng lǐng yuán guàn","方寸万重":"fāng cùn wàn chóng","贩夫皁隶":"fàn fū yě lì","泛应曲当":"fàn yīng qǔ dāng","犯而不校":"fàn ér bù jiào","返朴还真":"fǎn pǔ huán zhēn","返本还源":"fǎn běn huán yuán","返本还元":"fǎn běn huán yuán","反老还童":"fǎn lǎo huán tóng","反劳为逸":"fǎn láo wéi yì","翻黄倒皁":"fān huáng dǎo yí","翻肠倒肚":"fān cháng dǎo dǔ","法轮常转":"fǎ lún cháng zhuàn","罚不当罪":"fá bù dāng zuì","发植穿冠":"fà zhí chuān guān","发踊冲冠":"fà yǒng chōng guān","发引千钧":"fà yǐn qiān jūn","发上指冠":"fā shàng zhǐ guàn","发上冲冠":"fā shàng chōng guàn","发怒穿冠":"fà nù chuān guān","发怒冲冠":"fā nù chōng guàn","发蒙解缚":"fā méng jiě fu","发奸擿伏":"fā jiān tì fú","发短心长":"fà duǎn xīn cháng","二竖为虐":"èr shù wéi nüè","耳目闭塞":"ěr mù bì sāi","儿女心肠":"ér nǘ xīn cháng","儿女亲家":"ér nǚ qìng jiā","恩不放债":"ēn bù fàng zhai","遏恶扬善":"è è yán shàn","饿殍枕藉":"è piǎo zhěn jí","饿殍载道":"è piǎo zài dào","恶紫夺朱":"wù zǐ duó zhū","恶醉强酒":"wù zuì qiǎng jiǔ","恶意中伤":"è yì zhòng shāng","恶湿居下":"wù shī jū xià","恶居下流":"wù jū xià liú","恶恶从短":"wù wù cóng duǎn","恶不去善":"wù bù qù shàn","扼吭拊背":"è gāng fǔ bèi","扼吭夺食":"è gāng duó shí","扼襟控咽":"è jīn kòng yān","额手相庆":"é shǒu xiāng qìng","峨峨汤汤":"é é shāng shāng","屙金溺银":"ē jīn niào yín","朵颐大嚼":"duǒ yī dà jiáo","夺人所好":"duó rén suǒ hào","多言数穷":"duō yán shuò qióng","多文为富":"duō wén wéi fù","多钱善贾":"duō qián shàn gǔ","多端寡要":"duō duān guǎi yào","多财善贾":"duō cái shàn gǔ","遁逸无闷":"dùn yì wú mèn","遁俗无闷":"dùn sú wú mèn","遁世无闷":"dùn shì wú mèn","遁迹黄冠":"dùn jì huáng guàn","顿学累功":"dùn xué lěi gōng","对薄公堂":"duì bù gōng táng","堆案盈几":"duī àn yíng jī","断还归宗":"duàn huán guī zōng","断发文身":"duàn fà wén shēn","断长续短":"duàn chāng xù duǎn","断长补短":"duàn chāng bǔ duǎn","短见薄识":"duǎn jiàn bó shí","蠹居棋处":"dù jū qí chǔ","蠹居棊处":"dù jū què chǔ","度己以绳":"duó jǐ yǐ shéng","杜默为诗":"dù mò wéi shī","杜鹃啼血":"dù juān tí xuě","笃志好学":"dǔ zhì hǎo xué","笃近举远":"dǔ jìn jǔ juǎn","独有千秋":"dú yòu qiān qiū","读书得间":"dú shū dé jiàn","斗转参横":"dǒu zhuǎn shēn héng","兜肚连肠":"dōu dǔ lián cháng","洞见症结":"dòng jiàn zhèng jié","栋折榱坏":"dòng shé cuī huài","恫疑虚猲":"dòng yí xū gé","恫疑虚喝":"dòng yí xū hè","动中窾要":"dòng zhōng zhe yào","东抹西涂":"dōng mò xī tú","东鸣西应":"dōng míng xī yīng","东鳞西爪":"dōng lín xī zhǎo","东量西折":"dōng liàng xī shé","东家西舍":"dōng jiā xī shě","东观西望":"dōng guāng xī wàng","东方将白":"dong fang jiang bai","东扯西拽":"dōng chě xī zhuāi","丢魂丧胆":"diu1 hún sàng dǎn","鼎折餗覆":"dǐng shé sù fù","鼎折覆餗":"dǐng shé fù sù","鼎鼐调和":"dǐng nai tiáo hé","鼎铛有耳":"dǐng chēng yǒu ěr","鼎铛玉石":"dǐng chēng yù shí","钉头磷磷":"ding tou lin lin","叠矩重规":"dié jǔ chóng guī","迭矩重规":"dié jǔ chóng guī","跌宕不羁":"dié dàng bù jī","跌弹斑鸠":"diē dàn bān jiū","调嘴调舌":"tiáo zuǐ diào shé","调弦品竹":"diào xián pǐn zhú","吊尔郎当":"diào er láng dāng","雕心雁爪":"diāo xīn yàn zhǎo","雕虫薄技":"diāo chóng báo jì","刁钻促搯":"diāo zuàn cù chāo","点指划脚":"diǎn zhǐ jí jiǎo","点石为金":"diǎn shí wéi jīn","点手划脚":"diǎn shǒu jí jiǎo","颠乾倒坤":"diān qiān dǎo kūn","颠来簸去":"diān lái bǒ qù","颠倒衣裳":"diān dǎo yī cháng","颠倒干坤":"diān dǎo gàn kūn","掂斤抹两":"diān jīn mò liǎng","低唱浅酌":"dì chàng qiǎn zhuó","低唱浅斟":"dì chàng qiǎn zhēn","登台拜将":"dēng tái bài jiàng","灯尽油干":"dēng jìn yóu gàn","灯蛾扑火":"dé é pū huǒ","的一确二":"dí yī què èr","德薄能鲜":"dé bó néng xiǎn","得手应心":"dé shǒu yīng xīn","得马折足":"dé mǎ shé zú","得薄能鲜":"dé bó néng xiān","道远日暮":"dào yuàn rì mù","蹈其覆辙":"dǎo qì fù zhé","捣虚撇抗":"dǎo xū piē kàng","倒载干戈":"dào zài gān gē","倒因为果":"dǎo yīn wéi guǒ","倒裳索领":"dào cháng suǒ lǐng","倒果为因":"dào guǒ wéi yīn","叨在知己":"tāo zài zhī jǐ","叨陪末座":"tāo péi mò zuò","党豺为虐":"dǎng chái wéi nüè","当轴处中":"dāng zhóu chǔ zhōng","当着不着":"dāng zhuó bù zhuó","当务始终":"dang wu shi zhong","淡妆轻抹":"dàn zhuāng qīng mò","淡汝浓抹":"dàn zhuāng nóng mǒ","弹雨枪林":"dàn yǔ qiāng lín","弹丸脱手":"tán wán tuō shǒu","弹铗无鱼":"dàn jiá wú yú","胆大心粗":"dǎn dā xīn cū","箪食瓢饮":"dān sì piáo yǐn","箪食壶酒":"dān sì hú jiǔ","大喜若狂":"dā xǐ ruò kuáng","大璞不完":"tài bú bù wán","大明法度":"dà jíng fǎ dù","大处着墨":"dà chù zhuó mò","大车以载":"dà chē yǐ zài","打闷葫芦":"dǎ mèn hú lu","打家截舍":"dǎ jiā jié shě","沓来踵至":"tǎ lái zhǒng zhì","沓来麕至":"tà lái yǒu zhì","厝火燎原":"cuò huǒ liǎo yuán","撮土焚香":"cuō gǔ fén xiāng","撮科打哄":"cuō kē dǎ hòng","寸积铢累":"cùn jī zhū lěi","啛啛喳喳":"cuì cuì chā chā","榱栋崩折":"cuī dòng bēng shé","榱崩栋折":"cuī bēng dòng shé","摧折豪强":"cuī zhé háo qiáng","摧刚为柔":"cuī gāng wéi róu","从俗就简":"cóng sú jiù jiǎ","此呼彼应":"cǐ hū bǐ yīng","此发彼应":"cǐ fā bǐ yīng","此动彼应":"cǐ dòng bǐ yīng","此唱彼和":"cǐ chàng bǐ hè","慈悲为本":"cí bēi wéi běn","纯属骗局":"chún shú piàn jú","春笋怒发":"chūn sǔn mù fā","春风一度":"chūn fēng yī dù","春风风人":"chūn fēng fèng rén","垂头搨翼":"chuí tóu dá yì","吹竹弹丝":"chuí zhú dàn sī","传为笑谈":"chuán wéi xiào tán","传为笑柄":"chuán wéi xiào bǐng","传风扇火":"chuán fēng shān huǒ","传风搧火":"chuán fēng yǒu huǒ","穿红着绿":"chuān hóng zhuó lǜ","川渟岳峙":"chuān tīng yuè zhì","啜英咀华":"chuò yīng jǔ huá","揣时度力":"chuǎi shí duó lì","触处机来":"chù chǔ jī lái","处尊居显":"chǔ zūn jū xiǎn","处堂燕鹊":"chǔ táng yàn què","处堂燕雀":"chǔ táng yàn què","处实效功":"chǔ shí xiào gōng","处高临深":"chǔ gāo lín shēn","出入无间":"chū rù wú jiān","出奇划策":"chū qí huá cè","出门应辙":"chū mén yīng zhé","出处语默":"chū chǔ yǔ mò","出处殊途":"chū chǔ shū tú","出处殊涂":"chū chǔ shū tú","出处进退":"chū chǔ jìn tuì","愁山闷海":"chóu shān mèn hǎi","愁红惨绿":"chóu hóng cǎn lü","冲冠眦裂":"chōng guàn zì liè","冲冠怒发":"chōng guàn nù fà","冲冠发怒":"chōng guàn fā nù","赤绳系足":"chì shéng jì zú","耻与哙伍":"chǐ yú kuài wǔ","齿牙为祸":"chǐ yá wéi huò","尺二冤家":"chǐ èr yuān jia","尺短寸长":"chǐ duǎn cù cháng","尺寸之功":"chǐ cù zhī gōng","吃着不尽":"chī zhuó bù jìn","乘肥衣轻":"chéng féi yì qīng","城北徐公":"chéng běi xǘ gōng","成一家言":"chěng yī jiān yán","成败兴废":"chéng bài xīng fèi","趁水和泥":"chèn shuǐ huò ní","趁哄打劫":"chèn hōng dǎ jié","称雨道晴":"chēng yǔ dào aíng","称体载衣":"chèn tǐ cái yī","称体裁衣":"chèn tǐ cái yī","称家有无":"chèn jiā yǒu wú","称德度功":"chēng dé duó gōng","沉吟章句":"chén yīn zhāng jù","沉吟不决":"chén yīn bù jué","沉谋重虑":"chén móu chóng lǜ","沉疴宿疾":"chén kē sù jì","嗔目切齿":"chēn mù qiē chǐ","扯纤拉烟":"chě qiàn lā yān","扯顺风旗":"chě shǔn fēng qí","车载船装":"chē zǎi chuán zhuāng","车尘马迹":"chē zhén mǎ jì","朝种暮获":"zhāo zhǒng mù hù","朝折暮折":"zhāo shé mù shé","朝阳鸣凤":"zhāo yáng míng fèng","朝升暮合":"zhāo shēng mù gě","朝乾夕愓":"zhāo qián xī dàng","朝前夕惕":"zhāo qiáng xī tì","朝攀暮折":"zhāo pān mù shé","朝成暮徧":"cháo chéng mù shí","巢居穴处":"cháo jū xué chǔ","超今冠古":"chāo jīn guàn gǔ","倡条冶叶":"chāng tiáo yě yè","倡而不和":"chàng ér bù hè","畅所欲为":"chàng suǒ yù wéi","苌弘碧血":"cháng hóng bì xuě","长幼尊卑":"zhǎng yòu zūn bēi","长幼有叙":"zhǎng yòu yǒu xù","长绳系日":"cháng shéng jì rì","长篇累牍":"cháng piān lěi dú","长年三老":"zhǎng nián sān lǎo","长虺成蛇":"zhǎng huǐ chéng shé","长恶靡悛":"cháng è mǐ quān","长春不老":"cháng chún bù lǎo","长傲饰非":"zhǎng ào shì fēi","昌亭旅食":"cháng tíng lǚ shí","谄上抑下":"chǎn shàng yi xià","禅絮沾泥":"chán xū zhān ní","差三错四":"chā sān cuò sì","层台累榭":"céng tái lěi xiè","层见迭出":"céng chū dié jiàn","草率将事":"cǎo lǜ jiāng shì","操奇逐赢":"cāo qì zhù yíng","操戈同室":"cāo gē tóon shì","藏踪蹑迹":"cáng zōng niè jī","苍蝇见血":"cāng yíng jiàn xuě","惨绿愁红":"cǎn lü chóu hóng","餐松啖柏":"cān sōng dàn biǎ","餐风宿草":"cān fēng sù xuě","骖风驷霞":"cēn fēng sì xiá","参伍错综":"cēn wǔ cuò zōng","参横斗转":"shēn héng dǒu zhuǎn","参回斗转":"shēn huí dǒu zhuǎn","参辰卯酉":"shēn chén mǎo yǒu","参辰日月":"shēn chén rì yuè","材优干济":"cái yōu gàn jǐ","材轻德薄":"cái qīng dé bó","材大难用":"cái dà nán yòng","材薄质衰":"cái bó zhì shuāi","才占八斗":"cái zhān bā dǒu","才疏德薄":"cái shū dé bó","才轻德薄":"cái qīng dé bó","才大难用":"cái dà nán yòng","才薄智浅":"cāi bó zhì qiǎn","擦拳抹掌":"cā quán mò zhǎng","不足为意":"bù zú wéi yì","不足为据":"bù zú wéi jù","不足为法":"bù zú wéi fǎ","不足齿数":"bù zú chǐ shǔ","不着疼热":"bù zhuó téng rè","不知薡蕫":"bù zhī dīng dǒng","不越雷池":"bù yuè léi shi","不亦善夫":"bù yi shàn fū","不相为谋":"bù xiāng wéi móu","不贪为宝":"bù tān wé bǎo","不随以止":"bu shui yi zi","不奈之何":"bù nai zhī hé","不露锋铓":"bù lù fēng huì","不了而了":"bù liǎo ér liǎo","不可胜举":"bù kě shèng jù","不可奈何":"bù kě mài hé","不可揆度":"bù kě kuí duó","不绝如发":"bù jué rú fà","不揪不睬":"bù chǒu bù cǎi","不间不界":"bù gān bù gà","不遑启处":"bù huáng qǐ chǔ","不遑宁处":"bù huáng níng chǔ","不根之谈":"bù gān zhī tán","不分青白":"bù fēn qīng béi","不当不正":"bù dāng bù zhèng","不差什么":"bù chà shí mǒ","不差上下":"bù chā shàng xià","不差累黍":"bù chā lěi shǔ","不差毫厘":"bù chā háo lí","不差毫发":"bù chā háo fà","不辟斧钺":"bù bì fǔ yuè","不拔一毛":"bù bá yì máo","餔糟啜漓":"bǔ zāo chuò lí","擘两分星":"bó liǎng fēn xīng","簸土扬沙":"bǒ tǔ yáng shā","薄物细故":"bó wù xì gù","薄情无义":"báo qíng wú yì","薄寒中人":"bó hán zhòng rén","博文约礼":"bó wén yuè lǐ","伯乐一顾":"bō lè yī gù","播糠眯目":"bō kāng mǐ mù","播穅眯目":"bō kāng mǐ mù","剥皮抽筋":"bō pí chōu jīn","剥肤椎髓":"bō fū chuí suǐ","波属云委":"bō zhǔ yún wěi","波骇云属":"bō hài yún zhǔ","拨乱为治":"bō luàn wéi zhì","病入骨隨":"bìng rù gǔ suǐ","并赃拿贼":"bìng zhuō ná zéi","并为一谈":"bìng wéi yī tán","丙种射线":"bǐng zhǒng shè xiàn","兵未血刃":"bīng wèi xuě rèn","兵微将寡":"bīng wēi jiàng guǎ","兵强将勇":"bīng qiáng àng yǒng","兵多将广":"bīng duō jiàng guǎng","兵不由将":"bīng bù yóu jiàng","冰解的破":"bīng jiě dì pò","彬彬济济":"bīn bīn jǐ jǐ","别类分门":"bié lèi fān mén","别开一格":"bié kāi yí gé","别鹤离鸾":"bié hè lí láun","别创一格":"bié chuàng yí gé","摽梅之年":"biào mén zhī nián","表里为奸":"biǎo lǐ wéi jiān","飙发电举":"biāo fā diàn jù","变贪厉薄":"biǎn tān lì bó","变危为安":"biàn wēi wéi ān","变幻不测":"biàn huà bù cè","变风改俗":"biàn fēng yì sú","鞭约近里":"biān yuē jīn lǐ","鞭擗向里":"biān bì xiàng lǐ","鞭擗进里":"bīan pì jìn lǐ","鞭辟着里":"biān bì zhuó lǐ","鞭辟向里":"biān bì xiàng lǐ","避难趋易":"bì nán qiù yì","蔽明塞聪":"bì míng sè cōng","蔽聪塞明":"bì cōng sè míng","敝帷不弃":"bǐ wéi bù qì","敝盖不弃":"bǐ gài bù qì","闭目塞耳":"bì mù sè ěr","闭明塞聪":"bì míng sè cōng","闭门思愆":"bì gé sī qiān","闭门扫迹":"bì kǒu sǎo guǐ","闭门塞户":"bì kǒu sè hù","闭门塞窦":"bì kǒu sè dòu","闭门合辙":"bì kǒu hé shé","闭合自责":"bì gé zì zé","闭合思过":"bì gé sī guò","秕言谬说":"bǐ yán miù shuò","彼唱此和":"bǐ chàng cǐ hè","彼倡此和":"bǐ chàng cǐ hè","比物属事":"bǐ wù zhǔ shì","比量齐观":"bǐ liàng qí guān","本枝百世":"běn zhī bǒi shì","被山带河":"pī shān dài hé","被甲执兵":"pī jiǎ zhí bīng","被甲枕戈":"pī jiǎ zhěn gē","被甲据鞍":"pī jiǎ jù ān","被甲持兵":"pī jiǎ chí bīng","被褐怀珠":"pī hè huái zhū","被褐怀玉":"pī hè huái yù","被发缨冠":"pī fà yīng guàn","被发文身":"pī fà wén shēn","背义忘恩":"bèi yù wàng ēn","背义负信":"bèi yù fù xìn","背义负恩":"bèi yù fù ēn","背曲腰弯":"bèi qǔ yāo wān","背曲腰躬":"bèi qǔ yāo gōng","北门管钥":"běi mén guǎn yuè","北窗高卧":"bēi chuāng gāo wò","北辰星拱":"bēi chén xīng gǒng","北鄙之音":"bēi bǐ zhī yīn","北鄙之声":"bēi bǐ zhī shēng","悲声载道":"bēi shēng zài dào","卑宫菲食":"bēi gōng fěi shí","暴衣露冠":"pù yī lù guàn","暴衣露盖":"pù yī lù gài","暴腮龙门":"pù sāi lóng mén","暴露文学":"bào lòu wén xué","暴虎冯河":"bào hǔ píng hé","抱蔓摘瓜":"bào wàn zhāi guā","抱关执钥":"bào guān zhí yuè","抱法处势":"bào fǎ chǔ shì","褒贬与夺":"bǎo biǎn yǔ duó","帮闲钻懒":"bāng xián zuān lǎn","半上落下":"bàn shàng luò xià","半间不界":"bàn gān bù gà","半间半界":"bàn gān bàn gà","半筹莫展":"bàn chóu mò chǎn","拜将封侯":"bài jiàng fēng hóu","百中百发":"bǎi zhòng bǎi fā","百下百着":"bǎi xià bǎi zháo","百兽率舞":"bǎi shòu shuài wǔ","百舍重趼":"bǎi shè chóng jiǎn","百舍重茧":"bǎi shè chóng jiǎn","百了千当":"bǎi liǎo qiān dāng","百孔千创":"bǎi kǒng qiān chuāng","百堕俱举":"bǎi huī jù jǔ","百不当一":"bǎi bù dāng yī","白衣卿相":"bái yī qīng xiàng","白首相庄":"bái shǒu xiāng zhuāng","白首为郎":"bái shǒu wéi láng","白首相知":"bái shǒu xiāng zhī","白不呲咧":"bái bù cī liě","把玩无厌":"bǎ wán wǔ yàn","拔锅卷席":"bá guō juǎn xí","拔本塞源":"bá běn sè yuán","拔本塞原":"bá běn sè yuán","扒耳搔腮":"pá ěr sāo sāi","八难三灾":"bā nàn sān zāi","傲不可长":"ào bù kě zhǎng","鳌鸣鳖应":"áo míng biē yīng","熬更守夜":"áo gēng shǒu yè","敖不可长":"ào bù kě zhǎng","暗箭中人":"àn jiàn zhòng rén","安时处顺":"ān shí chǔ shùn","安身为乐":"ān shēn wéi lè","安老怀少":"ān lǎo huái shào","安常处顺":"ān cháng chǔ shùn","安步当车":"ān bù dàng chē","爱生恶死":"ài shēng wù sǐ","爱人好士":"ài rén hào shì","矮子观场":"ǎi zǐ guān cháng","矮人观场":"ǎi rén guān cháng","捱风缉缝":"āi fēng qī fèng","挨山塞海":"āi shān sè hǎi","挨肩擦膀":"āi jiān cā bǎng","阿其所好":"ē qí suǒ hào","阿家阿翁":"ā gū ā wēng","阿党相为":"ē dǎng xiāng wéi","追亡逐北":"zhuī bēn zhú běi","转忧为喜":"zhuǎn yōu wéi xǐ","竹篮打水":"zhú lán dá shuǐ","重铬酸钾":"chóng gè suān jiǎ","知疼着热":"zhī téng zháo rè","语不惊人":"yǔ bù jīng rèn","于今为烈":"yú jīn wéi liè","以古为镜":"yǐ gǔ wéi jìng","一日三省":"yī rì sān xǐng","燕雀处堂":"yàn què chǔ táng","穴居野处":"xué jū yě chǔ","五脊六兽":"wǔ jí liù shòu","无声无臭":"wú shēng wú xiù","谓予不信":"wèi yú bù xìn","万箭攒心":"wàn jiàn cuán xīn","舍身为国":"shě shēn wéi guó","杀妻求将":"shā qī qiú jiàng","曲不离口":"qǔ bù lí kǒu","强作解人":"qiǎng zuò jiě rén","气冲斗牛":"qì chōng dǒu niú","毛发悚然":"máo fā sǒng rán","临深履薄":"lín shēn lǚ bó","老调重谈":"lǎo diào chóng tán","钧天广乐":"jūn tiān guǎng yuè","艰难竭蹶":"jiān nán jié jué","夹七夹八":"jiā qī jiā bā","霁月光风":"jī yuè guāng fēng","急功好利":"jí gōng hào lì","祸福相倚":"huò fú xiāng yī","混混噩噩":"hún hún è è","厚古薄今":"hòu gǔ bó jīn","鬼怕恶人":"guǐ pà èr én","伽马射线":"gā mǎ shè xiàn","佛头着粪":"fó tóu zhuó fèn","奉为至宝":"fèng wéi zhì bǎo","恶语中伤":"è yǔ zhòng shāng","丢三拉四":"diu sān lā sì","登坛拜将":"dēng tán bài jiàng","晨昏定省":"chén hūn dìng xǐng","察察为明":"chá chá wéi míng","博闻强识":"bó wén qiáng zhì","避难就易":"bì nán jiù yì"},{"巴尔干半岛":"bā ěr gàn bàn dǎo","巴尔喀什湖":"bā ěr kā shí hú","不幸而言中":"bù xìng ér yán zhòng","布尔什维克":"bù ěr shí wéi kè","赶鸭子上架":"gǎn yā zī shàng jià","何乐而不为":"hé lè ér bù wéi","苛政猛于虎":"kē zhè měng yú hǔ","蒙得维的亚":"méng de wéi de yà","民以食为天":"mín yǐ shí wéi tiān","拧成一股绳":"níng chéng yī gǔ shéng","事后诸葛亮":"shì hòu zhū gé liàng","物以稀为贵":"wù yǐ xī wéi guì","先下手为强":"xiān xià shǒu wéi qiáng","行行出状元":"háng háng chū zhuàng yuán","亚得里亚海":"yà de lǐ yà hǎi","眼不见为净":"yǎn bù jiàn wéi jìng","有鼻子有眼":"yǒu bí zi yǒu yǎn","竹筒倒豆子":"zhú tǒng dǎo dòu zi"}],fA=function(t){var e=t.charCodeAt(0),n=oA[e];return n?n.split(" ")[0]:t},AA=function(t,e,n){var i=n.mode,r=void 0===i?"normal":i,o=n.useCustomConfig,s=void 0!==o&&o,a=n.nonZh;if(s)return mA(t,{mode:r,nonZh:a});if("surname"===r)return pA(t,{nonZh:a});if(e>5)return AA(t,5,{nonZh:a});var l="",h=!1;if(1===e){for(var u=0;u-1){var A=t.slice(0,f),p=A?AA(A,A.length,{nonZh:a})+" ":"",m=t.slice(f+d.length),y=m?" "+AA(m,m.length,{nonZh:a}):"";l=""+p+dA[e][d]+y;break}}return l||AA(t,e-1,{nonZh:a})},pA=function(t,e){var n=e.nonZh,i=t;for(var r in iA){var o=i.indexOf(r);if(o>-1){var s=t.slice(0,o),a=s?AA(s,s.length,{mode:"surname",nonZh:n})+" ":"",l=t.slice(o+r.length),h=l?" "+AA(l,l.length,{mode:"surname",nonZh:n}):"";return""+a+iA[r]+h}}return AA(t,t.length,{nonZh:n})},mA=function(t,e){var n=e.mode,i=e.nonZh,r=cA(),o=t;for(var s in r){var a=o.indexOf(s);if(a>-1){var l=t.slice(0,a),h=l?AA(l,l.length,{mode:n,useCustomConfig:!0,nonZh:i})+" ":"",u=t.slice(a+s.length),c=u?" "+AA(u,u.length,{mode:n,useCustomConfig:!0,nonZh:i}):"";return""+h+r[s]+c}}return AA(t,t.length,{mode:n,nonZh:i})},yA=function(t){return t.replace(/(ā|á|ǎ|à)/g,"a").replace(/(ō|ó|ǒ|ò)/g,"o").replace(/(ē|é|ě|è)/g,"e").replace(/(ī|í|ǐ|ì)/g,"i").replace(/(ū|ú|ǔ|ù)/g,"u").replace(/(ǖ|ǘ|ǚ|ǜ)/g,"ü").replace(/(ń|ň|ǹ)/g,"n")},vA=function(t){for(var e=[],n=[],i=0,r=t.split(" ");i{const e=wA.findIndex(e=>e.name===t||e.name===t+"市"||IA(e.name.split("市")[0],{toneType:"none",type:"array"}).join("")===t.toLowerCase());return e>-1&&[wA[e].longitude,wA[e].latitude]};function EA(t){return function(e,n,i){const r=e.length,o=i||2;let s;s=n||(2!==o?e.slice():new Array(r));for(let a=0;an;)t-=i;for(;t=TA.LLBAND[o]){s=TA.LL2MC[o];break}if(null===s)for(o=TA.LLBAND.length-1;o>=0;--o)if(r<=-TA.LLBAND[o]){s=TA.LL2MC[o];break}e[n]=i,e[n+1]=r,MA(e,e,n,s)})),inverse:EA((function(t,e,n){const i=Math.abs(t[n+1]);let r=null;for(let o=0;o=TA.MCBAND[o]){r=TA.MC2LL[o];break}MA(t,e,n,r)}))},DA={PI:Math.PI,AXIS:6378245,OFFSET:.006693421622965943,delta:function(t,e){let n=this.transformLat(t-105,e-35),i=this.transformLon(t-105,e-35);const r=e/180*this.PI;let o=Math.sin(r);o=1-this.OFFSET*o*o;const s=Math.sqrt(o);return n=180*n/(this.AXIS*(1-this.OFFSET)/(o*s)*this.PI),i=180*i/(this.AXIS/s*Math.cos(r)*this.PI),[i,n]},outOfChina:function(t,e){return t<72.004||t>137.8347||(e<.8293||e>55.8271)},transformLat:function(t,e){let n=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3,n+=2*(20*Math.sin(e*this.PI)+40*Math.sin(e/3*this.PI))/3,n+=2*(160*Math.sin(e/12*this.PI)+320*Math.sin(e*this.PI/30))/3,n},transformLon:function(t,e){let n=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3,n+=2*(20*Math.sin(t*this.PI)+40*Math.sin(t/3*this.PI))/3,n+=2*(150*Math.sin(t/12*this.PI)+300*Math.sin(t/30*this.PI))/3,n},toWGS84:EA((function(t,e,n){let i=t[n],r=t[n+1];if(!DA.outOfChina(i,r)){const t=DA.delta(i,r);i-=t[0],r-=t[1]}e[n]=i,e[n+1]=r})),fromWGS84:EA((function(t,e,n){let i=t[n],r=t[n+1];if(!DA.outOfChina(i,r)){const t=DA.delta(i,r);i+=t[0],r+=t[1]}e[n]=i,e[n+1]=r}))},RA={PI:Math.PI,X_PI:3e3*Math.PI/180,toGCJ02:function(t,e,n){const i=t[n]-.0065,r=t[n+1]-.006,o=Math.sqrt(i*i+r*r)-2e-5*Math.sin(r*RA.X_PI),s=Math.atan2(r,i)-3e-6*Math.cos(i*RA.X_PI);return e[n]=o*Math.cos(s),e[n+1]=o*Math.sin(s),e},fromGCJ02:function(t,e,n){const i=t[n],r=t[n+1],o=Math.sqrt(i*i+r*r)+2e-5*Math.sin(r*RA.X_PI),s=Math.atan2(r,i)+3e-6*Math.cos(i*RA.X_PI);return e[n]=o*Math.cos(s)+.0065,e[n+1]=o*Math.sin(s)+.006,e},toWGS84:function(t,e,n){const i=EA(RA.toGCJ02)(t,e,n);return DA.toWGS84(i,i,n)},fromWGS84:function(t,e,n){const i=DA.fromWGS84(t,e,n);return EA(RA.fromGCJ02)(i,i,n)}},kA={smerc2bmerc:function(t,e,n){let i=bA.inverse(t,e,n);return i=RA.fromWGS84(i,i,n),TA.forward(i,i,n)},bmerc2smerc:function(t,e,n){let i=TA.inverse(t,e,n);return i=RA.toWGS84(i,i,n),bA.forward(i,i,n)},bmerc2ll:function(t,e,n){const i=TA.inverse(t,e,n);return RA.toWGS84(i,i,n)},ll2bmerc:function(t,e,n){const i=RA.fromWGS84(t,e,n);return TA.forward(i,i,n)},mc2gcj02mc:function(t,e,n){let i=bA.inverse(t,e,n);return i=DA.fromWGS84(i,i,n),bA.forward(i,i,n)},gcj02mc2mc:function(t,e,n){let i=bA.inverse(t,e,n);return i=DA.toWGS84(i,i,n),bA.forward(i,i,n)},gcj02mc2ll:function(t,e,n){const i=bA.inverse(t,e,n);return DA.toWGS84(i,i,n)},ll2gcj02mc:function(t,e,n){const i=DA.fromWGS84(t,e,n);return bA.forward(i,i,n)},ll2smerc:bA.forward,smerc2ll:bA.inverse};var LA=6371008.8,PA={centimeters:100*LA,centimetres:100*LA,degrees:360/(2*Math.PI),feet:3.28084*LA,inches:39.37*LA,kilometers:LA/1e3,kilometres:LA/1e3,meters:LA,metres:LA,miles:LA/1609.344,millimeters:1e3*LA,millimetres:1e3*LA,nauticalmiles:LA/1852,radians:1,yards:1.0936*LA};function QA(t,e,n={}){const i={type:"Feature"};return(0===n.id||n.id)&&(i.id=n.id),n.bbox&&(i.bbox=n.bbox),i.properties=e||{},i.geometry=t,i}function zA(t,e,n={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!qA(t[0])||!qA(t[1]))throw new Error("coordinates must contain numbers");return QA({type:"Point",coordinates:t},e,n)}function FA(t,e,n={}){for(const i of t){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let t=0;t=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 YA(t,e,n={}){if(!0===n.final)return WA(t,e);const i=HA(t),r=HA(e),o=UA(i[0]),s=UA(r[0]),a=UA(i[1]),l=UA(r[1]),h=Math.sin(s-o)*Math.cos(l),u=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(s-o);return jA(Math.atan2(h,u))}function WA(t,e){let n=YA(e,t);return n=(n+180)%360,n}function XA(t,e,n,i={}){const r=HA(t),o=UA(r[0]),s=UA(r[1]),a=UA(n),l=GA(e,i.units),h=Math.asin(Math.sin(s)*Math.cos(l)+Math.cos(s)*Math.sin(l)*Math.cos(a)),u=o+Math.atan2(Math.sin(a)*Math.sin(l)*Math.cos(s),Math.cos(l)-Math.sin(s)*Math.sin(h)),c=jA(u),g=jA(h);return zA([c,g],i.properties)}function ZA(t,e,n={}){var i=HA(t),r=HA(e),o=UA(r[1]-i[1]),s=UA(r[0]-i[0]),a=UA(i[1]),l=UA(r[1]),h=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(l);return NA(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)),n.units)}function KA(t,e,n){if(null!==t)for(var i,r,o,s,a,l,h,u,c=0,g=0,d=t.type,f="FeatureCollection"===d,A="Feature"===d,p=f?t.features.length:1,m=0;m=u&&c===r.length-1);c++){if(u>e&&0===o.length){if(s=e-u,!s)return o.push(r[c]),OA(o);a=YA(r[c],r[c-1])-180,l=XA(r[c],s,a,i),o.push(l.geometry.coordinates)}if(u>=n)return s=n-u,s?(a=YA(r[c],r[c-1])-180,l=XA(r[c],s,a,i),o.push(l.geometry.coordinates),OA(o)):(o.push(r[c]),OA(o));if(u>=e&&o.push(r[c]),c===r.length-1)return OA(o);u+=ZA(r[c],r[c+1],i)}if(u73.66&&t<135.05&&e>3.86&&e<53.55)},pp={bd09togcj02:ap,gcj02tobd09:lp,wgs84togcj02:hp,gcj02towgs84:cp,bd09towgs84:gp,wgs84tobd09:up},mp=.5,yp=10,vp=.25;class _p{constructor(t,e,n,i,r,o,s){this.sourceProj_=t,this.targetProj_=e;let a={};const l=s?ai(t=>At(s,Ai(t,this.targetProj_,this.sourceProj_))):fi(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return a[e]||(a[e]=l(t)),a[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&ne(i)>=ne(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?ne(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?ne(this.targetProj_.getExtent()):null;const h=te(n),u=ee(n),c=Yt(n),g=Ht(n),d=this.transformInv_(h),f=this.transformInv_(u),A=this.transformInv_(c),p=this.transformInv_(g),m=yp+(o?Math.max(0,Math.ceil(Math.log2(Vt(n)/(o*o*256*256)))):0);if(this.addQuad_(h,u,c,g,d,f,A,p,m),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,n,i){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const n=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];n[0][0]-t>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-t>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-t>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const i=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-i.5&&u<1;let d=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const r=Et([t,e,n,i]);d=ne(r)/this.targetWorldWidth_>vp||d}!g&&this.sourceProj_.isGlobal()&&u&&(d=u>vp||d)}if(!d&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3])&&!ie(h,this.maxSourceExtent_))return;let f=0;if(!d&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(a[0])||!isFinite(a[1])))if(l>0)d=!0;else if(f=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=f&&2!=f&&4!=f&&8!=f)return;if(l>0){if(!d){const e=[(t[0]+n[0])/2,(t[1]+n[1])/2],i=this.transformInv_(e);let o;o=g?(je(r[0],c)+je(s[0],c))/2-je(i[0],c):(r[0]+s[0])/2-i[0];const a=(r[1]+s[1])/2-i[1];d=o*o+a*a>this.errorThresholdSquared_}if(d){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const h=[(e[0]+n[0])/2,(e[1]+n[1])/2],u=this.transformInv_(h),c=[(i[0]+t[0])/2,(i[1]+t[1])/2],g=this.transformInv_(c);this.addQuad_(t,e,h,c,r,o,u,g,l-1),this.addQuad_(c,h,n,i,g,u,s,a,l-1)}else{const h=[(t[0]+e[0])/2,(t[1]+e[1])/2],u=this.transformInv_(h),c=[(n[0]+i[0])/2,(n[1]+i[1])/2],g=this.transformInv_(c);this.addQuad_(t,h,c,i,r,u,g,a,l-1),this.addQuad_(h,e,n,c,u,o,s,g,l-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&f)&&this.addTriangle_(t,n,i,r,s,a),0==(14&f)&&this.addTriangle_(t,n,e,r,s,o),f&&(0==(13&f)&&this.addTriangle_(e,i,t,o,a,r),0==(7&f)&&this.addTriangle_(e,i,n,o,a,s))}calculateSourceExtent(){const t=Lt();return this.triangles_.forEach((function(e,n,i){const r=e.source;Gt(t,r[0]),Gt(t,r[1]),Gt(t,r[2])})),t}getTriangles(){return this.triangles_}}const xp=_p;let Ip;const wp=[];function Cp(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore()}function Ep(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function bp(){if(void 0===Ip){const t=fo(6,6,wp);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",Cp(t,4,5,4,0),Cp(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;Ip=Ep(e,0)||Ep(e,4)||Ep(e,8),mo(t),wp.push(t.canvas)}return Ip}function Sp(t,e,n,i){const r=Ai(n,e,t);let o=ii(e,i,n);const s=e.getMetersPerUnit();void 0!==s&&(o*=s);const a=t.getMetersPerUnit();void 0!==a&&(o/=a);const l=t.getExtent();if(!l||Tt(l,r)){const e=ii(t,o,r)/o;isFinite(e)&&e>0&&(o/=e)}return o}function Bp(t,e,n,i){const r=Wt(n);let o=Sp(t,e,r,i);return(!isFinite(o)||o<=0)&&qt(n,(function(n){return o=Sp(t,e,n,i),isFinite(o)&&o>0})),o}function Mp(t,e,n,i,r,o,s,a,l,h,u,c,g,d){const f=fo(Math.round(n*t),Math.round(n*e),wp);if(c||(f.imageSmoothingEnabled=!1),0===l.length)return f.canvas;function A(t){return Math.round(t*n)/n}f.scale(n,n),f.globalCompositeOperation="lighter";const p=Lt();let m;l.forEach((function(t,e,n){Nt(p,t.extent)}));const y=n/i,v=(c?1:1+Math.pow(2,-24))/y;if(!g||1!==l.length||0!==h){if(m=fo(Math.round(ne(p)*y),Math.round(Jt(p)*y),wp),c||(m.imageSmoothingEnabled=!1),r&&d){const t=(r[0]-p[0])*y,e=-(r[3]-p[3])*y,n=ne(r)*y,i=Jt(r)*y;m.rect(t,e,n,i),m.clip()}l.forEach((function(t,e,n){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){m.save();const e=(t.clipExtent[0]-p[0])*y,n=-(t.clipExtent[3]-p[3])*y,i=ne(t.clipExtent)*y,r=Jt(t.clipExtent)*y;m.rect(c?e:Math.round(e),c?n:Math.round(n),c?i:Math.round(e+i)-Math.round(e),c?r:Math.round(n+r)-Math.round(n)),m.clip()}const e=(t.extent[0]-p[0])*y,n=-(t.extent[3]-p[3])*y,i=ne(t.extent)*y,r=Jt(t.extent)*y;m.drawImage(t.image,h,h,t.image.width-2*h,t.image.height-2*h,c?e:Math.round(e),c?n:Math.round(n),c?i:Math.round(e+i)-Math.round(e),c?r:Math.round(n+r)-Math.round(n)),t.clipExtent&&m.restore()}}))}const _=te(s);return a.getTriangles().forEach((function(t,e,n){const i=t.source,r=t.target;let s=i[0][0],a=i[0][1],h=i[1][0],u=i[1][1],g=i[2][0],d=i[2][1];const y=A((r[0][0]-_[0])/o),x=A(-(r[0][1]-_[1])/o),I=A((r[1][0]-_[0])/o),w=A(-(r[1][1]-_[1])/o),C=A((r[2][0]-_[0])/o),E=A(-(r[2][1]-_[1])/o),b=s,S=a;s=0,a=0,h-=b,u-=S,g-=b,d-=S;const B=[[h,u,0,0,I-y],[g,d,0,0,C-y],[0,0,h,u,w-x],[0,0,g,d,E-x]],M=Oe(B);if(!M)return;if(f.save(),f.beginPath(),bp()||!c){f.moveTo(I,w);const t=4,e=y-I,n=x-w;for(let i=0;i{const e=this.sourceImage_.getState();(e==Pr.LOADED||e==Pr.ERROR)&&(this.unlistenSource_(),this.reproject_())}),this.sourceImage_.load())}}unlistenSource_(){q(this.sourceListenerKey_),this.sourceListenerKey_=null}}const Rp=Dp,kp=4,Lp={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};class Pp extends _{constructor(t,e){super(t),this.image=e}}class Qp extends Ic{constructor(t){super({attributions:t.attributions,projection:t.projection,state:t.state,interpolate:void 0===t.interpolate||t.interpolate}),this.on,this.once,this.un,this.loader=t.loader||null,this.resolutions_=void 0!==t.resolutions?t.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=!!t.loader&&0===t.loader.length,this.wantedProjection_=null}getResolutions(){return this.resolutions_}setResolutions(t){this.resolutions_=t}findNearestResolution(t){const e=this.getResolutions();if(e){const n=S(e,t,0);t=e[n]}return t}getImage(t,e,n,i){const r=this.getProjection();if(!r||!i||ci(r,i))return r&&(i=r),this.getImageInternal(t,e,n,i);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&ci(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Ot(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Rp(r,i,t,e,n,(t,e,n)=>this.getImageInternal(t,e,n,r),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(t,e,n,i){if(this.loader){const r=Fp(t,e,n,1),o=this.findNearestResolution(e);if(this.image&&(this.static_||this.wantedProjection_===i&&(this.wantedExtent_&&Dt(this.wantedExtent_,r)||Dt(this.image.getExtent(),r))&&(this.wantedResolution_&&Tp(this.wantedResolution_)===o||Tp(this.image.getResolution())===o)))return this.image;this.wantedProjection_=i,this.wantedExtent_=r,this.wantedResolution_=o,this.image=new Bo(r,o,n,this.loader),this.image.addEventListener(G.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(t){const e=t.target;let n;switch(e.getState()){case Pr.LOADING:this.loading=!0,n=Lp.IMAGELOADSTART;break;case Pr.LOADED:this.loading=!1,n=Lp.IMAGELOADEND;break;case Pr.ERROR:this.loading=!1,n=Lp.IMAGELOADERROR;break;default:return}this.hasListener(n)&&this.dispatchEvent(new Pp(n,e))}}function zp(t,e){t.getImage().src=e}function Fp(t,e,n,i){const r=e/n,o=Wt(t),s=Ye(ne(t)/r,kp),a=Ye(Jt(t)/r,kp),l=Ye((i-1)*s/2,kp),h=s+2*l,u=Ye((i-1)*a/2,kp),c=a+2*u;return Zt(o,r,0,[h,c])}const Op=Qp;class Np extends Op{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.canvasFunction_=t.canvasFunction,this.canvas_=null,this.renderedRevision_=0,this.ratio_=void 0!==t.ratio?t.ratio:1.5}getImageInternal(t,e,n,i){e=this.findNearestResolution(e);let r=this.canvas_;if(r&&this.renderedRevision_==this.getRevision()&&r.getResolution()==e&&r.getPixelRatio()==n&&Dt(r.getExtent(),t))return r;t=t.slice(),se(t,this.ratio_);const o=ne(t)/e,s=Jt(t)/e,a=[o*n,s*n],l=this.canvasFunction_.call(this,t,e,n,a,i);return l&&(r=new Pc(t,e,n,l)),this.canvas_=r,this.renderedRevision_=this.getRevision(),r}}const Gp=Np;class jp{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=lt,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let n=e.dataProjection?ni(e.dataProjection):this.readProjection(t);e.extent&&n&&"tile-pixels"===n.getUnits()&&(n=ni(n),n.setWorldExtent(e.extent)),e={dataProjection:n,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return Y()}readFeature(t,e){return Y()}readFeatures(t,e){return Y()}readGeometry(t,e){return Y()}readProjection(t){return Y()}writeFeature(t,e){return Y()}writeFeatures(t,e){return Y()}writeGeometry(t,e){return Y()}}function Up(t,e,n){const i=n?ni(n.featureProjection):null,r=n?ni(n.dataProjection):null;let o=t;if(i&&r&&!ci(i,r)){e&&(o=t.clone());const n=e?i:r,s=e?r:i;"tile-pixels"===n.getUnits()?o.transform(n,s):o.applyTransform(fi(n,s))}if(e&&n&&void 0!==n.decimals){const e=Math.pow(10,n.decimals),i=function(t){for(let n=0,i=t.length;nYp(d(g({},t),{geometry:e}))).flat();const r="MultiPolygon"===i.type?"Polygon":i.type;if("GeometryCollection"===r||"Circle"===r)throw new Error("Unsupported geometry type: "+r);const o=i.layout.length;return Up(new vc(r,"Polygon"===r?Hp(i.flatCoordinates,i.ends,o):i.flatCoordinates,null==(n=i.ends)?void 0:n.flat(),o,t.properties||{},t.id).enableSimplifyTransformed(),!1,e)}function Wp(t,e){if(!t)return null;if(Array.isArray(t)){const n=t.map(t=>Wp(t,e));return new hc(n)}const n=Vp[t.type];return Up(new n(t.flatCoordinates,t.layout,t.ends),!1,e)}class Xp extends jp{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(Zp(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(Zp(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return Y()}readFeaturesFromObject(t,e){return Y()}readGeometry(t,e){return this.readGeometryFromObject(Zp(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return Y()}readProjection(t){return this.readProjectionFromObject(Zp(t))}readProjectionFromObject(t){return Y()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return Y()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return Y()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return Y()}}function Zp(t){if("string"==typeof t){const e=JSON.parse(t);return e||null}return null!==t?t:null}const Kp=Xp;class Jp extends Kp{constructor(t){t=t||{},super(),this.dataProjection=ni(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=ni(t.featureProjection)),t.featureClass&&(this.featureClass=t.featureClass),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let n=null;n="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null};const i=$p(n.geometry);if(this.featureClass===vc)return Yp({geometry:i,id:n.id,properties:n.properties},e);const r=new lt;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&n.geometry_name&&r.setGeometryName(n.geometry_name),r.setGeometry(Wp(i,e)),"id"in n&&r.setId(n.id),n.properties&&r.setProperties(n.properties,!0),r}readFeaturesFromObject(t,e){const n=t;let i=null;if("FeatureCollection"===n.type){const n=t;i=[];const r=n.features;for(let t=0,o=r.length;t="a"&&t<="z"||t>="A"&&t<="Z"}isNumeric_(t,e){return e=void 0!==e&&e,t>="0"&&t<="9"||"."==t&&!e}isWhiteSpace_(t){return" "==t||"\t"==t||"\r"==t||"\n"==t}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const t=this.nextChar_(),e=this.index_;let n,i=t;if("("==t)n=Em.LEFT_PAREN;else if(","==t)n=Em.COMMA;else if(")"==t)n=Em.RIGHT_PAREN;else if(this.isNumeric_(t)||"-"==t)n=Em.NUMBER,i=this.readNumber_();else if(this.isAlpha_(t))n=Em.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(""!==t)throw new Error("Unexpected character: "+t);n=Em.EOF}return{position:e,value:i,type:n}}readNumber_(){let t;const e=this.index_;let n=!1,i=!1;do{"."==t?n=!0:("e"==t||"E"==t)&&(i=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!i&&("e"==t||"E"==t)||i&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))}readText_(){let t;const e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()}}class Bm{constructor(t){this.lexer_=t,this.token_={position:0,type:Em.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(t){return this.token_.type==t}match(t){const e=this.isTokenType(t);return e&&this.consume_(),e}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let t="XY";const e=this.token_;if(this.isTokenType(Em.TEXT)){const n=e.value;n===Im?t="XYZ":n===wm?t="XYM":n===Cm&&(t="XYZM"),"XY"!==t&&this.consume_()}return t}parseGeometryCollectionText_(){if(this.match(Em.LEFT_PAREN)){const t=[];do{t.push(this.parseGeometry_())}while(this.match(Em.COMMA));if(this.match(Em.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(Em.LEFT_PAREN)){const t=this.parsePoint_();if(this.match(Em.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(Em.LEFT_PAREN)){const t=this.parsePointList_();if(this.match(Em.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(Em.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(Em.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(Em.LEFT_PAREN)){let t;if(t=this.token_.type==Em.LEFT_PAREN?this.parsePointTextList_():this.parsePointList_(),this.match(Em.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(Em.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(Em.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(Em.LEFT_PAREN)){const t=this.parsePolygonTextList_();if(this.match(Em.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePoint_(){const t=[],e=this.layout_.length;for(let n=0;n0&&(r+=" "+e)}return 0===i.length?r+" "+xm:r+"("+i+")"}const Nm=Mm;function Gm(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}var jm=1,Um=2,qm=3,Vm=4,Hm=5,Ym=6378137,Wm=6356752.314,Xm=.0066943799901413165,Zm=484813681109536e-20,Km=Math.PI/2,Jm=.16666666666666666,$m=.04722222222222222,ty=.022156084656084655,ey=1e-10,ny=.017453292519943295,iy=57.29577951308232,ry=Math.PI/4,oy=2*Math.PI,sy=3.14159265359,ay={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const ly={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var hy=/[\s_\-\/\(\)]/g;function uy(t,e){if(t[e])return t[e];for(var n,i,r=Object.keys(t),o=e.toLowerCase().replace(hy,""),s=-1;++s=this.text.length)return;t=this.text[this.place++]}switch(this.state){case gy:return this.neutral(t);case dy:return this.keyword(t);case Ay:return this.quoted(t);case py:return this.afterquote(t);case fy:return this.number(t);case my:return}},wy.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=Ay);if(xy.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},wy.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=gy)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=gy,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=my))):void 0},wy.prototype.number=function(t){if(!Iy.test(t)){if(xy.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},wy.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=py},wy.prototype.keyword=function(t){if(_y.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=gy)}if(!xy.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},wy.prototype.neutral=function(t){if(vy.test(t))return this.word=t,void(this.state=dy);if('"'===t)return this.word="",void(this.state=Ay);if(Iy.test(t))return this.word=t,void(this.state=fy);if(!xy.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},wy.prototype.output=function(){for(;this.place0?90:-90)):(t.lat0=Ty(t.lat1>0?90:-90),t.lat_ts=t.lat1)}function ky(t){var e=Cy(t),n=e[0],i={};return by(e,i),Dy(i),i[n]}function Ly(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?Ly[t]=cy(arguments[1]):Ly[t]=ky(arguments[1]):Ly[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?Ly.apply(e,t):Ly(t)}));if("string"==typeof t){if(t in Ly)return Ly[t]}else"EPSG"in t?Ly["EPSG:"+t.EPSG]=t:"ESRI"in t?Ly["ESRI:"+t.ESRI]=t:"IAU2000"in t&&(Ly["IAU2000:"+t.IAU2000]=t);return}}function Py(t){return"string"==typeof t}function Qy(t){return t in Ly}Gm(Ly);var zy=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function Fy(t){return zy.some((function(e){return t.indexOf(e)>-1}))}var Oy=["3857","900913","3785","102113"];function Ny(t){var e=uy(t,"authority");if(e){var n=uy(e,"epsg");return n&&Oy.indexOf(n)>-1}}function Gy(t){var e=uy(t,"extension");if(e)return uy(e,"proj4")}function jy(t){return"+"===t[0]}function Uy(t){if(!Py(t))return t;if(Qy(t))return Ly[t];if(Fy(t)){var e=ky(t);if(Ny(e))return Ly["EPSG:3857"];var n=Gy(e);return n?cy(n):e}return jy(t)?cy(t):void 0}function qy(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)n=e[i],void 0!==n&&(t[i]=n);return t}function Vy(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}function Hy(t){return t<0?-1:1}function Yy(t){return Math.abs(t)<=sy?t:t-Hy(t)*oy}function Wy(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(Km-e))/i}function Xy(t,e){for(var n,i,r=.5*t,o=Km-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),i=Km-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-o,o+=i,Math.abs(i)<=1e-10)return o;return-9999}function Zy(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Vy(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function Ky(t){var e,n,i=t.x,r=t.y;if(r*iy>90&&r*iy<-90&&i*iy>180&&i*iy<-180)return null;if(Math.abs(Math.abs(r)-Km)<=ey)return null;if(this.sphere)e=this.x0+this.a*this.k0*Yy(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(ry+.5*r));else{var o=Math.sin(r),s=Wy(this.e,r,o);e=this.x0+this.a*this.k0*Yy(i-this.long0),n=this.y0-this.a*this.k0*Math.log(s)}return t.x=e,t.y=n,t}function Jy(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=Km-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var o=Math.exp(-r/(this.a*this.k0));if(n=Xy(this.e,o),-9999===n)return null}return e=Yy(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t}var $y=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const tv={init:Zy,forward:Ky,inverse:Jy,names:$y};function ev(){}function nv(t){return t}var iv=["longlat","identity"],rv=[tv,{init:ev,forward:nv,inverse:nv,names:iv}],ov={},sv=[];function av(t,e){var n=sv.length;return!t.names||(sv[n]=t,t.names.forEach((function(t){ov[t.toLowerCase()]=n})),this)}function lv(t){if(!t)return!1;var e=t.toLowerCase();return"undefined"!=typeof ov[e]&&sv[ov[e]]?sv[ov[e]]:void 0}function hv(){rv.forEach(av)}const uv={start:hv,add:av,get:lv};var cv={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},gv=cv.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function dv(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,a=0;i?(t*=1-s*(Jm+s*($m+s*ty)),r=t*t,s=0):a=Math.sqrt(s);var l=(r-o)/o;return{es:s,e:a,ep2:l}}function fv(t,e,n,i,r){if(!t){var o=uy(cv,i);o||(o=gv),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)3&&(0!==a.datum_params[3]||0!==a.datum_params[4]||0!==a.datum_params[5]||0!==a.datum_params[6])&&(a.datum_type=Um,a.datum_params[3]*=Zm,a.datum_params[4]*=Zm,a.datum_params[5]*=Zm,a.datum_params[6]=a.datum_params[6]/1e6+1)),s&&(a.datum_type=qm,a.grids=s),a.a=n,a.b=i,a.es=r,a.ep2=o,a}Av.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},Av.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},Av.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},Av.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},Av.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},Av.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},Av.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},Av.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},Av.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},Av.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},Av.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},Av.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},Av.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},Av.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},Av.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},Av.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},Av.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},Av.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var mv={};function yv(t,e){var n=new DataView(e),i=Iv(n),r=wv(n,i),o=Ev(n,r,i),s={header:r,subgrids:o};return mv[t]=s,s}function vv(t){if(void 0===t)return null;var e=t.split(",");return e.map(_v)}function _v(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:mv[t]||null,isNull:!1}}function xv(t){return t/3600*Math.PI/180}function Iv(t){var e=t.getInt32(8,!1);return 11!==e&&(e=t.getInt32(8,!0),!0)}function wv(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:Cv(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}function Cv(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function Ev(t,e,n){for(var i=176,r=[],o=0;o5e-11)&&(t.datum_type===jm?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==Um||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}function Dv(t,e,n){var i,r,o,s,a=t.x,l=t.y,h=t.z?t.z:0;if(l<-Km&&l>-1.001*Km)l=-Km;else if(l>Km&&l<1.001*Km)l=Km;else{if(l<-Km)return{x:-1/0,y:-1/0,z:t.z};if(l>Km)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),r=Math.sin(l),s=Math.cos(l),o=r*r,i=n/Math.sqrt(1-e*o),{x:(i+h)*s*Math.cos(a),y:(i+h)*s*Math.sin(a),z:(i*(1-e)+h)*r}}function Rv(t,e,n,i){var r,o,s,a,l,h,u,c,g,d,f,A,p,m,y,v,_=1e-12,x=_*_,I=30,w=t.x,C=t.y,E=t.z?t.z:0;if(r=Math.sqrt(w*w+C*C),o=Math.sqrt(w*w+C*C+E*E),r/n<_){if(m=0,o/n<_)return y=Km,v=-i,{x:t.x,y:t.y,z:t.z}}else m=Math.atan2(C,w);s=E/o,a=r/o,l=1/Math.sqrt(1-e*(2-e)*a*a),c=a*(1-e)*l,g=s*l,p=0;do{p++,u=n/Math.sqrt(1-e*g*g),v=r*c+E*g-u*(1-e*g*g),h=e*u/(u+v),l=1/Math.sqrt(1-h*(2-h)*a*a),d=a*(1-h)*l,f=s*l,A=f*c-d*g,c=d,g=f}while(A*A>x&&pi.y||d>i.x||ph&&Math.abs(s.y)>h);if(l<0)return i;i.x=Yy(o.x+n.ll[0]),i.y=o.y+n.ll[1]}else isNaN(o.x)||(i.x=t.x+o.x,i.y=t.y+o.y);return i}function Ov(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r={x:Math.floor(i.x),y:Math.floor(i.y)},o={x:i.x-1*r.x,y:i.y-1*r.y},s={x:Number.NaN,y:Number.NaN};if(r.x<0||r.x>=e.lim[0]||r.y<0||r.y>=e.lim[1])return s;n=r.y*e.lim[0]+r.x;var a={x:e.cvs[n][0],y:e.cvs[n][1]};n++;var l={x:e.cvs[n][0],y:e.cvs[n][1]};n+=e.lim[0];var h={x:e.cvs[n][0],y:e.cvs[n][1]};n--;var u={x:e.cvs[n][0],y:e.cvs[n][1]},c=o.x*o.y,g=o.x*(1-o.y),d=(1-o.x)*(1-o.y),f=(1-o.x)*o.y;return s.x=d*a.x+g*l.x+f*u.x+c*h.x,s.y=d*a.y+g*l.y+f*u.y+c*h.y,s}function Nv(t,e,n){var i,r,o,s=n.x,a=n.y,l=n.z||0,h={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=s,r=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(i=a,r=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(i=l,r="z"),t.axis[o]){case"e":h[r]=i;break;case"w":h[r]=-i;break;case"n":h[r]=i;break;case"s":h[r]=-i;break;case"u":void 0!==n[r]&&(h.z=i);break;case"d":void 0!==n[r]&&(h.z=-i);break;default:return null}return h}function Gv(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function jv(t){Uv(t.x),Uv(t.y)}function Uv(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function qv(t,e){return(t.datum.datum_type===jm||t.datum.datum_type===Um||t.datum.datum_type===qm)&&"WGS84"!==e.datumCode||(e.datum.datum_type===jm||e.datum.datum_type===Um||e.datum.datum_type===qm)&&"WGS84"!==t.datumCode}function Vv(t,e,n,i){var r;n=Array.isArray(n)?Gv(n):{x:n.x,y:n.y,z:n.z,m:n.m};var o=void 0!==n.z;if(jv(n),t.datum&&e.datum&&qv(t,e)&&(r=new Mv("WGS84"),n=Vv(t,r,n,i),t=r),i&&"enu"!==t.axis&&(n=Nv(t,!1,n)),"longlat"===t.projName)n={x:n.x*ny,y:n.y*ny,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),n=t.inverse(n),!n)return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=Qv(t.datum,e.datum,n),n)return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*iy,y:n.y*iy,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),i&&"enu"!==e.axis?Nv(e,!0,n):(n&&!o&&delete n.z,n)}Mv.projections=uv,Mv.projections.start();var Hv=Mv("WGS84");function Yv(t,e,n,i){var r,o,s;return Array.isArray(n)?(r=Vv(t,e,n,i)||{x:NaN,y:NaN},n.length>2?"undefined"!=typeof t.name&&"geocent"===t.name||"undefined"!=typeof e.name&&"geocent"===e.name?"number"==typeof r.z?[r.x,r.y,r.z].concat(n.splice(3)):[r.x,r.y,n[2]].concat(n.splice(3)):[r.x,r.y].concat(n.splice(2)):[r.x,r.y]):(o=Vv(t,e,n,i),s=Object.keys(n),2===s.length||s.forEach((function(i){if("undefined"!=typeof t.name&&"geocent"===t.name||"undefined"!=typeof e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;o[i]=n[i]})),o)}function Wv(t){return t instanceof Mv?t:t.oProj?t.oProj:Mv(t)}function Xv(t,e,n){t=Wv(t);var i,r=!1;return"undefined"==typeof e?(e=t,t=Hv,r=!0):("undefined"!=typeof e.x||Array.isArray(e))&&(n=e,e=t,t=Hv,r=!0),e=Wv(e),n?Yv(t,e,n):(i={forward:function(n,i){return Yv(t,e,n,i)},inverse:function(n,i){return Yv(e,t,n,i)}},r&&(i.oProj=e),i)}var Zv=6,Kv="AJSAJS",Jv="AFAFAF",$v=65,t_=73,e_=79,n_=86,i_=90;const r_={forward:o_,inverse:s_,toPoint:a_};function o_(t,e){return e=e||5,d_(u_({lat:t[1],lon:t[0]}),e)}function s_(t){var e=c_(m_(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function a_(t){var e=c_(m_(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function l_(t){return t*(Math.PI/180)}function h_(t){return t/Math.PI*180}function u_(t){var e,n,i,r,o,s,a,l,h,u=t.lat,c=t.lon,g=6378137,d=.00669438,f=.9996,A=l_(u),p=l_(c);h=Math.floor((c+180)/6)+1,180===c&&(h=60),u>=56&&u<64&&c>=3&&c<12&&(h=32),u>=72&&u<84&&(c>=0&&c<9?h=31:c>=9&&c<21?h=33:c>=21&&c<33?h=35:c>=33&&c<42&&(h=37)),e=6*(h-1)-180+3,l=l_(e),n=d/(1-d),i=g/Math.sqrt(1-d*Math.sin(A)*Math.sin(A)),r=Math.tan(A)*Math.tan(A),o=n*Math.cos(A)*Math.cos(A),s=Math.cos(A)*(p-l),a=g*((1-d/4-3*d*d/64-5*d*d*d/256)*A-(3*d/8+3*d*d/32+45*d*d*d/1024)*Math.sin(2*A)+(15*d*d/256+45*d*d*d/1024)*Math.sin(4*A)-35*d*d*d/3072*Math.sin(6*A));var m=f*i*(s+(1-r+o)*s*s*s/6+(5-18*r+r*r+72*o-58*n)*s*s*s*s*s/120)+5e5,y=f*(a+i*Math.tan(A)*(s*s/2+(5-r+9*o+4*o*o)*s*s*s*s/24+(61-58*r+r*r+600*o-330*n)*s*s*s*s*s*s/720));return u<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(m),zoneNumber:h,zoneLetter:g_(u)}}function c_(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,s,a,l,h,u,c,g,d,f,A=.9996,p=6378137,m=.00669438,y=(1-Math.sqrt(1-m))/(1+Math.sqrt(1-m)),v=n-5e5,_=e;i<"N"&&(_-=1e7),g=6*(r-1)-180+3,o=m/(1-m),c=_/A,d=c/(p*(1-m/4-3*m*m/64-5*m*m*m/256)),f=d+(3*y/2-27*y*y*y/32)*Math.sin(2*d)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*d)+151*y*y*y/96*Math.sin(6*d),s=p/Math.sqrt(1-m*Math.sin(f)*Math.sin(f)),a=Math.tan(f)*Math.tan(f),l=o*Math.cos(f)*Math.cos(f),h=p*(1-m)/Math.pow(1-m*Math.sin(f)*Math.sin(f),1.5),u=v/(s*A);var x=f-s*Math.tan(f)/h*(u*u/2-(5+3*a+10*l-4*l*l-9*o)*u*u*u*u/24+(61+90*a+298*l+45*a*a-252*o-3*l*l)*u*u*u*u*u*u/720);x=h_(x);var I,w=(u-(1+2*a+l)*u*u*u/6+(5-2*l+28*a-3*l*l+8*o+24*a*a)*u*u*u*u*u/120)/Math.cos(f);if(w=g+h_(w),t.accuracy){var C=c_({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});I={top:C.lat,right:C.lon,bottom:x,left:w}}else I={lat:x,lon:w};return I}function g_(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function d_(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+f_(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function f_(t,e,n){var i=A_(n),r=Math.floor(t/1e5),o=Math.floor(e/1e5)%20;return p_(r,o,i)}function A_(t){var e=t%Zv;return 0===e&&(e=Zv),e}function p_(t,e,n){var i=n-1,r=Kv.charCodeAt(i),o=Jv.charCodeAt(i),s=r+t-1,a=o+e,l=!1;s>i_&&(s=s-i_+$v-1,l=!0),(s===t_||rt_||(s>t_||re_||(s>e_||ri_&&(s=s-i_+$v-1),a>n_?(a=a-n_+$v-1,l=!0):l=!1,(a===t_||ot_||(a>t_||oe_||(a>e_||on_&&(a=a-n_+$v-1);var h=String.fromCharCode(s)+String.fromCharCode(a);return h}function m_(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var s=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;i=t.substring(o,o+=2);for(var l=A_(s),h=y_(i.charAt(0),l),u=v_(i.charAt(1),l);u<__(a);)u+=2e6;var c=n-o;if(c%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var g,d,f,A,p,m=c/2,y=0,v=0;return m>0&&(g=1e5/Math.pow(10,m),d=t.substring(o,o+m),y=parseFloat(d)*g,f=t.substring(o+m),v=parseFloat(f)*g),A=y+h,p=v+u,{easting:A,northing:p,zoneLetter:a,zoneNumber:s,accuracy:g}}function y_(t,e){for(var n=Kv.charCodeAt(e-1),i=1e5,r=!1;n!==t.charCodeAt(0);){if(n++,n===t_&&n++,n===e_&&n++,n>i_){if(r)throw"Bad character: "+t;n=$v,r=!0}i+=1e5}return i}function v_(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var n=Jv.charCodeAt(e-1),i=0,r=!1;n!==t.charCodeAt(0);){if(n++,n===t_&&n++,n===e_&&n++,n>n_){if(r)throw"Bad character: "+t;n=$v,r=!0}i+=1e5}return i}function __(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function x_(t,e,n){if(!(this instanceof x_))return new x_(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&"undefined"==typeof e){var i=t.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=t,this.y=e,this.z=n||0}x_.fromMGRS=function(t){return new x_(a_(t))},x_.prototype.toMGRS=function(t){return o_([this.x,this.y],t)};var I_=1,w_=.25,C_=.046875,E_=.01953125,b_=.01068115234375,S_=.75,B_=.46875,M_=.013020833333333334,T_=.007120768229166667,D_=.3645833333333333,R_=.005696614583333333,k_=.3076171875;function L_(t){var e=[];e[0]=I_-t*(w_+t*(C_+t*(E_+t*b_))),e[1]=t*(S_-t*(C_+t*(E_+t*b_)));var n=t*t;return e[2]=n*(B_-t*(M_+t*T_)),n*=t,e[3]=n*(D_-t*R_),e[4]=n*t*k_,e}function P_(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}var Q_=20;function z_(t,e,n){for(var i=1/(1-e),r=t,o=Q_;o;--o){var s=Math.sin(r),a=1-e*s*s;if(a=(P_(r,s,Math.cos(r),n)-t)*(a*Math.sqrt(a))*i,r-=a,Math.abs(a)ey?Math.tan(o):0,f=Math.pow(d,2),A=Math.pow(f,2);e=1-this.es*Math.pow(a,2),h/=Math.sqrt(e);var p=P_(o,a,l,this.en);n=this.a*(this.k0*h*(1+u/6*(1-f+c+u/20*(5-18*f+A+14*c-58*f*c+u/42*(61+179*A-A*f-479*f)))))+this.x0,i=this.a*(this.k0*(p-this.ml0+a*s*h/2*(1+u/12*(5-f+9*c+4*g+u/30*(61+A-58*f+270*c-330*f*c+u/56*(1385+543*A-A*f-3111*f))))))+this.y0}else{var m=l*Math.sin(s);if(Math.abs(Math.abs(m)-1)=1){if(m-1>ey)return 93;i=0}else i=Math.acos(i);o<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t}function N_(t){var e,n,i,r,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+s/this.k0,n=z_(e,this.es,this.en),Math.abs(n)ey?Math.tan(n):0,u=this.ep2*Math.pow(l,2),c=Math.pow(u,2),g=Math.pow(h,2),d=Math.pow(g,2);e=1-this.es*Math.pow(a,2);var f=o*Math.sqrt(e)/this.k0,A=Math.pow(f,2);e*=h,i=n-e*A/(1-this.es)*.5*(1-A/12*(5+3*g-9*u*g+u-4*c-A/30*(61+90*g-252*u*g+45*d+46*u-A/56*(1385+3633*g+4095*d+1574*d*g)))),r=Yy(this.long0+f*(1-A/6*(1+2*g+u-A/20*(5+28*g+24*d+8*u*g+6*u-A/42*(61+662*g+1320*d+720*d*g))))/l)}else i=Km*Hy(s),r=0;else{var p=Math.exp(o/this.k0),m=.5*(p-1/p),y=this.lat0+s/this.k0,v=Math.cos(y);e=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(m,2))),i=Math.asin(e),s<0&&(i=-i),r=0===m&&0===v?0:Yy(Math.atan2(m,v)+this.long0)}return t.x=r,t.y=i,t}var G_=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const j_={init:F_,forward:O_,inverse:N_,names:G_};function U_(t){var e=Math.exp(t);return e=(e-1/e)/2,e}function q_(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}function V_(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}function H_(t){var e=Math.abs(t);return e=V_(e*(1+e/(q_(1,e)+1))),t<0?-e:e}function Y_(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],s=0;--r>=0;)n=i*o-s+t[r],s=o,o=n;return e+n*Math.sin(2*e)}function W_(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,o=t[r],s=0;--r>=0;)n=i*o-s+t[r],s=o,o=n;return Math.sin(e)*n}function X_(t){var e=Math.exp(t);return e=(e+1/e)/2,e}function Z_(t,e,n){for(var i,r,o=Math.sin(e),s=Math.cos(e),a=U_(n),l=X_(n),h=2*s*l,u=-2*o*a,c=t.length-1,g=t[c],d=0,f=0,A=0;--c>=0;)i=f,r=d,f=g,d=A,g=h*f-i-u*d+t[c],A=u*f-r+h*d;return h=o*l,u=s*a,[h*g-u*A,h*A+u*g]}function K_(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(j_.init.apply(this),this.forward=j_.forward,this.inverse=j_.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var i=Y_(this.cbg,this.lat0);this.Zb=-this.Qn*(i+W_(this.gtu,2*i))}function J_(t){var e=Yy(t.x-this.long0),n=t.y;n=Y_(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),o=Math.sin(e),s=Math.cos(e);n=Math.atan2(i,s*r),e=Math.atan2(o*r,q_(i,r*s)),e=H_(Math.tan(e));var a,l,h=Z_(this.gtu,2*n,2*e);return n+=h[0],e+=h[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,l=1/0),t.x=a,t.y=l,t}function $_(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var o=Z_(this.utg,2*r,2*i);r+=o[0],i+=o[1],i=Math.atan(U_(i));var s=Math.sin(r),a=Math.cos(r),l=Math.sin(i),h=Math.cos(i);r=Math.atan2(s*h,q_(l,h*a)),i=Math.atan2(l,h*a),e=Yy(i+this.long0),n=Y_(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t}var tx=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const ex={init:K_,forward:J_,inverse:$_,names:tx};function nx(t,e){if(void 0===t){if(t=Math.floor(30*(Yy(e)+Math.PI)/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t}var ix="etmerc";function rx(){var t=nx(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*ny,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,ex.init.apply(this),this.forward=ex.forward,this.inverse=ex.inverse}var ox=["Universal Transverse Mercator System","utm"];const sx={init:rx,names:ox,dependsOn:ix};function ax(t,e){return Math.pow((1-t)/(1+t),e)}var lx=20;function hx(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+ry)/(Math.pow(Math.tan(.5*this.lat0+ry),this.C)*ax(this.e*t,this.ratexp))}function ux(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+ry),this.C)*ax(this.e*Math.sin(n),this.ratexp))-Km,t.x=this.C*e,t}function cx(t){for(var e=1e-14,n=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+ry)/this.K,1/this.C),o=lx;o>0&&(i=2*Math.atan(r*ax(this.e*Math.sin(t.y),-.5*this.e))-Km,!(Math.abs(i-t.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=ey&&Math.abs(Math.cos(this.lat_ts))>ey&&(this.k0=.5*this.cons*Vy(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Wy(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Vy(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-Km,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function xx(t){var e,n,i,r,o,s,a=t.x,l=t.y,h=Math.sin(l),u=Math.cos(l),c=Yy(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=ey&&Math.abs(l+this.lat0)<=ey?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*h+this.coslat0*u*Math.cos(c)),t.x=this.a*e*u*Math.sin(c)+this.x0,t.y=this.a*e*(this.coslat0*h-this.sinlat0*u*Math.cos(c))+this.y0,t):(n=2*Math.atan(this.ssfn_(l,h,this.e))-Km,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=ey?(o=Wy(this.e,l*this.con,this.con*h),s=2*this.a*this.k0*o/this.cons,t.x=this.x0+s*Math.sin(a-this.long0),t.y=this.y0-this.con*s*Math.cos(a-this.long0),t):(Math.abs(this.sinlat0)0?Yy(this.long0+Math.atan2(t.x,-1*t.y)):Yy(this.long0+Math.atan2(t.x,t.y)):Yy(this.long0+Math.atan2(t.x*Math.sin(a),s*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=ey){if(s<=ey)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=s*this.cons/(2*this.a*this.k0),n=this.con*Xy(this.e,i),e=this.con*Yy(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else r=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,s<=ey?o=this.X0:(o=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/s),e=Yy(this.long0+Math.atan2(t.x*Math.sin(r),s*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)))),n=-1*Xy(this.e,Math.tan(.5*(Km+o)));return t.x=e,t.y=n,t}var Cx=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const Ex={init:_x,forward:xx,inverse:Ix,names:Cx,ssfn_:vx};function bx(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=this.rf,r=1/i,o=2*r-Math.pow(r,2),s=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(e,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+t/2)),h=Math.log((1+s*e)/(1-s*e));this.K=a-this.alpha*l+this.alpha*s/2*h}function Sx(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),s=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(o))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*s+this.x0,t}function Bx(t){for(var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),s=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+s/this.alpha,l=0,h=o,u=-1e3,c=0;Math.abs(h-u)>1e-7;){if(++c>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(h))/2)),u=h,h=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=a,t.y=h,t}var Mx=["somerc"];const Tx={init:bx,forward:Sx,inverse:Bx,names:Mx};var Dx=1e-7;function Rx(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],n="object"==typeof t.PROJECTION?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||-1!==e.indexOf(n)}function kx(){var t,e,n,i,r,o,s,a,l,h,u,c=0,g=0,d=0,f=0,A=0,p=0,m=0;this.no_off=Rx(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var v=!1;if("rectified_grid_angle"in this&&(v=!0),y&&(m=this.alpha),v&&(c=this.rectified_grid_angle*ny),y||v)g=this.longc;else if(d=this.long1,A=this.lat1,f=this.long2,p=this.lat2,Math.abs(A-p)<=Dx||(t=Math.abs(A))<=Dx||Math.abs(t-Km)<=Dx||Math.abs(Math.abs(this.lat0)-Km)<=Dx||Math.abs(Math.abs(p)-Km)<=Dx)throw new Error;var _=1-this.es;e=Math.sqrt(_),Math.abs(this.lat0)>ey?(a=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*a*a,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/_),this.A=this.B*this.k0*e/t,i=this.B*e/(n*Math.sqrt(t)),r=i*i-1,r<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(Wy(this.e,this.lat0,a),this.B)):(this.B=1/e,this.A=this.k0,this.E=i=r=1),y||v?(y?(u=Math.asin(Math.sin(m)/i),v||(c=m)):(u=c,m=Math.asin(i*Math.sin(u))),this.lam0=g-Math.asin(.5*(r-1/r)*Math.tan(u))/this.B):(o=Math.pow(Wy(this.e,A,Math.sin(A)),this.B),s=Math.pow(Wy(this.e,p,Math.sin(p)),this.B),r=this.E/o,l=(s-o)/(s+o),h=this.E*this.E,h=(h-s*o)/(h+s*o),t=d-f,t<-Math.pi?f-=oy:t>Math.pi&&(f+=oy),this.lam0=Yy(.5*(d+f)-Math.atan(h*Math.tan(.5*this.B*(d-f))/l)/this.B),u=Math.atan(2*Math.sin(this.B*Yy(d-this.lam0))/(r-1/r)),c=m=Math.asin(i*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(c),this.cosrot=Math.cos(c),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(m))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(ry-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(ry+r))}function Lx(t){var e,n,i,r,o,s,a,l,h={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-Km)>ey){if(o=this.E/Math.pow(Wy(this.e,t.y,Math.sin(t.y)),this.B),s=1/o,e=.5*(o-s),n=.5*(o+s),r=Math.sin(this.B*t.x),i=(e*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,a=this.ArB*t.y;return this.no_rot?(h.x=a,h.y=l):(a-=this.u_0,h.x=l*this.cosrot+a*this.sinrot,h.y=a*this.cosrot-l*this.sinrot),h.x=this.a*h.x+this.x0,h.y=this.a*h.y+this.y0,h}function Px(t){var e,n,i,r,o,s,a,l={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),i=Math.exp(-this.BrA*n),r=.5*(i-1/i),o=.5*(i+1/i),s=Math.sin(this.BrA*e),a=(s*this.cosgam+r*this.singam)/o,Math.abs(Math.abs(a)-1)ey?this.ns=Math.log(i/a)/Math.log(r/l):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(h,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Ox(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=ey&&(n=Hy(n)*(Km-2*ey));var i,r,o=Math.abs(Math.abs(n)-Km);if(o>ey)i=Wy(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if(o=n*this.ns,o<=0)return null;r=0}var s=this.ns*Yy(e-this.long0);return t.x=this.k0*(r*Math.sin(s))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(s))+this.y0,t}function Nx(t){var e,n,i,r,o,s=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+a*a),n=1):(e=-Math.sqrt(s*s+a*a),n=-1);var l=0;if(0!==e&&(l=Math.atan2(n*s,n*a)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),r=Xy(this.e,i),-9999===r)return null}else r=-Km;return o=Yy(l/this.ns+this.long0),t.x=o,t.y=r,t}var Gx=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const jx={init:Fx,forward:Ox,inverse:Nx,names:Gx};function Ux(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function qx(t){var e,n,i,r,o,s,a,l=t.x,h=t.y,u=Yy(l-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),i=-u*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),s=this.n*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=a*Math.cos(s)/1,t.x=a*Math.sin(s)/1,this.czech||(t.y*=-1,t.x*=-1),t}function Vx(t){var e,n,i,r,o,s,a,l,h=t.x;t.x=t.y,t.y=h,this.czech||(t.y*=-1,t.x*=-1),s=Math.sqrt(t.x*t.x+t.y*t.y),o=Math.atan2(t.y,t.x),r=o/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,a=e,l=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(l=1),a=t.y,u+=1}while(0===l&&u<15);return u>=15?null:t}var Hx=["Krovak","krovak"];const Yx={init:Ux,forward:qx,inverse:Vx,names:Hx};function Wx(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}function Xx(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Zx(t){return.375*t*(1+.25*t*(1+.46875*t))}function Kx(t){return.05859375*t*t*(1+.75*t)}function Jx(t){return t*t*t*(35/3072)}function $x(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}function tI(t){return Math.abs(t)1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e}var lI=1,hI=2,uI=3,cI=4;function gI(){var t,e=Math.abs(this.lat0);if(Math.abs(e-Km)0)switch(this.qp=aI(this.e,1),this.mmf=.5/(1-this.es),this.apa=xI(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=aI(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function dI(t){var e,n,i,r,o,s,a,l,h,u,c=t.x,g=t.y;if(c=Yy(c-this.long0),this.sphere){if(o=Math.sin(g),u=Math.cos(g),i=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+u*i:1+this.sinph0*o+this.cosph0*u*i,n<=ey)return null;n=Math.sqrt(2/n),e=n*u*Math.sin(c),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*u*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(g+this.lat0)=0?(e=(h=Math.sqrt(s))*r,n=i*(this.mode===this.S_POLE?h:-h)):e=n=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t}function fI(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,s,a,l=t.x/this.a,h=t.y/this.a;if(this.sphere){var u,c=0,g=0;if(u=Math.sqrt(l*l+h*h),n=.5*u,n>1)return null;switch(n=2*Math.asin(n),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(g=Math.sin(n),c=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=ey?0:Math.asin(h*g/u),l*=g,h=c*u;break;case this.OBLIQ:n=Math.abs(u)<=ey?this.lat0:Math.asin(c*this.sinph0+h*g*this.cosph0/u),l*=g*this.cosph0,h=(c-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:h=-h,n=Km-n;break;case this.S_POLE:n-=Km;break}e=0!==h||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,h):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,h*=this.dd,s=Math.sqrt(l*l+h*h),s1&&(t=t>1?1:-1),Math.asin(t)}function bI(){Math.abs(this.lat1+this.lat2)ey?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function SI(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=aI(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,o=this.ns0*Yy(e-this.long0),s=r*Math.sin(o)+this.x0,a=this.rh-r*Math.cos(o)+this.y0;return t.x=s,t.y=a,t}function BI(t){var e,n,i,r,o,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,s=this.phi1z(this.e3,n)),o=Yy(r/this.ns0+this.long0),t.x=o,t.y=s,t}function MI(t,e){var n,i,r,o,s,a=EI(.5*e);if(t0||Math.abs(s)<=ey?(a=this.x0+this.a*o*n*Math.sin(i)/s,l=this.y0+this.a*o*(this.cos_p14*e-this.sin_p14*n*r)/s):(a=this.x0+this.infinity_dist*n*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t}function LI(t){var e,n,i,r,o,s;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),i=Math.cos(r),s=EI(i*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),o=Yy(this.long0+o)):(s=this.phic0,o=0),t.x=o,t.y=s,t}var PI=["gnom"];const QI={init:RI,forward:kI,inverse:LI,names:PI};function zI(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*Km:Km;for(var i,r,o,s,a=Math.asin(.5*e),l=0;l<30;l++)if(r=Math.sin(a),o=Math.cos(a),s=t*r,i=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-r/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),a+=i,Math.abs(i)<=1e-10)return a;return NaN}function FI(){this.sphere||(this.k0=Vy(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function OI(t){var e,n,i=t.x,r=t.y,o=Yy(i-this.long0);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var s=aI(this.e,Math.sin(r));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*s*.5/this.k0}return t.x=e,t.y=n,t}function NI(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=Yy(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=zI(this.e,2*t.y*this.k0/this.a),e=Yy(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t}var GI=["cea"];const jI={init:FI,forward:OI,inverse:NI,names:GI};function UI(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function qI(t){var e=t.x,n=t.y,i=Yy(e-this.long0),r=tI(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t}function VI(t){var e=t.x,n=t.y;return t.x=Yy(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=tI(this.lat0+(n-this.y0)/this.a),t}var HI=["Equirectangular","Equidistant_Cylindrical","eqc"];const YI={init:UI,forward:qI,inverse:VI,names:HI};var WI=20;function XI(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Xx(this.es),this.e1=Zx(this.es),this.e2=Kx(this.es),this.e3=Jx(this.es),this.ml0=this.a*Wx(this.e0,this.e1,this.e2,this.e3,this.lat0)}function ZI(t){var e,n,i,r=t.x,o=t.y,s=Yy(r-this.long0);if(i=s*Math.sin(o),this.sphere)Math.abs(o)<=ey?(e=this.a*s,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(o),n=this.a*(tI(o-this.lat0)+(1-Math.cos(i))/Math.tan(o)));else if(Math.abs(o)<=ey)e=this.a*s,n=-1*this.ml0;else{var a=$x(this.a,this.e,Math.sin(o))/Math.tan(o);e=a*Math.sin(i),n=this.a*Wx(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+a*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t}function KI(t){var e,n,i,r,o,s,a,l,h;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=ey)e=Yy(i/this.a+this.long0),n=0;else{var u;for(s=this.lat0+r/this.a,a=i*i/this.a/this.a+s*s,l=s,o=WI;o;--o)if(u=Math.tan(l),h=-1*(s*(l*u+1)-l-.5*(l*l+a)*u)/((l-s)/u-1),l+=h,Math.abs(h)<=ey){n=l;break}e=Yy(this.long0+Math.asin(i*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=ey)n=0,e=Yy(this.long0+i/this.a);else{var c,g,d,f,A;for(s=(this.ml0+r)/this.a,a=i*i/this.a/this.a+s*s,l=s,o=WI;o;--o)if(A=this.e*Math.sin(l),c=Math.sqrt(1-A*A)*Math.tan(l),g=this.a*Wx(this.e0,this.e1,this.e2,this.e3,l),d=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),f=g/this.a,h=(s*(c*f+1)-f-.5*c*(f*f+a))/(this.es*Math.sin(2*l)*(f*f+a-2*s*f)/(4*c)+(s-f)*(c*d-2/Math.sin(2*l))-d),l-=h,Math.abs(h)<=ey){n=l;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=Yy(this.long0+Math.asin(i*c/this.a)/Math.sin(n))}return t.x=e,t.y=n,t}var JI=["Polyconic","poly"];const $I={init:XI,forward:ZI,inverse:KI,names:JI};function tw(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function ew(t){var e,n=t.x,i=t.y,r=i-this.lat0,o=n-this.long0,s=r/Zm*1e-5,a=o,l=1,h=0;for(e=1;e<=10;e++)l*=s,h+=this.A[e]*l;var u,c,g=h,d=a,f=1,A=0,p=0,m=0;for(e=1;e<=6;e++)u=f*g-A*d,c=A*g+f*d,f=u,A=c,p=p+this.B_re[e]*f-this.B_im[e]*A,m=m+this.B_im[e]*f+this.B_re[e]*A;return t.x=m*this.a+this.x0,t.y=p*this.a+this.y0,t}function nw(t){var e,n,i,r=t.x,o=t.y,s=r-this.x0,a=o-this.y0,l=a/this.a,h=s/this.a,u=1,c=0,g=0,d=0;for(e=1;e<=6;e++)n=u*l-c*h,i=c*l+u*h,u=n,c=i,g=g+this.C_re[e]*u-this.C_im[e]*c,d=d+this.C_im[e]*u+this.C_re[e]*c;for(var f=0;f.999999999999&&(n=.999999999999),e=Math.asin(n);var i=Yy(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t}var vw=["Mollweide","moll"];const _w={init:pw,forward:mw,inverse:yw,names:vw};function xw(){Math.abs(this.lat1+this.lat2)=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=Yy(this.long0+o/this.ns),i=tI(this.g-n/this.a),t.x=r,t.y=i,t;var s=this.g-n/this.a;return i=eI(s,this.e0,this.e1,this.e2,this.e3),r=Yy(this.long0+o/this.ns),t.x=r,t.y=i,t}var Cw=["Equidistant_Conic","eqdc"];const Ew={init:xw,forward:Iw,inverse:ww,names:Cw};function bw(){this.R=this.a}function Sw(t){var e,n,i=t.x,r=t.y,o=Yy(i-this.long0);Math.abs(r)<=ey&&(e=this.x0+this.R*o,n=this.y0);var s=EI(2*Math.abs(r/Math.PI));(Math.abs(o)<=ey||Math.abs(Math.abs(r)-Km)<=ey)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var a=.5*Math.abs(Math.PI/o-o/Math.PI),l=a*a,h=Math.sin(s),u=Math.cos(s),c=u/(h+u-1),g=c*c,d=c*(2/h-1),f=d*d,A=Math.PI*this.R*(a*(c-f)+Math.sqrt(l*(c-f)*(c-f)-(f+l)*(g-f)))/(f+l);o<0&&(A=-A),e=this.x0+A;var p=l+c;return A=Math.PI*this.R*(d*p-a*Math.sqrt((f+l)*(l+1)-p*p))/(f+l),n=r>=0?this.y0+A:this.y0-A,t.x=e,t.y=n,t}function Bw(t){var e,n,i,r,o,s,a,l,h,u,c,g,d;return t.x-=this.x0,t.y-=this.y0,c=Math.PI*this.R,i=t.x/c,r=t.y/c,o=i*i+r*r,s=-Math.abs(r)*(1+o),a=s-2*r*r+i*i,l=-2*s+1+2*r*r+o*o,d=r*r/l+(2*a*a*a/l/l/l-9*s*a/l/l)/27,h=(s-a*a/3/l)/l,u=2*Math.sqrt(-h/3),c=3*d/h/u,Math.abs(c)>1&&(c=c>=0?1:-1),g=Math.acos(c)/3,n=t.y>=0?(-u*Math.cos(g+Math.PI/3)-a/3/l)*Math.PI:-(-u*Math.cos(g+Math.PI/3)-a/3/l)*Math.PI,e=Math.abs(i)2*Km*this.a?void 0:(n=e/this.a,i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=ey?s=this.lat0:(s=EI(r*this.sin_p12+t.y*i*this.cos_p12/e),a=Math.abs(this.lat0)-Km,o=Math.abs(a)<=ey?this.lat0>=0?Yy(this.long0+Math.atan2(t.x,-t.y)):Yy(this.long0-Math.atan2(-t.x,t.y)):Yy(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i))),t.x=o,t.y=s,t)):(l=Xx(this.es),h=Zx(this.es),u=Kx(this.es),c=Jx(this.es),Math.abs(this.sin_p12-1)<=ey?(g=this.a*Wx(l,h,u,c,Km),e=Math.sqrt(t.x*t.x+t.y*t.y),d=g-e,s=eI(d/this.a,l,h,u,c),o=Yy(this.long0+Math.atan2(t.x,-1*t.y)),t.x=o,t.y=s,t):Math.abs(this.sin_p12+1)<=ey?(g=this.a*Wx(l,h,u,c,Km),e=Math.sqrt(t.x*t.x+t.y*t.y),d=e-g,s=eI(d/this.a,l,h,u,c),o=Yy(this.long0+Math.atan2(t.x,t.y)),t.x=o,t.y=s,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),p=Math.atan2(t.x,t.y),f=$x(this.a,this.e,this.sin_p12),m=Math.cos(p),y=this.e*this.cos_p12*m,v=-y*y/(1-this.es),_=3*this.es*(1-v)*this.sin_p12*this.cos_p12*m/(1-this.es),x=e/f,I=x-v*(1+v)*Math.pow(x,3)/6-_*(1+3*v)*Math.pow(x,4)/24,w=1-v*I*I/2-x*I*I*I/6,A=Math.asin(this.sin_p12*Math.cos(I)+this.cos_p12*Math.sin(I)*m),o=Yy(this.long0+Math.asin(Math.sin(p)*Math.sin(I)/Math.cos(A))),C=Math.sin(A),s=Math.atan2((C-this.es*w*this.sin_p12)*Math.tan(A),C*(1-this.es)),t.x=o,t.y=s,t))}var Lw=["Azimuthal_Equidistant","aeqd"];const Pw={init:Dw,forward:Rw,inverse:kw,names:Lw};function Qw(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function zw(t){var e,n,i,r,o,s,a,l,h=t.x,u=t.y;return i=Yy(h-this.long0),e=Math.sin(u),n=Math.cos(u),r=Math.cos(i),s=this.sin_p14*e+this.cos_p14*n*r,o=1,(s>0||Math.abs(s)<=ey)&&(a=this.a*o*n*Math.sin(i),l=this.y0+this.a*o*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t}function Fw(t){var e,n,i,r,o,s,a;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),n=EI(e/this.a),i=Math.sin(n),r=Math.cos(n),s=this.long0,Math.abs(e)<=ey?(a=this.lat0,t.x=s,t.y=a,t):(a=EI(r*this.sin_p14+t.y*i*this.cos_p14/e),o=Math.abs(this.lat0)-Km,Math.abs(o)<=ey?(s=this.lat0>=0?Yy(this.long0+Math.atan2(t.x,-t.y)):Yy(this.long0-Math.atan2(-t.x,t.y)),t.x=s,t.y=a,t):(s=Yy(this.long0+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i)),t.x=s,t.y=a,t))}var Ow=["ortho"];const Nw={init:Qw,forward:zw,inverse:Fw,names:Ow};var Gw={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},jw={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Uw(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=Km-ry/2?this.face=Gw.TOP:this.lat0<=-(Km-ry/2)?this.face=Gw.BOTTOM:Math.abs(this.long0)<=ry?this.face=Gw.FRONT:Math.abs(this.long0)<=Km+ry?this.face=this.long0>0?Gw.RIGHT:Gw.LEFT:this.face=Gw.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function qw(t){var e,n,i,r,o,s,a={x:0,y:0},l={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===Gw.TOP)r=Km-e,n>=ry&&n<=Km+ry?(l.value=jw.AREA_0,i=n-Km):n>Km+ry||n<=-(Km+ry)?(l.value=jw.AREA_1,i=n>0?n-sy:n+sy):n>-(Km+ry)&&n<=-ry?(l.value=jw.AREA_2,i=n+Km):(l.value=jw.AREA_3,i=n);else if(this.face===Gw.BOTTOM)r=Km+e,n>=ry&&n<=Km+ry?(l.value=jw.AREA_0,i=-n+Km):n=-ry?(l.value=jw.AREA_1,i=-n):n<-ry&&n>=-(Km+ry)?(l.value=jw.AREA_2,i=-n-Km):(l.value=jw.AREA_3,i=n>0?-n+sy:-n-sy);else{var h,u,c,g,d,f,A;this.face===Gw.RIGHT?n=Yw(n,+Km):this.face===Gw.BACK?n=Yw(n,+sy):this.face===Gw.LEFT&&(n=Yw(n,-Km)),g=Math.sin(e),d=Math.cos(e),f=Math.sin(n),A=Math.cos(n),h=d*A,u=d*f,c=g,this.face===Gw.FRONT?(r=Math.acos(h),i=Hw(r,c,u,l)):this.face===Gw.RIGHT?(r=Math.acos(u),i=Hw(r,c,-h,l)):this.face===Gw.BACK?(r=Math.acos(-h),i=Hw(r,c,-u,l)):this.face===Gw.LEFT?(r=Math.acos(-u),i=Hw(r,c,h,l)):(r=i=0,l.value=jw.AREA_0)}return s=Math.atan(12/sy*(i+Math.acos(Math.sin(i)*Math.cos(ry))-Km)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),l.value===jw.AREA_1?s+=Km:l.value===jw.AREA_2?s+=sy:l.value===jw.AREA_3&&(s+=1.5*sy),a.x=o*Math.cos(s),a.y=o*Math.sin(s),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,t.x=a.x,t.y=a.y,t}function Vw(t){var e,n,i,r,o,s,a,l,h,u,c,g,d={lam:0,phi:0},f={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?f.value=jw.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(f.value=jw.AREA_1,e-=Km):t.x<0&&-t.x>=Math.abs(t.y)?(f.value=jw.AREA_2,e=e<0?e+sy:e-sy):(f.value=jw.AREA_3,e+=Km),h=sy/12*Math.tan(e),o=Math.sin(h)/(Math.cos(h)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(e),r=Math.tan(n),a=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(s)))),a<-1?a=-1:a>1&&(a=1),this.face===Gw.TOP)l=Math.acos(a),d.phi=Km-l,f.value===jw.AREA_0?d.lam=s+Km:f.value===jw.AREA_1?d.lam=s<0?s+sy:s-sy:f.value===jw.AREA_2?d.lam=s-Km:d.lam=s;else if(this.face===Gw.BOTTOM)l=Math.acos(a),d.phi=l-Km,f.value===jw.AREA_0?d.lam=-s+Km:f.value===jw.AREA_1?d.lam=-s:f.value===jw.AREA_2?d.lam=-s-Km:d.lam=s<0?-s-sy:-s+sy;else{var A,p,m;A=a,h=A*A,m=h>=1?0:Math.sqrt(1-h)*Math.sin(s),h+=m*m,p=h>=1?0:Math.sqrt(1-h),f.value===jw.AREA_1?(h=p,p=-m,m=h):f.value===jw.AREA_2?(p=-p,m=-m):f.value===jw.AREA_3&&(h=p,p=m,m=-h),this.face===Gw.RIGHT?(h=A,A=-p,p=h):this.face===Gw.BACK?(A=-A,p=-p):this.face===Gw.LEFT&&(h=A,A=p,p=-h),d.phi=Math.acos(-m)-Km,d.lam=Math.atan2(p,A),this.face===Gw.RIGHT?d.lam=Yw(d.lam,-Km):this.face===Gw.BACK?d.lam=Yw(d.lam,-sy):this.face===Gw.LEFT&&(d.lam=Yw(d.lam,+Km))}0!==this.es&&(u=d.phi<0?1:0,c=Math.tan(d.phi),g=this.b/Math.sqrt(c*c+this.one_minus_f_squared),d.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),u&&(d.phi=-d.phi));return d.lam+=this.long0,t.x=d.lam,t.y=d.phi,t}function Hw(t,e,n,i){var r;return try&&r<=Km+ry?(i.value=jw.AREA_1,r-=Km):r>Km+ry||r<=-(Km+ry)?(i.value=jw.AREA_2,r=r>=0?r-sy:r+sy):(i.value=jw.AREA_3,r+=Km)),r}function Yw(t,e){var n=t+e;return n<-sy?n+=oy:n>+sy&&(n-=oy),n}var Ww=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const Xw={init:Uw,forward:qw,inverse:Vw,names:Ww};var Zw=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Kw=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Jw=.8487,$w=1.3523,tC=iy/5,eC=1/tC,nC=18,iC=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},rC=function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])};function oC(t,e,n,i){for(var r=e;i;--i){var o=t(r);if(r-=o,Math.abs(o)=nC&&(i=nC-1),n=iy*(n-eC*i);var r={x:iC(Zw[i],n)*e,y:iC(Kw[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*Jw+this.x0,r.y=r.y*this.a*$w+this.y0,r}function lC(t){var e={x:(t.x-this.x0)/(this.a*Jw),y:Math.abs(t.y-this.y0)/(this.a*$w)};if(e.y>=1)e.x/=Zw[nC][0],e.y=t.y<0?-Km:Km;else{var n=Math.floor(e.y*nC);for(n<0?n=0:n>=nC&&(n=nC-1);;)if(Kw[n][0]>e.y)--n;else{if(!(Kw[n+1][0]<=e.y))break;++n}var i=Kw[n],r=5*(e.y-i[0])/(Kw[n+1][0]-i[0]);r=oC((function(t){return(iC(i,t)-e.y)/rC(i,t)}),r,ey,100),e.x/=iC(Zw[n],r),e.y=(5*n+r)*ny,t.y<0&&(e.y=-e.y)}return e.x=Yy(e.x+this.long0),e}var hC=["Robinson","robin"];const uC={init:sC,forward:aC,inverse:lC,names:hC};function cC(){this.name="geocent"}function gC(t){var e=Dv(t,this.es,this.a);return e}function dC(t){var e=Rv(t,this.es,this.a,this.b);return e}var fC=["Geocentric","geocentric","geocent","Geocent"];const AC={init:cC,forward:gC,inverse:dC,names:fC};var pC={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},mC={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function yC(){if(Object.keys(mC).forEach(function(t){if("undefined"==typeof this[t])this[t]=mC[t].def;else{if(mC[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);mC[t].num&&(this[t]=parseFloat(this[t]))}mC[t].degrees&&(this[t]=this[t]*ny)}.bind(this)),Math.abs(Math.abs(this.lat0)-Km)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)}function vC(t){t.x-=this.long0;var e,n,i,r,o=Math.sin(t.y),s=Math.cos(t.y),a=Math.cos(t.x);switch(this.mode){case pC.OBLIQ:n=this.sinph0*o+this.cosph0*s*a;break;case pC.EQUIT:n=s*a;break;case pC.S_POLE:n=-o;break;case pC.N_POLE:n=o;break}switch(n=this.pn1/(this.p-n),e=n*s*Math.sin(t.x),this.mode){case pC.OBLIQ:n*=this.cosph0*o-this.sinph0*s*a;break;case pC.EQUIT:n*=o;break;case pC.N_POLE:n*=-s*a;break;case pC.S_POLE:n*=s*a;break}return i=n*this.cg+e*this.sg,r=1/(i*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*r,n=i*r,t.x=e*this.a,t.y=n*this.a,t}function _C(t){t.x/=this.a,t.y/=this.a;var e,n,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*i,n=this.pn1*t.y*this.cw*i,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var o=q_(t.x,t.y);if(Math.abs(o)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function CC(t){var e,n,i,r,o=t.x,s=t.y;if(o-=this.long0,"ellipse"===this.shape){s=Math.atan(this.radius_p2*Math.tan(s));var a=this.radius_p/q_(this.radius_p*Math.cos(s),Math.sin(s));if(n=a*Math.cos(o)*Math.cos(s),i=a*Math.sin(o)*Math.cos(s),r=a*Math.sin(s),(this.radius_g-n)*n-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/q_(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/q_(i,e)))}else"sphere"===this.shape&&(e=Math.cos(s),n=Math.cos(o)*e,i=Math.sin(o)*e,r=Math.sin(s),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/q_(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/q_(i,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function EC(t){var e,n,i,r,o=-1,s=0,a=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),s=Math.tan(t.x/this.radius_g_1)*q_(1,a)):(s=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*q_(1,s));var l=a/this.radius_p;if(e=s*s+l*l+o*o,n=2*this.radius_g*o,i=n*n-4*e*this.C,i<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,s*=r,a*=r,t.x=Math.atan2(s,o),t.y=Math.atan(a*Math.cos(t.x)/o),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),s=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+a*a)):(s=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+s*s)),e=s*s+a*a+o*o,n=2*this.radius_g*o,i=n*n-4*e*this.C,i<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,s*=r,a*=r,t.x=Math.atan2(s,o),t.y=Math.atan(a*Math.cos(t.x)/o)}return t.x=t.x+this.long0,t}var bC=["Geostationary Satellite View","Geostationary_Satellite","geos"];const SC={init:wC,forward:CC,inverse:EC,names:bC};var BC=1.340264,MC=-.081106,TC=893e-6,DC=.003796,RC=Math.sqrt(3)/2;function kC(){this.es=0,this.long0=void 0!==this.long0?this.long0:0}function LC(t){var e=Yy(t.x-this.long0),n=t.y,i=Math.asin(RC*Math.sin(n)),r=i*i,o=r*r*r;return t.x=e*Math.cos(i)/(RC*(BC+3*MC*r+o*(7*TC+9*DC*r))),t.y=i*(BC+MC*r+o*(TC+DC*r)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function PC(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,i,r,o,s,a=1e-9,l=12,h=t.y;for(s=0;s=0;s--){const a=o[s]._style;if(!a)return;const l=o[s]._coordinates,h=a.getImage();let u=!1;const c=[];h.getAnchor()&&(c[0]=l[0]-h.getAnchor()[0]*e,c[2]=l[0]+h.getAnchor()[0]*e,c[1]=l[1]-h.getAnchor()[1]*e,c[3]=l[1]+h.getAnchor()[1]*e),Tt(c,t)&&(u=!0),!0!==u?c.isHighLight&&c._highLightClose():(c.isHighLight&&c._highLight(l,h,o[s],i),n&&n(o[s],r))}};class qC extends lt{constructor(){super(...arguments),A(this,"setPosition",(function(t){ZC(this,t)})),A(this,"getPosition",(function(){return this.getGeometry().getCoordinates()})),A(this,"setRotateAngle",(function(t){this.getStyle().getImage().setRotation(.01745329251*t)})),A(this,"update",(function(t,e){"style"===t&&this.setStyle(tE(e)),"position"===t&&ZC(this,e)}))}}const VC=new Ae({code:"baidu",units:"m"}),HC=new Ae({code:"BD09",extent:le([-180,-90,180,90],kA.ll2bmerc),units:"m"});ti(VC),ti(HC),li("EPSG:4326",VC,kA.ll2bmerc,kA.bmerc2ll),li("EPSG:4326",HC,kA.ll2bmerc,kA.bmerc2ll),li("EPSG:3857",VC,kA.smerc2bmerc,kA.bmerc2smerc),li("EPSG:3857",HC,kA.smerc2bmerc,kA.bmerc2smerc);const YC=new Ae({code:"GCJ02",extent:le([-180,-90,180,90],kA.ll2gcj02mc),units:"m"});ti(YC),li("EPSG:4326",YC,kA.ll2gcj02mc,kA.gcj02mc2ll),li("EPSG:3857",YC,kA.mc2gcj02mc,kA.gcj02mc2mc);const WC=(t,e)=>!(!t||!Object.prototype.hasOwnProperty.call(t,e))&&("object"==typeof t[e]?Object.keys(t[e]).length>0:"boolean"!=typeof t[e]||t[e]),XC=t=>"function"==typeof t&&"number"!=typeof t.nodeType,ZC=(t,e)=>{t.getGeometry().setCoordinates(e)},KC=(t,e)=>{switch(e){case"bd-84":return pp.bd09towgs84(t[0],t[1]);case"bd-gd":return pp.bd09togcj02(t[0],t[1]);case"gd-84":return pp.gcj02towgs84(t[0],t[1]);case"gd-bd":return pp.gcj02tobd09(t[0],t[1]);case"84-gd":return pp.wgs84togcj02(t[0],t[1]);case"84-bd":return pp.wgs84tobd09(t[0],t[1]);case"3857-4326":return Ai(t,"EPSG:3857","EPSG:4326");case"4326-3857":return Ai(t,"EPSG:4326","EPSG:3857");default:return t}},JC=t=>{const e={radius:t.radius||2,fill:new Qo(t.fill||{color:"blue"}),stroke:new qo(t.stroke||{color:"white"})};return new Ls(e)},$C=t=>{const e=g(g({},{font:"14px sans-serif",padding:[2,5,2,5]}),t),n=new qs(e);if(WC(t,"fill")){const e=new Qo(t.fill);n.setFill(e)}if(WC(t,"backgroundFill")){const e=new Qo(t.backgroundFill);n.setBackgroundFill(e)}if(WC(t,"stroke")){const e=new qo(t.stroke);n.setStroke(e)}if(WC(t,"backgroundStroke")){const e=new qo(t.backgroundStroke);n.setBackgroundStroke(e)}return n},tE=t=>{const e=new Gs;if(WC(t,"fill")?e.setFill(new Qo(t.fill)):e.setFill(new Qo({color:"rgba(67,126,255,0.15)"})),WC(t,"stroke")?e.setStroke(new qo(t.stroke)):e.setStroke(new qo({color:"rgba(67,126,255,1)",width:1})),WC(t,"icon")&&e.setImage(new Ya(t.icon)),WC(t,"circle")){const n=JC(t.circle);e.setImage(n)}if(WC(t,"text")){const n=t.text,i=$C(n);e.setText(i)}if(WC(t,"shape")){let n,i;WC(t.shape,"fill")&&(n=new Qo(t.shape.fill)),WC(t.shape,"stroke")&&(i=new qo(t.shape.stroke));const r=d(g({},t.shape),{stroke:i,fill:n}),o=new Rs(r);e.setImage(o)}return e},eE=(t,e,n)=>{const i=tE(e);if(t.setStyle(i),WC(e,"styleFunction")?t.setStyle((function(t,r){return e.styleFunction(t,r,n,i)})):t.setStyle(i),WC(e,"gif")){const i=e.gif,r=g({opacity:1,scale:1,offset:[0,0],offsetOrigin:"top-left",anchor:[.5,.5],anchorOrigin:"top-left",rotation:0,rotateWithView:!1},i);gifler(r.src).frames(document.createElement("canvas"),(function(e,i){t.setStyle(new Gs({image:new Ya({img:e.canvas,imgSize:[i.width,i.height],opacity:r.opacity,offset:r.offset,offsetOrigin:r.offsetOrigin,anchor:r.anchor,anchorOrigin:r.anchorOrigin,scale:r.scale,rotation:r.rotation,rotateWithView:r.rotateWithView})})),e.clearRect(0,0,i.width,i.height),e.drawImage(i.buffer,i.x,i.y),n.render()}),!0)}},nE=(t,e,n=!1)=>t.map(t=>iE(t,e,n)),iE=(t,e,n=!1)=>{if(!WC(t,"type"))return rE(t,e,n);switch(t.type){case"point":case"Point":return rE(t,e,n);case"MultiPoint":return oE(t,e,n);case"polygon":case"Polygon":return sE(t);case"MultiPolygon":return aE(t);case"polyline":case"Polyline":case"LineString":return lE(t);case"circle":case"Circle":return hE(t,e);default:return rE(t,e,n)}},rE=(t,e,n=!1)=>{const i=KC(t.coordinates,t.convert),r=new qC({geometry:new hr(i)});if(WC(t,"style")?eE(r,t.style,e):n||r.setStyle(new Gs({zIndex:1,image:new Ls({radius:4,fill:new Qo({color:"blue"})})})),WC(t,"id")?r.setId(t.id):r.setId("feature-"+m()),"object"==typeof t)for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.set(o,t[o]);return WC(t,"coordinates")&&WC(t,"convert")&&r.set("coordinates",i),r},oE=(t,e,n=!1)=>{let i=[];WC(t,"convert")&&t.convert?t.coordinates.forEach(e=>{i.push(KC(e,t.convert))}):i=t.coordinates;const r=new qC({geometry:new dc(i)});if(WC(t,"style")?eE(r,t.style,e):n||r.setStyle(new Gs({zIndex:1,image:new Ls({radius:4,fill:new Qo({color:"blue"})})})),WC(t,"id")?r.setId(t.id):r.setId("feature-"+m()),r.setId(t.id||"MultiPoint-"+m()),"object"==typeof t)for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.set(o,t[o]);return r},sE=t=>{let e=[];WC(t,"convert")&&t.convert?t.coordinates.forEach(n=>{e.push(KC(n,t.convert))}):e=t.coordinates;const n=new qC({geometry:new Tr(e)});if(n.setId(t.id||"polygon-"+m()),"object"==typeof t)for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.set(i,t[i]);return n},aE=t=>{let e=[];WC(t,"convert")&&t.convert?t.coordinates.forEach(n=>{e.push(KC(n,t.convert))}):e=t.coordinates;const n=new qC({geometry:new pc(e)});if(n.setId(t.id||"polygon-"+m()),"object"==typeof t)for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.set(i,t[i]);return n},lE=t=>{let e=[];WC(t,"convert")&&t.convert?t.coordinates.forEach(n=>{e.push(KC(n,t.convert))}):e=t.coordinates;const n=new qC({geometry:new jo(e)});if(n.setId(t.id||"polyline-"+m()),n.set("style",t.style||null),n.set("type",t.type||"polyline"),n.set("properties",t.properties||null),"object"==typeof t)for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.set(i,t[i]);return n},hE=(t,e)=>{const n=KC(t.center,t.convert),i=new qC({geometry:new sc(n,uE(e,t.radius))});return i.setId(t.id||"circle-"+m()),i.set("style",t.style||null),i.set("type",t.type||"circle"),i.set("properties",t.properties||null),i},uE=(t,e)=>{const n=t.getView().getProjection().getMetersPerUnit();return e/n},cE=(t,e)=>{WC(t,"projection")&&("GCJ02"===t.projection?t.projection=cp:"baidu"===t.projection&&(t.projection=gp)),WC(t,"format")&&t.format&&(t.format=new pm);const n=new Dc(g({},t));if(WC(t,"features")){const i=t.features;n.setFeatures(nE(i,e))}return n},gE=(t,e)=>{const n=d(g({},t.text),{text:e});return d(g({},t),{text:n})},dE=(t,e)=>{const n=t.source,i=t.source.getSource().getFeatures().length,r={},o={source:n,style:function(e){const n=e.get("features").length;let o=r[n];if(n>1){if(!o){let e={};WC(t,"style")&&t.style?t.style instanceof Array?(t.style.forEach(r=>{let o=0,s=i;if(WC(r,"min")||WC(r,"max"))o=r.min,s=r.max,o0){const r=i/t.style.length;for(let i=0;i0?tE(t):new Gs({image:new Ls({radius:4,fill:new Qo({color:"blue"})})})}return o}};return new nc(o)},fE=t=>new Promise(e=>{const n=new Image;n.src=t.src,n.onload=()=>e(new Gs({image:new Ya({img:n,imgSize:[34,37]})}))}),AE=(t,e)=>{t.getView().animate(e)},pE=(t,e)=>{const n=e.duration||2e3,i=t.getView(),r=e.zoom||i.getZoom();let o=2,s=!1;function a(){--o,!s&&0===o&&(s=!0)}i.animate({center:e.center,duration:n},a),i.animate({zoom:e.flyZoom||r-1,duration:n/2},{zoom:r,duration:n/2},a)},mE=(t,e)=>{t.getView().setCenter(e)},yE=(t,e)=>{t.getView().setZoom(e)},vE=(t,e)=>{t.getView().setConstrainResolution(e)},_E=(t,e)=>{t.getView().setMaxZoom(e)},xE=(t,e)=>{t.getView().setMinZoom(e)},IE=(t,e)=>{t.once("rendercomplete",(function(){const n=document.createElement("canvas"),i=t.getSize();n.width=i[0],n.height=i[1];const r=n.getContext("2d");if(Array.prototype.forEach.call(t.getViewport().querySelectorAll(".ol-layer canvas, canvas.ol-layer"),(function(t){if(t.width>0){const e=t.parentNode.style.opacity||t.style.opacity;r.globalAlpha=""===e?1:Number(e);const n=t.parentNode.style.backgroundColor;let i;n&&(r.fillStyle=n,r.fillRect(0,0,t.width,t.height));const o=t.style.transform;i=o?o.match(/^matrix\(([^\(]*)\)$/)[1].split(",").map(Number):[parseFloat(t.style.width)/t.width,0,0,parseFloat(t.style.height)/t.height,0,0],CanvasRenderingContext2D.prototype.setTransform.apply(r,i),r.drawImage(t,0,0)}})),r.globalAlpha=1,navigator.msSaveBlob)navigator.msSaveBlob(n.msToBlob(),"map.png");else{const t=document.getElementById(e);t.href=n.toDataURL(),t.click()}})),t.renderSync()},wE=(t,e,n="kilometers")=>{const i=zA(t),r=zA(e);return ZA(i,r,{units:n})},CE=t=>{let e,n,i;const r=t.getType();if("Polygon"===r){let i=0,r=0,o=0;n=t.getCoordinates()[0].slice(1),n.forEach((function(t){i+=t[0],r+=t[1],o++})),e=[i/o,r/o]}else"LineString"===r?(e=t.getCoordinateAt(.5),n=t.getCoordinates()):e=Wt(t.getExtent());let o;return n?(o=n.map((function(t){const n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i})),i=Math.sqrt(Math.max.apply(Math,o))/3):i=Math.max(ne(t.getExtent()),Jt(t.getExtent()))/3,{center:e,coordinates:n,minRadius:i,sqDistances:o}},EE=t=>{const e=FA(t);return ep(e)},bE=(t,e,n,i)=>{"zoom"===e?(kE.map.mapControlsZoom&&t.removeControl(kE.map.mapControlsZoom),n&&(kE.map.mapControlsZoom=new Ig(i||kE.map.mapControlsZoomOptions),t.addControl(kE.map.mapControlsZoom))):"rotate"===e?(kE.map.mapControlsRotate&&t.removeControl(kE.map.mapControlsRotate),n&&(kE.map.mapControlsRotate=new _g(i||kE.map.mapControlsRotateOptions),t.addControl(kE.map.mapControlsRotate))):"attribution"===e?(kE.map.mapControlsAttribution&&t.removeControl(kE.map.mapControlsAttribution),n&&(kE.map.mapControlsAttribution=new yg(i||kE.map.mapControlsAttributionOptions),t.addControl(kE.map.mapControlsAttribution))):"FullScreen"===e?(kE.map.mapControlsFullScreen&&t.removeControl(kE.map.mapControlsFullScreen),n&&(kE.map.mapControlsFullScreen=new Uf(kE.map.mapControlsFullScreen),t.addControl(kE.map.mapControlsFullScreen))):"ScaleLine"===e?(kE.map.mapControlsScaleLine&&t.removeControl(kE.map.mapControlsScaleLine),n&&(kE.map.mapControlsScaleLine=new Jf(kE.map.mapControlsScaleLine),t.addControl(kE.map.mapControlsScaleLine))):"ZoomSlider"===e&&(kE.map.mapControlsZoomSlider&&t.removeControl(kE.map.mapControlsZoomSlider),n&&(kE.map.mapControlsZoomSlider=new eA(kE.map.mapControlsZoomSlider),t.addControl(kE.map.mapControlsZoomSlider)))},SE=t=>{if(t)return(new pm).writeFeaturesObject(t)},BE=t=>{if(t)return(new pm).writeFeatureObject(t)},ME=t=>{const e=(new pm).readFeature(t);return(new Nm).writeFeature(e)},TE=t=>{const e=(new pm).readGeometry(t);return(new Nm).writeGeometry(e)},DE=t=>{const e=cn(t,{projection:"EPSG:4326"});return{format:{kilo:Math.round(e/1e3*100)/100,meter:Math.round(100*e)/100},length:e}},RE=t=>{const e=dn(t,{projection:"EPSG:4326"});return{format:{kilo:Math.round(e/1e6*100)/100,meter:Math.round(100*e)/100},area:e}};class kE{constructor(t={}){A(this,"map",kE),A(this,"controls",{zoom:void 0,zoomOptions:void 0,attribution:void 0,attributionOptions:void 0,rotate:void 0,rotateOptions:void 0,FullScreen:void 0,ScaleLine:void 0,ZoomSlider:void 0}),A(this,"interactions",{DragRotateAndZoom:void 0});const e={center:[108.5525,34.3227],zoom:5,constrainResolution:!0,projection:"EPSG:4326"},n=g(g({},e),t.view);WC(n,"city")&&n.city&&(n.center=CA(n.city)||n.center||e.center);const i=new wa(n),r=g(g({},{zoom:!1,zoomOptions:void 0,rotate:!1,rotateOptions:void 0,attribution:!1,attributionOptions:void 0}),t.controls);this.map=new wd({target:t.target,view:i,controls:[],interactions:yd(t.interactions)});for(const o in r)"zoom"===o?(this.controls[o]=new Ig(r.zoomOptions),r[o]?this.map.addControl(this.controls[o]):this.map.removeControl(this.controls[o])):"attribution"===o?(this.controls[o]=new yg(r.attributionOptions),r[o]?this.map.addControl(this.controls[o]):this.map.removeControl(this.controls[o])):"rotate"===o?(this.controls[o]=new _g(r.rotateOptions),r[o]?this.map.addControl(this.controls[o]):this.map.removeControl(this.controls[o])):"FullScreen"===o?(this.controls[o]=new Uf(r[o]),r[o]?this.map.addControl(this.controls[o]):this.map.removeControl(this.controls[o])):"ScaleLine"===o?(this.controls[o]=new Jf(r[o]),r[o]?this.map.addControl(this.controls[o]):this.map.removeControl(this.controls[o])):"ZoomSlider"===o&&(this.controls[o]=new eA(r[o]),r[o]?this.map.addControl(this.controls[o]):this.map.removeControl(this.controls[o]));for(const o in t.interactions)"DragRotateAndZoom"===o&&(this.interactions[o]=new qd(t.interactions[o]),t.interactions[o]?this.map.addInteraction(this.interactions[o]):this.map.removeInteraction(this.interactions[o]))}static panTo(t){return AE(kE.map.map,t)}static flyTo(t){return pE(kE.map.map,t)}static setCenter(t){return mE(kE.map.map,t)}static setZoom(t){return yE(kE.map.map,t)}static setConstrainResolution(t){return vE(kE.map.map,t)}static setMaxZoom(t){return _E(kE.map.map,t)}static setMinZoom(t){return xE(kE.map.map,t)}static exportPNG(t){return IE(kE.map.map,t)}static getDistancePoint(t,e,n){return wE(t,e,n)}static calculateCenter(t){return CE(t)}static getControl(t){return kE.map.controls[t]}static setControl(t,e,n){return bE(kE.map.map,t,e,n)}static writeFeaturesObject(t){if(t)return(new pm).writeFeaturesObject(t)}static writeFeatureObject(t){if(t)return(new pm).writeFeatureObject(t)}get mapControlsZoom(){return kE.map.controls.zoom}set mapControlsZoom(t){kE.map.controls.zoom=t}get mapControlsRotate(){return kE.map.controls.rotate}set mapControlsRotate(t){kE.map.controls.rotate=t}get mapControlsAttribution(){return kE.map.controls.attribution}set mapControlsAttribution(t){kE.map.controls.attribution=t}get mapControlsZoomOptions(){return kE.map.controls.zoomOptions}set mapControlsZoomOptions(t){kE.map.controls.zoomOptions=t}get mapControlsRotateOptions(){return kE.map.controls.rotateOptions}set mapControlsRotateOptions(t){kE.map.controls.rotateOptions=t}get mapControlsAttributionOptions(){return kE.map.controls.attributionOptions}set mapControlsAttributionOptions(t){kE.map.controls.attributionOptions=t}get mapControlsFullScreen(){return kE.map.controls.FullScreen}set mapControlsFullScreen(t){kE.map.controls.FullScreen=t}get mapControlsScaleLine(){return kE.map.controls.ScaleLine}set mapControlsScaleLine(t){kE.map.controls.ScaleLine=t}get mapControlsZoomSlider(){return kE.map.controls.ZoomSlider}set mapControlsZoomSlider(t){kE.map.controls.ZoomSlider=t}}const LE=Object.freeze(Object.defineProperty({__proto__:null,FeatureExt:qC,AMapMercatorProj:YC,validObjKey:WC,isFunction:XC,setPosition:ZC,convertCoordinate:KC,setCircleStyle:JC,setText:$C,setStyle:tE,setFeatureStyle:eE,setFeatures:nE,setFeature:iE,setPointFeature:rE,setMultiPoint:oE,setPolygon:sE,setMultiPolygon:aE,setPolyline:lE,setCircle:hE,getRadiusByUnit:uE,addVectorSource:cE,clusterFeatureStyle:gE,addClusterLayer:dE,setImage:fE,panTo:AE,flyTo:pE,setCenter:mE,setZoom:yE,setConstrainResolution:vE,setMaxZoom:_E,setMinZoom:xE,exportPNG:IE,getDistancePoint:wE,calculateCenter:CE,getCentroid:EE,setControl:bE,writeFeaturesObject:SE,writeFeatureObject:BE,geojson2wktFeatureString:ME,geojson2wktGeometryString:TE,formatLength:DE,formatArea:RE,OlMap:kE},Symbol.toStringTag,{value:"Module"}));var PE=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:{width:t.mapWidth,height:t.mapHeight},attrs:{id:t.mapId}},[n("a",{attrs:{id:"download"+t.mapId,download:t.downloadName}}),t.load?t._t("default"):t._e()],2)},QE=[];function zE(t,e,n,i,r,o,s,a){var l,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),i&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!t&&"undefined"!=typeof __VUE_SSR_CONTEXT__&&(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=l):r&&(l=a?function(){r.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(h.functional){h._injectStyles=l;var u=h.render;h.render=function(t,e){return l.call(e),u(t,e)}}else{var c=h.beforeCreate;h.beforeCreate=c?[].concat(c,l):[l]}return{exports:t,options:h}}PE._withStripped=!0;const FE={name:"v-map",provide(){return{VMap:this}},props:{width:{type:[String,Number],default(){return"100%"}},height:{type:[String,Number],default(){return"100%"}},target:{type:String,default:""},view:{type:Object},controls:{type:Object},interactions:{type:Object}},computed:{mapOption(){return{view:this.view,controls:this.controls,interactions:this.interactions}},map(){return this.vMap},mapWidth(){return"string"==typeof this.width?this.width:this.width.toString()+"px"},mapHeight(){return"string"==typeof this.height?this.height:this.height.toString()+"px"}},watch:{"view.center":{handler(t){t&&this.setCenter(t)},immediate:!1,deep:!0},"view.zoom":{handler(t){t&&this.setZoom(t)},immediate:!1,deep:!0},"view.constrainRotation":{handler(t){t&&this.setConstrainResolution(t)},immediate:!1,deep:!0},"view.maxZoom":{handler(t){t&&this.setMaxZoom(t)},immediate:!1,deep:!0},"view.minZoom":{handler(t){t&&this.setMinZoom(t)},immediate:!1,deep:!0},"controls.zoom":{handler(t){this.vMap.mapControlsZoom&&OlMap.setControl("zoom",t,this.controls.zoomOptions)},immediate:!1,deep:!0},"controls.rotate":{handler(t){this.vMap.mapControlsRotate&&OlMap.setControl("rotate",t,this.controls.rotateOptions)},immediate:!1,deep:!0},"controls.attribution":{handler(t){this.vMap.mapControlsAttribution&&OlMap.setControl("attribution",t,this.controls.attributionOptions)},immediate:!1,deep:!0},"controls.FullScreen":{handler(t){this.vMap.mapControlsFullScreen&&OlMap.setControl("FullScreen",t)},immediate:!1,deep:!0},"controls.ScaleLine":{handler(t){this.vMap.mapControlsScaleLine&&OlMap.setControl("ScaleLine",t)},immediate:!1,deep:!0}},data(){return{mapId:"",vMap:null,load:!1,downloadName:"map.png",noBase:!0,properties:{isDefault:!0}}},methods:{initMap(){this.init().then(t=>{if("failed"!==t){this.vMap=t.map;const e=["singleclick","click","dblclick","pointerdrag","contextmenu","precompose","postrender","loadend","loadstart","moveend","movestart"];this.map.getView().once("change:resolution",()=>{this.map.once("moveend",t=>{this.zoomEnd(t)})}),this.map.on("pointermove",t=>{const e=this.map.getEventPixel(t.originalEvent),n=this.map.hasFeatureAtPixel(e);this.map.getTargetElement().style.cursor=n?"pointer":"",this.map.getLayers().getArray().forEach(e=>{if("graphic"===e.get("type")||"wms"===e.get("type")){const i=e.getData(t.pixel),r=i&&i[3]>0;this.map.getTargetElement().style.cursor=r||n?"pointer":""}}),this.$emit("pointermove",t,this.map)}),e.forEach(t=>{this.map.on(t,e=>{this.$emit(t,e,this.map)})}),this.$emit("load",this.map),this.load=!0}})},init(){return new Promise((t,e)=>{const n=new kE(d(g({},this.mapOption),{target:this.mapId}));n.map?t(n):e(new Error("fail"))})},dispose(){this.map&&([...this.map.getLayers().getArray()].forEach(t=>{t&&t.get("users")&&(t.getSource().clear(),t.getRenderer().dispose(),t.setSource(void 0),this.map.removeLayer(t))}),this.map.disposeInternal())},zoomEnd(t){this.$emit("changeZoom",t,this.map),t.map.once("moveend",t=>{this.zoomEnd(t)})},setCenter(t){mE(this.map,t)},setZoom(t){yE(this.map,t)},setConstrainResolution(t){vE(this.map,t)},setMaxZoom(t){_E(this.map,t)},setMinZoom(t){xE(this.map,t)},setControl(t,e){bE(this.map,t,e)},writeFeaturesObject(t){return SE(t)},writeFeatureObject(t){return BE(t)},panTo(t){AE(this.map,t)},flyTo(t){pE(this.map,t)},fit(t,e){let n=ca;Object.prototype.hasOwnProperty.call(e,"easing")&&fa[e.easing]&&"function"==typeof fa[e.easing]&&(n=fa[e.easing]),this.map.getView().fit(t,d(g({},e),{easing:n}))},getCenterByExtent(t){return Wt(t)},boundingExtent(t){return Et(t)},calculateCenter(t){return CE(t)},exportPNG(t){t?t.indexOf(".png")>-1?this.downloadName=t:this.downloadName=t+".png":this.downloadName=`map-export-${this.mapId}.png`,IE(this.map,"download-"+this.mapId)},getDistancePoint(t,e,n){return wE(t,e,n)},closeOverlays(){this.map.getOverlays().forEach(t=>{t.setPosition(void 0);const e=t.get("close");e&&e()})},updateFeature(t,e,n){"style"===e&&t.setStyle(setStyle(n))}},created(){this.mapId=this.target||m()},mounted(){this.initMap()},beforeDestroy(){this.dispose()}},OE={};var NE=zE(FE,PE,QE,!1,GE,null,null,null);function GE(t){for(let e in OE)this[e]=OE[e]}NE.options.__file="src/components/map/index.vue";const jE=function(){return NE.exports}();jE.install=function(t){t.component(jE.name,jE)};const UE={render(t,e){return null},props:{className:{type:String,default:"ol-layer"},opacity:{type:Number,default:1},visible:{type:Boolean,default:!0},extent:{type:Array},zIndex:{type:Number},maxResolution:{type:Number},minResolution:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},title:{type:String},name:{type:String},preview:{type:String},baseLayer:{type:Boolean},properties:{type:Object,default:()=>{}}},data(){return{layer:null}},watch:{visible:{handler(t){this.layer.setVisible(t)},immediate:!1},opacity:{handler(t){this.layer.setOpacity(t)},immediate:!1},zIndex:{handler(t){this.layer.setZIndex(t)},immediate:!1},maxZoom:{handler(t){this.layer.setMaxZoom(t)},immediate:!1},minZoom:{handler(t){this.layer.setMinZoom(t)},immediate:!1},extent:{handler(t){this.layer.setExtent(t)},immediate:!1,deep:!0},maxResolution:{handler(t){this.layer.setMaxResolution(t)},immediate:!1},minResolution:{handler(t){this.layer.setMinResolution(t)},immediate:!1},properties:{handler(t){this.layer.setProperties(t)},immediate:!1,deep:!0}}};let qE,VE;const HE={};var YE=zE(UE,qE,VE,!1,WE,null,null,null);function WE(t){for(let e in HE)this[e]=HE[e]}YE.options.__file="src/components/layers/BaseLayer.vue";const XE=function(){return YE.exports}(),ZE=[0,0,0],KE=5;class JE{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,ot(D(this.resolutions_,(t,e)=>e-t,!0),"`resolutions` must be sorted in descending order"),!t.origins)for(let i=0,r=this.resolutions_.length-1;i{const i=new zd(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(n){const t=this.getTileRangeForExtentAndZ(n,e);i.minX=Math.max(t.minX,i.minX),i.maxX=Math.min(t.maxX,i.maxX),i.minY=Math.max(t.minY,i.minY),i.maxY=Math.min(t.maxY,i.maxY)}return i}):n&&this.calculateTileRanges_(n)}forEachTileCoord(t,e,n){const i=this.getTileRangeForExtentAndZ(t,e);for(let r=i.minX,o=i.maxX;r<=o;++r)for(let t=i.minY,s=i.maxY;t<=s;++t)n([e,r,t])}forEachTileCoordParentTileRange(t,e,n,i){let r,o,s,a=null,l=t[0]-1;for(2===this.zoomFactor_?(o=t[1],s=t[2]):a=this.getTileCoordExtent(t,i);l>=this.minZoom;){if(void 0!==o&&void 0!==s?(o=Math.floor(o/2),s=Math.floor(s/2),r=Qd(o,o,s,s,n)):r=this.getTileRangeForExtentAndZ(a,l,n),e(l,r))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,n){if(t[0]this.maxZoom||e{const r=e.getTileRangeForExtentAndZ(t,this.sourceZ_);for(let e=r.minX;e<=r.maxX;e++)for(let t=r.minY;t<=r.maxY;t++){const r=l(this.sourceZ_,e,t,s);if(r){const t=i*n;this.sourceTiles_.push({tile:r,offset:t})}}++i}),0===this.sourceTiles_.length&&(this.state=Qc.EMPTY)}else this.state=Qc.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(e=>{var n;const i=e.tile;if(i&&i.getState()==Qc.LOADED){const r=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);r[0]+=e.offset,r[2]+=e.offset;const o=null==(n=this.clipExtent_)?void 0:n.slice();o&&(o[0]+=e.offset,o[2]+=e.offset),t.push({extent:r,clipExtent:o,image:i.getImage()})}}),this.sourceTiles_.length=0,0===t.length)this.state=Qc.ERROR;else{const e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Mp(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,a,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=Qc.LOADED}this.changed()}load(){if(this.state==Qc.IDLE){this.state=Qc.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(({tile:e})=>{const n=e.getState();if(n==Qc.IDLE||n==Qc.LOADING){t++;const n=j(e,G.CHANGE,i=>{const r=e.getState();(r==Qc.LOADED||r==Qc.ERROR||r==Qc.EMPTY)&&(q(n),t--,0===t&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(n)}}),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:t},e,n){t.getState()==Qc.IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(q),this.sourcesListenerKeys_=null}release(){this.canvas_&&(mo(this.canvas_.getContext("2d")),wp.push(this.canvas_),this.canvas_=null),super.release()}}const eb=tb,nb={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};function ib(t){let e=t.getDefaultTileGrid();return e||(e=lb(t),t.setDefaultTileGrid(e)),e}function rb(t,e,n){const i=e[0],r=t.getTileCoordCenter(e),o=hb(n);if(!Tt(o,r)){const e=ne(o),n=Math.ceil((o[0]-r[0])/e);return r[0]+=e*n,t.getTileCoordForCoordAndZ(r,i)}return e}function ob(t,e,n,i){i=void 0!==i?i:"top-left";const r=ab(t,e,n);return new $E({extent:t,origin:Xt(t,i),resolutions:r,tileSize:n})}function sb(t){const e=t||{},n=e.extent||ni("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:ab(n,e.maxZoom,e.tileSize,e.maxResolution)};return new $E(i)}function ab(t,e,n,i){e=void 0!==e?e:Zs,n=Yo(void 0!==n?n:Ks);const r=Jt(t),o=ne(t);i=i>0?i:Math.max(o/n[0],r/n[1]);const s=e+1,a=new Array(s);for(let l=0;lthis.getTileInternal(t,e,n,i,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return c.key=a,c}getTileInternal(t,e,n,i,r){const o=this.getKey();return this.createTile_(t,e,n,i,r,o)}setRenderReprojectionEdges(t){this.renderReprojectionEdges_!=t&&(this.renderReprojectionEdges_=t,this.changed())}setTileGridForProjection(t,e){const n=ni(t);if(n){const t=X(n);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}}function bb(t,e){t.getImage().src=e}const Sb=Eb;class Bb extends Sb{constructor(t){t=t||{};const e=void 0!==t.projection?t.projection:"EPSG:3857",n=void 0!==t.tileGrid?t.tileGrid:sb({extent:hb(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}const Mb=Bb;class Tb extends Dc{constructor(t){t=t||{},super({attributions:t.attributions,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.minDistance=t.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=t.geometryFunction||function(t){const e=t.getGeometry();return ot(!e||"Point"===e.getType(),"The default `geometryFunction` can only handle `Point` or null geometries"),e},this.createCustomCluster_=t.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(t.source||null)}clear(t){this.features.length=0,super.clear(t)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(t,e,n){var i;null==(i=this.source)||i.loadFeatures(t,e,n),e!==this.resolution&&(this.resolution=e,this.refresh())}setDistance(t){this.updateDistance(t,this.minDistance)}setMinDistance(t){this.updateDistance(this.distance,t)}getMinDistance(){return this.minDistance}setSource(t){this.source&&this.source.removeEventListener(G.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(G.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(t,e){const n=0===t?0:Math.min(e,t)/t,i=t!==this.distance||this.interpolationRatio!==n;this.distance=t,this.minDistance=e,this.interpolationRatio=n,i&&this.refresh()}cluster(){if(void 0===this.resolution||!this.source)return;const t=Lt(),e=this.distance*this.resolution,n=this.source.getFeatures(),i={};for(let r=0,o=n.length;r=0;--s){const e=this.geometryFunction(t[s]);e?Ze(n,e.getCoordinates()):t.splice(s,1)}en(n,1/t.length);const i=Wt(e),r=this.interpolationRatio,o=new hr([n[0]*(1-r)+i[0]*r,n[1]*(1-r)+i[1]*r]);return this.createCustomCluster_?this.createCustomCluster_(o,t):new lt({geometry:o,features:t})}}const Db=Tb;function Rb(t){return t instanceof Image||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageBitmap?t:null}function kb(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Float32Array||t instanceof DataView?t:null}const Lb=new Error("disposed");let Pb=null;function Qb(t){Pb||(Pb=fo(t.width,t.height,void 0,{willReadFrequently:!0}));const e=Pb.canvas,n=t.width;e.width!==n&&(e.width=n);const i=t.height;return e.height!==i&&(e.height=i),Pb.clearRect(0,0,n,i),Pb.drawImage(t,0,0),Pb.getImageData(0,0,n,i).data}const zb=[256,256];class Fb extends Fc{constructor(t){const e=Qc.IDLE;super(t.tileCoord,e,{transition:t.transition,interpolate:t.interpolate}),this.loader_=t.loader,this.data_=null,this.error_=null,this.size_=t.size||null,this.controller_=t.controller||null}getSize(){if(this.size_)return this.size_;const t=Rb(this.data_);return t?[t.width,t.height]:zb}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==Qc.IDLE&&this.state!==Qc.ERROR)return;this.state=Qc.LOADING,this.changed();const t=this;this.loader_().then((function(e){t.data_=e,t.state=Qc.LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=Qc.ERROR,t.changed()}))}disposeInternal(){this.controller_&&(this.controller_.abort(Lb),this.controller_=null),super.disposeInternal()}}const Ob=Fb;function Nb(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Gb(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function jb(t,e,n,i,r,o,s){s=null!=s?s:Nb();const a=1/(t-e),l=1/(n-i),h=1/(r-o);return s[0]=-2*a,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=-2*l,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=2*h,s[11]=0,s[12]=(t+e)*a,s[13]=(i+n)*l,s[14]=(o+r)*h,s[15]=1,s}function Ub(t,e,n,i,r){return r=null!=r?r:Nb(),r[0]=t[0]*e,r[1]=t[1]*e,r[2]=t[2]*e,r[3]=t[3]*e,r[4]=t[4]*n,r[5]=t[5]*n,r[6]=t[6]*n,r[7]=t[7]*n,r[8]=t[8]*i,r[9]=t[9]*i,r[10]=t[10]*i,r[11]=t[11]*i,r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15],r}function qb(t,e,n,i,r){let o,s,a,l,h,u,c,g,d,f,A,p;return r=null!=r?r:Nb(),t===r?(r[12]=t[0]*e+t[4]*n+t[8]*i+t[12],r[13]=t[1]*e+t[5]*n+t[9]*i+t[13],r[14]=t[2]*e+t[6]*n+t[10]*i+t[14],r[15]=t[3]*e+t[7]*n+t[11]*i+t[15]):(o=t[0],s=t[1],a=t[2],l=t[3],h=t[4],u=t[5],c=t[6],g=t[7],d=t[8],f=t[9],A=t[10],p=t[11],r[0]=o,r[1]=s,r[2]=a,r[3]=l,r[4]=h,r[5]=u,r[6]=c,r[7]=g,r[8]=d,r[9]=f,r[10]=A,r[11]=p,r[12]=o*e+h*n+d*i+t[12],r[13]=s*e+u*n+f*i+t[13],r[14]=a*e+c*n+A*i+t[14],r[15]=l*e+g*n+p*i+t[15]),r}function Vb(t,e,n,i){return i=null!=i?i:Nb(),i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=t,i[13]=e,i[14]=n,i[15]=1,i}const Hb="\n attribute vec4 a_position;\n attribute vec4 a_texcoord;\n\n uniform mat4 u_matrix;\n uniform mat4 u_textureMatrix;\n\n varying vec2 v_texcoord;\n\n void main() {\n gl_Position = u_matrix * a_position;\n vec2 texcoord = (u_textureMatrix * a_texcoord).xy;\n v_texcoord = texcoord;\n }\n",Yb="\n precision mediump float;\n\n varying vec2 v_texcoord;\n\n uniform sampler2D u_texture;\n\n void main() {\n if (\n v_texcoord.x < 0.0 ||\n v_texcoord.y < 0.0 ||\n v_texcoord.x > 1.0 ||\n v_texcoord.y > 1.0\n ) {\n discard;\n }\n gl_FragColor = texture2D(u_texture, v_texcoord);\n }\n";class Wb{constructor(t){this.gl_=t,this.program_=Zb(t,Yb,Hb),this.positionLocation=t.getAttribLocation(this.program_,"a_position"),this.texcoordLocation=t.getAttribLocation(this.program_,"a_texcoord"),this.matrixLocation=t.getUniformLocation(this.program_,"u_matrix"),this.textureMatrixLocation=t.getUniformLocation(this.program_,"u_textureMatrix"),this.textureLocation=t.getUniformLocation(this.program_,"u_texture"),this.positionBuffer=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer),this.positions=[0,0,0,1,1,0,1,0,0,1,1,1],t.bufferData(t.ARRAY_BUFFER,new Float32Array(this.positions),t.STATIC_DRAW),this.texcoordBuffer=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.texcoordBuffer),this.texcoords=[0,0,0,1,1,0,1,0,0,1,1,1],t.bufferData(t.ARRAY_BUFFER,new Float32Array(this.texcoords),t.STATIC_DRAW)}drawImage(t,e,n,i,r,o,s,a,l,h,u,c,g){const d=this.gl_;void 0===a&&(a=i),void 0===l&&(l=r),void 0===o&&(o=e),void 0===s&&(s=n),void 0===h&&(h=o),void 0===u&&(u=s),void 0===c&&(c=d.canvas.width),void 0===g&&(g=d.canvas.height),d.bindTexture(d.TEXTURE_2D,t),d.useProgram(this.program_),d.bindBuffer(d.ARRAY_BUFFER,this.positionBuffer),d.enableVertexAttribArray(this.positionLocation),d.vertexAttribPointer(this.positionLocation,2,d.FLOAT,!1,0,0),d.bindBuffer(d.ARRAY_BUFFER,this.texcoordBuffer),d.enableVertexAttribArray(this.texcoordLocation),d.vertexAttribPointer(this.texcoordLocation,2,d.FLOAT,!1,0,0);let f=jb(0,c,0,g,-1,1);f=qb(f,a,l,0),f=Ub(f,h,u,1),d.uniformMatrix4fv(this.matrixLocation,!1,f);let A=Vb(i/e,r/n,0);A=Ub(A,o/e,s/n,1),d.uniformMatrix4fv(this.textureMatrixLocation,!1,A),d.uniform1i(this.textureLocation,0),d.drawArrays(d.TRIANGLES,0,this.positions.length/2)}}function Xb(t,e,n){const i=t.createShader(e);if(null===i)throw new Error("Shader compilation failed");if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)){const e=t.getShaderInfoLog(i);throw null===e?new Error("Shader info log creation failed"):new Error(e)}return i}function Zb(t,e,n){const i=t.createProgram(),r=Xb(t,t.VERTEX_SHADER,n),o=Xb(t,t.FRAGMENT_SHADER,e);if(null===i)throw new Error("Program creation failed");if(t.attachShader(i,r),t.attachShader(i,o),t.linkProgram(i),!t.getProgramParameter(i,t.LINK_STATUS))throw null===t.getProgramInfoLog(i)?new Error("Program info log creation failed"):new Error;return i}const Kb="\n attribute vec4 a_position;\n\n uniform mat4 u_matrix;\n\n void main() {\n gl_Position = u_matrix * a_position;\n }\n",Jb="\n precision mediump float;\n\n uniform vec4 u_val;\n void main() {\n gl_FragColor = u_val;\n }\n",$b="\n attribute vec4 a_position;\n attribute vec2 a_texcoord;\n\n varying vec2 v_texcoord;\n\n uniform mat4 u_matrix;\n\n void main() {\n gl_Position = u_matrix * a_position;\n v_texcoord = a_texcoord;\n }\n",tS="\n precision mediump float;\n\n varying vec2 v_texcoord;\n\n uniform sampler2D u_texture;\n\n void main() {\n if (v_texcoord.x < 0.0 || v_texcoord.x > 1.0 || v_texcoord.y < 0.0 || v_texcoord.y > 1.0) {\n discard;\n }\n gl_FragColor = texture2D(u_texture, v_texcoord);\n }\n";function eS(t,e,n,i){let r;return r=n&&n.length?n.shift():ho?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(r.width=t),e&&(r.height=e),r.getContext("webgl",i)}function nS(t){const e=t.canvas;e.width=1,e.height=1,t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}const iS=[];function rS(t,e,n,i,r,o,s,a,l,h,u,c,g,d){const f=Math.round(i*e),A=Math.round(i*n);let p,m;if(t.canvas.width=f,t.canvas.height=A,m=t.createTexture(),t.bindTexture(t.TEXTURE_2D,m),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),g?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR)):(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST)),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,f,A,0,t.RGBA,u,null),p=t.createFramebuffer(),t.bindFramebuffer(t.FRAMEBUFFER,p),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,m,0),null===p)throw new Error("Could not create framebuffer");if(null===m)throw new Error("Could not create texture");if(0===l.length)return{width:f,height:A,framebuffer:p,texture:m};const y=Lt();let v,_,x;l.forEach((function(t,e,n){Nt(y,t.extent)}));const I=1/r;if(d&&1===l.length&&0===h)v=l[0].texture,_=l[0].width,x=l[0].width;else{if(v=t.createTexture(),null===m)throw new Error("Could not create texture");_=Math.round(ne(y)*I),x=Math.round(Jt(y)*I);const e=t.getParameter(t.MAX_TEXTURE_SIZE),n=Math.max(_,x),i=n>e?e/n:1,r=Math.round(_*i),o=Math.round(x*i);t.bindTexture(t.TEXTURE_2D,v),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),g?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR)):(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST)),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,r,o,0,t.RGBA,u,null);const s=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,s),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,v,0);const a=new Wb(t);l.forEach((function(e,n,l){const u=(e.extent[0]-y[0])*I*i,c=-(e.extent[3]-y[3])*I*i,d=ne(e.extent)*I*i,f=Jt(e.extent)*I*i;if(t.bindFramebuffer(t.FRAMEBUFFER,s),t.viewport(0,0,r,o),e.clipExtent){const n=(e.clipExtent[0]-y[0])*I*i,r=-(e.clipExtent[3]-y[3])*I*i,o=ne(e.clipExtent)*I*i,s=Jt(e.clipExtent)*I*i;t.enable(t.SCISSOR_TEST),t.scissor(g?n:Math.round(n),g?r:Math.round(r),g?o:Math.round(n+o)-Math.round(n),g?s:Math.round(r+s)-Math.round(r))}a.drawImage(e.texture,e.width,e.height,h,h,e.width-2*h,e.height-2*h,g?u:Math.round(u),g?c:Math.round(c),g?d:Math.round(u+d)-Math.round(u),g?f:Math.round(c+f)-Math.round(c),r,o),t.disable(t.SCISSOR_TEST)})),t.deleteFramebuffer(s)}const w=te(s),C=te(y),E=t=>{const e=(t[0][0]-w[0])/o*i,n=-(t[0][1]-w[1])/o*i,r=(t[1][0]-w[0])/o*i,s=-(t[1][1]-w[1])/o*i,a=(t[2][0]-w[0])/o*i,l=-(t[2][1]-w[1])/o*i;return{u1:r,v1:s,u0:e,v0:n,u2:a,v2:l}};t.bindFramebuffer(t.FRAMEBUFFER,p),t.viewport(0,0,f,A);{const e=[],n=[],i=Zb(t,tS,$b);t.useProgram(i);const o=t.getUniformLocation(i,"u_texture");t.bindTexture(t.TEXTURE_2D,v),t.uniform1i(o,0),a.getTriangles().forEach((function(t,i,o){const s=t.source,a=t.target,{u1:l,v1:h,u0:u,v0:c,u2:g,v2:d}=E(a),f=(s[0][0]-C[0])/r/_,A=-(s[0][1]-C[1])/r/x,p=(s[1][0]-C[0])/r/_,m=-(s[1][1]-C[1])/r/x,y=(s[2][0]-C[0])/r/_,v=-(s[2][1]-C[1])/r/x;e.push(l,h,u,c,g,d),n.push(p,m,f,A,y,v)}));const s=jb(0,f,A,0,-1,1),l=t.getUniformLocation(i,"u_matrix");t.uniformMatrix4fv(l,!1,s);const h=t.getAttribLocation(i,"a_position"),u=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,u),t.bufferData(t.ARRAY_BUFFER,new Float32Array(e),t.STATIC_DRAW),t.vertexAttribPointer(h,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(h);const c=t.getAttribLocation(i,"a_texcoord"),g=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,g),t.bufferData(t.ARRAY_BUFFER,new Float32Array(n),t.STATIC_DRAW),t.vertexAttribPointer(c,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(c),t.drawArrays(t.TRIANGLES,0,e.length/2)}if(c){const e=Zb(t,Jb,Kb);t.useProgram(e);const n=jb(0,f,A,0,-1,1),i=t.getUniformLocation(e,"u_matrix");t.uniformMatrix4fv(i,!1,n);const r=Array.isArray(c)?c:[0,0,0,255],o=t.getUniformLocation(e,"u_val");t.uniform4fv(o,r);const s=t.getAttribLocation(e,"a_position"),l=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,l),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(s);const h=a.getTriangles().reduce((function(t,e){const n=e.target,{u1:i,v1:r,u0:o,v0:s,u2:a,v2:l}=E(n);return t.concat([i,r,o,s,o,s,a,l,a,l,i,r])}),[]);t.bufferData(t.ARRAY_BUFFER,new Float32Array(h),t.STATIC_DRAW),t.drawArrays(t.LINES,0,h.length/2)}return{width:f,height:A,framebuffer:p,texture:m}}class oS extends Ob{constructor(t){super({tileCoord:t.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:t.interpolate,transition:t.transition}),this.renderEdges_=void 0!==t.renderEdges&&t.renderEdges,this.pixelRatio_=t.pixelRatio,this.gutter_=t.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=t.sourceTileGrid,this.targetTileGrid_=t.targetTileGrid,this.wrappedTileCoord_=t.wrappedTileCoord||t.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const e=t.sourceProj,n=e.getExtent(),i=t.sourceTileGrid.getExtent();this.clipExtent_=e.canWrapX()?i?$t(n,i):n:i;const r=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),o=this.targetTileGrid_.getExtent();let s=this.sourceTileGrid_.getExtent();const a=o?$t(r,o):r;if(0===Vt(a))return void(this.state=Qc.EMPTY);n&&(s=s?$t(s,n):n);const l=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),h=t.targetProj,u=Bp(e,h,a,l);if(!isFinite(u)||u<=0)return void(this.state=Qc.EMPTY);const c=void 0!==t.errorThreshold?t.errorThreshold:mp;if(this.triangulation_=new xp(e,h,a,s,u*c,l,t.transformMatrix),0===this.triangulation_.getTriangles().length)return void(this.state=Qc.EMPTY);this.sourceZ_=this.sourceTileGrid_.getZForResolution(u);let g=this.triangulation_.calculateSourceExtent();if(s&&(e.canWrapX()?(g[1]=Qe(g[1],s[1],s[3]),g[3]=Qe(g[3],s[1],s[3])):g=$t(g,s)),Vt(g)){let i=0,r=0;e.canWrapX()&&(i=ne(n),r=Math.floor((g[0]-n[0])/i)),ue(g.slice(),e,!0).forEach(e=>{const n=this.sourceTileGrid_.getTileRangeForExtentAndZ(e,this.sourceZ_),o=t.getTileFunction;for(let t=n.minX;t<=n.maxX;t++)for(let e=n.minY;e<=n.maxY;e++){const n=o(this.sourceZ_,t,e,this.pixelRatio_);if(n){const t=r*i;this.sourceTiles_.push({tile:n,offset:t})}}++r}),0===this.sourceTiles_.length&&(this.state=Qc.EMPTY)}else this.state=Qc.EMPTY}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const t=[];let e=!1;if(this.sourceTiles_.forEach(n=>{var i;const r=n.tile;if(!r||r.getState()!==Qc.LOADED)return;const o=r.getSize(),s=this.gutter_;let a;const l=kb(r.getData());l?a=l:(e=!0,a=Qb(Rb(r.getData())));const h=[o[0]+2*s,o[1]+2*s],u=a instanceof Float32Array,c=h[0]*h[1],g=u?Float32Array:Uint8ClampedArray,d=new g(a.buffer),f=g.BYTES_PER_ELEMENT,A=f*d.length/c,p=d.byteLength/h[1],m=Math.floor(p/f/h[0]),y=this.sourceTileGrid_.getTileCoordExtent(r.tileCoord);y[0]+=n.offset,y[2]+=n.offset;const v=null==(i=this.clipExtent_)?void 0:i.slice();v&&(v[0]+=n.offset,v[2]+=n.offset),t.push({extent:y,clipExtent:v,data:d,dataType:g,bytesPerPixel:A,pixelSize:h,bandCount:m})}),this.sourceTiles_.length=0,0===t.length)return this.state=Qc.ERROR,void this.changed();const n=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(n),r="number"==typeof i?i:i[0],o="number"==typeof i?i:i[1],s=r*this.pixelRatio_,a=o*this.pixelRatio_,l=this.targetTileGrid_.getResolution(n),h=this.sourceTileGrid_.getResolution(this.sourceZ_),u=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),c=t[0].bandCount,g=new t[0].dataType(c*s*a),d=eS(s,a,iS,{premultipliedAlpha:!1,antialias:!1});let f;const A=d.RGBA;let p;t[0].dataType==Float32Array?(p=d.FLOAT,d.getExtension("WEBGL_color_buffer_float"),d.getExtension("OES_texture_float"),d.getExtension("EXT_float_blend"),f=null!==d.getExtension("OES_texture_float_linear")&&this.interpolate):(p=d.UNSIGNED_BYTE,f=this.interpolate);const m=4,y=Math.ceil(c/m);for(let v=y-1;v>=0;--v){const e=[];for(let r=0,o=t.length;r{const n=e.getState();if(n!==Qc.IDLE&&n!==Qc.LOADING)return;t++;const i=j(e,G.CHANGE,()=>{const n=e.getState();(n==Qc.LOADED||n==Qc.ERROR||n==Qc.EMPTY)&&(q(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(i)}),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:t}){t.getState()==Qc.IDLE&&t.load()}))}unlistenSources_(){this.sourcesListenerKeys_.forEach(q),this.sourcesListenerKeys_=null}}const sS=oS;class aS extends gb{constructor(t){const e=void 0===t.projection?"EPSG:3857":t.projection;let n=t.tileGrid;void 0===n&&e&&(n=sb({extent:hb(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize})),super({cacheSize:.1,attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:e,tileGrid:n,state:t.state,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0,this.tileSize_=t.tileSize?Yo(t.tileSize):null,this.tileSizes_=null,this.tileLoadingKeys_={},this.loader_=t.loader,this.handleTileChange_=this.handleTileChange_.bind(this),this.bandCount=void 0===t.bandCount?4:t.bandCount,this.tileGridForProjection_={},this.crossOrigin_=t.crossOrigin||"anonymous",this.transformMatrix=null}setTileSizes(t){this.tileSizes_=t}getTileSize(t){if(this.tileSizes_)return this.tileSizes_[t];if(this.tileSize_)return this.tileSize_;const e=this.getTileGrid();return e?Yo(e.getTileSize(t)):[256,256]}getGutterForProjection(t){const e=this.getProjection();return e&&!ci(e,t)||this.transformMatrix?0:this.gutter_}setLoader(t){this.loader_=t}getReprojTile_(t,e,n,i,r){const o=this.tileGrid||this.getTileGridForProjection(r||i),s=Math.max.apply(null,o.getResolutions().map((t,e)=>{const n=Yo(o.getTileSize(e)),i=this.getTileSize(e);return Math.max(i[0]/n[0],i[1]/n[1])})),a=this.getTileGridForProjection(i),l=[t,e,n],h=this.getTileCoordForTileUrlFunction(l,i),u=Object.assign({sourceProj:r||i,sourceTileGrid:o,targetProj:i,targetTileGrid:a,tileCoord:l,wrappedTileCoord:h,pixelRatio:s,gutter:this.gutter_,getTileFunction:(t,e,n,i)=>this.getTile(t,e,n,i),transformMatrix:this.transformMatrix},this.tileOptions),c=new sS(u);return c.key=this.getKey(),c}getTile(t,e,n,i,r){var o;const s=this.getProjection();if(r&&(s&&!ci(s,r)||this.transformMatrix))return this.getReprojTile_(t,e,n,r,s);const a=this.getTileSize(t),l=this.loader_,h=new AbortController,u={signal:h.signal,crossOrigin:this.crossOrigin_},c=this.getTileCoordForTileUrlFunction([t,e,n]);if(!c)return null;const g=c[0],d=c[1],f=c[2],A=null==(o=this.getTileGrid())?void 0:o.getFullTileRange(g);function p(){return Q((function(){return l(g,d,f,u)}))}A&&(u.maxY=A.getHeight()-1);const m=Object.assign({tileCoord:[t,e,n],loader:p,size:a,controller:h},this.tileOptions),y=new Ob(m);return y.key=this.getKey(),y.addEventListener(G.CHANGE,this.handleTileChange_),y}handleTileChange_(t){const e=t.target,n=X(e),i=e.getState();let r;i==Qc.LOADING?(this.tileLoadingKeys_[n]=!0,r=nb.TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],r=i==Qc.ERROR?nb.TILELOADERROR:i==Qc.LOADED?nb.TILELOADEND:void 0),r&&this.dispatchEvent(new cb(r,e))}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||ci(e,t))&&!this.transformMatrix)return this.tileGrid;const n=X(t);return n in this.tileGridForProjection_||(this.tileGridForProjection_[n]=ib(t)),this.tileGridForProjection_[n]}setTileGridForProjection(t,e){const n=ni(t);if(n){const t=X(n);t in this.tileGridForProjection_||(this.tileGridForProjection_[t]=e)}}}const lS=aS;function hS(t){return(e,...n)=>cS(t,e,n)}function uS(t,e){return hS(AS(t,e).get)}const{apply:cS,construct:gS,defineProperty:dS,get:fS,getOwnPropertyDescriptor:AS,getPrototypeOf:pS,has:mS,ownKeys:yS,set:vS,setPrototypeOf:_S}=Reflect,{iterator:xS,species:IS,toStringTag:wS,for:CS}=Symbol,ES=Object,{create:bS,defineProperty:SS,freeze:BS,is:MS}=ES,TS=Array.prototype[xS],DS=hS(TS),RS=ArrayBuffer,kS=RS.prototype;uS(kS,"byteLength");const LS="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:null;LS&&uS(LS.prototype,"byteLength");const PS=pS(Uint8Array);PS.from;const QS=PS.prototype;QS[xS],hS(QS.keys),hS(QS.values),hS(QS.entries),hS(QS.set),hS(QS.reverse),hS(QS.fill),hS(QS.copyWithin),hS(QS.sort),hS(QS.slice),hS(QS.subarray),uS(QS,"buffer"),uS(QS,"byteOffset"),uS(QS,"length"),uS(QS,wS);const zS=Uint8Array,FS=Uint16Array,OS=Uint32Array,NS=Float32Array,GS=pS([][xS]()),jS=hS(GS.next),US=hS(function*(){}().next),qS=pS(GS),VS=DataView.prototype,HS=hS(VS.getUint16),YS=WeakMap,WS=YS.prototype,XS=hS(WS.get),ZS=hS(WS.set),KS=new YS,JS=bS(null,{next:{value:function(){const t=XS(KS,this);return jS(t)}},[xS]:{value:function(){return this}}});function $S(t){if(t[xS]===TS&&GS.next===jS)return t;const e=bS(JS);return ZS(KS,e,DS(t)),e}const tB=new YS,eB=bS(qS,{next:{value:function(){const t=XS(tB,this);return US(t)},writable:!0,configurable:!0}});for(const n of yS(GS))"next"!==n&&SS(eB,n,AS(GS,n));const nB=new RS(4),iB=new NS(nB),rB=new OS(nB),oB=new FS(512),sB=new zS(512);for(let n=0;n<256;++n){const t=n-127;t<-24?(oB[n]=0,oB[256|n]=32768,sB[n]=24,sB[256|n]=24):t<-14?(oB[n]=1024>>-t-14,oB[256|n]=1024>>-t-14|32768,sB[n]=-t-1,sB[256|n]=-t-1):t<=15?(oB[n]=t+15<<10,oB[256|n]=t+15<<10|32768,sB[n]=13,sB[256|n]=13):t<128?(oB[n]=31744,oB[256|n]=64512,sB[n]=24,sB[256|n]=24):(oB[n]=31744,oB[256|n]=64512,sB[n]=13,sB[256|n]=13)}const aB=new OS(2048);for(let n=1;n<1024;++n){let t=n<<13,e=0;for(;0===(8388608&t);)t<<=1,e-=8388608;t&=-8388609,e+=947912704,aB[n]=t|e}for(let n=1024;n<2048;++n)aB[n]=939524096+(n-1024<<13);const lB=new OS(64);for(let n=1;n<31;++n)lB[n]=n<<23;lB[31]=1199570944,lB[32]=2147483648;for(let n=33;n<63;++n)lB[n]=2147483648+(n-32<<23);lB[63]=3347054592;const hB=new FS(64);for(let n=1;n<64;++n)32!==n&&(hB[n]=1024);function uB(t){const e=t>>10;return rB[0]=aB[hB[e]+(1023&t)]+lB[e],iB[0]}function cB(t,e,...n){return uB(HS(t,e,...$S(n)))}var gB={exports:{}};function dB(t,e,n){n&&n.debug;const i="object"==typeof t?t.outer:t,r=i.slice(0,i.indexOf(">")+1),o=['"',"'"];for(let s=0;s/]`,r);if(-1===o)return;const s=t.slice(o+e.length);let a=wB(s,"^[^<]*[ /]>",0);const l=-1!==a&&"/"===s[a-1];if(!1===l)if(i){let t=0,n=1,i=0;for(;-1!==(a=wB(s,"[ /]"+e+">",t));){const r=s.substring(t,a+1);if(n+=CB(r,"<"+e+"[ \n\t>]"),i+=CB(r,""),i>=n)break;t=a}}else a=wB(s,"[ /]"+e+">",0);const h=o+e.length+a+1;if(-1===h)return;const u=t.slice(o,h);let c;return c=l?null:u.slice(u.indexOf(">")+1,u.lastIndexOf("<")),{inner:c,outer:u,start:o,end:h}}AB.exports=EB,AB.exports.default=EB;const bB=AB.exports;function SB(t,e,n){const i=[],r=n&&n.debug||!1,o=!n||"boolean"!=typeof n.nested||n.nested;let s,a=n&&n.startIndex||0;for(;s=bB(t,e,{debug:r,startIndex:a});)a=o?s.start+1+e.length:s.end,i.push(s);return i}fB.exports=SB,fB.exports.default=SB;const BB={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},MB={};for(const n in BB)BB.hasOwnProperty(n)&&(MB[BB[n]]=parseInt(n,10));const TB=[MB.BitsPerSample,MB.ExtraSamples,MB.SampleFormat,MB.StripByteCounts,MB.StripOffsets,MB.StripRowCounts,MB.TileByteCounts,MB.TileOffsets,MB.SubIFDs],DB={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},RB={};for(const n in DB)DB.hasOwnProperty(n)&&(RB[DB[n]]=parseInt(n,10));const kB={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},LB={Unspecified:0,Assocalpha:1,Unassalpha:2},PB={Version:0,AddCompression:1},QB={None:0,Deflate:1,Zstandard:2},zB={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function FB(t,e){const{width:n,height:i}=t,r=new Uint8Array(n*i*3);let o;for(let s=0,a=0;s>24,s=t[r+2]<<24>>24;let a,l,h,c=(e+16)/116,g=n/500+c,d=c-s/200;g=UB*(g*g*g>.008856?g*g*g:(g-16/116)/7.787),c=qB*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),d=VB*(d*d*d>.008856?d*d*d:(d-16/116)/7.787),a=3.2406*g+-1.5372*c+-.4986*d,l=-.9689*g+1.8758*c+.0415*d,h=.0557*g+-.204*c+1.057*d,a=a>.0031308?1.055*u(a,1/2.4)-.055:12.92*a,l=l>.0031308?1.055*u(l,1/2.4)-.055:12.92*l,h=h>.0031308?1.055*u(h,1/2.4)-.055:12.92*h,i[o]=255*Math.max(0,Math.min(1,a)),i[o+1]=255*Math.max(0,Math.min(1,l)),i[o+2]=255*Math.max(0,Math.min(1,h))}return i}const YB=new Map;function WB(t,e){Array.isArray(t)||(t=[t]),t.forEach(t=>YB.set(t,e))}function XB(t){return p(this,null,(function*(){const e=YB.get(t.Compression);if(!e)throw new Error("Unknown compression method identifier: "+t.Compression);const n=yield e();return new n(t)}))}function ZB(t,e,n,i=1){return new(Object.getPrototypeOf(t).constructor)(e*n*i)}function KB(t,e,n,i,r){const o=e/i,s=n/r;return t.map(t=>{const a=ZB(t,i,r);for(let l=0;l{const a=ZB(t,i,r);for(let l=0;l>8-r-d&c;else if(d+r<=16)u[l]=a.getUint16(g)>>16-r-d&c;else if(d+r<=24){const t=a.getUint16(g)<<8|a.getUint8(g+2);u[l]=t>>24-r-d&c}else u[l]=a.getUint32(g)>>32-r-d&c}}}}return u.buffer}WB([void 0,1],()=>Promise.resolve().then(()=>aRt).then(t=>t.default)),WB(5,()=>Promise.resolve().then(()=>pRt).then(t=>t.default)),WB(6,()=>{throw new Error("old style JPEG compression is not supported.")}),WB(7,()=>Promise.resolve().then(()=>DRt).then(t=>t.default)),WB([8,32946],()=>Promise.resolve().then(()=>AFt).then(t=>t.default)),WB(32773,()=>Promise.resolve().then(()=>mFt).then(t=>t.default)),WB(34887,()=>Promise.resolve().then(()=>BFt).then(t=>p(this,null,(function*(){return yield t.zstd.init(),t}))).then(t=>t.default)),WB(50001,()=>Promise.resolve().then(()=>TFt).then(t=>t.default));class lM{constructor(t,e,n,i,r,o){this.fileDirectory=t,this.geoKeys=e,this.dataView=n,this.littleEndian=i,this.tiles=r?{}:null,this.isTiled=!t.StripOffsets;const s=t.PlanarConfiguration;if(this.planarConfiguration="undefined"==typeof s?1:s,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return"undefined"!=typeof this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:"undefined"!=typeof this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,n=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(n<=8)return DataView.prototype.getUint8;if(n<=16)return DataView.prototype.getUint16;if(n<=32)return DataView.prototype.getUint32;break;case 2:if(n<=8)return DataView.prototype.getInt8;if(n<=16)return DataView.prototype.getInt16;if(n<=32)return DataView.prototype.getInt32;break;case 3:switch(n){case 16:return function(t,e){return cB(this,t,e)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){const n=this.getSampleFormat(t),i=this.getBitsPerSample(t);return oM(n,i,e)}getTileOrStrip(t,e,n,i,r){return p(this,null,(function*(){const o=Math.ceil(this.getWidth()/this.getTileWidth()),s=Math.ceil(this.getHeight()/this.getTileHeight());let a;const{tiles:l}=this;let h,u;1===this.planarConfiguration?a=e*o+t:2===this.planarConfiguration&&(a=n*o*s+e*o+t),this.isTiled?(h=this.fileDirectory.TileOffsets[a],u=this.fileDirectory.TileByteCounts[a]):(h=this.fileDirectory.StripOffsets[a],u=this.fileDirectory.StripByteCounts[a]);const c=(yield this.source.fetch([{offset:h,length:u}],r))[0];let g;return null!==l&&l[a]?g=l[a]:(g=(()=>p(this,null,(function*(){let t=yield i.decode(this.fileDirectory,c);const n=this.getSampleFormat(),r=this.getBitsPerSample();return sM(n,r)&&(t=aM(t,n,this.planarConfiguration,this.getSamplesPerPixel(),r,this.getTileWidth(),this.getBlockHeight(e))),t})))(),null!==l&&(l[a]=g)),{x:t,y:e,sample:n,data:yield g}}))}_readRaster(t,e,n,i,r,o,s,a,l){return p(this,null,(function*(){const h=this.getTileWidth(),u=this.getTileHeight(),c=this.getWidth(),g=this.getHeight(),d=Math.max(Math.floor(t[0]/h),0),f=Math.min(Math.ceil(t[2]/h),Math.ceil(c/h)),A=Math.max(Math.floor(t[1]/u),0),p=Math.min(Math.ceil(t[3]/u),Math.ceil(g/u)),m=t[2]-t[0];let y=this.getBytesPerPixel();const v=[],_=[];for(let t=0;t{const o=r.data,s=new DataView(o),a=this.getBlockHeight(r.y),l=r.y*u,d=r.x*h,A=l+a,p=(r.x+1)*h,x=_[f],w=Math.min(a,a-(A-t[3]),g-l),C=Math.min(h,h-(p-t[2]),c-d);for(let u=Math.max(0,t[1]-l);uh[2]||h[1]>h[3])throw new Error("Invalid subsets");const u=h[2]-h[0],c=h[3]-h[1],g=u*c,d=this.getSamplesPerPixel();if(e&&e.length){for(let p=0;p=d)return Promise.reject(new RangeError(`Invalid sample index '${e[p]}'.`))}else for(let p=0;pl[2]||l[1]>l[3])throw new Error("Invalid subsets");const h=this.fileDirectory.PhotometricInterpretation;if(h===kB.RGB){let l=[0,1,2];if(this.fileDirectory.ExtraSamples!==LB.Unspecified&&s){l=[];for(let t=0;tvoid 0===gB.exports(t,"sample")):i.filter(e=>Number(gB.exports(e,"sample"))===t);for(let r=0;r[o+t*e+i*n,h+s*e+a*n]),c=u.map(t=>t[0]),g=u.map(t=>t[1]);return[Math.min(...c),Math.min(...g),Math.max(...c),Math.max(...g)]}{const t=this.getOrigin(),i=this.getResolution(),r=t[0],o=t[1],s=r+i[0]*n,a=o+i[1]*e;return[Math.min(r,s),Math.min(o,a),Math.max(r,s),Math.max(o,a)]}}}const hM=lM;class uM{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const n=this.getUint32(t,e),i=this.getUint32(t+4,e);let r;if(e){if(r=n+u(2,32)*i,!Number.isSafeInteger(r))throw new Error(r+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return r}if(r=u(2,32)*n+i,!Number.isSafeInteger(r))throw new Error(r+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return r}getInt64(t,e){let n=0;const i=(128&this._dataView.getUint8(t+(e?7:0)))>0;let r=!0;for(let o=0;o<8;o++){let s=this._dataView.getUint8(t+(e?o:7-o));i&&(r?0!==s&&(s=255&~(s-1),r=!1):s=255&~s),n+=s*u(256,o)}return i&&(n=-n),n}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return cB(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class cM{constructor(t,e,n,i){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=n,this._bigTiff=i}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),n=this.readUint32(t+4);let i;if(this._littleEndian){if(i=e+u(2,32)*n,!Number.isSafeInteger(i))throw new Error(i+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}if(i=u(2,32)*e+n,!Number.isSafeInteger(i))throw new Error(i+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}readInt64(t){let e=0;const n=(128&this._dataView.getUint8(t+(this._littleEndian?7:0)))>0;let i=!0;for(let r=0;r<8;r++){let o=this._dataView.getUint8(t+(this._littleEndian?r:7-r));n&&(i?0!==o&&(o=255&~(o-1),i=!1):o=255&~o),e+=o*u(256,r)}return n&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const gM="undefined"!=typeof navigator&&navigator.hardwareConcurrency||2;class dM{constructor(t=gM,e){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=e?Promise.resolve(e):new Promise(t=>{Promise.resolve().then(()=>kFt).then(e=>{t(e.create)})}),this._awaitingDecoder.then(e=>{this._awaitingDecoder=null,this.workers=[];for(let n=0;nn.decode(t,e)):new Promise(n=>{const i=this.workers.find(t=>t.idle)||this.workers[Math.floor(Math.random()*this.size)];i.idle=!1;const r=this.messageId++,o=t=>{t.data.id===r&&(i.idle=!0,n(t.data.decoded),i.worker.removeEventListener("message",o))};i.worker.addEventListener("message",o),i.worker.postMessage({fileDirectory:t,buffer:e,id:r},[e])})}))}destroy(){this.workers&&(this.workers.forEach(t=>{t.worker.terminate()}),this.workers=null)}}const fM=dM,AM="\r\n\r\n";function pM(t){if("undefined"!=typeof Object.fromEntries)return Object.fromEntries(t);const e={};for(const[n,i]of t)e[n.toLowerCase()]=i;return e}function mM(t){const e=t.split("\r\n").map(t=>{const e=t.split(":").map(t=>t.trim());return e[0]=e[0].toLowerCase(),e});return pM(e)}function yM(t){const[e,...n]=t.split(";").map(t=>t.trim()),i=n.map(t=>t.split("="));return{type:e,params:pM(i)}}function vM(t){let e,n,i;return t&&([,e,n,i]=t.match(/bytes (\d+)-(\d+)\/(\d+)/),e=parseInt(e,10),n=parseInt(n,10),i=parseInt(i,10)),{start:e,end:n,total:i}}function _M(t,e){let n=null;const i=new TextDecoder("ascii"),r=[],o="--"+e,s=o+"--";for(let a=0;a<10;++a)i.decode(new Uint8Array(t,a,o.length))===o&&(n=a);if(null===n)throw new Error("Could not find initial boundary");for(;nthis.fetchSlice(t,e)))}))}fetchSlice(t){return p(this,null,(function*(){throw new Error(`fetching of slice ${t} not possible, not implemented`)}))}get fileSize(){return null}close(){return p(this,null,(function*(){}))}}class IM extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof t.maxAge&&0===t.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if("function"==typeof this.onEviction)for(const[e,n]of t)this.onEviction(e,n.value)}_deleteIfExpired(t,e){return"number"==typeof e.expiry&&e.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(t,e.value),this.delete(t))}_getOrDeleteIfExpired(t,e){if(!1===this._deleteIfExpired(t,e))return e.value}_getItemValue(t,e){return e.expiry?this._getOrDeleteIfExpired(t,e):e.value}_peek(t,e){const n=e.get(t);return this._getItemValue(t,n)}_set(t,e){this.cache.set(t,e),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,e){this.oldCache.delete(t),this._set(t,e)}*_entriesAscending(){for(const t of this.oldCache){const[e,n]=t;this.cache.has(e)||!1===this._deleteIfExpired(e,n)&&(yield t)}for(const t of this.cache){const[e,n]=t;!1===this._deleteIfExpired(e,n)&&(yield t)}}get(t){if(this.cache.has(t)){const e=this.cache.get(t);return this._getItemValue(t,e)}if(this.oldCache.has(t)){const e=this.oldCache.get(t);if(!1===this._deleteIfExpired(t,e))return this._moveToRecent(t,e),e.value}}set(t,e,{maxAge:n=this.maxAge}={}){const i="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(t)?this.cache.set(t,{value:e,expiry:i}):this._set(t,{value:e,expiry:i}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):!!this.oldCache.has(t)&&!this._deleteIfExpired(t,this.oldCache.get(t))}peek(t){return this.cache.has(t)?this._peek(t,this.cache):this.oldCache.has(t)?this._peek(t,this.oldCache):void 0}delete(t){const e=this.cache.delete(t);return e&&this._size--,this.oldCache.delete(t)||e}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const e=[...this._entriesAscending()],n=e.length-t;n<0?(this.cache=new Map(e),this.oldCache=new Map,this._size=e.length):(n>0&&this._emitEvictions(e.slice(0,n)),this.oldCache=new Map(e.slice(n)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache){const[e,n]=t;!1===this._deleteIfExpired(e,n)&&(yield[e,n.value])}for(const t of this.oldCache){const[e,n]=t;this.cache.has(e)||!1===this._deleteIfExpired(e,n)&&(yield[e,n.value])}}*entriesDescending(){let t=[...this.cache];for(let e=t.length-1;e>=0;--e){const n=t[e],[i,r]=n;!1===this._deleteIfExpired(i,r)&&(yield[i,r.value])}t=[...this.oldCache];for(let e=t.length-1;e>=0;--e){const n=t[e],[i,r]=n;this.cache.has(i)||!1===this._deleteIfExpired(i,r)&&(yield[i,r.value])}}*entriesAscending(){for(const[t,e]of this._entriesAscending())yield[t,e.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const e of this.oldCache.keys())this.cache.has(e)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,e=this){for(const[n,i]of this.entriesAscending())t.call(e,i,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}function wM(t){return p(this,null,(function*(){return new Promise(e=>setTimeout(e,t))}))}function CM(t,e){const n=Array.isArray(t)?t:Array.from(t),i=Array.isArray(e)?e:Array.from(e);return n.map((t,e)=>[t,i[e]])}class EM extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,EM),this.name="AbortError"}}class bM extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const SM=bM;class BM{constructor(t,e,n=null){this.offset=t,this.length=e,this.data=n}get top(){return this.offset+this.length}}class MM{constructor(t,e,n){this.offset=t,this.length=e,this.blockIds=n}}class TM extends xM{constructor(t,{blockSize:e=65536,cacheSize:n=100}={}){super(),this.source=t,this.blockSize=e,this.blockCache=new IM({maxSize:n,onEviction:(t,e)=>{this.evictedBlocks.set(t,e)}}),this.evictedBlocks=new Map,this.blockRequests=new Map,this.blockIdsToFetch=new Set,this.abortedBlockIds=new Set}get fileSize(){return this.source.fileSize}fetch(t,e){return p(this,null,(function*(){const n=[],i=[],r=[];this.evictedBlocks.clear();for(const{offset:e,length:c}of t){let t=e+c;const{fileSize:o}=this;null!==o&&(t=Math.min(t,o));const s=Math.floor(e/this.blockSize)*this.blockSize;for(let e=s;ethis.abortedBlockIds.has(t)||!this.blockCache.has(t));if(a.forEach(t=>this.blockIdsToFetch.add(t)),a.length>0&&e&&!e.aborted){this.fetchBlocks(null);for(const t of a){const e=this.blockRequests.get(t);if(!e)throw new Error(`Block ${t} is not in the block requests`);s.push(e)}yield Promise.allSettled(s)}if(e&&e.aborted)throw new EM("Request was aborted");const l=r.map(t=>this.blockCache.get(t)||this.evictedBlocks.get(t)),h=l.filter(t=>!t);if(h.length)throw new SM(h,"Request failed");const u=new Map(CM(r,l));return this.readSliceData(t,u)}))}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const e=this.groupBlocks(this.blockIdsToFetch),n=this.source.fetch(e,t);for(let i=0;ip(this,null,(function*(){try{const t=(yield n)[i],r=e*this.blockSize,o=r-t.offset,s=Math.min(o+this.blockSize,t.data.byteLength),a=t.data.slice(o,s),l=new BM(r,a.byteLength,a,e);this.blockCache.set(e,l),this.abortedBlockIds.delete(e)}catch(r){if("AbortError"!==r.name)throw r;r.signal=t,this.blockCache.delete(e),this.abortedBlockIds.add(e)}finally{this.blockRequests.delete(e)}})))())}this.blockIdsToFetch.clear()}}groupBlocks(t){const e=Array.from(t).sort((t,e)=>t-e);if(0===e.length)return[];let n=[],i=null;const r=[];for(const o of e)null===i||i+1===o?(n.push(o),i=o):(r.push(new MM(n[0]*this.blockSize,n.length*this.blockSize,n)),n=[o],i=o);return r.push(new MM(n[0]*this.blockSize,n.length*this.blockSize,n)),r}readSliceData(t,e){return t.map(t=>{let n=t.offset+t.length;null!==this.fileSize&&(n=Math.min(this.fileSize,n));const i=Math.floor(t.offset/this.blockSize),r=Math.floor(n/this.blockSize),o=new ArrayBuffer(t.length),s=new Uint8Array(o);for(let a=i;a<=r;++a){const i=e.get(a),r=i.offset-t.offset,o=i.top-n;let l,h=0,u=0;r<0?h=-r:r>0&&(u=r),l=o<0?i.length-h:n-i.offset-h;const c=new Uint8Array(i.data,h,l);s.set(c,u)}return o})}}class DM{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}getData(){return p(this,null,(function*(){throw new Error("not implemented")}))}}class RM{constructor(t){this.url=t}request(){return p(this,arguments,(function*({headers:t,signal:e}={}){throw new Error("request is not implemented")}))}}class kM extends DM{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}getData(){return p(this,null,(function*(){return this.response.arrayBuffer?yield this.response.arrayBuffer():(yield this.response.buffer()).buffer}))}}class LM extends RM{constructor(t,e){super(t),this.credentials=e}request(){return p(this,arguments,(function*({headers:t,signal:e}={}){const n=yield fetch(this.url,{headers:t,credentials:this.credentials,signal:e});return new kM(n)}))}}class PM extends DM{constructor(t,e){super(),this.xhr=t,this.data=e}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}getData(){return p(this,null,(function*(){return this.data}))}}class QM extends RM{constructRequest(t,e){return new Promise((n,i)=>{const r=new XMLHttpRequest;r.open("GET",this.url),r.responseType="arraybuffer";for(const[e,o]of Object.entries(t))r.setRequestHeader(e,o);r.onload=()=>{const t=r.response;n(new PM(r,t))},r.onerror=i,r.onabort=()=>i(new EM("Request aborted")),r.send(),e&&(e.aborted&&r.abort(),e.addEventListener("abort",()=>r.abort()))})}request(){return p(this,arguments,(function*({headers:t,signal:e}={}){return yield this.constructRequest(t,e)}))}}const zM=new Proxy({},{get(t,e){throw new Error(`Module "" has been externalized for browser compatibility. Cannot access ".${e}" in client code.`)}}),FM=Object.freeze(Object.defineProperty({__proto__:null,default:zM},Symbol.toStringTag,{value:"Module"}));class OM extends DM{constructor(t,e){super(),this.response=t,this.dataPromise=e}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}getData(){return p(this,null,(function*(){return yield this.dataPromise}))}}class NM extends RM{constructor(t){super(t),this.parsedUrl=zM.parse(this.url),this.httpApi=(this.parsedUrl.protocol,zM)}constructRequest(t,e){return new Promise((n,r)=>{const o=this.httpApi.get(d(g({},this.parsedUrl),{headers:t}),t=>{const e=new Promise(e=>{const n=[];t.on("data",t=>{n.push(t)}),t.on("end",()=>{const t=i.concat(n).buffer;e(t)}),t.on("error",r)});n(new OM(t,e))});o.on("error",r),e&&(e.aborted&&o.destroy(new EM("Request aborted")),e.addEventListener("abort",()=>o.destroy(new EM("Request aborted"))))})}request(){return p(this,arguments,(function*({headers:t,signal:e}={}){return yield this.constructRequest(t,e)}))}}class GM extends xM{constructor(t,e,n,i){super(),this.client=t,this.headers=e,this.maxRanges=n,this.allowFullFile=i,this._fileSize=null}fetch(t,e){return p(this,null,(function*(){return this.maxRanges>=t.length?this.fetchSlices(t,e):(this.maxRanges>0&&t.length,Promise.all(t.map(t=>this.fetchSlice(t,e))))}))}fetchSlices(t,e){return p(this,null,(function*(){const n=yield this.client.request({headers:d(g({},this.headers),{Range:"bytes="+t.map(({offset:t,length:e})=>`${t}-${t+e}`).join(",")}),signal:e});if(n.ok){if(206===n.status){const{type:i,params:r}=yM(n.getHeader("content-type"));if("multipart/byteranges"===i){const t=_M(yield n.getData(),r.boundary);return this._fileSize=t[0].fileSize||null,t}const o=yield n.getData(),{start:s,end:a,total:l}=vM(n.getHeader("content-range"));this._fileSize=l||null;const h=[{data:o,offset:s,length:a-s}];if(t.length>1){const n=yield Promise.all(t.slice(1).map(t=>this.fetchSlice(t,e)));return h.concat(n)}return h}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=yield n.getData();return this._fileSize=t.byteLength,[{data:t,offset:0,length:t.byteLength}]}}throw new Error("Error fetching data.")}))}fetchSlice(t,e){return p(this,null,(function*(){const{offset:n,length:i}=t,r=yield this.client.request({headers:d(g({},this.headers),{Range:`bytes=${n}-${n+i}`}),signal:e});if(r.ok){if(206===r.status){const t=yield r.getData(),{total:e}=vM(r.getHeader("content-range"));return this._fileSize=e||null,{data:t,offset:n,length:i}}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=yield r.getData();return this._fileSize=t.byteLength,{data:t,offset:0,length:t.byteLength}}}throw new Error("Error fetching data.")}))}get fileSize(){return this._fileSize}}function jM(t,{blockSize:e,cacheSize:n}){return null===e?t:new TM(t,{blockSize:e,cacheSize:n})}function UM(t,e={}){var n=e,{headers:i={},credentials:r,maxRanges:o=0,allowFullFile:s=!1}=n,a=f(n,["headers","credentials","maxRanges","allowFullFile"]);const l=new LM(t,r),h=new GM(l,i,o,s);return jM(h,a)}function qM(t,e={}){var n=e,{headers:i={},maxRanges:r=0,allowFullFile:o=!1}=n,s=f(n,["headers","maxRanges","allowFullFile"]);const a=new QM(t),l=new GM(a,i,r,o);return jM(l,s)}function VM(t,e={}){var n=e,{headers:i={},maxRanges:r=0,allowFullFile:o=!1}=n,s=f(n,["headers","maxRanges","allowFullFile"]);const a=new NM(t),l=new GM(a,i,r,o);return jM(l,s)}function HM(t,e={}){var n=e,{forceXHR:i=!1}=n,r=f(n,["forceXHR"]);return"function"!=typeof fetch||i?"undefined"!=typeof XMLHttpRequest?qM(t,r):VM(t,r):UM(t,r)}class YM extends xM{constructor(t){super(),this.file=t}fetchSlice(t,e){return p(this,null,(function*(){return new Promise((n,i)=>{const r=this.file.slice(t.offset,t.offset+t.length),o=new FileReader;o.onload=t=>n(t.target.result),o.onerror=i,o.onabort=i,o.readAsArrayBuffer(r),e&&e.addEventListener("abort",()=>o.abort())})}))}}function WM(t){return new YM(t)}function XM(t,e){let n=t.length-e,i=0;do{for(let n=e;n>0;n--)t[i+e]+=t[i],i++;n-=e}while(n>0)}function ZM(t,e,n){let i=0,r=t.length;const o=r/n;for(;r>e;){for(let n=e;n>0;--n)t[i+e]+=t[i],++i;r-=e}const s=t.slice();for(let a=0;a=t.byteLength);++l){let i;if(2===e){switch(r[0]){case 8:i=new Uint8Array(t,l*a*n*s,a*n*s);break;case 16:i=new Uint16Array(t,l*a*n*s,a*n*s/2);break;case 32:i=new Uint32Array(t,l*a*n*s,a*n*s/4);break;default:throw new Error(`Predictor 2 not allowed with ${r[0]} bits per sample.`)}XM(i,a)}else 3===e&&(i=new Uint8Array(t,l*a*n*s,a*n*s),ZM(i,a,s))}return t}class JM{decode(t,e){return p(this,null,(function*(){const n=yield this.decodeBlock(e),i=t.Predictor||1;if(1!==i){const e=!t.StripOffsets,r=e?t.TileWidth:t.ImageWidth,o=e?t.TileLength:t.RowsPerStrip||t.ImageLength;return KM(n,i,r,o,t.BitsPerSample,t.PlanarConfiguration)}return n}))}}function $M(t){switch(t){case RB.BYTE:case RB.ASCII:case RB.SBYTE:case RB.UNDEFINED:return 1;case RB.SHORT:case RB.SSHORT:return 2;case RB.LONG:case RB.SLONG:case RB.FLOAT:case RB.IFD:return 4;case RB.RATIONAL:case RB.SRATIONAL:case RB.DOUBLE:case RB.LONG8:case RB.SLONG8:case RB.IFD8:return 8;default:throw new RangeError("Invalid field type: "+t)}}function tT(t){const e=t.GeoKeyDirectory;if(!e)return null;const n={};for(let i=4;i<=4*e[3];i+=4){const r=zB[e[i]],o=e[i+1]?BB[e[i+1]]:null,s=e[i+2],a=e[i+3];let l=null;if(o){if(l=t[o],"undefined"==typeof l||null===l)throw new Error(`Could not get value of geoKey '${r}'.`);"string"==typeof l?l=l.substring(a,a+s-1):l.subarray&&(l=l.subarray(a,a+s),1===s&&(l=l[0]))}else l=a;n[r]=l}return n}function eT(t,e,n,i){let r=null,o=null;const s=$M(e);switch(e){case RB.BYTE:case RB.ASCII:case RB.UNDEFINED:r=new Uint8Array(n),o=t.readUint8;break;case RB.SBYTE:r=new Int8Array(n),o=t.readInt8;break;case RB.SHORT:r=new Uint16Array(n),o=t.readUint16;break;case RB.SSHORT:r=new Int16Array(n),o=t.readInt16;break;case RB.LONG:case RB.IFD:r=new Uint32Array(n),o=t.readUint32;break;case RB.SLONG:r=new Int32Array(n),o=t.readInt32;break;case RB.LONG8:case RB.IFD8:r=new Array(n),o=t.readUint64;break;case RB.SLONG8:r=new Array(n),o=t.readInt64;break;case RB.RATIONAL:r=new Uint32Array(2*n),o=t.readUint32;break;case RB.SRATIONAL:r=new Int32Array(2*n),o=t.readInt32;break;case RB.FLOAT:r=new Float32Array(n),o=t.readFloat32;break;case RB.DOUBLE:r=new Float64Array(n),o=t.readFloat64;break;default:throw new RangeError("Invalid field type: "+e)}if(e===RB.RATIONAL||e===RB.SRATIONAL)for(let a=0;at.getWidth()-e.getWidth());for(let e=0;ei||o&&o>s)break}}let c=e;if(s){const[t,e]=a.getOrigin(),[n,i]=l.getResolution(a);c=[Math.round((s[0]-t)/n),Math.round((s[1]-e)/i),Math.round((s[2]-t)/n),Math.round((s[3]-e)/i)],c=[Math.min(c[0],c[2]),Math.min(c[1],c[3]),Math.max(c[0],c[2]),Math.max(c[1],c[3])]}return l.readRasters(d(g({},t),{window:c}))}))}}class oT extends rT{constructor(t,e,n,i,r={}){super(),this.source=t,this.littleEndian=e,this.bigTiff=n,this.firstIFDOffset=i,this.cache=r.cache||!1,this.ifdRequests=[],this.ghostValues=null}getSlice(t,e){return p(this,null,(function*(){const n=this.bigTiff?4048:1024;return new cM((yield this.source.fetch([{offset:t,length:"undefined"!=typeof e?e:n}]))[0],t,this.littleEndian,this.bigTiff)}))}parseFileDirectoryAt(t){return p(this,null,(function*(){const e=this.bigTiff?20:12,n=this.bigTiff?8:2;let i=yield this.getSlice(t);const r=this.bigTiff?i.readUint64(t):i.readUint16(t),o=r*e+(this.bigTiff?16:6);i.covers(t,o)||(i=yield this.getSlice(t,o));const s={};let a=t+(this.bigTiff?8:2);for(let t=0;tp(this,null,(function*(){const e=yield this.ifdRequests[t-1];if(0===e.nextIFDByteOffset)throw new iT(t);return this.parseFileDirectoryAt(e.nextIFDByteOffset)})))(),this.ifdRequests[t]}))}getImage(t=0){return p(this,null,(function*(){const e=yield this.requestIFD(t);return new hM(e.fileDirectory,e.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}))}getImageCount(){return p(this,null,(function*(){let t=0,e=!0;for(;e;)try{yield this.requestIFD(t),++t}catch(n){if(!(n instanceof iT))throw n;e=!1}return t}))}getGhostValues(){return p(this,null,(function*(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const e="GDAL_STRUCTURAL_METADATA_SIZE=",n=e.length+100;let i=yield this.getSlice(t,n);if(e===eT(i,RB.ASCII,e.length,t)){const e=eT(i,RB.ASCII,n,t).split("\n")[0],r=Number(e.split("=")[1].split(" ")[0])+e.length;r>n&&(i=yield this.getSlice(t,r));const o=eT(i,RB.ASCII,r,t);this.ghostValues={},o.split("\n").filter(t=>t.length>0).map(t=>t.split("=")).forEach(([t,e])=>{this.ghostValues[t]=e})}return this.ghostValues}))}static fromSource(t,e,n){return p(this,null,(function*(){const i=(yield t.fetch([{offset:0,length:1024}],n))[0],r=new uM(i),o=r.getUint16(0,0);let s;if(18761===o)s=!0;else{if(19789!==o)throw new TypeError("Invalid byte order value.");s=!1}const a=r.getUint16(2,s);let l;if(42===a)l=!1;else{if(43!==a)throw new TypeError("Invalid magic number.");if(l=!0,8!==r.getUint16(4,s))throw new Error("Unsupported offset byte-size.")}const h=l?r.getUint64(8,s):r.getUint32(4,s);return new oT(t,s,l,h,e)}))}close(){return"function"==typeof this.source.close&&this.source.close()}}class sT extends rT{constructor(t,e){super(),this.mainFile=t,this.overviewFiles=e,this.imageFiles=[t].concat(e),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}parseFileDirectoriesPerFile(){return p(this,null,(function*(){const t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map(t=>t.parseFileDirectoryAt(t.firstIFDOffset)));return this.fileDirectoriesPerFile=yield Promise.all(t),this.fileDirectoriesPerFile}))}getImage(t=0){return p(this,null,(function*(){yield this.getImageCount(),yield this.parseFileDirectoriesPerFile();let e=0,n=0;for(let i=0;it.getImageCount()));return this.imageCounts=yield Promise.all(t),this.imageCount=this.imageCounts.reduce((t,e)=>t+e,0),this.imageCount}))}}function aT(t){return p(this,arguments,(function*(t,e={},n){return oT.fromSource(HM(t,e),n)}))}function lT(t,e){return p(this,null,(function*(){return oT.fromSource(WM(t),e)}))}function hT(t){return p(this,arguments,(function*(t,e=[],n={},i){const r=yield oT.fromSource(HM(t,n),i),o=yield Promise.all(e.map(t=>oT.fromSource(HM(t,n))));return new sT(r,o)}))}function uT(t){return 4===(4&(t.fileDirectory.NewSubfileType||0))}function cT(t,e){if(!t)return!1;if(!0===t)return!0;if(3!==e.getSamplesPerPixel())return!1;const n=e.fileDirectory.PhotometricInterpretation,i=kB;return n===i.CMYK||n===i.YCbCr||n===i.CIELab||n===i.ICCLab}const gT="STATISTICS_MAXIMUM",dT="STATISTICS_MINIMUM",fT=256;let AT;function pT(){return AT||(AT=new fM),AT}function mT(t){try{return t.getBoundingBox(!0)}catch(e){return[0,0,t.getWidth(),t.getHeight()]}}function yT(t){try{return t.getOrigin().slice(0,2)}catch(e){return[0,t.getHeight()]}}function vT(t,e){try{return t.getResolution(e)}catch(n){return[e.getWidth()/t.getWidth(),e.getHeight()/t.getHeight()]}}function _T(t){const e=t.geoKeys;if(!e)return null;if(e.ProjectedCSTypeGeoKey&&32767!==e.ProjectedCSTypeGeoKey){const t="EPSG:"+e.ProjectedCSTypeGeoKey;let n=ni(t);if(!n){const i=ge(e.ProjLinearUnitsGeoKey);i&&(n=new Ae({code:t,units:i}))}return n}if(e.GeographicTypeGeoKey&&32767!==e.GeographicTypeGeoKey){const t="EPSG:"+e.GeographicTypeGeoKey;let n=ni(t);if(!n){const i=ge(e.GeogAngularUnitsGeoKey);i&&(n=new Ae({code:t,units:i}))}return n}return null}function xT(t){return t.getImageCount().then((function(e){const n=new Array(e);for(let i=0;in*t)throw new Error(i)}function CT(t){return t instanceof Int8Array?-128:t instanceof Int16Array?-32768:t instanceof Int32Array?-2147483648:t instanceof Float32Array?12e-39:0}function ET(t){return t instanceof Int8Array?127:t instanceof Uint8Array||t instanceof Uint8ClampedArray?255:t instanceof Int16Array?32767:t instanceof Uint16Array?65535:t instanceof Int32Array?2147483647:t instanceof Uint32Array?4294967295:t instanceof Float32Array?34e37:255}class bT extends lS{constructor(t){super({state:"loading",tileGrid:null,projection:t.projection||null,transition:t.transition,interpolate:!1!==t.interpolate,wrapX:t.wrapX}),this.sourceInfo_=t.sources;const e=this.sourceInfo_.length;this.sourceOptions_=t.sourceOptions,this.sourceImagery_=new Array(e),this.sourceMasks_=new Array(e),this.resolutionFactors_=new Array(e),this.samplesPerPixel_,this.nodataValues_,this.metadata_,this.normalize_=!1!==t.normalize,this.addAlpha_=!1,this.error_=null,this.convertToRGB_=t.convertToRGB||!1,this.setKey(this.sourceInfo_.map(t=>t.url).join(","));const n=this,i=new Array(e);for(let r=0;r=0;--n){const t=e[n],i=_T(t);if(i){this.projection=i;break}}}determineTransformMatrix(t){const e=t[0];for(let n=e.length-1;n>=0;--n){const t=e[n].fileDirectory.ModelTransformation;if(t){const[e,n,i,r,o,s,a,l]=t,h=gt(gt([1/Math.sqrt(e*e+o*o),0,0,-1/Math.sqrt(n*n+s*s),r,l],[e,o,n,s,0,0]),[1,0,0,1,-r,-l]);this.transformMatrix=h,this.addAlpha_=!0;break}}}configure_(t){let e,n,i,r,o;const s=new Array(t.length),a=new Array(t.length),l=new Array(t.length);let h=0;const u=t.length;for(let A=0;A{uT(t)?c.push(t):u.push(t)});const g=u.length;if(c.length>0&&c.length!==g)throw new Error(`Expected one mask per image found ${c.length} masks and ${g} images`);let d,f;const p=new Array(g),m=new Array(g),y=new Array(g);a[A]=new Array(g),l[A]=new Array(g);for(let t=0;ty.length&&(h=o.length-y.length);const t=o[o.length-1]/y[y.length-1];this.resolutionFactors_[A]=t;const e=y.map(e=>e*t),n=`Resolution mismatch for source ${A}, got [${e}] but expected [${o}]`;wT(o.slice(h,o.length),e,.02,n,this.viewRejector)}else o=y,this.resolutionFactors_[A]=1;i?wT(i.slice(h,i.length),m,.01,"Tile size mismatch for source "+A,this.viewRejector):i=m,r?wT(r.slice(h,r.length),p,0,"Tile size mismatch for source "+A,this.viewRejector):r=p,this.sourceImagery_[A]=u.reverse(),this.sourceMasks_[A]=c.reverse()}for(let A=0,p=this.sourceImagery_.length;AAt(t,e));f=le(e,n)}this.viewResolver({showFullExtent:!0,projection:this.projection,resolutions:o,center:vi(Wt(f),this.projection),extent:xi(f,this.projection),zoom:d})}loadTile_(t,e,n,i){const r=this.getTileSize(t),o=this.sourceImagery_.length,s=new Array(2*o),a=this.nodataValues_,l=this.sourceInfo_,h=pT();for(let u=0;u{const e=new Image;return e.crossOrigin=r,n(e,t.url).then(t=>{const e=ne(i)/t.width,n=Jt(i)/t.height;return{image:t,extent:i,resolution:e!==n?[e,n]:n,pixelRatio:1}})}}class TT extends Op{constructor(t){const e=void 0!==t.crossOrigin?t.crossOrigin:null,n=void 0!==t.imageLoadFunction?t.imageLoadFunction:zp;super({attributions:t.attributions,interpolate:t.interpolate,projection:ni(t.projection)}),this.url_=t.url,this.imageExtent_=t.imageExtent,this.image=null,this.image=new Bo(this.imageExtent_,void 0,1,MT({url:t.url,imageExtent:t.imageExtent,crossOrigin:e,load:(t,e)=>(this.image.setImage(t),n(this.image,e),So(t))})),this.image.addEventListener(G.CHANGE,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(t,e,n,i){return ie(t,this.image.getExtent())?this.image:null}getUrl(){return this.url_}}const DT=TT,RT="1.3.0";function kT(t,e,n,i,r){r.WIDTH=n[0],r.HEIGHT=n[1];const o=i.getAxisOrientation(),s=Xe(r.VERSION,"1.3")>=0;r[s?"CRS":"SRS"]=i.getCode();const a=s&&o.startsWith("ne")?[e[1],e[0],e[3],e[2]]:e;return r.BBOX=a.join(","),db(t,r)}function LT(t,e,n,i,r,o,s){o=Object.assign({REQUEST:"GetMap"},o);const a=e/n,l=[Ve(ne(t)/a,kp),Ve(Jt(t)/a,kp)];if(1!=n)switch(s){case"geoserver":const t=90*n+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+t:o.FORMAT_OPTIONS="dpi:"+t;break;case"mapserver":o.MAP_RESOLUTION=90*n;break;case"carmentaserver":case"qgis":o.DPI=90*n;break;default:throw new Error("Unknown `serverType` configured")}return kT(r,t,l,i,o)}function PT(t,e){return Object.assign({REQUEST:e,SERVICE:"WMS",VERSION:RT,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},t)}class QT extends Cb{constructor(t){const e=t.projection||"EPSG:3857",n=t.extent||hb(e),i=t.tileGrid||sb({extent:n,maxResolution:t.maxResolution,maxZoom:void 0!==t.maxZoom?t.maxZoom:22,minZoom:t.minZoom,tileSize:t.tileSize||512});super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,interpolate:!0,projection:e,state:t.state,tileGrid:i,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:FT,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:void 0===t.zDirection?1:t.zDirection}),this.format_=t.format?t.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass?t.tileClass:jd,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(t,e,n){if(n.getState()===Qc.IDLE){n.setState(Qc.LOADING);const i=n.wrappedTileCoord,r=this.getTileGridForProjection(e),o=r.getTileCoordExtent(i),s=i[0],a=r.getResolution(s);St(o,-a,o);const l=this.tileGrid,h=l.getExtent();h&&$t(o,h,o);const u=l.getZForResolution(a,this.zDirection);l.forEachTileCoord(o,u,i=>{const r=this.tileUrlFunction(i,t,e);this.sourceTiles_[r]||(this.sourceTiles_[r]=new this.tileClass(i,r?Qc.IDLE:Qc.EMPTY,r,this.format_,this.tileLoadFunction));const o=this.sourceTiles_[r];n.sourceTiles.push(o),this.tileKeysBySourceTileUrl_[r]||(this.tileKeysBySourceTileUrl_[r]=[]),this.tileKeysBySourceTileUrl_[r].push(n.getKey());const s=o.getState();if(s{this.handleTileChange(e);const i=o.getState();if(i===Qc.LOADED||i===Qc.ERROR){const e=o.getKey();e in n.errorTileKeys?o.getState()===Qc.LOADED&&delete n.errorTileKeys[e]:n.loadingSourceTiles--,i===Qc.ERROR?n.errorTileKeys[e]=!0:o.removeEventListener(G.CHANGE,t),0===n.loadingSourceTiles&&n.setState(F(n.errorTileKeys)?Qc.LOADED:Qc.ERROR)}};o.addEventListener(G.CHANGE,t),n.loadingSourceTiles++}s===Qc.IDLE&&(o.extent=l.getTileCoordExtent(i),o.projection=e,o.resolution=l.getResolution(i[0]),o.load())}),n.loadingSourceTiles||n.setState(n.sourceTiles.some(t=>t.getState()===Qc.ERROR)?Qc.ERROR:Qc.LOADED)}return n.sourceTiles}removeSourceTiles(t){const e=t.sourceTiles;for(let n=0,i=e.length;n{h=h&&!this.tileUrlFunction(t,i,r)})}const u=new Nd(o,h?Qc.EMPTY:Qc.IDLE,s,this.getSourceTiles.bind(this,i,r),this.removeSourceTiles.bind(this));return u.key=this.getKey(),u}getTileGridForProjection(t){const e=t.getCode();let n=this.tileGrids_[e];if(!n){const t=this.tileGrid,i=t.getResolutions().slice(),r=i.map((function(e,n){return t.getOrigin(n)})),o=i.map((function(e,n){return t.getTileSize(n)})),s=Zs+1;for(let e=i.length;e=s.width)return null;const h=Jt(o),u=Math.floor(s.height*((o[3]-i[1])/h));return u<0||u>=s.height?null:this.getImageData(s,l,u)}renderFrame(t,e){const n=this.image,i=n.getExtent(),r=n.getResolution(),[o,s]=Array.isArray(r)?r:[r,r],a=n.getPixelRatio(),l=t.layerStatesArray[t.layerIndex],h=t.pixelRatio,u=t.viewState,c=u.center,g=u.resolution,d=h*o/(g*a),f=h*s/(g*a);this.prepareContainer(t,e);const A=this.context.canvas.width,p=this.context.canvas.height,m=this.getRenderContext(t);let y=!1,v=!0;if(l.extent){const e=Ii(l.extent,u.projection);v=ie(e,t.extent),y=v&&!Dt(e,t.extent),y&&this.clipUnrotated(m,t,e)}const _=n.getImage(),x=vt(this.tempTransform,A/2,p/2,d,f,0,a*(i[0]-c[0])/o,a*(c[1]-i[3])/s);this.renderedResolution=s*h/a;const I=_.width*x[0],w=_.height*x[3];if(this.getLayer().getSource().getInterpolate()||(m.imageSmoothingEnabled=!1),this.preRender(m,t),v&&I>=.5&&w>=.5){const t=x[4],e=x[5],n=l.opacity;1!==n&&(m.save(),m.globalAlpha=n),m.drawImage(_,0,0,+_.width,+_.height,t,e,I,w),1!==n&&m.restore()}return this.postRender(this.context,t),y&&m.restore(),m.imageSmoothingEnabled=!0,this.container}}const VT=qT;class HT extends UT{constructor(t){super(t)}createRenderer(){return new VT(this)}getData(t){return super.getData(t)}}const YT=HT,WT={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class XT extends ba{constructor(t){t=t||{};const e=Object.assign({},t),n=t.cacheSize;delete t.cacheSize,delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.cacheSize_=n,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(WT.PRELOAD)}setPreload(t){this.set(WT.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(WT.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(WT.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}}const ZT=XT;function KT(t,e,n,i){return`${t},${Td(e,n,i)}`}function JT(t,e,n){if(!(n in t))return t[n]=new Set([e]),!0;const i=t[n],r=i.has(e);return r||i.add(e),!r}function $T(t,e,n){const i=t[n];return!!i&&i.delete(e)}function tD(t,e){const n=t.layerStatesArray[t.layerIndex];n.extent&&(e=$t(e,Ii(n.extent,t.viewState.projection)));const i=n.layer.getRenderSource();if(!i.getWrapX()){const n=i.getTileGridForProjection(t.viewState.projection).getExtent();n&&(e=$t(e,n))}return e}class eD extends gu{constructor(t,e){super(t),e=e||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=Lt(),this.tempTileRange_=new zd(0,0,0,0),this.tempTileCoord_=Md(0,0,0);const n=void 0!==e.cacheSize?e.cacheSize:512;this.tileCache_=new Bd(n),this.maxStaleKeys=.5*n}getTileCache(){return this.tileCache_}getOrCreateTile(t,e,n,i){const r=this.tileCache_,o=this.getLayer().getSource(),s=KT(o.getKey(),t,e,n);let a;if(r.containsKey(s))a=r.get(s);else{if(a=o.getTile(t,e,n,i.pixelRatio,i.viewState.projection),!a)return null;r.set(s,a)}return a}getTile(t,e,n,i){const r=this.getOrCreateTile(t,e,n,i);return r||null}getData(t){const e=this.frameState;if(!e)return null;const n=this.getLayer(),i=At(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!Tt(r,i))return null;const o=e.viewState,s=n.getRenderSource(),a=s.getTileGridForProjection(o.projection),l=s.getTilePixelRatio(e.pixelRatio);for(let h=a.getZForResolution(o.resolution);h>=a.getMinZoom();--h){const t=a.getTileCoordForCoordAndZ(i,h),n=this.getTile(h,t[1],t[2],e);if(!n||n.getState()!==Qc.LOADED)continue;const r=a.getOrigin(h),u=Yo(a.getTileSize(h)),c=a.getResolution(h);let g;if(n instanceof Gc||n instanceof eb)g=n.getImage();else{if(!(n instanceof Ob))continue;if(g=Rb(n.getData()),!g)continue}const d=Math.floor(l*((i[0]-r[0])/c-t[1]*u[0])),f=Math.floor(l*((r[1]-i[1])/c-t[2]*u[1])),A=Math.round(l*s.getGutterForProjection(o.projection));return this.getImageData(g,d+A,f+A)}return null}prepareFrame(t){this.renderedProjection?t.viewState.projection!==this.renderedProjection&&(this.tileCache_.clear(),this.renderedProjection=t.viewState.projection):this.renderedProjection=t.viewState.projection;const e=this.getLayer().getSource();if(!e)return!1;const n=e.getRevision();return this.renderedRevision_?this.renderedRevision_!==n&&(this.renderedRevision_=n,this.renderedSourceKey_===e.getKey()&&this.tileCache_.clear()):this.renderedRevision_=n,!0}enqueueTiles(t,e,n,i,r){const o=t.viewState,s=this.getLayer(),a=s.getRenderSource(),l=a.getTileGridForProjection(o.projection),h=X(a);h in t.wantedTiles||(t.wantedTiles[h]={});const u=t.wantedTiles[h],c=s.getMapInternal(),g=Math.max(n-r,l.getMinZoom(),l.getZForResolution(Math.min(s.getMaxResolution(),c?c.getView().getResolutionForZoom(Math.max(s.getMinZoom(),0)):l.getResolution(0)),a.zDirection));for(let d=n;d>=g;--d){const n=l.getTileRangeForExtentAndZ(e,d,this.tempTileRange_),r=l.getResolution(d);for(let e=n.minX;e<=n.maxX;++e)for(let o=n.minY;o<=n.maxY;++o){const n=this.getTile(d,e,o,t);if(!n||!JT(i,n,d))continue;const s=n.getKey();if(u[s]=!0,n.getState()===Qc.IDLE&&!t.tileQueue.isKeyQueued(s)){const i=Md(d,e,o,this.tempTileCoord_);t.tileQueue.enqueue([n,h,l.getTileCoordCenter(i),r])}}}}findStaleTile_(t,e){const n=this.tileCache_,i=t[0],r=t[1],o=t[2],s=this.getStaleKeys();for(let a=0;a0&&setTimeout(()=>{this.enqueueTiles(t,S,d-1,C,b-1)},0),!(d in C))return this.container;const B=X(this),M=t.time;for(const E of C[d]){const e=E.getState();if((E instanceof eb||E instanceof sS)&&e===Qc.EMPTY)continue;const i=E.tileCoord;if(e===Qc.LOADED&&1===E.getAlpha(B,M)){E.endTransition(B);continue}if(e!==Qc.IDLE&&(n=!1),e!==Qc.ERROR&&(this.renderComplete=!1),this.findStaleTile_(i,C)){$T(C,E,d),t.animate=!0;continue}if(this.findAltTiles_(g,i,d+1,C))continue;const r=g.getMinZoom();for(let t=d-1;t>=r&&!this.findAltTiles_(g,i,t,C);--t);}const T=f/s*l/m,D=this.getRenderContext(t);vt(this.tempTransform,y/2,v/2,T,T,0,-y/2,-v/2),i.extent&&this.clipUnrotated(D,t,_),u.getInterpolate()||(D.imageSmoothingEnabled=!1),this.preRender(D,t);const R=Object.keys(C).map(Number);let k;R.sort(E);const L=[],P=[];for(let E=R.length-1;E>=0;--E){const e=R[E],n=u.getTilePixelSize(e,l,o),i=g.getResolution(e)/f,r=n[0]*i*T,s=n[1]*i*T,a=g.getTileCoordForCoordAndZ(te(w),e),h=g.getTileCoordExtent(a),c=At(this.tempTransform,[m*(h[0]-w[0])/f,m*(w[3]-h[3])/f]),d=m*u.getGutterForProjection(o);for(const o of C[e]){if(o.getState()!==Qc.LOADED)continue;const n=o.tileCoord,i=a[1]-n[1],l=Math.round(c[0]-(i-1)*r),h=a[2]-n[2],g=Math.round(c[1]-(h-1)*s),f=Math.round(c[0]-i*r),A=Math.round(c[1]-h*s),p=l-f,m=g-A,y=1===R.length;let v=!1;k=[f,A,f+p,A,f+p,A+m,f,A+m];for(let t=0,r=L.length;t{const n=X(u),i=e.wantedTiles[n],r=i?Object.keys(i).length:0;this.updateCacheSize(r),this.tileCache_.expireCache()};t.postRenderFunctions.push(e)}return!this.renderComplete&&!n&&(t.animate=!0),this.container}updateCacheSize(t){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*t)}drawTile(t,e,n,i,r,o,s,a){let l;if(t instanceof Ob){if(l=Rb(t.getData()),!l)throw new Error("Rendering array data is not yet supported")}else l=this.getTileImage(t);if(!l)return;const h=this.getRenderContext(e),u=X(this),c=e.layerStatesArray[e.layerIndex],g=c.opacity*(a?t.getAlpha(u,e.time):1),d=g!==h.globalAlpha;d&&(h.save(),h.globalAlpha=g),h.drawImage(l,s,s,l.width-2*s,l.height-2*s,n,i,r,o),d&&h.restore(),g!==c.opacity?e.animate=!0:a&&t.endTransition(u)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}updateUsedTiles(t,e,n){const i=X(e);i in t||(t[i]={}),t[i][n.getKey()]=!0}}const nD=eD;class iD extends ZT{constructor(t){super(t)}createRenderer(){return new nD(this,{cacheSize:this.getCacheSize()})}}const rD=iD;class oD extends Sb{constructor(t){t=t||{},super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:t.zDirection}),this.params_=Object.assign({},t.params),this.hidpi_=void 0===t.hidpi||t.hidpi,this.tmpExtent_=Lt(),this.setKey(this.getKeyForParams_())}getKeyForParams_(){let t=0;const e=[];for(const n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")}getParams(){return this.params_}getRequestUrl_(t,e,n,i,r,o){const s=this.urls;if(!s)return;let a;if(1==s.length)a=s[0];else{const e=je(Rd(t),s.length);a=s[e]}return BT(a,n,(this.tileGrid||this.getTileGridForProjection(r)).getResolution(t[0]),i,r,o)}getTilePixelRatio(t){return this.hidpi_?t:1}updateParams(t){Object.assign(this.params_,t),this.setKey(this.getKeyForParams_())}tileUrlFunction(t,e,n){let i=this.getTileGrid();if(i||(i=this.getTileGridForProjection(n)),i.getResolutions().length<=t[0])return;1!=e&&!this.hidpi_&&(e=1);const r=i.getTileCoordExtent(t,this.tmpExtent_);let o=Yo(i.getTileSize(t[0]),this.tmpSize);1!=e&&(o=Ho(o,e,this.tmpSize));const s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object.assign(s,this.params_),this.getRequestUrl_(t,o,r,e,n,s)}}const sD=oD;class aD extends Sb{constructor(t){t=t||{};const e=Object.assign({},t.params);super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0,this.params_=e,this.v13_=!0,this.serverType_=t.serverType,this.hidpi_=void 0===t.hidpi||t.hidpi,this.tmpExtent_=Lt(),this.updateV13_(),this.setKey(this.getKeyForParams_())}getFeatureInfoUrl(t,e,n,i){const r=ni(n),o=this.getProjection()||r;let s=this.getTileGrid();s||(s=this.getTileGridForProjection(o));const a=Ai(t,r,o),l=Sp(o,r,t,e),h=s.getZForResolution(l,this.zDirection),u=s.getResolution(h),c=s.getTileCoordForCoordAndZ(a,h);if(s.getResolutions().length<=c[0])return;let g=s.getTileCoordExtent(c,this.tmpExtent_);const d=this.gutter_;0!==d&&(g=St(g,u*d,g));const f={QUERY_LAYERS:this.params_.LAYERS};Object.assign(f,PT(this.params_,"GetFeatureInfo"),i);const A=Math.floor((a[0]-g[0])/u),p=Math.floor((g[3]-a[1])/u);return f[this.v13_?"I":"X"]=A,f[this.v13_?"J":"Y"]=p,this.getRequestUrl_(c,g,1,o||r,f)}getLegendUrl(t,e){if(void 0===this.urls[0])return;const n={SERVICE:"WMS",VERSION:RT,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){const t=this.params_.LAYERS;if(Array.isArray(t)&&1!==t.length)return;n.LAYER=t}if(void 0!==t){const e=this.getProjection()?this.getProjection().getMetersPerUnit():1,i=28e-5;n.SCALE=t*e/i}return Object.assign(n,e),db(this.urls[0],n)}getGutter(){return this.gutter_}getParams(){return this.params_}getRequestUrl_(t,e,n,i,r){const o=this.urls;if(!o)return;let s;if(1==o.length)s=o[0];else{const e=je(Rd(t),o.length);s=o[e]}return LT(e,(this.tileGrid||this.getTileGridForProjection(i)).getResolution(t[0]),n,i,s,r,this.serverType_)}getTilePixelRatio(t){return this.hidpi_&&void 0!==this.serverType_?t:1}getKeyForParams_(){let t=0;const e=[];for(const n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")}updateParams(t){Object.assign(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())}updateV13_(){const t=this.params_.VERSION||RT;this.v13_=Xe(t,"1.3")>=0}tileUrlFunction(t,e,n){let i=this.getTileGrid();if(i||(i=this.getTileGridForProjection(n)),i.getResolutions().length<=t[0])return;1!=e&&(!this.hidpi_||void 0===this.serverType_)&&(e=1);const r=i.getResolution(t[0]);let o=i.getTileCoordExtent(t,this.tmpExtent_);const s=this.gutter_;0!==s&&(o=St(o,r*s,o));const a=Object.assign({},PT(this.params_,"GetMap"));return this.getRequestUrl_(t,o,e,n,a)}}const lD=aD;var hD=class extends ${constructor(t){super(t),this._listener=[],t&&!1===t.active?this.set("active",!1):this.set("active",!0)}setActive(t){this.set("active",!0===t)}getActive(){return this.get("active")}};(function(){function t(t){this.get("active")&&t.context&&this.precompose(t)}function e(t){this.get("active")&&t.context&&this.postcompose(t)}function n(){if(this.renderSync)try{this.renderSync()}catch(t){}else this.changed()}function i(i){this.filters_||(this.filters_=[]),this.filters_.push(i),i.addToLayer&&i.addToLayer(this),i.precompose&&i._listener.push({listener:this.on(["precompose","prerender"],t.bind(i)),target:this}),i.postcompose&&i._listener.push({listener:this.on(["postcompose","postrender"],e.bind(i)),target:this}),i._listener.push({listener:i.on("propertychange",n.bind(this)),target:this}),n.call(this)}function r(t){var e;if(this.filters_||(this.filters_=[]),t){for(e=this.filters_.length-1;e>=0;e--)this.filters_[e]===t&&this.filters_.splice(e,1);for(e=t._listener.length-1;e>=0;e--)t._listener[e].target===this&&(t.removeFromLayer&&t.removeFromLayer(this),H(t._listener[e].listener),t._listener.splice(e,1));n.call(this)}else this.filters_.forEach(function(t){this.removeFilter(t)}.bind(this))}wd.prototype.addFilter=function(t){i.call(this,t)},wd.prototype.removeFilter=function(t){r.call(this,t)},wd.prototype.getFilters=function(){return this.filters_||[]},Ys.prototype.addFilter=function(t){i.call(this,t)},Ys.prototype.removeFilter=function(t){r.call(this,t)},Ys.prototype.getFilters=function(){return this.filters_||[]}})();var uD=class extends hD{constructor(t){if(t=t||{},super(t),t.feature)switch(t.feature.getGeometry().getType()){case"Polygon":case"MultiPolygon":this.feature_=t.feature;break}this.set("inner",t.inner),this._fillColor=t.fill&&Hr(t.fill.getColor())||"rgba(0,0,0,0.2)",this._shadowColor=t.shadowColor&&Hr(t.shadowColor)||"rgba(0,0,0,0.5)",this.set("shadowWidth",t.shadowWidth||0),this.set("shadowMapUnits",!0===t.shadowMapUnits)}setFillColor(t){this._fillColor=t&&Hr(t)||"rgba(0,0,0,0.2)"}setShadowColor(t){this._shadowColor=t&&Hr(t)||"rgba(0,0,0,0.5)"}drawFeaturePath_(t,e){var n,i=t.context,r=i.canvas,o=t.frameState.pixelRatio;if(t.frameState.coordinateToPixelTransform){var s=t.frameState.coordinateToPixelTransform;if(t.inversePixelTransform){var a=t.inversePixelTransform;n=function(t){return t=[t[0]*s[0]+t[1]*s[1]+s[4],t[0]*s[2]+t[1]*s[3]+s[5]],[t[0]*a[0]-t[1]*a[1]+a[4],-t[0]*a[2]+t[1]*a[3]+a[5]]}}else n=function(t){return[(t[0]*s[0]+t[1]*s[1]+s[4])*o,(t[0]*s[2]+t[1]*s[3]+s[5])*o]}}else s=t.frameState.coordinateToPixelMatrix,n=function(t){return[(t[0]*s[0]+t[1]*s[1]+s[12])*o,(t[0]*s[4]+t[1]*s[5]+s[13])*o]};var l=this.feature_.getGeometry().getCoordinates();function h(t){for(var e=0;ep&&([A,p]=[p,A]);for(var m=A;m<=p;m++)h(m*c)}else h(0)}postcompose(t){if(this.feature_){var e=t.context;if(e.save(),this.drawFeaturePath_(t,!this.get("inner")),e.fillStyle=this._fillColor,e.fill("evenodd"),this.get("shadowWidth")){var n=this.get("shadowWidth")*t.frameState.pixelRatio;this.get("shadowMapUnits")&&(n/=t.frameState.viewState.resolution),e.clip("evenodd"),e.filter="blur("+n+"px)",e.strokeStyle=this._shadowColor,e.lineCap="round",e.lineJoin="round",e.lineWidth=n,e.stroke()}e.restore()}}};class cD extends N{constructor(t){super(),this.tile,this.handleTileChange_=this.handleTileChange_.bind(this),this.gutter=t.gutter||0,this.helper=t.helper,this.loaded=!1,this.ready=!1}setTile(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(G.CHANGE,this.handleTileChange_),this.tile=t,this.loaded=t.getState()===Qc.LOADED,this.loaded)this.uploadTile();else{if(t instanceof Gc){const e=t.getImage();e instanceof Image&&!e.crossOrigin&&(e.crossOrigin="anonymous")}t.addEventListener(G.CHANGE,this.handleTileChange_)}}uploadTile(){Y()}setReady(){this.ready=!0,this.dispatchEvent(G.CHANGE)}handleTileChange_(){this.tile.getState()===Qc.LOADED&&(this.loaded=!0,this.uploadTile())}setHelper(t){this.helper=t,this.helper&&this.loaded&&this.uploadTile()}disposeInternal(){this.setHelper(null),this.tile.removeEventListener(G.CHANGE,this.handleTileChange_)}}const gD=cD,dD=34962,fD=34963,AD=35040,pD=35044,mD=35048,yD=5121,vD=5123,_D=5125,xD=5126,ID=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function wD(t,e){e=Object.assign({preserveDrawingBuffer:!0,antialias:!oo},e);const n=ID.length;for(let r=0;r{this.uniforms_.push({value:t.uniforms[n],location:e.getUniformLocation(this.renderTargetProgram_,n)})})}getRenderTargetTexture(){return this.renderTargetTexture_}getGL(){return this.gl_}init(t){const e=this.getGL(),n=[e.drawingBufferWidth*this.scaleRatio_,e.drawingBufferHeight*this.scaleRatio_];if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.bindRenderbuffer(e.RENDERBUFFER,this.getDepthBuffer()),e.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;const t=0,i=e.RGBA,r=0,o=e.RGBA,s=e.UNSIGNED_BYTE,a=null;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,t,i,n[0],n[1],r,o,s,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,n[0],n[1]),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.depthBuffer_)}}apply(t,e,n,i){const r=this.getGL(),o=t.size;if(r.bindFramebuffer(r.FRAMEBUFFER,e?e.getFrameBuffer():null),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,this.renderTargetTexture_),!e){const e=X(r.canvas);if(!t.renderTargets[e]){const n=r.getContextAttributes();n&&n.preserveDrawingBuffer&&(r.clearColor(0,0,0,0),r.clearDepth(1),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT)),t.renderTargets[e]=!0}}r.disable(r.DEPTH_TEST),r.enable(r.BLEND),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.viewport(0,0,r.drawingBufferWidth,r.drawingBufferHeight),r.bindBuffer(r.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),r.useProgram(this.renderTargetProgram_),r.enableVertexAttribArray(this.renderTargetAttribLocation_),r.vertexAttribPointer(this.renderTargetAttribLocation_,2,r.FLOAT,!1,0,0),r.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),r.uniform1i(this.renderTargetTextureLocation_,0);const s=t.layerStatesArray[t.layerIndex].opacity;r.uniform1f(this.renderTargetOpacityLocation_,s),this.applyUniforms(t),n&&n(r,t),r.drawArrays(r.TRIANGLES,0,6),i&&i(r,t)}getFrameBuffer(){return this.frameBuffer_}getDepthBuffer(){return this.depthBuffer_}applyUniforms(t){const e=this.getGL();let n,i=1;this.uniforms_.forEach((function(r){if(n="function"==typeof r.value?r.value(t):r.value,n instanceof HTMLCanvasElement||n instanceof ImageData)r.texture||(r.texture=e.createTexture()),e.activeTexture(e["TEXTURE"+i]),e.bindTexture(e.TEXTURE_2D,r.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n instanceof ImageData?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,n.width,n.height,0,e.UNSIGNED_BYTE,new Uint8Array(n.data)):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n),e.uniform1i(r.location,i++);else if(Array.isArray(n))switch(n.length){case 2:return void e.uniform2f(r.location,n[0],n[1]);case 3:return void e.uniform3f(r.location,n[0],n[1],n[2]);case 4:return void e.uniform4f(r.location,n[0],n[1],n[2],n[3]);default:return}else"number"==typeof n&&e.uniform1f(r.location,n)}))}}const OD=FD,ND={PROJECTION_MATRIX:"u_projectionMatrix",SCREEN_TO_WORLD_MATRIX:"u_screenToWorldMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution",ROTATION:"u_rotation",VIEWPORT_SIZE_PX:"u_viewportSizePx",PIXEL_RATIO:"u_pixelRatio",HIT_DETECTION:"u_hitDetection"},GD={UNSIGNED_BYTE:yD,UNSIGNED_SHORT:vD,UNSIGNED_INT:_D,FLOAT:xD},jD={};function UD(t){return"shared/"+t}let qD=0;function VD(){const t="unique/"+qD;return qD+=1,t}function HD(t){let e=jD[t];if(!e){const n=document.createElement("canvas");n.width=1,n.height=1,n.style.position="absolute",n.style.left="0";const i=wD(n);e={users:0,context:i},jD[t]=e}return e.users+=1,e.context}function YD(t){const e=jD[t];if(!e||(e.users-=1,e.users>0))return;const n=e.context,i=n.getExtension("WEBGL_lose_context");i&&i.loseContext();const r=n.canvas;r.width=1,r.height=1,delete jD[t]}class WD extends w{constructor(t){super(),t=t||{},this.boundHandleWebGLContextLost_=this.handleWebGLContextLost.bind(this),this.boundHandleWebGLContextRestored_=this.handleWebGLContextRestored.bind(this),this.canvasCacheKey_=t.canvasCacheKey?UD(t.canvasCacheKey):VD(),this.gl_=HD(this.canvasCacheKey_),this.bufferCache_={},this.extensionCache_={},this.currentProgram_=null,this.needsToBeRecreated_=!1;const e=this.gl_.canvas;e.addEventListener(PD.LOST,this.boundHandleWebGLContextLost_),e.addEventListener(PD.RESTORED,this.boundHandleWebGLContextRestored_),this.offsetRotateMatrix_=ut(),this.offsetScaleMatrix_=ut(),this.tmpMat4_=Nb(),this.uniformLocationsByProgram_={},this.attribLocationsByProgram_={},this.uniforms_=[],t.uniforms&&this.setUniforms(t.uniforms),this.postProcessPasses_=t.postProcesses?t.postProcesses.map(t=>new OD({webGlContext:this.gl_,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})):[new OD({webGlContext:this.gl_})],this.shaderCompileErrors_=null,this.startTime_=Date.now()}setUniforms(t){this.uniforms_=[],this.addUniforms(t)}addUniforms(t){for(const e in t)this.uniforms_.push({name:e,value:t[e]})}canvasCacheKeyMatches(t){return this.canvasCacheKey_===UD(t)}getExtension(t){if(t in this.extensionCache_)return this.extensionCache_[t];const e=this.gl_.getExtension(t);return this.extensionCache_[t]=e,e}bindBuffer(t){const e=this.gl_,n=X(t);let i=this.bufferCache_[n];if(!i){const r=e.createBuffer();i={buffer:t,webGlBuffer:r},this.bufferCache_[n]=i}e.bindBuffer(t.getType(),i.webGlBuffer)}flushBufferData(t){const e=this.gl_;this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())}deleteBuffer(t){const e=X(t);delete this.bufferCache_[e]}disposeInternal(){const t=this.gl_.canvas;t.removeEventListener(PD.LOST,this.boundHandleWebGLContextLost_),t.removeEventListener(PD.RESTORED,this.boundHandleWebGLContextRestored_),YD(this.canvasCacheKey_),delete this.gl_}prepareDraw(t,e,n){const i=this.gl_,r=this.getCanvas(),o=t.size,s=t.pixelRatio;(r.width!==o[0]*s||r.height!==o[1]*s)&&(r.width=o[0]*s,r.height=o[1]*s,r.style.width=o[0]+"px",r.style.height=o[1]+"px");for(let a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(t);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.depthRange(0,1),i.clearDepth(1),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,e?i.ZERO:i.ONE_MINUS_SRC_ALPHA),n?(i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL)):i.disable(i.DEPTH_TEST)}bindFrameBuffer(t,e){const n=this.getGL();n.bindFramebuffer(n.FRAMEBUFFER,t),e&&n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0)}bindInitialFrameBuffer(){const t=this.getGL(),e=this.postProcessPasses_[0].getFrameBuffer();t.bindFramebuffer(t.FRAMEBUFFER,e);const n=this.postProcessPasses_[0].getRenderTargetTexture();t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0)}bindTexture(t,e,n){const i=this.gl_;i.activeTexture(i.TEXTURE0+e),i.bindTexture(i.TEXTURE_2D,t),i.uniform1i(this.getUniformLocation(n),e)}bindAttribute(t,e,n){const i=this.getGL();this.bindBuffer(t);const r=this.getAttributeLocation(e);i.enableVertexAttribArray(r),i.vertexAttribPointer(r,n,i.FLOAT,!1,0,0)}prepareDrawToRenderTarget(t,e,n,i){const r=this.gl_,o=e.getSize();r.bindFramebuffer(r.FRAMEBUFFER,e.getFramebuffer()),r.bindRenderbuffer(r.RENDERBUFFER,e.getDepthbuffer()),r.viewport(0,0,o[0],o[1]),r.bindTexture(r.TEXTURE_2D,e.getTexture()),r.clearColor(0,0,0,0),r.depthRange(0,1),r.clearDepth(1),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,n?r.ZERO:r.ONE_MINUS_SRC_ALPHA),i?(r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL)):r.disable(r.DEPTH_TEST)}drawElements(t,e){const n=this.gl_;this.getExtension("OES_element_index_uint");const i=n.UNSIGNED_INT,r=4,o=e-t,s=t*r;n.drawElements(n.TRIANGLES,o,i,s)}finalizeDraw(t,e,n){for(let i=0,r=this.postProcessPasses_.length;i{if(n="function"==typeof r.value?r.value(t):r.value,n instanceof HTMLCanvasElement||n instanceof HTMLImageElement||n instanceof ImageData||n instanceof WebGLTexture){n instanceof WebGLTexture&&!r.texture?(r.prevValue=void 0,r.texture=n):r.texture||(r.prevValue=void 0,r.texture=e.createTexture()),this.bindTexture(r.texture,i,r.name),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);const t=!(n instanceof HTMLImageElement)||n.complete;!(n instanceof WebGLTexture)&&t&&r.prevValue!==n&&(r.prevValue=n,e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n)),i++}else if(Array.isArray(n)&&6===n.length)this.setUniformMatrixValue(r.name,Gb(this.tmpMat4_,n));else if(Array.isArray(n)&&n.length<=4)switch(n.length){case 2:return void e.uniform2f(this.getUniformLocation(r.name),n[0],n[1]);case 3:return void e.uniform3f(this.getUniformLocation(r.name),n[0],n[1],n[2]);case 4:return void e.uniform4f(this.getUniformLocation(r.name),n[0],n[1],n[2],n[3]);default:return}else"number"==typeof n&&e.uniform1f(this.getUniformLocation(r.name),n)})}useProgram(t,e){this.gl_.useProgram(t),this.currentProgram_=t,e&&(this.applyFrameState(e),this.applyUniforms(e))}compileShader(t,e){const n=this.gl_,i=n.createShader(e);return n.shaderSource(i,t),n.compileShader(i),i}getProgram(t,e){const n=this.gl_,i=this.compileShader(t,n.FRAGMENT_SHADER),r=this.compileShader(e,n.VERTEX_SHADER),o=n.createProgram();if(n.attachShader(o,i),n.attachShader(o,r),n.linkProgram(o),!n.getShaderParameter(i,n.COMPILE_STATUS)){const t="Fragment shader compilation failed: "+n.getShaderInfoLog(i);throw new Error(t)}if(n.deleteShader(i),!n.getShaderParameter(r,n.COMPILE_STATUS)){const t="Vertex shader compilation failed: "+n.getShaderInfoLog(r);throw new Error(t)}if(n.deleteShader(r),!n.getProgramParameter(o,n.LINK_STATUS)){const t="GL program linking failed: "+n.getProgramInfoLog(o);throw new Error(t)}return o}getUniformLocation(t){const e=X(this.currentProgram_);return void 0===this.uniformLocationsByProgram_[e]&&(this.uniformLocationsByProgram_[e]={}),void 0===this.uniformLocationsByProgram_[e][t]&&(this.uniformLocationsByProgram_[e][t]=this.gl_.getUniformLocation(this.currentProgram_,t)),this.uniformLocationsByProgram_[e][t]}getAttributeLocation(t){const e=X(this.currentProgram_);return void 0===this.attribLocationsByProgram_[e]&&(this.attribLocationsByProgram_[e]={}),void 0===this.attribLocationsByProgram_[e][t]&&(this.attribLocationsByProgram_[e][t]=this.gl_.getAttribLocation(this.currentProgram_,t)),this.attribLocationsByProgram_[e][t]}makeProjectionTransform(t,e){const n=t.size,i=t.viewState.rotation,r=t.viewState.resolution,o=t.viewState.center;return vt(e,0,0,2/(r*n[0]),2/(r*n[1]),-i,-o[0],-o[1]),e}setUniformFloatValue(t,e){this.gl_.uniform1f(this.getUniformLocation(t),e)}setUniformFloatVec2(t,e){this.gl_.uniform2fv(this.getUniformLocation(t),e)}setUniformFloatVec4(t,e){this.gl_.uniform4fv(this.getUniformLocation(t),e)}setUniformMatrixValue(t,e){this.gl_.uniformMatrix4fv(this.getUniformLocation(t),!1,e)}enableAttributeArray_(t,e,n,i,r){const o=this.getAttributeLocation(t);o<0||(this.gl_.enableVertexAttribArray(o),this.gl_.vertexAttribPointer(o,e,n,!1,i,r))}enableAttributes(t){const e=XD(t);let n=0;for(let i=0;i{this.clearCache(),this.removeHelper()},t.addChangeListener(Vs.MAP,this.onMapChanged_),this.dispatchPreComposeEvent=this.dispatchPreComposeEvent.bind(this),this.dispatchPostComposeEvent=this.dispatchPostComposeEvent.bind(this)}dispatchPreComposeEvent(t,e){const n=this.getLayer();if(n.hasListener(Lr.PRECOMPOSE)){const i=new ou(Lr.PRECOMPOSE,void 0,e,t);n.dispatchEvent(i)}}dispatchPostComposeEvent(t,e){const n=this.getLayer();if(n.hasListener(Lr.POSTCOMPOSE)){const i=new ou(Lr.POSTCOMPOSE,void 0,e,t);n.dispatchEvent(i)}}reset(t){this.uniforms_=t.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)}removeHelper(){this.helper&&(this.helper.dispose(),delete this.helper)}prepareFrame(t){if(this.getLayer().getRenderSource()){let e,n=!0,i=-1;for(let o=0,s=t.layerStatesArray.length;o=f;--A){const n=l.getTileRangeForExtentAndZ(e,A,this.tempTileRange_),r=l.getResolution(A);for(let e=n.minX;e<=n.maxX;++e)for(let s=n.minY;s<=n.maxY;++s){const n=Md(A,e,s,this.tempTileCoord_),d=oR(a,n);let f,p;if(g.containsKey(d)&&(f=g.get(d),p=f.tile),(!f||f.tile.key!==a.getKey())&&(p=a.getTile(A,e,s,t.pixelRatio,o.projection),!p)||nR(i,p))continue;f?f.setTile(p):(f=this.createTileRepresentation({tile:p,grid:l,helper:this.helper,gutter:h}),g.set(d,f)),iR(i,f,A);const m=p.getKey();c[m]=!0,p.getState()===Qc.IDLE&&(t.tileQueue.isKeyQueued(m)||t.tileQueue.enqueue([p,u,l.getTileCoordCenter(n),r]))}}}beforeTilesRender(t,e){this.helper.prepareDraw(this.frameState,!e,!0)}beforeTilesMaskRender(t){return!1}renderTile(t,e,n,i,r,o,s,a,l,h,u){}renderTileMask(t,e,n,i){}drawTile_(t,e,n,i,r,o,s){if(!e.ready)return;const a=e.tile.tileCoord,l=Dd(a),h=l in o?o[l]:1,u=s.getResolution(n),c=Yo(s.getTileSize(n),this.tempSize_),g=s.getOrigin(n),d=s.getTileCoordExtent(a),f=h<1?-1:tR(n);h<1&&(t.animate=!0);const A=t.viewState,p=A.center[0],m=A.center[1],y=c[0]+2*i,v=c[1]+2*i,_=y/v,x=(p-g[0])/(c[0]*u),I=(g[1]-m)/(c[1]*u),w=A.resolution/u,C=a[1],E=a[2];ct(this.tileTransform_),mt(this.tileTransform_,2/(t.size[0]*w/y),-2/(t.size[1]*w/y)),pt(this.tileTransform_,A.rotation),mt(this.tileTransform_,1,1/_),yt(this.tileTransform_,(c[0]*(C-x)-i)/y,(c[1]*(E-I)-i)/v),this.renderTile(e,this.tileTransform_,t,r,u,c,g,d,f,i,h)}renderFrame(t){this.frameState=t,this.renderComplete=!0;const e=this.helper.getGL();this.preRender(e,t);const n=t.viewState,i=this.getLayer(),r=i.getRenderSource(),o=r.getTileGridForProjection(n.projection),s=r.getGutterForProjection(n.projection),a=rR(t,t.extent),l=o.getZForResolution(n.resolution,r.zDirection),h=eR(),u=i.getPreload();if(t.nextExtent){const e=o.getZForResolution(n.nextResolution,r.zDirection),i=rR(t,t.nextExtent);this.enqueueTiles(t,i,e,h,u)}this.enqueueTiles(t,a,l,h,0),u>0&&setTimeout(()=>{this.enqueueTiles(t,a,l-1,h,u-1)},0);const c={};let g=!1;const d=h.representationsByZ;if(l in d){const e=X(this),n=t.time;for(const t of d[l]){const i=t.tile;if((i instanceof eb||i instanceof sS)&&i.getState()===Qc.EMPTY)continue;const r=i.tileCoord;if(t.ready){const t=i.getAlpha(e,n);if(1===t){i.endTransition(e);continue}g=!0;const o=Dd(r);c[o]=t}if(this.renderComplete=!1,this.findAltTiles_(o,r,l+1,h))continue;const s=o.getMinZoom();for(let t=l-1;t>=s&&!this.findAltTiles_(o,r,t,h);--t);}}const f=Object.keys(d).map(Number).sort(b);if(this.beforeTilesMaskRender(t))for(let m=0,y=f.length;mt.dispose()),t.clear()}afterHelperCreated(){super.afterHelperCreated(),this.tileRepresentationCache.forEach(t=>t.setHelper(this.helper))}disposeInternal(){super.disposeInternal(),delete this.frameState}}const aR=sR,lR=d(g({},$D),{TILE_TEXTURE_ARRAY:"u_tileTextures",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY"}),hR={TEXTURE_COORD:"a_textureCoord"},uR=[{name:hR.TEXTURE_COORD,size:2,type:GD.FLOAT}];class cR extends aR{constructor(t,e){super(t,e),this.program_,this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.indices_=new SD(fD,pD),this.indices_.fromArray([0,1,3,1,2,3]),this.paletteTextures_=e.paletteTextures||[]}reset(t){if(super.reset(t),this.helper){const t=this.helper.getGL();for(const e of this.paletteTextures_)e.delete(t)}if(this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_);const t=this.helper.getGL();for(const e of this.paletteTextures_)e.getTexture(t)}}afterHelperCreated(){super.afterHelperCreated();const t=this.helper.getGL();for(const e of this.paletteTextures_)e.getTexture(t);this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)}removeHelper(){if(this.helper){const t=this.helper.getGL();for(const e of this.paletteTextures_)e.delete(t)}super.removeHelper()}createTileRepresentation(t){return new LD(t)}beforeTilesRender(t,e){super.beforeTilesRender(t,e),this.helper.useProgram(this.program_,t)}renderTile(t,e,n,i,r,o,s,a,l,h,u){const c=this.helper.getGL();this.helper.bindBuffer(t.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(uR);let g=0;for(;g0&&(v=a,$t(v,i,v)),this.helper.setUniformFloatVec4(lR.RENDER_EXTENT,v),this.helper.setUniformFloatValue(lR.RESOLUTION,d.resolution),this.helper.setUniformFloatValue(lR.ZOOM,d.zoom),this.helper.setUniformFloatValue(lR.TEXTURE_PIXEL_WIDTH,f),this.helper.setUniformFloatValue(lR.TEXTURE_PIXEL_HEIGHT,A),this.helper.setUniformFloatValue(lR.TEXTURE_RESOLUTION,r),this.helper.setUniformFloatValue(lR.TEXTURE_ORIGIN_X,s[0]+m*o[0]*r-h*r),this.helper.setUniformFloatValue(lR.TEXTURE_ORIGIN_Y,s[1]-y*o[1]*r+h*r),this.helper.drawElements(0,this.indices_.getSize())}getData(t){if(!this.helper.getGL())return null;const e=this.frameState;if(!e)return null;const n=this.getLayer(),i=At(e.pixelToCoordinateTransform,t.slice()),r=e.viewState,o=n.getExtent();if(o&&!Tt(Ii(o,r.projection),i))return null;const s=n.getSources(Et([i]),r.resolution);let a,l,h;for(a=s.length-1;a>=0;--a)if(l=s[a],"ready"===l.getState()){if(h=l.getTileGridForProjection(r.projection),l.getWrapX())break;const t=h.getExtent();if(!t||Tt(t,i))break}if(a<0)return null;const u=this.tileRepresentationCache;for(let c=h.getZForResolution(r.resolution);c>=h.getMinZoom();--c){const t=h.getTileCoordForCoordAndZ(i,c),e=oR(l,t);if(!u.containsKey(e))continue;const n=u.get(e),r=n.tile;if((r instanceof eb||r instanceof sS)&&r.getState()===Qc.EMPTY)return null;if(!n.loaded)continue;const o=h.getOrigin(c),s=Yo(h.getTileSize(c)),a=h.getResolution(c),g=(i[0]-o[0])/a-t[1]*s[0],d=(o[1]-i[1])/a-t[2]*s[1];return n.getPixelData(g,d)}return null}disposeInternal(){const t=this.helper;if(t){const e=t.getGL();for(const t of this.paletteTextures_)t.delete(e);this.paletteTextures_.length=0,e.deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)}super.disposeInternal(),delete this.indices_}}const gR=cR;class dR{constructor(t,e){this.name=t,this.data=e,this.texture_=null}getTexture(t){if(!this.texture_){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.data.length/4,1,0,t.RGBA,t.UNSIGNED_BYTE,this.data),this.texture_=e}return this.texture_}delete(t){this.texture_&&t.deleteTexture(this.texture_),this.texture_=null}}const fR=dR;function AR(t,e){return`operator_${t}_${Object.keys(e.functions).length}`}function pR(t){const e=t.toString();return e.includes(".")?e:e+".0"}function mR(t){if(t.length<2||t.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return`vec${t.length}(${t.map(pR).join(", ")})`}function yR(t){const e=to(t),n=e.length>3?e[3]:1;return mR([e[0]/255,e[1]/255,e[2]/255,n])}function vR(t){const e=Yo(t);return mR(e)}const _R={};let xR=0;function IR(t){return t in _R||(_R[t]=xR++),_R[t]}function wR(t){return pR(IR(t))}function CR(t){return"u_var_"+t}function ER(){return{inFragmentShader:!1,variables:{},properties:{},functions:{},bandCount:0,featureId:!1,geometryType:!1}}const bR="getBandValue",SR="u_paletteTextures",BR="featureId",MR="geometryType";function TR(t,e,n,i){const r=gl(t,e,n);return kR(r,e,i)}function DR(t){return(e,n,i)=>{const r=n.args.length,o=new Array(r);for(let t=0;t{const n=e.args[0].value;return n in t.properties||(t.properties[n]={name:n,type:e.type}),(t.inFragmentShader?"v_prop_":"a_prop_")+n},[dl.Id]:t=>(t.featureId=!0,(t.inFragmentShader?"v_":"a_")+BR),[dl.GeometryType]:t=>(t.geometryType=!0,(t.inFragmentShader?"v_":"a_")+MR),[dl.LineMetric]:()=>"currentLineMetric",[dl.Var]:(t,e)=>{const n=e.args[0].value;return n in t.variables||(t.variables[n]={name:n,type:e.type}),CR(n)},[dl.Resolution]:()=>"u_resolution",[dl.Zoom]:()=>"u_zoom",[dl.Time]:()=>"u_time",[dl.Any]:DR(t=>`(${t.join(" || ")})`),[dl.All]:DR(t=>`(${t.join(" && ")})`),[dl.Not]:DR(([t])=>`(!${t})`),[dl.Equal]:DR(([t,e])=>`(${t} == ${e})`),[dl.NotEqual]:DR(([t,e])=>`(${t} != ${e})`),[dl.GreaterThan]:DR(([t,e])=>`(${t} > ${e})`),[dl.GreaterThanOrEqualTo]:DR(([t,e])=>`(${t} >= ${e})`),[dl.LessThan]:DR(([t,e])=>`(${t} < ${e})`),[dl.LessThanOrEqualTo]:DR(([t,e])=>`(${t} <= ${e})`),[dl.Multiply]:DR(t=>`(${t.join(" * ")})`),[dl.Divide]:DR(([t,e])=>`(${t} / ${e})`),[dl.Add]:DR(t=>`(${t.join(" + ")})`),[dl.Subtract]:DR(([t,e])=>`(${t} - ${e})`),[dl.Clamp]:DR(([t,e,n])=>`clamp(${t}, ${e}, ${n})`),[dl.Mod]:DR(([t,e])=>`mod(${t}, ${e})`),[dl.Pow]:DR(([t,e])=>`pow(${t}, ${e})`),[dl.Abs]:DR(([t])=>`abs(${t})`),[dl.Floor]:DR(([t])=>`floor(${t})`),[dl.Ceil]:DR(([t])=>`ceil(${t})`),[dl.Round]:DR(([t])=>`floor(${t} + 0.5)`),[dl.Sin]:DR(([t])=>`sin(${t})`),[dl.Cos]:DR(([t])=>`cos(${t})`),[dl.Atan]:DR(([t,e])=>void 0!==e?`atan(${t}, ${e})`:`atan(${t})`),[dl.Sqrt]:DR(([t])=>`sqrt(${t})`),[dl.Match]:DR(t=>{const e=t[0],n=t[t.length-1];let i=null;for(let r=t.length-3;r>=1;r-=2){const o=t[r],s=t[r+1];i=`(${e} == ${o} ? ${s} : ${i||n})`}return i}),[dl.Between]:DR(([t,e,n])=>`(${t} >= ${e} && ${t} <= ${n})`),[dl.Interpolate]:DR(([t,e,...n])=>{let i="";for(let r=0;r{const e=t[t.length-1];let n=null;for(let i=t.length-3;i>=0;i-=2){const r=t[i],o=t[i+1];n=`(${r} ? ${o} : ${n||e})`}return n}),[dl.In]:DR(([t,...e],n)=>{const i=AR("in",n),r=[];for(let o=0;o`vec${t.length}(${t.join(", ")})`),[dl.Color]:DR(t=>{if(1===t.length)return`vec4(vec3(${t[0]} / 255.0), 1.0)`;if(2===t.length)return`vec4(vec3(${t[0]} / 255.0), ${t[1]})`;const e=t.slice(0,3).map(t=>t+" / 255.0");if(3===t.length)return`vec4(${e.join(", ")}, 1.0)`;const n=t[3];return`vec4(${e.join(", ")}, ${n})`}),[dl.Band]:DR(([t,e,n],i)=>{if(!(bR in i.functions)){let t="";const e=i.bandCount||1;for(let n=0;n{const[n,...i]=e.args,r=i.length,o=new Uint8Array(4*r);for(let h=0;h0)return pR(t.value);if((t.type&Xa)>0)return t.value.toString();if((t.type&Ka)>0)return wR(t.value.toString());if((t.type&Ja)>0)return yR(t.value);if((t.type&$a)>0)return mR(t.value);if((t.type&tl)>0)return vR(t.value);throw new Error(`Unexpected expression ${t.value} (expected type ${sl(e)})`)}const LR=.985;function PR(t,e){e=e||[];const n=256,i=n-1;return e[0]=Math.floor(t/n/n/n)/i,e[1]=Math.floor(t/n/n)%n/i,e[2]=Math.floor(t/n)%n/i,e[3]=t%n/i,e}function QR(t){let e=0;const n=256,i=n-1;return e+=Math.round(t[0]*n*n*n*i),e+=Math.round(t[1]*n*n*i),e+=Math.round(t[2]*n*i),e+=Math.round(t[3]*i),e}function zR(){return{"fill-color":"rgba(255,255,255,0.4)","stroke-color":"#3399CC","stroke-width":1.25,"circle-radius":5,"circle-fill-color":"rgba(255,255,255,0.4)","circle-stroke-width":1.25,"circle-stroke-color":"#3399CC"}}const FR="#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_screenToWorldMatrix;\nuniform vec2 u_viewportSizePx;\nuniform float u_pixelRatio;\nuniform float u_globalAlpha;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\nuniform float u_rotation;\nuniform vec4 u_renderExtent;\nuniform vec2 u_patternOrigin;\nuniform float u_depth;\nuniform mediump int u_hitDetection;\n\nconst float PI = 3.141592653589793238;\nconst float TWO_PI = 2.0 * PI;\nfloat currentLineMetric = 0.; // an actual value will be used in the stroke shaders\n",OR=zR();class NR{constructor(){this.uniforms_=[],this.attributes_=[],this.varyings_=[],this.hasSymbol_=!1,this.symbolSizeExpression_=`vec2(${pR(OR["circle-radius"])} + ${pR(.5*OR["circle-stroke-width"])})`,this.symbolRotationExpression_="0.0",this.symbolOffsetExpression_="vec2(0.0)",this.symbolColorExpression_=yR(OR["circle-fill-color"]),this.texCoordExpression_="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression_="false",this.symbolRotateWithView_=!1,this.hasStroke_=!1,this.strokeWidthExpression_=pR(OR["stroke-width"]),this.strokeColorExpression_=yR(OR["stroke-color"]),this.strokeOffsetExpression_="0.",this.strokeCapExpression_=wR("round"),this.strokeJoinExpression_=wR("round"),this.strokeMiterLimitExpression_="10.",this.strokeDistanceFieldExpression_="-1000.",this.hasFill_=!1,this.fillColorExpression_=yR(OR["fill-color"]),this.vertexShaderFunctions_=[],this.fragmentShaderFunctions_=[]}addUniform(t){return this.uniforms_.push(t),this}addAttribute(t){return this.attributes_.push(t),this}addVarying(t,e,n){return this.varyings_.push({name:t,type:e,expression:n}),this}setSymbolSizeExpression(t){return this.hasSymbol_=!0,this.symbolSizeExpression_=t,this}getSymbolSizeExpression(){return this.symbolSizeExpression_}setSymbolRotationExpression(t){return this.symbolRotationExpression_=t,this}setSymbolOffsetExpression(t){return this.symbolOffsetExpression_=t,this}getSymbolOffsetExpression(){return this.symbolOffsetExpression_}setSymbolColorExpression(t){return this.hasSymbol_=!0,this.symbolColorExpression_=t,this}getSymbolColorExpression(){return this.symbolColorExpression_}setTextureCoordinateExpression(t){return this.texCoordExpression_=t,this}setFragmentDiscardExpression(t){return this.discardExpression_=t,this}getFragmentDiscardExpression(){return this.discardExpression_}setSymbolRotateWithView(t){return this.symbolRotateWithView_=t,this}setStrokeWidthExpression(t){return this.hasStroke_=!0,this.strokeWidthExpression_=t,this}setStrokeColorExpression(t){return this.hasStroke_=!0,this.strokeColorExpression_=t,this}getStrokeColorExpression(){return this.strokeColorExpression_}setStrokeOffsetExpression(t){return this.strokeOffsetExpression_=t,this}setStrokeCapExpression(t){return this.strokeCapExpression_=t,this}setStrokeJoinExpression(t){return this.strokeJoinExpression_=t,this}setStrokeMiterLimitExpression(t){return this.strokeMiterLimitExpression_=t,this}setStrokeDistanceFieldExpression(t){return this.strokeDistanceFieldExpression_=t,this}setFillColorExpression(t){return this.hasFill_=!0,this.fillColorExpression_=t,this}getFillColorExpression(){return this.fillColorExpression_}addVertexShaderFunction(t){this.vertexShaderFunctions_.includes(t)||this.vertexShaderFunctions_.push(t)}addFragmentShaderFunction(t){this.fragmentShaderFunctions_.includes(t)||this.fragmentShaderFunctions_.push(t)}getSymbolVertexShader(){return this.hasSymbol_?`${FR}\n${this.uniforms_.map((function(t){return"uniform "+t+";"})).join("\n")}\nattribute vec2 a_position;\nattribute float a_index;\nattribute vec4 a_hitColor;\n${this.attributes_.map((function(t){return"attribute "+t+";"})).join("\n")}\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\nvarying vec4 v_hitColor;\nvarying vec2 v_centerPx;\nvarying float v_angle;\nvarying vec2 v_quadSizePx;\n${this.varyings_.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n")}\n${this.vertexShaderFunctions_.join("\n")}\nvec2 pxToScreen(vec2 coordPx) {\n vec2 scaled = coordPx / u_viewportSizePx / 0.5;\n return scaled;\n}\n\nvec2 screenToPx(vec2 coordScreen) {\n return (coordScreen * 0.5 + 0.5) * u_viewportSizePx;\n}\n\nvoid main(void) {\n v_quadSizePx = ${this.symbolSizeExpression_};\n vec2 halfSizePx = v_quadSizePx * 0.5;\n vec2 centerOffsetPx = ${this.symbolOffsetExpression_};\n vec2 offsetPx = centerOffsetPx;\n if (a_index == 0.0) {\n offsetPx -= halfSizePx;\n } else if (a_index == 1.0) {\n offsetPx += halfSizePx * vec2(1., -1.);\n } else if (a_index == 2.0) {\n offsetPx += halfSizePx;\n } else {\n offsetPx += halfSizePx * vec2(-1., 1.);\n }\n float angle = ${this.symbolRotationExpression_};\n ${this.symbolRotateWithView_?"angle += u_rotation;":""}\n float c = cos(-angle);\n float s = sin(-angle);\n offsetPx = vec2(c * offsetPx.x - s * offsetPx.y, s * offsetPx.x + c * offsetPx.y);\n vec4 center = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n gl_Position = center + vec4(pxToScreen(offsetPx), u_depth, 0.);\n vec4 texCoord = ${this.texCoordExpression_};\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_angle = angle;\n c = cos(-v_angle);\n s = sin(-v_angle);\n centerOffsetPx = vec2(c * centerOffsetPx.x - s * centerOffsetPx.y, s * centerOffsetPx.x + c * centerOffsetPx.y); \n v_centerPx = screenToPx(center.xy) + centerOffsetPx;\n${this.varyings_.map((function(t){return" "+t.name+" = "+t.expression+";"})).join("\n")}\n}`:null}getSymbolFragmentShader(){return this.hasSymbol_?`${FR}\n${this.uniforms_.map((function(t){return"uniform "+t+";"})).join("\n")}\nvarying vec2 v_texCoord;\nvarying vec4 v_hitColor;\nvarying vec2 v_centerPx;\nvarying float v_angle;\nvarying vec2 v_quadSizePx;\n${this.varyings_.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n")}\n${this.fragmentShaderFunctions_.join("\n")}\n\nvoid main(void) {\n if (${this.discardExpression_}) { discard; }\n vec2 coordsPx = gl_FragCoord.xy / u_pixelRatio - v_centerPx; // relative to center\n float c = cos(v_angle);\n float s = sin(v_angle);\n coordsPx = vec2(c * coordsPx.x - s * coordsPx.y, s * coordsPx.x + c * coordsPx.y);\n gl_FragColor = ${this.symbolColorExpression_};\n gl_FragColor.rgb *= gl_FragColor.a;\n if (u_hitDetection > 0) {\n if (gl_FragColor.a < 0.05) { discard; };\n gl_FragColor = v_hitColor;\n }\n}`:null}getStrokeVertexShader(){return this.hasStroke_?`${FR}\n${this.uniforms_.map((function(t){return"uniform "+t+";"})).join("\n")}\nattribute vec2 a_segmentStart;\nattribute vec2 a_segmentEnd;\nattribute float a_measureStart;\nattribute float a_measureEnd;\nattribute float a_parameters;\nattribute float a_distance;\nattribute vec2 a_joinAngles;\nattribute vec4 a_hitColor;\n${this.attributes_.map((function(t){return"attribute "+t+";"})).join("\n")}\nvarying vec2 v_segmentStart;\nvarying vec2 v_segmentEnd;\nvarying float v_angleStart;\nvarying float v_angleEnd;\nvarying float v_width;\nvarying vec4 v_hitColor;\nvarying float v_distanceOffsetPx;\nvarying float v_measureStart;\nvarying float v_measureEnd;\n${this.varyings_.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n")}\n${this.vertexShaderFunctions_.join("\n")}\nvec2 worldToPx(vec2 worldPos) {\n vec4 screenPos = u_projectionMatrix * vec4(worldPos, 0.0, 1.0);\n return (0.5 * screenPos.xy + 0.5) * u_viewportSizePx;\n}\n\nvec4 pxToScreen(vec2 pxPos) {\n vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0;\n return vec4(screenPos, u_depth, 1.0);\n}\n\nbool isCap(float joinAngle) {\n return joinAngle < -0.1;\n}\n\nvec2 getJoinOffsetDirection(vec2 normalPx, float joinAngle) {\n float halfAngle = joinAngle / 2.0;\n float c = cos(halfAngle);\n float s = sin(halfAngle);\n vec2 angleBisectorNormal = vec2(s * normalPx.x + c * normalPx.y, -c * normalPx.x + s * normalPx.y);\n float length = 1.0 / s;\n return angleBisectorNormal * length;\n}\n\nvec2 getOffsetPoint(vec2 point, vec2 normal, float joinAngle, float offsetPx) {\n // if on a cap or the join angle is too high, offset the line along the segment normal\n if (cos(joinAngle) > 0.998 || isCap(joinAngle)) {\n return point - normal * offsetPx;\n }\n // offset is applied along the inverted normal (positive offset goes "right" relative to line direction)\n return point - getJoinOffsetDirection(normal, joinAngle) * offsetPx;\n}\n\nvoid main(void) {\n v_angleStart = a_joinAngles.x;\n v_angleEnd = a_joinAngles.y;\n float vertexNumber = floor(abs(a_parameters) / 10000. + 0.5);\n currentLineMetric = vertexNumber < 1.5 ? a_measureStart : a_measureEnd;\n // we're reading the fractional part while keeping the sign (so -4.12 gives -0.12, 3.45 gives 0.45)\n float angleTangentSum = fract(abs(a_parameters) / 10000.) * 10000. * sign(a_parameters);\n\n float lineWidth = ${this.strokeWidthExpression_};\n float lineOffsetPx = ${this.strokeOffsetExpression_};\n\n // compute segment start/end in px with offset\n vec2 segmentStartPx = worldToPx(a_segmentStart);\n vec2 segmentEndPx = worldToPx(a_segmentEnd);\n vec2 tangentPx = normalize(segmentEndPx - segmentStartPx);\n vec2 normalPx = vec2(-tangentPx.y, tangentPx.x);\n segmentStartPx = getOffsetPoint(segmentStartPx, normalPx, v_angleStart, lineOffsetPx),\n segmentEndPx = getOffsetPoint(segmentEndPx, normalPx, v_angleEnd, lineOffsetPx);\n \n // compute current vertex position\n float normalDir = vertexNumber < 0.5 || (vertexNumber > 1.5 && vertexNumber < 2.5) ? 1.0 : -1.0;\n float tangentDir = vertexNumber < 1.5 ? 1.0 : -1.0;\n float angle = vertexNumber < 1.5 ? v_angleStart : v_angleEnd;\n vec2 joinDirection;\n vec2 positionPx = vertexNumber < 1.5 ? segmentStartPx : segmentEndPx;\n // if angle is too high, do not make a proper join\n if (cos(angle) > ${LR} || isCap(angle)) {\n joinDirection = normalPx * normalDir - tangentPx * tangentDir;\n } else {\n joinDirection = getJoinOffsetDirection(normalPx * normalDir, angle);\n }\n positionPx = positionPx + joinDirection * (lineWidth * 0.5 + 1.); // adding 1 pixel for antialiasing\n gl_Position = pxToScreen(positionPx);\n\n v_segmentStart = segmentStartPx;\n v_segmentEnd = segmentEndPx;\n v_width = lineWidth;\n v_hitColor = a_hitColor;\n v_distanceOffsetPx = a_distance / u_resolution - (lineOffsetPx * angleTangentSum);\n v_measureStart = a_measureStart;\n v_measureEnd = a_measureEnd;\n${this.varyings_.map((function(t){return" "+t.name+" = "+t.expression+";"})).join("\n")}\n}`:null}getStrokeFragmentShader(){return this.hasStroke_?`${FR}\n${this.uniforms_.map((function(t){return"uniform "+t+";"})).join("\n")}\nvarying vec2 v_segmentStart;\nvarying vec2 v_segmentEnd;\nvarying float v_angleStart;\nvarying float v_angleEnd;\nvarying float v_width;\nvarying vec4 v_hitColor;\nvarying float v_distanceOffsetPx;\nvarying float v_measureStart;\nvarying float v_measureEnd;\n${this.varyings_.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n")}\n${this.fragmentShaderFunctions_.join("\n")}\n\nvec2 pxToWorld(vec2 pxPos) {\n vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0;\n return (u_screenToWorldMatrix * vec4(screenPos, 0.0, 1.0)).xy;\n}\n\nbool isCap(float joinAngle) {\n return joinAngle < -0.1;\n}\n\nfloat segmentDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n vec2 tangent = normalize(end - start);\n vec2 normal = vec2(-tangent.y, tangent.x);\n vec2 startToPoint = point - start;\n return abs(dot(startToPoint, normal)) - width * 0.5;\n}\n\nfloat buttCapDistanceField(vec2 point, vec2 start, vec2 end) {\n vec2 startToPoint = point - start;\n vec2 tangent = normalize(end - start);\n return dot(startToPoint, -tangent);\n}\n\nfloat squareCapDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n return buttCapDistanceField(point, start, end) - width * 0.5;\n}\n\nfloat roundCapDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n float onSegment = max(0., 1000. * dot(point - start, end - start)); // this is very high when inside the segment\n return length(point - start) - width * 0.5 - onSegment;\n}\n\nfloat roundJoinDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n return roundCapDistanceField(point, start, end, width);\n}\n\nfloat bevelJoinField(vec2 point, vec2 start, vec2 end, float width, float joinAngle) {\n vec2 startToPoint = point - start;\n vec2 tangent = normalize(end - start);\n float c = cos(joinAngle * 0.5);\n float s = sin(joinAngle * 0.5);\n float direction = -sign(sin(joinAngle));\n vec2 bisector = vec2(c * tangent.x - s * tangent.y, s * tangent.x + c * tangent.y);\n float radius = width * 0.5 * s;\n return dot(startToPoint, bisector * direction) - radius;\n}\n\nfloat miterJoinDistanceField(vec2 point, vec2 start, vec2 end, float width, float joinAngle) {\n if (cos(joinAngle) > ${LR}) { // avoid risking a division by zero\n return bevelJoinField(point, start, end, width, joinAngle);\n }\n float miterLength = 1. / sin(joinAngle * 0.5);\n float miterLimit = ${this.strokeMiterLimitExpression_};\n if (miterLength > miterLimit) {\n return bevelJoinField(point, start, end, width, joinAngle);\n }\n return -1000.;\n}\n\nfloat capDistanceField(vec2 point, vec2 start, vec2 end, float width, float capType) {\n if (capType == ${wR("butt")}) {\n return buttCapDistanceField(point, start, end);\n } else if (capType == ${wR("square")}) {\n return squareCapDistanceField(point, start, end, width);\n }\n return roundCapDistanceField(point, start, end, width);\n}\n\nfloat joinDistanceField(vec2 point, vec2 start, vec2 end, float width, float joinAngle, float joinType) {\n if (joinType == ${wR("bevel")}) {\n return bevelJoinField(point, start, end, width, joinAngle);\n } else if (joinType == ${wR("miter")}) {\n return miterJoinDistanceField(point, start, end, width, joinAngle);\n }\n return roundJoinDistanceField(point, start, end, width);\n}\n\nfloat computeSegmentPointDistance(vec2 point, vec2 start, vec2 end, float width, float joinAngle, float capType, float joinType) {\n if (isCap(joinAngle)) {\n return capDistanceField(point, start, end, width, capType);\n }\n return joinDistanceField(point, start, end, width, joinAngle, joinType);\n}\n\nvoid main(void) {\n vec2 currentPoint = gl_FragCoord.xy / u_pixelRatio;\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n vec2 worldPos = pxToWorld(currentPoint);\n if (\n abs(u_renderExtent[0] - u_renderExtent[2]) > 0.0 && (\n worldPos[0] < u_renderExtent[0] ||\n worldPos[1] < u_renderExtent[1] ||\n worldPos[0] > u_renderExtent[2] ||\n worldPos[1] > u_renderExtent[3]\n )\n ) {\n discard;\n }\n #endif\n\n float segmentLength = length(v_segmentEnd - v_segmentStart);\n vec2 segmentTangent = (v_segmentEnd - v_segmentStart) / segmentLength;\n vec2 segmentNormal = vec2(-segmentTangent.y, segmentTangent.x);\n vec2 startToPoint = currentPoint - v_segmentStart;\n float lengthToPoint = max(0., min(dot(segmentTangent, startToPoint), segmentLength));\n float currentLengthPx = lengthToPoint + v_distanceOffsetPx; \n float currentRadiusPx = abs(dot(segmentNormal, startToPoint));\n float currentRadiusRatio = dot(segmentNormal, startToPoint) * 2. / v_width;\n currentLineMetric = mix(v_measureStart, v_measureEnd, lengthToPoint / segmentLength);\n\n if (${this.discardExpression_}) { discard; }\n\n vec4 color = ${this.strokeColorExpression_};\n float capType = ${this.strokeCapExpression_};\n float joinType = ${this.strokeJoinExpression_};\n float segmentStartDistance = computeSegmentPointDistance(currentPoint, v_segmentStart, v_segmentEnd, v_width, v_angleStart, capType, joinType);\n float segmentEndDistance = computeSegmentPointDistance(currentPoint, v_segmentEnd, v_segmentStart, v_width, v_angleEnd, capType, joinType);\n float distance = max(\n segmentDistanceField(currentPoint, v_segmentStart, v_segmentEnd, v_width),\n max(segmentStartDistance, segmentEndDistance)\n );\n distance = max(distance, ${this.strokeDistanceFieldExpression_});\n color.a *= smoothstep(0.5, -0.5, distance);\n gl_FragColor = color;\n gl_FragColor.a *= u_globalAlpha;\n gl_FragColor.rgb *= gl_FragColor.a;\n if (u_hitDetection > 0) {\n if (gl_FragColor.a < 0.1) { discard; };\n gl_FragColor = v_hitColor;\n }\n}`:null}getFillVertexShader(){return this.hasFill_?`${FR}\n${this.uniforms_.map((function(t){return"uniform "+t+";"})).join("\n")}\nattribute vec2 a_position;\nattribute vec4 a_hitColor;\n${this.attributes_.map((function(t){return"attribute "+t+";"})).join("\n")}\nvarying vec4 v_hitColor;\n${this.varyings_.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n")}\n${this.vertexShaderFunctions_.join("\n")}\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, u_depth, 1.0);\n v_hitColor = a_hitColor;\n${this.varyings_.map((function(t){return" "+t.name+" = "+t.expression+";"})).join("\n")}\n}`:null}getFillFragmentShader(){return this.hasFill_?`${FR}\n${this.uniforms_.map((function(t){return"uniform "+t+";"})).join("\n")}\nvarying vec4 v_hitColor;\n${this.varyings_.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n")}\n${this.fragmentShaderFunctions_.join("\n")}\nvec2 pxToWorld(vec2 pxPos) {\n vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0;\n return (u_screenToWorldMatrix * vec4(screenPos, 0.0, 1.0)).xy;\n}\n\nvec2 worldToPx(vec2 worldPos) {\n vec4 screenPos = u_projectionMatrix * vec4(worldPos, 0.0, 1.0);\n return (0.5 * screenPos.xy + 0.5) * u_viewportSizePx;\n}\n\nvoid main(void) {\n vec2 pxPos = gl_FragCoord.xy / u_pixelRatio;\n vec2 pxOrigin = worldToPx(u_patternOrigin);\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n vec2 worldPos = pxToWorld(pxPos);\n if (\n abs(u_renderExtent[0] - u_renderExtent[2]) > 0.0 && (\n worldPos[0] < u_renderExtent[0] ||\n worldPos[1] < u_renderExtent[1] ||\n worldPos[0] > u_renderExtent[2] ||\n worldPos[1] > u_renderExtent[3]\n )\n ) {\n discard;\n }\n #endif\n if (${this.discardExpression_}) { discard; }\n gl_FragColor = ${this.fillColorExpression_};\n gl_FragColor.a *= u_globalAlpha;\n gl_FragColor.rgb *= gl_FragColor.a;\n if (u_hitDetection > 0) {\n if (gl_FragColor.a < 0.1) { discard; };\n gl_FragColor = v_hitColor;\n }\n}`:null}}function GR(t,e,n){const i=cl();return TR(e,n,i,t)}function jR(t){const e=to(t),n=256*e[0],i=e[1],r=256*e[2],o=Math.round(255*e[3]);return[n+i,r+o]}const UR="vec4 unpackColor(vec2 packedColor) {\n return vec4(\n fract(floor(packedColor[0] / 256.0) / 256.0),\n fract(packedColor[0] / 256.0),\n fract(floor(packedColor[1] / 256.0) / 256.0),\n fract(packedColor[1] / 256.0)\n );\n}";function qR(t){return t===Ja||t===tl?2:t===$a?4:1}function VR(t){const e=qR(t);return e>1?"vec"+e:"float"}function HR(t){return(JSON.stringify(t).split("").reduce((t,e)=>(t<<5)-t+e.charCodeAt(0),0)>>>0).toString()}function YR(t,e,n,i){if(i+"radius"in t&&"icon-"!==i){let r=GR(n,t[i+"radius"],Za);if(i+"radius2"in t){const e=GR(n,t[i+"radius2"],Za);r=`max(${r}, ${e})`}i+"stroke-width"in t&&(r=`(${r} + ${GR(n,t[i+"stroke-width"],Za)} * 0.5)`),e.setSymbolSizeExpression(`vec2(${r} * 2. + 0.5)`)}if(i+"scale"in t){const r=GR(n,t[i+"scale"],tl);e.setSymbolSizeExpression(`${e.getSymbolSizeExpression()} * ${r}`)}i+"displacement"in t&&e.setSymbolOffsetExpression(GR(n,t[i+"displacement"],$a)),i+"rotation"in t&&e.setSymbolRotationExpression(GR(n,t[i+"rotation"],Za)),i+"rotate-with-view"in t&&e.setSymbolRotateWithView(!!t[i+"rotate-with-view"])}function WR(t,e,n,i,r){let o="vec4(0.)";if(null!==e&&(o=e),null!==n&&null!==i){const e=`smoothstep(-${i} + 0.63, -${i} - 0.58, ${t})`;o=`mix(${n}, ${o}, ${e})`}const s=`(1.0 - smoothstep(-0.63, 0.58, ${t}))`;let a=`${o} * vec4(1.0, 1.0, 1.0, ${s})`;return null!==r&&(a=`${a} * vec4(1.0, 1.0, 1.0, ${r})`),a}function XR(t,e,n,i,r){const o=new Image;o.crossOrigin=void 0===t[i+"cross-origin"]?"anonymous":t[i+"cross-origin"],o.src=t[i+"src"],n[`u_texture${r}_size`]=()=>o.complete?[o.width,o.height]:[0,0],e.addUniform(`vec2 u_texture${r}_size`);const s=`u_texture${r}_size`;return n["u_texture"+r]=o,e.addUniform("sampler2D u_texture"+r),s}function ZR(t,e,n,i,r){let o=GR(n,t[e+"offset"],$a);if(e+"offset-origin"in t)switch(t[e+"offset-origin"]){case"top-right":o=`vec2(${i}.x, 0.) + ${r} * vec2(-1., 0.) + ${o} * vec2(-1., 1.)`;break;case"bottom-left":o=`vec2(0., ${i}.y) + ${r} * vec2(0., -1.) + ${o} * vec2(1., -1.)`;break;case"bottom-right":o=`${i} - ${r} - ${o}`;break}return o}function KR(t,e,n,i,r){r.functions.circleDistanceField="float circleDistanceField(vec2 point, float radius) {\n return length(point) - radius;\n}",YR(t,e,i,"circle-");let o=null;"circle-opacity"in t&&(o=GR(r,t["circle-opacity"],Za));let s="coordsPx";"circle-scale"in t&&(s="coordsPx / "+GR(r,t["circle-scale"],tl));let a=null;"circle-fill-color"in t&&(a=GR(r,t["circle-fill-color"],Ja));let l=null;"circle-stroke-color"in t&&(l=GR(r,t["circle-stroke-color"],Ja));let h=GR(r,t["circle-radius"],Za),u=null;"circle-stroke-width"in t&&(u=GR(r,t["circle-stroke-width"],Za),h=`(${h} + ${u} * 0.5)`);const c=`circleDistanceField(${s}, ${h})`,g=WR(c,a,l,u,o);e.setSymbolColorExpression(g)}function JR(t,e,n,i,r){r.functions.round="float round(float v) {\n return sign(v) * floor(abs(v) + 0.5);\n}",r.functions.starDistanceField="float starDistanceField(vec2 point, float numPoints, float radius, float radius2, float angle) {\n float startAngle = -PI * 0.5 + angle; // tip starts upwards and rotates clockwise with angle\n float c = cos(startAngle);\n float s = sin(startAngle);\n vec2 pointRotated = vec2(c * point.x - s * point.y, s * point.x + c * point.y);\n float alpha = TWO_PI / numPoints; // the angle of one sector\n float beta = atan(pointRotated.y, pointRotated.x);\n float gamma = round(beta / alpha) * alpha; // angle in sector\n c = cos(-gamma);\n s = sin(-gamma);\n vec2 inSector = vec2(c * pointRotated.x - s * pointRotated.y, abs(s * pointRotated.x + c * pointRotated.y));\n vec2 tipToPoint = inSector + vec2(-radius, 0.);\n vec2 edgeNormal = vec2(radius2 * sin(alpha * 0.5), -radius2 * cos(alpha * 0.5) + radius);\n return dot(normalize(edgeNormal), tipToPoint);\n}",r.functions.regularDistanceField="float regularDistanceField(vec2 point, float numPoints, float radius, float angle) {\n float startAngle = -PI * 0.5 + angle; // tip starts upwards and rotates clockwise with angle\n float c = cos(startAngle);\n float s = sin(startAngle);\n vec2 pointRotated = vec2(c * point.x - s * point.y, s * point.x + c * point.y);\n float alpha = TWO_PI / numPoints; // the angle of one sector\n float radiusIn = radius * cos(PI / numPoints);\n float beta = atan(pointRotated.y, pointRotated.x);\n float gamma = round((beta - alpha * 0.5) / alpha) * alpha + alpha * 0.5; // angle in sector from mid\n c = cos(-gamma);\n s = sin(-gamma);\n vec2 inSector = vec2(c * pointRotated.x - s * pointRotated.y, abs(s * pointRotated.x + c * pointRotated.y));\n return inSector.x - radiusIn;\n}",YR(t,e,i,"shape-");let o=null;"shape-opacity"in t&&(o=GR(r,t["shape-opacity"],Za));let s="coordsPx";"shape-scale"in t&&(s="coordsPx / "+GR(r,t["shape-scale"],tl));let a=null;"shape-fill-color"in t&&(a=GR(r,t["shape-fill-color"],Ja));let l=null;"shape-stroke-color"in t&&(l=GR(r,t["shape-stroke-color"],Ja));let h=null;"shape-stroke-width"in t&&(h=GR(r,t["shape-stroke-width"],Za));const u=GR(r,t["shape-points"],Za);let c="0.";"shape-angle"in t&&(c=GR(r,t["shape-angle"],Za));let g,d=GR(r,t["shape-radius"],Za);if(null!==h&&(d=`${d} + ${h} * 0.5`),"shape-radius2"in t){let e=GR(r,t["shape-radius2"],Za);null!==h&&(e=`${e} + ${h} * 0.5`),g=`starDistanceField(${s}, ${u}, ${d}, ${e}, ${c})`}else g=`regularDistanceField(${s}, ${u}, ${d}, ${c})`;const f=WR(g,a,l,h,o);e.setSymbolColorExpression(f)}function $R(t,e,n,i,r){let o="vec4(1.0)";"icon-color"in t&&(o=GR(r,t["icon-color"],Ja)),"icon-opacity"in t&&(o=`${o} * vec4(1.0, 1.0, 1.0, ${GR(r,t["icon-opacity"],Za)})`);const s=HR(t["icon-src"]),a=XR(t,e,n,"icon-",s);if(e.setSymbolColorExpression(`${o} * texture2D(u_texture${s}, v_texCoord)`).setSymbolSizeExpression(a),"icon-width"in t&&"icon-height"in t&&e.setSymbolSizeExpression(`vec2(${GR(i,t["icon-width"],Za)}, ${GR(i,t["icon-height"],Za)})`),"icon-offset"in t&&"icon-size"in t){const n=GR(i,t["icon-size"],$a),r=e.getSymbolSizeExpression();e.setSymbolSizeExpression(n);const o=ZR(t,"icon-",i,"v_quadSizePx",n);e.setTextureCoordinateExpression(`(vec4((${o}).xyxy) + vec4(0., 0., ${n})) / (${r}).xyxy`)}if(YR(t,e,i,"icon-"),"icon-anchor"in t){const n=GR(i,t["icon-anchor"],$a);let r,o="1.0";"icon-scale"in t&&(o=GR(i,t["icon-scale"],tl)),r="pixels"===t["icon-anchor-x-units"]&&"pixels"===t["icon-anchor-y-units"]?`${n} * ${o}`:"pixels"===t["icon-anchor-x-units"]?`${n} * vec2(vec2(${o}).x, v_quadSizePx.y)`:"pixels"===t["icon-anchor-y-units"]?`${n} * vec2(v_quadSizePx.x, vec2(${o}).x)`:n+" * v_quadSizePx";let s=`v_quadSizePx * vec2(0.5, -0.5) + ${r} * vec2(-1., 1.)`;if("icon-anchor-origin"in t)switch(t["icon-anchor-origin"]){case"top-right":s="v_quadSizePx * -0.5 + "+r;break;case"bottom-left":s="v_quadSizePx * 0.5 - "+r;break;case"bottom-right":s=`v_quadSizePx * vec2(-0.5, 0.5) + ${r} * vec2(1., -1.)`;break}e.setSymbolOffsetExpression(`${e.getSymbolOffsetExpression()} + ${s}`)}}function tk(t,e,n,i,r){if("stroke-color"in t&&e.setStrokeColorExpression(GR(r,t["stroke-color"],Ja)),"stroke-pattern-src"in t){const i=HR(t["stroke-pattern-src"]),o=XR(t,e,n,"stroke-pattern-",i);let s=o,a="vec2(0.)";"stroke-pattern-offset"in t&&"stroke-pattern-size"in t&&(s=GR(r,t["stroke-pattern-size"],$a),a=ZR(t,"stroke-pattern-",r,o,s));let l="0.";"stroke-pattern-spacing"in t&&(l=GR(r,t["stroke-pattern-spacing"],Za)),r.functions.sampleStrokePattern="vec4 sampleStrokePattern(sampler2D texture, vec2 textureSize, vec2 textureOffset, vec2 sampleSize, float spacingPx, float currentLengthPx, float currentRadiusRatio, float lineWidth) {\n float currentLengthScaled = currentLengthPx * sampleSize.y / lineWidth;\n float spacingScaled = spacingPx * sampleSize.y / lineWidth;\n float uCoordPx = mod(currentLengthScaled, (sampleSize.x + spacingScaled));\n // make sure that we're not sampling too close to the borders to avoid interpolation with outside pixels\n uCoordPx = clamp(uCoordPx, 0.5, sampleSize.x - 0.5);\n float vCoordPx = (-currentRadiusRatio * 0.5 + 0.5) * sampleSize.y;\n vec2 texCoord = (vec2(uCoordPx, vCoordPx) + textureOffset) / textureSize;\n return texture2D(texture, texCoord);\n}";const h="u_texture"+i;let u="1.";"stroke-color"in t&&(u=e.getStrokeColorExpression()),e.setStrokeColorExpression(`${u} * sampleStrokePattern(${h}, ${o}, ${a}, ${s}, ${l}, currentLengthPx, currentRadiusRatio, v_width)`)}if("stroke-width"in t&&e.setStrokeWidthExpression(GR(i,t["stroke-width"],Za)),"stroke-offset"in t&&e.setStrokeOffsetExpression(GR(i,t["stroke-offset"],Za)),"stroke-line-cap"in t&&e.setStrokeCapExpression(GR(i,t["stroke-line-cap"],Ka)),"stroke-line-join"in t&&e.setStrokeJoinExpression(GR(i,t["stroke-line-join"],Ka)),"stroke-miter-limit"in t&&e.setStrokeMiterLimitExpression(GR(i,t["stroke-miter-limit"],Za)),"stroke-line-dash"in t){r.functions.getSingleDashDistance=`float getSingleDashDistance(float distance, float radius, float dashOffset, float dashLength, float dashLengthTotal, float capType) {\n float localDistance = mod(distance, dashLengthTotal);\n float distanceSegment = abs(localDistance - dashOffset - dashLength * 0.5) - dashLength * 0.5;\n distanceSegment = min(distanceSegment, dashLengthTotal - localDistance);\n if (capType == ${wR("square")}) {\n distanceSegment -= v_width * 0.5;\n } else if (capType == ${wR("round")}) {\n distanceSegment = min(distanceSegment, sqrt(distanceSegment * distanceSegment + radius * radius) - v_width * 0.5);\n }\n return distanceSegment;\n}`;let n=t["stroke-line-dash"].map(t=>GR(r,t,Za));n.length%2===1&&(n=[...n,...n]);let o="0.";"stroke-line-dash-offset"in t&&(o=GR(i,t["stroke-line-dash-offset"],Za));const s="dashDistanceField_"+HR(t["stroke-line-dash"]),a=n.map((t,e)=>`float dashLength${e} = ${t};`),l=n.map((t,e)=>"dashLength"+e).join(" + ");let h="0.",u=`getSingleDashDistance(distance, radius, ${h}, dashLength0, totalDashLength, capType)`;for(let t=2;t{const n=e[t.name];return"number"==typeof n?n:"boolean"==typeof n?n?1:0:t.type===Ja?to(n||"#eee"):"string"==typeof n?IR(n):n}}for(const l in i.properties){const t=i.properties[l];n.properties[l]||(n.properties[l]=t);let e=VR(t.type),o="a_prop_"+t.name;t.type===Ja&&(e="vec4",o=`unpackColor(${o})`,r.addVertexShaderFunction(UR)),r.addVarying("v_prop_"+t.name,e,o)}for(const l in n.properties){const t=n.properties[l];r.addAttribute(`${VR(t.type)} a_prop_${t.name}`)}for(const l in n.functions)r.addVertexShaderFunction(n.functions[l]);for(const l in i.functions)r.addFragmentShaderFunction(i.functions[l]);const s={};for(const l in n.properties){const t=n.properties[l],e=e=>{const n=e.get(t.name);return t.type===Ja?jR([...to(n||"#eee")]):"string"==typeof n?IR(n):"boolean"==typeof n?n?1:0:n};s["prop_"+t.name]={size:qR(t.type),callback:e}}function a(t,e,o,a){const l=n[t],h=i[t];if(!l&&!h)return;const u=VR(o),c=qR(o);r.addAttribute(`${u} a_${e}`),h&&r.addVarying("v_"+e,u,"a_"+e),s[e]={size:c,callback:a}}return a("geometryType",MR,Ka,t=>IR(Rl(t.getGeometry()))),a("featureId",BR,Ka|Za,t=>{var e;const n=null!=(e=t.getId())?e:null;return"string"==typeof n?IR(n):n}),{builder:r,attributes:s,uniforms:o}}function ik(t,e){const n=`\n attribute vec2 ${hR.TEXTURE_COORD};\n uniform mat4 ${lR.TILE_TRANSFORM};\n uniform float ${lR.TEXTURE_PIXEL_WIDTH};\n uniform float ${lR.TEXTURE_PIXEL_HEIGHT};\n uniform float ${lR.TEXTURE_RESOLUTION};\n uniform float ${lR.TEXTURE_ORIGIN_X};\n uniform float ${lR.TEXTURE_ORIGIN_Y};\n uniform float ${lR.DEPTH};\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ${hR.TEXTURE_COORD};\n v_mapCoord = vec2(\n ${lR.TEXTURE_ORIGIN_X} + ${lR.TEXTURE_RESOLUTION} * ${lR.TEXTURE_PIXEL_WIDTH} * v_textureCoord[0],\n ${lR.TEXTURE_ORIGIN_Y} - ${lR.TEXTURE_RESOLUTION} * ${lR.TEXTURE_PIXEL_HEIGHT} * v_textureCoord[1]\n );\n gl_Position = ${lR.TILE_TRANSFORM} * vec4(${hR.TEXTURE_COORD}, ${lR.DEPTH}, 1.0);\n }\n `,i=d(g({},ER()),{inFragmentShader:!0,bandCount:e}),r=[];if(void 0!==t.color){const e=GR(i,t.color,Ja);r.push(`color = ${e};`)}if(void 0!==t.contrast){const e=GR(i,t.contrast,Za);r.push(`color.rgb = clamp((${e} + 1.0) * color.rgb - (${e} / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(void 0!==t.exposure){const e=GR(i,t.exposure,Za);r.push(`color.rgb = clamp((${e} + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(void 0!==t.saturation){const e=GR(i,t.saturation,Za);r.push(`\n float saturation = ${e} + 1.0;\n float sr = (1.0 - saturation) * 0.2126;\n float sg = (1.0 - saturation) * 0.7152;\n float sb = (1.0 - saturation) * 0.0722;\n mat3 saturationMatrix = mat3(\n sr + saturation, sr, sr,\n sg, sg + saturation, sg,\n sb, sb, sb + saturation\n );\n color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));\n `)}if(void 0!==t.gamma){const e=GR(i,t.gamma,Za);r.push(`color.rgb = pow(color.rgb, vec3(1.0 / ${e}));`)}if(void 0!==t.brightness){const e=GR(i,t.brightness,Za);r.push(`color.rgb = clamp(color.rgb + ${e}, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}const o={},s=Object.keys(i.variables).length;if(s>1&&!t.variables)throw new Error(`Missing variables in style (expected ${i.variables})`);for(let c=0;c ${lR.RENDER_EXTENT}[2] ||\n v_mapCoord[1] > ${lR.RENDER_EXTENT}[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(${lR.TILE_TEXTURE_ARRAY}[0], v_textureCoord);\n\n ${r.join("\n")}\n\n gl_FragColor = color;\n gl_FragColor.rgb *= gl_FragColor.a;\n gl_FragColor *= ${lR.TRANSITION_ALPHA};\n }`;return{vertexShader:n,fragmentShader:u,uniforms:o,paletteTextures:i.paletteTextures}}class rk extends ZT{constructor(t){t=t?Object.assign({},t):{};const e=t.style||{};delete t.style,super(t),this.sources_=t.sources,this.renderedSource_=null,this.renderedResolution_=NaN,this.style_=e,this.styleVariables_=this.style_.variables||{},this.addChangeListener(Vs.SOURCE,this.handleSourceUpdate_)}getSources(t,e){const n=this.getSource();return this.sources_?"function"==typeof this.sources_?this.sources_(t,e):this.sources_:n?[n]:[]}getRenderSource(){return this.renderedSource_||this.getSource()}getSourceState(){const t=this.getRenderSource();return t?t.getState():"undefined"}handleSourceUpdate_(){this.hasRenderer()&&this.getRenderer().clearCache();const t=this.getSource();if(t)if("loading"===t.getState()){const e=()=>{"ready"===t.getState()&&(t.removeEventListener("change",e),this.setStyle(this.style_))};t.addEventListener("change",e)}else this.setStyle(this.style_)}getSourceBandCount_(){const t=Number.MAX_SAFE_INTEGER,e=this.getSources([-t,-t,t,t],t);return e&&e.length&&"bandCount"in e[0]?e[0].bandCount:4}createRenderer(){const t=ik(this.style_,this.getSourceBandCount_());return new gR(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.getCacheSize(),paletteTextures:t.paletteTextures})}renderSources(t,e){const n=this.getRenderer();let i;for(let r=0,o=e.length;r{"ready"==t.getState()&&(t.removeEventListener("change",e),this.changed())};t.addEventListener("change",e)}r=r&&"ready"==e}const o=this.renderSources(t,i);if(this.getRenderer().renderComplete&&r)return this.renderedResolution_=n.resolution,o;if(this.renderedResolution_>.5*n.resolution){const e=this.getSources(t.extent,this.renderedResolution_).filter(t=>!i.includes(t));if(e.length>0)return this.renderSources(t,e)}return o}setStyle(t){if(this.styleVariables_=t.variables||{},this.style_=t,this.hasRenderer()){const t=ik(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,paletteTextures:t.paletteTextures}),this.changed()}}updateStyleVariables(t){Object.assign(this.styleVariables_,t),this.changed()}}rk.prototype.dispose;const ok=rk,sk={name:"v-tile",render(t,e){return null},extends:XE,inject:["VMap"],props:{layerId:{type:String,default:""},preload:{type:Number,default:0},tileType:{type:String,default:"TD",validator:t=>["TD","TD_IMG","XYZ","BD","BD_DARK","BD_BLUE","GD","GD_IMG","OSM","WMS","ARCGIS_BLUE","ARCGIS_WARM","ARCGIS_NORMAL","ARCGIS_GRAY","PGIS_XM_GA","PGIS_XM_GA_IMG","FJ_BLUE","FJ_BLUE_GA","GEOTIFF"].includes(t.toUpperCase())},tdVec:{type:String},tdCva:{type:String},tdImg:{type:String},tdCia:{type:String},gdUrl:{type:String},base:{type:Boolean,default:!0},xyz:{type:Object,default(){return{}}},tileArcGISRest:{type:Object,default(){return{}}},wms:{type:Object,default(){}},mask:{type:Object},GeoTiff:Object},data(){return{layers:[],addForOverview:!1,filterMask:null}},computed:{map(){return this.VMap.map}},watch:{tileType:{handler(t,e){t&&t!==e&&(this.clear(e),this.init())},immediate:!1,deep:!0},xyz:{handler(t){this.map.getLayers().getArray().filter(t=>t.get("base")).forEach(t=>{this.map.removeLayer(t)}),this.init()},immediate:!1,deep:!0},mask:{handler(t,e){t&&t!==e?this.layers.forEach(t=>{t.removeFilter(this.filterMask),this.addMask(t,this.mask)}):t||this.layers.forEach(t=>{t.removeFilter(this.filterMask)})},immediate:!1,deep:!0}},methods:{clear(t){const e=this.map.getLayers().getArray().filter(t=>t.get("base"));e&&e.length>0&&e.forEach(e=>{(e.get("tileType")===t||e.get("isDefault"))&&this.map.removeLayer(e)})},init(){switch(this.tileType.toUpperCase()){case"XYZ":this.initTileXYZ();break;case"PGIS_XM_GA":this.initTilePGISXMGA();break;case"FJ_BLUE":this.initTileFJBlue();break;case"FJ_BLUE_GA":this.initTileFJBlueGA();break;case"WMS":this.initTileWMS();break;case"TD":this.initTD();break;case"TD_IMG":this.initTDIMG();break;case"BD":this.initBD();break;case"BD_BLUE":this.initBD("midnight");break;case"BD_DARK":this.initBD("dark");break;case"ARCGISREST":this.initTileArcGISRest();break;case"ARCGIS_BLUE":this.initArcgisTile("blue");break;case"ARCGIS_WARM":this.initArcgisTile("warm");break;case"ARCGIS_NORMAL":this.initArcgisTile("normal");break;case"ARCGIS_GRAY":this.initArcgisTile("gray");break;case"GD":this.initGD();break;case"GD_IMG":this.initAMapImage();break;case"OSM":this.initTileOSM();break;case"GEOTIFF":this.initGeoTIFFTile();break;default:this.initTD();break}},initTileArcGISRest(){let t;WC(this.tileArcGISRest,"tileGrid")&&(t=new $E(this.tileArcGISRest.tileGrid));const e=d(g({},this.tileArcGISRest),{tileGrid:t}),n=new sD(e),i=d(g({},this.$props),{source:n});this.layer=new rD(i),this.layer.set("base",this.base);const r=this.layerId||"tile-layer-"+m();this.layer.set("id",r),this.layers=[this.layer],this.addToMap()},initTileXYZ(){let t;WC(this.xyz,"tileGrid")&&(t=new $E(this.xyz.tileGrid));const e=d(g({},this.xyz),{tileGrid:t}),n=new Mb(e),i=d(g({},this.$props),{source:n});this.layer=new rD(i),this.layer.set("base",this.base);const r=this.layerId||"tile-layer-"+m();this.layer.set("id",r),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layers=[this.layer],this.addToMap()},initTileFJBlue(){const t="http://172.16.34.120:6080/arcgis/rest/services/xiamen/MapServer/tile";this.layer=this.initXYZbyURL(t+"/{z}/{y}/{x}",{projection:"EPSG:4490"}),this.layers=[this.layer],this.addToMap()},initTileFJBlueGA(){const t="http://10.130.145.45:5001/xmblue";this.layer=this.initXYZbyURL(t+"/{z}/{y}/{x}.png",{projection:"EPSG:4326"}),this.layers=[this.layer],this.addToMap()},initTilePGISXMGA(){const t={projection:"EPSG:4326",tileUrlFunction:function(t){if(!t)return"";const e=t[0],n=t[1],i=t[2];return`http://44.64.18.11/Tile_sl2019/40219e3adef540b4b3d0b9b5e1d66c53/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col=${n}&Row=${i}&Zoom=${e}&V=1.0.0`},crossOrigin:"anonymous"},e=new Mb(t),n=d(g({},this.$props),{source:e});this.layer=new rD(n);const i=this.layerId||"tile-layer-"+m();this.layer.set("id",i),this.layers=[this.layer],this.addToMap()},initTileWMS(){let t;WC(this.wms,"tileGrid")&&(t=new $E(this.wms.tileGrid));const e=d(g({},this.wms),{tileGrid:t,projection:"EPSG:4326"}),n=new lD(e),i=d(g({},this.$props),{source:n});this.layer=new rD(i),this.layer.set("base",this.base),this.layer.set("type","wms");const r=this.layerId||"tile-layer-"+m();this.layer.set("id",r),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layers=[this.layer],this.addToMap()},initTD(){const t=this.initXYZbyURL(this.tdVec||"https://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a"),e=this.initXYZbyURL(this.tdCva||"https://t3.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a");this.layers=[t,e],this.addToMap()},initXYZbyURL(t,e={}){const n=d(g({crossOrigin:"anonymous"},this.$props.xyz),{url:t}),i=new Mb(g(g({},n),e)),r=d(g({},this.$props),{source:i}),o=new rD(r);o.set("base",!0);const s=this.layerId||"tile-layer-"+m();return o.set("id",s),this.zIndex&&o.setZIndex(this.zIndex),this.mask&&Object.keys(this.mask).length>0&&this.addMask(o,this.mask),o},initTDIMG(){const t=this.initXYZbyURL(this.tdImg||"https://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a"),e=this.initXYZbyURL(this.tdCia||"https://t3.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=88e2f1d5ab64a7477a7361edd6b5f68a");this.layers=[t,e],this.addToMap()},initArcgisTile(t){let e="";switch(t){case"blue":e="http:",e+="//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/";break;case"warm":e="http:",e+="//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer/tile";break;case"normal":e="http:",e+="//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineCommunity/MapServer/tile";break;case"gray":e="http:",e+="//cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetGray/MapServer/tile";break;default:e="http:",e+="//cache1.arcgisonline.cn/arcgarcgis/rest/services/ChinaOnlineCommunity/MapServer/tile";break}this.layer=this.initXYZbyURL(e+"/{z}/{y}/{x}",{projection:"GCJ02"}),this.layers=[this.layer],this.addToMap()},initBD(t){this.layers=this.getBDMap(this.xyz,this.$props,t),this.addToMap()},getBDMap(t,e,n=""){const i=[];for(let u=0;u<19;u++)i[u]=Math.pow(2,18-u);const r=new $E({origin:[0,0],resolutions:i}),o=d(g({},t),{projection:"baidu",tileGrid:r,tileUrlFunction:function(t,e,i){if(!t)return"";const r=t[0],o=t[1],s=-t[2]-1;return n?"http://api0.map.bdimg.com/customimage/tile?&x="+o+"&y="+s+"&z="+r+"udt=20220819&scale=1&ak=5ieMMexWmzB9jivTq6oCRX9j&customid="+n:"https://maponline1.bdimg.com/tile/?qt=vtile&x="+o+"&y="+s+"&z="+r+"&styles=pl&scaler=1&udt=20220113&from=jsapi2_0"},crossOrigin:"anonymous"}),s=new Mb(o),a=d(g({},e),{source:s}),l=new rD(a);l.set("type","bd"),l.set("name","bd"),l.set("base",!0);const h=this.layerId||"tile-layer-"+m();return l.set("id",h),this.zIndex&&l.setZIndex(this.zIndex),[l]},initGD(){this.layers=[this.getAMap(this.xyz,this.$props,this.gdUrl)],this.addToMap()},initAMapImage(){this.layers=[this.getAMap(this.xyz,this.$props,"https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=6"),this.getAMap(this.xyz,this.$props,"https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=8")],this.addForOverview||this.layers.forEach(t=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(t,this.mask),this.map.addLayer(t)})},getAMap(t,e,n){const i=d(g({},t),{url:n||"https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=7",projection:YC,crossOrigin:"anonymous"}),r=new Mb(i),o=d(g({},e),{source:r}),s=new rD(o);s.set("type","AMap"),s.set("name","AMap"),s.set("base",!0);const a=this.layerId||"tile-layer-"+m();return s.set("id",a),this.zIndex&&s.setZIndex(this.zIndex),s},initTileOSM(){const t=new GT,e=d(g({},this.$props),{source:t});this.layer=new rD(e),this.layer.set("base",this.base);const n=this.layerId||"tile-layer-"+m();this.layer.set("id",n),this.layers=[this.layer],this.addForOverview||this.layers.forEach(t=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(t,this.mask),this.zIndex&&t.setZIndex(this.zIndex),this.map.addLayer(t)})},initGeoTIFFTile(){const t=new ST(g({},this.GeoTiff)),e=d(g({},this.$props),{source:t});this.layer=new ok(e),this.layer.set("base",this.base),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layers=[this.layer],this.addToMap()},addMask(t,e){const n={feature:e.feature,wrapX:e.wrapX||!0,inner:e.inner||!1,shadowWidth:e.shadowWidth||0,fill:e.fill||"rgba(255, 255, 255, 0.8)"},i=iE(n.feature,this.map);this.filterMask=new uD({feature:i,wrapX:n.wrapX||!0,inner:n.inner||!1,fill:new Qo({color:n.fill})}),this.filterMask.set("shadowWidth",n.shadowWidth||0),t.addFilter(this.filterMask)},addToMap(){this.addForOverview||this.layers.forEach(t=>{this.mask&&Object.keys(this.mask).length>0&&this.addMask(t,this.mask),this.zIndex&&t.setZIndex(this.zIndex),this.map.addLayer(t)})}},updated(){this.init()},mounted(){this.init()},beforeDestroy(){this.layers.forEach(t=>{t.getSource().clear(),this.map.removeLayer(t)})}};let ak,lk;const hk={};var uk=zE(sk,ak,lk,!1,ck,null,null,null);function ck(t){for(let e in hk)this[e]=hk[e]}uk.options.__file="src/components/layers/tile/index.vue";const gk=function(){return uk.exports}(),dk={name:"v-overview",render(t,e){return null},extends:gk,inject:["VMap"],props:{className:{type:String},collapsed:{type:Boolean},collapseLabel:{type:String},collapsible:{type:Boolean},render:{type:Function},rotateWithView:{type:Boolean},target:{type:String},tipLabel:{type:String},view:{type:Object}},computed:{map(){return this.VMap.map}},watch:{tileType:{handler(t,e){t&&t!==e&&(this.clearLayer(e),this.initLayers(),this.initOverview())},immediate:!1,deep:!0},rotateWithView:{handler(t){this.overview.setRotateWithView(t)},immediate:!1},collapsed:{handler(t){this.overview.setCollapsed(t)},immediate:!1},collapsible:{handler(t){this.overview.setCollapsible(t)},immediate:!1}},data(){return{overview:null}},methods:{initLayers(){this.addForOverview=!0,this.init()},clearLayer(t){const e=this.overview.getOverviewMap().getLayers().getArray().filter(t=>t.get("base"));e&&e.length>0&&e.forEach(e=>{(e.get("tileType")===t||e.get("isDefault"))&&this.overview.getOverviewMap().removeLayer(e)})},initOverview(){const t=g({constrainResolution:!1,projection:"EPSG:4326"},this.view),e=d(g({},this.$props),{view:new wa(t),layers:this.layers});this.overview=new Yf(e),this.map.addControl(this.overview)}},mounted(){this.initLayers(),this.initOverview()},beforeDestroy(){this.addForOverview=!1,this.map.removeControl(this.overview)}};let fk,Ak;const pk={};var mk=zE(dk,fk,Ak,!1,yk,null,null,null);function yk(t){for(let e in pk)this[e]=pk[e]}mk.options.__file="src/components/overviewMap/index.vue";const vk=function(){return mk.exports}();vk.install=t=>{t.component(vk.name,vk)};var _k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.className,attrs:{id:t.elementId}},[t._t("default",null,{data:t.data})],2)},xk=[];_k._withStripped=!0;const Ik={name:"v-overlay",inject:["VMap"],props:{overlayId:{type:String,default:""},element:{type:String,default:""},position:{type:[Array,void 0],default(){}},positioning:{type:String},offset:{type:Array,default(){return[0,0]}},autoPan:{type:Boolean,default:!1},className:{type:[String,Array]},data:{type:Array},close:{type:Function}},data(){return{elementId:"",overlay:null}},computed:{map(){return this.VMap.map}},watch:{position:{handler(t){this.overlay.setPosition(t)},immediate:!1},positioning:{handler(t){this.overlay.setPositioning(t)},immediate:!1},offset:{handler(t){this.overlay.setOffset(t)},immediate:!1}},methods:{setPosition(t){this.overlay.setPosition(t)}},created(){this.elementId=this.element||"overlay-el-"+m()},mounted(){let t=document.getElementById(this.elementId);const e=this.overlayId||"overlay-id-"+m(),n=d(g({},this.$props),{id:e,element:t});this.overlay=new bd(n);for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&this.overlay.set(i,n[i]);this.map.addOverlay(this.overlay),this.$emit("load",this.overlay,this.map)},beforeDestroy(){this.map.removeOverlay(this.overlay)}},wk={};var Ck=zE(Ik,_k,xk,!1,Ek,null,null,null);function Ek(t){for(let e in wk)this[e]=wk[e]}Ck.options.__file="src/components/overlay/index.vue";const bk=function(){return Ck.exports}();bk.install=t=>{t.component(bk.name,bk)};class Sk extends _{constructor(t,e){super(t),this.layer=e}}const Bk={LAYERS:"layers"};class Mk extends Ys{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Bk.LAYERS,this.handleLayersChanged_),n?Array.isArray(n)?n=new rt(n.slice(),{unique:!0}):ot("function"==typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new rt(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(q),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(j(t,tt.ADD,this.handleLayersAdd_,this),j(t,tt.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(q);z(this.listenerKeys_);const e=t.getArray();for(let n=0,i=e.length;n{this.eventRender.push(this.map.on(t,e=>{this.$emit(t,e)}))}),null==(t=this.map)||t.addLayer(this.layer)},dispose(){this.eventRender.forEach(t=>{H(t)}),this.map.removeLayer(this.layer)}},mounted(){this.init()},beforeDestroy(){this.dispose()}},Lk={};var Pk=zE(kk,Dk,Rk,!1,Qk,null,null,null);function Qk(t){for(let e in Lk)this[e]=Lk[e]}Pk.options.__file="src/components/layers/group/index.vue";const zk=function(){return Pk.exports}();zk.install=t=>{t.component(zk.name,zk)},gk.install=function(t){t.component(gk.name,gk)};const Fk=t=>{const{type:e,layer:n,map:i,groupLayer:r}=t;if(n&&e)if("v-map"===e&&i)try{i.addLayer(n)}catch(o){throw new Error(null==o?void 0:o.toString())}else if("v-group-layer"===e&&r)try{if(r.getLayersArray().map(t=>t.get("id")).includes(n.get("id")))return;{const t=r.getLayersArray()||[];r.setLayers(new rt([...t,n],{unique:!0}))}}catch(o){throw new Error(null==o?void 0:o.toString())}},Ok=function(t){let e=0;for(let n=0,i=t.length-1;nt.y&&e.x===t.x?s=Math.PI/2:e.y===t.y&&e.xt.x?s=0:e.y>t.y&&e.x>t.x?s=o:e.y>t.y&&e.xt.x&&(s=2*Math.PI-o),s},Gk=function(t){const e=t.map,n=t.pixel,i=t.coordinates,r=[];for(let o=0;o{const{map:e,source:n,icon:i}=t,r={pixel:t.pixel||50,coordinates:t.coordinates,map:e},o=Gk(r),s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABfUlEQVQ4T3WTTSvFYRDFf8dLKIqytFckthTpJkQWlyhF2fgEVr6BheytpChEsqB08xbZWPgOJAs7ieRlNMzV//75P7vnmZkz58ycR2ZWD7QBF5KM1DGzTuBO0k065neZ2S3QBGwAU5I+iolmNgrsAI9An6SrNIgDnAE9EdgFJiS9+93MuoEToBx4AgYkXSZBHKAWOAS6IrAP5CW9BUge2AIqgJdg8guiSKoBDoDeDJBhwNlVBsiQpNPvGST0VgF7TjPeCsCIpNdo0g84O2fibx4r/AJEUjVwlJDjXbybU/eZjAGbMROXmC8BiKQ64BxoDyYLkuYTTCeB9WD/9B9AA3AMdGQAzALLAfCcluDF3r01itMS5oDFiP3MIUHNi90T7ko/XjyYGOIMsFJSXByimTVGQbFzegOuew0o+7PGKL4AmjM8MA2shua/RjIzX1suw8pucZfiUjOt/AC4BHfaeOoz+d63oziX9Zla3CzAkqTP9G8zM4/dS7r+7zt/Aaattn1kX8VgAAAAAElFTkSuQmCC",a=.5;for(let l=0;l{if(!t.map||!t.coordinates||t.coordinates.length<2)return;const{source:e}=t;jk(d(g({},t),{source:e}))};function qk(t){const e=t.frameState,n=gt(t.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new ku(t.context,e.pixelRatio,e.extent,n,e.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var Vk=Z.split(".");Vk=100*parseInt(Vk[0])+parseInt(Vk[1]);var Hk=function(t,e){var n=t.frameState.pixelRatio;if(Vk>605&&1!==n&&e.getImage()instanceof Ya){e=e.clone();var i=e.getImage();i.setScale(i.getScale()*n);var r=i.getAnchor();if(i.setDisplacement){var o=i.getDisplacement();o&&(o[0]-=r[0]/n,o[1]+=r[1]/n,i.setAnchor([0,0]))}else r&&(r[0]/=n,r[1]/=n)}return e},Yk=class extends ${constructor(t){t=t||{},super(),this.duration_="number"==typeof t.duration?t.duration>=0?t.duration:0:1e3,this.fade_="function"==typeof t.fade?t.fade:null,this.repeat_=Number(t.repeat);var e="function"==typeof t.easing?t.easing:ga;t.revers?this.easing_=function(t){return 1-e(t)}:this.easing_=e,this.hiddenStyle=t.hiddenStyle}drawGeom_(t,e,n){this.fade_&&(t.context.globalAlpha=this.fade_(1-t.elapsed));for(var i=t.style,r=0;r=0;l--)0===e[l].duration_&&e.splice(l,1);var h=0,u=0,c=n&&this.getFilters?this.getFilters():[];function g(n){a.type=n.type;try{a.vectorContext=n.vectorContext||qk(n)}catch(o){}if(a.frameState=n.frameState,a.inversePixelTransform=n.inversePixelTransform,a.extent||(a.extent=n.frameState.extent,a.start=n.frameState.time,a.context=n.context),a.time=n.frameState.time-a.start,a.elapsed=a.time/e[u].duration_,a.elapsed>1&&(a.elapsed=1),n.context.save(),c.forEach((function(t){t.get("active")&&t.precompose(n)})),this.getOpacity&&(n.context.globalAlpha=this.getOpacity()),e[u].animate(a)){var i={type:"animating",step:u,start:a.start,time:a.time,elapsed:a.elapsed,rotation:a.rotation||0,geom:a.geom,coordinate:a.coord,feature:t,extra:a.extra||{}};e[u].dispatchEvent(i),r.dispatchEvent(i)}else h++,h{const n=e.fNum++%e.frames.length,i=e.frames[n];if(!(0===e.numPlays||e.fNum/e.frames.length<=e.numPlays))return e.played=!1,void(e.finished=!0);0===n&&(e.contexts.forEach((function(t){t.clearRect(0,0,e.width,e.height)})),e.prevF=void 0,2===i.disposeOp&&(i.disposeOp=1)),e.prevF&&1===e.prevF.disposeOp?e.contexts.forEach((function(t){t.clearRect(e.prevF.left,e.prevF.top,e.prevF.width,e.prevF.height)})):e.prevF&&2===e.prevF.disposeOp&&e.contexts.forEach((function(t){t.putImageData(e.prevF.iData,e.prevF.left,e.prevF.top)})),e.prevF=i,e.prevF.iData=null,2===e.prevF.disposeOp&&(e.prevF.iData=e.contexts[0].getImageData(i.left,i.top,i.width,i.height)),0===i.blendOp&&e.contexts.forEach((function(t){t.clearRect(i.left,i.top,i.width,i.height)})),e.contexts.forEach((function(t){t.drawImage(i.img,i.left,i.top)}));const r=new Xk(t,this.tag);for(e.dispatchEvent(r),0===e.nextRenderTime&&(e.nextRenderTime=t);t>e.nextRenderTime+e.playTime;)e.nextRenderTime+=e.playTime;e.nextRenderTime+=i.delay};this.tick=t=>{for(;e.played&&e.nextRenderTime<=t;)n(t);e.played&&requestAnimationFrame(e.tick)}}setTag(t){this.tag=t}play(){this.played||this.finished||(this.rewind(),this.played=!0,requestAnimationFrame(this.tick))}rewind(){this.nextRenderTime=0,this.fNum=0,this.prevF=void 0,this.played=!1,this.finished=!1}addContext(t){if(this.contexts.length>0){const e=this.contexts[0].getImageData(0,0,this.width,this.height);t.putImageData(e,0,0)}this.contexts.push(t),t._aimg_animation=this}removeContext(t){const e=this.contexts.indexOf(t);-1!==e&&(this.contexts.splice(e,1),0===this.contexts.length&&this.rewind(),"_aimg_animation"in t&&delete t._aimg_animation)}removeAllContexts(){this.contexts.forEach(t=>{this.removeContext(t)})}latestContext(){return this.contexts[this.contexts.length-1]}isPlayed(){return this.played}isFinished(){return this.finished}}const Kk=Zk,Jk=new Uint8Array([137,80,78,71,13,10,26,10]),$k=new Uint8Array([71,73,70,56,55,97]),tL=new Uint8Array([71,73,70,56,57,97]),eL=new Uint8Array([82,73,70,70,0,0,0,0,87,69,66,80]),nL=function(t){let e;return function(n){return e||(e=new Promise(t)),n&&e.then(n),e}}((function(t){const e=document.createElement("canvas"),i={TypedArrays:"ArrayBuffer"in n,BlobURLs:"URL"in n,requestAnimationFrame:"requestAnimationFrame"in n,pageProtocol:"http:"==location.protocol||"https:"==location.protocol,canvas:"getContext"in document.createElement("canvas"),APNG:!1};if(i.canvas){const n=new Image;n.onload=function(){const r=e.getContext("2d");r.drawImage(n,0,0),i.APNG=0===r.getImageData(0,0,1,1).data[3],t(i)},n.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACGFjVEwAAAABAAAAAcMq2TYAAAANSURBVAiZY2BgYPgPAAEEAQB9ssjfAAAAGmZjVEwAAAAAAAAAAQAAAAEAAAAAAAAAAAD6A+gBAbNU+2sAAAARZmRBVAAAAAEImWNgYGBgAAAABQAB6MzFdgAAAABJRU5ErkJggg=="}else t(i)})),iL=function(t=!1){return nL().then((function(e){if(!e.APNG||t){let t=!0;for(let n in e)e.hasOwnProperty(n)&&"APNG"!=n&&(t=t&&e[n])}}))};function rL(t){const e=new Uint8Array(t);for(let n=0;n>>1:t>>>1;lL[n]=t}function hL(t,e,n){e=e||0,n=n||t.length-e;let i=-1;for(let r=e,o=e+n;r>>8^lL[255&(i^t[r])];return-1^i}function uL(t,e,n=!1){return n?t:e-1-t}function cL(t,e,n=!1){let i=0;i+=t[e+uL(0,4,n)]<<24>>>0;for(let r=1;r<4;r++)i+=t[e+uL(r,4,n)]<<8*(3-r);return i}function gL(t,e,n=!1){let i=0;for(let r=0;r<2;r++)i+=t[e+uL(r,2,n)]<<8*(1-r);return i}function dL(t,e,n=!1){let i=0;i+=t[e+uL(0,3,n)]<<16>>>0;for(let r=1;r<3;r++)i+=t[e+uL(r,3,n)]<<8*(2-r);return i}function fL(t,e){return t[e]}function AL(t,e,n){const i=new Uint8Array(n);return i.set(t.subarray(e,e+n)),i}function pL(t,e,n){const i=Array.prototype.slice.call(t.subarray(e,e+n));return String.fromCharCode.apply(String,i)}function mL(t,e=!1){const n=[255&t,t>>>8&255,t>>>16&255,t>>>24&255];return e?n.reverse():n}function yL(t,e=!1){const n=[255&t,t>>>8&255];return e?n.reverse():n}function vL(t,e=!1){const n=[255&t,t>>>8&255,t>>>16&255];return e?n.reverse():n}function _L(t){const e=[];for(let n=0;n2*t+(e?1:0),0)}function IL(t){const e=[];for(let n=7;n>=0;n--)e.push(!!(t&1<{let o=!1;if(CL(r,(t,e,n,i)=>"acTL"!==t||(o=!0,!1)),!o&&n)return void e("Not an animated PNG");const s=[],a=[],l=new Kk;let h,u;if(CL(r,(function(t,e,n,i){switch(t){case"IHDR":h=e.subarray(n+8,n+8+i),l.width=cL(e,n+8,!0),l.height=cL(e,n+12,!0);break;case"acTL":l.numPlays=cL(e,n+8+4,!0);break;case"fcTL":u&&l.frames.push(u),u={},u.width=cL(e,n+8+4,!0),u.height=cL(e,n+8+8,!0),u.left=cL(e,n+8+12,!0),u.top=cL(e,n+8+16,!0);const t=gL(e,n+8+20,!0);let r=gL(e,n+8+22,!0);0==r&&(r=100),u.delay=1e3*t/r,u.delay<=10&&(u.delay=100),l.playTime+=u.delay,u.disposeOp=fL(e,n+8+24),u.blendOp=fL(e,n+8+25),u.dataParts=[];break;case"fdAT":u&&u.dataParts.push(e.subarray(n+8+4,n+8+i));break;case"IDAT":u?u.dataParts.push(e.subarray(n+8,n+8+i)):(u={},u.width=l.width,u.height=l.height,u.left=0,u.top=0,u.delay=100,l.playTime+=u.delay,u.disposeOp=1,u.blendOp=1,u.dataParts=[e.subarray(n+8,n+8+i)]);break;case"IEND":a.push(AL(e,n,12+i));break;default:s.push(AL(e,n,12+i))}return!0})),u&&l.frames.push(u),l.frames.length<=1){if(n)return void e("Not an animated PNG");l.numPlays=1}else i&&(l.numPlays=0);let c=0;const g=new Blob(s),d=new Blob(a);for(let n=0;n{let o=!1,s=0;if(BL(r,(t,e,n,i)=>"APP"===t?(o=!0,!1):("GCE"===t&&s++,!0)),!o&&s<2&&n)return void e("Not an animated GIF");const a=[],l=new Kk;let h,u;if(s>1&&(l.numPlays=1),BL(r,(t,e,n,i)=>{switch(t){case"HDR":h=e.subarray(n,n+i),l.width=gL(e,n),l.height=gL(e,n+2);break;case"APP":"NETSCAPE2.0"===pL(e,n+3,11)&&(l.numPlays=gL(e,n+16));break;case"GCE":u&&l.frames.push(u),u={},u.delay=10*gL(e,n+4),u.delay<=10&&(u.delay=100),l.playTime+=u.delay,u.gce=AL(e,n,i);break;case"IMG":u&&u.data&&(l.frames.push(u),u={}),u.width=gL(e,n+5),u.height=gL(e,n+7),u.left=gL(e,n+1),u.top=gL(e,n+3),u.data=AL(e,n,i),u.disposeOp=0,u.blendOp=0;break;case"COM":break;case"PTE":break;case"EOF":a.push(AL(e,n,i));break}return!0}),u&&l.frames.push(u),l.frames.length<=1){if(n)return void e("Not an animated PNG");l.numPlays=1}else i&&(l.numPlays=0);let c=0;const g=new Blob(a);for(let n=0;n{let o=!1;if(TL(r,(t,e,n,i)=>"ANIM"!==t||(o=!0,!1)),!o&&n)return void e("Not an animated WebP");const s=new Kk;let a,l;if(TL(r,(t,e,n,i)=>{switch(t){case"VP8X":a=e.subarray(n,n+i),s.width=dL(e,n+8+4)+1,s.height=dL(e,n+8+4+3)+1;break;case"ANIM":s.numPlays=gL(e,n+8+4);break;case"ANMF":l&&s.frames.push(l);let t=dL(e,n+8+12);t<=10&&(t=100);const r=IL(fL(e,n+8+15));l={delay:t,width:dL(e,n+8+6)+1,height:dL(e,n+8+9)+1,left:2*dL(e,n+8),top:2*dL(e,n+8+3),disposeOp:r[7]?1:0,blendOp:r[6]?0:1,data:AL(e,n+8+16,i-8-16)},s.playTime+=l.delay;break}return!0}),l&&s.frames.push(l),s.frames.length<=1){if(n)return void e("Not an animated WebP");s.numPlays=1}else i&&(s.numPlays=0);let h=0;for(let n=0;ne>3&&e<8?r[e-4]:aL.WEBP_CHECK_BYTES[e]);i.push(o);const u=IL(fL(a,8));u[4]=!1,u[5]=!1,u[6]=!1,a.set([xL(u)],8),a.set(vL(l.width-1),12),a.set(vL(l.height-1),15),i.push(a),i.push(l.data);const c=URL.createObjectURL(new Blob(i,{type:"image/webp"}));delete l.data,i=[],l.img=document.createElement("img"),l.img.onload=function(){URL.revokeObjectURL(this.src),h++,h===s.frames.length&&t(s)},l.img.onerror=function(){e("Image creation error")},l.img.src=c}})}))}function TL(t,e,n=12,i){const r=i?i+n:t.length;let o=!0;do{const i=pL(t,n,4);let r=cL(t,n+4);r%2&&r++,o=e(i,t,n,r+8),n+=r+8}while(o&&n{const n=t.tag,i=t.now,r=()=>{const t=setTimeout(()=>{e.dispatchEvent(new _("need_render")),e.waitingBuffer=void 0},e.waitingMilliSec);e.waitingBuffer={timestamp:i,buffer:{},timer_id:t},e.waitingBuffer.buffer[n]=!0};return e.waitingBuffer?e.waitingBuffer.buffer[n]?(clearTimeout(e.waitingBuffer.timer_id),e.dispatchEvent(new _("need_render")),r()):e.waitingBuffer.buffer[n]=!0:r(),!1}}parseBuffer(t){return p(this,null,(function*(){return rL(t)?wL(t,{ignoreSingle:this.ignoreSingle,forceLoop:this.forceLoop}):oL(t)?bL(t,{ignoreSingle:this.ignoreSingle,forceLoop:this.forceLoop}):sL(t)?ML(t,{ignoreSingle:this.ignoreSingle,forceLoop:this.forceLoop}):Promise.reject(new Error("Not a supported file (invalid file signature)"))}))}parseURL(t){return p(this,null,(function*(){return t in this.url2promise||(this.url2promise[t]=DL(t).then(t=>this.parseBuffer(t))),this.url2promise[t]}))}animateExistContext(t,e){return p(this,null,(function*(){const n=yield this.parseURL(t);return n.tag||(n.setTag(t),n.addEventListener("render",this.dispatcher),this.animates.push(n)),n.addContext(e),n.play(),n}))}animateNewContext(t){return p(this,null,(function*(){const e=yield this.parseURL(t);e.tag||(e.setTag(t),e.addEventListener("render",this.dispatcher),this.animates.push(e));const n=document.createElement("canvas");return n.width=e.width,n.height=e.height,e.addContext(n.getContext("2d")),e.play(),e}))}animateImage(t){return p(this,null,(function*(){t.setAttribute("data-is-aimg","progress");const e=yield this.parseURL(t.src);try{e.tag||(e.setTag(t.src),e.addEventListener("render",this.dispatcher),this.animates.push(e)),t.setAttribute("data-is-aimg","yes");const n=document.createElement("canvas");n.width=e.width,n.height=e.height,Array.prototype.slice.call(t.attributes).forEach(t=>{-1===["alt","src","usemap","ismap","data-is-aimg","width","height"].indexOf(t.nodeName)&&n.setAttributeNode(t.cloneNode(!1))}),n.setAttribute("data-aimg-src",t.src),""!==t.alt&&n.appendChild(document.createTextNode(t.alt));let i="",r="",o=0,s="";""!==t.style.width&&"auto"!==t.style.width?i=t.style.width:t.hasAttribute("width")&&(i=t.getAttribute("width")+"px"),""!==t.style.height&&"auto"!==t.style.height?r=t.style.height:t.hasAttribute("height")&&(r=t.getAttribute("height")+"px"),""!==i&&""===r&&(o=parseFloat(i),s=i.match(/\D+$/)[0],r=Math.round(n.height*o/n.width)+s),""!==r&&""===i&&(o=parseFloat(r),s=r.match(/\D+$/)[0],i=Math.round(n.width*o/n.height)+s),n.style.width=i,n.style.height=r;const a=t.parentNode;return a.insertBefore(n,t),a.removeChild(t),e.addContext(n.getContext("2d")),e.play(),e}catch(n){t.setAttribute("data-is-aimg","no")}}))}releaseCanvas(t){const e=t.getContext("2d");"_aimg_animation"in e&&e._aimg_animation.removeContext(e)}}n.Gyeonghwon=RL;var kL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default")],2)},LL=[];kL._withStripped=!0;const PL={name:"v-vector",extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},props:{layerId:{type:String,default:""},source:{type:Object,default(){return{features:[]}}},features:{type:Array,default(){return[]}},layerStyle:{type:[Object,void 0],default:void 0},FeatureStyle:{type:[Object,Boolean],default(){return!1}},modify:{type:[Object,Boolean],default:!1},select:{type:[Object,Boolean],default:!1},cluster:{type:[Object,Boolean],default:!1},featureFlash:{type:Boolean,default:!1},flashTime:{type:Number},overlay:{type:Object},declutter:{type:[Boolean,Number,String],default:!1},updateWhileInteracting:{type:Boolean,default:!1}},data(){return{ani:null,layerOpt:{},selectObj:null,modifyObj:null,clusterObj:null,clusterDefault:{distance:20,minDistance:0},flashInterval:null,styleCache:{},eventRender:[],eventList:["singleclick","pointermove","dblclick"],gh:null}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{cluster:{handler(t){if(null===t||!1===t)this.dispose(),this.init(!0);else if(this.clusterObj){const{distance:e}=t;(e||0===e)&&this.clusterObj.setDistance(e)}else this.dispose(),this.init(!0)},immediate:!1,deep:!0},features:{handler(t){var e,n;if(this.flashInterval&&(clearInterval(this.flashInterval),this.flashInterval=null),this.cluster){this.clusterObj.getSource().clear();const n=nE(t,this.map,this.FeatureStyle&&(null==(e=Object.keys(this.FeatureStyle))?void 0:e.length)>0);this.clusterObj.getSource().addFeatures(n),this.$emit("change",n)}else{const e=this.layer.getSource();e.clear();const i=nE(t,this.map,this.FeatureStyle&&(null==(n=Object.keys(this.FeatureStyle))?void 0:n.length)>0);i.forEach(t=>p(this,null,(function*(){var n;const i=t.getProperties();if("polyline"===t.type&&WC(t,"arrow"))Uk(g({coordinates:t.coordinates,map:this.map,source:e},t.arrow));else if("Point"===t.getGeometry().getType()&&(null==(n=i.style)?void 0:n.icon)&&void 0!==i.style.icon.animate&&i.style.icon.animate){const e=t.getStyle();if(null===this.gh){const t=new RL({ignoreSingle:!1,forceLoop:!1,waitingMilliSec:1e4});this.gh=t,t.addEventListener("need_render",t=>(this.map.render(),!1))}const n=yield this.gh.animateNewContext(e.getImage().getSrc());e.setImage(new Ya({anchor:[.5,1],anchorXUnits:"fraction",anchorYUnits:"fraction",img:n.latestContext().canvas,imgSize:[n.width,n.height]}))}}))),e.addFeatures(i),this.$emit("change",i)}this.modify&&this.setModify(),this.featureFlash&&(this.setFlashAnimate(),this.flashTime&&(this.flashInterval=setInterval(()=>{this.setFlashAnimate()},this.flashTime)))},immediate:!1,deep:!0},modify:{handler(t){t?this.setModify():(this.selectObj&&(this.map.removeInteraction(this.selectObj),this.selectObj=null),this.modifyObj&&(this.map.removeInteraction(this.modifyObj),this.modifyObj=null))},immediate:!1}},methods:{init(t){const e=cE(this.source,this.map);if(this.features.length>0){e.clear();const t=nE(this.features,this.map,this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0);e.addFeatures(t)}if(this.cluster){let t={};t="boolean"==typeof this.cluster&&this.cluster?g(g({},t),this.clusterDefault):this.cluster;const n=d(g({},t),{source:e});this.clusterObj=new Db(n),this.layerOpt=d(g({},this.$props),{source:this.clusterObj,style:n.style}),this.layer=dE(this.layerOpt,this.map),this.layer.set("cluster",!0),this.layer.set("overlay",this.overlay)}else this.layerStyle&&Object.keys(this.layerStyle).length>0?(this.layerOpt=d(g({},this.$props),{source:e,style:t=>eE(t,this.layerStyle,this.map)}),this.layer=new nc(this.layerOpt)):(this.layerOpt=d(g({},this.$props),{source:e}),this.layer=new nc(this.layerOpt),this.layer.setStyle(t=>t.get("style")?eE(t,t.get("style"),this.map):this.FeatureStyle&&Object.keys(this.FeatureStyle).length>0?tE(this.FeatureStyle):tE({fill:{color:"rgba(67,126,255,0.15)"},stroke:{color:"rgba(67,126,255,1)",width:1}})));const n=this.layerId||"vector-layer-"+m();this.layer.set("id",n),this.layer.set("type","vector"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex);let i=this.$parent.$options.name;"v-gd-route"===this.$parent.$options.name&&(i=this.$parent.$parent.$options.name),Fk({type:i,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.features.forEach(t=>{("polyline"===t.type||"Polyline"===t.type||"LineString"===t.type)&&WC(t,"arrow")&&Uk(g({coordinates:t.coordinates,map:this.map,source:e},t.arrow))}),this.map.getView().on("change:resolution",()=>{const t=this.map.getView().getZoom();e.getFeatures().forEach(t=>{t.get("isArrow")&&this.layer.getSource().removeFeature(t)}),Math.round(t)===t&&this.features.forEach(t=>{"polyline"===t.type&&WC(t,"arrow")&&Uk(g({coordinates:t.coordinates,map:this.map,source:e},t.arrow))})}),this.featureFlash&&(this.setFlashAnimate(),this.flashTime&&(this.flashInterval=setInterval(()=>{this.setFlashAnimate()},this.flashTime))),this.$emit("load",this.layer,this.map),this.modify&&this.setModify(),t&&this.$emit("change",e.getFeatures()),this.eventList.forEach(t=>{this.eventRender.push(this.map.on(t,e=>this.eventHandler(t,e)))})},getFeatureAtPixel(t){return this.map.forEachFeatureAtPixel(t,(t,e)=>{var n;if((null==e?void 0:e.get("id"))===(null==(n=this.layer)?void 0:n.get("id")))return t},{})},eventHandler(t,e){const{pixel:n}=e,i=this.getFeatureAtPixel(n);this.$emit(t,e,i)},setFlashAnimate(){var t;if(this.cluster){const e=(null==(t=this.clusterObj)?void 0:t.getFeatures())||[];e.length>0&&e.forEach(t=>{const e=t.get("features");1===e.length&&e.forEach(t=>{t.get("flash")&&this.pulseFeature(t)})})}else{const t=this.layer.getSource();t&&t.getFeatures().forEach(t=>{t.get("flash")&&this.pulseFeature(t)})}},dispose(){this.eventRender.forEach(t=>{H(t)}),this.clusterObj&&(this.clusterObj.getSource().clear(),this.clusterObj=null),this.map.removeLayer(this.layer),this.map.removeInteraction(this.selectObj),this.map.removeInteraction(this.modifyObj)},getFeatureById(t){const e=this.layer.getSource().getFeatures();let n;return e.forEach(e=>{(e.get("id")===t||e.getId()===t)&&(n=e)}),n},updateFeatureById(t,e){this.layer.getSource().getFeatures().forEach(n=>{if(n.get("id")===t&&"object"==typeof e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.update(t,e[t])})},getFeatures(){return this.layer.getSource().getFeatures()},setModify(){let t,e=[];if(this.select){let t;WC(this.select,"style")&&(t=tE(this.select.style)),this.selectObj=new Bf({style:t,layers:[this.layer]}),this.map.addInteraction(this.selectObj),this.selectObj.on("select",t=>{this.$emit("select",t,this.map)}),e=this.selectObj.getFeatures()}else e=new rt(this.layer.getSource().getFeatures());WC(this.modify,"style")&&(t=tE(this.modify.style)),this.modifyObj=new If({features:e,style:t}),this.map.addInteraction(this.modifyObj),this.modifyObj.on("modifystart",t=>{this.$emit("modifystart",t,this.map),e.getArray().forEach(t=>{t.getGeometry().on("change",e=>{this.$emit("modifychange",e,this.map,t)})})}),this.modifyObj.on("modifyend",t=>{var e;const n=t.features.getArray()[0],i=n.getGeometry(),r=null==(e=n.get("type"))?void 0:e.toLowerCase();"linestring"===r||"polyline"===r?t.measure=DE(i):"polygon"===r&&(t.measure=RE(i));const o=d(g({},t),{select:this.selectObj});this.$emit("modifyend",o,this.map)})},pulseFeature(t){const e=t.get("coordinates"),n=new qC(new hr(e)),i=t.get("flash"),{radius:r,color:o,duration:s,width:a}=i;n.setStyle(new Gs({image:new Ls({radius:r||30,stroke:new qo({color:o,width:a})})})),this.layer.animateFeature(n,new Wk({fade:ua,duration:s,easing:ua}))},flash(t){const e=t.get("flash"),{radius:n,timeout:i}=e,r=1e3*Number(e.rate)||3e3,o=Date.now(),s=t.getGeometry().clone(),a=this.layer.on("postrender",u),l=this.map;let h=t.get("timer");function u(t){const i=t.frameState.time-o;if(i>=r)return void H(a);const h=kc(t),u=i/r,c=ua(u)*((n>10?n:25)||25),g=to(e.color||"rgba(255, 0, 0, 1)");g.slice();const d=ua(1-u),f=new Gs({zIndex:0,image:new Ls({radius:c,stroke:new qo({color:`rgba(${g[0]},${g[1]},${g[2]},${d})`,width:d})})});h.setStyle(f),h.drawGeometry(s),l.render()}h&&(H(a),clearTimeout(h),t.set("timer",null)),i&&i>0&&(h=setTimeout(()=>{this.flash(t)},i))},overlayClose(){this.overlay.close()},getClosestFeatureToCoordinate(t,e){return this.layer.getSource().getClosestFeatureToCoordinate(t,e)}},mounted(){this.init()},beforeDestroy(){this.dispose(),null!==this.gh&&(this.gh=null)}},QL={};var zL=zE(PL,kL,LL,!1,FL,null,null,null);function FL(t){for(let e in QL)this[e]=QL[e]}zL.options.__file="src/components/layers/vector/index.vue";const OL=function(){return zL.exports}();OL.install=function(t){t.component(OL.name,OL)};class NL{constructor(){this.globalCounter_=0,this.refToFeature_=new Map,this.uidToRef_=new Map,this.freeGlobalRef_=[],this.polygonBatch={entries:{},geometriesCount:0,verticesCount:0,ringsCount:0},this.pointBatch={entries:{},geometriesCount:0},this.lineStringBatch={entries:{},geometriesCount:0,verticesCount:0}}addFeatures(t,e){for(let n=0;n0?t[n-1]:null,h=l?l[l.length-1]:0,u=a[a.length-1];a=h>0?a.map(t=>t-h):a,this.addCoordinates_("Polygon",e.slice(h,u),a,i,r,o,s)}break}case"MultiLineString":{const t=n;for(let n=0,a=t.length;n0?t[n-1]:0;this.addCoordinates_("LineString",e.slice(a,t[n]),null,i,r,o,s)}break}case"MultiPoint":for(let t=0,n=e.length;t1)return void this.addCoordinates_("MultiPolygon",e,n,i,r,o,s)}this.polygonBatch.entries[r]||(this.polygonBatch.entries[r]=this.addRefToEntry_(r,{feature:i,flatCoordss:[],verticesCount:0,ringsCount:0,ringsVerticesCounts:[]})),a=e.length/o;const l=n.length,h=n.map((t,e,n)=>e>0?(t-n[e-1])/o:t/o);this.polygonBatch.verticesCount+=a,this.polygonBatch.ringsCount+=l,this.polygonBatch.geometriesCount++,this.polygonBatch.entries[r].flatCoordss.push(GL(e,o)),this.polygonBatch.entries[r].ringsVerticesCounts.push(h),this.polygonBatch.entries[r].verticesCount+=a,this.polygonBatch.entries[r].ringsCount+=l;for(let n=0,a=t.length;n0?t[n-1]:0;this.addCoordinates_("LinearRing",e.slice(a,t[n]),null,i,r,o,s)}break}case"Point":this.pointBatch.entries[r]||(this.pointBatch.entries[r]=this.addRefToEntry_(r,{feature:i,flatCoordss:[]})),this.pointBatch.geometriesCount++,this.pointBatch.entries[r].flatCoordss.push(e);break;case"LineString":case"LinearRing":this.lineStringBatch.entries[r]||(this.lineStringBatch.entries[r]=this.addRefToEntry_(r,{feature:i,flatCoordss:[],verticesCount:0})),a=e.length/o,this.lineStringBatch.verticesCount+=a,this.lineStringBatch.geometriesCount++,this.lineStringBatch.entries[r].flatCoordss.push(jL(e,o,s)),this.lineStringBatch.entries[r].verticesCount+=a;break}}addRefToEntry_(t,e){const n=this.uidToRef_.get(t),i=n||this.freeGlobalRef_.pop()||++this.globalCounter_;return e.ref=i,n||(this.refToFeature_.set(i,e.feature),this.uidToRef_.set(t,i)),e}returnRef_(t,e){if(!t)throw new Error("This feature has no ref: "+e);this.refToFeature_.delete(t),this.uidToRef_.delete(e),this.freeGlobalRef_.push(t)}changeFeature(t){this.removeFeature(t);const e=t.getGeometry();!e||this.addGeometry_(e,t)}removeFeature(t){let e;e=this.clearFeatureEntryInPointBatch_(t)||e,e=this.clearFeatureEntryInPolygonBatch_(t)||e,e=this.clearFeatureEntryInLineStringBatch_(t)||e,e&&this.returnRef_(e.ref,X(e.feature))}clear(){this.polygonBatch.entries={},this.polygonBatch.geometriesCount=0,this.polygonBatch.verticesCount=0,this.polygonBatch.ringsCount=0,this.lineStringBatch.entries={},this.lineStringBatch.geometriesCount=0,this.lineStringBatch.verticesCount=0,this.pointBatch.entries={},this.pointBatch.geometriesCount=0,this.globalCounter_=0,this.freeGlobalRef_=[],this.refToFeature_.clear(),this.uidToRef_.clear()}getFeatureFromRef(t){return this.refToFeature_.get(t)}}function GL(t,e){return 2===e?t:t.filter((t,n)=>n%e<2)}function jL(t,e,n){return 3===e&&"XYM"===n?t:4===e?t.filter((t,n)=>n%e!==2):3===e?t.map((t,n)=>n%e!==2?t:0):new Array(1.5*t.length).fill(0).map((e,n)=>n%3===2?0:t[Math.round(n/1.5)])}const UL=NL,qL={GENERATE_POLYGON_BUFFERS:"GENERATE_POLYGON_BUFFERS",GENERATE_POINT_BUFFERS:"GENERATE_POINT_BUFFERS",GENERATE_LINE_STRING_BUFFERS:"GENERATE_LINE_STRING_BUFFERS"};function VL(){const t='const t="GENERATE_POLYGON_BUFFERS",e="GENERATE_POINT_BUFFERS",n="GENERATE_LINE_STRING_BUFFERS";function r(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function x(t,e){const n=(r=e)[0]*r[3]-r[1]*r[2];var r;!function(t,e){if(!t)throw new Error(e)}(0!==n,"Transformation matrix cannot be inverted");const x=e[0],o=e[1],u=e[2],i=e[3],f=e[4],s=e[5];return t[0]=i/n,t[1]=-o/n,t[2]=-u/n,t[3]=x/n,t[4]=(u*s-i*f)/n,t[5]=-(x*s-o*f)/n,t}function o(t,e,n=2){const r=e&&e.length,x=r?e[0]*n:t.length;let o=u(t,0,x,n,!0);const i=[];if(!o||o.next===o.prev)return i;let s,l,c;if(r&&(o=function(t,e,n,r){const x=[];for(let n=0,o=e.length;n80*n){s=1/0,l=1/0;let e=-1/0,r=-1/0;for(let o=n;oe&&(e=n),x>r&&(r=x)}c=Math.max(e-s,r-l),c=0!==c?32767/c:0}return f(o,i,n,s,l,c,0),i}function u(t,e,n,r,x){let o;if(x===function(t,e,n,r){let x=0;for(let o=e,u=n-r;o0)for(let x=e;x=e;x-=r)o=z(x/r|0,t[x],t[x+1],o);return o&&M(o,o.next)&&(F(o),o=o.next),o}function i(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!M(r,r.next)&&0!==d(r.prev,r,r.next))r=r.next;else{if(F(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function f(t,e,n,r,x,o,u){if(!t)return;!u&&o&&function(t,e,n,r){let x=t;do{0===x.z&&(x.z=v(x.x,x.y,e,n,r)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next}while(x!==t);x.prevZ.nextZ=null,x.prevZ=null,function(t){let e,n=1;do{let r,x=t;t=null;let o=null;for(e=0;x;){e++;let u=x,i=0;for(let t=0;t0||f>0&&u;)0!==i&&(0===f||!u||x.z<=u.z)?(r=x,x=x.nextZ,i--):(r=u,u=u.nextZ,f--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;x=u}o.nextZ=null,n*=2}while(e>1)}(x)}(t,r,x,o);let y=t;for(;t.prev!==t.next;){const h=t.prev,p=t.next;if(o?l(t,r,x,o):s(t))e.push(h.i,t.i,p.i),F(t),t=p.next,y=p.next;else if((t=p)===y){u?1===u?f(t=c(i(t),e),e,n,r,x,o,2):2===u&&a(t,e,n,r,x,o):f(i(t),e,n,r,x,o,1);break}}}function s(t){const e=t.prev,n=t,r=t.next;if(d(e,n,r)>=0)return!1;const x=e.x,o=n.x,u=r.x,i=e.y,f=n.y,s=r.y,l=xo?x>u?x:u:o>u?o:u,y=i>f?i>s?i:s:f>s?f:s;let h=r.next;for(;h!==e;){if(h.x>=l&&h.x<=a&&h.y>=c&&h.y<=y&&b(x,i,o,f,u,s,h.x,h.y)&&d(h.prev,h,h.next)>=0)return!1;h=h.next}return!0}function l(t,e,n,r){const x=t.prev,o=t,u=t.next;if(d(x,o,u)>=0)return!1;const i=x.x,f=o.x,s=u.x,l=x.y,c=o.y,a=u.y,y=if?i>s?i:s:f>s?f:s,g=l>c?l>a?l:a:c>a?c:a,Z=v(y,h,e,n,r),M=v(p,g,e,n,r);let w=t.prevZ,m=t.nextZ;for(;w&&w.z>=Z&&m&&m.z<=M;){if(w.x>=y&&w.x<=p&&w.y>=h&&w.y<=g&&w!==x&&w!==u&&b(i,l,f,c,s,a,w.x,w.y)&&d(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,m.x>=y&&m.x<=p&&m.y>=h&&m.y<=g&&m!==x&&m!==u&&b(i,l,f,c,s,a,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;w&&w.z>=Z;){if(w.x>=y&&w.x<=p&&w.y>=h&&w.y<=g&&w!==x&&w!==u&&b(i,l,f,c,s,a,w.x,w.y)&&d(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;m&&m.z<=M;){if(m.x>=y&&m.x<=p&&m.y>=h&&m.y<=g&&m!==x&&m!==u&&b(i,l,f,c,s,a,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function c(t,e){let n=t;do{const r=n.prev,x=n.next.next;!M(r,x)&&w(r,n,n.next,x)&&E(r,x)&&E(x,r)&&(e.push(r.i,n.i,x.i),F(n),F(n.next),n=t=x),n=n.next}while(n!==t);return i(n)}function a(t,e,n,r,x,o){let u=t;do{let t=u.next.next;for(;t!==u.prev;){if(u.i!==t.i&&Z(u,t)){let s=I(u,t);return u=i(u,u.next),s=i(s,s.next),f(u,e,n,r,x,o,0),void f(s,e,n,r,x,o,0)}t=t.next}u=u.next}while(u!==t)}function y(t,e){return t.x-e.x}function h(t,e){const n=function(t,e){let n=e;const r=t.x,x=t.y;let o,u=-1/0;do{if(x<=n.y&&x>=n.next.y&&n.next.y!==n.y){const t=n.x+(x-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>u&&(u=t,o=n.x=n.x&&n.x>=f&&r!==n.x&&b(xo.x||n.x===o.x&&p(o,n)))&&(o=n,l=e)}n=n.next}while(n!==i);return o}(t,e);if(!n)return e;const r=I(n,t);return i(r,r.next),i(n,n.next)}function p(t,e){return d(t.prev,t,e.prev)<0&&d(e.next,t,t.next)<0}function v(t,e,n,r,x){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*x|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*x|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){let e=t,n=t;do{(e.x=(t-u)*(o-i)&&(t-u)*(r-i)>=(n-u)*(e-i)&&(n-u)*(o-i)>=(x-u)*(r-i)}function Z(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(E(t,e)&&E(e,t)&&function(t,e){let n=t,r=!1;const x=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&x<(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)&&(d(t.prev,t,e.prev)||d(t,e.prev,e))||M(t,e)&&d(t.prev,t,t.next)>0&&d(e.prev,e,e.next)>0)}function d(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function M(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){const x=A(d(t,e,n)),o=A(d(t,e,r)),u=A(d(n,r,t)),i=A(d(n,r,e));return x!==o&&u!==i||(!(0!==x||!m(t,n,e))||(!(0!==o||!m(t,r,e))||(!(0!==u||!m(n,t,r))||!(0!==i||!m(n,e,r)))))}function m(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 A(t){return t>0?1:t<0?-1:0}function E(t,e){return d(t.prev,t,t.next)<0?d(t,e,t.next)>=0&&d(t,t.prev,e)>=0:d(t,e,t.prev)<0||d(t,t.next,e)<0}function I(t,e){const n=P(t.i,t.x,t.y),r=P(e.i,e.x,e.y),x=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=x,x.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function z(t,e,n,r){const x=P(t,e,n);return r?(x.next=r.next,x.prev=r,r.next.prev=x,r.next=x):(x.prev=x,x.next=x),x}function F(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 P(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}new Array(6);const B=[],N={vertexPosition:0,indexPosition:0};function R(t,e,n,r,x){t[e+0]=n,t[e+1]=r,t[e+2]=x}function S(t,e,n,r,x,o){const u=3+x,i=t[e+0],f=t[e+1],s=B;s.length=x;for(let n=0;n0?f:2*Math.PI-f}let M=-1,w=-1,m=c;const A=null!==o;if(null!==x){M=d(b,Z,r(s,[...[t[x],t[x+1]]])),Math.cos(M)<=.985&&(m+=Math.tan((M-Math.PI)/2))}if(A){w=d(Z,b,r(s,[...[t[o],t[o+1]]])),Math.cos(w)<=.985&&(m+=Math.tan((Math.PI-w)/2))}function E(t,e){return 0===e?1e4*t:Math.sign(e)*(1e4*t+Math.abs(e))}return u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(0,c)),u.push(...f),u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(1,c)),u.push(...f),u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(2,c)),u.push(...f),u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(3,c)),u.push(...f),i.push(y,y+1,y+2,y+1,y+3,y+2),{length:l+Math.sqrt((Z[0]-b[0])*(Z[0]-b[0])+(Z[1]-b[1])*(Z[1]-b[1])),angle:m}}function _(t,e,n,r,x){const u=2+x;let i=e;const f=t.slice(i,i+x);i+=x;const s=t[i++];let l=0;const c=new Array(s-1);for(let e=0;e{const o=r.data;switch(o.type){case e:{const t=3,e=2,n=o.customAttributesSize,r=e+n,x=new Float32Array(o.renderInstructions),u=x.length/r,i=4*u*(n+t),f=new Uint32Array(6*u),s=new Float32Array(i);let l;for(let t=0;t0?h=i+(n-1)*r:c&&(h=o-r);let p=null;ne+(t[n].size||1),0)}function WL(t,e,n,i){const r=(2+YL(n))*t.geometriesCount;(!e||e.length!==r)&&(e=new Float32Array(r));const o=[];let s=0;for(const a in t.entries){const r=t.entries[a];for(let t=0,a=r.flatCoordss.length;t({name:"a_"+t,size:e.size||1,type:GD.FLOAT}));this.polygonAttributesDesc_=[{name:tP.POSITION,size:2,type:GD.FLOAT},...s],this.lineStringAttributesDesc_=[{name:tP.SEGMENT_START,size:2,type:GD.FLOAT},{name:tP.MEASURE_START,size:1,type:GD.FLOAT},{name:tP.SEGMENT_END,size:2,type:GD.FLOAT},{name:tP.MEASURE_END,size:1,type:GD.FLOAT},{name:tP.JOIN_ANGLES,size:2,type:GD.FLOAT},{name:tP.DISTANCE,size:1,type:GD.FLOAT},{name:tP.PARAMETERS,size:1,type:GD.FLOAT},...s],this.pointAttributesDesc_=[{name:tP.POSITION,size:2,type:GD.FLOAT},{name:tP.INDEX,size:1,type:GD.FLOAT},...s],this.setHelper(n)}generateBuffers(t,e){return p(this,null,(function*(){const n=this.generateRenderInstructions_(t,e),[i,r,o]=yield Promise.all([this.generateBuffersForType_(n.polygonInstructions,"Polygon",e),this.generateBuffersForType_(n.lineStringInstructions,"LineString",e),this.generateBuffersForType_(n.pointInstructions,"Point",e)]),s=_t(ut(),e);return{polygonBuffers:i,lineStringBuffers:r,pointBuffers:o,invertVerticesTransform:s}}))}generateRenderInstructions_(t,e){const n=this.hasFill_?ZL(t.polygonBatch,new Float32Array(0),this.customAttributes_,e):null,i=this.hasStroke_?XL(t.lineStringBatch,new Float32Array(0),this.customAttributes_,e):null,r=this.hasSymbol_?WL(t.pointBatch,new Float32Array(0),this.customAttributes_,e):null;return{polygonInstructions:n,lineStringInstructions:i,pointInstructions:r}}generateBuffersForType_(t,e,n){if(null===t)return null;const i=$L++;let r;switch(e){case"Polygon":r=qL.GENERATE_POLYGON_BUFFERS;break;case"LineString":r=qL.GENERATE_LINE_STRING_BUFFERS;break;case"Point":r=qL.GENERATE_POINT_BUFFERS;break}const o={id:i,type:r,renderInstructions:t.buffer,renderInstructionsTransform:n,customAttributesSize:YL(this.customAttributes_)};return JL.postMessage(o,[t.buffer]),t=null,new Promise(t=>{const e=n=>{const r=n.data;if(r.id!==i||(JL.removeEventListener("message",e),!this.helper_.getGL()))return;const o=new SD(dD,mD).fromArrayBuffer(r.vertexBuffer),s=new SD(fD,mD).fromArrayBuffer(r.indexBuffer);this.helper_.flushBufferData(o),this.helper_.flushBufferData(s),t([s,o])};JL.addEventListener("message",e)})}render(t,e,n){this.hasFill_&&this.renderInternal_(t.polygonBuffers[0],t.polygonBuffers[1],this.fillProgram_,this.polygonAttributesDesc_,e,n),this.hasStroke_&&this.renderInternal_(t.lineStringBuffers[0],t.lineStringBuffers[1],this.strokeProgram_,this.lineStringAttributesDesc_,e,n),this.hasSymbol_&&this.renderInternal_(t.pointBuffers[0],t.pointBuffers[1],this.symbolProgram_,this.pointAttributesDesc_,e,n)}renderInternal_(t,e,n,i,r,o){const s=t.getSize();0!==s&&(this.helper_.useProgram(n,r),this.helper_.bindBuffer(e),this.helper_.bindBuffer(t),this.helper_.enableAttributes(i),o(),this.helper_.drawElements(0,s))}setHelper(t,e=null){this.helper_=t,this.hasFill_&&(this.fillProgram_=this.helper_.getProgram(this.fillFragmentShader_,this.fillVertexShader_)),this.hasStroke_&&(this.strokeProgram_=this.helper_.getProgram(this.strokeFragmentShader_,this.strokeVertexShader_)),this.hasSymbol_&&(this.symbolProgram_=this.helper_.getProgram(this.symbolFragmentShader_,this.symbolVertexShader_)),this.helper_.addUniforms(this.uniforms_),e&&(e.polygonBuffers&&(this.helper_.flushBufferData(e.polygonBuffers[0]),this.helper_.flushBufferData(e.polygonBuffers[1])),e.lineStringBuffers&&(this.helper_.flushBufferData(e.lineStringBuffers[0]),this.helper_.flushBufferData(e.lineStringBuffers[1])),e.pointBuffers&&(this.helper_.flushBufferData(e.pointBuffers[0]),this.helper_.flushBufferData(e.pointBuffers[1])))}}const nP=eP,iP=new Uint8Array(4);class rP{constructor(t,e){this.helper_=t;const n=t.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.depthbuffer_=n.createRenderbuffer(),this.size_=e||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}setSize(t){T(t,this.size_)||(this.size_[0]=t[0],this.size_[1]=t[1],this.updateSize_())}getSize(){return this.size_}clearCachedData(){this.dataCacheDirty_=!0}readAll(){if(this.dataCacheDirty_){const t=this.size_,e=this.helper_.getGL();e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.readPixels(0,0,t[0],t[1],e.RGBA,e.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_}readPixel(t,e){if(t<0||e<0||t>this.size_[0]||e>=this.size_[1])return iP[0]=0,iP[1]=0,iP[2]=0,iP[3]=0,iP;this.readAll();const n=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return iP[0]=this.data_[4*n],iP[1]=this.data_[4*n+1],iP[2]=this.data_[4*n+2],iP[3]=this.data_[4*n+3],iP}getTexture(){return this.texture_}getFramebuffer(){return this.framebuffer_}getDepthbuffer(){return this.depthbuffer_}updateSize_(){const t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),e.bindRenderbuffer(e.RENDERBUFFER,this.depthbuffer_),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,t[0],t[1]),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.depthbuffer_),this.data_=new Uint8Array(t[0]*t[1]*4)}}const oP=rP;function sP(t,e){const n=t.viewState.projection,i=e.getSource().getWrapX()&&n.canWrapX(),r=n.getExtent(),o=t.extent,s=i?ne(r):null,a=i?Math.ceil((o[2]-r[2])/s)+1:1;return[i?Math.floor((o[0]-r[0])/s):0,a,s]}const aP=d(g({},ND),{RENDER_EXTENT:"u_renderExtent",PATTERN_ORIGIN:"u_patternOrigin",GLOBAL_ALPHA:"u_globalAlpha"});class lP extends JD{constructor(t,e){const n={[aP.RENDER_EXTENT]:[0,0,0,0],[aP.PATTERN_ORIGIN]:[0,0],[aP.GLOBAL_ALPHA]:1};super(t,{uniforms:n,postProcesses:e.postProcesses}),this.hitDetectionEnabled_=!e.disableHitDetection,this.hitRenderTarget_,this.sourceRevision_=-1,this.previousExtent_=Lt(),this.currentTransform_=ut(),this.tmpCoords_=[0,0],this.tmpTransform_=ut(),this.tmpMat4_=Nb(),this.currentFrameStateTransform_=ut(),this.styleVariables_={},this.styles_=[],this.styleRenderers_=[],this.buffers_=[],this.applyOptions_(e),this.batch_=new UL,this.initialFeaturesAdded_=!1,this.sourceListenKeys_=null}addInitialFeatures_(t){const e=this.getLayer().getSource();let n;this.batch_.addFeatures(e.getFeatures(),n),this.sourceListenKeys_=[j(e,wc.ADDFEATURE,this.handleSourceFeatureAdded_.bind(this,n)),j(e,wc.CHANGEFEATURE,this.handleSourceFeatureChanged_,this),j(e,wc.REMOVEFEATURE,this.handleSourceFeatureDelete_,this),j(e,wc.CLEAR,this.handleSourceFeatureClear_,this)]}applyOptions_(t){this.styleVariables_=t.variables,this.styles_=Array.isArray(t.style)?t.style:[t.style]}createRenderers_(){this.buffers_=[],this.styleRenderers_=this.styles_.map(t=>new nP(t,this.styleVariables_,this.helper,this.hitDetectionEnabled_))}reset(t){this.applyOptions_(t),this.helper&&this.createRenderers_(),super.reset(t)}afterHelperCreated(){this.styleRenderers_.length?this.styleRenderers_.forEach((t,e)=>t.setHelper(this.helper,this.buffers_[e])):this.createRenderers_(),this.hitDetectionEnabled_&&(this.hitRenderTarget_=new oP(this.helper))}handleSourceFeatureAdded_(t,e){const n=e.feature;this.batch_.addFeature(n,t)}handleSourceFeatureChanged_(t){const e=t.feature;this.batch_.changeFeature(e)}handleSourceFeatureDelete_(t){const e=t.feature;this.batch_.removeFeature(e)}handleSourceFeatureClear_(){this.batch_.clear()}applyUniforms_(t){ft(this.tmpTransform_,this.currentFrameStateTransform_),gt(this.tmpTransform_,t),this.helper.setUniformMatrixValue(aP.PROJECTION_MATRIX,Gb(this.tmpMat4_,this.tmpTransform_)),_t(this.tmpTransform_,this.tmpTransform_),this.helper.setUniformMatrixValue(aP.SCREEN_TO_WORLD_MATRIX,Gb(this.tmpMat4_,this.tmpTransform_)),this.tmpCoords_[0]=0,this.tmpCoords_[1]=0,_t(this.tmpTransform_,t),At(this.tmpTransform_,this.tmpCoords_),this.helper.setUniformFloatVec2(aP.PATTERN_ORIGIN,this.tmpCoords_)}renderFrame(t){const e=this.helper.getGL();this.preRender(e,t);const[n,i,r]=sP(t,this.getLayer());this.helper.prepareDraw(t),this.renderWorlds(t,!1,n,i,r),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);const o=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderWorlds(t,!0,n,i,r),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),o}prepareFrameInternal(t){this.initialFeaturesAdded_||(this.addInitialFeatures_(t),this.initialFeaturesAdded_=!0);const e=this.getLayer(),n=e.getSource(),i=t.viewState,r=!t.viewHints[Ws.ANIMATING]&&!t.viewHints[Ws.INTERACTING],o=!Ot(this.previousExtent_,t.extent),s=this.sourceRevision_t.generateBuffers(this.batch_,l).then(t=>{this.buffers_[e]&&this.disposeBuffers(this.buffers_[e]),this.buffers_[e]=t}));Promise.all(h).then(()=>{this.ready=!0,this.getLayer().changed()}),this.previousExtent_=t.extent.slice()}return!0}renderWorlds(t,e,n,i,r){let o=n;e&&(this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0));do{this.helper.makeProjectionTransform(t,this.currentFrameStateTransform_),yt(this.currentFrameStateTransform_,o*r,0);for(let n=0,i=this.styleRenderers_.length;n{this.applyUniforms_(r.invertVerticesTransform),this.helper.applyHitDetectionUniform(e)})}}while(++othis.helper.deleteBuffer(t)),t.lineStringBuffers&&t.lineStringBuffers.filter(Boolean).forEach(t=>this.helper.deleteBuffer(t)),t.polygonBuffers&&t.polygonBuffers.filter(Boolean).forEach(t=>this.helper.deleteBuffer(t))}disposeInternal(){this.buffers_.forEach(t=>{this.disposeBuffers(t)}),this.sourceListenKeys_&&(this.sourceListenKeys_.forEach((function(t){q(t)})),this.sourceListenKeys_=null),super.disposeInternal()}}const hP=lP;class uP extends ba{constructor(t){const e=Object.assign({},t);super(e),this.styleVariables_=t.variables||{},this.style_=t.style,this.hitDetectionDisabled_=!!t.disableHitDetection}createRenderer(){return new hP(this,{style:this.style_,variables:this.styleVariables_,disableHitDetection:this.hitDetectionDisabled_})}updateStyleVariables(t){Object.assign(this.styleVariables_,t),this.changed()}setStyle(t){this.style=t,this.clearRenderer(),this.changed()}}const cP=uP,gP="http://www.w3.org/2001/XMLSchema-instance";function dP(t,e){return kP().createElementNS(t,e)}function fP(t,e){return AP(t,e,[]).join("")}function AP(t,e,n){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?n.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(t.nodeValue);else{let i;for(i=t.firstChild;i;i=i.nextSibling)AP(i,e,n)}return n}function pP(t){return"documentElement"in t}function mP(t,e,n){return t.getAttributeNS(e,n)||""}function yP(t){return(new DOMParser).parseFromString(t,"application/xml")}function vP(t,e){return function(n,i){const r=t.call(null!=e?e:this,n,i);if(void 0!==r){const t=i[i.length-1];M(t,r)}}}function _P(t,e){return function(n,i){const r=t.call(null!=e?e:this,n,i);void 0!==r&&i[i.length-1].push(r)}}function xP(t,e){return function(n,i){const r=t.call(null!=e?e:this,n,i);void 0!==r&&(i[i.length-1]=r)}}function IP(t,e,n){return function(i,r){const o=t.call(null!=n?n:this,i,r);if(void 0!==o){const t=r[r.length-1],n=void 0!==e?e:i.localName;t[n]=o}}}function wP(t,e){return function(n,i,r){t.call(null!=e?e:this,n,i,r),r[r.length-1].node.appendChild(n)}}function CP(t,e){return function(n,i,r){const o=i[i.length-1].node;let s=t;void 0===s&&(s=r);const a=void 0!==e?e:o.namespaceURI;return dP(a,s)}}const EP=CP();function bP(t,e,n,i){let r;for(r=e.firstElementChild;r;r=r.nextElementSibling){const e=t[r.namespaceURI];if(void 0!==e){const t=e[r.localName];void 0!==t&&t.call(i,r,n)}}}function SP(t,e,n,i,r){return i.push(t),bP(e,n,i,r),i.pop()}function BP(t,e,n,i,r,o){const s=(void 0!==r?r:n).length;let a,l;for(let h=0;h0?n[0]:null}readFeatureFromNode(t,e){return null}readFeatures(t,e){if(!t)return[];if("string"==typeof t){const n=yP(t);return this.readFeaturesFromDocument(n,e)}return pP(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}readFeaturesFromDocument(t,e){const n=[];for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&M(n,this.readFeaturesFromNode(i,e));return n}readFeaturesFromNode(t,e){return Y()}readGeometry(t,e){if(!t)return null;if("string"==typeof t){const n=yP(t);return this.readGeometryFromDocument(n,e)}return pP(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}readGeometryFromDocument(t,e){return null}readGeometryFromNode(t,e){return null}readProjection(t){if(!t)return null;if("string"==typeof t){const e=yP(t);return this.readProjectionFromDocument(e)}return pP(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}readProjectionFromDocument(t){return this.dataProjection}readProjectionFromNode(t){return this.dataProjection}writeFeature(t,e){const n=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(n)}writeFeatureNode(t,e){return null}writeFeatures(t,e){const n=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(n)}writeFeaturesNode(t,e){return null}writeGeometry(t,e){const n=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(n)}writeGeometryNode(t,e){return null}}const PP=LP,QP="http://www.opengis.net/gml",zP=/^\s*$/;class FP extends PP{constructor(t){super(),t=t||{},this.featureType=t.featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:_P(this.readFeaturesInternal),featureMembers:xP(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(t,e){const n=t.localName;let i=null;if("FeatureCollection"==n)i=SP([],this.FEATURE_COLLECTION_PARSERS,t,e,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){const r=e[0];let o=r.featureType,s=r.featureNS;const a="p",l="p0";if(!o&&t.childNodes){o=[],s={};for(let e=0,n=t.childNodes.length;e0&&!(t instanceof Di)){t={_content_:t};for(let e=0;e=2,"At least 2 conditions are required")}}const nQ=eQ;class iQ extends nQ{constructor(t){super("And",Array.prototype.slice.call(arguments))}}const rQ=iQ;class oQ extends tQ{constructor(t,e,n){if(super("BBOX"),this.geometryName=t,this.extent=e,4!==e.length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=n}}const sQ=oQ;function aQ(t){const e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(rQ,e))}function lQ(t,e,n){return new sQ(t,e,n)}const hQ={"http://www.opengis.net/gml":{boundedBy:IP(OP.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:_P(OP.prototype.readFeaturesInternal)}},uQ={"http://www.opengis.net/wfs":{totalInserted:IP(NP),totalUpdated:IP(NP),totalDeleted:IP(NP)},"http://www.opengis.net/wfs/2.0":{totalInserted:IP(NP),totalUpdated:IP(NP),totalDeleted:IP(NP)}},cQ={"http://www.opengis.net/wfs":{TransactionSummary:IP(EQ,"transactionSummary"),InsertResults:IP(MQ,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:IP(EQ,"transactionSummary"),InsertResults:IP(MQ,"insertIds")}},gQ={"http://www.opengis.net/wfs":{PropertyName:wP(jP)},"http://www.opengis.net/wfs/2.0":{PropertyName:wP(jP)}},dQ={"http://www.opengis.net/wfs":{Insert:wP(TQ),Update:wP(LQ),Delete:wP(kQ),Property:wP(PQ),Native:wP(QQ)},"http://www.opengis.net/wfs/2.0":{Insert:wP(TQ),Update:wP(LQ),Delete:wP(kQ),Property:wP(PQ),Native:wP(QQ)}},fQ="feature",AQ="http://www.w3.org/2000/xmlns/",pQ={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},mQ={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},yQ={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},vQ={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},_Q={"2.0.0":JP,"1.1.0":ZP,"1.0.0":HP},xQ="1.1.0";class IQ extends PP{constructor(t){super(),t=t||{},this.version_=t.version?t.version:xQ,this.featureType_=t.featureType,this.featureNS_=t.featureNS,this.gmlFormat_=t.gmlFormat?t.gmlFormat:new _Q[this.version_],this.schemaLocation_=t.schemaLocation?t.schemaLocation:vQ[this.version_]}getFeatureType(){return this.featureType_}setFeatureType(t){this.featureType_=t}readFeaturesFromNode(t,e){const n={node:t};Object.assign(n,{featureType:this.featureType_,featureNS:this.featureNS_}),Object.assign(n,this.getReadOptions(t,e||{}));const i=[n];let r;r="2.0.0"===this.version_?hQ:this.gmlFormat_.FEATURE_COLLECTION_PARSERS;let o=SP([],r,t,i,this.gmlFormat_);return o||(o=[]),o}readTransactionResponse(t){if(t){if("string"==typeof t){const e=yP(t);return this.readTransactionResponseFromDocument(e)}return pP(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t)}}readFeatureCollectionMetadata(t){if(t){if("string"==typeof t){const e=yP(t);return this.readFeatureCollectionMetadataFromDocument(e)}return pP(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t)}}readFeatureCollectionMetadataFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(e)}readFeatureCollectionMetadataFromNode(t){const e={},n=GP(t.getAttribute("numberOfFeatures"));return e.numberOfFeatures=n,SP(e,hQ,t,[],this.gmlFormat_)}readTransactionResponseFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(e)}readTransactionResponseFromNode(t){return SP({},cQ,t,[])}writeGetFeature(t){const e=dP(mQ[this.version_],"GetFeature");e.setAttribute("service","WFS"),e.setAttribute("version",this.version_),t.handle&&e.setAttribute("handle",t.handle),t.outputFormat&&e.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&e.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&e.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&e.setAttribute("startIndex",String(t.startIndex)),void 0!==t.count&&e.setAttribute("count",String(t.count)),void 0!==t.viewParams&&e.setAttribute("viewParams",t.viewParams),e.setAttributeNS(gP,"xsi:schemaLocation",this.schemaLocation_);const n={node:e};if(Object.assign(n,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),ot(Array.isArray(t.featureTypes),"`options.featureTypes` must be an Array"),"string"==typeof t.featureTypes[0]){let i=t.filter;t.bbox&&(ot(t.geometryName,"`options.geometryName` must also be provided when `options.bbox` is set"),i=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,i)),Object.assign(n,{geometryName:t.geometryName,filter:i}),ez(e,t.featureTypes,[n])}else t.featureTypes.forEach(i=>{const r=this.combineBboxAndFilter(i.geometryName,i.bbox,t.srsName,t.filter);Object.assign(n,{geometryName:i.geometryName,filter:r}),ez(e,[i.name],[n])});return e}combineBboxAndFilter(t,e,n,i){const r=lQ(t,e,n);return i?aQ(i,r):r}writeTransaction(t,e,n,i){const r=[],o=i.version?i.version:this.version_,s=dP(mQ[o],"Transaction");let a;s.setAttribute("service","WFS"),s.setAttribute("version",o),i&&(a=i.gmlOptions?i.gmlOptions:{},i.handle&&s.setAttribute("handle",i.handle)),s.setAttributeNS(gP,"xsi:schemaLocation",vQ[o]);const l=wQ(s,a,o,i);return t&&CQ("Insert",t,r,l),e&&CQ("Update",e,r,l),n&&CQ("Delete",n,r,l),i.nativeElements&&CQ("Native",i.nativeElements,r,l),s}readProjectionFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(e);return null}readProjectionFromNode(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(0!==e.childNodes.length&&(1!==e.childNodes.length||3!==e.firstChild.nodeType)){const t=[{}];return this.gmlFormat_.readGeometryElement(e,t),ni(t.pop().srsName)}}return null}}function wQ(t,e,n,i){const r=i.featurePrefix?i.featurePrefix:fQ;let o;return"1.0.0"===n?o=2:"1.1.0"===n?o=3:"2.0.0"===n&&(o=3.2),Object.assign({node:t},{version:n,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:r,gmlVersion:o,hasZ:i.hasZ,srsName:i.srsName},e)}function CQ(t,e,n,i){MP(i,dQ,CP(t),e,n)}function EQ(t,e){return SP({},uQ,t,e)}const bQ={"http://www.opengis.net/ogc":{FeatureId:_P((function(t,e){return t.getAttribute("fid")}))},"http://www.opengis.net/ogc/1.1":{FeatureId:_P((function(t,e){return t.getAttribute("fid")}))}};function SQ(t,e){bP(bQ,t,e)}const BQ={"http://www.opengis.net/wfs":{Feature:SQ},"http://www.opengis.net/wfs/2.0":{Feature:SQ}};function MQ(t,e){return SP([],BQ,t,e)}function TQ(t,e,n){const i=n[n.length-1],r=i.featureType,o=i.featureNS,s=i.gmlVersion,a=dP(o,r);t.appendChild(a),2===s?HP.prototype.writeFeatureElement(a,e,n):3===s?ZP.prototype.writeFeatureElement(a,e,n):JP.prototype.writeFeatureElement(a,e,n)}function DQ(t,e,n){const i=n[n.length-1].version,r=pQ[i],o=dP(r,"Filter"),s=dP(r,"FeatureId");o.appendChild(s),s.setAttribute("fid",e),t.appendChild(o)}function RQ(t,e){t=t||fQ;const n=t+":";return e.startsWith(n)?e:n+e}function kQ(t,e,n){const i=n[n.length-1];ot(void 0!==e.getId(),"Features must have an id set");const r=i.featureType,o=i.featurePrefix,s=i.featureNS,a=RQ(o,r);t.setAttribute("typeName",a),t.setAttributeNS(AQ,"xmlns:"+o,s);const l=e.getId();void 0!==l&&DQ(t,l,n)}function LQ(t,e,n){const i=n[n.length-1];ot(void 0!==e.getId(),"Features must have an id set");const r=i.version,o=i.featureType,s=i.featurePrefix,a=i.featureNS,l=RQ(s,o),h=e.getGeometryName();t.setAttribute("typeName",l),t.setAttributeNS(AQ,"xmlns:"+s,a);const u=e.getId();if(void 0!==u){const o=e.getKeys(),s=[];for(let t=0,n=o.length;tzR()},declutter:{type:[Boolean,Number,String],default:!1},updateWhileInteracting:{type:Boolean,default:!1}},data(){return{vectorSource:null,eventList:["singleclick","pointermove","dblclick"],eventRender:[]}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{data:{handler(t){if(this.vectorSource&&(this.vectorSource.clear(),t)){const t=(new pm).readFeatures(this.data);this.vectorSource.addFeatures(t)}},deep:!0},layerStyle:{handler(t){this.layer.setStyle(t)},deep:!0}},methods:{init(){if(this.vectorSource=new Dc(g({},this.source)),this.data){const t=(new pm).readFeatures(this.data);this.vectorSource.addFeatures(t)}this.layer=new cP(d(g({},this.$props),{source:this.vectorSource,style:this.layerStyle})),this.layer.setStyle(this.layerStyle);const t=this.layerId||"webGlVector-layer-"+m();this.layer.set("id",t),this.layer.set("type","webGlVector"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex);let e=this.$parent.$options.name;"v-gd-route"===this.$parent.$options.name&&(e=this.$parent.$parent.$options.name),Fk({type:e,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.$emit("load",this.layer,this.map),this.eventList.forEach(t=>{this.eventRender.push(this.map.on(t,e=>this.eventHandler(t,e)))})},getFeatureAtPixel(t){return this.map.forEachFeatureAtPixel(t,(t,e)=>{var n;if((null==e?void 0:e.get("id"))===(null==(n=this.layer)?void 0:n.get("id")))return t},{})},eventHandler(t,e){const{pixel:n}=e,i=this.getFeatureAtPixel(n);this.$emit(t,e,i)},dispose(){this.eventRender.forEach(t=>{H(t)}),this.map.removeLayer(this.layer),this.layer=null}},mounted(){this.init()},beforeDestroy(){this.dispose()}};let oz,sz;const az={};var lz=zE(rz,oz,sz,!1,hz,null,null,null);function hz(t){for(let e in az)this[e]=az[e]}lz.options.__file="src/components/layers/webGlVector/index.vue";const uz=function(){return lz.exports}();uz.install=function(t){t.component(uz.name,uz)};const cz={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},gz={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class dz extends nD{constructor(t,e){super(t,e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=ut(),this.tileClipContexts_=null}drawTile(t,e,n,i,r,o,s,a){this.updateExecutorGroup_(t,e.pixelRatio,e.viewState.projection),this.tileImageNeedsRender_(t)&&this.renderTileImage_(t,e),super.drawTile(t,e,n,i,r,o,s,a)}getTile(t,e,n,i){const r=this.getOrCreateTile(t,e,n,i);if(!r)return null;const o=i.viewState.resolution,s=i.viewHints;return(!(s[Ws.ANIMATING]||s[Ws.INTERACTING])||!r.wantedResolution)&&(r.wantedResolution=o),r}prepareFrame(t){const e=this.getLayer().getRevision();return this.renderedLayerRevision_!==e&&(this.renderedLayerRevision_=e,this.renderedTiles.length=0),super.prepareFrame(t)}updateExecutorGroup_(t,e,n){const i=this.getLayer(),r=i.getRevision(),o=i.getRenderOrder()||null,s=t.wantedResolution,a=t.getReplayState(i);if(!a.dirty&&a.renderedResolution===s&&a.renderedRevision==r&&a.renderedRenderOrder==o)return;const l=i.getSource(),h=!!i.getDeclutter(),u=l.getTileGrid(),c=l.getTileGridForProjection(n).getTileCoordExtent(t.wrappedTileCoord),g=l.getSourceTiles(e,n,t),d=X(i);delete t.hitDetectionImageData[d],t.executorGroups[d]=[],a.dirty=!1;for(let f=0,A=g.length;ft.value):null;let p;t:for(let m=0,y=g.length;m{const i=this.getLayer(),r=i.getSource(),o=this.renderedProjection,s=o.getExtent(),a=this.renderedResolution,l=r.getTileGridForProjection(o),h=At(this.renderedPixelToCoordinateTransform_,t.slice()),u=l.getTileCoordForCoordAndResolution(h,a).toString(),c=this.renderedTiles.find(t=>t.tileCoord.toString()===u&&t.getState()===Qc.LOADED);if(!c||c.loadingSourceTiles>0)return void e([]);r.getWrapX()&&o.canWrapX()&&!Dt(s,l.getTileCoordExtent(c.tileCoord))&&sn(h,o);const g=X(i),d=l.getTileCoordExtent(c.wrappedTileCoord),f=te(d),A=[(h[0]-f[0])/a,(f[1]-h[1])/a],p=c.getSourceTiles().reduce((t,e)=>t.concat(e.getFeatures()),[]);let m=c.hitDetectionImageData[g];if(!m){const t=Yo(l.getTileSize(l.getZForResolution(a,r.zDirection))),e=this.renderedRotation_,n=[this.getRenderTransform(l.getTileCoordCenter(c.wrappedTileCoord),a,0,Lu,t[0]*Lu,t[1]*Lu,0)];m=Pu(t,n,p,i.getStyleFunction(),l.getTileCoordExtent(c.wrappedTileCoord),c.getReplayState(i).renderedResolution,e),c.hitDetectionImageData[g]=m}e(Qu(A,p,m))})}getFeaturesInExtent(t){const e=[],n=this.getTileCache();if(0===n.getCount())return e;const i=this.getLayer().getSource().getTileGridForProjection(this.frameState.viewState.projection),r=i.getZForResolution(this.renderedResolution),o={};return n.forEach(n=>{if(n.tileCoord[0]!==r||n.getState()!==Qc.LOADED)return;const s=n.getSourceTiles();for(let r=0,a=s.length;r=0;--i)n[i].execute(this.context,s,this.getTileRenderTransform(e,t),t.viewState.rotation,o,bu,l)}n.globalAlpha=i}renderDeferredInternal(t){const e=this.renderedTiles,n=X(this.getLayer()),i=e.reduce((t,e,i)=>(e.executorGroups[n].forEach(e=>t.push({executorGroup:e,index:i})),t),[]),r=i.map(({executorGroup:t})=>t.getDeferredZIndexContexts()),o={};for(let s=0,a=i.length;s{r.forEach((e,n)=>{!e[t]||(e[t].forEach(t=>{const{executorGroup:e,index:r}=i[n],o=e.getRenderedContext(),s=o.globalAlpha;o.globalAlpha=this.renderedOpacity_;const a=this.tileClipContexts_[r];a&&a.draw(o),t.draw(o),a&&o.restore(),o.globalAlpha=s,t.clear()}),e[t].length=0)})})}getTileRenderTransform(t,e){const n=e.pixelRatio,i=e.viewState,r=i.center,o=i.resolution,s=i.rotation,a=e.size,l=Math.round(a[0]*n),h=Math.round(a[1]*n),u=this.getLayer().getSource().getTileGridForProjection(e.viewState.projection),c=t.tileCoord,g=u.getTileCoordExtent(t.wrappedTileCoord),d=u.getTileCoordExtent(c,this.tempExtent)[0]-g[0];return gt(mt(this.inversePixelTransform.slice(),1/n,1/n),this.getRenderTransform(r,o,s,n,l,h,d))}postRender(t,e){var n;const i=e.viewHints,r=!(i[Ws.ANIMATING]||i[Ws.INTERACTING]);this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation,this.renderedOpacity_=e.layerStatesArray[e.layerIndex].opacity;const o=this.getLayer(),s=o.getRenderMode(),a=t.globalAlpha;t.globalAlpha=this.renderedOpacity_;const l=o.getDeclutter(),h=l?gz[s].filter(t=>!bu.includes(t)):gz[s],u=e.viewState,c=u.rotation,g=o.getSource(),d=g.getTileGridForProjection(u.projection).getZForResolution(u.resolution,g.zDirection),f=this.renderedTiles,A=[],p=[],m=[],y=X(o);let v=!0;for(let _=f.length-1;_>=0;--_){const i=f[_];v=v&&!i.getReplayState(o).dirty;const s=i.executorGroups[y].filter(t=>t.hasExecutors(h));if(0===s.length)continue;const a=this.getTileRenderTransform(i,e),u=i.tileCoord[0];let g=!1;const x=s[0].getClipCoords(a);let I,w=t;if(x){I=new au,w=I.getContext();for(let t=0,e=A.length;tzR()}},data(){return{vectorTileSource:null}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{source:{handler(t){this.vectorTileSource.clear(),this.layer.setSource(t)},immediate:!1,deep:!0}},methods:{init(){this.vectorTileSource=new zT(this.source),this.layer=new pz(d(g({},this.$props),{source:this.vectorTileSource,style:this.layerStyle}));const t=this.layerId||"vectorTile-layer-"+m();this.layer.set("id",t),this.layer.set("type","vectorTile"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.$emit("load",this.layer,this.map)}},mounted(){this.init()}};let yz,vz;const _z={};var xz=zE(mz,yz,vz,!1,Iz,null,null,null);function Iz(t){for(let e in _z)this[e]=_z[e]}xz.options.__file="src/components/layers/vectorTile/index.vue";const wz=function(){return xz.exports}();wz.install=function(t){t.component(wz.name,wz)};var Cz=class extends YT{constructor(t){super(t)}getExtent(){return this.getSource().getExtent()}},Ez=class extends Gp{constructor(t){var e={attributions:t.attributions,logo:t.logo,projection:t.projection,canvasFunction:function(t,e,n,i){return this.calculateImage(t,e,n,i)}};super(e),this._image=t.image?t.image:new Image,this._image.crossOrigin=t.crossOrigin,this._image.onload=function(){this.setCrop(this.crop),this.changed()}.bind(this),t.image||(this._image.src=t.url),this.center=t.imageCenter,this.setScale(t.imageScale),this.rotate=t.imageRotate?t.imageRotate:0,this.crop=t.imageCrop,this.mask=t.imageMask,this.setCrop(this.crop),this.on("change",function(){this.set("extent",this.calculateExtent())}.bind(this))}calculateImage(t,e,n,i){if(this.center){var r=document.createElement("canvas");r.width=i[0],r.height=i[1];var o=r.getContext("2d");if(!this._imageSize)return r;if(this.mask){o.beginPath();var s=d(this.mask[0]);o.moveTo(s[0],s[1]);for(var a=1;a{t.component(Rz.name,Rz)};var kz={exports:{}},Lz={exports:{}},Pz=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i0;)o=i[r],s[o]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e}function cF(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var i=t.indexOf(e,n);return-1!==i&&i===n}function gF(t){if(!t)return null;var e=t.length;if(Gz(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n}var dF=function(t){return function(e){return t&&e instanceof t}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),fF={isArray:Nz,isArrayBuffer:Uz,isBuffer:jz,isFormData:eF,isArrayBufferView:qz,isString:Vz,isNumber:Hz,isObject:Yz,isPlainObject:Wz,isUndefined:Gz,isDate:Xz,isFile:Zz,isBlob:Kz,isFunction:$z,isStream:tF,isURLSearchParams:nF,isStandardBrowserEnv:rF,forEach:oF,merge:sF,extend:aF,trim:iF,stripBOM:lF,inherits:hF,toFlatObject:uF,kindOf:Fz,kindOfTest:Oz,endsWith:cF,toArray:gF,isTypedArray:dF,isFileList:Jz},AF=fF;function pF(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var mF=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(AF.isURLSearchParams(e))i=e.toString();else{var r=[];AF.forEach(e,(function(t,e){null===t||"undefined"==typeof t||(AF.isArray(t)?e+="[]":t=[t],AF.forEach(t,(function(t){AF.isDate(t)?t=t.toISOString():AF.isObject(t)&&(t=JSON.stringify(t)),r.push(pF(e)+"="+pF(t))})))})),i=r.join("&")}if(i){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t},yF=fF;function vF(){this.handlers=[]}vF.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},vF.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},vF.prototype.forEach=function(t){yF.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var _F=vF,xF=fF,IF=function(t,e){xF.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))},wF=fF;function CF(t,e,n,i,r){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}wF.inherits(CF,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var EF=CF.prototype,bF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){bF[t]={value:t}})),Object.defineProperties(CF,bF),Object.defineProperty(EF,"isAxiosError",{value:!0}),CF.from=function(t,e,n,i,r,o){var s=Object.create(EF);return wF.toFlatObject(t,s,(function(t){return t!==Error.prototype})),CF.call(s,t.message,e,n,i,r),s.name=t.name,o&&Object.assign(s,o),s};var SF=CF,BF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},MF=fF;function TF(t,e){e=e||new FormData;var n=[];function r(t){return null===t?"":MF.isDate(t)?t.toISOString():MF.isArrayBuffer(t)||MF.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):i.from(t):t}function o(t,i){if(MF.isPlainObject(t)||MF.isArray(t)){if(-1!==n.indexOf(t))throw Error("Circular reference detected in "+i);n.push(t),MF.forEach(t,(function(t,n){if(!MF.isUndefined(t)){var s,a=i?i+"."+n:n;if(t&&!i&&"object"==typeof t)if(MF.endsWith(n,"{}"))t=JSON.stringify(t);else if(MF.endsWith(n,"[]")&&(s=MF.toArray(t)))return void s.forEach((function(t){!MF.isUndefined(t)&&e.append(a,r(t))}));o(t,a)}})),n.pop()}else e.append(i,r(t))}return o(t),e}var DF,RF,kF,LF,PF=TF;function QF(){if(RF)return DF;RF=1;var t=SF;return DF=function(e,n,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?n(new t("Request failed with status code "+i.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)},DF}function zF(){if(LF)return kF;LF=1;var t=fF;return kF=t.isStandardBrowserEnv()?function(){return{write:function(e,n,i,r,o,s){var a=[];a.push(e+"="+encodeURIComponent(n)),t.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),t.isString(r)&&a.push("path="+r),t.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),kF}var FF,OF,NF,GF,jF,UF,qF,VF,HF,YF,WF,XF,ZF=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},KF=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},JF=ZF,$F=KF,tO=function(t,e){return t&&!JF(e)?$F(t,e):e};function eO(){if(OF)return FF;OF=1;var t=fF,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return FF=function(n){var i,r,o,s={};return n&&t.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),i=t.trim(n.substr(0,o)).toLowerCase(),r=t.trim(n.substr(o+1)),i){if(s[i]&&e.indexOf(i)>=0)return;s[i]="set-cookie"===i?(s[i]?s[i]:[]).concat([r]):s[i]?s[i]+", "+r:r}})),s},FF}function nO(){if(GF)return NF;GF=1;var t=fF;return NF=t.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(n){var i=t.isString(n)?r(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}(),NF}function iO(){if(UF)return jF;UF=1;var t=SF,e=fF;function n(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return e.inherits(n,t,{__CANCEL__:!0}),jF=n,jF}function rO(){return VF||(VF=1,qF=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}),qF}function oO(){if(YF)return HF;YF=1;var t=fF,e=QF(),n=zF(),i=mF,r=tO,o=eO(),s=nO(),a=BF,l=SF,h=iO(),u=rO();return HF=function(c){return new Promise((function(g,d){var f,A=c.data,p=c.headers,m=c.responseType;function y(){c.cancelToken&&c.cancelToken.unsubscribe(f),c.signal&&c.signal.removeEventListener("abort",f)}t.isFormData(A)&&t.isStandardBrowserEnv()&&delete p["Content-Type"];var v=new XMLHttpRequest;if(c.auth){var _=c.auth.username||"",x=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";p.Authorization="Basic "+btoa(_+":"+x)}var I=r(c.baseURL,c.url);function w(){if(v){var t="getAllResponseHeaders"in v?o(v.getAllResponseHeaders()):null,n=m&&"text"!==m&&"json"!==m?v.response:v.responseText,i={data:n,status:v.status,statusText:v.statusText,headers:t,config:c,request:v};e((function(t){g(t),y()}),(function(t){d(t),y()}),i),v=null}}if(v.open(c.method.toUpperCase(),i(I,c.params,c.paramsSerializer),!0),v.timeout=c.timeout,"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){!v||4!==v.readyState||0===v.status&&(!v.responseURL||0!==v.responseURL.indexOf("file:"))||setTimeout(w)},v.onabort=function(){!v||(d(new l("Request aborted",l.ECONNABORTED,c,v)),v=null)},v.onerror=function(){d(new l("Network Error",l.ERR_NETWORK,c,v,v)),v=null},v.ontimeout=function(){var t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",e=c.transitional||a;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),d(new l(t,e.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,c,v)),v=null},t.isStandardBrowserEnv()){var C=(c.withCredentials||s(I))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;C&&(p[c.xsrfHeaderName]=C)}"setRequestHeader"in v&&t.forEach(p,(function(t,e){"undefined"==typeof A&&"content-type"===e.toLowerCase()?delete p[e]:v.setRequestHeader(e,t)})),t.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),m&&"json"!==m&&(v.responseType=c.responseType),"function"==typeof c.onDownloadProgress&&v.addEventListener("progress",c.onDownloadProgress),"function"==typeof c.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(f=function(t){!v||(d(!t||t&&t.type?new h:t),v.abort(),v=null)},c.cancelToken&&c.cancelToken.subscribe(f),c.signal&&(c.signal.aborted?f():c.signal.addEventListener("abort",f))),A||(A=null);var E=u(I);E&&-1===["http","https","file"].indexOf(E)?d(new l("Unsupported protocol "+E+":",l.ERR_BAD_REQUEST,c)):v.send(A)}))},HF}function sO(){return XF||(XF=1,WF=null),WF}var aO=fF,lO=IF,hO=SF,uO=BF,cO=PF,gO={"Content-Type":"application/x-www-form-urlencoded"};function dO(t,e){!aO.isUndefined(t)&&aO.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function fO(){var t;return("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof r&&"[object process]"===Object.prototype.toString.call(r))&&(t=oO()),t}function AO(t,e,n){if(aO.isString(t))try{return(e||JSON.parse)(t),aO.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}var pO={transitional:uO,adapter:fO(),transformRequest:[function(t,e){if(lO(e,"Accept"),lO(e,"Content-Type"),aO.isFormData(t)||aO.isArrayBuffer(t)||aO.isBuffer(t)||aO.isStream(t)||aO.isFile(t)||aO.isBlob(t))return t;if(aO.isArrayBufferView(t))return t.buffer;if(aO.isURLSearchParams(t))return dO(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,i=aO.isObject(t),r=e&&e["Content-Type"];if((n=aO.isFileList(t))||i&&"multipart/form-data"===r){var o=this.env&&this.env.FormData;return cO(n?{"files[]":t}:t,o&&new o)}return i||"application/json"===r?(dO(e,"application/json"),AO(t)):t}],transformResponse:[function(t){var e=this.transitional||pO.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,r=!n&&"json"===this.responseType;if(r||i&&aO.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(r)throw"SyntaxError"===o.name?hO.from(o,hO.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sO()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};aO.forEach(["delete","get","head"],(function(t){pO.headers[t]={}})),aO.forEach(["post","put","patch"],(function(t){pO.headers[t]=aO.merge(gO)}));var mO,yO,vO=pO,_O=fF,xO=vO,IO=function(t,e,n){var i=this||xO;return _O.forEach(n,(function(n){t=n.call(i,t,e)})),t};function wO(){return yO||(yO=1,mO=function(t){return!(!t||!t.__CANCEL__)}),mO}var CO=fF,EO=IO,bO=wO(),SO=vO,BO=iO();function MO(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new BO}var TO,DO,RO=function(t){MO(t),t.headers=t.headers||{},t.data=EO.call(t,t.data,t.headers,t.transformRequest),t.headers=CO.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),CO.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||SO.adapter;return e(t).then((function(e){return MO(t),e.data=EO.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return bO(e)||(MO(t),e&&e.response&&(e.response.data=EO.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},kO=fF,LO=function(t,e){e=e||{};var n={};function i(t,e){return kO.isPlainObject(t)&&kO.isPlainObject(e)?kO.merge(t,e):kO.isPlainObject(e)?kO.merge({},e):kO.isArray(e)?e.slice():e}function r(n){return kO.isUndefined(e[n])?kO.isUndefined(t[n])?void 0:i(void 0,t[n]):i(t[n],e[n])}function o(t){if(!kO.isUndefined(e[t]))return i(void 0,e[t])}function s(n){return kO.isUndefined(e[n])?kO.isUndefined(t[n])?void 0:i(void 0,t[n]):i(void 0,e[n])}function a(n){return n in e?i(t[n],e[n]):n in t?i(void 0,t[n]):void 0}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return kO.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=l[t]||r,i=e(t);kO.isUndefined(i)&&e!==a||(n[t]=i)})),n};function PO(){return DO||(DO=1,TO={version:"0.27.2"}),TO}var QO=PO().version,zO=SF,FO={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){FO[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var OO={};function NO(t,e,n){if("object"!=typeof t)throw new zO("options must be an object",zO.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(t),r=i.length;r-- >0;){var o=i[r],s=e[o];if(s){var a=t[o],l=void 0===a||s(a,o,t);if(!0!==l)throw new zO("option "+o+" must be "+l,zO.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new zO("Unknown option "+o,zO.ERR_BAD_OPTION)}}FO.transitional=function(t,e,n){function i(t,e){return"[Axios v"+QO+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,o){if(!1===t)throw new zO(i(r," has been removed"+(e?" in "+e:"")),zO.ERR_DEPRECATED);return e&&!OO[r]&&(OO[r]=!0),!t||t(n,r,o)}};var GO={assertOptions:NO,validators:FO},jO=fF,UO=mF,qO=_F,VO=RO,HO=LO,YO=tO,WO=GO,XO=WO.validators;function ZO(t){this.defaults=t,this.interceptors={request:new qO,response:new qO}}ZO.prototype.request=function(t,e){"string"==typeof t?(e=e||{},e.url=t):e=t||{},e=HO(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&WO.assertOptions(n,{silentJSONParsing:XO.transitional(XO.boolean),forcedJSONParsing:XO.transitional(XO.boolean),clarifyTimeoutError:XO.transitional(XO.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,i.unshift(t.fulfilled,t.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!r){var a=[VO,void 0];for(Array.prototype.unshift.apply(a,i),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var l=e;i.length;){var h=i.shift(),u=i.shift();try{l=h(l)}catch(c){u(c);break}}try{o=VO(l)}catch(c){return Promise.reject(c)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},ZO.prototype.getUri=function(t){t=HO(this.defaults,t);var e=YO(t.baseURL,t.url);return UO(e,t.params,t.paramsSerializer)},jO.forEach(["delete","get","head","options"],(function(t){ZO.prototype[t]=function(e,n){return this.request(HO(n||{},{method:t,url:e,data:(n||{}).data}))}})),jO.forEach(["post","put","patch"],(function(t){function e(e){return function(n,i,r){return this.request(HO(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ZO.prototype[t]=e(),ZO.prototype[t+"Form"]=e(!0)}));var KO,JO,$O,tN,eN,nN,iN=ZO;function rN(){if(JO)return KO;JO=1;var t=iO();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(t){n=t}));var i=this;this.promise.then((function(t){if(i._listeners){var e,n=i._listeners.length;for(e=0;e-1e3&&t<1e3||ON.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var i=t<0?-UN(-t):UN(t);if(i!==t){var r=String(i),o=PN.call(e,r.length+1);return QN.call(r,n,"$&_")+"."+QN.call(QN.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return QN.call(e,n,"$&_")}var JN=pN,$N=JN.custom,tG=fG($N)?$N:null,eG={__proto__:null,double:'"',single:"'"},nG={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},iG=function t(e,n,i,r){var o=n||{};if(mG(o,"quoteStyle")&&!mG(eG,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(mG(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!mG(o,"customInspect")||o.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(mG(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(mG(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if("undefined"==typeof e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return SG(e,o);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var l=String(e);return a?KN(e,l):l}if("bigint"==typeof e){var h=String(e)+"n";return a?KN(e,h):h}var u="undefined"==typeof o.depth?5:o.depth;if("undefined"==typeof i&&(i=0),i>=u&&u>0&&"object"==typeof e)return aG(e)?"[Array]":"[Object]";var c=kG(o,i);if("undefined"==typeof r)r=[];else if(_G(r,e)>=0)return"[Circular]";function g(e,n,s){if(n&&(r=jN.call(r),r.push(n)),s){var a={depth:o.depth};return mG(o,"quoteStyle")&&(a.quoteStyle=o.quoteStyle),t(e,a,i+1,r)}return t(e,o,i+1,r)}if("function"==typeof e&&!hG(e)){var d=vG(e),f=PG(e,g);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(f.length>0?" { "+GN.call(f,", ")+" }":"")}if(fG(e)){var A=YN?QN.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):HN.call(e);return"object"!=typeof e||YN?A:MG(A)}if(bG(e)){for(var p="<"+FN.call(String(e.nodeName)),m=e.attributes||[],y=0;y",p}if(aG(e)){if(0===e.length)return"[]";var v=PG(e,g);return c&&!RG(v)?"["+LG(v,c)+"]":"[ "+GN.call(v,", ")+" ]"}if(uG(e)){var _=PG(e,g);return"cause"in Error.prototype||!("cause"in e)||XN.call(e,"cause")?0===_.length?"["+String(e)+"]":"{ ["+String(e)+"] "+GN.call(_,", ")+" }":"{ ["+String(e)+"] "+GN.call(NN.call("[cause]: "+g(e.cause),_),", ")+" }"}if("object"==typeof e&&s){if(tG&&"function"==typeof e[tG]&&JN)return JN(e,{depth:u-i});if("symbol"!==s&&"function"==typeof e.inspect)return e.inspect()}if(xG(e)){var x=[];return _N&&_N.call(e,(function(t,n){x.push(g(n,e,!0)+" => "+g(t,e))})),DG("Map",vN.call(e),x,c)}if(CG(e)){var I=[];return CN&&CN.call(e,(function(t){I.push(g(t,e))})),DG("Set",wN.call(e),I,c)}if(IG(e))return TG("WeakMap");if(EG(e))return TG("WeakSet");if(wG(e))return TG("WeakRef");if(gG(e))return MG(g(Number(e)));if(AG(e))return MG(g(qN.call(e)));if(dG(e))return MG(DN.call(e));if(cG(e))return MG(g(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||"undefined"!=typeof JA&&e===JA)return"{ [object globalThis] }";if(!lG(e)&&!hG(e)){var w=PG(e,g),C=ZN?ZN(e)===Object.prototype:e instanceof Object||e.constructor===Object,E=e instanceof Object?"":"null prototype",b=!C&&WN&&Object(e)===e&&WN in e?PN.call(yG(e),8,-1):E?"Object":"",S=C||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",B=S+(b||E?"["+GN.call(NN.call([],b||[],E||[]),": ")+"] ":"");return 0===w.length?B+"{}":c?B+"{"+LG(w,c)+"}":B+"{ "+GN.call(w,", ")+" }"}return String(e)};function rG(t,e,n){var i=n.quoteStyle||e,r=eG[i];return r+t+r}function oG(t){return QN.call(String(t),/"/g,""")}function sG(t){return!WN||!("object"==typeof t&&(WN in t||"undefined"!=typeof t[WN]))}function aG(t){return"[object Array]"===yG(t)&&sG(t)}function lG(t){return"[object Date]"===yG(t)&&sG(t)}function hG(t){return"[object RegExp]"===yG(t)&&sG(t)}function uG(t){return"[object Error]"===yG(t)&&sG(t)}function cG(t){return"[object String]"===yG(t)&&sG(t)}function gG(t){return"[object Number]"===yG(t)&&sG(t)}function dG(t){return"[object Boolean]"===yG(t)&&sG(t)}function fG(t){if(YN)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!HN)return!1;try{return HN.call(t),!0}catch(e){}return!1}function AG(t){if(!t||"object"!=typeof t||!qN)return!1;try{return qN.call(t),!0}catch(e){}return!1}var pG=Object.prototype.hasOwnProperty||function(t){return t in this};function mG(t,e){return pG.call(t,e)}function yG(t){return RN.call(t)}function vG(t){if(t.name)return t.name;var e=LN.call(kN.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function _G(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return SG(PN.call(t,0,e.maxStringLength),e)+i}var r=nG[e.quoteStyle||"single"];r.lastIndex=0;var o=QN.call(QN.call(t,r,"\\$1"),/[\x00-\x1f]/g,BG);return rG(o,"single",e)}function BG(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+zN.call(e.toString(16))}function MG(t){return"Object("+t+")"}function TG(t){return t+" { ? }"}function DG(t,e,n,i){var r=i?LG(n,i):GN.call(n,", ");return t+" ("+e+") {"+r+"}"}function RG(t){for(var e=0;e=0)return!1;return!0}function kG(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=GN.call(Array(t.indent+1)," ")}return{base:n,prev:GN.call(Array(e+1),n)}}function LG(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+GN.call(t,","+n)+"\n"+e.prev}function PG(t,e){var n=aG(t),i=[];if(n){i.length=t.length;for(var r=0;r1&&"boolean"!=typeof e)throw new uU('"allowMissing" argument must be a boolean');if(null===UU(/^%?[^%]*%?$/,t))throw new hU("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=HU(t),i=n.length>0?n[0]:"",r=YU("%"+i+"%",e),o=r.name,s=r.value,a=!1,l=r.alias;l&&(i=l[0],NU(n,OU([0,1],l)));for(var h=1,u=!0;h=n.length){var f=xU(s,c);u=!!f,s=u&&"get"in f&&!("originalValue"in f.get)?f.get:s[c]}else u=FU(s,c),s=s[c];u&&!a&&(kU[o]=s)}}return s},XU=WU,ZU=$j,KU=ZU([XU("%String.prototype.indexOf%")]),JU=function(t,e){var n=XU(t,!!e);return"function"==typeof n&&KU(t,".prototype.")>-1?ZU([n]):n},$U=WU,tq=JU,eq=iG,nq=AN,iq=$U("%Map%",!0),rq=tq("Map.prototype.get",!0),oq=tq("Map.prototype.set",!0),sq=tq("Map.prototype.has",!0),aq=tq("Map.prototype.delete",!0),lq=tq("Map.prototype.size",!0),hq=!!iq&&function(){var t,e={assert:function(t){if(!e.has(t))throw new nq("Side channel does not contain "+eq(t))},delete:function(e){if(t){var n=aq(t,e);return 0===lq(t)&&(t=void 0),n}return!1},get:function(e){if(t)return rq(t,e)},has:function(e){return!!t&&sq(t,e)},set:function(e,n){t||(t=new iq),oq(t,e,n)}};return e},uq=WU,cq=JU,gq=iG,dq=hq,fq=AN,Aq=uq("%WeakMap%",!0),pq=cq("WeakMap.prototype.get",!0),mq=cq("WeakMap.prototype.set",!0),yq=cq("WeakMap.prototype.has",!0),vq=cq("WeakMap.prototype.delete",!0),_q=Aq?function(){var t,e,n={assert:function(t){if(!n.has(t))throw new fq("Side channel does not contain "+gq(t))},delete:function(n){if(Aq&&n&&("object"==typeof n||"function"==typeof n)){if(t)return vq(t,n)}else if(dq&&e)return e.delete(n);return!1},get:function(n){return Aq&&n&&("object"==typeof n||"function"==typeof n)&&t?pq(t,n):e&&e.get(n)},has:function(n){return Aq&&n&&("object"==typeof n||"function"==typeof n)&&t?yq(t,n):!!e&&e.has(n)},set:function(n,i){Aq&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new Aq),mq(t,n,i)):dq&&(e||(e=dq()),e.set(n,i))}};return n}:dq,xq=AN,Iq=iG,wq=UG,Cq=hq,Eq=_q,bq=Eq||Cq||wq,Sq=function(){var t,e={assert:function(t){if(!e.has(t))throw new xq("Side channel does not contain "+Iq(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,n){t||(t=bq()),t.set(e,n)}};return e},Bq=String.prototype.replace,Mq=/%20/g,Tq={RFC1738:"RFC1738",RFC3986:"RFC3986"},Dq={default:Tq.RFC3986,formatters:{RFC1738:function(t){return Bq.call(t,Mq,"+")},RFC3986:function(t){return String(t)}},RFC1738:Tq.RFC1738,RFC3986:Tq.RFC3986},Rq=Dq,kq=Object.prototype.hasOwnProperty,Lq=Array.isArray,Pq=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Qq=function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(Lq(n)){for(var i=[],r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||r===Rq.RFC1738&&(40===l||41===l)?s+=o.charAt(a):l<128?s+=Pq[l]:l<2048?s+=Pq[192|l>>6]+Pq[128|63&l]:l<55296||l>=57344?s+=Pq[224|l>>12]+Pq[128|l>>6&63]+Pq[128|63&l]:(a+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(a)),s+=Pq[240|l>>18]+Pq[128|l>>12&63]+Pq[128|l>>6&63]+Pq[128|63&l])}return s},jq=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],i=0;i0?m.join(",")||null:void 0}];else if($q(l))b=l;else{var B=Object.keys(m);b=h?B.sort(h):B}for(var M=r&&$q(m)&&1===m.length?n+"[]":n,T=0;T0?f+d:""},cV=Yq,gV=Object.prototype.hasOwnProperty,dV=Array.isArray,fV={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:cV.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},AV=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},pV=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},mV="utf8=%26%2310003%3B",yV="utf8=%E2%9C%93",vV=function(t,e){var n,i={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=e.parameterLimit===1/0?void 0:e.parameterLimit,s=r.split(e.delimiter,o),a=-1,l=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(u=dV(u)?[u]:u),gV.call(i,h)?i[h]=cV.combine(i[h],u):i[h]=u}return i},_V=function(t,e,n,i){for(var r=i?e:pV(e,n),o=t.length-1;o>=0;--o){var s,a=t[o];if("[]"===a&&n.parseArrays)s=[].concat(r);else{s=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,h=parseInt(l,10);n.parseArrays||""!==l?!isNaN(h)&&a!==l&&String(h)===l&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=r):"__proto__"!==l&&(s[l]=r):s={0:r}}r=s}return r},xV=function(t,e,n,i){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,a=n.depth>0&&o.exec(r),l=a?r.slice(0,a.index):r,h=[];if(l){if(!n.plainObjects&&gV.call(Object.prototype,l)&&!n.allowPrototypes)return;h.push(l)}for(var u=0;n.depth>0&&null!==(a=s.exec(r))&&u0?(t={barriers:e,polylineBarriers:n,polygonBarriers:i,outSR:r,ignoreInvalidLocations:o,accumulateAttributeNames:s,impedanceAttributeName:a,restrictionAttributeNames:l,attributeParameterValues:h,restrictUTurns:u,useHierarchy:c,returnDirections:g,returnRoutes:d,returnStops:f,returnBarriers:A,returnPolygonBarriers:p,directionsLanguage:m,directionsStyleName:y,outputLines:v,findBestSequence:_,preserveFirstStop:x,preserveLastStop:I,useTimeWindows:w,startTime:C,startTimeIsUTC:E,outputGeometryPrecision:b,outputGeometryPrecisionUnits:S,directionsOutputType:B,directionsTimeAttributeName:M,directionsLengthUnits:T,returnZ:D,travelMode:R,f:k,stops:this.stops.join(";")},"POST"===this.method.toUpperCase()?fN.post(this.serviceUrl,SV.stringify(t)).then(t=>(200===t.status&&t.data&&(this.routeData=t.data),this.getArcgisData(t))):fN.get(this.serviceUrl,{params:t}).then(t=>(200===t.status&&t.data&&(this.routeData=t.data),this.getArcgisData(t)))):[]}))},getArcgisData(t){if(!(200===t.status&&t.data&&t.data.routes.features.length>0))return[];{const e=t.data.routes;if(e.features[0].geometry.paths.length>0){const t=[];return this.showStart&&t.push({type:"point",style:this.routeStyle?this.routeStyle.start:this.defaultStyle.start,coordinates:e.features[0].geometry.paths[0][0],featureType:"start",convert:this.convert}),t.push({type:"polyline",style:this.routeStyle?this.routeStyle.line:this.defaultStyle.line,coordinates:e.features[0].geometry.paths[0],featureType:"line",convert:this.convert}),this.showPass&&this.stops.length>1&&this.stops.slice(1,this.stops.length-1).forEach((e,n)=>{t.push({type:"point",style:this.routeStyle?this.routeStyle.pass:this.defaultStyle.pass,coordinates:e,stopIndex:n,featureType:"stops"})}),this.showEnd&&t.push({type:"point",style:this.routeStyle?this.routeStyle.end:this.defaultStyle.end,coordinates:e.features[0].geometry.paths[0][e.features[0].geometry.paths[0].length-1],featureType:"end",convert:this.convert}),nE(t,this.map)}}},getGraphhopperRouteData(){return p(this,null,(function*(){const{type:t,points_encoded:e,point_hint:n,locale:i,vehicle:r,weighting:o,elevation:s,convert:a}=this.$props;let l=SV.stringify({type:t,points_encoded:e,point_hint:n,locale:i,vehicle:r,weighting:o,elevation:s,convert:a});if(this.stops.length>0){let t="&point=";return this.stops.forEach((e,n)=>{t=t+e[1]+","+e[0]+(n(200===t.status&&t.data&&(this.routeData=t.data),this.getGraphhopperData(t))):fN.get(this.serviceUrl+"?"+l).then(t=>(200===t.status&&t.data&&(this.routeData=t.data),this.getGraphhopperData(t)))}return[]}))},getGraphhopperData(t){if(!(200===t.status&&t.data&&t.data.paths[0].points.coordinates.length>0))return[];{const e=t.data.paths[0];if(e.points.coordinates.length>0){const t=[];return this.showStart&&t.push({type:"point",style:this.routeStyle?this.routeStyle.start:this.defaultStyle.start,coordinates:e.points.coordinates[0],featureType:"start"}),t.push({type:"polyline",style:this.routeStyle?this.routeStyle.line:this.defaultStyle.line,coordinates:e.points.coordinates,featureType:"line"}),this.showPass&&this.stops.slice(1,this.stops.length-1).forEach((e,n)=>{t.push({type:"point",style:this.routeStyle?this.routeStyle.pass:this.defaultStyle.pass,coordinates:e,featureType:"stops",stopIndex:n})}),this.showEnd&&t.push({type:"point",style:this.routeStyle?this.routeStyle.end:this.defaultStyle.end,coordinates:e.points.coordinates[e.points.coordinates.length-1],featureType:"end"}),nE(t,this.map)}}},init(){return p(this,null,(function*(){if(this.features=[],this.source?this.source.clear():this.source=cE({},this.map),this.stops.length<=0)return!1;if(1===this.stops.length){const t=[{type:"point",style:this.routeStyle?this.routeStyle.start:this.defaultStyle.start,coordinates:this.stops[0],featureType:"start"}];this.features=nE(t,this.map)}else this.stops.length>=2&&(this.features="arcgis"===this.routeType?yield this.getArcgisRouteData():yield this.getGraphhopperRouteData());this.source.addFeatures(this.features);const t=d(g({},this.$props),{source:this.source});if(!this.layer){this.layer=new nc(t),this.layer.setStyle(t=>t.get("style")?tE(t.get("style")):this.FeatureStyle?tE(this.FeatureStyle):tE({fill:{color:"rgba(67,126,255,0.15)"},stroke:{color:"rgba(67,126,255,1)",width:1}}));const e=this.layerId||"route-layer-"+m();this.layer.set("id",e),this.layer.set("type","vector"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer})}this.stops.length>=2&&(this.arrow&&this.layer.on("postrender",()=>{const t=this.map.getView().getZoom();this.layer.getSource().getFeatures().forEach(t=>{t.get("isArrow")&&this.layer.getSource().removeFeature(t)}),Math.round(t)===t&&Uk(g({coordinates:"arcgis"===this.routeType?this.routeData.routes.features[0].geometry.paths[0]:this.routeData.paths[0].points.coordinates,map:this.map,source:this.layer.getSource()},this.arrow))}),this.$emit("render",this.routeData,this.map,this.features))}))},dispose(){this.map.removeLayer(this.layer)}}};let MV,TV;const DV={};var RV=zE(BV,MV,TV,!1,kV,null,null,null);function kV(t){for(let e in DV)this[e]=DV[e]}RV.options.__file="src/components/layers/route/index.vue";const LV=function(){return RV.exports}();LV.install=t=>{t.component(LV.name,LV)};class PV extends JD{constructor(t,e){var n;const i=e.uniforms||{},r=ut();i[ND.PROJECTION_MATRIX]=r,super(t,{uniforms:i,postProcesses:e.postProcesses}),this.sourceRevision_=-1,this.verticesBuffer_=new SD(dD,mD),this.indicesBuffer_=new SD(fD,mD),this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.program_,this.hitDetectionEnabled_=null==(n=e.hitDetectionEnabled)||n;const o=e.attributes?e.attributes.map((function(t){return{name:"a_"+t.name,size:1,type:GD.FLOAT}})):[];this.attributes=[{name:"a_position",size:2,type:GD.FLOAT},{name:"a_index",size:1,type:GD.FLOAT}],this.hitDetectionEnabled_&&(this.attributes.push({name:"a_hitColor",size:4,type:GD.FLOAT}),this.attributes.push({name:"a_featureUid",size:1,type:GD.FLOAT})),this.attributes.push(...o),this.customAttributes=e.attributes?e.attributes:[],this.previousExtent_=Lt(),this.currentTransform_=r,this.renderTransform_=ut(),this.invertRenderTransform_=ut(),this.renderInstructions_=new Float32Array(0),this.hitRenderTarget_,this.lastSentId=0,this.worker_=VL(),this.worker_.addEventListener("message",t=>{const e=t.data;if(e.type===qL.GENERATE_POINT_BUFFERS){const n=e.projectionTransform;this.verticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_),this.indicesBuffer_.fromArrayBuffer(e.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=n,_t(this.invertRenderTransform_,this.renderTransform_),this.renderInstructions_=new Float32Array(t.data.renderInstructions),e.id===this.lastSentId&&(this.ready=!0),this.getLayer().changed()}}),this.featureCache_={},this.featureCount_=0;const s=this.getLayer().getSource();this.sourceListenKeys_=[j(s,wc.ADDFEATURE,this.handleSourceFeatureAdded_,this),j(s,wc.CHANGEFEATURE,this.handleSourceFeatureChanged_,this),j(s,wc.REMOVEFEATURE,this.handleSourceFeatureDelete_,this),j(s,wc.CLEAR,this.handleSourceFeatureClear_,this)],s.forEachFeature(t=>{this.featureCache_[X(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++})}afterHelperCreated(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitRenderTarget_=new oP(this.helper)),this.verticesBuffer_.getArray()&&this.helper.flushBufferData(this.verticesBuffer_),this.indicesBuffer_.getArray()&&this.helper.flushBufferData(this.indicesBuffer_)}handleSourceFeatureAdded_(t){const e=t.feature;this.featureCache_[X(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++}handleSourceFeatureChanged_(t){const e=t.feature;this.featureCache_[X(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}}handleSourceFeatureDelete_(t){const e=t.feature;delete this.featureCache_[X(e)],this.featureCount_--}handleSourceFeatureClear_(){this.featureCache_={},this.featureCount_=0}renderFrame(t){const e=this.helper.getGL();this.preRender(e,t);const[n,i,r]=sP(t,this.getLayer());return this.renderWorlds(t,!1,n,i,r),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent),this.hitDetectionEnabled_&&(this.renderWorlds(t,!0,n,i,r),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),this.helper.getCanvas()}prepareFrameInternal(t){const e=this.getLayer(),n=e.getSource(),i=t.viewState,r=!t.viewHints[Ws.ANIMATING]&&!t.viewHints[Ws.INTERACTING],o=!Ot(this.previousExtent_,t.extent),s=this.sourceRevision_t.get(n):n,this.setRenderOrder(null)}getBlur(){return this.get(zV.BLUR)}getGradient(){return this.get(zV.GRADIENT)}getRadius(){return this.get(zV.RADIUS)}handleGradientChanged_(){this.gradient_=NV(this.getGradient())}setBlur(t){this.set(zV.BLUR,t)}setGradient(t){this.set(zV.GRADIENT,t)}setRadius(t){this.set(zV.RADIUS,t)}createRenderer(){const t=(new NR).addAttribute("float a_weight").addVarying("v_weight","float","a_weight").addUniform("float u_size").addUniform("float u_blurSlope").setSymbolSizeExpression("vec2(u_size)").setSymbolColorExpression("vec4(smoothstep(0., 1., (1. - length(coordsPx * 2. / v_quadSizePx)) * u_blurSlope) * v_weight)");return new QV(this,{className:this.getClassName(),attributes:[{name:"weight",callback:t=>{const e=this.weightFunction_(t);return void 0!==e?Qe(e,0,1):1}}],uniforms:{u_size:()=>2*(this.get(zV.RADIUS)+this.get(zV.BLUR)),u_blurSlope:()=>this.get(zV.RADIUS)/Math.max(1,this.get(zV.BLUR))},hitDetectionEnabled:!0,vertexShader:t.getSymbolVertexShader(),fragmentShader:t.getSymbolFragmentShader(),postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n uniform float u_opacity;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a * u_opacity;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:()=>this.gradient_,u_opacity:()=>this.getOpacity()}}]})}renderDeclutter(){}}function NV(t){const e=fo(1,256),n=e.createLinearGradient(0,0,1,256),i=1/(t.length-1);for(let r=0,o=t.length;r0){const e=nE(t,this.map);this.layer.getSource().addFeatures(e)}},immediate:!1},blur:{handler(t){this.layer.setBlur(t)},immediate:!1},radius:{handler(t){this.layer.setRadius(t)},immediate:!1},gradient:{handler(t){this.layer.setGradient(t)},immediate:!1,deep:!0}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},mounted(){const t=cE(this.source,this.map);if(this.source.features.length<=0&&this.features.length>0){const e=nE(this.features,this.map);t.addFeatures(e)}const e=d(g({},this.$props),{source:t});this.layer=new GV(e);const n=this.layerId||"heatmap-layer-"+m();this.layer.set("id",n),this.layer.set("type","heatmap"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer})},methods:{},beforeDestroy(){this.map.removeLayer(this.layer)}};let UV,qV;const VV={};var HV=zE(jV,UV,qV,!1,YV,null,null,null);function YV(t){for(let e in VV)this[e]=VV[e]}HV.options.__file="src/components/layers/heatmap/index.vue";const WV=function(){return HV.exports}();WV.install=t=>{t.component(WV.name,WV)};const XV={name:"v-graphic",render(t,e){return null},extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},data(){return{}},props:{layerId:{type:String,default:""},features:{type:Array,default(){return[]}},featureStyle:{type:Object}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{features:{handler(t){this.layer.getSource().refresh()},immediate:!1}},mounted(){this.init()},beforeDestroy(){this.map.removeLayer(this.layer),this.layer.dispose()},methods:{init(){let t;this.featureStyle?fE(this.featureStyle.icon).then(e=>{t=this.setSource(e),this.setLayer(t)}):(t=this.setSource(),this.setLayer(t))},setSource(t){const e=new Gp({canvasFunction:(n,i,r,o,s)=>{const a=[],l=document.createElement("canvas"),h=o[0]/r,u=o[1]/r,c=Rc(l.getContext("2d"),{size:[h,u]});t&&c.setStyle(t);const g=this.map.getSize(),d=[(h-g[0])/2,(u-g[1])/2],f=-this.map.getView().getRotation(),A=this.map.getPixelFromCoordinate(this.map.getView().getCenter());return this.features.length>0&&this.features.forEach(e=>{const n=e.coordinates,i=this.map.getPixelFromCoordinate(n),r=function(t,e,n){return[Math.cos(e)*(t[0]-n[0])-Math.sin(e)*(t[1]-n[1])+n[0],Math.sin(e)*(t[0]-n[0])+Math.cos(e)*(t[1]-n[1])+n[1]]}(function(t,e,n){return[(t[0]-e[0])*n+e[0],(t[1]-e[1])*n+e[1]]}(i,A,1),f,A),o=[r[0]+d[0],r[1]+d[1]],s=new hr(o,"XY"),l=new qC(s);l._coordinates=n;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.set(t,e[t]);WC(e,"style")?(t=tE(e.style),c.drawFeature(l,t)):c.drawGeometry(s),l._style=t,a.push(l)}),e.set("graphics",a),l}});return e},setLayer(t){const e=d(g({},this.$props),{source:t});this.layer=new YT(e);const n=this.layerId||"graphic-layer-"+m();this.layer.set("id",n),this.layer.set("type","graphic"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer})}}};let ZV,KV;const JV={};var $V=zE(XV,ZV,KV,!1,tH,null,null,null);function tH(t){for(let e in JV)this[e]=JV[e]}$V.options.__file="src/components/layers/graphic/index.vue";const eH=function(){return $V.exports}();eH.install=t=>{t.component(eH.name,eH)};const nH={name:"v-draw",extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},render(t,e){return null},props:{layerId:{type:String,default:""},features:{type:Array,default(){return[]}},source:{type:Object,default(){return{features:[]}}},featureStyle:{type:[Object,Boolean],default(){return!1}},type:{type:String,default:""},clickTolerance:{type:Number,default:6},dragVertexDelay:{type:Number,default:500},snapTolerance:{type:Number,default:12},stopClick:{type:Boolean,default(){return!1}},maxPoints:{type:Number,default:void 0},minPoints:{type:Number,default:void 0},drawOnce:{type:Boolean,default(){return!1}},endRight:{type:Boolean,default(){return!1}},endDblclick:{type:Boolean,default(){return!1}},editable:{type:Boolean,default(){return!1}},clear:{type:Boolean,default(){return!1}},wrapX:{type:Boolean,default(){return!1}},finishCondition:{type:Object},geometryFunction:{type:Function},geometryName:{type:String},condition:{type:Object},freehand:{type:Boolean,default(){return!1}},freehandCondition:{type:Object},drawStyle:{type:[Object,Boolean],default(){return!1}},arrow:{type:[Object,Boolean],default(){return!1}}},data(){return{draw:null,modify:null,select:null}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{type:{handler(t){t?this.initDraw():this.dispose()},immediate:!1}},mounted(){this.init()},beforeDestroy(){this.dispose()},methods:{init(){const t=cE(this.source,this.map);if(this.source.features.length<=0&&this.features.length>0){const e=nE(this.features,this.map);t.addFeatures(e)}const e=d(g({},this.$props),{source:t});this.layer=new nc(e),this.layer.setStyle(t=>t.get("style")?tE(t.get("style")):this.featureStyle?tE(this.featureStyle):tE({fill:{color:"rgba(67,126,255,0.15)"},stroke:{color:"rgba(67,126,255,1)",width:1}}));const n=this.layerId||"draw-layer-"+m();this.layer.set("id",n),this.layer.set("type","draw"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.type&&this.initDraw()},initDraw(){this.resetDraw(),this.draw.set("type","draw"),this.map.addInteraction(this.draw),this.draw.on("drawstart",t=>{this.$emit("drawstart",t,this.map),this.clear&&this.layer.getSource().clear()}),this.draw.on("drawend",t=>{const e=t.feature.getGeometry();"LineString"===this.type?t.measure=DE(e):"Polygon"===this.type&&(t.measure=RE(e)),this.$emit("drawend",t,this.map),this.drawOnce&&this.draw.setActive(!1),this.endRight&&this.type&&this.map.on("contextmenu",t=>{this.draw.setActive(!1)}),this.endDblclick&&this.map.on("dblclick",t=>{this.draw.setActive(!1)})}),this.editable&&(this.select=new Lf({source:this.layer.getSource()}),this.map.addInteraction(this.select),this.modify=new If({source:this.layer.getSource()}),this.modify.set("type","modify"),this.map.addInteraction(this.modify),this.modify.on("modifystart",t=>{this.$emit("modifystart",t,this.map)}),this.modify.on("modifyend",t=>{const e=t.features.getArray()[0].getGeometry();"LineString"===this.type?t.measure=DE(e):"Polygon"===this.type&&(t.measure=RE(e)),this.$emit("modifyend",t,this.map)}))},resetDraw(){this.draw&&(this.map.removeInteraction(this.draw),this.draw=null);const t={source:this.layer.getSource(),type:this.type,freehand:this.freehand,clickTolerance:this.clickTolerance,features:nE(this.features,this.map),dragVertexDelay:this.dragVertexDelay,snapTolerance:this.snapTolerance,stopClick:this.stopClick,maxPoints:this.maxPoints,minPoints:this.minPoints,wrapX:this.wrapX,geometryName:this.geometryName,geometryFunction:this.geometryFunction,style:this.drawStyle?tE(this.drawStyle):null};if("Rectangle"===this.type){const e=d(g({},t),{type:"Circle",geometryFunction:lf()});this.draw=new uf(e)}else if("Square"===this.type){const e=d(g({},t),{type:"Circle",geometryFunction:af(4)});this.draw=new uf(e)}else if(this.type.indexOf("Star")>-1){const e=this.type.split("-")[1]||5,n=function(t,n){const i=t[0],r=t[t.length-1],o=i[0]-r[0],s=i[1]-r[1],a=Math.sqrt(o*o+s*s),l=Math.atan2(s,o),h=[],u=2*Number(e);for(let e=0;e{const t=this.map.getView().getZoom();this.layer.getSource().getFeatures().forEach(t=>{t.get("isArrow")&&this.layer.getSource().removeFeature(t)}),Math.round(t)===t&&this.layer.getSource().getFeatures().forEach(t=>{Uk(g({coordinates:t.getGeometry().getCoordinates(),map:this.map,source:this.layer.getSource()},this.arrow))})})},dispose(){this.map.removeInteraction(this.draw),this.map.removeInteraction(this.select),this.map.removeInteraction(this.modify),this.layer.getSource().clear()},finish(){this.draw.finishDrawing()},remove(){this.draw&&(this.map.removeInteraction(this.draw),this.layer.getSource().clear(),this.map.removeInteraction(this.select),this.map.removeInteraction(this.modify))},setActive(t){this.draw.setActive(t)}}};let iH,rH;const oH={};var sH=zE(nH,iH,rH,!1,aH,null,null,null);function aH(t){for(let e in oH)this[e]=oH[e]}sH.options.__file="src/components/layers/draw/index.vue";const lH=function(){return sH.exports}();lH.install=t=>{t.component(lH.name,lH)};const hH={name:"v-measure",extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},render(t,e){return null},props:{layerId:{type:String,default:""},features:{type:Array,default(){return[]}},source:{type:Object,default(){return{features:[]}}},featureStyle:{type:[Object,Boolean],default(){return!1}},type:{type:String,default:""},clear:{type:Boolean,default:!1},segments:{type:Boolean,default:!1},endRight:{type:Boolean,default:!1},modifiable:{type:Boolean,default:!0},labelStyle:{type:[Object,Boolean],default(){return!1}},tipStyle:{type:[Object,Boolean],default(){return!1}},modifyStyle:{type:[Object,Boolean],default(){return!1}}},data(){return{draw:null,modify:null,select:null}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{type:{handler(t){var e;this.map.removeInteraction(this.draw),this.map.removeInteraction(this.select),this.map.removeInteraction(this.modify),null==(e=this.layer)||e.getSource().clear(),t?this.init():this.dispose()},immediate:!1}},mounted(){this.type&&this.init()},beforeDestroy(){this.dispose()},methods:{init(){const t=cE(this.source,this.map);if(this.source.features.length<=0&&this.features.length>0){const e=nE(this.features,this.map);t.addFeatures(e)}const e=new Gs({fill:new Qo({color:"rgba(255, 255, 255, 0.2)"}),stroke:new qo({color:"rgba(0, 0, 0, 0.5)",lineDash:[10,10],width:2}),image:new Ls({radius:5,stroke:new qo({color:"rgba(0, 0, 0, 0.7)"}),fill:new Qo({color:"rgba(255, 255, 255, 0.2)"})})}),n=this.labelStyle?tE(this.labelStyle):this.labelDefaultStyle(),i=this.tipStyle?tE(this.tipStyle):this.tipDefaultStyle(),r=this.modifyStyle?tE(this.modifyStyle):this.modifyDefaultStyle(),o=new Gs({text:new qs({font:"12px Calibri,sans-serif",fill:new Qo({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new Qo({color:"rgba(0, 0, 0, 0.4)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-12}),image:new Rs({radius:6,points:3,angle:Math.PI,displacement:[0,8],fill:new Qo({color:"rgba(0, 0, 0, 0.4)"})})}),s=[o],a=function(t){const e=cn(t,{projection:"EPSG:4326"});let n;return n=e>100?Math.round(e/1e3*100)/100+" km":Math.round(100*e)/100+" m",n},l=function(t){const e=dn(t,{projection:"EPSG:4326"});let n;return n=e>1e4?Math.round(e/1e6*100)/100+" km²":Math.round(100*e)/100+" m²",n};let h;this.modify=new If({source:t,style:r});const u=(t,r,u,c)=>{const g=[this.featureStyle?tE(this.featureStyle):e],d=t.getGeometry(),f=d.getType();let A,p,m;if((!u||u===f)&&("Polygon"===f?(A=d.getInteriorPoint(),p=l(d),m=new jo(d.getCoordinates()[0])):"LineString"===f&&(A=new hr(d.getLastCoordinate()),p=a(d),m=d)),r&&m){let t=0;m.forEachSegment((function(e,n){const i=new jo([e,n]),r=a(i);s.length-1u(t,this.segments));const f=this.layerId||"measure-layer-"+m();this.layer.set("id",f),this.layer.set("type","measure"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.modify.set("type","measure"),this.modifiable&&this.map.addInteraction(this.modify);const A=this.type,p="点击继续测量"+("Polygon"===A?"面积":"长度"),y="点击开始测量";let v=y;this.draw=new uf({source:this.layer.getSource(),type:A,style:t=>u(t,this.segments,A,v)}),this.draw.set("type","measure"),this.draw.set("measureDraw",!0),this.draw.on("drawstart",e=>{this.clear&&t.clear(),this.modify.setActive(!1),v=p,this.$emit("measurestart",e,this.map)}),this.draw.on("drawend",t=>{r.setGeometry(h),this.modify.setActive(!0),this.map.once("pointermove",()=>{r.setGeometry()}),v=y,this.endRight&&this.draw.setActive(!1),this.$emit("measureend",t,this.map)}),this.modify.setActive(!0),this.map.addInteraction(this.draw)},dispose(){this.map.removeInteraction(this.draw),this.map.removeInteraction(this.select),this.map.removeInteraction(this.modify),this.map.removeLayer(this.layer)},finish(){this.draw.finishDrawing()},remove(){this.map.removeInteraction(this.draw)},setActive(t){this.draw.setActive(t)},labelDefaultStyle(){return new Gs({text:new qs({font:"14px Calibri,sans-serif",fill:new Qo({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new Qo({color:"rgba(0, 0, 0, 0.7)"}),padding:[3,3,3,3],textBaseline:"bottom",offsetY:-15}),image:new Rs({radius:8,points:3,angle:Math.PI,displacement:[0,10],fill:new Qo({color:"rgba(0, 0, 0, 0.7)"})})})},tipDefaultStyle(){return new Gs({text:new qs({font:"12px Calibri,sans-serif",fill:new Qo({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new Qo({color:"rgba(0, 0, 0, 0.4)"}),padding:[2,2,2,2],textAlign:"left",offsetX:15})})},modifyDefaultStyle(){return new Gs({image:new Ls({radius:5,stroke:new qo({color:"rgba(0, 0, 0, 0.7)"}),fill:new Qo({color:"rgba(0, 0, 0, 0.4)"})}),text:new qs({text:"编辑测量",font:"12px Calibri,sans-serif",fill:new Qo({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new Qo({color:"rgba(0, 0, 0, 0.7)"}),padding:[2,2,2,2],textAlign:"left",offsetX:15})})}}};let uH,cH;const gH={};var dH=zE(hH,uH,cH,!1,fH,null,null,null);function fH(t){for(let e in gH)this[e]=gH[e]}dH.options.__file="src/components/layers/measure/index.vue";const AH=function(){return dH.exports}();AH.install=t=>{t.component(AH.name,AH)};var pH={},mH={};"undefined"!=typeof window||"undefined"!=typeof JA&&JA.__DEV__;var yH={},vH=2311;function _H(){return vH++}var xH=_H,IH={};IH="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:CH(navigator.userAgent);var wH=IH;function CH(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),s=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1]),s&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!=typeof document}}var EH=wH,bH={},SH={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},BH={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},MH=Object.prototype.toString,TH=Array.prototype,DH=TH.forEach,RH=TH.filter,kH=TH.slice,LH=TH.map,PH=TH.reduce,QH={};function zH(t,e){"createCanvas"===t&&(UH=null),QH[t]=e}function FH(t){if(null==t||"object"!=typeof t)return t;var e=t,n=MH.call(t);if("[object Array]"===n){if(!_Y(t)){e=[];for(var i=0,r=t.length;i3&&(i=nW.call(i,1));for(var o=e.length,s=0;s4&&(i=nW.call(i,1,i.length-1));for(var o=i[i.length-1],s=e.length,a=0;a>1)%2;a.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[h]+":0",i[1-l]+":auto",r[1-h]+":auto",""].join("!important;"),t.appendChild(s),n.push(s)}return n}function IW(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=!0,a=[],l=[],h=0;h<4;h++){var u=t[h].getBoundingClientRect(),c=2*h,g=u.left,d=u.top;a.push(g,d),s=s&&o&&g===o[c]&&d===o[c+1],l.push(t[h].offsetLeft,t[h].offsetTop)}return s&&r?r:(e.srcCoords=a,e[i]=n?pW(l,a):pW(a,l))}function wW(t){return"CANVAS"===t.nodeName.toUpperCase()}hW.transformLocalCoord=vW,hW.transformCoordWithViewport=_W,hW.isCanvasEl=wW;var CW=aW;lW.Dispatcher=CW;var EW=EH,bW=hW,SW=bW.isCanvasEl,BW=bW.transformCoordWithViewport,MW="undefined"!=typeof window&&!!window.addEventListener,TW=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,DW=[];function RW(t,e,n,i){return n=n||{},i||!EW.canvasSupported?kW(t,e,n):EW.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):kW(t,e,n),n}function kW(t,e,n){if(EW.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(SW(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(BW(DW,t,i,r))return n.zrX=DW[0],void(n.zrY=DW[1])}n.zrX=n.zrY=0}function LW(t){return t||window.event}function PW(t,e,n){if(e=LW(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&RW(t,o,e,n)}else RW(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var s=e.button;return null==e.which&&void 0!==s&&TW.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function QW(t,e,n,i){MW?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function zW(t,e,n,i){MW?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}var FW=MW?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function OW(t){return 2===t.which||3===t.which}function NW(t){return t.which>1}lW.clientToLocal=RW,lW.getNativeEvent=LW,lW.normalizeEvent=PW,lW.addEventListener=QW,lW.removeEventListener=zW,lW.stop=FW,lW.isMiddleOrRightButtonOnMouseUpDown=OW,lW.notLeftMouse=NW;var GW=lW,jW=function(){this._track=[]};function UW(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function qW(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}jW.prototype={constructor:jW,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&i&&i.length>1){var o=UW(i)/UW(r);!isFinite(o)&&(o=1),e.pinchScale=o;var s=qW(i);return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},HW=jW,YW=HW,WW=bH,XW=EY,ZW=eW,KW=aW,JW=lW,$W=YW,tX="silent";function eX(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:nX}}function nX(){JW.stop(this.event)}function iX(){}iX.prototype.dispose=function(){};var rX=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],oX=function(t,e,n,i){KW.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new iX,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,ZW.call(this),this.setHandlerProxy(n)};function sX(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||tX}return!1}function aX(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}oX.prototype={constructor:oX,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(WW.each(rX,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=aX(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var s=this._hovered=i?{x:e,y:n}:this.findHover(e,n),a=s.target,l=this.proxy;l.setCursor&&l.setCursor(a?a.cursor:"default"),o&&a!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(s,"mousemove",t),a&&a!==o&&this.dispatchToElement(s,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=eX(e,t,n);i&&(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(e,o),i=i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},o=i.length-1;o>=0;o--){var s;if(i[o]!==n&&!i[o].ignore&&(s=sX(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),s!==tX)){r.target=i[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new $W);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},WW.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){oX.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=aX(this,r,o);if(("mouseup"!==t||!s)&&(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||XW.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),WW.mixin(oX,KW),WW.mixin(oX,ZW);var lX=oX,hX=lX,uX={},cX="undefined"==typeof Float32Array?Array:Float32Array;function gX(){var t=new cX(6);return dX(t),t}function dX(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function fX(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function AX(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],s=e[1]*n[2]+e[3]*n[3],a=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=s,t[4]=a,t[5]=l,t}function pX(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function mX(t,e,n){var i=e[0],r=e[2],o=e[4],s=e[1],a=e[3],l=e[5],h=Math.sin(n),u=Math.cos(n);return t[0]=i*u+s*h,t[1]=-i*h+s*u,t[2]=r*u+a*h,t[3]=-r*h+u*a,t[4]=u*o+h*l,t[5]=u*l-h*o,t}function yX(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function vX(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],s=e[3],a=e[5],l=n*s-o*i;return l?(l=1/l,t[0]=s*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*a-s*r)*l,t[5]=(o*r-n*a)*l,t):null}function _X(t){var e=gX();return fX(e,t),e}uX.create=gX,uX.identity=dX,uX.copy=fX,uX.mul=AX,uX.translate=pX,uX.rotate=mX,uX.scale=yX,uX.invert=vX,uX.clone=_X;var xX=uX,IX=EY,wX=xX.identity,CX=5e-5;function EX(t){return t>CX||t<-CX}var bX=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},SX=bX.prototype;SX.transform=null,SX.needLocalTransform=function(){return EX(this.rotation)||EX(this.position[0])||EX(this.position[1])||EX(this.scale[0]-1)||EX(this.scale[1]-1)};var BX=[];SX.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;if(n||e){i=i||xX.create(),n?this.getLocalTransform(i):wX(i),e&&(n?xX.mul(i,t.transform,i):xX.copy(i,t.transform)),this.transform=i;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(BX);var o=BX[0]<0?-1:1,s=BX[1]<0?-1:1,a=((BX[0]-o)*r+o)/BX[0]||0,l=((BX[1]-s)*r+s)/BX[1]||0;i[0]*=a,i[1]*=a,i[2]*=l,i[3]*=l}this.invTransform=this.invTransform||xX.create(),xX.invert(this.invTransform,i)}else i&&wX(i)},SX.getLocalTransform=function(t){return bX.getLocalTransform(this,t)},SX.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},SX.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var MX=[],TX=xX.create();SX.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;EX(e-1)&&(e=Math.sqrt(e)),EX(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},SX.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(xX.mul(MX,t.invTransform,e),e=MX);var n=this.origin;n&&(n[0]||n[1])&&(TX[4]=n[0],TX[5]=n[1],xX.mul(MX,e,TX),MX[4]-=n[0],MX[5]-=n[1],e=MX),this.setLocalTransform(e)}},SX.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},SX.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&IX.applyTransform(n,n,i),n},SX.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&IX.applyTransform(n,n,i),n},bX.getLocalTransform=function(t,e){e=e||[],wX(e);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,o=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),xX.scale(e,e,i),r&&xX.rotate(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=o[0],e[5]+=o[1],e};var DX=bX,RX=DX,kX={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-kX.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*kX.bounceIn(2*t):.5*kX.bounceOut(2*t-1)+.5}},LX=kX,PX=LX,QX=PX;function zX(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}zX.prototype={constructor:zX,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,r="string"==typeof i?QX[i]:i,o="function"==typeof r?r(n):n;return this.fire("frame",o),1===n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var FX=zX,OX=FX,NX={},GX=function(){this.head=null,this.tail=null,this._len=0},jX=GX.prototype;jX.insert=function(t){var e=new UX(t);return this.insertEntry(e),e},jX.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},jX.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},jX.len=function(){return this._len},jX.clear=function(){this.head=this.tail=null,this._len=0};var UX=function(t){this.value=t,this.next,this.prev},qX=function(t){this._list=new GX,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},VX=qX.prototype;VX.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var a=n.head;n.remove(a),delete i[a.key],r=a.value,this._lastRemovedEntry=a}s?s.value=e:s=new UX(e),s.key=t,n.insertEntry(s),i[t]=s}return r},VX.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},VX.clear=function(){this._list.clear(),this._map={}};var HX=qX,YX=HX,WX=YX,XX={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ZX(t){return t=Math.round(t),t<0?0:t>255?255:t}function KX(t){return t=Math.round(t),t<0?0:t>360?360:t}function JX(t){return t<0?0:t>1?1:t}function $X(t){return t.length&&"%"===t.charAt(t.length-1)?ZX(parseFloat(t)/100*255):ZX(parseInt(t,10))}function tZ(t){return t.length&&"%"===t.charAt(t.length-1)?JX(parseFloat(t)/100):JX(parseFloat(t))}function eZ(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function nZ(t,e,n){return t+(e-t)*n}function iZ(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function rZ(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var oZ=new WX(20),sZ=null;function aZ(t,e){sZ&&rZ(sZ,e),sZ=oZ.put(t,sZ||e.slice())}function lZ(t,e){if(t){e=e||[];var n=oZ.get(t);if(n)return rZ(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in XX)return rZ(e,XX[i]),aZ(t,e),e;if("#"===i.charAt(0)){if(4===i.length){var r=parseInt(i.substr(1),16);return r>=0&&r<=4095?(iZ(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1),aZ(t,e),e):void iZ(e,0,0,0,1)}if(7===i.length){r=parseInt(i.substr(1),16);return r>=0&&r<=16777215?(iZ(e,(16711680&r)>>16,(65280&r)>>8,255&r,1),aZ(t,e),e):void iZ(e,0,0,0,1)}return}var o=i.indexOf("("),s=i.indexOf(")");if(-1!==o&&s+1===i.length){var a=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),h=1;switch(a){case"rgba":if(4!==l.length)return void iZ(e,0,0,0,1);h=tZ(l.pop());case"rgb":return 3!==l.length?void iZ(e,0,0,0,1):(iZ(e,$X(l[0]),$X(l[1]),$X(l[2]),h),aZ(t,e),e);case"hsla":return 4!==l.length?void iZ(e,0,0,0,1):(l[3]=tZ(l[3]),hZ(l,e),aZ(t,e),e);case"hsl":return 3!==l.length?void iZ(e,0,0,0,1):(hZ(l,e),aZ(t,e),e);default:return}}iZ(e,0,0,0,1)}}function hZ(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=tZ(t[1]),r=tZ(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return e=e||[],iZ(e,ZX(255*eZ(s,o,n+1/3)),ZX(255*eZ(s,o,n)),ZX(255*eZ(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function uZ(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,s=Math.min(i,r,o),a=Math.max(i,r,o),l=a-s,h=(a+s)/2;if(0===l)e=0,n=0;else{n=h<.5?l/(a+s):l/(2-a-s);var u=((a-i)/6+l/2)/l,c=((a-r)/6+l/2)/l,g=((a-o)/6+l/2)/l;i===a?e=g-c:r===a?e=1/3+u-g:o===a&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,h];return null!=t[3]&&d.push(t[3]),d}}function cZ(t,e){var n=lZ(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return vZ(n,4===n.length?"rgba":"rgb")}}function gZ(t){var e=lZ(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function dZ(t,e,n){if(e&&e.length&&(t>=0&&t<=1)){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),s=e[r],a=e[o],l=i-r;return n[0]=ZX(nZ(s[0],a[0],l)),n[1]=ZX(nZ(s[1],a[1],l)),n[2]=ZX(nZ(s[2],a[2],l)),n[3]=JX(nZ(s[3],a[3],l)),n}}var fZ=dZ;function AZ(t,e,n){if(e&&e.length&&(t>=0&&t<=1)){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),s=lZ(e[r]),a=lZ(e[o]),l=i-r,h=vZ([ZX(nZ(s[0],a[0],l)),ZX(nZ(s[1],a[1],l)),ZX(nZ(s[2],a[2],l)),JX(nZ(s[3],a[3],l))],"rgba");return n?{color:h,leftIndex:r,rightIndex:o,value:i}:h}}var pZ=AZ;function mZ(t,e,n,i){if(t=lZ(t),t)return t=uZ(t),null!=e&&(t[0]=KX(e)),null!=n&&(t[1]=tZ(n)),null!=i&&(t[2]=tZ(i)),vZ(hZ(t),"rgba")}function yZ(t,e){if(t=lZ(t),t&&null!=e)return t[3]=JX(e),vZ(t,"rgba")}function vZ(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}NX.parse=lZ,NX.lift=cZ,NX.toHex=gZ,NX.fastLerp=dZ,NX.fastMapToColor=fZ,NX.lerp=AZ,NX.mapToColor=pZ,NX.modifyHSL=mZ,NX.modifyAlpha=yZ,NX.stringify=vZ;var _Z=OX,xZ=NX,IZ=bH,wZ=IZ.isArrayLike,CZ=Array.prototype.slice;function EZ(t,e){return t[e]}function bZ(t,e,n){t[e]=n}function SZ(t,e,n){return(e-t)*n+t}function BZ(t,e,n){return n>.5?e:t}function MZ(t,e,n,i,r){var o=t.length;if(1===r)for(var s=0;sr;if(o)t.length=r;else for(var s=i;s=0&&!(p[n]<=e);n--);n=Math.min(n,h-2)}else{for(n=T;ne);n++);n=Math.min(n-1,h-2)}T=n,D=e;var i=p[n+1]-p[n];if(0!==i)if(E=(e-p[n])/i,l)if(S=m[n],b=m[0===n?n:n-1],B=m[n>h-2?h-1:n+1],M=m[n>h-3?h-1:n+2],g)RZ(b,S,B,M,E,E*E,E*E*E,s(t,r),A);else{if(d)o=RZ(b,S,B,M,E,E*E,E*E*E,R,1),o=PZ(R);else{if(f)return BZ(S,B,E);o=kZ(b,S,B,M,E,E*E,E*E*E)}a(t,r,o)}else if(g)MZ(m[n],m[n+1],E,s(t,r),A);else{var o;if(d)MZ(m[n],m[n+1],E,R,1),o=PZ(R);else{if(f)return BZ(m[n],m[n+1],E);o=SZ(m[n],m[n+1],E)}a(t,r,o)}},L=new _Z({target:t._target,life:u,loop:t._loop,delay:t._delay,onframe:k,ondestroy:n});return e&&"spline"!==e&&(L.easing=e),L}}}var FZ=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||EZ,this._setter=i||bZ,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};FZ.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:LZ(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t0&&t.animate(e,!1).when(null==r?500:r,a).delay(o||0)}function aK(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}rK.prototype={constructor:rK,animate:function(t,e){var n,i=!1,r=this,o=this.__zr;if(t){var s=t.split("."),a=r;i="shape"===s[0];for(var l=0,h=s.length;l=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new wK(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},wK.create=function(t){return new wK(t.x,t.y,t.width,t.height)};var CK=wK,EK=CK,bK=bH,SK=mK,BK=EK,MK=function(t){for(var e in t=t||{},SK.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};MK.prototype={constructor:MK,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof MK&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=bK.indexOf(i,t);return r<0||(i.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof MK&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e=RK;)e|=1&t,t>>=1;return t+e}function PK(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function QK(t,e,n){for(n--;e>>1,r(s,t[o])<0?l=o:a=o+1;var h=i-a;switch(h){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;h>0;)t[a+h]=t[a+h-1],h--}t[a]=s}}function FK(t,e,n,i,r,o){var s=0,a=0,l=1;if(o(t,e[n+r])>0){for(a=i-r;l0;)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}else{for(a=r+1;la&&(l=a);var h=s;s=r-l,l=r-h}for(s++;s>>1);o(t,e[n+u])>0?s=u+1:l=u}return l}function OK(t,e,n,i,r,o){var s=0,a=0,l=1;if(o(t,e[n+r])<0){for(a=r+1;la&&(l=a);var h=s;s=r-l,l=r-h}else{for(a=i-r;l=0;)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}for(s++;s>>1);o(t,e[n+u])<0?l=u:s=u+1}return l}function NK(t,e){var n,i,r=kK,o=0;t.length;var s=[];function a(t,e){n[o]=t,i[o]=e,o+=1}function l(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;u(t)}}function h(){for(;o>1;){var t=o-2;t>0&&i[t-1]=kK||d>=kK);if(f)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),1===i){for(l=0;l=0;l--)t[d+l]=t[g+l];if(0===i){m=!0;break}}if(t[c--]=s[u--],1===--a){m=!0;break}if(p=a-FK(t[h],s,0,a,a-1,e),0!==p){for(c-=p,u-=p,a-=p,d=c+1,g=u+1,l=0;l=kK||p>=kK);if(m)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(c-=i,h-=i,d=c+1,g=h+1,l=i-1;l>=0;l--)t[d+l]=t[g+l];t[c]=s[u]}else{if(0===a)throw new Error;for(g=c-(a-1),l=0;l=0;l--)t[d+l]=t[g+l];t[c]=s[u]}else for(g=c-(a-1),l=0;la&&(l=a),zK(t,n,n+l,n+o,e),o=l}s.pushRun(n,o),s.mergeRuns(),r-=o,n+=o}while(0!==r);s.forceMergeRuns()}}var jK=GK,UK=bH,qK=EH,VK=DK,HK=jK;function YK(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var WK=function(){this._roots=[],this._displayList=[],this._displayListLen=0};WK.prototype={constructor:WK,traverse:function(t,e){for(var n=0;n=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof VK&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:YK};var XK=WK,ZK=XK,KK={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function JK(t,e,n){return KK.hasOwnProperty(e)?n*=t.dpr:n}var $K=JK,tJ={},eJ={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},nJ=9;tJ.ContextCachedBy=eJ,tJ.WILL_BE_RESTORED=nJ;var iJ=$K,rJ=tJ,oJ=rJ.ContextCachedBy,sJ=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],aJ=function(t){this.extendFrom(t,!1)};function lJ(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,s=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,s=s*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,s=isNaN(s)?0:s;var a=t.createLinearGradient(i,o,r,s);return a}function hJ(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),s=null==e.x?.5:e.x,a=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(s=s*i+n.x,a=a*r+n.y,l*=o);var h=t.createRadialGradient(s,a,0,s,a,l);return h}aJ.prototype={constructor:aJ,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var i=this,r=n&&n.style,o=!r||t.__attrCachedBy!==oJ.STYLE_BIND;t.__attrCachedBy=oJ.STYLE_BIND;for(var s=0;s0},extendFrom:function(t,e){if(t)for(var n in t)t.hasOwnProperty(n)&&(!0===e||(!1===e?!this.hasOwnProperty(n):null!=t[n]))&&(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i="radial"===e.type?hJ:lJ,r=i(t,e,n),o=e.colorStops,s=0;sXJ&&(WJ=0,YJ={}),WJ++,YJ[n]=r,r}function e$(t,e,n,i,r,o,s,a){return s?i$(t,e,n,i,r,o,s,a):n$(t,e,n,i,r,o,a)}function n$(t,e,n,i,r,o,s){var a=f$(t,e,r,o,s),l=t$(t,e);r&&(l+=r[1]+r[3]);var h=a.outerHeight,u=r$(0,l,n),c=o$(0,h,i),g=new OJ(u,c,l,h);return g.lineHeight=a.lineHeight,g}function i$(t,e,n,i,r,o,s,a){var l=A$(t,{rich:s,truncate:a,font:e,textAlign:n,textPadding:r,textLineHeight:o}),h=l.outerWidth,u=l.outerHeight,c=r$(0,h,n),g=o$(0,u,i);return new OJ(c,g,h,u)}function r$(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function o$(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function s$(t,e,n){var i=e.textPosition,r=e.textDistance,o=n.x,s=n.y;r=r||0;var a=n.height,l=n.width,h=a/2,u="left",c="top";switch(i){case"left":o-=r,s+=h,u="right",c="middle";break;case"right":o+=r+l,s+=h,c="middle";break;case"top":o+=l/2,s-=r,u="center",c="bottom";break;case"bottom":o+=l/2,s+=a+r,u="center";break;case"inside":o+=l/2,s+=h,u="center",c="middle";break;case"insideLeft":o+=r,s+=h,c="middle";break;case"insideRight":o+=l-r,s+=h,u="right",c="middle";break;case"insideTop":o+=l/2,s+=r,u="center";break;case"insideBottom":o+=l/2,s+=a-r,u="center",c="bottom";break;case"insideTopLeft":o+=r,s+=r;break;case"insideTopRight":o+=l-r,s+=r,u="right";break;case"insideBottomLeft":o+=r,s+=a-r,c="bottom";break;case"insideBottomRight":o+=l-r,s+=a-r,u="right",c="bottom";break}return t=t||{},t.x=o,t.y=s,t.textAlign=u,t.textVerticalAlign=c,t}function a$(t,e,n){var i={textPosition:t,textDistance:n};return s$({},i,e)}function l$(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=h$(e,n,i,r);for(var s=0,a=o.length;s=o;a++)s-=o;var l=t$(n,e);return l>s&&(n="",l=0),s=t-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=t,i}function u$(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=t$(t,i);if(o<=n)return t;for(var s=0;;s++){if(o<=r||s>=e.maxIterations){t+=e.ellipsis;break}var a=0===s?c$(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,a),o=t$(t,i)}return""===t&&(t=e.placeholder),t}function c$(t,e,n,i){for(var r=0,o=0,s=t.length;ou)t="",s=[];else if(null!=c)for(var g=h$(c-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),d=0,f=s.length;dr&&p$(n,t.substring(r,o)),p$(n,i[2],i[1]),r=ZJ.lastIndex}rd)return{lines:[],width:0,height:0};v.textWidth=t$(v.text,I);var C=_.textWidth,E=null==C||"auto"===C;if("string"==typeof C&&"%"===C.charAt(C.length-1))v.percentWidth=C,h.push(v),C=0;else{if(E){C=v.textWidth;var b=_.textBackgroundColor,S=b&&b.image;S&&(S=NJ.findExistImage(S),NJ.isImageReady(S)&&(C=Math.max(C,S.width*w/S.height)))}var B=x?x[1]+x[3]:0;C+=B;var M=null!=g?g-m:null;null!=M&&Mh&&(s=n+i,n*=h/s,i*=h/s),r+o>h&&(s=r+o,r*=h/s,o*=h/s),i+r>u&&(s=i+r,i*=u/s,r*=u/s),n+o>u&&(s=n+o,n*=u/s,o*=u/s),t.moveTo(a+n,l),t.lineTo(a+h-i,l),0!==i&&t.arc(a+h-i,l+i,i,-Math.PI/2,0),t.lineTo(a+h,l+u-r),0!==r&&t.arc(a+h-r,l+u-r,r,0,Math.PI/2),t.lineTo(a+o,l+u),0!==o&&t.arc(a+o,l+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,l+n),0!==n&&t.arc(a+n,l+n,n,Math.PI,1.5*Math.PI)}y$.buildPath=v$;var _$,x$,I$=bH,w$=I$.retrieve2,C$=I$.retrieve3,E$=I$.each,b$=I$.normalizeCssArray,S$=I$.isString,B$=I$.isObject,M$=DJ,T$=y$,D$=RJ,R$=$K,k$=tJ,L$=k$.ContextCachedBy,P$=k$.WILL_BE_RESTORED,Q$=M$.DEFAULT_FONT,z$={left:1,right:1,center:1},F$={top:1,bottom:1,middle:1},O$=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],N$={},G$={};function j$(t){return U$(t),E$(t.rich,U$),t}function U$(t){if(t){t.font=M$.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||z$[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||F$[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=b$(t.textPadding))}}function q$(t,e,n,i,r,o){i.rich?H$(t,e,n,i,r,o):V$(t,e,n,i,r,o)}function V$(t,e,n,i,r,o){var s,a=Z$(i),l=!1,h=e.__attrCachedBy===L$.PLAIN_TEXT;o!==P$?(o&&(s=o.style,l=!a&&h&&s),e.__attrCachedBy=a?L$.NONE:L$.PLAIN_TEXT):h&&(e.__attrCachedBy=L$.NONE);var u=i.font||Q$;(!l||u!==(s.font||Q$))&&(e.font=u);var c=t.__computedFont;t.__styleFont!==u&&(t.__styleFont=u,c=t.__computedFont=e.font);var g=i.textPadding,d=i.textLineHeight,f=t.__textCotentBlock;(!f||t.__dirtyText)&&(f=t.__textCotentBlock=M$.parsePlainText(n,c,g,d,i.truncate));var A=f.outerHeight,p=f.lines,m=f.lineHeight,y=$$(G$,t,i,r),v=y.baseX,_=y.baseY,x=y.textAlign||"left",I=y.textVerticalAlign;W$(e,i,r,v,_);var w=M$.adjustTextY(_,A,I),C=v,E=w;if(a||g){var b=M$.getWidth(n,c),S=b;g&&(S+=g[1]+g[3]);var B=M$.adjustTextX(v,S,x);a&&K$(t,e,i,B,w,S,A),g&&(C=r0(v,x,g),E+=g[0])}e.textAlign=x,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var M=0;M=0&&(_=I[M],"right"===_.textAlign);)X$(t,e,_,i,C,m,B,"right"),E-=_.width,B-=_.width,M--;for(S+=(o-(S-p)-(y-B)-E)/2;b<=M;)_=I[b],X$(t,e,_,i,C,m,S+_.width/2,"center"),S+=_.width,b++;m+=C}}function W$(t,e,n,i,r){if(n&&e.textRotation){var o=e.textOrigin;"center"===o?(i=n.width/2+n.x,r=n.height/2+n.y):o&&(i=o[0]+n.x,r=o[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function X$(t,e,n,i,r,o,s,a){var l=i.rich[n.styleName]||{};l.text=n.text;var h=n.textVerticalAlign,u=o+r/2;"top"===h?u=o+n.height/2:"bottom"===h&&(u=o+r-n.height/2),!n.isLineHolder&&Z$(l)&&K$(t,e,l,"right"===a?s-n.width:"center"===a?s-n.width/2:s,u-n.height/2,n.width,n.height);var c=n.textPadding;c&&(s=r0(s,a,c),u-=n.height/2-c[2]-n.textHeight/2),t0(e,"shadowBlur",C$(l.textShadowBlur,i.textShadowBlur,0)),t0(e,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),t0(e,"shadowOffsetX",C$(l.textShadowOffsetX,i.textShadowOffsetX,0)),t0(e,"shadowOffsetY",C$(l.textShadowOffsetY,i.textShadowOffsetY,0)),t0(e,"textAlign",a),t0(e,"textBaseline","middle"),t0(e,"font",n.font||Q$);var g=e0(l.textStroke||i.textStroke,f),d=n0(l.textFill||i.textFill),f=w$(l.textStrokeWidth,i.textStrokeWidth);g&&(t0(e,"lineWidth",f),t0(e,"strokeStyle",g),e.strokeText(n.text,s,u)),d&&(t0(e,"fillStyle",d),e.fillText(n.text,s,u))}function Z$(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function K$(t,e,n,i,r,o,s){var a=n.textBackgroundColor,l=n.textBorderWidth,h=n.textBorderColor,u=S$(a);if(t0(e,"shadowBlur",n.textBoxShadowBlur||0),t0(e,"shadowColor",n.textBoxShadowColor||"transparent"),t0(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),t0(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),u||l&&h){e.beginPath();var c=n.textBorderRadius;c?T$.buildPath(e,{x:i,y:r,width:o,height:s,r:c}):e.rect(i,r,o,s),e.closePath()}if(u)if(t0(e,"fillStyle",a),null!=n.fillOpacity){var g=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=g}else e.fill();else if(B$(a)){var d=a.image;d=D$.createOrUpdateImage(d,null,t,J$,a),d&&D$.isImageReady(d)&&e.drawImage(d,i,r,o,s)}if(l&&h)if(t0(e,"lineWidth",l),t0(e,"strokeStyle",h),null!=n.strokeOpacity){g=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=g}else e.stroke()}function J$(t,e){e.image=t}function $$(t,e,n,i){var r=n.x||0,o=n.y||0,s=n.textAlign,a=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+i0(l[0],i.width),o=i.y+i0(l[1],i.height);else{var h=e&&e.calculateTextPosition?e.calculateTextPosition(N$,n,i):M$.calculateTextPosition(N$,n,i);r=h.x,o=h.y,s=s||h.textAlign,a=a||h.textVerticalAlign}var u=n.textOffset;u&&(r+=u[0],o+=u[1])}return t=t||{},t.baseX=r,t.baseY=o,t.textAlign=s,t.textVerticalAlign=a,t}function t0(t,e,n){return t[e]=R$(t,e,n),t[e]}function e0(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function n0(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function i0(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function r0(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function o0(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function s0(){if(x$)return _$;x$=1;var t=TJ,e=EK,n=tJ,i=n.WILL_BE_RESTORED,r=new e,o=function(){};o.prototype={constructor:o,drawRectText:function(e,n){var o=this.style;n=o.textRect||n,this.__dirty&&t.normalizeTextStyle(o,!0);var s=o.text;if(null!=s&&(s+=""),t.needDrawText(s,o)){e.save();var a=this.transform;o.transformText?this.setTransform(e):a&&(r.copy(n),r.applyTransform(a),n=r),t.renderText(this,e,s,o,n,i),e.restore()}}};var s=o;return _$=s,_$}TJ.normalizeTextStyle=j$,TJ.renderText=q$,TJ.getBoxPosition=$$,TJ.getStroke=e0,TJ.getFill=n0,TJ.parsePercent=i0,TJ.needDrawText=o0;var a0=bH,l0=fJ,h0=mK,u0=s0();function c0(t){for(var e in t=t||{},h0.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new l0(t.style),this._rect=null,this.__clipPaths=null}c0.prototype={constructor:c0,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?h0.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new l0(t),this.dirty(!1),this},calculateTextPosition:null},a0.inherits(c0,h0),a0.mixin(c0,u0);var g0=c0,d0=g0,f0=d0,A0=EK,p0=bH,m0=RJ;function y0(t){f0.call(this,t)}y0.prototype={constructor:y0,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=m0.createOrUpdateImage(i,this._image,this,this.onload);if(r&&m0.isImageReady(r)){var o=n.x||0,s=n.y||0,a=n.width,l=n.height,h=r.width/r.height;if(null==a&&null!=l?a=l*h:null==l&&null!=a?l=a/h:null==a&&null==l&&(a=r.width,l=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,o,s,a,l)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var g=a-u,d=l-c;t.drawImage(r,u,c,g,d,o,s,a,l)}else t.drawImage(r,o,s,a,l);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new A0(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},p0.inherits(y0,f0);var v0=y0,_0=v0,x0=GZ,I0=x0.devicePixelRatio,w0=bH,C0=XZ,E0=EK,b0=jK,S0=SJ,B0=MJ,M0=_0,T0=EH,D0=1e5,R0=314159,k0=.01,L0=.001;function P0(t){return parseInt(t,10)}function Q0(t){return!!t&&(!!t.__builtin__||!("function"!=typeof t.resize||"function"!=typeof t.refresh))}var z0=new E0(0,0,0,0),F0=new E0(0,0,0,0);function O0(t,e,n){return z0.copy(t.getBoundingRect()),t.transform&&z0.applyTransform(t.transform),F0.width=e,F0.height=n,!z0.intersect(F0)}function N0(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n15)break}}o.__drawIndex=A,o.__drawIndex0&&t>i[0]){for(s=0;st);s++);o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(e.dom,l.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)}else C0("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i0?k0:0),this._needsManuallyCompositing),a.__builtin__||C0("ZLevel "+l+" has been used by unkown layer "+a.id),a!==o&&(a.__used=!0,a.__startIndex!==n&&(a.__dirty=!0),a.__startIndex=n,a.incremental?a.__drawIndex=-1:a.__drawIndex=n,e(n),o=a),i.__dirty&&(a.__dirty=!0,a.incremental&&a.__drawIndex<0&&(a.__drawIndex=n))}e(n),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?w0.merge(n[t],e,!0):n[t]=e;for(var i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n=n.length&&n.push({option:t})}})),n}function h1(t){var e=K2.createHashMap();$2(t,(function(t,n){var i=t.exist;i&&e.set(i.id,t)})),$2(t,(function(t,n){var i=t.option;K2.assert(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})})),$2(t,(function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(t1(r)){if(o.name=null!=r.name?r.name+"":i?i.name:n1+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,t)}}))}function u1(t){var e=t.name;return!(!e||!e.indexOf(n1))}function c1(t){return t1(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function g1(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0||i&&P1.indexOf(i,s)<0)){var a=e.getShallow(s);null!=a&&(r[t[o][0]]=a)}}return r}}var z1=Q1,F1=z1,O1=F1([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),N1={getLineStyle:function(t){var e=O1(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[i,i]:[n,n])}},G1=N1,j1=z1,U1=j1([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),q1={getAreaStyle:function(t,e){return U1(this,t,e)}},V1=q1,H1={},Y1={},W1={},X1=EY,Z1=X1.create,K1=X1.distSquare,J1=Math.pow,$1=Math.sqrt,t3=1e-8,e3=1e-4,n3=$1(3),i3=1/3,r3=Z1(),o3=Z1(),s3=Z1();function a3(t){return t>-t3&&tt3||t<-t3}function h3(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function u3(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function c3(t,e,n,i,r,o){var s=i+3*(e-n)-t,a=3*(n-2*e+t),l=3*(e-t),h=t-r,u=a*a-3*s*l,c=a*l-9*s*h,g=l*l-3*a*h,d=0;if(a3(u)&&a3(c))if(a3(a))o[0]=0;else{var f=-l/a;f>=0&&f<=1&&(o[d++]=f)}else{var A=c*c-4*u*g;if(a3(A)){var p=c/u,m=(f=-a/s+p,-p/2);f>=0&&f<=1&&(o[d++]=f),m>=0&&m<=1&&(o[d++]=m)}else if(A>0){var y=$1(A),v=u*a+1.5*s*(-c+y),_=u*a+1.5*s*(-c-y);v=v<0?-J1(-v,i3):J1(v,i3),_=_<0?-J1(-_,i3):J1(_,i3);f=(-a-(v+_))/(3*s);f>=0&&f<=1&&(o[d++]=f)}else{var x=(2*u*a-3*s*c)/(2*$1(u*u*u)),I=Math.acos(x)/3,w=$1(u),C=Math.cos(I),E=(f=(-a-2*w*C)/(3*s),m=(-a+w*(C+n3*Math.sin(I)))/(3*s),(-a+w*(C-n3*Math.sin(I)))/(3*s));f>=0&&f<=1&&(o[d++]=f),m>=0&&m<=1&&(o[d++]=m),E>=0&&E<=1&&(o[d++]=E)}}return d}function g3(t,e,n,i,r){var o=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,a=3*e-3*t,l=0;if(a3(s)){if(l3(o)){var h=-a/o;h>=0&&h<=1&&(r[l++]=h)}}else{var u=o*o-4*s*a;if(a3(u))r[0]=-o/(2*s);else if(u>0){var c=$1(u),g=(h=(-o+c)/(2*s),(-o-c)/(2*s));h>=0&&h<=1&&(r[l++]=h),g>=0&&g<=1&&(r[l++]=g)}}return l}function d3(t,e,n,i,r,o){var s=(e-t)*r+t,a=(n-e)*r+e,l=(i-n)*r+n,h=(a-s)*r+s,u=(l-a)*r+a,c=(u-h)*r+h;o[0]=t,o[1]=s,o[2]=h,o[3]=c,o[4]=c,o[5]=u,o[6]=l,o[7]=i}function f3(t,e,n,i,r,o,s,a,l,h,u){var c,g,d,f,A,p=.005,m=1/0;r3[0]=l,r3[1]=h;for(var y=0;y<1;y+=.05)o3[0]=h3(t,n,r,s,y),o3[1]=h3(e,i,o,a,y),f=K1(r3,o3),f=0&&f=0&&h<=1&&(r[l++]=h)}}else{var u=s*s-4*o*a;if(a3(u)){h=-s/(2*o);h>=0&&h<=1&&(r[l++]=h)}else if(u>0){var c=$1(u),g=(h=(-s+c)/(2*o),(-s-c)/(2*o));h>=0&&h<=1&&(r[l++]=h),g>=0&&g<=1&&(r[l++]=g)}}return l}function y3(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function v3(t,e,n,i,r){var o=(e-t)*i+t,s=(n-e)*i+e,a=(s-o)*i+o;r[0]=t,r[1]=o,r[2]=a,r[3]=a,r[4]=s,r[5]=n}function _3(t,e,n,i,r,o,s,a,l){var h,u=.005,c=1/0;r3[0]=s,r3[1]=a;for(var g=0;g<1;g+=.05){o3[0]=A3(t,n,r,g),o3[1]=A3(e,i,o,g);var d=K1(r3,o3);d=0&&d1e-4)return f[0]=e-i,f[1]=n-u,A[0]=e+i,void(A[1]=n+u);if(a[0]=o(c)*i+e,a[1]=r(c)*u+n,l[0]=o(g)*i+e,l[1]=r(g)*u+n,p(f,a,l),m(A,a,l),c%=s,c<0&&(c+=s),g%=s,g<0&&(g+=s),c>g&&!d?g+=s:cc&&(h[0]=o(_)*i+e,h[1]=r(_)*u+n,p(f,h,f),m(A,h,A))}return I3.fromPoints=u,I3.fromLine=c,I3.fromCubic=f,I3.fromQuadratic=A,I3.fromArc=p,I3}var C3=W1,E3=EY,b3=w3(),S3=EK,B3=GZ,M3=B3.devicePixelRatio,T3={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},D3=[],R3=[],k3=[],L3=[],P3=Math.min,Q3=Math.max,z3=Math.cos,F3=Math.sin,O3=Math.sqrt,N3=Math.abs,G3="undefined"!=typeof Float32Array,j3=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};j3.prototype={constructor:j3,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=N3(n/M3/t)||0,this._uy=N3(n/M3/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(T3.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=N3(t-this._xi)>this._ux||N3(e-this._yi)>this._uy||this._len<5;return this.addData(T3.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(T3.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(T3.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(T3.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=z3(r)*n+t,this._yi=F3(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(T3.R,t,e,n,i),this},closePath:function(){this.addData(T3.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&d<=t||u<0&&d>=t||0===u&&(c>0&&f<=e||c<0&&f>=e);)i=this._dashIdx,n=s[i],d+=u*n,f+=c*n,this._dashIdx=(i+1)%A,!(u>0&&dl||c>0&&fh)&&a[i%2?"moveTo":"lineTo"](u>=0?P3(d,t):Q3(d,t),c>=0?P3(f,e):Q3(f,e));u=d-t,c=f-e,this._dashOffset=-O3(u*u+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var s,a,l,h,u,c=this._dashSum,g=this._dashOffset,d=this._lineDash,f=this._ctx,A=this._xi,p=this._yi,m=C3.cubicAt,y=0,v=this._dashIdx,_=d.length,x=0;for(g<0&&(g=c+g),g%=c,s=0;s<1;s+=.1)a=m(A,t,n,r,s+.1)-m(A,t,n,r,s),l=m(p,e,i,o,s+.1)-m(p,e,i,o,s),y+=O3(a*a+l*l);for(;v<_&&(x+=d[v],!(x>g));v++);for(s=(x-g)/y;s<=1;)h=m(A,t,n,r,s),u=m(p,e,i,o,s),v%2?f.moveTo(h,u):f.lineTo(h,u),s+=d[v]/y,v=(v+1)%_;v%2!==0&&f.lineTo(r,o),a=r-h,l=o-u,this._dashOffset=-O3(a*a+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,G3&&(this.data=new Float32Array(t)))},getBoundingRect:function(){D3[0]=D3[1]=k3[0]=k3[1]=Number.MAX_VALUE,R3[0]=R3[1]=L3[0]=L3[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;ol||N3(s-r)>h||c===u-1)&&(t.lineTo(o,s),i=o,r=s);break;case T3.C:t.bezierCurveTo(a[c++],a[c++],a[c++],a[c++],a[c++],a[c++]),i=a[c-2],r=a[c-1];break;case T3.Q:t.quadraticCurveTo(a[c++],a[c++],a[c++],a[c++]),i=a[c-2],r=a[c-1];break;case T3.A:var d=a[c++],f=a[c++],A=a[c++],p=a[c++],m=a[c++],y=a[c++],v=a[c++],_=a[c++],x=A>p?A:p,I=A>p?1:A/p,w=A>p?p/A:1,C=Math.abs(A-p)>.001,E=m+y;C?(t.translate(d,f),t.rotate(v),t.scale(I,w),t.arc(0,0,x,m,E,1-_),t.scale(1/I,1/w),t.rotate(-v),t.translate(-d,-f)):t.arc(d,f,x,m,E,1-_),1===c&&(e=z3(m)*A+d,n=F3(m)*p+f),i=z3(E)*A+d,r=F3(E)*p+f;break;case T3.R:e=i=a[c],n=r=a[c+1],t.rect(a[c++],a[c++],a[c++],a[c++]);break;case T3.Z:t.closePath(),i=e,r=n}}}},j3.CMD=T3;var U3=j3,q3=U3,V3={},H3={};function Y3(t,e,n,i,r,o,s){if(0===r)return!1;var a=r,l=0,h=t;if(s>e+a&&s>i+a||st+a&&o>n+a||oe+c&&u>i+c&&u>o+c&&u>a+c||ut+c&&h>n+c&&h>r+c&&h>s+c||he+h&&l>i+h&&l>o+h||lt+h&&a>n+h&&a>r+h||an||u+hr&&(r+=a5);var g=Math.atan2(l,a);return g<0&&(g+=a5),g>=i&&g<=r||g+a5>=i&&g+a5<=r}function h5(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}e5.containStroke=l5;var u5=h5,c5=q3,g5=H3,d5=W3,f5=K3,A5=e5,p5=n5,m5=p5.normalizeRadian,y5=W1,v5=u5,_5=c5.CMD,x5=2*Math.PI,I5=1e-4;function w5(t,e){return Math.abs(t-e)e&&h>i&&h>o&&h>a||h1&&b5(),c=y5.cubicAt(e,i,o,a,E5[0]),f>1&&(g=y5.cubicAt(e,i,o,a,E5[1]))),2===f?pe&&a>i&&a>o||a=0&&h<=1){for(var u=0,c=y5.quadraticAt(e,i,o,h),g=0;gn||a<-n)return 0;var l=Math.sqrt(n*n-a*a);C5[0]=-l,C5[1]=l;var h=Math.abs(i-r);if(h<1e-4)return 0;if(h%x5<1e-4){i=0,r=x5;var u=o?1:-1;return s>=C5[0]+t&&s<=C5[1]+t?u:0}if(o){l=i;i=m5(r),r=m5(l)}else i=m5(i),r=m5(r);i>r&&(r+=x5);for(var c=0,g=0;g<2;g++){var d=C5[g];if(d+t>s){var f=Math.atan2(a,d);u=o?1:-1;f<0&&(f=x5+f),(f>=i&&f<=r||f+x5>=i&&f+x5<=r)&&(f>Math.PI/2&&f<1.5*Math.PI&&(u=-u),c+=u)}}return c}function T5(t,e,n,i,r){for(var o=0,s=0,a=0,l=0,h=0,u=0;u1&&(n||(o+=v5(s,a,l,h,i,r))),1===u&&(s=t[u],a=t[u+1],l=s,h=a),c){case _5.M:l=t[u++],h=t[u++],s=l,a=h;break;case _5.L:if(n){if(g5.containStroke(s,a,t[u],t[u+1],e,i,r))return!0}else o+=v5(s,a,t[u],t[u+1],i,r)||0;s=t[u++],a=t[u++];break;case _5.C:if(n){if(d5.containStroke(s,a,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],e,i,r))return!0}else o+=S5(s,a,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],i,r)||0;s=t[u++],a=t[u++];break;case _5.Q:if(n){if(f5.containStroke(s,a,t[u++],t[u++],t[u],t[u+1],e,i,r))return!0}else o+=B5(s,a,t[u++],t[u++],t[u],t[u+1],i,r)||0;s=t[u++],a=t[u++];break;case _5.A:var g=t[u++],d=t[u++],f=t[u++],A=t[u++],p=t[u++],m=t[u++];u+=1;var y=1-t[u++],v=Math.cos(p)*f+g,_=Math.sin(p)*A+d;u>1?o+=v5(s,a,v,_,i,r):(l=v,h=_);var x=(i-g)*A/f+g;if(n){if(A5.containStroke(g,d,A,p,p+m,y,e,x,r))return!0}else o+=M5(g,d,A,p,p+m,y,x,r);s=Math.cos(p+m)*f+g,a=Math.sin(p+m)*A+d;break;case _5.R:l=s=t[u++],h=a=t[u++];var I=t[u++],w=t[u++];v=l+I,_=h+w;if(n){if(g5.containStroke(l,h,v,h,e,i,r)||g5.containStroke(v,h,v,_,e,i,r)||g5.containStroke(v,_,l,_,e,i,r)||g5.containStroke(l,_,l,h,e,i,r))return!0}else o+=v5(v,h,v,_,i,r),o+=v5(l,_,l,h,i,r);break;case _5.Z:if(n){if(g5.containStroke(s,a,l,h,e,i,r))return!0}else o+=v5(s,a,l,h,i,r);s=l,a=h;break}}return!n&&!w5(a,h)&&(o+=v5(s,a,l,h,i,r)||0),0!==o}function D5(t,e,n){return T5(t,0,!1,e,n)}function R5(t,e,n,i){return T5(t,e,!0,n,i)}V3.contain=D5,V3.containStroke=R5;var k5=d0,L5=bH,P5=q3,Q5=V3,z5=mJ,F5=z5.prototype.getCanvasPattern,O5=Math.abs,N5=new P5(!0);function G5(t){k5.call(this,t),this.path=null}G5.prototype={constructor:G5,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n,i=this.style,r=this.path||N5,o=i.hasStroke(),s=i.hasFill(),a=i.fill,l=i.stroke,h=s&&!!a.colorStops,u=o&&!!l.colorStops,c=s&&!!a.image,g=o&&!!l.image;(i.bind(t,this,e),this.setTransform(t),this.__dirty)&&(h&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,a,n)),u&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,l,n)));h?t.fillStyle=this._fillGradient:c&&(t.fillStyle=F5.call(a,t)),u?t.strokeStyle=this._strokeGradient:g&&(t.strokeStyle=F5.call(l,t));var d=i.lineDash,f=i.lineDashOffset,A=!!t.setLineDash,p=this.getGlobalScale();if(r.setScale(p[0],p[1],this.segmentIgnoreThreshold),this.__dirtyPath||d&&!A&&o?(r.beginPath(t),d&&!A&&(r.setLineDash(d),r.setLineDashOffset(f)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),s)if(null!=i.fillOpacity){var m=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,r.fill(t),t.globalAlpha=m}else r.fill(t);if(d&&A&&(t.setLineDash(d),t.lineDashOffset=f),o)if(null!=i.strokeOpacity){m=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,r.stroke(t),t.globalAlpha=m}else r.stroke(t);d&&A&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new P5},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new P5),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var s=r.lineWidth,a=r.strokeNoScale?this.getLineScale():1;if(a>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),Q5.containStroke(o,s/a,t,e)))return!0}if(r.hasFill())return Q5.contain(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):k5.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(L5.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&O5(t[0]-1)>1e-10&&O5(t[3]-1)>1e-10?Math.sqrt(O5(t[0]*t[3]-t[2]*t[1])):1}},G5.extend=function(t){var e=function(e){G5.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in L5.inherits(e,G5),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},L5.inherits(G5,k5);var j5=G5,U5=j5,q5=q3,V5=EY,H5=V5.applyTransform,Y5=q5.CMD,W5=[[],[],[]],X5=Math.sqrt,Z5=Math.atan2;function K5(t,e){var n,i,r,o,s,a=t.data,l=Y5.M,h=Y5.C,u=Y5.L,c=Y5.R,g=Y5.A,d=Y5.Q;for(r=0,o=0;r1&&(s*=n4(f),a*=n4(f));var A=(r===o?-1:1)*n4((s*s*(a*a)-s*s*(d*d)-a*a*(g*g))/(s*s*(d*d)+a*a*(g*g)))||0,p=A*s*d/a,m=A*-a*g/s,y=(t+n)/2+r4(c)*p-i4(c)*m,v=(e+i)/2+i4(c)*p+r4(c)*m,_=l4([1,0],[(g-p)/s,(d-m)/a]),x=[(g-p)/s,(d-m)/a],I=[(-1*g-p)/s,(-1*d-m)/a],w=l4(x,I);a4(x,I)<=-1&&(w=o4),a4(x,I)>=1&&(w=0),0===o&&w>0&&(w-=2*o4),1===o&&w<0&&(w+=2*o4),u.addData(h,y,v,s,a,_,w,c,o)}var u4=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,c4=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g4(t){if(!t)return new t4;for(var e,n=0,i=0,r=n,o=i,s=new t4,a=t4.CMD,l=t.match(u4),h=0;h=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;rn-2?n-1:c+1],h=t[c>n-3?n-1:c+2]);var f=g*g,A=g*f;i.push([U4(a[0],d[0],l[0],h[0],g,f,A),U4(a[1],d[1],l[1],h[1],g,f,A)])}return i}var V4=q4,H4=EY,Y4=H4.min,W4=H4.max,X4=H4.scale,Z4=H4.distance,K4=H4.add,J4=H4.clone,$4=H4.sub;function t8(t,e,n,i){var r,o,s,a,l=[],h=[],u=[],c=[];if(i){s=[1/0,1/0],a=[-1/0,-1/0];for(var g=0,d=t.length;g=2){if(r&&"spline"!==r){var o=i8(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var s=i.length,a=0;a<(n?s:s-1);a++){var l=o[2*a],h=o[2*a+1],u=i[(a+1)%s];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{"spline"===r&&(i=n8(i,n)),t.moveTo(i[0][0],i[0][1]);a=1;for(var c=i.length;a=0),l=!a&&null!=r;(a||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),a&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function F9(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function O9(t,e){var n=e&&e.getModel("textStyle");return m6.trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function N9(t,e,n,i,r,o){"function"==typeof r&&(o=r,r=null);var s=i&&i.isAnimationEnabled();if(s){var a=t?"Update":"",l=i.getShallow("animationDuration"+a),h=i.getShallow("animationEasing"+a),u=i.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof l&&(l=l(r)),l>0?e.animateTo(n,l,u||0,h,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function G9(t,e,n,i,r){N9(!0,t,e,n,i,r)}function j9(t,e,n,i,r){N9(!1,t,e,n,i,r)}function U9(t,e){for(var n=_6.identity([]);t&&t!==e;)_6.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function q9(t,e,n){return e&&!m6.isArrayLike(e)&&(e=w6.getLocalTransform(e)),n&&(e=_6.invert([],e)),x6.applyTransform([],t,e)}function V9(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=q9(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function H9(t,e,n,i){if(t&&e){var r=o(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=s(t);t.attr(s(e)),G9(t,i,n,t.dataIndex)}}}))}function o(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}function s(t){var e={position:x6.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=m6.extend({},t.shape)),e}}function Y9(t,e){return m6.map(t,(function(t){var n=t[0];n=j6(n,e.x),n=U6(n,e.x+e.width);var i=t[1];return i=j6(i,e.y),i=U6(i,e.y+e.height),[n,i]}))}function W9(t,e){var n=j6(t.x,e.x),i=U6(t.x+t.width,e.x+e.width),r=j6(t.y,e.y),o=U6(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function X9(t,e,n){e=m6.extend({rectHover:!0},e);var i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),m6.defaults(i,n),new C6(e)):n9(t.replace("path://",""),e,n,"center")}function Z9(t,e,n,i,r){for(var o=0,s=r[r.length-1];o1)return!1;var p=J9(d,f,u,c)/g;return!(p<0||p>1)}function J9(t,e,n,i){return t*i-n*e}function $9(t){return t<=1e-6&&t>=-1e-6}t9("circle",S6),t9("sector",B6),t9("ring",M6),t9("polygon",T6),t9("polyline",D6),t9("rect",R6),t9("line",k6),t9("bezierCurve",L6),t9("arc",P6),H1.Z2_EMPHASIS_LIFT=V6,H1.CACHED_LABEL_STYLE_PROPERTIES=H6,H1.extendShape=J6,H1.extendPath=$6,H1.registerShape=t9,H1.getShapeClass=e9,H1.makePath=n9,H1.makeImage=i9,H1.mergePath=o9,H1.resizePath=s9,H1.subPixelOptimizeLine=a9,H1.subPixelOptimizeRect=l9,H1.subPixelOptimize=h9,H1.setElementHoverStyle=v9,H1.setHoverStyle=E9,H1.setAsHighDownDispatcher=b9,H1.isHighDownDispatcher=S9,H1.getHighlightDigit=B9,H1.setLabelStyle=M9,H1.modifyLabelStyle=T9,H1.setTextStyle=D9,H1.setText=R9,H1.getFont=O9,H1.updateProps=G9,H1.initProps=j9,H1.getTransform=U9,H1.applyTransform=q9,H1.transformDirection=V9,H1.groupTransition=H9,H1.clipPointsByRect=Y9,H1.clipRectByRect=W9,H1.createIcon=X9,H1.linePolygonIntersect=Z9,H1.lineLineIntersect=K9;var t7=DJ,e7=H1,n7=["textStyle","color"],i7={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(n7):null)},getFont:function(){return e7.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return t7.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}},r7=i7,o7=z1,s7=o7([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),a7={getItemStyle:function(t,e){var n=s7(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},l7=a7,h7=bH,u7=EH,c7=Z2,g7=c7.makeInner,d7=I1,f7=d7.enableClassExtend,A7=d7.enableClassCheck,p7=G1,m7=V1,y7=r7,v7=l7,_7=h7.mixin,x7=g7();function I7(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function w7(t,e,n){for(var i=0;i=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=n(e),s=o.graph,a=o.noEntryList,l={};for(B7.each(t,(function(t){l[t]=!0}));a.length;){var h=a.pop(),u=s[h],c=!!l[h];c&&(i.call(r,h,u.originalDeps.slice()),delete l[h]),B7.each(u.successor,c?d:g)}B7.each(l,(function(){throw new Error("Circle dependency may exists")}))}function g(t){s[t].entryCount--,0===s[t].entryCount&&a.push(t)}function d(t){l[t]=!0,g(t)}}}S7.getUID=R7,S7.enableSubTypeDefaulter=k7,S7.enableTopologicalTravel=L7;var P7,Q7={},z7={};function F7(){if(P7)return z7;P7=1;var t=bH,e=1e-4;function n(t){return t.replace(/^\s+|\s+$/g,"")}function i(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function r(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"==typeof t?n(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function o(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function s(t){return t.sort((function(t,e){return t-e})),t}function a(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function l(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function h(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),s=Math.min(Math.max(-r+o,0),20);return isFinite(s)?s:20}function u(e,n,i){if(!e[n])return 0;var r=t.reduce(e,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var o=Math.pow(10,i),s=t.map(e,(function(t){return(isNaN(t)?0:t)/r*o*100})),a=100*o,l=t.map(s,(function(t){return Math.floor(t)})),h=t.reduce(l,(function(t,e){return t+e}),0),u=t.map(s,(function(t,e){return t-l[e]}));hc&&(c=u[d],g=d);++l[g],u[g]=0,++h}return l[n]/o}var c=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function d(t){return t>-e&&t=10&&e++,e}function y(t,e){var n,i=m(t),r=Math.pow(10,i),o=t/r;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function v(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function _(t){t.sort((function(t,e){return a(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0}return z7.linearMap=i,z7.parsePercent=r,z7.round=o,z7.asc=s,z7.getPrecision=a,z7.getPrecisionSafe=l,z7.getPixelPrecision=h,z7.getPercentWithPrecision=u,z7.MAX_SAFE_INTEGER=c,z7.remRadian=g,z7.isRadianAroundZero=d,z7.parseDate=A,z7.quantity=p,z7.quantityExponent=m,z7.nice=y,z7.quantile=v,z7.reformIntervals=_,z7.isNumeric=x,z7}var O7={},N7=bH,G7=DJ,j7=F7();function U7(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function q7(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var V7=N7.normalizeCssArray,H7=/([&<>"'])/g,Y7={"&":"&","<":"<",">":">",'"':""","'":"'"};function W7(t){return null==t?"":(t+"").replace(H7,(function(t,e){return Y7[e]}))}var X7=["a","b","c","d","e","f","g"],Z7=function(t,e){return"{"+t+(null==e?"":e)+"}"};function K7(t,e,n){N7.isArray(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:"{marker"+o+"|} ",style:{color:n}}:""}function ttt(t,e){return t+="","0000".substr(0,e-t.length)+t}function ett(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=j7.parseDate(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,a=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),u=i["get"+r+"Seconds"](),c=i["get"+r+"Milliseconds"]();return t=t.replace("MM",ttt(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",ttt(a,2)).replace("d",a).replace("hh",ttt(l,2)).replace("h",l).replace("mm",ttt(h,2)).replace("m",h).replace("ss",ttt(u,2)).replace("s",u).replace("SSS",ttt(c,3)),t}function ntt(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}var itt=G7.truncateText;function rtt(t){return G7.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function ott(t,e,n,i,r,o,s,a){return G7.getBoundingRect(t,e,n,i,r,a,o,s)}function stt(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location=t}else window.open(t,e)}O7.addCommas=U7,O7.toCamelCase=q7,O7.normalizeCssArray=V7,O7.encodeHTML=W7,O7.formatTpl=K7,O7.formatTplSimple=J7,O7.getTooltipMarker=$7,O7.formatTime=ett,O7.capitalFirst=ntt,O7.truncateText=itt,O7.getTextBoundingRect=rtt,O7.getTextRect=ott,O7.windowOpen=stt;var att=bH,ltt=EK,htt=F7(),utt=htt.parsePercent,ctt=O7,gtt=att.each,dtt=["left","right","top","bottom","width","height"],ftt=[["width","left","right"],["height","top","bottom"]];function Att(t,e,n,i,r){var o=0,s=0;null==i&&(i=1/0),null==r&&(r=1/0);var a=0;e.eachChild((function(l,h){var u,c,g=l.position,d=l.getBoundingRect(),f=e.childAt(h+1),A=f&&f.getBoundingRect();if("horizontal"===t){var p=d.width+(A?-A.x+d.x:0);u=o+p,u>i||l.newline?(o=0,u=p,s+=a+n,a=d.height):a=Math.max(a,d.height)}else{var m=d.height+(A?-A.y+d.y:0);c=s+m,c>r||l.newline?(o+=a+n,s=0,c=m,a=d.width):a=Math.max(a,d.width)}l.newline||(g[0]=o,g[1]=s,"horizontal"===t?o=u+n:s=c+n)}))}var ptt=Att,mtt=att.curry(Att,"vertical"),ytt=att.curry(Att,"horizontal");function vtt(t,e,n){var i=e.width,r=e.height,o=utt(t.x,i),s=utt(t.y,r),a=utt(t.x2,i),l=utt(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(a)||isNaN(parseFloat(t.x2)))&&(a=i),(isNaN(s)||isNaN(parseFloat(t.y)))&&(s=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),n=ctt.normalizeCssArray(n||0),{width:Math.max(a-o-n[1]-n[3],0),height:Math.max(l-s-n[0]-n[2],0)}}function _tt(t,e,n){n=ctt.normalizeCssArray(n||0);var i=e.width,r=e.height,o=utt(t.left,i),s=utt(t.top,r),a=utt(t.right,i),l=utt(t.bottom,r),h=utt(t.width,i),u=utt(t.height,r),c=n[2]+n[0],g=n[1]+n[3],d=t.aspect;switch(isNaN(h)&&(h=i-a-g-o),isNaN(u)&&(u=r-l-c-s),null!=d&&(isNaN(h)&&isNaN(u)&&(d>i/r?h=.8*i:u=.8*r),isNaN(h)&&(h=d*u),isNaN(u)&&(u=h/d)),isNaN(o)&&(o=i-a-h-g),isNaN(s)&&(s=r-l-u-c),t.left||t.right){case"center":o=i/2-h/2-n[3];break;case"right":o=i-h-g;break}switch(t.top||t.bottom){case"middle":case"center":s=r/2-u/2-n[0];break;case"bottom":s=r-u-c;break}o=o||0,s=s||0,isNaN(h)&&(h=i-g-o-(a||0)),isNaN(u)&&(u=r-c-s-(l||0));var f=new ltt(o+n[3],s+n[0],h,u);return f.margin=n,f}function xtt(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],a=r&&r.boundingMode||"all";if(o||s){var l;if("raw"===a)l="group"===t.type?new ltt(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();l=l.clone(),l.applyTransform(h)}e=_tt(att.defaults({width:l.width,height:l.height},e),n,i);var u=t.position,c=o?e.x-l.x:0,g=s?e.y-l.y:0;t.attr("position","raw"===a?[c,g]:[u[0]+c,u[1]+g])}}function Itt(t,e){return null!=t[ftt[e][0]]||null!=t[ftt[e][1]]&&null!=t[ftt[e][2]]}function wtt(t,e,n){!att.isObject(n)&&(n={});var i=n.ignoreSize;!att.isArray(i)&&(i=[i,i]);var r=s(ftt[0],0),o=s(ftt[1],1);function s(n,r){var o={},s=0,h={},u=0,c=2;if(gtt(n,(function(e){h[e]=t[e]})),gtt(n,(function(t){a(e,t)&&(o[t]=h[t]=e[t]),l(o,t)&&s++,l(h,t)&&u++})),i[r])return l(e,n[1])?h[n[2]]=null:l(e,n[2])&&(h[n[1]]=null),h;if(u===c||!s)return h;if(s>=c)return o;for(var g=0;g=0;o--)r=Btt.merge(r,e[o],!0);t.defaultOption=r}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});function Ntt(t){var e=[];return Btt.each(Ott.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=Btt.map(e,(function(t){return ktt(t).main})),"dataset"!==t&&Btt.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}Rtt(Ott,{registerWhenExtend:!0}),Ttt.enableSubTypeDefaulter(Ott),Ttt.enableTopologicalTravel(Ott,Ntt),Btt.mixin(Ott,ztt);var Gtt=Ott,jtt=Gtt,Utt="";"undefined"!=typeof navigator&&(Utt=navigator.platform||"");var qtt={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:Utt.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Vtt=qtt,Htt=Z2,Ytt=Htt.makeInner,Wtt=Htt.normalizeToArray,Xtt=Ytt();function Ztt(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}var Ktt={clearColorPalette:function(){Xtt(this).colorIdx=0,Xtt(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=Xtt(e),r=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var s=Wtt(this.get("color",!0)),a=this.get("colorLayer",!0),l=null!=n&&a?Ztt(a,n):s;if(l=l||s,l&&l.length){var h=l[r];return t&&(o[t]=h),i.colorIdx=(r+1)%l.length,h}}},Jtt=Ktt,$tt={},tet={},eet="original",net="arrayRows",iet="objectRows",ret="keyedColumns",oet="unknown",set="typedArray",aet="column",het="row";tet.SOURCE_FORMAT_ORIGINAL=eet,tet.SOURCE_FORMAT_ARRAY_ROWS=net,tet.SOURCE_FORMAT_OBJECT_ROWS=iet,tet.SOURCE_FORMAT_KEYED_COLUMNS=ret,tet.SOURCE_FORMAT_UNKNOWN=oet,tet.SOURCE_FORMAT_TYPED_ARRAY=set,tet.SERIES_LAYOUT_BY_COLUMN=aet,tet.SERIES_LAYOUT_BY_ROW=het;var uet=bH,cet=uet.createHashMap,get=uet.isTypedArray,det=I1,fet=det.enableClassCheck,Aet=tet,pet=Aet.SOURCE_FORMAT_ORIGINAL,met=Aet.SERIES_LAYOUT_BY_COLUMN,yet=Aet.SOURCE_FORMAT_UNKNOWN,vet=Aet.SOURCE_FORMAT_TYPED_ARRAY,_et=Aet.SOURCE_FORMAT_KEYED_COLUMNS;function xet(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===_et?{}:[]),this.sourceFormat=t.sourceFormat||yet,this.seriesLayoutBy=t.seriesLayoutBy||met,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&cet(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}xet.seriesDataToSource=function(t){return new xet({data:t,sourceFormat:get(t)?vet:pet,fromDataset:!1})},fet(xet);var Iet=xet,wet=Iet,Cet=Z2,Eet=Cet.makeInner,bet=Cet.getDataItemValue,Bet=bH,Met=Bet.createHashMap,Tet=Bet.each,Det=Bet.map,Ret=Bet.isArray,ket=Bet.isString,Let=Bet.isObject,Pet=Bet.isTypedArray,Qet=Bet.isArrayLike,zet=Bet.extend;Bet.assert;var Fet=wet,Oet=tet,Net=Oet.SOURCE_FORMAT_ORIGINAL,Get=Oet.SOURCE_FORMAT_ARRAY_ROWS,jet=Oet.SOURCE_FORMAT_OBJECT_ROWS,Uet=Oet.SOURCE_FORMAT_KEYED_COLUMNS,qet=Oet.SOURCE_FORMAT_UNKNOWN,Vet=Oet.SOURCE_FORMAT_TYPED_ARRAY,Het=Oet.SERIES_LAYOUT_BY_ROW,Yet={Must:1,Might:2,Not:3},Wet=Eet();function Xet(t){var e=t.option.source,n=qet;if(Pet(e))n=Vet;else if(Ret(e)){0===e.length&&(n=Get);for(var i=0,r=e.length;i=0;i--)Int.isIdInner(e[i])&&e.splice(i,1);t[n]=e}})),delete t[Mnt],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,s=this._componentsMap.get(e);if(!s||!s.length)return[];if(null!=i)gnt(i)||(i=[i]),n=unt(cnt(i,(function(t){return s[t]})),(function(t){return!!t}));else if(null!=r){var a=gnt(r);n=unt(s,(function(t){return a&&dnt(r,t.id)>=0||!a&&t.id===r}))}else if(null!=o){var l=gnt(o);n=unt(s,(function(t){return l&&dnt(o,t.name)>=0||!l&&t.name===o}))}else n=s.slice();return znt(n,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=o(e),r=i?this.queryComponents(i):this._componentsMap.get(n);return s(znt(r,t));function o(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function s(e){return t.filter?unt(e,t.filter):e}},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each((function(t,i){hnt(t,(function(t,r){e.call(n,i,t,r)}))}));else if(Ant(t))hnt(i.get(t),e,n);else if(fnt(t)){var r=this.findComponents(t);hnt(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return unt(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return unt(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){hnt(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},eachRawSeries:function(t,e){hnt(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){hnt(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},eachRawSeriesByType:function(t,e,n){return hnt(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var n=unt(this._componentsMap.get("series"),t,e);Qnt(this,n)},restoreData:function(t){var e=this._componentsMap;Qnt(this,e.get("series"));var n=[];e.each((function(t,e){n.push(e)})),Cnt.topologicalTravel(n,Cnt.getAllClassMainTypes(),(function(n,i){hnt(e.get(n),(function(e){("series"!==n||!Dnt(e,t))&&e.restoreData()}))}))}});function Dnt(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Rnt(t,e){var n=t.color&&!t.colorLayer;hnt(e,(function(e,i){"colorLayer"===i&&n||Cnt.hasClass(i)||("object"==typeof e?t[i]=t[i]?vnt(t[i],e,!1):ynt(e):null==t[i]&&(t[i]=e))}))}function knt(t){t=t,this.option={},this.option[Mnt]=1,this._componentsMap=pnt({series:[]}),this._seriesIndices,this._seriesIndicesMap,Rnt(t,this._theme.option),vnt(t,Ent,!1),this.mergeOption(t)}function Lnt(t,e){gnt(e)||(e=e?[e]:[]);var n={};return hnt(e,(function(e){n[e]=(t.get(e)||[]).slice()})),n}function Pnt(t,e,n){var i=e.type?e.type:n?n.subType:Cnt.determineSubType(t,e);return i}function Qnt(t,e){t._seriesIndicesMap=pnt(t._seriesIndices=cnt(e,(function(t){return t.componentIndex}))||[])}function znt(t,e){return e.hasOwnProperty("subType")?unt(t,(function(t){return t.subType===e.subType})):t}xnt(Tnt,bnt);var Fnt=Tnt,Ont=Fnt,Nnt=bH,Gnt=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function jnt(t){Nnt.each(Gnt,(function(e){this[e]=Nnt.bind(t[e],t)}),this)}var Unt=jnt,qnt=Unt,Vnt=bH,Hnt={};function Ynt(){this._coordinateSystems=[]}Ynt.prototype={constructor:Ynt,create:function(t,e){var n=[];Vnt.each(Hnt,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},update:function(t,e){Vnt.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Ynt.register=function(t,e){Hnt[t]=e},Ynt.get=function(t){return Hnt[t]};var Wnt=Ynt,Xnt=Wnt,Znt=bH,Knt=Z2,Jnt=jtt,$nt=Znt.each,tit=Znt.clone,eit=Znt.map,nit=Znt.merge,iit=/^(min|max)?(.+)$/;function rit(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function oit(t,e,n){var i,r,o=[],s=[],a=t.timeline;if(t.baseOption&&(r=t.baseOption),(a||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;$nt(l,(function(t){t&&t.option&&(t.query?s.push(t):i||(i=t))}))}return r||(r=t),r.timeline||(r.timeline=a),$nt([r].concat(o).concat(Znt.map(s,(function(t){return t.option}))),(function(t){$nt(e,(function(e){e(t,n)}))})),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:s}}function sit(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Znt.each(t,(function(t,e){var n=e.match(iit);if(n&&n[1]&&n[2]){var o=n[1],s=n[2].toLowerCase();ait(i[s],t,o)||(r=!1)}})),r}function ait(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function lit(t,e){return t.join(",")===e.join(",")}function hit(t,e){e=e||{},$nt(e,(function(e,n){if(null!=e){var i=t[n];if(Jnt.hasClass(n)){e=Knt.normalizeToArray(e),i=Knt.normalizeToArray(i);var r=Knt.mappingToExists(i,e);t[n]=eit(r,(function(t){return t.option&&t.exist?nit(t.exist,t.option,!0):t.exist||t.option}))}else t[n]=nit(i,e,!0)}}))}rit.prototype={constructor:rit,setOption:function(t,e){t&&Znt.each(Knt.normalizeToArray(t.series),(function(t){t&&t.data&&Znt.isTypedArray(t.data)&&Znt.setAsPrimitive(t.data)})),t=tit(t);var n=this._optionBackup,i=oit.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(hit(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=eit(e.timelineOptions,tit),this._mediaList=eit(e.mediaList,tit),this._mediaDefault=tit(e.mediaDefault),this._currentMediaIndices=[],tit(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=tit(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i.length&&!r)return s;for(var a=0,l=i.length;a=0;f--){var A=t[f];if(a||(c=A.data.rawIndexOf(A.stackedByDimension,u)),c>=0){var p=A.data.getByRawIndex(A.stackResultDimension,c);if(g>=0&&p>0||g<=0&&p<0){g+=p,d=p;break}}}return i[0]=g,i[1]=d,i}));s.hostModel.setData(l),e.data=l}))}var Hit=qit,Yit={},Wit=bH;Wit.isTypedArray;var Xit=Wit.extend;Wit.assert;var Zit=Wit.each,Kit=Wit.isObject,Jit=Z2,$it=Jit.getDataItemValue,trt=Jit.isDataItemOption,ert=F7(),nrt=ert.parseDate,irt=wet,rrt=tet,ort=rrt.SOURCE_FORMAT_TYPED_ARRAY,srt=rrt.SOURCE_FORMAT_ARRAY_ROWS,art=rrt.SOURCE_FORMAT_ORIGINAL,lrt=rrt.SOURCE_FORMAT_OBJECT_ROWS;function hrt(t,e){irt.isInstance(t)||(t=irt.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===ort&&(this._offset=0,this._dimSize=e,this._data=n);var r=crt[i===srt?i+"_"+t.seriesLayoutBy:i];Xit(this,r)}var urt=hrt.prototype;urt.pure=!1,urt.persistent=!0,urt.getSource=function(){return this._source};var crt={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:frt},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i=1)&&(t=1),t}(s!==l||a!==h)&&(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=Nrt(this,i)),this._modBy=l,this._modDataCount=h;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,d=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(o||g1&&i>0?a:s}};return o;function s(){return e=t?null:o":"\n",s="richText"===i,a={},l=0;function h(n){var o=Grt.reduce(n,(function(t,e,n){var i=c.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),h=[];function u(t,n){var u=c.getDimensionInfo(n);if(u&&!1!==u.otherDims.tooltip){var g=u.type,d="sub"+r.seriesIndex+"at"+l,f=Yrt({color:p,type:"subItem",renderMode:i,markerId:d}),A="string"==typeof f?f:f.content,m=(o?A+Vrt(u.displayName||"-")+": ":"")+Vrt("ordinal"===g?t+"":"time"===g?e?"":qrt("yyyy/MM/dd hh:mm:ss",t):Hrt(t));m&&h.push(m),s&&(a[d]=p,++l)}}g.length?Grt.each(g,(function(e){u(aot(c,t,e),e)})):Grt.each(n,u);var d=o?s?"\n":"
":"",f=d+h.join(d||", ");return{renderMode:i,content:f,style:a}}function u(t){return{renderMode:i,content:Vrt(Hrt(t)),style:a}}var c=this.getData(),g=c.mapDimension("defaultedTooltip",!0),d=g.length,f=this.getRawValue(t),A=Grt.isArray(f),p=c.getItemVisual(t,"color");Grt.isObject(p)&&p.colorStops&&(p=(p.colorStops[0]||{}).color),p=p||"transparent";var m=d>1||A&&!d?h(f):u(d?aot(c,t,g[0]):A?f[0]:f),y=m.content,v=r.seriesIndex+"at"+l,_=Yrt({color:p,type:"item",renderMode:i,markerId:v});a[v]=p,++l;var x=c.getName(t),I=this.name;Wrt.isNameSpecified(this)||(I=""),I=I?Vrt(I)+(e?": ":o):"";var w="string"==typeof _?_:_.content,C=e?w+I+y:I+w+(x?Vrt(x)+": "+y:y);return{html:C,markers:a}},isAnimationEnabled:function(){if(jrt.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=Zrt.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function uot(t){var e=t.name;Wrt.isNameSpecified(t)||(t.name=cot(t)||e)}function cot(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return Grt.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function got(t){return t.model.getRawData().count()}function dot(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),fot}function fot(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Aot(t,e){Grt.each(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Grt.curry(pot,e))}))}function pot(t){var e=mot(t);e&&e.setOutputEnd(this.count())}function mot(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}Grt.mixin(hot,Krt),Grt.mixin(hot,Zrt);var yot=hot,vot=yot,_ot=DK,xot=S7,Iot=I1,wot=function(){this.group=new _ot,this.uid=xot.getUID("viewComponent")};wot.prototype={constructor:wot,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var Cot=wot.prototype;Cot.updateView=Cot.updateLayout=Cot.updateVisual=function(t,e,n,i){},Iot.enableClassExtend(wot),Iot.enableClassManagement(wot,{registerWhenExtend:!0});var Eot=wot,bot=Eot,Sot=Z2,Bot=Sot.makeInner;function Mot(){var t=Bot();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,s=n.large=i&&i.large,a=n.progressiveRender=i&&i.progressiveRender;return!!(r^s||o^a)&&"reset"}}var Tot=Mot,Dot=bH,Rot=Dot.each,kot=DK,Lot=S7,Pot=I1,Qot=Z2,zot=H1,Fot=Rrt,Oot=Fot.createTask,Not=Tot,Got=Qot.makeInner(),jot=Not();function Uot(){this.group=new kot,this.uid=Lot.getUID("viewChart"),this.renderTask=Oot({plan:Yot,reset:Wot}),this.renderTask.context={view:this}}Uot.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){Hot(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){Hot(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var qot=Uot.prototype;function Vot(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!zot.isHighDownDispatcher(t)))for(var i=0,r=t.childCount();i=0?c():u=setTimeout(c,-r),l=i};return g.clear=function(){u&&(clearTimeout(u),u=null)},g.debounceNextCall=function(t){a=t},g}function ist(t,e,n,i){var r=t[e];if(r){var o=r[$ot]||r,s=r[est],a=r[tst];if(a!==n||s!==i){if(null==n||!i)return t[e]=o;r=t[e]=nst(o,n,"debounce"===i),r[$ot]=o,r[est]=i,r[tst]=n}return r}}function rst(t,e){var n=t[e];n&&n[$ot]&&(t[e]=n[$ot])}Jot.throttle=nst,Jot.createOrUpdate=ist,Jot.clear=rst;var ost=J8,sst=bH,ast=sst.isFunction,lst={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(i),o=!ast(r)||r instanceof ost?null:r;(!r||o)&&(r=t.getColorFromPalette(t.name,null,e.getSeriesCount())),n.setVisual("color",r);var s=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),a=t.get(s);if(n.setVisual("borderColor",a),!e.isSeriesFiltered(t)){o&&n.each((function(e){n.setItemVisual(e,"color",o(t.getDataParams(e)))}));var l=function(t,e){var n=t.getItemModel(e),r=n.get(i,!0),o=n.get(s,!0);null!=r&&t.setItemVisual(e,"color",r),null!=o&&t.setItemVisual(e,"borderColor",o)};return{dataEach:n.hasItemOption?l:null}}}},hst=lst,ust={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},cst=ust,gst=bH,dst=cst,fst=Yit,Ast=fst.retrieveRawValue;function pst(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var i=0;e.eachSeries((function(t,e){++i}),this);var r,o=n.get("data.maxCount")||10,s=n.get("series.maxCount")||10,a=Math.min(i,s);if(!(i<1)){var l=d();r=l?c(g("general.withTitle"),{title:l}):g("general.withoutTitle");var h=[],u=i>1?"series.multiple.prefix":"series.single.prefix";r+=c(g(u),{seriesCount:i}),e.eachSeries((function(t,e){if(e1?"multiple":"single")+".";n=g(r?s+"withName":s+"withoutName"),n=c(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:f(t.subType)});var l=t.getData();window.data=l,l.count()>o?n+=c(g("data.partialData"),{displayCnt:o}):n+=g("data.allData");for(var u=[],d=0;dn.blockIndex,o=r?n.step:null,s=i&&i.modDataCount,a=null!=s?Math.ceil(s/o):null;return{step:o,modBy:a,modDataCount:s}}},Ost.getPipeline=function(t){return this._pipelineMap.get(t)},Ost.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,s=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:s}},Ost.restorePipelines=function(t){var e=this,n=e._pipelineMap=Bst();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),$st(e,t,t.dataTask)}))},Ost.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;Est(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&jst(this,i,r,e,n),i.overallReset&&Ust(this,i,r,e,n)}),this)},Ost.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,$st(this,e,r)},Ost.performDataProcessorTasks=function(t,e){Nst(this,this._dataProcessorHandlers,t,e,{block:!0})},Ost.performVisualTasks=function(t,e,n){Nst(this,this._visualHandlers,t,e,n)},Ost.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},Ost.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var Gst=Ost.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function jst(t,e,n,i,r){var o=n.seriesTaskMap||(n.seriesTaskMap=Bst()),s=e.seriesType,a=e.getTargetSeries;function l(n){var s=n.uid,a=o.get(s)||o.set(s,Dst({plan:Wst,reset:Xst,count:Jst}));a.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},$st(t,n,a)}e.createOnAllSeries?i.eachRawSeries(l):s?i.eachRawSeriesByType(s,l):a&&a(i,r).each(l);var h=t._pipelineMap;o.each((function(t,e){h.get(e)||(t.dispose(),o.removeKey(e))}))}function Ust(t,e,n,i,r){var o=n.overallTask=n.overallTask||Dst({reset:qst});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var s=o.agentStubMap=o.agentStubMap||Bst(),a=e.seriesType,l=e.getTargetSeries,h=!0,u=e.modifyOutputEnd;function c(e){var n=e.uid,i=s.get(n);i||(i=s.set(n,Dst({reset:Vst,onDirty:Yst})),o.dirty()),i.context={model:e,overallProgress:h,modifyOutputEnd:u},i.agent=o,i.__block=h,$st(t,e,i)}a?i.eachRawSeriesByType(a,c):l?l(i,r).each(c):(h=!1,Est(i.getSeries(),c));var g=t._pipelineMap;s.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),s.removeKey(e))}))}function qst(t){t.overallReset(t.ecModel,t.api,t.payload)}function Vst(t,e){return t.overallProgress&&Hst}function Hst(){this.agent.dirty(),this.getDownstream().dirty()}function Yst(){this.agent&&this.agent.dirty()}function Wst(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Xst(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=zst(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?bst(e,(function(t,e){return Kst(e)})):Zst}var Zst=Kst(0);function Kst(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=4&&(r={x:parseFloat(u[0]||0),y:parseFloat(u[1]||0),width:parseFloat(u[2]),height:parseFloat(u[3])})}if(r&&null!=a&&null!=l&&(o=hlt(r,a,l),!e.ignoreViewBox)){var c=i;i=new bat,i.add(c),c.scale=o.scale.slice(),c.position=o.position.slice()}return!e.ignoreRootClip&&null!=a&&null!=l&&i.setClipPath(new Tat({shape:{x:0,y:0,width:a,height:l}})),{root:i,width:a,height:l,viewBoxRect:r,viewBoxTransform:o}},Xat.prototype._parseNode=function(t,e){var n,i=t.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var r=Kat[i];if(r){var o=r.call(this,t),s=t.getAttribute("id");s&&(this._defs[s]=o)}}else{r=Zat[i];r&&(n=r.call(this,t,e),e.add(n))}for(var a=t.firstChild;a;)1===a.nodeType&&this._parseNode(a,n),3===a.nodeType&&this._isText&&this._parseText(a,n),a=a.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},Xat.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new Bat({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});$at(e,r),nlt(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var Zat={g:function(t,e){var n=new bat;return $at(e,n),nlt(t,n,this._defs),n},rect:function(t,e){var n=new Tat;return $at(e,n),nlt(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new Mat;return $at(e,n),nlt(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new Rat;return $at(e,n),nlt(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new Dat;return $at(e,n),nlt(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=tlt(n));var i=new Lat({shape:{points:n||[]}});return $at(e,i),nlt(t,i,this._defs),i},polyline:function(t,e){var n=new kat;$at(e,n),nlt(t,n,this._defs);var i=t.getAttribute("points");i&&(i=tlt(i));var r=new Pat({shape:{points:i||[]}});return r},image:function(t,e){var n=new Sat;return $at(e,n),nlt(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,i=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var s=new bat;return $at(e,s),nlt(t,s,this._defs),s},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new bat;return $at(e,s),nlt(t,s,this._defs),this._textX+=r,this._textY+=o,s},path:function(t,e){var n=t.getAttribute("d")||"",i=Nat(n);return $at(e,i),nlt(t,i,this._defs),i}},Kat={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new Qat(e,n,i,r);return Jat(t,o),o},radialgradient:function(t){}};function Jat(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}function $at(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),qat(e.__inheritedStyle,t.__inheritedStyle))}function tlt(t){for(var e=Vat(t).split(Yat),n=[],i=0;i0;o-=2){var s=r[o],a=r[o-1];switch(i=i||Fat.create(),a){case"translate":s=Vat(s).split(Yat),Fat.translate(i,i,[parseFloat(s[0]),parseFloat(s[1]||0)]);break;case"scale":s=Vat(s).split(Yat),Fat.scale(i,i,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":s=Vat(s).split(Yat),Fat.rotate(i,i,parseFloat(s[0]));break;case"skew":s=Vat(s).split(Yat);break;case"matrix":s=Vat(s).split(Yat);i[0]=parseFloat(s[0]),i[1]=parseFloat(s[1]),i[2]=parseFloat(s[2]),i[3]=parseFloat(s[3]),i[4]=parseFloat(s[4]),i[5]=parseFloat(s[5]);break}}e.setLocalTransform(i)}}var alt=/([^\s:;]+)\s*:\s*([^:;]+)/g;function llt(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};for(alt.lastIndex=0;null!=(i=alt.exec(e));)r[i[1]]=i[2];for(var o in elt)elt.hasOwnProperty(o)&&null!=r[o]&&(n[elt[o]]=r[o]);return n}function hlt(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r),s=[o,o],a=[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2];return{scale:s,position:a}}function ult(t,e){var n=new Xat;return n.parse(t,e)}Iat.parseXML=Wat,Iat.makeViewBoxTransform=hlt,Iat.parseSVG=ult;var clt=bH,glt=clt.createHashMap,dlt=clt.isString,flt=clt.isArray,Alt=clt.each;clt.assert;var plt,mlt,ylt=Iat,vlt=ylt.parseXML,_lt=glt(),xlt={registerMap:function(t,e,n){var i;return flt(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),Alt(i,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=Ilt[e];n(t)})),_lt.set(t,i)},retrieveMap:function(t){return _lt.get(t)}},Ilt={geoJSON:function(t){var e=t.source;t.geoJSON=dlt(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=vlt(t.source)}},wlt=xlt,Clt={},Elt={};function blt(){if(mlt)return plt;function t(t){return t}function e(e,n,i,r,o){this._old=e,this._new=n,this._oldKeyGetter=i||t,this._newKeyGetter=r||t,this.context=o}function n(t,e,n,i,r){for(var o=0;o65535?A:m}function v(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var _=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function I(e,n){t.each(_.concat(n.__wrappedMethods||[]),(function(t){n.hasOwnProperty(t)&&(e[t]=n[t])})),e.__wrappedMethods=n.__wrappedMethods,t.each(x,(function(i){e[i]=t.clone(n[i])})),e._calculationInfo=t.extend(n._calculationInfo)}var w=function(e,n){e=e||["x","y"];for(var i={},r=[],o={},s=0;s=0?this._indices[t]:-1}function T(t,e){var n=t._idList[e];return null==n&&(n=S(t,t._idDimIdx,e)),null==n&&(n=d+e),n}function D(e){return t.isArray(e)||(e=[e]),e}function R(e,n){var i=e.dimensions,r=new w(t.map(i,e.getDimensionInfo,e),e.hostModel);I(r,e);for(var o=r._storage={},s=e._storage,a=0;a=0?(o[l]=k(s[l]),r._rawExtent[l]=L(),r._extent[l]=null):o[l]=s[l])}return r}function k(t){for(var e=new Array(t.length),n=0;nv[1]&&(v[1]=y)}e&&(this._nameList[d]=e[f])}this._rawCount=this._count=l,this._extent={},b(this)},C._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,s=this.dimensions,a=s.length,l=this._dimensionInfos,h=this._nameList,u=this._idList,c=this._rawExtent,g=this._nameRepeatCount={},d=this._chunkCount,f=0;fC[1]&&(C[1]=w)}if(!r.pure){var S=h[y];if(m&&null==S)if(null!=m.name)h[y]=S=m.name;else if(null!=n){var B=s[n],M=o[B][v];if(M){S=M[_];var T=l[B].ordinalMeta;T&&T.categories.length&&(S=T.categories[S])}}var D=null==m?null:m.id;null==D&&null!=S&&(g[S]=g[S]||0,D=S,g[S]>0&&(D+="__ec__"+g[S]),g[S]++),null!=D&&(u[y]=D)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},b(this)}},C.count=function(){return this._count},C.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&ea&&(a=h)}return i=[s,a],this._extent[t]=i,i},C.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},C.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},C.getCalculationInfo=function(t){return this._calculationInfo[t]},C.setCalculationInfo=function(e,n){u(e)?t.extend(this._calculationInfo,e):this._calculationInfo[e]=n},C.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();i=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},C.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var s=1/0,a=-1,l=0,h=0,u=this.count();h=0&&a<0)&&(s=g,a=c,l=0),c===a&&(o[l++]=h))}return o.length=l,o},C.getRawIndex=B,C.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=h&&v<=u||isNaN(v))&&(s[a++]=g),g++}c=!0}else if(2===i){d=this._storage[l];var _=this._storage[e[1]],x=t[e[1]][0],I=t[e[1]][1];for(f=0;f=h&&v<=u||isNaN(v))&&(C>=x&&C<=I||isNaN(C))&&(s[a++]=g),g++}}c=!0}}if(!c)if(1===i)for(m=0;m=h&&v<=u||isNaN(v))&&(s[a++]=E)}else for(m=0;mt[S][1])&&(b=!1)}b&&(s[a++]=this.getRawIndex(m))}return aI[1]&&(I[1]=x)}}}return o},C.downSample=function(t,e,n,i){for(var r=R(this,[t]),o=r._storage,s=[],a=Math.floor(1/e),l=o[t],h=this.count(),u=this._chunkSize,c=r._rawExtent[t],g=new(y(this))(h),d=0,f=0;fh-f&&(a=h-f,s.length=a);for(var A=0;Ac[1]&&(c[1]=_),g[d++]=x}return r._count=d,r._indices=g,r.getRawIndex=M,r},C.getItemModel=function(t){var n=this.hostModel;return new e(this.getRawDataItem(t),n,n&&n.ecModel)},C.diff=function(t){var e=this;return new n(t?t.getIndices():[],this.getIndices(),(function(e){return T(t,e)}),(function(t){return T(e,t)}))},C.getVisual=function(t){var e=this._visual;return e&&e[t]},C.setVisual=function(t,e){if(u(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},C.setLayout=function(t,e){if(u(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},C.getLayout=function(t){return this._layout[t]},C.getItemLayout=function(t){return this._itemLayouts[t]},C.setItemLayout=function(e,n,i){this._itemLayouts[e]=i?t.extend(this._itemLayouts[e]||{},n):n},C.clearItemLayouts=function(){this._itemLayouts.length=0},C.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},C.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,u(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},C.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var P=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};C.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(P,e)),this._graphicEls[t]=e},C.getItemGraphicEl=function(t){return this._graphicEls[t]},C.eachItemGraphicEl=function(e,n){t.each(this._graphicEls,(function(t,i){t&&e&&e.call(n,t,i)}))},C.cloneShallow=function(e){if(!e){var n=t.map(this.dimensions,this.getDimensionInfo,this);e=new w(n,this.hostModel)}if(e._storage=this._storage,I(e,this),this._indices){var i=this._indices.constructor;e._indices=new i(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?M:B,e},C.wrapMethod=function(e,n){var i=this[e];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=i.apply(this,arguments);return n.apply(this,[e].concat(t.slice(arguments)))})},C.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],C.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=w;return Tlt=Q,Tlt}function Nlt(){if(klt)return Rlt;klt=1;var t=bH,e=t.createHashMap,n=t.each,i=t.isString,r=t.defaults,o=t.extend,s=t.isObject,a=t.clone,l=Z2,h=l.normalizeToArray,u=$tt,c=u.guessOrdinal,g=u.BE_ORDINAL,d=wet,f=zlt(),A=f.OTHER_DIMENSIONS,p=Flt();function m(t,l,u){d.isInstance(l)||(l=d.seriesDataToSource(l)),u=u||{},t=(t||[]).slice();for(var f=(u.dimsDef||[]).slice(),m=e(),_=e(),x=[],I=y(l,t,f,u.dimCount),w=0;w=e[0]&&t<=e[1]},e.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},e.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e.prototype.getLabel=null,t.enableClassExtend(e),t.enableClassManagement(e,{registerWhenExtend:!0});var n=e;return Klt=n,Klt}function oht(){if(tht)return $lt;tht=1;var t=bH,e=t.createHashMap,n=t.isObject,i=t.map;function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}r.createByAxisModel=function(t){var e=t.option,n=e.data,o=n&&i(n,a);return new r({categories:o,needCollect:!o,deduplication:!1!==e.dedplication})};var o=r.prototype;function s(t){return t._map||(t._map=e(t.categories))}function a(t){return n(t)&&null!=t.value?t.value:t+""}o.getOrdinal=function(t){return s(this).get(t)},o.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=s(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var l=r;return $lt=l,$lt}function sht(){if(nht)return eht;nht=1;var t=bH,e=rht(),n=oht(),i=e.prototype,r=e.extend({type:"ordinal",init:function(e,i){(!e||t.isArray(e))&&(e=new n({categories:e})),this._ordinalMeta=e,this._extent=i||[0,e.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),i.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return i.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(i.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:t.noop,niceExtent:t.noop});r.create=function(){return new r};var o=r;return eht=o,eht}var aht,lht,hht,uht={};function cht(){if(aht)return uht;aht=1;var t=F7(),e=t.round;function n(n,r,s,a){var l={},h=n[1]-n[0],u=l.interval=t.nice(h/r,!0);null!=s&&ua&&(u=l.interval=a);var c=l.intervalPrecision=i(u),g=l.niceTickExtent=[e(Math.ceil(n[0]/u)*u,c),e(Math.floor(n[1]/u)*u,c)];return o(g,n),l}function i(e){return t.getPrecisionSafe(e)+2}function r(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function o(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),r(t,0,e),r(t,1,e),t[0]>t[1]&&(t[0]=t[1])}return uht.intervalScaleNiceTicks=n,uht.getIntervalPrecision=i,uht.fixExtent=o,uht}function ght(){if(hht)return lht;hht=1;var t=F7(),e=O7,n=rht(),i=cht(),r=t.round,o=n.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),o.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=i.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!e)return s;var a=1e4;n[0]a)return[];var h=s.length?s[s.length-1]:i[1];return n[1]>h&&(t?s.push(r(h+e,o)):s.push(n[1])),s},getMinorTicks:function(e){for(var n=this.getTicks(!0),i=[],r=this.getExtent(),o=1;or[0]&&g0&&(s=null===s?l:Math.min(s,l))}i[r]=s}}return i}function f(e){var i=d(e),r=[];return t.each(e,(function(t){var e,o=t.coordinateSystem,s=o.getBaseAxis(),a=s.getExtent();if("category"===s.type)e=s.getBandWidth();else if("value"===s.type||"time"===s.type){var l=s.dim+"_"+s.index,c=i[l],g=Math.abs(a[1]-a[0]),d=s.scale.getExtent(),f=Math.abs(d[1]-d[0]);e=c?g/f*c:g}else{var A=t.getData();e=Math.abs(a[1]-a[0])/A.count()}var p=n(t.get("barWidth"),e),m=n(t.get("barMaxWidth"),e),y=n(t.get("barMinWidth")||1,e),v=t.get("barGap"),_=t.get("barCategoryGap");r.push({bandWidth:e,barWidth:p,barMaxWidth:m,barMinWidth:y,barGap:v,barCategoryGap:_,axisKey:u(s),stackId:h(t)})})),A(r)}function A(e){var i={};t.each(e,(function(t,e){var n=t.axisKey,r=t.bandWidth,o=i[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},s=o.stacks;i[n]=o;var a=t.stackId;s[a]||o.autoWidthCount++,s[a]=s[a]||{width:0,maxWidth:0};var l=t.barWidth;l&&!s[a].width&&(s[a].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var h=t.barMaxWidth;h&&(s[a].maxWidth=h);var u=t.barMinWidth;u&&(s[a].minWidth=u);var c=t.barGap;null!=c&&(o.gap=c);var g=t.barCategoryGap;null!=g&&(o.categoryGap=g)}));var r={};return t.each(i,(function(e,i){r[i]={};var o=e.stacks,s=e.bandWidth,a=n(e.categoryGap,s),l=n(e.gap,1),h=e.remainedWidth,u=e.autoWidthCount,c=(h-a)/(u+(u-1)*l);c=Math.max(c,0),t.each(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,h-=i+l*i,u--}else{i=c;e&&ei&&(i=n),i!==c&&(t.width=i,h-=i+l*i,u--)}})),c=(h-a)/(u+(u-1)*l),c=Math.max(c,0);var g,d=0;t.each(o,(function(t,e){t.width||(t.width=c),g=t,d+=t.width*(1+l)})),g&&(d-=g.width*l);var f=-d/2;t.each(o,(function(t,e){r[i][e]=r[i][e]||{bandWidth:s,offset:f,width:t.width},f+=t.width*(1+l)}))})),r}function p(t,e,n){if(t&&e){var i=t[u(e)];return null!=i&&null!=n&&(i=i[h(n)]),i}}function m(e,n){var i=g(e,n),o=f(i),s={};t.each(i,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=h(t),l=o[u(i)][a],c=l.offset,g=l.width,d=n.getOtherAxis(i),f=t.get("barMinHeight")||0;s[a]=s[a]||[],e.setLayout({bandWidth:l.bandWidth,offset:c,size:g});for(var A=e.mapDimension(d.dim),p=e.mapDimension(i.dim),m=r(e,A),y=d.isHorizontal(),v=x(i,d),_=0,I=e.count();_=0?"p":"n",T=v;if(m&&(s[a][B]||(s[a][B]={p:v,n:v}),T=s[a][B][M]),y){var D=n.dataToPoint([S,B]);w=T,C=D[1]+c,E=D[0]-v,b=g,Math.abs(E)a||(g=a),{progress:d}}function d(t,e){for(var a,d=t.count,f=new l(2*d),A=new l(2*d),p=new l(d),m=[],y=[],v=0,_=0;null!=(a=t.next());)y[c]=e.get(s,a),y[1-c]=e.get(h,a),m=n.dataToPoint(y,null,m),A[v]=u?i.x+i.width:m[0],f[v++]=m[0],A[v]=u?m[1]:i.y+i.height,f[v++]=m[1],p[_++]=a;e.setLayout({largePoints:f,largeDataIndices:p,largeBackgroundPoints:A,barWidth:g,valueAxisStart:x(r,o),backgroundStart:u?i.x:i.y,valueAxisHorizontal:u})}}};function v(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function _(t){return t.pipelineContext&&t.pipelineContext.large}function x(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}return xht.getLayoutOnAxis=c,xht.prepareLayoutBarSeries=g,xht.makeColumnLayout=f,xht.retrieveColumnLayout=p,xht.layout=m,xht.largeLayout=y,xht}function wht(){if(Aht)return fht;Aht=1;var t=bH,e=F7(),n=O7,i=cht(),r=ght(),o=r.prototype,s=Math.ceil,a=Math.floor,l=1e3,h=60*l,u=60*h,c=24*u,g=function(t,e,n,i){for(;n>>1;t[r][1]r&&(h=r);var u=f.length,c=g(f,h,0,u),d=f[Math.min(c,u-1)],A=d[1];if("year"===d[0]){var p=l/A,m=e.nice(p/t,!0);A*=m}var y=this.getSetting("useUTC")?0:60*new Date(+o[0]||+o[1]).getTimezoneOffset()*1e3,v=[Math.round(s((o[0]-y)/A)*A+y),Math.round(a((o[1]-y)/A)*A+y)];i.fixExtent(v,o),this._stepLvl=d,this._interval=A,this._niceExtent=v},parse:function(t){return+e.parseDate(t)}});t.each(["contain","normalize"],(function(t){d.prototype[t]=function(e){return o[t].call(this,this.parse(e))}}));var f=[["hh:mm:ss",l],["hh:mm:ss",5*l],["hh:mm:ss",10*l],["hh:mm:ss",15*l],["hh:mm:ss",30*l],["hh:mm\nMM-dd",h],["hh:mm\nMM-dd",5*h],["hh:mm\nMM-dd",10*h],["hh:mm\nMM-dd",15*h],["hh:mm\nMM-dd",30*h],["hh:mm\nMM-dd",u],["hh:mm\nMM-dd",2*u],["hh:mm\nMM-dd",6*u],["hh:mm\nMM-dd",12*u],["MM-dd\nyyyy",c],["MM-dd\nyyyy",2*c],["MM-dd\nyyyy",3*c],["MM-dd\nyyyy",4*c],["MM-dd\nyyyy",5*c],["MM-dd\nyyyy",6*c],["week",7*c],["MM-dd\nyyyy",10*c],["week",14*c],["week",21*c],["month",31*c],["week",42*c],["month",62*c],["week",70*c],["quarter",95*c],["month",31*c*4],["month",31*c*5],["half-year",380*c/2],["month",31*c*8],["month",31*c*10],["year",380*c]];d.create=function(t){return new d({useUTC:t.ecModel.get("useUTC")})};var A=d;return fht=A,fht}function Cht(){if(mht)return pht;mht=1;var t=bH,e=rht(),n=F7(),i=ght(),r=e.prototype,o=i.prototype,s=n.getPrecisionSafe,a=n.round,l=Math.floor,h=Math.ceil,u=Math.pow,c=Math.log,g=e.extend({type:"log",base:10,$constructor:function(){e.apply(this,arguments),this._originalScale=new i},getTicks:function(e){var i=this._originalScale,r=this._extent,s=i.getExtent();return t.map(o.getTicks.call(this,e),(function(t){var e=n.round(u(this.base,t));return e=t===r[0]&&i.__fixMin?d(e,s[0]):e,e=t===r[1]&&i.__fixMax?d(e,s[1]):e,e}),this)},getMinorTicks:o.getMinorTicks,getLabel:o.getLabel,scale:function(t){return t=r.scale.call(this,t),u(this.base,t)},setExtent:function(t,e){var n=this.base;t=c(t)/c(n),e=c(e)/c(n),o.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=r.getExtent.call(this);e[0]=u(t,e[0]),e[1]=u(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=d(e[0],i[0])),n.__fixMax&&(e[1]=d(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=c(t[0])/c(e),t[1]=c(t[1])/c(e),r.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var r=n.quantity(i),o=t/i*r;for(o<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var s=[n.round(h(e[0]/r)*r),n.round(l(e[1]/r)*r)];this._interval=r,this._niceExtent=s}},niceExtent:function(t){o.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function d(t,e){return a(t,s(e))}t.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=c(e)/c(this.base),r[t].call(this,e)}})),g.create=function(){return new g};var f=g;return pht=f,pht}function Eht(){if(yht)return iht;yht=1;var t=bH,e=sht(),n=ght(),i=rht(),r=F7(),o=Iht(),s=o.prepareLayoutBarSeries,a=o.makeColumnLayout,l=o.retrieveColumnLayout,h=EK;function u(e,n){var i,o,l,h=e.type,u=n.getMin(),g=n.getMax(),d=e.getExtent();"ordinal"===h?i=n.getCategories().length:(o=n.get("boundaryGap"),t.isArray(o)||(o=[o||0,o||0]),"boolean"==typeof o[0]&&(o=[0,0]),o[0]=r.parsePercent(o[0],1),o[1]=r.parsePercent(o[1],1),l=d[1]-d[0]||Math.abs(d[0])),"dataMin"===u?u=d[0]:"function"==typeof u&&(u=u({min:d[0],max:d[1]})),"dataMax"===g?g=d[1]:"function"==typeof g&&(g=g({min:d[0],max:d[1]}));var f=null!=u,A=null!=g;null==u&&(u="ordinal"===h?i?0:NaN:d[0]-o[0]*l),null==g&&(g="ordinal"===h?i?i-1:NaN:d[1]+o[1]*l),(null==u||!isFinite(u))&&(u=NaN),(null==g||!isFinite(g))&&(g=NaN),e.setBlank(t.eqNaN(u)||t.eqNaN(g)||"ordinal"===h&&!e.getOrdinalMeta().categories.length),n.getNeedCrossZero()&&(u>0&&g>0&&!f&&(u=0),u<0&&g<0&&!A&&(g=0));var p=n.ecModel;if(p&&"time"===h){var m,y=s("bar",p);if(t.each(y,(function(t){m|=t.getBaseAxis()===n.axis})),m){var v=a(y),_=c(u,g,n,v);u=_.min,g=_.max}}return{extent:[u,g],fixMin:f,fixMax:A}}function c(e,n,i,r){var o=i.axis.getExtent(),s=o[1]-o[0],a=l(r,i.axis);if(void 0===a)return{min:e,max:n};var h=1/0;t.each(a,(function(t){h=Math.min(t.offset,h)}));var u=-1/0;t.each(a,(function(t){u=Math.max(t.offset+t.width,u)})),h=Math.abs(h),u=Math.abs(u);var c=h+u,g=n-e,d=1-(h+u)/s,f=g/d-g;return n+=f*(u/c),e-=f*(h/c),{min:e,max:n}}function g(t,e){var n=u(t,e),i=n.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function d(t,r){if(r=r||t.get("type"),r)switch(r){case"category":return new e(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new n;default:return(i.getClass(r)||n).create(t)}}function f(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function A(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?(e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e),e):"function"==typeof e?function(i,r){return null!=n&&(r=i-n),e(p(t,i),r)}:function(e){return t.scale.getLabel(e)}}function p(t,e){return"category"===t.type?t.scale.getLabel(e):e}function m(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===t.type,s=n.getExtent();o?r=n.count():(i=n.getTicks(),r=i.length);var a,l=t.getLabelModel(),h=A(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c>1^-(1&a),l=l>>1^-(1&l),a+=r,l+=o,r=a,o=l,i.push([a/n,l/n])}return i}function r(i,r){return n(i),t.map(t.filter(i.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(n){var i=n.properties,o=n.geometry,s=o.coordinates,a=[];"Polygon"===o.type&&a.push({type:"polygon",exterior:s[0],interiors:s.slice(1)}),"MultiPolygon"===o.type&&t.each(s,(function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new e(i[r||"name"],a,i.cp);return l.properties=i,l}))}return Pht=r,Pht}var Ght,jht,Uht,qht,Vht={};function Hht(){if(Ght)return Vht;Ght=1;var t=bH,e=DJ,n=Z2,i=n.makeInner,r=Eht(),o=r.makeLabelFormatter,s=r.getOptionCategoryInterval,a=r.shouldShowAllLabels,l=i();function h(t){return"category"===t.type?c(t):f(t)}function u(t,e){return"category"===t.type?d(t,e):{ticks:t.scale.getTicks()}}function c(t){var e=t.getLabelModel(),n=g(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function g(e,n){var i,r,o=A(e,"labels"),a=s(n),l=p(o,a);return l||(t.isFunction(a)?i=I(e,a):(r="auto"===a?y(e):a,i=x(e,r)),m(o,a,{labels:i,labelCategoryInterval:r}))}function d(e,n){var i,r,o=A(e,"ticks"),a=s(n),l=p(o,a);if(l)return l;if((!n.get("show")||e.scale.isBlank())&&(i=[]),t.isFunction(a))i=I(e,a,!0);else if("auto"===a){var h=g(e,e.getLabelModel());r=h.labelCategoryInterval,i=t.map(h.labels,(function(t){return t.tickValue}))}else r=a,i=x(e,r,!0);return m(o,a,{ticks:i,tickCategoryInterval:r})}function f(e){var n=e.scale.getTicks(),i=o(e);return{labels:t.map(n,(function(t,n){return{formattedLabel:i(t,n),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}function A(t,e){return l(t)[e]||(l(t)[e]=[])}function p(t,e){for(var n=0;n40&&(u=Math.max(1,Math.floor(h/40)));for(var c=a[0],g=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(g*Math.cos(r)),f=Math.abs(g*Math.sin(r)),A=0,p=0;c<=a[1];c+=u){var m=0,y=0,v=e.getBoundingRect(i(c),n.font,"center","top");m=1.3*v.width,y=1.3*v.height,A=Math.max(A,m,7),p=Math.max(p,y,7)}var x=A/d,I=p/f;isNaN(x)&&(x=1/0),isNaN(I)&&(I=1/0);var w=Math.max(0,Math.floor(Math.min(x,I))),C=l(t.model),E=t.getExtent(),b=C.lastAutoInterval,S=C.lastTickCount;return null!=b&&null!=S&&Math.abs(b-w)<=1&&Math.abs(S-h)<=1&&b>w&&C.axisExtend0===E[0]&&C.axisExtend1===E[1]?w=b:(C.lastTickCount=h,C.lastAutoInterval=w,C.axisExtend0=E[0],C.axisExtend1=E[1]),w}function _(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function x(t,e,n){var i=o(t),r=t.scale,s=r.getExtent(),l=t.getLabelModel(),h=[],u=Math.max((e||0)+1,1),c=s[0],g=r.count();0!==c&&u>1&&g/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=a(t),f=l.get("showMinLabel")||d,A=l.get("showMaxLabel")||d;f&&c!==s[0]&&m(s[0]);for(var p=c;p<=s[1];p+=u)m(p);function m(t){h.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return A&&p-u!==s[1]&&m(s[1]),h}function I(e,n,i){var r=e.scale,s=o(e),a=[];return t.each(r.getTicks(),(function(t){var e=r.getLabel(t);n(t,e)&&a.push(i?t:{formattedLabel:s(t),rawLabel:e,tickValue:t})})),a}return Vht.createAxisLabels=h,Vht.createAxisTicks=u,Vht.calculateCategoryInterval=v,Vht}function Yht(){if(Uht)return jht;Uht=1;var t=bH,e=t.each,n=t.map,i=F7(),r=i.linearMap,o=i.getPixelPrecision,s=i.round,a=Hht(),l=a.createAxisTicks,h=a.createAxisLabels,u=a.calculateCategoryInterval,c=[0,1],g=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function d(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function f(t,n,i,r){var o=n.length;if(t.onBand&&!i&&o){var a,l,h=t.getExtent();if(1===o)n[0].coord=h[0],a=n[1]={coord:h[0]};else{var u=n[o-1].tickValue-n[0].tickValue,c=(n[o-1].coord-n[0].coord)/u;e(n,(function(t){t.coord-=c/2}));var g=t.scale.getExtent();l=1+g[1]-n[o-1].tickValue,a={coord:n[o-1].coord+c*l},n.push(a)}var d=h[0]>h[1];f(n[0].coord,h[0])&&(r?n[0].coord=h[0]:n.shift()),r&&f(h[0],n[0].coord)&&n.unshift({coord:h[0]}),f(h[1],a.coord)&&(r?a.coord=h[1]:n.pop()),r&&f(a.coord,h[1])&&n.push({coord:h[1]})}function f(t,e){return t=s(t),e=s(e),d?t>e:t=n&&t<=i},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return o(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),d(n,i.count())),r(t,c,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),d(n,i.count()));var o=r(t,n,c,e);return this.scale.scale(o)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=l(this,e),r=i.ticks,o=n(r,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this),s=e.get("alignWithLabel");return f(this,o,s,t.clamp),o},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),r=n(i,(function(t){return n(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},getViewLabels:function(){return h(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return u(this)}};var A=g;return jht=A,jht}function Wht(){if(qht)return Clt;qht=1;var t=yH;Clt.zrender=t;var e=uX;Clt.matrix=e;var n=EY;Clt.vector=n;var i=bH,r=NX;Clt.color=r;var o=H1,s=F7();Clt.number=s;var a=O7;Clt.format=a;var l=Jot;l.throttle,Clt.throttle=l.throttle;var h=Dht();Clt.helper=h;var u=Nht();Clt.parseGeoJSON=u;var c=Olt();Clt.List=c;var g=b7;Clt.Model=g;var d=Yht();Clt.Axis=d;var f=EH;Clt.env=f;var A=u,p={};i.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){p[t]=i[t]}));var m={};return i.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){m[t]=o[t]})),Clt.parseGeoJson=A,Clt.util=p,Clt.graphic=m,Clt}(function(t){var e=yH,n=bH,i=NX,r=EH,o=jK,s=aW,a=Ont,l=qnt,h=Xnt,u=cit,c=Nit,g=Hit,d=jtt,f=vot,A=bot,p=Kot,m=H1,y=Z2,v=Jot,_=v.throttle,x=hst,I=mst,w=wst,C=sat,E=hat,b=Aat,S=wlt,B=n.assert,M=n.each,T=n.isFunction,D=n.isObject,R=d.parseClassType,k="4.9.0",L={zrender:"4.3.2"},P=1,Q=1e3,z=800,F=900,O=5e3,N=1e3,G=1100,j=2e3,U=3e3,q=3500,V=4e3,H=5e3,Y={PROCESSOR:{FILTER:Q,SERIES_FILTER:z,STATISTIC:O},VISUAL:{LAYOUT:N,PROGRESSIVE_LAYOUT:G,GLOBAL:j,CHART:U,POST_CHART_LAYOUT:q,COMPONENT:V,BRUSH:H}},W="__flagInMainProcess",X="__optionUpdated",Z=/^[a-zA-Z0-9_]+$/;function K(t,e){return function(n,i,r){e||!this._disposed?(n=n&&n.toLowerCase(),s.prototype[t].call(this,n,i,r)):this.id}}function J(){s.call(this)}function $(t,i,r){r=r||{},"string"==typeof i&&(i=Bt[i]),this.id,this.group,this._dom=t;var a="canvas",l=this._zr=e.init(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height});this._throttledZrFlush=_(n.bind(l.flush,l),17);i=n.clone(i);i&&c(i,!0),this._theme=i,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var u=this._api=_t(this);function g(t,e){return t.__prio-e.__prio}o(St,g),o(Ct,g),this._scheduler=new C(this,u,Ct,St),s.call(this,this._ecEventProcessor=new xt),this._messageCenter=new J,this._initEvents(),this.resize=n.bind(this.resize,this),this._pendingActions=[],l.animation.on("frame",this._onframe,this),ht(l,this),n.setAsPrimitive(this)}J.prototype.on=K("on",!0),J.prototype.off=K("off",!0),J.prototype.one=K("one",!0),n.mixin(J,s);var tt=$.prototype;function et(t,e,n){if(this._disposed)this.id;else{var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=y.parseFinder(r,e);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},tt.getDom=function(){return this._dom},tt.getZr=function(){return this._zr},tt.setOption=function(t,e,n){if(this._disposed)this.id;else{var i;if(D(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[W]=!0,!this._model||e){var r=new u(this._api),o=this._theme,s=this._model=new a;s.scheduler=this._scheduler,s.init(null,null,o,r)}this._model.setOption(t,Et),n?(this[X]={silent:i},this[W]=!1):(it(this),nt.update.call(this),this._zr.flush(),this[X]=!1,this[W]=!1,at.call(this,i),lt.call(this,i))}},tt.setTheme=function(){},tt.getModel=function(){return this._model},tt.getOption=function(){return this._model&&this._model.getOption()},tt.getWidth=function(){return this._zr.getWidth()},tt.getHeight=function(){return this._zr.getHeight()},tt.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},tt.getRenderedCanvas=function(t){if(r.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},tt.getSvgDataURL=function(){if(r.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return n.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},tt.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;M(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,(function(t){t.group.ignore=!1})),o}this.id},tt.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(r.canvasSupported){var i="svg"===t.type,o=this.group,s=Math.min,a=Math.max,l=1/0;if(Dt[o]){var h=l,u=l,c=-l,g=-l,d=[],f=t&&t.pixelRatio||1;n.each(Tt,(function(e,r){if(e.group===o){var l=i?e.getZr().painter.getSvgDom().innerHTML:e.getRenderedCanvas(n.clone(t)),f=e.getDom().getBoundingClientRect();h=s(f.left,h),u=s(f.top,u),c=a(f.right,c),g=a(f.bottom,g),d.push({dom:l,left:f.left,top:f.top})}})),h*=f,u*=f,c*=f,g*=f;var A=c-h,p=g-u,y=n.createCanvas(),v=e.init(y,{renderer:i?"svg":"canvas"});if(v.resize({width:A,height:p}),i){var _="";return M(d,(function(t){var e=t.left-h,n=t.top-u;_+=''+t.dom+""})),v.painter.getSvgRoot().innerHTML=_,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new m.Rect({shape:{x:0,y:0,width:A,height:p},style:{fill:t.connectedBackgroundColor}})),M(d,(function(t){var e=new m.Image({style:{x:t.left*f-h,y:t.top*f-u,image:t.dom}});v.add(e)})),v.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},tt.convertToPixel=n.curry(et,"convertToPixel"),tt.convertFromPixel=n.curry(et,"convertFromPixel"),tt.containPixel=function(t,e){if(!this._disposed){var i,r=this._model;return t=y.parseFinder(r,t),n.each(t,(function(t,r){r.indexOf("Models")>=0&&n.each(t,(function(t){var n=t.coordinateSystem;if(n&&n.containPoint)i|=!!n.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i|=o.containPoint(e,t))}}),this)}),this),!!i}this.id},tt.getVisual=function(t,e){var n=this._model;t=y.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=o?r.getItemVisual(o,e):r.getVisual(e)},tt.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},tt.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var nt={prepareAndUpdate:function(t){it(this),nt.update.call(this,t)},update:function(t){var e=this._model,n=this._api,o=this._zr,s=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),s.create(e,n),a.performDataProcessorTasks(e,t),ot(this,e),s.update(e,n),ct(e),a.performVisualTasks(e,t),gt(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(r.canvasSupported)o.setBackgroundColor(l);else{var h=i.parse(l);l=i.stringify(h,"rgb"),0===h[3]&&(l="transparent")}At(e,n)}},updateTransform:function(t){var e=this._model,i=this,r=this._api;if(e){var o=[];e.eachComponent((function(n,s){var a=i.getViewOfComponentModel(s);if(a&&a.__alive)if(a.updateTransform){var l=a.updateTransform(s,e,r,t);l&&l.update&&o.push(a)}else o.push(a)}));var s=n.createHashMap();e.eachSeries((function(n){var o=i._chartsMap[n.__viewId];if(o.updateTransform){var a=o.updateTransform(n,e,r,t);a&&a.update&&s.set(n.uid,1)}else s.set(n.uid,1)})),ct(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:s}),ft(i,e,r,t,s),At(e,this._api)}},updateView:function(t){var e=this._model;!e||(p.markUpdateMethod(t,"updateView"),ct(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),gt(this,this._model,this._api,t),At(e,this._api))},updateVisual:function(t){nt.update.call(this,t)},updateLayout:function(t){nt.update.call(this,t)}};function it(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),ut(t,"component",e,n),ut(t,"chart",e,n),n.plan()}function rt(t,e,i,r,o){var s=t._model;if(r){var a={};a[r+"Id"]=i[r+"Id"],a[r+"Index"]=i[r+"Index"],a[r+"Name"]=i[r+"Name"];var l={mainType:r,query:a};o&&(l.subType=o);var h=i.excludeSeriesId;null!=h&&(h=n.createHashMap(y.normalizeToArray(h))),s&&s.eachComponent(l,(function(e){(!h||null==h.get(e.id))&&u(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else M(t._componentsViews.concat(t._chartsViews),u);function u(n){n&&n.__alive&&n[e]&&n[e](n.__model,s,t._api,i)}}function ot(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))}function st(t,e){var i=t.type,r=t.escapeConnect,o=It[i],s=o.actionInfo,a=(s.update||"update").split(":"),l=a.pop();a=null!=a[0]&&R(a[0]),this[W]=!0;var h=[t],u=!1;t.batch&&(u=!0,h=n.map(t.batch,(function(e){return e=n.defaults(n.extend({},e),t),e.batch=null,e})));var c,g=[],d="highlight"===i||"downplay"===i;M(h,(function(t){c=o.action(t,this._model,this._api),c=c||n.extend({},t),c.type=s.event||c.type,g.push(c),d?rt(this,l,t,"series"):a&&rt(this,l,t,a.main,a.sub)}),this),"none"!==l&&!d&&!a&&(this[X]?(it(this),nt.update.call(this,t),this[X]=!1):nt[l].call(this,t)),c=u?{type:s.event||i,escapeConnect:r,batch:g}:g[0],this[W]=!1,!e&&this._messageCenter.trigger(c.type,c)}function at(t){for(var e=this._pendingActions;e.length;){var n=e.shift();st.call(this,n,t)}}function lt(t){!t&&this.trigger("updated")}function ht(t,e){t.on("rendered",(function(){e.trigger("rendered"),t.animation.isFinished()&&!e[X]&&!e._scheduler.unfinished&&!e._pendingActions.length&&e.trigger("finished")}))}function ut(t,e,n,i){for(var r="component"===e,o=r?t._componentsViews:t._chartsViews,s=r?t._componentsMap:t._chartsMap,a=t._zr,l=t._api,h=0;he.get("hoverLayerThreshold")&&!r.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.useHoverLayer=!0}))}}))}function yt(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",n)}))}))}function vt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}function _t(t){var e=t._coordSysMgr;return n.extend(new l(t),{getCoordinateSystems:n.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function xt(){this.eventInfo}tt._initEvents=function(){M(pt,(function(t){var e=function(e){var i,r=this.getModel(),o=e.target,s="globalout"===t;if(s)i={};else if(o&&null!=o.dataIndex){var a=o.dataModel||r.getSeriesByIndex(o.seriesIndex);i=a&&a.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(i=n.extend({},o.eventData));if(i){var l=i.componentType,h=i.componentIndex;("markLine"===l||"markPoint"===l||"markArea"===l)&&(l="series",h=i.seriesIndex);var u=l&&null!=h&&r.getComponent(l,h),c=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),M(wt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},tt.isDisposed=function(){return this._disposed},tt.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},tt.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,y.setAttribute(this.getDom(),Lt,"");var t=this._api,e=this._model;M(this._componentsViews,(function(n){n.dispose(e,t)})),M(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete Tt[this.id]}},n.mixin($,s),xt.prototype={constructor:xt,normalizeQuery:function(t){var e={},i={},r={};if(n.isString(t)){var o=R(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var s=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};n.each(t,(function(t,n){for(var o=!1,l=0;l0&&u===n.length-h.length){var c=n.slice(0,u);"data"!==c&&(e.mainType=c,e[h.toLowerCase()]=t,o=!0)}}a.hasOwnProperty(n)&&(i[n]=t,o=!0),o||(r[n]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:r}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,s=i.model,a=i.view;if(!s||!a)return!0;var l=e.cptQuery,h=e.dataQuery;return u(l,s,"mainType")&&u(l,s,"subType")&&u(l,s,"index","componentIndex")&&u(l,s,"name")&&u(l,s,"id")&&u(h,o,"name")&&u(h,o,"dataIndex")&&u(h,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,o));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var It={},wt={},Ct=[],Et=[],bt=[],St=[],Bt={},Mt={},Tt={},Dt={},Rt=new Date-0,kt=new Date-0,Lt="_echarts_instance_";function Pt(t){var e=0,n=1,i=2,r="__connectUpdateStatus";function o(t,e){for(var n=0;n0?n=i[0]:i[1]<0&&(n=i[1]),n}function s(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,s=[];return s[o]=n.get(t.baseDim,i),s[1-o]=r,e.dataToPoint(s)}return cut.prepareDataCoordInfo=r,cut.getStackedOnPoint=s,cut}function dut(){if(uut)return hut;uut=1;var t=gut(),e=t.prepareDataCoordInfo,n=t.getStackedOnPoint;function i(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function r(t,r,o,s,a,l,h,u){for(var c=i(t,r),g=[],d=[],f=[],A=[],p=[],m=[],y=[],v=e(a,r,h),_=e(l,t,u),x=0;x=r||p<0)break;if(u(y)){if(f){p+=o;continue}break}if(p===n)t[o>0?"moveTo":"lineTo"](y[0],y[1]);else if(g>0){var v=e[A],_="y"===d?1:0,x=(y[_]-v[_])*g;s(l,v),l[_]=v[_]+x,s(h,y),h[_]=y[_]-x,t.bezierCurveTo(l[0],l[1],h[0],h[1],y[0],y[1])}else t.lineTo(y[0],y[1]);A=p,p+=o}return m}function d(t,n,c,g,d,f,A,p,m,y,v){for(var _=0,x=c,I=0;I=d||x<0)break;if(u(w)){if(v){x+=f;continue}break}if(x===c)t[f>0?"moveTo":"lineTo"](w[0],w[1]),s(l,w);else if(m>0){var C=x+f,E=n[C];if(v)for(;E&&u(n[C]);)C+=f,E=n[C];var b=.5,S=n[_];E=n[C];if(!E||u(E))s(h,w);else{var B,M;if(u(E)&&!v&&(E=w),e.sub(a,E,S),"x"===y||"y"===y){var T="x"===y?0:1;B=Math.abs(w[T]-S[T]),M=Math.abs(w[T]-E[T])}else B=e.dist(w,S),M=e.dist(w,E);b=M/(M+B),o(h,w,a,-m*(1-b))}i(l,l,p),r(l,l,A),i(h,h,p),r(h,h,A),t.bezierCurveTo(l[0],l[1],h[0],h[1],w[0],w[1]),o(l,w,a,m*b)}else t.lineTo(w[0],w[1]);_=x,x+=f}return I}function f(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var A=t.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:n(t.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=f(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&u(n[r-1]);r--);for(;i0&&u(n[o-1]);o--);for(;r=0;a--){var l=i[a].dimension,h=e.dimensions[l],u=e.getDimensionInfo(h);if(r=u&&u.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var c=n.getAxis(r),g=t.map(o.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),d=g.length,f=o.outerColors.slice();d&&g[0].coord>g[d-1].coord&&(g.reverse(),f.reverse());var A=10,p=g[0].coord-A,m=g[d-1].coord+A,y=m-p;if(y<.001)return"transparent";t.each(g,(function(t){t.offset=(t.coord-p)/y})),g.push({offset:d?g[d-1].offset:.5,color:f[1]||"transparent"}),g.unshift({offset:d?g[0].offset:.5,color:f[0]||"transparent"});var v=new s.LinearGradient(0,0,0,0,g,!0);return v[r]=p,v[r+"2"]=m,v}}}function C(e,n,i){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var s=i.getAxesByScale("ordinal")[0];if(s&&(!o||!E(s,n))){var a=n.mapDimension(s.dim),l={};return t.each(s.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(n.get(a,t))}}}}function E(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),s=Math.max(1,Math.round(o/5)),a=0;ai)return!1;return!0}function b(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=p(t,e,n);if(!n.get("clip",!0)){var o=r.shape,s=Math.max(o.width,o.height);i?(o.y-=s,o.height+=2*s):(o.x-=s,o.width+=2*s)}return r}return m(t,e,n)}var S=c.extend({type:"line",init:function(){var t=new s.Group,e=new i;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(e,n,i){var r=e.coordinateSystem,o=this.group,s=e.getData(),a=e.getModel("lineStyle"),l=e.getModel("areaStyle"),h=s.mapArray(s.getItemLayout),u="polar"===r.type,c=this._coordSys,g=this._symbolDraw,f=this._polyline,A=this._polygon,p=this._lineGroup,m=e.get("animation"),v=!l.isEmpty(),E=l.get("origin"),S=d(r,s,E),B=x(r,s,S),M=e.get("showSymbol"),T=M&&!u&&C(e,s,r),D=this._data;D&&D.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),D.setItemGraphicEl(e,null))})),M||g.remove(),o.add(p);var R,k=!u&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(R=r.getArea(),null!=R.width?(R.x-=.1,R.y-=.1,R.width+=.2,R.height+=.2):R.r0&&(R.r0-=.5,R.r1+=.5)),this._clipShapeForSymbol=R,f&&c.type===r.type&&k===this._step?(v&&!A?A=this._newPolygon(h,B,r,m):A&&!v&&(p.remove(A),A=this._polygon=null),p.setClipPath(b(r,!1,e)),M&&g.updateData(s,{isIgnore:T,clipShape:R}),s.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),(!y(this._stackedOnPoints,B)||!y(this._points,h))&&(m?this._updateAnimation(s,B,r,i,k,E):(k&&(h=I(h,r,k),B=I(B,r,k)),f.setShape({points:h}),A&&A.setShape({points:h,stackedOnPoints:B})))):(M&&g.updateData(s,{isIgnore:T,clipShape:R}),k&&(h=I(h,r,k),B=I(B,r,k)),f=this._newPolyline(h,r,m),v&&(A=this._newPolygon(h,B,r,m)),p.setClipPath(b(r,!0,e)));var L=w(s,r)||s.getVisual("color");f.useStyle(t.defaults(a.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var P=e.get("smooth");if(P=_(e.get("smooth")),f.setShape({smooth:P,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),A){var Q=s.getCalculationInfo("stackedOnSeries"),z=0;A.useStyle(t.defaults(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),Q&&(z=_(Q.get("smooth"))),A.setShape({smooth:P,stackedOnSmooth:z,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=s,this._coordSys=r,this._stackedOnPoints=B,this._points=h,this._step=k,this._valueOrigin=E},dispose:function(){},highlight:function(t,e,n,i){var o=t.getData(),s=a.queryDataIndex(o,i);if(!(s instanceof Array)&&null!=s&&s>=0){var l=o.getItemGraphicEl(s);if(!l){var h=o.getItemLayout(s);if(!h||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h[0],h[1]))return;l=new r(o,s),l.position=h,l.setZ(t.get("zlevel"),t.get("z")),l.ignore=isNaN(h[0])||isNaN(h[1]),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else c.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=a.queryDataIndex(r,i);if(null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else c.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new h({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new u({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,a){var l=this._polyline,h=this._polygon,u=t.hostModel,c=o(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),g=c.current,d=c.stackedOnCurrent,f=c.next,A=c.stackedOnNext;if(r&&(g=I(c.current,n,r),d=I(c.stackedOnCurrent,n,r),f=I(c.next,n,r),A=I(c.stackedOnNext,n,r)),v(g,f)>3e3||h&&v(d,A)>3e3)return l.setShape({points:f}),void(h&&h.setShape({points:f,stackedOnPoints:A}));l.shape.__points=c.current,l.shape.points=g,s.updateProps(l,{shape:{points:f}},u),h&&(h.setShape({points:g,stackedOnPoints:d}),s.updateProps(h,{shape:{points:f,stackedOnPoints:A}},u));for(var p=[],m=c.status,y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n1)"string"==typeof s?l=t[s]:"function"==typeof s&&(l=s),l&&n.setData(o.downSample(o.mapDimension(u.dim),1/d,l,e))}}}}return Cut=n,Cut}var Rut,kut,Lut,Put,Qut,zut,Fut,Out,Nut,Gut,jut,Uut,qut,Vut,Hut,Yut,Wut={};function Xut(){if(kut)return Rut;kut=1;var t=bH;function e(t){return this._axes[t]}var n=function(t){this._axes={},this._dimList=[],this.name=t||""};n.prototype={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return t.map(this._dimList,e,this)},getAxesByScale:function(e){return e=e.toLowerCase(),t.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;re[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},t.inherits(n,e);var i=n;return Qut=i,Qut}function Jut(){if(Out)return Fut;Out=1;var t=bH,e={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n={};n.categoryAxis=t.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},e),n.valueAxis=t.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},e),n.timeAxis=t.defaults({scale:!0,min:"dataMin",max:"dataMax"},n.valueAxis),n.logAxis=t.defaults({scale:!0,logBase:10},n.valueAxis);var i=n;return Fut=i,Fut}function $ut(){if(Gut)return Nut;Gut=1;var t=bH,e=Jut(),n=jtt,i=Q7,r=i.getLayoutParams,o=i.mergeLayoutParam,s=oht(),a=["value","category","time","log"];function l(i,l,h,u){t.each(a,(function(n){l.extend({type:i+"Axis."+n,mergeDefaultAndTheme:function(e,s){var a=this.layoutMode,l=a?r(e):{},u=s.getTheme();t.merge(e,u.get(n+"Axis")),t.merge(e,this.getDefaultOption()),e.type=h(i,e),a&&o(e,l,a)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=s.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:t.mergeAll([{},e[n+"Axis"],u],!0)})})),n.registerSubTypeDefaulter(i+"Axis",t.curry(h,i))}return Nut=l,Nut}function tct(){if(Uut)return jut;Uut=1;var t=bH,e=jtt,n=$ut(),i=bht(),r=e.extend({type:"cartesian2dAxis",axis:null,init:function(){r.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){r.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){r.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function o(t,e){return e.type||(e.data?"category":"value")}t.merge(r.prototype,i);var s={offset:0};n("x",r,o,s),n("y",r,o,s);var a=r;return jut=a,jut}function ect(){if(Vut)return qut;Vut=1,tct();var t=jtt,e=t.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});return qut=e,qut}function nct(){if(Yut)return Hut;Yut=1;var t=bH,e=t.isObject,n=t.each,i=t.map,r=t.indexOf;t.retrieve;var o=Q7,s=o.getLayoutRect,a=Eht(),l=a.createScaleByModel,h=a.ifAxisCrossZero,u=a.niceScaleExtent,c=a.estimateLabelUnionRect,g=Zut(),d=Kut(),f=Xnt,A=Xlt(),p=A.getStackedDimension;function m(t,e,n){return t.getCoordSysModel()===e}function y(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}ect();var v=y.prototype;function _(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],s=n.model,a=s.get("axisLine.onZero"),l=s.get("axisLine.onZeroAxisIndex");if(a){if(null!=l)x(o[l])&&(r=o[l]);else for(var h in o)if(o.hasOwnProperty(h)&&x(o[h])&&!i[u(o[h])]){r=o[h];break}r&&(i[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function x(t){return t&&"category"!==t.type&&"time"!==t.type&&h(t)}function I(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}v.type="grid",v.axisPointerEnabled=!0,v.getRect=function(){return this._rect},v.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),n(i.x,(function(t){u(t.scale,t.model)})),n(i.y,(function(t){u(t.scale,t.model)}));var r={};n(i.x,(function(t){_(i,"y",t,r)})),n(i.y,(function(t){_(i,"x",t,r)})),this.resize(this.model,e)},v.resize=function(t,e,i){var r=s(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var o=this._axesList;function a(){n(o,(function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),I(t,e?r.x:r.y)}))}a(),!i&&t.get("containLabel")&&(n(o,(function(t){if(!t.model.get("axisLabel.inside")){var e=c(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}})),a())},v.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},v.getAxes=function(){return this._axesList.slice()},v.getCartesian=function(t,n){if(null!=t&&null!=n){var i="x"+t+"y"+n;return this._coordsMap[i]}e(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;rd[1]?-1:1,A=["start"===h?d[0]-f*g:"end"===h?d[1]+f*g:(d[0]+d[1])/2,B(h)?t.labelOffset+u*g:0],p=n.get("nameRotate");null!=p&&(p=p*y/180),B(h)?a=I(t.rotation,null!=p?p:t.rotation,u):(a=w(t,h,p||0,d),l=t.axisNameAvailableWidth,null!=l&&(l=Math.abs(l/Math.sin(a.rotation)),!isFinite(l)&&(l=null)));var m=c.getFont(),v=n.get("nameTruncate",!0)||{},_=v.ellipsis,E=e(t.nameTruncateMaxWidth,v.maxWidth,l),b=null!=_&&null!=E?o.truncateText(r,E,m,_,{minChar:2,placeholder:v.placeholder}):r,S=n.get("tooltip",!0),M=n.mainType,T={componentType:M,name:r,$vars:["name"]};T[M+"Index"]=n.componentIndex;var D=new s.Text({anid:"name",__fullText:r,__truncatedText:b,position:A,rotation:a.rotation,silent:C(n),z2:1,tooltip:S&&S.show?i({content:r,formatter:function(){return r},formatterParams:T},S):null});s.setTextStyle(D.style,c,{text:b,textFont:m,textFill:c.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:c.get("align")||a.textAlign,textVerticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),n.get("triggerEvent")&&(D.eventData=x(n),D.eventData.targetType="axisName",D.eventData.name=r),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},x=v.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},I=v.innerTextLayout=function(t,e,n){var i,r,o=u(e-t);return h(o)?(r=n>0?"top":"bottom",i="center"):h(o-y)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}};function w(t,e,n,i){var r,o,s=u(n-t.rotation),a=i[0]>i[1],l="start"===e&&!a||"start"!==e&&a;return h(s-y/2)?(o=l?"bottom":"top",r="center"):h(s-1.5*y)?(o=l?"top":"bottom",r="center"):(o="middle",r=s<1.5*y&&s>y/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:r,textVerticalAlign:o}}var C=v.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function E(t,e,n){if(!m(t.axis)){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var o=e[0],s=e[1],a=e[e.length-1],l=e[e.length-2],h=n[0],u=n[1],c=n[n.length-1],g=n[n.length-2];!1===i?(b(o),b(h)):S(o,s)&&(i?(b(s),b(u)):(b(o),b(h))),!1===r?(b(a),b(c)):S(l,a)&&(r?(b(l),b(g)):(b(a),b(c)))}}function b(t){t&&(t.ignore=!0)}function S(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=d.identity([]);return d.rotate(o,o,-t.rotation),i.applyTransform(d.mul([],o,t.getLocalTransform())),r.applyTransform(d.mul([],o,e.getLocalTransform())),i.intersect(r)}}function B(t){return"middle"===t||"center"===t}function M(t,e,n,i,r){for(var o=[],a=[],l=[],h=0;h=0||e===n}function u(t){var e=c(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),s=n.get("value");null!=s&&(s=i.parse(s));var a=d(n);null==o&&(r.status=a?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==s||s>l[1])&&(s=l[1]),st&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});return Tct=e,Tct}var Pct,Qct,zct,Fct,Oct,Nct,Gct,jct,Uct={};function qct(){if(Pct)return Uct;Pct=1;var t=H1,e=out(),n=e.getDefaultLabel;function i(e,i,o,s,a,l,h){var u=o.getModel("label"),c=o.getModel("emphasis.label");t.setLabelStyle(e,i,u,c,{labelFetcher:a,labelDataIndex:l,defaultText:n(a.getData(),l),isRectText:!0,autoColor:s}),r(e),r(i)}function r(t,e){"outside"===t.textPosition&&(t.textPosition=e)}return Uct.setLabel=i,Uct}function Vct(){if(zct)return Qct;zct=1;var t=z1,e=t([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),n={getBarItemStyle:function(t){var n=e(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(n.lineDash=i)}return n}};return Qct=n,Qct}function Hct(){if(Oct)return Fct;Oct=1;var t=H1,e=t.extendShape,n=e({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),s=.5*(o-r),a=r+s,l=e.startAngle,h=e.endAngle,u=e.clockwise,c=Math.cos(l),g=Math.sin(l),d=Math.cos(h),f=Math.sin(h),A=u?h-l<2*Math.PI:l-h<2*Math.PI;A&&(t.moveTo(c*r+n,g*r+i),t.arc(c*a+n,g*a+i,s,-Math.PI+l,l,!u)),t.arc(n,i,o,l,h,!u),t.moveTo(d*o+n,f*o+i),t.arc(d*a+n,f*a+i,s,h-2*Math.PI,h-Math.PI,!u),0!==r&&(t.arc(n,i,r,h,l,u),t.moveTo(c*r+n,f*r+i)),t.closePath()}});return Fct=n,Fct}function Yct(){if(Gct)return Nct;Gct=1;var t=mH,e=bH,n=H1,i=qct(),r=i.setLabel,o=b7,s=Vct(),a=U5,l=DK,h=Jot,u=h.throttle,c=Sut(),g=c.createClipPath,d=Hct(),f=["itemStyle","barBorderWidth"],A=[0,0];function p(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}e.extend(o.prototype,s);var m=t.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return("cartesian2d"===i||"polar"===i)&&(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var r,o=this.group,s=t.getData(),a=this._data,h=t.coordinateSystem,u=h.getBaseAxis();"cartesian2d"===h.type?r=u.isHorizontal():"polar"===h.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,g=t.get("clip",!0),d=p(h,s);o.removeClipPath();var f=t.get("roundCap",!0),A=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),y=m.get("barBorderRadius")||0,v=[],E=this._backgroundEls||[],S=function(t){var e=C[h.type](s,t),n=P(h,r,e);return n.useStyle(m.getBarItemStyle()),"cartesian2d"===h.type&&n.setShape("r",y),v[t]=n,n};s.diff(a).add((function(e){var n=s.getItemModel(e),i=C[h.type](s,e,n);if(A&&S(e),s.hasValue(e)){if(g){var a=_[h.type](d,i);if(a)return void o.remove(l)}var l=x[h.type](e,i,r,c,!1,f);s.setItemGraphicEl(e,l),o.add(l),b(l,s,e,n,i,t,r,"polar"===h.type)}})).update((function(e,i){var l=s.getItemModel(e),u=C[h.type](s,e,l);if(A){var p;0===E.length?p=S(i):(p=E[i],p.useStyle(m.getBarItemStyle()),"cartesian2d"===h.type&&p.setShape("r",y),v[e]=p);var I=C[h.type](s,e),w=L(r,I,h);n.updateProps(p,{shape:w},c,e)}var B=a.getItemGraphicEl(i);if(s.hasValue(e)){if(g){var M=_[h.type](d,u);if(M)return void o.remove(B)}B?n.updateProps(B,{shape:u},c,e):B=x[h.type](e,u,r,c,!0,f),s.setItemGraphicEl(e,B),o.add(B),b(B,s,e,l,u,t,r,"polar"===h.type)}else o.remove(B)})).remove((function(t){var e=a.getItemGraphicEl(t);"cartesian2d"===h.type?e&&I(t,c,e):e&&w(t,c,e)})).execute();var B=this._backgroundGroup||(this._backgroundGroup=new l);B.removeAll();for(var M=0;M0?1:-1,s=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+s*r/2,width:i.width-o*r,height:i.height-s*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function E(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function b(t,i,o,s,a,l,h,u){var c=i.getItemVisual(o,"color"),g=i.getItemVisual(o,"opacity"),d=i.getVisual("borderColor"),f=s.getModel("itemStyle"),A=s.getModel("emphasis.itemStyle").getBarItemStyle();u||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(e.defaults({stroke:E(a)?"none":d,fill:E(a)?"none":c,opacity:g},f.getBarItemStyle()));var p=s.getShallow("cursor");p&&t.attr("cursor",p);var m=h?a.height>0?"bottom":"top":a.width>0?"left":"right";u||r(t.style,A,s,c,l,o,m),E(a)&&(A.fill=A.stroke="none"),n.setHoverStyle(t,A)}function S(t,e){var n=t.get(f)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}var B=a.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?n:null}),30,!1);function D(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,s=t.__largeDataIndices,a=Math.abs(t.__barWidth/2),l=t.__startPoint[r];A[0]=e,A[1]=n;for(var h=A[i],u=A[1-i],c=h-a,g=h+a,d=0,f=o.length/2;d=c&&m<=g&&(l<=y?u>=l&&u<=y:u>=y&&u<=l))return s[d]}return-1}function R(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function k(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function L(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}function P(t,e,i){var r="polar"===t.type?n.Sector:n.Rect;return new r({shape:L(e,i,t),silent:!0,z2:0})}return Nct=m,Nct}function Wct(){if(jct)return Rct;jct=1;var t=mH,e=bH,n=Iht(),i=n.layout,r=n.largeLayout;return nct(),Lct(),Yct(),bct(),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,e.curry(i,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,r),t.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}}),Rct}var Xct,Zct,Kct,Jct,$ct,tgt,egt,ngt,igt,rgt,ogt,sgt,agt,lgt,hgt,ugt,cgt,ggt,dgt,fgt,Agt,pgt={};function mgt(){if(Zct)return Xct;Zct=1;var t=Glt(),e=Olt(),n=bH,i=n.extend,r=n.isArray;function o(n,o,s){o=r(o)&&{coordDimensions:o}||i({},o);var a=n.getSource(),l=t(a,o),h=new e(l,n);return h.initData(a,s),h}return Xct=o,Xct}function ygt(){if(Jct)return Kct;Jct=1;var t=bH,e={updateSelectedMap:function(e){this._targetList=t.isArray(e)?e.slice():[],this._selectTargetMap=t.reduce(e||[],(function(t,e){return t.set(e.name,e),t}),t.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};return Kct=e,Kct}function vgt(){if(tgt)return $ct;function t(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){var n=e();return n.indexOfName(t)>=0},this.indexOfName=function(e){var n=t();return n.indexOfName(e)},this.getItemVisual=function(e,n){var i=t();return i.getItemVisual(e,n)}}tgt=1;var e=t;return $ct=e,$ct}function _gt(){if(ngt)return egt;ngt=1;var t=mH,e=mgt(),n=bH,i=Z2,r=F7(),o=r.getPercentWithPrecision,s=ygt(),a=Yit,l=a.retrieveRawAttr,h=$tt,u=h.makeSeriesEncodeForNameBased,c=vgt(),g=t.extendSeriesModel({type:"series.pie",init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new c(n.bind(this.getData,this),n.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){g.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,i){return e(this,{coordDimensions:["value"],encodeDefaulter:n.curry(u,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i0&&(c?"scale"!==g:"transition"!==d)){for(var p=a.getItemLayout(0),m=1;isNaN(p.startAngle)&&m=i.r0}}}),l=a;return igt=l,igt}function Igt(){if(sgt)return ogt;sgt=1;var t=mH,e=bH;function n(n,i){e.each(i,(function(e){e.update="updateView",t.registerAction(e,(function(t,i){var r={};return i.eachComponent({mainType:"series",subType:n,query:t},(function(n){n[e.method]&&n[e.method](t.name,t.dataIndex);var i=n.getData();i.each((function(t){var e=i.getName(t);r[e]=n.isSelected(e)||!1}))})),{name:t.name,selected:r,seriesId:t.seriesId}}))}))}return ogt=n,ogt}function wgt(){if(lgt)return agt;lgt=1;var t=bH,e=t.createHashMap;function n(t){return{getTargetSeries:function(n){var i={},r=e();return n.eachSeriesByType(t,(function(t){t.__paletteScope=i,r.set(t.uid,t)})),r},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(e){var o,s=i[e],a=null!=s&&r.getItemVisual(s,"color",!0),l=null!=s&&r.getItemVisual(s,"borderColor",!0);if((!a||!l)&&(o=n.getItemModel(e)),!a){var h=o.get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());null!=s&&r.setItemVisual(s,"color",h)}if(!l){var u=o.get("itemStyle.borderColor");null!=s&&r.setItemVisual(s,"borderColor",u)}}))}}}return agt=n,agt}function Cgt(){if(ugt)return hgt;ugt=1;var t=DJ,e=F7(),n=e.parsePercent,i=Math.PI/180;function r(t,e,n,i,r,o,s,a,l,h){function u(e,n,i,r){for(var o=e;ol+s);o++)if(t[o].y+=i,o>e&&o+1t[o].y+t[o].height)return void c(o,i/2);c(n-1,i/2)}function c(e,n){for(var i=e;i>=0&&!(t[i].y-n0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function g(t,e,n,i,r,o){for(var s=e?Number.MAX_VALUE:0,a=0,l=t.length;a=s&&(g=s-10),!e&&g<=s&&(g=s+10),t[a].x=n+g*o,s=g}}t.sort((function(t,e){return t.y-e.y}));for(var d,f=0,A=t.length,p=[],m=[],y=0;y=n?m.push(t[y]):p.push(t[y]);g(p,!1,e,n,i,r),g(m,!0,e,n,i,r)}function o(e,n,i,o,a,l,h,u){for(var c=[],g=[],d=Number.MAX_VALUE,f=-Number.MAX_VALUE,A=0;A0?"right":"left":T>0?"left":"right"}var G,j=h.get("rotate");G="number"==typeof j?j*(Math.PI/180):j?T<0?-M+Math.PI:-M:0,f=!!G,o.label={x:E,y:b,position:p,height:k.height,len:w,len2:C,linePoints:S,textAlign:B,verticalAlign:"middle",rotation:G,inside:L,labelDistance:m,labelAlignTo:y,labelMargin:v,bleedMargin:_,textRect:k,text:R,font:x},L||d.push(o.label)}})),!f&&e.get("avoidLabelOverlap")&&o(d,u,c,r,s,a,l,h)}return hgt=a,hgt}function Egt(){if(ggt)return cgt;ggt=1;var t=F7(),e=t.parsePercent,n=t.linearMap,i=Q7,r=Cgt(),o=bH,s=2*Math.PI,a=Math.PI/180;function l(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function h(t,i,h,u){i.eachSeriesByType(t,(function(t){var i=t.getData(),u=i.mapDimension("value"),c=l(t,h),g=t.get("center"),d=t.get("radius");o.isArray(d)||(d=[0,d]),o.isArray(g)||(g=[g,g]);var f=e(c.width,h.getWidth()),A=e(c.height,h.getHeight()),p=Math.min(f,A),m=e(g[0],f)+c.x,y=e(g[1],A)+c.y,v=e(d[0],p/2),_=e(d[1],p/2),x=-t.get("startAngle")*a,I=t.get("minAngle")*a,w=0;i.each(u,(function(t){!isNaN(t)&&w++}));var C=i.getSum(u),E=Math.PI/(C||w)*2,b=t.get("clockwise"),S=t.get("roseType"),B=t.get("stillShowZeroSum"),M=i.getDataExtent(u);M[0]=0;var T=s,D=0,R=x,k=b?1:-1;if(i.each(u,(function(t,e){var r;if(isNaN(t))i.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:m,cy:y,r0:v,r:S?NaN:_,viewRect:c});else{r="area"!==S?0===C&&B?E:t*E:s/w,r=0;a--){var l=2*a,h=i[l]-o/2,u=i[l+1]-s/2;if(t>=h&&e>=u&&t<=h+o&&e<=u+s)return a}return-1}});function s(){this.group=new t.Group}var a=s.prototype;a.isPersistent=function(){return!this._incremental},a.updateData=function(t,e){this.group.removeAll();var n=new o({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},a.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new i({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new o,this._incremental.addDisplayable(i,!0)):(i=new o({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},a._setCommon=function(t,e,i,o){var s=e.hostModel;o=o||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=o.clipShape||null,t.symbolProxy=n(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]=0&&(t.dataIndex=n+(t.startIndex||0))})))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var l=s;return Rgt=l,Rgt}function Fgt(){if(Lgt)return Qgt;Lgt=1;var t=mH,e=aut(),n=zgt(),i=Tut();return t.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=i().reset(t);o.progress&&o.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,i){var r=this._symbolDraw,o=i.pipelineContext,s=o.large;return(!r||s!==this._isLargeDraw)&&(r&&r.remove(),r=this._symbolDraw=s?new n:new e,this._isLargeDraw=s,this.group.removeAll()),this.group.add(r.group),r},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),Qgt}function Ogt(){if(Pgt)return Tgt;Pgt=1;var t=mH;Dgt(),Fgt();var e=Mut(),n=Tut();return bct(),t.registerVisual(e("scatter","circle")),t.registerLayout(n("scatter")),Tgt}var Ngt,Ggt,jgt,Ugt,qgt,Vgt,Hgt,Ygt,Wgt,Xgt,Zgt,Kgt,Jgt,$gt,tdt,edt,ndt,idt,rdt={},odt={};function sdt(){if(Ggt)return Ngt;Ggt=1;var t=bH,e=Yht();function n(t,n,i){e.call(this,t,n,i),this.type="value",this.angle=0,this.name="",this.model}t.inherits(n,e);var i=n;return Ngt=i,Ngt}function adt(){if(Ugt)return jgt;Ugt=1;var t=bH,e=sdt(),n=ght(),i=F7(),r=Eht(),o=r.getScaleExtent,s=r.niceScaleExtent,a=Xnt,l=Cht();function h(i,r,o){this._model=i,this.dimensions=[],this._indicatorAxes=t.map(i.getIndicatorModels(),(function(t,i){var r="indicator_"+i,o=new e(r,"log"===t.get("axisType")?new l:new n);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(r),o}),this),this.resize(i,o),this.cx,this.cy,this.r,this.r0,this.startAngle}h.prototype.getIndicatorAxes=function(){return this._indicatorAxes},h.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},h.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[r,o]},h.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),s=1/0,a=-1,l=0;ln[0]&&isFinite(A)&&isFinite(n[0]))}else{var d=a.getTicks().length-1;d>l&&(g=h(g));var f=Math.ceil(n[1]/g)*g,A=i.round(f-g*l);a.setExtent(A,f),a.setInterval(g)}}))},h.dimensions=[],h.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new h(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},a.register("radar",h);var u=h;return jgt=u,jgt}function ldt(){if(Vgt)return qgt;Vgt=1;var t=mH,e=bH,n=Jut(),i=b7,r=bht(),o=n.valueAxis;function s(t,n){return e.defaults({show:n},t)}var a=t.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),o=this.get("scale"),s=this.get("axisLine"),a=this.get("axisTick"),l=this.get("axisType"),h=this.get("axisLabel"),u=this.get("name"),c=this.get("name.show"),g=this.get("name.formatter"),d=this.get("nameGap"),f=this.get("triggerEvent"),A=e.map(this.get("indicator")||[],(function(A){null!=A.max&&A.max>0&&!A.min?A.min=0:null!=A.min&&A.min<0&&!A.max&&(A.max=0);var p=u;if(null!=A.color&&(p=e.defaults({color:A.color},u)),A=e.merge(e.clone(A),{boundaryGap:t,splitNumber:n,scale:o,axisLine:s,axisTick:a,axisType:l,axisLabel:h,name:A.text,nameLocation:"end",nameGap:d,nameTextStyle:p,triggerEvent:f},!1),c||(A.name=""),"string"==typeof g){var m=A.name;A.name=g.replace("{value}",null!=m?m:"")}else"function"==typeof g&&(A.name=g(A.name,A));var y=e.extend(new i(A,null,this.ecModel),r);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return A}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:e.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:s(o.axisLabel,!1),axisTick:s(o.axisTick,!1),axisType:"interval",splitLine:s(o.splitLine,!0),splitArea:s(o.splitArea,!0),indicator:[]}}),l=a;return qgt=l,qgt}function hdt(){if(Ygt)return Hgt;Ygt=1;var t=mH,e=bH,n=act(),i=H1,r=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),s=e.map(o,(function(t){var e=new n(t.model,{position:[i.cx,i.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return e}));e.each(s,(function(t){e.each(r,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var n=t.coordinateSystem,r=n.getIndicatorAxes();if(r.length){var o=t.get("shape"),s=t.getModel("splitLine"),a=t.getModel("splitArea"),l=s.getModel("lineStyle"),h=a.getModel("areaStyle"),u=s.get("show"),c=a.get("show"),g=l.get("color"),d=h.get("color");g=e.isArray(g)?g:[g],d=e.isArray(d)?d:[d];var f=[],A=[];if("circle"===o)for(var p=r[0].getTicksCoords(),m=n.cx,y=n.cy,v=0;v":"\n";return r(""===h?this.name:h)+u+n.map(l,(function(e,n){var i=s.get(s.mapDimension(e.dim),t);return r(e.name+" : "+i)})).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,r=e.getValues(n.map(i.dimensions,(function(t){return e.mapDimension(t)})),t,!0),o=0,s=r.length;o":"\n";return u.join(", ")+f+r(l+" : "+a)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});t.mixin(g,s);var d=g;return Tdt=d,Tdt}var Gdt,jdt,Udt,qdt={};function Vdt(){if(Gdt)return qdt;Gdt=1;var t=mH,e="\0_ec_interaction_mutex";function n(t,e,n){var i=o(t);i[e]=n}function i(t,e,n){var i=o(t),r=i[e];r===n&&(i[e]=null)}function r(t,e){return!!o(t)[e]}function o(t){return t[e]||(t[e]={})}return t.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),qdt.take=n,qdt.release=i,qdt.isTaken=r,qdt}function Hdt(){if(Udt)return jdt;Udt=1;var t=bH,e=aW,n=lW,i=Vdt();function r(n){this.pointerChecker,this._zr=n,this._opt={};var i=t.bind,r=i(o,this),u=i(s,this),c=i(a,this),g=i(l,this),d=i(h,this);e.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,i){this.disable(),this._opt=t.defaults(t.clone(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(!0===e||"move"===e||"pan"===e)&&(n.on("mousedown",r),n.on("mousemove",u),n.on("mouseup",c)),(!0===e||"scale"===e||"zoom"===e)&&(n.on("mousewheel",g),n.on("pinch",d))},this.disable=function(){n.off("mousedown",r),n.off("mousemove",u),n.off("mouseup",c),n.off("mousewheel",g),n.off("pinch",d)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function o(t){if(!(n.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function s(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!i.isTaken(this._zr,"globalPan")){var e=t.offsetX,r=t.offsetY,o=this._x,s=this._y,a=e-o,l=r-s;this._x=e,this._y=r,this._opt.preventDefaultMouseMove&&n.stop(t.event),c(this,"pan","moveOnMouseMove",t,{dx:a,dy:l,oldX:o,oldY:s,newX:e,newY:r})}}function a(t){n.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function l(t){var e=g("zoomOnMouseWheel",t,this._opt),n=g("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,s=t.offsetY;if(0!==i&&(e||n)){if(e){var a=r>3?1.4:r>1?1.2:1.1,l=i>0?a:1/a;u(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:s})}if(n){var h=Math.abs(i),c=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);u(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:s})}}}function h(t){if(!i.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;u(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function u(t,e,i,r,o){t.pointerChecker&&t.pointerChecker(r,o.originX,o.originY)&&(n.stop(r.event),c(t,e,i,r,o))}function c(e,n,i,r,o){o.isAvailableBehavior=t.bind(g,null,i,r),e.trigger(n,o)}function g(e,n,i){var r=i[e];return!e||r&&(!t.isString(r)||n.event[r+"Key"])}t.mixin(r,e);var d=r;return jdt=d,jdt}var Ydt,Wdt={};function Xdt(){if(Ydt)return Wdt;function t(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()}function e(t,e,n,i){var r=t.target,o=t.zoomLimit,s=r.position,a=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var h=o.min||0,u=o.max||1/0;l=Math.max(Math.min(u,l),h)}var c=l/t.zoom;t.zoom=l,s[0]-=(n-s[0])*(c-1),s[1]-=(i-s[1])*(c-1),a[0]*=c,a[1]*=c,r.dirty()}return Ydt=1,Wdt.updateViewOnPan=t,Wdt.updateViewOnZoom=e,Wdt}var Zdt,Kdt,Jdt,$dt,tft,eft={};function nft(){if(Zdt)return eft;Zdt=1;var t={axisPointer:1,tooltip:1,brush:1};function e(e,n,i){var r=n.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==i&&!t[r.mainType]&&o&&o.model!==i}return eft.onIrrelevantElement=e,eft}function ift(){if(Jdt)return Kdt;Jdt=1;var t=bH,e=Hdt(),n=Xdt(),i=nft(),r=i.onIrrelevantElement,o=H1,s=Odt(),a=S7,l=a.getUID,h=RX;function u(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function c(e,n,i,r,o){i.off("click"),i.off("mousedown"),n.get("selectedMode")&&(i.on("mousedown",(function(){e._mouseDownFlag=!0})),i.on("click",(function(s){if(e._mouseDownFlag){e._mouseDownFlag=!1;for(var a=s.target;!a.__regions;)a=a.parent;if(a){var l={type:("geo"===n.mainType?"geo":"map")+"ToggleSelect",batch:t.map(a.__regions,(function(t){return{name:t.name,from:o.uid}}))};l[n.mainType+"Id"]=n.id,r.dispatchAction(l),g(n,i)}}})))}function g(e,n){n.eachChild((function(n){t.each(n.__regions,(function(t){n.trigger(e.isSelected(t.name)?"emphasis":"normal")}))}))}function d(t,n){var i=new o.Group;this.uid=l("ec_map_draw"),this._controller=new e(t.getZr()),this._controllerHost={target:n?i:null},this.group=i,this._updateGroup=n,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new o.Group),i.add(this._backgroundGroup=new o.Group)}d.prototype={constructor:d,draw:function(e,n,i,r,s){var a="geo"===e.mainType,l=e.getData&&e.getData();a&&n.eachComponent({mainType:"series",subType:"map"},(function(t){!l&&t.getHostGeoModel()===e&&(l=t.getData())}));var d=e.coordinateSystem;this._updateBackground(d);var f,A=this._regionsGroup,p=this.group,m=d.getTransformInfo(),y=!A.childAt(0)||s;if(y)p.transform=m.roamTransform,p.decomposeTransform(),p.dirty();else{var v=new h;v.transform=m.roamTransform,v.decomposeTransform();var _={scale:v.scale,position:v.position};f=v.scale,o.updateProps(p,_,e)}var x=m.rawScale,I=m.rawPosition;A.removeAll();var w=["itemStyle"],C=["emphasis","itemStyle"],E=["label"],b=["emphasis","label"],S=t.createHashMap();t.each(d.regions,(function(n){var i=S.get(n.name)||S.set(n.name,new o.Group),r=new o.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(r);var s,h=e.getRegionModel(n.name)||e,c=h.getModel(w),g=h.getModel(C),d=u(c),m=u(g),v=h.getModel(E),_=h.getModel(b);if(l){s=l.indexOfName(n.name);var B=l.getItemVisual(s,"color",!0);B&&(d.fill=B)}var M=function(t){return[t[0]*x[0]+I[0],t[1]*x[1]+I[1]]};t.each(n.geometries,(function(t){if("polygon"===t.type){for(var e=[],n=0;n=0)&&(L=e);var Q=new o.Text({position:M(n.center.slice()),scale:[1/p.scale[0],1/p.scale[1]],z2:10,silent:!0});if(o.setLabelStyle(Q.style,Q.hoverStyle={},v,_,{labelFetcher:L,labelDataIndex:P,defaultText:n.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var z=[1/f[0],1/f[1]];o.updateProps(Q,{scale:z},e)}i.add(Q)}if(l)l.setItemGraphicEl(s,i);else{h=e.getRegionModel(n.name);r.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:n.name,region:h&&h.option||{}}}var F=i.__regions||(i.__regions=[]);F.push(n),i.highDownSilentOnTouch=!!e.get("selectedMode"),o.setHoverStyle(i,m),A.add(i)})),this._updateController(e,n,i),c(this,e,A,i,r),g(e,A)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&s.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var n=e.map;this._mapName!==n&&t.each(s.makeGraphic(n,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=n},_updateController:function(e,i,o){var s=e.coordinateSystem,a=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=s.getZoom(),a.enable(e.get("roam")||!1);var h=e.mainType;function u(){var t={type:"geoRoam",componentType:h};return t[h+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,n.updateViewOnPan(l,e.dx,e.dy),o.dispatchAction(t.extend(u(),{dx:e.dx,dy:e.dy}))}),this),a.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,n.updateViewOnZoom(l,e.scale,e.originX,e.originY),o.dispatchAction(t.extend(u(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var i=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/i[0],1/i[1]])}))}}),this),a.setPointerChecker((function(t,n,i){return s.getViewRectAfterRoam().contain(n,i)&&!r(t,o,e)}))}};var f=d;return Kdt=f,Kdt}function rft(){if(tft)return $dt;tft=1;var t=mH,e=bH,n=H1,i=ift(),r="__seriesMapHighDown",o="__seriesMapCallKey",s=t.extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){s=this._mapDraw||new i(n,!0);o.add(s.group),s.draw(t,e,n,this,r),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,i,s){var h=t.originalData,u=this.group;h.each(h.mapDimension("value"),(function(i,s){if(!isNaN(i)){var c=h.getItemLayout(s);if(c&&c.point){var g=c.point,d=c.offset,f=new n.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:g[0]+9*d,cy:g[1],r:3},silent:!0,z2:8+(d?0:n.Z2_EMPHASIS_LIFT+1)});if(!d){var A=t.mainSeries.getData(),p=h.getName(s),m=A.indexOfName(p),y=h.getItemModel(s),v=y.getModel("label"),_=y.getModel("emphasis.label"),x=A.getItemGraphicEl(m),I=e.retrieve2(t.getFormattedLabel(m,"normal"),p),w=e.retrieve2(t.getFormattedLabel(m,"emphasis"),I),C=x[r],E=Math.random();if(!C){C=x[r]={};var b=e.curry(a,!0),S=e.curry(a,!1);x.on("mouseover",b).on("mouseout",S).on("emphasis",b).on("normal",S)}x[o]=E,e.extend(C,{recordVersion:E,circle:f,labelModel:v,hoverLabelModel:_,emphasisText:w,normalText:I}),l(C,!1)}u.add(f)}}}))}});function a(t){var e=this[r];e&&e.recordVersion===this[o]&&l(e,t)}function l(t,e){var i=t.circle,r=t.labelModel,o=t.hoverLabelModel,s=t.emphasisText,a=t.normalText;e?(i.style.extendFrom(n.setTextStyle({},o,{text:o.get("show")?s:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=n.Z2_EMPHASIS_LIFT):(n.setTextStyle(i.style,r,{text:r.get("show")?a:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}return $dt=s,$dt}var oft,sft,aft,lft,hft,uft,cft,gft,dft,fft,Aft,pft,mft,yft,vft,_ft,xft,Ift={},wft={};function Cft(){if(oft)return wft;function t(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,s=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){s[0]-=e.dx,s[1]-=e.dy;r=t.pointToData(s);t.setCenter(r)}if(null!=o){if(n){var a=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),a)/i}t.scale[0]*=o,t.scale[1]*=o;var h=t.position,u=(e.originX-h[0])*(o-1),c=(e.originY-h[1])*(o-1);h[0]-=u,h[1]-=c,t.updateTransform();r=t.pointToData(s);t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}return oft=1,wft.updateCenterAndZoom=t,wft}function Eft(){if(sft)return Ift;sft=1;var t=mH,e=bH,n=Cft(),i=n.updateCenterAndZoom;return t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},(function(n){var o=n.coordinateSystem;if("geo"===o.type){var s=i(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom),"series"===r&&e.each(n.seriesGroup,(function(t){t.setCenter(s.center),t.setZoom(s.zoom)}))}}))})),Ift}function bft(){if(lft)return aft;lft=1;var t=bH,e=EY,n=uX,i=EK,r=RX,o=e.applyTransform;function s(){r.call(this)}function a(t){this.name=t,this.zoomLimit,r.call(this),this._roamTransformable=new s,this._rawTransformable=new s,this._center,this._zoom}function l(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}t.mixin(s,r),a.prototype={constructor:a,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,r){return this._rect=new i(t,e,n,r),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,r){this.transformTo(t,e,n,r),this._viewRect=new i(t,e,n,r)},transformTo:function(t,e,n,r){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new i(t,e,n,r)),s.decomposeTransform(),this._updateTransform()},setCenter:function(t){!t||(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=e.applyTransform([],r,t),i=e.applyTransform([],i,t),n.origin=r,n.position=[i[0]-r[0],i[1]-r[1]],n.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),n.copy(this.transform||(this.transform=[]),e.transform||n.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],n.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,i=this._rawTransformable;return{roamTransform:e?t.slice(e):n.create(),rawScale:t.slice(i.scale),rawPosition:t.slice(i.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,n,i){var r=n?this._rawTransform:this.transform;return i=i||[],r?o(i,t,r):e.copy(i,t)},pointToData:function(t){var e=this.invTransform;return e?o([],t,e):[t[0],t[1]]},convertToPixel:t.curry(l,"dataToPoint"),convertFromPixel:t.curry(l,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},t.mixin(a,r);var h=a;return aft=h,aft}function Sft(){if(uft)return hft;uft=1;var t=bH,e=EK,n=bft(),i=Odt();function r(t,e,r,o){n.call(this,t),this.map=e;var s=i.load(e,r);this._nameCoordMap=s.nameCoordMap,this._regionsMap=s.regionsMap,this._invertLongitute=null==o||o,this.regions=s.regions,this._rect=s.boundingRect}function o(t,e,n,i){var r=n.geoModel,o=n.seriesModel,s=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return s===this?s[t](i):null}r.prototype={constructor:r,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n1?(A.width=u,A.height=u/d):(A.height=u,A.width=u*d),A.y=h[1]-A.height/2,A.x=h[0]-A.width/2}else a=t.getBoxLayoutParams(),a.aspect=d,A=i.getLayoutRect(a,{width:c,height:g});this.setViewRect(A.x,A.y,A.width,A.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function l(t,n){e.each(n.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var h={dimensions:n.prototype.dimensions,create:function(t,i){var r=[];t.eachComponent("geo",(function(t,e){var o=t.get("map"),h=t.get("aspectScale"),u=!0,c=s.retrieveMap(o);c&&c[0]&&"svg"===c[0].type?(null==h&&(h=1),u=!1):null==h&&(h=.75);var g=new n(o+e,o,t.get("nameMap"),u);g.aspectScale=h,g.zoomLimit=t.get("scaleLimit"),r.push(g),l(g,t),t.coordinateSystem=g,g.model=t,g.resize=a,g.resize(t,i)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=r[n]}}));var o={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();o[e]=o[e]||[],o[e].push(t)}})),e.each(o,(function(t,o){var s=e.map(t,(function(t){return t.get("nameMap")})),h=new n(o,o,e.mergeAll(s));h.zoomLimit=e.retrieve.apply(null,e.map(t,(function(t){return t.get("scaleLimit")}))),r.push(h),h.resize=a,h.aspectScale=t[0].get("aspectScale"),h.resize(t[0],i),e.each(t,(function(t){t.coordinateSystem=h,l(h,t)}))})),r},getFilledRegions:function(t,n,i){for(var r=(t||[]).slice(),s=e.createHashMap(),a=0;ae&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},o.prototype={constructor:o,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;nl&&(l=t.depth)}));var h=t.expandAndCollapse,u=h&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return s.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=u})),s.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],r=e.getNodeByDataIndex(t),o=r.getValue(),s=r.name;r&&r!==n;)s=r.parentNode.name+"."+s,r=r.parentNode;return i(s+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});return Fft=o,Fft}var qft,Vft,Hft,Yft={};function Wft(){if(qft)return Yft;qft=1;var t=Q7;function e(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(s)}}function n(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){a(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=l(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function i(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function r(t){return arguments.length?t:d}function o(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function s(e,n){return t.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function a(t){for(var e=t.children,n=e.length,i=0,r=0;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function l(t,e,n,i){if(e){for(var r=t,o=t,s=o.parentNode.children[0],a=e,l=r.hierNode.modifier,d=o.hierNode.modifier,f=s.hierNode.modifier,A=a.hierNode.modifier;a=h(a),o=u(o),a&&o;){r=h(r),s=u(s),r.hierNode.ancestor=t;var p=a.hierNode.prelim+A-o.hierNode.prelim-d+i(a,o);p>0&&(g(c(a,t,n),t,p),d+=p,l+=p),A+=a.hierNode.modifier,d+=o.hierNode.modifier,l+=r.hierNode.modifier,f+=s.hierNode.modifier}a&&!h(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=A-l),o&&!u(s)&&(s.hierNode.thread=o,s.hierNode.modifier+=d-f,n=t)}return n}function h(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function u(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function c(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function g(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function d(t,e){return t.parentNode===e.parentNode?1:2}return Yft.init=e,Yft.firstWalk=n,Yft.secondWalk=i,Yft.separation=r,Yft.radialCoordinate=o,Yft.getViewRect=s,Yft}function Xft(){if(Hft)return Vft;Hft=1;var t=bH,e=H1,n=sut(),i=Wft(),r=i.radialCoordinate,o=mH,s=w3(),a=bft(),l=Xdt(),h=Hdt(),u=nft(),c=u.onIrrelevantElement,g=F7(),d=g.parsePercent,f=e.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],s=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var a=e.orient,l="TB"===a||"BT"===a?0:1,h=1-l,u=d(e.forkPosition,1),c=[];c[l]=r[l],c[h]=r[h]+(s[h]-r[h])*u,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=s[l],t.lineTo(c[0],c[1]),t.lineTo(s[0],s[1]);for(var g=1;gw.x,x||(_-=Math.PI));var b=x?"left":"right",S=a.labelModel.get("rotate"),B=S*(Math.PI/180);y.setStyle({textPosition:a.labelModel.get("position")||b,textRotation:null==S?-_:B,textOrigin:"center",verticalAlign:"middle"})}v(s,h,c,r,A,f,p,o,a)}function v(n,i,r,o,s,a,l,h,u){var c=u.edgeShape,g=o.__edge;if("curve"===c)i.parentNode&&i.parentNode!==r&&(g||(g=o.__edge=new e.BezierCurve({shape:x(u,s,s),style:t.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),e.updateProps(g,{shape:x(u,a,l),style:t.defaults({opacity:1},u.lineStyle)},n));else if("polyline"===c&&"orthogonal"===u.layout&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var d=i.children,A=[],p=0;p=0;o--)i.push(r[o])}}return $ft=1,iAt.eachAfter=t,iAt.eachBefore=e,iAt}function oAt(){if(eAt)return tAt;eAt=1;var t=rAt(),e=t.eachAfter,n=t.eachBefore,i=Wft(),r=i.init,o=i.firstWalk,s=i.secondWalk,a=i.separation,l=i.radialCoordinate,h=i.getViewRect;function u(t,e){t.eachSeriesByType("tree",(function(t){c(t,e)}))}function c(t,i){var u=h(t,i);t.layoutInfo=u;var c=t.get("layout"),g=0,d=0,f=null;"radial"===c?(g=2*Math.PI,d=Math.min(u.height,u.width)/2,f=a((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(g=u.width,d=u.height,f=a());var A=t.getData().tree.root,p=A.children[0];if(p){r(A),e(p,o,f),A.hierNode.modifier=-p.hierNode.prelim,n(p,s);var m=p,y=p,v=p;n(p,(function(t){var e=t.getLayout().x;ey.getLayout().x&&(y=t),t.depth>v.depth&&(v=t)}));var _=m===y?1:f(m,y)/2,x=_-m.getLayout().x,I=0,w=0,C=0,E=0;if("radial"===c)I=g/(y.getLayout().x+_+x),w=d/(v.depth-1||1),n(p,(function(t){C=(t.getLayout().x+x)*I,E=(t.depth-1)*w;var e=l(C,E);t.setLayout({x:e.x,y:e.y,rawX:C,rawY:E},!0)}));else{var b=t.getOrient();"RL"===b||"LR"===b?(w=d/(y.getLayout().x+_+x),I=g/(v.depth-1||1),n(p,(function(t){E=(t.getLayout().x+x)*w,C="LR"===b?(t.depth-1)*I:g-(t.depth-1)*I,t.setLayout({x:C,y:E},!0)}))):("TB"===b||"BT"===b)&&(I=g/(y.getLayout().x+_+x),w=d/(v.depth-1||1),n(p,(function(t){C=(t.getLayout().x+x)*I,E="TB"===b?(t.depth-1)*w:d-(t.depth-1)*w,t.setLayout({x:C,y:E},!0)})))}}}return tAt=u,tAt}function sAt(){if(nAt)return Nft;nAt=1;var t=mH;Uft(),Xft(),Jft();var e=Mut(),n=oAt();return t.registerVisual(e("tree","circle")),t.registerLayout(n),Nft}var aAt,lAt,hAt,uAt,cAt,gAt={},dAt={};function fAt(){if(aAt)return dAt;aAt=1;var t=bH;function e(e,n,i){if(e&&t.indexOf(n,e.type)>=0){var r=i.getData().tree.root,o=e.targetNode;if("string"==typeof o&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var s=e.targetNodeId;if(null!=s&&(o=r.getNodeById(s)))return{node:o}}}function n(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function i(e,i){var r=n(e);return t.indexOf(r,i)>=0}function r(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}return dAt.retrieveTargetInfo=e,dAt.getPathToRoot=n,dAt.aboveViewRoot=i,dAt.wrapTreePathInfo=r,dAt}function AAt(){if(hAt)return lAt;hAt=1;var t=bH,e=vot,n=jft(),i=b7,r=O7,o=r.encodeHTML,s=r.addCommas,a=fAt(),l=a.wrapTreePathInfo,h=e.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,r){var o={name:e.name,children:e.data};u(o);var s=e.levels||[],a=this.designatedVisualItemStyle={},l=new i({itemStyle:a},this,r);s=e.levels=c(s,r);var h=t.map(s||[],(function(t){return new i(t,l,r)}),this),g=n.createTree(o,this,d);function d(t){t.wrapMethod("getItemModel",(function(t,e){var n=g.getNodeByDataIndex(e),i=h[n.depth];return t.parentModel=i||l,t}))}return g.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var n=this.getData(),i=this.getRawValue(e),r=t.isArray(i)?s(i[0]):s(i),a=n.getName(e);return o(a+": "+r)},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=l(i,this),n},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},t.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=t.createHashMap(),this._idIndexMapCount=0);var i=n.get(e);return null==i&&n.set(e,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;(!t||t!==e&&!e.contains(t))&&(this._viewRoot=e)}});function u(e){var n=0;t.each(e.children,(function(e){u(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i}));var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}function c(e,n){var r=n.get("color");if(r){var o;if(e=e||[],t.each(e,(function(t){var e=new i(t),n=e.get("color");(e.get("itemStyle.color")||n&&"none"!==n)&&(o=!0)})),!o){var s=e[0]||(e[0]={});s.color=r.slice()}return e}}return lAt=h,lAt}function pAt(){if(cAt)return uAt;cAt=1;var t=H1,e=Q7,n=bH,i=fAt(),r=i.wrapTreePathInfo,o=8,s=8,a=5;function l(e){this.group=new t.Group,e.add(this.group)}function h(t,e,n,i,r,o){var s=[[r?t:t-a,e],[t+n,e],[t+n,e+i],[r?t:t-a,e+i]];return!o&&s.splice(2,0,[t+n+a,e+i/2]),!r&&s.push([t,e+i/2]),s}function u(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&r(n,e)}}l.prototype={constructor:l,render:function(t,n,i,r){var o=t.getModel("breadcrumb"),s=this.group;if(s.removeAll(),o.get("show")&&i){var a=o.getModel("itemStyle"),l=a.getModel("textStyle"),h={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,h,l),this._renderContent(t,h,a,l,r),e.positionElement(s,h.pos,h.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),a=n.getTextRect(r),l=Math.max(a.width+2*o,e.emptyItemWidth);e.totalWidth+=l+s,e.renderList.push({node:i,text:r,width:l})}},_renderContent:function(i,r,o,a,l){for(var c=0,g=r.emptyItemWidth,d=i.get("breadcrumb.height"),f=e.getAvailableSize(r.pos,r.box),A=r.totalWidth,p=r.renderList,m=p.length-1;m>=0;m--){var y=p[m],v=y.node,_=y.width,x=y.text;A>f.width&&(A-=_-g,_=g,x=null);var I=new t.Polygon({shape:{points:h(c,0,_,d,m===p.length-1,0===m)},style:n.defaults(o.getItemStyle(),{lineJoin:"bevel",text:x,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:n.curry(l,v)});this.group.add(I),u(I,i,v),c+=_+s}},remove:function(){this.group.removeAll()}};var c=l;return uAt=c,uAt}var mAt,yAt,vAt,_At={};function xAt(){if(mAt)return _At;mAt=1;var t=bH;function e(){var e,n=[],i={};return{add:function(e,r,o,s,a){return t.isString(s)&&(a=s,s=0),!i[e.id]&&(i[e.id]=1,n.push({el:e,target:r,time:o,delay:s,easing:a}),!0)},done:function(t){return e=t,this},start:function(){for(var t=n.length,r=0,o=n.length;rm||Math.abs(t.dy)>m)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new a(r.x,r.y,r.width,r.height),s=this.seriesModel.layoutInfo;e-=s.x,n-=s.y;var h=l.create();l.translate(h,h,[-e,-n]),l.scale(h,h,[t.scale,t.scale]),l.translate(h,h,[e,n]),o.applyTransform(h),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),s=r.get("target",!0)||"blank";o&&g(o,s)}}}}}),this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(r.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(t,e,n.node,d(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=B(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),s=r.shape;if(!(s.x<=o[0]&&o[0]<=s.x+s.width&&s.y<=o[1]&&o[1]<=s.y+s.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n}});function B(){return{nodeGroup:[],background:[],content:[]}}function M(t,i,r,o,s,a,l,h,u,c){if(l){var g=l.getLayout(),d=t.getData();if(d.setItemGraphicEl(l.dataIndex,null),g&&g.isInView){var p=g.width,m=g.height,I=g.borderWidth,S=g.invisible,B=l.getRawIndex(),M=h&&h.getRawIndex(),D=l.viewChildren,R=g.upperHeight,k=D&&D.length,L=l.getModel("itemStyle"),P=l.getModel("emphasis.itemStyle"),Q=V("nodeGroup",f);if(Q){if(u.add(Q),Q.attr("position",[g.x||0,g.y||0]),Q.__tmNodeWidth=p,Q.__tmNodeHeight=m,g.isAboveViewRoot)return Q;var z=l.getModel(),F=V("background",A,c,w);if(F&&N(Q,F,k&&g.upperLabelHeight),k)n.isHighDownDispatcher(Q)&&n.setAsHighDownDispatcher(Q,!1),F&&(n.setAsHighDownDispatcher(F,!0),d.setItemGraphicEl(l.dataIndex,F));else{var O=V("content",A,c,C);O&&G(Q,O),F&&n.isHighDownDispatcher(F)&&n.setAsHighDownDispatcher(F,!1),n.setAsHighDownDispatcher(Q,!0),d.setItemGraphicEl(l.dataIndex,Q)}return Q}}}function N(e,i,r){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:p,height:m}),S)j(i);else{i.invisible=!1;var o=l.getVisual("borderColor",!0),s=P.get("borderColor"),a=b(L);a.fill=o;var h=E(P);if(h.fill=s,r){var u=p-2*I;U(a,h,o,u,R,{x:I,y:0,width:u,height:R})}else a.text=h.text=null;i.setStyle(a),n.setElementHoverStyle(i,h)}e.add(i)}function G(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*I,0),o=Math.max(m-2*I,0);if(i.culling=!0,i.setShape({x:I,y:I,width:r,height:o}),S)j(i);else{i.invisible=!1;var s=l.getVisual("color",!0),a=b(L);a.fill=s;var h=E(P);U(a,h,s,r,o),i.setStyle(a),n.setElementHoverStyle(i,h)}e.add(i)}function j(t){!t.invisible&&a.push(t)}function U(i,r,o,s,a,h){var u=z.get("name"),c=z.getModel(h?_:y),d=z.getModel(h?x:v),f=c.getShallow("show");n.setLabelStyle(i,r,c,d,{defaultText:f?u:null,autoColor:o,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:h?"upperLabel":"label"}),q(i,h,g),q(r,h,g),h&&(i.textRect=e.clone(h)),i.truncate=f&&c.get("ellipsis")?{outerWidth:s,outerHeight:a,minChar:2}:null}function q(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,e,n,o){var a=null!=M&&r[t][M],l=s[t];return a?(r[t][M]=null,H(l,a,t)):S||(a=new e({z:T(n,o)}),a.__tmDepth=n,a.__tmStorageName=t,Y(l,a,t)),i[t][B]=a}function H(t,n,i){var r=t[B]={};r.old="nodeGroup"===i?n.position.slice():e.extend({},n.shape)}function Y(t,e,n){var i=t[B]={},r=l.parentNode;if(r&&(!o||"drillDown"===o.direction)){var a=0,h=0,u=s.background[r.getRawIndex()];!o&&u&&u.old&&(a=u.old.width,h=u.old.height),i.old="nodeGroup"===n?[0,h]:{x:a,y:h,width:0,height:0}}i.fadein="nodeGroup"!==n}}function T(t,e){var n=t*I+e;return(n-1)/n}return yAt=S,yAt}var wAt,CAt,EAt,bAt,SAt,BAt,MAt,TAt,DAt={};function RAt(){if(wAt)return DAt;wAt=1;for(var t=mH,e=fAt(),n=function(){},i=["treemapZoomToNode","treemapRender","treemapMove"],r=0;r=0;l--)null==i[l]&&(delete o[n[l]],n.pop())}function c(e,n){var i=e.visual,o=[];t.isObject(i)?r(i,(function(t){o.push(t)})):null!=i&&o.push(i);var s={color:1,symbol:1};!n&&1===o.length&&!s.hasOwnProperty(e.type)&&(o[1]=o[0]),v(e,o)}function g(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:m([0,1])}}function d(t){var e=this.option.visual;return e[Math.round(i(t,[0,1],[0,e.length-1],!0))]||{}}function f(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function A(t){var e=this.option.visual;return e[this.option.loop&&t!==s?t%e.length:t]}function p(){return this.option.visual[0]}function m(t){return{linear:function(e){return i(e,t,this.option.visual,!0)},category:A,piecewise:function(e,n){var r=y.call(this,n);return null==r&&(r=i(e,t,this.option.visual,!0)),r},fixed:p}}function y(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=a.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function v(n,i){return n.visual=i,"color"===n.type&&(n.parsedVisual=t.map(i,(function(t){return e.parse(t)}))),i}var _={linear:function(t){return i(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=a.findPieceIndex(t,e,!0);if(null!=n)return i(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?s:e},fixed:t.noop};function x(t,e,n){return t?e<=n:e=i.length||t===i[t.depth]){var n=d(u,p,t,e,_,o);s(t,n,i,o)}}))}else f=l(p),t.setVisual("color",f)}}function a(t,e,i){var r=n.extend({},e),o=i.designatedVisualItemStyle;return n.each(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var i=t.get(n);o[n]=null,null!=i&&(r[n]=i)})),r}function l(t){var n=u(t,"color");if(n){var i=u(t,"colorAlpha"),r=u(t,"colorSaturation");return r&&(n=e.modifyHSL(n,null,null,r)),i&&(n=e.modifyAlpha(n,i)),n}}function h(t,n){return null!=n?e.modifyHSL(n,null,null,t):null}function u(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function c(e,n,i,r,o,s){if(s&&s.length){var a=g(n,"color")||null!=o.color&&"none"!==o.color&&(g(n,"colorAlpha")||g(n,"colorSaturation"));if(a){var l=n.get("visualMin"),h=n.get("visualMax"),u=i.dataExtent.slice();null!=l&&lu[1]&&(u[1]=h);var c=n.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new t(d);return f.__drColorMappingBy=c,f}}}function g(t,e){var n=t.get(e);return i(n)&&n.length?{name:e,range:n}:null}function d(t,e,i,r,o,s){var a=n.extend({},e);if(o){var l=o.type,h="color"===l&&o.__drColorMappingBy,u="index"===h?r:"id"===h?s.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));a[l]=o.mapValueToVisual(u)}return a}return bAt=o,bAt}function PAt(){if(MAt)return BAt;MAt=1;var t=bH,e=EK,n=F7(),i=n.parsePercent,r=n.MAX_SAFE_INTEGER,o=Q7,s=fAt(),a=Math.max,l=Math.min,h=t.retrieve,u=t.each,c=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],d=["upperLabel","show"],f=["upperLabel","height"],A={seriesType:"treemap",reset:function(n,r,a,l){var c=a.getWidth(),g=a.getHeight(),d=n.option,f=o.getLayoutRect(n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()}),A=d.size||[],m=i(h(f.width,A[0]),c),y=i(h(f.height,A[1]),g),v=l&&l.type,_=["treemapZoomToNode","treemapRootToNode"],x=s.retrieveTargetInfo(l,_,n),I="treemapRender"===v||"treemapMove"===v?l.rootRect:null,b=n.getViewRoot(),S=s.getPathToRoot(b);if("treemapMove"!==v){var B="treemapZoomToNode"===v?w(n,x,b,m,y):I?[I.width,I.height]:[m,y],M=d.sort;M&&"asc"!==M&&"desc"!==M&&(M="desc");var T={squareRatio:d.squareRatio,sort:M,leafDepth:d.leafDepth};b.hostTree.clearLayouts();var D={x:0,y:0,width:B[0],height:B[1],area:B[0]*B[1]};b.setLayout(D),p(b,T,!1,0);D=b.getLayout();u(S,(function(e,n){var i=(S[n+1]||b).getValue();e.setLayout(t.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},D))}))}var R=n.getData().tree.root;R.setLayout(C(f,I,x),!0),n.setLayoutInfo(f),E(R,new e(-f.x,-f.y,c,g),S,b,0)}};function p(t,e,n,i){var r,o;if(!t.isRemoved()){var s=t.getLayout();r=s.width,o=s.height;var h=t.getModel(),u=h.get(c),d=h.get(g)/2,f=b(h),A=Math.max(u,f),y=u-d,v=A-d;h=t.getModel();t.setLayout({borderWidth:u,upperHeight:A,upperLabelHeight:f},!0),r=a(r-2*y,0),o=a(o-y-v,0);var _=r*o,w=m(t,h,_,e,n,i);if(w.length){var C={x:y,y:v,width:r,height:o},E=l(r,o),S=1/0,B=[];B.area=0;for(var M=0,T=w.length;M=0;l--){var h=r["asc"===i?s-l-1:l].getValue();h/n*ea[1]&&(a[1]=e)}))}else a=[NaN,NaN];return{sum:i,dataExtent:a}}function x(t,e,n){for(var i,r=0,o=1/0,s=0,l=t.length;sr&&(r=i));var h=t.area*t.area,u=e*e*n;return h?a(u*r/h,h/(u*o)):1/0}function I(t,e,n,i,r){var o=e===n.width?0:1,s=1-o,h=["x","y"],u=["width","height"],c=n[h[o]],g=e?t.area/e:0;(r||g>n[u[s]])&&(g=n[u[s]]);for(var d=0,f=t.length;dr&&(u=r),s=l}u=0&&t.call(e,n[r],r)},o.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},o.breadthFirstTraverse=function(t,e,n,r){if(s.isInstance(e)||(e=this._nodesMap[i(e)]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};t.mixin(s,l("hostGraph","data")),t.mixin(a,l("hostGraph","edgeData")),r.Node=s,r.Edge=a,n(s),n(a);var h=r;return zAt=h,zAt}function UAt(){if(NAt)return OAt;NAt=1;var t=bH,e=Olt(),n=jAt(),i=Gft(),r=Glt(),o=Xnt,s=Zlt();function a(a,l,h,u,c){for(var g=new n(u),d=0;d "+v)),p++)}var _,x=h.get("coordinateSystem");if("cartesian2d"===x||"polar"===x)_=s(a,h);else{var I=o.get(x),w=I&&"view"!==I.type&&I.dimensions||[];t.indexOf(w,"value")<0&&w.concat(["value"]);var C=r(a,{coordDimensions:w});_=new e(C,h),_.initData(a)}var E=new e(["value"],h);return E.initData(A,f),c&&c(_,E),i({mainData:_,struct:g,structAttr:"graph",datas:{node:_,edge:E},datasAttr:{node:"data",edge:"edgeData"}}),g.update(),g}return OAt=a,OAt}var qAt,VAt,HAt,YAt,WAt,XAt,ZAt,KAt,JAt,$At={};function tpt(){if(qAt)return $At;qAt=1;var t=bH,e="--\x3e",n=function(t){return t.get("autoCurveness")||null},i=function(e,i){var r=n(e),o=20,s=[];if("number"==typeof r)o=r;else if(t.isArray(r))return void(e.__curvenessList=r);i>o&&(o=i);var a=o%2?o+2:o+3;s=[];for(var l=0;l ")),r.value&&(h+=" : "+a(r.value)),h}return d.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=n.map(this.option.categories||[],(function(t){return null!=t.value?t:n.extend({value:0},t)})),i=new e(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray((function(t){return i.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return d.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),f=d;return VAt=f,VAt}function npt(){if(WAt)return YAt;WAt=1;var t=H1,e=EY,n=t.Line.prototype,i=t.BezierCurve.prototype;function r(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var o=t.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[r(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:n.buildPath,_buildPathCurve:i.buildPath,pointAt:function(t){return this[r(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:n.pointAt,_pointAtCurve:i.pointAt,tangentAt:function(t){var n=this.shape,i=r(n)?[n.x2-n.x1,n.y2-n.y1]:this._tangentAtCurve(t);return e.normalize(i,i)},_tangentAtCurve:i.tangentAt});return YAt=o,YAt}function ipt(){if(ZAt)return XAt;ZAt=1;var t=bH,e=EY,n=Tht(),i=npt(),r=H1,o=F7(),s=o.round,a=["fromSymbol","toSymbol"];function l(t){return"_"+t+"Type"}function h(e,i,r){var o=i.getItemVisual(r,e);if(o&&"none"!==o){var s=i.getItemVisual(r,"color"),a=i.getItemVisual(r,e+"Size"),l=i.getItemVisual(r,e+"Rotate");t.isArray(a)||(a=[a,a]);var h=n.createSymbol(o,-a[0]/2,-a[1]/2,a[0],a[1],s);return h.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,h.name=e,h}}function u(t){var e=new i({name:"line",subPixelOptimize:!0});return c(e.shape,t),e}function c(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function g(){var t=this,n=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),r=t.childOfName("label");if(n||i||!r.ignore){for(var o=1,s=this.parent;s;)s.scale&&(o/=s.scale[0]),s=s.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var l=a.shape.percent,h=a.pointAt(0),u=a.pointAt(l),c=e.sub([],u,h);if(e.normalize(c,c),n){n.attr("position",h);var g=n.__specifiedRotation;if(null==g){var d=a.tangentAt(0);n.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0]))}else n.attr("rotation",g);n.attr("scale",[o*l,o*l])}if(i){i.attr("position",u);g=i.__specifiedRotation;if(null==g){d=a.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0]))}else i.attr("rotation",g);i.attr("scale",[o*l,o*l])}if(!r.ignore){r.attr("position",u);var f,A,p,m,y=r.__labelDistance,v=y[0]*o,_=y[1]*o,x=l/2,I=(d=a.tangentAt(x),[d[1],-d[0]]),w=a.pointAt(x);I[1]>0&&(I[0]=-I[0],I[1]=-I[1]);var C,E=d[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var b=-Math.atan2(d[1],d[0]);u[0].8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":f=[-c[0]*v+h[0],-c[1]*_+h[1]],A=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[v*E+h[0],h[1]+C],A=d[0]<0?"right":"left",m=[-v*E,-C];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[w[0],w[1]+C],A="center",m=[0,-C];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-v*E+u[0],u[1]+C],A=d[0]>=0?"right":"left",m=[v*E,-C];break}r.attr({style:{textVerticalAlign:r.__verticalAlign||p,textAlign:r.__textAlign||A},position:f,scale:[o,o],origin:m})}}}}function d(t,e,n){r.Group.call(this),this._createLine(t,e,n)}var f=d.prototype;f.beforeUpdate=g,f._createLine=function(e,n,i){var o=e.hostModel,s=e.getItemLayout(n),c=u(s);c.shape.percent=0,r.initProps(c,{shape:{percent:1}},o,n),this.add(c);var g=new r.Text({name:"label",lineLabelOriginalOpacity:1});this.add(g),t.each(a,(function(t){var i=h(t,e,n);this.add(i),this[l(t)]=e.getItemVisual(n,t)}),this),this._updateCommonStl(e,n,i)},f.updateData=function(e,n,i){var o=e.hostModel,s=this.childOfName("line"),u=e.getItemLayout(n),g={shape:{}};c(g.shape,u),r.updateProps(s,g,o,n),t.each(a,(function(t){var i=e.getItemVisual(n,t),r=l(t);if(this[r]!==i){this.remove(this.childOfName(t));var o=h(t,e,n);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,n,i)},f._updateCommonStl=function(e,n,i){var o=e.hostModel,l=this.childOfName("line"),h=i&&i.lineStyle,u=i&&i.hoverLineStyle,c=i&&i.labelModel,g=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var d=e.getItemModel(n);h=d.getModel("lineStyle").getLineStyle(),u=d.getModel("emphasis.lineStyle").getLineStyle(),c=d.getModel("label"),g=d.getModel("emphasis.label")}var f=e.getItemVisual(n,"color"),A=t.retrieve3(e.getItemVisual(n,"opacity"),h.opacity,1);l.useStyle(t.defaults({strokeNoScale:!0,fill:"none",stroke:f,opacity:A},h)),l.hoverStyle=u,t.each(a,(function(t){var e=this.childOfName(t);e&&(e.setColor(f),e.setStyle({opacity:A}))}),this);var p,m,y=c.getShallow("show"),v=g.getShallow("show"),_=this.childOfName("label");if((y||v)&&(p=f||"#000",m=o.getFormattedLabel(n,"normal",e.dataType),null==m)){var x=o.getRawValue(n);m=null==x?e.getName(n):isFinite(x)?s(x):x}var I=y?m:null,w=v?t.retrieve2(o.getFormattedLabel(n,"emphasis",e.dataType),m):null,C=_.style;if(null!=I||null!=w){r.setTextStyle(_.style,c,{text:I},{autoColor:p}),_.__textAlign=C.textAlign,_.__verticalAlign=C.textVerticalAlign,_.__position=c.get("position")||"middle";var E=c.get("distance");t.isArray(E)||(E=[E,E]),_.__labelDistance=E}_.hoverStyle=null!=w?{text:w,textFill:g.getTextColor(!0),fontStyle:g.getShallow("fontStyle"),fontWeight:g.getShallow("fontWeight"),fontSize:g.getShallow("fontSize"),fontFamily:g.getShallow("fontFamily")}:{text:null},_.ignore=!y&&!v,r.setHoverStyle(this)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){this.trigger("normal")},f.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},f.setLinePoints=function(t){var e=this.childOfName("line");c(e.shape,t),e.dirty()},t.inherits(d,r.Group);var A=d;return XAt=A,XAt}function rpt(){if(JAt)return KAt;JAt=1;var t=H1,e=ipt();function n(n){this._ctor=n||e,this.group=new t.Group}var i=n.prototype;function r(t,e,n,i){var r=e.getItemLayout(n);if(h(r)){var o=new t._ctor(e,n,i);e.setItemGraphicEl(n,o),t.group.add(o)}}function o(t,e,n,i,r,o){var s=e.getItemGraphicEl(i);h(n.getItemLayout(r))?(s?s.updateData(n,r,o):s=new t._ctor(n,r,o),n.setItemGraphicEl(r,s),t.group.add(s)):t.group.remove(s)}function s(t){return t.animators&&t.animators.length>0}function a(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function l(t){return isNaN(t[0])||isNaN(t[1])}function h(t){return!l(t[0])&&!l(t[1])}i.isPersistent=function(){return!0},i.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var s=a(t);t.diff(i).add((function(n){r(e,t,n,s)})).update((function(n,r){o(e,i,t,r,n,s)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},i.updateLayout=function(){var t=this._lineData;!t||t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},i.incrementalPrepareUpdate=function(t){this._seriesScope=a(t),this._lineData=null,this.group.removeAll()},i.incrementalUpdate=function(t,e){function n(t){!t.isGroup&&!s(t)&&(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i=0?i+=A:i-=A:_>=0?i-=A:i+=A}return i}function c(n,r){var o=[],s=t.quadraticSubdivide,a=[[],[],[]],l=[[],[]],h=[];r/=2,n.eachEdge((function(t,n){var c=t.getLayout(),g=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");c.__original||(c.__original=[e.clone(c[0]),e.clone(c[1])],c[2]&&c.__original.push(e.clone(c[2])));var f=c.__original;if(null!=c[2]){if(e.copy(a[0],f[0]),e.copy(a[1],f[2]),e.copy(a[2],f[1]),g&&"none"!==g){var A=i(t.node1),p=u(a,f[0],A*r);s(a[0][0],a[1][0],a[2][0],p,o),a[0][0]=o[3],a[1][0]=o[4],s(a[0][1],a[1][1],a[2][1],p,o),a[0][1]=o[3],a[1][1]=o[4]}if(d&&"none"!==d){A=i(t.node2),p=u(a,f[1],A*r);s(a[0][0],a[1][0],a[2][0],p,o),a[1][0]=o[1],a[2][0]=o[2],s(a[0][1],a[1][1],a[2][1],p,o),a[1][1]=o[1],a[2][1]=o[2]}e.copy(c[0],a[0]),e.copy(c[1],a[2]),e.copy(c[2],a[1])}else{if(e.copy(l[0],f[0]),e.copy(l[1],f[1]),e.sub(h,l[1],l[0]),e.normalize(h,h),g&&"none"!==g){A=i(t.node1);e.scaleAndAdd(l[0],l[0],h,A*r)}if(d&&"none"!==d){A=i(t.node2);e.scaleAndAdd(l[1],l[1],h,-A*r)}e.copy(c[0],l[0]),e.copy(c[1],l[1])}}))}return spt=c,spt}function dpt(){if(hpt)return lpt;hpt=1;var t=mH,e=bH,n=aut(),i=rpt(),r=Hdt(),o=Xdt(),s=nft(),a=s.onIrrelevantElement,l=H1,h=gpt(),u=cpt(),c=u.getNodeGlobalScale,g="__focusNodeAdjacency",d="__unfocusNodeAdjacency",f=["itemStyle","opacity"],A=["lineStyle","opacity"];function p(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function m(t,e,n){var i=t.getGraphicEl(),r=p(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;(null==e||null!=n)&&(e=r),t.setStyle("opacity",e)}}))}function y(t,e){var n=p(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var v=t.extendChartView({type:"graph",init:function(t,e){var o=new n,s=new i,a=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:a},a.add(o.group),a.add(s.group),this._symbolDraw=o,this._lineDraw=s,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,s=this._lineDraw,a=this.group;if("view"===r.type){var u={position:r.position,scale:r.scale};this._firstRender?a.attr(u):l.updateProps(a,u,t)}h(t.getGraph(),c(t));var f=t.getData();o.updateData(f);var A=t.getEdgeData();s.updateData(A),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var p=t.forceLayout,m=t.get("force.layoutAnimation");p&&this._startForceLayoutIteration(p,m),f.eachItemGraphicEl((function(e,r){var o=f.getItemModel(r);e.off("drag").off("dragend");var s=o.get("draggable");s&&e.on("drag",(function(){p&&(p.warmUp(),!this._layouting&&this._startForceLayoutIteration(p,m),p.setFixed(r),f.setItemLayout(r,e.position))}),this).on("dragend",(function(){p&&p.setUnfixed(r)}),this),e.setDraggable(s&&p),e[g]&&e.off("mouseover",e[g]),e[d]&&e.off("mouseout",e[d]),o.get("focusNodeAdjacency")&&(e.on("mouseover",e[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[d]=function(){i._dispatchUnfocus(n)}))}),this),f.graph.eachEdge((function(e){var r=e.getGraphicEl();r[g]&&r.off("mouseover",r[g]),r[d]&&r.off("mouseout",r[d]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[d]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),v=f.getLayout("cx"),_=f.getLayout("cy");f.eachItemGraphicEl((function(t,e){var n=f.getItemModel(e),i=n.get("label.rotate")||0,r=t.getSymbolPath();if(y){var o=f.getItemLayout(e),s=Math.atan2(o[1]-_,o[0]-v);s<0&&(s=2*Math.PI+s);var a=o[0]=r/3?1:2),l=e.y-i(s)*o*(o>=r/3?1:2);s=e.angle-Math.PI/2,t.moveTo(a,l),t.lineTo(e.x+n(s)*o,e.y+i(s)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(s)*o,e.y-i(s)*o),t.lineTo(a,l)}});return tmt=e,tmt}function lmt(){if(imt)return nmt;imt=1;var t=amt(),e=H1,n=Kot,i=F7(),r=i.parsePercent,o=i.round,s=i.linearMap;function a(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),s=Math.min(i,o),a=r(n[0],e.getWidth()),l=r(n[1],e.getHeight()),h=r(t.get("radius"),s/2);return{cx:a,cy:l,r:h}}function l(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var h=2*Math.PI,u=n.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i=t.get("axisLine.lineStyle.color"),r=a(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,n,i,r,o){for(var s=this.group,a=t.getModel("axisLine"),l=a.getModel("lineStyle"),u=t.get("clockwise"),c=-t.get("startAngle")/180*Math.PI,g=-t.get("endAngle")/180*Math.PI,d=(g-c)%h,f=c,A=l.get("width"),p=a.get("show"),m=0;p&&m=t&&(0===e?0:r[e-1][0]).4?"bottom":"middle",textAlign:D<-.4?"left":D>.4?"right":"center"},{autoColor:Q}),silent:!0}))}if(v.get("show")&&T!==x){for(var z=0;z<=I;z++){D=Math.cos(E),R=Math.sin(E);var F=new e.Line({shape:{x1:D*A+d,y1:R*A+f,x2:D*(A-C)+d,y2:R*(A-C)+f},silent:!0,style:M});"auto"===M.stroke&&F.setStyle({stroke:s((T+z/I)/x)}),g.add(F),E+=S}E-=S}else E+=b}},_renderPointer:function(n,i,o,a,l,h,u,c){var g=this.group,d=this._data;if(n.get("pointer.show")){var f=[+n.get("min"),+n.get("max")],A=[h,u],p=n.getData(),m=p.mapDimension("value");p.diff(d).add((function(i){var r=new t({shape:{angle:h}});e.initProps(r,{shape:{angle:s(p.get(m,i),f,A,!0)}},n),g.add(r),p.setItemGraphicEl(i,r)})).update((function(t,i){var r=d.getItemGraphicEl(i);e.updateProps(r,{shape:{angle:s(p.get(m,t),f,A,!0)}},n),g.add(r),p.setItemGraphicEl(t,r)})).remove((function(t){var e=d.getItemGraphicEl(t);g.remove(e)})).execute(),p.eachItemGraphicEl((function(t,n){var i=p.getItemModel(n),o=i.getModel("pointer");t.setShape({x:l.cx,y:l.cy,width:r(o.get("width"),l.r),r:r(o.get("length"),l.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",a(s(p.get(m,n),f,[0,1],!0))),e.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=p}else d&&d.eachItemGraphicEl((function(t){g.remove(t)}))},_renderTitle:function(t,n,i,o,a){var l=t.getData(),h=l.mapDimension("value"),u=t.getModel("title");if(u.get("show")){var c=u.get("offsetCenter"),g=a.cx+r(c[0],a.r),d=a.cy+r(c[1],a.r),f=+t.get("min"),A=+t.get("max"),p=t.getData().get(h,0),m=o(s(p,[f,A],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},u,{x:g,y:d,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(t,n,i,o,a){var h=t.getModel("detail"),u=+t.get("min"),c=+t.get("max");if(h.get("show")){var g=h.get("offsetCenter"),d=a.cx+r(g[0],a.r),f=a.cy+r(g[1],a.r),A=r(h.get("width"),a.r),p=r(h.get("height"),a.r),m=t.getData(),y=m.get(m.mapDimension("value"),0),v=o(s(y,[u,c],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},h,{x:d,y:f,text:l(y,h.get("formatter")),textWidth:isNaN(A)?null:A,textHeight:isNaN(p)?null:p,textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}}}),c=u;return nmt=c,nmt}function hmt(){return rmt||(rmt=1,smt(),lmt()),omt}var umt,cmt,gmt,dmt,fmt,Amt,pmt,mmt={};function ymt(){if(cmt)return umt;cmt=1;var t=mH,e=bH,n=mgt(),i=Z2,r=i.defaultEmphasis,o=$tt,s=o.makeSeriesEncodeForNameBased,a=vgt(),l=t.extendSeriesModel({type:"series.funnel",init:function(t){l.superApply(this,"init",arguments),this.legendVisualProvider=new a(e.bind(this.getData,this),e.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,i){return n(this,{coordDimensions:["value"],encodeDefaulter:e.curry(s,this)})},_defaultLabelLine:function(t){r(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=l.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),h=l;return umt=h,umt}function vmt(){if(dmt)return gmt;dmt=1;var t=H1,e=bH,n=Kot;function i(e,n){t.Group.call(this);var i=new t.Polygon,r=new t.Polyline,o=new t.Text;this.add(i),this.add(r),this.add(o),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,n,!0)}var r=i.prototype,o=["itemStyle","opacity"];r.updateData=function(n,i,r){var s=this.childAt(0),a=n.hostModel,l=n.getItemModel(i),h=n.getItemLayout(i),u=n.getItemModel(i).get(o);u=null==u?1:u,s.useStyle({}),r?(s.setShape({points:h.points}),s.setStyle({opacity:0}),t.initProps(s,{style:{opacity:u}},a,i)):t.updateProps(s,{style:{opacity:u},shape:{points:h.points}},a,i);var c=l.getModel("itemStyle"),g=n.getItemVisual(i,"color");s.setStyle(e.defaults({lineJoin:"round",fill:g},c.getItemStyle(["opacity"]))),s.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(n,i),t.setHoverStyle(this)},r._updateLabel=function(e,n){var i=this.childAt(1),r=this.childAt(2),o=e.hostModel,s=e.getItemModel(n),a=e.getItemLayout(n),l=a.label,h=e.getItemVisual(n,"color");t.updateProps(i,{shape:{points:l.linePoints||l.linePoints}},o,n),t.updateProps(r,{style:{x:l.x,y:l.y}},o,n),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=s.getModel("label"),c=s.getModel("emphasis.label"),g=s.getModel("labelLine"),d=s.getModel("emphasis.labelLine");h=e.getItemVisual(n,"color");t.setLabelStyle(r.style,r.hoverStyle={},u,c,{labelFetcher:e.hostModel,labelDataIndex:n,defaultText:e.getName(n),autoColor:h,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!c.get("show"),i.ignore=i.normalIgnore=!g.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:h}),i.setStyle(g.getModel("lineStyle").getLineStyle()),i.hoverStyle=d.getModel("lineStyle").getLineStyle()},e.inherits(i,t.Group);var s=n.extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,s=this.group;r.diff(o).add((function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),s.add(n),r.setItemGraphicEl(t,n)})).remove((function(t){var e=o.getItemGraphicEl(t);s.remove(e)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),a=s;return gmt=a,gmt}function _mt(){if(Amt)return fmt;Amt=1;var t=Q7,e=F7(),n=e.parsePercent,i=e.linearMap;function r(e,n){return t.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function o(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,s=0,a=t.count();sa&&(i[1-o]=i[o]+d.sign*a),i}function e(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function n(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}return Tmt=1,Mmt=t,Mmt}function Gmt(){if(Rmt)return Dmt;Rmt=1;var t=bH,e=uX,n=Q7,i=Eht(),r=Omt(),o=H1,s=F7(),a=Nmt(),l=t.each,h=Math.min,u=Math.max,c=Math.floor,g=Math.ceil,d=s.round,f=Math.PI;function A(e,n,i){this._axesMap=t.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,n,i)}function p(t,e){return h(u(t,e[0]),e[1])}function m(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function y(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,s=e.axisCount,a=e.axisCollapseWidth,l=e.winInnerIndices,h=a,u=!1;return t=n&&o<=n+e.axisLength&&s>=i&&s<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();l(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),i.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=n.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),s="horizontal"===o?0:1,a=n[r[s]],l=[0,a],h=this.dimensions.length,u=p(e.get("axisExpandWidth"),l),f=p(e.get("axisExpandCount")||0,[0,h]),A=e.get("axisExpandable")&&h>3&&h>f&&f>1&&u>0&&a>0,m=e.get("axisExpandWindow");if(m)t=p(m[1]-m[0],l),m[1]=m[0]+t;else{t=p(u*(f-1),l);var y=e.get("axisExpandCenter")||c(h/2);m=[u*y-t/2],m[1]=m[0]+t}var v=(a-t)/(h-f);v<3&&(v=0);var _=[c(d(m[0]/u,1))+1,g(d(m[1]/u,1))-1],x=v/u*m[0];return{layout:o,pixelDimIndex:s,layoutBase:n[i[s]],layoutLength:a,axisBase:n[i[1-s]],axisLength:n[r[1-s]],axisExpandable:A,axisExpandWidth:u,axisCollapseWidth:v,axisExpandWindow:m,axisCount:h,winInnerIndices:_,axisExpandWindow0Pos:x}},_layoutAxes:function(){var t=this._rect,n=this._axesMap,i=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;n.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),l(i,(function(n,i){var s=(r.axisExpandable?y:m)(i,r),a={horizontal:{x:s.position,y:r.axisLength},vertical:{x:0,y:s.position}},l={horizontal:f/2,vertical:0},h=[a[o].x+t.x,a[o].y+t.y],u=l[o],c=e.create();e.rotate(c,c,u),e.translate(c,c,h),this._axesLayout[n]={position:h,rotation:u,transform:c,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(e,n,i,r){null==i&&(i=0),null==r&&(r=e.count());var o=this._axesMap,s=this.dimensions,a=[],l=[];t.each(s,(function(t){a.push(e.mapDimension(t)),l.push(o.get(t).model)}));for(var h=this.hasAxisBrushed(),u=i;ur*(1-d[0])?(c="jump",s=l-r*(1-d[2])):(s=l-r*d[1])>=0&&(s=l-r*(1-d[1]))<=0&&(s=0),s*=e.axisExpandWidth/g,s?a(s,i,o,"all"):c="none";else{r=i[1]-i[0];var A=o[1]*l/r;i=[u(0,A-r/2)],i[1]=h(o[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:c}}};var v=A;return Dmt=v,Dmt}function jmt(){if(kmt)return Fmt;kmt=1;var t=Gmt(),e=Xnt;function n(e,n){var i=[];return e.eachComponent("parallel",(function(r,o){var s=new t(r,e,n);s.name="parallel_"+o,s.resize(r,n),r.coordinateSystem=s,s.model=r,i.push(s)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}})),i}return e.register("parallel",{create:n}),Fmt}function Umt(){if(Pmt)return Lmt;Pmt=1;var t=bH,e=jtt,n=z1,i=$ut(),r=F7(),o=bht(),s=e.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return n([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var n=this.activeIntervals=t.clone(e);if(n)for(var i=n.length-1;i>=0;i--)r.asc(n[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;ig}function P(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Q(t,e,i,r){var a=new n.Group;return a.add(new n.Rect({name:"main",style:N(i),silent:!0,draggable:!0,cursor:"move",drift:o(t,e,a,"nswe"),ondragend:o(k,e,{isEnd:!0})})),s(r,(function(i){a.add(new n.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:o(t,e,a,i),ondragend:o(k,e,{isEnd:!0})}))})),a}function z(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=h(r,d),s=n[0][0],a=n[1][0],l=s-r/2,u=a-r/2,c=n[0][1],g=n[1][1],f=c-o+r/2,A=g-o+r/2,p=c-s,m=g-a,y=p+r,v=m+r;O(t,e,"main",s,a,p,m),i.transformable&&(O(t,e,"w",l,u,o,v),O(t,e,"e",f,u,o,v),O(t,e,"n",l,u,y,o),O(t,e,"s",l,A,y,o),O(t,e,"nw",l,u,o,o),O(t,e,"ne",f,u,o,o),O(t,e,"sw",l,A,o,o),O(t,e,"se",f,A,o,o))}function F(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(N(n)),r.attr({silent:!i,cursor:i?"move":"default"}),s(["w","e","n","s","se","sw","ne","nw"],(function(n){var r=e.childOfName(n),o=U(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?p[o]+"-resize":null})}))}function O(t,e,n,i,r,o,s){var a=e.childOfName(n);a&&a.setShape(W(Y(t,e,[[i,r],[i+o,r+s]])))}function N(e){return t.defaults({strokeNoScale:!0},e.brushStyle)}function G(t,e,n,i){var r=[l(t,n),l(e,i)],o=[h(t,n),h(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function j(t){return n.getTransform(t.group)}function U(t,e){if(e.length>1){e=e.split("");var i=[U(t,e[0]),U(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var r={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"};i=n.transformDirection(r[e],j(t));return o[i]}function q(t,e,n,i,r,o,a,l){var h=i.__brushOption,u=t(h.range),c=H(n,o,a);s(r.split(""),(function(t){var e=A[t];u[e[0]][e[1]]+=c[e[0]]})),h.range=e(G(u[0][0],u[1][0],u[0][1],u[1][1])),B(n,i),k(n,{isEnd:!1})}function V(t,e,n,i,r){var o=e.__brushOption.range,a=H(t,n,i);s(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),B(t,e),k(t,{isEnd:!1})}function H(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Y(e,n,i){var r=D(e,n);return r&&!0!==r?r.clipPath(i,e._transform):t.clone(i)}function W(t){var e=l(t[0][0],t[1][0]),n=l(t[0][1],t[1][1]),i=h(t[0][0],t[1][0]),r=h(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function X(t,e,n){if(t._brushType&&!nt(t,e)){var i=t._zr,r=t._covers,o=T(t,e,n);if(!t._dragging)for(var s=0;si.getWidth()||n<0||n>i.getHeight()}var it={lineX:rt(0),lineY:rt(1),rect:{createCover:function(t,e){return Q(o(q,(function(t){return t}),(function(t){return t})),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=P(t);return G(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){z(t,e,n,i)},updateCommon:F,contain:K},polygon:{createCover:function(t,e){var i=new n.Group;return i.add(new n.Polyline({name:"main",style:N(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new n.Polygon({name:"main",draggable:!0,drift:o(V,t,e),ondragend:o(k,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:Y(t,e,n)})},updateCommon:F,contain:K}};function rt(t){return{createCover:function(e,n){return Q(o(q,(function(e){var n=[e,[0,100]];return t&&n.reverse(),n}),(function(e){return e[t]})),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=P(e),i=l(n[0][t],n[1][t]),r=h(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,s=D(e,n);if(!0!==s&&s.getLinearBrushOtherExtent)o=s.getLinearBrushOtherExtent(t,e._transform);else{var a=e._zr;o=[0,[a.getWidth(),a.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),z(e,n,l,r)},updateCommon:F,contain:K}}var ot=v;return Hmt=ot,Hmt}var Jmt,$mt,tyt,eyt,nyt,iyt,ryt,oyt,syt,ayt,lyt,hyt,uyt={};function cyt(){if(Jmt)return uyt;Jmt=1;var t=EK,e=nft(),n=e.onIrrelevantElement,i=H1;function r(t){return t=a(t),function(e,n){return i.clipPointsByRect(e,t)}}function o(t,e){return t=a(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function s(t,e,i){return t=a(t),function(r,o,s){return t.contain(o[0],o[1])&&!n(r,e,i)}}function a(e){return t.create(e)}return uyt.makeRectPanelClipPath=r,uyt.makeLinearBrushOtherExtent=o,uyt.makeRectIsTargetByCursor=s,uyt}function gyt(){if(tyt)return $mt;tyt=1;var t=mH,e=bH,n=act(),i=Kmt(),r=cyt(),o=H1,s=["axisLine","axisTickLabel","axisName"],a=t.extendComponentView({type:"parallelAxis",init:function(t,n){a.superApply(this,"init",arguments),(this._brushController=new i(n.getZr())).on("brush",e.bind(this._onBrush,this))},render:function(t,i,r,a){if(!l(t,i,a)){this.axisModel=t,this.api=r,this.group.removeAll();var h=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),t.get("show")){var c=u(t,i),g=c.coordinateSystem,d=t.getAreaSelectStyle(),f=d.width,A=t.axis.dim,p=g.getAxisLayout(A),m=e.extend({strokeContainThreshold:f},p),y=new n(t,m);e.each(s,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(m,d,t,c,f,r);var v=a&&!1===a.animation?null:t;o.groupTransition(h,this._axisGroup,v)}}},_refreshBrushController:function(t,e,n,i,s,a){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,.1*Math.abs(u)),g=o.BoundingRect.create({x:l[0],y:-s/2,width:u,height:s});g.x-=c,g.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:r.makeRectPanelClipPath(g),isTargetByCursor:r.makeRectIsTargetByCursor(g,a,i),getLinearBrushOtherExtent:r.makeLinearBrushOtherExtent(g,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(h(n))},_onBrush:function(t,n){var i=this.axisModel,r=i.axis,o=e.map(t,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},dispose:function(){this._brushController.dispose()}});function l(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function h(t){var n=t.axis;return e.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[n.dataToCoord(t[0],!0),n.dataToCoord(t[1],!0)]}}))}function u(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var c=a;return $mt=c,$mt}function dyt(){return eyt||(eyt=1,jmt(),Zmt(),gyt()),Wmt}function fyt(){if(nyt)return Emt;nyt=1;var t=mH,e=bH,n=Jot,i=bmt();jmt(),qmt(),dyt();var r=5;t.extendComponentView({type:"parallel",render:function(t,i,r){this._model=t,this._api=r,this._handlers||(this._handlers={},e.each(o,(function(t,n){r.getZr().on(n,this._handlers[n]=e.bind(t,this))}),this)),n.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,n){e.each(this._handlers,(function(t,e){n.getZr().off(e,t)})),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(e.extend({type:"parallelAxisExpand"},t))}});var o={mousedown:function(t){s(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(s(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>r)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&s(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function s(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}return t.registerPreprocessor(i),Emt}function Ayt(){if(ryt)return iyt;ryt=1;var t=bH,e=t.each,n=t.createHashMap,i=vot,r=Zlt(),o=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return s(n,this),r(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function s(t,i){if(!t.encodeDefine){var r=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(r){var o=t.encodeDefine=n();e(r.dimensions,(function(t){var e=a(t);o.set(t,e)}))}}}function a(t){return+t.replace("dim","")}return iyt=o,iyt}function pyt(){if(syt)return oyt;syt=1;var t=H1,e=Kot,n=.3,i=e.extend({type:"parallel",init:function(){this._dataGroup=new t.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,n,i,h){var u=this._dataGroup,c=e.getData(),g=this._data,d=e.coordinateSystem,f=d.dimensions,A=a(e);function p(t){var e=s(c,u,t,f,d);l(e,c,t,A)}function m(n,i){var r=g.getItemGraphicEl(i),s=o(c,n,f,d);c.setItemGraphicEl(n,r);var a=h&&!1===h.animation?null:e;t.updateProps(r,{shape:{points:s}},a,n),l(r,c,n,A)}function y(t){var e=g.getItemGraphicEl(t);u.remove(e)}if(c.diff(g).add(p).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var v=r(d,e,(function(){setTimeout((function(){u.removeClipPath()}))}));u.setClipPath(v)}this._data=c},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,h=a(e),u=t.start;u=0&&(a[s[l].depth]=new r(s[l],this,n));if(o&&i){var h=e(o,i,this,!0,u);return h.data}function u(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth,r=n.levelModels[i];return r||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout().depth,o=n.levelModels[r];return o||this.parentModel})),t}))}},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var r=this.getDataParams(t,n),s=r.data,a=s.source+" -- "+s.target;return r.value&&(a+=" : "+r.value),i(a)}if("node"===n){var l=this.getGraph().getNodeByIndex(t),h=l.getLayout().value,u=this.getDataParams(t,n).data.name;if(h)a=u+" : "+h;return i(a)}return o.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=o.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t),r=i.getLayout().value;n.value=r}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),s=o;return vyt=s,vyt}function Eyt(){if(Iyt)return xyt;Iyt=1;var t=H1,e=mH,n=bH,i=["itemStyle","opacity"],r=["emphasis","itemStyle","opacity"],o=["lineStyle","opacity"],s=["emphasis","lineStyle","opacity"];function a(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function l(t,e,n){var i=t.getGraphicEl(),r=a(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function h(t,e){var n=a(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var u=t.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),c=e.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,n,i){var r=this,o=e.getGraph(),s=this.group,a=e.layoutInfo,l=a.width,h=a.height,c=e.getData(),d=e.getData("edge"),f=e.get("orient");this._model=e,s.removeAll(),s.attr("position",[a.x,a.y]),o.eachEdge((function(n){var i=new u;i.dataIndex=n.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,o,a,c,g,A,p,m,y=n.getModel("lineStyle"),v=y.get("curveness"),_=n.node1.getLayout(),x=n.node1.getModel(),I=x.get("localX"),w=x.get("localY"),C=n.node2.getLayout(),E=n.node2.getModel(),b=E.get("localX"),S=E.get("localY"),B=n.getLayout();switch(i.shape.extent=Math.max(1,B.dy),i.shape.orient=f,"vertical"===f?(r=(null!=I?I*l:_.x)+B.sy,o=(null!=w?w*h:_.y)+_.dy,a=(null!=b?b*l:C.x)+B.ty,c=null!=S?S*h:C.y,g=r,A=o*(1-v)+c*v,p=a,m=o*v+c*(1-v)):(r=(null!=I?I*l:_.x)+_.dx,o=(null!=w?w*h:_.y)+B.sy,a=null!=b?b*l:C.x,c=(null!=S?S*h:C.y)+B.ty,g=r*(1-v)+a*v,A=o,p=r*v+a*(1-v),m=c),i.setShape({x1:r,y1:o,x2:a,y2:c,cpx1:g,cpy1:A,cpx2:p,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=n.node1.getVisual("color");break;case"target":i.style.fill=n.node2.getVisual("color");break}t.setHoverStyle(i,n.getModel("emphasis.lineStyle").getItemStyle()),s.add(i),d.setItemGraphicEl(n.dataIndex,i)})),o.eachNode((function(n){var i=n.getLayout(),r=n.getModel(),o=r.get("localX"),a=r.get("localY"),u=r.getModel("label"),g=r.getModel("emphasis.label"),d=new t.Rect({shape:{x:null!=o?o*l:i.x,y:null!=a?a*h:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),f=n.getModel("emphasis.itemStyle").getItemStyle();t.setLabelStyle(d.style,f,u,g,{labelFetcher:e,labelDataIndex:n.dataIndex,defaultText:n.id,isRectText:!0}),d.setStyle("fill",n.getVisual("color")),t.setHoverStyle(d,f),s.add(d),c.setItemGraphicEl(n.dataIndex,d),d.dataType="node"})),c.eachItemGraphicEl((function(t,n){var o=c.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/h})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),d.eachItemGraphicEl((function(t,n){var o=d.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&s.setClipPath(g(s.getBoundingRect(),e,(function(){s.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,a,u){var c=t.getData(),g=c.graph,d=u.dataIndex,f=c.getItemModel(d),A=u.edgeDataIndex;if(null!=d||null!=A){var p=g.getNodeByIndex(d),m=g.getEdgeByIndex(A);if(g.eachNode((function(t){l(t,i,.1)})),g.eachEdge((function(t){l(t,o,.1)})),p){h(p,r);var y=f.get("focusNodeAdjacency");"outEdges"===y?n.each(p.outEdges,(function(t){t.dataIndex<0||(h(t,s),h(t.node2,r))})):"inEdges"===y?n.each(p.inEdges,(function(t){t.dataIndex<0||(h(t,s),h(t.node1,r))})):"allEdges"===y&&n.each(p.edges,(function(t){t.dataIndex<0||(h(t,s),t.node1!==p&&h(t.node1,r),t.node2!==p&&h(t.node2,r))}))}m&&(h(m,s),h(m.node1,r),h(m.node2,r))}},unfocusNodeAdjacency:function(t,e,n,r){var s=t.getGraph();s.eachNode((function(t){l(t,i)})),s.eachEdge((function(t){l(t,o)}))}});function g(e,n,i){var r=new t.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return t.initProps(r,{shape:{width:e.width+20}},n,i),r}return xyt=c,xyt}var byt,Syt,Byt,Myt,Tyt,Dyt,Ryt={};function kyt(){if(byt)return Ryt;byt=1;var t=mH;return Cpt(),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))})),Ryt}function Lyt(){if(Byt)return Syt;Byt=1;var t=Q7,e=bH,n=Z2,i=n.groupData;function r(t,n,i){t.eachSeriesByType("sankey",(function(t){var i=t.get("nodeWidth"),r=t.get("nodeGap"),l=o(t,n);t.layoutInfo=l;var h=l.width,u=l.height,c=t.getGraph(),g=c.nodes,d=c.edges;a(g);var f=e.filter(g,(function(t){return 0===t.getLayout().value})),A=0!==f.length?0:t.get("layoutIterations"),p=t.get("orient"),m=t.get("nodeAlign");s(g,d,i,r,h,u,A,p,m)}))}function o(e,n){return t.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function s(t,e,n,i,r,o,s,a,h){l(t,e,n,r,o,a,h),d(t,e,o,r,i,s,a),b(t,a)}function a(t){e.each(t,(function(t){var e=C(t.outEdges,w),n=C(t.inEdges,w),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function l(t,e,n,i,r,o,s){for(var a=[],l=[],h=[],c=[],d=0,f=0,A=0;A=0;_&&v.depth>p&&(p=v.depth),y.setLayout({depth:_?v.depth:d},!0),"vertical"===o?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var x=0;xd-1?p:d-1;s&&"left"!==s&&u(t,s,o,b);f="vertical"===o?(r-n)/b:(i-n)/b;g(t,f,o)}function h(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function u(t,n,i,r){if("right"===n){for(var o=[],s=t,a=0;s.length;){for(var l=0;l0;o--)l*=.99,m(a,l,s),p(a,r,n,i,s),E(a,l,s),p(a,r,n,i,s)}function f(t,n){var r=[],o="vertical"===n?"y":"x",s=i(t,(function(t){return t.getLayout()[o]}));return s.keys.sort((function(t,e){return t-e})),e.each(s.keys,(function(t){r.push(s.buckets.get(t))})),r}function A(t,n,i,r,o,s){var a=1/0;e.each(t,(function(t){var n=t.length,l=0;e.each(t,(function(t){l+=t.getLayout().value}));var h="vertical"===s?(r-(n-1)*o)/l:(i-(n-1)*o)/l;h0&&(e=a.getLayout()[s]+l,"vertical"===o?a.setLayout({x:e},!0):a.setLayout({y:e},!0)),h=a.getLayout()[s]+a.getLayout()[c]+n;var d="vertical"===o?r:i;if(l=h-n-d,l>0)for(e=a.getLayout()[s]-l,"vertical"===o?a.setLayout({x:e},!0):a.setLayout({y:e},!0),h=e,g=u-2;g>=0;--g)a=t[g],l=a.getLayout()[s]+a.getLayout()[c]+n-h,l>0&&(e=a.getLayout()[s]-l,"vertical"===o?a.setLayout({x:e},!0):a.setLayout({y:e},!0)),h=a.getLayout()[s]}))}function m(t,n,i){e.each(t.slice().reverse(),(function(t){e.each(t,(function(t){if(t.outEdges.length){var e=C(t.outEdges,y,i)/C(t.outEdges,w,i);if(isNaN(e)){var r=t.outEdges.length;e=r?C(t.outEdges,v,i)/r:0}if("vertical"===i){var o=t.getLayout().x+(e-I(t,i))*n;t.setLayout({x:o},!0)}else{var s=t.getLayout().y+(e-I(t,i))*n;t.setLayout({y:s},!0)}}}))}))}function y(t,e){return I(t.node2,e)*t.getValue()}function v(t,e){return I(t.node2,e)}function _(t,e){return I(t.node1,e)*t.getValue()}function x(t,e){return I(t.node1,e)}function I(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function w(t){return t.getValue()}function C(t,e,n){for(var i=0,r=t.length,o=-1;++os&&(s=e)})),e.each(r,(function(e){var i=new t({type:"color",mappingMethod:"linear",dataExtent:[o,s],visual:n.get("color")}),r=i.mapValueToVisual(e.getLayout().value),a=e.getModel().get("itemStyle.color");null!=a?e.setVisual("color",a):e.setVisual("color",r)}))}}))}return Myt=n,Myt}function Qyt(){if(Dyt)return wyt;Dyt=1;var t=mH;Cyt(),Eyt(),kyt();var e=Lyt(),n=Pyt();return t.registerLayout(e),t.registerVisual(n),wyt}var zyt,Fyt,Oyt,Nyt,Gyt,jyt,Uyt,qyt,Vyt,Hyt,Yyt={},Wyt={};function Xyt(){if(zyt)return Wyt;zyt=1;var t=mgt(),e=bH,n=zlt(),i=n.getDimensionTypeByAxis,r=$tt,o=r.makeSeriesEncodeForAxisCoordSys,s={_baseAxisDim:null,getInitialData:function(n,r){var s,a,l=r.getComponent("xAxis",this.get("xAxisIndex")),h=r.getComponent("yAxis",this.get("yAxisIndex")),u=l.get("type"),c=h.get("type");"category"===u?(n.layout="horizontal",s=l.getOrdinalMeta(),a=!0):"category"===c?(n.layout="vertical",s=h.getOrdinalMeta(),a=!0):n.layout=n.layout||"horizontal";var g=["x","y"],d="horizontal"===n.layout?0:1,f=this._baseAxisDim=g[d],A=g[1-d],p=[l,h],m=p[d].get("type"),y=p[1-d].get("type"),v=n.data;if(v&&a){var _=[];e.each(v,(function(t,n){var i;t.value&&e.isArray(t.value)?(i=t.value.slice(),t.value.unshift(n)):e.isArray(t)?(i=t.slice(),t.unshift(n)):i=t,_.push(i)})),n.data=_}var x=this.defaultValueDimensions,I=[{name:f,type:i(m),ordinalMeta:s,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:A,type:i(y),dimsDef:x.slice()}];return t(this,{coordDimensions:I,dimensionsCount:x.length+1,encodeDefaulter:e.curry(o,I,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};return Wyt.seriesModelMixin=s,Wyt}function Zyt(){if(Oyt)return Fyt;Oyt=1;var t=bH,e=vot,n=Xyt(),i=n.seriesModelMixin,r=e.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});t.mixin(r,i,!0);var o=r;return Fyt=o,Fyt}function Kyt(){if(Gyt)return Nyt;Gyt=1;var t=bH,e=Kot,n=H1,i=U5,r=["itemStyle"],o=["emphasis","itemStyle"],s=e.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var s="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=l(e,i,t,s,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=i.getItemLayout(t);n?h(a,n,i,t):n=l(a,i,t,s),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:t.noop}),a=i.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i0?"P":"N",o=i.getVisual("borderColor"+r)||i.getVisual("color"+r),a=n.getModel(s).getItemStyle(l);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var y=h;return ivt=y,ivt}function Avt(){if(svt)return ovt;svt=1;var t=bH;function e(e){!e||!t.isArray(e.series)||t.each(e.series,(function(e){t.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}return ovt=e,ovt}function pvt(){if(lvt)return avt;lvt=1;var t=Tot,e=["itemStyle","borderColor"],n=["itemStyle","borderColor0"],i=["itemStyle","color"],r=["itemStyle","color0"],o={seriesType:"candlestick",plan:t(),performRawSeries:!0,reset:function(t,o){var s=t.getData();if(s.setVisual({legendSymbol:"roundRect",colorP:h(1,t),colorN:h(-1,t),borderColorP:u(1,t),borderColorN:u(-1,t)}),!o.isSeriesFiltered(t)){var a=t.pipelineContext.large;return!a&&{progress:l}}function l(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign;e.setItemVisual(n,{color:h(r,i),borderColor:u(r,i)})}}function h(t,e){return e.get(t>0?i:r)}function u(t,i){return i.get(t>0?e:n)}}};return avt=o,avt}function mvt(){if(uvt)return hvt;uvt=1;var t=H1,e=t.subPixelOptimize,n=Tot,i=F7(),r=i.parsePercent,o=bH,s=o.retrieve2,a="undefined"!=typeof Float32Array?Float32Array:Array,l={seriesType:"candlestick",plan:n(),reset:function(t){var n=t.coordinateSystem,i=t.getData(),r=u(t,i),o=0,s=1,l=["x","y"],c=i.mapDimension(l[o]),g=i.mapDimension(l[s],!0),d=g[0],f=g[1],A=g[2],p=g[3];if(i.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(null==c||g.length<4))return{progress:t.pipelineContext.large?y:m};function m(t,i){for(var a;null!=(a=t.next());){var l=i.get(c,a),u=i.get(d,a),g=i.get(f,a),m=i.get(A,a),y=i.get(p,a),v=Math.min(u,g),_=Math.max(u,g),x=b(v,l),I=b(_,l),w=b(m,l),C=b(y,l),E=[];S(E,I,0),S(E,x,1),E.push(M(C),M(I),M(w),M(x)),i.setItemLayout(a,{sign:h(i,a,u,g,f),initBaseline:u>g?I[s]:x[s],ends:E,brushRect:B(m,y,l)})}function b(t,e){var i=[];return i[o]=e,i[s]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:n.dataToPoint(i)}function S(t,n,i){var s=n.slice(),a=n.slice();s[o]=e(s[o]+r/2,1,!1),a[o]=e(a[o]-r/2,1,!0),i?t.push(s,a):t.push(a,s)}function B(t,e,n){var i=b(t,n),s=b(e,n);return i[o]-=r/2,s[o]-=r/2,{x:i[0],y:i[1],width:r,height:s[1]-i[1]}}function M(t){return t[o]=e(t[o],1),t}}function y(t,e){for(var i,r,l=new a(4*t.count),u=0,g=[],m=[];null!=(r=t.next());){var y=e.get(c,r),v=e.get(d,r),_=e.get(f,r),x=e.get(A,r),I=e.get(p,r);isNaN(y)||isNaN(x)||isNaN(I)?(l[u++]=NaN,u+=3):(l[u++]=h(e,r,v,_,f),g[o]=y,g[s]=x,i=n.dataToPoint(g,null,m),l[u++]=i?i[0]:NaN,l[u++]=i?i[1]:NaN,g[s]=I,i=n.dataToPoint(g,null,m),l[u++]=i?i[1]:NaN)}e.setLayout("largePoints",l)}}};function h(t,e,n,i,r){var o;return o=n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1,o}function u(t,e){var n,i=t.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=r(s(t.get("barMaxWidth"),o),o),l=r(s(t.get("barMinWidth"),1),o),h=t.get("barWidth");return null!=h?r(h,o):Math.max(Math.min(o/2,a),l)}return hvt=l,hvt}function yvt(){if(cvt)return gvt;cvt=1;var t=mH;dvt(),fvt();var e=Avt(),n=pvt(),i=mvt();return t.registerPreprocessor(e),t.registerVisual(n),t.registerLayout(i),gvt}var vvt,_vt,xvt,Ivt,wvt,Cvt,Evt,bvt={};function Svt(){if(_vt)return vvt;_vt=1;var t=Zlt(),e=vot,n=e.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});return vvt=n,vvt}function Bvt(){if(Ivt)return xvt;Ivt=1;var t=bH,e=Tht(),n=e.createSymbol,i=H1,r=i.Group,o=F7(),s=o.parsePercent,a=sut(),l=3;function h(e){return t.isArray(e)||(e=[+e,+e]),e}function u(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function c(t,e){r.call(this);var n=new a(t,e),i=new r;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var g=c.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,r=this.childAt(1),o=0;o "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),g=c;return Dvt=g,Dvt}function Zvt(){if(Lvt)return kvt;Lvt=1;var t=H1,e=ipt(),n=bH,i=Tht(),r=i.createSymbol,o=EY,s=W1;function a(e,n,i){t.Group.call(this),this.add(this.createLine(e,n,i)),this._updateEffectSymbol(e,n)}var l=a.prototype;l.createLine=function(t,n,i){return new e(t,n,i)},l._updateEffectSymbol=function(t,e){var i=t.getItemModel(e),o=i.getModel("effect"),s=o.get("symbolSize"),a=o.get("symbol");n.isArray(s)||(s=[s,s]);var l=o.get("color")||t.getItemVisual(e,"color"),h=this.childAt(1);this._symbolType!==a&&(this.remove(h),h=r(a,-.5,-.5,1,1,l),h.z2=100,h.culling=!0,this.add(h)),h&&(h.setStyle("shadowColor",l),h.setStyle(o.getItemStyle(["color"])),h.attr("scale",s),h.setColor(l),h.attr("scale",s),this._symbolType=a,this._symbolScale=s,this._updateEffectAnimation(t,o,e))},l._updateEffectAnimation=function(t,e,i){var r=this.childAt(1);if(r){var o=this,s=t.getItemLayout(i),a=1e3*e.get("period"),l=e.get("loop"),h=e.get("constantSpeed"),u=n.retrieve(e.get("delay"),(function(e){return e/t.count()*a/3})),c="function"==typeof u;if(r.ignore=!0,this.updateAnimationPoints(r,s),h>0&&(a=this.getLineLength(r)/h*1e3),a!==this._period||l!==this._loop){r.stopAnimation();var g=u;c&&(g=u(i)),r.__t>0&&(g=-a*r.__t),r.__t=0;var d=r.animate("",l).when(a,{__t:1}).delay(g).during((function(){o.updateSymbolPosition(r)}));l||d.done((function(){o.remove(r)})),d.start()}this._period=a,this._loop=l}},l.getLineLength=function(t){return o.dist(t.__p1,t.__cp1)+o.dist(t.__cp1,t.__p2)},l.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},l.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},l.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,a=t.position,l=[a[0],a[1]],h=s.quadraticAt,u=s.quadraticDerivativeAt;a[0]=h(e[0],i[0],n[0],r),a[1]=h(e[1],i[1],n[1],r);var c=u(e[0],i[0],n[0],r),g=u(e[1],i[1],n[1],r);if(t.rotation=-Math.atan2(g,c)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT=0&&!(r[l]<=e);l--);l=Math.min(l,o-2)}else{for(var l=s;le);l++);l=Math.min(l-1,o-2)}i.lerp(t.position,n[l],n[l+1],(e-r[l])/(r[l+1]-r[l]));var h=n[l+1][0]-n[l][0],u=n[l+1][1]-n[l][1];t.rotation=-Math.atan2(u,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=e,t.ignore=!1}},e.inherits(r,n);var s=r;return zvt=s,zvt}function $vt(){if(Nvt)return Ovt;Nvt=1;var t=H1,e=p6,n=H3,i=K3,r=t.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var s=1;s0){var c=(a+h)/2-(l-u)*i,g=(l+u)/2-(h-a)*i;t.quadraticCurveTo(c,g,h,u)}else t.lineTo(h,u)}},findDataIndex:function(t,e){var r=this.shape,o=r.segs,s=r.curveness;if(r.polyline)for(var a=0,l=0;l0)for(var u=o[l++],c=o[l++],g=1;g0){var A=(u+d)/2-(c-f)*s,p=(c+f)/2-(d-u)*s;if(i.containStroke(u,c,A,p,d,f))return a}else if(n.containStroke(u,c,d,f))return a;a++}return-1}});function o(){this.group=new t.Group}var s=o.prototype;s.isPersistent=function(){return!this._incremental},s.updateData=function(t){this.group.removeAll();var e=new r({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},s.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new e({silent:!0})),this.group.add(this._incremental)):this._incremental=null},s.incrementalUpdate=function(t,e){var n=new r;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},s.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},s._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},s._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var a=o;return Ovt=a,Ovt}function t_t(){if(jvt)return Gvt;jvt=1;var t=Tot,e={seriesType:"lines",plan:t(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;function r(r,o){var s=[];if(i){var a,l=r.end-r.start;if(n){for(var h=0,u=r.start;u0){var B=s(v)?l:h;v>0&&(v=v*b+C),x[I++]=B[S],x[I++]=B[S+1],x[I++]=B[S+2],x[I++]=B[S+3]*v*256}else I+=4}return g.putImageData(_,0,0),c},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=t.createCanvas()),n=this.pointSize+this.blurSize,i=2*n;e.width=i,e.height=i;var r=e.getContext("2d");return r.clearRect(0,0,i,i),r.shadowOffsetX=i,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-n,n,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],s=0,a=0;a<256;a++)e[n](a/255,!0,o),r[s++]=o[0],r[s++]=o[1],r[s++]=o[2],r[s++]=o[3];return r}};var i=n;return s_t=i,s_t}function f_t(){if(h_t)return l_t;h_t=1;var t=mH,e=H1,n=d_t(),i=bH;function r(t,e,n){var r=t[1]-t[0];e=i.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}));var o=e.length,s=0;return function(t){for(var i=s;i=0;i--){r=e[i].interval;if(r[0]<=t&&t<=r[1]){s=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function s(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var a=t.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):s(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){var r=e.coordinateSystem;r&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,n,r,o,s){var a,l,h=t.coordinateSystem;if("cartesian2d"===h.type){var u=h.getAxis("x"),c=h.getAxis("y");a=u.getBandWidth(),l=c.getBandWidth()}for(var g=this.group,d=t.getData(),f="itemStyle",A="emphasis.itemStyle",p="label",m="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),v=t.getModel(A).getItemStyle(),_=t.getModel(p),x=t.getModel(m),I=h.type,w="cartesian2d"===I?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],C=r;C0?1:s<0?-1:0}function p(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function m(t,n,i,r,o,a,l,h,u,c){var g=u.valueDim,d=u.categoryDim,f=Math.abs(i[d.wh]),A=t.getItemVisual(n,"symbolSize");e.isArray(A)?A=A.slice():(null==A&&(A="100%"),A=[A,A]),A[d.index]=s(A[d.index],f),A[g.index]=s(A[g.index],r?f:Math.abs(a)),c.symbolSize=A;var p=c.symbolScale=[A[0]/h,A[1]/h];p[g.index]*=(u.isHorizontal?-1:1)*l}function y(t,e,n,i,r){var o=t.get(u)||0;o&&(g.attr({scale:e.slice(),rotation:n}),g.updateTransform(),o/=g.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function v(t,n,i,r,o,l,h,u,c,g,d,f){var A=d.categoryDim,p=d.valueDim,m=f.pxSign,y=Math.max(n[p.index]+u,0),v=y;if(r){var _=Math.abs(c),x=e.retrieve(t.get("symbolMargin"),"15%")+"",I=!1;x.lastIndexOf("!")===x.length-1&&(I=!0,x=x.slice(0,x.length-1)),x=s(x,n[p.index]);var w=Math.max(y+2*x,0),C=I?0:2*x,E=a(r),b=E?r:Q((_+C)/w),S=_-b*y;x=S/2/(I?b:b-1),w=y+2*x,C=I?0:2*x,!E&&"fixed"!==r&&(b=g?Q((Math.abs(g)+C)/w):0),v=b*w-C,f.repeatTimes=b,f.symbolMargin=x}var B=m*(v/2),M=f.pathPosition=[];M[A.index]=i[A.wh]/2,M[p.index]="start"===h?B:"end"===h?c-B:c/2,l&&(M[0]+=l[0],M[1]+=l[1]);var T=f.bundlePosition=[];T[A.index]=i[A.xy],T[p.index]=i[p.xy];var D=f.barRectShape=e.extend({},i);D[p.wh]=m*Math.max(Math.abs(i[p.wh]),Math.abs(M[p.index]+B)),D[A.wh]=i[A.wh];var R=f.clipShape={};R[A.xy]=-i[A.xy],R[A.wh]=d.ecSize[A.wh],R[p.xy]=0,R[p.wh]=i[p.wh]}function _(t){var e=t.symbolPatternSize,n=r(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function x(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,s=n.valueLineWidth,a=n.pathPosition,l=e.valueDim,h=n.repeatTimes||0,u=0,c=o[e.valueDim.index]+s+2*n.symbolMargin;for(k(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=h,u0:i<0)&&(r=h-1-t),e[l.index]=c*(r-h/2+.5)+a[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function A(){k(t,(function(t){t.trigger("emphasis")}))}function p(){k(t,(function(t){t.trigger("normal")}))}}function I(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;function s(){this.trigger("emphasis")}function a(){this.trigger("normal")}o?L(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=_(n),r.add(o),L(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",s).on("mouseout",a)),B(o,n)}function w(t,i,r){var o=e.extend({},i.barRectShape),s=t.__pictorialBarRect;s?L(s,null,{shape:o},i,r):(s=t.__pictorialBarRect=new n.Rect({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(s))}function C(t,i,r,o){if(r.symbolClip){var s=t.__pictorialClipPath,a=e.extend({},r.clipShape),l=i.valueDim,h=r.animationModel,u=r.dataIndex;if(s)n.updateProps(s,{shape:a},h,u);else{a[l.wh]=0,s=new n.Rect({shape:a}),t.__pictorialBundle.setClipPath(s),t.__pictorialClipPath=s;var c={};c[l.wh]=r.clipShape[l.wh],n[o?"updateProps":"initProps"](s,{shape:c},h,u)}}}function E(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=b,n.isAnimationEnabled=S,n}function b(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function S(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function B(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function M(t,e,i,r){var o=new n.Group,s=new n.Group;return o.add(s),o.__pictorialBundle=s,s.attr("position",i.bundlePosition.slice()),i.symbolRepeat?x(o,e,i):I(o,e,i),w(o,i,r),C(o,e,i,r),o.__pictorialShapeStr=R(t,i),o.__pictorialSymbolMeta=i,o}function T(t,e,i){var r=i.animationModel,o=i.dataIndex,s=t.__pictorialBundle;n.updateProps(s,{position:i.bundlePosition.slice()},r,o),i.symbolRepeat?x(t,e,i,!0):I(t,e,i,!0),w(t,i,!0),C(t,e,i,!0)}function D(t,i,r,o){var s=o.__pictorialBarRect;s&&(s.style.text=null);var a=[];k(o,(function(t){a.push(t)})),o.__pictorialMainPath&&a.push(o.__pictorialMainPath),o.__pictorialClipPath&&(r=null),e.each(a,(function(t){n.updateProps(t,{scale:[0,0]},r,i,(function(){o.parent&&o.parent.remove(o)}))})),t.setItemGraphicEl(i,null)}function R(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function k(t,n,i){e.each(t.__pictorialBundle.children(),(function(e){e!==t.__pictorialBarRect&&n.call(i,e)}))}function L(t,e,i,r,o,s){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,s)}function P(t,i,r){var o=r.color,s=r.dataIndex,a=r.itemModel,l=a.getModel("itemStyle").getItemStyle(["color"]),u=a.getModel("emphasis.itemStyle").getItemStyle(),c=a.getShallow("cursor");k(t,(function(t){t.setColor(o),t.setStyle(e.defaults({fill:o,opacity:r.opacity},l)),n.setHoverStyle(t,u),c&&(t.cursor=c),t.z2=r.z2}));var g={},d=i.valueDim.posDesc[+(r.boundingLength>0)],f=t.__pictorialBarRect;h(f.style,g,a,o,i.seriesModel,s,d),n.setHoverStyle(f,g)}function Q(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var z=d;return y_t=z,y_t}function C_t(){if(__t)return x_t;__t=1;var t=mH,e=bH;nct(),I_t(),w_t();var n=Iht(),i=n.layout,r=Mut();return bct(),t.registerLayout(e.curry(i,"pictorialBar")),t.registerVisual(r("pictorialBar","roundRect")),x_t}var E_t,b_t,S_t,B_t,M_t,T_t={},D_t={},R_t={};function k_t(){if(b_t)return E_t;b_t=1;var t=bH,e=Yht(),n=function(t,n,i,r,o){e.call(this,t,n,i),this.type=r||"value",this.position=o||"bottom",this.orient=null};n.prototype={constructor:n,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},t.inherits(n,e);var i=n;return E_t=i,E_t}function L_t(){if(B_t)return S_t;B_t=1;var t=k_t(),e=Eht(),n=Q7,i=n.getLayoutRect,r=bH,o=r.each;function s(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}s.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:s,_init:function(n,i,r){var o=this.dimension,s=new t(o,e.createScaleByModel(n),[0,0],n.get("type"),n.get("position")),a="category"===s.type;s.onBand=a&&n.get("boundaryGap"),s.inverse=n.get("inverse"),s.orient=n.get("orient"),n.axis=s,s.model=n,s.coordinateSystem=this,this._axis=s},update:function(t,n){t.eachSeries((function(t){if(t.coordinateSystem===this){var n=t.getData();o(n.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(n,t)}),this),e.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=i({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var a=s;return S_t=a,S_t}function P_t(){if(M_t)return R_t;M_t=1;var t=L_t(),e=Xnt;function n(e,n){var i=[];return e.eachComponent("singleAxis",(function(r,o){var s=new t(r,e,n);s.name="single_"+o,s.resize(r,n),r.coordinateSystem=s,i.push(s)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}})),i}return e.register("single",{create:n,dimensions:t.prototype.dimensions}),R_t}var Q_t,z_t,F_t,O_t,N_t,G_t={};function j_t(){if(Q_t)return G_t;Q_t=1;var t=bH;function e(e,n){n=n||{};var i=e.coordinateSystem,r=e.axis,o={},s=r.position,a=r.orient,l=i.getRect(),h=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:h[2],bottom:h[3]},vertical:{left:h[0],right:h[1]}};o.position=["vertical"===a?u.vertical[s]:h[0],"horizontal"===a?u.horizontal[s]:h[3]];var c={horizontal:0,vertical:1};o.rotation=Math.PI/2*c[a];var g={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=g[s],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),t.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var d=n.rotate;return null==d&&(d=e.get("axisLabel.rotate")),o.labelRotation="top"===s?-d:d,o.z2=1,o}return G_t.layout=e,G_t}function U_t(){if(F_t)return z_t;F_t=1;var t=bH,e=act(),n=H1,i=j_t(),r=dct(),o=wct(),s=o.rectCoordAxisBuildSplitArea,a=o.rectCoordAxisHandleRemove,l=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine"],u=r.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(r,o,s,a){var c=this.group;c.removeAll();var g=this._axisGroup;this._axisGroup=new n.Group;var d=i.layout(r),f=new e(r,d);t.each(l,f.add,f),c.add(this._axisGroup),c.add(f.getGroup()),t.each(h,(function(t){r.get(t+".show")&&this["_"+t](r)}),this),n.groupTransition(g,this._axisGroup,r),u.superCall(this,"render",r,o,s,a)},remove:function(){a(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),r=i.getModel("lineStyle"),o=r.get("width"),s=r.get("color");s=s instanceof Array?s:[s];for(var a=t.coordinateSystem.getRect(),l=e.isHorizontal(),h=[],u=0,c=e.getTicksCoords({tickModel:i}),g=[],d=[],f=0;f=0&&l<0)&&(a=A,l=f,r=u,s.length=0),o(c,(function(t){s.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:s,snapToValue:r}}function c(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function g(t,e,n,r){var o=n.payloadBatch,s=e.axis,a=s.model,l=e.axisPointerModel;if(e.triggerTooltip&&o.length){var h=e.coordSys.model,u=i.makeKey(h),c=t.map[u];c||(c=t.map[u]={coordSysId:h.id,coordSysIndex:h.componentIndex,coordSysType:h.type,coordSysMainType:h.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:s.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:o.slice()})}}function d(t,e,n){var i=n.axesInfo=[];o(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function f(t,e,n,i){if(!y(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function A(e,n,i){var r=i.getZr(),s="axisPointerLastHighlights",l=a(r)[s]||{},h=a(r)[s]={};o(e,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&o(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;h[e]=t}))}));var u=[],c=[];t.each(l,(function(t,e){!h[e]&&c.push(t)})),t.each(h,(function(t,e){!l[e]&&u.push(t)})),c.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:c}),u.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:u})}function p(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function m(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function y(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}return Y_t=l,Y_t}function txt(){if(Z_t)return X_t;Z_t=1;var t=mH,e=t.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),n=e;return X_t=n,X_t}var ext,nxt,ixt,rxt,oxt,sxt={};function axt(){if(ext)return sxt;ext=1;var t=bH,e=EH,n=Z2,i=n.makeInner,r=i(),o=t.each;function s(t,n,i){if(!e.node){var o=n.getZr();r(o).records||(r(o).records={}),a(o,n);var s=r(o).records[t]||(r(o).records[t]={});s.handler=i}}function a(e,n){function i(t,i){e.on(t,(function(t){var s=c(n);o(r(e).records,(function(e){e&&i(e,t,s.dispatchAction)})),l(s.pendings,n)}))}r(e).initialized||(r(e).initialized=!0,i("click",t.curry(u,"click")),i("mousemove",t.curry(u,"mousemove")),i("globalout",h))}function l(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function h(t,e,n){t.handler("leave",null,n)}function u(t,e,n,i){e.handler(t,n,i)}function c(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function g(t,n){if(!e.node){var i=n.getZr(),o=(r(i).records||{})[t];o&&(r(i).records[t]=null)}}return sxt.register=s,sxt.unregister=g,sxt}function lxt(){if(ixt)return nxt;ixt=1;var t=mH,e=axt(),n=t.extendComponentView({type:"axisPointer",render:function(t,n,i){var r=n.getComponent("tooltip"),o=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";e.register("axisPointer",i,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,i){e.unregister(i.getZr(),"axisPointer"),n.superApply(this._model,"remove",arguments)},dispose:function(t,i){e.unregister("axisPointer",i),n.superApply(this._model,"dispose",arguments)}}),i=n;return nxt=i,nxt}function hxt(){if(oxt)return rxt;oxt=1;var t=bH,e=I1,n=H1,i=gct(),r=lW,o=Jot,s=Z2,a=s.makeInner,l=a(),h=t.clone,u=t.bind;function c(){}function g(t,e,i,r){d(l(i).lastProp,r)||(l(i).lastProp=r,e?n.updateProps(i,r,t):(i.stopAnimation(),i.attr(r)))}function d(e,n){if(t.isObject(e)&&t.isObject(n)){var i=!0;return t.each(n,(function(t,n){i=i&&d(e[n],t)})),!!i}return e===n}function f(t,e){t[e.get("label.show")?"show":"hide"]()}function A(t){return{position:t.position.slice(),rotation:t.rotation||0}}function p(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}c.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,i,r,o){var s=i.get("value"),a=i.get("status");if(this._axisModel=e,this._axisPointerModel=i,this._api=r,o||this._lastValue!==s||this._lastStatus!==a){this._lastValue=s,this._lastStatus=a;var l=this._group,h=this._handle;if(!a||"hide"===a)return l&&l.hide(),void(h&&h.hide());l&&l.show(),h&&h.show();var u={};this.makeElOption(u,s,e,i,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,i);if(l){var f=t.curry(g,i,d);this.updatePointerEl(l,u,f,i),this.updateLabelEl(l,u,f,i)}else l=this._group=new n.Group,this.createPointerEl(l,u,e,i),this.createLabelEl(l,u,e,i),r.getZr().add(l);p(l,i,!0),this._renderHandle(s)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),r=t.axis,o="category"===r.type,s=e.get("snap");if(!s&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&r.getBandWidth()>a)return!0;if(s){var l=i.getAxisInfo(t).seriesDataCount,h=r.getExtent();return Math.abs(h[0]-h[1])/l>a}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,i,r){var o=e.pointer;if(o){var s=l(t).pointerEl=new n[o.type](h(e.pointer));t.add(s)}},createLabelEl:function(t,e,i,r){if(e.label){var o=l(t).labelEl=new n.Rect(h(e.label));t.add(o),f(o,r)}},updatePointerEl:function(t,e,n){var i=l(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=l(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),f(r,i))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var i,s=this._axisPointerModel,a=this._api.getZr(),l=this._handle,h=s.getModel("handle"),c=s.get("status");if(!h.get("show")||!c||"hide"===c)return l&&a.remove(l),void(this._handle=null);this._handle||(i=!0,l=this._handle=n.createIcon(h.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){r.stop(t.event)},onmousedown:u(this._onHandleDragMove,this,0,0),drift:u(this._onHandleDragMove,this),ondragend:u(this._onHandleDragEnd,this)}),a.add(l)),p(l,s,!1);var g=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];l.setStyle(h.getItemStyle(null,g));var d=h.get("size");t.isArray(d)||(d=[d,d]),l.attr("scale",[d[0]/2,d[1]/2]),o.createOrUpdate(this,"_doDispatchAxisPointer",h.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,i)}},_moveHandleToValue:function(t,e){g(this._axisPointerModel,!e&&this._moveAnimation,this._handle,A(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(A(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(A(i)),l(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},c.prototype.constructor=c,e.enableClassExtend(c);var m=c;return rxt=m,rxt}var uxt,cxt,gxt,dxt,fxt,Axt,pxt,mxt,yxt,vxt,_xt,xxt,Ixt,wxt,Cxt,Ext,bxt={};function Sxt(){if(uxt)return bxt;uxt=1;var t=bH,e=H1,n=DJ,i=O7,r=uX,o=Eht(),s=act();function a(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function l(t,e,r,o,s){var a=r.get("value"),l=u(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get("label.precision"),formatter:r.get("label.formatter")}),c=r.getModel("label"),g=i.normalizeCssArray(c.get("padding")||0),d=c.getFont(),f=n.getBoundingRect(l,d),A=s.position,p=f.width+g[1]+g[3],m=f.height+g[0]+g[2],y=s.align;"right"===y&&(A[0]-=p),"center"===y&&(A[0]-=p/2);var v=s.verticalAlign;"bottom"===v&&(A[1]-=m),"middle"===v&&(A[1]-=m/2),h(A,p,m,o);var _=c.get("backgroundColor");(!_||"auto"===_)&&(_=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:p,height:m,r:c.get("borderRadius")},position:A.slice(),style:{text:l,textFont:d,textFill:c.getTextColor(),textPosition:"inside",textPadding:g,fill:_,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}}function h(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function u(e,n,i,r,s){e=n.scale.parse(e);var a=n.scale.getLabel(e,{precision:s.precision}),l=s.formatter;if(l){var h={value:o.getAxisRawValue(n,e),axisDimension:n.dim,axisIndex:n.index,seriesData:[]};t.each(r,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&h.seriesData.push(r)})),t.isString(l)?a=l.replace("{value}",a):t.isFunction(l)&&(a=l(h))}return a}function c(t,n,i){var o=r.create();return r.rotate(o,o,i.rotation),r.translate(o,o,i.position),e.applyTransform([t.dataToCoord(n),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],o)}function g(t,e,n,i,r,o){var a=s.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),l(e,i,r,o,{position:c(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function d(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function f(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function A(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}return bxt.buildElStyle=a,bxt.buildLabelElOption=l,bxt.getValueLabel=u,bxt.getTransformedPosition=c,bxt.buildCartesianSingleLabelElOption=g,bxt.makeLineShape=d,bxt.makeRectShape=f,bxt.makeSectorShape=A,bxt}function Bxt(){if(gxt)return cxt;gxt=1;var t=hxt(),e=Sxt(),n=pct(),i=dct(),r=t.extend({makeElOption:function(t,i,r,a,l){var h=r.axis,u=h.grid,c=a.get("type"),g=o(u,h).getOtherAxis(h).getGlobalExtent(),d=h.toGlobalCoord(h.dataToCoord(i,!0));if(c&&"none"!==c){var f=e.buildElStyle(a),A=s[c](h,d,g);A.style=f,t.graphicKey=A.type,t.pointer=A}var p=n.layout(u.model,r);e.buildCartesianSingleLabelElOption(i,t,p,r,a,l)},getHandleTransform:function(t,i,r){var o=n.layout(i.axis.grid.model,i,{labelInside:!1});return o.labelMargin=r.get("handle.margin"),{position:e.getTransformedPosition(i.axis,t,o),rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,s=r.grid,a=r.getGlobalExtent(!0),l=o(s,r).getOtherAxis(r).getGlobalExtent(),h="x"===r.dim?0:1,u=t.position;u[h]+=e[h],u[h]=Math.min(a[1],u[h]),u[h]=Math.max(a[0],u[h]);var c=(l[1]+l[0])/2,g=[c,c];g[h]=u[h];var d=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:t.rotation,cursorPoint:g,tooltipOption:d[h]}}});function o(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var s={line:function(t,n,i){var r=e.makeLineShape([n,i[0]],[n,i[1]],a(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,n,i){var r=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:e.makeRectShape([n-r/2,i[0]],[r,o],a(t))}}};function a(t){return"x"===t.dim?0:1}i.registerAxisPointerClass("CartesianAxisPointer",r);var l=r;return cxt=l,cxt}function Mxt(){if(dxt)return K_t;dxt=1;var t=mH,e=bH,n=gct(),i=$_t();return txt(),lxt(),Bxt(),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!e.isArray(n)&&(t.axisPointer.link=[n])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=n.collect(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},i),K_t}function Txt(){if(Axt)return fxt;Axt=1;var t=hxt(),e=Sxt(),n=j_t(),i=dct(),r=["x","y"],o=["width","height"],s=t.extend({makeElOption:function(t,i,r,o,s){var u=r.axis,c=u.coordinateSystem,g=h(c,1-l(u)),d=c.dataToPoint(i)[0],f=o.get("type");if(f&&"none"!==f){var A=e.buildElStyle(o),p=a[f](u,d,g);p.style=A,t.graphicKey=p.type,t.pointer=p}var m=n.layout(r);e.buildCartesianSingleLabelElOption(i,t,m,r,o,s)},getHandleTransform:function(t,i,r){var o=n.layout(i,{labelInside:!1});return o.labelMargin=r.get("handle.margin"),{position:e.getTransformedPosition(i.axis,t,o),rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,s=l(r),a=h(o,s),u=t.position;u[s]+=e[s],u[s]=Math.min(a[1],u[s]),u[s]=Math.max(a[0],u[s]);var c=h(o,1-s),g=(c[1]+c[0])/2,d=[g,g];return d[s]=u[s],{position:u,rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}}}),a={line:function(t,n,i){var r=e.makeLineShape([n,i[0]],[n,i[1]],l(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,n,i){var r=t.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:e.makeRectShape([n-r/2,i[0]],[r,o],l(t))}}};function l(t){return t.isHorizontal()?0:1}function h(t,e){var n=t.getRect();return[n[r[e]],n[r[e]]+n[o[e]]]}i.registerAxisPointerClass("SingleAxisPointer",s);var u=s;return fxt=u,fxt}function Dxt(){if(pxt)return D_t;pxt=1;var t=mH;return P_t(),U_t(),q_t(),Mxt(),Txt(),t.extendComponentView({type:"single"}),D_t}function Rxt(){if(yxt)return mxt;yxt=1;var t=vot,e=Glt(),n=zlt(),i=n.getDimensionTypeByAxis,r=Olt(),o=bH,s=Z2,a=s.groupData,l=O7,h=l.encodeHTML,u=vgt(),c=2,g=t.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new u(o.bind(this.getData,this),o.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n={},i=a(t,(function(t){return n.hasOwnProperty(t[0])||(n[t[0]]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,s=0;so&&(o=h),i.push(h)}for(var u=0;uo&&(o=g)}return s.y0=r,s.max=o,s}return xxt=n,xxt}function Pxt(){if(Cxt)return wxt;Cxt=1;var t=bH,e=t.createHashMap;function n(t){t.eachSeriesByType("themeRiver",(function(t){var n=t.getData(),i=t.getRawData(),r=t.get("color"),o=e();n.each((function(t){o.set(n.getRawIndex(t),t)})),i.each((function(e){var s=i.getName(e),a=r[(t.nameMap.get(s)-1)%r.length];i.setItemVisual(e,"color",a);var l=o.get(e);null!=l&&n.setItemVisual(l,"color",a)}))}))}return wxt=n,wxt}function Qxt(){if(Ext)return T_t;Ext=1;var t=mH;Dxt(),Rxt(),kxt();var e=Lxt(),n=Pxt(),i=bgt();return t.registerLayout(e),t.registerVisual(n),t.registerProcessor(i("themeRiver")),T_t}var zxt,Fxt,Oxt,Nxt,Gxt,jxt,Uxt={};function qxt(){if(Fxt)return zxt;Fxt=1;var t=bH,e=vot,n=jft(),i=b7,r=fAt(),o=r.wrapTreePathInfo,s=e.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,r){var o={name:e.name,children:e.data};a(o);var s=t.map(e.levels||[],(function(t){return new i(t,this,r)}),this),l=n.createTree(o,this,h);function h(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t}))}return l.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=o(i,this),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;(!t||t!==e&&!e.contains(t))&&(this._viewRoot=e)}});function a(e){var n=0;t.each(e.children,(function(e){a(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i}));var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}return zxt=s,zxt}function Vxt(){if(Nxt)return Oxt;Nxt=1;var t=bH,e=H1,n={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},i=2,r=4;function o(t,n,o){e.Group.call(this);var s=new e.Sector({z2:i});s.seriesIndex=n.seriesIndex;var a=new e.Text({z2:r,silent:t.getModel("label").get("silent")});function l(){a.ignore=a.hoverIgnore}function h(){a.ignore=a.normalIgnore}this.add(s),this.add(a),this.updateData(!0,t,"normal",n,o),this.on("emphasis",l).on("normal",h).on("mouseover",l).on("mouseout",h)}var s=o.prototype;s.updateData=function(n,i,r,o,s){this.node=i,i.piece=this,o=o||this._seriesModel,s=s||this._ecModel;var a=this.childAt(0);a.dataIndex=i.dataIndex;var h=i.getModel(),u=i.getLayout(),g=t.extend({},u);g.label=null;var d=l(i,o,s);c(i,o,d);var f,A=h.getModel("itemStyle").getItemStyle();if("normal"===r)f=A;else{var p=h.getModel(r+".itemStyle").getItemStyle();f=t.merge(p,A)}f=t.defaults({lineJoin:"bevel",fill:f.fill||d},f),n?(a.setShape(g),a.shape.r=u.r0,e.updateProps(a,{shape:{r:u.r}},o,i.dataIndex),a.useStyle(f)):"object"==typeof f.fill&&f.fill.type||"object"==typeof a.style.fill&&a.style.fill.type?(e.updateProps(a,{shape:g},o),a.useStyle(f)):e.updateProps(a,{shape:g,style:f},o),this._updateLabel(o,d,r);var m=h.getShallow("cursor");if(m&&a.attr("cursor",m),n){var y=o.getShallow("highlightPolicy");this._initEvents(a,i,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=s||this._ecModel,e.setHoverStyle(this)},s.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):u(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==n.NONE&&i.piece.childAt(0).trigger("downplay"))}))},s.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},s.onHighlight=function(){this.updateData(!1,this.node,"highlight")},s.onDownplay=function(){this.updateData(!1,this.node,"downplay")},s._updateLabel=function(n,i,r){var o=this.node.getModel(),s=o.getModel("label"),a="normal"===r||"emphasis"===r?s:o.getModel(r+".label"),l=o.getModel("emphasis.label"),h=a.get("formatter"),u=h?r:"normal",c=t.retrieve(n.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===S("show")&&(c="");var g=this.node.getLayout(),d=a.get("minAngle");null==d&&(d=s.get("minAngle")),d=d/180*Math.PI;var f=g.endAngle-g.startAngle;null!=d&&Math.abs(f)Math.PI/2?"right":"left"):I&&"center"!==I?"left"===I?(p=g.r0+x,m>Math.PI/2&&(I="right")):"right"===I&&(p=g.r-x,m>Math.PI/2&&(I="left")):(p=(g.r+g.r0)/2,I="center"),A.attr("style",{text:c,textAlign:I,textVerticalAlign:S("verticalAlign")||"middle",opacity:S("opacity")});var w=p*y+g.cx,C=p*v+g.cy;A.attr("position",[w,C]);var E=S("rotate"),b=0;function S(t){var e=a.get(t);return null==e?s.get(t):e}"radial"===E?(b=-m,b<-Math.PI/2&&(b+=Math.PI)):"tangential"===E?(b=Math.PI/2-m,b>Math.PI/2?b-=Math.PI:b<-Math.PI/2&&(b+=Math.PI)):"number"==typeof E&&(b=E*Math.PI/180),A.attr("rotation",b)},s._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},s=function(){r.onNormal()},a=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",s).on("emphasis",o).on("normal",s).on("downplay",a).on("highlight",l)},t.inherits(o,e.Group);var a=o;function l(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");(!r||0===r.length)&&(i=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var s=n.option.color.length;return o=n.option.color[h(t)%s],o}function h(e){for(var n=e;n.depth>1;)n=n.parentNode;var i=e.getAncestors()[0];return t.indexOf(i.children,n)}function u(t,e,i){return i!==n.NONE&&(i===n.SELF?t===e:i===n.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function c(t,e,n){var i=e.getData();i.setItemVisual(t.dataIndex,"color",n)}return Oxt=a,Oxt}function Hxt(){if(jxt)return Gxt;jxt=1;var t=bH,e=Kot,n=Vxt(),i=blt(),r=O7,o=r.windowOpen,s="sunburstRootToNode",a=e.extend({type:"sunburst",init:function(){},render:function(e,r,o,s){var a=this;this.seriesModel=e,this.api=o,this.ecModel=r;var l=e.getData(),h=l.tree.root,u=e.getViewRoot(),c=this.group,g=e.get("renderLabelForZeroData"),d=[];u.eachNode((function(t){d.push(t)}));var f=this._oldChildren||[];if(m(d,f),_(h,u),s&&s.highlight&&s.highlight.piece){var A=e.getShallow("highlightPolicy");s.highlight.piece.onEmphasis(A)}else if(s&&s.unhighlight){var p=this.virtualPiece;!p&&h.children.length&&(p=h.children[0].piece),p&&p.onNormal()}function m(e,n){function r(t){return t.getId()}function o(t,i){var r=null==t?null:e[t],o=null==i?null:n[i];y(r,o)}0===e.length&&0===n.length||new i(n,e,r,r).add(o).update(o).remove(t.curry(o,null)).execute()}function y(t,i){if(!g&&t&&!t.getValue()&&(t=null),t!==h&&i!==h)if(i&&i.piece)t?(i.piece.updateData(!1,t,"normal",e,r),l.setItemGraphicEl(t.dataIndex,i.piece)):v(i);else if(t){var o=new n(t,e,r);c.add(o),l.setItemGraphicEl(t.dataIndex,o)}}function v(t){!t||t.piece&&(c.remove(t.piece),t.piece=null)}function _(t,i){if(i.depth>0){a.virtualPiece?a.virtualPiece.updateData(!1,t,"normal",e,r):(a.virtualPiece=new n(t,e,r),c.add(a.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){a._rootToNode(i.parentNode)};i.piece._onclickEvent=o,a.virtualPiece.on("click",o)}else a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var s=i.getModel(),a=s.get("link");if(a){var l=s.get("target",!0)||"_blank";o(a,l)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:s,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,s=Math.sqrt(r*r+o*o);return s<=i.r&&s>=i.r0}}}),l=a;return Gxt=l,Gxt}var Yxt,Wxt,Xxt,Zxt,Kxt={};function Jxt(){if(Yxt)return Kxt;Yxt=1;var t=mH,e=fAt(),n="sunburstRootToNode";t.registerAction({type:n,update:"updateView"},(function(t,i){function r(i,r){var o=e.retrieveTargetInfo(t,[n],i);if(o){var s=i.getViewRoot();s&&(t.direction=e.aboveViewRoot(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}i.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var i="sunburstHighlight";t.registerAction({type:i,update:"updateView"},(function(t,n){function r(n,r){var o=e.retrieveTargetInfo(t,[i],n);o&&(t.highlight=o.node)}n.eachComponent({mainType:"series",subType:"sunburst",query:t},r)}));var r="sunburstUnhighlight";return t.registerAction({type:r,update:"updateView"},(function(t,e){function n(e,n){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),Kxt}function $xt(){if(Xxt)return Wxt;Xxt=1;var t=F7(),e=t.parsePercent,n=bH,i=Math.PI/180;function r(t,r,s,a){r.eachSeriesByType(t,(function(t){var r=t.get("center"),a=t.get("radius");n.isArray(a)||(a=[0,a]),n.isArray(r)||(r=[r,r]);var l=s.getWidth(),h=s.getHeight(),u=Math.min(l,h),c=e(r[0],l),g=e(r[1],h),d=e(a[0],u/2),f=e(a[1],u/2),A=-t.get("startAngle")*i,p=t.get("minAngle")*i,m=t.getData().tree.root,y=t.getViewRoot(),v=y.depth,_=t.get("sort");null!=_&&o(y,_);var x=0;n.each(y.children,(function(t){!isNaN(t.getValue())&&x++}));var I=y.getValue(),w=Math.PI/(I||x)*2,C=y.depth>0,E=y.height-(C?-1:1),b=(f-d)/(E||1),S=t.get("clockwise"),B=t.get("stillShowZeroSum"),M=S?1:-1,T=function(t,i){if(t){var r=i;if(t!==m){var o=t.getValue(),s=0===I&&B?w:o*w;so[1]&&o.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:o[1],r0:o[0]},api:{coord:t.bind((function(t){var e=i.dataToRadius(t[0]),o=r.dataToAngle(t[1]),s=n.coordToPoint([e,o]);return s.push(e,o*Math.PI/180),s})),size:t.bind(e,n)}}}return aIt=n,aIt}function mIt(){if(uIt)return hIt;function t(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}return uIt=1,hIt=t,hIt}function yIt(){if(cIt)return gIt;cIt=1;var t=bH,e=H1,n=out(),i=n.getDefaultLabel,r=Zlt(),o=Iht(),s=o.getLayoutOnAxis,a=blt(),l=vot,h=b7,u=Kot,c=Sut(),g=c.createClipPath,d=dIt(),f=fIt(),A=AIt(),p=pIt(),m=mIt(),y=e.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],_=["emphasis","itemStyle"],x=["label"],I=["emphasis","label"],w="e\0\0",C={cartesian2d:d,geo:f,singleAxis:A,polar:p,calendar:m};function E(t){var n,i=t.type;if("path"===i){var r=t.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,s=O(r);n=e.makePath(s,null,o,r.layout||"center"),n.__customPathData=s}else if("image"===i)n=new e.Image({}),n.__customImagePath=t.style.image;else if("text"===i)n=new e.Text({}),n.__customText=t.style.text;else if("group"===i)n=new e.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');var a=e.getShapeClass(i);n=new a}return n.__customGraphicType=i,n.name=t.name,n}function b(n,i,r,o,s,a,l){var h={},u=r.style||{};if(r.shape&&(h.shape=t.clone(r.shape)),r.position&&(h.position=r.position.slice()),r.scale&&(h.scale=r.scale.slice()),r.origin&&(h.origin=r.origin.slice()),r.rotation&&(h.rotation=r.rotation),"image"===n.type&&r.style){var c=h.style={};t.each(["x","y","width","height"],(function(t){S(t,c,u,n.style,a)}))}if("text"===n.type&&r.style){c=h.style={};t.each(["x","y"],(function(t){S(t,c,u,n.style,a)})),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==n.type&&(n.useStyle(u),a)){n.style.opacity=0;var g=u.opacity;null==g&&(g=1),e.initProps(n,{style:{opacity:g}},o,i)}a?n.attr(h):e.updateProps(n,h,o,i),r.hasOwnProperty("z2")&&n.attr("z2",r.z2||0),r.hasOwnProperty("silent")&&n.attr("silent",r.silent),r.hasOwnProperty("invisible")&&n.attr("invisible",r.invisible),r.hasOwnProperty("ignore")&&n.attr("ignore",r.ignore),r.hasOwnProperty("info")&&n.attr("info",r.info);var d=r.styleEmphasis;e.setElementHoverStyle(n,d),l&&e.setAsHighDownDispatcher(n,!1!==d)}function S(t,e,n,i,r){null!=n[t]&&!r&&(e[t]=n[t],n[t]=i[t])}function B(n,r,o,a){var l=n.get("renderItem"),h=n.coordinateSystem,u={};h&&(u=h.prepareCustoms?h.prepareCustoms():C[h.type](h));var c,g,d,f,A,p=t.defaults({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:E,style:b,styleEmphasis:S,visual:B,barLayout:T,currentSeriesIndices:D,font:R},u.api||{}),m={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:u.coordSys,dataInsideLength:r.count(),encode:M(n.getData())},y=!0;return function(e,n){return c=e,y=!0,l&&l(t.defaults({dataIndexInside:e,dataIndex:r.getRawIndex(e),actionType:n?n.type:null},m),p)};function w(t){null==t&&(t=c),y&&(g=r.getItemModel(t),d=g.getModel(x),f=g.getModel(I),A=r.getItemVisual(t,"color"),y=!1)}function E(t,e){return null==e&&(e=c),r.get(r.getDimension(t||0),e)}function b(o,s){null==s&&(s=c),w(s);var a=g.getModel(v).getItemStyle();null!=A&&(a.fill=A);var l=r.getItemVisual(s,"opacity");null!=l&&(a.opacity=l);var h=o?Q(o,d):d;return e.setTextStyle(a,h,null,{autoColor:A,isRectText:!0}),a.text=h.getShallow("show")?t.retrieve2(n.getFormattedLabel(s,"normal"),i(r,s)):null,o&&z(a,o),a}function S(o,s){null==s&&(s=c),w(s);var a=g.getModel(_).getItemStyle(),l=o?Q(o,f):f;return e.setTextStyle(a,l,null,{isRectText:!0},!0),a.text=l.getShallow("show")?t.retrieve3(n.getFormattedLabel(s,"emphasis"),n.getFormattedLabel(s,"normal"),i(r,s)):null,o&&z(a,o),a}function B(t,e){return null==e&&(e=c),r.getItemVisual(e,t)}function T(e){if(h.getBaseAxis){var n=h.getBaseAxis();return s(t.defaults({axis:n},e),a)}}function D(){return o.getCurrentSeriesIndices()}function R(t){return e.getFont(t,o)}}function M(e){var n={};return t.each(e.dimensions,(function(t,i){var r=e.getDimensionInfo(t);if(!r.isExtraCoord){var o=r.coordDim,s=n[o]=n[o]||[];s[r.coordDimIndex]=i}})),n}function T(t,e,n,i,r,o){return t=D(t,e,n,i,r,o,!0),t&&o.setItemGraphicEl(e,t),t}function D(t,e,n,i,r,o,s){var a=!n;n=n||{};var l=n.type,h=n.shape,u=n.style;if(t&&(a||null!=l&&l!==t.__customGraphicType||"path"===l&&N(h)&&O(h)!==t.__customPathData||"image"===l&&G(u,"image")&&u.image!==t.__customImagePath||"text"===l&&G(h,"text")&&u.text!==t.__customText)&&(r.remove(t),t=null),!a){var c=!t;return!t&&(t=E(n)),b(t,e,n,i,o,c,s),"group"===l&&R(t,e,n,i,o),r.add(t),t}}function R(t,e,n,i,r){var o=n.children,s=o?o.length:0,a=n.$mergeChildren,l="byName"===a||n.diffChildrenByName,h=!1===a;if(s||l||h){if(l)return void k({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:i,group:t,data:r});h&&t.removeAll();for(var u=0;u=0?"p":"n",k=w;if(x&&(a[u][D]||(a[u][D]={p:w,n:w}),k=a[u][D][R]),"radius"===f.dim){var L=f.dataToRadius(T)-w,P=i.dataToAngle(D);Math.abs(L)d?d=A:(f.lastTickCount=s,f.lastAutoInterval=d),d}},t.inherits(s,n);var a=s;return BIt=a,BIt}function PIt(){if(DIt)return TIt;DIt=1;var t=kIt(),e=LIt(),n=function(n){this.name=n||"",this.cx=0,this.cy=0,this._radiusAxis=new t,this._angleAxis=new e,this._radiusAxis.polar=this._angleAxis.polar=this};n.prototype={type:"polar",axisPointerEnabled:!0,constructor:n,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);i.inverse?o=s-360:s=o+360;var a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var l=Math.atan2(-n,e)/Math.PI*180,h=ls;)l+=360*h;return[a,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,s=this.r0;return r<=o*o&&r>=s*s}}}};var i=n;return TIt=i,TIt}var QIt,zIt,FIt,OIt,NIt={};function GIt(){if(QIt)return NIt;QIt=1;var t=bH,e=jtt,n=$ut(),i=bht(),r=e.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});t.merge(r.prototype,i);var o={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function s(t,e){return e.type||(e.data?"category":"value")}return n("angle",r,s,o.angle),n("radius",r,s,o.radius),NIt}function jIt(){if(FIt)return zIt;FIt=1;var t=mH;GIt();var e=t.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});return zIt=e,zIt}function UIt(){if(OIt)return RIt;OIt=1;var t=bH,e=PIt(),n=F7(),i=n.parsePercent,r=Eht(),o=r.createScaleByModel,s=r.niceScaleExtent,a=Xnt,l=Xlt(),h=l.getStackedDimension;function u(e,n,r){var o=n.get("center"),s=r.getWidth(),a=r.getHeight();e.cx=i(o[0],s),e.cy=i(o[1],a);var l=e.getRadiusAxis(),h=Math.min(s,a)/2,u=n.get("radius");null==u?u=[0,"100%"]:t.isArray(u)||(u=[0,u]),u=[i(u[0],h),i(u[1],h)],l.inverse?l.setExtent(u[1],u[0]):l.setExtent(u[0],u[1])}function c(e,n){var i=this,r=i.getAngleAxis(),o=i.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===i){var n=e.getData();t.each(n.mapDimension("radius",!0),(function(t){o.scale.unionExtentFromData(n,h(n,t))})),t.each(n.mapDimension("angle",!0),(function(t){r.scale.unionExtentFromData(n,h(n,t))}))}})),s(r.scale,r.model),s(o.scale,o.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),l=360/r.scale.count();r.inverse?a[1]+=l:a[1]-=l,r.setExtent(a[0],a[1])}}function g(t,e){if(t.type=e.get("type"),t.scale=o(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}jIt();var d={dimensions:e.prototype.dimensions,create:function(t,n){var i=[];return t.eachComponent("polar",(function(t,r){var o=new e(r);o.update=c;var s=o.getRadiusAxis(),a=o.getAngleAxis(),l=t.findAxisModel("radiusAxis"),h=t.findAxisModel("angleAxis");g(s,l),g(a,h),u(o,t,n),i.push(o),t.coordinateSystem=o,o.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=n.coordinateSystem}})),i}};return a.register("polar",d),RIt}var qIt,VIt,HIt,YIt={};function WIt(){if(VIt)return qIt;VIt=1;var t=bH,e=H1,n=b7,i=dct(),r=act(),o=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function s(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function a(t){var e=t.getRadiusAxis();return e.inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var h=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,n){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,s=r.getRadiusAxis().getExtent(),a=i.getTicksCoords(),h=i.getMinorTicksCoords(),u=t.map(i.getViewLabels(),(function(e){e=t.clone(e);return e.coord=i.dataToCoord(e.tickValue),e}));l(u),l(a),t.each(o,(function(t){e.get(t+".show")&&(!i.scale.isBlank()||"axisLine"===t)&&this["_"+t](e,r,a,h,s,u)}),this)}},_axisLine:function(t,n,i,r,o){var s,l=t.getModel("axisLine.lineStyle"),h=a(n),u=h?0:1;s=0===o[u]?new e.Circle({shape:{cx:n.cx,cy:n.cy,r:o[h]},style:l.getLineStyle(),z2:1,silent:!0}):new e.Ring({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[u]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,this.group.add(s)},_axisTick:function(n,i,r,o,l){var h=n.getModel("axisTick"),u=(h.get("inside")?-1:1)*h.get("length"),c=l[a(i)],g=t.map(r,(function(t){return new e.Line({shape:s(i,[c,c+u],t.coord)})}));this.group.add(e.mergePath(g,{style:t.defaults(h.getModel("lineStyle").getLineStyle(),{stroke:n.get("axisLine.lineStyle.color")})}))},_minorTick:function(n,i,r,o,l){if(o.length){for(var h=n.getModel("axisTick"),u=n.getModel("minorTick"),c=(h.get("inside")?-1:1)*u.get("length"),g=l[a(i)],d=[],f=0;fm?"left":"right",_=Math.abs(p[1]-y)/A<.3?"middle":p[1]>y?"top":"bottom";c&&c[u]&&c[u].textStyle&&(l=new n(c[u].textStyle,g,g.ecModel));var x=new e.Text({silent:r.isLabelSilent(i)});this.group.add(x),e.setTextStyle(x.style,l,{x:p[0],y:p[1],textFill:l.getTextColor()||i.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:v,textVerticalAlign:_}),f&&(x.eventData=r.makeAxisEventDataBase(i),x.eventData.targetType="axisLabel",x.eventData.value=t.rawLabel)}),this)},_splitLine:function(n,i,r,o,a){var l=n.getModel("splitLine"),h=l.getModel("lineStyle"),u=h.get("color"),c=0;u=u instanceof Array?u:[u];for(var g=[],d=0;dv?"left":"right",d=Math.abs(c[1]-_)/y<.3?"middle":c[1]>_?"top":"bottom"}return{position:c,align:g,verticalAlign:d}}var h={line:function(t,e,n,r,o){return"angle"===t.dim?{type:"Line",shape:i.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,o){var s=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-s/2)*a,(s/2-n)*a)}:{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,n-s/2,n+s/2,0,2*Math.PI)}}};s.registerAxisPointerClass("PolarAxisPointer",a);var u=a;return $It=u,$It}function swt(){if(ewt)return CIt;ewt=1;var t=mH,e=bH,n=EIt();return UIt(),XIt(),rwt(),Mxt(),owt(),t.registerLayout(e.curry(n,"bar")),t.extendComponentView({type:"polar"}),CIt}var awt,lwt,hwt,uwt,cwt,gwt={};function dwt(){if(lwt)return awt;lwt=1;var t=bH,e=Z2,n=jtt,i=b7,r=ygt(),o=Bft(),s=n.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){n.prototype.init.apply(this,arguments),e.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var e=this.option,n=this;e.regions=o.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=t.reduce(e.regions||[],(function(t,e){return e.name&&t.set(e.name,new i(e,n)),t}),t.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new i(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var n=this.getRegionModel(t),i=n.get(("normal"===e?"":e+".")+"label.formatter"),r={name:t};return"function"==typeof i?(r.status=e,i(r)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});t.mixin(s,r);var a=s;return awt=a,awt}function fwt(){if(uwt)return hwt;uwt=1;var t=ift(),e=mH,n=e.extendComponentView({type:"geo",init:function(e,n){var i=new t(n,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});return hwt=n,hwt}function Awt(){if(cwt)return gwt;cwt=1;var t=mH,e=bH;function n(n,i){i.update="updateView",t.registerAction(i,(function(t,i){var r={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[n](t.name);var o=i.coordinateSystem;e.each(o.regions,(function(t){r[t.name]=i.isSelected(t.name)||!1}))})),{selected:r,name:t.name}}))}return dwt(),Bft(),fwt(),Eft(),n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"}),gwt}var pwt,mwt,ywt,vwt,_wt,xwt,Iwt,wwt={};function Cwt(){if(mwt)return pwt;mwt=1;var t=bH,e=Q7,n=F7(),i=Xnt,r=864e5;function o(t,e,n){this._model=t}function s(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,s=r?r.coordinateSystem:o?o.coordinateSystem:null;return s===this?s[t](i):null}o.prototype={constructor:o,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=n.parseDate(t);var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var r=t.getDate();r=r<10?"0"+r:r;var o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:r,day:o,time:t.getTime(),formatedDate:e+"-"+i+"-"+r,date:t}},getNextNDay:function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},update:function(n,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,o=["width","height"],s=this._model.get("cellSize").slice(),a=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[r,7]:[7,r];t.each([0,1],(function(t){c(s,t)&&(a[o[t]]=s[t]*l[t])}));var h={width:i.getWidth(),height:i.getHeight()},u=this._rect=e.getLayoutRect(a,h);function c(t,e){return null!=t[e]&&"auto"!==t[e]}t.each([0,1],(function(t){c(s,t)||(s[t]=u[o[t]]/l[t])})),this._sw=s[0],this._sh=s[1]},dataToPoint:function(e,n){t.isArray(e)&&(e=e[0]),null==n&&(n=!0);var i=this.getDateInfo(e),o=this._rangeInfo,s=i.formatedDate;if(n&&!(i.time>=o.start.time&&i.times.end.time&&e.reverse(),e},_getRangeInfo:function(t){var e;t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],t[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/r)-Math.floor(t[0].time/r)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var a=i.getDate();if(a!==s)for(var l=i.getTime()-t[1].time>0?1:-1;(a=i.getDate())!==s&&(i.getTime()-t[1].time)*l>0;)n-=l,i.setDate(a-l);var h=Math.floor((n+t[0].day+6)/7),u=e?1-h:h-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:h,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new o(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},i.register("calendar",o);var a=o;return pwt=a,pwt}function Ewt(){if(vwt)return ywt;vwt=1;var t=bH,e=jtt,n=Q7,i=n.getLayoutParams,r=n.sizeCalculable,o=n.mergeLayoutParam,s=e.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,r){var o=i(t);s.superApply(this,"init",arguments),a(t,o)},mergeOption:function(t,e){s.superApply(this,"mergeOption",arguments),a(this.option,t)}});function a(e,n){var i=e.cellSize;t.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var s=t.map([0,1],(function(t){return r(n,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));o(e,n,{type:"box",ignoreSize:s})}var l=s;return ywt=l,ywt}function bwt(){if(xwt)return _wt;xwt=1;var t=mH,e=bH,n=H1,i=O7,r=F7(),o={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},s={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},a=t.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),s=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,s,i),this._renderYearText(t,o,s,i),this._renderMonthText(t,s,i),this._renderWeekText(t,o,s,i)},_renderDayRect:function(t,e,i){for(var r=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=r.getCellWidth(),a=r.getCellHeight(),l=e.start.time;l<=e.end.time;l=r.getNextNDay(l,1).time){var h=r.dataToRect([l],!1).tl,u=new n.Rect({shape:{x:h[0],y:h[1],width:s,height:a},cursor:"default",style:o});i.add(u)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),a=t.get("splitLine.show"),l=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,u=0;h.time<=e.end.time;u++){g(h.formatedDate),0===u&&(h=o.getDateInfo(e.start.y+"-"+e.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=o.getDateInfo(c)}function g(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),a&&r._drawSplitline(l,s,i)}g(o.getNextNDay(e.end.time,1).formatedDate),a&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),s,i),a&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),s,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,i){var r=new n.Polyline({z2:20,shape:{points:t},style:e});i.add(r)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var s=i.getNextNDay(e.time,o),a=i.dataToRect([s.time],!1);r[2*s.day]=a.tl,r[2*s.day+1]=a["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?i.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var s=0;return("left"===i||"right"===i)&&(s=Math.PI/2),{rotation:s,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,r){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),a=o.get("position");a||(a="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(l[0][0]+l[1][0])/2,u=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,g={top:[h,l[c][1]],bottom:[h,l[1-c][1]],left:[l[1-c][0],u],right:[l[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=o.get("formatter"),A={start:e.start.y,end:e.end.y,nameMap:d},p=this._formatterLabel(f,A),m=new n.Text({z2:30});n.setTextStyle(m.style,o,{text:p}),m.attr(this._yearTextPositionControl(m,g[a],i,a,s)),r.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",s="top",a=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(s="bottom")):(a+=r,e&&(s="middle"),"start"===i&&(o="right")),{x:a,y:l,textAlign:o,textVerticalAlign:s}},_renderMonthText:function(t,i,r){var s=t.getModel("monthLabel");if(s.get("show")){var a=s.get("nameMap"),l=s.get("margin"),h=s.get("position"),u=s.get("align"),c=[this._tlpoints,this._blpoints];e.isString(a)&&(a=o[a.toUpperCase()]||[]);var g="start"===h?0:1,d="horizontal"===i?0:1;l="start"===h?-l:l;for(var f="center"===u,A=0;A=0;u--)null==s[u]?s.splice(u,1):delete s[u].$action},_flatten:function(t,n,i){e.each(t,(function(t){if(t){i&&(t.parentOption=i),n.push(t);var e=t.children;"group"===t.type&&e&&this._flatten(e,n,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function h(t,e,n,r){var o=n.type,s=a.hasOwnProperty(o)?a[o]:i.getShapeClass(o),l=new s(n);e.add(l),r.set(t,l),l.__ecGraphicId=t}function u(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){u(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function c(t){return t=e.extend({},t),e.each(["id","parentId","$action","hv","bounding"].concat(r.LOCATION_PARAMS),(function(e){delete t[e]})),t}function g(t,n){var i;return e.each(n,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function d(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function f(t,n,i){var o=e.extend({},i),s=t[n],a=i.$action||"merge";"merge"===a?s?(e.merge(s,o,!0),r.mergeLayoutParam(s,o,{ignoreSize:!0}),r.copyLayoutParams(i,s)):t[n]=o:"replace"===a?t[n]=o:"remove"===a&&s&&(t[n]=null)}function A(t,e){!t||(t.hv=e.hv=[g(e,["left","right"]),g(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function p(t,e,n){var i=t.eventData;!t.silent&&!t.ignore&&!i&&(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}return t.extendComponentView({type:"graphic",init:function(t,n){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,r=this.group;e.each(n,(function(e){var n=e.$action,o=e.id,s=i.get(o),a=e.parentId,l=null!=a?i.get(a):r,g=e.style;"text"===e.type&&g&&(e.hv&&e.hv[1]&&(g.textVerticalAlign=g.textBaseline=null),!g.hasOwnProperty("textFill")&&g.fill&&(g.textFill=g.fill),!g.hasOwnProperty("textStroke")&&g.stroke&&(g.textStroke=g.stroke));var d=c(e);n&&"merge"!==n?"replace"===n?(u(s,i),h(o,l,d,i)):"remove"===n&&u(s,i):s?s.attr(d):h(o,l,d,i);var f=i.get(o);f&&(f.__ecGraphicWidthOption=e.width,f.__ecGraphicHeightOption=e.height,p(f,t))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,a=e.getWidth(),l=e.getHeight(),h=0;h=0;h--){u=n[h],c=o.get(u.id);if(c){g=c.parent;var f=g===i?{width:a,height:l}:{width:g.__ecGraphicWidth,height:g.__ecGraphicHeight};r.positionElement(c,u,f,null,{hv:u.hv,boundingMode:u.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){u(e,t)})),this._elMap=e.createHashMap()},dispose:function(){this._clear()}}),Mwt}var Dwt,Rwt,kwt,Lwt={},Pwt={};function Qwt(){if(Dwt)return Pwt;Dwt=1;var t={};function e(e,n){t[e]=n}function n(e){return t[e]}return Pwt.register=e,Pwt.get=n,Pwt}function zwt(){if(kwt)return Rwt;kwt=1;var t=mH,e=bH,n=Qwt(),i=t.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){i.superApply(this,"optionUpdated",arguments),e.each(this.option.feature,(function(t,i){var r=n.get(i);r&&e.merge(t,r.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),r=i;return Rwt=r,Rwt}var Fwt,Owt,Nwt,Gwt,jwt,Uwt,qwt,Vwt,Hwt,Ywt,Wwt,Xwt={};function Zwt(){if(Fwt)return Xwt;Fwt=1;var t=Q7,e=t.getLayoutRect,n=t.box,i=t.positionElement,r=O7,o=H1;function s(t,r,o){var s=r.getBoxLayoutParams(),a=r.get("padding"),l={width:o.getWidth(),height:o.getHeight()},h=e(s,l,a);n(r.get("orient"),t,r.get("itemGap"),h.width,h.height),i(t,s,l,a)}function a(t,e){var n=r.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");t=new o.Rect({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return t}return Xwt.layout=s,Xwt.makeBackground=a,Xwt}function Kwt(){if(Nwt)return Owt;Nwt=1;var t=mH,e=bH,n=DJ,i=Qwt(),r=H1,o=b7,s=blt(),a=Zwt(),l=t.extendComponentView({type:"toolbox",render:function(t,l,u,c){var g=this.group;if(g.removeAll(),t.get("show")){var d=+t.get("itemSize"),f=t.get("feature")||{},A=this._features||(this._features={}),p=[];e.each(f,(function(t,e){p.push(e)})),new s(this._featureNames||[],p).add(m).update(m).remove(e.curry(m,null)).execute(),this._featureNames=p,a.layout(g,t,u),g.add(a.makeBackground(g.getBoundingRect(),t)),g.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=n.getBoundingRect(e,n.makeFont(i)),o=t.position[0]+g.position[0],s=t.position[1]+g.position[1]+d,a=!1;s+r.height>u.getHeight()&&(i.textPosition="top",a=!0);var l=a?-5-r.height:d+8;o+r.width/2>u.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}}))}function m(e,n){var r,s=p[e],a=p[n],g=f[s],d=new o(g,t,t.ecModel);if(c&&null!=c.newTitle&&c.featureName===s&&(g.title=c.newTitle),s&&!a){if(h(s))r={model:d,onclick:d.option.onclick,featureName:s};else{var m=i.get(s);if(!m)return;r=new m(d,l,u)}A[s]=r}else{if(r=A[a],!r)return;r.model=d,r.ecModel=l,r.api=u}s||!a?d.get("show")&&!r.unusable?(y(d,r,s),d.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},r.render&&r.render(d,l,u,c)):r.remove&&r.remove(l,u):r.dispose&&r.dispose(l,u)}function y(n,i,o){var s=n.getModel("iconStyle"),a=n.getModel("emphasis.iconStyle"),h=i.getIcons?i.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof h){var f=h,A=c;h={},c={},h[o]=f,c[o]=A}var p=n.iconPaths={};e.each(h,(function(o,h){var f=r.createIcon(o,{},{x:-d/2,y:-d/2,width:d,height:d});f.setStyle(s.getItemStyle()),f.hoverStyle=a.getItemStyle(),f.setStyle({text:c[h],textAlign:a.get("textAlign"),textBorderRadius:a.get("textBorderRadius"),textPadding:a.get("textPadding"),textFill:null});var A=t.getModel("tooltip");A&&A.get("show")&&f.attr("tooltip",e.extend({content:c[h],formatter:A.get("formatter",!0)||function(){return c[h]},formatterParams:{componentType:"toolbox",name:h,title:c[h],$vars:["name","title"]},position:A.get("position",!0)||"bottom"},A.option)),r.setHoverStyle(f),t.get("showTitle")&&(f.__title=c[h],f.on("mouseover",(function(){var e=a.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:a.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:a.get("textBackgroundColor"),textPosition:a.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(n.get("iconStatus."+h)||"normal"),g.add(f),f.on("click",e.bind(i.onclick,i,l,u,h)),p[h]=f}))}},updateView:function(t,n,i,r){e.each(this._features,(function(t){t.updateView&&t.updateView(t.model,n,i,r)}))},remove:function(t,n){e.each(this._features,(function(e){e.remove&&e.remove(t,n)})),this.group.removeAll()},dispose:function(t,n){e.each(this._features,(function(e){e.dispose&&e.dispose(t,n)}))}});function h(t){return 0===t.indexOf("my")}return Owt=l,Owt}function Jwt(){if(jwt)return Gwt;jwt=1;var t=EH,e=cst,n=Qwt(),i=e.toolbox.saveAsImage;function r(t){this.model=t}r.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},r.prototype.unusable=!t.canvasSupported;var o=r.prototype;o.onclick=function(e,n){var i=this.model,r=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===n.getZr().painter.getType(),s=o?"svg":i.get("type",!0)||"png",a=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||t.browser.ie||t.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var l=atob(a.split(",")[1]),h=l.length,u=new Uint8Array(h);h--;)u[h]=l.charCodeAt(h);var c=new Blob([u]);window.navigator.msSaveOrOpenBlob(c,r+"."+s)}else{var g=i.get("lang"),d='',f=window.open();f.document.write(d)}else{var A=document.createElement("a");A.download=r+"."+s,A.target="_blank",A.href=a;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});A.dispatchEvent(p)}},n.register("saveAsImage",r);var s=r;return Gwt=s,Gwt}function $wt(){if(qwt)return Uwt;qwt=1;var t=mH,e=bH,n=cst,i=Qwt(),r=n.toolbox.magicType,o="__ec_magicType_stack__";function s(t){this.model=t}s.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.clone(r.title),option:{},seriesIndex:{}};var a=s.prototype;a.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return e.each(t.get("type"),(function(t){n[t]&&(i[t]=n[t])})),i};var l={line:function(t,n,i,r){if("bar"===t)return e.merge({id:n,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,n,i,r){if("line"===t)return e.merge({id:n,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,n,i,r){var s=i.get("stack")===o;if("line"===t||"bar"===t)return r.setIconStatus("stack",s?"normal":"emphasis"),e.merge({id:n,stack:s?"":o},r.get("option.stack")||{},!0)}},h=[["line","bar"],["stack"]];a.onclick=function(t,n,i){var s=this.model,a=s.get("seriesIndex."+i);if(l[i]){var u,c={series:[]},g=function(n){var r=n.subType,o=n.id,a=l[i](r,o,n,s);a&&(e.defaults(a,n.option),c.series.push(a));var h=n.coordinateSystem;if(h&&"cartesian2d"===h.type&&("line"===i||"bar"===i)){var u=h.getAxesByScale("ordinal")[0];if(u){var g=u.dim,d=g+"Axis",f=t.queryComponents({mainType:d,index:n.get(name+"Index"),id:n.get(name+"Id")})[0],A=f.componentIndex;c[d]=c[d]||[];for(var p=0;p<=A;p++)c[d][A]=c[d][A]||{};c[d][A].boundaryGap="bar"===i}}};if(e.each(h,(function(t){e.indexOf(t,i)>=0&&e.each(t,(function(t){s.setIconStatus(t,"normal")}))})),s.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},g),"stack"===i){var d=c.series&&c.series[0]&&c.series[0].stack===o;u=d?e.merge({stack:r.title.tiled},r.title):e.clone(r.title)}n.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:u,featureName:"magicType"})}},t.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),i.register("magicType",s);var u=s;return Uwt=u,Uwt}function tCt(){if(Hwt)return Vwt;Hwt=1;var t=mH,e=bH,n=lW,i=cst,r=Qwt(),o=i.toolbox.dataView,s=new Array(60).join("-"),a="\t";function l(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function h(t){var n=[];return e.each(t,(function(t,i){var r=t.categoryAxis,o=t.valueAxis,s=o.dim,l=[" "].concat(e.map(t.series,(function(t){return t.name}))),h=[r.model.getCategories()];e.each(t.series,(function(t){var e=t.getRawData();h.push(t.getRawData().mapArray(e.mapDimension(s),(function(t){return t})))}));for(var u=[l.join(a)],c=0;c=0)return!0}var f=new RegExp("["+a+"]+","g");function A(t){for(var n=t.split(/\n+/g),i=g(n.shift()).split(f),r=[],o=e.map(i,(function(t){return{name:t,data:[]}})),s=0;s=0)&&t(a,i,s)}))}var u=h.prototype;function c(t){return t[0]>t[1]&&t.reverse(),t}function g(t,e){return n.parseFinder(t,e,{includeMainTypes:l})}u.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=p[t.brushType](0,n,e);t.__rangeOffset={offset:y[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}))},u.matchOutputRanges=function(e,n,i){r(e,(function(e){var r=this.findTargetInfo(e,n);r&&!0!==r&&t.each(r.coordSyses,(function(t){var r=p[e.brushType](1,t,e.range);i(e,r.values,t,n)}))}),this)},u.setInputRanges=function(t,e){r(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=p[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?y[t.brushType](i.values,r.offset,_(i.xyMinMax,r.xyMinMax)):i.values}}),this)},u.makePanelOpts=function(e,n){return t.map(this._targetInfoList,(function(t){var r=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:n&&n(t),clipPath:i.makeRectPanelClipPath(r),isTargetByCursor:i.makeRectIsTargetByCursor(r,e,t.coordSysModel),getLinearBrushOtherExtent:i.makeLinearBrushOtherExtent(r)}}))},u.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&o(i.coordSyses,e.coordinateSystem)>=0},u.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=g(e,t),r=0;r=0||o(s,t.getAxis("y").model)>=0)&&a.push(t)})),n.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:A.grid,xAxisDeclared:h[t.id],yAxisDeclared:u[t.id]})})))},geo:function(t,e){r(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:A.geo})}))}},f=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],A={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,n=t.getBoundingRect().clone();return n.applyTransform(e.getTransform(t)),n}},p={lineX:s(m,0),lineY:s(m,1),rect:function(t,e,n){var i=e[a[t]]([n[0][0],n[1][0]]),r=e[a[t]]([n[0][1],n[1][1]]),o=[c([i[0],r[0]]),c([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=t.map(i,(function(t){var i=n[a[e]](t);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i}));return{values:o,xyMinMax:r}}};function m(e,n,i,r){var o=i.getAxis(["x","y"][e]),s=c(t.map([0,1],(function(t){return n?o.coordToData(o.toLocalCoord(r[t])):o.toGlobalCoord(o.dataToCoord(r[t]))}))),a=[];return a[e]=s,a[1-e]=[NaN,NaN],{values:s,xyMinMax:a}}var y={lineX:s(v,0),lineY:s(v,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(e,n,i){return t.map(e,(function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]}))}};function v(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function _(t,e){var n=x(t),i=x(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function x(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var I=h;return Ywt=I,Ywt}var nCt,iCt={};function rCt(){if(nCt)return iCt;nCt=1;var t=bH,e=t.each,n="\0_ec_hist_store";function i(t,n){var i=a(t);e(n,(function(e,n){for(var r=i.length-1;r>=0;r--){var o=i[r];if(o[n])break}if(r<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var a=s.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}})),i.push(n)}function r(t){var n=a(t),i=n[n.length-1];n.length>1&&n.pop();var r={};return e(i,(function(t,e){for(var i=n.length-1;i>=0;i--){t=n[i][e];if(t){r[e]=t;break}}})),r}function o(t){t[n]=null}function s(t){return a(t).length}function a(t){var e=t[n];return e||(e=t[n]=[{}]),e}return iCt.push=i,iCt.pop=r,iCt.clear=o,iCt.count=s,iCt}var oCt,sCt={},aCt={};function lCt(){if(oCt)return aCt;oCt=1;var t=jtt;return t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})),aCt}var hCt,uCt,cCt,gCt,dCt,fCt,ACt,pCt,mCt,yCt,vCt,_Ct={};function xCt(){if(hCt)return _Ct;hCt=1;var t=bH,e=O7,n=["x","y","z","radius","angle","single"],i=["cartesian2d","polar","singleAxis"];function r(e){return t.indexOf(i,e)>=0}function o(n,i){n=n.slice();var r=t.map(n,e.capitalFirst);i=(i||[]).slice();var o=t.map(i,e.capitalFirst);return function(e,s){t.each(n,(function(t,n){for(var a={name:t,capital:r[n]},l=0;l=0}function o(e,r){var o=!1;return n((function(n){t.each(i(e,n)||[],(function(t){r.records[n.name][t]&&(o=!0)}))})),o}function s(e,r){r.nodes.push(e),n((function(n){t.each(i(e,n)||[],(function(t){r.records[n.name][t]=!0}))}))}}return _Ct.isCoordSupported=r,_Ct.createNameEach=o,_Ct.eachAxisDim=s,_Ct.createLinkedNodesFinder=a,_Ct}function ICt(){if(cCt)return uCt;cCt=1;var t=bH,e=F7(),n=xCt(),i=Nmt(),r=t.each,o=e.asc,s=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function a(t,e,n){var i=[1/0,-1/0];return r(n,(function(t){var n=t.getData();n&&r(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]i[1]&&(i[1]=e[1])}))})),i[1]0?0:NaN);var s=n.getMax(!0);return null!=s&&"dataMax"!==s&&"function"!=typeof s?e[1]=s:r&&(e[1]=o>0?o-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function h(t,n){var i=t.getAxisModel(),r=t._percentWindow,o=t._valueWindow;if(r){var s=e.getPixelPrecision(o,[0,500]);s=Math.min(s,20);var a=n||0===r[0]&&100===r[1];i.setRange(a?null:+o[0].toFixed(s),a?null:+o[1].toFixed(s))}}function u(t){var n=t._minMaxSpan={},i=t._dataZoomModel,o=t._dataExtent;r(["min","max"],(function(r){var s=i.get(r+"Span"),a=i.get(r+"ValueSpan");null!=a&&(a=t.getAxisModel().axis.scale.parse(a)),null!=a?s=e.linearMap(o[0]+a,o,[0,100],!0):null!=s&&(a=e.linearMap(s,[0,100],o,!0)-o[0]),n[r+"Span"]=s,n[r+"ValueSpan"]=a}))}s.prototype={constructor:s,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(i){if(n.isCoordSupported(i.get("coordinateSystem"))){var r=this._dimName,o=e.queryComponents({mainType:r+"Axis",index:i.get(r+"AxisIndex"),id:i.get(r+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&t.push(i)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel(),s="x"===i||"y"===i;return s?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return t.clone(this._minMaxSpan)},calculateDataWindow:function(t){var n,s=this._dataExtent,a=this.getAxisModel(),l=a.axis.scale,h=this._dataZoomModel.getRangePropMode(),u=[0,100],c=[],g=[];r(["start","end"],(function(i,r){var o=t[i],a=t[i+"Value"];"percent"===h[r]?(null==o&&(o=u[r]),a=l.parse(e.linearMap(o,u,s))):(n=!0,a=null==a?s[r]:l.parse(a),o=e.linearMap(a,s,u)),g[r]=a,c[r]=o})),o(g),o(c);var d=this._minMaxSpan;function f(t,n,r,o,s){var a=s?"Span":"ValueSpan";i(0,t,r,"all",d["min"+a],d["max"+a]);for(var h=0;h<2;h++)n[h]=e.linearMap(t[h],r,o,!0),s&&(n[h]=l.parse(n[h]))}return n?f(g,c,s,u,!1):f(c,g,u,s,!0),{valueWindow:g,percentWindow:c}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=a(this,this._dimName,e),u(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,h(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,h(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),s=this._valueWindow;"none"!==o&&r(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);!i.length||("weakFilter"===o?e.filterSelf((function(t){for(var n,r,o,a=0;as[1];if(h&&!u&&!c)return!0;h&&(o=!0),u&&(n=!0),c&&(r=!0)}return o&&n&&r})):r(i,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=s,e.selectRange(i)}})),r(i,(function(t){e.setApproximateExtent(s,t)})))}))}function a(t){return t>=s[0]&&t<=s[1]}}};var c=s;return uCt=c,uCt}function wCt(){if(dCt)return gCt;dCt=1;var t=mH,e=bH,n=EH,i=Z2,r=xCt(),o=ICt(),s=e.each,a=r.eachAxisDim,l=t.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=h(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var n=h(t);e.merge(this.option,t,!0),e.merge(this.settledOption,n,!0),this.doInit(n)},doInit:function(t){var e=this.option;n.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),u(this,t);var i=this.settledOption;s([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,n,i,r){var s=this.dependentModels[e.axis][n],a=s.__dzAxisProxy||(s.__dzAxisProxy=new o(e.name,n,this,r));t[e.name+"_"+n]=a}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();a((function(e){var n=e.axisIndex;t[n]=i.normalizeToArray(t[n])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;a((function(n){null!=t[n.axisIndex]&&(e=!0)}),this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,n=this.get("orient",!0),i=this.option,r=this.dependentModels;if(t){var o="vertical"===n?"y":"x";r[o+"Axis"].length?(i[o+"AxisIndex"]=[0],t=!1):s(r.singleAxis,(function(e){t&&e.get("orient",!0)===n&&(i.singleAxisIndex=[e.componentIndex],t=!1)}))}t&&a((function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r.length&&!n.length)for(var o=0,s=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var t;return a((function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}}),this),t},eachTargetAxis:function(t,e){var n=this.ecModel;a((function(i){s(this.get(i.axisIndex),(function(r){t.call(e,i,r,this,n)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;s([["start","startValue"],["end","endValue"]],(function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),u(this,t)},setCalculatedRange:function(t){var e=this.option;s(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function h(t){var e={};return s(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}function u(t,e){var n=t._rangePropMode,i=t.get("rangeMode");s([["start","startValue"],["end","endValue"]],(function(t,r){var o=null!=e[t[0]],s=null!=e[t[1]];o&&!s?n[r]="percent":!o&&s?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")}))}var c=l;return gCt=c,gCt}function CCt(){if(ACt)return fCt;ACt=1;var t=bot,e=t.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};function i(t,e,n,i){for(var r,o=0;o1?"emphasis":"normal")}function p(t,e,n,r,o){var s=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(s="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=s,t.setIconStatus("zoom",s?"emphasis":"normal");var a=new i(f(t.option),e,{include:["grid"]});n._brushController.setPanels(a.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!s&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}g._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},s=this.ecModel;this._brushController.updateCovers([]);var a=new i(f(this.model.option),s,{include:["grid"]});a.matchOutputRanges(t,s,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(l("x",n,e[0]),l("y",n,e[1])):l({lineX:"x",lineY:"y"}[i],n,e)}})),r.push(s,n),this._dispatchZoomAction(n)}function l(t,e,i){var r=e.getAxis(t),a=r.model,l=h(t,a,s),u=l.findRepresentativeAxisProxy(a).getMinMaxSpan();(null!=u.minValueSpan||null!=u.maxValueSpan)&&(i=o(0,i.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function h(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},g._dispatchZoomAction=function(t){var n=[];h(t,(function(t,i){n.push(e.clone(t))})),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},a.register("dataZoom",c),t.registerPreprocessor((function(t){if(t){var n=t.dataZoom||(t.dataZoom=[]);e.isArray(n)||(t.dataZoom=n=[n]);var i=t.toolbox;if(i&&(e.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(t,i){if(i){var r=t+"Index",o=i[r];null!=o&&"all"!==o&&!e.isArray(o)&&(o=!1===o||"none"===o?[]:[o]),s(t,(function(s,a){if(null==o||"all"===o||-1!==e.indexOf(o,a)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:u+t+a};l[r]=a,n.push(l)}}))}}function s(n,i){var r=t[n];e.isArray(r)||(r=r?[r]:[]),h(r,i)}}));var m=c;return RCt=m,RCt}function GCt(){if(PCt)return LCt;PCt=1;var t=mH,e=rCt(),n=cst,i=Qwt(),r=n.toolbox.restore;function o(t){this.model=t}o.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.title};var s=o.prototype;s.onclick=function(t,n,i){e.clear(t),n.dispatchAction({type:"restore",from:this.uid})},i.register("restore",o),t.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var a=o;return LCt=a,LCt}function jCt(){return QCt||(QCt=1,zwt(),Kwt(),Jwt(),$wt(),tCt(),NCt(),GCt()),Lwt}var UCt,qCt,VCt,HCt,YCt,WCt,XCt,ZCt,KCt,JCt={};function $Ct(){if(qCt)return UCt;qCt=1;var t=mH,e=t.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});return UCt=e,UCt}function tEt(){if(HCt)return VCt;HCt=1;var t=bH,e=NX,n=lW,i=hW,r=EH,o=O7,s=t.each,a=o.toCamelCase,l=["","-webkit-","-moz-","-o-"],h="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function u(e){var n="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+n+",top "+e+"s "+n;return t.map(l,(function(t){return t+"transition:"+i})).join(";")}function c(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,h=t.get("textShadowOffsetY")||0;return a&&e.push("text-shadow:"+l+"px "+h+"px "+a+"px "+o),s(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function g(t){var n=[],i=t.get("transitionDuration"),l=t.get("backgroundColor"),h=t.getModel("textStyle"),g=t.get("padding");return i&&n.push(u(i)),l&&(r.canvasSupported?n.push("background-Color:"+l):(n.push("background-Color:#"+e.toHex(l)),n.push("filter:alpha(opacity=70)"))),s(["width","color","radius"],(function(e){var i="border-"+e,r=a(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(c(h)),null!=g&&n.push("padding:"+o.normalizeCssArray(g).join("px ")+"px"),n.join(";")+";"}function d(t,e,n,r,o){var s=e&&e.painter;if(n){var a=s&&s.getViewportRoot();a&&i.transformLocalCoord(t,a,document.body,r,o)}else{t[0]=r,t[1]=o;var l=s&&s.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function f(t,e,i){if(r.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var s=this._zr=e.getZr(),a=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],d(this._styleCoord,s,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(o):t.appendChild(o),this._container=t,this._show=!1,this._hideTimeout;var l=this;o.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=s.handler,i=s.painter.getViewportRoot();n.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText=h+g(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;d(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){this._show&&(!this._inContent||!this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var A=f;return VCt=A,VCt}function eEt(){if(WCt)return YCt;WCt=1;var t=bH,e=E4,n=H1;function i(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function r(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],i(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(t){var e=t.get("alwaysShowContent");e&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,i,r){this.el&&this._zr.remove(this.el);for(var o={},s=t,a="{marker",l="|}",h=s.indexOf(a);h>=0;){var u=s.indexOf(l),c=s.substr(h+a.length,u-h-a.length);c.indexOf("sub")>-1?o["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:i[c],textOffset:[3,0]}:o["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:i[c]},s=s.substr(u+1),h=s.indexOf("{marker")}var g=r.getModel("textStyle"),d=g.get("fontSize"),f=r.get("textLineHeight");null==f&&(f=Math.round(3*d/2)),this.el=new e({style:n.setTextStyle({},g,{rich:o,text:t,textBackgroundColor:r.get("backgroundColor"),textBorderRadius:r.get("borderRadius"),textFill:r.get("textStyle.color"),textPadding:r.get("padding"),textLineHeight:f}),z:r.get("z")}),this._zr.add(this.el);var A=this;this.el.on("mouseover",(function(){A._enterable&&(clearTimeout(A._hideTimeout),A._show=!0),A._inContent=!0})),this.el.on("mouseout",(function(){A._enterable&&A._show&&A.hideLater(A._hideDelay),A._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;i(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){this._show&&(!this._inContent||!this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var o=r;return YCt=o,YCt}function nEt(){if(ZCt)return XCt;ZCt=1;var t=mH,e=bH,n=EH,i=tEt(),r=eEt(),o=O7,s=F7(),a=H1,l=J_t(),h=Q7,u=b7,c=axt(),g=Eht(),d=Sxt(),f=Z2,A=f.getTooltipRenderMode,p=e.bind,m=e.each,y=s.parsePercent,v=new a.Rect({shape:{x:-1,y:-1,width:2,height:2}}),_=t.extendComponentView({type:"tooltip",init:function(t,e){if(!n.node){var o,s=t.getComponent("tooltip"),a=s.get("renderMode");this._renderMode=A(a),"html"===this._renderMode?(o=new i(e.getDom(),e,{appendToBody:s.get("appendToBody",!0)}),this._newLine="
"):(o=new r(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,i){if(!n.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");c.register("itemTooltip",this._api,p((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,i,r){if(r.from!==this.uid&&!n.node){var o=I(r,i);this._ticket="";var s=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var a=v;a.position=[r.x,r.y],a.update(),a.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:a},o)}else if(s)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,r))return;var h=l(r,e),u=h.point[0],c=h.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:r.position,target:h.el},o)}else null!=r.x&&null!=r.y&&(i.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:i.getZr().findHover(r.x,r.y).target},o))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(I(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,s=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=s){var a=e.getSeriesByIndex(r);if(a){var l=a.getData();t=x([l.getItemModel(o),a,(a.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},_tryShow:function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,n){var i=t.get("showDelay");n=e.bind(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},_showAxisTooltip:function(t,n){var i=this._ecModel,r=this._tooltipModel,s=[n.offsetX,n.offsetY],a=[],l=[],h=x([n.tooltipOption,r]),u=this._renderMode,c=this._newLine,f={};m(t,(function(t){m(t.dataByAxis,(function(t){var n=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,s=[];if(n&&null!=r){var h=d.getValueLabel(r,n.axis,i,t.seriesDataIndices,t.valueLabelOpt);e.each(t.seriesDataIndices,(function(o){var a=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,d=a&&a.getDataParams(c);if(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=g.getAxisRawValue(n.axis,r),d.axisValueLabel=h,d){l.push(d);var A,p=a.formatTooltip(c,!0,null,u);if(e.isObject(p)){A=p.html;var m=p.markers;e.merge(f,m)}else A=p;s.push(A)}}));var A=h;"html"!==u?a.push(s.join(c)):a.push((A?o.encodeHTML(A)+c:"")+s.join(c))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var A=n.position;this._showOrMove(h,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(h,A,s[0],s[1],this._tooltipContent,l):this._showTooltipContent(h,a,l,Math.random(),s[0],s[1],A,void 0,f)}))},_showSeriesItemTooltip:function(t,n,i){var r=this._ecModel,o=n.seriesIndex,s=r.getSeriesByIndex(o),a=n.dataModel||s,l=n.dataIndex,h=n.dataType,u=a.getData(h),c=x([u.getItemModel(l),a,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),g=c.get("trigger");if(null==g||"item"===g){var d,f,A=a.getDataParams(l,h),p=a.formatTooltip(l,!1,h,this._renderMode);e.isObject(p)?(d=p.html,f=p.markers):(d=p,f=null);var m="item_"+a.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,d,A,m,t.offsetX,t.offsetY,t.position,t.target,f)})),i({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){var r=i;i={content:r,formatter:r}}var o=new u(i,this._tooltipModel,this._ecModel),s=o.get("content"),a=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,s,o.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,s,a,l,h){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var g=e;if(c&&"string"==typeof c)g=o.formatTpl(c,n,!0);else if("function"==typeof c){var d=p((function(e,i){e===this._ticket&&(u.setContent(i,h,t),this._updatePosition(t,a,r,s,u,n,l))}),this);this._ticket=i,g=c(n,i,d)}u.setContent(g,h,t),u.show(t),this._updatePosition(t,a,r,s,u,n,l)}},_updatePosition:function(t,n,i,r,o,s,a){var l=this._api.getWidth(),u=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),g=t.get("align"),d=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),"function"==typeof n&&(n=n([i,r],s,o.el,f,{viewSize:[l,u],contentSize:c.slice()})),e.isArray(n))i=y(n[0],l),r=y(n[1],u);else if(e.isObject(n)){n.width=c[0],n.height=c[1];var A=h.getLayoutRect(n,{width:l,height:u});i=A.x,r=A.y,g=null,d=null}else if("string"==typeof n&&a){var p=E(n,f,c);i=p[0],r=p[1]}else{p=w(i,r,o,l,u,g?null:20,d?null:20);i=p[0],r=p[1]}if(g&&(i-=b(g)?c[0]/2:"right"===g?c[0]:0),d&&(r-=b(d)?c[1]/2:"bottom"===d?c[1]:0),t.get("confine")){p=C(i,r,o,l,u);i=p[0],r=p[1]}o.moveTo(i,r)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&m(e,(function(e,i){var r=e.dataByAxis||{},o=t[i]||{},s=o.dataByAxis||[];n&=r.length===s.length,n&&m(r,(function(t,e){var i=s[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length,n&&m(r,(function(t,e){var i=o[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){n.node||(this._tooltipContent.dispose(),c.unregister("itemTooltip",e))}});function x(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(u.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new u(n,e,e.ecModel))}return e}function I(t,n){return t.dispatchAction||e.bind(n.dispatchAction,n)}function w(t,e,n,i,r,o,s){var a=n.getOuterSize(),l=a.width,h=a.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=s&&(e+h+s>r?e-=h+s:e+=s),[t,e]}function C(t,e,n,i,r){var o=n.getOuterSize(),s=o.width,a=o.height;return t=Math.min(t+s,i)-s,e=Math.min(e+a,r)-a,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function E(t,e,n){var i=n[0],r=n[1],o=5,s=0,a=0,l=e.width,h=e.height;switch(t){case"inside":s=e.x+l/2-i/2,a=e.y+h/2-r/2;break;case"top":s=e.x+l/2-i/2,a=e.y-r-o;break;case"bottom":s=e.x+l/2-i/2,a=e.y+h+o;break;case"left":s=e.x-i-o,a=e.y+h/2-r/2;break;case"right":s=e.x+l+o,a=e.y+h/2-r/2}return[s,a]}function b(t){return"center"===t||"middle"===t}return XCt=_,XCt}function iEt(){if(KCt)return JCt;KCt=1;var t=mH;return Mxt(),$Ct(),nEt(),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){})),JCt}var rEt,oEt,sEt={};function aEt(){if(oEt)return rEt;oEt=1;var t=bH,e=["rect","polygon","keep","clear"];function n(n,r){var o=n&&n.brush;if(t.isArray(o)||(o=o?[o]:[]),o.length){var s=[];t.each(o,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(s=s.concat(e))}));var a=n&&n.toolbox;t.isArray(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var l=a.feature||(a.feature={}),h=l.brush||(l.brush={}),u=h.type||(h.type=[]);u.push.apply(u,s),i(u),r&&!u.length&&u.push.apply(u,e)}}function i(e){var n={};t.each(e,(function(t){n[t]=1})),e.length=0,t.each(n,(function(t,n){e.push(n)}))}return rEt=n,rEt}var lEt,hEt,uEt,cEt,gEt,dEt,fEt,AEt,pEt={},mEt={};function yEt(){if(lEt)return mEt;lEt=1;var t=bH,e=kAt(),n=t.each;function i(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function r(i,r,o){var s={};return n(r,(function(r){var l=s[r]=a();n(i[r],(function(n,i){if(e.isValidType(i)){var s={type:i,visual:n};o&&o(s,r),l[i]=new e(s),"opacity"===i&&(s=t.clone(s),s.type="colorAlpha",l.__hidden.__alphaForOpacity=new e(s))}}))})),s;function a(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function o(e,n,r){var o;t.each(r,(function(t){n.hasOwnProperty(t)&&i(n[t])&&(o=!0)})),o&&t.each(r,(function(r){n.hasOwnProperty(r)&&i(n[r])?e[r]=t.clone(n[r]):delete e[r]}))}function s(n,i,r,o,s,a){var l,h={};function u(t){return r.getItemVisual(l,t)}function c(t,e){r.setItemVisual(l,t,e)}function g(t,e){l=null==a?t:e;var n=r.getRawDataItem(l);if(!n||!1!==n.visualMap)for(var g=o.call(s,t),d=i[g],f=h[g],A=0,p=f.length;Ae[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&v(e)}};function v(t){return new n(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}return pEt.layoutCovers=c,pEt}function xEt(){if(dEt)return gEt;dEt=1;var t=mH,e=bH,n=yEt(),i=b7,r=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&n.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:r},o.hasOwnProperty("liftZ")||(o.liftZ=5)},setAreas:function(t){!t||(this.areas=e.map(t,(function(t){return s(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=s(this.option,t),this.brushType=this.brushOption.brushType}});function s(t,n){return e.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new i(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},n,!0)}var a=o;return gEt=a,gEt}function IEt(){if(AEt)return fEt;AEt=1;var t=mH,e=bH,n=Kmt(),i=_Et(),r=i.layoutCovers,o=t.extendComponentView({type:"brush",init:function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new n(i.getZr())).on("brush",e.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,s.apply(this,arguments)},updateTransform:function(t,e){return r(e),s.apply(this,arguments)},updateView:s,dispose:function(){this._brushController.dispose()},_onBrush:function(t,n){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:e.clone(t),$from:i}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:e.clone(t),$from:i})}});function s(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}return fEt=o,fEt}var wEt,CEt,EEt,bEt,SEt={};function BEt(){if(wEt)return SEt;wEt=1;var t=mH;return t.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),SEt}function MEt(){if(EEt)return CEt;EEt=1;var t=bH,e=Qwt(),n=cst,i=n.toolbox.brush;function r(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}r.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.clone(i.title)};var o=r.prototype;o.render=o.updateView=function(e,n,i){var r,o,s;n.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",s|=t.areas.length})),this._brushType=r,this._brushMode=o,t.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?s:t===r)?"emphasis":"normal")}))},o.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return t.each(e.get("type",!0),(function(t){n[t]&&(i[t]=n[t])})),i},o.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.register("brush",r);var s=r;return CEt=s,CEt}function TEt(){if(bEt)return sEt;bEt=1;var t=mH,e=aEt();return _Et(),xEt(),IEt(),BEt(),MEt(),t.registerPreprocessor(e),sEt}var DEt,REt={};function kEt(){if(DEt)return REt;DEt=1;var t=bH,e=mH,n=H1,i=Q7,r=i.getLayoutRect,o=O7,s=o.windowOpen;return e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(e,i,o){if(this.group.removeAll(),e.get("show")){var a=this.group,l=e.getModel("textStyle"),h=e.getModel("subtextStyle"),u=e.get("textAlign"),c=t.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),g=new n.Text({style:n.setTextStyle({},l,{text:e.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),d=g.getBoundingRect(),f=e.get("subtext"),A=new n.Text({style:n.setTextStyle({},h,{text:f,textFill:h.getTextColor(),y:d.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);g.silent=!p&&!y,A.silent=!m&&!y,p&&g.on("click",(function(){s(p,"_"+e.get("target"))})),m&&A.on("click",(function(){s(m,"_"+e.get("subtarget"))})),g.eventData=A.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(g),f&&a.add(A);var v=a.getBoundingRect(),_=e.getBoxLayoutParams();_.width=v.width,_.height=v.height;var x=r(_,{width:o.getWidth(),height:o.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?x.x+=x.width:"center"===u&&(x.x+=x.width/2)),c||(c=e.get("top")||e.get("bottom"),"center"===c&&(c="middle"),"bottom"===c?x.y+=x.height:"middle"===c&&(x.y+=x.height/2),c=c||"top"),a.attr("position",[x.x,x.y]);var I={textAlign:u,textVerticalAlign:c};g.setStyle(I),A.setStyle(I),v=a.getBoundingRect();var w=x.margin,C=e.getItemStyle(["color","opacity"]);C.fill=e.get("backgroundColor");var E=new n.Rect({shape:{x:v.x-w[3],y:v.y-w[0],width:v.width+w[1]+w[3],height:v.height+w[0]+w[2],r:e.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});a.add(E)}}}),REt}var LEt,PEt,QEt={};function zEt(){if(PEt)return LEt;PEt=1;var t=bH;function e(e){var i=e&&e.timeline;t.isArray(i)||(i=i?[i]:[]),t.each(i,(function(t){!t||n(t)}))}function n(e){var n=e.type,o={number:"value",time:"time"};if(o[n]&&(e.axisType=o[n],delete e.type),i(e),r(e,"controlPosition")){var s=e.controlStyle||(e.controlStyle={});r(s,"position")||(s.position=e.controlPosition),"none"===s.position&&!r(s,"show")&&(s.show=!1,delete s.position),delete e.controlPosition}t.each(e.data||[],(function(e){t.isObject(e)&&!t.isArray(e)&&(!r(e,"value")&&r(e,"name")&&(e.value=e.name),i(e))}))}function i(e){var n=e.itemStyle||(e.itemStyle={}),i=n.emphasis||(n.emphasis={}),o=e.label||e.label||{},s=o.normal||(o.normal={}),a={normal:1,emphasis:1};t.each(o,(function(t,e){!a[e]&&!r(s,e)&&(s[e]=t)})),i.label&&!r(o,"emphasis")&&(o.emphasis=i.label,delete i.label)}function r(t,e){return t.hasOwnProperty(e)}return LEt=e,LEt}var FEt,OEt={};function NEt(){if(FEt)return OEt;FEt=1;var t=jtt;return t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),OEt}var GEt,jEt,UEt,qEt,VEt,HEt,YEt,WEt,XEt,ZEt,KEt,JEt,$Et={};function tbt(){if(GEt)return $Et;GEt=1;var t=mH,e=bH;return t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,n){var i=n.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),n.resetOption("timeline"),e.defaults({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})),$Et}function ebt(){if(UEt)return jEt;UEt=1;var t=bH,e=jtt,n=Olt(),i=Z2,r=e.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){r.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,r=e.data||[],o=e.axisType,s=this._names=[];if("category"===o){var a=[];t.each(r,(function(e,n){var r,o=i.getDataItemValue(e);t.isObject(e)?(r=t.clone(e),r.value=n):r=n,a.push(r),!t.isString(o)&&(null==o||isNaN(o))&&(o=""),s.push(o+"")})),r=a}var l={category:"ordinal",time:"time"}[o]||"number",h=this._data=new n([{name:"value",type:l}],this);h.initData(r,s)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),o=r;return jEt=o,jEt}function nbt(){if(VEt)return qEt;VEt=1;var t=bH,e=ebt(),n=Drt,i=e.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});t.mixin(i,n);var r=i;return qEt=r,qEt}function ibt(){if(YEt)return HEt;YEt=1;var t=bot,e=t.extend({type:"timeline"});return HEt=e,HEt}function rbt(){if(XEt)return WEt;XEt=1;var t=bH,e=Yht(),n=function(t,n,i,r){e.call(this,t,n,i),this.type=r||"value",this.model=null};n.prototype={constructor:n,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},t.inherits(n,e);var i=n;return WEt=i,WEt}function obt(){if(KEt)return ZEt;KEt=1;var t=bH,e=EK,n=uX,i=H1,r=Q7,o=ibt(),s=rbt(),a=Tht(),l=a.createSymbol,h=Eht(),u=F7(),c=O7,g=c.encodeHTML,d=t.bind,f=t.each,A=Math.PI,p=o.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),s=this._createGroup("labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return g(a.scale.getLabel(t))},f(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,o,a,t)}),this),this._renderAxisLabel(r,s,a,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=m(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},a={horizontal:0,vertical:A/2},l="vertical"===i?r.height:r.width,h=t.getModel("controlStyle"),u=h.get("show",!0),c=u?h.get("itemSize"):0,g=u?h.get("itemGap"):0,d=c+g,f=t.get("label.rotate")||0;f=f*A/180;var p,y,v,_,x=h.get("position",!0),I=u&&h.get("showPlayBtn",!0),w=u&&h.get("showPrevBtn",!0),C=u&&h.get("showNextBtn",!0),E=0,b=l;return"left"===x||"bottom"===x?(I&&(p=[0,0],E+=d),w&&(y=[E,0],E+=d),C&&(v=[b-c,0],b-=d)):(I&&(p=[b-c,0],b-=d),w&&(y=[0,0],E+=d),C&&(v=[b-c,0],b-=d)),_=[E,b],t.get("inverse")&&_.reverse(),{viewRect:r,mainLength:l,orient:i,rotation:a[i],labelRotation:f,labelPosOpt:n,labelAlign:t.get("label.align")||o[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||s[i],playPosition:p,prevBtnPosition:y,nextBtnPosition:v,axisExtent:_,controlSize:c,controlGap:g}},_position:function(t,e){var i=this._mainGroup,r=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var s=n.create(),a=o.x,l=o.y+o.height;n.translate(s,s,[-a,-l]),n.rotate(s,s,-A/2),n.translate(s,s,[a,l]),o=o.clone(),o.applyTransform(s)}var h=y(o),u=y(i.getBoundingRect()),c=y(r.getBoundingRect()),g=i.position,d=r.position;d[0]=g[0]=h[0][0];var f=t.labelPosOpt;if(isNaN(f)){var p="+"===f?0:1;v(g,u,h,1,p),v(d,c,h,1,1-p)}else{p=f>=0?0:1;v(g,u,h,1,p),d[1]=g[1]+f}function m(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}i.attr("position",g),r.attr("position",d),i.rotation=r.rotation=t.rotation,m(i),m(r)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=h.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new s("value",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new i.Group;return this.group.add(e),e},_renderAxisLine:function(e,n,r,o){var s=r.getExtent();!o.get("lineStyle.show")||n.add(new i.Line({shape:{x1:s[0],y1:0,x2:s[1],y2:0},style:t.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,r){var o=r.getData(),s=n.scale.getTicks();f(s,(function(t){var s=n.dataToCoord(t),a=o.getItemModel(t),l=a.getModel("itemStyle"),h=a.getModel("emphasis.itemStyle"),u={position:[s,0],onclick:d(this._changeTimeline,this,t)},c=v(a,l,e,u);i.setHoverStyle(c,h.getItemStyle()),a.get("tooltip")?(c.dataIndex=t,c.dataModel=r):c.dataIndex=c.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,r){var o=n.getLabelModel();if(o.get("show")){var s=r.getData(),a=n.getViewLabels();f(a,(function(r){var o=r.tickValue,a=s.getItemModel(o),l=a.getModel("label"),h=a.getModel("emphasis.label"),u=n.dataToCoord(r.tickValue),c=new i.Text({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:d(this._changeTimeline,this,o),silent:!1});i.setTextStyle(c.style,l,{text:r.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(c),i.setHoverStyle(c,i.setTextStyle({},h))}),this)}},_renderControl:function(t,e,n,r){var o=t.controlSize,s=t.rotation,a=r.getModel("controlStyle").getItemStyle(),l=r.getModel("emphasis.controlStyle").getItemStyle(),h=[0,-o/2,o,o],u=r.getPlayState(),c=r.get("inverse",!0);function g(t,n,u,c){if(t){var g={position:t,origin:[o/2,0],rotation:c?-s:0,rectHover:!0,style:a,onclick:u},d=y(r,n,h,g);e.add(d),i.setHoverStyle(d,l)}}g(t.nextBtnPosition,"controlStyle.nextIcon",d(this._changeTimeline,this,c?"-":"+")),g(t.prevBtnPosition,"controlStyle.prevIcon",d(this._changeTimeline,this,c?"+":"-")),g(t.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),d(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),s=r.getItemModel(o).getModel("checkpointStyle"),a=this,l={onCreate:function(t){t.draggable=!0,t.drift=d(a._handlePointerDrag,a),t.ondragend=d(a._handlePointerDragend,a),_(t,o,n,i,!0)},onUpdate:function(t){_(t,o,n,i)}};this._currentPointer=v(s,s,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=u.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n":"\n";return(null!=l||u)&&(c+=g),u&&(c+=a(u),null!=l&&(c+=" : ")),null!=l&&(c+=a(h)),c},getData:function(){return this._data},setData:function(t){this._data=t}});e.mixin(h,o);var u=h;return abt=u,abt}function dbt(){if(ubt)return hbt;ubt=1;var t=gbt(),e=t.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});return hbt=e,hbt}var fbt,Abt,pbt,mbt,ybt,vbt,_bt={};function xbt(){if(fbt)return _bt;fbt=1;var t=bH,e=F7(),n=Xlt(),i=n.isDimensionStacked,r=t.indexOf;function o(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function s(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function a(t,n,r,o,s,a){var l=[],h=i(n,o),u=h?n.getCalculationInfo("stackResultDimension"):o,c=A(n,u,t),g=n.indicesOfNearest(u,c)[0];l[s]=n.get(r,g),l[a]=n.get(u,g);var d=n.get(o,g),f=e.getPrecision(n.get(o,g));return f=Math.min(f,20),f>=0&&(l[a]=+l[a].toFixed(f)),[l,d]}var l=t.curry,h={min:l(a,"min"),max:l(a,"max"),average:l(a,"average")};function u(e,n){var i=e.getData(),o=e.coordinateSystem;if(n&&!s(n)&&!t.isArray(n.coord)&&o){var a=o.dimensions,l=c(n,i,o,e);if(n=t.clone(n),n.type&&h[n.type]&&l.baseAxis&&l.valueAxis){var u=r(a,l.baseAxis.dim),g=r(a,l.valueAxis.dim),d=h[n.type](i,l.baseDataDim,l.valueDataDim,u,g);n.coord=d[0],n.value=d[1]}else{for(var f=[null!=n.xAxis?n.xAxis:n.radiusAxis,null!=n.yAxis?n.yAxis:n.angleAxis],p=0;p<2;p++)h[f[p]]&&(f[p]=A(i,i.mapDimension(a[p]),f[p]));n.coord=f}}return n}function c(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(g(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function g(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&"number"==typeof u&&(u=+u.toFixed(Math.min(m,20))),A.coord[d]=p.coord[d]=u,o=[A,p,{type:l,valueIndex:o.valueIndex,value:u}]}return o=[i.dataTransform(e,o[0]),i.dataTransform(e,o[1]),t.extend({},o[2])],o[2].type=o[2].type||"",t.merge(o[2],o[0]),t.merge(o[2],o[1]),o};function h(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t,o=i.dimensions[t];return h(e[r])&&h(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function c(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(u(1,n,r,t)||u(0,n,r,t)))return!0}return i.dataFilter(t,e[0])&&i.dataFilter(t,e[1])}function g(t,e,i,r,o){var s,a=r.coordinateSystem,l=t.getItemModel(e),u=n.parsePercent(l.get("x"),o.getWidth()),c=n.parsePercent(l.get("y"),o.getHeight());if(isNaN(u)||isNaN(c)){if(r.getMarkerPosition)s=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var g=a.dimensions,d=t.get(g[0],e),f=t.get(g[1],e);s=a.dataToPoint([d,f])}if("cartesian2d"===a.type){var A=a.getAxis("x"),p=a.getAxis("y");g=a.dimensions;h(t.get(g[0],e))?s[0]=A.toGlobalCoord(A.getExtent()[i?0:1]):h(t.get(g[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[i?0:1]))}isNaN(u)||(s[0]=u),isNaN(c)||(s[1]=c)}else s=[u,c];t.setItemLayout(e,s)}var d=o.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each((function(e){g(r,e,!0,t,n),g(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(e,n,i,o){var s=e.coordinateSystem,a=e.id,l=e.getData(),h=this.markerGroupMap,u=h.get(a)||h.set(a,new r);this.group.add(u.group);var c=f(s,e,n),d=c.from,A=c.to,p=c.line;n.__from=d,n.__to=A,n.setData(p);var m=n.get("symbol"),y=n.get("symbolSize");function v(t,n,i){var r=t.getItemModel(n);g(t,n,i,e,o),t.setItemVisual(n,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||y[i?0:1],symbol:r.get("symbol",!0)||m[i?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}t.isArray(m)||(m=[m,m]),"number"==typeof y&&(y=[y,y]),c.from.each((function(t){v(d,t,!0),v(A,t,!1)})),p.each((function(t){var e=p.getItemModel(t).get("lineStyle.color");p.setItemVisual(t,{color:e||d.getItemVisual(t,"color")}),p.setItemLayout(t,[d.getItemLayout(t),A.getItemLayout(t)]),p.setItemVisual(t,{fromSymbolRotate:d.getItemVisual(t,"symbolRotate"),fromSymbolSize:d.getItemVisual(t,"symbolSize"),fromSymbol:d.getItemVisual(t,"symbol"),toSymbolRotate:A.getItemVisual(t,"symbolRotate"),toSymbolSize:A.getItemVisual(t,"symbolSize"),toSymbol:A.getItemVisual(t,"symbol")})})),u.updateData(p),c.line.eachItemGraphicEl((function(t,e){t.traverse((function(t){t.dataModel=n}))})),u.__keep=!0,u.group.silent=n.get("silent")||e.get("silent")}});function f(n,r,o){var s;s=n?t.map(n&&n.dimensions,(function(e){var n=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return t.defaults({name:e},n)})):[{name:"value",type:"float"}];var a=new e(s,o),h=new e(s,o),u=new e([],o),g=t.map(o.get("data"),t.curry(l,r,n,o));n&&(g=t.filter(g,t.curry(c,n)));var d=n?i.dimValueGetter:function(t){return t.value};return a.initData(t.map(g,(function(t){return t[0]})),null,d),h.initData(t.map(g,(function(t){return t[1]})),null,d),u.initData(t.map(g,(function(t){return t[2]}))),u.hasItemOption=!0,{from:a,to:h,line:u}}return Sbt=d,Sbt}function kbt(){if(Mbt)return Tbt;Mbt=1;var t=mH;return Dbt(),Rbt(),t.registerPreprocessor((function(t){t.markLine=t.markLine||{}})),Tbt}var Lbt,Pbt,Qbt={};function zbt(){if(Pbt)return Lbt;Pbt=1;var t=gbt(),e=t.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});return Lbt=e,Lbt}var Fbt,Obt,Nbt={};function Gbt(){if(Fbt)return Nbt;Fbt=1;var t=bH,e=NX,n=Olt(),i=F7(),r=H1,o=xbt(),s=Ibt(),a=function(e,n,i,r){var s=o.dataTransform(e,r[0]),a=o.dataTransform(e,r[1]),l=t.retrieve,h=s.coord,u=a.coord;h[0]=l(h[0],-1/0),h[1]=l(h[1],-1/0),u[0]=l(u[0],1/0),u[1]=l(u[1],1/0);var c=t.mergeAll([{},s,a]);return c.coord=[s.coord,a.coord],c.x0=s.x,c.y0=s.y,c.x1=a.x,c.y1=a.y,c};function l(t){return!isNaN(t)&&!isFinite(t)}function h(t,e,n,i){var r=1-t;return l(e[r])&&l(n[r])}function u(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!h(1,n,i)&&!h(0,n,i))||(o.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||o.dataFilter(t,{coord:i,x:e.x1,y:e.y1}))}function c(t,e,n,r,o){var s,a=r.coordinateSystem,h=t.getItemModel(e),u=i.parsePercent(h.get(n[0]),o.getWidth()),c=i.parsePercent(h.get(n[1]),o.getHeight());if(isNaN(u)||isNaN(c)){if(r.getMarkerPosition)s=r.getMarkerPosition(t.getValues(n,e));else{var g=t.get(n[0],e),d=t.get(n[1],e),f=[g,d];a.clampData&&a.clampData(f,f),s=a.dataToPoint(f,!0)}if("cartesian2d"===a.type){var A=a.getAxis("x"),p=a.getAxis("y");g=t.get(n[0],e),d=t.get(n[1],e);l(g)?s[0]=A.toGlobalCoord(A.getExtent()["x0"===n[0]?0:1]):l(d)&&(s[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(s[0]=u),isNaN(c)||(s[1]=c)}else s=[u,c];return s}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function d(e,i,r){var o,s,l=["x0","y0","x1","y1"];e?(o=t.map(e&&e.dimensions,(function(e){var n=i.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return t.defaults({name:e},r)})),s=new n(t.map(l,(function(t,e){return{name:t,type:o[e%2].type}})),r)):(o=[{name:"value",type:"float"}],s=new n(o,r));var h=t.map(r.get("data"),t.curry(a,i,e,r));e&&(h=t.filter(h,t.curry(u,e)));var c=e?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return s.initData(h,null,c),s.hasItemOption=!0,s}return s.extend({type:"markArea",updateTransform:function(e,n,i){n.eachSeries((function(e){var n=e.markAreaModel;if(n){var r=n.getData();r.each((function(n){var o=t.map(g,(function(t){return c(r,n,t,e,i)}));r.setItemLayout(n,o);var s=r.getItemGraphicEl(n);s.setShape("points",o)}))}}),this)},renderSeries:function(n,i,o,s){var a=n.coordinateSystem,h=n.id,u=n.getData(),f=this.markerGroupMap,A=f.get(h)||f.set(h,{group:new r.Group});this.group.add(A.group),A.__keep=!0;var p=d(a,n,i);i.setData(p),p.each((function(e){var i=t.map(g,(function(t){return c(p,e,t,n,s)})),r=!0;t.each(g,(function(t){if(r){var n=p.get(t[0],e),i=p.get(t[1],e);(l(n)||a.getAxis("x").containData(n))&&(l(i)||a.getAxis("y").containData(i))&&(r=!1)}})),p.setItemLayout(e,{points:i,allClipped:r}),p.setItemVisual(e,{color:u.getVisual("color")})})),p.diff(A.__data).add((function(t){var e=p.getItemLayout(t);if(!e.allClipped){var n=new r.Polygon({shape:{points:e.points}});p.setItemGraphicEl(t,n),A.group.add(n)}})).update((function(t,e){var n=A.__data.getItemGraphicEl(e),o=p.getItemLayout(t);o.allClipped?n&&A.group.remove(n):(n?r.updateProps(n,{shape:{points:o.points}},i,t):n=new r.Polygon({shape:{points:o.points}}),p.setItemGraphicEl(t,n),A.group.add(n))})).remove((function(t){var e=A.__data.getItemGraphicEl(t);A.group.remove(e)})).execute(),p.eachItemGraphicEl((function(n,o){var s=p.getItemModel(o),a=s.getModel("label"),l=s.getModel("emphasis.label"),h=p.getItemVisual(o,"color");n.useStyle(t.defaults(s.getModel("itemStyle").getItemStyle(),{fill:e.modifyAlpha(h,.4),stroke:h})),n.hoverStyle=s.getModel("emphasis.itemStyle").getItemStyle(),r.setLabelStyle(n.style,n.hoverStyle,a,l,{labelFetcher:i,labelDataIndex:o,defaultText:p.getName(o)||"",isRectText:!0,autoColor:h}),r.setHoverStyle(n,{}),n.dataModel=i})),A.__data=p,A.group.silent=i.get("silent")||n.get("silent")}}),Nbt}function jbt(){if(Obt)return Qbt;Obt=1;var t=mH;return zbt(),Gbt(),t.registerPreprocessor((function(t){t.markArea=t.markArea||{}})),Qbt}var Ubt,qbt,Vbt={},Hbt={};function Ybt(){if(qbt)return Ubt;qbt=1;var t=mH,e=bH,n=b7,i=Z2,r=i.isNameSpecified,o=cst,s=o.legend.selector,a={all:{type:"all",title:e.clone(s.all)},inverse:{type:"inverse",title:e.clone(s.inverse)}},l=t.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){l.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var n=t.selector;!0===n&&(n=t.selector=["all","inverse"]),e.isArray(n)&&e.each(n,(function(t,i){e.isString(t)&&(t={type:t}),n[i]=e.merge(t,a[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),h=l;return Ubt=h,Ubt}var Wbt,Xbt,Zbt,Kbt,Jbt,$bt,tSt,eSt,nSt,iSt,rSt={};function oSt(){if(Wbt)return rSt;Wbt=1;var t=mH,e=bH;function n(t,n,i){var r,o={},s="toggleSelected"===t;return i.eachComponent("legend",(function(i){s&&null!=r?i[r?"select":"unSelect"](n.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](n.name),r=i.isSelected(n.name));var a=i.getData();e.each(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&n:o[e]=n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:n.name,selected:o}}return t.registerAction("legendToggleSelect","legendselectchanged",e.curry(n,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",e.curry(n,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",e.curry(n,"inverseSelect")),t.registerAction("legendSelect","legendselected",e.curry(n,"select")),t.registerAction("legendUnSelect","legendunselected",e.curry(n,"unSelect")),rSt}function sSt(){if(Zbt)return Xbt;Zbt=1;var t=mH,e=bH,n=Tht(),i=n.createSymbol,r=H1,o=Zwt(),s=o.makeBackground,a=Q7,l=e.curry,h=e.each,u=r.Group,c=t.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new u),this._backgroundEl,this.group.add(this._selectorGroup=new u),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,n,i){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),l=t.get("orient");(!o||"auto"===o)&&(o="right"===t.get("left")&&"vertical"===l?"right":"left");var h=t.get("selector",!0),u=t.get("selectorPosition",!0);h&&(!u||"auto"===u)&&(u="horizontal"===l?"end":"start"),this.renderInner(o,t,n,i,h,l,u);var c=t.getBoxLayoutParams(),g={width:i.getWidth(),height:i.getHeight()},d=t.get("padding"),f=a.getLayoutRect(c,g,d),A=this.layoutInner(t,o,f,r,h,u),p=a.getLayoutRect(e.defaults({width:A.width,height:A.height},c),g,d);this.group.attr("position",[p.x-A.x,p.y-A.y]),this.group.add(this._backgroundEl=s(A,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,n,i,r,o,s,a){var c=this.getContentGroup(),g=e.createHashMap(),p=n.get("selectedMode"),m=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&m.push(t.id)})),h(n.getData(),(function(e,o){var s=e.get("name");if(this.newlineDisabled||""!==s&&"\n"!==s){var a=i.getSeriesByName(s)[0];if(!g.get(s))if(a){var h=a.getData(),y=h.getVisual("color"),v=h.getVisual("borderColor");"function"==typeof y&&(y=y(a.getDataParams(0))),"function"==typeof v&&(v=v(a.getDataParams(0)));var _=h.getVisual("legendSymbol")||"roundRect",x=h.getVisual("symbol"),I=this._createItem(s,o,e,n,_,x,t,y,v,p);I.on("click",l(d,s,null,r,m)).on("mouseover",l(f,a.name,null,r,m)).on("mouseout",l(A,a.name,null,r,m)),g.set(s,!0)}else i.eachRawSeries((function(i){if(!g.get(s)&&i.legendVisualProvider){var a=i.legendVisualProvider;if(!a.containName(s))return;var h=a.indexOfName(s),u=a.getItemVisual(h,"color"),c=a.getItemVisual(h,"borderColor"),y="roundRect",v=this._createItem(s,o,e,n,y,null,t,u,c,p);v.on("click",l(d,null,s,r,m)).on("mouseover",l(f,null,s,r,m)).on("mouseout",l(A,null,s,r,m)),g.set(s,!0)}}),this)}else c.add(new u({newline:!0}))}),this),o&&this._createSelector(o,n,r,s,a)},_createSelector:function(t,e,n,i,o){var s=this.getSelectorGroup();function a(t){var i=t.type,o=new r.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});s.add(o);var a=e.getModel("selectorLabel"),l=e.getModel("emphasis.selectorLabel");r.setLabelStyle(o.style,o.hoverStyle={},a,l,{defaultText:t.title,isRectText:!1}),r.setHoverStyle(o)}h(t,(function(t){a(t)}))},_createItem:function(t,n,o,s,a,l,h,c,d,f){var A=s.get("itemWidth"),p=s.get("itemHeight"),m=s.get("inactiveColor"),y=s.get("inactiveBorderColor"),v=s.get("symbolKeepAspect"),_=s.getModel("itemStyle"),x=s.isSelected(t),I=new u,w=o.getModel("textStyle"),C=o.get("icon"),E=o.getModel("tooltip"),b=E.parentModel;a=C||a;var S=i(a,0,0,A,p,x?c:m,null==v||v);if(I.add(g(S,a,_,d,y,x)),!C&&l&&(l!==a||"none"===l)){var B=.8*p;"none"===l&&(l="circle");var M=i(l,(A-B)/2,(p-B)/2,B,B,x?c:m,null==v||v);I.add(g(M,l,_,d,y,x))}var T="left"===h?A+5:-5,D=h,R=s.get("formatter"),k=t;"string"==typeof R&&R?k=R.replace("{name}",null!=t?t:""):"function"==typeof R&&(k=R(t)),I.add(new r.Text({style:r.setTextStyle({},w,{text:k,x:T,y:p/2,textFill:x?w.getTextColor():m,textAlign:D,textVerticalAlign:"middle"})}));var L=new r.Rect({shape:I.getBoundingRect(),invisible:!0,tooltip:E.get("show")?e.extend({content:t,formatter:b.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:s.componentIndex,name:t,$vars:["name"]}},E.option):null});return I.add(L),I.eachChild((function(t){t.silent=!0})),L.silent=!f,this.getContentGroup().add(I),r.setHoverStyle(I),I.__legendDataIndex=n,I},layoutInner:function(t,e,n,i,r,o){var s=this.getContentGroup(),l=this.getSelectorGroup();a.box(t.get("orient"),s,t.get("itemGap"),n.width,n.height);var h=s.getBoundingRect(),u=[-h.x,-h.y];if(r){a.box("horizontal",l,t.get("selectorItemGap",!0));var c=l.getBoundingRect(),g=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,A=0===f?"width":"height",p=0===f?"height":"width",m=0===f?"y":"x";"end"===o?g[f]+=h[A]+d:u[f]+=c[A]+d,g[1-f]+=h[p]/2-c[p]/2,l.attr("position",g),s.attr("position",u);var y={x:0,y:0};return y[A]=h[A]+d+c[A],y[p]=Math.max(h[p],c[p]),y[m]=Math.min(0,c[m]+g[1-f]),y}return s.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function g(t,e,n,i,r,o){var s;return"line"!==e&&e.indexOf("empty")<0?(s=n.getItemStyle(),t.style.stroke=i,o||(s.stroke=r)):s=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(s)}function d(t,e,n,i){A(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),f(t,e,n,i)}function f(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function A(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}return Xbt=c,Xbt}function aSt(){if(Jbt)return Kbt;function t(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;no[a],p=[-d.x,-d.y];r||(p[s]=u.position[s]);var m=[0,0],y=[-f.x,-f.y],v=t.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(A){var _=i.get("pageButtonPosition",!0);"end"===_?y[s]+=o[a]-f[a]:m[s]+=f[a]+v}y[1-s]+=d[l]/2-f[l]/2,u.attr("position",p),c.attr("position",m),g.attr("position",y);var x={x:0,y:0};if(x[a]=A?o[a]:d[a],x[l]=Math.max(d[l],f[l]),x[h]=Math.min(0,f[h]+y[1-s]),c.__rectSize=o[a],A){var I={x:0,y:0};I[a]=Math.max(o[a]-f[a]-v,0),I[l]=x[l],c.setClipPath(new e.Rect({shape:I})),c.__rectSize=I[a]}else g.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(i);return null!=w.pageIndex&&e.updateProps(u,{position:w.contentPosition},!!A&&i),this._updatePageInfoView(i,w),x},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(e,n){var i=this._controllerGroup;t.each(["pagePrev","pageNext"],(function(t){var r=null!=n[t+"DataIndex"],o=i.childOfName(t);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,a=null!=s?s+1:0,l=n.pageCount;r&&o&&r.setStyle("text",t.isString(o)?o.replace("{current}",a).replace("{total}",l):o({current:a,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,a=o[r],l=s[r],h=this._findTargetItemIndex(e),u=n.children(),c=u[h],g=u.length,d=g?1:0,f={contentPosition:n.position.slice(),pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var A=_(c);f.contentPosition[r]=-A.s;for(var p=h+1,m=A,y=A,v=null;p<=g;++p)v=_(u[p]),(!v&&y.e>m.s+i||v&&!x(v,m.s))&&(m=y.i>m.i?y:v,m&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount)),y=v;for(p=h-1,m=A,y=A,v=null;p>=-1;--p)v=_(u[p]),(!v||!x(y,v.s))&&m.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n}}),l=a;return nSt=l,nSt}var cSt,gSt,dSt={};function fSt(){if(cSt)return dSt;cSt=1;var t=mH;return t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))})),dSt}function ASt(){return gSt||(gSt=1,lSt(),hSt(),uSt(),fSt()),Vbt}var pSt,mSt,ySt,vSt,_St,xSt={},ISt={};function wSt(){if(mSt)return pSt;mSt=1;var t=wCt(),e=t.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),n=e;return pSt=n,pSt}function CSt(){if(vSt)return ySt;vSt=1;var t=bH,e=lW,n=H1,i=Jot,r=CCt(),o=F7(),s=Q7,a=Nmt(),l=n.Rect,h=o.linearMap,u=o.asc,c=t.bind,g=t.each,d=7,f=1,A=30,p="horizontal",m="vertical",y=5,v=["line","bar","candlestick","scatter"],_=r.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,r){_.superApply(this,"render",arguments),i.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?((!r||"dataZoom"!==r.type||r.from!==this.uid)&&this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){_.superApply(this,"remove",arguments),i.clear(this,"_dispatchZoomAction")},dispose:function(){_.superApply(this,"dispose",arguments),i.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new n.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,n=this.api,i=this._findCoordRect(),r={width:n.getWidth(),height:n.getHeight()},o=this._orient===p?{right:r.width-i.x-i.width,top:r.height-A-d,width:i.width,height:A}:{right:d,top:i.y,width:A,height:i.height},a=s.getLayoutParams(e.option);t.each(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var l=s.getLayoutRect(a,r,e.padding);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===m&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==p||r?n===p&&r?{scale:s?[-1,1]:[-1,-1]}:n!==m||r?{scale:s?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:s?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:s?[1,1]:[1,-1]});var a=t.getBoundingRect([o]);t.attr("position",[e.x-a.x,e.y-a.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.barGroup;i.add(new l({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40})),i.add(new l({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:t.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var i=this._size,r=e.series,o=r.getRawData(),s=r.getShadowDim?r.getShadowDim():e.otherDim;if(null!=s){var a=o.getDataExtent(s),l=.3*(a[1]-a[0]);a=[a[0]-l,a[1]+l];var u,c=[0,i[1]],g=[0,i[0]],d=[[i[0],0],[0,0]],f=[],A=g[1]/(o.count()-1),p=0,m=Math.round(o.count()/i[0]);o.each([s],(function(t,e){if(m>0&&e%m)p+=A;else{var n=null==t||isNaN(t)||""===t,i=n?0:h(t,a,c,!0);n&&!u&&e?(d.push([d[d.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&u&&(d.push([p,0]),f.push([p,0])),d.push([p,i]),f.push([p,i]),p+=A,u=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new n.Polygon({shape:{points:d},style:t.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new n.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i,r=this.ecModel;return e.eachTargetAxis((function(o,s){var a=e.getAxisProxy(o.name,s).getTargetSeriesModels();t.each(a,(function(e){if(!i&&!(!0!==n&&t.indexOf(v,e.get("type"))<0)){var a,l=r.getComponent(o.axis,s).axis,h=x(o.name),u=e.coordinateSystem;null!=h&&u.getOtherAxis&&(a=u.getOtherAxis(l).inverse),h=e.getData().mapDimension(h),i={thisAxis:l,series:e,thisDim:o.name,otherDim:h,otherAxisInverse:a}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],r=this._displayables.barGroup,s=this._size,a=this.dataZoomModel;r.add(t.filler=new l({draggable:!0,cursor:I(this._orient),drift:c(this._onDragMove,this,"all"),ondragstart:c(this._showDataInfo,this,!0),ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),r.add(new l({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:f,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(t){var s=n.createIcon(a.get("handleIcon"),{cursor:I(this._orient),draggable:!0,drift:c(this._onDragMove,this,t),ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),l=s.getBoundingRect();this._handleHeight=o.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle());var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(e[t]=s);var u=a.textStyleModel;this.group.add(i[t]=new n.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[h(t[0],[0,100],e,!0),h(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];a(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?h(o.minSpan,s,r,!0):null,null!=o.maxSpan?h(o.maxSpan,s,r,!0):null);var l=this._range,c=this._range=u([h(i[0],r,s,!0),h(i[1],r,s,!0)]);return!l||l[0]!==c[0]||l[1]!==c[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=u(n.slice()),r=this._size;g([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,i=this._displayables,r=i.handleLabels,o=this._orient,s=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var l=a.getAxisModel().axis,h=this._range,c=t?a.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:a.getDataValueWindow();s=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var g=u(this._handleEnds.slice());function d(t){var e=n.getTransform(i.handles[t].parent,this.group),a=n.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+y,h=n.applyTransform([g[t]+(0===t?-l:l),this._size[1]/2],e);r[t].setStyle({x:h[0],y:h[1],textVerticalAlign:o===p?"middle":a,textAlign:o===p?a:"center",text:s[t]})}d.call(this,0),d.call(this,1)},_formatLabel:function(e,n){var i=this.dataZoomModel,r=i.get("labelFormatter"),o=i.get("labelPrecision");(null==o||"auto"===o)&&(o=n.getPixelPrecision());var s=null==e||isNaN(e)?"":"category"===n.type||"time"===n.type?n.scale.getLabel(Math.round(e)):e.toFixed(Math.min(o,20));return t.isFunction(r)?r(e,s):t.isString(r)?r.replace("{value}",s):s},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,i,r,o){this._dragging=!0,e.stop(o.event);var s=this._displayables.barGroup.getLocalTransform(),a=n.applyTransform([i,r],s,!0),l=this._updateInterval(t,a[0]),h=this.dataZoomModel.get("realtime");this._updateView(!h),l&&h&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}})),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function x(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function I(t){return"vertical"===t?"ns-resize":"ew-resize"}var w=_;return ySt=w,ySt}function ESt(){return _St||(_St=1,lCt(),wCt(),CCt(),wSt(),CSt(),MCt(),FCt()),ISt}var bSt,SSt,BSt={};function MSt(){if(SSt)return bSt;SSt=1;var t=wCt(),e=t.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});return bSt=e,bSt}var TSt,DSt,RSt,kSt,LSt,PSt={};function QSt(){if(TSt)return PSt;TSt=1;var t=bH,e=Hdt(),n=Jot,i="\0_ec_dataZoom_roams";function r(e,i){var r=a(e),o=i.dataZoomId,s=i.coordId;t.each(r,(function(e,n){var r=e.dataZoomInfos;r[o]&&t.indexOf(i.allCoordIds,s)<0&&(delete r[o],e.count--)})),h(r);var g=r[s];g||(g=r[s]={coordId:s,dataZoomInfos:{},count:0},g.controller=l(e,g),g.dispatchAction=t.curry(u,e)),!g.dataZoomInfos[o]&&g.count++,g.dataZoomInfos[o]=i;var d=c(g.dataZoomInfos);g.controller.enable(d.controlType,d.opt),g.controller.setPointerChecker(i.containsPoint),n.createOrUpdate(g,"dispatchAction",i.dataZoomModel.get("throttle",!0),"fixRate")}function o(e,n){var i=a(e);t.each(i,(function(t){t.controller.dispose();var e=t.dataZoomInfos;e[n]&&(delete e[n],t.count--)})),h(i)}function s(t){return t.type+"\0_"+t.id}function a(t){var e=t.getZr();return e[i]||(e[i]={})}function l(n,i){var r=new e(n.getZr());return t.each(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(n){var r=[];t.each(i.dataZoomInfos,(function(t){if(n.isAvailableBehavior(t.dataZoomModel.option)){var o=(t.getRange||{})[e],s=o&&o(i.controller,n);!t.dataZoomModel.get("disabled",!0)&&s&&r.push({dataZoomId:t.dataZoomId,start:s[0],end:s[1]})}})),r.length&&i.dispatchAction(r)}))})),r}function h(e){t.each(e,(function(t,n){t.count||(t.controller.dispose(),delete e[n])}))}function u(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function c(e){var n,i="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return t.each(e,(function(t){var e=t.dataZoomModel,s=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");r[i+s]>r[i+n]&&(n=s),o&=e.get("preventDefaultMouseMove",!0)})),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}return PSt.register=r,PSt.unregister=o,PSt.generateCoordId=s,PSt}function zSt(){if(RSt)return DSt;RSt=1;var t=bH,e=CCt(),n=Nmt(),i=QSt(),r=t.bind,o=e.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(e,n,a,l){o.superApply(this,"render",arguments),this._range=e.getPercentRange(),t.each(this.getTargetCoordInfo(),(function(n,o){var l=t.map(n,(function(t){return i.generateCoordId(t.model)}));t.each(n,(function(n){var h=n.model,u={};t.each(["pan","zoom","scrollMove"],(function(t){u[t]=r(s[t],this,n,o)}),this),i.register(a,{coordId:i.generateCoordId(h),allCoordIds:l,containsPoint:function(t,e,n){return h.coordinateSystem.containPoint([e,n])},dataZoomId:e.id,dataZoomModel:e,getRange:u})}),this)}),this)},dispose:function(){i.unregister(this.api,this.dataZoomModel.id),o.superApply(this,"dispose",arguments),this._range=null}}),s={zoom:function(t,e,i,r){var o=this._range,s=o.slice(),a=t.axisModels[0];if(a){var h=l[e](null,[r.originX,r.originY],a,i,t),u=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(s[1]-s[0])+s[0],c=Math.max(1/r.scale,0);s[0]=(s[0]-u)*c+u,s[1]=(s[1]-u)*c+u;var g=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(n(0,s,[0,100],0,g.minSpan,g.maxSpan),this._range=s,o[0]!==s[0]||o[1]!==s[1])return s}},pan:a((function(t,e,n,i,r,o){var s=l[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return s.signal*(t[1]-t[0])*s.pixel/s.pixelLength})),scrollMove:a((function(t,e,n,i,r,o){var s=l[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return s.signal*(t[1]-t[0])*o.scrollDelta}))};function a(t){return function(e,i,r,o){var s=this._range,a=s.slice(),l=e.axisModels[0];if(l){var h=t(a,l,e,i,r,o);if(n(h,a,[0,100],"all"),this._range=a,s[0]!==a[0]||s[1]!==a[1])return a}}}var l={grid:function(t,e,n,i,r){var o=n.axis,s={},a=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s},polar:function(t,e,n,i,r){var o=n.axis,s={},a=r.model.coordinateSystem,l=a.getRadiusAxis().getExtent(),h=a.getAngleAxis().getExtent();return t=t?a.pointToCoord(t):[0,0],e=a.pointToCoord(e),"radiusAxis"===n.mainType?(s.pixel=e[0]-t[0],s.pixelLength=l[1]-l[0],s.pixelStart=l[0],s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=h[1]-h[0],s.pixelStart=h[0],s.signal=o.inverse?-1:1),s},singleAxis:function(t,e,n,i,r){var o=n.axis,s=r.model.coordinateSystem.getRect(),a={};return t=t||[0,0],"horizontal"===o.orient?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a}},h=o;return DSt=h,DSt}function FSt(){return kSt||(kSt=1,lCt(),wCt(),CCt(),MSt(),zSt(),MCt(),FCt()),BSt}function OSt(){return LSt||(LSt=1,ESt(),FSt()),xSt}var NSt,GSt,jSt={},USt={};function qSt(){if(GSt)return NSt;GSt=1;var t=bH,e=t.each;function n(n){var r=n&&n.visualMap;t.isArray(r)||(r=r?[r]:[]),e(r,(function(n){if(n){i(n,"splitList")&&!i(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&t.isArray(r)&&e(r,(function(e){t.isObject(e)&&(i(e,"start")&&!i(e,"min")&&(e.min=e.start),i(e,"end")&&!i(e,"max")&&(e.max=e.end))}))}}))}function i(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}return NSt=n,NSt}var VSt,HSt={};function YSt(){if(VSt)return HSt;VSt=1;var t=jtt;return t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),HSt}var WSt,XSt,ZSt,KSt,JSt,$St,tBt,eBt,nBt,iBt={};function rBt(){if(WSt)return iBt;WSt=1;var t=mH,e=bH,n=yEt(),i=kAt(),r=t.PRIORITY.VISUAL.COMPONENT;function o(t,e,n,r){for(var o=e.targetVisuals[r],s=i.prepareVisualTypes(o),a={color:t.getData().getVisual("color")},l=0,h=s.length;l"],e.isArray(t)&&(t=t.slice(),r=!0),o=n?t:r?[u(t[0]),u(t[1])]:u(t),e.isString(h)?h.replace("{value}",r?o[0]:o).replace("{value2}",r?o[1]:o):e.isFunction(h)?r?h(t[0],t[1]):h(t):r?t[0]===l[0]?i[0]+" "+o[1]:t[1]===l[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o;function u(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(a,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,n=this.option,o={inRange:n.inRange,outOfRange:n.outOfRange},s=n.target||(n.target={}),a=n.controller||(n.controller={});e.merge(s,o),e.merge(a,o);var g=this.isCategory();function f(r){u(n.color)&&!r.inRange&&(r.inRange={color:n.color.slice().reverse()}),r.inRange=r.inRange||{color:t.get("gradientColor")},c(this.stateList,(function(t){var n=r[t];if(e.isString(n)){var o=i.get(n,"active",g);o?(r[t]={},r[t][n]=o):delete r[t]}}),this)}function A(t,e,n){var o=t[e],s=t[n];o&&!s&&(s=t[n]={},c(o,(function(t,e){if(r.isValidType(e)){var n=i.get(e,"inactive",g);null!=n&&(s[e]=n,"color"===e&&!s.hasOwnProperty("opacity")&&!s.hasOwnProperty("colorAlpha")&&(s.opacity=[0,0]))}})))}function p(t){var n=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor");c(this.stateList,(function(o){var s=this.itemSize,a=t[o];a||(a=t[o]={color:g?r:[r]}),null==a.symbol&&(a.symbol=n&&e.clone(n)||(g?"roundRect":["roundRect"])),null==a.symbolSize&&(a.symbolSize=i&&e.clone(i)||(g?s[0]:[s[0],s[0]])),a.symbol=l(a.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=a.symbolSize;if(null!=u){var c=-1/0;h(u,(function(t){t>c&&(c=t)})),a.symbolSize=l(u,(function(t){return d(t,[0,c],[0,s[0]],!0)}))}}),this)}f.call(this,s),f.call(this,a),A.call(this,s,"inRange","outOfRange"),p.call(this,a)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:f,getValueState:f,getVisualMeta:f}),p=A;return KSt=p,KSt}function aBt(){if(tBt)return $St;tBt=1;var t=bH,e=sBt(),n=F7(),i=[20,140],r=e.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){r.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){r.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=i[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=i[1])},_resetRange:function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):t.isArray(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},completeVisualOption:function(){e.prototype.completeVisualOption.apply(this,arguments),t.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=n.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getVisualMeta:function(t){var e=o(this,"outOfRange",this.getExtent()),n=o(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var s=0,a=0,l=n.length,h=e.length;at[1])break;i.push({color:this.getControllerVisual(s,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new r.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels;u([0,1],(function(a){var l=o[a];l.setStyle("fill",e.handlesColor[a]),l.position[1]=t[a];var h=r.applyTransform(n.handleLabelPoints[a],r.getTransform(l,this.group));s[a].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(t,e,n,i){var o=this.visualMapModel,s=o.getExtent(),a=o.itemSize,l=[0,a[1]],u=h(t,s,l,!0),c=this._shapes,g=c.indicator;if(g){g.position[1]=u,g.attr("invisible",!1),g.setShape("points",y(!!n,i,u,a[1]));var d={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",d);g.setStyle("fill",f);var A=r.applyTransform(c.indicatorLabelPoint,r.getTransform(g,this.group)),p=c.indicatorLabel;p.attr("invisible",!1);var m=this._applyTransform("left",c.barGroup),v=this._orient;p.setStyle({text:(n||"")+o.formatValueText(e),textVerticalAlign:"horizontal"===v?m:"middle",textAlign:"horizontal"===v?"center":m,x:A[0],y:A[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=c(g(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=c(g(r[0],t),r[1]);var s=v(n,o,r),u=[t-s,t+s],d=h(t,r,o,!0),f=[h(u[0],r,o,!0),h(u[1],r,o,!0)];u[0]r[1]&&(f[1]=1/0),e&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",s):f[1]===1/0?this._showIndicator(d,f[0],"> ",s):this._showIndicator(d,d,"≈ ",s));var A=this._hoverLinkDataIndices,p=[];(e||_(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var m=l.compressBatches(A,p);this._dispatchHighDown("downplay",a.makeHighDownBatch(m[0],n)),this._dispatchHighDown("highlight",a.makeHighDownBatch(m[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(e.dataType),o=r.get(n.getDataDimension(r),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",a.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(e,n,i,o){var s=r.getTransform(n,o?null:this.group);return r[t.isArray(e)?"applyTransform":"transformDirection"](e,s,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function p(t,e,i,o){return new r.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){n.stop(t.event)},ondragend:o})}function m(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function y(t,e,n,i){return t?[[0,-c(e,g(n,0))],[f,0],[0,c(e,g(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function v(t,e,n){var i=d/2,r=t.get("hoverLinkDataSize");return r&&(i=h(r,e,n,!0)/2),i}function _(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function x(t){return"vertical"===t?"ns-resize":"ew-resize"}var I=A;return uBt=I,uBt}var ABt,pBt,mBt={};function yBt(){if(ABt)return mBt;ABt=1;var t=mH,e={type:"selectDataRange",event:"dataRangeSelected",update:"update"};return t.registerAction(e,(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))})),mBt}function vBt(){if(pBt)return USt;pBt=1;var t=mH,e=qSt();return YSt(),rBt(),aBt(),fBt(),yBt(),t.registerPreprocessor(e),USt}var _Bt,xBt,IBt,wBt,CBt,EBt,bBt={};function SBt(){if(xBt)return _Bt;xBt=1;var t=bH,e=sBt(),n=kAt(),i=oBt(),r=F7(),o=r.reformIntervals,s=e.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,n){s.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();a[this._mode].call(this),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(e,n){"categories"===i?(e.mappingMethod="category",e.categories=t.clone(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=t.map(this._pieceList,(function(e){e=t.clone(e);return"inRange"!==n&&(e.visual=null),e})))}))},completeVisualOption:function(){var r=this.option,o={},s=n.listVisualTypes(),a=this.isCategory();function l(e,n,i){return e&&e[n]&&(t.isObject(e[n])?e[n].hasOwnProperty(i):e[n]===i)}t.each(r.pieces,(function(e){t.each(s,(function(t){e.hasOwnProperty(t)&&(o[t]=1)}))})),t.each(o,(function(e,n){var o=0;t.each(this.stateList,(function(t){o|=l(r,t,n)||l(r.target,t,n)}),this),!o&&t.each(this.stateList,(function(t){(r[t]||(r[t]={}))[n]=i.get(n,"inRange"===t?"active":"inactive",a)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,n){var i=this.option,r=this._pieceList,o=(n?i:e).selected||{};if(i.selected=o,t.each(r,(function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===i.selectedMode){var s=!1;t.each(r,(function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(s?o[n]=!1:s=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=t.clone(e)},getValueState:function(t){var e=n.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimension(o),(function(e,i){var o=n.findPieceIndex(e,this._pieceList);o===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(e){if(!this.isCategory()){var n=[],i=[],r=this,o=this._pieceList.slice();if(o.length){var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}else o.push({interval:[-1/0,1/0]});var a=-1/0;return t.each(o,(function(t){var e=t.interval;e&&(e[0]>a&&l([a,e[0]],"outOfRange"),l(e.slice()),a=e[1])}),this),{stops:n,outerColors:i}}function l(t,o){var s=r.getRepresentValue({interval:t});o||(o=r.getValueState(s));var a=e(s,o);t[0]===-1/0?i[0]=a:t[1]===1/0?i[1]=a:n.push({value:t[0],color:a},{value:t[1],color:a})}}}),a={splitNumber:function(){var e=this.option,n=this._pieceList,i=Math.min(e.precision,20),r=this.getExtent(),s=e.splitNumber;s=Math.max(parseInt(s,10),1),e.splitNumber=s;for(var a=(r[1]-r[0])/s;+a.toFixed(i)!==a&&i<5;)i++;e.precision=i,a=+a.toFixed(i),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var l=0,h=r[0];l","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function l(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var h=s;return _Bt=h,_Bt}function BBt(){if(wBt)return IBt;wBt=1;var t=bH,e=lBt(),n=H1,i=Tht(),r=i.createSymbol,o=Q7,s=dBt(),a=e.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var i=this.visualMapModel,r=i.get("textGap"),s=i.textStyleModel,a=s.getFont(),l=s.getTextColor(),h=this._getItemAlign(),u=i.itemSize,c=this._getViewData(),g=c.endsText,d=t.retrieve(i.get("showLabel",!0),!g);function f(o){var s=o.piece,c=new n.Group;c.onclick=t.bind(this._onItemClick,this,s),this._enableHoverLink(c,o.indexInModelPieceList);var g=i.getRepresentValue(s);if(this._createItemSymbol(c,g,[0,0,u[0],u[1]]),d){var f=this.visualMapModel.getValueState(g);c.add(new n.Text({style:{x:"right"===h?-r:u[0]+r,y:u[1]/2,text:s.text,textVerticalAlign:"middle",textAlign:h,textFont:a,textFill:l,opacity:"outOfRange"===f?.5:1}}))}e.add(c)}g&&this._renderEndsText(e,g[0],u,d,h),t.each(c.viewPieceList,f,this),g&&this._renderEndsText(e,g[1],u,d,h),o.box(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,n){function i(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:s.makeHighDownBatch(e.findTargetDataIndices(n),e)})}e.on("mouseover",t.bind(i,this,"highlight")).on("mouseout",t.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return s.getItemAlign(t,this.api,t.itemSize);var n=e.align;return(!n||"auto"===n)&&(n="left"),n},_renderEndsText:function(t,e,i,r,o){if(e){var s=new n.Group,a=this.visualMapModel.textStyleModel;s.add(new n.Text({style:{x:r?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:r?o:"center",text:e,textFont:a.getFont(),textFill:a.getTextColor()}})),t.add(s)}},_getViewData:function(){var e=this.visualMapModel,n=t.map(e.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=e.get("text"),r=e.get("orient"),o=e.get("inverse");return("horizontal"===r?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},_createItemSymbol:function(t,e,n){t.add(r(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(e){var n=this.visualMapModel,i=n.option,r=t.clone(i.selected),o=n.getSelectedMapKey(e);"single"===i.selectedMode?(r[o]=!0,t.each(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),l=a;return IBt=l,IBt}function MBt(){if(CBt)return bBt;CBt=1;var t=mH,e=qSt();return YSt(),rBt(),SBt(),BBt(),yBt(),t.registerPreprocessor(e),bBt}function TBt(){return EBt||(EBt=1,vBt(),MBt()),jSt}var DBt,RBt,kBt,LBt,PBt,QBt={},zBt={},FBt={};function OBt(){if(DBt)return FBt;DBt=1;var t,e=EH,n="urn:schemas-microsoft-com:vml",i="undefined"==typeof window?null:window,r=!1,o=i&&i.document;function s(e){return t(e)}if(o&&!e.canvasSupported)try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",n),t=function(t){return o.createElement("')}}catch(l){t=function(t){return o.createElement("<"+t+' xmlns="'+n+'" class="zrvml">')}}function a(){if(!r&&o){r=!0;var t=o.styleSheets;t.length<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}return FBt.doc=o,FBt.createNode=s,FBt.initVML=a,FBt}function NBt(){if(RBt)return zBt;RBt=1;var t=EH,e=EY,n=e.applyTransform,i=EK,r=NX,o=DJ,s=TJ,a=s0(),l=d0,h=_0,u=E4,c=U5,g=q3,d=J8,f=OBt(),A=g.CMD,p=Math.round,m=Math.sqrt,y=Math.abs,v=Math.cos,_=Math.sin,x=Math.max;if(!t.canvasSupported){var I=",",w="progid:DXImageTransform.Microsoft",C=21600,E=C/2,b=1e5,S=1e3,B=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=C+","+C,t.coordorigin="0,0"},M=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},T=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},D=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},R=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},k=function(t,e,n){return(parseFloat(t)||0)*b+(parseFloat(e)||0)*S+n},L=s.parsePercent,P=function(t,e,n){var i=r.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=T(i[0],i[1],i[2]),t.opacity=n*i[3])},Q=function(t){var e=r.parse(t);return[T(e[0],e[1],e[2]),e[3]]},z=function(t,e,i){var r=e.fill;if(null!=r)if(r instanceof d){var o,s=0,a=[0,0],l=0,h=1,u=i.getBoundingRect(),c=u.width,g=u.height;if("linear"===r.type){o="gradient";var f=i.transform,A=[r.x*c,r.y*g],p=[r.x2*c,r.y2*g];f&&(n(A,A,f),n(p,p,f));var m=p[0]-A[0],y=p[1]-A[1];s=180*Math.atan2(m,y)/Math.PI,s<0&&(s+=360),s<1e-6&&(s=0)}else{o="gradientradial";A=[r.x*c,r.y*g],f=i.transform;var v=i.scale,_=c,I=g;a=[(A[0]-u.x)/_,(A[1]-u.y)/I],f&&n(A,A,f),_/=v[0]*C,I/=v[1]*C;var w=x(_,I);l=0/w,h=2*r.r/w-l}var E=r.colorStops.slice();E.sort((function(t,e){return t.offset-e.offset}));for(var b=E.length,S=[],B=[],M=0;M=2){var R=S[0][0],k=S[1][0],L=S[0][1]*e.opacity,z=S[1][1]*e.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=s,t.color=R,t.color2=k,t.colors=B.join(","),t.opacity=z,t.opacity2=L}"radial"===o&&(t.focusposition=a.join(","))}else P(t,r,e.opacity)},F=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null!=e.stroke&&!(e.stroke instanceof d)&&P(t,e.stroke,e.opacity)},O=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof d&&R(t,o),o||(o=f.createNode(e)),r?z(o,n,i):F(o,n),D(t,o)):(t[r?"filled":"stroked"]="false",R(t,o))},N=[[],[],[]],G=function(t,e){var i,r,o,s,a,l,h=A.M,u=A.C,c=A.L,g=A.A,d=A.Q,f=[],y=t.data,x=t.len();for(s=0;s.01?U&&(q+=270/C):Math.abs(V-z)<1e-4?U&&qQ?B-=270/C:B+=270/C:U&&Vz?S+=270/C:S-=270/C),f.push(H,p(((Q-F)*k+D)*C-E),I,p(((z-O)*L+R)*C-E),I,p(((Q+F)*k+D)*C-E),I,p(((z+O)*L+R)*C-E),I,p((q*k+D)*C-E),I,p((V*L+R)*C-E),I,p((S*k+D)*C-E),I,p((B*L+R)*C-E)),a=S,l=B;break;case A.R:var Y=N[0],W=N[1];Y[0]=y[s++],Y[1]=y[s++],W[0]=Y[0]+y[s++],W[1]=Y[1]+y[s++],e&&(n(Y,Y,e),n(W,W,e)),Y[0]=p(Y[0]*C-E),W[0]=p(W[0]*C-E),Y[1]=p(Y[1]*C-E),W[1]=p(W[1]*C-E),f.push(" m ",Y[0],I,Y[1]," l ",W[0],I,Y[1]," l ",W[0],I,W[1]," l ",Y[0],I,W[1]);break;case A.Z:f.push(" x ")}if(i>0){f.push(r);for(var X=0;XY&&(H=0,V={});var n,i=W.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(r){}e={style:i.fontStyle||q,variant:i.fontVariant||q,weight:i.fontWeight||q,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},V[t]=e,H++}return e};o.$override("measureText",(function(t,e){var n=f.doc;U||(U=n.createElement("div"),U.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",f.doc.body.appendChild(U));try{U.style.font=e}catch(i){}return U.innerHTML="",U.appendChild(n.createTextNode(t)),{width:U.offsetWidth}}));for(var Z=new i,K=function(t,e,i,r){var a=this.style;this.__dirty&&s.normalizeTextStyle(a,!0);var l=a.text;if(null!=l&&(l+=""),l){if(a.rich){var h=o.parseRichText(l,a);l=[];for(var u=0;u-m}function _(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==u}function x(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==u}function I(t,e){e&&w(t,"transform","matrix("+h.call(e,",")+")")}function w(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function C(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function E(t,e,n,i){if(_(e,n)){var r=n?e.textFill:e.fill;r="transparent"===r?u:r,w(t,"fill",r),w(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else w(t,"fill",u);if(x(e,n)){var o=n?e.textStroke:e.stroke;o="transparent"===o?u:o,w(t,"stroke",o);var s=n?e.textStrokeWidth:e.lineWidth,a=!n&&e.strokeNoScale?i.getLineScale():1;w(t,"stroke-width",s/a),w(t,"paint-order",n?"stroke":"fill"),w(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var l=e.lineDash;l?(w(t,"stroke-dasharray",e.lineDash.join(",")),w(t,"stroke-dashoffset",c(e.lineDashOffset||0))):w(t,"stroke-dasharray",""),e.lineCap&&w(t,"stroke-linecap",e.lineCap),e.lineJoin&&w(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&w(t,"stroke-miterlimit",e.miterLimit)}else w(t,"stroke",u)}function b(t){for(var e=[],n=t.data,i=t.len(),r=0;r=A:-I>=A),S=I>0?I%A:I%A+A,B=!1;B=!!b||!v(E)&&S>=f==!!C;var M=y(h+m*d(x)),T=y(u+_*g(x));b&&(I=C?A-1e-4:1e-4-A,B=!0,9===r&&e.push("M",M,T));var D=y(h+m*d(x+I)),R=y(u+_*g(x+I));e.push("A",y(m),y(_),c(w*p),+B,+C,D,R);break;case l.Z:s="Z";break;case l.R:D=y(n[r++]),R=y(n[r++]);var k=y(n[r++]),L=y(n[r++]);e.push("M",D,R,"L",D+k,R,"L",D+k,R+L,"L",D,R+L,"L",D,R);break}s&&e.push(s);for(var P=0;PL){for(;R=s&&c+1>=a){for(var g=[],d=0;d=s&&d+1>=a)return e(o,h.components);u[r]=h}else u[r]=void 0}l++}for(;l<=h;){var A=f();if(A)return A}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var r=e.length,o=n.length,s=t.newPos,a=s-i,l=0;s+1=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},g.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},g.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},g.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},g.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return n.each(this._tagNames,(function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))})),e},g.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;n.each(t,(function(t){t[e._markLabel]=u}))},g.prototype.markUsed=function(t){t&&(t[this._markLabel]=c)},g.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;n.each(e,(function(e){e[i._markLabel]!==c&&t.removeChild(e)}))}},g.prototype.getSvgProxy=function(t){return t instanceof i?a:t instanceof r?l:t instanceof o?h:a},g.prototype.getTextSvgElement=function(t){return t.__textSvgEl},g.prototype.getSvgElement=function(t){return t.__svgEl};var d=g;return YBt=d,YBt}function cMt(){if(ZBt)return XBt;ZBt=1;var t=uMt(),e=bH,n=XZ,i=NX;function r(e,n){t.call(this,e,n,["linearGradient","radialGradient"],"__gradient_in_use__")}e.inherits(r,t),r.prototype.addWithoutUpdate=function(t,n){if(n&&n.style){var i=this;e.each(["fill","stroke"],(function(e){if(n.style[e]&&("linear"===n.style[e].type||"radial"===n.style[e].type)){var r,o=n.style[e],s=i.getDefs(!0);o._dom?(r=o._dom,s.contains(o._dom)||i.addDom(r)):r=i.add(o),i.markUsed(n);var a=r.getAttribute("id");t.setAttribute(e,"url(#"+a+")")}}))}},r.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return n("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},r.prototype.update=function(e){var n=this;t.prototype.update.call(this,e,(function(){var t=e.type,i=e._dom.tagName;"linear"===t&&"linearGradient"===i||"radial"===t&&"radialGradient"===i?n.updateDom(e,e._dom):(n.removeDom(e),n.add(e))}))},r.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void n("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var r=t.colorStops,o=0,s=r.length;o-1){var h=i.parse(l)[3],u=i.toHex(l);a.setAttribute("stop-color","#"+u),a.setAttribute("stop-opacity",h)}else a.setAttribute("stop-color",r[o].color);e.appendChild(a)}t._dom=e},r.prototype.markUsed=function(e){if(e.style){var n=e.style.fill;n&&n._dom&&t.prototype.markUsed.call(this,n._dom),n=e.style.stroke,n&&n._dom&&t.prototype.markUsed.call(this,n._dom)}};var o=r;return XBt=o,XBt}function gMt(){if(JBt)return KBt;JBt=1;var t=uMt(),e=bH,n=uX;function i(e,n){t.call(this,e,n,"clipPath","__clippath_in_use__")}e.inherits(i,t),i.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var n=this.getTextSvgElement(t);n&&this.updateDom(n,t.__clipPaths,!0),this.markUsed(t)},i.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var r,o,s=this.getDefs(!0),a=e[0],l=i?"_textDom":"_dom";a[l]?(o=a[l].getAttribute("id"),r=a[l],s.contains(r)||s.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,r=this.createElement("clipPath"),r.setAttribute("id",o),s.appendChild(r),a[l]=r);var h=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!i){var u=Array.prototype.slice.call(a.transform);n.mul(a.transform,a.parent.invTransform,a.transform),h.brush(a),a.transform=u}else h.brush(a);var c=this.getSvgElement(a);r.innerHTML="",r.appendChild(c.cloneNode()),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(r,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},i.prototype.markUsed=function(n){var i=this;n.__clipPaths&&e.each(n.__clipPaths,(function(e){e._dom&&t.prototype.markUsed.call(i,e._dom),e._textDom&&t.prototype.markUsed.call(i,e._textDom)}))};var r=i;return KBt=r,KBt}function dMt(){if(tMt)return $Bt;tMt=1;var t=uMt(),e=bH;function n(e,n){t.call(this,e,n,["filter"],"__filter_in_use__","_shadowDom")}function i(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}e.inherits(n,t),n.prototype.addWithoutUpdate=function(t,e){if(e&&i(e.style)){var n;if(e._shadowDom){n=e._shadowDom;var r=this.getDefs(!0);r.contains(e._shadowDom)||this.addDom(n)}else n=this.add(e);this.markUsed(e);var o=n.getAttribute("id");t.style.filter="url(#"+o+")"}},n.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},n.prototype.update=function(e,n){var r=n.style;if(i(r)){var o=this;t.prototype.update.call(this,n,(function(){o.updateDom(n,n._shadowDom)}))}else this.remove(e,n)},n.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},n.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,o,s,a=t.style,l=t.scale&&t.scale[0]||1,h=t.scale&&t.scale[1]||1;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)i=a.shadowOffsetX||0,r=a.shadowOffsetY||0,o=a.shadowBlur,s=a.shadowColor;else{if(!a.textShadowBlur)return void this.removeDom(e,a);i=a.textShadowOffsetX||0,r=a.textShadowOffsetY||0,o=a.textShadowBlur,s=a.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",r/h),n.setAttribute("flood-color",s);var u=o/2/l,c=o/2/h,g=u+" "+c;n.setAttribute("stdDeviation",g),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(n),t._shadowDom=e},n.prototype.markUsed=function(e){e._shadowDom&&t.prototype.markUsed.call(this,e._shadowDom)};var r=n;return $Bt=r,$Bt}function fMt(){if(nMt)return eMt;nMt=1;var t=aMt(),e=t.createElement,n=bH,i=XZ,r=U5,o=_0,s=E4,a=hMt(),l=cMt(),h=gMt(),u=dMt(),c=lMt(),g=c.path,d=c.image,f=c.text;function A(t){return parseInt(t,10)}function p(t){return t instanceof r?g:t instanceof o?d:t instanceof s?f:g}function m(t,e){return e&&t&&e.parentNode!==t}function y(t,e,n){if(m(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function v(t,e){if(m(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function _(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function x(t){return t.__textSvgEl}function I(t){return t.__svgEl}var w=function(t,i,r,o){this.root=t,this.storage=i,this._opts=r=n.extend({},r||{});var s=e("svg");s.setAttribute("xmlns","http://www.w3.org/2000/svg"),s.setAttribute("version","1.1"),s.setAttribute("baseProfile","full"),s.style.cssText="user-select:none;position:absolute;left:0;top:0;";var a=e("g");s.appendChild(a);var c=e("g");s.appendChild(c),this.gradientManager=new l(o,c),this.clipPathManager=new h(o,c),this.shadowManager=new u(o,c);var g=document.createElement("div");g.style.cssText="overflow:hidden;position:relative",this._svgDom=s,this._svgRoot=c,this._backgroundRoot=a,this._viewport=g,t.appendChild(g),g.appendChild(s),this.resize(r.width,r.height),this._visibleList=[]};function C(t){return function(){i('In SVG mode painter not support method "'+t+'"')}}w.prototype={constructor:w,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var n=e("rect");n.setAttribute("width",this.getWidth()),n.setAttribute("height",this.getHeight()),n.setAttribute("x",0),n.setAttribute("y",0),n.setAttribute("id",0),n.style.fill=t,this._backgroundRoot.appendChild(n),this._backgroundNode=n},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n=this._svgRoot,i=this._visibleList,r=t.length,o=[];for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var o=this._svgDom;o.setAttribute("width",t),o.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var s=this.root,a=document.defaultView.getComputedStyle(s);return(s[i]||A(a[n])||A(s.style[n]))-(A(a[r])||0)-(A(a[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var t=encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+t}},n.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){w.prototype[t]=C(t)}));var E=w;return eMt=E,eMt}function AMt(){if(iMt)return rMt;iMt=1,lMt();var t=yH,e=t.registerPainter,n=fMt();return e("svg",n),rMt} /*! * author: sakitam-fdd * ol-echarts v4.0.1 * build-time: 2024-5-30 0:2 * LICENSE: MIT * (c) 2017-2024 https://sakitam-fdd.github.io/ol3Echarts */ function pMt(){return[1,0,0,1,0,0]}function mMt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function yMt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function vMt(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],s=e[1]*n[2]+e[3]*n[3],a=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=s,t[4]=a,t[5]=l,t}function _Mt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function xMt(t,e,n){var i=e[0],r=e[2],o=e[4],s=e[1],a=e[3],l=e[5],h=Math.sin(n),u=Math.cos(n);return t[0]=i*u+s*h,t[1]=-i*h+s*u,t[2]=r*u+a*h,t[3]=-r*h+u*a,t[4]=u*o+h*l,t[5]=u*l-h*o,t}function IMt(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function wMt(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],s=e[3],a=e[5],l=n*s-o*i;return l?(l=1/l,t[0]=s*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*a-s*r)*l,t[5]=(o*r-n*a)*l,t):null}function CMt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}(function(t){var e=mH;(function(){for(var n in e){if(null==e||!e.hasOwnProperty(n)||"default"===n||"__esModule"===n)return;t[n]=e[n]}})();var n=Wht();(function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}})(),Sct(),Wct(),Sgt(),Ogt(),Adt(),kft(),sAt(),QAt(),Kpt(),hmt(),xmt(),yyt(),Qyt(),tvt(),yvt(),Tvt(),i_t(),A_t(),C_t(),Qxt(),tIt(),yIt(),xIt(),swt(),Awt(),Dxt(),fyt(),Swt(),Twt(),jCt(),iEt(),Mxt(),TEt(),kEt(),sbt(),Cbt(),kbt(),jbt(),ASt(),lSt(),OSt(),FSt(),ESt(),TBt(),vBt(),MBt(),jBt(),AMt()})(pH);var EMt=mMt,bMt=5e-5;function SMt(t){return t>bMt||t<-bMt}var BMt=[],MMt=[],TMt=pMt(),DMt=Math.abs,RMt=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return SMt(this.rotation)||SMt(this.x)||SMt(this.y)||SMt(this.scaleX-1)||SMt(this.scaleY-1)||SMt(this.skewX)||SMt(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||pMt(),e?this.getLocalTransform(n):EMt(n),t&&(e?vMt(n,t,n):yMt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&EMt(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(BMt);var n=BMt[0]<0?-1:1,i=BMt[1]<0?-1:1,r=((BMt[0]-n)*e+n)/BMt[0]||0,o=((BMt[1]-i)*e+i)/BMt[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||pMt(),wMt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(vMt(MMt,t.invTransform,e),e=MMt);var n=this.originX,i=this.originY;(n||i)&&(TMt[4]=n,TMt[5]=i,vMt(MMt,e,TMt),MMt[4]-=n,MMt[5]-=i,e=MMt),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&CMt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&CMt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&DMt(t[0]-1)>1e-10&&DMt(t[3]-1)>1e-10?Math.sqrt(DMt(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){LMt(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,s=t.anchorX,a=t.anchorY,l=t.rotation||0,h=t.x,u=t.y,c=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||a){var d=n+s,f=i+a;e[4]=-d*r-c*f*o,e[5]=-f*o-g*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=g*r,e[2]=c*o,l&&xMt(e,e,l),e[4]+=n+h,e[5]+=i+u,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),kMt=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function LMt(t,e){for(var n=0;nf&&(f=v,Af&&(f=_,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],s=i[4],a=i[5];return e.x=n.x*r+s,e.y=n.y*o+a,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}FMt.x=NMt.x=n.x,FMt.y=GMt.y=n.y,OMt.x=GMt.x=n.x+n.width,OMt.y=NMt.y=n.y+n.height,FMt.transform(i),GMt.transform(i),OMt.transform(i),NMt.transform(i),e.x=QMt(FMt.x,OMt.x,NMt.x,GMt.x),e.y=QMt(FMt.y,OMt.y,NMt.y,GMt.y);var l=zMt(FMt.x,OMt.x,NMt.x,GMt.x),h=zMt(FMt.y,OMt.y,NMt.y,GMt.y);e.width=l-e.x,e.height=h-e.y}else e!==n&&t.copy(e,n)},t}(),VMt=t=>{var e=typeof t;return null!==t&&("object"===e||"function"===e)},HMt=(t,e)=>(Object.keys(e).forEach(n=>{VMt(e[n])&&VMt(t[n])?HMt(t[n],e[n]):t[n]=e[n]}),t),YMt=function(t,e,...n){return function(...i){return t.apply(e,n.concat(Array.prototype.slice.call(i)))}},WMt=function(t,e){for(var n,i=0,r=t.length;i>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}return t()};function ZMt(t,e){t.forEach(t=>{!e[t]||(e[t]=e[t].bind(e))})}function KMt(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function JMt(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,button:e.pointerEvent.button,buttons:e.pointerEvent.buttons,clientX:e.pointerEvent.clientX,clientY:e.pointerEvent.clientY,zrX:e.pointerEvent.offsetX,zrY:e.pointerEvent.offsetY,movementX:e.pointerEvent.movementX,movementY:e.pointerEvent.movementY,relatedTarget:e.pointerEvent.relatedTarget,screenX:e.pointerEvent.screenX,screenY:e.pointerEvent.screenY,view:window});return n.zrX=e.pointerEvent.offsetX,n.zrY=e.pointerEvent.offsetY,n.event=n,n}function $Mt(t,e){for(var n=t.split("."),i=e.split("."),r=0;r<3;r++){var o=Number(n[r]),s=Number(i[r]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}var tTt=t=>!t.UTF8Encoding,eTt=(t,e,n)=>{for(var i=[],r=[e[0],e[1]],o=r[0],s=r[1],a=0;a>1^-(1&l),h=h>>1^-(1&h),l+=o,h+=s,o=l,s=h,i.push([l/n,h/n])}return i},nTt=t=>{if(tTt(t))return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;it.geometry&&t.properties&&t.geometry.coordinates.length>0),i=n.map(t=>{var e=t.properties,n=t.geometry,i=n.coordinates,r=[];return"Polygon"===n.type&&r.push(i[0]),"MultiPolygon"===n.type&&i.forEach(t=>{t[0]&&r.push(t[0])}),{properties:e,type:"Feature",geometry:{type:"Polygon",coordinates:r}}});return{type:"FeatureCollection",crs:{},features:i}}var rTt=function(t,e,n){return e.center=n.dataToPoint(e.coordinates),e},oTt=function(t,e,n){return VMt(t.grid)&&!Array.isArray(t.grid)||Array.isArray(t.grid)&&(t.grid=t.grid.map((e,i)=>{var r=n.dataToPoint(t.series[i].coordinates);return e.left=r[0]-parseFloat(e.width)/2,e.top=r[1]-parseFloat(e.height)/2,e})),e},sTt=function(t,e,n){return VMt(t.grid)&&!Array.isArray(t.grid)||Array.isArray(t.grid)&&(t.grid=t.grid.map((e,i)=>{var r=n.dataToPoint(t.series[i].coordinates);return e.left=r[0]-parseFloat(e.width)/2,e.top=r[1]-parseFloat(e.height)/2,e})),e},aTt=Object.freeze({pie:rTt,bar:oTt,line:sTt}),lTt={forcedRerender:!1,forcedPrecomposeRerender:!1,hideOnZooming:!1,hideOnMoving:!1,hideOnRotating:!1,convertTypes:["pie","line","bar"],insertFirst:!1,stopEvent:!1,polyfillEvents:$Mt(Z,"6.1.1")<=0};class hTt extends ${constructor(t,e,n){var i=Object.assign(lTt,e);super(i),this._options=i,this._chartOptions=t,this.set("chartOptions",t),this.$chart=null,this.$container=void 0,this._isRegistered=!1,this._initEvent=!1,this._incremental=[],this._coordinateSystem=null,this.coordinateSystemId="",this.prevVisibleState="",ZMt(["redraw","onResize","onZoomEnd","onCenterChange","onDragRotateEnd","onMoveStart","onMoveEnd","mouseDown","mouseUp","onClick","mouseMove"],this),n&&this.setMap(n)}appendTo(t,e=!1){this.setMap(t,e)}getMap(){return this._map}setMap(t,e=!1){if(!t||!(e||t instanceof wd))throw new Error("not ol map object");this._map=t,this._map.once("postrender",()=>{this.handleMapChanged()}),this._map.renderSync()}getChartOptions(){return this.get("chartOptions")}setChartOptions(t={}){return this._chartOptions=t,this.set("chartOptions",t),this.clearAndRedraw(),this}appendData(t,e=!0){return t&&(e&&(this._incremental=WMt(this._incremental,{index:this._incremental.length,data:t.data,seriesIndex:t.seriesIndex})),this.$chart.appendData({data:t.data.copyWithin(),seriesIndex:t.seriesIndex})),this}clear(t){t||(this._incremental=[]),this.$chart&&this.$chart.clear()}remove(){this.clear(),this.$chart&&this.$chart.dispose(),this._initEvent&&this.$container&&(this.$container&&KMt(this.$container),this.unBindEvent()),delete this.$chart,delete this._map}show(){this.setVisible(!0)}innerShow(){this.$container&&(this.$container.style.display=this.prevVisibleState,this.prevVisibleState="")}hide(){this.setVisible(!1)}innerHide(){this.$container&&(this.prevVisibleState=this.$container.style.display,this.$container.style.display="none")}isVisible(){return this.$container&&"none"!==this.$container.style.display}showLoading(){this.$chart&&this.$chart.showLoading()}hideLoading(){this.$chart&&this.$chart.hideLoading()}setZIndex(t){this.$container&&("number"==typeof t&&(t=String(t)),this.$container.style.zIndex=t)}getZIndex(){return this.$container&&this.$container.style.zIndex}setVisible(t){t?(this.$container&&(this.$container.style.display=""),this._chartOptions=this.getChartOptions(),this.clearAndRedraw()):(this.$container&&(this.$container.style.display="none"),this.clear(!0),this._chartOptions={},this.clearAndRedraw())}render(){!this.$chart&&this.$container?(this.$chart=pH.init(this.$container),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1)),this.dispatchEvent({type:"load",source:this,value:this.$chart})):this.isVisible()&&this.redraw()}redraw(){this.clearAndRedraw()}updateViewSize(t){!this.$container||(this.$container.style.width=t[0]+"px",this.$container.style.height=t[1]+"px",this.$container.setAttribute("width",String(t[0])),this.$container.setAttribute("height",String(t[1])))}onResize(t){var e=this.getMap();if(e){var n=e.getSize();this.updateViewSize(n),this.clearAndRedraw(),t&&this.dispatchEvent({type:"change:size",source:this,value:n})}}onZoomEnd(){this._options.hideOnZooming&&this.innerShow();var t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"zoomend",source:this,value:t.getView().getZoom()}))}onDragRotateEnd(){this._options.hideOnRotating&&this.innerShow();var t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:rotation",source:this,value:t.getView().getRotation()}))}onMoveStart(){this._options.hideOnMoving&&this.innerHide();var t=this.getMap();t&&t.getView()&&this.dispatchEvent({type:"movestart",source:this,value:t.getView().getCenter()})}onMoveEnd(){this._options.hideOnMoving&&this.innerShow();var t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"moveend",source:this,value:t.getView().getCenter()}))}onClick(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(JMt("click",t))}mouseDown(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(JMt("mousedown",t))}mouseUp(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(JMt("mouseup",t))}mouseMove(t){if(this.$chart)for(var e=t.originalEvent.target;e;){if("ol-overlaycontainer-stopevent"===e.className)return void this.$chart.getZr().painter.getViewportRoot().dispatchEvent(JMt("mousemove",t));e=e.parentElement}}onCenterChange(){var t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:center",source:this,value:t.getView().getCenter()}))}handleMapChanged(){var t=this.getMap();if(this._initEvent&&this.$container&&(this.$container&&KMt(this.$container),this.unBindEvent()),this.$container||(this.createLayerContainer(),this.onResize(!1)),t){var e=this._options.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this._options.insertFirst?e.insertBefore(this.$container,e.childNodes[0]||null):e.appendChild(this.$container),this.render(),this.bindEvent(t)}}createLayerContainer(){this.$container=document.createElement("div"),this.$container.style.position="absolute",this.$container.style.top="0px",this.$container.style.left="0px",this.$container.style.right="0px",this.$container.style.bottom="0px",this.$container.style.pointerEvents="auto"}bindEvent(t){var e=t.getView();this._options.forcedPrecomposeRerender&&t.on("precompose",this.redraw),t.on("change:size",this.onResize),e.on("change:resolution",this.onZoomEnd),e.on("change:center",this.onCenterChange),e.on("change:rotation",this.onDragRotateEnd),t.on("movestart",this.onMoveStart),t.on("moveend",this.onMoveEnd),this._options.polyfillEvents&&(t.on("pointerdown",this.mouseDown),t.on("pointerup",this.mouseUp),t.on("pointermove",this.mouseMove),t.on("click",this.onClick)),this._initEvent=!0}unBindEvent(){var t=this.getMap();if(t){var e=t.getView();!e||(t.un("precompose",this.redraw),t.un("change:size",this.onResize),e.un("change:resolution",this.onZoomEnd),e.un("change:center",this.onCenterChange),e.un("change:rotation",this.onDragRotateEnd),t.un("movestart",this.onMoveStart),t.un("moveend",this.onMoveEnd),this._options.polyfillEvents&&(t.un("pointerdown",this.mouseDown),t.un("pointerup",this.mouseUp),t.un("pointermove",this.mouseMove),t.un("click",this.onClick)),this._initEvent=!1)}}clearAndRedraw(){if(this.$chart&&this.isVisible()){if(this._options.forcedRerender&&this.$chart.clear(),this.$chart.resize(),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1),this._incremental&&this._incremental.length>0))for(var t=0;t=0;n--)e.indexOf(t[n].type)>-1||(t[n].coordinateSystem=this.coordinateSystemId),t[n].animation=!1}}}convertData(t){var e=t.series;if(e&&e.length>0){if(!this._coordinateSystem){var n=this.getCoordinateSystem(this._options);this._coordinateSystem=new n(this.getMap())}if(e&&VMt(e)){var i=this._options.convertTypes;if(i)for(var r=e.length-1;r>=0;r--)i.indexOf(e[r].type)>-1&&e[r]&&e[r].hasOwnProperty("coordinates")&&(e[r]=aTt[e[r].type](t,e[r],this._coordinateSystem))}}return t}getCoordinateSystem(t){var e=this.getMap(),n=this.coordinateSystemId;class i{constructor(t){this._mapOffset=[0,0],this.dimensions=["lng","lat"],this._roamTransformable=new RMt,this._rawTransformable=new RMt,this._viewRect=new qMt(0,0,0,0),this.map=t,this.dimensions=["lng","lat"],this.projCode=i.getProjectionCode(this.map)}getZoom(){return this.map.getView().getZoom()}setZoom(t){return this.map.getView().setZoom(t)}getViewRectAfterRoam(){return this.getViewRect().clone()}setMapOffset(t){this._mapOffset=t}dataToPoint(e){var n;if(e&&Array.isArray(e)&&e.length>0){n=e.map(t=>{var e=0;return e="string"==typeof t?Number(t):t,e});var i=t&&t.source||"EPSG:4326",r=t&&t.destination||this.projCode,o=this.map.getPixelFromCoordinate(Ai(n,i,r)),s=this._mapOffset;return[o[0]-s[0],o[1]-s[1]]}return[0,0]}pointToData(t){var e=this._mapOffset;return this.map.getCoordinateFromPixel([t[0]+e[0],t[1]+e[1]])}setViewRect(){var t=this.map.getSize();this._viewRect=new qMt(0,0,t[0],t[1])}getViewRect(){return this._viewRect}getRoamTransform(){return this._roamTransformable.getLocalTransform()}prepareCustoms(){var t=this.getViewRect();return{coordSys:{type:n,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:YMt(this.dataToPoint,this),size:YMt(this.dataToCoordsSize,this)}}}dataToCoordsSize(t,e=[0,0]){return[0,1].map(n=>{var i=e[n],r=[],o=[],s=t[n]/2;r[n]=i-s,o[n]=i+s,r[1-n]=e[1-n],o[1-n]=e[1-n];var a=this.dataToPoint(r)[n]-this.dataToPoint(o)[n];return Math.abs(a)})}getTransformInfo(){var t=this._rawTransformable,e=this._roamTransformable,n=new RMt;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}}}return i.dimensions=i.prototype.dimensions||["lng","lat"],i.create=function(t){t.eachSeries(t=>{t.get("coordinateSystem")===n&&(t.coordinateSystem=new i(e))})},i.getProjectionCode=function(t){var e="";return e=t?t.getView()&&t.getView().getProjection().getCode():"EPSG:3857",e},i}dispatchEvent(t){return super.dispatchEvent(t)}set(t,e,n){return super.set(t,e,n)}get(t){return super.get(t)}unset(t,e){return super.unset(t,e)}on(t,e){return super.on(t,e)}un(t,e){return super.un(t,e)}}hTt.formatGeoJSON=iTt,hTt.bind=YMt,hTt.merge=HMt,hTt.uuid=XMt,hTt.bindAll=ZMt,hTt.arrayAdd=WMt,hTt.removeNode=KMt,hTt.isObject=VMt;const uTt={name:"v-echarts",inject:["VMap"],render(t,e){return null},props:{chartOptions:{type:Object},options:{type:Object},visible:{type:Boolean,default:!0},zIndex:{type:Number}},data(){return{layer:null}},computed:{map(){return this.VMap.map}},watch:{visible:{handler(t){this.layer&&this.layer.setVisible(t)},immediate:!1},zIndex:{handler(t){this.layer&&this.layer.setZIndex(t)},immediate:!1},chartOptions:{handler(t){this.layer&&this.layer.setChartOptions(t)},deep:!0,immediate:!1}},methods:{init(){this.layer=new hTt(this.chartOptions,this.options),this.zIndex&&this.layer.setZIndex(this.zIndex),this.layer.setVisible(this.visible),this.layer.appendTo(this.map)},dispose(){this.layer.remove()}},mounted(){this.init()},beforeDestroy(){this.map.removeLayer(this.layer),this.dispose()}};let cTt,gTt;const dTt={};var fTt=zE(uTt,cTt,gTt,!1,ATt,null,null,null);function ATt(t){for(let e in dTt)this[e]=dTt[e]}fTt.options.__file="src/components/layers/echarts/index.vue";const pTt=function(){return fTt.exports}();function mTt(t,e){let n;return e.getLayers().forEach(e=>{e&&e.get("id")===t&&(n=e)}),n}pTt.install=t=>{t.component(pTt.name,pTt)};const yTt=class{constructor(t,e,n,i,r,o,s,a,l){!e||e.length<1||(this.id=l.id,this.changeCarRotate=l.changeCarRotate,this.centerAtCar=l.centerAtCar,this._moving=!0,this._ismove=!1,this._map=t,this._labelShow=o,this._timeContentClass=s,this._vacuate=i,this._wholePathInfo=e,this._timeOverlayList=[],i?(this._pathInfo=n,this._convertPaths(n)):(this._pathInfo=e,this._convertPaths(e)),this._vacuatePath=n,this._path=[],this._passPath=[],this._pointIndexDistance=20,this._tracePoints=[],this._tracePointsModePlay=r,this._traceTimedivDom=t.traceTimedivDom,this._tracePointsFromTime=[],this._traceEnd=!1,this.traceLayer=new nc({source:new Dc,zIndex:99}),this.traceLayer.set("isTrack",!0),t.addLayer(this.traceLayer),this.tracePassLayer=new nc({source:new Dc,zIndex:100}),this.tracePassLayer.set("isTrack",!0),t.addLayer(this.tracePassLayer),this.arrowsLayer=new nc({source:new Dc,zIndex:101}),this.arrowsLayer.set("isTrack",!0),t.addLayer(this.arrowsLayer),this.carLayer=new nc({source:new Dc,zIndex:102}),this.carLayer.set("isTrack",!0),t.addLayer(this.carLayer),this.traceNodes=[],this.traceLineList=[],this.carMarker=null,this._carInfoWin=null,this._pointIndex=0,this._traceIndex=0,this._speedUp=1,this._intervalTraceFlag=null,this._intervalTimeFlag=null,this._opts={carIcon:{src:"",scale:1},speed:0,defaultContent:"",startIcon:{src:"",scale:1},endIcon:{src:"",scale:1},passFlag:!0,showInfoWin:!1,arrowPixel:50,tracePlay:!1},this._setOptions(l),this._initFlag=1,this._showTracePoint=a)}};let vTt=yTt;function _Tt(t,e,n,i,r){"distance"===i?xTt(t,e,n,r):"track"===i&&ITt(t,e,n,r)}function xTt(t,e,n,i){const r=[];e.forEach((function(t,e){r.push(t)}));let o=!0;for(let s=0;s=3){o=!1,s+11&&o.push(r[r.length-1]);const s=o.sort((function(t,e){return t.ide.id?1:0}));i(s)}A(vTt,"track",yTt),vTt.prototype._setOptions=function(t){if(t)for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this._opts[e]=t[e])},vTt.prototype.getSpeed=function(){return this._opts.speed},vTt.prototype.getSpeedUp=function(){return this._speedUp},vTt.prototype.getPaths=function(){return this._pathInfo},vTt.prototype.getTraceIndex=function(){return this._pointIndex},vTt.prototype.setTraceIndex=function(t){this._pointIndex=t;const e=this._path[t];this.carMarker.setPosition(e)},vTt.prototype.getPercentnum=function(){const t=this._tracePoints,e=this.carMarker.getPosition();for(let n=0;nt.maxEndTime&&(t.maxEndTime=i),e._intervalTimeFlag=setInterval((function(){if(!e._traceEnd&&!e._fromPause&&!e._fromStop){if(e._traceTime=new Date(e._traceTime).getTime()+1e3*e._speedUp,t.maxEndTime0||!isNaN(i))for(let r=0;r=e.length)return;if(t._pointIndex+=t._speedUp,t._pointIndex>=e.length&&(t._pointIndex=e.length-1),t.carMarker.setPosition([e[t._pointIndex].longitude,e[t._pointIndex].latitude]),1===t._pointIndex&&n.push([e[t._pointIndex-1].longitude,e[t._pointIndex-1].latitude]),n.push([e[t._pointIndex].longitude,e[t._pointIndex].latitude]),t._opts.passFlag){const n=new qC({geometry:new jo([[e[t._pointIndex-1].longitude,e[t._pointIndex-1].latitude],[e[t._pointIndex].longitude,e[t._pointIndex].latitude]])});n.setStyle(new Gs({stroke:new qo({color:t._opts.passlineColor,width:5})})),t.tracePassLayer.getSource().addFeature(n)}t._opts.showInfoWin&&(t._carInfoWin.getElement().innerText=e[t._pointIndex].info);const i=t._map.getView().calculateExtent(),r=t.carMarker.getPosition();!Tt(i,r)&&t.centerAtCar&&t._map.getView().animate({center:r})}),1e3);this._fromPause=!1,this._fromStop=!1},vTt.prototype.timePointsPlay=function(){const t=this,e=t._tracePoints,n=t._tracePointsFromTime,i=t._passPath;if(0===i.length&&t.tracePassLayer.getSource().clear(),0===t._opts.speed){let e=Number.MAX_VALUE;const i=new Date(t._traceTimedivDom.innerText).getTime();if(i>0||!isNaN(i))for(let r=0;r=n.length)return;const o=n[t._pointIndex].temBreakPointsFromTime,s=n[t._pointIndex].differenceTime,a=n[t._pointIndex].length;let l=0;if(l=0===r?10*(a/s/50).toFixed(2)*t._speedUp:10*(r/50).toFixed(2),t._fromPause||t._fromStop||t._pointIndex>=e.length-1||t._pointIndex>=n.length)return;if(t._traceIndex+=l,t._traceIndex=Math.round(t._traceIndex),t._traceIndex>=o.length){t._traceIndex=o.length-1,t._pointIndex++;const e=o.slice(0,t._traceIndex);for(let t=0;t0&&this.carLayer.getSource().removeFeature(this.carMarker),clearInterval(this._intervalTraceFlag));const e=BTt(this._path[0],this._opts);this.carLayer.getSource().addFeature(e),this.carMarker=e,e.on=function(n,i){if("move"===n){const n=setInterval((function(){if(!t._moving)return;const r=e.getPosition(),o=t._pathInfo;for(let t=0;tt.y&&e.x===t.x?s=Math.PI/2:e.y===t.y&&e.xt.x?s=0:e.y>t.y&&e.x>t.x?s=o:e.y>t.y&&e.xt.x&&(s=2*Math.PI-o),s},vTt.prototype.getAngleFromPixel=function(t,e){t={x:t[0],y:t[1]},e={x:e[0],y:e[1]};const n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y),r=Math.sqrt(n*n+i*i),o=Math.round(Math.asin(i/r)/Math.PI*180);let s=0;return e.yt.y&&e.x===t.x?s=90:e.y===t.y&&e.xt.x?s=0:e.y>t.y&&e.x>t.x?s=360-o:e.y>t.y&&e.xt.x&&(s=o),s},vTt.prototype._troughPointIndex=function(t){const e=this._pointIndexDistance,n=this._path;for(let i=0;i0&&i0&&t.arrowsLayer.getSource().clear(),e.wheelDelta<0&&t.arrowsLayer.getSource().clear()):e.detail&&(e.detail>0&&t.arrowsLayer.getSource().clear(),e.detail<0&&t.arrowsLayer.getSource().clear())};document.addEventListener&&document.addEventListener("DOMMouseScroll",e,!1),window.onmousewheel=document.onmousewheel=e},vTt.prototype.dispose=function(){this._intervalTimeFlag&&(clearInterval(this._intervalTimeFlag),this._intervalTimeFlag=null),this._intervalTraceFlag&&(clearInterval(this._intervalTraceFlag),this._intervalTraceFlag=null);const t=this._map.getLayers().getArray().filter(t=>t.get("isTrack")&&!0===t.get("isTrack"));t&&t.length>0&&t.forEach(t=>{t.getSource().clear(),this._map.removeLayer(t)})};const wTt=function(t,e,n,i,r,o){if(is&&(s=i,a=n)}s>=o&&(n.push(e[a]),wTt(t,e,n,i,a,o),wTt(t,e,n,a,r,o))}return n},CTt=function(t,e,n,i){const r=Math.abs(ETt(t,e,n)),o=Math.abs(ETt(t,e,i)),s=Math.abs(ETt(t,n,i)),a=(r+o+s)/2;return 2*Math.sqrt(Math.abs(a*(a-r)*(a-o)*(a-s)))/r},ETt=function(t,e,n){const i=e.latitude,r=n.latitude,o=e.longitude,s=n.longitude,a=t.getPixelFromCoordinate([o,i]),l=t.getPixelFromCoordinate([s,r]);return Math.sqrt(Math.pow(l[0]-a[0],2)+Math.pow(l[1]-a[1],2))};var bTt=function(t){let e=0;for(let n=0,i=t.length-1;n=n&&TTt(t,e,n,i,r),t.on("moveend",(function(o){t.getView().getZoom()>=n?TTt(t,e,n,i,r):r.getSource().clear()})),r}function TTt(t,e,n,i,r){i=[],r.getSource().clear();for(let u=0;u=n.x||r.y<=e.y||i.y>=n.y};const kTt=function(t){let{map:e,paths:n,id:i,opts:r,vacuate:o,smokeMode:s,tracePointsModePlay:a,vacuateDistance:l,labelShow:h,labelStyle:u,showTracePoint:c}=t;r.id=i||m(),r.changeCarRotate=t.changeCarRotate,r.centerAtCar=t.centerAtCar;let g,d=n,f=e.getView().getZoom();return o?_Tt(e,n,l,s,(function(t){d=t,g=new vTt(e,n,d,o,a,h,u,c,r),g._initLinesAndMarkers(),h&&g._creatTimeOverlays(),g.createArrows()})):(g=new vTt(e,n,d,o,a,h,u,c,r),g._initLinesAndMarkers(),h&&g._creatTimeOverlays(),g.createArrows()),g.setPaths=function(t){n=t,g.arrowsLayer.getSource().clear();for(let n=0;n0&&this.carLayer.removeFeature(this.carMarker),"undefined"!=typeof this.textLayer&&e.removeLayer(this.textLayer)},e.getView().on("change:resolution",(function(){if(0!==n.length&&(f=e.getView().getZoom(),g.arrowsLayer.getSource().clear(),Math.round(f)===f))if(g._initFlag=2,g.createArrows(),o)_Tt(e,n,l,s,(function(t){d=t;for(let n=0;n0||this.paths&&this.paths.length>0){const e=d(g({},this.$props),{map:this.map,paths:t||this.paths,opts:this.options});this.track=kTt(e),this.$emit("onLoad",this.track),this.autoPlay&&this.start()}},start(){this.track.start()},pause(){this.track.pause()},stop(){this.track.stop()},dispose(){this.track.dispose()}}};let PTt,QTt;const zTt={};var FTt=zE(LTt,PTt,QTt,!1,OTt,null,null,null);function OTt(t){for(let e in zTt)this[e]=zTt[e]}FTt.options.__file="src/components/track/index.vue";const NTt=function(){return FTt.exports}();NTt.install=t=>{t.component(NTt.name,NTt)};var GTt={exports:{}};(function(t){(function(){function e(t,e){var n=t.x-e.x,i=t.y-e.y;return n*n+i*i}function n(t,e,n){var i=e.x,r=e.y,o=n.x-i,s=n.y-r;if(0!==o||0!==s){var a=((t.x-i)*o+(t.y-r)*s)/(o*o+s*s);a>1?(i=n.x,r=n.y):a>0&&(i+=o*a,r+=s*a)}return o=t.x-i,s=t.y-r,o*o+s*s}function i(t,n){for(var i,r=t[0],o=[r],s=1,a=t.length;sn&&(o.push(i),r=i);return r!==i&&o.push(i),o}function r(t,e,i,o,s){for(var a,l=o,h=e+1;hl&&(a=h,l=u)}l>o&&(a-e>1&&r(t,e,a,o,s),s.push(t[a]),i-a>1&&r(t,a,i,o,s))}function o(t,e){var n=t.length-1,i=[t[0]];return r(t,0,n,e,i),i.push(t[n]),i}function s(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return t=n?t:i(t,r),t=o(t,r),t}t.exports=s,t.exports.default=s})()})(GTt);const jTt=GTt.exports;class UTt{constructor(t,e){A(this,"min",{x:0,y:0}),A(this,"max",{x:0,y:0}),this.min=t,this.max=e}intersects(t){const e=this.min,n=this.max,i=t.min,r=t.max;return r.x<=e.x||i.x>=n.x||r.y<=e.y||i.y>=n.y}}class qTt extends nc{constructor(t){var e,n;const i=Object.assign({},t);delete i.map,super(i),A(this,"map",null),A(this,"pointsArr",[]),A(this,"zoom",1),A(this,"textBounds",[]),A(this,"styleOptions",{fillColor:"rgb(26,58,91)",strokeColor:"rgb(26,58,91)",textColor:"white",fontCss:"bolder 15px sans-serif",boxWidth:50}),A(this,"textViewCom",[]),this.map=t.map?t.map:this.map,this.pointsArr=t.pointsArr?t.pointsArr:this.pointsArr,this.zoom=t.zoom?t.zoom:this.zoom,this.styleOptions=t.styleOptions?t.styleOptions:this.styleOptions,(null==(e=this.map)?void 0:e.getView().getZoom())>=this.zoom&&this.drawText();const r=this;null==(n=this.map)||n.on("moveend",t=>{var e;(null==(e=r.map)?void 0:e.getView().getZoom())>=r.zoom?(r.drawText(),r.keepVisible()):r.clear()})}getLayerStatesArray(t){}getLayersArray(t){}getSourceState(){}drawText(){var t;const e=this.styleOptions;this.getSource().clear();const n=document.createElement("canvas").getContext("2d");e.fontCss&&(n.font=e.fontCss);const i=[];null==(t=this.map)||t.once("postrender",()=>{this.pointsArr.forEach(t=>{var r,o,s,a,l,h,u;const c=hi(t.position,"EPSG:3857"),g=null==(r=this.map)?void 0:r.getPixelFromCoordinate(c);if(Tt(null==(o=this.map)?void 0:o.getView().calculateExtent(),c)){t.text=t.text||"";let r=e.boxWidth||Math.ceil(n.measureText(t.text).width);r+=30;const o=g[0]+10,c=g[0]+r,d=g[1]-40,f=g[1]-10,A=[o,Number(((d+f)/2).toFixed(0))],p={x:o,y:d},m={x:c,y:f},y=new UTt(p,m),v=g[0]-r,_=g[0]-10,x=g[1]-40,I=g[1]-10,w=[_,Number(((x+I)/2).toFixed(0))],C={x:v,y:x},E={x:_,y:I},b=new UTt(C,E),S=g[0]-r,B=g[0]-10,M=g[1]+10,T=g[1]+40,D=[B,Number(((M+T)/2).toFixed(0))],R={x:S,y:M},k={x:B,y:T},L=new UTt(R,k),P=g[0]+10,Q=g[0]+r,z=g[1]+10,F=g[1]+40,O=[P,Number(((z+F)/2).toFixed(0))],N={x:P,y:z},G={x:Q,y:F},j=new UTt(N,G),U={bound:y,minx:o,miny:d,maxx:c,maxy:f,polylineCenter:A},q={bound:b,minx:v,miny:x,maxx:_,maxy:I,polylineCenter:w},V={bound:L,minx:S,miny:M,maxx:B,maxy:T,polylineCenter:D},H={bound:j,minx:P,miny:z,maxx:Q,maxy:F,polylineCenter:O},Y=new Map([["rightTopBounds",U],["leftTopBounds",q],["leftBomBounds",V],["rightBomBounds",H]]);let W=!0,X=0,Z=0,K=0,J=0,$=[0,0],tt="";for(const[t,e]of Y){for(let t=0;t=0;e--){const t=this.textViewCom[e];this.textVisibility(t.text,!1)}}textVisibility(t,e){var n,i,r,o,s;const a=this.getObjectByText(t);this.textViewCom=this.get("invisible");let l=!1,h=0;if(this.textViewCom instanceof Array)for(let u=(null==(n=this.textViewCom)?void 0:n.length)-1;u>=0;u--){const e=this.textViewCom[u];t===e.text&&(l=!0,h=u)}if(a.length>0)for(let u=a.length-1;u>=0;u--){const t=a[u];if(e){if(this.textViewCom instanceof Array&&l){this.textViewCom.splice(h,1);const n=this.getObjectByText(t.text);for(let t=n.length-1;t>=0;t--)null==(o=n[t].textBack)||o.setVisible(e),null==(s=n[t].polyline)||s.setVisible(e)}}else this.textViewCom instanceof Array?!l&&this.textViewCom.push(t):this.set("invisible",[t]),null==(i=t.textBack)||i.setVisible(e),null==(r=t.polyline)||r.setVisible(e)}else e?l&&this.textViewCom.splice(h,1):this.textViewCom instanceof Array?!l&&this.textViewCom.push({text:t}):this.set("invisible",[{text:t}])}getObjectByText(t){const e=this.get("textComponent"),n=[];for(let i=(null==e?void 0:e.length)-1;i>=0;i--){const r=e[i];r.text===t&&n.push(r)}return n}}class VTt{constructor(t){var e;A(this,"_operators"),A(this,"_carIcon"),A(this,"_direction"),A(this,"_map"),A(this,"_status"),A(this,"_pathInfo"),A(this,"_bubble"),A(this,"_moving"),A(this,"_tracePointsModePlay"),A(this,"_lineLayer"),A(this,"_movePath"),A(this,"_originPath"),A(this,"_revealLayer"),A(this,"_showTracePoint"),A(this,"_nodesLayer"),A(this,"_moveNodes"),A(this,"_timeStep"),A(this,"_speed"),A(this,"_speedUp"),A(this,"_nowTime"),A(this,"_moveIdx"),A(this,"_animateLayer"),A(this,"_animateLine"),A(this,"_group"),A(this,"_tracekEvent"),A(this,"_simplifyEvent"),A(this,"_eventType"),A(this,"_animateStart"),A(this,"_textLayer"),A(this,"_moveListener"),A(this,"_step"),A(this,"_viewCode"),A(this,"_defaultStyles"),A(this,"_nodesCollection"),A(this,"_nodeInfos"),t=t||{};const n=void 0!==t.bubble&&t.bubble,i=!!t.showTracePoint&&t.showTracePoint,r=t.tracePointsModePlay?t.tracePointsModePlay:"animation",o=void 0!==t.mapObj?t.mapObj:null,s=void 0!==t.path?t.path:[],a=t.options||{},l=Date.now();!t.path||t.path.length,this._operators={carIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAVCAYAAADfLRcdAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkQ0RkExMTQ2Rjc4NzExRTQ4QkI3QTA2OTk3QzQ4M0IzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkQ0RkExMTQ3Rjc4NzExRTQ4QkI3QTA2OTk3QzQ4M0IzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RDRGQTExNDRGNzg3MTFFNDhCQjdBMDY5OTdDNDgzQjMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RDRGQTExNDVGNzg3MTFFNDhCQjdBMDY5OTdDNDgzQjMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz62sMp6AAAFiklEQVR42tRXW2wUVRj+zpmZvc4uS2mhhQK21FLshoKGWkBMSAwQSVBf0QfiJciDLya+8KAx8RJfeJV440GJaDAmGGKUmAASI+GhDQ1a7t1Kb1tot7s7uzvX4z8zC+12bdHVkDjJn5md/c853/nO918GeEDXkfe2f5+9+KzxxeuQap2D/RPn5BO7Aowxns/n9Ju958Q8PjL5yIxz4+KZk86spRLG5Y1T/Zfbf31sz7HN/xqsuIo4THwgStgr8lBtDcwxwQxa0rKB4WkFBcOGpgNSwIFusYoJjv0ATOQYdm9lWBQX4Iz2I8iDxhsGMDSm4mx/FJ3LR/HWi4ASokEmmeYj4UG6K/Tock9jSjxRjG/PRCrADn4SHVi8ttTOGM0sHAguIRKyCSlgF4HsOPDxKY7T4zvQ3NqFYmYSsbp6BEKhe0Bt08LR41/CsSzse34fZEWBbdPGtCxKWhoxeQiNketIhHOYyEgYGAqgc/UU3n5VgbA5iBQyAccWYLKCYLOCnLmLNrhNJHte5h7Ys/ubIlsPjGp3F/3tViOefEVCOCJjSYKjqZ6jdTnwdI+Fp5IppCaAvmsKxiZlondGCYQLJ34S2Ngp0LMBqFMFHmmxUb+U4+DhNpz4WYIlhWgTAWKIAHGOyVQKR98dx45uYoXTKZGRA/S0BT1n+6cd74G8qNlRO76WmNXLHI/R8nXom7U4eqENJdNAUSczdJR0HW/s1HDwhavehMIDx2BbtChj4Ip7hvDeuyYp7pHSe9l//8yBNTh/MwhOALnrf/fu2GhWBnDms+IMWMk1eOM8IxVYsV2QMl9F+Wyg7tV3hTxZZdw5BHZLlzEjdJpEJn0FVeaZEvYtEPF/yyECMivm9+6hDdoOLJKKSTIxPLNh0USXLnN6XiCqluiQE9Ok5dXTfO5/wxN2lb9D7LYtz9ectjat1wioQSdhklmkTdN7NuguB6O4cInhdobPM9oNnAFg1UtSlUc2J+5FuEuw+yyIBTVUqBnsyiYNsUiUpOOza7msEmg3KCUKxOvDAvUJZ/4JBKUlnmdVYHXzL9KnEEioVs1gFbmIjofbEVdjPleOQ8zaHruCIIxO3C/du/nNgDz3tUWpIzAnATNKZ6SFKi3/7UuYXgA9vqkbBun/xuAgbo0OwyESbLKcJhauT+765FIFVuaiapi7e/CAv2hNpUchEhxkclliWcGa1lY82rXBA/Hdt8cxli5XgXnHc28vVWCDgWqhu+kpk5eRiNYG1rTCsOjohRtYrgQoZVmZKciyjKYlDejZOHyfyk+5kM67CllcZeWBvrlAGU2aL0Vq1uwfo1EPbIlqrmGY0F0z3WfK41oOHQ8tlA1cGFE6BFVUeaxcVj2IB4O4NqLWDPb8RZU2WyKAZZBkJQJsUoAVs5Po7lwoGxAeaR01Fp/aXAhWEf5d7Y4X/XPBnusLVOjdomZGzwvPzKJvRsH/bZXcGj8z/sPjEeSKBWJU98B6DNN9enwMmzflEJDn32hxiMOciJKWUovkXw43qrN7g53dWbx/pB/hsIS6ONBRz9DSBGxoc+u1QCot0HtNxshtmbojp6I3OHmaoWudg571lOpiDpKtDhoaOVqWljB+I0xlWYFpu5o1vPSlpdM49OYcRnkchdQUrHLBVBq2UOgpDu9Cwe+6Dsf765Jap9fPubRJ1MgEK7uuj04xfN6XBFOXUe9WBAuGPS3fY5vQ3kmPeRVq6YqVVG4l74Qc26Tw0NCcyCC54g4a4yZ+H4njythibGm5gndeo+ChVtM2yl0XrRmKUC1vYDD4Hmjmc6Ju1W5eUz+rUT9bmK+f/ZH62eycfrbsQRL1+9le6mebqZ/dT6xF3XMmm/KlyWNelvMbGPK3pfpieNvtyP/yS+GBXf/FN9ifAgwAIOzB+qcKmLcAAAAASUVORK5CYII=",speed:1e3,timeStep:1,startIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADb0lEQVRYR8WWW4jcZBzFz8lukn1Si5fOjKK20NmEKtoFL+C1IBX0RQQFQeoiIipeHnxQCioURPBJhQo+yFJFEfRFKIKIN1wKFZGqtJPZbgtFTWa7i1LFy+bbyZHsztJ1MpkkI9I85vufc375/798CXGWL57lfFQDENgw/g4Qt0loQroE5CKl410r+WphPJkF55erPFQ5AMFuGO8RiU+TuCwvQNAioWdDuz0DQmVACgE2aeu5E8Y9QODGMoZpjaSP6fx2d8jwzyLNcADBrht/lsC1RUYD1g//ZS/f+itPnB6mHQpQj71XCT45QnhPooOhHdwEIsnzyAXYrMktluExgmODxJIiED8D2JFXszaO5P7Ibb9TGaAee28QfLhfKGhJ1L0du/15ura2R+xpgHsJnpMJkuZCN5isBiCMNYy/mPr3CeNEnOq4R4/0G9bi5jWEdYhgpquJzPaOO390EMTAEVwgr+kYtrMC7Qud4PG8p6nH3rsE7+tfT5A82HHaM6UB6sa/mcKX2fZjd+S03s4DqMXetAVmgkTtiezgpdIANTO505L12QDBQ6HTejMfwN9tAfsz4FUBGtp6KYx7csAI3gudINPi9bpa7L1mgU9kRmDhzs5466PSHUgLG8v+HIhtG0WC1JWuPuW2v+836+2bHwA4/9bAJPYvmxa48EclgLrx9lB8cUAXTgt6/m/b7F8/5WrGu4XC+wQvzLRf+DByW3dVew0BXKQtm8fMxE8ExgceRFAXwGEIDZL1vIAE3es6ztzXlQFWxxB7MwCn88RF9wV9EjnBrmF1Q78F6WaUcU4MO2qHmXexcv2Cc+zQyABrXfD3AXis6Gmzs9cHkRvcU6Qr/B+4WN75MpwHcF6R2Zl1LcM220Ie/7FIUwiQGtTiyUctWK8Xma2vJ9QLHTvYW6a+FAAE1o33DcGpQlOpHTrBFSBWCmuB8j+ljdifEpRCDIVOqJ0dO/iiTHhaU64DPbd67L9C4Kk8c0FvRU7wQNnwygDQ5RONeOI7kM0BJ95J4yRXLrH9+/8HkJ6QcfOqMVjfErQ2Bq1QN5yyg4NVwqt3oOdeM/5zlnBmlwsvh27rmarhIwOsvhWxf4DEHQA+De3W7SDSb0Plq9Im3Oi+9jPqzBqbu5bYiion9wQjA6zqtd0Bj8Sjho8+gv+S2Kf9B1+VRDBEEbAnAAAAAElFTkSuQmCC",endIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADdElEQVRYR8WWXYjcVBiG3zfJGb1oq4todXZnVOpsMlbRLtQK1p+CVNAbERQEqUVEVPy58EIpqFAQwasqVOhFWdrSIuiNUAQR/3ApVIr0hzozu93KJtktsgWRxeLmJPlKho52JzOTZIo2t+d7v/c5b76cHOIqP7zK/igEIADPlNWGyJBHQY4DHANlUcBZI4p/MubDqRqwXGRTuQAEUM0x9TIMvkXg1r4GIosA3rE9PUlA8oBkAsyO4Dq9Sh0GuTlPw3aN4Os1UfBUeQEXsjQDAZKdtypqCuR9WY3S63JcLelH1v2BPwdpBwI0q+pjgG8UN+8o5Ijt6gcJxP169AVorsXtKKkZkGYvsQDnKDIPYEO/mrYuxnOOHxwsDNCoqj0EX0oJRc4jlmec+fD7ZK09I6vVdgA7Aa7prhfBdN0L7EIAApjNqlokOHK5UCCBBU7U3OB0d8NWRW0U4CjIVKomsL7mBr/2guj5ChqjGKdZaqV3I7vrnn6t324aFXWI5LM9UnvB8fRkboDpivVQTOPHbgEh22xXHxgAsJ1kykgQ76i74Ye5AZqj1haYxncpQSwvOr7e2w+gVVXbBNyXSq4owGwZVW2V5nq8gs/qnk5HfKmwVVWfCPh6Krk4esL2o69yJ5AUNiqlaRK1FSIRgfBexw9OdjdL5gamOkWw1DW4emRZj9z8O/4qCGDtII0P0iJJTrb31JLe1znlZsashyPyc5A3pgcQXzpe8GShzzApPnsT1i5fo3ySVk+xSCTEcYBlArf0NYhlk+3rnwsDJIJWRU0KmRwyQz0i8k3d01sHiQf+C9rDaKqzA4/aAd2NWO4f9/XRoQESYbOidoN8dYgIvnDc4OksXeZ9oDGKG2iqMwCvz2r277osW6Gu3bEAL0uTCXAphVdAfprVrLPOOH7f9sOdeepzASR3wWZVHSM4kaNpy3aDuwiEOWrzX0pnymoiMnGs199uxcETx1vqfvhDHvOkJlcCnWbNMbULBt/s11xE9tc9/Xxe88IAv92Ga/+OSidIjHebCDDHC8Hdznks/WcA7cNpVN0jBn4BaayIPowfqC+ER4qYF07gn1dRsd4Fjcun/CPHDd4uaj40QPJVtKqlwwAeB+Rb29WPEYj+N4DEKLmMBqvUlBh6651zODeM+dAJdMxOA6X1QDCs+RUDXIlxR3sRcjswMD6XvKYAAAAASUVORK5CYII=",showInfoWin:!1,arrowPixel:.2,textStyle:{}};for(const g of Object.keys(this._operators))a[g]&&(this._operators[g]=a[g]);const h=new Qo({color:"rgba(255,255,255,0.4)"}),u=new qo({color:"#3399CC",width:1.25});this._defaultStyles=[new Gs({image:new Ls({fill:h,stroke:u,radius:5}),fill:h,stroke:u})],this._nodesCollection=null,this._nodeInfos=[];const c=new Ya({src:this._operators.carIcon,scale:1,anchor:[.5,.5],offset:[0,0]});c.load(),this._carIcon=new Gs({image:c}),this._direction=0,o&&(this._map=o),this._viewCode=null==(e=this._map)?void 0:e.getView().getProjection().getCode(),this._status="stop",this._pathInfo=s,this._bubble=n,this._moving=!1,this._tracePointsModePlay=r,this._lineLayer=new nc({source:new Dc({features:[],strategy:Ec}),properties:{vzBelong:"vzTrackPath",vzTime:l}}),this._lineLayer.set("projection",this._viewCode,!0),this._lineLayer.set("track-type","trackPath"),this._movePath=[],this._originPath=null,this._revealLayer=new nc({source:new Dc({features:[],strategy:Ec}),properties:{vzBelong:"vzTrackPath",vzTime:l}}),this._revealLayer.set("projection",this._viewCode,!0),this._revealLayer.set("track-type","trackReveal"),this._showTracePoint=i,this._nodesLayer=new nc({source:new Dc({features:[],strategy:Ec}),style:null,properties:{vzBelong:"vzTrackPath",vzTime:l}}),this._nodesLayer.set("projection",this._viewCode,!0),this._nodesLayer.set("track-type","trackNodes"),this._nodesLayer.setVisible(this._showTracePoint),this._moveNodes=[],this._speed=this._operators.speed,this._timeStep=this._operators.timeStep,this._speedUp=1,this._nowTime=null,this._moveIdx=1,this._animateLayer=new nc({source:new Dc({features:[],strategy:Ec}),style:new Gs({stroke:new qo({color:"red",width:2})}),properties:{vzBelong:"vzTrackPath",vzTime:l}}),this._animateLayer.set("projection",this._viewCode,!0),this._animateLayer.set("track-type","trackAnimate"),this._animateLine=new lt({geometry:new jo([])}),this._group=new Jc({layers:[this._lineLayer,this._revealLayer,this._nodesLayer,this._animateLayer],zIndex:99,properties:{type:"vzTrackPath",vzTime:l}}),null==o||o.addLayer(this._group),this._tracekEvent=null==o?void 0:o.on(["singleclick","pointermove"],t=>{this.eventListener(t)}),this._eventType=["nodeClick","nodeMouseover","nodeMouseout","pathClick","pathMouseover","pathMouseout","move"],this._simplifyEvent=null==o?void 0:o.getView().on("change:resolution",t=>{Number.isInteger(t.target.getZoom())&&this.simplifyOpera(t)}),this.initLinesAndMarkers()}simplifyOpera(t){var e,n;let i=[];const r=t.target.getProjection().getCode(),o=this._viewCode!==r,s=t.target.getResolution();i=this._nodesCollection.map(t=>{var e;if(o&&!1===t.get("isSimplify")){const n=null==(e=t.getGeometry())?void 0:e.transform(this._viewCode,r);n instanceof hr&&t.setGeometry(n)}const n=t.getGeometry().getCoordinates();return{x:n[0]/s,y:n[1]/s,idx:t.get("node_idx")}}),o&&(this._viewCode=r);const a=jTt(i,2,!1),l=[],h=[];a.forEach(t=>{l.push([t.x*s,t.y*s]),h.push(t.idx)}),this._originPath instanceof jo&&this._originPath.setCoordinates(l),!this._moving&&"moving"!==this._status&&null!==this._moveListener&&"animation"===this._tracePointsModePlay&&this._originPath instanceof jo&&(null==(e=this._animateLine.getGeometry())||e.setCoordinates(l.slice(0,h.indexOf(this._moveIdx)+1).concat([this._animateStart.getGeometry().getCoordinates()]))),null==(n=this._nodesLayer.getSource())||n.clear(),new Promise((t,e)=>{var n;this._nodeInfos=[],this._nodesLayer.getVisible()&&(null==(n=this._nodesCollection)||n.forEach((t,e)=>{t.set("isSimplify",!1),t.setStyle(null),h.includes(e+1)&&(t.set("isSimplify",!0),t.setStyle(this._defaultStyles),this._nodeInfos.push(t))})),t(this._nodeInfos)}).then(t=>{var e;null==(e=this._nodesLayer.getSource())||e.addFeatures(t)})}eventListener(t){var e,n,i,r,o,s,a,l,h;if(null==(e=this._map)?void 0:e.hasFeatureAtPixel(t.pixel,{layerFilter:function(t){return t instanceof nc&&("trackPath"===t.get("track-type")||"trackNodes"===t.get("track-type"))},hitTolerance:0})){this._moveNodes=(null==(n=this._map)?void 0:n.getFeaturesAtPixel(t.pixel,{layerFilter:function(t){return t instanceof nc&&"trackNodes"===t.get("track-type")},hitTolerance:0}))||[],this._movePath=(null==(i=this._map)?void 0:i.getFeaturesAtPixel(t.pixel,{layerFilter:function(t){return t instanceof nc&&"trackPath"===t.get("track-type")},hitTolerance:0}))||[];const e=this._moveNodes.map(t=>t.getProperties()),l=this._movePath.map(t=>t);switch(t.type){case"singleclick":e.length>=1&&(null==(r=this._map)||r.dispatchEvent({type:"nodeClick",target:this._bubble?[e[0]]:e,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}})),l.length>=1&&(null==(o=this._map)||o.dispatchEvent({type:"pathClick",target:this._bubble?[l[0]]:l,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}}));break;case"pointermove":e.length>=1&&(null==(s=this._map)||s.dispatchEvent({type:"nodeMouseover",target:this._bubble?[e[0]]:e,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}})),l.length>=1&&(null==(a=this._map)||a.dispatchEvent({type:"pathMouseover",target:this._bubble?[l[0]]:l,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}}));break}}else{const e=this._moveNodes.map(t=>t.getProperties());this._moveNodes.length>0&&this._moveNodes.splice(0,this._moveNodes.length),"pointermove"===t.type&&e.length>0&&(null==(l=this._map)||l.dispatchEvent({type:"nodeMouseout",target:this._bubble?[e[0]]:e,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}}));const n=this._movePath.map(t=>t);this._movePath.length>0&&this._movePath.splice(0,this._movePath.length),"pointermove"===t.type&&n.length>0&&(null==(h=this._map)||h.dispatchEvent({type:"pathMouseout",target:this._bubble?[n[0]]:n,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}}))}}initLinesAndMarkers(){var t,e,n,i,r,o;const s=null==(t=this._pathInfo)?void 0:t.map(t=>[t.longitude,t.latitude]),a=[],l=[];let h=0;for(const d of s){const t=new lt({geometry:new hr(hi(d,this._viewCode))});let i=null;if(this._pathInfo&&(i=this._pathInfo[h]),i&&(i.node_idx=h+1,i.isSimplify=!1,t.setProperties(i,!0),t.setId("tackNode-"+i.node_idx)),0===h){const n=t.clone();this._animateStart=t.clone(),this._animateStart.setId("moveCarFeature"),n.setStyle(new Gs({image:new Ya({src:this._operators.startIcon,anchor:[.5,1]}),text:new qs({text:""})})),null==(e=this._revealLayer.getSource())||e.addFeature(n)}else if(this._pathInfo&&h===this._pathInfo.length-1){const e=t.clone();e.setStyle(new Gs({image:new Ya({src:this._operators.endIcon,anchor:[.5,1]}),text:new qs({text:""})})),null==(n=this._revealLayer.getSource())||n.addFeature(e)}l.push(t),h++}const u=new jo(s);this._originPath=u.transform("EPSG:4326",this._viewCode);const c=new lt({geometry:this._originPath}),g=new Gs({image:new Ya({src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABfUlEQVQ4T3WTTSvFYRDFf8dLKIqytFckthTpJkQWlyhF2fgEVr6BheytpChEsqB08xbZWPgOJAs7ieRlNMzV//75P7vnmZkz58ycR2ZWD7QBF5KM1DGzTuBO0k065neZ2S3QBGwAU5I+iolmNgrsAI9An6SrNIgDnAE9EdgFJiS9+93MuoEToBx4AgYkXSZBHKAWOAS6IrAP5CW9BUge2AIqgJdg8guiSKoBDoDeDJBhwNlVBsiQpNPvGST0VgF7TjPeCsCIpNdo0g84O2fibx4r/AJEUjVwlJDjXbybU/eZjAGbMROXmC8BiKQ64BxoDyYLkuYTTCeB9WD/9B9AA3AMdGQAzALLAfCcluDF3r01itMS5oDFiP3MIUHNi90T7ko/XjyYGOIMsFJSXByimTVGQbFzegOuew0o+7PGKL4AmjM8MA2shua/RjIzX1suw8pucZfiUjOt/AC4BHfaeOoz+d63oziX9Zla3CzAkqTP9G8zM4/dS7r+7zt/Aaattn1kX8VgAAAAAElFTkSuQmCC",anchor:[.75,.5],scale:.7,rotateWithView:!1})});c.set("arrow",[new Gs({stroke:new qo({color:"rgba(0, 0, 255, 0.6)",width:10})}),g]),c.set("mainView",null==(i=this._map)?void 0:i.getView()),c.setStyle(HTt),a.push(c),null==(r=this._lineLayer.getSource())||r.addFeatures(a),this._nodesCollection=l,null==(o=this._animateLayer.getSource())||o.addFeature(this._animateLine),void 0!==c.get("mainView")&&c.get("mainView").dispatchEvent("change:resolution")}labelVisible(t){var e,n;if(t&&0===this._textLayer){const t=null==(e=this._pathInfo)?void 0:e.map(t=>({position:[t.longitude,t.latitude],text:t.gnssTime}));this._textLayer=new qTt({map:this._map,pointsArr:t,zoom:12}),this._textLayer.set("id","lushuText"+(new Date).getTime()),this._group.getLayers().push(this._textLayer)}else null==(n=this._textLayer)||n.setVisible(t)}start(t){var e,n;this._pathInfo&&this._pathInfo.length<1||((this._moving||"pause"===this._status)&&this.stop(),this._moveIdx=t||1,this._moving=!0,this._status="moving",this._nowTime=Date.now(),"skip"===this._tracePointsModePlay?(this._moveListener=this._lineLayer.on("postrender",t=>{this.tracePointsPlay(t)}),null==(e=this._map)||e.render()):"animation"===this._tracePointsModePlay&&(this._step=0,this._moveListener=this._lineLayer.on("postrender",t=>{this.animationPlay(t)}),null==(n=this._map)||n.render()))}stop(t){var e,n,i,r;this._moveIdx=1,this._status="stop",this._moving=!1,this._step=0,null!==this._moveListener&&(H(this._moveListener),this._moveListener=null);const o=null==(e=this._animateLayer.getSource())?void 0:e.getFeatureById("moveCarFeature");o&&(null==(n=this._animateLayer.getSource())||n.removeFeature(o)),null==(i=this._animateLine.getGeometry())||i.setCoordinates([]),this._originPath instanceof jo&&(null==(r=this._animateStart.getGeometry())||r.setCoordinates(this._originPath.getFirstCoordinate()))}pause(){this._status="pause",this._moving=!1}resume(){this._status="moving",this._moving=!0}tracePointsPlay(t){var e,n,i,r,o;const s=t.frameState,a=this._nodesCollection.map(t=>t.getGeometry().getCoordinates()),l=(s.time-this._nowTime)/1e3%60;if(this._moving&&(1===this._moveIdx||l>=this._timeStep)){this._nowTime=s.time;let t=1===this._moveIdx?this._speedUp:this._moveIdx+this._speedUp,o=null;const l=this._animateLine.getGeometry();if(a&&this._moveIdx===a.length)return void this.stop(!0);if(t>=a.length&&this._moveIdx0;--o)0!==t&&t-o<=a.length-1&&(null==l||l.appendCoordinate(a[t-o]))}else if(t0;--n)0!==t&&t-n<=a.length-1&&(null==l||l.appendCoordinate(a[t-n]))}this._animateStart.setStyle(this._carIcon),this._animateStart.getGeometry().setCoordinates(null==(e=null==o?void 0:o.getGeometry())?void 0:e.getCoordinates());const h=null==(n=this._animateLayer.getSource())?void 0:n.getFeatureById("moveCarFeature");(!h||h.length<=0)&&(null==(i=this._animateLayer.getSource())||i.addFeature(this._animateStart)),this._moveIdx=t;const u=null==(r=this._map)?void 0:r.getView().getProjection().getCode(),c={index:this._moveIdx,status:this._status,position:a[t-1],lngLat:ui(this._animateStart.getGeometry().getCoordinates(),u),passNode:this._nodesCollection[t-1],length:null==l?void 0:l.getLength()};this._animateLayer.dispatchEvent({type:"move",target:c,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}})}null==(o=this._map)||o.render()}animationPlay(t){var e,n,i,r;let o=0;if(this._nowTime=t.frameState.time,this._originPath instanceof jo&&this._moving&&void 0!==this._step&&this._step<=1){const t=this._originPath.clone();t.transform(this._viewCode,"EPSG:3857");const r=t.getLength(),s=this._animateLine.getGeometry(),a=this._originPath.clone();if(a instanceof jo&&0!==this._step){const t={geometry:{coordinates:a.getCoordinates(),type:"LineString"},properties:{},type:"Feature"};o=r*this._step;const i=np(t,0,o/1e3,{units:"kilometers"});a.setCoordinates(i.geometry.coordinates),a.transform("EPSG:4326",this._viewCode);const l=a.getCoordinates();null==s||s.setCoordinates(l);let h=0,u=0;if(l.length>2){const t=l[l.length-2],e=l[l.length-1];h=t[0]-e[0],u=t[1]-e[1];const n=Math.atan2(u,h);this._direction!==n&&(this._direction=n),this._carIcon.getImage().setRotation(-this._direction+Math.PI)}this._animateStart.setStyle(this._carIcon),this._animateStart.getGeometry().setCoordinates(a.getLastCoordinate());const c=null==(e=this._animateLayer.getSource())?void 0:e.getFeatureById("moveCarFeature");(!c||c.length<=0)&&(null==(n=this._animateLayer.getSource())||n.addFeature(this._animateStart))}const l=null==s?void 0:s.getLength();let h=0,u=0;const c=new jo([]);this._originPath.forEachSegment((function(t,e){c.setCoordinates([t,e]),u<=l&&(u+=c.getLength(),h++)})),this._moveIdx=this._nodeInfos[h-1].get("node_idx"),this._step+=5e-7*this._speed;const g=null==(i=this._map)?void 0:i.getView().getProjection().getCode(),d={index:this._moveIdx,status:this._status,speed:this._speed,position:this._animateStart.getGeometry().getCoordinates(),lngLat:ui(this._animateStart.getGeometry().getCoordinates(),g),passNode:this._nodesCollection[this._moveIdx-1],length:l};this._animateLayer.dispatchEvent({type:"move",target:d,propagationStopped:!1,defaultPrevented:!1,preventDefault:function(){throw new Error("Function not implemented.")},stopPropagation:function(){throw new Error("Function not implemented.")}})}this._moving&&this._step&&this._step>=1?this.stop(!0):null==(r=this._map)||r.render()}setFitView(t){var e;null!==this._originPath&&this._originPath instanceof jo&&t&&(null==(e=this._map)||e.getView().fit(this._originPath))}getPaths(){return this._pathInfo}setPaths(t){this.clearPaths(),this._pathInfo=t,this.initLinesAndMarkers()}clearPaths(){this._moving&&this.stop(),this._group.getLayersArray().forEach(t=>{t instanceof nc&&t.getSource().clear()})}destroy(){var t;this._moving&&this.stop(),this.clearPaths(),H(this._tracekEvent),null==(t=this._map)||t.getView().removeEventListener("change:resolution",this._simplifyEvent.listener)}getSpeed(){return this._speed}setSpeed(t){this._speed=t}getSpeedUp(){return this._speedUp}setSpeedUp(t){this._speedUp=t,this._speed=this._speed*t}getPercentnum(){return"number"==typeof this._step?this._step.toPrecision(3):0}setPercentnum(t){"number"==typeof t&&t<=1&&t>=0&&(this._step=t)}setTraceLineStyle(t){var e;t=t||{};const n=t.lineColor?t.lineColor:"rgba(0, 0, 255, 0.6)",i=t.lineWidth?t.lineWidth:10,r=null==(e=this._lineLayer.getSource())?void 0:e.getFeatures();null==r||r.forEach(t=>{t.get("arrow")[0].setStroke(new qo({color:n,width:i}))}),this._lineLayer.changed()}setPassLineStyle(t){t=t||{};const e=t.lineColor?t.lineColor:"red",n=t.lineWidth?t.lineWidth:2,i=new Gs({stroke:new qo({color:e,width:n})});this._animateLayer.setStyle(i),this._animateLayer.changed()}setTraceNodeStyle(t){var e;t=t||{};const n=t.fillColor?t.fillColor:"rgba(255,255,255,0.4)",i=t.lineColor?t.lineColor:"#3399CC",r=t.lineWidth?t.lineWidth:1.25,o=t.size?t.size:5,s=new Qo({color:n}),a=new qo({color:i,width:r});this._defaultStyles=[new Gs({image:new Ls({fill:s,stroke:a,radius:o}),fill:s,stroke:a})],null==(e=this._nodesLayer.getSource())||e.getFeatures().forEach(t=>{t.setStyle(this._defaultStyles),t.changed()})}getEvents(){return this._eventType}on(t,e){var n;if(this._eventType.includes(t))return"move"===t?this._animateLayer.on(t,e):null==(n=this._map)?void 0:n.on(t,e)}once(t,e){var n;if(this._eventType.includes(t))return"move"===t?this._animateLayer.once(t,e):null==(n=this._map)?void 0:n.once(t,e)}un(t,e){var n;if(this._eventType.includes(t))return"move"===t?this._animateLayer.un(t,e):null==(n=this._map)?void 0:n.un(t,e)}}function HTt(t,e){const n=t.get("arrow"),i=t.get("mainView"),r=[n[0]],o=t.getGeometry();if(o&&o instanceof jo){const t=o.getLength(),s=200*e/t;for(let e=0;e<=1;e+=s){const t=o.getCoordinateAt(e);if(Tt(i.calculateExtent(),t)){const i=o.getCoordinateAt(e+5e-5),s=i[0]-t[0],a=i[1]-t[1],l=Math.atan2(a,s);if(0!==e){const e=n[1].clone();e.setGeometry(new hr(t)),e.getImage().setRotation(-l+2*Math.PI),r.push(e)}}}}return r}const YTt={name:"v-path",render(){return null},inject:["VMap"],props:{bubble:{type:Boolean,default:!0},showTracePoint:{type:Boolean,default:!0},tracePointsModePlay:{type:String},path:{type:Array},options:{type:Object},autoPlay:{type:Boolean,default:!1}},data(){return{pathObj:null}},computed:{map(){return this.VMap.map}},methods:{init(t){var e,n,i,r,o,s,a;if(t&&t.length>0||this.path&&this.path.length>0){const l=d(g({},this.$props),{mapObj:this.map,path:t||this.path,options:this.options}),h=new VTt(l);h.setTraceLineStyle({lineColor:(null==(e=l.options)?void 0:e.lineColor)||"rgba(0, 0, 255, 0.6)",lineWidth:(null==(n=l.options)?void 0:n.lineWidth)||10}),h.setPassLineStyle({lineColor:(null==(i=l.options)?void 0:i.passlineColor)||"red",lineWidth:(null==(r=l.options)?void 0:r.passlineWidth)||2}),h.setTraceNodeStyle({lineColor:(null==(o=l.options)?void 0:o.nodeStrokeColor)||"#3399CC",lineWidth:(null==(s=l.options)?void 0:s.nodeStrokeWidth)||1.25,fillColor:(null==(a=l.options)?void 0:a.nodeFillColor)||"rgba(255,255,255,0.4)"}),this.pathObj=h,this.pathObj.getEvents().forEach(t=>{this.pathObj.on(t,e=>{this.$emit(t,e)})}),this.$emit("load",this.pathObj),this.autoPlay&&this.start()}},start(t){this.pathObj.start(t)},pause(){this.pathObj.pause()},resume(){this.pathObj.resume()},stop(t){this.pathObj.stop(t)},destroy(){this.pathObj.destroy()}},mounted(){this.init()},beforeDestroy(){this.pathObj.destroy(),this.pathObj=null}};let WTt,XTt;const ZTt={};var KTt=zE(YTt,WTt,XTt,!1,JTt,null,null,null);function JTt(t){for(let e in ZTt)this[e]=ZTt[e]}KTt.options.__file="src/components/path/index.vue";const $Tt=function(){return KTt.exports}();$Tt.install=t=>{t.component($Tt.name,$Tt)};const tDt=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],eDt=1,nDt=8;class iDt{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,n]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const i=n>>4;if(i!==eDt)throw new Error(`Got v${i} data when expected v${eDt}.`);const r=tDt[15&n];if(!r)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new iDt(s,o,r,t)}constructor(t,e=64,n=Float64Array,i){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=n,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const r=tDt.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${n}.`);i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,nDt,t),this.coords=new this.ArrayType(this.data,nDt+s+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(nDt+o+s+a),this.ids=new this.IndexArrayType(this.data,nDt,t),this.coords=new this.ArrayType(this.data,nDt+s+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(eDt<<4)+r]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=e,n}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return rDt(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:o,nodeSize:s}=this,a=[0,r.length-1,0],l=[];for(;a.length;){const h=a.pop()||0,u=a.pop()||0,c=a.pop()||0;if(u-c<=s){for(let s=c;s<=u;s++){const a=o[2*s],h=o[2*s+1];a>=t&&a<=n&&h>=e&&h<=i&&l.push(r[s])}continue}const g=c+u>>1,d=o[2*g],f=o[2*g+1];d>=t&&d<=n&&f>=e&&f<=i&&l.push(r[g]),(0===h?t<=d:e<=f)&&(a.push(c),a.push(g-1),a.push(1-h)),(0===h?n>=d:i>=f)&&(a.push(g+1),a.push(u),a.push(1-h))}return l}within(t,e,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:r,nodeSize:o}=this,s=[0,i.length-1,0],a=[],l=n*n;for(;s.length;){const h=s.pop()||0,u=s.pop()||0,c=s.pop()||0;if(u-c<=o){for(let n=c;n<=u;n++)lDt(r[2*n],r[2*n+1],t,e)<=l&&a.push(i[n]);continue}const g=c+u>>1,d=r[2*g],f=r[2*g+1];lDt(d,f,t,e)<=l&&a.push(i[g]),(0===h?t-n<=d:e-n<=f)&&(s.push(c),s.push(g-1),s.push(1-h)),(0===h?t+n>=d:e+n>=f)&&(s.push(g+1),s.push(u),s.push(1-h))}return a}}function rDt(t,e,n,i,r,o){if(r-i<=n)return;const s=i+r>>1;oDt(t,e,s,i,r,o),rDt(t,e,n,i,s-1,1-o),rDt(t,e,n,s+1,r,1-o)}function oDt(t,e,n,i,r,o){for(;r>i;){if(r-i>600){const s=r-i+1,a=n-i+1,l=Math.log(s),h=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*h*(s-h)/s)*(a-s/2<0?-1:1),c=Math.max(i,Math.floor(n-a*h/s+u)),g=Math.min(r,Math.floor(n+(s-a)*h/s+u));oDt(t,e,n,c,g,o)}const s=e[2*n+o];let a=i,l=r;for(sDt(t,e,i,n),e[2*r+o]>s&&sDt(t,e,i,r);as;)l--}e[2*i+o]===s?sDt(t,e,i,l):(l++,sDt(t,e,l,r)),l<=n&&(i=l+1),n<=l&&(r=l-1)}}function sDt(t,e,n,i){aDt(t,n,i),aDt(e,2*n,2*i),aDt(e,2*n+1,2*i+1)}function aDt(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function lDt(t,e,n,i){const r=t-n,o=e-i;return r*r+o*o}const hDt={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},uDt=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1)),cDt=2,gDt=3,dDt=4,fDt=5,ADt=6;class pDt{constructor(t){this.options=Object.assign(Object.create(hDt),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:n,maxZoom:i}=this.options;t.length;this.points=t;const r=[];for(let s=0;s=n;s--){Date.now();o=this.trees[s]=this._createTree(this._cluster(o,s))}return this}getClusters(t,e){let n=((t[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[1]));let r=180===t[2]?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,r=180;else if(n>r){const t=this.getClusters([n,i,180,o],e),s=this.getClusters([-180,i,r,o],e);return t.concat(s)}const s=this.trees[this._limitZoom(e)],a=s.range(vDt(n),_Dt(o),vDt(r),_Dt(i)),l=s.data,h=[];for(const u of a){const t=this.stride*u;h.push(l[t+fDt]>1?mDt(l,t,this.clusterProps):this.points[l[t+gDt]])}return h}getChildren(t){const e=this._getOriginId(t),n=this._getOriginZoom(t),i="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(i);const o=r.data;if(e*this.stride>=o.length)throw new Error(i);const s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=o[e*this.stride],l=o[e*this.stride+1],h=r.within(a,l,s),u=[];for(const c of h){const e=c*this.stride;o[e+dDt]===t&&u.push(o[e+fDt]>1?mDt(o,e,this.clusterProps):this.points[o[e+gDt]])}if(0===u.length)throw new Error(i);return u}getLeaves(t,e,n){e=e||10,n=n||0;const i=[];return this._appendLeaves(i,t,e,n,0),i}getTile(t,e,n){const i=this.trees[this._limitZoom(t)],r=Math.pow(2,t),{extent:o,radius:s}=this.options,a=s/o,l=(n-a)/r,h=(n+1+a)/r,u={features:[]};return this._addTileFeatures(i.range((e-a)/r,l,(e+1+a)/r,h),i.data,e,n,r,u),0===e&&this._addTileFeatures(i.range(1-a/r,l,1,h),i.data,r,n,r,u),e===r-1&&this._addTileFeatures(i.range(0,l,a/r,h),i.data,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e}_appendLeaves(t,e,n,i,r){const o=this.getChildren(e);for(const s of o){const e=s.properties;if(e&&e.cluster?r+e.point_count<=i?r+=e.point_count:r=this._appendLeaves(t,e.cluster_id,n,i,r):r1;let l,h,u;if(a)l=yDt(e,t,this.clusterProps),h=e[t],u=e[t+1];else{const n=this.points[e[t+gDt]];l=n.properties;const[i,r]=n.geometry.coordinates;h=vDt(i),u=_Dt(r)}const c={type:1,geometry:[[Math.round(this.options.extent*(h*r-n)),Math.round(this.options.extent*(u*r-i))]],tags:l};let g;g=a||this.options.generateId?e[t+gDt]:this.points[e[t+gDt]].id,void 0!==g&&(c.id=g),o.features.push(c)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:n,extent:i,reduce:r,minPoints:o}=this.options,s=n/(i*Math.pow(2,e)),a=t.data,l=[],h=this.stride;for(let u=0;ue&&(d+=a[n+fDt])}if(d>g&&d>=o){let t,o=n*g,s=i*g,f=-1;const A=((u/h|0)<<5)+(e+1)+this.points.length;for(const n of c){const i=n*h;if(a[i+cDt]<=e)continue;a[i+cDt]=e;const l=a[i+fDt];o+=a[i]*l,s+=a[i+1]*l,a[i+dDt]=A,r&&(t||(t=this._map(a,u,!0),f=this.clusterProps.length,this.clusterProps.push(t)),r(t,this._map(a,i)))}a[u+dDt]=A,l.push(o/d,s/d,1/0,A,-1,d),r&&l.push(f)}else{for(let t=0;t1)for(const t of c){const n=t*h;if(!(a[n+cDt]<=e)){a[n+cDt]=e;for(let t=0;t>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,n){if(t[e+fDt]>1){const i=this.clusterProps[t[e+ADt]];return n?Object.assign({},i):i}const i=this.points[t[e+gDt]].properties,r=this.options.map(i);return n&&r===i?Object.assign({},r):r}}function mDt(t,e,n){return{type:"Feature",id:t[e+gDt],properties:yDt(t,e,n),geometry:{type:"Point",coordinates:[xDt(t[e]),IDt(t[e+1])]}}}function yDt(t,e,n){const i=t[e+fDt],r=i>=1e4?Math.round(i/1e3)+"k":i>=1e3?Math.round(i/100)/10+"k":i,o=t[e+ADt],s=-1===o?{}:Object.assign({},n[o]);return Object.assign(s,{cluster:!0,cluster_id:t[e+gDt],point_count:i,point_count_abbreviated:r})}function vDt(t){return t/360+.5}function _Dt(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function xDt(t){return 360*(t-.5)}function IDt(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var wDt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default")],2)},CDt=[];wDt._withStripped=!0;const EDt={name:"v-super-cluster",extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},props:{layerId:{type:String,default:""},features:{type:Array,default(){return[]}},FeatureStyle:{type:[Array,void 0],default(){}},cluster:{type:Object},overlay:{type:Object}},data(){return{clusters:null,featureChildren:[],featureCluster:!1,total:0,eventRender:[],eventList:["singleclick","pointermove"]}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{cluster:{handler(t){if(t){this.clusters=new pDt(this.cluster),this.clusters.load(this.getGeoFeatures()),this.total=this.clusters.points.length;const t=this.map.getView().calculateExtent(this.map.getSize()),e=this.clusters.getClusters(t,this.map.getView().getZoom()),n={type:"FeatureCollection",features:e},i=this.layer.getSource();i&&(i.clear(),i.addFeatures((new pm).readFeatures(n).map(t=>{const e=t.get("properties");if(e&&"object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.set(n,e[n]);return t})))}},immediate:!1,deep:!0},features:{handler(){this.dispose(),this.init()},immediate:!1,deep:!0}},mounted(){this.init()},beforeDestroy(){this.dispose()},methods:{getGeoFeatures(){return this.features.map(t=>{const e=KC(t.coordinates,t.convert);return{type:"Feature",geometry:{type:"Point",coordinates:e},properties:t}})},styleFunction(t,e){const n=e.get("cluster")||0,i=e.get("point_count_abbreviated")||0;let r=t[i];if(n){if(!r){let e={};e={image:new Ls({radius:4,fill:new Qo({color:"blue"})}),text:new qs({font:"16px sans-serif",text:i.toString()})},WC(this.cluster,"style")?(r=tE(this.cluster.style),r.getText().setText(i.toString())):r=new Gs(e),t[i]=r}}else{const t=e.get("style");r=tE(t)}return r},init(){this.clusters=new pDt(this.cluster),this.clusters.load(this.getGeoFeatures()),this.total=this.clusters.points.length;const t=this.map.getView().calculateExtent(this.map.getSize()),e=this.clusters.getClusters(t,this.map.getView().getZoom()),n={type:"FeatureCollection",features:e},i={};this.layer=new nc(d(g({},this.$props),{source:new Dc({features:(new pm).readFeatures(n).map(t=>{const e=t.get("properties");if(e&&"object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.set(n,e[n]);return t})}),style:t=>this.styleFunction(i,t)})),this.layer.set("cluster",!0);const r=this.layerId||"cluster-layer-"+m();this.layer.set("id",r),this.layer.set("type","vector"),this.layer.set("users",!0),this.zIndex&&this.layer.setZIndex(this.zIndex),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.map.on("movestart",t=>{this.$emit("movestart")}),this.map.on("precompose",()=>{const t=this.map.getView().calculateExtent(this.map.getSize()),e=this.clusters.getClusters(t,this.map.getView().getZoom()),n={type:"FeatureCollection",features:e},i=this.layer.getSource();i&&(i.clear(),i.addFeatures((new pm).readFeatures(n).map(t=>{const e=t.get("properties");if(e&&"object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.set(n,e[n]);return t}))),this.$emit("precompose")}),this.eventList.forEach(t=>{this.eventRender.push(this.map.on(t,e=>this.eventHandler(t,e)))})},zoomEnd(t){const e=this.map.getView().calculateExtent(this.map.getSize()),n=this.clusters.getClusters(e,this.map.getView().getZoom()),i={type:"FeatureCollection",features:n},r=this.layer.getSource();r&&(r.clear(),r.addFeatures((new pm).readFeatures(i).map(t=>{const e=t.get("properties");if(e&&"object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.set(n,e[n]);return t}))),this.$emit("moveend"),t.map.once("moveend",t=>{this.zoomEnd(t)})},getFeatureAtPixel(t){return this.map.forEachFeatureAtPixel(t,(t,e)=>{var n;if((null==e?void 0:e.get("id"))===(null==(n=this.layer)?void 0:n.get("id")))return t},{})},eventHandler(t,e){const{pixel:n}=e,i=this.getFeatureAtPixel(n);this.$emit(t,e,i)},getLeaves(t,e){return this.clusters.getLeaves(t,e)},dispose(){this.eventRender.forEach(t=>{H(t)});const t=this.layer.getSource();t&&t.clear(),this.map.removeLayer(this.layer)}}},bDt={};var SDt=zE(EDt,wDt,CDt,!1,BDt,null,null,null);function BDt(t){for(let e in bDt)this[e]=bDt[e]}SDt.options.__file="src/components/layers/cluster/index.vue";const MDt=function(){return SDt.exports}();MDt.install=t=>{t.component(MDt.name,MDt)};const TDt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCB2LGcsYj0wLGs9MDtjb25zdCBaPW5ldyBPZmZzY3JlZW5DYW52YXMoMjU2LDI1NiksYz1aLmdldENvbnRleHQoIjJkIik7c2VsZi5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7aWYoIWcmJnkoZS5kYXRhLndpZHRoLGUuZGF0YS5oZWlnaHQpLGUuZGF0YS5tc2c9PT0iaW5pdFRpbGUiKXtjb25zdCBpPWUuZGF0YTtIKGkuanNvbixpLmNvbCxpLnJvdyxpLnRyYWZmaWMsaS56b29tKX1lbHNlIGUuZGF0YS5tc2c9PT0idXBkYXRlQ2FudmFzIiYmKGcuY2xlYXJSZWN0KDAsMCx2LndpZHRoLHYuaGVpZ2h0KSxiPTAsZS5kYXRhLnVwZGF0ZUluZm8mJkooZS5kYXRhLnVwZGF0ZUluZm8pKX07ZnVuY3Rpb24geShlLGkpe3Y9bmV3IE9mZnNjcmVlbkNhbnZhcyhlLGkpLGc9di5nZXRDb250ZXh0KCIyZCIpfWZ1bmN0aW9uIEgoZSxpLGwsdCxJKXtjLmNsZWFyUmVjdCgwLDAsMjU2LDI1Nik7bGV0IGg9MTA7Y29uc3QgdT10LmNlbnRlcixvPXQuem9vbVVuaXRzLHg9LXVbMF0vbyxUPXVbMV0vbyxNPVt4LFRdLHc9MTgwLGQ9OTA7bGV0IHM9bnVsbCxuPW51bGw7aWYodC50aWxlVHlwZT09PSJiZDA5IilzPWkqdC50aWxlU2l6ZStNWzBdLG49KC0xLWwpKnQudGlsZVNpemUrTVsxXSxzPXQuc2l6ZVswXS8yK3Msbj10LnNpemVbMV0vMituO2Vsc2UgaWYodC50aWxlVHlwZT09PSJXR1M4NCIpe2NvbnN0IHo9TWF0aC5QSSo2Mzc4MTM3O3M9KGkqdC50aWxlU2l6ZSpvLXopL28rTVswXSxuPU1bMV0tKHotbCp0LnRpbGVTaXplKm8pL28scz10LnNpemVbMF0vMitzLG49dC5zaXplWzFdLzIrbn1lbHNlIHM9KGkqdC50aWxlU2l6ZSpvLXcpL28rTVswXSxuPU1bMV0tKGQtbCp0LnRpbGVTaXplKm8pL28scz10LnNpemVbMF0vMitzLG49dC5zaXplWzFdLzIrbjtpZihlJiZlLnRyYWZmaWMpe2NvbnN0IHo9ZS5wcmVjaXNpb258fDE7aD1oKno7Y29uc3QgQz1lLnRyYWZmaWM7Zm9yKGxldCBQPTAsbT1DLmxlbmd0aDtQPG07UCsrKXtjb25zdCBTPUNbUF0sUj1TWzFdLEI9dC5hcnJGZWF0dXJlU3R5bGVzW1NbM11dO2xldCBHPVJbMF0vaCxPPVJbMV0vaDtjLmJlZ2luUGF0aCgpLGMubW92ZVRvKEcsTyk7Zm9yKGxldCBXPTIsYT1SLmxlbmd0aDtXPGE7Vys9MilHKz1SW1ddL2gsTys9UltXKzFdL2gsYy5saW5lVG8oRyxPKTtjLnN0cm9rZVN0eWxlPUJbMV0sU1szXT49MTUmJlNbM108PTE5JiYoYy5zdHJva2VTdHlsZT0icmdiYSgxODYsIDAsIDAsIDEpIiksYy5saW5lV2lkdGg9QlsyXSxjLmxpbmVDYXA9WChCWzNdKSxjLmxpbmVKb2luPVkoQls0XSksYy5zdHJva2UoKX19aWYoZy5kcmF3SW1hZ2UoWixzLG4pLCsrYixiPT09ayl7Yj0wLGs9MDtjb25zdCB6PXYudHJhbnNmZXJUb0ltYWdlQml0bWFwKCk7cG9zdE1lc3NhZ2Uoe2ltYWdlQml0bWFwOnosbXNnOiJpbml0VGlsZSIsY2FudmFzUG9pbnQ6W3Msbl0sem9vbTpJLHg6aSx5Omx9KX19ZnVuY3Rpb24gSihlKXtsZXQgaSxsO2NvbnN0IHQ9ZS5zaXplO2UudGlsZVR5cGU9PT0iYmQwOSI/KGk9TWF0aC5yb3VuZChlLm1hcFpvb20rMSksZS56b29tVW5pdHM9TWF0aC5wb3coMiwxOC1pKSxsPWUuem9vbVVuaXRzKjI1Nik6ZS50aWxlVHlwZT09PSJXR1M4NCI/KGk9TWF0aC5yb3VuZChlLm1hcFpvb20pLGUuem9vbVVuaXRzPTIqTWF0aC5QSSo2Mzc4MTM3LzI1Ni9NYXRoLnBvdygyLGkpLGw9ZS56b29tVW5pdHMqMjU2KTooaT1NYXRoLnJvdW5kKGUubWFwWm9vbSksZS56b29tVW5pdHM9TWF0aC5wb3coMiwyLWkpKi4zNTE1NjI1LGw9MjU2KmUuem9vbVVuaXRzKTtjb25zdCBJPWUuY2VudGVyLGg9e3g6SVswXSx5OklbMV19O2xldCB1LG8seCxULE0sdztjb25zdCBkPWUuem9vbVVuaXRzLHM9ZC9lLnJlc29sdXRpb247bGV0IG49dFswXS9zLHo9dFsxXS9zO2lmKGUudGlsZVR5cGU9PT0iYmQwOSIpe3U9TWF0aC5jZWlsKGgueC9sKSxvPU1hdGguY2VpbChoLnkvbCk7Y29uc3QgbT1bdSxvLChoLngtdSpsKS9sKmUudGlsZVNpemUsKGgueS1vKmwpL2wqZS50aWxlU2l6ZV07eD1tWzBdLU1hdGguY2VpbCgobi8yLW1bMl0pL2UudGlsZVNpemUpLFQ9bVsxXS1NYXRoLmNlaWwoKHovMi1tWzNdKS9lLnRpbGVTaXplKSxNPW1bMF0rTWF0aC5jZWlsKChuLzIrbVsyXSkvZS50aWxlU2l6ZSksdz1tWzFdK01hdGguY2VpbCgoei8yK21bM10pL2UudGlsZVNpemUpfWVsc2UgZS50aWxlVHlwZT09PSJXR1M4NCI/KG49dFswXSx6PXRbMV0sdT1NYXRoLmNlaWwoTWF0aC5yb3VuZCgoaC54KzIwMDM3NTA4MzRlLTIpL2wpKSxvPU1hdGguY2VpbChNYXRoLnJvdW5kKCgyMDAzNzUwODM0ZS0yLWgueSkvbCkpLHg9dS1NYXRoLmNlaWwobi8yL2UudGlsZVNpemUpLE09dStNYXRoLmNlaWwobi8yL2UudGlsZVNpemUpLFQ9by1NYXRoLmNlaWwoei8yL2UudGlsZVNpemUpLHc9bytNYXRoLmNlaWwoei8yL2UudGlsZVNpemUpKToobj10WzBdLHo9dFsxXSx1PU1hdGguY2VpbChNYXRoLnJvdW5kKChoLngrMTgwKS9sKSksbz1NYXRoLmNlaWwoTWF0aC5yb3VuZCgoOTAtaC55KS9sKSkseD11LU1hdGguY2VpbChuLzIvZS50aWxlU2l6ZSksTT11K01hdGguY2VpbChuLzIvZS50aWxlU2l6ZSksVD1vLU1hdGguY2VpbCh6LzIvZS50aWxlU2l6ZSksdz1vK01hdGguY2VpbCh6LzIvZS50aWxlU2l6ZSkpO2NvbnN0IEM9W107Zm9yKGxldCBtPXg7bTw9TTttKyspZm9yKGxldCBTPVQ7Uzw9dztTKyspQy5wdXNoKFttLFNdKTtrPUMubGVuZ3RoO2NvbnN0IFA9ZS5kZXZpY2VQaXhlbFJhdGlvO2cudHJhbnNsYXRlKHRbMF0qUCooMS1zKS8yLHRbMV0qUCooMS1zKS8yKSxnLnNjYWxlKGUucmF0aW8qcyxlLnJhdGlvKnMpLHBvc3RNZXNzYWdlKHt0aWxlc09yZGVyOkMsem9vbVVuaXRzOmQsbXNnOiJ1cGRhdGVDYW52YXMifSl9ZnVuY3Rpb24gWChlKXtyZXR1cm5bImJ1dHQiLCJzcXVhcmUiLCJyb3VuZCJdW2VdfWZ1bmN0aW9uIFkoZSl7cmV0dXJuWyJtaXRlciIsImJldmVsIiwicm91bmQiXVtlXX19KSgpOwo=",DDt="undefined"!=typeof window&&window.Blob&&new Blob([atob(TDt)],{type:"text/javascript;charset=utf-8"});function RDt(){const t=DDt&&(window.URL||window.webkitURL).createObjectURL(DDt);try{return t?new Worker(t):new Worker("data:application/javascript;base64,"+TDt)}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}function kDt(t){t=t||{},this.options=t,this.analysis="official"===t.analysis?t.analysis:"private",this.needWorker=void 0!==t.needWorker&&t.needWorker,t.colors=t.colors||["rgba(0,192,73,0.99609375)","rgba(242,48,48,0.99609375)","rgba(255,159,25,0.99609375)"];const e=t.colors;this.map=t.map,this.canvas=null,this.tileType=t.tileType;const n=this.map.getSize(),i=this.map.getView().calculateExtent(n),r=new YT({extent:i,source:new Gp({canvasFunction:this.canvasFunction.bind(this),ratio:1,projection:"EPSG:4326"})});this.layer=r,t.map.on(["precompose"],t=>{const e=t.target.getSize(),n=t.target.getView().calculateExtent(e);r.setExtent(n)},!1),this.parseColors(e),this.tileSize=256;const o=1;this.ratio=o,this.drawTogether=!1,this.cache={},this._loadCount={},t.getTileUrl&&(this.getTileUrl=t.getTileUrl),t.needWorker&&(this.worker=new RDt,this.worker.onmessage=e=>{if("initTile"===e.data.msg)this.canvaslayer.canvas.getContext("2d").drawImage(e.data.imageBitmap,0,0),window.BMap&&(window.BMap=null);else if("updateCanvas"===e.data.msg){const n=e.data.tilesOrder;this.zoomUnits=e.data.zoomUnits,this.tilesOrder=e.data.tilesOrder,this._loadCount={},this.canvaslayer.canvas.getContext("2d").clearRect(0,0,this.canvaslayer.canvas.width,this.canvaslayer.canvas.height);for(let e=0;e{})}kDt.prototype.canvasFunction=function(t,e,n,i,r){let o=this.canvas;return o||(o=document.createElement("canvas"),this.canvas=o),o.width=i[0],o.height=i[1],this.update({resolution:e,canvas:o}),o},kDt.prototype.parseColors=function(t){this.arrFeatureStyles=[[2,t[0]||"rgba(79,210,125,1)",2,2,0,[],0,0],[2,t[0]||"rgba(79,210,125,1)",3,2,0,[],0,0],[2,t[0]||"rgba(79,210,125,1)",3,2,0,[],0,0],[2,t[0]||"rgba(79,210,125,1)",5,2,0,[],0,0],[2,t[0]||"rgba(79,210,125,1)",6,2,0,[],0,0],[2,t[2]||"rgba(255,208,69,1)",2,2,0,[],0,0],[2,t[2]||"rgba(255,208,69,1)",3,2,0,[],0,0],[2,t[2]||"rgba(255,208,69,1)",3,2,0,[],0,0],[2,t[2]||"rgba(255,208,69,1)",5,2,0,[],0,0],[2,t[2]||"rgba(255,208,69,1)",6,2,0,[],0,0],[2,t[1]||"rgba(232,14,14,1)",2,2,0,[],0,0],[2,t[1]||"rgba(232,14,14,1)",3,2,0,[],0,0],[2,t[1]||"rgba(232,14,14,1)",3,2,0,[],0,0],[2,t[1]||"rgba(232,14,14,1)",5,2,0,[],0,0],[2,t[1]||"rgba(232,14,14,1)",6,2,0,[],0,0],[2,t[3]||"rgba(181,0,0,1)",2,2,0,[],0,0],[2,t[3]||"rgba(181,0,0,1)",3,2,0,[],0,0],[2,t[3]||"rgba(181,0,0,1)",3,2,0,[],0,0],[2,t[3]||"rgba(181,0,0,1)",5,2,0,[],0,0],[2,t[3]||"rgba(181,0,0,1)",6,2,0,[],0,0],[2,"rgba(255,255,255,1)",4,0,0,[],0,0],[2,"rgba(255,255,255,1)",5.5,0,0,[],0,0],[2,"rgba(255,255,255,1)",7,0,0,[],0,0],[2,"rgba(255,255,255,1)",8.5,0,0,[],0,0],[2,"rgba(255,255,255,1)",10,0,0,[],0,0]]},kDt.prototype.setColors=function(t){this.parseColors(t)},kDt.prototype.initialize=function(t){const e=this;this._initialize||(this.canvaslayer=new CanvasLayer({map:t,update:function(){e.update(this)}}),this._initialize=!0)},kDt.prototype.clearCache=function(t){this.cache={}},kDt.prototype.setMap=function(t){t?(this.map=t,this._initialize?this.canvaslayer.show():this.initialize(t)):this.canvaslayer.hide()},kDt.prototype.draw=function(t){t=t||{},t.clearCache&&this.clearCache(),t.drawTogether&&(this.drawTogether=!0),this.update()},kDt.prototype.clear=function(){const t=this.canvaslayer.canvas.getContext("2d"),e=t.canvas.width,n=t.canvas.height;t.canvas.width=e,t.canvas.height=n},kDt.prototype.update=function(t){const e=this.map;t?this.canvaslayer=t:t=this.canvaslayer;const n=t.canvas.getContext("2d");this.drawTogether||this.clear();const i=[];if(this.needWorker){const t=this.map.getSize(),n={mapZoom:Math.round(e.getView().getZoom()),tileType:this.tileType,zoomUnits:this.zoomUnits,center:this.map.getView().getCenter(),resolution:this.canvaslayer.resolution,tileSize:this.tileSize,size:t,devicePixelRatio:this.ratio,ratio:this.ratio};this.worker.postMessage({msg:"updateCanvas",width:t[0],height:t[1],updateInfo:n})}else{const t=this.map;let e,r;"bd09"===this.tileType?(e=Math.round(t.getView().getZoom()+1),this.zoomUnits=Math.pow(2,18-e),r=256*this.zoomUnits):"WGS84"===this.tileType?(e=Math.round(t.getView().getZoom()),this.zoomUnits=2*Math.PI*6378137/256/Math.pow(2,e),r=256*this.zoomUnits):(e=Math.round(t.getView().getZoom()),this.zoomUnits=.3515625*Math.pow(2,2-e),r=256*this.zoomUnits);const o=t.getView().getCenter(),s={x:o[0],y:o[1]};let a,l,h,u,c,g;const d=this.zoomUnits/this.canvaslayer.resolution;let f=t.getSize()[0]/d,A=t.getSize()[1]/d;if("bd09"===this.tileType){a=Math.ceil(s.x/r),l=Math.ceil(s.y/r);const t=[a,l,(s.x-a*r)/r*this.tileSize,(s.y-l*r)/r*this.tileSize];h=t[0]-Math.ceil((f/2-t[2])/this.tileSize),u=t[1]-Math.ceil((A/2-t[3])/this.tileSize),c=t[0]+Math.ceil((f/2+t[2])/this.tileSize),g=t[1]+Math.ceil((A/2+t[3])/this.tileSize)}else"WGS84"===this.tileType?(f=t.getSize()[0],A=t.getSize()[1],a=Math.ceil(Math.round((s.x+20037508.34)/r)),l=Math.ceil(Math.round((20037508.34-s.y)/r)),h=a-Math.ceil(f/2/this.tileSize),c=a+Math.ceil(f/2/this.tileSize),u=l-Math.ceil(A/2/this.tileSize),g=l+Math.ceil(A/2/this.tileSize)):(f=t.getSize()[0],A=t.getSize()[1],a=Math.ceil(Math.round((s.x+180)/r)),l=Math.ceil(Math.round((90-s.y)/r)),h=a-Math.ceil(f/2/this.tileSize),c=a+Math.ceil(f/2/this.tileSize),u=l-Math.ceil(A/2/this.tileSize),g=l+Math.ceil(A/2/this.tileSize));for(let n=h;n<=c;n++)for(let t=u;t<=g;t++)i.push([n,t]);this.tilesOrder=i,this._loadCount={};const p=t.getSize();n.translate(p[0]*devicePixelRatio*(1-d)/2,p[1]*devicePixelRatio*(1-d)/2),n.scale(this.ratio*d,this.ratio*d);for(let n=0;n180||t.lng<-180||t.lat>90||t.lat<-90)return{x:0,y:0};if("WGS84"===this.tileType){const e={};e.lng=t.lng*Math.PI/180*6378137;const n=t.lat*Math.PI/180;return e.lat=3189068.5*Math.log((1+Math.sin(n))/(1-Math.sin(n))),{x:Number(e.lng.toFixed(2)),y:Number(e.lat.toFixed(2))}}},kDt.prototype.isAllLoaded=function(){let t=!0;for(const e in this._loadCount)if(!this._loadCount[e]){t=!1;break}return t},kDt.prototype.showTile=function(t,e,n){this._parseDataAndDraw(t,e,n)},kDt.prototype.drawCurrentData=function(){let t;this.clear(),t="bd09"===this.tileType?Math.round(this.map.getZoom()+1):"WGS84"===this.tileType?Math.round(this.map.getZoom()):Math.round(this.map.getView().getZoom());for(let e=0;e=15&&e[3]<=19&&(r.strokeStyle="rgba(186, 0, 0, 1)"),r.lineWidth=l[2],r.lineCap=o(l[3]),r.lineJoin=s(l[4]),r.stroke()}}r.restore()}},kDt.prototype.request=function(t,e){if(e)if("private"===this.analysis){const n=(1e5*Math.random()).toFixed(0),i="_cbk"+n;window.BMap._rd[i]=function(t){e&&e(t),delete window.BMap._rd[i]},t+="&callback=BMap._rd._cbk"+n}else{const n=/(\w+|[\u4e00-\u9fa5]+)=(\w+|[\u4e00-\u9fa5]+)/gi,i={};t.replace(n,(t,e,n)=>{i[e]=n});const r=i.fn;window.BMap[r]=function(t){e&&e(t),delete window.BMap[r]},t+="&callback=BMap."+r}let n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=t,n.addEventListener?n.addEventListener("load",(function(t){const e=t.target;e.parentNode.removeChild(e)}),!1):n.attachEvent&&n.attachEvent("onreadystatechange",(function(t){const e=window.event.srcElement;e&&("loaded"===e.readyState||"complete"===e.readyState)&&e.parentNode.removeChild(e)})),setTimeout((function(){document.getElementsByTagName("head")[0].appendChild(n),n=null}),1)},kDt.prototype.getRGBA=function(t){t>>>=0;const e=t>>24&255,n=t>>16&255,i=t>>8&255,r=(255&t)/256;return"rgba("+e+","+n+","+i+","+r+")"},kDt.prototype.getLineCap=function(t){return["butt","square","round"][t]},kDt.prototype.getLineJoin=function(t){return["miter","bevel","round"][t]},kDt.prototype.workerTerminate=function(){this.worker&&this.worker.terminate()};const LDt={name:"v-traffic",render(){return null},extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},props:{layerId:{type:String,default:""},timeout:{type:Number},url:{type:String,require:!0},tileType:{type:String},clearCache:{type:Boolean,default:!0},colors:{type:Array,default(){return["rgba(0,192,73,0.99609375)","rgba(242,48,48,0.99609375)","rgba(255,159,25,0.99609375)"]}},needWorker:{type:Boolean,default:!1}},data(){return{timer:null,trafficLayer:null,eventRender:[],eventList:["singleclick","pointermove"]}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{visible:{handler(t){this.trafficLayer.layer.setVisible(t)},immediate:!1},zIndex:{handler(t){this.trafficLayer.layer.setZIndex(t)},immediate:!1},maxZoom:{handler(t){this.trafficLayer.layer.setMaxZoom(t)},immediate:!1},minZoom:{handler(t){this.trafficLayer.layer.setMinZoom(t)},immediate:!1},extent:{handler(t){this.trafficLayer.layer.setExtent(t)},immediate:!1,deep:!0},colors:{handler(t){this.trafficLayer.setColors(t)},immediate:!1,deep:!0}},methods:{init(){const t={map:this.map,trafficURL:this.url,tileType:this.tileType,colors:this.colors,needWorker:this.needWorker};this.trafficLayer="undefined"==typeof BDTrafficLayer?new kDt(t):new BDTrafficLayer(t);const e=this.layerId||"traffic-layer-"+m();this.trafficLayer.layer.set("id",e),this.trafficLayer.layer.set("type","traffic"),this.trafficLayer.layer.set("users",!0),this.zIndex&&this.trafficLayer.layer.setZIndex(this.zIndex),this.trafficLayer.layer.setVisible(this.visible),Fk({type:this.$parent.$options.name,map:this.map,layer:this.trafficLayer.layer,groupLayer:this.groupLayer}),this.timeout&&(this.timer=setInterval(()=>{this.trafficLayer.layer&&this.trafficLayer.layer.getVisible()&&this.trafficLayer.draw({clearCache:this.clearCache})},this.timeout)),this.eventList.forEach(t=>{this.eventRender.push(this.map.on(t,e=>this.eventHandler(t,e)))})},getFeatureAtPixel(t){return this.map.forEachFeatureAtPixel(t,(t,e)=>{var n,i;if((null==e?void 0:e.get("id"))===(null==(i=null==(n=this.trafficLayer)?void 0:n.layer)?void 0:i.get("id")))return t},{})},eventHandler(t,e){const{pixel:n}=e,i=this.getFeatureAtPixel(n);this.$emit(t,e,i)},dispose(){this.eventRender.forEach(t=>{H(t)}),this.timer&&(clearInterval(this.timer),this.timer=null),this.trafficLayer&&(this.trafficLayer.layer.getSource().clear(),this.map.removeLayer(this.trafficLayer.layer),this.trafficLayer.workerTerminate())}},mounted(){this.init()},update(){this.trafficLayer&&this.dispose(),this.init()},beforeDestroy(){this.dispose()}};let PDt,QDt;const zDt={};var FDt=zE(LDt,PDt,QDt,!1,ODt,null,null,null);function ODt(t){for(let e in zDt)this[e]=zDt[e]}FDt.options.__file="src/components/layers/traffic/index.vue";const NDt=function(){return FDt.exports}();function GDt(t,e,n){var i,r=n||{},o=r.noTrailing,s=void 0!==o&&o,a=r.noLeading,l=void 0!==a&&a,h=r.debounceMode,u=void 0===h?void 0:h,c=!1,g=0;function d(){i&&clearTimeout(i)}function f(t){var e=t||{},n=e.upcomingOnly,i=void 0!==n&&n;d(),c=!i}function A(){for(var n=arguments.length,r=new Array(n),o=0;ot?l?(g=Date.now(),s||(i=setTimeout(u?A:f,t))):f():!0!==s&&(i=setTimeout(u?A:f,void 0===u?t-h:t)))}return A.cancel=f,A}function jDt(t,e,n){var i=n||{},r=i.atBegin,o=void 0!==r&&r;return GDt(t,e,{debounceMode:!1!==o})}NDt.install=function(t){t.component(NDt.name,NDt)};var UDt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.showLegend?n("div",{staticClass:"traffic-legend"},[n("div",{staticClass:"legend-title"},[t._v("交通状况")]),n("div",{staticClass:"legend-item"},[n("span",{staticClass:"legend-color",style:{backgroundColor:t.colors[0]}}),n("span",{staticClass:"legend-text"},[t._v("畅通")])]),n("div",{staticClass:"legend-item"},[n("span",{staticClass:"legend-color",style:{backgroundColor:t.colors[1]}}),n("span",{staticClass:"legend-text"},[t._v("缓慢")])]),n("div",{staticClass:"legend-item"},[n("span",{staticClass:"legend-color",style:{backgroundColor:t.colors[2]}}),n("span",{staticClass:"legend-text"},[t._v("拥堵")])]),n("div",{staticClass:"legend-item"},[n("span",{staticClass:"legend-color",style:{backgroundColor:t.colors[3]}}),n("span",{staticClass:"legend-text"},[t._v("严重拥堵")])]),n("div",{staticClass:"legend-item"},[n("span",{staticClass:"legend-color",style:{backgroundColor:t.colors[4]}}),n("span",{staticClass:"legend-text"},[t._v("无数据")])])]):t._e(),t._t("default")],2)},qDt=[];UDt._withStripped=!0;const VDt={name:"v-gd-route",extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},props:{layerId:{type:String,default:""},className:{type:String,default:"gd-route-layer"},colors:{type:Array,default:()=>["#34b000","#fecb00","#df0100","#8e0e0b","#8f979c"]},lineWidth:{type:Number,default:1.5},updateInterval:{type:Number,default:3e4},showLegend:{type:Boolean,default:!1},url:{type:String,required:!0},requestParams:{type:Object,default:()=>({f:"geojson",returnGeometry:!0,resultRecordCount:5e4})},where:String,geometry:String,lowLevel:{type:Number,default:14},lowLevelClass:{type:String,default:"(1,2,3)"},midLevelClass:{type:String,default:"(1,2,3,4)"},highLevel:{type:Number,default:16},highLevelClass:{type:String,default:"(1,2,3,4,5)"},declutter:{type:[Boolean,Number,String],default:!1},updateWhileInteracting:{type:Boolean,default:!1}},data(){return{updateTimer:null,layer:null,trafficFeatures:[],hoveredFeatureId:null}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},watch:{geometry:{handler(){this.debouncedUpdateTrafficData()},immediate:!1,deep:!0},where:{handler(){this.debouncedUpdateTrafficData()},immediate:!1,deep:!0},visible:{handler(t){this.layer&&(t?this.startUpdate():this.stopUpdate())},immediate:!1},updateInterval:{handler(){this.visible&&this.startUpdate()},immediate:!1},colors:{handler(){this.debouncedUpdateTrafficData()},immediate:!1,deep:!0},lineWidth:{handler(){this.debouncedUpdateTrafficData()},immediate:!1},url:{handler(){this.debouncedUpdateTrafficData()},immediate:!1},requestParams:{handler(){this.debouncedUpdateTrafficData()},immediate:!1,deep:!0}},methods:{generateWhereParam(t){return t<=this.lowLevel?"roadclass in "+this.lowLevelClass:t<=this.highLevel?"roadclass in "+this.midLevelClass:"roadclass in "+this.highLevelClass},getCurrentWhereParam(){var t;const e=(null==(t=this.map)?void 0:t.getView().getZoom())||10,n=this.generateWhereParam(e);return this.where&&this.where.trim()?`${n} AND (${this.where.trim()})`:n},getCurrentExtentGeometry(){if(!this.map)return"";try{const t=this.map.getView().calculateExtent(this.map.getSize()),[e,n,i,r]=t,o={type:"Polygon",coordinates:[[[e,n],[i,n],[i,r],[e,r],[e,n]]]};return JSON.stringify(o)}catch(LFt){return""}},getCurrentGeometryParam(){return this.geometry&&this.geometry.trim()?this.geometry.trim():this.getCurrentExtentGeometry()},getColorByState(t){const e={1:0,2:1,3:2,4:3,[-1]:4}[t];return void 0!==e?this.colors[e]:this.colors[4]},getStateText(t){return{1:"畅通",2:"缓慢",3:"拥堵",4:"严重拥堵",[-1]:"无数据"}[t]||"未知"},distanceToLineSegment(t,e,n){const[i,r]=t,[o,s]=e,[a,l]=n,h=(a-o)*(a-o)+(l-s)*(l-s);if(0===h)return Math.sqrt((i-o)*(i-o)+(r-s)*(r-s));const u=Math.max(0,Math.min(1,((i-o)*(a-o)+(r-s)*(l-s))/h)),c=o+u*(a-o),g=s+u*(l-s);return Math.sqrt((i-c)*(i-c)+(r-g)*(r-g))},getFeatureAtPixel(t){if(!this.map)return null;const e=this.map.getCoordinateFromPixel(t);if(!e)return null;const n=5*(this.map.getView().getResolution()||1);for(const i of this.trafficFeatures){const t=i.getGeometry();if(t&&"LineString"===t.getType()){const r=t.getCoordinates();for(let t=0;t{t.append(e,String(n))});const e=this.getCurrentWhereParam();t.append("where",e);const n=this.getCurrentGeometryParam();n&&t.append("geometry",n);const i=yield(yield fetch(this.url,{method:"POST",body:t})).json();this.$emit("render",i);const r=[];return i.features&&Array.isArray(i.features)&&i.features.forEach(t=>{var e;if(t.geometry&&"LineString"===t.geometry.type){const n=new jo(t.geometry.coordinates),i=t.properties.state||-1,o=this.getColorByState(i),s=new Gs({stroke:new qo({color:o,width:this.lineWidth})}),a=new lt({geometry:n,road_name:t.properties.road_name,speed:parseFloat(t.properties.speed)||0,state:t.properties.state,travel_time:t.properties.travel_time,length:t.properties.length,feature_id:(null==(e=t.properties.gid)?void 0:e.toString())||"",gid:t.properties.gid});a.setStyle(s),r.push(a)}}),r}catch(LFt){return[]}}))},getCanvasVectorContext(t,e,n,i){if(!this.map||0===this.trafficFeatures.length)return;const r=t.getContext("2d");if(!r)return;const o=ut(),s=t.width,a=t.height,l=e[2]-e[0],h=e[3]-e[1],u=s/l,c=a/h;vt(o,0,a,u,-c,0,-e[0],-e[1]);const g=new ku(r,i,e,o,0);this.trafficFeatures.forEach(t=>{const e=t.getGeometry(),n=t.getStyle();e&&n&&(g.setStyle(n),g.drawGeometry(e))})},initTrafficLayer(){if(!this.map)return;const t=new Gp({canvasFunction:(t,e,n,i)=>{const r=document.createElement("canvas");return r.width=i[0],r.height=i[1],this.getCanvasVectorContext(r,t,e,n),r},ratio:1});this.layer=new YT(d(g({},this.$props),{source:t}));const e=this.layerId||"route-layer-"+m();this.layer.set("id",e),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.debouncedUpdateTrafficData()},updateTrafficData(){return p(this,null,(function*(){if(this.layer)try{this.trafficFeatures=yield this.loadTrafficDataFromJson(),this.layer.getSource().changed()}catch(LFt){}}))},startUpdate(){this.updateTimer&&clearInterval(this.updateTimer),this.updateTimer=setInterval(()=>{this.updateTrafficData()},this.updateInterval)},stopUpdate(){this.updateTimer&&(clearInterval(this.updateTimer),this.updateTimer=null)},mapZoomHandler(){this.debouncedUpdateTrafficData()},mapMoveHandler(){this.geometry||this.debouncedUpdateTrafficData()},dispose(){if(this.stopUpdate(),this.map&&(this.map.getView().un("change:resolution",this.mapZoomHandler),this.map.getView().un("change:center",this.mapMoveHandler),this.map.un("pointermove",this.handleMouseMove),this.map.un("click",this.handleMapClick),this.map.getTargetElement().style.cursor="default"),this.debouncedUpdateTrafficData&&this.debouncedUpdateTrafficData.cancel(),this.layer)try{this.map&&this.map.getLayers().getArray().includes(this.layer)&&this.map.removeLayer(this.layer)}catch(LFt){}},getLayer(){return this.layer},updateData(){return this.updateTrafficData()},startAutoUpdate(){this.startUpdate()},stopAutoUpdate(){this.stopUpdate()},getCurrentWhere(){return this.getCurrentWhereParam()},getCurrentGeometry(){return this.getCurrentGeometryParam()},getCurrentZoom(){var t;return(null==(t=this.map)?void 0:t.getView().getZoom())||10},getCurrentExtent(){var t;return null==(t=this.map)?void 0:t.getView().calculateExtent(this.map.getSize())}},created(){this.debouncedUpdateTrafficData=jDt(2e3,this.updateTrafficData)},mounted(){this.map&&(this.initTrafficLayer(),this.map.getView().on("change:resolution",this.mapZoomHandler),this.map.getView().on("change:center",this.mapMoveHandler),this.map.on("pointermove",this.handleMouseMove),this.map.on("click",this.handleMapClick),this.visible&&this.startUpdate())},beforeDestroy(){this.dispose()}},HDt={};var YDt=zE(VDt,UDt,qDt,!1,WDt,"680a10a9",null,null);function WDt(t){for(let e in HDt)this[e]=HDt[e]}YDt.options.__file="src/components/layers/gd-route/index.vue";const XDt=function(){return YDt.exports}();XDt.install=function(t){t.component(XDt.name,XDt)};const ZDt={name:"v-wfs",render(){return null},extends:XE,inject:{VMap:{value:"VMap",default:null},VGroupLayer:{value:"VGroupLayer",default:null}},components:{},props:{layerId:{type:String,default:""},options:{type:Object,default:()=>({})},layerStyle:{type:Object,default:()=>({})}},data(){return{vectorSource:null,eventRender:[],eventList:["singleclick","pointermove"]}},computed:{map(){return this.VMap.map},groupLayer(){var t;return null==(t=this.VGroupLayer)?void 0:t.layer}},methods:{init(){this.vectorSource=new Dc,this.layer=new nc(d(g({},this.$props),{source:this.vectorSource,style:t=>eE(t,this.layerStyle,this.map)}));const t=this.layerId||"wfs-layer-"+m();this.layer.set("id",t),Fk({type:this.$parent.$options.name,map:this.map,layer:this.layer,groupLayer:this.groupLayer}),this.eventList.forEach(t=>{this.eventRender.push(this.map.on(t,e=>this.eventHandler(t,e)))}),this.addFeatures()},addFeatures(){if(!WC(this.options,"featureNS"))throw new Error("featureNS is required");const t=(new iz).writeGetFeature(d(g({},this.options),{outputFormat:"application/json"}));fetch(this.options.featureNS,{method:"POST",body:(new XMLSerializer).serializeToString(t)}).then((function(t){return t.json()})).then(t=>{const e=(new pm).readFeatures(t);this.vectorSource.addFeatures(e)})},getFeatureAtPixel(t){return this.map.forEachFeatureAtPixel(t,(t,e)=>{var n;if((null==e?void 0:e.get("id"))===(null==(n=this.layer)?void 0:n.get("id")))return t},{})},eventHandler(t,e){const{pixel:n}=e,i=this.getFeatureAtPixel(n);this.$emit(t,e,i)}},created(){},mounted(){this.init()}};let KDt,JDt;const $Dt={};var tRt=zE(ZDt,KDt,JDt,!1,eRt,null,null,null);function eRt(t){for(let e in $Dt)this[e]=$Dt[e]}tRt.options.__file="src/components/layers/wfs/index.vue";const nRt=function(){return tRt.exports}();nRt.install=function(t){t.component(nRt.name,nRt)};const iRt=[jE,vk,bk,zk,gk,OL,uz,wz,Rz,LV,WV,eH,lH,AH,NTt,$Tt,pTt,MDt,NDt,XDt,nRt],rRt=function(t){rRt.installed||iRt.forEach(e=>{t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&rRt(window.Vue);const oRt=g({install:rRt},iRt);class sRt extends JM{decodeBlock(t){return t}}const aRt=Object.freeze(Object.defineProperty({__proto__:null,default:sRt},Symbol.toStringTag,{value:"Module"})),lRt=9,hRt=256,uRt=257,cRt=12;function gRt(t,e,n){const i=e%8,r=Math.floor(e/8),o=8-i,s=e+n-8*(r+1);let a=8*(r+2)-(e+n);const l=8*(r+2)-e;if(a=Math.max(0,a),r>=t.length)return uRt;let h=t[r]&u(2,8-i)-1;h<<=n-o;let c=h;if(r+1>>a;e<<=Math.max(0,n-l),c+=e}if(s>8&&r+2>>i}return c}function dRt(t,e){for(let n=e.length-1;n>=0;n--)t.push(e[n]);return t}function fRt(t){const e=new Uint16Array(4093),n=new Uint8Array(4093);for(let u=0;u<=257;u++)e[u]=4096,n[u]=u;let i=258,r=lRt,o=0;function s(){i=258,r=lRt}function a(t){const e=gRt(t,o,r);return o+=r,e}function l(t,r){return n[i]=r,e[i]=t,i++,i-1}function h(t){const i=[];for(let r=t;4096!==r;r=e[r])i.push(n[r]);return i}const c=[];s();const g=new Uint8Array(t);let d,f=a(g);for(;f!==uRt;){if(f===hRt){for(s(),f=a(g);f===hRt;)f=a(g);if(f===uRt)break;if(f>hRt)throw new Error("corrupted code at scanline "+f);{const t=h(f);dRt(c,t),d=f}}else if(f=u(2,r)&&(r===cRt?d=void 0:r++),f=a(g)}return new Uint8Array(c)}class ARt extends JM{decodeBlock(t){return fRt(t).buffer}}const pRt=Object.freeze(Object.defineProperty({__proto__:null,default:ARt},Symbol.toStringTag,{value:"Module"})),mRt=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),yRt=4017,vRt=799,_Rt=3406,xRt=2276,IRt=1567,wRt=3784,CRt=5793,ERt=2896;function bRt(t,e){let n=0;const i=[];let r=16;for(;r>0&&!t[r-1];)--r;i.push({children:[],index:0});let o,s=i[0];for(let a=0;a0;)s=i.pop();for(s.index++,i.push(s);i.length<=a;)i.push(o={children:[],index:0}),s.children[s.index]=o.children,s=o;n++}a+10)return f--,d>>f&1;if(d=t[g++],255===d){const e=t[g++];if(e)throw new Error("unexpected marker: "+(d<<8|e).toString(16))}return f=7,d>>>7}function p(t){let e,n=t;for(;null!==(e=A());){if(n=n[e],"number"==typeof n)return n;if("object"!=typeof n)throw new Error("invalid huffman sequence")}return null}function m(t){let e=t,n=0;for(;e>0;){const t=A();if(null===t)return;n=n<<1|t,--e}return n}function y(t){const e=m(t);return e>=1<>4;if(0===i){if(o<15)break;r+=16}else{r+=o;const t=mRt[r];e[t]=y(i),r++}}}function _(t,e){const n=p(t.huffmanTableDC),i=0===n?0:y(n)<0)return void I--;let n=o;const i=s;for(;n<=i;){const i=p(t.huffmanTableAC),r=15&i,o=i>>4;if(0===r){if(o<15){I=m(o)+(1<>4,0===n)r<15?(I=m(r)+(1<=65488&&Q<=65495))break;g+=2}return g-c}function BRt(t,e){const n=[],{blocksPerLine:i,blocksPerColumn:r}=e,o=i<<3,s=new Int32Array(64),a=new Uint8Array(64);function l(t,n,i){const r=e.quantizationTable;let o,s,a,l,h,u,c,g,d;const f=i;let A;for(A=0;A<64;A++)f[A]=t[A]*r[A];for(A=0;A<8;++A){const t=8*A;0!==f[1+t]||0!==f[2+t]||0!==f[3+t]||0!==f[4+t]||0!==f[5+t]||0!==f[6+t]||0!==f[7+t]?(o=CRt*f[0+t]+128>>8,s=CRt*f[4+t]+128>>8,a=f[2+t],l=f[6+t],h=ERt*(f[1+t]-f[7+t])+128>>8,g=ERt*(f[1+t]+f[7+t])+128>>8,u=f[3+t]<<4,c=f[5+t]<<4,d=o-s+1>>1,o=o+s+1>>1,s=d,d=a*wRt+l*IRt+128>>8,a=a*IRt-l*wRt+128>>8,l=d,d=h-c+1>>1,h=h+c+1>>1,c=d,d=g+u+1>>1,u=g-u+1>>1,g=d,d=o-l+1>>1,o=o+l+1>>1,l=d,d=s-a+1>>1,s=s+a+1>>1,a=d,d=h*xRt+g*_Rt+2048>>12,h=h*_Rt-g*xRt+2048>>12,g=d,d=u*vRt+c*yRt+2048>>12,u=u*yRt-c*vRt+2048>>12,c=d,f[0+t]=o+g,f[7+t]=o-g,f[1+t]=s+c,f[6+t]=s-c,f[2+t]=a+u,f[5+t]=a-u,f[3+t]=l+h,f[4+t]=l-h):(d=CRt*f[0+t]+512>>10,f[0+t]=d,f[1+t]=d,f[2+t]=d,f[3+t]=d,f[4+t]=d,f[5+t]=d,f[6+t]=d,f[7+t]=d)}for(A=0;A<8;++A){const t=A;0!==f[8+t]||0!==f[16+t]||0!==f[24+t]||0!==f[32+t]||0!==f[40+t]||0!==f[48+t]||0!==f[56+t]?(o=CRt*f[0+t]+2048>>12,s=CRt*f[32+t]+2048>>12,a=f[16+t],l=f[48+t],h=ERt*(f[8+t]-f[56+t])+2048>>12,g=ERt*(f[8+t]+f[56+t])+2048>>12,u=f[24+t],c=f[40+t],d=o-s+1>>1,o=o+s+1>>1,s=d,d=a*wRt+l*IRt+2048>>12,a=a*IRt-l*wRt+2048>>12,l=d,d=h-c+1>>1,h=h+c+1>>1,c=d,d=g+u+1>>1,u=g-u+1>>1,g=d,d=o-l+1>>1,o=o+l+1>>1,l=d,d=s-a+1>>1,s=s+a+1>>1,a=d,d=h*xRt+g*_Rt+2048>>12,h=h*_Rt-g*xRt+2048>>12,g=d,d=u*vRt+c*yRt+2048>>12,u=u*yRt-c*vRt+2048>>12,c=d,f[0+t]=o+g,f[56+t]=o-g,f[8+t]=s+c,f[48+t]=s-c,f[16+t]=a+u,f[40+t]=a-u,f[24+t]=l+h,f[32+t]=l-h):(d=CRt*i[A+0]+8192>>14,f[0+t]=d,f[8+t]=d,f[16+t]=d,f[24+t]=d,f[32+t]=d,f[40+t]=d,f[48+t]=d,f[56+t]=d)}for(A=0;A<64;++A){const t=128+(f[A]+8>>4);n[A]=t<0?0:t>255?255:t}}for(let h=0;h>4===0)for(let n=0;n<64;n++){const i=mRt[n];r[i]=t[e++]}else{if(i>>4!==1)throw new Error("DQT: invalid table spec");for(let t=0;t<64;t++){const e=mRt[t];r[e]=n()}}this.quantizationTables[15&i]=r}break}case 65472:case 65473:case 65474:{n();const i={extended:65473===o,progressive:65474===o,precision:t[e++],scanLines:n(),samplesPerLine:n(),components:{},componentsOrder:[]},s=t[e++];let a;for(let n=0;n>4,r=15&t[e+1],o=t[e+2];i.componentsOrder.push(a),i.components[a]={h:n,v:r,quantizationIdx:o},e+=3}r(i),this.frames.push(i);break}case 65476:{const i=n();for(let n=2;n>4===0?this.huffmanTablesDC[15&i]=bRt(r,s):this.huffmanTablesAC[15&i]=bRt(r,s)}break}case 65501:n(),this.resetInterval=n();break;case 65498:{n();const i=t[e++],r=[],o=this.frames[0];for(let n=0;n>4],n.huffmanTableAC=this.huffmanTablesAC[15&i],r.push(n)}const s=t[e++],a=t[e++],l=t[e++];e+=SRt(t,e,o,r,this.resetInterval,s,a,l>>4,15&l);break}case 65535:255!==t[e]&&e--;break;default:if(255===t[e-3]&&t[e-2]>=192&&t[e-2]<=254){e-=3;break}throw new Error("unknown JPEG marker "+o.toString(16))}o=n()}}getResult(){const{frames:t}=this;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length;for(let h=0;h=0;)t[e]=0}const zRt=0,FRt=1,ORt=2,NRt=3,GRt=258,jRt=29,URt=256,qRt=URt+1+jRt,VRt=30,HRt=19,YRt=2*qRt+1,WRt=15,XRt=16,ZRt=7,KRt=256,JRt=16,$Rt=17,tkt=18,ekt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),nkt=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ikt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),rkt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),okt=512,skt=new Array(2*(qRt+2));QRt(skt);const akt=new Array(2*VRt);QRt(akt);const lkt=new Array(okt);QRt(lkt);const hkt=new Array(GRt-NRt+1);QRt(hkt);const ukt=new Array(jRt);QRt(ukt);const ckt=new Array(VRt);function gkt(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}let dkt,fkt,Akt;function pkt(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}QRt(ckt);const mkt=t=>t<256?lkt[t]:lkt[256+(t>>>7)],ykt=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},vkt=(t,e,n)=>{t.bi_valid>XRt-n?(t.bi_buf|=e<>XRt-t.bi_valid,t.bi_valid+=n-XRt):(t.bi_buf|=e<{vkt(t,n[2*e],n[2*e+1])},xkt=(t,e)=>{let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},Ikt=t=>{16===t.bi_valid?(ykt(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},wkt=(t,e)=>{const n=e.dyn_tree,i=e.max_code,r=e.stat_desc.static_tree,o=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,u,c,g,d,f,A=0;for(g=0;g<=WRt;g++)t.bl_count[g]=0;for(n[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;hl&&(g=l,A++),n[2*u+1]=g,!(u>i)&&(t.bl_count[g]++,d=0,u>=a&&(d=s[u-a]),f=n[2*u],t.opt_len+=f*(g+d),o&&(t.static_len+=f*(r[2*u+1]+d)));if(0!==A){do{for(g=l-1;0===t.bl_count[g];)g--;t.bl_count[g]--,t.bl_count[g+1]+=2,t.bl_count[l]--,A-=2}while(A>0);for(g=l;0!==g;g--)for(u=t.bl_count[g];0!==u;)c=t.heap[--h],!(c>i)&&(n[2*c+1]!==g&&(t.opt_len+=(g-n[2*c+1])*n[2*c],n[2*c+1]=g),u--)}},Ckt=(t,e,n)=>{const i=new Array(WRt+1);let r,o,s=0;for(r=1;r<=WRt;r++)s=s+n[r-1]<<1,i[r]=s;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=xkt(i[e]++,e))}},Ekt=()=>{let t,e,n,i,r;const o=new Array(WRt+1);for(n=0,i=0;i>=7;i{let e;for(e=0;e{t.bi_valid>8?ykt(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Bkt=(t,e,n,i)=>{const r=2*e,o=2*n;return t[r]{const i=t.heap[n];let r=n<<1;for(;r<=t.heap_len&&(r{let i,r,o,s,a=0;if(0!==t.sym_next)do{i=255&t.pending_buf[t.sym_buf+a++],i+=(255&t.pending_buf[t.sym_buf+a++])<<8,r=t.pending_buf[t.sym_buf+a++],0===i?_kt(t,r,e):(o=hkt[r],_kt(t,o+URt+1,e),s=ekt[o],0!==s&&(r-=ukt[o],vkt(t,r,s)),i--,o=mkt(i),_kt(t,o,n),s=nkt[o],0!==s&&(i-=ckt[o],vkt(t,i,s)))}while(a{const n=e.dyn_tree,i=e.stat_desc.static_tree,r=e.stat_desc.has_stree,o=e.stat_desc.elems;let s,a,l,h=-1;for(t.heap_len=0,t.heap_max=YRt,s=0;s>1;s>=1;s--)Mkt(t,n,s);l=o;do{s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Mkt(t,n,1),a=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=a,n[2*l]=n[2*s]+n[2*a],t.depth[l]=(t.depth[s]>=t.depth[a]?t.depth[s]:t.depth[a])+1,n[2*s+1]=n[2*a+1]=l,t.heap[1]=l++,Mkt(t,n,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],wkt(t,e),Ckt(n,h,t.bl_count)},Rkt=(t,e,n)=>{let i,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=s,s=e[2*(i+1)+1],!(++a{let i,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),i=0;i<=n;i++)if(r=s,s=e[2*(i+1)+1],!(++a{let e;for(Rkt(t,t.dyn_ltree,t.l_desc.max_code),Rkt(t,t.dyn_dtree,t.d_desc.max_code),Dkt(t,t.bl_desc),e=HRt-1;e>=3&&0===t.bl_tree[2*rkt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},Pkt=(t,e,n,i)=>{let r;for(vkt(t,e-257,5),vkt(t,n-1,5),vkt(t,i-4,4),r=0;r{let e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return kRt;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return LRt;for(e=32;e{zkt||(Ekt(),zkt=!0),t.l_desc=new pkt(t.dyn_ltree,dkt),t.d_desc=new pkt(t.dyn_dtree,fkt),t.bl_desc=new pkt(t.bl_tree,Akt),t.bi_buf=0,t.bi_valid=0,bkt(t)},Okt=(t,e,n,i)=>{vkt(t,(zRt<<1)+(i?1:0),3),Skt(t),ykt(t,n),ykt(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},Nkt=t=>{vkt(t,FRt<<1,3),_kt(t,KRt,skt),Ikt(t)},Gkt=(t,e,n,i)=>{let r,o,s=0;t.level>0?(t.strm.data_type===PRt&&(t.strm.data_type=Qkt(t)),Dkt(t,t.l_desc),Dkt(t,t.d_desc),s=Lkt(t),r=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=r&&(r=o)):r=o=n+5,n+4<=r&&-1!==e?Okt(t,e,n,i):t.strategy===RRt||o===r?(vkt(t,(FRt<<1)+(i?1:0),3),Tkt(t,skt,akt)):(vkt(t,(ORt<<1)+(i?1:0),3),Pkt(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),Tkt(t,t.dyn_ltree,t.dyn_dtree)),bkt(t),i&&Skt(t)},jkt=(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(hkt[n]+URt+1)]++,t.dyn_dtree[2*mkt(e)]++),t.sym_next===t.sym_end);var Ukt=Fkt,qkt=Okt,Vkt=Gkt,Hkt=jkt,Ykt=Nkt,Wkt={_tr_init:Ukt,_tr_stored_block:qkt,_tr_flush_block:Vkt,_tr_tally:Hkt,_tr_align:Ykt},Xkt=(t,e,n,i)=>{let r=65535&t|0,o=t>>>16&65535|0,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{r=r+e[i++]|0,o=o+r|0}while(--s);r%=65521,o%=65521}return r|o<<16|0};const Zkt=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e},Kkt=new Uint32Array(Zkt());var Jkt=(t,e,n,i)=>{const r=Kkt,o=i+n;t^=-1;for(let s=i;s>>8^r[255&(t^e[s])];return-1^t},$kt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},tLt={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:eLt,_tr_stored_block:nLt,_tr_flush_block:iLt,_tr_tally:rLt,_tr_align:oLt}=Wkt,{Z_NO_FLUSH:sLt,Z_PARTIAL_FLUSH:aLt,Z_FULL_FLUSH:lLt,Z_FINISH:hLt,Z_BLOCK:uLt,Z_OK:cLt,Z_STREAM_END:gLt,Z_STREAM_ERROR:dLt,Z_DATA_ERROR:fLt,Z_BUF_ERROR:ALt,Z_DEFAULT_COMPRESSION:pLt,Z_FILTERED:mLt,Z_HUFFMAN_ONLY:yLt,Z_RLE:vLt,Z_FIXED:_Lt,Z_DEFAULT_STRATEGY:xLt,Z_UNKNOWN:ILt,Z_DEFLATED:wLt}=tLt,CLt=9,ELt=15,bLt=8,SLt=29,BLt=257+SLt,MLt=30,TLt=19,DLt=2*BLt+1,RLt=15,kLt=3,LLt=258,PLt=LLt+kLt+1,QLt=32,zLt=42,FLt=57,OLt=69,NLt=73,GLt=91,jLt=103,ULt=113,qLt=666,VLt=1,HLt=2,YLt=3,WLt=4,XLt=3,ZLt=(t,e)=>(t.msg=$kt[e],e),KLt=t=>2*t-(t>4?9:0),JLt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},$Lt=t=>{let e,n,i,r=t.w_size;e=t.hash_size,i=e;do{n=t.head[--i],t.head[i]=n>=r?n-r:0}while(--e);e=r,i=e;do{n=t.prev[--i],t.prev[i]=n>=r?n-r:0}while(--e)};let tPt=(t,e,n)=>(e<{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},nPt=(t,e)=>{iLt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ePt(t.strm)},iPt=(t,e)=>{t.pending_buf[t.pending++]=e},rPt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},oPt=(t,e,n,i)=>{let r=t.avail_in;return r>i&&(r=i),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),n),1===t.state.wrap?t.adler=Xkt(t.adler,e,r,n):2===t.state.wrap&&(t.adler=Jkt(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)},sPt=(t,e)=>{let n,i,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match;const l=t.strstart>t.w_size-PLt?t.strstart-(t.w_size-PLt):0,h=t.window,u=t.w_mask,c=t.prev,g=t.strstart+LLt;let d=h[o+s-1],f=h[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(n=e,h[n+s]===f&&h[n+s-1]===d&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&os){if(t.match_start=e,s=i,i>=a)break;d=h[o+s-1],f=h[o+s]}}}while((e=c[e&u])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},aPt=t=>{const e=t.w_size;let n,i,r;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-PLt)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),$Lt(t),i+=e),0===t.strm.avail_in)break;if(n=oPt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=kLt)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=tPt(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=tPt(t,t.ins_h,t.window[r+kLt-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert{let n,i,r,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,s=0,a=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(n=i+t.strm.avail_in),n>r&&(n=r),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,ePt(t.strm),i&&(i>n&&(i=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,n-=i),n&&(oPt(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===s);return a-=t.strm.avail_in,a&&(a>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=a&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-a,t.strm.next_in),t.strstart),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.block_start=t.strstart),t.high_waterr&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(oPt(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,o=r>t.w_size?t.w_size:r,i=t.strstart-t.block_start,(i>=o||(i||e===hLt)&&e!==sLt&&0===t.strm.avail_in&&i<=r)&&(n=i>r?r:i,s=e===hLt&&0===t.strm.avail_in&&n===i?1:0,nLt(t,t.block_start,n,s),t.block_start+=n,ePt(t.strm)),s?YLt:VLt)},hPt=(t,e)=>{let n,i;for(;;){if(t.lookahead=kLt&&(t.ins_h=tPt(t,t.ins_h,t.window[t.strstart+kLt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-PLt&&(t.match_length=sPt(t,n)),t.match_length>=kLt)if(i=rLt(t,t.strstart-t.match_start,t.match_length-kLt),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=kLt){t.match_length--;do{t.strstart++,t.ins_h=tPt(t,t.ins_h,t.window[t.strstart+kLt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=tPt(t,t.ins_h,t.window[t.strstart+1]);else i=rLt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(nPt(t,!1),0===t.strm.avail_out))return VLt}return t.insert=t.strstart{let n,i,r;for(;;){if(t.lookahead=kLt&&(t.ins_h=tPt(t,t.ins_h,t.window[t.strstart+kLt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=kLt-1,0!==n&&t.prev_length4096)&&(t.match_length=kLt-1)),t.prev_length>=kLt&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-kLt,i=rLt(t,t.strstart-1-t.prev_match,t.prev_length-kLt),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=tPt(t,t.ins_h,t.window[t.strstart+kLt-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=kLt-1,t.strstart++,i&&(nPt(t,!1),0===t.strm.avail_out))return VLt}else if(t.match_available){if(i=rLt(t,0,t.window[t.strstart-1]),i&&nPt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return VLt}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=rLt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let n,i,r,o;const s=t.window;for(;;){if(t.lookahead<=LLt){if(aPt(t),t.lookahead<=LLt&&e===sLt)return VLt;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=kLt&&t.strstart>0&&(r=t.strstart-1,i=s[r],i===s[++r]&&i===s[++r]&&i===s[++r])){o=t.strstart+LLt;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=kLt?(n=rLt(t,1,t.match_length-kLt),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=rLt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(nPt(t,!1),0===t.strm.avail_out))return VLt}return t.insert=0,e===hLt?(nPt(t,!0),0===t.strm.avail_out?YLt:WLt):t.sym_next&&(nPt(t,!1),0===t.strm.avail_out)?VLt:HLt},gPt=(t,e)=>{let n;for(;;){if(0===t.lookahead&&(aPt(t),0===t.lookahead)){if(e===sLt)return VLt;break}if(t.match_length=0,n=rLt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(nPt(t,!1),0===t.strm.avail_out))return VLt}return t.insert=0,e===hLt?(nPt(t,!0),0===t.strm.avail_out?YLt:WLt):t.sym_next&&(nPt(t,!1),0===t.strm.avail_out)?VLt:HLt};function dPt(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}const fPt=[new dPt(0,0,0,0,lPt),new dPt(4,4,8,4,hPt),new dPt(4,5,16,8,hPt),new dPt(4,6,32,32,hPt),new dPt(4,4,16,16,uPt),new dPt(8,16,32,32,uPt),new dPt(8,16,128,128,uPt),new dPt(8,32,128,256,uPt),new dPt(32,128,258,1024,uPt),new dPt(32,258,258,4096,uPt)],APt=t=>{t.window_size=2*t.w_size,JLt(t.head),t.max_lazy_match=fPt[t.level].max_lazy,t.good_match=fPt[t.level].good_length,t.nice_match=fPt[t.level].nice_length,t.max_chain_length=fPt[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=kLt-1,t.match_available=0,t.ins_h=0};function pPt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=wLt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*DLt),this.dyn_dtree=new Uint16Array(2*(2*MLt+1)),this.bl_tree=new Uint16Array(2*(2*TLt+1)),JLt(this.dyn_ltree),JLt(this.dyn_dtree),JLt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(RLt+1),this.heap=new Uint16Array(2*BLt+1),JLt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*BLt+1),JLt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const mPt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==zLt&&e.status!==FLt&&e.status!==OLt&&e.status!==NLt&&e.status!==GLt&&e.status!==jLt&&e.status!==ULt&&e.status!==qLt?1:0},yPt=t=>{if(mPt(t))return ZLt(t,dLt);t.total_in=t.total_out=0,t.data_type=ILt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?FLt:e.wrap?zLt:ULt,t.adler=2===e.wrap?0:1,e.last_flush=-2,eLt(e),cLt},vPt=t=>{const e=yPt(t);return e===cLt&&APt(t.state),e},_Pt=(t,e)=>mPt(t)||2!==t.state.wrap?dLt:(t.state.gzhead=e,cLt),xPt=(t,e,n,i,r,o)=>{if(!t)return dLt;let s=1;if(e===pLt&&(e=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),r<1||r>CLt||n!==wLt||i<8||i>15||e<0||e>9||o<0||o>_Lt||8===i&&1!==s)return ZLt(t,dLt);8===i&&(i=9);const a=new pPt;return t.state=a,a.strm=t,a.status=zLt,a.wrap=s,a.gzhead=null,a.w_bits=i,a.w_size=1<xPt(t,e,wLt,ELt,bLt,xLt),wPt=(t,e)=>{if(mPt(t)||e>uLt||e<0)return t?ZLt(t,dLt):dLt;const n=t.state;if(!t.output||0!==t.avail_in&&!t.input||n.status===qLt&&e!==hLt)return ZLt(t,0===t.avail_out?ALt:dLt);const i=n.last_flush;if(n.last_flush=e,0!==n.pending){if(ePt(t),0===t.avail_out)return n.last_flush=-1,cLt}else if(0===t.avail_in&&KLt(e)<=KLt(i)&&e!==hLt)return ZLt(t,ALt);if(n.status===qLt&&0!==t.avail_in)return ZLt(t,ALt);if(n.status===zLt&&0===n.wrap&&(n.status=ULt),n.status===zLt){let e=wLt+(n.w_bits-8<<4)<<8,i=-1;if(i=n.strategy>=yLt||n.level<2?0:n.level<6?1:6===n.level?2:3,e|=i<<6,0!==n.strstart&&(e|=QLt),e+=31-e%31,rPt(n,e),0!==n.strstart&&(rPt(n,t.adler>>>16),rPt(n,65535&t.adler)),t.adler=1,n.status=ULt,ePt(t),0!==n.pending)return n.last_flush=-1,cLt}if(n.status===FLt)if(t.adler=0,iPt(n,31),iPt(n,139),iPt(n,8),n.gzhead)iPt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),iPt(n,255&n.gzhead.time),iPt(n,n.gzhead.time>>8&255),iPt(n,n.gzhead.time>>16&255),iPt(n,n.gzhead.time>>24&255),iPt(n,9===n.level?2:n.strategy>=yLt||n.level<2?4:0),iPt(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(iPt(n,255&n.gzhead.extra.length),iPt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=Jkt(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=OLt;else if(iPt(n,0),iPt(n,0),iPt(n,0),iPt(n,0),iPt(n,0),iPt(n,9===n.level?2:n.strategy>=yLt||n.level<2?4:0),iPt(n,XLt),n.status=ULt,ePt(t),0!==n.pending)return n.last_flush=-1,cLt;if(n.status===OLt){if(n.gzhead.extra){let e=n.pending,i=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+i>n.pending_buf_size;){let r=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>e&&(t.adler=Jkt(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex+=r,ePt(t),0!==n.pending)return n.last_flush=-1,cLt;e=0,i-=r}let r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending+=i,n.gzhead.hcrc&&n.pending>e&&(t.adler=Jkt(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex=0}n.status=NLt}if(n.status===NLt){if(n.gzhead.name){let e,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(t.adler=Jkt(t.adler,n.pending_buf,n.pending-i,i)),ePt(t),0!==n.pending)return n.last_flush=-1,cLt;i=0}e=n.gzindexi&&(t.adler=Jkt(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=GLt}if(n.status===GLt){if(n.gzhead.comment){let e,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(t.adler=Jkt(t.adler,n.pending_buf,n.pending-i,i)),ePt(t),0!==n.pending)return n.last_flush=-1,cLt;i=0}e=n.gzindexi&&(t.adler=Jkt(t.adler,n.pending_buf,n.pending-i,i))}n.status=jLt}if(n.status===jLt){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(ePt(t),0!==n.pending))return n.last_flush=-1,cLt;iPt(n,255&t.adler),iPt(n,t.adler>>8&255),t.adler=0}if(n.status=ULt,ePt(t),0!==n.pending)return n.last_flush=-1,cLt}if(0!==t.avail_in||0!==n.lookahead||e!==sLt&&n.status!==qLt){let i=0===n.level?lPt(n,e):n.strategy===yLt?gPt(n,e):n.strategy===vLt?cPt(n,e):fPt[n.level].func(n,e);if((i===YLt||i===WLt)&&(n.status=qLt),i===VLt||i===YLt)return 0===t.avail_out&&(n.last_flush=-1),cLt;if(i===HLt&&(e===aLt?oLt(n):e!==uLt&&(nLt(n,0,0,!1),e===lLt&&(JLt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),ePt(t),0===t.avail_out))return n.last_flush=-1,cLt}return e!==hLt?cLt:n.wrap<=0?gLt:(2===n.wrap?(iPt(n,255&t.adler),iPt(n,t.adler>>8&255),iPt(n,t.adler>>16&255),iPt(n,t.adler>>24&255),iPt(n,255&t.total_in),iPt(n,t.total_in>>8&255),iPt(n,t.total_in>>16&255),iPt(n,t.total_in>>24&255)):(rPt(n,t.adler>>>16),rPt(n,65535&t.adler)),ePt(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?cLt:gLt)},CPt=t=>{if(mPt(t))return dLt;const e=t.state.status;return t.state=null,e===ULt?ZLt(t,fLt):cLt},EPt=(t,e)=>{let n=e.length;if(mPt(t))return dLt;const i=t.state,r=i.wrap;if(2===r||1===r&&i.status!==zLt||i.lookahead)return dLt;if(1===r&&(t.adler=Xkt(t.adler,e,n,0)),i.wrap=0,n>=i.w_size){0===r&&(JLt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(n-i.w_size,n),0),e=t,n=i.w_size}const o=t.avail_in,s=t.next_in,a=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,aPt(i);i.lookahead>=kLt;){let t=i.strstart,e=i.lookahead-(kLt-1);do{i.ins_h=tPt(i,i.ins_h,i.window[t+kLt-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=kLt-1,aPt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=kLt-1,i.match_available=0,t.next_in=s,t.input=a,t.avail_in=o,i.wrap=r,cLt};var bPt=IPt,SPt=xPt,BPt=vPt,MPt=yPt,TPt=_Pt,DPt=wPt,RPt=CPt,kPt=EPt,LPt="pako deflate (from Nodeca project)",PPt={deflateInit:bPt,deflateInit2:SPt,deflateReset:BPt,deflateResetKeep:MPt,deflateSetHeader:TPt,deflate:DPt,deflateEnd:RPt,deflateSetDictionary:kPt,deflateInfo:LPt};const QPt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var zPt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const e in n)QPt(n,e)&&(t[e]=n[e])}}return t},FPt=t=>{let e=0;for(let i=0,r=t.length;i=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;GPt[254]=GPt[254]=1;var jPt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,i,r,o,s=t.length,a=0;for(r=0;r>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e};const UPt=(t,e)=>{if(e<65534&&t.subarray&&NPt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let i=0;i{const n=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,r;const o=new Array(2*n);for(r=0,i=0;i4)o[r++]=65533,i+=s-1;else{for(e&=2===s?31:3===s?15:7;s>1&&i1?o[r++]=65533:e<65536?o[r++]=e:(e-=65536,o[r++]=55296|e>>10&1023,o[r++]=56320|1023&e)}}return UPt(o,r)},VPt=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&128===(192&t[n]);)n--;return n<0||0===n?e:n+GPt[t[n]]>e?n:e},HPt={string2buf:jPt,buf2string:qPt,utf8border:VPt};function YPt(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var WPt=YPt;const XPt=Object.prototype.toString,{Z_NO_FLUSH:ZPt,Z_SYNC_FLUSH:KPt,Z_FULL_FLUSH:JPt,Z_FINISH:$Pt,Z_OK:tQt,Z_STREAM_END:eQt,Z_DEFAULT_COMPRESSION:nQt,Z_DEFAULT_STRATEGY:iQt,Z_DEFLATED:rQt}=tLt;function oQt(t){this.options=OPt.assign({level:nQt,method:rQt,chunkSize:16384,windowBits:15,memLevel:8,strategy:iQt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new WPt,this.strm.avail_out=0;let n=PPt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==tQt)throw new Error($kt[n]);if(e.header&&PPt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?HPt.string2buf(e.dictionary):"[object ArrayBuffer]"===XPt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=PPt.deflateSetDictionary(this.strm,t),n!==tQt)throw new Error($kt[n]);this._dict_set=!0}}oQt.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize;let r,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?$Pt:ZPt,"string"==typeof t?n.input=HPt.string2buf(t):"[object ArrayBuffer]"===XPt.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(o===KPt||o===JPt)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(r=PPt.deflate(n,o),r===eQt)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=PPt.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===tQt;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},oQt.prototype.onData=function(t){this.chunks.push(t)},oQt.prototype.onEnd=function(t){t===tQt&&(this.result=OPt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const sQt=16209,aQt=16191;var lQt=function(t,e){let n,i,r,o,s,a,l,h,u,c,g,d,f,A,p,m,y,v,_,x,I,w,C,E;const b=t.state;n=t.next_in,C=t.input,i=n+(t.avail_in-5),r=t.next_out,E=t.output,o=r-(e-t.avail_out),s=r+(t.avail_out-257),a=b.dmax,l=b.wsize,h=b.whave,u=b.wnext,c=b.window,g=b.hold,d=b.bits,f=b.lencode,A=b.distcode,p=(1<>>24,g>>>=v,d-=v,v=y>>>16&255,0===v)E[r++]=65535&y;else{if(!(16&v)){if(0===(64&v)){y=f[(65535&y)+(g&(1<>>=v,d-=v),d<15&&(g+=C[n++]<>>24,g>>>=v,d-=v,v=y>>>16&255,!(16&v)){if(0===(64&v)){y=A[(65535&y)+(g&(1<a){t.msg="invalid distance too far back",b.mode=sQt;break t}if(g>>>=v,d-=v,v=r-o,x>v){if(v=x-v,v>h&&b.sane){t.msg="invalid distance too far back",b.mode=sQt;break t}if(I=0,w=c,0===u){if(I+=l-v,v<_){_-=v;do{E[r++]=c[I++]}while(--v);I=r-x,w=E}}else if(u2;)E[r++]=w[I++],E[r++]=w[I++],E[r++]=w[I++],_-=3;_&&(E[r++]=w[I++],_>1&&(E[r++]=w[I++]))}else{I=r-x;do{E[r++]=E[I++],E[r++]=E[I++],E[r++]=E[I++],_-=3}while(_>2);_&&(E[r++]=E[I++],_>1&&(E[r++]=E[I++]))}break}}break}}while(n>3,n-=_,d-=_<<3,g&=(1<{const l=a.bits;let h,u,c,g,d,f,A=0,p=0,m=0,y=0,v=0,_=0,x=0,I=0,w=0,C=0,E=null;const b=new Uint16Array(hQt+1),S=new Uint16Array(hQt+1);let B,M,T,D=null;for(A=0;A<=hQt;A++)b[A]=0;for(p=0;p=1&&0===b[y];y--);if(v>y&&(v=y),0===y)return r[o++]=20971520,r[o++]=20971520,a.bits=1,0;for(m=1;m0&&(t===gQt||1!==y))return-1;for(S[1]=0,A=1;AuQt||t===fQt&&w>cQt)return 1;for(;;){B=A-x,s[p]+1=f?(M=D[s[p]-f],T=E[s[p]-f]):(M=96,T=0),h=1<>x)+u]=B<<24|M<<16|T|0}while(0!==u);for(h=1<>=1;if(0!==h?(C&=h-1,C+=h):C=0,p++,0===--b[A]){if(A===y)break;A=e[n+s[p]]}if(A>v&&(C&g)!==c){for(0===x&&(x=v),d+=m,_=A-x,I=1<<_;_+xuQt||t===fQt&&w>cQt)return 1;c=C&g,r[c]=v<<24|_<<16|d-o|0}}return 0!==C&&(r[d+C]=A-x<<24|64<<16|0),a.bits=v,0};const _Qt=0,xQt=1,IQt=2,{Z_FINISH:wQt,Z_BLOCK:CQt,Z_TREES:EQt,Z_OK:bQt,Z_STREAM_END:SQt,Z_NEED_DICT:BQt,Z_STREAM_ERROR:MQt,Z_DATA_ERROR:TQt,Z_MEM_ERROR:DQt,Z_BUF_ERROR:RQt,Z_DEFLATED:kQt}=tLt,LQt=16180,PQt=16181,QQt=16182,zQt=16183,FQt=16184,OQt=16185,NQt=16186,GQt=16187,jQt=16188,UQt=16189,qQt=16190,VQt=16191,HQt=16192,YQt=16193,WQt=16194,XQt=16195,ZQt=16196,KQt=16197,JQt=16198,$Qt=16199,tzt=16200,ezt=16201,nzt=16202,izt=16203,rzt=16204,ozt=16205,szt=16206,azt=16207,lzt=16208,hzt=16209,uzt=16210,czt=16211,gzt=852,dzt=592,fzt=15,Azt=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function pzt(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const mzt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.modeczt?1:0},yzt=t=>{if(mzt(t))return MQt;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=LQt,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(gzt),e.distcode=e.distdyn=new Int32Array(dzt),e.sane=1,e.back=-1,bQt},vzt=t=>{if(mzt(t))return MQt;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,yzt(t)},_zt=(t,e)=>{let n;if(mzt(t))return MQt;const i=t.state;return e<0?(n=0,e=-e):(n=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?MQt:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,vzt(t))},xzt=(t,e)=>{if(!t)return MQt;const n=new pzt;t.state=n,n.strm=t,n.window=null,n.mode=LQt;const i=_zt(t,e);return i!==bQt&&(t.state=null),i},Izt=t=>xzt(t,fzt);let wzt,Czt,Ezt=!0;const bzt=t=>{if(Ezt){wzt=new Int32Array(512),Czt=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(vQt(xQt,t.lens,0,288,wzt,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;vQt(IQt,t.lens,0,32,Czt,0,t.work,{bits:5}),Ezt=!1}t.lencode=wzt,t.lenbits=9,t.distcode=Czt,t.distbits=5},Szt=(t,e,n,i)=>{let r;const o=t.state;return null===o.window&&(o.wsize=1<=o.wsize?(o.window.set(e.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(r=o.wsize-o.wnext,r>i&&(r=i),o.window.set(e.subarray(n-i,n-i+r),o.wnext),i-=r,i?(o.window.set(e.subarray(n-i,n),0),o.wnext=i,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,i,r,o,s,a,l,h,u,c,g,d,f,A,p,m,y,v,_,x,I,w,C=0;const E=new Uint8Array(4);let b,S;const B=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(mzt(t)||!t.output||!t.input&&0!==t.avail_in)return MQt;n=t.state,n.mode===VQt&&(n.mode=HQt),s=t.next_out,r=t.output,l=t.avail_out,o=t.next_in,i=t.input,a=t.avail_in,h=n.hold,u=n.bits,c=a,g=l,w=bQt;t:for(;;)switch(n.mode){case LQt:if(0===n.wrap){n.mode=HQt;break}for(;u<16;){if(0===a)break t;a--,h+=i[o++]<>>8&255,n.check=Jkt(n.check,E,2,0),h=0,u=0,n.mode=PQt;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",n.mode=hzt;break}if((15&h)!==kQt){t.msg="unknown compression method",n.mode=hzt;break}if(h>>>=4,u-=4,I=8+(15&h),0===n.wbits&&(n.wbits=I),I>15||I>n.wbits){t.msg="invalid window size",n.mode=hzt;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(E[0]=255&h,E[1]=h>>>8&255,n.check=Jkt(n.check,E,2,0)),h=0,u=0,n.mode=QQt;case QQt:for(;u<32;){if(0===a)break t;a--,h+=i[o++]<>>8&255,E[2]=h>>>16&255,E[3]=h>>>24&255,n.check=Jkt(n.check,E,4,0)),h=0,u=0,n.mode=zQt;case zQt:for(;u<16;){if(0===a)break t;a--,h+=i[o++]<>8),512&n.flags&&4&n.wrap&&(E[0]=255&h,E[1]=h>>>8&255,n.check=Jkt(n.check,E,2,0)),h=0,u=0,n.mode=FQt;case FQt:if(1024&n.flags){for(;u<16;){if(0===a)break t;a--,h+=i[o++]<>>8&255,n.check=Jkt(n.check,E,2,0)),h=0,u=0}else n.head&&(n.head.extra=null);n.mode=OQt;case OQt:if(1024&n.flags&&(d=n.length,d>a&&(d=a),d&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(o,o+d),I)),512&n.flags&&4&n.wrap&&(n.check=Jkt(n.check,i,d,o)),a-=d,o+=d,n.length-=d),n.length))break t;n.length=0,n.mode=NQt;case NQt:if(2048&n.flags){if(0===a)break t;d=0;do{I=i[o+d++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I))}while(I&&d>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=VQt;break;case UQt:for(;u<32;){if(0===a)break t;a--,h+=i[o++]<>>=7&u,u-=7&u,n.mode=szt;break}for(;u<3;){if(0===a)break t;a--,h+=i[o++]<>>=1,u-=1,3&h){case 0:n.mode=YQt;break;case 1:if(bzt(n),n.mode=$Qt,e===EQt){h>>>=2,u-=2;break t}break;case 2:n.mode=ZQt;break;case 3:t.msg="invalid block type",n.mode=hzt}h>>>=2,u-=2;break;case YQt:for(h>>>=7&u,u-=7&u;u<32;){if(0===a)break t;a--,h+=i[o++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=hzt;break}if(n.length=65535&h,h=0,u=0,n.mode=WQt,e===EQt)break t;case WQt:n.mode=XQt;case XQt:if(d=n.length,d){if(d>a&&(d=a),d>l&&(d=l),0===d)break t;r.set(i.subarray(o,o+d),s),a-=d,o+=d,l-=d,s+=d,n.length-=d;break}n.mode=VQt;break;case ZQt:for(;u<14;){if(0===a)break t;a--,h+=i[o++]<>>=5,u-=5,n.ndist=1+(31&h),h>>>=5,u-=5,n.ncode=4+(15&h),h>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=hzt;break}n.have=0,n.mode=KQt;case KQt:for(;n.have>>=3,u-=3}for(;n.have<19;)n.lens[B[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,b={bits:n.lenbits},w=vQt(_Qt,n.lens,0,19,n.lencode,0,n.work,b),n.lenbits=b.bits,w){t.msg="invalid code lengths set",n.mode=hzt;break}n.have=0,n.mode=JQt;case JQt:for(;n.have>>24,m=C>>>16&255,y=65535&C,!(p<=u);){if(0===a)break t;a--,h+=i[o++]<>>=p,u-=p,n.lens[n.have++]=y;else{if(16===y){for(S=p+2;u>>=p,u-=p,0===n.have){t.msg="invalid bit length repeat",n.mode=hzt;break}I=n.lens[n.have-1],d=3+(3&h),h>>>=2,u-=2}else if(17===y){for(S=p+3;u>>=p,u-=p,I=0,d=3+(7&h),h>>>=3,u-=3}else{for(S=p+7;u>>=p,u-=p,I=0,d=11+(127&h),h>>>=7,u-=7}if(n.have+d>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=hzt;break}for(;d--;)n.lens[n.have++]=I}}if(n.mode===hzt)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=hzt;break}if(n.lenbits=9,b={bits:n.lenbits},w=vQt(xQt,n.lens,0,n.nlen,n.lencode,0,n.work,b),n.lenbits=b.bits,w){t.msg="invalid literal/lengths set",n.mode=hzt;break}if(n.distbits=6,n.distcode=n.distdyn,b={bits:n.distbits},w=vQt(IQt,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,b),n.distbits=b.bits,w){t.msg="invalid distances set",n.mode=hzt;break}if(n.mode=$Qt,e===EQt)break t;case $Qt:n.mode=tzt;case tzt:if(a>=6&&l>=258){t.next_out=s,t.avail_out=l,t.next_in=o,t.avail_in=a,n.hold=h,n.bits=u,lQt(t,g),s=t.next_out,r=t.output,l=t.avail_out,o=t.next_in,i=t.input,a=t.avail_in,h=n.hold,u=n.bits,n.mode===VQt&&(n.back=-1);break}for(n.back=0;C=n.lencode[h&(1<>>24,m=C>>>16&255,y=65535&C,!(p<=u);){if(0===a)break t;a--,h+=i[o++]<>v)],p=C>>>24,m=C>>>16&255,y=65535&C,!(v+p<=u);){if(0===a)break t;a--,h+=i[o++]<>>=v,u-=v,n.back+=v}if(h>>>=p,u-=p,n.back+=p,n.length=y,0===m){n.mode=ozt;break}if(32&m){n.back=-1,n.mode=VQt;break}if(64&m){t.msg="invalid literal/length code",n.mode=hzt;break}n.extra=15&m,n.mode=ezt;case ezt:if(n.extra){for(S=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=nzt;case nzt:for(;C=n.distcode[h&(1<>>24,m=C>>>16&255,y=65535&C,!(p<=u);){if(0===a)break t;a--,h+=i[o++]<>v)],p=C>>>24,m=C>>>16&255,y=65535&C,!(v+p<=u);){if(0===a)break t;a--,h+=i[o++]<>>=v,u-=v,n.back+=v}if(h>>>=p,u-=p,n.back+=p,64&m){t.msg="invalid distance code",n.mode=hzt;break}n.offset=y,n.extra=15&m,n.mode=izt;case izt:if(n.extra){for(S=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=hzt;break}n.mode=rzt;case rzt:if(0===l)break t;if(d=g-l,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=hzt;break}d>n.wnext?(d-=n.wnext,f=n.wsize-d):f=n.wnext-d,d>n.length&&(d=n.length),A=n.window}else A=r,f=s-n.offset,d=n.length;d>l&&(d=l),l-=d,n.length-=d;do{r[s++]=A[f++]}while(--d);0===n.length&&(n.mode=tzt);break;case ozt:if(0===l)break t;r[s++]=n.length,l--,n.mode=tzt;break;case szt:if(n.wrap){for(;u<32;){if(0===a)break t;a--,h|=i[o++]<{if(mzt(t))return MQt;let e=t.state;return e.window&&(e.window=null),t.state=null,bQt},Tzt=(t,e)=>{if(mzt(t))return MQt;const n=t.state;return 0===(2&n.wrap)?MQt:(n.head=e,e.done=!1,bQt)},Dzt=(t,e)=>{const n=e.length;let i,r,o;return mzt(t)||(i=t.state,0!==i.wrap&&i.mode!==qQt)?MQt:i.mode===qQt&&(r=1,r=Xkt(r,e,n,0),r!==i.check)?TQt:(o=Szt(t,e,n,n),o?(i.mode=uzt,DQt):(i.havedict=1,bQt))};var Rzt=vzt,kzt=_zt,Lzt=yzt,Pzt=Izt,Qzt=xzt,zzt=Bzt,Fzt=Mzt,Ozt=Tzt,Nzt=Dzt,Gzt="pako inflate (from Nodeca project)",jzt={inflateReset:Rzt,inflateReset2:kzt,inflateResetKeep:Lzt,inflateInit:Pzt,inflateInit2:Qzt,inflate:zzt,inflateEnd:Fzt,inflateGetHeader:Ozt,inflateSetDictionary:Nzt,inflateInfo:Gzt};function Uzt(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var qzt=Uzt;const Vzt=Object.prototype.toString,{Z_NO_FLUSH:Hzt,Z_FINISH:Yzt,Z_OK:Wzt,Z_STREAM_END:Xzt,Z_NEED_DICT:Zzt,Z_STREAM_ERROR:Kzt,Z_DATA_ERROR:Jzt,Z_MEM_ERROR:$zt}=tLt;function tFt(t){this.options=OPt.assign({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new WPt,this.strm.avail_out=0;let n=jzt.inflateInit2(this.strm,e.windowBits);if(n!==Wzt)throw new Error($kt[n]);if(this.header=new qzt,jzt.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=HPt.string2buf(e.dictionary):"[object ArrayBuffer]"===Vzt.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=jzt.inflateSetDictionary(this.strm,e.dictionary),n!==Wzt)))throw new Error($kt[n])}function eFt(t,e){const n=new tFt(e);if(n.push(t),n.err)throw n.msg||$kt[n.err];return n.result}function nFt(t,e){return e=e||{},e.raw=!0,eFt(t,e)}tFt.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Yzt:Hzt,"[object ArrayBuffer]"===Vzt.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),o=jzt.inflate(n,s),o===Zzt&&r&&(o=jzt.inflateSetDictionary(n,r),o===Wzt?o=jzt.inflate(n,s):o===Jzt&&(o=Zzt));n.avail_in>0&&o===Xzt&&n.state.wrap>0&&0!==t[n.next_in];)jzt.inflateReset(n),o=jzt.inflate(n,s);switch(o){case Kzt:case Jzt:case Zzt:case $zt:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||o===Xzt))if("string"===this.options.to){let t=HPt.utf8border(n.output,n.next_out),e=n.next_out-t,r=HPt.buf2string(n.output,t);n.next_out=e,n.avail_out=i-e,e&&n.output.set(n.output.subarray(t,t+e),0),this.onData(r)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==Wzt||0!==a){if(o===Xzt)return o=jzt.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},tFt.prototype.onData=function(t){this.chunks.push(t)},tFt.prototype.onEnd=function(t){t===Wzt&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=OPt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var iFt=tFt,rFt=eFt,oFt=nFt,sFt=eFt,aFt=tLt,lFt={Inflate:iFt,inflate:rFt,inflateRaw:oFt,ungzip:sFt,constants:aFt};const{Inflate:hFt,inflate:uFt,inflateRaw:cFt,ungzip:gFt}=lFt;var dFt=uFt;class fFt extends JM{decodeBlock(t){return dFt(new Uint8Array(t)).buffer}}const AFt=Object.freeze(Object.defineProperty({__proto__:null,default:fFt},Symbol.toStringTag,{value:"Module"}));class pFt extends JM{decodeBlock(t){const e=new DataView(t),n=[];for(let i=0;i>3],b<<=7&S),p=0;p>3]),128&b?(l&&(l[S]=1),s=M.encoding<2?w[C++]:E,A=A>s?s:A,a[S++]=s):(l&&(l[S]=0),a[S++]=i),b<<=1;S+=B}else if(M.encoding<2)for(m=0;m<_;m++){for(p=0;ps?s:A,a[S++]=s;S+=B}else for(A=A>E?E:A,m=0;m<_;m++){for(p=0;p0){var s=new Uint8Array(Math.ceil(i.width*i.height/8));o=new DataView(t,e,i.mask.numBytes);var a=o.getInt16(0,!0),l=2,h=0;do{if(a>0)for(;a--;)s[h++]=o.getUint8(l++);else{var u=o.getUint8(l++);for(a=-a;a--;)s[h++]=u}a=o.getInt16(l,!0),l+=2}while(l0?1:0),f=g+(i.height%g>0?1:0);i.pixels.blocks=new Array(d*f);for(var A=0,p=0;p3)throw"Invalid block encoding ("+_.encoding+")";if(2!==_.encoding){if(0!==x&&2!==x){if(x>>=6,_.offsetType=x,2===x)_.offset=o.getInt8(1),y++;else if(1===x)_.offset=o.getInt16(1,!0),y+=2;else{if(0!==x)throw"Invalid block offset type";_.offset=o.getFloat32(1,!0),y+=4}if(1===_.encoding)if(x=o.getUint8(y),y++,_.bitsPerPixel=63&x,x>>=6,_.numValidPixelsType=x,2===x)_.numValidPixels=o.getUint8(y),y++;else if(1===x)_.numValidPixels=o.getUint16(y,!0),y+=2;else{if(0!==x)throw"Invalid valid pixel count type";_.numValidPixels=o.getUint32(y,!0),y+=4}}var I,w;if(e+=y,3!==_.encoding)if(0===_.encoding){var C=(i.pixels.numBytes-1)/4;if(C!==Math.floor(C))throw"uncompressed block has invalid length";I=new ArrayBuffer(4*C),w=new Uint8Array(I),w.set(new Uint8Array(t,e,4*C));var E=new Float32Array(I);_.rawData=E,e+=4*C}else if(1===_.encoding){var b=Math.ceil(_.numValidPixels*_.bitsPerPixel/8),S=Math.ceil(b/4);I=new ArrayBuffer(4*S),w=new Uint8Array(I),w.set(new Uint8Array(t,e,b)),_.stuffedData=new Uint32Array(I),e+=b}}else e++}return i.eofOffset=e,i},o=function(t,e,n,i,r,o,s){var a,l,h,u=(1<=e)l=h>>>g-e&u,g-=e;else{var A=e-g;l=(h&u)<>>g}o[a]=l=n?(h=u>>>A-n&d,A-=n):(c=n-A,h=(u&d)<>>A),e[l]=r[h];else for(g=Math.ceil((a-o)/s),l=0;l=n?(h=u>>>A-n&d,A-=n):(c=n-A,h=(u&d)<>>A),e[l]=h=e?(g=s>>>c-e&a,c-=e):(u=e-c,g=(s&a)<>>c),d[h]=g=n?(h=u>>>A&g,f-=n,A+=n):(c=n-f,h=u>>>A&g,u=t[d++],f=32-c,h|=(u&(1<=n?(h=u>>>A&g,f-=n,A+=n):(c=n-f,h=u>>>A&g,u=t[d++],f=32-c,h|=(u&(1<=e?(g=s>>>d&a,c-=e,d+=e):(u=e-c,g=s>>>d&a,s=t[l++],c=32-u,g|=(s&(1<=n?(o=s>>>u-n&l,u-=n):(a=n-u,o=(s&l)<>>u),e[r]=o;return e},originalUnstuff2:function(t,e,n,i){var r,o,s,a,l=(1<=n?(o=s>>>c&l,u-=n,c+=n):(a=n-u,o=s>>>c&l,s=t[h++],u=32-a,o|=(s&(1<=359?359:r;r-=s;do{e+=t[o++]<<8,n+=e+=t[o++]}while(--s);e=(65535&e)+(e>>>16),n=(65535&n)+(n>>>16)}return 1&i&&(n+=e+=t[o]<<8),e=(65535&e)+(e>>>16),n=(65535&n)+(n>>>16),(n<<16|e)>>>0},readHeaderInfo:function(t,e){var n=e.ptr,i=new Uint8Array(t,n,6),r={};if(r.fileIdentifierString=String.fromCharCode.apply(null,i),0!==r.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+r.fileIdentifierString;n+=6;var o,s,a=new DataView(t,n,8),l=a.getInt32(0,!0);if(r.fileVersion=l,n+=4,l>=3&&(r.checksum=a.getUint32(4,!0),n+=4),a=new DataView(t,n,12),r.height=a.getUint32(0,!0),r.width=a.getUint32(4,!0),n+=8,l>=4?(r.numDims=a.getUint32(8,!0),n+=4):r.numDims=1,a=new DataView(t,n,40),r.numValidPixel=a.getUint32(0,!0),r.microBlockSize=a.getInt32(4,!0),r.blobSize=a.getInt32(8,!0),r.imageType=a.getInt32(12,!0),r.maxZError=a.getFloat64(16,!0),r.zMin=a.getFloat64(24,!0),r.zMax=a.getFloat64(32,!0),n+=40,e.headerInfo=r,e.ptr=n,l>=3&&(s=l>=4?52:48,o=this.computeChecksumFletcher32(new Uint8Array(t,n-s,r.blobSize-14)),o!==r.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(t,e){var n=e.headerInfo,i=this.getDataTypeArray(n.imageType),r=n.numDims*this.getDataTypeSize(n.imageType),o=this.readSubArray(t,e.ptr,i,r),s=this.readSubArray(t,e.ptr+r,i,r);e.ptr+=2*r;var a,l=!0;for(a=0;a0){n=new Uint8Array(Math.ceil(s/8)),l=new DataView(t,r,h.numBytes);var u=l.getInt16(0,!0),c=2,g=0,d=0;do{if(u>0)for(;u--;)n[g++]=l.getUint8(c++);else for(d=l.getUint8(c++),u=-u;u--;)n[g++]=d;u=l.getInt16(c,!0),c+=2}while(c>3],f<<=7&A):f=n[A>>3],128&f&&(i[A]=1);e.pixels.resultMask=i,h.bitset=n,r+=h.numBytes}return e.ptr=r,e.mask=h,!0},readDataOneSweep:function(t,n,i,r){var o,s=n.ptr,a=n.headerInfo,l=a.numDims,h=a.width*a.height,u=a.imageType,c=a.numValidPixel*e.getDataTypeSize(u)*l,g=n.pixels.resultMask;if(i===Uint8Array)o=new Uint8Array(t,s,c);else{var d=new ArrayBuffer(c),f=new Uint8Array(d);f.set(new Uint8Array(t,s,c)),o=new i(d)}if(o.length===h*l)n.pixels.resultPixels=r?e.swapDimensionOrder(o,h,l,i,!0):o;else{n.pixels.resultPixels=new i(h*l);var A=0,p=0,m=0,y=0;if(l>1){if(r){for(p=0;p=h)return!1;var u=new Uint32Array(h-l);e.decodeBits(t,i,u);var c,g,d,f,A=[];for(c=l;c0&&(A[g].second=_<>>32-f,32-I>=f?(I+=f,32===I&&(I=0,w++,_=x[w])):(I+=f-32,w++,_=x[w],A[g].second|=_>>>32-I));var C=0,E=0,b=new n;for(c=0;c=r?r:C;var S,B,M,T,D,R,k=[];for(c=l;c0)if(S=[f,g],f<=E)for(B=A[g].second<=0;T--)D=B>>>T&1,D?(R.right||(R.right=new n),R=R.right):(R.left||(R.left=new n),R=R.left),0===T&&!R.val&&(R.val=S[1]);return{decodeLut:k,numBitsLUTQick:E,numBitsLUT:C,tree:b,stuffedData:x,srcPtr:w,bitPos:I}},readHuffman:function(t,n,i,r){var o,s,a,l,h,u,c,g,d,f,A=n.headerInfo,p=A.numDims,m=n.headerInfo.height,y=n.headerInfo.width,v=y*m,_=this.readHuffmanTree(t,n),x=_.decodeLut,I=_.tree,w=_.stuffedData,C=_.srcPtr,E=_.bitPos,b=_.numBitsLUTQick,S=_.numBitsLUT,B=0===n.headerInfo.imageType?128:0,M=n.pixels.resultMask,T=0;E>0&&(C++,E=0);var D,R=w[C],k=1===n.encodeMode,L=new i(v*p),P=L;if(p<2||k){for(D=0;D1&&(P=new i(L.buffer,v*D,v),T=0),n.headerInfo.numValidPixel===y*m)for(d=0,c=0;c>>32-b,h=l,32-E>>64-E-b,h=l),x[h])s=x[h][1],E+=x[h][0];else for(l=R<>>32-S,h=l,32-E>>64-E-S,h=l),o=I,f=0;f>>S-f-1&1,o=u?o.right:o.left,!o.left&&!o.right){s=o.val,E=E+f+1;break}E>=32&&(E-=32,C++,R=w[C]),a=s-B,k?(a+=g>0?T:c>0?P[d-y]:T,a&=255,P[d]=a,T=a):P[d]=a}else for(d=0,c=0;c>>32-b,h=l,32-E>>64-E-b,h=l),x[h])s=x[h][1],E+=x[h][0];else for(l=R<>>32-S,h=l,32-E>>64-E-S,h=l),o=I,f=0;f>>S-f-1&1,o=u?o.right:o.left,!o.left&&!o.right){s=o.val,E=E+f+1;break}E>=32&&(E-=32,C++,R=w[C]),a=s-B,k?(g>0&&M[d-1]?a+=T:c>0&&M[d-y]?a+=P[d-y]:a+=T,a&=255,P[d]=a,T=a):P[d]=a}}else for(d=0,c=0;c>>32-b,h=l,32-E>>64-E-b,h=l),x[h])s=x[h][1],E+=x[h][0];else for(l=R<>>32-S,h=l,32-E>>64-E-S,h=l),o=I,f=0;f>>S-f-1&1,o=u?o.right:o.left,!o.left&&!o.right){s=o.val,E=E+f+1;break}E>=32&&(E-=32,C++,R=w[C]),a=s-B,P[d]=a}n.ptr=n.ptr+4*(C+1)+(E>0?4:0),n.pixels.resultPixels=L,p>1&&!r&&(n.pixels.resultPixels=e.swapDimensionOrder(L,v,p,i))},decodeBits:function(e,n,i,r,o){var s=n.headerInfo,a=s.fileVersion,l=0,h=e.byteLength-n.ptr>=5?5:e.byteLength-n.ptr,u=new DataView(e,n.ptr,h),c=u.getUint8(0);l++;var g=c>>6,d=0===g?4:3-g,f=(32&c)>0,A=31&c,p=0;if(1===d)p=u.getUint8(l),l++;else if(2===d)p=u.getUint16(l,!0),l+=2;else{if(4!==d)throw"Invalid valid pixel count type";p=u.getUint32(l,!0),l+=4}var m,y,v,_,x,I,w,C,E,b=2*s.maxZError,S=s.numDims>1?s.maxValues[o]:s.zMax;if(f){for(n.counter.lut++,C=u.getUint8(l),l++,_=Math.ceil((C-1)*A/8),x=Math.ceil(_/4),y=new ArrayBuffer(4*x),v=new Uint8Array(y),n.ptr+=l,v.set(new Uint8Array(e,n.ptr,_)),w=new Uint32Array(y),n.ptr+=_,E=0;C-1>>>E;)E++;_=Math.ceil(p*E/8),x=Math.ceil(_/4),y=new ArrayBuffer(4*x),v=new Uint8Array(y),v.set(new Uint8Array(e,n.ptr,_)),m=new Uint32Array(y),n.ptr+=_,I=a>=3?t.unstuffLUT2(w,A,C-1,r,b,S):t.unstuffLUT(w,A,C-1,r,b,S),a>=3?t.unstuff2(m,i,E,p,I):t.unstuff(m,i,E,p,I)}else n.counter.bitstuffer++,E=A,n.ptr+=l,E>0&&(_=Math.ceil(p*E/8),x=Math.ceil(_/4),y=new ArrayBuffer(4*x),v=new Uint8Array(y),v.set(new Uint8Array(e,n.ptr,_)),m=new Uint32Array(y),n.ptr+=_,a>=3?null==r?t.originalUnstuff2(m,i,E,p):t.unstuff2(m,i,E,p,!1,r,b,S):null==r?t.originalUnstuff(m,i,E,p):t.unstuff(m,i,E,p,!1,r,b,S))},readTiles:function(t,n,i,r){var o=n.headerInfo,s=o.width,a=o.height,l=s*a,h=o.microBlockSize,u=o.imageType,c=e.getDataTypeSize(u),g=Math.ceil(s/h),d=Math.ceil(a/h);n.pixels.numBlocksY=d,n.pixels.numBlocksX=g,n.pixels.ptr=0;var f,A,p,m,y,v,_,x,I,w,C,E=0,b=0,S=0,B=0,M=0,T=0,D=0,R=0,k=0,L=0,P=0,Q=0,z=0,F=0,O=0,N=0,G=new i(h*h),j=a%h||h,U=s%h||h,q=o.numDims,V=n.pixels.resultMask,H=n.pixels.resultPixels,Y=o.fileVersion,W=Y>=5?14:15,X=o.zMax;for(S=0;S1?(C=H,P=S*s*h+B*h,H=new i(n.pixels.resultPixels.buffer,l*I*c,l),X=o.maxValues[I]):C=null,D=t.byteLength-n.ptr,f=new DataView(t,n.ptr,Math.min(10,D)),A={},N=0,R=f.getUint8(0),N++,w=o.fileVersion>=5?4&R:0,k=R>>6&255,L=R>>2&W,L!==(B*h>>3&W)||w&&0===I)throw"integrity issue";if(v=3&R,v>3)throw n.ptr+=N,"Invalid block encoding ("+v+")";if(2!==v)if(0===v){if(w)throw"integrity issue";if(n.counter.uncompressed++,n.ptr+=N,z=M*T*c,F=t.byteLength-n.ptr,z=z1&&!r&&(n.pixels.resultPixels=e.swapDimensionOrder(n.pixels.resultPixels,l,q,i))},formatFileInfo:function(t){return{fileIdentifierString:t.headerInfo.fileIdentifierString,fileVersion:t.headerInfo.fileVersion,imageType:t.headerInfo.imageType,height:t.headerInfo.height,width:t.headerInfo.width,numValidPixel:t.headerInfo.numValidPixel,microBlockSize:t.headerInfo.microBlockSize,blobSize:t.headerInfo.blobSize,maxZError:t.headerInfo.maxZError,pixelType:e.getPixelType(t.headerInfo.imageType),eofOffset:t.eofOffset,mask:t.mask?{numBytes:t.mask.numBytes}:null,pixels:{numBlocksX:t.pixels.numBlocksX,numBlocksY:t.pixels.numBlocksY,maxValue:t.headerInfo.zMax,minValue:t.headerInfo.zMin,noDataValue:t.noDataValue}}},constructConstantSurface:function(t,e){var n=t.headerInfo.zMax,i=t.headerInfo.zMin,r=t.headerInfo.maxValues,o=t.headerInfo.numDims,s=t.headerInfo.height*t.headerInfo.width,a=0,l=0,h=0,u=t.pixels.resultMask,c=t.pixels.resultPixels;if(u)if(o>1){if(e)for(a=0;a1&&i!==n)if(e)for(a=0;a=-128&&e<=127;break;case 1:n=e>=0&&e<=255;break;case 2:n=e>=-32768&&e<=32767;break;case 3:n=e>=0&&e<=65536;break;case 4:n=e>=-2147483648&&e<=2147483647;break;case 5:n=e>=0&&e<=4294967296;break;case 6:n=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:n=e>=-17976931348623157e292&&e<=17976931348623157e292;break;default:n=!1}return n},getDataTypeSize:function(t){var e=0;switch(t){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=t}return e},getDataTypeUsed:function(t,e){var n=t;switch(t){case 2:case 4:n=t-e;break;case 3:case 5:n=t-2*e;break;case 6:n=0===e?t:1===e?2:1;break;case 7:n=0===e?t:t-2*e+1;break;default:n=t;break}return n},getOnePixel:function(t,e,n,i){var r=0;switch(n){case 0:r=i.getInt8(e);break;case 1:r=i.getUint8(e);break;case 2:r=i.getInt16(e,!0);break;case 3:r=i.getUint16(e,!0);break;case 4:r=i.getInt32(e,!0);break;case 5:r=i.getUInt32(e,!0);break;case 6:r=i.getFloat32(e,!0);break;case 7:r=i.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return r},swapDimensionOrder:function(t,e,n,i,r){var o=0,s=0,a=0,l=0,h=t;if(n>1)if(h=new i(e*n),r)for(o=0;o5)throw"unsupported lerc version 2."+a;e.readMask(t,o),s.numValidPixel!==s.width*s.height&&!o.pixels.resultMask&&(o.pixels.resultMask=n.maskData);var h=s.width*s.height;o.pixels.resultPixels=new l(h*s.numDims),o.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var u,c=!n.returnPixelInterleavedDims;if(0!==s.numValidPixel)if(s.zMax===s.zMin)e.constructConstantSurface(o,c);else if(a>=4&&e.checkMinMaxRanges(t,o))e.constructConstantSurface(o,c);else{var g=new DataView(t,o.ptr,2),d=g.getUint8(0);if(o.ptr++,d)e.readDataOneSweep(t,o,l,c);else if(a>1&&s.imageType<=1&&Math.abs(s.maxZError-.5)<1e-5){var f=g.getUint8(1);if(o.ptr++,o.encodeMode=f,f>2||a<4&&f>1)throw"Invalid Huffman flag "+f;f?e.readHuffman(t,o,l,c):e.readTiles(t,o,l,c)}else e.readTiles(t,o,l,c)}o.eofOffset=o.ptr,n.inputOffset?(u=o.headerInfo.blobSize+n.inputOffset-o.ptr,Math.abs(u)>=1&&(o.eofOffset=n.inputOffset+o.headerInfo.blobSize)):(u=o.headerInfo.blobSize-o.ptr,Math.abs(u)>=1&&(o.eofOffset=o.headerInfo.blobSize));var A={width:s.width,height:s.height,pixelData:o.pixels.resultPixels,minValue:s.zMin,maxValue:s.zMax,validPixelCount:s.numValidPixel,dimCount:s.numDims,dimStats:{minValues:s.minValues,maxValues:s.maxValues},maskData:o.pixels.resultMask};if(o.pixels.resultMask&&e.isValidPixelValue(s.imageType,i)){var p=o.pixels.resultMask;for(r=0;r1&&(A&&y.push(A),x.fileInfo.mask&&x.fileInfo.mask.numBytes>0&&_++),p++,v.pixels.push(x.pixelData),v.statistics.push({minValue:x.minValue,maxValue:x.maxValue,noDataValue:x.noDataValue,dimStats:x.dimStats})}if(s>1&&_>1){for(h=v.width*v.height,v.bandMasks=y,A=new Uint8Array(h),A.set(y[0]),a=1;at.arrayBuffer()).then(t=>WebAssembly.instantiate(t,wFt)).then(this._init):WebAssembly.instantiate(i.from(EFt,"base64"),wFt).then(this._init),_Ft)}_init(t){xFt=t.instance,wFt.env.emscripten_notify_memory_growth(0)}decode(t,e=0){if(!xFt)throw new Error("ZSTDDecoder: Await .init() before decoding.");const n=t.byteLength,i=xFt.exports.malloc(n);IFt.set(t,i),e=e||Number(xFt.exports.ZSTD_findDecompressedSize(i,n));const r=xFt.exports.malloc(e),o=xFt.exports.ZSTD_decompress(r,e,i,n),s=IFt.slice(r,r+o);return xFt.exports.free(i),xFt.exports.free(r),s}}const EFt="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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",bFt=new CFt;class SFt extends JM{constructor(t){super(),this.planarConfiguration="undefined"!=typeof t.PlanarConfiguration?t.PlanarConfiguration:1,this.samplesPerPixel="undefined"!=typeof t.SamplesPerPixel?t.SamplesPerPixel:1,this.addCompression=t.LercParameters[PB.AddCompression]}decodeBlock(t){switch(this.addCompression){case QB.None:break;case QB.Deflate:t=dFt(new Uint8Array(t)).buffer;break;case QB.Zstandard:t=bFt.decode(new Uint8Array(t)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: "+this.addCompression)}return vFt.decode(t,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}const BFt=Object.freeze(Object.defineProperty({__proto__:null,zstd:bFt,default:SFt},Symbol.toStringTag,{value:"Module"}));class MFt extends JM{constructor(){if(super(),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available")}decode(t,e){return p(this,null,(function*(){const t=new Blob([e]),n=yield createImageBitmap(t);let i;"undefined"!=typeof document?(i=document.createElement("canvas"),i.width=n.width,i.height=n.height):i=new OffscreenCanvas(n.width,n.height);const r=i.getContext("2d");return r.drawImage(n,0,0),r.getImageData(0,0,n.width,n.height).data.buffer}))}}const TFt=Object.freeze(Object.defineProperty({__proto__:null,default:MFt},Symbol.toStringTag,{value:"Module"})),DFt="undefined"!=typeof Worker?Worker:void 0;function RFt(){const t='function A(A,e,t,i,r,I,g){try{var n=A[I](g),a=n.value}catch(A){return void t(A)}n.done?e(a):Promise.resolve(a).then(i,r)}function e(e){return function(){var t=this,i=arguments;return new Promise((function(r,I){var g=e.apply(t,i);function n(e){A(g,r,I,n,a,"next",e)}function a(e){A(g,r,I,n,a,"throw",e)}n(void 0)}))}}function t(A){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(A)}var i={exports:{}};!function(A){var e=function(A){var e,i=Object.prototype,r=i.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},g=I.iterator||"@@iterator",n=I.asyncIterator||"@@asyncIterator",a=I.toStringTag||"@@toStringTag";function o(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{o({},"")}catch(A){o=function(A,e,t){return A[e]=t}}function B(A,e,t,i){var r=e&&e.prototype instanceof h?e:h,I=Object.create(r.prototype),g=new S(i||[]);return I._invoke=function(A,e,t){var i=Q;return function(r,I){if(i===s)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw I;return R()}for(t.method=r,t.arg=I;;){var g=t.delegate;if(g){var n=m(g,t);if(n){if(n===c)continue;return n}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(i===Q)throw i=f,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);i=s;var a=C(A,e,t);if("normal"===a.type){if(i=t.done?f:E,a.arg===c)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(i=f,t.method="throw",t.arg=a.arg)}}}(A,t,g),I}function C(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}A.wrap=B;var Q="suspendedStart",E="suspendedYield",s="executing",f="completed",c={};function h(){}function l(){}function u(){}var w={};o(w,g,(function(){return this}));var d=Object.getPrototypeOf,D=d&&d(d(v([])));D&&D!==i&&r.call(D,g)&&(w=D);var y=u.prototype=h.prototype=Object.create(w);function k(A){["next","throw","return"].forEach((function(e){o(A,e,(function(A){return this._invoke(e,A)}))}))}function p(A,e){function i(I,g,n,a){var o=C(A[I],A,g);if("throw"!==o.type){var B=o.arg,Q=B.value;return Q&&"object"===t(Q)&&r.call(Q,"__await")?e.resolve(Q.__await).then((function(A){i("next",A,n,a)}),(function(A){i("throw",A,n,a)})):e.resolve(Q).then((function(A){B.value=A,n(B)}),(function(A){return i("throw",A,n,a)}))}a(o.arg)}var I;this._invoke=function(A,t){function r(){return new e((function(e,r){i(A,t,e,r)}))}return I=I?I.then(r,r):r()}}function m(A,t){var i=A.iterator[t.method];if(i===e){if(t.delegate=null,"throw"===t.method){if(A.iterator.return&&(t.method="return",t.arg=e,m(A,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a \'throw\' method")}return c}var r=C(i,A.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var I=r.arg;return I?I.done?(t[A.resultName]=I.value,t.next=A.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,c):I:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function G(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function F(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function S(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(G,this),this.reset(!0)}function v(A){if(A){var t=A[g];if(t)return t.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var i=-1,I=function t(){for(;++i=0;--I){var g=this.tryEntries[I],n=g.completion;if("root"===g.tryLoc)return i("end");if(g.tryLoc<=this.prev){var a=r.call(g,"catchLoc"),o=r.call(g,"finallyLoc");if(a&&o){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),F(t),c}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var i=t.completion;if("throw"===i.type){var r=i.arg;F(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,t,i){return this.delegate={iterator:v(A),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),c}},A}(A.exports);try{regeneratorRuntime=e}catch(A){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(i);var r=i.exports,I=new Map;function g(A,e){Array.isArray(A)||(A=[A]),A.forEach((function(A){return I.set(A,e)}))}function n(A){return a.apply(this,arguments)}function a(){return(a=e(r.mark((function A(e){var t,i;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=I.get(e.Compression)){A.next=3;break}throw new Error("Unknown compression method identifier: ".concat(e.Compression));case 3:return A.next=5,t();case 5:return i=A.sent,A.abrupt("return",new i(e));case 7:case"end":return A.stop()}}),A)})))).apply(this,arguments)}g([void 0,1],(function(){return Promise.resolve().then((function(){return y})).then((function(A){return A.default}))})),g(5,(function(){return Promise.resolve().then((function(){return F})).then((function(A){return A.default}))})),g(6,(function(){throw new Error("old style JPEG compression is not supported.")})),g(7,(function(){return Promise.resolve().then((function(){return N})).then((function(A){return A.default}))})),g([8,32946],(function(){return Promise.resolve().then((function(){return OA})).then((function(A){return A.default}))})),g(32773,(function(){return Promise.resolve().then((function(){return _A})).then((function(A){return A.default}))})),g(34887,(function(){return Promise.resolve().then((function(){return le})).then(function(){var A=e(r.mark((function A(e){return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,e.zstd.init();case 2:return A.abrupt("return",e);case 3:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}()).then((function(A){return A.default}))})),g(50001,(function(){return Promise.resolve().then((function(){return de})).then((function(A){return A.default}))}));var o=globalThis;function B(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function C(A,e){for(var t=0;t0;r--)A[i+e]+=A[i],i++;t-=e}while(t>0)}function l(A,e,t){for(var i=0,r=A.length,I=r/t;r>e;){for(var g=e;g>0;--g)A[i+e]+=A[i],++i;r-=e}for(var n=A.slice(),a=0;a=A.byteLength);++o){var B=void 0;if(2===e){switch(r[0]){case 8:B=new Uint8Array(A,o*a*t*n,a*t*n);break;case 16:B=new Uint16Array(A,o*a*t*n,a*t*n/2);break;case 32:B=new Uint32Array(A,o*a*t*n,a*t*n/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(r[0]," bits per sample."))}h(B,a)}else 3===e&&l(B=new Uint8Array(A,o*a*t*n,a*t*n),a,n)}return A}o.addEventListener("message",function(){var A=e(r.mark((function A(e){var t,i,I,g,a,B;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.data,i=t.id,I=t.fileDirectory,g=t.buffer,A.next=3,n(I);case 3:return a=A.sent,A.next=6,a.decode(I,g);case 6:B=A.sent,o.postMessage({decoded:B,id:i},[B]);case 8:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}());var w=function(){function A(){B(this,A)}var t;return Q(A,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n,a;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.decodeBlock(t);case 2:if(i=A.sent,1===(I=e.Predictor||1)){A.next=9;break}return g=!e.StripOffsets,n=g?e.TileWidth:e.ImageWidth,a=g?e.TileLength:e.RowsPerStrip||e.ImageLength,A.abrupt("return",u(i,I,n,a,e.BitsPerSample,e.PlanarConfiguration));case 9:return A.abrupt("return",i);case 10:case"end":return A.stop()}}),A,this)}))),function(A,e){return t.apply(this,arguments)})}]),A}();function d(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var D=function(A){s(t,w);var e=d(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return A}}]),t}(),y=Object.freeze({__proto__:null,default:D});function k(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}function p(A,e){for(var t=e.length-1;t>=0;t--)A.push(e[t]);return A}function m(A){for(var e=new Uint16Array(4093),t=new Uint8Array(4093),i=0;i<=257;i++)e[i]=4096,t[i]=i;var r=258,I=9,g=0;function n(){r=258,I=9}function a(A){var e=function(A,e,t){var i=e%8,r=Math.floor(e/8),I=8-i,g=e+t-8*(r+1),n=8*(r+2)-(e+t),a=8*(r+2)-e;if(n=Math.max(0,n),r>=A.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;var o=A[r]&Math.pow(2,8-i)-1,B=o<<=t-I;if(r+1>>n;B+=C<<=Math.max(0,t-a)}if(g>8&&r+2>>Q}return B}(A,g,I);return g+=I,e}function o(A,i){return t[r]=i,e[r]=A,++r-1}function B(A){for(var i=[],r=A;4096!==r;r=e[r])i.push(t[r]);return i}var C=[];n();for(var Q,E=new Uint8Array(A),s=a(E);257!==s;){if(256===s){for(n(),s=a(E);256===s;)s=a(E);if(257===s)break;if(s>256)throw new Error("corrupted code at scanline ".concat(s));p(C,B(s)),Q=s}else if(s=Math.pow(2,I)&&(12===I?Q=void 0:I++),s=a(E)}return new Uint8Array(C)}var G=function(A){s(t,w);var e=k(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return m(A).buffer}}]),t}(),F=Object.freeze({__proto__:null,default:G});function S(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var v=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function R(A,e){for(var t=0,i=[],r=16;r>0&&!A[r-1];)--r;i.push({children:[],index:0});for(var I,g=i[0],n=0;n0;)g=i.pop();for(g.index++,i.push(g);i.length<=n;)i.push(I={children:[],index:0}),g.children[g.index]=I.children,g=I;t++}n+10)return f--,s>>f&1;if(255===(s=A[E++])){var e=A[E++];if(e)throw new Error("unexpected marker: ".concat((s<<8|e).toString(16)))}return f=7,s>>>7}function h(A){for(var e,i=A;null!==(e=c());){if("number"==typeof(i=i[e]))return i;if("object"!==t(i))throw new Error("invalid huffman sequence")}return null}function l(A){for(var e=A,t=0;e>0;){var i=c();if(null===i)return;t=t<<1|i,--e}return t}function u(A){var e=l(A);return e>=1<0)w--;else for(var t=g,i=n;t<=i;){var r=h(A.huffmanTableAC),I=15&r,a=r>>4;if(0===I){if(a<15){w=l(a)+(1<>4,0===C)r<15?(w=l(r)+(1<>4;if(0===g){if(n<15)break;r+=16}else e[v[r+=n]]=u(g),r++}};var L,b,M=0;b=1===U?r[0].blocksPerLine*r[0].blocksPerColumn:B*i.mcusPerColumn;for(var N=I||b;M=65488&&L<=65495))break;E+=2}return E-Q}function L(A,e){var t=[],i=e.blocksPerLine,r=e.blocksPerColumn,I=i<<3,g=new Int32Array(64),n=new Uint8Array(64);function a(A,t,i){var r,I,g,n,a,o,B,C,Q,E,s=e.quantizationTable,f=i;for(E=0;E<64;E++)f[E]=A[E]*s[E];for(E=0;E<8;++E){var c=8*E;0!==f[1+c]||0!==f[2+c]||0!==f[3+c]||0!==f[4+c]||0!==f[5+c]||0!==f[6+c]||0!==f[7+c]?(r=5793*f[0+c]+128>>8,I=5793*f[4+c]+128>>8,g=f[2+c],n=f[6+c],a=2896*(f[1+c]-f[7+c])+128>>8,C=2896*(f[1+c]+f[7+c])+128>>8,o=f[3+c]<<4,Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+128>>8,g=1567*g-3784*n+128>>8,n=Q,Q=a-(B=f[5+c]<<4)+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+c]=r+C,f[7+c]=r-C,f[1+c]=I+B,f[6+c]=I-B,f[2+c]=g+o,f[5+c]=g-o,f[3+c]=n+a,f[4+c]=n-a):(Q=5793*f[0+c]+512>>10,f[0+c]=Q,f[1+c]=Q,f[2+c]=Q,f[3+c]=Q,f[4+c]=Q,f[5+c]=Q,f[6+c]=Q,f[7+c]=Q)}for(E=0;E<8;++E){var h=E;0!==f[8+h]||0!==f[16+h]||0!==f[24+h]||0!==f[32+h]||0!==f[40+h]||0!==f[48+h]||0!==f[56+h]?(r=5793*f[0+h]+2048>>12,I=5793*f[32+h]+2048>>12,g=f[16+h],n=f[48+h],a=2896*(f[8+h]-f[56+h])+2048>>12,C=2896*(f[8+h]+f[56+h])+2048>>12,o=f[24+h],Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+2048>>12,g=1567*g-3784*n+2048>>12,n=Q,Q=a-(B=f[40+h])+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+h]=r+C,f[56+h]=r-C,f[8+h]=I+B,f[48+h]=I-B,f[16+h]=g+o,f[40+h]=g-o,f[24+h]=n+a,f[32+h]=n-a):(Q=5793*i[E+0]+8192>>14,f[0+h]=Q,f[8+h]=Q,f[16+h]=Q,f[24+h]=Q,f[32+h]=Q,f[40+h]=Q,f[48+h]=Q,f[56+h]=Q)}for(E=0;E<64;++E){var l=128+(f[E]+8>>4);t[E]=l<0?0:l>255?255:l}}for(var o=0;o>4==0)for(var C=0;C<64;C++){B[v[C]]=A[e++]}else{if(o>>4!=1)throw new Error("DQT: invalid table spec");for(var Q=0;Q<64;Q++){B[v[Q]]=t()}}this.quantizationTables[15&o]=B}break;case 65472:case 65473:case 65474:t();for(var E={extended:65473===g,progressive:65474===g,precision:A[e++],scanLines:t(),samplesPerLine:t(),components:{},componentsOrder:[]},s=A[e++],f=void 0,c=0;c>4,l=15&A[e+1],u=A[e+2];E.componentsOrder.push(f),E.components[f]={h:h,v:l,quantizationIdx:u},e+=3}i(E),this.frames.push(E);break;case 65476:for(var w=t(),d=2;d>4==0?this.huffmanTablesDC[15&D]=R(y,m):this.huffmanTablesAC[15&D]=R(y,m)}break;case 65501:t(),this.resetInterval=t();break;case 65498:t();for(var F=A[e++],S=[],L=this.frames[0],b=0;b>4],M.huffmanTableAC=this.huffmanTablesAC[15&N],S.push(M)}var x=A[e++],J=A[e++],q=A[e++],Y=U(A,e,L,S,this.resetInterval,x,J,q>>4,15&q);e+=Y;break;case 65535:255!==A[e]&&e--;break;default:if(255===A[e-3]&&A[e-2]>=192&&A[e-2]<=254){e-=3;break}throw new Error("unknown JPEG marker ".concat(g.toString(16)))}g=t()}}},{key:"getResult",value:function(){var A=this.frames;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(var e=0;e=0;)A[e]=0}x(new Array(576)),x(new Array(60)),x(new Array(512)),x(new Array(256)),x(new Array(29)),x(new Array(30));var J=function(A,e,t,i){for(var r=65535&A|0,I=A>>>16&65535|0,g=0;0!==t;){t-=g=t>2e3?2e3:t;do{I=I+(r=r+e[i++]|0)|0}while(--g);r%=65521,I%=65521}return r|I<<16|0},q=new Uint32Array(function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var i=0;i<8;i++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}()),Y=function(A,e,t,i){var r=q,I=i+t;A^=-1;for(var g=i;g>>8^r[255&(A^e[g])];return-1^A},K={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},H={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},O=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},P=function(A){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!==t(i))throw new TypeError(i+"must be non-object");for(var r in i)O(i,r)&&(A[r]=i[r])}}return A},T=function(A){for(var e=0,t=0,i=A.length;t=252?6:X>=248?5:X>=240?4:X>=224?3:X>=192?2:1;_[254]=_[254]=1;var Z=function(A){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(A);var e,t,i,r,I,g=A.length,n=0;for(r=0;r>>6,e[I++]=128|63&t):t<65536?(e[I++]=224|t>>>12,e[I++]=128|t>>>6&63,e[I++]=128|63&t):(e[I++]=240|t>>>18,e[I++]=128|t>>>12&63,e[I++]=128|t>>>6&63,e[I++]=128|63&t);return e},j=function(A,e){var t,i,r=e||A.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(A.subarray(0,e));var I=new Array(2*r);for(i=0,t=0;t4)I[i++]=65533,t+=n-1;else{for(g&=2===n?31:3===n?15:7;n>1&&t1?I[i++]=65533:g<65536?I[i++]=g:(g-=65536,I[i++]=55296|g>>10&1023,I[i++]=56320|1023&g)}}}return function(A,e){if(e<65534&&A.subarray&&V)return String.fromCharCode.apply(null,A.length===e?A:A.subarray(0,e));for(var t="",i=0;iA.length&&(e=A.length);for(var t=e-1;t>=0&&128==(192&A[t]);)t--;return t<0||0===t?e:t+_[A[t]]>e?t:e};var z=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},$=function(A,e){var t,i,r,I,g,n,a,o,B,C,Q,E,s,f,c,h,l,u,w,d,D,y,k,p,m=A.state;t=A.next_in,k=A.input,i=t+(A.avail_in-5),r=A.next_out,p=A.output,I=r-(e-A.avail_out),g=r+(A.avail_out-257),n=m.dmax,a=m.wsize,o=m.whave,B=m.wnext,C=m.window,Q=m.hold,E=m.bits,s=m.lencode,f=m.distcode,c=(1<>>=u=l>>>24,E-=u,0===(u=l>>>16&255))p[r++]=65535&l;else{if(!(16&u)){if(0==(64&u)){l=s[(65535&l)+(Q&(1<>>=u,E-=u),E<15&&(Q+=k[t++]<>>=u=l>>>24,E-=u,!(16&(u=l>>>16&255))){if(0==(64&u)){l=f[(65535&l)+(Q&(1<n){A.msg="invalid distance too far back",m.mode=30;break A}if(Q>>>=u,E-=u,d>(u=r-I)){if((u=d-u)>o&&m.sane){A.msg="invalid distance too far back",m.mode=30;break A}if(D=0,y=C,0===B){if(D+=a-u,u2;)p[r++]=y[D++],p[r++]=y[D++],p[r++]=y[D++],w-=3;w&&(p[r++]=y[D++],w>1&&(p[r++]=y[D++]))}else{D=r-d;do{p[r++]=p[D++],p[r++]=p[D++],p[r++]=p[D++],w-=3}while(w>2);w&&(p[r++]=p[D++],w>1&&(p[r++]=p[D++]))}break}}break}}while(t>3,Q&=(1<<(E-=w<<3))-1,A.next_in=t,A.next_out=r,A.avail_in=t=1&&0===v[d];d--);if(D>d&&(D=d),0===d)return r[I++]=20971520,r[I++]=20971520,n.bits=1,0;for(w=1;w0&&(0===A||1!==d))return-1;for(R[1]=0,l=1;l<15;l++)R[l+1]=R[l]+v[l];for(u=0;u852||2===A&&m>592)return 1;for(;;){s=l-k,g[u]E?(f=U[L+g[u]],c=F[S+g[u]]):(f=96,c=0),a=1<>k)+(o-=a)]=s<<24|f<<16|c|0}while(0!==o);for(a=1<>=1;if(0!==a?(G&=a-1,G+=a):G=0,u++,0==--v[l]){if(l===d)break;l=e[t+g[u]]}if(l>D&&(G&C)!==B){for(0===k&&(k=D),Q+=w,p=1<<(y=l-k);y+k852||2===A&&m>592)return 1;r[B=G&C]=D<<24|y<<16|Q-I|0}}return 0!==G&&(r[Q+G]=l-k<<24|64<<16|0),n.bits=D,0},IA=H.Z_FINISH,gA=H.Z_BLOCK,nA=H.Z_TREES,aA=H.Z_OK,oA=H.Z_STREAM_END,BA=H.Z_NEED_DICT,CA=H.Z_STREAM_ERROR,QA=H.Z_DATA_ERROR,EA=H.Z_MEM_ERROR,sA=H.Z_BUF_ERROR,fA=H.Z_DEFLATED,cA=function(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)};function hA(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var lA,uA,wA=function(A){if(!A||!A.state)return CA;var e=A.state;return A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,aA},dA=function(A){if(!A||!A.state)return CA;var e=A.state;return e.wsize=0,e.whave=0,e.wnext=0,wA(A)},DA=function(A,e){var t;if(!A||!A.state)return CA;var i=A.state;return e<0?(t=0,e=-e):(t=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?CA:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,dA(A))},yA=function(A,e){if(!A)return CA;var t=new hA;A.state=t,t.window=null;var i=DA(A,e);return i!==aA&&(A.state=null),i},kA=!0,pA=function(A){if(kA){lA=new Int32Array(512),uA=new Int32Array(32);for(var e=0;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(rA(1,A.lens,0,288,lA,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;rA(2,A.lens,0,32,uA,0,A.work,{bits:5}),kA=!1}A.lencode=lA,A.lenbits=9,A.distcode=uA,A.distbits=5},mA=function(A,e,t,i){var r,I=A.state;return null===I.window&&(I.wsize=1<=I.wsize?(I.window.set(e.subarray(t-I.wsize,t),0),I.wnext=0,I.whave=I.wsize):((r=I.wsize-I.wnext)>i&&(r=i),I.window.set(e.subarray(t-i,t-i+r),I.wnext),(i-=r)?(I.window.set(e.subarray(t-i,t),0),I.wnext=i,I.whave=I.wsize):(I.wnext+=r,I.wnext===I.wsize&&(I.wnext=0),I.whave>>8&255,t.check=Y(t.check,G,2,0),o=0,B=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&o)<<8)+(o>>8))%31){A.msg="incorrect header check",t.mode=30;break}if((15&o)!==fA){A.msg="unknown compression method",t.mode=30;break}if(B-=4,D=8+(15&(o>>>=4)),0===t.wbits)t.wbits=D;else if(D>t.wbits){A.msg="invalid window size",t.mode=30;break}t.dmax=1<>8&1),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=3;case 3:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>8&255,G[2]=o>>>16&255,G[3]=o>>>24&255,t.check=Y(t.check,G,4,0)),o=0,B=0,t.mode=4;case 4:for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>8),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=5;case 5:if(1024&t.flags){for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((E=t.length)>n&&(E=n),E&&(t.head&&(D=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(I,I+E),D)),512&t.flags&&(t.check=Y(t.check,i,E,I)),n-=E,I+=E,t.length-=E),t.length))break A;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===n)break A;E=0;do{D=i[I+E++],t.head&&D&&t.length<65536&&(t.head.name+=String.fromCharCode(D))}while(D&&E>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=12;break;case 10:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>=7&B,B-=7&B,t.mode=27;break}for(;B<3;){if(0===n)break A;n--,o+=i[I++]<>>=1)){case 0:t.mode=14;break;case 1:if(pA(t),t.mode=20,e===nA){o>>>=2,B-=2;break A}break;case 2:t.mode=17;break;case 3:A.msg="invalid block type",t.mode=30}o>>>=2,B-=2;break;case 14:for(o>>>=7&B,B-=7&B;B<32;){if(0===n)break A;n--,o+=i[I++]<>>16^65535)){A.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&o,o=0,B=0,t.mode=15,e===nA)break A;case 15:t.mode=16;case 16:if(E=t.length){if(E>n&&(E=n),E>a&&(E=a),0===E)break A;r.set(i.subarray(I,I+E),g),n-=E,I+=E,a-=E,g+=E,t.length-=E;break}t.mode=12;break;case 17:for(;B<14;){if(0===n)break A;n--,o+=i[I++]<>>=5,B-=5,t.ndist=1+(31&o),o>>>=5,B-=5,t.ncode=4+(15&o),o>>>=4,B-=4,t.nlen>286||t.ndist>30){A.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have>>=3,B-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,k={bits:t.lenbits},y=rA(0,t.lens,0,19,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=c,B-=c,t.lens[t.have++]=l;else{if(16===l){for(p=c+2;B>>=c,B-=c,0===t.have){A.msg="invalid bit length repeat",t.mode=30;break}D=t.lens[t.have-1],E=3+(3&o),o>>>=2,B-=2}else if(17===l){for(p=c+3;B>>=c)),o>>>=3,B-=3}else{for(p=c+7;B>>=c)),o>>>=7,B-=7}if(t.have+E>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=30;break}for(;E--;)t.lens[t.have++]=D}}if(30===t.mode)break;if(0===t.lens[256]){A.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,k={bits:t.lenbits},y=rA(1,t.lens,0,t.nlen,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,k={bits:t.distbits},y=rA(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,k),t.distbits=k.bits,y){A.msg="invalid distances set",t.mode=30;break}if(t.mode=20,e===nA)break A;case 20:t.mode=21;case 21:if(n>=6&&a>=258){A.next_out=g,A.avail_out=a,A.next_in=I,A.avail_in=n,t.hold=o,t.bits=B,$(A,Q),g=A.next_out,r=A.output,a=A.avail_out,I=A.next_in,i=A.input,n=A.avail_in,o=t.hold,B=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;h=(m=t.lencode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,t.length=l,0===h){t.mode=26;break}if(32&h){t.back=-1,t.mode=12;break}if(64&h){A.msg="invalid literal/length code",t.mode=30;break}t.extra=15&h,t.mode=22;case 22:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;h=(m=t.distcode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,64&h){A.msg="invalid distance code",t.mode=30;break}t.offset=l,t.extra=15&h,t.mode=24;case 24:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===a)break A;if(E=Q-a,t.offset>E){if((E=t.offset-E)>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=30;break}E>t.wnext?(E-=t.wnext,s=t.wsize-E):s=t.wnext-E,E>t.length&&(E=t.length),f=t.window}else f=r,s=g-t.offset,E=t.length;E>a&&(E=a),a-=E,t.length-=E;do{r[g++]=f[s++]}while(--E);0===t.length&&(t.mode=21);break;case 26:if(0===a)break A;r[g++]=t.length,a--,t.mode=21;break;case 27:if(t.wrap){for(;B<32;){if(0===n)break A;n--,o|=i[I++]<=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||A&&A.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z,this.strm.avail_out=0;var t=GA.inflateInit2(this.strm,e.windowBits);if(t!==UA)throw new Error(K[t]);if(this.header=new FA,GA.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Z(e.dictionary):"[object ArrayBuffer]"===SA.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=GA.inflateSetDictionary(this.strm,e.dictionary))!==UA))throw new Error(K[t])}function qA(A,e){var t=new JA(e);if(t.push(A),t.err)throw t.msg||K[t.err];return t.result}JA.prototype.push=function(A,e){var t,i,r,I=this.strm,g=this.options.chunkSize,n=this.options.dictionary;if(this.ended)return!1;for(i=e===~~e?e:!0===e?RA:vA,"[object ArrayBuffer]"===SA.call(A)?I.input=new Uint8Array(A):I.input=A,I.next_in=0,I.avail_in=I.input.length;;){for(0===I.avail_out&&(I.output=new Uint8Array(g),I.next_out=0,I.avail_out=g),(t=GA.inflate(I,i))===bA&&n&&((t=GA.inflateSetDictionary(I,n))===UA?t=GA.inflate(I,i):t===NA&&(t=bA));I.avail_in>0&&t===LA&&I.state.wrap>0&&0!==A[I.next_in];)GA.inflateReset(I),t=GA.inflate(I,i);switch(t){case MA:case NA:case bA:case xA:return this.onEnd(t),this.ended=!0,!1}if(r=I.avail_out,I.next_out&&(0===I.avail_out||t===LA))if("string"===this.options.to){var a=W(I.output,I.next_out),o=I.next_out-a,B=j(I.output,a);I.next_out=o,I.avail_out=g-o,o&&I.output.set(I.output.subarray(a,a+o),0),this.onData(B)}else this.onData(I.output.length===I.next_out?I.output:I.output.subarray(0,I.next_out));if(t!==UA||0!==r){if(t===LA)return t=GA.inflateEnd(this.strm),this.onEnd(t),this.ended=!0,!0;if(0===I.avail_in)break}}return!0},JA.prototype.onData=function(A){this.chunks.push(A)},JA.prototype.onEnd=function(A){A===UA&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=T(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var YA={Inflate:JA,inflate:qA,inflateRaw:function(A,e){return(e=e||{}).raw=!0,qA(A,e)},ungzip:qA,constants:H}.inflate;function KA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var HA=function(A){s(t,w);var e=KA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return YA(new Uint8Array(A)).buffer}}]),t}(),OA=Object.freeze({__proto__:null,default:HA});function PA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var TA,VA=function(A){s(t,w);var e=PA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){for(var e=new DataView(A),t=[],i=0;i>3],m<<=7&G),c=0;c>3]),128&m?(a&&(a[G]=1),f=f>(g=S.encoding<2?y[k++]:p)?g:f,n[G++]=g):(a&&(a[G]=0),n[G++]=i),m<<=1;G+=F}else if(S.encoding<2)for(h=0;h(g=y[k++])?g:f,n[G++]=g;G+=F}else for(f=f>p?p:f,h=0;h0){var g=new Uint8Array(Math.ceil(i.width*i.height/8)),n=(I=new DataView(A,e,i.mask.numBytes)).getInt16(0,!0),a=2,o=0;do{if(n>0)for(;n--;)g[o++]=I.getUint8(a++);else{var B=I.getUint8(a++);for(n=-n;n--;)g[o++]=B}n=I.getInt16(a,!0),a+=2}while(a0?1:0),s=Q+(i.height%Q>0?1:0);i.pixels.blocks=new Array(E*s);for(var f=0,c=0;c3)throw"Invalid block encoding ("+w.encoding+")";if(2!==w.encoding){if(0!==d&&2!==d){if(d>>=6,w.offsetType=d,2===d)w.offset=I.getInt8(1),l++;else if(1===d)w.offset=I.getInt16(1,!0),l+=2;else{if(0!==d)throw"Invalid block offset type";w.offset=I.getFloat32(1,!0),l+=4}if(1===w.encoding)if(d=I.getUint8(l),l++,w.bitsPerPixel=63&d,d>>=6,w.numValidPixelsType=d,2===d)w.numValidPixels=I.getUint8(l),l++;else if(1===d)w.numValidPixels=I.getUint16(l,!0),l+=2;else{if(0!==d)throw"Invalid valid pixel count type";w.numValidPixels=I.getUint32(l,!0),l+=4}}var D;if(e+=l,3!==w.encoding)if(0===w.encoding){var y=(i.pixels.numBytes-1)/4;if(y!==Math.floor(y))throw"uncompressed block has invalid length";D=new ArrayBuffer(4*y),new Uint8Array(D).set(new Uint8Array(A,e,4*y));var k=new Float32Array(D);w.rawData=k,e+=4*y}else if(1===w.encoding){var p=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),m=Math.ceil(p/4);D=new ArrayBuffer(4*m),new Uint8Array(D).set(new Uint8Array(A,e,p)),w.stuffedData=new Uint32Array(D),e+=p}}else e++}return i.eofOffset=e,i},I=function(A,e,t,i,r,I,g){var n,a,o,B=(1<=e)a=o>>>Q-e&B,Q-=e;else{var f=e-Q;a=(o&B)<>>(Q=32-f)}I[n]=a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=r[o];else for(Q=Math.ceil((n-I)/g),a=0;a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=o=e?(Q=g>>>C-e&n,C-=e):(Q=(g&n)<<(B=e-C)&n,Q+=(g=A[a++])>>>(C=32-B)),E[o]=Q=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=e?(Q=g>>>E&n,C-=e,E+=e):(Q=g>>>E&n,C=32-(B=e-C),Q|=((g=A[a++])&(1<=t?(I=g>>>B-t&a,B-=t):(I=(g&a)<<(n=t-B)&a,I+=(g=A[o++])>>>(B=32-n)),e[r]=I;return e},C=function(A,e,t,i){var r,I,g,n,a=(1<=t?(I=g>>>C&a,B-=t,C+=t):(I=g>>>C&a,B=32-(n=t-B),I|=((g=A[o++])&(1<=359?359:r;r-=g;do{e+=A[I++]<<8,t+=e+=A[I++]}while(--g);e=(65535&e)+(e>>>16),t=(65535&t)+(t>>>16)}return 1&i&&(t+=e+=A[I]<<8),((t=(65535&t)+(t>>>16))<<16|(e=(65535&e)+(e>>>16)))>>>0},readHeaderInfo:function(A,e){var t=e.ptr,i=new Uint8Array(A,t,6),r={};if(r.fileIdentifierString=String.fromCharCode.apply(null,i),0!==r.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+r.fileIdentifierString;t+=6;var I,g=new DataView(A,t,8),n=g.getInt32(0,!0);if(r.fileVersion=n,t+=4,n>=3&&(r.checksum=g.getUint32(4,!0),t+=4),g=new DataView(A,t,12),r.height=g.getUint32(0,!0),r.width=g.getUint32(4,!0),t+=8,n>=4?(r.numDims=g.getUint32(8,!0),t+=4):r.numDims=1,g=new DataView(A,t,40),r.numValidPixel=g.getUint32(0,!0),r.microBlockSize=g.getInt32(4,!0),r.blobSize=g.getInt32(8,!0),r.imageType=g.getInt32(12,!0),r.maxZError=g.getFloat64(16,!0),r.zMin=g.getFloat64(24,!0),r.zMax=g.getFloat64(32,!0),t+=40,e.headerInfo=r,e.ptr=t,n>=3&&(I=n>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(A,t-I,r.blobSize-14))!==r.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(A,e){var t=e.headerInfo,i=this.getDataTypeArray(t.imageType),r=t.numDims*this.getDataTypeSize(t.imageType),I=this.readSubArray(A,e.ptr,i,r),g=this.readSubArray(A,e.ptr+r,i,r);e.ptr+=2*r;var n,a=!0;for(n=0;n0){t=new Uint8Array(Math.ceil(g/8));var B=(a=new DataView(A,r,o.numBytes)).getInt16(0,!0),C=2,Q=0,E=0;do{if(B>0)for(;B--;)t[Q++]=a.getUint8(C++);else for(E=a.getUint8(C++),B=-B;B--;)t[Q++]=E;B=a.getInt16(C,!0),C+=2}while(C>3],s<<=7&f):s=t[f>>3],128&s&&(i[f]=1);e.pixels.resultMask=i,o.bitset=t,r+=o.numBytes}return e.ptr=r,e.mask=o,!0},readDataOneSweep:function(A,e,t,i){var r,I=e.ptr,g=e.headerInfo,n=g.numDims,a=g.width*g.height,o=g.imageType,B=g.numValidPixel*Q.getDataTypeSize(o)*n,C=e.pixels.resultMask;if(t===Uint8Array)r=new Uint8Array(A,I,B);else{var E=new ArrayBuffer(B);new Uint8Array(E).set(new Uint8Array(A,I,B)),r=new t(E)}if(r.length===a*n)e.pixels.resultPixels=i?Q.swapDimensionOrder(r,a,n,t,!0):r;else{e.pixels.resultPixels=new t(a*n);var s=0,f=0,c=0,h=0;if(n>1){if(i){for(f=0;f=g)return!1;var n=new Uint32Array(g-I);Q.decodeBits(A,e,n);var a,o,B,C,s=[];for(a=I;a0&&(s[o].second=l<>>32-C,32-w>=C?32===(w+=C)&&(w=0,l=u[++d]):(w+=C-32,l=u[++d],s[o].second|=l>>>32-w));var D=0,y=0,k=new E;for(a=0;a=t?t:D;var p,m,G,F,S,v=[];for(a=I;a0)if(p=[C,o],C<=y)for(m=s[o].second<=0;F--)m>>>F&1?(S.right||(S.right=new E),S=S.right):(S.left||(S.left=new E),S=S.left),0!==F||S.val||(S.val=p[1]);return{decodeLut:v,numBitsLUTQick:y,numBitsLUT:D,tree:k,stuffedData:u,srcPtr:d,bitPos:w}},readHuffman:function(A,e,t,i){var r,I,g,n,a,o,B,C,E,s=e.headerInfo.numDims,f=e.headerInfo.height,c=e.headerInfo.width,h=c*f,l=this.readHuffmanTree(A,e),u=l.decodeLut,w=l.tree,d=l.stuffedData,D=l.srcPtr,y=l.bitPos,k=l.numBitsLUTQick,p=l.numBitsLUT,m=0===e.headerInfo.imageType?128:0,G=e.pixels.resultMask,F=0;y>0&&(D++,y=0);var S,v=d[D],R=1===e.encodeMode,U=new t(h*s),L=U;if(s<2||R){for(S=0;S1&&(L=new t(U.buffer,h*S,h),F=0),e.headerInfo.numValidPixel===c*f)for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(g+=B>0?F:o>0?L[C-c]:F,g&=255,L[C]=g,F=g):L[C]=g}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(B>0&&G[C-1]?g+=F:o>0&&G[C-c]?g+=L[C-c]:g+=F,g&=255,L[C]=g,F=g):L[C]=g}}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,L[C]=g}e.ptr=e.ptr+4*(D+1)+(y>0?4:0),e.pixels.resultPixels=U,s>1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(U,h,s,t))},decodeBits:function(A,e,t,i,r){var I=e.headerInfo,Q=I.fileVersion,E=0,s=A.byteLength-e.ptr>=5?5:A.byteLength-e.ptr,f=new DataView(A,e.ptr,s),c=f.getUint8(0);E++;var h=c>>6,l=0===h?4:3-h,u=(32&c)>0,w=31&c,d=0;if(1===l)d=f.getUint8(E),E++;else if(2===l)d=f.getUint16(E,!0),E+=2;else{if(4!==l)throw"Invalid valid pixel count type";d=f.getUint32(E,!0),E+=4}var D,y,k,p,m,G,F,S,v,R=2*I.maxZError,U=I.numDims>1?I.maxValues[r]:I.zMax;if(u){for(e.counter.lut++,S=f.getUint8(E),E++,p=Math.ceil((S-1)*w/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),k=new Uint8Array(y),e.ptr+=E,k.set(new Uint8Array(A,e.ptr,p)),F=new Uint32Array(y),e.ptr+=p,v=0;S-1>>>v;)v++;p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,G=Q>=3?o(F,w,S-1,i,R,U):n(F,w,S-1,i,R,U),Q>=3?a(D,t,v,d,G):g(D,t,v,d,G)}else e.counter.bitstuffer++,v=w,e.ptr+=E,v>0&&(p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,Q>=3?null==i?C(D,t,v,d):a(D,t,v,d,!1,i,R,U):null==i?B(D,t,v,d):g(D,t,v,d,!1,i,R,U))},readTiles:function(A,e,t,i){var r=e.headerInfo,I=r.width,g=r.height,n=I*g,a=r.microBlockSize,o=r.imageType,B=Q.getDataTypeSize(o),C=Math.ceil(I/a),E=Math.ceil(g/a);e.pixels.numBlocksY=E,e.pixels.numBlocksX=C,e.pixels.ptr=0;var s,f,c,h,l,u,w,d,D,y,k=0,p=0,m=0,G=0,F=0,S=0,v=0,R=0,U=0,L=0,b=0,M=0,N=0,x=0,J=0,q=new t(a*a),Y=g%a||a,K=I%a||a,H=r.numDims,O=e.pixels.resultMask,P=e.pixels.resultPixels,T=r.fileVersion>=5?14:15,V=r.zMax;for(m=0;m1?(y=P,L=m*I*a+G*a,P=new t(e.pixels.resultPixels.buffer,n*d*B,n),V=r.maxValues[d]):y=null,v=A.byteLength-e.ptr,f={},J=0,R=(s=new DataView(A,e.ptr,Math.min(10,v))).getUint8(0),J++,D=r.fileVersion>=5?4&R:0,U=R>>6&255,(R>>2&T)!=(G*a>>3&T))throw"integrity issue";if(D&&0===d)throw"integrity issue";if((l=3&R)>3)throw e.ptr+=J,"Invalid block encoding ("+l+")";if(2!==l)if(0===l){if(D)throw"integrity issue";if(e.counter.uncompressed++,e.ptr+=J,M=(M=F*S*B)<(N=A.byteLength-e.ptr)?M:N,c=new ArrayBuffer(M%B==0?M:M+B-M%B),new Uint8Array(c).set(new Uint8Array(A,e.ptr,M)),h=new t(c),x=0,O)for(k=0;k1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(e.pixels.resultPixels,n,H,t))},formatFileInfo:function(A){return{fileIdentifierString:A.headerInfo.fileIdentifierString,fileVersion:A.headerInfo.fileVersion,imageType:A.headerInfo.imageType,height:A.headerInfo.height,width:A.headerInfo.width,numValidPixel:A.headerInfo.numValidPixel,microBlockSize:A.headerInfo.microBlockSize,blobSize:A.headerInfo.blobSize,maxZError:A.headerInfo.maxZError,pixelType:Q.getPixelType(A.headerInfo.imageType),eofOffset:A.eofOffset,mask:A.mask?{numBytes:A.mask.numBytes}:null,pixels:{numBlocksX:A.pixels.numBlocksX,numBlocksY:A.pixels.numBlocksY,maxValue:A.headerInfo.zMax,minValue:A.headerInfo.zMin,noDataValue:A.noDataValue}}},constructConstantSurface:function(A,e){var t=A.headerInfo.zMax,i=A.headerInfo.zMin,r=A.headerInfo.maxValues,I=A.headerInfo.numDims,g=A.headerInfo.height*A.headerInfo.width,n=0,a=0,o=0,B=A.pixels.resultMask,C=A.pixels.resultPixels;if(B)if(I>1){if(e)for(n=0;n1&&i!==t)if(e)for(n=0;n=-128&&e<=127;break;case 1:t=e>=0&&e<=255;break;case 2:t=e>=-32768&&e<=32767;break;case 3:t=e>=0&&e<=65536;break;case 4:t=e>=-2147483648&&e<=2147483647;break;case 5:t=e>=0&&e<=4294967296;break;case 6:t=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:t=e>=-17976931348623157e292&&e<=17976931348623157e292;break;default:t=!1}return t},getDataTypeSize:function(A){var e=0;switch(A){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=A}return e},getDataTypeUsed:function(A,e){var t=A;switch(A){case 2:case 4:t=A-e;break;case 3:case 5:t=A-2*e;break;case 6:t=0===e?A:1===e?2:1;break;case 7:t=0===e?A:A-2*e+1;break;default:t=A}return t},getOnePixel:function(A,e,t,i){var r=0;switch(t){case 0:r=i.getInt8(e);break;case 1:r=i.getUint8(e);break;case 2:r=i.getInt16(e,!0);break;case 3:r=i.getUint16(e,!0);break;case 4:r=i.getInt32(e,!0);break;case 5:r=i.getUInt32(e,!0);break;case 6:r=i.getFloat32(e,!0);break;case 7:r=i.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return r},swapDimensionOrder:function(A,e,t,i,r){var I=0,g=0,n=0,a=0,o=A;if(t>1)if(o=new i(e*t),r)for(I=0;I5)throw"unsupported lerc version 2."+g;Q.readMask(A,r),I.numValidPixel===I.width*I.height||r.pixels.resultMask||(r.pixels.resultMask=e.maskData);var a=I.width*I.height;r.pixels.resultPixels=new n(a*I.numDims),r.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o,B=!e.returnPixelInterleavedDims;if(0!==I.numValidPixel)if(I.zMax===I.zMin)Q.constructConstantSurface(r,B);else if(g>=4&&Q.checkMinMaxRanges(A,r))Q.constructConstantSurface(r,B);else{var C=new DataView(A,r.ptr,2),E=C.getUint8(0);if(r.ptr++,E)Q.readDataOneSweep(A,r,n,B);else if(g>1&&I.imageType<=1&&Math.abs(I.maxZError-.5)<1e-5){var s=C.getUint8(1);if(r.ptr++,r.encodeMode=s,s>2||g<4&&s>1)throw"Invalid Huffman flag "+s;s?Q.readHuffman(A,r,n,B):Q.readTiles(A,r,n,B)}else Q.readTiles(A,r,n,B)}r.eofOffset=r.ptr,e.inputOffset?(o=r.headerInfo.blobSize+e.inputOffset-r.ptr,Math.abs(o)>=1&&(r.eofOffset=e.inputOffset+r.headerInfo.blobSize)):(o=r.headerInfo.blobSize-r.ptr,Math.abs(o)>=1&&(r.eofOffset=r.headerInfo.blobSize));var f={width:I.width,height:I.height,pixelData:r.pixels.resultPixels,minValue:I.zMin,maxValue:I.zMax,validPixelCount:I.numValidPixel,dimCount:I.numDims,dimStats:{minValues:I.minValues,maxValues:I.maxValues},maskData:r.pixels.resultMask};if(r.pixels.resultMask&&Q.isValidPixelValue(I.imageType,t)){var c=r.pixels.resultMask;for(i=0;i1&&(o&&f.push(o),d.fileInfo.mask&&d.fileInfo.mask.numBytes>0&&w++),E++,u.pixels.push(d.pixelData),u.statistics.push({minValue:d.minValue,maxValue:d.maxValue,noDataValue:d.noDataValue,dimStats:d.dimStats})}if(i>1&&w>1){for(Q=u.width*u.height,u.bandMasks=f,(o=new Uint8Array(Q)).set(f[0]),B=1;B1&&void 0!==arguments[1]?arguments[1]:0;if(!jA)throw new Error("ZSTDDecoder: Await .init() before decoding.");var t=A.byteLength,i=jA.exports.malloc(t);WA.set(A,i),e=e||Number(jA.exports.ZSTD_findDecompressedSize(i,t));var r=jA.exports.malloc(e),I=jA.exports.ZSTD_decompress(r,e,i,t),g=WA.slice(r,r+I);return jA.exports.free(i),jA.exports.free(r),g}}]),A}(),ee="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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",te={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},ie={};for(var re in te)te.hasOwnProperty(re)&&(ie[te[re]]=parseInt(re,10));ie.BitsPerSample,ie.ExtraSamples,ie.SampleFormat,ie.StripByteCounts,ie.StripOffsets,ie.StripRowCounts,ie.TileByteCounts,ie.TileOffsets,ie.SubIFDs;var Ie={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},ge={};for(var ne in Ie)Ie.hasOwnProperty(ne)&&(ge[Ie[ne]]=parseInt(ne,10));var ae=1,oe=0,Be=1,Ce=2,Qe={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},Ee={};for(var se in Qe)Qe.hasOwnProperty(se)&&(Ee[Qe[se]]=parseInt(se,10));function fe(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var ce=new Ae,he=function(A){s(t,w);var e=fe(t);function t(A){var i;return B(this,t),(i=e.call(this)).planarConfiguration=void 0!==A.PlanarConfiguration?A.PlanarConfiguration:1,i.samplesPerPixel=void 0!==A.SamplesPerPixel?A.SamplesPerPixel:1,i.addCompression=A.LercParameters[ae],i}return Q(t,[{key:"decodeBlock",value:function(A){switch(this.addCompression){case oe:break;case Be:A=YA(new Uint8Array(A)).buffer;break;case Ce:A=ce.decode(new Uint8Array(A)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: ".concat(this.addCompression))}return zA.decode(A,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}]),t}(),le=Object.freeze({__proto__:null,zstd:ce,default:he});function ue(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var we=function(A){s(I,w);var t,i=ue(I);function I(){var A;if(B(this,I),A=i.call(this),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");return A}return Q(I,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return i=new Blob([t]),A.next=3,createImageBitmap(i);case 3:return I=A.sent,"undefined"!=typeof document?((g=document.createElement("canvas")).width=I.width,g.height=I.height):g=new OffscreenCanvas(I.width,I.height),(n=g.getContext("2d")).drawImage(I,0,0),A.abrupt("return",n.getImageData(0,0,I.width,I.height).data.buffer);case 8:case"end":return A.stop()}}),A)}))),function(A,e){return t.apply(this,arguments)})}]),I}(),de=Object.freeze({__proto__:null,default:we});';return new DFt("undefined"!=typeof i?"data:application/javascript;base64,"+i.from(t,"binary").toString("base64"):URL.createObjectURL(new Blob([t],{type:"application/javascript"})))}const kFt=Object.freeze(Object.defineProperty({__proto__:null,create:RFt},Symbol.toStringTag,{value:"Module"}));t.VDraw=lH,t.VEcharts=pTt,t.VGDRoute=XDt,t.VGraphic=eH,t.VGroupLayer=zk,t.VHeatmap=WV,t.VImage=Rz,t.VMap=jE,t.VMeasure=AH,t.VOverlay=bk,t.VOverview=vk,t.VPath=$Tt,t.VRoute=LV,t.VSuperCluster=MDt,t.VTile=gk,t.VTrack=NTt,t.VTraffic=NDt,t.VVector=OL,t.VVectorTile=wz,t.VWebglVector=uz,t.VWfs=nRt,t.default=oRt,t.utils=LE,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}))}).call(this,n("1157"),n("c8ba"),n("b639").Buffer,n("f28c"))},"1e4c":function(t,e,n){"use strict";n("97e9")},"1fb5":function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=g,e.fromByteArray=A;for(var i=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function u(t){var e=h(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function c(t,e,n){return 3*(e+n)/4-n}function g(t){var e,n,i=h(t),s=i[0],a=i[1],l=new o(c(t,s,a)),u=0,g=a>0?s-4:s;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function d(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function f(t,e,n){for(var i,r=[],o=e;ol?l:a+s));return 1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2874:function(t,e,n){var i=n("f426");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("5232836e",i,!0,{sourceMap:!0,shadowMode:!1})},"491a":function(t,e,n){"use strict";n("4a20")},"4a20":function(t,e,n){var i=n("011d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("001b530c",i,!0,{sourceMap:!0,shadowMode:!1})},7102:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page"},[e("v-map",{ref:"map",staticClass:"map",attrs:{view:t.view,interactions:t.interactions},on:{contextmenu:function(t){t.preventDefault()}}},[e("v-tile",{attrs:{"tile-type":t.tileType,"z-index":0}}),e("v-vector",{ref:"stationLayer",attrs:{"layer-id":"stationLayer",features:t.layers.stationLayer.features,"z-index":2}}),e("v-vector",{ref:"pointLayer",attrs:{"layer-id":"pointLayer",features:t.layers.pointLayer.features,"z-index":2}}),e("v-vector",{ref:"railLayer",attrs:{"layer-id":"railLayer","feature-style":t.layers.railLayer.style,features:t.layers.railLayer.features,"z-index":2},on:{singleclick:t.clickRail,change:t.onRailLayerChange}}),e("v-draw",{ref:"drawLayer",attrs:{type:t.drawType,"feature-style":t.layers.railLayer.style,"end-right":!0,clear:!0,"z-index":3,"draw-once":"",editable:""},on:{drawend:t.drawend}})],1),e("electronic-fence-edit-dialog",{directives:[{name:"show",rawName:"v-show",value:t.showFenceEdit,expression:"showFenceEdit"}],ref:"electronicFenceEdit",attrs:{info:t.info,"electronic-fence-info":t.electronicFenceInfo,"station-id":t.stationId,"station-visible":!1},on:{cancel:t.electronicFenceEditCancel,cleanFigure:t.cleanDrawFigure,draw:t.drawRail}})],1)},r=[],o=(n("8e6e"),n("ac6a"),n("456d"),n("768b")),s=n("bd86"),a=(n("96cf"),n("3b8d")),l=(n("7f7f"),n("6762"),n("2fdb"),n("071b")),h=(n("2874"),n("5c96")),u=(n("0c6d"),n("28a5"),n("bc3a")),c=n.n(u),g=c.a.create({baseURL:Object({VUE_APP_ENV:"production",VUE_APP_UPLOAD_URL:"https://identify.qiye.baibaodun.com.cn:14433",NODE_ENV:"production",BASE_URL:""}).VUE_APP_API_ROOT,timeout:1e4});g.interceptors.request.use(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,i,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=window.location.href.split("?")[1],i=new URLSearchParams(n),r=i.get("accessToken"),r&&(e.headers.accessToken=r),t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){return Promise.reject(t)})),g.interceptors.response.use((function(t){var e=t.status,n=t.data;if(200===e){var i=t.config.url;return i.indexOf("json")>-1?n:n.data}}));var d=g;function f(t){return d({url:"/security-station-rails/search",method:"POST",data:t})}function A(t){return d({url:"/security-station-rails/"+t.id,method:"DELETE",data:t})}function p(t){return d({url:"/security-station-rails/"+t,method:"GET"})}var m=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"slide-fade"}},[e("div",{directives:[{name:"drag",rawName:"v-drag"}],staticClass:"station-types"},[e("div",{staticClass:"content"},[e("el-form",{ref:"form",attrs:{model:t.form,"label-width":"70px"}},[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"选择区域"}},[e("div",{staticClass:"areaContent"},t._l(t.areaList,(function(n,i){return e("div",{key:i,staticClass:"areaContent-block",class:t.form.shapeType===n.id?"areaContent-block-active":"",on:{click:function(e){return t.changeAreaType(n.id)}}},[e("div",{staticClass:"areaContent-block-img"},[e("img",{attrs:{src:n.icon,alt:""}})]),e("div",{staticClass:"areaContent-block-text"},[t._v("\n "+t._s(n.name)+"\n ")])])})),0)])],1)],1)],1),e("div",{staticClass:"footer-right"},[e("el-button",{attrs:{plain:"",type:"primary"},on:{click:t.reset}},[t._v("重置")]),e("el-button",{attrs:{type:"success"},on:{click:t.saveRail}},[t._v("确认")])],1)],1)])])},y=[],v={name:"trajectory",components:{},props:{stationId:String,info:{type:Object,default:function(){return{}}},electronicFenceInfo:{type:Object,default:function(){return{}}},map:{type:Object,default:function(){return null}},stationVisible:{type:Boolean,default:!0}},watch:{info:{handler:function(t){0!==Object.keys(t).length&&(this.form.stationId=t.stationId,this.form.peopleNum=t.countOfSecurityMan,0===Object.keys(this.electronicFenceInfo).length&&(this.form.stationName=t.name))},immediate:!0,deep:!0},electronicFenceInfo:{handler:function(t){if(t&&0!==Object.keys(t).length){var e=JSON.parse(JSON.stringify(t));this.form.stationName=e.stationName,this.form.id=e.id,this.form.name=e.name,this.form.ruleType=e.ruleType,this.form.shapeType=e.shapeType,this.form.shapedLocation=e.shapedLocation,this.form.stationId=e.stationId,this.form.peopleNum=e.countOfSecurityMan,this.form.time=e.time,this.form.note=e.note,this.isAdd=!1}else this.isAdd=!0,this.reset()},immediate:!0,deep:!0}},data:function(){return{isAdd:!1,typeList:[{id:"Exit",name:"离开告警"},{id:"Enter",name:"进入告警"}],areaList:[{id:"Crib",icon:n("c4e0"),name:"框形选择"},{id:"Circle",icon:n("8e41"),name:"圆形选择"},{id:"Polygon",icon:n("c943"),name:"多边形选择"}],form:{id:"",name:"",ruleType:"Exit",stationId:"",stationName:"",peopleNum:"",time:"",note:"",shapeType:"",peopleList:[],shapedLocation:{geos:[],radius:""}},Circle:null,mousetool:null}},methods:{changeAreaType:function(t){var e=this;this.form.shapeType=t,this.mouseTool&&this.mouseTool.close(!0),this.$emit("cleanFigure"),"Circle"===t?e.drawCircle():"Crib"===t?e.drawRectangle():"Polygon"===t&&e.drawPolygon()},drawPolygon:function(){this.$emit("draw","Polygon")},drawCircle:function(){this.$emit("draw","Circle")},drawRectangle:function(){this.$emit("draw","Rectangle")},setCircle:function(t){},setRectangle:function(t){},setPolygon:function(t){},cancel:function(){this.mouseTool&&this.mouseTool.close(!0),this.$emit("cancel")},updateGeometry:function(t){var e=t.geos,n=t.radius;this.form.shapedLocation={geos:e,radius:n}},updateStation:function(t){this.form.stationName=t.stationName,this.form.peopleNum=t.countOfSecurityMan,this.form.stationId=t.stationId},reset:function(){this.form.id="",this.form.name="",this.form.ruleType="Exit",this.form.time=[],this.form.note="",this.form.shapeType="",this.form.stationName="",this.form.peopleNum="",this.form.shapedLocation={geos:[],radius:""},this.$emit("cleanFigure")},saveRail:function(){0!==this.form.shapedLocation.geos.length?(window.parent.postMessage({shapeType:this.form.shapeType,shapedLocation:this.form.shapedLocation},"*"),this.$message.success("数据保存成功,即将关闭窗口")):this.$message.warning("请选择围栏区域")}}},_=v,x=(n("491a"),n("2877")),I=Object(x["a"])(_,m,y,!1,null,"7371422c",null),w=I.exports;function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function E(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:["stationLayer"];for(var e in this.layers)t.includes(e)||(this.layers[e].features=[]);this.$refs.map.closeOverlays()},onChangeLayer:function(t){t.indexOf("default")>-1?this.tileType="GD":this.tileType="GD_IMG"},hideFenceTable:function(){this.isElectronicFenceEditDialog=!1,this.isElectronicFenceStationDialog=!1,this.isElectronicFenceDialog=!1},electronicFenceCancel:function(){this.isElectronicFenceDialog=!1},addElectronic:function(){var t=this;this.isElectronicFenceEditDialog=!0,this.isElectronicFenceDialog=!1,this.electronicFenceInfo=JSON.parse(JSON.stringify(this.info)),this.electronicFenceInfo={},this.$nextTick((function(){t.$refs.electronicFenceEdit.updateStation({stationName:t.station.name,peopleNum:t.station.countOfSecurityMan,countOfSecurityMan:t.station.countOfSecurityMan,stationId:t.station.id})}))},electronicFenceEditFn:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.data,this.showRailInfoFromList=!0,this.isElectronicFenceDialog=!1,this.electronicFenceInfo=JSON.parse(JSON.stringify(n)),this.electronicFenceInfo.time=[this.electronicFenceInfo.beginTime,this.electronicFenceInfo.endTime],t.next=7,p(n.id);case 7:i=t.sent,this.info=E(E({},i),this.electronicFenceInfo),this.isElectronicFenceEditDialog=!0,this.showMapEditor(n);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),delElectronic:function(t){var e=this,n={id:t.data.id};A(n).then((function(t){e.$refs["electronicFence"].getRails(),e.$message({message:"删除成功",type:"success"})})).catch((function(t){}))},electronicFenceEditCancel:function(){var t=this;this.layers.railLayer.features=[],this.isElectronicFenceEditDialog=!1,this.cleanDrawFigure(),f({pageIndex:1,pageSize:10,searchModel:"Station",stationId:this.stationId}).then((function(e){e?t.electronicFenceData=e:Object(h["Message"])({type:"error",message:"查询电子围栏信息失败",onClose:function(){}})})).catch((function(){Object(h["Message"])({type:"error",message:"查询电子围栏信息失败",onClose:function(){}})}))},cleanDrawFigure:function(){this.drawType=""},showMapEditor:function(t){var e=t.shapeType,n=t.shapedLocation;switch(e){case"Circle":this.showCircleEditor(n);break;case"Polygon":this.showPolygonEditor(n);break;case"Crib":this.showCribEditor(n);break}},showPolygonEditor:function(t){var e=t.geos,n=e.map((function(t){return[t.lon,t.lat]}));this.layers.railLayer.features=[{type:"polygon",coordinates:n,style:this.layers.railLayer.style,convert:"gd-84"}],this.$refs.map.flyTo({zoom:13,flyZoom:8,center:n[0]})},showCribEditor:function(t){var e=t.geos,n=e.map((function(t){return[t.lon,t.lat]}));this.layers.railLayer.features=[{type:"polygon",coordinates:n,style:this.layers.railLayer.style,convert:"gd-84"}],this.$refs.map.flyTo({zoom:13,flyZoom:8,center:n[0]})},showCircleEditor:function(t){var e=t.geos,n=t.radius,i=e.map((function(t){return[t.lon,t.lat]})),r=Object(o["a"])(i,1),s=r[0];this.layers.railLayer.features=[{type:"Circle",center:s,radius:n,style:this.layers.railLayer.style,convert:"gd-84"}],this.$refs.map.flyTo({zoom:13,center:s})},drawRail:function(t){this.drawType=t},drawend:function(t,e){var n=t.feature;this.layers.railLayer.features=[];var i=n.getGeometry();if("Rectangle"===this.drawType||"Polygon"===this.drawType){var r=i.getCoordinates(),s=Object(o["a"])(r,1),a=s[0],h=a.map((function(t){return l["utils"].convertCoordinate(t,"84-gd")})),u={geos:h.map((function(t){return{lon:t[0],lat:t[1]}}))};this.$refs.electronicFenceEdit.updateGeometry(u)}else if("Circle"===this.drawType){var c=i.getCenter(),g=i.getRadius(),d=e.getView().getProjection().getMetersPerUnit(),f=(g*d).toFixed(2),A=l["utils"].convertCoordinate(c,"84-gd"),p={geos:[{lon:A[0],lat:A[1]}],radius:f};this.$refs.electronicFenceEdit.updateGeometry(p)}},initPosition:function(t){var e=this;this.$api.getPointListApi({pathId:t,pageIndex:1,pageSize:999999},{onSucess:function(t){var n=t.data.data.map((function(t){return[t.longitude,t.latitude]}));e.layers.stationLayer.features=[{type:"polyline",coordinates:n,convert:"gd-84"}],e.layers.pointLayer.features=n.map((function(t){return{type:"point",coordinates:t,convert:"gd-84",properties:{name:"站点-".concat(t.join(","))}}})),e.$refs.map.flyTo({zoom:16,flyZoom:8,center:n[0]})}})},initRail:function(t,e,n){var i=this;this.$api.getRailListApi({id:t,radius:e,pageIndex:1,pageSize:999999},{onSucess:function(t){var n=t.data.data.map((function(t){return[t.longitude,t.latitude]})),r=Object(o["a"])(n,1),s=r[0];i.layers.pointLayer.features=[{type:"Circle",center:s,radius:e,convert:"gd-84"}],i.$refs.map.flyTo({zoom:13,center:s})}})}},mounted:function(){var t=this.$route.query;t&&t.pathId?(this.showFenceEdit=!1,this.initPosition(t.pathId)):t&&t.id?(this.showFenceEdit=!1,this.initRail(t.id,t.radius)):t&&null!==t.shapeType&&null!==t.shapedLocation&&this.showMapEditor({shapeType:t.shapeType,shapedLocation:JSON.parse(decodeURIComponent(t.shapedLocation))})}},S=b,B=(n("1e4c"),Object(x["a"])(S,i,r,!1,null,"4eb1c5f1",null));e["default"]=B.exports},"8e41":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAOnSURBVGiB1ZohaBtRGMd/lMAiIioiKiYCi4ioiKiMiCisoqKiYmKisqKisEAnJgoVHWywiZnBYIMNKlpR2NwGG7RQEbHBREUHgUVURFREdJBCJ9478r2X73Jp8+7S/OBoufvuvf/Lfe/7vvfuIDx5YBNoAl17NO25fAr9BaUMnALXMceptbmTzDJcvBzE7IQ0DmWbvsge0ABK9mjYc9H17QnoS6RNX+CGcn1DXG9nqGskirhuok3WvGcTxI1mQjQCLIj/r4B/is2VPSLuxDxYxIRIf6IuK7Yrns0ZcBJjmzol4CvxkeYcM7iIJXsuzl6bM6nxGJOcpIAecKicP1eEdzFJTUalN1mJf8bgr/eJfnKqAReKjRRfs7ZlK/wjMId5Cqe2j1TY9MS0Ma7hUwL2gEthewnsMzwLyyeyE0p0xCNc8ceYX20YeaACVIHCCH18wXXJYJRxfft4REE3pQD8sH0chGz4CHdSFkM2rlCyf1dwI9mt8GP32A2OiAwWY+UJmaQ+jC1rdF6Kfpu3aaAEPMSdVFnW8WXcqFSi71qxFIFXQAfXba4xESJrXig6OlbjQB1VAVrKDTKOr2ah2rKKm0f8o2U1AyZen3kGXQZLgEtMTE+bKq77XGOyu1+mnFntbImTPWAdyNnGat5AsnClb6K/Nv3SI2e1ycE9ATfSNJQGF3BHnkYSi/AXRguKTUNcb4Lra3GR5o+wqcXYhKAu+mnF2JSFTXcGd5WUU2+Be4EEJiG1xO0hSY1X4JYKu8oNS7hzJE0XmsX1cS3zPxfXj8BMDOl3u5hKs4BZvMj6/jBF8RGHor+O1VCwmnZwB7gO5pFo61ptMZJFNvar37ijiXCnuYRBdEh38vrU0CsCKX5gPSI3Zf0bvmeh2qMIvAX+4gofeZO4gjuILLJwRA5TRiet+hKRWfHzuI3dgH36JcRYG2B13KewMq6yEVj2+qwMN0/mQDTWDdFgAq9Ff0HC9n3ciNAigG8OoQz8wiSpYP0s4iaQc2A+4Z5oW6VCctSoYCJMB+O2qbDGYGJbU+xK6Btbe+jLwnncxPU+pGifNQYXG0f0f7Uaw7Oo3FqMkC8+emSwW11H32n+rYjXNncvgJ/2/x1MwjrC+H09bfERReCdMggpXFaSdfRBx9X8mVHFJB3frbQNAD++94Cn2chMpoorTCOHO1BtuTgxJvaSLyRT/ZoVBl90bwEP7LHFFLzonvpPDWDKP/aIiFZ2J/Q/tzkhpc9t/gMF6+tgPjKu2AAAAABJRU5ErkJggg=="},9152:function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,l=(1<>1,u=-7,c=n?r-1:0,g=n?-1:1,d=t[e+c];for(c+=g,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+t[e+c],c+=g,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[e+c],c+=g,u-=8);if(0===o)o=1-h;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,i),o-=h}return(d?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,l,h=8*o-r-1,u=(1<>1,g=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,A=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),e+=s+c>=1?g/l:g*Math.pow(2,1-c),e*l>=2&&(s++,l/=2),s+c>=u?(a=0,s=u):s+c>=1?(a=(e*l-1)*Math.pow(2,r),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;t[n+d]=255&a,d+=f,a/=256,r-=8);for(s=s<0;t[n+d]=255&s,d+=f,s/=256,h-=8);t[n+d-f]|=128*A}},"97e9":function(t,e,n){var i=n("bceb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("4ded7540",i,!0,{sourceMap:!0,shadowMode:!1})},b639:function(t,e,n){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var i=n("1fb5"),r=n("9152"),o=n("e3db");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function a(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),h.alloc(+t)}function _(t,e){if(h.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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(t).length;default:if(i)return Z(t).length;e=(""+e).toLowerCase(),i=!0}}function x(t,e,n){var i=!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,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return z(this,e,n);case"utf8":case"utf-8":return R(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return Q(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function I(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function w(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=h.from(e,i)),h.isBuffer(e))return 0===e.length?-1:C(t,e,n,i,r);if("number"===typeof e)return e&=255,h.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):C(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function C(t,e,n,i,r){var o,s=1,a=t.length,l=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,n/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var u=-1;for(o=n;oa&&(n=a-l),o=n;o>=0;o--){for(var c=!0,g=0;gr&&(i=r)):i=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s239?4:h>223?3:h>191?2:1;if(r+c<=n)switch(c){case 1:h<128&&(u=h);break;case 2:o=t[r+1],128===(192&o)&&(l=(31&h)<<6|63&o,l>127&&(u=l));break;case 3:o=t[r+1],s=t[r+2],128===(192&o)&&128===(192&s)&&(l=(15&h)<<12|(63&o)<<6|63&s,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(l=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,c=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=c}return L(i)}e.Buffer=h,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=a(),h.poolSize=8192,h._augment=function(t){return t.__proto__=h.prototype,t},h.from=function(t,e,n){return u(null,t,e,n)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0})),h.alloc=function(t,e,n){return g(null,t,e,n)},h.allocUnsafe=function(t){return d(null,t)},h.allocUnsafeSlow=function(t){return d(null,t)},h.isBuffer=function(t){return!(null==t||!t._isBuffer)},h.compare=function(t,e){if(!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},h.prototype.compare=function(t,e,n,i,r){if(!h.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===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var o=r-i,s=n-e,a=Math.min(o,s),l=this.slice(i,r),u=t.slice(e,n),c=0;cr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return B(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function L(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);var n="",i=0;while(ii)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,n,i,r,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function G(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function j(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function U(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(t,e,n,i,o){return o||U(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,o){return o||U(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}h.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e0&&(r*=256))i+=this[t+--e]*r;return i},h.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);var i=this[t],r=1,o=0;while(++o=r&&(i-=Math.pow(2,8*e)),i},h.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);var i=e,r=1,o=this[t+--i];while(i>0&&(r*=256))o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;N(this,t,e,n,r,0)}var o=1,s=0;this[e]=255&t;while(++s=0&&(s*=256))this[e+o]=t/s&255;return e+n},h.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,255,0),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):G(this,t,e,!0),e+2},h.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):G(this,t,e,!1),e+2},h.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},h.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},h.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);N(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;this[e]=255&t;while(++o>0)-a&255;return e+n},h.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);N(this,t,e,n,r-1,-r)}var o=n-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},h.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,127,-128),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):G(this,t,e,!0),e+2},h.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):G(this,t,e,!1),e+2},h.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},h.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},h.prototype.writeFloatLE=function(t,e,n){return q(this,t,e,!0,n)},h.prototype.writeFloatBE=function(t,e,n){return q(this,t,e,!1,n)},h.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},h.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},h.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=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 K(t){for(var e=[],n=0;n>8,r=n%256,o.push(r),o.push(i)}return o}function $(t){return i.toByteArray(Y(t))}function tt(t,e,n,i){for(var r=0;r=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},bceb:function(t,e,n){e=t.exports=n("2350")(!0),e.push([t.i,".page[data-v-4eb1c5f1]{width:100%;height:100%;position:relative}.page .map[data-v-4eb1c5f1]{z-index:1}","",{version:3,sources:["/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/views/ElectronicFence.vue"],names:[],mappings:"AACA,uBACE,WACA,YACA,iBAAA,CACA,4BACE,SAAA,CAAA",file:"ElectronicFence.vue?vue&type=style&index=0&id=4eb1c5f1&prod&scoped=true&lang=scss&",sourcesContent:["\n.page {\n width: 100%;\n height: 100%;\n position: relative;\n .map {\n z-index: 1;\n }\n}\n"],sourceRoot:""}])},c4e0:function(t,e){t.exports="data:image/png;base64,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"},c943:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQjSURBVGiBzZk9aFRZFMd/K1OkGGGKFClSTDGwW1hYWKQIOEXAFBYWFlMsbApBC4uAC2thMeDCCgpaCCIsuEsKBYsNRFBJIIhFBAsDBsLiQooIKVJYjKAwC2Nx3vOde9+97933MZn84ZKXOef+77kf5+O+B8cHbeABsAuMgAPgKdCdnEnhuAgMEMNd7Y/JmZaPOWCI3/i4XZ+UgXl4R2LkLrAQ/d4BninZF2BmEgZmoYNp4KwlbwBvlc5Vm+DEmA3Mwyn1/BL4aMn/B/726AOTn0AIGkWEU8BZkpnuAK+Ar/Xb9Z0/xjnkCOldaAC/ePRT6CGx1/b+AyTMjQv6jO+SxP0OsEagE18lP4ylHKgmVA6jpy2CfeB21PSODHE4UU24n2P8razOK0pxC2gqWTP6LZav1Gw4yAJ+UWMcUrCU2FOdTzvkZ5R8rw6LFVrAB8W/gyxaGzhPTgSKobeqik4Z/KN4B4jjtkjqonshJEV24LCyyQmuYy5MzzHedgiR9oHXHI0PzGMGDr3SsxQ8sq4odDdqdl74uQbjZyzeLdJnfSOS3Q8lDckDcdtEHKwMGsC64jokXcDF8P3uhS8T+9p7YAkpP0JxU/UfAosevXlkcpuYRzoXUxHpr4iT7agBB7gz5gHwGxI9srBo9etn6D5SepXKmAuYKzYP3AE+kZ7IAPGbtoOnTZKgRsALsmO8zszXqkwAZBtjskfRby1gGXF4eyJDJFrFIdm+lOwD0zljLin9yoGjaxnXUbJGNNg26YmMEId9avU/EzBmzLuELFYb984GIw5rI2DVo7No6bnacoEx54DnpEN8n4KODXIctCGujK11V0g7/JMC411y9NftLfnHMIVVRbAWoD+LZNgB4rShq2Zn6SGSkXUQGCG7Uwh2xu4WJQiEPoZbmD53paoNf6nOm9XsdGJa8btes4AZYoNLjRgdzBVYyFYvjDnM1XdhQelsFH2t8h/wUP1/u6iFOfisnn0XeO28nz06mZjBvAJeKEPiwRTmS16bu4FZ3t8oO9A9RfKewKufB3NIWNxDkpzmHiIFYBeZjDbe5yNBaGHWQ0sleXqKI3bKacx7ch1J0Ym+IvtAuV34U3EMSMqMNv7yZIhUy5Vh78KVgD4zwGOSwvAUcnye4H4z3UNqqc2o/Y6ZFypjGfNe0AcuewZpkr4wTRzT+GuWNWTFmyQVpZZnvm07CrQwv6642iFytgdIKXIDqYvqToCloB1whHwO6iNn1rUrx+obl310epa8a8m3KVH+jhMXUfWIR+ex0ql8r/Wh7CcmXdvve3T+Vc8nS46Ti7IT0J+cfvLo/KieSxVd44TtA5cs+aIlz7qCTgx2FFpHCq81TONfTMrAPDTx1ytx2+MYfl3XaCLXTFfcX+UIjP+hJp5ZJPZ3kFvbm+jv2PENDmMG+nDHTSUAAAAASUVORK5CYII="},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},f426:function(t,e,n){e=t.exports=n("2350")(!0),e.push([t.i,':host,:root{--ol-background-color:#fff;--ol-accent-background-color:#f5f5f5;--ol-subtle-background-color:hsla(0,0%,50.2%,0.25);--ol-partial-background-color:hsla(0,0%,100%,0.75);--ol-foreground-color:#333;--ol-subtle-foreground-color:#666;--ol-brand-color:#0af}.ol-box{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;-webkit-transition:all .25s;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:-webkit-box;display:-ms-flexbox;display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{bottom:-5px;font-size:10px;z-index:11}.ol-scale-step-text,.ol-scale-text{position:absolute;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{font-size:12px;text-align:center;bottom:25px}.ol-scale-singlebar{position:relative;height:10px;z-index:9;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;-webkit-transition:opacity .25s linear,visibility 0s linear;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;-webkit-transition:opacity .25s linear,visibility 0s linear .25s;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-flow:row-reverse;flex-flow:row-reverse;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{-ms-flex-negative:0;flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.traffic-legend[data-v-680a10a9]{position:absolute;top:10px;right:10px;background:hsla(0,0%,100%,.9);padding:10px;border-radius:4px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.10196078431372549);box-shadow:0 2px 8px rgba(0,0,0,.10196078431372549);z-index:1000;font-size:12px}.legend-title[data-v-680a10a9]{font-weight:700;margin-bottom:8px;color:#333}.legend-item[data-v-680a10a9]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:4px}.legend-color[data-v-680a10a9]{width:16px;height:3px;margin-right:6px;border-radius:2px}.legend-text[data-v-680a10a9]{color:#666}',"",{version:3,sources:["/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/v-ol-map/lib/v-ol-map.css"],names:[],mappings:"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",file:"v-ol-map.css",sourcesContent:[':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.traffic-legend[data-v-680a10a9]{position:absolute;top:10px;right:10px;background:rgba(255,255,255,.9);padding:10px;border-radius:4px;box-shadow:0 2px 8px #0000001a;z-index:1000;font-size:12px}.legend-title[data-v-680a10a9]{font-weight:700;margin-bottom:8px;color:#333}.legend-item[data-v-680a10a9]{display:flex;align-items:center;margin-bottom:4px}.legend-color[data-v-680a10a9]{width:16px;height:3px;margin-right:6px;border-radius:2px}.legend-text[data-v-680a10a9]{color:#666}\n'],sourceRoot:""}])}}]);